From d566a8c0beb3c2ae0925645badef33c4058d34fb Mon Sep 17 00:00:00 2001 From: Etiene Dalcol Date: Mon, 15 Feb 2016 14:05:59 +0100 Subject: [PATCH 1/2] Update starlight and sync files with sailor --- js/starlight/DOMAPI.js | 158 ----------------------------- js/starlight/DOMAPI.min.js | 1 - js/starlight/babel.min.js | 30 ------ js/starlight/browser.5.8.34.min.js | 29 ++++++ js/starlight/latclient.js | 24 ----- js/starlight/parser.min.js | 1 - js/starlight/starlight.js | 2 + js/starlight/starlight.min.js | 1 - lua/latclient.lua | 2 +- lua/latclient/common.lua | 2 +- lua/latclient/conf.lua | 2 +- lua/latclient/lp_handler.lua | 2 +- lua/latclient/lua51js.lua | 2 +- lua/latclient/moonshine.lua | 3 +- lua/latclient/starlight.lua | 32 +++--- 15 files changed, 57 insertions(+), 234 deletions(-) delete mode 100644 js/starlight/DOMAPI.js delete mode 100644 js/starlight/DOMAPI.min.js delete mode 100644 js/starlight/babel.min.js create mode 100644 js/starlight/browser.5.8.34.min.js delete mode 100644 js/starlight/latclient.js delete mode 100644 js/starlight/parser.min.js create mode 100644 js/starlight/starlight.js delete mode 100644 js/starlight/starlight.min.js diff --git a/js/starlight/DOMAPI.js b/js/starlight/DOMAPI.js deleted file mode 100644 index ca9394d..0000000 --- a/js/starlight/DOMAPI.js +++ /dev/null @@ -1,158 +0,0 @@ - -(function (starlight) { - var T = starlight.runtime.T; - var _G = starlight.runtime.globalScope; - var getn = _G.get('table').get('getn'); - - function jsToLua (obj) { - var t, mt; - - mt = new T({ - - __index: function (t, key) { - var property = obj[key], - i, children, child; - - // Bind methods to object and convert args and return values - if (typeof property == 'function' || (property && property.prototype && typeof property.prototype.constructor == 'function')) { // KLUDGE: Safari reports native constructors as objects, not functions :-s - var f = function () { - var args = convertArguments(arguments, luaToJS), - retval = property.apply(args.shift(), args); - - if (typeof retval == 'object') return jsToLua(retval); - return [retval]; - }; - - // Add static methods, etc - if (Object.getOwnPropertyNames) { - children = Object.getOwnPropertyNames(property); - - for (i = 0; child = children[i]; i++) { - if (child == 'caller' || child == 'callee' || child == 'arguments') continue; // Avoid issues in strict mode. Fixes mooshine issue #24. - f[child] = property[child]; - } - } - - // Add a new method for instantiating classes - f.new = function () { - var args = convertArguments(arguments, luaToJS), - argStr, - obj, - i, l; - - argStr = (l = args.length)? 'args[0]' : ''; - for (i = 1; i < l; i++) argStr += ',args[' + i + ']'; - - obj = eval('new property(' + argStr + ')'); - return jsToLua(obj); - }; - - return f; - } - - // Recurse down properties - if (typeof property == 'object') return jsToLua(property); - - // Return primatives as is - return property; - }, - - - __newindex: function (t, key, val) { - obj[key] = luaToJS(val); - } - - }); - - mt.source = obj; - t = new T(); - - // Return proxy table - t.metatable = mt; - return t; - } - - - - - function luaToJS (val) { - var mt; - - // Make shine.Functions invokable - if (val instanceof Function) { - return function () { - return jsToLua(val.apply(undefined, convertArguments(arguments, jsToLua))); - }; - } - - if (val instanceof T) { - // If object has been wrapped by jsToLua(), use original object instead - if ((mt = val.metatable) && mt.source) { - return mt.source; - } - - // Else iterate over table - var isArr = getn(val) > 0, - result = isArr? [] : {}, - numValues = val.numValues, - strValues = val.strValues, - i, - l = numValues.length; - - for (i = 1; i < l; i++) { - result[i - 1] = (numValues[i] instanceof T)? luaToJS(numValues[i]) : numValues[i]; - } - - for (i in strValues) { - if (strValues.hasOwnProperty(i)) { - result[i] = (val[i] instanceof T)? luaToJS(val[i]) : val[i]; - } - } - - return result; - } - - - // // Convert tables to objects - // if (typeof val == 'object') return shine.utils.toObject(val); - - // return primatives as is - return val; - } - - - - - function convertArguments (arguments, translateFunc) { - var args = [], i, l; - - for (i = 0, l = arguments.length; i < l; i++) { - args.push(translateFunc(arguments[i])); - } - - return args; - }; - - - - - // Create wrapped window API - var win = jsToLua(window); - _G.set('window', win); - - - // Add expand method - win.set('extract', function () { - var keys = Object.getOwnPropertyNames && Object.getOwnPropertyNames(win); - - for (var i in keys || win) { - if (keys) i = keys[i]; - - if (i !== 'print' && i !== 'window' && win[i] !== null) { - _G.set(i, win.get(i)); - } - } - }); - - -})(window.starlight); diff --git a/js/starlight/DOMAPI.min.js b/js/starlight/DOMAPI.min.js deleted file mode 100644 index 23b04fc..0000000 --- a/js/starlight/DOMAPI.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(starlight){function jsToLua(obj){var t,mt;return mt=new T({__index:function(t,key){var property=obj[key],i,children,child;if("function"==typeof property||property&&property.prototype&&"function"==typeof property.prototype.constructor){var f=function(){var t=convertArguments(arguments,luaToJS),r=property.apply(t.shift(),t);return"object"==typeof r?jsToLua(r):[r]};if(Object.getOwnPropertyNames)for(children=Object.getOwnPropertyNames(property),i=0;child=children[i];i++)"caller"!=child&&"callee"!=child&&"arguments"!=child&&(f[child]=property[child]);return f.new=function(){var args=convertArguments(arguments,luaToJS),argStr,obj,i,l;for(argStr=(l=args.length)?"args[0]":"",i=1;l>i;i++)argStr+=",args["+i+"]";return obj=eval("new property("+argStr+")"),jsToLua(obj)},f}return"object"==typeof property?jsToLua(property):property},__newindex:function(t,r,e){obj[r]=luaToJS(e)}}),mt.source=obj,t=new T,t.metatable=mt,t}function luaToJS(t){var r;if(t instanceof Function)return function(){return jsToLua(t.apply(void 0,convertArguments(arguments,jsToLua)))};if(t instanceof T){if((r=t.metatable)&&r.source)return r.source;var e,n=getn(t)>0,o=n?[]:{},i=t.numValues,a=t.strValues,u=i.length;for(e=1;u>e;e++)o[e-1]=i[e]instanceof T?luaToJS(i[e]):i[e];for(e in a)a.hasOwnProperty(e)&&(o[e]=t[e]instanceof T?luaToJS(t[e]):t[e]);return o}return t}function convertArguments(t,r){var e,n,o=[];for(e=0,n=t.length;n>e;e++)o.push(r(t[e]));return o}var T=starlight.runtime.T,_G=starlight.runtime.globalScope,getn=_G.get("table").get("getn"),win=jsToLua(window);_G.set("window",win),win.set("extract",function(){var t=Object.getOwnPropertyNames&&Object.getOwnPropertyNames(win);for(var r in t||win)t&&(r=t[r]),"print"!==r&&"window"!==r&&null!==win[r]&&_G.set(r,win.get(r))})}(window.starlight); \ No newline at end of file diff --git a/js/starlight/babel.min.js b/js/starlight/babel.min.js deleted file mode 100644 index 4439280..0000000 --- a/js/starlight/babel.min.js +++ /dev/null @@ -1,30 +0,0 @@ -!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.babel=a()}}(function(){var a,b,c;return function d(a,b,c){function e(g,h){if(!b[g]){if(!a[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=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return e(c?c:b)},k,k.exports,d,a,b,c)}return b[g].exports}for(var f="function"==typeof require&&require,g=0;g=0;f--)if(g[f]!=h[f])return!1;for(f=g.length-1;f>=0;f--)if(e=g[f],!i(a[e],b[e]))return!1;return!0}function l(a,b){return a&&b?"[object RegExp]"==Object.prototype.toString.call(b)?b.test(a):a instanceof b?!0:b.call({},a)===!0?!0:!1:!1}function m(a,b,c,d){var e;n.isString(c)&&(d=c,c=null);try{b()}catch(f){e=f}if(d=(c&&c.name?" ("+c.name+").":".")+(d?" "+d:"."),a&&!e&&g(e,c,"Missing expected exception"+d),!a&&l(e,c)&&g(e,c,"Got unwanted exception"+d),a&&e&&c&&!l(e,c)||!a&&e)throw e}var n=a("util/"),o=Array.prototype.slice,p=Object.prototype.hasOwnProperty,q=b.exports=h;q.AssertionError=function(a){this.name="AssertionError",this.actual=a.actual,this.expected=a.expected,this.operator=a.operator,a.message?(this.message=a.message,this.generatedMessage=!1):(this.message=f(this),this.generatedMessage=!0);var b=a.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,b);else{var c=new Error;if(c.stack){var d=c.stack,e=b.name,h=d.indexOf("\n"+e);if(h>=0){var i=d.indexOf("\n",h+1);d=d.substring(i+1)}this.stack=d}}},n.inherits(q.AssertionError,Error),q.fail=g,q.ok=h,q.equal=function(a,b,c){a!=b&&g(a,b,c,"==",q.equal)},q.notEqual=function(a,b,c){a==b&&g(a,b,c,"!=",q.notEqual)},q.deepEqual=function(a,b,c){i(a,b)||g(a,b,c,"deepEqual",q.deepEqual)},q.notDeepEqual=function(a,b,c){i(a,b)&&g(a,b,c,"notDeepEqual",q.notDeepEqual)},q.strictEqual=function(a,b,c){a!==b&&g(a,b,c,"===",q.strictEqual)},q.notStrictEqual=function(a,b,c){a===b&&g(a,b,c,"!==",q.notStrictEqual)},q["throws"]=function(a,b,c){m.apply(this,[!0].concat(o.call(arguments)))},q.doesNotThrow=function(a,b){m.apply(this,[!1].concat(o.call(arguments)))},q.ifError=function(a){if(a)throw a};var r=Object.keys||function(a){var b=[];for(var c in a)p.call(a,c)&&b.push(c);return b}},{"util/":27}],2:[function(a,b,c){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(a){"use strict";function b(a){var b=a.charCodeAt(0);return b===g||b===l?62:b===h||b===m?63:i>b?-1:i+10>b?b-i+26+26:k+26>b?b-k:j+26>b?b-j+26:void 0}function c(a){function c(a){j[l++]=a}var d,e,g,h,i,j;if(a.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var k=a.length;i="="===a.charAt(k-2)?2:"="===a.charAt(k-1)?1:0,j=new f(3*a.length/4-i),g=i>0?a.length-4:a.length;var l=0;for(d=0,e=0;g>d;d+=4,e+=3)h=b(a.charAt(d))<<18|b(a.charAt(d+1))<<12|b(a.charAt(d+2))<<6|b(a.charAt(d+3)),c((16711680&h)>>16),c((65280&h)>>8),c(255&h);return 2===i?(h=b(a.charAt(d))<<2|b(a.charAt(d+1))>>4,c(255&h)):1===i&&(h=b(a.charAt(d))<<10|b(a.charAt(d+1))<<4|b(a.charAt(d+2))>>2,c(h>>8&255),c(255&h)),j}function e(a){function b(a){return d.charAt(a)}function c(a){return b(a>>18&63)+b(a>>12&63)+b(a>>6&63)+b(63&a)}var e,f,g,h=a.length%3,i="";for(e=0,g=a.length-h;g>e;e+=3)f=(a[e]<<16)+(a[e+1]<<8)+a[e+2],i+=c(f);switch(h){case 1:f=a[a.length-1],i+=b(f>>2),i+=b(f<<4&63),i+="==";break;case 2:f=(a[a.length-2]<<8)+a[a.length-1],i+=b(f>>10),i+=b(f>>4&63),i+=b(f<<2&63),i+="="}return i}var f="undefined"!=typeof Uint8Array?Uint8Array:Array,g="+".charCodeAt(0),h="/".charCodeAt(0),i="0".charCodeAt(0),j="a".charCodeAt(0),k="A".charCodeAt(0),l="-".charCodeAt(0),m="_".charCodeAt(0);a.toByteArray=c,a.fromByteArray=e}("undefined"==typeof c?this.base64js={}:c)},{}],3:[function(a,b,c){},{}],4:[function(a,b,c){function d(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function e(a){return this instanceof e?(this.length=0,this.parent=void 0,"number"==typeof a?f(this,a):"string"==typeof a?g(this,a,arguments.length>1?arguments[1]:"utf8"):h(this,a)):arguments.length>1?new e(a,arguments[1]):new e(a)}function f(a,b){if(a=n(a,0>b?0:0|o(b)),!e.TYPED_ARRAY_SUPPORT)for(var c=0;b>c;c++)a[c]=0;return a}function g(a,b,c){("string"!=typeof c||""===c)&&(c="utf8");var d=0|q(b,c);return a=n(a,d),a.write(b,c),a}function h(a,b){if(e.isBuffer(b))return i(a,b);if(W(b))return j(a,b);if(null==b)throw new TypeError("must start with number, buffer, array or string");return"undefined"!=typeof ArrayBuffer&&b.buffer instanceof ArrayBuffer?k(a,b):b.length?l(a,b):m(a,b)}function i(a,b){var c=0|o(b.length);return a=n(a,c),b.copy(a,0,0,c),a}function j(a,b){var c=0|o(b.length);a=n(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function k(a,b){var c=0|o(b.length);a=n(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function l(a,b){var c=0|o(b.length);a=n(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function m(a,b){var c,d=0;"Buffer"===b.type&&W(b.data)&&(c=b.data,d=0|o(c.length)),a=n(a,d);for(var e=0;d>e;e+=1)a[e]=255&c[e];return a}function n(a,b){e.TYPED_ARRAY_SUPPORT?a=e._augment(new Uint8Array(b)):(a.length=b,a._isBuffer=!0);var c=0!==b&&b<=e.poolSize>>>1;return c&&(a.parent=X),a}function o(a){if(a>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return 0|a}function p(a,b){if(!(this instanceof p))return new p(a,b);var c=new e(a,b);return delete c.parent,c}function q(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 O(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return R(a).length;default:if(d)return O(a).length;b=(""+b).toLowerCase(),d=!0}}function r(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 C(this,b,c);case"utf8":case"utf-8":return z(this,b,c);case"ascii":return A(this,b,c);case"binary":return B(this,b,c);case"base64":return y(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function s(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 t(a,b,c,d){return S(O(b,a.length-c),a,c,d)}function u(a,b,c,d){return S(P(b),a,c,d)}function v(a,b,c,d){return u(a,b,c,d)}function w(a,b,c,d){return S(R(b),a,c,d)}function x(a,b,c,d){return S(Q(b,a.length-c),a,c,d)}function y(a,b,c){return 0===b&&c===a.length?U.fromByteArray(a):U.fromByteArray(a.slice(b,c))}function z(a,b,c){var d="",e="";c=Math.min(a.length,c);for(var f=b;c>f;f++)a[f]<=127?(d+=T(e)+String.fromCharCode(a[f]),e=""):e+="%"+a[f].toString(16);return d+T(e)}function A(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 B(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 C(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+=N(a[f]);return e}function D(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 F(a,b,c,d,f,g){if(!e.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");if(b>f||g>b)throw new RangeError("value is out of bounds");if(c+d>a.length)throw new RangeError("index out of range")}function G(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 H(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 I(a,b,c,d,e,f){if(b>e||f>b)throw new RangeError("value is out of bounds");if(c+d>a.length)throw new RangeError("index out of range");if(0>c)throw new RangeError("index out of range")}function J(a,b,c,d,e){return e||I(a,b,c,4,3.4028234663852886e38,-3.4028234663852886e38),V.write(a,b,c,d,23,4),c+4}function K(a,b,c,d,e){return e||I(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),V.write(a,b,c,d,52,8),c+8}function L(a){if(a=M(a).replace(Z,""),a.length<2)return"";for(;a.length%4!==0;)a+="=";return a}function M(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function N(a){return 16>a?"0"+a.toString(16):a.toString(16)}function O(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,e=null}else e&&((b-=3)>-1&&f.push(239,191,189),e=null);if(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(!(2097152>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 P(a){for(var b=[],c=0;c>8,e=c%256,f.push(e),f.push(d);return f}function R(a){return U.toByteArray(L(a))}function S(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}function T(a){try{return decodeURIComponent(a)}catch(b){return String.fromCharCode(65533)}}var U=a("base64-js"),V=a("ieee754"),W=a("is-array");c.Buffer=e,c.SlowBuffer=p,c.INSPECT_MAX_BYTES=50,e.poolSize=8192;var X={};e.TYPED_ARRAY_SUPPORT=function(){function a(){}try{var b=new ArrayBuffer(0),c=new Uint8Array(b);return c.foo=function(){return 42},c.constructor=a,42===c.foo()&&c.constructor===a&&"function"==typeof c.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(d){return!1}}(),e.isBuffer=function(a){return!(null==a||!a._isBuffer)},e.compare=function(a,b){if(!e.isBuffer(a)||!e.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var c=a.length,d=b.length,f=0,g=Math.min(c,d);g>f&&a[f]===b[f];)++f;return f!==g&&(c=a[f],d=b[f]),d>c?-1:c>d?1:0},e.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}},e.concat=function(a,b){if(!W(a))throw new TypeError("list argument must be an Array of Buffers.");if(0===a.length)return new e(0);if(1===a.length)return a[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+=" ... ")),""},e.prototype.compare=function(a){if(!e.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a?0:e.compare(this,a)},e.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(e.isBuffer(a))return c(this,a,b);if("number"==typeof a)return e.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")},e.prototype.get=function(a){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(a)},e.prototype.set=function(a,b){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(a,b)},e.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 s(this,a,b,c);case"utf8":case"utf-8":return t(this,a,b,c);case"ascii":return u(this,a,b,c);case"binary":return v(this,a,b,c);case"base64":return w(this,a,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,a,b,c);default:if(g)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),g=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},e.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(e.TYPED_ARRAY_SUPPORT)d=e._augment(this.subarray(a,b));else{var f=b-a;d=new e(f,void 0);for(var g=0;f>g;g++)d[g]=this[g+a]}return d.length&&(d.parent=this.parent||this),d},e.prototype.readUIntLE=function(a,b,c){a=0|a,b=0|b,c||E(a,b,this.length);for(var d=this[a],e=1,f=0;++f0&&(e*=256);)d+=this[a+--b]*e;return d},e.prototype.readUInt8=function(a,b){return b||E(a,1,this.length),this[a]},e.prototype.readUInt16LE=function(a,b){return b||E(a,2,this.length),this[a]|this[a+1]<<8},e.prototype.readUInt16BE=function(a,b){return b||E(a,2,this.length),this[a]<<8|this[a+1]},e.prototype.readUInt32LE=function(a,b){return b||E(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},e.prototype.readUInt32BE=function(a,b){return b||E(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},e.prototype.readIntLE=function(a,b,c){a=0|a,b=0|b,c||E(a,b,this.length);for(var d=this[a],e=1,f=0;++f=e&&(d-=Math.pow(2,8*b)),d},e.prototype.readIntBE=function(a,b,c){a=0|a,b=0|b,c||E(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},e.prototype.readInt8=function(a,b){return b||E(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},e.prototype.readInt16LE=function(a,b){b||E(a,2,this.length);var c=this[a]|this[a+1]<<8;return 32768&c?4294901760|c:c},e.prototype.readInt16BE=function(a,b){b||E(a,2,this.length);var c=this[a+1]|this[a]<<8;return 32768&c?4294901760|c:c},e.prototype.readInt32LE=function(a,b){return b||E(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},e.prototype.readInt32BE=function(a,b){return b||E(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},e.prototype.readFloatLE=function(a,b){return b||E(a,4,this.length),V.read(this,a,!0,23,4)},e.prototype.readFloatBE=function(a,b){return b||E(a,4,this.length),V.read(this,a,!1,23,4)},e.prototype.readDoubleLE=function(a,b){return b||E(a,8,this.length),V.read(this,a,!0,52,8)},e.prototype.readDoubleBE=function(a,b){return b||E(a,8,this.length),V.read(this,a,!1,52,8)},e.prototype.writeUIntLE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||F(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},e.prototype.writeUInt8=function(a,b,c){return a=+a,b=0|b,c||F(this,a,b,1,255,0),e.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[b]=a,b+1},e.prototype.writeUInt16LE=function(a,b,c){return a=+a,b=0|b,c||F(this,a,b,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8):G(this,a,b,!0),b+2},e.prototype.writeUInt16BE=function(a,b,c){return a=+a,b=0|b,c||F(this,a,b,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=a):G(this,a,b,!1),b+2},e.prototype.writeUInt32LE=function(a,b,c){return a=+a,b=0|b,c||F(this,a,b,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=a):H(this,a,b,!0),b+4},e.prototype.writeUInt32BE=function(a,b,c){return a=+a,b=0|b,c||F(this,a,b,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=a):H(this,a,b,!1),b+4},e.prototype.writeIntLE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);F(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},e.prototype.writeIntBE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);F(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},e.prototype.writeInt8=function(a,b,c){return a=+a,b=0|b,c||F(this,a,b,1,127,-128),e.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),0>a&&(a=255+a+1),this[b]=a,b+1},e.prototype.writeInt16LE=function(a,b,c){return a=+a,b=0|b,c||F(this,a,b,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8):G(this,a,b,!0),b+2},e.prototype.writeInt16BE=function(a,b,c){return a=+a,b=0|b,c||F(this,a,b,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=a):G(this,a,b,!1),b+2},e.prototype.writeInt32LE=function(a,b,c){return a=+a,b=0|b,c||F(this,a,b,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):H(this,a,b,!0),b+4},e.prototype.writeInt32BE=function(a,b,c){return a=+a,b=0|b,c||F(this,a,b,4,2147483647,-2147483648),0>a&&(a=4294967295+a+1),e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=a):H(this,a,b,!1),b+4},e.prototype.writeFloatLE=function(a,b,c){return J(this,a,b,!0,c)},e.prototype.writeFloatBE=function(a,b,c){return J(this,a,b,!1,c)},e.prototype.writeDoubleLE=function(a,b,c){return K(this,a,b,!0,c)},e.prototype.writeDoubleBE=function(a,b,c){return K(this,a,b,!1,c)},e.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-bf||!e.TYPED_ARRAY_SUPPORT)for(var g=0;f>g;g++)a[g+b]=this[g+c];else a._set(this.subarray(c,c+f),b);return f},e.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=O(a.toString()),f=e.length;for(d=b;c>d;d++)this[d]=e[d%f]}return this}},e.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(e.TYPED_ARRAY_SUPPORT)return new e(this).buffer;for(var a=new Uint8Array(this.length),b=0,c=a.length;c>b;b+=1)a[b]=this[b];return a.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var Y=e.prototype;e._augment=function(a){return a.constructor=e,a._isBuffer=!0,a._set=a.set,a.get=Y.get,a.set=Y.set,a.write=Y.write,a.toString=Y.toString,a.toLocaleString=Y.toString,a.toJSON=Y.toJSON,a.equals=Y.equals,a.compare=Y.compare,a.indexOf=Y.indexOf,a.copy=Y.copy,a.slice=Y.slice,a.readUIntLE=Y.readUIntLE,a.readUIntBE=Y.readUIntBE,a.readUInt8=Y.readUInt8,a.readUInt16LE=Y.readUInt16LE,a.readUInt16BE=Y.readUInt16BE,a.readUInt32LE=Y.readUInt32LE,a.readUInt32BE=Y.readUInt32BE,a.readIntLE=Y.readIntLE,a.readIntBE=Y.readIntBE,a.readInt8=Y.readInt8,a.readInt16LE=Y.readInt16LE,a.readInt16BE=Y.readInt16BE,a.readInt32LE=Y.readInt32LE,a.readInt32BE=Y.readInt32BE,a.readFloatLE=Y.readFloatLE,a.readFloatBE=Y.readFloatBE,a.readDoubleLE=Y.readDoubleLE,a.readDoubleBE=Y.readDoubleBE,a.writeUInt8=Y.writeUInt8,a.writeUIntLE=Y.writeUIntLE,a.writeUIntBE=Y.writeUIntBE,a.writeUInt16LE=Y.writeUInt16LE,a.writeUInt16BE=Y.writeUInt16BE,a.writeUInt32LE=Y.writeUInt32LE,a.writeUInt32BE=Y.writeUInt32BE,a.writeIntLE=Y.writeIntLE,a.writeIntBE=Y.writeIntBE,a.writeInt8=Y.writeInt8,a.writeInt16LE=Y.writeInt16LE,a.writeInt16BE=Y.writeInt16BE,a.writeInt32LE=Y.writeInt32LE,a.writeInt32BE=Y.writeInt32BE,a.writeFloatLE=Y.writeFloatLE,a.writeFloatBE=Y.writeFloatBE,a.writeDoubleLE=Y.writeDoubleLE,a.writeDoubleBE=Y.writeDoubleBE,a.fill=Y.fill,a.inspect=Y.inspect,a.toArrayBuffer=Y.toArrayBuffer,a};var Z=/[^+\/0-9A-z\-]/g},{"base64-js":2,ieee754:7,"is-array":9}],5:[function(a,b,c){(function(a){function b(a){return Array.isArray(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 l(a)&&"[object RegExp]"===r(a)}function l(a){return"object"==typeof a&&null!==a}function m(a){return l(a)&&"[object Date]"===r(a)}function n(a){return l(a)&&("[object Error]"===r(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(b){return a.isBuffer(b)}function r(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=q}).call(this,a("buffer").Buffer)},{buffer:4}],6:[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:for(d=arguments.length,f=new Array(d-1),i=1;d>i;i++)f[i-1]=arguments[i];c.apply(this,f)}else if(g(c)){for(d=arguments.length,f=new Array(d-1),i=1;d>i;i++)f[i-1]=arguments[i];for(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");if(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){var c;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())}return 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 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.listenerCount=function(a,b){var c;return c=a._events&&a._events[b]?e(a._events[b])?1:a._events[b].length:0}},{}],7:[function(a,b,c){c.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},c.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=0>b||0===b&&0>1/b?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}},{}],8:[function(a,b,c){"function"==typeof Object.create?b.exports=function(a,b){a.super_=b,a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})}:b.exports=function(a,b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}},{}],9:[function(a,b,c){var d=Array.isArray,e=Object.prototype.toString;b.exports=d||function(a){return!!a&&"[object Array]"==e.call(a)}},{}],10:[function(a,b,c){b.exports=Array.isArray||function(a){return"[object Array]"==Object.prototype.toString.call(a)}},{}],11:[function(a,b,c){(function(a){function b(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function d(a,b){if(a.filter)return a.filter(b);for(var c=[],d=0;d=-1&&!e;f--){var g=f>=0?arguments[f]:a.cwd();if("string"!=typeof g)throw new TypeError("Arguments to path.resolve must be strings");g&&(c=g+"/"+c,e="/"===g.charAt(0))}return c=b(d(c.split("/"),function(a){return!!a}),!e).join("/"),(e?"/":"")+c||"."},c.normalize=function(a){var e=c.isAbsolute(a),f="/"===g(a,-1);return a=b(d(a.split("/"),function(a){return!!a}),!e).join("/"),a||e||(a="."),a&&f&&(a+="/"),(e?"/":"")+a},c.isAbsolute=function(a){return"/"===a.charAt(0)},c.join=function(){var a=Array.prototype.slice.call(arguments,0);return c.normalize(d(a,function(a,b){if("string"!=typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))},c.relative=function(a,b){function d(a){for(var b=0;b=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=c.resolve(a).substr(1),b=c.resolve(b).substr(1);for(var e=d(a.split("/")),f=d(b.split("/")),g=Math.min(e.length,f.length),h=g,i=0;g>i;i++)if(e[i]!==f[i]){h=i;break}for(var j=[],i=h;ib&&(b=a.length+b),a.substr(b,c)}}).call(this,a("_process"))},{_process:12}],12:[function(a,b,c){function d(){if(!h){h=!0;for(var a,b=g.length;b;){a=g,g=[];for(var c=-1;++cc;c++)b(a[c],c)}b.exports=d;var g=Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b},h=a("core-util-is");h.inherits=a("inherits");var i=a("./_stream_readable"),j=a("./_stream_writable");h.inherits(d,i),f(g(j.prototype),function(a){d.prototype[a]||(d.prototype[a]=j.prototype[a])})}).call(this,a("_process"))},{"./_stream_readable":16,"./_stream_writable":18,_process:12,"core-util-is":5,inherits:8}],15:[function(a,b,c){function d(a){return this instanceof d?void e.call(this,a):new d(a)}b.exports=d;var e=a("./_stream_transform"),f=a("core-util-is");f.inherits=a("inherits"),f.inherits(d,e),d.prototype._transform=function(a,b,c){c(null,a)}},{"./_stream_transform":17,"core-util-is":5,inherits:8}],16:[function(a,b,c){(function(c){function d(b,c){b=b||{};var d=b.highWaterMark;this.highWaterMark=d||0===d?d:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!b.objectMode,this.defaultEncoding=b.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(C||(C=a("string_decoder/").StringDecoder),this.decoder=new C(b.encoding),this.encoding=b.encoding)}function e(a){return this instanceof e?(this._readableState=new d(a,this),this.readable=!0,void A.call(this)):new e(a)}function f(a,b,c,d,e){var f=j(b,c);if(f)a.emit("error",f);else if(null===c||void 0===c)b.reading=!1,b.ended||k(a,b);else if(b.objectMode||c&&c.length>0)if(b.ended&&!e){var h=new Error("stream.push() after EOF");a.emit("error",h)}else if(b.endEmitted&&e){var h=new Error("stream.unshift() after end event");a.emit("error",h)}else!b.decoder||e||d||(c=b.decoder.write(c)),b.length+=b.objectMode?1:c.length,e?b.buffer.unshift(c):(b.reading=!1,b.buffer.push(c)),b.needReadable&&l(a),n(a,b);else e||(b.reading=!1);return g(b)}function g(a){return!a.ended&&(a.needReadable||a.length=D)a=D;else{a--;for(var b=1;32>b;b<<=1)a|=a>>b;a++}return a}function i(a,b){return 0===b.length&&b.ended?0:b.objectMode?0===a?0:1:null===a||isNaN(a)?b.flowing&&b.buffer.length?b.buffer[0].length:b.length:0>=a?0:(a>b.highWaterMark&&(b.highWaterMark=h(a)),a>b.length?b.ended?b.length:(b.needReadable=!0,0):a)}function j(a,b){var c=null;return y.isBuffer(b)||"string"==typeof b||null===b||void 0===b||a.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c}function k(a,b){if(b.decoder&&!b.ended){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,b.length>0?l(a):u(a)}function l(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(b.emittedReadable=!0,b.sync?c.nextTick(function(){m(a)}):m(a))}function m(a){a.emit("readable")}function n(a,b){b.readingMore||(b.readingMore=!0,c.nextTick(function(){o(a,b)}))}function o(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length0)return;return 0===d.pipesCount?(d.flowing=!1,void(z.listenerCount(a,"data")>0&&s(a))):void(d.ranOut=!0)}function r(){this._readableState.ranOut&&(this._readableState.ranOut=!1,q(this))}function s(a,b){var d=a._readableState;if(d.flowing)throw new Error("Cannot switch to old mode now.");var e=b||!1,f=!1;a.readable=!0,a.pipe=A.prototype.pipe,a.on=a.addListener=A.prototype.on,a.on("readable",function(){f=!0;for(var b;!e&&null!==(b=a.read());)a.emit("data",b);null===b&&(f=!1,a._readableState.needReadable=!0)}),a.pause=function(){e=!0,this.emit("pause")},a.resume=function(){e=!1,f?c.nextTick(function(){a.emit("readable")}):this.read(0),this.emit("resume")},a.emit("readable")}function t(a,b){var c,d=b.buffer,e=b.length,f=!!b.decoder,g=!!b.objectMode;if(0===d.length)return null;if(0===e)c=null;else if(g)c=d.shift();else if(!a||a>=e)c=f?d.join(""):y.concat(d,e),d.length=0;else if(aj&&a>i;j++){var h=d[0],l=Math.min(a-i,h.length);f?c+=h.slice(0,l):h.copy(c,i,0,l),l0)throw new Error("endReadable called on non-empty stream");!b.endEmitted&&b.calledRead&&(b.ended=!0,c.nextTick(function(){b.endEmitted||0!==b.length||(b.endEmitted=!0,a.readable=!1,a.emit("end"))}))}function v(a,b){for(var c=0,d=a.length;d>c;c++)b(a[c],c)}function w(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1}b.exports=e;var x=a("isarray"),y=a("buffer").Buffer;e.ReadableState=d;var z=a("events").EventEmitter;z.listenerCount||(z.listenerCount=function(a,b){return a.listeners(b).length});var A=a("stream"),B=a("core-util-is");B.inherits=a("inherits");var C;B.inherits(e,A),e.prototype.push=function(a,b){var c=this._readableState;return"string"!=typeof a||c.objectMode||(b=b||c.defaultEncoding,b!==c.encoding&&(a=new y(a,b),b="")),f(this,c,a,b,!1)},e.prototype.unshift=function(a){var b=this._readableState;return f(this,b,a,"",!0)},e.prototype.setEncoding=function(b){C||(C=a("string_decoder/").StringDecoder),this._readableState.decoder=new C(b),this._readableState.encoding=b};var D=8388608;e.prototype.read=function(a){var b=this._readableState;b.calledRead=!0;var c,d=a;if(("number"!=typeof a||a>0)&&(b.emittedReadable=!1),0===a&&b.needReadable&&(b.length>=b.highWaterMark||b.ended))return l(this),null;if(a=i(a,b),0===a&&b.ended)return c=null,b.length>0&&b.decoder&&(c=t(a,b),b.length-=c.length),0===b.length&&u(this),c;var e=b.needReadable;return b.length-a<=b.highWaterMark&&(e=!0),(b.ended||b.reading)&&(e=!1),e&&(b.reading=!0,b.sync=!0,0===b.length&&(b.needReadable=!0),this._read(b.highWaterMark),b.sync=!1),e&&!b.reading&&(a=i(d,b)),c=a>0?t(a,b):null,null===c&&(b.needReadable=!0,a=0),b.length-=a,0!==b.length||b.ended||(b.needReadable=!0),b.ended&&!b.endEmitted&&0===b.length&&u(this),c},e.prototype._read=function(a){this.emit("error",new Error("not implemented"))},e.prototype.pipe=function(a,b){function d(a){a===k&&f()}function e(){a.end()}function f(){a.removeListener("close",h),a.removeListener("finish",i),a.removeListener("drain",o),a.removeListener("error",g),a.removeListener("unpipe",d),k.removeListener("end",e),k.removeListener("end",f),(!a._writableState||a._writableState.needDrain)&&o()}function g(b){j(),a.removeListener("error",g),0===z.listenerCount(a,"error")&&a.emit("error",b)}function h(){a.removeListener("finish",i),j()}function i(){a.removeListener("close",h),j()}function j(){k.unpipe(a)}var k=this,l=this._readableState;switch(l.pipesCount){case 0:l.pipes=a;break;case 1:l.pipes=[l.pipes,a];break;default:l.pipes.push(a)}l.pipesCount+=1;var m=(!b||b.end!==!1)&&a!==c.stdout&&a!==c.stderr,n=m?e:f;l.endEmitted?c.nextTick(n):k.once("end",n),a.on("unpipe",d);var o=p(k);return a.on("drain",o),a._events&&a._events.error?x(a._events.error)?a._events.error.unshift(g):a._events.error=[g,a._events.error]:a.on("error",g),a.once("close",h),a.once("finish",i),a.emit("pipe",k),l.flowing||(this.on("readable",r),l.flowing=!0,c.nextTick(function(){q(k)})),a},e.prototype.unpipe=function(a){var b=this._readableState;if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes?this:(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,this.removeListener("readable",r),b.flowing=!1,a&&a.emit("unpipe",this),this);if(!a){var c=b.pipes,d=b.pipesCount;b.pipes=null,b.pipesCount=0,this.removeListener("readable",r),b.flowing=!1;for(var e=0;d>e;e++)c[e].emit("unpipe",this);return this}var e=w(b.pipes,a);return-1===e?this:(b.pipes.splice(e,1),b.pipesCount-=1,1===b.pipesCount&&(b.pipes=b.pipes[0]),a.emit("unpipe",this),this)},e.prototype.on=function(a,b){var c=A.prototype.on.call(this,a,b);if("data"!==a||this._readableState.flowing||s(this),"readable"===a&&this.readable){var d=this._readableState;d.readableListening||(d.readableListening=!0,d.emittedReadable=!1,d.needReadable=!0,d.reading?d.length&&l(this,d):this.read(0))}return c},e.prototype.addListener=e.prototype.on,e.prototype.resume=function(){s(this),this.read(0),this.emit("resume")},e.prototype.pause=function(){s(this,!0),this.emit("pause")},e.prototype.wrap=function(a){var b=this._readableState,c=!1,d=this;a.on("end",function(){if(b.decoder&&!b.ended){var a=b.decoder.end();a&&a.length&&d.push(a)}d.push(null)}),a.on("data",function(e){if(b.decoder&&(e=b.decoder.write(e)),(!b.objectMode||null!==e&&void 0!==e)&&(b.objectMode||e&&e.length)){var f=d.push(e);f||(c=!0,a.pause())}});for(var e in a)"function"==typeof a[e]&&"undefined"==typeof this[e]&&(this[e]=function(b){return function(){return a[b].apply(a,arguments)}}(e));var f=["error","close","destroy","pause","resume"];return v(f,function(b){a.on(b,d.emit.bind(d,b))}),d._read=function(b){c&&(c=!1,a.resume())},d},e._fromList=t}).call(this,a("_process"))},{_process:12,buffer:4,"core-util-is":5,events:6,inherits:8,isarray:10,stream:23,"string_decoder/":24}],17:[function(a,b,c){function d(a,b){this.afterTransform=function(a,c){return e(b,a,c)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function e(a,b,c){var d=a._transformState;d.transforming=!1;var e=d.writecb;if(!e)return a.emit("error",new Error("no writecb in Transform class"));d.writechunk=null,d.writecb=null,null!==c&&void 0!==c&&a.push(c),e&&e(b);var f=a._readableState;f.reading=!1,(f.needReadable||f.length=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived=55296&&56319>=d)){if(this.charReceived=this.charLength=0,0===a.length)return b;break}this.charLength+=this.surrogateSize,b=""}this.detectIncompleteChar(a);var e=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,e),e-=this.charReceived),b+=a.toString(this.encoding,0,e);var e=b.length-1,d=b.charCodeAt(e);if(d>=55296&&56319>=d){var f=this.surrogateSize;return this.charLength+=f,this.charReceived+=f,this.charBuffer.copy(this.charBuffer,f,0,f),a.copy(this.charBuffer,0,0,f),b.substring(0,e)}return b},j.prototype.detectIncompleteChar=function(a){for(var b=a.length>=3?3:a.length;b>0;b--){var c=a[a.length-b];if(1==b&&c>>5==6){this.charLength=2;break}if(2>=b&&c>>4==14){this.charLength=3;break}if(3>=b&&c>>3==30){this.charLength=4;break}}this.charReceived=b},j.prototype.end=function(a){var b="";if(a&&a.length&&(b=this.write(a)),this.charReceived){var c=this.charReceived,d=this.charBuffer,e=this.encoding;b+=d.slice(0,c).toString(e)}return b}},{buffer:4}],25:[function(a,b,c){function d(){throw new Error("tty.ReadStream is not implemented")}function e(){throw new Error("tty.ReadStream is not implemented")}c.isatty=function(){return!1},c.ReadStream=d,c.WriteStream=e},{}],26:[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}},{}],27:[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":26,_process:12,inherits:8}],28:[function(a,b,c){(function(c){"use strict";a("./node");var d=b.exports=a("../transformation");d.options=a("../transformation/file/options"),d.version=a("../../package").version,d.transform=d,d.run=function(a){var b=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return b.sourceMaps="inline",new Function(d(a,b).code)()},d.load=function(a,b,e,f){void 0===e&&(e={}),e.filename=e.filename||a;var g=c.ActiveXObject?new c.ActiveXObject("Microsoft.XMLHTTP"):new c.XMLHttpRequest;g.open("GET",a,!0),"overrideMimeType"in g&&g.overrideMimeType("text/plain"),g.onreadystatechange=function(){if(4===g.readyState){var c=g.status;if(0!==c&&200!==c)throw new Error("Could not load "+a);var h=[g.responseText,e];f||d.run.apply(d,h),b&&b(h)}},g.send(null)};var e=function(){for(var a=[],b=["text/ecmascript-6","text/6to5","text/babel","module"],e=0,f=function k(){var b=a[e];b instanceof Array&&(d.run.apply(d,b),e++,k())},g=function(b,c){var e={};b.src?d.load(b.src,function(b){a[c]=b,f()},e,!0):(e.filename="embedded",a[c]=[b.innerHTML,e])},h=c.document.getElementsByTagName("script"),i=0;i=0&&a.push(j)}for(i in a)g(a[i],i);f()};c.addEventListener?c.addEventListener("DOMContentLoaded",e,!1):c.attachEvent&&c.attachEvent("onload",e)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../package":548,"../transformation":81,"../transformation/file/options":64,"./node":29}],29:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a["default"]:a}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a){return a&&a.__esModule?a:{"default":a}}function g(b){var c=a("./register/node-polyfill");return null!=b&&c(b),c}function h(){a("../polyfill")}function i(a,b,c){m["default"](b)&&(c=b,b={}),b.filename=a,u["default"].readFile(a,function(a,d){if(a)return c(a);var e;try{e=o["default"](d,b)}catch(a){return c(a)}c(null,e)})}function j(a){var b=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return b.filename=a,o["default"](u["default"].readFileSync(a,"utf8"),b)}function k(a){var b=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];b.allowHashBang=!0,b.sourceType="module",b.ecmaVersion=1/0,b.plugins={jsx:!0,flow:!0},b.features={};for(var c in o["default"].pipeline.transformers)b.features[c]=!0;return q.parse(a,b)}c.__esModule=!0,c.register=g,c.polyfill=h,c.transformFile=i,c.transformFileSync=j,c.parse=k;var l=a("lodash/lang/isFunction"),m=f(l),n=a("../transformation"),o=f(n),p=a("babylon"),q=e(p),r=a("../util"),s=e(r),t=a("fs"),u=f(t),v=a("../types"),w=e(v);c.util=s,c.acorn=q,c.transform=o["default"],c.pipeline=n.pipeline,c.canCompile=r.canCompile;var x=a("../transformation/file/options/config");c.options=d(x);var y=a("../transformation/plugin");c.Plugin=d(y);var z=a("../transformation/transformer");c.Transformer=d(z);var A=a("../transformation/pipeline");c.Pipeline=d(A);var B=a("../traversal");c.traverse=d(B);var C=a("../tools/build-external-helpers");c.buildExternalHelpers=d(C);var D=a("../../package");c.version=D.version,c.types=w},{"../../package":548,"../polyfill":59,"../tools/build-external-helpers":60,"../transformation":81,"../transformation/file/options/config":63,"../transformation/pipeline":94,"../transformation/plugin":96,"../transformation/transformer":97,"../traversal":159,"../types":190,"../util":193,"./register/node-polyfill":31,babylon:233,fs:3,"lodash/lang/isFunction":468}],30:[function(a,b,c){"use strict";c.__esModule=!0,a("../../polyfill"),c["default"]=function(){},b.exports=c["default"]},{"../../polyfill":59}],31:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a["default"]:a}c.__esModule=!0,a("../../polyfill");var e=a("./node");c["default"]=d(e),b.exports=c["default"]},{"../../polyfill":59,"./node":30}],32:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}c.__esModule=!0;var f=a("repeating"),g=d(f),h=a("trim-right"),i=d(h),j=a("lodash/lang/isBoolean"),k=d(j),l=a("lodash/collection/includes"),m=d(l),n=a("lodash/lang/isNumber"),o=d(n),p=function(){function a(b,c){e(this,a),this.position=b,this._indent=c.indent.base,this.format=c,this.buf=""}return a.prototype.get=function(){return i["default"](this.buf)},a.prototype.getIndent=function(){return this.format.compact||this.format.concise?"":g["default"](this.format.indent.style,this._indent)},a.prototype.indentSize=function(){return this.getIndent().length},a.prototype.indent=function(){this._indent++},a.prototype.dedent=function(){this._indent--},a.prototype.semicolon=function(){this.push(";")},a.prototype.ensureSemicolon=function(){this.isLast(";")||this.semicolon()},a.prototype.rightBrace=function(){this.newline(!0),this.push("}")},a.prototype.keyword=function(a){this.push(a),this.space()},a.prototype.space=function(a){(a||!this.format.compact)&&(a||this.buf&&!this.isLast(" ")&&!this.isLast("\n"))&&this.push(" ")},a.prototype.removeLast=function(a){this.format.compact||this.isLast(a)&&(this.buf=this.buf.substr(0,this.buf.length-1),this.position.unshift(a))},a.prototype.newline=function(a,b){if(!this.format.compact&&!this.format.retainLines){if(this.format.concise)return void this.space();if(b=b||!1,o["default"](a)){if(a=Math.min(2,a),(this.endsWith("{\n")||this.endsWith(":\n"))&&a--,0>=a)return;for(;a>0;)this._newline(b),a--}else k["default"](a)&&(b=a),this._newline(b)}},a.prototype._newline=function(a){this.endsWith("\n\n")||(a&&this.isLast("\n")&&this.removeLast("\n"),this.removeLast(" "),this._removeSpacesAfterLastNewline(),this._push("\n"))},a.prototype._removeSpacesAfterLastNewline=function(){var a=this.buf.lastIndexOf("\n");if(-1!==a){for(var b=this.buf.length-1;b>a&&" "===this.buf[b];)b--;b===a&&(this.buf=this.buf.substring(0,b+1))}},a.prototype.push=function(a,b){if(!this.format.compact&&this._indent&&!b&&"\n"!==a){var c=this.getIndent();a=a.replace(/\n/g,"\n"+c),this.isLast("\n")&&this._push(c); -}this._push(a)},a.prototype._push=function(a){this.position.push(a),this.buf+=a},a.prototype.endsWith=function(a){var b=arguments.length<=1||void 0===arguments[1]?this.buf:arguments[1];return 1===a.length?b[b.length-1]===a:b.slice(-a.length)===a},a.prototype.isLast=function(a){if(this.format.compact)return!1;var b=this.buf,c=b[b.length-1];return Array.isArray(a)?m["default"](a,c):a===c},a}();c["default"]=p,b.exports=c["default"]},{"lodash/collection/includes":381,"lodash/lang/isBoolean":466,"lodash/lang/isNumber":470,repeating:523,"trim-right":547}],33:[function(a,b,c){"use strict";function d(a,b){b.plain(a.program)}function e(a,b){b.sequence(a.body)}function f(a,b){0===a.body.length?this.push("{}"):(this.push("{"),this.newline(),b.sequence(a.body,{indent:!0}),this.format.retainLines||this.removeLast("\n"),this.rightBrace())}function g(){}c.__esModule=!0,c.File=d,c.Program=e,c.BlockStatement=f,c.Noop=g},{}],34:[function(a,b,c){"use strict";function d(a,b){b.list(a.decorators,{separator:""}),this.push("class"),a.id&&(this.push(" "),b.plain(a.id)),b.plain(a.typeParameters),a.superClass&&(this.push(" extends "),b.plain(a.superClass),b.plain(a.superTypeParameters)),a["implements"]&&(this.push(" implements "),b.join(a["implements"],{separator:", "})),this.space(),b.plain(a.body)}function e(a,b){0===a.body.length?this.push("{}"):(this.push("{"),this.newline(),this.indent(),b.sequence(a.body),this.dedent(),this.rightBrace())}function f(a,b){b.list(a.decorators,{separator:""}),a["static"]&&this.push("static "),b.plain(a.key),b.plain(a.typeAnnotation),a.value&&(this.space(),this.push("="),this.space(),b.plain(a.value)),this.semicolon()}function g(a,b){b.list(a.decorators,{separator:""}),a["static"]&&this.push("static "),this._method(a,b)}c.__esModule=!0,c.ClassDeclaration=d,c.ClassBody=e,c.ClassProperty=f,c.MethodDefinition=g,c.ClassExpression=d},{}],35:[function(a,b,c){"use strict";function d(a,b){this.keyword("for"),this.push("("),b.plain(a.left),this.push(" of "),b.plain(a.right),this.push(")")}function e(a,b){this.push(a.generator?"(":"["),b.join(a.blocks,{separator:" "}),this.space(),a.filter&&(this.keyword("if"),this.push("("),b.plain(a.filter),this.push(")"),this.space()),b.plain(a.body),this.push(a.generator?")":"]")}c.__esModule=!0,c.ComprehensionBlock=d,c.ComprehensionExpression=e},{}],36:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){var c=/[a-z]$/.test(a.operator),d=a.argument;(A.isUpdateExpression(d)||A.isUnaryExpression(d))&&(c=!0),A.isUnaryExpression(d)&&"!"===d.operator&&(c=!1),this.push(a.operator),c&&this.push(" "),b.plain(a.argument)}function g(a,b){this.push("do"),this.space(),b.plain(a.body)}function h(a,b){this.push("("),b.plain(a.expression),this.push(")")}function i(a,b){a.prefix?(this.push(a.operator),b.plain(a.argument)):(b.plain(a.argument),this.push(a.operator))}function j(a,b){b.plain(a.test),this.space(),this.push("?"),this.space(),b.plain(a.consequent),this.space(),this.push(":"),this.space(),b.plain(a.alternate)}function k(a,b){this.push("new "),b.plain(a.callee),this.push("("),b.list(a.arguments),this.push(")")}function l(a,b){b.list(a.expressions)}function m(){this.push("this")}function n(){this.push("super")}function o(a,b){this.push("@"),b.plain(a.expression),this.newline()}function p(a,b){b.plain(a.callee),this.push("(");var c,d=a._prettyCall&&!this.format.retainLines&&!this.format.compact;d&&(c=",\n",this.newline(),this.indent()),b.list(a.arguments,{separator:c}),d&&(this.newline(),this.dedent()),this.push(")")}function q(){this.semicolon()}function r(a,b){b.plain(a.expression),this.semicolon()}function s(a,b){b.plain(a.left),this.push(" = "),b.plain(a.right)}function t(a,b){b.plain(a.left);var c="in"===a.operator||"instanceof"===a.operator;c=!0,this.space(c),this.push(a.operator),c||(c="<"===a.operator&&A.isUnaryExpression(a.right,{prefix:!0,operator:"!"})&&A.isUnaryExpression(a.right.argument,{prefix:!0,operator:"--"})),this.space(c),b.plain(a.right)}function u(a,b){b.plain(a.object),this.push("::"),b.plain(a.callee)}function v(a,b){var c=a.object;if(b.plain(c),!a.computed&&A.isMemberExpression(a.property))throw new TypeError("Got a MemberExpression for MemberExpression property");var d=a.computed;A.isLiteral(a.property)&&y["default"](a.property.value)&&(d=!0),d?(this.push("["),b.plain(a.property),this.push("]")):(this.push("."),b.plain(a.property))}function w(a,b){b.plain(a.meta),this.push("."),b.plain(a.property)}c.__esModule=!0,c.UnaryExpression=f,c.DoExpression=g,c.ParenthesizedExpression=h,c.UpdateExpression=i,c.ConditionalExpression=j,c.NewExpression=k,c.SequenceExpression=l,c.ThisExpression=m,c.Super=n,c.Decorator=o,c.CallExpression=p,c.EmptyStatement=q,c.ExpressionStatement=r,c.AssignmentPattern=s,c.AssignmentExpression=t,c.BindExpression=u,c.MemberExpression=v,c.MetaProperty=w;var x=a("lodash/lang/isNumber"),y=e(x),z=a("../../types"),A=d(z),B=function(a){return function(b,c){this.push(a),(b.delegate||b.all)&&this.push("*"),b.argument&&(this.push(" "),c.plain(b.argument))}},C=B("yield");c.YieldExpression=C;var D=B("await");c.AwaitExpression=D,c.BinaryExpression=t,c.LogicalExpression=t},{"../../types":190,"lodash/lang/isNumber":470}],37:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(){this.push("any")}function f(a,b){b.plain(a.elementType),this.push("["),this.push("]")}function g(a){this.push("bool")}function h(a,b){this.push("declare class "),this._interfaceish(a,b)}function i(a,b){this.push("declare function "),b.plain(a.id),b.plain(a.id.typeAnnotation.typeAnnotation),this.semicolon()}function j(a,b){this.push("declare module "),b.plain(a.id),this.space(),b.plain(a.body)}function k(a,b){this.push("declare var "),b.plain(a.id),b.plain(a.id.typeAnnotation),this.semicolon()}function l(a,b,c){b.plain(a.typeParameters),this.push("("),b.list(a.params),a.rest&&(a.params.length&&(this.push(","),this.space()),this.push("..."),b.plain(a.rest)),this.push(")"),"ObjectTypeProperty"===c.type||"ObjectTypeCallProperty"===c.type||"DeclareFunction"===c.type?this.push(":"):(this.space(),this.push("=>")),this.space(),b.plain(a.returnType)}function m(a,b){b.plain(a.name),a.optional&&this.push("?"),this.push(":"),this.space(),b.plain(a.typeAnnotation)}function n(a,b){b.plain(a.id),b.plain(a.typeParameters)}function o(a,b){b.plain(a.id),b.plain(a.typeParameters),a["extends"].length&&(this.push(" extends "),b.join(a["extends"],{separator:", "})),this.space(),b.plain(a.body)}function p(a,b){this.push("interface "),this._interfaceish(a,b)}function q(a,b){b.join(a.types,{separator:" & "})}function r(){this.push("mixed")}function s(a,b){this.push("?"),b.plain(a.typeAnnotation)}function t(){this.push("number")}function u(a){this._stringLiteral(a.value)}function v(){this.push("string")}function w(a,b){this.push("["),b.join(a.types,{separator:", "}),this.push("]")}function x(a,b){this.push("typeof "),b.plain(a.argument)}function y(a,b){this.push("type "),b.plain(a.id),b.plain(a.typeParameters),this.space(),this.push("="),this.space(),b.plain(a.right),this.semicolon()}function z(a,b){this.push(":"),this.space(),a.optional&&this.push("?"),b.plain(a.typeAnnotation)}function A(a,b){this.push("<"),b.join(a.params,{separator:", "}),this.push(">")}function B(a,b){var c=this;this.push("{");var d=a.properties.concat(a.callProperties,a.indexers);d.length&&(this.space(),b.list(d,{separator:!1,indent:!0,iterator:function(){1!==d.length&&(c.semicolon(),c.space())}}),this.space()),this.push("}")}function C(a,b){a["static"]&&this.push("static "),b.plain(a.value)}function D(a,b){a["static"]&&this.push("static "),this.push("["),b.plain(a.id),this.push(":"),this.space(),b.plain(a.key),this.push("]"),this.push(":"),this.space(),b.plain(a.value)}function E(a,b){a["static"]&&this.push("static "),b.plain(a.key),a.optional&&this.push("?"),K.isFunctionTypeAnnotation(a.value)||(this.push(":"),this.space()),b.plain(a.value)}function F(a,b){b.plain(a.qualification),this.push("."),b.plain(a.id)}function G(a,b){b.join(a.types,{separator:" | "})}function H(a,b){this.push("("),b.plain(a.expression),b.plain(a.typeAnnotation),this.push(")")}function I(a){this.push("void")}c.__esModule=!0,c.AnyTypeAnnotation=e,c.ArrayTypeAnnotation=f,c.BooleanTypeAnnotation=g,c.DeclareClass=h,c.DeclareFunction=i,c.DeclareModule=j,c.DeclareVariable=k,c.FunctionTypeAnnotation=l,c.FunctionTypeParam=m,c.InterfaceExtends=n,c._interfaceish=o,c.InterfaceDeclaration=p,c.IntersectionTypeAnnotation=q,c.MixedTypeAnnotation=r,c.NullableTypeAnnotation=s,c.NumberTypeAnnotation=t,c.StringLiteralTypeAnnotation=u,c.StringTypeAnnotation=v,c.TupleTypeAnnotation=w,c.TypeofTypeAnnotation=x,c.TypeAlias=y,c.TypeAnnotation=z,c.TypeParameterInstantiation=A,c.ObjectTypeAnnotation=B,c.ObjectTypeCallProperty=C,c.ObjectTypeIndexer=D,c.ObjectTypeProperty=E,c.QualifiedTypeIdentifier=F,c.UnionTypeAnnotation=G,c.TypeCastExpression=H,c.VoidTypeAnnotation=I;var J=a("../../types"),K=d(J);c.ClassImplements=n,c.GenericTypeAnnotation=n,c.TypeParameterDeclaration=A},{"../../types":190}],38:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a,b){b.plain(a.name),a.value&&(this.push("="),b.plain(a.value))}function f(a){this.push(a.name)}function g(a,b){b.plain(a.namespace),this.push(":"),b.plain(a.name)}function h(a,b){b.plain(a.object),this.push("."),b.plain(a.property)}function i(a,b){this.push("{..."),b.plain(a.argument),this.push("}")}function j(a,b){this.push("{"),b.plain(a.expression),this.push("}")}function k(a,b){var c=a.openingElement;if(b.plain(c),!c.selfClosing){this.indent();for(var d=a.children,e=0;e0&&(this.push(" "),b.join(a.attributes,{separator:" "})),this.push(a.selfClosing?" />":">")}function m(a,b){this.push("")}function n(){}c.__esModule=!0,c.JSXAttribute=e,c.JSXIdentifier=f,c.JSXNamespacedName=g,c.JSXMemberExpression=h,c.JSXSpreadAttribute=i,c.JSXExpressionContainer=j,c.JSXElement=k,c.JSXOpeningElement=l,c.JSXClosingElement=m,c.JSXEmptyExpression=n;var o=a("../../types"),p=d(o)},{"../../types":190}],39:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a,b){var c=this;b.plain(a.typeParameters),this.push("("),b.list(a.params,{iterator:function(a){a.optional&&c.push("?"),b.plain(a.typeAnnotation)}}),this.push(")"),a.returnType&&b.plain(a.returnType)}function f(a,b){var c=a.value,d=a.kind,e=a.key;("method"===d||"init"===d)&&c.generator&&this.push("*"),("get"===d||"set"===d)&&this.push(d+" "),c.async&&this.push("async "),a.computed?(this.push("["),b.plain(e),this.push("]")):b.plain(e),this._params(c,b),this.space(),b.plain(c.body)}function g(a,b){a.async&&this.push("async "),this.push("function"),a.generator&&this.push("*"),a.id?(this.push(" "),b.plain(a.id)):this.space(),this._params(a,b),this.space(),b.plain(a.body)}function h(a,b){a.async&&this.push("async "),1===a.params.length&&j.isIdentifier(a.params[0])?b.plain(a.params[0]):this._params(a,b),this.push(" => ");var c=j.isObjectExpression(a.body);c&&this.push("("),b.plain(a.body),c&&this.push(")")}c.__esModule=!0,c._params=e,c._method=f,c.FunctionExpression=g,c.ArrowFunctionExpression=h;var i=a("../../types"),j=d(i);c.FunctionDeclaration=g},{"../../types":190}],40:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a,b){b.plain(a.imported),a.local&&a.local.name!==a.imported.name&&(this.push(" as "),b.plain(a.local))}function f(a,b){b.plain(a.local)}function g(a,b){b.plain(a.exported)}function h(a,b){b.plain(a.local),a.exported&&a.local.name!==a.exported.name&&(this.push(" as "),b.plain(a.exported))}function i(a,b){this.push("* as "),b.plain(a.exported)}function j(a,b){this.push("export *"),a.exported&&(this.push(" as "),b.plain(a.exported)),this.push(" from "),b.plain(a.source),this.semicolon()}function k(a,b){this.push("export "),m.call(this,a,b)}function l(a,b){this.push("export default "),m.call(this,a,b)}function m(a,b){var c=a.specifiers;if(a.declaration){var d=a.declaration;if(b.plain(d),q.isStatement(d)||q.isFunction(d)||q.isClass(d))return}else{var e=c[0],f=!1;(q.isExportDefaultSpecifier(e)||q.isExportNamespaceSpecifier(e))&&(f=!0,b.plain(c.shift()),c.length&&this.push(", ")),(c.length||!c.length&&!f)&&(this.push("{"),c.length&&(this.space(),b.join(c,{separator:", "}),this.space()),this.push("}")),a.source&&(this.push(" from "),b.plain(a.source))}this.ensureSemicolon()}function n(a,b){this.push("import "),("type"===a.importKind||"typeof"===a.importKind)&&this.push(a.importKind+" ");var c=a.specifiers;if(c&&c.length){var d=a.specifiers[0];(q.isImportDefaultSpecifier(d)||q.isImportNamespaceSpecifier(d))&&(b.plain(a.specifiers.shift()),a.specifiers.length&&this.push(", ")),a.specifiers.length&&(this.push("{"),this.space(),b.join(a.specifiers,{separator:", "}),this.space(),this.push("}")),this.push(" from ")}b.plain(a.source),this.semicolon()}function o(a,b){this.push("* as "),b.plain(a.local)}c.__esModule=!0,c.ImportSpecifier=e,c.ImportDefaultSpecifier=f,c.ExportDefaultSpecifier=g,c.ExportSpecifier=h,c.ExportNamespaceSpecifier=i,c.ExportAllDeclaration=j,c.ExportNamedDeclaration=k,c.ExportDefaultDeclaration=l,c.ImportDeclaration=n,c.ImportNamespaceSpecifier=o;var p=a("../../types"),q=d(p)},{"../../types":190}],41:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){this.keyword("with"),this.push("("),b.plain(a.object),this.push(")"),b.block(a.body)}function g(a,b){this.keyword("if"),this.push("("),b.plain(a.test),this.push(")"),this.space(),b.indentOnComments(a.consequent),a.alternate&&(this.isLast("}")&&this.space(),this.push("else "),b.indentOnComments(a.alternate))}function h(a,b){this.keyword("for"),this.push("("),b.plain(a.init),this.push(";"),a.test&&(this.space(),b.plain(a.test)),this.push(";"),a.update&&(this.space(),b.plain(a.update)),this.push(")"),b.block(a.body)}function i(a,b){this.keyword("while"),this.push("("),b.plain(a.test),this.push(")"),b.block(a.body)}function j(a,b){this.push("do "),b.plain(a.body),this.space(),this.keyword("while"),this.push("("),b.plain(a.test),this.push(");")}function k(a,b){b.plain(a.label),this.push(": "),b.plain(a.body)}function l(a,b){this.keyword("try"),b.plain(a.block),this.space(),a.handlers?b.plain(a.handlers[0]):b.plain(a.handler),a.finalizer&&(this.space(),this.push("finally "),b.plain(a.finalizer))}function m(a,b){this.keyword("catch"),this.push("("),b.plain(a.param),this.push(") "),b.plain(a.body)}function n(a,b){this.push("throw "),b.plain(a.argument),this.semicolon()}function o(a,b){this.keyword("switch"),this.push("("),b.plain(a.discriminant),this.push(")"),this.space(),this.push("{"),b.sequence(a.cases,{indent:!0,addNewlines:function(b,c){return b||a.cases[a.cases.length-1]!==c?void 0:-1}}),this.push("}")}function p(a,b){a.test?(this.push("case "),b.plain(a.test),this.push(":")):this.push("default:"),a.consequent.length&&(this.newline(),b.sequence(a.consequent,{indent:!0}))}function q(){this.push("debugger;")}function r(a,b,c){this.push(a.kind+" ");var d=!1;if(!w.isFor(c))for(var e=a.declarations,f=0;fe;e++)b.plain(c[e]),d>e+1&&(this.push("${ "),b.plain(a.expressions[e]),this.push(" }"));this._push("`")}c.__esModule=!0,c.TaggedTemplateExpression=d,c.TemplateElement=e,c.TemplateLiteral=f},{}],43:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a){this.push(a.name)}function g(a,b){this.push("..."),b.plain(a.argument)}function h(a,b){var c=a.properties;c.length?(this.push("{"),this.space(),b.list(c,{indent:!0}),this.space(),this.push("}")):this.push("{}")}function i(a,b){if(b.list(a.decorators,{separator:""}),a.method||"get"===a.kind||"set"===a.kind)this._method(a,b);else{if(a.computed)this.push("["),b.plain(a.key),this.push("]");else{if(p.isAssignmentPattern(a.value)&&p.isIdentifier(a.key)&&a.key.name===a.value.left.name)return void b.plain(a.value);if(b.plain(a.key),a.shorthand&&p.isIdentifier(a.key)&&p.isIdentifier(a.value)&&a.key.name===a.value.name)return}this.push(":"),this.space(),b.plain(a.value)}}function j(a,b){var c=a.elements,d=c.length;this.push("[");for(var e=0;e0&&this.space(),b.plain(f),d-1>e&&this.push(",")):this.push(",")}this.push("]")}function k(a,b,c){var d=a.value,e=typeof d;if("string"===e)this._stringLiteral(d);else if("number"===e){var f=a.raw;d!==+f||"."===f[f.length-1]||/^0[bo]/i.test(f)||(d=f),d+="",n["default"](+d)&&p.isMemberExpression(c,{object:a})&&!q.test(d)&&(d+="."),this.push(d)}else"boolean"===e?this.push(d?"true":"false"):a.regex?this.push("/"+a.regex.pattern+"/"+a.regex.flags):null===d&&this.push("null")}function l(a){a=JSON.stringify(a),a=a.replace(/[\u000A\u000D\u2028\u2029]/g,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}),"single"===this.format.quotes&&(a=a.slice(1,-1),a=a.replace(/\\"/g,'"'),a=a.replace(/'/g,"\\'"),a="'"+a+"'"),this.push(a)}c.__esModule=!0,c.Identifier=f,c.RestElement=g,c.ObjectExpression=h,c.Property=i,c.ArrayExpression=j,c.Literal=k,c._stringLiteral=l;var m=a("is-integer"),n=e(m),o=a("../../types"),p=d(o);c.SpreadElement=g,c.SpreadProperty=g,c.ObjectPattern=h,c.ArrayPattern=j;var q=/e/i},{"../../types":190,"is-integer":367}],44:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var g=function(){function a(a,b){for(var c=0;c1e5,g.compact&&console.error("[BABEL] "+u.get("codeGeneratorDeopt",c.filename,"100KB"))),g.compact&&(g.indent.adjustMultilineComment=!1),g},b.findCommonStringDelimiter=function(a,b){for(var c={single:0,"double":0},d=0,e=0;e=3)break}}return c.single>c["double"]?"single":"double"},b.prototype.generate=function(){var a=this.ast;if(this.print(a),a.comments){for(var b=[],c=a.comments,d=0;dg&&c.push(d.separator)}},g=0;g=0||a.value.indexOf("@preserve")>=0?!0:this.format.comments},b.prototype._printComments=function(a){if(a&&a.length)for(var b=a,c=0;cf)return!0;if(d===f&&b.right===a)return!0}}function j(a,b){if("in"===a.operator){if(u.isVariableDeclarator(b))return!0;if(u.isFor(b))return!0}}function k(a,b){return u.isForStatement(b)?!1:u.isExpressionStatement(b)&&b.expression===a?!1:!0}function l(a,b){return u.isBinary(b)||u.isUnaryLike(b)||u.isCallExpression(b)||u.isMemberExpression(b)||u.isNewExpression(b)||u.isConditionalExpression(b)||u.isYieldExpression(b)}function m(a,b){return u.isExpressionStatement(b)}function n(a,b){return u.isMemberExpression(b)&&b.object===a}function o(a,b){return u.isExpressionStatement(b)?!0:u.isMemberExpression(b)&&b.object===a?!0:u.isCallExpression(b)&&b.callee===a?!0:void 0}function p(a,b){return u.isUnaryLike(b)?!0:u.isBinary(b)?!0:(u.isCallExpression(b)||u.isNewExpression(b))&&b.callee===a?!0:u.isConditionalExpression(b)&&b.test===a?!0:u.isMemberExpression(b)&&b.object===a?!0:!1}function q(a){return u.isObjectPattern(a.left)?!0:p.apply(void 0,arguments)}c.__esModule=!0,c.NullableTypeAnnotation=f,c.UpdateExpression=g,c.ObjectExpression=h,c.Binary=i,c.BinaryExpression=j,c.SequenceExpression=k,c.YieldExpression=l,c.ClassExpression=m,c.UnaryLike=n,c.FunctionExpression=o,c.ConditionalExpression=p,c.AssignmentExpression=q;var r=a("lodash/collection/each"),s=e(r),t=a("../../types"),u=d(t),v={};s["default"]([["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],function(a,b){s["default"](a,function(a){v[a]=b})}),c.FunctionTypeAnnotation=f},{"../../types":190,"lodash/collection/each":379}],47:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}c.__esModule=!0;var e=function(){function a(b,c){d(this,a),this.generator=b,this.parent=c}return a.prototype.plain=function(a,b){return this.generator.print(a,this.parent,b)},a.prototype.sequence=function(a){var b=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return b.statement=!0,this.generator.printJoin(this,a,b)},a.prototype.join=function(a,b){return this.generator.printJoin(this,a,b)},a.prototype.list=function(a){var b=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return null==b.separator&&(b.separator=",", -this.generator.format.compact||(b.separator+=" ")),this.join(a,b)},a.prototype.block=function(a){return this.generator.printBlock(this,a)},a.prototype.indentOnComments=function(a){return this.generator.printAndIndentOnComments(this,a)},a}();c["default"]=e,b.exports=c["default"]},{}],48:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a){var b=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return p.isMemberExpression(a)?(f(a.object,b),a.computed&&f(a.property,b)):p.isBinary(a)||p.isAssignmentExpression(a)?(f(a.left,b),f(a.right,b)):p.isCallExpression(a)?(b.hasCall=!0,f(a.callee,b)):p.isFunction(a)?b.hasFunction=!0:p.isIdentifier(a)&&(b.hasHelper=b.hasHelper||g(a.callee)),b}function g(a){return p.isMemberExpression(a)?g(a.object)||g(a.property):p.isIdentifier(a)?"require"===a.name||"_"===a.name[0]:p.isCallExpression(a)?g(a.callee):p.isBinary(a)||p.isAssignmentExpression(a)?p.isIdentifier(a.left)&&g(a.left)||g(a.right):!1}function h(a){return p.isLiteral(a)||p.isObjectExpression(a)||p.isArrayExpression(a)||p.isIdentifier(a)||p.isMemberExpression(a)}var i=a("lodash/lang/isBoolean"),j=e(i),k=a("lodash/collection/each"),l=e(k),m=a("lodash/collection/map"),n=e(m),o=a("../../types"),p=d(o);c.nodes={AssignmentExpression:function(a){var b=f(a.right);return b.hasCall&&b.hasHelper||b.hasFunction?{before:b.hasFunction,after:!0}:void 0},SwitchCase:function(a,b){return{before:a.consequent.length||b.cases[0]===a}},LogicalExpression:function(a){return p.isFunction(a.left)||p.isFunction(a.right)?{after:!0}:void 0},Literal:function(a){return"use strict"===a.value?{after:!0}:void 0},CallExpression:function(a){return p.isFunction(a.callee)||g(a)?{before:!0,after:!0}:void 0},VariableDeclaration:function(a){for(var b=0;b=c&&(a-=c),a}c.__esModule=!0;var f=function(){function a(b){d(this,a),this.tokens=b,this.used={},this._lastFoundIndex=0}return a.prototype.getNewlinesBefore=function(a){for(var b,c,d=this.tokens,f=0;ff;f++)"undefined"==typeof this.used[f]&&(this.used[f]=!0,e++);return e},a}();c["default"]=f,b.exports=c["default"]},{}],52:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){var b=l["default"].matchToToken(a);if("name"===b.type&&n["default"].keyword.isReservedWordES6(b.value))return"keyword";if("punctuator"===b.type)switch(b.value){case"{":case"}":return"curly";case"(":case")":return"parens";case"[":case"]":return"square"}return b.type}function f(a){return a.replace(l["default"],function(){for(var a=arguments.length,b=Array(a),c=0;a>c;c++)b[c]=arguments[c];var d=e(b),f=q[d];return f?b[0].split(r).map(function(a){return f(a)}).join("\n"):b[0]})}c.__esModule=!0;var g=a("line-numbers"),h=d(g),i=a("repeating"),j=d(i),k=a("js-tokens"),l=d(k),m=a("esutils"),n=d(m),o=a("chalk"),p=d(o),q={string:p["default"].red,punctuator:p["default"].bold,curly:p["default"].green,parens:p["default"].blue.bold,square:p["default"].yellow,keyword:p["default"].cyan,number:p["default"].magenta,regex:p["default"].magenta,comment:p["default"].grey,invalid:p["default"].inverse},r=/\r\n|[\n\r\u2028\u2029]/;c["default"]=function(a,b,c){var d=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];c=Math.max(c,0),d.highlightCode&&p["default"].supportsColor&&(a=f(a)),a=a.split(r);var e=Math.max(b-3,0),g=Math.min(a.length,b+3);return b||c||(e=0,g=a.length),h["default"](a.slice(e,g),{start:e+1,before:" ",after:" | ",transform:function(a){a.number===b&&(c&&(a.line+="\n"+a.before+j["default"](" ",a.width)+a.after+j["default"](" ",c-1)+"^"),a.before=a.before.replace(/^./,">"))}}).join("\n")},b.exports=c["default"]},{chalk:253,esutils:361,"js-tokens":369,"line-numbers":372,repeating:523}],53:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var e=a("lodash/object/merge"),f=d(e);c["default"]=function(a,b){return a&&b?f["default"](a,b,function(a,b){if(b&&Array.isArray(a)){for(var c=a.slice(0),d=b,e=Array.isArray(d),f=0,d=e?d:d[Symbol.iterator]();;){var g;if(e){if(f>=d.length)break;g=d[f++]}else{if(f=d.next(),f.done)break;g=f.value}var h=g;a.indexOf(h)<0&&c.push(h)}return c}}):void 0},b.exports=c["default"]},{"lodash/object/merge":483}],54:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}c.__esModule=!0;var e=a("../types"),f=d(e);c["default"]=function(a,b,c){if(a&&"Program"===a.type)return f.file(a,b||[],c||[]);throw new Error("Not a valid ast?")},b.exports=c["default"]},{"../types":190}],55:[function(a,b,c){"use strict";c.__esModule=!0,c["default"]=function(){return Object.create(null)},b.exports=c["default"]},{}],56:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var f=a("./normalize-ast"),g=e(f),h=a("estraverse"),i=e(h),j=a("babylon"),k=d(j);c["default"]=function(a){var b=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],c=[],d=[],e=[],f={allowImportExportEverywhere:b.looseModules,allowReturnOutsideFunction:b.looseModules,allowHashBang:!0,ecmaVersion:6,strictMode:b.strictMode,sourceType:b.sourceType,locations:!0,features:b.features||{},plugins:b.plugins||{},onToken:e,ranges:!0};f.onToken=function(a){e.push(a),c.push(a)},f.onComment=function(a,b,e,f,g,h){var i={type:a?"CommentBlock":"CommentLine",value:b,start:e,end:f,loc:new k.SourceLocation(this,g,h),range:[e,f]};c.push(i),d.push(i)},b.nonStandard&&(f.plugins.jsx=!0,f.plugins.flow=!0);var h=k.parse(a,f);return i["default"].attachComments(h,d,e),h=g["default"](h,d,c)},b.exports=c["default"]},{"./normalize-ast":54,babylon:233,estraverse:356}],57:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){for(var b=arguments.length,c=Array(b>1?b-1:0),d=1;b>d;d++)c[d-1]=arguments[d];var e=i[a];if(!e)throw new ReferenceError("Unknown message "+JSON.stringify(a));return c=f(c),e.replace(/\$(\d+)/g,function(a,b){return c[--b]})}function f(a){return a.map(function(a){if(null!=a&&a.inspect)return a.inspect();try{return JSON.stringify(a)||a+""}catch(b){return h.inspect(a)}})}c.__esModule=!0,c.get=e,c.parseArgs=f;var g=a("util"),h=d(g),i={tailCallReassignmentDeopt:"Function reference has been reassigned, so it will probably be dereferenced, therefore we can't optimise this with confidence",JSXNamespacedTags:"Namespace tags are not supported. ReactJSX is not XML.",classesIllegalBareSuper:"Illegal use of bare super",classesIllegalSuperCall:"Direct super call is illegal in non-constructor, use super.$1() instead",scopeDuplicateDeclaration:"Duplicate declaration $1",settersNoRest:"Setters aren't allowed to have a rest",noAssignmentsInForHead:"No assignments allowed in for-in/of head",expectedMemberExpressionOrIdentifier:"Expected type MemberExpression or Identifier",invalidParentForThisNode:"We don't know how to handle this node within the current parent - please open an issue",readOnly:"$1 is read-only",unknownForHead:"Unknown node type $1 in ForStatement",didYouMean:"Did you mean $1?",codeGeneratorDeopt:"Note: The code generator has deoptimised the styling of $1 as it exceeds the max of $2.",missingTemplatesDirectory:"no templates directory - this is most likely the result of a broken `npm publish`. Please report to https://github.com/babel/babel/issues",unsupportedOutputType:"Unsupported output type $1",illegalMethodName:"Illegal method name $1",lostTrackNodePath:"We lost track of this node's position, likely because the AST was directly manipulated",modulesIllegalExportName:"Illegal export $1",modulesDuplicateDeclarations:"Duplicate module declarations with the same source but in different scopes",undeclaredVariable:"Reference to undeclared variable $1",undeclaredVariableType:"Referencing a type alias outside of a type annotation",undeclaredVariableSuggestion:"Reference to undeclared variable $1 - did you mean $2?",traverseNeedsParent:"You must pass a scope and parentPath unless traversing a Program/File got a $1 node",traverseVerifyRootFunction:"You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?",traverseVerifyVisitorProperty:"You passed `traverse()` a visitor object with the property $1 that has the invalid property $2",traverseVerifyNodeType:"You gave us a visitor for the node type $1 but it's not a valid type",pluginIllegalKind:"Illegal kind $1 for plugin $2",pluginIllegalPosition:"Illegal position $1 for plugin $2",pluginKeyCollision:"The plugin $1 collides with another of the same name",pluginNotTransformer:"The plugin $1 didn't export a Plugin instance",pluginUnknown:"Unknown plugin $1",pluginNotFile:"Plugin $1 is resolving to a different Babel version than what is performing the transformation.",pluginInvalidProperty:"Plugin $1 provided an invalid property of $2.",pluginInvalidPropertyVisitor:'Define your visitor methods inside a `visitor` property like so:\n\n new Plugin("foobar", {\n visitor: {\n // define your visitor methods here!\n }\n });\n'};c.MESSAGES=i},{util:27}],58:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}var f=a("estraverse"),g=e(f),h=a("lodash/object/extend"),i=e(h),j=a("./types"),k=d(j);i["default"](g["default"].VisitorKeys,k.VISITOR_KEYS)},{"./types":190,estraverse:356,"lodash/object/extend":479}],59:[function(a,b,c){(function(b){"use strict";if(a("core-js/shim"),a("regenerator/runtime"),b._babelPolyfill)throw new Error("only one instance of babel/polyfill is allowed");b._babelPolyfill=!0}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"core-js/shim":344,"regenerator/runtime":517}],60:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){var c=[],d=u.functionExpression(null,[u.identifier("global")],u.blockStatement(c)),e=u.program([u.expressionStatement(u.callExpression(d,[o.template("helper-self-global")]))]);return c.push(u.variableDeclaration("var",[u.variableDeclarator(a,u.assignmentExpression("=",u.memberExpression(u.identifier("global"),a),u.objectExpression([])))])),b(c),e}function g(a,b){var c=[];c.push(u.variableDeclaration("var",[u.variableDeclarator(a,u.identifier("global"))])),b(c);var d=o.template("umd-commonjs-strict",{FACTORY_PARAMETERS:u.identifier("global"),BROWSER_ARGUMENTS:u.assignmentExpression("=",u.memberExpression(u.identifier("root"),a),u.objectExpression({})),COMMON_ARGUMENTS:u.identifier("exports"),AMD_ARGUMENTS:u.arrayExpression([u.literal("exports")]),FACTORY_BODY:c,UMD_ROOT:u.identifier("this")});return u.program([d])}function h(a,b){var c=[];return c.push(u.variableDeclaration("var",[u.variableDeclarator(a,u.objectExpression({}))])),b(c),u.program(c)}function i(a,b,c){s["default"](q["default"].helpers,function(d){if(!c||-1!==c.indexOf(d)){var e=u.identifier(u.toIdentifier(d));a.push(u.expressionStatement(u.assignmentExpression("=",u.memberExpression(b,e),o.template("helper-"+d))))}})}c.__esModule=!0;var j=a("../generation"),k=e(j),l=a("../messages"),m=d(l),n=a("../util"),o=d(n),p=a("../transformation/file"),q=e(p),r=a("lodash/collection/each"),s=e(r),t=a("../types"),u=d(t);c["default"]=function(a){var b,c=arguments.length<=1||void 0===arguments[1]?"global":arguments[1],d=u.identifier("babelHelpers"),e=function(b){return i(b,d,a)},j={global:f,umd:g,"var":h}[c];if(!j)throw new Error(m.get("unsupportedOutputType",c));return b=j(d,e),k["default"](b).code},b.exports=c["default"]},{"../generation":44,"../messages":57,"../transformation/file":61,"../types":190,"../util":193,"lodash/collection/each":379}],61:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}c.__esModule=!0;var g=function(){function a(a,b){for(var c=0;c=0)){var g=f.plugin.metadata.group;if(f.canTransform()&&g){for(var h=[],i=a,j=0;j=0||(j.push(a),console.error(a)))},a.prototype.verbose=function(a){h.enabled&&h(this._buildMessage(a))},a.prototype.debug=function(a){i.enabled&&i(this._buildMessage(a))},a.prototype.deopt=function(a,b){this.debug(b)},a}();c["default"]=k,b.exports=c["default"]},{"debug/node":346}],63:[function(a,b,c){b.exports={filename:{type:"filename",description:"filename to use when reading from stdin - this will be used in source-maps, errors etc","default":"unknown",shorthand:"f"},filenameRelative:{hidden:!0,type:"string"},inputSourceMap:{hidden:!0},extra:{hidden:!0,"default":{}},env:{hidden:!0,"default":{}},moduleId:{description:"specify a custom name for module ids",type:"string"},getModuleId:{hidden:!0},retainLines:{type:"boolean","default":!1,description:"retain line numbers - will result in really ugly code"},nonStandard:{type:"boolean","default":!0,description:"enable/disable support for JSX and Flow (on by default)"},experimental:{type:"boolean",description:"allow use of experimental transformers","default":!1},highlightCode:{description:"enable/disable ANSI syntax highlighting of code frames (on by default)",type:"boolean","default":!0},suppressDeprecationMessages:{type:"boolean","default":!1,hidden:!0},resolveModuleSource:{hidden:!0},stage:{description:"ECMAScript proposal stage version to allow [0-4]",shorthand:"e",type:"number","default":2},blacklist:{type:"transformerList",description:"blacklist of transformers to NOT use",shorthand:"b","default":[]},whitelist:{type:"transformerList",optional:!0,description:"whitelist of transformers to ONLY use",shorthand:"l"},optional:{type:"transformerList",description:"list of optional transformers to enable","default":[]},modules:{type:"string",description:"module formatter type to use [common]","default":"common",shorthand:"m"},moduleIds:{type:"boolean","default":!1,shorthand:"M",description:"insert an explicit id for modules"},loose:{type:"transformerList",description:"list of transformers to enable loose mode ON",shorthand:"L"},jsxPragma:{type:"string",description:"custom pragma to use with JSX (same functionality as @jsx comments)","default":"React.createElement",shorthand:"P"},plugins:{type:"list",description:"","default":[]},ignore:{type:"list",description:"list of glob paths to **not** compile","default":[]},only:{type:"list",description:"list of glob paths to **only** compile"},code:{hidden:!0,"default":!0,type:"boolean"},metadata:{hidden:!0,"default":!0,type:"boolean"},ast:{hidden:!0,"default":!0,type:"boolean"},comments:{type:"boolean","default":!0,description:"strip/output comments in generated output (on by default)"},shouldPrintComment:{hidden:!0,description:"optional callback to control whether a comment should be inserted, when this is used the comments option is ignored"},compact:{type:"booleanString","default":"auto",description:"do not include superfluous whitespace characters and line terminators [true|false|auto]"},keepModuleIdExtensions:{type:"boolean",description:"keep extensions when generating module ids","default":!1,shorthand:"k"},auxiliaryComment:{deprecated:"renamed to auxiliaryCommentBefore",shorthand:"a",alias:"auxiliaryCommentBefore"},auxiliaryCommentBefore:{type:"string","default":"",description:"attach a comment before all helper declarations and auxiliary code"},auxiliaryCommentAfter:{type:"string","default":"",description:"attach a comment after all helper declarations and auxiliary code"},externalHelpers:{type:"boolean","default":!1,shorthand:"r",description:"uses a reference to `babelHelpers` instead of placing helpers at the top of your code."},metadataUsedHelpers:{deprecated:"Not required anymore as this is enabled by default",type:"boolean","default":!1,hidden:!0},sourceMap:{alias:"sourceMaps",hidden:!0},sourceMaps:{type:"booleanString",description:"[true|false|inline]","default":!1,shorthand:"s"},sourceMapName:{alias:"sourceMapTarget",description:"DEPRECATED - Please use sourceMapTarget"},sourceMapTarget:{type:"string",description:"set `file` on returned source map"},sourceFileName:{type:"string",description:"set `sources[0]` on returned source map"},sourceRoot:{type:"filename",description:"the root from which all sources are relative"},moduleRoot:{type:"filename",description:"optional prefix for the AMD module formatter that will be prepend to the filename on module definitions"},breakConfig:{type:"boolean","default":!1,hidden:!0,description:"stop trying to load .babelrc files"},babelrc:{description:"Specify a custom list of babelrc files to use",type:"list"}}},{}],64:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a,b,c){var d=k["default"][a],e=d&&i[d.type]; -return e&&e.validate?e.validate(a,b,c):b}function g(){var a=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];for(var b in a){var c=a[b];if(null!=c){var d=k["default"][b];if(d){var e=i[d.type];e&&(c=e(c)),a[b]=c}}}return a}c.__esModule=!0,c.validateOption=f,c.normaliseOptions=g;var h=a("./parsers"),i=e(h),j=a("./config"),k=d(j);c.config=k["default"]},{"./config":63,"./parsers":66}],65:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a){var b=y[a];return null!=b?b:y[a]=n["default"].sync(a)}c.__esModule=!0;var h=a("./index"),i=a("strip-json-comments"),j=e(i),k=a("path-is-absolute"),l=e(k),m=a("path-exists"),n=e(m),o=a("lodash/lang/clone"),p=e(o),q=a("../../../helpers/merge"),r=e(q),s=a("./config"),t=e(s),u=a("path"),v=e(u),w=a("fs"),x=e(w),y={},z={},A=".babelignore",B=".babelrc",C="package.json",D=function(){function a(b,c){f(this,a),this.resolvedConfigs=[],this.options=a.createBareOptions(),this.pipeline=c,this.log=b}return a.createBareOptions=function(){var a={};for(var b in t["default"]){var c=t["default"][b];a[b]=p["default"](c["default"])}return a},a.prototype.addConfig=function(a,b){if(!(this.resolvedConfigs.indexOf(a)>=0)){var c,d=x["default"].readFileSync(a,"utf8");try{c=z[d]=z[d]||JSON.parse(j["default"](d)),b&&(c=c[b])}catch(e){throw e.message=a+": "+e.message,e}this.mergeOptions(c,a),this.resolvedConfigs.push(a)}},a.prototype.mergeOptions=function(a){var b=arguments.length<=1||void 0===arguments[1]?"foreign":arguments[1];if(a){for(var c in a)if("_"!==c[0]){var d=t["default"][c];d||this.log.error("Unknown option: "+b+"."+c,ReferenceError)}h.normaliseOptions(a),r["default"](this.options,a)}},a.prototype.addIgnoreConfig=function(a){var b=x["default"].readFileSync(a,"utf8"),c=b.split("\n");c=c.map(function(a){return a.replace(/#(.*?)$/,"").trim()}).filter(function(a){return!!a}),console.log(c),this.mergeOptions({ignore:c},a)},a.prototype.findConfigs=function(a){if(a)for(l["default"](a)||(a=v["default"].join(d.cwd(),a));a!==(a=v["default"].dirname(a));){if(this.options.breakConfig)return;var b=v["default"].join(a,B);g(b)&&this.addConfig(b);var c=v["default"].join(a,C);g(c)&&this.addConfig(c,"babel");var e=v["default"].join(a,A);g(e)&&this.addIgnoreConfig(e)}},a.prototype.normaliseOptions=function(){var a=this.options;for(var b in t["default"]){var c=t["default"][b],d=a[b];(d||!c.optional)&&(this.log&&d&&c.deprecated&&this.log.deprecate("Deprecated option "+b+": "+c.deprecated),this.pipeline&&d&&(d=h.validateOption(b,d,this.pipeline)),c.alias?a[c.alias]=a[c.alias]||d:a[b]=d)}},a.prototype.init=function(a){if(this.mergeOptions(a,"direct"),a.babelrc)for(var b=a.babelrc,c=0;c=0||b.indexOf(!0)>=0)&&(b=Object.keys(c.transformers)),c._ensureTransformerNames(a,b)};var o=l["default"];c.filename=o},{"../../../util":193,slash:527}],67:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}c.__esModule=!0;var g=function(){function a(a,b){for(var c=0;c=3&&(b._prettyCall=!0),o.inherits(b,a)}},b},b.exports=c["default"]},{"../../messages":57,"../../types":190,"./react":77,esutils:361,"lodash/lang/isString":474}],71:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}c.__esModule=!0;var e=a("../../types"),f=d(e),g={enter:function(a,b,c,d){(this.isThisExpression()||this.isReferencedIdentifier({name:"arguments"}))&&(d.found=!0,this.stop())},Function:function(){this.skip()}};c["default"]=function(a,b){var c=f.functionExpression(null,[],a.body,a.generator,a.async),d=c,e=[],h={found:!1};b.traverse(a,g,h),h.found&&(d=f.memberExpression(c,f.identifier("apply")),e=[f.thisExpression(),f.identifier("arguments")]);var i=f.callExpression(d,e);return a.generator&&(i=f.yieldExpression(i,!0)),f.returnStatement(i)},b.exports=c["default"]},{"../../types":190}],72:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b,c,d){var e=p.toKeyAlias(b),f={};if(n["default"](a,e)&&(f=a[e]),a[e]=f,f._inherits=f._inherits||[],f._inherits.push(b),f._key=b.key,b.computed&&(f._computed=!0),b.decorators){var g=f.decorators=f.decorators||p.arrayExpression([]);g.elements=g.elements.concat(b.decorators.map(function(a){return a.expression}).reverse())}if(f.value||f.initializer)throw d.errorWithNode(b,"Key conflict with sibling node");return b.value&&("init"===b.kind&&(c="value"),"get"===b.kind&&(c="get"),"set"===b.kind&&(c="set"),p.inheritsComments(b.value,b),f[c]=b.value),f}function g(a){for(var b in a)if(a[b]._computed)return!0;return!1}function h(a){for(var b=p.arrayExpression([]),c=0;ch;h++)g.push(d.generateUidIdentifier("x"));return f}d.rename(c.name)}b.id=c,d.getProgramParent().references[c.name]=!0},r=function(a,b,c){var d={selfAssignment:!1,selfReference:!1,outerDeclar:c.getBindingIdentifier(b),references:[],name:b},e=c.getOwnBinding(b);return e?"param"===e.kind&&(d.selfReference=!0):(d.outerDeclar||c.hasGlobal(b))&&c.traverse(a,p,d),d}},{"../../types":190,"../../util":193,"./get-function-arity":74}],77:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&/^[a-z]|\-/.test(a)}function f(a,b){for(var c=a.value.split(/\r\n|\n|\r/),d=0,e=0;e=0}function g(a,b){var c=a.regex.flags.split("");a.regex.flags.indexOf(b)<0||(i["default"](c,b),a.regex.flags=c.join(""))}c.__esModule=!0,c.is=f,c.pullFlag=g;var h=a("lodash/array/pull"),i=e(h),j=a("../../types"),k=d(j)},{"../../types":190,"lodash/array/pull":376}],79:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}c.__esModule=!0;var e=a("../../types"),f=d(e),g={Function:function(){this.skip()},AwaitExpression:function(a){a.type="YieldExpression",a.all&&(a.all=!1,a.argument=f.callExpression(f.memberExpression(f.identifier("Promise"),f.identifier("all")),[a.argument]))}},h={ReferencedIdentifier:function(a,b,c,d){var e=d.id.name;return a.name===e&&c.bindingIdentifierEquals(e,d.id)?d.ref=d.ref||c.generateUidIdentifier(e):void 0}};c["default"]=function(a,b){var c=a.node;c.async=!1,c.generator=!0,a.traverse(g,j);var d=f.callExpression(b,[c]),e=c.id;if(c.id=null,f.isFunctionDeclaration(c)){var i=f.variableDeclaration("let",[f.variableDeclarator(e,d)]);return i._blockHoist=!0,i}if(e){var j={id:e};if(a.traverse(h,j),j.ref)return a.scope.parent.push({id:j.ref}),f.assignmentExpression("=",j.ref,d)}return d},b.exports=c["default"]},{"../../types":190}],80:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){return k.isSuper(a)?k.isMemberExpression(b,{computed:!1})?!1:k.isCallExpression(b,{callee:a})?!1:!0:!1}function g(a){return k.isMemberExpression(a)&&k.isSuper(a.object)}c.__esModule=!0;var h=a("../../messages"),i=d(h),j=a("../../types"),k=d(j),l={enter:function(a,b,c,d){var e=d.topLevel,f=d.self;if(k.isFunction(a)&&!k.isArrowFunctionExpression(a))return f.traverseLevel(this,!1),this.skip();if(k.isProperty(a,{method:!0})||k.isMethodDefinition(a))return this.skip();var g=e?k.thisExpression:f.getThisReference.bind(f),h=f.specHandle;f.isLoose&&(h=f.looseHandle);var i=h.call(f,this,g);return i&&(this.hasSuper=!0),i!==!0?i:void 0}},m=function(){function a(b){var c=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];e(this,a),this.topLevelThisReference=b.topLevelThisReference,this.methodPath=b.methodPath,this.methodNode=b.methodNode,this.superRef=b.superRef,this.isStatic=b.isStatic,this.hasSuper=!1,this.inClass=c,this.isLoose=b.isLoose,this.scope=b.scope,this.file=b.file,this.opts=b}return a.prototype.getObjectRef=function(){return this.opts.objectRef||this.opts.getObjectRef()},a.prototype.setSuperProperty=function(a,b,c,d){return k.callExpression(this.file.addHelper("set"),[k.callExpression(k.memberExpression(k.identifier("Object"),k.identifier("getPrototypeOf")),[this.isStatic?this.getObjectRef():k.memberExpression(this.getObjectRef(),k.identifier("prototype"))]),c?a:k.literal(a.name),b,d])},a.prototype.getSuperProperty=function(a,b,c){return k.callExpression(this.file.addHelper("get"),[k.callExpression(k.memberExpression(k.identifier("Object"),k.identifier("getPrototypeOf")),[this.isStatic?this.getObjectRef():k.memberExpression(this.getObjectRef(),k.identifier("prototype"))]),b?a:k.literal(a.name),c])},a.prototype.replace=function(){this.traverseLevel(this.methodPath.get("value"),!0)},a.prototype.traverseLevel=function(a,b){var c={self:this,topLevel:b};a.traverse(l,c)},a.prototype.getThisReference=function(){if(this.topLevelThisReference)return this.topLevelThisReference;var a=this.topLevelThisReference=this.scope.generateUidIdentifier("this");return this.methodNode.value.body.body.unshift(k.variableDeclaration("var",[k.variableDeclarator(this.topLevelThisReference,k.thisExpression())])),a},a.prototype.getLooseSuperProperty=function(a,b){var c=this.methodNode,d=c.key,e=this.superRef||k.identifier("Function");return b.property===a?void 0:k.isCallExpression(b,{callee:a})?(b.arguments.unshift(k.thisExpression()),"constructor"===d.name?2===b.arguments.length&&k.isSpreadElement(b.arguments[1])&&k.isIdentifier(b.arguments[1].argument,{name:"arguments"})?(b.arguments[1]=b.arguments[1].argument,k.memberExpression(e,k.identifier("apply"))):k.memberExpression(e,k.identifier("call")):(a=e,c["static"]||(a=k.memberExpression(a,k.identifier("prototype"))),a=k.memberExpression(a,d,c.computed),k.memberExpression(a,k.identifier("call")))):k.isMemberExpression(b)&&!c["static"]?k.memberExpression(e,k.identifier("prototype")):e},a.prototype.looseHandle=function(a,b){var c=a.node;if(a.isSuper())return this.getLooseSuperProperty(c,a.parent);if(a.isCallExpression()){var d=c.callee;if(!k.isMemberExpression(d))return;if(!k.isSuper(d.object))return;return k.appendToMemberExpression(d,k.identifier("call")),c.arguments.unshift(b()),!0}},a.prototype.specHandleAssignmentExpression=function(a,b,c,d){return"="===c.operator?this.setSuperProperty(c.left.property,c.right,c.left.computed,d()):(a=a||b.scope.generateUidIdentifier("ref"),[k.variableDeclaration("var",[k.variableDeclarator(a,c.left)]),k.expressionStatement(k.assignmentExpression("=",c.left,k.binaryExpression(c.operator[0],a,c.right)))])},a.prototype.specHandle=function(a,b){var c,d,e,h,j=this.methodNode,l=a.parent,m=a.node;if(f(m,l))throw a.errorWithNode(i.get("classesIllegalBareSuper"));if(k.isCallExpression(m)){var n=m.callee;if(k.isSuper(n)){if(c=j.key,d=j.computed,e=m.arguments,"constructor"!==j.key.name||!this.inClass){var o=j.key.name||"METHOD_NAME";throw this.file.errorWithNode(m,i.get("classesIllegalSuperCall",o))}}else g(n)&&(c=n.property,d=n.computed,e=m.arguments)}else if(k.isMemberExpression(m)&&k.isSuper(m.object))c=m.property,d=m.computed;else{if(k.isUpdateExpression(m)&&g(m.argument)){var p=k.binaryExpression(m.operator[0],m.argument,k.literal(1));if(m.prefix)return this.specHandleAssignmentExpression(null,a,p,b);var q=a.scope.generateUidIdentifier("ref");return this.specHandleAssignmentExpression(q,a,p,b).concat(k.expressionStatement(q))}if(k.isAssignmentExpression(m)&&g(m.left))return this.specHandleAssignmentExpression(null,a,m,b)}if(c){h=b();var r=this.getSuperProperty(c,d,h);return e?1===e.length&&k.isSpreadElement(e[0])?k.callExpression(k.memberExpression(r,k.identifier("apply")),[h,e[0].argument]):k.callExpression(k.memberExpression(r,k.identifier("call")),[h].concat(e)):r}},a}();c["default"]=m,b.exports=c["default"]},{"../../messages":57,"../../types":190}],81:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var f=a("./pipeline"),g=e(f),h=a("./transformers"),i=e(h),j=a("./transformers/deprecated"),k=e(j),l=a("./transformers/aliases"),m=e(l),n=a("./transformers/filters"),o=d(n),p=new g["default"];for(var q in i["default"]){var r=i["default"][q];if("object"==typeof r){var s=r.metadata=r.metadata||{};s.group=s.group||"builtin-basic"}}p.addTransformers(i["default"]),p.addDeprecated(k["default"]),p.addAliases(m["default"]),p.addFilter(o.internal),p.addFilter(o.blacklist),p.addFilter(o.whitelist),p.addFilter(o.stage),p.addFilter(o.optional);var t=p.transform.bind(p);t.fromAst=p.transformFromAst.bind(p),t.pipeline=p,c["default"]=t,b.exports=c["default"]},{"./pipeline":94,"./transformers":137,"./transformers/aliases":98,"./transformers/deprecated":99,"./transformers/filters":136}],82:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}c.__esModule=!0;var g=a("../../messages"),h=e(g),i=a("./lib/remaps"),j=d(i),k=a("lodash/object/extend"),l=d(k),m=a("../../helpers/object"),n=d(m),o=a("../../util"),p=e(o),q=a("../../types"),r=e(q),s={ModuleDeclaration:{enter:function(a,b,c,d){a.source&&(a.source.value=d.file.resolveModuleSource(a.source.value),d.addScope(this))}},ImportDeclaration:{exit:function(a,b,c,d){d.hasLocalImports=!0;var e=[],f=[];d.metadata.imports.push({source:a.source.value,imported:f,specifiers:e});for(var g=this.get("specifiers"),h=0;h=0},a.prototype.transform=function(){this.remapAssignments()},a.prototype.doDefaultExportInterop=function(a){return(r.isExportDefaultDeclaration(a)||r.isSpecifierDefault(a))&&!this.noInteropRequireExport&&!this.hasNonDefaultExports},a.prototype.getMetadata=function(){for(var a=!1,b=this.file.ast.program.body,c=0;c=0)){var d="pluginInvalidProperty";throw t.TYPES.indexOf(c)>=0&&(d="pluginInvalidPropertyVisitor"),new Error(j.get(d,a,c))}for(var c in b.metadata)if(!(v.indexOf(c)>=0))throw new Error(j.get("pluginInvalidProperty",a,"metadata."+c))},a.prototype.normalize=function(a){return l["default"].explode(a),a},a.prototype.buildPass=function(a){if(!(a instanceof r["default"]))throw new TypeError(j.get("pluginNotFile",this.key));return new h["default"](a,this)},a}();c["default"]=w,b.exports=c["default"]},{"../messages":57,"../traversal":159,"../types":190,"./file":61,"./plugin-pass":95,"lodash/lang/clone":462,"lodash/object/assign":477}],97:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}c.__esModule=!0;var f=a("./plugin"),g=d(f),h=function i(a,b){e(this,i);var c={};return c.metadata=b.metadata,delete b.metadata,c.visitor=b,new g["default"](a,c)};c["default"]=h,b.exports=c["default"]},{"./plugin":96}],98:[function(a,b,c){b.exports={useStrict:"strict","es5.runtime":"runtime","es6.runtime":"runtime","minification.inlineExpressions":"minification.constantFolding"}},{}],99:[function(a,b,c){b.exports={selfContained:"runtime","unicode-regex":"regex.unicode","spec.typeofSymbol":"es6.spec.symbols","es6.symbols":"es6.spec.symbols","es6.blockScopingTDZ":"es6.spec.blockScoping","utility.inlineExpressions":"minification.constantFolding","utility.deadCodeElimination":"minification.deadCodeElimination","utility.removeConsoleCalls":"minification.removeConsole","utility.removeDebugger":"minification.removeDebugger","es6.parameters.rest":"es6.parameters","es6.parameters.default":"es6.parameters"}},{}],100:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}c.__esModule=!0;var e=a("../../../types"),f=d(e),g={group:"builtin-trailing"};c.metadata=g;var h={MemberExpression:{exit:function(a){var b=a.property;a.computed||!f.isIdentifier(b)||f.isValidIdentifier(b.name)||(a.property=f.literal(b.name),a.computed=!0)}}};c.visitor=h},{"../../../types":190}],101:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}c.__esModule=!0;var e=a("../../../types"),f=d(e),g={group:"builtin-trailing"};c.metadata=g;var h={Property:{exit:function(a){var b=a.key;a.computed||!f.isIdentifier(b)||f.isValidIdentifier(b.name)||(a.key=f.literal(b.name))}}};c.visitor=h},{"../../../types":190}],102:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}c.__esModule=!0;var e=a("../../helpers/define-map"),f=d(e),g=a("../../../types"),h=d(g),i={ObjectExpression:function(a,b,c,d){for(var e=!1,g=a.properties,i=0;i=0)return;f=f+"|"+a.label.name}else{if(d.ignoreLabeless)return;if(d.inSwitchCase)return;if(t.isBreakStatement(a)&&t.isSwitchCase(b))return}d.hasBreakContinue=!0,d.map[f]=a,e=t.literal(f)}return this.isReturnStatement()&&(d.hasReturn=!0,e=t.objectExpression([t.property("init",t.identifier("v"),a.argument||t.identifier("undefined"))])),e?(e=t.returnStatement(e),this.skip(),t.inherits(e,a)):void 0}},I=function(){function a(b,c,d,e,g){f(this,a),this.parent=d,this.scope=e,this.file=g,this.blockPath=c,this.block=c.node,this.outsideLetReferences=p["default"](),this.hasLetReferences=!1,this.letReferences=this.block._letReferences=p["default"](),this.body=[],b&&(this.loopParent=b.parent,this.loopLabel=t.isLabeledStatement(this.loopParent)&&this.loopParent.label,this.loopPath=b,this.loop=b.node)}return a.prototype.run=function(){var a=this.block;if(!a._letDone){a._letDone=!0;var b=this.getLetReferences();if(!t.isFunction(this.parent)&&!t.isProgram(this.block)&&this.hasLetReferences)return b?this.wrapClosure():this.remap(), -this.loopLabel&&!t.isLabeledStatement(this.loopParent)?t.labeledStatement(this.loopLabel,this.loop):void 0}},a.prototype.remap=function(){var a=!1,b=this.letReferences,c=this.scope,d=p["default"]();for(var e in b){var f=b[e];if(c.parentHasBinding(e)||c.hasGlobal(e)){var g=c.generateUidIdentifier(f.name).name;f.name=g,a=!0,d[e]=d[g]={binding:f,uid:g}}}if(a){var h=this.loop;h&&(l(h.right,h,c,d),l(h.test,h,c,d),l(h.update,h,c,d)),this.blockPath.traverse(A,d)}},a.prototype.wrapClosure=function(){var a=this.block,b=this.outsideLetReferences;if(this.loop)for(var c in b){var d=b[c];(this.scope.hasGlobal(d.name)||this.scope.parentHasBinding(d.name))&&(delete b[d.name],delete this.letReferences[d.name],this.scope.rename(d.name),this.letReferences[d.name]=d,b[d.name]=d)}this.has=this.checkLoop(),this.hoistVarDeclarations();var e=v["default"](b),f=v["default"](b),g=t.functionExpression(null,e,t.blockStatement(a.body));g.shadow=!0,this.addContinuations(g),a.body=this.body;var h=g;this.loop&&(h=this.scope.generateUidIdentifier("loop"),this.loopPath.insertBefore(t.variableDeclaration("var",[t.variableDeclarator(h,g)])));var i=t.callExpression(h,f),j=this.scope.generateUidIdentifier("ret"),k=n["default"].hasType(g.body,this.scope,"YieldExpression",t.FUNCTION_TYPES);k&&(g.generator=!0,i=t.yieldExpression(i,!0));var l=n["default"].hasType(g.body,this.scope,"AwaitExpression",t.FUNCTION_TYPES);l&&(g.async=!0,i=t.awaitExpression(i)),this.buildClosure(j,i)},a.prototype.buildClosure=function(a,b){var c=this.has;c.hasReturn||c.hasBreakContinue?this.buildHas(a,b):this.body.push(t.expressionStatement(b))},a.prototype.addContinuations=function(a){var b={reassignments:{},outsideReferences:this.outsideLetReferences};this.scope.traverse(a,F,b);for(var c=0;c=d)break;if(!k.isSpreadProperty(g)){var h=g.key;k.isIdentifier(h)&&!g.computed&&(h=k.literal(g.key.name)),e.push(h)}}e=k.arrayExpression(e);var i=k.callExpression(this.file.addHelper("object-without-properties"),[b,e]);this.nodes.push(this.buildVariableAssignment(c.argument,i))},a.prototype.pushObjectProperty=function(a,b){k.isLiteral(a.key)&&(a.computed=!0);var c=a.value,d=k.memberExpression(b,a.key,a.computed);k.isPattern(c)?this.push(c,d):this.nodes.push(this.buildVariableAssignment(c,d))},a.prototype.pushObjectPattern=function(a,b){if(a.properties.length||this.nodes.push(k.expressionStatement(k.callExpression(this.file.addHelper("object-destructuring-empty"),[b]))),a.properties.length>1&&k.isMemberExpression(b)){var c=this.scope.generateUidIdentifierBasedOnNode(b,this.file);this.nodes.push(this.buildVariableDeclaration(c,b)),b=c}for(var d=0;db.elements.length)){if(a.elements.length0&&(h=k.callExpression(k.memberExpression(h,k.identifier("slice")),[k.literal(e)])),f=f.argument):h=k.memberExpression(b,k.literal(e),!0),this.push(f,h)}}}},a.prototype.init=function(a,b){if(!k.isArrayExpression(b)&&!k.isMemberExpression(b)){var c=this.scope.maybeGenerateMemoised(b,!0);c&&(this.nodes.push(this.buildVariableDeclaration(c,b)),b=c)}return this.push(a,b),this.nodes},a}()},{"../../../messages":57,"../../../types":190}],110:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a,b,c){var d=[],e=a.right;if(!k.isIdentifier(e)||!b.hasBinding(e.name)){var f=b.generateUidIdentifier("arr");d.push(k.variableDeclaration("var",[k.variableDeclarator(f,e)])),e=f}var g=b.generateUidIdentifier("i"),h=i.template("for-of-array",{BODY:a.body,KEY:g,ARR:e});k.inherits(h,a),k.ensureBlock(h);var j=k.memberExpression(e,g,!0),l=a.left;return k.isVariableDeclaration(l)?(l.declarations[0].init=j,h.body.body.unshift(l)):h.body.body.unshift(k.expressionStatement(k.assignmentExpression("=",l,j))),this.parentPath.isLabeledStatement()&&(h=k.labeledStatement(this.parentPath.node.label,h)),d.push(h),d}c.__esModule=!0,c._ForOfStatementArray=e;var f=a("../../../messages"),g=d(f),h=a("../../../util"),i=d(h),j=a("../../../types"),k=d(j),l={ForOfStatement:function(a,b,c,d){if(this.get("right").isArrayExpression())return e.call(this,a,c,d);var f=n;d.isLoose("es6.forOf")&&(f=m);var g=f(a,b,c,d),h=g.declar,i=g.loop,j=i.body;return this.ensureBlock(),h&&j.body.push(h),j.body=j.body.concat(a.body.body),k.inherits(i,a),k.inherits(i.body,a.body),g.replaceParent?(this.parentPath.replaceWithMultiple(g.node),void this.dangerouslyRemove()):g.node}};c.visitor=l;var m=function(a,b,c,d){var e,f,h=a.left;if(k.isIdentifier(h)||k.isPattern(h)||k.isMemberExpression(h))f=h;else{if(!k.isVariableDeclaration(h))throw d.errorWithNode(h,g.get("unknownForHead",h.type));f=c.generateUidIdentifier("ref"),e=k.variableDeclaration(h.kind,[k.variableDeclarator(h.declarations[0].id,f)])}var j=c.generateUidIdentifier("iterator"),l=c.generateUidIdentifier("isArray"),m=i.template("for-of-loose",{LOOP_OBJECT:j,IS_ARRAY:l,OBJECT:a.right,INDEX:c.generateUidIdentifier("i"),ID:f});return e||m.body.body.shift(),{declar:e,node:m,loop:m}},n=function(a,b,c,d){var e,f=a.left,h=c.generateUidIdentifier("step"),j=k.memberExpression(h,k.identifier("value"));if(k.isIdentifier(f)||k.isPattern(f)||k.isMemberExpression(f))e=k.expressionStatement(k.assignmentExpression("=",f,j));else{if(!k.isVariableDeclaration(f))throw d.errorWithNode(f,g.get("unknownForHead",f.type));e=k.variableDeclaration(f.kind,[k.variableDeclarator(f.declarations[0].id,j)])}var l=c.generateUidIdentifier("iterator"),m=i.template("for-of",{ITERATOR_HAD_ERROR_KEY:c.generateUidIdentifier("didIteratorError"),ITERATOR_COMPLETION:c.generateUidIdentifier("iteratorNormalCompletion"),ITERATOR_ERROR_KEY:c.generateUidIdentifier("iteratorError"),ITERATOR_KEY:l,STEP_KEY:h,OBJECT:a.right,BODY:null}),n=k.isLabeledStatement(b),o=m[3].block.body,p=o[0];return n&&(o[0]=k.labeledStatement(b.label,p)),{replaceParent:n,declar:e,loop:p,node:m}}},{"../../../messages":57,"../../../types":190,"../../../util":193}],111:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a,b){if(a._blockHoist)for(var c=0;cp}if(n(a)){this.ensureBlock();var h={iife:!1,scope:c},j=[],l=m.identifier("arguments");l._shadowedFunctionLiteral=this;for(var p=i["default"](a),q=this.get("params"),r=0;r",q,o),j.binaryExpression("-",q,o),j.literal(0)));var t=h.template("rest",{ARRAY_TYPE:d.typeAnnotation,ARGUMENTS:i,ARRAY_KEY:r,ARRAY_LEN:s,START:o,ARRAY:g,KEY:p,LEN:q});n.deopted?(t._blockHoist=a.params.length+1,a.body.body.unshift(t)):(t._blockHoist=1,this.getEarliestCommonAncestorFrom(n.references).getStatementParent().insertBefore(t))}else if(n.candidates.length)for(var u=n.candidates,v=0;v0){var f=m["default"](q["default"](this.vars,function(a){return a.declarations})),g=i["default"](f,function(a,b){return s.assignmentExpression("=",b.id,a)},s.identifier("undefined")),h=s.expressionStatement(g);h._blockHoist=1/0,c.unshift(h)}var j=this.paramDecls;if(j.length>0){var l=s.variableDeclaration("var",j);l._blockHoist=1/0,c.unshift(l)}c.unshift(s.expressionStatement(s.assignmentExpression("=",this.getAgainId(),s.literal(!1)))),a.body=o.template("tail-call-body",{FUNCTION_ID:this.getFunctionId(),AGAIN_ID:this.getAgainId(),BLOCK:a.body});var n=[];if(this.needsThis){for(var p=this.thisPaths,r=0;r0&&a.body.body.unshift(s.variableDeclaration("var",n))}},a.prototype.subTransform=function(a){if(a){var b=this["subTransform"+a.type];return b?b.call(this,a):void 0}},a.prototype.subTransformConditionalExpression=function(a){var b=this.subTransform(a.consequent),c=this.subTransform(a.alternate);return b||c?(a.type="IfStatement",a.consequent=b?s.toBlock(b):g(a.consequent),c?a.alternate=s.isIfStatement(c)?c:s.toBlock(c):a.alternate=g(a.alternate),[a]):void 0},a.prototype.subTransformLogicalExpression=function(a){var b=this.subTransform(a.right);if(b){var c=this.getLeftId(),d=s.assignmentExpression("=",c,a.left);return"&&"===a.operator&&(d=s.unaryExpression("!",d)),[s.ifStatement(d,g(c))].concat(b)}},a.prototype.subTransformSequenceExpression=function(a){var b=a.expressions,c=this.subTransform(b[b.length-1]);return c?(1===--b.length&&(a=b[0]),[s.expressionStatement(a)].concat(c)):void 0},a.prototype.subTransformCallExpression=function(a){var b,c,d=a.callee;if(s.isMemberExpression(d,{computed:!1})&&s.isIdentifier(d.property)){switch(d.property.name){case"call":c=s.arrayExpression(a.arguments.slice(1));break;case"apply":c=a.arguments[1]||s.identifier("undefined"),this.needsArguments=!0;break;default:return}b=a.arguments[0],d=d.object}if(s.isIdentifier(d)&&this.scope.bindingIdentifierEquals(d.name,this.ownerId)&&(this.hasTailRecursion=!0,!this.hasDeopt())){var e=[];this.needsThis&&!s.isThisExpression(b)&&e.push(s.expressionStatement(s.assignmentExpression("=",this.getThisId(),b||s.identifier("undefined")))),c||(c=s.arrayExpression(a.arguments));var f=this.getArgumentsId(),g=this.getParams();if(this.needsArguments&&e.push(s.expressionStatement(s.assignmentExpression("=",f,c))),s.isArrayExpression(c)){for(var h=c.elements;h.length1))return g[0];for(var m=f(g.shift(),g.shift()),n=g,o=0;o=1&&d.push(a),d):void 0}};c.visitor=i},{"../../../types":190}],133:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){var b=a.path.getData("functionBind");return b?b:(b=a.generateDeclaredUidIdentifier("context"),a.path.setData("functionBind",b))}function f(a,b){var c=a.object||a.callee.object;return b.isStatic(c)&&c}function g(a,b){var c=f(a,b);if(c)return c;var d=e(b);return a.object?a.callee=i.sequenceExpression([i.assignmentExpression("=",d,a.object),a.callee]):a.callee.object=i.assignmentExpression("=",d,a.callee.object),d}c.__esModule=!0;var h=a("../../../types"),i=d(h),j={optional:!0,stage:0};c.metadata=j;var k={CallExpression:function(a,b,c){var d=a.callee;if(i.isBindExpression(d)){var e=g(d,c);a.callee=i.memberExpression(d.callee,i.identifier("call")),a.arguments.unshift(e)}},BindExpression:function(a,b,c){var d=g(a,c);return i.callExpression(i.memberExpression(a.callee,i.identifier("bind")),[d])}};c.visitor=k},{"../../../types":190}],134:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}c.__esModule=!0;var e=a("../../../types"),f=d(e),g={stage:1,dependencies:["es6.destructuring"]};c.metadata=g;var h=function(a){for(var b=0;b=b.stage?!0:void 0}function i(a,b){return a.metadata.optional&&!k["default"](b.optional,a.key)?!1:void 0}c.__esModule=!0,c.internal=e,c.blacklist=f,c.whitelist=g,c.stage=h,c.optional=i;var j=a("lodash/collection/includes"),k=d(j)},{"lodash/collection/includes":381}],137:[function(a,b,c){"use strict";c.__esModule=!0,c["default"]={"minification.constantFolding":a("babel-plugin-constant-folding"),strict:a("./other/strict"),eval:a("babel-plugin-eval"),_validation:a("./internal/validation"),_hoistDirectives:a("./internal/hoist-directives"),"minification.removeDebugger":a("babel-plugin-remove-debugger"),"minification.removeConsole":a("babel-plugin-remove-console"),"utility.inlineEnvironmentVariables":a("babel-plugin-inline-environment-variables"),"minification.deadCodeElimination":a("babel-plugin-dead-code-elimination"),_modules:a("./internal/modules"),"react.displayName":a("babel-plugin-react-display-name"),"es6.spec.templateLiterals":a("./es6/spec.template-literals"),"es6.templateLiterals":a("./es6/template-literals"),"validation.undeclaredVariableCheck":a("babel-plugin-undeclared-variables-check"),"spec.functionName":a("./spec/function-name"),"es7.classProperties":a("./es7/class-properties"),"es7.trailingFunctionCommas":a("./es7/trailing-function-commas"),"es7.asyncFunctions":a("./es7/async-functions"),"es7.decorators":a("./es7/decorators"),"validation.react":a("./validation/react"),"es6.arrowFunctions":a("./es6/arrow-functions"),"spec.blockScopedFunctions":a("./spec/block-scoped-functions"),"optimisation.react.constantElements":a("babel-plugin-react-constant-elements"),"optimisation.react.inlineElements":a("./optimisation/react.inline-elements"),"es7.comprehensions":a("./es7/comprehensions"),"es6.classes":a("./es6/classes"),asyncToGenerator:a("./other/async-to-generator"),bluebirdCoroutines:a("./other/bluebird-coroutines"),"es6.objectSuper":a("./es6/object-super"),"es7.objectRestSpread":a("./es7/object-rest-spread"),"es7.exponentiationOperator":a("./es7/exponentiation-operator"),"es5.properties.mutators":a("./es5/properties.mutators"),"es6.properties.shorthand":a("./es6/properties.shorthand"),"es6.properties.computed":a("./es6/properties.computed"),"optimisation.flow.forOf":a("./optimisation/flow.for-of"),"es6.forOf":a("./es6/for-of"),"es6.regex.sticky":a("./es6/regex.sticky"),"es6.regex.unicode":a("./es6/regex.unicode"),"es6.constants":a("./es6/constants"),"es7.exportExtensions":a("./es7/export-extensions"),"spec.protoToAssign":a("babel-plugin-proto-to-assign"),"es7.doExpressions":a("./es7/do-expressions"),"es6.spec.symbols":a("./es6/spec.symbols"),"es7.functionBind":a("./es7/function-bind"),"spec.undefinedToVoid":a("babel-plugin-undefined-to-void"),"es6.spread":a("./es6/spread"),"es6.parameters":a("./es6/parameters"),"es6.destructuring":a("./es6/destructuring"),"es6.blockScoping":a("./es6/block-scoping"),"es6.spec.blockScoping":a("./es6/spec.block-scoping"),reactCompat:a("./other/react-compat"),react:a("./other/react"),regenerator:a("./other/regenerator"),runtime:a("babel-plugin-runtime"),"es6.modules":a("./es6/modules"),_moduleFormatter:a("./internal/module-formatter"),"es6.tailCall":a("./es6/tail-call"),_shadowFunctions:a("./internal/shadow-functions"),"es3.propertyLiterals":a("./es3/property-literals"),"es3.memberExpressionLiterals":a("./es3/member-expression-literals"),"minification.memberExpressionLiterals":a("babel-plugin-member-expression-literals"),"minification.propertyLiterals":a("babel-plugin-property-literals"),_blockHoist:a("./internal/block-hoist"),jscript:a("babel-plugin-jscript"),flow:a("./other/flow"),"optimisation.modules.system":a("./optimisation/modules.system")},b.exports=c["default"]},{"./es3/member-expression-literals":100,"./es3/property-literals":101,"./es5/properties.mutators":102,"./es6/arrow-functions":103,"./es6/block-scoping":104,"./es6/classes":105,"./es6/constants":108,"./es6/destructuring":109,"./es6/for-of":110,"./es6/modules":111,"./es6/object-super":112,"./es6/parameters":114,"./es6/properties.computed":116,"./es6/properties.shorthand":117,"./es6/regex.sticky":118,"./es6/regex.unicode":119,"./es6/spec.block-scoping":120,"./es6/spec.symbols":121,"./es6/spec.template-literals":122,"./es6/spread":123,"./es6/tail-call":124,"./es6/template-literals":125,"./es7/async-functions":126,"./es7/class-properties":127,"./es7/comprehensions":128,"./es7/decorators":129,"./es7/do-expressions":130,"./es7/exponentiation-operator":131,"./es7/export-extensions":132,"./es7/function-bind":133,"./es7/object-rest-spread":134,"./es7/trailing-function-commas":135,"./internal/block-hoist":138,"./internal/hoist-directives":139,"./internal/module-formatter":140,"./internal/modules":141,"./internal/shadow-functions":142,"./internal/validation":143,"./optimisation/flow.for-of":144,"./optimisation/modules.system":145,"./optimisation/react.inline-elements":146,"./other/async-to-generator":147,"./other/bluebird-coroutines":148,"./other/flow":149,"./other/react":151,"./other/react-compat":150,"./other/regenerator":152,"./other/strict":153,"./spec/block-scoped-functions":154,"./spec/function-name":155,"./validation/react":156,"babel-plugin-constant-folding":215,"babel-plugin-dead-code-elimination":216,"babel-plugin-eval":217,"babel-plugin-inline-environment-variables":218,"babel-plugin-jscript":219,"babel-plugin-member-expression-literals":220,"babel-plugin-property-literals":221,"babel-plugin-proto-to-assign":222,"babel-plugin-react-constant-elements":223,"babel-plugin-react-display-name":224,"babel-plugin-remove-console":225,"babel-plugin-remove-debugger":226,"babel-plugin-runtime":228,"babel-plugin-undeclared-variables-check":229,"babel-plugin-undefined-to-void":230}],138:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var e=a("lodash/collection/sortBy"),f=d(e),g={group:"builtin-trailing"};c.metadata=g;var h={Block:{exit:function(a){for(var b=!1,c=0;c=0&&(g.value=g.value.replace(h,""),g.value.replace(/\*/g,"").trim()||(g._displayed=!0))}},Flow:function(){this.dangerouslyRemove()},ClassProperty:function(a){a.typeAnnotation=null,a.value||this.dangerouslyRemove()},Class:function(a){a["implements"]=null},Function:function(a){for(var b=0;b0;)g=g.get(c.pop());return g}c.__esModule=!0;var g=a("regenerator"),h=e(g),i=a("../../../types"),j=d(i),k=h["default"].types.NodePath,l={group:"builtin-advanced"};c.metadata=l;var m={Function:{exit:function(a){(a.async||a.generator)&&h["default"].transform(f(this))}}};c.visitor=m},{"../../../types":190,regenerator:516}],153:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}c.__esModule=!0;var e=a("../../../types"),f=d(e),g={group:"builtin-pre"};c.metadata=g;var h=["FunctionExpression","FunctionDeclaration","ClassExpression","ClassDeclaration"],i={Program:{enter:function(a){var b,c=a.body[0];f.isExpressionStatement(c)&&f.isLiteral(c.expression,{value:"use strict"})?b=c:(b=f.expressionStatement(f.literal("use strict")),this.unshiftContainer("body",b),c&&(b.leadingComments=c.leadingComments,c.leadingComments=[])),b._blockHoist=1/0}},ThisExpression:function(){return this.findParent(function(a){return!a.is("shadow")&&h.indexOf(a.type)>=0})?void 0:f.identifier("undefined")}};c.visitor=i},{"../../../types":190}],154:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a,b){for(var c=b.get(a),d=0;d=0)&&(d.push(k.node),k.visit())){f=!0;break}}for(var l=e,m=0;mk&&(d=i)}else d=i}return d})}function j(a,b){var c=this;if(!a.length)return this;if(1===a.length)return a[0];var d,e,f=1/0,g=a.map(function(a){var b=[];do b.unshift(a);while((a=a.parentPath)&&a!==c);return b.lengthi;i++){for(var j=h[i],k=g,l=0;l-1}function g(){if(this.isBlacklisted())return!1;if(this.opts.shouldSkip&&this.opts.shouldSkip(this))return!1;if(this.call("enter"),this.shouldSkip)return this.shouldStop;var a=this.node,b=this.opts;if(a)if(Array.isArray(a))for(var c=0;co;case">":return o>p;case"<=":return p>=o;case">=":return o>=p;case"==":return o==p;case"!=":return o!=p;case"===":return o===p;case"!==":return o!==p}}if(d.isCallExpression()){var q,r,s=d.get("callee");if(s.isIdentifier()&&!d.scope.getBinding(s.node.name,!0)&&e.indexOf(s.node.name)>=0&&(r=a[f.callee.name]),s.isMemberExpression()){var i=s.get("object"),t=s.get("property");if(i.isIdentifier()&&t.isIdentifier()&&e.indexOf(i.node.name)>=0&&(q=a[i.node.name],r=q[t.node.name]),i.isLiteral()&&t.isIdentifier()){var k=typeof i.node.value;("string"===k||"number"===k)&&(q=i.node.value,r=q[t.node.name])}}if(r){var u=d.get("arguments").map(b);if(!c)return;return r.apply(q,u)}}c=!1}}var c=!0,d=b(this);return c||(d=void 0),{confident:c,value:d}}c.__esModule=!0,c.evaluateTruthy=b,c.evaluate=d;var e=["String","Number","Math"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],165:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(){var a=this;do{if(!a.parentPath||Array.isArray(a.container)&&a.isStatement())break;a=a.parentPath}while(a);if(a&&(a.isProgram()||a.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return a}function g(){return"left"===this.key?this.getSibling("right"):"right"===this.key?this.getSibling("left"):void 0}function h(){var a=[],b=function(b){b&&(a=a.concat(b.getCompletionRecords()))};if(this.isIfStatement())b(this.get("consequent")),b(this.get("alternate"));else if(this.isDoExpression()||this.isFor()||this.isWhile())b(this.get("body"));else if(this.isProgram()||this.isBlockStatement())b(this.get("body").pop());else{if(this.isFunction())return this.get("body").getCompletionRecords();this.isTryStatement()?(b(this.get("block")),b(this.get("handler")),b(this.get("finalizer"))):a.push(this)}return a}function i(a){return o["default"].get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:a})}function j(a,b){b===!0&&(b=this.context);var c=a.split(".");return 1===c.length?this._getKey(a,b):this._getPattern(c,b)}function k(a,b){var c=this,d=this.node,e=d[a];return Array.isArray(e)?e.map(function(f,g){return o["default"].get({listKey:a,parentPath:c,parent:d,container:e,key:g}).setContext(b)}):o["default"].get({parentPath:this,parent:d,container:d,key:a}).setContext(b)}function l(a,b){for(var c=this,d=a,e=0;e=0)&&(m.push(q),g.push(p),q===a.scope)){g=[p];break}}g=g.concat(e);for(var r=g,s=0;s=0?k.numberTypeAnnotation():void 0;if("==="===d){var g,h;if(f.isUnaryExpression({operator:"typeof" -})?(g=f,h=e):e.isUnaryExpression({operator:"typeof"})&&(g=e,h=f),(h||g)&&(h=h.resolve(),h.isLiteral())){var i=h.node.value;if("string"==typeof i&&g.get("argument").isIdentifier({name:a}))return k.createTypeAnnotationBasedOnTypeof(h.node.value)}}}function h(a){for(var b;b=a.parentPath;){if(b.isIfStatement()||b.isConditionalExpression())return"test"===a.key?void 0:b;a=b}}function i(a,b){var c=h(a);if(c){var d=c.get("test"),e=[d],f=[];do{var j=e.shift().resolve();if(j.isLogicalExpression()&&(e.push(j.get("left")),e.push(j.get("right"))),j.isBinaryExpression()){var l=g(b,j);l&&f.push(l)}}while(e.length);return f.length?{typeAnnotation:k.createUnionTypeAnnotation(f),ifStatement:c}:i(c,b)}}c.__esModule=!0;var j=a("../../../types"),k=d(j);c["default"]=function(a){if(this.isReferenced()){var b=this.scope.getBinding(a.name);return b?b.identifier.typeAnnotation?b.identifier.typeAnnotation:e(this,a.name):"undefined"===a.name?k.voidTypeAnnotation():"NaN"===a.name||"Infinity"===a.name?k.numberTypeAnnotation():void("arguments"===a.name)}},b.exports=c["default"]},{"../../../types":190}],169:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a["default"]:a}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(){var a=this.get("id");return a.isIdentifier()?this.get("init").getTypeAnnotation():void 0}function g(a){return a.typeAnnotation}function h(a){return this.get("callee").isIdentifier()?z.genericTypeAnnotation(a.callee):void 0}function i(){return z.stringTypeAnnotation()}function j(a){var b=a.operator;return"void"===b?z.voidTypeAnnotation():z.NUMBER_UNARY_OPERATORS.indexOf(b)>=0?z.numberTypeAnnotation():z.STRING_UNARY_OPERATORS.indexOf(b)>=0?z.stringTypeAnnotation():z.BOOLEAN_UNARY_OPERATORS.indexOf(b)>=0?z.booleanTypeAnnotation():void 0}function k(a){var b=a.operator;if(z.NUMBER_BINARY_OPERATORS.indexOf(b)>=0)return z.numberTypeAnnotation();if(z.BOOLEAN_BINARY_OPERATORS.indexOf(b)>=0)return z.booleanTypeAnnotation();if("+"===b){var c=this.get("right"),d=this.get("left");return d.isBaseType("number")&&c.isBaseType("number")?z.numberTypeAnnotation():d.isBaseType("string")||c.isBaseType("string")?z.stringTypeAnnotation():z.unionTypeAnnotation([z.stringTypeAnnotation(),z.numberTypeAnnotation()])}}function l(){return z.createUnionTypeAnnotation([this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()])}function m(){return z.createUnionTypeAnnotation([this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()])}function n(a){return this.get("expressions").pop().getTypeAnnotation()}function o(a){return this.get("right").getTypeAnnotation()}function p(a){var b=a.operator;return"++"===b||"--"===b?z.numberTypeAnnotation():void 0}function q(a){var b=a.value;return"string"==typeof b?z.stringTypeAnnotation():"number"==typeof b?z.numberTypeAnnotation():"boolean"==typeof b?z.booleanTypeAnnotation():null===b?z.voidTypeAnnotation():a.regex?z.genericTypeAnnotation(z.identifier("RegExp")):void 0}function r(){return z.genericTypeAnnotation(z.identifier("Object"))}function s(){return z.genericTypeAnnotation(z.identifier("Array"))}function t(){return s()}function u(){return z.genericTypeAnnotation(z.identifier("Function"))}function v(){return x(this.get("callee"))}function w(){return x(this.get("tag"))}function x(a){if(a=a.resolve(),a.isFunction()){if(a.is("async"))return a.is("generator")?z.genericTypeAnnotation(z.identifier("AsyncIterator")):z.genericTypeAnnotation(z.identifier("Promise"));if(a.node.returnType)return a.node.returnType}}c.__esModule=!0,c.VariableDeclarator=f,c.TypeCastExpression=g,c.NewExpression=h,c.TemplateLiteral=i,c.UnaryExpression=j,c.BinaryExpression=k,c.LogicalExpression=l,c.ConditionalExpression=m,c.SequenceExpression=n,c.AssignmentExpression=o,c.UpdateExpression=p,c.Literal=q,c.ObjectExpression=r,c.ArrayExpression=s,c.RestElement=t,c.CallExpression=v,c.TaggedTemplateExpression=w;var y=a("../../../types"),z=e(y),A=a("./inferer-reference");c.Identifier=d(A),g.validParent=!0,t.validParent=!0,c.Function=u,c.Class=u},{"../../../types":190,"./inferer-reference":168}],170:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){function c(a){var b=d[f];return"*"===b||a===b}if(!this.isMemberExpression())return!1;for(var d=a.split("."),e=[this.node],f=0;e.length;){var g=e.shift();if(b&&f===d.length)return!0;if(w.isIdentifier(g)){if(!c(g.name))return!1}else if(w.isLiteral(g)){if(!c(g.value))return!1}else{if(w.isMemberExpression(g)){if(g.computed&&!w.isLiteral(g.property))return!1;e.unshift(g.property),e.unshift(g.object);continue}if(!w.isThisExpression(g))return!1;if(!c("this"))return!1}if(++f>d.length)return!1}return f===d.length}function g(a){var b=this.node[a];return b&&Array.isArray(b)?!!b.length:!!b}function h(a){return!this.has(a)}function i(a,b){return this.node[a]===b}function j(a){return w.isType(this.type,a)}function k(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()}function l(a){var b=this,c=!0;do{var d=b.container;if(b.isFunction()&&!c)return!!a;if(c=!1,Array.isArray(d)&&b.key!==d.length-1)return!1}while((b=b.parentPath)&&!b.isProgram());return!0}function m(){return this.parentPath.isLabeledStatement()||w.isBlockStatement(this.container)?!1:u["default"](w.STATEMENT_OR_BLOCK_KEYS,this.key)}function n(a,b){if(!this.isReferencedIdentifier())return!1;var c=this.scope.getBinding(this.node.name);if(!c||"module"!==c.kind)return!1;var d=c.path;if(!d.isImportDeclaration())return!1;if(d.node.source.value!==a)return!1;if(!b)return!0;for(var e=d.node.specifiers,f=0;f=0){d=i;break}}if(!d)return"before";var j=g[e-1],k=h[f-1];if(!j||!k)return"before";if(j.listKey&&j.container===k.container)return j.key>k.key?"before":"after";var l=w.VISITOR_KEYS[j.type].indexOf(j.key),m=w.VISITOR_KEYS[k.type].indexOf(k.key);return l>m?"before":"after"}function r(a,b){return this._resolve(a,b)||this}function s(a,b){if(!(b&&b.indexOf(this)>=0))if(b=b||[],b.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(a,b)}else if(this.isReferencedIdentifier()){var c=this.scope.getBinding(this.node.name);if(!c)return;if(!c.constant)return;if("module"===c.kind)return;if(c.path!==this)return c.path.resolve(a,b)}else{if(this.isTypeCastExpression())return this.get("expression").resolve(a,b);if(a&&this.isMemberExpression()){var d=this.toComputedKey();if(!w.isLiteral(d))return;var e=d.value,f=this.get("object").resolve(a,b);if(f.isObjectExpression())for(var g=f.get("properties"),h=g,i=0;i=0)break}while(a=a.parent)},a.prototype.getAttachmentPath=function(){var a=this.scopes,b=a.pop();if(b){if(b.path.isFunction()){if(this.hasOwnParamBindings(b)){if(this.scope===b)return;return b.path.get("body").get("body")[0]}return this.getNextScopeStatementParent()}return b.path.isProgram()?this.getNextScopeStatementParent():void 0}},a.prototype.getNextScopeStatementParent=function(){var a=this.scopes.pop();return a?a.path.getStatementParent():void 0},a.prototype.hasOwnParamBindings=function(a){for(var b in this.bindings)if(a.hasOwnBinding(b)){var c=this.bindings[b];if("param"===c.kind)return!0}return!1},a.prototype.run=function(){var a=this.path.node;if(!a._hoisted){a._hoisted=!0,this.path.traverse(j,this),this.getCompatibleScopes();var b=this.getAttachmentPath();if(b&&b.getFunctionParent()!==this.path.getFunctionParent()){var c=b.scope.generateUidIdentifier("ref");b.insertBefore([i.variableDeclaration("var",[i.variableDeclarator(c,this.path.node)])]);var d=this.path.parentPath;d.isJSXElement()&&this.path.container===d.node.children&&(c=i.JSXExpressionContainer(c)),this.path.replaceWith(c)}}},a}();c["default"]=k,b.exports=c["default"]},{"../../../transformation/helpers/react":77,"../../../types":190}],172:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}c.__esModule=!0;var e=a("../../../types"),f=d(e),g=[function(a){return"body"===a.key&&(a.isBlockStatement()||a.isClassBody())?(a.node.body=[],!0):void 0},function(a,b){var c=!1;return c=c||"body"===a.key&&b.isArrowFunctionExpression(),c=c||"argument"===a.key&&b.isThrowStatement(),c?(a.replaceWith(f.identifier("undefined")),!0):void 0}];c.pre=g;var h=[function(a,b){var c=!1;return c=c||"test"===a.key&&(b.isWhile()||b.isSwitchCase()),c=c||"declaration"===a.key&&b.isExportDeclaration(),c=c||"body"===a.key&&b.isLabeledStatement(),c=c||"declarations"===a.listKey&&b.isVariableDeclaration()&&0===b.node.declarations.length,c=c||"expression"===a.key&&b.isExpressionStatement(),c=c||"test"===a.key&&b.isIfStatement(),c?(b.dangerouslyRemove(),!0):void 0},function(a,b){return b.isSequenceExpression()&&1===b.node.expressions.length?(b.replaceWith(b.node.expressions[0]),!0):void 0},function(a,b){return b.isBinary()?("left"===a.key?b.replaceWith(b.node.right):b.replaceWith(b.node.left),!0):void 0}];c.post=h},{"../../../types":190}],173:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}c.__esModule=!0;var e=a("../../../transformation/helpers/react"),f=d(e),g=a("../../../types"),h=d(g),i={types:["Identifier","JSXIdentifier"],checkPath:function(a,b){var c=a.node,d=a.parent;if(!h.isIdentifier(c,b)){if(!h.isJSXIdentifier(c,b))return!1;if(f.isCompatTag(c.name))return!1}return h.isReferenced(c,d)}};c.ReferencedIdentifier=i;var j={types:["Identifier"],checkPath:function(a){var b=a.node,c=a.parent;return h.isBinding(b,c)}};c.BindingIdentifier=j;var k={types:["Statement"],checkPath:function(a){var b=a.node,c=a.parent;if(h.isStatement(b)){if(h.isVariableDeclaration(b)){if(h.isForXStatement(c,{left:b}))return!1;if(h.isForStatement(c,{init:b}))return!1}return!0}return!1}};c.Statement=k;var l={types:["Expression"],checkPath:function(a){return a.isIdentifier()?a.isReferencedIdentifier():h.isExpression(a.node)}};c.Expression=l;var m={types:["Scopable"],checkPath:function(a){return h.isScope(a.node,a.parent)}};c.Scope=m;var n={checkPath:function(a){return h.isReferenced(a.node,a.parent)}};c.Referenced=n;var o={checkPath:function(a){return h.isBlockScoped(a.node)}};c.BlockScoped=o;var p={types:["VariableDeclaration"],checkPath:function(a){return h.isVar(a.node)}};c.Var=p;var q={types:["Literal"],checkPath:function(a){return a.isLiteral()&&a.parentPath.isExpressionStatement()}};c.DirectiveLiteral=q;var r={types:["ExpressionStatement"],checkPath:function(a){return a.get("expression").isLiteral()}};c.Directive=r;var s={checkPath:function(a){return a.node&&!!a.node.loc}};c.User=s;var t={checkPath:function(a){return!a.isUser()}};c.Generated=t},{"../../../transformation/helpers/react":77,"../../../types":190}],174:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a){if(this._assertUnremoved(),a=this._verifyNodeList(a),this.parentPath.isExpressionStatement()||this.parentPath.isLabeledStatement())return this.parentPath.insertBefore(a);if(this.isNodeType("Expression")||this.parentPath.isForStatement()&&"init"===this.key)this.node&&a.push(this.node),this.replaceExpressionWithStatements(a);else{if(this._maybePopFromStatements(a),Array.isArray(this.container))return this._containerInsertBefore(a);if(!this.isStatementOrBlock())throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?");this.node&&a.push(this.node),this.node=this.container[this.key]=v.blockStatement(a)}return[this]}function g(a,b){this.updateSiblingKeys(a,b.length);for(var c=[],d=0;d=a&&(e.key+=b)}}function m(a){a.constructor!==Array&&(a=[a]);for(var b=0;b1&&(c+=b),"_"+c},a.prototype.generateUidIdentifierBasedOnNode=function(a,b){var c=a;C.isAssignmentExpression(a)?c=a.left:C.isVariableDeclarator(a)?c=a.id:C.isProperty(c)&&(c=c.key);var d=[],e=function g(a){if(C.isModuleDeclaration(a))if(a.source)g(a.source);else if(a.specifiers&&a.specifiers.length)for(var b=a.specifiers,c=0;c=0)){if(i.isAnyTypeAnnotation(h))return[h];if(i.isFlowBaseAnnotation(h))c[h.type]=h;else if(i.isUnionTypeAnnotation(h))d.indexOf(h.types)<0&&(a=a.concat(h.types),d.push(h.types));else if(i.isGenericTypeAnnotation(h)){var j=h.id.name;if(b[j]){var k=b[j];k.typeParameters?h.typeParameters&&(k.typeParameters.params=f(k.typeParameters.params.concat(h.typeParameters.params))):k=h.typeParameters}else b[j]=h}else e.push(h)}}for(var l in c)e.push(c[l]);for(var m in b)e.push(b[m]);return e}function g(a){if("string"===a)return i.stringTypeAnnotation();if("number"===a)return i.numberTypeAnnotation();if("undefined"===a)return i.voidTypeAnnotation();if("boolean"===a)return i.booleanTypeAnnotation();if("function"===a)return i.genericTypeAnnotation(i.identifier("Function"));if("object"===a)return i.genericTypeAnnotation(i.identifier("Object"));if("symbol"===a)return i.genericTypeAnnotation(i.identifier("Symbol"));throw new Error("Invalid typeof value")}c.__esModule=!0,c.createUnionTypeAnnotation=e,c.removeTypeDuplicates=f,c.createTypeAnnotationBasedOnTypeof=g;var h=a("./index"),i=d(h)},{"./index":190}],190:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){var c=C["is"+a]=function(c,d){return C.is(a,c,d,b)};C["assert"+a]=function(b,d){if(d=d||{},!c(b,d))throw new Error("Expected type "+JSON.stringify(a)+" with option "+JSON.stringify(d))}}function f(a,b,c,d){if(!b)return!1;var e=g(b.type,a);return e?"undefined"==typeof c?!0:C.shallowEqual(b,c):!1}function g(a,b){if(a===b)return!0;var c=C.FLIPPED_ALIAS_KEYS[b];if(c){if(c[0]===a)return!0;for(var d=c,e=0;ec.length)return!1}return!0}}function o(a){for(var b=G,c=0;c","<",">=","<="];c.BOOLEAN_NUMBER_BINARY_OPERATORS=H;var I=["==","===","!=","!==","in","instanceof"];c.COMPARISON_BINARY_OPERATORS=I;var J=[].concat(I,H);c.BOOLEAN_BINARY_OPERATORS=J;var K=["-","/","*","**","&","|",">>",">>>","<<","^"];c.NUMBER_BINARY_OPERATORS=K;var L=["delete","!"];c.BOOLEAN_UNARY_OPERATORS=L;var M=["+","-","++","--","~"];c.NUMBER_UNARY_OPERATORS=M;var N=["typeof"];c.STRING_UNARY_OPERATORS=N,c.VISITOR_KEYS=B.VISITOR_KEYS,c.BUILDER_KEYS=B.BUILDER_KEYS,c.ALIAS_KEYS=B.ALIAS_KEYS,y["default"](C.VISITOR_KEYS,function(a,b){e(b,!0)}),C.FLIPPED_ALIAS_KEYS={},y["default"](C.ALIAS_KEYS,function(a,b){y["default"](a,function(a){var c=C.FLIPPED_ALIAS_KEYS[a]=C.FLIPPED_ALIAS_KEYS[a]||[];c.push(b)})}),y["default"](C.FLIPPED_ALIAS_KEYS,function(a,b){C[b.toUpperCase()+"_TYPES"]=a,e(b,!1)});var O=Object.keys(C.VISITOR_KEYS).concat(Object.keys(C.FLIPPED_ALIAS_KEYS));c.TYPES=O,y["default"](C.VISITOR_KEYS,function(a,b){if(!C.BUILDER_KEYS[b]){var c={};y["default"](a,function(a){c[a]=null}),C.BUILDER_KEYS[b]=c}}),y["default"](C.BUILDER_KEYS,function(a,b){var c=function(){var c={};c.start=null,c.type=b;var d=0;for(var e in a){var f=arguments[d++];void 0===f&&(f=a[e]),c[e]=f}return c};C[b]=c,C[b[0].toLowerCase()+b.slice(1)]=c}),s["default"](C),s["default"](C.VISITOR_KEYS),w["default"](C,a("./retrievers")),w["default"](C,a("./validators")),w["default"](C,a("./converters")),w["default"](C,a("./flow"))},{"./converters":180,"./definitions":185,"./definitions/init":186,"./flow":189,"./retrievers":191,"./validators":192,"lodash/array/compact":373,"lodash/array/uniq":377,"lodash/collection/each":379,"lodash/object/assign":477,"to-fast-properties":546}],191:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){for(var c=[].concat(a),d=h["default"]();c.length;){var e=c.shift();if(e){var f=j.getBindingIdentifiers.keys[e.type];if(j.isIdentifier(e))if(b){var g=d[e.name]=d[e.name]||[];g.push(e)}else d[e.name]=e;else j.isExportDeclaration(e)?j.isDeclaration(a.declaration)&&c.push(a.declaration):f&&e[f]&&(c=c.concat(e[f]))}}return d}c.__esModule=!0,c.getBindingIdentifiers=f;var g=a("../helpers/object"),h=e(g),i=a("./index"),j=d(i);f.keys={DeclareClass:"id",DeclareFunction:"id",DeclareModule:"id",DeclareVariable:"id",InterfaceDeclaration:"id",TypeAlias:"id",ComprehensionExpression:"blocks",ComprehensionBlock:"left",CatchClause:"param",LabeledStatement:"label",UnaryExpression:"argument",AssignmentExpression:"left",ImportSpecifier:"local",ImportNamespaceSpecifier:"local",ImportDefaultSpecifier:"local",ImportDeclaration:"specifiers",FunctionDeclaration:"id",FunctionExpression:"id",ClassDeclaration:"id",ClassExpression:"id",SpreadElement:"argument",RestElement:"argument",UpdateExpression:"argument",SpreadProperty:"argument",Property:"value",AssignmentPattern:"left",ArrayPattern:"elements",ObjectPattern:"properties",VariableDeclaration:"declarations",VariableDeclarator:"id"}},{"../helpers/object":55,"./index":190}],192:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){var c=o.getBindingIdentifiers.keys[b.type];return c?b[c]===a:!1}function g(a,b){switch(b.type){case"MemberExpression":case"JSXMemberExpression":return b.property===a&&b.computed?!0:b.object===a?!0:!1;case"MetaProperty":return!1;case"Property":if(b.key===a)return b.computed;case"VariableDeclarator":return b.id!==a;case"ArrowFunctionExpression":case"FunctionDeclaration":case"FunctionExpression":for(var c=b.params,d=0;d1)return e.body;var f=e.body[0];return!d&&Z.isExpressionStatement(f)?f.expression:f}function q(a,b){var c=R["default"](b,{filename:a,looseModules:!0}).program;return c=H["default"].removeProperties(c)}function r(){var a={},b=T["default"].join(d,"transformation/templates");if(!ba["default"].sync(b))throw new ReferenceError(B.get("missingTemplatesDirectory"));for(var c=X["default"].readdirSync(b),e=0;e0&&(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:12,path:11}],196:[function(a,b,c){"use strict";b.exports=function(){return/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g}},{}],197:[function(a,b,c){"use strict";function d(){var a={modifiers:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},colors:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39]},bgColors:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49]}};return a.colors.grey=a.colors.gray,Object.keys(a).forEach(function(b){var c=a[b];Object.keys(c).forEach(function(b){var d=c[b];a[b]=c[b]={open:"["+d[0]+"m",close:"["+d[1]+"m"}}),Object.defineProperty(a,b,{value:c,enumerable:!1})}),a}Object.defineProperty(b,"exports",{enumerable:!0,get:d})},{}],198:[function(a,b,c){function d(a,b){"use strict";function c(a,b,g,h){if(a&&"string"==typeof a.type){var i=void 0;if(d&&(i=d(a,b,g,h)),i!==!1)for(var g in a)if(f?!f(g,a):"$"!==g[0]){var j=a[g];if(Array.isArray(j))for(var k=0;k",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof","..");f("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",l).field("left",f("Expression")).field("right",f("Expression"));var m=g("=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&=");f("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",m).field("left",f("Pattern")).field("right",f("Expression"));var n=g("++","--");f("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",n).field("argument",f("Expression")).field("prefix",Boolean);var o=g("||","&&");f("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",o).field("left",f("Expression")).field("right",f("Expression")),f("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",f("Expression")).field("consequent",f("Expression")).field("alternate",f("Expression")),f("NewExpression").bases("Expression").build("callee","arguments").field("callee",f("Expression")).field("arguments",[f("Expression")]),f("CallExpression").bases("Expression").build("callee","arguments").field("callee",f("Expression")).field("arguments",[f("Expression")]),f("MemberExpression").bases("Expression").build("object","property","computed").field("object",f("Expression")).field("property",g(f("Identifier"),f("Expression"))).field("computed",Boolean,i["false"]),f("Pattern").bases("Node"),f("SwitchCase").bases("Node").build("test","consequent").field("test",g(f("Expression"),null)).field("consequent",[f("Statement")]),f("Identifier").bases("Node","Expression","Pattern").build("name").field("name",String),f("Literal").bases("Node","Expression").build("value").field("value",g(String,Boolean,null,Number,RegExp)).field("regex",g({pattern:String,flags:String},null),function(){if(this.value instanceof RegExp){var a="";return this.value.ignoreCase&&(a+="i"),this.value.multiline&&(a+="m"),this.value.global&&(a+="g"),{pattern:this.value.source,flags:a}}return null}),f("Comment").bases("Printable").field("value",String).field("leading",Boolean,i["true"]).field("trailing",Boolean,i["false"]),f("Block").bases("Comment").build("value","leading","trailing"),f("Line").bases("Comment").build("value","leading","trailing")},{"../lib/shared":212,"../lib/types":213}],201:[function(a,b,c){a("./core");var d=a("../lib/types"),e=d.Type.def,f=d.Type.or;e("XMLDefaultDeclaration").bases("Declaration").field("namespace",e("Expression")),e("XMLAnyName").bases("Expression"),e("XMLQualifiedIdentifier").bases("Expression").field("left",f(e("Identifier"),e("XMLAnyName"))).field("right",f(e("Identifier"),e("Expression"))).field("computed",Boolean),e("XMLFunctionQualifiedIdentifier").bases("Expression").field("right",f(e("Identifier"),e("Expression"))).field("computed",Boolean),e("XMLAttributeSelector").bases("Expression").field("attribute",e("Expression")),e("XMLFilterExpression").bases("Expression").field("left",e("Expression")).field("right",e("Expression")),e("XMLElement").bases("XML","Expression").field("contents",[e("XML")]),e("XMLList").bases("XML","Expression").field("contents",[e("XML")]),e("XML").bases("Node"),e("XMLEscape").bases("XML").field("expression",e("Expression")),e("XMLText").bases("XML").field("text",String),e("XMLStartTag").bases("XML").field("contents",[e("XML")]),e("XMLEndTag").bases("XML").field("contents",[e("XML")]),e("XMLPointTag").bases("XML").field("contents",[e("XML")]),e("XMLName").bases("XML").field("contents",f(String,[e("XML")])),e("XMLAttribute").bases("XML").field("value",String),e("XMLCdata").bases("XML").field("contents",String),e("XMLComment").bases("XML").field("contents",String),e("XMLProcessingInstruction").bases("XML").field("target",String).field("contents",f(String,null))},{"../lib/types":213,"./core":200}],202:[function(a,b,c){a("./core");var d=a("../lib/types"),e=d.Type.def,f=d.Type.or,g=a("../lib/shared").defaults;e("Function").field("generator",Boolean,g["false"]).field("expression",Boolean,g["false"]).field("defaults",[f(e("Expression"),null)],g.emptyArray).field("rest",f(e("Identifier"),null),g["null"]),e("RestElement").bases("Pattern").build("argument").field("argument",e("Pattern")),e("SpreadElementPattern").bases("Pattern").build("argument").field("argument",e("Pattern")),e("FunctionDeclaration").build("id","params","body","generator","expression"),e("FunctionExpression").build("id","params","body","generator","expression"),e("ArrowFunctionExpression").bases("Function","Expression").build("params","body","expression").field("id",null,g["null"]).field("body",f(e("BlockStatement"),e("Expression"))).field("generator",!1,g["false"]),e("YieldExpression").bases("Expression").build("argument","delegate").field("argument",f(e("Expression"),null)).field("delegate",Boolean,g["false"]),e("GeneratorExpression").bases("Expression").build("body","blocks","filter").field("body",e("Expression")).field("blocks",[e("ComprehensionBlock")]).field("filter",f(e("Expression"),null)),e("ComprehensionExpression").bases("Expression").build("body","blocks","filter").field("body",e("Expression")).field("blocks",[e("ComprehensionBlock")]).field("filter",f(e("Expression"),null)),e("ComprehensionBlock").bases("Node").build("left","right","each").field("left",e("Pattern")).field("right",e("Expression")).field("each",Boolean),e("Property").field("key",f(e("Literal"),e("Identifier"),e("Expression"))).field("value",f(e("Expression"),e("Pattern"))).field("method",Boolean,g["false"]).field("shorthand",Boolean,g["false"]).field("computed",Boolean,g["false"]),e("PropertyPattern").bases("Pattern").build("key","pattern").field("key",f(e("Literal"),e("Identifier"),e("Expression"))).field("pattern",e("Pattern")).field("computed",Boolean,g["false"]),e("ObjectPattern").bases("Pattern").build("properties").field("properties",[f(e("PropertyPattern"),e("Property"))]),e("ArrayPattern").bases("Pattern").build("elements").field("elements",[f(e("Pattern"),null)]),e("MethodDefinition").bases("Declaration").build("kind","key","value","static").field("kind",f("constructor","method","get","set")).field("key",f(e("Literal"),e("Identifier"),e("Expression"))).field("value",e("Function")).field("computed",Boolean,g["false"]).field("static",Boolean,g["false"]),e("SpreadElement").bases("Node").build("argument").field("argument",e("Expression")),e("ArrayExpression").field("elements",[f(e("Expression"),e("SpreadElement"),null)]),e("NewExpression").field("arguments",[f(e("Expression"),e("SpreadElement"))]),e("CallExpression").field("arguments",[f(e("Expression"),e("SpreadElement"))]),e("AssignmentPattern").bases("Pattern").build("left","right").field("left",e("Pattern")).field("right",e("Expression"));var h=f(e("MethodDefinition"),e("VariableDeclarator"),e("ClassPropertyDefinition"),e("ClassProperty"));e("ClassProperty").bases("Declaration").build("key").field("key",f(e("Literal"),e("Identifier"),e("Expression"))).field("computed",Boolean,g["false"]),e("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition",h),e("ClassBody").bases("Declaration").build("body").field("body",[h]),e("ClassDeclaration").bases("Declaration").build("id","body","superClass").field("id",f(e("Identifier"),null)).field("body",e("ClassBody")).field("superClass",f(e("Expression"),null),g["null"]),e("ClassExpression").bases("Expression").build("id","body","superClass").field("id",f(e("Identifier"),null),g["null"]).field("body",e("ClassBody")).field("superClass",f(e("Expression"),null),g["null"]).field("implements",[e("ClassImplements")],g.emptyArray),e("ClassImplements").bases("Node").build("id").field("id",e("Identifier")).field("superClass",f(e("Expression"),null),g["null"]),e("Specifier").bases("Node"),e("TaggedTemplateExpression").bases("Expression").build("tag","quasi").field("tag",e("Expression")).field("quasi",e("TemplateLiteral")),e("TemplateLiteral").bases("Expression").build("quasis","expressions").field("quasis",[e("TemplateElement")]).field("expressions",[e("Expression")]),e("TemplateElement").bases("Node").build("value","tail").field("value",{cooked:String,raw:String}).field("tail",Boolean)},{"../lib/shared":212,"../lib/types":213,"./core":200}],203:[function(a,b,c){a("./es6");var d=a("../lib/types"),e=d.Type.def,f=d.Type.or,g=(d.builtInTypes,a("../lib/shared").defaults);e("Function").field("async",Boolean,g["false"]),e("SpreadProperty").bases("Node").build("argument").field("argument",e("Expression")),e("ObjectExpression").field("properties",[f(e("Property"),e("SpreadProperty"))]),e("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",e("Pattern")),e("ObjectPattern").field("properties",[f(e("Property"),e("PropertyPattern"),e("SpreadPropertyPattern"))]),e("AwaitExpression").bases("Expression").build("argument","all").field("argument",f(e("Expression"),null)).field("all",Boolean,g["false"])},{"../lib/shared":212,"../lib/types":213,"./es6":202}],204:[function(a,b,c){a("./es7");var d=a("../lib/types"),e=a("../lib/shared").defaults,f=d.Type.def,g=d.Type.or;f("VariableDeclaration").field("declarations",[g(f("VariableDeclarator"),f("Identifier"))]),f("Property").field("value",g(f("Expression"),f("Pattern"))),f("ArrayPattern").field("elements",[g(f("Pattern"),f("SpreadElement"),null)]),f("ObjectPattern").field("properties",[g(f("Property"),f("PropertyPattern"),f("SpreadPropertyPattern"),f("SpreadProperty"))]),f("NamedSpecifier").bases("Specifier").field("id",f("Identifier")).field("name",g(f("Identifier"),null),e["null"]),f("ExportSpecifier").bases("NamedSpecifier").build("id","name"),f("ExportBatchSpecifier").bases("Specifier").build(),f("ImportSpecifier").bases("NamedSpecifier").build("id","name"),f("ImportNamespaceSpecifier").bases("Specifier").build("id").field("id",f("Identifier")),f("ImportDefaultSpecifier").bases("Specifier").build("id").field("id",f("Identifier")),f("ExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",g(f("Declaration"),f("Expression"),null)).field("specifiers",[g(f("ExportSpecifier"),f("ExportBatchSpecifier"))],e.emptyArray).field("source",g(f("Literal"),null),e["null"]),f("ImportDeclaration").bases("Declaration").build("specifiers","source").field("specifiers",[g(f("ImportSpecifier"),f("ImportNamespaceSpecifier"),f("ImportDefaultSpecifier"))],e.emptyArray).field("source",f("Literal"))},{"../lib/shared":212,"../lib/types":213,"./es7":203}],205:[function(a,b,c){a("./es7");var d=a("../lib/types"),e=d.Type.def,f=d.Type.or,g=a("../lib/shared").defaults;e("JSXAttribute").bases("Node").build("name","value").field("name",f(e("JSXIdentifier"),e("JSXNamespacedName"))).field("value",f(e("Literal"),e("JSXExpressionContainer"),null),g["null"]),e("JSXIdentifier").bases("Identifier").build("name").field("name",String),e("JSXNamespacedName").bases("Node").build("namespace","name").field("namespace",e("JSXIdentifier")).field("name",e("JSXIdentifier")),e("JSXMemberExpression").bases("MemberExpression").build("object","property").field("object",f(e("JSXIdentifier"),e("JSXMemberExpression"))).field("property",e("JSXIdentifier")).field("computed",Boolean,g["false"]);var h=f(e("JSXIdentifier"),e("JSXNamespacedName"),e("JSXMemberExpression"));e("JSXSpreadAttribute").bases("Node").build("argument").field("argument",e("Expression"));var i=[f(e("JSXAttribute"),e("JSXSpreadAttribute"))];e("JSXExpressionContainer").bases("Expression").build("expression").field("expression",e("Expression")),e("JSXElement").bases("Expression").build("openingElement","closingElement","children").field("openingElement",e("JSXOpeningElement")).field("closingElement",f(e("JSXClosingElement"),null),g["null"]).field("children",[f(e("JSXElement"),e("JSXExpressionContainer"),e("JSXText"),e("Literal"))],g.emptyArray).field("name",h,function(){return this.openingElement.name}).field("selfClosing",Boolean,function(){return this.openingElement.selfClosing}).field("attributes",i,function(){return this.openingElement.attributes}),e("JSXOpeningElement").bases("Node").build("name","attributes","selfClosing").field("name",h).field("attributes",i,g.emptyArray).field("selfClosing",Boolean,g["false"]),e("JSXClosingElement").bases("Node").build("name").field("name",h),e("JSXText").bases("Literal").build("value").field("value",String),e("JSXEmptyExpression").bases("Expression").build(),e("Type").bases("Node"),e("AnyTypeAnnotation").bases("Type").build(),e("MixedTypeAnnotation").bases("Type").build(),e("VoidTypeAnnotation").bases("Type").build(),e("NumberTypeAnnotation").bases("Type").build(),e("NumberLiteralTypeAnnotation").bases("Type").build("value","raw").field("value",Number).field("raw",String),e("StringTypeAnnotation").bases("Type").build(),e("StringLiteralTypeAnnotation").bases("Type").build("value","raw").field("value",String).field("raw",String),e("BooleanTypeAnnotation").bases("Type").build(),e("BooleanLiteralTypeAnnotation").bases("Type").build("value","raw").field("value",Boolean).field("raw",String),e("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",e("Type")),e("NullableTypeAnnotation").bases("Type").build("typeAnnotation").field("typeAnnotation",e("Type")),e("FunctionTypeAnnotation").bases("Type").build("params","returnType","rest","typeParameters").field("params",[e("FunctionTypeParam")]).field("returnType",e("Type")).field("rest",f(e("FunctionTypeParam"),null)).field("typeParameters",f(e("TypeParameterDeclaration"),null)),e("FunctionTypeParam").bases("Node").build("name","typeAnnotation","optional").field("name",e("Identifier")).field("typeAnnotation",e("Type")).field("optional",Boolean),e("ArrayTypeAnnotation").bases("Type").build("elementType").field("elementType",e("Type")),e("ObjectTypeAnnotation").bases("Type").build("properties").field("properties",[e("ObjectTypeProperty")]).field("indexers",[e("ObjectTypeIndexer")],g.emptyArray).field("callProperties",[e("ObjectTypeCallProperty")],g.emptyArray),e("ObjectTypeProperty").bases("Node").build("key","value","optional").field("key",f(e("Literal"),e("Identifier"))).field("value",e("Type")).field("optional",Boolean),e("ObjectTypeIndexer").bases("Node").build("id","key","value").field("id",e("Identifier")).field("key",e("Type")).field("value",e("Type")),e("ObjectTypeCallProperty").bases("Node").build("value").field("value",e("FunctionTypeAnnotation")).field("static",Boolean,!1),e("QualifiedTypeIdentifier").bases("Node").build("qualification","id").field("qualification",f(e("Identifier"),e("QualifiedTypeIdentifier"))).field("id",e("Identifier")),e("GenericTypeAnnotation").bases("Type").build("id","typeParameters").field("id",f(e("Identifier"),e("QualifiedTypeIdentifier"))).field("typeParameters",f(e("TypeParameterInstantiation"),null)),e("MemberTypeAnnotation").bases("Type").build("object","property").field("object",e("Identifier")).field("property",f(e("MemberTypeAnnotation"),e("GenericTypeAnnotation"))),e("UnionTypeAnnotation").bases("Type").build("types").field("types",[e("Type")]),e("IntersectionTypeAnnotation").bases("Type").build("types").field("types",[e("Type")]),e("TypeofTypeAnnotation").bases("Type").build("argument").field("argument",e("Type")),e("Identifier").field("typeAnnotation",f(e("TypeAnnotation"),null),g["null"]),e("TypeParameterDeclaration").bases("Node").build("params").field("params",[e("Identifier")]),e("TypeParameterInstantiation").bases("Node").build("params").field("params",[e("Type")]),e("Function").field("returnType",f(e("TypeAnnotation"),null),g["null"]).field("typeParameters",f(e("TypeParameterDeclaration"),null),g["null"]),e("ClassProperty").build("key","typeAnnotation").field("typeAnnotation",e("TypeAnnotation")).field("static",Boolean,!1),e("ClassImplements").field("typeParameters",f(e("TypeParameterInstantiation"),null),g["null"]),e("InterfaceDeclaration").bases("Statement").build("id","body","extends").field("id",e("Identifier")).field("typeParameters",f(e("TypeParameterDeclaration"),null),g["null"]).field("body",e("ObjectTypeAnnotation")).field("extends",[e("InterfaceExtends")]),e("InterfaceExtends").bases("Node").build("id").field("id",e("Identifier")).field("typeParameters",f(e("TypeParameterInstantiation"),null)), -e("TypeAlias").bases("Statement").build("id","typeParameters","right").field("id",e("Identifier")).field("typeParameters",f(e("TypeParameterDeclaration"),null)).field("right",e("Type")),e("TypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",e("Expression")).field("typeAnnotation",e("TypeAnnotation")),e("TupleTypeAnnotation").bases("Type").build("types").field("types",[e("Type")]),e("DeclareVariable").bases("Statement").build("id").field("id",e("Identifier")),e("DeclareFunction").bases("Statement").build("id").field("id",e("Identifier")),e("DeclareClass").bases("InterfaceDeclaration").build("id"),e("DeclareModule").bases("Statement").build("id","body").field("id",f(e("Identifier"),e("Literal"))).field("body",e("BlockStatement"))},{"../lib/shared":212,"../lib/types":213,"./es7":203}],206:[function(a,b,c){a("./core");var d=a("../lib/types"),e=d.Type.def,f=d.Type.or,g=a("../lib/shared"),h=g.geq,i=g.defaults;e("Function").field("body",f(e("BlockStatement"),e("Expression"))),e("ForInStatement").build("left","right","body","each").field("each",Boolean,i["false"]),e("ForOfStatement").bases("Statement").build("left","right","body").field("left",f(e("VariableDeclaration"),e("Expression"))).field("right",e("Expression")).field("body",e("Statement")),e("LetStatement").bases("Statement").build("head","body").field("head",[e("VariableDeclarator")]).field("body",e("Statement")),e("LetExpression").bases("Expression").build("head","body").field("head",[e("VariableDeclarator")]).field("body",e("Expression")),e("GraphExpression").bases("Expression").build("index","expression").field("index",h(0)).field("expression",e("Literal")),e("GraphIndexExpression").bases("Expression").build("index").field("index",h(0))},{"../lib/shared":212,"../lib/types":213,"./core":200}],207:[function(a,b,c){function d(a,b,c){return m.check(c)?c.length=0:c=null,f(a,b,c)}function e(a){return/[_$a-z][_$a-z0-9]*/i.test(a)?"."+a:"["+JSON.stringify(a)+"]"}function f(a,b,c){return a===b?!0:m.check(a)?g(a,b,c):n.check(a)?h(a,b,c):o.check(a)?o.check(b)&&+a===+b:p.check(a)?p.check(b)&&a.source===b.source&&a.global===b.global&&a.multiline===b.multiline&&a.ignoreCase===b.ignoreCase:a==b}function g(a,b,c){m.assert(a);var d=a.length;if(!m.check(b)||b.length!==d)return c&&c.push("length"),!1;for(var e=0;d>e;++e){if(c&&c.push(e),e in a!=e in b)return!1;if(!f(a[e],b[e],c))return!1;c&&i.strictEqual(c.pop(),e)}return!0}function h(a,b,c){if(n.assert(a),!n.check(b))return!1;if(a.type!==b.type)return c&&c.push("type"),!1;var d=k(a),e=d.length,g=k(b),h=g.length;if(e===h){for(var j=0;e>j;++j){var m=d[j],o=l(a,m),p=l(b,m);if(c&&c.push(m),!f(o,p,c))return!1;c&&i.strictEqual(c.pop(),m)}return!0}if(!c)return!1;var r=Object.create(null);for(j=0;e>j;++j)r[d[j]]=!0;for(j=0;h>j;++j){if(m=g[j],!q.call(r,m))return c.push(m),!1;delete r[m]}for(m in r){c.push(m);break}return!1}var i=a("assert"),j=a("../main"),k=j.getFieldNames,l=j.getFieldValue,m=j.builtInTypes.array,n=j.builtInTypes.object,o=j.builtInTypes.Date,p=j.builtInTypes.RegExp,q=Object.prototype.hasOwnProperty;d.assert=function(a,b){var c=[];d(a,b,c)||(0===c.length?i.strictEqual(a,b):i.ok(!1,"Nodes differ in the following path: "+c.map(e).join("")))},b.exports=d},{"../main":214,assert:1}],208:[function(a,b,c){function d(a,b,c){j.ok(this instanceof d),p.call(this,a,b,c)}function e(a){return l.BinaryExpression.check(a)||l.LogicalExpression.check(a)}function f(a){return l.CallExpression.check(a)?!0:o.check(a)?a.some(f):l.Node.check(a)?k.someField(a,function(a,b){return f(b)}):!1}function g(a){for(var b,c;a.parent;a=a.parent){if(b=a.node,c=a.parent.node,l.BlockStatement.check(c)&&"body"===a.parent.name&&0===a.name)return j.strictEqual(c.body[0],b),!0;if(l.ExpressionStatement.check(c)&&"expression"===a.name)return j.strictEqual(c.expression,b),!0;if(l.SequenceExpression.check(c)&&"expressions"===a.parent.name&&0===a.name)j.strictEqual(c.expressions[0],b);else if(l.CallExpression.check(c)&&"callee"===a.name)j.strictEqual(c.callee,b);else if(l.MemberExpression.check(c)&&"object"===a.name)j.strictEqual(c.object,b);else if(l.ConditionalExpression.check(c)&&"test"===a.name)j.strictEqual(c.test,b);else if(e(c)&&"left"===a.name)j.strictEqual(c.left,b);else{if(!l.UnaryExpression.check(c)||c.prefix||"argument"!==a.name)return!1;j.strictEqual(c.argument,b)}}return!0}function h(a){if(l.VariableDeclaration.check(a.node)){var b=a.get("declarations").value;if(!b||0===b.length)return a.prune()}else if(l.ExpressionStatement.check(a.node)){if(!a.get("expression").value)return a.prune()}else l.IfStatement.check(a.node)&&i(a);return a}function i(a){var b=a.get("test").value,c=a.get("alternate").value,d=a.get("consequent").value;if(d||c){if(!d&&c){var e=m.unaryExpression("!",b,!0);l.UnaryExpression.check(b)&&"!"===b.operator&&(e=b.argument),a.get("test").replace(e),a.get("consequent").replace(c),a.get("alternate").replace()}}else{var f=m.expressionStatement(b);a.replace(f)}}var j=a("assert"),k=a("./types"),l=k.namedTypes,m=k.builders,n=k.builtInTypes.number,o=k.builtInTypes.array,p=a("./path"),q=a("./scope");a("util").inherits(d,p);var r=d.prototype;Object.defineProperties(r,{node:{get:function(){return Object.defineProperty(this,"node",{configurable:!0,value:this._computeNode()}),this.node}},parent:{get:function(){return Object.defineProperty(this,"parent",{configurable:!0,value:this._computeParent()}),this.parent}},scope:{get:function(){return Object.defineProperty(this,"scope",{configurable:!0,value:this._computeScope()}),this.scope}}}),r.replace=function(){return delete this.node,delete this.parent,delete this.scope,p.prototype.replace.apply(this,arguments)},r.prune=function(){var a=this.parent;return this.replace(),h(a)},r._computeNode=function(){var a=this.value;if(l.Node.check(a))return a;var b=this.parentPath;return b&&b.node||null},r._computeParent=function(){var a=this.value,b=this.parentPath;if(!l.Node.check(a)){for(;b&&!l.Node.check(b.value);)b=b.parentPath;b&&(b=b.parentPath)}for(;b&&!l.Node.check(b.value);)b=b.parentPath;return b||null},r._computeScope=function(){var a=this.value,b=this.parentPath,c=b&&b.scope;return l.Node.check(a)&&q.isEstablishedBy(a)&&(c=new q(this,c)),c||null},r.getValueProperty=function(a){return k.getFieldValue(this.value,a)},r.needsParens=function(a){var b=this.parentPath;if(!b)return!1;var c=this.value;if(!l.Expression.check(c))return!1;if("Identifier"===c.type)return!1;for(;!l.Node.check(b.value);)if(b=b.parentPath,!b)return!1;var d=b.value;switch(c.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return"MemberExpression"===d.type&&"object"===this.name&&d.object===c;case"BinaryExpression":case"LogicalExpression":switch(d.type){case"CallExpression":return"callee"===this.name&&d.callee===c;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return!0;case"MemberExpression":return"object"===this.name&&d.object===c;case"BinaryExpression":case"LogicalExpression":var e=d.operator,b=s[e],g=c.operator,h=s[g];if(b>h)return!0;if(b===h&&"right"===this.name)return j.strictEqual(d.right,c),!0;default:return!1}case"SequenceExpression":switch(d.type){case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==this.name;default:return!0}case"YieldExpression":switch(d.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return!0;default:return!1}case"Literal":return"MemberExpression"===d.type&&n.check(c.value)&&"object"===this.name&&d.object===c;case"AssignmentExpression":case"ConditionalExpression":switch(d.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":return"callee"===this.name&&d.callee===c;case"ConditionalExpression":return"test"===this.name&&d.test===c;case"MemberExpression":return"object"===this.name&&d.object===c;default:return!1}default:if("NewExpression"===d.type&&"callee"===this.name&&d.callee===c)return f(c)}return a!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement()?!0:!1};var s={};[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach(function(a,b){a.forEach(function(a){s[a]=b})}),r.canBeFirstInStatement=function(){var a=this.node;return!l.FunctionExpression.check(a)&&!l.ObjectExpression.check(a)},r.firstInStatement=function(){return g(this)},b.exports=d},{"./path":210,"./scope":211,"./types":213,assert:1,util:27}],209:[function(a,b,c){function d(){j.ok(this instanceof d),this._reusableContextStack=[],this._methodNameTable=e(this),this._shouldVisitComments=q.call(this._methodNameTable,"Block")||q.call(this._methodNameTable,"Line"),this.Context=h(this),this._visiting=!1,this._changeReported=!1}function e(a){var b=Object.create(null);for(var c in a)/^visit[A-Z]/.test(c)&&(b[c.slice("visit".length)]=!0);for(var d=k.computeSupertypeLookupTable(b),e=Object.create(null),b=Object.keys(d),f=b.length,g=0;f>g;++g){var h=b[g];c="visit"+d[h],p.check(a[c])&&(e[h]=c)}return e}function f(a,b){for(var c in b)q.call(b,c)&&(a[c]=b[c]);return a}function g(a,b){j.ok(a instanceof l),j.ok(b instanceof d);var c=a.value;if(n.check(c))a.each(b.visitWithoutReset,b);else if(o.check(c)){var e=k.getFieldNames(c);b._shouldVisitComments&&c.comments&&e.indexOf("comments")<0&&e.push("comments");for(var f=e.length,g=[],h=0;f>h;++h){var i=e[h];q.call(c,i)||(c[i]=k.getFieldValue(c,i)),g.push(a.get(i))}for(var h=0;f>h;++h)b.visitWithoutReset(g[h])}else;return a.value}function h(a){function b(c){j.ok(this instanceof b),j.ok(this instanceof d),j.ok(c instanceof l),Object.defineProperty(this,"visitor",{value:a,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=c,this.needToCallTraverse=!0,Object.seal(this)}j.ok(a instanceof d);var c=b.prototype=Object.create(a);return c.constructor=b,f(c,t),b}var i,j=a("assert"),k=a("./types"),l=a("./node-path"),m=k.namedTypes.Printable,n=k.builtInTypes.array,o=k.builtInTypes.object,p=k.builtInTypes["function"],q=Object.prototype.hasOwnProperty;d.fromMethodsObject=function(a){function b(){j.ok(this instanceof b),d.call(this)}if(a instanceof d)return a;if(!o.check(a))return new d;var c=b.prototype=Object.create(r);return c.constructor=b,f(c,a),f(b,d),p.assert(b.fromMethodsObject),p.assert(b.visit),new b},d.visit=function(a,b){return d.fromMethodsObject(b).visit(a)};var r=d.prototype,s=["Recursively calling visitor.visit(path) resets visitor state.","Try this.visit(path) or this.traverse(path) instead."].join(" ");r.visit=function(){j.ok(!this._visiting,s),this._visiting=!0,this._changeReported=!1,this._abortRequested=!1;for(var a=arguments.length,b=new Array(a),c=0;a>c;++c)b[c]=arguments[c];b[0]instanceof l||(b[0]=new l({root:b[0]}).get("root")),this.reset.apply(this,b);try{var d=this.visitWithoutReset(b[0]),e=!0}finally{if(this._visiting=!1,!e&&this._abortRequested)return b[0].value}return d},r.AbortRequest=function(){},r.abort=function(){var a=this;a._abortRequested=!0;var b=new a.AbortRequest;throw b.cancel=function(){a._abortRequested=!1},b},r.reset=function(a){},r.visitWithoutReset=function(a){if(this instanceof this.Context)return this.visitor.visitWithoutReset(a);j.ok(a instanceof l);var b=a.value,c=m.check(b)&&this._methodNameTable[b.type];if(!c)return g(a,this);var d=this.acquireContext(a);try{return d.invokeVisitorMethod(c)}finally{this.releaseContext(d)}},r.acquireContext=function(a){return 0===this._reusableContextStack.length?new this.Context(a):this._reusableContextStack.pop().reset(a)},r.releaseContext=function(a){j.ok(a instanceof this.Context),this._reusableContextStack.push(a),a.currentPath=null},r.reportChanged=function(){this._changeReported=!0},r.wasChangeReported=function(){return this._changeReported};var t=Object.create(null);t.reset=function(a){return j.ok(this instanceof this.Context),j.ok(a instanceof l),this.currentPath=a,this.needToCallTraverse=!0,this},t.invokeVisitorMethod=function(a){j.ok(this instanceof this.Context),j.ok(this.currentPath instanceof l);var b=this.visitor[a].call(this,this.currentPath);b===!1?this.needToCallTraverse=!1:b!==i&&(this.currentPath=this.currentPath.replace(b)[0],this.needToCallTraverse&&this.traverse(this.currentPath)),j.strictEqual(this.needToCallTraverse,!1,"Must either call this.traverse or return false in "+a);var c=this.currentPath;return c&&c.value},t.traverse=function(a,b){return j.ok(this instanceof this.Context),j.ok(a instanceof l),j.ok(this.currentPath instanceof l),this.needToCallTraverse=!1,g(a,d.fromMethodsObject(b||this.visitor))},t.visit=function(a,b){return j.ok(this instanceof this.Context),j.ok(a instanceof l),j.ok(this.currentPath instanceof l),this.needToCallTraverse=!1,d.fromMethodsObject(b||this.visitor).visitWithoutReset(a)},t.reportChanged=function(){this.visitor.reportChanged()},t.abort=function(){this.needToCallTraverse=!1,this.visitor.abort()},b.exports=d},{"./node-path":208,"./types":213,assert:1}],210:[function(a,b,c){function d(a,b,c){j.ok(this instanceof d),b?j.ok(b instanceof d):(b=null,c=null),this.value=a,this.parentPath=b,this.name=c,this.__childCache=null}function e(a){return a.__childCache||(a.__childCache=Object.create(null))}function f(a,b){var c=e(a),d=a.getValueProperty(b),f=c[b];return l.call(c,b)&&f.value===d||(f=c[b]=new a.constructor(d,a,b)),f}function g(){}function h(a,b,c,d){if(n.assert(a.value),0===b)return g;var f=a.value.length;if(1>f)return g;var h=arguments.length;2===h?(c=0,d=f):3===h?(c=Math.max(c,0),d=f):(c=Math.max(c,0),d=Math.min(d,f)),o.assert(c),o.assert(d);for(var i=Object.create(null),k=e(a),m=c;d>m;++m)if(l.call(a.value,m)){var p=a.get(m);j.strictEqual(p.name,m);var q=m+b;p.name=q,i[q]=p,delete k[m]}return delete k.length,function(){for(var b in i){var c=i[b];j.strictEqual(c.name,+b),k[b]=c,a.value[b]=c.value}}}function i(a){j.ok(a instanceof d);var b=a.parentPath;if(!b)return a;var c=b.value,f=e(b);if(c[a.name]===a.value)f[a.name]=a;else if(n.check(c)){var g=c.indexOf(a.value);g>=0&&(f[a.name=g]=a)}else c[a.name]=a.value,f[a.name]=a;return j.strictEqual(c[a.name],a.value),j.strictEqual(a.parentPath.get(a.name),a),a}var j=a("assert"),k=Object.prototype,l=k.hasOwnProperty,m=a("./types"),n=m.builtInTypes.array,o=m.builtInTypes.number,p=Array.prototype,q=(p.slice,p.map,d.prototype);q.getValueProperty=function(a){return this.value[a]},q.get=function(a){for(var b=this,c=arguments,d=c.length,e=0;d>e;++e)b=f(b,c[e]);return b},q.each=function(a,b){for(var c=[],d=this.value.length,e=0,e=0;d>e;++e)l.call(this.value,e)&&(c[e]=this.get(e));for(b=b||this,e=0;d>e;++e)l.call(c,e)&&a.call(b,c[e])},q.map=function(a,b){var c=[];return this.each(function(b){c.push(a.call(this,b))},b),c},q.filter=function(a,b){var c=[];return this.each(function(b){a.call(this,b)&&c.push(b)},b),c},q.shift=function(){var a=h(this,-1),b=this.value.shift();return a(),b},q.unshift=function(a){var b=h(this,arguments.length),c=this.value.unshift.apply(this.value,arguments);return b(),c},q.push=function(a){return n.assert(this.value),delete e(this).length,this.value.push.apply(this.value,arguments)},q.pop=function(){n.assert(this.value);var a=e(this);return delete a[this.value.length-1],delete a.length,this.value.pop()},q.insertAt=function(a,b){var c=arguments.length,d=h(this,c-1,a);if(d===g)return this;a=Math.max(a,0);for(var e=1;c>e;++e)this.value[a+e-1]=arguments[e];return d(),this},q.insertBefore=function(a){for(var b=this.parentPath,c=arguments.length,d=[this.name],e=0;c>e;++e)d.push(arguments[e]);return b.insertAt.apply(b,d)},q.insertAfter=function(a){for(var b=this.parentPath,c=arguments.length,d=[this.name+1],e=0;c>e;++e)d.push(arguments[e]);return b.insertAt.apply(b,d)},q.replace=function(a){var b=[],c=this.parentPath.value,d=e(this.parentPath),f=arguments.length;if(i(this),n.check(c)){for(var g=c.length,k=h(this.parentPath,f-1,this.name+1),l=[this.name,1],m=0;f>m;++m)l.push(arguments[m]);var o=c.splice.apply(c,l);if(j.strictEqual(o[0],this.value),j.strictEqual(c.length,g-1+f),k(),0===f)delete this.value,delete d[this.name],this.__childCache=null;else{for(j.strictEqual(c[this.name],a),this.value!==a&&(this.value=a,this.__childCache=null),m=0;f>m;++m)b.push(this.parentPath.get(this.name+m));j.strictEqual(b[0],this)}}else 1===f?(this.value!==a&&(this.__childCache=null),this.value=c[this.name]=a,b.push(this)):0===f?(delete c[this.name],delete this.value,this.__childCache=null):j.ok(!1,"Could not replace path");return b},b.exports=d},{"./types":213,assert:1}],211:[function(a,b,c){function d(b,c){i.ok(this instanceof d),i.ok(b instanceof a("./node-path")),s.assert(b.value);var e;c?(i.ok(c instanceof d),e=c.depth+1):(c=null,e=0),Object.defineProperties(this,{path:{value:b},node:{value:b.value},isGlobal:{value:!c,enumerable:!0},depth:{value:e},parent:{value:c},bindings:{value:{}}})}function e(a,b){var c=a.value;s.assert(c),l.CatchClause.check(c)?h(a.get("param"),b):f(a,b)}function f(a,b){var c=a.value;a.parent&&l.FunctionExpression.check(a.parent.node)&&a.parent.node.id&&h(a.parent.get("id"),b),c&&(o.check(c)?a.each(function(a){g(a,b)}):l.Function.check(c)?(a.get("params").each(function(a){h(a,b)}),g(a.get("body"),b)):l.VariableDeclarator.check(c)?(h(a.get("id"),b),g(a.get("init"),b)):"ImportSpecifier"===c.type||"ImportNamespaceSpecifier"===c.type||"ImportDefaultSpecifier"===c.type?h(a.get(c.local?"local":c.name?"name":"id"),b):m.check(c)&&!n.check(c)&&j.eachField(c,function(c,d){var e=a.get(c);i.strictEqual(e.value,d),g(e,b)}))}function g(a,b){var c=a.value;if(!c||n.check(c));else if(l.FunctionDeclaration.check(c))h(a.get("id"),b);else if(l.ClassDeclaration&&l.ClassDeclaration.check(c))h(a.get("id"),b);else if(s.check(c)){if(l.CatchClause.check(c)){var d=c.param.name,e=p.call(b,d);f(a.get("body"),b),e||delete b[d]}}else f(a,b)}function h(a,b){var c=a.value;l.Pattern.assert(c),l.Identifier.check(c)?p.call(b,c.name)?b[c.name].push(a):b[c.name]=[a]:l.ObjectPattern&&l.ObjectPattern.check(c)?a.get("properties").each(function(a){var c=a.value;l.Pattern.check(c)?h(a,b):l.Property.check(c)?h(a.get("value"),b):l.SpreadProperty&&l.SpreadProperty.check(c)&&h(a.get("argument"),b)}):l.ArrayPattern&&l.ArrayPattern.check(c)?a.get("elements").each(function(a){var c=a.value;l.Pattern.check(c)?h(a,b):l.SpreadElement&&l.SpreadElement.check(c)&&h(a.get("argument"),b)}):l.PropertyPattern&&l.PropertyPattern.check(c)?h(a.get("pattern"),b):(l.SpreadElementPattern&&l.SpreadElementPattern.check(c)||l.SpreadPropertyPattern&&l.SpreadPropertyPattern.check(c))&&h(a.get("argument"),b)}var i=a("assert"),j=a("./types"),k=j.Type,l=j.namedTypes,m=l.Node,n=l.Expression,o=j.builtInTypes.array,p=Object.prototype.hasOwnProperty,q=j.builders,r=[l.Program,l.Function,l.CatchClause],s=k.or.apply(k,r);d.isEstablishedBy=function(a){return s.check(a)};var t=d.prototype;t.didScan=!1,t.declares=function(a){return this.scan(),p.call(this.bindings,a)},t.declareTemporary=function(a){a?i.ok(/^[a-z$_]/i.test(a),a):a="t$",a+=this.depth.toString(36)+"$",this.scan();for(var b=0;this.declares(a+b);)++b;var c=a+b;return this.bindings[c]=j.builders.identifier(c)},t.injectTemporary=function(a,b){a||(a=this.declareTemporary());var c=this.path.get("body");return l.BlockStatement.check(c.value)&&(c=c.get("body")),c.unshift(q.variableDeclaration("var",[q.variableDeclarator(a,b||null)])),a},t.scan=function(a){if(a||!this.didScan){for(var b in this.bindings)delete this.bindings[b];e(this.path,this.bindings),this.didScan=!0}},t.getBindings=function(){return this.scan(),this.bindings},t.lookup=function(a){for(var b=this;b&&!b.declares(a);b=b.parent);return b},t.getGlobalScope=function(){for(var a=this;!a.isGlobal;)a=a.parent;return a},b.exports=d},{"./node-path":208,"./types":213,assert:1}],212:[function(a,b,c){var d=a("../lib/types"),e=d.Type,f=d.builtInTypes,g=f.number;c.geq=function(a){return new e(function(b){return g.check(b)&&b>=a},g+" >= "+a)},c.defaults={"null":function(){return null},emptyArray:function(){return[]},"false":function(){return!1},"true":function(){return!0},undefined:function(){}};var h=e.or(f.string,f.number,f["boolean"],f["null"],f.undefined);c.isPrimitive=new e(function(a){if(null===a)return!0;var b=typeof a;return!("object"===b||"function"===b)},h.toString())},{"../lib/types":213}],213:[function(a,b,c){function d(a,b){var c=this;q.ok(c instanceof d,c),q.strictEqual(u.call(a),v,a+" is not a function");var e=u.call(b);q.ok(e===v||e===w,b+" is neither a function nor a string"),Object.defineProperties(c,{name:{value:b},check:{value:function(b,d){var e=a.call(c,b,d);return!e&&d&&u.call(d)===v&&d(c,b),e}}})}function e(a){return F.check(a)?"{"+Object.keys(a).map(function(b){return b+": "+a[b]}).join(", ")+"}":E.check(a)?"["+a.map(e).join(", ")+"]":JSON.stringify(a)}function f(a,b){var c=u.call(a),e=new d(function(a){return u.call(a)===c},b);return B[b]=e,a&&"function"==typeof a.constructor&&(z.push(a.constructor),A.push(e)),e}function g(a,b){if(a instanceof d)return a;if(a instanceof i)return a.type;if(E.check(a))return d.fromArray(a);if(F.check(a))return d.fromObject(a);if(D.check(a)){var c=z.indexOf(a);return c>=0?A[c]:new d(a,b)}return new d(function(b){return b===a},H.check(b)?function(){return a+""}:b)}function h(a,b,c,d){var e=this;q.ok(e instanceof h),C.assert(a),b=g(b);var f={name:{value:a},type:{value:b},hidden:{value:!!d}};D.check(c)&&(f.defaultFn={value:c}),Object.defineProperties(e,f)}function i(a){var b=this;q.ok(b instanceof i),Object.defineProperties(b,{typeName:{value:a},baseNames:{value:[]},ownFields:{value:Object.create(null)},allSupertypes:{value:Object.create(null)},supertypeList:{value:[]},allFields:{value:Object.create(null)},fieldNames:{value:[]},type:{value:new d(function(a,c){return b.check(a,c)},a)}})}function j(a){return a.replace(/^[A-Z]+/,function(a){var b=a.length;switch(b){case 0:return"";case 1:return a.toLowerCase();default:return a.slice(0,b-1).toLowerCase()+a.charAt(b-1)}})}function k(a){return a=j(a),a.replace(/(Expression)?$/,"Statement")}function l(a){var b=i.fromValue(a);return b?b.fieldNames.slice(0):("type"in a&&q.ok(!1,"did not recognize object of type "+JSON.stringify(a.type)),Object.keys(a))}function m(a,b){var c=i.fromValue(a);if(c){var d=c.allFields[b];if(d)return d.getValue(a)}return a[b]}function n(a){var b=k(a);if(!L[b]){var c=L[j(a)];c&&(L[b]=function(){return L.expressionStatement(c.apply(L,arguments))})}}function o(a,b){b.length=0,b.push(a);for(var c=Object.create(null),d=0;dg;++g)x.call(b,g)&&(b[f++]=b[g]);b.length=f}function p(a,b){return Object.keys(b).forEach(function(c){a[c]=b[c]}),a}var q=a("assert"),r=Array.prototype,s=r.slice,t=(r.map,r.forEach,Object.prototype),u=t.toString,v=u.call(function(){}),w=u.call(""),x=t.hasOwnProperty,y=d.prototype;c.Type=d,y.assert=function(a,b){if(!this.check(a,b)){var c=e(a);return q.ok(!1,c+" does not match type "+this),!1}return!0},y.toString=function(){var a=this.name;return C.check(a)?a:D.check(a)?a.call(this)+"":a+" type"};var z=[],A=[],B={};c.builtInTypes=B;var C=f("truthy","string"),D=f(function(){},"function"),E=f([],"array"),F=f({},"object"),G=(f(/./,"RegExp"),f(new Date,"Date"),f(3,"number")),H=(f(!0,"boolean"),f(null,"null"),f(void 0,"undefined"));d.or=function(){for(var a=[],b=arguments.length,c=0;b>c;++c)a.push(g(arguments[c]));return new d(function(c,d){for(var e=0;b>e;++e)if(a[e].check(c,d))return!0;return!1},function(){return a.join(" | ")})},d.fromArray=function(a){return q.ok(E.check(a)),q.strictEqual(a.length,1,"only one element type is permitted for typed arrays"),g(a[0]).arrayOf()},y.arrayOf=function(){var a=this;return new d(function(b,c){return E.check(b)&&b.every(function(b){return a.check(b,c)})},function(){return"["+a+"]"})},d.fromObject=function(a){var b=Object.keys(a).map(function(b){return new h(b,a[b])});return new d(function(a,c){return F.check(a)&&b.every(function(b){return b.type.check(a[b.name],c)})},function(){return"{ "+b.join(", ")+" }"})};var I=h.prototype;I.toString=function(){return JSON.stringify(this.name)+": "+this.type},I.getValue=function(a){var b=a[this.name];return H.check(b)?(this.defaultFn&&(b=this.defaultFn.call(a)),b):b},d.def=function(a){return C.assert(a),x.call(J,a)?J[a]:J[a]=new i(a)};var J=Object.create(null);i.fromValue=function(a){if(a&&"object"==typeof a){var b=a.type;if("string"==typeof b&&x.call(J,b)){var c=J[b];if(c.finalized)return c}}return null};var K=i.prototype;K.isSupertypeOf=function(a){return a instanceof i?(q.strictEqual(this.finalized,!0),q.strictEqual(a.finalized,!0),x.call(a.allSupertypes,this.typeName)):void q.ok(!1,a+" is not a Def")},c.getSupertypeNames=function(a){q.ok(x.call(J,a));var b=J[a];return q.strictEqual(b.finalized,!0),b.supertypeList.slice(1)},c.computeSupertypeLookupTable=function(a){for(var b={},c=Object.keys(J),d=c.length,e=0;d>e;++e){var f=c[e],g=J[f];q.strictEqual(g.finalized,!0,f);for(var h=0;hg)i=c[g];else if(j.defaultFn)i=j.defaultFn.call(f);else{var l="no value or default function given for field "+JSON.stringify(b)+" of "+a.typeName+"("+a.buildParams.map(function(a){return h[a]}).join(", ")+")";q.ok(!1,l)}k.check(i)||q.ok(!1,e(i)+" does not match field "+j+" of type "+a.typeName),f[b]=i}}var c=arguments,d=c.length,f=Object.create(M);return q.ok(a.finalized,"attempting to instantiate unfinalized type "+a.typeName),a.buildParams.forEach(function(a,c){b(a,c)}),Object.keys(a.allFields).forEach(function(a){b(a)}),q.strictEqual(f.type,a.typeName),f}}),a)},c.getBuilderName=j,c.getStatementBuilderName=k,K.field=function(a,b,c,d){return this.finalized?(console.error("Ignoring attempt to redefine field "+JSON.stringify(a)+" of finalized type "+JSON.stringify(this.typeName)),this):(this.ownFields[a]=new h(a,b,c,d),this)};var O={};c.namedTypes=O,c.getFieldNames=l,c.getFieldValue=m,c.eachField=function(a,b,c){l(a).forEach(function(c){b.call(this,c,m(a,c))},c)},c.someField=function(a,b,c){return l(a).some(function(c){return b.call(this,c,m(a,c))},c)},Object.defineProperty(K,"finalized",{value:!1}),K.finalize=function(){var a=this;if(!a.finalized){var b=a.allFields,c=a.allSupertypes;a.baseNames.forEach(function(d){var e=J[d];if(e instanceof i)e.finalize(),p(b,e.allFields),p(c,e.allSupertypes);else{var f="unknown supertype name "+JSON.stringify(d)+" for subtype "+JSON.stringify(a.typeName);q.ok(!1,f)}}),p(b,a.ownFields),c[a.typeName]=a,a.fieldNames.length=0;for(var d in b)x.call(b,d)&&!b[d].hidden&&a.fieldNames.push(d);Object.defineProperty(O,a.typeName,{enumerable:!0,value:a.type}),Object.defineProperty(a,"finalized",{value:!0}),o(a.typeName,a.supertypeList),a.buildable&&a.supertypeList.lastIndexOf("Expression")>=0&&n(a.typeName)}},c.finalize=function(){Object.keys(J).forEach(function(a){J[a].finalize()})}},{assert:1}],214:[function(a,b,c){var d=a("./lib/types");a("./def/core"),a("./def/es6"),a("./def/es7"),a("./def/mozilla"),a("./def/e4x"),a("./def/fb-harmony"),a("./def/esprima"),a("./def/babel"),d.finalize(),c.Type=d.Type,c.builtInTypes=d.builtInTypes,c.namedTypes=d.namedTypes,c.builders=d.builders,c.defineMethod=d.defineMethod,c.getFieldNames=d.getFieldNames,c.getFieldValue=d.getFieldValue,c.eachField=d.eachField,c.someField=d.someField,c.getSupertypeNames=d.getSupertypeNames,c.astNodesAreEquivalent=a("./lib/equiv"),c.finalize=d.finalize,c.NodePath=a("./lib/node-path"),c.PathVisitor=a("./lib/path-visitor"),c.visit=c.PathVisitor.visit},{"./def/babel":199,"./def/core":200,"./def/e4x":201,"./def/es6":202,"./def/es7":203,"./def/esprima":204,"./def/fb-harmony":205,"./def/mozilla":206,"./lib/equiv":207,"./lib/node-path":208,"./lib/path-visitor":209,"./lib/types":213}],215:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c["default"]=function(a){var b=a.Plugin,c=a.types;return new b("constant-folding",{metadata:{group:"builtin-prepass",experimental:!0},visitor:{AssignmentExpression:function(){var a=this.get("left");if(a.isIdentifier()){var b=this.scope.getBinding(a.node.name);if(b&&!b.hasDeoptValue){var c=this.get("right").evaluate();c.confident?b.setValue(c.value):b.deoptValue()}}},IfStatement:function(){var a=this.get("test").evaluate();return a.confident?void(a.value?this.skipKey("alternate"):this.skipKey("consequent")):this.skip()},Scopable:{enter:function(){var a=this.scope.getFunctionParent();for(var b in this.scope.bindings){var c=this.scope.bindings[b],d=!1,e=!0,f=!1,g=void 0;try{for(var h,i=c.constantViolations[Symbol.iterator]();!(e=(h=i.next()).done);e=!0){var j=h.value,k=j.scope.getFunctionParent();if(k!==a){d=!0;break}}}catch(l){f=!0,g=l}finally{try{!e&&i["return"]&&i["return"]()}finally{if(f)throw g}}d&&c.deoptValue()}},exit:function(){for(var a in this.scope.bindings){var b=this.scope.bindings[a];b.clearValue()}}},Expression:{exit:function(){var a=this.evaluate();return a.confident?c.valueToNode(a.value):void 0}}}})},b.exports=c["default"]},{}],216:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c["default"]=function(a){function b(a){if(d.isBlockStatement(a)){for(var b=!1,c=0;c1)&&e.constant&&"param"!==e.kind&&"module"!==e.kind){var f=e.path.node;if(d.isVariableDeclarator(f)&&(f=f.init),f&&c.isPure(f,!0)&&(!d.isClass(f)&&!d.isFunction(f)||e.path.scope.parent===c)&&!this.findParent(function(a){return a.node===f}))return d.toExpression(f),c.removeBinding(a.name),e.path.dangerouslyRemove(),f}},"ClassDeclaration|FunctionDeclaration":function(a,b,c){var d=c.getBinding(a.id.name);d&&!d.referenced&&this.dangerouslyRemove()},VariableDeclarator:function(a,b,c){d.isIdentifier(a.id)&&c.isPure(a.init,!0)&&e["ClassDeclaration|FunctionDeclaration"].apply(this,arguments)},ConditionalExpression:function(a){var b=this.get("test").evaluateTruthy();return b===!0?a.consequent:b===!1?a.alternate:void 0},BlockStatement:function(){for(var a=this.get("body"),b=!1,c=0;c=k||k>3||i>=k||(g=j,i=k)}var l;throw l=g?c.get("undeclaredVariableSuggestion",a.name,g):c.get("undeclaredVariable",a.name),this.errorWithNode(l,ReferenceError)}}}})},b.exports=c["default"]},{leven:371}],230:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c["default"]=function(a){var b=a.Plugin,c=a.types;return new b("undefined-to-void",{metadata:{group:"builtin-basic"},visitor:{ReferencedIdentifier:function(a,b){return"undefined"===a.name?c.unaryExpression("void",c.literal(0),!0):void 0}}})},b.exports=c["default"]},{}],231:[function(a,b,c){"use strict";var d=a("./tokentype"),e=a("./state"),f=a("./identifier"),g=e.Parser.prototype;g.checkPropClash=function(a,b){if(!(a.computed||a.method||a.shorthand)){var c=a.key,d=void 0;switch(c.type){case"Identifier":d=c.name;break;case"Literal":d=String(c.value);break;default:return}var e=a.kind;"__proto__"===d&&"init"===e&&(b.proto&&this.raise(c.start,"Redefinition of __proto__ property"),b.proto=!0)}},g.parseExpression=function(a,b){var c=this.start,e=this.startLoc,f=this.parseMaybeAssign(a,b);if(this.type===d.types.comma){var g=this.startNodeAt(c,e);for(g.expressions=[f];this.eat(d.types.comma);)g.expressions.push(this.parseMaybeAssign(a,b));return this.finishNode(g,"SequenceExpression")}return f},g.parseMaybeAssign=function(a,b,c){if(this.type===d.types._yield&&this.inGenerator)return this.parseYield();var e=void 0;b?e=!1:(b={start:0},e=!0);var f=this.start,g=this.startLoc;(this.type===d.types.parenL||this.type===d.types.name)&&(this.potentialArrowAt=this.start);var h=this.parseMaybeConditional(a,b);if(c&&(h=c.call(this,h,f,g)),this.type.isAssign){var i=this.startNodeAt(f,g);if(i.operator=this.value,i.left=this.type===d.types.eq?this.toAssignable(h):h,b.start=0,this.checkLVal(h),h.parenthesizedExpression){var j=void 0;"ObjectPattern"===h.type?j="`({a}) = 0` use `({a} = 0)`":"ArrayPattern"===h.type&&(j="`([a]) = 0` use `([a] = 0)`"),j&&this.raise(h.start,"You're trying to assign to a parenthesized expression, eg. instead of "+j)}return this.next(),i.right=this.parseMaybeAssign(a),this.finishNode(i,"AssignmentExpression")}return e&&b.start&&this.unexpected(b.start),h},g.parseMaybeConditional=function(a,b){var c=this.start,e=this.startLoc,f=this.parseExprOps(a,b);if(b&&b.start)return f;if(this.eat(d.types.question)){var g=this.startNodeAt(c,e);return g.test=f,g.consequent=this.parseMaybeAssign(),this.expect(d.types.colon),g.alternate=this.parseMaybeAssign(a),this.finishNode(g,"ConditionalExpression")}return f},g.parseExprOps=function(a,b){var c=this.start,d=this.startLoc,e=this.parseMaybeUnary(b);return b&&b.start?e:this.parseExprOp(e,c,d,-1,a)},g.parseExprOp=function(a,b,c,e,f){var g=this.type.binop;if(null!=g&&(!f||this.type!==d.types._in)&&g>e){var h=this.startNodeAt(b,c);h.left=a,h.operator=this.value;var i=this.type;this.next();var j=this.start,k=this.startLoc;return h.right=this.parseExprOp(this.parseMaybeUnary(),j,k,i.rightAssociative?g-1:g,f),this.finishNode(h,i===d.types.logicalOR||i===d.types.logicalAND?"LogicalExpression":"BinaryExpression"),this.parseExprOp(h,b,c,e,f)}return a},g.parseMaybeUnary=function(a){if(this.type.prefix){var b=this.startNode(),c=this.type===d.types.incDec;return b.operator=this.value,b.prefix=!0,this.next(),b.argument=this.parseMaybeUnary(),a&&a.start&&this.unexpected(a.start),c?this.checkLVal(b.argument):this.strict&&"delete"===b.operator&&"Identifier"===b.argument.type&&this.raise(b.start,"Deleting local variable in strict mode"),this.finishNode(b,c?"UpdateExpression":"UnaryExpression")}var e=this.start,f=this.startLoc,g=this.parseExprSubscripts(a);if(a&&a.start)return g;for(;this.type.postfix&&!this.canInsertSemicolon();){var b=this.startNodeAt(e,f);b.operator=this.value,b.prefix=!1,b.argument=g,this.checkLVal(g),this.next(),g=this.finishNode(b,"UpdateExpression")}return g},g.parseExprSubscripts=function(a){var b=this.start,c=this.startLoc,d=this.parseExprAtom(a);return a&&a.start?d:this.parseSubscripts(d,b,c)},g.parseSubscripts=function(a,b,c,e){for(;;){if(!e&&this.eat(d.types.doubleColon)){var f=this.startNodeAt(b,c);return f.object=a,f.callee=this.parseNoCallExpr(),this.parseSubscripts(this.finishNode(f,"BindExpression"),b,c,e)}if(this.eat(d.types.dot)){var f=this.startNodeAt(b,c);f.object=a,f.property=this.parseIdent(!0),f.computed=!1,a=this.finishNode(f,"MemberExpression")}else if(this.eat(d.types.bracketL)){var f=this.startNodeAt(b,c);f.object=a,f.property=this.parseExpression(),f.computed=!0,this.expect(d.types.bracketR),a=this.finishNode(f,"MemberExpression")}else if(e||this.type!==d.types.parenL){if(this.type!==d.types.backQuote)return a;var f=this.startNodeAt(b,c);f.tag=a,f.quasi=this.parseTemplate(),a=this.finishNode(f,"TaggedTemplateExpression")}else{var g=!1;"Identifier"!==a.type||"async"!==a.name||this.canInsertSemicolon()||(g=!0),this.next();var f=this.startNodeAt(b,c);if(f.callee=a,f.arguments=this.parseExprList(d.types.parenR,this.options.features["es7.trailingFunctionCommas"]),a=this.finishNode(f,"CallExpression"),g&&(this.type===d.types.colon||this.type===d.types.arrow))return this.parseAsyncArrowFromCallExpression(this.startNodeAt(b,c),f)}}},g.parseAsyncArrowFromCallExpression=function(a,b){return this.options.features["es7.asyncFunctions"]||this.unexpected(),this.expect(d.types.arrow),this.parseArrowExpression(a,b.arguments,!0)},g.parseNoCallExpr=function(){var a=this.start,b=this.startLoc;return this.parseSubscripts(this.parseExprAtom(),a,b,!0)},g.parseExprAtom=function(a){var b=void 0,c=this.potentialArrowAt===this.start;switch(this.type){case d.types._super:this.inFunction||this.raise(this.start,"'super' outside of function or class");case d.types._this:var e=this.type===d.types._this?"ThisExpression":"Super";return b=this.startNode(),this.next(),this.finishNode(b,e);case d.types._yield:this.inGenerator&&this.unexpected();case d.types._do:if(this.options.features["es7.doExpressions"]){var f=this.startNode();this.next();var g=this.inFunction,h=this.labels;return this.labels=[],this.inFunction=!1,f.body=this.parseBlock(),this.inFunction=g,this.labels=h,this.finishNode(f,"DoExpression")}case d.types.name:b=this.startNode();var i=this.parseIdent(!0);if(this.options.features["es7.asyncFunctions"])if("await"===i.name){if(this.inAsync)return this.parseAwait(b)}else{if("async"===i.name&&this.type===d.types._function&&!this.canInsertSemicolon())return this.next(),this.parseFunction(b,!1,!1,!0);if("async"===i.name&&this.type===d.types.name){var j=[this.parseIdent()];return this.expect(d.types.arrow),this.parseArrowExpression(b,j,!0)}}return c&&!this.canInsertSemicolon()&&this.eat(d.types.arrow)?this.parseArrowExpression(b,[i]):i;case d.types.regexp:var k=this.value;return b=this.parseLiteral(k.value),b.regex={pattern:k.pattern,flags:k.flags},b;case d.types.num:case d.types.string:return this.parseLiteral(this.value);case d.types._null:case d.types._true:case d.types._false:return b=this.startNode(),b.value=this.type===d.types._null?null:this.type===d.types._true,b.raw=this.type.keyword,this.next(),this.finishNode(b,"Literal");case d.types.parenL:return this.parseParenAndDistinguishExpression(null,null,c);case d.types.bracketL:return b=this.startNode(),this.next(),this.options.features["es7.comprehensions"]&&this.type===d.types._for?this.parseComprehension(b,!1):(b.elements=this.parseExprList(d.types.bracketR,!0,!0,a),this.finishNode(b,"ArrayExpression"));case d.types.braceL:return this.parseObj(!1,a);case d.types._function:return b=this.startNode(),this.next(),this.parseFunction(b,!1);case d.types.at:this.parseDecorators();case d.types._class:return b=this.startNode(),this.takeDecorators(b),this.parseClass(b,!1);case d.types._new:return this.parseNew();case d.types.backQuote:return this.parseTemplate();case d.types.doubleColon:b=this.startNode(),this.next(),b.object=null;var l=b.callee=this.parseNoCallExpr();if("MemberExpression"===l.type)return this.finishNode(b,"BindExpression");this.raise(l.start,"Binding should be performed on object property.");default:this.unexpected()}},g.parseLiteral=function(a){var b=this.startNode();return b.value=a,b.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(b,"Literal")},g.parseParenExpression=function(){this.expect(d.types.parenL);var a=this.parseExpression();return this.expect(d.types.parenR),a},g.parseParenAndDistinguishExpression=function(a,b,c,e){a=a||this.start,b=b||this.startLoc;var f=void 0;if(this.next(),this.options.features["es7.comprehensions"]&&this.type===d.types._for)return this.parseComprehension(this.startNodeAt(a,b),!0);for(var g=this.start,h=this.startLoc,i=[],j=!0,k={start:0},l=void 0,m=void 0,n=void 0;this.type!==d.types.parenR;){if(j)j=!1;else if(this.expect(d.types.comma),this.type===d.types.parenR&&this.options.features["es7.trailingFunctionCommas"]){n=this.start;break}if(this.type===d.types.ellipsis){var o=this.start,p=this.startLoc;l=this.start,i.push(this.parseParenItem(this.parseRest(),p,o));break}this.type!==d.types.parenL||m||(m=this.start),i.push(this.parseMaybeAssign(!1,k,this.parseParenItem))}var q=this.start,r=this.startLoc;if(this.expect(d.types.parenR),c&&!this.canInsertSemicolon()&&this.eat(d.types.arrow))return m&&this.unexpected(m),this.parseParenArrowList(a,b,i,e);if(!i.length){if(e)return;this.unexpected(this.lastTokStart)}return n&&this.unexpected(n),l&&this.unexpected(l),k.start&&this.unexpected(k.start),i.length>1?(f=this.startNodeAt(g,h),f.expressions=i,this.finishNodeAt(f,"SequenceExpression",q,r)):f=i[0],f.parenthesizedExpression=!0,f},g.parseParenArrowList=function(a,b,c,d){return this.parseArrowExpression(this.startNodeAt(a,b),c,d)},g.parseParenItem=function(a){return a},g.parseNew=function(){var a=this.startNode(),b=this.parseIdent(!0);return this.eat(d.types.dot)?(a.meta=b,a.property=this.parseIdent(!0),"target"!==a.property.name&&this.raise(a.property.start,"The only valid meta property for new is new.target"),this.finishNode(a,"MetaProperty")):(a.callee=this.parseNoCallExpr(),this.eat(d.types.parenL)?a.arguments=this.parseExprList(d.types.parenR,this.options.features["es7.trailingFunctionCommas"]):a.arguments=[],this.finishNode(a,"NewExpression"))},g.parseTemplateElement=function(){var a=this.startNode();return a.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),a.tail=this.type===d.types.backQuote,this.finishNode(a,"TemplateElement")},g.parseTemplate=function(){var a=this.startNode();this.next(),a.expressions=[];var b=this.parseTemplateElement();for(a.quasis=[b];!b.tail;)this.expect(d.types.dollarBraceL),a.expressions.push(this.parseExpression()),this.expect(d.types.braceR),a.quasis.push(b=this.parseTemplateElement());return this.next(),this.finishNode(a,"TemplateLiteral")},g.parseObj=function(a,b){var c=this.startNode(),e=!0,f=Object.create(null);c.properties=[];var g=[];for(this.next();!this.eat(d.types.braceR);){if(e)e=!1;else if(this.expect(d.types.comma),this.afterTrailingComma(d.types.braceR))break;for(;this.type===d.types.at;)g.push(this.parseDecorator());var h=this.startNode(),i=!1,j=!1,k=void 0,l=void 0;if(g.length&&(h.decorators=g,g=[]),this.options.features["es7.objectRestSpread"]&&this.type===d.types.ellipsis)h=this.parseSpread(),h.type="SpreadProperty",c.properties.push(h);else{if(h.method=!1,h.shorthand=!1,(a||b)&&(k=this.start,l=this.startLoc),a||(i=this.eat(d.types.star)),this.options.features["es7.asyncFunctions"]&&this.isContextual("async")){(i||a)&&this.unexpected();var m=this.parseIdent();this.type===d.types.colon||this.type===d.types.parenL?h.key=m:(j=!0,this.parsePropertyName(h))}else this.parsePropertyName(h);this.parseObjPropValue(h,k,l,i,j,a,b),this.checkPropClash(h,f),c.properties.push(this.finishNode(h,"Property"))}}return g.length&&this.raise(this.start,"You have trailing decorators with no property"),this.finishNode(c,a?"ObjectPattern":"ObjectExpression")},g.parseObjPropValue=function(a,b,c,e,g,h,i){if(this.eat(d.types.colon))a.value=h?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,i),a.kind="init";else if(this.type===d.types.parenL)h&&this.unexpected(),a.kind="init",a.method=!0,a.value=this.parseMethod(e,g);else if(a.computed||"Identifier"!==a.key.type||"get"!==a.key.name&&"set"!==a.key.name||this.type===d.types.comma||this.type===d.types.braceR)a.computed||"Identifier"!==a.key.type?this.unexpected():(a.kind="init",h?((this.isKeyword(a.key.name)||this.strict&&(f.reservedWords.strictBind(a.key.name)||f.reservedWords.strict(a.key.name))||!this.options.allowReserved&&this.isReservedWord(a.key.name))&&this.raise(a.key.start,"Binding "+a.key.name),a.value=this.parseMaybeDefault(b,c,a.key.__clone())):this.type===d.types.eq&&i?(i.start||(i.start=this.start),a.value=this.parseMaybeDefault(b,c,a.key.__clone())):a.value=a.key.__clone(),a.shorthand=!0);else{(e||g||h)&&this.unexpected(),a.kind=a.key.name,this.parsePropertyName(a),a.value=this.parseMethod(!1);var j="get"===a.kind?0:1;if(a.value.params.length!==j){var k=a.value.start;"get"===a.kind?this.raise(k,"getter should have no params"):this.raise(k,"setter should have exactly one param")}}},g.parsePropertyName=function(a){return this.eat(d.types.bracketL)?(a.computed=!0,a.key=this.parseMaybeAssign(),this.expect(d.types.bracketR),a.key):(a.computed=!1,a.key=this.type===d.types.num||this.type===d.types.string?this.parseExprAtom():this.parseIdent(!0))},g.initFunction=function(a,b){a.id=null,a.generator=!1,a.expression=!1,this.options.features["es7.asyncFunctions"]&&(a.async=!!b)},g.parseMethod=function(a,b){var c=this.startNode();return this.initFunction(c,b),this.expect(d.types.parenL),c.params=this.parseBindingList(d.types.parenR,!1,this.options.features["es7.trailingFunctionCommas"]),c.generator=a,this.parseFunctionBody(c),this.finishNode(c,"FunctionExpression")},g.parseArrowExpression=function(a,b,c){return this.initFunction(a,c),a.params=this.toAssignableList(b,!0),this.parseFunctionBody(a,!0),this.finishNode(a,"ArrowFunctionExpression")},g.parseFunctionBody=function(a,b){var c=b&&this.type!==d.types.braceL,e=this.inAsync;if(this.inAsync=a.async,c)a.body=this.parseMaybeAssign(),a.expression=!0;else{var f=this.inFunction,g=this.inGenerator,h=this.labels;this.inFunction=!0,this.inGenerator=a.generator,this.labels=[],a.body=this.parseBlock(!0),a.expression=!1,this.inFunction=f,this.inGenerator=g,this.labels=h}if(this.inAsync=e,this.strict||!c&&a.body.body.length&&this.isUseStrict(a.body.body[0])){var i=Object.create(null),j=this.strict;this.strict=!0,a.id&&this.checkLVal(a.id,!0);for(var k=0;k=0}}function e(a,b){for(var c=65536,d=0;da)return!1;if(c+=b[d+1],c>=a)return!0}}function f(a,b){return 65>a?36===a:91>a?!0:97>a?95===a:123>a?!0:65535>=a?a>=170&&m.test(String.fromCharCode(a)):b===!1?!1:e(a,o)}function g(a,b){return 48>a?36===a:58>a?!0:65>a?!1:91>a?!0:97>a?95===a:123>a?!0:65535>=a?a>=170&&n.test(String.fromCharCode(a)):b===!1?!1:e(a,o)||e(a,p)}c.__esModule=!0,c.isIdentifierStart=f,c.isIdentifierChar=g;var h={3:d("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 throws transient volatile"),5:d("class enum extends super const export import"),6:d("enum await"),strict:d("implements interface let package private protected public static yield"),strictBind:d("eval arguments")};c.reservedWords=h;var i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",j={5:d(i),6:d(i+" let const class extends export import yield super")};c.keywords=j;var k="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢲऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",l="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏ᦰ-ᧀᧈᧉ᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷼-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︭︳︴﹍-﹏0-9_",m=new RegExp("["+k+"]"),n=new RegExp("["+k+l+"]");k=l=null;var o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,17,26,6,37,11,29,3,35,5,7,2,4,43,157,99,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,98,21,11,25,71,55,7,1,65,0,16,3,2,2,2,26,45,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,955,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,38,17,2,24,133,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,32,4,287,47,21,1,2,0,185,46,82,47,21,0,60,42,502,63,32,0,449,56,1288,920,104,110,2962,1070,13266,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,16481,1,3071,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,1340,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,16355,541],p=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,16,9,83,11,168,11,6,9,8,2,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,316,19,13,9,214,6,3,8,112,16,16,9,82,12,9,9,535,9,20855,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,4305,6,792618,239]; -},{}],233:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){return new f.Parser(g.getOptions(b),a).parse()}c.__esModule=!0,c.parse=e;var f=a("./state"),g=a("./options");a("./parseutil"),a("./statement"),a("./lval"),a("./expression"),a("./lookahead"),a("./tokentype"),a("./tokencontext");var h=a("./plugins/flow"),i=d(h),j=a("./plugins/jsx"),k=d(j);c.Parser=f.Parser,c.plugins=f.plugins,c.defaultOptions=g.defaultOptions;var l=a("./location");c.SourceLocation=l.SourceLocation,c.getLineInfo=l.getLineInfo;var m=a("./node");c.Node=m.Node;var n=a("./tokentype");c.TokenType=n.TokenType,c.tokTypes=n.types;var o=a("./tokencontext");c.TokContext=o.TokContext,c.tokContexts=o.types;var p=a("./identifier");c.isIdentifierChar=p.isIdentifierChar,c.isIdentifierStart=p.isIdentifierStart;var q=a("./tokenize");c.Token=q.Token;var r=a("./whitespace");c.isNewLine=r.isNewLine,c.lineBreak=r.lineBreak,c.lineBreakG=r.lineBreakG,f.plugins.flow=i["default"],f.plugins.jsx=k["default"]},{"./expression":231,"./identifier":232,"./location":234,"./lookahead":235,"./lval":236,"./node":237,"./options":238,"./parseutil":239,"./plugins/flow":240,"./plugins/jsx":241,"./state":243,"./statement":244,"./tokencontext":245,"./tokenize":246,"./tokentype":247,"./whitespace":249}],234:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){for(var c=1,d=0;;){g.lineBreakG.lastIndex=d;var e=g.lineBreakG.exec(a);if(!(e&&e.index",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪","int":"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},b.exports=c["default"]},{}],243:[function(a,b,c){"use strict";function d(a,b,c){this.options=a,this.sourceFile=this.options.sourceFile||null,this.isKeyword=e.keywords[6],this.isReservedWord=e.reservedWords[6],this.input=b,this.loadPlugins(this.options.plugins),c?(this.pos=c,this.lineStart=Math.max(0,this.input.lastIndexOf("\n",c)),this.curLine=this.input.slice(0,this.lineStart).split(g.lineBreak).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=f.types.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===this.options.sourceType,this.strict=this.options.strictMode===!1?!1:this.inModule,this.potentialArrowAt=-1,this.inFunction=this.inGenerator=!1,this.labels=[],this.decorators=[],0===this.pos&&this.options.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2)}c.__esModule=!0,c.Parser=d;var e=a("./identifier"),f=a("./tokentype"),g=a("./whitespace");d.prototype.extend=function(a,b){this[a]=b(this[a])};var h={};c.plugins=h,d.prototype.loadPlugins=function(a){for(var b in a){var d=c.plugins[b];if(!d)throw new Error("Plugin '"+b+"' not found");d(this,a[b])}},d.prototype.parse=function(){var a=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(a)}},{"./identifier":232,"./tokentype":247,"./whitespace":249}],244:[function(a,b,c){"use strict";var d=a("./tokentype"),e=a("./state"),f=a("./whitespace"),g=e.Parser.prototype;g.parseTopLevel=function(a){var b=!0;for(a.body||(a.body=[]);this.type!==d.types.eof;){var c=this.parseStatement(!0,!0);a.body.push(c),b&&(this.isUseStrict(c)&&this.setStrict(!0),b=!1)}return this.next(),a.sourceType=this.options.sourceType,this.finishNode(a,"Program")};var h={kind:"loop"},i={kind:"switch"};g.parseStatement=function(a,b){this.type===d.types.at&&this.parseDecorators(!0);var c=this.type,e=this.startNode();switch(c){case d.types._break:case d.types._continue:return this.parseBreakContinueStatement(e,c.keyword);case d.types._debugger:return this.parseDebuggerStatement(e);case d.types._do:return this.parseDoStatement(e);case d.types._for:return this.parseForStatement(e);case d.types._function:return a||this.unexpected(),this.parseFunctionStatement(e);case d.types._class:return a||this.unexpected(),this.takeDecorators(e),this.parseClass(e,!0);case d.types._if:return this.parseIfStatement(e);case d.types._return:return this.parseReturnStatement(e);case d.types._switch:return this.parseSwitchStatement(e);case d.types._throw:return this.parseThrowStatement(e);case d.types._try:return this.parseTryStatement(e);case d.types._let:case d.types._const:a||this.unexpected();case d.types._var:return this.parseVarStatement(e,c);case d.types._while:return this.parseWhileStatement(e);case d.types._with:return this.parseWithStatement(e);case d.types.braceL:return this.parseBlock();case d.types.semi:return this.parseEmptyStatement(e);case d.types._export:case d.types._import:return this.options.allowImportExportEverywhere||(b||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),c===d.types._import?this.parseImport(e):this.parseExport(e);case d.types.name:if(this.options.features["es7.asyncFunctions"]&&"async"===this.value){var f=this.lookahead();if(f.type===d.types._function&&!this.canInsertSemicolon.call(f))return this.next(),this.expect(d.types._function),this.parseFunction(e,!0,!1,!0)}default:var g=this.value,h=this.parseExpression();return c===d.types.name&&"Identifier"===h.type&&this.eat(d.types.colon)?this.parseLabeledStatement(e,g,h):this.parseExpressionStatement(e,h)}},g.takeDecorators=function(a){this.decorators.length&&(a.decorators=this.decorators,this.decorators=[])},g.parseDecorators=function(a){for(;this.type===d.types.at;)this.decorators.push(this.parseDecorator());a&&this.type===d.types._export||this.type!==d.types._class&&this.raise(this.start,"Leading decorators must be attached to a class declaration")},g.parseDecorator=function(){this.options.features["es7.decorators"]||this.unexpected();var a=this.startNode();return this.next(),a.expression=this.parseMaybeAssign(),this.finishNode(a,"Decorator")},g.parseBreakContinueStatement=function(a,b){var c="break"===b;this.next(),this.eat(d.types.semi)||this.insertSemicolon()?a.label=null:this.type!==d.types.name?this.unexpected():(a.label=this.parseIdent(),this.semicolon());for(var e=0;e=0;e--){var g=this.labels[e];if(g.statementStart!==a.start)break;g.statementStart=this.start,g.kind=f}return this.labels.push({name:b,kind:f,statementStart:this.start}),a.body=this.parseStatement(!0),this.labels.pop(),a.label=c,this.finishNode(a,"LabeledStatement")},g.parseExpressionStatement=function(a,b){return a.expression=b,this.semicolon(),this.finishNode(a,"ExpressionStatement")},g.parseBlock=function(a){var b=this.startNode(),c=!0,e=void 0;for(b.body=[],this.expect(d.types.braceL);!this.eat(d.types.braceR);){var f=this.parseStatement(!0);b.body.push(f),c&&a&&this.isUseStrict(f)&&(e=this.strict,this.setStrict(this.strict=!0)),c=!1}return e===!1&&this.setStrict(!1),this.finishNode(b,"BlockStatement")},g.parseFor=function(a,b){return a.init=b,this.expect(d.types.semi),a.test=this.type===d.types.semi?null:this.parseExpression(),this.expect(d.types.semi),a.update=this.type===d.types.parenR?null:this.parseExpression(),this.expect(d.types.parenR),a.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(a,"ForStatement")},g.parseForIn=function(a,b){var c=this.type===d.types._in?"ForInStatement":"ForOfStatement";return this.next(),a.left=b,a.right=this.parseExpression(),this.expect(d.types.parenR),a.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(a,c)},g.parseVar=function(a,b,c){for(a.declarations=[],a.kind=c.keyword;;){var e=this.startNode();if(this.parseVarHead(e),this.eat(d.types.eq)?e.init=this.parseMaybeAssign(b):c!==d.types._const||this.type===d.types._in||this.isContextual("of")?"Identifier"===e.id.type||b&&(this.type===d.types._in||this.isContextual("of"))?e.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),a.declarations.push(this.finishNode(e,"VariableDeclarator")),!this.eat(d.types.comma))break}return a},g.parseVarHead=function(a){a.id=this.parseBindingAtom(),this.checkLVal(a.id,!0)},g.parseFunction=function(a,b,c,e){return this.initFunction(a,e),a.generator=this.eat(d.types.star),(b||this.type===d.types.name)&&(a.id=this.parseIdent()),this.parseFunctionParams(a),this.parseFunctionBody(a,c),this.finishNode(a,b?"FunctionDeclaration":"FunctionExpression")},g.parseFunctionParams=function(a){this.expect(d.types.parenL),a.params=this.parseBindingList(d.types.parenR,!1,this.options.features["es7.trailingFunctionCommas"])},g.parseClass=function(a,b){this.next(),this.parseClassId(a,b),this.parseClassSuper(a);var c=this.startNode(),e=!1;c.body=[],this.expect(d.types.braceL);for(var f=[];!this.eat(d.types.braceR);)if(!this.eat(d.types.semi))if(this.type!==d.types.at){var g=this.startNode();f.length&&(g.decorators=f,f=[]);var h=this.type===d.types.name&&"static"===this.value,i=this.eat(d.types.star),j=!1;if(this.parsePropertyName(g),g["static"]=h&&this.type!==d.types.parenL,g["static"]&&(i&&this.unexpected(),i=this.eat(d.types.star),this.parsePropertyName(g)),i||"Identifier"!==g.key.type||g.computed||!this.isClassProperty()){this.options.features["es7.asyncFunctions"]&&this.type!==d.types.parenL&&!g.computed&&"Identifier"===g.key.type&&"async"===g.key.name&&(j=!0,this.parsePropertyName(g));var k=!1;if(g.kind="method",!g.computed){var l=g.key;j||i||"Identifier"!==l.type||this.type===d.types.parenL||"get"!==l.name&&"set"!==l.name||(k=!0,g.kind=l.name,l=this.parsePropertyName(g)),!g["static"]&&("Identifier"===l.type&&"constructor"===l.name||"Literal"===l.type&&"constructor"===l.value)&&(e&&this.raise(l.start,"Duplicate constructor in the same class"),k&&this.raise(l.start,"Constructor can't have get/set modifier"),i&&this.raise(l.start,"Constructor can't be a generator"),j&&this.raise(l.start,"Constructor can't be an async function"),g.kind="constructor",e=!0)}if("constructor"===g.kind&&g.decorators&&this.raise(g.start,"You can't attach decorators to a class constructor"),this.parseClassMethod(c,g,i,j),k){var m="get"===g.kind?0:1;if(g.value.params.length!==m){var n=g.value.start;"get"===g.kind?this.raise(n,"getter should have no params"):this.raise(n,"setter should have exactly one param")}}}else c.body.push(this.parseClassProperty(g))}else f.push(this.parseDecorator());return f.length&&this.raise(this.start,"You have trailing decorators with no method"),a.body=this.finishNode(c,"ClassBody"),this.finishNode(a,b?"ClassDeclaration":"ClassExpression")},g.isClassProperty=function(){return this.type===d.types.eq||this.type===d.types.semi||this.canInsertSemicolon()},g.parseClassProperty=function(a){return this.type===d.types.eq?(this.options.features["es7.classProperties"]||this.unexpected(),this.next(),a.value=this.parseMaybeAssign()):a.value=null,this.semicolon(),this.finishNode(a,"ClassProperty")},g.parseClassMethod=function(a,b,c,d){b.value=this.parseMethod(c,d),a.body.push(this.finishNode(b,"MethodDefinition"))},g.parseClassId=function(a,b){a.id=this.type===d.types.name?this.parseIdent():b?this.unexpected():null},g.parseClassSuper=function(a){a.superClass=this.eat(d.types._extends)?this.parseExprSubscripts():null},g.parseExport=function(a){if(this.next(),this.type===d.types.star){var b=this.startNode();if(this.next(),!this.options.features["es7.exportExtensions"]||!this.eatContextual("as"))return this.parseExportFrom(a),this.finishNode(a,"ExportAllDeclaration");b.exported=this.parseIdent(),a.specifiers=[this.finishNode(b,"ExportNamespaceSpecifier")],this.parseExportSpecifiersMaybe(a),this.parseExportFrom(a)}else if(this.options.features["es7.exportExtensions"]&&this.isExportDefaultSpecifier()){var b=this.startNode();if(b.exported=this.parseIdent(!0),a.specifiers=[this.finishNode(b,"ExportDefaultSpecifier")],this.type===d.types.comma&&this.lookahead().type===d.types.star){this.expect(d.types.comma);var c=this.startNode();this.expect(d.types.star),this.expectContextual("as"),c.exported=this.parseIdent(),a.specifiers.push(this.finishNode(c,"ExportNamespaceSpecifier"))}else this.parseExportSpecifiersMaybe(a);this.parseExportFrom(a)}else{if(this.eat(d.types._default)){var e=this.parseMaybeAssign(),f=!0;return("FunctionExpression"===e.type||"ClassExpression"===e.type)&&(f=!1,e.id&&(e.type="FunctionExpression"===e.type?"FunctionDeclaration":"ClassDeclaration")),a.declaration=e,f&&this.semicolon(),this.checkExport(a),this.finishNode(a,"ExportDefaultDeclaration")}this.type.keyword||this.shouldParseExportDeclaration()?(a.declaration=this.parseStatement(!0),a.specifiers=[],a.source=null):(a.declaration=null,a.specifiers=this.parseExportSpecifiers(),this.eatContextual("from")?a.source=this.type===d.types.string?this.parseExprAtom():this.unexpected():a.source=null,this.semicolon())}return this.checkExport(a),this.finishNode(a,"ExportNamedDeclaration")},g.isExportDefaultSpecifier=function(){if(this.type===d.types.name)return"type"!==this.value&&"async"!==this.value;if(this.type!==d.types._default)return!1;var a=this.lookahead();return a.type===d.types.comma||a.type===d.types.name&&"from"===a.value},g.parseExportSpecifiersMaybe=function(a){this.eat(d.types.comma)&&(a.specifiers=a.specifiers.concat(this.parseExportSpecifiers()))},g.parseExportFrom=function(a){this.expectContextual("from"),a.source=this.type===d.types.string?this.parseExprAtom():this.unexpected(),this.semicolon(),this.checkExport(a)},g.shouldParseExportDeclaration=function(){return this.options.features["es7.asyncFunctions"]&&this.isContextual("async")},g.checkExport=function(a){if(this.decorators.length){var b=a.declaration&&("ClassDeclaration"===a.declaration.type||"ClassExpression"===a.declaration.type);a.declaration&&b||this.raise(a.start,"You can only use decorators on an export when exporting a class"),this.takeDecorators(a.declaration)}},g.parseExportSpecifiers=function(){var a=[],b=!0;for(this.expect(d.types.braceL);!this.eat(d.types.braceR);){if(b)b=!1;else if(this.expect(d.types.comma),this.afterTrailingComma(d.types.braceR))break;var c=this.startNode();c.local=this.parseIdent(this.type===d.types._default),c.exported=this.eatContextual("as")?this.parseIdent(!0):c.local.__clone(),a.push(this.finishNode(c,"ExportSpecifier"))}return a},g.parseImport=function(a){return this.next(),this.type===d.types.string?(a.specifiers=[],a.source=this.parseExprAtom()):(a.specifiers=[],this.parseImportSpecifiers(a),this.expectContextual("from"),a.source=this.type===d.types.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(a,"ImportDeclaration")},g.parseImportSpecifiers=function(a){var b=!0;if(this.type===d.types.name){var c=this.start,e=this.startLoc;if(a.specifiers.push(this.parseImportSpecifierDefault(this.parseIdent(),c,e)),!this.eat(d.types.comma))return}if(this.type===d.types.star){var f=this.startNode();return this.next(),this.expectContextual("as"),f.local=this.parseIdent(),this.checkLVal(f.local,!0),void a.specifiers.push(this.finishNode(f,"ImportNamespaceSpecifier"))}for(this.expect(d.types.braceL);!this.eat(d.types.braceR);){if(b)b=!1;else if(this.expect(d.types.comma),this.afterTrailingComma(d.types.braceR))break;var f=this.startNode();f.imported=this.parseIdent(!0),f.local=this.eatContextual("as")?this.parseIdent():f.imported.__clone(),this.checkLVal(f.local,!0),a.specifiers.push(this.finishNode(f,"ImportSpecifier"))}},g.parseImportSpecifierDefault=function(a,b,c){var d=this.startNodeAt(b,c);return d.local=a,this.checkLVal(d.local,!0),this.finishNode(d,"ImportDefaultSpecifier")}},{"./state":243,"./tokentype":247,"./whitespace":249}],245:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}c.__esModule=!0;var e=a("./state"),f=a("./tokentype"),g=a("./whitespace"),h=function k(a,b,c,e){d(this,k),this.token=a,this.isExpr=!!b,this.preserveSpace=!!c,this.override=e};c.TokContext=h;var i={b_stat:new h("{",!1),b_expr:new h("{",!0),b_tmpl:new h("${",!0),p_stat:new h("(",!1),p_expr:new h("(",!0),q_tmpl:new h("`",!0,!0,function(a){return a.readTmplToken()}),f_expr:new h("function",!0)};c.types=i;var j=e.Parser.prototype;j.initialContext=function(){return[i.b_stat]},j.braceIsBlock=function(a){if(a===f.types.colon){var b=this.curContext();if(b===i.b_stat||b===i.b_expr)return!b.isExpr}return a===f.types._return?g.lineBreak.test(this.input.slice(this.lastTokEnd,this.start)):a===f.types._else||a===f.types.semi||a===f.types.eof?!0:a===f.types.braceL?this.curContext()===i.b_stat:!this.exprAllowed},j.updateContext=function(a){var b=void 0,c=this.type;c.keyword&&a===f.types.dot?this.exprAllowed=!1:(b=c.updateContext)?b.call(this,a):this.exprAllowed=c.beforeExpr},f.types.parenR.updateContext=f.types.braceR.updateContext=function(){if(1===this.context.length)return void(this.exprAllowed=!0);var a=this.context.pop();a===i.b_stat&&this.curContext()===i.f_expr?(this.context.pop(),this.exprAllowed=!1):a===i.b_tmpl?this.exprAllowed=!0:this.exprAllowed=!a.isExpr},f.types.braceL.updateContext=function(a){this.context.push(this.braceIsBlock(a)?i.b_stat:i.b_expr),this.exprAllowed=!0},f.types.dollarBraceL.updateContext=function(){this.context.push(i.b_tmpl),this.exprAllowed=!0},f.types.parenL.updateContext=function(a){var b=a===f.types._if||a===f.types._for||a===f.types._with||a===f.types._while;this.context.push(b?i.p_stat:i.p_expr),this.exprAllowed=!0},f.types.incDec.updateContext=function(){},f.types._function.updateContext=function(){this.curContext()!==i.b_stat&&this.context.push(i.f_expr),this.exprAllowed=!1},f.types.backQuote.updateContext=function(){this.curContext()===i.q_tmpl?this.context.pop():this.context.push(i.q_tmpl),this.exprAllowed=!1}},{"./state":243,"./tokentype":247,"./whitespace":249}],246:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c){try{return new RegExp(a,b)}catch(d){void 0!==c&&(d instanceof SyntaxError&&this.raise(c,"Error parsing regular expression: "+d.message),this.raise(d))}}function f(a){return 65535>=a?String.fromCharCode(a):String.fromCharCode((a-65536>>10)+55296,(a-65536&1023)+56320)}c.__esModule=!0;var g=a("./identifier"),h=a("./tokentype"),i=a("./state"),j=a("./location"),k=a("./whitespace"),l=function q(a){d(this,q),this.type=a.type,this.value=a.value,this.start=a.start,this.end=a.end,a.options.locations&&(this.loc=new j.SourceLocation(a,a.startLoc,a.endLoc)),a.options.ranges&&(this.range=[a.start,a.end])};c.Token=l;var m=i.Parser.prototype,n="object"==typeof Packages&&"[object JavaPackage]"===Object.prototype.toString.call(Packages);m.next=function(){this.options.onToken&&!this.isLookahead&&this.options.onToken(new l(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},m.getToken=function(){return this.next(),new l(this)},m.setStrict=function(a){if(this.strict=a,this.type===h.types.num||this.type===h.types.string){if(this.pos=this.start,this.options.locations)for(;this.pos=this.input.length?this.finishToken(h.types.eof):a.override?a.override(this):void this.readToken(this.fullCharCodeAtPos())},m.readToken=function(a){return g.isIdentifierStart(a,!0)||92===a?this.readWord():this.getTokenFromCode(a)},m.fullCharCodeAtPos=function(){var a=this.input.charCodeAt(this.pos);if(55295>=a||a>=57344)return a;var b=this.input.charCodeAt(this.pos+1);return(a<<10)+b-56613888},m.skipBlockComment=function(){var a=this.options.onComment&&this.curPosition(),b=this.pos,c=this.input.indexOf("*/",this.pos+=2);if(-1===c&&this.raise(this.pos-2,"Unterminated comment"),this.pos=c+2,this.options.locations){k.lineBreakG.lastIndex=b;for(var d=void 0;(d=k.lineBreakG.exec(this.input))&&d.index8&&14>a||a>=5760&&k.nonASCIIwhitespace.test(String.fromCharCode(a))))break a;++this.pos}}},m.finishToken=function(a,b){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var c=this.type;this.type=a,this.value=b,this.updateContext(c)},m.readToken_dot=function(){var a=this.input.charCodeAt(this.pos+1);if(a>=48&&57>=a)return this.readNumber(!0);var b=this.input.charCodeAt(this.pos+2);return 46===a&&46===b?(this.pos+=3,this.finishToken(h.types.ellipsis)):(++this.pos,this.finishToken(h.types.dot))},m.readToken_slash=function(){var a=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===a?this.finishOp(h.types.assign,2):this.finishOp(h.types.slash,1)},m.readToken_mult_modulo=function(a){var b=42===a?h.types.star:h.types.modulo,c=1,d=this.input.charCodeAt(this.pos+1);return 42===d&&this.options.features["es7.exponentiationOperator"]&&(c++,d=this.input.charCodeAt(this.pos+2),b=h.types.exponent),61===d&&(c++,b=h.types.assign),this.finishOp(b,c)},m.readToken_pipe_amp=function(a){var b=this.input.charCodeAt(this.pos+1);return b===a?this.finishOp(124===a?h.types.logicalOR:h.types.logicalAND,2):61===b?this.finishOp(h.types.assign,2):this.finishOp(124===a?h.types.bitwiseOR:h.types.bitwiseAND,1)},m.readToken_caret=function(){var a=this.input.charCodeAt(this.pos+1);return 61===a?this.finishOp(h.types.assign,2):this.finishOp(h.types.bitwiseXOR,1)},m.readToken_plus_min=function(a){var b=this.input.charCodeAt(this.pos+1);return b===a?45===b&&62===this.input.charCodeAt(this.pos+2)&&k.lineBreak.test(this.input.slice(this.lastTokEnd,this.pos))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(h.types.incDec,2):61===b?this.finishOp(h.types.assign,2):this.finishOp(h.types.plusMin,1)},m.readToken_lt_gt=function(a){var b=this.input.charCodeAt(this.pos+1),c=1;return b===a?(c=62===a&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+c)?this.finishOp(h.types.assign,c+1):this.finishOp(h.types.bitShift,c)):33===b&&60===a&&45===this.input.charCodeAt(this.pos+2)&&45===this.input.charCodeAt(this.pos+3)?(this.inModule&&this.unexpected(),this.skipLineComment(4),this.skipSpace(),this.nextToken()):(61===b&&(c=61===this.input.charCodeAt(this.pos+2)?3:2),this.finishOp(h.types.relational,c))},m.readToken_eq_excl=function(a){var b=this.input.charCodeAt(this.pos+1);return 61===b?this.finishOp(h.types.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===a&&62===b?(this.pos+=2,this.finishToken(h.types.arrow)):this.finishOp(61===a?h.types.eq:h.types.prefix,1)},m.getTokenFromCode=function(a){switch(a){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(h.types.parenL);case 41:return++this.pos,this.finishToken(h.types.parenR);case 59:return++this.pos,this.finishToken(h.types.semi);case 44:return++this.pos,this.finishToken(h.types.comma);case 91:return++this.pos,this.finishToken(h.types.bracketL);case 93:return++this.pos,this.finishToken(h.types.bracketR);case 123:return++this.pos,this.finishToken(h.types.braceL);case 125:return++this.pos,this.finishToken(h.types.braceR);case 58:return this.options.features["es7.functionBind"]&&58===this.input.charCodeAt(this.pos+1)?this.finishOp(h.types.doubleColon,2):(++this.pos,this.finishToken(h.types.colon));case 63:return++this.pos,this.finishToken(h.types.question);case 64:return++this.pos,this.finishToken(h.types.at);case 96:return++this.pos,this.finishToken(h.types.backQuote);case 48:var b=this.input.charCodeAt(this.pos+1);if(120===b||88===b)return this.readRadixNumber(16);if(111===b||79===b)return this.readRadixNumber(8); -if(98===b||66===b)return this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(a);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo(a);case 124:case 38:return this.readToken_pipe_amp(a);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(a);case 60:case 62:return this.readToken_lt_gt(a);case 61:case 33:return this.readToken_eq_excl(a);case 126:return this.finishOp(h.types.prefix,1)}this.raise(this.pos,"Unexpected character '"+f(a)+"'")},m.finishOp=function(a,b){var c=this.input.slice(this.pos,this.pos+b);return this.pos+=b,this.finishToken(a,c)};var o=!!e("￿","u");m.readRegexp=function(){for(var a=this,b=void 0,c=void 0,d=this.pos;;){this.pos>=this.input.length&&this.raise(d,"Unterminated regular expression");var f=this.input.charAt(this.pos);if(k.lineBreak.test(f)&&this.raise(d,"Unterminated regular expression"),b)b=!1;else{if("["===f)c=!0;else if("]"===f&&c)c=!1;else if("/"===f&&!c)break;b="\\"===f}++this.pos}var g=this.input.slice(d,this.pos);++this.pos;var i=this.readWord1(),j=g;if(i){var l=/^[gmsiyu]*$/;l.test(i)||this.raise(d,"Invalid regular expression flag"),i.indexOf("u")>=0&&!o&&(j=j.replace(/\\u\{([0-9a-fA-F]+)\}/g,function(b,c,e){return c=Number("0x"+c),c>1114111&&a.raise(d+e+3,"Code point out of bounds"),"x"}),j=j.replace(/\\u([a-fA-F0-9]{4})|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"))}var m=null;return n||(e(j,void 0,d),m=e(g,i)),this.finishToken(h.types.regexp,{pattern:g,flags:i,value:m})},m.readInt=function(a,b){for(var c=this.pos,d=0,e=0,f=null==b?1/0:b;f>e;++e){var g=this.input.charCodeAt(this.pos),h=void 0;if(h=g>=97?g-97+10:g>=65?g-65+10:g>=48&&57>=g?g-48:1/0,h>=a)break;++this.pos,d=d*a+h}return this.pos===c||null!=b&&this.pos-c!==b?null:d},m.readRadixNumber=function(a){this.pos+=2;var b=this.readInt(a);return null==b&&this.raise(this.start+2,"Expected number in radix "+a),g.isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(h.types.num,b)},m.readNumber=function(a){var b=this.pos,c=!1,d=48===this.input.charCodeAt(this.pos);a||null!==this.readInt(10)||this.raise(b,"Invalid number");var e=this.input.charCodeAt(this.pos);46===e&&(++this.pos,this.readInt(10),c=!0,e=this.input.charCodeAt(this.pos)),(69===e||101===e)&&(e=this.input.charCodeAt(++this.pos),(43===e||45===e)&&++this.pos,null===this.readInt(10)&&this.raise(b,"Invalid number"),c=!0),g.isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var f=this.input.slice(b,this.pos),i=void 0;return c?i=parseFloat(f):d&&1!==f.length?/[89]/.test(f)||this.strict?this.raise(b,"Invalid number"):i=parseInt(f,8):i=parseInt(f,10),this.finishToken(h.types.num,i)},m.readCodePoint=function(){var a=this.input.charCodeAt(this.pos),b=void 0;if(123===a){var c=++this.pos;b=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,b>1114111&&this.raise(c,"Code point out of bounds")}else b=this.readHexChar(4);return b},m.readString=function(a){for(var b="",c=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var d=this.input.charCodeAt(this.pos);if(d===a)break;92===d?(b+=this.input.slice(c,this.pos),b+=this.readEscapedChar(!1),c=this.pos):(k.isNewLine(d)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return b+=this.input.slice(c,this.pos++),this.finishToken(h.types.string,b)},m.readTmplToken=function(){for(var a="",b=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var c=this.input.charCodeAt(this.pos);if(96===c||36===c&&123===this.input.charCodeAt(this.pos+1))return this.pos===this.start&&this.type===h.types.template?36===c?(this.pos+=2,this.finishToken(h.types.dollarBraceL)):(++this.pos,this.finishToken(h.types.backQuote)):(a+=this.input.slice(b,this.pos),this.finishToken(h.types.template,a));if(92===c)a+=this.input.slice(b,this.pos),a+=this.readEscapedChar(!0),b=this.pos;else if(k.isNewLine(c)){switch(a+=this.input.slice(b,this.pos),++this.pos,c){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:a+="\n";break;default:a+=String.fromCharCode(c)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),b=this.pos}else++this.pos}},m.readEscapedChar=function(a){var b=this.input.charCodeAt(++this.pos);switch(++this.pos,b){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return f(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return" ";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";default:if(b>=48&&55>=b){var c=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],d=parseInt(c,8);return d>255&&(c=c.slice(0,-1),d=parseInt(c,8)),d>0&&(this.strict||a)&&this.raise(this.pos-2,"Octal literal in strict mode"),this.pos+=c.length-1,String.fromCharCode(d)}return String.fromCharCode(b)}},m.readHexChar=function(a){var b=this.pos,c=this.readInt(16,a);return null===c&&this.raise(b,"Bad character escape sequence"),c};var p;m.readWord1=function(){p=!1;for(var a="",b=!0,c=this.pos;this.pos=d?1:2;else{if(92!==d)break;p=!0,a+=this.input.slice(c,this.pos);var e=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.raise(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var h=this.readCodePoint();(b?g.isIdentifierStart:g.isIdentifierChar)(h,!0)||this.raise(e,"Invalid Unicode escape"),a+=f(h),c=this.pos}b=!1}return a+this.input.slice(c,this.pos)},m.readWord=function(){var a=this.readWord1(),b=h.types.name;return!p&&this.isKeyword(a)&&(b=h.keywords[a]),this.finishToken(b,a)}},{"./identifier":232,"./location":234,"./state":243,"./tokentype":247,"./whitespace":249}],247:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){return new g(a,{beforeExpr:!0,binop:b})}function f(a){var b=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];b.keyword=a,k[a]=j["_"+a]=new g(a,b)}c.__esModule=!0;var g=function l(a){var b=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];d(this,l),this.label=a,this.keyword=b.keyword,this.beforeExpr=!!b.beforeExpr,this.startsExpr=!!b.startsExpr,this.rightAssociative=!!b.rightAssociative,this.isLoop=!!b.isLoop,this.isAssign=!!b.isAssign,this.prefix=!!b.prefix,this.postfix=!!b.postfix,this.binop=b.binop||null,this.updateContext=null};c.TokenType=g;var h={beforeExpr:!0},i={startsExpr:!0},j={num:new g("num",i),regexp:new g("regexp",i),string:new g("string",i),name:new g("name",i),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",h),semi:new g(";",h),colon:new g(":",h),doubleColon:new g("::",h),dot:new g("."),question:new g("?",h),arrow:new g("=>",h),template:new g("template"),ellipsis:new g("...",h),backQuote:new g("`",i),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),at:new g("@"),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("prefix",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:e("||",1),logicalAND:e("&&",2),bitwiseOR:e("|",3),bitwiseXOR:e("^",4),bitwiseAND:e("&",5),equality:e("==/!=",6),relational:e("",7),bitShift:e("<>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:e("%",10),star:e("*",10),slash:e("/",10),exponent:new g("**",{beforeExpr:!0,binop:11,rightAssociative:!0})};c.types=j;var k={};c.keywords=k,f("break"),f("case",h),f("catch"),f("continue"),f("debugger"),f("default",h),f("do",{isLoop:!0}),f("else",h),f("finally"),f("for",{isLoop:!0}),f("function",i),f("if"),f("return",h),f("switch"),f("throw",h),f("try"),f("var"),f("let"),f("const"),f("while",{isLoop:!0}),f("with"),f("new",{beforeExpr:!0,startsExpr:!0}),f("this",i),f("super",i),f("class"),f("extends",h),f("export"),f("import"),f("yield",{beforeExpr:!0,startsExpr:!0}),f("null",i),f("true",i),f("false",i),f("in",{beforeExpr:!0,binop:7}),f("instanceof",{beforeExpr:!0,binop:7}),f("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),f("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),f("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},{}],248:[function(a,b,c){"use strict";function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}c.__esModule=!0,c.has=d},{}],249:[function(a,b,c){"use strict";function d(a){return 10===a||13===a||8232===a||8233===a}c.__esModule=!0,c.isNewLine=d;var e=/\r\n?|\n|\u2028|\u2029/;c.lineBreak=e;var f=new RegExp(e.source,"g");c.lineBreakG=f;var g=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;c.nonASCIIwhitespace=g},{}],250:[function(a,b,c){function d(a,b,c){for(var e=0,f={},g=!1,h=0;h1?c.substring(f.start+a.length,f.end):"",f.post=c.slice(f.end+b.length),f;if(e&&g){var i=f.start+a.length;return f=d(a,b,c.substr(i)),f&&(f.start+=i,f.end+=i,f.pre=c.slice(0,i)+f.pre),f}}b.exports=d},{}],251:[function(a,b,c){function d(a){return parseInt(a,10)==a?parseInt(a,10):a.charCodeAt(0)}function e(a){return a.split("\\\\").join(p).split("\\{").join(q).split("\\}").join(r).split("\\,").join(s).split("\\.").join(t)}function f(a){return a.split(p).join("\\").split(q).join("{").split(r).join("}").split(s).join(",").split(t).join(".")}function g(a){if(!a)return[""];var b=[],c=o("{","}",a);if(!c)return a.split(",");var d=c.pre,e=c.body,f=c.post,h=d.split(",");h[h.length-1]+="{"+e+"}";var i=g(f);return f.length&&(h[h.length-1]+=i.shift(),h.push.apply(h,i)),b.push.apply(b,h),b}function h(a){return a?m(e(a),!0).map(f):[]}function i(a){return"{"+a+"}"}function j(a){return/^-?0\d/.test(a)}function k(a,b){return b>=a}function l(a,b){return a>=b}function m(a,b){var c=[],e=o("{","}",a);if(!e||/\$$/.test(e.pre))return[a];var f=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(e.body),h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(e.body),p=f||h,q=/^(.*,)+(.+)?$/.test(e.body);if(!p&&!q)return e.post.match(/,.*}/)?(a=e.pre+"{"+e.body+r+e.post,m(a)):[a];var s;if(p)s=e.body.split(/\.\./);else if(s=g(e.body),1===s.length&&(s=m(s[0],!1).map(i),1===s.length)){var t=e.post.length?m(e.post,!1):[""];return t.map(function(a){return e.pre+s[0]+a})}var u,v=e.pre,t=e.post.length?m(e.post,!1):[""];if(p){var w=d(s[0]),x=d(s[1]),y=Math.max(s[0].length,s[1].length),z=3==s.length?Math.abs(d(s[2])):1,A=k,B=w>x;B&&(z*=-1,A=l);var C=s.some(j);u=[];for(var D=w;A(D,x);D+=z){var E;if(h)E=String.fromCharCode(D),"\\"===E&&(E="");else if(E=String(D),C){var F=y-E.length;if(F>0){var G=new Array(F+1).join("0");E=0>D?"-"+G+E.slice(1):G+E}}u.push(E)}}else u=n(s,function(a){return m(a,!1)});for(var H=0;H1)for(var d=1;b>d;d++)c+=" "+a[d];if(!this.enabled||!c)return c;var e=this._styles,f=e.length,g=i.dim.open;for(!n||-1===e.indexOf("gray")&&-1===e.indexOf("grey")||(i.dim.open="");f--;){var h=i[e[f]];c=h.open+c.replace(h.closeRe,h.open)+h.close}return i.dim.open=g,c}function g(){var a={};return Object.keys(o).forEach(function(b){a[b]={get:function(){return e.call(this,[b])}}}),a}var h=a("escape-string-regexp"),i=a("ansi-styles"),j=a("strip-ansi"),k=a("has-ansi"),l=a("supports-color"),m=Object.defineProperties,n="win32"===c.platform&&!/^xterm/i.test(c.env.TERM);n&&(i.blue.open="");var o=function(){var a={};return Object.keys(i).forEach(function(b){i[b].closeRe=new RegExp(h(i[b].close),"g"),a[b]={get:function(){return e.call(this,this._styles.concat(b))}}}),a}(),p=m(function(){},o);m(d.prototype,g()),b.exports=new d,b.exports.styles=i,b.exports.hasColor=k,b.exports.stripColor=j,b.exports.supportsColor=l}).call(this,a("_process"))},{_process:12,"ansi-styles":197,"escape-string-regexp":355,"has-ansi":365,"strip-ansi":542,"supports-color":544}],254:[function(a,b,c){b.exports=function(a,b){for(var c=[],e=0;e0;e--)if(b=d[e],~b.indexOf("sourceMappingURL=data:"))return c.fromComment(b)}var i=a("fs"),j=a("path"),k=/^\s*\/(?:\/|\*)[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+;)?base64,(.*)$/gm,l=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/gm;g.prototype.toJSON=function(a){return JSON.stringify(this.sourcemap,null,a)},g.prototype.toBase64=function(){var a=this.toJSON();return new b(a).toString("base64")},g.prototype.toComment=function(a){var b=this.toBase64(),c="sourceMappingURL=data:application/json;base64,"+b;return a&&a.multiline?"/*# "+c+" */":"//# "+c},g.prototype.toObject=function(){return JSON.parse(this.toJSON())},g.prototype.addProperty=function(a,b){if(this.sourcemap.hasOwnProperty(a))throw new Error("property %s already exists on the sourcemap, use set property instead");return this.setProperty(a,b)},g.prototype.setProperty=function(a,b){return this.sourcemap[a]=b,this},g.prototype.getProperty=function(a){return this.sourcemap[a]},c.fromObject=function(a){return new g(a)},c.fromJSON=function(a){return new g(a,{isJSON:!0})},c.fromBase64=function(a){return new g(a,{isEncoded:!0})},c.fromComment=function(a){return a=a.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),new g(a,{isEncoded:!0,hasComment:!0})},c.fromMapFileComment=function(a,b){return new g(a,{commentFileDir:b,isFileComment:!0,isJSON:!0})},c.fromSource=function(a,b){if(b)return h(a);var d=a.match(k);return k.lastIndex=0,d?c.fromComment(d.pop()):null},c.fromMapFileSource=function(a,b){var d=a.match(l);return l.lastIndex=0,d?c.fromMapFileComment(d.pop(),b):null},c.removeComments=function(a){return k.lastIndex=0,a.replace(k,"")},c.removeMapFileComments=function(a){return l.lastIndex=0,a.replace(l,"")},Object.defineProperty(c,"commentRegex",{get:function(){return k.lastIndex=0,k}}),Object.defineProperty(c,"mapFileCommentRegex",{get:function(){return l.lastIndex=0,l}})}).call(this,a("buffer").Buffer)},{buffer:4,fs:3,path:11}],256:[function(a,b,c){var d=a("./$");b.exports=function(a){return function(b,c,e){var f,g=d.toObject(b),h=d.toLength(g.length),i=d.toIndex(e,h);if(a&&c!=c){for(;h>i;)if(f=g[i++],f!=f)return!0}else for(;h>i;i++)if((a||i in g)&&g[i]===c)return a||i;return!a&&-1}}},{"./$":277}],257:[function(a,b,c){var d=a("./$"),e=a("./$.ctx");b.exports=function(a){var b=1==a,c=2==a,f=3==a,g=4==a,h=6==a,i=5==a||h;return function(j,k,l){for(var m,n,o=Object(d.assertDefined(j)),p=d.ES5Object(o),q=e(k,l,3),r=d.toLength(p.length),s=0,t=b?Array(r):c?[]:void 0;r>s;s++)if((i||s in p)&&(m=p[s],n=q(m,s,o),a))if(b)t[s]=n;else if(n)switch(a){case 3:return!0;case 5:return m;case 6:return s;case 2:t.push(m)}else if(g)return!1;return h?-1:f||g?g:t}}},{"./$":277,"./$.ctx":265}],258:[function(a,b,c){function d(a,b,c){if(!a)throw TypeError(c?b+c:b)}var e=a("./$");d.def=e.assertDefined,d.fn=function(a){if(!e.isFunction(a))throw TypeError(a+" is not a function!");return a},d.obj=function(a){if(!e.isObject(a))throw TypeError(a+" is not an object!");return a},d.inst=function(a,b,c){if(!(a instanceof b))throw TypeError(c+": use the 'new' operator!");return a},b.exports=d},{"./$":277}],259:[function(a,b,c){var d=a("./$"),e=a("./$.enum-keys");b.exports=Object.assign||function(a,b){for(var c=Object(d.assertDefined(a)),f=arguments.length,g=1;f>g;)for(var h,i=d.ES5Object(arguments[g++]),j=e(i),k=j.length,l=0;k>l;)c[h=j[l++]]=i[h];return c}},{"./$":277,"./$.enum-keys":268}],260:[function(a,b,c){function d(a){return g.call(a).slice(8,-1)}var e=a("./$"),f=a("./$.wks")("toStringTag"),g={}.toString;d.classof=function(a){var b,c;return void 0==a?void 0===a?"Undefined":"Null":"string"==typeof(c=(b=Object(a))[f])?c:d(b)},d.set=function(a,b,c){a&&!e.has(a=c?a:a.prototype,f)&&e.hide(a,f,b)},b.exports=d},{"./$":277,"./$.wks":295}],261:[function(a,b,c){"use strict";function d(a,b){if(!n(a))return"symbol"==typeof a?a:("string"==typeof a?"S":"P")+a;if(!l(a,q)){if(!p(a))return"F";if(!b)return"E";o(a,q,++w)}return"O"+a[q]}function e(a,b){var c,e=d(b);if("F"!==e)return a[r][e];for(c=a[t];c;c=c.n)if(c.k==b)return c}var f=a("./$"),g=a("./$.ctx"),h=a("./$.uid").safe,i=a("./$.assert"),j=a("./$.for-of"),k=a("./$.iter").step,l=f.has,m=f.set,n=f.isObject,o=f.hide,p=Object.isExtensible||n,q=h("id"),r=h("O1"),s=h("last"),t=h("first"),u=h("iter"),v=f.DESC?h("size"):"size",w=0;b.exports={getConstructor:function(b,c,d,h){var k=b(function(a,b){i.inst(a,k,c),m(a,r,f.create(null)),m(a,v,0),m(a,s,void 0),m(a,t,void 0),void 0!=b&&j(b,d,a[h],a)});return a("./$.mix")(k.prototype,{clear:function(){for(var a=this,b=a[r],c=a[t];c;c=c.n)c.r=!0,c.p&&(c.p=c.p.n=void 0),delete b[c.i];a[t]=a[s]=void 0,a[v]=0},"delete":function(a){var b=this,c=e(b,a);if(c){var d=c.n,f=c.p;delete b[r][c.i],c.r=!0,f&&(f.n=d),d&&(d.p=f),b[t]==c&&(b[t]=d),b[s]==c&&(b[s]=f),b[v]--}return!!c},forEach:function(a){for(var b,c=g(a,arguments[1],3);b=b?b.n:this[t];)for(c(b.v,b.k,this);b&&b.r;)b=b.p},has:function(a){return!!e(this,a)}}),f.DESC&&f.setDesc(k.prototype,"size",{get:function(){return i.def(this[v])}}),k},def:function(a,b,c){var f,g,h=e(a,b);return h?h.v=c:(a[s]=h={i:g=d(b,!0),k:b,v:c,p:f=a[s],n:void 0,r:!1},a[t]||(a[t]=h),f&&(f.n=h),a[v]++,"F"!==g&&(a[r][g]=h)),a},getEntry:e,setIter:function(b,c,d){a("./$.iter-define")(b,c,function(a,b){m(this,u,{o:a,k:b})},function(){for(var a=this[u],b=a.k,c=a.l;c&&c.r;)c=c.p;return a.o&&(a.l=c=c?c.n:a.o[t])?"keys"==b?k(0,c.k):"values"==b?k(0,c.v):k(0,[c.k,c.v]):(a.o=void 0,k(1))},d?"entries":"values",!d,!0)}}},{"./$":277,"./$.assert":258,"./$.ctx":265,"./$.for-of":269,"./$.iter":276,"./$.iter-define":274,"./$.mix":279,"./$.uid":293}],262:[function(a,b,c){var d=a("./$.def"),e=a("./$.for-of");b.exports=function(a){d(d.P,a,{toJSON:function(){var a=[];return e(this,!1,a.push,a),a}})}},{"./$.def":266,"./$.for-of":269}],263:[function(a,b,c){"use strict";function d(a,b){return s(a.array,function(a){return a[0]===b})}function e(a){return a[q]||l(a,q,{array:[],get:function(a){var b=d(this,a);return b?b[1]:void 0},has:function(a){return!!d(this,a)},set:function(a,b){var c=d(this,a);c?c[1]=b:this.array.push([a,b])},"delete":function(a){var b=t(this.array,function(b){return b[0]===a});return~b&&this.array.splice(b,1),!!~b}})[q]}var f=a("./$"),g=a("./$.uid").safe,h=a("./$.assert"),i=a("./$.for-of"),j=f.has,k=f.isObject,l=f.hide,m=Object.isExtensible||k,n=0,o=g("id"),p=g("weak"),q=g("leak"),r=a("./$.array-methods"),s=r(5),t=r(6);b.exports={getConstructor:function(b,c,d,g){var l=b(function(a,b){f.set(h.inst(a,l,c),o,n++),void 0!=b&&i(b,d,a[g],a)});return a("./$.mix")(l.prototype,{"delete":function(a){return k(a)?m(a)?j(a,p)&&j(a[p],this[o])&&delete a[p][this[o]]:e(this)["delete"](a):!1},has:function(a){return k(a)?m(a)?j(a,p)&&j(a[p],this[o]):e(this).has(a):!1}}),l},def:function(a,b,c){return m(h.obj(b))?(j(b,p)||l(b,p,{}),b[p][a[o]]=c):e(a).set(b,c),a},leakStore:e,WEAK:p,ID:o}},{"./$":277,"./$.array-methods":257,"./$.assert":258,"./$.for-of":269,"./$.mix":279,"./$.uid":293}],264:[function(a,b,c){"use strict";var d=a("./$"),e=a("./$.def"),f=a("./$.iter").BUGGY,g=a("./$.for-of"),h=a("./$.species"),i=a("./$.assert").inst;b.exports=function(b,c,j,k,l,m){function n(b){var c=r[b];a("./$.redef")(r,b,"delete"==b?function(a){return c.call(this,0===a?0:a)}:"has"==b?function(a){return c.call(this,0===a?0:a)}:"get"==b?function(a){return c.call(this,0===a?0:a)}:"add"==b?function(a){return c.call(this,0===a?0:a),this}:function(a,b){return c.call(this,0===a?0:a,b),this})}var o=d.g[b],p=o,q=l?"set":"add",r=p&&p.prototype,s={};if(d.isFunction(p)&&(m||!f&&r.forEach&&r.entries)){var t,u=new p,v=u[q](m?{}:-0,1);a("./$.iter-detect")(function(a){new p(a)})||(p=c(function(a,c){i(a,p,b);var d=new o;return void 0!=c&&g(c,l,d[q],d),d}),p.prototype=r,r.constructor=p),m||u.forEach(function(a,b){t=1/b===-(1/0)}),t&&(n("delete"),n("has"),l&&n("get")),(t||v!==u)&&n(q)}else p=k.getConstructor(c,b,l,q),a("./$.mix")(p.prototype,j);return a("./$.cof").set(p,b),s[b]=p,e(e.G+e.W+e.F*(p!=o),s),h(p),h(d.core[b]),m||k.setIter(p,b,l),p}},{"./$":277,"./$.assert":258,"./$.cof":260,"./$.def":266,"./$.for-of":269,"./$.iter":276,"./$.iter-detect":275,"./$.mix":279,"./$.redef":282,"./$.species":287}],265:[function(a,b,c){var d=a("./$.assert").fn;b.exports=function(a,b,c){if(d(a),~c&&void 0===b)return a;switch(c){case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)}}return function(){return a.apply(b,arguments)}}},{"./$.assert":258}],266:[function(a,b,c){function d(a,b){return function(){return a.apply(b,arguments)}}function e(a,b,c){var k,l,m,n,o=a&e.G,p=a&e.P,q=o?g:a&e.S?g[b]:(g[b]||{}).prototype,r=o?h:h[b]||(h[b]={});o&&(c=b);for(k in c)l=!(a&e.F)&&q&&k in q,m=(l?q:c)[k],n=a&e.B&&l?d(m,g):p&&i(m)?d(Function.call,m):m,q&&!l&&j(q,k,m),r[k]!=m&&f.hide(r,k,n),p&&((r.prototype||(r.prototype={}))[k]=m)}var f=a("./$"),g=f.g,h=f.core,i=f.isFunction,j=a("./$.redef");g.core=h,e.F=1,e.G=2,e.S=4,e.P=8,e.B=16,e.W=32,b.exports=e},{"./$":277,"./$.redef":282}],267:[function(a,b,c){var d=a("./$"),e=d.g.document,f=d.isObject,g=f(e)&&f(e.createElement);b.exports=function(a){return g?e.createElement(a):{}}},{"./$":277}],268:[function(a,b,c){var d=a("./$");b.exports=function(a){var b=d.getKeys(a),c=d.getDesc,e=d.getSymbols;return e&&d.each.call(e(a),function(d){c(a,d).enumerable&&b.push(d)}),b}},{"./$":277}],269:[function(a,b,c){var d=a("./$.ctx"),e=a("./$.iter").get,f=a("./$.iter-call");b.exports=function(a,b,c,g){for(var h,i=e(a),j=d(c,g,b?2:1);!(h=i.next()).done;)if(f(i,j,h.value,b)===!1)return f.close(i)}},{"./$.ctx":265,"./$.iter":276,"./$.iter-call":273}],270:[function(a,b,c){b.exports=function(a){return a.FW=!0,a.path=a.g,a}},{}],271:[function(a,b,c){function d(a){try{return g(a)}catch(b){return h.slice()}}var e=a("./$"),f={}.toString,g=e.getNames,h="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];b.exports.get=function(a){return h&&"[object Window]"==f.call(a)?d(a):g(e.toObject(a))}},{"./$":277}],272:[function(a,b,c){b.exports=function(a,b,c){var d=void 0===c;switch(b.length){case 0:return d?a():a.call(c);case 1:return d?a(b[0]):a.call(c,b[0]);case 2:return d?a(b[0],b[1]):a.call(c,b[0],b[1]);case 3:return d?a(b[0],b[1],b[2]):a.call(c,b[0],b[1],b[2]);case 4:return d?a(b[0],b[1],b[2],b[3]):a.call(c,b[0],b[1],b[2],b[3]);case 5:return d?a(b[0],b[1],b[2],b[3],b[4]):a.call(c,b[0],b[1],b[2],b[3],b[4])}return a.apply(c,b)}},{}],273:[function(a,b,c){function d(a){var b=a["return"];void 0!==b&&f(b.call(a))}function e(a,b,c,e){try{return e?b(f(c)[0],c[1]):b(c)}catch(g){throw d(a),g}}var f=a("./$.assert").obj;e.close=d,b.exports=e},{"./$.assert":258}],274:[function(a,b,c){var d=a("./$.def"),e=a("./$.redef"),f=a("./$"),g=a("./$.cof"),h=a("./$.iter"),i=a("./$.wks")("iterator"),j="@@iterator",k="keys",l="values",m=h.Iterators;b.exports=function(a,b,c,n,o,p,q){function r(a){function b(b){return new c(b,a)}switch(a){case k:return function(){return b(this)};case l:return function(){return b(this)}}return function(){return b(this)}}h.create(c,b,n);var s,t,u=b+" Iterator",v=a.prototype,w=v[i]||v[j]||o&&v[o],x=w||r(o);if(w){var y=f.getProto(x.call(new a));g.set(y,u,!0),f.FW&&f.has(v,j)&&h.set(y,f.that)}if((f.FW||q)&&h.set(v,x),m[b]=x,m[u]=f.that,o)if(s={keys:p?x:r(k),values:o==l?x:r(l),entries:o!=l?x:r("entries")},q)for(t in s)t in v||e(v,t,s[t]);else d(d.P+d.F*h.BUGGY,b,s)}},{"./$":277,"./$.cof":260,"./$.def":266,"./$.iter":276,"./$.redef":282,"./$.wks":295}],275:[function(a,b,c){var d=a("./$.wks")("iterator"),e=!1;try{var f=[7][d]();f["return"]=function(){e=!0},Array.from(f,function(){throw 2})}catch(g){}b.exports=function(a){if(!e)return!1;var b=!1;try{var c=[7],f=c[d]();f.next=function(){b=!0},c[d]=function(){return f},a(c)}catch(g){}return b}},{"./$.wks":295}],276:[function(a,b,c){"use strict";function d(a,b){e.hide(a,j,b),k in[]&&e.hide(a,k,b)}var e=a("./$"),f=a("./$.cof"),g=f.classof,h=a("./$.assert"),i=h.obj,j=a("./$.wks")("iterator"),k="@@iterator",l=a("./$.shared")("iterators"),m={};d(m,e.that),b.exports={BUGGY:"keys"in[]&&!("next"in[].keys()),Iterators:l,step:function(a,b){return{value:b,done:!!a}},is:function(a){var b=Object(a),c=e.g.Symbol;return(c&&c.iterator||k)in b||j in b||e.has(l,g(b))},get:function(a){var b,c=e.g.Symbol;return void 0!=a&&(b=a[c&&c.iterator||k]||a[j]||l[g(a)]),h(e.isFunction(b),a," is not iterable!"),i(b.call(a))},set:d,create:function(a,b,c,d){a.prototype=e.create(d||m,{next:e.desc(1,c)}),f.set(a,b+" Iterator")}}},{"./$":277,"./$.assert":258,"./$.cof":260,"./$.shared":286,"./$.wks":295}],277:[function(a,b,c){"use strict";function d(a){return isNaN(a=+a)?0:(a>0?p:o)(a)}function e(a,b){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:b}}function f(a,b,c){return a[b]=c,a}function g(a){return s?function(b,c,d){return u.setDesc(b,c,e(a,d))}:f}function h(a){return null!==a&&("object"==typeof a||"function"==typeof a)}function i(a){return"function"==typeof a}function j(a){if(void 0==a)throw TypeError("Can't call method on "+a);return a}var k="undefined"!=typeof self?self:Function("return this")(),l={},m=Object.defineProperty,n={}.hasOwnProperty,o=Math.ceil,p=Math.floor,q=Math.max,r=Math.min,s=!!function(){try{return 2==m({},"a",{get:function(){return 2}}).a}catch(a){}}(),t=g(1),u=b.exports=a("./$.fw")({g:k,core:l,html:k.document&&document.documentElement,isObject:h,isFunction:i,that:function(){return this},toInteger:d,toLength:function(a){return a>0?r(d(a),9007199254740991):0},toIndex:function(a,b){return a=d(a),0>a?q(a+b,0):r(a,b)},has:function(a,b){return n.call(a,b)},create:Object.create,getProto:Object.getPrototypeOf,DESC:s,desc:e,getDesc:Object.getOwnPropertyDescriptor,setDesc:m,setDescs:Object.defineProperties,getKeys:Object.keys,getNames:Object.getOwnPropertyNames,getSymbols:Object.getOwnPropertySymbols,assertDefined:j,ES5Object:Object,toObject:function(a){return u.ES5Object(j(a))},hide:t,def:g(0),set:k.Symbol?f:t,each:[].forEach});"undefined"!=typeof __e&&(__e=l),"undefined"!=typeof __g&&(__g=k)},{"./$.fw":270}],278:[function(a,b,c){var d=a("./$");b.exports=function(a,b){for(var c,e=d.toObject(a),f=d.getKeys(e),g=f.length,h=0;g>h;)if(e[c=f[h++]]===b)return c}},{"./$":277}],279:[function(a,b,c){var d=a("./$.redef");b.exports=function(a,b){for(var c in b)d(a,c,b[c]);return a}},{"./$.redef":282}],280:[function(a,b,c){var d=a("./$"),e=a("./$.assert").obj;b.exports=function(a){e(a);var b=d.getNames(a),c=d.getSymbols;return c?b.concat(c(a)):b}},{"./$":277,"./$.assert":258}],281:[function(a,b,c){"use strict";var d=a("./$"),e=a("./$.invoke"),f=a("./$.assert").fn;b.exports=function(){for(var a=f(this),b=arguments.length,c=Array(b),g=0,h=d.path._,i=!1;b>g;)(c[g]=arguments[g++])===h&&(i=!0);return function(){var d,f=this,g=arguments.length,j=0,k=0;if(!i&&!g)return e(a,c,f);if(d=c.slice(),i)for(;b>j;j++)d[j]===h&&(d[j]=arguments[k++]);for(;g>k;)d.push(arguments[k++]);return e(a,d,f)}}},{"./$":277,"./$.assert":258,"./$.invoke":272}],282:[function(a,b,c){function d(a,b,c,d){if(e.isFunction(c)){var h=a[b];e.hide(c,g,h?String(h):f.replace(/hasOwnProperty/,String(b))),"name"in c||(c.name=b)}a===e.g?a[b]=c:(d||delete a[b],e.hide(a,b,c))}var e=a("./$"),f=String({}.hasOwnProperty),g=a("./$.uid").safe("src"),h=Function.toString;d(Function.prototype,"toString",function(){return e.has(this,g)?this[g]:h.call(this)}),e.core.inspectSource=function(a){return h.call(a)},b.exports=d},{"./$":277,"./$.uid":293}],283:[function(a,b,c){"use strict";b.exports=function(a,b,c){var d=b===Object(b)?function(a){return b[a]}:b;return function(b){return String(c?b:this).replace(a,d)}}},{}],284:[function(a,b,c){b.exports=Object.is||function(a,b){return a===b?0!==a||1/a===1/b:a!=a&&b!=b}},{}],285:[function(a,b,c){function d(a,b){f.obj(a),f(null===b||e.isObject(b),b,": can't set as prototype!")}var e=a("./$"),f=a("./$.assert");b.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(b,c){try{c=a("./$.ctx")(Function.call,e.getDesc(Object.prototype,"__proto__").set,2),c({},[])}catch(f){b=!0}return function(a,e){return d(a,e),b?a.__proto__=e:c(a,e),a}}():void 0),check:d}},{"./$":277,"./$.assert":258,"./$.ctx":265}],286:[function(a,b,c){var d=a("./$"),e="__core-js_shared__",f=d.g[e]||(d.g[e]={});b.exports=function(a){return f[a]||(f[a]={})}},{"./$":277}],287:[function(a,b,c){var d=a("./$"),e=a("./$.wks")("species");b.exports=function(a){!d.DESC||e in a||d.setDesc(a,e,{configurable:!0,get:d.that})}},{"./$":277,"./$.wks":295}],288:[function(a,b,c){var d=a("./$");b.exports=function(a){return function(b,c){var e,f,g=String(d.assertDefined(b)),h=d.toInteger(c),i=g.length;return 0>h||h>=i?a?"":void 0:(e=g.charCodeAt(h),55296>e||e>56319||h+1===i||(f=g.charCodeAt(h+1))<56320||f>57343?a?g.charAt(h):e:a?g.slice(h,h+2):(e-55296<<10)+(f-56320)+65536)}}},{"./$":277}],289:[function(a,b,c){var d=a("./$"),e=a("./$.string-repeat");b.exports=function(a,b,c,f){var g=String(d.assertDefined(a));if(void 0===b)return g;var h=d.toInteger(b),i=h-g.length;if(0>i||i===1/0)throw new RangeError("Cannot satisfy string length "+b+" for string: "+g);var j=void 0===c?" ":String(c),k=e.call(j,Math.ceil(i/j.length));return k.length>i&&(k=f?k.slice(k.length-i):k.slice(0,i)),f?k.concat(g):g.concat(k)}},{"./$":277,"./$.string-repeat":290}],290:[function(a,b,c){"use strict";var d=a("./$");b.exports=function(a){var b=String(d.assertDefined(this)),c="",e=d.toInteger(a);if(0>e||e==1/0)throw RangeError("Count can't be negative");for(;e>0;(e>>>=1)&&(b+=b))1&e&&(c+=b);return c}},{"./$":277}],291:[function(a,b,c){"use strict";function d(){var a=+this;if(i.has(v,a)){var b=v[a];delete v[a],b()}}function e(a){d.call(a.data)}var f,g,h,i=a("./$"),j=a("./$.ctx"),k=a("./$.cof"),l=a("./$.invoke"),m=a("./$.dom-create"),n=i.g,o=i.isFunction,p=i.html,q=n.process,r=n.setImmediate,s=n.clearImmediate,t=n.MessageChannel,u=0,v={},w="onreadystatechange";o(r)&&o(s)||(r=function(a){ -for(var b=[],c=1;arguments.length>c;)b.push(arguments[c++]);return v[++u]=function(){l(o(a)?a:Function(a),b)},f(u),u},s=function(a){delete v[a]},"process"==k(q)?f=function(a){q.nextTick(j(d,a,1))}:n.addEventListener&&o(n.postMessage)&&!n.importScripts?(f=function(a){n.postMessage(a,"*")},n.addEventListener("message",e,!1)):o(t)?(g=new t,h=g.port2,g.port1.onmessage=e,f=j(h.postMessage,h,1)):f=w in m("script")?function(a){p.appendChild(m("script"))[w]=function(){p.removeChild(this),d.call(a)}}:function(a){setTimeout(j(d,a,1),0)}),b.exports={set:r,clear:s}},{"./$":277,"./$.cof":260,"./$.ctx":265,"./$.dom-create":267,"./$.invoke":272}],292:[function(a,b,c){b.exports=function(a){try{return a(),!1}catch(b){return!0}}},{}],293:[function(a,b,c){function d(a){return"Symbol(".concat(void 0===a?"":a,")_",(++e+Math.random()).toString(36))}var e=0;d.safe=a("./$").g.Symbol||d,b.exports=d},{"./$":277}],294:[function(a,b,c){var d=a("./$.wks")("unscopables");d in[]||a("./$").hide(Array.prototype,d,{}),b.exports=function(a){[][d][a]=!0}},{"./$":277,"./$.wks":295}],295:[function(a,b,c){var d=a("./$").g,e=a("./$.shared")("wks");b.exports=function(b){return e[b]||(e[b]=d.Symbol&&d.Symbol[b]||a("./$.uid").safe("Symbol."+b))}},{"./$":277,"./$.shared":286,"./$.uid":293}],296:[function(a,b,c){function d(a,b){return function(c){var d,e=C(c),f=0,g=[];for(d in e)d!=n&&w(e,d)&&g.push(d);for(;b>f;)w(e,d=a[f++])&&(~G(g,d)||g.push(d));return g}}function e(){}function f(a){return function(b,c){o.fn(b);var d=C(this),e=D(d.length),f=a?e-1:0,g=a?-1:1;if(arguments.length<2)for(;;){if(f in d){c=d[f],f+=g;break}f+=g,o(a?f>=0:e>f,"Reduce of empty array with no initial value")}for(;a?f>=0:e>f;f+=g)f in d&&(c=b(c,d[f],f,this));return c}}function g(a){return a>9?a:"0"+a}var h=a("./$"),i=a("./$.dom-create"),j=a("./$.cof"),k=a("./$.def"),l=a("./$.invoke"),m=a("./$.array-methods"),n=a("./$.uid").safe("__proto__"),o=a("./$.assert"),p=o.obj,q=Object.prototype,r=h.html,s=[],t=s.slice,u=s.join,v=j.classof,w=h.has,x=h.setDesc,y=h.getDesc,z=h.setDescs,A=h.isFunction,B=h.isObject,C=h.toObject,D=h.toLength,E=h.toIndex,F=!1,G=a("./$.array-includes")(!1),H=m(0),I=m(1),J=m(2),K=m(3),L=m(4);if(!h.DESC){try{F=8==x(i("div"),"x",{get:function(){return 8}}).x}catch(M){}h.setDesc=function(a,b,c){if(F)try{return x(a,b,c)}catch(d){}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(p(a)[b]=c.value),a},h.getDesc=function(a,b){if(F)try{return y(a,b)}catch(c){}return w(a,b)?h.desc(!q.propertyIsEnumerable.call(a,b),a[b]):void 0},h.setDescs=z=function(a,b){p(a);for(var c,d=h.getKeys(b),e=d.length,f=0;e>f;)h.setDesc(a,c=d[f++],b[c]);return a}}k(k.S+k.F*!h.DESC,"Object",{getOwnPropertyDescriptor:h.getDesc,defineProperty:h.setDesc,defineProperties:z});var N="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),O=N.concat("length","prototype"),P=N.length,Q=function(){var a,b=i("iframe"),c=P,d=">";for(b.style.display="none",r.appendChild(b),b.src="javascript:",a=b.contentWindow.document,a.open(),a.write(" - - - - + + + + ]] header = string.gsub(header, "{url}", M.js_url) - s = header..s + s = s..header end return s end @@ -28,11 +27,22 @@ end function M.get_client_js(s) local modules = M.get_modules(s) - s = common.js_string_escape(s) - s = '' + s = modules..M.wrap_code(s) return M.get_header(s) end +function M.wrap_code(s,module_name) + local mod = module_name and table.concat{'data-modname="',module_name,'"'} or '' + + return table.concat({ + '' + }, '\n') +end + function M.get_modules(s) local modules = "" @@ -43,11 +53,7 @@ function M.get_modules(s) local file = io.open(module_file,'r') local file_str = file:read("*a") file:close() - local lua_code = "rawset(package.preload, '" .. name.. [[', function(...) ]] - .. file_str .. - [[ end)]] - lua_code = common.js_string_escape(lua_code) - modules = modules .. '(starlight.parser.parse('..lua_code..'))(); ' + modules = modules..M.wrap_code(file_str,name) M.modules_served[name] = true end end From 06b43c2bd4ba5cd0e6516c9b320649cc8dde81d4 Mon Sep 17 00:00:00 2001 From: Etiene Dalcol Date: Mon, 15 Feb 2016 14:29:14 +0100 Subject: [PATCH 2/2] Add rockspec file --- rockspecs/latclient-0.4-1.rockspec | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 rockspecs/latclient-0.4-1.rockspec diff --git a/rockspecs/latclient-0.4-1.rockspec b/rockspecs/latclient-0.4-1.rockspec new file mode 100644 index 0000000..032ea29 --- /dev/null +++ b/rockspecs/latclient-0.4-1.rockspec @@ -0,0 +1,28 @@ +package = "latclient" +version = "0.4-1" +source = { + url = "git://github.com/sailorproject/lua_at_client", + tag = "v0.4-alpha" +} +description = { + summary = "An extension of LuaPages preprocessor to use Lua at the browser", + detailed = [[ + Lua@Client is focused in helping bring the Lua programming language to the web and browser. This project extends the .lp preprocessor to add support for new opening tags. + ]], + license = "MIT" +} +dependencies = { +} +build = { + type = "builtin", + modules = { + latclient = "lua/latclient.lua", + ['latclient.common'] = "lua/latclient/common.lua", + ['latclient.conf'] = "lua/latclient/conf.lua", + ['latclient.lp_handler'] = "lua/latclient/lp_handler.lua", + ['latclient.lua51js'] = "lua/latclient/lua51js.lua", + ['latclient.luavmjs'] = "lua/latclient/luavmjs.lua", + ['latclient.moonshine'] = "lua/latclient/moonshine.lua", + ['latclient.starlight'] = "lua/latclient/starlight.lua" + } +} \ No newline at end of file