From 708bd7c92eae5b984aa3b48579e6a12a597fdeab Mon Sep 17 00:00:00 2001 From: alexlamsl Date: Thu, 25 May 2017 17:20:22 +0800 Subject: [PATCH] Version 3.5.2 --- README.md | 18 +++++++++--------- dist/htmlminifier.js | 8 ++++---- dist/htmlminifier.min.js | 4 ++-- index.html | 2 +- package.json | 2 +- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 988f59bd..98c528a4 100644 --- a/README.md +++ b/README.md @@ -22,16 +22,16 @@ 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/) | 44 | **42** | 45 | 46 | 45 | -| [HTMLMinifier](https://github.com/kangax/html-minifier) | 127 | **100** | 108 | 112 | 107 | -| [CNN](http://www.cnn.com/) | 136 | **125** | 133 | 134 | 129 | -| [Amazon](http://www.amazon.co.uk/) | 196 | **165** | 188 | 192 | n/a | -| [Stack Overflow](http://stackoverflow.com/) | 223 | **172** | 181 | 188 | 178 | -| [New York Times](http://www.nytimes.com/) | 224 | **153** | 172 | 170 | 159 | -| [BBC](http://www.bbc.co.uk/) | 236 | **194** | 229 | 236 | 223 | +| [Google](https://www.google.com/) | 46 | **43** | 46 | 48 | 46 | +| [HTMLMinifier](https://github.com/kangax/html-minifier) | 129 | **100** | 108 | 113 | 108 | +| [CNN](http://www.cnn.com/) | 134 | **123** | 131 | 132 | 127 | +| [Amazon](http://www.amazon.co.uk/) | 200 | **168** | 192 | 195 | n/a | +| [Stack Overflow](http://stackoverflow.com/) | 220 | **170** | 178 | 186 | 176 | +| [BBC](http://www.bbc.co.uk/) | 228 | **188** | 221 | 228 | 216 | +| [New York Times](http://www.nytimes.com/) | 235 | **158** | 181 | 178 | 165 | | [Bootstrap CSS](http://getbootstrap.com/css/) | 272 | **260** | 269 | 229 | 269 | -| [Wikipedia](https://en.wikipedia.org/wiki/President_of_the_United_States) | 550 | **503** | 530 | 548 | 529 | -| [NBC](http://www.nbc.com/) | 643 | **612** | 641 | 643 | n/a | +| [Wikipedia](https://en.wikipedia.org/wiki/President_of_the_United_States) | 550 | **502** | 530 | 548 | 529 | +| [NBC](http://www.nbc.com/) | 649 | **617** | 646 | 649 | n/a | | [Eloquent Javascript](http://eloquentjavascript.net/1st_edition/print.html) | 870 | **815** | 840 | 864 | n/a | | [ES6 table](http://kangax.github.io/compat-table/es6/) | 4105 | **3467** | 3871 | n/a | n/a | | [ES6 draft](https://tc39.github.io/ecma262/) | 5512 | **4919** | 5066 | n/a | n/a | diff --git a/dist/htmlminifier.js b/dist/htmlminifier.js index 19cc2e06..5cbc5f27 100644 --- a/dist/htmlminifier.js +++ b/dist/htmlminifier.js @@ -1,5 +1,5 @@ /*! - * HTMLMinifier v3.5.1 (http://kangax.github.io/html-minifier/) + * HTMLMinifier v3.5.2 (http://kangax.github.io/html-minifier/) * Copyright 2010-2017 Juriy "kangax" Zaytsev * Licensed under the MIT license */ @@ -24316,10 +24316,10 @@ function minify(value, options, partialMarkup) { if (!stackNoTrimWhitespace.length) { squashTrailingWhitespace(tag); } - if (!_canTrimWhitespace(tag, attrs)) { + if (!_canTrimWhitespace(tag, attrs) || stackNoTrimWhitespace.length) { stackNoTrimWhitespace.push(tag); } - if (!_canCollapseWhitespace(tag, attrs)) { + if (!_canCollapseWhitespace(tag, attrs) || stackNoCollapseWhitespace.length) { stackNoCollapseWhitespace.push(tag); } } @@ -24619,6 +24619,6 @@ exports.minify = function(value, options) { },{"./htmlparser":167,"./tokenchain":168,"./utils":169,"clean-css":7,"he":104,"relateurl":130,"uglify-js":"uglify-js"}],"uglify-js":[function(require,module,exports){ (function (Buffer){ -(function(exports){"use strict";function array_to_hash(a){var ret=Object.create(null);for(var i=0;i=0}function find_if(func,array){for(var i=0,n=array.length;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=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=0})}function makePredicate(words){if(!(words instanceof Array))words=words.split(" ");var f="",cats=[];out:for(var i=0;i3){cats.sort(function(a,b){return b.length-a.length});f+="switch(str.length){";for(var i=0;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},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 instanceof AST_Call&&p.expression===node&&!(p instanceof AST_New)||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 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 scope 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!)",scope:"[AST_Scope/S] The scope that this directive affects",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 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)"}},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=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;i0){var p=stack[--i];if(p instanceof AST_If&&p.condition===self||p instanceof AST_Conditional&&p.condition===self||p instanceof AST_DWLoop&&p.condition===self||p instanceof AST_For&&p.condition===self||p instanceof AST_UnaryPrefix&&p.operator=="!"&&p.expression===self){return true}if(!(p instanceof AST_Binary&&(p.operator=="&&"||p.operator=="||")))return false;self=p}},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 REGEXP_MODIFIERS=makePredicate(characters("gmsiy"));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_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="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;i0};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","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{});var STATEMENTS_WITH_LABELS=array_to_hash(["for","do","while","switch"]);var ATOMIC_START_TOKEN=array_to_hash(["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});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 can_insert_semicolon(){return!options.strict&&(S.token.nlb||is("eof")||is("punc","}"))}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();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(){handle_regexp();switch(S.token.type){case"string":if(S.in_directives){var token=peek();if(S.token.raw.indexOf("\\")==-1&&(token.nlb||is_token(token,"eof")||is_token(token,"punc",";")||is_token(token,"punc","}"))){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":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(S.token.nlb)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&&init.definitions.length>1)croak("Only one variable declaration allowed in for..in loop");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 lhs=init instanceof AST_Var?init.definitions[0].name:null;var obj=expression(true);expect(")");return new AST_ForIn({init:init,name:lhs,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();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_();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_(){expect("{");var a=[];while(!is("punc","}")){if(is("eof"))unexpected();a.push(statement())}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=[]}return subscripts(new AST_New({start:start,expression:newexp,args:args,end:prev()}),allow_calls)};function as_atom_node(){var tok=S.token,ret;switch(tok.type){case"name":case"keyword":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;case"operator":if(!is_identifier_string(tok.value)){croak("Invalid getter/setter name: "+tok.value,tok.line,tok.col,tok.pos)}ret=_make_symbol(AST_SymbolRef);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);ex.start=start;ex.end=S.token;expect(")");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}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();return subscripts(new AST_Call({start:start,expression:expr,args:expr_list(")"),end:prev()}),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)&&!S.token.nlb){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());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){if(!tw.after){x=this;descend(x,tw)}else{tw.stack[tw.stack.length-1]=x=this;descend(x,tw);y=tw.after(x,in_list);if(y!==undefined)x=y}}tw.pop(this);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,index,orig){this.name=orig.name;this.orig=[orig];this.scope=scope;this.references=[];this.global=false;this.mangled_name=null;this.undeclared=false;this.index=index;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(this.defun&&(def=this.defun.variables.get(this.name))){this.mangled_name=def.mangled_name||def.name}else this.mangled_name=s.next_mangled(options,this);if(this.global&&cache){cache.set(this.name,this.mangled_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)}else if(node instanceof AST_SymbolDefun){(node.scope=defun.parent_scope).def_function(node)}else if(node instanceof AST_SymbolVar){defun.def_variable(node);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);var func=null;var globals=self.globals=new Dictionary;var tw=new TreeWalker(function(node,descend){if(node instanceof AST_Lambda){var prev_func=func;func=node;descend();func=prev_func;return true}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(node.scope instanceof AST_Lambda&&name=="arguments"){node.scope.uses_arguments=true}if(!sym){sym=self.def_global(node)}node.thedef=sym;node.reference(options);return true}});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;return true}}))}if(options.cache){this.cname=options.cache.cname}});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,globals.size(),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){this.functions.set(symbol.name,this.def_variable(symbol))});AST_Scope.DEFMETHOD("def_variable",function(symbol){var def;if(!this.variables.has(symbol.name)){def=new SymbolDef(this,this.variables.size(),symbol);this.variables.set(symbol.name,def);def.global=!this.parent_scope}else{def=this.variables.get(symbol.name);def.orig.push(symbol)}return symbol.thedef=def});AST_Scope.DEFMETHOD("next_mangled",function(options){var ext=this.enclosed;out:while(true){var m=base54(++this.cname);if(!is_identifier(m))continue;if(options.reserved.indexOf(m)>=0)continue;for(var i=ext.length;--i>=0;){var sym=ext[i];var name=sym.mangled_name||sym.unmangleable(options)&&sym.name;if(m==name)continue out}return m}});AST_Function.DEFMETHOD("next_mangled",function(options,def){var tricky_def=def.orig[0]instanceof AST_SymbolFunarg&&this.name&&this.name.definition();var tricky_name=tricky_def?tricky_def.mangled_name||tricky_def.name:null;while(true){var name=AST_Lambda.prototype.next_mangled.call(this,options,def);if(!tricky_name||tricky_name!=name)return name}});AST_Symbol.DEFMETHOD("unmangleable",function(options){return this.definition().unmangleable(options)});AST_Label.DEFMETHOD("unmangleable",function(){return false});AST_Symbol.DEFMETHOD("unreferenced",function(){return this.definition().references.length==0&&!(this.scope.uses_eval||this.scope.uses_with)});AST_Symbol.DEFMETHOD("undeclared",function(){return this.definition().undeclared});AST_LabelRef.DEFMETHOD("undeclared",function(){return false});AST_Label.DEFMETHOD("undeclared",function(){return false});AST_Symbol.DEFMETHOD("definition",function(){return this.thedef});AST_Symbol.DEFMETHOD("global",function(){return this.definition().global});AST_Toplevel.DEFMETHOD("_default_mangler_options",function(options){return defaults(options,{eval:false,ie8:false,keep_fnames:false,reserved:[],toplevel:false})});AST_Toplevel.DEFMETHOD("mangle_names",function(options){options=this._default_mangler_options(options);options.reserved.push("arguments");var lname=-1;var to_mangle=[];if(options.cache){this.globals.each(function(symbol){if(options.reserved.indexOf(symbol.name)<0){to_mangle.push(symbol)}})}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){var p=tw.parent(),a=[];node.variables.each(function(symbol){if(options.reserved.indexOf(symbol.name)<0){a.push(symbol)}});to_mangle.push.apply(to_mangle,a);return}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_SymbolCatch){to_mangle.push(node.definition());return}});this.walk(tw);to_mangle.forEach(function(def){def.mangle(options)});if(options.cache){options.cache.cname=this.cname}});AST_Toplevel.DEFMETHOD("compute_char_frequency",function(options){options=this._default_mangler_options(options);var tw=new TreeWalker(function(node){if(node instanceof AST_Constant)base54.consider(node.print_to_string());else if(node instanceof AST_Return)base54.consider("return");else if(node instanceof AST_Throw)base54.consider("throw");else if(node instanceof AST_Continue)base54.consider("continue");else if(node instanceof AST_Break)base54.consider("break");else if(node instanceof AST_Debugger)base54.consider("debugger");else if(node instanceof AST_Directive)base54.consider(node.value);else if(node instanceof AST_While)base54.consider("while");else if(node instanceof AST_Do)base54.consider("do while");else if(node instanceof AST_If){base54.consider("if");if(node.alternative)base54.consider("else")}else if(node instanceof AST_Var)base54.consider("var");else if(node instanceof AST_Lambda)base54.consider("function");else if(node instanceof AST_For)base54.consider("for");else if(node instanceof AST_ForIn)base54.consider("for in");else if(node instanceof AST_Switch)base54.consider("switch");else if(node instanceof AST_Case)base54.consider("case");else if(node instanceof AST_Default)base54.consider("default");else if(node instanceof AST_With)base54.consider("with");else if(node instanceof AST_ObjectSetter)base54.consider("set"+node.key);else if(node instanceof AST_ObjectGetter)base54.consider("get"+node.key);else if(node instanceof AST_ObjectKeyVal)base54.consider(node.key);else if(node instanceof AST_New)base54.consider("new");else if(node instanceof AST_This)base54.consider("this");else if(node instanceof AST_Try)base54.consider("try");else if(node instanceof AST_Catch)base54.consider("catch");else if(node instanceof AST_Finally)base54.consider("finally");else if(node instanceof AST_Symbol&&node.unmangleable(options))base54.consider(node.name);else if(node instanceof AST_Unary||node instanceof AST_Binary)base54.consider(node.operator);else if(node instanceof AST_Dot)base54.consider(node.property)});this.walk(tw);base54.sort()});var base54=function(){var string="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";var chars,frequency;function reset(){frequency=Object.create(null);chars=string.split("").map(function(ch){return ch.charCodeAt(0)});chars.forEach(function(ch){frequency[ch]=0})}base54.consider=function(str){for(var i=str.length;--i>=0;){var code=str.charCodeAt(i);if(code in frequency)++frequency[code]}};base54.sort=function(){chars=mergeSort(chars,function(a,b){if(is_digit(a)&&!is_digit(b))return 1;if(is_digit(b)&&!is_digit(a))return-1;return frequency[b]-frequency[a]})};base54.reset=reset;reset();base54.get=function(){return chars};base54.freq=function(){return frequency};function base54(num){var ret="",base=54;num++;do{num--;ret+=String.fromCharCode(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){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,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="";function to_ascii(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 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-7]/.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,'\\"')+'"'}if(options.ascii_only)str=to_ascii(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();if(options.ascii_only)name=to_ascii(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 last="";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);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)}}might_add_newline=0}:noop;var requireSemicolonChars=makePredicate("( [ + * / - , .");function print(str){str=String(str);var ch=str.charAt(0);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_line0){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(){print("\n")}: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=options.source_map?function(token,name){try{if(token)options.source_map.add(token.file||"?",current_line,current_col,token.line,token.col,!name&&token.type=="name"?token.value:name)}catch(ex){AST_Node.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]",{file:token.file,line:token.line,col:token.col,cline:current_line,ccol:current_col,name:name||""})}}:noop;function get(){if(might_add_newline){ensure_line_len()}return OUTPUT}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},newline:newline,print:print,space:space,comma:comma,colon:colon,last:function(){return last},semicolon:semicolon,force_semicolon:force_semicolon,to_ascii:to_ascii,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]},comment_filter:comment_filter,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 use_asm=false;var in_directive=false;AST_Node.DEFMETHOD("print",function(stream,force_parens){var self=this,generator=self._codegen,prev_use_asm=use_asm;if(self instanceof AST_Directive&&self.value=="use asm"&&stream.parent()instanceof AST_Scope){use_asm=true}function doit(){self.add_comments(stream);self.add_source_map(stream);generator(self,stream)}stream.push_node(self);if(force_parens||self.needs_parens(stream)){stream.with_parens(doit)}else{doit()}stream.pop_node();if(self instanceof AST_Scope){use_asm=prev_use_asm}});AST_Node.DEFMETHOD("print_to_string",function(options){var s=OutputStream(options);if(!options)s._readonly=true;this.print(s);return s.get()});AST_Node.DEFMETHOD("add_comments",function(output){if(output._readonly)return;var self=this;var start=self.start;if(start&&!start._comments_dumped){start._comments_dumped=true;var comments=start.comments_before||[];if(self instanceof AST_Exit&&self.value){self.value.walk(new TreeWalker(function(node){if(node.start&&node.start.comments_before){comments=comments.concat(node.start.comments_before);node.start.comments_before=[]}if(node instanceof AST_Function||node instanceof AST_Array||node instanceof AST_Object){return true}}))}if(output.pos()==0){if(comments.length>0&&output.option("shebang")&&comments[0].type=="comment5"){output.print("#!"+comments.shift().value+"\n");output.indent()}var preamble=output.option("preamble");if(preamble){output.print(preamble.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}}comments=comments.filter(output.comment_filter,self);if(!output.option("beautify")&&comments.length>0&&/comment[134]/.test(comments[0].type)&&output.col()!==0&&comments[0].nlb){output.print("\n")}comments.forEach(function(c){if(/comment[134]/.test(c.type)){output.print("//"+c.value+"\n");output.indent()}else if(c.type=="comment2"){output.print("/*"+c.value+"*/");if(start.nlb){output.print("\n");output.indent()}else{output.space()}}})}});function PARENS(nodetype,func){if(Array.isArray(nodetype)){nodetype.forEach(function(nodetype){PARENS(nodetype,func)})}else{nodetype.DEFMETHOD("needs_parens",func)}}PARENS(AST_Node,function(){return false});PARENS(AST_Function,function(output){if(first_in_statement(output)){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 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){try{this.walk(new TreeWalker(function(node){if(node instanceof AST_Call)throw p}))}catch(ex){if(ex!==p)throw ex;return true}}});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(body,output,allow_directives){if(body.length>0)output.with_block(function(){display_body(body,false,output,allow_directives)});else output.print("{}")}DEFPRINT(AST_BlockStatement,function(self,output){print_bracketed(self.body,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.body,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(i0)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.body,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.body,output)});DEFPRINT(AST_Finally,function(self,output){output.print("finally");output.space();print_bracketed(self.body,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){if(!noin)node.print(output);else try{node.walk(new TreeWalker(function(node){if(node instanceof AST_Binary&&node.operator=="in")throw output}));node.print(output)}catch(ex){if(ex!==output)throw ex;node.print(output,true)}}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;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);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(self.property)});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("{}")});DEFPRINT(AST_ObjectKeyVal,function(self,output){var key=self.key;var quote=self.quote;if(output.option("quote_keys")){output.print_string(key+"")}else if((typeof key=="number"||!output.option("beautify")&&+key+""==key)&&parseFloat(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)}output.colon();self.value.print(output)});DEFPRINT(AST_ObjectSetter,function(self,output){output.print("set");output.space();self.key.print(output);self.value._do_print(output,true)});DEFPRINT(AST_ObjectGetter,function(self,output){output.print("get");output.space();self.key.print(output);self.value._do_print(output,true)});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("/"))}if(output.option("ascii_only")){str=output.to_ascii(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=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,{booleans:!false_by_default,cascade:!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_by_default,hoist_vars:false,ie8:false,if_return:!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_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"]),unsafe:false,unsafe_comps:false,unsafe_math:false,unsafe_proto:false,unsafe_regexp:false,unused:!false_by_default,warnings:false},true);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"];if(typeof toplevel=="string"){this.toplevel.funcs=/funcs/.test(toplevel);this.toplevel.vars=/vars/.test(toplevel)}else{this.toplevel=toplevel?return_true:return_false;this.toplevel.funcs=this.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]},toplevel:function(def){for(var i=0,len=def.orig.length;i0||this.option("reduce_vars"))node.reset_opt_flags(this,true);node=node.transform(this)}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_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)}}if(node instanceof AST_If){node.body=node.body.transform(tt);if(node.alternative){node.alternative=node.alternative.transform(tt)}}if(node instanceof AST_With){node.body=node.body.transform(tt)}return node});self.transform(tt)});AST_Node.DEFMETHOD("reset_opt_flags",function(compressor,rescan){var reduce_vars=rescan&&compressor.option("reduce_vars");var safe_ids=Object.create(null);var suppressor=new TreeWalker(function(node){if(node instanceof AST_Symbol){var d=node.definition();if(node instanceof AST_SymbolRef)d.references.push(node);d.fixed=false}});var tw=new TreeWalker(function(node,descend){node._squeezed=false;node._optimized=false;if(reduce_vars){if(node instanceof AST_Toplevel)node.globals.each(reset_def);if(node instanceof AST_Scope)node.variables.each(reset_def);if(node instanceof AST_SymbolRef){var d=node.definition();d.references.push(node);if(d.fixed===undefined||!safe_to_read(d)||is_modified(node,0,is_immutable(node.fixed_value()))){d.fixed=false}else{var parent=tw.parent();if(parent instanceof AST_Assign&&parent.operator=="="&&node===parent.right||parent instanceof AST_Call&&node!==parent.expression||parent instanceof AST_Return&&node===parent.value&&node.scope!==d.scope||parent instanceof AST_VarDef&&node===parent.value){d.escaped=true}}}if(node instanceof AST_SymbolCatch){node.definition().fixed=false}if(node instanceof AST_VarDef){var d=node.name.definition();if(d.fixed===undefined||safe_to_assign(d,node.value)){if(node.value){d.fixed=function(){return node.value};mark(d,false);descend()}else{d.fixed=null}mark(d,true);return true}else if(node.value){d.fixed=false}}if(node instanceof AST_Assign&&node.operator=="="&&node.left instanceof AST_SymbolRef){var d=node.left.definition();if(safe_to_assign(d,node.right)){d.references.push(node.left);d.fixed=function(){return node.right};mark(d,false);node.right.walk(tw);mark(d,true);return true}}if(node instanceof AST_Defun){var d=node.name.definition();if(d.global&&!compressor.toplevel(d)||safe_to_read(d)){d.fixed=false}else{d.fixed=node;mark(d,true)}var save_ids=safe_ids;safe_ids=Object.create(null);descend();safe_ids=save_ids;return true}if(node instanceof AST_Function){push();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)};mark(d,true)}else{d.fixed=false}})}descend();pop();return true}if(node instanceof AST_Accessor){var save_ids=safe_ids;safe_ids=Object.create(null);descend();safe_ids=save_ids;return true}if(node instanceof AST_Binary&&(node.operator=="&&"||node.operator=="||")){node.left.walk(tw);push();node.right.walk(tw);pop();return true}if(node instanceof AST_Conditional){node.condition.walk(tw);push();node.consequent.walk(tw);pop();push();node.alternative.walk(tw);pop();return true}if(node instanceof AST_If){node.condition.walk(tw);push();node.body.walk(tw);pop();if(node.alternative){push();node.alternative.walk(tw);pop()}return true}if(node instanceof AST_DWLoop){push();node.condition.walk(tw);node.body.walk(tw);pop();return true}if(node instanceof AST_LabeledStatement){push();node.body.walk(tw);pop();return true}if(node instanceof AST_For){if(node.init)node.init.walk(tw);if(node.condition){push();node.condition.walk(tw);pop()}push();node.body.walk(tw);pop();if(node.step){push();node.step.walk(tw);pop()}return true}if(node instanceof AST_ForIn){node.init.walk(suppressor);node.object.walk(tw);push();node.body.walk(tw);pop();return true}if(node instanceof AST_Try){push();walk_body(node,tw);pop();if(node.bcatch){push();node.bcatch.walk(tw);pop()}if(node.bfinally)node.bfinally.walk(tw);return true}if(node instanceof AST_SwitchBranch){push();descend();pop();return true}}});this.walk(tw);function mark(def,safe){safe_ids[def.id]=safe}function safe_to_read(def){if(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}}function safe_to_assign(def,value){if(!HOP(safe_ids,def.id))return false;if(!safe_to_read(def))return false;if(def.fixed===false)return false;if(def.fixed!=null&&(!value||def.references.length>0))return false;return!def.orig.some(function(sym){return sym instanceof AST_SymbolDefun||sym instanceof AST_SymbolLambda})}function push(){safe_ids=Object.create(safe_ids)}function pop(){safe_ids=Object.getPrototypeOf(safe_ids)}function reset_def(def){def.escaped=false;if(def.scope.uses_eval){def.fixed=false}else if(!def.global||compressor.toplevel(def)){def.fixed=undefined}else{def.fixed=false}def.references=[];def.should_replace=undefined}function is_immutable(value){return value&&value.is_constant()||value instanceof AST_Lambda}function is_modified(node,level,immutable){var parent=tw.parent(level);if(is_lhs(node,parent)||!immutable&&parent instanceof AST_Call&&parent.expression===node){return true}else if(parent instanceof AST_PropAccess&&parent.expression===node){return!immutable&&is_modified(parent,level+1)}}});AST_SymbolRef.DEFMETHOD("fixed_value",function(){var fixed=this.definition().fixed;if(!fixed||fixed instanceof AST_Node)return fixed;return fixed()});function is_lhs_read_only(lhs){return lhs instanceof AST_SymbolRef&&lhs.definition().orig[0]instanceof AST_SymbolLambda}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})}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)}}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_Switch)return x;if(x instanceof AST_For||x instanceof AST_ForIn||x instanceof AST_DWLoop){return x.body instanceof AST_BlockStatement?x.body:x}return x}function is_iife_call(node){if(node instanceof AST_Call&&!(node instanceof AST_New)){return node.expression instanceof AST_Function||is_iife_call(node.expression)}return false}function tighten_body(statements,compressor){var CHANGED,max_iter=10;do{CHANGED=false;statements=eliminate_spurious_blocks(statements);if(compressor.option("dead_code")){statements=eliminate_dead_code(statements,compressor)}if(compressor.option("if_return")){statements=handle_if_return(statements,compressor)}if(compressor.sequences_limit>0){statements=sequencesize(statements,compressor)}if(compressor.option("join_vars")){statements=join_consecutive_vars(statements,compressor)}if(compressor.option("collapse_vars")){statements=collapse(statements,compressor)}}while(CHANGED&&max_iter-- >0);return statements;function collapse(statements,compressor){var scope=compressor.find_parent(AST_Scope);if(scope.uses_eval||scope.uses_with)return statements;var candidates=[];var stat_index=statements.length;while(--stat_index>=0){extract_candidates(statements[stat_index]);while(candidates.length>0){var candidate=candidates.pop();var lhs=get_lhs(candidate);if(!lhs||is_lhs_read_only(lhs))continue;var lvalues=get_lvalues(candidate);if(lhs instanceof AST_SymbolRef)lvalues[lhs.name]=false;var side_effects=value_has_side_effects(candidate);var hit=false,abort=false,replaced=false;var tt=new TreeTransformer(function(node,descend){if(abort)return node;if(!hit){if(node===candidate){hit=true;return node}return}var parent=tt.parent();if(node instanceof AST_Assign&&node.operator!="="&&lhs.equivalent_to(node.left)||node instanceof AST_Debugger||node instanceof AST_IterationStatement&&!(node instanceof AST_For)||node instanceof AST_SymbolRef&&node.undeclared()||node instanceof AST_Try||node instanceof AST_With||parent instanceof AST_For&&node!==parent.init){abort=true;return node}if(!(node instanceof AST_SymbolDeclaration)&&!is_lhs(node,parent)&&lhs.equivalent_to(node)){CHANGED=replaced=abort=true;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){var def=candidate.name.definition();if(def.references.length==1&&(!def.global||compressor.toplevel(def))){return maintain_this_binding(parent,node,candidate.value)}return make_node(AST_Assign,candidate,{operator:"=",left:make_node(AST_SymbolRef,candidate.name,candidate.name),right:candidate.value})}return candidate}var sym;if(node instanceof AST_Call||node instanceof AST_Exit||node instanceof AST_PropAccess||node instanceof AST_SymbolRef&&(lvalues[node.name]||side_effects&&!references_in_scope(node.definition()))||(sym=lhs_or_def(node))&&get_symbol(sym).name in lvalues||parent instanceof AST_Binary&&(parent.operator=="&&"||parent.operator=="||")||parent instanceof AST_Case||parent instanceof AST_Conditional||parent instanceof AST_For||parent instanceof AST_If){if(!(node instanceof AST_Scope))descend(node,tt);abort=true;return node}if(node instanceof AST_Default||node instanceof AST_Scope)return node});for(var i=stat_index;!abort&&i1||def.references.length==1&&(!def.global||compressor.toplevel(def))){return make_node(AST_SymbolRef,expr.name,expr.name)}}else{return expr[expr instanceof AST_Assign?"left":"expression"]}}function get_symbol(node){while(node instanceof AST_PropAccess)node=node.expression;return node}function get_lvalues(expr){var lvalues=Object.create(null);if(expr instanceof AST_Unary)return lvalues;var scope;var tw=new TreeWalker(function(node,descend){if(node instanceof AST_Scope){var save_scope=scope;descend();scope=save_scope;return true}if(node instanceof AST_SymbolRef||node instanceof AST_PropAccess){var sym=get_symbol(node);if(sym instanceof AST_SymbolRef){lvalues[sym.name]=lvalues[sym.name]||is_lhs(node,tw.parent())}}});expr[expr instanceof AST_Assign?"right":"value"].walk(tw);return lvalues}function lhs_or_def(node){if(node instanceof AST_VarDef)return node.value&&node.name;return is_lhs(node.left,node)}function remove_candidate(expr){var found=false;return statements[stat_index].transform(new TreeTransformer(function(node,descend,in_list){if(found)return node;if(node===expr){found=true;if(node instanceof AST_VarDef){remove(node.name.definition().orig,node.name)}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]}if(node instanceof AST_Definitions&&node.definitions.length==0||node instanceof AST_SimpleStatement&&!node.body){return null}}))}function value_has_side_effects(expr){if(expr instanceof AST_Unary)return false;return expr[expr instanceof AST_Assign?"right":"value"].has_side_effects(compressor)}function references_in_scope(def){if(def.orig.length==1&&def.orig[0]instanceof AST_SymbolDefun)return true;if(def.scope!==scope)return false;return def.references.every(function(ref){return ref.scope===scope})}}function eliminate_spurious_blocks(statements){var seen_dirs=[];return statements.reduce(function(a,stat){if(stat instanceof AST_BlockStatement){CHANGED=true;a.push.apply(a,eliminate_spurious_blocks(stat.body))}else if(stat instanceof AST_EmptyStatement){CHANGED=true}else if(stat instanceof AST_Directive){if(seen_dirs.indexOf(stat.value)<0){a.push(stat);seen_dirs.push(stat.value)}else{CHANGED=true}}else{a.push(stat)}return a},[])}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;var ret=[];loop:for(var i=statements.length;--i>=0;){var stat=statements[i];switch(true){case in_lambda&&stat instanceof AST_Return&&!stat.value&&ret.length==0:CHANGED=true;continue loop;case stat instanceof AST_If:if(stat.body instanceof AST_Return){var value=stat.body.value;if((in_lambda&&ret.length==0||ret[0]instanceof AST_Return&&!ret[0].value)&&!value&&!stat.alternative){CHANGED=true;var cond=make_node(AST_SimpleStatement,stat.condition,{body:stat.condition});ret.unshift(cond);continue loop}if(ret[0]instanceof AST_Return&&value&&ret[0].value&&!stat.alternative){CHANGED=true;stat=stat.clone();stat.alternative=ret[0];ret[0]=stat.transform(compressor);continue loop}if(multiple_if_returns&&(ret.length==0||ret[0]instanceof AST_Return)&&value&&!stat.alternative&&in_lambda){CHANGED=true;stat=stat.clone();stat.alternative=ret[0]||make_node(AST_Return,stat,{value:null});ret[0]=stat.transform(compressor);continue loop}if(in_lambda&&(!value||value instanceof AST_UnaryPrefix&&value.operator=="void")){CHANGED=true;stat=stat.clone();stat.condition=stat.condition.negate(compressor);var body=as_statement_array(stat.alternative).concat(ret);var funs=extract_functions_from_statement_array(body);stat.body=make_node(AST_BlockStatement,stat,{body:body});stat.alternative=value?make_node(AST_SimpleStatement,value,{body:value.expression}):null;ret=funs.concat([stat.transform(compressor)]);continue loop}if(compressor.option("sequences")&&i>0&&statements[i-1]instanceof AST_If&&statements[i-1].body instanceof AST_Return&&ret.length==1&&in_lambda&&ret[0]instanceof AST_SimpleStatement&&!stat.alternative){CHANGED=true;ret.push(make_node(AST_Return,ret[0],{value:null}).transform(compressor));ret.unshift(stat);continue loop}}var ab=aborts(stat.body);var lct=ab instanceof AST_LoopControl?compressor.loopcontrol_target(ab):null;if(ab&&(ab instanceof AST_Return&&!ab.value&&in_lambda||ab instanceof AST_Continue&&self===loop_body(lct)||ab instanceof AST_Break&&lct instanceof AST_BlockStatement&&self===lct)){if(ab.label){remove(ab.label.thedef.references,ab)}CHANGED=true;var body=as_statement_array(stat.body).slice(0,-1);stat=stat.clone();stat.condition=stat.condition.negate(compressor);stat.body=make_node(AST_BlockStatement,stat,{body:as_statement_array(stat.alternative).concat(ret)});stat.alternative=make_node(AST_BlockStatement,stat,{body:body});ret=[stat.transform(compressor)];continue loop}var ab=aborts(stat.alternative);var lct=ab instanceof AST_LoopControl?compressor.loopcontrol_target(ab):null;if(ab&&(ab instanceof AST_Return&&!ab.value&&in_lambda||ab instanceof AST_Continue&&self===loop_body(lct)||ab instanceof AST_Break&&lct instanceof AST_BlockStatement&&self===lct)){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(ret)});stat.alternative=make_node(AST_BlockStatement,stat.alternative,{body:as_statement_array(stat.alternative).slice(0,-1)});ret=[stat.transform(compressor)];continue loop}ret.unshift(stat);break;default:ret.unshift(stat);break}}return ret;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 eliminate_dead_code(statements,compressor){var has_quit=false;var orig=statements.length;var self=compressor.self();statements=statements.reduce(function(a,stat){if(has_quit){extract_declarations_from_unreachable_code(compressor,stat,a)}else{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{a.push(stat)}}else{a.push(stat)}if(aborts(stat))has_quit=true}return a},[]);CHANGED=statements.length!=orig;return statements}function sequencesize(statements,compressor){if(statements.length<2)return statements;var seq=[],ret=[];function push_seq(){if(!seq.length)return;var body=make_sequence(seq[0],seq);ret.push(make_node(AST_SimpleStatement,body,{body:body}));seq=[]}statements.forEach(function(stat){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{push_seq();ret.push(stat)}});push_seq();ret=sequencesize_2(ret,compressor);CHANGED=ret.length!=statements.length;return ret}function sequencesize_2(statements,compressor){function cons_seq(right){ret.pop();var left=prev.body;if(!(left instanceof AST_Sequence)){left=make_node(AST_Sequence,left,{expressions:[left]})}merge_sequence(left.expressions,right);return left.transform(compressor)}var ret=[],prev=null;statements.forEach(function(stat){if(prev){if(stat instanceof AST_For){try{prev.body.walk(new TreeWalker(function(node){if(node instanceof AST_Binary&&node.operator=="in")throw cons_seq}));if(stat.init&&!(stat.init instanceof AST_Definitions)){stat.init=cons_seq(stat.init)}else if(!stat.init){stat.init=prev.body.drop_side_effect_free(compressor);ret.pop()}}catch(ex){if(ex!==cons_seq)throw ex}}else if(stat instanceof AST_If){stat.condition=cons_seq(stat.condition)}else if(stat instanceof AST_With){stat.expression=cons_seq(stat.expression)}else if(stat instanceof AST_Exit&&stat.value){stat.value=cons_seq(stat.value)}else if(stat instanceof AST_Exit){stat.value=cons_seq(make_node(AST_Undefined,stat).transform(compressor))}else if(stat instanceof AST_Switch){stat.expression=cons_seq(stat.expression)}}ret.push(stat);prev=stat instanceof AST_SimpleStatement?stat:null});return ret}function join_consecutive_vars(statements,compressor){var prev=null;return statements.reduce(function(a,stat){if(stat instanceof AST_Definitions&&prev&&prev.TYPE==stat.TYPE){prev.definitions=prev.definitions.concat(stat.definitions);CHANGED=true}else if(stat instanceof AST_For&&prev instanceof AST_Var&&(!stat.init||stat.init.TYPE==prev.TYPE)){CHANGED=true;a.pop();if(stat.init){stat.init.definitions=prev.definitions.concat(stat.init.definitions)}else{stat.init=prev}a.push(stat);prev=stat}else{prev=stat;a.push(stat)}return a},[])}}function extract_functions_from_statement_array(statements){var funs=[];for(var i=statements.length-1;i>=0;--i){var stat=statements[i];if(stat instanceof AST_Defun){statements.splice(i,1);funs.unshift(stat)}}return funs}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 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){var pure_getters=compressor.option("pure_getters");return!pure_getters||this._throw_on_access(pure_getters)});function is_strict(pure_getters){return/strict/.test(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(pure_getters){if(!is_strict(pure_getters))return false;for(var i=this.properties.length;--i>=0;)if(this.properties[i].value instanceof AST_Accessor)return true;return false});def(AST_Function,return_false);def(AST_UnaryPostfix,return_false);def(AST_UnaryPrefix,function(){return this.operator=="void"});def(AST_Binary,function(pure_getters){switch(this.operator){case"&&":return this.left._throw_on_access(pure_getters);case"||":return this.left._throw_on_access(pure_getters)&&this.right._throw_on_access(pure_getters);default:return false}});def(AST_Assign,function(pure_getters){return this.operator=="="&&this.right._throw_on_access(pure_getters)});def(AST_Conditional,function(pure_getters){return this.consequent._throw_on_access(pure_getters)||this.alternative._throw_on_access(pure_getters)});def(AST_Sequence,function(pure_getters){return this.expressions[this.expressions.length-1]._throw_on_access(pure_getters)});def(AST_SymbolRef,function(pure_getters){if(this.is_undefined)return true;if(!is_strict(pure_getters))return false;var fixed=this.fixed_value();return!fixed||fixed._throw_on_access(pure_getters)})})(function(node,func){node.DEFMETHOD("_throw_on_access",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)||(this.operator=="&&"||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.expressions[this.expressions.length-1].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.expressions[this.expressions.length-1].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.expressions[this.expressions.length-1].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 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){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(def){AST_Node.DEFMETHOD("evaluate",function(compressor){if(!compressor.option("evaluate"))return this;try{var val=this._eval(compressor);return!val||val instanceof RegExp||typeof val!="object"?val:this}catch(ex){if(ex!==def)throw ex;return this}});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)}});AST_Node.DEFMETHOD("constant_value",function(compressor){if(this instanceof AST_Constant&&!(this instanceof AST_RegExp)){return this.value}if(this instanceof AST_UnaryPrefix&&this.expression instanceof AST_Constant)switch(this.operator){case"!":return!this.expression.value;case"~":return~this.expression.value;case"-":return-this.expression.value;case"+":return+this.expression.value;default:throw new Error(string_template("Cannot evaluate unary expression {value}",{value:this.print_to_string()}))}var result=this.evaluate(compressor);if(result!==this){return result}throw new Error(string_template("Cannot evaluate constant [{file}:{line},{col}]",this.start))});def(AST_Statement,function(){throw new Error(string_template("Cannot evaluate a statement [{file}:{line},{col}]",this.start))});def(AST_Lambda,function(){throw def});function ev(node,compressor){if(!compressor)throw new Error("Compressor must be passed");return node._eval(compressor)}def(AST_Node,function(){throw def});def(AST_Constant,function(){return this.getValue()});def(AST_Array,function(compressor){if(compressor.option("unsafe")){return this.elements.map(function(element){return ev(element,compressor)})}throw def});def(AST_Object,function(compressor){if(compressor.option("unsafe")){var val={};for(var i=0,len=this.properties.length;i>":result=ev(left,c)>>ev(right,c);break;case">>>":result=ev(left,c)>>>ev(right,c);break;case"==":result=ev(left,c)==ev(right,c);break;case"===":result=ev(left,c)===ev(right,c);break;case"!=":result=ev(left,c)!=ev(right,c);break;case"!==":result=ev(left,c)!==ev(right,c);break;case"<":result=ev(left,c)":result=ev(left,c)>ev(right,c);break;case">=":result=ev(left,c)>=ev(right,c);break;default:throw def}if(isNaN(result)&&c.find_parent(AST_With)){throw def}return result});def(AST_Conditional,function(compressor){return ev(this.condition,compressor)?ev(this.consequent,compressor):ev(this.alternative,compressor)});def(AST_SymbolRef,function(compressor){if(!compressor.option("reduce_vars")||this._evaluating)throw def;this._evaluating=true;try{var fixed=this.fixed_value();if(!fixed)throw def;var value=ev(fixed,compressor);if(!HOP(fixed,"_eval"))fixed._eval=function(){return value};if(value&&typeof value=="object"&&this.definition().escaped)throw def;return value}finally{this._evaluating=false}});def(AST_PropAccess,function(compressor){if(compressor.option("unsafe")){var key=this.property;if(key instanceof AST_Node){key=ev(key,compressor)}var val=ev(this.expression,compressor);if(val&&HOP(val,key)){return val[key]}}throw def})})(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)})});AST_Call.DEFMETHOD("has_pure_annotation",function(compressor){if(!compressor.option("side_effects"))return false;if(this.pure!==undefined)return this.pure;var pure=false;var comments,last_comment;if(this.start&&(comments=this.start.comments_before)&&comments.length&&/[@#]__PURE__/.test((last_comment=comments[comments.length-1]).value)){pure=last_comment}return this.pure=pure});(function(def){def(AST_Node,return_true);def(AST_EmptyStatement,return_false);def(AST_Constant,return_false);def(AST_This,return_false);def(AST_Call,function(compressor){if(!this.has_pure_annotation(compressor)&&compressor.pure_funcs(this))return true;for(var i=this.args.length;--i>=0;){if(this.args[i].has_side_effects(compressor))return true}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_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_Defun,return_true);def(AST_Function,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.undeclared()});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 this.expressions.some(function(expression,index){return expression.has_side_effects(compressor)})})})(function(node,func){node.DEFMETHOD("has_side_effects",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_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){self.body=tighten_body(self.body,compressor);return self});OPT(AST_BlockStatement,function(self,compressor){self.body=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});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;if(!drop_funcs&&!drop_vars)return;var assign_as_unused=!/keep_assign/.test(compressor.option("unused"));var in_use=[];var in_use_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){if(node instanceof AST_Defun){if(!drop_funcs&&scope===self){var node_def=node.name.definition();if(!(node_def.id in in_use_ids)){in_use_ids[node_def.id]=true;in_use.push(node_def)}}initializations.add(node.name.name,node);return true}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(def.name.name,def.value);if(def.value.has_side_effects(compressor)){def.value.walk(tw)}}});return true}if(assign_as_unused&&node instanceof AST_Assign&&node.operator=="="&&node.left instanceof AST_SymbolRef&&scope===self){node.right.walk(tw);return true}if(node instanceof AST_SymbolRef){var 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}}});self.walk(tw);for(var i=0;i1)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){if(!(node.name.definition().id in in_use_ids)){compressor[node.name.unreferenced()?"warn":"info"]("Dropping unused function {name} [{file}:{line},{col}]",template(node.name));return make_node(AST_EmptyStatement,node)}return node}if(drop_vars&&node instanceof AST_Definitions&&!(tt.parent()instanceof AST_ForIn&&tt.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(sym.id in in_use_ids){if(def.name instanceof AST_SymbolVar){var var_defs=var_defs_by_id.get(sym.id);if(var_defs.length>1&&!def.value){compressor.warn("Dropping duplicated definition of variable {name} [{file}:{line},{col}]",template(def.name));remove(var_defs,def);remove(sym.orig,def.name);return}}if(def.value){if(side_effects.length>0){if(tail.length>0){merge_sequence(side_effects,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)merge_sequence(side_effects,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));merge_sequence(side_effects,value)}else{compressor[def.name.unreferenced()?"warn":"info"]("Dropping unused variable {name} [{file}:{line},{col}]",template(def.name))}remove(sym.orig,def.name)}});if(head.length==0&&tail.length==1&&tail[0].name instanceof AST_SymbolVar){var var_defs=var_defs_by_id.get(tail[0].name.definition().id);if(var_defs.length>1){var def=tail.pop();compressor.warn("Converting duplicated definition of variable {name} to assignment [{file}:{line},{col}]",template(def.name));remove(var_defs,def);remove(def.name.definition().orig,def.name);side_effects.unshift(make_node(AST_Assign,def,{operator:"=",left:make_node(AST_SymbolRef,def.name,def.name),right:def.value}))}}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(drop_vars&&assign_as_unused&&node instanceof AST_Assign&&node.operator=="="&&node.left instanceof AST_SymbolRef){var def=node.left.definition();if(!(def.id in in_use_ids)&&self.variables.get(def.name)===def){return maintain_this_binding(tt.parent(),node,node.right.transform(tt))}}if(node instanceof AST_For){descend(node,this);if(node.init instanceof AST_BlockStatement){var block=node.init;node.init=block.body.pop();block.body.push(node);return in_list?MAP.splice(block.body):block}else if(node.init instanceof AST_SimpleStatement){node.init=node.init.body}else if(is_empty(node.init)){node.init=null}return node}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&&node!==self)return node;function template(sym){return{name:sym.name,file:sym.start.file,line:sym.start.line,col:sym.start.col}}});self.transform(tt)});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(node instanceof AST_Defun&&hoist_funs){hoisted.push(node);return make_node(AST_EmptyStatement,node)}if(node instanceof AST_Var&&hoist_vars){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;i0){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){body=body[0].body.slice();body.unshift(make_node(AST_SimpleStatement,self.expression,{body:self.expression}));return make_node(AST_BlockStatement,self,{body:body}).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){self.body=tighten_body(self.body,compressor);if(self.bcatch&&self.bfinally&&all(self.bfinally.body,is_empty))self.bfinally=null;if(all(self.body,is_empty)){var body=[];if(self.bcatch)extract_declarations_from_unreachable_code(compressor,self.bcatch,body);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}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;if(compressor.option("reduce_vars")&&exp instanceof AST_SymbolRef){var def=exp.definition();var fixed=exp.fixed_value();if(fixed instanceof AST_Defun){def.fixed=fixed=make_node(AST_Function,fixed,fixed).clone(true)}if(fixed instanceof AST_Function){exp=fixed;if(compressor.option("unused")&&def.references.length==1&&!(def.scope.uses_arguments&&def.orig[0]instanceof AST_SymbolFunarg)&&!def.scope.uses_eval&&compressor.find_parent(AST_Scope)===def.scope){self.expression=exp}}}if(compressor.option("unused")&&exp instanceof AST_Function&&!exp.uses_arguments&&!exp.uses_eval){var pos=0,last=0;for(var i=0,len=self.args.length;i=exp.argnames.length;if(trim||exp.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(exp instanceof AST_SymbolRef&&exp.undeclared()){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"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="(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.mangle_names();var fun;try{ast.walk(new TreeWalker(function(node){if(node instanceof AST_Lambda){fun=node;throw ast}}))}catch(ex){if(ex!==ast)throw ex}if(!fun)return self;var args=fun.argnames.map(function(arg,i){return make_node(AST_String,self.args[i],{value:arg.print_to_string()})});var code=OutputStream();AST_BlockStatement.prototype._codegen.call(fun,fun,code);code=code.toString().replace(/^\{|\}$/g,"");args.push(make_node(AST_String,self.args[self.args.length-1],{value:code}));self.args=args;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{console.log(ex);throw ex}}}break}}else if(exp instanceof AST_Dot&&exp.property=="toString"&&self.args.length==0){return make_node(AST_Binary,self,{left:make_node(AST_String,self,{value:""}),operator:"+",right:exp.expression}).optimize(compressor)}else if(exp instanceof AST_Dot&&exp.expression instanceof AST_Array&&exp.property=="join")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)}else if(exp instanceof AST_Dot&&exp.expression.is_string(compressor)&&exp.property=="charAt"){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)}}}if(exp instanceof AST_Function){if(exp.body[0]instanceof AST_Return){var value=exp.body[0].value;if(!value||value.is_constant_expression()){var args=self.args.concat(value||make_node(AST_Undefined,self));return make_sequence(self,args).transform(compressor)}}if(compressor.option("side_effects")&&all(exp.body,is_empty)){var args=self.args.concat(make_node(AST_Undefined,self));return make_sequence(self,args).transform(compressor)}}if(compressor.option("drop_console")){if(exp instanceof AST_PropAccess){var name=exp.expression;while(name.expression){name=name.expression}if(name instanceof AST_SymbolRef&&name.name=="console"&&name.undeclared()){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)}return self});OPT(AST_New,function(self,compressor){if(compressor.option("unsafe")){var exp=self.expression;if(exp instanceof AST_SymbolRef&&exp.undeclared()){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&&compressor.option("cascade"))trim_left_for_assignment();if(end==0){self=maintain_this_binding(compressor.parent(),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(index0&&is_undefined(expressions[end],compressor))end--;if(end0){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("== === != !== * & | ^");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"!==":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.operator=self.operator.substr(0,2)}case"==":case"!=":if(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.undeclared():!(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+="="}}break}if(compressor.option("booleans")&&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)}if(compressor.option("unsafe_comps")){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.evaluate(compressor);if(!ll){compressor.warn("Condition left of && always false [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),self,self.left).optimize(compressor)}else if(ll!==self.left){compressor.warn("Condition left of && always true [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),self,self.right).optimize(compressor)}if(compressor.option("booleans")&&compressor.in_boolean_context()){var rr=self.right.evaluate(compressor);if(!rr){compressor.warn("Boolean && always false [{file}:{line},{col}]",self.start);return make_sequence(self,[self.left,make_node(AST_False,self)]).optimize(compressor)}else if(rr!==self.right){compressor.warn("Dropping side-effect-free && in boolean context [{file}:{line},{col}]",self.start);return self.left.optimize(compressor)}}break;case"||":var ll=self.left.evaluate(compressor);if(!ll){compressor.warn("Condition left of || always false [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),self,self.right).optimize(compressor)}else if(ll!==self.left){compressor.warn("Condition left of || always true [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),self,self.left).optimize(compressor)}if(compressor.option("booleans")&&compressor.in_boolean_context()){var rr=self.right.evaluate(compressor);if(!rr){compressor.warn("Dropping side-effect-free || in boolean context [{file}:{line},{col}]",self.start);return self.left.optimize(compressor)}else if(rr!==self.right){compressor.warn("Boolean || always true [{file}:{line},{col}]",self.start);return make_sequence(self,[self.left,make_node(AST_True,self)]).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&&(self.operator=="&&"||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});OPT(AST_SymbolRef,function(self,compressor){var def=self.resolve_defines(compressor);if(def){return def.optimize(compressor)}if(!compressor.option("ie8")&&self.undeclared()&&(!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("evaluate")&&compressor.option("reduce_vars")&&is_lhs(self,compressor.parent())!==self){var d=self.definition();var fixed=self.fixed_value();if(fixed){if(d.should_replace===undefined){var init=fixed.evaluate(compressor);if(init!==fixed&&(compressor.option("unsafe_regexp")||!(init instanceof RegExp))){init=make_node_from_constant(init,fixed);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")&&(!d.global||compressor.toplevel(d))){overhead=(name_length+2+value_length)/d.references.length}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")){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});var ASSIGN_OPS=["+","-","/","*","%",">>","<<",">>>","|","^","&"];var ASSIGN_OPS_COMMUTATIVE=["*","|","^","&"];OPT(AST_Assign,function(self,compressor){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});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(),self,self.consequent)}else{compressor.warn("Condition always false [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),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})})}if(consequent instanceof AST_Call&&alternative.TYPE===consequent.TYPE&&consequent.args.length==1&&alternative.args.length==1&&consequent.expression.equivalent_to(alternative.expression)&&!consequent.expression.has_side_effects(compressor)){consequent.args[0]=make_node(AST_Conditional,self,{condition:self.condition,consequent:consequent.args[0],alternative:alternative.args[0]});return consequent}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(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||node instanceof AST_UnaryPrefix&&node.operator=="!"&&node.expression instanceof AST_Constant&&!node.expression.value}function is_false(node){return node instanceof AST_False||node instanceof AST_UnaryPrefix&&node.operator=="!"&&node.expression instanceof AST_Constant&&!!node.expression.value}});OPT(AST_Boolean,function(self,compressor){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 prop=self.property;if(prop instanceof AST_String&&compressor.option("properties")){prop=prop.getValue();if(RESERVED_WORDS(prop)?!compressor.option("ie8"):is_identifier_string(prop)){return make_node(AST_Dot,self,{expression:self.expression,property:prop}).optimize(compressor)}var v=parseFloat(prop);if(!isNaN(v)&&v.toString()==prop){self.property=make_node(AST_Number,self.property,{value:v})}}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});OPT(AST_Dot,function(self,compressor){var def=self.resolve_defines(compressor);if(def){return def.optimize(compressor)}var prop=self.property;if(RESERVED_WORDS(prop)&&compressor.option("ie8")){return make_node(AST_Sub,self,{expression:self.expression,property:make_node(AST_String,self,{value:prop})}).optimize(compressor)}if(compressor.option("unsafe_proto")&&self.expression instanceof AST_Dot&&self.expression.property=="prototype"){var exp=self.expression.expression;if(exp instanceof AST_SymbolRef&&exp.undeclared())switch(exp.name){case"Array":self.expression=make_node(AST_Array,self.expression,{elements:[]});break;case"Object":self.expression=make_node(AST_Object,self.expression,{properties:[]});break;case"String":self.expression=make_node(AST_String,self.expression,{value:""});break}}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.option("booleans")&&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;i1||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 mangle_properties(ast,options){options=defaults(options,{builtins:false,cache:null,debug:false,keep_quoted:false,only_cache:false,regex:null,reserved:null});var reserved=options.reserved||[];if(!options.builtins)find_builtins(reserved);var cache=options.cache;if(cache==null){cache={cname:-1,props:new Dictionary}}var regex=options.regex;var keep_quoted=options.keep_quoted;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=[];var to_keep={};ast.walk(new TreeWalker(function(node){if(node instanceof AST_ObjectKeyVal){add(node.key,keep_quoted&&node.quote)}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,keep_quoted)}}));return ast.transform(new TreeTransformer(function(node){if(node instanceof AST_ObjectKeyVal){if(!(keep_quoted&&node.quote))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(node instanceof AST_Sub){if(!keep_quoted)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.props.has(name)}if(/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(name))return false;return true}function should_mangle(name){if(keep_quoted&&name in to_keep)return false;if(regex&&!regex.test(name))return false;if(reserved.indexOf(name)>=0)return false;return cache.props.has(name)||names_to_mangle.indexOf(name)>=0}function add(name,keep){if(keep){to_keep[name]=true;return}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.props.get(name);if(!mangled){if(debug){var debug_mangled="_$"+name+"$"+debug_name_suffix+"_";if(can_mangle(debug_mangled)&&!(keep_quoted&&debug_mangled in to_keep)){mangled=debug_mangled}}if(!mangled){do{mangled=base54(++cache.cname)}while(!can_mangle(mangled)||keep_quoted&&mangled in to_keep)}cache.props.set(name,mangled)}return mangled}function addStrings(node,keep){var out={};try{(function walk(node){node.walk(new TreeWalker(function(node){if(node instanceof AST_Sequence){walk(node.expressions[node.expressions.length-1]);return true}if(node instanceof AST_String){add(node.value,keep);return true}if(node instanceof AST_Conditional){walk(node.consequent);walk(node.alternative);return true}throw out}))})(node)}catch(ex){if(ex!==out)throw ex}}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 minify(files,options){var warn_function=AST_Node.warn_function;try{if(typeof files=="string"){files=[files]}options=defaults(options,{compress:{},ie8:false,keep_fnames:false,mangle:{},output:{},parse:{},sourceMap:false,toplevel:false,warnings:false,wrap:false},true);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"]);if(options.mangle){options.mangle=defaults(options.mangle,{cache:null,eval:false,ie8:false,keep_fnames:false,properties:false,reserved:[],toplevel:false},true)}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)}}var toplevel;if(files instanceof AST_Toplevel){toplevel=files}else{options.parse=options.parse||{};options.parse.toplevel=null;for(var name in files){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(options.wrap){toplevel=toplevel.wrap_commonjs(options.wrap)}if(options.compress){toplevel.figure_out_scope(options.mangle);toplevel=new Compressor(options.compress).compress(toplevel)}if(options.mangle){toplevel.figure_out_scope(options.mangle);base54.reset();toplevel.compute_char_frequency(options.mangle);toplevel.mangle_names(options.mangle);if(options.mangle.properties){toplevel=mangle_properties(toplevel,options.mangle.properties)}}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){for(var name in files){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(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["_push_uniq"]=push_uniq})(typeof exports=="undefined"?exports={}:exports); +(function(exports){"use strict";function array_to_hash(a){var ret=Object.create(null);for(var i=0;i=0}function find_if(func,array){for(var i=0,n=array.length;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=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=0})}function makePredicate(words){if(!(words instanceof Array))words=words.split(" ");var f="",cats=[];out:for(var i=0;i3){cats.sort(function(a,b){return b.length-a.length});f+="switch(str.length){";for(var i=0;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},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 instanceof AST_Call&&p.expression===node&&!(p instanceof AST_New)||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 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 scope 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!)",scope:"[AST_Scope/S] The scope that this directive affects",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 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)"}},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=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;i0){var p=stack[--i];if(p instanceof AST_If&&p.condition===self||p instanceof AST_Conditional&&p.condition===self||p instanceof AST_DWLoop&&p.condition===self||p instanceof AST_For&&p.condition===self||p instanceof AST_UnaryPrefix&&p.operator=="!"&&p.expression===self){return true}if(!(p instanceof AST_Binary&&(p.operator=="&&"||p.operator=="||")))return false;self=p}},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 REGEXP_MODIFIERS=makePredicate(characters("gmsiy"));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_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="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;i0};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","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{});var STATEMENTS_WITH_LABELS=array_to_hash(["for","do","while","switch"]);var ATOMIC_START_TOKEN=array_to_hash(["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});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 can_insert_semicolon(){return!options.strict&&(S.token.nlb||is("eof")||is("punc","}"))}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();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(){handle_regexp();switch(S.token.type){case"string":if(S.in_directives){var token=peek();if(S.token.raw.indexOf("\\")==-1&&(token.nlb||is_token(token,"eof")||is_token(token,"punc",";")||is_token(token,"punc","}"))){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":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(S.token.nlb)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&&init.definitions.length>1)croak("Only one variable declaration allowed in for..in loop");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 lhs=init instanceof AST_Var?init.definitions[0].name:null;var obj=expression(true);expect(")");return new AST_ForIn({init:init,name:lhs,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();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_();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_(){expect("{");var a=[];while(!is("punc","}")){if(is("eof"))unexpected();a.push(statement())}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=[]}return subscripts(new AST_New({start:start,expression:newexp,args:args,end:prev()}),allow_calls)};function as_atom_node(){var tok=S.token,ret;switch(tok.type){case"name":case"keyword":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;case"operator":if(!is_identifier_string(tok.value)){croak("Invalid getter/setter name: "+tok.value,tok.line,tok.col,tok.pos)}ret=_make_symbol(AST_SymbolRef);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);ex.start=start;ex.end=S.token;expect(")");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}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();return subscripts(new AST_Call({start:start,expression:expr,args:expr_list(")"),end:prev()}),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)&&!S.token.nlb){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());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){if(!tw.after){x=this;descend(x,tw)}else{tw.stack[tw.stack.length-1]=x=this;descend(x,tw);y=tw.after(x,in_list);if(y!==undefined)x=y}}tw.pop(this);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,index,orig){this.name=orig.name;this.orig=[orig];this.scope=scope;this.references=[];this.global=false;this.mangled_name=null;this.undeclared=false;this.index=index;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(this.defun&&(def=this.defun.variables.get(this.name))){this.mangled_name=def.mangled_name||def.name}else this.mangled_name=s.next_mangled(options,this);if(this.global&&cache){cache.set(this.name,this.mangled_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)}else if(node instanceof AST_SymbolDefun){(node.scope=defun.parent_scope).def_function(node)}else if(node instanceof AST_SymbolVar){defun.def_variable(node);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);var func=null;var globals=self.globals=new Dictionary;var tw=new TreeWalker(function(node,descend){if(node instanceof AST_Lambda){var prev_func=func;func=node;descend();func=prev_func;return true}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(node.scope instanceof AST_Lambda&&name=="arguments"){node.scope.uses_arguments=true}if(!sym){sym=self.def_global(node)}node.thedef=sym;node.reference(options);return true}});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;return true}}))}if(options.cache){this.cname=options.cache.cname}});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,globals.size(),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){this.functions.set(symbol.name,this.def_variable(symbol))});AST_Scope.DEFMETHOD("def_variable",function(symbol){var def;if(!this.variables.has(symbol.name)){def=new SymbolDef(this,this.variables.size(),symbol);this.variables.set(symbol.name,def);def.global=!this.parent_scope}else{def=this.variables.get(symbol.name);def.orig.push(symbol)}return symbol.thedef=def});AST_Scope.DEFMETHOD("next_mangled",function(options){var ext=this.enclosed;out:while(true){var m=base54(++this.cname);if(!is_identifier(m))continue;if(options.reserved.indexOf(m)>=0)continue;for(var i=ext.length;--i>=0;){var sym=ext[i];var name=sym.mangled_name||sym.unmangleable(options)&&sym.name;if(m==name)continue out}return m}});AST_Function.DEFMETHOD("next_mangled",function(options,def){var tricky_def=def.orig[0]instanceof AST_SymbolFunarg&&this.name&&this.name.definition();var tricky_name=tricky_def?tricky_def.mangled_name||tricky_def.name:null;while(true){var name=AST_Lambda.prototype.next_mangled.call(this,options,def);if(!tricky_name||tricky_name!=name)return name}});AST_Symbol.DEFMETHOD("unmangleable",function(options){return this.definition().unmangleable(options)});AST_Label.DEFMETHOD("unmangleable",function(){return false});AST_Symbol.DEFMETHOD("unreferenced",function(){return this.definition().references.length==0&&!(this.scope.uses_eval||this.scope.uses_with)});AST_Symbol.DEFMETHOD("undeclared",function(){return this.definition().undeclared});AST_LabelRef.DEFMETHOD("undeclared",function(){return false});AST_Label.DEFMETHOD("undeclared",function(){return false});AST_Symbol.DEFMETHOD("definition",function(){return this.thedef});AST_Symbol.DEFMETHOD("global",function(){return this.definition().global});AST_Toplevel.DEFMETHOD("_default_mangler_options",function(options){return defaults(options,{eval:false,ie8:false,keep_fnames:false,reserved:[],toplevel:false})});AST_Toplevel.DEFMETHOD("mangle_names",function(options){options=this._default_mangler_options(options);options.reserved.push("arguments");var lname=-1;var to_mangle=[];if(options.cache){this.globals.each(function(symbol){if(options.reserved.indexOf(symbol.name)<0){to_mangle.push(symbol)}})}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){var p=tw.parent(),a=[];node.variables.each(function(symbol){if(options.reserved.indexOf(symbol.name)<0){a.push(symbol)}});to_mangle.push.apply(to_mangle,a);return}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_SymbolCatch){to_mangle.push(node.definition());return}});this.walk(tw);to_mangle.forEach(function(def){def.mangle(options)});if(options.cache){options.cache.cname=this.cname}});AST_Toplevel.DEFMETHOD("compute_char_frequency",function(options){options=this._default_mangler_options(options);var tw=new TreeWalker(function(node){if(node instanceof AST_Constant)base54.consider(node.print_to_string());else if(node instanceof AST_Return)base54.consider("return");else if(node instanceof AST_Throw)base54.consider("throw");else if(node instanceof AST_Continue)base54.consider("continue");else if(node instanceof AST_Break)base54.consider("break");else if(node instanceof AST_Debugger)base54.consider("debugger");else if(node instanceof AST_Directive)base54.consider(node.value);else if(node instanceof AST_While)base54.consider("while");else if(node instanceof AST_Do)base54.consider("do while");else if(node instanceof AST_If){base54.consider("if");if(node.alternative)base54.consider("else")}else if(node instanceof AST_Var)base54.consider("var");else if(node instanceof AST_Lambda)base54.consider("function");else if(node instanceof AST_For)base54.consider("for");else if(node instanceof AST_ForIn)base54.consider("for in");else if(node instanceof AST_Switch)base54.consider("switch");else if(node instanceof AST_Case)base54.consider("case");else if(node instanceof AST_Default)base54.consider("default");else if(node instanceof AST_With)base54.consider("with");else if(node instanceof AST_ObjectSetter)base54.consider("set"+node.key);else if(node instanceof AST_ObjectGetter)base54.consider("get"+node.key);else if(node instanceof AST_ObjectKeyVal)base54.consider(node.key);else if(node instanceof AST_New)base54.consider("new");else if(node instanceof AST_This)base54.consider("this");else if(node instanceof AST_Try)base54.consider("try");else if(node instanceof AST_Catch)base54.consider("catch");else if(node instanceof AST_Finally)base54.consider("finally");else if(node instanceof AST_Symbol&&node.unmangleable(options))base54.consider(node.name);else if(node instanceof AST_Unary||node instanceof AST_Binary)base54.consider(node.operator);else if(node instanceof AST_Dot)base54.consider(node.property)});this.walk(tw);base54.sort()});var base54=function(){var string="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";var chars,frequency;function reset(){frequency=Object.create(null);chars=string.split("").map(function(ch){return ch.charCodeAt(0)});chars.forEach(function(ch){frequency[ch]=0})}base54.consider=function(str){for(var i=str.length;--i>=0;){var code=str.charCodeAt(i);if(code in frequency)++frequency[code]}};base54.sort=function(){chars=mergeSort(chars,function(a,b){if(is_digit(a)&&!is_digit(b))return 1;if(is_digit(b)&&!is_digit(a))return-1;return frequency[b]-frequency[a]})};base54.reset=reset;reset();base54.get=function(){return chars};base54.freq=function(){return frequency};function base54(num){var ret="",base=54;num++;do{num--;ret+=String.fromCharCode(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){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,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="";function to_ascii(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 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-7]/.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,'\\"')+'"'}if(options.ascii_only)str=to_ascii(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();if(options.ascii_only)name=to_ascii(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 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);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_line0){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(){print("\n")}: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}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},newline:newline,print:print,space:space,comma:comma,colon:colon,last:function(){return last},semicolon:semicolon,force_semicolon:force_semicolon,to_ascii:to_ascii,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]},comment_filter:comment_filter,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 use_asm=false;var in_directive=false;AST_Node.DEFMETHOD("print",function(stream,force_parens){var self=this,generator=self._codegen,prev_use_asm=use_asm;if(self instanceof AST_Directive&&self.value=="use asm"&&stream.parent()instanceof AST_Scope){use_asm=true}function doit(){self.add_comments(stream);self.add_source_map(stream);generator(self,stream)}stream.push_node(self);if(force_parens||self.needs_parens(stream)){stream.with_parens(doit)}else{doit()}stream.pop_node();if(self instanceof AST_Scope){use_asm=prev_use_asm}});AST_Node.DEFMETHOD("print_to_string",function(options){var s=OutputStream(options);if(!options)s._readonly=true;this.print(s);return s.get()});AST_Node.DEFMETHOD("add_comments",function(output){if(output._readonly)return;var self=this;var start=self.start;if(start&&!start._comments_dumped){start._comments_dumped=true;var comments=start.comments_before||[];if(self instanceof AST_Exit&&self.value){self.value.walk(new TreeWalker(function(node){if(node.start&&node.start.comments_before){comments=comments.concat(node.start.comments_before);node.start.comments_before=[]}if(node instanceof AST_Function||node instanceof AST_Array||node instanceof AST_Object){return true}}))}if(output.pos()==0){if(comments.length>0&&output.option("shebang")&&comments[0].type=="comment5"){output.print("#!"+comments.shift().value+"\n");output.indent()}var preamble=output.option("preamble");if(preamble){output.print(preamble.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}}comments=comments.filter(output.comment_filter,self);if(!output.option("beautify")&&comments.length>0&&/comment[134]/.test(comments[0].type)&&output.col()!==0&&comments[0].nlb){output.print("\n")}comments.forEach(function(c){if(/comment[134]/.test(c.type)){output.print("//"+c.value+"\n");output.indent()}else if(c.type=="comment2"){output.print("/*"+c.value+"*/");if(start.nlb){output.print("\n");output.indent()}else{output.space()}}})}});function PARENS(nodetype,func){if(Array.isArray(nodetype)){nodetype.forEach(function(nodetype){PARENS(nodetype,func)})}else{nodetype.DEFMETHOD("needs_parens",func)}}PARENS(AST_Node,function(){return false});PARENS(AST_Function,function(output){if(first_in_statement(output)){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 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){try{this.walk(new TreeWalker(function(node){if(node instanceof AST_Call)throw p}))}catch(ex){if(ex!==p)throw ex;return true}}});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(body,output,allow_directives){if(body.length>0)output.with_block(function(){display_body(body,false,output,allow_directives)});else output.print("{}")}DEFPRINT(AST_BlockStatement,function(self,output){print_bracketed(self.body,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.body,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(i0)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.body,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.body,output)});DEFPRINT(AST_Finally,function(self,output){output.print("finally");output.space();print_bracketed(self.body,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){if(!noin)node.print(output);else try{node.walk(new TreeWalker(function(node){if(node instanceof AST_Binary&&node.operator=="in")throw output}));node.print(output)}catch(ex){if(ex!==output)throw ex;node.print(output,true)}}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;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);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(self.property)});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("{}")});DEFPRINT(AST_ObjectKeyVal,function(self,output){var key=self.key;var quote=self.quote;if(output.option("quote_keys")){output.print_string(key+"")}else if((typeof key=="number"||!output.option("beautify")&&+key+""==key)&&parseFloat(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)}output.colon();self.value.print(output)});DEFPRINT(AST_ObjectSetter,function(self,output){output.print("set");output.space();self.key.print(output);self.value._do_print(output,true)});DEFPRINT(AST_ObjectGetter,function(self,output){output.print("get");output.space();self.key.print(output);self.value._do_print(output,true)});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("/"))}if(output.option("ascii_only")){str=output.to_ascii(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=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,{booleans:!false_by_default,cascade:!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_by_default,hoist_vars:false,ie8:false,if_return:!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_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"]),unsafe:false,unsafe_comps:false,unsafe_math:false,unsafe_proto:false,unsafe_regexp: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)){var ast=parse(global_defs[key]);if(ast.body.length==1&&ast.body[0]instanceof AST_SimpleStatement){global_defs[key.slice(1)]=ast.body[0].body}else throw new Error(string_template("Can't handle expression: {value}",{value:global_defs[key]}))}}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"];if(typeof toplevel=="string"){this.toplevel.funcs=/funcs/.test(toplevel);this.toplevel.vars=/vars/.test(toplevel)}else{this.toplevel=toplevel?return_true:return_false;this.toplevel.funcs=this.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]},toplevel:function(def){for(var i=0,len=def.orig.length;i0||this.option("reduce_vars"))node.reset_opt_flags(this,true);node=node.transform(this)}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_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)}}if(node instanceof AST_If){node.body=node.body.transform(tt);if(node.alternative){node.alternative=node.alternative.transform(tt)}}if(node instanceof AST_With){node.body=node.body.transform(tt)}return node});self.transform(tt)});AST_Node.DEFMETHOD("reset_opt_flags",function(compressor,rescan){var reduce_vars=rescan&&compressor.option("reduce_vars");var safe_ids=Object.create(null);var suppressor=new TreeWalker(function(node){if(node instanceof AST_Symbol){var d=node.definition();if(node instanceof AST_SymbolRef)d.references.push(node);d.fixed=false}});var tw=new TreeWalker(function(node,descend){node._squeezed=false;node._optimized=false;if(reduce_vars){if(node instanceof AST_Toplevel)node.globals.each(reset_def);if(node instanceof AST_Scope)node.variables.each(reset_def);if(node instanceof AST_SymbolRef){var d=node.definition();d.references.push(node);if(d.fixed===undefined||!safe_to_read(d)||is_modified(node,0,is_immutable(node.fixed_value()))){d.fixed=false}else{var parent=tw.parent();if(parent instanceof AST_Assign&&parent.operator=="="&&node===parent.right||parent instanceof AST_Call&&node!==parent.expression||parent instanceof AST_Return&&node===parent.value&&node.scope!==d.scope||parent instanceof AST_VarDef&&node===parent.value){d.escaped=true}}}if(node instanceof AST_SymbolCatch){node.definition().fixed=false}if(node instanceof AST_VarDef){var d=node.name.definition();if(d.fixed===undefined||safe_to_assign(d,node.value)){if(node.value){d.fixed=function(){return node.value};mark(d,false);descend()}else{d.fixed=null}mark(d,true);return true}else if(node.value){d.fixed=false}}if(node instanceof AST_Assign&&node.operator=="="&&node.left instanceof AST_SymbolRef){var d=node.left.definition();if(safe_to_assign(d,node.right)){d.references.push(node.left);d.fixed=function(){return node.right};mark(d,false);node.right.walk(tw);mark(d,true);return true}}if(node instanceof AST_Defun){var d=node.name.definition();if(d.global&&!compressor.toplevel(d)||safe_to_read(d)){d.fixed=false}else{d.fixed=node;mark(d,true)}var save_ids=safe_ids;safe_ids=Object.create(null);descend();safe_ids=save_ids;return true}if(node instanceof AST_Function){push();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)};mark(d,true)}else{d.fixed=false}})}descend();pop();return true}if(node instanceof AST_Accessor){var save_ids=safe_ids;safe_ids=Object.create(null);descend();safe_ids=save_ids;return true}if(node instanceof AST_Binary&&(node.operator=="&&"||node.operator=="||")){node.left.walk(tw);push();node.right.walk(tw);pop();return true}if(node instanceof AST_Conditional){node.condition.walk(tw);push();node.consequent.walk(tw);pop();push();node.alternative.walk(tw);pop();return true}if(node instanceof AST_If){node.condition.walk(tw);push();node.body.walk(tw);pop();if(node.alternative){push();node.alternative.walk(tw);pop()}return true}if(node instanceof AST_DWLoop){push();node.condition.walk(tw);node.body.walk(tw);pop();return true}if(node instanceof AST_LabeledStatement){push();node.body.walk(tw);pop();return true}if(node instanceof AST_For){if(node.init)node.init.walk(tw);if(node.condition){push();node.condition.walk(tw);pop()}push();node.body.walk(tw);pop();if(node.step){push();node.step.walk(tw);pop()}return true}if(node instanceof AST_ForIn){node.init.walk(suppressor);node.object.walk(tw);push();node.body.walk(tw);pop();return true}if(node instanceof AST_Try){push();walk_body(node,tw);pop();if(node.bcatch){push();node.bcatch.walk(tw);pop()}if(node.bfinally)node.bfinally.walk(tw);return true}if(node instanceof AST_SwitchBranch){push();descend();pop();return true}}});this.walk(tw);function mark(def,safe){safe_ids[def.id]=safe}function safe_to_read(def){if(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}}function safe_to_assign(def,value){if(!HOP(safe_ids,def.id))return false;if(!safe_to_read(def))return false;if(def.fixed===false)return false;if(def.fixed!=null&&(!value||def.references.length>0))return false;return!def.orig.some(function(sym){return sym instanceof AST_SymbolDefun||sym instanceof AST_SymbolLambda})}function push(){safe_ids=Object.create(safe_ids)}function pop(){safe_ids=Object.getPrototypeOf(safe_ids)}function reset_def(def){def.escaped=false;if(def.scope.uses_eval){def.fixed=false}else if(!def.global||compressor.toplevel(def)){def.fixed=undefined}else{def.fixed=false}def.references=[];def.should_replace=undefined}function is_immutable(value){return value&&value.is_constant()||value instanceof AST_Lambda}function is_modified(node,level,immutable){var parent=tw.parent(level);if(is_lhs(node,parent)||!immutable&&parent instanceof AST_Call&&parent.expression===node){return true}else if(parent instanceof AST_PropAccess&&parent.expression===node){return!immutable&&is_modified(parent,level+1)}}});AST_SymbolRef.DEFMETHOD("fixed_value",function(){var fixed=this.definition().fixed;if(!fixed||fixed instanceof AST_Node)return fixed;return fixed()});function is_lhs_read_only(lhs){return lhs instanceof AST_SymbolRef&&lhs.definition().orig[0]instanceof AST_SymbolLambda}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})}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)}}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_Switch)return x;if(x instanceof AST_For||x instanceof AST_ForIn||x instanceof AST_DWLoop){return x.body instanceof AST_BlockStatement?x.body:x}return x}function is_iife_call(node){if(node instanceof AST_Call&&!(node instanceof AST_New)){return node.expression instanceof AST_Function||is_iife_call(node.expression)}return false}function tighten_body(statements,compressor){var CHANGED,max_iter=10;do{CHANGED=false;statements=eliminate_spurious_blocks(statements);if(compressor.option("dead_code")){statements=eliminate_dead_code(statements,compressor)}if(compressor.option("if_return")){statements=handle_if_return(statements,compressor)}if(compressor.sequences_limit>0){statements=sequencesize(statements,compressor)}if(compressor.option("join_vars")){statements=join_consecutive_vars(statements,compressor)}if(compressor.option("collapse_vars")){statements=collapse(statements,compressor)}}while(CHANGED&&max_iter-- >0);return statements;function collapse(statements,compressor){var scope=compressor.find_parent(AST_Scope);if(scope.uses_eval||scope.uses_with)return statements;var candidates=[];var stat_index=statements.length;while(--stat_index>=0){extract_candidates(statements[stat_index]);while(candidates.length>0){var candidate=candidates.pop();var lhs=get_lhs(candidate);if(!lhs||is_lhs_read_only(lhs))continue;var lvalues=get_lvalues(candidate);if(lhs instanceof AST_SymbolRef)lvalues[lhs.name]=false;var side_effects=value_has_side_effects(candidate);var hit=false,abort=false,replaced=false;var tt=new TreeTransformer(function(node,descend){if(abort)return node;if(!hit){if(node===candidate){hit=true;return node}return}var parent=tt.parent();if(node instanceof AST_Assign&&node.operator!="="&&lhs.equivalent_to(node.left)||node instanceof AST_Debugger||node instanceof AST_IterationStatement&&!(node instanceof AST_For)||node instanceof AST_SymbolRef&&node.undeclared()||node instanceof AST_Try||node instanceof AST_With||parent instanceof AST_For&&node!==parent.init){abort=true;return node}if(!(node instanceof AST_SymbolDeclaration)&&!is_lhs(node,parent)&&lhs.equivalent_to(node)){CHANGED=replaced=abort=true;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){var def=candidate.name.definition();if(def.references.length==1&&(!def.global||compressor.toplevel(def))){return maintain_this_binding(parent,node,candidate.value)}return make_node(AST_Assign,candidate,{operator:"=",left:make_node(AST_SymbolRef,candidate.name,candidate.name),right:candidate.value})}return candidate}var sym;if(node instanceof AST_Call||node instanceof AST_Exit||node instanceof AST_PropAccess||node instanceof AST_SymbolRef&&(lvalues[node.name]||side_effects&&!references_in_scope(node.definition()))||(sym=lhs_or_def(node))&&get_symbol(sym).name in lvalues||parent instanceof AST_Binary&&(parent.operator=="&&"||parent.operator=="||")||parent instanceof AST_Case||parent instanceof AST_Conditional||parent instanceof AST_For||parent instanceof AST_If){if(!(node instanceof AST_Scope))descend(node,tt);abort=true;return node}if(node instanceof AST_Default||node instanceof AST_Scope)return node});for(var i=stat_index;!abort&&i1||def.references.length==1&&(!def.global||compressor.toplevel(def))){return make_node(AST_SymbolRef,expr.name,expr.name)}}else{return expr[expr instanceof AST_Assign?"left":"expression"]}}function get_symbol(node){while(node instanceof AST_PropAccess)node=node.expression;return node}function get_lvalues(expr){var lvalues=Object.create(null);if(expr instanceof AST_Unary)return lvalues;var scope;var tw=new TreeWalker(function(node,descend){if(node instanceof AST_Scope){var save_scope=scope;descend();scope=save_scope;return true}if(node instanceof AST_SymbolRef||node instanceof AST_PropAccess){var sym=get_symbol(node);if(sym instanceof AST_SymbolRef){lvalues[sym.name]=lvalues[sym.name]||is_lhs(node,tw.parent())}}});expr[expr instanceof AST_Assign?"right":"value"].walk(tw);return lvalues}function lhs_or_def(node){if(node instanceof AST_VarDef)return node.value&&node.name;return is_lhs(node.left,node)}function remove_candidate(expr){var found=false;return statements[stat_index].transform(new TreeTransformer(function(node,descend,in_list){if(found)return node;if(node===expr){found=true;if(node instanceof AST_VarDef){remove(node.name.definition().orig,node.name)}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]}if(node instanceof AST_Definitions&&node.definitions.length==0||node instanceof AST_SimpleStatement&&!node.body){return null}}))}function value_has_side_effects(expr){if(expr instanceof AST_Unary)return false;return expr[expr instanceof AST_Assign?"right":"value"].has_side_effects(compressor)}function references_in_scope(def){if(def.orig.length==1&&def.orig[0]instanceof AST_SymbolDefun)return true;if(def.scope!==scope)return false;return def.references.every(function(ref){return ref.scope===scope})}}function eliminate_spurious_blocks(statements){var seen_dirs=[];return statements.reduce(function(a,stat){if(stat instanceof AST_BlockStatement){CHANGED=true;a.push.apply(a,eliminate_spurious_blocks(stat.body))}else if(stat instanceof AST_EmptyStatement){CHANGED=true}else if(stat instanceof AST_Directive){if(seen_dirs.indexOf(stat.value)<0){a.push(stat);seen_dirs.push(stat.value)}else{CHANGED=true}}else{a.push(stat)}return a},[])}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;var ret=[];loop:for(var i=statements.length;--i>=0;){var stat=statements[i];switch(true){case in_lambda&&stat instanceof AST_Return&&!stat.value&&ret.length==0:CHANGED=true;continue loop;case stat instanceof AST_If:if(stat.body instanceof AST_Return){var value=stat.body.value;if((in_lambda&&ret.length==0||ret[0]instanceof AST_Return&&!ret[0].value)&&!value&&!stat.alternative){CHANGED=true;var cond=make_node(AST_SimpleStatement,stat.condition,{body:stat.condition});ret.unshift(cond);continue loop}if(ret[0]instanceof AST_Return&&value&&ret[0].value&&!stat.alternative){CHANGED=true;stat=stat.clone();stat.alternative=ret[0];ret[0]=stat.transform(compressor);continue loop}if(multiple_if_returns&&(ret.length==0||ret[0]instanceof AST_Return)&&value&&!stat.alternative&&in_lambda){CHANGED=true;stat=stat.clone();stat.alternative=ret[0]||make_node(AST_Return,stat,{value:null});ret[0]=stat.transform(compressor);continue loop}if(in_lambda&&(!value||value instanceof AST_UnaryPrefix&&value.operator=="void")){CHANGED=true;stat=stat.clone();stat.condition=stat.condition.negate(compressor);var body=as_statement_array(stat.alternative).concat(ret);var funs=extract_functions_from_statement_array(body);stat.body=make_node(AST_BlockStatement,stat,{body:body});stat.alternative=value?make_node(AST_SimpleStatement,value,{body:value.expression}):null;ret=funs.concat([stat.transform(compressor)]);continue loop}if(compressor.option("sequences")&&i>0&&statements[i-1]instanceof AST_If&&statements[i-1].body instanceof AST_Return&&ret.length==1&&in_lambda&&ret[0]instanceof AST_SimpleStatement&&!stat.alternative){CHANGED=true;ret.push(make_node(AST_Return,ret[0],{value:null}).transform(compressor));ret.unshift(stat);continue loop}}var ab=aborts(stat.body);var lct=ab instanceof AST_LoopControl?compressor.loopcontrol_target(ab):null;if(ab&&(ab instanceof AST_Return&&!ab.value&&in_lambda||ab instanceof AST_Continue&&self===loop_body(lct)||ab instanceof AST_Break&&lct instanceof AST_BlockStatement&&self===lct)){if(ab.label){remove(ab.label.thedef.references,ab)}CHANGED=true;var body=as_statement_array(stat.body).slice(0,-1);stat=stat.clone();stat.condition=stat.condition.negate(compressor);stat.body=make_node(AST_BlockStatement,stat,{body:as_statement_array(stat.alternative).concat(ret)});stat.alternative=make_node(AST_BlockStatement,stat,{body:body});ret=[stat.transform(compressor)];continue loop}var ab=aborts(stat.alternative);var lct=ab instanceof AST_LoopControl?compressor.loopcontrol_target(ab):null;if(ab&&(ab instanceof AST_Return&&!ab.value&&in_lambda||ab instanceof AST_Continue&&self===loop_body(lct)||ab instanceof AST_Break&&lct instanceof AST_BlockStatement&&self===lct)){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(ret)});stat.alternative=make_node(AST_BlockStatement,stat.alternative,{body:as_statement_array(stat.alternative).slice(0,-1)});ret=[stat.transform(compressor)];continue loop}ret.unshift(stat);break;default:ret.unshift(stat);break}}return ret;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 eliminate_dead_code(statements,compressor){var has_quit=false;var orig=statements.length;var self=compressor.self();statements=statements.reduce(function(a,stat){if(has_quit){extract_declarations_from_unreachable_code(compressor,stat,a)}else{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{a.push(stat)}}else{a.push(stat)}if(aborts(stat))has_quit=true}return a},[]);CHANGED=statements.length!=orig;return statements}function sequencesize(statements,compressor){if(statements.length<2)return statements;var seq=[],ret=[];function push_seq(){if(!seq.length)return;var body=make_sequence(seq[0],seq);ret.push(make_node(AST_SimpleStatement,body,{body:body}));seq=[]}statements.forEach(function(stat){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{push_seq();ret.push(stat)}});push_seq();ret=sequencesize_2(ret,compressor);CHANGED=ret.length!=statements.length;return ret}function sequencesize_2(statements,compressor){function cons_seq(right){ret.pop();var left=prev.body;if(!(left instanceof AST_Sequence)){left=make_node(AST_Sequence,left,{expressions:[left]})}merge_sequence(left.expressions,right);return left.transform(compressor)}var ret=[],prev=null;statements.forEach(function(stat){if(prev){if(stat instanceof AST_For){try{prev.body.walk(new TreeWalker(function(node){if(node instanceof AST_Binary&&node.operator=="in")throw cons_seq}));if(stat.init&&!(stat.init instanceof AST_Definitions)){stat.init=cons_seq(stat.init)}else if(!stat.init){stat.init=prev.body.drop_side_effect_free(compressor);ret.pop()}}catch(ex){if(ex!==cons_seq)throw ex}}else if(stat instanceof AST_If){stat.condition=cons_seq(stat.condition)}else if(stat instanceof AST_With){stat.expression=cons_seq(stat.expression)}else if(stat instanceof AST_Exit&&stat.value){stat.value=cons_seq(stat.value)}else if(stat instanceof AST_Exit){stat.value=cons_seq(make_node(AST_Undefined,stat).transform(compressor))}else if(stat instanceof AST_Switch){stat.expression=cons_seq(stat.expression)}}ret.push(stat);prev=stat instanceof AST_SimpleStatement?stat:null});return ret}function join_consecutive_vars(statements,compressor){var prev=null;return statements.reduce(function(a,stat){if(stat instanceof AST_Definitions&&prev&&prev.TYPE==stat.TYPE){prev.definitions=prev.definitions.concat(stat.definitions);CHANGED=true}else if(stat instanceof AST_For&&prev instanceof AST_Var&&(!stat.init||stat.init.TYPE==prev.TYPE)){CHANGED=true;a.pop();if(stat.init){stat.init.definitions=prev.definitions.concat(stat.init.definitions)}else{stat.init=prev}a.push(stat);prev=stat}else{prev=stat;a.push(stat)}return a},[])}}function extract_functions_from_statement_array(statements){var funs=[];for(var i=statements.length-1;i>=0;--i){var stat=statements[i];if(stat instanceof AST_Defun){statements.splice(i,1);funs.unshift(stat)}}return funs}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 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){var pure_getters=compressor.option("pure_getters");return!pure_getters||this._throw_on_access(pure_getters)});function is_strict(pure_getters){return/strict/.test(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(pure_getters){if(!is_strict(pure_getters))return false;for(var i=this.properties.length;--i>=0;)if(this.properties[i].value instanceof AST_Accessor)return true;return false});def(AST_Function,return_false);def(AST_UnaryPostfix,return_false);def(AST_UnaryPrefix,function(){return this.operator=="void"});def(AST_Binary,function(pure_getters){switch(this.operator){case"&&":return this.left._throw_on_access(pure_getters);case"||":return this.left._throw_on_access(pure_getters)&&this.right._throw_on_access(pure_getters);default:return false}});def(AST_Assign,function(pure_getters){return this.operator=="="&&this.right._throw_on_access(pure_getters)});def(AST_Conditional,function(pure_getters){return this.consequent._throw_on_access(pure_getters)||this.alternative._throw_on_access(pure_getters)});def(AST_Sequence,function(pure_getters){return this.expressions[this.expressions.length-1]._throw_on_access(pure_getters)});def(AST_SymbolRef,function(pure_getters){if(this.is_undefined)return true;if(!is_strict(pure_getters))return false;var fixed=this.fixed_value();return!fixed||fixed._throw_on_access(pure_getters)})})(function(node,func){node.DEFMETHOD("_throw_on_access",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)||(this.operator=="&&"||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.expressions[this.expressions.length-1].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.expressions[this.expressions.length-1].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.expressions[this.expressions.length-1].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 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){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(def){AST_Node.DEFMETHOD("evaluate",function(compressor){if(!compressor.option("evaluate"))return this;try{var val=this._eval(compressor);return!val||val instanceof RegExp||typeof val!="object"?val:this}catch(ex){if(ex!==def)throw ex;return this}});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)}});AST_Node.DEFMETHOD("constant_value",function(compressor){if(this instanceof AST_Constant&&!(this instanceof AST_RegExp)){return this.value}if(this instanceof AST_UnaryPrefix&&this.expression instanceof AST_Constant)switch(this.operator){case"!":return!this.expression.value;case"~":return~this.expression.value;case"-":return-this.expression.value;case"+":return+this.expression.value;default:throw new Error(string_template("Cannot evaluate unary expression {value}",{value:this.print_to_string()}))}var result=this.evaluate(compressor);if(result!==this){return result}throw new Error(string_template("Cannot evaluate constant [{file}:{line},{col}]",this.start))});def(AST_Statement,function(){throw new Error(string_template("Cannot evaluate a statement [{file}:{line},{col}]",this.start))});def(AST_Lambda,function(){throw def});function ev(node,compressor){if(!compressor)throw new Error("Compressor must be passed");return node._eval(compressor)}def(AST_Node,function(){throw def});def(AST_Constant,function(){return this.getValue()});def(AST_Array,function(compressor){if(compressor.option("unsafe")){return this.elements.map(function(element){return ev(element,compressor)})}throw def});def(AST_Object,function(compressor){if(compressor.option("unsafe")){var val={};for(var i=0,len=this.properties.length;i>":result=ev(left,c)>>ev(right,c);break;case">>>":result=ev(left,c)>>>ev(right,c);break;case"==":result=ev(left,c)==ev(right,c);break;case"===":result=ev(left,c)===ev(right,c);break;case"!=":result=ev(left,c)!=ev(right,c);break;case"!==":result=ev(left,c)!==ev(right,c);break;case"<":result=ev(left,c)":result=ev(left,c)>ev(right,c);break;case">=":result=ev(left,c)>=ev(right,c);break;default:throw def}if(isNaN(result)&&c.find_parent(AST_With)){throw def}return result});def(AST_Conditional,function(compressor){return ev(this.condition,compressor)?ev(this.consequent,compressor):ev(this.alternative,compressor)});def(AST_SymbolRef,function(compressor){if(!compressor.option("reduce_vars")||this._evaluating)throw def;this._evaluating=true;try{var fixed=this.fixed_value();if(!fixed)throw def;var value=ev(fixed,compressor);if(!HOP(fixed,"_eval"))fixed._eval=function(){return value};if(value&&typeof value=="object"&&this.definition().escaped)throw def;return value}finally{this._evaluating=false}});def(AST_PropAccess,function(compressor){if(compressor.option("unsafe")){var key=this.property;if(key instanceof AST_Node){key=ev(key,compressor)}var val=ev(this.expression,compressor);if(val&&HOP(val,key)){return val[key]}}throw def})})(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)})});AST_Call.DEFMETHOD("has_pure_annotation",function(compressor){if(!compressor.option("side_effects"))return false;if(this.pure!==undefined)return this.pure;var pure=false;var comments,last_comment;if(this.start&&(comments=this.start.comments_before)&&comments.length&&/[@#]__PURE__/.test((last_comment=comments[comments.length-1]).value)){pure=last_comment}return this.pure=pure});(function(def){def(AST_Node,return_true);def(AST_EmptyStatement,return_false);def(AST_Constant,return_false);def(AST_This,return_false);def(AST_Call,function(compressor){if(!this.has_pure_annotation(compressor)&&compressor.pure_funcs(this))return true;for(var i=this.args.length;--i>=0;){if(this.args[i].has_side_effects(compressor))return true}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_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_Defun,return_true);def(AST_Function,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.undeclared()});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 this.expressions.some(function(expression,index){return expression.has_side_effects(compressor)})})})(function(node,func){node.DEFMETHOD("has_side_effects",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_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){self.body=tighten_body(self.body,compressor);return self});OPT(AST_BlockStatement,function(self,compressor){self.body=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});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;if(!drop_funcs&&!drop_vars)return;var assign_as_unused=!/keep_assign/.test(compressor.option("unused"));var in_use=[];var in_use_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){if(node instanceof AST_Defun){if(!drop_funcs&&scope===self){var node_def=node.name.definition();if(!(node_def.id in in_use_ids)){in_use_ids[node_def.id]=true;in_use.push(node_def)}}initializations.add(node.name.name,node);return true}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(def.name.name,def.value);if(def.value.has_side_effects(compressor)){def.value.walk(tw)}}});return true}if(assign_as_unused&&node instanceof AST_Assign&&node.operator=="="&&node.left instanceof AST_SymbolRef&&scope===self){node.right.walk(tw);return true}if(node instanceof AST_SymbolRef){var 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}}});self.walk(tw);for(var i=0;i1)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){if(!(node.name.definition().id in in_use_ids)){compressor[node.name.unreferenced()?"warn":"info"]("Dropping unused function {name} [{file}:{line},{col}]",template(node.name));return make_node(AST_EmptyStatement,node)}return node}if(drop_vars&&node instanceof AST_Definitions&&!(tt.parent()instanceof AST_ForIn&&tt.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(sym.id in in_use_ids){if(def.name instanceof AST_SymbolVar){var var_defs=var_defs_by_id.get(sym.id);if(var_defs.length>1&&!def.value){compressor.warn("Dropping duplicated definition of variable {name} [{file}:{line},{col}]",template(def.name));remove(var_defs,def);remove(sym.orig,def.name);return}}if(def.value){if(side_effects.length>0){if(tail.length>0){merge_sequence(side_effects,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)merge_sequence(side_effects,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));merge_sequence(side_effects,value)}else{compressor[def.name.unreferenced()?"warn":"info"]("Dropping unused variable {name} [{file}:{line},{col}]",template(def.name))}remove(sym.orig,def.name)}});if(head.length==0&&tail.length==1&&tail[0].name instanceof AST_SymbolVar){var var_defs=var_defs_by_id.get(tail[0].name.definition().id);if(var_defs.length>1){var def=tail.pop();compressor.warn("Converting duplicated definition of variable {name} to assignment [{file}:{line},{col}]",template(def.name));remove(var_defs,def);remove(def.name.definition().orig,def.name);side_effects.unshift(make_node(AST_Assign,def,{operator:"=",left:make_node(AST_SymbolRef,def.name,def.name),right:def.value}))}}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(drop_vars&&assign_as_unused&&node instanceof AST_Assign&&node.operator=="="&&node.left instanceof AST_SymbolRef){var def=node.left.definition();if(!(def.id in in_use_ids)&&self.variables.get(def.name)===def){return maintain_this_binding(tt.parent(),node,node.right.transform(tt))}}if(node instanceof AST_For){descend(node,this);if(node.init instanceof AST_BlockStatement){var block=node.init;node.init=block.body.pop();block.body.push(node);return in_list?MAP.splice(block.body):block}else if(node.init instanceof AST_SimpleStatement){node.init=node.init.body}else if(is_empty(node.init)){node.init=null}return node}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&&node!==self)return node;function template(sym){return{name:sym.name,file:sym.start.file,line:sym.start.line,col:sym.start.col}}});self.transform(tt)});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(node instanceof AST_Defun&&hoist_funs){hoisted.push(node);return make_node(AST_EmptyStatement,node)}if(node instanceof AST_Var&&hoist_vars){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;i0){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){body=body[0].body.slice();body.unshift(make_node(AST_SimpleStatement,self.expression,{body:self.expression}));return make_node(AST_BlockStatement,self,{body:body}).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){self.body=tighten_body(self.body,compressor);if(self.bcatch&&self.bfinally&&all(self.bfinally.body,is_empty))self.bfinally=null;if(all(self.body,is_empty)){var body=[];if(self.bcatch)extract_declarations_from_unreachable_code(compressor,self.bcatch,body);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}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;if(compressor.option("reduce_vars")&&exp instanceof AST_SymbolRef){var def=exp.definition();var fixed=exp.fixed_value();if(fixed instanceof AST_Defun){def.fixed=fixed=make_node(AST_Function,fixed,fixed).clone(true)}if(fixed instanceof AST_Function){exp=fixed;if(compressor.option("unused")&&def.references.length==1&&!(def.scope.uses_arguments&&def.orig[0]instanceof AST_SymbolFunarg)&&!def.scope.uses_eval&&compressor.find_parent(AST_Scope)===def.scope){self.expression=exp}}}if(compressor.option("unused")&&exp instanceof AST_Function&&!exp.uses_arguments&&!exp.uses_eval){var pos=0,last=0;for(var i=0,len=self.args.length;i=exp.argnames.length;if(trim||exp.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(exp instanceof AST_SymbolRef&&exp.undeclared()){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"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="(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.mangle_names();var fun;try{ast.walk(new TreeWalker(function(node){if(node instanceof AST_Lambda){fun=node;throw ast}}))}catch(ex){if(ex!==ast)throw ex}if(!fun)return self;var args=fun.argnames.map(function(arg,i){return make_node(AST_String,self.args[i],{value:arg.print_to_string()})});var code=OutputStream();AST_BlockStatement.prototype._codegen.call(fun,fun,code);code=code.toString().replace(/^\{|\}$/g,"");args.push(make_node(AST_String,self.args[self.args.length-1],{value:code}));self.args=args;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{console.log(ex);throw ex}}}break}}else if(exp instanceof AST_Dot&&exp.property=="toString"&&self.args.length==0){return make_node(AST_Binary,self,{left:make_node(AST_String,self,{value:""}),operator:"+",right:exp.expression}).optimize(compressor)}else if(exp instanceof AST_Dot&&exp.expression instanceof AST_Array&&exp.property=="join")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)}else if(exp instanceof AST_Dot&&exp.expression.is_string(compressor)&&exp.property=="charAt"){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)}}}if(exp instanceof AST_Function){if(exp.body[0]instanceof AST_Return){var value=exp.body[0].value;if(!value||value.is_constant_expression()){var args=self.args.concat(value||make_node(AST_Undefined,self));return make_sequence(self,args).transform(compressor)}}if(compressor.option("side_effects")&&all(exp.body,is_empty)){var args=self.args.concat(make_node(AST_Undefined,self));return make_sequence(self,args).transform(compressor)}}if(compressor.option("drop_console")){if(exp instanceof AST_PropAccess){var name=exp.expression;while(name.expression){name=name.expression}if(name instanceof AST_SymbolRef&&name.name=="console"&&name.undeclared()){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)}return self});OPT(AST_New,function(self,compressor){if(compressor.option("unsafe")){var exp=self.expression;if(exp instanceof AST_SymbolRef&&exp.undeclared()){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&&compressor.option("cascade"))trim_left_for_assignment();if(end==0){self=maintain_this_binding(compressor.parent(),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(index0&&is_undefined(expressions[end],compressor))end--;if(end0){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("== === != !== * & | ^");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"!==":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.operator=self.operator.substr(0,2)}case"==":case"!=":if(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.undeclared():!(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+="="}}break}if(compressor.option("booleans")&&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)}if(compressor.option("unsafe_comps")){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.evaluate(compressor);if(!ll){compressor.warn("Condition left of && always false [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),self,self.left).optimize(compressor)}else if(ll!==self.left){compressor.warn("Condition left of && always true [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),self,self.right).optimize(compressor)}if(compressor.option("booleans")&&compressor.in_boolean_context()){var rr=self.right.evaluate(compressor);if(!rr){compressor.warn("Boolean && always false [{file}:{line},{col}]",self.start);return make_sequence(self,[self.left,make_node(AST_False,self)]).optimize(compressor)}else if(rr!==self.right){compressor.warn("Dropping side-effect-free && in boolean context [{file}:{line},{col}]",self.start);return self.left.optimize(compressor)}}break;case"||":var ll=self.left.evaluate(compressor);if(!ll){compressor.warn("Condition left of || always false [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),self,self.right).optimize(compressor)}else if(ll!==self.left){compressor.warn("Condition left of || always true [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),self,self.left).optimize(compressor)}if(compressor.option("booleans")&&compressor.in_boolean_context()){var rr=self.right.evaluate(compressor);if(!rr){compressor.warn("Dropping side-effect-free || in boolean context [{file}:{line},{col}]",self.start);return self.left.optimize(compressor)}else if(rr!==self.right){compressor.warn("Boolean || always true [{file}:{line},{col}]",self.start);return make_sequence(self,[self.left,make_node(AST_True,self)]).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&&(self.operator=="&&"||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});OPT(AST_SymbolRef,function(self,compressor){var def=self.resolve_defines(compressor);if(def){return def.optimize(compressor)}if(!compressor.option("ie8")&&self.undeclared()&&(!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("evaluate")&&compressor.option("reduce_vars")&&is_lhs(self,compressor.parent())!==self){var d=self.definition();var fixed=self.fixed_value();if(fixed){if(d.should_replace===undefined){var init=fixed.evaluate(compressor);if(init!==fixed&&(compressor.option("unsafe_regexp")||!(init instanceof RegExp))){init=make_node_from_constant(init,fixed);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")&&(!d.global||compressor.toplevel(d))){overhead=(name_length+2+value_length)/d.references.length}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")){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});var ASSIGN_OPS=["+","-","/","*","%",">>","<<",">>>","|","^","&"];var ASSIGN_OPS_COMMUTATIVE=["*","|","^","&"];OPT(AST_Assign,function(self,compressor){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});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(),self,self.consequent)}else{compressor.warn("Condition always false [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),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})})}if(consequent instanceof AST_Call&&alternative.TYPE===consequent.TYPE&&consequent.args.length==1&&alternative.args.length==1&&consequent.expression.equivalent_to(alternative.expression)&&!consequent.expression.has_side_effects(compressor)){consequent.args[0]=make_node(AST_Conditional,self,{condition:self.condition,consequent:consequent.args[0],alternative:alternative.args[0]});return consequent}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(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||node instanceof AST_UnaryPrefix&&node.operator=="!"&&node.expression instanceof AST_Constant&&!node.expression.value}function is_false(node){return node instanceof AST_False||node instanceof AST_UnaryPrefix&&node.operator=="!"&&node.expression instanceof AST_Constant&&!!node.expression.value}});OPT(AST_Boolean,function(self,compressor){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 prop=self.property;if(prop instanceof AST_String&&compressor.option("properties")){prop=prop.getValue();if(RESERVED_WORDS(prop)?!compressor.option("ie8"):is_identifier_string(prop)){return make_node(AST_Dot,self,{expression:self.expression,property:prop}).optimize(compressor)}var v=parseFloat(prop);if(!isNaN(v)&&v.toString()==prop){self.property=make_node(AST_Number,self.property,{value:v})}}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});OPT(AST_Dot,function(self,compressor){var def=self.resolve_defines(compressor);if(def){return def.optimize(compressor)}var prop=self.property;if(RESERVED_WORDS(prop)&&compressor.option("ie8")){return make_node(AST_Sub,self,{expression:self.expression,property:make_node(AST_String,self,{value:prop})}).optimize(compressor)}if(compressor.option("unsafe_proto")&&self.expression instanceof AST_Dot&&self.expression.property=="prototype"){var exp=self.expression.expression;if(exp instanceof AST_SymbolRef&&exp.undeclared())switch(exp.name){case"Array":self.expression=make_node(AST_Array,self.expression,{elements:[]});break;case"Object":self.expression=make_node(AST_Object,self.expression,{properties:[]});break;case"String":self.expression=make_node(AST_String,self.expression,{value:""});break}}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.option("booleans")&&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;i1||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 mangle_properties(ast,options){options=defaults(options,{builtins:false,cache:null,debug:false,keep_quoted:false,only_cache:false,regex:null,reserved:null});var reserved=options.reserved||[];if(!options.builtins)find_builtins(reserved);var cache=options.cache;if(cache==null){cache={cname:-1,props:new Dictionary}}var regex=options.regex;var keep_quoted=options.keep_quoted;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=[];var to_keep={};ast.walk(new TreeWalker(function(node){if(node instanceof AST_ObjectKeyVal){add(node.key,keep_quoted&&node.quote)}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,keep_quoted)}}));return ast.transform(new TreeTransformer(function(node){if(node instanceof AST_ObjectKeyVal){if(!(keep_quoted&&node.quote))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(node instanceof AST_Sub){if(!keep_quoted)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.props.has(name)}if(/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(name))return false;return true}function should_mangle(name){if(keep_quoted&&name in to_keep)return false;if(regex&&!regex.test(name))return false;if(reserved.indexOf(name)>=0)return false;return cache.props.has(name)||names_to_mangle.indexOf(name)>=0}function add(name,keep){if(keep){to_keep[name]=true;return}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.props.get(name);if(!mangled){if(debug){var debug_mangled="_$"+name+"$"+debug_name_suffix+"_";if(can_mangle(debug_mangled)&&!(keep_quoted&&debug_mangled in to_keep)){mangled=debug_mangled}}if(!mangled){do{mangled=base54(++cache.cname)}while(!can_mangle(mangled)||keep_quoted&&mangled in to_keep)}cache.props.set(name,mangled)}return mangled}function addStrings(node,keep){var out={};try{(function walk(node){node.walk(new TreeWalker(function(node){if(node instanceof AST_Sequence){walk(node.expressions[node.expressions.length-1]);return true}if(node instanceof AST_String){add(node.value,keep);return true}if(node instanceof AST_Conditional){walk(node.consequent);walk(node.alternative);return true}throw out}))})(node)}catch(ex){if(ex!==out)throw ex}}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 minify(files,options){var warn_function=AST_Node.warn_function;try{if(typeof files=="string"){files=[files]}options=defaults(options,{compress:{},ie8:false,keep_fnames:false,mangle:{},output:{},parse:{},sourceMap:false,toplevel:false,warnings:false,wrap:false},true);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"]);if(options.mangle){options.mangle=defaults(options.mangle,{cache:null,eval:false,ie8:false,keep_fnames:false,properties:false,reserved:[],toplevel:false},true)}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)}}var toplevel;if(files instanceof AST_Toplevel){toplevel=files}else{options.parse=options.parse||{};options.parse.toplevel=null;for(var name in files){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(options.wrap){toplevel=toplevel.wrap_commonjs(options.wrap)}if(options.compress){toplevel.figure_out_scope(options.mangle);toplevel=new Compressor(options.compress).compress(toplevel)}if(options.mangle){toplevel.figure_out_scope(options.mangle);base54.reset();toplevel.compute_char_frequency(options.mangle);toplevel.mangle_names(options.mangle);if(options.mangle.properties){toplevel=mangle_properties(toplevel,options.mangle.properties)}}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){for(var name in files){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(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["_push_uniq"]=push_uniq})(typeof exports=="undefined"?exports={}:exports); }).call(this,require("buffer").Buffer) },{"buffer":5}]},{},["html-minifier"]); diff --git a/dist/htmlminifier.min.js b/dist/htmlminifier.min.js index 85d68c71..07339bcb 100644 --- a/dist/htmlminifier.min.js +++ b/dist/htmlminifier.min.js @@ -1,7 +1,7 @@ /*! - * HTMLMinifier v3.5.1 (http://kangax.github.io/html-minifier/) + * HTMLMinifier v3.5.2 (http://kangax.github.io/html-minifier/) * Copyright 2010-2017 Juriy "kangax" Zaytsev * Licensed under the MIT license */ -require=function e(t,n,r){function o(a,u){if(!n[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return o(n||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function o(e){return 3*e.length/4-r(e)}function i(e){var t,n,o,i,a,u,s=e.length;a=r(e),u=new f(3*s/4-a),o=a>0?s-4:s;var l=0;for(t=0,n=0;t>16&255,u[l++]=i>>8&255,u[l++]=255&i;return 2===a?(i=c[e.charCodeAt(t)]<<2|c[e.charCodeAt(t+1)]>>4,u[l++]=255&i):1===a&&(i=c[e.charCodeAt(t)]<<10|c[e.charCodeAt(t+1)]<<4|c[e.charCodeAt(t+2)]>>2,u[l++]=i>>8&255,u[l++]=255&i),u}function a(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function u(e,t,n){for(var r,o=[],i=t;is?s:a+16383));return 1===r?(t=e[n-1],o+=l[t>>2],o+=l[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=l[t>>10],o+=l[t>>4&63],o+=l[t<<2&63],o+="="),i.push(o),i.join("")}n.byteLength=o,n.toByteArray=i,n.fromByteArray=s;for(var l=[],c=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,d=p.length;ha)throw new RangeError("size is too large");var r=n,i=t;void 0===i&&(r=void 0,i=0);var u=new o(e);if("string"==typeof i)for(var s=new o(i,r),l=s.length,c=-1;++ca)throw new RangeError("size is too large");return new o(e)},n.from=function(e,n,r){if("function"==typeof o.from&&(!t.Uint8Array||Uint8Array.from!==o.from))return o.from(e,n,r);if("number"==typeof e)throw new TypeError('"value" argument must not be a number');if("string"==typeof e)return new o(e,n);if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer){var i=n;if(1===arguments.length)return new o(e);void 0===i&&(i=0);var a=r;if(void 0===a&&(a=e.byteLength-i),i>=e.byteLength)throw new RangeError("'offset' is out of bounds");if(a>e.byteLength-i)throw new RangeError("'length' is out of bounds");return new o(e.slice(i,i+a))}if(o.isBuffer(e)){var u=new o(e.length);return e.copy(u,0,0,e.length),u}if(e){if(Array.isArray(e)||"undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return new o(e);if("Buffer"===e.type&&Array.isArray(e.data))return new o(e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")},n.allocUnsafeSlow=function(e){if("function"==typeof o.allocUnsafeSlow)return o.allocUnsafeSlow(e);if("number"!=typeof e)throw new TypeError("size must be a number");if(e>=a)throw new RangeError("size is too large");return new i(e)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{buffer:5}],5:[function(e,t,n){(function(t){"use strict";function r(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(r()=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),i.alloc(+e)}function g(e,t){if(i.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))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 $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(r)return $(e).length;t=(""+t).toLowerCase(),r=!0}}function v(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,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return B(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=i.from(t,r)),i.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,o);if("number"==typeof t)return t&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,o){function i(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,u=e.length,s=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;a=2,u/=2,s/=2,n/=2}var l;if(o){var c=-1;for(l=n;lu&&(n=u-s),l=n;l>=0;l--){for(var f=!0,p=0;po&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a239?4:i>223?3:i>191?2:1;if(o+u<=n){var s,l,c,f;switch(u){case 1:i<128&&(a=i);break;case 2:128==(192&(s=e[o+1]))&&(f=(31&i)<<6|63&s)>127&&(a=f);break;case 3:s=e[o+1],l=e[o+2],128==(192&s)&&128==(192&l)&&(f=(15&i)<<12|(63&s)<<6|63&l)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:s=e[o+1],l=e[o+2],c=e[o+3],128==(192&s)&&128==(192&l)&&128==(192&c)&&(f=(15&i)<<18|(63&s)<<12|(63&l)<<6|63&c)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,u=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),o+=u}return S(r)}function S(e){var t=e.length;if(t<=X)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,o,a){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function P(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function U(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function N(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function q(e,t,n,r,o){return o||N(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,o){return o||N(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(e,t,n,r,52,8),n+8}function I(e){if((e=j(e).replace(ee,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function j(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function V(e){return e<16?"0"+e.toString(16):e.toString(16)}function $(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],a=0;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.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;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function H(e){for(var t=[],n=0;n>8,o=n%256,i.push(o),i.push(r);return i}function Y(e){return Q.toByteArray(I(e))}function G(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function W(e){return e!==e}var Q=e("base64-js"),Z=e("ieee754"),J=e("isarray");n.Buffer=i,n.SlowBuffer=m,n.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),n.kMaxLength=r(),i.poolSize=8192,i._augment=function(e){return e.__proto__=i.prototype,e},i.from=function(e,t,n){return a(null,e,t,n)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(e,t,n){return s(null,e,t,n)},i.allocUnsafe=function(e){return l(null,e)},i.allocUnsafeSlow=function(e){return l(null,e)},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.compare=function(e,t){if(!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,a=Math.min(n,r);o0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},i.prototype.compare=function(e,t,n,r,o){if(!i.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===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var a=o-r,u=n-t,s=Math.min(a,u),l=this.slice(r,o),c=e.slice(t,n),f=0;fo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var X=4096;i.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(o*=256);)r+=this[e+--t]*o;return r},i.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e],o=1,i=0;++i=o&&(r-=Math.pow(2,8*t)),r},i.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},i.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),Z.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),Z.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),Z.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),Z.read(this,e,!1,52,8)},i.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},i.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},i.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},i.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},i.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):U(this,e,t,!0),t+4},i.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},i.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=0,a=1,u=0;for(this[t]=255&e;++i>0)-u&255;return t+n},i.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=n-1,a=1,u=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+n},i.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},i.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},i.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):U(this,e,t,!0),t+4},i.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},i.prototype.writeFloatLE=function(e,t,n){return q(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){return q(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},i.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var a;if("number"==typeof e)for(a=t;a0?l.errors:null,t):t})})}function o(e){return e?function(e){return e()}:n.nextTick}function i(e,t){var n;return n=s(e,t),n=b.One in t.options.level?l(e,t):e,n=b.Two in t.options.level?c(e,t,!0):n}function a(e,t){return e.stats=u(e.styles,t),e.errors=t.errors,e.inlinedStylesheets=t.inlinedStylesheets,e.warnings=t.warnings,e}function u(e,t){var n=Date.now()-t.stats.startedAt;return delete t.stats.startedAt,t.stats.timeSpent=n,t.stats.efficiency=1-e.length/t.stats.originalSize,t.stats.minifiedSize=e.length,t.stats}var s=e("./optimizer/level-0/optimize"),l=e("./optimizer/level-1/optimize"),c=e("./optimizer/level-2/optimize"),f=e("./optimizer/validator"),p=e("./options/compatibility"),h=e("./options/fetch"),d=e("./options/format").formatFrom,m=e("./options/inline"),g=e("./options/inline-request"),v=e("./options/inline-timeout"),b=e("./options/optimization-level").OptimizationLevel,y=e("./options/optimization-level").optimizationLevelFrom,_=e("./options/rebase"),w=e("./options/rebase-to"),A=e("./reader/input-source-map-tracker"),E=e("./reader/read-sources"),x=e("./writer/simple"),C=e("./writer/source-maps");(t.exports=function(e){e=e||{},this.options={compatibility:p(e.compatibility),fetch:h(e.fetch),format:d(e.format),inline:m(e.inline),inlineRequest:g(e.inlineRequest),inlineTimeout:v(e.inlineTimeout),level:y(e.level),rebase:_(e.rebase),rebaseTo:w(e.rebaseTo),returnPromise:!!e.returnPromise,sourceMap:!!e.sourceMap,sourceMapInlineSources:!!e.sourceMapInlineSources}}).prototype.minify=function(e,t,n){var o=this.options;return o.returnPromise?new Promise(function(n,i){r(e,o,t,function(e,t){return e?i(e):n(t)})}):r(e,o,t,n)}}).call(this,e("_process"))},{"./optimizer/level-0/optimize":10,"./optimizer/level-1/optimize":11,"./optimizer/level-2/optimize":30,"./optimizer/validator":58,"./options/compatibility":60,"./options/fetch":61,"./options/format":62,"./options/inline":65,"./options/inline-request":63,"./options/inline-timeout":64,"./options/optimization-level":66,"./options/rebase":68,"./options/rebase-to":67,"./reader/input-source-map-tracker":72,"./reader/read-sources":78,"./writer/simple":100,"./writer/source-maps":101,_process:114}],9:[function(e,t,n){var r={ASTERISK:"asterisk",BANG:"bang",BACKSLASH:"backslash",UNDERSCORE:"underscore"};t.exports=r},{}],10:[function(e,t,n){function r(e){return e}t.exports=r},{}],11:[function(e,t,n){function r(e){return e&&"-"==e[1][0]&&parseFloat(e[1])<0}function o(e){return re.test(e)}function i(e){return ie.test(e)}function a(e){return e.replace(ie,"url(").replace(/\\?\n|\\?\r\n/g,"")}function u(e){var t=e.value;1==t.length&&"none"==t[0][1]&&(t[0][1]="0 0"),1==t.length&&"transparent"==t[0][1]&&(t[0][1]="0 0")}function s(e){var t,n=e.value;3==n.length&&"/"==n[1][1]&&n[0][1]==n[2][1]?t=1:5==n.length&&"/"==n[2][1]&&n[0][1]==n[3][1]&&n[1][1]==n[4][1]?t=2:7==n.length&&"/"==n[3][1]&&n[0][1]==n[4][1]&&n[1][1]==n[5][1]&&n[2][1]==n[6][1]?t=3:9==n.length&&"/"==n[4][1]&&n[0][1]==n[5][1]&&n[1][1]==n[6][1]&&n[2][1]==n[7][1]&&n[3][1]==n[8][1]&&(t=4),t&&(e.value.splice(t),e.dirty=!0)}function l(e,t,n){return-1===t.indexOf("#")&&-1==t.indexOf("rgb")&&-1==t.indexOf("hsl")?F(t):(t=t.replace(/rgb\((\-?\d+),(\-?\d+),(\-?\d+)\)/g,function(e,t,n,r){return M(t,n,r)}).replace(/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/g,function(e,t,n,r){return L(t,n,r)}).replace(/(^|[^='"])#([0-9a-f]{6})/gi,function(e,t,n){return 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&&n.indexOf("%")>0||"rgba"==t&&4==r.length&&n.indexOf("%")>0?(-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 G(t,",").pop().indexOf("gradient(")>-1?e:"transparent"})),F(t))}function c(e){1==e.value.length&&(e.value[0][1]=e.value[0][1].replace(/progid:DXImageTransform\.Microsoft\.(Alpha|Chroma)(\W)/,function(e,t,n){return t.toLowerCase()+n})),e.value[0][1]=e.value[0][1].replace(/,(\S)/g,", $1").replace(/ ?= ?/g,"=")}function f(e,t){var n=e.value[t][1];"normal"==n?n="400":"bold"==n&&(n="700"),e.value[t][1]=n}function p(e){var t,n=e.value;4==n.length&&"0"===n[0][1]&&"0"===n[1][1]&&"0"===n[2][1]&&"0"===n[3][1]&&(t=e.name.indexOf("box-shadow")>-1?2:1),t&&(e.value.splice(t),e.dirty=!0)}function h(e){var t=e.value;1==t.length&&"none"==t[0][1]&&(t[0][1]="0")}function d(e,t,n){return X.test(t)?t.replace(X,function(e,t){var r,o=parseInt(t);return 0===o?e:(n.properties.shorterLengthUnits&&n.units.pt&&3*o%4==0&&(r=3*o/4+"pt"),n.properties.shorterLengthUnits&&n.units.pc&&o%16==0&&(r=o/16+"pc"),n.properties.shorterLengthUnits&&n.units.in&&o%96==0&&(r=o/96+"in"),r&&(r=e.substring(0,e.indexOf(t))+r),r&&r.length0&&("height"==e||"max-height"==e)?t:t.replace(n,"$10$2").replace(n,"$10$2")}function b(e,t){return e.indexOf("filter")>-1||-1==t.indexOf(" ")||0===t.indexOf("expression")?t:t.indexOf(K.SINGLE_QUOTE)>-1||t.indexOf(K.DOUBLE_QUOTE)>-1?t:((t=t.replace(/\s+/g," ")).indexOf("calc")>-1&&(t=t.replace(/\) ?\/ ?/g,")/ ")),t.replace(/(\(;?)\s+/g,"$1").replace(/\s+(;?\))/g,"$1").replace(/, /g,","))}function y(e,t){return-1==t.indexOf("0deg")?t:t.replace(/\(0deg\)/g,"(0)")}function _(e,t){return-1==t.indexOf("0")?t:(t.indexOf("-")>-1&&(t=t.replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2").replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2")),t.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(t.length>0?".":"")+t+n}).replace(/(^|\D)0\.(\d)/g,"$1.$2"))}function w(e,t){return"content"==e||e.indexOf("font-feature-settings")>-1||e.indexOf("grid-")>-1?t:oe.test(t)?t.substring(1,t.length-1):t}function A(e){return!/^url\(['"].+['"]\)$/.test(e)||/^url\(['"].*[\*\s\(\)'"].*['"]\)$/.test(e)||/^url\(['"]data:[^;]+;charset/.test(e)?e:e.replace(/["']/g,"")}function E(e,t,n){var r=n(e,t);return void 0===r?t:!1===r?W:r}function x(e,t){var n,k,O,B,S,D,R=t.options,F=R.level[$.One],L=V(e,!0);e:for(var M=0,P=L.length;M0&&F.optimizeBorderRadius?s(n):"filter"==k&&F.optimizeFilter&&R.compatibility.properties.ieFilters?c(n):"font-weight"==k&&F.optimizeFontWeight?f(n,0):"outline"==k&&F.optimizeOutline&&h(n)}j(L),I(L),L.length!=e.length&&C(e,R)}function C(e,t){var n,r;for(r=0;r0&&(r.enabled=!0,r.decimalPointMatcher=new RegExp("(\\d)\\.($|"+o.join("|")+")($|W)","g"),r.zeroMatcher=new RegExp("(\\d*)(\\.\\d+)("+o.join("|")+")","g")),r}function D(e){return ne.test(e[1])}function T(e){var t;return("filter"==e.name||"-ms-filter"==e.name)&&((t=e.value[0][1]).indexOf("progid")>-1||0===t.indexOf("alpha")||0===t.indexOf("chroma"))}function R(e,t){var n=t.options,r=n.level[$.One],o=n.compatibility.selectors.ie7Hack,i=n.compatibility.selectors.adjacentSpace,a=n.compatibility.properties.spaceAfterClosingBrace,u=n.format,s=!1,l=!1;n.unitsRegexp=n.unitsRegexp||B(n),n.precision=n.precision||S(r.roundingPrecision),n.commentsKept=n.commentsKept||0;for(var c=0,f=e.length;c1?P(p[1],r.selectorsSortingMethod):p[1],x(p[2],t),l=!0}r.removeEmpty&&(0===p[1].length||p[2]&&0===p[2].length)&&(e.splice(c,1),c--,f--)}return r.cleanupCharsets&&s&&O(e),e}var F=e("./shorten-hex"),L=e("./shorten-hsl"),M=e("./shorten-rgb"),P=e("./sort-selectors"),U=e("./tidy-rules"),N=e("./tidy-block"),q=e("./tidy-at-rule"),z=e("../hack"),I=e("../remove-unused"),j=e("../restore-from-optimizing"),V=e("../wrap-for-optimizing").all,$=e("../../options/optimization-level").OptimizationLevel,H=e("../../tokenizer/token"),K=e("../../tokenizer/marker"),Y=e("../../utils/format-position"),G=e("../../utils/split"),W="ignore-property",Q="@charset",Z=new RegExp("^"+Q,"i"),J=e("../../options/rounding-precision").DEFAULT,X=/(?:^|\s|\()(-?\d+)px/,ee=/^(\-?[\d\.]+)(m?s)$/,te=/^(?:\-chrome\-|\-[\w\-]+\w|\w[\w\-]+\w|\-\-\S+)$/,ne=/^@import/i,re=/^('.*'|".*")$/,oe=/^['"][a-zA-Z][a-zA-Z\d\-_]+['"]$/,ie=/^url\(/i,ae=/^--\S+$/;t.exports=R},{"../../options/optimization-level":66,"../../options/rounding-precision":69,"../../tokenizer/marker":84,"../../tokenizer/token":85,"../../utils/format-position":88,"../../utils/split":97,"../hack":9,"../remove-unused":56,"../restore-from-optimizing":57,"../wrap-for-optimizing":59,"./shorten-hex":12,"./shorten-hsl":13,"./shorten-rgb":14,"./sort-selectors":15,"./tidy-at-rule":16,"./tidy-block":17,"./tidy-rules":18}],12:[function(e,t,n){function r(e,t,n,r){return t+u[n.toLowerCase()]+r}function o(e,t,n){return s[t.toLowerCase()]+n}function i(e){var t=e.indexOf("#")>-1,n=e.replace(f,r);return n!=e&&(n=n.replace(f,r)),t?n.replace(p,o):n}var a={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"},u={},s={};for(var l in a){var c=a[l];l.length100&&(t=100),t=~~t/100,n<0?n=0:n>100&&(n=100),n=~~n/100,0===t)r=i=a=n;else{var u=n<.5?n*(1+t):n+t-n*t,s=2*n-u;r=o(s,u,e+1/3),i=o(s,u,e),a=o(s,u,e-1/3)}return[~~(255*r),~~(255*i),~~(255*a)]}function o(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function i(e,t,n){var o=r(e,t,n),i=o[0].toString(16),a=o[1].toString(16),u=o[2].toString(16);return"#"+(1==i.length?"0":"")+i+(1==a.length?"0":"")+a+(1==u.length?"0":"")+u}t.exports=i},{}],14:[function(e,t,n){function r(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)}t.exports=r},{}],15:[function(e,t,n){function r(e,t){return a(e[1],t[1])}function o(e,t){return e[1]>t[1]?1:-1}function i(e,t){switch(t){case"natural":return e.sort(r);case"standard":return e.sort(o);case"none":case!1:return e}}var a=e("../../utils/natural-compare");t.exports=i},{"../../utils/natural-compare":95}],16:[function(e,t,n){function r(e){return e.replace(/\s+/g," ").replace(/url\(\s+/g,"url(").replace(/\s+\)/g,")").trim()}t.exports=r},{}],17:[function(e,t,n){function r(e,t){var n,r;for(r=e.length-1;r>=0;r--)n=!t&&o.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}var o=/^@media\W/;t.exports=r},{}],18:[function(e,t,n){function r(e){var t,n,r,o,i=!1,a=!1;for(r=0,o=e.length;r0)&&!l||g&&x&&!l||(o||r)&&(d||A>0)&&l||(m&&x&&!k?(w.pop(),w.push(n)):m&&!x&&k?(w.push(s.SPACE),w.push(n)):g?w.push(s.SPACE):w.push(n))}else w.push(n),h=!0;else w.push(n),p=!0;else w.push(n),A--;else w.push(n),A++;else w.push(n),d=!1;else w.push(n),d=!0;a=i,i=n==s.BACK_SLASH,E=m,x=g}return C?w.join("").replace(f,"$1 $2]"):w.join("")}function i(e){return-1==e.indexOf("'")&&-1==e.indexOf('"')?e:e.replace(m,"=$1 $2").replace(g,"=$1$2").replace(p,"=$1 $2").replace(h,"=$1$2")}function a(e,t,n,a,u){function s(e,t){return u.push("HTML comment '"+t+"' at "+l(e[2][0])+". Removing."),""}for(var c=[],f=[],p=0,h=e.length;p0&&(g=g.replace(/\+nav(\S|$)/,"+ nav$1")),t&&g.indexOf(y)>-1||t&&g.indexOf(_)>-1||(g.indexOf("*")>-1&&(g=g.replace(/\*([:#\.\[])/g,"$1").replace(/^(\:first\-child)?\+html/,"*$1+html")),f.indexOf(g)>-1||(m[1]=g,f.push(g),c.push(m))))}return 1==c.length&&0===c[0][1].length&&(u.push("Empty selector '"+c[0][1]+"' at "+l(c[0][2][0])+". Ignoring."),c=[]),c}var u=e("../../options/format").Spaces,s=e("../../tokenizer/marker"),l=e("../../utils/format-position"),c=/[\s"'][iI]\s*\]/,f=/([\d\w])([iI])\]/g,p=/="([a-zA-Z][a-zA-Z\d\-_]+)"([iI])/g,h=/="([a-zA-Z][a-zA-Z\d\-_]+)"(\s|\])/g,d=/^(?:(?:)\s*)+/,m=/='([a-zA-Z][a-zA-Z\d\-_]+)'([iI])/g,g=/='([a-zA-Z][a-zA-Z\d\-_]+)'(\s|\])/g,v=/[>\+~]/,b=/\s/,y="*+html ",_="*:first-child+html ",w="<";t.exports=a},{"../../options/format":62,"../../tokenizer/marker":84,"../../utils/format-position":88}],19:[function(e,t,n){function r(e){var t,n;for(t=0,n=e.length;t1&&r(b))throw new g("Invalid animation values at "+_(b[0][2][0])+". Ignoring.");for(i=0,u=b.length;i=0;A--){var E=h[A];if(n.isBackgroundAttachmentKeyword(E[1]))s.value=[E],w=!0;else if(n.isBackgroundClipKeyword(E[1])||n.isBackgroundOriginKeyword(E[1]))m?(l.value=[E],v=!0):(c.value=[E],m=!0),w=!0;else if(n.isBackgroundRepeatKeyword(E[1]))b?u.value.unshift(E):(u.value=[E],b=!0),w=!0;else if(n.isBackgroundPositionKeyword(E[1])||n.isBackgroundSizeKeyword(E[1])||n.isUnit(E[1])||n.isDynamicUnit(E[1])){if(A>0){var x=h[A-1];x[1]==y.FORWARD_SLASH?i.value=[E]:A>1&&h[A-2][1]==y.FORWARD_SLASH?(i.value=[x,E],A-=2):(d||(o.value=[]),o.value.unshift(E),d=!0)}else d||(o.value=[]),o.value.unshift(E),d=!0;w=!0}else f.value[0][1]!=t[f.name].defaultValue&&"none"!=f.value[0][1]||!n.isColor(E[1])&&!n.isPrefixed(E[1])?(n.isUrl(E[1])||n.isFunction(E[1]))&&(r.value=[E],w=!0):(f.value=[E],w=!0)}if(m&&!v&&(l.value=c.value.slice(0)),!w)throw new g("Invalid background value at "+_(h[0][2][0])+". Ignoring.");return p}function c(e,t){for(var n=e.value,r=-1,o=0,i=n.length;o-1?n.slice(0,r):n.slice(0),u.components=p(u,t);var s=a(e.name,e,t);s.value=r>-1?n.slice(r+1):n.slice(0),s.components=p(s,t);for(var l=0;l<4;l++)u.components[l].multiplex=!0,u.components[l].value=u.components[l].value.concat(s.components[l].value);return u.components}function f(e,t,n){var o,i,u,s,l=a("font-style",e,t),c=a("font-variant",e,t),f=a("font-weight",e,t),p=a("font-stretch",e,t),h=a("font-size",e,t),d=a("line-height",e,t),m=a("font-family",e,t),v=[l,c,f,p,h,d,m],b=e.value,w=0,A=!1,E=!1,x=!1,C=!1,k=!1,O=!1;if(!b[w])throw new g("Missing font values at "+_(e.all[e.position][1][2][0])+". Ignoring.");if(1==b.length&&"inherit"==b[0][1])return l.value=c.value=f.value=p.value=h.value=d.value=m.value=b,v;if(1==b.length&&(n.isFontKeyword(b[0][1])||n.isGlobal(b[0][1])||n.isPrefixed(b[0][1])))return b[0][1]=y.INTERNAL+b[0][1],l.value=c.value=f.value=p.value=h.value=d.value=m.value=b,v;if(b.length>1&&r(b))throw new g("Invalid font values at "+_(b[0][2][0])+". Ignoring.");for(;w<4;){if(o=n.isFontStretchKeyword(b[w][1])||n.isGlobal(b[w][1]),i=n.isFontStyleKeyword(b[w][1])||n.isGlobal(b[w][1]),u=n.isFontVariantKeyword(b[w][1])||n.isGlobal(b[w][1]),s=n.isFontWeightKeyword(b[w][1])||n.isGlobal(b[w][1]),i&&!E)l.value=[b[w]],E=!0;else if(u&&!x)c.value=[b[w]],x=!0;else if(s&&!C)f.value=[b[w]],C=!0;else{if(!o||A){if(i&&E||u&&x||s&&C||o&&A)throw new g("Invalid font style / variant / weight / stretch value at "+_(b[0][2][0])+". Ignoring.");break}p.value=[b[w]],A=!0}w++}if(!(n.isFontSizeKeyword(b[w][1])||n.isUnit(b[w][1])&&!n.isDynamicUnit(b[w][1])))throw new g("Missing font size at "+_(b[0][2][0])+". Ignoring.");if(h.value=[b[w]],k=!0,w++,!b[w])throw new g("Missing font family at "+_(b[0][2][0])+". Ignoring.");for(k&&b[w]&&b[w][1]==y.FORWARD_SLASH&&b[w+1]&&(n.isLineHeightKeyword(b[w+1][1])||n.isUnit(b[w+1][1])||n.isNumber(b[w+1][1]))&&(d.value=[b[w+1]],w++,w++),m.value=[];b[w];)b[w][1]==y.COMMA?O=!1:(O?m.value[m.value.length-1][1]+=y.SPACE+b[w][1]:m.value.push(b[w]),O=!0),w++;if(0===m.value.length)throw new g("Missing font family at "+_(b[0][2][0])+". Ignoring.");return v}function p(e,t){var n=t[e.name].components,r=[],o=e.value;if(o.length<1)return[];o.length<2&&(o[1]=o[0].slice(0)),o.length<3&&(o[2]=o[0].slice(0)),o.length<4&&(o[3]=o[1].slice(0));for(var i=n.length-1;i>=0;i--){var a=v([b.PROPERTY,[b.PROPERTY_NAME,n[i]]]);a.value=[o[i]],r.unshift(a)}return r}function h(e){return function(t,n,r){var o,i,u,s,l=[],c=t.value;for(o=0,u=c.length;o0&&(n.isListStyleTypeKeyword(s[0][1])||n.isIdentifier(s[0][1]))&&(r.value=[s[0]]),u}function m(e,t,n){for(var r,s,l,c=t[e.name],f=[a(c.components[0],e,t),a(c.components[1],e,t),a(c.components[2],e,t)],p=0;p<3;p++){var h=f[p];h.name.indexOf("color")>0?r=h:h.name.indexOf("style")>0?s=h:l=h}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=s.value=l.value=[e.value[0]],f;var d,m,g=e.value.slice(0);return g.length>0&&(d=(m=g.filter(u(n))).length>1&&("none"==m[0][1]||"auto"==m[0][1])?m[1]:m[0])&&(l.value=[d],g.splice(g.indexOf(d),1)),g.length>0&&(d=g.filter(i(n))[0])&&(s.value=[d],g.splice(g.indexOf(d),1)),g.length>0&&(d=g.filter(o(n))[0])&&(r.value=[d],g.splice(g.indexOf(d),1)),f}var g=e("./invalid-property-error"),v=e("../wrap-for-optimizing").single,b=e("../../tokenizer/token"),y=e("../../tokenizer/marker"),_=e("../../utils/format-position");t.exports={animation:s,background:l,border:m,borderRadius:c,font:f,fourValues:p,listStyle:d,multiplex:h,outline:m}},{"../../tokenizer/marker":84,"../../tokenizer/token":85,"../../utils/format-position":88,"../wrap-for-optimizing":59,"./invalid-property-error":24}],20:[function(e,t,n){function r(e,t,n){return!!(w(e,t,n,0,!0)||e.isAnimationIterationCountKeyword(n)||e.isPositiveNumber(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||(e.isAnimationIterationCountKeyword(n)||e.isPositiveNumber(n)))}function o(e,t,n){return!!(w(e,t,n,0,!0)||e.isAnimationNameKeyword(n)||e.isIdentifier(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||(e.isAnimationNameKeyword(n)||e.isIdentifier(n)))}function i(e,t,n){return!!(w(e,t,n,0,!0)||e.isAnimationTimingFunction(n)||e.isGlobal(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||(e.isAnimationTimingFunction(n)||e.isGlobal(n)))}function a(e,t,n){return!(!e.isFunction(t)||!e.isFunction(n))&&t.substring(0,t.indexOf("("))===n.substring(0,n.indexOf("("))}function u(e,t,n){return!!(w(e,t,n,0,!0)||e.isBackgroundPositionKeyword(n)||e.isGlobal(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||(!(!e.isBackgroundPositionKeyword(n)&&!e.isGlobal(n))||b(e,t,n)))}function s(e,t,n){return!!(w(e,t,n,0,!0)||e.isBackgroundSizeKeyword(n)||e.isGlobal(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||(!(!e.isBackgroundSizeKeyword(n)&&!e.isGlobal(n))||b(e,t,n)))}function l(e,t,n){return!(!w(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))||m(e,t,n))))}function c(e){return function(t,n,r,o){return e[o](t,n,r)}}function f(e,t,n){return w(e,t,n,0,!0)}function p(e,t,n){return!(!w(e,t,n,0,!0)&&!e.isImage(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||(!!e.isImage(n)||!e.isImage(t)&&m(e,t,n)))}function h(e){return function(t,n,r){return!(!w(t,n,r,0,!0)&&!t.isKeyword(e)(r))&&(!(!t.isVariable(n)||!t.isVariable(r))||t.isKeyword(e)(r))}}function d(e){return function(t,n,r){return!!(w(t,n,r,0,!0)||t.isKeyword(e)(r)||t.isGlobal(r))&&(!(!t.isVariable(n)||!t.isVariable(r))||(t.isKeyword(e)(r)||t.isGlobal(r)))}}function m(e,t,n){return!!a(e,t,n)||t===n}function g(e,t,n){return!!(w(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)))}function v(e,t,n){return!(!w(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))||m(e,t,n))))}function b(e,t,n){return!(!w(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))||m(e,t,n))))}function y(e){var t=d(e);return function(e,n,r){return b(e,n,r)||t(e,n,r)}}function _(e,t,n){return!(!w(e,t,n,0,!0)&&!e.isZIndex(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||e.isZIndex(n))}var w=e("./properties/understandable");t.exports={generic:{color:l,components:c,image:p,time:v,unit:b},property:{animationDirection:d("animation-direction"),animationFillMode:h("animation-fill-mode"),animationIterationCount:r,animationName:o,animationPlayState:d("animation-play-state"),animationTimingFunction:i,backgroundAttachment:h("background-attachment"),backgroundClip:d("background-clip"),backgroundOrigin:h("background-origin"),backgroundPosition:u,backgroundRepeat:h("background-repeat"),backgroundSize:s,bottom:y("bottom"),borderCollapse:h("border-collapse"),borderStyle:d("*-style"),clear:d("clear"),cursor:d("cursor"),display:d("display"),float:d("float"),left:y("left"),fontFamily:f,fontStretch:d("font-stretch"),fontStyle:d("font-style"),fontVariant:d("font-variant"),fontWeight:d("font-weight"),listStyleType:d("list-style-type"),listStylePosition:d("list-style-position"),outlineStyle:d("*-style"),overflow:d("overflow"),position:d("position"),right:y("right"),textAlign:d("text-align"),textDecoration:d("text-decoration"),textOverflow:d("text-overflow"),textShadow:g,top:y("top"),transform:m,verticalAlign:y("vertical-align"),visibility:d("visibility"),whiteSpace:d("white-space"),zIndex:_}}},{"./properties/understandable":41}],21:[function(e,t,n){function r(e){for(var t=o(e),n=e.components.length-1;n>=0;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}function o(e){var t=i([a.PROPERTY,[a.PROPERTY_NAME,e.name]]);return t.important=e.important,t.hack=e.hack,t.unused=!1,t}var i=e("../wrap-for-optimizing").single,a=e("../../tokenizer/token");t.exports={deep:r,shallow:o}},{"../../tokenizer/token":85,"../wrap-for-optimizing":59}],22:[function(e,t,n){var r=e("./break-up"),o=e("./can-override"),i=e("./restore"),a=e("../../utils/override"),u={animation:{canOverride:o.generic.components([o.generic.time,o.property.animationTimingFunction,o.generic.time,o.property.animationIterationCount,o.property.animationDirection,o.property.animationFillMode,o.property.animationPlayState,o.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:i.multiplex(i.withoutDefaults),shorthand:!0,vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-delay":{canOverride:o.generic.time,componentOf:["animation"],defaultValue:"0s",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-direction":{canOverride:o.property.animationDirection,componentOf:["animation"],defaultValue:"normal",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-duration":{canOverride:o.generic.time,componentOf:["animation"],defaultValue:"0s",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-fill-mode":{canOverride:o.property.animationFillMode,componentOf:["animation"],defaultValue:"none",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-iteration-count":{canOverride:o.property.animationIterationCount,componentOf:["animation"],defaultValue:"1",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-name":{canOverride:o.property.animationName,componentOf:["animation"],defaultValue:"none",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-play-state":{canOverride:o.property.animationPlayState,componentOf:["animation"],defaultValue:"running",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-timing-function":{canOverride:o.property.animationTimingFunction,componentOf:["animation"],defaultValue:"ease",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},background:{canOverride:o.generic.components([o.generic.image,o.property.backgroundPosition,o.property.backgroundSize,o.property.backgroundRepeat,o.property.backgroundAttachment,o.property.backgroundOrigin,o.property.backgroundClip,o.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:i.multiplex(i.background),shortestValue:"0",shorthand:!0},"background-attachment":{canOverride:o.property.backgroundAttachment,componentOf:["background"],defaultValue:"scroll",intoMultiplexMode:"real"},"background-clip":{canOverride:o.property.backgroundClip,componentOf:["background"],defaultValue:"border-box",intoMultiplexMode:"real",shortestValue:"border-box"},"background-color":{canOverride:o.generic.color,componentOf:["background"],defaultValue:"transparent",intoMultiplexMode:"real",multiplexLastOnly:!0,nonMergeableValue:"none",shortestValue:"red"},"background-image":{canOverride:o.generic.image,componentOf:["background"],defaultValue:"none",intoMultiplexMode:"default"},"background-origin":{canOverride:o.property.backgroundOrigin,componentOf:["background"],defaultValue:"padding-box",intoMultiplexMode:"real",shortestValue:"border-box"},"background-position":{canOverride:o.property.backgroundPosition,componentOf:["background"],defaultValue:["0","0"],doubleValues:!0,intoMultiplexMode:"real",shortestValue:"0"},"background-repeat":{canOverride:o.property.backgroundRepeat,componentOf:["background"],defaultValue:["repeat"],doubleValues:!0,intoMultiplexMode:"real"},"background-size":{canOverride:o.property.backgroundSize,componentOf:["background"],defaultValue:["auto"],doubleValues:!0,intoMultiplexMode:"real",shortestValue:"0 0"},bottom:{canOverride:o.property.bottom,defaultValue:"auto"},border:{breakUp:r.border,canOverride:o.generic.components([o.generic.unit,o.property.borderStyle,o.generic.color]),components:["border-width","border-style","border-color"],defaultValue:"none",overridesShorthands:["border-bottom","border-left","border-right","border-top"],restore:i.withoutDefaults,shorthand:!0,shorthandComponents:!0},"border-bottom":{breakUp:r.border,canOverride:o.generic.components([o.generic.unit,o.property.borderStyle,o.generic.color]),components:["border-bottom-width","border-bottom-style","border-bottom-color"],defaultValue:"none",restore:i.withoutDefaults,shorthand:!0},"border-bottom-color":{canOverride:o.generic.color,componentOf:["border-bottom","border-color"],defaultValue:"none"},"border-bottom-left-radius":{canOverride:o.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-bottom-right-radius":{canOverride:o.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-bottom-style":{canOverride:o.property.borderStyle,componentOf:["border-bottom","border-style"],defaultValue:"none"},"border-bottom-width":{canOverride:o.generic.unit,componentOf:["border-bottom","border-width"],defaultValue:"medium",oppositeTo:"border-top-width",shortestValue:"0"},"border-collapse":{canOverride:o.property.borderCollapse,defaultValue:"separate"},"border-color":{breakUp:r.fourValues,canOverride:o.generic.components([o.generic.color,o.generic.color,o.generic.color,o.generic.color]),componentOf:["border"],components:["border-top-color","border-right-color","border-bottom-color","border-left-color"],defaultValue:"none",restore:i.fourValues,shortestValue:"red",shorthand:!0},"border-left":{breakUp:r.border,canOverride:o.generic.components([o.generic.unit,o.property.borderStyle,o.generic.color]),components:["border-left-width","border-left-style","border-left-color"],defaultValue:"none",restore:i.withoutDefaults,shorthand:!0},"border-left-color":{canOverride:o.generic.color,componentOf:["border-color","border-left"],defaultValue:"none"},"border-left-style":{canOverride:o.property.borderStyle,componentOf:["border-left","border-style"],defaultValue:"none"},"border-left-width":{canOverride:o.generic.unit,componentOf:["border-left","border-width"],defaultValue:"medium",oppositeTo:"border-right-width",shortestValue:"0"},"border-radius":{breakUp:r.borderRadius,canOverride:o.generic.components([o.generic.unit,o.generic.unit,o.generic.unit,o.generic.unit]),components:["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],defaultValue:"0",restore:i.borderRadius,shorthand:!0,vendorPrefixes:["-moz-","-o-"]},"border-right":{breakUp:r.border,canOverride:o.generic.components([o.generic.unit,o.property.borderStyle,o.generic.color]),components:["border-right-width","border-right-style","border-right-color"],defaultValue:"none",restore:i.withoutDefaults,shorthand:!0},"border-right-color":{canOverride:o.generic.color,componentOf:["border-color","border-right"],defaultValue:"none"},"border-right-style":{canOverride:o.property.borderStyle,componentOf:["border-right","border-style"],defaultValue:"none"},"border-right-width":{canOverride:o.generic.unit,componentOf:["border-right","border-width"],defaultValue:"medium",oppositeTo:"border-left-width",shortestValue:"0"},"border-style":{breakUp:r.fourValues,canOverride:o.generic.components([o.property.borderStyle,o.property.borderStyle,o.property.borderStyle,o.property.borderStyle]),componentOf:["border"],components:["border-top-style","border-right-style","border-bottom-style","border-left-style"],defaultValue:"none",restore:i.fourValues,shorthand:!0},"border-top":{breakUp:r.border,canOverride:o.generic.components([o.generic.unit,o.property.borderStyle,o.generic.color]),components:["border-top-width","border-top-style","border-top-color"],defaultValue:"none",restore:i.withoutDefaults,shorthand:!0},"border-top-color":{canOverride:o.generic.color,componentOf:["border-color","border-top"],defaultValue:"none"},"border-top-left-radius":{canOverride:o.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-top-right-radius":{canOverride:o.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-top-style":{canOverride:o.property.borderStyle,componentOf:["border-style","border-top"],defaultValue:"none"},"border-top-width":{canOverride:o.generic.unit,componentOf:["border-top","border-width"],defaultValue:"medium",oppositeTo:"border-bottom-width",shortestValue:"0"},"border-width":{breakUp:r.fourValues,canOverride:o.generic.components([o.generic.unit,o.generic.unit,o.generic.unit,o.generic.unit]),componentOf:["border"],components:["border-top-width","border-right-width","border-bottom-width","border-left-width"],defaultValue:"medium",restore:i.fourValues,shortestValue:"0",shorthand:!0},clear:{canOverride:o.property.clear,defaultValue:"none"},color:{canOverride:o.generic.color,defaultValue:"transparent",shortestValue:"red"},cursor:{canOverride:o.property.cursor,defaultValue:"auto"},display:{canOverride:o.property.display},float:{canOverride:o.property.float,defaultValue:"none"},font:{breakUp:r.font,canOverride:o.generic.components([o.property.fontStyle,o.property.fontVariant,o.property.fontWeight,o.property.fontStretch,o.generic.unit,o.generic.unit,o.property.fontFamily]),components:["font-style","font-variant","font-weight","font-stretch","font-size","line-height","font-family"],restore:i.font,shorthand:!0},"font-family":{canOverride:o.property.fontFamily,defaultValue:"user|agent|specific"},"font-size":{canOverride:o.generic.unit,defaultValue:"medium",shortestValue:"0"},"font-stretch":{canOverride:o.property.fontStretch,defaultValue:"normal"},"font-style":{canOverride:o.property.fontStyle,defaultValue:"normal"},"font-variant":{canOverride:o.property.fontVariant,defaultValue:"normal"},"font-weight":{canOverride:o.property.fontWeight,defaultValue:"normal",shortestValue:"400"},height:{canOverride:o.generic.unit,defaultValue:"auto",shortestValue:"0"},left:{canOverride:o.property.left,defaultValue:"auto"},"line-height":{canOverride:o.generic.unit,defaultValue:"normal",shortestValue:"0"},"list-style":{canOverride:o.generic.components([o.property.listStyleType,o.property.listStylePosition,o.property.listStyleImage]),components:["list-style-type","list-style-position","list-style-image"],breakUp:r.listStyle,restore:i.withoutDefaults,defaultValue:"outside",shortestValue:"none",shorthand:!0},"list-style-image":{canOverride:o.generic.image,componentOf:["list-style"],defaultValue:"none"},"list-style-position":{canOverride:o.property.listStylePosition,componentOf:["list-style"],defaultValue:"outside",shortestValue:"inside"},"list-style-type":{canOverride:o.property.listStyleType,componentOf:["list-style"],defaultValue:"decimal|disc",shortestValue:"none"},margin:{breakUp:r.fourValues,canOverride:o.generic.components([o.generic.unit,o.generic.unit,o.generic.unit,o.generic.unit]),components:["margin-top","margin-right","margin-bottom","margin-left"],defaultValue:"0",restore:i.fourValues,shorthand:!0},"margin-bottom":{canOverride:o.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-top"},"margin-left":{canOverride:o.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-right"},"margin-right":{canOverride:o.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-left"},"margin-top":{canOverride:o.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-bottom"},outline:{canOverride:o.generic.components([o.generic.color,o.property.outlineStyle,o.generic.unit]),components:["outline-color","outline-style","outline-width"],breakUp:r.outline,restore:i.withoutDefaults,defaultValue:"0",shorthand:!0},"outline-color":{canOverride:o.generic.color,componentOf:["outline"],defaultValue:"invert",shortestValue:"red"},"outline-style":{canOverride:o.property.outlineStyle,componentOf:["outline"],defaultValue:"none"},"outline-width":{canOverride:o.generic.unit,componentOf:["outline"],defaultValue:"medium",shortestValue:"0"},overflow:{canOverride:o.property.overflow,defaultValue:"visible"},"overflow-x":{canOverride:o.property.overflow,defaultValue:"visible"},"overflow-y":{canOverride:o.property.overflow,defaultValue:"visible"},padding:{breakUp:r.fourValues,canOverride:o.generic.components([o.generic.unit,o.generic.unit,o.generic.unit,o.generic.unit]),components:["padding-top","padding-right","padding-bottom","padding-left"],defaultValue:"0",restore:i.fourValues,shorthand:!0},"padding-bottom":{canOverride:o.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-top"},"padding-left":{canOverride:o.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-right"},"padding-right":{canOverride:o.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-left"},"padding-top":{canOverride:o.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-bottom"},position:{canOverride:o.property.position,defaultValue:"static"},right:{canOverride:o.property.right,defaultValue:"auto"},"text-align":{canOverride:o.property.textAlign,defaultValue:"left|right"},"text-decoration":{canOverride:o.property.textDecoration,defaultValue:"none"},"text-overflow":{canOverride:o.property.textOverflow,defaultValue:"none"},"text-shadow":{canOverride:o.property.textShadow,defaultValue:"none"},top:{canOverride:o.property.top,defaultValue:"auto"},transform:{canOverride:o.property.transform,vendorPrefixes:["-moz-","-ms-","-webkit-"]},"vertical-align":{canOverride:o.property.verticalAlign,defaultValue:"baseline"},visibility:{canOverride:o.property.visibility,defaultValue:"visible"},"white-space":{canOverride:o.property.whiteSpace,defaultValue:"normal"},width:{canOverride:o.generic.unit,defaultValue:"auto",shortestValue:"0"},"z-index":{canOverride:o.property.zIndex,defaultValue:"auto"}},s={};for(var l in u){var c=u[l];if("vendorPrefixes"in c){for(var f=0;f~]/.test(a(e[1])),c=0,f=e[2].length;c0?"border-radius":"border-collapse"==e||"border-spacing"==e||"border-image"==e?e:0===e.indexOf("border-")&&/^border\-\w+\-\w+$/.test(e)?e.match(/border\-\w+/)[0]:0===e.indexOf("border-")&&/^border\-\w+$/.test(e)?"border":0===e.indexOf("text-")?e:"-chrome-"==e?e:e.replace(/^\-\w+\-/,"").match(/([a-zA-Z]+)/)[0].toLowerCase()}var i=e("../../tokenizer/token"),a=e("../../writer/one-time").rules,u=e("../../writer/one-time").value;t.exports=r},{"../../tokenizer/token":85,"../../writer/one-time":99}],24:[function(e,t,n){function r(e){this.name="InvalidPropertyError",this.message=e,this.stack=(new Error).stack}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,t.exports=r},{}],25:[function(e,t,n){function r(e,t,n,r){var u,s,l,c=h(e,p.COMMA);for(s=0,l=c.length;s-1&&!a(u,i(u),t,n,r))return!1;return!0}function o(e){return d.test(e)}function i(e){var t,n,r,o,i,a,u=[],s=[],l=w.ROOT,c=0,f=!1,h=!1;for(i=0,a=e.length;i0&&f&&u.push(s.join("")),u}function a(e,t,n,r,o){return u(t,n,r)&&s(t)&&(t.length<2||!l(e,t))&&(t.length<2||o&&c(t))}function u(e,t,n){var r,o,i,a;for(i=0,a=e.length;i-1?r.substring(0,r.indexOf(p.OPEN_ROUND_BRACKET)):r,-1===t.indexOf(o)&&-1===n.indexOf(o))return!1;return!0}function s(e){var t,n,r,o,i,a;for(i=0,a=e.length;i-1,n=o?t.substring(0,r):t,o&&-1==v.indexOf(n))return!1;if(!o&&v.indexOf(n)>-1)return!1}return!0}function l(e,t){var n,r,o,i,a,u,s,l,c=0;for(s=0,l=t.length;s-1?n.substring(0,n.indexOf(p.OPEN_ROUND_BRACKET)):n,u=o.indexOf(p.OPEN_ROUND_BRACKET)>-1?o.substring(0,o.indexOf(p.OPEN_ROUND_BRACKET)):o,a!=g||u!=g))return!0;return!1}function c(e){var t,n,r,o=0;for(n=0,r=e.length;n-1?1:0:o+=y.indexOf(t)>-1?1:0,o>1)return!1;return!0}function f(e){return m.test(e)}var p=e("../../tokenizer/marker"),h=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"};t.exports=r},{"../../tokenizer/marker":84,"../../utils/split":97}],26:[function(e,t,n){function r(e,t){for(var n=[null,[],[]],r=t.options,p=r.compatibility.selectors.adjacentSpace,h=r.level[s.One].selectorsSortingMethod,d=r.compatibility.selectors.mergeablePseudoClasses,m=r.compatibility.selectors.mergeablePseudoElements,g=r.compatibility.selectors.mergeLimit,v=r.compatibility.selectors.multiplePseudoMerging,b=0,y=e.length;b1?a(n[1],h):n[1],_[2]=[]):n=_:n=[null,[],[]]}}var o=e("./is-mergeable"),i=e("./properties/optimize"),a=e("../level-1/sort-selectors"),u=e("../level-1/tidy-rules"),s=e("../../options/optimization-level").OptimizationLevel,l=e("../../writer/one-time").body,c=e("../../writer/one-time").rules,f=e("../../tokenizer/token");t.exports=r},{"../../options/optimization-level":66,"../../tokenizer/token":85,"../../writer/one-time":99,"../level-1/sort-selectors":15,"../level-1/tidy-rules":18,"./is-mergeable":25,"./properties/optimize":37}],27:[function(e,t,n){function r(e,t){for(var n=t.options.level[c.Two].mergeSemantically,r=t.cache.specificity,a={},s=[],p=e.length-1;p>=0;p--){var h=e[p];if(h[0]==f.NESTED_BLOCK){var d=l(h[1]),m=a[d];m||(m=[],a[d]=m),m.push(p)}}for(var g in a){var v=a[g];e:for(var b=v.length-1;b>0;b--){var y=v[b],_=e[y],w=v[b-1],A=e[w];t:for(var E=1;E>=-1;E-=2){for(var x=1==E,C=x?y+1:w-1,k=x?w:y,O=x?1:-1,B=x?_:A,S=x?A:_,D=u(B);C!=k;){var T=u(e[C]);if(C+=O,!(n&&o(D,T,r)||i(D,T,r)))continue t}S[2]=x?B[2].concat(S[2]):S[2].concat(B[2]),B[2]=[],s.push(S);continue e}}}return s}function o(e,t,n){var r,o,i,u,l,c,f,p;for(l=0,c=e.length;l-1||t.indexOf("--")>-1}function i(e){return e.replace(/--[^ ,>\+~:]+/g,"")}function a(e,t){var n=i(h(e[1]));for(var r in t){var o=t[r],a=i(h(o[1]));(a.indexOf(n)>-1||n.indexOf(a)>-1)&&delete t[r]}}function u(e,t){for(var n=t.options,i=n.level[f.Two].mergeSemantically,u=n.compatibility.selectors.adjacentSpace,m=n.level[f.One].selectorsSortingMethod,g=n.compatibility.selectors.mergeablePseudoClasses,v=n.compatibility.selectors.mergeablePseudoElements,b=n.compatibility.selectors.multiplePseudoMerging,y={},_=e.length-1;_>=0;_--){var w=e[_];if(w[0]==d.RULE){w[2].length>0&&!i&&r(h(w[1]))&&(y={}),w[2].length>0&&i&&o(w)&&a(w,y);var A=p(w[2]),E=y[A];E&&s(h(w[1]),g,v,b)&&s(h(E[1]),g,v,b)&&(w[2].length>0?(w[1]=c(E[1].concat(w[1]),!1,u,!1,t.warnings),w[1]=w[1].length>1?l(w[1],m):w[1]):w[1]=E[1].concat(w[1]),E[2]=[],y[A]=null),y[p(w[2])]=w}}}var s=e("./is-mergeable"),l=e("../level-1/sort-selectors"),c=e("../level-1/tidy-rules"),f=e("../../options/optimization-level").OptimizationLevel,p=e("../../writer/one-time").body,h=e("../../writer/one-time").rules,d=e("../../tokenizer/token");t.exports=u},{"../../options/optimization-level":66,"../../tokenizer/token":85,"../../writer/one-time":99,"../level-1/sort-selectors":15,"../level-1/tidy-rules":18,"./is-mergeable":25}],29:[function(e,t,n){function r(e,t){var n,r=t.cache.specificity,l={},c=[];for(n=e.length-1;n>=0;n--)if(e[n][0]==s.RULE&&0!==e[n][2].length){var f=u(e[n][1]);l[f]=[n].concat(l[f]||[]),2==l[f].length&&c.push(f)}for(n=c.length-1;n>=0;n--){var p=l[c[n]];e:for(var h=p.length-1;h>0;h--){var d=p[h-1],m=e[d],g=p[h],v=e[g];t:for(var b=1;b>=-1;b-=2){for(var y=1==b,_=y?d+1:g-1,w=y?g:d,A=y?1:-1,E=y?m:v,x=y?v:m,C=i(E);_!=w;){var k=i(e[_]);_+=A;var O=y?o(C,k,r):o(k,C,r);if(!O&&!y)continue e;if(!O&&y)continue t}y?(Array.prototype.push.apply(E[2],x[2]),x[2]=E[2]):Array.prototype.push.apply(x[2],E[2]),a(x[2],!0,!0,t),E[2]=[]}}}}var o=e("./reorderable").canReorder,i=e("./extract-properties"),a=e("./properties/optimize"),u=e("../../writer/one-time").rules,s=e("../../tokenizer/token");t.exports=r},{"../../tokenizer/token":85,"../../writer/one-time":99,"./extract-properties":23,"./properties/optimize":37,"./reorderable":48}],30:[function(e,t,n){function r(e){for(var t=0,n=e.length;t=0;y--)a(v[y][2],t,!1);return _.removeEmpty&&r(e),e}var u=e("./merge-adjacent"),s=e("./merge-media-queries"),l=e("./merge-non-adjacent-by-body"),c=e("./merge-non-adjacent-by-selector"),f=e("./reduce-non-adjacent"),p=e("./remove-duplicate-font-at-rules"),h=e("./remove-duplicate-media-queries"),d=e("./remove-duplicates"),m=e("./remove-unused-at-rules"),g=e("./restructure"),v=e("./properties/optimize"),b=e("../../options/optimization-level").OptimizationLevel,y=e("../../tokenizer/token");t.exports=a},{"../../options/optimization-level":66,"../../tokenizer/token":85,"./merge-adjacent":26,"./merge-media-queries":27,"./merge-non-adjacent-by-body":28,"./merge-non-adjacent-by-selector":29,"./properties/optimize":37,"./reduce-non-adjacent":43,"./remove-duplicate-font-at-rules":44,"./remove-duplicate-media-queries":45,"./remove-duplicates":46,"./remove-unused-at-rules":47,"./restructure":51}],31:[function(e,t,n){function r(e,t,n){var r,i,a,u=t.value.length,s=n.value.length,l=Math.max(u,s),c=Math.min(u,s)-1;for(a=0;a=0;t--)if("inherit"==e.value[t][1])return!0;return!1}t.exports=r},{}],34:[function(e,t,n){function r(e,t,n){return o(e,t)||!n&&!!a[e.name].shorthandComponents&&i(e,t)}function o(e,t){var n=a[e.name];return"components"in n&&n.components.indexOf(t.name)>-1}function i(e,t){return e.components.some(function(e){return o(e,t)})}var a=e("../compactable");t.exports=r},{"../compactable":22}],35:[function(e,t,n){function r(e){return"font"!=e.name||-1==e.value[0][1].indexOf(o.INTERNAL)}var o=e("../../../tokenizer/marker");t.exports=r},{"../../../tokenizer/marker":84}],36:[function(e,t,n){function r(e,t){var n,r,i,a,u,s,l,c={};if(!(e.length<3)){for(a=0,u=e.length;aObject.keys(p).length||a(p)||u(p,o,r)&&s(p)&&(l(p)?c(e,p,o,r):v(e,p,o,r)))}function i(e,t,n){var r,o=w[t],i=w[n.name];if("overridesShorthands"in o&&o.overridesShorthands.indexOf(n.name)>-1)return!0;if(i&&"componentOf"in i)for(r in e[t])if(i.componentOf.indexOf(r)>-1)return!0;return!1}function a(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 u(e,t,n){var r,o,i,a,u=w[t],s=[O.PROPERTY,[O.PROPERTY_NAME,t],[O.PROPERTY_VALUE,u.defaultValue]],l=C(s);for(_([l],n,[]),i=0,a=u.components.length;i=0&&(e[o].name!=n||e[o].unused||r++,!(r>1));o--);return r>1}function m(e,t){for(var n=0,r=e.components.length;n=0;T--)if(a=e[T],b(a)&&!a.block){i=D[a.name].canOverride;t:for(R=T-1;R>=0;R--)if(c=e[R],b(c)&&!c.block&&!c.unused&&!a.unused&&(!c.hack||a.hack||a.important)&&(c.hack||c.important||!a.hack)&&(c.important!=a.important||c.hack[0]==a.hack[0])&&!(c.important==a.important&&(c.hack[0]!=a.hack[0]||c.hack[1]&&c.hack[1]!=a.hack[1])||E(a)||y(c,a)))if(a.shorthand&&k(a,c)){if(!a.important&&c.important)continue;if(!S([c],a.components))continue;if(!g(o.isFunction,c)&&m(a,o))continue;if(!O(a)){c.unused=!0;continue}f=C(a,c),i=D[c.name].canOverride,x(i.bind(null,o),c,f)&&(c.unused=!0)}else if(a.shorthand&&B(a,c)){if(!a.important&&c.important)continue;if(!S([c],a.components))continue;if(!g(o.isFunction,c)&&m(a,o))continue;for(F=(h=c.shorthand?c.components:[c]).length-1;F>=0;F--)if(_=h[F],w=C(a,_),i=D[_.name].canOverride,!x(i.bind(null,o),c,w))continue t;c.unused=!0}else if(t&&c.shorthand&&!a.shorthand&&k(c,a,!0)){if(a.important&&!c.important)continue;if(!a.important&&c.important){a.unused=!0;continue}if(d(e,T-1,c.name))continue;if(m(c,o))continue;if(!O(c))continue;if(f=C(c,a),x(i.bind(null,o),f,a)){var L=!n.properties.backgroundClipMerging&&f.name.indexOf("background-clip")>-1||!n.properties.backgroundOriginMerging&&f.name.indexOf("background-origin")>-1||!n.properties.backgroundSizeMerging&&f.name.indexOf("background-size")>-1,M=D[a.name].nonMergeableValue===a.value[0][1];if(L||M)continue;if(!n.properties.merging&&r(c,o))continue;if(f.value[0][1]!=a.value[0][1]&&(E(c)||E(a)))continue;if(v(c,a))continue;!c.multiplex&&a.multiplex&&l(c,p(a)),u(f,a),c.dirty=!0}}else if(t&&c.shorthand&&a.shorthand&&c.name==a.name){if(!c.multiplex&&a.multiplex)continue;if(!a.important&&c.important){a.unused=!0;continue e}if(a.important&&!c.important){c.unused=!0;continue}if(!O(a)){c.unused=!0;continue}for(F=c.components.length-1;F>=0;F--){var P=c.components[F],U=a.components[F];if(i=D[P.name].canOverride,!x(i.bind(null,o),P,U))continue e}s(c,a),c.dirty=!0}else if(t&&c.shorthand&&a.shorthand&&k(c,a)){if(!c.important&&a.important)continue;if(f=C(c,a),i=D[a.name].canOverride,!x(i.bind(null,o),f,a))continue;if(c.important&&!a.important){a.unused=!0;continue}if(D[a.name].restore(a,D).length>1)continue;u(f=C(c,a),a),a.dirty=!0}else if(c.name==a.name){if(A=!0,a.shorthand)for(F=a.components.length-1;F>=0&&A;F--)_=c.components[F],w=a.components[F],i=D[w.name].canOverride,A=A&&x(i.bind(null,o),_,w);else i=D[a.name].canOverride,A=x(i.bind(null,o),c,a);if(c.important&&!a.important&&A){a.unused=!0;continue}if(!c.important&&a.important&&A){c.unused=!0;continue}if(!A)continue;c.unused=!0}}}var E=e("./has-inherit"),x=e("./every-values-pair"),C=e("./find-component-in"),k=e("./is-component-of"),O=e("./is-mergeable-shorthand"),B=e("./overrides-non-component-shorthand"),S=e("./vendor-prefixes").same,D=e("../compactable"),T=e("../clone").deep,T=e("../clone").deep,R=e("../restore-with-components"),F=e("../clone").shallow,L=e("../../restore-from-optimizing"),M=e("../../../tokenizer/token"),P=e("../../../tokenizer/marker"),U=e("../../../writer/one-time").property;t.exports=A},{"../../../tokenizer/marker":84,"../../../tokenizer/token":85,"../../../writer/one-time":99,"../../restore-from-optimizing":57,"../clone":21,"../compactable":22,"../restore-with-components":49,"./every-values-pair":31,"./find-component-in":32,"./has-inherit":33,"./is-component-of":34,"./is-mergeable-shorthand":35,"./overrides-non-component-shorthand":39,"./vendor-prefixes":42}],39:[function(e,t,n){function r(e,t){return e.name in o&&"overridesShorthands"in o[e.name]&&o[e.name].overridesShorthands.indexOf(t.name)>-1}var o=e("../compactable");t.exports=r},{"../compactable":22}],40:[function(e,t,n){function r(e,t,n){for(var r,a,u,s=e.length-1;s>=0;s--){var l=e[s],c=o[l.name];if(c&&c.shorthand){l.shorthand=!0,l.dirty=!0;try{if(l.components=c.breakUp(l,o,t),c.shorthandComponents)for(a=0,u=l.components.length;a0?l.multiplex=l.components[0].multiplex:l.unused=!0}}}var o=e("../compactable"),i=e("../invalid-property-error");t.exports=r},{"../compactable":22,"../invalid-property-error":24}],41:[function(e,t,n){function r(e,t,n,r,i){return!!o(t,n)&&(!i||e.isVariable(t)===e.isVariable(n))}var o=e("./vendor-prefixes").same;t.exports=r},{"./vendor-prefixes":42}],42:[function(e,t,n){function r(e){for(var t,n=[];null!==(t=i.exec(e));)-1==n.indexOf(t[0])&&n.push(t[0]);return n}function o(e,t){return r(e).sort().join(",")==r(t).sort().join(",")}var i=/(?:^|\W)(\-\w+\-)/g;t.exports={unique:r,same:o}},{}],43:[function(e,t,n){function r(e,t){for(var n=t.options,r=n.compatibility.selectors.mergeablePseudoClasses,u=n.compatibility.selectors.mergeablePseudoElements,l=n.compatibility.selectors.multiplePseudoMerging,c={},p=[],d=e.length-1;d>=0;d--){var m=e[d];if(m[0]==f.RULE&&0!==m[2].length)for(var g=h(m[1]),v=m[1].length>1&&s(g,r,u,l),b=o(m[1]),y=v?[g].concat(b):[g],_=0,w=y.length;_0,isComplex:v&&0===_})}}i(e,p,c,n,t),a(e,c,n,t)}function o(e){for(var t=[],n=0;n=0;s--)if(!n.filterOut(s,i)){var f=t[s].where,p=e[f],h=c(p[2]);i=i.concat(h),a.push(h),u.push(f)}l(i,!0,!1,o);for(var d=u.length,m=i.length-1,g=d-1;g>=0;)if((0===g||i[m]&&a[g].indexOf(i[m])>-1)&&m>-1)m--;else{var v=i.splice(m+1);n.callback(e[u[g]],v,d,g),g--}}var s=e("./is-mergeable"),l=e("./properties/optimize"),c=e("../../utils/clone-array"),f=e("../../tokenizer/token"),p=e("../../writer/one-time").body,h=e("../../writer/one-time").rules;t.exports=r},{"../../tokenizer/token":85,"../../utils/clone-array":87,"../../writer/one-time":99,"./is-mergeable":25,"./properties/optimize":37}],44:[function(e,t,n){function r(e){var t,n,r,u,s=[];for(r=0,u=e.length;r-1?t[2]=[]:s.push(n))}var o=e("../../tokenizer/token"),i=e("../../writer/one-time").all,a="@font-face";t.exports=r},{"../../tokenizer/token":85,"../../writer/one-time":99}],45:[function(e,t,n){function r(e){var t,n,r,u,s,l={};for(u=0,s=e.length;u=0;p--)n=e[s[t][p]],r=i(n[2]),u.indexOf(r)>-1?n[2]=[]:u.push(r)}}var o=e("../../tokenizer/token"),i=e("../../writer/one-time").body,a=e("../../writer/one-time").rules;t.exports=r},{"../../tokenizer/token":85,"../../writer/one-time":99}],47:[function(e,t,n){function r(e,t){o(e,a,u,t),o(e,s,l,t),o(e,c,f,t),o(e,p,h,t)}function o(e,t,n,r){var o,a,u,s,l={};for(u=0,s=e.length;u=0;r--)for(var i=e.length-1;i>=0;i--)if(!o(e[i],t[r],n))return!1;return!0}function o(e,t,n){var r=e[0],o=e[1],g=e[2],v=e[5],b=e[6],y=t[0],_=t[1],w=t[2],A=t[5],E=t[6];return!("font"==r&&"line-height"==y||"font"==y&&"line-height"==r)&&((!d.test(r)||!d.test(y))&&(!(g==w&&a(r)==a(y)&&i(r)^i(y))&&(("border"!=g||!m.test(w)||!("border"==r||r==w||o!=_&&u(r,y)))&&(("border"!=w||!m.test(g)||!("border"==y||y==g||o!=_&&u(r,y)))&&(("border"!=g||"border"!=w||r==y||!(s(r)&&l(y)||l(r)&&s(y)))&&(g!=w||(!(r!=y||g!=w||o!=_&&!c(o,_))||(r!=y&&g==w&&r!=g&&y!=w||(r!=y&&g==w&&o==_||(!(!E||!b||f(g)||f(w)||p(A,v,!1))||!h(v,A,n)))))))))))}function i(e){return/^\-(?:moz|webkit|ms|o)\-/.test(e)}function a(e){return e.replace(/^\-(?:moz|webkit|ms|o)\-/,"")}function u(e,t){return e.split("-").pop()==t.split("-").pop()}function s(e){return"border-top"==e||"border-right"==e||"border-bottom"==e||"border-left"==e}function l(e){return"border-color"==e||"border-style"==e||"border-width"==e}function c(e,t){return i(e)&&i(t)&&e.split("-")[1]!=t.split("-")[2]}function f(e){return"font"==e||"line-height"==e||"list-style"==e}var p=e("./rules-overlap"),h=e("./specificities-overlap"),d=/align\-items|box\-align|box\-pack|flex|justify/,m=/^border\-(top|right|bottom|left|color|style|width|radius)/;t.exports={canReorder:r,canReorderSingle:o}},{"./rules-overlap":52,"./specificities-overlap":53}],49:[function(e,t,n){function r(e){var t=o[e.name];return t&&t.shorthand?t.restore(e,o):e.value}var o=e("./compactable");t.exports=r},{"./compactable":22}],50:[function(e,t,n){function r(e){for(var t=0,n=e.length;t=0;c--){var h=s[c],d=i(h);if("background-clip"==h.name){var m=s[c-1],g=i(m);u=!(a=h.value[0][1]==m.value[0][1])&&(g&&!d||!g&&!d||!g&&d&&h.value[0][1]!=m.value[0][1]),a?o(m):u&&(o(h),o(m)),c--}else if("background-size"==h.name){var v=s[c-1],b=i(v);u=!(a=!b&&d)&&(b&&!d||!b&&!d),a?o(v):u?(o(h),l.unshift([f.PROPERTY_VALUE,p.FORWARD_SLASH]),o(v)):1==v.value.length&&o(v),c--}else{if(d||t[h.name].multiplexLastOnly&&!n)continue;o(h)}}return 0===l.length&&1==e.value.length&&"0"==e.value[0][1]&&l.push(e.value[0]),0===l.length&&l.push([f.PROPERTY_VALUE,t[e.name].defaultValue]),r(l)?[l[0]]:l}function i(e,t){if(e.multiplex){for(var n=c(e),r=c(e),o=0;o<4;o++){var i=e.components[o],a=c(e);a.value=[i.value[0]],n.components.push(a);var s=c(e);s.value=[i.value[1]||i.value[0]],r.components.push(s)}var l=u(n),h=u(r);return l.length!=h.length||l[0][1]!=h[0][1]||l.length>1&&l[1][1]!=h[1][1]||l.length>2&&l[2][1]!=h[2][1]||l.length>3&&l[3][1]!=h[3][1]?l.concat([[f.PROPERTY_VALUE,p.FORWARD_SLASH]]).concat(h):l}return u(e)}function a(e,t){var n,o=e.components,i=[],a=0,u=0;if(0===e.value[0][1].indexOf(p.INTERNAL))return e.value[0][1]=e.value[0][1].substring(p.INTERNAL.length),e.value;for(;a<4;)(n=o[a]).value[0][1]!=t[n.name].defaultValue&&Array.prototype.push.apply(i,n.value),a++;for(Array.prototype.push.apply(i,o[a].value),o[++a].value[0][1]!=t[o[a].name].defaultValue&&(Array.prototype.push.apply(i,[[f.PROPERTY_VALUE,p.FORWARD_SLASH]]),Array.prototype.push.apply(i,o[a].value)),a++;o[a].value[u];)i.push(o[a].value[u]),o[a].value[u+1]&&i.push([f.PROPERTY_VALUE,p.COMMA]),u++;return r(i)?[i[0]]:i}function u(e){var t=e.components,n=t[0].value[0],r=t[1].value[0],o=t[2].value[0],i=t[3].value[0];return n[1]==r[1]&&n[1]==o[1]&&n[1]==i[1]?[n]:n[1]==o[1]&&r[1]==i[1]?[n,r]:r[1]==i[1]?[n,r,o]:[n,r,o,i]}function s(e){return function(t,n){if(!t.multiplex)return e(t,n,!0);var r,o,i=0,a=[],u={};for(r=0,o=t.components[0].value.length;r=0;i--){var a=n[i],u=t[a.name];a.value[0][1]!=u.defaultValue&&o.unshift(a.value[0])}return 0===o.length&&o.push([f.PROPERTY_VALUE,t[e.name].defaultValue]),r(o)?[o[0]]:o}var c=e("./clone").shallow,f=e("../../tokenizer/token"),p=e("../../tokenizer/marker");t.exports={background:o,borderRadius:i,font:a,fourValues:u,multiplex:s,withoutDefaults:l}},{"../../tokenizer/marker":84,"../../tokenizer/token":85,"./clone":21}],51:[function(e,t,n){function r(e,t){return e>t?1:-1}function o(e,t){var n=f(e);return n[5]=n[5].concat(t[5]),n}function i(e,t){function n(e,t,n){for(var r=n.length-1;r>=0;r--){var o=i(t,n[r][0]);if(F[o].length>1&&x(e,F[o])){f(o);break}}}function i(e,t){var n=d(t);return F[n]=F[n]||[],F[n].push([e,t]),n}function f(e){var t,n=e.split(P),r=[];for(var o in F){var i=o.split(P);for(t=i.length-1;t>=0;t--)if(n.indexOf(i[t])>-1){r.push(o);break}}for(t=r.length-1;t>=0;t--)delete F[r[t]]}function d(e){for(var t=[],n=0,r=e.length;n=0;r--)s(h(e[r][1]),k,O,S)&&(n.unshift(e[r]),e[r][2].length>0&&-1==t.indexOf(e[r])&&t.push(e[r]));return t.length>1?n:[]}function g(e,t){var r=t[0],o=t[1],i=t[4],a=r.length+o.length+1,u=[],s=[],c=m(T[i]);if(!(c.length<2)){var f=b(c,a,1),p=f[0];if(p[1]>0)return n(e,t,f);for(var h=p[0].length-1;h>=0;h--)u=p[0][h][1].concat(u),s.unshift(p[0][h]);w(e,[t],u=l(u),s)}}function v(e,t){return e[1]>t[1]?1:e[1]==t[1]?0:-1}function b(e,t,n){return y(e,t,n,M-1).sort(v)}function y(e,t,n,r){var o=[[e,_(e,t,n)]];if(e.length>2&&r>0)for(var i=e.length-1;i>=0;i--){var a=Array.prototype.slice.call(e,0);a.splice(i,1),o=o.concat(y(a,t,n,r-1))}return o}function _(e,t,n){for(var r=0,o=e.length-1;o>=0;o--)r+=e[o][2].length>n?h(e[o][1]).length:-1;return r-(e.length-1)*t+1}function w(t,n,r,o){var i,a,u,s,l=[];for(i=o.length-1;i>=0;i--){var f=o[i];for(a=f[2].length-1;a>=0;a--){var h=f[2][a];for(u=0,s=n.length;u=0;i--)l.unshift(n[i][3]);var b=[c.RULE,r,l];e.splice(t,0,b)}function A(e,t){var n=t[4],r=T[n];r&&r.length>1&&(E(e,t)||g(e,t))}function E(e,t){var n,r,o=[],i=[],a=t[4],u=m(T[a]);if(!(u.length<2)){e:for(var s in T){var l=T[s];for(n=u.length-1;n>=0;n--)if(-1==l.indexOf(u[n]))continue e;o.push(s)}if(o.length<2)return!1;for(n=o.length-1;n>=0;n--)for(r=R.length-1;r>=0;r--)if(R[r][4]==o[n]){i.unshift([R[r],u]);break}return x(e,i)}}function x(e,t){for(var n,r=0,o=[],i=t.length-1;i>=0;i--)r+=(n=t[i][0])[4].length+(i>0?1:0),o.push(n);var a=b(t[0][1],r,o.length)[0];if(a[1]>0)return!1;var u=[],s=[];for(i=a[0].length-1;i>=0;i--)u=a[0][i][1].concat(u),s.unshift(a[0][i]);for(w(e,o,u=l(u),s),i=o.length-1;i>=0;i--){n=o[i];var c=R.indexOf(n);delete T[n[4]],c>-1&&-1==L.indexOf(c)&&L.push(c)}return!0}for(var C=t.options,k=C.compatibility.selectors.mergeablePseudoClasses,O=C.compatibility.selectors.mergeablePseudoElements,B=C.compatibility.selectors.mergeLimit,S=C.compatibility.selectors.multiplePseudoMerging,D=t.cache.specificity,T={},R=[],F={},L=[],M=2,P="%",U=e.length-1;U>=0;U--){var N,q,z,I,j,V=e[U];if(V[0]==c.RULE)N=!0;else{if(V[0]!=c.NESTED_BLOCK)continue;N=!1}var $=R.length,H=u(V);L=[];var K=[];for(q=H.length-1;q>=0;q--)for(z=q-1;z>=0;z--)if(!a(H[q],H[z],D)){K.push(q);break}for(q=H.length-1;q>=0;q--){var Y=H[q],G=!1;for(z=0;z<$;z++){var W=R[z];-1==L.indexOf(z)&&(!a(Y,W,D)&&!function(e,t,n){if(e[0]!=t[0])return!1;var r=t[4],o=T[r];return o&&o.indexOf(n)>-1}(Y,W,V)||T[W[4]]&&T[W[4]].length===B)&&(A(U+1,W),-1==L.indexOf(z)&&(L.push(z),delete T[W[4]])),G||(G=Y[0]==W[0]&&Y[1]==W[1])&&(j=z)}if(N&&!(K.indexOf(q)>-1)){var Q=Y[4];G&&R[j][5].length+Y[5].length>B?(A(U+1,R[j]),R.splice(j,1),T[Q]=[V],G=!1):(T[Q]=T[Q]||[],T[Q].push(V)),G?R[j]=o(R[j],Y):R.push(Y)}}for(q=0,I=(L=L.sort(r)).length;q0&&!m||(t==i.OPEN_ROUND_BRACKET?d++:t==i.CLOSE_ROUND_BRACKET&&1==d?(d--,m=!1):t==i.CLOSE_ROUND_BRACKET?d--:t==a.HASH?h[0]++:t==a.DOT||t==i.OPEN_SQUARE_BRACKET?h[1]++:t!=a.PSEUDO||g||o(e,f)?t==a.PSEUDO?m=!0:(0===f||c)&&u.test(t)&&h[2]++:(h[1]++,m=!1))}else s=!0;else r=!0;n=t==i.BACK_SLASH,g=t==a.PSEUDO,c=!n&&l.test(t)}return h}function o(e,t){return e.indexOf(s,t)===t}var i=e("../../tokenizer/marker"),a={ADJACENT_SIBLING:"+",DESCENDANT:">",DOT:".",HASH:"#",NON_ADJACENT_SIBLING:"~",PSEUDO:":"},u=/[a-zA-Z]/,s=":not(",l=/[\s,\(>~\+]/;t.exports=r},{"../../tokenizer/marker":84}],55:[function(e,t,n){function r(e,t){return e[1]>t[1]?1:-1}function o(e){for(var t=[],n=[],o=0,i=e.length;o=0;t--){var n=e[t];n.unused&&n.all.splice(n.position,1)}}t.exports=r},{}],57:[function(e,t,n){function r(e,t){var n,r,a,u;for(u=e.length-1;u>=0;u--)(n=e[u]).unused||(n.dirty||n.important||n.hack)&&(t?(r=t(n),n.value=r):r=n.value,n.important&&o(n),n.hack&&i(n),"all"in n&&((a=n.all[n.position])[1][1]=n.name,a.splice(2,a.length-1),Array.prototype.push.apply(a,r)))}function o(e){e.value[e.value.length-1][1]+=c}function i(e){e.hack[0]==a.UNDERSCORE?e.name=f+e.name:e.hack[0]==a.ASTERISK?e.name=s+e.name:e.hack[0]==a.BACKSLASH?e.value[e.value.length-1][1]+=l+e.hack[1]:e.hack[0]==a.BANG&&(e.value[e.value.length-1][1]+=u.SPACE+p)}var a=e("./hack"),u=e("../tokenizer/marker"),s="*",l="\\",c="!important",f="_",p="!ie";t.exports=r},{"../tokenizer/marker":84,"./hack":9}],58:[function(e,t,n){function r(){var e=p("animation-timing-function");return function(t){return e(t)||x.test(t)}}function o(e){return"auto"!=e&&(p("color")(e)||s(e)||i(e)||h(e))}function i(e){return m(e)||l(e)}function a(e){return C.test(e)}function u(e){return k.test(e)}function s(e){return F.test(e)||S.test(e)}function l(e){return O.test(e)}function c(e){return B.test(e)}function f(e){return"none"==e||"inherit"==e||w(e)}function p(e){return function(t){return U[e].indexOf(t)>-1}}function h(e){return D.test(e)}function d(e){return e.length>0&&""+parseFloat(e)===e}function m(e){return R.test(e)}function g(e){return T.test(e)}function v(e){return d(e)&&parseFloat(e)>=0}function b(e){return P.test(e)}function y(e){return L.test(e)}function _(e,t){return e.test(t)}function w(e){return M.test(e)}function A(e){return"auto"==e||d(e)||p("^")(e)}function E(e){var t=N.slice(0).filter(function(t){return!(t in e.units)||!0===e.units[t]}),n=new RegExp("^(\\-?\\.?\\d+\\.?\\d*("+t.join("|")+"|)|auto|inherit)$","i");return{colorOpacity:e.colors.opacity,isAnimationDirectionKeyword:p("animation-direction"),isAnimationFillModeKeyword:p("animation-fill-mode"),isAnimationIterationCountKeyword:p("animation-iteration-count"),isAnimationNameKeyword:p("animation-name"),isAnimationPlayStateKeyword:p("animation-play-state"),isAnimationTimingFunction:r(),isBackgroundAttachmentKeyword:p("background-attachment"),isBackgroundClipKeyword:p("background-clip"),isBackgroundOriginKeyword:p("background-origin"),isBackgroundPositionKeyword:p("background-position"),isBackgroundRepeatKeyword:p("background-repeat"),isBackgroundSizeKeyword:p("background-size"),isColor:o,isColorFunction:i,isDynamicUnit:a,isFontKeyword:p("font"),isFontSizeKeyword:p("font-size"),isFontStretchKeyword:p("font-stretch"),isFontStyleKeyword:p("font-style"),isFontVariantKeyword:p("font-variant"),isFontWeightKeyword:p("font-weight"),isFunction:u,isGlobal:p("^"),isHslColor:l,isIdentifier:c,isImage:f,isKeyword:p,isLineHeightKeyword:p("line-height"),isListStylePositionKeyword:p("list-style-position"),isListStyleTypeKeyword:p("list-style-type"),isPrefixed:g,isPositiveNumber:v,isRgbColor:m,isStyleKeyword:p("*-style"),isTime:y,isUnit:_.bind(null,n),isUrl:w,isVariable:b,isWidth:p("width"),isZIndex:A}}var x=/^(cubic\-bezier|steps)\([^\)]+\)$/,C=new RegExp("^(\\-moz\\-|\\-webkit\\-)?calc\\([^\\)]+\\)$","i"),k=new RegExp("^(var\\(\\-\\-[^\\)]+\\)|[A-Z]+(\\-|[A-Z]|[0-9])+\\(.*?\\)|\\-(\\-|[A-Z]|[0-9])+\\(.*?\\))$","i"),O=/^hsl\(\s*[\-\.\d]+\s*,\s*[\.\d]+%\s*,\s*[\.\d]+%\s*\)|hsla\(\s*[\-\.\d]+\s*,\s*[\.\d]+%\s*,\s*[\.\d]+%\s*,\s*[\.\d]+\s*\)$/,B=/^(\-[a-z0-9_][a-z0-9\-_]*|[a-z][a-z0-9\-_]*)$/i,S=/^#[0-9a-f]{6}$/i,D=/^[a-z]+$/i,T=/^-([a-z0-9]|-)*$/i,R=/^rgb\(\s*[\d]{1,3}\s*,\s*[\d]{1,3}\s*,\s*[\d]{1,3}\s*\)|rgba\(\s*[\d]{1,3}\s*,\s*[\d]{1,3}\s*,\s*[\d]{1,3}\s*,\s*[\.\d]+\s*\)$/,F=/^#[0-9a-f]{3}$/i,L=new RegExp("^(\\-?\\+?\\.?\\d+\\.?\\d*(s|ms))$"),M=/^url\([\s\S]+\)$/i,P=new RegExp("^var\\(\\-\\-[^\\)]+\\)$","i"),U={"^":["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"]},N=["%","ch","cm","em","ex","in","mm","pc","pt","px","rem","vh","vm","vmax","vmin","vw"];t.exports=E},{}],59:[function(e,t,n){function r(e,t,n){var r,i,a,u=[];for(a=e.length-1;a>=0;a--)(i=e[a])[0]==m.PROPERTY&&(!t&&o(i)||n&&n.indexOf(i[1][1])>-1||((r=p(i)).all=e,r.position=a,u.unshift(r)));return u}function o(e){var t,n,r;for(t=2,n=e.length;t0&&!r[1].match(g.IMPORTANT_WORD_PATTERN)&&g.BANG_SUFFIX_PATTERN.test(r[1])?t=[h.BANG]:r[1].indexOf(g.BACKSLASH)>0&&r[1].indexOf(g.BACKSLASH)==r[1].length-g.BACKSLASH.length-1?t=[h.BACKSLASH,r[1].substring(r[1].indexOf(g.BACKSLASH)+1)]:0===r[1].indexOf(g.BACKSLASH)&&2==r[1].length&&(t=[h.BACKSLASH,r[1].substring(1)]):t=[h.BANG],t}function s(e){if(e.length<3)return!1;var t=e[e.length-1];return!!g.IMPORTANT_TOKEN_PATTERN.test(t[1])||!(!g.IMPORTANT_WORD_PATTERN.test(t[1])||!g.SUFFIX_BANG_PATTERN.test(e[e.length-2][1]))}function l(e){var t=e[e.length-1],n=e[e.length-2];g.IMPORTANT_TOKEN_PATTERN.test(t[1])?t[1]=t[1].replace(g.IMPORTANT_TOKEN_PATTERN,""):(t[1]=t[1].replace(g.IMPORTANT_WORD_PATTERN,""),n[1]=n[1].replace(g.SUFFIX_BANG_PATTERN,"")),0===t[1].length&&e.pop(),0===n[1].length&&e.pop()}function c(e){e[1][1]=e[1][1].substring(1)}function f(e,t){var n=e[e.length-1];n[1]=n[1].substring(0,n[1].indexOf(t[0]==h.BACKSLASH?g.BACKSLASH:g.BANG)).trim(),0===n[1].length&&e.pop()}function p(e){var t=s(e);t&&l(e);var n=u(e);return n[0]==h.ASTERISK||n[0]==h.UNDERSCORE?c(e):n[0]!=h.BACKSLASH&&n[0]!=h.BANG||f(e,n),{block:e[2]&&e[2][0]==m.PROPERTY_BLOCK,components:[],dirty:!1,hack:n,important:t,name:e[1][1],multiplex:e.length>3&&a(e),position:0,shorthand:!1,unused:!1,value:e.slice(2)}}var h=e("./hack"),d=e("../tokenizer/marker"),m=e("../tokenizer/token"),g={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\(--.+\)$/};t.exports={all:r,single:p}},{"../tokenizer/marker":84,"../tokenizer/token":85,"./hack":9}],60:[function(e,t,n){function r(e){return o(a["*"],i(e))}function o(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]=o(r,t[n]||{})}return t}function i(e){if("object"==typeof e)return e;if(!/[,\+\-]/.test(e))return a[e]||a["*"];var t=e.split(","),n=t[0]in a?a[t.shift()]:a["*"];return e={},t.forEach(function(t){var n="+"==t[0],r=t.substring(1).split("."),o=r[0],i=r[1];e[o]=e[o]||{},e[o][i]=n}),o(n,e)}var a={"*":{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}}};a.ie11=a["*"],a.ie10=a["*"],a.ie9=o(a["*"],{properties:{ieFilters:!0,ieSuffixHack:!0}}),a.ie8=o(a.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}}),a.ie7=o(a.ie8,{properties:{ieBangHack:!0},selectors:{ie7Hack:!0,mergeablePseudoClasses:[":first-child",":first-letter",":hover",":visited"]}}),t.exports=r},{}],61:[function(e,t,n){function r(e){return e||o}var o=e("../reader/load-remote-resource");t.exports=r},{"../reader/load-remote-resource":75}],62:[function(e,t,n){function r(e){var t={};return t[f.AfterAtRule]=e,t[f.AfterBlockBegins]=e,t[f.AfterBlockEnds]=e,t[f.AfterComment]=e,t[f.AfterProperty]=e,t[f.AfterRuleBegins]=e,t[f.AfterRuleEnds]=e,t[f.BeforeBlockEnds]=e,t[f.BetweenSelectors]=e,t}function o(e){var t={};return t[h.AroundSelectorRelation]=e,t[h.BeforeBlockBegins]=e,t[h.BeforeValue]=e,t}function i(e){return void 0!==e&&!1!==e&&("object"==typeof e&&"indentBy"in e&&(e=c(e,{indentBy:parseInt(e.indentBy)})),"object"==typeof e&&"indentWith"in e&&(e=c(e,{indentWith:l(e.indentWith)})),"object"==typeof e?c(d,e):"object"==typeof e?c(d,e):"string"==typeof e&&e==m?c(d,{breaks:r(!0),indentBy:2,spaces:o(!0)}):"string"==typeof e&&e==g?c(d,{breaks:{afterAtRule:!0,afterBlockBegins:!0,afterBlockEnds:!0,afterComment:!0,afterRuleEnds:!0,beforeBlockEnds:!0}}):"string"==typeof e?c(d,a(e)):d)}function a(e){return e.split(v).reduce(function(e,t){var n=t.split(b),r=n[0],o=n[1];return"breaks"==r||"spaces"==r?e[r]=u(o):"indentBy"==r||"wrapAt"==r?e[r]=parseInt(o):"indentWith"==r&&(e[r]=l(o)),e},{})}function u(e){return e.split(y).reduce(function(e,t){var n=t.split(_),r=n[0],o=n[1];return e[r]=s(o),e},{})}function s(e){switch(e){case w:case A:return!1;case E:case x:return!0;default:return e}}function l(e){switch(e){case"space":return p.Space;case"tab":return p.Tab;default:return e}}var c=e("../utils/override"),f={AfterAtRule:"afterAtRule",AfterBlockBegins:"afterBlockBegins",AfterBlockEnds:"afterBlockEnds",AfterComment:"afterComment",AfterProperty:"afterProperty",AfterRuleBegins:"afterRuleBegins",AfterRuleEnds:"afterRuleEnds",BeforeBlockEnds:"beforeBlockEnds",BetweenSelectors:"betweenSelectors"},p={Space:" ",Tab:"\t"},h={AroundSelectorRelation:"aroundSelectorRelation",BeforeBlockBegins:"beforeBlockBegins",BeforeValue:"beforeValue"},d={breaks:r(!1),indentBy:0,indentWith:p.Space,spaces:o(!1),wrapAt:!1},m="beautify",g="keep-breaks",v=";",b=":",y=",",_="=",w="false",A="off",E="true",x="on";t.exports={Breaks:f,Spaces:h,formatFrom:i}},{"../utils/override":96}],63:[function(e,t,n){(function(n){function r(e){return a(o(n.env.HTTP_PROXY||n.env.http_proxy),e||{})}function o(e){return e?{hostname:i.parse(e).hostname,port:parseInt(i.parse(e).port)}:{}}var i=e("url"),a=e("../utils/override");t.exports=r}).call(this,e("_process"))},{"../utils/override":96,_process:114,url:162}],64:[function(e,t,n){function r(e){return e||o}var o=5e3;t.exports=r},{}],65:[function(e,t,n){function r(e){return Array.isArray(e)?e:!1===e?["none"]:void 0===e?["local"]:e.split(",")}t.exports=r},{}],66:[function(e,t,n){function r(){}function o(e){var t=c(p,{}),n=f.Zero,r=f.One,o=f.Two;return void 0===e?(delete t[o],t):("string"==typeof e&&(e=parseInt(e)),"number"==typeof e&&e===parseInt(o)?t:"number"==typeof e&&e===parseInt(r)?(delete t[o],t):"number"==typeof e&&e===parseInt(n)?(delete t[o],delete t[r],t):("object"==typeof e&&(e=u(e)),r in e&&"roundingPrecision"in e[r]&&(e[r].roundingPrecision=l(e[r].roundingPrecision)),o in e&&"skipProperties"in e[o]&&"string"==typeof e[o].skipProperties&&(e[o].skipProperties=e[o].skipProperties.split(y)),(n in e||r in e||o in e)&&(t[n]=c(t[n],e[n])),r in e&&h in e[r]&&(t[r]=c(t[r],i(r,a(e[r][h]))),delete e[r][h]),r in e&&d in e[r]&&(t[r]=c(t[r],i(r,a(e[r][d]))),delete e[r][d]),r in e||o in e?t[r]=c(t[r],e[r]):delete t[r],o in e&&h in e[o]&&(t[o]=c(t[o],i(o,a(e[o][h]))),delete e[o][h]),o in e&&d in e[o]&&(t[o]=c(t[o],i(o,a(e[o][d]))),delete e[o][d]),o in e?t[o]=c(t[o],e[o]):delete t[o],t))}function i(e,t){var n,r=c(p[e],{});for(n in r)"boolean"==typeof r[n]&&(r[n]=t);return r}function a(e){switch(e){case m:case g:return!1;case v:case b:return!0;default:return e}}function u(e){var t,n,r=c(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]=s(r[t],t));return r}function s(e,t){return e.split(_).reduce(function(e,n){var r=n.split(w),o=r[0],u=a(r[1]);return h==o||d==o?e=c(e,i(t,u)):e[o]=u,e},{})}var l=e("./rounding-precision").roundingPrecisionFrom,c=e("../utils/override"),f={Zero:"0",One:"1",Two:"2"},p={};p[f.Zero]={},p[f.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:l(void 0),selectorsSortingMethod:"standard",specialComments:"all",tidyAtRules:!0,tidyBlockScopes:!0,tidySelectors:!0,transform:r},p[f.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 h="*",d="all",m="false",g="off",v="true",b="on",y=",",_=";",w=":";t.exports={OptimizationLevel:f,optimizationLevelFrom:o}},{"../utils/override":96,"./rounding-precision":69}],67:[function(e,t,n){(function(n){function r(e){return e?o.resolve(e):n.cwd()}var o=e("path");t.exports=r}).call(this,e("_process"))},{_process:114,path:112}],68:[function(e,t,n){function r(e){return void 0===e||!!e}t.exports=r},{}],69:[function(e,t,n){function r(e){return a(o(l),i(e))}function o(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}}function i(e){return null===e||void 0===e?{}:"boolean"==typeof e?{}:"number"==typeof e&&-1==e?o(l):"number"==typeof e?o(e):"string"==typeof e&&u.test(e)?o(parseInt(e)):"string"==typeof e&&e==l?o(l):"object"==typeof e?e:e.split(c).reduce(function(e,t){var n=t.split(f),r=n[0],i=parseInt(n[1]);return(isNaN(i)||-1==i)&&(i=l),s.indexOf(r)>-1?e=a(e,o(i)):e[r]=i,e},{})}var a=e("../utils/override"),u=/^\d+$/,s=["*","all"],l="off",c=",",f="=";t.exports={DEFAULT:l,roundingPrecisionFrom:r}},{"../utils/override":96}],70:[function(e,t,n){(function(n,r){function o(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&&e.length>0?i(r):n(e)}function i(e){var t,n,r,o=[],i=a(e.sourceTokens[0]);for(r=e.sourceTokens.length;e.indexs;)c.column--,o=e[l].originalPositionFor(c);return null===o.line&&i>1&&r>0?a(e,[i-1,s,l],n,r-1):null!==o.line?u(o):t}function u(e){return[e.line,e.column,e.source]}function s(e,t,n){e[t]=new l(n)}var l=e("source-map").SourceMapConsumer;t.exports=r},{"source-map":156}],73:[function(e,t,n){function r(e,t,n){var u,c,f,p,h,d,m=!t;if(0===n.length)return!1;for(t&&!s(e)&&(e=l+e),u=t?a.parse(e).host:e,c=t?e:i.resolve(e),d=0;d399)return f(o.statusCode,null);if(o.statusCode>299)return i=a.resolve(e,o.headers.location),r(i,t,n,f);o.on("data",function(e){u.push(e.toString())}),o.on("end",function(){var e=u.join("");f(null,e)})}}).on("error",function(e){d||(d=!0,f(e.message,null))}).on("timeout",function(){d||(d=!0,f("timeout",null))}).setTimeout(n)}var o=e("http"),i=e("https"),a=e("url"),u=e("../utils/is-http-resource"),s=e("../utils/is-https-resource"),l=e("../utils/override"),c="http:";t.exports=r},{"../utils/is-http-resource":91,"../utils/is-https-resource":92,"../utils/override":96,http:157,https:105,url:162}],76:[function(e,t,n){function r(e){return o.exec(e)}var o=/^data:(\S*?)?(;charset=[^;]+)?(;[^,]+?)?,(.+)/;t.exports=r},{}],77:[function(e,t,n){function r(e){return e.replace(i,o)}var o="/",i=/\\/g;t.exports=r},{}],78:[function(e,t,n){(function(n,r){function o(e,t,n){return i(e,t,function(e){return x(e,t,function(){return O(t,function(){return n(e)})})})}function i(e,t,r){return"string"==typeof e?a(e,t,r):n.isBuffer(e)?a(e.toString(),t,r):Array.isArray(e)?u(e,t,r):"object"==typeof e?s(e,t,r):void 0}function a(e,t,n){return t.source=void 0,t.sourcesContent[void 0]=e,t.stats.originalSize+=e.length,d(e,t,{inline:t.options.inline},n)}function u(e,t,n){return d(e.reduce(function(e,n){return"string"==typeof n?l(n,e):c(n,t,e)},[]).join(""),t,{inline:["all"]},n)}function s(e,t,n){return d(c(e,t,[]).join(""),t,{inline:["all"]},n)}function l(e,t){return t.push(h(f(e))),t}function c(e,t,n){var r,o,i;for(r in e)i=e[r],o=f(r),n.push(h(o)),t.sourcesContent[o]=i.styles,i.sourceMap&&p(i.sourceMap,o,t);return n}function f(e){var t,n,r=E.resolve("");return N(e)?e:(t=E.isAbsolute(e)?e:E.resolve(e),n=E.relative(r,t),B(n))}function p(e,t,n){var r="string"==typeof e?JSON.parse(e):e,o=N(t)?T(r,t):D(r,t||q,n.options.rebaseTo);n.inputSourceMapTracker.track(t,o)}function h(e){return R("url("+e+")","")+M.SEMICOLON}function d(e,t,n,r){var o,i={};return t.source?N(t.source)?(i.fromBase=t.source,i.toBase=t.source):E.isAbsolute(t.source)?(i.fromBase=E.dirname(t.source),i.toBase=t.options.rebaseTo):(i.fromBase=E.dirname(E.resolve(t.source)),i.toBase=t.options.rebaseTo):(i.fromBase=E.resolve(""),i.toBase=t.options.rebaseTo),o=F(e,t),o=S(o,t.options.rebase,t.validator,i),m(n.inline)?g(o,t,n,r):r(o)}function m(e){return!(1==e.length&&"none"==e[0])}function g(e,t,n,r){return v({afterContent:!1,callback:r,errors:t.errors,externalContext:t,fetch:t.options.fetch,inlinedStylesheets:n.inlinedStylesheets||t.inlinedStylesheets,inline:n.inline,inlineRequest:t.options.inlineRequest,inlineTimeout:t.options.inlineTimeout,isRemote:n.isRemote||!1,localOnly:t.localOnly,outputTokens:[],rebaseTo:t.options.rebaseTo,sourceTokens:e,warnings:t.warnings})}function v(e){var t,n,r;for(n=0,r=e.sourceTokens.length;n-1?(o.warnings.push('Ignoring remote @import of "'+e+'" as it has already been imported.'),o.sourceTokens=o.sourceTokens.slice(1),v(o)):o.localOnly&&o.afterContent?(o.warnings.push('Ignoring remote @import of "'+e+'" as no callback given and after other content.'),o.sourceTokens=o.sourceTokens.slice(1),v(o)):l?(o.warnings.push('Skipping remote @import of "'+e+'" as no protocol given.'),o.outputTokens=o.outputTokens.concat(o.sourceTokens.slice(0,1)),o.sourceTokens=o.sourceTokens.slice(1),v(o)):o.localOnly&&!s?(o.warnings.push('Skipping remote @import of "'+e+'" as no callback given.'),o.outputTokens=o.outputTokens.concat(o.sourceTokens.slice(0,1)),o.sourceTokens=o.sourceTokens.slice(1),v(o)):!a&&o.afterContent?(o.warnings.push('Ignoring remote @import of "'+e+'" as resource is not allowed and after other content.'),o.sourceTokens=o.sourceTokens.slice(1),v(o)):a?(o.inlinedStylesheets.push(e),s?i(null,o.externalContext.sourcesContent[e]):o.fetch(e,o.inlineRequest,o.inlineTimeout,i)):(o.warnings.push('Skipping remote @import of "'+e+'" as resource is not allowed.'),o.outputTokens=o.outputTokens.concat(o.sourceTokens.slice(0,1)),o.sourceTokens=o.sourceTokens.slice(1),v(o))}function _(e,t,n,r){var o,i,a=E.resolve(""),u=E.isAbsolute(e)?E.resolve(a,"/"==e[0]?e.substring(1):e):E.resolve(r.rebaseTo,e),s=E.relative(a,u),l=k(e,!1,r.inline),c=B(s),f=c in r.externalContext.sourcesContent;return r.inlinedStylesheets.indexOf(u)>-1?r.warnings.push('Ignoring local @import of "'+e+'" as it has already been imported.'):f||A.existsSync(u)&&A.statSync(u).isFile()?!l&&r.afterContent?r.warnings.push('Ignoring local @import of "'+e+'" as resource is not allowed and after other content.'):r.afterContent?r.warnings.push('Ignoring local @import of "'+e+'" as after other content.'):l?(o=f?r.externalContext.sourcesContent[c]:A.readFileSync(u,"utf-8"),r.inlinedStylesheets.push(u),r.inline=r.externalContext.options.inline,r.externalContext.source=c,r.externalContext.sourcesContent[c]=o,r.externalContext.stats.originalSize+=o.length,i=w(i=d(o,r.externalContext,r,function(e){return e}),t,n),r.outputTokens=r.outputTokens.concat(i)):(r.warnings.push('Skipping local @import of "'+e+'" as resource is not allowed.'),r.outputTokens=r.outputTokens.concat(r.sourceTokens.slice(0,1))):r.errors.push('Ignoring local @import of "'+e+'" as resource is missing.'),r.sourceTokens=r.sourceTokens.slice(1),v(r)}function w(e,t,n){return t?[[L.NESTED_BLOCK,[[L.NESTED_BLOCK_SCOPE,"@media "+t,n]],e]]:e}var A=e("fs"),E=e("path"),x=e("./apply-source-maps"),C=e("./extract-import-url-and-media"),k=e("./is-allowed-resource"),O=e("./load-original-sources"),B=e("./normalize-path"),S=e("./rebase"),D=e("./rebase-local-map"),T=e("./rebase-remote-map"),R=e("./restore-import"),F=e("../tokenizer/tokenize"),L=e("../tokenizer/token"),M=e("../tokenizer/marker"),P=e("../utils/has-protocol"),U=e("../utils/is-import"),N=e("../utils/is-remote-resource"),q="uri:unknown";t.exports=o}).call(this,{isBuffer:e("../../../is-buffer/index.js")},e("_process"))},{"../../../is-buffer/index.js":108,"../tokenizer/marker":84,"../tokenizer/token":85,"../tokenizer/tokenize":86,"../utils/has-protocol":89,"../utils/is-import":93,"../utils/is-remote-resource":94,"./apply-source-maps":70,"./extract-import-url-and-media":71,"./is-allowed-resource":73,"./load-original-sources":74,"./normalize-path":77,"./rebase":81,"./rebase-local-map":79,"./rebase-remote-map":80,"./restore-import":82,_process:114,fs:3,path:112}],79:[function(e,t,n){function r(e,t,n){var r=o.resolve(""),i=o.resolve(r,t),a=o.dirname(i);return e.sources=e.sources.map(function(e){return o.relative(n,o.resolve(a,e))}),e}var o=e("path");t.exports=r},{path:112}],80:[function(e,t,n){function r(e,t){var n=o.dirname(t);return e.sources=e.sources.map(function(e){return i.resolve(n,e)}),e}var o=e("path"),i=e("url");t.exports=r},{path:112,url:162}],81:[function(e,t,n){function r(e,t,n,r){return t?o(e,n,r):i(e,n,r)}function o(e,t,n){var r,i,l;for(i=0,l=e.length;i-1?b:e.indexOf(b)>-1?y:h(e)||d(e)?y:""}function h(e){return O.test(e)}function d(e){return x.test(e)}function m(e,t,n){var o=e.replace(C,"").replace(k,"").trim(),i=o.replace(A,"").replace(E,"").trim(),a=o[0]==y||o[0]==b?o[0]:p(i);return n?r(i,t):_+a+r(i,t)+a+w}var g=e("path"),v=e("url"),b='"',y="'",_="url(",w=")",A=/^["']/,E=/["']$/,x=/[\(\)]/,C=/^url\(/i,k=/\)$/,O=/\s/,B="win32"==n.platform;t.exports=m}).call(this,e("_process"))},{_process:114,path:112,url:162}],84:[function(e,t,n){var r={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:"_"};t.exports=r},{}],85:[function(e,t,n){var r={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"};t.exports=r},{}],86:[function(e,t,n){function r(e,t){return o(e,t,{level:p.BLOCK,position:{source:t.source||void 0,line:1,column:0,index:0}},!1)}function o(e,t,n,r){for(var h,d,m,g,b,y,_,w,A,E,x,C,k=[],O=k,B=[],S=[],D=n.level,T=[],R=[],F=[],L=0,M=!1,P=!1,U=!1,N=!1,q=n.position;q.index1)S.push(g),R.push(z),F.push(R.slice(0,R.length-2)),R=R.slice(R.length-2),g=[q.line,q.column-1,q.source],T.push(D),D=p.COMMENT;else if(E)T.push(D),D=p.COMMENT,R.push(z);else if(x)b=R.join("").trim()+z,h=[c.COMMENT,b,[i(g,b,t)]],O.push(h),D=T.pop(),g=S.pop()||null,R=F.pop()||[];else if(z!=l.SINGLE_QUOTE||y)if(z==l.SINGLE_QUOTE&&D==p.SINGLE_QUOTE)D=T.pop(),R.push(z);else if(z!=l.DOUBLE_QUOTE||y)if(z==l.DOUBLE_QUOTE&&D==p.DOUBLE_QUOTE)D=T.pop(),R.push(z);else if(!E&&!x&&z!=l.CLOSE_ROUND_BRACKET&&z!=l.OPEN_ROUND_BRACKET&&D!=p.COMMENT&&!y&&L>0)R.push(z);else if(z!=l.OPEN_ROUND_BRACKET||y||D==p.COMMENT||U)if(z!=l.CLOSE_ROUND_BRACKET||y||D==p.COMMENT||U)if(z==l.SEMICOLON&&D==p.BLOCK&&R[0]==l.AT)b=R.join("").trim(),k.push([c.AT_RULE,b,[i(g,b,t)]]),R=[];else if(z==l.COMMA&&D==p.BLOCK&&d)b=R.join("").trim(),d[1].push([u(d[0]),b,[i(g,b,t,d[1].length)]]),R=[];else if(z==l.COMMA&&D==p.BLOCK&&a(R)==c.AT_RULE)R.push(z);else if(z==l.COMMA&&D==p.BLOCK)d=[a(R),[],[]],b=R.join("").trim(),d[1].push([u(d[0]),b,[i(g,b,t,0)]]),R=[];else if(z==l.OPEN_CURLY_BRACKET&&D==p.BLOCK&&d&&d[0]==c.NESTED_BLOCK)b=R.join("").trim(),d[1].push([c.NESTED_BLOCK_SCOPE,b,[i(g,b,t)]]),k.push(d),T.push(D),q.column++,q.index++,R=[],d[2]=o(e,t,n,!0),d=null;else if(z==l.OPEN_CURLY_BRACKET&&D==p.BLOCK&&a(R)==c.NESTED_BLOCK)b=R.join("").trim(),(d=d||[c.NESTED_BLOCK,[],[]])[1].push([c.NESTED_BLOCK_SCOPE,b,[i(g,b,t)]]),k.push(d),T.push(D),q.column++,q.index++,R=[],d[2]=o(e,t,n,!0),d=null;else if(z==l.OPEN_CURLY_BRACKET&&D==p.BLOCK)b=R.join("").trim(),(d=d||[a(R),[],[]])[1].push([u(d[0]),b,[i(g,b,t,d[1].length)]]),O=d[2],k.push(d),T.push(D),D=p.RULE,R=[];else if(z==l.OPEN_CURLY_BRACKET&&D==p.RULE&&U)B.push(d),d=[c.PROPERTY_BLOCK,[]],m.push(d),O=d[1],T.push(D),D=p.RULE,U=!1;else if(z!=l.COLON||D!=p.RULE||U)if(z==l.SEMICOLON&&D==p.RULE&&m&&B.length>0&&R.length>0&&R[0]==l.AT)b=R.join("").trim(),d[1].push([c.AT_RULE,b,[i(g,b,t)]]),R=[];else if(z==l.SEMICOLON&&D==p.RULE&&m&&R.length>0)b=R.join("").trim(),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),m=null,U=!1,R=[];else if(z==l.SEMICOLON&&D==p.RULE&&m&&0===R.length)m=null,U=!1;else if(z==l.SEMICOLON&&D==p.RULE&&R.length>0&&R[0]==l.AT)b=R.join(""),O.push([c.AT_RULE,b,[i(g,b,t)]]),U=!1,R=[];else if(z==l.SEMICOLON&&D==p.RULE&&N)N=!1,R=[];else if(z==l.SEMICOLON&&D==p.RULE&&0===R.length);else if(z==l.CLOSE_CURLY_BRACKET&&D==p.RULE&&m&&U&&R.length>0&&B.length>0)b=R.join(""),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),m=null,O=(d=B.pop())[2],D=T.pop(),U=!1,R=[];else if(z==l.CLOSE_CURLY_BRACKET&&D==p.RULE&&m&&R.length>0&&R[0]==l.AT&&B.length>0)b=R.join(""),d[1].push([c.AT_RULE,b,[i(g,b,t)]]),m=null,O=(d=B.pop())[2],D=T.pop(),U=!1,R=[];else if(z==l.CLOSE_CURLY_BRACKET&&D==p.RULE&&m&&B.length>0)m=null,O=(d=B.pop())[2],D=T.pop(),U=!1;else if(z==l.CLOSE_CURLY_BRACKET&&D==p.RULE&&m&&R.length>0)b=R.join(""),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),m=null,d=B.pop(),O=k,D=T.pop(),U=!1,R=[];else if(z==l.CLOSE_CURLY_BRACKET&&D==p.RULE&&R.length>0&&R[0]==l.AT)m=null,d=null,b=R.join("").trim(),O.push([c.AT_RULE,b,[i(g,b,t)]]),O=k,D=T.pop(),U=!1,R=[];else if(z==l.CLOSE_CURLY_BRACKET&&D==p.RULE&&T[T.length-1]==p.RULE)m=null,O=(d=B.pop())[2],D=T.pop(),U=!1,N=!0,R=[];else if(z==l.CLOSE_CURLY_BRACKET&&D==p.RULE)m=null,d=null,O=k,D=T.pop(),U=!1;else if(z==l.CLOSE_CURLY_BRACKET&&D==p.BLOCK&&!r&&q.index<=e.length-1)t.warnings.push("Unexpected '}' at "+f([q.line,q.column,q.source])+"."),R.push(z);else{if(z==l.CLOSE_CURLY_BRACKET&&D==p.BLOCK)break;z==l.OPEN_ROUND_BRACKET&&D==p.RULE&&U?(R.push(z),L++):z==l.CLOSE_ROUND_BRACKET&&D==p.RULE&&U&&1==L?(R.push(z),b=R.join("").trim(),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),L--,R=[]):z==l.CLOSE_ROUND_BRACKET&&D==p.RULE&&U?(R.push(z),L--):z==l.FORWARD_SLASH&&e[q.index+1]!=l.ASTERISK&&D==p.RULE&&U&&R.length>0?(b=R.join("").trim(),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),m.push([c.PROPERTY_VALUE,z,[[q.line,q.column,q.source]]]),R=[]):z==l.FORWARD_SLASH&&e[q.index+1]!=l.ASTERISK&&D==p.RULE&&U?(m.push([c.PROPERTY_VALUE,z,[[q.line,q.column,q.source]]]),R=[]):z==l.COMMA&&D==p.RULE&&U&&R.length>0?(b=R.join("").trim(),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),m.push([c.PROPERTY_VALUE,z,[[q.line,q.column,q.source]]]),R=[]):z==l.COMMA&&D==p.RULE&&U?(m.push([c.PROPERTY_VALUE,z,[[q.line,q.column,q.source]]]),R=[]):z==l.CLOSE_SQUARE_BRACKET&&m&&m.length>1&&R.length>0&&s(R)?(R.push(z),b=R.join("").trim(),m[m.length-1][1]+=b,R=[]):(_||w&&!A)&&D==p.RULE&&U&&m&&R.length>0?(b=R.join("").trim(),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),R=[]):A&&D==p.RULE&&U&&m&&R.length>1?(b=R.join("").trim(),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),R=[]):A&&D==p.RULE&&U?R=[]:1==R.length&&A?R.pop():(R.length>0||!_&&!w&&!A)&&R.push(z)}else b=R.join("").trim(),m=[c.PROPERTY,[c.PROPERTY_NAME,b,[i(g,b,t)]]],O.push(m),U=!0,R=[];else R.push(z),L--;else R.push(z),L++;else T.push(D),D=p.DOUBLE_QUOTE,R.push(z);else T.push(D),D=p.SINGLE_QUOTE,R.push(z);else R.push(z);C=!C&&z==l.BACK_SLASH,M=E,P=x,q.line=A||w?q.line+1:q.line,q.column=A||w?0:q.column+1}return U&&t.warnings.push("Missing '}' at "+f([q.line,q.column,q.source])+"."),U&&R.length>0&&(b=R.join("").replace(v,""),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),R=[]),R.length>0&&t.warnings.push("Invalid character(s) '"+R.join("")+"' at "+f(g)+". Ignoring."),k}function i(e,t,n,r){var o=e[2];return n.inputSourceMapTracker.isTracking(o)?n.inputSourceMapTracker.originalPositionFor(e,t.length,r):e}function a(e){var t=e[0]==l.AT||e[0]==l.UNDERSCORE,n=e.join("").split(g)[0];return t&&d.indexOf(n)>-1?c.NESTED_BLOCK:t&&h.indexOf(n)>-1?c.AT_RULE:t?c.AT_RULE_BLOCK:c.RULE}function u(e){return e==c.RULE?c.RULE_SCOPE:e==c.NESTED_BLOCK?c.NESTED_BLOCK_SCOPE:e==c.AT_RULE_BLOCK?c.AT_RULE_BLOCK_SCOPE:void 0}function s(e){return m.test(e.join("")+l.CLOSE_SQUARE_BRACKET)}var l=e("./marker"),c=e("./token"),f=e("../utils/format-position"),p={BLOCK:"block",COMMENT:"comment",DOUBLE_QUOTE:"double-quote",RULE:"rule",SINGLE_QUOTE:"single-quote"},h=["@charset","@import"],d=["@-moz-document","@document","@-moz-keyframes","@-ms-keyframes","@-o-keyframes","@-webkit-keyframes","@keyframes","@media","@supports"],m=/^\[\s*\d+\s*\]$/,g=/[\s\(]/,v=/[\s|\}]*$/;t.exports=r},{"../utils/format-position":88,"./marker":84,"./token":85}],87:[function(e,t,n){function r(e){for(var t=e.slice(0),n=0,o=t.length;nr?1:-1;return s.length>l.length?1:s.length==l.length?0:-1}function o(e){return""+parseInt(e)==e?parseInt(e):e}var i=/([0-9]+)/;t.exports=r},{}],96:[function(e,t,n){function r(e,t){var n,o,i,a={};for(n in e)i=e[n],Array.isArray(i)?a[n]=i.slice(0):a[n]="object"==typeof i&&null!==i?r(i,{}):i;for(o in t)i=t[o],o in a&&Array.isArray(i)?a[o]=i.slice(0):a[o]=o in a&&"object"==typeof i&&null!==i?r(a[o],i):i;return a}t.exports=r},{}],97:[function(e,t,n){function r(e,t){var n,r=o.OPEN_ROUND_BRACKET,i=o.CLOSE_ROUND_BRACKET,a=0,u=0,s=0,l=e.length,c=[];if(-1==e.indexOf(t))return[e];if(-1==e.indexOf(r))return e.split(t);for(;u0&&u+1=0&&e[t][0]==S.COMMENT;t--);return t}function d(e,t,n,r){var o=e.store,i=t[n],a=i[2][0]==S.PROPERTY_BLOCK,u=ne.format.wrapAt&&(i(e,s),e.output.push(s))}function i(e,t){var n=t.split("\n");e.line+=n.length-1,e.column=n.length>1?0:e.column+n.pop().length}function a(e,t){var n={column:0,format:t.options.format,indentBy:0,indentWith:"",line:1,output:[],spaceAfterClosingBrace:t.options.compatibility.properties.spaceAfterClosingBrace,store:r,wrap:t.options.format.wrapAt?o:function(){}};return u(n,e),{styles:n.output.join("")}}var u=e("./helpers").all,s=e("os").EOL;t.exports=a},{"./helpers":98,os:111}],101:[function(e,t,n){(function(n){function r(e,t){var n="string"==typeof t,r=n?t:t[1],o=n?null:t[2];(0,e.wrap)(e,r),i(e,r,o),e.output.push(r)}function o(e,t){e.column+t.length>e.format.wrapAt&&(i(e,f,!1),e.output.push(f))}function i(e,t,n){var r=t.split("\n");n&&a(e,n),e.line+=r.length-1,e.column=r.length>1?0:e.column+r.pop().length}function a(e,t){for(var n=0,r=t.length;n0&&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.on=r.prototype.addListener,r.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!o(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},r.prototype.removeListener=function(e,t){var n,r,i,u;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(u=i;u-- >0;)if(n[u]===t||n[u].listener&&n[u].listener===t){r=u;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(n=this._events[e],o(n))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]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(o(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},{}],104:[function(e,t,n){(function(e){!function(r){var o="object"==typeof n&&n,i="object"==typeof t&&t&&t.exports==o&&t,a="object"==typeof e&&e;a.global!==a&&a.window!==a||(r=a);var u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[\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,h={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},d=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,m=/[\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]/,g=/&#([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,v={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:"‌"},b={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:"ÿ"},y={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:"Ÿ"},_=[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],w=String.fromCharCode,A={}.hasOwnProperty,E=function(e,t){return A.call(e,t)},x=function(e,t){for(var n=-1,r=e.length;++n=55296&&e<=57343||e>1114111?(t&&S("character reference outside the permissible Unicode range"),"�"):E(y,e)?(t&&S("disallowed character reference"),y[e]):(t&&x(_,e)&&S("disallowed character reference"),e>65535&&(n+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),n+=w(e))},O=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},B=function(e){return"&#"+e+";"},S=function(e){throw Error("Parse error: "+e)},D=function(e,t){(t=C(t,D.options)).strict&&m.test(e)&&S("forbidden code point");var n=t.encodeEverything,r=t.useNamedReferences,o=t.allowUnsafeSymbols,i=t.decimal?B:O,a=function(e){return i(e.charCodeAt(0))};return n?(e=e.replace(s,function(e){return r&&E(f,e)?"&"+f[e]+";":a(e)}),r&&(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),r&&(e=e.replace(c,function(e){return"&"+f[e]+";"}))):r?(o||(e=e.replace(p,function(e){return"&"+f[e]+";"})),e=(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(c,function(e){return"&"+f[e]+";"})):o||(e=e.replace(p,a)),e.replace(u,function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return i(1024*(t-55296)+n-56320+65536)}).replace(l,a)};D.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var T=function(e,t){var n=(t=C(t,T.options)).strict;return n&&d.test(e)&&S("malformed character reference"),e.replace(g,function(e,r,o,i,a,u,s,l){var c,f,p,h,d,m;return r?(p=r,f=o,n&&!f&&S("character reference was not terminated by a semicolon"),c=parseInt(p,10),k(c,n)):i?(h=i,f=a,n&&!f&&S("character reference was not terminated by a semicolon"),c=parseInt(h,16),k(c,n)):u?(d=u,E(v,d)?v[d]:(n&&S("named character reference was not terminated by a semicolon"),e)):(d=s,m=l,m&&t.isAttributeValue?(n&&"="==m&&S("`&` did not start a character reference"),e):(n&&S("named character reference was not terminated by a semicolon"),b[d]+(m||"")))})};T.options={isAttributeValue:!1,strict:!1};var R={version:"1.1.1",encode:D,decode:T,escape:function(e){return e.replace(p,function(e){return h[e]})},unescape:T};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return R});else if(o&&!o.nodeType)if(i)i.exports=R;else for(var F in R)E(R,F)&&(o[F]=R[F]);else r.he=R}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],105:[function(e,t,n){var r=e("http"),o=t.exports;for(var i in r)r.hasOwnProperty(i)&&(o[i]=r[i]);o.request=function(e,t){return e||(e={}),e.scheme="https",e.protocol="https:",r.request.call(this,e,t)}},{http:157}],106:[function(e,t,n){n.read=function(e,t,n,r,o){var i,a,u=8*o-r-1,s=(1<>1,c=-7,f=n?o-1:0,p=n?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-c)-1,h>>=-c,c+=u;c>0;i=256*i+e[t+f],f+=p,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=p,c-=8);if(0===i)i=1-l;else{if(i===s)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=l}return(h?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,u,s,l=8*i-o-1,c=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-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?(u=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+f>=1?p/s:p*Math.pow(2,1-f))*s>=2&&(a++,s/=2),a+f>=c?(u=0,a=c):a+f>=1?(u=(t*s-1)*Math.pow(2,o),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&u,h+=d,u/=256,o-=8);for(a=a<0;e[n+h]=255&a,h+=d,a/=256,l-=8);e[n+h-d]|=128*m}},{}],107:[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}},{}],108:[function(e,t,n){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function o(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}t.exports=function(e){return null!=e&&(r(e)||o(e)||!!e._isBuffer)}},{}],109:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],110:[function(e,t,n){"use strict";function r(e){return e.source.slice(1,-1)}var o=e("xml-char-classes");t.exports=new RegExp("^["+r(o.letter)+"_]["+r(o.letter)+r(o.digit)+"\\.\\-_"+r(o.combiningChar)+r(o.extender)+"]*$")},{"xml-char-classes":165}],111:[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"},{}],112:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,o="/"===a.charAt(0))}return n=t(r(n.split("/"),function(e){return!!e}),!o).join("/"),(o?"/":"")+n||"."},n.normalize=function(e){var o=n.isAbsolute(e),i="/"===a(e,-1);return(e=t(r(e.split("/"),function(e){return!!e}),!o).join("/"))||o||(e="."),e&&i&&(e+="/"),(o?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=r(e.split("/")),i=r(t.split("/")),a=Math.min(o.length,i.length),u=a,s=0;s1)for(var n=1;n1&&(r=n[0]+"@",e=n[1]),r+i((e=e.replace(R,".")).split("."),t).join(".")}function u(e){for(var t,n,r=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(t+=P((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=P(e)}).join("")}function l(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:A}function c(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function f(e,t,n){var r=0;for(e=n?M(e/k):e>>1,e+=M(e/t);e>L*x>>1;r+=A)e=M(e/L);return M(r+(L+1)*e/(e+C))}function p(e){var t,n,r,i,a,u,c,p,h,d,m=[],g=e.length,v=0,b=B,y=O;for((n=e.lastIndexOf(S))<0&&(n=0),r=0;r=128&&o("not-basic"),m.push(e.charCodeAt(r));for(i=n>0?n+1:0;i=g&&o("invalid-input"),((p=l(e.charCodeAt(i++)))>=A||p>M((w-v)/u))&&o("overflow"),v+=p*u,h=c<=y?E:c>=y+x?x:c-y,!(pM(w/(d=A-h))&&o("overflow"),u*=d;y=f(v-a,t=m.length+1,0==a),M(v/t)>w-b&&o("overflow"),b+=M(v/t),v%=t,m.splice(v++,0,b)}return s(m)}function h(e){var t,n,r,i,a,s,l,p,h,d,m,g,v,b,y,_=[];for(g=(e=u(e)).length,t=B,n=0,a=O,s=0;s=t&&mM((w-n)/(v=r+1))&&o("overflow"),n+=(l-t)*v,t=l,s=0;sw&&o("overflow"),m==t){for(p=n,h=A;d=h<=a?E:h>=a+x?x:h-a,!(p= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=A-E,M=Math.floor,P=String.fromCharCode;if(y={version:"1.4.1",ucs2:{decode:u,encode:s},decode:p,encode:h,toASCII:m,toUnicode:d},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return y});else if(g&&v)if(t.exports==g)v.exports=y;else for(_ in y)y.hasOwnProperty(_)&&(g[_]=y[_]);else r.punycode=y}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],116:[function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var u=/\+/g;e=e.split(t);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c=0?(f=m.substr(0,g),p=m.substr(g+1)):(f=m,p=""),h=decodeURIComponent(f),d=decodeURIComponent(p),r(a,h)?o(a[h])?a[h].push(d):a[h]=[a[h],d]:a[h]=d}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],117:[function(e,t,n){"use strict";function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r0)if(t.ended&&!o){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&o){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var l;!t.decoder||o||r||(n=t.decoder.write(n),l=!t.objectMode&&0===n.length),o||(t.reading=!1),l||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,o?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&p(e))),d(e,t)}else o||(t.reading=!1);return u(t)}function u(e){return!e.ended&&(e.needReadable||e.length=I?e=I:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function l(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=s(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function c(e,t){var n=null;return F.isBuffer(t)||"string"==typeof t||null===t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function f(e,t){if(!t.ended){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,p(e)}}function p(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(U("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?S(h,e):h(e))}function h(e){U("emit readable"),e.emit("readable"),_(e)}function d(e,t){t.readingMore||(t.readingMore=!0,S(m,e,t))}function m(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=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=A(e,t.buffer,t.decoder),n}function A(e,t,n){var r;return ei.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}function x(e,t){var n=L.allocUnsafe(e),r=t.head,o=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0===(e-=a)){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}function C(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,S(k,t,e))}function k(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function O(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return U("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?C(this):p(this),null;if(0===(e=l(e,t))&&t.ended)return 0===t.length&&C(this),null;var r=t.needReadable;U("need readable",r),(0===t.length||t.length-e0?w(e,t):null,null===o?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&C(this)),null!==o&&this.emit("data",o),o},i.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},i.prototype.pipe=function(e,t){function o(e){U("onunpipe"),e===p&&a()}function i(){U("onend"),e.end()}function a(){U("cleanup"),e.removeListener("close",l),e.removeListener("finish",c),e.removeListener("drain",m),e.removeListener("error",s),e.removeListener("unpipe",o),p.removeListener("end",i),p.removeListener("end",a),p.removeListener("data",u),v=!0,!h.awaitDrain||e._writableState&&!e._writableState.needDrain||m()}function u(t){U("ondata"),b=!1,!1!==e.write(t)||b||((1===h.pipesCount&&h.pipes===e||h.pipesCount>1&&-1!==O(h.pipes,e))&&!v&&(U("false write response, pause",p._readableState.awaitDrain),p._readableState.awaitDrain++,b=!0),p.pause())}function s(t){U("onerror",t),f(),e.removeListener("error",s),0===T(e,"error")&&e.emit("error",t)}function l(){e.removeListener("finish",c),f()}function c(){U("onfinish"),e.removeListener("close",l),f()}function f(){U("unpipe"),p.unpipe(e)}var p=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=e;break;case 1:h.pipes=[h.pipes,e];break;default:h.pipes.push(e)}h.pipesCount+=1,U("pipe count=%d opts=%j",h.pipesCount,t);var d=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?i:a;h.endEmitted?S(d):p.once("end",d),e.on("unpipe",o);var m=g(p);e.on("drain",m);var v=!1,b=!1;return p.on("data",u),r(e,"error",s),e.once("close",l),e.once("finish",c),e.emit("pipe",p),h.flowing||(U("pipe resume"),p.resume()),e},i.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o-1?setImmediate:x;a.WritableState=i;var k=e("core-util-is");k.inherits=e("inherits");var O={deprecate:e("util-deprecate")},B=e("./internal/streams/stream"),S=e("buffer").Buffer,D=e("buffer-shims");k.inherits(a,B),i.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(i.prototype,"buffer",{get:O.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(e){}}();var T;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(T=Function.prototype[Symbol.hasInstance],Object.defineProperty(a,Symbol.hasInstance,{value:function(e){return!!T.call(this,e)||e&&e._writableState instanceof i}})):T=function(e){return e instanceof this},a.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},a.prototype.write=function(e,t,n){var o=this._writableState,i=!1,a=S.isBuffer(e);return"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=r),o.ended?u(this,n):(a||s(this,o,e,n))&&(o.pendingcb++,i=c(this,o,a,e,t,n)),i},a.prototype.cork=function(){this._writableState.corked++},a.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||v(this,e))},a.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},a.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},a.prototype._writev=null,a.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||w(this,r,n)}}).call(this,e("_process"))},{"./_stream_duplex":119,"./internal/streams/stream":125,_process:114,buffer:5,"buffer-shims":4,"core-util-is":102,inherits:107,"process-nextick-args":113,"util-deprecate":164}],124:[function(e,t,n){"use strict";function r(){this.head=null,this.tail=null,this.length=0}e("buffer").Buffer;var o=e("buffer-shims");t.exports=r,r.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},r.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},r.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}},r.prototype.clear=function(){this.head=this.tail=null,this.length=0},r.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},r.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var t=o.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t}},{buffer:5,"buffer-shims":4}],125:[function(e,t,n){t.exports=e("events").EventEmitter},{events:103}],126:[function(e,t,n){"use strict";function r(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}}function o(e){var t=r(e);if("string"!=typeof t&&(b.isEncoding===y||!y(e)))throw new Error("Unknown encoding: "+e);return t||e}function i(e){this.encoding=o(e);var t;switch(this.encoding){case"utf16le":this.text=p,this.end=h,t=4;break;case"utf8":this.fillLast=l,t=4;break;case"base64":this.text=d,this.end=m,t=3;break;default:return this.write=g,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=b.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function u(e,t,n){var r=t.length-1;if(r=0?(o>0&&(e.lastNeed=o-1),o):--r=0?(o>0&&(e.lastNeed=o-2),o):--r=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0)}function s(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�".repeat(n);if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�".repeat(n+1);if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�".repeat(n+2)}}function l(e){var t=this.lastTotal-this.lastNeed,n=s(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 c(e,t){var n=u(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)}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�".repeat(this.lastTotal-this.lastNeed):t}function p(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&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 h(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 d(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 m(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}var b=e("safe-buffer").Buffer,y=b.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}};n.StringDecoder=i,i.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-1){if(++o-1&&(n=n.toString(),null===e.port&&(e.port=n),e.extra.portIsDefault=e.port===n)}t.exports=r},{}],137:[function(e,t,n){"use strict";function r(e,t){e.query.string.full=o(e.query.object,!1),t.removeEmptyQueries&&(e.query.string.stripped=o(e.query.object,!0))}function o(e,t){var n=0,r="";for(var o in e)if(""!==o&&!0===i.call(e,o)){var a=e[o];""===a&&t||(r+=1==++n?"?":"&",o=encodeURIComponent(o),r+=""!==a?o+"="+encodeURIComponent(a).replace(/%20/g,"+"):o)}return r}var i=Object.prototype.hasOwnProperty;t.exports=r},{}],138:[function(e,t,n){"use strict";function r(e){var t=e.protocol;return t&&t.indexOf(":")===t.length-1&&(t=t.substr(0,t.length-1)),e.host={full:e.hostname,stripped:null},e.path={absolute:{array:null,string:e.pathname},relative:{array:null,string:null}},e.query={object:e.query,string:{full:null,stripped:null}},e.extra={hrefInfo:{minimumPathOnly:null,minimumResourceOnly:null,minimumQueryOnly:null,minimumHashOnly:null,empty:null,separatorOnlyQuery:"?"===e.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:e.slashes},e.resource=null,e.scheme=t,delete e.hostname,delete e.pathname,delete e.protocol,delete e.search,delete e.slashes,e}function o(e,t){var n=!0;return t.rejectedSchemes.every(function(t){return n=!(0===e.indexOf(t+":"))}),n}function i(e,t){return o(e,t)?r(a(e,!0,t.slashesDenoteHost)):{href:e,valid:!1}}var a=e("url").parse;t.exports=i},{url:162}],139:[function(e,t,n){"use strict";function r(e,t,n){u.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=s.clone(t.host)),e.extra.relation.minimumPort&&i(e,t),e.extra.relation.minimumScheme&&o(e,t),u.pathOn(e,t,n),e.extra.relation.minimumResource&&a(e,t),e.extra.relation.minimumQuery&&(e.query=s.clone(t.query)),e.extra.relation.minimumHash&&(e.hash=t.hash)}function o(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=s.clone(t.path)}function i(e,t){e.port=t.port,e.extra.portIsDefault=t.extra.portIsDefault}function a(e,t){e.resource=t.resource,e.extra.resourceIsIndex=t.extra.resourceIsIndex}var u=e("./findRelation"),s=e("../util/object"),l=e("../util/path");t.exports=r},{"../util/object":143,"../util/path":144,"./findRelation":140}],140:[function(e,t,n){"use strict";function r(e,t,n){var r=e.extra.hrefInfo.minimumPathOnly,o=e.scheme===t.scheme||!e.scheme,i=o&&(e.auth===t.auth||n.removeAuth||r),a=n.ignore_www?"stripped":"full",u=i&&(e.host[a]===t.host[a]||r),s=u&&(e.port===t.port||r);e.extra.relation.minimumScheme=o,e.extra.relation.minimumAuth=i,e.extra.relation.minimumHost=u,e.extra.relation.minimumPort=s,e.extra.relation.maximumScheme=!o||o&&!i,e.extra.relation.maximumAuth=!o||o&&!u,e.extra.relation.maximumHost=!o||o&&!s}function o(e,t,n){var r=e.extra.hrefInfo.minimumQueryOnly,o=e.extra.hrefInfo.minimumHashOnly,i=e.extra.hrefInfo.empty,a=e.extra.relation.minimumPort,u=e.extra.relation.minimumScheme,s=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=s&&(l||r||o||i),f=n.removeEmptyQueries?"stripped":"full",p=e.query.string[f],h=t.query.string[f],d=c&&!!p&&p===h||(o||i)&&!e.extra.hrefInfo.separatorOnlyQuery,m=d&&e.hash===t.hash;e.extra.relation.minimumPath=s,e.extra.relation.minimumResource=c,e.extra.relation.minimumQuery=d,e.extra.relation.minimumHash=m,e.extra.relation.maximumPort=!u||u&&!s,e.extra.relation.maximumPath=!u||u&&!c,e.extra.relation.maximumResource=!u||u&&!d,e.extra.relation.maximumQuery=!u||u&&!m,e.extra.relation.maximumHash=!u||u&&!m,e.extra.relation.overridesQuery=s&&e.extra.relation.maximumResource&&!d&&!!h}t.exports={pathOn:o,upToPath:r}},{}],141:[function(e,t,n){"use strict";function r(e,t,n){return o(t,e,n),i(t,e,n),t}var o=e("./absolutize"),i=e("./relativize");t.exports=r},{"./absolutize":139,"./relativize":142}],142:[function(e,t,n){"use strict";function r(e,t){var n=[],r=!0,o=-1;return t.forEach(function(t,i){r&&(e[i]!==t?r=!1:o=i),r||n.push("..")}),e.forEach(function(e,t){t>o&&n.push(e)}),n}function o(e,t,n){if(e.extra.relation.minimumScheme){var o=r(e.path.absolute.array,t.path.absolute.array);e.path.relative.array=o,e.path.relative.string=i.join(o)}}var i=e("../util/path");t.exports=o},{"../util/path":144}],143:[function(e,t,n){"use strict";function r(e){if(e instanceof Object){var t=e instanceof Array?[]:{};for(var n in e)e.hasOwnProperty(n)&&(t[n]=r(e[n]));return t}return e}function o(e){return!!e&&"object"==typeof e&&e.constructor===Object}function i(e,t){if(e instanceof Object&&t instanceof Object)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}t.exports={clone:r,isPlainObject:o,shallowMerge:i}},{}],144:[function(e,t,n){"use strict";function r(e){return e.length>0?e.join("/")+"/":""}function o(e){var t=[];return e.forEach(function(e){".."!==e?"."!==e&&t.push(e):t.length>0&&t.splice(t.length-1,1)}),t}t.exports={join:r,resolveDotSegments:o}},{}],145:[function(e,t,n){t.exports=e("buffer")},{buffer:5}],146:[function(e,t,n){function r(){this._array=[],this._set=Object.create(null)}var o=e("./util"),i=Object.prototype.hasOwnProperty;r.fromArray=function(e,t){for(var n=new r,o=0,i=e.length;o=0&&e>1;return 1==(1&e)?-t:t}var i=e("./base64");n.encode=function(e){var t,n="",o=r(e);do{t=31&o,(o>>>=5)>0&&(t|=32),n+=i.encode(t)}while(o>0);return n},n.decode=function(e,t,n){var r,a,u=e.length,s=0,l=0;do{if(t>=u)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=i.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&a),s+=(a&=31)<0?t-s>1?r(s,t,o,i,a,u):u==n.LEAST_UPPER_BOUND?t1?r(e,s,o,i,a,u):u==n.LEAST_UPPER_BOUND?s:e<0?-1:e}n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2,n.search=function(e,t,o,i){if(0===t.length)return-1;var a=r(-1,t.length,e,t,o,i||n.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===o(t[a],t[a-1],!0);)--a;return a}},{}],150:[function(e,t,n){function r(e,t){var n=e.generatedLine,r=t.generatedLine,o=e.generatedColumn,a=t.generatedColumn;return r>n||r==n&&a>=o||i.compareByGeneratedPositionsInflated(e,t)<=0}function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var i=e("./util");o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){r(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(i.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},n.MappingList=o},{"./util":155}],151:[function(e,t,n){function r(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function o(e,t){return Math.round(e+Math.random()*(t-e))}function i(e,t,n,a){if(n=0){var i=this._originalMappings[o];if(void 0===e.column)for(var a=i.originalLine;i&&i.originalLine===a;)r.push({line:u.getArg(i,"generatedLine",null),column:u.getArg(i,"generatedColumn",null),lastColumn:u.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o];else for(var l=i.originalColumn;i&&i.originalLine===t&&i.originalColumn==l;)r.push({line:u.getArg(i,"generatedLine",null),column:u.getArg(i,"generatedColumn",null),lastColumn:u.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o]}return r},n.SourceMapConsumer=r,o.prototype=Object.create(r.prototype),o.prototype.consumer=r,o.fromSourceMap=function(e){var t=Object.create(o.prototype),n=t._names=l.fromArray(e._names.toArray(),!0),r=t._sources=l.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var a=e._mappings.toArray().slice(),s=t.__generatedMappings=[],c=t.__originalMappings=[],p=0,h=a.length;p1&&(n.source=m+o[1],m+=o[1],n.originalLine=h+o[2],h=n.originalLine,n.originalLine+=1,n.originalColumn=d+o[3],d=n.originalColumn,o.length>4&&(n.name=g+o[4],g+=o[4])),A.push(n),"number"==typeof n.originalLine&&w.push(n)}f(A,u.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,f(w,u.compareByOriginalPositions),this.__originalMappings=w},o.prototype._findMapping=function(e,t,n,r,o,i){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 s.search(e,t,o,i)},o.prototype.computeColumnSpans=function(){for(var e=0;e=0){var o=this._generatedMappings[n];if(o.generatedLine===t.generatedLine){var i=u.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=u.join(this.sourceRoot,i)));var a=u.getArg(o,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:u.getArg(o,"originalLine",null),column:u.getArg(o,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},o.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},o.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=u.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=u.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.')},o.prototype.generatedPositionFor=function(e){var t=u.getArg(e,"source");if(null!=this.sourceRoot&&(t=u.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:u.getArg(e,"line"),originalColumn:u.getArg(e,"column")},o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",u.compareByOriginalPositions,u.getArg(e,"bias",r.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===n.source)return{line:u.getArg(i,"generatedLine",null),column:u.getArg(i,"generatedColumn",null),lastColumn:u.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},n.BasicSourceMapConsumer=o,a.prototype=Object.create(r.prototype),a.prototype.constructor=r,a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},r.prototype._serializeMappings=function(){for(var e,t,n,r,a=0,u=1,s=0,l=0,c=0,f=0,p="",h=this._mappings.toArray(),d=0,m=h.length;d0){if(!i.compareByGeneratedPositionsInflated(t,h[d-1]))continue;e+=","}e+=o.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=o.encode(r-f),f=r,e+=o.encode(t.originalLine-1-l),l=t.originalLine-1,e+=o.encode(t.originalColumn-s),s=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=o.encode(n-c),c=n)),p+=e}return p},r.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},r.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},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},n.SourceMapGenerator=r},{"./array-set":146,"./base64-vlq":147,"./mapping-list":150,"./util":155}],154:[function(e,t,n){function r(e,t,n,r,o){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==o?null:o,this[u]=!0,null!=r&&this.add(r)}var o=e("./source-map-generator").SourceMapGenerator,i=e("./util"),a=/(\r?\n)/,u="$$$isSourceNode$$$";r.fromStringWithSourceMap=function(e,t,n){function o(e,t){if(null===e||void 0===e.source)u.add(t);else{var o=n?i.join(n,e.source):e.source;u.add(new r(e.originalLine,e.originalColumn,o,t,e.name))}}var u=new r,s=e.split(a),l=function(){return s.shift()+(s.shift()||"")},c=1,f=0,p=null;return t.eachMapping(function(e){if(null!==p){if(!(c0&&(p&&o(p,l()),u.add(s.join(""))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);null!=r&&(null!=n&&(e=i.join(n,e)),u.setSourceContent(e,r))}),u},r.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[u]&&"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},r.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[u]&&"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},r.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n0){for(t=[],n=0;n=0;c--)"."===(a=s[c])?s.splice(c,1):".."===a?l++:l>0&&(""===a?(s.splice(c+1,l),l=0):(s.splice(c,2),l--));return""===(t=s.join("/"))&&(t=u?"/":"."),r?(r.path=t,i(r)):t}function u(e,t){""===e&&(e="."),""===t&&(t=".");var n=o(t),r=o(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),i(n);if(n||t.match(b))return t;if(r&&!r.host&&!r.path)return r.host=t,i(r);var u="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=u,i(r)):u}function s(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)}function l(e){return e}function c(e){return p(e)?"$"+e:e}function f(e){return p(e)?e.slice(1):e}function p(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;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function h(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:(r=e.generatedLine-t.generatedLine,0!==r?r:e.name-t.name)}function d(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:(r=e.originalColumn-t.originalColumn,0!==r?r:e.name-t.name)}function m(e,t){return e===t?0:e>t?1:-1}function g(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=m(e.source,t.source))?n:0!==(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,0!==n?n:m(e.name,t.name))}n.getArg=r;var v=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,b=/^data:.+\,.+$/;n.urlParse=o,n.urlGenerate=i,n.normalize=a,n.join=u,n.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(v)},n.relative=s;var y=function(){return!("__proto__"in Object.create(null))}();n.toSetString=y?l:c,n.fromSetString=y?l:f,n.compareByOriginalPositions=h,n.compareByGeneratedPositionsDeflated=d,n.compareByGeneratedPositionsInflated=g},{}],156:[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":152,"./lib/source-map-generator":153,"./lib/source-node":154}],157:[function(e,t,n){(function(t){var r=e("./lib/request"),o=e("xtend"),i=e("builtin-status-codes"),a=e("url"),u=n;u.request=function(e,n){e="string"==typeof e?a.parse(e):o(e);var i=-1===t.location.protocol.search(/^https?:$/)?"http:":"",u=e.protocol||i,s=e.hostname||e.host,l=e.port,c=e.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),e.url=(s?u+"//"+s:"")+(l?":"+l:"")+c,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new r(e);return n&&f.on("response",n),f},u.get=function(e,t){var n=u.request(e,t);return n.end(),n},u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.STATUS_CODES=i,u.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":159,"builtin-status-codes":6,url:162,xtend:166}],158:[function(e,t,n){(function(e){function t(){if(void 0!==i)return i;if(e.XMLHttpRequest){i=new e.XMLHttpRequest;try{i.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){i=null}}else i=null;return i}function r(e){var n=t();if(!n)return!1;try{return n.responseType=e,n.responseType===e}catch(e){}return!1}function o(e){return"function"==typeof e}n.fetch=o(e.fetch)&&o(e.ReadableStream),n.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),n.blobConstructor=!0}catch(e){}var i,a=void 0!==e.ArrayBuffer,u=a&&o(e.ArrayBuffer.prototype.slice);n.arraybuffer=n.fetch||a&&r("arraybuffer"),n.msstream=!n.fetch&&u&&r("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&a&&r("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||!!t()&&o(t().overrideMimeType),n.vbArray=o(e.VBArray),i=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],159:[function(e,t,n){(function(n,r,o){function i(e,t){return u.fetch&&t?"fetch":u.mozchunkedarraybuffer?"moz-chunked-arraybuffer":u.msstream?"ms-stream":u.arraybuffer&&e?"arraybuffer":u.vbArray&&e?"text:vbarray":"text"}function a(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}var u=e("./capability"),s=e("inherits"),l=e("./response"),c=e("readable-stream"),f=e("to-arraybuffer"),p=l.IncomingMessage,h=l.readyStates,d=t.exports=function(e){var t=this;c.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+new o(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(n){t.setHeader(n,e.headers[n])});var n,r=!0;if("disable-fetch"===e.mode||"timeout"in e)r=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!u.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}t._mode=i(n,r),t.on("finish",function(){t._onFinish()})};s(d,c.Writable),d.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();-1===m.indexOf(r)&&(n._headers[r]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},d.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,i=e._headers,a=null;"GET"!==t.method&&"HEAD"!==t.method&&(a=u.blobConstructor?new r.Blob(e._body.map(function(e){return f(e)}),{type:(i["content-type"]||{}).value||""}):o.concat(e._body).toString());var s=[];if(Object.keys(i).forEach(function(e){var t=i[e].name,n=i[e].value;Array.isArray(n)?n.forEach(function(e){s.push([t,e])}):s.push([t,n])}),"fetch"===e._mode)r.fetch(e._opts.url,{method:e._opts.method,headers:s,body:a||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin"}).then(function(t){e._fetchResponse=t,e._connect()},function(t){e.emit("error",t)});else{var l=e._xhr=new r.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(t){return void n.nextTick(function(){e.emit("error",t)})}"responseType"in l&&(l.responseType=e._mode.split(":")[0]),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"timeout"in t&&(l.timeout=t.timeout,l.ontimeout=function(){e.emit("timeout")}),s.forEach(function(e){l.setRequestHeader(e[0],e[1])}),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case h.LOADING:case h.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{l.send(a)}catch(t){return void n.nextTick(function(){e.emit("error",t)})}}}},d.prototype._onXHRProgress=function(){var e=this;a(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new p(e._xhr,e._fetchResponse,e._mode),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},d.prototype._write=function(e,t,n){this._body.push(e),n()},d.prototype.abort=d.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},d.prototype.end=function(e,t,n){var r=this;"function"==typeof e&&(n=e,e=void 0),c.Writable.prototype.end.call(r,e,t,n)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var m=["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,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":158,"./response":160,_process:114,buffer:5,inherits:107,"readable-stream":127,"to-arraybuffer":161}],160:[function(e,t,n){(function(t,r,o){var i=e("./capability"),a=e("inherits"),u=e("readable-stream"),s=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=n.IncomingMessage=function(e,n,r){function a(){l.read().then(function(e){s._destroyed||(e.done?s.push(null):(s.push(new o(e.value)),a()))}).catch(function(e){s.emit("error",e)})}var s=this;if(u.Readable.call(s),s._mode=r,s.headers={},s.rawHeaders=[],s.trailers={},s.rawTrailers=[],s.on("end",function(){t.nextTick(function(){s.emit("close")})}),"fetch"===r){s._fetchResponse=n,s.url=n.url,s.statusCode=n.status,s.statusMessage=n.statusText,n.headers.forEach(function(e,t){s.headers[t.toLowerCase()]=e,s.rawHeaders.push(t,e)});var l=n.body.getReader();a()}else if(s._xhr=e,s._pos=0,s.url=e.responseURL,s.statusCode=e.status,s.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===s.headers[n]&&(s.headers[n]=[]),s.headers[n].push(t[2])):void 0!==s.headers[n]?s.headers[n]+=", "+t[2]:s.headers[n]=t[2],s.rawHeaders.push(t[1],t[2])}}),s._charset="x-user-defined",!i.overrideMimeType){var c=s.rawHeaders["mime-type"];if(c){var f=c.match(/;\s*charset=([^;])(;|$)/);f&&(s._charset=f[1].toLowerCase())}s._charset||(s._charset="utf-8")}};a(l,u.Readable),l.prototype._read=function(){},l.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==s.DONE)break;try{n=new r.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new o(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new o(i.length),u=0;ue._pos&&(e.push(new o(new Uint8Array(l.result.slice(e._pos)))),e._pos=l.result.byteLength)},l.onload=function(){e.push(null)},l.readAsArrayBuffer(n)}e._xhr.readyState===s.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":158,_process:114,buffer:5,inherits:107,"readable-stream":127}],161:[function(e,t,n){var r=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(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,o=0;o",'"',"`"," ","\r","\n","\t"],d=["{","}","|","\\","^","`"].concat(h),m=["'"].concat(d),g=["%","/","?",";","#"].concat(m),v=["/","?","#"],b=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},A={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},E=e("querystring");r.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("?"),o=-1!==r&&r127?L+="x":L+=F[M];if(!L.match(b)){var U=T.slice(0,k),N=T.slice(k+1),q=F.match(y);q&&(U.push(q[1]),N.unshift(q[2])),N.length&&(u="/"+N.join(".")+u),this.hostname=U.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),D||(this.hostname=s.toASCII(this.hostname));var z=this.port?":"+this.port:"",I=this.hostname||"";this.host=I+z,this.href+=this.host,D&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==u[0]&&(u="/"+u))}if(!_[d])for(var k=0,R=m.length;k0)&&n.host.split("@"))&&(n.auth=D.shift(),n.host=n.hostname=D.shift())),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(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=_.slice(-1)[0],k=(n.host||e.host||_.length>1)&&("."===C||".."===C)||""===C,O=0,B=_.length;B>=0;B--)"."===(C=_[B])?_.splice(B,1):".."===C?(_.splice(B,1),O++):O&&(_.splice(B,1),O--);if(!b&&!y)for(;O--;O)_.unshift("..");!b||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),k&&"/"!==_.join("/").substr(-1)&&_.push("");var S=""===_[0]||_[0]&&"/"===_[0].charAt(0);if(x){n.hostname=n.host=S?"":_.length?_.shift():"";var D=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");D&&(n.auth=D.shift(),n.host=n.hostname=D.shift())}return(b=b||n.host&&_.length)&&!S&&_.unshift(""),_.length?n.pathname=_.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},r.prototype.parseHost=function(){var e=this.host,t=f.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:115,querystring:118}],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(e){function n(e,t){function n(){if(!o){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),o=!0}return e.apply(this,arguments)}if(r("noDeprecation"))return e;var o=!1;return n}function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=n}).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){function r(){for(var e={},t=0;t=0;r--)n[r]="(?:("+e.customAttrSurround[r][0].source+")\\s*"+t+"\\s*("+e.customAttrSurround[r][1].source+"))";n.push("(?:"+t+")"),t="(?:"+n.join("|")+")"}return new RegExp("^\\s*"+t)}function i(e){return l.concat(e.customAttrAssign||[]).map(function(e){return"(?:"+e.source+")"}).join("|")}function a(e,t){function n(e){var t=e.match(p);if(t){var n={tagName:t[1],attrs:[]};e=e.slice(t[0].length);for(var r,o;!(r=e.match(h))&&(o=e.match(c));)e=e.slice(o[0].length),n.attrs.push(o);if(r)return n.unarySlash=r[1],n.rest=e.slice(r[0].length),n}}function r(e,n){var r;if(n){var o=n.toLowerCase();for(r=l.length-1;r>=0&&l[r].tag.toLowerCase()!==o;r--);}else r=0;if(r>=0){for(var a=l.length-1;a>=r;a--)t.end&&t.end(l[a].tag,l[a].attrs,a>r||!e);l.length=r,i=r&&l[r-1].tag}else"br"===n.toLowerCase()?t.start&&t.start(n,[],!0,""):"p"===n.toLowerCase()&&(t.start&&t.start(n,[],!1,"",!0),t.end&&t.end(n,[]))}for(var i,a,u,s,l=[],c=o(t);e;){if(a=e,i&&w(i)){var f=i.toLowerCase(),x=E[f]||(E[f]=new RegExp("([\\s\\S]*?)]*>","i"));e=e.replace(x,function(e,n){return"script"!==f&&"style"!==f&&"noscript"!==f&&(n=n.replace(//g,"$1").replace(//g,"$1")),t.chars&&t.chars(n),""}),r("",f)}else{var C=e.indexOf("<");if(0===C){if(/^\s*$/,""):t;n.parse.bare_returns=r;var a=Z.minify(i,n);return a.error?(e.log(a.error),t):a.code.replace(/;$/,"")}}if(e.minifyCSS||(e.minifyCSS=z),"function"!=typeof e.minifyCSS){var r=e.minifyCSS;"object"!=typeof r&&(r={}),e.minifyCSS=function(t){t=t.replace(/(url\s*\(\s*)("|'|)(.*?)\2(\s*\))/gi,function(t,n,r,o,i){return n+r+e.minifyURLs(o)+r+i});try{return new K(r).minify(t).styles}catch(n){return e.log(n),t}}}}function j(e){var t;do{t=Math.random().toString(36).replace(/^0\.[0-9]*/,"")}while(~e.indexOf(t));return t}function V(e,t,n,r){function o(e){return e.map(function(e){return t.caseSensitive?e.name:e.name.toLowerCase()})}function i(e,t){return!t||-1===e.indexOf(t)}function a(e){return i(e,n)&&i(e,r)}function u(e){var n,r;new G(e,{start:function(e,i){s&&(s[e]||(s[e]=new Q),s[e].add(o(i).filter(a)));for(var u=0,c=i.length;u-1&&u(e)}})}var s=t.sortAttributes&&Object.create(null),l=t.sortClassName&&new Q,c=t.log;if(t.log=null,t.sortAttributes=!1,t.sortClassName=!1,u($(e,t)),t.log=c,s){var f=Object.create(null);for(var p in s)f[p]=s[p].createSorter();t.sortAttributes=function(e,t){var n=f[e];if(n){var r=Object.create(null),i=o(t);i.forEach(function(e,n){(r[e]||(r[e]=[])).push(t[n])}),n.sort(i).forEach(function(e,n){t[n]=r[e].shift()})}}}if(l){var h=l.createSorter();t.sortClassName=function(e){return h.sort(e.split(/[ \n\f\r]+/)).join(" ")}}}function $(e,t,n){function s(e){return e.replace(A,function(e,t,n){var r=W[+n];return r[1]+w+n+r[2]})}function l(e,n){return t.canCollapseWhitespace(e,n,P)}function c(e,n){return t.canTrimWhitespace(e,n,U)}function f(){for(var e=E.length-1;e>0&&!/^<[^/!]/.test(E[e]);)e--;E.length=Math.max(0,e)}function p(){for(var e=E.length-1;e>0&&!/^<\//.test(E[e]);)e--;E.length=Math.max(0,e)}function d(e,n){for(var r=null;e>=0&&c(r);e--){var o=E[e],a=o.match(/^<\/([\w:-]+)>$/);if(a)r=a[1];else if(/>$/.test(o)||(E[e]=i(o,null,n,t)))break}}function g(e){var t=E.length-1;if(E.length>1){var n=E[E.length-1];/^(?:([\s\S]*?)/g,function(n,r){if(!_){_=j(e);var o=new RegExp("^"+_+"([0-9]+)$");t.ignoreCustomComments?t.ignoreCustomComments.push(o):t.ignoreCustomComments=[o]}var i="\x3c!--"+_+K.length+"--\x3e";return K.push(r),i});var Q=t.ignoreCustomFragments.map(function(e){return e.source});if(Q.length){var Z=new RegExp("\\s*(?:"+Q.join("|")+")+\\s*","g");e=e.replace(Z,function(n){if(!w){w=j(e),A=new RegExp("(\\s*)"+w+"([0-9]+)(\\s*)","g");var r=t.minifyCSS;r&&(t.minifyCSS=function(e){return r(s(e))});var o=t.minifyJS;o&&(t.minifyJS=function(e,t){return o(s(e),t)})}var i=w+W.length;return W.push(/^(\s*)[\s\S]*?(\s*)$/.exec(n)),"\t"+i+"\t"})}(t.sortAttributes&&"function"!=typeof t.sortAttributes||t.sortClassName&&"function"!=typeof t.sortClassName)&&V(e,t,_,w),new G(e,{partialMarkup:n,html5:t.html5,start:function(e,n,r,o,i){var a=e.toLowerCase();if("svg"===a){v.push(t);var u={};for(var s in t)u[s]=t[s];u.keepClosingSlash=!0,u.caseSensitive=!0,t=u}e=t.caseSensitive?e:a,C=e,b=e,ne(e)||(x=""),y=!1,k=n;var h=t.removeOptionalTags;if(h){var d=xe(e);d&&D(L,e)&&f(),L="",d&&R(z,e)&&(p(),h=!T(z,e)),z=""}t.collapseWhitespace&&(O.length||g(e),c(e,n)||O.push(e),l(e,n)||F.push(e));var m="<"+e,_=o&&t.keepClosingSlash;E.push(m),t.sortAttributes&&t.sortAttributes(e,n);for(var A=[],B=n.length,S=!0;--B>=0;){var M=N(n[B],n,e,t);M&&(A.unshift(q(M,_,t,S,w)),S=!1)}A.length>0?(E.push(" "),E.push.apply(E,A)):h&&se(e)&&(L=e),E.push(E.pop()+(_?"/":"")+">"),i&&!t.includeAutoGeneratedTags&&(f(),L="")},end:function(e,n,r){var o=e.toLowerCase();"svg"===o&&(t=v.pop()),e=t.caseSensitive?e:o,t.collapseWhitespace&&(O.length?e===O[O.length-1]&&O.pop():g("/"+e),F.length&&e===F[F.length-1]&&F.pop());var i=!1;e===C&&(C="",i=!y),t.removeOptionalTags&&(i&&_e(L)&&f(),L="",!xe(e)||!z||Ee(z)||"p"===z&&he(e)||p(),z=le(e)?e:""),t.removeEmptyElements&&i&&M(e,n)?(f(),L="",z=""):(r&&!t.includeAutoGeneratedTags?z="":E.push(""),b="/"+e,te(e)?i&&(x+="|"):x="")},chars:function(e,n,r){if(n=""===n?"comment":n,r=""===r?"comment":r,t.decodeEntities&&e&&!ke(C)&&(e=Y(e)),t.collapseWhitespace){if(!O.length){if("comment"===n){var a=E[E.length-1];if(-1===a.indexOf(_)&&(a||(n=b),E.length>1&&(!a||!t.conservativeCollapse&&/ $/.test(x)))){var u=E.length-2;E[u]=E[u].replace(/\s+$/,function(t){return e=t+e,""})}}if(n)if("/nobr"===n||"wbr"===n){if(/^\s/.test(e)){for(var s=E.length-1;s>0&&0!==E[s].lastIndexOf("<"+n);)s--;d(s-1,"br")}}else ne("/"===n.charAt(0)?n.slice(1):n)&&(e=o(e,t,/(?:^|\s)$/.test(x)));!(e=n||r?i(e,n,r,t):o(e,t,!0,!0))&&/\s$/.test(x)&&n&&"/"===n.charAt(0)&&d(E.length-1,r)}F.length||"html"===r||n&&r||(e=o(e,t,!1,!1,!0))}t.processScripts&&ke(C)&&(e=S(e,t,k)),h(C,k)&&(e=t.minifyJS(e)),m(C,k)&&(e=t.minifyCSS(e)),t.removeOptionalTags&&e&&(("html"===L||"body"===L&&!/^\s/.test(e))&&f(),L="",(we(z)||Ae(z)&&!/^\s/.test(e))&&p(),z=""),b=/^\s*$/.test(e)?n:"comment",t.decodeEntities&&e&&!ke(C)&&(e=e.replace(/&(#?[0-9a-zA-Z]+;)/g,"&$1").replace(/":"--\x3e";e=a(e)?r+B(e,t)+o:t.removeComments?u(e,t)?"\x3c!--"+e+"--\x3e":"":r+e+o,t.removeOptionalTags&&e&&(L="",z=""),E.push(e)},doctype:function(e){E.push(t.useShortDoctype?"":r(e))},customAttrAssign:t.customAttrAssign,customAttrSurround:t.customAttrSurround}),t.removeOptionalTags&&(_e(L)&&f(),z&&!Ee(z)&&p()),t.collapseWhitespace&&g("br");var J=H(E,t);return A&&(J=J.replace(A,function(e,n,r,i){var a=W[+r][0];return t.collapseWhitespace?("\t"!==n&&(a=n+a),"\t"!==i&&(a+=i),o(a,{preserveLineBreaks:t.preserveLineBreaks,conservativeCollapse:!t.trimCustomFragments},/^\s/.test(a),/\s$/.test(a))):a})),_&&(J=J.replace(new RegExp("\x3c!--"+_+"([0-9]+)--\x3e","g"),function(e,t){return K[+t]})),t.log("minified in: "+(Date.now()-$)+"ms"),J}function H(e,t){var n,r=t.maxLineLength;if(r){for(var i,a=[],u="",s=0,l=e.length;s=0}function i(e,t){for(var n=0,r=t.length;n>1);return n+=n,1&t&&(n+=e),n}function u(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 s(e,t){this.message=e,this.defs=t}function l(e,t,n){!0===e&&(e={});var r=e||{};if(n)for(var o in r)E(r,o)&&!E(t,o)&&s.croak("`"+o+"` is not a supported option",t);for(var o in t)E(t,o)&&(r[o]=e&&E(e,o)?e[o]:t[o]);return r}function c(e,t){var n=0;for(var r in t)E(t,r)&&(e[r]=t[r],n++);return n}function f(){}function p(){return!1}function h(){return!0}function d(){return this}function m(){return null}function g(e,t){e.indexOf(t)<0&&e.push(t)}function v(e,t){return e.replace(/\{(.+?)\}/g,function(e,n){return t&&t[n]})}function b(e,t){for(var n=e.length;--n>=0;)e[n]===t&&e.splice(n,1)}function y(e,t){function n(e,n){for(var r=[],o=0,i=0,a=0;o3){o.sort(function(e,t){return t.length-e.length}),r+="switch(str.length){";for(var a=0;a=0;)if(!t(e[n]))return!1;return!0}function A(){this._values=Object.create(null),this._size=0}function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function x(e){for(var t,n=e.parent(-1),r=0;t=e.parent(r);r++){if(t instanceof oe&&t.body===n)return!0;if(!(t instanceof Ke&&t.expressions[0]===n||t instanceof $e&&t.expression===n&&!(t instanceof He)||t instanceof Ge&&t.expression===n||t instanceof We&&t.expression===n||t instanceof et&&t.condition===n||t instanceof Xe&&t.left===n||t instanceof Je&&t.expression===n))return!1;n=t}}function C(e,n,r,o){arguments.length<4&&(o=re);var i=n=n?n.split(/\s+/):[];o&&o.PROPS&&(n=n.concat(o.PROPS));for(var a="return function AST_"+e+"(props){ if (props) { ",u=n.length;--u>=0;)a+="this."+n[u]+" = props."+n[u]+";";var s=o&&new o;(s&&s.initialize||r&&r.initialize)&&(a+="this.initialize();"),a+="}}";var l=new Function(a)();if(s&&(l.prototype=s,l.BASE=o),o&&o.SUBCLASSES.push(l),l.prototype.CTOR=l,l.PROPS=n||null,l.SELF_PROPS=i,l.SUBCLASSES=[],e&&(l.prototype.TYPE=l.TYPE=e),r)for(u in r)E(r,u)&&(/^\$/.test(u)?l[u.substr(1)]=r[u]:l.prototype[u]=r[u]);return l.DEFMETHOD=function(e,t){this.prototype[e]=t},void 0!==t&&(t["AST_"+e]=l),l}function k(e,t){var n=e.body;if(n instanceof oe)n._walk(t);else for(var r=0,o=n.length;r=97&&e<=122||e>=65&&e<=90||e>=170&&Ht.letter.test(String.fromCharCode(e))}function S(e){return e>=48&&e<=57}function D(e){return S(e)||B(e)}function T(e){return Ht.digit.test(String.fromCharCode(e))}function R(e){return Ht.non_spacing_mark.test(e)||Ht.space_combining_mark.test(e)}function F(e){return Ht.connector_punctuation.test(e)}function L(e){return!Mt(e)&&/^[a-z_$][a-z0-9_$]*$/i.test(e)}function M(e){return 36==e||95==e||B(e)}function P(e){var t=e.charCodeAt(0);return M(t)||S(t)||8204==t||8205==t||R(e)||F(e)||T(t)}function U(e){return/^[a-z_$][a-z0-9_$]*$/i.test(e)}function N(e){if(Nt.test(e))return parseInt(e.substr(2),16);if(qt.test(e))return parseInt(e.substr(1),8);var t=parseFloat(e);return t==e?t:void 0}function q(e,t,n,r,o){this.message=e,this.filename=t,this.line=n,this.col=r,this.pos=o}function z(e,t,n,r,o){throw new q(e,t,n,r,o)}function I(e,t,n){return e.type==t&&(null==n||e.value==n)}function j(e,t,n,r){function o(){return O.text.charAt(O.pos)}function i(e,t){var n=O.text.charAt(O.pos++);if(e&&!n)throw Kt;return jt(n)?(O.newline_before=O.newline_before||!t,++O.line,O.col=0,t||"\r"!=n||"\n"!=o()||(++O.pos,n="\n")):++O.col,n}function a(e){for(;e-- >0;)i()}function u(e){return O.text.substr(O.pos,e.length)==e}function s(){for(var e=O.text,t=O.pos,n=O.text.length;t="0"&&t<="7"?v(t):t}function v(e){var t=o();return t>="0"&&t<="7"&&(e+=i(!0))[0]<="3"&&(t=o())>="0"&&t<="7"&&(e+=i(!0)),"0"===e?"\0":(e.length>0&&k.has_directive("use strict")&&d("Legacy octal escape sequences are not allowed in strict mode"),String.fromCharCode(parseInt(e,8)))}function b(e){for(var t=0;e>0;--e){var n=parseInt(i(!0),16);isNaN(n)&&d("Invalid hex-character pattern in string"),t=t<<4|n}return t}function y(e){var t,n=O.regex_allowed,r=s();return-1==r?(t=O.text.substr(O.pos),O.pos=O.text.length):(t=O.text.substring(O.pos,r),O.pos=r),O.col=O.tokcol+(O.pos-O.tokpos),O.comments_before.push(f(e,t,!0)),O.regex_allowed=n,k}function _(){for(var e,t,n=!1,r="",a=!1;null!=(e=o());)if(n)"u"!=e&&d("Expecting UnicodeEscapeSequence -- uXXXX"),P(e=g())||d("Unicode char: "+e.charCodeAt(0)+" is not valid in identifier"),r+=e,n=!1;else if("\\"==e)a=n=!0,i();else{if(!P(e))break;r+=i()}return Ft(r)&&a&&(t=r.charCodeAt(0).toString(16).toUpperCase(),r="\\u"+"0000".substr(t.length)+t+r.slice(1)),r}function w(e){function t(e){if(!o())return e;var n=e+o();return zt(n)?(i(),t(n)):e}return f("operator",t(e||i()))}function A(){switch(i(),o()){case"/":return i(),y("comment1");case"*":return i(),R()}return O.regex_allowed?F(""):w("/")}function E(){return i(),S(o().charCodeAt(0))?m("."):f("punc",".")}function x(){var e=_();return B?f("name",e):Lt(e)?f("atom",e):Ft(e)?zt(e)?f("operator",e):f("keyword",e):f("name",e)}function C(e,t){return function(n){try{return t(n)}catch(t){if(t!==Kt)throw t;d(e)}}}function k(e){if(null!=e)return F(e);for(r&&0==O.pos&&u("#!")&&(c(),a(2),y("comment5"));;){if(p(),c(),n){if(u("\x3c!--")){a(4),y("comment3");continue}if(u("--\x3e")&&O.newline_before){a(3),y("comment4");continue}}var t=o();if(!t)return f("eof");var s=t.charCodeAt(0);switch(s){case 34:case 39:return T(t);case 46:return E();case 47:var l=A();if(l===k)continue;return l}if(S(s))return m();if($t(t))return f("punc",i());if(Ut(t))return w();if(92==s||M(s))return x();break}d("Unexpected character '"+t+"'")}var O={text:e,filename:t,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,comments_before:[],directives:{},directive_stack:[]},B=!1,T=C("Unterminated string constant",function(e){for(var t=i(),n="";;){var r=i(!0,!0);if("\\"==r)r=g(!0);else if(jt(r))d("Unterminated string constant");else if(r==t)break;n+=r}var o=f("string",n);return o.quote=e,o}),R=C("Unterminated multiline comment",function(){var e=O.regex_allowed,t=l("*/",!0),n=O.text.substring(O.pos,t).replace(/\r\n|\r|\u2028|\u2029/g,"\n");return a(n.length+2),O.comments_before.push(f("comment2",n,!0)),O.regex_allowed=e,k}),F=C("Unterminated regular expression",function(e){for(var t,n=!1,r=!1;t=i(!0);)if(jt(t))d("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 o=_();try{var a=new RegExp(e,o);return a.raw_source=e,f("regexp",a)}catch(e){d(e.message)}});return k.context=function(e){return e&&(O=e),O},k.add_directive=function(e){O.directive_stack[O.directive_stack.length-1].push(e),void 0===O.directives[e]?O.directives[e]=1:O.directives[e]++},k.push_directives_stack=function(){O.directive_stack.push([])},k.pop_directives_stack=function(){for(var e=O.directive_stack[O.directive_stack.length-1],t=0;t0},k}function V(e,t){function n(e,t){return I($.token,e,t)}function r(){return $.peeked||($.peeked=$.input())}function o(){return $.prev=$.token,$.peeked?($.token=$.peeked,$.peeked=null):$.token=$.input(),$.in_directives=$.in_directives&&("string"==$.token.type||n("punc",";")),$.token}function a(){return $.prev}function u(e,t,n,r){var o=$.input.context();z(e,o.filename,null!=t?t:o.tokline,null!=n?n:o.tokcol,null!=r?r:o.tokpos)}function s(e,t){u(t,e.line,e.col)}function c(e){null==e&&(e=$.token),s(e,"Unexpected token: "+e.type+" ("+e.value+")")}function f(e,t){if(n(e,t))return o();s($.token,"Unexpected token "+$.token.type+" «"+$.token.value+"», expected "+e+" «"+t+"»")}function p(e){return f("punc",e)}function h(){return!t.strict&&($.token.nlb||n("eof")||n("punc","}"))}function d(e){n("punc",";")?o():e||h()||c()}function m(){p("(");var e=oe(!0);return p(")"),e}function g(e){return function(){var t=$.token,n=e(),r=a();return n.start=t,n.end=r,n}}function v(){(n("operator","/")||n("operator","/="))&&($.peeked=null,$.token=$.input($.token.value.substr(1)))}function b(){var e=M(gt);i(function(t){return t.name==e.name},$.labels)&&u("Label "+e.name+" defined twice"),p(":"),$.labels.push(e);var t=H();return $.labels.pop(),t instanceof he||e.references.forEach(function(t){t instanceof Re&&(t=t.label.start,u("Continue label `"+e.name+"` refers to non-IterationStatement.",t.line,t.col,t.pos))}),new pe({body:t,label:e})}function y(e){return new ue({body:(e=oe(!0),d(),e)})}function _(e){var t,n=null;h()||(n=M(bt,!0)),null!=n?((t=i(function(e){return e.name==n.name},$.labels))||u("Undefined label "+n.name),n.thedef=t):0==$.in_loop&&u(e.TYPE+" not inside a loop or switch"),d();var r=new e({label:n});return t&&t.references.push(r),r}function w(){p("(");var e=null;return!n("punc",";")&&(e=n("keyword","var")?(o(),Y(!0)):oe(!0,!0),n("operator","in"))?(e instanceof je&&e.definitions.length>1&&u("Only one variable declaration allowed in for..in loop"),o(),E(e)):A(e)}function A(e){p(";");var t=n("punc",";")?null:oe(!0);p(";");var r=n("punc",")")?null:oe(!0);return p(")"),new ve({init:e,condition:t,step:r,body:V(H)})}function E(e){var t=e instanceof je?e.definitions[0].name:null,n=oe(!0);return p(")"),new be({init:e,name:t,object:n,body:V(H)})}function x(){var e=m(),t=H(),r=null;return n("keyword","else")&&(o(),r=H()),new Fe({condition:e,body:t,alternative:r})}function C(){p("{");for(var e=[];!n("punc","}");)n("eof")&&c(),e.push(H());return o(),e}function k(){p("{");for(var e,t=[],r=null,i=null;!n("punc","}");)n("eof")&&c(),n("keyword","case")?(i&&(i.end=a()),r=[],i=new Ue({start:(e=$.token,o(),e),expression:oe(!0),body:r}),t.push(i),p(":")):n("keyword","default")?(i&&(i.end=a()),r=[],i=new Pe({start:(e=$.token,o(),p(":"),e),body:r}),t.push(i)):(r||c(),r.push(H()));return i&&(i.end=a()),o(),t}function O(){var e=C(),t=null,r=null;if(n("keyword","catch")){s=$.token;o(),p("(");var i=M(mt);p(")"),t=new qe({start:s,argname:i,body:C(),end:a()})}if(n("keyword","finally")){var s=$.token;o(),r=new ze({start:s,body:C(),end:a()})}return t||r||u("Missing catch/finally blocks"),new Ne({body:e,bcatch:t,bfinally:r})}function B(e){for(var t=[];t.push(new Ve({start:$.token,name:M(ft),value:n("operator","=")?(o(),oe(!1,e)):null,end:a()})),n("punc",",");)o();return t}function S(){var e,t=$.token;switch(t.type){case"name":case"keyword":e=F(vt);break;case"num":e=new At({start:t,end:t,value:t.value});break;case"string":e=new wt({start:t,end:t,value:t.value,quote:t.quote});break;case"regexp":e=new Et({start:t,end:t,value:t.value});break;case"atom":switch(t.value){case"false":e=new Tt({start:t,end:t});break;case"true":e=new Rt({start:t,end:t});break;case"null":e=new Ct({start:t,end:t})}break;case"operator":U(t.value)||u("Invalid getter/setter name: "+t.value,t.line,t.col,t.pos),e=F(vt)}return o(),e}function D(e,t,r){for(var i=!0,a=[];!n("punc",e)&&(i?i=!1:p(","),!t||!n("punc",e));)n("punc",",")&&r?a.push(new Bt({start:$.token,end:$.token})):a.push(oe(!1));return o(),a}function T(){var e=$.token;switch(e.type){case"operator":Ft(e.value)||c();case"num":case"string":case"name":case"keyword":case"atom":return o(),e.value;default:c()}}function R(){var e=$.token;return"name"!=e.type&&c(),o(),e.value}function F(e){var t=$.token.value;return new("this"==t?yt:e)({name:String(t),start:$.token,end:$.token})}function L(e){"arguments"!=e.name&&"eval"!=e.name||u("Unexpected "+e.name+" in strict mode",e.start.line,e.start.col,e.start.pos)}function M(e,t){if(!n("name"))return t||u("Name expected"),null;var r=F(e);return $.input.has_directive("use strict")&&r instanceof ct&&L(r),o(),r}function P(e,t,n){var r=t.value;switch(r){case"++":case"--":q(n)||u("Invalid use of "+r+" operator",t.line,t.col,t.pos);break;case"delete":n instanceof vt&&$.input.has_directive("use strict")&&u("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})}function N(e){return te(ee(!0),0,e)}function q(e){return e instanceof Ye||e instanceof vt}function V(e){++$.in_loop;var t=e();return--$.in_loop,t}t=l(t,{bare_returns:!1,expression:!1,filename:null,html5_comments:!0,shebang:!0,strict:!1,toplevel:null});var $={input:"string"==typeof e?j(e,t.filename,t.html5_comments,t.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_directives:!0,in_loop:0,labels:[]};$.token=o();var H=g(function(){switch(v(),$.token.type){case"string":if($.in_directives){var e=r();-1==$.token.raw.indexOf("\\")&&(e.nlb||I(e,"eof")||I(e,"punc",";")||I(e,"punc","}"))?$.input.add_directive($.token.value):$.in_directives=!1}var i=$.in_directives,s=y();return i?new ae(s.body):s;case"num":case"regexp":case"operator":case"atom":return y();case"name":return I(r(),"punc",":")?b():y();case"punc":switch($.token.value){case"{":return new le({start:$.token,body:C(),end:a()});case"[":case"(":return y();case";":return $.in_directives=!1,o(),new ce;default:c()}case"keyword":switch($.token.value){case"break":return o(),_(Te);case"continue":return o(),_(Re);case"debugger":return o(),d(),new ie;case"do":o();var l=V(H);f("keyword","while");var p=m();return d(!0),new me({body:l,condition:p});case"while":return o(),new ge({condition:m(),body:V(H)});case"for":return o(),w();case"function":return o(),K(Ce);case"if":return o(),x();case"return":0!=$.in_function||t.bare_returns||u("'return' outside of function"),o();g=null;return n("punc",";")?o():h()||(g=oe(!0),d()),new Be({value:g});case"switch":return o(),new Le({expression:m(),body:V(k)});case"throw":o(),$.token.nlb&&u("Illegal newline after 'throw'");var g=oe(!0);return d(),new Se({value:g});case"try":return o(),O();case"var":o();var A=Y();return d(),A;case"with":return $.input.has_directive("use strict")&&u("Strict mode may not include a with statement"),o(),new ye({expression:m(),body:H()})}}c()}),K=function(e){var t=e===Ce,r=n("name")?M(t?ht:dt):null;t&&!r&&c(),p("(");for(var i=[],a=!0;!n("punc",")");)a?a=!1:p(","),i.push(M(pt));o();var u=$.in_loop,s=$.labels;++$.in_function,$.in_directives=!0,$.input.push_directives_stack(),$.in_loop=0,$.labels=[];var l=C();return $.input.has_directive("use strict")&&(r&&L(r),i.forEach(L)),$.input.pop_directives_stack(),--$.in_function,$.in_loop=u,$.labels=s,new e({name:r,argnames:i,body:l})},Y=function(e){return new je({start:a(),definitions:B(e),end:a()})},G=function(e){var t=$.token;f("operator","new");var r,i=W(!1);return n("punc","(")?(o(),r=D(")")):r=[],X(new He({start:t,expression:i,args:r,end:a()}),e)},W=function(e){if(n("operator","new"))return G(e);var t=$.token;if(n("punc")){switch(t.value){case"(":o();var r=oe(!0);return r.start=t,r.end=$.token,p(")"),X(r,e);case"[":return X(Q(),e);case"{":return X(J(),e)}c()}if(n("keyword","function")){o();var i=K(xe);return i.start=t,i.end=a(),X(i,e)}if(Zt[$.token.type])return X(S(),e);c()},Q=g(function(){return p("["),new nt({elements:D("]",!t.strict,!0)})}),Z=g(function(){return K(Ee)}),J=g(function(){p("{");for(var e=!0,r=[];!n("punc","}")&&(e?e=!1:p(","),t.strict||!n("punc","}"));){var i=$.token,u=i.type,s=T();if("name"==u&&!n("punc",":")){var l=new lt({start:$.token,name:T(),end:a()});if("get"==s){r.push(new ut({start:i,key:l,value:Z(),end:a()}));continue}if("set"==s){r.push(new at({start:i,key:l,value:Z(),end:a()}));continue}}p(":"),r.push(new it({start:i,quote:i.quote,key:s,value:oe(!1),end:a()}))}return o(),new rt({properties:r})}),X=function(e,t){var r=e.start;if(n("punc","."))return o(),X(new Ge({start:r,expression:e,property:R(),end:a()}),t);if(n("punc","[")){o();var i=oe(!0);return p("]"),X(new We({start:r,expression:e,property:i,end:a()}),t)}return t&&n("punc","(")?(o(),X(new $e({start:r,expression:e,args:D(")"),end:a()}),!0)):e},ee=function(e){var t=$.token;if(n("operator")&&Yt(t.value)){o(),v();var r=P(Ze,t,ee(e));return r.start=t,r.end=a(),r}for(var i=W(e);n("operator")&&Gt($.token.value)&&!$.token.nlb;)(i=P(Je,$.token,i)).start=t,i.end=$.token,o();return i},te=function(e,t,r){var i=n("operator")?$.token.value:null;"in"==i&&r&&(i=null);var a=null!=i?Qt[i]:null;if(null!=a&&a>t){o();var u=te(ee(!0),a,r);return te(new Xe({start:e.start,left:e,operator:i,right:u,end:u.end}),t,r)}return e},ne=function(e){var t=$.token,r=N(e);if(n("operator","?")){o();var i=oe(!1);return p(":"),new et({start:t,condition:r,consequent:i,alternative:oe(!1,e),end:a()})}return r},re=function(e){var t=$.token,r=ne(e),i=$.token.value;if(n("operator")&&Wt(i)){if(q(r))return o(),new tt({start:t,left:r,operator:i,right:re(e),end:a()});u("Invalid assignment")}return r},oe=function(e,t){for(var i=$.token,a=[];;){if(a.push(re(t)),!e||!n("punc",","))break;o(),e=!0}return 1==a.length?a[0]:new Ke({start:i,expressions:a,end:r()})};return t.expression?oe(!0):function(){var e=$.token,r=[];for($.input.push_directives_stack();!n("eof");)r.push(H());$.input.pop_directives_stack();var o=a(),i=t.toplevel;return i?(i.body=i.body.concat(r),i.end=o):i=new we({start:e,body:r,end:o}),i}()}function $(e,t){O.call(this),this.before=e,this.after=t}function H(e,t,n){this.name=n.name,this.orig=[n],this.scope=e,this.references=[],this.global=!1,this.mangled_name=null,this.undeclared=!1,this.index=t,this.id=H.next_id++}function K(e){return"comment2"==e.type&&/@preserve|@license|@cc_on/i.test(e.value)}function Y(e){function t(e,t){return e.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(e){var n=e.charCodeAt(0).toString(16);if(n.length<=2&&!t){for(;n.length<2;)n="0"+n;return"\\x"+n}for(;n.length<4;)n="0"+n;return"\\u"+n})}function n(n,r){function o(){return"'"+n.replace(/\x27/g,"\\'")+"'"}function i(){return'"'+n.replace(/\x22/g,'\\"')+'"'}var a=0,u=0;switch(n=n.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(t,r){switch(t){case'"':return++a,'"';case"'":return++u,"'";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 e.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-7]/.test(n.charAt(r+1))?"\\x00":"\\0"}return t}),e.ascii_only&&(n=t(n)),e.quote_style){case 1:return o();case 2:return i();case 3:return"'"==r?o():i();default:return a>u?o():i()}}function r(t,r){var o=n(t,r);return e.inline_script&&(o=(o=(o=o.replace(/<\x2fscript([>\/\t\n\f\r ])/gi,"<\\/script$1")).replace(/\x3c!--/g,"\\x3c!--")).replace(/--\x3e/g,"--\\x3e")),o}function o(n){return n=n.toString(),e.ascii_only&&(n=t(n,!0)),n}function i(t){return a(" ",e.indent_start+x-t*e.indent_level)}function u(t){var n=(t=String(t)).charAt(0),r=R.charAt(R.length-1);if(D&&(D=!1,(":"==r&&"}"==n||(!n||";}".indexOf(n)<0)&&";"!=r)&&(e.semicolons||L(n)?(B+=";",C++,O++):(F(),B+="\n",O++,k++,C=0,/^\s+$/.test(t)&&(D=!0)),e.beautify||(S=!1))),!e.beautify&&e.preserve_line&&j[j.length-1])for(var o=j[j.length-1].start.line;k0&&(F(),C=i[a].length),R=t}function s(){D=!1,u(";")}function c(){return x+e.indent_level}function d(e){var t;return u("{"),q(),N(c(),function(){t=e()}),U(),u("}"),t}function m(e){u("(");var t=e();return u(")"),t}function g(e){u("[");var t=e();return u("]"),t}function v(){u(","),M()}function b(){u(":"),M()}function y(){return T&&F(),B}var w=p;if((e=l(e,{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,width:80,wrap_iife:!1},!0)).comments){var A=e.comments;if("string"==typeof e.comments&&/^\/.*\/[a-zA-Z]*$/.test(e.comments)){var E=e.comments.lastIndexOf("/");A=new RegExp(e.comments.substr(1,E-1),e.comments.substr(E+1))}w=A instanceof RegExp?function(e){return"comment5"!=e.type&&A.test(e.value)}:"function"==typeof A?function(e){return"comment5"!=e.type&&A(this,e)}:"some"===A?K:h}var x=0,C=0,k=1,O=0,B="",S=!1,D=!1,T=0,R="",F=e.max_line_len?function(){if(C>e.max_line_len){if(T){var t=B.slice(0,T),n=B.slice(T);B=t+"\n"+n,k++,O++,C=n.length}C>e.max_line_len&&re.warn("Output exceeds {max_line_len} characters",e)}T=0}:f,L=_("( [ + * / - , ."),M=e.beautify?function(){u(" ")}:function(){S=!0},U=e.beautify?function(t){e.beautify&&u(i(t?.5:0))}:f,N=e.beautify?function(e,t){!0===e&&(e=c());var n=x;x=e;var r=t();return x=n,r}:function(e,t){return t()},q=e.beautify?function(){u("\n")}:e.max_line_len?function(){F(),T=B.length}:f,z=e.beautify?function(){u(";")}:function(){D=!0},I=e.source_map?function(t,n){try{t&&e.source_map.add(t.file||"?",k,C,t.line,t.col,n||"name"!=t.type?n:t.value)}catch(e){re.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]",{file:t.file,line:t.line,col:t.col,cline:k,ccol:C,name:n||""})}}:f,j=[];return{get:y,toString:y,indent:U,indentation:function(){return x},current_width:function(){return C-x},should_break:function(){return e.width&&this.current_width()>=e.width},newline:q,print:u,space:M,comma:v,colon:b,last:function(){return R},semicolon:z,force_semicolon:s,to_ascii:t,print_name:function(e){u(o(e))},print_string:function(e,t,n){var o=r(e,t);!0===n&&-1===o.indexOf("\\")&&(Xt.test(B)||s(),s()),u(o)},encode_string:r,next_indent:c,with_indent:N,with_block:d,with_parens:m,with_square:g,add_mapping:I,option:function(t){return e[t]},comment_filter:w,line:function(){return k},col:function(){return C},pos:function(){return O},push_node:function(e){j.push(e)},pop_node:function(){return j.pop()},parent:function(e){return j[j.length-2-(e||0)]}}}function G(e,t){if(!(this instanceof G))return new G(e,t);$.call(this,this.before,this.after),this.options=l(e,{booleans:!t,cascade:!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:!t,hoist_vars:!1,ie8:!1,if_return:!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_vars:!t,sequences:!t,side_effects:!t,switches:!t,top_retain:null,toplevel:!(!e||!e.top_retain),unsafe:!1,unsafe_comps:!1,unsafe_math:!1,unsafe_proto:!1,unsafe_regexp:!1,unused:!t,warnings:!1},!0);var n=this.options.pure_funcs;this.pure_funcs="function"==typeof n?n:n?function(e){return n.indexOf(e.expression.print_to_string())<0}:h;var r=this.options.top_retain;r instanceof RegExp?this.top_retain=function(e){return r.test(e.name)}:"function"==typeof r?this.top_retain=r:r&&("string"==typeof r&&(r=r.split(/,/)),this.top_retain=function(e){return r.indexOf(e.name)>=0});var o=this.options.toplevel;"string"==typeof o?(this.toplevel.funcs=/funcs/.test(o),this.toplevel.vars=/vars/.test(o)):(this.toplevel=o?h:p,this.toplevel.funcs=this.toplevel.vars=o);var i=this.options.sequences;this.sequences_limit=1==i?800:0|i,this.warnings_produced={}}function W(e){function t(t,o,i,a,u,s){if(r){var l=r.originalPositionFor({line:a,column:u});if(null===l.source)return;t=l.source,a=l.line,u=l.column,s=l.name||s}n.addMapping({generated:{line:o+e.dest_line_diff,column:i},original:{line:a+e.orig_line_diff,column:u},source:t,name:s})}e=l(e,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var n=new MOZ_SourceMap.SourceMapGenerator({file:e.file,sourceRoot:e.root}),r=e.orig&&new MOZ_SourceMap.SourceMapConsumer(e.orig);return r&&Array.isArray(e.orig.sources)&&r._sources.toArray().forEach(function(e){var t=r.sourceContentFor(e,!0);t&&n.setSourceContent(e,t)}),{add:t,get:function(){return n},toString:function(){return JSON.stringify(n.toJSON())}}}function Q(e){function t(t){g(e,t)}["null","true","false","Infinity","-Infinity","undefined"].forEach(t),[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp].forEach(function(e){Object.getOwnPropertyNames(e).map(t),e.prototype&&Object.getOwnPropertyNames(e.prototype).map(t)})}function Z(e,t){function n(e){return!(v.indexOf(e)>=0)&&(!(s.indexOf(e)>=0)&&(t.only_cache?c.props.has(e):!/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(e)))}function r(e){return!(h&&e in b)&&(!(p&&!p.test(e))&&(!(s.indexOf(e)>=0)&&(c.props.has(e)||m.indexOf(e)>=0)))}function o(e,t){t?b[e]=!0:(n(e)&&g(m,e),r(e)||g(v,e))}function i(e){if(!r(e))return e;var t=c.props.get(e);if(!t){if(d){var o="_$"+e+"$"+f+"_";!n(o)||h&&o in b||(t=o)}if(!t)do{t=Jt(++c.cname)}while(!n(t)||h&&t in b);c.props.set(e,t)}return t}function a(e,t){var n={};try{!function e(r){r.walk(new O(function(r){if(r instanceof Ke)return e(r.expressions[r.expressions.length-1]),!0;if(r instanceof wt)return o(r.value,t),!0;if(r instanceof et)return e(r.consequent),e(r.alternative),!0;throw n}))}(e)}catch(e){if(e!==n)throw e}}function u(e){return e.transform(new $(function(e){if(e instanceof Ke){var t=e.expressions.length-1;e.expressions[t]=u(e.expressions[t])}else e instanceof wt?e.value=i(e.value):e instanceof et&&(e.consequent=u(e.consequent),e.alternative=u(e.alternative));return e}))}var s=(t=l(t,{builtins:!1,cache:null,debug:!1,keep_quoted:!1,only_cache:!1,regex:null,reserved:null})).reserved||[];t.builtins||Q(s);var c=t.cache;null==c&&(c={cname:-1,props:new A});var f,p=t.regex,h=t.keep_quoted,d=!1!==t.debug;d&&(f=!0===t.debug?"":t.debug);var m=[],v=[],b={};return e.walk(new O(function(e){e instanceof it?o(e.key,h&&e.quote):e instanceof ot?o(e.key.name):e instanceof Ge?o(e.property):e instanceof We&&a(e.property,h)})),e.transform(new $(function(e){e instanceof it?h&&e.quote||(e.key=i(e.key)):e instanceof ot?e.key.name=i(e.key.name):e instanceof Ge?e.property=i(e.property):e instanceof We&&(h||(e.property=u(e.property)))}))}function J(e){var t=/\n\/\/# sourceMappingURL=data:application\/json(;.*?)?;base64,(.*)/.exec(e);return t?en(t[2]):(re.warn("inline source map not found"),null)}function X(e,t,n){t[e]&&n.forEach(function(n){t[n]&&("object"!=typeof t[n]&&(t[n]={}),e in t[n]||(t[n][e]=t[e]))})}function ee(e,t){var n=re.warn_function;try{"string"==typeof e&&(e=[e]),X("ie8",t=l(t,{compress:{},ie8:!1,keep_fnames:!1,mangle:{},output:{},parse:{},sourceMap:!1,toplevel:!1,warnings:!1,wrap:!1},!0),["compress","mangle","output"]),X("keep_fnames",t,["compress","mangle"]),X("toplevel",t,["compress","mangle"]),X("warnings",t,["compress"]),t.mangle&&(t.mangle=l(t.mangle,{cache:null,eval:!1,ie8:!1,keep_fnames:!1,properties:!1,reserved:[],toplevel:!1},!0)),t.sourceMap&&(t.sourceMap=l(t.sourceMap,{content:null,filename:null,includeSources:!1,root:null,url:null},!0));var r=[];t.warnings&&!re.warn_function&&(re.warn_function=function(e){r.push(e)});var o;if(e instanceof we)o=e;else{t.parse=t.parse||{},t.parse.toplevel=null;for(var i in e)if(t.parse.filename=i,t.parse.toplevel=V(e[i],t.parse),t.sourceMap&&"inline"==t.sourceMap.content){if(Object.keys(e).length>1)throw new Error("inline source map only works with singular input");t.sourceMap.content=J(e[i])}o=t.parse.toplevel}t.wrap&&(o=o.wrap_commonjs(t.wrap)),t.compress&&(o.figure_out_scope(t.mangle),o=new G(t.compress).compress(o)),t.mangle&&(o.figure_out_scope(t.mangle),Jt.reset(),o.compute_char_frequency(t.mangle),o.mangle_names(t.mangle),t.mangle.properties&&(o=Z(o,t.mangle.properties)));var a={};if(t.output.ast&&(a.ast=o),!E(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=W({file:t.sourceMap.filename,orig:t.sourceMap.content,root:t.sourceMap.root}),t.sourceMap.includeSources))for(var i in e)t.output.source_map.get().setSourceContent(i,e[i]);delete t.output.ast,delete t.output.code;var u=Y(t.output);o.print(u),a.code=u.get(),t.sourceMap&&(a.map=t.output.source_map.toString(),"inline"==t.sourceMap.url?a.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+tn(a.map):t.sourceMap.url&&(a.code+="\n//# sourceMappingURL="+t.sourceMap.url))}return r.length&&(a.warnings=r),a}catch(e){return{error:e}}finally{re.warn_function=n}}s.prototype=Object.create(Error.prototype),s.prototype.constructor=s,s.prototype.name="DefaultsError",u(s),s.croak=function(e,t){throw new s(e,t)};var te=function(){function e(e,i,a){function u(){var u=i(e[s],s),f=u instanceof r;return f&&(u=u.v),u instanceof t?(u=u.v)instanceof n?c.push.apply(c,a?u.v.slice().reverse():u.v):c.push(u):u!==o&&(u instanceof n?l.push.apply(l,a?u.v.slice().reverse():u.v):l.push(u)),f}var s,l=[],c=[];if(e instanceof Array)if(a){for(s=e.length;--s>=0&&!u(););l.reverse(),c.reverse()}else for(s=0;s 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)"}},se),we=C("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=V(n),n=n.transform(new $(function(e){if(e instanceof ae&&"$ORIG"==e.value)return te.splice(t)}))}},_e),Ae=C("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(e){return e._visit(this,function(){this.name&&this.name._walk(e);for(var t=this.argnames,n=0,r=t.length;n=0;){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 _e)for(var r=0;r0;){var r=e[--t];if(r instanceof Fe&&r.condition===n||r instanceof et&&r.condition===n||r instanceof de&&r.condition===n||r instanceof ve&&r.condition===n||r instanceof Ze&&"!"==r.operator&&r.expression===n)return!0;if(!(r instanceof Xe)||"&&"!=r.operator&&"||"!=r.operator)return!1;n=r}},loopcontrol_target:function(e){var t=this.stack;if(e.label){for(n=t.length;--n>=0;)if((r=t[n])instanceof pe&&r.label.name==e.label.name)return r.body}else for(var n=t.length;--n>=0;){var r=t[n];if(r instanceof he||e instanceof Te&&r instanceof Le)return r}}};var Ft="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",Lt="false null true",Mt="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 "+Lt+" "+Ft,Pt="return new delete throw else case";Ft=_(Ft),Mt=_(Mt),Pt=_(Pt),Lt=_(Lt);var Ut=_(r("+-*&%=<>!?|~^")),Nt=/^0x[0-9a-f]+$/i,qt=/^0[0-7]+$/,zt=_(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),It=_(r("  \n\r\t\f\v​           \u2028\u2029   \ufeff")),jt=_(r("\n\r\u2028\u2029")),Vt=_(r("[{(,;:")),$t=_(r("[]{}(),;:")),Ht=(_(r("gmsiy")),{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]")});q.prototype=Object.create(Error.prototype),q.prototype.constructor=q,q.prototype.name="SyntaxError",u(q);var Kt={},Yt=_(["typeof","void","delete","--","++","!","~","-","+"]),Gt=_(["--","++"]),Wt=_(["=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&="]),Qt=function(e,t){for(var n=0;n","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{}),Zt=(n(["for","do","while","switch"]),n(["atom","num","string","regexp","name"]));$.prototype=new O,function(e){function t(t,n){t.DEFMETHOD("transform",function(t,r){var o,i;return t.push(this),t.before&&(o=t.before(this,n,r)),o===e&&(t.after?(t.stack[t.stack.length-1]=o=this,n(o,t),(i=t.after(o,r))!==e&&(o=i)):n(o=this,t)),t.pop(this),o})}function n(e,t){return te(e,function(e){return e.transform(t,!0)})}t(re,f),t(pe,function(e,t){e.label=e.label.transform(t),e.body=e.body.transform(t)}),t(ue,function(e,t){e.body=e.body.transform(t)}),t(se,function(e,t){e.body=n(e.body,t)}),t(de,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t)}),t(ve,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)}),t(be,function(e,t){e.init=e.init.transform(t),e.object=e.object.transform(t),e.body=e.body.transform(t)}),t(ye,function(e,t){e.expression=e.expression.transform(t),e.body=e.body.transform(t)}),t(Oe,function(e,t){e.value&&(e.value=e.value.transform(t))}),t(De,function(e,t){e.label&&(e.label=e.label.transform(t))}),t(Fe,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t),e.alternative&&(e.alternative=e.alternative.transform(t))}),t(Le,function(e,t){e.expression=e.expression.transform(t),e.body=n(e.body,t)}),t(Ue,function(e,t){e.expression=e.expression.transform(t),e.body=n(e.body,t)}),t(Ne,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))}),t(qe,function(e,t){e.argname=e.argname.transform(t),e.body=n(e.body,t)}),t(Ie,function(e,t){e.definitions=n(e.definitions,t)}),t(Ve,function(e,t){e.name=e.name.transform(t),e.value&&(e.value=e.value.transform(t))}),t(Ae,function(e,t){e.name&&(e.name=e.name.transform(t)),e.argnames=n(e.argnames,t),e.body=n(e.body,t)}),t($e,function(e,t){e.expression=e.expression.transform(t),e.args=n(e.args,t)}),t(Ke,function(e,t){e.expressions=n(e.expressions,t)}),t(Ge,function(e,t){e.expression=e.expression.transform(t)}),t(We,function(e,t){e.expression=e.expression.transform(t),e.property=e.property.transform(t)}),t(Qe,function(e,t){e.expression=e.expression.transform(t)}),t(Xe,function(e,t){e.left=e.left.transform(t),e.right=e.right.transform(t)}),t(et,function(e,t){e.condition=e.condition.transform(t),e.consequent=e.consequent.transform(t),e.alternative=e.alternative.transform(t)}),t(nt,function(e,t){e.elements=n(e.elements,t)}),t(rt,function(e,t){e.properties=n(e.properties,t)}),t(ot,function(e,t){e.value=e.value.transform(t)})}(),H.next_id=1,H.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 dt||this.orig[0]instanceof ht)},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=this.scope,r=this.orig[0];e.ie8&&r instanceof dt&&(n=n.parent_scope);var o;this.defun&&(o=this.defun.variables.get(this.name))?this.mangled_name=o.mangled_name||o.name:this.mangled_name=n.next_mangled(e,this),this.global&&t&&t.set(this.name,this.mangled_name)}}},we.DEFMETHOD("figure_out_scope",function(e){e=l(e,{cache:null,ie8:!1});var t=this,n=t.parent_scope=null,r=new A,o=null,i=new O(function(t,i){if(t instanceof qe){a=n;return(n=new _e(t)).init_scope_vars(a),i(),n=a,!0}if(t instanceof _e){t.init_scope_vars(n);var a=n,u=o,s=r;return o=n=t,r=new A,i(),n=a,o=u,r=s,!0}if(t instanceof pe){var l=t.label;if(r.has(l.name))throw new Error(v("Label {name} defined twice",l));return r.set(l.name,l),i(),r.del(l.name),!0}if(t instanceof ye)for(var c=n;c;c=c.parent_scope)c.uses_with=!0;else if(t instanceof st&&(t.scope=n),t instanceof gt&&(t.thedef=t,t.references=[]),t instanceof dt)o.def_function(t);else if(t instanceof ht)(t.scope=o.parent_scope).def_function(t);else if(t instanceof ft){if(o.def_variable(t),o!==n){t.mark_enclosed(e);var f=n.find_variable(t);t.thedef!==f&&(t.thedef=f,t.reference(e))}}else if(t instanceof mt)n.def_variable(t).defun=o;else if(t instanceof bt){var p=r.get(t.name);if(!p)throw new Error(v("Undefined label {name} [{line},{col}]",{name:t.name,line:t.start.line,col:t.start.col}));t.thedef=p}});t.walk(i);var a=null,i=(t.globals=new A,new O(function(n,r){if(n instanceof Ae){var o=a;return a=n,r(),a=o,!0}if(n instanceof De&&n.label)return n.label.thedef.references.push(n),!0;if(n instanceof vt){var u=n.name;if("eval"==u&&i.parent()instanceof $e)for(var s=n.scope;s&&!s.uses_eval;s=s.parent_scope)s.uses_eval=!0;var l=n.scope.find_variable(u);return n.scope instanceof Ae&&"arguments"==u&&(n.scope.uses_arguments=!0),l||(l=t.def_global(n)),n.thedef=l,n.reference(e),!0}}));t.walk(i),e.ie8&&t.walk(new O(function(n,r){if(n instanceof mt){var o=n.name,i=n.thedef.references,a=n.thedef.defun,u=a.find_variable(o)||t.globals.get(o)||a.def_variable(n);return i.forEach(function(t){t.thedef=u,t.reference(e)}),n.thedef=u,!0}})),e.cache&&(this.cname=e.cache.cname)}),we.DEFMETHOD("def_global",function(e){var t=this.globals,n=e.name;if(t.has(n))return t.get(n);var r=new H(this,t.size(),e);return r.undeclared=!0,r.global=!0,t.set(n,r),r}),_e.DEFMETHOD("init_scope_vars",function(e){this.variables=new A,this.functions=new A,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=e,this.enclosed=[],this.cname=-1}),Ae.DEFMETHOD("init_scope_vars",function(){_e.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new pt({name:"arguments",start:this.start,end:this.end}))}),st.DEFMETHOD("mark_enclosed",function(e){for(var t=this.definition(),n=this.scope;n&&(g(n.enclosed,t),e.keep_fnames&&n.functions.each(function(e){g(t.scope.enclosed,e)}),n!==t.scope);)n=n.parent_scope}),st.DEFMETHOD("reference",function(e){this.definition().references.push(this),this.mark_enclosed(e)}),_e.DEFMETHOD("find_variable",function(e){return e instanceof st&&(e=e.name),this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)}),_e.DEFMETHOD("def_function",function(e){this.functions.set(e.name,this.def_variable(e))}),_e.DEFMETHOD("def_variable",function(e){var t;return this.variables.has(e.name)?(t=this.variables.get(e.name)).orig.push(e):(t=new H(this,this.variables.size(),e),this.variables.set(e.name,t),t.global=!this.parent_scope),e.thedef=t}),_e.DEFMETHOD("next_mangled",function(e){var t=this.enclosed;e:for(;;){var n=Jt(++this.cname);if(L(n)&&!(e.reserved.indexOf(n)>=0)){for(var r=t.length;--r>=0;){var o=t[r];if(n==(o.mangled_name||o.unmangleable(e)&&o.name))continue e}return n}}}),xe.DEFMETHOD("next_mangled",function(e,t){for(var n=t.orig[0]instanceof pt&&this.name&&this.name.definition(),r=n?n.mangled_name||n.name:null;;){var o=Ae.prototype.next_mangled.call(this,e,t);if(!r||r!=o)return o}}),st.DEFMETHOD("unmangleable",function(e){return this.definition().unmangleable(e)}),gt.DEFMETHOD("unmangleable",function(){return!1}),st.DEFMETHOD("unreferenced",function(){return 0==this.definition().references.length&&!(this.scope.uses_eval||this.scope.uses_with)}),st.DEFMETHOD("undeclared",function(){return this.definition().undeclared}),bt.DEFMETHOD("undeclared",function(){return!1}),gt.DEFMETHOD("undeclared",function(){return!1}),st.DEFMETHOD("definition",function(){return this.thedef}),st.DEFMETHOD("global",function(){return this.definition().global}),we.DEFMETHOD("_default_mangler_options",function(e){return l(e,{eval:!1,ie8:!1,keep_fnames:!1,reserved:[],toplevel:!1})}),we.DEFMETHOD("mangle_names",function(e){(e=this._default_mangler_options(e)).reserved.push("arguments");var t=-1,n=[];e.cache&&this.globals.each(function(t){e.reserved.indexOf(t.name)<0&&n.push(t)});var r=new O(function(o,i){if(o instanceof pe){var a=t;return i(),t=a,!0}if(o instanceof _e){r.parent();var u=[];return o.variables.each(function(t){e.reserved.indexOf(t.name)<0&&u.push(t)}),void n.push.apply(n,u)}if(o instanceof gt){var s;do{s=Jt(++t)}while(!L(s));return o.mangled_name=s,!0}!e.ie8&&o instanceof mt&&n.push(o.definition())});this.walk(r),n.forEach(function(t){t.mangle(e)}),e.cache&&(e.cache.cname=this.cname)}),we.DEFMETHOD("compute_char_frequency",function(e){e=this._default_mangler_options(e);var t=new O(function(t){t instanceof _t?Jt.consider(t.print_to_string()):t instanceof Be?Jt.consider("return"):t instanceof Se?Jt.consider("throw"):t instanceof Re?Jt.consider("continue"):t instanceof Te?Jt.consider("break"):t instanceof ie?Jt.consider("debugger"):t instanceof ae?Jt.consider(t.value):t instanceof ge?Jt.consider("while"):t instanceof me?Jt.consider("do while"):t instanceof Fe?(Jt.consider("if"),t.alternative&&Jt.consider("else")):t instanceof je?Jt.consider("var"):t instanceof Ae?Jt.consider("function"):t instanceof ve?Jt.consider("for"):t instanceof be?Jt.consider("for in"):t instanceof Le?Jt.consider("switch"):t instanceof Ue?Jt.consider("case"):t instanceof Pe?Jt.consider("default"):t instanceof ye?Jt.consider("with"):t instanceof at?Jt.consider("set"+t.key):t instanceof ut?Jt.consider("get"+t.key):t instanceof it?Jt.consider(t.key):t instanceof He?Jt.consider("new"):t instanceof yt?Jt.consider("this"):t instanceof Ne?Jt.consider("try"):t instanceof qe?Jt.consider("catch"):t instanceof ze?Jt.consider("finally"):t instanceof st&&t.unmangleable(e)?Jt.consider(t.name):t instanceof Qe||t instanceof Xe?Jt.consider(t.operator):t instanceof Ge&&Jt.consider(t.property)});this.walk(t),Jt.sort()});var Jt=function(){function e(){r=Object.create(null),(n=o.split("").map(function(e){return e.charCodeAt(0)})).forEach(function(e){r[e]=0})}function t(e){var t="",r=54;e++;do{e--,t+=String.fromCharCode(n[e%r]),e=Math.floor(e/r),r=64}while(e>0);return t}var n,r,o="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";return t.consider=function(e){for(var t=e.length;--t>=0;){var n=e.charCodeAt(t);n in r&&++r[n]}},t.sort=function(){n=y(n,function(e,t){return S(e)&&!S(t)?1:S(t)&&!S(e)?-1:r[t]-r[e]})},t.reset=e,e(),t.get=function(){return n},t.freq=function(){return r},t}(),Xt=/^$|[;{][\s\n]*$/;!function(){function e(e,t){e.DEFMETHOD("_codegen",t)}function t(e,n){Array.isArray(e)?e.forEach(function(e){t(e,n)}):e.DEFMETHOD("needs_parens",n)}function n(e,t,n,r){var o=e.length-1;m=r,e.forEach(function(e,r){!0!==m||e instanceof ae||e instanceof ce||e instanceof ue&&e.body instanceof wt||(m=!1),e instanceof ce||(n.indent(),e.print(n),r==o&&t||(n.newline(),t&&n.newline())),!0===m&&e instanceof ue&&e.body instanceof wt&&(m=!1)}),m=!1}function r(e,t,r){e.length>0?t.with_block(function(){n(e,!1,t,r)}):t.print("{}")}function o(e,t){var n=e.body;if(t.option("bracketize")||t.option("ie8")&&n instanceof me)return c(n,t);if(!n)return t.force_semicolon();for(;;)if(n instanceof Fe){if(!n.alternative)return void c(e.body,t);n=n.alternative}else{if(!(n instanceof fe))break;n=n.body}a(e.body,t)}function i(e,t,n){if(n)try{e.walk(new O(function(e){if(e instanceof Xe&&"in"==e.operator)throw t})),e.print(t)}catch(n){if(n!==t)throw n;e.print(t,!0)}else e.print(t)}function a(e,t){t.option("bracketize")?c(e,t):!e||e instanceof ce?t.force_semicolon():e.print(t)}function u(e,t){return e.args.length>0||t.option("beautify")}function s(e){for(var t=e[0],n=t.length,r=1;r=0?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("."))),s(r)}function c(e,t){!e||e instanceof ce?t.print("{}"):e instanceof le?e.print(t):t.with_block(function(){t.indent(),e.print(t),t.newline()})}function p(e,t){e.DEFMETHOD("add_source_map",function(e){t(this,e)})}function h(e,t){t.add_mapping(e.start)}var d=!1,m=!1;re.DEFMETHOD("print",function(e,t){function n(){r.add_comments(e),r.add_source_map(e),o(r,e)}var r=this,o=r._codegen,i=d;r instanceof ae&&"use asm"==r.value&&e.parent()instanceof _e&&(d=!0),e.push_node(r),t||r.needs_parens(e)?e.with_parens(n):n(),e.pop_node(),r instanceof _e&&(d=i)}),re.DEFMETHOD("print_to_string",function(e){var t=Y(e);return e||(t._readonly=!0),this.print(t),t.get()}),re.DEFMETHOD("add_comments",function(e){if(!e._readonly){var t=this,n=t.start;if(n&&!n._comments_dumped){n._comments_dumped=!0;var r=n.comments_before||[];if(t instanceof Oe&&t.value&&t.value.walk(new O(function(e){if(e.start&&e.start.comments_before&&(r=r.concat(e.start.comments_before),e.start.comments_before=[]),e instanceof xe||e instanceof nt||e instanceof rt)return!0})),0==e.pos()){r.length>0&&e.option("shebang")&&"comment5"==r[0].type&&(e.print("#!"+r.shift().value+"\n"),e.indent());var o=e.option("preamble");o&&e.print(o.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}r=r.filter(e.comment_filter,t),!e.option("beautify")&&r.length>0&&/comment[134]/.test(r[0].type)&&0!==e.col()&&r[0].nlb&&e.print("\n"),r.forEach(function(t){/comment[134]/.test(t.type)?(e.print("//"+t.value+"\n"),e.indent()):"comment2"==t.type&&(e.print("/*"+t.value+"*/"),n.nlb?(e.print("\n"),e.indent()):e.space())})}}}),t(re,function(){return!1}),t(xe,function(e){if(x(e))return!0;if(e.option("wrap_iife")){var t=e.parent();return t instanceof $e&&t.expression===this}return!1}),t(rt,function(e){return x(e)}),t(Qe,function(e){var t=e.parent();return t instanceof Ye&&t.expression===this||t instanceof $e&&t.expression===this}),t(Ke,function(e){var t=e.parent();return t instanceof $e||t instanceof Qe||t instanceof Xe||t instanceof Ve||t instanceof Ye||t instanceof nt||t instanceof ot||t instanceof et}),t(Xe,function(e){var t=e.parent();if(t instanceof $e&&t.expression===this)return!0;if(t instanceof Qe)return!0;if(t instanceof Ye&&t.expression===this)return!0;if(t instanceof Xe){var n=t.operator,r=Qt[n],o=this.operator,i=Qt[o];if(r>i||r==i&&this===t.right)return!0}}),t(Ye,function(e){var t=e.parent();if(t instanceof He&&t.expression===this)try{this.walk(new O(function(e){if(e instanceof $e)throw t}))}catch(e){if(e!==t)throw e;return!0}}),t($e,function(e){var t,n=e.parent();return n instanceof He&&n.expression===this||this.expression instanceof xe&&n instanceof Ye&&n.expression===this&&(t=e.parent(1))instanceof tt&&t.left===n}),t(He,function(e){var t=e.parent();if(!u(this,e)&&(t instanceof Ye||t instanceof $e&&t.expression===this))return!0}),t(At,function(e){var t=e.parent();if(t instanceof Ye&&t.expression===this){var n=this.getValue();if(n<0||/^0/.test(l(n)))return!0}}),t([tt,et],function(e){var t=e.parent();return t instanceof Qe||(t instanceof Xe&&!(t instanceof tt)||(t instanceof $e&&t.expression===this||(t instanceof et&&t.condition===this||(t instanceof Ye&&t.expression===this||void 0))))}),e(ae,function(e,t){t.print_string(e.value,e.quote),t.semicolon()}),e(ie,function(e,t){t.print("debugger"),t.semicolon()}),fe.DEFMETHOD("_do_print_body",function(e){a(this.body,e)}),e(oe,function(e,t){e.body.print(t),t.semicolon()}),e(we,function(e,t){n(e.body,!0,t,!0),t.print("")}),e(pe,function(e,t){e.label.print(t),t.colon(),e.body.print(t)}),e(ue,function(e,t){e.body.print(t),t.semicolon()}),e(le,function(e,t){r(e.body,t)}),e(ce,function(e,t){t.semicolon()}),e(me,function(e,t){t.print("do"),t.space(),c(e.body,t),t.space(),t.print("while"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.semicolon()}),e(ge,function(e,t){t.print("while"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e._do_print_body(t)}),e(ve,function(e,t){t.print("for"),t.space(),t.with_parens(function(){e.init?(e.init instanceof Ie?e.init.print(t):i(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(be,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(ye,function(e,t){t.print("with"),t.space(),t.with_parens(function(){e.expression.print(t)}),t.space(),e._do_print_body(t)}),Ae.DEFMETHOD("_do_print",function(e,t){var n=this;t||e.print("function"),n.name&&(e.space(),n.name.print(e)),e.with_parens(function(){n.argnames.forEach(function(t,n){n&&e.comma(),t.print(e)})}),e.space(),r(n.body,e,!0)}),e(Ae,function(e,t){e._do_print(t)}),Oe.DEFMETHOD("_do_print",function(e,t){e.print(t),this.value&&(e.space(),this.value.print(e)),e.semicolon()}),e(Be,function(e,t){e._do_print(t,"return")}),e(Se,function(e,t){e._do_print(t,"throw")}),De.DEFMETHOD("_do_print",function(e,t){e.print(t),this.label&&(e.space(),this.label.print(e)),e.semicolon()}),e(Te,function(e,t){e._do_print(t,"break")}),e(Re,function(e,t){e._do_print(t,"continue")}),e(Fe,function(e,t){t.print("if"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e.alternative?(o(e,t),t.space(),t.print("else"),t.space(),e.alternative instanceof Fe?e.alternative.print(t):a(e.alternative,t)):e._do_print_body(t)}),e(Le,function(e,t){t.print("switch"),t.space(),t.with_parens(function(){e.expression.print(t)}),t.space();var n=e.body.length-1;n<0?t.print("{}"):t.with_block(function(){e.body.forEach(function(e,r){t.indent(!0),e.print(t),r0&&t.newline()})})}),Me.DEFMETHOD("_do_print_body",function(e){e.newline(),this.body.forEach(function(t){e.indent(),t.print(e),e.newline()})}),e(Pe,function(e,t){t.print("default:"),e._do_print_body(t)}),e(Ue,function(e,t){t.print("case"),t.space(),e.expression.print(t),t.print(":"),e._do_print_body(t)}),e(Ne,function(e,t){t.print("try"),t.space(),r(e.body,t),e.bcatch&&(t.space(),e.bcatch.print(t)),e.bfinally&&(t.space(),e.bfinally.print(t))}),e(qe,function(e,t){t.print("catch"),t.space(),t.with_parens(function(){e.argname.print(t)}),t.space(),r(e.body,t)}),e(ze,function(e,t){t.print("finally"),t.space(),r(e.body,t)}),Ie.DEFMETHOD("_do_print",function(e,t){e.print(t),e.space(),this.definitions.forEach(function(t,n){n&&e.comma(),t.print(e)});var n=e.parent();(n instanceof ve||n instanceof be)&&n.init===this||e.semicolon()}),e(je,function(e,t){e._do_print(t,"var")}),e(Ve,function(e,t){if(e.name.print(t),e.value){t.space(),t.print("="),t.space();var n=t.parent(1),r=n instanceof ve||n instanceof be;i(e.value,t,r)}}),e($e,function(e,t){e.expression.print(t),e instanceof He&&!u(e,t)||t.with_parens(function(){e.args.forEach(function(e,n){n&&t.comma(),e.print(t)})})}),e(He,function(e,t){t.print("new"),t.space(),$e.prototype._codegen(e,t)}),Ke.DEFMETHOD("_do_print",function(e){this.expressions.forEach(function(t,n){n>0&&(e.comma(),e.should_break()&&(e.newline(),e.indent())),t.print(e)})}),e(Ke,function(e,t){e._do_print(t)}),e(Ge,function(e,t){var n=e.expression;n.print(t),n instanceof At&&n.getValue()>=0&&(/[xa-f.)]/i.test(t.last())||t.print(".")),t.print("."),t.add_mapping(e.end),t.print_name(e.property)}),e(We,function(e,t){e.expression.print(t),t.print("["),e.property.print(t),t.print("]")}),e(Ze,function(e,t){var n=e.operator;t.print(n),(/^[a-z]/i.test(n)||/[+-]$/.test(n)&&e.expression instanceof Ze&&/^[+-]/.test(e.expression.operator))&&t.space(),e.expression.print(t)}),e(Je,function(e,t){e.expression.print(t),t.print(e.operator)}),e(Xe,function(e,t){var n=e.operator;e.left.print(t),">"==n[0]&&e.left instanceof Je&&"--"==e.left.operator?t.print(" "):t.space(),t.print(n),("<"==n||"<<"==n)&&e.right instanceof Ze&&"!"==e.right.operator&&e.right.expression instanceof Ze&&"--"==e.right.expression.operator?t.print(" "):t.space(),e.right.print(t)}),e(et,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(nt,function(e,t){t.with_square(function(){var n=e.elements,r=n.length;r>0&&t.space(),n.forEach(function(e,n){n&&t.comma(),e.print(t),n===r-1&&e instanceof Bt&&t.comma()}),r>0&&t.space()})}),e(rt,function(e,t){e.properties.length>0?t.with_block(function(){e.properties.forEach(function(e,n){n&&(t.print(","),t.newline()),t.indent(),e.print(t)}),t.newline()}):t.print("{}")}),e(it,function(e,t){var n=e.key,r=e.quote;t.option("quote_keys")?t.print_string(n+""):("number"==typeof n||!t.option("beautify")&&+n+""==n)&&parseFloat(n)>=0?t.print(l(n)):(Mt(n)?!t.option("ie8"):U(n))?r&&t.option("keep_quoted_props")?t.print_string(n,r):t.print_name(n):t.print_string(n,r),t.colon(),e.value.print(t)}),e(at,function(e,t){t.print("set"),t.space(),e.key.print(t),e.value._do_print(t,!0)}),e(ut,function(e,t){t.print("get"),t.space(),e.key.print(t),e.value._do_print(t,!0)}),e(st,function(e,t){var n=e.definition();t.print_name(n?n.mangled_name||n.name:e.name)}),e(Bt,f),e(yt,function(e,t){t.print("this")}),e(_t,function(e,t){t.print(e.getValue())}),e(wt,function(e,t){t.print_string(e.getValue(),e.quote,m)}),e(At,function(e,t){d&&e.start&&null!=e.start.raw?t.print(e.start.raw):t.print(l(e.getValue()))}),e(Et,function(e,t){var n=e.getValue(),r=n.toString();n.raw_source&&(r="/"+n.raw_source+r.slice(r.lastIndexOf("/"))),t.option("ascii_only")&&(r=t.to_ascii(r)),t.print(r);var o=t.parent();o instanceof Xe&&/^in/.test(o.operator)&&o.left===e&&t.print(" ")}),p(re,f),p(ae,h),p(ie,h),p(st,h),p(ke,h),p(fe,h),p(pe,f),p(Ae,h),p(Le,h),p(Me,h),p(le,h),p(we,f),p(He,h),p(Ne,h),p(qe,h),p(ze,h),p(Ie,h),p(_t,h),p(at,function(e,t){t.add_mapping(e.start,e.key.name)}),p(ut,function(e,t){t.add_mapping(e.start,e.key.name)}),p(ot,function(e,t){t.add_mapping(e.start,e.key)})}(),G.prototype=new $,c(G.prototype,{option:function(e){return this.options[e]},toplevel:function(e){for(var t=0,n=e.orig.length;t0||this.option("reduce_vars"))&&e.reset_opt_flags(this,!0),e=e.transform(this);return this.option("expression")&&e.process_expression(!1),e},info:function(){"verbose"==this.options.warnings&&re.warn.apply(re,arguments)},warn:function(e,t){if(this.options.warnings){var n=v(e,t);n in this.warnings_produced||(this.warnings_produced[n]=!0,re.warn.apply(re,arguments))}},clear_warnings:function(){this.warnings_produced={}},before:function(e,t,n){if(e._squeezed)return e;var r=!1;e instanceof _e&&(e=e.hoist_declarations(this),r=!0),t(e,this),t(e,this);var o=e.optimize(this);return r&&o instanceof _e&&(o.drop_unused(this),t(o,this)),o===e&&(o._squeezed=!0),o}}),function(){function e(e,t){e.DEFMETHOD("optimize",function(e){var n=this;if(n._optimized)return n;if(e.has_directive("use asm"))return n;var r=t(n,e);return r._optimized=!0,r})}function t(e){return e instanceof vt&&e.definition().orig[0]instanceof dt}function n(e,t){for(var n,r=0;(n=e.parent(r++))&&!(n instanceof _e);)if(n instanceof qe){n=n.argname.definition().scope;break}return n.find_variable(t)}function r(e,t,n){return n||(n={}),t&&(n.start||(n.start=t.start),n.end||(n.end=t.end)),new e(n)}function a(e,t){return 1==t.length?t[0]:r(Ke,e,{expressions:t})}function u(e,t){switch(typeof e){case"string":return r(wt,t,{value:e});case"number":return isNaN(e)?r(kt,t):isFinite(e)?1/e<0?r(Ze,t,{operator:"-",expression:r(At,t,{value:-e})}):r(At,t,{value:e}):e<0?r(Ze,t,{operator:"-",expression:r(St,t)}):r(St,t);case"boolean":return r(e?Rt:Tt,t);case"undefined":return r(Ot,t);default:if(null===e)return r(Ct,t,{value:null});if(e instanceof RegExp)return r(Et,t,{value:e});throw new Error(v("Can't handle constant of type: {type}",{type:typeof e}))}}function s(e,t,n){return e instanceof Ze&&"delete"==e.operator||e instanceof $e&&e.expression===t&&(n instanceof Ye||n instanceof vt&&"eval"==n.name)?a(t,[r(At,t,{value:0}),n]):n}function l(e,t){t instanceof Ke?e.push.apply(e,t.expressions):e.push(t)}function c(e){if(null===e)return[];if(e instanceof le)return e.body;if(e instanceof ce)return[];if(e instanceof oe)return[e];throw new Error("Can't convert thing to statement array")}function g(e){return null===e||(e instanceof ce||e instanceof le&&0==e.body.length)}function y(e){return e instanceof Le?e:(e instanceof ve||e instanceof be||e instanceof de)&&e.body instanceof le?e.body:e}function C(e){return e instanceof $e&&!(e instanceof He)&&(e.expression instanceof xe||C(e.expression))}function B(e,n){function o(e){var t=[];return e.reduce(function(e,n){return n instanceof le?(u=!0,e.push.apply(e,o(n.body))):n instanceof ce?u=!0:n instanceof ae?t.indexOf(n.value)<0?(e.push(n),t.push(n.value)):u=!0:e.push(n),e},[])}function i(e,t){function n(e){o.pop();var n=i.body;return n instanceof Ke||(n=r(Ke,n,{expressions:[n]})),l(n.expressions,e),n.transform(t)}var o=[],i=null;return e.forEach(function(e){if(i)if(e instanceof ve)try{i.body.walk(new O(function(e){if(e instanceof Xe&&"in"==e.operator)throw n})),!e.init||e.init instanceof Ie?e.init||(e.init=i.body.drop_side_effect_free(t),o.pop()):e.init=n(e.init)}catch(e){if(e!==n)throw e}else e instanceof Fe?e.condition=n(e.condition):e instanceof ye?e.expression=n(e.expression):e instanceof Oe&&e.value?e.value=n(e.value):e instanceof Oe?e.value=n(r(Ot,e).transform(t)):e instanceof Le&&(e.expression=n(e.expression));o.push(e),i=e instanceof ue?e:null}),o}var u,f=10;do{u=!1,e=o(e),n.option("dead_code")&&(e=function(e,t){var n=!1,r=e.length,o=t.self();return e=e.reduce(function(e,r){if(n)D(t,r,e);else{if(r instanceof De){var i=t.loopcontrol_target(r);r instanceof Te&&!(i instanceof he)&&y(i)===o||r instanceof Re&&y(i)===o?r.label&&b(r.label.thedef.references,r):e.push(r)}else e.push(r);P(r)&&(n=!0)}return e},[]),u=e.length!=r,e}(e,n)),n.option("if_return")&&(e=function(e,t){var n=t.self(),o=function(e){for(var t=0,n=e.length;--n>=0;){var r=e[n];if(r instanceof Fe&&r.body instanceof Be&&++t>1)return!0}return!1}(e),i=n instanceof Ae,a=[];e:for(var s=e.length;--s>=0;){var l=e[s];switch(!0){case i&&l instanceof Be&&!l.value&&0==a.length:u=!0;continue e;case l instanceof Fe:if(l.body instanceof Be){var f=l.body.value;if((i&&0==a.length||a[0]instanceof Be&&!a[0].value)&&!f&&!l.alternative){u=!0;var p=r(ue,l.condition,{body:l.condition});a.unshift(p);continue e}if(a[0]instanceof Be&&f&&a[0].value&&!l.alternative){u=!0,(l=l.clone()).alternative=a[0],a[0]=l.transform(t);continue e}if(o&&(0==a.length||a[0]instanceof Be)&&f&&!l.alternative&&i){u=!0,(l=l.clone()).alternative=a[0]||r(Be,l,{value:null}),a[0]=l.transform(t);continue e}if(i&&(!f||f instanceof Ze&&"void"==f.operator)){u=!0,(l=l.clone()).condition=l.condition.negate(t);var h=S(g=c(l.alternative).concat(a));l.body=r(le,l,{body:g}),l.alternative=f?r(ue,f,{body:f.expression}):null,a=h.concat([l.transform(t)]);continue e}if(t.option("sequences")&&s>0&&e[s-1]instanceof Fe&&e[s-1].body instanceof Be&&1==a.length&&i&&a[0]instanceof ue&&!l.alternative){u=!0,a.push(r(Be,a[0],{value:null}).transform(t)),a.unshift(l);continue e}}var d=P(l.body),m=d instanceof De?t.loopcontrol_target(d):null;if(d&&(d instanceof Be&&!d.value&&i||d instanceof Re&&n===y(m)||d instanceof Te&&m instanceof le&&n===m)){d.label&&b(d.label.thedef.references,d),u=!0;var g=c(l.body).slice(0,-1);(l=l.clone()).condition=l.condition.negate(t),l.body=r(le,l,{body:c(l.alternative).concat(a)}),l.alternative=r(le,l,{body:g}),a=[l.transform(t)];continue e}m=(d=P(l.alternative))instanceof De?t.loopcontrol_target(d):null;if(d&&(d instanceof Be&&!d.value&&i||d instanceof Re&&n===y(m)||d instanceof Te&&m instanceof le&&n===m)){d.label&&b(d.label.thedef.references,d),u=!0,(l=l.clone()).body=r(le,l.body,{body:c(l.body).concat(a)}),l.alternative=r(le,l.alternative,{body:c(l.alternative).slice(0,-1)}),a=[l.transform(t)];continue e}a.unshift(l);break;default:a.unshift(l)}}return a}(e,n)),n.sequences_limit>0&&(e=function(e,t){function n(){if(o.length){var e=a(o[0],o);s.push(r(ue,e,{body:e})),o=[]}}if(e.length<2)return e;var o=[],s=[];return e.forEach(function(e){if(e instanceof ue){o.length>=t.sequences_limit&&n();var r=e.body;o.length>0&&(r=r.drop_side_effect_free(t)),r&&l(o,r)}else n(),s.push(e)}),n(),s=i(s,t),u=s.length!=e.length,s}(e,n)),n.option("join_vars")&&(e=function(e,t){var n=null;return e.reduce(function(e,t){return t instanceof Ie&&n&&n.TYPE==t.TYPE?(n.definitions=n.definitions.concat(t.definitions),u=!0):t instanceof ve&&n instanceof je&&(!t.init||t.init.TYPE==n.TYPE)?(u=!0,e.pop(),t.init?t.init.definitions=n.definitions.concat(t.init.definitions):t.init=n,e.push(t),n=t):(n=t,e.push(t)),e},[])}(e,n)),n.option("collapse_vars")&&(e=function(e,n){function o(e){e instanceof tt&&!e.left.has_side_effects(n)||e instanceof Qe&&("++"==e.operator||"--"==e.operator)?f.push(e):e instanceof Ke?e.expressions.forEach(o):e instanceof Ie?e.definitions.forEach(function(e){e.value&&f.push(e)}):e instanceof ue?o(e.body):e instanceof ve&&e.init&&o(e.init)}function i(e){for(;e instanceof Ye;)e=e.expression;return e}function a(e){return e instanceof Ve?e.value&&e.name:R(e.left,e)}function l(e){return 1==e.orig.length&&e.orig[0]instanceof ht||e.scope===c&&e.references.every(function(e){return e.scope===c})}var c=n.find_parent(_e);if(c.uses_eval||c.uses_with)return e;for(var f=[],p=e.length;--p>=0;)for(o(e[p]);f.length>0;){var h=f.pop(),d=function(e){if(!(e instanceof Ve))return e[e instanceof tt?"left":"expression"];var t=e.name.definition();return t.orig.length>1||1==t.references.length&&(!t.global||n.toplevel(t))?r(vt,e.name,e.name):void 0}(h);if(d&&!t(d)){var m=function(e){var t=Object.create(null);if(e instanceof Qe)return t;var n,r=new O(function(e,o){if(e instanceof _e){var a=n;return o(),n=a,!0}if(e instanceof vt||e instanceof Ye){var u=i(e);u instanceof vt&&(t[u.name]=t[u.name]||R(e,r.parent()))}});return e[e instanceof tt?"right":"value"].walk(r),t}(h);d instanceof vt&&(m[d.name]=!1);for(var g=function(e){return!(e instanceof Qe)&&e[e instanceof tt?"right":"value"].has_side_effects(n)}(h),v=!1,y=!1,_=!1,w=(new $(function(e,t){if(y)return e;{if(v){var o=w.parent();if(e instanceof tt&&"="!=e.operator&&d.equivalent_to(e.left)||e instanceof ie||e instanceof he&&!(e instanceof ve)||e instanceof vt&&e.undeclared()||e instanceof Ne||e instanceof ye||o instanceof ve&&e!==o.init)return y=!0,e;if(!(e instanceof ct)&&!R(e,o)&&d.equivalent_to(e)){if(u=_=y=!0,n.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 Je)return r(Ze,h,h);if(h instanceof Ve){var c=h.name.definition();return 1!=c.references.length||c.global&&!n.toplevel(c)?r(tt,h,{operator:"=",left:r(vt,h.name,h.name),right:h.value}):s(o,e,h.value)}return h}var f;return e instanceof $e||e instanceof Oe||e instanceof Ye||e instanceof vt&&(m[e.name]||g&&!l(e.definition()))||(f=a(e))&&i(f).name in m||o instanceof Xe&&("&&"==o.operator||"||"==o.operator)||o instanceof Ue||o instanceof et||o instanceof ve||o instanceof Fe?(e instanceof _e||t(e,w),y=!0,e):e instanceof Pe||e instanceof _e?e:void 0}if(e===h)return v=!0,e}})),A=p;!y&&A0);return e}function S(e){for(var t=[],n=e.length-1;n>=0;--n){var r=e[n];r instanceof Ce&&(e.splice(n,1),t.unshift(r))}return t}function D(e,t,n){t instanceof Ce||e.warn("Dropping unreachable code [{file}:{line},{col}]",t.start),t.walk(new O(function(t){return t instanceof Ie?(e.warn("Declarations in unreachable code! [{file}:{line},{col}]",t.start),t.remove_initializers(),n.push(t),!0):t instanceof Ce?(n.push(t),!0):t instanceof _e||void 0}))}function T(e,t){return e.is_undefined||e instanceof Ot||e instanceof Ze&&"void"==e.operator&&!e.expression.has_side_effects(t)}function R(e,t){return t instanceof Qe&&j(t.operator)?t.expression:t instanceof tt&&t.left===e?e:void 0}function F(e,t){return e.print_to_string().length>t.print_to_string().length?t:e}function L(e,t){return F(r(ue,e,{body:e}),r(ue,t,{body:t})).body}function M(e,t,n){return(x(e)?L:F)(t,n)}function P(e){return e&&e.aborts()}function N(e,t){function n(n){n=c(n),e.body instanceof le?(e.body=e.body.clone(),e.body.body=n.concat(e.body.body.slice(1)),e.body=e.body.transform(t)):e.body=r(le,e.body,{body:n}).transform(t),N(e,t)}var o=e.body instanceof le?e.body.body[0]:e.body;o instanceof Fe&&(o.body instanceof Te&&t.loopcontrol_target(o.body)===t.self()?(e.condition?e.condition=r(Xe,e.condition,{left:e.condition,operator:"&&",right:o.condition.negate(t)}):e.condition=o.condition.negate(t),n(o.alternative)):o.alternative instanceof Te&&t.loopcontrol_target(o.alternative)===t.self()&&(e.condition?e.condition=r(Xe,e.condition,{left:e.condition,operator:"&&",right:o.condition}):e.condition=o.condition,n(o.body)))}function z(e,t){return e instanceof vt||e.TYPE===t.TYPE}function I(e,t){return t.option("booleans")&&t.in_boolean_context()?M(t,e,a(e,[e,r(Rt,e)]).optimize(t)):e}e(re,function(e,t){return e}),re.DEFMETHOD("equivalent_to",function(e){return this.TYPE==e.TYPE&&this.print_to_string()==e.print_to_string()}),_e.DEFMETHOD("process_expression",function(e,t){var n=this,o=new $(function(i){if(e&&i instanceof ue)return r(Be,i,{value:i.body});if(!e&&i instanceof Be){if(t){var a=i.value&&i.value.drop_side_effect_free(t,!0);return a?r(ue,i,{body:a}):r(ce,i)}return r(ue,i,{body:i.value||r(Ze,i,{operator:"void",expression:r(At,i,{value:0})})})}if(i instanceof Ae&&i!==n)return i;if(i instanceof se){var u=i.body.length-1;u>=0&&(i.body[u]=i.body[u].transform(o))}return i instanceof Fe&&(i.body=i.body.transform(o),i.alternative&&(i.alternative=i.alternative.transform(o))),i instanceof ye&&(i.body=i.body.transform(o)),i});n.transform(o)}),re.DEFMETHOD("reset_opt_flags",function(e,t){function n(e,t){p[e.id]=t}function o(e){if(p[e.id]){if(null==e.fixed){var t=e.orig[0];if(t instanceof pt||"arguments"==t.name)return!1;e.fixed=r(Ot,t)}return!0}}function i(e,t){return!!E(p,e.id)&&(!!o(e)&&(!1!==e.fixed&&(!(null!=e.fixed&&(!t||e.references.length>0))&&!e.orig.some(function(e){return e instanceof ht||e instanceof dt}))))}function a(){p=Object.create(p)}function u(){p=Object.getPrototypeOf(p)}function s(t){t.escaped=!1,t.scope.uses_eval?t.fixed=!1:!t.global||e.toplevel(t)?t.fixed=void 0:t.fixed=!1,t.references=[],t.should_replace=void 0}function l(e){return e&&e.is_constant()||e instanceof Ae}function c(e,t,n){var r=d.parent(t);return!!(R(e,r)||!n&&r instanceof $e&&r.expression===e)||(r instanceof Ye&&r.expression===e?!n&&c(r,t+1):void 0)}var f=t&&e.option("reduce_vars"),p=Object.create(null),h=new O(function(e){if(e instanceof st){var t=e.definition();e instanceof vt&&t.references.push(e),t.fixed=!1}}),d=new O(function(t,m){if(t._squeezed=!1,t._optimized=!1,f){if(t instanceof we&&t.globals.each(s),t instanceof _e&&t.variables.each(s),t instanceof vt)if((v=t.definition()).references.push(t),void 0===v.fixed||!o(v)||c(t,0,l(t.fixed_value())))v.fixed=!1;else{var g=d.parent();(g instanceof tt&&"="==g.operator&&t===g.right||g instanceof $e&&t!==g.expression||g instanceof Be&&t===g.value&&t.scope!==v.scope||g instanceof Ve&&t===g.value)&&(v.escaped=!0)}if(t instanceof mt&&(t.definition().fixed=!1),t instanceof Ve){if(void 0===(v=t.name.definition()).fixed||i(v,t.value))return t.value?(v.fixed=function(){return t.value},n(v,!1),m()):v.fixed=null,n(v,!0),!0;t.value&&(v.fixed=!1)}if(t instanceof tt&&"="==t.operator&&t.left instanceof vt&&i(v=t.left.definition(),t.right))return v.references.push(t.left),v.fixed=function(){return t.right},n(v,!1),t.right.walk(d),n(v,!0),!0;if(t instanceof Ce){var v=t.name.definition();v.global&&!e.toplevel(v)||o(v)?v.fixed=!1:(v.fixed=t,n(v,!0));y=p;return p=Object.create(null),m(),p=y,!0}if(t instanceof xe){a();var b;return!t.name&&(b=d.parent())instanceof $e&&b.expression===t&&t.argnames.forEach(function(e,o){var i=e.definition();t.uses_arguments||void 0!==i.fixed?i.fixed=!1:(i.fixed=function(){return b.args[o]||r(Ot,b)},n(i,!0))}),m(),u(),!0}if(t instanceof Ee){var y=p;return p=Object.create(null),m(),p=y,!0}if(t instanceof Xe&&("&&"==t.operator||"||"==t.operator))return t.left.walk(d),a(),t.right.walk(d),u(),!0;if(t instanceof et)return t.condition.walk(d),a(),t.consequent.walk(d),u(),a(),t.alternative.walk(d),u(),!0;if(t instanceof Fe)return t.condition.walk(d),a(),t.body.walk(d),u(),t.alternative&&(a(),t.alternative.walk(d),u()),!0;if(t instanceof de)return a(),t.condition.walk(d),t.body.walk(d),u(),!0;if(t instanceof pe)return a(),t.body.walk(d),u(),!0;if(t instanceof ve)return t.init&&t.init.walk(d),t.condition&&(a(),t.condition.walk(d),u()),a(),t.body.walk(d),u(),t.step&&(a(),t.step.walk(d),u()),!0;if(t instanceof be)return t.init.walk(h),t.object.walk(d),a(),t.body.walk(d),u(),!0;if(t instanceof Ne)return a(),k(t,d),u(),t.bcatch&&(a(),t.bcatch.walk(d),u()),t.bfinally&&t.bfinally.walk(d),!0;if(t instanceof Me)return a(),m(),u(),!0}});this.walk(d)}),vt.DEFMETHOD("fixed_value",function(){var e=this.definition().fixed;return!e||e instanceof re?e:e()}),function(e){function t(e){return/strict/.test(e)}re.DEFMETHOD("may_throw_on_access",function(e){var t=e.option("pure_getters");return!t||this._throw_on_access(t)}),e(re,t),e(Ct,h),e(Ot,h),e(_t,p),e(nt,p),e(rt,function(e){if(!t(e))return!1;for(var n=this.properties.length;--n>=0;)if(this.properties[n].value instanceof Ee)return!0;return!1}),e(xe,p),e(Je,p),e(Ze,function(){return"void"==this.operator}),e(Xe,function(e){switch(this.operator){case"&&":return this.left._throw_on_access(e);case"||":return this.left._throw_on_access(e)&&this.right._throw_on_access(e);default:return!1}}),e(tt,function(e){return"="==this.operator&&this.right._throw_on_access(e)}),e(et,function(e){return this.consequent._throw_on_access(e)||this.alternative._throw_on_access(e)}),e(Ke,function(e){return this.expressions[this.expressions.length-1]._throw_on_access(e)}),e(vt,function(e){if(this.is_undefined)return!0;if(!t(e))return!1;var n=this.fixed_value();return!n||n._throw_on_access(e)})}(function(e,t){e.DEFMETHOD("_throw_on_access",t)}),function(e){var t=["!","delete"],n=["in","instanceof","==","!=","===","!==","<","<=",">=",">"];e(re,p),e(Ze,function(){return o(this.operator,t)}),e(Xe,function(){return o(this.operator,n)||("&&"==this.operator||"||"==this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),e(et,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),e(tt,function(){return"="==this.operator&&this.right.is_boolean()}),e(Ke,function(){return this.expressions[this.expressions.length-1].is_boolean()}),e(Rt,h),e(Tt,h)}(function(e,t){e.DEFMETHOD("is_boolean",t)}),function(e){e(re,p),e(At,h);var t=_("+ - ~ ++ --");e(Qe,function(){return t(this.operator)});var n=_("- * / % & | ^ << >> >>>");e(Xe,function(e){return n(this.operator)||"+"==this.operator&&this.left.is_number(e)&&this.right.is_number(e)}),e(tt,function(e){return n(this.operator.slice(0,-1))||"="==this.operator&&this.right.is_number(e)}),e(Ke,function(e){return this.expressions[this.expressions.length-1].is_number(e)}),e(et,function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)})}(function(e,t){e.DEFMETHOD("is_number",t)}),function(e){e(re,p),e(wt,h),e(Ze,function(){return"typeof"==this.operator}),e(Xe,function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))}),e(tt,function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)}),e(Ke,function(e){return this.expressions[this.expressions.length-1].is_string(e)}),e(et,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)})}(function(e,t){e.DEFMETHOD("is_string",t)});var j=_("delete ++ --");!function(e){function t(e,n){if(e instanceof re)return r(e.CTOR,n,e);if(Array.isArray(e))return r(nt,n,{elements:e.map(function(e){return t(e,n)})});if(e&&"object"==typeof e){var o=[];for(var i in e)o.push(r(it,n,{key:i,value:t(e[i],n)}));return r(rt,n,{properties:o})}return u(e,n)}re.DEFMETHOD("resolve_defines",function(e){if(e.option("global_defs")){var t=this._find_defs(e,"");if(t){var n,r=this,o=0;do{n=r,r=e.parent(o++)}while(r instanceof Ye&&r.expression===n);if(!R(n,r))return t;e.warn("global_defs "+this.print_to_string()+" redefined [{file}:{line},{col}]",this.start)}}}),e(re,f),e(Ge,function(e,t){return this.expression._find_defs(e,"."+this.property+t)}),e(vt,function(e,n){if(this.global()){var r,o=e.option("global_defs");if(o&&E(o,r=this.name+n)){var i=t(o[r],this),a=e.find_parent(we);return i.walk(new O(function(e){e instanceof vt&&(e.scope=a,e.thedef=a.def_global(e))})),i}}})}(function(e,t){e.DEFMETHOD("_find_defs",t)}),function(e){function t(e,t){if(!t)throw new Error("Compressor must be passed");return e._eval(t)}re.DEFMETHOD("evaluate",function(t){if(!t.option("evaluate"))return this;try{var n=this._eval(t);return!n||n instanceof RegExp||"object"!=typeof n?n:this}catch(t){if(t!==e)throw t;return this}});var n=_("! ~ - + void");re.DEFMETHOD("is_constant",function(){return this instanceof _t?!(this instanceof Et):this instanceof Ze&&this.expression instanceof _t&&n(this.operator)}),re.DEFMETHOD("constant_value",function(e){if(this instanceof _t&&!(this instanceof Et))return this.value;if(this instanceof Ze&&this.expression instanceof _t)switch(this.operator){case"!":return!this.expression.value;case"~":return~this.expression.value;case"-":return-this.expression.value;case"+":return+this.expression.value;default:throw new Error(v("Cannot evaluate unary expression {value}",{value:this.print_to_string()}))}var t=this.evaluate(e);if(t!==this)return t;throw new Error(v("Cannot evaluate constant [{file}:{line},{col}]",this.start))}),e(oe,function(){throw new Error(v("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),e(Ae,function(){throw e}),e(re,function(){throw e}),e(_t,function(){return this.getValue()}),e(nt,function(n){if(n.option("unsafe"))return this.elements.map(function(e){return t(e,n)});throw e}),e(rt,function(n){if(n.option("unsafe")){for(var r={},o=0,i=this.properties.length;o>":r=t(o,n)>>t(i,n);break;case">>>":r=t(o,n)>>>t(i,n);break;case"==":r=t(o,n)==t(i,n);break;case"===":r=t(o,n)===t(i,n);break;case"!=":r=t(o,n)!=t(i,n);break;case"!==":r=t(o,n)!==t(i,n);break;case"<":r=t(o,n)":r=t(o,n)>t(i,n);break;case">=":r=t(o,n)>=t(i,n);break;default:throw e}if(isNaN(r)&&n.find_parent(ye))throw e;return r}),e(et,function(e){return t(this.condition,e)?t(this.consequent,e):t(this.alternative,e)}),e(vt,function(n){if(!n.option("reduce_vars")||this._evaluating)throw e;this._evaluating=!0;try{var r=this.fixed_value();if(!r)throw e;var o=t(r,n);if(E(r,"_eval")||(r._eval=function(){return o}),o&&"object"==typeof o&&this.definition().escaped)throw e;return o}finally{this._evaluating=!1}}),e(Ye,function(n){if(n.option("unsafe")){var r=this.property;r instanceof re&&(r=t(r,n));var o=t(this.expression,n);if(o&&E(o,r))return o[r]}throw e})}(function(e,t){e.DEFMETHOD("_eval",t)}),function(e){function t(e){return r(Ze,e,{operator:"!",expression:e})}function n(e,n,o){var i=t(e);if(o){var a=r(ue,n,{body:n});return F(i,a)===a?n:i}return F(i,n)}e(re,function(){return t(this)}),e(oe,function(){throw new Error("Cannot negate a statement")}),e(xe,function(){return t(this)}),e(Ze,function(){return"!"==this.operator?this.expression:t(this)}),e(Ke,function(e){var t=this.expressions.slice();return t.push(t.pop().negate(e)),a(this,t)}),e(et,function(e,t){var r=this.clone();return r.consequent=r.consequent.negate(e),r.alternative=r.alternative.negate(e),n(this,r,t)}),e(Xe,function(e,r){var o=this.clone(),i=this.operator;if(e.option("unsafe_comps"))switch(i){case"<=":return o.operator=">",o;case"<":return o.operator=">=",o;case">=":return o.operator="<",o;case">":return o.operator="<=",o}switch(i){case"==":return o.operator="!=",o;case"!=":return o.operator="==",o;case"===":return o.operator="!==",o;case"!==":return o.operator="===",o;case"&&":return o.operator="||",o.left=o.left.negate(e,r),o.right=o.right.negate(e),n(this,o,r);case"||":return o.operator="&&",o.left=o.left.negate(e,r),o.right=o.right.negate(e),n(this,o,r)}return t(this)})}(function(e,t){e.DEFMETHOD("negate",function(e,n){return t.call(this,e,n)})}),$e.DEFMETHOD("has_pure_annotation",function(e){if(!e.option("side_effects"))return!1;if(void 0!==this.pure)return this.pure;var t,n,r=!1;return this.start&&(t=this.start.comments_before)&&t.length&&/[@#]__PURE__/.test((n=t[t.length-1]).value)&&(r=n),this.pure=r}),function(e){function t(e,t){for(var n=e.length;--n>=0;)if(e[n].has_side_effects(t))return!0;return!1}e(re,h),e(ce,p),e(_t,p),e(yt,p),e($e,function(e){if(!this.has_pure_annotation(e)&&e.pure_funcs(this))return!0;for(var t=this.args.length;--t>=0;)if(this.args[t].has_side_effects(e))return!0;return!1}),e(se,function(e){return t(this.body,e)}),e(Le,function(e){return this.expression.has_side_effects(e)||t(this.body,e)}),e(Ue,function(e){return this.expression.has_side_effects(e)||t(this.body,e)}),e(Ne,function(e){return t(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)}),e(Fe,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(pe,function(e){return this.body.has_side_effects(e)}),e(ue,function(e){return this.body.has_side_effects(e)}),e(Ce,h),e(xe,p),e(Xe,function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)}),e(tt,h),e(et,function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)}),e(Qe,function(e){return j(this.operator)||this.expression.has_side_effects(e)}),e(vt,function(e){return this.undeclared()}),e(ct,p),e(rt,function(e){return t(this.properties,e)}),e(ot,function(e){return this.value.has_side_effects(e)}),e(nt,function(e){return t(this.elements,e)}),e(Ge,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)}),e(We,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e)}),e(Ke,function(e){return this.expressions.some(function(t,n){return t.has_side_effects(e)})})}(function(e,t){e.DEFMETHOD("has_side_effects",t)}),function(e){function t(e){for(var t=e.length;--t>=0;)if(!e[t].is_constant_expression())return!1;return!0}e(re,p),e(_t,h),e(Qe,function(){return this.expression.is_constant_expression()}),e(Xe,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()}),e(nt,function(){return t(this.elements)}),e(rt,function(){return t(this.properties)}),e(ot,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 e>0&&P(this.body[e-1])}e(oe,m),e(ke,d),e(le,t),e(Me,t),e(Fe,function(){return this.alternative&&P(this.body)&&P(this.alternative)&&this})}(function(e,t){e.DEFMETHOD("aborts",t)}),e(ae,function(e,t){return t.has_directive(e.value)!==e?r(ce,e):e}),e(ie,function(e,t){return t.option("drop_debugger")?r(ce,e):e}),e(pe,function(e,t){return e.body instanceof Te&&t.loopcontrol_target(e.body)===e.body?r(ce,e):0==e.label.references.length?e.body:e}),e(se,function(e,t){return e.body=B(e.body,t),e}),e(le,function(e,t){switch(e.body=B(e.body,t),e.body.length){case 1:return e.body[0];case 0:return r(ce,e)}return e}),_e.DEFMETHOD("drop_unused",function(e){if(e.option("unused")&&!e.has_directive("use asm")){var t=this;if(!t.uses_eval&&!t.uses_with){var n=!(t instanceof we)||e.toplevel.funcs,o=!(t instanceof we)||e.toplevel.vars;if(n||o){var i=!/keep_assign/.test(e.option("unused")),u=[],c=Object.create(null);t instanceof we&&e.top_retain&&t.variables.each(function(t){!e.top_retain(t)||t.id in c||(c[t.id]=!0,u.push(t))});var f=new A,p=new A,h=this,d=new O(function(r,a){if(r!==t){if(r instanceof Ce)return n||h!==t||(s=r.name.definition()).id in c||(c[s.id]=!0,u.push(s)),p.add(r.name.name,r),!0;if(r instanceof Ie&&h===t)return r.definitions.forEach(function(t){var n=t.name.definition();t.name instanceof ft&&f.add(n.id,t),o||n.id in c||(c[n.id]=!0,u.push(n)),t.value&&(p.add(t.name.name,t.value),t.value.has_side_effects(e)&&t.value.walk(d))}),!0;if(i&&r instanceof tt&&"="==r.operator&&r.left instanceof vt&&h===t)return r.right.walk(d),!0;if(r instanceof vt){var s=r.definition();return s.id in c||(c[s.id]=!0,u.push(s)),!0}if(r instanceof _e){var l=h;return h=r,a(),h=l,!0}}});t.walk(d);for(var m=0;m1)||(u.name=null)),u instanceof Ae&&!(u instanceof Ee))for(var m=!e.option("keep_fargs"),y=u.argnames,_=y.length;--_>=0;){var w=y[_];w.definition().id in c?m=!1:(w.__unused=!0,m&&(y.pop(),e[w.unreferenced()?"warn":"info"]("Dropping unused function argument {name} [{file}:{line},{col}]",d(w))))}if(n&&u instanceof Ce&&u!==t)return u.name.definition().id in c?u:(e[u.name.unreferenced()?"warn":"info"]("Dropping unused function {name} [{file}:{line},{col}]",d(u.name)),r(ce,u));if(o&&u instanceof Ie&&!(v.parent()instanceof be&&v.parent().init===u)){var A=[],E=[],x=[],C=[];if(u.definitions.forEach(function(t){t.value&&(t.value=t.value.transform(v));var n=t.name.definition();if(n.id in c){if(t.name instanceof ft){var o=f.get(n.id);if(o.length>1&&!t.value)return e.warn("Dropping duplicated definition of variable {name} [{file}:{line},{col}]",d(t.name)),b(o,t),void b(n.orig,t.name)}t.value?(C.length>0&&(x.length>0?(l(C,t.value),t.value=a(t.value,C)):A.push(r(ue,u,{body:a(u,C)})),C=[]),x.push(t)):E.push(t)}else if(n.orig[0]instanceof mt)(i=t.value&&t.value.drop_side_effect_free(e))&&l(C,i),t.value=null,E.push(t);else{var i=t.value&&t.value.drop_side_effect_free(e);i?(e.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",d(t.name)),l(C,i)):e[t.name.unreferenced()?"warn":"info"]("Dropping unused variable {name} [{file}:{line},{col}]",d(t.name)),b(n.orig,t.name)}}),0==E.length&&1==x.length&&x[0].name instanceof ft){var k=f.get(x[0].name.definition().id);if(k.length>1){var O=x.pop();e.warn("Converting duplicated definition of variable {name} to assignment [{file}:{line},{col}]",d(O.name)),b(k,O),b(O.name.definition().orig,O.name),C.unshift(r(tt,O,{operator:"=",left:r(vt,O.name,O.name),right:O.value}))}}switch((E.length>0||x.length>0)&&(u.definitions=E.concat(x),A.push(u)),C.length>0&&A.push(r(ue,u,{body:a(u,C)})),A.length){case 0:return h?te.skip:r(ce,u);case 1:return A[0];default:return h?te.splice(A):r(le,u,{body:A})}}if(o&&i&&u instanceof tt&&"="==u.operator&&u.left instanceof vt&&!((O=u.left.definition()).id in c)&&t.variables.get(O.name)===O)return s(v.parent(),u,u.right.transform(v));if(u instanceof ve){if(p(u,this),u.init instanceof le){B=u.init;return u.init=B.body.pop(),B.body.push(u),h?te.splice(B.body):B}return u.init instanceof ue?u.init=u.init.body:g(u.init)&&(u.init=null),u}if(u instanceof pe&&u.body instanceof ve){if(p(u,this),u.body instanceof le){var B=u.body;return u.body=B.body.pop(),B.body.push(u),h?te.splice(B.body):B}return u}return u instanceof _e&&u!==t?u:void 0});t.transform(v)}}}}),_e.DEFMETHOD("hoist_declarations",function(e){var t=this;if(e.has_directive("use asm"))return t;var n=e.option("hoist_funs"),o=e.option("hoist_vars");if(n||o){var u=[],s=[],l=new A,c=0,f=0;t.walk(new O(function(e){return e instanceof _e&&e!==t||(e instanceof je?(++f,!0):void 0)})),o=o&&f>1;var p=new $(function(i){if(i!==t){if(i instanceof ae)return u.push(i),r(ce,i);if(i instanceof Ce&&n)return s.push(i),r(ce,i);if(i instanceof je&&o){i.definitions.forEach(function(e){l.set(e.name.name,e),++c});var a=i.to_assignments(e),f=p.parent();if(f instanceof be&&f.init===i){if(null==a){var h=i.definitions[0].name;return r(vt,h,h)}return a}return f instanceof ve&&f.init===i?a:a?r(ue,i,{body:a}):r(ce,i)}if(i instanceof _e)return i}});if(t=t.transform(p),c>0){var h=[];if(l.each(function(e,n){t instanceof Ae&&i(function(t){return t.name==e.name.name},t.argnames)?l.del(n):((e=e.clone()).value=null,h.push(e),l.set(n,e))}),h.length>0){for(;00&&(f[0].body=c.concat(f[0].body)),e.body=f;o=f[f.length-1];){var v=o.body[o.body.length-1];if(v instanceof Te&&t.loopcontrol_target(v)===e&&o.body.pop(),o.body.length||o instanceof Ue&&(s||o.expression.has_side_effects(t)))break;f.pop()===s&&(s=null)}if(0==f.length)return r(le,e,{body:c.concat(r(ue,e.expression,{body:e.expression}))}).optimize(t);if(1==f.length&&(f[0]===l||f[0]===s)){var b=!1,y=new O(function(t){if(b||t instanceof Ae||t instanceof ue)return!0;t instanceof Te&&y.loopcontrol_target(t)===e&&(b=!0)});if(e.walk(y),!b)return(f=f[0].body.slice()).unshift(r(ue,e.expression,{body:e.expression})),r(le,e,{body:f}).optimize(t)}return e}),e(Ne,function(e,t){if(e.body=B(e.body,t),e.bcatch&&e.bfinally&&w(e.bfinally.body,g)&&(e.bfinally=null),w(e.body,g)){var n=[];return e.bcatch&&D(t,e.bcatch,n),e.bfinally&&(n=n.concat(e.bfinally.body)),r(le,e,{body:n}).optimize(t)}return e}),Ie.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(e){e.value=null})}),Ie.DEFMETHOD("to_assignments",function(e){var t=e.option("reduce_vars"),n=this.definitions.reduce(function(e,n){if(n.value){var o=r(vt,n.name,n.name);e.push(r(tt,n,{operator:"=",left:o,right:n.value})),t&&(o.definition().fixed=!1)}return e},[]);return 0==n.length?null:a(this,n)}),e(Ie,function(e,t){return 0==e.definitions.length?r(ce,e):e}),e($e,function(e,t){var n=e.expression;if(t.option("reduce_vars")&&n instanceof vt){var o=n.definition(),i=n.fixed_value();i instanceof Ce&&(o.fixed=i=r(xe,i,i).clone(!0)),i instanceof xe&&(n=i,!t.option("unused")||1!=o.references.length||o.scope.uses_arguments&&o.orig[0]instanceof pt||o.scope.uses_eval||t.find_parent(_e)!==o.scope||(e.expression=n))}if(t.option("unused")&&n instanceof xe&&!n.uses_arguments&&!n.uses_eval){for(var s=0,l=0,c=0,f=e.args.length;c=n.argnames.length;if(p||n.argnames[c].__unused){if(k=e.args[c].drop_side_effect_free(t))e.args[s++]=k;else if(!p){e.args[s++]=r(At,e.args[c],{value:0});continue}}else e.args[s++]=e.args[c];l=s}e.args.length=l}if(t.option("unsafe"))if(n instanceof vt&&n.undeclared())switch(n.name){case"Array":if(1!=e.args.length)return r(nt,e,{elements:e.args}).optimize(t);break;case"Object":if(0==e.args.length)return r(rt,e,{properties:[]});break;case"String":if(0==e.args.length)return r(wt,e,{value:""});if(e.args.length<=1)return r(Xe,e,{left:e.args[0],operator:"+",right:r(wt,e,{value:""})}).optimize(t);break;case"Number":if(0==e.args.length)return r(At,e,{value:0});if(1==e.args.length)return r(Ze,e,{expression:e.args[0],operator:"+"}).optimize(t);case"Boolean":if(0==e.args.length)return r(Tt,e);if(1==e.args.length)return r(Ze,e,{expression:r(Ze,e,{expression:e.args[0],operator:"!"}),operator:"!"}).optimize(t);break;case"Function":if(0==e.args.length)return r(xe,e,{argnames:[],body:[]});if(w(e.args,function(e){return e instanceof wt}))try{var h=V(y="(function("+e.args.slice(0,-1).map(function(e){return e.value}).join(",")+"){"+e.args[e.args.length-1].value+"})()"),d={ie8:t.option("ie8")};h.figure_out_scope(d);var m=new G(t.options);(h=h.transform(m)).figure_out_scope(d),h.mangle_names();var v;try{h.walk(new O(function(e){if(e instanceof Ae)throw v=e,h}))}catch(e){if(e!==h)throw e}if(!v)return e;var b=v.argnames.map(function(t,n){return r(wt,e.args[n],{value:t.print_to_string()})}),y=Y();return le.prototype._codegen.call(v,v,y),y=y.toString().replace(/^\{|\}$/g,""),b.push(r(wt,e.args[e.args.length-1],{value:y})),e.args=b,e}catch(n){if(!(n instanceof q))throw console.log(n),n;t.warn("Error parsing code passed to new Function [{file}:{line},{col}]",e.args[e.args.length-1].start),t.warn(n.toString())}}else{if(n instanceof Ge&&"toString"==n.property&&0==e.args.length)return r(Xe,e,{left:r(wt,e,{value:""}),operator:"+",right:n.expression}).optimize(t);if(n instanceof Ge&&n.expression instanceof nt&&"join"==n.property){var _;if(!(e.args.length>0&&(_=e.args[0].evaluate(t))===e.args[0])){var A=[],E=[];if(n.expression.elements.forEach(function(n){var o=n.evaluate(t);o!==n?E.push(o):(E.length>0&&(A.push(r(wt,e,{value:E.join(_)})),E.length=0),A.push(n))}),E.length>0&&A.push(r(wt,e,{value:E.join(_)})),0==A.length)return r(wt,e,{value:""});if(1==A.length)return A[0].is_string(t)?A[0]:r(Xe,A[0],{operator:"+",left:r(wt,e,{value:""}),right:A[0]});if(""==_){var x;return x=A[0].is_string(t)||A[1].is_string(t)?A.shift():r(wt,e,{value:""}),A.reduce(function(e,t){return r(Xe,t,{operator:"+",left:e,right:t})},x).optimize(t)}var k=e.clone();return k.expression=k.expression.clone(),k.expression.expression=k.expression.expression.clone(),k.expression.expression.elements=A,M(t,e,k)}}else if(n instanceof Ge&&n.expression.is_string(t)&&"charAt"==n.property){var B=e.args[0],S=B?B.evaluate(t):0;if(S!==B)return r(We,n,{expression:n.expression,property:u(0|S,B||n)}).optimize(t)}}if(n instanceof xe){if(n.body[0]instanceof Be){var D=n.body[0].value;if(!D||D.is_constant_expression()){b=e.args.concat(D||r(Ot,e));return a(e,b).transform(t)}}if(t.option("side_effects")&&w(n.body,g)){b=e.args.concat(r(Ot,e));return a(e,b).transform(t)}}if(t.option("drop_console")&&n instanceof Ye){for(var T=n.expression;T.expression;)T=T.expression;if(T instanceof vt&&"console"==T.name&&T.undeclared())return r(Ot,e).optimize(t)}return t.option("negate_iife")&&t.parent()instanceof ue&&C(e)?e.negate(t,!0):e}),e(He,function(e,t){if(t.option("unsafe")){var n=e.expression;if(n instanceof vt&&n.undeclared())switch(n.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return r($e,e,e).transform(t)}}return e}),e(Ke,function(e,n){if(!n.option("side_effects"))return e;var o=[];!function(){var t=x(n),r=e.expressions.length-1;e.expressions.forEach(function(e,i){i0&&T(o[i],n);)i--;i0&&n.option("cascade")&&function(){for(var e=0,a=1;a<=i;a++){var u=o[e],s=o[a];if((u=u instanceof tt&&!u.left.has_side_effects(n)?u.left:u instanceof Qe&&("++"==u.operator||"--"==u.operator)?u.expression:null)&&!t(u))for(var l,c=null;;){if(s.equivalent_to(u)){var f=o[e];f instanceof Je&&(f=r(Ze,f,{operator:f.operator,expression:u})),c?(c[l]=f,o[e]=o[a]):o[e]=f;break}if(s instanceof Xe&&!(s instanceof tt))if(s.left.is_constant()){if("||"==s.operator||"&&"==s.operator){o[++e]=o[a];break}l="right"}else l="left";else{if(!(s instanceof $e||s instanceof Ye||s instanceof Qe&&!j(s.operator))){o[++e]=o[a];break}l="expression"}c=s,s=s[l]}else o[++e]=s}i=e,o.length=i+1}(),0==i?((e=s(n.parent(),e,o[0]))instanceof Ke||(e=e.optimize(n)),e):(e.expressions=o,e)}),Qe.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")&&this.expression instanceof Ke){var t=this.expression.expressions.slice(),n=this.clone();return n.expression=t.pop(),t.push(n),a(this,t).optimize(e)}return this}),e(Je,function(e,t){return e.lift_sequences(t)}),e(Ze,function(e,t){var n=e.expression;if("delete"==e.operator&&!(n instanceof vt||n instanceof Ye||n instanceof kt||n instanceof St||n instanceof Ot))return n instanceof Ke?((n=n.expressions.slice()).push(r(Rt,e)),a(e,n).optimize(t)):a(e,[n,r(Rt,e)]).optimize(t);var o=e.lift_sequences(t);if(o!==e)return o;if(t.option("side_effects")&&"void"==e.operator)return n=n.drop_side_effect_free(t),n?(e.expression=n,e):r(Ot,e).optimize(t);if(t.option("booleans")&&t.in_boolean_context())switch(e.operator){case"!":if(n instanceof Ze&&"!"==n.operator)return n.expression;n instanceof Xe&&(e=M(t,e,n.negate(t,x(t))));break;case"typeof":return t.warn("Boolean expression always true [{file}:{line},{col}]",e.start),(n instanceof vt?r(Rt,e):a(e,[n,r(Rt,e)])).optimize(t)}if("-"==e.operator&&n instanceof St&&(n=n.transform(t)),n instanceof Xe&&("+"==e.operator||"-"==e.operator)&&("*"==n.operator||"/"==n.operator||"%"==n.operator))return r(Xe,e,{operator:n.operator,left:r(Ze,n.left,{operator:e.operator,expression:n.left}),right:n.right});if("-"!=e.operator||!(n instanceof At||n instanceof St)){var i=e.evaluate(t);if(i!==e)return i=u(i,e).optimize(t),M(t,i,e)}return e}),Xe.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")){if(this.left instanceof Ke){var t=this.left.expressions.slice();return(i=this.clone()).left=t.pop(),t.push(i),a(this,t).optimize(e)}if(this.right instanceof Ke&&!this.left.has_side_effects(e)){for(var n="="==this.operator&&this.left instanceof vt,r=(t=this.right.expressions).length-1,o=0;o0){var i=this.clone();return i.right=a(this.right,t.slice(o)),(t=t.slice(0,o)).push(i),a(this,t).optimize(e)}}}return this});var H=_("== === != !== * & | ^");e(Xe,function(e,t){function n(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(t)&&!e.right.has_side_effects(t)}function o(t){if(n()){t&&(e.operator=t);var r=e.left;e.left=e.right,e.right=r}}if(H(e.operator)&&e.right.is_constant()&&!e.left.is_constant()&&(e.left instanceof Xe&&Qt[e.left.operator]>=Qt[e.operator]||o()),e=e.lift_sequences(t),t.option("comparisons"))switch(e.operator){case"===":case"!==":(e.left.is_string(t)&&e.right.is_string(t)||e.left.is_number(t)&&e.right.is_number(t)||e.left.is_boolean()&&e.right.is_boolean())&&(e.operator=e.operator.substr(0,2));case"==":case"!=":if(e.left instanceof wt&&"undefined"==e.left.value&&e.right instanceof Ze&&"typeof"==e.right.operator){var i=e.right.expression;(i instanceof vt?i.undeclared():i instanceof Ye&&t.option("ie8"))||(e.right=i,e.left=r(Ot,e.left).optimize(t),2==e.operator.length&&(e.operator+="="))}}if(t.option("booleans")&&"+"==e.operator&&t.in_boolean_context()){var l=e.left.evaluate(t),c=e.right.evaluate(t);if(l&&"string"==typeof l)return t.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),a(e,[e.right,r(Rt,e)]).optimize(t);if(c&&"string"==typeof c)return t.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),a(e,[e.left,r(Rt,e)]).optimize(t)}if(t.option("comparisons")&&e.is_boolean()){if(!(t.parent()instanceof Xe)||t.parent()instanceof tt){var f=r(Ze,e,{operator:"!",expression:e.negate(t,x(t))});e=M(t,e,f)}if(t.option("unsafe_comps"))switch(e.operator){case"<":o(">");break;case"<=":o(">=")}}if("+"==e.operator){if(e.right instanceof wt&&""==e.right.getValue()&&e.left.is_string(t))return e.left;if(e.left instanceof wt&&""==e.left.getValue()&&e.right.is_string(t))return e.right;if(e.left instanceof Xe&&"+"==e.left.operator&&e.left.left instanceof wt&&""==e.left.left.getValue()&&e.right.is_string(t))return e.left=e.left.right,e.transform(t)}if(t.option("evaluate")){switch(e.operator){case"&&":if(!(l=e.left.evaluate(t)))return t.warn("Condition left of && always false [{file}:{line},{col}]",e.start),s(t.parent(),e,e.left).optimize(t);if(l!==e.left)return t.warn("Condition left of && always true [{file}:{line},{col}]",e.start),s(t.parent(),e,e.right).optimize(t);if(t.option("booleans")&&t.in_boolean_context()){if(!(c=e.right.evaluate(t)))return t.warn("Boolean && always false [{file}:{line},{col}]",e.start),a(e,[e.left,r(Tt,e)]).optimize(t);if(c!==e.right)return t.warn("Dropping side-effect-free && in boolean context [{file}:{line},{col}]",e.start),e.left.optimize(t)}break;case"||":if(!(l=e.left.evaluate(t)))return t.warn("Condition left of || always false [{file}:{line},{col}]",e.start),s(t.parent(),e,e.right).optimize(t);if(l!==e.left)return t.warn("Condition left of || always true [{file}:{line},{col}]",e.start),s(t.parent(),e,e.left).optimize(t);if(t.option("booleans")&&t.in_boolean_context()){if(!(c=e.right.evaluate(t)))return t.warn("Dropping side-effect-free || in boolean context [{file}:{line},{col}]",e.start),e.left.optimize(t);if(c!==e.right)return t.warn("Boolean || always true [{file}:{line},{col}]",e.start),a(e,[e.left,r(Rt,e)]).optimize(t)}}var p=!0;switch(e.operator){case"+":if(e.left instanceof _t&&e.right instanceof Xe&&"+"==e.right.operator&&e.right.left instanceof _t&&e.right.is_string(t)&&(e=r(Xe,e,{operator:"+",left:r(wt,e.left,{value:""+e.left.getValue()+e.right.left.getValue(),start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof _t&&e.left instanceof Xe&&"+"==e.left.operator&&e.left.right instanceof _t&&e.left.is_string(t)&&(e=r(Xe,e,{operator:"+",left:e.left.left,right:r(wt,e.right,{value:""+e.left.right.getValue()+e.right.getValue(),start:e.left.right.start,end:e.right.end})})),e.left instanceof Xe&&"+"==e.left.operator&&e.left.is_string(t)&&e.left.right instanceof _t&&e.right instanceof Xe&&"+"==e.right.operator&&e.right.left instanceof _t&&e.right.is_string(t)&&(e=r(Xe,e,{operator:"+",left:r(Xe,e.left,{operator:"+",left:e.left.left,right:r(wt,e.left.right,{value:""+e.left.right.getValue()+e.right.left.getValue(),start:e.left.right.start,end:e.right.left.end})}),right:e.right.right})),e.right instanceof Ze&&"-"==e.right.operator&&e.left.is_number(t)){e=r(Xe,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof Ze&&"-"==e.left.operator&&n()&&e.right.is_number(t)){e=r(Xe,e,{operator:"-",left:e.right,right:e.left.expression});break}case"*":p=t.option("unsafe_math");case"&":case"|":case"^":if(e.left.is_number(t)&&e.right.is_number(t)&&n()&&!(e.left instanceof Xe&&e.left.operator!=e.operator&&Qt[e.left.operator]>=Qt[e.operator])){var h=r(Xe,e,{operator:e.operator,left:e.right,right:e.left});e=e.right instanceof _t&&!(e.left instanceof _t)?M(t,h,e):M(t,e,h)}p&&e.is_number(t)&&(e.right instanceof Xe&&e.right.operator==e.operator&&(e=r(Xe,e,{operator:e.operator,left:r(Xe,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof _t&&e.left instanceof Xe&&e.left.operator==e.operator&&(e.left.left instanceof _t?e=r(Xe,e,{operator:e.operator,left:r(Xe,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right}):e.left.right instanceof _t&&(e=r(Xe,e,{operator:e.operator,left:r(Xe,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left}))),e.left instanceof Xe&&e.left.operator==e.operator&&e.left.right instanceof _t&&e.right instanceof Xe&&e.right.operator==e.operator&&e.right.left instanceof _t&&(e=r(Xe,e,{operator:e.operator,left:r(Xe,e.left,{operator:e.operator,left:r(Xe,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})))}}if(e.right instanceof Xe&&e.right.operator==e.operator&&("&&"==e.operator||"||"==e.operator||"+"==e.operator&&(e.right.left.is_string(t)||e.left.is_string(t)&&e.right.right.is_string(t))))return e.left=r(Xe,e.left,{operator:e.operator,left:e.left,right:e.right.left}),e.right=e.right.right,e.transform(t);var d=e.evaluate(t);return d!==e?(d=u(d,e).optimize(t),M(t,d,e)):e}),e(vt,function(e,t){var n=e.resolve_defines(t);if(n)return n.optimize(t);if(!t.option("ie8")&&e.undeclared()&&(!e.scope.uses_with||!t.find_parent(ye)))switch(e.name){case"undefined":return r(Ot,e).optimize(t);case"NaN":return r(kt,e).optimize(t);case"Infinity":return r(St,e).optimize(t)}if(t.option("evaluate")&&t.option("reduce_vars")&&R(e,t.parent())!==e){var o=e.definition(),i=e.fixed_value();if(i){if(void 0===o.should_replace){var a=i.evaluate(t);if(a===i||!t.option("unsafe_regexp")&&a instanceof RegExp)o.should_replace=!1;else{var s,l=(a=u(a,i)).optimize(t).print_to_string().length;!function(e){var t;return e.walk(new O(function(e){if(e instanceof vt&&(t=!0),t)return!0})),t}(i)?(l=Math.min(l,i.print_to_string().length),s=function(){var e=F(a.optimize(t),i);return e===a||e===i?e.clone(!0):e}):s=function(){var e=a.optimize(t);return e===a?e.clone(!0):e};var c=o.name.length,f=0;!t.option("unused")||o.global&&!t.toplevel(o)||(f=(c+2+l)/o.references.length),o.should_replace=l<=c+f&&s}}if(o.should_replace)return o.should_replace()}}return e}),e(Ot,function(e,t){if(t.option("unsafe")){var o=n(t,"undefined");if(o){var i=r(vt,e,{name:"undefined",scope:o.scope,thedef:o});return i.is_undefined=!0,i}}var a=R(t.self(),t.parent());return a&&z(a,e)?e:r(Ze,e,{operator:"void",expression:r(At,e,{value:0})})}),e(St,function(e,t){var o=R(t.self(),t.parent());return o&&z(o,e)?e:!t.option("keep_infinity")||o&&!z(o,e)||n(t,"Infinity")?r(Xe,e,{operator:"/",left:r(At,e,{value:1}),right:r(At,e,{value:0})}):e}),e(kt,function(e,t){var o=R(t.self(),t.parent());return o&&!z(o,e)||n(t,"NaN")?r(Xe,e,{operator:"/",left:r(At,e,{value:0}),right:r(At,e,{value:0})}):e});var K=["+","-","/","*","%",">>","<<",">>>","|","^","&"],W=["*","|","^","&"];e(tt,function(e,t){return"="==(e=e.lift_sequences(t)).operator&&e.left instanceof vt&&e.right instanceof Xe&&(e.right.left instanceof vt&&e.right.left.name==e.left.name&&o(e.right.operator,K)?(e.operator=e.right.operator+"=",e.right=e.right.right):e.right.right instanceof vt&&e.right.right.name==e.left.name&&o(e.right.operator,W)&&!e.right.left.has_side_effects(t)&&(e.operator=e.right.operator+"=",e.right=e.right.left)),e}),e(et,function(e,t){function n(e){return e.is_boolean()?e:r(Ze,e,{operator:"!",expression:e.negate(t)})}function o(e){return e instanceof Rt||e instanceof Ze&&"!"==e.operator&&e.expression instanceof _t&&!e.expression.value}function i(e){return e instanceof Tt||e instanceof Ze&&"!"==e.operator&&e.expression instanceof _t&&!!e.expression.value}if(!t.option("conditionals"))return e;if(e.condition instanceof Ke){var u=e.condition.expressions.slice();return e.condition=u.pop(),u.push(e),a(e,u)}var l=e.condition.evaluate(t);if(l!==e.condition)return l?(t.warn("Condition always true [{file}:{line},{col}]",e.start),s(t.parent(),e,e.consequent)):(t.warn("Condition always false [{file}:{line},{col}]",e.start),s(t.parent(),e,e.alternative));var c=l.negate(t,x(t));M(t,l,c)===c&&(e=r(et,e,{condition:c,consequent:e.alternative,alternative:e.consequent}));var f=e.condition,p=e.consequent,h=e.alternative;return f instanceof vt&&p instanceof vt&&f.definition()===p.definition()?r(Xe,e,{operator:"||",left:f,right:h}):p instanceof tt&&h instanceof tt&&p.operator==h.operator&&p.left.equivalent_to(h.left)&&(!e.condition.has_side_effects(t)||"="==p.operator&&!p.left.has_side_effects(t))?r(tt,e,{operator:p.operator,left:p.left,right:r(et,e,{condition:e.condition,consequent:p.right,alternative:h.right})}):p instanceof $e&&h.TYPE===p.TYPE&&1==p.args.length&&1==h.args.length&&p.expression.equivalent_to(h.expression)&&!p.expression.has_side_effects(t)?(p.args[0]=r(et,e,{condition:e.condition,consequent:p.args[0],alternative:h.args[0]}),p):p instanceof et&&p.alternative.equivalent_to(h)?r(et,e,{condition:r(Xe,e,{left:e.condition,operator:"&&",right:p.condition}),consequent:p.consequent,alternative:h}):p.equivalent_to(h)?a(e,[e.condition,p]).optimize(t):o(e.consequent)?i(e.alternative)?n(e.condition):r(Xe,e,{operator:"||",left:n(e.condition),right:e.alternative}):i(e.consequent)?o(e.alternative)?n(e.condition.negate(t)):r(Xe,e,{operator:"&&",left:n(e.condition.negate(t)),right:e.alternative}):o(e.alternative)?r(Xe,e,{operator:"||",left:n(e.condition.negate(t)),right:e.consequent}):i(e.alternative)?r(Xe,e,{operator:"&&",left:n(e.condition),right:e.consequent}):e}),e(Dt,function(e,t){if(t.option("booleans")){var n=t.parent();return n instanceof Xe&&("=="==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}),r(At,e,{value:+e.value})):r(Ze,e,{operator:"!",expression:r(At,e,{value:1-e.value})})}return e}),e(We,function(e,t){var n=e.property;if(n instanceof wt&&t.option("properties")){if(n=n.getValue(),Mt(n)?!t.option("ie8"):U(n))return r(Ge,e,{expression:e.expression,property:n}).optimize(t);var o=parseFloat(n);isNaN(o)||o.toString()!=n||(e.property=r(At,e.property,{value:o}))}var i=e.evaluate(t);return i!==e?(i=u(i,e).optimize(t),M(t,i,e)):e}),e(Ge,function(e,t){var n=e.resolve_defines(t);if(n)return n.optimize(t);var o=e.property;if(Mt(o)&&t.option("ie8"))return r(We,e,{expression:e.expression,property:r(wt,e,{value:o})}).optimize(t);if(t.option("unsafe_proto")&&e.expression instanceof Ge&&"prototype"==e.expression.property){var i=e.expression.expression;if(i instanceof vt&&i.undeclared())switch(i.name){case"Array":e.expression=r(nt,e.expression,{elements:[]});break;case"Object":e.expression=r(rt,e.expression,{properties:[]});break;case"String":e.expression=r(wt,e.expression,{value:""})}}var a=e.evaluate(t);return a!==e?(a=u(a,e).optimize(t),M(t,a,e)):e}),e(nt,I),e(rt,I),e(Et,I),e(Be,function(e,t){return e.value&&T(e.value,t)&&(e.value=null),e}),e(Ve,function(e,t){var n=t.option("global_defs");return n&&E(n,e.name.name)&&t.warn("global_defs "+e.name.name+" redefined [{file}:{line},{col}]",e.start),e})}(),function(){function e(e){if("Literal"==e.type)return null!=e.raw?e.raw:e.value+""}function n(t){var n=t.loc,r=n&&n.start,o=t.range;return new ne({file:n&&n.source,line:r&&r.line,col:r&&r.column,pos:o?o[0]:t.start,endline:r&&r.line,endcol:r&&r.column,endpos:o?o[0]:t.start,raw:e(t)})}function r(t){var n=t.loc,r=n&&n.end,o=t.range;return new ne({file:n&&n.source,line:r&&r.line,col:r&&r.column,pos:o?o[1]:t.end,endline:r&&r.line,endcol:r&&r.column,endpos:o?o[1]:t.end,raw:e(t)})}function o(e,o,a){var f="function From_Moz_"+e+"(M){\n";f+="return new U2."+o.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var h="function To_Moz_"+e+"(M){\n";h+="return {\ntype: "+JSON.stringify(e),a&&a.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],o=t[3];switch(f+=",\n"+o+": ",h+=",\n"+n+": ",r){case"@":f+="M."+n+".map(from_moz)",h+="M."+o+".map(to_moz)";break;case">":f+="from_moz(M."+n+")",h+="to_moz(M."+o+")";break;case"=":f+="M."+n,h+="M."+o;break;case"%":f+="from_moz(M."+n+").body",h+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}}),f+="\n})\n}",h+="\n}\n}",f=new Function("U2","my_start_token","my_end_token","from_moz","return("+f+")")(t,n,r,i),h=new Function("to_moz","to_moz_block","to_moz_scope","return("+h+")")(s,l,c),p[e]=f,u(o,h)}function i(e){h.push(e);var t=null!=e?p[e.type](e):null;return h.pop(),t}function a(e,t,n){var r=e.start,o=e.end;return null!=r.pos&&null!=o.endpos&&(t.range=[r.pos,o.endpos]),r.line&&(t.loc={start:{line:r.line,column:r.col},end:o.endline?{line:o.endline,column:o.endcol}:null},r.file&&(t.loc.source=r.file)),t}function u(e,t){e.DEFMETHOD("to_mozilla_ast",function(){return a(this,t(this))})}function s(e){return null!=e?e.to_mozilla_ast():null}function l(e){return{type:"BlockStatement",body:e.body.map(s)}}function c(e,t){var n=t.body.map(s);return t.body[0]instanceof ue&&t.body[0].body instanceof wt&&n.unshift(s(new ce(t.body[0]))),{type:e,body:n}}var f=function(e){for(var t=!0,n=0;n1||e.guardedHandlers&&e.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new Ne({start:n(e),end:r(e),body:i(e.block).body,bcatch:i(t[0]),bfinally:e.finalizer?new ze(i(e.finalizer)):null})},Property:function(e){var t=e.key,o={start:n(t),end:r(e.value),key:"Identifier"==t.type?t.name:t.value,value:i(e.value)};return"init"==e.kind?new it(o):(o.key=new lt({name:o.key}),o.value=new Ee(o.value),"get"==e.kind?new ut(o):"set"==e.kind?new at(o):void 0)},ArrayExpression:function(e){return new nt({start:n(e),end:r(e),elements:e.elements.map(function(e){return null===e?new Bt:i(e)})})},ObjectExpression:function(e){return new rt({start:n(e),end:r(e),properties:e.properties.map(function(e){return e.type="Property",i(e)})})},SequenceExpression:function(e){return new Ke({start:n(e),end:r(e),expressions:e.expressions.map(i)})},MemberExpression:function(e){return new(e.computed?We:Ge)({start:n(e),end:r(e),property:e.computed?i(e.property):e.property.name,expression:i(e.object)})},SwitchCase:function(e){return new(e.test?Ue:Pe)({start:n(e),end:r(e),expression:i(e.test),body:e.consequent.map(i)})},VariableDeclaration:function(e){return new je({start:n(e),end:r(e),definitions:e.declarations.map(i)})},Literal:function(e){var t=e.value,o={start:n(e),end:r(e)};if(null===t)return new Ct(o);switch(typeof t){case"string":return o.value=t,new wt(o);case"number":return o.value=t,new At(o);case"boolean":return new(t?Rt:Tt)(o);default:var i=e.regex;return i&&i.pattern?o.value=new RegExp(i.pattern,i.flags).toString():o.value=e.regex&&e.raw?e.raw:t,new Et(o)}},Identifier:function(e){var t=h[h.length-2];return new("LabeledStatement"==t.type?gt:"VariableDeclarator"==t.type&&t.id===e?ft:"FunctionExpression"==t.type?t.id===e?dt:pt:"FunctionDeclaration"==t.type?t.id===e?ht:pt:"CatchClause"==t.type?mt:"BreakStatement"==t.type||"ContinueStatement"==t.type?bt:vt)({start:n(e),end:r(e),name:e.name})}};p.UpdateExpression=p.UnaryExpression=function(e){return new(("prefix"in e?e.prefix:"UnaryExpression"==e.type)?Ze:Je)({start:n(e),end:r(e),operator:e.operator,expression:i(e.argument)})},o("EmptyStatement",ce),o("BlockStatement",le,"body@body"),o("IfStatement",Fe,"test>condition, consequent>body, alternate>alternative"),o("LabeledStatement",pe,"label>label, body>body"),o("BreakStatement",Te,"label>label"),o("ContinueStatement",Re,"label>label"),o("WithStatement",ye,"object>expression, body>body"),o("SwitchStatement",Le,"discriminant>expression, cases@body"),o("ReturnStatement",Be,"argument>value"),o("ThrowStatement",Se,"argument>value"),o("WhileStatement",ge,"test>condition, body>body"),o("DoWhileStatement",me,"test>condition, body>body"),o("ForStatement",ve,"init>init, test>condition, update>step, body>body"),o("ForInStatement",be,"left>init, right>object, body>body"),o("DebuggerStatement",ie),o("VariableDeclarator",Ve,"id>name, init>value"),o("CatchClause",qe,"param>argname, body%body"),o("ThisExpression",yt),o("BinaryExpression",Xe,"operator=operator, left>left, right>right"),o("LogicalExpression",Xe,"operator=operator, left>left, right>right"),o("AssignmentExpression",tt,"operator=operator, left>left, right>right"),o("ConditionalExpression",et,"test>condition, consequent>consequent, alternate>alternative"),o("NewExpression",He,"callee>expression, arguments@args"),o("CallExpression",$e,"callee>expression, arguments@args"),u(we,function(e){return c("Program",e)}),u(Ce,function(e){return{type:"FunctionDeclaration",id:s(e.name),params:e.argnames.map(s),body:c("BlockStatement",e)}}),u(xe,function(e){return{type:"FunctionExpression",id:s(e.name),params:e.argnames.map(s),body:c("BlockStatement",e)}}),u(ae,function(e){return{type:"ExpressionStatement",expression:{type:"Literal",value:e.value}}}),u(ue,function(e){return{type:"ExpressionStatement",expression:s(e.body)}}),u(Me,function(e){return{type:"SwitchCase",test:s(e.expression),consequent:e.body.map(s)}}),u(Ne,function(e){return{type:"TryStatement",block:l(e),handler:s(e.bcatch),guardedHandlers:[],finalizer:s(e.bfinally)}}),u(qe,function(e){return{type:"CatchClause",param:s(e.argname),guard:null,body:l(e)}}),u(Ie,function(e){return{type:"VariableDeclaration",kind:"var",declarations:e.definitions.map(s)}}),u(Ke,function(e){return{type:"SequenceExpression",expressions:e.expressions.map(s)}}),u(Ye,function(e){var t=e instanceof We;return{type:"MemberExpression",object:s(e.expression),computed:t,property:t?s(e.property):{type:"Identifier",name:e.property}}}),u(Qe,function(e){return{type:"++"==e.operator||"--"==e.operator?"UpdateExpression":"UnaryExpression",operator:e.operator,prefix:e instanceof Ze,argument:s(e.expression)}}),u(Xe,function(e){return{type:"&&"==e.operator||"||"==e.operator?"LogicalExpression":"BinaryExpression",left:s(e.left),operator:e.operator,right:s(e.right)}}),u(nt,function(e){return{type:"ArrayExpression",elements:e.elements.map(s)}}),u(rt,function(e){return{type:"ObjectExpression",properties:e.properties.map(s)}}),u(ot,function(e){var t,n={type:"Literal",value:e.key instanceof lt?e.key.name:e.key};return e instanceof it?t="init":e instanceof ut?t="get":e instanceof at&&(t="set"),{type:"Property",kind:t,key:n,value:s(e.value)}}),u(st,function(e){var t=e.definition();return{type:"Identifier",name:t?t.mangled_name||t.name:e.name}}),u(Et,function(e){var t=e.value;return{type:"Literal",value:t,raw:t.toString(),regex:{pattern:t.source,flags:t.toString().match(/[gimuy]*$/)[0]}}}),u(_t,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}}),u(xt,function(e){return{type:"Identifier",name:String(e.value)}}),Dt.DEFMETHOD("to_mozilla_ast",_t.prototype.to_mozilla_ast),Ct.DEFMETHOD("to_mozilla_ast",_t.prototype.to_mozilla_ast),Bt.DEFMETHOD("to_mozilla_ast",function(){return null}),se.DEFMETHOD("to_mozilla_ast",le.prototype.to_mozilla_ast),Ae.DEFMETHOD("to_mozilla_ast",xe.prototype.to_mozilla_ast);var h=null;re.from_mozilla_ast=function(e){var t=h;h=[];var n=i(e);return h=t,n}}();var en="undefined"==typeof atob?function(t){return new e(t,"base64").toString()}:atob,tn="undefined"==typeof btoa?function(t){return new e(t).toString("base64")}:btoa;t.Dictionary=A,t.TreeWalker=O,t.TreeTransformer=$,t.minify=ee,t._push_uniq=g}(void 0===n?n={}:n)}).call(this,e("buffer").Buffer)},{buffer:5}]},{},["html-minifier"]); \ No newline at end of file +require=function e(t,n,r){function o(a,u){if(!n[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return o(n||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function o(e){return 3*e.length/4-r(e)}function i(e){var t,n,o,i,a,u,s=e.length;a=r(e),u=new f(3*s/4-a),o=a>0?s-4:s;var l=0;for(t=0,n=0;t>16&255,u[l++]=i>>8&255,u[l++]=255&i;return 2===a?(i=c[e.charCodeAt(t)]<<2|c[e.charCodeAt(t+1)]>>4,u[l++]=255&i):1===a&&(i=c[e.charCodeAt(t)]<<10|c[e.charCodeAt(t+1)]<<4|c[e.charCodeAt(t+2)]>>2,u[l++]=i>>8&255,u[l++]=255&i),u}function a(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function u(e,t,n){for(var r,o=[],i=t;is?s:a+16383));return 1===r?(t=e[n-1],o+=l[t>>2],o+=l[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=l[t>>10],o+=l[t>>4&63],o+=l[t<<2&63],o+="="),i.push(o),i.join("")}n.byteLength=o,n.toByteArray=i,n.fromByteArray=s;for(var l=[],c=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,d=p.length;ha)throw new RangeError("size is too large");var r=n,i=t;void 0===i&&(r=void 0,i=0);var u=new o(e);if("string"==typeof i)for(var s=new o(i,r),l=s.length,c=-1;++ca)throw new RangeError("size is too large");return new o(e)},n.from=function(e,n,r){if("function"==typeof o.from&&(!t.Uint8Array||Uint8Array.from!==o.from))return o.from(e,n,r);if("number"==typeof e)throw new TypeError('"value" argument must not be a number');if("string"==typeof e)return new o(e,n);if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer){var i=n;if(1===arguments.length)return new o(e);void 0===i&&(i=0);var a=r;if(void 0===a&&(a=e.byteLength-i),i>=e.byteLength)throw new RangeError("'offset' is out of bounds");if(a>e.byteLength-i)throw new RangeError("'length' is out of bounds");return new o(e.slice(i,i+a))}if(o.isBuffer(e)){var u=new o(e.length);return e.copy(u,0,0,e.length),u}if(e){if(Array.isArray(e)||"undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return new o(e);if("Buffer"===e.type&&Array.isArray(e.data))return new o(e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")},n.allocUnsafeSlow=function(e){if("function"==typeof o.allocUnsafeSlow)return o.allocUnsafeSlow(e);if("number"!=typeof e)throw new TypeError("size must be a number");if(e>=a)throw new RangeError("size is too large");return new i(e)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{buffer:5}],5:[function(e,t,n){(function(t){"use strict";function r(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(r()=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),i.alloc(+e)}function g(e,t){if(i.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))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 $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(r)return $(e).length;t=(""+t).toLowerCase(),r=!0}}function v(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,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return B(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=i.from(t,r)),i.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,o);if("number"==typeof t)return t&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,o){function i(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,u=e.length,s=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;a=2,u/=2,s/=2,n/=2}var l;if(o){var c=-1;for(l=n;lu&&(n=u-s),l=n;l>=0;l--){for(var f=!0,p=0;po&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a239?4:i>223?3:i>191?2:1;if(o+u<=n){var s,l,c,f;switch(u){case 1:i<128&&(a=i);break;case 2:128==(192&(s=e[o+1]))&&(f=(31&i)<<6|63&s)>127&&(a=f);break;case 3:s=e[o+1],l=e[o+2],128==(192&s)&&128==(192&l)&&(f=(15&i)<<12|(63&s)<<6|63&l)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:s=e[o+1],l=e[o+2],c=e[o+3],128==(192&s)&&128==(192&l)&&128==(192&c)&&(f=(15&i)<<18|(63&s)<<12|(63&l)<<6|63&c)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,u=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),o+=u}return S(r)}function S(e){var t=e.length;if(t<=X)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,o,a){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function P(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function U(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function N(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function q(e,t,n,r,o){return o||N(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,o){return o||N(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(e,t,n,r,52,8),n+8}function I(e){if((e=j(e).replace(ee,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function j(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function V(e){return e<16?"0"+e.toString(16):e.toString(16)}function $(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],a=0;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.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;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function H(e){for(var t=[],n=0;n>8,o=n%256,i.push(o),i.push(r);return i}function Y(e){return Q.toByteArray(I(e))}function G(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function W(e){return e!==e}var Q=e("base64-js"),Z=e("ieee754"),J=e("isarray");n.Buffer=i,n.SlowBuffer=m,n.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),n.kMaxLength=r(),i.poolSize=8192,i._augment=function(e){return e.__proto__=i.prototype,e},i.from=function(e,t,n){return a(null,e,t,n)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(e,t,n){return s(null,e,t,n)},i.allocUnsafe=function(e){return l(null,e)},i.allocUnsafeSlow=function(e){return l(null,e)},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.compare=function(e,t){if(!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,a=Math.min(n,r);o0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},i.prototype.compare=function(e,t,n,r,o){if(!i.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===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var a=o-r,u=n-t,s=Math.min(a,u),l=this.slice(r,o),c=e.slice(t,n),f=0;fo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var X=4096;i.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(o*=256);)r+=this[e+--t]*o;return r},i.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e],o=1,i=0;++i=o&&(r-=Math.pow(2,8*t)),r},i.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},i.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),Z.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),Z.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),Z.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),Z.read(this,e,!1,52,8)},i.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},i.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},i.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},i.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},i.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):U(this,e,t,!0),t+4},i.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},i.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=0,a=1,u=0;for(this[t]=255&e;++i>0)-u&255;return t+n},i.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=n-1,a=1,u=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+n},i.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},i.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},i.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):U(this,e,t,!0),t+4},i.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},i.prototype.writeFloatLE=function(e,t,n){return q(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){return q(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},i.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var a;if("number"==typeof e)for(a=t;a0?l.errors:null,t):t})})}function o(e){return e?function(e){return e()}:n.nextTick}function i(e,t){var n;return n=s(e,t),n=b.One in t.options.level?l(e,t):e,n=b.Two in t.options.level?c(e,t,!0):n}function a(e,t){return e.stats=u(e.styles,t),e.errors=t.errors,e.inlinedStylesheets=t.inlinedStylesheets,e.warnings=t.warnings,e}function u(e,t){var n=Date.now()-t.stats.startedAt;return delete t.stats.startedAt,t.stats.timeSpent=n,t.stats.efficiency=1-e.length/t.stats.originalSize,t.stats.minifiedSize=e.length,t.stats}var s=e("./optimizer/level-0/optimize"),l=e("./optimizer/level-1/optimize"),c=e("./optimizer/level-2/optimize"),f=e("./optimizer/validator"),p=e("./options/compatibility"),h=e("./options/fetch"),d=e("./options/format").formatFrom,m=e("./options/inline"),g=e("./options/inline-request"),v=e("./options/inline-timeout"),b=e("./options/optimization-level").OptimizationLevel,y=e("./options/optimization-level").optimizationLevelFrom,_=e("./options/rebase"),w=e("./options/rebase-to"),A=e("./reader/input-source-map-tracker"),E=e("./reader/read-sources"),x=e("./writer/simple"),C=e("./writer/source-maps");(t.exports=function(e){e=e||{},this.options={compatibility:p(e.compatibility),fetch:h(e.fetch),format:d(e.format),inline:m(e.inline),inlineRequest:g(e.inlineRequest),inlineTimeout:v(e.inlineTimeout),level:y(e.level),rebase:_(e.rebase),rebaseTo:w(e.rebaseTo),returnPromise:!!e.returnPromise,sourceMap:!!e.sourceMap,sourceMapInlineSources:!!e.sourceMapInlineSources}}).prototype.minify=function(e,t,n){var o=this.options;return o.returnPromise?new Promise(function(n,i){r(e,o,t,function(e,t){return e?i(e):n(t)})}):r(e,o,t,n)}}).call(this,e("_process"))},{"./optimizer/level-0/optimize":10,"./optimizer/level-1/optimize":11,"./optimizer/level-2/optimize":30,"./optimizer/validator":58,"./options/compatibility":60,"./options/fetch":61,"./options/format":62,"./options/inline":65,"./options/inline-request":63,"./options/inline-timeout":64,"./options/optimization-level":66,"./options/rebase":68,"./options/rebase-to":67,"./reader/input-source-map-tracker":72,"./reader/read-sources":78,"./writer/simple":100,"./writer/source-maps":101,_process:114}],9:[function(e,t,n){var r={ASTERISK:"asterisk",BANG:"bang",BACKSLASH:"backslash",UNDERSCORE:"underscore"};t.exports=r},{}],10:[function(e,t,n){function r(e){return e}t.exports=r},{}],11:[function(e,t,n){function r(e){return e&&"-"==e[1][0]&&parseFloat(e[1])<0}function o(e){return re.test(e)}function i(e){return ie.test(e)}function a(e){return e.replace(ie,"url(").replace(/\\?\n|\\?\r\n/g,"")}function u(e){var t=e.value;1==t.length&&"none"==t[0][1]&&(t[0][1]="0 0"),1==t.length&&"transparent"==t[0][1]&&(t[0][1]="0 0")}function s(e){var t,n=e.value;3==n.length&&"/"==n[1][1]&&n[0][1]==n[2][1]?t=1:5==n.length&&"/"==n[2][1]&&n[0][1]==n[3][1]&&n[1][1]==n[4][1]?t=2:7==n.length&&"/"==n[3][1]&&n[0][1]==n[4][1]&&n[1][1]==n[5][1]&&n[2][1]==n[6][1]?t=3:9==n.length&&"/"==n[4][1]&&n[0][1]==n[5][1]&&n[1][1]==n[6][1]&&n[2][1]==n[7][1]&&n[3][1]==n[8][1]&&(t=4),t&&(e.value.splice(t),e.dirty=!0)}function l(e,t,n){return-1===t.indexOf("#")&&-1==t.indexOf("rgb")&&-1==t.indexOf("hsl")?F(t):(t=t.replace(/rgb\((\-?\d+),(\-?\d+),(\-?\d+)\)/g,function(e,t,n,r){return M(t,n,r)}).replace(/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/g,function(e,t,n,r){return L(t,n,r)}).replace(/(^|[^='"])#([0-9a-f]{6})/gi,function(e,t,n){return 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&&n.indexOf("%")>0||"rgba"==t&&4==r.length&&n.indexOf("%")>0?(-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 G(t,",").pop().indexOf("gradient(")>-1?e:"transparent"})),F(t))}function c(e){1==e.value.length&&(e.value[0][1]=e.value[0][1].replace(/progid:DXImageTransform\.Microsoft\.(Alpha|Chroma)(\W)/,function(e,t,n){return t.toLowerCase()+n})),e.value[0][1]=e.value[0][1].replace(/,(\S)/g,", $1").replace(/ ?= ?/g,"=")}function f(e,t){var n=e.value[t][1];"normal"==n?n="400":"bold"==n&&(n="700"),e.value[t][1]=n}function p(e){var t,n=e.value;4==n.length&&"0"===n[0][1]&&"0"===n[1][1]&&"0"===n[2][1]&&"0"===n[3][1]&&(t=e.name.indexOf("box-shadow")>-1?2:1),t&&(e.value.splice(t),e.dirty=!0)}function h(e){var t=e.value;1==t.length&&"none"==t[0][1]&&(t[0][1]="0")}function d(e,t,n){return X.test(t)?t.replace(X,function(e,t){var r,o=parseInt(t);return 0===o?e:(n.properties.shorterLengthUnits&&n.units.pt&&3*o%4==0&&(r=3*o/4+"pt"),n.properties.shorterLengthUnits&&n.units.pc&&o%16==0&&(r=o/16+"pc"),n.properties.shorterLengthUnits&&n.units.in&&o%96==0&&(r=o/96+"in"),r&&(r=e.substring(0,e.indexOf(t))+r),r&&r.length0&&("height"==e||"max-height"==e)?t:t.replace(n,"$10$2").replace(n,"$10$2")}function b(e,t){return e.indexOf("filter")>-1||-1==t.indexOf(" ")||0===t.indexOf("expression")?t:t.indexOf(K.SINGLE_QUOTE)>-1||t.indexOf(K.DOUBLE_QUOTE)>-1?t:((t=t.replace(/\s+/g," ")).indexOf("calc")>-1&&(t=t.replace(/\) ?\/ ?/g,")/ ")),t.replace(/(\(;?)\s+/g,"$1").replace(/\s+(;?\))/g,"$1").replace(/, /g,","))}function y(e,t){return-1==t.indexOf("0deg")?t:t.replace(/\(0deg\)/g,"(0)")}function _(e,t){return-1==t.indexOf("0")?t:(t.indexOf("-")>-1&&(t=t.replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2").replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2")),t.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(t.length>0?".":"")+t+n}).replace(/(^|\D)0\.(\d)/g,"$1.$2"))}function w(e,t){return"content"==e||e.indexOf("font-feature-settings")>-1||e.indexOf("grid-")>-1?t:oe.test(t)?t.substring(1,t.length-1):t}function A(e){return!/^url\(['"].+['"]\)$/.test(e)||/^url\(['"].*[\*\s\(\)'"].*['"]\)$/.test(e)||/^url\(['"]data:[^;]+;charset/.test(e)?e:e.replace(/["']/g,"")}function E(e,t,n){var r=n(e,t);return void 0===r?t:!1===r?W:r}function x(e,t){var n,k,O,B,S,D,R=t.options,F=R.level[$.One],L=V(e,!0);e:for(var M=0,P=L.length;M0&&F.optimizeBorderRadius?s(n):"filter"==k&&F.optimizeFilter&&R.compatibility.properties.ieFilters?c(n):"font-weight"==k&&F.optimizeFontWeight?f(n,0):"outline"==k&&F.optimizeOutline&&h(n)}j(L),I(L),L.length!=e.length&&C(e,R)}function C(e,t){var n,r;for(r=0;r0&&(r.enabled=!0,r.decimalPointMatcher=new RegExp("(\\d)\\.($|"+o.join("|")+")($|W)","g"),r.zeroMatcher=new RegExp("(\\d*)(\\.\\d+)("+o.join("|")+")","g")),r}function D(e){return ne.test(e[1])}function T(e){var t;return("filter"==e.name||"-ms-filter"==e.name)&&((t=e.value[0][1]).indexOf("progid")>-1||0===t.indexOf("alpha")||0===t.indexOf("chroma"))}function R(e,t){var n=t.options,r=n.level[$.One],o=n.compatibility.selectors.ie7Hack,i=n.compatibility.selectors.adjacentSpace,a=n.compatibility.properties.spaceAfterClosingBrace,u=n.format,s=!1,l=!1;n.unitsRegexp=n.unitsRegexp||B(n),n.precision=n.precision||S(r.roundingPrecision),n.commentsKept=n.commentsKept||0;for(var c=0,f=e.length;c1?P(p[1],r.selectorsSortingMethod):p[1],x(p[2],t),l=!0}r.removeEmpty&&(0===p[1].length||p[2]&&0===p[2].length)&&(e.splice(c,1),c--,f--)}return r.cleanupCharsets&&s&&O(e),e}var F=e("./shorten-hex"),L=e("./shorten-hsl"),M=e("./shorten-rgb"),P=e("./sort-selectors"),U=e("./tidy-rules"),N=e("./tidy-block"),q=e("./tidy-at-rule"),z=e("../hack"),I=e("../remove-unused"),j=e("../restore-from-optimizing"),V=e("../wrap-for-optimizing").all,$=e("../../options/optimization-level").OptimizationLevel,H=e("../../tokenizer/token"),K=e("../../tokenizer/marker"),Y=e("../../utils/format-position"),G=e("../../utils/split"),W="ignore-property",Q="@charset",Z=new RegExp("^"+Q,"i"),J=e("../../options/rounding-precision").DEFAULT,X=/(?:^|\s|\()(-?\d+)px/,ee=/^(\-?[\d\.]+)(m?s)$/,te=/^(?:\-chrome\-|\-[\w\-]+\w|\w[\w\-]+\w|\-\-\S+)$/,ne=/^@import/i,re=/^('.*'|".*")$/,oe=/^['"][a-zA-Z][a-zA-Z\d\-_]+['"]$/,ie=/^url\(/i,ae=/^--\S+$/;t.exports=R},{"../../options/optimization-level":66,"../../options/rounding-precision":69,"../../tokenizer/marker":84,"../../tokenizer/token":85,"../../utils/format-position":88,"../../utils/split":97,"../hack":9,"../remove-unused":56,"../restore-from-optimizing":57,"../wrap-for-optimizing":59,"./shorten-hex":12,"./shorten-hsl":13,"./shorten-rgb":14,"./sort-selectors":15,"./tidy-at-rule":16,"./tidy-block":17,"./tidy-rules":18}],12:[function(e,t,n){function r(e,t,n,r){return t+u[n.toLowerCase()]+r}function o(e,t,n){return s[t.toLowerCase()]+n}function i(e){var t=e.indexOf("#")>-1,n=e.replace(f,r);return n!=e&&(n=n.replace(f,r)),t?n.replace(p,o):n}var a={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"},u={},s={};for(var l in a){var c=a[l];l.length100&&(t=100),t=~~t/100,n<0?n=0:n>100&&(n=100),n=~~n/100,0===t)r=i=a=n;else{var u=n<.5?n*(1+t):n+t-n*t,s=2*n-u;r=o(s,u,e+1/3),i=o(s,u,e),a=o(s,u,e-1/3)}return[~~(255*r),~~(255*i),~~(255*a)]}function o(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function i(e,t,n){var o=r(e,t,n),i=o[0].toString(16),a=o[1].toString(16),u=o[2].toString(16);return"#"+(1==i.length?"0":"")+i+(1==a.length?"0":"")+a+(1==u.length?"0":"")+u}t.exports=i},{}],14:[function(e,t,n){function r(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)}t.exports=r},{}],15:[function(e,t,n){function r(e,t){return a(e[1],t[1])}function o(e,t){return e[1]>t[1]?1:-1}function i(e,t){switch(t){case"natural":return e.sort(r);case"standard":return e.sort(o);case"none":case!1:return e}}var a=e("../../utils/natural-compare");t.exports=i},{"../../utils/natural-compare":95}],16:[function(e,t,n){function r(e){return e.replace(/\s+/g," ").replace(/url\(\s+/g,"url(").replace(/\s+\)/g,")").trim()}t.exports=r},{}],17:[function(e,t,n){function r(e,t){var n,r;for(r=e.length-1;r>=0;r--)n=!t&&o.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}var o=/^@media\W/;t.exports=r},{}],18:[function(e,t,n){function r(e){var t,n,r,o,i=!1,a=!1;for(r=0,o=e.length;r0)&&!l||g&&x&&!l||(o||r)&&(d||A>0)&&l||(m&&x&&!k?(w.pop(),w.push(n)):m&&!x&&k?(w.push(s.SPACE),w.push(n)):g?w.push(s.SPACE):w.push(n))}else w.push(n),h=!0;else w.push(n),p=!0;else w.push(n),A--;else w.push(n),A++;else w.push(n),d=!1;else w.push(n),d=!0;a=i,i=n==s.BACK_SLASH,E=m,x=g}return C?w.join("").replace(f,"$1 $2]"):w.join("")}function i(e){return-1==e.indexOf("'")&&-1==e.indexOf('"')?e:e.replace(m,"=$1 $2").replace(g,"=$1$2").replace(p,"=$1 $2").replace(h,"=$1$2")}function a(e,t,n,a,u){function s(e,t){return u.push("HTML comment '"+t+"' at "+l(e[2][0])+". Removing."),""}for(var c=[],f=[],p=0,h=e.length;p0&&(g=g.replace(/\+nav(\S|$)/,"+ nav$1")),t&&g.indexOf(y)>-1||t&&g.indexOf(_)>-1||(g.indexOf("*")>-1&&(g=g.replace(/\*([:#\.\[])/g,"$1").replace(/^(\:first\-child)?\+html/,"*$1+html")),f.indexOf(g)>-1||(m[1]=g,f.push(g),c.push(m))))}return 1==c.length&&0===c[0][1].length&&(u.push("Empty selector '"+c[0][1]+"' at "+l(c[0][2][0])+". Ignoring."),c=[]),c}var u=e("../../options/format").Spaces,s=e("../../tokenizer/marker"),l=e("../../utils/format-position"),c=/[\s"'][iI]\s*\]/,f=/([\d\w])([iI])\]/g,p=/="([a-zA-Z][a-zA-Z\d\-_]+)"([iI])/g,h=/="([a-zA-Z][a-zA-Z\d\-_]+)"(\s|\])/g,d=/^(?:(?:)\s*)+/,m=/='([a-zA-Z][a-zA-Z\d\-_]+)'([iI])/g,g=/='([a-zA-Z][a-zA-Z\d\-_]+)'(\s|\])/g,v=/[>\+~]/,b=/\s/,y="*+html ",_="*:first-child+html ",w="<";t.exports=a},{"../../options/format":62,"../../tokenizer/marker":84,"../../utils/format-position":88}],19:[function(e,t,n){function r(e){var t,n;for(t=0,n=e.length;t1&&r(b))throw new g("Invalid animation values at "+_(b[0][2][0])+". Ignoring.");for(i=0,u=b.length;i=0;A--){var E=h[A];if(n.isBackgroundAttachmentKeyword(E[1]))s.value=[E],w=!0;else if(n.isBackgroundClipKeyword(E[1])||n.isBackgroundOriginKeyword(E[1]))m?(l.value=[E],v=!0):(c.value=[E],m=!0),w=!0;else if(n.isBackgroundRepeatKeyword(E[1]))b?u.value.unshift(E):(u.value=[E],b=!0),w=!0;else if(n.isBackgroundPositionKeyword(E[1])||n.isBackgroundSizeKeyword(E[1])||n.isUnit(E[1])||n.isDynamicUnit(E[1])){if(A>0){var x=h[A-1];x[1]==y.FORWARD_SLASH?i.value=[E]:A>1&&h[A-2][1]==y.FORWARD_SLASH?(i.value=[x,E],A-=2):(d||(o.value=[]),o.value.unshift(E),d=!0)}else d||(o.value=[]),o.value.unshift(E),d=!0;w=!0}else f.value[0][1]!=t[f.name].defaultValue&&"none"!=f.value[0][1]||!n.isColor(E[1])&&!n.isPrefixed(E[1])?(n.isUrl(E[1])||n.isFunction(E[1]))&&(r.value=[E],w=!0):(f.value=[E],w=!0)}if(m&&!v&&(l.value=c.value.slice(0)),!w)throw new g("Invalid background value at "+_(h[0][2][0])+". Ignoring.");return p}function c(e,t){for(var n=e.value,r=-1,o=0,i=n.length;o-1?n.slice(0,r):n.slice(0),u.components=p(u,t);var s=a(e.name,e,t);s.value=r>-1?n.slice(r+1):n.slice(0),s.components=p(s,t);for(var l=0;l<4;l++)u.components[l].multiplex=!0,u.components[l].value=u.components[l].value.concat(s.components[l].value);return u.components}function f(e,t,n){var o,i,u,s,l=a("font-style",e,t),c=a("font-variant",e,t),f=a("font-weight",e,t),p=a("font-stretch",e,t),h=a("font-size",e,t),d=a("line-height",e,t),m=a("font-family",e,t),v=[l,c,f,p,h,d,m],b=e.value,w=0,A=!1,E=!1,x=!1,C=!1,k=!1,O=!1;if(!b[w])throw new g("Missing font values at "+_(e.all[e.position][1][2][0])+". Ignoring.");if(1==b.length&&"inherit"==b[0][1])return l.value=c.value=f.value=p.value=h.value=d.value=m.value=b,v;if(1==b.length&&(n.isFontKeyword(b[0][1])||n.isGlobal(b[0][1])||n.isPrefixed(b[0][1])))return b[0][1]=y.INTERNAL+b[0][1],l.value=c.value=f.value=p.value=h.value=d.value=m.value=b,v;if(b.length>1&&r(b))throw new g("Invalid font values at "+_(b[0][2][0])+". Ignoring.");for(;w<4;){if(o=n.isFontStretchKeyword(b[w][1])||n.isGlobal(b[w][1]),i=n.isFontStyleKeyword(b[w][1])||n.isGlobal(b[w][1]),u=n.isFontVariantKeyword(b[w][1])||n.isGlobal(b[w][1]),s=n.isFontWeightKeyword(b[w][1])||n.isGlobal(b[w][1]),i&&!E)l.value=[b[w]],E=!0;else if(u&&!x)c.value=[b[w]],x=!0;else if(s&&!C)f.value=[b[w]],C=!0;else{if(!o||A){if(i&&E||u&&x||s&&C||o&&A)throw new g("Invalid font style / variant / weight / stretch value at "+_(b[0][2][0])+". Ignoring.");break}p.value=[b[w]],A=!0}w++}if(!(n.isFontSizeKeyword(b[w][1])||n.isUnit(b[w][1])&&!n.isDynamicUnit(b[w][1])))throw new g("Missing font size at "+_(b[0][2][0])+". Ignoring.");if(h.value=[b[w]],k=!0,w++,!b[w])throw new g("Missing font family at "+_(b[0][2][0])+". Ignoring.");for(k&&b[w]&&b[w][1]==y.FORWARD_SLASH&&b[w+1]&&(n.isLineHeightKeyword(b[w+1][1])||n.isUnit(b[w+1][1])||n.isNumber(b[w+1][1]))&&(d.value=[b[w+1]],w++,w++),m.value=[];b[w];)b[w][1]==y.COMMA?O=!1:(O?m.value[m.value.length-1][1]+=y.SPACE+b[w][1]:m.value.push(b[w]),O=!0),w++;if(0===m.value.length)throw new g("Missing font family at "+_(b[0][2][0])+". Ignoring.");return v}function p(e,t){var n=t[e.name].components,r=[],o=e.value;if(o.length<1)return[];o.length<2&&(o[1]=o[0].slice(0)),o.length<3&&(o[2]=o[0].slice(0)),o.length<4&&(o[3]=o[1].slice(0));for(var i=n.length-1;i>=0;i--){var a=v([b.PROPERTY,[b.PROPERTY_NAME,n[i]]]);a.value=[o[i]],r.unshift(a)}return r}function h(e){return function(t,n,r){var o,i,u,s,l=[],c=t.value;for(o=0,u=c.length;o0&&(n.isListStyleTypeKeyword(s[0][1])||n.isIdentifier(s[0][1]))&&(r.value=[s[0]]),u}function m(e,t,n){for(var r,s,l,c=t[e.name],f=[a(c.components[0],e,t),a(c.components[1],e,t),a(c.components[2],e,t)],p=0;p<3;p++){var h=f[p];h.name.indexOf("color")>0?r=h:h.name.indexOf("style")>0?s=h:l=h}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=s.value=l.value=[e.value[0]],f;var d,m,g=e.value.slice(0);return g.length>0&&(d=(m=g.filter(u(n))).length>1&&("none"==m[0][1]||"auto"==m[0][1])?m[1]:m[0])&&(l.value=[d],g.splice(g.indexOf(d),1)),g.length>0&&(d=g.filter(i(n))[0])&&(s.value=[d],g.splice(g.indexOf(d),1)),g.length>0&&(d=g.filter(o(n))[0])&&(r.value=[d],g.splice(g.indexOf(d),1)),f}var g=e("./invalid-property-error"),v=e("../wrap-for-optimizing").single,b=e("../../tokenizer/token"),y=e("../../tokenizer/marker"),_=e("../../utils/format-position");t.exports={animation:s,background:l,border:m,borderRadius:c,font:f,fourValues:p,listStyle:d,multiplex:h,outline:m}},{"../../tokenizer/marker":84,"../../tokenizer/token":85,"../../utils/format-position":88,"../wrap-for-optimizing":59,"./invalid-property-error":24}],20:[function(e,t,n){function r(e,t,n){return!!(w(e,t,n,0,!0)||e.isAnimationIterationCountKeyword(n)||e.isPositiveNumber(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||(e.isAnimationIterationCountKeyword(n)||e.isPositiveNumber(n)))}function o(e,t,n){return!!(w(e,t,n,0,!0)||e.isAnimationNameKeyword(n)||e.isIdentifier(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||(e.isAnimationNameKeyword(n)||e.isIdentifier(n)))}function i(e,t,n){return!!(w(e,t,n,0,!0)||e.isAnimationTimingFunction(n)||e.isGlobal(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||(e.isAnimationTimingFunction(n)||e.isGlobal(n)))}function a(e,t,n){return!(!e.isFunction(t)||!e.isFunction(n))&&t.substring(0,t.indexOf("("))===n.substring(0,n.indexOf("("))}function u(e,t,n){return!!(w(e,t,n,0,!0)||e.isBackgroundPositionKeyword(n)||e.isGlobal(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||(!(!e.isBackgroundPositionKeyword(n)&&!e.isGlobal(n))||b(e,t,n)))}function s(e,t,n){return!!(w(e,t,n,0,!0)||e.isBackgroundSizeKeyword(n)||e.isGlobal(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||(!(!e.isBackgroundSizeKeyword(n)&&!e.isGlobal(n))||b(e,t,n)))}function l(e,t,n){return!(!w(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))||m(e,t,n))))}function c(e){return function(t,n,r,o){return e[o](t,n,r)}}function f(e,t,n){return w(e,t,n,0,!0)}function p(e,t,n){return!(!w(e,t,n,0,!0)&&!e.isImage(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||(!!e.isImage(n)||!e.isImage(t)&&m(e,t,n)))}function h(e){return function(t,n,r){return!(!w(t,n,r,0,!0)&&!t.isKeyword(e)(r))&&(!(!t.isVariable(n)||!t.isVariable(r))||t.isKeyword(e)(r))}}function d(e){return function(t,n,r){return!!(w(t,n,r,0,!0)||t.isKeyword(e)(r)||t.isGlobal(r))&&(!(!t.isVariable(n)||!t.isVariable(r))||(t.isKeyword(e)(r)||t.isGlobal(r)))}}function m(e,t,n){return!!a(e,t,n)||t===n}function g(e,t,n){return!!(w(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)))}function v(e,t,n){return!(!w(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))||m(e,t,n))))}function b(e,t,n){return!(!w(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))||m(e,t,n))))}function y(e){var t=d(e);return function(e,n,r){return b(e,n,r)||t(e,n,r)}}function _(e,t,n){return!(!w(e,t,n,0,!0)&&!e.isZIndex(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||e.isZIndex(n))}var w=e("./properties/understandable");t.exports={generic:{color:l,components:c,image:p,time:v,unit:b},property:{animationDirection:d("animation-direction"),animationFillMode:h("animation-fill-mode"),animationIterationCount:r,animationName:o,animationPlayState:d("animation-play-state"),animationTimingFunction:i,backgroundAttachment:h("background-attachment"),backgroundClip:d("background-clip"),backgroundOrigin:h("background-origin"),backgroundPosition:u,backgroundRepeat:h("background-repeat"),backgroundSize:s,bottom:y("bottom"),borderCollapse:h("border-collapse"),borderStyle:d("*-style"),clear:d("clear"),cursor:d("cursor"),display:d("display"),float:d("float"),left:y("left"),fontFamily:f,fontStretch:d("font-stretch"),fontStyle:d("font-style"),fontVariant:d("font-variant"),fontWeight:d("font-weight"),listStyleType:d("list-style-type"),listStylePosition:d("list-style-position"),outlineStyle:d("*-style"),overflow:d("overflow"),position:d("position"),right:y("right"),textAlign:d("text-align"),textDecoration:d("text-decoration"),textOverflow:d("text-overflow"),textShadow:g,top:y("top"),transform:m,verticalAlign:y("vertical-align"),visibility:d("visibility"),whiteSpace:d("white-space"),zIndex:_}}},{"./properties/understandable":41}],21:[function(e,t,n){function r(e){for(var t=o(e),n=e.components.length-1;n>=0;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}function o(e){var t=i([a.PROPERTY,[a.PROPERTY_NAME,e.name]]);return t.important=e.important,t.hack=e.hack,t.unused=!1,t}var i=e("../wrap-for-optimizing").single,a=e("../../tokenizer/token");t.exports={deep:r,shallow:o}},{"../../tokenizer/token":85,"../wrap-for-optimizing":59}],22:[function(e,t,n){var r=e("./break-up"),o=e("./can-override"),i=e("./restore"),a=e("../../utils/override"),u={animation:{canOverride:o.generic.components([o.generic.time,o.property.animationTimingFunction,o.generic.time,o.property.animationIterationCount,o.property.animationDirection,o.property.animationFillMode,o.property.animationPlayState,o.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:i.multiplex(i.withoutDefaults),shorthand:!0,vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-delay":{canOverride:o.generic.time,componentOf:["animation"],defaultValue:"0s",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-direction":{canOverride:o.property.animationDirection,componentOf:["animation"],defaultValue:"normal",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-duration":{canOverride:o.generic.time,componentOf:["animation"],defaultValue:"0s",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-fill-mode":{canOverride:o.property.animationFillMode,componentOf:["animation"],defaultValue:"none",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-iteration-count":{canOverride:o.property.animationIterationCount,componentOf:["animation"],defaultValue:"1",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-name":{canOverride:o.property.animationName,componentOf:["animation"],defaultValue:"none",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-play-state":{canOverride:o.property.animationPlayState,componentOf:["animation"],defaultValue:"running",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-timing-function":{canOverride:o.property.animationTimingFunction,componentOf:["animation"],defaultValue:"ease",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},background:{canOverride:o.generic.components([o.generic.image,o.property.backgroundPosition,o.property.backgroundSize,o.property.backgroundRepeat,o.property.backgroundAttachment,o.property.backgroundOrigin,o.property.backgroundClip,o.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:i.multiplex(i.background),shortestValue:"0",shorthand:!0},"background-attachment":{canOverride:o.property.backgroundAttachment,componentOf:["background"],defaultValue:"scroll",intoMultiplexMode:"real"},"background-clip":{canOverride:o.property.backgroundClip,componentOf:["background"],defaultValue:"border-box",intoMultiplexMode:"real",shortestValue:"border-box"},"background-color":{canOverride:o.generic.color,componentOf:["background"],defaultValue:"transparent",intoMultiplexMode:"real",multiplexLastOnly:!0,nonMergeableValue:"none",shortestValue:"red"},"background-image":{canOverride:o.generic.image,componentOf:["background"],defaultValue:"none",intoMultiplexMode:"default"},"background-origin":{canOverride:o.property.backgroundOrigin,componentOf:["background"],defaultValue:"padding-box",intoMultiplexMode:"real",shortestValue:"border-box"},"background-position":{canOverride:o.property.backgroundPosition,componentOf:["background"],defaultValue:["0","0"],doubleValues:!0,intoMultiplexMode:"real",shortestValue:"0"},"background-repeat":{canOverride:o.property.backgroundRepeat,componentOf:["background"],defaultValue:["repeat"],doubleValues:!0,intoMultiplexMode:"real"},"background-size":{canOverride:o.property.backgroundSize,componentOf:["background"],defaultValue:["auto"],doubleValues:!0,intoMultiplexMode:"real",shortestValue:"0 0"},bottom:{canOverride:o.property.bottom,defaultValue:"auto"},border:{breakUp:r.border,canOverride:o.generic.components([o.generic.unit,o.property.borderStyle,o.generic.color]),components:["border-width","border-style","border-color"],defaultValue:"none",overridesShorthands:["border-bottom","border-left","border-right","border-top"],restore:i.withoutDefaults,shorthand:!0,shorthandComponents:!0},"border-bottom":{breakUp:r.border,canOverride:o.generic.components([o.generic.unit,o.property.borderStyle,o.generic.color]),components:["border-bottom-width","border-bottom-style","border-bottom-color"],defaultValue:"none",restore:i.withoutDefaults,shorthand:!0},"border-bottom-color":{canOverride:o.generic.color,componentOf:["border-bottom","border-color"],defaultValue:"none"},"border-bottom-left-radius":{canOverride:o.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-bottom-right-radius":{canOverride:o.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-bottom-style":{canOverride:o.property.borderStyle,componentOf:["border-bottom","border-style"],defaultValue:"none"},"border-bottom-width":{canOverride:o.generic.unit,componentOf:["border-bottom","border-width"],defaultValue:"medium",oppositeTo:"border-top-width",shortestValue:"0"},"border-collapse":{canOverride:o.property.borderCollapse,defaultValue:"separate"},"border-color":{breakUp:r.fourValues,canOverride:o.generic.components([o.generic.color,o.generic.color,o.generic.color,o.generic.color]),componentOf:["border"],components:["border-top-color","border-right-color","border-bottom-color","border-left-color"],defaultValue:"none",restore:i.fourValues,shortestValue:"red",shorthand:!0},"border-left":{breakUp:r.border,canOverride:o.generic.components([o.generic.unit,o.property.borderStyle,o.generic.color]),components:["border-left-width","border-left-style","border-left-color"],defaultValue:"none",restore:i.withoutDefaults,shorthand:!0},"border-left-color":{canOverride:o.generic.color,componentOf:["border-color","border-left"],defaultValue:"none"},"border-left-style":{canOverride:o.property.borderStyle,componentOf:["border-left","border-style"],defaultValue:"none"},"border-left-width":{canOverride:o.generic.unit,componentOf:["border-left","border-width"],defaultValue:"medium",oppositeTo:"border-right-width",shortestValue:"0"},"border-radius":{breakUp:r.borderRadius,canOverride:o.generic.components([o.generic.unit,o.generic.unit,o.generic.unit,o.generic.unit]),components:["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],defaultValue:"0",restore:i.borderRadius,shorthand:!0,vendorPrefixes:["-moz-","-o-"]},"border-right":{breakUp:r.border,canOverride:o.generic.components([o.generic.unit,o.property.borderStyle,o.generic.color]),components:["border-right-width","border-right-style","border-right-color"],defaultValue:"none",restore:i.withoutDefaults,shorthand:!0},"border-right-color":{canOverride:o.generic.color,componentOf:["border-color","border-right"],defaultValue:"none"},"border-right-style":{canOverride:o.property.borderStyle,componentOf:["border-right","border-style"],defaultValue:"none"},"border-right-width":{canOverride:o.generic.unit,componentOf:["border-right","border-width"],defaultValue:"medium",oppositeTo:"border-left-width",shortestValue:"0"},"border-style":{breakUp:r.fourValues,canOverride:o.generic.components([o.property.borderStyle,o.property.borderStyle,o.property.borderStyle,o.property.borderStyle]),componentOf:["border"],components:["border-top-style","border-right-style","border-bottom-style","border-left-style"],defaultValue:"none",restore:i.fourValues,shorthand:!0},"border-top":{breakUp:r.border,canOverride:o.generic.components([o.generic.unit,o.property.borderStyle,o.generic.color]),components:["border-top-width","border-top-style","border-top-color"],defaultValue:"none",restore:i.withoutDefaults,shorthand:!0},"border-top-color":{canOverride:o.generic.color,componentOf:["border-color","border-top"],defaultValue:"none"},"border-top-left-radius":{canOverride:o.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-top-right-radius":{canOverride:o.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-top-style":{canOverride:o.property.borderStyle,componentOf:["border-style","border-top"],defaultValue:"none"},"border-top-width":{canOverride:o.generic.unit,componentOf:["border-top","border-width"],defaultValue:"medium",oppositeTo:"border-bottom-width",shortestValue:"0"},"border-width":{breakUp:r.fourValues,canOverride:o.generic.components([o.generic.unit,o.generic.unit,o.generic.unit,o.generic.unit]),componentOf:["border"],components:["border-top-width","border-right-width","border-bottom-width","border-left-width"],defaultValue:"medium",restore:i.fourValues,shortestValue:"0",shorthand:!0},clear:{canOverride:o.property.clear,defaultValue:"none"},color:{canOverride:o.generic.color,defaultValue:"transparent",shortestValue:"red"},cursor:{canOverride:o.property.cursor,defaultValue:"auto"},display:{canOverride:o.property.display},float:{canOverride:o.property.float,defaultValue:"none"},font:{breakUp:r.font,canOverride:o.generic.components([o.property.fontStyle,o.property.fontVariant,o.property.fontWeight,o.property.fontStretch,o.generic.unit,o.generic.unit,o.property.fontFamily]),components:["font-style","font-variant","font-weight","font-stretch","font-size","line-height","font-family"],restore:i.font,shorthand:!0},"font-family":{canOverride:o.property.fontFamily,defaultValue:"user|agent|specific"},"font-size":{canOverride:o.generic.unit,defaultValue:"medium",shortestValue:"0"},"font-stretch":{canOverride:o.property.fontStretch,defaultValue:"normal"},"font-style":{canOverride:o.property.fontStyle,defaultValue:"normal"},"font-variant":{canOverride:o.property.fontVariant,defaultValue:"normal"},"font-weight":{canOverride:o.property.fontWeight,defaultValue:"normal",shortestValue:"400"},height:{canOverride:o.generic.unit,defaultValue:"auto",shortestValue:"0"},left:{canOverride:o.property.left,defaultValue:"auto"},"line-height":{canOverride:o.generic.unit,defaultValue:"normal",shortestValue:"0"},"list-style":{canOverride:o.generic.components([o.property.listStyleType,o.property.listStylePosition,o.property.listStyleImage]),components:["list-style-type","list-style-position","list-style-image"],breakUp:r.listStyle,restore:i.withoutDefaults,defaultValue:"outside",shortestValue:"none",shorthand:!0},"list-style-image":{canOverride:o.generic.image,componentOf:["list-style"],defaultValue:"none"},"list-style-position":{canOverride:o.property.listStylePosition,componentOf:["list-style"],defaultValue:"outside",shortestValue:"inside"},"list-style-type":{canOverride:o.property.listStyleType,componentOf:["list-style"],defaultValue:"decimal|disc",shortestValue:"none"},margin:{breakUp:r.fourValues,canOverride:o.generic.components([o.generic.unit,o.generic.unit,o.generic.unit,o.generic.unit]),components:["margin-top","margin-right","margin-bottom","margin-left"],defaultValue:"0",restore:i.fourValues,shorthand:!0},"margin-bottom":{canOverride:o.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-top"},"margin-left":{canOverride:o.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-right"},"margin-right":{canOverride:o.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-left"},"margin-top":{canOverride:o.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-bottom"},outline:{canOverride:o.generic.components([o.generic.color,o.property.outlineStyle,o.generic.unit]),components:["outline-color","outline-style","outline-width"],breakUp:r.outline,restore:i.withoutDefaults,defaultValue:"0",shorthand:!0},"outline-color":{canOverride:o.generic.color,componentOf:["outline"],defaultValue:"invert",shortestValue:"red"},"outline-style":{canOverride:o.property.outlineStyle,componentOf:["outline"],defaultValue:"none"},"outline-width":{canOverride:o.generic.unit,componentOf:["outline"],defaultValue:"medium",shortestValue:"0"},overflow:{canOverride:o.property.overflow,defaultValue:"visible"},"overflow-x":{canOverride:o.property.overflow,defaultValue:"visible"},"overflow-y":{canOverride:o.property.overflow,defaultValue:"visible"},padding:{breakUp:r.fourValues,canOverride:o.generic.components([o.generic.unit,o.generic.unit,o.generic.unit,o.generic.unit]),components:["padding-top","padding-right","padding-bottom","padding-left"],defaultValue:"0",restore:i.fourValues,shorthand:!0},"padding-bottom":{canOverride:o.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-top"},"padding-left":{canOverride:o.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-right"},"padding-right":{canOverride:o.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-left"},"padding-top":{canOverride:o.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-bottom"},position:{canOverride:o.property.position,defaultValue:"static"},right:{canOverride:o.property.right,defaultValue:"auto"},"text-align":{canOverride:o.property.textAlign,defaultValue:"left|right"},"text-decoration":{canOverride:o.property.textDecoration,defaultValue:"none"},"text-overflow":{canOverride:o.property.textOverflow,defaultValue:"none"},"text-shadow":{canOverride:o.property.textShadow,defaultValue:"none"},top:{canOverride:o.property.top,defaultValue:"auto"},transform:{canOverride:o.property.transform,vendorPrefixes:["-moz-","-ms-","-webkit-"]},"vertical-align":{canOverride:o.property.verticalAlign,defaultValue:"baseline"},visibility:{canOverride:o.property.visibility,defaultValue:"visible"},"white-space":{canOverride:o.property.whiteSpace,defaultValue:"normal"},width:{canOverride:o.generic.unit,defaultValue:"auto",shortestValue:"0"},"z-index":{canOverride:o.property.zIndex,defaultValue:"auto"}},s={};for(var l in u){var c=u[l];if("vendorPrefixes"in c){for(var f=0;f~]/.test(a(e[1])),c=0,f=e[2].length;c0?"border-radius":"border-collapse"==e||"border-spacing"==e||"border-image"==e?e:0===e.indexOf("border-")&&/^border\-\w+\-\w+$/.test(e)?e.match(/border\-\w+/)[0]:0===e.indexOf("border-")&&/^border\-\w+$/.test(e)?"border":0===e.indexOf("text-")?e:"-chrome-"==e?e:e.replace(/^\-\w+\-/,"").match(/([a-zA-Z]+)/)[0].toLowerCase()}var i=e("../../tokenizer/token"),a=e("../../writer/one-time").rules,u=e("../../writer/one-time").value;t.exports=r},{"../../tokenizer/token":85,"../../writer/one-time":99}],24:[function(e,t,n){function r(e){this.name="InvalidPropertyError",this.message=e,this.stack=(new Error).stack}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,t.exports=r},{}],25:[function(e,t,n){function r(e,t,n,r){var u,s,l,c=h(e,p.COMMA);for(s=0,l=c.length;s-1&&!a(u,i(u),t,n,r))return!1;return!0}function o(e){return d.test(e)}function i(e){var t,n,r,o,i,a,u=[],s=[],l=w.ROOT,c=0,f=!1,h=!1;for(i=0,a=e.length;i0&&f&&u.push(s.join("")),u}function a(e,t,n,r,o){return u(t,n,r)&&s(t)&&(t.length<2||!l(e,t))&&(t.length<2||o&&c(t))}function u(e,t,n){var r,o,i,a;for(i=0,a=e.length;i-1?r.substring(0,r.indexOf(p.OPEN_ROUND_BRACKET)):r,-1===t.indexOf(o)&&-1===n.indexOf(o))return!1;return!0}function s(e){var t,n,r,o,i,a;for(i=0,a=e.length;i-1,n=o?t.substring(0,r):t,o&&-1==v.indexOf(n))return!1;if(!o&&v.indexOf(n)>-1)return!1}return!0}function l(e,t){var n,r,o,i,a,u,s,l,c=0;for(s=0,l=t.length;s-1?n.substring(0,n.indexOf(p.OPEN_ROUND_BRACKET)):n,u=o.indexOf(p.OPEN_ROUND_BRACKET)>-1?o.substring(0,o.indexOf(p.OPEN_ROUND_BRACKET)):o,a!=g||u!=g))return!0;return!1}function c(e){var t,n,r,o=0;for(n=0,r=e.length;n-1?1:0:o+=y.indexOf(t)>-1?1:0,o>1)return!1;return!0}function f(e){return m.test(e)}var p=e("../../tokenizer/marker"),h=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"};t.exports=r},{"../../tokenizer/marker":84,"../../utils/split":97}],26:[function(e,t,n){function r(e,t){for(var n=[null,[],[]],r=t.options,p=r.compatibility.selectors.adjacentSpace,h=r.level[s.One].selectorsSortingMethod,d=r.compatibility.selectors.mergeablePseudoClasses,m=r.compatibility.selectors.mergeablePseudoElements,g=r.compatibility.selectors.mergeLimit,v=r.compatibility.selectors.multiplePseudoMerging,b=0,y=e.length;b1?a(n[1],h):n[1],_[2]=[]):n=_:n=[null,[],[]]}}var o=e("./is-mergeable"),i=e("./properties/optimize"),a=e("../level-1/sort-selectors"),u=e("../level-1/tidy-rules"),s=e("../../options/optimization-level").OptimizationLevel,l=e("../../writer/one-time").body,c=e("../../writer/one-time").rules,f=e("../../tokenizer/token");t.exports=r},{"../../options/optimization-level":66,"../../tokenizer/token":85,"../../writer/one-time":99,"../level-1/sort-selectors":15,"../level-1/tidy-rules":18,"./is-mergeable":25,"./properties/optimize":37}],27:[function(e,t,n){function r(e,t){for(var n=t.options.level[c.Two].mergeSemantically,r=t.cache.specificity,a={},s=[],p=e.length-1;p>=0;p--){var h=e[p];if(h[0]==f.NESTED_BLOCK){var d=l(h[1]),m=a[d];m||(m=[],a[d]=m),m.push(p)}}for(var g in a){var v=a[g];e:for(var b=v.length-1;b>0;b--){var y=v[b],_=e[y],w=v[b-1],A=e[w];t:for(var E=1;E>=-1;E-=2){for(var x=1==E,C=x?y+1:w-1,k=x?w:y,O=x?1:-1,B=x?_:A,S=x?A:_,D=u(B);C!=k;){var T=u(e[C]);if(C+=O,!(n&&o(D,T,r)||i(D,T,r)))continue t}S[2]=x?B[2].concat(S[2]):S[2].concat(B[2]),B[2]=[],s.push(S);continue e}}}return s}function o(e,t,n){var r,o,i,u,l,c,f,p;for(l=0,c=e.length;l-1||t.indexOf("--")>-1}function i(e){return e.replace(/--[^ ,>\+~:]+/g,"")}function a(e,t){var n=i(h(e[1]));for(var r in t){var o=t[r],a=i(h(o[1]));(a.indexOf(n)>-1||n.indexOf(a)>-1)&&delete t[r]}}function u(e,t){for(var n=t.options,i=n.level[f.Two].mergeSemantically,u=n.compatibility.selectors.adjacentSpace,m=n.level[f.One].selectorsSortingMethod,g=n.compatibility.selectors.mergeablePseudoClasses,v=n.compatibility.selectors.mergeablePseudoElements,b=n.compatibility.selectors.multiplePseudoMerging,y={},_=e.length-1;_>=0;_--){var w=e[_];if(w[0]==d.RULE){w[2].length>0&&!i&&r(h(w[1]))&&(y={}),w[2].length>0&&i&&o(w)&&a(w,y);var A=p(w[2]),E=y[A];E&&s(h(w[1]),g,v,b)&&s(h(E[1]),g,v,b)&&(w[2].length>0?(w[1]=c(E[1].concat(w[1]),!1,u,!1,t.warnings),w[1]=w[1].length>1?l(w[1],m):w[1]):w[1]=E[1].concat(w[1]),E[2]=[],y[A]=null),y[p(w[2])]=w}}}var s=e("./is-mergeable"),l=e("../level-1/sort-selectors"),c=e("../level-1/tidy-rules"),f=e("../../options/optimization-level").OptimizationLevel,p=e("../../writer/one-time").body,h=e("../../writer/one-time").rules,d=e("../../tokenizer/token");t.exports=u},{"../../options/optimization-level":66,"../../tokenizer/token":85,"../../writer/one-time":99,"../level-1/sort-selectors":15,"../level-1/tidy-rules":18,"./is-mergeable":25}],29:[function(e,t,n){function r(e,t){var n,r=t.cache.specificity,l={},c=[];for(n=e.length-1;n>=0;n--)if(e[n][0]==s.RULE&&0!==e[n][2].length){var f=u(e[n][1]);l[f]=[n].concat(l[f]||[]),2==l[f].length&&c.push(f)}for(n=c.length-1;n>=0;n--){var p=l[c[n]];e:for(var h=p.length-1;h>0;h--){var d=p[h-1],m=e[d],g=p[h],v=e[g];t:for(var b=1;b>=-1;b-=2){for(var y=1==b,_=y?d+1:g-1,w=y?g:d,A=y?1:-1,E=y?m:v,x=y?v:m,C=i(E);_!=w;){var k=i(e[_]);_+=A;var O=y?o(C,k,r):o(k,C,r);if(!O&&!y)continue e;if(!O&&y)continue t}y?(Array.prototype.push.apply(E[2],x[2]),x[2]=E[2]):Array.prototype.push.apply(x[2],E[2]),a(x[2],!0,!0,t),E[2]=[]}}}}var o=e("./reorderable").canReorder,i=e("./extract-properties"),a=e("./properties/optimize"),u=e("../../writer/one-time").rules,s=e("../../tokenizer/token");t.exports=r},{"../../tokenizer/token":85,"../../writer/one-time":99,"./extract-properties":23,"./properties/optimize":37,"./reorderable":48}],30:[function(e,t,n){function r(e){for(var t=0,n=e.length;t=0;y--)a(v[y][2],t,!1);return _.removeEmpty&&r(e),e}var u=e("./merge-adjacent"),s=e("./merge-media-queries"),l=e("./merge-non-adjacent-by-body"),c=e("./merge-non-adjacent-by-selector"),f=e("./reduce-non-adjacent"),p=e("./remove-duplicate-font-at-rules"),h=e("./remove-duplicate-media-queries"),d=e("./remove-duplicates"),m=e("./remove-unused-at-rules"),g=e("./restructure"),v=e("./properties/optimize"),b=e("../../options/optimization-level").OptimizationLevel,y=e("../../tokenizer/token");t.exports=a},{"../../options/optimization-level":66,"../../tokenizer/token":85,"./merge-adjacent":26,"./merge-media-queries":27,"./merge-non-adjacent-by-body":28,"./merge-non-adjacent-by-selector":29,"./properties/optimize":37,"./reduce-non-adjacent":43,"./remove-duplicate-font-at-rules":44,"./remove-duplicate-media-queries":45,"./remove-duplicates":46,"./remove-unused-at-rules":47,"./restructure":51}],31:[function(e,t,n){function r(e,t,n){var r,i,a,u=t.value.length,s=n.value.length,l=Math.max(u,s),c=Math.min(u,s)-1;for(a=0;a=0;t--)if("inherit"==e.value[t][1])return!0;return!1}t.exports=r},{}],34:[function(e,t,n){function r(e,t,n){return o(e,t)||!n&&!!a[e.name].shorthandComponents&&i(e,t)}function o(e,t){var n=a[e.name];return"components"in n&&n.components.indexOf(t.name)>-1}function i(e,t){return e.components.some(function(e){return o(e,t)})}var a=e("../compactable");t.exports=r},{"../compactable":22}],35:[function(e,t,n){function r(e){return"font"!=e.name||-1==e.value[0][1].indexOf(o.INTERNAL)}var o=e("../../../tokenizer/marker");t.exports=r},{"../../../tokenizer/marker":84}],36:[function(e,t,n){function r(e,t){var n,r,i,a,u,s,l,c={};if(!(e.length<3)){for(a=0,u=e.length;aObject.keys(p).length||a(p)||u(p,o,r)&&s(p)&&(l(p)?c(e,p,o,r):v(e,p,o,r)))}function i(e,t,n){var r,o=w[t],i=w[n.name];if("overridesShorthands"in o&&o.overridesShorthands.indexOf(n.name)>-1)return!0;if(i&&"componentOf"in i)for(r in e[t])if(i.componentOf.indexOf(r)>-1)return!0;return!1}function a(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 u(e,t,n){var r,o,i,a,u=w[t],s=[O.PROPERTY,[O.PROPERTY_NAME,t],[O.PROPERTY_VALUE,u.defaultValue]],l=C(s);for(_([l],n,[]),i=0,a=u.components.length;i=0&&(e[o].name!=n||e[o].unused||r++,!(r>1));o--);return r>1}function m(e,t){for(var n=0,r=e.components.length;n=0;T--)if(a=e[T],b(a)&&!a.block){i=D[a.name].canOverride;t:for(R=T-1;R>=0;R--)if(c=e[R],b(c)&&!c.block&&!c.unused&&!a.unused&&(!c.hack||a.hack||a.important)&&(c.hack||c.important||!a.hack)&&(c.important!=a.important||c.hack[0]==a.hack[0])&&!(c.important==a.important&&(c.hack[0]!=a.hack[0]||c.hack[1]&&c.hack[1]!=a.hack[1])||E(a)||y(c,a)))if(a.shorthand&&k(a,c)){if(!a.important&&c.important)continue;if(!S([c],a.components))continue;if(!g(o.isFunction,c)&&m(a,o))continue;if(!O(a)){c.unused=!0;continue}f=C(a,c),i=D[c.name].canOverride,x(i.bind(null,o),c,f)&&(c.unused=!0)}else if(a.shorthand&&B(a,c)){if(!a.important&&c.important)continue;if(!S([c],a.components))continue;if(!g(o.isFunction,c)&&m(a,o))continue;for(F=(h=c.shorthand?c.components:[c]).length-1;F>=0;F--)if(_=h[F],w=C(a,_),i=D[_.name].canOverride,!x(i.bind(null,o),c,w))continue t;c.unused=!0}else if(t&&c.shorthand&&!a.shorthand&&k(c,a,!0)){if(a.important&&!c.important)continue;if(!a.important&&c.important){a.unused=!0;continue}if(d(e,T-1,c.name))continue;if(m(c,o))continue;if(!O(c))continue;if(f=C(c,a),x(i.bind(null,o),f,a)){var L=!n.properties.backgroundClipMerging&&f.name.indexOf("background-clip")>-1||!n.properties.backgroundOriginMerging&&f.name.indexOf("background-origin")>-1||!n.properties.backgroundSizeMerging&&f.name.indexOf("background-size")>-1,M=D[a.name].nonMergeableValue===a.value[0][1];if(L||M)continue;if(!n.properties.merging&&r(c,o))continue;if(f.value[0][1]!=a.value[0][1]&&(E(c)||E(a)))continue;if(v(c,a))continue;!c.multiplex&&a.multiplex&&l(c,p(a)),u(f,a),c.dirty=!0}}else if(t&&c.shorthand&&a.shorthand&&c.name==a.name){if(!c.multiplex&&a.multiplex)continue;if(!a.important&&c.important){a.unused=!0;continue e}if(a.important&&!c.important){c.unused=!0;continue}if(!O(a)){c.unused=!0;continue}for(F=c.components.length-1;F>=0;F--){var P=c.components[F],U=a.components[F];if(i=D[P.name].canOverride,!x(i.bind(null,o),P,U))continue e}s(c,a),c.dirty=!0}else if(t&&c.shorthand&&a.shorthand&&k(c,a)){if(!c.important&&a.important)continue;if(f=C(c,a),i=D[a.name].canOverride,!x(i.bind(null,o),f,a))continue;if(c.important&&!a.important){a.unused=!0;continue}if(D[a.name].restore(a,D).length>1)continue;u(f=C(c,a),a),a.dirty=!0}else if(c.name==a.name){if(A=!0,a.shorthand)for(F=a.components.length-1;F>=0&&A;F--)_=c.components[F],w=a.components[F],i=D[w.name].canOverride,A=A&&x(i.bind(null,o),_,w);else i=D[a.name].canOverride,A=x(i.bind(null,o),c,a);if(c.important&&!a.important&&A){a.unused=!0;continue}if(!c.important&&a.important&&A){c.unused=!0;continue}if(!A)continue;c.unused=!0}}}var E=e("./has-inherit"),x=e("./every-values-pair"),C=e("./find-component-in"),k=e("./is-component-of"),O=e("./is-mergeable-shorthand"),B=e("./overrides-non-component-shorthand"),S=e("./vendor-prefixes").same,D=e("../compactable"),T=e("../clone").deep,T=e("../clone").deep,R=e("../restore-with-components"),F=e("../clone").shallow,L=e("../../restore-from-optimizing"),M=e("../../../tokenizer/token"),P=e("../../../tokenizer/marker"),U=e("../../../writer/one-time").property;t.exports=A},{"../../../tokenizer/marker":84,"../../../tokenizer/token":85,"../../../writer/one-time":99,"../../restore-from-optimizing":57,"../clone":21,"../compactable":22,"../restore-with-components":49,"./every-values-pair":31,"./find-component-in":32,"./has-inherit":33,"./is-component-of":34,"./is-mergeable-shorthand":35,"./overrides-non-component-shorthand":39,"./vendor-prefixes":42}],39:[function(e,t,n){function r(e,t){return e.name in o&&"overridesShorthands"in o[e.name]&&o[e.name].overridesShorthands.indexOf(t.name)>-1}var o=e("../compactable");t.exports=r},{"../compactable":22}],40:[function(e,t,n){function r(e,t,n){for(var r,a,u,s=e.length-1;s>=0;s--){var l=e[s],c=o[l.name];if(c&&c.shorthand){l.shorthand=!0,l.dirty=!0;try{if(l.components=c.breakUp(l,o,t),c.shorthandComponents)for(a=0,u=l.components.length;a0?l.multiplex=l.components[0].multiplex:l.unused=!0}}}var o=e("../compactable"),i=e("../invalid-property-error");t.exports=r},{"../compactable":22,"../invalid-property-error":24}],41:[function(e,t,n){function r(e,t,n,r,i){return!!o(t,n)&&(!i||e.isVariable(t)===e.isVariable(n))}var o=e("./vendor-prefixes").same;t.exports=r},{"./vendor-prefixes":42}],42:[function(e,t,n){function r(e){for(var t,n=[];null!==(t=i.exec(e));)-1==n.indexOf(t[0])&&n.push(t[0]);return n}function o(e,t){return r(e).sort().join(",")==r(t).sort().join(",")}var i=/(?:^|\W)(\-\w+\-)/g;t.exports={unique:r,same:o}},{}],43:[function(e,t,n){function r(e,t){for(var n=t.options,r=n.compatibility.selectors.mergeablePseudoClasses,u=n.compatibility.selectors.mergeablePseudoElements,l=n.compatibility.selectors.multiplePseudoMerging,c={},p=[],d=e.length-1;d>=0;d--){var m=e[d];if(m[0]==f.RULE&&0!==m[2].length)for(var g=h(m[1]),v=m[1].length>1&&s(g,r,u,l),b=o(m[1]),y=v?[g].concat(b):[g],_=0,w=y.length;_0,isComplex:v&&0===_})}}i(e,p,c,n,t),a(e,c,n,t)}function o(e){for(var t=[],n=0;n=0;s--)if(!n.filterOut(s,i)){var f=t[s].where,p=e[f],h=c(p[2]);i=i.concat(h),a.push(h),u.push(f)}l(i,!0,!1,o);for(var d=u.length,m=i.length-1,g=d-1;g>=0;)if((0===g||i[m]&&a[g].indexOf(i[m])>-1)&&m>-1)m--;else{var v=i.splice(m+1);n.callback(e[u[g]],v,d,g),g--}}var s=e("./is-mergeable"),l=e("./properties/optimize"),c=e("../../utils/clone-array"),f=e("../../tokenizer/token"),p=e("../../writer/one-time").body,h=e("../../writer/one-time").rules;t.exports=r},{"../../tokenizer/token":85,"../../utils/clone-array":87,"../../writer/one-time":99,"./is-mergeable":25,"./properties/optimize":37}],44:[function(e,t,n){function r(e){var t,n,r,u,s=[];for(r=0,u=e.length;r-1?t[2]=[]:s.push(n))}var o=e("../../tokenizer/token"),i=e("../../writer/one-time").all,a="@font-face";t.exports=r},{"../../tokenizer/token":85,"../../writer/one-time":99}],45:[function(e,t,n){function r(e){var t,n,r,u,s,l={};for(u=0,s=e.length;u=0;p--)n=e[s[t][p]],r=i(n[2]),u.indexOf(r)>-1?n[2]=[]:u.push(r)}}var o=e("../../tokenizer/token"),i=e("../../writer/one-time").body,a=e("../../writer/one-time").rules;t.exports=r},{"../../tokenizer/token":85,"../../writer/one-time":99}],47:[function(e,t,n){function r(e,t){o(e,a,u,t),o(e,s,l,t),o(e,c,f,t),o(e,p,h,t)}function o(e,t,n,r){var o,a,u,s,l={};for(u=0,s=e.length;u=0;r--)for(var i=e.length-1;i>=0;i--)if(!o(e[i],t[r],n))return!1;return!0}function o(e,t,n){var r=e[0],o=e[1],g=e[2],v=e[5],b=e[6],y=t[0],_=t[1],w=t[2],A=t[5],E=t[6];return!("font"==r&&"line-height"==y||"font"==y&&"line-height"==r)&&((!d.test(r)||!d.test(y))&&(!(g==w&&a(r)==a(y)&&i(r)^i(y))&&(("border"!=g||!m.test(w)||!("border"==r||r==w||o!=_&&u(r,y)))&&(("border"!=w||!m.test(g)||!("border"==y||y==g||o!=_&&u(r,y)))&&(("border"!=g||"border"!=w||r==y||!(s(r)&&l(y)||l(r)&&s(y)))&&(g!=w||(!(r!=y||g!=w||o!=_&&!c(o,_))||(r!=y&&g==w&&r!=g&&y!=w||(r!=y&&g==w&&o==_||(!(!E||!b||f(g)||f(w)||p(A,v,!1))||!h(v,A,n)))))))))))}function i(e){return/^\-(?:moz|webkit|ms|o)\-/.test(e)}function a(e){return e.replace(/^\-(?:moz|webkit|ms|o)\-/,"")}function u(e,t){return e.split("-").pop()==t.split("-").pop()}function s(e){return"border-top"==e||"border-right"==e||"border-bottom"==e||"border-left"==e}function l(e){return"border-color"==e||"border-style"==e||"border-width"==e}function c(e,t){return i(e)&&i(t)&&e.split("-")[1]!=t.split("-")[2]}function f(e){return"font"==e||"line-height"==e||"list-style"==e}var p=e("./rules-overlap"),h=e("./specificities-overlap"),d=/align\-items|box\-align|box\-pack|flex|justify/,m=/^border\-(top|right|bottom|left|color|style|width|radius)/;t.exports={canReorder:r,canReorderSingle:o}},{"./rules-overlap":52,"./specificities-overlap":53}],49:[function(e,t,n){function r(e){var t=o[e.name];return t&&t.shorthand?t.restore(e,o):e.value}var o=e("./compactable");t.exports=r},{"./compactable":22}],50:[function(e,t,n){function r(e){for(var t=0,n=e.length;t=0;c--){var h=s[c],d=i(h);if("background-clip"==h.name){var m=s[c-1],g=i(m);u=!(a=h.value[0][1]==m.value[0][1])&&(g&&!d||!g&&!d||!g&&d&&h.value[0][1]!=m.value[0][1]),a?o(m):u&&(o(h),o(m)),c--}else if("background-size"==h.name){var v=s[c-1],b=i(v);u=!(a=!b&&d)&&(b&&!d||!b&&!d),a?o(v):u?(o(h),l.unshift([f.PROPERTY_VALUE,p.FORWARD_SLASH]),o(v)):1==v.value.length&&o(v),c--}else{if(d||t[h.name].multiplexLastOnly&&!n)continue;o(h)}}return 0===l.length&&1==e.value.length&&"0"==e.value[0][1]&&l.push(e.value[0]),0===l.length&&l.push([f.PROPERTY_VALUE,t[e.name].defaultValue]),r(l)?[l[0]]:l}function i(e,t){if(e.multiplex){for(var n=c(e),r=c(e),o=0;o<4;o++){var i=e.components[o],a=c(e);a.value=[i.value[0]],n.components.push(a);var s=c(e);s.value=[i.value[1]||i.value[0]],r.components.push(s)}var l=u(n),h=u(r);return l.length!=h.length||l[0][1]!=h[0][1]||l.length>1&&l[1][1]!=h[1][1]||l.length>2&&l[2][1]!=h[2][1]||l.length>3&&l[3][1]!=h[3][1]?l.concat([[f.PROPERTY_VALUE,p.FORWARD_SLASH]]).concat(h):l}return u(e)}function a(e,t){var n,o=e.components,i=[],a=0,u=0;if(0===e.value[0][1].indexOf(p.INTERNAL))return e.value[0][1]=e.value[0][1].substring(p.INTERNAL.length),e.value;for(;a<4;)(n=o[a]).value[0][1]!=t[n.name].defaultValue&&Array.prototype.push.apply(i,n.value),a++;for(Array.prototype.push.apply(i,o[a].value),o[++a].value[0][1]!=t[o[a].name].defaultValue&&(Array.prototype.push.apply(i,[[f.PROPERTY_VALUE,p.FORWARD_SLASH]]),Array.prototype.push.apply(i,o[a].value)),a++;o[a].value[u];)i.push(o[a].value[u]),o[a].value[u+1]&&i.push([f.PROPERTY_VALUE,p.COMMA]),u++;return r(i)?[i[0]]:i}function u(e){var t=e.components,n=t[0].value[0],r=t[1].value[0],o=t[2].value[0],i=t[3].value[0];return n[1]==r[1]&&n[1]==o[1]&&n[1]==i[1]?[n]:n[1]==o[1]&&r[1]==i[1]?[n,r]:r[1]==i[1]?[n,r,o]:[n,r,o,i]}function s(e){return function(t,n){if(!t.multiplex)return e(t,n,!0);var r,o,i=0,a=[],u={};for(r=0,o=t.components[0].value.length;r=0;i--){var a=n[i],u=t[a.name];a.value[0][1]!=u.defaultValue&&o.unshift(a.value[0])}return 0===o.length&&o.push([f.PROPERTY_VALUE,t[e.name].defaultValue]),r(o)?[o[0]]:o}var c=e("./clone").shallow,f=e("../../tokenizer/token"),p=e("../../tokenizer/marker");t.exports={background:o,borderRadius:i,font:a,fourValues:u,multiplex:s,withoutDefaults:l}},{"../../tokenizer/marker":84,"../../tokenizer/token":85,"./clone":21}],51:[function(e,t,n){function r(e,t){return e>t?1:-1}function o(e,t){var n=f(e);return n[5]=n[5].concat(t[5]),n}function i(e,t){function n(e,t,n){for(var r=n.length-1;r>=0;r--){var o=i(t,n[r][0]);if(F[o].length>1&&x(e,F[o])){f(o);break}}}function i(e,t){var n=d(t);return F[n]=F[n]||[],F[n].push([e,t]),n}function f(e){var t,n=e.split(P),r=[];for(var o in F){var i=o.split(P);for(t=i.length-1;t>=0;t--)if(n.indexOf(i[t])>-1){r.push(o);break}}for(t=r.length-1;t>=0;t--)delete F[r[t]]}function d(e){for(var t=[],n=0,r=e.length;n=0;r--)s(h(e[r][1]),k,O,S)&&(n.unshift(e[r]),e[r][2].length>0&&-1==t.indexOf(e[r])&&t.push(e[r]));return t.length>1?n:[]}function g(e,t){var r=t[0],o=t[1],i=t[4],a=r.length+o.length+1,u=[],s=[],c=m(T[i]);if(!(c.length<2)){var f=b(c,a,1),p=f[0];if(p[1]>0)return n(e,t,f);for(var h=p[0].length-1;h>=0;h--)u=p[0][h][1].concat(u),s.unshift(p[0][h]);w(e,[t],u=l(u),s)}}function v(e,t){return e[1]>t[1]?1:e[1]==t[1]?0:-1}function b(e,t,n){return y(e,t,n,M-1).sort(v)}function y(e,t,n,r){var o=[[e,_(e,t,n)]];if(e.length>2&&r>0)for(var i=e.length-1;i>=0;i--){var a=Array.prototype.slice.call(e,0);a.splice(i,1),o=o.concat(y(a,t,n,r-1))}return o}function _(e,t,n){for(var r=0,o=e.length-1;o>=0;o--)r+=e[o][2].length>n?h(e[o][1]).length:-1;return r-(e.length-1)*t+1}function w(t,n,r,o){var i,a,u,s,l=[];for(i=o.length-1;i>=0;i--){var f=o[i];for(a=f[2].length-1;a>=0;a--){var h=f[2][a];for(u=0,s=n.length;u=0;i--)l.unshift(n[i][3]);var b=[c.RULE,r,l];e.splice(t,0,b)}function A(e,t){var n=t[4],r=T[n];r&&r.length>1&&(E(e,t)||g(e,t))}function E(e,t){var n,r,o=[],i=[],a=t[4],u=m(T[a]);if(!(u.length<2)){e:for(var s in T){var l=T[s];for(n=u.length-1;n>=0;n--)if(-1==l.indexOf(u[n]))continue e;o.push(s)}if(o.length<2)return!1;for(n=o.length-1;n>=0;n--)for(r=R.length-1;r>=0;r--)if(R[r][4]==o[n]){i.unshift([R[r],u]);break}return x(e,i)}}function x(e,t){for(var n,r=0,o=[],i=t.length-1;i>=0;i--)r+=(n=t[i][0])[4].length+(i>0?1:0),o.push(n);var a=b(t[0][1],r,o.length)[0];if(a[1]>0)return!1;var u=[],s=[];for(i=a[0].length-1;i>=0;i--)u=a[0][i][1].concat(u),s.unshift(a[0][i]);for(w(e,o,u=l(u),s),i=o.length-1;i>=0;i--){n=o[i];var c=R.indexOf(n);delete T[n[4]],c>-1&&-1==L.indexOf(c)&&L.push(c)}return!0}for(var C=t.options,k=C.compatibility.selectors.mergeablePseudoClasses,O=C.compatibility.selectors.mergeablePseudoElements,B=C.compatibility.selectors.mergeLimit,S=C.compatibility.selectors.multiplePseudoMerging,D=t.cache.specificity,T={},R=[],F={},L=[],M=2,P="%",U=e.length-1;U>=0;U--){var N,q,z,I,j,V=e[U];if(V[0]==c.RULE)N=!0;else{if(V[0]!=c.NESTED_BLOCK)continue;N=!1}var $=R.length,H=u(V);L=[];var K=[];for(q=H.length-1;q>=0;q--)for(z=q-1;z>=0;z--)if(!a(H[q],H[z],D)){K.push(q);break}for(q=H.length-1;q>=0;q--){var Y=H[q],G=!1;for(z=0;z<$;z++){var W=R[z];-1==L.indexOf(z)&&(!a(Y,W,D)&&!function(e,t,n){if(e[0]!=t[0])return!1;var r=t[4],o=T[r];return o&&o.indexOf(n)>-1}(Y,W,V)||T[W[4]]&&T[W[4]].length===B)&&(A(U+1,W),-1==L.indexOf(z)&&(L.push(z),delete T[W[4]])),G||(G=Y[0]==W[0]&&Y[1]==W[1])&&(j=z)}if(N&&!(K.indexOf(q)>-1)){var Q=Y[4];G&&R[j][5].length+Y[5].length>B?(A(U+1,R[j]),R.splice(j,1),T[Q]=[V],G=!1):(T[Q]=T[Q]||[],T[Q].push(V)),G?R[j]=o(R[j],Y):R.push(Y)}}for(q=0,I=(L=L.sort(r)).length;q0&&!m||(t==i.OPEN_ROUND_BRACKET?d++:t==i.CLOSE_ROUND_BRACKET&&1==d?(d--,m=!1):t==i.CLOSE_ROUND_BRACKET?d--:t==a.HASH?h[0]++:t==a.DOT||t==i.OPEN_SQUARE_BRACKET?h[1]++:t!=a.PSEUDO||g||o(e,f)?t==a.PSEUDO?m=!0:(0===f||c)&&u.test(t)&&h[2]++:(h[1]++,m=!1))}else s=!0;else r=!0;n=t==i.BACK_SLASH,g=t==a.PSEUDO,c=!n&&l.test(t)}return h}function o(e,t){return e.indexOf(s,t)===t}var i=e("../../tokenizer/marker"),a={ADJACENT_SIBLING:"+",DESCENDANT:">",DOT:".",HASH:"#",NON_ADJACENT_SIBLING:"~",PSEUDO:":"},u=/[a-zA-Z]/,s=":not(",l=/[\s,\(>~\+]/;t.exports=r},{"../../tokenizer/marker":84}],55:[function(e,t,n){function r(e,t){return e[1]>t[1]?1:-1}function o(e){for(var t=[],n=[],o=0,i=e.length;o=0;t--){var n=e[t];n.unused&&n.all.splice(n.position,1)}}t.exports=r},{}],57:[function(e,t,n){function r(e,t){var n,r,a,u;for(u=e.length-1;u>=0;u--)(n=e[u]).unused||(n.dirty||n.important||n.hack)&&(t?(r=t(n),n.value=r):r=n.value,n.important&&o(n),n.hack&&i(n),"all"in n&&((a=n.all[n.position])[1][1]=n.name,a.splice(2,a.length-1),Array.prototype.push.apply(a,r)))}function o(e){e.value[e.value.length-1][1]+=c}function i(e){e.hack[0]==a.UNDERSCORE?e.name=f+e.name:e.hack[0]==a.ASTERISK?e.name=s+e.name:e.hack[0]==a.BACKSLASH?e.value[e.value.length-1][1]+=l+e.hack[1]:e.hack[0]==a.BANG&&(e.value[e.value.length-1][1]+=u.SPACE+p)}var a=e("./hack"),u=e("../tokenizer/marker"),s="*",l="\\",c="!important",f="_",p="!ie";t.exports=r},{"../tokenizer/marker":84,"./hack":9}],58:[function(e,t,n){function r(){var e=p("animation-timing-function");return function(t){return e(t)||x.test(t)}}function o(e){return"auto"!=e&&(p("color")(e)||s(e)||i(e)||h(e))}function i(e){return m(e)||l(e)}function a(e){return C.test(e)}function u(e){return k.test(e)}function s(e){return F.test(e)||S.test(e)}function l(e){return O.test(e)}function c(e){return B.test(e)}function f(e){return"none"==e||"inherit"==e||w(e)}function p(e){return function(t){return U[e].indexOf(t)>-1}}function h(e){return D.test(e)}function d(e){return e.length>0&&""+parseFloat(e)===e}function m(e){return R.test(e)}function g(e){return T.test(e)}function v(e){return d(e)&&parseFloat(e)>=0}function b(e){return P.test(e)}function y(e){return L.test(e)}function _(e,t){return e.test(t)}function w(e){return M.test(e)}function A(e){return"auto"==e||d(e)||p("^")(e)}function E(e){var t=N.slice(0).filter(function(t){return!(t in e.units)||!0===e.units[t]}),n=new RegExp("^(\\-?\\.?\\d+\\.?\\d*("+t.join("|")+"|)|auto|inherit)$","i");return{colorOpacity:e.colors.opacity,isAnimationDirectionKeyword:p("animation-direction"),isAnimationFillModeKeyword:p("animation-fill-mode"),isAnimationIterationCountKeyword:p("animation-iteration-count"),isAnimationNameKeyword:p("animation-name"),isAnimationPlayStateKeyword:p("animation-play-state"),isAnimationTimingFunction:r(),isBackgroundAttachmentKeyword:p("background-attachment"),isBackgroundClipKeyword:p("background-clip"),isBackgroundOriginKeyword:p("background-origin"),isBackgroundPositionKeyword:p("background-position"),isBackgroundRepeatKeyword:p("background-repeat"),isBackgroundSizeKeyword:p("background-size"),isColor:o,isColorFunction:i,isDynamicUnit:a,isFontKeyword:p("font"),isFontSizeKeyword:p("font-size"),isFontStretchKeyword:p("font-stretch"),isFontStyleKeyword:p("font-style"),isFontVariantKeyword:p("font-variant"),isFontWeightKeyword:p("font-weight"),isFunction:u,isGlobal:p("^"),isHslColor:l,isIdentifier:c,isImage:f,isKeyword:p,isLineHeightKeyword:p("line-height"),isListStylePositionKeyword:p("list-style-position"),isListStyleTypeKeyword:p("list-style-type"),isPrefixed:g,isPositiveNumber:v,isRgbColor:m,isStyleKeyword:p("*-style"),isTime:y,isUnit:_.bind(null,n),isUrl:w,isVariable:b,isWidth:p("width"),isZIndex:A}}var x=/^(cubic\-bezier|steps)\([^\)]+\)$/,C=new RegExp("^(\\-moz\\-|\\-webkit\\-)?calc\\([^\\)]+\\)$","i"),k=new RegExp("^(var\\(\\-\\-[^\\)]+\\)|[A-Z]+(\\-|[A-Z]|[0-9])+\\(.*?\\)|\\-(\\-|[A-Z]|[0-9])+\\(.*?\\))$","i"),O=/^hsl\(\s*[\-\.\d]+\s*,\s*[\.\d]+%\s*,\s*[\.\d]+%\s*\)|hsla\(\s*[\-\.\d]+\s*,\s*[\.\d]+%\s*,\s*[\.\d]+%\s*,\s*[\.\d]+\s*\)$/,B=/^(\-[a-z0-9_][a-z0-9\-_]*|[a-z][a-z0-9\-_]*)$/i,S=/^#[0-9a-f]{6}$/i,D=/^[a-z]+$/i,T=/^-([a-z0-9]|-)*$/i,R=/^rgb\(\s*[\d]{1,3}\s*,\s*[\d]{1,3}\s*,\s*[\d]{1,3}\s*\)|rgba\(\s*[\d]{1,3}\s*,\s*[\d]{1,3}\s*,\s*[\d]{1,3}\s*,\s*[\.\d]+\s*\)$/,F=/^#[0-9a-f]{3}$/i,L=new RegExp("^(\\-?\\+?\\.?\\d+\\.?\\d*(s|ms))$"),M=/^url\([\s\S]+\)$/i,P=new RegExp("^var\\(\\-\\-[^\\)]+\\)$","i"),U={"^":["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"]},N=["%","ch","cm","em","ex","in","mm","pc","pt","px","rem","vh","vm","vmax","vmin","vw"];t.exports=E},{}],59:[function(e,t,n){function r(e,t,n){var r,i,a,u=[];for(a=e.length-1;a>=0;a--)(i=e[a])[0]==m.PROPERTY&&(!t&&o(i)||n&&n.indexOf(i[1][1])>-1||((r=p(i)).all=e,r.position=a,u.unshift(r)));return u}function o(e){var t,n,r;for(t=2,n=e.length;t0&&!r[1].match(g.IMPORTANT_WORD_PATTERN)&&g.BANG_SUFFIX_PATTERN.test(r[1])?t=[h.BANG]:r[1].indexOf(g.BACKSLASH)>0&&r[1].indexOf(g.BACKSLASH)==r[1].length-g.BACKSLASH.length-1?t=[h.BACKSLASH,r[1].substring(r[1].indexOf(g.BACKSLASH)+1)]:0===r[1].indexOf(g.BACKSLASH)&&2==r[1].length&&(t=[h.BACKSLASH,r[1].substring(1)]):t=[h.BANG],t}function s(e){if(e.length<3)return!1;var t=e[e.length-1];return!!g.IMPORTANT_TOKEN_PATTERN.test(t[1])||!(!g.IMPORTANT_WORD_PATTERN.test(t[1])||!g.SUFFIX_BANG_PATTERN.test(e[e.length-2][1]))}function l(e){var t=e[e.length-1],n=e[e.length-2];g.IMPORTANT_TOKEN_PATTERN.test(t[1])?t[1]=t[1].replace(g.IMPORTANT_TOKEN_PATTERN,""):(t[1]=t[1].replace(g.IMPORTANT_WORD_PATTERN,""),n[1]=n[1].replace(g.SUFFIX_BANG_PATTERN,"")),0===t[1].length&&e.pop(),0===n[1].length&&e.pop()}function c(e){e[1][1]=e[1][1].substring(1)}function f(e,t){var n=e[e.length-1];n[1]=n[1].substring(0,n[1].indexOf(t[0]==h.BACKSLASH?g.BACKSLASH:g.BANG)).trim(),0===n[1].length&&e.pop()}function p(e){var t=s(e);t&&l(e);var n=u(e);return n[0]==h.ASTERISK||n[0]==h.UNDERSCORE?c(e):n[0]!=h.BACKSLASH&&n[0]!=h.BANG||f(e,n),{block:e[2]&&e[2][0]==m.PROPERTY_BLOCK,components:[],dirty:!1,hack:n,important:t,name:e[1][1],multiplex:e.length>3&&a(e),position:0,shorthand:!1,unused:!1,value:e.slice(2)}}var h=e("./hack"),d=e("../tokenizer/marker"),m=e("../tokenizer/token"),g={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\(--.+\)$/};t.exports={all:r,single:p}},{"../tokenizer/marker":84,"../tokenizer/token":85,"./hack":9}],60:[function(e,t,n){function r(e){return o(a["*"],i(e))}function o(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]=o(r,t[n]||{})}return t}function i(e){if("object"==typeof e)return e;if(!/[,\+\-]/.test(e))return a[e]||a["*"];var t=e.split(","),n=t[0]in a?a[t.shift()]:a["*"];return e={},t.forEach(function(t){var n="+"==t[0],r=t.substring(1).split("."),o=r[0],i=r[1];e[o]=e[o]||{},e[o][i]=n}),o(n,e)}var a={"*":{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}}};a.ie11=a["*"],a.ie10=a["*"],a.ie9=o(a["*"],{properties:{ieFilters:!0,ieSuffixHack:!0}}),a.ie8=o(a.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}}),a.ie7=o(a.ie8,{properties:{ieBangHack:!0},selectors:{ie7Hack:!0,mergeablePseudoClasses:[":first-child",":first-letter",":hover",":visited"]}}),t.exports=r},{}],61:[function(e,t,n){function r(e){return e||o}var o=e("../reader/load-remote-resource");t.exports=r},{"../reader/load-remote-resource":75}],62:[function(e,t,n){function r(e){var t={};return t[f.AfterAtRule]=e,t[f.AfterBlockBegins]=e,t[f.AfterBlockEnds]=e,t[f.AfterComment]=e,t[f.AfterProperty]=e,t[f.AfterRuleBegins]=e,t[f.AfterRuleEnds]=e,t[f.BeforeBlockEnds]=e,t[f.BetweenSelectors]=e,t}function o(e){var t={};return t[h.AroundSelectorRelation]=e,t[h.BeforeBlockBegins]=e,t[h.BeforeValue]=e,t}function i(e){return void 0!==e&&!1!==e&&("object"==typeof e&&"indentBy"in e&&(e=c(e,{indentBy:parseInt(e.indentBy)})),"object"==typeof e&&"indentWith"in e&&(e=c(e,{indentWith:l(e.indentWith)})),"object"==typeof e?c(d,e):"object"==typeof e?c(d,e):"string"==typeof e&&e==m?c(d,{breaks:r(!0),indentBy:2,spaces:o(!0)}):"string"==typeof e&&e==g?c(d,{breaks:{afterAtRule:!0,afterBlockBegins:!0,afterBlockEnds:!0,afterComment:!0,afterRuleEnds:!0,beforeBlockEnds:!0}}):"string"==typeof e?c(d,a(e)):d)}function a(e){return e.split(v).reduce(function(e,t){var n=t.split(b),r=n[0],o=n[1];return"breaks"==r||"spaces"==r?e[r]=u(o):"indentBy"==r||"wrapAt"==r?e[r]=parseInt(o):"indentWith"==r&&(e[r]=l(o)),e},{})}function u(e){return e.split(y).reduce(function(e,t){var n=t.split(_),r=n[0],o=n[1];return e[r]=s(o),e},{})}function s(e){switch(e){case w:case A:return!1;case E:case x:return!0;default:return e}}function l(e){switch(e){case"space":return p.Space;case"tab":return p.Tab;default:return e}}var c=e("../utils/override"),f={AfterAtRule:"afterAtRule",AfterBlockBegins:"afterBlockBegins",AfterBlockEnds:"afterBlockEnds",AfterComment:"afterComment",AfterProperty:"afterProperty",AfterRuleBegins:"afterRuleBegins",AfterRuleEnds:"afterRuleEnds",BeforeBlockEnds:"beforeBlockEnds",BetweenSelectors:"betweenSelectors"},p={Space:" ",Tab:"\t"},h={AroundSelectorRelation:"aroundSelectorRelation",BeforeBlockBegins:"beforeBlockBegins",BeforeValue:"beforeValue"},d={breaks:r(!1),indentBy:0,indentWith:p.Space,spaces:o(!1),wrapAt:!1},m="beautify",g="keep-breaks",v=";",b=":",y=",",_="=",w="false",A="off",E="true",x="on";t.exports={Breaks:f,Spaces:h,formatFrom:i}},{"../utils/override":96}],63:[function(e,t,n){(function(n){function r(e){return a(o(n.env.HTTP_PROXY||n.env.http_proxy),e||{})}function o(e){return e?{hostname:i.parse(e).hostname,port:parseInt(i.parse(e).port)}:{}}var i=e("url"),a=e("../utils/override");t.exports=r}).call(this,e("_process"))},{"../utils/override":96,_process:114,url:162}],64:[function(e,t,n){function r(e){return e||o}var o=5e3;t.exports=r},{}],65:[function(e,t,n){function r(e){return Array.isArray(e)?e:!1===e?["none"]:void 0===e?["local"]:e.split(",")}t.exports=r},{}],66:[function(e,t,n){function r(){}function o(e){var t=c(p,{}),n=f.Zero,r=f.One,o=f.Two;return void 0===e?(delete t[o],t):("string"==typeof e&&(e=parseInt(e)),"number"==typeof e&&e===parseInt(o)?t:"number"==typeof e&&e===parseInt(r)?(delete t[o],t):"number"==typeof e&&e===parseInt(n)?(delete t[o],delete t[r],t):("object"==typeof e&&(e=u(e)),r in e&&"roundingPrecision"in e[r]&&(e[r].roundingPrecision=l(e[r].roundingPrecision)),o in e&&"skipProperties"in e[o]&&"string"==typeof e[o].skipProperties&&(e[o].skipProperties=e[o].skipProperties.split(y)),(n in e||r in e||o in e)&&(t[n]=c(t[n],e[n])),r in e&&h in e[r]&&(t[r]=c(t[r],i(r,a(e[r][h]))),delete e[r][h]),r in e&&d in e[r]&&(t[r]=c(t[r],i(r,a(e[r][d]))),delete e[r][d]),r in e||o in e?t[r]=c(t[r],e[r]):delete t[r],o in e&&h in e[o]&&(t[o]=c(t[o],i(o,a(e[o][h]))),delete e[o][h]),o in e&&d in e[o]&&(t[o]=c(t[o],i(o,a(e[o][d]))),delete e[o][d]),o in e?t[o]=c(t[o],e[o]):delete t[o],t))}function i(e,t){var n,r=c(p[e],{});for(n in r)"boolean"==typeof r[n]&&(r[n]=t);return r}function a(e){switch(e){case m:case g:return!1;case v:case b:return!0;default:return e}}function u(e){var t,n,r=c(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]=s(r[t],t));return r}function s(e,t){return e.split(_).reduce(function(e,n){var r=n.split(w),o=r[0],u=a(r[1]);return h==o||d==o?e=c(e,i(t,u)):e[o]=u,e},{})}var l=e("./rounding-precision").roundingPrecisionFrom,c=e("../utils/override"),f={Zero:"0",One:"1",Two:"2"},p={};p[f.Zero]={},p[f.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:l(void 0),selectorsSortingMethod:"standard",specialComments:"all",tidyAtRules:!0,tidyBlockScopes:!0,tidySelectors:!0,transform:r},p[f.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 h="*",d="all",m="false",g="off",v="true",b="on",y=",",_=";",w=":";t.exports={OptimizationLevel:f,optimizationLevelFrom:o}},{"../utils/override":96,"./rounding-precision":69}],67:[function(e,t,n){(function(n){function r(e){return e?o.resolve(e):n.cwd()}var o=e("path");t.exports=r}).call(this,e("_process"))},{_process:114,path:112}],68:[function(e,t,n){function r(e){return void 0===e||!!e}t.exports=r},{}],69:[function(e,t,n){function r(e){return a(o(l),i(e))}function o(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}}function i(e){return null===e||void 0===e?{}:"boolean"==typeof e?{}:"number"==typeof e&&-1==e?o(l):"number"==typeof e?o(e):"string"==typeof e&&u.test(e)?o(parseInt(e)):"string"==typeof e&&e==l?o(l):"object"==typeof e?e:e.split(c).reduce(function(e,t){var n=t.split(f),r=n[0],i=parseInt(n[1]);return(isNaN(i)||-1==i)&&(i=l),s.indexOf(r)>-1?e=a(e,o(i)):e[r]=i,e},{})}var a=e("../utils/override"),u=/^\d+$/,s=["*","all"],l="off",c=",",f="=";t.exports={DEFAULT:l,roundingPrecisionFrom:r}},{"../utils/override":96}],70:[function(e,t,n){(function(n,r){function o(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&&e.length>0?i(r):n(e)}function i(e){var t,n,r,o=[],i=a(e.sourceTokens[0]);for(r=e.sourceTokens.length;e.indexs;)c.column--,o=e[l].originalPositionFor(c);return null===o.line&&i>1&&r>0?a(e,[i-1,s,l],n,r-1):null!==o.line?u(o):t}function u(e){return[e.line,e.column,e.source]}function s(e,t,n){e[t]=new l(n)}var l=e("source-map").SourceMapConsumer;t.exports=r},{"source-map":156}],73:[function(e,t,n){function r(e,t,n){var u,c,f,p,h,d,m=!t;if(0===n.length)return!1;for(t&&!s(e)&&(e=l+e),u=t?a.parse(e).host:e,c=t?e:i.resolve(e),d=0;d399)return f(o.statusCode,null);if(o.statusCode>299)return i=a.resolve(e,o.headers.location),r(i,t,n,f);o.on("data",function(e){u.push(e.toString())}),o.on("end",function(){var e=u.join("");f(null,e)})}}).on("error",function(e){d||(d=!0,f(e.message,null))}).on("timeout",function(){d||(d=!0,f("timeout",null))}).setTimeout(n)}var o=e("http"),i=e("https"),a=e("url"),u=e("../utils/is-http-resource"),s=e("../utils/is-https-resource"),l=e("../utils/override"),c="http:";t.exports=r},{"../utils/is-http-resource":91,"../utils/is-https-resource":92,"../utils/override":96,http:157,https:105,url:162}],76:[function(e,t,n){function r(e){return o.exec(e)}var o=/^data:(\S*?)?(;charset=[^;]+)?(;[^,]+?)?,(.+)/;t.exports=r},{}],77:[function(e,t,n){function r(e){return e.replace(i,o)}var o="/",i=/\\/g;t.exports=r},{}],78:[function(e,t,n){(function(n,r){function o(e,t,n){return i(e,t,function(e){return x(e,t,function(){return O(t,function(){return n(e)})})})}function i(e,t,r){return"string"==typeof e?a(e,t,r):n.isBuffer(e)?a(e.toString(),t,r):Array.isArray(e)?u(e,t,r):"object"==typeof e?s(e,t,r):void 0}function a(e,t,n){return t.source=void 0,t.sourcesContent[void 0]=e,t.stats.originalSize+=e.length,d(e,t,{inline:t.options.inline},n)}function u(e,t,n){return d(e.reduce(function(e,n){return"string"==typeof n?l(n,e):c(n,t,e)},[]).join(""),t,{inline:["all"]},n)}function s(e,t,n){return d(c(e,t,[]).join(""),t,{inline:["all"]},n)}function l(e,t){return t.push(h(f(e))),t}function c(e,t,n){var r,o,i;for(r in e)i=e[r],o=f(r),n.push(h(o)),t.sourcesContent[o]=i.styles,i.sourceMap&&p(i.sourceMap,o,t);return n}function f(e){var t,n,r=E.resolve("");return N(e)?e:(t=E.isAbsolute(e)?e:E.resolve(e),n=E.relative(r,t),B(n))}function p(e,t,n){var r="string"==typeof e?JSON.parse(e):e,o=N(t)?T(r,t):D(r,t||q,n.options.rebaseTo);n.inputSourceMapTracker.track(t,o)}function h(e){return R("url("+e+")","")+M.SEMICOLON}function d(e,t,n,r){var o,i={};return t.source?N(t.source)?(i.fromBase=t.source,i.toBase=t.source):E.isAbsolute(t.source)?(i.fromBase=E.dirname(t.source),i.toBase=t.options.rebaseTo):(i.fromBase=E.dirname(E.resolve(t.source)),i.toBase=t.options.rebaseTo):(i.fromBase=E.resolve(""),i.toBase=t.options.rebaseTo),o=F(e,t),o=S(o,t.options.rebase,t.validator,i),m(n.inline)?g(o,t,n,r):r(o)}function m(e){return!(1==e.length&&"none"==e[0])}function g(e,t,n,r){return v({afterContent:!1,callback:r,errors:t.errors,externalContext:t,fetch:t.options.fetch,inlinedStylesheets:n.inlinedStylesheets||t.inlinedStylesheets,inline:n.inline,inlineRequest:t.options.inlineRequest,inlineTimeout:t.options.inlineTimeout,isRemote:n.isRemote||!1,localOnly:t.localOnly,outputTokens:[],rebaseTo:t.options.rebaseTo,sourceTokens:e,warnings:t.warnings})}function v(e){var t,n,r;for(n=0,r=e.sourceTokens.length;n-1?(o.warnings.push('Ignoring remote @import of "'+e+'" as it has already been imported.'),o.sourceTokens=o.sourceTokens.slice(1),v(o)):o.localOnly&&o.afterContent?(o.warnings.push('Ignoring remote @import of "'+e+'" as no callback given and after other content.'),o.sourceTokens=o.sourceTokens.slice(1),v(o)):l?(o.warnings.push('Skipping remote @import of "'+e+'" as no protocol given.'),o.outputTokens=o.outputTokens.concat(o.sourceTokens.slice(0,1)),o.sourceTokens=o.sourceTokens.slice(1),v(o)):o.localOnly&&!s?(o.warnings.push('Skipping remote @import of "'+e+'" as no callback given.'),o.outputTokens=o.outputTokens.concat(o.sourceTokens.slice(0,1)),o.sourceTokens=o.sourceTokens.slice(1),v(o)):!a&&o.afterContent?(o.warnings.push('Ignoring remote @import of "'+e+'" as resource is not allowed and after other content.'),o.sourceTokens=o.sourceTokens.slice(1),v(o)):a?(o.inlinedStylesheets.push(e),s?i(null,o.externalContext.sourcesContent[e]):o.fetch(e,o.inlineRequest,o.inlineTimeout,i)):(o.warnings.push('Skipping remote @import of "'+e+'" as resource is not allowed.'),o.outputTokens=o.outputTokens.concat(o.sourceTokens.slice(0,1)),o.sourceTokens=o.sourceTokens.slice(1),v(o))}function _(e,t,n,r){var o,i,a=E.resolve(""),u=E.isAbsolute(e)?E.resolve(a,"/"==e[0]?e.substring(1):e):E.resolve(r.rebaseTo,e),s=E.relative(a,u),l=k(e,!1,r.inline),c=B(s),f=c in r.externalContext.sourcesContent;return r.inlinedStylesheets.indexOf(u)>-1?r.warnings.push('Ignoring local @import of "'+e+'" as it has already been imported.'):f||A.existsSync(u)&&A.statSync(u).isFile()?!l&&r.afterContent?r.warnings.push('Ignoring local @import of "'+e+'" as resource is not allowed and after other content.'):r.afterContent?r.warnings.push('Ignoring local @import of "'+e+'" as after other content.'):l?(o=f?r.externalContext.sourcesContent[c]:A.readFileSync(u,"utf-8"),r.inlinedStylesheets.push(u),r.inline=r.externalContext.options.inline,r.externalContext.source=c,r.externalContext.sourcesContent[c]=o,r.externalContext.stats.originalSize+=o.length,i=w(i=d(o,r.externalContext,r,function(e){return e}),t,n),r.outputTokens=r.outputTokens.concat(i)):(r.warnings.push('Skipping local @import of "'+e+'" as resource is not allowed.'),r.outputTokens=r.outputTokens.concat(r.sourceTokens.slice(0,1))):r.errors.push('Ignoring local @import of "'+e+'" as resource is missing.'),r.sourceTokens=r.sourceTokens.slice(1),v(r)}function w(e,t,n){return t?[[L.NESTED_BLOCK,[[L.NESTED_BLOCK_SCOPE,"@media "+t,n]],e]]:e}var A=e("fs"),E=e("path"),x=e("./apply-source-maps"),C=e("./extract-import-url-and-media"),k=e("./is-allowed-resource"),O=e("./load-original-sources"),B=e("./normalize-path"),S=e("./rebase"),D=e("./rebase-local-map"),T=e("./rebase-remote-map"),R=e("./restore-import"),F=e("../tokenizer/tokenize"),L=e("../tokenizer/token"),M=e("../tokenizer/marker"),P=e("../utils/has-protocol"),U=e("../utils/is-import"),N=e("../utils/is-remote-resource"),q="uri:unknown";t.exports=o}).call(this,{isBuffer:e("../../../is-buffer/index.js")},e("_process"))},{"../../../is-buffer/index.js":108,"../tokenizer/marker":84,"../tokenizer/token":85,"../tokenizer/tokenize":86,"../utils/has-protocol":89,"../utils/is-import":93,"../utils/is-remote-resource":94,"./apply-source-maps":70,"./extract-import-url-and-media":71,"./is-allowed-resource":73,"./load-original-sources":74,"./normalize-path":77,"./rebase":81,"./rebase-local-map":79,"./rebase-remote-map":80,"./restore-import":82,_process:114,fs:3,path:112}],79:[function(e,t,n){function r(e,t,n){var r=o.resolve(""),i=o.resolve(r,t),a=o.dirname(i);return e.sources=e.sources.map(function(e){return o.relative(n,o.resolve(a,e))}),e}var o=e("path");t.exports=r},{path:112}],80:[function(e,t,n){function r(e,t){var n=o.dirname(t);return e.sources=e.sources.map(function(e){return i.resolve(n,e)}),e}var o=e("path"),i=e("url");t.exports=r},{path:112,url:162}],81:[function(e,t,n){function r(e,t,n,r){return t?o(e,n,r):i(e,n,r)}function o(e,t,n){var r,i,l;for(i=0,l=e.length;i-1?b:e.indexOf(b)>-1?y:h(e)||d(e)?y:""}function h(e){return O.test(e)}function d(e){return x.test(e)}function m(e,t,n){var o=e.replace(C,"").replace(k,"").trim(),i=o.replace(A,"").replace(E,"").trim(),a=o[0]==y||o[0]==b?o[0]:p(i);return n?r(i,t):_+a+r(i,t)+a+w}var g=e("path"),v=e("url"),b='"',y="'",_="url(",w=")",A=/^["']/,E=/["']$/,x=/[\(\)]/,C=/^url\(/i,k=/\)$/,O=/\s/,B="win32"==n.platform;t.exports=m}).call(this,e("_process"))},{_process:114,path:112,url:162}],84:[function(e,t,n){var r={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:"_"};t.exports=r},{}],85:[function(e,t,n){var r={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"};t.exports=r},{}],86:[function(e,t,n){function r(e,t){return o(e,t,{level:p.BLOCK,position:{source:t.source||void 0,line:1,column:0,index:0}},!1)}function o(e,t,n,r){for(var h,d,m,g,b,y,_,w,A,E,x,C,k=[],O=k,B=[],S=[],D=n.level,T=[],R=[],F=[],L=0,M=!1,P=!1,U=!1,N=!1,q=n.position;q.index1)S.push(g),R.push(z),F.push(R.slice(0,R.length-2)),R=R.slice(R.length-2),g=[q.line,q.column-1,q.source],T.push(D),D=p.COMMENT;else if(E)T.push(D),D=p.COMMENT,R.push(z);else if(x)b=R.join("").trim()+z,h=[c.COMMENT,b,[i(g,b,t)]],O.push(h),D=T.pop(),g=S.pop()||null,R=F.pop()||[];else if(z!=l.SINGLE_QUOTE||y)if(z==l.SINGLE_QUOTE&&D==p.SINGLE_QUOTE)D=T.pop(),R.push(z);else if(z!=l.DOUBLE_QUOTE||y)if(z==l.DOUBLE_QUOTE&&D==p.DOUBLE_QUOTE)D=T.pop(),R.push(z);else if(!E&&!x&&z!=l.CLOSE_ROUND_BRACKET&&z!=l.OPEN_ROUND_BRACKET&&D!=p.COMMENT&&!y&&L>0)R.push(z);else if(z!=l.OPEN_ROUND_BRACKET||y||D==p.COMMENT||U)if(z!=l.CLOSE_ROUND_BRACKET||y||D==p.COMMENT||U)if(z==l.SEMICOLON&&D==p.BLOCK&&R[0]==l.AT)b=R.join("").trim(),k.push([c.AT_RULE,b,[i(g,b,t)]]),R=[];else if(z==l.COMMA&&D==p.BLOCK&&d)b=R.join("").trim(),d[1].push([u(d[0]),b,[i(g,b,t,d[1].length)]]),R=[];else if(z==l.COMMA&&D==p.BLOCK&&a(R)==c.AT_RULE)R.push(z);else if(z==l.COMMA&&D==p.BLOCK)d=[a(R),[],[]],b=R.join("").trim(),d[1].push([u(d[0]),b,[i(g,b,t,0)]]),R=[];else if(z==l.OPEN_CURLY_BRACKET&&D==p.BLOCK&&d&&d[0]==c.NESTED_BLOCK)b=R.join("").trim(),d[1].push([c.NESTED_BLOCK_SCOPE,b,[i(g,b,t)]]),k.push(d),T.push(D),q.column++,q.index++,R=[],d[2]=o(e,t,n,!0),d=null;else if(z==l.OPEN_CURLY_BRACKET&&D==p.BLOCK&&a(R)==c.NESTED_BLOCK)b=R.join("").trim(),(d=d||[c.NESTED_BLOCK,[],[]])[1].push([c.NESTED_BLOCK_SCOPE,b,[i(g,b,t)]]),k.push(d),T.push(D),q.column++,q.index++,R=[],d[2]=o(e,t,n,!0),d=null;else if(z==l.OPEN_CURLY_BRACKET&&D==p.BLOCK)b=R.join("").trim(),(d=d||[a(R),[],[]])[1].push([u(d[0]),b,[i(g,b,t,d[1].length)]]),O=d[2],k.push(d),T.push(D),D=p.RULE,R=[];else if(z==l.OPEN_CURLY_BRACKET&&D==p.RULE&&U)B.push(d),d=[c.PROPERTY_BLOCK,[]],m.push(d),O=d[1],T.push(D),D=p.RULE,U=!1;else if(z!=l.COLON||D!=p.RULE||U)if(z==l.SEMICOLON&&D==p.RULE&&m&&B.length>0&&R.length>0&&R[0]==l.AT)b=R.join("").trim(),d[1].push([c.AT_RULE,b,[i(g,b,t)]]),R=[];else if(z==l.SEMICOLON&&D==p.RULE&&m&&R.length>0)b=R.join("").trim(),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),m=null,U=!1,R=[];else if(z==l.SEMICOLON&&D==p.RULE&&m&&0===R.length)m=null,U=!1;else if(z==l.SEMICOLON&&D==p.RULE&&R.length>0&&R[0]==l.AT)b=R.join(""),O.push([c.AT_RULE,b,[i(g,b,t)]]),U=!1,R=[];else if(z==l.SEMICOLON&&D==p.RULE&&N)N=!1,R=[];else if(z==l.SEMICOLON&&D==p.RULE&&0===R.length);else if(z==l.CLOSE_CURLY_BRACKET&&D==p.RULE&&m&&U&&R.length>0&&B.length>0)b=R.join(""),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),m=null,O=(d=B.pop())[2],D=T.pop(),U=!1,R=[];else if(z==l.CLOSE_CURLY_BRACKET&&D==p.RULE&&m&&R.length>0&&R[0]==l.AT&&B.length>0)b=R.join(""),d[1].push([c.AT_RULE,b,[i(g,b,t)]]),m=null,O=(d=B.pop())[2],D=T.pop(),U=!1,R=[];else if(z==l.CLOSE_CURLY_BRACKET&&D==p.RULE&&m&&B.length>0)m=null,O=(d=B.pop())[2],D=T.pop(),U=!1;else if(z==l.CLOSE_CURLY_BRACKET&&D==p.RULE&&m&&R.length>0)b=R.join(""),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),m=null,d=B.pop(),O=k,D=T.pop(),U=!1,R=[];else if(z==l.CLOSE_CURLY_BRACKET&&D==p.RULE&&R.length>0&&R[0]==l.AT)m=null,d=null,b=R.join("").trim(),O.push([c.AT_RULE,b,[i(g,b,t)]]),O=k,D=T.pop(),U=!1,R=[];else if(z==l.CLOSE_CURLY_BRACKET&&D==p.RULE&&T[T.length-1]==p.RULE)m=null,O=(d=B.pop())[2],D=T.pop(),U=!1,N=!0,R=[];else if(z==l.CLOSE_CURLY_BRACKET&&D==p.RULE)m=null,d=null,O=k,D=T.pop(),U=!1;else if(z==l.CLOSE_CURLY_BRACKET&&D==p.BLOCK&&!r&&q.index<=e.length-1)t.warnings.push("Unexpected '}' at "+f([q.line,q.column,q.source])+"."),R.push(z);else{if(z==l.CLOSE_CURLY_BRACKET&&D==p.BLOCK)break;z==l.OPEN_ROUND_BRACKET&&D==p.RULE&&U?(R.push(z),L++):z==l.CLOSE_ROUND_BRACKET&&D==p.RULE&&U&&1==L?(R.push(z),b=R.join("").trim(),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),L--,R=[]):z==l.CLOSE_ROUND_BRACKET&&D==p.RULE&&U?(R.push(z),L--):z==l.FORWARD_SLASH&&e[q.index+1]!=l.ASTERISK&&D==p.RULE&&U&&R.length>0?(b=R.join("").trim(),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),m.push([c.PROPERTY_VALUE,z,[[q.line,q.column,q.source]]]),R=[]):z==l.FORWARD_SLASH&&e[q.index+1]!=l.ASTERISK&&D==p.RULE&&U?(m.push([c.PROPERTY_VALUE,z,[[q.line,q.column,q.source]]]),R=[]):z==l.COMMA&&D==p.RULE&&U&&R.length>0?(b=R.join("").trim(),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),m.push([c.PROPERTY_VALUE,z,[[q.line,q.column,q.source]]]),R=[]):z==l.COMMA&&D==p.RULE&&U?(m.push([c.PROPERTY_VALUE,z,[[q.line,q.column,q.source]]]),R=[]):z==l.CLOSE_SQUARE_BRACKET&&m&&m.length>1&&R.length>0&&s(R)?(R.push(z),b=R.join("").trim(),m[m.length-1][1]+=b,R=[]):(_||w&&!A)&&D==p.RULE&&U&&m&&R.length>0?(b=R.join("").trim(),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),R=[]):A&&D==p.RULE&&U&&m&&R.length>1?(b=R.join("").trim(),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),R=[]):A&&D==p.RULE&&U?R=[]:1==R.length&&A?R.pop():(R.length>0||!_&&!w&&!A)&&R.push(z)}else b=R.join("").trim(),m=[c.PROPERTY,[c.PROPERTY_NAME,b,[i(g,b,t)]]],O.push(m),U=!0,R=[];else R.push(z),L--;else R.push(z),L++;else T.push(D),D=p.DOUBLE_QUOTE,R.push(z);else T.push(D),D=p.SINGLE_QUOTE,R.push(z);else R.push(z);C=!C&&z==l.BACK_SLASH,M=E,P=x,q.line=A||w?q.line+1:q.line,q.column=A||w?0:q.column+1}return U&&t.warnings.push("Missing '}' at "+f([q.line,q.column,q.source])+"."),U&&R.length>0&&(b=R.join("").replace(v,""),m.push([c.PROPERTY_VALUE,b,[i(g,b,t)]]),R=[]),R.length>0&&t.warnings.push("Invalid character(s) '"+R.join("")+"' at "+f(g)+". Ignoring."),k}function i(e,t,n,r){var o=e[2];return n.inputSourceMapTracker.isTracking(o)?n.inputSourceMapTracker.originalPositionFor(e,t.length,r):e}function a(e){var t=e[0]==l.AT||e[0]==l.UNDERSCORE,n=e.join("").split(g)[0];return t&&d.indexOf(n)>-1?c.NESTED_BLOCK:t&&h.indexOf(n)>-1?c.AT_RULE:t?c.AT_RULE_BLOCK:c.RULE}function u(e){return e==c.RULE?c.RULE_SCOPE:e==c.NESTED_BLOCK?c.NESTED_BLOCK_SCOPE:e==c.AT_RULE_BLOCK?c.AT_RULE_BLOCK_SCOPE:void 0}function s(e){return m.test(e.join("")+l.CLOSE_SQUARE_BRACKET)}var l=e("./marker"),c=e("./token"),f=e("../utils/format-position"),p={BLOCK:"block",COMMENT:"comment",DOUBLE_QUOTE:"double-quote",RULE:"rule",SINGLE_QUOTE:"single-quote"},h=["@charset","@import"],d=["@-moz-document","@document","@-moz-keyframes","@-ms-keyframes","@-o-keyframes","@-webkit-keyframes","@keyframes","@media","@supports"],m=/^\[\s*\d+\s*\]$/,g=/[\s\(]/,v=/[\s|\}]*$/;t.exports=r},{"../utils/format-position":88,"./marker":84,"./token":85}],87:[function(e,t,n){function r(e){for(var t=e.slice(0),n=0,o=t.length;nr?1:-1;return s.length>l.length?1:s.length==l.length?0:-1}function o(e){return""+parseInt(e)==e?parseInt(e):e}var i=/([0-9]+)/;t.exports=r},{}],96:[function(e,t,n){function r(e,t){var n,o,i,a={};for(n in e)i=e[n],Array.isArray(i)?a[n]=i.slice(0):a[n]="object"==typeof i&&null!==i?r(i,{}):i;for(o in t)i=t[o],o in a&&Array.isArray(i)?a[o]=i.slice(0):a[o]=o in a&&"object"==typeof i&&null!==i?r(a[o],i):i;return a}t.exports=r},{}],97:[function(e,t,n){function r(e,t){var n,r=o.OPEN_ROUND_BRACKET,i=o.CLOSE_ROUND_BRACKET,a=0,u=0,s=0,l=e.length,c=[];if(-1==e.indexOf(t))return[e];if(-1==e.indexOf(r))return e.split(t);for(;u0&&u+1=0&&e[t][0]==S.COMMENT;t--);return t}function d(e,t,n,r){var o=e.store,i=t[n],a=i[2][0]==S.PROPERTY_BLOCK,u=ne.format.wrapAt&&(i(e,s),e.output.push(s))}function i(e,t){var n=t.split("\n");e.line+=n.length-1,e.column=n.length>1?0:e.column+n.pop().length}function a(e,t){var n={column:0,format:t.options.format,indentBy:0,indentWith:"",line:1,output:[],spaceAfterClosingBrace:t.options.compatibility.properties.spaceAfterClosingBrace,store:r,wrap:t.options.format.wrapAt?o:function(){}};return u(n,e),{styles:n.output.join("")}}var u=e("./helpers").all,s=e("os").EOL;t.exports=a},{"./helpers":98,os:111}],101:[function(e,t,n){(function(n){function r(e,t){var n="string"==typeof t,r=n?t:t[1],o=n?null:t[2];(0,e.wrap)(e,r),i(e,r,o),e.output.push(r)}function o(e,t){e.column+t.length>e.format.wrapAt&&(i(e,f,!1),e.output.push(f))}function i(e,t,n){var r=t.split("\n");n&&a(e,n),e.line+=r.length-1,e.column=r.length>1?0:e.column+r.pop().length}function a(e,t){for(var n=0,r=t.length;n0&&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.on=r.prototype.addListener,r.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!o(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},r.prototype.removeListener=function(e,t){var n,r,i,u;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(u=i;u-- >0;)if(n[u]===t||n[u].listener&&n[u].listener===t){r=u;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(n=this._events[e],o(n))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]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(o(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},{}],104:[function(e,t,n){(function(e){!function(r){var o="object"==typeof n&&n,i="object"==typeof t&&t&&t.exports==o&&t,a="object"==typeof e&&e;a.global!==a&&a.window!==a||(r=a);var u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[\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,h={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},d=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,m=/[\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]/,g=/&#([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,v={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:"‌"},b={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:"ÿ"},y={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:"Ÿ"},_=[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],w=String.fromCharCode,A={}.hasOwnProperty,E=function(e,t){return A.call(e,t)},x=function(e,t){for(var n=-1,r=e.length;++n=55296&&e<=57343||e>1114111?(t&&S("character reference outside the permissible Unicode range"),"�"):E(y,e)?(t&&S("disallowed character reference"),y[e]):(t&&x(_,e)&&S("disallowed character reference"),e>65535&&(n+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),n+=w(e))},O=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},B=function(e){return"&#"+e+";"},S=function(e){throw Error("Parse error: "+e)},D=function(e,t){(t=C(t,D.options)).strict&&m.test(e)&&S("forbidden code point");var n=t.encodeEverything,r=t.useNamedReferences,o=t.allowUnsafeSymbols,i=t.decimal?B:O,a=function(e){return i(e.charCodeAt(0))};return n?(e=e.replace(s,function(e){return r&&E(f,e)?"&"+f[e]+";":a(e)}),r&&(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),r&&(e=e.replace(c,function(e){return"&"+f[e]+";"}))):r?(o||(e=e.replace(p,function(e){return"&"+f[e]+";"})),e=(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(c,function(e){return"&"+f[e]+";"})):o||(e=e.replace(p,a)),e.replace(u,function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return i(1024*(t-55296)+n-56320+65536)}).replace(l,a)};D.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var T=function(e,t){var n=(t=C(t,T.options)).strict;return n&&d.test(e)&&S("malformed character reference"),e.replace(g,function(e,r,o,i,a,u,s,l){var c,f,p,h,d,m;return r?(p=r,f=o,n&&!f&&S("character reference was not terminated by a semicolon"),c=parseInt(p,10),k(c,n)):i?(h=i,f=a,n&&!f&&S("character reference was not terminated by a semicolon"),c=parseInt(h,16),k(c,n)):u?(d=u,E(v,d)?v[d]:(n&&S("named character reference was not terminated by a semicolon"),e)):(d=s,m=l,m&&t.isAttributeValue?(n&&"="==m&&S("`&` did not start a character reference"),e):(n&&S("named character reference was not terminated by a semicolon"),b[d]+(m||"")))})};T.options={isAttributeValue:!1,strict:!1};var R={version:"1.1.1",encode:D,decode:T,escape:function(e){return e.replace(p,function(e){return h[e]})},unescape:T};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return R});else if(o&&!o.nodeType)if(i)i.exports=R;else for(var F in R)E(R,F)&&(o[F]=R[F]);else r.he=R}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],105:[function(e,t,n){var r=e("http"),o=t.exports;for(var i in r)r.hasOwnProperty(i)&&(o[i]=r[i]);o.request=function(e,t){return e||(e={}),e.scheme="https",e.protocol="https:",r.request.call(this,e,t)}},{http:157}],106:[function(e,t,n){n.read=function(e,t,n,r,o){var i,a,u=8*o-r-1,s=(1<>1,c=-7,f=n?o-1:0,p=n?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-c)-1,h>>=-c,c+=u;c>0;i=256*i+e[t+f],f+=p,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=p,c-=8);if(0===i)i=1-l;else{if(i===s)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=l}return(h?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,u,s,l=8*i-o-1,c=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-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?(u=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+f>=1?p/s:p*Math.pow(2,1-f))*s>=2&&(a++,s/=2),a+f>=c?(u=0,a=c):a+f>=1?(u=(t*s-1)*Math.pow(2,o),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&u,h+=d,u/=256,o-=8);for(a=a<0;e[n+h]=255&a,h+=d,a/=256,l-=8);e[n+h-d]|=128*m}},{}],107:[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}},{}],108:[function(e,t,n){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function o(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}t.exports=function(e){return null!=e&&(r(e)||o(e)||!!e._isBuffer)}},{}],109:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],110:[function(e,t,n){"use strict";function r(e){return e.source.slice(1,-1)}var o=e("xml-char-classes");t.exports=new RegExp("^["+r(o.letter)+"_]["+r(o.letter)+r(o.digit)+"\\.\\-_"+r(o.combiningChar)+r(o.extender)+"]*$")},{"xml-char-classes":165}],111:[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"},{}],112:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,o="/"===a.charAt(0))}return n=t(r(n.split("/"),function(e){return!!e}),!o).join("/"),(o?"/":"")+n||"."},n.normalize=function(e){var o=n.isAbsolute(e),i="/"===a(e,-1);return(e=t(r(e.split("/"),function(e){return!!e}),!o).join("/"))||o||(e="."),e&&i&&(e+="/"),(o?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=r(e.split("/")),i=r(t.split("/")),a=Math.min(o.length,i.length),u=a,s=0;s1)for(var n=1;n1&&(r=n[0]+"@",e=n[1]),r+i((e=e.replace(R,".")).split("."),t).join(".")}function u(e){for(var t,n,r=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(t+=P((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=P(e)}).join("")}function l(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:A}function c(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function f(e,t,n){var r=0;for(e=n?M(e/k):e>>1,e+=M(e/t);e>L*x>>1;r+=A)e=M(e/L);return M(r+(L+1)*e/(e+C))}function p(e){var t,n,r,i,a,u,c,p,h,d,m=[],g=e.length,v=0,b=B,y=O;for((n=e.lastIndexOf(S))<0&&(n=0),r=0;r=128&&o("not-basic"),m.push(e.charCodeAt(r));for(i=n>0?n+1:0;i=g&&o("invalid-input"),((p=l(e.charCodeAt(i++)))>=A||p>M((w-v)/u))&&o("overflow"),v+=p*u,h=c<=y?E:c>=y+x?x:c-y,!(pM(w/(d=A-h))&&o("overflow"),u*=d;y=f(v-a,t=m.length+1,0==a),M(v/t)>w-b&&o("overflow"),b+=M(v/t),v%=t,m.splice(v++,0,b)}return s(m)}function h(e){var t,n,r,i,a,s,l,p,h,d,m,g,v,b,y,_=[];for(g=(e=u(e)).length,t=B,n=0,a=O,s=0;s=t&&mM((w-n)/(v=r+1))&&o("overflow"),n+=(l-t)*v,t=l,s=0;sw&&o("overflow"),m==t){for(p=n,h=A;d=h<=a?E:h>=a+x?x:h-a,!(p= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=A-E,M=Math.floor,P=String.fromCharCode;if(y={version:"1.4.1",ucs2:{decode:u,encode:s},decode:p,encode:h,toASCII:m,toUnicode:d},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return y});else if(g&&v)if(t.exports==g)v.exports=y;else for(_ in y)y.hasOwnProperty(_)&&(g[_]=y[_]);else r.punycode=y}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],116:[function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var u=/\+/g;e=e.split(t);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c=0?(f=m.substr(0,g),p=m.substr(g+1)):(f=m,p=""),h=decodeURIComponent(f),d=decodeURIComponent(p),r(a,h)?o(a[h])?a[h].push(d):a[h]=[a[h],d]:a[h]=d}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],117:[function(e,t,n){"use strict";function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r0)if(t.ended&&!o){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&o){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var l;!t.decoder||o||r||(n=t.decoder.write(n),l=!t.objectMode&&0===n.length),o||(t.reading=!1),l||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,o?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&p(e))),d(e,t)}else o||(t.reading=!1);return u(t)}function u(e){return!e.ended&&(e.needReadable||e.length=I?e=I:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function l(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=s(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function c(e,t){var n=null;return F.isBuffer(t)||"string"==typeof t||null===t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function f(e,t){if(!t.ended){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,p(e)}}function p(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(U("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?S(h,e):h(e))}function h(e){U("emit readable"),e.emit("readable"),_(e)}function d(e,t){t.readingMore||(t.readingMore=!0,S(m,e,t))}function m(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=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=A(e,t.buffer,t.decoder),n}function A(e,t,n){var r;return ei.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}function x(e,t){var n=L.allocUnsafe(e),r=t.head,o=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0===(e-=a)){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}function C(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,S(k,t,e))}function k(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function O(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return U("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?C(this):p(this),null;if(0===(e=l(e,t))&&t.ended)return 0===t.length&&C(this),null;var r=t.needReadable;U("need readable",r),(0===t.length||t.length-e0?w(e,t):null,null===o?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&C(this)),null!==o&&this.emit("data",o),o},i.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},i.prototype.pipe=function(e,t){function o(e){U("onunpipe"),e===p&&a()}function i(){U("onend"),e.end()}function a(){U("cleanup"),e.removeListener("close",l),e.removeListener("finish",c),e.removeListener("drain",m),e.removeListener("error",s),e.removeListener("unpipe",o),p.removeListener("end",i),p.removeListener("end",a),p.removeListener("data",u),v=!0,!h.awaitDrain||e._writableState&&!e._writableState.needDrain||m()}function u(t){U("ondata"),b=!1,!1!==e.write(t)||b||((1===h.pipesCount&&h.pipes===e||h.pipesCount>1&&-1!==O(h.pipes,e))&&!v&&(U("false write response, pause",p._readableState.awaitDrain),p._readableState.awaitDrain++,b=!0),p.pause())}function s(t){U("onerror",t),f(),e.removeListener("error",s),0===T(e,"error")&&e.emit("error",t)}function l(){e.removeListener("finish",c),f()}function c(){U("onfinish"),e.removeListener("close",l),f()}function f(){U("unpipe"),p.unpipe(e)}var p=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=e;break;case 1:h.pipes=[h.pipes,e];break;default:h.pipes.push(e)}h.pipesCount+=1,U("pipe count=%d opts=%j",h.pipesCount,t);var d=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?i:a;h.endEmitted?S(d):p.once("end",d),e.on("unpipe",o);var m=g(p);e.on("drain",m);var v=!1,b=!1;return p.on("data",u),r(e,"error",s),e.once("close",l),e.once("finish",c),e.emit("pipe",p),h.flowing||(U("pipe resume"),p.resume()),e},i.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o-1?setImmediate:x;a.WritableState=i;var k=e("core-util-is");k.inherits=e("inherits");var O={deprecate:e("util-deprecate")},B=e("./internal/streams/stream"),S=e("buffer").Buffer,D=e("buffer-shims");k.inherits(a,B),i.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(i.prototype,"buffer",{get:O.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(e){}}();var T;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(T=Function.prototype[Symbol.hasInstance],Object.defineProperty(a,Symbol.hasInstance,{value:function(e){return!!T.call(this,e)||e&&e._writableState instanceof i}})):T=function(e){return e instanceof this},a.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},a.prototype.write=function(e,t,n){var o=this._writableState,i=!1,a=S.isBuffer(e);return"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=r),o.ended?u(this,n):(a||s(this,o,e,n))&&(o.pendingcb++,i=c(this,o,a,e,t,n)),i},a.prototype.cork=function(){this._writableState.corked++},a.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||v(this,e))},a.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},a.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},a.prototype._writev=null,a.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||w(this,r,n)}}).call(this,e("_process"))},{"./_stream_duplex":119,"./internal/streams/stream":125,_process:114,buffer:5,"buffer-shims":4,"core-util-is":102,inherits:107,"process-nextick-args":113,"util-deprecate":164}],124:[function(e,t,n){"use strict";function r(){this.head=null,this.tail=null,this.length=0}e("buffer").Buffer;var o=e("buffer-shims");t.exports=r,r.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},r.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},r.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}},r.prototype.clear=function(){this.head=this.tail=null,this.length=0},r.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},r.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var t=o.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t}},{buffer:5,"buffer-shims":4}],125:[function(e,t,n){t.exports=e("events").EventEmitter},{events:103}],126:[function(e,t,n){"use strict";function r(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}}function o(e){var t=r(e);if("string"!=typeof t&&(b.isEncoding===y||!y(e)))throw new Error("Unknown encoding: "+e);return t||e}function i(e){this.encoding=o(e);var t;switch(this.encoding){case"utf16le":this.text=p,this.end=h,t=4;break;case"utf8":this.fillLast=l,t=4;break;case"base64":this.text=d,this.end=m,t=3;break;default:return this.write=g,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=b.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function u(e,t,n){var r=t.length-1;if(r=0?(o>0&&(e.lastNeed=o-1),o):--r=0?(o>0&&(e.lastNeed=o-2),o):--r=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0)}function s(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�".repeat(n);if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�".repeat(n+1);if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�".repeat(n+2)}}function l(e){var t=this.lastTotal-this.lastNeed,n=s(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 c(e,t){var n=u(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)}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�".repeat(this.lastTotal-this.lastNeed):t}function p(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&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 h(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 d(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 m(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}var b=e("safe-buffer").Buffer,y=b.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}};n.StringDecoder=i,i.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-1){if(++o-1&&(n=n.toString(),null===e.port&&(e.port=n),e.extra.portIsDefault=e.port===n)}t.exports=r},{}],137:[function(e,t,n){"use strict";function r(e,t){e.query.string.full=o(e.query.object,!1),t.removeEmptyQueries&&(e.query.string.stripped=o(e.query.object,!0))}function o(e,t){var n=0,r="";for(var o in e)if(""!==o&&!0===i.call(e,o)){var a=e[o];""===a&&t||(r+=1==++n?"?":"&",o=encodeURIComponent(o),r+=""!==a?o+"="+encodeURIComponent(a).replace(/%20/g,"+"):o)}return r}var i=Object.prototype.hasOwnProperty;t.exports=r},{}],138:[function(e,t,n){"use strict";function r(e){var t=e.protocol;return t&&t.indexOf(":")===t.length-1&&(t=t.substr(0,t.length-1)),e.host={full:e.hostname,stripped:null},e.path={absolute:{array:null,string:e.pathname},relative:{array:null,string:null}},e.query={object:e.query,string:{full:null,stripped:null}},e.extra={hrefInfo:{minimumPathOnly:null,minimumResourceOnly:null,minimumQueryOnly:null,minimumHashOnly:null,empty:null,separatorOnlyQuery:"?"===e.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:e.slashes},e.resource=null,e.scheme=t,delete e.hostname,delete e.pathname,delete e.protocol,delete e.search,delete e.slashes,e}function o(e,t){var n=!0;return t.rejectedSchemes.every(function(t){return n=!(0===e.indexOf(t+":"))}),n}function i(e,t){return o(e,t)?r(a(e,!0,t.slashesDenoteHost)):{href:e,valid:!1}}var a=e("url").parse;t.exports=i},{url:162}],139:[function(e,t,n){"use strict";function r(e,t,n){u.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=s.clone(t.host)),e.extra.relation.minimumPort&&i(e,t),e.extra.relation.minimumScheme&&o(e,t),u.pathOn(e,t,n),e.extra.relation.minimumResource&&a(e,t),e.extra.relation.minimumQuery&&(e.query=s.clone(t.query)),e.extra.relation.minimumHash&&(e.hash=t.hash)}function o(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=s.clone(t.path)}function i(e,t){e.port=t.port,e.extra.portIsDefault=t.extra.portIsDefault}function a(e,t){e.resource=t.resource,e.extra.resourceIsIndex=t.extra.resourceIsIndex}var u=e("./findRelation"),s=e("../util/object"),l=e("../util/path");t.exports=r},{"../util/object":143,"../util/path":144,"./findRelation":140}],140:[function(e,t,n){"use strict";function r(e,t,n){var r=e.extra.hrefInfo.minimumPathOnly,o=e.scheme===t.scheme||!e.scheme,i=o&&(e.auth===t.auth||n.removeAuth||r),a=n.ignore_www?"stripped":"full",u=i&&(e.host[a]===t.host[a]||r),s=u&&(e.port===t.port||r);e.extra.relation.minimumScheme=o,e.extra.relation.minimumAuth=i,e.extra.relation.minimumHost=u,e.extra.relation.minimumPort=s,e.extra.relation.maximumScheme=!o||o&&!i,e.extra.relation.maximumAuth=!o||o&&!u,e.extra.relation.maximumHost=!o||o&&!s}function o(e,t,n){var r=e.extra.hrefInfo.minimumQueryOnly,o=e.extra.hrefInfo.minimumHashOnly,i=e.extra.hrefInfo.empty,a=e.extra.relation.minimumPort,u=e.extra.relation.minimumScheme,s=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=s&&(l||r||o||i),f=n.removeEmptyQueries?"stripped":"full",p=e.query.string[f],h=t.query.string[f],d=c&&!!p&&p===h||(o||i)&&!e.extra.hrefInfo.separatorOnlyQuery,m=d&&e.hash===t.hash;e.extra.relation.minimumPath=s,e.extra.relation.minimumResource=c,e.extra.relation.minimumQuery=d,e.extra.relation.minimumHash=m,e.extra.relation.maximumPort=!u||u&&!s,e.extra.relation.maximumPath=!u||u&&!c,e.extra.relation.maximumResource=!u||u&&!d,e.extra.relation.maximumQuery=!u||u&&!m,e.extra.relation.maximumHash=!u||u&&!m,e.extra.relation.overridesQuery=s&&e.extra.relation.maximumResource&&!d&&!!h}t.exports={pathOn:o,upToPath:r}},{}],141:[function(e,t,n){"use strict";function r(e,t,n){return o(t,e,n),i(t,e,n),t}var o=e("./absolutize"),i=e("./relativize");t.exports=r},{"./absolutize":139,"./relativize":142}],142:[function(e,t,n){"use strict";function r(e,t){var n=[],r=!0,o=-1;return t.forEach(function(t,i){r&&(e[i]!==t?r=!1:o=i),r||n.push("..")}),e.forEach(function(e,t){t>o&&n.push(e)}),n}function o(e,t,n){if(e.extra.relation.minimumScheme){var o=r(e.path.absolute.array,t.path.absolute.array);e.path.relative.array=o,e.path.relative.string=i.join(o)}}var i=e("../util/path");t.exports=o},{"../util/path":144}],143:[function(e,t,n){"use strict";function r(e){if(e instanceof Object){var t=e instanceof Array?[]:{};for(var n in e)e.hasOwnProperty(n)&&(t[n]=r(e[n]));return t}return e}function o(e){return!!e&&"object"==typeof e&&e.constructor===Object}function i(e,t){if(e instanceof Object&&t instanceof Object)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}t.exports={clone:r,isPlainObject:o,shallowMerge:i}},{}],144:[function(e,t,n){"use strict";function r(e){return e.length>0?e.join("/")+"/":""}function o(e){var t=[];return e.forEach(function(e){".."!==e?"."!==e&&t.push(e):t.length>0&&t.splice(t.length-1,1)}),t}t.exports={join:r,resolveDotSegments:o}},{}],145:[function(e,t,n){t.exports=e("buffer")},{buffer:5}],146:[function(e,t,n){function r(){this._array=[],this._set=Object.create(null)}var o=e("./util"),i=Object.prototype.hasOwnProperty;r.fromArray=function(e,t){for(var n=new r,o=0,i=e.length;o=0&&e>1;return 1==(1&e)?-t:t}var i=e("./base64");n.encode=function(e){var t,n="",o=r(e);do{t=31&o,(o>>>=5)>0&&(t|=32),n+=i.encode(t)}while(o>0);return n},n.decode=function(e,t,n){var r,a,u=e.length,s=0,l=0;do{if(t>=u)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=i.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&a),s+=(a&=31)<0?t-s>1?r(s,t,o,i,a,u):u==n.LEAST_UPPER_BOUND?t1?r(e,s,o,i,a,u):u==n.LEAST_UPPER_BOUND?s:e<0?-1:e}n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2,n.search=function(e,t,o,i){if(0===t.length)return-1;var a=r(-1,t.length,e,t,o,i||n.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===o(t[a],t[a-1],!0);)--a;return a}},{}],150:[function(e,t,n){function r(e,t){var n=e.generatedLine,r=t.generatedLine,o=e.generatedColumn,a=t.generatedColumn;return r>n||r==n&&a>=o||i.compareByGeneratedPositionsInflated(e,t)<=0}function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var i=e("./util");o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){r(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(i.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},n.MappingList=o},{"./util":155}],151:[function(e,t,n){function r(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function o(e,t){return Math.round(e+Math.random()*(t-e))}function i(e,t,n,a){if(n=0){var i=this._originalMappings[o];if(void 0===e.column)for(var a=i.originalLine;i&&i.originalLine===a;)r.push({line:u.getArg(i,"generatedLine",null),column:u.getArg(i,"generatedColumn",null),lastColumn:u.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o];else for(var l=i.originalColumn;i&&i.originalLine===t&&i.originalColumn==l;)r.push({line:u.getArg(i,"generatedLine",null),column:u.getArg(i,"generatedColumn",null),lastColumn:u.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o]}return r},n.SourceMapConsumer=r,o.prototype=Object.create(r.prototype),o.prototype.consumer=r,o.fromSourceMap=function(e){var t=Object.create(o.prototype),n=t._names=l.fromArray(e._names.toArray(),!0),r=t._sources=l.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var a=e._mappings.toArray().slice(),s=t.__generatedMappings=[],c=t.__originalMappings=[],p=0,h=a.length;p1&&(n.source=m+o[1],m+=o[1],n.originalLine=h+o[2],h=n.originalLine,n.originalLine+=1,n.originalColumn=d+o[3],d=n.originalColumn,o.length>4&&(n.name=g+o[4],g+=o[4])),A.push(n),"number"==typeof n.originalLine&&w.push(n)}f(A,u.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,f(w,u.compareByOriginalPositions),this.__originalMappings=w},o.prototype._findMapping=function(e,t,n,r,o,i){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 s.search(e,t,o,i)},o.prototype.computeColumnSpans=function(){for(var e=0;e=0){var o=this._generatedMappings[n];if(o.generatedLine===t.generatedLine){var i=u.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=u.join(this.sourceRoot,i)));var a=u.getArg(o,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:u.getArg(o,"originalLine",null),column:u.getArg(o,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},o.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},o.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=u.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=u.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.')},o.prototype.generatedPositionFor=function(e){var t=u.getArg(e,"source");if(null!=this.sourceRoot&&(t=u.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:u.getArg(e,"line"),originalColumn:u.getArg(e,"column")},o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",u.compareByOriginalPositions,u.getArg(e,"bias",r.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===n.source)return{line:u.getArg(i,"generatedLine",null),column:u.getArg(i,"generatedColumn",null),lastColumn:u.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},n.BasicSourceMapConsumer=o,a.prototype=Object.create(r.prototype),a.prototype.constructor=r,a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},r.prototype._serializeMappings=function(){for(var e,t,n,r,a=0,u=1,s=0,l=0,c=0,f=0,p="",h=this._mappings.toArray(),d=0,m=h.length;d0){if(!i.compareByGeneratedPositionsInflated(t,h[d-1]))continue;e+=","}e+=o.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=o.encode(r-f),f=r,e+=o.encode(t.originalLine-1-l),l=t.originalLine-1,e+=o.encode(t.originalColumn-s),s=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=o.encode(n-c),c=n)),p+=e}return p},r.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},r.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},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},n.SourceMapGenerator=r},{"./array-set":146,"./base64-vlq":147,"./mapping-list":150,"./util":155}],154:[function(e,t,n){function r(e,t,n,r,o){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==o?null:o,this[u]=!0,null!=r&&this.add(r)}var o=e("./source-map-generator").SourceMapGenerator,i=e("./util"),a=/(\r?\n)/,u="$$$isSourceNode$$$";r.fromStringWithSourceMap=function(e,t,n){function o(e,t){if(null===e||void 0===e.source)u.add(t);else{var o=n?i.join(n,e.source):e.source;u.add(new r(e.originalLine,e.originalColumn,o,t,e.name))}}var u=new r,s=e.split(a),l=function(){return s.shift()+(s.shift()||"")},c=1,f=0,p=null;return t.eachMapping(function(e){if(null!==p){if(!(c0&&(p&&o(p,l()),u.add(s.join(""))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);null!=r&&(null!=n&&(e=i.join(n,e)),u.setSourceContent(e,r))}),u},r.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[u]&&"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},r.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[u]&&"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},r.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n0){for(t=[],n=0;n=0;c--)"."===(a=s[c])?s.splice(c,1):".."===a?l++:l>0&&(""===a?(s.splice(c+1,l),l=0):(s.splice(c,2),l--));return""===(t=s.join("/"))&&(t=u?"/":"."),r?(r.path=t,i(r)):t}function u(e,t){""===e&&(e="."),""===t&&(t=".");var n=o(t),r=o(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),i(n);if(n||t.match(b))return t;if(r&&!r.host&&!r.path)return r.host=t,i(r);var u="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=u,i(r)):u}function s(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)}function l(e){return e}function c(e){return p(e)?"$"+e:e}function f(e){return p(e)?e.slice(1):e}function p(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;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function h(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:(r=e.generatedLine-t.generatedLine,0!==r?r:e.name-t.name)}function d(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:(r=e.originalColumn-t.originalColumn,0!==r?r:e.name-t.name)}function m(e,t){return e===t?0:e>t?1:-1}function g(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=m(e.source,t.source))?n:0!==(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,0!==n?n:m(e.name,t.name))}n.getArg=r;var v=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,b=/^data:.+\,.+$/;n.urlParse=o,n.urlGenerate=i,n.normalize=a,n.join=u,n.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(v)},n.relative=s;var y=function(){return!("__proto__"in Object.create(null))}();n.toSetString=y?l:c,n.fromSetString=y?l:f,n.compareByOriginalPositions=h,n.compareByGeneratedPositionsDeflated=d,n.compareByGeneratedPositionsInflated=g},{}],156:[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":152,"./lib/source-map-generator":153,"./lib/source-node":154}],157:[function(e,t,n){(function(t){var r=e("./lib/request"),o=e("xtend"),i=e("builtin-status-codes"),a=e("url"),u=n;u.request=function(e,n){e="string"==typeof e?a.parse(e):o(e);var i=-1===t.location.protocol.search(/^https?:$/)?"http:":"",u=e.protocol||i,s=e.hostname||e.host,l=e.port,c=e.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),e.url=(s?u+"//"+s:"")+(l?":"+l:"")+c,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new r(e);return n&&f.on("response",n),f},u.get=function(e,t){var n=u.request(e,t);return n.end(),n},u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.STATUS_CODES=i,u.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":159,"builtin-status-codes":6,url:162,xtend:166}],158:[function(e,t,n){(function(e){function t(){if(void 0!==i)return i;if(e.XMLHttpRequest){i=new e.XMLHttpRequest;try{i.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){i=null}}else i=null;return i}function r(e){var n=t();if(!n)return!1;try{return n.responseType=e,n.responseType===e}catch(e){}return!1}function o(e){return"function"==typeof e}n.fetch=o(e.fetch)&&o(e.ReadableStream),n.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),n.blobConstructor=!0}catch(e){}var i,a=void 0!==e.ArrayBuffer,u=a&&o(e.ArrayBuffer.prototype.slice);n.arraybuffer=n.fetch||a&&r("arraybuffer"),n.msstream=!n.fetch&&u&&r("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&a&&r("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||!!t()&&o(t().overrideMimeType),n.vbArray=o(e.VBArray),i=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],159:[function(e,t,n){(function(n,r,o){function i(e,t){return u.fetch&&t?"fetch":u.mozchunkedarraybuffer?"moz-chunked-arraybuffer":u.msstream?"ms-stream":u.arraybuffer&&e?"arraybuffer":u.vbArray&&e?"text:vbarray":"text"}function a(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}var u=e("./capability"),s=e("inherits"),l=e("./response"),c=e("readable-stream"),f=e("to-arraybuffer"),p=l.IncomingMessage,h=l.readyStates,d=t.exports=function(e){var t=this;c.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+new o(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(n){t.setHeader(n,e.headers[n])});var n,r=!0;if("disable-fetch"===e.mode||"timeout"in e)r=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!u.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}t._mode=i(n,r),t.on("finish",function(){t._onFinish()})};s(d,c.Writable),d.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();-1===m.indexOf(r)&&(n._headers[r]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},d.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,i=e._headers,a=null;"GET"!==t.method&&"HEAD"!==t.method&&(a=u.blobConstructor?new r.Blob(e._body.map(function(e){return f(e)}),{type:(i["content-type"]||{}).value||""}):o.concat(e._body).toString());var s=[];if(Object.keys(i).forEach(function(e){var t=i[e].name,n=i[e].value;Array.isArray(n)?n.forEach(function(e){s.push([t,e])}):s.push([t,n])}),"fetch"===e._mode)r.fetch(e._opts.url,{method:e._opts.method,headers:s,body:a||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin"}).then(function(t){e._fetchResponse=t,e._connect()},function(t){e.emit("error",t)});else{var l=e._xhr=new r.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(t){return void n.nextTick(function(){e.emit("error",t)})}"responseType"in l&&(l.responseType=e._mode.split(":")[0]),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"timeout"in t&&(l.timeout=t.timeout,l.ontimeout=function(){e.emit("timeout")}),s.forEach(function(e){l.setRequestHeader(e[0],e[1])}),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case h.LOADING:case h.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{l.send(a)}catch(t){return void n.nextTick(function(){e.emit("error",t)})}}}},d.prototype._onXHRProgress=function(){var e=this;a(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new p(e._xhr,e._fetchResponse,e._mode),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},d.prototype._write=function(e,t,n){this._body.push(e),n()},d.prototype.abort=d.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},d.prototype.end=function(e,t,n){var r=this;"function"==typeof e&&(n=e,e=void 0),c.Writable.prototype.end.call(r,e,t,n)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var m=["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,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":158,"./response":160,_process:114,buffer:5,inherits:107,"readable-stream":127,"to-arraybuffer":161}],160:[function(e,t,n){(function(t,r,o){var i=e("./capability"),a=e("inherits"),u=e("readable-stream"),s=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=n.IncomingMessage=function(e,n,r){function a(){l.read().then(function(e){s._destroyed||(e.done?s.push(null):(s.push(new o(e.value)),a()))}).catch(function(e){s.emit("error",e)})}var s=this;if(u.Readable.call(s),s._mode=r,s.headers={},s.rawHeaders=[],s.trailers={},s.rawTrailers=[],s.on("end",function(){t.nextTick(function(){s.emit("close")})}),"fetch"===r){s._fetchResponse=n,s.url=n.url,s.statusCode=n.status,s.statusMessage=n.statusText,n.headers.forEach(function(e,t){s.headers[t.toLowerCase()]=e,s.rawHeaders.push(t,e)});var l=n.body.getReader();a()}else if(s._xhr=e,s._pos=0,s.url=e.responseURL,s.statusCode=e.status,s.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===s.headers[n]&&(s.headers[n]=[]),s.headers[n].push(t[2])):void 0!==s.headers[n]?s.headers[n]+=", "+t[2]:s.headers[n]=t[2],s.rawHeaders.push(t[1],t[2])}}),s._charset="x-user-defined",!i.overrideMimeType){var c=s.rawHeaders["mime-type"];if(c){var f=c.match(/;\s*charset=([^;])(;|$)/);f&&(s._charset=f[1].toLowerCase())}s._charset||(s._charset="utf-8")}};a(l,u.Readable),l.prototype._read=function(){},l.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==s.DONE)break;try{n=new r.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new o(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new o(i.length),u=0;ue._pos&&(e.push(new o(new Uint8Array(l.result.slice(e._pos)))),e._pos=l.result.byteLength)},l.onload=function(){e.push(null)},l.readAsArrayBuffer(n)}e._xhr.readyState===s.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":158,_process:114,buffer:5,inherits:107,"readable-stream":127}],161:[function(e,t,n){var r=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(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,o=0;o",'"',"`"," ","\r","\n","\t"],d=["{","}","|","\\","^","`"].concat(h),m=["'"].concat(d),g=["%","/","?",";","#"].concat(m),v=["/","?","#"],b=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},A={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},E=e("querystring");r.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("?"),o=-1!==r&&r127?L+="x":L+=F[M];if(!L.match(b)){var U=T.slice(0,k),N=T.slice(k+1),q=F.match(y);q&&(U.push(q[1]),N.unshift(q[2])),N.length&&(u="/"+N.join(".")+u),this.hostname=U.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),D||(this.hostname=s.toASCII(this.hostname));var z=this.port?":"+this.port:"",I=this.hostname||"";this.host=I+z,this.href+=this.host,D&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==u[0]&&(u="/"+u))}if(!_[d])for(var k=0,R=m.length;k0)&&n.host.split("@"))&&(n.auth=D.shift(),n.host=n.hostname=D.shift())),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(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=_.slice(-1)[0],k=(n.host||e.host||_.length>1)&&("."===C||".."===C)||""===C,O=0,B=_.length;B>=0;B--)"."===(C=_[B])?_.splice(B,1):".."===C?(_.splice(B,1),O++):O&&(_.splice(B,1),O--);if(!b&&!y)for(;O--;O)_.unshift("..");!b||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),k&&"/"!==_.join("/").substr(-1)&&_.push("");var S=""===_[0]||_[0]&&"/"===_[0].charAt(0);if(x){n.hostname=n.host=S?"":_.length?_.shift():"";var D=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");D&&(n.auth=D.shift(),n.host=n.hostname=D.shift())}return(b=b||n.host&&_.length)&&!S&&_.unshift(""),_.length?n.pathname=_.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},r.prototype.parseHost=function(){var e=this.host,t=f.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:115,querystring:118}],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(e){function n(e,t){function n(){if(!o){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),o=!0}return e.apply(this,arguments)}if(r("noDeprecation"))return e;var o=!1;return n}function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=n}).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){function r(){for(var e={},t=0;t=0;r--)n[r]="(?:("+e.customAttrSurround[r][0].source+")\\s*"+t+"\\s*("+e.customAttrSurround[r][1].source+"))";n.push("(?:"+t+")"),t="(?:"+n.join("|")+")"}return new RegExp("^\\s*"+t)}function i(e){return l.concat(e.customAttrAssign||[]).map(function(e){return"(?:"+e.source+")"}).join("|")}function a(e,t){function n(e){var t=e.match(p);if(t){var n={tagName:t[1],attrs:[]};e=e.slice(t[0].length);for(var r,o;!(r=e.match(h))&&(o=e.match(c));)e=e.slice(o[0].length),n.attrs.push(o);if(r)return n.unarySlash=r[1],n.rest=e.slice(r[0].length),n}}function r(e,n){var r;if(n){var o=n.toLowerCase();for(r=l.length-1;r>=0&&l[r].tag.toLowerCase()!==o;r--);}else r=0;if(r>=0){for(var a=l.length-1;a>=r;a--)t.end&&t.end(l[a].tag,l[a].attrs,a>r||!e);l.length=r,i=r&&l[r-1].tag}else"br"===n.toLowerCase()?t.start&&t.start(n,[],!0,""):"p"===n.toLowerCase()&&(t.start&&t.start(n,[],!1,"",!0),t.end&&t.end(n,[]))}for(var i,a,u,s,l=[],c=o(t);e;){if(a=e,i&&w(i)){var f=i.toLowerCase(),x=E[f]||(E[f]=new RegExp("([\\s\\S]*?)]*>","i"));e=e.replace(x,function(e,n){return"script"!==f&&"style"!==f&&"noscript"!==f&&(n=n.replace(//g,"$1").replace(//g,"$1")),t.chars&&t.chars(n),""}),r("",f)}else{var C=e.indexOf("<");if(0===C){if(/^\s*$/,""):t;n.parse.bare_returns=r;var a=Z.minify(i,n);return a.error?(e.log(a.error),t):a.code.replace(/;$/,"")}}if(e.minifyCSS||(e.minifyCSS=z),"function"!=typeof e.minifyCSS){var r=e.minifyCSS;"object"!=typeof r&&(r={}),e.minifyCSS=function(t){t=t.replace(/(url\s*\(\s*)("|'|)(.*?)\2(\s*\))/gi,function(t,n,r,o,i){return n+r+e.minifyURLs(o)+r+i});try{return new K(r).minify(t).styles}catch(n){return e.log(n),t}}}}function j(e){var t;do{t=Math.random().toString(36).replace(/^0\.[0-9]*/,"")}while(~e.indexOf(t));return t}function V(e,t,n,r){function o(e){return e.map(function(e){return t.caseSensitive?e.name:e.name.toLowerCase()})}function i(e,t){return!t||-1===e.indexOf(t)}function a(e){return i(e,n)&&i(e,r)}function u(e){var n,r;new G(e,{start:function(e,i){s&&(s[e]||(s[e]=new Q),s[e].add(o(i).filter(a)));for(var u=0,c=i.length;u-1&&u(e)}})}var s=t.sortAttributes&&Object.create(null),l=t.sortClassName&&new Q,c=t.log;if(t.log=null,t.sortAttributes=!1,t.sortClassName=!1,u($(e,t)),t.log=c,s){var f=Object.create(null);for(var p in s)f[p]=s[p].createSorter();t.sortAttributes=function(e,t){var n=f[e];if(n){var r=Object.create(null),i=o(t);i.forEach(function(e,n){(r[e]||(r[e]=[])).push(t[n])}),n.sort(i).forEach(function(e,n){t[n]=r[e].shift()})}}}if(l){var h=l.createSorter();t.sortClassName=function(e){return h.sort(e.split(/[ \n\f\r]+/)).join(" ")}}}function $(e,t,n){function s(e){return e.replace(A,function(e,t,n){var r=W[+n];return r[1]+w+n+r[2]})}function l(e,n){return t.canCollapseWhitespace(e,n,P)}function c(e,n){return t.canTrimWhitespace(e,n,U)}function f(){for(var e=E.length-1;e>0&&!/^<[^/!]/.test(E[e]);)e--;E.length=Math.max(0,e)}function p(){for(var e=E.length-1;e>0&&!/^<\//.test(E[e]);)e--;E.length=Math.max(0,e)}function d(e,n){for(var r=null;e>=0&&c(r);e--){var o=E[e],a=o.match(/^<\/([\w:-]+)>$/);if(a)r=a[1];else if(/>$/.test(o)||(E[e]=i(o,null,n,t)))break}}function g(e){var t=E.length-1;if(E.length>1){var n=E[E.length-1];/^(?:([\s\S]*?)/g,function(n,r){if(!_){_=j(e);var o=new RegExp("^"+_+"([0-9]+)$");t.ignoreCustomComments?t.ignoreCustomComments.push(o):t.ignoreCustomComments=[o]}var i="\x3c!--"+_+K.length+"--\x3e";return K.push(r),i});var Q=t.ignoreCustomFragments.map(function(e){return e.source});if(Q.length){var Z=new RegExp("\\s*(?:"+Q.join("|")+")+\\s*","g");e=e.replace(Z,function(n){if(!w){w=j(e),A=new RegExp("(\\s*)"+w+"([0-9]+)(\\s*)","g");var r=t.minifyCSS;r&&(t.minifyCSS=function(e){return r(s(e))});var o=t.minifyJS;o&&(t.minifyJS=function(e,t){return o(s(e),t)})}var i=w+W.length;return W.push(/^(\s*)[\s\S]*?(\s*)$/.exec(n)),"\t"+i+"\t"})}(t.sortAttributes&&"function"!=typeof t.sortAttributes||t.sortClassName&&"function"!=typeof t.sortClassName)&&V(e,t,_,w),new G(e,{partialMarkup:n,html5:t.html5,start:function(e,n,r,o,i){var a=e.toLowerCase();if("svg"===a){v.push(t);var u={};for(var s in t)u[s]=t[s];u.keepClosingSlash=!0,u.caseSensitive=!0,t=u}e=t.caseSensitive?e:a,C=e,b=e,ne(e)||(x=""),y=!1,k=n;var h=t.removeOptionalTags;if(h){var d=xe(e);d&&D(L,e)&&f(),L="",d&&R(z,e)&&(p(),h=!T(z,e)),z=""}t.collapseWhitespace&&(O.length||g(e),c(e,n)&&!O.length||O.push(e),l(e,n)&&!F.length||F.push(e));var m="<"+e,_=o&&t.keepClosingSlash;E.push(m),t.sortAttributes&&t.sortAttributes(e,n);for(var A=[],B=n.length,S=!0;--B>=0;){var M=N(n[B],n,e,t);M&&(A.unshift(q(M,_,t,S,w)),S=!1)}A.length>0?(E.push(" "),E.push.apply(E,A)):h&&se(e)&&(L=e),E.push(E.pop()+(_?"/":"")+">"),i&&!t.includeAutoGeneratedTags&&(f(),L="")},end:function(e,n,r){var o=e.toLowerCase();"svg"===o&&(t=v.pop()),e=t.caseSensitive?e:o,t.collapseWhitespace&&(O.length?e===O[O.length-1]&&O.pop():g("/"+e),F.length&&e===F[F.length-1]&&F.pop());var i=!1;e===C&&(C="",i=!y),t.removeOptionalTags&&(i&&_e(L)&&f(),L="",!xe(e)||!z||Ee(z)||"p"===z&&he(e)||p(),z=le(e)?e:""),t.removeEmptyElements&&i&&M(e,n)?(f(),L="",z=""):(r&&!t.includeAutoGeneratedTags?z="":E.push(""),b="/"+e,te(e)?i&&(x+="|"):x="")},chars:function(e,n,r){if(n=""===n?"comment":n,r=""===r?"comment":r,t.decodeEntities&&e&&!ke(C)&&(e=Y(e)),t.collapseWhitespace){if(!O.length){if("comment"===n){var a=E[E.length-1];if(-1===a.indexOf(_)&&(a||(n=b),E.length>1&&(!a||!t.conservativeCollapse&&/ $/.test(x)))){var u=E.length-2;E[u]=E[u].replace(/\s+$/,function(t){return e=t+e,""})}}if(n)if("/nobr"===n||"wbr"===n){if(/^\s/.test(e)){for(var s=E.length-1;s>0&&0!==E[s].lastIndexOf("<"+n);)s--;d(s-1,"br")}}else ne("/"===n.charAt(0)?n.slice(1):n)&&(e=o(e,t,/(?:^|\s)$/.test(x)));!(e=n||r?i(e,n,r,t):o(e,t,!0,!0))&&/\s$/.test(x)&&n&&"/"===n.charAt(0)&&d(E.length-1,r)}F.length||"html"===r||n&&r||(e=o(e,t,!1,!1,!0))}t.processScripts&&ke(C)&&(e=S(e,t,k)),h(C,k)&&(e=t.minifyJS(e)),m(C,k)&&(e=t.minifyCSS(e)),t.removeOptionalTags&&e&&(("html"===L||"body"===L&&!/^\s/.test(e))&&f(),L="",(we(z)||Ae(z)&&!/^\s/.test(e))&&p(),z=""),b=/^\s*$/.test(e)?n:"comment",t.decodeEntities&&e&&!ke(C)&&(e=e.replace(/&(#?[0-9a-zA-Z]+;)/g,"&$1").replace(/":"--\x3e";e=a(e)?r+B(e,t)+o:t.removeComments?u(e,t)?"\x3c!--"+e+"--\x3e":"":r+e+o,t.removeOptionalTags&&e&&(L="",z=""),E.push(e)},doctype:function(e){E.push(t.useShortDoctype?"":r(e))},customAttrAssign:t.customAttrAssign,customAttrSurround:t.customAttrSurround}),t.removeOptionalTags&&(_e(L)&&f(),z&&!Ee(z)&&p()),t.collapseWhitespace&&g("br");var J=H(E,t);return A&&(J=J.replace(A,function(e,n,r,i){var a=W[+r][0];return t.collapseWhitespace?("\t"!==n&&(a=n+a),"\t"!==i&&(a+=i),o(a,{preserveLineBreaks:t.preserveLineBreaks,conservativeCollapse:!t.trimCustomFragments},/^\s/.test(a),/\s$/.test(a))):a})),_&&(J=J.replace(new RegExp("\x3c!--"+_+"([0-9]+)--\x3e","g"),function(e,t){return K[+t]})),t.log("minified in: "+(Date.now()-$)+"ms"),J}function H(e,t){var n,r=t.maxLineLength;if(r){for(var i,a=[],u="",s=0,l=e.length;s=0}function i(e,t){for(var n=0,r=t.length;n>1);return n+=n,1&t&&(n+=e),n}function u(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 s(e,t){this.message=e,this.defs=t}function l(e,t,n){!0===e&&(e={});var r=e||{};if(n)for(var o in r)E(r,o)&&!E(t,o)&&s.croak("`"+o+"` is not a supported option",t);for(var o in t)E(t,o)&&(r[o]=e&&E(e,o)?e[o]:t[o]);return r}function c(e,t){var n=0;for(var r in t)E(t,r)&&(e[r]=t[r],n++);return n}function f(){}function p(){return!1}function h(){return!0}function d(){return this}function m(){return null}function g(e,t){e.indexOf(t)<0&&e.push(t)}function v(e,t){return e.replace(/\{(.+?)\}/g,function(e,n){return t&&t[n]})}function b(e,t){for(var n=e.length;--n>=0;)e[n]===t&&e.splice(n,1)}function y(e,t){function n(e,n){for(var r=[],o=0,i=0,a=0;o3){o.sort(function(e,t){return t.length-e.length}),r+="switch(str.length){";for(var a=0;a=0;)if(!t(e[n]))return!1;return!0}function A(){this._values=Object.create(null),this._size=0}function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function x(e){for(var t,n=e.parent(-1),r=0;t=e.parent(r);r++){if(t instanceof oe&&t.body===n)return!0;if(!(t instanceof Ke&&t.expressions[0]===n||t instanceof $e&&t.expression===n&&!(t instanceof He)||t instanceof Ge&&t.expression===n||t instanceof We&&t.expression===n||t instanceof et&&t.condition===n||t instanceof Xe&&t.left===n||t instanceof Je&&t.expression===n))return!1;n=t}}function C(e,n,r,o){arguments.length<4&&(o=re);var i=n=n?n.split(/\s+/):[];o&&o.PROPS&&(n=n.concat(o.PROPS));for(var a="return function AST_"+e+"(props){ if (props) { ",u=n.length;--u>=0;)a+="this."+n[u]+" = props."+n[u]+";";var s=o&&new o;(s&&s.initialize||r&&r.initialize)&&(a+="this.initialize();"),a+="}}";var l=new Function(a)();if(s&&(l.prototype=s,l.BASE=o),o&&o.SUBCLASSES.push(l),l.prototype.CTOR=l,l.PROPS=n||null,l.SELF_PROPS=i,l.SUBCLASSES=[],e&&(l.prototype.TYPE=l.TYPE=e),r)for(u in r)E(r,u)&&(/^\$/.test(u)?l[u.substr(1)]=r[u]:l.prototype[u]=r[u]);return l.DEFMETHOD=function(e,t){this.prototype[e]=t},void 0!==t&&(t["AST_"+e]=l),l}function k(e,t){var n=e.body;if(n instanceof oe)n._walk(t);else for(var r=0,o=n.length;r=97&&e<=122||e>=65&&e<=90||e>=170&&Ht.letter.test(String.fromCharCode(e))}function S(e){return e>=48&&e<=57}function D(e){return S(e)||B(e)}function T(e){return Ht.digit.test(String.fromCharCode(e))}function R(e){return Ht.non_spacing_mark.test(e)||Ht.space_combining_mark.test(e)}function F(e){return Ht.connector_punctuation.test(e)}function L(e){return!Mt(e)&&/^[a-z_$][a-z0-9_$]*$/i.test(e)}function M(e){return 36==e||95==e||B(e)}function P(e){var t=e.charCodeAt(0);return M(t)||S(t)||8204==t||8205==t||R(e)||F(e)||T(t)}function U(e){return/^[a-z_$][a-z0-9_$]*$/i.test(e)}function N(e){if(Nt.test(e))return parseInt(e.substr(2),16);if(qt.test(e))return parseInt(e.substr(1),8);var t=parseFloat(e);return t==e?t:void 0}function q(e,t,n,r,o){this.message=e,this.filename=t,this.line=n,this.col=r,this.pos=o}function z(e,t,n,r,o){throw new q(e,t,n,r,o)}function I(e,t,n){return e.type==t&&(null==n||e.value==n)}function j(e,t,n,r){function o(){return O.text.charAt(O.pos)}function i(e,t){var n=O.text.charAt(O.pos++);if(e&&!n)throw Kt;return jt(n)?(O.newline_before=O.newline_before||!t,++O.line,O.col=0,t||"\r"!=n||"\n"!=o()||(++O.pos,n="\n")):++O.col,n}function a(e){for(;e-- >0;)i()}function u(e){return O.text.substr(O.pos,e.length)==e}function s(){for(var e=O.text,t=O.pos,n=O.text.length;t="0"&&t<="7"?v(t):t}function v(e){var t=o();return t>="0"&&t<="7"&&(e+=i(!0))[0]<="3"&&(t=o())>="0"&&t<="7"&&(e+=i(!0)),"0"===e?"\0":(e.length>0&&k.has_directive("use strict")&&d("Legacy octal escape sequences are not allowed in strict mode"),String.fromCharCode(parseInt(e,8)))}function b(e){for(var t=0;e>0;--e){var n=parseInt(i(!0),16);isNaN(n)&&d("Invalid hex-character pattern in string"),t=t<<4|n}return t}function y(e){var t,n=O.regex_allowed,r=s();return-1==r?(t=O.text.substr(O.pos),O.pos=O.text.length):(t=O.text.substring(O.pos,r),O.pos=r),O.col=O.tokcol+(O.pos-O.tokpos),O.comments_before.push(f(e,t,!0)),O.regex_allowed=n,k}function _(){for(var e,t,n=!1,r="",a=!1;null!=(e=o());)if(n)"u"!=e&&d("Expecting UnicodeEscapeSequence -- uXXXX"),P(e=g())||d("Unicode char: "+e.charCodeAt(0)+" is not valid in identifier"),r+=e,n=!1;else if("\\"==e)a=n=!0,i();else{if(!P(e))break;r+=i()}return Ft(r)&&a&&(t=r.charCodeAt(0).toString(16).toUpperCase(),r="\\u"+"0000".substr(t.length)+t+r.slice(1)),r}function w(e){function t(e){if(!o())return e;var n=e+o();return zt(n)?(i(),t(n)):e}return f("operator",t(e||i()))}function A(){switch(i(),o()){case"/":return i(),y("comment1");case"*":return i(),R()}return O.regex_allowed?F(""):w("/")}function E(){return i(),S(o().charCodeAt(0))?m("."):f("punc",".")}function x(){var e=_();return B?f("name",e):Lt(e)?f("atom",e):Ft(e)?zt(e)?f("operator",e):f("keyword",e):f("name",e)}function C(e,t){return function(n){try{return t(n)}catch(t){if(t!==Kt)throw t;d(e)}}}function k(e){if(null!=e)return F(e);for(r&&0==O.pos&&u("#!")&&(c(),a(2),y("comment5"));;){if(p(),c(),n){if(u("\x3c!--")){a(4),y("comment3");continue}if(u("--\x3e")&&O.newline_before){a(3),y("comment4");continue}}var t=o();if(!t)return f("eof");var s=t.charCodeAt(0);switch(s){case 34:case 39:return T(t);case 46:return E();case 47:var l=A();if(l===k)continue;return l}if(S(s))return m();if($t(t))return f("punc",i());if(Ut(t))return w();if(92==s||M(s))return x();break}d("Unexpected character '"+t+"'")}var O={text:e,filename:t,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,comments_before:[],directives:{},directive_stack:[]},B=!1,T=C("Unterminated string constant",function(e){for(var t=i(),n="";;){var r=i(!0,!0);if("\\"==r)r=g(!0);else if(jt(r))d("Unterminated string constant");else if(r==t)break;n+=r}var o=f("string",n);return o.quote=e,o}),R=C("Unterminated multiline comment",function(){var e=O.regex_allowed,t=l("*/",!0),n=O.text.substring(O.pos,t).replace(/\r\n|\r|\u2028|\u2029/g,"\n");return a(n.length+2),O.comments_before.push(f("comment2",n,!0)),O.regex_allowed=e,k}),F=C("Unterminated regular expression",function(e){for(var t,n=!1,r=!1;t=i(!0);)if(jt(t))d("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 o=_();try{var a=new RegExp(e,o);return a.raw_source=e,f("regexp",a)}catch(e){d(e.message)}});return k.context=function(e){return e&&(O=e),O},k.add_directive=function(e){O.directive_stack[O.directive_stack.length-1].push(e),void 0===O.directives[e]?O.directives[e]=1:O.directives[e]++},k.push_directives_stack=function(){O.directive_stack.push([])},k.pop_directives_stack=function(){for(var e=O.directive_stack[O.directive_stack.length-1],t=0;t0},k}function V(e,t){function n(e,t){return I($.token,e,t)}function r(){return $.peeked||($.peeked=$.input())}function o(){return $.prev=$.token,$.peeked?($.token=$.peeked,$.peeked=null):$.token=$.input(),$.in_directives=$.in_directives&&("string"==$.token.type||n("punc",";")),$.token}function a(){return $.prev}function u(e,t,n,r){var o=$.input.context();z(e,o.filename,null!=t?t:o.tokline,null!=n?n:o.tokcol,null!=r?r:o.tokpos)}function s(e,t){u(t,e.line,e.col)}function c(e){null==e&&(e=$.token),s(e,"Unexpected token: "+e.type+" ("+e.value+")")}function f(e,t){if(n(e,t))return o();s($.token,"Unexpected token "+$.token.type+" «"+$.token.value+"», expected "+e+" «"+t+"»")}function p(e){return f("punc",e)}function h(){return!t.strict&&($.token.nlb||n("eof")||n("punc","}"))}function d(e){n("punc",";")?o():e||h()||c()}function m(){p("(");var e=oe(!0);return p(")"),e}function g(e){return function(){var t=$.token,n=e(),r=a();return n.start=t,n.end=r,n}}function v(){(n("operator","/")||n("operator","/="))&&($.peeked=null,$.token=$.input($.token.value.substr(1)))}function b(){var e=M(gt);i(function(t){return t.name==e.name},$.labels)&&u("Label "+e.name+" defined twice"),p(":"),$.labels.push(e);var t=H();return $.labels.pop(),t instanceof he||e.references.forEach(function(t){t instanceof Re&&(t=t.label.start,u("Continue label `"+e.name+"` refers to non-IterationStatement.",t.line,t.col,t.pos))}),new pe({body:t,label:e})}function y(e){return new ue({body:(e=oe(!0),d(),e)})}function _(e){var t,n=null;h()||(n=M(bt,!0)),null!=n?((t=i(function(e){return e.name==n.name},$.labels))||u("Undefined label "+n.name),n.thedef=t):0==$.in_loop&&u(e.TYPE+" not inside a loop or switch"),d();var r=new e({label:n});return t&&t.references.push(r),r}function w(){p("(");var e=null;return!n("punc",";")&&(e=n("keyword","var")?(o(),Y(!0)):oe(!0,!0),n("operator","in"))?(e instanceof je&&e.definitions.length>1&&u("Only one variable declaration allowed in for..in loop"),o(),E(e)):A(e)}function A(e){p(";");var t=n("punc",";")?null:oe(!0);p(";");var r=n("punc",")")?null:oe(!0);return p(")"),new ve({init:e,condition:t,step:r,body:V(H)})}function E(e){var t=e instanceof je?e.definitions[0].name:null,n=oe(!0);return p(")"),new be({init:e,name:t,object:n,body:V(H)})}function x(){var e=m(),t=H(),r=null;return n("keyword","else")&&(o(),r=H()),new Fe({condition:e,body:t,alternative:r})}function C(){p("{");for(var e=[];!n("punc","}");)n("eof")&&c(),e.push(H());return o(),e}function k(){p("{");for(var e,t=[],r=null,i=null;!n("punc","}");)n("eof")&&c(),n("keyword","case")?(i&&(i.end=a()),r=[],i=new Ue({start:(e=$.token,o(),e),expression:oe(!0),body:r}),t.push(i),p(":")):n("keyword","default")?(i&&(i.end=a()),r=[],i=new Pe({start:(e=$.token,o(),p(":"),e),body:r}),t.push(i)):(r||c(),r.push(H()));return i&&(i.end=a()),o(),t}function O(){var e=C(),t=null,r=null;if(n("keyword","catch")){s=$.token;o(),p("(");var i=M(mt);p(")"),t=new qe({start:s,argname:i,body:C(),end:a()})}if(n("keyword","finally")){var s=$.token;o(),r=new ze({start:s,body:C(),end:a()})}return t||r||u("Missing catch/finally blocks"),new Ne({body:e,bcatch:t,bfinally:r})}function B(e){for(var t=[];t.push(new Ve({start:$.token,name:M(ft),value:n("operator","=")?(o(),oe(!1,e)):null,end:a()})),n("punc",",");)o();return t}function S(){var e,t=$.token;switch(t.type){case"name":case"keyword":e=F(vt);break;case"num":e=new At({start:t,end:t,value:t.value});break;case"string":e=new wt({start:t,end:t,value:t.value,quote:t.quote});break;case"regexp":e=new Et({start:t,end:t,value:t.value});break;case"atom":switch(t.value){case"false":e=new Tt({start:t,end:t});break;case"true":e=new Rt({start:t,end:t});break;case"null":e=new Ct({start:t,end:t})}break;case"operator":U(t.value)||u("Invalid getter/setter name: "+t.value,t.line,t.col,t.pos),e=F(vt)}return o(),e}function D(e,t,r){for(var i=!0,a=[];!n("punc",e)&&(i?i=!1:p(","),!t||!n("punc",e));)n("punc",",")&&r?a.push(new Bt({start:$.token,end:$.token})):a.push(oe(!1));return o(),a}function T(){var e=$.token;switch(e.type){case"operator":Ft(e.value)||c();case"num":case"string":case"name":case"keyword":case"atom":return o(),e.value;default:c()}}function R(){var e=$.token;return"name"!=e.type&&c(),o(),e.value}function F(e){var t=$.token.value;return new("this"==t?yt:e)({name:String(t),start:$.token,end:$.token})}function L(e){"arguments"!=e.name&&"eval"!=e.name||u("Unexpected "+e.name+" in strict mode",e.start.line,e.start.col,e.start.pos)}function M(e,t){if(!n("name"))return t||u("Name expected"),null;var r=F(e);return $.input.has_directive("use strict")&&r instanceof ct&&L(r),o(),r}function P(e,t,n){var r=t.value;switch(r){case"++":case"--":q(n)||u("Invalid use of "+r+" operator",t.line,t.col,t.pos);break;case"delete":n instanceof vt&&$.input.has_directive("use strict")&&u("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})}function N(e){return te(ee(!0),0,e)}function q(e){return e instanceof Ye||e instanceof vt}function V(e){++$.in_loop;var t=e();return--$.in_loop,t}t=l(t,{bare_returns:!1,expression:!1,filename:null,html5_comments:!0,shebang:!0,strict:!1,toplevel:null});var $={input:"string"==typeof e?j(e,t.filename,t.html5_comments,t.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_directives:!0,in_loop:0,labels:[]};$.token=o();var H=g(function(){switch(v(),$.token.type){case"string":if($.in_directives){var e=r();-1==$.token.raw.indexOf("\\")&&(e.nlb||I(e,"eof")||I(e,"punc",";")||I(e,"punc","}"))?$.input.add_directive($.token.value):$.in_directives=!1}var i=$.in_directives,s=y();return i?new ae(s.body):s;case"num":case"regexp":case"operator":case"atom":return y();case"name":return I(r(),"punc",":")?b():y();case"punc":switch($.token.value){case"{":return new le({start:$.token,body:C(),end:a()});case"[":case"(":return y();case";":return $.in_directives=!1,o(),new ce;default:c()}case"keyword":switch($.token.value){case"break":return o(),_(Te);case"continue":return o(),_(Re);case"debugger":return o(),d(),new ie;case"do":o();var l=V(H);f("keyword","while");var p=m();return d(!0),new me({body:l,condition:p});case"while":return o(),new ge({condition:m(),body:V(H)});case"for":return o(),w();case"function":return o(),K(Ce);case"if":return o(),x();case"return":0!=$.in_function||t.bare_returns||u("'return' outside of function"),o();g=null;return n("punc",";")?o():h()||(g=oe(!0),d()),new Be({value:g});case"switch":return o(),new Le({expression:m(),body:V(k)});case"throw":o(),$.token.nlb&&u("Illegal newline after 'throw'");var g=oe(!0);return d(),new Se({value:g});case"try":return o(),O();case"var":o();var A=Y();return d(),A;case"with":return $.input.has_directive("use strict")&&u("Strict mode may not include a with statement"),o(),new ye({expression:m(),body:H()})}}c()}),K=function(e){var t=e===Ce,r=n("name")?M(t?ht:dt):null;t&&!r&&c(),p("(");for(var i=[],a=!0;!n("punc",")");)a?a=!1:p(","),i.push(M(pt));o();var u=$.in_loop,s=$.labels;++$.in_function,$.in_directives=!0,$.input.push_directives_stack(),$.in_loop=0,$.labels=[];var l=C();return $.input.has_directive("use strict")&&(r&&L(r),i.forEach(L)),$.input.pop_directives_stack(),--$.in_function,$.in_loop=u,$.labels=s,new e({name:r,argnames:i,body:l})},Y=function(e){return new je({start:a(),definitions:B(e),end:a()})},G=function(e){var t=$.token;f("operator","new");var r,i=W(!1);return n("punc","(")?(o(),r=D(")")):r=[],X(new He({start:t,expression:i,args:r,end:a()}),e)},W=function(e){if(n("operator","new"))return G(e);var t=$.token;if(n("punc")){switch(t.value){case"(":o();var r=oe(!0);return r.start=t,r.end=$.token,p(")"),X(r,e);case"[":return X(Q(),e);case"{":return X(J(),e)}c()}if(n("keyword","function")){o();var i=K(xe);return i.start=t,i.end=a(),X(i,e)}if(Zt[$.token.type])return X(S(),e);c()},Q=g(function(){return p("["),new nt({elements:D("]",!t.strict,!0)})}),Z=g(function(){return K(Ee)}),J=g(function(){p("{");for(var e=!0,r=[];!n("punc","}")&&(e?e=!1:p(","),t.strict||!n("punc","}"));){var i=$.token,u=i.type,s=T();if("name"==u&&!n("punc",":")){var l=new lt({start:$.token,name:T(),end:a()});if("get"==s){r.push(new ut({start:i,key:l,value:Z(),end:a()}));continue}if("set"==s){r.push(new at({start:i,key:l,value:Z(),end:a()}));continue}}p(":"),r.push(new it({start:i,quote:i.quote,key:s,value:oe(!1),end:a()}))}return o(),new rt({properties:r})}),X=function(e,t){var r=e.start;if(n("punc","."))return o(),X(new Ge({start:r,expression:e,property:R(),end:a()}),t);if(n("punc","[")){o();var i=oe(!0);return p("]"),X(new We({start:r,expression:e,property:i,end:a()}),t)}return t&&n("punc","(")?(o(),X(new $e({start:r,expression:e,args:D(")"),end:a()}),!0)):e},ee=function(e){var t=$.token;if(n("operator")&&Yt(t.value)){o(),v();var r=P(Ze,t,ee(e));return r.start=t,r.end=a(),r}for(var i=W(e);n("operator")&&Gt($.token.value)&&!$.token.nlb;)(i=P(Je,$.token,i)).start=t,i.end=$.token,o();return i},te=function(e,t,r){var i=n("operator")?$.token.value:null;"in"==i&&r&&(i=null);var a=null!=i?Qt[i]:null;if(null!=a&&a>t){o();var u=te(ee(!0),a,r);return te(new Xe({start:e.start,left:e,operator:i,right:u,end:u.end}),t,r)}return e},ne=function(e){var t=$.token,r=N(e);if(n("operator","?")){o();var i=oe(!1);return p(":"),new et({start:t,condition:r,consequent:i,alternative:oe(!1,e),end:a()})}return r},re=function(e){var t=$.token,r=ne(e),i=$.token.value;if(n("operator")&&Wt(i)){if(q(r))return o(),new tt({start:t,left:r,operator:i,right:re(e),end:a()});u("Invalid assignment")}return r},oe=function(e,t){for(var i=$.token,a=[];;){if(a.push(re(t)),!e||!n("punc",","))break;o(),e=!0}return 1==a.length?a[0]:new Ke({start:i,expressions:a,end:r()})};return t.expression?oe(!0):function(){var e=$.token,r=[];for($.input.push_directives_stack();!n("eof");)r.push(H());$.input.pop_directives_stack();var o=a(),i=t.toplevel;return i?(i.body=i.body.concat(r),i.end=o):i=new we({start:e,body:r,end:o}),i}()}function $(e,t){O.call(this),this.before=e,this.after=t}function H(e,t,n){this.name=n.name,this.orig=[n],this.scope=e,this.references=[],this.global=!1,this.mangled_name=null,this.undeclared=!1,this.index=t,this.id=H.next_id++}function K(e){return"comment2"==e.type&&/@preserve|@license|@cc_on/i.test(e.value)}function Y(e){function t(e,t){return e.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(e){var n=e.charCodeAt(0).toString(16);if(n.length<=2&&!t){for(;n.length<2;)n="0"+n;return"\\x"+n}for(;n.length<4;)n="0"+n;return"\\u"+n})}function n(n,r){function o(){return"'"+n.replace(/\x27/g,"\\'")+"'"}function i(){return'"'+n.replace(/\x22/g,'\\"')+'"'}var a=0,u=0;switch(n=n.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(t,r){switch(t){case'"':return++a,'"';case"'":return++u,"'";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 e.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-7]/.test(n.charAt(r+1))?"\\x00":"\\0"}return t}),e.ascii_only&&(n=t(n)),e.quote_style){case 1:return o();case 2:return i();case 3:return"'"==r?o():i();default:return a>u?o():i()}}function r(t,r){var o=n(t,r);return e.inline_script&&(o=(o=(o=o.replace(/<\x2fscript([>\/\t\n\f\r ])/gi,"<\\/script$1")).replace(/\x3c!--/g,"\\x3c!--")).replace(/--\x3e/g,"--\\x3e")),o}function o(n){return n=n.toString(),e.ascii_only&&(n=t(n,!0)),n}function i(t){return a(" ",e.indent_start+k-t*e.indent_level)}function u(t){var n=(t=String(t)).charAt(0),r=L.charAt(L.length-1);if(R&&(R=!1,(":"==r&&"}"==n||(!n||";}".indexOf(n)<0)&&";"!=r)&&(e.semicolons||q(n)?(D+=";",O++,S++):(N(),D+="\n",S++,B++,O=0,/^\s+$/.test(t)&&(R=!0)),e.beautify||(T=!1))),!e.beautify&&e.preserve_line&&H[H.length-1])for(var o=H[H.length-1].start.line;B0&&(N(),O=i[a].length),L=t}function s(){R=!1,u(";")}function c(){return k+e.indent_level}function d(e){var t;return u("{"),V(),j(c(),function(){t=e()}),I(),u("}"),t}function m(e){u("(");var t=e();return u(")"),t}function g(e){u("[");var t=e();return u("]"),t}function v(){u(","),z()}function b(){u(":"),z()}function y(){return F&&N(),D}var w=p;if((e=l(e,{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,width:80,wrap_iife:!1},!0)).comments){var A=e.comments;if("string"==typeof e.comments&&/^\/.*\/[a-zA-Z]*$/.test(e.comments)){var E=e.comments.lastIndexOf("/");A=new RegExp(e.comments.substr(1,E-1),e.comments.substr(E+1))}w=A instanceof RegExp?function(e){return"comment5"!=e.type&&A.test(e.value)}:"function"==typeof A?function(e){return"comment5"!=e.type&&A(this,e)}:"some"===A?K:h}var x,C,k=0,O=0,B=1,S=0,D="",T=!1,R=!1,F=0,L="",M=e.source_map&&[],U=M?function(){M.forEach(function(t){try{e.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){re.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||""})}}),M=[]}:f,N=e.max_line_len?function(){if(O>e.max_line_len){if(F){var t=D.slice(0,F),n=D.slice(F);if(M){var r=n.length-O;M.forEach(function(e){e.line++,e.col+=r})}D=t+"\n"+n,B++,S++,O=n.length}O>e.max_line_len&&re.warn("Output exceeds {max_line_len} characters",e)}F&&(F=0,U())}:f,q=_("( [ + * / - , ."),z=e.beautify?function(){u(" ")}:function(){T=!0},I=e.beautify?function(t){e.beautify&&u(i(t?.5:0))}:f,j=e.beautify?function(e,t){!0===e&&(e=c());var n=k;k=e;var r=t();return k=n,r}:function(e,t){return t()},V=e.beautify?function(){u("\n")}:e.max_line_len?function(){N(),F=D.length}:f,$=e.beautify?function(){u(";")}:function(){R=!0},H=[];return{get:y,toString:y,indent:I,indentation:function(){return k},current_width:function(){return O-k},should_break:function(){return e.width&&this.current_width()>=e.width},newline:V,print:u,space:z,comma:v,colon:b,last:function(){return L},semicolon:$,force_semicolon:s,to_ascii:t,print_name:function(e){u(o(e))},print_string:function(e,t,n){var o=r(e,t);!0===n&&-1===o.indexOf("\\")&&(Xt.test(D)||s(),s()),u(o)},encode_string:r,next_indent:c,with_indent:j,with_block:d,with_parens:m,with_square:g,add_mapping:M?function(e,t){x=e,C=t}:f,option:function(t){return e[t]},comment_filter:w,line:function(){return B},col:function(){return O},pos:function(){return S},push_node:function(e){H.push(e)},pop_node:function(){return H.pop()},parent:function(e){return H[H.length-2-(e||0)]}}}function G(e,t){if(!(this instanceof G))return new G(e,t);$.call(this,this.before,this.after),this.options=l(e,{booleans:!t,cascade:!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:!t,hoist_vars:!1,ie8:!1,if_return:!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_vars:!t,sequences:!t,side_effects:!t,switches:!t,top_retain:null,toplevel:!(!e||!e.top_retain),unsafe:!1,unsafe_comps:!1,unsafe_math:!1,unsafe_proto:!1,unsafe_regexp:!1,unused:!t,warnings:!1},!0);var n=this.options.global_defs;if("object"==typeof n)for(var r in n)if(/^@/.test(r)&&E(n,r)){var o=V(n[r]);if(!(1==o.body.length&&o.body[0]instanceof ue))throw new Error(v("Can't handle expression: {value}",{value:n[r]}));n[r.slice(1)]=o.body[0].body}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}:h;var a=this.options.top_retain;a instanceof RegExp?this.top_retain=function(e){return a.test(e.name)}:"function"==typeof a?this.top_retain=a:a&&("string"==typeof a&&(a=a.split(/,/)),this.top_retain=function(e){return a.indexOf(e.name)>=0});var u=this.options.toplevel;"string"==typeof u?(this.toplevel.funcs=/funcs/.test(u),this.toplevel.vars=/vars/.test(u)):(this.toplevel=u?h:p,this.toplevel.funcs=this.toplevel.vars=u);var s=this.options.sequences;this.sequences_limit=1==s?800:0|s,this.warnings_produced={}}function W(e){function t(t,o,i,a,u,s){if(r){var l=r.originalPositionFor({line:a,column:u});if(null===l.source)return;t=l.source,a=l.line,u=l.column,s=l.name||s}n.addMapping({generated:{line:o+e.dest_line_diff,column:i},original:{line:a+e.orig_line_diff,column:u},source:t,name:s})}e=l(e,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var n=new MOZ_SourceMap.SourceMapGenerator({file:e.file,sourceRoot:e.root}),r=e.orig&&new MOZ_SourceMap.SourceMapConsumer(e.orig);return r&&Array.isArray(e.orig.sources)&&r._sources.toArray().forEach(function(e){var t=r.sourceContentFor(e,!0);t&&n.setSourceContent(e,t)}),{add:t,get:function(){return n},toString:function(){return JSON.stringify(n.toJSON())}}}function Q(e){function t(t){g(e,t)}["null","true","false","Infinity","-Infinity","undefined"].forEach(t),[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp].forEach(function(e){Object.getOwnPropertyNames(e).map(t),e.prototype&&Object.getOwnPropertyNames(e.prototype).map(t)})}function Z(e,t){function n(e){return!(v.indexOf(e)>=0)&&(!(s.indexOf(e)>=0)&&(t.only_cache?c.props.has(e):!/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(e)))}function r(e){return!(h&&e in b)&&(!(p&&!p.test(e))&&(!(s.indexOf(e)>=0)&&(c.props.has(e)||m.indexOf(e)>=0)))}function o(e,t){t?b[e]=!0:(n(e)&&g(m,e),r(e)||g(v,e))}function i(e){if(!r(e))return e;var t=c.props.get(e);if(!t){if(d){var o="_$"+e+"$"+f+"_";!n(o)||h&&o in b||(t=o)}if(!t)do{t=Jt(++c.cname)}while(!n(t)||h&&t in b);c.props.set(e,t)}return t}function a(e,t){var n={};try{!function e(r){r.walk(new O(function(r){if(r instanceof Ke)return e(r.expressions[r.expressions.length-1]),!0;if(r instanceof wt)return o(r.value,t),!0;if(r instanceof et)return e(r.consequent),e(r.alternative),!0;throw n}))}(e)}catch(e){if(e!==n)throw e}}function u(e){return e.transform(new $(function(e){if(e instanceof Ke){var t=e.expressions.length-1;e.expressions[t]=u(e.expressions[t])}else e instanceof wt?e.value=i(e.value):e instanceof et&&(e.consequent=u(e.consequent),e.alternative=u(e.alternative));return e}))}var s=(t=l(t,{builtins:!1,cache:null,debug:!1,keep_quoted:!1,only_cache:!1,regex:null,reserved:null})).reserved||[];t.builtins||Q(s);var c=t.cache;null==c&&(c={cname:-1,props:new A});var f,p=t.regex,h=t.keep_quoted,d=!1!==t.debug;d&&(f=!0===t.debug?"":t.debug);var m=[],v=[],b={};return e.walk(new O(function(e){e instanceof it?o(e.key,h&&e.quote):e instanceof ot?o(e.key.name):e instanceof Ge?o(e.property):e instanceof We&&a(e.property,h)})),e.transform(new $(function(e){e instanceof it?h&&e.quote||(e.key=i(e.key)):e instanceof ot?e.key.name=i(e.key.name):e instanceof Ge?e.property=i(e.property):e instanceof We&&(h||(e.property=u(e.property)))}))}function J(e){var t=/\n\/\/# sourceMappingURL=data:application\/json(;.*?)?;base64,(.*)/.exec(e);return t?en(t[2]):(re.warn("inline source map not found"),null)}function X(e,t,n){t[e]&&n.forEach(function(n){t[n]&&("object"!=typeof t[n]&&(t[n]={}),e in t[n]||(t[n][e]=t[e]))})}function ee(e,t){var n=re.warn_function;try{"string"==typeof e&&(e=[e]),X("ie8",t=l(t,{compress:{},ie8:!1,keep_fnames:!1,mangle:{},output:{},parse:{},sourceMap:!1,toplevel:!1,warnings:!1,wrap:!1},!0),["compress","mangle","output"]),X("keep_fnames",t,["compress","mangle"]),X("toplevel",t,["compress","mangle"]),X("warnings",t,["compress"]),t.mangle&&(t.mangle=l(t.mangle,{cache:null,eval:!1,ie8:!1,keep_fnames:!1,properties:!1,reserved:[],toplevel:!1},!0)),t.sourceMap&&(t.sourceMap=l(t.sourceMap,{content:null,filename:null,includeSources:!1,root:null,url:null},!0));var r=[];t.warnings&&!re.warn_function&&(re.warn_function=function(e){r.push(e)});var o;if(e instanceof we)o=e;else{t.parse=t.parse||{},t.parse.toplevel=null;for(var i in e)if(t.parse.filename=i,t.parse.toplevel=V(e[i],t.parse),t.sourceMap&&"inline"==t.sourceMap.content){if(Object.keys(e).length>1)throw new Error("inline source map only works with singular input");t.sourceMap.content=J(e[i])}o=t.parse.toplevel}t.wrap&&(o=o.wrap_commonjs(t.wrap)),t.compress&&(o.figure_out_scope(t.mangle),o=new G(t.compress).compress(o)),t.mangle&&(o.figure_out_scope(t.mangle),Jt.reset(),o.compute_char_frequency(t.mangle),o.mangle_names(t.mangle),t.mangle.properties&&(o=Z(o,t.mangle.properties)));var a={};if(t.output.ast&&(a.ast=o),!E(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=W({file:t.sourceMap.filename,orig:t.sourceMap.content,root:t.sourceMap.root}),t.sourceMap.includeSources))for(var i in e)t.output.source_map.get().setSourceContent(i,e[i]);delete t.output.ast,delete t.output.code;var u=Y(t.output);o.print(u),a.code=u.get(),t.sourceMap&&(a.map=t.output.source_map.toString(),"inline"==t.sourceMap.url?a.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+tn(a.map):t.sourceMap.url&&(a.code+="\n//# sourceMappingURL="+t.sourceMap.url))}return r.length&&(a.warnings=r),a}catch(e){return{error:e}}finally{re.warn_function=n}}s.prototype=Object.create(Error.prototype),s.prototype.constructor=s,s.prototype.name="DefaultsError",u(s),s.croak=function(e,t){throw new s(e,t)};var te=function(){function e(e,i,a){function u(){var u=i(e[s],s),f=u instanceof r;return f&&(u=u.v),u instanceof t?(u=u.v)instanceof n?c.push.apply(c,a?u.v.slice().reverse():u.v):c.push(u):u!==o&&(u instanceof n?l.push.apply(l,a?u.v.slice().reverse():u.v):l.push(u)),f}var s,l=[],c=[];if(e instanceof Array)if(a){for(s=e.length;--s>=0&&!u(););l.reverse(),c.reverse()}else for(s=0;s 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)"}},se),we=C("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=V(n),n=n.transform(new $(function(e){if(e instanceof ae&&"$ORIG"==e.value)return te.splice(t)}))}},_e),Ae=C("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(e){return e._visit(this,function(){this.name&&this.name._walk(e);for(var t=this.argnames,n=0,r=t.length;n=0;){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 _e)for(var r=0;r0;){var r=e[--t];if(r instanceof Fe&&r.condition===n||r instanceof et&&r.condition===n||r instanceof de&&r.condition===n||r instanceof ve&&r.condition===n||r instanceof Ze&&"!"==r.operator&&r.expression===n)return!0;if(!(r instanceof Xe)||"&&"!=r.operator&&"||"!=r.operator)return!1;n=r}},loopcontrol_target:function(e){var t=this.stack;if(e.label){for(n=t.length;--n>=0;)if((r=t[n])instanceof pe&&r.label.name==e.label.name)return r.body}else for(var n=t.length;--n>=0;){var r=t[n];if(r instanceof he||e instanceof Te&&r instanceof Le)return r}}};var Ft="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",Lt="false null true",Mt="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 "+Lt+" "+Ft,Pt="return new delete throw else case";Ft=_(Ft),Mt=_(Mt),Pt=_(Pt),Lt=_(Lt);var Ut=_(r("+-*&%=<>!?|~^")),Nt=/^0x[0-9a-f]+$/i,qt=/^0[0-7]+$/,zt=_(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),It=_(r("  \n\r\t\f\v​           \u2028\u2029   \ufeff")),jt=_(r("\n\r\u2028\u2029")),Vt=_(r("[{(,;:")),$t=_(r("[]{}(),;:")),Ht=(_(r("gmsiy")),{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]")});q.prototype=Object.create(Error.prototype),q.prototype.constructor=q,q.prototype.name="SyntaxError",u(q);var Kt={},Yt=_(["typeof","void","delete","--","++","!","~","-","+"]),Gt=_(["--","++"]),Wt=_(["=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&="]),Qt=function(e,t){for(var n=0;n","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{}),Zt=(n(["for","do","while","switch"]),n(["atom","num","string","regexp","name"]));$.prototype=new O,function(e){function t(t,n){t.DEFMETHOD("transform",function(t,r){var o,i;return t.push(this),t.before&&(o=t.before(this,n,r)),o===e&&(t.after?(t.stack[t.stack.length-1]=o=this,n(o,t),(i=t.after(o,r))!==e&&(o=i)):n(o=this,t)),t.pop(this),o})}function n(e,t){return te(e,function(e){return e.transform(t,!0)})}t(re,f),t(pe,function(e,t){e.label=e.label.transform(t),e.body=e.body.transform(t)}),t(ue,function(e,t){e.body=e.body.transform(t)}),t(se,function(e,t){e.body=n(e.body,t)}),t(de,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t)}),t(ve,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)}),t(be,function(e,t){e.init=e.init.transform(t),e.object=e.object.transform(t),e.body=e.body.transform(t)}),t(ye,function(e,t){e.expression=e.expression.transform(t),e.body=e.body.transform(t)}),t(Oe,function(e,t){e.value&&(e.value=e.value.transform(t))}),t(De,function(e,t){e.label&&(e.label=e.label.transform(t))}),t(Fe,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t),e.alternative&&(e.alternative=e.alternative.transform(t))}),t(Le,function(e,t){e.expression=e.expression.transform(t),e.body=n(e.body,t)}),t(Ue,function(e,t){e.expression=e.expression.transform(t),e.body=n(e.body,t)}),t(Ne,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))}),t(qe,function(e,t){e.argname=e.argname.transform(t),e.body=n(e.body,t)}),t(Ie,function(e,t){e.definitions=n(e.definitions,t)}),t(Ve,function(e,t){e.name=e.name.transform(t),e.value&&(e.value=e.value.transform(t))}),t(Ae,function(e,t){e.name&&(e.name=e.name.transform(t)),e.argnames=n(e.argnames,t),e.body=n(e.body,t)}),t($e,function(e,t){e.expression=e.expression.transform(t),e.args=n(e.args,t)}),t(Ke,function(e,t){e.expressions=n(e.expressions,t)}),t(Ge,function(e,t){e.expression=e.expression.transform(t)}),t(We,function(e,t){e.expression=e.expression.transform(t),e.property=e.property.transform(t)}),t(Qe,function(e,t){e.expression=e.expression.transform(t)}),t(Xe,function(e,t){e.left=e.left.transform(t),e.right=e.right.transform(t)}),t(et,function(e,t){e.condition=e.condition.transform(t),e.consequent=e.consequent.transform(t),e.alternative=e.alternative.transform(t)}),t(nt,function(e,t){e.elements=n(e.elements,t)}),t(rt,function(e,t){e.properties=n(e.properties,t)}),t(ot,function(e,t){e.value=e.value.transform(t)})}(),H.next_id=1,H.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 dt||this.orig[0]instanceof ht)},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=this.scope,r=this.orig[0];e.ie8&&r instanceof dt&&(n=n.parent_scope);var o;this.defun&&(o=this.defun.variables.get(this.name))?this.mangled_name=o.mangled_name||o.name:this.mangled_name=n.next_mangled(e,this),this.global&&t&&t.set(this.name,this.mangled_name)}}},we.DEFMETHOD("figure_out_scope",function(e){e=l(e,{cache:null,ie8:!1});var t=this,n=t.parent_scope=null,r=new A,o=null,i=new O(function(t,i){if(t instanceof qe){a=n;return(n=new _e(t)).init_scope_vars(a),i(),n=a,!0}if(t instanceof _e){t.init_scope_vars(n);var a=n,u=o,s=r;return o=n=t,r=new A,i(),n=a,o=u,r=s,!0}if(t instanceof pe){var l=t.label;if(r.has(l.name))throw new Error(v("Label {name} defined twice",l));return r.set(l.name,l),i(),r.del(l.name),!0}if(t instanceof ye)for(var c=n;c;c=c.parent_scope)c.uses_with=!0;else if(t instanceof st&&(t.scope=n),t instanceof gt&&(t.thedef=t,t.references=[]),t instanceof dt)o.def_function(t);else if(t instanceof ht)(t.scope=o.parent_scope).def_function(t);else if(t instanceof ft){if(o.def_variable(t),o!==n){t.mark_enclosed(e);var f=n.find_variable(t);t.thedef!==f&&(t.thedef=f,t.reference(e))}}else if(t instanceof mt)n.def_variable(t).defun=o;else if(t instanceof bt){var p=r.get(t.name);if(!p)throw new Error(v("Undefined label {name} [{line},{col}]",{name:t.name,line:t.start.line,col:t.start.col}));t.thedef=p}});t.walk(i);var a=null,i=(t.globals=new A,new O(function(n,r){if(n instanceof Ae){var o=a;return a=n,r(),a=o,!0}if(n instanceof De&&n.label)return n.label.thedef.references.push(n),!0;if(n instanceof vt){var u=n.name;if("eval"==u&&i.parent()instanceof $e)for(var s=n.scope;s&&!s.uses_eval;s=s.parent_scope)s.uses_eval=!0;var l=n.scope.find_variable(u);return n.scope instanceof Ae&&"arguments"==u&&(n.scope.uses_arguments=!0),l||(l=t.def_global(n)),n.thedef=l,n.reference(e),!0}}));t.walk(i),e.ie8&&t.walk(new O(function(n,r){if(n instanceof mt){var o=n.name,i=n.thedef.references,a=n.thedef.defun,u=a.find_variable(o)||t.globals.get(o)||a.def_variable(n);return i.forEach(function(t){t.thedef=u,t.reference(e)}),n.thedef=u,!0}})),e.cache&&(this.cname=e.cache.cname)}),we.DEFMETHOD("def_global",function(e){var t=this.globals,n=e.name;if(t.has(n))return t.get(n);var r=new H(this,t.size(),e);return r.undeclared=!0,r.global=!0,t.set(n,r),r}),_e.DEFMETHOD("init_scope_vars",function(e){this.variables=new A,this.functions=new A,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=e,this.enclosed=[],this.cname=-1}),Ae.DEFMETHOD("init_scope_vars",function(){_e.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new pt({name:"arguments",start:this.start,end:this.end}))}),st.DEFMETHOD("mark_enclosed",function(e){for(var t=this.definition(),n=this.scope;n&&(g(n.enclosed,t),e.keep_fnames&&n.functions.each(function(e){g(t.scope.enclosed,e)}),n!==t.scope);)n=n.parent_scope}),st.DEFMETHOD("reference",function(e){this.definition().references.push(this),this.mark_enclosed(e)}),_e.DEFMETHOD("find_variable",function(e){return e instanceof st&&(e=e.name),this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)}),_e.DEFMETHOD("def_function",function(e){this.functions.set(e.name,this.def_variable(e))}),_e.DEFMETHOD("def_variable",function(e){var t;return this.variables.has(e.name)?(t=this.variables.get(e.name)).orig.push(e):(t=new H(this,this.variables.size(),e),this.variables.set(e.name,t),t.global=!this.parent_scope),e.thedef=t}),_e.DEFMETHOD("next_mangled",function(e){var t=this.enclosed;e:for(;;){var n=Jt(++this.cname);if(L(n)&&!(e.reserved.indexOf(n)>=0)){for(var r=t.length;--r>=0;){var o=t[r];if(n==(o.mangled_name||o.unmangleable(e)&&o.name))continue e}return n}}}),xe.DEFMETHOD("next_mangled",function(e,t){for(var n=t.orig[0]instanceof pt&&this.name&&this.name.definition(),r=n?n.mangled_name||n.name:null;;){var o=Ae.prototype.next_mangled.call(this,e,t);if(!r||r!=o)return o}}),st.DEFMETHOD("unmangleable",function(e){return this.definition().unmangleable(e)}),gt.DEFMETHOD("unmangleable",function(){return!1}),st.DEFMETHOD("unreferenced",function(){return 0==this.definition().references.length&&!(this.scope.uses_eval||this.scope.uses_with)}),st.DEFMETHOD("undeclared",function(){return this.definition().undeclared}),bt.DEFMETHOD("undeclared",function(){return!1}),gt.DEFMETHOD("undeclared",function(){return!1}),st.DEFMETHOD("definition",function(){return this.thedef}),st.DEFMETHOD("global",function(){return this.definition().global}),we.DEFMETHOD("_default_mangler_options",function(e){return l(e,{eval:!1,ie8:!1,keep_fnames:!1,reserved:[],toplevel:!1})}),we.DEFMETHOD("mangle_names",function(e){(e=this._default_mangler_options(e)).reserved.push("arguments");var t=-1,n=[];e.cache&&this.globals.each(function(t){e.reserved.indexOf(t.name)<0&&n.push(t)});var r=new O(function(o,i){if(o instanceof pe){var a=t;return i(),t=a,!0}if(o instanceof _e){r.parent();var u=[];return o.variables.each(function(t){e.reserved.indexOf(t.name)<0&&u.push(t)}),void n.push.apply(n,u)}if(o instanceof gt){var s;do{s=Jt(++t)}while(!L(s));return o.mangled_name=s,!0}!e.ie8&&o instanceof mt&&n.push(o.definition())});this.walk(r),n.forEach(function(t){t.mangle(e)}),e.cache&&(e.cache.cname=this.cname)}),we.DEFMETHOD("compute_char_frequency",function(e){e=this._default_mangler_options(e);var t=new O(function(t){t instanceof _t?Jt.consider(t.print_to_string()):t instanceof Be?Jt.consider("return"):t instanceof Se?Jt.consider("throw"):t instanceof Re?Jt.consider("continue"):t instanceof Te?Jt.consider("break"):t instanceof ie?Jt.consider("debugger"):t instanceof ae?Jt.consider(t.value):t instanceof ge?Jt.consider("while"):t instanceof me?Jt.consider("do while"):t instanceof Fe?(Jt.consider("if"),t.alternative&&Jt.consider("else")):t instanceof je?Jt.consider("var"):t instanceof Ae?Jt.consider("function"):t instanceof ve?Jt.consider("for"):t instanceof be?Jt.consider("for in"):t instanceof Le?Jt.consider("switch"):t instanceof Ue?Jt.consider("case"):t instanceof Pe?Jt.consider("default"):t instanceof ye?Jt.consider("with"):t instanceof at?Jt.consider("set"+t.key):t instanceof ut?Jt.consider("get"+t.key):t instanceof it?Jt.consider(t.key):t instanceof He?Jt.consider("new"):t instanceof yt?Jt.consider("this"):t instanceof Ne?Jt.consider("try"):t instanceof qe?Jt.consider("catch"):t instanceof ze?Jt.consider("finally"):t instanceof st&&t.unmangleable(e)?Jt.consider(t.name):t instanceof Qe||t instanceof Xe?Jt.consider(t.operator):t instanceof Ge&&Jt.consider(t.property)});this.walk(t),Jt.sort()});var Jt=function(){function e(){r=Object.create(null),(n=o.split("").map(function(e){return e.charCodeAt(0)})).forEach(function(e){r[e]=0})}function t(e){var t="",r=54;e++;do{e--,t+=String.fromCharCode(n[e%r]),e=Math.floor(e/r),r=64}while(e>0);return t}var n,r,o="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";return t.consider=function(e){for(var t=e.length;--t>=0;){var n=e.charCodeAt(t);n in r&&++r[n]}},t.sort=function(){n=y(n,function(e,t){return S(e)&&!S(t)?1:S(t)&&!S(e)?-1:r[t]-r[e]})},t.reset=e,e(),t.get=function(){return n},t.freq=function(){return r},t}(),Xt=/^$|[;{][\s\n]*$/;!function(){function e(e,t){e.DEFMETHOD("_codegen",t)}function t(e,n){Array.isArray(e)?e.forEach(function(e){t(e,n)}):e.DEFMETHOD("needs_parens",n)}function n(e,t,n,r){var o=e.length-1;m=r,e.forEach(function(e,r){!0!==m||e instanceof ae||e instanceof ce||e instanceof ue&&e.body instanceof wt||(m=!1),e instanceof ce||(n.indent(),e.print(n),r==o&&t||(n.newline(),t&&n.newline())),!0===m&&e instanceof ue&&e.body instanceof wt&&(m=!1)}),m=!1}function r(e,t,r){e.length>0?t.with_block(function(){n(e,!1,t,r)}):t.print("{}")}function o(e,t){var n=e.body;if(t.option("bracketize")||t.option("ie8")&&n instanceof me)return c(n,t);if(!n)return t.force_semicolon();for(;;)if(n instanceof Fe){if(!n.alternative)return void c(e.body,t);n=n.alternative}else{if(!(n instanceof fe))break;n=n.body}a(e.body,t)}function i(e,t,n){if(n)try{e.walk(new O(function(e){if(e instanceof Xe&&"in"==e.operator)throw t})),e.print(t)}catch(n){if(n!==t)throw n;e.print(t,!0)}else e.print(t)}function a(e,t){t.option("bracketize")?c(e,t):!e||e instanceof ce?t.force_semicolon():e.print(t)}function u(e,t){return e.args.length>0||t.option("beautify")}function s(e){for(var t=e[0],n=t.length,r=1;r=0?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("."))),s(r)}function c(e,t){!e||e instanceof ce?t.print("{}"):e instanceof le?e.print(t):t.with_block(function(){t.indent(),e.print(t),t.newline()})}function p(e,t){e.DEFMETHOD("add_source_map",function(e){t(this,e)})}function h(e,t){t.add_mapping(e.start)}var d=!1,m=!1;re.DEFMETHOD("print",function(e,t){function n(){r.add_comments(e),r.add_source_map(e),o(r,e)}var r=this,o=r._codegen,i=d;r instanceof ae&&"use asm"==r.value&&e.parent()instanceof _e&&(d=!0),e.push_node(r),t||r.needs_parens(e)?e.with_parens(n):n(),e.pop_node(),r instanceof _e&&(d=i)}),re.DEFMETHOD("print_to_string",function(e){var t=Y(e);return e||(t._readonly=!0),this.print(t),t.get()}),re.DEFMETHOD("add_comments",function(e){if(!e._readonly){var t=this,n=t.start;if(n&&!n._comments_dumped){n._comments_dumped=!0;var r=n.comments_before||[];if(t instanceof Oe&&t.value&&t.value.walk(new O(function(e){if(e.start&&e.start.comments_before&&(r=r.concat(e.start.comments_before),e.start.comments_before=[]),e instanceof xe||e instanceof nt||e instanceof rt)return!0})),0==e.pos()){r.length>0&&e.option("shebang")&&"comment5"==r[0].type&&(e.print("#!"+r.shift().value+"\n"),e.indent());var o=e.option("preamble");o&&e.print(o.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}r=r.filter(e.comment_filter,t),!e.option("beautify")&&r.length>0&&/comment[134]/.test(r[0].type)&&0!==e.col()&&r[0].nlb&&e.print("\n"),r.forEach(function(t){/comment[134]/.test(t.type)?(e.print("//"+t.value+"\n"),e.indent()):"comment2"==t.type&&(e.print("/*"+t.value+"*/"),n.nlb?(e.print("\n"),e.indent()):e.space())})}}}),t(re,function(){return!1}),t(xe,function(e){if(x(e))return!0;if(e.option("wrap_iife")){var t=e.parent();return t instanceof $e&&t.expression===this}return!1}),t(rt,function(e){return x(e)}),t(Qe,function(e){var t=e.parent();return t instanceof Ye&&t.expression===this||t instanceof $e&&t.expression===this}),t(Ke,function(e){var t=e.parent();return t instanceof $e||t instanceof Qe||t instanceof Xe||t instanceof Ve||t instanceof Ye||t instanceof nt||t instanceof ot||t instanceof et}),t(Xe,function(e){var t=e.parent();if(t instanceof $e&&t.expression===this)return!0;if(t instanceof Qe)return!0;if(t instanceof Ye&&t.expression===this)return!0;if(t instanceof Xe){var n=t.operator,r=Qt[n],o=this.operator,i=Qt[o];if(r>i||r==i&&this===t.right)return!0}}),t(Ye,function(e){var t=e.parent();if(t instanceof He&&t.expression===this)try{this.walk(new O(function(e){if(e instanceof $e)throw t}))}catch(e){if(e!==t)throw e;return!0}}),t($e,function(e){var t,n=e.parent();return n instanceof He&&n.expression===this||this.expression instanceof xe&&n instanceof Ye&&n.expression===this&&(t=e.parent(1))instanceof tt&&t.left===n}),t(He,function(e){var t=e.parent();if(!u(this,e)&&(t instanceof Ye||t instanceof $e&&t.expression===this))return!0}),t(At,function(e){var t=e.parent();if(t instanceof Ye&&t.expression===this){var n=this.getValue();if(n<0||/^0/.test(l(n)))return!0}}),t([tt,et],function(e){var t=e.parent();return t instanceof Qe||(t instanceof Xe&&!(t instanceof tt)||(t instanceof $e&&t.expression===this||(t instanceof et&&t.condition===this||(t instanceof Ye&&t.expression===this||void 0))))}),e(ae,function(e,t){t.print_string(e.value,e.quote),t.semicolon()}),e(ie,function(e,t){t.print("debugger"),t.semicolon()}),fe.DEFMETHOD("_do_print_body",function(e){a(this.body,e)}),e(oe,function(e,t){e.body.print(t),t.semicolon()}),e(we,function(e,t){n(e.body,!0,t,!0),t.print("")}),e(pe,function(e,t){e.label.print(t),t.colon(),e.body.print(t)}),e(ue,function(e,t){e.body.print(t),t.semicolon()}),e(le,function(e,t){r(e.body,t)}),e(ce,function(e,t){t.semicolon()}),e(me,function(e,t){t.print("do"),t.space(),c(e.body,t),t.space(),t.print("while"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.semicolon()}),e(ge,function(e,t){t.print("while"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e._do_print_body(t)}),e(ve,function(e,t){t.print("for"),t.space(),t.with_parens(function(){e.init?(e.init instanceof Ie?e.init.print(t):i(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(be,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(ye,function(e,t){t.print("with"),t.space(),t.with_parens(function(){e.expression.print(t)}),t.space(),e._do_print_body(t)}),Ae.DEFMETHOD("_do_print",function(e,t){var n=this;t||e.print("function"),n.name&&(e.space(),n.name.print(e)),e.with_parens(function(){n.argnames.forEach(function(t,n){n&&e.comma(),t.print(e)})}),e.space(),r(n.body,e,!0)}),e(Ae,function(e,t){e._do_print(t)}),Oe.DEFMETHOD("_do_print",function(e,t){e.print(t),this.value&&(e.space(),this.value.print(e)),e.semicolon()}),e(Be,function(e,t){e._do_print(t,"return")}),e(Se,function(e,t){e._do_print(t,"throw")}),De.DEFMETHOD("_do_print",function(e,t){e.print(t),this.label&&(e.space(),this.label.print(e)),e.semicolon()}),e(Te,function(e,t){e._do_print(t,"break")}),e(Re,function(e,t){e._do_print(t,"continue")}),e(Fe,function(e,t){t.print("if"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e.alternative?(o(e,t),t.space(),t.print("else"),t.space(),e.alternative instanceof Fe?e.alternative.print(t):a(e.alternative,t)):e._do_print_body(t)}),e(Le,function(e,t){t.print("switch"),t.space(),t.with_parens(function(){e.expression.print(t)}),t.space();var n=e.body.length-1;n<0?t.print("{}"):t.with_block(function(){e.body.forEach(function(e,r){t.indent(!0),e.print(t),r0&&t.newline()})})}),Me.DEFMETHOD("_do_print_body",function(e){e.newline(),this.body.forEach(function(t){e.indent(),t.print(e),e.newline()})}),e(Pe,function(e,t){t.print("default:"),e._do_print_body(t)}),e(Ue,function(e,t){t.print("case"),t.space(),e.expression.print(t),t.print(":"),e._do_print_body(t)}),e(Ne,function(e,t){t.print("try"),t.space(),r(e.body,t),e.bcatch&&(t.space(),e.bcatch.print(t)),e.bfinally&&(t.space(),e.bfinally.print(t))}),e(qe,function(e,t){t.print("catch"),t.space(),t.with_parens(function(){e.argname.print(t)}),t.space(),r(e.body,t)}),e(ze,function(e,t){t.print("finally"),t.space(),r(e.body,t)}),Ie.DEFMETHOD("_do_print",function(e,t){e.print(t),e.space(),this.definitions.forEach(function(t,n){n&&e.comma(),t.print(e)});var n=e.parent();(n instanceof ve||n instanceof be)&&n.init===this||e.semicolon()}),e(je,function(e,t){e._do_print(t,"var")}),e(Ve,function(e,t){if(e.name.print(t),e.value){t.space(),t.print("="),t.space();var n=t.parent(1),r=n instanceof ve||n instanceof be;i(e.value,t,r)}}),e($e,function(e,t){e.expression.print(t),e instanceof He&&!u(e,t)||t.with_parens(function(){e.args.forEach(function(e,n){n&&t.comma(),e.print(t)})})}),e(He,function(e,t){t.print("new"),t.space(),$e.prototype._codegen(e,t)}),Ke.DEFMETHOD("_do_print",function(e){this.expressions.forEach(function(t,n){n>0&&(e.comma(),e.should_break()&&(e.newline(),e.indent())),t.print(e)})}),e(Ke,function(e,t){e._do_print(t)}),e(Ge,function(e,t){var n=e.expression;n.print(t),n instanceof At&&n.getValue()>=0&&(/[xa-f.)]/i.test(t.last())||t.print(".")),t.print("."),t.add_mapping(e.end),t.print_name(e.property)}),e(We,function(e,t){e.expression.print(t),t.print("["),e.property.print(t),t.print("]")}),e(Ze,function(e,t){var n=e.operator;t.print(n),(/^[a-z]/i.test(n)||/[+-]$/.test(n)&&e.expression instanceof Ze&&/^[+-]/.test(e.expression.operator))&&t.space(),e.expression.print(t)}),e(Je,function(e,t){e.expression.print(t),t.print(e.operator)}),e(Xe,function(e,t){var n=e.operator;e.left.print(t),">"==n[0]&&e.left instanceof Je&&"--"==e.left.operator?t.print(" "):t.space(),t.print(n),("<"==n||"<<"==n)&&e.right instanceof Ze&&"!"==e.right.operator&&e.right.expression instanceof Ze&&"--"==e.right.expression.operator?t.print(" "):t.space(),e.right.print(t)}),e(et,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(nt,function(e,t){t.with_square(function(){var n=e.elements,r=n.length;r>0&&t.space(),n.forEach(function(e,n){n&&t.comma(),e.print(t),n===r-1&&e instanceof Bt&&t.comma()}),r>0&&t.space()})}),e(rt,function(e,t){e.properties.length>0?t.with_block(function(){e.properties.forEach(function(e,n){n&&(t.print(","),t.newline()),t.indent(),e.print(t)}),t.newline()}):t.print("{}")}),e(it,function(e,t){var n=e.key,r=e.quote;t.option("quote_keys")?t.print_string(n+""):("number"==typeof n||!t.option("beautify")&&+n+""==n)&&parseFloat(n)>=0?t.print(l(n)):(Mt(n)?!t.option("ie8"):U(n))?r&&t.option("keep_quoted_props")?t.print_string(n,r):t.print_name(n):t.print_string(n,r),t.colon(),e.value.print(t)}),e(at,function(e,t){t.print("set"),t.space(),e.key.print(t),e.value._do_print(t,!0)}),e(ut,function(e,t){t.print("get"),t.space(),e.key.print(t),e.value._do_print(t,!0)}),e(st,function(e,t){var n=e.definition();t.print_name(n?n.mangled_name||n.name:e.name)}),e(Bt,f),e(yt,function(e,t){t.print("this")}),e(_t,function(e,t){t.print(e.getValue())}),e(wt,function(e,t){t.print_string(e.getValue(),e.quote,m)}),e(At,function(e,t){d&&e.start&&null!=e.start.raw?t.print(e.start.raw):t.print(l(e.getValue()))}),e(Et,function(e,t){var n=e.getValue(),r=n.toString();n.raw_source&&(r="/"+n.raw_source+r.slice(r.lastIndexOf("/"))),t.option("ascii_only")&&(r=t.to_ascii(r)),t.print(r);var o=t.parent();o instanceof Xe&&/^in/.test(o.operator)&&o.left===e&&t.print(" ")}),p(re,f),p(ae,h),p(ie,h),p(st,h),p(ke,h),p(fe,h),p(pe,f),p(Ae,h),p(Le,h),p(Me,h),p(le,h),p(we,f),p(He,h),p(Ne,h),p(qe,h),p(ze,h),p(Ie,h),p(_t,h),p(at,function(e,t){t.add_mapping(e.start,e.key.name)}),p(ut,function(e,t){t.add_mapping(e.start,e.key.name)}),p(ot,function(e,t){t.add_mapping(e.start,e.key)})}(),G.prototype=new $,c(G.prototype,{option:function(e){return this.options[e]},toplevel:function(e){for(var t=0,n=e.orig.length;t0||this.option("reduce_vars"))&&e.reset_opt_flags(this,!0),e=e.transform(this);return this.option("expression")&&e.process_expression(!1),e},info:function(){"verbose"==this.options.warnings&&re.warn.apply(re,arguments)},warn:function(e,t){if(this.options.warnings){var n=v(e,t);n in this.warnings_produced||(this.warnings_produced[n]=!0,re.warn.apply(re,arguments))}},clear_warnings:function(){this.warnings_produced={}},before:function(e,t,n){if(e._squeezed)return e;var r=!1;e instanceof _e&&(e=e.hoist_declarations(this),r=!0),t(e,this),t(e,this);var o=e.optimize(this);return r&&o instanceof _e&&(o.drop_unused(this),t(o,this)),o===e&&(o._squeezed=!0),o}}),function(){function e(e,t){e.DEFMETHOD("optimize",function(e){var n=this;if(n._optimized)return n;if(e.has_directive("use asm"))return n;var r=t(n,e);return r._optimized=!0,r})}function t(e){return e instanceof vt&&e.definition().orig[0]instanceof dt}function n(e,t){for(var n,r=0;(n=e.parent(r++))&&!(n instanceof _e);)if(n instanceof qe){n=n.argname.definition().scope;break}return n.find_variable(t)}function r(e,t,n){return n||(n={}),t&&(n.start||(n.start=t.start),n.end||(n.end=t.end)),new e(n)}function a(e,t){return 1==t.length?t[0]:r(Ke,e,{expressions:t})}function u(e,t){switch(typeof e){case"string":return r(wt,t,{value:e});case"number":return isNaN(e)?r(kt,t):isFinite(e)?1/e<0?r(Ze,t,{operator:"-",expression:r(At,t,{value:-e})}):r(At,t,{value:e}):e<0?r(Ze,t,{operator:"-",expression:r(St,t)}):r(St,t);case"boolean":return r(e?Rt:Tt,t);case"undefined":return r(Ot,t);default:if(null===e)return r(Ct,t,{value:null});if(e instanceof RegExp)return r(Et,t,{value:e});throw new Error(v("Can't handle constant of type: {type}",{type:typeof e}))}}function s(e,t,n){return e instanceof Ze&&"delete"==e.operator||e instanceof $e&&e.expression===t&&(n instanceof Ye||n instanceof vt&&"eval"==n.name)?a(t,[r(At,t,{value:0}),n]):n}function l(e,t){t instanceof Ke?e.push.apply(e,t.expressions):e.push(t)}function c(e){if(null===e)return[];if(e instanceof le)return e.body;if(e instanceof ce)return[];if(e instanceof oe)return[e];throw new Error("Can't convert thing to statement array")}function g(e){return null===e||(e instanceof ce||e instanceof le&&0==e.body.length)}function y(e){return e instanceof Le?e:(e instanceof ve||e instanceof be||e instanceof de)&&e.body instanceof le?e.body:e}function C(e){return e instanceof $e&&!(e instanceof He)&&(e.expression instanceof xe||C(e.expression))}function B(e,n){function o(e){var t=[];return e.reduce(function(e,n){return n instanceof le?(u=!0,e.push.apply(e,o(n.body))):n instanceof ce?u=!0:n instanceof ae?t.indexOf(n.value)<0?(e.push(n),t.push(n.value)):u=!0:e.push(n),e},[])}function i(e,t){function n(e){o.pop();var n=i.body;return n instanceof Ke||(n=r(Ke,n,{expressions:[n]})),l(n.expressions,e),n.transform(t)}var o=[],i=null;return e.forEach(function(e){if(i)if(e instanceof ve)try{i.body.walk(new O(function(e){if(e instanceof Xe&&"in"==e.operator)throw n})),!e.init||e.init instanceof Ie?e.init||(e.init=i.body.drop_side_effect_free(t),o.pop()):e.init=n(e.init)}catch(e){if(e!==n)throw e}else e instanceof Fe?e.condition=n(e.condition):e instanceof ye?e.expression=n(e.expression):e instanceof Oe&&e.value?e.value=n(e.value):e instanceof Oe?e.value=n(r(Ot,e).transform(t)):e instanceof Le&&(e.expression=n(e.expression));o.push(e),i=e instanceof ue?e:null}),o}var u,f=10;do{u=!1,e=o(e),n.option("dead_code")&&(e=function(e,t){var n=!1,r=e.length,o=t.self();return e=e.reduce(function(e,r){if(n)D(t,r,e);else{if(r instanceof De){var i=t.loopcontrol_target(r);r instanceof Te&&!(i instanceof he)&&y(i)===o||r instanceof Re&&y(i)===o?r.label&&b(r.label.thedef.references,r):e.push(r)}else e.push(r);P(r)&&(n=!0)}return e},[]),u=e.length!=r,e}(e,n)),n.option("if_return")&&(e=function(e,t){var n=t.self(),o=function(e){for(var t=0,n=e.length;--n>=0;){var r=e[n];if(r instanceof Fe&&r.body instanceof Be&&++t>1)return!0}return!1}(e),i=n instanceof Ae,a=[];e:for(var s=e.length;--s>=0;){var l=e[s];switch(!0){case i&&l instanceof Be&&!l.value&&0==a.length:u=!0;continue e;case l instanceof Fe:if(l.body instanceof Be){var f=l.body.value;if((i&&0==a.length||a[0]instanceof Be&&!a[0].value)&&!f&&!l.alternative){u=!0;var p=r(ue,l.condition,{body:l.condition});a.unshift(p);continue e}if(a[0]instanceof Be&&f&&a[0].value&&!l.alternative){u=!0,(l=l.clone()).alternative=a[0],a[0]=l.transform(t);continue e}if(o&&(0==a.length||a[0]instanceof Be)&&f&&!l.alternative&&i){u=!0,(l=l.clone()).alternative=a[0]||r(Be,l,{value:null}),a[0]=l.transform(t);continue e}if(i&&(!f||f instanceof Ze&&"void"==f.operator)){u=!0,(l=l.clone()).condition=l.condition.negate(t);var h=S(g=c(l.alternative).concat(a));l.body=r(le,l,{body:g}),l.alternative=f?r(ue,f,{body:f.expression}):null,a=h.concat([l.transform(t)]);continue e}if(t.option("sequences")&&s>0&&e[s-1]instanceof Fe&&e[s-1].body instanceof Be&&1==a.length&&i&&a[0]instanceof ue&&!l.alternative){u=!0,a.push(r(Be,a[0],{value:null}).transform(t)),a.unshift(l);continue e}}var d=P(l.body),m=d instanceof De?t.loopcontrol_target(d):null;if(d&&(d instanceof Be&&!d.value&&i||d instanceof Re&&n===y(m)||d instanceof Te&&m instanceof le&&n===m)){d.label&&b(d.label.thedef.references,d),u=!0;var g=c(l.body).slice(0,-1);(l=l.clone()).condition=l.condition.negate(t),l.body=r(le,l,{body:c(l.alternative).concat(a)}),l.alternative=r(le,l,{body:g}),a=[l.transform(t)];continue e}m=(d=P(l.alternative))instanceof De?t.loopcontrol_target(d):null;if(d&&(d instanceof Be&&!d.value&&i||d instanceof Re&&n===y(m)||d instanceof Te&&m instanceof le&&n===m)){d.label&&b(d.label.thedef.references,d),u=!0,(l=l.clone()).body=r(le,l.body,{body:c(l.body).concat(a)}),l.alternative=r(le,l.alternative,{body:c(l.alternative).slice(0,-1)}),a=[l.transform(t)];continue e}a.unshift(l);break;default:a.unshift(l)}}return a}(e,n)),n.sequences_limit>0&&(e=function(e,t){function n(){if(o.length){var e=a(o[0],o);s.push(r(ue,e,{body:e})),o=[]}}if(e.length<2)return e;var o=[],s=[];return e.forEach(function(e){if(e instanceof ue){o.length>=t.sequences_limit&&n();var r=e.body;o.length>0&&(r=r.drop_side_effect_free(t)),r&&l(o,r)}else n(),s.push(e)}),n(),s=i(s,t),u=s.length!=e.length,s}(e,n)),n.option("join_vars")&&(e=function(e,t){var n=null;return e.reduce(function(e,t){return t instanceof Ie&&n&&n.TYPE==t.TYPE?(n.definitions=n.definitions.concat(t.definitions),u=!0):t instanceof ve&&n instanceof je&&(!t.init||t.init.TYPE==n.TYPE)?(u=!0,e.pop(),t.init?t.init.definitions=n.definitions.concat(t.init.definitions):t.init=n,e.push(t),n=t):(n=t,e.push(t)),e},[])}(e,n)),n.option("collapse_vars")&&(e=function(e,n){function o(e){e instanceof tt&&!e.left.has_side_effects(n)||e instanceof Qe&&("++"==e.operator||"--"==e.operator)?f.push(e):e instanceof Ke?e.expressions.forEach(o):e instanceof Ie?e.definitions.forEach(function(e){e.value&&f.push(e)}):e instanceof ue?o(e.body):e instanceof ve&&e.init&&o(e.init)}function i(e){for(;e instanceof Ye;)e=e.expression;return e}function a(e){return e instanceof Ve?e.value&&e.name:R(e.left,e)}function l(e){return 1==e.orig.length&&e.orig[0]instanceof ht||e.scope===c&&e.references.every(function(e){return e.scope===c})}var c=n.find_parent(_e);if(c.uses_eval||c.uses_with)return e;for(var f=[],p=e.length;--p>=0;)for(o(e[p]);f.length>0;){var h=f.pop(),d=function(e){if(!(e instanceof Ve))return e[e instanceof tt?"left":"expression"];var t=e.name.definition();return t.orig.length>1||1==t.references.length&&(!t.global||n.toplevel(t))?r(vt,e.name,e.name):void 0}(h);if(d&&!t(d)){var m=function(e){var t=Object.create(null);if(e instanceof Qe)return t;var n,r=new O(function(e,o){if(e instanceof _e){var a=n;return o(),n=a,!0}if(e instanceof vt||e instanceof Ye){var u=i(e);u instanceof vt&&(t[u.name]=t[u.name]||R(e,r.parent()))}});return e[e instanceof tt?"right":"value"].walk(r),t}(h);d instanceof vt&&(m[d.name]=!1);for(var g=function(e){return!(e instanceof Qe)&&e[e instanceof tt?"right":"value"].has_side_effects(n)}(h),v=!1,y=!1,_=!1,w=(new $(function(e,t){if(y)return e;{if(v){var o=w.parent();if(e instanceof tt&&"="!=e.operator&&d.equivalent_to(e.left)||e instanceof ie||e instanceof he&&!(e instanceof ve)||e instanceof vt&&e.undeclared()||e instanceof Ne||e instanceof ye||o instanceof ve&&e!==o.init)return y=!0,e;if(!(e instanceof ct)&&!R(e,o)&&d.equivalent_to(e)){if(u=_=y=!0,n.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 Je)return r(Ze,h,h);if(h instanceof Ve){var c=h.name.definition();return 1!=c.references.length||c.global&&!n.toplevel(c)?r(tt,h,{operator:"=",left:r(vt,h.name,h.name),right:h.value}):s(o,e,h.value)}return h}var f;return e instanceof $e||e instanceof Oe||e instanceof Ye||e instanceof vt&&(m[e.name]||g&&!l(e.definition()))||(f=a(e))&&i(f).name in m||o instanceof Xe&&("&&"==o.operator||"||"==o.operator)||o instanceof Ue||o instanceof et||o instanceof ve||o instanceof Fe?(e instanceof _e||t(e,w),y=!0,e):e instanceof Pe||e instanceof _e?e:void 0}if(e===h)return v=!0,e}})),A=p;!y&&A0);return e}function S(e){for(var t=[],n=e.length-1;n>=0;--n){var r=e[n];r instanceof Ce&&(e.splice(n,1),t.unshift(r))}return t}function D(e,t,n){t instanceof Ce||e.warn("Dropping unreachable code [{file}:{line},{col}]",t.start),t.walk(new O(function(t){return t instanceof Ie?(e.warn("Declarations in unreachable code! [{file}:{line},{col}]",t.start),t.remove_initializers(),n.push(t),!0):t instanceof Ce?(n.push(t),!0):t instanceof _e||void 0}))}function T(e,t){return e.is_undefined||e instanceof Ot||e instanceof Ze&&"void"==e.operator&&!e.expression.has_side_effects(t)}function R(e,t){return t instanceof Qe&&j(t.operator)?t.expression:t instanceof tt&&t.left===e?e:void 0}function F(e,t){return e.print_to_string().length>t.print_to_string().length?t:e}function L(e,t){return F(r(ue,e,{body:e}),r(ue,t,{body:t})).body}function M(e,t,n){return(x(e)?L:F)(t,n)}function P(e){return e&&e.aborts()}function N(e,t){function n(n){n=c(n),e.body instanceof le?(e.body=e.body.clone(),e.body.body=n.concat(e.body.body.slice(1)),e.body=e.body.transform(t)):e.body=r(le,e.body,{body:n}).transform(t),N(e,t)}var o=e.body instanceof le?e.body.body[0]:e.body;o instanceof Fe&&(o.body instanceof Te&&t.loopcontrol_target(o.body)===t.self()?(e.condition?e.condition=r(Xe,e.condition,{left:e.condition,operator:"&&",right:o.condition.negate(t)}):e.condition=o.condition.negate(t),n(o.alternative)):o.alternative instanceof Te&&t.loopcontrol_target(o.alternative)===t.self()&&(e.condition?e.condition=r(Xe,e.condition,{left:e.condition,operator:"&&",right:o.condition}):e.condition=o.condition,n(o.body)))}function z(e,t){return e instanceof vt||e.TYPE===t.TYPE}function I(e,t){return t.option("booleans")&&t.in_boolean_context()?M(t,e,a(e,[e,r(Rt,e)]).optimize(t)):e}e(re,function(e,t){return e}),re.DEFMETHOD("equivalent_to",function(e){return this.TYPE==e.TYPE&&this.print_to_string()==e.print_to_string()}),_e.DEFMETHOD("process_expression",function(e,t){var n=this,o=new $(function(i){if(e&&i instanceof ue)return r(Be,i,{value:i.body});if(!e&&i instanceof Be){if(t){var a=i.value&&i.value.drop_side_effect_free(t,!0);return a?r(ue,i,{body:a}):r(ce,i)}return r(ue,i,{body:i.value||r(Ze,i,{operator:"void",expression:r(At,i,{value:0})})})}if(i instanceof Ae&&i!==n)return i;if(i instanceof se){var u=i.body.length-1;u>=0&&(i.body[u]=i.body[u].transform(o))}return i instanceof Fe&&(i.body=i.body.transform(o),i.alternative&&(i.alternative=i.alternative.transform(o))),i instanceof ye&&(i.body=i.body.transform(o)),i});n.transform(o)}),re.DEFMETHOD("reset_opt_flags",function(e,t){function n(e,t){p[e.id]=t}function o(e){if(p[e.id]){if(null==e.fixed){var t=e.orig[0];if(t instanceof pt||"arguments"==t.name)return!1;e.fixed=r(Ot,t)}return!0}}function i(e,t){return!!E(p,e.id)&&(!!o(e)&&(!1!==e.fixed&&(!(null!=e.fixed&&(!t||e.references.length>0))&&!e.orig.some(function(e){return e instanceof ht||e instanceof dt}))))}function a(){p=Object.create(p)}function u(){p=Object.getPrototypeOf(p)}function s(t){t.escaped=!1,t.scope.uses_eval?t.fixed=!1:!t.global||e.toplevel(t)?t.fixed=void 0:t.fixed=!1,t.references=[],t.should_replace=void 0}function l(e){return e&&e.is_constant()||e instanceof Ae}function c(e,t,n){var r=d.parent(t);return!!(R(e,r)||!n&&r instanceof $e&&r.expression===e)||(r instanceof Ye&&r.expression===e?!n&&c(r,t+1):void 0)}var f=t&&e.option("reduce_vars"),p=Object.create(null),h=new O(function(e){if(e instanceof st){var t=e.definition();e instanceof vt&&t.references.push(e),t.fixed=!1}}),d=new O(function(t,m){if(t._squeezed=!1,t._optimized=!1,f){if(t instanceof we&&t.globals.each(s),t instanceof _e&&t.variables.each(s),t instanceof vt)if((v=t.definition()).references.push(t),void 0===v.fixed||!o(v)||c(t,0,l(t.fixed_value())))v.fixed=!1;else{var g=d.parent();(g instanceof tt&&"="==g.operator&&t===g.right||g instanceof $e&&t!==g.expression||g instanceof Be&&t===g.value&&t.scope!==v.scope||g instanceof Ve&&t===g.value)&&(v.escaped=!0)}if(t instanceof mt&&(t.definition().fixed=!1),t instanceof Ve){if(void 0===(v=t.name.definition()).fixed||i(v,t.value))return t.value?(v.fixed=function(){return t.value},n(v,!1),m()):v.fixed=null,n(v,!0),!0;t.value&&(v.fixed=!1)}if(t instanceof tt&&"="==t.operator&&t.left instanceof vt&&i(v=t.left.definition(),t.right))return v.references.push(t.left),v.fixed=function(){return t.right},n(v,!1),t.right.walk(d),n(v,!0),!0;if(t instanceof Ce){var v=t.name.definition();v.global&&!e.toplevel(v)||o(v)?v.fixed=!1:(v.fixed=t,n(v,!0));y=p;return p=Object.create(null),m(),p=y,!0}if(t instanceof xe){a();var b;return!t.name&&(b=d.parent())instanceof $e&&b.expression===t&&t.argnames.forEach(function(e,o){var i=e.definition();t.uses_arguments||void 0!==i.fixed?i.fixed=!1:(i.fixed=function(){return b.args[o]||r(Ot,b)},n(i,!0))}),m(),u(),!0}if(t instanceof Ee){var y=p;return p=Object.create(null),m(),p=y,!0}if(t instanceof Xe&&("&&"==t.operator||"||"==t.operator))return t.left.walk(d),a(),t.right.walk(d),u(),!0;if(t instanceof et)return t.condition.walk(d),a(),t.consequent.walk(d),u(),a(),t.alternative.walk(d),u(),!0;if(t instanceof Fe)return t.condition.walk(d),a(),t.body.walk(d),u(),t.alternative&&(a(),t.alternative.walk(d),u()),!0;if(t instanceof de)return a(),t.condition.walk(d),t.body.walk(d),u(),!0;if(t instanceof pe)return a(),t.body.walk(d),u(),!0;if(t instanceof ve)return t.init&&t.init.walk(d),t.condition&&(a(),t.condition.walk(d),u()),a(),t.body.walk(d),u(),t.step&&(a(),t.step.walk(d),u()),!0;if(t instanceof be)return t.init.walk(h),t.object.walk(d),a(),t.body.walk(d),u(),!0;if(t instanceof Ne)return a(),k(t,d),u(),t.bcatch&&(a(),t.bcatch.walk(d),u()),t.bfinally&&t.bfinally.walk(d),!0;if(t instanceof Me)return a(),m(),u(),!0}});this.walk(d)}),vt.DEFMETHOD("fixed_value",function(){var e=this.definition().fixed;return!e||e instanceof re?e:e()}),function(e){function t(e){return/strict/.test(e)}re.DEFMETHOD("may_throw_on_access",function(e){var t=e.option("pure_getters");return!t||this._throw_on_access(t)}),e(re,t),e(Ct,h),e(Ot,h),e(_t,p),e(nt,p),e(rt,function(e){if(!t(e))return!1;for(var n=this.properties.length;--n>=0;)if(this.properties[n].value instanceof Ee)return!0;return!1}),e(xe,p),e(Je,p),e(Ze,function(){return"void"==this.operator}),e(Xe,function(e){switch(this.operator){case"&&":return this.left._throw_on_access(e);case"||":return this.left._throw_on_access(e)&&this.right._throw_on_access(e);default:return!1}}),e(tt,function(e){return"="==this.operator&&this.right._throw_on_access(e)}),e(et,function(e){return this.consequent._throw_on_access(e)||this.alternative._throw_on_access(e)}),e(Ke,function(e){return this.expressions[this.expressions.length-1]._throw_on_access(e)}),e(vt,function(e){if(this.is_undefined)return!0;if(!t(e))return!1;var n=this.fixed_value();return!n||n._throw_on_access(e)})}(function(e,t){e.DEFMETHOD("_throw_on_access",t)}),function(e){var t=["!","delete"],n=["in","instanceof","==","!=","===","!==","<","<=",">=",">"];e(re,p),e(Ze,function(){return o(this.operator,t)}),e(Xe,function(){return o(this.operator,n)||("&&"==this.operator||"||"==this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),e(et,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),e(tt,function(){return"="==this.operator&&this.right.is_boolean()}),e(Ke,function(){return this.expressions[this.expressions.length-1].is_boolean()}),e(Rt,h),e(Tt,h)}(function(e,t){e.DEFMETHOD("is_boolean",t)}),function(e){e(re,p),e(At,h);var t=_("+ - ~ ++ --");e(Qe,function(){return t(this.operator)});var n=_("- * / % & | ^ << >> >>>");e(Xe,function(e){return n(this.operator)||"+"==this.operator&&this.left.is_number(e)&&this.right.is_number(e)}),e(tt,function(e){return n(this.operator.slice(0,-1))||"="==this.operator&&this.right.is_number(e)}),e(Ke,function(e){return this.expressions[this.expressions.length-1].is_number(e)}),e(et,function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)})}(function(e,t){e.DEFMETHOD("is_number",t)}),function(e){e(re,p),e(wt,h),e(Ze,function(){return"typeof"==this.operator}),e(Xe,function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))}),e(tt,function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)}),e(Ke,function(e){return this.expressions[this.expressions.length-1].is_string(e)}),e(et,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)})}(function(e,t){e.DEFMETHOD("is_string",t)});var j=_("delete ++ --");!function(e){function t(e,n){if(e instanceof re)return r(e.CTOR,n,e);if(Array.isArray(e))return r(nt,n,{elements:e.map(function(e){return t(e,n)})});if(e&&"object"==typeof e){var o=[];for(var i in e)o.push(r(it,n,{key:i,value:t(e[i],n)}));return r(rt,n,{properties:o})}return u(e,n)}re.DEFMETHOD("resolve_defines",function(e){if(e.option("global_defs")){var t=this._find_defs(e,"");if(t){var n,r=this,o=0;do{n=r,r=e.parent(o++)}while(r instanceof Ye&&r.expression===n);if(!R(n,r))return t;e.warn("global_defs "+this.print_to_string()+" redefined [{file}:{line},{col}]",this.start)}}}),e(re,f),e(Ge,function(e,t){return this.expression._find_defs(e,"."+this.property+t)}),e(vt,function(e,n){if(this.global()){var r,o=e.option("global_defs");if(o&&E(o,r=this.name+n)){var i=t(o[r],this),a=e.find_parent(we);return i.walk(new O(function(e){e instanceof vt&&(e.scope=a,e.thedef=a.def_global(e))})),i}}})}(function(e,t){e.DEFMETHOD("_find_defs",t)}),function(e){function t(e,t){if(!t)throw new Error("Compressor must be passed");return e._eval(t)}re.DEFMETHOD("evaluate",function(t){if(!t.option("evaluate"))return this;try{var n=this._eval(t);return!n||n instanceof RegExp||"object"!=typeof n?n:this}catch(t){if(t!==e)throw t;return this}});var n=_("! ~ - + void");re.DEFMETHOD("is_constant",function(){return this instanceof _t?!(this instanceof Et):this instanceof Ze&&this.expression instanceof _t&&n(this.operator)}),re.DEFMETHOD("constant_value",function(e){if(this instanceof _t&&!(this instanceof Et))return this.value;if(this instanceof Ze&&this.expression instanceof _t)switch(this.operator){case"!":return!this.expression.value;case"~":return~this.expression.value;case"-":return-this.expression.value;case"+":return+this.expression.value;default:throw new Error(v("Cannot evaluate unary expression {value}",{value:this.print_to_string()}))}var t=this.evaluate(e);if(t!==this)return t;throw new Error(v("Cannot evaluate constant [{file}:{line},{col}]",this.start))}),e(oe,function(){throw new Error(v("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),e(Ae,function(){throw e}),e(re,function(){throw e}),e(_t,function(){return this.getValue()}),e(nt,function(n){if(n.option("unsafe"))return this.elements.map(function(e){return t(e,n)});throw e}),e(rt,function(n){if(n.option("unsafe")){for(var r={},o=0,i=this.properties.length;o>":r=t(o,n)>>t(i,n);break;case">>>":r=t(o,n)>>>t(i,n);break;case"==":r=t(o,n)==t(i,n);break;case"===":r=t(o,n)===t(i,n);break;case"!=":r=t(o,n)!=t(i,n);break;case"!==":r=t(o,n)!==t(i,n);break;case"<":r=t(o,n)":r=t(o,n)>t(i,n);break;case">=":r=t(o,n)>=t(i,n);break;default:throw e}if(isNaN(r)&&n.find_parent(ye))throw e;return r}),e(et,function(e){return t(this.condition,e)?t(this.consequent,e):t(this.alternative,e)}),e(vt,function(n){if(!n.option("reduce_vars")||this._evaluating)throw e;this._evaluating=!0;try{var r=this.fixed_value();if(!r)throw e;var o=t(r,n);if(E(r,"_eval")||(r._eval=function(){return o}),o&&"object"==typeof o&&this.definition().escaped)throw e;return o}finally{this._evaluating=!1}}),e(Ye,function(n){if(n.option("unsafe")){var r=this.property;r instanceof re&&(r=t(r,n));var o=t(this.expression,n);if(o&&E(o,r))return o[r]}throw e})}(function(e,t){e.DEFMETHOD("_eval",t)}),function(e){function t(e){return r(Ze,e,{operator:"!",expression:e})}function n(e,n,o){var i=t(e);if(o){var a=r(ue,n,{body:n});return F(i,a)===a?n:i}return F(i,n)}e(re,function(){return t(this)}),e(oe,function(){throw new Error("Cannot negate a statement")}),e(xe,function(){return t(this)}),e(Ze,function(){return"!"==this.operator?this.expression:t(this)}),e(Ke,function(e){var t=this.expressions.slice();return t.push(t.pop().negate(e)),a(this,t)}),e(et,function(e,t){var r=this.clone();return r.consequent=r.consequent.negate(e),r.alternative=r.alternative.negate(e),n(this,r,t)}),e(Xe,function(e,r){var o=this.clone(),i=this.operator;if(e.option("unsafe_comps"))switch(i){case"<=":return o.operator=">",o;case"<":return o.operator=">=",o;case">=":return o.operator="<",o;case">":return o.operator="<=",o}switch(i){case"==":return o.operator="!=",o;case"!=":return o.operator="==",o;case"===":return o.operator="!==",o;case"!==":return o.operator="===",o;case"&&":return o.operator="||",o.left=o.left.negate(e,r),o.right=o.right.negate(e),n(this,o,r);case"||":return o.operator="&&",o.left=o.left.negate(e,r),o.right=o.right.negate(e),n(this,o,r)}return t(this)})}(function(e,t){e.DEFMETHOD("negate",function(e,n){return t.call(this,e,n)})}),$e.DEFMETHOD("has_pure_annotation",function(e){if(!e.option("side_effects"))return!1;if(void 0!==this.pure)return this.pure;var t,n,r=!1;return this.start&&(t=this.start.comments_before)&&t.length&&/[@#]__PURE__/.test((n=t[t.length-1]).value)&&(r=n),this.pure=r}),function(e){function t(e,t){for(var n=e.length;--n>=0;)if(e[n].has_side_effects(t))return!0;return!1}e(re,h),e(ce,p),e(_t,p),e(yt,p),e($e,function(e){if(!this.has_pure_annotation(e)&&e.pure_funcs(this))return!0;for(var t=this.args.length;--t>=0;)if(this.args[t].has_side_effects(e))return!0;return!1}),e(se,function(e){return t(this.body,e)}),e(Le,function(e){return this.expression.has_side_effects(e)||t(this.body,e)}),e(Ue,function(e){return this.expression.has_side_effects(e)||t(this.body,e)}),e(Ne,function(e){return t(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)}),e(Fe,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(pe,function(e){return this.body.has_side_effects(e)}),e(ue,function(e){return this.body.has_side_effects(e)}),e(Ce,h),e(xe,p),e(Xe,function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)}),e(tt,h),e(et,function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)}),e(Qe,function(e){return j(this.operator)||this.expression.has_side_effects(e)}),e(vt,function(e){return this.undeclared()}),e(ct,p),e(rt,function(e){return t(this.properties,e)}),e(ot,function(e){return this.value.has_side_effects(e)}),e(nt,function(e){return t(this.elements,e)}),e(Ge,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)}),e(We,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e)}),e(Ke,function(e){return this.expressions.some(function(t,n){return t.has_side_effects(e)})})}(function(e,t){e.DEFMETHOD("has_side_effects",t)}),function(e){function t(e){for(var t=e.length;--t>=0;)if(!e[t].is_constant_expression())return!1;return!0}e(re,p),e(_t,h),e(Qe,function(){return this.expression.is_constant_expression()}),e(Xe,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()}),e(nt,function(){return t(this.elements)}),e(rt,function(){return t(this.properties)}),e(ot,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 e>0&&P(this.body[e-1])}e(oe,m),e(ke,d),e(le,t),e(Me,t),e(Fe,function(){return this.alternative&&P(this.body)&&P(this.alternative)&&this})}(function(e,t){e.DEFMETHOD("aborts",t)}),e(ae,function(e,t){return t.has_directive(e.value)!==e?r(ce,e):e}),e(ie,function(e,t){return t.option("drop_debugger")?r(ce,e):e}),e(pe,function(e,t){return e.body instanceof Te&&t.loopcontrol_target(e.body)===e.body?r(ce,e):0==e.label.references.length?e.body:e}),e(se,function(e,t){return e.body=B(e.body,t),e}),e(le,function(e,t){switch(e.body=B(e.body,t),e.body.length){case 1:return e.body[0];case 0:return r(ce,e)}return e}),_e.DEFMETHOD("drop_unused",function(e){if(e.option("unused")&&!e.has_directive("use asm")){var t=this;if(!t.uses_eval&&!t.uses_with){var n=!(t instanceof we)||e.toplevel.funcs,o=!(t instanceof we)||e.toplevel.vars;if(n||o){var i=!/keep_assign/.test(e.option("unused")),u=[],c=Object.create(null);t instanceof we&&e.top_retain&&t.variables.each(function(t){!e.top_retain(t)||t.id in c||(c[t.id]=!0,u.push(t))});var f=new A,p=new A,h=this,d=new O(function(r,a){if(r!==t){if(r instanceof Ce)return n||h!==t||(s=r.name.definition()).id in c||(c[s.id]=!0,u.push(s)),p.add(r.name.name,r),!0;if(r instanceof Ie&&h===t)return r.definitions.forEach(function(t){var n=t.name.definition();t.name instanceof ft&&f.add(n.id,t),o||n.id in c||(c[n.id]=!0,u.push(n)),t.value&&(p.add(t.name.name,t.value),t.value.has_side_effects(e)&&t.value.walk(d))}),!0;if(i&&r instanceof tt&&"="==r.operator&&r.left instanceof vt&&h===t)return r.right.walk(d),!0;if(r instanceof vt){var s=r.definition();return s.id in c||(c[s.id]=!0,u.push(s)),!0}if(r instanceof _e){var l=h;return h=r,a(),h=l,!0}}});t.walk(d);for(var m=0;m1)||(u.name=null)),u instanceof Ae&&!(u instanceof Ee))for(var m=!e.option("keep_fargs"),y=u.argnames,_=y.length;--_>=0;){var w=y[_];w.definition().id in c?m=!1:(w.__unused=!0,m&&(y.pop(),e[w.unreferenced()?"warn":"info"]("Dropping unused function argument {name} [{file}:{line},{col}]",d(w))))}if(n&&u instanceof Ce&&u!==t)return u.name.definition().id in c?u:(e[u.name.unreferenced()?"warn":"info"]("Dropping unused function {name} [{file}:{line},{col}]",d(u.name)),r(ce,u));if(o&&u instanceof Ie&&!(v.parent()instanceof be&&v.parent().init===u)){var A=[],E=[],x=[],C=[];if(u.definitions.forEach(function(t){t.value&&(t.value=t.value.transform(v));var n=t.name.definition();if(n.id in c){if(t.name instanceof ft){var o=f.get(n.id);if(o.length>1&&!t.value)return e.warn("Dropping duplicated definition of variable {name} [{file}:{line},{col}]",d(t.name)),b(o,t),void b(n.orig,t.name)}t.value?(C.length>0&&(x.length>0?(l(C,t.value),t.value=a(t.value,C)):A.push(r(ue,u,{body:a(u,C)})),C=[]),x.push(t)):E.push(t)}else if(n.orig[0]instanceof mt)(i=t.value&&t.value.drop_side_effect_free(e))&&l(C,i),t.value=null,E.push(t);else{var i=t.value&&t.value.drop_side_effect_free(e);i?(e.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",d(t.name)),l(C,i)):e[t.name.unreferenced()?"warn":"info"]("Dropping unused variable {name} [{file}:{line},{col}]",d(t.name)),b(n.orig,t.name)}}),0==E.length&&1==x.length&&x[0].name instanceof ft){var k=f.get(x[0].name.definition().id);if(k.length>1){var O=x.pop();e.warn("Converting duplicated definition of variable {name} to assignment [{file}:{line},{col}]",d(O.name)),b(k,O),b(O.name.definition().orig,O.name),C.unshift(r(tt,O,{operator:"=",left:r(vt,O.name,O.name),right:O.value}))}}switch((E.length>0||x.length>0)&&(u.definitions=E.concat(x),A.push(u)),C.length>0&&A.push(r(ue,u,{body:a(u,C)})),A.length){case 0:return h?te.skip:r(ce,u);case 1:return A[0];default:return h?te.splice(A):r(le,u,{body:A})}}if(o&&i&&u instanceof tt&&"="==u.operator&&u.left instanceof vt&&!((O=u.left.definition()).id in c)&&t.variables.get(O.name)===O)return s(v.parent(),u,u.right.transform(v));if(u instanceof ve){if(p(u,this),u.init instanceof le){B=u.init;return u.init=B.body.pop(),B.body.push(u),h?te.splice(B.body):B}return u.init instanceof ue?u.init=u.init.body:g(u.init)&&(u.init=null),u}if(u instanceof pe&&u.body instanceof ve){if(p(u,this),u.body instanceof le){var B=u.body;return u.body=B.body.pop(),B.body.push(u),h?te.splice(B.body):B}return u}return u instanceof _e&&u!==t?u:void 0});t.transform(v)}}}}),_e.DEFMETHOD("hoist_declarations",function(e){var t=this;if(e.has_directive("use asm"))return t;var n=e.option("hoist_funs"),o=e.option("hoist_vars");if(n||o){var u=[],s=[],l=new A,c=0,f=0;t.walk(new O(function(e){return e instanceof _e&&e!==t||(e instanceof je?(++f,!0):void 0)})),o=o&&f>1;var p=new $(function(i){if(i!==t){if(i instanceof ae)return u.push(i),r(ce,i);if(i instanceof Ce&&n)return s.push(i),r(ce,i);if(i instanceof je&&o){i.definitions.forEach(function(e){l.set(e.name.name,e),++c});var a=i.to_assignments(e),f=p.parent();if(f instanceof be&&f.init===i){if(null==a){var h=i.definitions[0].name;return r(vt,h,h)}return a}return f instanceof ve&&f.init===i?a:a?r(ue,i,{body:a}):r(ce,i)}if(i instanceof _e)return i}});if(t=t.transform(p),c>0){var h=[];if(l.each(function(e,n){t instanceof Ae&&i(function(t){return t.name==e.name.name},t.argnames)?l.del(n):((e=e.clone()).value=null,h.push(e),l.set(n,e))}),h.length>0){for(;00&&(f[0].body=c.concat(f[0].body)),e.body=f;o=f[f.length-1];){var v=o.body[o.body.length-1];if(v instanceof Te&&t.loopcontrol_target(v)===e&&o.body.pop(),o.body.length||o instanceof Ue&&(s||o.expression.has_side_effects(t)))break;f.pop()===s&&(s=null)}if(0==f.length)return r(le,e,{body:c.concat(r(ue,e.expression,{body:e.expression}))}).optimize(t);if(1==f.length&&(f[0]===l||f[0]===s)){var b=!1,y=new O(function(t){if(b||t instanceof Ae||t instanceof ue)return!0;t instanceof Te&&y.loopcontrol_target(t)===e&&(b=!0)});if(e.walk(y),!b)return(f=f[0].body.slice()).unshift(r(ue,e.expression,{body:e.expression})),r(le,e,{body:f}).optimize(t)}return e}),e(Ne,function(e,t){if(e.body=B(e.body,t),e.bcatch&&e.bfinally&&w(e.bfinally.body,g)&&(e.bfinally=null),w(e.body,g)){var n=[];return e.bcatch&&D(t,e.bcatch,n),e.bfinally&&(n=n.concat(e.bfinally.body)),r(le,e,{body:n}).optimize(t)}return e}),Ie.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(e){e.value=null})}),Ie.DEFMETHOD("to_assignments",function(e){var t=e.option("reduce_vars"),n=this.definitions.reduce(function(e,n){if(n.value){var o=r(vt,n.name,n.name);e.push(r(tt,n,{operator:"=",left:o,right:n.value})),t&&(o.definition().fixed=!1)}return e},[]);return 0==n.length?null:a(this,n)}),e(Ie,function(e,t){return 0==e.definitions.length?r(ce,e):e}),e($e,function(e,t){var n=e.expression;if(t.option("reduce_vars")&&n instanceof vt){var o=n.definition(),i=n.fixed_value();i instanceof Ce&&(o.fixed=i=r(xe,i,i).clone(!0)),i instanceof xe&&(n=i,!t.option("unused")||1!=o.references.length||o.scope.uses_arguments&&o.orig[0]instanceof pt||o.scope.uses_eval||t.find_parent(_e)!==o.scope||(e.expression=n))}if(t.option("unused")&&n instanceof xe&&!n.uses_arguments&&!n.uses_eval){for(var s=0,l=0,c=0,f=e.args.length;c=n.argnames.length;if(p||n.argnames[c].__unused){if(k=e.args[c].drop_side_effect_free(t))e.args[s++]=k;else if(!p){e.args[s++]=r(At,e.args[c],{value:0});continue}}else e.args[s++]=e.args[c];l=s}e.args.length=l}if(t.option("unsafe"))if(n instanceof vt&&n.undeclared())switch(n.name){case"Array":if(1!=e.args.length)return r(nt,e,{elements:e.args}).optimize(t);break;case"Object":if(0==e.args.length)return r(rt,e,{properties:[]});break;case"String":if(0==e.args.length)return r(wt,e,{value:""});if(e.args.length<=1)return r(Xe,e,{left:e.args[0],operator:"+",right:r(wt,e,{value:""})}).optimize(t);break;case"Number":if(0==e.args.length)return r(At,e,{value:0});if(1==e.args.length)return r(Ze,e,{expression:e.args[0],operator:"+"}).optimize(t);case"Boolean":if(0==e.args.length)return r(Tt,e);if(1==e.args.length)return r(Ze,e,{expression:r(Ze,e,{expression:e.args[0],operator:"!"}),operator:"!"}).optimize(t);break;case"Function":if(0==e.args.length)return r(xe,e,{argnames:[],body:[]});if(w(e.args,function(e){return e instanceof wt}))try{var h=V(y="(function("+e.args.slice(0,-1).map(function(e){return e.value}).join(",")+"){"+e.args[e.args.length-1].value+"})()"),d={ie8:t.option("ie8")};h.figure_out_scope(d);var m=new G(t.options);(h=h.transform(m)).figure_out_scope(d),h.mangle_names();var v;try{h.walk(new O(function(e){if(e instanceof Ae)throw v=e,h}))}catch(e){if(e!==h)throw e}if(!v)return e;var b=v.argnames.map(function(t,n){return r(wt,e.args[n],{value:t.print_to_string()})}),y=Y();return le.prototype._codegen.call(v,v,y),y=y.toString().replace(/^\{|\}$/g,""),b.push(r(wt,e.args[e.args.length-1],{value:y})),e.args=b,e}catch(n){if(!(n instanceof q))throw console.log(n),n;t.warn("Error parsing code passed to new Function [{file}:{line},{col}]",e.args[e.args.length-1].start),t.warn(n.toString())}}else{if(n instanceof Ge&&"toString"==n.property&&0==e.args.length)return r(Xe,e,{left:r(wt,e,{value:""}),operator:"+",right:n.expression}).optimize(t);if(n instanceof Ge&&n.expression instanceof nt&&"join"==n.property){var _;if(!(e.args.length>0&&(_=e.args[0].evaluate(t))===e.args[0])){var A=[],E=[];if(n.expression.elements.forEach(function(n){var o=n.evaluate(t);o!==n?E.push(o):(E.length>0&&(A.push(r(wt,e,{value:E.join(_)})),E.length=0),A.push(n))}),E.length>0&&A.push(r(wt,e,{value:E.join(_)})),0==A.length)return r(wt,e,{value:""});if(1==A.length)return A[0].is_string(t)?A[0]:r(Xe,A[0],{operator:"+",left:r(wt,e,{value:""}),right:A[0]});if(""==_){var x;return x=A[0].is_string(t)||A[1].is_string(t)?A.shift():r(wt,e,{value:""}),A.reduce(function(e,t){return r(Xe,t,{operator:"+",left:e,right:t})},x).optimize(t)}var k=e.clone();return k.expression=k.expression.clone(),k.expression.expression=k.expression.expression.clone(),k.expression.expression.elements=A,M(t,e,k)}}else if(n instanceof Ge&&n.expression.is_string(t)&&"charAt"==n.property){var B=e.args[0],S=B?B.evaluate(t):0;if(S!==B)return r(We,n,{expression:n.expression,property:u(0|S,B||n)}).optimize(t)}}if(n instanceof xe){if(n.body[0]instanceof Be){var D=n.body[0].value;if(!D||D.is_constant_expression()){b=e.args.concat(D||r(Ot,e));return a(e,b).transform(t)}}if(t.option("side_effects")&&w(n.body,g)){b=e.args.concat(r(Ot,e));return a(e,b).transform(t)}}if(t.option("drop_console")&&n instanceof Ye){for(var T=n.expression;T.expression;)T=T.expression;if(T instanceof vt&&"console"==T.name&&T.undeclared())return r(Ot,e).optimize(t)}return t.option("negate_iife")&&t.parent()instanceof ue&&C(e)?e.negate(t,!0):e}),e(He,function(e,t){if(t.option("unsafe")){var n=e.expression;if(n instanceof vt&&n.undeclared())switch(n.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return r($e,e,e).transform(t)}}return e}),e(Ke,function(e,n){if(!n.option("side_effects"))return e;var o=[];!function(){var t=x(n),r=e.expressions.length-1;e.expressions.forEach(function(e,i){i0&&T(o[i],n);)i--;i0&&n.option("cascade")&&function(){for(var e=0,a=1;a<=i;a++){var u=o[e],s=o[a];if((u=u instanceof tt&&!u.left.has_side_effects(n)?u.left:u instanceof Qe&&("++"==u.operator||"--"==u.operator)?u.expression:null)&&!t(u))for(var l,c=null;;){if(s.equivalent_to(u)){var f=o[e];f instanceof Je&&(f=r(Ze,f,{operator:f.operator,expression:u})),c?(c[l]=f,o[e]=o[a]):o[e]=f;break}if(s instanceof Xe&&!(s instanceof tt))if(s.left.is_constant()){if("||"==s.operator||"&&"==s.operator){o[++e]=o[a];break}l="right"}else l="left";else{if(!(s instanceof $e||s instanceof Ye||s instanceof Qe&&!j(s.operator))){o[++e]=o[a];break}l="expression"}c=s,s=s[l]}else o[++e]=s}i=e,o.length=i+1}(),0==i?((e=s(n.parent(),e,o[0]))instanceof Ke||(e=e.optimize(n)),e):(e.expressions=o,e)}),Qe.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")&&this.expression instanceof Ke){var t=this.expression.expressions.slice(),n=this.clone();return n.expression=t.pop(),t.push(n),a(this,t).optimize(e)}return this}),e(Je,function(e,t){return e.lift_sequences(t)}),e(Ze,function(e,t){var n=e.expression;if("delete"==e.operator&&!(n instanceof vt||n instanceof Ye||n instanceof kt||n instanceof St||n instanceof Ot))return n instanceof Ke?((n=n.expressions.slice()).push(r(Rt,e)),a(e,n).optimize(t)):a(e,[n,r(Rt,e)]).optimize(t);var o=e.lift_sequences(t);if(o!==e)return o;if(t.option("side_effects")&&"void"==e.operator)return n=n.drop_side_effect_free(t),n?(e.expression=n,e):r(Ot,e).optimize(t);if(t.option("booleans")&&t.in_boolean_context())switch(e.operator){case"!":if(n instanceof Ze&&"!"==n.operator)return n.expression;n instanceof Xe&&(e=M(t,e,n.negate(t,x(t))));break;case"typeof":return t.warn("Boolean expression always true [{file}:{line},{col}]",e.start),(n instanceof vt?r(Rt,e):a(e,[n,r(Rt,e)])).optimize(t)}if("-"==e.operator&&n instanceof St&&(n=n.transform(t)),n instanceof Xe&&("+"==e.operator||"-"==e.operator)&&("*"==n.operator||"/"==n.operator||"%"==n.operator))return r(Xe,e,{operator:n.operator,left:r(Ze,n.left,{operator:e.operator,expression:n.left}),right:n.right});if("-"!=e.operator||!(n instanceof At||n instanceof St)){var i=e.evaluate(t);if(i!==e)return i=u(i,e).optimize(t),M(t,i,e)}return e}),Xe.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")){if(this.left instanceof Ke){var t=this.left.expressions.slice();return(i=this.clone()).left=t.pop(),t.push(i),a(this,t).optimize(e)}if(this.right instanceof Ke&&!this.left.has_side_effects(e)){for(var n="="==this.operator&&this.left instanceof vt,r=(t=this.right.expressions).length-1,o=0;o0){var i=this.clone();return i.right=a(this.right,t.slice(o)),(t=t.slice(0,o)).push(i),a(this,t).optimize(e)}}}return this});var H=_("== === != !== * & | ^");e(Xe,function(e,t){function n(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(t)&&!e.right.has_side_effects(t)}function o(t){if(n()){t&&(e.operator=t);var r=e.left;e.left=e.right,e.right=r}}if(H(e.operator)&&e.right.is_constant()&&!e.left.is_constant()&&(e.left instanceof Xe&&Qt[e.left.operator]>=Qt[e.operator]||o()),e=e.lift_sequences(t),t.option("comparisons"))switch(e.operator){case"===":case"!==":(e.left.is_string(t)&&e.right.is_string(t)||e.left.is_number(t)&&e.right.is_number(t)||e.left.is_boolean()&&e.right.is_boolean())&&(e.operator=e.operator.substr(0,2));case"==":case"!=":if(e.left instanceof wt&&"undefined"==e.left.value&&e.right instanceof Ze&&"typeof"==e.right.operator){var i=e.right.expression;(i instanceof vt?i.undeclared():i instanceof Ye&&t.option("ie8"))||(e.right=i,e.left=r(Ot,e.left).optimize(t),2==e.operator.length&&(e.operator+="="))}}if(t.option("booleans")&&"+"==e.operator&&t.in_boolean_context()){var l=e.left.evaluate(t),c=e.right.evaluate(t);if(l&&"string"==typeof l)return t.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),a(e,[e.right,r(Rt,e)]).optimize(t);if(c&&"string"==typeof c)return t.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),a(e,[e.left,r(Rt,e)]).optimize(t)}if(t.option("comparisons")&&e.is_boolean()){if(!(t.parent()instanceof Xe)||t.parent()instanceof tt){var f=r(Ze,e,{operator:"!",expression:e.negate(t,x(t))});e=M(t,e,f)}if(t.option("unsafe_comps"))switch(e.operator){case"<":o(">");break;case"<=":o(">=")}}if("+"==e.operator){if(e.right instanceof wt&&""==e.right.getValue()&&e.left.is_string(t))return e.left;if(e.left instanceof wt&&""==e.left.getValue()&&e.right.is_string(t))return e.right;if(e.left instanceof Xe&&"+"==e.left.operator&&e.left.left instanceof wt&&""==e.left.left.getValue()&&e.right.is_string(t))return e.left=e.left.right,e.transform(t)}if(t.option("evaluate")){switch(e.operator){case"&&":if(!(l=e.left.evaluate(t)))return t.warn("Condition left of && always false [{file}:{line},{col}]",e.start),s(t.parent(),e,e.left).optimize(t);if(l!==e.left)return t.warn("Condition left of && always true [{file}:{line},{col}]",e.start),s(t.parent(),e,e.right).optimize(t);if(t.option("booleans")&&t.in_boolean_context()){if(!(c=e.right.evaluate(t)))return t.warn("Boolean && always false [{file}:{line},{col}]",e.start),a(e,[e.left,r(Tt,e)]).optimize(t);if(c!==e.right)return t.warn("Dropping side-effect-free && in boolean context [{file}:{line},{col}]",e.start),e.left.optimize(t)}break;case"||":if(!(l=e.left.evaluate(t)))return t.warn("Condition left of || always false [{file}:{line},{col}]",e.start),s(t.parent(),e,e.right).optimize(t);if(l!==e.left)return t.warn("Condition left of || always true [{file}:{line},{col}]",e.start),s(t.parent(),e,e.left).optimize(t);if(t.option("booleans")&&t.in_boolean_context()){if(!(c=e.right.evaluate(t)))return t.warn("Dropping side-effect-free || in boolean context [{file}:{line},{col}]",e.start),e.left.optimize(t);if(c!==e.right)return t.warn("Boolean || always true [{file}:{line},{col}]",e.start),a(e,[e.left,r(Rt,e)]).optimize(t)}}var p=!0;switch(e.operator){case"+":if(e.left instanceof _t&&e.right instanceof Xe&&"+"==e.right.operator&&e.right.left instanceof _t&&e.right.is_string(t)&&(e=r(Xe,e,{operator:"+",left:r(wt,e.left,{value:""+e.left.getValue()+e.right.left.getValue(),start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof _t&&e.left instanceof Xe&&"+"==e.left.operator&&e.left.right instanceof _t&&e.left.is_string(t)&&(e=r(Xe,e,{operator:"+",left:e.left.left,right:r(wt,e.right,{value:""+e.left.right.getValue()+e.right.getValue(),start:e.left.right.start,end:e.right.end})})),e.left instanceof Xe&&"+"==e.left.operator&&e.left.is_string(t)&&e.left.right instanceof _t&&e.right instanceof Xe&&"+"==e.right.operator&&e.right.left instanceof _t&&e.right.is_string(t)&&(e=r(Xe,e,{operator:"+",left:r(Xe,e.left,{operator:"+",left:e.left.left,right:r(wt,e.left.right,{value:""+e.left.right.getValue()+e.right.left.getValue(),start:e.left.right.start,end:e.right.left.end})}),right:e.right.right})),e.right instanceof Ze&&"-"==e.right.operator&&e.left.is_number(t)){e=r(Xe,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof Ze&&"-"==e.left.operator&&n()&&e.right.is_number(t)){e=r(Xe,e,{operator:"-",left:e.right,right:e.left.expression});break}case"*":p=t.option("unsafe_math");case"&":case"|":case"^":if(e.left.is_number(t)&&e.right.is_number(t)&&n()&&!(e.left instanceof Xe&&e.left.operator!=e.operator&&Qt[e.left.operator]>=Qt[e.operator])){var h=r(Xe,e,{operator:e.operator,left:e.right,right:e.left});e=e.right instanceof _t&&!(e.left instanceof _t)?M(t,h,e):M(t,e,h)}p&&e.is_number(t)&&(e.right instanceof Xe&&e.right.operator==e.operator&&(e=r(Xe,e,{operator:e.operator,left:r(Xe,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof _t&&e.left instanceof Xe&&e.left.operator==e.operator&&(e.left.left instanceof _t?e=r(Xe,e,{operator:e.operator,left:r(Xe,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right}):e.left.right instanceof _t&&(e=r(Xe,e,{operator:e.operator,left:r(Xe,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left}))),e.left instanceof Xe&&e.left.operator==e.operator&&e.left.right instanceof _t&&e.right instanceof Xe&&e.right.operator==e.operator&&e.right.left instanceof _t&&(e=r(Xe,e,{operator:e.operator,left:r(Xe,e.left,{operator:e.operator,left:r(Xe,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})))}}if(e.right instanceof Xe&&e.right.operator==e.operator&&("&&"==e.operator||"||"==e.operator||"+"==e.operator&&(e.right.left.is_string(t)||e.left.is_string(t)&&e.right.right.is_string(t))))return e.left=r(Xe,e.left,{operator:e.operator,left:e.left,right:e.right.left}),e.right=e.right.right,e.transform(t);var d=e.evaluate(t);return d!==e?(d=u(d,e).optimize(t),M(t,d,e)):e}),e(vt,function(e,t){var n=e.resolve_defines(t);if(n)return n.optimize(t);if(!t.option("ie8")&&e.undeclared()&&(!e.scope.uses_with||!t.find_parent(ye)))switch(e.name){case"undefined":return r(Ot,e).optimize(t);case"NaN":return r(kt,e).optimize(t);case"Infinity":return r(St,e).optimize(t)}if(t.option("evaluate")&&t.option("reduce_vars")&&R(e,t.parent())!==e){var o=e.definition(),i=e.fixed_value();if(i){if(void 0===o.should_replace){var a=i.evaluate(t);if(a===i||!t.option("unsafe_regexp")&&a instanceof RegExp)o.should_replace=!1;else{var s,l=(a=u(a,i)).optimize(t).print_to_string().length;!function(e){var t;return e.walk(new O(function(e){if(e instanceof vt&&(t=!0),t)return!0})),t}(i)?(l=Math.min(l,i.print_to_string().length),s=function(){var e=F(a.optimize(t),i);return e===a||e===i?e.clone(!0):e}):s=function(){var e=a.optimize(t);return e===a?e.clone(!0):e};var c=o.name.length,f=0;!t.option("unused")||o.global&&!t.toplevel(o)||(f=(c+2+l)/o.references.length),o.should_replace=l<=c+f&&s}}if(o.should_replace)return o.should_replace()}}return e}),e(Ot,function(e,t){if(t.option("unsafe")){var o=n(t,"undefined");if(o){var i=r(vt,e,{name:"undefined",scope:o.scope,thedef:o});return i.is_undefined=!0,i}}var a=R(t.self(),t.parent());return a&&z(a,e)?e:r(Ze,e,{operator:"void",expression:r(At,e,{value:0})})}),e(St,function(e,t){var o=R(t.self(),t.parent());return o&&z(o,e)?e:!t.option("keep_infinity")||o&&!z(o,e)||n(t,"Infinity")?r(Xe,e,{operator:"/",left:r(At,e,{value:1}),right:r(At,e,{value:0})}):e}),e(kt,function(e,t){var o=R(t.self(),t.parent());return o&&!z(o,e)||n(t,"NaN")?r(Xe,e,{operator:"/",left:r(At,e,{value:0}),right:r(At,e,{value:0})}):e});var K=["+","-","/","*","%",">>","<<",">>>","|","^","&"],W=["*","|","^","&"];e(tt,function(e,t){return"="==(e=e.lift_sequences(t)).operator&&e.left instanceof vt&&e.right instanceof Xe&&(e.right.left instanceof vt&&e.right.left.name==e.left.name&&o(e.right.operator,K)?(e.operator=e.right.operator+"=",e.right=e.right.right):e.right.right instanceof vt&&e.right.right.name==e.left.name&&o(e.right.operator,W)&&!e.right.left.has_side_effects(t)&&(e.operator=e.right.operator+"=",e.right=e.right.left)),e}),e(et,function(e,t){function n(e){return e.is_boolean()?e:r(Ze,e,{operator:"!",expression:e.negate(t)})}function o(e){return e instanceof Rt||e instanceof Ze&&"!"==e.operator&&e.expression instanceof _t&&!e.expression.value}function i(e){return e instanceof Tt||e instanceof Ze&&"!"==e.operator&&e.expression instanceof _t&&!!e.expression.value}if(!t.option("conditionals"))return e;if(e.condition instanceof Ke){var u=e.condition.expressions.slice();return e.condition=u.pop(),u.push(e),a(e,u)}var l=e.condition.evaluate(t);if(l!==e.condition)return l?(t.warn("Condition always true [{file}:{line},{col}]",e.start),s(t.parent(),e,e.consequent)):(t.warn("Condition always false [{file}:{line},{col}]",e.start),s(t.parent(),e,e.alternative));var c=l.negate(t,x(t));M(t,l,c)===c&&(e=r(et,e,{condition:c,consequent:e.alternative,alternative:e.consequent}));var f=e.condition,p=e.consequent,h=e.alternative;return f instanceof vt&&p instanceof vt&&f.definition()===p.definition()?r(Xe,e,{operator:"||",left:f,right:h}):p instanceof tt&&h instanceof tt&&p.operator==h.operator&&p.left.equivalent_to(h.left)&&(!e.condition.has_side_effects(t)||"="==p.operator&&!p.left.has_side_effects(t))?r(tt,e,{operator:p.operator,left:p.left,right:r(et,e,{condition:e.condition,consequent:p.right,alternative:h.right})}):p instanceof $e&&h.TYPE===p.TYPE&&1==p.args.length&&1==h.args.length&&p.expression.equivalent_to(h.expression)&&!p.expression.has_side_effects(t)?(p.args[0]=r(et,e,{condition:e.condition,consequent:p.args[0],alternative:h.args[0]}),p):p instanceof et&&p.alternative.equivalent_to(h)?r(et,e,{condition:r(Xe,e,{left:e.condition,operator:"&&",right:p.condition}),consequent:p.consequent,alternative:h}):p.equivalent_to(h)?a(e,[e.condition,p]).optimize(t):o(e.consequent)?i(e.alternative)?n(e.condition):r(Xe,e,{operator:"||",left:n(e.condition),right:e.alternative}):i(e.consequent)?o(e.alternative)?n(e.condition.negate(t)):r(Xe,e,{operator:"&&",left:n(e.condition.negate(t)),right:e.alternative}):o(e.alternative)?r(Xe,e,{operator:"||",left:n(e.condition.negate(t)),right:e.consequent}):i(e.alternative)?r(Xe,e,{operator:"&&",left:n(e.condition),right:e.consequent}):e}),e(Dt,function(e,t){if(t.option("booleans")){var n=t.parent();return n instanceof Xe&&("=="==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}),r(At,e,{value:+e.value})):r(Ze,e,{operator:"!",expression:r(At,e,{value:1-e.value})})}return e}),e(We,function(e,t){var n=e.property;if(n instanceof wt&&t.option("properties")){if(n=n.getValue(),Mt(n)?!t.option("ie8"):U(n))return r(Ge,e,{expression:e.expression,property:n}).optimize(t);var o=parseFloat(n);isNaN(o)||o.toString()!=n||(e.property=r(At,e.property,{value:o}))}var i=e.evaluate(t);return i!==e?(i=u(i,e).optimize(t),M(t,i,e)):e}),e(Ge,function(e,t){var n=e.resolve_defines(t);if(n)return n.optimize(t);var o=e.property;if(Mt(o)&&t.option("ie8"))return r(We,e,{expression:e.expression,property:r(wt,e,{value:o})}).optimize(t);if(t.option("unsafe_proto")&&e.expression instanceof Ge&&"prototype"==e.expression.property){var i=e.expression.expression;if(i instanceof vt&&i.undeclared())switch(i.name){case"Array":e.expression=r(nt,e.expression,{elements:[]});break;case"Object":e.expression=r(rt,e.expression,{properties:[]});break;case"String":e.expression=r(wt,e.expression,{value:""})}}var a=e.evaluate(t);return a!==e?(a=u(a,e).optimize(t),M(t,a,e)):e}),e(nt,I),e(rt,I),e(Et,I),e(Be,function(e,t){return e.value&&T(e.value,t)&&(e.value=null),e}),e(Ve,function(e,t){var n=t.option("global_defs");return n&&E(n,e.name.name)&&t.warn("global_defs "+e.name.name+" redefined [{file}:{line},{col}]",e.start),e})}(),function(){function e(e){if("Literal"==e.type)return null!=e.raw?e.raw:e.value+""}function n(t){var n=t.loc,r=n&&n.start,o=t.range;return new ne({file:n&&n.source,line:r&&r.line,col:r&&r.column,pos:o?o[0]:t.start,endline:r&&r.line,endcol:r&&r.column,endpos:o?o[0]:t.start,raw:e(t)})}function r(t){var n=t.loc,r=n&&n.end,o=t.range;return new ne({file:n&&n.source,line:r&&r.line,col:r&&r.column,pos:o?o[1]:t.end,endline:r&&r.line,endcol:r&&r.column,endpos:o?o[1]:t.end,raw:e(t)})}function o(e,o,a){var f="function From_Moz_"+e+"(M){\n";f+="return new U2."+o.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var h="function To_Moz_"+e+"(M){\n";h+="return {\ntype: "+JSON.stringify(e),a&&a.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],o=t[3];switch(f+=",\n"+o+": ",h+=",\n"+n+": ",r){case"@":f+="M."+n+".map(from_moz)",h+="M."+o+".map(to_moz)";break;case">":f+="from_moz(M."+n+")",h+="to_moz(M."+o+")";break;case"=":f+="M."+n,h+="M."+o;break;case"%":f+="from_moz(M."+n+").body",h+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}}),f+="\n})\n}",h+="\n}\n}",f=new Function("U2","my_start_token","my_end_token","from_moz","return("+f+")")(t,n,r,i),h=new Function("to_moz","to_moz_block","to_moz_scope","return("+h+")")(s,l,c),p[e]=f,u(o,h)}function i(e){h.push(e);var t=null!=e?p[e.type](e):null;return h.pop(),t}function a(e,t,n){var r=e.start,o=e.end;return null!=r.pos&&null!=o.endpos&&(t.range=[r.pos,o.endpos]),r.line&&(t.loc={start:{line:r.line,column:r.col},end:o.endline?{line:o.endline,column:o.endcol}:null},r.file&&(t.loc.source=r.file)),t}function u(e,t){e.DEFMETHOD("to_mozilla_ast",function(){return a(this,t(this))})}function s(e){return null!=e?e.to_mozilla_ast():null}function l(e){return{type:"BlockStatement",body:e.body.map(s)}}function c(e,t){var n=t.body.map(s);return t.body[0]instanceof ue&&t.body[0].body instanceof wt&&n.unshift(s(new ce(t.body[0]))),{type:e,body:n}}var f=function(e){for(var t=!0,n=0;n1||e.guardedHandlers&&e.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new Ne({start:n(e),end:r(e),body:i(e.block).body,bcatch:i(t[0]),bfinally:e.finalizer?new ze(i(e.finalizer)):null})},Property:function(e){var t=e.key,o={start:n(t),end:r(e.value),key:"Identifier"==t.type?t.name:t.value,value:i(e.value)};return"init"==e.kind?new it(o):(o.key=new lt({name:o.key}),o.value=new Ee(o.value),"get"==e.kind?new ut(o):"set"==e.kind?new at(o):void 0)},ArrayExpression:function(e){return new nt({start:n(e),end:r(e),elements:e.elements.map(function(e){return null===e?new Bt:i(e)})})},ObjectExpression:function(e){return new rt({start:n(e),end:r(e),properties:e.properties.map(function(e){return e.type="Property",i(e)})})},SequenceExpression:function(e){return new Ke({start:n(e),end:r(e),expressions:e.expressions.map(i)})},MemberExpression:function(e){return new(e.computed?We:Ge)({start:n(e),end:r(e),property:e.computed?i(e.property):e.property.name,expression:i(e.object)})},SwitchCase:function(e){return new(e.test?Ue:Pe)({start:n(e),end:r(e),expression:i(e.test),body:e.consequent.map(i)})},VariableDeclaration:function(e){return new je({start:n(e),end:r(e),definitions:e.declarations.map(i)})},Literal:function(e){var t=e.value,o={start:n(e),end:r(e)};if(null===t)return new Ct(o);switch(typeof t){case"string":return o.value=t,new wt(o);case"number":return o.value=t,new At(o);case"boolean":return new(t?Rt:Tt)(o);default:var i=e.regex;return i&&i.pattern?o.value=new RegExp(i.pattern,i.flags).toString():o.value=e.regex&&e.raw?e.raw:t,new Et(o)}},Identifier:function(e){var t=h[h.length-2];return new("LabeledStatement"==t.type?gt:"VariableDeclarator"==t.type&&t.id===e?ft:"FunctionExpression"==t.type?t.id===e?dt:pt:"FunctionDeclaration"==t.type?t.id===e?ht:pt:"CatchClause"==t.type?mt:"BreakStatement"==t.type||"ContinueStatement"==t.type?bt:vt)({start:n(e),end:r(e),name:e.name})}};p.UpdateExpression=p.UnaryExpression=function(e){return new(("prefix"in e?e.prefix:"UnaryExpression"==e.type)?Ze:Je)({start:n(e),end:r(e),operator:e.operator,expression:i(e.argument)})},o("EmptyStatement",ce),o("BlockStatement",le,"body@body"),o("IfStatement",Fe,"test>condition, consequent>body, alternate>alternative"),o("LabeledStatement",pe,"label>label, body>body"),o("BreakStatement",Te,"label>label"),o("ContinueStatement",Re,"label>label"),o("WithStatement",ye,"object>expression, body>body"),o("SwitchStatement",Le,"discriminant>expression, cases@body"),o("ReturnStatement",Be,"argument>value"),o("ThrowStatement",Se,"argument>value"),o("WhileStatement",ge,"test>condition, body>body"),o("DoWhileStatement",me,"test>condition, body>body"),o("ForStatement",ve,"init>init, test>condition, update>step, body>body"),o("ForInStatement",be,"left>init, right>object, body>body"),o("DebuggerStatement",ie),o("VariableDeclarator",Ve,"id>name, init>value"),o("CatchClause",qe,"param>argname, body%body"),o("ThisExpression",yt),o("BinaryExpression",Xe,"operator=operator, left>left, right>right"),o("LogicalExpression",Xe,"operator=operator, left>left, right>right"),o("AssignmentExpression",tt,"operator=operator, left>left, right>right"),o("ConditionalExpression",et,"test>condition, consequent>consequent, alternate>alternative"),o("NewExpression",He,"callee>expression, arguments@args"),o("CallExpression",$e,"callee>expression, arguments@args"),u(we,function(e){return c("Program",e)}),u(Ce,function(e){return{type:"FunctionDeclaration",id:s(e.name),params:e.argnames.map(s),body:c("BlockStatement",e)}}),u(xe,function(e){return{type:"FunctionExpression",id:s(e.name),params:e.argnames.map(s),body:c("BlockStatement",e)}}),u(ae,function(e){return{type:"ExpressionStatement",expression:{type:"Literal",value:e.value}}}),u(ue,function(e){return{type:"ExpressionStatement",expression:s(e.body)}}),u(Me,function(e){return{type:"SwitchCase",test:s(e.expression),consequent:e.body.map(s)}}),u(Ne,function(e){return{type:"TryStatement",block:l(e),handler:s(e.bcatch),guardedHandlers:[],finalizer:s(e.bfinally)}}),u(qe,function(e){return{type:"CatchClause",param:s(e.argname),guard:null,body:l(e)}}),u(Ie,function(e){return{type:"VariableDeclaration",kind:"var",declarations:e.definitions.map(s)}}),u(Ke,function(e){return{type:"SequenceExpression",expressions:e.expressions.map(s)}}),u(Ye,function(e){var t=e instanceof We;return{type:"MemberExpression",object:s(e.expression),computed:t,property:t?s(e.property):{type:"Identifier",name:e.property}}}),u(Qe,function(e){return{type:"++"==e.operator||"--"==e.operator?"UpdateExpression":"UnaryExpression",operator:e.operator,prefix:e instanceof Ze,argument:s(e.expression)}}),u(Xe,function(e){return{type:"&&"==e.operator||"||"==e.operator?"LogicalExpression":"BinaryExpression",left:s(e.left),operator:e.operator,right:s(e.right)}}),u(nt,function(e){return{type:"ArrayExpression",elements:e.elements.map(s)}}),u(rt,function(e){return{type:"ObjectExpression",properties:e.properties.map(s)}}),u(ot,function(e){var t,n={type:"Literal",value:e.key instanceof lt?e.key.name:e.key};return e instanceof it?t="init":e instanceof ut?t="get":e instanceof at&&(t="set"),{type:"Property",kind:t,key:n,value:s(e.value)}}),u(st,function(e){var t=e.definition();return{type:"Identifier",name:t?t.mangled_name||t.name:e.name}}),u(Et,function(e){var t=e.value;return{type:"Literal",value:t,raw:t.toString(),regex:{pattern:t.source,flags:t.toString().match(/[gimuy]*$/)[0]}}}),u(_t,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}}),u(xt,function(e){return{type:"Identifier",name:String(e.value)}}),Dt.DEFMETHOD("to_mozilla_ast",_t.prototype.to_mozilla_ast),Ct.DEFMETHOD("to_mozilla_ast",_t.prototype.to_mozilla_ast),Bt.DEFMETHOD("to_mozilla_ast",function(){return null}),se.DEFMETHOD("to_mozilla_ast",le.prototype.to_mozilla_ast),Ae.DEFMETHOD("to_mozilla_ast",xe.prototype.to_mozilla_ast);var h=null;re.from_mozilla_ast=function(e){var t=h;h=[];var n=i(e);return h=t,n}}();var en="undefined"==typeof atob?function(t){return new e(t,"base64").toString()}:atob,tn="undefined"==typeof btoa?function(t){return new e(t).toString("base64")}:btoa;t.Dictionary=A,t.TreeWalker=O,t.TreeTransformer=$,t.minify=ee,t._push_uniq=g}(void 0===n?n={}:n)}).call(this,e("buffer").Buffer)},{buffer:5}]},{},["html-minifier"]); \ No newline at end of file diff --git a/index.html b/index.html index 37ccd93b..9d06a399 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@
-

HTML Minifier (v3.5.1)

+

HTML Minifier (v3.5.2)

diff --git a/package.json b/package.json index a5e49f18..775d6003 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "html-minifier", "description": "Highly configurable, well-tested, JavaScript-based HTML minifier.", - "version": "3.5.1", + "version": "3.5.2", "keywords": [ "cli", "compress",