Version 3.3.3
authoralexlamsl <alexlamsl@gmail.com>
Sun, 19 Feb 2017 13:13:43 +0000 (21:13 +0800)
committeralexlamsl <alexlamsl@gmail.com>
Sun, 19 Feb 2017 13:13:43 +0000 (21:13 +0800)
README.md
dist/htmlminifier.js
dist/htmlminifier.min.js
index.html
package.json

index 2528747..1211aba 100644 (file)
--- a/README.md
+++ b/README.md
@@ -22,19 +22,19 @@ 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**       | 44       | 46         | 44                 |
-| [HTMLMinifier](https://github.com/kangax/html-minifier)                     | 122                  | **95**       | 103      | 107        | 103                |
-| [CNN](http://www.cnn.com/)                                                  | 134                  | **123**      | 132      | 133        | 127                |
-| [Amazon](http://www.amazon.co.uk/)                                          | 190                  | **158**      | 182      | 185        | n/a                |
-| [New York Times](http://www.nytimes.com/)                                   | 209                  | **138**      | 157      | 156        | 146                |
+| [Google](https://www.google.com/)                                           | 44                   | **42**       | 44       | 46         | 45                 |
+| [HTMLMinifier](https://github.com/kangax/html-minifier)                     | 122                  | **96**       | 104      | 108        | 103                |
+| [CNN](http://www.cnn.com/)                                                  | 134                  | **124**      | 132      | 133        | 128                |
+| [Amazon](http://www.amazon.co.uk/)                                          | 204                  | **166**      | 195      | 195        | n/a                |
+| [New York Times](http://www.nytimes.com/)                                   | 208                  | **137**      | 157      | 155        | 146                |
 | [BBC](http://www.bbc.co.uk/)                                                | 214                  | **178**      | 207      | 213        | 202                |
-| [Stack Overflow](http://stackoverflow.com/)                                 | 240                  | **188**      | 198      | 206        | 195                |
+| [Stack Overflow](http://stackoverflow.com/)                                 | 240                  | **188**      | 198      | 206        | 196                |
 | [Bootstrap CSS](http://getbootstrap.com/css/)                               | 272                  | **260**      | 269      | 229        | 269                |
-| [Wikipedia](https://en.wikipedia.org/wiki/President_of_the_United_States)   | 546                  | **493**      | 527      | 545        | 526                |
-| [NBC](http://www.nbc.com/)                                                  | 566                  | **543**      | 565      | 566        | 549                |
+| [Wikipedia](https://en.wikipedia.org/wiki/President_of_the_United_States)   | 546                  | **499**      | 527      | 545        | 526                |
+| [NBC](http://www.nbc.com/)                                                  | 566                  | **544**      | 565      | 567        | 549                |
 | [Eloquent Javascript](http://eloquentjavascript.net/1st_edition/print.html) | 870                  | **815**      | 840      | 864        | n/a                |
 | [ES6 table](http://kangax.github.io/compat-table/es6/)                      | 4197                 | **3531**     | 3959     | n/a        | n/a                |
-| [ES6 draft](https://tc39.github.io/ecma262/)                                | 5507                 | **4911**     | 5060     | n/a        | n/a                |
+| [ES6 draft](https://tc39.github.io/ecma262/)                                | 5507                 | **4914**     | 5060     | n/a        | n/a                |
 
 ## Options Quick Reference
 
index c22c813..689ea50 100644 (file)
@@ -1,5 +1,5 @@
 /*!
- * HTMLMinifier v3.3.2 (http://kangax.github.io/html-minifier/)
+ * HTMLMinifier v3.3.3 (http://kangax.github.io/html-minifier/)
  * Copyright 2010-2017 Juriy "kangax" Zaytsev
  * Licensed under the MIT license
  */
@@ -32197,20 +32197,10 @@ var trimWhitespace = String.prototype.trim ? function(str) {
   return str.replace(/^\s+/, '').replace(/\s+$/, '');
 };
 
-function compressWhitespace(spaces) {
-  return spaces === '\t' ? '\t' : spaces.replace(/(^|\xA0+)[^\xA0]+/g, '$1 ');
-}
-
 function collapseWhitespaceAll(str) {
-  return str && str.replace(/\s+/g, compressWhitespace);
-}
-
-function compressWhitespaceLeft(spaces) {
-  return spaces === '\t' ? '\t' : spaces.replace(/^[^\xA0]+/, '').replace(/(\xA0+)[^\xA0]+/g, '$1 ') || ' ';
-}
-
-function compressWhitespaceRight(spaces) {
-  return spaces === '\t' ? '\t' : spaces.replace(/[^\xA0]+(\xA0+)/g, ' $1').replace(/[^\xA0]+$/, '') || ' ';
+  return str && str.replace(/\s+/g, function(spaces) {
+    return spaces === '\t' ? '\t' : spaces.replace(/(^|\xA0+)[^\xA0]+/g, '$1 ');
+  });
 }
 
 function collapseWhitespace(str, options, trimLeft, trimRight, collapseAll) {
@@ -32227,11 +32217,23 @@ function collapseWhitespace(str, options, trimLeft, trimRight, collapseAll) {
   }
 
   if (trimLeft) {
-    str = str.replace(/^\s+/, !lineBreakBefore && options.conservativeCollapse ? compressWhitespaceLeft : '');
+    str = str.replace(/^\s+/, function(spaces) {
+      var conservative = !lineBreakBefore && options.conservativeCollapse;
+      if (conservative && spaces === '\t') {
+        return '\t';
+      }
+      return spaces.replace(/^[^\xA0]+/, '').replace(/(\xA0+)[^\xA0]+/g, '$1 ') || (conservative ? ' ' : '');
+    });
   }
 
   if (trimRight) {
-    str = str.replace(/\s+$/, !lineBreakAfter && options.conservativeCollapse ? compressWhitespaceRight : '');
+    str = str.replace(/\s+$/, function(spaces) {
+      var conservative = !lineBreakAfter && options.conservativeCollapse;
+      if (conservative && spaces === '\t') {
+        return '\t';
+      }
+      return spaces.replace(/[^\xA0]+(\xA0+)/g, ' $1').replace(/[^\xA0]+$/, '') || (conservative ? ' ' : '');
+    });
   }
 
   if (collapseAll) {
index 008372d..22aee30 100644 (file)
@@ -1,5 +1,5 @@
 /*!
- * HTMLMinifier v3.3.2 (http://kangax.github.io/html-minifier/)
+ * HTMLMinifier v3.3.3 (http://kangax.github.io/html-minifier/)
  * Copyright 2010-2017 Juriy "kangax" Zaytsev
  * Licensed under the MIT license
  */
@@ -17,4 +17,4 @@ $documentation:"A function expression"},xa),Aa=z("Defun",null,{$documentation:"A
 });this.walk(b),dc.sort()});var dc=function(){function a(){d=Object.create(null),c=e.split("").map(function(a){return a.charCodeAt(0)}),c.forEach(function(a){d[a]=0})}function b(a){var b="",d=54;a++;do a--,b+=String.fromCharCode(c[a%d]),a=Math.floor(a/d),d=64;while(a>0);return b}var c,d,e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";return b.consider=function(a){for(var b=a.length;--b>=0;){var c=a.charCodeAt(b);c in d&&++d[c]}},b.sort=function(){c=s(c,function(a,b){return D(a)&&!D(b)?1:D(b)&&!D(a)?-1:d[b]-d[a]})},b.reset=a,a(),b.get=function(){return c},b.freq=function(){return d},b}();wa.DEFMETHOD("scope_warnings",function(a){a=k(a,{undeclared:!1,unreferenced:!0,assign_to_global:!0,func_arguments:!0,nested_defuns:!0,eval:!0});var b=new B(function(c){if(a.undeclared&&c instanceof ub&&c.undeclared()&&ea.warn("Undeclared symbol: {name} [{file}:{line},{col}]",{name:c.name,file:c.start.file,line:c.start.line,col:c.start.col}),a.assign_to_global){var d=null;c instanceof db&&c.left instanceof ub?d=c.left:c instanceof ta&&c.init instanceof ub&&(d=c.init),d&&(d.undeclared()||d.global()&&d.scope!==d.definition().scope)&&ea.warn("{msg}: {name} [{file}:{line},{col}]",{msg:d.undeclared()?"Accidental global?":"Assignment to global",name:d.name,file:d.start.file,line:d.start.line,col:d.start.col})}a.eval&&c instanceof ub&&c.undeclared()&&"eval"==c.name&&ea.warn("Eval is used [{file}:{line},{col}]",c.start),a.unreferenced&&(c instanceof mb||c instanceof tb)&&!(c instanceof sb)&&c.unreferenced()&&ea.warn("{type} {name} is declared but not referenced [{file}:{line},{col}]",{type:c instanceof tb?"Label":"Symbol",name:c.name,file:c.start.file,line:c.start.line,col:c.start.col}),a.func_arguments&&c instanceof xa&&c.uses_arguments&&ea.warn("arguments used in function {name} [{file}:{line},{col}]",{name:c.name?c.name.name:"anonymous",file:c.start.file,line:c.start.line,col:c.start.col}),a.nested_defuns&&c instanceof Aa&&!(b.parent()instanceof va)&&ea.warn('Function {name} declared in nested statement "{type}" [{file}:{line},{col}]',{name:c.name.name,type:b.parent().TYPE,file:c.start.file,line:c.start.line,col:c.start.col})});this.walk(b)});var ec=/^$|[;{][\s\n]*$/;!function(){function a(a,b){a.DEFMETHOD("_codegen",b)}function b(a,c){Array.isArray(a)?a.forEach(function(a){b(a,c)}):a.DEFMETHOD("needs_parens",c)}function c(a,b,c,d){var e=a.length-1;r=d,a.forEach(function(a,d){r!==!0||a instanceof ha||a instanceof la||a instanceof ia&&a.body instanceof yb||(r=!1),a instanceof la||(c.indent(),a.print(c),d==e&&b||(c.newline(),b&&c.newline())),r===!0&&a instanceof ia&&a.body instanceof yb&&(r=!1)}),r=!1}function d(a,b,d){a.length>0?b.with_block(function(){c(a,!1,b,d)}):b.print("{}")}function e(a,b){if(b.option("bracketize"))return void n(a.body,b);if(!a.body)return b.force_semicolon();if(a.body instanceof qa)return void n(a.body,b);for(var c=a.body;;)if(c instanceof Ia){if(!c.alternative)return void n(a.body,b);c=c.alternative}else{if(!(c instanceof ma))break;c=c.body}h(a.body,b)}function f(a,b,c){if(c)try{a.walk(new B(function(a){if(a instanceof bb&&"in"==a.operator)throw b})),a.print(b)}catch(c){if(c!==b)throw c;a.print(b,!0)}else a.print(b)}function g(a){return[92,47,46,43,42,63,40,41,91,93,123,125,36,94,58,124,33,10,13,0,65279,8232,8233].indexOf(a)<0}function h(a,b){b.option("bracketize")?!a||a instanceof la?b.print("{}"):a instanceof ka?a.print(b):b.with_block(function(){b.indent(),a.print(b),b.newline()}):!a||a instanceof la?b.force_semicolon():a.print(b)}function i(a){for(var b=a.stack(),c=b.length,d=b[--c],e=b[--c];c>0;){if(e instanceof fa&&e.body===d)return!0;if(!(e instanceof Wa&&e.car===d||e instanceof Ua&&e.expression===d&&!(e instanceof Va)||e instanceof Ya&&e.expression===d||e instanceof Za&&e.expression===d||e instanceof cb&&e.condition===d||e instanceof bb&&e.left===d||e instanceof ab&&e.expression===d))return!1;d=e,e=b[--c]}}function j(a,b){return a.args.length>0||b.option("beautify")}function k(a){for(var b=a[0],c=b.length,d=1;d<a.length;++d)a[d].length<c&&(b=a[d],c=b.length);return b}function l(a){var b,c=a.toString(10),d=[c.replace(/^0\./,".").replace("e+","e")];return Math.floor(a)===a?(a>=0?d.push("0x"+a.toString(16).toLowerCase(),"0"+a.toString(8)):d.push("-0x"+(-a).toString(16).toLowerCase(),"-0"+(-a).toString(8)),(b=/^(.*?)(0+)$/.exec(a))&&d.push(b[1]+"e"+b[2].length)):(b=/^0?\.(0+)(.*)$/.exec(a))&&d.push(b[2]+"e-"+(b[1].length+b[2].length),c.substr(c.indexOf("."))),k(d)}function n(a,b){return a instanceof ka?void a.print(b):void b.with_block(function(){b.indent(),a.print(b),b.newline()})}function o(a,b){a.DEFMETHOD("add_source_map",function(a){b(this,a)})}function p(a,b){b.add_mapping(a.start)}var q=!1,r=!1;ea.DEFMETHOD("print",function(a,b){function c(){d.add_comments(a),d.add_source_map(a),e(d,a)}var d=this,e=d._codegen,f=q;d instanceof ha&&"use asm"==d.value&&a.parent()instanceof va&&(q=!0),a.push_node(d),b||d.needs_parens(a)?a.with_parens(c):c(),a.pop_node(),d instanceof va&&(q=f)}),ea.DEFMETHOD("print_to_string",function(a){var b=W(a);return a||(b._readonly=!0),this.print(b),b.get()}),ea.DEFMETHOD("add_comments",function(a){if(!a._readonly){var b=this,c=b.start;if(c&&!c._comments_dumped){c._comments_dumped=!0;var d=c.comments_before||[];b instanceof Ca&&b.value&&b.value.walk(new B(function(a){if(a.start&&a.start.comments_before&&(d=d.concat(a.start.comments_before),a.start.comments_before=[]),a instanceof za||a instanceof eb||a instanceof fb)return!0})),d=d.filter(a.comment_filter,b),!a.option("beautify")&&d.length>0&&/comment[134]/.test(d[0].type)&&0!==a.col()&&d[0].nlb&&a.print("\n"),d.forEach(function(b){/comment[134]/.test(b.type)?(a.print("//"+b.value+"\n"),a.indent()):"comment2"==b.type?(a.print("/*"+b.value+"*/"),c.nlb?(a.print("\n"),a.indent()):a.space()):0===a.pos()&&"comment5"==b.type&&a.option("shebang")&&(a.print("#!"+b.value+"\n"),a.indent())})}}}),b(ea,function(){return!1}),b(za,function(a){if(i(a))return!0;if(a.option("wrap_iife")){var b=a.parent();return b instanceof Ua&&b.expression===this}return!1}),b(fb,function(a){return i(a)}),b([$a,Eb],function(a){var b=a.parent();return b instanceof Xa&&b.expression===this||b instanceof Ua&&b.expression===this}),b(Wa,function(a){var b=a.parent();return b instanceof Ua||b instanceof $a||b instanceof bb||b instanceof Ta||b instanceof Xa||b instanceof eb||b instanceof gb||b instanceof cb}),b(bb,function(a){var b=a.parent();if(b instanceof Ua&&b.expression===this)return!0;if(b instanceof $a)return!0;if(b instanceof Xa&&b.expression===this)return!0;if(b instanceof bb){var c=b.operator,d=ac[c],e=this.operator,f=ac[e];if(d>f||d==f&&this===b.right)return!0}}),b(Xa,function(a){var b=a.parent();if(b instanceof Va&&b.expression===this)try{this.walk(new B(function(a){if(a instanceof Ua)throw b}))}catch(a){if(a!==b)throw a;return!0}}),b(Ua,function(a){var b,c=a.parent();return c instanceof Va&&c.expression===this||this.expression instanceof za&&c instanceof Xa&&c.expression===this&&(b=a.parent(1))instanceof db&&b.left===c}),b(Va,function(a){var b=a.parent();if(!j(this,a)&&(b instanceof Xa||b instanceof Ua&&b.expression===this))return!0}),b(zb,function(a){var b=a.parent();if(b instanceof Xa&&b.expression===this){var c=this.getValue();if(c<0||/^0/.test(l(c)))return!0}}),b([db,cb],function(a){var b=a.parent();return b instanceof $a||(b instanceof bb&&!(b instanceof db)||(b instanceof Ua&&b.expression===this||(b instanceof cb&&b.condition===this||(b instanceof Xa&&b.expression===this||void 0))))}),a(ha,function(a,b){b.print_string(a.value,a.quote),b.semicolon()}),a(ga,function(a,b){b.print("debugger"),b.semicolon()}),ma.DEFMETHOD("_do_print_body",function(a){h(this.body,a)}),a(fa,function(a,b){a.body.print(b),b.semicolon()}),a(wa,function(a,b){c(a.body,!0,b,!0),b.print("")}),a(na,function(a,b){a.label.print(b),b.colon(),a.body.print(b)}),a(ia,function(a,b){a.body.print(b),b.semicolon()}),a(ka,function(a,b){d(a.body,b)}),a(la,function(a,b){b.semicolon()}),a(qa,function(a,b){b.print("do"),b.space(),a._do_print_body(b),b.space(),b.print("while"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.semicolon()}),a(ra,function(a,b){b.print("while"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.space(),a._do_print_body(b)}),a(sa,function(a,b){b.print("for"),b.space(),b.with_parens(function(){!a.init||a.init instanceof la?b.print(";"):(a.init instanceof Qa?a.init.print(b):f(a.init,b,!0),b.print(";"),b.space()),a.condition?(a.condition.print(b),b.print(";"),b.space()):b.print(";"),a.step&&a.step.print(b)}),b.space(),a._do_print_body(b)}),a(ta,function(a,b){b.print("for"),b.space(),b.with_parens(function(){a.init.print(b),b.space(),b.print("in"),b.space(),a.object.print(b)}),b.space(),a._do_print_body(b)}),a(ua,function(a,b){b.print("with"),b.space(),b.with_parens(function(){a.expression.print(b)}),b.space(),a._do_print_body(b)}),xa.DEFMETHOD("_do_print",function(a,b){var c=this;b||a.print("function"),c.name&&(a.space(),c.name.print(a)),a.with_parens(function(){c.argnames.forEach(function(b,c){c&&a.comma(),b.print(a)})}),a.space(),d(c.body,a,!0)}),a(xa,function(a,b){a._do_print(b)}),Ca.DEFMETHOD("_do_print",function(a,b){a.print(b),this.value&&(a.space(),this.value.print(a)),a.semicolon()}),a(Da,function(a,b){a._do_print(b,"return")}),a(Ea,function(a,b){a._do_print(b,"throw")}),Fa.DEFMETHOD("_do_print",function(a,b){a.print(b),this.label&&(a.space(),this.label.print(a)),a.semicolon()}),a(Ga,function(a,b){a._do_print(b,"break")}),a(Ha,function(a,b){a._do_print(b,"continue")}),a(Ia,function(a,b){b.print("if"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.space(),a.alternative?(e(a,b),b.space(),b.print("else"),b.space(),h(a.alternative,b)):a._do_print_body(b)}),a(Ja,function(a,b){b.print("switch"),b.space(),b.with_parens(function(){a.expression.print(b)}),b.space(),a.body.length>0?b.with_block(function(){a.body.forEach(function(a,c){c&&b.newline(),b.indent(!0),a.print(b)})}):b.print("{}")}),Ka.DEFMETHOD("_do_print_body",function(a){this.body.length>0&&(a.newline(),this.body.forEach(function(b){a.indent(),b.print(a),a.newline()}))}),a(La,function(a,b){b.print("default:"),a._do_print_body(b)}),a(Ma,function(a,b){b.print("case"),b.space(),a.expression.print(b),b.print(":"),a._do_print_body(b)}),a(Na,function(a,b){b.print("try"),b.space(),d(a.body,b),a.bcatch&&(b.space(),a.bcatch.print(b)),a.bfinally&&(b.space(),a.bfinally.print(b))}),a(Oa,function(a,b){b.print("catch"),b.space(),b.with_parens(function(){a.argname.print(b)}),b.space(),d(a.body,b)}),a(Pa,function(a,b){b.print("finally"),b.space(),d(a.body,b)}),Qa.DEFMETHOD("_do_print",function(a,b){a.print(b),a.space(),this.definitions.forEach(function(b,c){c&&a.comma(),b.print(a)});var c=a.parent(),d=c instanceof sa||c instanceof ta,e=d&&c.init===this;e||a.semicolon()}),a(Ra,function(a,b){a._do_print(b,"var")}),a(Sa,function(a,b){a._do_print(b,"const")}),a(Ta,function(a,b){if(a.name.print(b),a.value){b.space(),b.print("="),b.space();var c=b.parent(1),d=c instanceof sa||c instanceof ta;f(a.value,b,d)}}),a(Ua,function(a,b){a.expression.print(b),a instanceof Va&&!j(a,b)||b.with_parens(function(){a.args.forEach(function(a,c){c&&b.comma(),a.print(b)})})}),a(Va,function(a,b){b.print("new"),b.space(),Ua.prototype._codegen(a,b)}),Wa.DEFMETHOD("_do_print",function(a){this.car.print(a),this.cdr&&(a.comma(),a.should_break()&&(a.newline(),a.indent()),this.cdr.print(a))}),a(Wa,function(a,b){a._do_print(b)}),a(Ya,function(a,b){var c=a.expression;c.print(b),c instanceof zb&&c.getValue()>=0&&(/[xa-f.)]/i.test(b.last())||b.print(".")),b.print("."),b.add_mapping(a.end),b.print_name(a.property)}),a(Za,function(a,b){a.expression.print(b),b.print("["),a.property.print(b),b.print("]")}),a(_a,function(a,b){var c=a.operator;b.print(c),(/^[a-z]/i.test(c)||/[+-]$/.test(c)&&a.expression instanceof _a&&/^[+-]/.test(a.expression.operator))&&b.space(),a.expression.print(b)}),a(ab,function(a,b){a.expression.print(b),b.print(a.operator)}),a(bb,function(a,b){var c=a.operator;a.left.print(b),">"==c[0]&&a.left instanceof ab&&"--"==a.left.operator?b.print(" "):b.space(),b.print(c),("<"==c||"<<"==c)&&a.right instanceof _a&&"!"==a.right.operator&&a.right.expression instanceof _a&&"--"==a.right.expression.operator?b.print(" "):b.space(),a.right.print(b)}),a(cb,function(a,b){a.condition.print(b),b.space(),b.print("?"),b.space(),a.consequent.print(b),b.space(),b.colon(),a.alternative.print(b)}),a(eb,function(a,b){b.with_square(function(){var c=a.elements,d=c.length;d>0&&b.space(),c.forEach(function(a,c){c&&b.comma(),a.print(b),c===d-1&&a instanceof Fb&&b.comma()}),d>0&&b.space()})}),a(fb,function(a,b){a.properties.length>0?b.with_block(function(){a.properties.forEach(function(a,c){c&&(b.print(","),b.newline()),b.indent(),a.print(b)}),b.newline()}):b.print("{}")}),a(hb,function(a,b){var c=a.key,d=a.quote;b.option("quote_keys")?b.print_string(c+""):("number"==typeof c||!b.option("beautify")&&+c+""==c)&&parseFloat(c)>=0?b.print(l(c)):(Mb(c)?b.option("screw_ie8"):L(c))?d&&b.option("keep_quoted_props")?b.print_string(c,d):b.print_name(c):b.print_string(c,d),b.colon(),a.value.print(b)}),a(ib,function(a,b){b.print("set"),b.space(),a.key.print(b),a.value._do_print(b,!0)}),a(jb,function(a,b){b.print("get"),b.space(),a.key.print(b),a.value._do_print(b,!0)}),a(kb,function(a,b){var c=a.definition();b.print_name(c?c.mangled_name||c.name:a.name)}),a(Eb,function(a,b){b.print("void 0")}),a(Fb,m),a(Gb,function(a,b){b.print("Infinity")}),a(Db,function(a,b){b.print("NaN")}),a(wb,function(a,b){b.print("this")}),a(xb,function(a,b){b.print(a.getValue())}),a(yb,function(a,b){b.print_string(a.getValue(),a.quote,r)}),a(zb,function(a,b){q&&a.start&&null!=a.start.raw?b.print(a.start.raw):b.print(l(a.getValue()))}),a(Ab,function(a,b){var c=a.getValue().toString();b.option("ascii_only")?c=b.to_ascii(c):b.option("unescape_regexps")&&(c=c.split("\\\\").map(function(a){return a.replace(/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}/g,function(a){var b=parseInt(a.substr(2),16);return g(b)?String.fromCharCode(b):a})}).join("\\\\")),b.print(c);var d=b.parent();d instanceof bb&&/^in/.test(d.operator)&&d.left===a&&b.print(" ")}),o(ea,m),o(ha,p),o(ga,p),o(kb,p),o(Ba,p),o(ma,p),o(na,m),o(xa,p),o(Ja,p),o(Ka,p),o(ka,p),o(wa,m),o(Va,p),o(Na,p),o(Oa,p),o(Pa,p),o(Qa,p),o(xb,p),o(ib,function(a,b){b.add_mapping(a.start,a.key.name)}),o(jb,function(a,b){b.add_mapping(a.start,a.key.name)}),o(gb,function(a,b){b.add_mapping(a.start,a.key)})}(),X.prototype=new S,l(X.prototype,{option:function(a){return this.options[a]},compress:function(a){for(var b=+this.options.passes||1,c=0;c<b&&c<3;++c)c>0&&a.clear_opt_flags(),a=a.transform(this);return a},warn:function(a,b){if(this.options.warnings){var c=q(a,b);c in this.warnings_produced||(this.warnings_produced[c]=!0,ea.warn.apply(ea,arguments))}},clear_warnings:function(){this.warnings_produced={}},before:function(a,b,c){if(a._squeezed)return a;var d=!1;return a instanceof va&&(a=a.hoist_declarations(this),d=!0),b(a,this),a=a.optimize(this),d&&a instanceof va&&(a.drop_unused(this),b(a,this)),a._squeezed=!0,a}}),function(){function a(a,b){a.DEFMETHOD("optimize",function(a){var c=this;if(c._optimized)return c;if(a.has_directive("use asm"))return c;var d=b(c,a);return d._optimized=!0,d===c?d:d.transform(a)})}function b(a,b,c){return c||(c={}),b&&(c.start||(c.start=b.start),c.end||(c.end=b.end)),new a(c)}function c(a,c,d){if(c instanceof ea)return c.transform(a);switch(typeof c){case"string":return b(yb,d,{value:c}).optimize(a);case"number":return isNaN(c)?b(Db,d):1/c<0?b(_a,d,{operator:"-",expression:b(zb,d,{value:-c})}):b(zb,d,{value:c}).optimize(a);case"boolean":return b(c?Jb:Ib,d).optimize(a);case"undefined":return b(Eb,d).optimize(a);default:if(null===c)return b(Cb,d,{value:null}).optimize(a);if(c instanceof RegExp)return b(Ab,d,{value:c}).optimize(a);throw new Error(q("Can't handle constant of type: {type}",{type:typeof c}))}}function d(a,c,d){return a instanceof Ua&&a.expression===c&&(d instanceof Xa||d instanceof ub&&"eval"===d.name)?b(Wa,c,{car:b(zb,c,{value:0}),cdr:d}):d}function e(a){if(null===a)return[];if(a instanceof ka)return a.body;if(a instanceof la)return[];if(a instanceof fa)return[a];throw new Error("Can't convert thing to statement array")}function f(a){return null===a||(a instanceof la||a instanceof ka&&0==a.body.length)}function i(a){return a instanceof Ja?a:(a instanceof sa||a instanceof ta||a instanceof pa)&&a.body instanceof ka?a.body:a}function j(a,c){function f(a,c){function e(a,b){return a instanceof ub&&(b instanceof db&&a===b.left||b instanceof $a&&b.expression===a&&("++"==b.operator||"--"==b.operator))}function g(f,g,j){if(e(f,g))return f;var m=d(g,f,t.value);return t.value=null,n.splice(s,1),0===n.length&&(a[l]=b(la,h),i=!0),k.clear_opt_flags(),c.warn("Replacing "+(j?"constant":"variable")+" "+v+" [{file}:{line},{col}]",f.start),u=!0,m}for(var h=c.self(),i=!1,j=a.length;--j>=0;){var k=a[j];if(!(k instanceof Qa)){if([k,k.body,k.alternative,k.bcatch,k.bfinally].forEach(function(a){a&&a.body&&f(a.body,c)}),j<=0)break;var l=j-1,m=a[l];if(m instanceof Qa){var n=m.definitions;if(null!=n)for(var o={},p=!1,q=!1,r={},s=n.length;--s>=0;){var t=n[s];if(null==t.value)break;var v=t.name.name;if(!v||!v.length)break;if(v in o)break;o[v]=!0;var w=h.find_variable&&h.find_variable(v);if(w&&w.references&&1===w.references.length&&"arguments"!=v){var x=w.references[0];if(x.scope.uses_eval||x.scope.uses_with)break;if(t.value instanceof Ab||!t.value.is_constant(c)){if(!(p|=q))if(x.scope===h){var y=new B(function(a){a instanceof ub&&e(a,y.parent())&&(r[a.name]=q=!0)});t.value.walk(y);var z=!1,A=new S(function(a){if(z)return a;var b=A.parent();return a instanceof xa||a instanceof Na||a instanceof ua||a instanceof Ma||a instanceof oa||b instanceof Ia&&a!==b.condition||b instanceof cb&&a!==b.condition||b instanceof bb&&("&&"==b.operator||"||"==b.operator)&&a===b.right||b instanceof Ja&&a!==b.expression?(p=z=!0,a):void 0},function(a){return z?a:a===x?(z=!0,g(a,A.parent(),!1)):(p|=a.has_side_effects(c))?(z=!0,a):q&&a instanceof ub&&a.name in r?(p=!0,z=!0,a):void 0});k.transform(A)}else p|=t.value.has_side_effects(c)}else{var C=new S(function(a){if(a===x)return g(a,C.parent(),!0)});k.transform(C)}}else p=!0}}}}if(i)for(var D=a.length;--D>=0;)a.length>1&&a[D]instanceof la&&a.splice(D,1);return a}function g(a){function d(a){return/@ngInject/.test(a.value)}function e(a){return a.argnames.map(function(a){return b(yb,a,{value:a.name})})}function f(a,c){return b(eb,a,{elements:c})}function g(a,c){return b(ia,a,{body:b(db,a,{operator:"=",left:b(Ya,c,{expression:b(ub,c,c),property:"$inject"}),right:f(a,e(a))})})}function h(a){a&&a.args&&(a.args.forEach(function(a,b,c){var g=a.start.comments_before;a instanceof xa&&g.length&&d(g[0])&&(c[b]=f(a,e(a).concat(a)))}),a.expression&&a.expression.expression&&h(a.expression.expression))}return a.reduce(function(a,b){if(a.push(b),b.body&&b.body.args)h(b.body);else{var e=b.start,f=e.comments_before;if(f&&f.length>0){var i=f.pop();d(i)&&(b instanceof Aa?a.push(g(b,b.name)):b instanceof Qa?b.definitions.forEach(function(b){b.value&&b.value instanceof xa&&a.push(g(b.value,b.name))}):c.warn("Unknown statement marked with @ngInject [{file}:{line},{col}]",e))}}return a},[])}function h(a){var b=[];return a.reduce(function(a,c){return c instanceof ka?(u=!0,a.push.apply(a,h(c.body))):c instanceof la?u=!0:c instanceof ha?b.indexOf(c.value)<0?(a.push(c),b.push(c.value)):u=!0:a.push(c),a},[])}function j(a,c){function d(a){for(var b=0,c=a.length;--c>=0;){var d=a[c];if(d instanceof Ia&&d.body instanceof Da&&++b>1)return!0}return!1}var f=c.self(),g=d(a),h=f instanceof xa,j=[];a:for(var l=a.length;--l>=0;){var m=a[l];switch(!0){case h&&m instanceof Da&&!m.value&&0==j.length:u=!0;continue a;case m instanceof Ia:if(m.body instanceof Da){if((h&&0==j.length||j[0]instanceof Da&&!j[0].value)&&!m.body.value&&!m.alternative){u=!0;var n=b(ia,m.condition,{body:m.condition});j.unshift(n);continue a}if(j[0]instanceof Da&&m.body.value&&j[0].value&&!m.alternative){u=!0,m=m.clone(),m.alternative=j[0],j[0]=m.transform(c);continue a}if(g&&(0==j.length||j[0]instanceof Da)&&m.body.value&&!m.alternative&&h){u=!0,m=m.clone(),m.alternative=j[0]||b(Da,m,{value:b(Eb,m)}),j[0]=m.transform(c);continue a}if(!m.body.value&&h){u=!0,m=m.clone(),m.condition=m.condition.negate(c);var o=e(m.alternative).concat(j),q=k(o);m.body=b(ka,m,{body:o}),m.alternative=null,j=q.concat([m.transform(c)]);continue a}if(c.option("sequences")&&1==j.length&&h&&j[0]instanceof ia&&(!m.alternative||m.alternative instanceof ia)){u=!0,j.push(b(Da,j[0],{value:b(Eb,j[0])}).transform(c)),j=e(m.alternative).concat(j),j.unshift(m);continue a}}var s=p(m.body),t=s instanceof Fa?c.loopcontrol_target(s.label):null;if(s&&(s instanceof Da&&!s.value&&h||s instanceof Ha&&f===i(t)||s instanceof Ga&&t instanceof ka&&f===t)){s.label&&r(s.label.thedef.references,s),u=!0;var o=e(m.body).slice(0,-1);m=m.clone(),m.condition=m.condition.negate(c),m.body=b(ka,m,{body:e(m.alternative).concat(j)}),m.alternative=b(ka,m,{body:o}),j=[m.transform(c)];continue a}var s=p(m.alternative),t=s instanceof Fa?c.loopcontrol_target(s.label):null;if(s&&(s instanceof Da&&!s.value&&h||s instanceof Ha&&f===i(t)||s instanceof Ga&&t instanceof ka&&f===t)){s.label&&r(s.label.thedef.references,s),u=!0,m=m.clone(),m.body=b(ka,m.body,{body:e(m.body).concat(j)}),m.alternative=b(ka,m.alternative,{body:e(m.alternative).slice(0,-1)}),j=[m.transform(c)];continue a}j.unshift(m);break;default:j.unshift(m)}}return j}function m(a,b){var c=!1,d=a.length,e=b.self();return a=a.reduce(function(a,d){if(c)l(b,d,a);else{if(d instanceof Fa){var f=b.loopcontrol_target(d.label);d instanceof Ga&&f instanceof ka&&i(f)===e||d instanceof Ha&&i(f)===e?d.label&&r(d.label.thedef.references,d):a.push(d)}else a.push(d);p(d)&&(c=!0)}return a},[]),u=a.length!=d,a}function n(a,c){function d(){e=Wa.from_array(e),e&&f.push(b(ia,e,{body:e})),e=[]}if(a.length<2)return a;var e=[],f=[];return a.forEach(function(a){a instanceof ia&&o(e)<c.sequences_limit?e.push(a.body):(d(),f.push(a))}),d(),f=q(f,c),u=f.length!=a.length,f}function o(a){for(var b=0,c=0;c<a.length;++c){var d=a[c];d instanceof Wa?b+=d.len():b++}return b}function q(a,c){function d(a){e.pop();var b=f.body;return b instanceof Wa?b.add(a):b=Wa.cons(b,a),b.transform(c)}var e=[],f=null;return a.forEach(function(a){if(f)if(a instanceof sa){var c={};try{f.body.walk(new B(function(a){if(a instanceof bb&&"in"==a.operator)throw c})),!a.init||a.init instanceof Qa?a.init||(a.init=f.body,e.pop()):a.init=d(a.init)}catch(a){if(a!==c)throw a}}else a instanceof Ia?a.condition=d(a.condition):a instanceof ua?a.expression=d(a.expression):a instanceof Ca&&a.value?a.value=d(a.value):a instanceof Ca?a.value=d(b(Eb,a)):a instanceof Ja&&(a.expression=d(a.expression));e.push(a),f=a instanceof ia?a:null}),e}function s(a,b){var c=null;return a.reduce(function(a,b){return b instanceof Qa&&c&&c.TYPE==b.TYPE?(c.definitions=c.definitions.concat(b.definitions),u=!0):b instanceof sa&&c instanceof Ra&&(!b.init||b.init.TYPE==c.TYPE)?(u=!0,a.pop(),b.init?b.init.definitions=c.definitions.concat(b.init.definitions):b.init=c,a.push(b),c=b):(c=b,a.push(b)),a},[])}function t(a,c){function d(a){return a instanceof Ua&&(a.expression instanceof za||d(a.expression))}a.forEach(function(a){a instanceof ia&&(a.body=function a(c){return c.transform(new S(function(c){if(c instanceof Va)return c;if(d(c))return b(_a,c,{operator:"!",expression:c});if(c instanceof Ua)c.expression=a(c.expression);else if(c instanceof Wa)c.car=a(c.car);else if(c instanceof cb){var e=a(c.condition);if(e!==c.condition){c.condition=e;var f=c.consequent;c.consequent=c.alternative,c.alternative=f}}return c}))}(a.body))})}var u,v=10;do u=!1,c.option("angular")&&(a=g(a)),a=h(a),c.option("dead_code")&&(a=m(a,c)),c.option("if_return")&&(a=j(a,c)),c.sequences_limit>0&&(a=n(a,c)),c.option("join_vars")&&(a=s(a,c)),c.option("collapse_vars")&&(a=f(a,c));while(u&&v-- >0);return c.option("negate_iife")&&t(a,c),a}function k(a){for(var b=[],c=a.length-1;c>=0;--c){var d=a[c];d instanceof Aa&&(a.splice(c,1),b.unshift(d))}return b}function l(a,b,c){b instanceof Aa||a.warn("Dropping unreachable code [{file}:{line},{col}]",b.start),b.walk(new B(function(b){return b instanceof Qa?(a.warn("Declarations in unreachable code! [{file}:{line},{col}]",b.start),b.remove_initializers(),c.push(b),!0):b instanceof Aa?(c.push(b),!0):b instanceof va||void 0}))}function m(a,b){return a.print_to_string().length>b.print_to_string().length?b:a}function p(a){return a&&a.aborts()}function t(a,c){function d(d){d=e(d),a.body instanceof ka?(a.body=a.body.clone(),a.body.body=d.concat(a.body.body.slice(1)),a.body=a.body.transform(c)):a.body=b(ka,a.body,{body:d}).transform(c),t(a,c)}var f=a.body instanceof ka?a.body.body[0]:a.body;f instanceof Ia&&(f.body instanceof Ga&&c.loopcontrol_target(f.body.label)===a?(a.condition?a.condition=b(bb,a.condition,{left:a.condition,operator:"&&",right:f.condition.negate(c)}):a.condition=f.condition.negate(c),d(f.alternative)):f.alternative instanceof Ga&&c.loopcontrol_target(f.alternative.label)===a&&(a.condition?a.condition=b(bb,a.condition,{left:a.condition,operator:"&&",right:f.condition}):a.condition=f.condition,d(f.body)))}function u(a,b){var c=b.option("pure_getters");b.options.pure_getters=!1;var d=a.has_side_effects(b);return b.options.pure_getters=c,d}function z(a,c){return c.option("booleans")&&c.in_boolean_context()&&!a.has_side_effects(c)?b(Jb,a):a}a(ea,function(a,b){return a}),ea.DEFMETHOD("equivalent_to",function(a){return this.print_to_string()==a.print_to_string()}),ea.DEFMETHOD("clear_opt_flags",function(){this.walk(new B(function(a){a instanceof ha||a instanceof xb||(a._squeezed=!1,a._optimized=!1)}))}),function(a){var b=["!","delete"],c=["in","instanceof","==","!=","===","!==","<","<=",">=",">"];a(ea,n),a(_a,function(){return g(this.operator,b)}),a(bb,function(){return g(this.operator,c)||("&&"==this.operator||"||"==this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),a(cb,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),a(db,function(){return"="==this.operator&&this.right.is_boolean()}),a(Wa,function(){return this.cdr.is_boolean()}),a(Jb,o),a(Ib,o)}(function(a,b){a.DEFMETHOD("is_boolean",b)}),function(a){a(ea,n),a(yb,o),a(_a,function(){return"typeof"==this.operator}),a(bb,function(a){return"+"==this.operator&&(this.left.is_string(a)||this.right.is_string(a))}),a(db,function(a){return("="==this.operator||"+="==this.operator)&&this.right.is_string(a)}),a(Wa,function(a){return this.cdr.is_string(a)}),a(cb,function(a){return this.consequent.is_string(a)&&this.alternative.is_string(a)}),a(Ua,function(a){return a.option("unsafe")&&this.expression instanceof ub&&"String"==this.expression.name&&this.expression.undeclared()})}(function(a,b){a.DEFMETHOD("is_string",b)}),function(a){function b(a,b){if(!b)throw new Error("Compressor must be passed");return a._eval(b)}ea.DEFMETHOD("evaluate",function(b){if(!b.option("evaluate"))return[this];try{var d=this._eval(b);return[m(c(b,d,this),this),d]}catch(b){if(b!==a)throw b;return[this]}}),ea.DEFMETHOD("is_constant",function(a){return this instanceof xb||this instanceof _a&&"!"==this.operator&&this.expression instanceof xb||this.evaluate(a).length>1}),ea.DEFMETHOD("constant_value",function(a){if(this instanceof xb)return this.value;if(this instanceof _a&&"!"==this.operator&&this.expression instanceof xb)return!this.expression.value;var b=this.evaluate(a);return b.length>1?b[1]:void 0}),a(fa,function(){throw new Error(q("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),a(za,function(){throw a}),a(ea,function(){throw a}),a(xb,function(){return this.getValue()}),a(_a,function(c){var d=this.expression;switch(this.operator){case"!":return!b(d,c);case"typeof":if(d instanceof za)return"function";if(d=b(d,c),d instanceof RegExp)throw a;return typeof d;case"void":return void b(d,c);case"~":return~b(d,c);case"-":return-b(d,c);case"+":return+b(d,c)}throw a}),a(bb,function(c){var d,e=this.left,f=this.right;switch(this.operator){case"&&":d=b(e,c)&&b(f,c);break;case"||":d=b(e,c)||b(f,c);break;case"|":d=b(e,c)|b(f,c);break;case"&":d=b(e,c)&b(f,c);break;case"^":d=b(e,c)^b(f,c);break;case"+":d=b(e,c)+b(f,c);break;case"*":d=b(e,c)*b(f,c);break;case"/":d=b(e,c)/b(f,c);break;case"%":d=b(e,c)%b(f,c);break;case"-":d=b(e,c)-b(f,c);break;case"<<":d=b(e,c)<<b(f,c);break;case">>":d=b(e,c)>>b(f,c);break;case">>>":d=b(e,c)>>>b(f,c);break;case"==":d=b(e,c)==b(f,c);break;case"===":d=b(e,c)===b(f,c);break;case"!=":d=b(e,c)!=b(f,c);break;case"!==":d=b(e,c)!==b(f,c);break;case"<":d=b(e,c)<b(f,c);break;case"<=":d=b(e,c)<=b(f,c);break;case">":d=b(e,c)>b(f,c);break;case">=":d=b(e,c)>=b(f,c);break;default:throw a}if(isNaN(d)&&c.find_parent(ua))throw a;return d}),a(cb,function(a){return b(this.condition,a)?b(this.consequent,a):b(this.alternative,a)}),a(ub,function(c){if(this._evaluating)throw a;this._evaluating=!0;try{var d=this.definition();if(d&&(d.constant||c.option("reduce_vars")&&!d.modified)&&d.init)return b(d.init,c)}finally{this._evaluating=!1}throw a}),a(Ya,function(c){if(c.option("unsafe")&&"length"==this.property){var d=b(this.expression,c);if("string"==typeof d)return d.length}throw a})}(function(a,b){a.DEFMETHOD("_eval",b)}),function(a){function c(a){return b(_a,a,{operator:"!",expression:a})}a(ea,function(){return c(this)}),a(fa,function(){throw new Error("Cannot negate a statement")}),a(za,function(){return c(this)}),a(_a,function(){return"!"==this.operator?this.expression:c(this)}),a(Wa,function(a){var b=this.clone();return b.cdr=b.cdr.negate(a),b}),a(cb,function(a){var b=this.clone();return b.consequent=b.consequent.negate(a),b.alternative=b.alternative.negate(a),m(c(this),b)}),a(bb,function(a){var b=this.clone(),d=this.operator;if(a.option("unsafe_comps"))switch(d){case"<=":return b.operator=">",b;case"<":return b.operator=">=",b;case">=":return b.operator="<",b;case">":return b.operator="<=",b}switch(d){case"==":return b.operator="!=",b;case"!=":return b.operator="==",b;case"===":return b.operator="!==",b;case"!==":return b.operator="===",b;case"&&":return b.operator="||",b.left=b.left.negate(a),b.right=b.right.negate(a),m(c(this),b);case"||":return b.operator="&&",b.left=b.left.negate(a),b.right=b.right.negate(a),m(c(this),b)}return c(this)})}(function(a,b){a.DEFMETHOD("negate",function(a){return b.call(this,a)})}),function(a){a(ea,o),a(la,n),a(xb,n),a(wb,n),a(Ua,function(a){var b=a.option("pure_funcs");return!b||("function"==typeof b?b(this):b.indexOf(this.expression.print_to_string())<0)}),a(ja,function(a){for(var b=this.body.length;--b>=0;)if(this.body[b].has_side_effects(a))return!0;return!1}),a(ia,function(a){return this.body.has_side_effects(a)}),a(Aa,o),a(za,n),a(bb,function(a){return this.left.has_side_effects(a)||this.right.has_side_effects(a)}),a(db,o),a(cb,function(a){return this.condition.has_side_effects(a)||this.consequent.has_side_effects(a)||this.alternative.has_side_effects(a)}),a($a,function(a){return"delete"==this.operator||"++"==this.operator||"--"==this.operator||this.expression.has_side_effects(a)}),a(ub,function(a){return this.global()&&this.undeclared()}),a(fb,function(a){for(var b=this.properties.length;--b>=0;)if(this.properties[b].has_side_effects(a))return!0;return!1}),a(gb,function(a){return this.value.has_side_effects(a)}),a(eb,function(a){for(var b=this.elements.length;--b>=0;)if(this.elements[b].has_side_effects(a))return!0;return!1}),a(Ya,function(a){return!a.option("pure_getters")||this.expression.has_side_effects(a)}),a(Za,function(a){return!a.option("pure_getters")||(this.expression.has_side_effects(a)||this.property.has_side_effects(a))}),a(Xa,function(a){return!a.option("pure_getters")}),a(Wa,function(a){return this.car.has_side_effects(a)||this.cdr.has_side_effects(a)})}(function(a,b){a.DEFMETHOD("has_side_effects",b)}),function(a){function b(){var a=this.body.length;return a>0&&p(this.body[a-1])}a(fa,function(){return null;
 }),a(Ba,function(){return this}),a(ka,b),a(Ka,b),a(Ia,function(){return this.alternative&&p(this.body)&&p(this.alternative)&&this})}(function(a,b){a.DEFMETHOD("aborts",b)}),a(ha,function(a,c){return"up"===c.has_directive(a.value)?b(la,a):a}),a(ga,function(a,c){return c.option("drop_debugger")?b(la,a):a}),a(na,function(a,c){return a.body instanceof Ga&&c.loopcontrol_target(a.body.label)===a.body?b(la,a):0==a.label.references.length?a.body:a}),a(ja,function(a,b){return a.body=j(a.body,b),a}),a(ka,function(a,c){switch(a.body=j(a.body,c),a.body.length){case 1:return a.body[0];case 0:return b(la,a)}return a}),va.DEFMETHOD("drop_unused",function(a){var c=this;if(a.has_directive("use asm"))return c;if(a.option("unused")&&!(c instanceof wa)&&!c.uses_eval&&!c.uses_with){var d=[],e={},f=new x,g=this,h=new B(function(b,i){if(b!==c){if(b instanceof Aa)return f.add(b.name.name,b),!0;if(b instanceof Qa&&g===c)return b.definitions.forEach(function(b){b.value&&(f.add(b.name.name,b.value),b.value.has_side_effects(a)&&b.value.walk(h))}),!0;if(b instanceof ub){var j=b.definition();return j.id in e||(e[j.id]=!0,d.push(j)),!0}if(b instanceof va){var k=g;return g=b,i(),g=k,!0}}});c.walk(h);for(var i=0;i<d.length;++i)d[i].orig.forEach(function(a){var b=f.get(a.name);b&&b.forEach(function(a){var b=new B(function(a){if(a instanceof ub){var b=a.definition();b.id in e||(e[b.id]=!0,d.push(b))}});a.walk(b)})});var j=new S(function(d,f,g){if(d instanceof xa&&!(d instanceof ya)&&!a.option("keep_fargs"))for(var h=d.argnames,i=h.length;--i>=0;){var k=h[i];if(!k.unreferenced())break;h.pop(),a.warn("Dropping unused function argument {name} [{file}:{line},{col}]",{name:k.name,file:k.start.file,line:k.start.line,col:k.start.col})}if(d instanceof Aa&&d!==c)return d.name.definition().id in e?d:(a.warn("Dropping unused function {name} [{file}:{line},{col}]",{name:d.name.name,file:d.name.start.file,line:d.name.start.line,col:d.name.start.col}),b(la,d));if(d instanceof Qa&&!(j.parent()instanceof ta)){var l=d.definitions.filter(function(b){if(b.name.definition().id in e)return!0;var c={name:b.name.name,file:b.name.start.file,line:b.name.start.line,col:b.name.start.col};return b.value&&b.value.has_side_effects(a)?(b._unused_side_effects=!0,a.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",c),!0):(a.warn("Dropping unused variable {name} [{file}:{line},{col}]",c),!1)});l=s(l,function(a,b){return!a.value&&b.value?-1:!b.value&&a.value?1:0});for(var m=[],i=0;i<l.length;){var n=l[i];n._unused_side_effects?(m.push(n.value),l.splice(i,1)):(m.length>0&&(m.push(n.value),n.value=Wa.from_array(m),m=[]),++i)}return m=m.length>0?b(ka,d,{body:[b(ia,d,{body:Wa.from_array(m)})]}):null,0!=l.length||m?0==l.length?g?ca.splice(m.body):m:(d.definitions=l,m?(m.body.unshift(d),g?ca.splice(m.body):m):d):b(la,d)}if(d instanceof sa&&(f(d,this),d.init instanceof ka)){var o=d.init.body.slice(0,-1);return d.init=d.init.body.slice(-1)[0].body,o.push(d),g?ca.splice(o):b(ka,d,{body:o})}return d instanceof va&&d!==c?d:void 0});c.transform(j)}}),va.DEFMETHOD("hoist_declarations",function(a){var c=this;if(a.has_directive("use asm"))return c;var d=a.option("hoist_funs"),e=a.option("hoist_vars");if(d||e){var f=[],g=[],i=new x,j=0,k=0;c.walk(new B(function(a){return a instanceof va&&a!==c||(a instanceof Ra?(++k,!0):void 0)})),e=e&&k>1;var l=new S(function(a){if(a!==c){if(a instanceof ha)return f.push(a),b(la,a);if(a instanceof Aa&&d)return g.push(a),b(la,a);if(a instanceof Ra&&e){a.definitions.forEach(function(a){i.set(a.name.name,a),++j});var h=a.to_assignments(),k=l.parent();if(k instanceof ta&&k.init===a){if(null==h){var m=a.definitions[0].name;return b(ub,m,m)}return h}return k instanceof sa&&k.init===a?h:h?b(ia,a,{body:h}):b(la,a)}if(a instanceof va)return a}});if(c=c.transform(l),j>0){var m=[];if(i.each(function(a,b){c instanceof xa&&h(function(b){return b.name==a.name.name},c.argnames)?i.del(b):(a=a.clone(),a.value=null,m.push(a),i.set(b,a))}),m.length>0){for(var n=0;n<c.body.length;){if(c.body[n]instanceof ia){var o,p,q=c.body[n].body;if(q instanceof db&&"="==q.operator&&(o=q.left)instanceof kb&&i.has(o.name)){var s=i.get(o.name);if(s.value)break;s.value=q.right,r(m,s),m.push(s),c.body.splice(n,1);continue}if(q instanceof Wa&&(p=q.car)instanceof db&&"="==p.operator&&(o=p.left)instanceof kb&&i.has(o.name)){var s=i.get(o.name);if(s.value)break;s.value=p.right,r(m,s),m.push(s),c.body[n].body=q.cdr;continue}}if(c.body[n]instanceof la)c.body.splice(n,1);else{if(!(c.body[n]instanceof ka))break;var t=[n,1].concat(c.body[n].body);c.body.splice.apply(c.body,t)}}m=b(Ra,c,{definitions:m}),g.push(m)}}c.body=f.concat(g,c.body)}return c}),a(ia,function(a,c){return c.option("side_effects")&&!a.body.has_side_effects(c)?(c.warn("Dropping side-effect-free statement [{file}:{line},{col}]",a.start),b(la,a)):a}),a(pa,function(a,c){var d=a.condition.evaluate(c);if(a.condition=d[0],!c.option("loops"))return a;if(d.length>1){if(d[1])return b(sa,a,{body:a.body});if(a instanceof ra&&c.option("dead_code")){var e=[];return l(c,a.body,e),b(ka,a,{body:e})}}return a}),a(ra,function(a,c){return c.option("loops")?(a=pa.prototype.optimize.call(a,c),a instanceof ra&&(t(a,c),a=b(sa,a,a).transform(c)),a):a}),a(sa,function(a,c){var d=a.condition;if(d&&(d=d.evaluate(c),a.condition=d[0]),!c.option("loops"))return a;if(d&&d.length>1&&!d[1]&&c.option("dead_code")){var e=[];return a.init instanceof fa?e.push(a.init):a.init&&e.push(b(ia,a.init,{body:a.init})),l(c,a.body,e),b(ka,a,{body:e})}return t(a,c),a}),a(Ia,function(a,c){if(!c.option("conditionals"))return a;var d=a.condition.evaluate(c);if(a.condition=d[0],d.length>1)if(d[1]){if(c.warn("Condition always true [{file}:{line},{col}]",a.condition.start),c.option("dead_code")){var e=[];return a.alternative&&l(c,a.alternative,e),e.push(a.body),b(ka,a,{body:e}).transform(c)}}else if(c.warn("Condition always false [{file}:{line},{col}]",a.condition.start),c.option("dead_code")){var e=[];return l(c,a.body,e),a.alternative&&e.push(a.alternative),b(ka,a,{body:e}).transform(c)}f(a.alternative)&&(a.alternative=null);var g=a.condition.negate(c),h=a.condition.print_to_string().length,i=g.print_to_string().length,j=i<h;if(a.alternative&&j){j=!1,a.condition=g;var k=a.body;a.body=a.alternative||b(la),a.alternative=k}if(f(a.body)&&f(a.alternative))return b(ia,a.condition,{body:a.condition}).transform(c);if(a.body instanceof ia&&a.alternative instanceof ia)return b(ia,a,{body:b(cb,a,{condition:a.condition,consequent:a.body.body,alternative:a.alternative.body})}).transform(c);if(f(a.alternative)&&a.body instanceof ia)return h===i&&!j&&a.condition instanceof bb&&"||"==a.condition.operator&&(j=!0),j?b(ia,a,{body:b(bb,a,{operator:"||",left:g,right:a.body.body})}).transform(c):b(ia,a,{body:b(bb,a,{operator:"&&",left:a.condition,right:a.body.body})}).transform(c);if(a.body instanceof la&&a.alternative&&a.alternative instanceof ia)return b(ia,a,{body:b(bb,a,{operator:"||",left:a.condition,right:a.alternative.body})}).transform(c);if(a.body instanceof Ca&&a.alternative instanceof Ca&&a.body.TYPE==a.alternative.TYPE)return b(a.body.CTOR,a,{value:b(cb,a,{condition:a.condition,consequent:a.body.value||b(Eb,a.body).optimize(c),alternative:a.alternative.value||b(Eb,a.alternative).optimize(c)})}).transform(c);if(a.body instanceof Ia&&!a.body.alternative&&!a.alternative&&(a.condition=b(bb,a.condition,{operator:"&&",left:a.condition,right:a.body.condition}).transform(c),a.body=a.body.body),p(a.body)&&a.alternative){var m=a.alternative;return a.alternative=null,b(ka,a,{body:[a,m]}).transform(c)}if(p(a.alternative)){var n=a.body;return a.body=a.alternative,a.condition=j?g:a.condition.negate(c),a.alternative=null,b(ka,a,{body:[a,n]}).transform(c)}return a}),a(Ja,function(a,c){if(0==a.body.length&&c.option("conditionals"))return b(ia,a,{body:a.expression}).transform(c);for(;;){var d=a.body[a.body.length-1];if(d){var e=d.body[d.body.length-1];if(e instanceof Ga&&i(c.loopcontrol_target(e.label))===a&&d.body.pop(),d instanceof La&&0==d.body.length){a.body.pop();continue}}break}var f=a.expression.evaluate(c);a:if(2==f.length)try{if(a.expression=f[0],!c.option("dead_code"))break a;var g=f[1],h=!1,j=!1,k=!1,l=!1,m=!1,n=new S(function(d,e,f){if(d instanceof xa||d instanceof ia)return d;if(d instanceof Ja&&d===a)return d=d.clone(),e(d,this),m?d:b(ka,d,{body:d.body.reduce(function(a,b){return a.concat(b.body)},[])}).transform(c);if(d instanceof Ia||d instanceof Na){var i=h;return h=!j,e(d,this),h=i,d}if(d instanceof ma||d instanceof Ja){var i=j;return j=!0,e(d,this),j=i,d}if(d instanceof Ga&&this.loopcontrol_target(d.label)===a)return h?(m=!0,d):j?d:(l=!0,f?ca.skip:b(la,d));if(d instanceof Ka&&this.parent()===a){if(l)return ca.skip;if(d instanceof Ma){var n=d.expression.evaluate(c);if(n.length<2)throw a;return n[1]===g||k?(k=!0,p(d)&&(l=!0),e(d,this),d):ca.skip}return e(d,this),d}});n.stack=c.stack.slice(),a=a.transform(n)}catch(b){if(b!==a)throw b}return a}),a(Ma,function(a,b){return a.body=j(a.body,b),a}),a(Na,function(a,b){return a.body=j(a.body,b),a}),Qa.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(a){a.value=null})}),Qa.DEFMETHOD("to_assignments",function(){var a=this.definitions.reduce(function(a,c){if(c.value){var d=b(ub,c.name,c.name);a.push(b(db,c,{operator:"=",left:d,right:c.value}))}return a},[]);return 0==a.length?null:Wa.from_array(a)}),a(Qa,function(a,c){return 0==a.definitions.length?b(la,a):a}),a(za,function(a,b){return a=xa.prototype.optimize.call(a,b),b.option("unused")&&!b.option("keep_fnames")&&a.name&&a.name.unreferenced()&&(a.name=null),a}),a(Ua,function(a,d){if(d.option("unsafe")){var e=a.expression;if(e instanceof ub&&e.undeclared())switch(e.name){case"Array":if(1!=a.args.length)return b(eb,a,{elements:a.args}).transform(d);break;case"Object":if(0==a.args.length)return b(fb,a,{properties:[]});break;case"String":if(0==a.args.length)return b(yb,a,{value:""});if(a.args.length<=1)return b(bb,a,{left:a.args[0],operator:"+",right:b(yb,a,{value:""})}).transform(d);break;case"Number":if(0==a.args.length)return b(zb,a,{value:0});if(1==a.args.length)return b(_a,a,{expression:a.args[0],operator:"+"}).transform(d);case"Boolean":if(0==a.args.length)return b(Ib,a);if(1==a.args.length)return b(_a,a,{expression:b(_a,null,{expression:a.args[0],operator:"!"}),operator:"!"}).transform(d);break;case"Function":if(0==a.args.length)return b(za,a,{argnames:[],body:[]});if(w(a.args,function(a){return a instanceof yb}))try{var f="(function("+a.args.slice(0,-1).map(function(a){return a.value}).join(",")+"){"+a.args[a.args.length-1].value+"})()",g=R(f);g.figure_out_scope({screw_ie8:d.option("screw_ie8")});var h=new X(d.options);g=g.transform(h),g.figure_out_scope({screw_ie8:d.option("screw_ie8")}),g.mangle_names();var i;try{g.walk(new B(function(a){if(a instanceof xa)throw i=a,g}))}catch(a){if(a!==g)throw a}if(!i)return a;var j=i.argnames.map(function(c,d){return b(yb,a.args[d],{value:c.print_to_string()})}),f=W();return ka.prototype._codegen.call(i,i,f),f=f.toString().replace(/^\{|\}$/g,""),j.push(b(yb,a.args[a.args.length-1],{value:f})),a.args=j,a}catch(b){if(!(b instanceof N))throw console.log(b),b;d.warn("Error parsing code passed to new Function [{file}:{line},{col}]",a.args[a.args.length-1].start),d.warn(b.toString())}}else{if(e instanceof Ya&&"toString"==e.property&&0==a.args.length)return b(bb,a,{left:b(yb,a,{value:""}),operator:"+",right:e.expression}).transform(d);if(e instanceof Ya&&e.expression instanceof eb&&"join"==e.property){var k=0==a.args.length?",":a.args[0].evaluate(d)[1];if(null!=k){var l=e.expression.elements.reduce(function(a,b){if(b=b.evaluate(d),0==a.length||1==b.length)a.push(b);else{var e=a[a.length-1];if(2==e.length){var f=""+e[1]+k+b[1];a[a.length-1]=[c(d,f,e[0]),f]}else a.push(b)}return a},[]);if(0==l.length)return b(yb,a,{value:""});if(1==l.length)return l[0][0];if(""==k){var n;return n=l[0][0]instanceof yb||l[1][0]instanceof yb?l.shift()[0]:b(yb,a,{value:""}),l.reduce(function(a,c){return b(bb,c[0],{operator:"+",left:a,right:c[0]})},n).transform(d)}var o=a.clone();return o.expression=o.expression.clone(),o.expression.expression=o.expression.expression.clone(),o.expression.expression.elements=l.map(function(a){return a[0]}),m(a,o)}}}}if(d.option("side_effects")&&a.expression instanceof za&&0==a.args.length&&!ja.prototype.has_side_effects.call(a.expression,d))return b(Eb,a).transform(d);if(d.option("drop_console")&&a.expression instanceof Xa){for(var p=a.expression.expression;p.expression;)p=p.expression;if(p instanceof ub&&"console"==p.name&&p.undeclared())return b(Eb,a).transform(d)}return a.evaluate(d)[0]}),a(Va,function(a,c){if(c.option("unsafe")){var d=a.expression;if(d instanceof ub&&d.undeclared())switch(d.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return b(Ua,a,a).transform(c)}}return a}),a(Wa,function(a,c){if(!c.option("side_effects"))return a;if(!a.car.has_side_effects(c))return d(c.parent(),a,a.cdr);if(c.option("cascade")){if(a.car instanceof db&&!a.car.left.has_side_effects(c)){if(a.car.left.equivalent_to(a.cdr))return a.car;if(a.cdr instanceof Ua&&a.cdr.expression.equivalent_to(a.car.left))return a.cdr.expression=a.car,a.cdr}if(!a.car.has_side_effects(c)&&!a.cdr.has_side_effects(c)&&a.car.equivalent_to(a.cdr))return a.car}return a.cdr instanceof _a&&"void"==a.cdr.operator&&!a.cdr.expression.has_side_effects(c)?(a.cdr.expression=a.car,a.cdr):a.cdr instanceof Eb?b(_a,a,{operator:"void",expression:a.car}):a}),$a.DEFMETHOD("lift_sequences",function(a){if(a.option("sequences")&&this.expression instanceof Wa){var b=this.expression,c=b.to_array();return this.expression=c.pop(),c.push(this),b=Wa.from_array(c).transform(a)}return this}),a(ab,function(a,b){return a.lift_sequences(b)}),a(_a,function(a,c){a=a.lift_sequences(c);var d=a.expression;if(c.option("booleans")&&c.in_boolean_context()){switch(a.operator){case"!":if(d instanceof _a&&"!"==d.operator)return d.expression;break;case"typeof":return c.warn("Boolean expression always true [{file}:{line},{col}]",a.start),a.expression.has_side_effects(c)?b(Wa,a,{car:a.expression,cdr:b(Jb,a)}):b(Jb,a)}d instanceof bb&&"!"==a.operator&&(a=m(a,d.negate(c)))}return a.evaluate(c)[0]}),bb.DEFMETHOD("lift_sequences",function(a){if(a.option("sequences")){if(this.left instanceof Wa){var b=this.left,c=b.to_array();return this.left=c.pop(),c.push(this),b=Wa.from_array(c).transform(a)}if(this.right instanceof Wa&&this instanceof db&&!u(this.left,a)){var b=this.right,c=b.to_array();return this.right=c.pop(),c.push(this),b=Wa.from_array(c).transform(a)}}return this});var A=v("== === != !== * & | ^");a(bb,function(a,c){function e(b,d){if(d||!a.left.has_side_effects(c)&&!a.right.has_side_effects(c)){b&&(a.operator=b);var e=a.left;a.left=a.right,a.right=e}}if(A(a.operator)&&(a.right instanceof xb&&!(a.left instanceof xb)&&(a.left instanceof bb&&ac[a.left.operator]>=ac[a.operator]||e(null,!0)),/^[!=]==?$/.test(a.operator))){if(a.left instanceof ub&&a.right instanceof cb){if(a.right.consequent instanceof ub&&a.right.consequent.definition()===a.left.definition()){if(/^==/.test(a.operator))return a.right.condition;if(/^!=/.test(a.operator))return a.right.condition.negate(c)}if(a.right.alternative instanceof ub&&a.right.alternative.definition()===a.left.definition()){if(/^==/.test(a.operator))return a.right.condition.negate(c);if(/^!=/.test(a.operator))return a.right.condition}}if(a.right instanceof ub&&a.left instanceof cb){if(a.left.consequent instanceof ub&&a.left.consequent.definition()===a.right.definition()){if(/^==/.test(a.operator))return a.left.condition;if(/^!=/.test(a.operator))return a.left.condition.negate(c)}if(a.left.alternative instanceof ub&&a.left.alternative.definition()===a.right.definition()){if(/^==/.test(a.operator))return a.left.condition.negate(c);if(/^!=/.test(a.operator))return a.left.condition}}}if(a=a.lift_sequences(c),c.option("comparisons"))switch(a.operator){case"===":case"!==":(a.left.is_string(c)&&a.right.is_string(c)||a.left.is_boolean()&&a.right.is_boolean())&&(a.operator=a.operator.substr(0,2));case"==":case"!=":a.left instanceof yb&&"undefined"==a.left.value&&a.right instanceof _a&&"typeof"==a.right.operator&&c.option("unsafe")&&(a.right.expression instanceof ub&&a.right.expression.undeclared()||(a.right=a.right.expression,a.left=b(Eb,a.left).optimize(c),2==a.operator.length&&(a.operator+="=")))}if(c.option("conditionals"))if("&&"==a.operator){var f=a.left.evaluate(c);if(f.length>1)return f[1]?(c.warn("Condition left of && always true [{file}:{line},{col}]",a.start),d(c.parent(),a,a.right.evaluate(c)[0])):(c.warn("Condition left of && always false [{file}:{line},{col}]",a.start),d(c.parent(),a,f[0]))}else if("||"==a.operator){var f=a.left.evaluate(c);if(f.length>1)return f[1]?(c.warn("Condition left of || always true [{file}:{line},{col}]",a.start),d(c.parent(),a,f[0])):(c.warn("Condition left of || always false [{file}:{line},{col}]",a.start),d(c.parent(),a,a.right.evaluate(c)[0]))}if(c.option("booleans")&&c.in_boolean_context())switch(a.operator){case"&&":var f=a.left.evaluate(c),g=a.right.evaluate(c);if(f.length>1&&!f[1]||g.length>1&&!g[1])return c.warn("Boolean && always false [{file}:{line},{col}]",a.start),a.left.has_side_effects(c)?b(Wa,a,{car:a.left,cdr:b(Ib)}).optimize(c):b(Ib,a);if(f.length>1&&f[1])return g[0];if(g.length>1&&g[1])return f[0];break;case"||":var f=a.left.evaluate(c),g=a.right.evaluate(c);if(f.length>1&&f[1]||g.length>1&&g[1])return c.warn("Boolean || always true [{file}:{line},{col}]",a.start),a.left.has_side_effects(c)?b(Wa,a,{car:a.left,cdr:b(Jb)}).optimize(c):b(Jb,a);if(f.length>1&&!f[1])return g[0];if(g.length>1&&!g[1])return f[0];break;case"+":var f=a.left.evaluate(c),g=a.right.evaluate(c);if(f.length>1&&f[0]instanceof yb&&f[1]&&!a.right.has_side_effects(c)||g.length>1&&g[0]instanceof yb&&g[1]&&!a.left.has_side_effects(c))return c.warn("+ in boolean context always true [{file}:{line},{col}]",a.start),b(Jb,a)}if(c.option("comparisons")&&a.is_boolean()){if(!(c.parent()instanceof bb)||c.parent()instanceof db){var h=b(_a,a,{operator:"!",expression:a.negate(c)});a=m(a,h)}if(c.option("unsafe_comps"))switch(a.operator){case"<":e(">");break;case"<=":e(">=")}}return"+"==a.operator&&a.right instanceof yb&&""===a.right.getValue()&&a.left instanceof bb&&"+"==a.left.operator&&a.left.is_string(c)?a.left:(c.option("evaluate")&&"+"==a.operator&&(a.left instanceof xb&&a.right instanceof bb&&"+"==a.right.operator&&a.right.left instanceof xb&&a.right.is_string(c)&&(a=b(bb,a,{operator:"+",left:b(yb,null,{value:""+a.left.getValue()+a.right.left.getValue(),start:a.left.start,end:a.right.left.end}),right:a.right.right})),a.right instanceof xb&&a.left instanceof bb&&"+"==a.left.operator&&a.left.right instanceof xb&&a.left.is_string(c)&&(a=b(bb,a,{operator:"+",left:a.left.left,right:b(yb,null,{value:""+a.left.right.getValue()+a.right.getValue(),start:a.left.right.start,end:a.right.end})})),a.left instanceof bb&&"+"==a.left.operator&&a.left.is_string(c)&&a.left.right instanceof xb&&a.right instanceof bb&&"+"==a.right.operator&&a.right.left instanceof xb&&a.right.is_string(c)&&(a=b(bb,a,{operator:"+",left:b(bb,a.left,{operator:"+",left:a.left.left,right:b(yb,null,{value:""+a.left.right.getValue()+a.right.left.getValue(),start:a.left.right.start,end:a.right.left.end})}),right:a.right.right}))),a.right instanceof bb&&a.right.operator==a.operator&&("&&"==a.operator||"||"==a.operator)?(a.left=b(bb,a.left,{operator:a.operator,left:a.left,right:a.right.left}),a.right=a.right.right,a.transform(c)):a.evaluate(c)[0])}),a(ub,function(a,d){function e(a,b){return b instanceof bb&&"="===b.operator&&b.left===a}if(a.undeclared()&&!e(a,d.parent())){var f=d.option("global_defs");if(f&&y(f,a.name))return c(d,f[a.name],a);if(!a.scope.uses_with||!d.find_parent(ua))switch(a.name){case"undefined":return b(Eb,a);case"NaN":return b(Db,a).transform(d);case"Infinity":return b(Gb,a).transform(d)}}return a}),a(Gb,function(a,c){return b(bb,a,{operator:"/",left:b(zb,a,{value:1}),right:b(zb,a,{value:0})})}),a(Eb,function(a,c){if(c.option("unsafe")){var d=c.find_parent(va),e=d.find_variable("undefined");if(e){var f=b(ub,a,{name:"undefined",scope:d,thedef:e});return f.reference(),f}}return a});var C=["+","-","/","*","%",">>","<<",">>>","|","^","&"],D=["*","|","^","&"];a(db,function(a,b){return a=a.lift_sequences(b),"="==a.operator&&a.left instanceof ub&&a.right instanceof bb&&(a.right.left instanceof ub&&a.right.left.name==a.left.name&&g(a.right.operator,C)?(a.operator=a.right.operator+"=",a.right=a.right.right):a.right.right instanceof ub&&a.right.right.name==a.left.name&&g(a.right.operator,D)&&!a.right.left.has_side_effects(b)&&(a.operator=a.right.operator+"=",a.right=a.right.left)),a}),a(cb,function(a,e){function f(a){return a.is_boolean()?a:b(_a,a,{operator:"!",expression:a.negate(e)})}function g(a){return a instanceof Jb||a instanceof _a&&"!"==a.operator&&a.expression instanceof xb&&!a.expression.value}function h(a){return a instanceof Ib||a instanceof _a&&"!"==a.operator&&a.expression instanceof xb&&!!a.expression.value}if(!e.option("conditionals"))return a;if(a.condition instanceof Wa){var i=a.condition.car;return a.condition=a.condition.cdr,Wa.cons(i,a)}var j=a.condition.evaluate(e);if(j.length>1)return j[1]?(e.warn("Condition always true [{file}:{line},{col}]",a.start),d(e.parent(),a,a.consequent)):(e.warn("Condition always false [{file}:{line},{col}]",a.start),d(e.parent(),a,a.alternative));var k=j[0].negate(e);m(j[0],k)===k&&(a=b(cb,a,{condition:k,consequent:a.alternative,alternative:a.consequent}));var l=a.consequent,n=a.alternative;if(l instanceof db&&n instanceof db&&l.operator==n.operator&&l.left.equivalent_to(n.left)&&!l.left.has_side_effects(e))return b(db,a,{operator:l.operator,left:l.left,right:b(cb,a,{condition:a.condition,consequent:l.right,alternative:n.right})});if(l instanceof Ua&&n.TYPE===l.TYPE&&l.args.length==n.args.length&&!l.expression.has_side_effects(e)&&l.expression.equivalent_to(n.expression)){if(0==l.args.length)return b(Wa,a,{car:a.condition,cdr:l});if(1==l.args.length)return l.args[0]=b(cb,a,{condition:a.condition,consequent:l.args[0],alternative:n.args[0]}),l}if(l instanceof cb&&l.alternative.equivalent_to(n))return b(cb,a,{condition:b(bb,a,{left:a.condition,operator:"&&",right:l.condition}),consequent:l.consequent,alternative:n});if(l.is_constant(e)&&n.is_constant(e)&&l.equivalent_to(n)){var o=l.constant_value(e);return a.condition.has_side_effects(e)?Wa.from_array([a.condition,c(e,o,a)]):c(e,o,a)}return g(a.consequent)?h(a.alternative)?f(a.condition):b(bb,a,{operator:"||",left:f(a.condition),right:a.alternative}):h(a.consequent)?g(a.alternative)?f(a.condition.negate(e)):b(bb,a,{operator:"&&",left:f(a.condition.negate(e)),right:a.alternative}):g(a.alternative)?b(bb,a,{operator:"||",left:f(a.condition.negate(e)),right:a.consequent}):h(a.alternative)?b(bb,a,{operator:"&&",left:f(a.condition),right:a.consequent}):a}),a(Hb,function(a,c){if(c.option("booleans")){var d=c.parent();return d instanceof bb&&("=="==d.operator||"!="==d.operator)?(c.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:d.operator,value:a.value,file:d.start.file,line:d.start.line,col:d.start.col}),b(zb,a,{value:+a.value})):b(_a,a,{operator:"!",expression:b(zb,a,{value:1-a.value})})}return a}),a(Za,function(a,c){var d=a.property;if(d instanceof yb&&c.option("properties")){if(d=d.getValue(),Mb(d)?c.option("screw_ie8"):L(d))return b(Ya,a,{expression:a.expression,property:d}).optimize(c);var e=parseFloat(d);isNaN(e)||e.toString()!=d||(a.property=b(zb,a.property,{value:e}))}return a}),a(Ya,function(a,c){var d=a.property;return Mb(d)&&!c.option("screw_ie8")?b(Za,a,{expression:a.expression,property:b(yb,a,{value:d})}).optimize(c):a.evaluate(c)[0]}),a(eb,z),a(fb,z),a(Ab,z),a(Da,function(a,b){return a.value instanceof Eb&&(a.value=null),a})}(),function(){function a(a){if("Literal"==a.type)return null!=a.raw?a.raw:a.value+""}function b(b){var c=b.loc,d=c&&c.start,e=b.range;return new da({file:c&&c.source,line:d&&d.line,col:d&&d.column,pos:e?e[0]:b.start,endline:d&&d.line,endcol:d&&d.column,endpos:e?e[0]:b.start,raw:a(b)})}function d(b){var c=b.loc,d=c&&c.end,e=b.range;return new da({file:c&&c.source,line:d&&d.line,col:d&&d.column,pos:e?e[1]:b.end,endline:d&&d.line,endcol:d&&d.column,endpos:e?e[1]:b.end,raw:a(b)})}function e(a,e,g){var k="function From_Moz_"+a+"(M){\n";k+="return new U2."+e.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var m="function To_Moz_"+a+"(M){\n";m+="return {\ntype: "+JSON.stringify(a),g&&g.split(/\s*,\s*/).forEach(function(a){var b=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(a);if(!b)throw new Error("Can't understand property map: "+a);var c=b[1],d=b[2],e=b[3];switch(k+=",\n"+e+": ",m+=",\n"+c+": ",d){case"@":k+="M."+c+".map(from_moz)",m+="M."+e+".map(to_moz)";break;case">":k+="from_moz(M."+c+")",m+="to_moz(M."+e+")";break;case"=":k+="M."+c,m+="M."+e;break;case"%":k+="from_moz(M."+c+").body",m+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+a)}}),k+="\n})\n}",m+="\n}\n}",k=new Function("U2","my_start_token","my_end_token","from_moz","return("+k+")")(c,b,d,f),m=new Function("to_moz","to_moz_block","return("+m+")")(i,j),l[a]=k,h(e,m)}function f(a){m.push(a);var b=null!=a?l[a.type](a):null;return m.pop(),b}function g(a,b,c){var d=a.start,e=a.end;return null!=d.pos&&null!=e.endpos&&(b.range=[d.pos,e.endpos]),d.line&&(b.loc={start:{line:d.line,column:d.col},end:e.endline?{line:e.endline,column:e.endcol}:null},d.file&&(b.loc.source=d.file)),b}function h(a,b){a.DEFMETHOD("to_mozilla_ast",function(){return g(this,b(this))})}function i(a){return null!=a?a.to_mozilla_ast():null}function j(a){return{type:"BlockStatement",body:a.body.map(i)}}var k=function(a){for(var b=!0,c=0;c<a.length;c++)b&&a[c]instanceof fa&&a[c].body instanceof yb?a[c]=new ha({start:a[c].start,end:a[c].end,value:a[c].body.value}):!b||a[c]instanceof fa&&a[c].body instanceof yb||(b=!1);return a},l={Program:function(a){return new wa({start:b(a),end:d(a),body:k(a.body.map(f))})},FunctionDeclaration:function(a){return new Aa({start:b(a),end:d(a),name:f(a.id),argnames:a.params.map(f),body:k(f(a.body).body)})},FunctionExpression:function(a){return new za({start:b(a),end:d(a),name:f(a.id),argnames:a.params.map(f),body:k(f(a.body).body)})},ExpressionStatement:function(a){return new ia({start:b(a),end:d(a),body:f(a.expression)})},TryStatement:function(a){var c=a.handlers||[a.handler];if(c.length>1||a.guardedHandlers&&a.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new Na({start:b(a),end:d(a),body:f(a.block).body,bcatch:f(c[0]),bfinally:a.finalizer?new Pa(f(a.finalizer)):null})},Property:function(a){var c=a.key,e="Identifier"==c.type?c.name:c.value,g={start:b(c),end:d(a.value),key:e,value:f(a.value)};switch(a.kind){case"init":return new hb(g);case"set":return g.value.name=f(c),new ib(g);case"get":return g.value.name=f(c),new jb(g)}},ArrayExpression:function(a){return new eb({start:b(a),end:d(a),elements:a.elements.map(function(a){return null===a?new Fb:f(a)})})},ObjectExpression:function(a){return new fb({start:b(a),end:d(a),properties:a.properties.map(function(a){return a.type="Property",f(a)})})},SequenceExpression:function(a){return Wa.from_array(a.expressions.map(f))},MemberExpression:function(a){return new(a.computed?Za:Ya)({start:b(a),end:d(a),property:a.computed?f(a.property):a.property.name,expression:f(a.object)})},SwitchCase:function(a){return new(a.test?Ma:La)({start:b(a),end:d(a),expression:f(a.test),body:a.consequent.map(f)})},VariableDeclaration:function(a){return new("const"===a.kind?Sa:Ra)({start:b(a),end:d(a),definitions:a.declarations.map(f)})},Literal:function(a){var c=a.value,e={start:b(a),end:d(a)};if(null===c)return new Cb(e);switch(typeof c){case"string":return e.value=c,new yb(e);case"number":return e.value=c,new zb(e);case"boolean":return new(c?Jb:Ib)(e);default:var f=a.regex;return f&&f.pattern?e.value=new RegExp(f.pattern,f.flags).toString():e.value=a.regex&&a.raw?a.raw:c,new Ab(e)}},Identifier:function(a){var c=m[m.length-2];return new("LabeledStatement"==c.type?tb:"VariableDeclarator"==c.type&&c.id===a?"const"==c.kind?ob:nb:"FunctionExpression"==c.type?c.id===a?rb:pb:"FunctionDeclaration"==c.type?c.id===a?qb:pb:"CatchClause"==c.type?sb:"BreakStatement"==c.type||"ContinueStatement"==c.type?vb:ub)({start:b(a),end:d(a),name:a.name})}};l.UpdateExpression=l.UnaryExpression=function(a){var c="prefix"in a?a.prefix:"UnaryExpression"==a.type;return new(c?_a:ab)({start:b(a),end:d(a),operator:a.operator,expression:f(a.argument)})},e("EmptyStatement",la),e("BlockStatement",ka,"body@body"),e("IfStatement",Ia,"test>condition, consequent>body, alternate>alternative"),e("LabeledStatement",na,"label>label, body>body"),e("BreakStatement",Ga,"label>label"),e("ContinueStatement",Ha,"label>label"),e("WithStatement",ua,"object>expression, body>body"),e("SwitchStatement",Ja,"discriminant>expression, cases@body"),e("ReturnStatement",Da,"argument>value"),e("ThrowStatement",Ea,"argument>value"),e("WhileStatement",ra,"test>condition, body>body"),e("DoWhileStatement",qa,"test>condition, body>body"),e("ForStatement",sa,"init>init, test>condition, update>step, body>body"),e("ForInStatement",ta,"left>init, right>object, body>body"),e("DebuggerStatement",ga),e("VariableDeclarator",Ta,"id>name, init>value"),e("CatchClause",Oa,"param>argname, body%body"),e("ThisExpression",wb),e("BinaryExpression",bb,"operator=operator, left>left, right>right"),e("LogicalExpression",bb,"operator=operator, left>left, right>right"),e("AssignmentExpression",db,"operator=operator, left>left, right>right"),e("ConditionalExpression",cb,"test>condition, consequent>consequent, alternate>alternative"),e("NewExpression",Va,"callee>expression, arguments@args"),e("CallExpression",Ua,"callee>expression, arguments@args"),h(wa,function(a){return{type:"Program",body:a.body.map(i)}}),h(Aa,function(a){return{type:"FunctionDeclaration",id:i(a.name),params:a.argnames.map(i),body:j(a)}}),h(za,function(a){return{type:"FunctionExpression",id:i(a.name),params:a.argnames.map(i),body:j(a)}}),h(ha,function(a){return{type:"ExpressionStatement",expression:{type:"Literal",value:a.value}}}),h(ia,function(a){return{type:"ExpressionStatement",expression:i(a.body)}}),h(Ka,function(a){return{type:"SwitchCase",test:i(a.expression),consequent:a.body.map(i)}}),h(Na,function(a){return{type:"TryStatement",block:j(a),handler:i(a.bcatch),guardedHandlers:[],finalizer:i(a.bfinally)}}),h(Oa,function(a){return{type:"CatchClause",param:i(a.argname),guard:null,body:j(a)}}),h(Qa,function(a){return{type:"VariableDeclaration",kind:a instanceof Sa?"const":"var",declarations:a.definitions.map(i)}}),h(Wa,function(a){return{type:"SequenceExpression",expressions:a.to_array().map(i)}}),h(Xa,function(a){var b=a instanceof Za;return{type:"MemberExpression",object:i(a.expression),computed:b,property:b?i(a.property):{type:"Identifier",name:a.property}}}),h($a,function(a){return{type:"++"==a.operator||"--"==a.operator?"UpdateExpression":"UnaryExpression",operator:a.operator,prefix:a instanceof _a,argument:i(a.expression)}}),h(bb,function(a){return{type:"&&"==a.operator||"||"==a.operator?"LogicalExpression":"BinaryExpression",left:i(a.left),operator:a.operator,right:i(a.right)}}),h(eb,function(a){return{type:"ArrayExpression",elements:a.elements.map(i)}}),h(fb,function(a){return{type:"ObjectExpression",properties:a.properties.map(i)}}),h(gb,function(a){var b,c=I(a.key)?{type:"Identifier",name:a.key}:{type:"Literal",value:a.key};return a instanceof hb?b="init":a instanceof jb?b="get":a instanceof ib&&(b="set"),{type:"Property",kind:b,key:c,value:i(a.value)}}),h(kb,function(a){var b=a.definition();return{type:"Identifier",name:b?b.mangled_name||b.name:a.name}}),h(Ab,function(a){var b=a.value;return{type:"Literal",value:b,raw:b.toString(),regex:{pattern:b.source,flags:b.toString().match(/[gimuy]*$/)[0]}}}),h(xb,function(a){
 var b=a.value;return"number"==typeof b&&(b<0||0===b&&1/b<0)?{type:"UnaryExpression",operator:"-",prefix:!0,argument:{type:"Literal",value:-b,raw:a.start.raw}}:{type:"Literal",value:b,raw:a.start.raw}}),h(Bb,function(a){return{type:"Identifier",name:String(a.value)}}),Hb.DEFMETHOD("to_mozilla_ast",xb.prototype.to_mozilla_ast),Cb.DEFMETHOD("to_mozilla_ast",xb.prototype.to_mozilla_ast),Fb.DEFMETHOD("to_mozilla_ast",function(){return null}),ja.DEFMETHOD("to_mozilla_ast",ka.prototype.to_mozilla_ast),xa.DEFMETHOD("to_mozilla_ast",za.prototype.to_mozilla_ast);var m=null;ea.from_mozilla_ast=function(a){var b=m;m=[];var c=f(a);return m=b,c}}(),c.Compressor=X,c.DefaultsError=j,c.Dictionary=x,c.JS_Parse_Error=N,c.MAP=ca,c.OutputStream=W,c.SourceMap=Y,c.TreeTransformer=S,c.TreeWalker=B,c.base54=dc,c.defaults=k,c.mangle_properties=$,c.merge=l,c.parse=R,c.push_uniq=p,c.string_template=q,c.tokenizer=Q,c.is_identifier=I,c.SymbolDef=T,"undefined"!=typeof DEBUG&&DEBUG&&(c.EXPECT_DIRECTIVE=ec),c.sys=_,c.MOZ_SourceMap=aa,c.UglifyJS=ba,c.array_to_hash=d,c.slice=e,c.characters=f,c.member=g,c.find_if=h,c.repeat_string=i,c.DefaultsError=j,c.defaults=k,c.merge=l,c.noop=m,c.return_false=n,c.return_true=o,c.MAP=ca,c.push_uniq=p,c.string_template=q,c.remove=r,c.mergeSort=s,c.set_difference=t,c.set_intersection=u,c.makePredicate=v,c.all=w,c.Dictionary=x,c.HOP=y,c.DEFNODE=z,c.AST_Token=da,c.AST_Node=ea,c.AST_Statement=fa,c.AST_Debugger=ga,c.AST_Directive=ha,c.AST_SimpleStatement=ia,c.walk_body=A,c.AST_Block=ja,c.AST_BlockStatement=ka,c.AST_EmptyStatement=la,c.AST_StatementWithBody=ma,c.AST_LabeledStatement=na,c.AST_IterationStatement=oa,c.AST_DWLoop=pa,c.AST_Do=qa,c.AST_While=ra,c.AST_For=sa,c.AST_ForIn=ta,c.AST_With=ua,c.AST_Scope=va,c.AST_Toplevel=wa,c.AST_Lambda=xa,c.AST_Accessor=ya,c.AST_Function=za,c.AST_Defun=Aa,c.AST_Jump=Ba,c.AST_Exit=Ca,c.AST_Return=Da,c.AST_Throw=Ea,c.AST_LoopControl=Fa,c.AST_Break=Ga,c.AST_Continue=Ha,c.AST_If=Ia,c.AST_Switch=Ja,c.AST_SwitchBranch=Ka,c.AST_Default=La,c.AST_Case=Ma,c.AST_Try=Na,c.AST_Catch=Oa,c.AST_Finally=Pa,c.AST_Definitions=Qa,c.AST_Var=Ra,c.AST_Const=Sa,c.AST_VarDef=Ta,c.AST_Call=Ua,c.AST_New=Va,c.AST_Seq=Wa,c.AST_PropAccess=Xa,c.AST_Dot=Ya,c.AST_Sub=Za,c.AST_Unary=$a,c.AST_UnaryPrefix=_a,c.AST_UnaryPostfix=ab,c.AST_Binary=bb,c.AST_Conditional=cb,c.AST_Assign=db,c.AST_Array=eb,c.AST_Object=fb,c.AST_ObjectProperty=gb,c.AST_ObjectKeyVal=hb,c.AST_ObjectSetter=ib,c.AST_ObjectGetter=jb,c.AST_Symbol=kb,c.AST_SymbolAccessor=lb,c.AST_SymbolDeclaration=mb,c.AST_SymbolVar=nb,c.AST_SymbolConst=ob,c.AST_SymbolFunarg=pb,c.AST_SymbolDefun=qb,c.AST_SymbolLambda=rb,c.AST_SymbolCatch=sb,c.AST_Label=tb,c.AST_SymbolRef=ub,c.AST_LabelRef=vb,c.AST_This=wb,c.AST_Constant=xb,c.AST_String=yb,c.AST_Number=zb,c.AST_RegExp=Ab,c.AST_Atom=Bb,c.AST_Null=Cb,c.AST_NaN=Db,c.AST_Undefined=Eb,c.AST_Hole=Fb,c.AST_Infinity=Gb,c.AST_Boolean=Hb,c.AST_False=Ib,c.AST_True=Jb,c.TreeWalker=B,c.KEYWORDS=Kb,c.KEYWORDS_ATOM=Lb,c.RESERVED_WORDS=Mb,c.KEYWORDS_BEFORE_EXPRESSION=Nb,c.OPERATOR_CHARS=Ob,c.RE_HEX_NUMBER=Pb,c.RE_OCT_NUMBER=Qb,c.OPERATORS=Rb,c.WHITESPACE_CHARS=Sb,c.NEWLINE_CHARS=Tb,c.PUNC_BEFORE_EXPRESSION=Ub,c.PUNC_CHARS=Vb,c.REGEXP_MODIFIERS=Wb,c.UNICODE=Xb,c.is_letter=C,c.is_digit=D,c.is_alphanumeric_char=E,c.is_unicode_digit=F,c.is_unicode_combining_mark=G,c.is_unicode_connector_punctuation=H,c.is_identifier=I,c.is_identifier_start=J,c.is_identifier_char=K,c.is_identifier_string=L,c.parse_js_number=M,c.JS_Parse_Error=N,c.js_error=O,c.is_token=P,c.EX_EOF=Yb,c.tokenizer=Q,c.UNARY_PREFIX=Zb,c.UNARY_POSTFIX=$b,c.ASSIGNMENT=_b,c.PRECEDENCE=ac,c.STATEMENTS_WITH_LABELS=bc,c.ATOMIC_START_TOKEN=cc,c.parse=R,c.TreeTransformer=S,c.SymbolDef=T,c.base54=dc,c.EXPECT_DIRECTIVE=ec,c.is_some_comments=U,c.is_comment5=V,c.OutputStream=W,c.Compressor=X,c.SourceMap=Y,c.find_builtins=Z,c.mangle_properties=$,c.AST_Node.warn_function=function(a){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(a)},c.minify=function(a,c){function d(a,b){var d=c.fromString?a:fs.readFileSync(a,"utf8");f[b]=d,e=ba.parse(d,{filename:b,toplevel:e,bare_returns:c.parse?c.parse.bare_returns:void 0})}c=ba.defaults(c,{spidermonkey:!1,outSourceMap:null,outFileName:null,sourceRoot:null,inSourceMap:null,sourceMapUrl:null,sourceMapInline:!1,fromString:!1,warnings:!1,mangle:{},mangleProperties:!1,nameCache:null,output:null,compress:{},parse:{}}),ba.base54.reset();var e=null,f={};if(c.spidermonkey?e=ba.AST_Node.from_mozilla_ast(a):(c.fromString||(a=ba.simple_glob(a)),[].concat(a).forEach(function(a,b){if("string"==typeof a)d(a,c.fromString?b:a);else for(var e in a)d(a[e],e)})),c.wrap&&(e=e.wrap_commonjs(c.wrap,c.exportAll)),c.compress){var g={warnings:c.warnings};ba.merge(g,c.compress),e.figure_out_scope();var h=ba.Compressor(g);e=h.compress(e)}(c.mangleProperties||c.nameCache)&&(c.mangleProperties.cache=ba.readNameCache(c.nameCache,"props"),e=ba.mangle_properties(e,c.mangleProperties),ba.writeNameCache(c.nameCache,"props",c.mangleProperties.cache)),c.mangle&&(e.figure_out_scope(c.mangle),e.compute_char_frequency(c.mangle),e.mangle_names(c.mangle));var i=c.inSourceMap,j={};if("string"==typeof c.inSourceMap&&(i=JSON.parse(fs.readFileSync(c.inSourceMap,"utf8"))),(c.outSourceMap||c.sourceMapInline)&&(j.source_map=ba.SourceMap({file:c.outFileName||("string"==typeof c.outSourceMap?c.outSourceMap.replace(/\.map$/i,""):null),orig:i,root:c.sourceRoot}),c.sourceMapIncludeSources))for(var k in f)f.hasOwnProperty(k)&&j.source_map.get().setSourceContent(k,f[k]);c.output&&ba.merge(j,c.output);var l=ba.OutputStream(j);e.print(l);var m=j.source_map;m&&(m+="");var n="\n//# sourceMappingURL=";return c.sourceMapInline?l+=n+"data:application/json;charset=utf-8;base64,"+new b(m).toString("base64"):c.outSourceMap&&"string"==typeof c.outSourceMap&&c.sourceMapUrl!==!1&&(l+=n+("string"==typeof c.sourceMapUrl?c.sourceMapUrl:c.outSourceMap)),{code:l+"",map:m}},c.describe_ast=function(){function a(c){b.print("AST_"+c.TYPE);var d=c.SELF_PROPS.filter(function(a){return!/^\$/.test(a)});d.length>0&&(b.space(),b.with_parens(function(){d.forEach(function(a,c){c&&b.space(),b.print(a)})})),c.documentation&&(b.space(),b.print_string(c.documentation)),c.SUBCLASSES.length>0&&(b.space(),b.with_block(function(){c.SUBCLASSES.forEach(function(c,d){b.indent(),a(c),b.newline()})}))}var b=ba.OutputStream({beautify:!0});return a(ba.AST_Node),b+""}}).call(this,a("buffer").Buffer)},{buffer:5,"source-map":150,util:163}],158:[function(a,b,c){"use strict";function d(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function e(a,b,c){if(a&&j.isObject(a)&&a instanceof d)return a;var e=new d;return e.parse(a,b,c),e}function f(a){return j.isString(a)&&(a=e(a)),a instanceof d?a.format():d.prototype.format.call(a)}function g(a,b){return e(a,!1,!0).resolve(b)}function h(a,b){return a?e(a,!1,!0).resolveObject(b):b}var i=a("punycode"),j=a("./util");c.parse=e,c.resolve=g,c.resolveObject=h,c.format=f,c.Url=d;var k=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,m=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,n=["<",">",'"',"`"," ","\r","\n","\t"],o=["{","}","|","\\","^","`"].concat(n),p=["'"].concat(o),q=["%","/","?",";","#"].concat(p),r=["/","?","#"],s=255,t=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=a("querystring");d.prototype.parse=function(a,b,c){if(!j.isString(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var d=a.indexOf("?"),e=d!==-1&&d<a.indexOf("#")?"?":"#",f=a.split(e),g=/\\/g;f[0]=f[0].replace(g,"/"),a=f.join(e);var h=a;if(h=h.trim(),!c&&1===a.split("#").length){var l=m.exec(h);if(l)return this.path=h,this.href=h,this.pathname=l[1],l[2]?(this.search=l[2],b?this.query=y.parse(this.search.substr(1)):this.query=this.search.substr(1)):b&&(this.search="",this.query={}),this}var n=k.exec(h);if(n){n=n[0];var o=n.toLowerCase();this.protocol=o,h=h.substr(n.length)}if(c||n||h.match(/^\/\/[^@\/]+@[^@\/]+/)){var z="//"===h.substr(0,2);!z||n&&w[n]||(h=h.substr(2),this.slashes=!0)}if(!w[n]&&(z||n&&!x[n])){for(var A=-1,B=0;B<r.length;B++){var C=h.indexOf(r[B]);C!==-1&&(A===-1||C<A)&&(A=C)}var D,E;E=A===-1?h.lastIndexOf("@"):h.lastIndexOf("@",A),E!==-1&&(D=h.slice(0,E),h=h.slice(E+1),this.auth=decodeURIComponent(D)),A=-1;for(var B=0;B<q.length;B++){var C=h.indexOf(q[B]);C!==-1&&(A===-1||C<A)&&(A=C)}A===-1&&(A=h.length),this.host=h.slice(0,A),h=h.slice(A),this.parseHost(),this.hostname=this.hostname||"";var F="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!F)for(var G=this.hostname.split(/\./),B=0,H=G.length;B<H;B++){var I=G[B];if(I&&!I.match(t)){for(var J="",K=0,L=I.length;K<L;K++)J+=I.charCodeAt(K)>127?"x":I[K];if(!J.match(t)){var M=G.slice(0,B),N=G.slice(B+1),O=I.match(u);O&&(M.push(O[1]),N.unshift(O[2])),N.length&&(h="/"+N.join(".")+h),this.hostname=M.join(".");break}}}this.hostname.length>s?this.hostname="":this.hostname=this.hostname.toLowerCase(),F||(this.hostname=i.toASCII(this.hostname));var P=this.port?":"+this.port:"",Q=this.hostname||"";this.host=Q+P,this.href+=this.host,F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==h[0]&&(h="/"+h))}if(!v[o])for(var B=0,H=p.length;B<H;B++){var R=p[B];if(h.indexOf(R)!==-1){var S=encodeURIComponent(R);S===R&&(S=escape(R)),h=h.split(R).join(S)}}var T=h.indexOf("#");T!==-1&&(this.hash=h.substr(T),h=h.slice(0,T));var U=h.indexOf("?");if(U!==-1?(this.search=h.substr(U),this.query=h.substr(U+1),b&&(this.query=y.parse(this.query)),h=h.slice(0,U)):b&&(this.search="",this.query={}),h&&(this.pathname=h),x[o]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var P=this.pathname||"",V=this.search||"";this.path=P+V}return this.href=this.format(),this},d.prototype.format=function(){var a=this.auth||"";a&&(a=encodeURIComponent(a),a=a.replace(/%3A/i,":"),a+="@");var b=this.protocol||"",c=this.pathname||"",d=this.hash||"",e=!1,f="";this.host?e=a+this.host:this.hostname&&(e=a+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(e+=":"+this.port)),this.query&&j.isObject(this.query)&&Object.keys(this.query).length&&(f=y.stringify(this.query));var g=this.search||f&&"?"+f||"";return b&&":"!==b.substr(-1)&&(b+=":"),this.slashes||(!b||x[b])&&e!==!1?(e="//"+(e||""),c&&"/"!==c.charAt(0)&&(c="/"+c)):e||(e=""),d&&"#"!==d.charAt(0)&&(d="#"+d),g&&"?"!==g.charAt(0)&&(g="?"+g),c=c.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),g=g.replace("#","%23"),b+e+c+g+d},d.prototype.resolve=function(a){return this.resolveObject(e(a,!1,!0)).format()},d.prototype.resolveObject=function(a){if(j.isString(a)){var b=new d;b.parse(a,!1,!0),a=b}for(var c=new d,e=Object.keys(this),f=0;f<e.length;f++){var g=e[f];c[g]=this[g]}if(c.hash=a.hash,""===a.href)return c.href=c.format(),c;if(a.slashes&&!a.protocol){for(var h=Object.keys(a),i=0;i<h.length;i++){var k=h[i];"protocol"!==k&&(c[k]=a[k])}return x[c.protocol]&&c.hostname&&!c.pathname&&(c.path=c.pathname="/"),c.href=c.format(),c}if(a.protocol&&a.protocol!==c.protocol){if(!x[a.protocol]){for(var l=Object.keys(a),m=0;m<l.length;m++){var n=l[m];c[n]=a[n]}return c.href=c.format(),c}if(c.protocol=a.protocol,a.host||w[a.protocol])c.pathname=a.pathname;else{for(var o=(a.pathname||"").split("/");o.length&&!(a.host=o.shift()););a.host||(a.host=""),a.hostname||(a.hostname=""),""!==o[0]&&o.unshift(""),o.length<2&&o.unshift(""),c.pathname=o.join("/")}if(c.search=a.search,c.query=a.query,c.host=a.host||"",c.auth=a.auth,c.hostname=a.hostname||a.host,c.port=a.port,c.pathname||c.search){var p=c.pathname||"",q=c.search||"";c.path=p+q}return c.slashes=c.slashes||a.slashes,c.href=c.format(),c}var r=c.pathname&&"/"===c.pathname.charAt(0),s=a.host||a.pathname&&"/"===a.pathname.charAt(0),t=s||r||c.host&&a.pathname,u=t,v=c.pathname&&c.pathname.split("/")||[],o=a.pathname&&a.pathname.split("/")||[],y=c.protocol&&!x[c.protocol];if(y&&(c.hostname="",c.port=null,c.host&&(""===v[0]?v[0]=c.host:v.unshift(c.host)),c.host="",a.protocol&&(a.hostname=null,a.port=null,a.host&&(""===o[0]?o[0]=a.host:o.unshift(a.host)),a.host=null),t=t&&(""===o[0]||""===v[0])),s)c.host=a.host||""===a.host?a.host:c.host,c.hostname=a.hostname||""===a.hostname?a.hostname:c.hostname,c.search=a.search,c.query=a.query,v=o;else if(o.length)v||(v=[]),v.pop(),v=v.concat(o),c.search=a.search,c.query=a.query;else if(!j.isNullOrUndefined(a.search)){if(y){c.hostname=c.host=v.shift();var z=!!(c.host&&c.host.indexOf("@")>0)&&c.host.split("@");z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return c.search=a.search,c.query=a.query,j.isNull(c.pathname)&&j.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c}if(!v.length)return c.pathname=null,c.search?c.path="/"+c.search:c.path=null,c.href=c.format(),c;for(var A=v.slice(-1)[0],B=(c.host||a.host||v.length>1)&&("."===A||".."===A)||""===A,C=0,D=v.length;D>=0;D--)A=v[D],"."===A?v.splice(D,1):".."===A?(v.splice(D,1),C++):C&&(v.splice(D,1),C--);if(!t&&!u)for(;C--;C)v.unshift("..");!t||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),B&&"/"!==v.join("/").substr(-1)&&v.push("");var E=""===v[0]||v[0]&&"/"===v[0].charAt(0);if(y){c.hostname=c.host=E?"":v.length?v.shift():"";var z=!!(c.host&&c.host.indexOf("@")>0)&&c.host.split("@");z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return t=t||c.host&&v.length,t&&!E&&v.unshift(""),v.length?c.pathname=v.join("/"):(c.pathname=null,c.path=null),j.isNull(c.pathname)&&j.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=a.auth||c.auth,c.slashes=c.slashes||a.slashes,c.href=c.format(),c},d.prototype.parseHost=function(){var a=this.host,b=l.exec(a);b&&(b=b[0],":"!==b&&(this.port=b.substr(1)),a=a.substr(0,a.length-b.length)),a&&(this.hostname=a)}},{"./util":159,punycode:112,querystring:115}],159:[function(a,b,c){"use strict";b.exports={isString:function(a){return"string"==typeof a},isObject:function(a){return"object"==typeof a&&null!==a},isNull:function(a){return null===a},isNullOrUndefined:function(a){return null==a}}},{}],160:[function(a,b,c){(function(a){function c(a,b){function c(){if(!e){if(d("throwDeprecation"))throw new Error(b);d("traceDeprecation")?console.trace(b):console.warn(b),e=!0}return a.apply(this,arguments)}if(d("noDeprecation"))return a;var e=!1;return c}function d(b){try{if(!a.localStorage)return!1}catch(a){return!1}var c=a.localStorage[b];return null!=c&&"true"===String(c).toLowerCase()}b.exports=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],161:[function(a,b,c){arguments[4][104][0].apply(c,arguments)},{dup:104}],162:[function(a,b,c){b.exports=function(a){return a&&"object"==typeof a&&"function"==typeof a.copy&&"function"==typeof a.fill&&"function"==typeof a.readUInt8}},{}],163:[function(a,b,c){(function(b,d){function e(a,b){var d={seen:[],stylize:g};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),p(b)?d.showHidden=b:b&&c._extend(d,b),v(d.showHidden)&&(d.showHidden=!1),v(d.depth)&&(d.depth=2),v(d.colors)&&(d.colors=!1),v(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=f),i(d,a,d.depth)}function f(a,b){var c=e.styles[b];return c?"\e["+e.colors[c][0]+"m"+a+"\e["+e.colors[c][1]+"m":a}function g(a,b){return a}function h(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function i(a,b,d){if(a.customInspect&&b&&A(b.inspect)&&b.inspect!==c.inspect&&(!b.constructor||b.constructor.prototype!==b)){var e=b.inspect(d,a);return t(e)||(e=i(a,e,d)),e}var f=j(a,b);if(f)return f;var g=Object.keys(b),p=h(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(b)),z(b)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return k(b);if(0===g.length){if(A(b)){var q=b.name?": "+b.name:"";return a.stylize("[Function"+q+"]","special")}if(w(b))return a.stylize(RegExp.prototype.toString.call(b),"regexp");if(y(b))return a.stylize(Date.prototype.toString.call(b),"date");if(z(b))return k(b)}var r="",s=!1,u=["{","}"];if(o(b)&&(s=!0,u=["[","]"]),A(b)){var v=b.name?": "+b.name:"";r=" [Function"+v+"]"}if(w(b)&&(r=" "+RegExp.prototype.toString.call(b)),y(b)&&(r=" "+Date.prototype.toUTCString.call(b)),z(b)&&(r=" "+k(b)),0===g.length&&(!s||0==b.length))return u[0]+r+u[1];if(d<0)return w(b)?a.stylize(RegExp.prototype.toString.call(b),"regexp"):a.stylize("[Object]","special");a.seen.push(b);var x;return x=s?l(a,b,d,p,g):g.map(function(c){return m(a,b,d,p,c,s)}),a.seen.pop(),n(x,r,u)}function j(a,b){if(v(b))return a.stylize("undefined","undefined");if(t(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return s(b)?a.stylize(""+b,"number"):p(b)?a.stylize(""+b,"boolean"):q(b)?a.stylize("null","null"):void 0}function k(a){return"["+Error.prototype.toString.call(a)+"]"}function l(a,b,c,d,e){for(var f=[],g=0,h=b.length;g<h;++g)F(b,String(g))?f.push(m(a,b,c,d,String(g),!0)):f.push("");return e.forEach(function(e){e.match(/^\d+$/)||f.push(m(a,b,c,d,e,!0))}),f}function m(a,b,c,d,e,f){var g,h,j;if(j=Object.getOwnPropertyDescriptor(b,e)||{value:b[e]},j.get?h=j.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):j.set&&(h=a.stylize("[Setter]","special")),F(d,e)||(g="["+e+"]"),h||(a.seen.indexOf(j.value)<0?(h=q(c)?i(a,j.value,null):i(a,j.value,c-1),h.indexOf("\n")>-1&&(h=f?h.split("\n").map(function(a){return"  "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return"   "+a}).join("\n"))):h=a.stylize("[Circular]","special")),v(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function n(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n  ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function o(a){return Array.isArray(a)}function p(a){return"boolean"==typeof a}function q(a){return null===a}function r(a){return null==a}function s(a){return"number"==typeof a}function t(a){return"string"==typeof a}function u(a){return"symbol"==typeof a}function v(a){return void 0===a}function w(a){return x(a)&&"[object RegExp]"===C(a)}function x(a){return"object"==typeof a&&null!==a}function y(a){return x(a)&&"[object Date]"===C(a)}function z(a){return x(a)&&("[object Error]"===C(a)||a instanceof Error)}function A(a){return"function"==typeof a}function B(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function C(a){return Object.prototype.toString.call(a)}function D(a){return a<10?"0"+a.toString(10):a.toString(10)}function E(){var a=new Date,b=[D(a.getHours()),D(a.getMinutes()),D(a.getSeconds())].join(":");return[a.getDate(),J[a.getMonth()],b].join(" ")}function F(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var G=/%[sdj%]/g;c.format=function(a){if(!t(a)){for(var b=[],c=0;c<arguments.length;c++)b.push(e(arguments[c]));return b.join(" ")}for(var c=1,d=arguments,f=d.length,g=String(a).replace(G,function(a){if("%%"===a)return"%";if(c>=f)return a;switch(a){case"%s":return String(d[c++]);case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(a){return"[Circular]"}default:return a}}),h=d[c];c<f;h=d[++c])g+=q(h)||!x(h)?" "+h:" "+e(h);return g},c.deprecate=function(a,e){function f(){if(!g){if(b.throwDeprecation)throw new Error(e);b.traceDeprecation?console.trace(e):console.error(e),g=!0}return a.apply(this,arguments)}if(v(d.process))return function(){return c.deprecate(a,e).apply(this,arguments)};if(b.noDeprecation===!0)return a;var g=!1;return f};var H,I={};c.debuglog=function(a){if(v(H)&&(H=b.env.NODE_DEBUG||""),a=a.toUpperCase(),!I[a])if(new RegExp("\\b"+a+"\\b","i").test(H)){var d=b.pid;I[a]=function(){var b=c.format.apply(c,arguments);console.error("%s %d: %s",a,d,b)}}else I[a]=function(){};return I[a]},c.inspect=e,e.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},e.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},c.isArray=o,c.isBoolean=p,c.isNull=q,c.isNullOrUndefined=r,c.isNumber=s,c.isString=t,c.isSymbol=u,c.isUndefined=v,c.isRegExp=w,c.isObject=x,c.isDate=y,c.isError=z,c.isFunction=A,c.isPrimitive=B,c.isBuffer=a("./support/isBuffer");var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];c.log=function(){console.log("%s - %s",E(),c.format.apply(c,arguments))},c.inherits=a("inherits"),c._extend=function(a,b){if(!b||!x(b))return a;for(var c=Object.keys(b),d=c.length;d--;)a[c[d]]=b[c[d]];return a}}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":162,_process:111,inherits:161}],164:[function(a,b,c){c.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]/,c.ideographic=/[\u3007\u3021-\u3029\u4E00-\u9FA5]/,c.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]/,c.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]/,c.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]/,c.extender=/[\xB7\u02D0\u02D1\u0387\u0640\u0E46\u0EC6\u3005\u3031-\u3035\u309D\u309E\u30FC-\u30FE]/},{}],165:[function(a,b,c){function d(){for(var a={},b=0;b<arguments.length;b++){var c=arguments[b];for(var d in c)e.call(c,d)&&(a[d]=c[d])}return a}b.exports=d;var e=Object.prototype.hasOwnProperty},{}],166:[function(a,b,c){"use strict";function d(a){return h(a,!0)}function e(a){var b=i.source+"(?:\\s*("+f(a)+")\\s*(?:"+l.join("|")+"))?";if(a.customAttrSurround){for(var c=[],d=a.customAttrSurround.length-1;d>=0;d--)c[d]="(?:("+a.customAttrSurround[d][0].source+")\\s*"+b+"\\s*("+a.customAttrSurround[d][1].source+"))";c.push("(?:"+b+")"),b="(?:"+c.join("|")+")"}return new RegExp("^\\s*"+b)}function f(a){return k.concat(a.customAttrAssign||[]).map(function(a){return"(?:"+a.source+")"}).join("|")}function g(a,b){function c(a){var b=a.match(n);if(b){var c={tagName:b[1],attrs:[]};a=a.slice(b[0].length);for(var d,e;!(d=a.match(o))&&(e=a.match(l));)a=a.slice(e[0].length),c.attrs.push(e);if(d)return c.unarySlash=d[1],c.rest=a.slice(d[0].length),c}}function d(a){var c=a.tagName,d=a.unarySlash;if(b.html5&&"p"===g&&x(c)&&f("",g),!b.html5)for(;g&&t(g);)f("",g);u(c)&&g===c&&f("",c);var e=s(c)||"html"===c&&"head"===g||!!d,h=a.attrs.map(function(a){function c(b){return h=a[b],e=a[b+1],"undefined"!=typeof e?'"':(e=a[b+2],"undefined"!=typeof e?"'":(e=a[b+3],"undefined"==typeof e&&v(d)&&(e=d),""))}var d,e,f,g,h,i,j=7;r&&a[0].indexOf('""')===-1&&(""===a[3]&&delete a[3],""===a[4]&&delete a[4],""===a[5]&&delete a[5]);var k=1;if(b.customAttrSurround)for(var l=0,m=b.customAttrSurround.length;l<m;l++,k+=j)if(d=a[k+1]){i=c(k+2),f=a[k],g=a[k+6];break}return!d&&(d=a[k])&&(i=c(k+1)),{name:d,value:e,customAssign:h||"=",customOpen:f||"",customClose:g||"",quote:i||""}});e||(k.push({tag:c,attrs:h}),g=c,d=""),b.start&&b.start(c,h,e,d)}function f(a,c){var d;if(c){var e=c.toLowerCase();for(d=k.length-1;d>=0&&k[d].tag.toLowerCase()!==e;d--);}else d=0;if(d>=0){for(var f=k.length-1;f>=d;f--)b.end&&b.end(k[f].tag,k[f].attrs,f>d||!a);k.length=d,g=d&&k[d-1].tag}else"br"===c.toLowerCase()?b.start&&b.start(c,[],!0,""):"p"===c.toLowerCase()&&(b.start&&b.start(c,[],!1,"",!0),b.end&&b.end(c,[]))}for(var g,h,i,j,k=[],l=e(b);a;){if(h=a,g&&w(g)){var m=g.toLowerCase(),z=y[m]||(y[m]=new RegExp("([\\s\\S]*?)</"+m+"[^>]*>","i"));a=a.replace(z,function(a,c){return"script"!==m&&"style"!==m&&"noscript"!==m&&(c=c.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),b.chars&&b.chars(c),""}),f("</"+m+">",m)}else{var A=a.indexOf("<");if(0===A){if(/^<!--/.test(a)){var B=a.indexOf("-->");if(B>=0){b.comment&&b.comment(a.substring(4,B)),a=a.substring(B+3),i="";continue}}if(/^<!\[/.test(a)){var C=a.indexOf("]>");if(C>=0){b.comment&&b.comment(a.substring(2,C+1),!0),a=a.substring(C+2),i="";continue}}var D=a.match(q);if(D){b.doctype&&b.doctype(D[0]),a=a.substring(D[0].length),i="";continue}var E=a.match(p);if(E){a=a.substring(E[0].length),E[0].replace(p,f),i="/"+E[1].toLowerCase();continue}var F=c(a);if(F){a=F.rest,d(F),i=F.tagName.toLowerCase();continue}}var G;A>=0?(G=a.substring(0,A),a=a.substring(A)):(G=a,a="");var H=c(a);H?j=H.tagName:(H=a.match(p),j=H?"/"+H[1]:""),b.chars&&b.chars(G,i,j),i=""}if(a===h)throw new Error("Parse Error: "+a)}b.partialMarkup||f()}var h=a("./utils").createMapFromString,i=/([^\s"'<>\/=]+)/,j=/=/,k=[j],l=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],m=function(){var b=a("ncname").source.slice(1,-1);return"((?:"+b+"\\:)?"+b+")"}(),n=new RegExp("^<"+m),o=/^\s*(\/?)>/,p=new RegExp("^<\\/"+m+"[^>]*>"),q=/^<!DOCTYPE [^>]+>/i,r=!1;"x".replace(/x(.)?/g,function(a,b){r=""===b});var s=d("area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),t=d("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,noscript,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,svg,textarea,tt,u,var"),u=d("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),v=d("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),w=d("script,style"),x=d("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),y={};c.HTMLParser=g,c.HTMLtoXML=function(a){var b="";return new g(a,{start:function(a,c,d){b+="<"+a;for(var e=0,f=c.length;e<f;e++)b+=" "+c[e].name+'="'+(c[e].value||"").replace(/"/g,"&#34;")+'"';b+=(d?"/":"")+">"},end:function(a){b+="</"+a+">"},chars:function(a){b+=a},comment:function(a){b+="<!--"+a+"-->"},ignore:function(a){b+=a}}),b},c.HTMLtoDOM=function(a,b){var c={html:!0,head:!0,body:!0,title:!0},d={link:"head",base:"head"};b?b=b.ownerDocument||b.getOwnerDocument&&b.getOwnerDocument()||b:"undefined"!=typeof DOMDocument?b=new DOMDocument:"undefined"!=typeof document&&document.implementation&&document.implementation.createDocument?b=document.implementation.createDocument("","",null):"undefined"!=typeof ActiveX&&(b=new ActiveXObject("Msxml.DOMDocument"));
-var e=[],f=b.documentElement||b.getDocumentElement&&b.getDocumentElement();if(!f&&b.createElement&&!function(){var a=b.createElement("html"),c=b.createElement("head");c.appendChild(b.createElement("title")),a.appendChild(c),a.appendChild(b.createElement("body")),b.appendChild(a)}(),b.getElementsByTagName)for(var h in c)c[h]=b.getElementsByTagName(h)[0];var i=c.body;return new g(a,{start:function(a,f,g){if(c[a])return void(i=c[a]);var h=b.createElement(a);for(var j in f)h.setAttribute(f[j].name,f[j].value);d[a]&&"boolean"!=typeof c[d[a]]?c[d[a]].appendChild(h):i&&i.appendChild&&i.appendChild(h),g||(e.push(h),i=h)},end:function(){e.length-=1,i=e[e.length-1]},chars:function(a){i.appendChild(b.createTextNode(a))},comment:function(){},ignore:function(){}}),b}},{"./utils":168,ncname:107}],167:[function(a,b,c){"use strict";function d(){}function e(){}d.prototype.sort=function(a,b){b=b||0;for(var c=0,d=this.tokens.length;c<d;c++){var e=this.tokens[c],f=a.indexOf(e,b);if(f!==-1){do f!==b&&(a.splice(f,1),a.splice(b,0,e)),b++;while((f=a.indexOf(e,b))!==-1);return this[e].sort(a,b)}}return a},e.prototype={add:function(a){var b=this;a.forEach(function(c){b[c]||(b[c]=[],b[c].processed=0),b[c].push(a)})},createSorter:function(){var a=this,b=new d;return b.tokens=Object.keys(this).sort(function(b,c){var d=a[b].length,e=a[c].length;return d<e?1:d>e?-1:b<c?-1:b>c?1:0}).filter(function(c){if(a[c].processed<a[c].length){var d=new e;return a[c].forEach(function(b){for(var e;(e=b.indexOf(c))!==-1;)b.splice(e,1);b.forEach(function(b){a[b].processed++}),d.add(b.slice(0))}),b[c]=d.createSorter(),!0}return!1}),b}},b.exports=e},{}],168:[function(a,b,c){"use strict";function d(a,b){var c={};return a.forEach(function(a){c[a]=1}),b?function(a){return 1===c[a.toLowerCase()]}:function(a){return 1===c[a]}}c.createMap=d,c.createMapFromString=function(a,b){return d(a.split(/,/),b)}},{}],"html-minifier":[function(a,b,c){"use strict";function d(a){return"\t"===a?"\t":a.replace(/(^|\xA0+)[^\xA0]+/g,"$1 ")}function e(a){return a&&a.replace(/\s+/g,d)}function f(a){return"\t"===a?"\t":a.replace(/^[^\xA0]+/,"").replace(/(\xA0+)[^\xA0]+/g,"$1 ")||" "}function g(a){return"\t"===a?"\t":a.replace(/[^\xA0]+(\xA0+)/g," $1").replace(/[^\xA0]+$/,"")||" "}function h(a,b,c,d,h){var i="",j="";return b.preserveLineBreaks&&(a=a.replace(/^\s*?[\n\r]\s*/,function(){return i="\n",""}).replace(/\s*?[\n\r]\s*$/,function(){return j="\n",""})),c&&(a=a.replace(/^\s+/,!i&&b.conservativeCollapse?f:"")),d&&(a=a.replace(/\s+$/,!j&&b.conservativeCollapse?g:"")),h&&(a=e(a)),i+a+j}function i(a,b,c,d){var e=b&&!ga(b);e&&!d.collapseInlineTagWhitespace&&(e="/"===b.charAt(0)?!ea(b.slice(1)):!fa(b));var f=c&&!ga(c);return f&&!d.collapseInlineTagWhitespace&&(f="/"===c.charAt(0)?!fa(c.slice(1)):!ea(c)),h(a,d,e,f,b&&c)}function j(a){return/^\[if\s[^\]]+]|\[endif]$/.test(a)}function k(a,b){for(var c=0,d=b.ignoreCustomComments.length;c<d;c++)if(b.ignoreCustomComments[c].test(a))return!0;return!1}function l(a,b){var c=b.customEventAttributes;if(c){for(var d=c.length;d--;)if(c[d].test(a))return!0;return!1}return/^on[a-z]{3,}$/.test(a)}function m(a){return/^[^ \t\n\f\r"'`=<>]+$/.test(a)}function n(a,b){for(var c=a.length;c--;)if(a[c].name.toLowerCase()===b)return!0;return!1}function o(a,b,c,d){return c=c?ca(c.toLowerCase()):"","script"===a&&"language"===b&&"javascript"===c||"form"===a&&"method"===b&&"get"===c||"input"===a&&"type"===b&&"text"===c||"script"===a&&"charset"===b&&!n(d,"src")||"a"===a&&"name"===b&&n(d,"id")||"area"===a&&"shape"===b&&"rect"===c}function p(a){return a=ca(a.split(/;/,2)[0]).toLowerCase(),""===a||ha(a)}function q(a,b){if("script"!==a)return!1;for(var c=0,d=b.length;c<d;c++){var e=b[c].name.toLowerCase();if("type"===e)return p(b[c].value)}return!0}function r(a){return a=ca(a).toLowerCase(),""===a||"text/css"===a}function s(a,b){if("style"!==a)return!1;for(var c=0,d=b.length;c<d;c++){var e=b[c].name.toLowerCase();if("type"===e)return r(b[c].value)}return!0}function t(a,b){return ia(a)||"draggable"===a&&!ja(b)}function u(a,b){return/^(?:a|area|link|base)$/.test(b)&&"href"===a||"img"===b&&/^(?:src|longdesc|usemap)$/.test(a)||"object"===b&&/^(?:classid|codebase|data|usemap)$/.test(a)||"q"===b&&"cite"===a||"blockquote"===b&&"cite"===a||("ins"===b||"del"===b)&&"cite"===a||"form"===b&&"action"===a||"input"===b&&("src"===a||"usemap"===a)||"head"===b&&"profile"===a||"script"===b&&("src"===a||"for"===a)}function v(a,b){return/^(?:a|area|object|button)$/.test(b)&&"tabindex"===a||"input"===b&&("maxlength"===a||"tabindex"===a)||"select"===b&&("size"===a||"tabindex"===a)||"textarea"===b&&/^(?:rows|cols|tabindex)$/.test(a)||"colgroup"===b&&"span"===a||"col"===b&&"span"===a||("th"===b||"td"===b)&&("rowspan"===a||"colspan"===a)}function w(a,b,c){if("link"!==a)return!1;for(var d=0,e=b.length;d<e;d++)if("rel"===b[d].name&&b[d].value===c)return!0}function x(a,b,c){return"media"===c&&(w(a,b,"stylesheet")||s(a,b))}function y(a,b){return"srcset"===a&&ka(b)}function z(a,b,c,d,f){if(c&&l(b,d))return c=ca(c).replace(/^javascript:\s*/i,""),d.minifyJS(c,!0);if("class"===b)return c=ca(c),c=d.sortClassName?d.sortClassName(c):e(c);if(u(b,a))return c=ca(c),w(a,f,"canonical")?c:d.minifyURLs(c);if(v(b,a))return ca(c);if("style"===b)return c=ca(c),c&&(/;$/.test(c)&&!/&#?[0-9a-zA-Z]+;$/.test(c)&&(c=c.replace(/\s*;$/,"")),c=C(d.minifyCSS(B(c)))),c;if(y(b,a))c=ca(c).split(/\s+,\s*|\s*,\s+/).map(function(a){var b=a,c="",e=a.match(/\s+([1-9][0-9]*w|[0-9]+(?:\.[0-9]+)?x)$/);if(e){b=b.slice(0,-e[0].length);var f=+e[1].slice(0,-1),g=e[1].slice(-1);1===f&&"x"===g||(c=" "+f+g)}return d.minifyURLs(b)+c}).join(", ");else if(A(a,f)&&"content"===b)c=c.replace(/\s+/g,"").replace(/[0-9]+\.[0-9]+/g,function(a){return(+a).toString()});else if(c&&d.customAttrCollapse&&d.customAttrCollapse.test(b))c=c.replace(/\n+|\r+|\s{2,}/g,"");else if("script"===a&&"type"===b)c=ca(c.replace(/\s*;\s*/g,";"));else if(x(a,f,b))return c=ca(c),E(d.minifyCSS(D(c)));return c}function A(a,b){if("meta"!==a)return!1;for(var c=0,d=b.length;c<d;c++)if("name"===b[c].name&&"viewport"===b[c].value)return!0}function B(a){return"*{"+a+"}"}function C(a){var b=a.match(/^\*\{([\s\S]*)\}$/);return b?b[1]:a}function D(a){return"@media "+a+"{a{top:0}}"}function E(a){var b=a.match(/^@media ([\s\S]*?)\s*{[\s\S]*}$/);return b?b[1]:a}function F(a,b){return b.processConditionalComments?a.replace(/^(\[if\s[^\]]+]>)([\s\S]*?)(<!\[endif])$/,function(a,c,d,e){return c+V(d,b,!0)+e}):a}function G(a,b,c){for(var d=0,e=c.length;d<e;d++)if("type"===c[d].name.toLowerCase()&&b.processScripts.indexOf(c[d].value)>-1)return V(a,b);return a}function H(a,b){switch(a){case"html":case"head":return!0;case"body":return!na(b);case"colgroup":return"col"===b;case"tbody":return"tr"===b}return!1}function I(a,b){switch(b){case"colgroup":return"colgroup"===a;case"tbody":return va(a)}return!1}function J(a,b){switch(a){case"html":case"head":case"body":case"colgroup":case"caption":return!0;case"li":case"optgroup":case"tr":return b===a;case"dt":case"dd":return oa(b);case"p":return pa(b);case"rb":case"rt":case"rp":return ra(b);case"rtc":return sa(b);case"option":return ta(b);case"thead":case"tbody":return ua(b);case"tfoot":return"tbody"===b;case"td":case"th":return wa(b)}return!1}function K(a,b,c,d){var e=!c||/^\s*$/.test(c);return!!e&&("function"==typeof d.removeEmptyAttributes?d.removeEmptyAttributes(b,a):"input"===a&&"value"===b||Ca.test(b))}function L(a,b){for(var c=b.length-1;c>=0;c--)if(b[c].name===a)return!0;return!1}function M(a,b){switch(a){case"textarea":return!1;case"audio":case"script":case"video":if(L("src",b))return!1;break;case"iframe":if(L("src",b)||L("srcdoc",b))return!1;break;case"object":if(L("data",b))return!1;break;case"applet":if(L("code",b))return!1}return!0}function N(a){return!/^(?:script|style|pre|textarea)$/.test(a)}function O(a){return!/^(?:pre|textarea)$/.test(a)}function P(a,b,c,d){var e=d.caseSensitive?a.name:a.name.toLowerCase(),f=a.value;if(d.decodeEntities&&f&&(f=Y(f,{isAttributeValue:!0})),!(d.removeRedundantAttributes&&o(c,e,f,b)||d.removeScriptTypeAttributes&&"script"===c&&"type"===e&&p(f)||d.removeStyleLinkTypeAttributes&&("style"===c||"link"===c)&&"type"===e&&r(f)||(f=z(c,e,f,d,b),d.removeEmptyAttributes&&K(c,e,f,d))))return d.decodeEntities&&f&&(f=f.replace(/&(#?[0-9a-zA-Z]+;)/g,"&amp;$1")),{attr:a,name:e,value:f}}function Q(a,b,c,d,e){var f,g,h=a.name,i=a.value,j=a.attr,k=j.quote;if("undefined"==typeof i||c.removeAttributeQuotes&&!~i.indexOf(e)&&m(i))g=!d||b||/\/$/.test(i)?i+" ":i;else{if(!c.preventAttributesEscaping){if("undefined"==typeof c.quoteCharacter){var l=(i.match(/'/g)||[]).length,n=(i.match(/"/g)||[]).length;k=l<n?"'":'"'}else k="'"===c.quoteCharacter?"'":'"';i='"'===k?i.replace(/"/g,"&#34;"):i.replace(/'/g,"&#39;")}g=k+i+k,d||c.removeTagWhitespace||(g+=" ")}return"undefined"==typeof i||c.collapseBooleanAttributes&&t(h.toLowerCase(),i.toLowerCase())?(f=h,d||(f+=" ")):f=h+j.customAssign+g,j.customOpen+f+j.customClose}function R(a){return a}function S(a){["html5","includeAutoGeneratedTags"].forEach(function(b){b in a||(a[b]=!0)}),"function"!=typeof a.log&&(a.log=R);for(var b=["canCollapseWhitespace","canTrimWhitespace"],c=0,d=b.length;c<d;c++)a[b[c]]||(a[b[c]]=function(){return!1});if("ignoreCustomComments"in a||(a.ignoreCustomComments=[/^!/]),"ignoreCustomFragments"in a||(a.ignoreCustomFragments=[/<%[\s\S]*?%>/,/<\?[\s\S]*?\?>/]),a.minifyURLs||(a.minifyURLs=R),"function"!=typeof a.minifyURLs){var e=a.minifyURLs;"string"==typeof e?e={site:e}:"object"!=typeof e&&(e={}),a.minifyURLs=function(b){try{return $.relate(b,e)}catch(c){return a.log(c),b}}}if(a.minifyJS||(a.minifyJS=R),"function"!=typeof a.minifyJS){var f=a.minifyJS;"object"!=typeof f&&(f={}),f.fromString=!0,(f.output||(f.output={})).inline_script=!0,a.minifyJS=function(b,c){var d=b.match(/^\s*<!--.*/),e=d?b.slice(d[0].length).replace(/\n\s*-->\s*$/,""):b;try{return c&&(e=Da+e+Ea),e=aa.minify(e,f).code,c&&(e=e.slice(Da.length,-Ea.length)),/;$/.test(e)&&(e=e.slice(0,-1)),e}catch(c){return a.log(c),b}}}if(a.minifyCSS||(a.minifyCSS=R),"function"!=typeof a.minifyCSS){var g=a.minifyCSS;"object"!=typeof g&&(g={}),a.minifyCSS=function(b){b=b.replace(/(url\s*\(\s*)("|'|)(.*?)\2(\s*\))/gi,function(b,c,d,e,f){return c+d+a.minifyURLs(e)+d+f});try{return new X(g).minify(b).styles}catch(c){return a.log(c),b}}}}function T(a){var b;do b=Math.random().toString(36).replace(/^0\.[0-9]*/,"");while(~a.indexOf(b));return b}function U(a,b,c,d){function e(a){return a.map(function(a){return b.caseSensitive?a.name:a.name.toLowerCase()})}function f(a,b){return!b||a.indexOf(b)===-1}function g(a){return f(a,c)&&f(a,d)}function h(a){var c,d;new Z(a,{start:function(a,f){i&&(i[a]||(i[a]=new _),i[a].add(e(f).filter(g)));for(var h=0,k=f.length;h<k;h++){var l=f[h];j&&"class"===(b.caseSensitive?l.name:l.name.toLowerCase())?j.add(ca(l.value).split(/\s+/).filter(g)):b.processScripts&&"type"===l.name.toLowerCase()&&(c=a,d=l.value)}},end:function(){c=""},chars:function(a){b.processScripts&&Fa(c)&&b.processScripts.indexOf(d)>-1&&h(a)}})}var i=b.sortAttributes&&Object.create(null),j=b.sortClassName&&new _,k=b.log;if(b.log=null,b.sortAttributes=!1,b.sortClassName=!1,h(V(a,b)),b.log=k,i){var l=Object.create(null);for(var m in i)l[m]=i[m].createSorter();b.sortAttributes=function(a,b){var c=l[a];if(c){var d=Object.create(null),f=e(b);f.forEach(function(a,c){(d[a]||(d[a]=[])).push(b[c])}),c.sort(f).forEach(function(a,c){b[c]=d[a].shift()})}}}if(j){var n=j.createSorter();b.sortClassName=function(a){return n.sort(a.split(/\s+/)).join(" ")}}}function V(a,b,c){function d(a){return a.replace(w,function(a,b,c){var d=R[+c];return d[1]+v+c+d[2]})}function f(a,c){return N(a)||b.canCollapseWhitespace(a,c)}function g(a,c){return O(a)||b.canTrimWhitespace(a,c)}function l(){for(var a=x.length-1;a>0&&!/^<[^\/!]/.test(x[a]);)a--;x.length=Math.max(0,a)}function m(){for(var a=x.length-1;a>0&&!/^<\//.test(x[a]);)a--;x.length=Math.max(0,a)}function n(a,c){for(var d=null;a>=0&&g(d);a--){var e=x[a],f=e.match(/^<\/([\w:-]+)>$/);if(f)d=f[1];else if(/>$/.test(e)||(x[a]=i(e,null,c,b)))break}}function o(a){var b=x.length-1;if(x.length>1){var c=x[x.length-1];/^(?:<!|$)/.test(c)&&c.indexOf(u)===-1&&b--}n(b,a)}b=b||{};var p=[];S(b),b.collapseWhitespace&&(a=h(a,b,!0,!0));var r,t,u,v,w,x=[],y="",z="",A=[],B=[],C=[],D="",E="",K=Date.now(),L=[],R=[];a=a.replace(/<!-- htmlmin:ignore -->([\s\S]*?)<!-- htmlmin:ignore -->/g,function(c,d){if(!u){u=T(a);var e=new RegExp("^"+u+"([0-9]+)$");b.ignoreCustomComments?b.ignoreCustomComments.push(e):b.ignoreCustomComments=[e]}var f="<!--"+u+L.length+"-->";return L.push(d),f});var V=b.ignoreCustomFragments.map(function(a){return a.source});if(V.length){var X=new RegExp("\\s*(?:"+V.join("|")+")+\\s*","g");a=a.replace(X,function(c){if(!v){v=T(a),w=new RegExp("(\\s*)"+v+"([0-9]+)(\\s*)","g");var e=b.minifyCSS;e&&(b.minifyCSS=function(a){return e(d(a))});var f=b.minifyJS;f&&(b.minifyJS=function(a,b){return f(d(a),b)})}var g=v+R.length;return R.push(/^(\s*)[\s\S]*?(\s*)$/.exec(c)),"\t"+g+"\t"})}(b.sortAttributes&&"function"!=typeof b.sortAttributes||b.sortClassName&&"function"!=typeof b.sortClassName)&&U(a,b,u,v),new Z(a,{partialMarkup:c,html5:b.html5,start:function(a,c,d,e,h){var i=a.toLowerCase();if("svg"===i){p.push(b);var j={};for(var k in b)j[k]=b[k];j.keepClosingSlash=!0,j.caseSensitive=!0,b=j}a=b.caseSensitive?a:i,z=a,r=a,fa(a)||(y=""),t=!1,A=c;var n=b.removeOptionalTags;if(n){var q=Ba(a);q&&H(D,a)&&l(),D="",q&&J(E,a)&&(m(),n=!I(E,a)),E=""}b.collapseWhitespace&&(B.length||o(a),g(a,c)||B.push(a),f(a,c)||C.push(a));var s="<"+a,u=e&&b.keepClosingSlash;x.push(s),b.sortAttributes&&b.sortAttributes(a,c);for(var w=[],F=c.length,G=!0;--F>=0;){var K=P(c[F],c,a,b);K&&(w.unshift(Q(K,u,b,G,v)),G=!1)}w.length>0?(x.push(" "),x.push.apply(x,w)):n&&la(a)&&(D=a),x.push(x.pop()+(u?"/":"")+">"),h&&!b.includeAutoGeneratedTags&&(l(),D="")},end:function(a,c,d){var e=a.toLowerCase();"svg"===e&&(b=p.pop()),a=b.caseSensitive?a:e,b.collapseWhitespace&&(B.length?a===B[B.length-1]&&B.pop():o("/"+a),C.length&&a===C[C.length-1]&&C.pop());var f=!1;a===z&&(z="",f=!t),b.removeOptionalTags&&(f&&xa(D)&&l(),D="",!Ba(a)||!E||Aa(E)||"p"===E&&qa(a)||m(),E=ma(a)?a:""),b.removeEmptyElements&&f&&M(a,c)?(l(),D="",E=""):(d&&!b.includeAutoGeneratedTags?E="":x.push("</"+a+">"),r="/"+a,ea(a)?f&&(y+="|"):y="")},chars:function(a,c,d){if(c=""===c?"comment":c,d=""===d?"comment":d,b.decodeEntities&&a&&!Fa(z)&&(a=Y(a)),b.collapseWhitespace){if(!B.length){if("comment"===c){var e=x[x.length-1];if(e.indexOf(u)===-1&&(e||(c=r),x.length>1&&(!e||!b.conservativeCollapse&&/ $/.test(y)))){var f=x.length-2;x[f]=x[f].replace(/\s+$/,function(b){return a=b+a,""})}}if(c)if("/nobr"===c||"wbr"===c){if(/^\s/.test(a)){for(var g=x.length-1;g>0&&0!==x[g].lastIndexOf("<"+c);)g--;n(g-1,"br")}}else fa("/"===c.charAt(0)?c.slice(1):c)&&(a=h(a,b,/(?:^|\s)$/.test(y)));a=c||d?i(a,c,d,b):h(a,b,!0,!0),!a&&/\s$/.test(y)&&c&&"/"===c.charAt(0)&&n(x.length-1,d)}C.length||"html"===d||c&&d||(a=h(a,b,!1,!1,!0))}b.processScripts&&Fa(z)&&(a=G(a,b,A)),q(z,A)&&(a=b.minifyJS(a)),s(z,A)&&(a=b.minifyCSS(a)),b.removeOptionalTags&&a&&(("html"===D||"body"===D&&!/^\s/.test(a))&&l(),D="",(ya(E)||za(E)&&!/^\s/.test(a))&&m(),E=""),r=/^\s*$/.test(a)?c:"comment",b.decodeEntities&&a&&!Fa(z)&&(a=a.replace(/&(#?[0-9a-zA-Z]+;)/g,"&amp$1").replace(/</g,"&lt;")),y+=a,a&&(t=!0),x.push(a)},comment:function(a,c){var d=c?"<!":"<!--",e=c?">":"-->";a=j(a)?d+F(a,b)+e:b.removeComments?k(a,b)?"<!--"+a+"-->":"":d+a+e,b.removeOptionalTags&&a&&(D="",E=""),x.push(a)},doctype:function(a){x.push(b.useShortDoctype?"<!DOCTYPE html>":e(a))},customAttrAssign:b.customAttrAssign,customAttrSurround:b.customAttrSurround}),b.removeOptionalTags&&(xa(D)&&l(),E&&!Aa(E)&&m()),b.collapseWhitespace&&o("br");var $=W(x,b);return w&&($=$.replace(w,function(a,c,d,e){var f=R[+d][0];return b.collapseWhitespace?("\t"!==c&&(f=c+f),"\t"!==e&&(f+=e),h(f,{preserveLineBreaks:b.preserveLineBreaks,conservativeCollapse:!b.trimCustomFragments},/^\s/.test(f),/\s$/.test(f))):f})),u&&($=$.replace(new RegExp("<!--"+u+"([0-9]+)-->","g"),function(a,b){return L[+b]})),b.log("minified in: "+(Date.now()-K)+"ms"),$}function W(a,b){var c,d=b.maxLineLength;if(d){for(var e,f=[],g="",i=0,j=a.length;i<j;i++)e=a[i],g.length+e.length<d?g+=e:(f.push(g.replace(/^\n/,"")),g=e);f.push(g),c=f.join("\n")}else c=a.join("");return b.collapseWhitespace?h(c,b,!0,!0):c}var X=a("clean-css"),Y=a("he").decode,Z=a("./htmlparser").HTMLParser,$=a("relateurl"),_=a("./tokenchain"),aa=a("uglify-js"),ba=a("./utils"),ca=String.prototype.trim?function(a){return"string"!=typeof a?a:a.trim()}:function(a){return"string"!=typeof a?a:a.replace(/^\s+/,"").replace(/\s+$/,"")},da=ba.createMapFromString,ea=da("a,abbr,acronym,b,bdi,bdo,big,button,cite,code,del,dfn,em,font,i,ins,kbd,mark,math,nobr,q,rt,rp,s,samp,small,span,strike,strong,sub,sup,svg,time,tt,u,var"),fa=da("a,abbr,acronym,b,big,del,em,font,i,ins,kbd,mark,nobr,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var"),ga=da("comment,img,input,wbr"),ha=ba.createMap(["text/javascript","text/ecmascript","text/jscript","application/javascript","application/x-javascript","application/ecmascript"]),ia=da("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),ja=da("true,false"),ka=da("img,source"),la=da("html,head,body,colgroup,tbody"),ma=da("html,head,body,li,dt,dd,p,rb,rt,rtc,rp,optgroup,option,colgroup,caption,thead,tbody,tfoot,tr,td,th"),na=da("meta,link,script,style,template,noscript"),oa=da("dt,dd"),pa=da("address,article,aside,blockquote,details,div,dl,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,main,menu,nav,ol,p,pre,section,table,ul"),qa=da("a,audio,del,ins,map,noscript,video"),ra=da("rb,rt,rtc,rp"),sa=da("rb,rtc,rp"),ta=da("option,optgroup"),ua=da("tbody,tfoot"),va=da("thead,tbody,tfoot"),wa=da("td,th"),xa=da("html,head,body"),ya=da("html,body"),za=da("head,colgroup,caption"),Aa=da("dt,thead"),Ba=da("a,abbr,acronym,address,applet,area,article,aside,audio,b,base,basefont,bdi,bdo,bgsound,big,blink,blockquote,body,br,button,canvas,caption,center,cite,code,col,colgroup,command,content,data,datalist,dd,del,details,dfn,dialog,dir,div,dl,dt,element,em,embed,fieldset,figcaption,figure,font,footer,form,frame,frameset,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,i,iframe,image,img,input,ins,isindex,kbd,keygen,label,legend,li,link,listing,main,map,mark,marquee,menu,menuitem,meta,meter,multicol,nav,nobr,noembed,noframes,noscript,object,ol,optgroup,option,output,p,param,picture,plaintext,pre,progress,q,rp,rt,rtc,ruby,s,samp,script,section,select,shadow,small,source,spacer,span,strike,strong,style,sub,summary,sup,table,tbody,td,template,textarea,tfoot,th,thead,time,title,tr,track,tt,u,ul,var,video,wbr,xmp"),Ca=new RegExp("^(?:class|id|style|title|lang|dir|on(?:focus|blur|change|click|dblclick|mouse(?:down|up|over|move|out)|key(?:press|down|up)))$"),Da="!function(){",Ea="}();",Fa=da("script,style");c.minify=function(a,b){return V(a,b)}},{"./htmlparser":166,"./tokenchain":167,"./utils":168,"clean-css":7,he:101,relateurl:125,"uglify-js":157}]},{},["html-minifier"]);
\ No newline at end of file
+var e=[],f=b.documentElement||b.getDocumentElement&&b.getDocumentElement();if(!f&&b.createElement&&!function(){var a=b.createElement("html"),c=b.createElement("head");c.appendChild(b.createElement("title")),a.appendChild(c),a.appendChild(b.createElement("body")),b.appendChild(a)}(),b.getElementsByTagName)for(var h in c)c[h]=b.getElementsByTagName(h)[0];var i=c.body;return new g(a,{start:function(a,f,g){if(c[a])return void(i=c[a]);var h=b.createElement(a);for(var j in f)h.setAttribute(f[j].name,f[j].value);d[a]&&"boolean"!=typeof c[d[a]]?c[d[a]].appendChild(h):i&&i.appendChild&&i.appendChild(h),g||(e.push(h),i=h)},end:function(){e.length-=1,i=e[e.length-1]},chars:function(a){i.appendChild(b.createTextNode(a))},comment:function(){},ignore:function(){}}),b}},{"./utils":168,ncname:107}],167:[function(a,b,c){"use strict";function d(){}function e(){}d.prototype.sort=function(a,b){b=b||0;for(var c=0,d=this.tokens.length;c<d;c++){var e=this.tokens[c],f=a.indexOf(e,b);if(f!==-1){do f!==b&&(a.splice(f,1),a.splice(b,0,e)),b++;while((f=a.indexOf(e,b))!==-1);return this[e].sort(a,b)}}return a},e.prototype={add:function(a){var b=this;a.forEach(function(c){b[c]||(b[c]=[],b[c].processed=0),b[c].push(a)})},createSorter:function(){var a=this,b=new d;return b.tokens=Object.keys(this).sort(function(b,c){var d=a[b].length,e=a[c].length;return d<e?1:d>e?-1:b<c?-1:b>c?1:0}).filter(function(c){if(a[c].processed<a[c].length){var d=new e;return a[c].forEach(function(b){for(var e;(e=b.indexOf(c))!==-1;)b.splice(e,1);b.forEach(function(b){a[b].processed++}),d.add(b.slice(0))}),b[c]=d.createSorter(),!0}return!1}),b}},b.exports=e},{}],168:[function(a,b,c){"use strict";function d(a,b){var c={};return a.forEach(function(a){c[a]=1}),b?function(a){return 1===c[a.toLowerCase()]}:function(a){return 1===c[a]}}c.createMap=d,c.createMapFromString=function(a,b){return d(a.split(/,/),b)}},{}],"html-minifier":[function(a,b,c){"use strict";function d(a){return a&&a.replace(/\s+/g,function(a){return"\t"===a?"\t":a.replace(/(^|\xA0+)[^\xA0]+/g,"$1 ")})}function e(a,b,c,e,f){var g="",h="";return b.preserveLineBreaks&&(a=a.replace(/^\s*?[\n\r]\s*/,function(){return g="\n",""}).replace(/\s*?[\n\r]\s*$/,function(){return h="\n",""})),c&&(a=a.replace(/^\s+/,function(a){var c=!g&&b.conservativeCollapse;return c&&"\t"===a?"\t":a.replace(/^[^\xA0]+/,"").replace(/(\xA0+)[^\xA0]+/g,"$1 ")||(c?" ":"")})),e&&(a=a.replace(/\s+$/,function(a){var c=!h&&b.conservativeCollapse;return c&&"\t"===a?"\t":a.replace(/[^\xA0]+(\xA0+)/g," $1").replace(/[^\xA0]+$/,"")||(c?" ":"")})),f&&(a=d(a)),g+a+h}function f(a,b,c,d){var f=b&&!da(b);f&&!d.collapseInlineTagWhitespace&&(f="/"===b.charAt(0)?!ba(b.slice(1)):!ca(b));var g=c&&!da(c);return g&&!d.collapseInlineTagWhitespace&&(g="/"===c.charAt(0)?!ca(c.slice(1)):!ba(c)),e(a,d,f,g,b&&c)}function g(a){return/^\[if\s[^\]]+]|\[endif]$/.test(a)}function h(a,b){for(var c=0,d=b.ignoreCustomComments.length;c<d;c++)if(b.ignoreCustomComments[c].test(a))return!0;return!1}function i(a,b){var c=b.customEventAttributes;if(c){for(var d=c.length;d--;)if(c[d].test(a))return!0;return!1}return/^on[a-z]{3,}$/.test(a)}function j(a){return/^[^ \t\n\f\r"'`=<>]+$/.test(a)}function k(a,b){for(var c=a.length;c--;)if(a[c].name.toLowerCase()===b)return!0;return!1}function l(a,b,c,d){return c=c?_(c.toLowerCase()):"","script"===a&&"language"===b&&"javascript"===c||"form"===a&&"method"===b&&"get"===c||"input"===a&&"type"===b&&"text"===c||"script"===a&&"charset"===b&&!k(d,"src")||"a"===a&&"name"===b&&k(d,"id")||"area"===a&&"shape"===b&&"rect"===c}function m(a){return a=_(a.split(/;/,2)[0]).toLowerCase(),""===a||ea(a)}function n(a,b){if("script"!==a)return!1;for(var c=0,d=b.length;c<d;c++){var e=b[c].name.toLowerCase();if("type"===e)return m(b[c].value)}return!0}function o(a){return a=_(a).toLowerCase(),""===a||"text/css"===a}function p(a,b){if("style"!==a)return!1;for(var c=0,d=b.length;c<d;c++){var e=b[c].name.toLowerCase();if("type"===e)return o(b[c].value)}return!0}function q(a,b){return fa(a)||"draggable"===a&&!ga(b)}function r(a,b){return/^(?:a|area|link|base)$/.test(b)&&"href"===a||"img"===b&&/^(?:src|longdesc|usemap)$/.test(a)||"object"===b&&/^(?:classid|codebase|data|usemap)$/.test(a)||"q"===b&&"cite"===a||"blockquote"===b&&"cite"===a||("ins"===b||"del"===b)&&"cite"===a||"form"===b&&"action"===a||"input"===b&&("src"===a||"usemap"===a)||"head"===b&&"profile"===a||"script"===b&&("src"===a||"for"===a)}function s(a,b){return/^(?:a|area|object|button)$/.test(b)&&"tabindex"===a||"input"===b&&("maxlength"===a||"tabindex"===a)||"select"===b&&("size"===a||"tabindex"===a)||"textarea"===b&&/^(?:rows|cols|tabindex)$/.test(a)||"colgroup"===b&&"span"===a||"col"===b&&"span"===a||("th"===b||"td"===b)&&("rowspan"===a||"colspan"===a)}function t(a,b,c){if("link"!==a)return!1;for(var d=0,e=b.length;d<e;d++)if("rel"===b[d].name&&b[d].value===c)return!0}function u(a,b,c){return"media"===c&&(t(a,b,"stylesheet")||p(a,b))}function v(a,b){return"srcset"===a&&ha(b)}function w(a,b,c,e,f){if(c&&i(b,e))return c=_(c).replace(/^javascript:\s*/i,""),e.minifyJS(c,!0);if("class"===b)return c=_(c),c=e.sortClassName?e.sortClassName(c):d(c);if(r(b,a))return c=_(c),t(a,f,"canonical")?c:e.minifyURLs(c);if(s(b,a))return _(c);if("style"===b)return c=_(c),c&&(/;$/.test(c)&&!/&#?[0-9a-zA-Z]+;$/.test(c)&&(c=c.replace(/\s*;$/,"")),c=z(e.minifyCSS(y(c)))),c;if(v(b,a))c=_(c).split(/\s+,\s*|\s*,\s+/).map(function(a){var b=a,c="",d=a.match(/\s+([1-9][0-9]*w|[0-9]+(?:\.[0-9]+)?x)$/);if(d){b=b.slice(0,-d[0].length);var f=+d[1].slice(0,-1),g=d[1].slice(-1);1===f&&"x"===g||(c=" "+f+g)}return e.minifyURLs(b)+c}).join(", ");else if(x(a,f)&&"content"===b)c=c.replace(/\s+/g,"").replace(/[0-9]+\.[0-9]+/g,function(a){return(+a).toString()});else if(c&&e.customAttrCollapse&&e.customAttrCollapse.test(b))c=c.replace(/\n+|\r+|\s{2,}/g,"");else if("script"===a&&"type"===b)c=_(c.replace(/\s*;\s*/g,";"));else if(u(a,f,b))return c=_(c),B(e.minifyCSS(A(c)));return c}function x(a,b){if("meta"!==a)return!1;for(var c=0,d=b.length;c<d;c++)if("name"===b[c].name&&"viewport"===b[c].value)return!0}function y(a){return"*{"+a+"}"}function z(a){var b=a.match(/^\*\{([\s\S]*)\}$/);return b?b[1]:a}function A(a){return"@media "+a+"{a{top:0}}"}function B(a){var b=a.match(/^@media ([\s\S]*?)\s*{[\s\S]*}$/);return b?b[1]:a}function C(a,b){return b.processConditionalComments?a.replace(/^(\[if\s[^\]]+]>)([\s\S]*?)(<!\[endif])$/,function(a,c,d,e){return c+S(d,b,!0)+e}):a}function D(a,b,c){for(var d=0,e=c.length;d<e;d++)if("type"===c[d].name.toLowerCase()&&b.processScripts.indexOf(c[d].value)>-1)return S(a,b);return a}function E(a,b){switch(a){case"html":case"head":return!0;case"body":return!ka(b);case"colgroup":return"col"===b;case"tbody":return"tr"===b}return!1}function F(a,b){switch(b){case"colgroup":return"colgroup"===a;case"tbody":return sa(a)}return!1}function G(a,b){switch(a){case"html":case"head":case"body":case"colgroup":case"caption":return!0;case"li":case"optgroup":case"tr":return b===a;case"dt":case"dd":return la(b);case"p":return ma(b);case"rb":case"rt":case"rp":return oa(b);case"rtc":return pa(b);case"option":return qa(b);case"thead":case"tbody":return ra(b);case"tfoot":return"tbody"===b;case"td":case"th":return ta(b)}return!1}function H(a,b,c,d){var e=!c||/^\s*$/.test(c);return!!e&&("function"==typeof d.removeEmptyAttributes?d.removeEmptyAttributes(b,a):"input"===a&&"value"===b||za.test(b))}function I(a,b){for(var c=b.length-1;c>=0;c--)if(b[c].name===a)return!0;return!1}function J(a,b){switch(a){case"textarea":return!1;case"audio":case"script":case"video":if(I("src",b))return!1;break;case"iframe":if(I("src",b)||I("srcdoc",b))return!1;break;case"object":if(I("data",b))return!1;break;case"applet":if(I("code",b))return!1}return!0}function K(a){return!/^(?:script|style|pre|textarea)$/.test(a)}function L(a){return!/^(?:pre|textarea)$/.test(a)}function M(a,b,c,d){var e=d.caseSensitive?a.name:a.name.toLowerCase(),f=a.value;if(d.decodeEntities&&f&&(f=V(f,{isAttributeValue:!0})),!(d.removeRedundantAttributes&&l(c,e,f,b)||d.removeScriptTypeAttributes&&"script"===c&&"type"===e&&m(f)||d.removeStyleLinkTypeAttributes&&("style"===c||"link"===c)&&"type"===e&&o(f)||(f=w(c,e,f,d,b),d.removeEmptyAttributes&&H(c,e,f,d))))return d.decodeEntities&&f&&(f=f.replace(/&(#?[0-9a-zA-Z]+;)/g,"&amp;$1")),{attr:a,name:e,value:f}}function N(a,b,c,d,e){var f,g,h=a.name,i=a.value,k=a.attr,l=k.quote;if("undefined"==typeof i||c.removeAttributeQuotes&&!~i.indexOf(e)&&j(i))g=!d||b||/\/$/.test(i)?i+" ":i;else{if(!c.preventAttributesEscaping){if("undefined"==typeof c.quoteCharacter){var m=(i.match(/'/g)||[]).length,n=(i.match(/"/g)||[]).length;l=m<n?"'":'"'}else l="'"===c.quoteCharacter?"'":'"';i='"'===l?i.replace(/"/g,"&#34;"):i.replace(/'/g,"&#39;")}g=l+i+l,d||c.removeTagWhitespace||(g+=" ")}return"undefined"==typeof i||c.collapseBooleanAttributes&&q(h.toLowerCase(),i.toLowerCase())?(f=h,d||(f+=" ")):f=h+k.customAssign+g,k.customOpen+f+k.customClose}function O(a){return a}function P(a){["html5","includeAutoGeneratedTags"].forEach(function(b){b in a||(a[b]=!0)}),"function"!=typeof a.log&&(a.log=O);for(var b=["canCollapseWhitespace","canTrimWhitespace"],c=0,d=b.length;c<d;c++)a[b[c]]||(a[b[c]]=function(){return!1});if("ignoreCustomComments"in a||(a.ignoreCustomComments=[/^!/]),"ignoreCustomFragments"in a||(a.ignoreCustomFragments=[/<%[\s\S]*?%>/,/<\?[\s\S]*?\?>/]),a.minifyURLs||(a.minifyURLs=O),"function"!=typeof a.minifyURLs){var e=a.minifyURLs;"string"==typeof e?e={site:e}:"object"!=typeof e&&(e={}),a.minifyURLs=function(b){try{return X.relate(b,e)}catch(c){return a.log(c),b}}}if(a.minifyJS||(a.minifyJS=O),"function"!=typeof a.minifyJS){var f=a.minifyJS;"object"!=typeof f&&(f={}),f.fromString=!0,(f.output||(f.output={})).inline_script=!0,a.minifyJS=function(b,c){var d=b.match(/^\s*<!--.*/),e=d?b.slice(d[0].length).replace(/\n\s*-->\s*$/,""):b;try{return c&&(e=Aa+e+Ba),e=Z.minify(e,f).code,c&&(e=e.slice(Aa.length,-Ba.length)),/;$/.test(e)&&(e=e.slice(0,-1)),e}catch(c){return a.log(c),b}}}if(a.minifyCSS||(a.minifyCSS=O),"function"!=typeof a.minifyCSS){var g=a.minifyCSS;"object"!=typeof g&&(g={}),a.minifyCSS=function(b){b=b.replace(/(url\s*\(\s*)("|'|)(.*?)\2(\s*\))/gi,function(b,c,d,e,f){return c+d+a.minifyURLs(e)+d+f});try{return new U(g).minify(b).styles}catch(c){return a.log(c),b}}}}function Q(a){var b;do b=Math.random().toString(36).replace(/^0\.[0-9]*/,"");while(~a.indexOf(b));return b}function R(a,b,c,d){function e(a){return a.map(function(a){return b.caseSensitive?a.name:a.name.toLowerCase()})}function f(a,b){return!b||a.indexOf(b)===-1}function g(a){return f(a,c)&&f(a,d)}function h(a){var c,d;new W(a,{start:function(a,f){i&&(i[a]||(i[a]=new Y),i[a].add(e(f).filter(g)));for(var h=0,k=f.length;h<k;h++){var l=f[h];j&&"class"===(b.caseSensitive?l.name:l.name.toLowerCase())?j.add(_(l.value).split(/\s+/).filter(g)):b.processScripts&&"type"===l.name.toLowerCase()&&(c=a,d=l.value)}},end:function(){c=""},chars:function(a){b.processScripts&&Ca(c)&&b.processScripts.indexOf(d)>-1&&h(a)}})}var i=b.sortAttributes&&Object.create(null),j=b.sortClassName&&new Y,k=b.log;if(b.log=null,b.sortAttributes=!1,b.sortClassName=!1,h(S(a,b)),b.log=k,i){var l=Object.create(null);for(var m in i)l[m]=i[m].createSorter();b.sortAttributes=function(a,b){var c=l[a];if(c){var d=Object.create(null),f=e(b);f.forEach(function(a,c){(d[a]||(d[a]=[])).push(b[c])}),c.sort(f).forEach(function(a,c){b[c]=d[a].shift()})}}}if(j){var n=j.createSorter();b.sortClassName=function(a){return n.sort(a.split(/\s+/)).join(" ")}}}function S(a,b,c){function i(a){return a.replace(w,function(a,b,c){var d=X[+c];return d[1]+v+c+d[2]})}function j(a,c){return K(a)||b.canCollapseWhitespace(a,c)}function k(a,c){return L(a)||b.canTrimWhitespace(a,c)}function l(){for(var a=x.length-1;a>0&&!/^<[^\/!]/.test(x[a]);)a--;x.length=Math.max(0,a)}function m(){for(var a=x.length-1;a>0&&!/^<\//.test(x[a]);)a--;x.length=Math.max(0,a)}function o(a,c){for(var d=null;a>=0&&k(d);a--){var e=x[a],g=e.match(/^<\/([\w:-]+)>$/);if(g)d=g[1];else if(/>$/.test(e)||(x[a]=f(e,null,c,b)))break}}function q(a){var b=x.length-1;if(x.length>1){var c=x[x.length-1];/^(?:<!|$)/.test(c)&&c.indexOf(u)===-1&&b--}o(b,a)}b=b||{};var r=[];P(b),b.collapseWhitespace&&(a=e(a,b,!0,!0));var s,t,u,v,w,x=[],y="",z="",A=[],B=[],H=[],I="",O="",S=Date.now(),U=[],X=[];a=a.replace(/<!-- htmlmin:ignore -->([\s\S]*?)<!-- htmlmin:ignore -->/g,function(c,d){if(!u){u=Q(a);var e=new RegExp("^"+u+"([0-9]+)$");b.ignoreCustomComments?b.ignoreCustomComments.push(e):b.ignoreCustomComments=[e]}var f="<!--"+u+U.length+"-->";return U.push(d),f});var Y=b.ignoreCustomFragments.map(function(a){return a.source});if(Y.length){var Z=new RegExp("\\s*(?:"+Y.join("|")+")+\\s*","g");a=a.replace(Z,function(c){if(!v){v=Q(a),w=new RegExp("(\\s*)"+v+"([0-9]+)(\\s*)","g");var d=b.minifyCSS;d&&(b.minifyCSS=function(a){return d(i(a))});var e=b.minifyJS;e&&(b.minifyJS=function(a,b){return e(i(a),b)})}var f=v+X.length;return X.push(/^(\s*)[\s\S]*?(\s*)$/.exec(c)),"\t"+f+"\t"})}(b.sortAttributes&&"function"!=typeof b.sortAttributes||b.sortClassName&&"function"!=typeof b.sortClassName)&&R(a,b,u,v),new W(a,{partialMarkup:c,html5:b.html5,start:function(a,c,d,e,f){var g=a.toLowerCase();if("svg"===g){r.push(b);var h={};for(var i in b)h[i]=b[i];h.keepClosingSlash=!0,h.caseSensitive=!0,b=h}a=b.caseSensitive?a:g,z=a,s=a,ca(a)||(y=""),t=!1,A=c;var n=b.removeOptionalTags;if(n){var o=ya(a);o&&E(I,a)&&l(),I="",o&&G(O,a)&&(m(),n=!F(O,a)),O=""}b.collapseWhitespace&&(B.length||q(a),k(a,c)||B.push(a),j(a,c)||H.push(a));var p="<"+a,u=e&&b.keepClosingSlash;x.push(p),b.sortAttributes&&b.sortAttributes(a,c);for(var w=[],C=c.length,D=!0;--C>=0;){var J=M(c[C],c,a,b);J&&(w.unshift(N(J,u,b,D,v)),D=!1)}w.length>0?(x.push(" "),x.push.apply(x,w)):n&&ia(a)&&(I=a),x.push(x.pop()+(u?"/":"")+">"),f&&!b.includeAutoGeneratedTags&&(l(),I="")},end:function(a,c,d){var e=a.toLowerCase();"svg"===e&&(b=r.pop()),a=b.caseSensitive?a:e,b.collapseWhitespace&&(B.length?a===B[B.length-1]&&B.pop():q("/"+a),H.length&&a===H[H.length-1]&&H.pop());var f=!1;a===z&&(z="",f=!t),b.removeOptionalTags&&(f&&ua(I)&&l(),I="",!ya(a)||!O||xa(O)||"p"===O&&na(a)||m(),O=ja(a)?a:""),b.removeEmptyElements&&f&&J(a,c)?(l(),I="",O=""):(d&&!b.includeAutoGeneratedTags?O="":x.push("</"+a+">"),s="/"+a,ba(a)?f&&(y+="|"):y="")},chars:function(a,c,d){if(c=""===c?"comment":c,d=""===d?"comment":d,b.decodeEntities&&a&&!Ca(z)&&(a=V(a)),b.collapseWhitespace){if(!B.length){if("comment"===c){var g=x[x.length-1];if(g.indexOf(u)===-1&&(g||(c=s),x.length>1&&(!g||!b.conservativeCollapse&&/ $/.test(y)))){var h=x.length-2;x[h]=x[h].replace(/\s+$/,function(b){return a=b+a,""})}}if(c)if("/nobr"===c||"wbr"===c){if(/^\s/.test(a)){for(var i=x.length-1;i>0&&0!==x[i].lastIndexOf("<"+c);)i--;o(i-1,"br")}}else ca("/"===c.charAt(0)?c.slice(1):c)&&(a=e(a,b,/(?:^|\s)$/.test(y)));a=c||d?f(a,c,d,b):e(a,b,!0,!0),!a&&/\s$/.test(y)&&c&&"/"===c.charAt(0)&&o(x.length-1,d)}H.length||"html"===d||c&&d||(a=e(a,b,!1,!1,!0))}b.processScripts&&Ca(z)&&(a=D(a,b,A)),n(z,A)&&(a=b.minifyJS(a)),p(z,A)&&(a=b.minifyCSS(a)),b.removeOptionalTags&&a&&(("html"===I||"body"===I&&!/^\s/.test(a))&&l(),I="",(va(O)||wa(O)&&!/^\s/.test(a))&&m(),O=""),s=/^\s*$/.test(a)?c:"comment",b.decodeEntities&&a&&!Ca(z)&&(a=a.replace(/&(#?[0-9a-zA-Z]+;)/g,"&amp$1").replace(/</g,"&lt;")),y+=a,a&&(t=!0),x.push(a)},comment:function(a,c){var d=c?"<!":"<!--",e=c?">":"-->";a=g(a)?d+C(a,b)+e:b.removeComments?h(a,b)?"<!--"+a+"-->":"":d+a+e,b.removeOptionalTags&&a&&(I="",O=""),x.push(a)},doctype:function(a){x.push(b.useShortDoctype?"<!DOCTYPE html>":d(a))},customAttrAssign:b.customAttrAssign,customAttrSurround:b.customAttrSurround}),b.removeOptionalTags&&(ua(I)&&l(),O&&!xa(O)&&m()),b.collapseWhitespace&&q("br");var $=T(x,b);return w&&($=$.replace(w,function(a,c,d,f){var g=X[+d][0];return b.collapseWhitespace?("\t"!==c&&(g=c+g),"\t"!==f&&(g+=f),e(g,{preserveLineBreaks:b.preserveLineBreaks,conservativeCollapse:!b.trimCustomFragments},/^\s/.test(g),/\s$/.test(g))):g})),u&&($=$.replace(new RegExp("<!--"+u+"([0-9]+)-->","g"),function(a,b){return U[+b]})),b.log("minified in: "+(Date.now()-S)+"ms"),$}function T(a,b){var c,d=b.maxLineLength;if(d){for(var f,g=[],h="",i=0,j=a.length;i<j;i++)f=a[i],h.length+f.length<d?h+=f:(g.push(h.replace(/^\n/,"")),h=f);g.push(h),c=g.join("\n")}else c=a.join("");return b.collapseWhitespace?e(c,b,!0,!0):c}var U=a("clean-css"),V=a("he").decode,W=a("./htmlparser").HTMLParser,X=a("relateurl"),Y=a("./tokenchain"),Z=a("uglify-js"),$=a("./utils"),_=String.prototype.trim?function(a){return"string"!=typeof a?a:a.trim()}:function(a){return"string"!=typeof a?a:a.replace(/^\s+/,"").replace(/\s+$/,"")},aa=$.createMapFromString,ba=aa("a,abbr,acronym,b,bdi,bdo,big,button,cite,code,del,dfn,em,font,i,ins,kbd,mark,math,nobr,q,rt,rp,s,samp,small,span,strike,strong,sub,sup,svg,time,tt,u,var"),ca=aa("a,abbr,acronym,b,big,del,em,font,i,ins,kbd,mark,nobr,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var"),da=aa("comment,img,input,wbr"),ea=$.createMap(["text/javascript","text/ecmascript","text/jscript","application/javascript","application/x-javascript","application/ecmascript"]),fa=aa("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),ga=aa("true,false"),ha=aa("img,source"),ia=aa("html,head,body,colgroup,tbody"),ja=aa("html,head,body,li,dt,dd,p,rb,rt,rtc,rp,optgroup,option,colgroup,caption,thead,tbody,tfoot,tr,td,th"),ka=aa("meta,link,script,style,template,noscript"),la=aa("dt,dd"),ma=aa("address,article,aside,blockquote,details,div,dl,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,main,menu,nav,ol,p,pre,section,table,ul"),na=aa("a,audio,del,ins,map,noscript,video"),oa=aa("rb,rt,rtc,rp"),pa=aa("rb,rtc,rp"),qa=aa("option,optgroup"),ra=aa("tbody,tfoot"),sa=aa("thead,tbody,tfoot"),ta=aa("td,th"),ua=aa("html,head,body"),va=aa("html,body"),wa=aa("head,colgroup,caption"),xa=aa("dt,thead"),ya=aa("a,abbr,acronym,address,applet,area,article,aside,audio,b,base,basefont,bdi,bdo,bgsound,big,blink,blockquote,body,br,button,canvas,caption,center,cite,code,col,colgroup,command,content,data,datalist,dd,del,details,dfn,dialog,dir,div,dl,dt,element,em,embed,fieldset,figcaption,figure,font,footer,form,frame,frameset,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,i,iframe,image,img,input,ins,isindex,kbd,keygen,label,legend,li,link,listing,main,map,mark,marquee,menu,menuitem,meta,meter,multicol,nav,nobr,noembed,noframes,noscript,object,ol,optgroup,option,output,p,param,picture,plaintext,pre,progress,q,rp,rt,rtc,ruby,s,samp,script,section,select,shadow,small,source,spacer,span,strike,strong,style,sub,summary,sup,table,tbody,td,template,textarea,tfoot,th,thead,time,title,tr,track,tt,u,ul,var,video,wbr,xmp"),za=new RegExp("^(?:class|id|style|title|lang|dir|on(?:focus|blur|change|click|dblclick|mouse(?:down|up|over|move|out)|key(?:press|down|up)))$"),Aa="!function(){",Ba="}();",Ca=aa("script,style");c.minify=function(a,b){return S(a,b)}},{"./htmlparser":166,"./tokenchain":167,"./utils":168,"clean-css":7,he:101,relateurl:125,"uglify-js":157}]},{},["html-minifier"]);
\ No newline at end of file
index b84b905..723b942 100644 (file)
@@ -9,7 +9,7 @@
   <body>
     <div id="outer-wrapper">
       <div id="wrapper">
-        <h1>HTML Minifier <span>(v3.3.2)</span></h1>
+        <h1>HTML Minifier <span>(v3.3.3)</span></h1>
         <textarea rows="8" cols="40" id="input"></textarea>
         <div class="minify-button">
           <button type="button" id="minify-btn">Minify</button>
index f834418..16ed6b7 100644 (file)
@@ -1,7 +1,7 @@
 {
   "name": "html-minifier",
   "description": "Highly configurable, well-tested, JavaScript-based HTML minifier.",
-  "version": "3.3.2",
+  "version": "3.3.3",
   "keywords": [
     "cli",
     "compress",