react-scripts
Version:
Configuration and scripts for Create React App.
3 lines • 203 kB
JavaScript
/* nodent 2.5.5: NoDent - Asynchronous Javascript language extensions */
require=function e(t,n,r){function i(o,a){if(!n[o]){if(!t[o]){var u="function"==typeof require&&require;if(!a&&u)return u(o,!0);if(s)return s(o,!0);var p=new Error("Cannot find module '"+o+"'");throw p.code="MODULE_NOT_FOUND",p}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return i(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var s="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){},{}],2:[function(e,t,n){(function(t){"use strict";function r(){try{var e=new Uint8Array(1);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function i(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(i()<t)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=o.prototype):(null===e&&(e=new o(t)),e.length=t),e}function o(e,t,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return l(this,e)}return a(this,e,t,n)}function a(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?f(e,t,n,r):"string"==typeof t?c(e,t,n):d(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number')}function p(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}function l(e,t){if(u(t),e=s(e,t<0?0:0|y(t)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;n++)e[n]=0;return e}function c(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|g(t,n);return e=s(e,r),e.write(t,n),e}function h(e,t){var n=0|y(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),o.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=o.prototype):e=h(e,t),e}function d(e,t){if(o.isBuffer(t)){var n=0|y(t.length);return e=s(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||H(t.length)?s(e,0):h(e,t);if("Buffer"===t.type&&Z(t.data))return h(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(e){if(e>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),o.alloc(+e)}function g(e,t){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":case void 0:return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(r)return W(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return R(this,t,n);case"binary":return O(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function x(e,t,n,r){function i(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var s=1,o=e.length,a=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,o/=2,a/=2,n/=2}for(var u=-1,p=0;n+p<o;p++)if(i(e,n+p)===i(t,u===-1?0:p-u)){if(u===-1&&(u=p),p-u+1===a)return(n+u)*s}else u!==-1&&(p-=p-u),u=-1;return-1}function w(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var s=t.length;if(s%2!==0)throw new Error("Invalid hex string");r>s/2&&(r=s/2);for(var o=0;o<r;o++){var a=parseInt(t.substr(2*o,2),16);if(isNaN(a))return o;e[n+o]=a}return o}function E(e,t,n,r){return J(W(t,e.length-n),e,n,r)}function S(e,t,n,r){return J(z(t),e,n,r)}function k(e,t,n,r){return S(e,t,n,r)}function A(e,t,n,r){return J(G(t),e,n,r)}function C(e,t,n,r){return J(Y(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?Q.fromByteArray(e):Q.fromByteArray(e.slice(t,n))}function L(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var s=e[i],o=null,a=s>239?4:s>223?3:s>191?2:1;if(i+a<=n){var u,p,l,c;switch(a){case 1:s<128&&(o=s);break;case 2:u=e[i+1],128===(192&u)&&(c=(31&s)<<6|63&u,c>127&&(o=c));break;case 3:u=e[i+1],p=e[i+2],128===(192&u)&&128===(192&p)&&(c=(15&s)<<12|(63&u)<<6|63&p,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:u=e[i+1],p=e[i+2],l=e[i+3],128===(192&u)&&128===(192&p)&&128===(192&l)&&(c=(15&s)<<18|(63&u)<<12|(63&p)<<6|63&l,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return T(r)}function T(e){var t=e.length;if(t<=K)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=K));return n}function R(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;i++)r+=String.fromCharCode(127&e[i]);return r}function O(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;i++)r+=String.fromCharCode(e[i]);return r}function P(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",s=t;s<n;s++)i+=q(e[s]);return i}function N(e,t,n){for(var r=e.slice(t,n),i="",s=0;s<r.length;s+=2)i+=String.fromCharCode(r[s]+256*r[s+1]);return i}function B(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,n,r,i,s){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,s=Math.min(e.length-n,2);i<s;i++)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,s=Math.min(e.length-n,4);i<s;i++)e[n+i]=t>>>8*(r?i:3-i)&255}function I(e,t,n,r,i,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return i||I(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(e,t,n,r,23,4),n+4}function $(e,t,n,r,i){return i||I(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,n,r,52,8),n+8}function U(e){if(e=V(e).replace(ee,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function q(e){return e<16?"0"+e.toString(16):e.toString(16)}function W(e,t){t=t||1/0;for(var n,r=e.length,i=null,s=[],o=0;o<r;o++){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function z(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}function Y(e,t){for(var n,r,i,s=[],o=0;o<e.length&&!((t-=2)<0);o++)n=e.charCodeAt(o),r=n>>8,i=n%256,s.push(i),s.push(r);return s}function G(e){return Q.toByteArray(U(e))}function J(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);i++)t[i+n]=e[i];return i}function H(e){return e!==e}var Q=e("base64-js"),X=e("ieee754"),Z=e("isarray");n.Buffer=o,n.SlowBuffer=m,n.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:r(),n.kMaxLength=i(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,n){return a(null,e,t,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,n){return p(null,e,t,n)},o.allocUnsafe=function(e){return l(null,e)},o.allocUnsafeSlow=function(e){return l(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,s=Math.min(n,r);i<s;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(e){switch(String(e).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}},o.concat=function(e,t){if(!Z(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;n++)t+=e[n].length;var r=o.allocUnsafe(t),i=0;for(n=0;n<e.length;n++){var s=e[n];if(!o.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},o.byteLength=g,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)b(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},o.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?L(this,0,e):v.apply(this,arguments)},o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},o.prototype.compare=function(e,t,n,r,i){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var s=i-r,a=n-t,u=Math.min(s,a),p=this.slice(r,i),l=e.slice(t,n),c=0;c<u;++c)if(p[c]!==l[c]){s=p[c],a=l[c];break}return s<a?-1:a<s?1:0},o.prototype.indexOf=function(e,t,n){if("string"==typeof t?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t>>=0,0===this.length)return-1;if(t>=this.length)return-1;if(t<0&&(t=Math.max(this.length+t,0)),"string"==typeof e&&(e=o.from(e,n)),o.isBuffer(e))return 0===e.length?-1:x(this,e,t,n);if("number"==typeof e)return o.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,t):x(this,[e],t,n);throw new TypeError("val must be string, number or Buffer")},o.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},o.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t=0|t,isFinite(n)?(n=0|n,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var s=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return S(this,e,t,n);case"binary":return k(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var K=4096;o.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);var r;if(o.TYPED_ARRAY_SUPPORT)r=this.subarray(e,t),r.__proto__=o.prototype;else{var i=t-e;r=new o(i,(void 0));for(var s=0;s<i;s++)r[s]=this[s+e]}return r},o.prototype.readUIntLE=function(e,t,n){e=0|e,t=0|t,n||B(e,t,this.length);for(var r=this[e],i=1,s=0;++s<t&&(i*=256);)r+=this[e+s]*i;return r},o.prototype.readUIntBE=function(e,t,n){e=0|e,t=0|t,n||B(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},o.prototype.readUInt8=function(e,t){return t||B(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||B(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||B(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,n){e=0|e,t=0|t,n||B(e,t,this.length);for(var r=this[e],i=1,s=0;++s<t&&(i*=256);)r+=this[e+s]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e=0|e,t=0|t,n||B(e,t,this.length);for(var r=t,i=1,s=this[e+--r];r>0&&(i*=256);)s+=this[e+--r]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s},o.prototype.readInt8=function(e,t){return t||B(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},o.prototype.readInt16LE=function(e,t){t||B(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){t||B(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||B(e,4,this.length),X.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||B(e,4,this.length),X.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||B(e,8,this.length),X.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||B(e,8,this.length),X.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t=0|t,n=0|n,!r){var i=Math.pow(2,8*n)-1;F(this,e,t,n,i,0)}var s=1,o=0;for(this[t]=255&e;++o<n&&(s*=256);)this[t+o]=e/s&255;return t+n},o.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t=0|t,n=0|n,!r){var i=Math.pow(2,8*n)-1;F(this,e,t,n,i,0)}var s=n-1,o=1;for(this[t+s]=255&e;--s>=0&&(o*=256);)this[t+s]=e/o&255;return t+n},o.prototype.writeUInt8=function(e,t,n){return e=+e,t=0|t,n||F(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=0|t,n||F(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=0|t,n||F(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=0|t,n||F(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=0|t,n||F(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t=0|t,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var s=0,o=1,a=0;for(this[t]=255&e;++s<n&&(o*=256);)e<0&&0===a&&0!==this[t+s-1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t=0|t,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var s=n-1,o=1,a=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t=0|t,n||F(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t=0|t,n||F(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t=0|t,n||F(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t=0|t,n||F(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t=0|t,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return $(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return $(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,s=r-n;if(this===e&&n<t&&t<r)for(i=s-1;i>=0;i--)e[i+t]=this[i+n];else if(s<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<s;i++)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+s),t);return s},o.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e=255&e);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var s;if("number"==typeof e)for(s=t;s<n;s++)this[s]=e;else{var a=o.isBuffer(e)?e:W(new o(e,r).toString()),u=a.length;for(s=0;s<n-t;s++)this[s+t]=a[s%u]}return this};var ee=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":3,ieee754:4,isarray:5}],3:[function(e,t,n){"use strict";function r(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)u[t]=e[t],p[e.charCodeAt(t)]=t;p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63}function i(e){var t,n,r,i,s,o,a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");s="="===e[a-2]?2:"="===e[a-1]?1:0,o=new l(3*a/4-s),r=s>0?a-4:a;var u=0;for(t=0,n=0;t<r;t+=4,n+=3)i=p[e.charCodeAt(t)]<<18|p[e.charCodeAt(t+1)]<<12|p[e.charCodeAt(t+2)]<<6|p[e.charCodeAt(t+3)],o[u++]=i>>16&255,o[u++]=i>>8&255,o[u++]=255&i;return 2===s?(i=p[e.charCodeAt(t)]<<2|p[e.charCodeAt(t+1)]>>4,o[u++]=255&i):1===s&&(i=p[e.charCodeAt(t)]<<10|p[e.charCodeAt(t+1)]<<4|p[e.charCodeAt(t+2)]>>2,o[u++]=i>>8&255,o[u++]=255&i),o}function s(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}function o(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],i.push(s(r));return i.join("")}function a(e){for(var t,n=e.length,r=n%3,i="",s=[],a=16383,p=0,l=n-r;p<l;p+=a)s.push(o(e,p,p+a>l?l:p+a));return 1===r?(t=e[n-1],i+=u[t>>2],i+=u[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=u[t>>10],i+=u[t>>4&63],i+=u[t<<2&63],i+="="),s.push(i),s.join("")}n.toByteArray=i,n.fromByteArray=a;var u=[],p=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array;r()},{}],4:[function(e,t,n){n.read=function(e,t,n,r,i){var s,o,a=8*i-r-1,u=(1<<a)-1,p=u>>1,l=-7,c=n?i-1:0,h=n?-1:1,f=e[t+c];for(c+=h,s=f&(1<<-l)-1,f>>=-l,l+=a;l>0;s=256*s+e[t+c],c+=h,l-=8);for(o=s&(1<<-l)-1,s>>=-l,l+=r;l>0;o=256*o+e[t+c],c+=h,l-=8);if(0===s)s=1-p;else{if(s===u)return o?NaN:(f?-1:1)*(1/0);o+=Math.pow(2,r),s-=p}return(f?-1:1)*o*Math.pow(2,s-r)},n.write=function(e,t,n,r,i,s){var o,a,u,p=8*s-i-1,l=(1<<p)-1,c=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:s-1,d=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),t+=o+c>=1?h/u:h*Math.pow(2,1-c),t*u>=2&&(o++,u/=2),o+c>=l?(a=0,o=l):o+c>=1?(a=(t*u-1)*Math.pow(2,i),o+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[n+f]=255&a,f+=d,a/=256,i-=8);for(o=o<<i|a,p+=i;p>0;e[n+f]=255&o,f+=d,o/=256,p-=8);e[n+f-d]|=128*y}},{}],5:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],6:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,s=function(e){return i.exec(e).slice(1)};n.resolve=function(){for(var n="",i=!1,s=arguments.length-1;s>=-1&&!i;s--){var o=s>=0?arguments[s]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(n=o+"/"+n,i="/"===o.charAt(0))}return n=t(r(n.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+n||"."},n.normalize=function(e){var i=n.isAbsolute(e),s="/"===o(e,-1);return e=t(r(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&s&&(e+="/"),(i?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),s=r(t.split("/")),o=Math.min(i.length,s.length),a=o,u=0;u<o;u++)if(i[u]!==s[u]){a=u;break}for(var p=[],u=a;u<i.length;u++)p.push("..");return p=p.concat(s.slice(a)),p.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){var t=s(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(e,t){var n=s(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return s(e)[3]};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:7}],7:[function(e,t,n){function r(){h&&l&&(h=!1,l.length?c=l.concat(c):f=-1,c.length&&i())}function i(){if(!h){var e=a(r);h=!0;for(var t=c.length;t;){for(l=c,c=[];++f<t;)l&&l[f].run();f=-1,t=c.length}l=null,h=!1,u(e)}}function s(e,t){this.fun=e,this.array=t}function o(){}var a,u,p=t.exports={};!function(){try{a=setTimeout}catch(e){a=function(){throw new Error("setTimeout is not defined")}}try{u=clearTimeout}catch(e){u=function(){throw new Error("clearTimeout is not defined")}}}();var l,c=[],h=!1,f=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new s(e,t)),1!==c.length||h||a(i,0)},s.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=o,p.addListener=o,p.once=o,p.off=o,p.removeListener=o,p.removeAllListeners=o,p.emit=o,p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},{}],8:[function(e,t,n){t.exports=function(e,t,n,r){var i=[[],[]],s=[/(.*)(<script[^>]*>)(.*)/i,/(.*)(<\/script>)(.*)/i],o=0,a=!0;t=t.split("\n");for(var u=0;u<t.length;){var p=s[o].exec(t[u]);p&&0==o&&p[2].match("src=")&&(p=null),p?(1==o?(i[o].push(p[1]),pr=e.compile(i[1].join("\n"),n,3,r.compiler).code,a&&r.runtime&&(a=!1,r.runtime&&i[0].push("Function.prototype.$asyncbind = "+e.$asyncbind.toString()+";\n")),i[0].push(pr),i[1]=[],o=0,i[o].push(p[2])):(i[o].push(p[1]),i[o].push(p[2]),o=1),t[u]=p[3]):i[o].push(t[u++])}return i[0].join("\n")}},{}],9:[function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e.map(r).join("|\n");try{return y(e)}catch(t){return t.message+"\n"+e.type}}function i(e){if(Array.isArray(e))return e.map(function(e){return i(e)});var t={};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function s(e,t){e.__proto__=Object.getPrototypeOf(t),Object.keys(e).forEach(function(t){delete e[t]}),Object.keys(t).forEach(function(n){e[n]=t[n]})}function o(e){return e?(g.node=e,g):{}}function a(e,t,n){if(!e)return null;if(t&&"object"==typeof t){var r=Object.keys(t);return a(e,function(e){return r.every(function(n){return e[n]==t[n]})})}var i,s={};if(Array.isArray(e)){for(var u=0;u<e.length;u++)if(i=a(e[u],t))return i;return null}try{d.treeWalker(e,function(r,i,a){if(t(r))throw s.node=r,s;r!==e&&!n&&o(r).isFunction||i()})}catch(p){if(p===s)return s.node;throw p}return null}function u(e){return a(e,{type:"AwaitExpression"})}function p(e){for(var t=0;t<e.length;t++){var n=e[t];if("ClassDefinition"===n.type||"VariableDeclaration"===n.type&&("let"===n.kind||"const"===n.kind))return!0}return!1}function l(e){if(null===e)return{type:"NullLiteral",value:null,raw:"null"};if(e===!0||e===!1)return{type:"BooleanLiteral",value:e,raw:JSON.stringify(e)};if(e instanceof RegExp){var t=e.toString(),n=t.split("/");return{type:"RegExpLiteral",value:e,raw:t,pattern:n[1],flags:n[2]}}return"number"==typeof e?{type:"NumericLiteral",value:e,raw:JSON.stringify(e)}:{type:"StringLiteral",value:e,raw:JSON.stringify(e)}}function c(e,t){return{type:"Identifier",name:e,loc:t}}function h(e){var t={};for(var n in e)t[n]="string"==typeof e[n]?c(e[n]):e[n];return t}function f(e,t,n,f){function y(t){return e.filename+(t&&t.loc&&t.loc.start?"("+t.loc.start.line+":"+t.loc.start.column+")\t":"\t")}function m(e){return n.babelTree?l(e):{type:"Literal",value:e,raw:JSON.stringify(e)}}function g(e){return!n.babelTree||"ClassMethod"!==e.type&&"ObjectMethod"!==e.type?(!n.babelTree&&"MethodDefinition"===e.type||"Property"===e.type&&(e.method||"get"==e.kind||"set"==e.kind))&&o(e.value).isFunction?e.value:null:e}function v(e){if(!e)return!1;var t=!1;if(Array.isArray(e)){for(var r=0;r<e.length;r++)v(e[r])&&(t=!0);return t}return d.treeWalker(e,function(r,i,s){"Identifier"===r.type&&"arguments"===r.name?(r.name=n.$arguments,t=!0):r!==e&&o(r).isFunction||i()}),t}function b(e){return"string"!=typeof e&&(e=e.type),n.generatedSymbolPrefix+e+"_"+ne++}function x(e,t){return e&&(e.$exit=h({$error:t.$error,$return:t.$return})),e}function w(e){for(var t=0;t<e.length;t++){if(e[t].self.$exit)return e[t].self;if(e[t].parent&&e[t].parent.$exit)return e[t].parent}return null}function E(e,t){var n=w(e);if(n)return n.$exit;if(t)for(var r=0;r<t.length;r++)if(t[r])return h(t[r]);return null}function S(e,t){Z(e),H(e),B(e),q(e),V(e),$(e),O(e),R(e),M(e,[F,P,N]),j(e,t),K(e),ee(e)}function k(e,t,n,r){return{type:"VariableDeclaration",kind:"var",declarations:[{type:"VariableDeclarator",id:c(e),init:{type:"CallExpression",callee:{type:"MemberExpression",object:{type:"FunctionExpression",id:null,generator:!1,expression:!1,params:n||[],body:t},property:re.asyncbind,computed:!1},arguments:[{type:"ThisExpression"},r]}}]}}function A(e,t){var n={$continuation:!0,type:"FunctionDeclaration",id:c(e),params:[],body:{type:"BlockStatement",body:i(t)}};return te[e]={def:n},n}function C(e){return{type:"AwaitExpression",argument:q({type:"FunctionExpression",generator:!1,expression:!1,async:!0,params:[],body:{type:"BlockStatement",body:e}}).body.body[0].argument}}function _(e,t){"string"==typeof e&&(e=c(e));var n={type:"CallExpression",callee:{type:"MemberExpression",object:e,property:c("call"),computed:!1},arguments:[{type:"ThisExpression"}].concat(t||[])};return e.$thisCall=n,n.$thisCallName=e.name,n}function L(e,t){return{type:"CallExpression",callee:c(e.$seh+"Finally"),arguments:t?[t]:[]}}function T(e,t){if(Array.isArray(e))return e.map(function(e){return T(e,t)});var r=0;return d.treeWalker(e,function(e,t,i){if("ReturnStatement"!==e.type||e.$mapped){if("ThrowStatement"===e.type){if(r>0){if(!e.async)return t(e);delete e.async}return e.type="ReturnStatement",e.$mapped=!0,void(e.argument={type:"CallExpression",callee:E(i,[n]).$error,arguments:[e.argument]})}return o(e).isFunction?(r++,t(e),void r--):void t(e)}if(r>0){if(!e.async)return t(e);delete e.async}return void(o(e.argument).isUnaryExpression&&"void"===e.argument.operator?e.argument=e.argument.argument:e.argument={type:"CallExpression",callee:E(i,[n]).$return,arguments:e.argument?[e.argument]:[]})},t)}function R(e,t){return Array.isArray(e)?e.map(function(e){return R(e,t)}):(d.treeWalker(e,function(e,t,n){if(t(),"ConditionalExpression"===e.type&&(u(e.alternate)||u(e.consequent))){var r=(c(b("condOp")),C([{type:"IfStatement",test:e.test,consequent:{type:"ReturnStatement",argument:e.consequent},alternate:null},{type:"ReturnStatement",argument:e.alternate}]));s(e,r)}},t),e)}function O(e,t){return Array.isArray(e)?e.map(function(e){return O(e,t)}):(d.treeWalker(e,function(e,t,n){function r(e,t){return C([{type:"VariableDeclaration",declarations:[{type:"VariableDeclarator",id:o,init:null}],kind:"var"},{type:"IfStatement",test:e,consequent:t,alternate:null},{type:"ReturnStatement",argument:o}])}if(t(),"LogicalExpression"===e.type&&u(e.right)){var i,o=c(b("logical"+("&&"===e.operator?"And":"Or")));if("||"===e.operator)i=r({type:"UnaryExpression",operator:"!",prefix:!0,argument:{type:"AssignmentExpression",operator:"=",left:o,right:e.left}},{type:"ExpressionStatement",expression:{type:"AssignmentExpression",operator:"=",left:o,right:e.right}});else{if("&&"!==e.operator)throw new Error(y(e)+"Illegal logical operator: "+e.operator);i=r({type:"AssignmentExpression",operator:"=",left:o,right:e.left},{type:"ExpressionStatement",expression:{type:"AssignmentExpression",operator:"=",left:o,right:e.right}})}s(e,i)}},t),e)}function P(e,t,n){if("IfStatement"===e.type&&u([e.consequent,e.alternate])){var r=b(e),a={type:"BlockStatement",body:[e]},p=t[0];if("index"in p){var l=p.index,c=p.parent[p.field].splice(l+1,p.parent[p.field].length-(l+1));if(p.parent[p.field][l]=a,c.length){var h={type:"ReturnStatement",argument:_(r)};a.body.unshift(n(A(r,c))),[e.consequent,e.alternate].forEach(function(e){
if(e){var t;t=o(e).isBlockStatement?e.body[e.body.length-1]:e,"ReturnStatement"!==t.type&&("BlockStatement"!==e.type&&s(e,{type:"BlockStatement",body:[i(e)]}),e.$deferred=!0,e.body.push(i(h))),n(e)}}),e.consequent&&e.alternate&&e.consequent.$deferred&&e.alternate.$deferred||a.body.push(i(h))}}else p.parent[p.field]=a}}function N(e,t,n){if(!e.$switched&&"SwitchStatement"===e.type&&u(e.cases)){e.$switched=!0;var r,s,o,a=t[0];if("index"in a){var p=a.index+1;o=a.parent[a.field].splice(p,a.parent[a.field].length-p),o.length&&"BreakStatement"===o[o.length-1].type&&a.parent[a.field].push(o.pop()),r=b(e),s=_(r),a.parent[a.field].unshift(A(r,o)),a.parent[a.field].push({type:"ExpressionStatement",expression:i(s)})}return e.cases.forEach(function(e,t){if("SwitchCase"!==e.type)throw new Error("switch contains non-case/default statement: "+e.type);if(u(e.consequent)){var n=e.consequent[e.consequent.length-1];"BreakStatement"===n.type?e.consequent[e.consequent.length-1]={type:"ReturnStatement",argument:s&&i(s)}:"ReturnStatement"===n.type||"ThrowStatement"===n.type||(f(y(e)+"switch-case fall-through not supported - added break. See https://github.com/MatAtBread/nodent#differences-from-the-es7-specification"),e.consequent.push({type:"ReturnStatement",argument:s&&i(s)}))}}),!0}}function B(t){return d.treeWalker(t,function(t,r,i){if("TryStatement"===t.type&&u(t)){var s=E(i,[n]);if(t.$seh=b("Try")+"_",t.finalizer&&!t.handler){var o=c(b("exception"));t.handler={type:"CatchClause",param:o,body:{type:"BlockStatement",body:[{type:"ThrowStatement",argument:o}]}}}if(!t.handler&&!t.finalizer){var a=new SyntaxError(y(t.value)+"try requires catch and/or finally clause",e.filename,t.start);throw a.pos=t.start,a.loc=t.loc.start,a}t.finalizer?(x(t.block,{$error:t.$seh+"Catch",$return:L(t,s.$return)}),x(t.handler,{$error:L(t,s.$error),$return:L(t,s.$return)})):x(t.block,{$error:t.$seh+"Catch",$return:s.$return})}r()}),t}function F(t,r,s){if("TryStatement"===t.type&&u(t)&&!t.$mapped){var o,a,p,l=r[0];if(!("index"in l))throw new Error(e.filename+" - malformed try/catch blocks");var h=l.index+1,f=l.parent[l.field].splice(h,l.parent[l.field].length-h);if(f.length){a=t.$seh+"Post";var d=A(a,f);d=s(d),l.parent[l.field].unshift(d),o=_(t.finalizer?L(t,c(a)):a)}else t.finalizer&&(o=_(L(t)));t.$mapped=!0,o&&(t.block.body.push(i(o)),t.handler.body.body.push(i(o)));var y=E(r,[n]);if(t.handler){var m=c(t.$seh+"Catch");p=i(t.handler.body);var g=k(m.name,p,[i(t.handler.param)],t.finalizer?L(t,y.$error):y.$error);t.handler.body.body=[{type:"CallExpression",callee:m,arguments:[i(t.handler.param)]}],l.parent[l.field].unshift(g)}if(t.finalizer){var v={type:"VariableDeclaration",kind:"var",declarations:[{type:"VariableDeclarator",id:c(t.$seh+"Finally"),init:{type:"CallExpression",callee:{type:"MemberExpression",object:{type:"FunctionExpression",params:[c(t.$seh+"Exit")],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:{type:"CallExpression",arguments:[{type:"ThisExpression"},y.$error],callee:{type:"MemberExpression",property:re.asyncbind,object:{type:"FunctionExpression",params:[c(t.$seh+"Value")],body:{type:"BlockStatement",body:i(t.finalizer.body).concat([{type:"ReturnStatement",argument:{type:"BinaryExpression",operator:"&&",left:c(t.$seh+"Exit"),right:_(c(t.$seh+"Exit"),[c(t.$seh+"Value")])}}])}}}}}]}},property:re.asyncbind,computed:!1},arguments:[{type:"ThisExpression"}]}}]};l.parent[l.field].unshift(v);var b={type:"ReturnStatement",argument:_(L(t,a&&c(a)))};p.body[p.length-1]=b,t.block.body[t.block.body.length-1]=b,delete t.finalizer}}}function M(e,t,n){var r=[];return d.treeWalker(e,function(e,n,i){function s(e){return r.push(e),M(e,t,i)}r.indexOf(e)>=0||(Array.isArray(t)?t.forEach(function(t){t(e,i,s)}):t(e,i,s),n())},n)}function j(e,t,a){return d.treeWalker(e,function(e,p,l){if("IfStatement"==e.type&&("BlockStatement"!=e.consequent.type&&u(e.consequent)&&(e.consequent={type:"BlockStatement",body:[e.consequent]}),e.alternate&&"BlockStatement"!=e.alternate.type&&u(e.alternate)&&(e.alternate={type:"BlockStatement",body:[e.alternate]})),p(),o(e).isAwait){var h=e.loc;if(t=t||l.some(function(e){return e.self&&e.self.$wasAsync}),!t||"warn"===t){var d=y(e)+"'await' used inside non-async function. ";d+=n.promises?"'return' value Promise runtime-specific":"'return' value from await is synchronous",f(d+". See https://github.com/MatAtBread/nodent#differences-from-the-es7-specification")}var m=l[0].parent;"LogicalExpression"===m.type&&m.right===e&&f(y(e.argument)+"'"+r(m)+"' on right of "+m.operator+" will always evaluate '"+r(e.argument)+"'"),"ConditionalExpression"===m.type&&m.test!==e&&f(y(e.argument)+"'"+r(m)+"' will always evaluate '"+r(e.argument)+"'");var g=c(b("await")),v=i(e.argument);s(e,g);for(var x,w,S=1;S<l.length;S++)if(w=o(l[S].self).isBlockStatement){x=l[S-1];break}if(!x)throw new Error(y(e)+"Illegal await not contained in a statement");var k,A,C=E(l,[a,n]),_=x.index,L=w.splice(_,w.length-_).slice(1);"ReturnStatement"===x.self.type&&"CallExpression"===x.self.argument.type&&1===x.self.argument.arguments.length&&x.self.argument.arguments[0].name===g.name?A=k=x.self.argument.callee:"Identifier"===x.self.type||x.self.name===g.name||"ExpressionStatement"===x.self.type&&"Identifier"===x.self.expression.type&&x.self.expression.name===g.name?k=L.length?{type:"FunctionExpression",params:[i(g)],body:j({type:"BlockStatement",body:i(L)},t,C)}:{type:"FunctionExpression",params:[],body:{type:"BlockStatement",body:[]}}:(L.unshift(x.self),k={type:"FunctionExpression",params:[i(g)],body:j({type:"BlockStatement",body:i(L)},t,C)}),A||(A=k?{type:"CallExpression",callee:{type:"MemberExpression",object:k,property:c("$asyncbind",h),computed:!1},arguments:[{type:"ThisExpression"},C.$error]}:{type:"FunctionExpression",params:[],body:{type:"BlockStatement",body:[]}}),n.wrapAwait&&(v=n.promises||n.generators?{type:"CallExpression",arguments:[v],callee:{type:"MemberExpression",object:c("Promise"),property:c("resolve")}}:{type:"CallExpression",arguments:[v],callee:{type:"MemberExpression",object:c("Object"),property:c("$makeThenable")}});var T={type:"CallExpression",callee:{type:"MemberExpression",object:v,property:c("then",h),computed:!1},arguments:[A,C.$error]};w.push({loc:h,type:"ReturnStatement",argument:T})}return!0}),e}function I(e,t){var n=c(b("in")),r="VariableDeclaration"===e.left.type?e.left.declarations[0].id:e.left,i={type:"VariableDeclaration",declarations:[{type:"VariableDeclarator",id:n,init:{type:"ArrayExpression",elements:[]}}],kind:"var"},s=e.body;e.body={type:"ExpressionStatement",expression:{type:"CallExpression",callee:{type:"MemberExpression",object:n,property:c("push"),computed:!1},arguments:[r]}};var o={type:"ExpressionStatement",expression:{type:"AssignmentExpression",operator:"=",left:r,right:{type:"CallExpression",callee:{type:"MemberExpression",object:n,property:c("shift"),computed:!1},arguments:[]}}};"BlockStatement"===s.type?s.body.unshift(o):s={type:"BlockStatement",body:[o].concat(s)};var a={type:"WhileStatement",test:{type:"MemberExpression",object:n,property:c("length"),computed:!1},body:s};"index"in t[0]?t[0].parent.body.splice(t[0].index,1,i,e,a):t[0].parent[t[0].ref]={type:"BlockStatement",body:[i,e,a]}}function D(e,t){e.type="ForStatement","BlockStatement"!==e.body.type&&(e.body={type:"BlockStatement",body:[e.body]});var n,r,i={type:"ArrayExpression",elements:[{type:"CallExpression",callee:{type:"MemberExpression",object:e.right,property:{type:"MemberExpression",object:c("Symbol"),property:c("iterator"),computed:!1},computed:!0},arguments:[]}]};if("VariableDeclaration"===e.left.type)n=e.left.declarations[0].id,r=c("$iterator_"+n.name),e.left.declarations.push({type:"VariableDeclarator",id:r,init:i}),e.init=e.left;else{n=e.left,r=c("$iterator_"+n.name);var s={type:"VariableDeclaration",kind:"var",declarations:[{type:"VariableDeclarator",id:r,init:i}]};t[0].parent.body.splice(t[0].index,0,s),e.init=null}e.test={type:"LogicalExpression",left:{type:"UnaryExpression",operator:"!",prefix:!0,argument:{type:"MemberExpression",object:{type:"AssignmentExpression",operator:"=",left:{type:"MemberExpression",object:r,property:m(1),computed:!0},right:{type:"CallExpression",callee:{type:"MemberExpression",object:{type:"MemberExpression",object:r,property:m(0),computed:!0},property:c("next"),computed:!1},arguments:[]}},property:c("done"),computed:!1}},operator:"&&",right:{type:"LogicalExpression",operator:"||",left:{type:"AssignmentExpression",operator:"=",left:n,right:{type:"MemberExpression",object:{type:"MemberExpression",object:r,property:m(1),computed:!0},property:c("value"),computed:!1}},right:m(!0)}},delete e.left,delete e.right}function $(e){return d.treeWalker(e,function(e,t,r){function a(e){return{type:"ReturnStatement",argument:{type:"UnaryExpression",operator:"void",prefix:!0,argument:_(e||w)}}}function p(t,r){if("BreakStatement"===t.type)s(t,i(S(t.label&&n.generatedSymbolPrefix+e.type+"_"+t.label.name+"_exit")));else if("ContinueStatement"===t.type)s(t,i(a(t.label&&n.generatedSymbolPrefix+e.type+"_"+t.label.name+"_next")));else if(o(t).isFunction)return!0;r()}"ForInStatement"===e.type&&u(e)?I(e,r):"ForOfStatement"===e.type&&u(e)&&D(e,r),t();var l;if(o(e).isLoop&&u(e)){var h=e.init,f=e.test,y=e.update,m=e.body;if(h)if(o(h).isStatement){if("VariableDeclaration"===h.type){var g=h;for(h={type:"ExpressionStatement",expression:{type:"SequenceExpression",expressions:h.declarations.filter(function(e){return e.init}).map(function(e){return{type:"AssignmentExpression",operator:"=",left:e.id,right:e.init}})}},g.declarations.forEach(function(e){delete e.init}),l=0;l<r.length;l++){var v;if(v=o(r[l].parent).getScope){"VariableDeclaration"===v[0].type?v[0].declarations=v[0].declarations.concat(g.declarations):v.unshift(g);break}}}}else h={type:"ExpressionStatement",expression:h};y=y?{type:"ExpressionStatement",expression:y}:null,m=o(m).isBlockStatement?i(m).body:[i(m)];var b="LabeledStatement"===r[0].parent.type&&r[0].parent.label.name;b=e.type+"_"+(b||ne++);var x=n.generatedSymbolPrefix+(b+"_exit"),w=n.generatedSymbolPrefix+(b+"_next"),E=c(n.generatedSymbolPrefix+(b+"_loop")),S=function(e){return{type:"ReturnStatement",argument:{type:"UnaryExpression",operator:"void",prefix:!0,argument:{type:"CallExpression",callee:c(e||x),arguments:[]}}}},k=A(w,[{type:"ReturnStatement",argument:{type:"CallExpression",callee:E,arguments:[c(x),re.error]}}]);y&&k.body.body.unshift(y);for(var C=0;C<m.length;C++)d.treeWalker(m[C],p);m.push(i(a()));var L={type:"FunctionExpression",id:E,params:[c(x),re.error],body:{type:"BlockStatement",body:[k]}};if("DoWhileStatement"===e.type)k.body.body=[{type:"IfStatement",test:i(f),consequent:{type:"BlockStatement",body:i(k.body.body)},alternate:{type:"ReturnStatement",argument:{type:"CallExpression",callee:c(x),arguments:[]}}}],L.body.body=[k].concat(m);else{var T={type:"IfStatement",test:i(f),consequent:{type:"BlockStatement",body:m},alternate:i(S())};L.body.body.push(T)}var R={type:"ExpressionStatement",expression:{type:"AwaitExpression",operator:"await",argument:{type:"CallExpression",arguments:[{type:"ThisExpression"}],callee:{type:"MemberExpression",object:L,property:re.asyncbind,computed:!1}}}};for(l=0;l<r.length;l++){var O=r[l];if("index"in O)return h?O.parent[O.field].splice(O.index,1,i(h),R):O.parent[O.field][O.index]=R,!0}}return!0}),e}function U(e){try{return Array.isArray(e)?e.some(U):(d.treeWalker(e,function(e,t,r){if("Identifier"===e.type&&(e.name===n.$return||e.name===n.$error))throw e;if(o(e).isFunction){var i=a(e,function(e){if("Identifier"===e.type&&(e.name===n.$return||e.name===n.$error))throw e;if(("ReturnStatement"===e.type||"ThrowStatement"===e.type)&&e.async)throw e});if(i)throw i;return!1}t()}),!1)}catch(t){return t}}function V(t){return d.treeWalker(t,function(t,r,i){r();var s=g(t);if(s&&s.async){if("set"==t.kind){var o=new SyntaxError(y(s)+"method 'async set' cannot be invoked",e.filename,t.start);throw o.pos=t.start,o.loc=t.loc.start,o}s.async=!1;var a=v(s);U(s)||0!==s.body.body.length&&"ReturnStatement"===s.body.body[s.body.body.length-1].type||s.body.body.push({type:"ReturnStatement"});var u={type:"CallExpression",arguments:[{type:"ThisExpression"}],callee:{type:"MemberExpression",object:x({type:"FunctionExpression",params:[re["return"],re.error],body:V(T(s.body,i)),$wasAsync:!0},n),property:re.asyncbind,computed:!1}};n.promises?s.body={type:"BlockStatement",body:[{type:"ReturnStatement",argument:{type:"NewExpression",callee:c("Promise"),arguments:[u]}}]}:(n.lazyThenables||u.arguments.push(m(!0)),s.body={type:"BlockStatement",body:[{type:"ReturnStatement",argument:u}]}),a&&s.body.body.unshift(ie)}})}function q(e){return d.treeWalker(e,function(e,t,r){if(t(),o(e).isAsync&&o(e).isFunction){delete e.async;var i,s=v(e);return o(e.body).isBlockStatement?(U(e.body)||0!==e.body.body.length&&"ReturnStatement"===e.body.body[e.body.body.length-1].type||e.body.body.push({type:"ReturnStatement"}),i={type:"BlockStatement",body:e.body.body.map(function(e){return T(e,r)})}):(i={type:"BlockStatement",body:[T({type:"ReturnStatement",argument:e.body},r)]},e.expression=!1),i={type:"CallExpression",arguments:[{type:"ThisExpression"}],callee:{type:"MemberExpression",object:x({type:"FunctionExpression",params:[re["return"],re.error],body:i,$wasAsync:!0},n),property:re.asyncbind,computed:!1}},n.promises?i={type:"NewExpression",callee:c("Promise"),arguments:[i]}:n.lazyThenables||i.arguments.push(m(!0)),i={type:"BlockStatement",body:[{type:"ReturnStatement",loc:e.loc,argument:i}]},s&&i.body.unshift(ie),void(e.body=i)}}),e}function W(e){if(Array.isArray(e))return e.map(W);var t=0;return d.treeWalker(e,function(e,n,r){if("ThrowStatement"!==e.type&&"ReturnStatement"!==e.type||e.$mapped){if(o(e).isFunction)return t++,n(e),void t--}else if(t>0&&e.async)return delete e.async,e.argument={type:"CallExpression",callee:"ThrowStatement"===e.type?re.error:re["return"],arguments:e.argument?[e.argument]:[]},void(e.type="ReturnStatement");n(e)})}function z(e,t){return{type:"BlockStatement",body:[{type:"ReturnStatement",argument:{type:"CallExpression",callee:{type:"MemberExpression",object:{type:"FunctionExpression",id:null,generator:!0,expression:!1,params:[re["return"],re.error],body:{type:"BlockStatement",body:W(e).concat(t?[{type:"ReturnStatement",argument:re["return"]}]:[])}},property:re.asyncspawn,computed:!1},arguments:[c("Promise"),{type:"ThisExpression"}]}}]}}function Y(e){function t(e,t){t.$asyncexitwarninig||(t.$asyncexitwarninig=!0,f(y(e)+"'async "+{ReturnStatement:"return",ThrowStatement:"throw"}[e.type]+"' not possible in generator mode. Using Promises for function at "+y(t)))}function r(e){d.treeWalker(e,function(t,n,r){t!==e&&o(t).isFunction||(o(t).isAwait?(delete t.operator,t.delegate=!1,t.type="YieldExpression",n()):n())})}function i(e){var t=n.promises;n.promises=!0,S(e,!0),n.promises=t}function a(e){return"BlockStatement"!==e.body.type&&(e.body={type:"BlockStatement",body:[{type:"ReturnStatement",argument:e.body}]}),e}d.treeWalker(e,function(e,n,u){n();var p,l,c;o(e).isAsync&&o(e).isFunction?(l=U(e.body))?(t(l,e.body),i(e)):(p=e,delete p.async,c=v(p),r(p),p=a(p),p.body=z(p.body.body,l),c&&p.body.body.unshift(ie),"ExpressionStatement"===u[0].parent.type?(p.type="FunctionDeclaration",u[1].replace(p)):u[0].replace(p)):(p=g(e))&&p.async&&((l=U(p))?(t(l,p),i(e)):(e.async=!1,c=v(p),r(p),s(p,a(p)),p.body=z(p.body.body,l),c&&p.body.body.unshift(ie)))});var p=n.promises;return n.promises=!0,d.treeWalker(e,function(t,n,r){n(),o(t).isFunction&&u(t.body)&&(Z(t),H(t),B(t),$(t),O(t),R(t),M(t,[F,P,N]),j(t,"warn"),K(e),ee(t))}),n.promises=p,e}function G(e,t,n){var r=[];return d.treeWalker(e,function(i,s,a){return i===e?s():t(i,a)?void r.push([].concat(a)):void(n||o(i).isScope||s())}),r}function J(e){return"init"==e.field&&"ForStatement"===e.parent.type||"left"==e.field&&("ForInStatement"===e.parent.type||"ForOfStatement"===e.parent.type)}function H(e){return d.treeWalker(e,function(e,t,n){if(t(),o(e).isScope&&u(e)){var r=G(e,function(e,t){return!!(o(e).isAsync&&o(e).isFunction&&e.id)||!(!o(e).isFunction||!e.id)&&!e.$continuation}),s=G(e,function(e,t){if("VariableDeclaration"===e.type&&"var"===e.kind)return!J(t[0])}),a=G(e,function(e){return o(e).isDirective}),p="Program"===e.type?e:e.body;r=r.map(function(e){var t,n=e[0];if(o(n.self).isAsync)return t=n.self.id.name,o(n.parent).isBlockStatement?(n.self.type="FunctionDeclaration",n.remove(),n.self):n.replace(c(t));t=n.self.id.name;var r="FunctionDeclaration"===n.self.type?n.remove():n.replace(c(t));return r});var l=[];if(s.length){var h=[];s.forEach(function(t){for(var n=t[0],r=n.self,s=[],o=0;o<r.declarations.length;o++){var a,u;switch(r.declarations[o].id.type){case"Identifier":a=r.declarations[o].id.name,u=h.indexOf(a),u>=0?f(y(r.declarations[o])+"Duplicate 'var "+a+"' in '"+(e.name?e.name.name:"anonymous")+"()'"):h.push(a);break;case"ObjectPattern":r.declarations[o].id.properties.forEach(function(t){a=t.key.name,u=h.indexOf(a),u>=0?f(y(r.declarations[o])+"Duplicate 'var "+a+"' in '"+(e.name?e.name.name:"anonymous")+"()'"):h.push(a)});break;case"ArrayPattern":r.declarations[o].id.elements.forEach(function(t){a=t.name,u=h.indexOf(a),u>=0?f(y(r.declarations[o])+"Duplicate 'var "+a+"' in '"+(e.name?e.name.name:"anonymous")+"()'"):h.push(a)})}if(r.declarations[o].init){var p={type:"AssignmentExpression",left:i(r.declarations[o].id),operator:"=",right:i(r.declarations[o].init)};"ForStatement"!==n.parent.type&&(p={type:"ExpressionStatement",expression:p}),s.push(p)}}0==s.length?n.remove():n.replace(s)}),h.length&&(h=h.map(function(e){return{type:"VariableDeclarator",id:c(e)}}),l[0]&&"VariableDeclaration"===l[0].type?l[0].declarations=l[0].declarations.concat(h):l.unshift({type:"VariableDeclaration",kind:"var",declarations:h}))}a=a.map(function(e){var t=e[0];return t.remove()}),p.body=a.concat(l).concat(r).concat(p.body)}return