From: alexlamsl Date: Fri, 8 Apr 2016 11:50:38 +0000 (+0800) Subject: enforce more eslint rules X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=8d428bc7922f1f7841b64a6c0a11f907ae5248a4;p=html-minifier.git enforce more eslint rules --- diff --git a/.eslintrc.json b/.eslintrc.json index cc51726..43cdbfc 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,6 +5,7 @@ "extends": "eslint:recommended", "rules": { "array-bracket-spacing": "error", + "array-callback-return": "error", "block-scoped-var": "error", "block-spacing": "error", "brace-style": [ @@ -21,8 +22,17 @@ ], "computed-property-spacing": "error", "curly": "error", + "dot-location": [ + "error", + "property" + ], + "dot-notation": "error", "eol-last": "error", "eqeqeq": "error", + "func-style": [ + "error", + "declaration" + ], "indent": [ "error", 2, @@ -40,28 +50,57 @@ } ], "keyword-spacing": "error", + "linebreak-style": "error", "new-parens": "error", "no-array-constructor": "error", + "no-caller": "error", "no-console": "off", + "no-else-return": "error", + "no-eq-null": "error", + "no-eval": "error", + "no-extend-native": "error", + "no-extra-bind": "error", + "no-extra-label": "error", "no-extra-parens": "error", "no-floating-decimal": "error", + "no-implied-eval": "error", + "no-iterator": "error", "no-lone-blocks": "error", "no-lonely-if": "error", "no-multiple-empty-lines": "error", "no-multi-spaces": "error", + "no-multi-str": "error", + "no-native-reassign": "error", + "no-negated-condition": "error", + "no-new-wrappers": "error", "no-new-object": "error", + "no-octal-escape": "error", "no-path-concat": "error", "no-process-env": "error", + "no-proto": "error", "no-return-assign": "error", + "no-script-url": "error", "no-self-compare": "error", "no-sequences": "error", + "no-shadow-restricted-names": "error", "no-spaced-func": "error", "no-throw-literal": "error", "no-trailing-spaces": "error", + "no-undef-init": "error", + "no-undefined": "error", + "no-unmodified-loop-condition": "error", + "no-unneeded-ternary": "error", "no-unused-expressions": "error", + "no-use-before-define": [ + "error", + "nofunc" + ], "no-useless-call": "error", "no-useless-concat": "error", + "no-useless-escape": "error", "no-void": "error", + "no-whitespace-before-property": "error", + "no-with": "error", "object-curly-spacing": [ "error", "always" @@ -70,6 +109,10 @@ "error", "always" ], + "operator-linebreak": [ + "error", + "after" + ], "quote-props": [ "error", "as-needed" @@ -81,9 +124,13 @@ "semi": "error", "semi-spacing": "error", "space-before-blocks": "error", + "space-before-function-paren": [ + "error", + "never" + ], + "space-in-parens": "error", "space-infix-ops": "error", "space-unary-ops": "error", - "space-in-parens": "error", "spaced-comment": [ "error", "always", diff --git a/README.md b/README.md index ccf50c1..84ce366 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ How does HTMLMinifier compare to other solutions — [HTML Minifier from Will Pe | `collapseWhitespace` | [Collapse white space that contributes to text nodes in a document tree](http://perfectionkills.com/experimenting-with-html-minifier/#collapse_whitespace) | `false` | | `conservativeCollapse` | Always collapse to 1 space (never remove it entirely). Must be used in conjunction with `collapseWhitespace=true` | `false` | | `customAttrAssign` | Arrays of regex'es that allow to support custom attribute assign expressions (e.g. `'
'`) | `[ ]` | -| `customAttrCollapse` | Regex that specifies custom attribute to strip newlines from (e.g. `/ng\-class/`) | | +| `customAttrCollapse` | Regex that specifies custom attribute to strip newlines from (e.g. `/ng-class/`) | | | `customAttrSurround` | Arrays of regex'es that allow to support custom attribute surround expressions (e.g. ``) | `[ ]` | | `customEventAttributes` | Arrays of regex'es that allow to support custom event attributes for `minifyJS` (e.g. `ng-click`) | `[ /^on[a-z]{3,}$/ ]` | | `decodeEntities` | Use direct Unicode characters whenever possible | `false` | diff --git a/backtest.js b/backtest.js index 337f4fd..4ebb045 100644 --- a/backtest.js +++ b/backtest.js @@ -30,7 +30,7 @@ function readText(filePath, callback) { } function writeText(filePath, data) { - fs.writeFile(filePath, data, { encoding: 'utf8' }, function (err) { + fs.writeFile(filePath, data, { encoding: 'utf8' }, function(err) { if (err) { throw err; } diff --git a/benchmark.js b/benchmark.js index 57a5240..3ad30d6 100644 --- a/benchmark.js +++ b/benchmark.js @@ -54,7 +54,7 @@ function blueTime(time) { } function readBuffer(filePath, callback) { - fs.readFile(filePath, function (err, data) { + fs.readFile(filePath, function(err, data) { if (err) { throw new Error('There was an error reading ' + filePath); } @@ -63,7 +63,7 @@ function readBuffer(filePath, callback) { } function readText(filePath, callback) { - fs.readFile(filePath, { encoding: 'utf8' }, function (err, data) { + fs.readFile(filePath, { encoding: 'utf8' }, function(err, data) { if (err) { throw new Error('There was an error reading ' + filePath); } @@ -72,7 +72,7 @@ function readText(filePath, callback) { } function writeBuffer(filePath, data, callback) { - fs.writeFile(filePath, data, function (err) { + fs.writeFile(filePath, data, function(err) { if (err) { throw new Error('There was an error writing ' + filePath); } @@ -81,7 +81,7 @@ function writeBuffer(filePath, data, callback) { } function writeText(filePath, data, callback) { - fs.writeFile(filePath, data, { encoding: 'utf8' }, function (err) { + fs.writeFile(filePath, data, { encoding: 'utf8' }, function(err) { if (err) { throw new Error('There was an error writing ' + filePath); } @@ -90,7 +90,7 @@ function writeText(filePath, data, callback) { } function readSize(filePath, callback) { - fs.stat(filePath, function (err, stats) { + fs.stat(filePath, function(err, stats) { if (err) { throw new Error('There was an error reading ' + filePath); } @@ -120,8 +120,8 @@ function run(tasks, done) { } var rows = {}; -run(fileNames.map(function (fileName) { - return function (done) { +run(fileNames.map(function(fileName) { + return function(done) { progress.tick(0, { fileName: fileName }); var filePath = path.join('benchmarks/', fileName + '.html'); var original = { @@ -131,7 +131,7 @@ run(fileNames.map(function (fileName) { brFilePath: path.join('benchmarks/generated/', fileName + '.html.br') }; var infos = {}; - ['minifier', 'minimize', 'willpeavy', 'compressor'].forEach(function (name) { + ['minifier', 'minimize', 'willpeavy', 'compressor'].forEach(function(name) { infos[name] = { filePath: path.join('benchmarks/generated/', fileName + '.' + name + '.html'), gzFilePath: path.join('benchmarks/generated/', fileName + '.' + name + '.html.gz'), @@ -144,27 +144,27 @@ run(fileNames.map(function (fileName) { info.endTime = Date.now(); run([ // Apply Gzip on minified output - function (done) { - gzip(info.filePath, info.gzFilePath, function () { + function(done) { + gzip(info.filePath, info.gzFilePath, function() { info.gzTime = Date.now(); // Open and read the size of the minified+gzip output - readSize(info.gzFilePath, function (size) { + readSize(info.gzFilePath, function(size) { info.gzSize = size; done(); }); }); }, // Apply LZMA on minified output - function (done) { - readBuffer(info.filePath, function (data) { - lzma.compress(data, 1, function (result, error) { + function(done) { + readBuffer(info.filePath, function(data) { + lzma.compress(data, 1, function(result, error) { if (error) { throw error; } - writeBuffer(info.lzFilePath, new Buffer(result), function () { + writeBuffer(info.lzFilePath, new Buffer(result), function() { info.lzTime = Date.now(); // Open and read the size of the minified+lzma output - readSize(info.lzFilePath, function (size) { + readSize(info.lzFilePath, function(size) { info.lzSize = size; done(); }); @@ -173,13 +173,13 @@ run(fileNames.map(function (fileName) { }); }, // Apply Brotli on minified output - function (done) { - readBuffer(info.filePath, function (data) { + function(done) { + readBuffer(info.filePath, function(data) { var output = new Buffer(brotli.compress(data, true).buffer); - writeBuffer(info.brFilePath, output, function () { + writeBuffer(info.brFilePath, output, function() { info.brTime = Date.now(); // Open and read the size of the minified+brotli output - readSize(info.brFilePath, function (size) { + readSize(info.brFilePath, function(size) { info.brSize = size; done(); }); @@ -187,8 +187,8 @@ run(fileNames.map(function (fileName) { }); }, // Open and read the size of the minified output - function (done) { - readSize(info.filePath, function (size) { + function(done) { + readSize(info.filePath, function(size) { info.size = size; done(); }); @@ -200,16 +200,16 @@ run(fileNames.map(function (fileName) { var info = infos.minifier; info.startTime = Date.now(); var args = [filePath, '-c', 'sample-cli-config-file.conf', '--minify-urls', urls[fileName], '-o', info.filePath]; - fork('./cli', args).on('exit', function () { + fork('./cli', args).on('exit', function() { readSizes(info, done); }); } function testMinimize(done) { - readBuffer(filePath, function (data) { - minimize.parse(data, function (error, data) { + readBuffer(filePath, function(data) { + minimize.parse(data, function(error, data) { var info = infos.minimize; - writeBuffer(info.filePath, data, function () { + writeBuffer(info.filePath, data, function() { readSizes(info, done); }); }); @@ -217,24 +217,24 @@ run(fileNames.map(function (fileName) { } function testWillPeavy(done) { - readText(filePath, function (data) { + readText(filePath, function(data) { var options = url.parse('http://www.willpeavy.com/minifier/'); options.method = 'POST'; options.headers = { 'Content-Type': 'application/x-www-form-urlencoded' }; - http.request(options, function (res) { + http.request(options, function(res) { res.setEncoding('utf8'); var response = ''; - res.on('data', function (chunk) { + res.on('data', function(chunk) { response += chunk; - }).on('end', function () { + }).on('end', function() { // Extract result from '); var result = response.slice(start + 1, end).replace(/<\\\//g, '\')', parseJSONRegExpArray], - customAttrCollapse: ['Regex that specifies custom attribute to strip newlines from (e.g. /ng\-class/)', parseRegExp], + customAttrCollapse: ['Regex that specifies custom attribute to strip newlines from (e.g. /ng-class/)', parseRegExp], customAttrSurround: ['Arrays of regex\'es that allow to support custom attribute surround expressions (e.g. )', parseJSONRegExpArray], customEventAttributes: ['Arrays of regex\'es that allow to support custom event attributes for minifyJS (e.g. ng-click)', parseJSONRegExpArray], decodeEntities: 'Use direct Unicode characters whenever possible', @@ -116,8 +116,8 @@ var mainOptions = { keepClosingSlash: 'Keep the trailing slash on singleton elements', lint: 'Toggle linting', maxLineLength: ['Max line length', parseInt], - minifyCSS: ['Minify CSS in style elements and style attributes (uses clean-css)', parseJSON, undefined], - minifyJS: ['Minify Javascript in script elements and on* attributes (uses uglify-js)', parseJSON, undefined], + minifyCSS: ['Minify CSS in style elements and style attributes (uses clean-css)', parseJSON], + minifyJS: ['Minify Javascript in script elements and on* attributes (uses uglify-js)', parseJSON], minifyURLs: ['Minify URLs in various attributes (uses relateurl)', parseSiteURL], preserveLineBreaks: 'Always collapse to 1 line break (never remove it entirely) when whitespace between tags include a line break.', preventAttributesEscaping: 'Prevents the escaping of the values of attributes.', @@ -141,14 +141,12 @@ var mainOptionKeys = Object.keys(mainOptions); mainOptionKeys.forEach(function(key) { var option = mainOptions[key]; key = '--' + changeCase.paramCase(key); - if (!Array.isArray(option)) { - program.option(key, option); - } - else if (option.length > 2) { - program.option(key + ' [value]', option[0], option[1], option[2]); + if (Array.isArray(option)) { + var optional = option[1] === parseJSON; + program.option(key + (optional ? ' [value]' : ' '), option[0], option[1]); } else { - program.option(key + ' ', option[0], option[1]); + program.option(key, option); } }); program.option('-o --output ', 'Specify output file (if not specified STDOUT will be used for output)', function(outputPath) { @@ -201,7 +199,7 @@ function createOptions() { var options = {}; mainOptionKeys.forEach(function(key) { var param = program[changeCase.camelCase(key)]; - if (param !== undefined) { + if (typeof param !== 'undefined') { options[key] = param; } else if (key in config) { diff --git a/dist/htmlminifier.js b/dist/htmlminifier.js index dd564f4..f90087c 100644 --- a/dist/htmlminifier.js +++ b/dist/htmlminifier.js @@ -31506,17 +31506,17 @@ var nonPhrasing = makeMap('address,article,aside,base,blockquote,body,caption,co var reCache = {}; function attrForHandler(handler) { - var pattern = singleAttrIdentifier.source - + '(?:\\s*(' + joinSingleAttrAssigns(handler) + ')' - + '\\s*(?:' + singleAttrValues.join('|') + '))?'; + var pattern = singleAttrIdentifier.source + + '(?:\\s*(' + joinSingleAttrAssigns(handler) + ')' + + '\\s*(?:' + singleAttrValues.join('|') + '))?'; if (handler.customAttrSurround) { var attrClauses = []; for (var i = handler.customAttrSurround.length - 1; i >= 0; i--) { - attrClauses[i] = '(?:' - + '(' + handler.customAttrSurround[i][0].source + ')\\s*' - + pattern - + '\\s*(' + handler.customAttrSurround[i][1].source + ')' - + ')'; + attrClauses[i] = '(?:' + + '(' + handler.customAttrSurround[i][0].source + ')\\s*' + + pattern + + '\\s*(' + handler.customAttrSurround[i][1].source + ')' + + ')'; } attrClauses.push('(?:' + pattern + ')'); pattern = '(?:' + attrClauses.join('|') + ')'; @@ -31527,7 +31527,7 @@ function attrForHandler(handler) { function joinSingleAttrAssigns(handler) { return singleAttrAssigns.concat( handler.customAttrAssign || [] - ).map(function (assign) { + ).map(function(assign) { return '(?:' + assign.source + ')'; }).join('|'); } @@ -31633,7 +31633,7 @@ function HTMLParser(html, handler) { } else { var stackedTag = lastTag.toLowerCase(); - var reStackedTag = reCache[stackedTag] || (reCache[stackedTag] = new RegExp('([\\s\\S]*?)<\/' + stackedTag + '[^>]*>', 'i')); + var reStackedTag = reCache[stackedTag] || (reCache[stackedTag] = new RegExp('([\\s\\S]*?)]*>', 'i')); html = html.replace(reStackedTag, function(all, text) { if (stackedTag !== 'script' && stackedTag !== 'style' && stackedTag !== 'noscript') { @@ -31709,9 +31709,9 @@ function HTMLParser(html, handler) { // hackish work around FF bug https://bugzilla.mozilla.org/show_bug.cgi?id=369778 if (IS_REGEX_CAPTURING_BROKEN && args[0].indexOf('""') === -1) { - if (args[3] === '') { args[3] = undefined; } - if (args[4] === '') { args[4] = undefined; } - if (args[5] === '') { args[5] = undefined; } + if (args[3] === '') { delete args[3]; } + if (args[4] === '') { delete args[4]; } + if (args[5] === '') { delete args[5]; } } function populate(index) { @@ -31772,12 +31772,8 @@ function HTMLParser(html, handler) { function parseEndTag(tag, tagName) { var pos; - // If no tag name is provided, clean shop - if (!tagName) { - pos = 0; - } - else { - // Find the closest opened tag of the same type + // Find the closest opened tag of the same type + if (tagName) { var needle = tagName.toLowerCase(); for (pos = stack.length - 1; pos >= 0; pos--) { if (stack[pos].tag.toLowerCase() === needle) { @@ -31785,6 +31781,10 @@ function HTMLParser(html, handler) { } } } + // If no tag name is provided, clean shop + else { + pos = 0; + } if (pos >= 0) { // Close all the open elements, up the stack @@ -31860,22 +31860,17 @@ exports.HTMLtoDOM = function(html, doc) { base: 'head' }; - if (!doc) { - if (typeof DOMDocument !== 'undefined') { - doc = new DOMDocument(); - } - else if (typeof document !== 'undefined' && document.implementation && document.implementation.createDocument) { - doc = document.implementation.createDocument('', '', null); - } - else if (typeof ActiveX !== 'undefined') { - doc = new ActiveXObject('Msxml.DOMDocument'); - } - + if (doc) { + doc = doc.ownerDocument || doc.getOwnerDocument && doc.getOwnerDocument() || doc; } - else { - doc = doc.ownerDocument || - doc.getOwnerDocument && doc.getOwnerDocument() || - doc; + else if (typeof DOMDocument !== 'undefined') { + doc = new DOMDocument(); + } + else if (typeof document !== 'undefined' && document.implementation && document.implementation.createDocument) { + doc = document.implementation.createDocument('', '', null); + } + else if (typeof ActiveX !== 'undefined') { + doc = new ActiveXObject('Msxml.DOMDocument'); } var elems = [], @@ -32234,20 +32229,17 @@ else { log = function() {}; } -var trimWhitespace = function(str) { +var trimWhitespace = String.prototype.trim ? function(str) { + if (typeof str !== 'string') { + return str; + } + return str.trim(); +} : function(str) { if (typeof str !== 'string') { return str; } return str.replace(/^\s+/, '').replace(/\s+$/, ''); }; -if (String.prototype.trim) { - trimWhitespace = function(str) { - if (typeof str !== 'string') { - return str; - } - return str.trim(); - }; -} function compressWhitespace(spaces) { return spaces === '\t' ? spaces : ' '; @@ -32336,9 +32328,7 @@ function isEventAttribute(attrName, options) { } return false; } - else { - return /^on[a-z]{3,}$/.test(attrName); - } + return /^on[a-z]{3,}$/.test(attrName); } function canRemoveAttributeQuotes(value) { @@ -32558,9 +32548,7 @@ function unwrapCSS(text) { if (matches && matches[1]) { return matches[1]; } - else { - return text; - } + return text; } function cleanConditionalComment(comment, options) { @@ -32732,11 +32720,9 @@ function normalizeAttr(attr, attrs, tag, options) { } if (options.removeRedundantAttributes && - isAttributeRedundant(tag, attrName, attrValue, attrs) - || + isAttributeRedundant(tag, attrName, attrValue, attrs) || options.removeScriptTypeAttributes && tag === 'script' && - attrName === 'type' && isScriptTypeAttribute(attrValue) - || + attrName === 'type' && isScriptTypeAttribute(attrValue) || options.removeStyleLinkTypeAttributes && (tag === 'style' || tag === 'link') && attrName === 'type' && isStyleLinkTypeAttribute(attrValue)) { return; @@ -32771,14 +32757,14 @@ function buildAttr(normalized, hasUnarySlash, options, isLast) { if (typeof attrValue !== 'undefined' && !options.removeAttributeQuotes || !canRemoveAttributeQuotes(attrValue)) { if (!options.preventAttributesEscaping) { - if (typeof options.quoteCharacter !== 'undefined') { - attrQuote = options.quoteCharacter === '\'' ? '\'' : '"'; - } - else { + if (typeof options.quoteCharacter === 'undefined') { var apos = (attrValue.match(/'/g) || []).length; var quot = (attrValue.match(/"/g) || []).length; attrQuote = apos < quot ? '\'' : '"'; } + else { + attrQuote = options.quoteCharacter === '\'' ? '\'' : '"'; + } if (attrQuote === '"') { attrValue = attrValue.replace(/"/g, '"'); } @@ -32879,9 +32865,7 @@ function minifyCSS(text, options, inline) { if (inline) { return unwrapCSS(cleanCSS.minify(wrapCSS(style)).styles); } - else { - return cleanCSS.minify(style).styles; - } + return cleanCSS.minify(style).styles; } catch (err) { log(err); @@ -33086,7 +33070,7 @@ function minify(value, options, partialMarkup) { new HTMLParser(value, { partialMarkup: partialMarkup, - html5: typeof options.html5 !== 'undefined' ? options.html5 : true, + html5: typeof options.html5 === 'undefined' ? true : options.html5, start: function(tag, attrs, unary, unarySlash, autoGenerated) { var lowerTag = tag.toLowerCase(); @@ -33397,9 +33381,7 @@ function minify(value, options, partialMarkup) { conservativeCollapse: true }, /^\s/.test(chunk), /\s$/.test(chunk)); } - else { - return chunk; - } + return chunk; }); } if (uidIgnore) { diff --git a/dist/htmlminifier.min.js b/dist/htmlminifier.min.js index 1cd6be1..b7a3c84 100644 --- a/dist/htmlminifier.min.js +++ b/dist/htmlminifier.min.js @@ -3,7 +3,7 @@ * Copyright 2010-2016 Juriy "kangax" Zaytsev * Licensed under the MIT license */ -require=function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g0&&(a.splice(b-1,2),b-=2)}}function g(a,b){var c;return a&&"."===a.charAt(0)&&b&&(c=b.split("/"),c=c.slice(0,c.length-1),c=c.concat(a.split("/")),f(c),a=c.join("/")),a}function h(a){return function(b){return g(b,a)}}function i(a){function b(b){o[a]=b}return b.fromText=function(a,b){throw new Error("amdefine does not implement load.fromText")},b}function j(a,c,f){var g,h,i,j;if(a)h=o[a]={},i={id:a,uri:d,exports:h},g=l(e,h,i,a);else{if(p)throw new Error("amdefine with no module ID cannot be called more than once per file.");p=!0,h=b.exports,i=b,g=l(e,h,i,b.id)}c&&(c=c.map(function(a){return g(a)})),j="function"==typeof f?f.apply(i.exports,c):f,void 0!==j&&(i.exports=j,a&&(o[a]=i.exports))}function k(a,b,c){Array.isArray(a)?(c=b,b=a,a=void 0):"string"!=typeof a&&(c=a,a=b=void 0),b&&!Array.isArray(b)&&(c=b,b=void 0),b||(b=["require","exports","module"]),a?n[a]=[a,b,c]:j(a,b,c)}var l,m,n={},o={},p=!1,q=a("path");return l=function(a,b,d,e){function f(f,g){return"string"==typeof f?m(a,b,d,f,e):(f=f.map(function(c){return m(a,b,d,c,e)}),void(g&&c.nextTick(function(){g.apply(null,f)})))}return f.toUrl=function(a){return 0===a.indexOf(".")?g(a,q.dirname(d.filename)):a},f},e=e||function(){return b.require.apply(b,arguments)},m=function(a,b,c,d,e){var f,k,p=d.indexOf("!"),q=d;if(-1===p){if(d=g(d,e),"require"===d)return l(a,b,c,e);if("exports"===d)return b;if("module"===d)return c;if(o.hasOwnProperty(d))return o[d];if(n[d])return j.apply(null,n[d]),o[d];if(a)return a(q);throw new Error("No module with ID: "+d)}return f=d.substring(0,p),d=d.substring(p+1,d.length),k=m(a,b,c,f,e),d=k.normalize?k.normalize(d,h(e)):g(d,e),o[d]?o[d]:(k.load(d,l(a,b,c,e),i(d),{}),o[d])},k.require=function(a){return o[a]?o[a]:n[a]?(j.apply(null,n[a]),o[a]):void 0},k.amd={},k}b.exports=e}).call(this,a("_process"),"/node_modules\\amdefine\\amdefine.js")},{_process:79,path:77}],2:[function(a,b,c){"use strict";function d(){for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,c=a.length;c>b;++b)i[b]=a[b],j[a.charCodeAt(b)]=b;j["-".charCodeAt(0)]=62,j["_".charCodeAt(0)]=63}function e(a){var b,c,d,e,f,g,h=a.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");f="="===a[h-2]?2:"="===a[h-1]?1:0,g=new k(3*h/4-f),d=f>0?h-4:h;var i=0;for(b=0,c=0;d>b;b+=4,c+=3)e=j[a.charCodeAt(b)]<<18|j[a.charCodeAt(b+1)]<<12|j[a.charCodeAt(b+2)]<<6|j[a.charCodeAt(b+3)],g[i++]=e>>16&255,g[i++]=e>>8&255,g[i++]=255&e;return 2===f?(e=j[a.charCodeAt(b)]<<2|j[a.charCodeAt(b+1)]>>4,g[i++]=255&e):1===f&&(e=j[a.charCodeAt(b)]<<10|j[a.charCodeAt(b+1)]<<4|j[a.charCodeAt(b+2)]>>2,g[i++]=e>>8&255,g[i++]=255&e),g}function f(a){return i[a>>18&63]+i[a>>12&63]+i[a>>6&63]+i[63&a]}function g(a,b,c){for(var d,e=[],g=b;c>g;g+=3)d=(a[g]<<16)+(a[g+1]<<8)+a[g+2],e.push(f(d));return e.join("")}function h(a){for(var b,c=a.length,d=c%3,e="",f=[],h=16383,j=0,k=c-d;k>j;j+=h)f.push(g(a,j,j+h>k?k:j+h));return 1===d?(b=a[c-1],e+=i[b>>2],e+=i[b<<4&63],e+="=="):2===d&&(b=(a[c-2]<<8)+a[c-1],e+=i[b>>10],e+=i[b>>4&63],e+=i[b<<2&63],e+="="),f.push(e),f.join("")}c.toByteArray=e,c.fromByteArray=h;var i=[],j=[],k="undefined"!=typeof Uint8Array?Uint8Array:Array;d()},{}],3:[function(a,b,c){},{}],4:[function(a,b,c){arguments[4][3][0].apply(c,arguments)},{dup:3}],5:[function(a,b,c){(function(b){"use strict";function d(){try{var a=new Uint8Array(1);return a.foo=function(){return 42},42===a.foo()&&"function"==typeof a.subarray&&0===a.subarray(1,1).byteLength}catch(b){return!1}}function e(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(a){return this instanceof f?(f.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof a?g(this,a):"string"==typeof a?h(this,a,arguments.length>1?arguments[1]:"utf8"):i(this,a)):arguments.length>1?new f(a,arguments[1]):new f(a)}function g(a,b){if(a=p(a,0>b?0:0|q(b)),!f.TYPED_ARRAY_SUPPORT)for(var c=0;b>c;c++)a[c]=0;return a}function h(a,b,c){"string"==typeof c&&""!==c||(c="utf8");var d=0|s(b,c);return a=p(a,d),a.write(b,c),a}function i(a,b){if(f.isBuffer(b))return j(a,b);if(Y(b))return k(a,b);if(null==b)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(b.buffer instanceof ArrayBuffer)return l(a,b);if(b instanceof ArrayBuffer)return m(a,b)}return b.length?n(a,b):o(a,b)}function j(a,b){var c=0|q(b.length);return a=p(a,c),b.copy(a,0,0,c),a}function k(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function l(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function m(a,b){return b.byteLength,f.TYPED_ARRAY_SUPPORT?(a=new Uint8Array(b),a.__proto__=f.prototype):a=l(a,new Uint8Array(b)),a}function n(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function o(a,b){var c,d=0;"Buffer"===b.type&&Y(b.data)&&(c=b.data,d=0|q(c.length)),a=p(a,d);for(var e=0;d>e;e+=1)a[e]=255&c[e];return a}function p(a,b){f.TYPED_ARRAY_SUPPORT?(a=new Uint8Array(b),a.__proto__=f.prototype):a.length=b;var c=0!==b&&b<=f.poolSize>>>1;return c&&(a.parent=Z),a}function q(a){if(a>=e())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e().toString(16)+" bytes");return 0|a}function r(a,b){if(!(this instanceof r))return new r(a,b);var c=new f(a,b);return delete c.parent,c}function s(a,b){"string"!=typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var d=!1;;)switch(b){case"ascii":case"binary":case"raw":case"raws":return c;case"utf8":case"utf-8":return R(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return U(a).length;default:if(d)return R(a).length;b=(""+b).toLowerCase(),d=!0}}function t(a,b,c){var d=!1;if(b=0|b,c=void 0===c||c===1/0?this.length:0|c,a||(a="utf8"),0>b&&(b=0),c>this.length&&(c=this.length),b>=c)return"";for(;;)switch(a){case"hex":return F(this,b,c);case"utf8":case"utf-8":return B(this,b,c);case"ascii":return D(this,b,c);case"binary":return E(this,b,c);case"base64":return A(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function u(a,b,c,d){c=Number(c)||0;var e=a.length-c;d?(d=Number(d),d>e&&(d=e)):d=e;var f=b.length;if(f%2!==0)throw new Error("Invalid hex string");d>f/2&&(d=f/2);for(var g=0;d>g;g++){var h=parseInt(b.substr(2*g,2),16);if(isNaN(h))throw new Error("Invalid hex string");a[c+g]=h}return g}function v(a,b,c,d){return V(R(b,a.length-c),a,c,d)}function w(a,b,c,d){return V(S(b),a,c,d)}function x(a,b,c,d){return w(a,b,c,d)}function y(a,b,c,d){return V(U(b),a,c,d)}function z(a,b,c,d){return V(T(b,a.length-c),a,c,d)}function A(a,b,c){return 0===b&&c===a.length?W.fromByteArray(a):W.fromByteArray(a.slice(b,c))}function B(a,b,c){c=Math.min(a.length,c);for(var d=[],e=b;c>e;){var f=a[e],g=null,h=f>239?4:f>223?3:f>191?2:1;if(c>=e+h){var i,j,k,l;switch(h){case 1:128>f&&(g=f);break;case 2:i=a[e+1],128===(192&i)&&(l=(31&f)<<6|63&i,l>127&&(g=l));break;case 3:i=a[e+1],j=a[e+2],128===(192&i)&&128===(192&j)&&(l=(15&f)<<12|(63&i)<<6|63&j,l>2047&&(55296>l||l>57343)&&(g=l));break;case 4:i=a[e+1],j=a[e+2],k=a[e+3],128===(192&i)&&128===(192&j)&&128===(192&k)&&(l=(15&f)<<18|(63&i)<<12|(63&j)<<6|63&k,l>65535&&1114112>l&&(g=l))}}null===g?(g=65533,h=1):g>65535&&(g-=65536,d.push(g>>>10&1023|55296),g=56320|1023&g),d.push(g),e+=h}return C(d)}function C(a){var b=a.length;if($>=b)return String.fromCharCode.apply(String,a);for(var c="",d=0;b>d;)c+=String.fromCharCode.apply(String,a.slice(d,d+=$));return c}function D(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(127&a[e]);return d}function E(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(a[e]);return d}function F(a,b,c){var d=a.length;(!b||0>b)&&(b=0),(!c||0>c||c>d)&&(c=d);for(var e="",f=b;c>f;f++)e+=Q(a[f]);return e}function G(a,b,c){for(var d=a.slice(b,c),e="",f=0;fa)throw new RangeError("offset is not uint");if(a+b>c)throw new RangeError("Trying to access beyond buffer length")}function I(a,b,c,d,e,g){if(!f.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");if(b>e||g>b)throw new RangeError("value is out of bounds");if(c+d>a.length)throw new RangeError("index out of range")}function J(a,b,c,d){0>b&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);f>e;e++)a[c+e]=(b&255<<8*(d?e:1-e))>>>8*(d?e:1-e)}function K(a,b,c,d){0>b&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);f>e;e++)a[c+e]=b>>>8*(d?e:3-e)&255}function L(a,b,c,d,e,f){if(c+d>a.length)throw new RangeError("index out of range");if(0>c)throw new RangeError("index out of range")}function M(a,b,c,d,e){return e||L(a,b,c,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(a,b,c,d,23,4),c+4}function N(a,b,c,d,e){return e||L(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(a,b,c,d,52,8),c+8}function O(a){if(a=P(a).replace(_,""),a.length<2)return"";for(;a.length%4!==0;)a+="=";return a}function P(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function Q(a){return 16>a?"0"+a.toString(16):a.toString(16)}function R(a,b){b=b||1/0;for(var c,d=a.length,e=null,f=[],g=0;d>g;g++){if(c=a.charCodeAt(g),c>55295&&57344>c){if(!e){if(c>56319){(b-=3)>-1&&f.push(239,191,189);continue}if(g+1===d){(b-=3)>-1&&f.push(239,191,189);continue}e=c;continue}if(56320>c){(b-=3)>-1&&f.push(239,191,189),e=c;continue}c=(e-55296<<10|c-56320)+65536}else e&&(b-=3)>-1&&f.push(239,191,189);if(e=null,128>c){if((b-=1)<0)break;f.push(c)}else if(2048>c){if((b-=2)<0)break;f.push(c>>6|192,63&c|128)}else if(65536>c){if((b-=3)<0)break;f.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(1114112>c))throw new Error("Invalid code point");if((b-=4)<0)break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return f}function S(a){for(var b=[],c=0;c>8,e=c%256,f.push(e),f.push(d);return f}function U(a){return W.toByteArray(O(a))}function V(a,b,c,d){for(var e=0;d>e&&!(e+c>=b.length||e>=a.length);e++)b[e+c]=a[e];return e}var W=a("base64-js"),X=a("ieee754"),Y=a("isarray");c.Buffer=f,c.SlowBuffer=r,c.INSPECT_MAX_BYTES=50,f.poolSize=8192;var Z={};f.TYPED_ARRAY_SUPPORT=void 0!==b.TYPED_ARRAY_SUPPORT?b.TYPED_ARRAY_SUPPORT:d(),f._augment=function(a){return a.__proto__=f.prototype,a},f.TYPED_ARRAY_SUPPORT?(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})):(f.prototype.length=void 0,f.prototype.parent=void 0),f.isBuffer=function(a){return!(null==a||!a._isBuffer)},f.compare=function(a,b){if(!f.isBuffer(a)||!f.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var c=a.length,d=b.length,e=0,g=Math.min(c,d);g>e;++e)if(a[e]!==b[e]){c=a[e],d=b[e];break}return d>c?-1:c>d?1:0},f.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(a,b){if(!Y(a))throw new TypeError("list argument must be an Array of Buffers.");if(0===a.length)return new f(0);var c;if(void 0===b)for(b=0,c=0;c0&&(a=this.toString("hex",0,b).match(/.{2}/g).join(" "),this.length>b&&(a+=" ... ")),""},f.prototype.compare=function(a){if(!f.isBuffer(a))throw new TypeError("Argument must be a Buffer");return f.compare(this,a)},f.prototype.indexOf=function(a,b){function c(a,b,c){for(var d=-1,e=0;c+e2147483647?b=2147483647:-2147483648>b&&(b=-2147483648),b>>=0,0===this.length)return-1;if(b>=this.length)return-1;if(0>b&&(b=Math.max(this.length+b,0)),"string"==typeof a)return 0===a.length?-1:String.prototype.indexOf.call(this,a,b);if(f.isBuffer(a))return c(this,a,b);if("number"==typeof a)return f.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,a,b):c(this,[a],b);throw new TypeError("val must be string, number or Buffer")},f.prototype.write=function(a,b,c,d){if(void 0===b)d="utf8",c=this.length,b=0;else if(void 0===c&&"string"==typeof b)d=b,c=this.length,b=0;else if(isFinite(b))b=0|b,isFinite(c)?(c=0|c,void 0===d&&(d="utf8")):(d=c,c=void 0);else{var e=d;d=b,b=0|c,c=e}var f=this.length-b;if((void 0===c||c>f)&&(c=f),a.length>0&&(0>c||0>b)||b>this.length)throw new RangeError("attempt to write outside buffer bounds");d||(d="utf8");for(var g=!1;;)switch(d){case"hex":return u(this,a,b,c);case"utf8":case"utf-8":return v(this,a,b,c);case"ascii":return w(this,a,b,c);case"binary":return x(this,a,b,c);case"base64":return y(this,a,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,a,b,c);default:if(g)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),g=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;f.prototype.slice=function(a,b){var c=this.length;a=~~a,b=void 0===b?c:~~b,0>a?(a+=c,0>a&&(a=0)):a>c&&(a=c),0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c),a>b&&(b=a);var d;if(f.TYPED_ARRAY_SUPPORT)d=this.subarray(a,b),d.__proto__=f.prototype;else{var e=b-a;d=new f(e,void 0);for(var g=0;e>g;g++)d[g]=this[g+a]}return d.length&&(d.parent=this.parent||this),d},f.prototype.readUIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f0&&(e*=256);)d+=this[a+--b]*e;return d},f.prototype.readUInt8=function(a,b){return b||H(a,1,this.length),this[a]},f.prototype.readUInt16LE=function(a,b){return b||H(a,2,this.length),this[a]|this[a+1]<<8},f.prototype.readUInt16BE=function(a,b){return b||H(a,2,this.length),this[a]<<8|this[a+1]},f.prototype.readUInt32LE=function(a,b){return b||H(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},f.prototype.readUInt32BE=function(a,b){return b||H(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},f.prototype.readIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f=e&&(d-=Math.pow(2,8*b)),d},f.prototype.readIntBE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=b,e=1,f=this[a+--d];d>0&&(e*=256);)f+=this[a+--d]*e;return e*=128,f>=e&&(f-=Math.pow(2,8*b)),f},f.prototype.readInt8=function(a,b){return b||H(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},f.prototype.readInt16LE=function(a,b){b||H(a,2,this.length);var c=this[a]|this[a+1]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt16BE=function(a,b){b||H(a,2,this.length);var c=this[a+1]|this[a]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt32LE=function(a,b){return b||H(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},f.prototype.readInt32BE=function(a,b){return b||H(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},f.prototype.readFloatLE=function(a,b){return b||H(a,4,this.length),X.read(this,a,!0,23,4)},f.prototype.readFloatBE=function(a,b){return b||H(a,4,this.length),X.read(this,a,!1,23,4)},f.prototype.readDoubleLE=function(a,b){return b||H(a,8,this.length),X.read(this,a,!0,52,8)},f.prototype.readDoubleBE=function(a,b){return b||H(a,8,this.length),X.read(this,a,!1,52,8)},f.prototype.writeUIntLE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=1,f=0;for(this[b]=255&a;++f=0&&(f*=256);)this[b+e]=a/f&255;return b+c},f.prototype.writeUInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,255,0),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[b]=255&a,b+1},f.prototype.writeUInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeUInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeUInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=255&a):K(this,a,b,!0),b+4},f.prototype.writeUInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeIntLE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=0,g=1,h=0>a?1:0;for(this[b]=255&a;++f>0)-h&255;return b+c},f.prototype.writeIntBE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=c-1,g=1,h=0>a?1:0;for(this[b+f]=255&a;--f>=0&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},f.prototype.writeInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,127,-128),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),0>a&&(a=255+a+1),this[b]=255&a,b+1},f.prototype.writeInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):K(this,a,b,!0),b+4},f.prototype.writeInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),0>a&&(a=4294967295+a+1),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeFloatLE=function(a,b,c){return M(this,a,b,!0,c)},f.prototype.writeFloatBE=function(a,b,c){return M(this,a,b,!1,c)},f.prototype.writeDoubleLE=function(a,b,c){return N(this,a,b,!0,c)},f.prototype.writeDoubleBE=function(a,b,c){return N(this,a,b,!1,c)},f.prototype.copy=function(a,b,c,d){if(c||(c=0),d||0===d||(d=this.length),b>=a.length&&(b=a.length),b||(b=0),d>0&&c>d&&(d=c),d===c)return 0;if(0===a.length||0===this.length)return 0;if(0>b)throw new RangeError("targetStart out of bounds");if(0>c||c>=this.length)throw new RangeError("sourceStart out of bounds");if(0>d)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),a.length-bc&&d>b)for(e=g-1;e>=0;e--)a[e+b]=this[e+c];else if(1e3>g||!f.TYPED_ARRAY_SUPPORT)for(e=0;g>e;e++)a[e+b]=this[e+c];else Uint8Array.prototype.set.call(a,this.subarray(c,c+g),b);return g},f.prototype.fill=function(a,b,c){if(a||(a=0),b||(b=0),c||(c=this.length),b>c)throw new RangeError("end < start");if(c!==b&&0!==this.length){if(0>b||b>=this.length)throw new RangeError("start out of bounds");if(0>c||c>this.length)throw new RangeError("end out of bounds");var d;if("number"==typeof a)for(d=b;c>d;d++)this[d]=a;else{var e=R(a.toString()),f=e.length;for(d=b;c>d;d++)this[d]=e[d%f]}return this}};var _=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":2,ieee754:71,isarray:74}],6:[function(a,b,c){b.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],7:[function(a,b,c){b.exports=a("./lib/clean")},{"./lib/clean":8}],8:[function(a,b,c){(function(c){function d(a){return void 0===a?["all"]:a}function e(a){return!C.existsSync(a)&&!/\.css$/.test(a)}function f(a){return C.existsSync(a)&&C.statSync(a).isDirectory()}function g(a){return a?{hostname:E.parse(a).hostname,port:parseInt(E.parse(a).port)}:{}}function h(a,b){function c(c){return c=b.options.debug?j(b,c):l(b,c),c=i(b,c),a?a.call(null,b.errors.length>0?b.errors:null,c):c}return function(a){return b.options.sourceMap?b.inputSourceMapTracker.track(a,function(){return b.options.sourceMapInlineSources?b.inputSourceMapTracker.resolveSources(function(){return c(a)}):c(a)}):c(a)}}function i(a,b){return b.stats=a.stats,b.errors=a.errors,b.warnings=a.warnings,b}function j(a,b){var d=c.hrtime();a.stats.originalSize=a.sourceTracker.removeAll(b).length,b=l(a,b);var e=c.hrtime(d);return a.stats.timeSpent=~~(1e3*e[0]+e[1]/1e6),a.stats.efficiency=1-b.styles.length/a.stats.originalSize,a.stats.minifiedSize=b.styles.length,b}function k(a){return function(b,d){var e=b.constructor.name+"#"+d,f=c.hrtime();a(b,d);var g=c.hrtime(f);console.log("%d ms: "+e,1e3*g[0]+g[1]/1e6)}}function l(a,b){function c(b,c){return b=g.restore(b,c),b=h.restore(b),b=d.rebase?n(b,a):b,b=f.restore(b),e.restore(b)}var d=a.options,e=new t(a,d.keepSpecialComments,d.keepBreaks,d.sourceMap),f=new u(d.sourceMap),g=new v(d.sourceMap),h=new w(a,d.sourceMap,d.compatibility.properties.urlQuotes),i=d.sourceMap?s:r,j=function(a,c){b="function"==typeof a?a(b):a[c](b)};d.benchmark&&(j=k(j)),j(e,"escape"),j(f,"escape"),j(h,"escape"),j(g,"escape");var l=o(b,a);return p(l,d),d.advanced&&q(l,d,a.validator,!0),i(l,d,c,a.inputSourceMapTracker)}var m=a("./imports/inliner"),n=a("./urls/rebase"),o=a("./tokenizer/tokenize"),p=a("./selectors/simple"),q=a("./selectors/advanced"),r=a("./stringifier/simple"),s=a("./stringifier/source-maps"),t=a("./text/comments-processor"),u=a("./text/expressions-processor"),v=a("./text/free-text-processor"),w=a("./text/urls-processor"),x=a("./utils/compatibility"),y=a("./utils/input-source-map-tracker"),z=a("./utils/source-tracker"),A=a("./utils/source-reader"),B=a("./properties/validator"),C=a("fs"),D=a("path"),E=a("url"),F=a("./utils/object").override,G=5e3,H=b.exports=function(a){a=a||{},this.options={advanced:void 0===a.advanced?!0:!!a.advanced,aggressiveMerging:void 0===a.aggressiveMerging?!0:!!a.aggressiveMerging,benchmark:a.benchmark,compatibility:new x(a.compatibility).toOptions(),debug:a.debug,explicitRoot:!!a.root,explicitTarget:!!a.target,inliner:a.inliner||{},keepBreaks:a.keepBreaks||!1,keepSpecialComments:"keepSpecialComments"in a?a.keepSpecialComments:"*",mediaMerging:void 0===a.mediaMerging?!0:!!a.mediaMerging,processImport:void 0===a.processImport?!0:!!a.processImport,processImportFrom:d(a.processImportFrom),rebase:void 0===a.rebase?!0:!!a.rebase,relativeTo:a.relativeTo,restructuring:void 0===a.restructuring?!0:!!a.restructuring,root:a.root||c.cwd(),roundingPrecision:a.roundingPrecision,semanticMerging:void 0===a.semanticMerging?!1:!!a.semanticMerging,shorthandCompacting:void 0===a.shorthandCompacting?!0:!!a.shorthandCompacting,sourceMap:a.sourceMap,sourceMapInlineSources:!!a.sourceMapInlineSources,target:!a.target||e(a.target)||f(a.target)?a.target:D.dirname(a.target)},this.options.inliner.timeout=this.options.inliner.timeout||G,this.options.inliner.request=F(g(c.env.HTTP_PROXY||c.env.http_proxy),this.options.inliner.request||{})};H.prototype.minify=function(a,b){var d={stats:{},errors:[],warnings:[],options:this.options,debug:this.options.debug,localOnly:!b,sourceTracker:new z,validator:new B(this.options.compatibility)};if(d.options.sourceMap&&(d.inputSourceMapTracker=new y(d)),d.sourceReader=new A(d,a),a=d.sourceReader.toString(),d.options.processImport||a.indexOf("@shallow")>0){var e=b?c.nextTick:function(a){return a()};return e(function(){return new m(d).process(a,{localOnly:d.localOnly,imports:d.options.processImportFrom,whenDone:h(b,d)})})}return h(b,d)(a)}}).call(this,a("_process"))},{"./imports/inliner":12,"./properties/validator":26,"./selectors/advanced":29,"./selectors/simple":42,"./stringifier/simple":46,"./stringifier/source-maps":47,"./text/comments-processor":48,"./text/expressions-processor":50,"./text/free-text-processor":51,"./text/urls-processor":52,"./tokenizer/tokenize":55,"./urls/rebase":56,"./utils/compatibility":60,"./utils/input-source-map-tracker":61,"./utils/object":62,"./utils/source-reader":64,"./utils/source-tracker":65,_process:79,fs:4,path:77,url:141}],9:[function(a,b,c){function d(a,b,c,d){return b+h[c.toLowerCase()]+d}function e(a,b,c){return i[b.toLowerCase()]+c}var f={},g={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},h={},i={};for(var j in g){var k=g[j];j.length-1,c=a.replace(l,d);return c!=a&&(c=c.replace(l,d)),b?c.replace(m,e):c},b.exports=f},{}],10:[function(a,b,c){function d(a,b,c){this.hue=a,this.saturation=b,this.lightness=c}function e(a,b,c){var d,e,g;if(a%=360,0>a&&(a+=360),a=~~a/360,0>b?b=0:b>100&&(b=100),b=~~b/100,0>c?c=0:c>100&&(c=100),c=~~c/100,0===b)d=e=g=c;else{var h=.5>c?c*(1+b):c+b-c*b,i=2*c-h;d=f(i,h,a+1/3),e=f(i,h,a),g=f(i,h,a-1/3)}return[~~(255*d),~~(255*e),~~(255*g)]}function f(a,b,c){return 0>c&&(c+=1),c>1&&(c-=1),1/6>c?a+6*(b-a)*c:.5>c?b:2/3>c?a+(b-a)*(2/3-c)*6:a}d.prototype.toHex=function(){var a=e(this.hue,this.saturation,this.lightness),b=a[0].toString(16),c=a[1].toString(16),d=a[2].toString(16);return"#"+((1==b.length?"0":"")+b)+((1==c.length?"0":"")+c)+((1==d.length?"0":"")+d)},b.exports=d},{}],11:[function(a,b,c){function d(a,b,c){this.red=a,this.green=b,this.blue=c}d.prototype.toHex=function(){var a=Math.max(0,Math.min(~~this.red,255)),b=Math.max(0,Math.min(~~this.green,255)),c=Math.max(0,Math.min(~~this.blue,255));return"#"+("00000"+(a<<16|b<<8|c).toString(16)).slice(-6)},b.exports=d},{}],12:[function(a,b,c){(function(c){function d(a){this.outerContext=a}function e(a,b){if(b.shallow)return b.shallow=!1,b.done.push(a),h(b);for(var c=0,d=0,e=0,f=i(a);d-1&&-1==d?c:-1==c&&d>-1?d:Math.min(c,d)}function h(a){return a.left.length>0?e.apply(null,a.left.shift()):a.whenDone(a.done.join(""))}function i(a){var b=/(\/\*(?!\*\/)[\s\S]*?\*\/)/,c=0,d=0,e=!1;return function(f){var g,h=0,i=0,j=0,k=0;if(e)return!1;do{if(f>c&&d>f)return!0; +require=function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g0&&(a.splice(b-1,2),b-=2)}}function g(a,b){var c;return a&&"."===a.charAt(0)&&b&&(c=b.split("/"),c=c.slice(0,c.length-1),c=c.concat(a.split("/")),f(c),a=c.join("/")),a}function h(a){return function(b){return g(b,a)}}function i(a){function b(b){o[a]=b}return b.fromText=function(a,b){throw new Error("amdefine does not implement load.fromText")},b}function j(a,c,f){var g,h,i,j;if(a)h=o[a]={},i={id:a,uri:d,exports:h},g=l(e,h,i,a);else{if(p)throw new Error("amdefine with no module ID cannot be called more than once per file.");p=!0,h=b.exports,i=b,g=l(e,h,i,b.id)}c&&(c=c.map(function(a){return g(a)})),j="function"==typeof f?f.apply(i.exports,c):f,void 0!==j&&(i.exports=j,a&&(o[a]=i.exports))}function k(a,b,c){Array.isArray(a)?(c=b,b=a,a=void 0):"string"!=typeof a&&(c=a,a=b=void 0),b&&!Array.isArray(b)&&(c=b,b=void 0),b||(b=["require","exports","module"]),a?n[a]=[a,b,c]:j(a,b,c)}var l,m,n={},o={},p=!1,q=a("path");return l=function(a,b,d,e){function f(f,g){return"string"==typeof f?m(a,b,d,f,e):(f=f.map(function(c){return m(a,b,d,c,e)}),void(g&&c.nextTick(function(){g.apply(null,f)})))}return f.toUrl=function(a){return 0===a.indexOf(".")?g(a,q.dirname(d.filename)):a},f},e=e||function(){return b.require.apply(b,arguments)},m=function(a,b,c,d,e){var f,k,p=d.indexOf("!"),q=d;if(-1===p){if(d=g(d,e),"require"===d)return l(a,b,c,e);if("exports"===d)return b;if("module"===d)return c;if(o.hasOwnProperty(d))return o[d];if(n[d])return j.apply(null,n[d]),o[d];if(a)return a(q);throw new Error("No module with ID: "+d)}return f=d.substring(0,p),d=d.substring(p+1,d.length),k=m(a,b,c,f,e),d=k.normalize?k.normalize(d,h(e)):g(d,e),o[d]?o[d]:(k.load(d,l(a,b,c,e),i(d),{}),o[d])},k.require=function(a){return o[a]?o[a]:n[a]?(j.apply(null,n[a]),o[a]):void 0},k.amd={},k}b.exports=e}).call(this,a("_process"),"/node_modules\\amdefine\\amdefine.js")},{_process:79,path:77}],2:[function(a,b,c){"use strict";function d(){for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,c=a.length;c>b;++b)i[b]=a[b],j[a.charCodeAt(b)]=b;j["-".charCodeAt(0)]=62,j["_".charCodeAt(0)]=63}function e(a){var b,c,d,e,f,g,h=a.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");f="="===a[h-2]?2:"="===a[h-1]?1:0,g=new k(3*h/4-f),d=f>0?h-4:h;var i=0;for(b=0,c=0;d>b;b+=4,c+=3)e=j[a.charCodeAt(b)]<<18|j[a.charCodeAt(b+1)]<<12|j[a.charCodeAt(b+2)]<<6|j[a.charCodeAt(b+3)],g[i++]=e>>16&255,g[i++]=e>>8&255,g[i++]=255&e;return 2===f?(e=j[a.charCodeAt(b)]<<2|j[a.charCodeAt(b+1)]>>4,g[i++]=255&e):1===f&&(e=j[a.charCodeAt(b)]<<10|j[a.charCodeAt(b+1)]<<4|j[a.charCodeAt(b+2)]>>2,g[i++]=e>>8&255,g[i++]=255&e),g}function f(a){return i[a>>18&63]+i[a>>12&63]+i[a>>6&63]+i[63&a]}function g(a,b,c){for(var d,e=[],g=b;c>g;g+=3)d=(a[g]<<16)+(a[g+1]<<8)+a[g+2],e.push(f(d));return e.join("")}function h(a){for(var b,c=a.length,d=c%3,e="",f=[],h=16383,j=0,k=c-d;k>j;j+=h)f.push(g(a,j,j+h>k?k:j+h));return 1===d?(b=a[c-1],e+=i[b>>2],e+=i[b<<4&63],e+="=="):2===d&&(b=(a[c-2]<<8)+a[c-1],e+=i[b>>10],e+=i[b>>4&63],e+=i[b<<2&63],e+="="),f.push(e),f.join("")}c.toByteArray=e,c.fromByteArray=h;var i=[],j=[],k="undefined"!=typeof Uint8Array?Uint8Array:Array;d()},{}],3:[function(a,b,c){},{}],4:[function(a,b,c){arguments[4][3][0].apply(c,arguments)},{dup:3}],5:[function(a,b,c){(function(b){"use strict";function d(){try{var a=new Uint8Array(1);return a.foo=function(){return 42},42===a.foo()&&"function"==typeof a.subarray&&0===a.subarray(1,1).byteLength}catch(b){return!1}}function e(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(a){return this instanceof f?(f.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof a?g(this,a):"string"==typeof a?h(this,a,arguments.length>1?arguments[1]:"utf8"):i(this,a)):arguments.length>1?new f(a,arguments[1]):new f(a)}function g(a,b){if(a=p(a,0>b?0:0|q(b)),!f.TYPED_ARRAY_SUPPORT)for(var c=0;b>c;c++)a[c]=0;return a}function h(a,b,c){"string"==typeof c&&""!==c||(c="utf8");var d=0|s(b,c);return a=p(a,d),a.write(b,c),a}function i(a,b){if(f.isBuffer(b))return j(a,b);if(Y(b))return k(a,b);if(null==b)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(b.buffer instanceof ArrayBuffer)return l(a,b);if(b instanceof ArrayBuffer)return m(a,b)}return b.length?n(a,b):o(a,b)}function j(a,b){var c=0|q(b.length);return a=p(a,c),b.copy(a,0,0,c),a}function k(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function l(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function m(a,b){return b.byteLength,f.TYPED_ARRAY_SUPPORT?(a=new Uint8Array(b),a.__proto__=f.prototype):a=l(a,new Uint8Array(b)),a}function n(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function o(a,b){var c,d=0;"Buffer"===b.type&&Y(b.data)&&(c=b.data,d=0|q(c.length)),a=p(a,d);for(var e=0;d>e;e+=1)a[e]=255&c[e];return a}function p(a,b){f.TYPED_ARRAY_SUPPORT?(a=new Uint8Array(b),a.__proto__=f.prototype):a.length=b;var c=0!==b&&b<=f.poolSize>>>1;return c&&(a.parent=Z),a}function q(a){if(a>=e())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e().toString(16)+" bytes");return 0|a}function r(a,b){if(!(this instanceof r))return new r(a,b);var c=new f(a,b);return delete c.parent,c}function s(a,b){"string"!=typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var d=!1;;)switch(b){case"ascii":case"binary":case"raw":case"raws":return c;case"utf8":case"utf-8":return R(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return U(a).length;default:if(d)return R(a).length;b=(""+b).toLowerCase(),d=!0}}function t(a,b,c){var d=!1;if(b=0|b,c=void 0===c||c===1/0?this.length:0|c,a||(a="utf8"),0>b&&(b=0),c>this.length&&(c=this.length),b>=c)return"";for(;;)switch(a){case"hex":return F(this,b,c);case"utf8":case"utf-8":return B(this,b,c);case"ascii":return D(this,b,c);case"binary":return E(this,b,c);case"base64":return A(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function u(a,b,c,d){c=Number(c)||0;var e=a.length-c;d?(d=Number(d),d>e&&(d=e)):d=e;var f=b.length;if(f%2!==0)throw new Error("Invalid hex string");d>f/2&&(d=f/2);for(var g=0;d>g;g++){var h=parseInt(b.substr(2*g,2),16);if(isNaN(h))throw new Error("Invalid hex string");a[c+g]=h}return g}function v(a,b,c,d){return V(R(b,a.length-c),a,c,d)}function w(a,b,c,d){return V(S(b),a,c,d)}function x(a,b,c,d){return w(a,b,c,d)}function y(a,b,c,d){return V(U(b),a,c,d)}function z(a,b,c,d){return V(T(b,a.length-c),a,c,d)}function A(a,b,c){return 0===b&&c===a.length?W.fromByteArray(a):W.fromByteArray(a.slice(b,c))}function B(a,b,c){c=Math.min(a.length,c);for(var d=[],e=b;c>e;){var f=a[e],g=null,h=f>239?4:f>223?3:f>191?2:1;if(c>=e+h){var i,j,k,l;switch(h){case 1:128>f&&(g=f);break;case 2:i=a[e+1],128===(192&i)&&(l=(31&f)<<6|63&i,l>127&&(g=l));break;case 3:i=a[e+1],j=a[e+2],128===(192&i)&&128===(192&j)&&(l=(15&f)<<12|(63&i)<<6|63&j,l>2047&&(55296>l||l>57343)&&(g=l));break;case 4:i=a[e+1],j=a[e+2],k=a[e+3],128===(192&i)&&128===(192&j)&&128===(192&k)&&(l=(15&f)<<18|(63&i)<<12|(63&j)<<6|63&k,l>65535&&1114112>l&&(g=l))}}null===g?(g=65533,h=1):g>65535&&(g-=65536,d.push(g>>>10&1023|55296),g=56320|1023&g),d.push(g),e+=h}return C(d)}function C(a){var b=a.length;if($>=b)return String.fromCharCode.apply(String,a);for(var c="",d=0;b>d;)c+=String.fromCharCode.apply(String,a.slice(d,d+=$));return c}function D(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(127&a[e]);return d}function E(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(a[e]);return d}function F(a,b,c){var d=a.length;(!b||0>b)&&(b=0),(!c||0>c||c>d)&&(c=d);for(var e="",f=b;c>f;f++)e+=Q(a[f]);return e}function G(a,b,c){for(var d=a.slice(b,c),e="",f=0;fa)throw new RangeError("offset is not uint");if(a+b>c)throw new RangeError("Trying to access beyond buffer length")}function I(a,b,c,d,e,g){if(!f.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");if(b>e||g>b)throw new RangeError("value is out of bounds");if(c+d>a.length)throw new RangeError("index out of range")}function J(a,b,c,d){0>b&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);f>e;e++)a[c+e]=(b&255<<8*(d?e:1-e))>>>8*(d?e:1-e)}function K(a,b,c,d){0>b&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);f>e;e++)a[c+e]=b>>>8*(d?e:3-e)&255}function L(a,b,c,d,e,f){if(c+d>a.length)throw new RangeError("index out of range");if(0>c)throw new RangeError("index out of range")}function M(a,b,c,d,e){return e||L(a,b,c,4,0xf.fffff(e+31),-0xf.fffff(e+31)),X.write(a,b,c,d,23,4),c+4}function N(a,b,c,d,e){return e||L(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(a,b,c,d,52,8),c+8}function O(a){if(a=P(a).replace(_,""),a.length<2)return"";for(;a.length%4!==0;)a+="=";return a}function P(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function Q(a){return 16>a?"0"+a.toString(16):a.toString(16)}function R(a,b){b=b||1/0;for(var c,d=a.length,e=null,f=[],g=0;d>g;g++){if(c=a.charCodeAt(g),c>55295&&57344>c){if(!e){if(c>56319){(b-=3)>-1&&f.push(239,191,189);continue}if(g+1===d){(b-=3)>-1&&f.push(239,191,189);continue}e=c;continue}if(56320>c){(b-=3)>-1&&f.push(239,191,189),e=c;continue}c=(e-55296<<10|c-56320)+65536}else e&&(b-=3)>-1&&f.push(239,191,189);if(e=null,128>c){if((b-=1)<0)break;f.push(c)}else if(2048>c){if((b-=2)<0)break;f.push(c>>6|192,63&c|128)}else if(65536>c){if((b-=3)<0)break;f.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(1114112>c))throw new Error("Invalid code point");if((b-=4)<0)break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return f}function S(a){for(var b=[],c=0;c>8,e=c%256,f.push(e),f.push(d);return f}function U(a){return W.toByteArray(O(a))}function V(a,b,c,d){for(var e=0;d>e&&!(e+c>=b.length||e>=a.length);e++)b[e+c]=a[e];return e}var W=a("base64-js"),X=a("ieee754"),Y=a("isarray");c.Buffer=f,c.SlowBuffer=r,c.INSPECT_MAX_BYTES=50,f.poolSize=8192;var Z={};f.TYPED_ARRAY_SUPPORT=void 0!==b.TYPED_ARRAY_SUPPORT?b.TYPED_ARRAY_SUPPORT:d(),f._augment=function(a){return a.__proto__=f.prototype,a},f.TYPED_ARRAY_SUPPORT?(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})):(f.prototype.length=void 0,f.prototype.parent=void 0),f.isBuffer=function(a){return!(null==a||!a._isBuffer)},f.compare=function(a,b){if(!f.isBuffer(a)||!f.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var c=a.length,d=b.length,e=0,g=Math.min(c,d);g>e;++e)if(a[e]!==b[e]){c=a[e],d=b[e];break}return d>c?-1:c>d?1:0},f.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(a,b){if(!Y(a))throw new TypeError("list argument must be an Array of Buffers.");if(0===a.length)return new f(0);var c;if(void 0===b)for(b=0,c=0;c0&&(a=this.toString("hex",0,b).match(/.{2}/g).join(" "),this.length>b&&(a+=" ... ")),""},f.prototype.compare=function(a){if(!f.isBuffer(a))throw new TypeError("Argument must be a Buffer");return f.compare(this,a)},f.prototype.indexOf=function(a,b){function c(a,b,c){for(var d=-1,e=0;c+e2147483647?b=2147483647:-2147483648>b&&(b=-2147483648),b>>=0,0===this.length)return-1;if(b>=this.length)return-1;if(0>b&&(b=Math.max(this.length+b,0)),"string"==typeof a)return 0===a.length?-1:String.prototype.indexOf.call(this,a,b);if(f.isBuffer(a))return c(this,a,b);if("number"==typeof a)return f.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,a,b):c(this,[a],b);throw new TypeError("val must be string, number or Buffer")},f.prototype.write=function(a,b,c,d){if(void 0===b)d="utf8",c=this.length,b=0;else if(void 0===c&&"string"==typeof b)d=b,c=this.length,b=0;else if(isFinite(b))b=0|b,isFinite(c)?(c=0|c,void 0===d&&(d="utf8")):(d=c,c=void 0);else{var e=d;d=b,b=0|c,c=e}var f=this.length-b;if((void 0===c||c>f)&&(c=f),a.length>0&&(0>c||0>b)||b>this.length)throw new RangeError("attempt to write outside buffer bounds");d||(d="utf8");for(var g=!1;;)switch(d){case"hex":return u(this,a,b,c);case"utf8":case"utf-8":return v(this,a,b,c);case"ascii":return w(this,a,b,c);case"binary":return x(this,a,b,c);case"base64":return y(this,a,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,a,b,c);default:if(g)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),g=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;f.prototype.slice=function(a,b){var c=this.length;a=~~a,b=void 0===b?c:~~b,0>a?(a+=c,0>a&&(a=0)):a>c&&(a=c),0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c),a>b&&(b=a);var d;if(f.TYPED_ARRAY_SUPPORT)d=this.subarray(a,b),d.__proto__=f.prototype;else{var e=b-a;d=new f(e,void 0);for(var g=0;e>g;g++)d[g]=this[g+a]}return d.length&&(d.parent=this.parent||this),d},f.prototype.readUIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f0&&(e*=256);)d+=this[a+--b]*e;return d},f.prototype.readUInt8=function(a,b){return b||H(a,1,this.length),this[a]},f.prototype.readUInt16LE=function(a,b){return b||H(a,2,this.length),this[a]|this[a+1]<<8},f.prototype.readUInt16BE=function(a,b){return b||H(a,2,this.length),this[a]<<8|this[a+1]},f.prototype.readUInt32LE=function(a,b){return b||H(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},f.prototype.readUInt32BE=function(a,b){return b||H(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},f.prototype.readIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f=e&&(d-=Math.pow(2,8*b)),d},f.prototype.readIntBE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=b,e=1,f=this[a+--d];d>0&&(e*=256);)f+=this[a+--d]*e;return e*=128,f>=e&&(f-=Math.pow(2,8*b)),f},f.prototype.readInt8=function(a,b){return b||H(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},f.prototype.readInt16LE=function(a,b){b||H(a,2,this.length);var c=this[a]|this[a+1]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt16BE=function(a,b){b||H(a,2,this.length);var c=this[a+1]|this[a]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt32LE=function(a,b){return b||H(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},f.prototype.readInt32BE=function(a,b){return b||H(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},f.prototype.readFloatLE=function(a,b){return b||H(a,4,this.length),X.read(this,a,!0,23,4)},f.prototype.readFloatBE=function(a,b){return b||H(a,4,this.length),X.read(this,a,!1,23,4)},f.prototype.readDoubleLE=function(a,b){return b||H(a,8,this.length),X.read(this,a,!0,52,8)},f.prototype.readDoubleBE=function(a,b){return b||H(a,8,this.length),X.read(this,a,!1,52,8)},f.prototype.writeUIntLE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=1,f=0;for(this[b]=255&a;++f=0&&(f*=256);)this[b+e]=a/f&255;return b+c},f.prototype.writeUInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,255,0),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[b]=255&a,b+1},f.prototype.writeUInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeUInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeUInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=255&a):K(this,a,b,!0),b+4},f.prototype.writeUInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeIntLE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=0,g=1,h=0>a?1:0;for(this[b]=255&a;++f>0)-h&255;return b+c},f.prototype.writeIntBE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=c-1,g=1,h=0>a?1:0;for(this[b+f]=255&a;--f>=0&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},f.prototype.writeInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,127,-128),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),0>a&&(a=255+a+1),this[b]=255&a,b+1},f.prototype.writeInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):K(this,a,b,!0),b+4},f.prototype.writeInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),0>a&&(a=4294967295+a+1),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeFloatLE=function(a,b,c){return M(this,a,b,!0,c)},f.prototype.writeFloatBE=function(a,b,c){return M(this,a,b,!1,c)},f.prototype.writeDoubleLE=function(a,b,c){return N(this,a,b,!0,c)},f.prototype.writeDoubleBE=function(a,b,c){return N(this,a,b,!1,c)},f.prototype.copy=function(a,b,c,d){if(c||(c=0),d||0===d||(d=this.length),b>=a.length&&(b=a.length),b||(b=0),d>0&&c>d&&(d=c),d===c)return 0;if(0===a.length||0===this.length)return 0;if(0>b)throw new RangeError("targetStart out of bounds");if(0>c||c>=this.length)throw new RangeError("sourceStart out of bounds");if(0>d)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),a.length-bc&&d>b)for(e=g-1;e>=0;e--)a[e+b]=this[e+c];else if(1e3>g||!f.TYPED_ARRAY_SUPPORT)for(e=0;g>e;e++)a[e+b]=this[e+c];else Uint8Array.prototype.set.call(a,this.subarray(c,c+g),b);return g},f.prototype.fill=function(a,b,c){if(a||(a=0),b||(b=0),c||(c=this.length),b>c)throw new RangeError("end < start");if(c!==b&&0!==this.length){if(0>b||b>=this.length)throw new RangeError("start out of bounds");if(0>c||c>this.length)throw new RangeError("end out of bounds");var d;if("number"==typeof a)for(d=b;c>d;d++)this[d]=a;else{var e=R(a.toString()),f=e.length;for(d=b;c>d;d++)this[d]=e[d%f]}return this}};var _=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":2,ieee754:71,isarray:74}],6:[function(a,b,c){b.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],7:[function(a,b,c){b.exports=a("./lib/clean")},{"./lib/clean":8}],8:[function(a,b,c){(function(c){function d(a){return void 0===a?["all"]:a}function e(a){return!C.existsSync(a)&&!/\.css$/.test(a)}function f(a){return C.existsSync(a)&&C.statSync(a).isDirectory()}function g(a){return a?{hostname:E.parse(a).hostname,port:parseInt(E.parse(a).port)}:{}}function h(a,b){function c(c){return c=b.options.debug?j(b,c):l(b,c),c=i(b,c),a?a.call(null,b.errors.length>0?b.errors:null,c):c}return function(a){return b.options.sourceMap?b.inputSourceMapTracker.track(a,function(){return b.options.sourceMapInlineSources?b.inputSourceMapTracker.resolveSources(function(){return c(a)}):c(a)}):c(a)}}function i(a,b){return b.stats=a.stats,b.errors=a.errors,b.warnings=a.warnings,b}function j(a,b){var d=c.hrtime();a.stats.originalSize=a.sourceTracker.removeAll(b).length,b=l(a,b);var e=c.hrtime(d);return a.stats.timeSpent=~~(1e3*e[0]+e[1]/1e6),a.stats.efficiency=1-b.styles.length/a.stats.originalSize,a.stats.minifiedSize=b.styles.length,b}function k(a){return function(b,d){var e=b.constructor.name+"#"+d,f=c.hrtime();a(b,d);var g=c.hrtime(f);console.log("%d ms: "+e,1e3*g[0]+g[1]/1e6)}}function l(a,b){function c(b,c){return b=g.restore(b,c),b=h.restore(b),b=d.rebase?n(b,a):b,b=f.restore(b),e.restore(b)}var d=a.options,e=new t(a,d.keepSpecialComments,d.keepBreaks,d.sourceMap),f=new u(d.sourceMap),g=new v(d.sourceMap),h=new w(a,d.sourceMap,d.compatibility.properties.urlQuotes),i=d.sourceMap?s:r,j=function(a,c){b="function"==typeof a?a(b):a[c](b)};d.benchmark&&(j=k(j)),j(e,"escape"),j(f,"escape"),j(h,"escape"),j(g,"escape");var l=o(b,a);return p(l,d),d.advanced&&q(l,d,a.validator,!0),i(l,d,c,a.inputSourceMapTracker)}var m=a("./imports/inliner"),n=a("./urls/rebase"),o=a("./tokenizer/tokenize"),p=a("./selectors/simple"),q=a("./selectors/advanced"),r=a("./stringifier/simple"),s=a("./stringifier/source-maps"),t=a("./text/comments-processor"),u=a("./text/expressions-processor"),v=a("./text/free-text-processor"),w=a("./text/urls-processor"),x=a("./utils/compatibility"),y=a("./utils/input-source-map-tracker"),z=a("./utils/source-tracker"),A=a("./utils/source-reader"),B=a("./properties/validator"),C=a("fs"),D=a("path"),E=a("url"),F=a("./utils/object").override,G=5e3,H=b.exports=function(a){a=a||{},this.options={advanced:void 0===a.advanced?!0:!!a.advanced,aggressiveMerging:void 0===a.aggressiveMerging?!0:!!a.aggressiveMerging,benchmark:a.benchmark,compatibility:new x(a.compatibility).toOptions(),debug:a.debug,explicitRoot:!!a.root,explicitTarget:!!a.target,inliner:a.inliner||{},keepBreaks:a.keepBreaks||!1,keepSpecialComments:"keepSpecialComments"in a?a.keepSpecialComments:"*",mediaMerging:void 0===a.mediaMerging?!0:!!a.mediaMerging,processImport:void 0===a.processImport?!0:!!a.processImport,processImportFrom:d(a.processImportFrom),rebase:void 0===a.rebase?!0:!!a.rebase,relativeTo:a.relativeTo,restructuring:void 0===a.restructuring?!0:!!a.restructuring,root:a.root||c.cwd(),roundingPrecision:a.roundingPrecision,semanticMerging:void 0===a.semanticMerging?!1:!!a.semanticMerging,shorthandCompacting:void 0===a.shorthandCompacting?!0:!!a.shorthandCompacting,sourceMap:a.sourceMap,sourceMapInlineSources:!!a.sourceMapInlineSources,target:!a.target||e(a.target)||f(a.target)?a.target:D.dirname(a.target)},this.options.inliner.timeout=this.options.inliner.timeout||G,this.options.inliner.request=F(g(c.env.HTTP_PROXY||c.env.http_proxy),this.options.inliner.request||{})};H.prototype.minify=function(a,b){var d={stats:{},errors:[],warnings:[],options:this.options,debug:this.options.debug,localOnly:!b,sourceTracker:new z,validator:new B(this.options.compatibility)};if(d.options.sourceMap&&(d.inputSourceMapTracker=new y(d)),d.sourceReader=new A(d,a),a=d.sourceReader.toString(),d.options.processImport||a.indexOf("@shallow")>0){var e=b?c.nextTick:function(a){return a()};return e(function(){return new m(d).process(a,{localOnly:d.localOnly,imports:d.options.processImportFrom,whenDone:h(b,d)})})}return h(b,d)(a)}}).call(this,a("_process"))},{"./imports/inliner":12,"./properties/validator":26,"./selectors/advanced":29,"./selectors/simple":42,"./stringifier/simple":46,"./stringifier/source-maps":47,"./text/comments-processor":48,"./text/expressions-processor":50,"./text/free-text-processor":51,"./text/urls-processor":52,"./tokenizer/tokenize":55,"./urls/rebase":56,"./utils/compatibility":60,"./utils/input-source-map-tracker":61,"./utils/object":62,"./utils/source-reader":64,"./utils/source-tracker":65,_process:79,fs:4,path:77,url:141}],9:[function(a,b,c){function d(a,b,c,d){return b+h[c.toLowerCase()]+d}function e(a,b,c){return i[b.toLowerCase()]+c}var f={},g={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},h={},i={};for(var j in g){var k=g[j];j.length-1,c=a.replace(l,d);return c!=a&&(c=c.replace(l,d)),b?c.replace(m,e):c},b.exports=f},{}],10:[function(a,b,c){function d(a,b,c){this.hue=a,this.saturation=b,this.lightness=c}function e(a,b,c){var d,e,g;if(a%=360,0>a&&(a+=360),a=~~a/360,0>b?b=0:b>100&&(b=100),b=~~b/100,0>c?c=0:c>100&&(c=100),c=~~c/100,0===b)d=e=g=c;else{var h=.5>c?c*(1+b):c+b-c*b,i=2*c-h;d=f(i,h,a+1/3),e=f(i,h,a),g=f(i,h,a-1/3)}return[~~(255*d),~~(255*e),~~(255*g)]}function f(a,b,c){return 0>c&&(c+=1),c>1&&(c-=1),1/6>c?a+6*(b-a)*c:.5>c?b:2/3>c?a+(b-a)*(2/3-c)*6:a}d.prototype.toHex=function(){var a=e(this.hue,this.saturation,this.lightness),b=a[0].toString(16),c=a[1].toString(16),d=a[2].toString(16);return"#"+((1==b.length?"0":"")+b)+((1==c.length?"0":"")+c)+((1==d.length?"0":"")+d)},b.exports=d},{}],11:[function(a,b,c){function d(a,b,c){this.red=a,this.green=b,this.blue=c}d.prototype.toHex=function(){var a=Math.max(0,Math.min(~~this.red,255)),b=Math.max(0,Math.min(~~this.green,255)),c=Math.max(0,Math.min(~~this.blue,255));return"#"+("00000"+(a<<16|b<<8|c).toString(16)).slice(-6)},b.exports=d},{}],12:[function(a,b,c){(function(c){function d(a){this.outerContext=a}function e(a,b){if(b.shallow)return b.shallow=!1,b.done.push(a),h(b);for(var c=0,d=0,e=0,f=i(a);d-1&&-1==d?c:-1==c&&d>-1?d:Math.min(c,d)}function h(a){return a.left.length>0?e.apply(null,a.left.shift()):a.whenDone(a.done.join(""))}function i(a){var b=/(\/\*(?!\*\/)[\s\S]*?\*\/)/,c=0,d=0,e=!1;return function(f){var g,h=0,i=0,j=0,k=0;if(e)return!1;do{if(f>c&&d>f)return!0; if(g=a.match(b),!g)return e=!0,!1;c=h=g.index,i=h+g[0].length,k=i+d,j=k-g[0].length,a=a.substring(i),d=k}while(f>k);return k>f&&f>j}}function j(a){for(var b=i(a),c=-1;;)if(c=a.indexOf("{",c+1),-1==c||!b(c))break;return c>-1}function k(a,b,c,d){d.shallow=a.indexOf("@shallow")>0;var e=a.substring(g(a,b)+"@import".length+1,c).replace(/@shallow\)$/,")").trim(),f=0===e.indexOf("url("),i=f?4:0,k=/^['"]/.exec(e.substring(i,i+2)),p=k?e.indexOf(k[0],i+1):v(e," ")[0].length-(f?1:0),q=e.substring(i,p).replace(/['"]/g,"").replace(/\)$/,"").trim(),r=e.substring(p+1).replace(/^\)/,"").trim(),s=d.isRemote||y.test(q);if(s&&(d.localOnly||!l(q,!0,d.imports)))return d.afterContent||j(d.done.join(""))?d.warnings.push('Ignoring remote @import of "'+q+'" as no callback given.'):o(q,r,d),h(d);if(!s&&!l(q,!1,d.imports))return d.afterImport?d.warnings.push('Ignoring local @import of "'+q+'" as after other inlined content.'):o(q,r,d),h(d);if(!s&&d.afterContent)return d.warnings.push('Ignoring local @import of "'+q+'" as after other CSS content.'),h(d);var t=s?m:n;return t(q,r,d)}function l(a,b,c){if(0===c.length)return!1;b&&z.test(a)&&(a="http:"+a);for(var d=b?t.parse(a).host:a,e=!0,f=0;f-1)return h(d);d.debug&&console.error("Inlining remote stylesheet: "+i),d.visited.push(i);var k=d.inliner.request.protocol||d.inliner.request.hostname,l=k&&0!==k.indexOf("https://")||0===i.indexOf("http://")?r.get:s.get,n=!1,p=w(t.parse(i),d.inliner.request);void 0!==d.inliner.request.hostname&&(p.protocol=d.inliner.request.protocol||"http:",p.path=p.href),l(p,function(a){if(a.statusCode<200||a.statusCode>399)return g("error "+a.statusCode);if(a.statusCode>299){var h=t.resolve(i,a.headers.location);return m(h,b,d)}var k=[],l=t.parse(i);a.on("data",function(a){k.push(a.toString())}),a.on("end",function(){var a=k.join("");d.rebase&&(a=u(a,{toBase:j},d)),d.sourceReader.trackSource(i,a),a=d.sourceTracker.store(i,a),a=f(a,i),b.length>0&&(a="@media "+b+"{"+a+"}"),d.afterImport=!0;var g=w(d,{isRemote:!0,relativeTo:l.protocol+"//"+l.host+l.pathname});c.nextTick(function(){e(a,g)})})}).on("error",function(a){g(a.message)}).on("timeout",function(){g("timeout")}).setTimeout(d.inliner.timeout)}function n(a,b,c){var d="/"==a[0]?c.root:c.relativeTo,f=q.resolve(q.join(d,a));if(!p.existsSync(f)||!p.statSync(f).isFile())return c.errors.push('Broken @import declaration of "'+a+'"'),h(c);if(c.visited.indexOf(f)>-1)return h(c);c.debug&&console.error("Inlining local stylesheet: "+f),c.visited.push(f);var g=q.dirname(f),i=p.readFileSync(f,"utf8");if(c.rebase){var j={relative:!0,fromBase:g,toBase:c.baseRelativeTo};i=u(i,j,c)}var k=q.relative(c.root,f);c.sourceReader.trackSource(k,i),i=c.sourceTracker.store(k,i),b.length>0&&(i="@media "+b+"{"+i+"}"),c.afterImport=!0;var l=w(c,{relativeTo:g});return e(i,l)}function o(a,b,c){var d="@import url("+a+")"+(b.length>0?" "+b:"")+";";c.done.push(d)}var p=a("fs"),q=a("path"),r=a("http"),s=a("https"),t=a("url"),u=a("../urls/rewrite"),v=a("../utils/split"),w=a("../utils/object.js").override,x=/\/\*# sourceMappingURL=(\S+) \*\//,y=/^(https?:)?\/\//,z=/^\/\//;d.prototype.process=function(a,b){var c=this.outerContext.options.root;return b=w(b,{baseRelativeTo:this.outerContext.options.relativeTo||c,debug:this.outerContext.options.debug,done:[],errors:this.outerContext.errors,left:[],inliner:this.outerContext.options.inliner,rebase:this.outerContext.options.rebase,relativeTo:this.outerContext.options.relativeTo||c,root:c,sourceReader:this.outerContext.sourceReader,sourceTracker:this.outerContext.sourceTracker,warnings:this.outerContext.warnings,visited:[]}),e(a,b)},b.exports=d}).call(this,a("_process"))},{"../urls/rewrite":58,"../utils/object.js":62,"../utils/split":66,_process:79,fs:4,http:123,https:70,path:77,url:141}],13:[function(a,b,c){function d(a){return function(b){return"invert"==b[0]||a.isValidColor(b[0])}}function e(a){return function(b){return"inherit"!=b[0]&&a.isValidStyle(b[0])&&!a.isValidColorValue(b[0])}}function f(a,b,c){var d=c[a];return n(d.doubleValues&&2==d.defaultValue.length?[[a,b.important],[d.defaultValue[0]],[d.defaultValue[1]]]:d.doubleValues&&1==d.defaultValue.length?[[a,b.important],[d.defaultValue[0]]]:[[a,b.important],[d.defaultValue]])}function g(a){return function(b){return"inherit"!=b[0]&&a.isValidWidth(b[0])&&!a.isValidStyleKeyword(b[0])&&!a.isValidColorValue(b[0])}}function h(a,b,c){var d=f("background-image",a,b),e=f("background-position",a,b),g=f("background-size",a,b),h=f("background-repeat",a,b),i=f("background-attachment",a,b),j=f("background-origin",a,b),k=f("background-clip",a,b),l=f("background-color",a,b),m=[d,e,g,h,i,j,k,l],n=a.value,p=!1,q=!1,r=!1,s=!1;if(1==a.value.length&&"inherit"==a.value[0][0])return l.value=d.value=h.value=e.value=g.value=j.value=k.value=a.value,m;for(var t=n.length-1;t>=0;t--){var u=n[t];if(c.isValidBackgroundAttachment(u[0]))i.value=[u];else if(c.isValidBackgroundBox(u[0]))q?(j.value=[u],r=!0):(k.value=[u],q=!0);else if(c.isValidBackgroundRepeat(u[0]))s?h.value.unshift(u):(h.value=[u],s=!0);else if(c.isValidBackgroundPositionPart(u[0])||c.isValidBackgroundSizePart(u[0]))if(t>0){var v=n[t-1];if(v[0].indexOf("/")>0){var w=o(v[0],"/");g.value=[[w.pop()].concat(v.slice(1)),u],n[t-1]=[w.pop()].concat(v.slice(1))}else t>1&&"/"==n[t-2][0]?(g.value=[v,u],t-=2):"/"==v[0]?g.value=[u]:(p||(e.value=[]),e.value.unshift(u),p=!0)}else p||(e.value=[]),e.value.unshift(u),p=!0;else if(c.isValidBackgroundPositionAndSize(u[0])){var x=o(u[0],"/");g.value=[[x.pop()].concat(u.slice(1))],e.value=[[x.pop()].concat(u.slice(1))]}else l.value[0][0]!=b[l.name].defaultValue&&"none"!=l.value[0][0]||!c.isValidColor(u[0])?(c.isValidUrl(u[0])||c.isValidFunction(u[0]))&&(d.value=[u]):l.value=[u]}return q&&!r&&(j.value=k.value.slice(0)),m}function i(a,b){for(var c=a.value,d=-1,e=0,g=c.length;g>e;e++)if("/"==c[e][0]){d=e;break}if(-1==d)return j(a,b);var h=f(a.name,a,b);h.value=c.slice(0,d),h.components=j(h,b);var i=f(a.name,a,b);i.value=c.slice(d+1),i.components=j(i,b);for(var k=0;4>k;k++)h.components[k].multiplex=!0,h.components[k].value=h.components[k].value.concat([["/"]]).concat(i.components[k].value);return h.components}function j(a,b){var c=b[a.name].components,d=[],e=a.value;if(e.length<1)return[];e.length<2&&(e[1]=e[0].slice(0)),e.length<3&&(e[2]=e[0].slice(0)),e.length<4&&(e[3]=e[1].slice(0));for(var f=c.length-1;f>=0;f--){var g=n([[c[f],a.important]]);g.value=[e[f]],d.unshift(g)}return d}function k(a){return function(b,c,d){var e,g,h,i,j=[],k=b.value;for(e=0,h=k.length;h>e;e++)","==k[e][0]&&j.push(e);if(0===j.length)return a(b,c,d);var l=[];for(e=0,h=j.length;h>=e;e++){var m=0===e?0:j[e-1]+1,n=h>e?j[e]:k.length,o=f(b.name,b,c);o.value=k.slice(m,n),l.push(a(o,c,d))}var q=l[0];for(e=0,h=q.length;h>e;e++)for(q[e].multiplex=!0,g=1,i=l.length;i>g;g++)q[e].value.push([p]),Array.prototype.push.apply(q[e].value,l[g][e].value);return q}}function l(a,b,c){var d=f("list-style-type",a,b),e=f("list-style-position",a,b),g=f("list-style-image",a,b),h=[d,e,g];if(1==a.value.length&&"inherit"==a.value[0][0])return d.value=e.value=g.value=[a.value[0]],h;var i=a.value.slice(0),j=i.length,k=0;for(k=0,j=i.length;j>k;k++)if(c.isValidUrl(i[k][0])||"0"==i[k][0]){g.value=[i[k]],i.splice(k,1);break}for(k=0,j=i.length;j>k;k++)if(c.isValidListStyleType(i[k][0])){d.value=[i[k]],i.splice(k,1);break}return i.length>0&&c.isValidListStylePosition(i[0][0])&&(e.value=[i[0]]),h}function m(a,b,c){for(var h,i,j,k=b[a.name],l=[f(k.components[0],a,b),f(k.components[1],a,b),f(k.components[2],a,b)],m=0;3>m;m++){var n=l[m];n.name.indexOf("color")>0?h=n:n.name.indexOf("style")>0?i=n:j=n}if(1==a.value.length&&"inherit"==a.value[0][0]||3==a.value.length&&"inherit"==a.value[0][0]&&"inherit"==a.value[1][0]&&"inherit"==a.value[2][0])return h.value=i.value=j.value=[a.value[0]],l;var o,p,q=a.value.slice(0);return q.length>0&&(p=q.filter(g(c)),o=p.length>1&&("none"==p[0][0]||"auto"==p[0][0])?p[1]:p[0],o&&(j.value=[o],q.splice(q.indexOf(o),1))),q.length>0&&(o=q.filter(e(c))[0],o&&(i.value=[o],q.splice(q.indexOf(o),1))),q.length>0&&(o=q.filter(d(c))[0],o&&(h.value=[o],q.splice(q.indexOf(o),1))),l}var n=a("./wrap-for-optimizing").single,o=a("../utils/split"),p=",";b.exports={background:h,border:m,borderRadius:i,fourValues:j,listStyle:l,multiplex:k,outline:m}},{"../utils/split":66,"./wrap-for-optimizing":28}],14:[function(a,b,c){function d(){return!0}function e(a,b,c){var d=a.value[0][0],e=b.value[0][0];return"none"==e||"inherit"==e||c.isValidUrl(e)?!0:"none"==d||"inherit"==d||c.isValidUrl(d)?!1:j(a,b,c)}function f(a,b,c){return g(a.components[2],b.components[2],c)}function g(a,b,c){var d=a.value[0][0],e=b.value[0][0];return(c.colorOpacity||!c.isValidRgbaColor(d)&&!c.isValidHslaColor(d))&&(c.colorOpacity||!c.isValidRgbaColor(e)&&!c.isValidHslaColor(e))?c.isValidNamedColor(e)||c.isValidHexColor(e)?!0:c.isValidNamedColor(d)||c.isValidHexColor(d)?!1:c.isValidRgbaColor(e)||c.isValidHslaColor(e)?!0:c.isValidRgbaColor(d)||c.isValidHslaColor(d)?!1:j(a,b,c):!1}function h(a,b,c){var d=a.value[0][0],e=b.value[0][0];return!(c.isValidFunction(d)^c.isValidFunction(e))}function i(a,b){var c=a.value[0][0],d=b.value[0][0];return c===d}function j(a,b,c){var d=a.value[0][0],e=b.value[0][0];return c.areSameFunction(d,e)?!0:d===e}function k(a,b,c){var d=a.value[0][0],e=b.value[0][0];return c.isValidAndCompatibleUnitWithoutFunction(d)&&!c.isValidAndCompatibleUnitWithoutFunction(e)?!1:c.isValidUnitWithoutFunction(e)?!0:c.isValidUnitWithoutFunction(d)?!1:c.isValidFunctionWithoutVendorPrefix(e)&&c.isValidFunctionWithoutVendorPrefix(d)?!0:j(a,b,c)}b.exports={always:d,backgroundImage:e,border:f,color:g,sameValue:i,sameFunctionOrValue:j,twoOptionalFunctions:h,unit:k}},{}],15:[function(a,b,c){function d(a){for(var b=e(a),c=a.components.length-1;c>=0;c--){var d=e(a.components[c]);d.value=a.components[c].value.slice(0),b.components.unshift(d)}return b.dirty=!0,b.value=a.value.slice(0),b}function e(a){var b=f([[a.name,a.important,a.hack]]);return b.unused=!1,b}var f=a("./wrap-for-optimizing").single;b.exports={deep:d,shallow:e}},{"./wrap-for-optimizing":28}],16:[function(a,b,c){var d=a("./break-up"),e=a("./can-override"),f=a("./restore"),g={color:{canOverride:e.color,defaultValue:"transparent",shortestValue:"red"},background:{components:["background-image","background-position","background-size","background-repeat","background-attachment","background-origin","background-clip","background-color"],breakUp:d.multiplex(d.background),defaultValue:"0 0",restore:f.multiplex(f.background),shortestValue:"0",shorthand:!0},"background-clip":{canOverride:e.always,defaultValue:"border-box",shortestValue:"border-box"},"background-color":{canOverride:e.color,defaultValue:"transparent",multiplexLastOnly:!0,nonMergeableValue:"none",shortestValue:"red"},"background-image":{canOverride:e.backgroundImage,defaultValue:"none"},"background-origin":{canOverride:e.always,defaultValue:"padding-box",shortestValue:"border-box"},"background-repeat":{canOverride:e.always,defaultValue:["repeat"],doubleValues:!0},"background-position":{canOverride:e.always,defaultValue:["0","0"],doubleValues:!0,shortestValue:"0"},"background-size":{canOverride:e.always,defaultValue:["auto"],doubleValues:!0,shortestValue:"0 0"},"background-attachment":{canOverride:e.always,defaultValue:"scroll"},border:{breakUp:d.border,canOverride:e.border,components:["border-width","border-style","border-color"],defaultValue:"none",restore:f.withoutDefaults,shorthand:!0},"border-color":{canOverride:e.color,defaultValue:"none",shorthand:!0},"border-style":{canOverride:e.always,defaultValue:"none",shorthand:!0},"border-width":{canOverride:e.unit,defaultValue:"medium",shortestValue:"0",shorthand:!0},"list-style":{components:["list-style-type","list-style-position","list-style-image"],canOverride:e.always,breakUp:d.listStyle,restore:f.withoutDefaults,defaultValue:"outside",shortestValue:"none",shorthand:!0},"list-style-type":{canOverride:e.always,defaultValue:"__hack",shortestValue:"none"},"list-style-position":{canOverride:e.always,defaultValue:"outside",shortestValue:"inside"},"list-style-image":{canOverride:e.always,defaultValue:"none"},outline:{components:["outline-color","outline-style","outline-width"],breakUp:d.outline,restore:f.withoutDefaults,defaultValue:"0",shorthand:!0},"outline-color":{canOverride:e.color,defaultValue:"invert",shortestValue:"red"},"outline-style":{canOverride:e.always,defaultValue:"none"},"outline-width":{canOverride:e.unit,defaultValue:"medium",shortestValue:"0"},"-moz-transform":{canOverride:e.sameFunctionOrValue},"-ms-transform":{canOverride:e.sameFunctionOrValue},"-webkit-transform":{canOverride:e.sameFunctionOrValue},transform:{canOverride:e.sameFunctionOrValue}},h=function(a,b,c){c=c||{},g[a]={canOverride:c.canOverride,components:b,breakUp:c.breakUp||d.fourValues,defaultValue:c.defaultValue||"0",restore:c.restore||f.fourValues,shortestValue:c.shortestValue,shorthand:!0};for(var h=0;hj;j++)g[g[i].components[j]].componentOf=i;b.exports=g},{"./break-up":13,"./can-override":14,"./restore":24}],17:[function(a,b,c){function d(a,b,c,d){for(var g=e(b),h=e(c),i=0,j=b.value.length;j>i;i++)for(var k=0,l=c.value.length;l>k;k++)if(b.value[i][0]!=f&&c.value[k][0]!=f&&(g.value=[b.value[i]],h.value=[c.value[k]],!a(g,h,d)))return!1;return!0}var e=a("./clone").shallow,f=",";b.exports=d},{"./clone":15}],18:[function(a,b,c){function d(a){for(var b=a.value.length-1;b>=0;b--)if("inherit"==a.value[b][0])return!0;return!1}b.exports=d},{}],19:[function(a,b,c){function d(a,b,c,d){function e(a){return b===!1||b===!0?b:b.indexOf(a)>-1}function g(b){var c=a[b-1],d=a[b];return m(c.all,c.position)==m(d.all,d.position)}var h,i,j={},k=null;a:for(var l=0,o=a.length;o>l;l++){var p=a[l],q=!("-ms-filter"!=p.name&&"filter"!=p.name||"background"!=k&&"background-image"!=k)?k:p.name,r=p.important,s=p.hack;if(!p.unused)if(l>0&&h&&q==k&&r==h.important&&s==h.hack&&g(l)&&!h.unused)p.unused=!0;else{if(q in j&&(c&&q!=k||e(l))){var t=j[q],u=f[q]&&f[q].canOverride,v=!1;for(i=t.length-1;i>=0;i--){var w=a[t[i]],x=w.name!=q,y=w.important,z=w.hack;if(!w.unused&&(!x||!y)&&(y||!(z&&!s||!z&&s))&&(!y||"star"!=s&&"underscore"!=s)&&(z||s||x||!u||u(w,p,d))){if(y&&!r||y&&s){p.unused=!0,h=p;continue a}v=!0,w.unused=!0}}if(v){l=-1,h=null,k=null,j={};continue}}else{j[q]=j[q]||[],j[q].push(l);var A=n[q];if(A)for(i=A.length-1;i>=0;i--){var B=A[i];j[B]=j[B]||[],j[B].push(l)}}k=q,h=p}}}function e(a,b,c,f,m,n){var o=g(b);h(o,n),d(o,c,m.aggressiveMerging,n);for(var p=0,q=o.length;q>p;p++){var r=o[p];r.variable&&r.block&&e(a,r.value[0],c,f,m,n)}f&&m.shorthandCompacting&&(i(o,m.compatibility,n),j(o,m.sourceMap,n)),l(o),k(o)}var f=a("./compactable"),g=a("./wrap-for-optimizing").all,h=a("./populate-components"),i=a("./override-compactor"),j=a("./shorthand-compactor"),k=a("./remove-unused"),l=a("./restore-from-optimizing"),m=a("../stringifier/one-time").property,n={"animation-delay":["animation"],"animation-direction":["animation"],"animation-duration":["animation"],"animation-fill-mode":["animation"],"animation-iteration-count":["animation"],"animation-name":["animation"],"animation-play-state":["animation"],"animation-timing-function":["animation"],"-moz-animation-delay":["-moz-animation"],"-moz-animation-direction":["-moz-animation"],"-moz-animation-duration":["-moz-animation"],"-moz-animation-fill-mode":["-moz-animation"],"-moz-animation-iteration-count":["-moz-animation"],"-moz-animation-name":["-moz-animation"],"-moz-animation-play-state":["-moz-animation"],"-moz-animation-timing-function":["-moz-animation"],"-o-animation-delay":["-o-animation"],"-o-animation-direction":["-o-animation"],"-o-animation-duration":["-o-animation"],"-o-animation-fill-mode":["-o-animation"],"-o-animation-iteration-count":["-o-animation"],"-o-animation-name":["-o-animation"],"-o-animation-play-state":["-o-animation"],"-o-animation-timing-function":["-o-animation"],"-webkit-animation-delay":["-webkit-animation"],"-webkit-animation-direction":["-webkit-animation"],"-webkit-animation-duration":["-webkit-animation"],"-webkit-animation-fill-mode":["-webkit-animation"],"-webkit-animation-iteration-count":["-webkit-animation"],"-webkit-animation-name":["-webkit-animation"],"-webkit-animation-play-state":["-webkit-animation"],"-webkit-animation-timing-function":["-webkit-animation"],"border-color":["border"],"border-style":["border"],"border-width":["border"],"border-bottom":["border"],"border-bottom-color":["border-bottom","border-color","border"],"border-bottom-style":["border-bottom","border-style","border"],"border-bottom-width":["border-bottom","border-width","border"],"border-left":["border"],"border-left-color":["border-left","border-color","border"],"border-left-style":["border-left","border-style","border"],"border-left-width":["border-left","border-width","border"],"border-right":["border"],"border-right-color":["border-right","border-color","border"],"border-right-style":["border-right","border-style","border"],"border-right-width":["border-right","border-width","border"],"border-top":["border"],"border-top-color":["border-top","border-color","border"],"border-top-style":["border-top","border-style","border"],"border-top-width":["border-top","border-width","border"],"font-family":["font"],"font-size":["font"],"font-style":["font"],"font-variant":["font"],"font-weight":["font"],"transition-delay":["transition"],"transition-duration":["transition"],"transition-property":["transition"],"transition-timing-function":["transition"],"-moz-transition-delay":["-moz-transition"],"-moz-transition-duration":["-moz-transition"],"-moz-transition-property":["-moz-transition"],"-moz-transition-timing-function":["-moz-transition"],"-o-transition-delay":["-o-transition"],"-o-transition-duration":["-o-transition"],"-o-transition-property":["-o-transition"],"-o-transition-timing-function":["-o-transition"],"-webkit-transition-delay":["-webkit-transition"],"-webkit-transition-duration":["-webkit-transition"],"-webkit-transition-property":["-webkit-transition"],"-webkit-transition-timing-function":["-webkit-transition"]};b.exports=e},{"../stringifier/one-time":45,"./compactable":16,"./override-compactor":20,"./populate-components":21,"./remove-unused":22,"./restore-from-optimizing":23,"./shorthand-compactor":25,"./wrap-for-optimizing":28}],20:[function(a,b,c){function d(a){return function(b){return a.name===b.name}}function e(a,b){for(var c=0;c-1}function g(a,b){b.unused=!0,l(b,m(a)),a.value=b.value}function h(a,b){b.unused=!0,a.multiplex=!0,a.value=b.value}function i(a,b){b.unused=!0,a.value=b.value}function j(a,b){b.multiplex?h(a,b):a.multiplex?g(a,b):i(a,b)}function k(a,b){b.unused=!0;for(var c=0,d=a.components.length;d>c;c++)j(a.components[c],b.components[c],a.multiplex)}function l(a,b){a.multiplex=!0;for(var c=0,d=a.components.length;d>c;c++){var e=a.components[c];if(!e.multiplex)for(var f=e.value.slice(0),g=1;b>g;g++)e.value.push([G]),Array.prototype.push.apply(e.value,f)}}function m(a){for(var b=0,c=0,d=a.value.length;d>c;c++)a.value[c][0]==G&&b++;return b+1}function n(a){var b=[[a.name]].concat(a.value);return F([b],0).length}function o(a,b,c){for(var d=0,e=b;e>=0&&(a[e].name!=c||a[e].unused||d++,!(d>1));e--);return d>1}function p(a,b){for(var c=0,d=a.components.length;d>c;c++)if(q(b.isValidFunction,a.components[c]))return!0;return!1}function q(a,b){for(var c=0,d=b.value.length;d>c;c++)if(b.value[c][0]!=G&&a(b.value[c][0]))return!0;return!1}function r(a,b){if(!a.multiplex&&!b.multiplex||a.multiplex&&b.multiplex)return!1;var c,e=a.multiplex?a:b,f=a.multiplex?b:a,i=z(e);C([i]);var j=z(f);C([j]);var k=n(i)+1+n(j);a.multiplex?(c=i.components.filter(d(j))[0],g(c,j)):(c=j.components.filter(d(i))[0],l(j,m(i)),h(c,i)),C([j]);var o=n(j);return o>k}function s(a){return a.name in y}function t(a,b){return!a.multiplex&&("background"==a.name||"background-image"==a.name)&&b.multiplex&&("background"==b.name||"background-image"==b.name)&&u(b.value)}function u(a){for(var b=v(a),c=0,d=b.length;d>c;c++)if(1==b[c].length&&"none"==b[c][0][0])return!0;return!1}function v(a){for(var b=[],c=0,d=[],e=a.length;e>c;c++){var f=a[c];f[0]==G?(b.push(d),d=[]):d.push(f)}return b.push(d),b}function w(a,b,c){var g,h,i,n,u,v,w;a:for(u=a.length-1;u>=0;u--)if(h=a[u],s(h)&&!h.variable)for(g=y[h.name].canOverride||x.sameValue,v=u-1;v>=0;v--)if(i=a[v],s(i)&&!(i.variable||i.unused||h.unused||i.hack&&!h.hack||!i.hack&&h.hack||B(h)||t(i,h)))if(!i.shorthand&&h.shorthand&&f(h,i)){if(!h.important&&i.important)continue;if(!E([i],h.components))continue;if(!q(c.isValidFunction,i)&&p(h,c))continue;n=h.components.filter(d(i))[0],g=y[i.name]&&y[i.name].canOverride||x.sameValue,D(g,i,n,c)&&(i.unused=!0)}else if(i.shorthand&&!h.shorthand&&f(i,h)){if(h.important&&!i.important)continue;if(o(a,u-1,i.name))continue;if(p(i,c))continue;if(n=i.components.filter(d(h))[0],D(g,n,h,c)){var z=!b.properties.backgroundClipMerging&&n.name.indexOf("background-clip")>-1||!b.properties.backgroundOriginMerging&&n.name.indexOf("background-origin")>-1||!b.properties.backgroundSizeMerging&&n.name.indexOf("background-size")>-1,A=y[h.name].nonMergeableValue===h.value[0][0];if(z||A)continue;if(!b.properties.merging&&e(i,c))continue;if(n.value[0][0]!=h.value[0][0]&&(B(i)||B(h)))continue;if(r(i,h))continue;!i.multiplex&&h.multiplex&&l(i,m(h)),j(n,h),i.dirty=!0}}else if(i.shorthand&&h.shorthand&&i.name==h.name){if(!i.multiplex&&h.multiplex)continue;if(!h.important&&i.important){h.unused=!0;continue a}if(h.important&&!i.important){i.unused=!0;continue}for(w=i.components.length-1;w>=0;w--){var C=i.components[w],F=h.components[w];if(g=y[C.name].canOverride||x.sameValue,!D(g,C,F,c))continue a;if(!D(x.twoOptionalFunctions,C,F,c)&&c.isValidFunction(F))continue a}k(i,h),i.dirty=!0}else if(i.shorthand&&h.shorthand&&f(i,h)){if(!i.important&&h.important)continue;if(n=i.components.filter(d(h))[0],g=y[h.name].canOverride||x.sameValue,!D(g,n,h,c))continue;if(i.important&&!h.important){h.unused=!0;continue}var G=y[h.name].restore(h,y);if(G.length>1)continue;n=i.components.filter(d(h))[0],j(n,h),h.dirty=!0}else if(i.name==h.name){if(i.important&&!h.important){h.unused=!0;continue}if(g=y[h.name].canOverride||x.sameValue,!D(g,i,h,c))continue;i.unused=!0}}var x=a("./can-override"),y=a("./compactable"),z=a("./clone").deep,A=a("./clone").shallow,B=a("./has-inherit"),C=a("./restore-from-optimizing"),D=a("./every-combination"),E=a("./vendor-prefixes").same,F=a("../stringifier/one-time").property,G=",";b.exports=w},{"../stringifier/one-time":45,"./can-override":14,"./clone":15,"./compactable":16,"./every-combination":17,"./has-inherit":18,"./restore-from-optimizing":23,"./vendor-prefixes":27}],21:[function(a,b,c){function d(a,b){for(var c=a.length-1;c>=0;c--){var d=a[c],f=e[d.name];f&&f.shorthand&&(d.shorthand=!0,d.dirty=!0,d.components=f.breakUp(d,e,b),d.components.length>0?d.multiplex=d.components[0].multiplex:d.unused=!0)}}var e=a("./compactable");b.exports=d},{"./compactable":16}],22:[function(a,b,c){function d(a){for(var b=a.length-1;b>=0;b--){var c=a[b];c.unused&&c.all.splice(c.position,1)}}b.exports=d},{}],23:[function(a,b,c){function d(a){a.value[a.value.length-1][0]+=i}function e(a){"underscore"==a.hack?a.name=k+a.name:"star"==a.hack?a.name=j+a.name:"backslash"==a.hack?a.value[a.value.length-1][0]+=h:"bang"==a.hack&&(a.value[a.value.length-1][0]+=" "+l)}function f(a,b){for(var c=a.length-1;c>=0;c--){var f,h=a[c],i=g[h.name];if(!h.unused&&(h.dirty||h.important||h.hack)&&(!b&&i&&i.shorthand?(f=i.restore(h,g),h.value=f):f=h.value,h.important&&d(h),h.hack&&e(h),"all"in h)){var j=h.all[h.position];j[0][0]=h.name,j.splice(1,j.length-1),Array.prototype.push.apply(j,f)}}}var g=a("./compactable"),h="\\9",i="!important",j="*",k="_",l="!ie";b.exports=f},{"./compactable":16}],24:[function(a,b,c){function d(a){for(var b=0,c=a.length;c>b;b++){var d=a[b][0];if("inherit"!=d&&d!=k&&d!=l)return!1}return!0}function e(a,b,c){function e(a){Array.prototype.unshift.apply(j,a.value)}function f(a){var c=b[a.name];return c.doubleValues?1==c.defaultValue.length?a.value[0][0]==c.defaultValue[0]&&(a.value[1]?a.value[1][0]==c.defaultValue[0]:!0):a.value[0][0]==c.defaultValue[0]&&(a.value[1]?a.value[1][0]:a.value[0][0])==c.defaultValue[1]:a.value[0][0]==c.defaultValue}for(var g,h,i=a.components,j=[],k=i.length-1;k>=0;k--){var m=i[k],n=f(m);if("background-clip"==m.name){var o=i[k-1],p=f(o);g=m.value[0][0]==o.value[0][0],h=!g&&(p&&!n||!p&&!n||!p&&n&&m.value[0][0]!=o.value[0][0]),g?e(o):h&&(e(m),e(o)),k--}else if("background-size"==m.name){var q=i[k-1],r=f(q);g=!r&&n,h=!g&&(r&&!n||!r&&!n),g?e(q):h?(e(m),j.unshift([l]),e(q)):1==q.value.length&&e(q),k--}else{if(n||b[m.name].multiplexLastOnly&&!c)continue;e(m)}}return 0===j.length&&1==a.value.length&&"0"==a.value[0][0]&&j.push(a.value[0]),0===j.length&&j.push([b[a.name].defaultValue]),d(j)?[j[0]]:j}function f(a,b){if(a.multiplex){for(var c=j(a),d=j(a),e=0;4>e;e++){var f=a.components[e],h=j(a);h.value=[f.value[0]],c.components.push(h);var i=j(a);i.value=[f.value[2]],d.components.push(i)}var k=g(c,b),l=g(d,b);return k.length!=l.length||k[0][0]!=l[0][0]||(k.length>1?k[1][0]!=l[1][0]:0)||(k.length>2?k[2][0]!=l[2][0]:0)||(k.length>3?k[3][0]!=l[3][0]:0)?k.concat([["/"]]).concat(l):k}return g(a,b)}function g(a){var b=a.components,c=b[0].value[0],d=b[1].value[0],e=b[2].value[0],f=b[3].value[0];return c[0]==d[0]&&c[0]==e[0]&&c[0]==f[0]?[c]:c[0]==e[0]&&d[0]==f[0]?[c,d]:d[0]==f[0]?[c,d,e]:[c,d,e,f]}function h(a){return function(b,c){if(!b.multiplex)return a(b,c,!0);var d,e,f=0,g=[],h={};for(d=0,e=b.components[0].value.length;e>d;d++)b.components[0].value[d][0]==k&&f++;for(d=0;f>=d;d++){for(var i=j(b),l=0,m=b.components.length;m>l;l++){var n=b.components[l],o=j(n);i.components.push(o);for(var p=h[o.name]||0,q=n.value.length;q>p;p++){if(n.value[p][0]==k){h[o.name]=p+1;break}o.value.push(n.value[p])}}var r=d==f,s=a(i,c,r);Array.prototype.push.apply(g,s),f>d&&g.push([","])}return g}}function i(a,b){for(var c=a.components,e=[],f=c.length-1;f>=0;f--){var g=c[f],h=b[g.name];g.value[0][0]!=h.defaultValue&&e.unshift(g.value[0])}return 0===e.length&&e.push([b[a.name].defaultValue]),d(e)?[e[0]]:e}var j=a("./clone").shallow,k=",",l="/";b.exports={background:e,borderRadius:f,fourValues:g,multiplex:h,withoutDefaults:i}},{"./clone":15}],25:[function(a,b,c){function d(a){var b;for(var c in a){if(void 0!==b&&a[c].important!=b)return!0;b=a[c].important}return!1}function e(a){var b=[];for(var c in a){var d=a[c],e=d.all[d.position],f=e[0][e[0].length-1];Array.isArray(f)&&Array.prototype.push.apply(b,f)}return b}function f(a,b,c,d,f){var g,h=i[c],o=[[c],[h.defaultValue]],p=m(o);p.shorthand=!0,p.dirty=!0,l([p],f);for(var q=0,r=h.components.length;r>q;q++){var s=b[h.components[q]],t=i[s.name].canOverride;if(k(s))return;if(!n(t,p.components[q],s,f))return;p.components[q]=j(s),p.important=s.important,g=s.all}for(var u in b)b[u].unused=!0;if(d){var v=e(b);v.length>0&&o[0].push(v)}p.position=g.length,p.all=g,p.all.push(o),a.push(p)}function g(a,b,c,e,g){var h=a[b];for(var j in c)if(void 0===h||j!=h.name){var k=i[j],l=c[j];k.components.length>Object.keys(l).length?delete c[j]:d(l)||f(a,l,j,e,g)}}function h(a,b,c){var d={};if(!(a.length<3)){for(var e=0,f=a.length;f>e;e++){var h=a[e];if(!h.unused&&!h.hack&&!h.variable){var j=i[h.name];if(j&&j.componentOf)if(h.shorthand)g(a,e,d,b,c);else{var k=j.componentOf;d[k]=d[k]||{},d[k][h.name]=h}}}g(a,e,d,b,c)}}var i=a("./compactable"),j=a("./clone").deep,k=a("./has-inherit"),l=a("./populate-components"),m=a("./wrap-for-optimizing").single,n=a("./every-combination");b.exports=h},{"./clone":15,"./compactable":16,"./every-combination":17,"./has-inherit":18,"./populate-components":21,"./wrap-for-optimizing":28}],26:[function(a,b,c){function d(a){var b=g.slice(0).filter(function(b){return!(b in a.units)||a.units[b]===!0}),c="(\\-?\\.?\\d+\\.?\\d*("+b.join("|")+"|)|auto|inherit)";this.compatibleCssUnitRegex=new RegExp("^"+c+"$","i"),this.compatibleCssUnitAnyRegex=new RegExp("^(none|"+f.join("|")+"|"+c+"|"+l+"|"+j+"|"+k+")$","i"),this.colorOpacity=a.colors.opacity}var e=a("../utils/split"),f=["thin","thick","medium","inherit","initial"],g=["px","%","em","in","cm","mm","ex","pt","pc","ch","rem","vh","vm","vmin","vmax","vw"],h="(\\-?\\.?\\d+\\.?\\d*("+g.join("|")+"|)|auto|inherit)",i="(\\-moz\\-|\\-webkit\\-)?calc\\([^\\)]+\\)",j="[A-Z]+(\\-|[A-Z]|[0-9])+\\(.*?\\)",k="\\-(\\-|[A-Z]|[0-9])+\\(.*?\\)",l="var\\(\\-\\-[^\\)]+\\)",m="("+l+"|"+j+"|"+k+")",n="("+h+"|"+i+")",o="(none|"+f.join("|")+"|"+h+"|"+l+"|"+j+"|"+k+")",p=new RegExp("^"+j+"$","i"),q=new RegExp("^"+k+"$","i"),r=new RegExp("^"+l+"$","i"),s=new RegExp("^"+m+"$","i"),t=new RegExp("^"+h+"$","i"),u=new RegExp("^"+n+"$","i"),v=new RegExp("^"+o+"$","i"),w=["repeat","no-repeat","repeat-x","repeat-y","inherit"],x=["inherit","scroll","fixed","local"],y=["center","top","bottom","left","right"],z=["contain","cover"],A=["border-box","content-box","padding-box"],B=["auto","inherit","hidden","none","dotted","dashed","solid","double","groove","ridge","inset","outset"],C=["armenian","circle","cjk-ideographic","decimal","decimal-leading-zero","disc","georgian","hebrew","hiragana","hiragana-iroha","inherit","katakana","katakana-iroha","lower-alpha","lower-greek","lower-latin","lower-roman","none","square","upper-alpha","upper-latin","upper-roman"],D=["inside","outside","inherit"];d.prototype.isValidHexColor=function(a){return(4===a.length||7===a.length)&&"#"===a[0]},d.prototype.isValidRgbaColor=function(a){return a=a.split(" ").join(""),a.length>0&&0===a.indexOf("rgba(")&&a.indexOf(")")===a.length-1},d.prototype.isValidHslaColor=function(a){return a=a.split(" ").join(""),a.length>0&&0===a.indexOf("hsla(")&&a.indexOf(")")===a.length-1},d.prototype.isValidNamedColor=function(a){return"auto"!==a&&("transparent"===a||"inherit"===a||/^[a-zA-Z]+$/.test(a))},d.prototype.isValidVariable=function(a){return r.test(a)},d.prototype.isValidColor=function(a){return this.isValidNamedColor(a)||this.isValidColorValue(a)||this.isValidVariable(a)||this.isValidVendorPrefixedValue(a)},d.prototype.isValidColorValue=function(a){return this.isValidHexColor(a)||this.isValidRgbaColor(a)||this.isValidHslaColor(a)},d.prototype.isValidUrl=function(a){return 0===a.indexOf("__ESCAPED_URL_CLEAN_CSS")},d.prototype.isValidUnit=function(a){return v.test(a)},d.prototype.isValidUnitWithoutFunction=function(a){ return t.test(a)},d.prototype.isValidAndCompatibleUnit=function(a){return this.compatibleCssUnitAnyRegex.test(a)},d.prototype.isValidAndCompatibleUnitWithoutFunction=function(a){return this.compatibleCssUnitRegex.test(a)},d.prototype.isValidFunctionWithoutVendorPrefix=function(a){return p.test(a)},d.prototype.isValidFunctionWithVendorPrefix=function(a){return q.test(a)},d.prototype.isValidFunction=function(a){return s.test(a)},d.prototype.isValidBackgroundRepeat=function(a){return w.indexOf(a)>=0||this.isValidVariable(a)},d.prototype.isValidBackgroundAttachment=function(a){return x.indexOf(a)>=0||this.isValidVariable(a)},d.prototype.isValidBackgroundBox=function(a){return A.indexOf(a)>=0||this.isValidVariable(a)},d.prototype.isValidBackgroundPositionPart=function(a){return y.indexOf(a)>=0||u.test(a)||this.isValidVariable(a)},d.prototype.isValidBackgroundPosition=function(a){if("inherit"===a)return!0;for(var b=a.split(" "),c=0,d=b.length;d>c;c++)if(""!==b[c]&&!this.isValidBackgroundPositionPart(b[c])&&!this.isValidVariable(b[c]))return!1;return!0},d.prototype.isValidBackgroundSizePart=function(a){return z.indexOf(a)>=0||t.test(a)||this.isValidVariable(a)},d.prototype.isValidBackgroundPositionAndSize=function(a){if(a.indexOf("/")<0)return!1;var b=e(a,"/");return this.isValidBackgroundSizePart(b.pop())&&this.isValidBackgroundPositionPart(b.pop())},d.prototype.isValidListStyleType=function(a){return C.indexOf(a)>=0||this.isValidVariable(a)},d.prototype.isValidListStylePosition=function(a){return D.indexOf(a)>=0||this.isValidVariable(a)},d.prototype.isValidStyle=function(a){return this.isValidStyleKeyword(a)||this.isValidVariable(a)},d.prototype.isValidStyleKeyword=function(a){return B.indexOf(a)>=0},d.prototype.isValidWidth=function(a){return this.isValidUnit(a)||this.isValidWidthKeyword(a)||this.isValidVariable(a)},d.prototype.isValidWidthKeyword=function(a){return f.indexOf(a)>=0},d.prototype.isValidVendorPrefixedValue=function(a){return/^-([A-Za-z0-9]|-)*$/gi.test(a)},d.prototype.areSameFunction=function(a,b){if(!this.isValidFunction(a)||!this.isValidFunction(b))return!1;var c=a.substring(0,a.indexOf("(")),d=b.substring(0,b.indexOf("("));return c===d},b.exports=d},{"../utils/split":66}],27:[function(a,b,c){function d(a){for(var b=[],c=0,d=a.length;d>c;c++)for(var e=a[c],g=0,h=e.value.length;h>g;g++){var i=f.exec(e.value[g][0]);i&&-1==b.indexOf(i[0])&&b.push(i[0])}return b}function e(a,b){return d(a).sort().join(",")==d(b).sort().join(",")}var f=/$\-moz\-|\-ms\-|\-o\-|\-webkit\-/;b.exports={same:e}},{}],28:[function(a,b,c){function d(a){for(var b=[],c=a.length-1;c>=0;c--)if("string"!=typeof a[c][0]){var d=k(a[c]);d.all=a,d.position=c,b.unshift(d)}return b}function e(a){for(var b=1,c=a.length;c>b;b++)if(","==a[b][0]||"/"==a[b][0])return!0;return!1}function f(a){var b=!1,c=a[0][0],d=a[a.length-1];return c[0]==r?b="underscore":c[0]==q?b="star":d[0][0]!=s||d[0].match(o)?d[0].indexOf(s)>0&&!d[0].match(o)?b="bang":d[0].indexOf(l)>0&&d[0].indexOf(l)==d[0].length-l.length-1?b="backslash":0===d[0].indexOf(l)&&2==d[0].length&&(b="backslash"):b="bang",b}function g(a){if(a.length>1){var b=a[a.length-1][0];if("string"==typeof b)return p.test(b)}return!1}function h(a){a.length>0&&(a[a.length-1][0]=a[a.length-1][0].replace(p,""))}function i(a){a[0][0]=a[0][0].substring(1)}function j(a,b){var c=a[a.length-1];c[0]=c[0].substring(0,c[0].indexOf("backslash"==b?l:s)).trim(),0===c[0].length&&a.pop()}function k(a){var b=g(a);b&&h(a);var c=f(a);"star"==c||"underscore"==c?i(a):"backslash"!=c&&"bang"!=c||j(a,c);var d=0===a[0][0].indexOf("--");return{block:d&&a[1]&&Array.isArray(a[1][0][0]),components:[],dirty:!1,hack:c,important:b,name:a[0][0],multiplex:a.length>2?e(a):!1,position:0,shorthand:!1,unused:a.length<2,value:a.slice(1),variable:d}}var l="\\",m="important",n="!"+m,o=new RegExp(m+"$","i"),p=new RegExp(n+"$","i"),q="*",r="_",s="!";b.exports={all:d,single:k}},{}],29:[function(a,b,c){function d(a){for(var b=0,c=a.length;c>b;b++){var e=a[b],f=!1;switch(e[0]){case"selector":f=0===e[1].length||0===e[2].length;break;case"block":d(e[2]),f=0===e[2].length}f&&(a.splice(b,1),b--,c--)}}function e(a,b,c){for(var d=0,e=a.length;e>d;d++){var f=a[d];if("block"==f[0]){var h=/@(-moz-|-o-|-webkit-)?keyframes/.test(f[1][0]);g(f[2],b,c,!h)}}}function f(a,b,c){for(var d=0,e=a.length;e>d;d++){var g=a[d];switch(g[0]){case"selector":h(g[1],g[2],!1,!0,b,c);break;case"block":f(g[2],b,c)}}}function g(a,b,c,h){if(e(a,b,c),f(a,b,c),i(a),j(a,b,c),k(a,b,c),l(a,b,c),m(a,b),b.restructuring&&h&&(n(a,b),j(a,b,c)),b.mediaMerging){o(a);for(var q=p(a),r=q.length-1;r>=0;r--)g(q[r][2],b,c,!1)}d(a)}var h=a("../properties/optimizer"),i=a("./remove-duplicates"),j=a("./merge-adjacent"),k=a("./reduce-non-adjacent"),l=a("./merge-non-adjacent-by-selector"),m=a("./merge-non-adjacent-by-body"),n=a("./restructure"),o=a("./remove-duplicate-media-queries"),p=a("./merge-media-queries");b.exports=g},{"../properties/optimizer":19,"./merge-adjacent":33,"./merge-media-queries":34,"./merge-non-adjacent-by-body":35,"./merge-non-adjacent-by-selector":36,"./reduce-non-adjacent":37,"./remove-duplicate-media-queries":38,"./remove-duplicates":39,"./restructure":41}],30:[function(a,b,c){function d(a,b){return"["+b.replace(/ /g,"")+"]"}function e(a,b){return a[0]>b[0]?1:-1}function f(a,b,c,d){return b&&c&&d.length?b+c+" ":b&&c?b+c:c}var g={selectors:function(a,b,c){for(var g=[],h=[],i=0,j=a.length;j>i;i++){var k=a[i],l=k[0].replace(/\s+/g," ").replace(/ ?, ?/g,",").replace(/\s*(\\)?([>+~])(\s*)/g,f).trim();c&&l.indexOf("nav")>0&&(l=l.replace(/\+nav(\S|$)/,"+ nav$1")),(!b||-1==l.indexOf("*+html ")&&-1==l.indexOf("*:first-child+html "))&&(l.indexOf("*")>-1&&(l=l.replace(/\*([:#\.\[])/g,"$1").replace(/^(\:first\-child)?\+html/,"*$1+html")),l.indexOf("[")>-1&&(l=l.replace(/\[([^\]]+)\]/g,d)),-1==h.indexOf(l)&&(k[0]=l,h.push(l),g.push(k)))}return g.sort(e)},selectorDuplicates:function(a){for(var b=[],c=[],d=0,f=a.length;f>d;d++){var g=a[d];-1==c.indexOf(g[0])&&(c.push(g[0]),b.push(g))}return b.sort(e)},block:function(a,b){a[0]=a[0].replace(/\s+/g," ").replace(/(,|:|\() /g,"$1").replace(/ \)/g,")"),b||(a[0]=a[0].replace(/\) /g,")"))},atRule:function(a){a[0]=a[0].replace(/\s+/g," ").trim()}};b.exports=g},{}],31:[function(a,b,c){function d(a){var b=[];if("selector"==a[0])for(var c=!/[\.\+>~]/.test(f(a[1])),i=0,j=a[2].length;j>i;i++){var k=a[2][i];if(0!==k.indexOf("__ESCAPED")&&k[0]!=h){var l=a[2][i][0][0];if(0!==l.length&&0!==l.indexOf("--")){var m=g(a[2],i);b.push([l,m,e(l),a[2][i],l+":"+m,a[1],c])}}}else if("block"==a[0])for(var n=0,o=a[2].length;o>n;n++)b=b.concat(d(a[2][n]));return b}function e(a){return"list-style"==a?a:a.indexOf("-radius")>0?"border-radius":"border-collapse"==a||"border-spacing"==a||"border-image"==a?a:0===a.indexOf("border-")&&/^border\-\w+\-\w+$/.test(a)?a.match(/border\-\w+/)[0]:0===a.indexOf("border-")&&/^border\-\w+$/.test(a)?"border":0===a.indexOf("text-")?a:a.replace(/^\-\w+\-/,"").match(/([a-zA-Z]+)/)[0].toLowerCase()}var f=a("../stringifier/one-time").selectors,g=a("../stringifier/one-time").value,h="at-rule";b.exports=d},{"../stringifier/one-time":45}],32:[function(a,b,c){function d(a,b){return a.compatibility.selectors.special.test(b)}b.exports=d},{}],33:[function(a,b,c){function d(a,b,c){for(var d=[null,[],[]],j=b.compatibility.selectors.adjacentSpace,k=0,l=a.length;l>k;k++){var m=a[k];if("selector"==m[0])if("selector"==d[0]&&g(m[1])==g(d[1])){var n=[d[2].length];Array.prototype.push.apply(d[2],m[2]),e(m[1],d[2],n,!0,b,c),m[2]=[]}else"selector"!=d[0]||f(m[2])!=f(d[2])||i(b,g(m[1]))||i(b,g(d[1]))?d=m:(d[1]=h(d[1].concat(m[1]),!1,j),m[2]=[]);else d=[null,[],[]]}}var e=a("../properties/optimizer"),f=a("../stringifier/one-time").body,g=a("../stringifier/one-time").selectors,h=a("./clean-up").selectors,i=a("./is-special");b.exports=d},{"../properties/optimizer":19,"../stringifier/one-time":45,"./clean-up":30,"./is-special":32}],34:[function(a,b,c){function d(a){for(var b={},c=[],d=a.length-1;d>=0;d--){var g=a[d];if("block"==g[0]){var h=b[g[1][0]];h||(h=[],b[g[1][0]]=h),h.push(d)}}for(var i in b){var j=b[i];a:for(var k=j.length-1;k>0;k--){var l=j[k],m=a[l],n=j[k-1],o=a[n];b:for(var p=1;p>=-1;p-=2){for(var q=1==p,r=q?l+1:n-1,s=q?n:l,t=q?1:-1,u=q?m:o,v=q?o:m,w=f(u);r!=s;){var x=f(a[r]);if(r+=t,!e(w,x))continue b}v[2]=q?u[2].concat(v[2]):v[2].concat(u[2]),u[2]=[],c.push(v);continue a}}}return c}var e=a("./reorderable").canReorder,f=a("./extractor");b.exports=d},{"./extractor":31,"./reorderable":40}],35:[function(a,b,c){function d(a){return/\.|\*| :/.test(a)}function e(a){var b=j(a[1]);return b.indexOf("__")>-1||b.indexOf("--")>-1}function f(a){return a.replace(/--[^ ,>\+~:]+/g,"")}function g(a,b){var c=f(j(a[1]));for(var d in b){var e=b[d],g=f(j(e[1]));(g.indexOf(c)>-1||c.indexOf(g)>-1)&&delete b[d]}}function h(a,b){for(var c={},f=b.compatibility.selectors.adjacentSpace,h=a.length-1;h>=0;h--){var m=a[h];if("selector"==m[0]){m[2].length>0&&!b.semanticMerging&&d(j(m[1]))&&(c={}),m[2].length>0&&b.semanticMerging&&e(m)&&g(m,c);var n=i(m[2]),o=c[n];!o||l(b,j(m[1]))||l(b,j(o[1]))||(m[1]=m[2].length>0?k(o[1].concat(m[1]),!1,f):o[1].concat(m[1]),o[2]=[],c[n]=null),c[i(m[2])]=m}}}var i=a("../stringifier/one-time").body,j=a("../stringifier/one-time").selectors,k=a("./clean-up").selectors,l=a("./is-special");b.exports=h},{"../stringifier/one-time":45,"./clean-up":30,"./is-special":32}],36:[function(a,b,c){function d(a,b,c){var d,i={},j=[];for(d=a.length-1;d>=0;d--)if("selector"==a[d][0]&&0!==a[d][2].length){var k=f(a[d][1]);i[k]=[d].concat(i[k]||[]),2==i[k].length&&j.push(k)}for(d=j.length-1;d>=0;d--){var l=i[j[d]];a:for(var m=l.length-1;m>0;m--){var n=l[m-1],o=a[n],p=l[m],q=a[p];b:for(var r=1;r>=-1;r-=2){for(var s,t=1==r,u=t?n+1:p-1,v=t?p:n,w=t?1:-1,x=t?o:q,y=t?q:o,z=g(x);u!=v;){var A=g(a[u]);u+=w;var B=t?h(z,A):h(A,z);if(!B&&!t)continue a;if(!B&&t)continue b}t?(s=[x[2].length],Array.prototype.push.apply(x[2],y[2]),y[2]=x[2]):(s=[y[2].length],Array.prototype.push.apply(y[2],x[2])),e(y[1],y[2],s,!0,b,c),x[2]=[]}}}}var e=a("../properties/optimizer"),f=a("../stringifier/one-time").selectors,g=a("./extractor"),h=a("./reorderable").canReorder;b.exports=d},{"../properties/optimizer":19,"../stringifier/one-time":45,"./extractor":31,"./reorderable":40}],37:[function(a,b,c){function d(a,b,c){for(var d={},h=[],i=a.length-1;i>=0;i--){var j=a[i];if("selector"==j[0]&&0!==j[2].length)for(var m=k(j[1]),n=j[1].length>1&&!l(b,m),o=b.sourceMap?e(j[1]):j[1],p=n?[m].concat(o):[m],q=0,r=p.length;r>q;q++){var s=p[q];d[s]?h.push(s):d[s]=[],d[s].push({where:i,list:o,isPartial:n&&q>0,isComplex:n&&0===q})}}f(a,h,d,b,c),g(a,d,b,c)}function e(a){for(var b=[],c=0;ci;i++){var k=b[i],l=c[k];h(a,k,l,{filterOut:f,callback:g},d,e)}}function g(a,b,c,d){function e(a){return g.data[a].whereq;q++){var s=p[q],t=b[s];if(t.length<2)continue a;if(g.data=t,h(a,s,t,{filterOut:e,callback:f},c,d),j(o[o.length-1])!=j(o[0]))continue a}n[2]=o[0]}}}function h(a,b,c,d,e,f){for(var g=[],h=[],j=[],k=[],l=c.length-1,n=0;l>=0;l--)if(!d.filterOut(l,g)){var o=c[l].where,p=a[o],q=m(p[2]);g=g.concat(q),h.push(q),k.push(o)}for(l=0,n=h.length;n>l;l++)h[l].length>0&&j.push((j[l-1]||0)+h[l].length);i(b,g,j,!1,e,f);for(var r=k.length,s=g.length-1,t=r-1;t>=0;)if((0===t||g[s]&&h[t].indexOf(g[s])>-1)&&s>-1)s--;else{var u=g.splice(s+1);d.callback(a[k[t]],u,r,t),t--}}var i=a("../properties/optimizer"),j=a("../stringifier/one-time").body,k=a("../stringifier/one-time").selectors,l=a("./is-special"),m=a("../utils/clone-array");b.exports=d},{"../properties/optimizer":19,"../stringifier/one-time":45,"../utils/clone-array":59,"./is-special":32}],38:[function(a,b,c){function d(a){for(var b={},c=0,d=a.length;d>c;c++){var f=a[c];if("block"==f[0]){var g=f[1][0]+"%"+e(f[2]),h=b[g];h&&(h[2]=[]),b[g]=f}}}var e=a("../stringifier/one-time").all;b.exports=d},{"../stringifier/one-time":45}],39:[function(a,b,c){function d(a){for(var b,c,d,g,h={},i=[],j=0,k=a.length;k>j;j++)c=a[j],"selector"==c[0]&&(b=f(c[1]),h[b]&&1==h[b].length?i.push(b):h[b]=h[b]||[],h[b].push(j));for(j=0,k=i.length;k>j;j++){b=i[j],g=[];for(var l=h[b].length-1;l>=0;l--)c=a[h[b][l]],d=e(c[2]),g.indexOf(d)>-1?c[2]=[]:g.push(d)}}var e=a("../stringifier/one-time").body,f=a("../stringifier/one-time").selectors;b.exports=d},{"../stringifier/one-time":45}],40:[function(a,b,c){function d(a,b){for(var c=b.length-1;c>=0;c--)for(var d=a.length-1;d>=0;d--)if(!e(a[d],b[c]))return!1;return!0}function e(a,b){var c=a[0],d=a[1],e=a[2],o=a[5],p=a[6],q=b[0],r=b[1],s=b[2],t=b[5],u=b[6];return"font"==c&&"line-height"==q||"font"==q&&"line-height"==c?!1:m.test(c)&&m.test(q)?!1:e==s&&g(c)==g(q)&&f(c)^f(q)?!1:("border"!=e||!n.test(s)||"border"!=c&&c!=s)&&("border"!=s||!n.test(e)||"border"!=q&&q!=e)?"border"==e&&"border"==s&&c!=q&&(h(c)&&i(q)||i(c)&&h(q))?!1:e!=s?!0:c!=q||e!=s||d!=r&&!j(d,r)?c!=q&&e==s&&c!=e&&q!=s?!0:c!=q&&e==s&&d==r?!0:!(!u||!p||l(e)||l(s)||!k(t,o)):!0:!1}function f(a){return/^\-(?:moz|webkit|ms|o)\-/.test(a)}function g(a){return a.replace(/^\-(?:moz|webkit|ms|o)\-/,"")}function h(a){return"border-top"==a||"border-right"==a||"border-bottom"==a||"border-left"==a}function i(a){return"border-color"==a||"border-style"==a||"border-width"==a}function j(a,b){return f(a)&&f(b)&&a.split("-")[1]!=b.split("-")[2]}function k(a,b){for(var c=0,d=a.length;d>c;c++)for(var e=0,f=b.length;f>e;e++)if(a[c][0]==b[e][0])return!1;return!0}function l(a){return"font"==a||"line-height"==a||"list-style"==a}var m=/align\-items|box\-align|box\-pack|flex|justify/,n=/^border\-(top|right|bottom|left|color|style|width|radius)/;b.exports={canReorder:d,canReorderSingle:e}},{}],41:[function(a,b,c){function d(a,b){return a>b}function e(a,b){var c=m(a);return c[5]=c[5].concat(b[5]),c}function f(a,b){function c(a,b,c){for(var d=c.length-1;d>=0;d--){var e=c[d][0],g=f(b,e);if(B[g].length>1&&x(a,B[g])){m(g);break}}}function f(a,b){var c=n(b);return B[c]=B[c]||[],B[c].push([a,b]),c}function m(a){var b,c=a.split(E),d=[];for(var e in B){var f=e.split(E);for(b=f.length-1;b>=0;b--)if(c.indexOf(f[b])>-1){d.push(e);break}}for(b=d.length-1;b>=0;b--)delete B[d[b]]}function n(a){for(var b=[],c=0,d=a.length;d>c;c++)b.push(j(a[c][1]));return b.join(E)}function o(a){for(var c=[],d=[],e=a.length-1;e>=0;e--)l(b,j(a[e][1]))||(d.unshift(a[e]),a[e][2].length>0&&-1==c.indexOf(a[e])&&c.push(a[e]));return c.length>1?d:[]}function p(a,b){var d=b[0],e=b[1],f=b[4],g=d.length+e.length+1,h=[],i=[],j=o(z[f]);if(!(j.length<2)){var l=r(j,g,1),m=l[0];if(m[1]>0)return c(a,b,l);for(var n=m[0].length-1;n>=0;n--)h=m[0][n][1].concat(h),i.unshift(m[0][n]);h=k(h),u(a,[b],h,i)}}function q(a,b){return a[1]>b[1]}function r(a,b,c){var d=s(a,b,c,D-1);return d.sort(q)}function s(a,b,c,d){var e=[[a,t(a,b,c)]];if(a.length>2&&d>0)for(var f=a.length-1;f>=0;f--){var g=Array.prototype.slice.call(a,0);g.splice(f,1),e=e.concat(s(g,b,c,d-1))}return e}function t(a,b,c){for(var d=0,e=a.length-1;e>=0;e--)d+=a[e][2].length>c?j(a[e][1]).length:-1;return d-(a.length-1)*b+1}function u(b,c,d,e){var f,g,h,j,k=[];for(f=e.length-1;f>=0;f--){var l=e[f];for(g=l[2].length-1;g>=0;g--){var m=l[2][g];for(h=0,j=c.length;j>h;h++){var n=c[h],o=m[0][0],p=n[0],q=n[4];if(o==p&&i([m])==q){l[2].splice(g,1);break}}}}for(f=c.length-1;f>=0;f--)k.unshift(c[f][3]);var r=["selector",d,k];a.splice(b,0,r)}function v(a,b){var c=b[4],d=z[c];d&&d.length>1&&(w(a,b)||p(a,b))}function w(a,b){var c,d,e=[],f=[],g=b[4],h=o(z[g]);if(!(h.length<2)){a:for(var i in z){var j=z[i];for(c=h.length-1;c>=0;c--)if(-1==j.indexOf(h[c]))continue a;e.push(i)}if(e.length<2)return!1;for(c=e.length-1;c>=0;c--)for(d=A.length-1;d>=0;d--)if(A[d][4]==e[c]){f.unshift([A[d],h]);break}return x(a,f)}}function x(a,b){for(var c,d=0,e=[],f=b.length-1;f>=0;f--){c=b[f][0];var g=c[4];d+=g.length+(f>0?1:0),e.push(c)}var h=b[0][1],i=r(h,d,e.length)[0];if(i[1]>0)return!1;var j=[],l=[];for(f=i[0].length-1;f>=0;f--)j=i[0][f][1].concat(j),l.unshift(i[0][f]);for(j=k(j),u(a,e,j,l),f=e.length-1;f>=0;f--){c=e[f];var m=A.indexOf(c);delete z[c[4]],m>-1&&-1==C.indexOf(m)&&C.push(m)}return!0}function y(a,b,c){var d=a[0],e=b[0];if(d!=e)return!1;var f=b[4],g=z[f];return g&&g.indexOf(c)>-1}for(var z={},A=[],B={},C=[],D=2,E="%",F=a.length-1;F>=0;F--){var G,H,I,J,K,L=a[F];if("selector"==L[0])G=!0;else{if("block"!=L[0])continue;G=!1}var M=A.length,N=g(L);C=[];var O=[];for(H=N.length-1;H>=0;H--)for(I=H-1;I>=0;I--)if(!h(N[H],N[I])){O.push(H);break}for(H=N.length-1;H>=0;H--){var P=N[H],Q=!1;for(I=0;M>I;I++){var R=A[I];-1!=C.indexOf(I)||h(P,R)||y(P,R,L)||(v(F+1,R,L),-1==C.indexOf(I)&&(C.push(I),delete z[R[4]])),Q||(Q=P[0]==R[0]&&P[1]==R[1],Q&&(K=I))}if(G&&!(O.indexOf(H)>-1)){var S=P[4];z[S]=z[S]||[],z[S].push(L),Q?A[K]=e(A[K],P):A.push(P)}}for(C=C.sort(d),H=0,J=C.length;J>H;H++){var T=C[H]-H;A.splice(T,1)}}for(var U=a[0]&&"at-rule"==a[0][0]&&0===a[0][1][0].indexOf("@charset")?1:0;U-1&&(b=b.replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2").replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2")),b.replace(/(^|\s)0+([1-9])/g,"$1$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/\.([1-9]*)0+(\D|$)/g,function(a,b,c){return(b.length>0?".":"")+b+c}).replace(/(^|\D)0\.(\d)/g,"$1.$2"))}function f(a,b){return-1==b.indexOf("0deg")?b:b.replace(/\(0deg\)/g,"(0)")}function g(a,b){return a.indexOf("filter")>-1||-1==b.indexOf(" ")?b:(b=b.replace(/\s+/g," "),b.indexOf("calc")>-1&&(b=b.replace(/\) ?\/ ?/g,")/ ")),b.replace(/\( /g,"(").replace(/ \)/g,")").replace(/, /g,","))}function h(a,b,c){return-1===c.value||-1===b.indexOf(".")?b:b.replace(c.regexp,function(a,b){return Math.round(parseFloat(b)*c.multiplier)/c.multiplier+"px"}).replace(/(\d)\.($|\D)/g,"$1$2")}function i(a,b,c){return/^(?:\-moz\-calc|\-webkit\-calc|calc)\(/.test(b)?b:"flex"==a||"-ms-flex"==a||"-webkit-flex"==a||"flex-basis"==a||"-webkit-flex-basis"==a?b:b.indexOf("%")>0&&("height"==a||"max-height"==a)?b:b.replace(c,"$10$2").replace(c,"$10$2")}function j(a){var b,c=a.value;4==c.length&&"0"===c[0][0]&&"0"===c[1][0]&&"0"===c[2][0]&&"0"===c[3][0]&&(b=a.name.indexOf("box-shadow")>-1?2:1),b&&(a.value.splice(b),a.dirty=!0)}function k(a,b,c){return-1===b.indexOf("#")&&-1==b.indexOf("rgb")&&-1==b.indexOf("hsl")?B.shorten(b):(b=b.replace(/rgb\((\-?\d+),(\-?\d+),(\-?\d+)\)/g,function(a,b,c,d){return new z(b,c,d).toHex()}).replace(/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/g,function(a,b,c,d){return new A(b,c,d).toHex()}).replace(/(^|[^='"])#([0-9a-f]{6})/gi,function(a,b,c){return c[0]==c[1]&&c[2]==c[3]&&c[4]==c[5]?b+"#"+c[0]+c[2]+c[4]:b+"#"+c}).replace(/(rgb|rgba|hsl|hsla)\(([^\)]+)\)/g,function(a,b,c){var d=c.split(","),e="hsl"==b&&3==d.length||"hsla"==b&&4==d.length||"rgb"==b&&3==d.length&&c.indexOf("%")>0||"rgba"==b&&4==d.length&&c.indexOf("%")>0;return e?(-1==d[1].indexOf("%")&&(d[1]+="%"),-1==d[2].indexOf("%")&&(d[2]+="%"),b+"("+d.join(",")+")"):a}),c.colors.opacity&&-1==a.indexOf("background")&&(b=b.replace(/(?:rgba|hsla)\(0,0%?,0%?,0\)/g,function(a){return y(b,",").pop().indexOf("gradient(")>-1?a:"transparent"})),B.shorten(b))}function l(a,b,c){return L.test(b)?b.replace(L,function(a,b){var d,e=parseInt(b);return 0===e?a:(c.properties.shorterLengthUnits&&c.units.pt&&3*e%4===0&&(d=3*e/4+"pt"),c.properties.shorterLengthUnits&&c.units.pc&&e%16===0&&(d=e/16+"pc"),c.properties.shorterLengthUnits&&c.units["in"]&&e%96===0&&(d=e/96+"in"),d&&(d=a.substring(0,a.indexOf(b))+d),d&&d.length-1||b[1]&&I.indexOf(b[1][0])>-1||b[2]&&I.indexOf(b[2][0])>-1;if(!c&&"/"!=b[1]){var d=0;if("normal"==b[0][0]&&d++,b[1]&&"normal"==b[1][0]&&d++,b[2]&&"normal"==b[2][0]&&d++,!(d>1)){var e;K.indexOf(b[0][0])>-1?e=0:b[1]&&K.indexOf(b[1][0])>-1?e=1:b[2]&&K.indexOf(b[2][0])>-1?e=2:J.indexOf(b[0][0])>-1?e=0:b[1]&&J.indexOf(b[1][0])>-1?e=1:b[2]&&J.indexOf(b[2][0])>-1&&(e=2),void 0!==e&&(a.value[e][0]=N["font-weight"](b[e][0]),a.dirty=!0)}}}function q(a,b){for(var c,r,s,t=C(a),u=0,v=t.length;v>u;u++)if(c=t[u],r=c.name,c.hack&&(("star"==c.hack||"underscore"==c.hack)&&!b.compatibility.properties.iePrefixHack||"backslash"==c.hack&&!b.compatibility.properties.ieSuffixHack||"bang"==c.hack&&!b.compatibility.properties.ieBangHack)&&(c.unused=!0),0===r.indexOf("padding")&&(d(c,0)||d(c,1)||d(c,2)||d(c,3))&&(c.unused=!0),!c.unused)if(c.variable)c.block&&q(c.value[0],b);else{for(var w=0,x=c.value.length;x>w;w++)s=c.value[w][0],N[r]&&(s=N[r](s,w,x)),s=g(r,s),s=h(r,s,b.precision),s=l(r,s,b.compatibility),s=m(r,s),s=e(r,s),b.compatibility.properties.zeroUnits&&(s=f(r,s),s=i(r,s,b.unitsRegexp)),b.compatibility.properties.colors&&(s=k(r,s,b.compatibility)),c.value[w][0]=s;j(c),0===r.indexOf("border")&&r.indexOf("radius")>0?n(c):"filter"==r?o(c):"font"==r&&p(c)}D(t,!0),E(t)}function r(a){for(var b=!1,c=0,d=a.length;d>c;c++){var e=a[c];"at-rule"==e[0]&&H.test(e[1][0])&&(b||-1==e[1][0].indexOf(G)?(a.splice(c,1),c--,d--):(b=!0,a.splice(c,1),a.unshift(["at-rule",[e[1][0].replace(H,G)]])))}}function s(a){var b=["px","em","ex","cm","mm","in","pt","pc","%"],c=["ch","rem","vh","vm","vmax","vmin","vw"];return c.forEach(function(c){a.compatibility.units[c]&&b.push(c)}),new RegExp("(^|\\s|\\(|,)0(?:"+b.join("|")+")(\\W|$)","g")}function t(a){var b={};return b.value=void 0===a.roundingPrecision?F:a.roundingPrecision,b.multiplier=Math.pow(10,b.value),b.regexp=new RegExp("(\\d*\\.\\d{"+(b.value+1)+",})px","g"),b}function u(a,b){var c=b.compatibility.selectors.ie7Hack,d=b.compatibility.selectors.adjacentSpace,e=b.compatibility.properties.spaceAfterClosingBrace,f=!1;b.unitsRegexp=s(b),b.precision=t(b);for(var g=0,h=a.length;h>g;g++){var i=a[g];switch(i[0]){case"selector":i[1]=v(i[1],!c,d),q(i[2],b);break;case"block":w(i[1],e),u(i[2],b);break;case"flat-block":w(i[1],e),q(i[2],b);break;case"at-rule":x(i[1]),f=!0}(0===i[1].length||i[2]&&0===i[2].length)&&(a.splice(g,1),g--,h--)}f&&r(a)}var v=a("./clean-up").selectors,w=a("./clean-up").block,x=a("./clean-up").atRule,y=a("../utils/split"),z=a("../colors/rgb"),A=a("../colors/hsl"),B=a("../colors/hex-name-shortener"),C=a("../properties/wrap-for-optimizing").all,D=a("../properties/restore-from-optimizing"),E=a("../properties/remove-unused"),F=2,G="@charset",H=new RegExp("^"+G,"i"),I=["100","200","300","400","500","600","700","800","900"],J=["normal","bold","bolder","lighter"],K=["bold","bolder","lighter"],L=/(?:^|\s|\()(-?\d+)px/,M=/^(\-?[\d\.]+)(m?s)$/,N={background:function(a,b,c){return 0!==b||1!=c||"none"!=a&&"transparent"!=a?a:"0 0"},"font-weight":function(a){return"normal"==a?"400":"bold"==a?"700":a},outline:function(a,b,c){return 0===b&&1==c&&"none"==a?"0":a}};b.exports=u},{"../colors/hex-name-shortener":9,"../colors/hsl":10,"../colors/rgb":11,"../properties/remove-unused":22,"../properties/restore-from-optimizing":23,"../properties/wrap-for-optimizing":28,"../utils/split":66,"./clean-up":30}],43:[function(a,b,c){function d(a,b,c){if(!c&&-1==a.indexOf("\n"))return 0===a.indexOf(i)?a:void(b.column+=a.length);for(var d=0,e=a.split("\n"),f=e.length,g=0;;){if(d==f-1)break;var h=e[d];if(/\S/.test(h))break;g+=h.length+1,d++}return b.line+=d,b.column=d>0?0:b.column,b.column+=/^(\s)*/.exec(e[d])[0].length,a.substring(g).trimLeft()}function e(a,b,c){var d=a.source||b.source;return d&&c.resolvePath?c.resolvePath(b.source,d):d}function f(a,b,c){var d={line:b.line,column:b.column,source:b.source},f=null,g=b.sourceMapTracker.isTracking(d.source)?b.sourceMapTracker.originalPositionFor(d,a,c||0):{};if(d.line=g.line||d.line,d.column=g.column||d.column,d.source=g.sourceResolved?g.source:e(g,d,b),b.sourceMapInlineSources){var h=b.sourceMapTracker.sourcesContentFor(b.source);f=h&&h[d.source]?h:b.sourceReader.sourceAt(b.source)}return f?[d.line,d.column,d.source,f]:[d.line,d.column,d.source]}function g(a,b){for(var c=a.split("\n"),d=0,e=c.length;e>d;d++){var f=c[d],g=0;for(d>0&&(b.line++,b.column=0);;){var h=f.indexOf(i,g);if(-1==h){b.column+=f.substring(g).length;break}b.column+=h-g,g+=h-g;var j=f.substring(h,f.indexOf("__",h+1)+2),k=j.substring(j.indexOf("(")+1,j.indexOf(")")).split(",");b.line+=~~k[0],b.column=(0===~~k[0]?b.column:0)+~~k[1],g+=j.length}}}function h(a,b,c,e){var h=d(a,b,c),i=c?f(h,b,e):[];return h&&g(h,b),i}var i="__ESCAPED_";b.exports=h},{}],44:[function(a,b,c){function d(a,b){for(var c=b,d=a.length;d>c;c++)if("string"!=typeof a[c])return!0;return!1}function e(a){return"background"==a[0][0]||"transform"==a[0][0]||"src"==a[0][0]}function f(a,b){return 0===a[b][0].indexOf("var(")}function g(a,b){return")"==a[b][0][a[b][0].length-1]||0===a[b][0].indexOf("__ESCAPED_URL_CLEAN_CSS")}function h(a,b){return","==a[b][0]}function i(a,b){return"/"==a[b][0]}function j(a,b){return a[b+1]&&","==a[b+1][0]}function k(a,b){return a[b+1]&&"/"==a[b+1][0]}function l(a){return"filter"==a[0][0]||"-ms-filter"==a[0][0]}function m(a,b,c){return(!c.spaceAfterClosingBrace&&e(a)||f(a,b))&&g(a,b)||k(a,b)||i(a,b)||j(a,b)||h(a,b)}function n(a,b){for(var c=b.store,d=0,e=a.length;e>d;d++)c(a[d],b),e-1>d&&c(",",b)}function o(a,b){for(var c=0,d=a.length;d>c;c++)p(a,c,c==d-1,b)}function p(a,b,c,d){var e=d.store,f=a[b];"string"==typeof f?e(f,d):f[0]==v?q(f[1],c,d):(e(f[0],d),e(":",d),r(a,b,c,d))}function q(a,b,c){var d=c.store;d(a,c),b||d(w,c)}function r(a,b,c,e){var f=e.store,g=a[b],h=0===g[0][0].indexOf("--");if(h&&s(g[1]))return f("{",e),o(g[1],e),void f("};",e);for(var i=1,j=g.length;j>i;i++)f(g[i],e),j-1>i&&(l(g)||!m(g,i,e))?f(" ",e):i==j-1&&!c&&d(a,b+1)&&f(w,e)}function s(a){for(var b=0,c=a.length;c>b;b++)if(a[b][0]==v||Array.isArray(a[b][0]))return!0;return!1}function t(a,b){for(var c=b.keepBreaks?u:"",d=b.store,e=0,f=a.length;f>e;e++){var g=a[e];switch(g[0]){case"at-rule":case"text":d(g[1][0],b),d(c,b);break;case"block":n([g[1]],b),d("{",b),t(g[2],b),d("}",b),d(c,b);break;case"flat-block":n([g[1]],b),d("{",b),o(g[2],b),d("}",b),d(c,b);break;default:n(g[1],b),d("{",b),o(g[2],b),d("}",b),d(c,b)}}}var u=a("os").EOL,v="at-rule",w=";";b.exports={all:t,body:o,property:p,selectors:n,value:r}},{os:76}],45:[function(a,b,c){function d(a,b){b.output.push("string"==typeof a?a:a[0])}function e(){return{output:[],store:d}}function f(a){var b=e();return k.all(a,b),b.output.join("")}function g(a){var b=e();return k.body(a,b),b.output.join("")}function h(a,b){var c=e();return k.property(a,b,!0,c),c.output.join("")}function i(a){var b=e();return k.selectors(a,b),b.output.join("")}function j(a,b){var c=e();return k.value(a,b,!0,c),c.output.join("")}var k=a("./helpers");b.exports={all:f,body:g,property:h,selectors:i,value:j}},{"./helpers":44}],46:[function(a,b,c){function d(a,b){b.output.push("string"==typeof a?a:a[0])}function e(a,b,c){var e={keepBreaks:b.keepBreaks,output:[],spaceAfterClosingBrace:b.compatibility.properties.spaceAfterClosingBrace,store:d};return f(a,e,!1),{styles:c(e.output.join("")).trim()}}var f=a("./helpers").all;b.exports=e},{"./helpers":44}],47:[function(a,b,c){(function(c){function d(a,b){var c="string"==typeof a,d=c?a:a[0];d.indexOf("_")>-1&&(d=b.restore(d,e(b.output))),f(d,c?null:a,b),b.output.push(d)}function e(a){for(var b=[],c=a.length-1;c>=0;c--){var d=a[c];if(b.unshift(d),"{"==d||";"==d)break}return b.join("")}function f(a,b,c){b&&g(b,c);var d=a.split("\n");c.line+=d.length-1,c.column=d.length>1?0:c.column+d.pop().length}function g(a,b){var c=a[a.length-1];if(Array.isArray(c))for(var d=0,e=c.length;e>d;d++)h(c[d],b)}function h(a,b){var c=a[2]||m;l&&(c=c.replace(/\\/g,"/")),b.outputMap.addMapping({generated:{line:b.line,column:b.column},source:c,original:{line:a[0],column:a[1]}}),a[3]&&b.outputMap.setSourceContent(c,a[3][a[2]])}function i(a,b,c,e){var f={column:0,inputMapTracker:e,keepBreaks:b.keepBreaks,line:1,output:[],outputMap:new j,restore:c,sourceMapInlineSources:b.sourceMapInlineSources,spaceAfterClosingBrace:b.compatibility.properties.spaceAfterClosingBrace,store:d};return k(a,f,!1),{sourceMap:f.outputMap,styles:f.output.join("").trim()}}var j=a("source-map").SourceMapGenerator,k=a("./helpers").all,l="win32"==c.platform,m="$stdin";b.exports=i}).call(this,a("_process"))},{"./helpers":44,_process:79,"source-map":111}],48:[function(a,b,c){function d(a,b,c,d){this.comments=new g("COMMENT"),this.specialComments=new g("COMMENT_SPECIAL"),this.context=a,this.restored=0,this.keepAll="*"==b,this.keepOne="1"==b||1===b,this.keepBreaks=c,this.saveWaypoints=d}function e(a){var b=[];return new h(a).each(function(a,c,d){b.push([d,d+a.length])}),function(a){for(var c=0,d=b.length;d>c;c++)if(b[c][0]a)return!0;return!1}}function f(a,b,c,d){for(var e=[],f=0;f0?e.join("")+b.substring(f,b.length):b}var g=a("./escape-store"),h=a("../utils/quote-scanner"),i="/*!",j="/*",k="*/",l=a("os").EOL;d.prototype.escape=function(a){for(var b,c,d,f=[],g=0,h=0,m=0,n=0,o=e(a),p=this.saveWaypoints;h0?q.substring(c+l.length).length:n+q.length),p||r){var s=p?[b,d]:null,t=r?this.specialComments.store(q,s):this.comments.store(q,s);f.push(t)}p&&(n=d+1),m=h+k.length}return f.length>0?f.join("")+a.substring(m,a.length):a},d.prototype.restore=function(a){return a=f(this,a,this.comments,!1),a=f(this,a,this.specialComments,!0)},b.exports=d},{"../utils/quote-scanner":63,"./escape-store":49,os:76}],49:[function(a,b,c){function d(a){this.placeholderRoot="ESCAPED_"+a+"_CLEAN_CSS",this.placeholderToData={},this.dataToPlaceholder={},this.count=0,this.restoreMatcher=new RegExp(this.placeholderRoot+"(\\d+)")}var e="__";d.prototype._nextPlaceholder=function(a){return{index:this.count,value:e+this.placeholderRoot+this.count++ +a+e}},d.prototype.store=function(a,b){var c=b?"("+b.join(",")+")":"",d=this.dataToPlaceholder[a]; if(!d){var e=this._nextPlaceholder(c);d=e.value,this.placeholderToData[e.index]=a,this.dataToPlaceholder[a]=e.value}return b&&(d=d.replace(/\([^\)]+\)/,c)),d},d.prototype.nextMatch=function(a,b){var c={};return c.start=a.indexOf(this.placeholderRoot,b)-e.length,c.end=a.indexOf(e,c.start+e.length)+e.length,c.start>-1&&c.end>-1&&(c.match=a.substring(c.start,c.end)),c},d.prototype.restore=function(a){var b=this.restoreMatcher.exec(a)[1];return this.placeholderToData[b]},b.exports=d},{}],50:[function(a,b,c){function d(a,b){for(var c=b+g.length,d=0,e=!1,f=!1;;){var j=a[c++];if(e?e="'"!=j&&'"'!=j:(e="'"==j||'"'==j,j==h&&d++,j==i&&d--,j==k&&(f=!0),j!=l||f||1!=d||(c--,d--)),0===d&&j==i)break;if(!j){c=a.substring(0,c).lastIndexOf(l);break}}return c}function e(a){this.expressions=new f("EXPRESSION"),this.saveWaypoints=a}var f=a("./escape-store"),g="expression",h="(",i=")",j=g+h,k="{",l="}",m=a("os").EOL;e.prototype.escape=function(a){for(var b,c,e,f=0,g=0,h=0,i=[],k=0,l=this.saveWaypoints;g0?n.substring(c+m.length).length:k+n.length);var o=l?[b,e]:null,p=this.expressions.store(n,o);i.push(a.substring(h,f)),i.push(p),l&&(k=e+1),h=g}return i.length>0?i.join("")+a.substring(h,a.length):a},e.prototype.restore=function(a){for(var b=[],c=0;c0?b.join("")+a.substring(c,a.length):a},b.exports=e},{"./escape-store":49,os:76}],51:[function(a,b,c){function d(a){this.matches=new f("FREE_TEXT"),this.saveWaypoints=a}function e(a,b,c,d){var e=b;c&&(e=c+b.substring(0,b.indexOf("__ESCAPED_FREE_TEXT_CLEAN_CSS")),d=e.length);var f=e.lastIndexOf(";",d),g=e.lastIndexOf("{",d),h=0;h=f>-1&&g>-1?Math.max(f,g):-1==f?g:f;var i=e.substring(h+1,d);if(/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(i)&&(a=a.replace(/\\\n|\\\r\n/g,"").replace(/\n|\r\n/g,"")),/^['"][a-zA-Z][a-zA-Z\d\-_]+['"]$/.test(a)&&!/format\($/.test(i)){var j=/^(font|font\-family):/.test(i),k=/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(i),l=/@(-moz-|-o-|-webkit-)?keyframes /.test(i),m=/^(-moz-|-o-|-webkit-)?animation(-name)?:/.test(i);(j||k||l||m)&&(a=a.substring(1,a.length-1))}return a}var f=a("./escape-store"),g=a("../utils/quote-scanner"),h=a("os").EOL;d.prototype.escape=function(a){var b,c,d,e,f=this,i=this.saveWaypoints;return new g(a).each(function(a,g){i&&(b=a.split(h).length-1,c=a.lastIndexOf(h),d=c>0?a.substring(c+h.length).length:a.length,e=[b,d]);var j=f.matches.store(a,e);g.push(j)})},d.prototype.restore=function(a,b){for(var c=[],d=0;d0?c.join("")+a.substring(d,a.length):a},b.exports=d},{"../utils/quote-scanner":63,"./escape-store":49,os:76}],52:[function(a,b,c){function d(a,b,c){this.urls=new f("URL"),this.context=a,this.saveWaypoints=b,this.keepUrlQuotes=c}function e(a,b){return a=a.replace(/^url/gi,"url").replace(/\\?\n|\\?\r\n/g,"").replace(/(\s{2,}|\s)/g," ").replace(/^url\((['"])? /,"url($1").replace(/ (['"])?\)$/,"$1)"),b||/^['"].+['"]$/.test(a)||/url\(.*[\s\(\)].*\)/.test(a)||/url\(['"]data:[^;]+;charset/.test(a)||(a=a.replace(/["']/g,"")),a}var f=a("./escape-store"),g=a("../urls/reduce"),h=a("os").EOL;d.prototype.escape=function(a){var b,c,d,e=this.saveWaypoints,f=this;return g(a,this.context,function(a,g){e&&(b=a.split(h).length-1,c=a.lastIndexOf(h),d=c>0?a.substring(c+h.length).length:a.length);var i=f.urls.store(a,e?[b,d]:null);g.push(i)})},d.prototype.restore=function(a){for(var b=[],c=0;c0?b.join("")+a.substring(c,a.length):a},b.exports=d},{"../urls/reduce":57,"./escape-store":49,os:76}],53:[function(a,b,c){function d(a){return a[0]}function e(){}function f(a,b,c,d){for(var f=c?/^__ESCAPED_COMMENT_/:/__ESCAPED_COMMENT_/,g=c?d.track:e;f.test(a);){var h=a.indexOf("__"),i=a.indexOf("__",h+1)+2,j=a.substring(h,i);a=a.substring(0,h)+a.substring(i),g(j),b.push(j)}return a}function g(a,b,c){return f(a,b,!0,c)}function h(a,b,c){return f(a,b,!1,c)}function i(a,b,c){for(var d=0,e=a.length;e>d;d++)c.track(a[d]),b.push(a[d])}function j(a,b,c){var e=[],f=[],o=/[ ,\/]/;if("string"!=typeof a)return[];a.indexOf(")")>-1&&(a=a.replace(/\)([^\s_;:,\)])/g,c.sourceMap?") __ESCAPED_COMMENT_CLEAN_CSS(0,-1)__ $1":") $1")),a.indexOf("ESCAPED_URL_CLEAN_CSS")>-1&&(a=a.replace(/(ESCAPED_URL_CLEAN_CSS[^_]+?__)/g,c.sourceMap?"$1 __ESCAPED_COMMENT_CLEAN_CSS(0,-1)__ ":"$1 "));for(var s=k(a,";",!1,"{","}"),t=0,u=s.length;u>t;t++){var v=s[t],w=v.indexOf(":"),x="@"==v.trim()[0];if(x)c.track(v),e.push([n,v.trim()]);else if(-1!=w)if(v.indexOf("{")>0&&v.indexOf("{")-1&&(z=g(z,e,c)),z.indexOf("__ESCAPED_COMMENT")>-1&&(z=h(z,f,c)),y.push([z.trim()].concat(c.track(z,!0))),c.track(":"),i(f,e,c);var A=v.indexOf("{"),B=0===z.trim().indexOf("--");if(B&&A>0){var C=v.substring(w+1,A+1),D=v.substring(v.indexOf("}")),E=v.substring(A+1,v.length-D.length);c.track(C),y.push(j(E,b,c)),e.push(y),c.track(D),c.track(u-1>t?";":"")}else{var F=k(v.substring(w+1),o,!0);if(1!=F.length||""!==F[0]){for(var G=0,H=F.length;H>G;G++){var I=F[G],J=I.trim();if(0!==J.length){var K=J[J.length-1],L=J.length>1&&(K==l||K==m);if(L&&(J=J.substring(0,J.length-1)),J.indexOf("__ESCAPED_COMMENT_CLEAN_CSS(0,-")>-1)c.track(J);else if(f=[],J.indexOf("__ESCAPED_COMMENT")>-1&&(J=g(J,e,c)),J.indexOf("__ESCAPED_COMMENT")>-1&&(J=h(J,f,c)),0!==J.length){var M=y.length-1;q.test(J)&&"!"==y[M][0]?(c.track(J),y[M-1][0]+=p,y.pop()):r.test(J)||q.test(J)&&"!"==y[M][0][y[M][0].length-1]?(c.track(J),y[M][0]+=J):(y.push([J].concat(c.track(I,!0))),i(f,e,c),L&&(y.push([K]),c.track(K)))}else i(f,e,c)}}u-1>t&&c.track(";"),e.push(y)}else c.warnings.push("Empty property '"+z+"' inside '"+b.filter(d).join(",")+"' selector. Ignoring.")}}else c.track(v),v.indexOf("__ESCAPED_COMMENT_SPECIAL")>-1&&e.push(v.trim())}return e}var k=a("../utils/split"),l=",",m="/",n="at-rule",o="important",p="!"+o,q=new RegExp("^"+o+"$","i"),r=new RegExp("^"+p+"$","i");b.exports=j},{"../utils/split":66}],54:[function(a,b,c){function d(a,b){for(var c,d=[],f=e(a,","),g=0,h=f.length;h>g;g++)c=b.track(f[g],!0,g),b.track(","),d.push([f[g].trim()].concat(c));return d}var e=a("../utils/split");b.exports=d},{"../utils/split":66}],55:[function(a,b,c){function d(a,b){var c=l(e(a),"}",!0,"{","}");if(0===c.length)return[];var d={chunk:c.shift(),chunks:c,column:0,cursor:0,line:1,mode:"top",resolvePath:b.options.explicitTarget?f(b.options.root,b.options.target):null,source:void 0,sourceMap:b.options.sourceMap,sourceMapInlineSources:b.options.sourceMapInlineSources,sourceMapTracker:b.inputSourceMapTracker,sourceReader:b.sourceReader,sourceTracker:b.sourceTracker,state:[],track:b.options.sourceMap?function(a,b,c){return[[k(a,d,b,c)]]}:function(){return[]},warnings:b.warnings};return h(d)}function e(a){return a.replace(/\r\n/g,"\n")}function f(a,b){var c=m.relative(a,b);return function(a,b){return a!=b?m.normalize(m.join(m.relative(c,m.dirname(a)),b)):b}}function g(a){var b,c=a.mode,d=a.chunk;if(d.length==a.cursor){if(0===a.chunks.length)return null;a.chunk=d=a.chunks.shift(),a.cursor=0}if("body"==c)return"}"==d[a.cursor]?[a.cursor,"bodyEnd"]:-1==d.indexOf("}",a.cursor)?null:(b=a.cursor+l(d.substring(a.cursor-1),"}",!0,"{","}")[0].length-2,[b,"bodyEnd"]);var e=d.indexOf("@",a.cursor),f=d.indexOf("__ESCAPED_",a.cursor),g=d.indexOf("{",a.cursor),h=d.indexOf("}",a.cursor);return f>-1&&/\S/.test(d.substring(a.cursor,f))&&(f=-1),b=e,(-1==b||f>-1&&b>f)&&(b=f),(-1==b||g>-1&&b>g)&&(b=g),(-1==b||h>-1&&b>h)&&(b=h),-1!=b?f===b?[b,"escape"]:g===b?[b,"bodyStart"]:h===b?[b,"bodyEnd"]:e===b?[b,"special"]:void 0:void 0}function h(a){for(var b,c,d=a.chunk,e=[];;){var f=g(a);if(!f){var k=a.chunk.substring(a.cursor);k.trim().length>0&&("body"==a.mode?a.warnings.push("Missing '}' after '"+k+"'. Ignoring."):e.push(["text",[k]]),a.cursor+=k.length);break}var l,m,o=f[0],p=f[1];if(d=a.chunk,a.cursor!=o&&"bodyEnd"!=p){var q=d.substring(a.cursor,o),r=/^\s+/.exec(q);r&&(a.cursor+=r[0].length,a.track(r[0]))}if("special"==p){var s=d.indexOf("{",o),t=d.indexOf(";",o),u=t>-1&&(-1==s||s>t),v=-1==s&&-1==t;if(v)a.warnings.push("Broken declaration: '"+d.substring(a.cursor)+"'."),a.cursor=d.length;else if(u)l=d.indexOf(";",o+1),c=d.substring(a.cursor,l+1),e.push(["at-rule",[c].concat(a.track(c,!0))]),a.track(";"),a.cursor=l+1;else{l=d.indexOf("{",o+1),c=d.substring(a.cursor,l);var w=c.trim(),x=n.test(w);m=a.mode,a.cursor=l+1,a.mode=x?"body":"block",b=[x?"flat-block":"block"],b.push([w].concat(a.track(c,!0))),a.track("{"),b.push(h(a)),"string"==typeof b[2]&&(b[2]=i(b[2],[[w]],a)),a.mode=m,a.track("}"),e.push(b)}}else if("escape"==p){l=d.indexOf("__",o+1);var y=d.substring(a.cursor,l+2),z=!!a.sourceTracker.nextStart(y),A=!!a.sourceTracker.nextEnd(y);if(z)a.track(y),a.state.push({source:a.source,line:a.line,column:a.column}),a.source=a.sourceTracker.nextStart(y).filename,a.line=1,a.column=0;else if(A){var B=a.state.pop();a.source=B.source,a.line=B.line,a.column=B.column,a.track(y)}else 0===y.indexOf("__ESCAPED_COMMENT_SPECIAL")&&e.push(["text",[y]]),a.track(y);a.cursor=l+2}else if("bodyStart"==p){var C=j(d.substring(a.cursor,o),a);m=a.mode,a.cursor=o+1,a.mode="body";var D=i(h(a),C,a);a.track("{"),a.mode=m,e.push(["selector",C,D])}else if("bodyEnd"==p){if("top"==a.mode){var E=a.cursor,F="}"==d[a.cursor]?"Unexpected '}' in '"+d.substring(E-20,E+20)+"'. Ignoring.":"Unexpected content: '"+d.substring(E,o+1)+"'. Ignoring.";a.warnings.push(F),a.cursor=o+1;continue}"block"==a.mode&&a.track(d.substring(a.cursor,o)),"block"!=a.mode&&(e=d.substring(a.cursor,o)),a.cursor=o+1;break}}return e}var i=a("./extract-properties"),j=a("./extract-selectors"),k=a("../source-maps/track"),l=a("../utils/split"),m=a("path"),n=/(@(font\-face|page|\-ms\-viewport|\-o\-viewport|viewport|counter\-style)|\\@.+?)/;b.exports=d},{"../source-maps/track":43,"../utils/split":66,"./extract-properties":53,"./extract-selectors":54,path:77}],56:[function(a,b,c){function d(a,b){var c={absolute:b.options.explicitRoot,relative:!b.options.explicitRoot&&b.options.explicitTarget,fromBase:b.options.relativeTo};return c.absolute||c.relative?(c.absolute&&b.options.explicitTarget&&b.warnings.push("Both 'root' and output file given so rebasing URLs as absolute paths"),c.absolute&&(c.toBase=e.resolve(b.options.root)),c.relative&&(c.toBase=e.resolve(b.options.target)),c.fromBase&&c.toBase?f(a,c,b):a):a}var e=a("path"),f=a("./rewrite");b.exports=d},{"./rewrite":58,path:77}],57:[function(a,b,c){function d(a,b,c){for(var d=0,e=0,f=0,k=0,l=!1,m=0,n=[],o=a.indexOf(h)>-1;f-1&&(d=e),'"'==a[d+g.length])f=a.indexOf('"',d+g.length+1);else if("'"==a[d+g.length])f=a.indexOf("'",d+g.length+1);else if(l=0===a.substring(d+g.length).trim().indexOf(j),f=a.indexOf(i,d),l)for(;;){if(k=a.indexOf(i,f+1),-1==k||/[\s\{\};]/.test(a.substring(f,k)))break;f=k}-1==f?(f=a.indexOf("}",d),-1==f?f=a.length:f--,b.warnings.push("Broken URL declaration: '"+a.substring(d,f+1)+"'.")):a[f]!=i&&(f=a.indexOf(i,f)),n.push(a.substring(m,d));var p=a.substring(d,f+1);c(p,n),m=f+1}return n.length>0?n.join("")+a.substring(m,a.length):a}function e(a,b,c){for(var d,e,f=0,g=0,h=0,i=0,j=0,n=[],o=0,p=0,q="'",r='"';i-1&&g>-1&&f>g&&(f=g),o=a.indexOf(q,f),p=a.indexOf(r,f),o>-1&&p>-1&&p>o)h=o,e=q;else if(o>-1&&p>-1&&o>p)h=p,e=r;else if(o>-1)h=o,e=q;else{if(!(p>-1))break;h=p,e=r}if(n.push(a.substring(j,h)),i=a.indexOf(e,h+1),d=a.substring(f,i),-1==i||/^@import\s+(url\(|__ESCAPED)/i.test(d)||m.test(d)){j=h;break}var s=a.substring(h,i+1);c(s,n),j=i+1}return n.length>0?n.join("")+a.substring(j,a.length):a}function f(a,b,c){return a=d(a,b,c),a=e(a,b,c)}var g="url(",h="URL(",i=")",j="data:",k="@import",l="@IMPORT",m=/\*\//;b.exports=f},{}],58:[function(a,b,c){(function(c){function d(a){return"/"==a[0]}function e(a){return"#"==a[0]}function f(a){return 0===a.indexOf("__ESCAPED_URL_CLEAN_CSS__")}function g(a){return/^\w+:\w+/.test(a)}function h(a){return/^[^:]+?:\/\//.test(a)||0===a.indexOf("//")}function i(a,b){return s.parse(a).protocol==s.parse(b).protocol&&s.parse(a).host==s.parse(b).host}function j(a){return a.lastIndexOf(".css")===a.length-4}function k(a){return 0===a.indexOf("data:")}function l(a,b){return r.resolve(r.join(b.fromBase||"",a)).replace(b.toBase,"")}function m(a,b){return r.relative(b.toBase,r.join(b.fromBase||"",a))}function n(a){return u?a.replace(/\\/g,"/"):a}function o(a,b){return d(a)||e(a)||f(a)||g(a)?a:b.rebase!==!1||j(a)?!b.imports&&j(a)?a:k(a)?"'"+a+"'":h(a)&&!h(b.toBase)?a:h(a)&&!i(a,b.toBase)?a:!h(a)&&h(b.toBase)?s.resolve(b.toBase,a):n(b.absolute?l(a,b):m(a,b)):a}function p(a){return a.indexOf("'")>-1?'"':a.indexOf('"')>-1?"'":/\s/.test(a)||/[\(\)]/.test(a)?"'":""}function q(a,b,c){return t(a,c,function(a,c){var d,e=a.replace(/^(url\()?\s*['"]?|['"]?\s*\)?$/g,""),f=a.match(/^(url\()?\s*(['"]).*?(['"])\s*\)?$/);d=b.urlQuotes&&f&&f[2]===f[3]?f[2]:p(e),c.push("url("+d+o(e,b)+d+")")})}var r=a("path"),s=a("url"),t=a("./reduce"),u="win32"==c.platform;b.exports=q}).call(this,a("_process"))},{"./reduce":57,_process:79,path:77,url:141}],59:[function(a,b,c){function d(a){for(var b=a.slice(0),c=0,e=b.length;e>c;c++)Array.isArray(b[c])&&(b[c]=d(b[c]));return b}b.exports=d},{}],60:[function(a,b,c){function d(a){this.source=a||{}}function e(a,b){for(var c in a){var d=a[c];"object"!=typeof d||g.isRegExp(d)?b[c]=c in b?b[c]:d:b[c]=e(d,b[c]||{})}return b}function f(a){if("object"==typeof a)return a;if(!/[,\+\-]/.test(a))return h[a]||h["*"];var b=a.split(","),c=b[0]in h?h[b.shift()]:h["*"];return a={},b.forEach(function(b){var c="+"==b[0],d=b.substring(1).split("."),e=d[0],f=d[1];a[e]=a[e]||{},a[e][f]=c}),e(c,a)}var g=a("util"),h={"*":{colors:{opacity:!0},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,ieBangHack:!1,iePrefixHack:!1,ieSuffixHack:!0,merging:!0,shorterLengthUnits:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:dir\([a-z-]*\)|:first(?![a-z-])|:fullscreen|:left|:read-only|:read-write|:right|:placeholder|:host|::content|\/deep\/|::shadow)/},units:{ch:!0,"in":!0,pc:!0,pt:!0,rem:!0,vh:!0,vm:!0,vmax:!0,vmin:!0,vw:!0}},ie8:{colors:{opacity:!1},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,ieBangHack:!1,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,shorterLengthUnits:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not|:placeholder|:host|::content|\/deep\/|::shadow)/},units:{ch:!1,"in":!0,pc:!0,pt:!0,rem:!1,vh:!1,vm:!1,vmax:!1,vmin:!1,vw:!1}},ie7:{colors:{opacity:!1},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,ieBangHack:!0,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,shorterLengthUnits:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!0,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:focus|:before|:after|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not|:placeholder|:host|::content|\/deep\/|::shadow)/},units:{ch:!1,"in":!0,pc:!0,pt:!0,rem:!1,vh:!1,vm:!1,vmax:!1,vmin:!1,vw:!1}}};d.prototype.toOptions=function(){return e(h["*"],f(this.source))},b.exports=d},{util:145}],61:[function(a,b,c){(function(c,d,e){function f(a){this.options=a.options,this.errors=a.errors,this.warnings=a.warnings,this.sourceTracker=a.sourceTracker,this.timeout=this.options.inliner.timeout,this.requestOptions=this.options.inliner.request,this.localOnly=a.localOnly,this.relativeTo=a.options.target||c.cwd(),this.maps={},this.sourcesContent={}}function g(a,b,c){return a.trackLoaded(void 0,void 0,a.options.sourceMap),c()}function h(a,b,c,d){function e(){d.cursor+=f+1,h(a,b,c,d)}for(var f=0;d.cursor-1&&(f=k.index),l.index>-1&&l.index-1&&m.index299)return d(a.statusCode);var b=[];a.on("data",function(a){b.push(a.toString())}),a.on("end",function(){c(b.join(""))})}).on("error",function(a){g||(d(a.message),g=!0)}).on("timeout",function(){g||(d("timeout"),g=!0)}).setTimeout(a.timeout)}function l(a,b,c,d,e){for(var f,g=d.length,h={line:b,column:c+g};g-- >0&&(h.column--,!(f=a.data.originalPositionFor(h))););return null===f.line&&b>1&&e>0?l(a,b-1,c,d,e-1):(a.path&&f.source&&(f.source=w.test(a.path)?t.resolve(a.path,f.source):q.join(a.path,f.source),f.sourceResolved=!0),f)}function m(a,b){var c=a.maps[b].data,d=w.test(b),e={};c.sources.forEach(function(f,g){var h=d?t.resolve(q.dirname(b),f):q.relative(a.relativeTo,q.resolve(q.dirname(b),f));e[h]=c.sourcesContent&&c.sourcesContent[g]}),a.sourcesContent[b]=e}function n(a,b,c){function d(){return n(a,b,c)}if(0===b.length)return c();var e=b.shift(),f=e[0],g=e[1],h=w.test(f);if(h&&a.localOnly)return a.warnings.push('No callback given to `#minify` method, cannot fetch a remote file from "'+g+'"'),d();if(!h){var i=q.join(a.options.root,g);return p.existsSync(i)?a.sourcesContent[f][g]=p.readFileSync(i,"utf-8"):a.warnings.push('Missing original source file at "'+i+'".'),d()}k(a,g,function(b){a.sourcesContent[f][g]=b,d()},function(b){a.warnings.push('Broken original source file at "'+g+'" - '+b),d()})}var o=a("source-map").SourceMapConsumer,p=a("fs"),q=a("path"),r=a("http"),s=a("https"),t=a("url"),u=a("../utils/object.js").override,v=/\/\*# sourceMappingURL=(\S+) \*\//,w=/^(https?:)?\/\//,x=/^data:(\S*?)?(;charset=[^;]+)?(;[^,]+?)?,(.+)/,y=d.unescape;f.prototype.track=function(a,b){return"string"==typeof this.options.sourceMap?g(this,a,b):h(this,a,b,{files:[],cursor:0,errors:this.errors})},f.prototype.trackLoaded=function(a,b,c){var d=this.options.explicitTarget?this.options.target:this.options.root,e=w.test(a);b&&(b=e?q.dirname(b):q.dirname(q.relative(d,b))),this.maps[a]={path:b,data:new o(c)},m(this,a)},f.prototype.isTracking=function(a){return!!this.maps[a]},f.prototype.originalPositionFor=function(a,b,c){return l(this.maps[a.source],a.line,a.column,b,c)},f.prototype.sourcesContentFor=function(a){return this.sourcesContent[a]},f.prototype.resolveSources=function(a){var b=[];for(var c in this.sourcesContent){var d=this.sourcesContent[c];for(var e in d)d[e]||b.push([c,e])}return n(this,b,a)},b.exports=f}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"../utils/object.js":62,_process:79,buffer:5,fs:4,http:123,https:70,path:77,"source-map":111,url:141}],62:[function(a,b,c){b.exports={override:function(a,b){var c={};for(var d in a)c[d]=a[d];for(var e in b)c[e]=b[e];return c}}},{}],63:[function(a,b,c){function d(a){this.data=a}function e(a,b){for(var c=b;c>-1&&(c=a.lastIndexOf(g,c),!(c>-1&&"*"!=a[c-1]));)c--;return c}function f(a,b,c){for(var d="\\",e=c;;){if(e=a.indexOf(b,e+1),-1==e)return-1;if(a[e-1]!=d)return e}}var g="/*",h=function(a,b,c,d){var f="*/",g="\\",h="}",i=a.substring(d,c),j=i.lastIndexOf(f,c),k=e(i,c),l=!1;if(j>=c&&k>-1&&(l=!0),c>k&&k>j&&(l=!0),l){var m=a.indexOf(f,c);return m>-1?m:(m=a.indexOf(h,c),m>-1?m-1:a.length)}for(;;){if(void 0===a[c])break;if(a[c]==b&&(a[c-1]!=g||a[c-2]==g))break;c++}return c};d.prototype.each=function(a){for(var b=this.data,c=[],d=0,e=0,g=0,i=null,j="'",k='"',l=b.length;em?(d=m,i=j):(d=n,i=k),-1==d)break;if(e=h(b,i,d+1,g),-1==e)break;var o=b.substring(d,e+1);c.push(b.substring(g,d)),o.length>0&&a(o,c,d),g=e+1}return c.length>0?c.join("")+b.substring(g,b.length):b},b.exports=d},{}],64:[function(a,b,c){(function(c){function d(a,b){this.outerContext=a,this.data=b,this.sources={}}function e(a){var b=a.data;return a.trackSource(void 0,b),b}function f(a){var b=a.data.toString();return a.trackSource(void 0,b),b}function g(a){return a.data.map(function(b){return a.outerContext.options.processImport===!1?b+"@shallow":b}).map(function(b){return!a.outerContext.options.relativeTo||/^https?:\/\//.test(b)?b:i.relative(a.outerContext.options.relativeTo,b)}).map(function(a){return"@import url("+a+");"}).join("")}function h(a){var b=[],c=i.resolve(a.outerContext.options.target||a.outerContext.options.root);for(var d in a.data){var e=a.data[d].styles,f=a.data[d].sourceMap,g=k.test(d),h=g?d:i.resolve(d),l=i.dirname(h),m={absolute:a.outerContext.options.explicitRoot,relative:!a.outerContext.options.explicitRoot,imports:!0,rebase:a.outerContext.options.rebase,fromBase:l,toBase:g?l:c,urlQuotes:a.outerContext.options.compatibility.properties.urlQuotes};e=j(e,m,a.outerContext),a.trackSource(d,e),e=a.outerContext.sourceTracker.store(d,e),a.outerContext.options.sourceMap&&f&&a.outerContext.inputSourceMapTracker.trackLoaded(d,d,f),b.push(e)}return b.join("")}var i=a("path"),j=a("../urls/rewrite"),k=/^(https?:)?\/\//;d.prototype.sourceAt=function(a){return this.sources[a]},d.prototype.trackSource=function(a,b){this.sources[a]={},this.sources[a][a]=b},d.prototype.toString=function(){return"string"==typeof this.data?e(this):c.isBuffer(this.data)?f(this):Array.isArray(this.data)?g(this):h(this)},b.exports=d}).call(this,{isBuffer:a("../../../is-buffer/index.js")})},{"../../../is-buffer/index.js":73,"../urls/rewrite":58,path:77}],65:[function(a,b,c){function d(){this.sources=[]}d.prototype.store=function(a,b){return this.sources.push(a),"__ESCAPED_SOURCE_CLEAN_CSS"+(this.sources.length-1)+"__"+b+"__ESCAPED_SOURCE_END_CLEAN_CSS__"},d.prototype.nextStart=function(a){var b=/__ESCAPED_SOURCE_CLEAN_CSS(\d+)__/.exec(a);return b?{index:b.index,filename:this.sources[~~b[1]]}:null},d.prototype.nextEnd=function(a){return/__ESCAPED_SOURCE_END_CLEAN_CSS__/g.exec(a)},d.prototype.removeAll=function(a){return a.replace(/__ESCAPED_SOURCE_CLEAN_CSS\d+__/g,"").replace(/__ESCAPED_SOURCE_END_CLEAN_CSS__/g,"")},b.exports=d},{}],66:[function(a,b,c){function d(a,b,c,d,e){var f="string"!=typeof b,g=f?b.test(a):a.indexOf(b);if(!g)return[a];if(d=d||"(",e=e||")",-1==a.indexOf(d)&&!c)return a.split(b);for(var h=0,i=0,j=0,k=a.length,l=[];k>i;)a[i]==d?h++:a[i]==e&&h--,0===h&&i>0&&k>i+1&&(f?b.test(a[i]):a[i]==b)&&(l.push(a.substring(j,i+(c?1:0))),j=i+1),i++;if(i+1>j){var m=a.substring(j),n=m[m.length-1];!c&&(f?b.test(n):n==b)&&(m=m.substring(0,m.length-1)),l.push(m)}return l}b.exports=d},{}],67:[function(a,b,c){(function(a){function b(a){return Array.isArray?Array.isArray(a):"[object Array]"===q(a)}function d(a){return"boolean"==typeof a}function e(a){return null===a}function f(a){return null==a}function g(a){return"number"==typeof a}function h(a){return"string"==typeof a}function i(a){return"symbol"==typeof a}function j(a){return void 0===a}function k(a){return"[object RegExp]"===q(a)}function l(a){return"object"==typeof a&&null!==a}function m(a){return"[object Date]"===q(a)}function n(a){return"[object Error]"===q(a)||a instanceof Error}function o(a){return"function"==typeof a}function p(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function q(a){return Object.prototype.toString.call(a)}c.isArray=b,c.isBoolean=d,c.isNull=e,c.isNullOrUndefined=f,c.isNumber=g,c.isString=h,c.isSymbol=i,c.isUndefined=j,c.isRegExp=k,c.isObject=l,c.isDate=m,c.isError=n,c.isFunction=o,c.isPrimitive=p,c.isBuffer=a.isBuffer}).call(this,{isBuffer:a("../../is-buffer/index.js")})},{"../../is-buffer/index.js":73}],68:[function(a,b,c){function d(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function e(a){return"function"==typeof a}function f(a){return"number"==typeof a}function g(a){return"object"==typeof a&&null!==a}function h(a){return void 0===a}b.exports=d,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._maxListeners=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=function(a){if(!f(a)||0>a||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},d.prototype.emit=function(a){var b,c,d,f,i,j;if(this._events||(this._events={}),"error"===a&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){if(b=arguments[1],b instanceof Error)throw b;throw TypeError('Uncaught, unspecified "error" event.')}if(c=this._events[a],h(c))return!1;if(e(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),c.apply(this,f)}else if(g(c))for(f=Array.prototype.slice.call(arguments,1),j=c.slice(),d=j.length,i=0;d>i;i++)j[i].apply(this,f);return!0},d.prototype.addListener=function(a,b){var c;if(!e(b))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,e(b.listener)?b.listener:b),this._events[a]?g(this._events[a])?this._events[a].push(b):this._events[a]=[this._events[a],b]:this._events[a]=b,g(this._events[a])&&!this._events[a].warned&&(c=h(this._maxListeners)?d.defaultMaxListeners:this._maxListeners,c&&c>0&&this._events[a].length>c&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"function"==typeof console.trace&&console.trace())),this},d.prototype.on=d.prototype.addListener,d.prototype.once=function(a,b){function c(){this.removeListener(a,c),d||(d=!0,b.apply(this,arguments))}if(!e(b))throw TypeError("listener must be a function");var d=!1;return c.listener=b,this.on(a,c),this},d.prototype.removeListener=function(a,b){var c,d,f,h;if(!e(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(c=this._events[a],f=c.length,d=-1,c===b||e(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(g(c)){for(h=f;h-- >0;)if(c[h]===b||c[h].listener&&c[h].listener===b){d=h;break}if(0>d)return this;1===c.length?(c.length=0,delete this._events[a]):c.splice(d,1),this._events.removeListener&&this.emit("removeListener",a,b)}return this},d.prototype.removeAllListeners=function(a){var b,c;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[a],e(c))this.removeListener(a,c);else if(c)for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},d.prototype.listeners=function(a){var b;return b=this._events&&this._events[a]?e(this._events[a])?[this._events[a]]:this._events[a].slice():[]},d.prototype.listenerCount=function(a){if(this._events){var b=this._events[a];if(e(b))return 1;if(b)return b.length}return 0},d.listenerCount=function(a,b){return a.listenerCount(b)}},{}],69:[function(a,b,c){(function(a){!function(d){var e="object"==typeof c&&c,f="object"==typeof b&&b&&b.exports==e&&b,g="object"==typeof a&&a;g.global!==g&&g.window!==g||(d=g);var h=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,i=/[\x01-\x7F]/g,j=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,k=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,l={ @@ -16,5 +16,5 @@ case d.ORIGINAL_ORDER:e=this._originalMappings;break;default:throw new Error("Un this.right._walk(a)})}}),Za=w("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(a){return a._visit(this,function(){this.condition._walk(a),this.consequent._walk(a),this.alternative._walk(a)})}}),$a=w("Assign",null,{$documentation:"An assignment expression — `a = b + 5`"},Ya),_a=w("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(a){return a._visit(this,function(){this.elements.forEach(function(b){b._walk(a)})})}}),ab=w("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(a){return a._visit(this,function(){this.properties.forEach(function(b){b._walk(a)})})}}),bb=w("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string] the property name converted to a string for ObjectKeyVal. For setters and getters this is an arbitrary AST_Node.",value:"[AST_Node] property value. For setters and getters this is an AST_Function."},_walk:function(a){return a._visit(this,function(){this.value._walk(a)})}}),cb=w("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"}},bb),db=w("ObjectSetter",null,{$documentation:"An object setter property"},bb),eb=w("ObjectGetter",null,{$documentation:"An object getter property"},bb),fb=w("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),gb=w("SymbolAccessor",null,{$documentation:"The name of a property accessor (setter/getter function)"},fb),hb=w("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)",$propdoc:{init:"[AST_Node*/S] array of initializers for this declaration."}},fb),ib=w("SymbolVar",null,{$documentation:"Symbol defining a variable"},hb),jb=w("SymbolConst",null,{$documentation:"A constant declaration"},hb),kb=w("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},ib),lb=w("SymbolDefun",null,{$documentation:"Symbol defining a function"},hb),mb=w("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},hb),nb=w("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},hb),ob=w("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[],this.thedef=this}},fb),pb=w("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},fb),qb=w("LabelRef",null,{$documentation:"Reference to a label symbol"},fb),rb=w("This",null,{$documentation:"The `this` symbol"},fb),sb=w("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}}),tb=w("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},sb),ub=w("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},sb),vb=w("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},sb),wb=w("Atom",null,{$documentation:"Base class for atoms"},sb),xb=w("Null",null,{$documentation:"The `null` atom",value:null},wb),yb=w("NaN",null,{$documentation:"The impossible value",value:NaN},wb),zb=w("Undefined",null,{$documentation:"The `undefined` value",value:void 0},wb),Ab=w("Hole",null,{$documentation:"A hole in an array",value:void 0},wb),Bb=w("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},wb),Cb=w("Boolean",null,{$documentation:"Base class for booleans"},wb),Db=w("False",null,{$documentation:"The `false` atom",value:!1},Cb),Eb=w("True",null,{$documentation:"The `true` atom",value:!0},Cb);y.prototype={_visit:function(a,b){this.push(a);var c=this.visit(a,b?function(){b.call(a)}:m);return!c&&b&&b.call(a),this.pop(a),c},parent:function(a){return this.stack[this.stack.length-2-(a||0)]},push:function(a){a instanceof sa?this.directives=Object.create(this.directives):a instanceof ca&&(this.directives[a.value]=this.directives[a.value]?"up":!0),this.stack.push(a)},pop:function(a){this.stack.pop(),a instanceof sa&&(this.directives=Object.getPrototypeOf(this.directives))},self:function(){return this.stack[this.stack.length-1]},find_parent:function(a){for(var b=this.stack,c=b.length;--c>=0;){var d=b[c];if(d instanceof a)return d}},has_directive:function(a){var b=this.directives[a];if(b)return b;var c=this.stack[this.stack.length-1];if(c instanceof qa)for(var d=0;d0;){var d=a[--b];if(d instanceof Da&&d.condition===c||d instanceof Za&&d.condition===c||d instanceof ka&&d.condition===c||d instanceof na&&d.condition===c||d instanceof Wa&&"!"==d.operator&&d.expression===c)return!0;if(!(d instanceof Ya)||"&&"!=d.operator&&"||"!=d.operator)return!1;c=d}},loopcontrol_target:function(a){var b=this.stack;if(a)for(var c=b.length;--c>=0;){var d=b[c];if(d instanceof ia&&d.label.name==a.name)return d.body}else for(var c=b.length;--c>=0;){var d=b[c];if(d instanceof Ea||d instanceof ja)return d}}};var Fb="break case catch const continue debugger default delete do else finally for function if in instanceof new return switch throw try typeof var void while with",Gb="false null true",Hb="abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized this throws transient volatile yield "+Gb+" "+Fb,Ib="return new delete throw else case";Fb=t(Fb),Hb=t(Hb),Ib=t(Ib),Gb=t(Gb);var Jb=t(f("+-*&%=<>!?|~^")),Kb=/^0x[0-9a-f]+$/i,Lb=/^0[0-7]+$/,Mb=t(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),Nb=t(f("  \n\r \f\x0B​᠎              \ufeff")),Ob=t(f("[{(,.;:")),Pb=t(f("[]{}(),;:")),Qb=t(f("gmsiy")),Rb={letter:new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),digit:new RegExp("[\\u0030-\\u0039\\u0660-\\u0669\\u06F0-\\u06F9\\u07C0-\\u07C9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE6-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0DE6-\\u0DEF\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\u1040-\\u1049\\u1090-\\u1099\\u17E0-\\u17E9\\u1810-\\u1819\\u1946-\\u194F\\u19D0-\\u19D9\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1B50-\\u1B59\\u1BB0-\\u1BB9\\u1C40-\\u1C49\\u1C50-\\u1C59\\uA620-\\uA629\\uA8D0-\\uA8D9\\uA900-\\uA909\\uA9D0-\\uA9D9\\uA9F0-\\uA9F9\\uAA50-\\uAA59\\uABF0-\\uABF9\\uFF10-\\uFF19]"),non_spacing_mark:new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065E\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0900-\\u0902\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F90-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1DC0-\\u1DE6\\u1DFD-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA67C\\uA67D\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"),space_combining_mark:new RegExp("[\\u0903\\u093E-\\u0940\\u0949-\\u094C\\u094E\\u0982\\u0983\\u09BE-\\u09C0\\u09C7\\u09C8\\u09CB\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB\\u0ACC\\u0B02\\u0B03\\u0B3E\\u0B40\\u0B47\\u0B48\\u0B4B\\u0B4C\\u0B57\\u0BBE\\u0BBF\\u0BC1\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7\\u0CC8\\u0CCA\\u0CCB\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0F3E\\u0F3F\\u0F7F\\u102B\\u102C\\u1031\\u1038\\u103B\\u103C\\u1056\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930\\u1931\\u1933-\\u1938\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A19-\\u1A1B\\u1A55\\u1A57\\u1A61\\u1A63\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43\\u1B44\\u1B82\\u1BA1\\u1BA6\\u1BA7\\u1BAA\\u1C24-\\u1C2B\\u1C34\\u1C35\\u1CE1\\u1CF2\\uA823\\uA824\\uA827\\uA880\\uA881\\uA8B4-\\uA8C3\\uA952\\uA953\\uA983\\uA9B4\\uA9B5\\uA9BA\\uA9BB\\uA9BD-\\uA9C0\\uAA2F\\uAA30\\uAA33\\uAA34\\uAA4D\\uAA7B\\uABE3\\uABE4\\uABE6\\uABE7\\uABE9\\uABEA\\uABEC]"),connector_punctuation:new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]")};K.prototype.toString=function(){return this.message+" (line: "+this.line+", col: "+this.col+", pos: "+this.pos+")\n\n"+this.stack};var Sb={},Tb=t(["typeof","void","delete","--","++","!","~","-","+"]),Ub=t(["--","++"]),Vb=t(["=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&="]),Wb=function(a,b){for(var c=0;c","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{}),Xb=d(["for","do","while","switch"]),Yb=d(["atom","num","string","regexp","name"]);P.prototype=new y,function(a){function b(b,c){b.DEFMETHOD("transform",function(b,d){var e,f;return b.push(this),b.before&&(e=b.before(this,c,d)),e===a&&(b.after?(b.stack[b.stack.length-1]=e=this,c(e,b),f=b.after(e,d),f!==a&&(e=f)):(e=this,c(e,b))),b.pop(this),e})}function c(a,b){return Z(a,function(a){return a.transform(b,!0)})}b(_,m),b(ia,function(a,b){a.label=a.label.transform(b),a.body=a.body.transform(b)}),b(da,function(a,b){a.body=a.body.transform(b)}),b(ea,function(a,b){a.body=c(a.body,b)}),b(ka,function(a,b){a.condition=a.condition.transform(b),a.body=a.body.transform(b)}),b(na,function(a,b){a.init&&(a.init=a.init.transform(b)),a.condition&&(a.condition=a.condition.transform(b)),a.step&&(a.step=a.step.transform(b)),a.body=a.body.transform(b)}),b(oa,function(a,b){a.init=a.init.transform(b),a.object=a.object.transform(b),a.body=a.body.transform(b)}),b(pa,function(a,b){a.expression=a.expression.transform(b),a.body=a.body.transform(b)}),b(xa,function(a,b){a.value&&(a.value=a.value.transform(b))}),b(Aa,function(a,b){a.label&&(a.label=a.label.transform(b))}),b(Da,function(a,b){a.condition=a.condition.transform(b),a.body=a.body.transform(b),a.alternative&&(a.alternative=a.alternative.transform(b))}),b(Ea,function(a,b){a.expression=a.expression.transform(b),a.body=c(a.body,b)}),b(Ha,function(a,b){a.expression=a.expression.transform(b),a.body=c(a.body,b)}),b(Ia,function(a,b){a.body=c(a.body,b),a.bcatch&&(a.bcatch=a.bcatch.transform(b)),a.bfinally&&(a.bfinally=a.bfinally.transform(b))}),b(Ja,function(a,b){a.argname=a.argname.transform(b),a.body=c(a.body,b)}),b(La,function(a,b){a.definitions=c(a.definitions,b)}),b(Oa,function(a,b){a.name=a.name.transform(b),a.value&&(a.value=a.value.transform(b))}),b(sa,function(a,b){a.name&&(a.name=a.name.transform(b)),a.argnames=c(a.argnames,b),a.body=c(a.body,b)}),b(Pa,function(a,b){a.expression=a.expression.transform(b),a.args=c(a.args,b)}),b(Ra,function(a,b){a.car=a.car.transform(b),a.cdr=a.cdr.transform(b)}),b(Ta,function(a,b){a.expression=a.expression.transform(b)}),b(Ua,function(a,b){a.expression=a.expression.transform(b),a.property=a.property.transform(b)}),b(Va,function(a,b){a.expression=a.expression.transform(b)}),b(Ya,function(a,b){a.left=a.left.transform(b),a.right=a.right.transform(b)}),b(Za,function(a,b){a.condition=a.condition.transform(b),a.consequent=a.consequent.transform(b),a.alternative=a.alternative.transform(b)}),b(_a,function(a,b){a.elements=c(a.elements,b)}),b(ab,function(a,b){a.properties=c(a.properties,b)}),b(bb,function(a,b){a.value=a.value.transform(b)})}(),Q.prototype={unmangleable:function(a){return a||(a={}),this.global&&!a.toplevel||this.undeclared||!a.eval&&(this.scope.uses_eval||this.scope.uses_with)||a.keep_fnames&&(this.orig[0]instanceof mb||this.orig[0]instanceof lb)},mangle:function(a){var b=a.cache&&a.cache.props;if(this.global&&b&&b.has(this.name))this.mangled_name=b.get(this.name);else if(!this.mangled_name&&!this.unmangleable(a)){var c=this.scope;!a.screw_ie8&&this.orig[0]instanceof mb&&(c=c.parent_scope),this.mangled_name=c.next_mangled(a,this),this.global&&b&&b.set(this.name,this.mangled_name)}}},ra.DEFMETHOD("figure_out_scope",function(a){a=k(a,{screw_ie8:!1,cache:null});var b=this,c=b.parent_scope=null,d=new v,e=null,f=!1,g=0,h=new y(function(b,i){if(a.screw_ie8&&b instanceof Ja){var j=c;return c=new qa(b),c.init_scope_vars(g),c.parent_scope=j,i(),c=j,!0}if(b instanceof qa){b.init_scope_vars(g);var j=b.parent_scope=c,k=e,l=d;return e=c=b,d=new v,++g,i(),--g,c=j,e=k,d=l,!0}if(b instanceof ia){var m=b.label;if(d.has(m.name))throw new Error(o("Label {name} defined twice",m));return d.set(m.name,m),i(),d.del(m.name),!0}if(b instanceof pa)for(var n=c;n;n=n.parent_scope)n.uses_with=!0;else if(b instanceof fb&&(b.scope=c),b instanceof ob&&(b.thedef=b,b.references=[]),b instanceof mb)e.def_function(b);else if(b instanceof lb)(b.scope=e.parent_scope).def_function(b);else if(b instanceof Ma)f=b.has_const_pragma();else if(b instanceof ib||b instanceof jb){var p=e.def_variable(b);p.constant=b instanceof jb||f,p.init=h.parent().value}else if(b instanceof nb)(a.screw_ie8?c:e).def_variable(b);else if(b instanceof qb){var q=d.get(b.name);if(!q)throw new Error(o("Undefined label {name} [{line},{col}]",{name:b.name,line:b.start.line,col:b.start.col}));b.thedef=q}});b.walk(h);var i=null,j=b.globals=new v,h=new y(function(a,c){if(a instanceof sa){var d=i;return i=a,c(),i=d,!0}if(a instanceof Aa&&a.label)return a.label.thedef.references.push(a),!0;if(a instanceof pb){var e=a.name;if("eval"==e&&h.parent()instanceof Pa)for(var f=a.scope;f&&!f.uses_eval;f=f.parent_scope)f.uses_eval=!0;var g=a.scope.find_variable(e);if(g)a.thedef=g;else{var k;j.has(e)?k=j.get(e):(k=new Q(b,j.size(),a),k.undeclared=!0,k.global=!0,j.set(e,k)),a.thedef=k,i&&"arguments"==e&&(i.uses_arguments=!0)}return a.reference(),!0}});b.walk(h),a.cache&&(this.cname=a.cache.cname)}),qa.DEFMETHOD("init_scope_vars",function(a){this.variables=new v,this.functions=new v,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=null,this.enclosed=[],this.cname=-1,this.nesting=a}),sa.DEFMETHOD("init_scope_vars",function(){qa.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1;var a=new Oa({name:"arguments",start:this.start,end:this.end}),b=new Q(this,this.variables.size(),a);this.variables.set(a.name,b)}),pb.DEFMETHOD("reference",function(){var a=this.definition();a.references.push(this);for(var b=this.scope;b&&(n(b.enclosed,a),b!==a.scope);)b=b.parent_scope;this.frame=this.scope.nesting-a.scope.nesting}),qa.DEFMETHOD("find_variable",function(a){return a instanceof fb&&(a=a.name),this.variables.get(a)||this.parent_scope&&this.parent_scope.find_variable(a)}),qa.DEFMETHOD("def_function",function(a){this.functions.set(a.name,this.def_variable(a))}),qa.DEFMETHOD("def_variable",function(a){var b;return this.variables.has(a.name)?(b=this.variables.get(a.name),b.orig.push(a)):(b=new Q(this,this.variables.size(),a),this.variables.set(a.name,b),b.global=!this.parent_scope),a.thedef=b}),qa.DEFMETHOD("next_mangled",function(a){var b=this.enclosed;a:for(;;){var c=Zb(++this.cname);if(F(c)&&!(a.except.indexOf(c)>=0)){for(var d=b.length;--d>=0;){var e=b[d],f=e.mangled_name||e.unmangleable(a)&&e.name;if(c==f)continue a}return c}}}),ua.DEFMETHOD("next_mangled",function(a,b){for(var c=b.orig[0]instanceof kb&&this.name&&this.name.definition();;){var d=sa.prototype.next_mangled.call(this,a,b);if(!c||c.mangled_name!=d)return d}}),qa.DEFMETHOD("references",function(a){return a instanceof fb&&(a=a.definition()),this.enclosed.indexOf(a)<0?null:a}),fb.DEFMETHOD("unmangleable",function(a){return this.definition().unmangleable(a)}),gb.DEFMETHOD("unmangleable",function(){return!0}),ob.DEFMETHOD("unmangleable",function(){return!1}),fb.DEFMETHOD("unreferenced",function(){return 0==this.definition().references.length&&!(this.scope.uses_eval||this.scope.uses_with)}),fb.DEFMETHOD("undeclared",function(){return this.definition().undeclared}),qb.DEFMETHOD("undeclared",function(){return!1}),ob.DEFMETHOD("undeclared",function(){return!1}),fb.DEFMETHOD("definition",function(){return this.thedef}),fb.DEFMETHOD("global",function(){return this.definition().global}),Ma.DEFMETHOD("has_const_pragma",function(){var a=this.start&&this.start.comments_before,b=a&&a[a.length-1];return b&&/@const\b/.test(b.value)}),ra.DEFMETHOD("_default_mangler_options",function(a){return k(a,{except:[],eval:!1,sort:!1,toplevel:!1,screw_ie8:!1,keep_fnames:!1})}),ra.DEFMETHOD("mangle_names",function(a){a=this._default_mangler_options(a),a.except.push("arguments");var b=-1,c=[];a.cache&&this.globals.each(function(b){a.except.indexOf(b.name)<0&&c.push(b)});var d=new y(function(e,f){if(e instanceof ia){var g=b;return f(),b=g,!0}if(e instanceof qa){var h=(d.parent(),[]);return e.variables.each(function(b){a.except.indexOf(b.name)<0&&h.push(b)}),a.sort&&h.sort(function(a,b){return b.references.length-a.references.length}),void c.push.apply(c,h)}if(e instanceof ob){var i;do i=Zb(++b);while(!F(i));return e.mangled_name=i,!0}return a.screw_ie8&&e instanceof nb?void c.push(e.definition()):void 0});this.walk(d),c.forEach(function(b){b.mangle(a)}),a.cache&&(a.cache.cname=this.cname)}),ra.DEFMETHOD("compute_char_frequency",function(a){a=this._default_mangler_options(a);var b=new y(function(b){b instanceof sb?Zb.consider(b.print_to_string()):b instanceof ya?Zb.consider("return"):b instanceof za?Zb.consider("throw"):b instanceof Ca?Zb.consider("continue"):b instanceof Ba?Zb.consider("break"):b instanceof ba?Zb.consider("debugger"):b instanceof ca?Zb.consider(b.value):b instanceof ma?Zb.consider("while"):b instanceof la?Zb.consider("do while"):b instanceof Da?(Zb.consider("if"),b.alternative&&Zb.consider("else")):b instanceof Ma?Zb.consider("var"):b instanceof Na?Zb.consider("const"):b instanceof sa?Zb.consider("function"):b instanceof na?Zb.consider("for"):b instanceof oa?Zb.consider("for in"):b instanceof Ea?Zb.consider("switch"):b instanceof Ha?Zb.consider("case"):b instanceof Ga?Zb.consider("default"):b instanceof pa?Zb.consider("with"):b instanceof db?Zb.consider("set"+b.key):b instanceof eb?Zb.consider("get"+b.key):b instanceof cb?Zb.consider(b.key):b instanceof Qa?Zb.consider("new"):b instanceof rb?Zb.consider("this"):b instanceof Ia?Zb.consider("try"):b instanceof Ja?Zb.consider("catch"):b instanceof Ka?Zb.consider("finally"):b instanceof fb&&b.unmangleable(a)?Zb.consider(b.name):b instanceof Va||b instanceof Ya?Zb.consider(b.operator):b instanceof Ta&&Zb.consider(b.property)});this.walk(b),Zb.sort()});var Zb=function(){function a(){d=Object.create(null),c=e.split("").map(function(a){return a.charCodeAt(0)}),c.forEach(function(a){d[a]=0})}function b(a){var b="",d=54;a++;do a--,b+=String.fromCharCode(c[a%d]),a=Math.floor(a/d),d=64;while(a>0);return b}var c,d,e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";return b.consider=function(a){for(var b=a.length;--b>=0;){var c=a.charCodeAt(b);c in d&&++d[c]}},b.sort=function(){c=q(c,function(a,b){return A(a)&&!A(b)?1:A(b)&&!A(a)?-1:d[b]-d[a]})},b.reset=a,a(),b.get=function(){return c},b.freq=function(){return d},b}();ra.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 y(function(c){if(a.undeclared&&c instanceof pb&&c.undeclared()&&_.warn("Undeclared symbol: {name} [{file}:{line},{col}]",{name:c.name,file:c.start.file,line:c.start.line,col:c.start.col}),a.assign_to_global){var d=null;c instanceof $a&&c.left instanceof pb?d=c.left:c instanceof oa&&c.init instanceof pb&&(d=c.init),d&&(d.undeclared()||d.global()&&d.scope!==d.definition().scope)&&_.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 pb&&c.undeclared()&&"eval"==c.name&&_.warn("Eval is used [{file}:{line},{col}]",c.start),a.unreferenced&&(c instanceof hb||c instanceof ob)&&!(c instanceof nb)&&c.unreferenced()&&_.warn("{type} {name} is declared but not referenced [{file}:{line},{col}]",{type:c instanceof ob?"Label":"Symbol",name:c.name,file:c.start.file,line:c.start.line,col:c.start.col}),a.func_arguments&&c instanceof sa&&c.uses_arguments&&_.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 va&&!(b.parent()instanceof qa)&&_.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)}),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){var d=a.length-1;a.forEach(function(a,e){a instanceof ga||(c.indent(),a.print(c),e==d&&b||(c.newline(),b&&c.newline()))})}function d(a,b){a.length>0?b.with_block(function(){c(a,!1,b)}):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 la&&!b.option("screw_ie8"))return void n(a.body,b);for(var c=a.body;;)if(c instanceof Da){if(!c.alternative)return void n(a.body,b);c=c.alternative}else{if(!(c instanceof ha))break;c=c.body}h(a.body,b)}function f(a,b,c){if(c)try{a.walk(new y(function(a){if(a instanceof Ya&&"in"==a.operator)throw b})),a.print(b)}catch(d){if(d!==b)throw d;a.print(b,!0)}else a.print(b)}function g(a){return[92,47,46,43,42,63,40,41,91,93,123,125,36,94,58,124,33,10,13,0,65279,8232,8233].indexOf(a)<0}function h(a,b){b.option("bracketize")?!a||a instanceof ga?b.print("{}"):a instanceof fa?a.print(b):b.with_block(function(){b.indent(),a.print(b),b.newline()}):!a||a instanceof ga?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 aa&&e.body===d)return!0;if(!(e instanceof Ra&&e.car===d||e instanceof Pa&&e.expression===d&&!(e instanceof Qa)||e instanceof Ta&&e.expression===d||e instanceof Ua&&e.expression===d||e instanceof Za&&e.condition===d||e instanceof Ya&&e.left===d||e instanceof Xa&&e.expression===d))return!1;d=e,e=b[--c]}}function j(a,b){return 0==a.args.length&&!b.option("beautify")}function k(a){for(var b=a[0],c=b.length,d=1;d=0?d.push("0x"+a.toString(16).toLowerCase(),"0"+a.toString(8)):d.push("-0x"+(-a).toString(16).toLowerCase(),"-0"+(-a).toString(8)),(b=/^(.*?)(0+)$/.exec(a))&&d.push(b[1]+"e"+b[2].length)):(b=/^0?\.(0+)(.*)$/.exec(a))&&d.push(b[2]+"e-"+(b[1].length+b[2].length),c.substr(c.indexOf("."))),k(d)}function n(a,b){return a instanceof fa?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;_.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 ca&&"use asm"==d.value&&(q=!0),a.push_node(d),b||d.needs_parens(a)?a.with_parens(c):c(),a.pop_node(),d instanceof sa&&(q=f)}),_.DEFMETHOD("print_to_string",function(a){var b=R(a);return this.print(b),b.get()}),_.DEFMETHOD("add_comments",function(a){var b=a.option("comments"),c=this,d=c.start;if(d&&!d._comments_dumped){d._comments_dumped=!0;var e=d.comments_before||[];c instanceof xa&&c.value&&c.value.walk(new y(function(a){return a.start&&a.start.comments_before&&(e=e.concat(a.start.comments_before),a.start.comments_before=[]),a instanceof ua||a instanceof _a||a instanceof ab?!0:void 0})),b?b.test?e=e.filter(function(a){return"comment5"==a.type||b.test(a.value)}):"function"==typeof b&&(e=e.filter(function(a){return"comment5"==a.type||b(c,a)})):e=e.filter(function(a){return"comment5"==a.type}),!a.option("beautify")&&e.length>0&&/comment[134]/.test(e[0].type)&&0!==a.col()&&e[0].nlb&&a.print("\n"),e.forEach(function(b){/comment[134]/.test(b.type)?(a.print("//"+b.value+"\n"),a.indent()):"comment2"==b.type?(a.print("/*"+b.value+"*/"),d.nlb?(a.print("\n"),a.indent()):a.space()):0===a.pos()&&"comment5"==b.type&&a.option("shebang")&&(a.print("#!"+b.value+"\n"),a.indent())})}}),b(_,function(){return!1}),b(ua,function(a){return i(a)}),b(ab,function(a){return i(a)}),b([Va,zb],function(a){var b=a.parent();return b instanceof Sa&&b.expression===this}),b(Ra,function(a){var b=a.parent();return b instanceof Pa||b instanceof Va||b instanceof Ya||b instanceof Oa||b instanceof Sa||b instanceof _a||b instanceof bb||b instanceof Za; }),b(Ya,function(a){var b=a.parent();if(b instanceof Pa&&b.expression===this)return!0;if(b instanceof Va)return!0;if(b instanceof Sa&&b.expression===this)return!0;if(b instanceof Ya){var c=b.operator,d=Wb[c],e=this.operator,f=Wb[e];if(d>f||d==f&&this===b.right)return!0}}),b(Sa,function(a){var b=a.parent();if(b instanceof Qa&&b.expression===this)try{this.walk(new y(function(a){if(a instanceof Pa)throw b}))}catch(c){if(c!==b)throw c;return!0}}),b(Pa,function(a){var b,c=a.parent();return c instanceof Qa&&c.expression===this?!0:this.expression instanceof ua&&c instanceof Sa&&c.expression===this&&(b=a.parent(1))instanceof $a&&b.left===c}),b(Qa,function(a){var b=a.parent();return j(this,a)&&(b instanceof Sa||b instanceof Pa&&b.expression===this)?!0:void 0}),b(ub,function(a){var b=a.parent();return this.getValue()<0&&b instanceof Sa&&b.expression===this?!0:void 0}),b([$a,Za],function(a){var b=a.parent();return b instanceof Va?!0:b instanceof Ya&&!(b instanceof $a)?!0:b instanceof Pa&&b.expression===this?!0:b instanceof Za&&b.condition===this?!0:b instanceof Sa&&b.expression===this?!0:void 0}),a(ca,function(a,b){b.print_string(a.value,a.quote),b.semicolon()}),a(ba,function(a,b){b.print("debugger"),b.semicolon()}),ha.DEFMETHOD("_do_print_body",function(a){h(this.body,a)}),a(aa,function(a,b){a.body.print(b),b.semicolon()}),a(ra,function(a,b){c(a.body,!0,b),b.print("")}),a(ia,function(a,b){a.label.print(b),b.colon(),a.body.print(b)}),a(da,function(a,b){a.body.print(b),b.semicolon()}),a(fa,function(a,b){d(a.body,b)}),a(ga,function(a,b){b.semicolon()}),a(la,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(ma,function(a,b){b.print("while"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.space(),a._do_print_body(b)}),a(na,function(a,b){b.print("for"),b.space(),b.with_parens(function(){!a.init||a.init instanceof ga?b.print(";"):(a.init instanceof La?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(oa,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(pa,function(a,b){b.print("with"),b.space(),b.with_parens(function(){a.expression.print(b)}),b.space(),a._do_print_body(b)}),sa.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)}),a(sa,function(a,b){a._do_print(b)}),xa.DEFMETHOD("_do_print",function(a,b){a.print(b),this.value&&(a.space(),this.value.print(a)),a.semicolon()}),a(ya,function(a,b){a._do_print(b,"return")}),a(za,function(a,b){a._do_print(b,"throw")}),Aa.DEFMETHOD("_do_print",function(a,b){a.print(b),this.label&&(a.space(),this.label.print(a)),a.semicolon()}),a(Ba,function(a,b){a._do_print(b,"break")}),a(Ca,function(a,b){a._do_print(b,"continue")}),a(Da,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(Ea,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("{}")}),Fa.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(Ga,function(a,b){b.print("default:"),a._do_print_body(b)}),a(Ha,function(a,b){b.print("case"),b.space(),a.expression.print(b),b.print(":"),a._do_print_body(b)}),a(Ia,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(Ja,function(a,b){b.print("catch"),b.space(),b.with_parens(function(){a.argname.print(b)}),b.space(),d(a.body,b)}),a(Ka,function(a,b){b.print("finally"),b.space(),d(a.body,b)}),La.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 na||c instanceof oa,e=d&&c.init===this;e||a.semicolon()}),a(Ma,function(a,b){a._do_print(b,"var")}),a(Na,function(a,b){a._do_print(b,"const")}),a(Oa,function(a,b){if(a.name.print(b),a.value){b.space(),b.print("="),b.space();var c=b.parent(1),d=c instanceof na||c instanceof oa;f(a.value,b,d)}}),a(Pa,function(a,b){a.expression.print(b),a instanceof Qa&&j(a,b)||b.with_parens(function(){a.args.forEach(function(a,c){c&&b.comma(),a.print(b)})})}),a(Qa,function(a,b){b.print("new"),b.space(),Pa.prototype._codegen(a,b)}),Ra.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(Ra,function(a,b){a._do_print(b)}),a(Ta,function(a,b){var c=a.expression;c.print(b),c instanceof ub&&c.getValue()>=0&&(/[xa-f.]/i.test(b.last())||b.print(".")),b.print("."),b.add_mapping(a.end),b.print_name(a.property)}),a(Ua,function(a,b){a.expression.print(b),b.print("["),a.property.print(b),b.print("]")}),a(Wa,function(a,b){var c=a.operator;b.print(c),(/^[a-z]/i.test(c)||/[+-]$/.test(c)&&a.expression instanceof Wa&&/^[+-]/.test(a.expression.operator))&&b.space(),a.expression.print(b)}),a(Xa,function(a,b){a.expression.print(b),b.print(a.operator)}),a(Ya,function(a,b){var c=a.operator;a.left.print(b),">"==c[0]&&a.left instanceof Xa&&"--"==a.left.operator?b.print(" "):b.space(),b.print(c),("<"==c||"<<"==c)&&a.right instanceof Wa&&"!"==a.right.operator&&a.right.expression instanceof Wa&&"--"==a.right.expression.operator?b.print(" "):b.space(),a.right.print(b)}),a(Za,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(_a,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 Ab&&b.comma()}),d>0&&b.space()})}),a(ab,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(cb,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)):(Hb(c)?b.option("screw_ie8"):I(c))?b.print_name(c):b.print_string(c,d),b.colon(),a.value.print(b)}),a(db,function(a,b){b.print("set"),b.space(),a.key.print(b),a.value._do_print(b,!0)}),a(eb,function(a,b){b.print("get"),b.space(),a.key.print(b),a.value._do_print(b,!0)}),a(fb,function(a,b){var c=a.definition();b.print_name(c?c.mangled_name||c.name:a.name)}),a(zb,function(a,b){b.print("void 0")}),a(Ab,m),a(Bb,function(a,b){b.print("Infinity")}),a(yb,function(a,b){b.print("NaN")}),a(rb,function(a,b){b.print("this")}),a(sb,function(a,b){b.print(a.getValue())}),a(tb,function(a,b){b.print_string(a.getValue(),a.quote)}),a(ub,function(a,b){q&&null!=a.start.raw?b.print(a.start.raw):b.print(l(a.getValue()))}),a(vb,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 Ya&&/^in/.test(d.operator)&&d.left===a&&b.print(" ")}),o(_,m),o(ca,p),o(ba,p),o(fb,p),o(wa,p),o(ha,p),o(ia,m),o(sa,p),o(Ea,p),o(Fa,p),o(fa,p),o(ra,m),o(Qa,p),o(Ia,p),o(Ja,p),o(Ka,p),o(La,p),o(sb,p),o(db,function(a,b){b.add_mapping(a.start,a.key.name)}),o(eb,function(a,b){b.add_mapping(a.start,a.key.name)}),o(bb,function(a,b){b.add_mapping(a.start,a.key)})}(),S.prototype=new P,l(S.prototype,{option:function(a){return this.options[a]},warn:function(){this.options.warnings&&_.warn.apply(_,arguments)},before:function(a,b,c){if(a._squeezed)return a;var d=!1;return a instanceof qa&&(a=a.hoist_declarations(this),d=!0),b(a,this),a=a.optimize(this),d&&a instanceof qa&&(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 _)return c.transform(a);switch(typeof c){case"string":return b(tb,d,{value:c}).optimize(a);case"number":return b(isNaN(c)?yb:ub,d,{value:c}).optimize(a);case"boolean":return b(c?Eb:Db,d).optimize(a);case"undefined":return b(zb,d).optimize(a);default:if(null===c)return b(xb,d,{value:null}).optimize(a);if(c instanceof RegExp)return b(vb,d,{value:c}).optimize(a);throw new Error(o("Can't handle constant of type: {type}",{type:typeof c}))}}function d(a,c,d){return a instanceof Pa&&a.expression===c&&(d instanceof Sa||d instanceof pb&&"eval"===d.name)?b(Ra,c,{car:b(ub,c,{value:0}),cdr:d}):d}function e(a){if(null===a)return[];if(a instanceof fa)return a.body;if(a instanceof ga)return[];if(a instanceof aa)return[a];throw new Error("Can't convert thing to statement array")}function f(a){return null===a?!0:a instanceof ga?!0:a instanceof fa?0==a.body.length:!1}function i(a){return a instanceof Ea?a:(a instanceof na||a instanceof oa||a instanceof ka)&&a.body instanceof fa?a.body:a}function j(a,c){function f(a,c){function e(a,b){return a instanceof pb&&(b instanceof $a&&a===b.left||b instanceof Va&&b.expression===a&&("++"==b.operator||"--"==b.operator))}function g(f,g,j){if(e(f,g))return f;var m=d(g,f,u.value);return u.value=null,n.splice(t,1),0===n.length&&(a[l]=b(ga,h),i=!0),k.walk(new y(function(a){delete a._squeezed,delete a._optimized})),c.warn("Replacing "+(j?"constant":"variable")+" "+v+" [{file}:{line},{col}]",f.start),s=!0,m}for(var h=c.self(),i=!1,j=a.length;--j>=0;){var k=a[j];if(!(k instanceof La)){if([k,k.body,k.alternative,k.bcatch,k.bfinally].forEach(function(a){a&&a.body&&f(a.body,c)}),0>=j)break;var l=j-1,m=a[l];if(m instanceof La){var n=m.definitions;if(null!=n)for(var o={},p=!1,q=!1,r={},t=n.length;--t>=0;){var u=n[t];if(null==u.value)break;var v=u.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(u.value.is_constant(c)){var z=new P(function(a){return a===x?g(a,z.parent(),!0):void 0});k.transform(z)}else if(!(p|=q))if(x.scope===h){var A=new y(function(a){a instanceof pb&&e(a,A.parent())&&(r[a.name]=q=!0)});u.value.walk(A);var B=!1,C=new P(function(a){if(B)return a;var b=C.parent();return a instanceof sa||a instanceof Ia||a instanceof pa||a instanceof Ha||a instanceof ja||b instanceof Da&&a!==b.condition||b instanceof Za&&a!==b.condition||b instanceof Ya&&("&&"==b.operator||"||"==b.operator)&&a===b.right||b instanceof Ea&&a!==b.expression?(p=B=!0,a):void 0},function(a){return B?a:a===x?(B=!0,g(a,C.parent(),!1)):(p|=a.has_side_effects(c))?(B=!0,a):q&&a instanceof pb&&a.name in r?(p=!0,B=!0,a):void 0});k.transform(C)}else p|=u.value.has_side_effects(c)}else p=!0}}}}if(i)for(var D=a.length;--D>=0;)a.length>1&&a[D]instanceof ga&&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(tb,a,{value:a.name})})}function f(a,c){return b(_a,a,{elements:c})}function g(a,c){return b(da,a,{body:b($a,a,{operator:"=",left:b(Ta,c,{expression:b(pb,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 sa&&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 va?a.push(g(b,b.name)):b instanceof La?b.definitions.forEach(function(b){b.value&&b.value instanceof sa&&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 fa?(s=!0,a.push.apply(a,h(c.body))):c instanceof ga?s=!0:c instanceof ca?b.indexOf(c.value)<0?(a.push(c),b.push(c.value)):s=!0:a.push(c),a},[])}function j(a,c){var d=c.self(),f=d instanceof sa,g=[];a:for(var h=a.length;--h>=0;){var j=a[h];switch(!0){case f&&j instanceof ya&&!j.value&&0==g.length:s=!0;continue a;case j instanceof Da:if(j.body instanceof ya){if((f&&0==g.length||g[0]instanceof ya&&!g[0].value)&&!j.body.value&&!j.alternative){s=!0;var k=b(da,j.condition,{body:j.condition});g.unshift(k);continue a}if(g[0]instanceof ya&&j.body.value&&g[0].value&&!j.alternative){s=!0,j=j.clone(),j.alternative=g[0],g[0]=j.transform(c);continue a}if((0==g.length||g[0]instanceof ya)&&j.body.value&&!j.alternative&&f){s=!0,j=j.clone(),j.alternative=g[0]||b(ya,j,{value:b(zb,j)}),g[0]=j.transform(c);continue a}if(!j.body.value&&f){s=!0,j=j.clone(),j.condition=j.condition.negate(c),j.body=b(fa,j,{body:e(j.alternative).concat(g)}),j.alternative=null,g=[j.transform(c)];continue a}if(c.option("sequences")&&1==g.length&&f&&g[0]instanceof da&&(!j.alternative||j.alternative instanceof da)){s=!0,g.push(b(ya,g[0],{value:b(zb,g[0])}).transform(c)),g=e(j.alternative).concat(g),g.unshift(j);continue a}}var l=m(j.body),n=l instanceof Aa?c.loopcontrol_target(l.label):null;if(l&&(l instanceof ya&&!l.value&&f||l instanceof Ca&&d===i(n)||l instanceof Ba&&n instanceof fa&&d===n)){l.label&&p(l.label.thedef.references,l),s=!0;var o=e(j.body).slice(0,-1);j=j.clone(),j.condition=j.condition.negate(c),j.body=b(fa,j,{body:e(j.alternative).concat(g)}),j.alternative=b(fa,j,{body:o}),g=[j.transform(c)];continue a}var l=m(j.alternative),n=l instanceof Aa?c.loopcontrol_target(l.label):null;if(l&&(l instanceof ya&&!l.value&&f||l instanceof Ca&&d===i(n)||l instanceof Ba&&n instanceof fa&&d===n)){l.label&&p(l.label.thedef.references,l),s=!0,j=j.clone(),j.body=b(fa,j.body,{body:e(j.body).concat(g)}),j.alternative=b(fa,j.alternative,{body:e(j.alternative).slice(0,-1)}),g=[j.transform(c)];continue a}g.unshift(j);break;default:g.unshift(j)}}return g}function l(a,b){var c=!1,d=a.length,e=b.self();return a=a.reduce(function(a,d){if(c)k(b,d,a);else{if(d instanceof Aa){var f=b.loopcontrol_target(d.label);d instanceof Ba&&f instanceof fa&&i(f)===e||d instanceof Ca&&i(f)===e?d.label&&p(d.label.thedef.references,d):a.push(d)}else a.push(d);m(d)&&(c=!0)}return a},[]),s=a.length!=d,a}function n(a,c){function d(){e=Ra.from_array(e),e&&f.push(b(da,e,{body:e})),e=[]}if(a.length<2)return a;var e=[],f=[];return a.forEach(function(a){a instanceof da&&e.length<2e3?e.push(a.body):(d(),f.push(a))}),d(),f=o(f,c),s=f.length!=a.length,f}function o(a,c){function d(a){e.pop();var b=f.body;return b instanceof Ra?b.add(a):b=Ra.cons(b,a),b.transform(c)}var e=[],f=null;return a.forEach(function(a){if(f)if(a instanceof na){var c={};try{f.body.walk(new y(function(a){if(a instanceof Ya&&"in"==a.operator)throw c})),!a.init||a.init instanceof La?a.init||(a.init=f.body,e.pop()):a.init=d(a.init)}catch(g){if(g!==c)throw g}}else a instanceof Da?a.condition=d(a.condition):a instanceof pa?a.expression=d(a.expression):a instanceof xa&&a.value?a.value=d(a.value):a instanceof xa?a.value=d(b(zb,a)):a instanceof Ea&&(a.expression=d(a.expression));e.push(a),f=a instanceof da?a:null}),e}function q(a,b){var c=null;return a.reduce(function(a,b){return b instanceof La&&c&&c.TYPE==b.TYPE?(c.definitions=c.definitions.concat(b.definitions),s=!0):b instanceof na&&c instanceof La&&(!b.init||b.init.TYPE==c.TYPE)?(s=!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 r(a,c){a.forEach(function(a){a instanceof da&&(a.body=function c(a){return a.transform(new P(function(a){if(a instanceof Pa&&a.expression instanceof ua)return b(Wa,a,{operator:"!",expression:a});if(a instanceof Pa)a.expression=c(a.expression);else if(a instanceof Ra)a.car=c(a.car);else if(a instanceof Za){var d=c(a.condition);if(d!==a.condition){a.condition=d;var e=a.consequent;a.consequent=a.alternative,a.alternative=e}}return a}))}(a.body))})}var s,t=10;do s=!1,c.option("angular")&&(a=g(a)),a=h(a),c.option("dead_code")&&(a=l(a,c)),c.option("if_return")&&(a=j(a,c)),c.option("sequences")&&(a=n(a,c)),c.option("join_vars")&&(a=q(a,c)),c.option("collapse_vars")&&(a=f(a,c));while(s&&t-- >0);return c.option("negate_iife")&&r(a,c),a}function k(a,b,c){a.warn("Dropping unreachable code [{file}:{line},{col}]",b.start),b.walk(new y(function(b){return b instanceof La?(a.warn("Declarations in unreachable code! [{file}:{line},{col}]",b.start),b.remove_initializers(),c.push(b),!0):b instanceof va?(c.push(b),!0):b instanceof qa?!0:void 0}))}function l(a,b){return a.print_to_string().length>b.print_to_string().length?b:a}function m(a){return a&&a.aborts()}function r(a,c){function d(d){d=e(d),a.body instanceof fa?(a.body=a.body.clone(),a.body.body=d.concat(a.body.body.slice(1)),a.body=a.body.transform(c)):a.body=b(fa,a.body,{body:d}).transform(c),r(a,c)}var f=a.body instanceof fa?a.body.body[0]:a.body;f instanceof Da&&(f.body instanceof Ba&&c.loopcontrol_target(f.body.label)===a?(a.condition?a.condition=b(Ya,a.condition,{left:a.condition,operator:"&&",right:f.condition.negate(c)}):a.condition=f.condition.negate(c),d(f.alternative)):f.alternative instanceof Ba&&c.loopcontrol_target(f.alternative.label)===a&&(a.condition?a.condition=b(Ya,a.condition,{left:a.condition,operator:"&&",right:f.condition}):a.condition=f.condition,d(f.body)))}function s(a,b){var c=b.option("pure_getters");b.options.pure_getters=!1;var d=a.has_side_effects(b);return b.options.pure_getters=c,d}function w(a,c){return c.option("booleans")&&c.in_boolean_context()&&!a.has_side_effects(c)?b(Eb,a):a}a(_,function(a,b){return a}),_.DEFMETHOD("equivalent_to",function(a){return this.print_to_string()==a.print_to_string()}),function(a){var b=["!","delete"],c=["in","instanceof","==","!=","===","!==","<","<=",">=",">"];a(_,function(){return!1}),a(Wa,function(){return g(this.operator,b)}),a(Ya,function(){return g(this.operator,c)||("&&"==this.operator||"||"==this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),a(Za,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),a($a,function(){return"="==this.operator&&this.right.is_boolean()}),a(Ra,function(){return this.cdr.is_boolean()}),a(Eb,function(){return!0}),a(Db,function(){return!0})}(function(a,b){a.DEFMETHOD("is_boolean",b)}),function(a){a(_,function(){return!1}),a(tb,function(){return!0}),a(Wa,function(){return"typeof"==this.operator}),a(Ya,function(a){return"+"==this.operator&&(this.left.is_string(a)||this.right.is_string(a))}),a($a,function(a){return("="==this.operator||"+="==this.operator)&&this.right.is_string(a)}),a(Ra,function(a){return this.cdr.is_string(a)}),a(Za,function(a){return this.consequent.is_string(a)&&this.alternative.is_string(a)}),a(Pa,function(a){return a.option("unsafe")&&this.expression instanceof pb&&"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)}_.DEFMETHOD("evaluate",function(b){if(!b.option("evaluate"))return[this];try{var d=this._eval(b);return[l(c(b,d,this),this),d]}catch(e){if(e!==a)throw e;return[this]}}),_.DEFMETHOD("is_constant",function(a){return this instanceof sb||this instanceof Wa&&"!"==this.operator&&this.expression instanceof sb||this.evaluate(a).length>1}),_.DEFMETHOD("constant_value",function(a){if(this instanceof sb)return this.value;if(this instanceof Wa&&"!"==this.operator&&this.expression instanceof sb)return!this.expression.value;var b=this.evaluate(a);return b.length>1?b[1]:void 0}),a(aa,function(){throw new Error(o("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),a(ua,function(){throw a}),a(_,function(){throw a}),a(sb,function(){return this.getValue()}),a(Wa,function(c){var d=this.expression;switch(this.operator){case"!":return!b(d,c);case"typeof":if(d instanceof ua)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"-":if(d=b(d,c),0===d)throw a;return-d;case"+":return+b(d,c)}throw a}),a(Ya,function(c){var d=this.left,e=this.right;switch(this.operator){case"&&":return b(d,c)&&b(e,c);case"||":return b(d,c)||b(e,c);case"|":return b(d,c)|b(e,c);case"&":return b(d,c)&b(e,c);case"^":return b(d,c)^b(e,c);case"+":return b(d,c)+b(e,c);case"*":return b(d,c)*b(e,c);case"/":return b(d,c)/b(e,c);case"%":return b(d,c)%b(e,c);case"-":return b(d,c)-b(e,c);case"<<":return b(d,c)<>":return b(d,c)>>b(e,c);case">>>":return b(d,c)>>>b(e,c);case"==":return b(d,c)==b(e,c);case"===":return b(d,c)===b(e,c);case"!=":return b(d,c)!=b(e,c);case"!==":return b(d,c)!==b(e,c);case"<":return b(d,c)":return b(d,c)>b(e,c);case">=":return b(d,c)>=b(e,c);case"in":return b(d,c)in b(e,c);case"instanceof":return b(d,c)instanceof b(e,c)}throw a}),a(Za,function(a){return b(this.condition,a)?b(this.consequent,a):b(this.alternative,a)}),a(pb,function(c){var d=this.definition();if(d&&d.constant&&d.init)return b(d.init,c);throw a}),a(Ta,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(Wa,a,{operator:"!",expression:a})}a(_,function(){return c(this)}),a(aa,function(){throw new Error("Cannot negate a statement")}),a(ua,function(){return c(this)}),a(Wa,function(){return"!"==this.operator?this.expression:c(this)}),a(Ra,function(a){var b=this.clone();return b.cdr=b.cdr.negate(a),b}),a(Za,function(a){var b=this.clone();return b.consequent=b.consequent.negate(a),b.alternative=b.alternative.negate(a),l(c(this),b)}),a(Ya,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),l(c(this),b);case"||":return b.operator="&&",b.left=b.left.negate(a),b.right=b.right.negate(a),l(c(this),b)}return c(this)})}(function(a,b){a.DEFMETHOD("negate",function(a){return b.call(this,a)})}),function(a){a(_,function(a){return!0}),a(ga,function(a){return!1}),a(sb,function(a){return!1}),a(rb,function(a){return!1}),a(Pa,function(a){var b=a.option("pure_funcs");return b?"function"==typeof b?b(this):b.indexOf(this.expression.print_to_string())<0:!0}),a(ea,function(a){for(var b=this.body.length;--b>=0;)if(this.body[b].has_side_effects(a))return!0;return!1}),a(da,function(a){return this.body.has_side_effects(a)}),a(va,function(a){return!0}),a(ua,function(a){return!1}),a(Ya,function(a){return this.left.has_side_effects(a)||this.right.has_side_effects(a)}),a($a,function(a){return!0}),a(Za,function(a){return this.condition.has_side_effects(a)||this.consequent.has_side_effects(a)||this.alternative.has_side_effects(a)}),a(Va,function(a){return"delete"==this.operator||"++"==this.operator||"--"==this.operator||this.expression.has_side_effects(a)}),a(pb,function(a){return this.global()&&this.undeclared()}),a(ab,function(a){for(var b=this.properties.length;--b>=0;)if(this.properties[b].has_side_effects(a))return!0;return!1}),a(bb,function(a){return this.value.has_side_effects(a)}),a(_a,function(a){for(var b=this.elements.length;--b>=0;)if(this.elements[b].has_side_effects(a))return!0;return!1}),a(Ta,function(a){return a.option("pure_getters")?this.expression.has_side_effects(a):!0}),a(Ua,function(a){return a.option("pure_getters")?this.expression.has_side_effects(a)||this.property.has_side_effects(a):!0}),a(Sa,function(a){return!a.option("pure_getters")}),a(Ra,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&&m(this.body[a-1])}a(aa,function(){return null}),a(wa,function(){return this}),a(fa,b),a(Fa,b),a(Da,function(){return this.alternative&&m(this.body)&&m(this.alternative)&&this})}(function(a,b){a.DEFMETHOD("aborts",b)}),a(ca,function(a,c){return"up"===c.has_directive(a.value)?b(ga,a):a}),a(ba,function(a,c){return c.option("drop_debugger")?b(ga,a):a}),a(ia,function(a,c){return a.body instanceof Ba&&c.loopcontrol_target(a.body.label)===a.body?b(ga,a):0==a.label.references.length?a.body:a}),a(ea,function(a,b){return a.body=j(a.body,b),a}),a(fa,function(a,c){switch(a.body=j(a.body,c),a.body.length){case 1:return a.body[0];case 0:return b(ga,a)}return a}),qa.DEFMETHOD("drop_unused",function(a){var c=this;if(a.has_directive("use asm"))return c;if(a.option("unused")&&!(c instanceof ra)&&!c.uses_eval){var d=[],e=new v,f=this,h=new y(function(b,g){if(b!==c){if(b instanceof va)return e.add(b.name.name,b),!0;if(b instanceof La&&f===c)return b.definitions.forEach(function(b){b.value&&(e.add(b.name.name,b.value),b.value.has_side_effects(a)&&b.value.walk(h))}),!0;if(b instanceof pb)return n(d,b.definition()),!0;if(b instanceof qa){var i=f;return f=b,g(),f=i,!0}}});c.walk(h);for(var i=0;i=0;){var l=i[k];if(!l.unreferenced())break;i.pop(),a.warn("Dropping unused function argument {name} [{file}:{line},{col}]",{name:l.name,file:l.start.file,line:l.start.line,col:l.start.col})}if(e instanceof va&&e!==c)return g(e.name.definition(),d)?e:(a.warn("Dropping unused function {name} [{file}:{line},{col}]",{name:e.name.name,file:e.name.start.file,line:e.name.start.line,col:e.name.start.col}),b(ga,e));if(e instanceof La&&!(j.parent()instanceof oa)){var m=e.definitions.filter(function(b){if(g(b.name.definition(),d))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)});m=q(m,function(a,b){return!a.value&&b.value?-1:!b.value&&a.value?1:0});for(var n=[],k=0;k0&&(n.push(o.value),o.value=Ra.from_array(n),n=[]),++k)}return n=n.length>0?b(fa,e,{body:[b(da,e,{body:Ra.from_array(n)})]}):null,0!=m.length||n?0==m.length?h?Z.splice(n.body):n:(e.definitions=m,n?(n.body.unshift(e),h?Z.splice(n.body):n):e):b(ga,e)}if(e instanceof na&&(f(e,this),e.init instanceof fa)){var p=e.init.body.slice(0,-1);return e.init=e.init.body.slice(-1)[0].body,p.push(e),h?Z.splice(p):b(fa,e,{body:p})}return e instanceof qa&&e!==c?e:void 0});c.transform(j)}}),qa.DEFMETHOD("hoist_declarations",function(a){var c=this;if(a.has_directive("use asm"))return c;var d=a.option("hoist_funs"),e=a.option("hoist_vars");if(d||e){var f=[],g=[],i=new v,j=0,k=0;c.walk(new y(function(a){return a instanceof qa&&a!==c?!0:a instanceof Ma?(++k,!0):void 0})),e=e&&k>1;var l=new P(function(a){if(a!==c){if(a instanceof ca)return f.push(a),b(ga,a);if(a instanceof va&&d)return g.push(a),b(ga,a);if(a instanceof Ma&&e){a.definitions.forEach(function(a){i.set(a.name.name,a),++j});var h=a.to_assignments(),k=l.parent();if(k instanceof oa&&k.init===a){if(null==h){var m=a.definitions[0].name;return b(pb,m,m)}return h}return k instanceof na&&k.init===a?h:h?b(da,a,{body:h}):b(ga,a)}if(a instanceof qa)return a}});if(c=c.transform(l),j>0){var m=[];if(i.each(function(a,b){c instanceof sa&&h(function(b){return b.name==a.name.name},c.argnames)?i.del(b):(a=a.clone(),a.value=null,m.push(a),i.set(b,a))}),m.length>0){for(var n=0;n1){if(d[1])return b(na,a,{body:a.body});if(a instanceof ma&&c.option("dead_code")){var e=[];return k(c,a.body,e),b(fa,a,{body:e})}}return a}),a(ma,function(a,c){return c.option("loops")?(a=ka.prototype.optimize.call(a,c),a instanceof ma&&(r(a,c),a=b(na,a,a).transform(c)),a):a}),a(na,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 aa?e.push(a.init):a.init&&e.push(b(da,a.init,{body:a.init})),k(c,a.body,e),b(fa,a,{body:e})}return r(a,c),a}),a(Da,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&&k(c,a.alternative,e),e.push(a.body),b(fa,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 k(c,a.body,e),a.alternative&&e.push(a.alternative),b(fa,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=h>i;if(a.alternative&&j){j=!1,a.condition=g;var l=a.body;a.body=a.alternative||b(ga),a.alternative=l}if(f(a.body)&&f(a.alternative))return b(da,a.condition,{body:a.condition}).transform(c);if(a.body instanceof da&&a.alternative instanceof da)return b(da,a,{body:b(Za,a,{condition:a.condition,consequent:a.body.body,alternative:a.alternative.body})}).transform(c);if(f(a.alternative)&&a.body instanceof da)return h===i&&!j&&a.condition instanceof Ya&&"||"==a.condition.operator&&(j=!0),j?b(da,a,{body:b(Ya,a,{operator:"||",left:g,right:a.body.body})}).transform(c):b(da,a,{body:b(Ya,a,{operator:"&&",left:a.condition,right:a.body.body})}).transform(c);if(a.body instanceof ga&&a.alternative&&a.alternative instanceof da)return b(da,a,{body:b(Ya,a,{operator:"||",left:a.condition,right:a.alternative.body})}).transform(c);if(a.body instanceof xa&&a.alternative instanceof xa&&a.body.TYPE==a.alternative.TYPE)return b(a.body.CTOR,a,{value:b(Za,a,{condition:a.condition,consequent:a.body.value||b(zb,a.body).optimize(c),alternative:a.alternative.value||b(zb,a.alternative).optimize(c)})}).transform(c);if(a.body instanceof Da&&!a.body.alternative&&!a.alternative&&(a.condition=b(Ya,a.condition,{ operator:"&&",left:a.condition,right:a.body.condition}).transform(c),a.body=a.body.body),m(a.body)&&a.alternative){var n=a.alternative;return a.alternative=null,b(fa,a,{body:[a,n]}).transform(c)}if(m(a.alternative)){var o=a.body;return a.body=a.alternative,a.condition=j?g:a.condition.negate(c),a.alternative=null,b(fa,a,{body:[a,o]}).transform(c)}return a}),a(Ea,function(a,c){if(0==a.body.length&&c.option("conditionals"))return b(da,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 Ba&&i(c.loopcontrol_target(e.label))===a&&d.body.pop(),d instanceof Ga&&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,n=!1,o=new P(function(d,e,f){if(d instanceof sa||d instanceof da)return d;if(d instanceof Ea&&d===a)return d=d.clone(),e(d,this),n?d:b(fa,d,{body:d.body.reduce(function(a,b){return a.concat(b.body)},[])}).transform(c);if(d instanceof Da||d instanceof Ia){var i=h;return h=!j,e(d,this),h=i,d}if(d instanceof ha||d instanceof Ea){var i=j;return j=!0,e(d,this),j=i,d}if(d instanceof Ba&&this.loopcontrol_target(d.label)===a)return h?(n=!0,d):j?d:(l=!0,f?Z.skip:b(ga,d));if(d instanceof Fa&&this.parent()===a){if(l)return Z.skip;if(d instanceof Ha){var o=d.expression.evaluate(c);if(o.length<2)throw a;return o[1]===g||k?(k=!0,m(d)&&(l=!0),e(d,this),d):Z.skip}return e(d,this),d}});o.stack=c.stack.slice(),a=a.transform(o)}catch(p){if(p!==a)throw p}return a}),a(Ha,function(a,b){return a.body=j(a.body,b),a}),a(Ia,function(a,b){return a.body=j(a.body,b),a}),La.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(a){a.value=null})}),La.DEFMETHOD("to_assignments",function(){var a=this.definitions.reduce(function(a,c){if(c.value){var d=b(pb,c.name,c.name);a.push(b($a,c,{operator:"=",left:d,right:c.value}))}return a},[]);return 0==a.length?null:Ra.from_array(a)}),a(La,function(a,c){return 0==a.definitions.length?b(ga,a):a}),a(ua,function(a,b){return a=sa.prototype.optimize.call(a,b),b.option("unused")&&!b.option("keep_fnames")&&a.name&&a.name.unreferenced()&&(a.name=null),a}),a(Pa,function(a,d){if(d.option("unsafe")){var e=a.expression;if(e instanceof pb&&e.undeclared())switch(e.name){case"Array":if(1!=a.args.length)return b(_a,a,{elements:a.args}).transform(d);break;case"Object":if(0==a.args.length)return b(ab,a,{properties:[]});break;case"String":if(0==a.args.length)return b(tb,a,{value:""});if(a.args.length<=1)return b(Ya,a,{left:a.args[0],operator:"+",right:b(tb,a,{value:""})}).transform(d);break;case"Number":if(0==a.args.length)return b(ub,a,{value:0});if(1==a.args.length)return b(Wa,a,{expression:a.args[0],operator:"+"}).transform(d);case"Boolean":if(0==a.args.length)return b(Db,a);if(1==a.args.length)return b(Wa,a,{expression:b(Wa,null,{expression:a.args[0],operator:"!"}),operator:"!"}).transform(d);break;case"Function":if(0==a.args.length)return b(ua,a,{argnames:[],body:[]});if(u(a.args,function(a){return a instanceof tb}))try{var f="(function("+a.args.slice(0,-1).map(function(a){return a.value}).join(",")+"){"+a.args[a.args.length-1].value+"})()",g=O(f);g.figure_out_scope({screw_ie8:d.option("screw_ie8")});var h=new S(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 y(function(a){if(a instanceof sa)throw i=a,g}))}catch(j){if(j!==g)throw j}if(!i)return a;var k=i.argnames.map(function(c,d){return b(tb,a.args[d],{value:c.print_to_string()})}),f=R();return fa.prototype._codegen.call(i,i,f),f=f.toString().replace(/^\{|\}$/g,""),k.push(b(tb,a.args[a.args.length-1],{value:f})),a.args=k,a}catch(j){if(!(j instanceof K))throw console.log(j),j;d.warn("Error parsing code passed to new Function [{file}:{line},{col}]",a.args[a.args.length-1].start),d.warn(j.toString())}}else{if(e instanceof Ta&&"toString"==e.property&&0==a.args.length)return b(Ya,a,{left:b(tb,a,{value:""}),operator:"+",right:e.expression}).transform(d);if(e instanceof Ta&&e.expression instanceof _a&&"join"==e.property){var m=0==a.args.length?",":a.args[0].evaluate(d)[1];if(null!=m){var n=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]+m+b[1];a[a.length-1]=[c(d,f,e[0]),f]}else a.push(b)}return a},[]);if(0==n.length)return b(tb,a,{value:""});if(1==n.length)return n[0][0];if(""==m){var o;return o=n[0][0]instanceof tb||n[1][0]instanceof tb?n.shift()[0]:b(tb,a,{value:""}),n.reduce(function(a,c){return b(Ya,c[0],{operator:"+",left:a,right:c[0]})},o).transform(d)}var p=a.clone();return p.expression=p.expression.clone(),p.expression.expression=p.expression.expression.clone(),p.expression.expression.elements=n.map(function(a){return a[0]}),l(a,p)}}}}if(d.option("side_effects")&&a.expression instanceof ua&&0==a.args.length&&!ea.prototype.has_side_effects.call(a.expression,d))return b(zb,a).transform(d);if(d.option("drop_console")&&a.expression instanceof Sa){for(var q=a.expression.expression;q.expression;)q=q.expression;if(q instanceof pb&&"console"==q.name&&q.undeclared())return b(zb,a).transform(d)}return a.evaluate(d)[0]}),a(Qa,function(a,c){if(c.option("unsafe")){var d=a.expression;if(d instanceof pb&&d.undeclared())switch(d.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return b(Pa,a,a).transform(c)}}return a}),a(Ra,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 $a&&!a.car.left.has_side_effects(c)){if(a.car.left.equivalent_to(a.cdr))return a.car;if(a.cdr instanceof Pa&&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 Wa&&"void"==a.cdr.operator&&!a.cdr.expression.has_side_effects(c)?(a.cdr.expression=a.car,a.cdr):a.cdr instanceof zb?b(Wa,a,{operator:"void",expression:a.car}):a}),Va.DEFMETHOD("lift_sequences",function(a){if(a.option("sequences")&&this.expression instanceof Ra){var b=this.expression,c=b.to_array();return this.expression=c.pop(),c.push(this),b=Ra.from_array(c).transform(a)}return this}),a(Xa,function(a,b){return a.lift_sequences(b)}),a(Wa,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 Wa&&"!"==d.operator)return d.expression;break;case"typeof":return c.warn("Boolean expression always true [{file}:{line},{col}]",a.start),b(Eb,a)}d instanceof Ya&&"!"==a.operator&&(a=l(a,d.negate(c)))}return a.evaluate(c)[0]}),Ya.DEFMETHOD("lift_sequences",function(a){if(a.option("sequences")){if(this.left instanceof Ra){var b=this.left,c=b.to_array();return this.left=c.pop(),c.push(this),b=Ra.from_array(c).transform(a)}if(this.right instanceof Ra&&this instanceof $a&&!s(this.left,a)){var b=this.right,c=b.to_array();return this.right=c.pop(),c.push(this),b=Ra.from_array(c).transform(a)}}return this});var x=t("== === != !== * & | ^");a(Ya,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(x(a.operator)&&(a.right instanceof sb&&!(a.left instanceof sb)&&(a.left instanceof Ya&&Wb[a.left.operator]>=Wb[a.operator]||e(null,!0)),/^[!=]==?$/.test(a.operator))){if(a.left instanceof pb&&a.right instanceof Za){if(a.right.consequent instanceof pb&&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 pb&&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 pb&&a.left instanceof Za){if(a.left.consequent instanceof pb&&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 pb&&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 tb&&"undefined"==a.left.value&&a.right instanceof Wa&&"typeof"==a.right.operator&&c.option("unsafe")&&(a.right.expression instanceof pb&&a.right.expression.undeclared()||(a.right=a.right.expression,a.left=b(zb,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(Ra,a,{car:a.left,cdr:b(Db)}).optimize(c):b(Db,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(Ra,a,{car:a.left,cdr:b(Eb)}).optimize(c):b(Eb,a);if(f.length>1&&!f[1])return g[0];if(g.length>1&&!g[1])return f[0];break;case"+":var f=a.left.evaluate(c),g=a.right.evaluate(c);if(f.length>1&&f[0]instanceof tb&&f[1]||g.length>1&&g[0]instanceof tb&&g[1])return c.warn("+ in boolean context always true [{file}:{line},{col}]",a.start),b(Eb,a)}if(c.option("comparisons")&&a.is_boolean()){if(!(c.parent()instanceof Ya)||c.parent()instanceof $a){var h=b(Wa,a,{operator:"!",expression:a.negate(c)});a=l(a,h)}switch(a.operator){case"<":e(">");break;case"<=":e(">=")}}return"+"==a.operator&&a.right instanceof tb&&""===a.right.getValue()&&a.left instanceof Ya&&"+"==a.left.operator&&a.left.is_string(c)?a.left:(c.option("evaluate")&&"+"==a.operator&&(a.left instanceof sb&&a.right instanceof Ya&&"+"==a.right.operator&&a.right.left instanceof sb&&a.right.is_string(c)&&(a=b(Ya,a,{operator:"+",left:b(tb,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 sb&&a.left instanceof Ya&&"+"==a.left.operator&&a.left.right instanceof sb&&a.left.is_string(c)&&(a=b(Ya,a,{operator:"+",left:a.left.left,right:b(tb,null,{value:""+a.left.right.getValue()+a.right.getValue(),start:a.left.right.start,end:a.right.end})})),a.left instanceof Ya&&"+"==a.left.operator&&a.left.is_string(c)&&a.left.right instanceof sb&&a.right instanceof Ya&&"+"==a.right.operator&&a.right.left instanceof sb&&a.right.is_string(c)&&(a=b(Ya,a,{operator:"+",left:b(Ya,a.left,{operator:"+",left:a.left.left,right:b(tb,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 Ya&&a.right.operator==a.operator&&("&&"==a.operator||"||"==a.operator)?(a.left=b(Ya,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(pb,function(a,d){function e(a,b){return b instanceof Ya&&"="===b.operator&&b.left===a}if(a.undeclared()&&!e(a,d.parent())){var f=d.option("global_defs");if(f&&f.hasOwnProperty(a.name))return c(d,f[a.name],a);switch(a.name){case"undefined":return b(zb,a);case"NaN":return b(yb,a).transform(d);case"Infinity":return b(Bb,a).transform(d)}}return a}),a(Bb,function(a,c){return b(Ya,a,{operator:"/",left:b(ub,a,{value:1}),right:b(ub,a,{value:0})})}),a(zb,function(a,c){if(c.option("unsafe")){var d=c.find_parent(qa),e=d.find_variable("undefined");if(e){var f=b(pb,a,{name:"undefined",scope:d,thedef:e});return f.reference(),f}}return a});var z=["+","-","/","*","%",">>","<<",">>>","|","^","&"];a($a,function(a,b){return a=a.lift_sequences(b),"="==a.operator&&a.left instanceof pb&&a.right instanceof Ya&&a.right.left instanceof pb&&a.right.left.name==a.left.name&&g(a.right.operator,z)&&(a.operator=a.right.operator+"=",a.right=a.right.right),a}),a(Za,function(a,e){function f(a){return a instanceof Eb||a instanceof Wa&&"!"==a.operator&&a.expression instanceof sb&&!a.expression.value}function g(a){return a instanceof Db||a instanceof Wa&&"!"==a.operator&&a.expression instanceof sb&&!!a.expression.value}if(!e.option("conditionals"))return a;if(a.condition instanceof Ra){var h=a.condition.car;return a.condition=a.condition.cdr,Ra.cons(h,a)}var i=a.condition.evaluate(e);if(i.length>1)return i[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 j=i[0].negate(e);l(i[0],j)===j&&(a=b(Za,a,{condition:j,consequent:a.alternative,alternative:a.consequent}));var k=a.consequent,m=a.alternative;if(k instanceof $a&&m instanceof $a&&k.operator==m.operator&&k.left.equivalent_to(m.left)&&!k.left.has_side_effects(e))return b($a,a,{operator:k.operator,left:k.left,right:b(Za,a,{condition:a.condition,consequent:k.right,alternative:m.right})});if(k instanceof Pa&&m.TYPE===k.TYPE&&k.args.length==m.args.length&&!k.expression.has_side_effects(e)&&k.expression.equivalent_to(m.expression)){if(0==k.args.length)return b(Ra,a,{car:a.condition,cdr:k});if(1==k.args.length)return k.args[0]=b(Za,a,{condition:a.condition,consequent:k.args[0],alternative:m.args[0]}),k}if(k instanceof Za&&k.alternative.equivalent_to(m))return b(Za,a,{condition:b(Ya,a,{left:a.condition,operator:"&&",right:k.condition}),consequent:k.consequent,alternative:m});if(k.is_constant(e)&&m.is_constant(e)&&k.equivalent_to(m)){var n=k.constant_value();return a.condition.has_side_effects(e)?Ra.from_array([a.condition,c(e,n,a)]):c(e,n,a)}return f(k)&&g(m)?a.condition.is_boolean()?a.condition:(a.condition=a.condition.negate(e),b(Wa,a.condition,{operator:"!",expression:a.condition})):g(k)&&f(m)?a.condition.negate(e):a}),a(Cb,function(a,c){if(c.option("booleans")){var d=c.parent();return d instanceof Ya&&("=="==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(ub,a,{value:+a.value})):b(Wa,a,{operator:"!",expression:b(ub,a,{value:1-a.value})})}return a}),a(Ua,function(a,c){var d=a.property;if(d instanceof tb&&c.option("properties")){if(d=d.getValue(),Hb(d)?c.option("screw_ie8"):I(d))return b(Ta,a,{expression:a.expression,property:d}).optimize(c);var e=parseFloat(d);isNaN(e)||e.toString()!=d||(a.property=b(ub,a.property,{value:e}))}return a}),a(Ta,function(a,c){var d=a.property;return Hb(d)&&!c.option("screw_ie8")?b(Ua,a,{expression:a.expression,property:b(tb,a,{value:d})}).optimize(c):a.evaluate(c)[0]}),a(_a,w),a(ab,w),a(vb,w),a(ya,function(a,b){return a.value instanceof zb&&(a.value=null),a})}(),function(){function a(a){return"Literal"==a.type?null!=a.raw?a.raw:a.value+"":void 0}function b(b){var c=b.loc,d=c&&c.start,e=b.range;return new $({file:c&&c.source,line:d&&d.line,col:d&&d.column,pos:e?e[0]:b.start,endline:d&&d.line,endcol:d&&d.column,endpos:e?e[0]:b.start,raw:a(b)})}function d(b){var c=b.loc,d=c&&c.end,e=b.range;return new $({file:c&&c.source,line:d&&d.line,col:d&&d.column,pos:e?e[1]:b.end,endline:d&&d.line,endcol:d&&d.column,endpos:e?e[1]:b.end,raw:a(b)})}function e(a,e,g){var l="function From_Moz_"+a+"(M){\n";l+="return new U2."+e.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var m="function To_Moz_"+a+"(M){\n";m+="return {\ntype: "+JSON.stringify(a),g&&g.split(/\s*,\s*/).forEach(function(a){var b=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(a);if(!b)throw new Error("Can't understand property map: "+a);var c=b[1],d=b[2],e=b[3];switch(l+=",\n"+e+": ",m+=",\n"+c+": ",d){case"@":l+="M."+c+".map(from_moz)",m+="M."+e+".map(to_moz)";break;case">":l+="from_moz(M."+c+")",m+="to_moz(M."+e+")";break;case"=":l+="M."+c,m+="M."+e;break;case"%":l+="from_moz(M."+c+").body",m+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+a)}}),l+="\n})\n}",m+="\n}\n}",l=new Function("U2","my_start_token","my_end_token","from_moz","return("+l+")")(c,b,d,f),m=new Function("to_moz","to_moz_block","return("+m+")")(i,j),k[a]=l,h(e,m)}function f(a){l.push(a);var b=null!=a?k[a.type](a):null;return l.pop(),b}function g(a,b,c){var d=a.start,e=a.end;return null!=d.pos&&null!=e.endpos&&(b.range=[d.pos,e.endpos]),d.line&&(b.loc={start:{line:d.line,column:d.col},end:e.endline?{line:e.endline,column:e.endcol}:null},d.file&&(b.loc.source=d.file)),b}function h(a,b){a.DEFMETHOD("to_mozilla_ast",function(){return g(this,b(this))})}function i(a){return null!=a?a.to_mozilla_ast():null}function j(a){return{type:"BlockStatement",body:a.body.map(i)}}var k={ExpressionStatement:function(a){var c=a.expression;return"Literal"===c.type&&"string"==typeof c.value?new ca({start:b(a),end:d(a),value:c.value}):new da({start:b(a),end:d(a),body:f(c)})},TryStatement:function(a){var c=a.handlers||[a.handler];if(c.length>1||a.guardedHandlers&&a.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new Ia({start:b(a),end:d(a),body:f(a.block).body,bcatch:f(c[0]),bfinally:a.finalizer?new Ka(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 cb(g);case"set":return g.value.name=f(c),new db(g);case"get":return g.value.name=f(c),new eb(g)}},ObjectExpression:function(a){return new ab({start:b(a),end:d(a),properties:a.properties.map(function(a){return a.type="Property",f(a)})})},SequenceExpression:function(a){return Ra.from_array(a.expressions.map(f))},MemberExpression:function(a){return new(a.computed?Ua:Ta)({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?Ha:Ga)({start:b(a),end:d(a),expression:f(a.test),body:a.consequent.map(f)})},VariableDeclaration:function(a){return new("const"===a.kind?Na:Ma)({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 xb(e);switch(typeof c){case"string":return e.value=c,new tb(e);case"number":return e.value=c,new ub(e);case"boolean":return new(c?Eb:Db)(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 vb(e)}},Identifier:function(a){var c=l[l.length-2];return new("LabeledStatement"==c.type?ob:"VariableDeclarator"==c.type&&c.id===a?"const"==c.kind?jb:ib:"FunctionExpression"==c.type?c.id===a?mb:kb:"FunctionDeclaration"==c.type?c.id===a?lb:kb:"CatchClause"==c.type?nb:"BreakStatement"==c.type||"ContinueStatement"==c.type?qb:pb)({start:b(a),end:d(a),name:a.name})}};k.UpdateExpression=k.UnaryExpression=function(a){var c="prefix"in a?a.prefix:"UnaryExpression"==a.type;return new(c?Wa:Xa)({start:b(a),end:d(a),operator:a.operator,expression:f(a.argument)})},e("Program",ra,"body@body"),e("EmptyStatement",ga),e("BlockStatement",fa,"body@body"),e("IfStatement",Da,"test>condition, consequent>body, alternate>alternative"),e("LabeledStatement",ia,"label>label, body>body"),e("BreakStatement",Ba,"label>label"),e("ContinueStatement",Ca,"label>label"),e("WithStatement",pa,"object>expression, body>body"),e("SwitchStatement",Ea,"discriminant>expression, cases@body"),e("ReturnStatement",ya,"argument>value"),e("ThrowStatement",za,"argument>value"),e("WhileStatement",ma,"test>condition, body>body"),e("DoWhileStatement",la,"test>condition, body>body"),e("ForStatement",na,"init>init, test>condition, update>step, body>body"),e("ForInStatement",oa,"left>init, right>object, body>body"),e("DebuggerStatement",ba),e("FunctionDeclaration",va,"id>name, params@argnames, body%body"),e("VariableDeclarator",Oa,"id>name, init>value"),e("CatchClause",Ja,"param>argname, body%body"),e("ThisExpression",rb),e("ArrayExpression",_a,"elements@elements"),e("FunctionExpression",ua,"id>name, params@argnames, body%body"),e("BinaryExpression",Ya,"operator=operator, left>left, right>right"),e("LogicalExpression",Ya,"operator=operator, left>left, right>right"),e("AssignmentExpression",$a,"operator=operator, left>left, right>right"),e("ConditionalExpression",Za,"test>condition, consequent>consequent, alternate>alternative"),e("NewExpression",Qa,"callee>expression, arguments@args"),e("CallExpression",Pa,"callee>expression, arguments@args"),h(ca,function(a){return{type:"ExpressionStatement",expression:{type:"Literal",value:a.value}}}),h(da,function(a){return{type:"ExpressionStatement",expression:i(a.body)}}),h(Fa,function(a){return{type:"SwitchCase",test:i(a.expression),consequent:a.body.map(i)}}),h(Ia,function(a){return{type:"TryStatement",block:j(a),handler:i(a.bcatch),guardedHandlers:[],finalizer:i(a.bfinally)}}),h(Ja,function(a){return{type:"CatchClause",param:i(a.argname),guard:null,body:j(a)}}),h(La,function(a){return{type:"VariableDeclaration",kind:a instanceof Na?"const":"var",declarations:a.definitions.map(i)}}),h(Ra,function(a){return{type:"SequenceExpression",expressions:a.to_array().map(i)}}),h(Sa,function(a){var b=a instanceof Ua;return{type:"MemberExpression",object:i(a.expression),computed:b,property:b?i(a.property):{type:"Identifier",name:a.property}}}),h(Va,function(a){return{type:"++"==a.operator||"--"==a.operator?"UpdateExpression":"UnaryExpression",operator:a.operator,prefix:a instanceof Wa,argument:i(a.expression)}}),h(Ya,function(a){return{type:"&&"==a.operator||"||"==a.operator?"LogicalExpression":"BinaryExpression",left:i(a.left),operator:a.operator,right:i(a.right)}}),h(ab,function(a){return{type:"ObjectExpression",properties:a.properties.map(i)}}),h(bb,function(a){var b,c=F(a.key)?{type:"Identifier",name:a.key}:{type:"Literal",value:a.key};return a instanceof cb?b="init":a instanceof eb?b="get":a instanceof db&&(b="set"),{type:"Property",kind:b,key:c,value:i(a.value)}}),h(fb,function(a){var b=a.definition();return{type:"Identifier",name:b?b.mangled_name||b.name:a.name}}),h(vb,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(sb,function(a){var b=a.value;return"number"==typeof b&&(0>b||0===b&&0>1/b)?{type:"UnaryExpression",operator:"-",prefix:!0,argument:{type:"Literal",value:-b,raw:a.start.raw}}:{type:"Literal",value:b,raw:a.start.raw}}),h(wb,function(a){return{type:"Identifier",name:String(a.value)}}),Cb.DEFMETHOD("to_mozilla_ast",sb.prototype.to_mozilla_ast),xb.DEFMETHOD("to_mozilla_ast",sb.prototype.to_mozilla_ast),Ab.DEFMETHOD("to_mozilla_ast",function(){return null}),ea.DEFMETHOD("to_mozilla_ast",fa.prototype.to_mozilla_ast),sa.DEFMETHOD("to_mozilla_ast",ua.prototype.to_mozilla_ast);var l=null;_.from_mozilla_ast=function(a){var b=l;l=[];var c=f(a);return l=b,c}}(),c.Compressor=S,c.DefaultsError=j,c.Dictionary=v,c.JS_Parse_Error=K,c.MAP=Z,c.OutputStream=R,c.SourceMap=T,c.TreeTransformer=P,c.TreeWalker=y,c.base54=Zb,c.defaults=k,c.mangle_properties=V,c.merge=l,c.parse=O,c.push_uniq=n,c.string_template=o,c.is_identifier=F,c.SymbolDef=Q,c.sys=W,c.MOZ_SourceMap=X,c.UglifyJS=Y,c.array_to_hash=d,c.slice=e,c.characters=f,c.member=g,c.find_if=h,c.repeat_string=i,c.DefaultsError=j,c.defaults=k,c.merge=l,c.noop=m,c.MAP=Z,c.push_uniq=n,c.string_template=o,c.remove=p,c.mergeSort=q,c.set_difference=r,c.set_intersection=s,c.makePredicate=t,c.all=u,c.Dictionary=v,c.DEFNODE=w,c.AST_Token=$,c.AST_Node=_,c.AST_Statement=aa,c.AST_Debugger=ba,c.AST_Directive=ca,c.AST_SimpleStatement=da,c.walk_body=x,c.AST_Block=ea,c.AST_BlockStatement=fa,c.AST_EmptyStatement=ga,c.AST_StatementWithBody=ha,c.AST_LabeledStatement=ia,c.AST_IterationStatement=ja,c.AST_DWLoop=ka,c.AST_Do=la,c.AST_While=ma,c.AST_For=na,c.AST_ForIn=oa,c.AST_With=pa,c.AST_Scope=qa,c.AST_Toplevel=ra,c.AST_Lambda=sa,c.AST_Accessor=ta,c.AST_Function=ua,c.AST_Defun=va,c.AST_Jump=wa,c.AST_Exit=xa,c.AST_Return=ya,c.AST_Throw=za,c.AST_LoopControl=Aa,c.AST_Break=Ba,c.AST_Continue=Ca,c.AST_If=Da,c.AST_Switch=Ea,c.AST_SwitchBranch=Fa,c.AST_Default=Ga,c.AST_Case=Ha,c.AST_Try=Ia,c.AST_Catch=Ja,c.AST_Finally=Ka,c.AST_Definitions=La,c.AST_Var=Ma,c.AST_Const=Na,c.AST_VarDef=Oa,c.AST_Call=Pa,c.AST_New=Qa,c.AST_Seq=Ra,c.AST_PropAccess=Sa,c.AST_Dot=Ta,c.AST_Sub=Ua,c.AST_Unary=Va,c.AST_UnaryPrefix=Wa,c.AST_UnaryPostfix=Xa,c.AST_Binary=Ya,c.AST_Conditional=Za,c.AST_Assign=$a,c.AST_Array=_a,c.AST_Object=ab,c.AST_ObjectProperty=bb,c.AST_ObjectKeyVal=cb,c.AST_ObjectSetter=db,c.AST_ObjectGetter=eb,c.AST_Symbol=fb,c.AST_SymbolAccessor=gb,c.AST_SymbolDeclaration=hb,c.AST_SymbolVar=ib,c.AST_SymbolConst=jb,c.AST_SymbolFunarg=kb,c.AST_SymbolDefun=lb,c.AST_SymbolLambda=mb,c.AST_SymbolCatch=nb,c.AST_Label=ob,c.AST_SymbolRef=pb,c.AST_LabelRef=qb,c.AST_This=rb,c.AST_Constant=sb,c.AST_String=tb,c.AST_Number=ub,c.AST_RegExp=vb,c.AST_Atom=wb,c.AST_Null=xb,c.AST_NaN=yb,c.AST_Undefined=zb,c.AST_Hole=Ab,c.AST_Infinity=Bb,c.AST_Boolean=Cb,c.AST_False=Db,c.AST_True=Eb,c.TreeWalker=y,c.KEYWORDS=Fb,c.KEYWORDS_ATOM=Gb,c.RESERVED_WORDS=Hb,c.KEYWORDS_BEFORE_EXPRESSION=Ib,c.OPERATOR_CHARS=Jb,c.RE_HEX_NUMBER=Kb,c.RE_OCT_NUMBER=Lb,c.OPERATORS=Mb,c.WHITESPACE_CHARS=Nb,c.PUNC_BEFORE_EXPRESSION=Ob,c.PUNC_CHARS=Pb,c.REGEXP_MODIFIERS=Qb,c.UNICODE=Rb,c.is_letter=z,c.is_digit=A,c.is_alphanumeric_char=B,c.is_unicode_digit=C,c.is_unicode_combining_mark=D,c.is_unicode_connector_punctuation=E,c.is_identifier=F,c.is_identifier_start=G,c.is_identifier_char=H,c.is_identifier_string=I,c.parse_js_number=J,c.JS_Parse_Error=K,c.js_error=L,c.is_token=M,c.EX_EOF=Sb,c.tokenizer=N,c.UNARY_PREFIX=Tb,c.UNARY_POSTFIX=Ub,c.ASSIGNMENT=Vb,c.PRECEDENCE=Wb,c.STATEMENTS_WITH_LABELS=Xb,c.ATOMIC_START_TOKEN=Yb,c.parse=O,c.TreeTransformer=P,c.SymbolDef=Q,c.base54=Zb,c.OutputStream=R,c.Compressor=S,c.SourceMap=T,c.find_builtins=U,c.mangle_properties=V,c.AST_Node.warn_function=function(a){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(a)},c.minify=function(a,b){b=Y.defaults(b,{spidermonkey:!1,outSourceMap:null,sourceRoot:null,inSourceMap:null,fromString:!1,warnings:!1,mangle:{},mangleProperties:!1,nameCache:null,output:null,compress:{},parse:{}}),Y.base54.reset();var c=null,d={};if(b.spidermonkey?c=Y.AST_Node.from_mozilla_ast(a):("string"==typeof a&&(a=[a]),a.forEach(function(a,e){var f=b.fromString?a:fs.readFileSync(a,"utf8");d[a]=f,c=Y.parse(f,{filename:b.fromString?e:a,toplevel:c,bare_returns:b.parse?b.parse.bare_returns:void 0})})),b.wrap&&(c=c.wrap_commonjs(b.wrap,b.exportAll)),b.compress){var e={warnings:b.warnings};Y.merge(e,b.compress),c.figure_out_scope();var f=Y.Compressor(e);c=c.transform(f)}(b.mangleProperties||b.nameCache)&&(b.mangleProperties.cache=Y.readNameCache(b.nameCache,"props"),c=Y.mangle_properties(c,b.mangleProperties),Y.writeNameCache(b.nameCache,"props",b.mangleProperties.cache)),b.mangle&&(c.figure_out_scope(b.mangle),c.compute_char_frequency(b.mangle),c.mangle_names(b.mangle));var g=b.inSourceMap,h={};if("string"==typeof b.inSourceMap&&(g=fs.readFileSync(b.inSourceMap,"utf8")),b.outSourceMap&&(h.source_map=Y.SourceMap({file:b.outSourceMap,orig:g,root:b.sourceRoot}),b.sourceMapIncludeSources))for(var i in d)d.hasOwnProperty(i)&&h.source_map.get().setSourceContent(i,d[i]);b.output&&Y.merge(h,b.output);var j=Y.OutputStream(h);c.print(j),b.outSourceMap&&"string"==typeof b.outSourceMap&&(j+="\n//# sourceMappingURL="+b.outSourceMap);var k=h.source_map;return k&&(k+=""),{code:j+"",map:k}},c.describe_ast=function(){function a(c){b.print("AST_"+c.TYPE);var d=c.SELF_PROPS.filter(function(a){return!/^\$/.test(a)});d.length>0&&(b.space(),b.with_parens(function(){d.forEach(function(a,c){c&&b.space(),b.print(a)})})),c.documentation&&(b.space(),b.print_string(c.documentation)),c.SUBCLASSES.length>0&&(b.space(),b.with_block(function(){c.SUBCLASSES.forEach(function(c,d){b.indent(),a(c),b.newline()})}))}var b=Y.OutputStream({beautify:!0});return a(Y.AST_Node),b+""}},{"source-map":139,util:145}],141:[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"," "],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=-1!==d&&dC)&&(A=C)}var D,E;E=-1===A?h.lastIndexOf("@"):h.lastIndexOf("@",A),-1!==E&&(D=h.slice(0,E),h=h.slice(E+1),this.auth=decodeURIComponent(D)),A=-1;for(var B=0;BC)&&(A=C)}-1===A&&(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;H>B;B++){var I=G[B];if(I&&!I.match(t)){for(var J="",K=0,L=I.length;L>K;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;H>B;B++){var R=p[B];if(-1!==h.indexOf(R)){var S=encodeURIComponent(R);S===R&&(S=escape(R)), -h=h.split(R).join(S)}}var T=h.indexOf("#");-1!==T&&(this.hash=h.substr(T),h=h.slice(0,T));var U=h.indexOf("?");if(-1!==U?(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+(-1===this.hostname.indexOf(":")?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;f0?c.host.split("@"):!1;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("@"):!1;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":142,punycode:80,querystring:83}],142:[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}}},{}],143:[function(a,b,c){(function(a){function c(a,b){function c(){if(!e){if(d("throwDeprecation"))throw new Error(b);d("traceDeprecation")?console.trace(b):console.warn(b),e=!0}return a.apply(this,arguments)}if(d("noDeprecation"))return a;var e=!1;return c}function d(b){try{if(!a.localStorage)return!1}catch(c){return!1}var d=a.localStorage[b];return null==d?!1:"true"===String(d).toLowerCase()}b.exports=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],144:[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}},{}],145:[function(a,b,c){(function(b,d){function e(a,b){var d={seen:[],stylize:g};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),p(b)?d.showHidden=b:b&&c._extend(d,b),v(d.showHidden)&&(d.showHidden=!1),v(d.depth)&&(d.depth=2),v(d.colors)&&(d.colors=!1),v(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=f),i(d,a,d.depth)}function f(a,b){var c=e.styles[b];return c?"["+e.colors[c][0]+"m"+a+"["+e.colors[c][1]+"m":a}function g(a,b){return a}function h(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function i(a,b,d){if(a.customInspect&&b&&A(b.inspect)&&b.inspect!==c.inspect&&(!b.constructor||b.constructor.prototype!==b)){var e=b.inspect(d,a);return t(e)||(e=i(a,e,d)),e}var f=j(a,b);if(f)return f;var g=Object.keys(b),p=h(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(b)),z(b)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return k(b);if(0===g.length){if(A(b)){var q=b.name?": "+b.name:"";return a.stylize("[Function"+q+"]","special")}if(w(b))return a.stylize(RegExp.prototype.toString.call(b),"regexp");if(y(b))return a.stylize(Date.prototype.toString.call(b),"date");if(z(b))return k(b)}var r="",s=!1,u=["{","}"];if(o(b)&&(s=!0,u=["[","]"]),A(b)){var v=b.name?": "+b.name:"";r=" [Function"+v+"]"}if(w(b)&&(r=" "+RegExp.prototype.toString.call(b)),y(b)&&(r=" "+Date.prototype.toUTCString.call(b)),z(b)&&(r=" "+k(b)),0===g.length&&(!s||0==b.length))return u[0]+r+u[1];if(0>d)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;h>g;++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 10>a?"0"+a.toString(10):a.toString(10)}function E(){var a=new Date,b=[D(a.getHours()),D(a.getMinutes()),D(a.getSeconds())].join(":");return[a.getDate(),J[a.getMonth()],b].join(" ")}function F(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var G=/%[sdj%]/g;c.format=function(a){if(!t(a)){for(var b=[],c=0;c=f)return a;switch(a){case"%s":return String(d[c++]);case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(b){return"[Circular]"}default:return a}}),h=d[c];f>c;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":144,_process:79,inherits:72}],146:[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]/},{}],147:[function(a,b,c){function d(){for(var a={},b=0;b=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&&-1===a[0].indexOf('""')&&(""===a[3]&&(a[3]=void 0),""===a[4]&&(a[4]=void 0),""===a[5]&&(a[5]=void 0));var k=1;if(b.customAttrSurround)for(var l=0,m=b.customAttrSurround.length;m>l;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]*?)]*>","i"));a=a.replace(z,function(a,c){return"script"!==m&&"style"!==m&&"noscript"!==m&&(c=c.replace(//g,"$1").replace(//g,"$1")),b.chars&&b.chars(c),""}),f("",m)}else{var A=a.indexOf("<");if(0===A){if(/^");if(B>=0){b.comment&&b.comment(a.substring(4,B)),a=a.substring(B+3),i="";continue}}if(/^");if(C>=0){b.comment&&b.comment(a.substring(2,C+1),!0),a=a.substring(C+2),i="";continue}}var D=a.match(q);if(D){b.doctype&&b.doctype(D[0]),a=a.substring(D[0].length),i="";continue}var E=a.match(p);if(E){a=a.substring(E[0].length),E[0].replace(p,f),i="/"+E[1].toLowerCase();continue}var F=c(a);if(F){a=F.rest,d(F),i=F.tagName.toLowerCase();continue}}var G;A>=0?(G=a.substring(0,A),a=a.substring(A)):(G=a,a="");var H=c(a);H?j=H.tagName:(H=a.match(p),j=H?"/"+H[1]:""),b.chars&&b.chars(G,i,j),i=""}if(a===h)throw new Error("Parse Error: "+a)}b.partialMarkup||f()}var h=a("./utils").createMapFromString,i=/([^\s"'<>\/=]+)/,j=/=/,k=[j],l=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],m=function(){var b=a("ncname").source.slice(1,-1);return"((?:"+b+"\\:)?"+b+")"}(),n=new RegExp("^<"+m),o=/^\s*(\/?)>/,p=new RegExp("^<\\/"+m+"[^>]*>"),q=/^]+>/i,r=!1;"x".replace(/x(.)?/g,function(a,b){r=""===b});var s=d("area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),t=d("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,noscript,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,svg,textarea,tt,u,var"),u=d("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),v=d("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),w=d("script,style"),x=d("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),y={};c.HTMLParser=g,c.HTMLtoXML=function(a){var b="";return new g(a,{start:function(a,c,d){b+="<"+a;for(var e=0,f=c.length;f>e;e++)b+=" "+c[e].name+'="'+(c[e].value||"").replace(/"/g,""")+'"';b+=(d?"/":"")+">"},end:function(a){b+=""},chars:function(a){b+=a},comment:function(a){b+=""},ignore:function(a){b+=a}}),b},c.HTMLtoDOM=function(a,b){var c={html:!0,head:!0,body:!0,title:!0},d={link:"head",base:"head"};b?b=b.ownerDocument||b.getOwnerDocument&&b.getOwnerDocument()||b:"undefined"!=typeof DOMDocument?b=new DOMDocument:"undefined"!=typeof document&&document.implementation&&document.implementation.createDocument?b=document.implementation.createDocument("","",null):"undefined"!=typeof ActiveX&&(b=new ActiveXObject("Msxml.DOMDocument"));var e=[],f=b.documentElement||b.getDocumentElement&&b.getDocumentElement();if(!f&&b.createElement&&!function(){var a=b.createElement("html"),c=b.createElement("head");c.appendChild(b.createElement("title")),a.appendChild(c),a.appendChild(b.createElement("body")),b.appendChild(a)}(),b.getElementsByTagName)for(var h in c)c[h]=b.getElementsByTagName(h)[0];var i=c.body;return new g(a,{start:function(a,f,g){if(c[a])return void(i=c[a]);var h=b.createElement(a);for(var j in f)h.setAttribute(f[j].name,f[j].value);d[a]&&"boolean"!=typeof c[d[a]]?c[d[a]].appendChild(h):i&&i.appendChild&&i.appendChild(h),g||(e.push(h),i=h)},end:function(){e.length-=1,i=e[e.length-1]},chars:function(a){i.appendChild(b.createTextNode(a))},comment:function(){},ignore:function(){}}),b}},{"./utils":150,ncname:75}],149:[function(a,b,c){"use strict";function d(a){this.tokens=a}function e(){}d.prototype.sort=function(a,b){b=b||0;for(var c=0,d=this.tokens.length;d>c;c++){var e=this.tokens[c],f=a.indexOf(e,b);if(-1!==f){do f!==b&&(a.splice(f,1),a.splice(b,0,e)),b++;while(-1!==(f=a.indexOf(e,b)));return this[e].sort(a,b)}}return a},e.prototype={add:function(a){var b=this;a.forEach(function(c){(b[c]||(b[c]=[])).push(a)})},createSorter:function(){var a=this,b=new d(Object.keys(this).sort(function(b,c){var d=a[b].length,e=a[c].length;return e>d?1:d>e?-1:c>b?-1:b>c?1:0}));return b.tokens.forEach(function(c){var d=new e;a[c].forEach(function(a){for(var b;-1!==(b=a.indexOf(c));)a.splice(b,1);d.add(a.slice(0))}),b[c]=d.createSorter()}),b}},b.exports=e},{}],150:[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/src/htmllint":[function(a,b,c){"use strict";function d(a){return/^(?:big|small|hr|blink|marquee)$/.test(a)}function e(a){return/^(?:applet|basefont|center|dir|font|isindex|strike)$/.test(a)}function f(a){return/^on[a-z]+/.test(a)}function g(a){return"style"===a.toLowerCase()}function h(a,b){return"align"===b&&/^(?:caption|applet|iframe|img|imput|object|legend|table|hr|div|h[1-6]|p)$/.test(a)||"alink"===b&&"body"===a||"alt"===b&&"applet"===a||"archive"===b&&"applet"===a||"background"===b&&"body"===a||"bgcolor"===b&&/^(?:table|t[rdh]|body)$/.test(a)||"border"===b&&/^(?:img|object)$/.test(a)||"clear"===b&&"br"===a||"code"===b&&"applet"===a||"codebase"===b&&"applet"===a||"color"===b&&/^(?:base(?:font)?)$/.test(a)||"compact"===b&&/^(?:dir|[dou]l|menu)$/.test(a)||"face"===b&&/^base(?:font)?$/.test(a)||"height"===b&&/^(?:t[dh]|applet)$/.test(a)||"hspace"===b&&/^(?:applet|img|object)$/.test(a)||"language"===b&&"script"===a||"link"===b&&"body"===a||"name"===b&&"applet"===a||"noshade"===b&&"hr"===a||"nowrap"===b&&/^t[dh]$/.test(a)||"object"===b&&"applet"===a||"prompt"===b&&"isindex"===a||"size"===b&&/^(?:hr|font|basefont)$/.test(a)||"start"===b&&"ol"===a||"text"===b&&"body"===a||"type"===b&&/^(?:li|ol|ul)$/.test(a)||"value"===b&&"li"===a||"version"===b&&"html"===a||"vlink"===b&&"body"===a||"vspace"===b&&/^(?:applet|img|object)$/.test(a)||"width"===b&&/^(?:hr|td|th|applet|pre)$/.test(a)}function i(a,b){return"href"===a&&/^\s*javascript\s*:\s*void\s*(\s+0|\(\s*0\s*\))\s*$/i.test(b)}function j(){this.log=[],this._lastElement=null,this._isElementRepeated=!1}j.prototype.testElement=function(a){this._attributes=Object.create(null),e(a)?this.log.push('Found deprecated <'+a+"> element"):d(a)?this.log.push('Found presentational <'+a+"> element"):this.checkRepeatingElement(a)},j.prototype.checkRepeatingElement=function(a){"br"===a&&"br"===this._lastElement?this._isElementRepeated=!0:this._isElementRepeated&&(this._reportRepeatingElement(),this._isElementRepeated=!1),this._lastElement=a},j.prototype._reportRepeatingElement=function(){this.log.push("Found <br> sequence. Try replacing it with styling.")},j.prototype.testAttribute=function(a,b,c){this._attributes[b]?this.log.push('Found repeating attribute ('+b+") on <"+a+"> element."):this._attributes[b]=!0,f(b)?this.log.push('Found event attribute ('+b+") on <"+a+"> element."):h(a,b)?this.log.push('Found deprecated '+b+" attribute on <"+a+"> element."):g(b)?this.log.push('Found style attribute on <'+a+"> element."):i(b,c)&&this.log.push('Found inaccessible attribute (on <'+a+"> element).")},j.prototype.testChars=function(a){this._lastElement="",/( \s*){2,}/.test(a)&&this.log.push("Found repeating &nbsp; sequence. Try replacing it with styling.")},j.prototype.test=function(a,b,c){this.testElement(a),this.testAttribute(a,b,c)},j.prototype.testDoctype=function(a){this._doctype=a},j.prototype.populate=function(a){this._doctype||this.log.push("No DOCTYPE found."),this._isElementRepeated&&this._reportRepeatingElement();var b;a?(b=this.log.map(function(a){return"
  • "+a+"
  • "}).join(""),a.innerHTML="
      "+b+"
    "):this.log.length&&(b=this.log.join("\n - ").replace(/<[^>]+>/g,""),console.log(" - "+b.replace(/</g,"<").replace(/>/g,">")))},c.HTMLLint=j},{}],"html-minifier":[function(a,b,c){"use strict";function d(a){return" "===a?a:" "}function e(a){return a?a.replace(/[\t\n\r ]+/g,d):a}function f(a,b,c,f,g){var h="",i="";return b.preserveLineBreaks&&(a=a.replace(/^[\t ]*[\n\r][\t\n\r ]*/,function(){return h="\n",""}).replace(/[\t\n\r ]*[\n\r][\t ]*$/,function(){return i="\n",""})),c&&(a=a.replace(/^\s+/,!h&&b.conservativeCollapse?d:"")),f&&(a=a.replace(/\s+$/,!i&&b.conservativeCollapse?d:"")),g&&(a=e(a)),h+a+i}function g(a,b,c,d){var e=b&&!da(b);e&&!d.collapseInlineTagWhitespace&&(e="/"===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)),f(a,d,e,g,b&&c)}function h(a){return/^\[if\s[^\]]+\]|\[endif\]$/.test(a)}function i(a,b){if(/^!/.test(a))return!0;if(b.ignoreCustomComments)for(var c=0,d=b.ignoreCustomComments.length;d>c;c++)if(b.ignoreCustomComments[c].test(a))return!0;return!1}function j(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 k(a){return/^[^ \t\n\f\r"'`=<>]+$/.test(a)}function l(a,b){for(var c=a.length;c--;)if(a[c].name.toLowerCase()===b)return!0;return!1}function m(a,b,c,d){return c=c?_(c.toLowerCase()):"","script"===a&&"language"===b&&"javascript"===c||"form"===a&&"method"===b&&"get"===c||"input"===a&&"type"===b&&"text"===c||"script"===a&&"charset"===b&&!l(d,"src")||"a"===a&&"name"===b&&l(d,"id")||"area"===a&&"shape"===b&&"rect"===c}function n(a){return a=_(a.split(/;/,2)[0]).toLowerCase(),""===a||ea(a)}function o(a,b){if("script"!==a)return!1;for(var c=0,d=b.length;d>c;c++){var e=b[c].name.toLowerCase();if("type"===e)return n(b[c].value)}return!0}function p(a){return a=_(a).toLowerCase(),""===a||"text/css"===a}function q(a,b){if("style"!==a)return!1;for(var c=0,d=b.length;d>c;c++){var e=b[c].name.toLowerCase();if("type"===e)return p(b[c].value)}return!0}function r(a,b){return fa(a)||"draggable"===a&&!ga(b)}function s(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 t(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 u(a,b){if("link"!==a)return!1;for(var c=0,d=b.length;d>c;c++)if("rel"===b[c].name&&"canonical"===b[c].value)return!0}function v(a,b,c,d,f){if(c&&j(b,d)){if(c=_(c).replace(/^javascript:\s*/i,"").replace(/\s*;$/,""),d.minifyJS){var g=N(ha+c+ia,d.minifyJS);return g.slice(ha.length,-ia.length)}return c}return"class"===b?(c=_(c),c=d.sortClassName?d.sortClassName(c):e(c)):s(b,a)?(c=_(c),d.minifyURLs&&!u(a,f)?M(c,d.minifyURLs):c):t(b,a)?_(c):"style"===b?(c=_(c),c&&/;$/.test(c)&&!/&#?[0-9a-zA-Z]+;$/.test(c)&&(c=c.replace(/\s*;$/,"")),d.minifyCSS?O(c,d.minifyCSS,!0):c):(w(a,f)&&"content"===b?c=c.replace(/\s+/g,"").replace(/[0-9]+\.[0-9]+/g,function(a){return(+a).toString()}):c&&d.customAttrCollapse&&d.customAttrCollapse.test(b)?c=c.replace(/\n+|\r+|\s{2,}/g,""):"script"===a&&"type"===b&&(c=_(c.replace(/\s*;\s*/g,";"))),c)}function w(a,b){if("meta"!==a)return!1;for(var c=0,d=b.length;d>c;c++)if("name"===b[c].name&&"viewport"===b[c].value)return!0}function x(a){ -return"*{"+a+"}"}function y(a){var b=a.match(/^\*\{([\s\S]*)\}$/m);return b&&b[1]?b[1]:a}function z(a,b){return b.processConditionalComments?a.replace(/^(\[if\s[^\]]+\]>)([\s\S]*?)(d;d++)if("type"===c[d].name.toLowerCase()&&b.processScripts.indexOf(c[d].value)>-1)return R(a,b);return a}function B(a,b){switch(a){case"html":case"head":return!0;case"body":return!la(b);case"colgroup":return"col"===b;case"tbody":return"tr"===b}return!1}function C(a,b){switch(b){case"colgroup":return"colgroup"===a;case"tbody":return ta(a)}return!1}function D(a,b){switch(a){case"html":case"head":case"body":case"colgroup":case"caption":return!0;case"li":case"optgroup":case"tr":return b===a;case"dt":case"dd":return ma(b);case"p":return na(b);case"rb":case"rt":case"rp":return pa(b);case"rtc":return qa(b);case"option":return ra(b);case"thead":case"tbody":return sa(b);case"tfoot":return"tbody"===b;case"td":case"th":return ua(b)}return!1}function E(a,b,c){var d=!c||/^\s*$/.test(c);return d?"input"===a&&"value"===b||Aa.test(b):!1}function F(a,b){for(var c=b.length-1;c>=0;c--)if(b[c].name===a)return!0;return!1}function G(a,b){switch(a){case"textarea":return!1;case"audio":case"script":case"video":if(F("src",b))return!1;break;case"iframe":if(F("src",b)||F("srcdoc",b))return!1;break;case"object":if(F("data",b))return!1;break;case"applet":if(F("code",b))return!1}return!0}function H(a){return!/^(?:script|style|pre|textarea)$/.test(a)}function I(a){return!/^(?:pre|textarea)$/.test(a)}function J(a,b,c,d){var e=d.caseSensitive?a.name:a.name.toLowerCase(),f=a.value;return d.decodeEntities&&f&&(f=V(f,{isAttributeValue:!0})),d.removeRedundantAttributes&&m(c,e,f,b)||d.removeScriptTypeAttributes&&"script"===c&&"type"===e&&n(f)||d.removeStyleLinkTypeAttributes&&("style"===c||"link"===c)&&"type"===e&&p(f)||(f=v(c,e,f,d,b),d.removeEmptyAttributes&&E(c,e,f))?void 0:(d.decodeEntities&&f&&(f=f.replace(/&(#?[0-9a-zA-Z]+;)/g,"&$1")),{attr:a,name:e,value:f})}function K(a,b,c,d){var e,f,g=a.name,h=a.value,i=a.attr,j=i.quote;if("undefined"!=typeof h&&!c.removeAttributeQuotes||!k(h)){if(!c.preventAttributesEscaping){if("undefined"!=typeof c.quoteCharacter)j="'"===c.quoteCharacter?"'":'"';else{var l=(h.match(/'/g)||[]).length,m=(h.match(/"/g)||[]).length;j=m>l?"'":'"'}h='"'===j?h.replace(/"/g,"""):h.replace(/'/g,"'")}f=j+h+j,d||c.removeTagWhitespace||(f+=" ")}else f=!d||b||/\/$/.test(h)?h+" ":h;return"undefined"==typeof h||c.collapseBooleanAttributes&&r(g.toLowerCase(),h.toLowerCase())?(e=g,d||(e+=" ")):e=g+i.customAssign+f,i.customOpen+e+i.customClose}function L(a){"includeAutoGeneratedTags"in a||(a.includeAutoGeneratedTags=!0);for(var b=["canCollapseWhitespace","canTrimWhitespace"],c=0,d=b.length;d>c;c++)a[b[c]]||(a[b[c]]=function(){return!1});a.minifyURLs&&"object"!=typeof a.minifyURLs&&(a.minifyURLs={}),a.minifyJS&&("object"!=typeof a.minifyJS&&(a.minifyJS={}),a.minifyJS.fromString=!0,(a.minifyJS.output||(a.minifyJS.output={})).inline_script=!0),a.minifyCSS&&("object"!=typeof a.minifyCSS&&(a.minifyCSS={}),"undefined"==typeof a.minifyCSS.advanced&&(a.minifyCSS.advanced=!1))}function M(a,b){try{return X.relate(a,b)}catch(c){return T(c),a}}function N(a,b){var c=a.match(/^\s*\s*$/,""):a;try{return Z.minify(d,b).code}catch(e){return T(e),a}}function O(a,b,c){var d=a.match(/^\s*\s*$/,""):a;try{var f=new U(b);return c?y(f.minify(x(e)).styles):f.minify(e).styles}catch(g){return T(g),a}}function P(a){var b;do b=Math.random().toString(36).slice(2);while(~a.indexOf(b));return b}function Q(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||-1===a.indexOf(b)}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;k>h;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&&Ba(c)&&b.processScripts.indexOf(d)>-1&&h(a)}})}var i=b.sortAttributes&&Object.create(null),j=b.sortClassName&&new Y;if(b.sortAttributes=!1,b.sortClassName=!1,h(R(a,b)),i){var k=Object.create(null);for(var l in i)k[l]=i[l].createSorter();b.sortAttributes=function(a,b){var c=k[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 m=j.createSorter();b.sortClassName=function(a){return m.sort(a.split(/\s+/)).join(" ")}}}function R(a,b,c){function d(a,c){return H(a)||b.canCollapseWhitespace(a,c)}function j(a,c){return I(a)||b.canTrimWhitespace(a,c)}function k(){for(var a=u.length-1;a>0&&!/^<[^\/!]/.test(u[a]);)a--;u.length=Math.max(0,a)}function l(){for(var a=u.length-1;a>0&&!/^<\//.test(u[a]);)a--;u.length=Math.max(0,a)}function m(a){var c;u.length>1&&/^(?:0&&/\s$/.test(u[u.length-1])&&(c=u.length-1),c>0&&(u[c]=u[c].replace(/\s+$/,function(c){return g(c,"comment",a,b)}))}b=b||{};var n=[];L(b),a=b.collapseWhitespace?_(a):a;var p,r,s,t,u=[],v="",w="",x=[],y=[],E=[],F="",M="",R=b.lint,U=Date.now(),X=[],Y=[];a=a.replace(/([\s\S]*?)/g,function(b,c){s||(s=P(a));var d="";return X.push(c),d});var Z=(b.ignoreCustomFragments||[/<%[\s\S]*?%>/,/<\?[\s\S]*?\?>/]).map(function(a){return a.source});if(Z.length){var $=new RegExp("\\s*(?:"+Z.join("|")+")+\\s*","g");a=a.replace($,function(b){t||(t=P(a));var c=t+Y.length;return Y.push(b)," "+c+" "})}(b.sortAttributes&&"function"!=typeof b.sortAttributes||b.sortClassName&&"function"!=typeof b.sortClassName)&&(Q(a,b,s,t),R=null),new W(a,{partialMarkup:c,html5:"undefined"!=typeof b.html5?b.html5:!0,start:function(a,c,e,f,g){var h=a.toLowerCase();if("svg"===h){n.push(b);var i={};for(var o in b)i[o]=b[o];i.keepClosingSlash=!0,i.caseSensitive=!0,b=i}a=b.caseSensitive?a:h,w=a,p=a,ca(a)||(v=""),r=!1,x=c;var q=b.removeOptionalTags;if(q){var s=za(a);s&&B(F,a)&&k(),F="",s&&D(M,a)&&(l(),q=!C(M,a)),M=""}b.collapseWhitespace&&(y.length||m(a),j(a,c)||y.push(a),d(a,c)||E.push(a));var t="<"+a,z=f&&b.keepClosingSlash;u.push(t),R&&R.testElement(a),b.sortAttributes&&b.sortAttributes(a,c);for(var A=[],G=c.length,H=!0;--G>=0;){var I=c[G];R&&R.testAttribute(a,I.name.toLowerCase(),I.value);var L=J(I,c,a,b);L&&(A.unshift(K(L,z,b,H)),H=!1)}A.length>0?(u.push(" "),u.push.apply(u,A)):q&&ja(a)&&(F=a),u.push(u.pop()+(z?"/":"")+">"),g&&!b.includeAutoGeneratedTags&&k()},end:function(a,c,d){var e=a.toLowerCase();"svg"===e&&(b=n.pop()),a=b.caseSensitive?a:e,b.collapseWhitespace&&(y.length?a===y[y.length-1]&&y.pop():m("/"+a),E.length&&a===E[E.length-1]&&E.pop());var f=!1;a===w&&(w="",f=!r),b.removeOptionalTags&&(f&&va(F)&&k(),F="",!za(a)||!M||ya(M)||"p"===M&&oa(a)||l(),M=ka(a)?a:""),b.removeEmptyElements&&f&&G(a,c)?(k(),F="",M=""):(!b.includeAutoGeneratedTags&&d||u.push(""),p="/"+a,ba(a)?f&&(v+="|"):v="")},chars:function(a,c,d){if(c=""===c?"comment":c,d=""===d?"comment":d,b.decodeEntities&&a&&!Ba(w)&&(a=V(a)),b.collapseWhitespace){if(!y.length){if("comment"===c){var h=""===u[u.length-1];if(h&&(c=p),u.length>1&&(h||/ $/.test(v))){var i=u.length-2;u[i]=u[i].replace(/\s+$/,function(b){return a=b+a,""})}}if(c&&ca("/"===c.charAt(0)?c.slice(1):c)&&(a=f(a,b,/(?:^|\s)$/.test(v))),a=c||d?g(a,c,d,b):_(a),!a&&/\s$/.test(v)&&c&&"/"===c.charAt(0))for(var m=u.length-2,n=c.slice(1);m>=0&&j(n);m--){var s=u[m],t=s.match(/^<\/([\w:-]+)>$/);if(t)n=t[1];else if(/>$/.test(s)||(u[m]=g(s,null,d,b)))break}}E.length||(a=c&&d||"html"===d?a:e(a))}b.processScripts&&Ba(w)&&(a=A(a,b,x)),b.minifyJS&&o(w,x)&&(a=N(a,b.minifyJS),/;$/.test(a)&&(a=a.slice(0,-1))),b.minifyCSS&&q(w,x)&&(a=O(a,b.minifyCSS)),b.removeOptionalTags&&a&&(("html"===F||"body"===F&&!/^\s/.test(a))&&k(),F="",(wa(M)||xa(M)&&!/^\s/.test(a))&&l(),M=""),p=/^\s*$/.test(a)?c:"comment",b.decodeEntities&&a&&!Ba(w)&&(a=a.replace(/&(#?[0-9a-zA-Z]+;)/g,"&$1").replace(/":"-->";a=h(a)?d+z(a,b)+e:b.removeComments?i(a,b)?"":"":d+a+e,b.removeOptionalTags&&a&&(F="",M=""),u.push(a)},doctype:function(a){R&&R.testDoctype(a),u.push(b.useShortDoctype?"":e(a))},customAttrAssign:b.customAttrAssign,customAttrSurround:b.customAttrSurround}),b.removeOptionalTags&&(va(F)&&k(),M&&!ya(M)&&l());var aa=S(u,b);return t&&(aa=aa.replace(new RegExp("(\\s*)"+t+"([0-9]+)(\\s*)","g"),function(a,c,d,e){var g=Y[+d];return b.collapseWhitespace?(" "!==c&&(g=c+g)," "!==e&&(g+=e),f(g,{preserveLineBreaks:b.preserveLineBreaks,conservativeCollapse:!0},/^\s/.test(g),/\s$/.test(g))):g})),s&&(aa=aa.replace(new RegExp("","g"),function(a,b){return X[+b]})),T("minified in: "+(Date.now()-U)+"ms"),aa}function S(a,b){var c,d=b.maxLineLength;if(d){for(var e,f=[],g="",h=0,i=a.length;i>h;h++)e=a[h],g.length+e.length0?c.host.split("@"):!1;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("@"):!1;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":142,punycode:80,querystring:83}],142:[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}}},{}],143:[function(a,b,c){(function(a){function c(a,b){function c(){if(!e){if(d("throwDeprecation"))throw new Error(b);d("traceDeprecation")?console.trace(b):console.warn(b),e=!0}return a.apply(this,arguments)}if(d("noDeprecation"))return a;var e=!1;return c}function d(b){try{if(!a.localStorage)return!1}catch(c){return!1}var d=a.localStorage[b];return null==d?!1:"true"===String(d).toLowerCase()}b.exports=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],144:[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}},{}],145:[function(a,b,c){(function(b,d){function e(a,b){var d={seen:[],stylize:g};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),p(b)?d.showHidden=b:b&&c._extend(d,b),v(d.showHidden)&&(d.showHidden=!1),v(d.depth)&&(d.depth=2),v(d.colors)&&(d.colors=!1),v(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=f),i(d,a,d.depth)}function f(a,b){var c=e.styles[b];return c?"["+e.colors[c][0]+"m"+a+"["+e.colors[c][1]+"m":a}function g(a,b){return a}function h(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function i(a,b,d){if(a.customInspect&&b&&A(b.inspect)&&b.inspect!==c.inspect&&(!b.constructor||b.constructor.prototype!==b)){var e=b.inspect(d,a);return t(e)||(e=i(a,e,d)),e}var f=j(a,b);if(f)return f;var g=Object.keys(b),p=h(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(b)),z(b)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return k(b);if(0===g.length){if(A(b)){var q=b.name?": "+b.name:"";return a.stylize("[Function"+q+"]","special")}if(w(b))return a.stylize(RegExp.prototype.toString.call(b),"regexp");if(y(b))return a.stylize(Date.prototype.toString.call(b),"date");if(z(b))return k(b)}var r="",s=!1,u=["{","}"];if(o(b)&&(s=!0,u=["[","]"]),A(b)){var v=b.name?": "+b.name:"";r=" [Function"+v+"]"}if(w(b)&&(r=" "+RegExp.prototype.toString.call(b)),y(b)&&(r=" "+Date.prototype.toUTCString.call(b)),z(b)&&(r=" "+k(b)),0===g.length&&(!s||0==b.length))return u[0]+r+u[1];if(0>d)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;h>g;++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 10>a?"0"+a.toString(10):a.toString(10)}function E(){var a=new Date,b=[D(a.getHours()),D(a.getMinutes()),D(a.getSeconds())].join(":");return[a.getDate(),J[a.getMonth()],b].join(" ")}function F(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var G=/%[sdj%]/g;c.format=function(a){if(!t(a)){for(var b=[],c=0;c=f)return a;switch(a){case"%s":return String(d[c++]);case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(b){return"[Circular]"}default:return a}}),h=d[c];f>c;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":144,_process:79,inherits:72}],146:[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]/},{}],147:[function(a,b,c){function d(){for(var a={},b=0;b=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&&-1===a[0].indexOf('""')&&(""===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;m>l;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]*?)]*>","i"));a=a.replace(z,function(a,c){return"script"!==m&&"style"!==m&&"noscript"!==m&&(c=c.replace(//g,"$1").replace(//g,"$1")),b.chars&&b.chars(c),""}),f("",m)}else{var A=a.indexOf("<");if(0===A){if(/^");if(B>=0){b.comment&&b.comment(a.substring(4,B)),a=a.substring(B+3),i="";continue}}if(/^");if(C>=0){b.comment&&b.comment(a.substring(2,C+1),!0),a=a.substring(C+2),i="";continue}}var D=a.match(q);if(D){b.doctype&&b.doctype(D[0]),a=a.substring(D[0].length),i="";continue}var E=a.match(p);if(E){a=a.substring(E[0].length),E[0].replace(p,f),i="/"+E[1].toLowerCase();continue}var F=c(a);if(F){a=F.rest,d(F),i=F.tagName.toLowerCase();continue}}var G;A>=0?(G=a.substring(0,A),a=a.substring(A)):(G=a,a="");var H=c(a);H?j=H.tagName:(H=a.match(p),j=H?"/"+H[1]:""),b.chars&&b.chars(G,i,j),i=""}if(a===h)throw new Error("Parse Error: "+a)}b.partialMarkup||f()}var h=a("./utils").createMapFromString,i=/([^\s"'<>\/=]+)/,j=/=/,k=[j],l=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],m=function(){var b=a("ncname").source.slice(1,-1);return"((?:"+b+"\\:)?"+b+")"}(),n=new RegExp("^<"+m),o=/^\s*(\/?)>/,p=new RegExp("^<\\/"+m+"[^>]*>"),q=/^]+>/i,r=!1;"x".replace(/x(.)?/g,function(a,b){r=""===b});var s=d("area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),t=d("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,noscript,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,svg,textarea,tt,u,var"),u=d("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),v=d("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),w=d("script,style"),x=d("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),y={};c.HTMLParser=g,c.HTMLtoXML=function(a){var b="";return new g(a,{start:function(a,c,d){b+="<"+a;for(var e=0,f=c.length;f>e;e++)b+=" "+c[e].name+'="'+(c[e].value||"").replace(/"/g,""")+'"';b+=(d?"/":"")+">"},end:function(a){b+=""},chars:function(a){b+=a},comment:function(a){b+=""},ignore:function(a){b+=a}}),b},c.HTMLtoDOM=function(a,b){var c={html:!0,head:!0,body:!0,title:!0},d={link:"head",base:"head"};b?b=b.ownerDocument||b.getOwnerDocument&&b.getOwnerDocument()||b:"undefined"!=typeof DOMDocument?b=new DOMDocument:"undefined"!=typeof document&&document.implementation&&document.implementation.createDocument?b=document.implementation.createDocument("","",null):"undefined"!=typeof ActiveX&&(b=new ActiveXObject("Msxml.DOMDocument"));var e=[],f=b.documentElement||b.getDocumentElement&&b.getDocumentElement();if(!f&&b.createElement&&!function(){var a=b.createElement("html"),c=b.createElement("head");c.appendChild(b.createElement("title")),a.appendChild(c),a.appendChild(b.createElement("body")),b.appendChild(a)}(),b.getElementsByTagName)for(var h in c)c[h]=b.getElementsByTagName(h)[0];var i=c.body;return new g(a,{start:function(a,f,g){if(c[a])return void(i=c[a]);var h=b.createElement(a);for(var j in f)h.setAttribute(f[j].name,f[j].value);d[a]&&"boolean"!=typeof c[d[a]]?c[d[a]].appendChild(h):i&&i.appendChild&&i.appendChild(h),g||(e.push(h),i=h)},end:function(){e.length-=1,i=e[e.length-1]},chars:function(a){i.appendChild(b.createTextNode(a))},comment:function(){},ignore:function(){}}),b}},{"./utils":150,ncname:75}],149:[function(a,b,c){"use strict";function d(a){this.tokens=a}function e(){}d.prototype.sort=function(a,b){b=b||0;for(var c=0,d=this.tokens.length;d>c;c++){var e=this.tokens[c],f=a.indexOf(e,b);if(-1!==f){do f!==b&&(a.splice(f,1),a.splice(b,0,e)),b++;while(-1!==(f=a.indexOf(e,b)));return this[e].sort(a,b)}}return a},e.prototype={add:function(a){var b=this;a.forEach(function(c){(b[c]||(b[c]=[])).push(a)})},createSorter:function(){var a=this,b=new d(Object.keys(this).sort(function(b,c){var d=a[b].length,e=a[c].length;return e>d?1:d>e?-1:c>b?-1:b>c?1:0}));return b.tokens.forEach(function(c){var d=new e;a[c].forEach(function(a){for(var b;-1!==(b=a.indexOf(c));)a.splice(b,1);d.add(a.slice(0))}),b[c]=d.createSorter()}),b}},b.exports=e},{}],150:[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/src/htmllint":[function(a,b,c){"use strict";function d(a){return/^(?:big|small|hr|blink|marquee)$/.test(a)}function e(a){return/^(?:applet|basefont|center|dir|font|isindex|strike)$/.test(a)}function f(a){return/^on[a-z]+/.test(a)}function g(a){return"style"===a.toLowerCase()}function h(a,b){return"align"===b&&/^(?:caption|applet|iframe|img|imput|object|legend|table|hr|div|h[1-6]|p)$/.test(a)||"alink"===b&&"body"===a||"alt"===b&&"applet"===a||"archive"===b&&"applet"===a||"background"===b&&"body"===a||"bgcolor"===b&&/^(?:table|t[rdh]|body)$/.test(a)||"border"===b&&/^(?:img|object)$/.test(a)||"clear"===b&&"br"===a||"code"===b&&"applet"===a||"codebase"===b&&"applet"===a||"color"===b&&/^(?:base(?:font)?)$/.test(a)||"compact"===b&&/^(?:dir|[dou]l|menu)$/.test(a)||"face"===b&&/^base(?:font)?$/.test(a)||"height"===b&&/^(?:t[dh]|applet)$/.test(a)||"hspace"===b&&/^(?:applet|img|object)$/.test(a)||"language"===b&&"script"===a||"link"===b&&"body"===a||"name"===b&&"applet"===a||"noshade"===b&&"hr"===a||"nowrap"===b&&/^t[dh]$/.test(a)||"object"===b&&"applet"===a||"prompt"===b&&"isindex"===a||"size"===b&&/^(?:hr|font|basefont)$/.test(a)||"start"===b&&"ol"===a||"text"===b&&"body"===a||"type"===b&&/^(?:li|ol|ul)$/.test(a)||"value"===b&&"li"===a||"version"===b&&"html"===a||"vlink"===b&&"body"===a||"vspace"===b&&/^(?:applet|img|object)$/.test(a)||"width"===b&&/^(?:hr|td|th|applet|pre)$/.test(a)}function i(a,b){return"href"===a&&/^\s*javascript\s*:\s*void\s*(\s+0|\(\s*0\s*\))\s*$/i.test(b)}function j(){this.log=[],this._lastElement=null,this._isElementRepeated=!1}j.prototype.testElement=function(a){this._attributes=Object.create(null),e(a)?this.log.push('Found deprecated <'+a+"> element"):d(a)?this.log.push('Found presentational <'+a+"> element"):this.checkRepeatingElement(a)},j.prototype.checkRepeatingElement=function(a){"br"===a&&"br"===this._lastElement?this._isElementRepeated=!0:this._isElementRepeated&&(this._reportRepeatingElement(),this._isElementRepeated=!1),this._lastElement=a},j.prototype._reportRepeatingElement=function(){this.log.push("Found <br> sequence. Try replacing it with styling.")},j.prototype.testAttribute=function(a,b,c){this._attributes[b]?this.log.push('Found repeating attribute ('+b+") on <"+a+"> element."):this._attributes[b]=!0,f(b)?this.log.push('Found event attribute ('+b+") on <"+a+"> element."):h(a,b)?this.log.push('Found deprecated '+b+" attribute on <"+a+"> element."):g(b)?this.log.push('Found style attribute on <'+a+"> element."):i(b,c)&&this.log.push('Found inaccessible attribute (on <'+a+"> element).")},j.prototype.testChars=function(a){this._lastElement="",/( \s*){2,}/.test(a)&&this.log.push("Found repeating &nbsp; sequence. Try replacing it with styling.")},j.prototype.test=function(a,b,c){this.testElement(a),this.testAttribute(a,b,c)},j.prototype.testDoctype=function(a){this._doctype=a},j.prototype.populate=function(a){this._doctype||this.log.push("No DOCTYPE found."),this._isElementRepeated&&this._reportRepeatingElement();var b;a?(b=this.log.map(function(a){return"
  • "+a+"
  • "}).join(""),a.innerHTML="
      "+b+"
    "):this.log.length&&(b=this.log.join("\n - ").replace(/<[^>]+>/g,""),console.log(" - "+b.replace(/</g,"<").replace(/>/g,">")))},c.HTMLLint=j},{}],"html-minifier":[function(a,b,c){"use strict";function d(a){return" "===a?a:" "}function e(a){return a?a.replace(/[\t\n\r ]+/g,d):a}function f(a,b,c,f,g){var h="",i="";return b.preserveLineBreaks&&(a=a.replace(/^[\t ]*[\n\r][\t\n\r ]*/,function(){return h="\n",""}).replace(/[\t\n\r ]*[\n\r][\t ]*$/,function(){return i="\n",""})),c&&(a=a.replace(/^\s+/,!h&&b.conservativeCollapse?d:"")),f&&(a=a.replace(/\s+$/,!i&&b.conservativeCollapse?d:"")),g&&(a=e(a)),h+a+i}function g(a,b,c,d){var e=b&&!da(b);e&&!d.collapseInlineTagWhitespace&&(e="/"===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)),f(a,d,e,g,b&&c)}function h(a){return/^\[if\s[^\]]+\]|\[endif\]$/.test(a)}function i(a,b){if(/^!/.test(a))return!0;if(b.ignoreCustomComments)for(var c=0,d=b.ignoreCustomComments.length;d>c;c++)if(b.ignoreCustomComments[c].test(a))return!0;return!1}function j(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 k(a){return/^[^ \t\n\f\r"'`=<>]+$/.test(a)}function l(a,b){for(var c=a.length;c--;)if(a[c].name.toLowerCase()===b)return!0;return!1}function m(a,b,c,d){return c=c?_(c.toLowerCase()):"","script"===a&&"language"===b&&"javascript"===c||"form"===a&&"method"===b&&"get"===c||"input"===a&&"type"===b&&"text"===c||"script"===a&&"charset"===b&&!l(d,"src")||"a"===a&&"name"===b&&l(d,"id")||"area"===a&&"shape"===b&&"rect"===c}function n(a){return a=_(a.split(/;/,2)[0]).toLowerCase(),""===a||ea(a)}function o(a,b){if("script"!==a)return!1;for(var c=0,d=b.length;d>c;c++){var e=b[c].name.toLowerCase();if("type"===e)return n(b[c].value)}return!0}function p(a){return a=_(a).toLowerCase(),""===a||"text/css"===a}function q(a,b){if("style"!==a)return!1;for(var c=0,d=b.length;d>c;c++){var e=b[c].name.toLowerCase();if("type"===e)return p(b[c].value)}return!0}function r(a,b){return fa(a)||"draggable"===a&&!ga(b)}function s(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 t(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 u(a,b){if("link"!==a)return!1;for(var c=0,d=b.length;d>c;c++)if("rel"===b[c].name&&"canonical"===b[c].value)return!0}function v(a,b,c,d,f){if(c&&j(b,d)){if(c=_(c).replace(/^javascript:\s*/i,"").replace(/\s*;$/,""),d.minifyJS){var g=N(ha+c+ia,d.minifyJS);return g.slice(ha.length,-ia.length)}return c}return"class"===b?(c=_(c),c=d.sortClassName?d.sortClassName(c):e(c)):s(b,a)?(c=_(c),d.minifyURLs&&!u(a,f)?M(c,d.minifyURLs):c):t(b,a)?_(c):"style"===b?(c=_(c),c&&/;$/.test(c)&&!/&#?[0-9a-zA-Z]+;$/.test(c)&&(c=c.replace(/\s*;$/,"")),d.minifyCSS?O(c,d.minifyCSS,!0):c):(w(a,f)&&"content"===b?c=c.replace(/\s+/g,"").replace(/[0-9]+\.[0-9]+/g,function(a){return(+a).toString()}):c&&d.customAttrCollapse&&d.customAttrCollapse.test(b)?c=c.replace(/\n+|\r+|\s{2,}/g,""):"script"===a&&"type"===b&&(c=_(c.replace(/\s*;\s*/g,";"))),c)}function w(a,b){if("meta"!==a)return!1;for(var c=0,d=b.length;d>c;c++)if("name"===b[c].name&&"viewport"===b[c].value)return!0}function x(a){return"*{"+a+"}"; +}function y(a){var b=a.match(/^\*\{([\s\S]*)\}$/m);return b&&b[1]?b[1]:a}function z(a,b){return b.processConditionalComments?a.replace(/^(\[if\s[^\]]+\]>)([\s\S]*?)(d;d++)if("type"===c[d].name.toLowerCase()&&b.processScripts.indexOf(c[d].value)>-1)return R(a,b);return a}function B(a,b){switch(a){case"html":case"head":return!0;case"body":return!la(b);case"colgroup":return"col"===b;case"tbody":return"tr"===b}return!1}function C(a,b){switch(b){case"colgroup":return"colgroup"===a;case"tbody":return ta(a)}return!1}function D(a,b){switch(a){case"html":case"head":case"body":case"colgroup":case"caption":return!0;case"li":case"optgroup":case"tr":return b===a;case"dt":case"dd":return ma(b);case"p":return na(b);case"rb":case"rt":case"rp":return pa(b);case"rtc":return qa(b);case"option":return ra(b);case"thead":case"tbody":return sa(b);case"tfoot":return"tbody"===b;case"td":case"th":return ua(b)}return!1}function E(a,b,c){var d=!c||/^\s*$/.test(c);return d?"input"===a&&"value"===b||Aa.test(b):!1}function F(a,b){for(var c=b.length-1;c>=0;c--)if(b[c].name===a)return!0;return!1}function G(a,b){switch(a){case"textarea":return!1;case"audio":case"script":case"video":if(F("src",b))return!1;break;case"iframe":if(F("src",b)||F("srcdoc",b))return!1;break;case"object":if(F("data",b))return!1;break;case"applet":if(F("code",b))return!1}return!0}function H(a){return!/^(?:script|style|pre|textarea)$/.test(a)}function I(a){return!/^(?:pre|textarea)$/.test(a)}function J(a,b,c,d){var e=d.caseSensitive?a.name:a.name.toLowerCase(),f=a.value;return d.decodeEntities&&f&&(f=V(f,{isAttributeValue:!0})),d.removeRedundantAttributes&&m(c,e,f,b)||d.removeScriptTypeAttributes&&"script"===c&&"type"===e&&n(f)||d.removeStyleLinkTypeAttributes&&("style"===c||"link"===c)&&"type"===e&&p(f)||(f=v(c,e,f,d,b),d.removeEmptyAttributes&&E(c,e,f))?void 0:(d.decodeEntities&&f&&(f=f.replace(/&(#?[0-9a-zA-Z]+;)/g,"&$1")),{attr:a,name:e,value:f})}function K(a,b,c,d){var e,f,g=a.name,h=a.value,i=a.attr,j=i.quote;if("undefined"!=typeof h&&!c.removeAttributeQuotes||!k(h)){if(!c.preventAttributesEscaping){if("undefined"==typeof c.quoteCharacter){var l=(h.match(/'/g)||[]).length,m=(h.match(/"/g)||[]).length;j=m>l?"'":'"'}else j="'"===c.quoteCharacter?"'":'"';h='"'===j?h.replace(/"/g,"""):h.replace(/'/g,"'")}f=j+h+j,d||c.removeTagWhitespace||(f+=" ")}else f=!d||b||/\/$/.test(h)?h+" ":h;return"undefined"==typeof h||c.collapseBooleanAttributes&&r(g.toLowerCase(),h.toLowerCase())?(e=g,d||(e+=" ")):e=g+i.customAssign+f,i.customOpen+e+i.customClose}function L(a){"includeAutoGeneratedTags"in a||(a.includeAutoGeneratedTags=!0);for(var b=["canCollapseWhitespace","canTrimWhitespace"],c=0,d=b.length;d>c;c++)a[b[c]]||(a[b[c]]=function(){return!1});a.minifyURLs&&"object"!=typeof a.minifyURLs&&(a.minifyURLs={}),a.minifyJS&&("object"!=typeof a.minifyJS&&(a.minifyJS={}),a.minifyJS.fromString=!0,(a.minifyJS.output||(a.minifyJS.output={})).inline_script=!0),a.minifyCSS&&("object"!=typeof a.minifyCSS&&(a.minifyCSS={}),"undefined"==typeof a.minifyCSS.advanced&&(a.minifyCSS.advanced=!1))}function M(a,b){try{return X.relate(a,b)}catch(c){return T(c),a}}function N(a,b){var c=a.match(/^\s*\s*$/,""):a;try{return Z.minify(d,b).code}catch(e){return T(e),a}}function O(a,b,c){var d=a.match(/^\s*\s*$/,""):a;try{var f=new U(b);return c?y(f.minify(x(e)).styles):f.minify(e).styles}catch(g){return T(g),a}}function P(a){var b;do b=Math.random().toString(36).slice(2);while(~a.indexOf(b));return b}function Q(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||-1===a.indexOf(b)}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;k>h;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&&Ba(c)&&b.processScripts.indexOf(d)>-1&&h(a)}})}var i=b.sortAttributes&&Object.create(null),j=b.sortClassName&&new Y;if(b.sortAttributes=!1,b.sortClassName=!1,h(R(a,b)),i){var k=Object.create(null);for(var l in i)k[l]=i[l].createSorter();b.sortAttributes=function(a,b){var c=k[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 m=j.createSorter();b.sortClassName=function(a){return m.sort(a.split(/\s+/)).join(" ")}}}function R(a,b,c){function d(a,c){return H(a)||b.canCollapseWhitespace(a,c)}function j(a,c){return I(a)||b.canTrimWhitespace(a,c)}function k(){for(var a=u.length-1;a>0&&!/^<[^\/!]/.test(u[a]);)a--;u.length=Math.max(0,a)}function l(){for(var a=u.length-1;a>0&&!/^<\//.test(u[a]);)a--;u.length=Math.max(0,a)}function m(a){var c;u.length>1&&/^(?:0&&/\s$/.test(u[u.length-1])&&(c=u.length-1),c>0&&(u[c]=u[c].replace(/\s+$/,function(c){return g(c,"comment",a,b)}))}b=b||{};var n=[];L(b),a=b.collapseWhitespace?_(a):a;var p,r,s,t,u=[],v="",w="",x=[],y=[],E=[],F="",M="",R=b.lint,U=Date.now(),X=[],Y=[];a=a.replace(/([\s\S]*?)/g,function(b,c){s||(s=P(a));var d="";return X.push(c),d});var Z=(b.ignoreCustomFragments||[/<%[\s\S]*?%>/,/<\?[\s\S]*?\?>/]).map(function(a){return a.source});if(Z.length){var $=new RegExp("\\s*(?:"+Z.join("|")+")+\\s*","g");a=a.replace($,function(b){t||(t=P(a));var c=t+Y.length;return Y.push(b)," "+c+" "})}(b.sortAttributes&&"function"!=typeof b.sortAttributes||b.sortClassName&&"function"!=typeof b.sortClassName)&&(Q(a,b,s,t),R=null),new W(a,{partialMarkup:c,html5:"undefined"==typeof b.html5?!0:b.html5,start:function(a,c,e,f,g){var h=a.toLowerCase();if("svg"===h){n.push(b);var i={};for(var o in b)i[o]=b[o];i.keepClosingSlash=!0,i.caseSensitive=!0,b=i}a=b.caseSensitive?a:h,w=a,p=a,ca(a)||(v=""),r=!1,x=c;var q=b.removeOptionalTags;if(q){var s=za(a);s&&B(F,a)&&k(),F="",s&&D(M,a)&&(l(),q=!C(M,a)),M=""}b.collapseWhitespace&&(y.length||m(a),j(a,c)||y.push(a),d(a,c)||E.push(a));var t="<"+a,z=f&&b.keepClosingSlash;u.push(t),R&&R.testElement(a),b.sortAttributes&&b.sortAttributes(a,c);for(var A=[],G=c.length,H=!0;--G>=0;){var I=c[G];R&&R.testAttribute(a,I.name.toLowerCase(),I.value);var L=J(I,c,a,b);L&&(A.unshift(K(L,z,b,H)),H=!1)}A.length>0?(u.push(" "),u.push.apply(u,A)):q&&ja(a)&&(F=a),u.push(u.pop()+(z?"/":"")+">"),g&&!b.includeAutoGeneratedTags&&k()},end:function(a,c,d){var e=a.toLowerCase();"svg"===e&&(b=n.pop()),a=b.caseSensitive?a:e,b.collapseWhitespace&&(y.length?a===y[y.length-1]&&y.pop():m("/"+a),E.length&&a===E[E.length-1]&&E.pop());var f=!1;a===w&&(w="",f=!r),b.removeOptionalTags&&(f&&va(F)&&k(),F="",!za(a)||!M||ya(M)||"p"===M&&oa(a)||l(),M=ka(a)?a:""),b.removeEmptyElements&&f&&G(a,c)?(k(),F="",M=""):(!b.includeAutoGeneratedTags&&d||u.push(""),p="/"+a,ba(a)?f&&(v+="|"):v="")},chars:function(a,c,d){if(c=""===c?"comment":c,d=""===d?"comment":d,b.decodeEntities&&a&&!Ba(w)&&(a=V(a)),b.collapseWhitespace){if(!y.length){if("comment"===c){var h=""===u[u.length-1];if(h&&(c=p),u.length>1&&(h||/ $/.test(v))){var i=u.length-2;u[i]=u[i].replace(/\s+$/,function(b){return a=b+a,""})}}if(c&&ca("/"===c.charAt(0)?c.slice(1):c)&&(a=f(a,b,/(?:^|\s)$/.test(v))),a=c||d?g(a,c,d,b):_(a),!a&&/\s$/.test(v)&&c&&"/"===c.charAt(0))for(var m=u.length-2,n=c.slice(1);m>=0&&j(n);m--){var s=u[m],t=s.match(/^<\/([\w:-]+)>$/);if(t)n=t[1];else if(/>$/.test(s)||(u[m]=g(s,null,d,b)))break}}E.length||(a=c&&d||"html"===d?a:e(a))}b.processScripts&&Ba(w)&&(a=A(a,b,x)),b.minifyJS&&o(w,x)&&(a=N(a,b.minifyJS),/;$/.test(a)&&(a=a.slice(0,-1))),b.minifyCSS&&q(w,x)&&(a=O(a,b.minifyCSS)),b.removeOptionalTags&&a&&(("html"===F||"body"===F&&!/^\s/.test(a))&&k(),F="",(wa(M)||xa(M)&&!/^\s/.test(a))&&l(),M=""),p=/^\s*$/.test(a)?c:"comment",b.decodeEntities&&a&&!Ba(w)&&(a=a.replace(/&(#?[0-9a-zA-Z]+;)/g,"&$1").replace(/":"-->";a=h(a)?d+z(a,b)+e:b.removeComments?i(a,b)?"":"":d+a+e,b.removeOptionalTags&&a&&(F="",M=""),u.push(a)},doctype:function(a){R&&R.testDoctype(a),u.push(b.useShortDoctype?"":e(a))},customAttrAssign:b.customAttrAssign,customAttrSurround:b.customAttrSurround}),b.removeOptionalTags&&(va(F)&&k(),M&&!ya(M)&&l());var aa=S(u,b);return t&&(aa=aa.replace(new RegExp("(\\s*)"+t+"([0-9]+)(\\s*)","g"),function(a,c,d,e){var g=Y[+d];return b.collapseWhitespace?(" "!==c&&(g=c+g)," "!==e&&(g+=e),f(g,{preserveLineBreaks:b.preserveLineBreaks,conservativeCollapse:!0},/^\s/.test(g),/\s$/.test(g))):g})),s&&(aa=aa.replace(new RegExp("","g"),function(a,b){return X[+b]})),T("minified in: "+(Date.now()-U)+"ms"),aa}function S(a,b){var c,d=b.maxLineLength;if(d){for(var e,f=[],g="",h=0,i=a.length;i>h;h++)e=a[h],g.length+e.length= 0; i--) { - attrClauses[i] = '(?:' - + '(' + handler.customAttrSurround[i][0].source + ')\\s*' - + pattern - + '\\s*(' + handler.customAttrSurround[i][1].source + ')' - + ')'; + attrClauses[i] = '(?:' + + '(' + handler.customAttrSurround[i][0].source + ')\\s*' + + pattern + + '\\s*(' + handler.customAttrSurround[i][1].source + ')' + + ')'; } attrClauses.push('(?:' + pattern + ')'); pattern = '(?:' + attrClauses.join('|') + ')'; @@ -107,7 +107,7 @@ function attrForHandler(handler) { function joinSingleAttrAssigns(handler) { return singleAttrAssigns.concat( handler.customAttrAssign || [] - ).map(function (assign) { + ).map(function(assign) { return '(?:' + assign.source + ')'; }).join('|'); } @@ -213,7 +213,7 @@ function HTMLParser(html, handler) { } else { var stackedTag = lastTag.toLowerCase(); - var reStackedTag = reCache[stackedTag] || (reCache[stackedTag] = new RegExp('([\\s\\S]*?)<\/' + stackedTag + '[^>]*>', 'i')); + var reStackedTag = reCache[stackedTag] || (reCache[stackedTag] = new RegExp('([\\s\\S]*?)]*>', 'i')); html = html.replace(reStackedTag, function(all, text) { if (stackedTag !== 'script' && stackedTag !== 'style' && stackedTag !== 'noscript') { @@ -289,9 +289,9 @@ function HTMLParser(html, handler) { // hackish work around FF bug https://bugzilla.mozilla.org/show_bug.cgi?id=369778 if (IS_REGEX_CAPTURING_BROKEN && args[0].indexOf('""') === -1) { - if (args[3] === '') { args[3] = undefined; } - if (args[4] === '') { args[4] = undefined; } - if (args[5] === '') { args[5] = undefined; } + if (args[3] === '') { delete args[3]; } + if (args[4] === '') { delete args[4]; } + if (args[5] === '') { delete args[5]; } } function populate(index) { @@ -352,12 +352,8 @@ function HTMLParser(html, handler) { function parseEndTag(tag, tagName) { var pos; - // If no tag name is provided, clean shop - if (!tagName) { - pos = 0; - } - else { - // Find the closest opened tag of the same type + // Find the closest opened tag of the same type + if (tagName) { var needle = tagName.toLowerCase(); for (pos = stack.length - 1; pos >= 0; pos--) { if (stack[pos].tag.toLowerCase() === needle) { @@ -365,6 +361,10 @@ function HTMLParser(html, handler) { } } } + // If no tag name is provided, clean shop + else { + pos = 0; + } if (pos >= 0) { // Close all the open elements, up the stack @@ -440,22 +440,17 @@ exports.HTMLtoDOM = function(html, doc) { base: 'head' }; - if (!doc) { - if (typeof DOMDocument !== 'undefined') { - doc = new DOMDocument(); - } - else if (typeof document !== 'undefined' && document.implementation && document.implementation.createDocument) { - doc = document.implementation.createDocument('', '', null); - } - else if (typeof ActiveX !== 'undefined') { - doc = new ActiveXObject('Msxml.DOMDocument'); - } - + if (doc) { + doc = doc.ownerDocument || doc.getOwnerDocument && doc.getOwnerDocument() || doc; + } + else if (typeof DOMDocument !== 'undefined') { + doc = new DOMDocument(); + } + else if (typeof document !== 'undefined' && document.implementation && document.implementation.createDocument) { + doc = document.implementation.createDocument('', '', null); } - else { - doc = doc.ownerDocument || - doc.getOwnerDocument && doc.getOwnerDocument() || - doc; + else if (typeof ActiveX !== 'undefined') { + doc = new ActiveXObject('Msxml.DOMDocument'); } var elems = [], diff --git a/tests/minifier.js b/tests/minifier.js index 05aaf5e..a052d91 100644 --- a/tests/minifier.js +++ b/tests/minifier.js @@ -28,9 +28,9 @@ test('parsing non-trivial markup', function() { equal(minify(input), input); - equal(minify(''), ''); + equal(minify(''), ''); + equal(minify(''), ''); equal(minify('foo'), 'foo'); equal(minify('

    x'), '

    x

    '); @@ -96,24 +96,24 @@ test('parsing non-trivial markup', function() { }, 'invalid attribute name'); // https://github.com/kangax/html-minifier/issues/512 - input = ''; + input = ''; equal(minify(input), input); throws(function() { minify( - '' - + ' placeholder="YYYY-MM-DD"' - + ' date-range-picker' - + ' data-ng-model="vm.value"' - + ' data-ng-model-options="{ debounce: 1000 }"' - + ' data-ng-pattern="vm.options.format"' - + ' data-options="vm.datepickerOptions">' + '' + + ' placeholder="YYYY-MM-DD"' + + ' date-range-picker' + + ' data-ng-model="vm.value"' + + ' data-ng-model-options="{ debounce: 1000 }"' + + ' data-ng-pattern="vm.options.format"' + + ' data-options="vm.datepickerOptions">' ); }, 'HTML comment inside tag'); }); @@ -242,11 +242,11 @@ test('removing comments', function() { input = '

    foo

    '; equal(minify(input, { removeComments: true }), input); - input = ''; equal(minify(input, { removeComments: true }), input); - input = ''; + equal(minify(input, { removeComments: true }), ''); }); test('ignoring comments', function() { @@ -401,49 +401,49 @@ test('collapsing space in conditional comments', function() { }); test('remove comments from scripts', function() { - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyJS: true }), output); - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyJS: true }), output); - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyJS: true }), output); - input = ''; equal(minify(input), input); equal(minify(input, { minifyJS: true }), input); - input = ''; equal(minify(input), input); equal(minify(input, { minifyJS: true }), input); - input = ''; equal(minify(input), input); equal(minify(input, { minifyJS: true }), input); - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyJS: true }), output); - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyJS: true }), output); - input = ''; equal(minify(input), input); equal(minify(input, { minifyJS: true }), input); }); @@ -479,98 +479,98 @@ test('remove comments from styles', function() { output = ''; equal(minify(input, { minifyCSS: true }), output); - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyCSS: true }), output); - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyCSS: true }), output); - input = ''; equal(minify(input), input); equal(minify(input, { minifyCSS: true }), input); }); test('remove CDATA sections from scripts/styles', function() { - input = ''; equal(minify(input), input); equal(minify(input, { minifyJS: true }), input); - input = ''; equal(minify(input), input); equal(minify(input, { minifyJS: true }), input); - input = ''; equal(minify(input), input); equal(minify(input, { minifyJS: true }), input); - input = ''; equal(minify(input), input); equal(minify(input, { minifyJS: true }), input); - input = ''; equal(minify(input), input); equal(minify(input, { minifyJS: true }), input); - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyJS: true }), output); - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyJS: true }), output); - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyJS: true }), output); - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyJS: true }), output); - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyCSS: true }), output); - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyCSS: true }), output); - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyCSS: true }), output); - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyCSS: true }), output); - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyCSS: true }), output); - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyCSS: true }), output); - input = ''; equal(minify(input), input); - output = ''; equal(minify(input, { minifyCSS: true }), output); - input = ''; equal(minify(input), input); equal(minify(input, { minifyCSS: true }), input); }); @@ -733,24 +733,24 @@ test('removing redundant attributes (<a name="..." id="..." ...>)', function( }); test('removing redundant attributes (<script src="..." charset="...">)', function() { - input = ''; + output = ''; equal(minify(input, { removeRedundantAttributes: true }), output); - input = ''; equal(minify(input, { removeRedundantAttributes: true }), input); - input = ''; + output = ''; equal(minify(input, { removeRedundantAttributes: true }), output); }); test('removing redundant attributes (<... language="javascript" ...>)', function() { - input = ''; + equal(minify(input, { removeRedundantAttributes: true }), ''); - input = ''; + equal(minify(input, { removeRedundantAttributes: true }), ''); }); test('removing redundant attributes (<area shape="rect" ...>)', function() { @@ -774,45 +774,45 @@ test('removing redundant attributes (<... = "javascript: ..." ...>)', functio }); test('removing javascript type attributes', function() { - input = ''; equal(minify(input, { removeScriptTypeAttributes: false }), input); - output = ''; equal(minify(input, { removeScriptTypeAttributes: true }), output); - input = ''; equal(minify(input, { removeScriptTypeAttributes: false }), input); - output = ''; equal(minify(input, { removeScriptTypeAttributes: true }), output); - input = ''; + output = ''; equal(minify(input, { removeScriptTypeAttributes: true }), output); - input = ''; + output = ''; equal(minify(input, { removeScriptTypeAttributes: true }), output); - input = ''; + output = ''; equal(minify(input, { removeScriptTypeAttributes: true }), output); }); test('removing type="text/css" attributes', function() { - input = ''; equal(minify(input, { removeStyleLinkTypeAttributes: false }), input); - output = ''; equal(minify(input, { removeStyleLinkTypeAttributes: true }), output); - input = ''; equal(minify(input, { removeStyleLinkTypeAttributes: false }), input); - output = ''; equal(minify(input, { removeStyleLinkTypeAttributes: true }), output); - input = ''; + output = ''; equal(minify(input, { removeStyleLinkTypeAttributes: true }), output); - input = ''; equal(minify(input, { removeStyleLinkTypeAttributes: true }), input); input = ''; @@ -916,8 +916,8 @@ test('preserving custom attribute-joining markup', function() { }); test('collapsing whitespace', function() { - input = ''; + output = ''; equal(minify(input, { collapseWhitespace: true }), output); input = '

    foo

    bar

    \n\n \n\t\t
    baz
    '; @@ -950,14 +950,14 @@ test('collapsing whitespace', function() { output = '
    $foo = "baz";
    '; equal(minify(input, { collapseWhitespace: true, caseSensitive: true }), output); - input = '\r\n\r\n\r\n' + + '\r\n\r\n\r\n' + '
    \r\n
    \r\n
    \r\n
    ' + - '\r\n
    \r\n
    \r\n\r\n ' + - '\r\n ' + + '
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    ' + + '
           \r\nxxxx
    x Hello billy \r\n' + + '\r\n\r\n
    ';
       output = '' +
                '' +
                '
    ' + @@ -976,12 +976,12 @@ test('collapsing whitespace', function() { output = '
       hello     world 
    '; equal(minify(input, { collapseWhitespace: true }), output); - input = ''; + output = ''; equal(minify(input, { collapseWhitespace: true }), output); - input = ''; + output = ''; equal(minify(input, { collapseWhitespace: true }), output); }); @@ -1429,7 +1429,7 @@ test('Ignore custom fragments', function() { input = ''; output = ''; - equal(minify(input, { ignoreCustomFragments: [/\{\%[^\%]*?\%\}/g] }), output); + equal(minify(input, { ignoreCustomFragments: [/\{%[^%]*?%\}/g] }), output); input = '' + '{{ form.name.label_tag }}' + @@ -1443,7 +1443,7 @@ test('Ignore custom fragments', function() { '

    '; equal(minify(input, { ignoreCustomFragments: [ - /\{\%[\s\S]*?\%\}/g, + /\{%[\s\S]*?%\}/g, /\{\{[\s\S]*?\}\}/g ], quoteCharacter: '\'' @@ -1460,7 +1460,7 @@ test('Ignore custom fragments', function() { '

    '; equal(minify(input, { ignoreCustomFragments: [ - /\{\%[\s\S]*?\%\}/g, + /\{%[\s\S]*?%\}/g, /\{\{[\s\S]*?\}\}/g ], quoteCharacter: '\'', @@ -1477,7 +1477,7 @@ test('Ignore custom fragments', function() { input = '>'; equal(minify(input, { ignoreCustomFragments: [ - /<\%=[\s\S]*?%>/g + /<%=[\s\S]*?%>/g ] }), input); @@ -1495,7 +1495,7 @@ test('Ignore custom fragments', function() { input = ''; equal(minify(input, { ignoreCustomFragments: [ - /\{\%[^\%]*?\%\}/g + /\{%[^%]*?%\}/g ] }), input); @@ -2034,9 +2034,9 @@ test('max line length', function() { equal(minify(input), input); - equal(minify('', options), ''); + equal(minify('', options), ''); + equal(minify('', options), ''); equal(minify('foo', options), 'foo\n'); equal(minify('

    x', options), '

    x

    '); @@ -2458,7 +2458,7 @@ test('tests from PHPTAL', function() { ['', ''] /* trim "title" attribute value in [ - 'Foo

    x xu


    foo', + 'Foo

    x xu


    foo', ' Foo \n' + '\n' + '

    \n' +