diff --git a/webnode/build/service-worker.js b/webnode/build/service-worker.js index da5b120..1edb3fa 100644 --- a/webnode/build/service-worker.js +++ b/webnode/build/service-worker.js @@ -1 +1 @@ -"use strict";var precacheConfig=[["index.html","5a3814be4e074d3563d6dbd6e5accaca"],["static/js/oyster-webnode-0.0.1.min.js","bb1cc72d7c5c88cc1959605d48f8e6ce"],["static/media/oyster-logo-with-dot.svg","bd44f3a1db709806c1aa4394e9c0b001"]],cacheName="sw-precache-v3-sw-precache-webpack-plugin-"+(self.registration?self.registration.scope:""),ignoreUrlParametersMatching=[/^utm_/],addDirectoryIndex=function(e,t){var n=new URL(e);return"/"===n.pathname.slice(-1)&&(n.pathname+=t),n.toString()},cleanResponse=function(e){return e.redirected?("body"in e?Promise.resolve(e.body):e.blob()).then(function(t){return new Response(t,{headers:e.headers,status:e.status,statusText:e.statusText})}):Promise.resolve(e)},createCacheKey=function(e,t,n,r){var a=new URL(e);return r&&a.pathname.match(r)||(a.search+=(a.search?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(n)),a.toString()},isPathWhitelisted=function(e,t){if(0===e.length)return!0;var n=new URL(t).pathname;return e.some(function(e){return n.match(e)})},stripIgnoredUrlParameters=function(e,t){var n=new URL(e);return n.hash="",n.search=n.search.slice(1).split("&").map(function(e){return e.split("=")}).filter(function(e){return t.every(function(t){return!t.test(e[0])})}).map(function(e){return e.join("=")}).join("&"),n.toString()},hashParamName="_sw-precache",urlsToCacheKeys=new Map(precacheConfig.map(function(e){var t=e[0],n=e[1],r=new URL(t,self.location),a=createCacheKey(r,hashParamName,n,/\.\w{8}\./);return[r.toString(),a]}));function setOfCachedUrls(e){return e.keys().then(function(e){return e.map(function(e){return e.url})}).then(function(e){return new Set(e)})}self.addEventListener("install",function(e){e.waitUntil(caches.open(cacheName).then(function(e){return setOfCachedUrls(e).then(function(t){return Promise.all(Array.from(urlsToCacheKeys.values()).map(function(n){if(!t.has(n)){var r=new Request(n,{credentials:"same-origin"});return fetch(r).then(function(t){if(!t.ok)throw new Error("Request for "+n+" returned a response with status "+t.status);return cleanResponse(t).then(function(t){return e.put(n,t)})})}}))})}).then(function(){return self.skipWaiting()}))}),self.addEventListener("activate",function(e){var t=new Set(urlsToCacheKeys.values());e.waitUntil(caches.open(cacheName).then(function(e){return e.keys().then(function(n){return Promise.all(n.map(function(n){if(!t.has(n.url))return e.delete(n)}))})}).then(function(){return self.clients.claim()}))}),self.addEventListener("fetch",function(e){if("GET"===e.request.method){var t,n=stripIgnoredUrlParameters(e.request.url,ignoreUrlParametersMatching);(t=urlsToCacheKeys.has(n))||(n=addDirectoryIndex(n,"index.html"),t=urlsToCacheKeys.has(n));!t&&"navigate"===e.request.mode&&isPathWhitelisted(["^(?!\\/__).*"],e.request.url)&&(n=new URL("/index.html",self.location).toString(),t=urlsToCacheKeys.has(n)),t&&e.respondWith(caches.open(cacheName).then(function(e){return e.match(urlsToCacheKeys.get(n)).then(function(e){if(e)return e;throw Error("The cached response that was expected is missing.")})}).catch(function(t){return console.warn('Couldn\'t serve response for "%s" from cache: %O',e.request.url,t),fetch(e.request)}))}}); \ No newline at end of file +"use strict";var precacheConfig=[["index.html","5a3814be4e074d3563d6dbd6e5accaca"],["static/js/oyster-webnode-0.0.1.min.js","1a402de3884e8fbac9d79ecf008ae8e1"],["static/media/oyster-logo-with-dot.svg","a7a8bfc83962de419239d7ee932cdec9"]],cacheName="sw-precache-v3-sw-precache-webpack-plugin-"+(self.registration?self.registration.scope:""),ignoreUrlParametersMatching=[/^utm_/],addDirectoryIndex=function(e,t){var n=new URL(e);return"/"===n.pathname.slice(-1)&&(n.pathname+=t),n.toString()},cleanResponse=function(e){return e.redirected?("body"in e?Promise.resolve(e.body):e.blob()).then(function(t){return new Response(t,{headers:e.headers,status:e.status,statusText:e.statusText})}):Promise.resolve(e)},createCacheKey=function(e,t,n,r){var a=new URL(e);return r&&a.pathname.match(r)||(a.search+=(a.search?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(n)),a.toString()},isPathWhitelisted=function(e,t){if(0===e.length)return!0;var n=new URL(t).pathname;return e.some(function(e){return n.match(e)})},stripIgnoredUrlParameters=function(e,t){var n=new URL(e);return n.hash="",n.search=n.search.slice(1).split("&").map(function(e){return e.split("=")}).filter(function(e){return t.every(function(t){return!t.test(e[0])})}).map(function(e){return e.join("=")}).join("&"),n.toString()},hashParamName="_sw-precache",urlsToCacheKeys=new Map(precacheConfig.map(function(e){var t=e[0],n=e[1],r=new URL(t,self.location),a=createCacheKey(r,hashParamName,n,/\.\w{8}\./);return[r.toString(),a]}));function setOfCachedUrls(e){return e.keys().then(function(e){return e.map(function(e){return e.url})}).then(function(e){return new Set(e)})}self.addEventListener("install",function(e){e.waitUntil(caches.open(cacheName).then(function(e){return setOfCachedUrls(e).then(function(t){return Promise.all(Array.from(urlsToCacheKeys.values()).map(function(n){if(!t.has(n)){var r=new Request(n,{credentials:"same-origin"});return fetch(r).then(function(t){if(!t.ok)throw new Error("Request for "+n+" returned a response with status "+t.status);return cleanResponse(t).then(function(t){return e.put(n,t)})})}}))})}).then(function(){return self.skipWaiting()}))}),self.addEventListener("activate",function(e){var t=new Set(urlsToCacheKeys.values());e.waitUntil(caches.open(cacheName).then(function(e){return e.keys().then(function(n){return Promise.all(n.map(function(n){if(!t.has(n.url))return e.delete(n)}))})}).then(function(){return self.clients.claim()}))}),self.addEventListener("fetch",function(e){if("GET"===e.request.method){var t,n=stripIgnoredUrlParameters(e.request.url,ignoreUrlParametersMatching);(t=urlsToCacheKeys.has(n))||(n=addDirectoryIndex(n,"index.html"),t=urlsToCacheKeys.has(n));!t&&"navigate"===e.request.mode&&isPathWhitelisted(["^(?!\\/__).*"],e.request.url)&&(n=new URL("/index.html",self.location).toString(),t=urlsToCacheKeys.has(n)),t&&e.respondWith(caches.open(cacheName).then(function(e){return e.match(urlsToCacheKeys.get(n)).then(function(e){if(e)return e;throw Error("The cached response that was expected is missing.")})}).catch(function(t){return console.warn('Couldn\'t serve response for "%s" from cache: %O',e.request.url,t),fetch(e.request)}))}}); \ No newline at end of file diff --git a/webnode/build/static/js/oyster-webnode-0.0.1.min.js b/webnode/build/static/js/oyster-webnode-0.0.1.min.js index 5fb7211..fa8f534 100644 --- a/webnode/build/static/js/oyster-webnode-0.0.1.min.js +++ b/webnode/build/static/js/oyster-webnode-0.0.1.min.js @@ -1,22 +1,22 @@ -!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=313)}([function(e,t,r){e.exports=function(){var e=e||function(e,t){var r=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),n={},i=n.lib={},o=i.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){var t=t,r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(r,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(r,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,s=4*o,u=i/s,c=(u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0))*o,l=e.min(4*c,i);if(c){for(var f=0;f15?(i=Date.now(),u(e)):(r.push(e),1===r.length&&a.setAttribute("a",o=!o))}}s.nextTick=s.setImmediate}(),s.isNodejs=void 0!==t&&t.versions&&t.versions.node,s.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s.isArrayBuffer=function(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer},s.isArrayBufferView=function(e){return e&&s.isArrayBuffer(e.buffer)&&void 0!==e.byteLength},s.ByteBuffer=c,s.ByteStringBuffer=c;s.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>4096&&(this.data.substr(0,1),this._constructedStringLength=0)},s.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},s.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},s.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))},s.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);for(var r=this.data;t>0;)1&t&&(r+=e),(t>>>=1)>0&&(e+=e);return this.data=r,this._optimizeConstructedString(t),this},s.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this},s.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(s.encodeUtf8(e))},s.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255))},s.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))},s.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))},s.ByteStringBuffer.prototype.putInt=function(e,t){u(t);var r="";do{t-=8,r+=String.fromCharCode(e>>t&255)}while(t>0);return this.putBytes(r)},s.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<0);return t},s.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<=r&&(t-=r<<1),t},s.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):0===e?t="":(t=0===this.read?this.data:this.data.slice(this.read),this.clear()),t},s.ByteStringBuffer.prototype.bytes=function(e){return void 0===e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},s.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)},s.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this},s.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},s.ByteStringBuffer.prototype.copy=function(){var e=s.createBuffer(this.data);return e.read=this.read,e},s.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},s.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},s.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this},s.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t=e)return this;t=Math.max(t||this.growSize,e);var r=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),n=new Uint8Array(this.length()+t);return n.set(r),this.data=new DataView(n.buffer),this},s.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this},s.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var r=0;r>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this},s.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this},s.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this},s.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this},s.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this},s.DataBuffer.prototype.putInt=function(e,t){u(t),this.accommodate(t/8);do{t-=8,this.data.setInt8(this.write++,e>>t&255)}while(t>0);return this},s.DataBuffer.prototype.putSignedInt=function(e,t){return u(t),this.accommodate(t/8),e<0&&(e+=2<0);return t},s.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<=r&&(t-=r<<1),t},s.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):0===e?t="":(t=0===this.read?this.data:this.data.slice(this.read),this.clear()),t},s.DataBuffer.prototype.bytes=function(e){return void 0===e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},s.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)},s.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this},s.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},s.DataBuffer.prototype.copy=function(){return new s.DataBuffer(this)},s.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this},s.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},s.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this},s.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t0;)1&t&&(r+=e),(t>>>=1)>0&&(e+=e);return r},s.xorBytes=function(e,t,r){for(var n="",i="",o="",a=0,s=0;r>0;--r,++a)i=e.charCodeAt(a)^t.charCodeAt(a),s>=10&&(n+=o,o="",s=0),o+=String.fromCharCode(i),++s;return n+=o},s.hexToBytes=function(e){var t="",r=0;for(!0&e.length&&(r=1,t+=String.fromCharCode(parseInt(e[0],16)));r>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e)};var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],h="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";s.encode64=function(e,t){for(var r,n,i,o="",a="",s=0;s>2),o+=l.charAt((3&r)<<4|n>>4),isNaN(n)?o+="==":(o+=l.charAt((15&n)<<2|i>>6),o+=isNaN(i)?"=":l.charAt(63&i)),t&&o.length>t&&(a+=o.substr(0,t)+"\r\n",o=o.substr(t));return a+=o},s.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var t,r,n,i,o="",a=0;a>4),64!==n&&(o+=String.fromCharCode((15&r)<<4|n>>2),64!==i&&(o+=String.fromCharCode((3&n)<<6|i)));return o},s.encodeUtf8=function(e){return unescape(encodeURIComponent(e))},s.decodeUtf8=function(e){return decodeURIComponent(escape(e))},s.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:a.encode,decode:a.decode}},s.binary.raw.encode=function(e){return String.fromCharCode.apply(null,e)},s.binary.raw.decode=function(e,t,r){var n=t;n||(n=new Uint8Array(e.length));for(var i=r=r||0,o=0;o>2),o+=l.charAt((3&r)<<4|n>>4),isNaN(n)?o+="==":(o+=l.charAt((15&n)<<2|i>>6),o+=isNaN(i)?"=":l.charAt(63&i)),t&&o.length>t&&(a+=o.substr(0,t)+"\r\n",o=o.substr(t));return a+=o},s.binary.base64.decode=function(e,t,r){var n,i,o,a,s=t;s||(s=new Uint8Array(3*Math.ceil(e.length/4))),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var u=0,c=r=r||0;u>4,64!==o&&(s[c++]=(15&i)<<4|o>>2,64!==a&&(s[c++]=(3&o)<<6|a));return t?c-r:s.subarray(0,c)},s.binary.base58.encode=function(e,t){return s.binary.baseN.encode(e,h,t)},s.binary.base58.decode=function(e,t){return s.binary.baseN.decode(e,h,t)},s.text={utf8:{},utf16:{}},s.text.utf8.encode=function(e,t,r){e=s.encodeUtf8(e);var n=t;n||(n=new Uint8Array(e.length));for(var i=r=r||0,o=0;o0?(i=r[n].substring(0,a),o=r[n].substring(a+1)):(i=r[n],o=null),i in t||(t[i]=[]),i in Object.prototype||null===o||t[i].push(unescape(o))}return t};return void 0===e?(null===_&&(_="undefined"!=typeof window&&window.location&&window.location.search?r(window.location.search.substring(1)):{}),t=_):t=r(e),t},s.parseFragment=function(e){var t=e,r="",n=e.indexOf("?");n>0&&(t=e.substring(0,n),r=e.substring(n+1));var i=t.split("/");return i.length>0&&""===i[0]&&i.shift(),{pathString:t,queryString:r,path:i,query:""===r?{}:s.getQueryVariables(r)}},s.makeRequest=function(e){var t=s.parseFragment(e),r={path:t.pathString,query:t.queryString,getPath:function(e){return void 0===e?t.path:t.path[e]},getQuery:function(e,r){var n;return void 0===e?n=t.query:(n=t.query[e])&&void 0!==r&&(n=n[r]),n},getQueryLast:function(e,t){var n=r.getQuery(e);return n?n[n.length-1]:t}};return r},s.makeLink=function(e,t,r){e=jQuery.isArray(e)?e.join("/"):e;var n=jQuery.param(t||{});return r=r||"",e+(n.length>0?"?"+n:"")+(r.length>0?"#"+r:"")},s.setPath=function(e,t,r){if("object"==typeof e&&null!==e)for(var n=0,i=t.length;n0&&o.push(r),a=n.lastIndex;var s=t[0][1];switch(s){case"s":case"o":i");break;case"%":o.push("%");break;default:o.push("<%"+s+"?>")}}return o.push(e.substring(a)),o.join("")},s.formatNumber=function(e,t,r,n){var i=e,o=isNaN(t=Math.abs(t))?2:t,a=void 0===r?",":r,s=void 0===n?".":n,u=i<0?"-":"",c=parseInt(i=Math.abs(+i||0).toFixed(o),10)+"",l=c.length>3?c.length%3:0;return u+(l?c.substr(0,l)+s:"")+c.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+s)+(o?a+Math.abs(i-c).toFixed(o).slice(2):"")},s.formatSize=function(e){return e=e>=1073741824?s.formatNumber(e/1073741824,2,".","")+" GiB":e>=1048576?s.formatNumber(e/1048576,2,".","")+" MiB":e>=1024?s.formatNumber(e/1024,0)+" KiB":s.formatNumber(e,0)+" bytes"},s.bytesFromIP=function(e){return-1!==e.indexOf(".")?s.bytesFromIPv4(e):-1!==e.indexOf(":")?s.bytesFromIPv6(e):null},s.bytesFromIPv4=function(e){if(4!==(e=e.split(".")).length)return null;for(var t=s.createBuffer(),r=0;rr[n].end-r[n].start&&(n=r.length-1)):r.push({start:u,end:u})}t.push(o)}if(r.length>0){var c=r[n];c.end-c.start>0&&(t.splice(c.start,c.end-c.start+1,""),0===c.start&&t.unshift(""),7===c.end&&t.push(""))}return t.join(":")},s.estimateCores=function(e,t){if("function"==typeof e&&(t=e,e={}),e=e||{},"cores"in s&&!e.update)return t(null,s.cores);if("undefined"!=typeof navigator&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return s.cores=navigator.hardwareConcurrency,t(null,s.cores);if("undefined"==typeof Worker)return s.cores=1,t(null,s.cores);if("undefined"==typeof Blob)return s.cores=2,t(null,s.cores);var r=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(e){for(var t=Date.now(),r=t+4;Date.now()s.st&&i.sti.st&&s.st>>2];e.sigBytes-=t}},y=(n.BlockCipher=f.extend({cfg:f.cfg.extend({mode:p,padding:g}),reset:function(){f.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else{var n=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==n?this._mode.init(this,t&&t.words):(this._mode=n.call(r,this,t&&t.words),this._mode.__creator=n)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),m=r.format={},b=m.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var n=o.create([1398893684,1701076831]).concat(r).concat(t);else var n=t;return n.toString(u)},parse:function(e){var t=u.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var n=o.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return y.create({ciphertext:t,salt:n})}},_=n.SerializableCipher=i.extend({cfg:i.extend({format:b}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return y.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=e.createDecryptor(r,n).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=r.kdf={},E=w.OpenSSL={execute:function(e,t,r,n){n||(n=o.random(8));var i=l.create({keySize:t+r}).compute(e,n),a=o.create(i.words.slice(t),4*r);return i.sigBytes=4*t,y.create({key:i,iv:a,salt:n})}},S=n.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:E}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=_.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);n.iv=i.iv;var o=_.decrypt.call(this,e,t,i.key,n);return o}})}()}(r(0),r(16))},function(e,t,r){"use strict";var n=r(18),i=r(290),o=r(61),a=r(287),s=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n=this.operator,o=i.toSubscriber(e,t,r);if(n?n.call(o,this.source):o.add(this.source||!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.syncErrorThrown=!0,e.syncErrorValue=t,e.error(t)}},e.prototype.forEach=function(e,t){var r=this;if(t||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?t=n.root.Rx.config.Promise:n.root.Promise&&(t=n.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var i;i=r.subscribe(function(t){if(i)try{e(t)}catch(e){n(e),i.unsubscribe()}else e(t)},n,t)})},e.prototype._subscribe=function(e){return this.source.subscribe(e)},e.prototype[o.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t0?"http://18.217.133.146:3000":"https://broker-1.oysternodes.com:3000",s=window.location&&window.location.href.indexOf("localhost")>0?window.location.href:"https://web.oysternode.com/",u="data-eth-address",c="http://18.217.133.146:14265",l=81,f=1,h=1,d={CLAIMED:"CLAIMED",UNCLAIMED:"UNCLAIMED",NO_TREASURE_FOUND:"NO_TREASURE_FOUND"},p={PENDING:"PENDING",APPROVED:"APPROVED",DENIED:"DENIED"},v=1e6,g=["ef1b4554b887d814097ad7f7d628071497e2b092dc9e7a92b92fc8556bce3aee"],y="0xD1833A50f411432aD38E8374df8Cfff79e743788",m="https://8a7dab982d62492ab5bcf2382df33c9e@sentry.io/1215881"}.call(this,r(15))},function(e,t,r){"use strict";var n=r(92),i=r(230),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function s(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),a(e))for(var r=0,n=e.length;r0;){var o=i%3;i=Math.floor(i/3),o>1&&(o=-1,i++),n[n.length]=o}if(e<0)for(var a=0;a0;)t=3*t+e[r];return t},fromValue:function(e){for(var t=[],r=e<0?-e:e,n=0;r>0;){var i=r%3;r=Math.floor(r/3),i>1&&(i=-1,r++),t[n]=i,n++}if(e<0)for(var o=0;o0;){var o=i%3;i=Math.floor(i/3),o>1&&(o=-1,i++),n[n.length]=o}if(e<0)for(var a=0;a0;)t=3*t+e[r];return t},fromValue:function(e){for(var t=[],r=e<0?-e:e,n=0;r>0;){var i=r%3;r=Math.floor(r/3),i>1&&(i=-1,r++),t[n]=i,n++}if(e<0)for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(u)throw u;for(var n=!1,i={},o=0;o0)},i.prototype.squeeze=function(e,t,r){do{for(var n=0,i=r<243?r:243;n0)},i.prototype.transform=function(){for(var e=[],t=0,r=0;r0)},i.prototype.squeeze=function(e,t,r){do{for(var n=0,i=r<243?r:243;n0)},i.prototype.transform=function(){for(var e=[],t=0,r=0;r1)for(var r=1;r0)},s.prototype.squeeze=function(e,t,r){if(r&&r%243!=0)throw new Error("Illegal length provided");do{for(var n=this.k.clone().finalize(),a=o.words_to_trits(n.words),s=0,u=r0)},e.exports=s},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],d=e[t+2],p=e[t+3],v=e[t+4],g=e[t+5],y=e[t+6],m=e[t+7],b=e[t+8],_=e[t+9],w=e[t+10],E=e[t+11],S=e[t+12],x=e[t+13],T=e[t+14],A=e[t+15],k=o[0],O=o[1],C=o[2],I=o[3];O=h(O=h(O=h(O=h(O=f(O=f(O=f(O=f(O=l(O=l(O=l(O=l(O=c(O=c(O=c(O=c(O,C=c(C,I=c(I,k=c(k,O,C,I,a,7,s[0]),O,C,u,12,s[1]),k,O,d,17,s[2]),I,k,p,22,s[3]),C=c(C,I=c(I,k=c(k,O,C,I,v,7,s[4]),O,C,g,12,s[5]),k,O,y,17,s[6]),I,k,m,22,s[7]),C=c(C,I=c(I,k=c(k,O,C,I,b,7,s[8]),O,C,_,12,s[9]),k,O,w,17,s[10]),I,k,E,22,s[11]),C=c(C,I=c(I,k=c(k,O,C,I,S,7,s[12]),O,C,x,12,s[13]),k,O,T,17,s[14]),I,k,A,22,s[15]),C=l(C,I=l(I,k=l(k,O,C,I,u,5,s[16]),O,C,y,9,s[17]),k,O,E,14,s[18]),I,k,a,20,s[19]),C=l(C,I=l(I,k=l(k,O,C,I,g,5,s[20]),O,C,w,9,s[21]),k,O,A,14,s[22]),I,k,v,20,s[23]),C=l(C,I=l(I,k=l(k,O,C,I,_,5,s[24]),O,C,T,9,s[25]),k,O,p,14,s[26]),I,k,b,20,s[27]),C=l(C,I=l(I,k=l(k,O,C,I,x,5,s[28]),O,C,d,9,s[29]),k,O,m,14,s[30]),I,k,S,20,s[31]),C=f(C,I=f(I,k=f(k,O,C,I,g,4,s[32]),O,C,b,11,s[33]),k,O,E,16,s[34]),I,k,T,23,s[35]),C=f(C,I=f(I,k=f(k,O,C,I,u,4,s[36]),O,C,v,11,s[37]),k,O,m,16,s[38]),I,k,w,23,s[39]),C=f(C,I=f(I,k=f(k,O,C,I,x,4,s[40]),O,C,a,11,s[41]),k,O,p,16,s[42]),I,k,y,23,s[43]),C=f(C,I=f(I,k=f(k,O,C,I,_,4,s[44]),O,C,S,11,s[45]),k,O,A,16,s[46]),I,k,d,23,s[47]),C=h(C,I=h(I,k=h(k,O,C,I,a,6,s[48]),O,C,m,10,s[49]),k,O,T,15,s[50]),I,k,g,21,s[51]),C=h(C,I=h(I,k=h(k,O,C,I,S,6,s[52]),O,C,p,10,s[53]),k,O,w,15,s[54]),I,k,u,21,s[55]),C=h(C,I=h(I,k=h(k,O,C,I,b,6,s[56]),O,C,A,10,s[57]),k,O,y,15,s[58]),I,k,x,21,s[59]),C=h(C,I=h(I,k=h(k,O,C,I,v,6,s[60]),O,C,E,10,s[61]),k,O,d,15,s[62]),I,k,_,21,s[63]),o[0]=o[0]+k|0,o[1]=o[1]+O|0,o[2]=o[2]+C|0,o[3]=o[3]+I|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<>>32-o)+t}function l(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<>>32-o)+t}r.MD5=o._createHelper(u),r.HmacMD5=o._createHmacHelper(u)}(Math),e.MD5}(r(0))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.WordArray;t.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>6-a%4*2;i[o>>>2]|=(s|u)<<24-o%4*8,o++}return r.create(i,o)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(r(0))},function(e,t){var r=function(e){if(!a(e))return!1;if(90===e.length){if(!n(e,90))return!1}else if(!n(e,81))return!1;return!0},n=function(e,t){t||(t="0,");var r=new RegExp("^[9A-Z]{"+t+"}$");return a(e)&&r.test(e)},i=function(e){return Number.isInteger(e)},o=function(e){return!!n(e,81)},a=function(e){return"string"==typeof e},s=function(e){return e instanceof Array};e.exports={isAddress:r,isTrytes:n,isNinesTrytes:function(e){return a(e)&&/^[9]+$/.test(e)},isValue:i,isHash:o,isTransfersArray:function(e){if(!s(e))return!1;for(var t=0;tf[t].dp)throw new Error("Input value exceeded max fromUnit precision.");return n.times(f[t].val).dividedBy(f[r].val).toNumber()},addChecksum:h,noChecksum:d,isValidChecksum:function(e){var t=d(e);return h(t)===e},transactionObject:function(e){if(e){for(var t=2279;t<2295;t++)if("9"!==e.charAt(t))return null;var r={},n=a.trits(e),o=[],s=new i;return s.initialize(),s.absorb(n,0,n.length),s.squeeze(o,0,243),r.hash=a.trytes(o),r.signatureMessageFragment=e.slice(0,2187),r.address=e.slice(2187,2268),r.value=a.value(n.slice(6804,6837)),r.obsoleteTag=e.slice(2295,2322),r.timestamp=a.value(n.slice(6966,6993)),r.currentIndex=a.value(n.slice(6993,7020)),r.lastIndex=a.value(n.slice(7020,7047)),r.bundle=e.slice(2349,2430),r.trunkTransaction=e.slice(2430,2511),r.branchTransaction=e.slice(2511,2592),r.tag=e.slice(2592,2619),r.attachmentTimestamp=a.value(n.slice(7857,7884)),r.attachmentTimestampLowerBound=a.value(n.slice(7884,7911)),r.attachmentTimestampUpperBound=a.value(n.slice(7911,7938)),r.nonce=e.slice(2646,2673),r}},transactionTrytes:p,categorizeTransfers:function(e,t){var r={sent:[],received:[]};return e.forEach(function(e){var n=!1;e.forEach(function(i,o){if(t.indexOf(i.address)>-1){var a=i.currentIndex===i.lastIndex&&0!==i.lastIndex;i.value<0&&!n&&!a?(r.sent.push(e),n=!0):i.value>=0&&!n&&!a&&r.received.push(e)}})}),r},toTrytes:u.toTrytes,fromTrytes:u.fromTrytes,extractJson:c,validateSignatures:function(e,t){for(var r,i=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:g;if("function"!=typeof e)throw new TypeError("You must provide a root Epic to createEpicMiddleware");t=v({},g,t);var r=new n.Subject,a=t.adapter.input(new d(r)),s=new n.Subject,u=void 0,c=function(n){return u=n,function(n){var c;return(c=i.map.call(s,function(e){var r=u,n="dependencies"in t?e(a,r,t.dependencies):e(a,r);if(!n)throw new TypeError('Your root Epic "'+(e.name||"")+"\" does not return a stream. Double check you're not missing a return statement!");return n}),o.switchMap).call(c,function(e){return t.adapter.output(e)}).subscribe(u.dispatch),s.next(e),function(e){var t=n(e);return r.next(e),t}}};return c.replaceEpic=function(e){u.dispatch({type:p}),s.next(e)},c}var m=r(120);var b=function(){for(var e=arguments.length,t=Array(e),r=0;r")+"\" does not return a stream. Double check you're not missing a return statement!");return t})))}};r.d(t,"createEpicMiddleware",function(){return y}),r.d(t,"ActionsObservable",function(){return d}),r.d(t,"combineEpics",function(){return b}),r.d(t,"EPIC_END",function(){return p}),r.d(t,"ofType",function(){return f})},function(e,t,r){var n=r(39),i=(r(10),r(14)),o=r(186),a=384;function s(){this.k=n.algo.SHA3.create(),this.k.init({outputLength:a})}s.BIT_HASH_LENGTH=a,s.HASH_LENGTH=i.HASH_LENGTH,s.prototype.initialize=function(e){},s.prototype.reset=function(){this.k.reset()},s.prototype.absorb=function(e,t,r){if(r&&r%243!=0)throw new Error("Illegal length provided");do{var a=r0)},s.prototype.squeeze=function(e,t,r){if(r&&r%243!=0)throw new Error("Illegal length provided");do{for(var n=this.k.clone().finalize(),a=o.words_to_trits(n.words),s=0,u=r0)},e.exports=s},function(e,t,r){"use strict";r.r(t),r.d(t,"GIVE_CONSENT",function(){return n}),r.d(t,"DENY_CONSENT",function(){return i});var n="directories/app/give-consent",i="directories/app/deny-consent",o=Object.freeze({GIVE_CONSENT:n,DENY_CONSENT:i,giveConsent:function(){return{type:n}},denyConsent:function(){return{type:i}}});t.default=o},function(e,t,r){var n=r(12);r(1),e.exports=n.cipher=n.cipher||{},n.cipher.algorithms=n.cipher.algorithms||{},n.cipher.createCipher=function(e,t){var r=e;if("string"==typeof r&&(r=n.cipher.getAlgorithm(r))&&(r=r()),!r)throw new Error("Unsupported algorithm: "+e);return new n.cipher.BlockCipher({algorithm:r,key:t,decrypt:!1})},n.cipher.createDecipher=function(e,t){var r=e;if("string"==typeof r&&(r=n.cipher.getAlgorithm(r))&&(r=r()),!r)throw new Error("Unsupported algorithm: "+e);return new n.cipher.BlockCipher({algorithm:r,key:t,decrypt:!0})},n.cipher.registerAlgorithm=function(e,t){e=e.toUpperCase(),n.cipher.algorithms[e]=t},n.cipher.getAlgorithm=function(e){return(e=e.toUpperCase())in n.cipher.algorithms?n.cipher.algorithms[e]:null};var i=n.cipher.BlockCipher=function(e){this.algorithm=e.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=e.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=e.decrypt,this.algorithm.initialize(e)};i.prototype.start=function(e){e=e||{};var t={};for(var r in e)t[r]=e[r];t.decrypt=this._decrypt,this._finish=!1,this._input=n.util.createBuffer(),this.output=e.output||n.util.createBuffer(),this.mode.start(t)},i.prototype.update=function(e){for(e&&this._input.putBuffer(e);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()},i.prototype.finish=function(e){!e||"ECB"!==this.mode.name&&"CBC"!==this.mode.name||(this.mode.pad=function(t){return e(this.blockSize,t,!1)},this.mode.unpad=function(t){return e(this.blockSize,t,!0)});var t={};return t.decrypt=this._decrypt,t.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,t))&&(this._finish=!0,this.update(),!(this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,t))&&!(this.mode.afterFinish&&!this.mode.afterFinish(this.output,t)))}},function(e,t,r){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,l=c&&c(Object);e.exports=function e(t,r,f){if("string"!=typeof r){if(l){var h=c(r);h&&h!==l&&e(t,h,f)}var d=a(r);s&&(d=d.concat(s(r)));for(var p=0;p0;){var u=new i;u.initialize(),u.absorb(r,0,r.length),u.squeeze(r,0,n.HASH_LENGTH)}o.absorb(r,0,r.length)}return o.squeeze(r,0,n.HASH_LENGTH),r};e.exports={key:function(e,t,r){for(;e.length%243!=0;)e.push(0);var n=o.fromValue(t),a=s(e.slice(),n),u=new i;u.initialize(),u.absorb(a,0,a.length),u.squeeze(a,0,a.length),u.reset(),u.absorb(a,0,a.length);for(var c=[],l=0,f=[];r-- >0;)for(var h=0;h<27;h++){u.squeeze(f,0,a.length);for(var d=0;d<243;d++)c[l++]=f[d]}return c},digests:function(e){for(var t=[],r=[],o=0;o0?1:r<0?-1:0}(n(e,t),n(o,i));return[r(o,i),a]}e.exports=function(e,t){for(var r=new Array(Math.max(e.length,t.length)),n=0,o=0;o=0){for(;n-- >0;)for(i=0;i<27;i++)if(t[27*r+i]>-13){t[27*r+i]--;break}}else for(;n++<0;)for(i=0;i<27;i++)if(t[27*r+i]<13){t[27*r+i]++;break}}return t},e.exports=s},function(e,t,r){var n=r(14),i=r(27),o=r(10),a=r(51);function s(){this.bundle=[]}s.prototype.addEntry=function(e,t,r,n,i,o){for(var a=0;a=0){for(;n-- >0;)for(i=0;i<27;i++)if(t[27*r+i]>-13){t[27*r+i]--;break}}else for(;n++<0;)for(i=0;i<27;i++)if(t[27*r+i]<13){t[27*r+i]++;break}}return t},e.exports=s},function(e,t,r){var n=r(14),i=r(27),o=r(10),a=r(36),s=r(51),u=(r(185),r(50)),c=function(e,t){var r=[],o=new i;o.initialize();for(var a=0;a<27;a++){r=t.slice(243*a,243*(a+1));for(var s=e[a]+13;s-- >0;){var u=new i;u.initialize(),u.absorb(r,0,r.length),u.squeeze(r,0,n.HASH_LENGTH)}o.absorb(r,0,r.length)}return o.squeeze(r,0,n.HASH_LENGTH),r};e.exports={key:function(e,t,r){for(;e.length%243!=0;)e.push(0);var n=o.fromValue(t),a=s(e.slice(),n),u=new i;u.initialize(),u.absorb(a,0,a.length),u.squeeze(a,0,a.length),u.reset(),u.absorb(a,0,a.length);for(var c=[],l=0,f=[];r-- >0;)for(var h=0;h<27;h++){u.squeeze(f,0,a.length);for(var d=0;d<243;d++)c[l++]=f[d]}return c},digests:function(e){for(var t=[],r=[],o=0;o25?39:97))},R=function(e){var t="",r=void 0;for(r=e;r>52;r=Math.floor(r/52))t=N(r%52)+t;return N(r%52)+t},B=function(e,t){return t.reduce(function(t,r,n){return t.concat(r,e[n+1])},[e[0]])},P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},H=function(){function e(e,t){for(var r=0;r=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},L=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},F=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n"+e()+""}},ie=function(e,t){return function(){var r,n=((r={})[z]=Q(t),r),i=$();return i&&(n.nonce=i),f.a.createElement("style",M({},n,{dangerouslySetInnerHTML:{__html:e()}}))}},oe=function(e){return function(){return Object.keys(e)}},ae=function e(t,r){var n=void 0===t?Object.create(null):t,i=void 0===r?Object.create(null):r,o=function(e){var t=i[e];return void 0!==t?t:i[e]=[""]},a=function(){var e="";for(var t in i){var r=i[t][0];r&&(e+=te(t)+r)}return e};return{styleTag:null,getIds:oe(i),hasNameForId:X(n),insertMarker:o,insertRules:function(e,t,r){o(e)[0]+=t.join(" "),K(n,e,r)},removeRules:function(e){var t=i[e];void 0!==t&&(t[0]="",Y(n,e))},css:a,toHTML:ne(a,n),toElement:ie(a,n),clone:function(){var t=function(e){var t=Object.create(null);for(var r in e)t[r]=M({},e[r]);return t}(n),r=Object.create(null);for(var o in i)r[o]=[i[o][0]];return e(t,r)}}},se=function(e,t,r,n,i){if(W&&!r){var o=function(e,t,r){var n=document.createElement("style");n.setAttribute(z,"");var i=$();if(i&&n.setAttribute("nonce",i),n.appendChild(document.createTextNode("")),e&&!t)e.appendChild(n);else{if(!t||!e||!t.parentNode)throw new Error("");t.parentNode.insertBefore(n,r?t:t.nextSibling)}return n}(e,t,n);return function(e,t){var r=Object.create(null),n=Object.create(null),i=[],o=void 0!==t,a=!1,s=function(e){var t=n[e];return void 0!==t?t:(n[e]=i.length,i.push(0),Y(r,e),n[e])},u=function(){var t=J(e).cssRules,r="";for(var o in n){r+=te(o);for(var a=n[o],s=re(i,a),u=s-i[a];u0&&(a=!0,t().insertRules(n+"-import",p)),i[l]+=d,K(r,n,c)},removeRules:function(s){var u=n[s];if(void 0!==u){var c=i[u];!function(e,t,r){for(var n=t-r,i=t;i>n;i-=1)e.deleteRule(i)}(J(e),re(i,u),c),i[u]=0,Y(r,s),o&&a&&t().removeRules(s+"-import")}},css:u,toHTML:ne(u,r),toElement:ie(u,r),clone:ee}}(o,i)}return ae()},ue=void 0;ue=W?1e3:-1;var ce,le=0,fe=void 0,he=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W?document.head:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];j(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var r=t.tags[0];return t.importRuleTag=se(t.target,r?r.styleTag:null,t.forceServer,!0)},le+=1,this.id=le,this.sealed=!1,this.forceServer=n,this.target=n?null:r,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!W||this.forceServer)return this;var e=[],t=[],r=[],n=!1,i=document.querySelectorAll("style["+z+"]"),o=i.length;if(0===o)return this;for(var a=0;a0&&void 0!==arguments[0]&&arguments[0];fe=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map(function(e){for(var r=e.getIds(),n=e.clone(),i=0;i<+~=|^:(),"'`-]+/g,ye=/(^-|-$)/g;function me(e){return e.replace(ge,"-").replace(ye,"")}function be(e){return e.displayName||e.name||"Component"}function _e(e){return"string"==typeof e}var we=/^((?:s(?:uppressContentEditableWarn|croll|pac)|(?:shape|image|text)Render|(?:letter|word)Spac|vHang|hang)ing|(?:on(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:Animation|Touch|Load|Drag)Start|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|Lo(?:stPointer|ad)|TimeUpdate|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|GotPointer|MouseDown|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|KeyPress|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|P(?:rogress|laying)|DragEnd|Key(?:Down|Up)|(?:MouseU|Dro)p|(?:Wait|Seek)ing|Scroll|Focus|Paste|Abort|Drag|Play|Blur)Captur|alignmentBaselin|(?:limitingConeAng|xlink(?:(?:Arcr|R)o|Tit)|s(?:urfaceSca|ty|ca)|unselectab|baseProfi|fontSty|(?:focus|dragg)ab|multip|profi|tit)l|d(?:ominantBaselin|efaultValu)|onPointerLeav|a(?:uto(?:Capitaliz|Revers|Sav)|dditiv)|(?:(?:formNoValid|xlinkActu|noValid|accumul|rot)a|autoComple|decelera)t|(?:(?:attribute|item)T|datat)yp|onPointerMov|(?:attribute|glyph)Nam|playsInlin|(?:writing|input|edge)Mod|(?:formE|e)ncTyp|(?:amplitu|mo)d|(?:xlinkTy|itemSco|keyTy|slo)p|(?:xmlSpa|non)c|fillRul|(?:dateTi|na)m|r(?:esourc|ol)|xmlBas|wmod)e|(?:glyphOrientationHorizont|loc)al|(?:externalResourcesRequir|select|revers|mut)ed|c(?:o(?:lorInterpolationFilter|ord)s|o(?:lor(?:Interpolation)?|nt(?:rols|ent))|(?:ontentS(?:cript|tyle)Typ|o(?:ntentEditab|lorProfi)l|l(?:assNam|ipRul)|a(?:lcMod|ptur)|it)e|olorRendering|l(?:ipPathUnits|assID)|(?:ontrolsLis|apHeigh)t|h(?:eckedLink|a(?:llenge|rSet)|ildren|ecked)|ell(?:Spac|Padd)ing|o(?:ntextMenu|ls)|(?:rossOrigi|olSpa)n|lip(?:Path)?|ursor|[xy])|glyphOrientationVertical|d(?:angerouslySetInnerHTML|efaultChecked|ownload|isabled|isplay|[xy])|(?:s(?:trikethroughThickn|eaml)es|(?:und|ov)erlineThicknes|r(?:equiredExtension|adiu)|(?:requiredFeatur|tableValu|stitchTil|numOctav|filterR)e|key(?:(?:Splin|Tim)e|Param)|autoFocu|header|bia)s|(?:(?:st(?:rikethroughPosi|dDevia)|(?:und|ov)erlinePosi|(?:textDecor|elev)a|orienta)tio|(?:strokeLinejo|orig)i|on(?:PointerDow|FocusI)|formActio|zoomAndPa|directio|(?:vers|act)io|rowSpa|begi|ico)n|o(?:n(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:Animation|Touch|Load|Drag)Start|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|TimeUpdate|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|MouseDown|P(?:rogress|laying)|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|KeyPress|DragEnd|Key(?:Down|Up)|(?:Wait|Seek)ing|(?:MouseU|Dro)p|Scroll|Paste|Focus|Abort|Drag|Play|Load|Blur)|rient)|p(?:reserveA(?:spectRatio|lpha)|ointsAt[X-Z]|anose1)|(?:patternContent|ma(?:sk(?:Content)?|rker)|primitive|gradient|pattern|filter)Units|(?:(?:allowTranspar|baseFrequ)enc|re(?:ferrerPolic|adOnl)|(?:(?:st(?:roke|op)O|floodO|fillO|o)pac|integr|secur)it|visibilit|fontFamil|accessKe|propert|summar)y|(?:gradientT|patternT|t)ransform|(?:[xy]ChannelSelect|lightingCol|textAnch|floodCol|stopCol|operat|htmlF)or|(?:strokeMiterlimi|(?:specularConsta|repeatCou|fontVaria)n|(?:(?:specularE|e)xpon|renderingInt|asc)en|d(?:iffuseConsta|esce)n|(?:fontSizeAdju|lengthAdju|manife)s|baselineShif|onPointerOu|vectorEffec|(?:(?:mar(?:ker|gin)|x)H|accentH|fontW)eigh|markerStar|a(?:utoCorrec|bou)|onFocusOu|intercep|restar|forma|inlis|heigh|lis)t|(?:(?:st(?:rokeDasho|artO)|o)ffs|acceptChars|formTarg|viewTarg|srcS)et|k(?:ernel(?:UnitLength|Matrix)|[1-4])|(?:(?:enableBackgrou|markerE)n|s(?:p(?:readMetho|ee)|ee)|formMetho|(?:markerM|onInval)i|preloa|metho|kin)d|strokeDasharray|(?:onPointerCanc|lab)el|(?:allowFullScre|hidd)en|systemLanguage|(?:(?:o(?:nPointer(?:Ent|Ov)|rd)|allowReord|placehold|frameBord|paintOrd|post)e|repeatDu|d(?:efe|u))r|v(?:Mathematical|ert(?:Origin[XY]|AdvY)|alues|ocab)|(?:pointerEve|keyPoi)nts|(?:strokeLineca|onPointerU|itemPro|useMa|wra|loo)p|h(?:oriz(?:Origin|Adv)X|ttpEquiv)|(?:vI|i)deographic|unicodeRange|mathematical|vAlphabetic|u(?:nicodeBidi|[12])|(?:fontStretc|hig)h|(?:(?:mar(?:ker|gin)W|strokeW)id|azimu)th|(?:xmlnsXl|valueL)ink|mediaGroup|spellCheck|(?:text|m(?:in|ax))Length|(?:unitsPerE|optimu|fro)m|r(?:adioGroup|e(?:sults|f[XY]|l)|ows|[xy])|a(?:rabicForm|l(?:phabetic|t)|sync)|pathLength|innerHTML|xlinkShow|(?:xlinkHr|glyphR)ef|(?:tabInde|(?:sand|b)bo|viewBo)x|(?:(?:href|xml|src)La|kerni)ng|autoPlay|o(?:verflow|pen)|f(?:o(?:ntSize|rm)|il(?:ter|l))|r(?:e(?:quired|sult|f))?|divisor|p(?:attern|oints)|unicode|d(?:efault|ata|ir)?|i(?:temRef|n2|s)|t(?:arget[XY]|o)|srcDoc|s(?:coped|te(?:m[hv]|p)|pan)|(?:width|size)s|prefix|typeof|itemID|s(?:t(?:roke|art)|hape|cope|rc)|t(?:arget|ype)|(?:stri|la)ng|a(?:ccept|s)|m(?:edia|a(?:sk|x)|in)|x(?:mlns)?|width|value|size|href|k(?:ey)?|end|low|by|i[dn]|y[12]|g[12]|x[12]|f[xy]|[yz])$/,Ee=RegExp.prototype.test.bind(new RegExp("^(x|data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"));var Se,xe,Te="__styled-components__",Ae=Te+"next__",ke=d.a.shape({getTheme:d.a.func,subscribe:d.a.func,unsubscribe:d.a.func});var Oe=function(e){function t(){j(this,t);var r=L(this,e.call(this));return r.unsubscribeToOuterId=-1,r.getTheme=r.getTheme.bind(r),r}return D(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.context[Ae];void 0!==t&&(this.unsubscribeToOuterId=t.subscribe(function(t){e.outerTheme=t,void 0!==e.broadcast&&e.publish(e.props.theme)})),this.broadcast=function(e){var t={},r=0,n=e;return{publish:function(e){for(var r in n=e,t){var i=t[r];void 0!==i&&i(n)}},subscribe:function(e){var i=r;return t[i]=e,r+=1,e(n),i},unsubscribe:function(e){t[e]=void 0}}}(this.getTheme())},t.prototype.getChildContext=function(){var e,t=this;return M({},this.context,((e={})[Ae]={getTheme:this.getTheme,subscribe:this.broadcast.subscribe,unsubscribe:this.broadcast.unsubscribe},e[Te]=function(e){var r=t.broadcast.subscribe(e);return function(){return t.broadcast.unsubscribe(r)}},e))},t.prototype.componentWillReceiveProps=function(e){this.props.theme!==e.theme&&this.publish(e.theme)},t.prototype.componentWillUnmount=function(){-1!==this.unsubscribeToOuterId&&this.context[Ae].unsubscribe(this.unsubscribeToOuterId)},t.prototype.getTheme=function(e){var t=e||this.props.theme;if(function(e){return"function"==typeof e}(t))return t(this.outerTheme);if(null===t||Array.isArray(t)||"object"!==(void 0===t?"undefined":P(t)))throw new Error("");return M({},this.outerTheme,t)},t.prototype.publish=function(e){this.broadcast.publish(this.getTheme(e))},t.prototype.render=function(){return this.props.children?f.a.Children.only(this.props.children):null},t}(l.Component);Oe.childContextTypes=((Se={})[Te]=d.a.func,Se[Ae]=ke,Se),Oe.contextTypes=((xe={})[Ae]=ke,xe);var Ce={};function Ie(e){for(var t,r=0|e.length,n=0|r,i=0;r>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++i;switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+((1540483477*(n>>>16)&65535)<<16)}return n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16),(n^=n>>>15)>>>0}var Ne=W,Re=function e(t,r){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if(!Object(g.isValidElementType)(n))throw new Error("");var o=function(){return r(n,i,e.apply(void 0,arguments))};return o.withConfig=function(e){return t(r,n,M({},i,e))},o.attrs=function(e){return t(r,n,M({},i,{attrs:M({},i.attrs||{},e)}))},o}}(F),Ue=function(e,t){var r={},n=function(e){function t(){var r,n;j(this,t);for(var i=arguments.length,o=Array(i),a=0;a255)return null;var i=n%27;t+="9ABCDEFGHIJKLMNOPQRSTUVWXYZ"[i]+"9ABCDEFGHIJKLMNOPQRSTUVWXYZ"[(n-i)/27]}return t},fromTrytes:function(e){if("string"!=typeof e)return null;if(e.length%2)return null;for(var t="",r=0;r>>0,s>>>0];for(var c=i.fullMessageLength.length-1;c>=0;--c)i.fullMessageLength[c]+=s[1],s[1]=s[0]+(i.fullMessageLength[c]/4294967296>>>0),i.fullMessageLength[c]=i.fullMessageLength[c]>>>0,s[0]=s[1]/4294967296>>>0;return t.putBytes(o),u(e,r,t),(t.read>2048||0===t.length())&&t.compact(),i},i.digest=function(){var a=n.util.createBuffer();a.putBytes(t.bytes());var s,c=i.fullMessageLength[i.fullMessageLength.length-1]+i.messageLengthSize&i.blockLength-1;a.putBytes(o.substr(0,i.blockLength-c));for(var l=8*i.fullMessageLength[0],f=0;f>>0,a.putInt32(l>>>0),l=s>>>0;a.putInt32(l);var h={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4,h5:e.h5,h6:e.h6,h7:e.h7};u(h,r,a);var d=n.util.createBuffer();return d.putInt32(h.h0),d.putInt32(h.h1),d.putInt32(h.h2),d.putInt32(h.h3),d.putInt32(h.h4),d.putInt32(h.h5),d.putInt32(h.h6),d.putInt32(h.h7),d},i};var o=null,a=!1,s=null;function u(e,t,r){for(var n,i,o,a,u,c,l,f,h,d,p,v,g,y=r.length();y>=64;){for(u=0;u<16;++u)t[u]=r.getInt32();for(;u<64;++u)n=((n=t[u-2])>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,i=((i=t[u-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,t[u]=n+t[u-7]+i+t[u-16]|0;for(c=e.h0,l=e.h1,f=e.h2,h=e.h3,d=e.h4,p=e.h5,v=e.h6,g=e.h7,u=0;u<64;++u)o=(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),a=c&l|f&(c^l),n=g+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(v^d&(p^v))+s[u]+t[u],g=v,v=p,p=d,d=h+n>>>0,h=f,f=l,l=c,c=n+(i=o+a)>>>0;e.h0=e.h0+c|0,e.h1=e.h1+l|0,e.h2=e.h2+f|0,e.h3=e.h3+h|0,e.h4=e.h4+d|0,e.h5=e.h5+p|0,e.h6=e.h6+v|0,e.h7=e.h7+g|0,y-=64}}},function(e,t){const r=Object.freeze({HOST:"",BROKER_NODE_A:"",BROKER_NODE_B:"",V1_UPLOAD_SESSIONS_PATH:":3000/api/v1/upload-sessions",V2_UPLOAD_SESSIONS_PATH:":3000/api/v2/upload-sessions",CHUNKS_PER_REQUEST:10}),n=Object.freeze({PROVIDER_A:"http://18.188.17.130:14265",PROVIDER_B:"http://18.220.1.63:14265",PROVIDER_C:"http://18.216.90.80:14265",ADDRESS_LENGTH:81,MESSAGE_LENGTH:2187}),i=Object.freeze({PENDING:"PENDING",SENT:"SENT",FAILED:"FAILED"}),o=Object.freeze({STANDBY:"STANDBY",PENDING:"PENDING",RECEIVED:"RECEIVED",FAILED:"FAILED"}),a=Object.freeze({MAX_FILE_SIZE:2e5,CHUNKS_PER_SECTOR:1e6,CHUNK_TYPES:{METADATA:"METADATA",FILE_CONTENTS:"FILE_CONTENTS"}});e.exports={API:r,DOWNLOAD_STATUSES:o,FILE:a,IOTA_API:n,UPLOAD_STATUSES:i}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,i,o,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,o,a,s],l=0;(u=new Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,r){var n=r(141).Symbol;e.exports=n},function(e,t,r){var n=r(32),i=r(13),o=r(20),a=r(9),s=r(33),u=(r(39),r(79)),c=r(171),l={i:1,Ki:1e3,Mi:1e6,Gi:1e9,Ti:1e12,Pi:1e15},f=function(e,t,r){t=t||9;var s=(r=!1!==r)?81:null,u=n.isString(e);u&&(e=new Array(e));var c=[];return e.forEach(function(e){if(!n.isTrytes(e,s))throw new Error("Invalid input");var r=new o;r.initialize();var u=a.trits(e),l=[];r.absorb(u,0,u.length),r.squeeze(l,0,i.HASH_LENGTH);var f=a.trytes(l).substring(81-t,81);c.push(e+f)}),u?c[0]:c},h=function(e){var t=n.isString(e);t&&(e=new Array(e));var r=[];return e.forEach(function(e){r.push(e.slice(0,81))}),t?r[0]:r},d=function(e){for(var t=a.trits(e.value);t.length<81;)t[t.length]=0;for(var r=a.trits(e.timestamp);r.length<27;)r[r.length]=0;for(var n=a.trits(e.currentIndex);n.length<27;)n[n.length]=0;for(var i=a.trits(e.lastIndex);i.length<27;)i[i.length]=0;for(var o=a.trits(e.attachmentTimestamp||0);o.length<27;)o[o.length]=0;for(var s=a.trits(e.attachmentTimestampLowerBound||0);s.length<27;)s[s.length]=0;for(var u=a.trits(e.attachmentTimestampUpperBound||0);u.length<27;)u[u.length]=0;return e.tag=e.tag||e.obsoleteTag,e.signatureMessageFragment+e.address+a.trytes(t)+e.obsoleteTag+a.trytes(r)+a.trytes(n)+a.trytes(i)+e.bundle+e.trunkTransaction+e.branchTransaction+e.tag+a.trytes(o)+a.trytes(s)+a.trytes(u)+e.nonce};e.exports={inputValidator:n,convertUnits:function(e,t,r){if(void 0===l[t]||void 0===l[r])throw new Error("Invalid unit provided");var i=String(e).match(/\.([\d]+)$/);if(i&&i[1].length>String(l[t]).length-1)throw new Error("Too many digits after comma");if(!n.isNum(e))throw new Error("Invalid value");return parseFloat(e)*l[t]/l[r]},addChecksum:f,noChecksum:h,isValidChecksum:function(e){var t=h(e);return f(t)===e},transactionObject:function(e){if(e){for(var t=2279;t<2295;t++)if("9"!==e.charAt(t))return null;var r={},n=a.trits(e),o=[],s=new i;return s.initialize(),s.absorb(n,0,n.length),s.squeeze(o,0,243),r.hash=a.trytes(o),r.signatureMessageFragment=e.slice(0,2187),r.address=e.slice(2187,2268),r.value=a.value(n.slice(6804,6837)),r.obsoleteTag=e.slice(2295,2322),r.timestamp=a.value(n.slice(6966,6993)),r.currentIndex=a.value(n.slice(6993,7020)),r.lastIndex=a.value(n.slice(7020,7047)),r.bundle=e.slice(2349,2430),r.trunkTransaction=e.slice(2430,2511),r.branchTransaction=e.slice(2511,2592),r.tag=e.slice(2592,2619),r.attachmentTimestamp=a.value(n.slice(7857,7884)),r.attachmentTimestampLowerBound=a.value(n.slice(7884,7911)),r.attachmentTimestampUpperBound=a.value(n.slice(7911,7938)),r.nonce=e.slice(2646,2673),r}},transactionTrytes:d,categorizeTransfers:function(e,t){var r={sent:[],received:[]};return e.forEach(function(e){var n=!1;e.forEach(function(i,o){if(t.indexOf(i.address)>-1){var a=i.currentIndex===i.lastIndex&&0!==i.lastIndex;i.value<0&&!n&&!a?(r.sent.push(e),n=!0):i.value>=0&&!n&&!a&&r.received.push(e)}})}),r},toTrytes:u.toTrytes,fromTrytes:u.fromTrytes,extractJson:c,validateSignatures:function(e,t){for(var r,i=[],o=0;o0?1:r<0?-1:0}(n(e,t),n(o,i));return[r(o,i),a]}e.exports=function(e,t){for(var r=new Array(Math.max(e.length,t.length)),n=0,o=0;on&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,u=a.words,c=0;c>>31}var f=(n<<5|n>>>27)+u+o[c];f+=c<20?1518500249+(i&a|~i&s):c<40?1859775393+(i^a^s):c<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,u=s,s=a,a=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(a),t.HmacSHA1=i._createHmacHelper(a)}(),e.SHA1}(r(0))},function(e,t,r){"use strict";(function(t){var n=r(8),i=r(228),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=r(91):void 0!==t&&(e=r(91)),e}(),transformRequest:[function(e,t){return i(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(e){s.headers[e]={}}),n.forEach(["post","put","patch"],function(e){s.headers[e]=n.merge(o)}),e.exports=s}).call(this,r(15))},function(e,t,r){(function(t){var n=r(97),i="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function o(e){return void 0===e}function a(e){return"[object Object]"===Object.prototype.toString.call(e)}function s(e){return"[object String]"===Object.prototype.toString.call(e)}function u(e){return"[object Array]"===Object.prototype.toString.call(e)}function c(){if(!("fetch"in i))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function l(e,t){var r,n;if(o(e.length))for(r in e)h(e,r)&&t.call(null,r,e[r]);else if(n=e.length)for(r=0;r ".length;e&&n++<5&&!("html"===(t=p(e))||n>1&&i+r.length*o+t.length>=80);)r.push(t),i+=t.length,e=e.parentNode;return r.reverse().join(" > ")},htmlElementAsString:p,isSameException:function(e,t){return!v(e,t)&&(e=e.values[0],t=t.values[0],e.type===t.type&&e.value===t.value&&!function(e,t){return o(e)&&o(t)}(e.stacktrace,t.stacktrace)&&g(e.stacktrace,t.stacktrace))},isSameStacktrace:g,parseUrl:function(e){if("string"!=typeof e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/),r=t[6]||"",n=t[8]||"";return{protocol:t[2],host:t[4],path:t[5],relative:t[5]+r+n}},fill:function(e,t,r,n){if(null!=e){var i=e[t];e[t]=r(i),e[t].__raven__=!0,e[t].__orig__=i,n&&n.push([e,t,i])}},safeJoin:function(e,t){if(!u(e))return"";for(var r=[],n=0;ni?e(t,r-1):o},serializeKeysForMessage:function(e,t){if("number"==typeof e||"string"==typeof e)return e.toString();if(!Array.isArray(e))return"";if(0===(e=e.filter(function(e){return"string"==typeof e})).length)return"[object has no keys]";if(t="number"!=typeof t?b:t,e[0].length>=t)return e[0];for(var r=e.length;r>0;r--){var n=e.slice(0,r).join(", ");if(!(n.length>t))return r===e.length?n:n+"…"}return""},sanitize:function(e,t){if(!u(t)||u(t)&&0===t.length)return e;var r,i=d(t),o="********";try{r=JSON.parse(n(e))}catch(t){return e}return function e(t){return u(t)?t.map(function(t){return e(t)}):a(t)?Object.keys(t).reduce(function(r,n){return i.test(n)?r[n]=o:r[n]=e(t[n]),r},{}):t}(r)}}}).call(this,r(6))},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(t){e.call(this),this.scheduler=t}return n(t,e),t.create=function(e){return new t(e)},t.dispatch=function(e){e.subscriber.complete()},t.prototype._subscribe=function(e){var r=this.scheduler;if(r)return r.schedule(t.dispatch,0,{subscriber:e});e.complete()},t}(r(5).Observable);t.EmptyObservable=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=r(5),o=r(102),a=r(56),s=r(101),u=function(e){function t(t,r){e.call(this),this.array=t,this.scheduler=r,r||1!==t.length||(this._isScalar=!0,this.value=t[0])}return n(t,e),t.create=function(e,r){return new t(e,r)},t.of=function(){for(var e=[],r=0;r1?new t(e,n):1===i?new o.ScalarObservable(e[0],n):new a.EmptyObservable(n)},t.dispatch=function(e){var t=e.array,r=e.index,n=e.count,i=e.subscriber;r>=n?i.complete():(i.next(t[r]),i.closed||(e.index=r+1,this.schedule(e)))},t.prototype._subscribe=function(e){var r=this.array,n=r.length,i=this.scheduler;if(i)return i.schedule(t.dispatch,0,{array:r,index:0,count:n,subscriber:e});for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:"store",r=arguments[1]||t+"Subscription",i=function(e){function i(r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r,n));return o[t]=r.store,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),i.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[r]=null,e},i.prototype.render=function(){return n.Children.only(this.props.children)},i}(n.Component);return i.propTypes={store:s.isRequired,children:o.a.element.isRequired},i.childContextTypes=((e={})[t]=s.isRequired,e[r]=a,e),i}var c=u(),l=r(30),f=r.n(l),h=r(46),d=r.n(h);var p=null,v={notify:function(){}};var g=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=r,this.onStateChange=n,this.unsubscribe=null,this.listeners=v}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=function(){var e=[],t=[];return{clear:function(){t=p,e=p},notify:function(){for(var r=e=t,n=0;n1&&void 0!==arguments[1]?arguments[1]:{},o=i.getDisplayName,u=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,c=i.methodName,l=void 0===c?"connectAdvanced":c,h=i.renderCountProp,p=void 0===h?void 0:h,v=i.shouldHandleStateChanges,w=void 0===v||v,E=i.storeKey,S=void 0===E?"store":E,x=i.withRef,T=void 0!==x&&x,A=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(i,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),k=S+"Subscription",O=m++,C=((t={})[S]=s,t[k]=a,t),I=((r={})[k]=a,r);return function(t){d()("function"==typeof t,"You must pass a component to the function returned by "+l+". Instead received "+JSON.stringify(t));var r=t.displayName||t.name||"Component",i=u(r),o=y({},A,{getDisplayName:u,methodName:l,renderCountProp:p,shouldHandleStateChanges:w,storeKey:S,withRef:T,displayName:i,wrappedComponentName:r,WrappedComponent:t}),a=function(r){function a(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e,t));return n.version=O,n.state={},n.renderCount=0,n.store=e[S]||t[S],n.propsMode=Boolean(e[S]),n.setWrappedInstance=n.setWrappedInstance.bind(n),d()(n.store,'Could not find "'+S+'" in either the context or props of "'+i+'". Either wrap the root component in a , or explicitly pass "'+S+'" as a prop to "'+i+'".'),n.initSelector(),n.initSubscription(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,r),a.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[k]=t||this.context[k],e},a.prototype.componentDidMount=function(){w&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},a.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=_,this.store=null,this.selector.run=_,this.selector.shouldComponentUpdate=!1},a.prototype.getWrappedInstance=function(){return d()(T,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+l+"() call."),this.wrappedInstance},a.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},a.prototype.initSelector=function(){var t=e(this.store.dispatch,o);this.selector=function(e,t){var r={run:function(n){try{var i=e(t.getState(),n);(i!==r.props||r.error)&&(r.shouldComponentUpdate=!0,r.props=i,r.error=null)}catch(e){r.shouldComponentUpdate=!0,r.error=e}}};return r}(t,this.store),this.selector.run(this.props)},a.prototype.initSubscription=function(){if(w){var e=(this.propsMode?this.props:this.context)[k];this.subscription=new g(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(b)):this.notifyNestedSubs()},a.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.prototype.addExtraProps=function(e){if(!(T||p||this.propsMode&&this.subscription))return e;var t=y({},e);return T&&(t.ref=this.setWrappedInstance),p&&(t[p]=this.renderCount++),this.propsMode&&this.subscription&&(t[k]=this.subscription),t},a.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(n.createElement)(t,this.addExtraProps(e.props))},a}(n.Component);return a.WrappedComponent=t,a.displayName=i,a.childContextTypes=I,a.contextTypes=C,a.propTypes=C,f()(a,t)}}var E=Object.prototype.hasOwnProperty;function S(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function x(e,t){if(S(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=r(e,o),s=n(e,o),u=i(e,o);return(o.pure?j:P)(a,s,u,e,o)}var M=Object.assign||function(e){for(var t=1;t=0;n--){var i=t[n](e);if(i)return i}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function U(e,t){return e===t}var L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,r=void 0===t?w:t,n=e.mapStateToPropsFactories,i=void 0===n?I:n,o=e.mapDispatchToPropsFactories,a=void 0===o?C:o,s=e.mergePropsFactories,u=void 0===s?B:s,c=e.selectorFactory,l=void 0===c?H:c;return function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=o.pure,c=void 0===s||s,f=o.areStatesEqual,h=void 0===f?U:f,d=o.areOwnPropsEqual,p=void 0===d?x:d,v=o.areStatePropsEqual,g=void 0===v?x:v,y=o.areMergedPropsEqual,m=void 0===y?x:y,b=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),_=D(e,i,"mapStateToProps"),w=D(t,a,"mapDispatchToProps"),E=D(n,u,"mergeProps");return r(l,M({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:_,initMapDispatchToProps:w,initMergeProps:E,pure:c,areStatesEqual:h,areOwnPropsEqual:p,areStatePropsEqual:g,areMergedPropsEqual:m},b))}}();r.d(t,"Provider",function(){return c}),r.d(t,"createProvider",function(){return u}),r.d(t,"connectAdvanced",function(){return w}),r.d(t,"connect",function(){return L})},function(e,t,r){"use strict";var n=r(275);t.filter=function(e,t){return n.filter(e,t)(this)}},function(e,t,r){"use strict";var n=r(283);t.map=function(e,t){return n.map(e,t)(this)}},function(e,t,r){var n=r(12);r(146),r(44),r(144),r(1),n.random&&n.random.getBytes?e.exports=n.random:function(t){var r={},i=new Array(4),o=n.util.createBuffer();function a(){var e=n.prng.create(r);return e.getBytes=function(t,r){return e.generate(t,r)},e.getBytesSync=function(t){return e.generate(t)},e}r.formatKey=function(e){var t=n.util.createBuffer(e);return(e=new Array(4))[0]=t.getInt32(),e[1]=t.getInt32(),e[2]=t.getInt32(),e[3]=t.getInt32(),n.aes._expandKey(e,!1)},r.formatSeed=function(e){var t=n.util.createBuffer(e);return(e=new Array(4))[0]=t.getInt32(),e[1]=t.getInt32(),e[2]=t.getInt32(),e[3]=t.getInt32(),e},r.cipher=function(e,t){return n.aes._updateBlock(e,t,i,!1),o.putInt32(i[0]),o.putInt32(i[1]),o.putInt32(i[2]),o.putInt32(i[3]),o.getBytes()},r.increment=function(e){return++e[3],e},r.md=n.md.sha256;var s=a(),u=null;if("undefined"!=typeof window){var c=window.crypto||window.msCrypto;c&&c.getRandomValues&&(u=function(e){return c.getRandomValues(e)})}if(n.options.usePureJavaScript||!n.util.isNodejs&&!u){if("undefined"==typeof window||window.document,s.collectInt(+new Date,32),"undefined"!=typeof navigator){var l="";for(var f in navigator)try{"string"==typeof navigator[f]&&(l+=navigator[f])}catch(e){}s.collect(l),l=null}t&&(t().mousemove(function(e){s.collectInt(e.clientX,16),s.collectInt(e.clientY,16)}),t().keypress(function(e){s.collectInt(e.charCode,8)}))}if(n.random)for(var f in s)n.random[f]=s[f];else n.random=s;n.random.createInstance=a,e.exports=n.random}("undefined"!=typeof jQuery?jQuery:null)},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=r(5),o=r(17),a=r(63),s=r(285),u=r(284),c=r(62),l=function(e){function t(t){e.call(this,t),this.destination=t}return n(t,e),t}(o.Subscriber);t.SubjectSubscriber=l;var f=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(t,e),t.prototype[c.rxSubscriber]=function(){return new l(this)},t.prototype.lift=function(e){var t=new h(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,r=t.length,n=t.slice(),i=0;i])/g,m=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,_=/\s{2,}/g,w=/([^\(])(:+) */g,E=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,T=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,C="-webkit-",I="-moz-",N="-ms-",R=59,B=125,P=123,j=40,H=41,M=91,D=93,U=10,L=13,F=9,z=64,G=32,W=38,V=45,q=95,$=42,K=44,Y=58,X=39,Q=34,J=47,Z=62,ee=43,te=126,re=0,ne=12,ie=11,oe=107,ae=109,se=115,ue=112,ce=111,le=105,fe=99,he=100,de=112,pe=1,ve=1,ge=0,ye=1,me=1,be=1,_e=0,we=0,Ee=0,Se=[],xe=[],Te=0,Ae=null,ke=-2,Oe=-1,Ce=0,Ie=1,Ne=2,Re=3,Be=0,Pe=1,je="",He="",Me="";function De(e,t,i,o,a){for(var s,u,l=0,f=0,h=0,d=0,y=0,m=0,b=0,_=0,E=0,x=0,T=0,A=0,k=0,O=0,q=0,_e=0,xe=0,Ae=0,ke=0,Oe=i.length,Le=Oe-1,qe="",$e="",Ke="",Ye="",Xe="",Qe="";q0&&($e=$e.replace(n,"")),$e.trim().length>0)){switch(b){case G:case F:case R:case L:case U:break;default:$e+=i.charAt(q)}b=R}if(1===xe)switch(b){case P:case B:case R:case Q:case X:case j:case H:case K:xe=0;case F:case L:case U:case G:break;default:for(xe=0,ke=q,y=b,q--,b=R;ke0&&(++q,b=y);case P:ke=Oe}}switch(b){case P:for($e=$e.trim(),y=$e.charCodeAt(0),T=1,ke=++q;q0&&($e=$e.replace(n,"")),m=$e.charCodeAt(1)){case he:case ae:case se:case V:s=t;break;default:s=Se}if(Ke=De(t,s,Ke,m,a+1),ke=Ke.length,Ee>0&&0===ke&&(ke=$e.length),Te>0&&(s=Ue(Se,$e,Ae),u=We(Re,Ke,s,t,ve,pe,ke,m,a,o),$e=s.join(""),void 0!==u&&0===(ke=(Ke=u.trim()).length)&&(m=0,Ke="")),ke>0)switch(m){case se:$e=$e.replace(S,Ge);case he:case ae:case V:Ke=$e+"{"+Ke+"}";break;case oe:$e=$e.replace(p,"$1 $2"+(Pe>0?je:"")),Ke=$e+"{"+Ke+"}",Ke=1===me||2===me&&ze("@"+Ke,3)?"@"+C+Ke+"@"+Ke:"@"+Ke;break;default:Ke=$e+Ke,o===de&&(Ye+=Ke,Ke="")}else Ke="";break;default:Ke=De(t,Ue(t,$e,Ae),Ke,o,a+1)}Xe+=Ke,A=0,xe=0,O=0,_e=0,Ae=0,k=0,$e="",Ke="",b=i.charCodeAt(++q);break;case B:case R:if($e=(_e>0?$e.replace(n,""):$e).trim(),(ke=$e.length)>1)switch(0===O&&((y=$e.charCodeAt(0))===V||y>96&&y<123)&&(ke=($e=$e.replace(" ",":")).length),Te>0&&void 0!==(u=We(Ie,$e,t,e,ve,pe,Ye.length,o,a,o))&&0===(ke=($e=u.trim()).length)&&($e="\0\0"),y=$e.charCodeAt(0),m=$e.charCodeAt(1),y){case re:break;case z:if(m===le||m===fe){Qe+=$e+i.charAt(q);break}default:if($e.charCodeAt(ke-1)===Y)break;Ye+=Fe($e,y,m,$e.charCodeAt(2))}A=0,xe=0,O=0,_e=0,Ae=0,$e="",b=i.charCodeAt(++q)}}switch(b){case L:case U:if(f+d+h+l+we===0)switch(x){case H:case X:case Q:case z:case te:case Z:case $:case ee:case J:case V:case Y:case K:case R:case P:case B:break;default:O>0&&(xe=1)}f===J?f=0:ye+A===0&&o!==oe&&$e.length>0&&(_e=1,$e+="\0"),Te*Be>0&&We(Ce,$e,t,e,ve,pe,Ye.length,o,a,o),pe=1,ve++;break;case R:case B:if(f+d+h+l===0){pe++;break}default:switch(pe++,qe=i.charAt(q),b){case F:case G:if(d+l+f===0)switch(_){case K:case Y:case F:case G:qe="";break;default:b!==G&&(qe=" ")}break;case re:qe="\\0";break;case ne:qe="\\f";break;case ie:qe="\\v";break;case W:d+f+l===0&&ye>0&&(Ae=1,_e=1,qe="\f"+qe);break;case 108:if(d+f+l+ge===0&&O>0)switch(q-O){case 2:_===ue&&i.charCodeAt(q-3)===Y&&(ge=_);case 8:E===ce&&(ge=E)}break;case Y:d+f+l===0&&(O=q);break;case K:f+h+d+l===0&&(_e=1,qe+="\r");break;case Q:case X:0===f&&(d=d===b?0:0===d?b:d);break;case M:d+f+h===0&&l++;break;case D:d+f+h===0&&l--;break;case H:d+f+l===0&&h--;break;case j:if(d+f+l===0){if(0===A)switch(2*_+3*E){case 533:break;default:T=0,A=1}h++}break;case z:f+h+d+l+O+k===0&&(k=1);break;case $:case J:if(d+l+h>0)break;switch(f){case 0:switch(2*b+3*i.charCodeAt(q+1)){case 235:f=J;break;case 220:ke=q,f=$}break;case $:b===J&&_===$&&ke+2!==q&&(33===i.charCodeAt(ke+2)&&(Ye+=i.substring(ke,q+1)),qe="",f=0)}}if(0===f){if(ye+d+l+k===0&&o!==oe&&b!==R)switch(b){case K:case te:case Z:case ee:case H:case j:if(0===A){switch(_){case F:case G:case U:case L:qe+="\0";break;default:qe="\0"+qe+(b===K?"":"\0")}_e=1}else switch(b){case j:O+7===q&&108===_&&(O=0),A=++T;break;case H:0==(A=--T)&&(_e=1,qe+="\0")}break;case F:case G:switch(_){case re:case P:case B:case R:case K:case ne:case F:case G:case U:case L:break;default:0===A&&(_e=1,qe+="\0")}}$e+=qe,b!==G&&b!==F&&(x=b)}}E=_,_=b,q++}if(ke=Ye.length,Ee>0&&0===ke&&0===Xe.length&&0===t[0].length==0&&(o!==ae||1===t.length&&(ye>0?He:Me)===t[0])&&(ke=t.join(",").length+2),ke>0){if(s=0===ye&&o!==oe?function(e){for(var t,r,i=0,o=e.length,a=Array(o);i1)){if(h=u.charCodeAt(u.length-1),d=r.charCodeAt(0),t="",0!==l)switch(h){case $:case te:case Z:case ee:case G:case j:break;default:t=" "}switch(d){case W:r=t+He;case te:case Z:case ee:case G:case H:case j:break;case M:r=t+r+He;break;case Y:switch(2*r.charCodeAt(1)+3*r.charCodeAt(2)){case 530:if(be>0){r=t+r.substring(8,f-1);break}default:(l<1||s[l-1].length<1)&&(r=t+He+r)}break;case K:t="";default:r=f>1&&r.indexOf(":")>0?t+r.replace(w,"$1"+He+"$2"):t+r+He}u+=r}a[i]=u.replace(n,"").trim()}return a}(t):t,Te>0&&void 0!==(u=We(Ne,Ye,s,e,ve,pe,ke,o,a,o))&&0===(Ye=u).length)return Qe+Ye+Xe;if(Ye=s.join(",")+"{"+Ye+"}",me*ge!=0){switch(2!==me||ze(Ye,2)||(ge=0),ge){case ce:Ye=Ye.replace(g,":"+I+"$1")+Ye;break;case ue:Ye=Ye.replace(v,"::"+C+"input-$1")+Ye.replace(v,"::"+I+"$1")+Ye.replace(v,":"+N+"input-$1")+Ye}ge=0}}return Qe+Ye+Xe}function Ue(e,t,r){var n=t.trim().split(l),i=n,o=n.length,a=e.length;switch(a){case 0:case 1:for(var s=0,u=0===a?"":e[0]+" ";s0&&ye>0)return i.replace(h,"$1").replace(f,"$1"+Me);break;default:return e.trim()+i.replace(f,"$1"+e.trim())}default:if(r*ye>0&&i.indexOf("\f")>0)return i.replace(f,(e.charCodeAt(0)===Y?"":"$1")+e.trim())}return e+i}function Fe(e,t,r,n){var c,l=0,f=e+";",h=2*t+3*r+4*n;if(944===h)return function(e){var t=e.length,r=e.indexOf(":",9)+1,n=e.substring(0,r).trim(),i=e.substring(r,t-1).trim();switch(e.charCodeAt(9)*Pe){case 0:break;case V:if(110!==e.charCodeAt(10))break;default:for(var o=i.split((i="",s)),a=0,r=0,t=o.length;az&&f<90||f>96&&f<123||f===q||f===V&&c.charCodeAt(1)!==V))switch(isNaN(parseFloat(c))+(-1!==c.indexOf("("))){case 1:switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=je}}l[r++]=c}i+=(0===a?"":",")+l.join(" ")}}return i=n+i+";",1===me||2===me&&ze(i,1)?C+i+i:i}(f);if(0===me||2===me&&!ze(f,1))return f;switch(h){case 1015:return 97===f.charCodeAt(10)?C+f+f:f;case 951:return 116===f.charCodeAt(3)?C+f+f:f;case 963:return 110===f.charCodeAt(5)?C+f+f:f;case 1009:if(100!==f.charCodeAt(4))break;case 969:case 942:return C+f+f;case 978:return C+f+I+f+f;case 1019:case 983:return C+f+I+f+N+f+f;case 883:return f.charCodeAt(8)===V?C+f+f:f.indexOf("image-set(",11)>0?f.replace(O,"$1"+C+"$2")+f:f;case 932:if(f.charCodeAt(4)===V)switch(f.charCodeAt(5)){case 103:return C+"box-"+f.replace("-grow","")+C+f+N+f.replace("grow","positive")+f;case 115:return C+f+N+f.replace("shrink","negative")+f;case 98:return C+f+N+f.replace("basis","preferred-size")+f}return C+f+N+f+f;case 964:return C+f+N+"flex-"+f+f;case 1023:if(99!==f.charCodeAt(8))break;return c=f.substring(f.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),C+"box-pack"+c+C+f+N+"flex-pack"+c+f;case 1005:return o.test(f)?f.replace(i,":"+C)+f.replace(i,":"+I)+f:f;case 1e3:switch(c=f.substring(13).trim(),l=c.indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(l)){case 226:c=f.replace(E,"tb");break;case 232:c=f.replace(E,"tb-rl");break;case 220:c=f.replace(E,"lr");break;default:return f}return C+f+N+c+f;case 1017:if(-1===f.indexOf("sticky",9))return f;case 975:switch(l=(f=e).length-10,c=(33===f.charCodeAt(l)?f.substring(0,l):f).substring(e.indexOf(":",7)+1).trim(),h=c.charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(c.charCodeAt(8)<111)break;case 115:f=f.replace(c,C+c)+";"+f;break;case 207:case 102:f=f.replace(c,C+(h>102?"inline-":"")+"box")+";"+f.replace(c,C+c)+";"+f.replace(c,N+c+"box")+";"+f}return f+";";case 938:if(f.charCodeAt(5)===V)switch(f.charCodeAt(6)){case 105:return c=f.replace("-items",""),C+f+C+"box-"+c+N+"flex-"+c+f;case 115:return C+f+N+"flex-item-"+f.replace(T,"")+f;default:return C+f+N+"flex-line-pack"+f.replace("align-content","").replace(T,"")+f}break;case 973:case 989:if(f.charCodeAt(3)!==V||122===f.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?Fe(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):f.replace(c,C+c)+f.replace(c,I+c.replace("fill-",""))+f;break;case 962:if(f=C+f+(102===f.charCodeAt(5)?N+f:"")+f,r+n===211&&105===f.charCodeAt(13)&&f.indexOf("transform",10)>0)return f.substring(0,f.indexOf(";",27)+1).replace(a,"$1"+C+"$2")+f}return f}function ze(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10),i=e.substring(r+1,e.length-1);return Ae(2!==t?n:n.replace(A,"$1"),i,t)}function Ge(e,t){var r=Fe(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(x," or ($1)").substring(4):"("+t+")"}function We(e,t,r,n,i,o,a,s,u,c){for(var l,f=0,h=t;f0&&(je=i.replace(d,o===M?"":"-")),o=1,1===ye?Me=i:He=i;var a,s=[Me];Te>0&&void 0!==(a=We(Oe,r,s,s,ve,pe,0,0,0,0))&&"string"==typeof a&&(r=a);var u=De(Se,s,r,0,0);return Te>0&&void 0!==(a=We(ke,u,s,s,ve,pe,u.length,0,0,0))&&"string"!=typeof(u=a)&&(o=0),je="",Me="",He="",ge=0,ve=1,pe=1,_e*o==0?u:function(e){return e.replace(n,"").replace(y,"").replace(m,"$1").replace(b,"$1").replace(_," ")}(u)}return $e.use=function e(t){switch(t){case void 0:case null:Te=xe.length=0;break;default:switch(t.constructor){case Array:for(var r=0,n=t.length;r0?"http://18.217.133.146:3000":"https://broker-1.oysternodes.com:3000",s=window.location&&window.location.href.indexOf("localhost")>0?window.location.href:"https://web.oysternode.com/",u="data-eth-address",c="http://18.217.133.146:14265",l=81,f=1,h=1,p={CLAIMED:"CLAIMED",UNCLAIMED:"UNCLAIMED",NO_TREASURE_FOUND:"NO_TREASURE_FOUND"},d={PENDING:"PENDING",APPROVED:"APPROVED",DENIED:"DENIED"},v=1e6,g=["ef1b4554b887d814097ad7f7d628071497e2b092dc9e7a92b92fc8556bce3aee"],y="0xD1833A50f411432aD38E8374df8Cfff79e743788",m="https://8a7dab982d62492ab5bcf2382df33c9e@sentry.io/1215881"}.call(this,r(21))},function(e,t,r){"use strict";var n=Object.freeze({NODE_INITIALIZE:"directories/node/initialize",NODE_SET_OWNER_ETH_ADDRESS:"directories/node/set_owner_eth_address",NODE_DETERMINE_BROKER_NODE_OR_GENESIS_HASH:"directories/node/determine_broker_node_or_genesis_hash",NODE_DETERMINE_GENESIS_HASH_OR_TREASURE_HUNT:"directories/node/determine_genesis_hash_or_treasure_hunt",NODE_REQUEST_BROKER_NODES:"directories/node/request_broker_nodes",NODE_REQUEST_GENESIS_HASHES:"directories/node/request_genesis_hashes",NODE_ADD_BROKER_NODE:"directories/node/add_broker_node",NODE_ADD_NEW_GENESIS_HASH:"directories/node/add_new_genesis_hash",NODE_RESET:"directories/node/reset",NODE_RESUME_OR_START_NEW_SECTOR:"directories/node/resume_or_start_new_sector",NODE_CHECK_IF_SECTOR_CLAIMED:"directories/node/check_if_sector_claimed",NODE_UPDATE_SECTOR_STATUS:"directories/node/mark_sector_as_claimed",determineBrokerNodeOrGenesisHash:function(){return{type:"directories/node/determine_broker_node_or_genesis_hash"}},determineGenesisHashOrTreasureHunt:function(){return{type:"directories/node/determine_genesis_hash_or_treasure_hunt"}},requestBrokerNodes:function(){return{type:"directories/node/request_broker_nodes"}},requestGenesisHashes:function(){return{type:"directories/node/request_genesis_hashes"}},addBrokerNode:function(e){return{type:"directories/node/add_broker_node",payload:{address:e.address}}},addNewGenesisHash:function(e){return{type:"directories/node/add_new_genesis_hash",payload:{genesisHash:e.genesisHash,numberOfChunks:e.numberOfChunks}}},resetNode:function(e){return{type:"directories/node/reset",payload:{id:e.id,lastResetAt:e.lastResetAt}}},resumeOrStartNewSector:function(e){return{type:"directories/node/resume_or_start_new_sector",payload:{genesisHash:e.genesisHash,sectorIdx:e.sectorIdx,numberOfChunks:e.numberOfChunks}}},checkIfSectorClaimed:function(e){return{type:"directories/node/check_if_sector_claimed",payload:{genesisHash:e.genesisHash,sectorIdx:e.sectorIdx,numberOfChunks:e.numberOfChunks}}},updateSectorStatus:function(e){return{type:"directories/node/mark_sector_as_claimed",payload:{genesisHash:e.genesisHash,sectorIdx:e.sectorIdx,status:e.status}}},setOwnerEthAddress:function(e){return{type:"directories/node/set_owner_eth_address",payload:e}},initialize:function(){return{type:"directories/node/initialize"}}});t.a=n},function(e,t,r){(function(t,n,i){var o=r(17),a=r(157),s=e.exports=o.util=o.util||{};function u(e){if(8!==e&&16!==e&&24!==e&&32!==e)throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}function c(e){if(this.data="",this.read=0,"string"==typeof e)this.data=e;else if(s.isArrayBuffer(e)||s.isArrayBufferView(e))if(void 0!==i&&e instanceof i)this.data=e.toString("binary");else{var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch(e){for(var r=0;r15?(i=Date.now(),u(e)):(r.push(e),1===r.length&&a.setAttribute("a",o=!o))}}s.nextTick=s.setImmediate}(),s.isNodejs=void 0!==t&&t.versions&&t.versions.node,s.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s.isArrayBuffer=function(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer},s.isArrayBufferView=function(e){return e&&s.isArrayBuffer(e.buffer)&&void 0!==e.byteLength},s.ByteBuffer=c,s.ByteStringBuffer=c;s.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>4096&&(this.data.substr(0,1),this._constructedStringLength=0)},s.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},s.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},s.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))},s.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);for(var r=this.data;t>0;)1&t&&(r+=e),(t>>>=1)>0&&(e+=e);return this.data=r,this._optimizeConstructedString(t),this},s.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this},s.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(s.encodeUtf8(e))},s.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255))},s.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))},s.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))},s.ByteStringBuffer.prototype.putInt=function(e,t){u(t);var r="";do{t-=8,r+=String.fromCharCode(e>>t&255)}while(t>0);return this.putBytes(r)},s.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<0);return t},s.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<=r&&(t-=r<<1),t},s.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):0===e?t="":(t=0===this.read?this.data:this.data.slice(this.read),this.clear()),t},s.ByteStringBuffer.prototype.bytes=function(e){return void 0===e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},s.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)},s.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this},s.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},s.ByteStringBuffer.prototype.copy=function(){var e=s.createBuffer(this.data);return e.read=this.read,e},s.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},s.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},s.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this},s.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t=e)return this;t=Math.max(t||this.growSize,e);var r=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),n=new Uint8Array(this.length()+t);return n.set(r),this.data=new DataView(n.buffer),this},s.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this},s.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var r=0;r>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this},s.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this},s.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this},s.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this},s.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this},s.DataBuffer.prototype.putInt=function(e,t){u(t),this.accommodate(t/8);do{t-=8,this.data.setInt8(this.write++,e>>t&255)}while(t>0);return this},s.DataBuffer.prototype.putSignedInt=function(e,t){return u(t),this.accommodate(t/8),e<0&&(e+=2<0);return t},s.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<=r&&(t-=r<<1),t},s.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):0===e?t="":(t=0===this.read?this.data:this.data.slice(this.read),this.clear()),t},s.DataBuffer.prototype.bytes=function(e){return void 0===e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},s.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)},s.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this},s.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},s.DataBuffer.prototype.copy=function(){return new s.DataBuffer(this)},s.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this},s.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},s.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this},s.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t0;)1&t&&(r+=e),(t>>>=1)>0&&(e+=e);return r},s.xorBytes=function(e,t,r){for(var n="",i="",o="",a=0,s=0;r>0;--r,++a)i=e.charCodeAt(a)^t.charCodeAt(a),s>=10&&(n+=o,o="",s=0),o+=String.fromCharCode(i),++s;return n+=o},s.hexToBytes=function(e){var t="",r=0;for(!0&e.length&&(r=1,t+=String.fromCharCode(parseInt(e[0],16)));r>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e)};var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],h="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";s.encode64=function(e,t){for(var r,n,i,o="",a="",s=0;s>2),o+=l.charAt((3&r)<<4|n>>4),isNaN(n)?o+="==":(o+=l.charAt((15&n)<<2|i>>6),o+=isNaN(i)?"=":l.charAt(63&i)),t&&o.length>t&&(a+=o.substr(0,t)+"\r\n",o=o.substr(t));return a+=o},s.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var t,r,n,i,o="",a=0;a>4),64!==n&&(o+=String.fromCharCode((15&r)<<4|n>>2),64!==i&&(o+=String.fromCharCode((3&n)<<6|i)));return o},s.encodeUtf8=function(e){return unescape(encodeURIComponent(e))},s.decodeUtf8=function(e){return decodeURIComponent(escape(e))},s.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:a.encode,decode:a.decode}},s.binary.raw.encode=function(e){return String.fromCharCode.apply(null,e)},s.binary.raw.decode=function(e,t,r){var n=t;n||(n=new Uint8Array(e.length));for(var i=r=r||0,o=0;o>2),o+=l.charAt((3&r)<<4|n>>4),isNaN(n)?o+="==":(o+=l.charAt((15&n)<<2|i>>6),o+=isNaN(i)?"=":l.charAt(63&i)),t&&o.length>t&&(a+=o.substr(0,t)+"\r\n",o=o.substr(t));return a+=o},s.binary.base64.decode=function(e,t,r){var n,i,o,a,s=t;s||(s=new Uint8Array(3*Math.ceil(e.length/4))),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var u=0,c=r=r||0;u>4,64!==o&&(s[c++]=(15&i)<<4|o>>2,64!==a&&(s[c++]=(3&o)<<6|a));return t?c-r:s.subarray(0,c)},s.binary.base58.encode=function(e,t){return s.binary.baseN.encode(e,h,t)},s.binary.base58.decode=function(e,t){return s.binary.baseN.decode(e,h,t)},s.text={utf8:{},utf16:{}},s.text.utf8.encode=function(e,t,r){e=s.encodeUtf8(e);var n=t;n||(n=new Uint8Array(e.length));for(var i=r=r||0,o=0;o0?(i=r[n].substring(0,a),o=r[n].substring(a+1)):(i=r[n],o=null),i in t||(t[i]=[]),i in Object.prototype||null===o||t[i].push(unescape(o))}return t};return void 0===e?(null===_&&(_="undefined"!=typeof window&&window.location&&window.location.search?r(window.location.search.substring(1)):{}),t=_):t=r(e),t},s.parseFragment=function(e){var t=e,r="",n=e.indexOf("?");n>0&&(t=e.substring(0,n),r=e.substring(n+1));var i=t.split("/");return i.length>0&&""===i[0]&&i.shift(),{pathString:t,queryString:r,path:i,query:""===r?{}:s.getQueryVariables(r)}},s.makeRequest=function(e){var t=s.parseFragment(e),r={path:t.pathString,query:t.queryString,getPath:function(e){return void 0===e?t.path:t.path[e]},getQuery:function(e,r){var n;return void 0===e?n=t.query:(n=t.query[e])&&void 0!==r&&(n=n[r]),n},getQueryLast:function(e,t){var n=r.getQuery(e);return n?n[n.length-1]:t}};return r},s.makeLink=function(e,t,r){e=jQuery.isArray(e)?e.join("/"):e;var n=jQuery.param(t||{});return r=r||"",e+(n.length>0?"?"+n:"")+(r.length>0?"#"+r:"")},s.setPath=function(e,t,r){if("object"==typeof e&&null!==e)for(var n=0,i=t.length;n0&&o.push(r),a=n.lastIndex;var s=t[0][1];switch(s){case"s":case"o":i");break;case"%":o.push("%");break;default:o.push("<%"+s+"?>")}}return o.push(e.substring(a)),o.join("")},s.formatNumber=function(e,t,r,n){var i=e,o=isNaN(t=Math.abs(t))?2:t,a=void 0===r?",":r,s=void 0===n?".":n,u=i<0?"-":"",c=parseInt(i=Math.abs(+i||0).toFixed(o),10)+"",l=c.length>3?c.length%3:0;return u+(l?c.substr(0,l)+s:"")+c.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+s)+(o?a+Math.abs(i-c).toFixed(o).slice(2):"")},s.formatSize=function(e){return e=e>=1073741824?s.formatNumber(e/1073741824,2,".","")+" GiB":e>=1048576?s.formatNumber(e/1048576,2,".","")+" MiB":e>=1024?s.formatNumber(e/1024,0)+" KiB":s.formatNumber(e,0)+" bytes"},s.bytesFromIP=function(e){return-1!==e.indexOf(".")?s.bytesFromIPv4(e):-1!==e.indexOf(":")?s.bytesFromIPv6(e):null},s.bytesFromIPv4=function(e){if(4!==(e=e.split(".")).length)return null;for(var t=s.createBuffer(),r=0;rr[n].end-r[n].start&&(n=r.length-1)):r.push({start:u,end:u})}t.push(o)}if(r.length>0){var c=r[n];c.end-c.start>0&&(t.splice(c.start,c.end-c.start+1,""),0===c.start&&t.unshift(""),7===c.end&&t.push(""))}return t.join(":")},s.estimateCores=function(e,t){if("function"==typeof e&&(t=e,e={}),e=e||{},"cores"in s&&!e.update)return t(null,s.cores);if("undefined"!=typeof navigator&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return s.cores=navigator.hardwareConcurrency,t(null,s.cores);if("undefined"==typeof Worker)return s.cores=1,t(null,s.cores);if("undefined"==typeof Blob)return s.cores=2,t(null,s.cores);var r=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(e){for(var t=Date.now(),r=t+4;Date.now()s.st&&i.sti.st&&s.st>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){var t=t,r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(r,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(r,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,s=4*o,u=i/s,c=(u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0))*o,l=e.min(4*c,i);if(c){for(var f=0;f25?39:97))},N=function(e){var t="",r=void 0;for(r=e;r>52;r=Math.floor(r/52))t=I(r%52)+t;return I(r%52)+t},B=function(e,t){return t.reduce(function(t,r,n){return t.concat(r,e[n+1])},[e[0]])},R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},j=function(){function e(e,t){for(var r=0;r=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},U=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},L=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n"+e()+""}},ne=function(e,t){return function(){var r,n=((r={})[F]=X(t),r),i=W();return i&&(n.nonce=i),f.a.createElement("style",H({},n,{dangerouslySetInnerHTML:{__html:e()}}))}},ie=function(e){return function(){return Object.keys(e)}},oe=function e(t,r){var n=void 0===t?Object.create(null):t,i=void 0===r?Object.create(null):r,o=function(e){var t=i[e];return void 0!==t?t:i[e]=[""]},a=function(){var e="";for(var t in i){var r=i[t][0];r&&(e+=ee(t)+r)}return e};return{styleTag:null,getIds:ie(i),hasNameForId:Y(n),insertMarker:o,insertRules:function(e,t,r){o(e)[0]+=t.join(" "),$(n,e,r)},removeRules:function(e){var t=i[e];void 0!==t&&(t[0]="",K(n,e))},css:a,toHTML:re(a,n),toElement:ne(a,n),clone:function(){var t=function(e){var t=Object.create(null);for(var r in e)t[r]=H({},e[r]);return t}(n),r=Object.create(null);for(var o in i)r[o]=[i[o][0]];return e(t,r)}}},ae=function(e,t,r,n,i){if(G&&!r){var o=function(e,t,r){var n=document.createElement("style");n.setAttribute(F,"");var i=W();if(i&&n.setAttribute("nonce",i),n.appendChild(document.createTextNode("")),e&&!t)e.appendChild(n);else{if(!t||!e||!t.parentNode)throw new Error("");t.parentNode.insertBefore(n,r?t:t.nextSibling)}return n}(e,t,n);return function(e,t){var r=Object.create(null),n=Object.create(null),i=[],o=void 0!==t,a=!1,s=function(e){var t=n[e];return void 0!==t?t:(n[e]=i.length,i.push(0),K(r,e),n[e])},u=function(){var t=Q(e).cssRules,r="";for(var o in n){r+=ee(o);for(var a=n[o],s=te(i,a),u=s-i[a];u0&&(a=!0,t().insertRules(n+"-import",d)),i[l]+=p,$(r,n,c)},removeRules:function(s){var u=n[s];if(void 0!==u){var c=i[u];!function(e,t,r){for(var n=t-r,i=t;i>n;i-=1)e.deleteRule(i)}(Q(e),te(i,u),c),i[u]=0,K(r,s),o&&a&&t().removeRules(s+"-import")}},css:u,toHTML:re(u,r),toElement:ne(u,r),clone:Z}}(o,i)}return oe()},se=void 0;se=G?1e3:-1;var ue,ce=0,le=void 0,fe=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G?document.head:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];P(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var r=t.tags[0];return t.importRuleTag=ae(t.target,r?r.styleTag:null,t.forceServer,!0)},ce+=1,this.id=ce,this.sealed=!1,this.forceServer=n,this.target=n?null:r,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!G||this.forceServer)return this;var e=[],t=[],r=[],n=!1,i=document.querySelectorAll("style["+F+"]"),o=i.length;if(0===o)return this;for(var a=0;a0&&void 0!==arguments[0]&&arguments[0];le=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map(function(e){for(var r=e.getIds(),n=e.clone(),i=0;i<+~=|^:(),"'`-]+/g,ge=/(^-|-$)/g;function ye(e){return e.replace(ve,"-").replace(ge,"")}function me(e){return e.displayName||e.name||"Component"}function be(e){return"string"==typeof e}var _e=/^((?:s(?:uppressContentEditableWarn|croll|pac)|(?:shape|image|text)Render|(?:letter|word)Spac|vHang|hang)ing|(?:on(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:Animation|Touch|Load|Drag)Start|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|Lo(?:stPointer|ad)|TimeUpdate|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|GotPointer|MouseDown|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|KeyPress|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|P(?:rogress|laying)|DragEnd|Key(?:Down|Up)|(?:MouseU|Dro)p|(?:Wait|Seek)ing|Scroll|Focus|Paste|Abort|Drag|Play|Blur)Captur|alignmentBaselin|(?:limitingConeAng|xlink(?:(?:Arcr|R)o|Tit)|s(?:urfaceSca|ty|ca)|unselectab|baseProfi|fontSty|(?:focus|dragg)ab|multip|profi|tit)l|d(?:ominantBaselin|efaultValu)|onPointerLeav|a(?:uto(?:Capitaliz|Revers|Sav)|dditiv)|(?:(?:formNoValid|xlinkActu|noValid|accumul|rot)a|autoComple|decelera)t|(?:(?:attribute|item)T|datat)yp|onPointerMov|(?:attribute|glyph)Nam|playsInlin|(?:writing|input|edge)Mod|(?:formE|e)ncTyp|(?:amplitu|mo)d|(?:xlinkTy|itemSco|keyTy|slo)p|(?:xmlSpa|non)c|fillRul|(?:dateTi|na)m|r(?:esourc|ol)|xmlBas|wmod)e|(?:glyphOrientationHorizont|loc)al|(?:externalResourcesRequir|select|revers|mut)ed|c(?:o(?:lorInterpolationFilter|ord)s|o(?:lor(?:Interpolation)?|nt(?:rols|ent))|(?:ontentS(?:cript|tyle)Typ|o(?:ntentEditab|lorProfi)l|l(?:assNam|ipRul)|a(?:lcMod|ptur)|it)e|olorRendering|l(?:ipPathUnits|assID)|(?:ontrolsLis|apHeigh)t|h(?:eckedLink|a(?:llenge|rSet)|ildren|ecked)|ell(?:Spac|Padd)ing|o(?:ntextMenu|ls)|(?:rossOrigi|olSpa)n|lip(?:Path)?|ursor|[xy])|glyphOrientationVertical|d(?:angerouslySetInnerHTML|efaultChecked|ownload|isabled|isplay|[xy])|(?:s(?:trikethroughThickn|eaml)es|(?:und|ov)erlineThicknes|r(?:equiredExtension|adiu)|(?:requiredFeatur|tableValu|stitchTil|numOctav|filterR)e|key(?:(?:Splin|Tim)e|Param)|autoFocu|header|bia)s|(?:(?:st(?:rikethroughPosi|dDevia)|(?:und|ov)erlinePosi|(?:textDecor|elev)a|orienta)tio|(?:strokeLinejo|orig)i|on(?:PointerDow|FocusI)|formActio|zoomAndPa|directio|(?:vers|act)io|rowSpa|begi|ico)n|o(?:n(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:Animation|Touch|Load|Drag)Start|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|TimeUpdate|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|MouseDown|P(?:rogress|laying)|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|KeyPress|DragEnd|Key(?:Down|Up)|(?:Wait|Seek)ing|(?:MouseU|Dro)p|Scroll|Paste|Focus|Abort|Drag|Play|Load|Blur)|rient)|p(?:reserveA(?:spectRatio|lpha)|ointsAt[X-Z]|anose1)|(?:patternContent|ma(?:sk(?:Content)?|rker)|primitive|gradient|pattern|filter)Units|(?:(?:allowTranspar|baseFrequ)enc|re(?:ferrerPolic|adOnl)|(?:(?:st(?:roke|op)O|floodO|fillO|o)pac|integr|secur)it|visibilit|fontFamil|accessKe|propert|summar)y|(?:gradientT|patternT|t)ransform|(?:[xy]ChannelSelect|lightingCol|textAnch|floodCol|stopCol|operat|htmlF)or|(?:strokeMiterlimi|(?:specularConsta|repeatCou|fontVaria)n|(?:(?:specularE|e)xpon|renderingInt|asc)en|d(?:iffuseConsta|esce)n|(?:fontSizeAdju|lengthAdju|manife)s|baselineShif|onPointerOu|vectorEffec|(?:(?:mar(?:ker|gin)|x)H|accentH|fontW)eigh|markerStar|a(?:utoCorrec|bou)|onFocusOu|intercep|restar|forma|inlis|heigh|lis)t|(?:(?:st(?:rokeDasho|artO)|o)ffs|acceptChars|formTarg|viewTarg|srcS)et|k(?:ernel(?:UnitLength|Matrix)|[1-4])|(?:(?:enableBackgrou|markerE)n|s(?:p(?:readMetho|ee)|ee)|formMetho|(?:markerM|onInval)i|preloa|metho|kin)d|strokeDasharray|(?:onPointerCanc|lab)el|(?:allowFullScre|hidd)en|systemLanguage|(?:(?:o(?:nPointer(?:Ent|Ov)|rd)|allowReord|placehold|frameBord|paintOrd|post)e|repeatDu|d(?:efe|u))r|v(?:Mathematical|ert(?:Origin[XY]|AdvY)|alues|ocab)|(?:pointerEve|keyPoi)nts|(?:strokeLineca|onPointerU|itemPro|useMa|wra|loo)p|h(?:oriz(?:Origin|Adv)X|ttpEquiv)|(?:vI|i)deographic|unicodeRange|mathematical|vAlphabetic|u(?:nicodeBidi|[12])|(?:fontStretc|hig)h|(?:(?:mar(?:ker|gin)W|strokeW)id|azimu)th|(?:xmlnsXl|valueL)ink|mediaGroup|spellCheck|(?:text|m(?:in|ax))Length|(?:unitsPerE|optimu|fro)m|r(?:adioGroup|e(?:sults|f[XY]|l)|ows|[xy])|a(?:rabicForm|l(?:phabetic|t)|sync)|pathLength|innerHTML|xlinkShow|(?:xlinkHr|glyphR)ef|(?:tabInde|(?:sand|b)bo|viewBo)x|(?:(?:href|xml|src)La|kerni)ng|autoPlay|o(?:verflow|pen)|f(?:o(?:ntSize|rm)|il(?:ter|l))|r(?:e(?:quired|sult|f))?|divisor|p(?:attern|oints)|unicode|d(?:efault|ata|ir)?|i(?:temRef|n2|s)|t(?:arget[XY]|o)|srcDoc|s(?:coped|te(?:m[hv]|p)|pan)|(?:width|size)s|prefix|typeof|itemID|s(?:t(?:roke|art)|hape|cope|rc)|t(?:arget|ype)|(?:stri|la)ng|a(?:ccept|s)|m(?:edia|a(?:sk|x)|in)|x(?:mlns)?|width|value|size|href|k(?:ey)?|end|low|by|i[dn]|y[12]|g[12]|x[12]|f[xy]|[yz])$/,we=RegExp.prototype.test.bind(new RegExp("^(x|data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"));var Ee,Se,xe="__styled-components__",Te=xe+"next__",Ae=p.a.shape({getTheme:p.a.func,subscribe:p.a.func,unsubscribe:p.a.func});var ke=function(e){function t(){P(this,t);var r=U(this,e.call(this));return r.unsubscribeToOuterId=-1,r.getTheme=r.getTheme.bind(r),r}return M(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.context[Te];void 0!==t&&(this.unsubscribeToOuterId=t.subscribe(function(t){e.outerTheme=t,void 0!==e.broadcast&&e.publish(e.props.theme)})),this.broadcast=function(e){var t={},r=0,n=e;return{publish:function(e){for(var r in n=e,t){var i=t[r];void 0!==i&&i(n)}},subscribe:function(e){var i=r;return t[i]=e,r+=1,e(n),i},unsubscribe:function(e){t[e]=void 0}}}(this.getTheme())},t.prototype.getChildContext=function(){var e,t=this;return H({},this.context,((e={})[Te]={getTheme:this.getTheme,subscribe:this.broadcast.subscribe,unsubscribe:this.broadcast.unsubscribe},e[xe]=function(e){var r=t.broadcast.subscribe(e);return function(){return t.broadcast.unsubscribe(r)}},e))},t.prototype.componentWillReceiveProps=function(e){this.props.theme!==e.theme&&this.publish(e.theme)},t.prototype.componentWillUnmount=function(){-1!==this.unsubscribeToOuterId&&this.context[Te].unsubscribe(this.unsubscribeToOuterId)},t.prototype.getTheme=function(e){var t=e||this.props.theme;if(function(e){return"function"==typeof e}(t))return t(this.outerTheme);if(null===t||Array.isArray(t)||"object"!==(void 0===t?"undefined":R(t)))throw new Error("");return H({},this.outerTheme,t)},t.prototype.publish=function(e){this.broadcast.publish(this.getTheme(e))},t.prototype.render=function(){return this.props.children?f.a.Children.only(this.props.children):null},t}(l.Component);ke.childContextTypes=((Ee={})[xe]=p.a.func,Ee[Te]=Ae,Ee),ke.contextTypes=((Se={})[Te]=Ae,Se);var Oe={};function Ce(e){for(var t,r=0|e.length,n=0|r,i=0;r>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++i;switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+((1540483477*(n>>>16)&65535)<<16)}return n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16),(n^=n>>>15)>>>0}var Ie=G,Ne=function e(t,r){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if(!Object(g.isValidElementType)(n))throw new Error("");var o=function(){return r(n,i,e.apply(void 0,arguments))};return o.withConfig=function(e){return t(r,n,H({},i,e))},o.attrs=function(e){return t(r,n,H({},i,{attrs:H({},i.attrs||{},e)}))},o}}(L),He=function(e,t){var r={},n=function(e){function t(){var r,n;P(this,t);for(var i=arguments.length,o=Array(i),a=0;a>>2];e.sigBytes-=t}},y=(n.BlockCipher=f.extend({cfg:f.cfg.extend({mode:d,padding:g}),reset:function(){f.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else{var n=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==n?this._mode.init(this,t&&t.words):(this._mode=n.call(r,this,t&&t.words),this._mode.__creator=n)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),m=r.format={},b=m.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var n=o.create([1398893684,1701076831]).concat(r).concat(t);else var n=t;return n.toString(u)},parse:function(e){var t=u.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var n=o.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return y.create({ciphertext:t,salt:n})}},_=n.SerializableCipher=i.extend({cfg:i.extend({format:b}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return y.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=e.createDecryptor(r,n).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=r.kdf={},E=w.OpenSSL={execute:function(e,t,r,n){n||(n=o.random(8));var i=l.create({keySize:t+r}).compute(e,n),a=o.create(i.words.slice(t),4*r);return i.sigBytes=4*t,y.create({key:i,iv:a,salt:n})}},S=n.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:E}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=_.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);n.iv=i.iv;var o=_.decrypt.call(this,e,t,i.key,n);return o}})}()}(r(4),r(23))},function(e,t,r){"use strict";var n=r(25),i=r(283),o=r(66),a=r(280),s=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n=this.operator,o=i.toSubscriber(e,t,r);if(n?n.call(o,this.source):o.add(this.source||!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.syncErrorThrown=!0,e.syncErrorValue=t,e.error(t)}},e.prototype.forEach=function(e,t){var r=this;if(t||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?t=n.root.Rx.config.Promise:n.root.Promise&&(t=n.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var i;i=r.subscribe(function(t){if(i)try{e(t)}catch(e){n(e),i.unsubscribe()}else e(t)},n,t)})},e.prototype._subscribe=function(e){return this.source.subscribe(e)},e.prototype[o.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(u)throw u;for(var n=!1,i={},o=0;o0;){var o=i%3;i=Math.floor(i/3),o>1&&(o=-1,i++),n[n.length]=o}if(e<0)for(var a=0;a0;)t=3*t+e[r];return t},fromValue:function(e){for(var t=[],r=e<0?-e:e,n=0;r>0;){var i=r%3;r=Math.floor(r/3),i>1&&(i=-1,r++),t[n]=i,n++}if(e<0)for(var o=0;o0;){var o=i%3;i=Math.floor(i/3),o>1&&(o=-1,i++),n[n.length]=o}if(e<0)for(var a=0;a0;)t=3*t+e[r];return t},fromValue:function(e){for(var t=[],r=e<0?-e:e,n=0;r>0;){var i=r%3;r=Math.floor(r/3),i>1&&(i=-1,r++),t[n]=i,n++}if(e<0)for(var o=0;o0)},i.prototype.squeeze=function(e,t,r){do{for(var n=0,i=r<243?r:243;n0)},i.prototype.transform=function(){for(var e=[],t=0,r=0;r1&&void 0!==arguments[1]?arguments[1]:g;if("function"!=typeof e)throw new TypeError("You must provide a root Epic to createEpicMiddleware");t=v({},g,t);var r=new n.Subject,a=t.adapter.input(new p(r)),s=new n.Subject,u=void 0,c=function(n){return u=n,function(n){var c;return(c=i.map.call(s,function(e){var r=u,n="dependencies"in t?e(a,r,t.dependencies):e(a,r);if(!n)throw new TypeError('Your root Epic "'+(e.name||"")+"\" does not return a stream. Double check you're not missing a return statement!");return n}),o.switchMap).call(c,function(e){return t.adapter.output(e)}).subscribe(u.dispatch),s.next(e),function(e){var t=n(e);return r.next(e),t}}};return c.replaceEpic=function(e){u.dispatch({type:d}),s.next(e)},c}var m=r(125);var b=function(){for(var e=arguments.length,t=Array(e),r=0;r")+"\" does not return a stream. Double check you're not missing a return statement!");return t})))}};r.d(t,"createEpicMiddleware",function(){return y}),r.d(t,"ActionsObservable",function(){return p}),r.d(t,"combineEpics",function(){return b}),r.d(t,"EPIC_END",function(){return d}),r.d(t,"ofType",function(){return f})},function(e,t,r){r(16);var n=81;function i(e){this.rounds=e||n,this.truthTable=[1,0,-1,2,1,-1,0,2,-1,1,0]}i.HASH_LENGTH=243,i.prototype.initialize=function(e,t){if(e)this.state=e;else{this.state=[];for(var r=0;r<729;r++)this.state[r]=0}},i.prototype.reset=function(){this.initialize()},i.prototype.absorb=function(e,t,r){do{for(var n=0,i=r<243?r:243;n0)},i.prototype.squeeze=function(e,t,r){do{for(var n=0,i=r<243?r:243;n0)},i.prototype.transform=function(){for(var e=[],t=0,r=0;r1)for(var r=1;r0)},s.prototype.squeeze=function(e,t,r){if(r&&r%243!=0)throw new Error("Illegal length provided");do{for(var n=this.k.clone().finalize(),a=o.words_to_trits(n.words),s=0,u=r0)},e.exports=s},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],p=e[t+2],d=e[t+3],v=e[t+4],g=e[t+5],y=e[t+6],m=e[t+7],b=e[t+8],_=e[t+9],w=e[t+10],E=e[t+11],S=e[t+12],x=e[t+13],T=e[t+14],A=e[t+15],k=o[0],O=o[1],C=o[2],I=o[3];O=h(O=h(O=h(O=h(O=f(O=f(O=f(O=f(O=l(O=l(O=l(O=l(O=c(O=c(O=c(O=c(O,C=c(C,I=c(I,k=c(k,O,C,I,a,7,s[0]),O,C,u,12,s[1]),k,O,p,17,s[2]),I,k,d,22,s[3]),C=c(C,I=c(I,k=c(k,O,C,I,v,7,s[4]),O,C,g,12,s[5]),k,O,y,17,s[6]),I,k,m,22,s[7]),C=c(C,I=c(I,k=c(k,O,C,I,b,7,s[8]),O,C,_,12,s[9]),k,O,w,17,s[10]),I,k,E,22,s[11]),C=c(C,I=c(I,k=c(k,O,C,I,S,7,s[12]),O,C,x,12,s[13]),k,O,T,17,s[14]),I,k,A,22,s[15]),C=l(C,I=l(I,k=l(k,O,C,I,u,5,s[16]),O,C,y,9,s[17]),k,O,E,14,s[18]),I,k,a,20,s[19]),C=l(C,I=l(I,k=l(k,O,C,I,g,5,s[20]),O,C,w,9,s[21]),k,O,A,14,s[22]),I,k,v,20,s[23]),C=l(C,I=l(I,k=l(k,O,C,I,_,5,s[24]),O,C,T,9,s[25]),k,O,d,14,s[26]),I,k,b,20,s[27]),C=l(C,I=l(I,k=l(k,O,C,I,x,5,s[28]),O,C,p,9,s[29]),k,O,m,14,s[30]),I,k,S,20,s[31]),C=f(C,I=f(I,k=f(k,O,C,I,g,4,s[32]),O,C,b,11,s[33]),k,O,E,16,s[34]),I,k,T,23,s[35]),C=f(C,I=f(I,k=f(k,O,C,I,u,4,s[36]),O,C,v,11,s[37]),k,O,m,16,s[38]),I,k,w,23,s[39]),C=f(C,I=f(I,k=f(k,O,C,I,x,4,s[40]),O,C,a,11,s[41]),k,O,d,16,s[42]),I,k,y,23,s[43]),C=f(C,I=f(I,k=f(k,O,C,I,_,4,s[44]),O,C,S,11,s[45]),k,O,A,16,s[46]),I,k,p,23,s[47]),C=h(C,I=h(I,k=h(k,O,C,I,a,6,s[48]),O,C,m,10,s[49]),k,O,T,15,s[50]),I,k,g,21,s[51]),C=h(C,I=h(I,k=h(k,O,C,I,S,6,s[52]),O,C,d,10,s[53]),k,O,w,15,s[54]),I,k,u,21,s[55]),C=h(C,I=h(I,k=h(k,O,C,I,b,6,s[56]),O,C,A,10,s[57]),k,O,y,15,s[58]),I,k,x,21,s[59]),C=h(C,I=h(I,k=h(k,O,C,I,v,6,s[60]),O,C,E,10,s[61]),k,O,p,15,s[62]),I,k,_,21,s[63]),o[0]=o[0]+k|0,o[1]=o[1]+O|0,o[2]=o[2]+C|0,o[3]=o[3]+I|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<>>32-o)+t}function l(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<>>32-o)+t}r.MD5=o._createHelper(u),r.HmacMD5=o._createHmacHelper(u)}(Math),e.MD5}(r(4))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.WordArray;t.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>6-a%4*2;i[o>>>2]|=(s|u)<<24-o%4*8,o++}return r.create(i,o)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(r(4))},function(e,t){var r=function(e){if(!a(e))return!1;if(90===e.length){if(!n(e,90))return!1}else if(!n(e,81))return!1;return!0},n=function(e,t){t||(t="0,");var r=new RegExp("^[9A-Z]{"+t+"}$");return a(e)&&r.test(e)},i=function(e){return Number.isInteger(e)},o=function(e){return!!n(e,81)},a=function(e){return"string"==typeof e},s=function(e){return e instanceof Array};e.exports={isAddress:r,isTrytes:n,isNinesTrytes:function(e){return a(e)&&/^[9]+$/.test(e)},isValue:i,isHash:o,isTransfersArray:function(e){if(!s(e))return!1;for(var t=0;tf[t].dp)throw new Error("Input value exceeded max fromUnit precision.");return n.times(f[t].val).dividedBy(f[r].val).toNumber()},addChecksum:h,noChecksum:p,isValidChecksum:function(e){var t=p(e);return h(t)===e},transactionObject:function(e){if(e){for(var t=2279;t<2295;t++)if("9"!==e.charAt(t))return null;var r={},n=a.trits(e),o=[],s=new i;return s.initialize(),s.absorb(n,0,n.length),s.squeeze(o,0,243),r.hash=a.trytes(o),r.signatureMessageFragment=e.slice(0,2187),r.address=e.slice(2187,2268),r.value=a.value(n.slice(6804,6837)),r.obsoleteTag=e.slice(2295,2322),r.timestamp=a.value(n.slice(6966,6993)),r.currentIndex=a.value(n.slice(6993,7020)),r.lastIndex=a.value(n.slice(7020,7047)),r.bundle=e.slice(2349,2430),r.trunkTransaction=e.slice(2430,2511),r.branchTransaction=e.slice(2511,2592),r.tag=e.slice(2592,2619),r.attachmentTimestamp=a.value(n.slice(7857,7884)),r.attachmentTimestampLowerBound=a.value(n.slice(7884,7911)),r.attachmentTimestampUpperBound=a.value(n.slice(7911,7938)),r.nonce=e.slice(2646,2673),r}},transactionTrytes:d,categorizeTransfers:function(e,t){var r={sent:[],received:[]};return e.forEach(function(e){var n=!1;e.forEach(function(i,o){if(t.indexOf(i.address)>-1){var a=i.currentIndex===i.lastIndex&&0!==i.lastIndex;i.value<0&&!n&&!a?(r.sent.push(e),n=!0):i.value>=0&&!n&&!a&&r.received.push(e)}})}),r},toTrytes:u.toTrytes,fromTrytes:u.fromTrytes,extractJson:c,validateSignatures:function(e,t){for(var r,i=[],o=0;o0)},s.prototype.squeeze=function(e,t,r){if(r&&r%243!=0)throw new Error("Illegal length provided");do{for(var n=this.k.clone().finalize(),a=o.words_to_trits(n.words),s=0,u=r0)},e.exports=s},function(e,t,r){var n=r(17);r(3),e.exports=n.cipher=n.cipher||{},n.cipher.algorithms=n.cipher.algorithms||{},n.cipher.createCipher=function(e,t){var r=e;if("string"==typeof r&&(r=n.cipher.getAlgorithm(r))&&(r=r()),!r)throw new Error("Unsupported algorithm: "+e);return new n.cipher.BlockCipher({algorithm:r,key:t,decrypt:!1})},n.cipher.createDecipher=function(e,t){var r=e;if("string"==typeof r&&(r=n.cipher.getAlgorithm(r))&&(r=r()),!r)throw new Error("Unsupported algorithm: "+e);return new n.cipher.BlockCipher({algorithm:r,key:t,decrypt:!0})},n.cipher.registerAlgorithm=function(e,t){e=e.toUpperCase(),n.cipher.algorithms[e]=t},n.cipher.getAlgorithm=function(e){return(e=e.toUpperCase())in n.cipher.algorithms?n.cipher.algorithms[e]:null};var i=n.cipher.BlockCipher=function(e){this.algorithm=e.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=e.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=e.decrypt,this.algorithm.initialize(e)};i.prototype.start=function(e){e=e||{};var t={};for(var r in e)t[r]=e[r];t.decrypt=this._decrypt,this._finish=!1,this._input=n.util.createBuffer(),this.output=e.output||n.util.createBuffer(),this.mode.start(t)},i.prototype.update=function(e){for(e&&this._input.putBuffer(e);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()},i.prototype.finish=function(e){!e||"ECB"!==this.mode.name&&"CBC"!==this.mode.name||(this.mode.pad=function(t){return e(this.blockSize,t,!1)},this.mode.unpad=function(t){return e(this.blockSize,t,!0)});var t={};return t.decrypt=this._decrypt,t.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,t))&&(this._finish=!0,this.update(),!(this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,t))&&!(this.mode.afterFinish&&!this.mode.afterFinish(this.output,t)))}},function(e,t,r){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,l=c&&c(Object);e.exports=function e(t,r,f){if("string"!=typeof r){if(l){var h=c(r);h&&h!==l&&e(t,h,f)}var p=a(r);s&&(p=p.concat(s(r)));for(var d=0;d0;){var u=new i;u.initialize(),u.absorb(r,0,r.length),u.squeeze(r,0,n.HASH_LENGTH)}o.absorb(r,0,r.length)}return o.squeeze(r,0,n.HASH_LENGTH),r};e.exports={key:function(e,t,r){for(;e.length%243!=0;)e.push(0);var n=o.fromValue(t),a=s(e.slice(),n),u=new i;u.initialize(),u.absorb(a,0,a.length),u.squeeze(a,0,a.length),u.reset(),u.absorb(a,0,a.length);for(var c=[],l=0,f=[];r-- >0;)for(var h=0;h<27;h++){u.squeeze(f,0,a.length);for(var p=0;p<243;p++)c[l++]=f[p]}return c},digests:function(e){for(var t=[],r=[],o=0;o0?1:r<0?-1:0}(n(e,t),n(o,i));return[r(o,i),a]}e.exports=function(e,t){for(var r=new Array(Math.max(e.length,t.length)),n=0,o=0;o=0){for(;n-- >0;)for(i=0;i<27;i++)if(t[27*r+i]>-13){t[27*r+i]--;break}}else for(;n++<0;)for(i=0;i<27;i++)if(t[27*r+i]<13){t[27*r+i]++;break}}return t},e.exports=s},function(e,t,r){var n=r(20),i=r(34),o=r(16),a=r(56);function s(){this.bundle=[]}s.prototype.addEntry=function(e,t,r,n,i,o){for(var a=0;a=0){for(;n-- >0;)for(i=0;i<27;i++)if(t[27*r+i]>-13){t[27*r+i]--;break}}else for(;n++<0;)for(i=0;i<27;i++)if(t[27*r+i]<13){t[27*r+i]++;break}}return t},e.exports=s},function(e,t,r){var n=r(20),i=r(34),o=r(16),a=r(42),s=r(56),u=(r(192),r(55)),c=function(e,t){var r=[],o=new i;o.initialize();for(var a=0;a<27;a++){r=t.slice(243*a,243*(a+1));for(var s=e[a]+13;s-- >0;){var u=new i;u.initialize(),u.absorb(r,0,r.length),u.squeeze(r,0,n.HASH_LENGTH)}o.absorb(r,0,r.length)}return o.squeeze(r,0,n.HASH_LENGTH),r};e.exports={key:function(e,t,r){for(;e.length%243!=0;)e.push(0);var n=o.fromValue(t),a=s(e.slice(),n),u=new i;u.initialize(),u.absorb(a,0,a.length),u.squeeze(a,0,a.length),u.reset(),u.absorb(a,0,a.length);for(var c=[],l=0,f=[];r-- >0;)for(var h=0;h<27;h++){u.squeeze(f,0,a.length);for(var p=0;p<243;p++)c[l++]=f[p]}return c},digests:function(e){for(var t=[],r=[],o=0;o255)return null;var i=n%27;t+="9ABCDEFGHIJKLMNOPQRSTUVWXYZ"[i]+"9ABCDEFGHIJKLMNOPQRSTUVWXYZ"[(n-i)/27]}return t},fromTrytes:function(e){if("string"!=typeof e)return null;if(e.length%2)return null;for(var t="",r=0;r0&&void 0!==arguments[0]?arguments[0]:"store",r=arguments[1]||t+"Subscription",i=function(e){function i(r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r,n));return o[t]=r.store,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),i.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[r]=null,e},i.prototype.render=function(){return n.Children.only(this.props.children)},i}(n.Component);return i.propTypes={store:s.isRequired,children:o.a.element.isRequired},i.childContextTypes=((e={})[t]=s.isRequired,e[r]=a,e),i}(),c=r(36),l=r.n(c),f=r(51),h=r.n(f);var p=null,d={notify:function(){}};var v=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=r,this.onStateChange=n,this.unsubscribe=null,this.listeners=d}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=function(){var e=[],t=[];return{clear:function(){t=p,e=p},notify:function(){for(var r=e=t,n=0;n1&&void 0!==arguments[1]?arguments[1]:{},o=i.getDisplayName,u=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,c=i.methodName,f=void 0===c?"connectAdvanced":c,p=i.renderCountProp,d=void 0===p?void 0:p,_=i.shouldHandleStateChanges,w=void 0===_||_,E=i.storeKey,S=void 0===E?"store":E,x=i.withRef,T=void 0!==x&&x,A=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(i,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),k=S+"Subscription",O=y++,C=((t={})[S]=s,t[k]=a,t),I=((r={})[k]=a,r);return function(t){h()("function"==typeof t,"You must pass a component to the function returned by "+f+". Instead received "+JSON.stringify(t));var r=t.displayName||t.name||"Component",i=u(r),o=g({},A,{getDisplayName:u,methodName:f,renderCountProp:d,shouldHandleStateChanges:w,storeKey:S,withRef:T,displayName:i,wrappedComponentName:r,WrappedComponent:t}),a=function(r){function a(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e,t));return n.version=O,n.state={},n.renderCount=0,n.store=e[S]||t[S],n.propsMode=Boolean(e[S]),n.setWrappedInstance=n.setWrappedInstance.bind(n),h()(n.store,'Could not find "'+S+'" in either the context or props of "'+i+'". Either wrap the root component in a , or explicitly pass "'+S+'" as a prop to "'+i+'".'),n.initSelector(),n.initSubscription(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,r),a.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[k]=t||this.context[k],e},a.prototype.componentDidMount=function(){w&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},a.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=b,this.store=null,this.selector.run=b,this.selector.shouldComponentUpdate=!1},a.prototype.getWrappedInstance=function(){return h()(T,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+f+"() call."),this.wrappedInstance},a.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},a.prototype.initSelector=function(){var t=e(this.store.dispatch,o);this.selector=function(e,t){var r={run:function(n){try{var i=e(t.getState(),n);(i!==r.props||r.error)&&(r.shouldComponentUpdate=!0,r.props=i,r.error=null)}catch(e){r.shouldComponentUpdate=!0,r.error=e}}};return r}(t,this.store),this.selector.run(this.props)},a.prototype.initSubscription=function(){if(w){var e=(this.propsMode?this.props:this.context)[k];this.subscription=new v(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(m)):this.notifyNestedSubs()},a.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.prototype.addExtraProps=function(e){if(!(T||d||this.propsMode&&this.subscription))return e;var t=g({},e);return T&&(t.ref=this.setWrappedInstance),d&&(t[d]=this.renderCount++),this.propsMode&&this.subscription&&(t[k]=this.subscription),t},a.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(n.createElement)(t,this.addExtraProps(e.props))},a}(n.Component);return a.WrappedComponent=t,a.displayName=i,a.childContextTypes=I,a.contextTypes=C,a.propTypes=C,l()(a,t)}}var w=Object.prototype.hasOwnProperty;function E(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function S(e,t){if(E(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=r(e,o),s=n(e,o),u=i(e,o);return(o.pure?P:R)(a,s,u,e,o)}var H=Object.assign||function(e){for(var t=1;t=0;n--){var i=t[n](e);if(i)return i}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function D(e,t){return e===t}var U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,r=void 0===t?_:t,n=e.mapStateToPropsFactories,i=void 0===n?C:n,o=e.mapDispatchToPropsFactories,a=void 0===o?O:o,s=e.mergePropsFactories,u=void 0===s?B:s,c=e.selectorFactory,l=void 0===c?j:c;return function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=o.pure,c=void 0===s||s,f=o.areStatesEqual,h=void 0===f?D:f,p=o.areOwnPropsEqual,d=void 0===p?S:p,v=o.areStatePropsEqual,g=void 0===v?S:v,y=o.areMergedPropsEqual,m=void 0===y?S:y,b=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),_=M(e,i,"mapStateToProps"),w=M(t,a,"mapDispatchToProps"),E=M(n,u,"mergeProps");return r(l,H({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:_,initMapDispatchToProps:w,initMergeProps:E,pure:c,areStatesEqual:h,areOwnPropsEqual:d,areStatePropsEqual:g,areMergedPropsEqual:m},b))}}();r.d(t,"a",function(){return u}),r.d(t,!1,function(){}),r.d(t,!1,function(){return _}),r.d(t,"b",function(){return U})},function(e,t,r){var n=r(17);r(83),r(3);var i=e.exports=n.sha256=n.sha256||{};n.md.sha256=n.md.algorithms.sha256=i,i.create=function(){a||(o=String.fromCharCode(128),o+=n.util.fillString(String.fromCharCode(0),64),s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=!0);var e=null,t=n.util.createBuffer(),r=new Array(64),i={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8,start:function(){i.messageLength=0,i.fullMessageLength=i.messageLength64=[];for(var r=i.messageLengthSize/4,o=0;o>>0,s>>>0];for(var c=i.fullMessageLength.length-1;c>=0;--c)i.fullMessageLength[c]+=s[1],s[1]=s[0]+(i.fullMessageLength[c]/4294967296>>>0),i.fullMessageLength[c]=i.fullMessageLength[c]>>>0,s[0]=s[1]/4294967296>>>0;return t.putBytes(o),u(e,r,t),(t.read>2048||0===t.length())&&t.compact(),i},i.digest=function(){var a=n.util.createBuffer();a.putBytes(t.bytes());var s,c=i.fullMessageLength[i.fullMessageLength.length-1]+i.messageLengthSize&i.blockLength-1;a.putBytes(o.substr(0,i.blockLength-c));for(var l=8*i.fullMessageLength[0],f=0;f>>0,a.putInt32(l>>>0),l=s>>>0;a.putInt32(l);var h={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4,h5:e.h5,h6:e.h6,h7:e.h7};u(h,r,a);var p=n.util.createBuffer();return p.putInt32(h.h0),p.putInt32(h.h1),p.putInt32(h.h2),p.putInt32(h.h3),p.putInt32(h.h4),p.putInt32(h.h5),p.putInt32(h.h6),p.putInt32(h.h7),p},i};var o=null,a=!1,s=null;function u(e,t,r){for(var n,i,o,a,u,c,l,f,h,p,d,v,g,y=r.length();y>=64;){for(u=0;u<16;++u)t[u]=r.getInt32();for(;u<64;++u)n=((n=t[u-2])>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,i=((i=t[u-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,t[u]=n+t[u-7]+i+t[u-16]|0;for(c=e.h0,l=e.h1,f=e.h2,h=e.h3,p=e.h4,d=e.h5,v=e.h6,g=e.h7,u=0;u<64;++u)o=(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),a=c&l|f&(c^l),n=g+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(v^p&(d^v))+s[u]+t[u],g=v,v=d,d=p,p=h+n>>>0,h=f,f=l,l=c,c=n+(i=o+a)>>>0;e.h0=e.h0+c|0,e.h1=e.h1+l|0,e.h2=e.h2+f|0,e.h3=e.h3+h|0,e.h4=e.h4+p|0,e.h5=e.h5+d|0,e.h6=e.h6+v|0,e.h7=e.h7+g|0,y-=64}}},function(e,t){const r=Object.freeze({HOST:"",BROKER_NODE_A:"",BROKER_NODE_B:"",V1_UPLOAD_SESSIONS_PATH:":3000/api/v1/upload-sessions",V2_UPLOAD_SESSIONS_PATH:":3000/api/v2/upload-sessions",CHUNKS_PER_REQUEST:10}),n=Object.freeze({PROVIDER_A:"http://18.188.17.130:14265",PROVIDER_B:"http://18.220.1.63:14265",PROVIDER_C:"http://18.216.90.80:14265",ADDRESS_LENGTH:81,MESSAGE_LENGTH:2187}),i=Object.freeze({PENDING:"PENDING",SENT:"SENT",FAILED:"FAILED"}),o=Object.freeze({STANDBY:"STANDBY",PENDING:"PENDING",RECEIVED:"RECEIVED",FAILED:"FAILED"}),a=Object.freeze({MAX_FILE_SIZE:2e5,CHUNKS_PER_SECTOR:1e6,CHUNK_TYPES:{METADATA:"METADATA",FILE_CONTENTS:"FILE_CONTENTS"}});e.exports={API:r,DOWNLOAD_STATUSES:o,FILE:a,IOTA_API:n,UPLOAD_STATUSES:i}},function(e,t,r){"use strict";function n(e,t){return e===t}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,r=null,i=null;return function(){return function(e,t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var n=t.length,i=0;i1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:a;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var r=Object.keys(e);return t(r.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),n=0;nString(l[t]).length-1)throw new Error("Too many digits after comma");if(!n.isNum(e))throw new Error("Invalid value");return parseFloat(e)*l[t]/l[r]},addChecksum:f,noChecksum:h,isValidChecksum:function(e){var t=h(e);return f(t)===e},transactionObject:function(e){if(e){for(var t=2279;t<2295;t++)if("9"!==e.charAt(t))return null;var r={},n=a.trits(e),o=[],s=new i;return s.initialize(),s.absorb(n,0,n.length),s.squeeze(o,0,243),r.hash=a.trytes(o),r.signatureMessageFragment=e.slice(0,2187),r.address=e.slice(2187,2268),r.value=a.value(n.slice(6804,6837)),r.obsoleteTag=e.slice(2295,2322),r.timestamp=a.value(n.slice(6966,6993)),r.currentIndex=a.value(n.slice(6993,7020)),r.lastIndex=a.value(n.slice(7020,7047)),r.bundle=e.slice(2349,2430),r.trunkTransaction=e.slice(2430,2511),r.branchTransaction=e.slice(2511,2592),r.tag=e.slice(2592,2619),r.attachmentTimestamp=a.value(n.slice(7857,7884)),r.attachmentTimestampLowerBound=a.value(n.slice(7884,7911)),r.attachmentTimestampUpperBound=a.value(n.slice(7911,7938)),r.nonce=e.slice(2646,2673),r}},transactionTrytes:p,categorizeTransfers:function(e,t){var r={sent:[],received:[]};return e.forEach(function(e){var n=!1;e.forEach(function(i,o){if(t.indexOf(i.address)>-1){var a=i.currentIndex===i.lastIndex&&0!==i.lastIndex;i.value<0&&!n&&!a?(r.sent.push(e),n=!0):i.value>=0&&!n&&!a&&r.received.push(e)}})}),r},toTrytes:u.toTrytes,fromTrytes:u.fromTrytes,extractJson:c,validateSignatures:function(e,t){for(var r,i=[],o=0;o0?1:r<0?-1:0}(n(e,t),n(o,i));return[r(o,i),a]}e.exports=function(e,t){for(var r=new Array(Math.max(e.length,t.length)),n=0,o=0;on&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,u=a.words,c=0;c>>31}var f=(n<<5|n>>>27)+u+o[c];f+=c<20?1518500249+(i&a|~i&s):c<40?1859775393+(i^a^s):c<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,u=s,s=a,a=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(a),t.HmacSHA1=i._createHmacHelper(a)}(),e.SHA1}(r(4))},function(e,t,r){"use strict";(function(t){var n=r(13),i=r(235),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=r(97):void 0!==t&&(e=r(97)),e}(),transformRequest:[function(e,t){return i(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(e){s.headers[e]={}}),n.forEach(["post","put","patch"],function(e){s.headers[e]=n.merge(o)}),e.exports=s}).call(this,r(21))},function(e,t,r){(function(t){var n=r(100),i="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function o(e){return void 0===e}function a(e){return"[object Object]"===Object.prototype.toString.call(e)}function s(e){return"[object String]"===Object.prototype.toString.call(e)}function u(e){return"[object Array]"===Object.prototype.toString.call(e)}function c(){if(!("fetch"in i))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function l(e,t){var r,n;if(o(e.length))for(r in e)h(e,r)&&t.call(null,r,e[r]);else if(n=e.length)for(r=0;r ".length;e&&n++<5&&!("html"===(t=d(e))||n>1&&i+r.length*o+t.length>=80);)r.push(t),i+=t.length,e=e.parentNode;return r.reverse().join(" > ")},htmlElementAsString:d,isSameException:function(e,t){return!v(e,t)&&(e=e.values[0],t=t.values[0],e.type===t.type&&e.value===t.value&&!function(e,t){return o(e)&&o(t)}(e.stacktrace,t.stacktrace)&&g(e.stacktrace,t.stacktrace))},isSameStacktrace:g,parseUrl:function(e){if("string"!=typeof e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/),r=t[6]||"",n=t[8]||"";return{protocol:t[2],host:t[4],path:t[5],relative:t[5]+r+n}},fill:function(e,t,r,n){if(null!=e){var i=e[t];e[t]=r(i),e[t].__raven__=!0,e[t].__orig__=i,n&&n.push([e,t,i])}},safeJoin:function(e,t){if(!u(e))return"";for(var r=[],n=0;ni?e(t,r-1):o},serializeKeysForMessage:function(e,t){if("number"==typeof e||"string"==typeof e)return e.toString();if(!Array.isArray(e))return"";if(0===(e=e.filter(function(e){return"string"==typeof e})).length)return"[object has no keys]";if(t="number"!=typeof t?b:t,e[0].length>=t)return e[0];for(var r=e.length;r>0;r--){var n=e.slice(0,r).join(", ");if(!(n.length>t))return r===e.length?n:n+"…"}return""},sanitize:function(e,t){if(!u(t)||u(t)&&0===t.length)return e;var r,i=p(t),o="********";try{r=JSON.parse(n(e))}catch(t){return e}return function e(t){return u(t)?t.map(function(t){return e(t)}):a(t)?Object.keys(t).reduce(function(r,n){return i.test(n)?r[n]=o:r[n]=e(t[n]),r},{}):t}(r)}}}).call(this,r(11))},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(t){e.call(this),this.scheduler=t}return n(t,e),t.create=function(e){return new t(e)},t.dispatch=function(e){e.subscriber.complete()},t.prototype._subscribe=function(e){var r=this.scheduler;if(r)return r.schedule(t.dispatch,0,{subscriber:e});e.complete()},t}(r(10).Observable);t.EmptyObservable=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=r(10),o=r(105),a=r(61),s=r(104),u=function(e){function t(t,r){e.call(this),this.array=t,this.scheduler=r,r||1!==t.length||(this._isScalar=!0,this.value=t[0])}return n(t,e),t.create=function(e,r){return new t(e,r)},t.of=function(){for(var e=[],r=0;r1?new t(e,n):1===i?new o.ScalarObservable(e[0],n):new a.EmptyObservable(n)},t.dispatch=function(e){var t=e.array,r=e.index,n=e.count,i=e.subscriber;r>=n?i.complete():(i.next(t[r]),i.closed||(e.index=r+1,this.schedule(e)))},t.prototype._subscribe=function(e){var r=this.array,n=r.length,i=this.scheduler;if(i)return i.schedule(t.dispatch,0,{array:r,index:0,count:n,subscriber:e});for(var o=0;o{let i;"trytes"in e?i=n.prepare(e.trytes):"state"in e?i=n.offsetState(e.state):r("Error: no trytes or state matrix provided");let o=n.search(u,i,e.minWeight);return"function"==typeof t&&o.then(t).catch(r),o};e.exports={init:()=>null!=(u=n.instance()),pow:c,prepare:n.prepare,setOffset:e=>{u.offset=e},interrupt:()=>interrupt(u),resume:()=>n.doNext(u),remove:()=>u.queue.unshift(),overrideAttachToTangle:e=>{e.attachToTangle=((e,t,r,n,u)=>{let l=t,f=e;const h=new i,p=new Int8Array(o.HASH_LENGTH);var d=e=>new Promise(function(t,n){h.reset();const i=e.substr(0,e.length-243).concat(f).concat(l);h.absorb(a.trits(i),0,o.TRANSACTION_LENGTH-o.HASH_LENGTH),a.trits(e.substr(e.length-81,e.length)).forEach((e,t)=>h.state[t]=e),a.trits(e.substr(2295,2322)).forEach((e,t)=>h.state[t]=e),(e=>{const t=e.subarray(o.TIMESTAMP_START,o.TIMESTAMP_LOWER_BOUND_START),r=e.subarray(o.TIMESTAMP_UPPER_BOUND_START,o.NONCE_START);t.fill(0),a.fromValue(Date.now()).map((e,r)=>t[r]=e),e.subarray(o.TIMESTAMP_LOWER_BOUND_START,o.TIMESTAMP_UPPER_BOUND_START).fill(0),r.fill(0),s.map((e,t)=>r[t]=e)})(h.state),c({state:a.trytes(h.state),minWeight:r}).then(e=>{t(i.concat(e))})}),v=[];!function e(t){t==n.length?u(null,v):d(n[t]).then(function(r){console.log("result:",r);var n=a.trits(r);h.reset(),h.absorb(n,0,n.length),h.squeeze(p,0,o.HASH_LENGTH),l=f,f=a.trytes(p),v.push(r),e(t+1)}).catch(u)}(0)})}}},function(e,t,r){var n=r(31),i=r(93),o=r(189),a=r(186);function s(e){this.setSettings(e)}s.prototype.setSettings=function(e){e=e||{},this.version=r(184).version,this.host=e.host||"http://localhost",this.port=e.port||14265,this.provider=e.provider||this.host.replace(/\/$/,"")+":"+this.port,this.sandbox=e.sandbox||!1,this.token=e.token||!1,this.sandbox&&(this.sandbox=this.provider.replace(/\/$/,""),this.provider=this.sandbox+"/commands"),this._makeRequest=new i(this.provider,this.token),this.api=new o(this._makeRequest,this.sandbox),this.utils=n,this.valid=r(30),this.multisig=new a(this._makeRequest)},s.prototype.changeNode=function(e){this.setSettings(e)},e.exports=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=r(10),o=r(24),a=r(68),s=r(278),u=r(277),c=r(67),l=function(e){function t(t){e.call(this,t),this.destination=t}return n(t,e),t}(o.Subscriber);t.SubjectSubscriber=l;var f=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(t,e),t.prototype[c.rxSubscriber]=function(){return new l(this)},t.prototype.lift=function(e){var t=new h(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,r=t.length,n=t.slice(),i=0;i])/g,m=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,_=/\s{2,}/g,w=/([^\(])(:+) */g,E=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,T=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,C="-webkit-",I="-moz-",N="-ms-",B=59,R=125,P=123,j=40,H=41,M=91,D=93,U=10,L=13,F=9,z=64,G=32,q=38,V=45,W=95,$=42,K=44,Y=58,X=39,Q=34,J=47,Z=62,ee=43,te=126,re=0,ne=12,ie=11,oe=107,ae=109,se=115,ue=112,ce=111,le=105,fe=99,he=100,pe=112,de=1,ve=1,ge=0,ye=1,me=1,be=1,_e=0,we=0,Ee=0,Se=[],xe=[],Te=0,Ae=null,ke=-2,Oe=-1,Ce=0,Ie=1,Ne=2,Be=3,Re=0,Pe=1,je="",He="",Me="";function De(e,t,i,o,a){for(var s,u,l=0,f=0,h=0,p=0,y=0,m=0,b=0,_=0,E=0,x=0,T=0,A=0,k=0,O=0,W=0,_e=0,xe=0,Ae=0,ke=0,Oe=i.length,Le=Oe-1,We="",$e="",Ke="",Ye="",Xe="",Qe="";W0&&($e=$e.replace(n,"")),$e.trim().length>0)){switch(b){case G:case F:case B:case L:case U:break;default:$e+=i.charAt(W)}b=B}if(1===xe)switch(b){case P:case R:case B:case Q:case X:case j:case H:case K:xe=0;case F:case L:case U:case G:break;default:for(xe=0,ke=W,y=b,W--,b=B;ke0&&(++W,b=y);case P:ke=Oe}}switch(b){case P:for($e=$e.trim(),y=$e.charCodeAt(0),T=1,ke=++W;W0&&($e=$e.replace(n,"")),m=$e.charCodeAt(1)){case he:case ae:case se:case V:s=t;break;default:s=Se}if(Ke=De(t,s,Ke,m,a+1),ke=Ke.length,Ee>0&&0===ke&&(ke=$e.length),Te>0&&(s=Ue(Se,$e,Ae),u=qe(Be,Ke,s,t,ve,de,ke,m,a,o),$e=s.join(""),void 0!==u&&0===(ke=(Ke=u.trim()).length)&&(m=0,Ke="")),ke>0)switch(m){case se:$e=$e.replace(S,Ge);case he:case ae:case V:Ke=$e+"{"+Ke+"}";break;case oe:$e=$e.replace(d,"$1 $2"+(Pe>0?je:"")),Ke=$e+"{"+Ke+"}",Ke=1===me||2===me&&ze("@"+Ke,3)?"@"+C+Ke+"@"+Ke:"@"+Ke;break;default:Ke=$e+Ke,o===pe&&(Ye+=Ke,Ke="")}else Ke="";break;default:Ke=De(t,Ue(t,$e,Ae),Ke,o,a+1)}Xe+=Ke,A=0,xe=0,O=0,_e=0,Ae=0,k=0,$e="",Ke="",b=i.charCodeAt(++W);break;case R:case B:if($e=(_e>0?$e.replace(n,""):$e).trim(),(ke=$e.length)>1)switch(0===O&&((y=$e.charCodeAt(0))===V||y>96&&y<123)&&(ke=($e=$e.replace(" ",":")).length),Te>0&&void 0!==(u=qe(Ie,$e,t,e,ve,de,Ye.length,o,a,o))&&0===(ke=($e=u.trim()).length)&&($e="\0\0"),y=$e.charCodeAt(0),m=$e.charCodeAt(1),y){case re:break;case z:if(m===le||m===fe){Qe+=$e+i.charAt(W);break}default:if($e.charCodeAt(ke-1)===Y)break;Ye+=Fe($e,y,m,$e.charCodeAt(2))}A=0,xe=0,O=0,_e=0,Ae=0,$e="",b=i.charCodeAt(++W)}}switch(b){case L:case U:if(f+p+h+l+we===0)switch(x){case H:case X:case Q:case z:case te:case Z:case $:case ee:case J:case V:case Y:case K:case B:case P:case R:break;default:O>0&&(xe=1)}f===J?f=0:ye+A===0&&o!==oe&&$e.length>0&&(_e=1,$e+="\0"),Te*Re>0&&qe(Ce,$e,t,e,ve,de,Ye.length,o,a,o),de=1,ve++;break;case B:case R:if(f+p+h+l===0){de++;break}default:switch(de++,We=i.charAt(W),b){case F:case G:if(p+l+f===0)switch(_){case K:case Y:case F:case G:We="";break;default:b!==G&&(We=" ")}break;case re:We="\\0";break;case ne:We="\\f";break;case ie:We="\\v";break;case q:p+f+l===0&&ye>0&&(Ae=1,_e=1,We="\f"+We);break;case 108:if(p+f+l+ge===0&&O>0)switch(W-O){case 2:_===ue&&i.charCodeAt(W-3)===Y&&(ge=_);case 8:E===ce&&(ge=E)}break;case Y:p+f+l===0&&(O=W);break;case K:f+h+p+l===0&&(_e=1,We+="\r");break;case Q:case X:0===f&&(p=p===b?0:0===p?b:p);break;case M:p+f+h===0&&l++;break;case D:p+f+h===0&&l--;break;case H:p+f+l===0&&h--;break;case j:if(p+f+l===0){if(0===A)switch(2*_+3*E){case 533:break;default:T=0,A=1}h++}break;case z:f+h+p+l+O+k===0&&(k=1);break;case $:case J:if(p+l+h>0)break;switch(f){case 0:switch(2*b+3*i.charCodeAt(W+1)){case 235:f=J;break;case 220:ke=W,f=$}break;case $:b===J&&_===$&&ke+2!==W&&(33===i.charCodeAt(ke+2)&&(Ye+=i.substring(ke,W+1)),We="",f=0)}}if(0===f){if(ye+p+l+k===0&&o!==oe&&b!==B)switch(b){case K:case te:case Z:case ee:case H:case j:if(0===A){switch(_){case F:case G:case U:case L:We+="\0";break;default:We="\0"+We+(b===K?"":"\0")}_e=1}else switch(b){case j:O+7===W&&108===_&&(O=0),A=++T;break;case H:0==(A=--T)&&(_e=1,We+="\0")}break;case F:case G:switch(_){case re:case P:case R:case B:case K:case ne:case F:case G:case U:case L:break;default:0===A&&(_e=1,We+="\0")}}$e+=We,b!==G&&b!==F&&(x=b)}}E=_,_=b,W++}if(ke=Ye.length,Ee>0&&0===ke&&0===Xe.length&&0===t[0].length==0&&(o!==ae||1===t.length&&(ye>0?He:Me)===t[0])&&(ke=t.join(",").length+2),ke>0){if(s=0===ye&&o!==oe?function(e){for(var t,r,i=0,o=e.length,a=Array(o);i1)){if(h=u.charCodeAt(u.length-1),p=r.charCodeAt(0),t="",0!==l)switch(h){case $:case te:case Z:case ee:case G:case j:break;default:t=" "}switch(p){case q:r=t+He;case te:case Z:case ee:case G:case H:case j:break;case M:r=t+r+He;break;case Y:switch(2*r.charCodeAt(1)+3*r.charCodeAt(2)){case 530:if(be>0){r=t+r.substring(8,f-1);break}default:(l<1||s[l-1].length<1)&&(r=t+He+r)}break;case K:t="";default:r=f>1&&r.indexOf(":")>0?t+r.replace(w,"$1"+He+"$2"):t+r+He}u+=r}a[i]=u.replace(n,"").trim()}return a}(t):t,Te>0&&void 0!==(u=qe(Ne,Ye,s,e,ve,de,ke,o,a,o))&&0===(Ye=u).length)return Qe+Ye+Xe;if(Ye=s.join(",")+"{"+Ye+"}",me*ge!=0){switch(2!==me||ze(Ye,2)||(ge=0),ge){case ce:Ye=Ye.replace(g,":"+I+"$1")+Ye;break;case ue:Ye=Ye.replace(v,"::"+C+"input-$1")+Ye.replace(v,"::"+I+"$1")+Ye.replace(v,":"+N+"input-$1")+Ye}ge=0}}return Qe+Ye+Xe}function Ue(e,t,r){var n=t.trim().split(l),i=n,o=n.length,a=e.length;switch(a){case 0:case 1:for(var s=0,u=0===a?"":e[0]+" ";s0&&ye>0)return i.replace(h,"$1").replace(f,"$1"+Me);break;default:return e.trim()+i.replace(f,"$1"+e.trim())}default:if(r*ye>0&&i.indexOf("\f")>0)return i.replace(f,(e.charCodeAt(0)===Y?"":"$1")+e.trim())}return e+i}function Fe(e,t,r,n){var c,l=0,f=e+";",h=2*t+3*r+4*n;if(944===h)return function(e){var t=e.length,r=e.indexOf(":",9)+1,n=e.substring(0,r).trim(),i=e.substring(r,t-1).trim();switch(e.charCodeAt(9)*Pe){case 0:break;case V:if(110!==e.charCodeAt(10))break;default:for(var o=i.split((i="",s)),a=0,r=0,t=o.length;az&&f<90||f>96&&f<123||f===W||f===V&&c.charCodeAt(1)!==V))switch(isNaN(parseFloat(c))+(-1!==c.indexOf("("))){case 1:switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=je}}l[r++]=c}i+=(0===a?"":",")+l.join(" ")}}return i=n+i+";",1===me||2===me&&ze(i,1)?C+i+i:i}(f);if(0===me||2===me&&!ze(f,1))return f;switch(h){case 1015:return 97===f.charCodeAt(10)?C+f+f:f;case 951:return 116===f.charCodeAt(3)?C+f+f:f;case 963:return 110===f.charCodeAt(5)?C+f+f:f;case 1009:if(100!==f.charCodeAt(4))break;case 969:case 942:return C+f+f;case 978:return C+f+I+f+f;case 1019:case 983:return C+f+I+f+N+f+f;case 883:return f.charCodeAt(8)===V?C+f+f:f.indexOf("image-set(",11)>0?f.replace(O,"$1"+C+"$2")+f:f;case 932:if(f.charCodeAt(4)===V)switch(f.charCodeAt(5)){case 103:return C+"box-"+f.replace("-grow","")+C+f+N+f.replace("grow","positive")+f;case 115:return C+f+N+f.replace("shrink","negative")+f;case 98:return C+f+N+f.replace("basis","preferred-size")+f}return C+f+N+f+f;case 964:return C+f+N+"flex-"+f+f;case 1023:if(99!==f.charCodeAt(8))break;return c=f.substring(f.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),C+"box-pack"+c+C+f+N+"flex-pack"+c+f;case 1005:return o.test(f)?f.replace(i,":"+C)+f.replace(i,":"+I)+f:f;case 1e3:switch(c=f.substring(13).trim(),l=c.indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(l)){case 226:c=f.replace(E,"tb");break;case 232:c=f.replace(E,"tb-rl");break;case 220:c=f.replace(E,"lr");break;default:return f}return C+f+N+c+f;case 1017:if(-1===f.indexOf("sticky",9))return f;case 975:switch(l=(f=e).length-10,c=(33===f.charCodeAt(l)?f.substring(0,l):f).substring(e.indexOf(":",7)+1).trim(),h=c.charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(c.charCodeAt(8)<111)break;case 115:f=f.replace(c,C+c)+";"+f;break;case 207:case 102:f=f.replace(c,C+(h>102?"inline-":"")+"box")+";"+f.replace(c,C+c)+";"+f.replace(c,N+c+"box")+";"+f}return f+";";case 938:if(f.charCodeAt(5)===V)switch(f.charCodeAt(6)){case 105:return c=f.replace("-items",""),C+f+C+"box-"+c+N+"flex-"+c+f;case 115:return C+f+N+"flex-item-"+f.replace(T,"")+f;default:return C+f+N+"flex-line-pack"+f.replace("align-content","").replace(T,"")+f}break;case 973:case 989:if(f.charCodeAt(3)!==V||122===f.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?Fe(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):f.replace(c,C+c)+f.replace(c,I+c.replace("fill-",""))+f;break;case 962:if(f=C+f+(102===f.charCodeAt(5)?N+f:"")+f,r+n===211&&105===f.charCodeAt(13)&&f.indexOf("transform",10)>0)return f.substring(0,f.indexOf(";",27)+1).replace(a,"$1"+C+"$2")+f}return f}function ze(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10),i=e.substring(r+1,e.length-1);return Ae(2!==t?n:n.replace(A,"$1"),i,t)}function Ge(e,t){var r=Fe(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(x," or ($1)").substring(4):"("+t+")"}function qe(e,t,r,n,i,o,a,s,u,c){for(var l,f=0,h=t;f0&&(je=i.replace(p,o===M?"":"-")),o=1,1===ye?Me=i:He=i;var a,s=[Me];Te>0&&void 0!==(a=qe(Oe,r,s,s,ve,de,0,0,0,0))&&"string"==typeof a&&(r=a);var u=De(Se,s,r,0,0);return Te>0&&void 0!==(a=qe(ke,u,s,s,ve,de,u.length,0,0,0))&&"string"!=typeof(u=a)&&(o=0),je="",Me="",He="",ge=0,ve=1,de=1,_e*o==0?u:function(e){return e.replace(n,"").replace(y,"").replace(m,"$1").replace(b,"$1").replace(_," ")}(u)}return $e.use=function e(t){switch(t){case void 0:case null:Te=xe.length=0;break;default:switch(t.constructor){case Array:for(var r=0,n=t.length;r * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */var n=r(298);function i(e){return!0===n(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,r;return!1!==i(e)&&("function"==typeof(t=e.constructor)&&(!1!==i(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))}},function(e,t,r){"use strict";(function(e,n){var i,o=r(127);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var a=Object(o.a)(i);t.a=a}).call(this,r(6),r(110)(e))},function(e,t,r){"use strict";r.r(t);var n=r(24),i=r.n(n),o=r(45);var a={toAddress:e=>e.substr(0,o.IOTA_API.ADDRESS_LENGTH),utils:i.a},s=r(119),u=r(1),c=r.n(u),l=r(67),f=r.n(l),h=r(118),d=r.n(h),p=r(44),v=r.n(p),g=r(29),y=r.n(g),m=r(42),b=r.n(m),_=r(117),w=r.n(_),E=r(116),S=r.n(E);const x="Treasure: ".split("").map(e=>e.charCodeAt(e).toString(16)).join(""),T=e=>{const t=f.a.getBytesSync(e),r=c.a.binary.raw.decode(t);return c.a.binary.base58.encode(r).substr(0,e)},A=e=>Object(s.sha3_256)(c.a.binary.hex.decode(e)),k=(e,t,r)=>{let n=c.a.hexToBytes(r.substring(0,24));const i=y.a.createDecipher("AES-GCM",c.a.hexToBytes(e));return i.start({iv:n,output:null,tag:c.a.hexToBytes(t.substring(t.length-32,t.length))}),i.update(c.a.createBuffer(c.a.hexToBytes(t.substring(0,t.length-32)))),!!i.finish()&&i.output.toHex()},O=e=>{return[d.a.sha384.create().update(e).digest().bytes(),v.a.create().update(e).digest().bytes()]};var C={hashChain:O,genesisHash:e=>{const t=e.substr(8,64),r=c.a.hexToBytes(t),[n,i]=O(r);return c.a.bytesToHex(i)},decryptChunk:(e,t)=>{if(e.read=0,t.length<=IV_LENGTH+32)return"";const r=t.substr(-IV_LENGTH),n=t.substr(-32-IV_LENGTH,32),i=y.a.createDecipher("AES-GCM",e);return i.start({iv:r,tag:n,tagLength:256,additionalData:"binary-encoded string"}),i.update(c.a.createBuffer(t.substring(0,t.length-32-IV_LENGTH))),i.finish()?i.output.bytes():""},encryptChunk:(e,t,r)=>{e.read=0;const n=getNonce(e,t),i=i.createCipher("AES-GCM",e);return i.start({iv:n,tagLength:256,additionalData:"binary-encoded string"}),i.update(c.a.createBuffer(r)),i.finish(),i.output.bytes()+i.mode.tag.bytes()+n},getPrimordialHash:()=>{const e=f.a.getBytesSync(16);return v.a.create().update(e).digest().toHex()},obfuscate:e=>{const t=c.a.hexToBytes(e),[r,n]=O(t);return c.a.bytesToHex(r)},getSalt:T,parseEightCharsOfFilename:e=>(e=e.replace(/[^\w-]/,""),e=(e+=T(8)).substr(0,8)),sideChain:A,sideChainGenerate:e=>{return Array.from(Array(1e3),(e,t)=>t).reduce((e,t)=>{const r=e[t],n=A(r);return[...e,n]},[A(e)])},decryptTreasure:(e,t,r)=>{const n=c.a.bytesToHex(b.a.fromTrytes(t.substring(0,96+x.length))),i=k(e,n,r);return!!w()(i,x)&&S()(i,x,"")},decrypt:k,encrypt:(e,t,r)=>{let n=c.a.hexToBytes(r.substring(0,24));const i=y.a.createCipher("AES-GCM",c.a.hexToBytes(e));i.start({iv:n,output:null}),i.update(c.a.createBuffer(c.a.hexToBytes(t))),i.finish();const o=i.output,a=i.mode.tag;return o.toHex()+a.toHex()}};const{genesisHash:I,decryptChunk:N,encryptChunk:R,getPrimordialHash:B,getSalt:P,obfuscate:j,parseEightCharsOfFilename:H,sideChain:M,sideChainGenerate:D,decryptTreasure:U,hashChain:L}=C;var F={generate:(e,t,r={})=>{let n=1;r.includeTreasureOffsets&&(n+=Math.ceil(t/(o.FILE.CHUNKS_PER_SECTOR-1)));const i=Array.from(Array(t+n),(e,t)=>t),[s]=i.reduce(([e,t],r)=>{const[n,i]=C.hashChain(t);return e[r]=a.toAddress(a.utils.toTrytes(n)),[e,i]},[{},c.a.hexToBytes(e)]);return s},genesisHash:I,rawGenerate:(e,t)=>{const r=Array.from(Array(t),(e,t)=>t+1),[n,i]=r.reduce(([e,t],r)=>{const[n,i]=C.hashChain(t);return e[r]=i,[e,i]},[{},c.a.hexToBytes(e)]);return n[0]=e,n},decryptChunk:N,encryptChunk:R,getPrimordialHash:B,getSalt:P,obfuscate:j,parseEightCharsOfFilename:H,sideChain:M,sideChainGenerate:D,decryptTreasure:U,hashChain:L};t.default=F},function(e,t,r){var n=r(75);e.exports=function(e){return null==e?"":n(e)}},function(e,t,r){var n=r(137),i=r(134),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&n(e)==o}},function(e,t,r){var n=r(47),i=r(139),o=r(138),a=r(74),s=1/0,u=n?n.prototype:void 0,c=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return c?c.call(t):"";var r=t+"";return"0"==r&&1/t==-s?"-0":r}},function(e,t,r){var n=r(12);e.exports=n.md=n.md||{},n.md.algorithms=n.md.algorithms||{}},function(e,t,r){"use strict";(function(e){ + */var n=r(286);function i(e){return!0===n(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,r;return!1!==i(e)&&("function"==typeof(t=e.constructor)&&(!1!==i(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))}},function(e,t,r){"use strict";(function(e,n){var i,o=r(134);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var a=Object(o.a)(i);t.a=a}).call(this,r(11),r(69)(e))},function(e,t,r){var n=r(82);e.exports=function(e){return null==e?"":n(e)}},function(e,t,r){var n=r(146),i=r(143),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&n(e)==o}},function(e,t,r){var n=r(52),i=r(148),o=r(147),a=r(81),s=1/0,u=n?n.prototype:void 0,c=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return c?c.call(t):"";var r=t+"";return"0"==r&&1/t==-s?"-0":r}},function(e,t,r){var n=r(17);e.exports=n.md=n.md||{},n.md.algorithms=n.md.algorithms||{}},function(e,t,r){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var n=r(151),i=r(150),o=r(149);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.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 r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(n)return L(e).length;t=(""+t).toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;os&&(r=s-u),o=r;o>=0;o--){for(var f=!0,h=0;hi&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function T(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,r);case"utf8":case"utf-8":return T(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),c=this.slice(n,i),l=e.slice(t,r),f=0;fi)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return m(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":return _(this,e,t,r);case"latin1":case"binary":return w(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function k(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function B(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function P(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function j(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function H(e,t,r,n,o){return o||j(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function M(e,t,r,n,o){return o||j(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||N(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||N(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||R(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);R(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);R(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return H(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return H(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return M(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return M(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(6))},function(e,t,r){const n=r(31);function i(e){this.truthTable=new Int8Array([1,0,-1,2,1,-1,0,2,-1,1,0]),this.HASH_LENGTH=n.HASH_LENGTH,this.initialize(e),this.reset()}i.prototype.initialize=function(e,t){this.state=e||new Int8Array(n.STATE_LENGTH)},i.prototype.reset=function(){this.state.fill(0)},i.prototype.absorb=function(e,t,r){do{for(var i=0,o=r0)},i.prototype.squeeze=function(e,t,r){do{for(var i=0,o=r0)},i.prototype.transform=function(){for(var e=[],t=0,r=0;r255)return null;var i=n%27;t+="9ABCDEFGHIJKLMNOPQRSTUVWXYZ"[i]+"9ABCDEFGHIJKLMNOPQRSTUVWXYZ"[(n-i)/27]}return t},fromTrytes:function(e){if("string"!=typeof e)return null;if(e.length%2)return null;for(var t="",r=0;r0;){var s=new n;s.initialize(),s.absorb(r,0,r.length),s.squeeze(r,0,n.HASH_LENGTH)}i.absorb(r,0,r.length)}return i.squeeze(r,0,n.HASH_LENGTH),r};e.exports={key:function(e,t,r){for(;e.length%243!=0;)e.push(0);var o=i.fromValue(t),s=a(e.slice(),o),u=new n;u.initialize(),u.absorb(s,0,s.length),u.squeeze(s,0,s.length),u.initialize(),u.absorb(s,0,s.length);for(var c=[],l=0,f=[];r-- >0;)for(var h=0;h<27;h++){u.squeeze(f,0,s.length);for(var d=0;d<243;d++)c[l++]=f[d]}return c},digests:function(e){for(var t=[],r=[],i=0;i>>1|Q<<31)^(X>>>8|Q<<24)^X>>>7,Z=(Q>>>1|X<<31)^(Q>>>8|X<<24)^(Q>>>7|X<<25),ee=c[V-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=c[V-7],ae=oe.high,se=oe.low,ue=c[V-16],ce=ue.high,le=ue.low;$=($=($=J+ae+((K=Z+se)>>>0>>0?1:0))+ne+((K+=ie)>>>0>>0?1:0))+ce+((K+=le)>>>0>>0?1:0),q.high=$,q.low=K}var fe,he=M&U^~M&F,de=D&L^~D&z,pe=C&N^C&B^N&B,ve=I&R^I&P^R&P,ge=(C>>>28|I<<4)^(C<<30|I>>>2)^(C<<25|I>>>7),ye=(I>>>28|C<<4)^(I<<30|C>>>2)^(I<<25|C>>>7),me=(M>>>14|D<<18)^(M>>>18|D<<14)^(M<<23|D>>>9),be=(D>>>14|M<<18)^(D>>>18|M<<14)^(D<<23|M>>>9),_e=u[V],we=_e.high,Ee=_e.low,Se=G+me+((fe=W+be)>>>0>>0?1:0),xe=ye+ve;G=F,W=z,F=U,z=L,U=M,L=D,M=j+(Se=(Se=(Se=Se+he+((fe+=de)>>>0>>0?1:0))+we+((fe+=Ee)>>>0>>0?1:0))+$+((fe+=K)>>>0>>0?1:0))+((D=H+fe|0)>>>0>>0?1:0)|0,j=B,H=P,B=N,P=R,N=C,R=I,C=Se+(ge+pe+(xe>>>0>>0?1:0))+((I=fe+xe|0)>>>0>>0?1:0)|0}p=n.low=p+I,n.high=d+C+(p>>>0>>0?1:0),g=i.low=g+R,i.high=v+N+(g>>>0>>0?1:0),m=o.low=m+P,o.high=y+B+(m>>>0

>>0?1:0),_=a.low=_+H,a.high=b+j+(_>>>0>>0?1:0),E=s.low=E+D,s.high=w+M+(E>>>0>>0?1:0),x=l.low=x+L,l.high=S+U+(x>>>0>>0?1:0),A=f.low=A+z,f.high=T+F+(A>>>0>>0?1:0),O=h.low=O+W,h.high=k+G+(O>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=r._createHelper(l),t.HmacSHA512=r._createHmacHelper(l)}(),e.SHA512}(r(0),r(38))},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[],u=[];!function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)e(n)&&(i<8&&(s[i]=r(t.pow(n,.5))),u[i]=r(t.pow(n,1/3)),i++),n++}();var c=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],f=r[6],h=r[7],d=0;d<64;d++){if(d<16)c[d]=0|e[t+d];else{var p=c[d-15],v=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=c[d-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[d]=v+c[d-7]+y+c[d-16]}var m=n&i^n&o^i&o,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+u[d]+c[d];h=f,f=l,l=s,s=a+_|0,a=o,o=i,i=n,n=_+(b+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(l),r.HmacSHA256=o._createHmacHelper(l)}(Math),e.SHA256}(r(0))},function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(212),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(6))},function(e,t,r){(function(e,r,n,i){!function(e,r){r(t)}(0,function(t){"use strict";function o(e,t){t|=0;for(var r=Math.max(e.length-t,0),n=Array(r),i=0;i-1&&e%1==0&&e<=D}function L(e){return null!=e&&U(e.length)&&!function(e){if(!u(e))return!1;var t=B(e);return t==j||t==H||t==P||t==M}(e)}var F={};function z(){}function G(e){return function(){if(null!==e){var t=e;e=null,t.apply(this,arguments)}}}var W="function"==typeof Symbol&&Symbol.iterator,V=function(e){return W&&e[W]&&e[W]()};function q(e){return null!=e&&"object"==typeof e}var $="[object Arguments]";function K(e){return q(e)&&B(e)==$}var Y=Object.prototype,X=Y.hasOwnProperty,Q=Y.propertyIsEnumerable,J=K(function(){return arguments}())?K:function(e){return q(e)&&X.call(e,"callee")&&!Q.call(e,"callee")},Z=Array.isArray;var ee="object"==typeof t&&t&&!t.nodeType&&t,te=ee&&"object"==typeof i&&i&&!i.nodeType&&i,re=te&&te.exports===ee?S.Buffer:void 0,ne=(re?re.isBuffer:void 0)||function(){return!1},ie=9007199254740991,oe=/^(?:0|[1-9]\d*)$/;function ae(e,t){var r=typeof e;return!!(t=null==t?ie:t)&&("number"==r||"symbol"!=r&&oe.test(e))&&e>-1&&e%1==0&&e2&&(n=o(arguments,1)),t){var c={};Ue(i,function(e,t){c[t]=e}),c[e]=n,s=!0,u=Object.create(null),r(t,c)}else i[e]=n,function(e){Me(u[e]||[],function(e){e()}),d()}(e)});a++;var c=b(t[t.length-1]);t.length>1?c(i,n):c(n)}(e,t)})}function d(){if(0===c.length&&0===a)return r(null,i);for(;c.length&&a=0&&r.push(n)}),r}Ue(e,function(t,r){if(!Z(t))return h(r,[t]),void l.push(r);var n=t.slice(0,t.length-1),i=n.length;if(0===i)return h(r,t),void l.push(r);f[r]=i,Me(n,function(o){if(!e[o])throw new Error("async.auto task `"+r+"` has a non-existent dependency `"+o+"` in "+n.join(", "));!function(e,t){var r=u[e];r||(r=u[e]=[]);r.push(t)}(o,function(){0===--i&&h(r,t)})})}),function(){var e,t=0;for(;l.length;)e=l.pop(),t++,Me(p(e),function(e){0==--f[e]&&l.push(e)});if(t!==n)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),d()};function Ge(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r=n?e:function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n-1;);return r}(n,i),function(e,t){for(var r=e.length;r--&&Fe(t,e[r],0)>-1;);return r}(n,i)+1).join("")}var lt=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,ft=/,/,ht=/(=.+)?(\s*)$/,dt=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function pt(e,t){var r={};Ue(e,function(e,t){var n,i=m(e),o=!i&&1===e.length||i&&0===e.length;if(Z(e))n=e.slice(0,-1),e=e[e.length-1],r[t]=n.concat(n.length>0?a:e);else if(o)r[t]=e;else{if(n=function(e){return e=(e=(e=(e=e.toString().replace(dt,"")).match(lt)[2].replace(" ",""))?e.split(ft):[]).map(function(e){return ct(e.replace(ht,""))})}(e),0===e.length&&!i&&0===n.length)throw new Error("autoInject task functions require explicit parameters.");i||n.pop(),r[t]=n.concat(a)}function a(t,r){var i=Ge(n,function(e){return t[e]});i.push(r),b(e).apply(null,i)}}),ze(r,t)}function vt(){this.head=this.tail=null,this.length=0}function gt(e,t){e.length=1,e.head=e.tail=t}function yt(e,t,r){if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var n=b(e),i=0,o=[],a=!1;function s(e,t,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");if(l.started=!0,Z(e)||(e=[e]),0===e.length&&l.idle())return d(function(){l.drain()});for(var n=0,i=e.length;n0&&o.splice(s,1),a.callback.apply(a,arguments),null!=t&&l.error(t,a.data)}i<=l.concurrency-l.buffer&&l.unsaturated(),l.idle()&&l.drain(),l.process()}}var c=!1,l={_tasks:new vt,concurrency:t,payload:r,saturated:z,unsaturated:z,buffer:t/4,empty:z,drain:z,error:z,started:!1,paused:!1,push:function(e,t){s(e,!1,t)},kill:function(){l.drain=z,l._tasks.empty()},unshift:function(e,t){s(e,!0,t)},remove:function(e){l._tasks.remove(e)},process:function(){if(!c){for(c=!0;!l.paused&&i2&&(i=o(arguments,1)),n[t]=i,r(e)})},function(e){r(e,n)})}function pr(e,t){dr(Oe,e,t)}function vr(e,t,r){dr(Se(t),e,r)}var gr=function(e,t){var r=b(e);return yt(function(e,t){r(e[0],t)},t,1)},yr=function(e,t){var r=gr(e,t);return r.push=function(e,t,n){if(null==n&&(n=z),"function"!=typeof n)throw new Error("task callback must be a function");if(r.started=!0,Z(e)||(e=[e]),0===e.length)return d(function(){r.drain()});t=t||0;for(var i=r._tasks.head;i&&t>=i.priority;)i=i.next;for(var o=0,a=e.length;on?1:0}Ne(e,function(e,t){n(e,function(r,n){if(r)return t(r);t(null,{value:e,criteria:n})})},function(e,t){if(e)return r(e);r(null,Ge(t.sort(i),Yt("value")))})}function Pr(e,t,r){var n=b(e);return s(function(i,o){var a,s=!1;i.push(function(){s||(o.apply(null,arguments),clearTimeout(a))}),a=setTimeout(function(){var t=e.name||"anonymous",n=new Error('Callback function "'+t+'" timed out.');n.code="ETIMEDOUT",r&&(n.info=r),s=!0,o(n)},t),n.apply(null,i)})}var jr=Math.ceil,Hr=Math.max;function Mr(e,t,r,n){var i=b(r);Pe(function(e,t,r,n){for(var i=-1,o=Hr(jr((t-e)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=e,e+=r;return a}(0,e,1),t,i,n)}var Dr=Te(Mr,1/0),Ur=Te(Mr,1);function Lr(e,t,r,n){arguments.length<=3&&(n=r,r=t,t=Z(e)?[]:{}),n=G(n||z);var i=b(r);Oe(e,function(e,r,n){i(t,e,r,n)},function(e){n(e,t)})}function Fr(e,t){var r,n=null;t=t||z,Gt(e,function(e,t){b(e)(function(e,i){r=arguments.length>2?o(arguments,1):i,n=e,t(!e)})},function(){t(n,r)})}function zr(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function Gr(e,t,r){r=Ee(r||z);var n=b(t);if(!e())return r(null);var i=function(t){if(t)return r(t);if(e())return n(i);var a=o(arguments,1);r.apply(null,[null].concat(a))};n(i)}function Wr(e,t,r){Gr(function(){return!e.apply(this,arguments)},t,r)}var Vr=function(e,t){if(t=G(t||z),!Z(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var r=0;function n(t){var n=b(e[r++]);t.push(Ee(i)),n.apply(null,t)}function i(i){if(i||r===e.length)return t.apply(null,arguments);n(o(arguments,1))}n([])},qr={apply:a,applyEach:Re,applyEachSeries:He,asyncify:p,auto:ze,autoInject:pt,cargo:mt,compose:Et,concat:Tt,concatLimit:xt,concatSeries:At,constant:kt,detect:Nt,detectLimit:Rt,detectSeries:Bt,dir:jt,doDuring:Ht,doUntil:Dt,doWhilst:Mt,during:Ut,each:Ft,eachLimit:zt,eachOf:Oe,eachOfLimit:xe,eachOfSeries:bt,eachSeries:Gt,ensureAsync:Wt,every:qt,everyLimit:$t,everySeries:Kt,filter:Zt,filterLimit:er,filterSeries:tr,forever:rr,groupBy:ir,groupByLimit:nr,groupBySeries:or,log:ar,map:Ne,mapLimit:Pe,mapSeries:je,mapValues:ur,mapValuesLimit:sr,mapValuesSeries:cr,memoize:fr,nextTick:hr,parallel:pr,parallelLimit:vr,priorityQueue:yr,queue:gr,race:mr,reduce:_t,reduceRight:br,reflect:_r,reflectAll:wr,reject:Sr,rejectLimit:xr,rejectSeries:Tr,retry:kr,retryable:Or,seq:wt,series:Cr,setImmediate:d,some:Ir,someLimit:Nr,someSeries:Rr,sortBy:Br,timeout:Pr,times:Dr,timesLimit:Mr,timesSeries:Ur,transform:Lr,tryEach:Fr,unmemoize:zr,until:Wr,waterfall:Vr,whilst:Gr,all:qt,allLimit:$t,allSeries:Kt,any:Ir,anyLimit:Nr,anySeries:Rr,find:Nt,findLimit:Rt,findSeries:Bt,forEach:Ft,forEachSeries:Gt,forEachLimit:zt,forEachOf:Oe,forEachOfSeries:bt,forEachOfLimit:xe,inject:_t,foldl:_t,foldr:br,select:Zt,selectLimit:er,selectSeries:tr,wrapSync:p};t.default=qr,t.apply=a,t.applyEach=Re,t.applyEachSeries=He,t.asyncify=p,t.auto=ze,t.autoInject=pt,t.cargo=mt,t.compose=Et,t.concat=Tt,t.concatLimit=xt,t.concatSeries=At,t.constant=kt,t.detect=Nt,t.detectLimit=Rt,t.detectSeries=Bt,t.dir=jt,t.doDuring=Ht,t.doUntil=Dt,t.doWhilst=Mt,t.during=Ut,t.each=Ft,t.eachLimit=zt,t.eachOf=Oe,t.eachOfLimit=xe,t.eachOfSeries=bt,t.eachSeries=Gt,t.ensureAsync=Wt,t.every=qt,t.everyLimit=$t,t.everySeries=Kt,t.filter=Zt,t.filterLimit=er,t.filterSeries=tr,t.forever=rr,t.groupBy=ir,t.groupByLimit=nr,t.groupBySeries=or,t.log=ar,t.map=Ne,t.mapLimit=Pe,t.mapSeries=je,t.mapValues=ur,t.mapValuesLimit=sr,t.mapValuesSeries=cr,t.memoize=fr,t.nextTick=hr,t.parallel=pr,t.parallelLimit=vr,t.priorityQueue=yr,t.queue=gr,t.race=mr,t.reduce=_t,t.reduceRight=br,t.reflect=_r,t.reflectAll=wr,t.reject=Sr,t.rejectLimit=xr,t.rejectSeries=Tr,t.retry=kr,t.retryable=Or,t.seq=wt,t.series=Cr,t.setImmediate=d,t.some=Ir,t.someLimit=Nr,t.someSeries=Rr,t.sortBy=Br,t.timeout=Pr,t.times=Dr,t.timesLimit=Mr,t.timesSeries=Ur,t.transform=Lr,t.tryEach=Fr,t.unmemoize=zr,t.until=Wr,t.waterfall=Vr,t.whilst=Gr,t.all=qt,t.allLimit=$t,t.allSeries=Kt,t.any=Ir,t.anyLimit=Nr,t.anySeries=Rr,t.find=Nt,t.findLimit=Rt,t.findSeries=Bt,t.forEach=Ft,t.forEachSeries=Gt,t.forEachLimit=zt,t.forEachOf=Oe,t.forEachOfSeries=bt,t.forEachOfLimit=xe,t.inject=_t,t.foldl=_t,t.foldr=br,t.select=Zt,t.selectLimit=er,t.selectSeries=tr,t.wrapSync=p,Object.defineProperty(t,"__esModule",{value:!0})})}).call(this,r(84).setImmediate,r(15),r(6),r(115)(e))},function(e,t,r){var n,i=r(85),o=r(211);function a(){if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;pretendingNotToRequire=n;return new(0,r(210)("xmlhttprequest").XMLHttpRequest)}function s(e,t){this.provider=e||"http://localhost:14265",this.token=t}s.prototype.setProvider=function(e){this.provider=e||"http://localhost:14265"},s.prototype.open=function(){var e=a();return e.open("POST",this.provider,!0),e.setRequestHeader("Content-Type","application/json"),e.setRequestHeader("X-IOTA-API-Version","1"),this.token&&e.setRequestHeader("Authorization","token "+this.token),e},s.prototype.send=function(e,t){var r=this,n=this.open();n.onreadystatechange=function(){if(4===n.readyState){var i=n.responseText;return r.prepareResult(i,e.command,t)}};try{n.send(JSON.stringify(e))}catch(e){return t(o.invalidResponse(e))}},s.prototype.batchedSend=function(e,t,r,n){var o=this,a=[];t.forEach(function(n){for(;e[n].length;){var i=e[n].splice(0,r),o={};Object.keys(e).forEach(function(r){r!==n&&-1!==t.indexOf(r)||(o[r]=r===n?i:e[r])}),a.push(o)}}),i.mapSeries(a,function(e,t){o.send(e,function(e,r){if(e)return t(e);t(null,r)})},function(r,i){if(r)return n(r);switch(e.command){case"getBalances":var o=i.reduce(function(e,t){return e.concat(t.balances)},[]);(i=i.sort(function(e,t){return e.milestoneIndex-t.milestoneIndex}).shift()).balances=o,n(null,i);break;case"findTransactions":var s=new Set;if(1===t.length)return n(null,i.reduce(function(e,t){return e.concat(t)},[]).filter(function(e){return!s.has(e.hash)&&(s.add(e.hash),!0)}));var u={bundles:"bundle",addresses:"address",hashes:"hash",tags:"tag"};n(null,i.map(function(e){return e.filter(function(e){return t.every(function(t){return a.some(function(r){return r.hasOwnProperty(t)&&-1!==r[t].findIndex(function(r){return r===e[u[t]]})})})})}).reduce(function(e,t){return e.concat(t)},[]).filter(function(e){return!s.has(e.hash)&&(s.add(e.hash),!0)}));break;default:n(null,i.reduce(function(e,t){return e.concat(t)},[]))}})},s.prototype.sandboxSend=function(e,t){var r=setInterval(function(){var n=a();n.onreadystatechange=function(){if(4===n.readyState){var e;try{e=JSON.parse(n.responseText)}catch(e){return t(o.invalidResponse(e))}if("FINISHED"===e.status){var i=e.attachToTangleResponse.trytes;return clearInterval(r),t(null,i)}if("FAILED"===e.status)return clearInterval(r),t(new Error("Sandbox transaction processing failed. Please retry."))}};try{n.open("GET",e,!0),n.send(JSON.stringify())}catch(r){return t(new Error("No connection to Sandbox, failed with job: ",e))}},5e3)},s.prototype.prepareResult=function(e,t,r){var n,i={getNeighbors:"neighbors",addNeighbors:"addedNeighbors",removeNeighbors:"removedNeighbors",getTips:"hashes",findTransactions:"hashes",getTrytes:"trytes",getInclusionStates:"states",attachToTangle:"trytes",wereAddressesSpentFrom:"states",checkConsistency:"state"};try{e=JSON.parse(e)}catch(t){n=o.invalidResponse(e),e=null}return!n&&e.error&&(n=o.requestError(e.error),e=null),!n&&e.exception&&(n=o.requestError(e.exception),e=null),e&&i.hasOwnProperty(t)&&(e="attachToTangle"===t&&e.hasOwnProperty("id")?e:e[i[t]]),r(n,e)},e.exports=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attachToTangle=t.broadcastTransactions=t.getTransactionsToApprove=t.localPow=void 0;var n=s(r(213)),i=r(7),o=s(r(176)),a=s(r(154));function s(e){return e&&e.__esModule?e:{default:e}}var u=new n.default,c=new n.default({provider:i.IOTA_API_PROVIDER});try{o.default.init()}catch(e){console.log("ERROR INITIALIZING CURL: ",e)}var l=(Math.pow(3,27)-1)/2,f=function(e){return new Promise(function(t,r){c.api.findTransactionObjects({addresses:[e]},function(e,r){var n=(r||[]).sort(function(e,t){return t.attachmentTimestamp-e.attachmentTimestamp});console.log("IOTA TRANSACTIONS: ",n),t(n)})})},h=t.localPow=function(e){var t=e.trunkTx,r=e.branchTx,n=e.mwm,i=e.trytes,a=function(e,t,r,n,i){if(!u.valid.isHash(e))return i(new Error("Invalid trunkTransaction"));if(!u.valid.isHash(t))return i(new Error("Invalid branchTransaction"));if(!u.valid.isValue(r))return i(new Error("Invalid minWeightMagnitude"));var a=[],s=void 0,c=0;!function f(){!function(n,i){var c=u.utils.transactionObject(n);if(c.attachmentTimestamp=Date.now(),c.attachmentTimestampLowerBound=0,c.attachmentTimestampUpperBound=l,s)c.trunkTransaction=s,c.branchTransaction=e;else{if(c.lastIndex!==c.currentIndex)return i(new Error("Wrong bundle order. The bundle should be ordered in descending order from currentIndex"));c.trunkTransaction=e,c.branchTransaction=t}var f=u.utils.transactionTrytes(c);o.default.pow({trytes:f,minWeight:r}).then(function(e){var t=f.substr(0,2592).concat(e),r=u.utils.transactionObject(t),n=r.hash;s=n,a.push(t),i(null)}).catch(i)}(n[c],function(e){return e?i(e):++c1,n=t.attachmentTimestamp,i=(0,a.default)(new Date,1).valueOf();return r&&i0){var s=r(n,this);~s?n.splice(s+1):n.push(this),~s?i.splice(s,1/0,o):i.push(o),~r(n,a)&&(a=t.call(this,o,a))}else n.push(a);return null==e?a instanceof Error?function(e){var t={stack:e.stack,message:e.message,name:e.name};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}(a):a:e.call(this,o,a)}}(e.exports=function(e,t,r,i){return JSON.stringify(e,n(t,i),r)}).getSerialize=n},function(e,t){var r=9007199254740991,n="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",a=Object.prototype,s=a.hasOwnProperty,u=a.toString,c=a.propertyIsEnumerable;e.exports=function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?u.call(e):"";return t==i||t==o}(e)}(e)}(e)&&s.call(e,"callee")&&(!c.call(e,"callee")||u.call(e)==n)}},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=r(59),o=r(60);t.mergeMap=function(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),function(n){return"number"==typeof t&&(r=t,t=null),n.lift(new a(e,t,r))}};var a=function(){function e(e,t,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=r}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.resultSelector,this.concurrent))},e}();t.MergeMapOperator=a;var s=function(e){function t(t,r,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY),e.call(this,t),this.project=r,this.resultSelector=n,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return n(t,e),t.prototype._next=function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.OuterSubscriber);t.MergeMapSubscriber=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=r(18),o=function(e){function t(t,r){e.call(this),this.promise=t,this.scheduler=r}return n(t,e),t.create=function(e,r){return new t(e,r)},t.prototype._subscribe=function(e){var t=this,r=this.promise,n=this.scheduler;if(null==n)this._isScalar?e.closed||(e.next(this.value),e.complete()):r.then(function(r){t.value=r,t._isScalar=!0,e.closed||(e.next(r),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){i.root.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return n.schedule(a,0,{value:this.value,subscriber:e})}else r.then(function(r){t.value=r,t._isScalar=!0,e.closed||e.add(n.schedule(a,0,{value:r,subscriber:e}))},function(t){e.closed||e.add(n.schedule(s,0,{err:t,subscriber:e}))}).then(null,function(e){i.root.setTimeout(function(){throw e})})},t}(r(5).Observable);function a(e){var t=e.value,r=e.subscriber;r.closed||(r.next(t),r.complete())}function s(e){var t=e.err,r=e.subscriber;r.closed||r.error(t)}t.PromiseObservable=o},function(e,t,r){"use strict";t.isScheduler=function(e){return e&&"function"==typeof e.schedule}},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(t,r){e.call(this),this.value=t,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return n(t,e),t.create=function(e,r){return new t(e,r)},t.dispatch=function(e){var t=e.done,r=e.value,n=e.subscriber;t?n.complete():(n.next(r),n.closed||(e.done=!0,this.schedule(e)))},t.prototype._subscribe=function(e){var r=this.value,n=this.scheduler;if(n)return n.schedule(t.dispatch,0,{done:!1,value:r,subscriber:e});e.next(r),e.closed||e.complete()},t}(r(5).Observable);t.ScalarObservable=i},function(e,t,r){"use strict";t.isPromise=function(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}},function(e,t,r){"use strict";t.isArrayLike=function(e){return e&&"number"==typeof e.length}},function(e,t,r){"use strict";t.empty={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}},function(e,t,r){"use strict";t.errorObject={e:{}}},function(e,t,r){"use strict";t.isObject=function(e){return null!=e&&"object"==typeof e}},function(e,t,r){"use strict";t.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}},function(e,t,r){"use strict";t.isFunction=function(e){return"function"==typeof e}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,r){"use strict";function n(e){return function(){return e}}var i=function(){};i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,r){"use strict";e.exports={}},function(e,t,r){"use strict";var n=function(e){};e.exports=function(e,t,r,i,o,a,s,u){if(n(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,i,o,a,s,u],f=0;(c=new Error(t.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,r){"use strict"; +var n=r(160),i=r(159),o=r(158);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(e,t){if(u.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 r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(n)return L(e).length;t=(""+t).toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;os&&(r=s-u),o=r;o>=0;o--){for(var f=!0,h=0;hi&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function T(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,r);case"utf8":case"utf-8":return T(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),c=this.slice(n,i),l=e.slice(t,r),f=0;fi)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return m(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":return _(this,e,t,r);case"latin1":case"binary":return w(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function k(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function R(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function P(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function j(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function H(e,t,r,n,o){return o||j(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function M(e,t,r,n,o){return o||j(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||N(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||N(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||B(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);B(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);B(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return H(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return H(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return M(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return M(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(11))},function(e,t,r){const n=r(37);function i(e){this.truthTable=new Int8Array([1,0,-1,2,1,-1,0,2,-1,1,0]),this.HASH_LENGTH=n.HASH_LENGTH,this.initialize(e),this.reset()}i.prototype.initialize=function(e,t){this.state=e||new Int8Array(n.STATE_LENGTH)},i.prototype.reset=function(){this.state.fill(0)},i.prototype.absorb=function(e,t,r){do{for(var i=0,o=r0)},i.prototype.squeeze=function(e,t,r){do{for(var i=0,o=r0)},i.prototype.transform=function(){for(var e=[],t=0,r=0;r255)return null;var i=n%27;t+="9ABCDEFGHIJKLMNOPQRSTUVWXYZ"[i]+"9ABCDEFGHIJKLMNOPQRSTUVWXYZ"[(n-i)/27]}return t},fromTrytes:function(e){if("string"!=typeof e)return null;if(e.length%2)return null;for(var t="",r=0;r0;){var s=new n;s.initialize(),s.absorb(r,0,r.length),s.squeeze(r,0,n.HASH_LENGTH)}i.absorb(r,0,r.length)}return i.squeeze(r,0,n.HASH_LENGTH),r};e.exports={key:function(e,t,r){for(;e.length%243!=0;)e.push(0);var o=i.fromValue(t),s=a(e.slice(),o),u=new n;u.initialize(),u.absorb(s,0,s.length),u.squeeze(s,0,s.length),u.initialize(),u.absorb(s,0,s.length);for(var c=[],l=0,f=[];r-- >0;)for(var h=0;h<27;h++){u.squeeze(f,0,s.length);for(var p=0;p<243;p++)c[l++]=f[p]}return c},digests:function(e){for(var t=[],r=[],i=0;i>>1|Q<<31)^(X>>>8|Q<<24)^X>>>7,Z=(Q>>>1|X<<31)^(Q>>>8|X<<24)^(Q>>>7|X<<25),ee=c[V-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=c[V-7],ae=oe.high,se=oe.low,ue=c[V-16],ce=ue.high,le=ue.low;$=($=($=J+ae+((K=Z+se)>>>0>>0?1:0))+ne+((K+=ie)>>>0>>0?1:0))+ce+((K+=le)>>>0>>0?1:0),W.high=$,W.low=K}var fe,he=M&U^~M&F,pe=D&L^~D&z,de=C&N^C&R^N&R,ve=I&B^I&P^B&P,ge=(C>>>28|I<<4)^(C<<30|I>>>2)^(C<<25|I>>>7),ye=(I>>>28|C<<4)^(I<<30|C>>>2)^(I<<25|C>>>7),me=(M>>>14|D<<18)^(M>>>18|D<<14)^(M<<23|D>>>9),be=(D>>>14|M<<18)^(D>>>18|M<<14)^(D<<23|M>>>9),_e=u[V],we=_e.high,Ee=_e.low,Se=G+me+((fe=q+be)>>>0>>0?1:0),xe=ye+ve;G=F,q=z,F=U,z=L,U=M,L=D,M=j+(Se=(Se=(Se=Se+he+((fe+=pe)>>>0>>0?1:0))+we+((fe+=Ee)>>>0>>0?1:0))+$+((fe+=K)>>>0>>0?1:0))+((D=H+fe|0)>>>0>>0?1:0)|0,j=R,H=P,R=N,P=B,N=C,B=I,C=Se+(ge+de+(xe>>>0>>0?1:0))+((I=fe+xe|0)>>>0>>0?1:0)|0}d=n.low=d+I,n.high=p+C+(d>>>0>>0?1:0),g=i.low=g+B,i.high=v+N+(g>>>0>>0?1:0),m=o.low=m+P,o.high=y+R+(m>>>0

>>0?1:0),_=a.low=_+H,a.high=b+j+(_>>>0>>0?1:0),E=s.low=E+D,s.high=w+M+(E>>>0>>0?1:0),x=l.low=x+L,l.high=S+U+(x>>>0>>0?1:0),A=f.low=A+z,f.high=T+F+(A>>>0>>0?1:0),O=h.low=O+q,h.high=k+G+(O>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=r._createHelper(l),t.HmacSHA512=r._createHmacHelper(l)}(),e.SHA512}(r(4),r(44))},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[],u=[];!function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)e(n)&&(i<8&&(s[i]=r(t.pow(n,.5))),u[i]=r(t.pow(n,1/3)),i++),n++}();var c=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],f=r[6],h=r[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var d=c[p-15],v=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,g=c[p-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=v+c[p-7]+y+c[p-16]}var m=n&i^n&o^i&o,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+u[p]+c[p];h=f,f=l,l=s,s=a+_|0,a=o,o=i,i=n,n=_+(b+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(l),r.HmacSHA256=o._createHmacHelper(l)}(Math),e.SHA256}(r(4))},function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(220),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(11))},function(e,t,r){(function(e,r,n,i){!function(e,r){r(t)}(0,function(t){"use strict";function o(e,t){t|=0;for(var r=Math.max(e.length-t,0),n=Array(r),i=0;i-1&&e%1==0&&e<=D}function L(e){return null!=e&&U(e.length)&&!function(e){if(!u(e))return!1;var t=R(e);return t==j||t==H||t==P||t==M}(e)}var F={};function z(){}function G(e){return function(){if(null!==e){var t=e;e=null,t.apply(this,arguments)}}}var q="function"==typeof Symbol&&Symbol.iterator,V=function(e){return q&&e[q]&&e[q]()};function W(e){return null!=e&&"object"==typeof e}var $="[object Arguments]";function K(e){return W(e)&&R(e)==$}var Y=Object.prototype,X=Y.hasOwnProperty,Q=Y.propertyIsEnumerable,J=K(function(){return arguments}())?K:function(e){return W(e)&&X.call(e,"callee")&&!Q.call(e,"callee")},Z=Array.isArray;var ee="object"==typeof t&&t&&!t.nodeType&&t,te=ee&&"object"==typeof i&&i&&!i.nodeType&&i,re=te&&te.exports===ee?S.Buffer:void 0,ne=(re?re.isBuffer:void 0)||function(){return!1},ie=9007199254740991,oe=/^(?:0|[1-9]\d*)$/;function ae(e,t){var r=typeof e;return!!(t=null==t?ie:t)&&("number"==r||"symbol"!=r&&oe.test(e))&&e>-1&&e%1==0&&e2&&(n=o(arguments,1)),t){var c={};Ue(i,function(e,t){c[t]=e}),c[e]=n,s=!0,u=Object.create(null),r(t,c)}else i[e]=n,function(e){Me(u[e]||[],function(e){e()}),p()}(e)});a++;var c=b(t[t.length-1]);t.length>1?c(i,n):c(n)}(e,t)})}function p(){if(0===c.length&&0===a)return r(null,i);for(;c.length&&a=0&&r.push(n)}),r}Ue(e,function(t,r){if(!Z(t))return h(r,[t]),void l.push(r);var n=t.slice(0,t.length-1),i=n.length;if(0===i)return h(r,t),void l.push(r);f[r]=i,Me(n,function(o){if(!e[o])throw new Error("async.auto task `"+r+"` has a non-existent dependency `"+o+"` in "+n.join(", "));!function(e,t){var r=u[e];r||(r=u[e]=[]);r.push(t)}(o,function(){0===--i&&h(r,t)})})}),function(){var e,t=0;for(;l.length;)e=l.pop(),t++,Me(d(e),function(e){0==--f[e]&&l.push(e)});if(t!==n)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),p()};function Ge(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r=n?e:function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n-1;);return r}(n,i),function(e,t){for(var r=e.length;r--&&Fe(t,e[r],0)>-1;);return r}(n,i)+1).join("")}var lt=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,ft=/,/,ht=/(=.+)?(\s*)$/,pt=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function dt(e,t){var r={};Ue(e,function(e,t){var n,i=m(e),o=!i&&1===e.length||i&&0===e.length;if(Z(e))n=e.slice(0,-1),e=e[e.length-1],r[t]=n.concat(n.length>0?a:e);else if(o)r[t]=e;else{if(n=function(e){return e=(e=(e=(e=e.toString().replace(pt,"")).match(lt)[2].replace(" ",""))?e.split(ft):[]).map(function(e){return ct(e.replace(ht,""))})}(e),0===e.length&&!i&&0===n.length)throw new Error("autoInject task functions require explicit parameters.");i||n.pop(),r[t]=n.concat(a)}function a(t,r){var i=Ge(n,function(e){return t[e]});i.push(r),b(e).apply(null,i)}}),ze(r,t)}function vt(){this.head=this.tail=null,this.length=0}function gt(e,t){e.length=1,e.head=e.tail=t}function yt(e,t,r){if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var n=b(e),i=0,o=[],a=!1;function s(e,t,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");if(l.started=!0,Z(e)||(e=[e]),0===e.length&&l.idle())return p(function(){l.drain()});for(var n=0,i=e.length;n0&&o.splice(s,1),a.callback.apply(a,arguments),null!=t&&l.error(t,a.data)}i<=l.concurrency-l.buffer&&l.unsaturated(),l.idle()&&l.drain(),l.process()}}var c=!1,l={_tasks:new vt,concurrency:t,payload:r,saturated:z,unsaturated:z,buffer:t/4,empty:z,drain:z,error:z,started:!1,paused:!1,push:function(e,t){s(e,!1,t)},kill:function(){l.drain=z,l._tasks.empty()},unshift:function(e,t){s(e,!0,t)},remove:function(e){l._tasks.remove(e)},process:function(){if(!c){for(c=!0;!l.paused&&i2&&(i=o(arguments,1)),n[t]=i,r(e)})},function(e){r(e,n)})}function dr(e,t){pr(Oe,e,t)}function vr(e,t,r){pr(Se(t),e,r)}var gr=function(e,t){var r=b(e);return yt(function(e,t){r(e[0],t)},t,1)},yr=function(e,t){var r=gr(e,t);return r.push=function(e,t,n){if(null==n&&(n=z),"function"!=typeof n)throw new Error("task callback must be a function");if(r.started=!0,Z(e)||(e=[e]),0===e.length)return p(function(){r.drain()});t=t||0;for(var i=r._tasks.head;i&&t>=i.priority;)i=i.next;for(var o=0,a=e.length;on?1:0}Ne(e,function(e,t){n(e,function(r,n){if(r)return t(r);t(null,{value:e,criteria:n})})},function(e,t){if(e)return r(e);r(null,Ge(t.sort(i),Yt("value")))})}function Pr(e,t,r){var n=b(e);return s(function(i,o){var a,s=!1;i.push(function(){s||(o.apply(null,arguments),clearTimeout(a))}),a=setTimeout(function(){var t=e.name||"anonymous",n=new Error('Callback function "'+t+'" timed out.');n.code="ETIMEDOUT",r&&(n.info=r),s=!0,o(n)},t),n.apply(null,i)})}var jr=Math.ceil,Hr=Math.max;function Mr(e,t,r,n){var i=b(r);Pe(function(e,t,r,n){for(var i=-1,o=Hr(jr((t-e)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=e,e+=r;return a}(0,e,1),t,i,n)}var Dr=Te(Mr,1/0),Ur=Te(Mr,1);function Lr(e,t,r,n){arguments.length<=3&&(n=r,r=t,t=Z(e)?[]:{}),n=G(n||z);var i=b(r);Oe(e,function(e,r,n){i(t,e,r,n)},function(e){n(e,t)})}function Fr(e,t){var r,n=null;t=t||z,Gt(e,function(e,t){b(e)(function(e,i){r=arguments.length>2?o(arguments,1):i,n=e,t(!e)})},function(){t(n,r)})}function zr(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function Gr(e,t,r){r=Ee(r||z);var n=b(t);if(!e())return r(null);var i=function(t){if(t)return r(t);if(e())return n(i);var a=o(arguments,1);r.apply(null,[null].concat(a))};n(i)}function qr(e,t,r){Gr(function(){return!e.apply(this,arguments)},t,r)}var Vr=function(e,t){if(t=G(t||z),!Z(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var r=0;function n(t){var n=b(e[r++]);t.push(Ee(i)),n.apply(null,t)}function i(i){if(i||r===e.length)return t.apply(null,arguments);n(o(arguments,1))}n([])},Wr={apply:a,applyEach:Be,applyEachSeries:He,asyncify:d,auto:ze,autoInject:dt,cargo:mt,compose:Et,concat:Tt,concatLimit:xt,concatSeries:At,constant:kt,detect:Nt,detectLimit:Bt,detectSeries:Rt,dir:jt,doDuring:Ht,doUntil:Dt,doWhilst:Mt,during:Ut,each:Ft,eachLimit:zt,eachOf:Oe,eachOfLimit:xe,eachOfSeries:bt,eachSeries:Gt,ensureAsync:qt,every:Wt,everyLimit:$t,everySeries:Kt,filter:Zt,filterLimit:er,filterSeries:tr,forever:rr,groupBy:ir,groupByLimit:nr,groupBySeries:or,log:ar,map:Ne,mapLimit:Pe,mapSeries:je,mapValues:ur,mapValuesLimit:sr,mapValuesSeries:cr,memoize:fr,nextTick:hr,parallel:dr,parallelLimit:vr,priorityQueue:yr,queue:gr,race:mr,reduce:_t,reduceRight:br,reflect:_r,reflectAll:wr,reject:Sr,rejectLimit:xr,rejectSeries:Tr,retry:kr,retryable:Or,seq:wt,series:Cr,setImmediate:p,some:Ir,someLimit:Nr,someSeries:Br,sortBy:Rr,timeout:Pr,times:Dr,timesLimit:Mr,timesSeries:Ur,transform:Lr,tryEach:Fr,unmemoize:zr,until:qr,waterfall:Vr,whilst:Gr,all:Wt,allLimit:$t,allSeries:Kt,any:Ir,anyLimit:Nr,anySeries:Br,find:Nt,findLimit:Bt,findSeries:Rt,forEach:Ft,forEachSeries:Gt,forEachLimit:zt,forEachOf:Oe,forEachOfSeries:bt,forEachOfLimit:xe,inject:_t,foldl:_t,foldr:br,select:Zt,selectLimit:er,selectSeries:tr,wrapSync:d};t.default=Wr,t.apply=a,t.applyEach=Be,t.applyEachSeries=He,t.asyncify=d,t.auto=ze,t.autoInject=dt,t.cargo=mt,t.compose=Et,t.concat=Tt,t.concatLimit=xt,t.concatSeries=At,t.constant=kt,t.detect=Nt,t.detectLimit=Bt,t.detectSeries=Rt,t.dir=jt,t.doDuring=Ht,t.doUntil=Dt,t.doWhilst=Mt,t.during=Ut,t.each=Ft,t.eachLimit=zt,t.eachOf=Oe,t.eachOfLimit=xe,t.eachOfSeries=bt,t.eachSeries=Gt,t.ensureAsync=qt,t.every=Wt,t.everyLimit=$t,t.everySeries=Kt,t.filter=Zt,t.filterLimit=er,t.filterSeries=tr,t.forever=rr,t.groupBy=ir,t.groupByLimit=nr,t.groupBySeries=or,t.log=ar,t.map=Ne,t.mapLimit=Pe,t.mapSeries=je,t.mapValues=ur,t.mapValuesLimit=sr,t.mapValuesSeries=cr,t.memoize=fr,t.nextTick=hr,t.parallel=dr,t.parallelLimit=vr,t.priorityQueue=yr,t.queue=gr,t.race=mr,t.reduce=_t,t.reduceRight=br,t.reflect=_r,t.reflectAll=wr,t.reject=Sr,t.rejectLimit=xr,t.rejectSeries=Tr,t.retry=kr,t.retryable=Or,t.seq=wt,t.series=Cr,t.setImmediate=p,t.some=Ir,t.someLimit=Nr,t.someSeries=Br,t.sortBy=Rr,t.timeout=Pr,t.times=Dr,t.timesLimit=Mr,t.timesSeries=Ur,t.transform=Lr,t.tryEach=Fr,t.unmemoize=zr,t.until=qr,t.waterfall=Vr,t.whilst=Gr,t.all=Wt,t.allLimit=$t,t.allSeries=Kt,t.any=Ir,t.anyLimit=Nr,t.anySeries=Br,t.find=Nt,t.findLimit=Bt,t.findSeries=Rt,t.forEach=Ft,t.forEachSeries=Gt,t.forEachLimit=zt,t.forEachOf=Oe,t.forEachOfSeries=bt,t.forEachOfLimit=xe,t.inject=_t,t.foldl=_t,t.foldr=br,t.select=Zt,t.selectLimit=er,t.selectSeries=tr,t.wrapSync=d,Object.defineProperty(t,"__esModule",{value:!0})})}).call(this,r(91).setImmediate,r(21),r(11),r(219)(e))},function(e,t,r){var n,i=r(92),o=r(218);function a(){if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;pretendingNotToRequire=n;return new(0,r(217)("xmlhttprequest").XMLHttpRequest)}function s(e,t){this.provider=e||"http://localhost:14265",this.token=t}s.prototype.setProvider=function(e){this.provider=e||"http://localhost:14265"},s.prototype.open=function(){var e=a();return e.open("POST",this.provider,!0),e.setRequestHeader("Content-Type","application/json"),e.setRequestHeader("X-IOTA-API-Version","1"),this.token&&e.setRequestHeader("Authorization","token "+this.token),e},s.prototype.send=function(e,t){var r=this,n=this.open();n.onreadystatechange=function(){if(4===n.readyState){var i=n.responseText;return r.prepareResult(i,e.command,t)}};try{n.send(JSON.stringify(e))}catch(e){return t(o.invalidResponse(e))}},s.prototype.batchedSend=function(e,t,r,n){var o=this,a=[];t.forEach(function(n){for(;e[n].length;){var i=e[n].splice(0,r),o={};Object.keys(e).forEach(function(r){r!==n&&-1!==t.indexOf(r)||(o[r]=r===n?i:e[r])}),a.push(o)}}),i.mapSeries(a,function(e,t){o.send(e,function(e,r){if(e)return t(e);t(null,r)})},function(r,i){if(r)return n(r);switch(e.command){case"getBalances":var o=i.reduce(function(e,t){return e.concat(t.balances)},[]);(i=i.sort(function(e,t){return e.milestoneIndex-t.milestoneIndex}).shift()).balances=o,n(null,i);break;case"findTransactions":var s=new Set;if(1===t.length)return n(null,i.reduce(function(e,t){return e.concat(t)},[]).filter(function(e){return!s.has(e.hash)&&(s.add(e.hash),!0)}));var u={bundles:"bundle",addresses:"address",hashes:"hash",tags:"tag"};n(null,i.map(function(e){return e.filter(function(e){return t.every(function(t){return a.some(function(r){return r.hasOwnProperty(t)&&-1!==r[t].findIndex(function(r){return r===e[u[t]]})})})})}).reduce(function(e,t){return e.concat(t)},[]).filter(function(e){return!s.has(e.hash)&&(s.add(e.hash),!0)}));break;default:n(null,i.reduce(function(e,t){return e.concat(t)},[]))}})},s.prototype.sandboxSend=function(e,t){var r=setInterval(function(){var n=a();n.onreadystatechange=function(){if(4===n.readyState){var e;try{e=JSON.parse(n.responseText)}catch(e){return t(o.invalidResponse(e))}if("FINISHED"===e.status){var i=e.attachToTangleResponse.trytes;return clearInterval(r),t(null,i)}if("FAILED"===e.status)return clearInterval(r),t(new Error("Sandbox transaction processing failed. Please retry."))}};try{n.open("GET",e,!0),n.send(JSON.stringify())}catch(r){return t(new Error("No connection to Sandbox, failed with job: ",e))}},5e3)},s.prototype.prepareResult=function(e,t,r){var n,i={getNeighbors:"neighbors",addNeighbors:"addedNeighbors",removeNeighbors:"removedNeighbors",getTips:"hashes",findTransactions:"hashes",getTrytes:"trytes",getInclusionStates:"states",attachToTangle:"trytes",wereAddressesSpentFrom:"states",checkConsistency:"state"};try{e=JSON.parse(e)}catch(t){n=o.invalidResponse(e),e=null}return!n&&e.error&&(n=o.requestError(e.error),e=null),!n&&e.exception&&(n=o.requestError(e.exception),e=null),e&&i.hasOwnProperty(t)&&(e="attachToTangle"===t&&e.hasOwnProperty("id")?e:e[i[t]]),r(n,e)},e.exports=s},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,r){"use strict";var n=r(233);e.exports=function(e,t,r,i,o){var a=new Error(e);return n(a,t,r,i,o)}},function(e,t,r){"use strict";var n=r(13),i=r(234),o=r(232),a=r(231),s=r(230),u=r(96),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||r(229);e.exports=function(e){return new Promise(function(t,l){var f=e.data,h=e.headers;n.isFormData(f)&&delete h["Content-Type"];var p=new XMLHttpRequest,d="onreadystatechange",v=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in p||s(e.url)||(p=new window.XDomainRequest,d="onload",v=!0,p.onprogress=function(){},p.ontimeout=function(){}),e.auth){var g=e.auth.username||"",y=e.auth.password||"";h.Authorization="Basic "+c(g+":"+y)}if(p.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p[d]=function(){if(p&&(4===p.readyState||v)&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:1223===p.status?204:p.status,statusText:1223===p.status?"No Content":p.statusText,headers:r,config:e,request:p};i(t,l,n),p=null}},p.onerror=function(){l(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){l(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",p)),p=null},n.isStandardBrowserEnv()){var m=r(228),b=(e.withCredentials||s(e.url))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;b&&(h[e.xsrfHeaderName]=b)}if("setRequestHeader"in p&&n.forEach(h,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete h[t]:p.setRequestHeader(t,e)}),e.withCredentials&&(p.withCredentials=!0),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),l(e),p=null)}),void 0===f&&(f=null),p.send(f)})}},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n0){var s=r(n,this);~s?n.splice(s+1):n.push(this),~s?i.splice(s,1/0,o):i.push(o),~r(n,a)&&(a=t.call(this,o,a))}else n.push(a);return null==e?a instanceof Error?function(e){var t={stack:e.stack,message:e.message,name:e.name};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}(a):a:e.call(this,o,a)}}(e.exports=function(e,t,r,i){return JSON.stringify(e,n(t,i),r)}).getSerialize=n},function(e,t){var r=9007199254740991,n="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",a=Object.prototype,s=a.hasOwnProperty,u=a.toString,c=a.propertyIsEnumerable;e.exports=function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?u.call(e):"";return t==i||t==o}(e)}(e)}(e)&&s.call(e,"callee")&&(!c.call(e,"callee")||u.call(e)==n)}},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=r(64),o=r(65);t.mergeMap=function(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),function(n){return"number"==typeof t&&(r=t,t=null),n.lift(new a(e,t,r))}};var a=function(){function e(e,t,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=r}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.resultSelector,this.concurrent))},e}();t.MergeMapOperator=a;var s=function(e){function t(t,r,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY),e.call(this,t),this.project=r,this.resultSelector=n,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return n(t,e),t.prototype._next=function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.OuterSubscriber);t.MergeMapSubscriber=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=r(25),o=function(e){function t(t,r){e.call(this),this.promise=t,this.scheduler=r}return n(t,e),t.create=function(e,r){return new t(e,r)},t.prototype._subscribe=function(e){var t=this,r=this.promise,n=this.scheduler;if(null==n)this._isScalar?e.closed||(e.next(this.value),e.complete()):r.then(function(r){t.value=r,t._isScalar=!0,e.closed||(e.next(r),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){i.root.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return n.schedule(a,0,{value:this.value,subscriber:e})}else r.then(function(r){t.value=r,t._isScalar=!0,e.closed||e.add(n.schedule(a,0,{value:r,subscriber:e}))},function(t){e.closed||e.add(n.schedule(s,0,{err:t,subscriber:e}))}).then(null,function(e){i.root.setTimeout(function(){throw e})})},t}(r(10).Observable);function a(e){var t=e.value,r=e.subscriber;r.closed||(r.next(t),r.complete())}function s(e){var t=e.err,r=e.subscriber;r.closed||r.error(t)}t.PromiseObservable=o},function(e,t,r){"use strict";t.isScheduler=function(e){return e&&"function"==typeof e.schedule}},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(t,r){e.call(this),this.value=t,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return n(t,e),t.create=function(e,r){return new t(e,r)},t.dispatch=function(e){var t=e.done,r=e.value,n=e.subscriber;t?n.complete():(n.next(r),n.closed||(e.done=!0,this.schedule(e)))},t.prototype._subscribe=function(e){var r=this.value,n=this.scheduler;if(n)return n.schedule(t.dispatch,0,{done:!1,value:r,subscriber:e});e.next(r),e.closed||e.complete()},t}(r(10).Observable);t.ScalarObservable=i},function(e,t,r){"use strict";t.isPromise=function(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}},function(e,t,r){"use strict";t.isArrayLike=function(e){return e&&"number"==typeof e.length}},function(e,t,r){"use strict";t.empty={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}},function(e,t,r){"use strict";t.errorObject={e:{}}},function(e,t,r){"use strict";t.isObject=function(e){return null!=e&&"object"==typeof e}},function(e,t,r){"use strict";t.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}},function(e,t,r){"use strict";t.isFunction=function(e){return"function"==typeof e}},function(e,t,r){"use strict";function n(e){return function(){return e}}var i=function(){};i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,r){"use strict";e.exports={}},function(e,t,r){"use strict";var n=function(e){};e.exports=function(e,t,r,i,o,a,s,u){if(n(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,i,o,a,s,u],f=0;(c=new Error(t.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,r){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT -*/var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u>>0,a>>>0];for(var s=d.fullMessageLength.length-1;s>=0;--s)d.fullMessageLength[s]+=a[1],a[1]=a[0]+(d.fullMessageLength[s]/4294967296>>>0),d.fullMessageLength[s]=d.fullMessageLength[s]>>>0,a[0]=a[1]/4294967296>>>0;return i.putBytes(e),l(r,o,i),(i.read>2048||0===i.length())&&i.compact(),d},d.digest=function(){var t=n.util.createBuffer();t.putBytes(i.bytes());var s,u=d.fullMessageLength[d.fullMessageLength.length-1]+d.messageLengthSize&d.blockLength-1;t.putBytes(a.substr(0,d.blockLength-u));for(var c=8*d.fullMessageLength[0],f=0;f>>0,t.putInt32(c>>>0),c=s>>>0;t.putInt32(c);var h=new Array(r.length);for(f=0;f=128;){for(I=0;I<16;++I)t[I][0]=r.getInt32()>>>0,t[I][1]=r.getInt32()>>>0;for(;I<80;++I)n=(((N=(B=t[I-2])[0])>>>19|(R=B[1])<<13)^(R>>>29|N<<3)^N>>>6)>>>0,i=((N<<13|R>>>19)^(R<<3|N>>>29)^(N<<26|R>>>6))>>>0,o=(((N=(j=t[I-15])[0])>>>1|(R=j[1])<<31)^(N>>>8|R<<24)^N>>>7)>>>0,a=((N<<31|R>>>1)^(N<<24|R>>>8)^(N<<25|R>>>7))>>>0,P=t[I-7],H=t[I-16],R=i+P[1]+a+H[1],t[I][0]=n+P[0]+o+H[0]+(R/4294967296>>>0)>>>0,t[I][1]=R>>>0;for(p=e[0][0],v=e[0][1],g=e[1][0],y=e[1][1],m=e[2][0],b=e[2][1],_=e[3][0],w=e[3][1],E=e[4][0],S=e[4][1],x=e[5][0],T=e[5][1],A=e[6][0],k=e[6][1],O=e[7][0],C=e[7][1],I=0;I<80;++I)l=((E>>>14|S<<18)^(E>>>18|S<<14)^(S>>>9|E<<23))>>>0,f=(A^E&(x^A))>>>0,s=((p>>>28|v<<4)^(v>>>2|p<<30)^(v>>>7|p<<25))>>>0,c=((p<<4|v>>>28)^(v<<30|p>>>2)^(v<<25|p>>>7))>>>0,h=(p&g|m&(p^g))>>>0,d=(v&y|b&(v^y))>>>0,R=C+(((E<<18|S>>>14)^(E<<14|S>>>18)^(S<<23|E>>>9))>>>0)+((k^S&(T^k))>>>0)+u[I][1]+t[I][1],n=O+l+f+u[I][0]+t[I][0]+(R/4294967296>>>0)>>>0,i=R>>>0,o=s+h+((R=c+d)/4294967296>>>0)>>>0,a=R>>>0,O=A,C=k,A=x,k=T,x=E,T=S,E=_+n+((R=w+i)/4294967296>>>0)>>>0,S=R>>>0,_=m,w=b,m=g,b=y,g=p,y=v,p=n+o+((R=i+a)/4294967296>>>0)>>>0,v=R>>>0;R=e[0][1]+v,e[0][0]=e[0][0]+p+(R/4294967296>>>0)>>>0,e[0][1]=R>>>0,R=e[1][1]+y,e[1][0]=e[1][0]+g+(R/4294967296>>>0)>>>0,e[1][1]=R>>>0,R=e[2][1]+b,e[2][0]=e[2][0]+m+(R/4294967296>>>0)>>>0,e[2][1]=R>>>0,R=e[3][1]+w,e[3][0]=e[3][0]+_+(R/4294967296>>>0)>>>0,e[3][1]=R>>>0,R=e[4][1]+S,e[4][0]=e[4][0]+E+(R/4294967296>>>0)>>>0,e[4][1]=R>>>0,R=e[5][1]+T,e[5][0]=e[5][0]+x+(R/4294967296>>>0)>>>0,e[5][1]=R>>>0,R=e[6][1]+k,e[6][0]=e[6][0]+A+(R/4294967296>>>0)>>>0,e[6][1]=R>>>0,R=e[7][1]+C,e[7][0]=e[7][0]+O+(R/4294967296>>>0)>>>0,e[7][1]=R>>>0,M-=128}}},function(e,t,r){(function(n,i){var o; +*/var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u>>0,a>>>0];for(var s=p.fullMessageLength.length-1;s>=0;--s)p.fullMessageLength[s]+=a[1],a[1]=a[0]+(p.fullMessageLength[s]/4294967296>>>0),p.fullMessageLength[s]=p.fullMessageLength[s]>>>0,a[0]=a[1]/4294967296>>>0;return i.putBytes(e),l(r,o,i),(i.read>2048||0===i.length())&&i.compact(),p},p.digest=function(){var t=n.util.createBuffer();t.putBytes(i.bytes());var s,u=p.fullMessageLength[p.fullMessageLength.length-1]+p.messageLengthSize&p.blockLength-1;t.putBytes(a.substr(0,p.blockLength-u));for(var c=8*p.fullMessageLength[0],f=0;f>>0,t.putInt32(c>>>0),c=s>>>0;t.putInt32(c);var h=new Array(r.length);for(f=0;f=128;){for(I=0;I<16;++I)t[I][0]=r.getInt32()>>>0,t[I][1]=r.getInt32()>>>0;for(;I<80;++I)n=(((N=(R=t[I-2])[0])>>>19|(B=R[1])<<13)^(B>>>29|N<<3)^N>>>6)>>>0,i=((N<<13|B>>>19)^(B<<3|N>>>29)^(N<<26|B>>>6))>>>0,o=(((N=(j=t[I-15])[0])>>>1|(B=j[1])<<31)^(N>>>8|B<<24)^N>>>7)>>>0,a=((N<<31|B>>>1)^(N<<24|B>>>8)^(N<<25|B>>>7))>>>0,P=t[I-7],H=t[I-16],B=i+P[1]+a+H[1],t[I][0]=n+P[0]+o+H[0]+(B/4294967296>>>0)>>>0,t[I][1]=B>>>0;for(d=e[0][0],v=e[0][1],g=e[1][0],y=e[1][1],m=e[2][0],b=e[2][1],_=e[3][0],w=e[3][1],E=e[4][0],S=e[4][1],x=e[5][0],T=e[5][1],A=e[6][0],k=e[6][1],O=e[7][0],C=e[7][1],I=0;I<80;++I)l=((E>>>14|S<<18)^(E>>>18|S<<14)^(S>>>9|E<<23))>>>0,f=(A^E&(x^A))>>>0,s=((d>>>28|v<<4)^(v>>>2|d<<30)^(v>>>7|d<<25))>>>0,c=((d<<4|v>>>28)^(v<<30|d>>>2)^(v<<25|d>>>7))>>>0,h=(d&g|m&(d^g))>>>0,p=(v&y|b&(v^y))>>>0,B=C+(((E<<18|S>>>14)^(E<<14|S>>>18)^(S<<23|E>>>9))>>>0)+((k^S&(T^k))>>>0)+u[I][1]+t[I][1],n=O+l+f+u[I][0]+t[I][0]+(B/4294967296>>>0)>>>0,i=B>>>0,o=s+h+((B=c+p)/4294967296>>>0)>>>0,a=B>>>0,O=A,C=k,A=x,k=T,x=E,T=S,E=_+n+((B=w+i)/4294967296>>>0)>>>0,S=B>>>0,_=m,w=b,m=g,b=y,g=d,y=v,d=n+o+((B=i+a)/4294967296>>>0)>>>0,v=B>>>0;B=e[0][1]+v,e[0][0]=e[0][0]+d+(B/4294967296>>>0)>>>0,e[0][1]=B>>>0,B=e[1][1]+y,e[1][0]=e[1][0]+g+(B/4294967296>>>0)>>>0,e[1][1]=B>>>0,B=e[2][1]+b,e[2][0]=e[2][0]+m+(B/4294967296>>>0)>>>0,e[2][1]=B>>>0,B=e[3][1]+w,e[3][0]=e[3][0]+_+(B/4294967296>>>0)>>>0,e[3][1]=B>>>0,B=e[4][1]+S,e[4][0]=e[4][0]+E+(B/4294967296>>>0)>>>0,e[4][1]=B>>>0,B=e[5][1]+T,e[5][0]=e[5][0]+x+(B/4294967296>>>0)>>>0,e[5][1]=B>>>0,B=e[6][1]+k,e[6][0]=e[6][0]+A+(B/4294967296>>>0)>>>0,e[6][1]=B>>>0,B=e[7][1]+C,e[7][0]=e[7][0]+O+(B/4294967296>>>0)>>>0,e[7][1]=B>>>0,M-=128}}},function(e,t,r){(function(n,i){var o; /** * [js-sha3]{@link https://github.com/emn178/js-sha3} * @@ -33,13 +33,13 @@ object-assign * @copyright Chen, Yi-Cyuan 2015-2017 * @license MIT */ -!function(){"use strict";var a="input is invalid type",s="object"==typeof window,u=s?window:{};u.JS_SHA3_NO_WINDOW&&(s=!1);var c=!s&&"object"==typeof self;!u.JS_SHA3_NO_NODE_JS&&"object"==typeof n&&n.versions&&n.versions.node?u=i:c&&(u=self);var l=!u.JS_SHA3_NO_COMMON_JS&&"object"==typeof e&&e.exports,f=r(147),h=!u.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,d="0123456789abcdef".split(""),p=[4,1024,262144,67108864],v=[0,8,16,24],g=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],y=[224,256,384,512],m=[128,256],b=["hex","buffer","arrayBuffer","array","digest"],_={128:168,256:136};!u.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!h||!u.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var w=function(e,t,r){return function(n){return new H(e,t,e).update(n)[r]()}},E=function(e,t,r){return function(n,i){return new H(e,t,i).update(n)[r]()}},S=function(e,t,r){return function(t,n,i,o){return O["cshake"+e].update(t,n,i,o)[r]()}},x=function(e,t,r){return function(t,n,i,o){return O["kmac"+e].update(t,n,i,o)[r]()}},T=function(e,t,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function M(e,t,r){H.call(this,e,t,r)}H.prototype.update=function(e){if(!this.finalized){var t,r=typeof e;if("string"!==r){if("object"!==r)throw a;if(null===e)throw a;if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw a;t=!0}for(var n,i,o=this.blocks,s=this.byteCount,u=e.length,c=this.blockCount,l=0,f=this.s;l>2]|=e[l]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[n>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=s){for(this.start=n-s,this.block=o[c],n=0;n>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},H.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"!==r)throw a;if(null===e)throw a;if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw a;t=!0}var n=0,i=e.length;if(t)n=i;else for(var o=0;o=57344?n+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},H.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t>4&15]+d[15&e]+d[e>>12&15]+d[e>>8&15]+d[e>>20&15]+d[e>>16&15]+d[e>>28&15]+d[e>>24&15];a%t==0&&(D(r),o=0)}return i&&(e=r[o],s+=d[e>>4&15]+d[15&e],i>1&&(s+=d[e>>12&15]+d[e>>8&15]),i>2&&(s+=d[e>>20&15]+d[e>>16&15])),s},H.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%r==0&&D(n)}return o&&(e=s<<2,t=n[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},M.prototype=new H,M.prototype.finalize=function(){return this.encode(this.outputBits,!0),H.prototype.finalize.call(this)};var D=function(e){var t,r,n,i,o,a,s,u,c,l,f,h,d,p,v,y,m,b,_,w,E,S,x,T,A,k,O,C,I,N,R,B,P,j,H,M,D,U,L,F,z,G,W,V,q,$,K,Y,X,Q,J,Z,ee,te,re,ne,ie,oe,ae,se,ue,ce,le;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(d=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(l<<1|f>>>31),r=s^(f<<1|l>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|d>>>31),r=c^(d<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=l^(i<<1|o>>>31),r=f^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],v=e[1],$=e[11]<<4|e[10]>>>28,K=e[10]<<4|e[11]>>>28,C=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,G=e[40]<<18|e[41]>>>14,W=e[41]<<18|e[40]>>>14,j=e[2]<<1|e[3]>>>31,H=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,m=e[12]<<12|e[13]>>>20,Y=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,N=e[33]<<13|e[32]>>>19,R=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,M=e[14]<<6|e[15]>>>26,D=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,_=e[24]<<11|e[25]>>>21,Q=e[34]<<15|e[35]>>>17,J=e[35]<<15|e[34]>>>17,B=e[45]<<29|e[44]>>>3,P=e[44]<<29|e[45]>>>3,T=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,L=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,E=e[37]<<21|e[36]>>>11,Z=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,q=e[9]<<27|e[8]>>>5,k=e[18]<<20|e[19]>>>12,O=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,F=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,S=e[48]<<14|e[49]>>>18,x=e[49]<<14|e[48]>>>18,e[0]=p^~y&b,e[1]=v^~m&_,e[10]=T^~k&C,e[11]=A^~O&I,e[20]=j^~M&U,e[21]=H^~D&L,e[30]=V^~$&Y,e[31]=q^~K&X,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=y^~b&w,e[3]=m^~_&E,e[12]=k^~C&N,e[13]=O^~I&R,e[22]=M^~U&F,e[23]=D^~L&z,e[32]=$^~Y&Q,e[33]=K^~X&J,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=b^~w&S,e[5]=_^~E&x,e[14]=C^~N&B,e[15]=I^~R&P,e[24]=U^~F&G,e[25]=L^~z&W,e[34]=Y^~Q&Z,e[35]=X^~J&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&le,e[6]=w^~S&p,e[7]=E^~x&v,e[16]=N^~B&T,e[17]=R^~P&A,e[26]=F^~G&j,e[27]=z^~W&H,e[36]=Q^~Z&V,e[37]=J^~ee&q,e[46]=se^~ce&te,e[47]=ue^~le&re,e[8]=S^~p&y,e[9]=x^~v&m,e[18]=B^~T&k,e[19]=P^~A&O,e[28]=G^~j&M,e[29]=W^~H&D,e[38]=Z^~V&$,e[39]=ee^~q&K,e[48]=ce^~te&ne,e[49]=le^~re&ie,e[0]^=g[n],e[1]^=g[n+1]};if(l)e.exports=O;else{for(I=0;I1&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof u&&(r=e.pop()),null===s&&1===e.length&&e[0]instanceof n.Observable?e[0]:a.mergeAll(r)(new i.ArrayObservable(e,s))}},function(e,t,r){"use strict";var n=r(280);t.from=n.FromObservable.create},function(e,t,r){"use strict";var n=r(282);t.switchMap=function(e,t){return n.switchMap(e,t)(this)}},function(e,t,r){"use strict";e.exports=r(297)},function(e,t,r){e.exports=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,o,a,s,u,c,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(["\n font-family: Poppins;\n overflow: hidden;\n bottom: 0;\n left: 0;\n right: 0;\n position: fixed;\n background-color: #ffffff;\n text-align: center;\n height: 300px;\n @media (max-width: 1200px) {\n height: 200px;\n }\n"],["\n font-family: Poppins;\n overflow: hidden;\n bottom: 0;\n left: 0;\n right: 0;\n position: fixed;\n background-color: #ffffff;\n text-align: center;\n height: 300px;\n @media (max-width: 1200px) {\n height: 200px;\n }\n"]),i=d(["\n top: 0;\n height: 6px;\n width: 100%;\n border-bottom: solid 6px #088ffc;\n"],["\n top: 0;\n height: 6px;\n width: 100%;\n border-bottom: solid 6px #088ffc;\n"]),o=d(["\n flex-direction: row;\n display: flex;\n justify-content: space-around;\n align-items: center;\n height: 300px;\n @media (max-width: 1200px) {\n flex-direction: column;\n height: 200px;\n }\n"],["\n flex-direction: row;\n display: flex;\n justify-content: space-around;\n align-items: center;\n height: 300px;\n @media (max-width: 1200px) {\n flex-direction: column;\n height: 200px;\n }\n"]),a=h(r(2)),s=h(r(299)),u=h(r(296)),c=h(r(295)),l=h(r(293)),f=h(r(41));function h(e){return e&&e.__esModule?e:{default:e}}function d(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}l.default.load({google:{families:["Poppins:400,600","sans-serif"]}});var p=f.default.div(n),v=f.default.div(i),g=f.default.div(o);t.default=function(e){var t=e.giveConsent,r=e.denyConsent;return a.default.createElement(p,null,a.default.createElement(v,null),a.default.createElement(g,null,a.default.createElement(c.default,null),a.default.createElement(u.default,null),a.default.createElement(s.default,{giveConsent:t,denyConsent:r})))}},function(e,t,r){"use strict";(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.a=r}).call(this,r(6))},function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}r.d(t,"a",function(){return n})},function(e,t,r){"use strict";r.r(t);var n="persist:",i="persist/FLUSH",o="persist/REHYDRATE",a="persist/PAUSE",s="persist/PERSIST",u="persist/PURGE",c="persist/REGISTER",l=-1,f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(g,["_persist"]);if(d.type===s){var S=!1,x=function(t,r){S||(d.rehydrate(e.key,t,r),S=!0)};if(f&&setTimeout(function(){!S&&x(void 0,new Error('redux-persist: persist timed out for persist key "'+e.key+'"'))},f),y=!1,h||(h=p(e)),w)return l;if("function"!=typeof d.rehydrate||"function"!=typeof d.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return d.register(e.key),c(e).then(function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,r).then(function(e){x(e)},function(e){x(void 0,e)})},function(e){x(void 0,e)}),_({},t(E,d),{_persist:{version:r,rehydrated:!1}})}if(d.type===u)return v=!0,d.result(m(e)),_({},t(E,d),{_persist:w});if(d.type===i)return d.result(h&&h.flush()),_({},t(E,d),{_persist:w});if(d.type===a)y=!0;else if(d.type===o){if(v)return _({},E,{_persist:_({},w,{rehydrated:!0})});if(d.key===e.key){var T=t(E,d),A=d.payload,k=!1!==n&&void 0!==A?n(A,l,T,e):T,O=_({},k,{_persist:_({},w,{rehydrated:!0})});return b(O)}}if(!w)return t(l,d);var C=t(E,d);return C===E?l:(C._persist=w,b(C))}}var S=r(11),x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:I,t=arguments[1];switch(t.type){case c:return O({},e,{registry:[].concat(C(e.registry),[t.key])});case o:var r=e.registry.indexOf(t.key),n=[].concat(C(e.registry));return n.splice(r,1),O({},e,{registry:n,bootstrapped:0===n.length});default:return e}};function R(e,t,r){var n=r||!1,l=Object(S.createStore)(N,I,t?t.enhancer:void 0),f=function(e){l.dispatch({type:c,key:e})},h=function(t,r,i){var a={type:o,payload:r,err:i,key:t};e.dispatch(a),l.dispatch(a),n&&d.getState().bootstrapped&&(n(),n=!1)},d=O({},l,{purge:function(){var t=[];return e.dispatch({type:u,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:i,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:a})},persist:function(){e.dispatch({type:s,register:f,rehydrate:h})}});return d.persist(),d}function B(e,t){(t||{}).debug;return function(t,r){if(!t)return Promise.resolve(void 0);var n=t._persist&&void 0!==t._persist.version?t._persist.version:l;if(n===r)return Promise.resolve(t);if(n>r)return Promise.resolve(t);var i=Object.keys(e).map(function(e){return parseInt(e)}).filter(function(e){return r>=e&&e>n}).sort(function(e,t){return e-t});try{var o=i.reduce(function(t,r){return e[r](t)},t);return Promise.resolve(o)}catch(e){return Promise.reject(e)}}}function P(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.whitelist||null,i=r.blacklist||null;function o(e){return!(!n||-1!==n.indexOf(e))||!(!i||-1===i.indexOf(e))}return{in:function(t,r,n){return!o(r)&&e?e(t,r,n):t},out:function(e,r,n){return!o(r)&&t?t(e,r,n):e}}}r.d(t,"persistReducer",function(){return E}),r.d(t,"persistCombineReducers",function(){return k}),r.d(t,"persistStore",function(){return R}),r.d(t,"createMigrate",function(){return B}),r.d(t,"createTransform",function(){return P}),r.d(t,"getStoredState",function(){return g}),r.d(t,"createPersistoid",function(){return p}),r.d(t,"purgeStoredState",function(){return m}),r.d(t,"KEY_PREFIX",function(){return n}),r.d(t,"FLUSH",function(){return i}),r.d(t,"REHYDRATE",function(){return o}),r.d(t,"PAUSE",function(){return a}),r.d(t,"PERSIST",function(){return s}),r.d(t,"PURGE",function(){return u}),r.d(t,"REGISTER",function(){return c}),r.d(t,"DEFAULT_VERSION",function(){return l})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=r(95),o=r(43),a=r(94),s=r(26),u=v(r(19)),c=v(r(40)),l=v(r(87)),f=v(r(93)),h=v(r(1)),d=v(r(72)),p=r(7);function v(e){return e&&e.__esModule?e:{default:e}}t.default=(0,s.combineEpics)(function(e,t){return e.ofType(c.default.TREASURE_HUNT_PERFORM_POW).mergeMap(function(e){var r=t.getState().treasureHunt,s=r.dataMapHash,u=r.treasure,f=r.chunkIdx,p=h.default.hexToBytes(s),v=d.default.hashChain(p),g=n(v,2),y=g[0],m=g[1],b=l.default.toAddress(l.default.utils.toTrytes(y));return(0,i.fromPromise)(l.default.findMostRecentTransaction(b)).map(function(e){return e.signatureMessageFragment}).mergeMap(function(e){return(0,i.fromPromise)(l.default.getTransactionsToApprove(1)).map(function(t){var r=t.trunkTransaction,n=t.branchTransaction;return{message:e,trunkTx:r,branchTx:n}})}).mergeMap(function(e){var t=e.trunkTx,r=e.branchTx,n=e.message;return(0,i.fromPromise)(l.default.prepareTransfers({address:b,message:n,value:0,tag:"EDMUNDANDREBELWUZHERE",seed:"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"})).map(function(e){return{trytes:e,trunkTx:t,branchTx:r}})}).mergeMap(function(e){var t=e.trytes,r=e.trunkTx,n=e.branchTx;return(0,i.fromPromise)(l.default.localPow({trunkTx:r,branchTx:n,mwm:9,trytes:t}))}).mergeMap(function(e){return(0,i.fromPromise)(l.default.broadcastTransactions(e))}).mergeMap(function(){return(0,o.of)(u?c.default.incrementChunk({nextChunkIdx:f+1,nextDataMapHash:h.default.bytesToHex(m)}):c.default.findTreasure({dataMapHash:s,chunkIdx:f}))}).catch(function(e){return console.log("TREASURE HUNTING ERROR",e),(0,a.empty)()})})},function(e,t){return e.ofType(c.default.TREASURE_HUNT_FIND_TREASURE).mergeMap(function(e){var r=e.payload,a=r.dataMapHash,s=r.chunkIdx,u=h.default.hexToBytes(a),f=d.default.hashChain(u),p=n(f,2),v=p[0],g=p[1],y=h.default.bytesToHex(g),m=l.default.toAddress(l.default.utils.toTrytes(v));return(0,i.fromPromise)(l.default.findMostRecentTransaction(m)).mergeMap(function(e){var r=d.default.sideChainGenerate(a);t.dispatch({type:"IOTA_RETURN"});var n=r.find(function(t){return!!d.default.decryptTreasure(t,e.signatureMessageFragment,a)});return(0,o.of)(n?c.default.saveTreasure({treasure:d.default.decryptTreasure(n,e.signatureMessageFragment,a),nextChunkIdx:s+1,nextDataMapHash:y}):c.default.incrementChunk({nextChunkIdx:s+1,nextDataMapHash:y}))})})},function(e,t){return e.ofType(c.default.TREASURE_HUNT_START_SECTOR,c.default.TREASURE_HUNT_SAVE_TREASURE,c.default.TREASURE_HUNT_INCREMENT_CHUNK).mergeMap(function(){var e=t.getState(),r=e.treasureHunt,n=e.node,i=r.treasure,a=r.genesisHash,s=r.chunkIdx,u=r.numberOfChunks,l=r.sectorIdx,f=n.ethAddress,h=s>u,d=s>p.CHUNKS_PER_SECTOR*(l+1)-1;return(0,o.of)(h||d?c.default.claimTreasure({genesisHash:a,numberOfChunks:u,receiverEthAddr:f,sectorIdx:l,treasure:i}):c.default.performPow())})},function(e,t){return e.ofType(c.default.TREASURE_HUNT_CLAIM_TREASURE_SUCCESS).map(function(e){var t=e.payload,r=t.genesisHash,n=t.sectorIdx;return u.default.updateSectorStatus({genesisHash:r,sectorIdx:n,status:p.SECTOR_STATUS.CLAIMED})})},function(e,t){return e.ofType(c.default.TREASURE_HUNT_CLAIM_TREASURE_FAILURE).map(function(e){var t=e.payload,r=t.genesisHash,n=t.sectorIdx;return u.default.updateSectorStatus({genesisHash:r,sectorIdx:n,status:p.SECTOR_STATUS.NO_TREASURE_FOUND})})},function(e,t){return e.ofType(c.default.TREASURE_HUNT_CLAIM_TREASURE).mergeMap(function(e){var t=e.payload,r=t.receiverEthAddr,n=t.genesisHash,a=t.numberOfChunks,s=t.sectorIdx,u=t.treasure;return(0,i.fromPromise)(f.default.claimTreasure({receiverEthAddr:r,genesisHash:n,numberOfChunks:a,sectorIdx:s,ethKey:u})).map(function(){return c.default.claimTreasureSuccess({genesisHash:n,sectorIdx:s})}).catch(function(e){return console.log("CLAIM TREASURE ERROR: ",e),(0,o.of)(c.default.claimTreasureFailure({genesisHash:n,sectorIdx:s}))})})})},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,r){var n=r(130),i=r(74),o=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var r=u.test(e);return r||c.test(e)?l(e.slice(2),r?2:8):s.test(e)?o:+e}},function(e,t,r){var n=r(131),i=1/0,o=1.7976931348623157e308;e.exports=function(e){return e?(e=n(e))===i||e===-i?(e<0?-1:1)*o:e==e?e:0:0===e?e:0}},function(e,t,r){var n=r(132);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t,r){var n=r(47),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},function(e,t,r){var n=r(47),i=r(136),o=r(135),a="[object Null]",s="[object Undefined]",u=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:u&&u in Object(e)?i(e):o(e)}},function(e,t){var r=Array.isArray;e.exports=r},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r=t?e:t)),e}},function(e,t){},function(e,t,r){(function(t){var n=r(12);r(1);var i=null;!n.util.isNodejs||n.options.usePureJavaScript||t.versions["node-webkit"]||(i=r(143)),(e.exports=n.prng=n.prng||{}).create=function(e){for(var t={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},r=e.md,o=new Array(32),a=0;a<32;++a)o[a]=r.create();function s(){if(t.pools[0].messageLength>=32)return u();var e=32-t.pools[0].messageLength<<5;t.collect(t.seedFileSync(e)),u()}function u(){t.reseeds=4294967295===t.reseeds?0:t.reseeds+1;var e=t.plugin.md.create();e.update(t.keyBytes);for(var r=1,n=0;n<32;++n)t.reseeds%r==0&&(e.update(t.pools[n].digest().getBytes()),t.pools[n].start()),r<<=1;t.keyBytes=e.digest().getBytes(),e.start(),e.update(t.keyBytes);var i=e.digest().getBytes();t.key=t.plugin.formatKey(t.keyBytes),t.seed=t.plugin.formatSeed(i),t.generated=0}function c(e){var t=null;if("undefined"!=typeof window){var r=window.crypto||window.msCrypto;r&&r.getRandomValues&&(t=function(e){return r.getRandomValues(e)})}var i=n.util.createBuffer();if(t)for(;i.length()>16)))<<16,f=4294967295&(c=(2147483647&(c+=u>>15))+(c>>31));for(s=0;s<3;++s)l=f>>>(s<<3),l^=Math.floor(256*Math.random()),i.putByte(String.fromCharCode(255&l))}return i.getBytes(e)}return t.pools=o,t.pool=0,t.generate=function(e,r){if(!r)return t.generateSync(e);var i=t.plugin.cipher,o=t.plugin.increment,a=t.plugin.formatKey,s=t.plugin.formatSeed,c=n.util.createBuffer();t.key=null,function l(f){if(f)return r(f);if(c.length()>=e)return r(null,c.getBytes(e));t.generated>1048575&&(t.key=null);if(null===t.key)return n.util.nextTick(function(){!function(e){if(t.pools[0].messageLength>=32)return u(),e();var r=32-t.pools[0].messageLength<<5;t.seedFile(r,function(r,n){if(r)return e(r);t.collect(n),u(),e()})}(l)});var h=i(t.key,t.seed);t.generated+=h.length;c.putBytes(h);t.key=a(i(t.key,o(t.seed)));t.seed=s(i(t.key,t.seed));n.util.setImmediate(l)}()},t.generateSync=function(e){var r=t.plugin.cipher,i=t.plugin.increment,o=t.plugin.formatKey,a=t.plugin.formatSeed;t.key=null;for(var u=n.util.createBuffer();u.length()1048575&&(t.key=null),null===t.key&&s();var c=r(t.key,t.seed);t.generated+=c.length,u.putBytes(c),t.key=o(r(t.key,i(t.seed))),t.seed=a(r(t.key,t.seed))}return u.getBytes(e)},i?(t.seedFile=function(e,t){i.randomBytes(e,function(e,r){if(e)return t(e);t(null,r.toString())})},t.seedFileSync=function(e){return i.randomBytes(e).toString()}):(t.seedFile=function(e,t){try{t(null,c(e))}catch(e){t(e)}},t.seedFileSync=c),t.collect=function(e){for(var r=e.length,n=0;n>i&255);t.collect(n)},t.registerWorker=function(e){if(e===self)t.seedFile=function(e,t){self.addEventListener("message",function e(r){var n=r.data;n.forge&&n.forge.prng&&(self.removeEventListener("message",e),t(n.forge.prng.err,n.forge.prng.bytes))}),self.postMessage({forge:{prng:{needed:e}}})};else{e.addEventListener("message",function(r){var n=r.data;n.forge&&n.forge.prng&&t.seedFile(n.forge.prng.needed,function(t,r){e.postMessage({forge:{prng:{err:t,bytes:r}}})})})}},t}}).call(this,r(15))},function(e,t,r){var n=r(12);r(1),n.cipher=n.cipher||{};var i=e.exports=n.cipher.modes=n.cipher.modes||{};function o(e){if("string"==typeof e&&(e=n.util.createBuffer(e)),n.util.isArray(e)&&e.length>4){var t=e;e=n.util.createBuffer();for(var r=0;r0))return!0;for(var n=0;n0))return!0;for(var n=0;n0)return!1;var r=e.length(),n=e.at(r-1);return!(n>this.blockSize<<2)&&(e.truncate(n),!0)},i.cbc=function(e){e=e||{},this.name="CBC",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},i.cbc.prototype.start=function(e){if(null===e.iv){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else{if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=o(e.iv),this._prev=this._iv.slice(0)}},i.cbc.prototype.encrypt=function(e,t,r){if(e.length()0))return!0;for(var n=0;n0))return!0;for(var n=0;n0)return!1;var r=e.length(),n=e.at(r-1);return!(n>this.blockSize<<2)&&(e.truncate(n),!0)},i.cfb=function(e){e=e||{},this.name="CFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0},i.cfb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=o(e.iv),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.cfb.prototype.encrypt=function(e,t,r){var n=e.length();if(0===n)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear();for(i=0;i0)e.read-=this.blockSize;else for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}},i.cfb.prototype.decrypt=function(e,t,r){var n=e.length();if(0===n)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear();for(i=0;i0)e.read-=this.blockSize;else for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}},i.ofb=function(e){e=e||{},this.name="OFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0},i.ofb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=o(e.iv),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.ofb.prototype.encrypt=function(e,t,r){var n=e.length();if(0===e.length())return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear();for(i=0;i0)e.read-=this.blockSize;else for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}},i.ofb.prototype.decrypt=i.ofb.prototype.encrypt,i.ctr=function(e){e=e||{},this.name="CTR",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0},i.ctr.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=o(e.iv),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.ctr.prototype.encrypt=function(e,t,r){var n=e.length();if(0===n)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear();for(i=0;i0&&(e.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}a(this._inBlock)},i.ctr.prototype.decrypt=i.ctr.prototype.encrypt,i.gcm=function(e){e=e||{},this.name="GCM",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0,this._R=3774873600},i.gcm.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");var t,r=n.util.createBuffer(e.iv);if(this._cipherLength=0,t="additionalData"in e?n.util.createBuffer(e.additionalData):n.util.createBuffer(),this._tagLength="tagLength"in e?e.tagLength:128,this._tag=null,e.decrypt&&(this._tag=n.util.createBuffer(e.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var i=r.length();if(12===i)this._j0=[r.getInt32(),r.getInt32(),r.getInt32(),1];else{for(this._j0=[0,0,0,0];r.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[r.getInt32(),r.getInt32(),r.getInt32(),r.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(s(8*i)))}this._inBlock=this._j0.slice(0),a(this._inBlock),this._partialBytes=0,t=n.util.createBuffer(t),this._aDataLength=s(8*t.length());var o=t.length()%this.blockSize;for(o&&t.fillWithByte(0,this.blockSize-o),this._s=[0,0,0,0];t.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()])},i.gcm.prototype.encrypt=function(e,t,r){var n=e.length();if(0===n)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize){for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear();for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return e.read-=this.blockSize,t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),a(this._inBlock)},i.gcm.prototype.decrypt=function(e,t,r){var n=e.length();if(n0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),a(this._inBlock),this._hashBlock[0]=e.getInt32(),this._hashBlock[1]=e.getInt32(),this._hashBlock[2]=e.getInt32(),this._hashBlock[3]=e.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var i=0;i0;--n)t[n]=e[n]>>>1|(1&e[n-1])<<31;t[0]=e[0]>>>1,r&&(t[0]^=this._R)},i.gcm.prototype.tableMultiply=function(e){for(var t=[0,0,0,0],r=0;r<32;++r){var n=e[r/8|0]>>>4*(7-r%8)&15,i=this._m[r][n];t[0]^=i[0],t[1]^=i[1],t[2]^=i[2],t[3]^=i[3]}return t},i.gcm.prototype.ghash=function(e,t,r){return t[0]^=r[0],t[1]^=r[1],t[2]^=r[2],t[3]^=r[3],this.tableMultiply(t)},i.gcm.prototype.generateHashTable=function(e,t){for(var r=8/t,n=4*r,i=16*r,o=new Array(i),a=0;a>>1,i=new Array(r);i[n]=e.slice(0);for(var o=n>>>1;o>0;)this.pow(i[2*o],i[o]=[]),o>>=1;for(o=2;o>>=2;for(i=0;i>8^255&f^99,o[v]=f,a[f]=v,d=(h=e[f])<<24^f<<16^f<<8^f^h,p=((r=e[v])^(n=e[r])^(i=e[n]))<<24^(v^i)<<16^(v^n^i)<<8^v^r^i;for(var y=0;y<4;++y)u[y][v]=d,c[y][f]=p,d=d<<24|d>>>8,p=p<<24|p>>>8;0===v?v=g=1:(v=r^e[e[e[r^i]]],g^=e[e[g]])}}function d(e,t){for(var r,n=e.slice(0),i=1,a=n.length,u=f*(a+6+1),l=a;l>>16&255]<<24^o[r>>>8&255]<<16^o[255&r]<<8^o[r>>>24]^s[i]<<24,i++):a>6&&l%a==4&&(r=o[r>>>24]<<24^o[r>>>16&255]<<16^o[r>>>8&255]<<8^o[255&r]),n[l]=n[l-a]^r;if(t){for(var h,d=c[0],p=c[1],v=c[2],g=c[3],y=n.slice(0),m=(l=0,(u=n.length)-f);l>>24]]^p[o[h>>>16&255]]^v[o[h>>>8&255]]^g[o[255&h]];n=y}return n}function p(e,t,r,n){var i,s,l,f,h,d,p,v,g,y,m,b,_=e.length/4-1;n?(i=c[0],s=c[1],l=c[2],f=c[3],h=a):(i=u[0],s=u[1],l=u[2],f=u[3],h=o),d=t[0]^e[0],p=t[n?3:1]^e[1],v=t[2]^e[2],g=t[n?1:3]^e[3];for(var w=3,E=1;E<_;++E)y=i[d>>>24]^s[p>>>16&255]^l[v>>>8&255]^f[255&g]^e[++w],m=i[p>>>24]^s[v>>>16&255]^l[g>>>8&255]^f[255&d]^e[++w],b=i[v>>>24]^s[g>>>16&255]^l[d>>>8&255]^f[255&p]^e[++w],g=i[g>>>24]^s[d>>>16&255]^l[p>>>8&255]^f[255&v]^e[++w],d=y,p=m,v=b;r[0]=h[d>>>24]<<24^h[p>>>16&255]<<16^h[v>>>8&255]<<8^h[255&g]^e[++w],r[n?3:1]=h[p>>>24]<<24^h[v>>>16&255]<<16^h[g>>>8&255]<<8^h[255&d]^e[++w],r[2]=h[v>>>24]<<24^h[g>>>16&255]<<16^h[d>>>8&255]<<8^h[255&p]^e[++w],r[n?1:3]=h[g>>>24]<<24^h[d>>>16&255]<<16^h[p>>>8&255]<<8^h[255&v]^e[++w]}function v(e){var t,r="AES-"+((e=e||{}).mode||"CBC").toUpperCase(),i=(t=e.decrypt?n.cipher.createDecipher(r,e.key):n.cipher.createCipher(r,e.key)).start;return t.start=function(e,r){var o=null;r instanceof n.util.ByteBuffer&&(o=r,r={}),(r=r||{}).output=o,r.iv=e,i.call(t,r)},t}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,r){(function(t){var r={};e.exports=r;var n={};r.encode=function(e,t,r){if("string"!=typeof t)throw new TypeError('"alphabet" must be a string.');if(void 0!==r&&"number"!=typeof r)throw new TypeError('"maxline" must be a number.');var n="";if(e instanceof Uint8Array){var i=0,o=t.length,a=t.charAt(0),s=[0];for(i=0;i0;)s.push(c%o),c=c/o|0}for(i=0;0===e[i]&&i=0;--i)n+=t[s[i]]}else n=function(e,t){var r=0,n=t.length,i=t.charAt(0),o=[0];for(r=0;r0;)o.push(s%n),s=s/n|0}var u="";for(r=0;0===e.at(r)&&r=0;--r)u+=t[o[r]];return u}(e,t);if(r){var l=new RegExp(".{1,"+r+"}","g");n=n.match(l).join("\r\n")}return n},r.decode=function(e,r){if("string"!=typeof e)throw new TypeError('"input" must be a string.');if("string"!=typeof r)throw new TypeError('"alphabet" must be a string.');var i=n[r];if(!i){i=n[r]=[];for(var o=0;o>=8;for(;f>0;)u.push(255&f),f>>=8}for(var h=0;e[h]===s&&h>1,l=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[r+d]=255&a,d+=p,a/=256,c-=8);e[r+d-p]|=128*v}},function(e,t,r){"use strict";t.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){for(var t,r=c(e),n=r[0],a=r[1],s=new o(function(e,t,r){return 3*(t+r)/4-r}(0,n,a)),u=0,l=a>0?n-4:n,f=0;f>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=i[e.charCodeAt(f)]<<2|i[e.charCodeAt(f+1)]>>4,s[u++]=255&t);1===a&&(t=i[e.charCodeAt(f)]<<10|i[e.charCodeAt(f+1)]<<4|i[e.charCodeAt(f+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;as?s:a+16383));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function f(e,t,r){for(var n,i=[],o=t;o 0; ) {\n r_texel = read_at(ivec2(HASH_LENGTH - 1 - i, row)).ba;\n nonce_probe &= ~(r_texel.s ^ r_texel.t);\n if(nonce_probe == 0) break;\n }\n return nonce_probe;\n}\n",k_check:"\nuniform int minWeightMagnitude;\nvoid main() {\n init();\n ivec4 my_vec = read();\n if(my_coord.x == STATE_LENGTH) {\n my_vec.r = minWeightMagnitude;\n my_vec.a = check(my_coord.y, minWeightMagnitude);\n }\n commit(my_vec);\n}\n",col:"\nvoid main() {\n init();\n ivec4 my_vec = read();\n int i;\n if(my_coord.x == STATE_LENGTH && my_coord.y == 0) {\n my_vec.b = 0;\n if(my_vec.a == 0) {\n ivec4 read_vec;\n my_vec.b = -1;\n for(i = 1; i < int(size.y); i++) {\n read_vec = read_at( ivec2( STATE_LENGTH, i));\n if(read_vec.a != 0) {\n my_vec.a = read_vec.a;\n my_vec.b = i;\n break;\n }\n }\n }\n }\n commit(my_vec);\n}\n"}},function(e,t){e.exports="\nivec2 twist() {\n int alpha, beta, gamma, delta;\n ivec4 v1, v2;\n int j = my_coord.x;\n\n v1 = read_at(ivec2(j == 0? 0:(((j - 1)%2)+1)*HALF_LENGTH - ((j-1)>>1), my_coord.y));\n v2 = read_at(ivec2(((j%2)+1)*HALF_LENGTH - ((j)>>1), my_coord.y));\n alpha = v1.b;\n beta = v1.a;\n gamma = v2.a;\n delta = (alpha | (~gamma)) & (v2.b ^ beta);//v2.b === state_low[t2]\n\n return ivec2(~delta, (alpha ^ gamma) | delta);\n}\n\nvoid main() {\n init();\n ivec4 my_vec = read();\n if(my_coord.x < STATE_LENGTH)\n my_vec.ba = twist();\n commit(my_vec);\n}\n"},function(e,t){e.exports="\n// Choose high != 0 if you want to barrier rg values, 0 if you want to barrier ba\n#define WAITNUM 2\nvoid barrier(ivec2 watch_coords, int high) {\n ivec4 my_vec = read();\n if(watch_coords == my_coord) {\n int hold_index = 0;\n ivec4 hold_texel;\n my_vec.g = my_vec.a + 1;\n my_vec.b = my_vec.g + 1;\n commit(my_vec);\n while(hold_index < STATE_LENGTH) {\n hold_texel = read_at(ivec2(hold_index, my_coord.y));\n if((high == 0 && hold_texel.r == WAITNUM) ||(high != 0 && hold_texel.a == WAITNUM))\n hold_index++;\n }\n my_vec.a = my_vec.g;\n //my_vec.a = 123;\n } else {\n ivec4 watch = read_at(watch_coords); // r: val to watch, g: expected val, b: next val (should be 1+ expected val)\n int hold = high == 0 ? my_vec.r : my_vec.a;\n if(high == 0)\n my_vec.r = WAITNUM;\n else\n my_vec.a = WAITNUM;\n commit(my_vec);\n while(watch.g == watch.b || watch.a != watch.g) {\n //while(watch.g == watch.b || watch.a != 123) {\n watch = read_at(watch_coords);\n }\n }\n commit(my_vec);\n}\n"},function(e,t){e.exports="\nvoid main() {\n init();\n ivec4 my_vec = read();\n if(my_coord.y == 0 && my_coord.x == STATE_LENGTH) {\n my_vec.g = check(my_vec.b, my_vec.r);\n }\n if(my_coord.y == 0 && my_coord.x < HASH_LENGTH) {\n ivec4 info_vec = read_at(ivec2(STATE_LENGTH, 0));\n int nonce_probe = info_vec.a;\n int row = info_vec.b;\n ivec4 hash_vec = read_at(ivec2(my_coord.x, row));\n my_vec.a = (hash_vec.r & nonce_probe) == 0? 1 : ((hash_vec.g & nonce_probe) == 0? -1 : 0);\n }\n commit(my_vec);\n}\n"},function(e,t){e.exports="#define HASH_LENGTH 243\n#define NUMBER_OF_ROUNDS 81\n#define INCREMENT_START HASH_LENGTH - 64\n#define STATE_LENGTH 3 * HASH_LENGTH\n#define HALF_LENGTH 364\n#define HIGH_BITS 0xFFFFFFFF\n#define LOW_BITS 0x00000000\n"},function(e,t,r){const n=r(162),i=r(161),o=(r(160),r(159)),a=r(158),s=r(157),u=r(156),c=r(155);e.exports={init:n+s+u,increment:n+s+c,transform:n+o,col_check:n+a.col,check:n+a.do_check+a.k_check,finalize:n+a.do_check+i}},function(e,t,r){const n=r(31);let i=0,o=-1,a=3681400539,s=4059626622,u=2147475471,c=4290772992,l=3067833782,f=2412241905,h=4290781183,d=4194303;e.exports={toPair:function(e){const t={low:new Int32Array(n.STATE_LENGTH),high:new Int32Array(n.STATE_LENGTH)};return e.forEach((e,r)=>{switch(e){case 0:t.low[r]=o,t.high[r]=o;break;case 1:t.low[r]=i,t.high[r]=o;break;default:t.low[r]=o,t.high[r]=i}}),function(e,t){e.low[t+0]=a,e.low[t+1]=s,e.low[t+2]=u,e.low[t+3]=c,e.high[t+0]=l,e.high[t+1]=f,e.high[t+2]=h,e.high[t+3]=d}(t,n.NONCE_START),t},transform:function(e){var t,r,i,o,a,s,u,c,l=0;for(i=n.NUMBER_OF_ROUNDS;i-- >0;)for(r=e.low.slice(),t=e.high.slice(),o=0;o{let r=new Object;r.gl=n();let s=r.gl;r.dim={x:e,y:0};const u=.5*Math.pow(s.MAX_TEXTURE_SIZE,2),c=Math.floor(u/r.dim.x/t)*r.dim.x*t;r.dim.y=c/r.dim.x/t;let l=c;return r.programs=new Map,r.ipt=function(e){return Math.pow(Math.pow(2,Math.ceil(Math.log(e)/1.386)-1),2),{data:new Int32Array(e),length:e}}(l),r.buffers={position:i(s,[-1,-1,1,-1,1,1,-1,1]),texture:i(s,[0,0,1,0,1,1,0,1]),index:i(s,[1,2,0,3,0,2],Uint16Array,s.ELEMENT_ARRAY_BUFFER)},r.attrib={position:0,texture:1},r.vao=s.createVertexArray(),s.bindVertexArray(r.vao),((e,t,r)=>{e.bindBuffer(e.ARRAY_BUFFER,t.texture),e.enableVertexAttribArray(r.texture),e.vertexAttribPointer(r.texture,2,e.FLOAT,!1,0,0),e.bindBuffer(e.ARRAY_BUFFER,t.position),e.enableVertexAttribArray(r.position),e.vertexAttribPointer(r.position,2,e.FLOAT,!1,0,0),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.index)})(s,r.buffers,r.attrib),s.bindVertexArray(null),r.vertexShader=(e=>{var t=e.createShader(e.VERTEX_SHADER);if(e.shaderSource(t,a.vertexShaderCode),e.compileShader(t),!e.getShaderParameter(t,e.COMPILE_STATUS))throw new Error("\nturbojs: Could not build internal vertex shader (fatal).\n\nINFO: >REPORT< THIS. That's our fault!\n\n--- CODE DUMP ---\n"+a.vertexShaderCode+"\n\n--- ERROR LOG ---\n"+e.getShaderInfoLog(t));return t})(s),r.framebuffer=s.createFramebuffer(),r.texture0=o(s,r.ipt.data,r.dim),r.texture1=o(s,new Int32Array(l),r.dim),r},addProgram:(e,t,r,...n)=>{let i=e.gl,o=e.vertexShader;var s=((e,t)=>{var r=e.createShader(e.FRAGMENT_SHADER);if(e.shaderSource(r,a.stdlib+t),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS)){for(var n=t.split("\n"),i="ERROR: Could not build shader (fatal).\n\n------------------ KERNEL CODE DUMP ------------------\n",o=0;o "+n[o]+"\n";throw i+="\n--------------------- ERROR LOG ---------------------\n"+e.getShaderInfoLog(r),new Error(i)}return r})(e.gl,r),u=i.createProgram();i.attachShader(u,o),i.attachShader(u,s),i.bindAttribLocation(u,e.attrib.position,"position"),i.bindAttribLocation(u,e.attrib.texture,"texture"),i.linkProgram(u);var c=new Map;for(var l of n)c.set(l,i.getUniformLocation(u,l));e.programs.get(t)&&console.log("program exists"),e.programs.set(t,{program:u,u_vars:c})},run:(e,t,r,...n)=>{let i=e.gl,o=e.programs.get(t),a=o.program,u=o.u_vars;if(null===a)throw new Error("No Such Program!");if(!i.getProgramParameter(a,i.LINK_STATUS))throw new Error("turbojs: Failed to link GLSL program code.");var c=i.getUniformLocation(a,"u_texture");for(i.useProgram(a),r=r||1;r-- >0;){for(var l of(i.bindTexture(i.TEXTURE_2D,e.texture0),i.activeTexture(i.TEXTURE0),i.uniform1i(c,0),i.viewport(0,0,e.dim.x,e.dim.y),s(i,e.framebuffer,e.texture1,e.dim),i.bindVertexArray(e.vao),n))i.uniform1i(u.get(l.n),l.v);i.drawElements(i.TRIANGLES,6,i.UNSIGNED_SHORT,0);let t=e.texture0;e.texture0=e.texture1,e.texture1=t}(e=>{e.bindVertexArray(null),e.bindTexture(e.TEXTURE_2D,null),e.bindFramebuffer(e.FRAMEBUFFER,null)})(i)},readData:(e,t,r,n,i)=>{let o=e.gl;return t=t||0,r=r||0,n=n||e.dim.x,i=i||e.dim.y,o.bindFramebuffer(o.FRAMEBUFFER,e.framebuffer),o.readPixels(t,r,n,i,o.RGBA_INTEGER,o.INT,e.ipt.data),o.bindFramebuffer(o.FRAMEBUFFER,null),e.ipt.data.subarray(0,e.ipt.length)},writeData:(e,t)=>{let r=e.gl;r.bindTexture(r.TEXTURE_2D,e.texture0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA32I,e.dim.x,e.dim.y,0,r.RGBA_INTEGER,r.INT,t),r.bindTexture(r.TEXTURE_2D,null)}}},function(e,t,r){var n=r(9),i=r(13),o=r(20);r(33),r(48),r(32);function a(e){if(!(this instanceof a))return new a(e);this._kerl=new o,this._kerl.initialize(),e&&this.absorb(e)}a.prototype.absorb=function(e){for(var t=Array.isArray(e)?e:[e],r=0;r2187){d+=Math.floor(r[h].message.length/2187);for(var p=r[h].message;p;){var v=p.slice(0,2187);p=p.slice(2187,p.length);for(var g=0;v.length<2187;g++)v+="9";f.push(v)}}else{v="";r[h].message&&(v=r[h].message.slice(0,2187));for(g=0;v.length<2187;g++)v+="9";f.push(v)}var y=Math.floor(Date.now()/1e3);i=r[h].tag?r[h].tag:"999999999999999999999999999";for(g=0;i.length<27;g++)i+="9";o.addEntry(d,r[h].address.slice(0,81),r[h].value,i,y),a+=parseInt(r[h].value)}if(!a)return n(new Error("Invalid value transfer: the transfer does not require a signature."));{function m(r,n){if(r>0){var s=0-r,u=Math.floor(Date.now()/1e3);o.addEntry(e.securitySum,e.address,s,i,u)}if(a>r)return n(new Error("Not enough balance."));if(r>a){var c=r-a;if(!t)return n(new Error("No remainder address defined"));o.addEntry(1,t,c,i,u)}return o.finalize(),o.addTrytes(f),n(null,o.bundle)}if(e.balance)m(e.balance,n);else{var b={command:"getBalances",addresses:new Array(e.address),threshold:100};this._makeRequest.send(b,function(e,t){if(e)return n(e);m(parseInt(t.balances[0]),n)})}}},h.addSignature=function(e,t,r,o){var a=new s;a.bundle=e;for(var u=r.length/2187,l=(r=i.trits(r),0),f=0;f0){var a=i.trits(e.bundle[o].bundle),s=new Int8Array(243);t.initialize(),t.absorb(r),t.absorb(a),t.squeeze(s);var u=i.trytes(s);e.bundle[o].signatureMessageFragment=u+e.bundle[o].signatureMessageFragment.substring(81,2187)}},e.exports=o},function(e,t){var r=new Uint32Array([2781776228,2667607657,344215631,987627737,203704430,1352113495,2040841986,1220259382,2851504267,2852562949,2826939359,1583999983]),n=function(e){return void 0!==e.slice?e.slice():function(e){var t=new ArrayBuffer(e.byteLength);return new Uint32Array(t).set(new Uint32Array(e)),t}(e)},i=function(e){if(void 0===e.reverse)for(var t=0,r=e.length,n=Math.floor(r/2),i=null;t>>0},a=function(e,t){return e/Math.pow(2,t)>>>0},s=function(e){return(255&e)<<24|(65280&e)<<8|e>>8&65280|e>>24&255},u=function(e,t,r){var n=e+t,i=4294967295&a(n,32),o=(4294967295&n)>>>0,s=0!=i;return r&&(n=o+1),i=4294967295&a(n,32),[o=(4294967295&n)>>>0,s||0!=i]},c=function(e,t){for(var r=!0,n=0;n>>0,r);e[n]=i[0],r=i[1]}if(!r)throw"noborrow"},l=function(e,t){for(var r=e.length;r-- >0;){var n=e[r]>>>0,i=t[r]>>>0;if(ni)return 1}return 0},f=function(e,t){var r=u(e[0],t,!1);e[0]=r[0];for(var n=r[1],i=1;n&&i0;){for(var d=e[h]+1,p=u,v=0,g=0;g>>0}v>0&&(t[p]=v,u+=1),(p=f(t,d))>u&&(u=p)}if(!function(e){for(var t=0;t>31==0)!function(e,t){for(var r=!1,n=0;n0)c(a,r),s=!0;else{f(a,1);var h=n(r);c(h,a),a=h}for(var d=0,p=0;p<242;p++){d=0;for(var v=11;v>=0;v--){var g=(0!=d?4294967295*d+d:0)+a[v],y=g/3>>>0,m=g%3>>>0;a[v]=y,d=m}t[p]=d-1}if(s)for(p=0;p(t,r,n)=>(n%e==0?t.push([r]):t[t.length-1].push(r))&&t,d=(e,t,r)=>(e.context?(r>=u.HASH_LENGTH||r<=0)&&Promise.reject(new Error("Bad Min-Weight Magnitude")):Promise.reject(new Error("Webgl2 Is not Available")),new Promise((i,o)=>{e.queue.push({states:t,mwm:r,call:((e,t,r,i)=>(t,r)=>{e(n.trytes(t))})(i)}),e.state==c&&p(e)})),p=e=>{var t=e.queue.shift();e.state!=l?null!=t&&(e.state=l,g(e,t)):e.state=c},v=(e,t)=>{if(o.run(e.context,"increment"),o.run(e.context,"twist",u.NUMBER_OF_ROUNDS),o.run(e.context,"check",1,{n:"minWeightMagnitude",v:t.mwm}),o.run(e.context,"col_check"),-1===o.readData(e.context,u.STATE_LENGTH,0,1,1)[2]){if(e.state==f)return e._save(t);setTimeout(()=>v(e,t),1)}else o.run(e.context,"finalize"),t.call(o.readData(e.context,0,0,e.context.dim.x,1).reduce(h(4),[]).slice(0,u.HASH_LENGTH).map(e=>e[3]),t),p(e)},g=(e,t)=>{((e,t)=>{for(var r=0;rv(e,t),1)};e.exports={instance:e=>{if(o){let t=new Object;return t.context=o.worker(u.STATE_LENGTH+1,4),t.offset=t.context.dim.y*(e||0),t.buf=t.context.ipt.data,o.addProgram(t.context,"init",s.init,"gr_offset"),o.addProgram(t.context,"increment",s.increment),o.addProgram(t.context,"twist",s.transform),o.addProgram(t.context,"check",s.check,"minWeightMagnitude"),o.addProgram(t.context,"col_check",s.col_check),o.addProgram(t.context,"finalize",s.finalize),t.state=c,t.queue=[],t}},offsetState:e=>a.toPair(n.trits(e)),prepare:(e,t)=>{var r=new i;let o=n.trits(e);return r.absorb(o,0,u.TRANSACTION_LENGTH-u.HASH_LENGTH),o.slice(u.TRANSACTION_LENGTH-u.HASH_LENGTH,u.TRANSACTION_LENGTH).forEach((e,t)=>{r.state[t]=e}),states=a.toPair(r.state),states},search:d,doNext:p}},function(e,t,r){const n=r(175),i=r(78),o=r(31),a=r(81).converter,s=a.fromValue(0x10000000000000000);let u;const c=(e,t,r)=>{let i;"trytes"in e?i=n.prepare(e.trytes):"state"in e?i=n.offsetState(e.state):r("Error: no trytes or state matrix provided");let o=n.search(u,i,e.minWeight);return"function"==typeof t&&o.then(t).catch(r),o};e.exports={init:()=>null!=(u=n.instance()),pow:c,prepare:n.prepare,setOffset:e=>{u.offset=e},interrupt:()=>interrupt(u),resume:()=>n.doNext(u),remove:()=>u.queue.unshift(),overrideAttachToTangle:e=>{e.attachToTangle=((e,t,r,n,u)=>{let l=t,f=e;const h=new i,d=new Int8Array(o.HASH_LENGTH);var p=e=>new Promise(function(t,n){h.reset();const i=e.substr(0,e.length-243).concat(f).concat(l);h.absorb(a.trits(i),0,o.TRANSACTION_LENGTH-o.HASH_LENGTH),a.trits(e.substr(e.length-81,e.length)).forEach((e,t)=>h.state[t]=e),a.trits(e.substr(2295,2322)).forEach((e,t)=>h.state[t]=e),(e=>{const t=e.subarray(o.TIMESTAMP_START,o.TIMESTAMP_LOWER_BOUND_START),r=e.subarray(o.TIMESTAMP_UPPER_BOUND_START,o.NONCE_START);t.fill(0),a.fromValue(Date.now()).map((e,r)=>t[r]=e),e.subarray(o.TIMESTAMP_LOWER_BOUND_START,o.TIMESTAMP_UPPER_BOUND_START).fill(0),r.fill(0),s.map((e,t)=>r[t]=e)})(h.state),c({state:a.trytes(h.state),minWeight:r}).then(e=>{t(i.concat(e))})}),v=[];!function e(t){t==n.length?u(null,v):p(n[t]).then(function(r){console.log("result:",r);var n=a.trits(r);h.reset(),h.absorb(n,0,n.length),h.squeeze(d,0,o.HASH_LENGTH),l=f,f=a.trytes(d),v.push(r),e(t+1)}).catch(u)}(0)})}}},function(e){e.exports={name:"iota.lib.js",version:"0.4.7",description:"Javascript Library for IOTA",main:"./lib/iota.js",scripts:{build:"gulp",test:"mocha"},author:{name:"Dominik Schiener (IOTA Foundation)",website:"https://iota.org"},keywords:["iota","tangle","library","browser","javascript","nodejs","API"],license:"MIT",bugs:{url:"https://github.com/iotaledger/iota.lib.js/issues"},repository:{type:"git",url:"https://github.com/iotaledger/iota.lib.js.git"},dependencies:{async:"^2.5.0","bignumber.js":"^4.1.0","crypto-js":"^3.1.9-1",xmlhttprequest:"^1.8.0"},devDependencies:{bower:">=1.8.0",browserify:">=14.1.0",chai:"^4.0.2",del:"^3.0.0",gulp:"^3.9.1","gulp-jshint":"^2.0.2","gulp-nsp":">=2.4.2","gulp-rename":">=1.2.2","gulp-replace":"^0.6.1","gulp-uglify":"^3.0.0",jshint:"^2.9.4",mocha:"^3.2.0","vinyl-buffer":"^1.0.0","vinyl-source-stream":"^1.1.0"}}},function(e,t,r){var n=r(10),i=r(14),o=r(27);r(37),r(24),r(23);function a(e){if(!(this instanceof a))return new a(e);this._kerl=new o,this._kerl.initialize(),e&&this.absorb(e)}a.prototype.absorb=function(e){for(var t=Array.isArray(e)?e:[e],r=0;r2187){d+=Math.floor(r[h].message.length/2187);for(var p=r[h].message;p;){var v=p.slice(0,2187);p=p.slice(2187,p.length);for(var g=0;v.length<2187;g++)v+="9";f.push(v)}}else{v="";r[h].message&&(v=r[h].message.slice(0,2187));for(g=0;v.length<2187;g++)v+="9";f.push(v)}var y=Math.floor(Date.now()/1e3);i=r[h].tag?r[h].tag:"999999999999999999999999999";for(g=0;i.length<27;g++)i+="9";o.addEntry(d,r[h].address.slice(0,81),r[h].value,i,y),a+=parseInt(r[h].value)}if(!a)return n(new Error("Invalid value transfer: the transfer does not require a signature."));{function m(r,n){if(r>0){var s=0-r,u=Math.floor(Date.now()/1e3);o.addEntry(e.securitySum,e.address,s,i,u)}if(a>r)return n(new Error("Not enough balance."));if(r>a){var c=r-a;if(!t)return n(new Error("No remainder address defined"));o.addEntry(1,t,c,i,u)}return o.finalize(),o.addTrytes(f),n(null,o.bundle)}if(e.balance)m(e.balance,n);else{var b={command:"getBalances",addresses:new Array(e.address),threshold:100};this._makeRequest.send(b,function(e,t){if(e)return n(e);m(parseInt(t.balances[0]),n)})}}},h.prototype.addSignature=function(e,t,r,o){var a=new s;a.bundle=e;for(var u=r.length/2187,l=(r=i.trits(r),0),f=0;f0){var a=i.trits(e.bundle[o].bundle),s=new Int8Array(243);t.initialize(),t.absorb(r),t.absorb(a),t.squeeze(s);var u=i.trytes(s);e.bundle[o].signatureMessageFragment=u+e.bundle[o].signatureMessageFragment.substring(81,2187)}},e.exports=o},function(e,t){e.exports={attachToTangle:function(e,t,r,n){return{command:"attachToTangle",trunkTransaction:e,branchTransaction:t,minWeightMagnitude:r,trytes:n}},findTransactions:function(e){var t={command:"findTransactions"},r=["bundles","addresses","tags","approvees"];return Object.keys(e).forEach(function(n){r.indexOf(n)>-1&&(t[n]=e[n])}),t},getBalances:function(e,t){return{command:"getBalances",addresses:e,threshold:t}},getInclusionStates:function(e,t){return{command:"getInclusionStates",transactions:e,tips:t}},getNodeInfo:function(){return{command:"getNodeInfo"}},getNeighbors:function(){return{command:"getNeighbors"}},addNeighbors:function(e){return{command:"addNeighbors",uris:e}},removeNeighbors:function(e){return{command:"removeNeighbors",uris:e}},getTips:function(){return{command:"getTips"}},getTransactionsToApprove:function(e,t){var r={command:"getTransactionsToApprove",depth:e};return void 0!=t&&(r.reference=t),r},getTrytes:function(e){return{command:"getTrytes",hashes:e}},interruptAttachingToTangle:function(){return{command:"interruptAttachingToTangle"}},checkConsistency:function(e){return{command:"checkConsistency",tails:e}},broadcastTransactions:function(e){return{command:"broadcastTransactions",trytes:e}},storeTransactions:function(e){return{command:"storeTransactions",trytes:e}},wereAddressesSpentFrom:function(e){return{command:"wereAddressesSpentFrom",addresses:e}}}},function(e,t,r){var n=r(181),i=r(50),o=r(23),a=r(180),s=r(10),u=r(37),c=r(36),l=r(24),f=r(85),h=new Array(244).join("9");function d(e,t){this._makeRequest=e,this.sandbox=t}d.prototype.sendCommand=function(e,t){var r=["addresses","bundles","hashes","tags","transactions","approvees"];if(["findTransactions","getBalances","getInclusionStates","getTrytes"].indexOf(e.command)>-1){var n=Object.keys(e).filter(function(t){return r.indexOf(t)>-1&&e[t].length>1e3});if(n.length)return this._makeRequest.batchedSend(e,n,1e3,t)}return this._makeRequest.send(e,t)},d.prototype.attachToTangle=function(e,t,r,a,s){if(!o.isHash(e))return s(i.invalidTrunkOrBranch(e));if(!o.isHash(t))return s(i.invalidTrunkOrBranch(t));if(!o.isValue(r))return s(i.notInt());if(!o.isArrayOfTrytes(a))return s(i.invalidTrytes());var u=n.attachToTangle(e,t,r,a);return this.sendCommand(u,s)},d.prototype.findTransactions=function(e,t){if(!o.isObject(e))return t(i.invalidKey());var r=["bundles","addresses","tags","approvees"],a=!1;if(Object.keys(e).forEach(function(t){if(-1!==r.indexOf(t)){"addresses"===t&&(e.addresses=e.addresses.map(function(e){return l.noChecksum(e)}));var n=e[t];if("tags"===t)e.tags=n.map(function(e){for(;e.length<27;)e+="9";if(o.isTrytes(e,27))return e;a=i.invalidTrytes()});else if(!o.isArrayOfHashes(n))return void(a=i.invalidTrytes())}else a=i.invalidKey()}),!a){var s=n.findTransactions(e);return this.sendCommand(s,t)}t(a)},d.prototype.getBalances=function(e,t,r){if(!o.isArrayOfHashes(e))return r(i.invalidTrytes());var a=n.getBalances(e.map(function(e){return l.noChecksum(e)}),t);return this.sendCommand(a,r)},d.prototype.getInclusionStates=function(e,t,r){if(!o.isArrayOfHashes(e))return r(i.invalidTrytes());if(!o.isArrayOfHashes(t))return r(i.invalidTrytes());var a=n.getInclusionStates(e,t);return this.sendCommand(a,r)},d.prototype.getNodeInfo=function(e){var t=n.getNodeInfo();return this.sendCommand(t,e)},d.prototype.getNeighbors=function(e){var t=n.getNeighbors();return this.sendCommand(t,e)},d.prototype.addNeighbors=function(e,t){for(var r=0;r0))return s(i,o);setTimeout(function(){u.promoteTransaction(e,t,r,n,a,s)},a.delay)}):s(i.inconsistentSubtangle(e))}).catch(function(e){s(e)})},d.prototype.replayBundle=function(e,t,r,n){var a=this;return o.isHash(e)?o.isValue(t)&&o.isValue(r)?void a.getBundle(e,function(e,i){if(e)return n(e);var o=[];return i.forEach(function(e){o.push(l.transactionTrytes(e))}),a.sendTrytes(o.reverse(),t,r,n)}):n(i.invalidInputs()):n(i.invalidTrytes())},d.prototype.broadcastBundle=function(e,t){var r=this;if(!o.isHash(e))return t(i.invalidTrytes());r.getBundle(e,function(e,n){if(e)return t(e);var i=[];return n.forEach(function(e){i.push(l.transactionTrytes(e))}),r.broadcastTransactions(i.reverse(),t)})},d.prototype._newAddress=function(e,t,r,n){var i=u.key(s.trits(e),t,r),o=u.digests(i),a=u.address(o),c=s.trytes(a);return n&&(c=l.addChecksum(c)),c},d.prototype.getNewAddress=function(e,t,r){var n=this;if(2===arguments.length&&"[object Function]"===Object.prototype.toString.call(t)&&(r=t,t={}),!o.isTrytes(e))return r(i.invalidSeed());var a=0;if("index"in t&&(a=t.index,!o.isValue(a)||a<0))return r(i.invalidIndex());var s=t.checksum||!1,u=t.total||null,c=2;if("security"in t&&(c=t.security,!o.isValue(c)||c<1||c>3))return r(i.invalidSecurity());var l=[];if(u){for(var h=0;h0)})})},function(e,t){return t},function(e,n){if(e)return r(e);var i=t.returnAll?l:n;return r(null,i)})},d.prototype.getInputs=function(e,t,r){var n=this;if(2===arguments.length&&"[object Function]"===Object.prototype.toString.call(t)&&(r=t,t={}),!o.isTrytes(e))return r(i.invalidSeed());var a=t.start||0,s=t.end||null,u=t.threshold||null,c=t.security||2;if(t.end&&(a>s||s>a+500))return r(new Error("Invalid inputs provided"));if(s){for(var l=[],f=a;f0){var f={address:e[s],balance:l,keyIndex:a+s,security:c};if(i.inputs.push(f),i.totalBalance+=l,u&&i.totalBalance>=u){o=!0;break}}}return o?r(null,i):r(new Error("Not enough balance"))})}},d.prototype.prepareTransfers=function(e,t,r,n){var f=this,d=!1,p=!1;if(3===arguments.length&&"[object Function]"===Object.prototype.toString.call(r)&&(n=r,r={}),!o.isTrytes(e))return n(i.invalidSeed());if(r.hasOwnProperty("hmacKey")&&r.hmacKey){if(!o.isTrytes(r.hmacKey))return n(i.invalidTrytes());d=!0}if(t.forEach(function(e){if(e.message=e.message?e.message:"",e.obsoleteTag=e.tag?e.tag:e.obsoleteTag?e.obsoleteTag:"",d&&e.value>0&&(e.message=h+e.message,p=!0),90===e.address.length&&!l.isValidChecksum(e.address))return n(i.invalidChecksum(e.address));e.address=l.noChecksum(e.address)}),!o.isTransfersArray(t))return n(i.invalidTransfers());if(r.inputs&&!o.isInputs(r.inputs))return n(i.invalidInputs());for(var v,g=r.address||null,y=(r.inputs,r.security||2),m=new c,b=0,_=[],w=0;w2187){E+=Math.floor(t[w].message.length/2187);for(var S=t[w].message;S;){var x=S.slice(0,2187);S=S.slice(2187,S.length);for(var T=0;x.length<2187;T++)x+="9";_.push(x)}}else{x="";t[w].message&&(x=t[w].message.slice(0,2187));for(T=0;x.length<2187;T++)x+="9";_.push(x)}var A=Math.floor(Date.now()/1e3);v=t[w].obsoleteTag?t[w].obsoleteTag:"999999999999999999999999999";for(T=0;v.length<27;T++)v+="9";m.addEntry(E,t[w].address,t[w].value,v,A),b+=parseInt(t[w].value)}if(!b){m.finalize(),m.addTrytes(_);var k=[];return m.bundle.forEach(function(e){k.push(l.transactionTrytes(e))}),n(null,k.reverse())}if(r.inputs){var O=[];r.inputs.forEach(function(e){O.push(e.address)}),f.getBalances(O,100,function(e,t){if(e)return n(e);for(var i=[],o=0,a=0;a0){o+=s;var u=r.inputs[a];if(u.balance=s,i.push(u),o>=b)break}}if(b>o)return n(new Error("Not enough balance"));C(i)})}else f.getInputs(e,{threshold:b,security:y},function(e,t){if(e)return n(e);C(t.inputs)});function C(t){for(var r=b,i=0;i=r){var u=o-r;if(u>0&&g)m.addEntry(1,g,u,v,s),I(t);else if(u>0){for(var c=0,l=0;ln?1:0}),r(e,a)})}])})})},d.prototype.getTransfers=function(e,t,r){var n=this;if(2===arguments.length&&"[object Function]"===Object.prototype.toString.call(t)&&(r=t,t={}),!o.isTrytes(e))return r(i.invalidSeed(e));var a=t.start||0,s=t.end||null,u=t.inclusionStates||null,c=t.security||2;if(a>s||s>a+500)return r(new Error("Invalid inputs provided"));var l={index:a,total:s?s-a:null,returnAll:!0,security:c};n.getNewAddress(e,l,function(e,t){return e?r(e):n._bundlesFromAddresses(t,u,r)})},d.prototype.getAccountData=function(e,t,r){var n=this;if(2===arguments.length&&"[object Function]"===Object.prototype.toString.call(t)&&(r=t,t={}),!o.isTrytes(e))return r(i.invalidSeed(e));var a=t.start||0,s=t.end||null,u=t.security||2;if(s&&(a>s||s>a+1e3))return r(new Error("Invalid inputs provided"));var c={latestAddress:"",addresses:[],transfers:[],inputs:[],balance:0},l={index:a,total:s?s-a:null,returnAll:!0,security:u};n.getNewAddress(e,l,function(e,t){if(e)return r(e);c.latestAddress=t[t.length-1],c.addresses=t.slice(0,-1),n._bundlesFromAddresses(t,!0,function(e,t){if(e)return r(e);c.transfers=t,n.getBalances(c.addresses,100,function(e,t){return e?r(e):(t.balances.forEach(function(e,t){e=parseInt(e);if(c.balance+=e,e>0){var r={address:c.addresses[t],keyIndex:t,security:u,balance:e};c.inputs.push(r)}}),r(null,c))})})})},d.prototype.isReattachable=function(e,t){var r=this;o.isString(e)&&(e=new Array(e));for(var n={},a=[],s=0;s0)){var s=[],u=a.length;if(u>1)for(var c=0;c0||e===t?t:t-1}function _(e){for(var t,r,n=1,i=e.length,o=e[0]+"";nc^r?1:-1;for(s=(u=i.length)<(c=o.length)?u:c,a=0;ao[a]^r?1:-1;return u==c?0:u>c^r?1:-1}function E(e,t,r){return(e=k(e))>=t&&e<=r}function S(e){return"[object Array]"==Object.prototype.toString.call(e)}function x(e,t,r){for(var n,i,o=[0],a=0,s=e.length;ar-1&&(null==o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}function T(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function A(e,t){var r,n;if(t<0){for(n="0.";++t;n+="0");e=n+e}else if(++t>(r=e.length)){for(n="0",t-=r;--t;n+="0");e+=n}else t15&&$(i,f,e),c=!1):g.s=45===d.charCodeAt(0)?(d=d.slice(1),-1):1,d=z(d,10,t,g.s)}else{if(e instanceof F)return g.s=e.s,g.e=e.e,g.c=(e=e.c)?e.slice():e,void(i=0);if((c="number"==typeof e)&&0*e==0){if(g.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,s=e;s>=10;s/=10,o++);return g.e=o,g.c=[e],void(i=0)}d=e+""}else{if(!a.test(d=e+""))return n(g,d,c);g.s=45===d.charCodeAt(0)?(d=d.slice(1),-1):1}}for((o=d.indexOf("."))>-1&&(d=d.replace(".","")),(s=d.search(/e/i))>0?(o<0&&(o=s),o+=+d.slice(s+1),d=d.substring(0,s)):o<0&&(o=d.length),s=0;48===d.charCodeAt(s);s++);for(l=d.length;48===d.charCodeAt(--l););if(d=d.slice(s,l+1))if(l=d.length,c&&j&&l>15&&(e>v||e!==u(e))&&$(i,f,g.s*e),(o=o-s-1)>P)g.c=g.e=null;else if(o=0&&(s=U,U=0,e=e.replace(".",""),c=(f=new F(n)).pow(e.length-d),U=s,f.c=x(A(_(c.c),c.e),10,t),f.e=f.c.length),a=s=(l=x(e,n,t)).length;0==l[--s];l.pop());if(!l[0])return"0";if(d<0?--a:(c.c=l,c.e=a,c.s=i,l=(c=r(c,f,p,v,t)).c,u=c.r,a=c.e),d=l[o=a+p+1],s=t/2,u=u||o<0||null!=l[o+1],u=v<4?(null!=d||u)&&(0==v||v==(c.s<0?3:2)):d>s||d==s&&(4==v||u||6==v&&1&l[o-1]||v==(c.s<0?8:7)),o<1||!l[0])e=u?A("1",-p):"0";else{if(l.length=o,u)for(--t;++l[--o]>t;)l[o]=0,o||(++a,l=[1].concat(l));for(s=l.length;!l[--s];);for(d=0,e="";d<=s;e+=h.charAt(l[d++]));e=A(e,a)}return e}function G(e,t,r,n){var i,o,a,s,u;if(r=null!=r&&H(r,0,8,n,l)?0|r:I,!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)u=_(e.c),u=19==n||24==n&&a<=N?T(u,a):A(u,a);else if(o=(e=K(new F(e),t,r)).e,s=(u=_(e.c)).length,19==n||24==n&&(t<=o||o<=N)){for(;ss){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=o-s)>0)for(o+1==s&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function W(e,t){var r,n,i=0;for(S(e[0])&&(e=e[0]),r=new F(e[0]);++ir||e!=k(e))&&$(n,(i||"decimal places")+(er?" out of range":" not an integer"),e),!0}function q(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*p-1)>P?e.c=e.e=null:r=10;c/=10,i++);if((o=t-i)<0)o+=p,a=t,h=(l=v[f=0])/y[i-a-1]%10|0;else if((f=s((o+1)/p))>=v.length){if(!n)break e;for(;v.length<=f;v.push(0));l=h=0,i=1,a=(o%=p)-p+1}else{for(l=c=v[f],i=1;c>=10;c/=10,i++);h=(a=(o%=p)-p+i)<0?0:l/y[i-a-1]%10|0}if(n=n||t<0||null!=v[f+1]||(a<0?l:l%y[i-a-1]),n=r<4?(h||n)&&(0==r||r==(e.s<0?3:2)):h>5||5==h&&(4==r||n||6==r&&(o>0?a>0?l/y[i-a]:0:v[f-1])%10&1||r==(e.s<0?8:7)),t<1||!v[0])return v.length=0,n?(t-=e.e+1,v[0]=y[(p-t%p)%p],e.e=-t||0):v[0]=e.e=0,e;if(0==o?(v.length=f,c=1,f--):(v.length=f+1,c=y[p-o],v[f]=a>0?u(l/y[i-a]%y[a])*c:0),n)for(;;){if(0==f){for(o=1,a=v[0];a>=10;a/=10,o++);for(a=v[0]+=c,c=1;a>=10;a/=10,c++);o!=c&&(e.e++,v[0]==d&&(v[0]=1));break}if(v[f]+=c,v[f]!=d)break;v[f--]=0,c=1}for(o=v.length;0===v[--o];v.pop());}e.e>P?e.c=e.e=null:e.er)return null!=(e=o[r++])};return s(t="DECIMAL_PLACES")&&H(e,0,m,2,t)&&(C=0|e),n[t]=C,s(t="ROUNDING_MODE")&&H(e,0,8,2,t)&&(I=0|e),n[t]=I,s(t="EXPONENTIAL_AT")&&(S(e)?H(e[0],-m,0,2,t)&&H(e[1],0,m,2,t)&&(N=0|e[0],R=0|e[1]):H(e,-m,m,2,t)&&(N=-(R=0|(e<0?-e:e)))),n[t]=[N,R],s(t="RANGE")&&(S(e)?H(e[0],-m,-1,2,t)&&H(e[1],1,m,2,t)&&(B=0|e[0],P=0|e[1]):H(e,-m,m,2,t)&&(0|e?B=-(P=0|(e<0?-e:e)):j&&$(2,t+" cannot be zero",e))),n[t]=[B,P],s(t="ERRORS")&&(e===!!e||1===e||0===e?(i=0,H=(j=!!e)?V:E):j&&$(2,t+c,e)),n[t]=j,s(t="CRYPTO")&&(!0===e||!1===e||1===e||0===e?e?!(e="undefined"==typeof crypto)&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?M=!0:j?$(2,"crypto unavailable",e?void 0:crypto):M=!1:M=!1:j&&$(2,t+c,e)),n[t]=M,s(t="MODULO_MODE")&&H(e,0,9,2,t)&&(D=0|e),n[t]=D,s(t="POW_PRECISION")&&H(e,0,m,2,t)&&(U=0|e),n[t]=U,s(t="FORMAT")&&("object"==typeof e?L=e:j&&$(2,t+" not an object",e)),n[t]=L,n},F.max=function(){return W(arguments,o.lt)},F.min=function(){return W(arguments,o.gt)},F.random=function(){var e=9007199254740992*Math.random()&2097151?function(){return u(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(t){var r,n,i,o,a,c=0,l=[],f=new F(O);if(t=null!=t&&H(t,0,m,14)?0|t:C,o=s(t/p),M)if(crypto.getRandomValues){for(r=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),r[c]=n[0],r[c+1]=n[1]):(l.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(r=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(r,c):(l.push(a%1e14),c+=7);c=o/7}else M=!1,j&&$(14,"crypto unavailable",crypto);if(!M)for(;c=10;a/=10,c++);cn?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]1;e.splice(0,1));}return function(n,i,o,a,s){var c,l,f,h,v,g,y,m,_,w,E,S,x,T,A,k,O,C=n.s==i.s?1:-1,I=n.c,N=i.c;if(!(I&&I[0]&&N&&N[0]))return new F(n.s&&i.s&&(I?!N||I[0]!=N[0]:N)?I&&0==I[0]||!N?0*C:C/0:NaN);for(_=(m=new F(C)).c=[],C=o+(l=n.e-i.e)+1,s||(s=d,l=b(n.e/p)-b(i.e/p),C=C/p|0),f=0;N[f]==(I[f]||0);f++);if(N[f]>(I[f]||0)&&l--,C<0)_.push(1),h=!0;else{for(T=I.length,k=N.length,f=0,C+=2,(v=u(s/(N[0]+1)))>1&&(N=e(N,v,s),I=e(I,v,s),k=N.length,T=I.length),x=k,E=(w=I.slice(0,k)).length;E=s/2&&A++;do{if(v=0,(c=t(N,w,k,E))<0){if(S=w[0],k!=E&&(S=S*s+(w[1]||0)),(v=u(S/A))>1)for(v>=s&&(v=s-1),y=(g=e(N,v,s)).length,E=w.length;1==t(g,w,y,E);)v--,r(g,k=10;C/=10,f++);K(m,o+(m.e=f+l*p-1)+1,a,h)}else m.e=l,m.r=+h;return m}}(),n=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,r=/^\.([^.]+)$/,n=/^-?(Infinity|NaN)$/,o=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(a,s,u,c){var l,f=u?s:s.replace(o,"");if(n.test(f))a.s=isNaN(f)?null:f<0?-1:1;else{if(!u&&(f=f.replace(e,function(e,t,r){return l="x"==(r=r.toLowerCase())?16:"b"==r?2:8,c&&c!=l?e:t}),c&&(l=c,f=f.replace(t,"$1").replace(r,"0.$1")),s!=f))return new F(f,l);j&&$(i,"not a"+(c?" base "+c:"")+" number",s),a.s=null}a.c=a.e=null,i=0}}(),o.absoluteValue=o.abs=function(){var e=new F(this);return e.s<0&&(e.s=1),e},o.ceil=function(){return K(new F(this),this.e+1,2)},o.comparedTo=o.cmp=function(e,t){return i=1,w(this,new F(e,t))},o.decimalPlaces=o.dp=function(){var e,t,r=this.c;if(!r)return null;if(e=((t=r.length-1)-b(this.e/p))*p,t=r[t])for(;t%10==0;t/=10,e--);return e<0&&(e=0),e},o.dividedBy=o.div=function(e,t){return i=3,r(this,new F(e,t),C,I)},o.dividedToIntegerBy=o.divToInt=function(e,t){return i=4,r(this,new F(e,t),0,1)},o.equals=o.eq=function(e,t){return i=5,0===w(this,new F(e,t))},o.floor=function(){return K(new F(this),this.e+1,3)},o.greaterThan=o.gt=function(e,t){return i=6,w(this,new F(e,t))>0},o.greaterThanOrEqualTo=o.gte=function(e,t){return i=7,1===(t=w(this,new F(e,t)))||0===t},o.isFinite=function(){return!!this.c},o.isInteger=o.isInt=function(){return!!this.c&&b(this.e/p)>this.c.length-2},o.isNaN=function(){return!this.s},o.isNegative=o.isNeg=function(){return this.s<0},o.isZero=function(){return!!this.c&&0==this.c[0]},o.lessThan=o.lt=function(e,t){return i=8,w(this,new F(e,t))<0},o.lessThanOrEqualTo=o.lte=function(e,t){return i=9,-1===(t=w(this,new F(e,t)))||0===t},o.minus=o.sub=function(e,t){var r,n,o,a,s=this,u=s.s;if(i=10,t=(e=new F(e,t)).s,!u||!t)return new F(NaN);if(u!=t)return e.s=-t,s.plus(e);var c=s.e/p,l=e.e/p,f=s.c,h=e.c;if(!c||!l){if(!f||!h)return f?(e.s=-t,e):new F(h?s:NaN);if(!f[0]||!h[0])return h[0]?(e.s=-t,e):new F(f[0]?s:3==I?-0:0)}if(c=b(c),l=b(l),f=f.slice(),u=c-l){for((a=u<0)?(u=-u,o=f):(l=c,o=h),o.reverse(),t=u;t--;o.push(0));o.reverse()}else for(n=(a=(u=f.length)<(t=h.length))?u:t,u=t=0;t0)for(;t--;f[r++]=0);for(t=d-1;n>u;){if(f[--n]0?(s=a,r=c):(o=-o,r=u),r.reverse();o--;r.push(0));r.reverse()}for((o=u.length)-(t=c.length)<0&&(r=c,c=u,u=r,t=o),o=0;t;)o=(u[--t]=u[t]+c[t]+o)/d|0,u[t]=d===u[t]?0:u[t]%d;return o&&(u=[o].concat(u),++s),q(e,u,s)},o.precision=o.sd=function(e){var t,r,n=this,i=n.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&(j&&$(13,"argument"+c,e),e!=!!e&&(e=null)),!i)return null;if(t=(r=i.length-1)*p+1,r=i[r]){for(;r%10==0;r/=10,t--);for(r=i[0];r>=10;r/=10,t++);}return e&&n.e+1>t&&(t=n.e+1),t},o.round=function(e,t){var r=new F(this);return(null==e||H(e,0,m,15))&&K(r,~~e+this.e+1,null!=t&&H(t,0,8,15,l)?0|t:I),r},o.shift=function(e){var t=this;return H(e,-v,v,16,"argument")?t.times("1e"+k(e)):new F(t.c&&t.c[0]&&(e<-v||e>v)?t.s*(e<0?0:1/0):t)},o.squareRoot=o.sqrt=function(){var e,t,n,i,o,a=this,s=a.c,u=a.s,c=a.e,l=C+4,f=new F("0.5");if(1!==u||!s||!s[0])return new F(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(u=Math.sqrt(+a))||u==1/0?(((t=_(s)).length+c)%2==0&&(t+="0"),u=Math.sqrt(t),c=b((c+1)/2)-(c<0||c%2),n=new F(t=u==1/0?"1e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):n=new F(u+""),n.c[0])for((u=(c=n.e)+l)<3&&(u=0);;)if(o=n,n=f.times(o.plus(r(a,o,l,1))),_(o.c).slice(0,u)===(t=_(n.c)).slice(0,u)){if(n.e=0;){for(r=0,v=x[o]%w,g=x[o]/w|0,a=o+(s=c);a>o;)r=((l=v*(l=S[--s]%w)+(u=g*l+(f=S[s]/w|0)*v)%w*w+m[a]+r)/_|0)+(u/w|0)+g*f,m[a--]=l%_;m[a]=r}return r?++n:m.splice(0,1),q(e,m,n)},o.toDigits=function(e,t){var r=new F(this);return e=null!=e&&H(e,1,m,18,"precision")?0|e:null,t=null!=t&&H(t,0,8,18,l)?0|t:I,e?K(r,e,t):r},o.toExponential=function(e,t){return G(this,null!=e&&H(e,0,m,19)?1+~~e:null,t,19)},o.toFixed=function(e,t){return G(this,null!=e&&H(e,0,m,20)?~~e+this.e+1:null,t,20)},o.toFormat=function(e,t){var r=G(this,null!=e&&H(e,0,m,21)?~~e+this.e+1:null,t,21);if(this.c){var n,i=r.split("."),o=+L.groupSize,a=+L.secondaryGroupSize,s=L.groupSeparator,u=i[0],c=i[1],l=this.s<0,f=l?u.slice(1):u,h=f.length;if(a&&(n=o,o=a,a=n,h-=n),o>0&&h>0){for(n=h%o||o,u=f.substr(0,n);n0&&(u+=s+f.slice(n)),l&&(u="-"+u)}r=c?u+L.decimalSeparator+((a=+L.fractionGroupSize)?c.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+L.fractionGroupSeparator):c):u}return r},o.toFraction=function(e){var t,n,i,o,a,s,u,c,l,f=j,h=this,d=h.c,v=new F(O),y=n=new F(O),m=u=new F(O);if(null!=e&&(j=!1,s=new F(e),j=f,(f=s.isInt())&&!s.lt(O)||(j&&$(22,"max denominator "+(f?"out of range":"not an integer"),e),e=!f&&s.c&&K(s,s.e+1,1).gte(O)?s:null)),!d)return h.toString();for(l=_(d),o=v.e=l.length-h.e-1,v.c[0]=g[(a=o%p)<0?p+a:a],e=!e||s.cmp(v)>0?o>0?v:y:s,a=P,P=1/0,s=new F(l),u.c[0]=0;c=r(s,v,0,1),1!=(i=n.plus(c.times(m))).cmp(e);)n=m,m=i,y=u.plus(c.times(i=y)),u=i,v=s.minus(c.times(i=v)),s=i;return i=r(e.minus(n),m,0,1),u=u.plus(i.times(y)),n=n.plus(i.times(m)),u.s=y.s=h.s,t=r(y,m,o*=2,I).minus(h).abs().cmp(r(u,n,o,I).minus(h).abs())<1?[y.toString(),m.toString()]:[u.toString(),n.toString()],P=a,t},o.toNumber=function(){return+this},o.toPower=o.pow=function(e,t){var r,n,o,a=u(e<0?-e:+e),c=this;if(null!=t&&(i=23,t=new F(t)),!H(e,-v,v,23,"exponent")&&(!isFinite(e)||a>v&&(e/=0)||parseFloat(e)!=e&&!(e=NaN))||0==e)return r=Math.pow(+c,e),new F(t?r%t:r);for(t?e>1&&c.gt(O)&&c.isInt()&&t.gt(O)&&t.isInt()?c=c.mod(t):(o=t,t=null):U&&(r=s(U/p+2)),n=new F(O);;){if(a%2){if(!(n=n.times(c)).c)break;r?n.c.length>r&&(n.c.length=r):t&&(n=n.mod(t))}if(!(a=u(a/2)))break;c=c.times(c),r?c.c&&c.c.length>r&&(c.c.length=r):t&&(c=c.mod(t))}return t?n:(e<0&&(n=O.div(n)),o?n.mod(o):r?K(n,U,I):n)},o.toPrecision=function(e,t){return G(this,null!=e&&H(e,1,m,24,"precision")?0|e:null,t,24)},o.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(t=_(r.c),t=null!=e&&H(e,2,64,25,"base")?z(A(t,i),0|e,10,n):i<=N||i>=R?T(t,i):A(t,i),n<0&&r.c[0]&&(t="-"+t)),t},o.truncated=o.trunc=function(){return K(new F(this),this.e+1,1)},o.valueOf=o.toJSON=function(){var e,t=this,r=t.e;return null===r?t.toString():(e=_(t.c),e=r<=N||r>=R?T(e,r):A(e,r),t.s<0?"-"+e:e)},o.isBigNumber=!0,null!=t&&F.config(t),F}()).default=o.BigNumber=o,void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},function(e,t,r){var n=r(42),i=r(23);e.exports=function(e){if(!i.isArray(e)||void 0===e[0])return null;if("OD"!==e[0].signatureMessageFragment[0]+e[0].signatureMessageFragment[1])return null;for(var t=0,r=!0,o="",a=0,s=!1,u="";t0;){var s=new n;s.initialize(),s.absorb(r,0,r.length),s.squeeze(r,0,n.HASH_LENGTH)}i.absorb(r,0,r.length)}return i.squeeze(r,0,n.HASH_LENGTH),r};e.exports={key:function(e,t,r){for(;e.length%243!=0;)e.push(0);var o=i.fromValue(t),s=a(e.slice(),o),u=new n;u.initialize(),u.absorb(s,0,s.length),u.squeeze(s,0,s.length),u.initialize(),u.absorb(s,0,s.length);for(var c=[],l=0,f=[];r-- >0;)for(var h=0;h<27;h++){u.squeeze(f,0,s.length);for(var d=0;d<243;d++)c[l++]=f[d]}return c},digests:function(e){for(var t=[],r=[],i=0;i>>0},a=function(e,t){return e/Math.pow(2,t)>>>0},s=function(e){return(255&e)<<24|(65280&e)<<8|e>>8&65280|e>>24&255},u=function(e,t,r){var n=e+t,i=4294967295&a(n,32),o=(4294967295&n)>>>0,s=0!=i;return r&&(n=o+1),i=4294967295&a(n,32),[o=(4294967295&n)>>>0,s||0!=i]},c=function(e,t){for(var r=!0,n=0;n>>0,r);e[n]=i[0],r=i[1]}if(!r)throw"noborrow"},l=function(e,t){for(var r=e.length;r-- >0;){var n=e[r]>>>0,i=t[r]>>>0;if(ni)return 1}return 0},f=function(e,t){var r=u(e[0],t,!1);e[0]=r[0];for(var n=r[1],i=1;n&&i0;){for(var d=e[h]+1,p=u,v=0,g=0;g>>0}v>0&&(t[p]=v,u+=1),(p=f(t,d))>u&&(u=p)}if(!function(e){for(var t=0;t>31==0)!function(e,t){for(var r=!1,n=0;n0)c(a,r),s=!0;else{f(a,1);var h=n(r);c(h,a),a=h}for(var d=0,p=0;p<242;p++){d=0;for(var v=11;v>=0;v--){var g=(0!=d?4294967295*d+d:0)+a[v],y=g/3>>>0,m=g%3>>>0;a[v]=y,d=m}t[p]=d-1}if(s)for(p=0;p>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)s.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],u=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),f=c>>>16|4294901760&l,h=l<<16|65535&c;for(n[0]^=c,n[1]^=f,n[2]^=l,n[3]^=h,n[4]^=c,n[5]^=f,n[6]^=l,n[7]^=h,i=0;i<4;i++)s.call(this)}},_doProcessBlock:function(e,t){var r=this._X;s.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],a=65535&n,s=n>>>16,u=((a*a>>>17)+a*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);o[r]=u^c}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=r._createHelper(a)}(),e.RabbitLegacy}(r(0),r(22),r(21),r(16),r(4))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=[],i=[],o=[],a=t.algo.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)s.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],u=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),f=c>>>16|4294901760&l,h=l<<16|65535&c;for(i[0]^=c,i[1]^=f,i[2]^=l,i[3]^=h,i[4]^=c,i[5]^=f,i[6]^=l,i[7]^=h,r=0;r<4;r++)s.call(this)}},_doProcessBlock:function(e,t){var r=this._X;s.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],a=65535&n,s=n>>>16,u=((a*a>>>17)+a*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);o[r]=u^c}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=r._createHelper(a)}(),e.Rabbit}(r(0),r(22),r(21),r(16),r(4))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var u=n[i];n[i]=n[o],n[o]=u}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=r._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});t.RC4Drop=r._createHelper(a)}(),e.RC4}(r(0),r(22),r(21),r(16),r(4))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=r.BlockCipher,o=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var c=i[o]=[],l=u[o];for(r=0;r<24;r++)c[r/6|0]|=t[(s[r]-1+l)%28]<<31-r%6,c[4+(r/6|0)]|=t[28+(s[r+24]-1+l)%28]<<31-r%6;for(c[0]=c[0]<<1|c[0]>>>31,r=1;r<7;r++)c[r]=c[r]>>>4*(r-1)+3;c[7]=c[7]<<5|c[7]>>>27}var f=this._invSubKeys=[];for(r=0;r<16;r++)f[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),h.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,u=0;u<8;u++)s|=c[u][((a^i[u])&l[u])>>>0];this._lBlock=a,this._rBlock=o^s}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,h.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<>>8^255&p^99,i[r]=p,o[p]=r;var v=e[r],g=e[v],y=e[g],m=257*e[p]^16843008*p;a[r]=m<<24|m>>>8,s[r]=m<<16|m>>>16,u[r]=m<<8|m>>>24,c[r]=m,m=16843009*y^65537*g^257*v^16843008*r,l[p]=m<<24|m>>>8,f[p]=m<<16|m>>>16,h[p]=m<<8|m>>>24,d[p]=m,r?(r=v^e[e[e[y^v]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var u=this._invKeySchedule=[],c=0;c>>24]]^f[i[s>>>16&255]]^h[i[s>>>8&255]]^d[i[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,u,c,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,l,f,h,d,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var u=this._nRounds,c=e[t]^r[0],l=e[t+1]^r[1],f=e[t+2]^r[2],h=e[t+3]^r[3],d=4,p=1;p>>24]^i[l>>>16&255]^o[f>>>8&255]^a[255&h]^r[d++],g=n[l>>>24]^i[f>>>16&255]^o[h>>>8&255]^a[255&c]^r[d++],y=n[f>>>24]^i[h>>>16&255]^o[c>>>8&255]^a[255&l]^r[d++],m=n[h>>>24]^i[c>>>16&255]^o[l>>>8&255]^a[255&f]^r[d++];c=v,l=g,f=y,h=m}v=(s[c>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[d++],g=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^r[d++],y=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&l])^r[d++],m=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^r[d++],e[t]=v,e[t+1]=g,e[t+2]=y,e[t+3]=m},keySize:8});t.AES=r._createHelper(v)}(),e.AES}(r(0),r(22),r(21),r(16),r(4))},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib.CipherParams,i=r.enc.Hex;r.format.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return n.create({ciphertext:t})}}}(),e.format.Hex}(r(0),r(4))},function(e,t,r){e.exports=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}(r(0),r(4))},function(e,t,r){e.exports=function(e){return e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},e.pad.ZeroPadding}(r(0),r(4))},function(e,t,r){e.exports=function(e){return e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971}(r(0),r(4))},function(e,t,r){e.exports=function(e){return e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126}(r(0),r(4))},function(e,t,r){e.exports=function(e){return e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923}(r(0),r(4))},function(e,t,r){e.exports=function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB}(r(0),r(4))},function(e,t,r){e.exports=function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var a=0;a>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function M(e,t,r){H.call(this,e,t,r)}H.prototype.update=function(e){if(!this.finalized){var t,r=typeof e;if("string"!==r){if("object"!==r)throw a;if(null===e)throw a;if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw a;t=!0}for(var n,i,o=this.blocks,s=this.byteCount,u=e.length,c=this.blockCount,l=0,f=this.s;l>2]|=e[l]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[n>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=s){for(this.start=n-s,this.block=o[c],n=0;n>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},H.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"!==r)throw a;if(null===e)throw a;if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw a;t=!0}var n=0,i=e.length;if(t)n=i;else for(var o=0;o=57344?n+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},H.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t>4&15]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15];a%t==0&&(D(r),o=0)}return i&&(e=r[o],s+=p[e>>4&15]+p[15&e],i>1&&(s+=p[e>>12&15]+p[e>>8&15]),i>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},H.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%r==0&&D(n)}return o&&(e=s<<2,t=n[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},M.prototype=new H,M.prototype.finalize=function(){return this.encode(this.outputBits,!0),H.prototype.finalize.call(this)};var D=function(e){var t,r,n,i,o,a,s,u,c,l,f,h,p,d,v,y,m,b,_,w,E,S,x,T,A,k,O,C,I,N,B,R,P,j,H,M,D,U,L,F,z,G,q,V,W,$,K,Y,X,Q,J,Z,ee,te,re,ne,ie,oe,ae,se,ue,ce,le;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(l<<1|f>>>31),r=s^(f<<1|l>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|p>>>31),r=c^(p<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=l^(i<<1|o>>>31),r=f^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,d=e[0],v=e[1],$=e[11]<<4|e[10]>>>28,K=e[10]<<4|e[11]>>>28,C=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,G=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,j=e[2]<<1|e[3]>>>31,H=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,m=e[12]<<12|e[13]>>>20,Y=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,N=e[33]<<13|e[32]>>>19,B=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,M=e[14]<<6|e[15]>>>26,D=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,_=e[24]<<11|e[25]>>>21,Q=e[34]<<15|e[35]>>>17,J=e[35]<<15|e[34]>>>17,R=e[45]<<29|e[44]>>>3,P=e[44]<<29|e[45]>>>3,T=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,L=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,E=e[37]<<21|e[36]>>>11,Z=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,k=e[18]<<20|e[19]>>>12,O=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,F=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,S=e[48]<<14|e[49]>>>18,x=e[49]<<14|e[48]>>>18,e[0]=d^~y&b,e[1]=v^~m&_,e[10]=T^~k&C,e[11]=A^~O&I,e[20]=j^~M&U,e[21]=H^~D&L,e[30]=V^~$&Y,e[31]=W^~K&X,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=y^~b&w,e[3]=m^~_&E,e[12]=k^~C&N,e[13]=O^~I&B,e[22]=M^~U&F,e[23]=D^~L&z,e[32]=$^~Y&Q,e[33]=K^~X&J,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=b^~w&S,e[5]=_^~E&x,e[14]=C^~N&R,e[15]=I^~B&P,e[24]=U^~F&G,e[25]=L^~z&q,e[34]=Y^~Q&Z,e[35]=X^~J&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&le,e[6]=w^~S&d,e[7]=E^~x&v,e[16]=N^~R&T,e[17]=B^~P&A,e[26]=F^~G&j,e[27]=z^~q&H,e[36]=Q^~Z&V,e[37]=J^~ee&W,e[46]=se^~ce&te,e[47]=ue^~le&re,e[8]=S^~d&y,e[9]=x^~v&m,e[18]=R^~T&k,e[19]=P^~A&O,e[28]=G^~j&M,e[29]=q^~H&D,e[38]=Z^~V&$,e[39]=ee^~W&K,e[48]=ce^~te&ne,e[49]=le^~re&ie,e[0]^=g[n],e[1]^=g[n+1]};if(l)e.exports=O;else{for(I=0;Is)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=d,u=v,i=h;var y=(1e4*(268435455&(d+=122192928e5))+v)%4294967296;l[c++]=y>>>24&255,l[c++]=y>>>16&255,l[c++]=y>>>8&255,l[c++]=255&y;var m=d/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=h>>>8|128,l[c++]=255&h;for(var b=0;b<6;++b)l[c+b]=f[b];return t||a(l)}},function(e,t,r){var n=r(242);e.exports=function(e,t){var r=Number(t);return n(e,-r)}},function(e,t,r){"use strict";var n=r(10),i=r(62),o=r(104),a=r(267);t.merge=function(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof u&&(r=e.pop()),null===s&&1===e.length&&e[0]instanceof n.Observable?e[0]:a.mergeAll(r)(new i.ArrayObservable(e,s))}},function(e,t,r){"use strict";var n=r(273);t.from=n.FromObservable.create},function(e,t,r){"use strict";var n=r(275);t.switchMap=function(e,t){return n.switchMap(e,t)(this)}},function(e,t,r){var n;!function(){function i(e,t,r){return e.call.apply(e.bind,arguments)}function o(e,t,r){if(!e)throw Error();if(2=t.f?i():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+E(e.c)}(t.a),t.h).then(function(e){1<=e.length?n():setTimeout(o,25)},function(){i()})}()}),i=null,o=new Promise(function(e,r){i=setTimeout(r,t.f)});Promise.race([o,n]).then(function(){i&&(clearTimeout(i),i=null),t.g(t.a)},function(){t.j(t.a)})};var R={D:"serif",C:"sans-serif"},P=null;function j(){if(null===P){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);P=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return P}function H(e,t,r){for(var n in R)if(R.hasOwnProperty(n)&&t===e.f[R[n]]&&r===e.f[R[n]])return!0;return!1}function M(e){var t,r=e.g.a.offsetWidth,n=e.h.a.offsetWidth;(t=r===e.f.serif&&n===e.f["sans-serif"])||(t=j()&&H(e,r,n)),t?s()-e.A>=e.w?j()&&H(e,r,n)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?D(e,e.v):D(e,e.B):function(e){setTimeout(a(function(){M(this)},e),50)}(e):D(e,e.v)}function D(e,t){setTimeout(a(function(){f(this.g.a),f(this.h.a),f(this.j.a),f(this.m.a),t(this.a)},e),0)}function U(e,t,r){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=r}B.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),M(this)};var L=null;function F(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&h(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),k(e,"active")):A(e.a))}function z(e){this.j=e,this.a=new function(){this.c={}},this.h=0,this.f=this.g=!0}function G(e,t,r,n,i){var o=0==--e.h;(e.f||e.g)&&setTimeout(function(){var e=i||null,s=n||{};if(0===r.length&&o)A(t.a);else{t.f+=r.length,o&&(t.j=o);var u,c=[];for(u=0;ui(new Date,14).valueOf(),n=o(),s=(new Date).valueOf();return r?a.a.initialize():a.a.resetNode({id:n,lastResetAt:s})})}),l=r(8),f=r(12),h=r(33),p=r(5),d=r(50),v=u.SECTOR_STATUS.UNCLAIMED,g=Object(d.createSelector)([function(e){return e.node.newGenesisHashes}],function(e){return e.find(function(e){return e.sectors.includes(v)})}),y={treasureHuntableGenesisHash:g,treasureHuntableSector:Object(d.createSelector)([g],function(e){return e?e.sectors.findIndex(function(e){return e===v}):null}),brokerNodeUrl:Object(d.createSelector)([function(e){return e.node.brokerNodes}],function(e){return e.length?e[0].address:u.API_ROOT_URL})},m=r(26),b=r.n(m),_=function(e){var t=e.brokerNodeUrl,r=e.address;return b()({method:"POST",url:t+"/"+u.API_VERSION+"/supply/webnodes",data:{address:r}})},w=function(e){var t=e.brokerNodeUrl,r=e.currentList;return b()({method:"POST",url:t+"/"+u.API_VERSION+"/demand/transactions/brokernodes",data:{currentList:r}})},E=function(e){var t=e.brokerNodeUrl,r=e.txid,n=e.trytes;return b()({method:"PUT",url:t+"/"+u.API_VERSION+"/demand/transactions/brokernodes/"+r,data:{trytes:n}})},S=function(e){var t=e.brokerNodeUrl,r=e.currentList;return b()({method:"POST",url:t+"/"+u.API_VERSION+"/demand/transactions/genesis_hashes",data:{currentList:r}})},x=function(e){var t=e.brokerNodeUrl,r=e.txid,n=e.trytes;return b()({method:"PUT",url:t+"/"+u.API_VERSION+"/demand/transactions/genesis_hashes/"+r,data:{trytes:n}})},T=function(e){var t=e.ethKey,r=e.genesisHash,n=e.numberOfChunks,i=e.receiverEthAddr,o=e.sectorIdx;return b()({method:"POST",url:u.API_ROOT_URL+"/"+u.API_VERSION+"/treasures",data:{ethKey:t,genesisHash:r,numChunks:n,receiverEthAddr:i,sectorIdx:o}})},A=r(74),k=r(73),O=r(122),C=new A,I=new A({provider:u.IOTA_API_PROVIDER});try{k.init()}catch(e){console.log("ERROR INITIALIZING CURL: ",e)}var N=(Math.pow(3,27)-1)/2,B=function(e){return new Promise(function(t,r){I.api.findTransactionObjects({addresses:[e]},function(e,r){var n=(r||[]).sort(function(e,t){return t.attachmentTimestamp-e.attachmentTimestamp});t(n)})})},R=function(e){var t=e.trunkTx,r=e.branchTx,n=e.mwm,i=e.trytes,o=function(e,t,r,n,i){if(!C.valid.isHash(e))return i(new Error("Invalid trunkTransaction"));if(!C.valid.isHash(t))return i(new Error("Invalid branchTransaction"));if(!C.valid.isValue(r))return i(new Error("Invalid minWeightMagnitude"));var o,a=[],s=0;!function u(){!function(n,i){var s=C.utils.transactionObject(n);if(s.attachmentTimestamp=Date.now(),s.attachmentTimestampLowerBound=0,s.attachmentTimestampUpperBound=N,o)s.trunkTransaction=o,s.branchTransaction=e;else{if(s.lastIndex!==s.currentIndex)return i(new Error("Wrong bundle order. The bundle should be ordered in descending order from currentIndex"));s.trunkTransaction=e,s.branchTransaction=t}var u=C.utils.transactionTrytes(s);k.pow({trytes:u,minWeight:r}).then(function(e){var t=u.substr(0,2592).concat(e),r=C.utils.transactionObject(t),n=r.hash;o=n,a.push(t),i(null)}).catch(i)}(n[s],function(e){return e?i(e):++s1,n=t.attachmentTimestamp,i=O(new Date,1).valueOf();return r&&ie.substr(0,U.IOTA_API.ADDRESS_LENGTH),utils:D.a},F=r(121),z=r(72),G=r.n(z),q=r(120),V=r.n(q),W=r(48),$=r.n(W),K=r(35),Y=r.n(K),X=r(46),Q=r.n(X),J=r(119),Z=r.n(J),ee=r(118),te=r.n(ee);const re="Treasure: ".split("").map(e=>e.charCodeAt(e).toString(16)).join(""),ne=e=>{const t=G.a.getBytesSync(e),r=H.a.binary.raw.decode(t);return H.a.binary.base58.encode(r).substr(0,e)},ie=e=>Object(F.sha3_256)(H.a.binary.hex.decode(e)),oe=(e,t,r)=>{let n=H.a.hexToBytes(r.substring(0,24));const i=Y.a.createDecipher("AES-GCM",H.a.hexToBytes(e));return i.start({iv:n,output:null,tag:H.a.hexToBytes(t.substring(t.length-32,t.length))}),i.update(H.a.createBuffer(H.a.hexToBytes(t.substring(0,t.length-32)))),!!i.finish()&&i.output.toHex()},ae=e=>{return[V.a.sha384.create().update(e).digest().bytes(),$.a.create().update(e).digest().bytes()]};var se={hashChain:ae,genesisHash:e=>{const t=e.substr(8,64),r=H.a.hexToBytes(t),[n,i]=ae(r);return H.a.bytesToHex(i)},decryptChunk:(e,t)=>{if(e.read=0,t.length<=IV_LENGTH+32)return"";const r=t.substr(-IV_LENGTH),n=t.substr(-32-IV_LENGTH,32),i=Y.a.createDecipher("AES-GCM",e);return i.start({iv:r,tag:n,tagLength:256,additionalData:"binary-encoded string"}),i.update(H.a.createBuffer(t.substring(0,t.length-32-IV_LENGTH))),i.finish()?i.output.bytes():""},encryptChunk:(e,t,r)=>{e.read=0;const n=getNonce(e,t),i=i.createCipher("AES-GCM",e);return i.start({iv:n,tagLength:256,additionalData:"binary-encoded string"}),i.update(H.a.createBuffer(r)),i.finish(),i.output.bytes()+i.mode.tag.bytes()+n},getPrimordialHash:()=>{const e=G.a.getBytesSync(16);return $.a.create().update(e).digest().toHex()},obfuscate:e=>{const t=H.a.hexToBytes(e),[r,n]=ae(t);return H.a.bytesToHex(r)},getSalt:ne,parseEightCharsOfFilename:e=>(e=e.replace(/[^\w-]/,""),e=(e+=ne(8)).substr(0,8)),sideChain:ie,sideChainGenerate:e=>{return Array.from(Array(1e3),(e,t)=>t).reduce((e,t)=>{const r=e[t],n=ie(r);return[...e,n]},[ie(e)])},decryptTreasure:(e,t,r)=>{const n=H.a.bytesToHex(Q.a.fromTrytes(t.substring(0,96+re.length))),i=oe(e,n,r);return!!Z()(i,re)&&te()(i,re,"")},decrypt:oe,encrypt:(e,t,r)=>{let n=H.a.hexToBytes(r.substring(0,24));const i=Y.a.createCipher("AES-GCM",H.a.hexToBytes(e));i.start({iv:n,output:null}),i.update(H.a.createBuffer(H.a.hexToBytes(t))),i.finish();const o=i.output,a=i.mode.tag;return o.toHex()+a.toHex()}};const{genesisHash:ue,decryptChunk:ce,encryptChunk:le,getPrimordialHash:fe,getSalt:he,obfuscate:pe,parseEightCharsOfFilename:de,sideChain:ve,sideChainGenerate:ge,decryptTreasure:ye,hashChain:me}=se;var be={generate:(e,t,r={})=>{let n=1;r.includeTreasureOffsets&&(n+=Math.ceil(t/(U.FILE.CHUNKS_PER_SECTOR-1)));const i=Array.from(Array(t+n),(e,t)=>t),[o]=i.reduce(([e,t],r)=>{const[n,i]=se.hashChain(t);return e[r]=L.toAddress(L.utils.toTrytes(n)),[e,i]},[{},H.a.hexToBytes(e)]);return o},genesisHash:ue,rawGenerate:(e,t)=>{const r=Array.from(Array(t),(e,t)=>t+1),[n,i]=r.reduce(([e,t],r)=>{const[n,i]=se.hashChain(t);return e[r]=i,[e,i]},[{},H.a.hexToBytes(e)]);return n[0]=e,n},decryptChunk:ce,encryptChunk:le,getPrimordialHash:fe,getSalt:he,obfuscate:pe,parseEightCharsOfFilename:de,sideChain:ve,sideChainGenerate:ge,decryptTreasure:ye,hashChain:me},_e=Object(n.combineEpics)(function(e,t){return e.ofType(a.a.NODE_INITIALIZE,a.a.NODE_RESET).mergeMap(function(e){var r=t.getState().node.id,n=y.brokerNodeUrl(t.getState());return Object(l.fromPromise)(_({brokerNodeUrl:n,address:r})).map(function(e){var t=e.data;return console.log("/api/v1/supply/webnodes response:",t),a.a.determineBrokerNodeOrGenesisHash()}).catch(function(e){return console.log("/api/v1/supply/webnodes error:",e),Object(f.of)(a.a.determineBrokerNodeOrGenesisHash())})})},function(e,t){return e.ofType(a.a.NODE_DETERMINE_BROKER_NODE_OR_GENESIS_HASH).mergeMap(function(){var e=t.getState().node;return Object(f.of)(e.brokerNodes.lengtho*u.CHUNKS_PER_SECTOR&&l===o&&n===h?Object(f.of)(p.b.performPow()):Object(f.of)(a.a.checkIfSectorClaimed({genesisHash:n,numberOfChunks:i,sectorIdx:o}))})},function(e,t){return e.ofType(a.a.NODE_CHECK_IF_SECTOR_CLAIMED).mergeMap(function(e){var t=e.payload,r=t.genesisHash,n=t.numberOfChunks,i=t.sectorIdx,o=i*u.CHUNKS_PER_SECTOR,s=be.rawGenerate(r,n)[o],c=H.a.hexToBytes(s),f=be.hashChain(c)[0],h=P.toAddress(P.utils.toTrytes(f));return Object(l.fromPromise)(P.checkIfClaimed(h)).map(function(e){return e?a.a.updateSectorStatus({genesisHash:r,sectorIdx:i}):p.b.startSector({dataMapHash:s,genesisHash:r,numberOfChunks:n,sectorIdx:i})})})},function(e,t){return e.ofType(a.a.NODE_UPDATE_SECTOR_STATUS).map(a.a.determineGenesisHashOrTreasureHunt)}),we=Object(n.combineEpics)(function(e,t){return e.ofType(p.b.TREASURE_HUNT_PERFORM_POW).mergeMap(function(e){var r=t.getState().treasureHunt,n=r.dataMapHash,i=r.treasure,o=r.chunkIdx,a=j.hexToBytes(n),s=be.hashChain(a),u=s[0],c=s[1],d=P.toAddress(P.utils.toTrytes(u));return Object(l.fromPromise)(P.findMostRecentTransaction(d)).map(function(e){return e.signatureMessageFragment}).mergeMap(function(e){return Object(l.fromPromise)(P.getTransactionsToApprove(1,null)).map(function(t){var r=t.trunkTransaction,n=t.branchTransaction;return{message:e,trunkTx:r,branchTx:n}})}).mergeMap(function(e){var t=e.trunkTx,r=e.branchTx,n=e.message;return Object(l.fromPromise)(P.prepareTransfers({address:d,message:n,value:0,tag:"EDMUNDANDREBELWUZHERE",seed:"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"})).map(function(e){return{trytes:e,trunkTx:t,branchTx:r}})}).mergeMap(function(e){var t=e.trytes,r=e.trunkTx,n=e.branchTx;return Object(l.fromPromise)(P.localPow({trunkTx:r,branchTx:n,mwm:9,trytes:t}))}).mergeMap(function(e){return Object(l.fromPromise)(P.broadcastTransactions(e))}).mergeMap(function(){return Object(f.of)(i?p.b.incrementChunk({nextChunkIdx:o+1,nextDataMapHash:j.bytesToHex(c)}):p.b.findTreasure({dataMapHash:n,chunkIdx:o}))}).catch(function(e){return console.log("TREASURE HUNTING ERROR",e),Object(h.empty)()})})},function(e,t){return e.ofType(p.b.TREASURE_HUNT_FIND_TREASURE).mergeMap(function(e){var r=e.payload,n=r.dataMapHash,i=r.chunkIdx,o=j.hexToBytes(n),a=be.hashChain(o),s=a[0],u=a[1],c=j.bytesToHex(u),h=P.toAddress(P.utils.toTrytes(s));return Object(l.fromPromise)(P.findMostRecentTransaction(h)).mergeMap(function(e){var r=be.sideChainGenerate(n);t.dispatch({type:"IOTA_RETURN"});var o=r.find(function(t){return!!be.decryptTreasure(t,e.signatureMessageFragment,n)});return Object(f.of)(o?p.b.saveTreasure({treasure:be.decryptTreasure(o,e.signatureMessageFragment,n),nextChunkIdx:i+1,nextDataMapHash:c}):p.b.incrementChunk({nextChunkIdx:i+1,nextDataMapHash:c}))})})},function(e,t){return e.ofType(p.b.TREASURE_HUNT_START_SECTOR,p.b.TREASURE_HUNT_SAVE_TREASURE,p.b.TREASURE_HUNT_INCREMENT_CHUNK).mergeMap(function(){var e=t.getState(),r=e.treasureHunt,n=e.node,i=r.treasure,o=r.genesisHash,a=r.chunkIdx,s=r.numberOfChunks,c=r.sectorIdx,l=n.ethAddress,h=a>s,d=a>u.CHUNKS_PER_SECTOR*(c+1)-1;return Object(f.of)(h||d?p.b.claimTreasure({genesisHash:o,numberOfChunks:s,receiverEthAddr:l,sectorIdx:c,treasure:i}):p.b.performPow())})},function(e,t){return e.ofType(p.b.TREASURE_HUNT_CLAIM_TREASURE_SUCCESS).map(function(e){var t=e.payload,r=t.genesisHash,n=t.sectorIdx;return a.a.updateSectorStatus({genesisHash:r,sectorIdx:n,status:u.SECTOR_STATUS.CLAIMED})})},function(e,t){return e.ofType(p.b.TREASURE_HUNT_CLAIM_TREASURE_FAILURE).map(function(e){var t=e.payload,r=t.genesisHash,n=t.sectorIdx;return a.a.updateSectorStatus({genesisHash:r,sectorIdx:n,status:u.SECTOR_STATUS.NO_TREASURE_FOUND})})},function(e,t){return e.ofType(p.b.TREASURE_HUNT_CLAIM_TREASURE).mergeMap(function(e){var t=e.payload,r=t.receiverEthAddr,n=t.genesisHash,i=t.numberOfChunks,o=t.sectorIdx,a=t.treasure;return Object(l.fromPromise)(T({receiverEthAddr:r,genesisHash:n,numberOfChunks:i,sectorIdx:o,ethKey:a})).map(function(){return p.b.claimTreasureSuccess({genesisHash:n,sectorIdx:o})}).catch(function(e){return console.log("CLAIM TREASURE ERROR: ",e),Object(f.of)(p.b.claimTreasureFailure({genesisHash:n,sectorIdx:o}))})})});t.default=Object(n.combineEpics)(c,_e,we)},function(e,t,r){"use strict";r.r(t);var n="persist:",i="persist/FLUSH",o="persist/REHYDRATE",a="persist/PAUSE",s="persist/PERSIST",u="persist/PURGE",c="persist/REGISTER",l=-1,f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(g,["_persist"]);if(p.type===s){var S=!1,x=function(t,r){S||(p.rehydrate(e.key,t,r),S=!0)};if(f&&setTimeout(function(){!S&&x(void 0,new Error('redux-persist: persist timed out for persist key "'+e.key+'"'))},f),y=!1,h||(h=d(e)),w)return l;if("function"!=typeof p.rehydrate||"function"!=typeof p.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return p.register(e.key),c(e).then(function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,r).then(function(e){x(e)},function(e){x(void 0,e)})},function(e){x(void 0,e)}),_({},t(E,p),{_persist:{version:r,rehydrated:!1}})}if(p.type===u)return v=!0,p.result(m(e)),_({},t(E,p),{_persist:w});if(p.type===i)return p.result(h&&h.flush()),_({},t(E,p),{_persist:w});if(p.type===a)y=!0;else if(p.type===o){if(v)return _({},E,{_persist:_({},w,{rehydrated:!0})});if(p.key===e.key){var T=t(E,p),A=p.payload,k=!1!==n&&void 0!==A?n(A,l,T,e):T,O=_({},k,{_persist:_({},w,{rehydrated:!0})});return b(O)}}if(!w)return t(l,p);var C=t(E,p);return C===E?l:(C._persist=w,b(C))}}var S=r(14),x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:I,t=arguments[1];switch(t.type){case c:return O({},e,{registry:[].concat(C(e.registry),[t.key])});case o:var r=e.registry.indexOf(t.key),n=[].concat(C(e.registry));return n.splice(r,1),O({},e,{registry:n,bootstrapped:0===n.length});default:return e}};function B(e,t,r){var n=r||!1,l=Object(S.createStore)(N,I,t?t.enhancer:void 0),f=function(e){l.dispatch({type:c,key:e})},h=function(t,r,i){var a={type:o,payload:r,err:i,key:t};e.dispatch(a),l.dispatch(a),n&&p.getState().bootstrapped&&(n(),n=!1)},p=O({},l,{purge:function(){var t=[];return e.dispatch({type:u,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:i,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:a})},persist:function(){e.dispatch({type:s,register:f,rehydrate:h})}});return p.persist(),p}function R(e,t){(t||{}).debug;return function(t,r){if(!t)return Promise.resolve(void 0);var n=t._persist&&void 0!==t._persist.version?t._persist.version:l;if(n===r)return Promise.resolve(t);if(n>r)return Promise.resolve(t);var i=Object.keys(e).map(function(e){return parseInt(e)}).filter(function(e){return r>=e&&e>n}).sort(function(e,t){return e-t});try{var o=i.reduce(function(t,r){return e[r](t)},t);return Promise.resolve(o)}catch(e){return Promise.reject(e)}}}function P(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.whitelist||null,i=r.blacklist||null;function o(e){return!(!n||-1!==n.indexOf(e))||!(!i||-1===i.indexOf(e))}return{in:function(t,r,n){return!o(r)&&e?e(t,r,n):t},out:function(e,r,n){return!o(r)&&t?t(e,r,n):e}}}r.d(t,"persistReducer",function(){return E}),r.d(t,"persistCombineReducers",function(){return k}),r.d(t,"persistStore",function(){return B}),r.d(t,"createMigrate",function(){return R}),r.d(t,"createTransform",function(){return P}),r.d(t,"getStoredState",function(){return g}),r.d(t,"createPersistoid",function(){return d}),r.d(t,"purgeStoredState",function(){return m}),r.d(t,"KEY_PREFIX",function(){return n}),r.d(t,"FLUSH",function(){return i}),r.d(t,"REHYDRATE",function(){return o}),r.d(t,"PAUSE",function(){return a}),r.d(t,"PERSIST",function(){return s}),r.d(t,"PURGE",function(){return u}),r.d(t,"REGISTER",function(){return c}),r.d(t,"DEFAULT_VERSION",function(){return l})},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,r){var n=r(139),i=r(81),o=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var r=u.test(e);return r||c.test(e)?l(e.slice(2),r?2:8):s.test(e)?o:+e}},function(e,t,r){var n=r(140),i=1/0,o=1.7976931348623157e308;e.exports=function(e){return e?(e=n(e))===i||e===-i?(e<0?-1:1)*o:e==e?e:0:0===e?e:0}},function(e,t,r){var n=r(141);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t,r){var n=r(52),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},function(e,t,r){var n=r(52),i=r(145),o=r(144),a="[object Null]",s="[object Undefined]",u=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:u&&u in Object(e)?i(e):o(e)}},function(e,t){var r=Array.isArray;e.exports=r},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r=t?e:t)),e}},function(e,t){},function(e,t,r){(function(t){var n=r(17);r(3);var i=null;!n.util.isNodejs||n.options.usePureJavaScript||t.versions["node-webkit"]||(i=r(152)),(e.exports=n.prng=n.prng||{}).create=function(e){for(var t={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},r=e.md,o=new Array(32),a=0;a<32;++a)o[a]=r.create();function s(){if(t.pools[0].messageLength>=32)return u();var e=32-t.pools[0].messageLength<<5;t.collect(t.seedFileSync(e)),u()}function u(){t.reseeds=4294967295===t.reseeds?0:t.reseeds+1;var e=t.plugin.md.create();e.update(t.keyBytes);for(var r=1,n=0;n<32;++n)t.reseeds%r==0&&(e.update(t.pools[n].digest().getBytes()),t.pools[n].start()),r<<=1;t.keyBytes=e.digest().getBytes(),e.start(),e.update(t.keyBytes);var i=e.digest().getBytes();t.key=t.plugin.formatKey(t.keyBytes),t.seed=t.plugin.formatSeed(i),t.generated=0}function c(e){var t=null;if("undefined"!=typeof window){var r=window.crypto||window.msCrypto;r&&r.getRandomValues&&(t=function(e){return r.getRandomValues(e)})}var i=n.util.createBuffer();if(t)for(;i.length()>16)))<<16,f=4294967295&(c=(2147483647&(c+=u>>15))+(c>>31));for(s=0;s<3;++s)l=f>>>(s<<3),l^=Math.floor(256*Math.random()),i.putByte(String.fromCharCode(255&l))}return i.getBytes(e)}return t.pools=o,t.pool=0,t.generate=function(e,r){if(!r)return t.generateSync(e);var i=t.plugin.cipher,o=t.plugin.increment,a=t.plugin.formatKey,s=t.plugin.formatSeed,c=n.util.createBuffer();t.key=null,function l(f){if(f)return r(f);if(c.length()>=e)return r(null,c.getBytes(e));t.generated>1048575&&(t.key=null);if(null===t.key)return n.util.nextTick(function(){!function(e){if(t.pools[0].messageLength>=32)return u(),e();var r=32-t.pools[0].messageLength<<5;t.seedFile(r,function(r,n){if(r)return e(r);t.collect(n),u(),e()})}(l)});var h=i(t.key,t.seed);t.generated+=h.length;c.putBytes(h);t.key=a(i(t.key,o(t.seed)));t.seed=s(i(t.key,t.seed));n.util.setImmediate(l)}()},t.generateSync=function(e){var r=t.plugin.cipher,i=t.plugin.increment,o=t.plugin.formatKey,a=t.plugin.formatSeed;t.key=null;for(var u=n.util.createBuffer();u.length()1048575&&(t.key=null),null===t.key&&s();var c=r(t.key,t.seed);t.generated+=c.length,u.putBytes(c),t.key=o(r(t.key,i(t.seed))),t.seed=a(r(t.key,t.seed))}return u.getBytes(e)},i?(t.seedFile=function(e,t){i.randomBytes(e,function(e,r){if(e)return t(e);t(null,r.toString())})},t.seedFileSync=function(e){return i.randomBytes(e).toString()}):(t.seedFile=function(e,t){try{t(null,c(e))}catch(e){t(e)}},t.seedFileSync=c),t.collect=function(e){for(var r=e.length,n=0;n>i&255);t.collect(n)},t.registerWorker=function(e){if(e===self)t.seedFile=function(e,t){self.addEventListener("message",function e(r){var n=r.data;n.forge&&n.forge.prng&&(self.removeEventListener("message",e),t(n.forge.prng.err,n.forge.prng.bytes))}),self.postMessage({forge:{prng:{needed:e}}})};else{e.addEventListener("message",function(r){var n=r.data;n.forge&&n.forge.prng&&t.seedFile(n.forge.prng.needed,function(t,r){e.postMessage({forge:{prng:{err:t,bytes:r}}})})})}},t}}).call(this,r(21))},function(e,t,r){var n=r(17);r(3),n.cipher=n.cipher||{};var i=e.exports=n.cipher.modes=n.cipher.modes||{};function o(e){if("string"==typeof e&&(e=n.util.createBuffer(e)),n.util.isArray(e)&&e.length>4){var t=e;e=n.util.createBuffer();for(var r=0;r0))return!0;for(var n=0;n0))return!0;for(var n=0;n0)return!1;var r=e.length(),n=e.at(r-1);return!(n>this.blockSize<<2)&&(e.truncate(n),!0)},i.cbc=function(e){e=e||{},this.name="CBC",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},i.cbc.prototype.start=function(e){if(null===e.iv){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else{if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=o(e.iv),this._prev=this._iv.slice(0)}},i.cbc.prototype.encrypt=function(e,t,r){if(e.length()0))return!0;for(var n=0;n0))return!0;for(var n=0;n0)return!1;var r=e.length(),n=e.at(r-1);return!(n>this.blockSize<<2)&&(e.truncate(n),!0)},i.cfb=function(e){e=e||{},this.name="CFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0},i.cfb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=o(e.iv),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.cfb.prototype.encrypt=function(e,t,r){var n=e.length();if(0===n)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear();for(i=0;i0)e.read-=this.blockSize;else for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}},i.cfb.prototype.decrypt=function(e,t,r){var n=e.length();if(0===n)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear();for(i=0;i0)e.read-=this.blockSize;else for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}},i.ofb=function(e){e=e||{},this.name="OFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0},i.ofb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=o(e.iv),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.ofb.prototype.encrypt=function(e,t,r){var n=e.length();if(0===e.length())return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear();for(i=0;i0)e.read-=this.blockSize;else for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}},i.ofb.prototype.decrypt=i.ofb.prototype.encrypt,i.ctr=function(e){e=e||{},this.name="CTR",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0},i.ctr.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=o(e.iv),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.ctr.prototype.encrypt=function(e,t,r){var n=e.length();if(0===n)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear();for(i=0;i0&&(e.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}a(this._inBlock)},i.ctr.prototype.decrypt=i.ctr.prototype.encrypt,i.gcm=function(e){e=e||{},this.name="GCM",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0,this._R=3774873600},i.gcm.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");var t,r=n.util.createBuffer(e.iv);if(this._cipherLength=0,t="additionalData"in e?n.util.createBuffer(e.additionalData):n.util.createBuffer(),this._tagLength="tagLength"in e?e.tagLength:128,this._tag=null,e.decrypt&&(this._tag=n.util.createBuffer(e.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var i=r.length();if(12===i)this._j0=[r.getInt32(),r.getInt32(),r.getInt32(),1];else{for(this._j0=[0,0,0,0];r.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[r.getInt32(),r.getInt32(),r.getInt32(),r.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(s(8*i)))}this._inBlock=this._j0.slice(0),a(this._inBlock),this._partialBytes=0,t=n.util.createBuffer(t),this._aDataLength=s(8*t.length());var o=t.length()%this.blockSize;for(o&&t.fillWithByte(0,this.blockSize-o),this._s=[0,0,0,0];t.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()])},i.gcm.prototype.encrypt=function(e,t,r){var n=e.length();if(0===n)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize){for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear();for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return e.read-=this.blockSize,t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),a(this._inBlock)},i.gcm.prototype.decrypt=function(e,t,r){var n=e.length();if(n0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),a(this._inBlock),this._hashBlock[0]=e.getInt32(),this._hashBlock[1]=e.getInt32(),this._hashBlock[2]=e.getInt32(),this._hashBlock[3]=e.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var i=0;i0;--n)t[n]=e[n]>>>1|(1&e[n-1])<<31;t[0]=e[0]>>>1,r&&(t[0]^=this._R)},i.gcm.prototype.tableMultiply=function(e){for(var t=[0,0,0,0],r=0;r<32;++r){var n=e[r/8|0]>>>4*(7-r%8)&15,i=this._m[r][n];t[0]^=i[0],t[1]^=i[1],t[2]^=i[2],t[3]^=i[3]}return t},i.gcm.prototype.ghash=function(e,t,r){return t[0]^=r[0],t[1]^=r[1],t[2]^=r[2],t[3]^=r[3],this.tableMultiply(t)},i.gcm.prototype.generateHashTable=function(e,t){for(var r=8/t,n=4*r,i=16*r,o=new Array(i),a=0;a>>1,i=new Array(r);i[n]=e.slice(0);for(var o=n>>>1;o>0;)this.pow(i[2*o],i[o]=[]),o>>=1;for(o=2;o>>=2;for(i=0;i>8^255&f^99,o[v]=f,a[f]=v,p=(h=e[f])<<24^f<<16^f<<8^f^h,d=((r=e[v])^(n=e[r])^(i=e[n]))<<24^(v^i)<<16^(v^n^i)<<8^v^r^i;for(var y=0;y<4;++y)u[y][v]=p,c[y][f]=d,p=p<<24|p>>>8,d=d<<24|d>>>8;0===v?v=g=1:(v=r^e[e[e[r^i]]],g^=e[e[g]])}}function p(e,t){for(var r,n=e.slice(0),i=1,a=n.length,u=f*(a+6+1),l=a;l>>16&255]<<24^o[r>>>8&255]<<16^o[255&r]<<8^o[r>>>24]^s[i]<<24,i++):a>6&&l%a==4&&(r=o[r>>>24]<<24^o[r>>>16&255]<<16^o[r>>>8&255]<<8^o[255&r]),n[l]=n[l-a]^r;if(t){for(var h,p=c[0],d=c[1],v=c[2],g=c[3],y=n.slice(0),m=(l=0,(u=n.length)-f);l>>24]]^d[o[h>>>16&255]]^v[o[h>>>8&255]]^g[o[255&h]];n=y}return n}function d(e,t,r,n){var i,s,l,f,h,p,d,v,g,y,m,b,_=e.length/4-1;n?(i=c[0],s=c[1],l=c[2],f=c[3],h=a):(i=u[0],s=u[1],l=u[2],f=u[3],h=o),p=t[0]^e[0],d=t[n?3:1]^e[1],v=t[2]^e[2],g=t[n?1:3]^e[3];for(var w=3,E=1;E<_;++E)y=i[p>>>24]^s[d>>>16&255]^l[v>>>8&255]^f[255&g]^e[++w],m=i[d>>>24]^s[v>>>16&255]^l[g>>>8&255]^f[255&p]^e[++w],b=i[v>>>24]^s[g>>>16&255]^l[p>>>8&255]^f[255&d]^e[++w],g=i[g>>>24]^s[p>>>16&255]^l[d>>>8&255]^f[255&v]^e[++w],p=y,d=m,v=b;r[0]=h[p>>>24]<<24^h[d>>>16&255]<<16^h[v>>>8&255]<<8^h[255&g]^e[++w],r[n?3:1]=h[d>>>24]<<24^h[v>>>16&255]<<16^h[g>>>8&255]<<8^h[255&p]^e[++w],r[2]=h[v>>>24]<<24^h[g>>>16&255]<<16^h[p>>>8&255]<<8^h[255&d]^e[++w],r[n?1:3]=h[g>>>24]<<24^h[p>>>16&255]<<16^h[d>>>8&255]<<8^h[255&v]^e[++w]}function v(e){var t,r="AES-"+((e=e||{}).mode||"CBC").toUpperCase(),i=(t=e.decrypt?n.cipher.createDecipher(r,e.key):n.cipher.createCipher(r,e.key)).start;return t.start=function(e,r){var o=null;r instanceof n.util.ByteBuffer&&(o=r,r={}),(r=r||{}).output=o,r.iv=e,i.call(t,r)},t}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,r){(function(t){var r={};e.exports=r;var n={};r.encode=function(e,t,r){if("string"!=typeof t)throw new TypeError('"alphabet" must be a string.');if(void 0!==r&&"number"!=typeof r)throw new TypeError('"maxline" must be a number.');var n="";if(e instanceof Uint8Array){var i=0,o=t.length,a=t.charAt(0),s=[0];for(i=0;i0;)s.push(c%o),c=c/o|0}for(i=0;0===e[i]&&i=0;--i)n+=t[s[i]]}else n=function(e,t){var r=0,n=t.length,i=t.charAt(0),o=[0];for(r=0;r0;)o.push(s%n),s=s/n|0}var u="";for(r=0;0===e.at(r)&&r=0;--r)u+=t[o[r]];return u}(e,t);if(r){var l=new RegExp(".{1,"+r+"}","g");n=n.match(l).join("\r\n")}return n},r.decode=function(e,r){if("string"!=typeof e)throw new TypeError('"input" must be a string.');if("string"!=typeof r)throw new TypeError('"alphabet" must be a string.');var i=n[r];if(!i){i=n[r]=[];for(var o=0;o>=8;for(;f>0;)u.push(255&f),f>>=8}for(var h=0;e[h]===s&&h>1,l=-7,f=r?i-1:0,h=r?-1:1,p=e[t+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=c}return(p?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<0;e[r+p]=255&a,p+=d,a/=256,c-=8);e[r+p-d]|=128*v}},function(e,t,r){"use strict";t.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){for(var t,r=c(e),n=r[0],a=r[1],s=new o(function(e,t,r){return 3*(t+r)/4-r}(0,n,a)),u=0,l=a>0?n-4:n,f=0;f>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=i[e.charCodeAt(f)]<<2|i[e.charCodeAt(f+1)]>>4,s[u++]=255&t);1===a&&(t=i[e.charCodeAt(f)]<<10|i[e.charCodeAt(f+1)]<<4|i[e.charCodeAt(f+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;as?s:a+16383));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function f(e,t,r){for(var n,i=[],o=t;o 0; ) {\n r_texel = read_at(ivec2(HASH_LENGTH - 1 - i, row)).ba;\n nonce_probe &= ~(r_texel.s ^ r_texel.t);\n if(nonce_probe == 0) break;\n }\n return nonce_probe;\n}\n",k_check:"\nuniform int minWeightMagnitude;\nvoid main() {\n init();\n ivec4 my_vec = read();\n if(my_coord.x == STATE_LENGTH) {\n my_vec.r = minWeightMagnitude;\n my_vec.a = check(my_coord.y, minWeightMagnitude);\n }\n commit(my_vec);\n}\n",col:"\nvoid main() {\n init();\n ivec4 my_vec = read();\n int i;\n if(my_coord.x == STATE_LENGTH && my_coord.y == 0) {\n my_vec.b = 0;\n if(my_vec.a == 0) {\n ivec4 read_vec;\n my_vec.b = -1;\n for(i = 1; i < int(size.y); i++) {\n read_vec = read_at( ivec2( STATE_LENGTH, i));\n if(read_vec.a != 0) {\n my_vec.a = read_vec.a;\n my_vec.b = i;\n break;\n }\n }\n }\n }\n commit(my_vec);\n}\n"}},function(e,t){e.exports="\nivec2 twist() {\n int alpha, beta, gamma, delta;\n ivec4 v1, v2;\n int j = my_coord.x;\n\n v1 = read_at(ivec2(j == 0? 0:(((j - 1)%2)+1)*HALF_LENGTH - ((j-1)>>1), my_coord.y));\n v2 = read_at(ivec2(((j%2)+1)*HALF_LENGTH - ((j)>>1), my_coord.y));\n alpha = v1.b;\n beta = v1.a;\n gamma = v2.a;\n delta = (alpha | (~gamma)) & (v2.b ^ beta);//v2.b === state_low[t2]\n\n return ivec2(~delta, (alpha ^ gamma) | delta);\n}\n\nvoid main() {\n init();\n ivec4 my_vec = read();\n if(my_coord.x < STATE_LENGTH)\n my_vec.ba = twist();\n commit(my_vec);\n}\n"},function(e,t){e.exports="\n// Choose high != 0 if you want to barrier rg values, 0 if you want to barrier ba\n#define WAITNUM 2\nvoid barrier(ivec2 watch_coords, int high) {\n ivec4 my_vec = read();\n if(watch_coords == my_coord) {\n int hold_index = 0;\n ivec4 hold_texel;\n my_vec.g = my_vec.a + 1;\n my_vec.b = my_vec.g + 1;\n commit(my_vec);\n while(hold_index < STATE_LENGTH) {\n hold_texel = read_at(ivec2(hold_index, my_coord.y));\n if((high == 0 && hold_texel.r == WAITNUM) ||(high != 0 && hold_texel.a == WAITNUM))\n hold_index++;\n }\n my_vec.a = my_vec.g;\n //my_vec.a = 123;\n } else {\n ivec4 watch = read_at(watch_coords); // r: val to watch, g: expected val, b: next val (should be 1+ expected val)\n int hold = high == 0 ? my_vec.r : my_vec.a;\n if(high == 0)\n my_vec.r = WAITNUM;\n else\n my_vec.a = WAITNUM;\n commit(my_vec);\n while(watch.g == watch.b || watch.a != watch.g) {\n //while(watch.g == watch.b || watch.a != 123) {\n watch = read_at(watch_coords);\n }\n }\n commit(my_vec);\n}\n"},function(e,t){e.exports="\nvoid main() {\n init();\n ivec4 my_vec = read();\n if(my_coord.y == 0 && my_coord.x == STATE_LENGTH) {\n my_vec.g = check(my_vec.b, my_vec.r);\n }\n if(my_coord.y == 0 && my_coord.x < HASH_LENGTH) {\n ivec4 info_vec = read_at(ivec2(STATE_LENGTH, 0));\n int nonce_probe = info_vec.a;\n int row = info_vec.b;\n ivec4 hash_vec = read_at(ivec2(my_coord.x, row));\n my_vec.a = (hash_vec.r & nonce_probe) == 0? 1 : ((hash_vec.g & nonce_probe) == 0? -1 : 0);\n }\n commit(my_vec);\n}\n"},function(e,t){e.exports="#define HASH_LENGTH 243\n#define NUMBER_OF_ROUNDS 81\n#define INCREMENT_START HASH_LENGTH - 64\n#define STATE_LENGTH 3 * HASH_LENGTH\n#define HALF_LENGTH 364\n#define HIGH_BITS 0xFFFFFFFF\n#define LOW_BITS 0x00000000\n"},function(e,t,r){const n=r(170),i=r(169),o=(r(168),r(167)),a=r(166),s=r(165),u=r(164),c=r(163);e.exports={init:n+s+u,increment:n+s+c,transform:n+o,col_check:n+a.col,check:n+a.do_check+a.k_check,finalize:n+a.do_check+i}},function(e,t,r){const n=r(37);let i=0,o=-1,a=3681400539,s=4059626622,u=2147475471,c=4290772992,l=3067833782,f=2412241905,h=4290781183,p=4194303;e.exports={toPair:function(e){const t={low:new Int32Array(n.STATE_LENGTH),high:new Int32Array(n.STATE_LENGTH)};return e.forEach((e,r)=>{switch(e){case 0:t.low[r]=o,t.high[r]=o;break;case 1:t.low[r]=i,t.high[r]=o;break;default:t.low[r]=o,t.high[r]=i}}),function(e,t){e.low[t+0]=a,e.low[t+1]=s,e.low[t+2]=u,e.low[t+3]=c,e.high[t+0]=l,e.high[t+1]=f,e.high[t+2]=h,e.high[t+3]=p}(t,n.NONCE_START),t},transform:function(e){var t,r,i,o,a,s,u,c,l=0;for(i=n.NUMBER_OF_ROUNDS;i-- >0;)for(r=e.low.slice(),t=e.high.slice(),o=0;o{let r=new Object;r.gl=n();let s=r.gl;r.dim={x:e,y:0};const u=.5*Math.pow(s.MAX_TEXTURE_SIZE,2),c=Math.floor(u/r.dim.x/t)*r.dim.x*t;r.dim.y=c/r.dim.x/t;let l=c;return r.programs=new Map,r.ipt=function(e){return Math.pow(Math.pow(2,Math.ceil(Math.log(e)/1.386)-1),2),{data:new Int32Array(e),length:e}}(l),r.buffers={position:i(s,[-1,-1,1,-1,1,1,-1,1]),texture:i(s,[0,0,1,0,1,1,0,1]),index:i(s,[1,2,0,3,0,2],Uint16Array,s.ELEMENT_ARRAY_BUFFER)},r.attrib={position:0,texture:1},r.vao=s.createVertexArray(),s.bindVertexArray(r.vao),((e,t,r)=>{e.bindBuffer(e.ARRAY_BUFFER,t.texture),e.enableVertexAttribArray(r.texture),e.vertexAttribPointer(r.texture,2,e.FLOAT,!1,0,0),e.bindBuffer(e.ARRAY_BUFFER,t.position),e.enableVertexAttribArray(r.position),e.vertexAttribPointer(r.position,2,e.FLOAT,!1,0,0),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.index)})(s,r.buffers,r.attrib),s.bindVertexArray(null),r.vertexShader=(e=>{var t=e.createShader(e.VERTEX_SHADER);if(e.shaderSource(t,a.vertexShaderCode),e.compileShader(t),!e.getShaderParameter(t,e.COMPILE_STATUS))throw new Error("\nturbojs: Could not build internal vertex shader (fatal).\n\nINFO: >REPORT< THIS. That's our fault!\n\n--- CODE DUMP ---\n"+a.vertexShaderCode+"\n\n--- ERROR LOG ---\n"+e.getShaderInfoLog(t));return t})(s),r.framebuffer=s.createFramebuffer(),r.texture0=o(s,r.ipt.data,r.dim),r.texture1=o(s,new Int32Array(l),r.dim),r},addProgram:(e,t,r,...n)=>{let i=e.gl,o=e.vertexShader;var s=((e,t)=>{var r=e.createShader(e.FRAGMENT_SHADER);if(e.shaderSource(r,a.stdlib+t),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS)){for(var n=t.split("\n"),i="ERROR: Could not build shader (fatal).\n\n------------------ KERNEL CODE DUMP ------------------\n",o=0;o "+n[o]+"\n";throw i+="\n--------------------- ERROR LOG ---------------------\n"+e.getShaderInfoLog(r),new Error(i)}return r})(e.gl,r),u=i.createProgram();i.attachShader(u,o),i.attachShader(u,s),i.bindAttribLocation(u,e.attrib.position,"position"),i.bindAttribLocation(u,e.attrib.texture,"texture"),i.linkProgram(u);var c=new Map;for(var l of n)c.set(l,i.getUniformLocation(u,l));e.programs.get(t)&&console.log("program exists"),e.programs.set(t,{program:u,u_vars:c})},run:(e,t,r,...n)=>{let i=e.gl,o=e.programs.get(t),a=o.program,u=o.u_vars;if(null===a)throw new Error("No Such Program!");if(!i.getProgramParameter(a,i.LINK_STATUS))throw new Error("turbojs: Failed to link GLSL program code.");var c=i.getUniformLocation(a,"u_texture");for(i.useProgram(a),r=r||1;r-- >0;){for(var l of(i.bindTexture(i.TEXTURE_2D,e.texture0),i.activeTexture(i.TEXTURE0),i.uniform1i(c,0),i.viewport(0,0,e.dim.x,e.dim.y),s(i,e.framebuffer,e.texture1,e.dim),i.bindVertexArray(e.vao),n))i.uniform1i(u.get(l.n),l.v);i.drawElements(i.TRIANGLES,6,i.UNSIGNED_SHORT,0);let t=e.texture0;e.texture0=e.texture1,e.texture1=t}(e=>{e.bindVertexArray(null),e.bindTexture(e.TEXTURE_2D,null),e.bindFramebuffer(e.FRAMEBUFFER,null)})(i)},readData:(e,t,r,n,i)=>{let o=e.gl;return t=t||0,r=r||0,n=n||e.dim.x,i=i||e.dim.y,o.bindFramebuffer(o.FRAMEBUFFER,e.framebuffer),o.readPixels(t,r,n,i,o.RGBA_INTEGER,o.INT,e.ipt.data),o.bindFramebuffer(o.FRAMEBUFFER,null),e.ipt.data.subarray(0,e.ipt.length)},writeData:(e,t)=>{let r=e.gl;r.bindTexture(r.TEXTURE_2D,e.texture0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA32I,e.dim.x,e.dim.y,0,r.RGBA_INTEGER,r.INT,t),r.bindTexture(r.TEXTURE_2D,null)}}},function(e,t,r){var n=r(15),i=r(18),o=r(27);r(39),r(53),r(38);function a(e){if(!(this instanceof a))return new a(e);this._kerl=new o,this._kerl.initialize(),e&&this.absorb(e)}a.prototype.absorb=function(e){for(var t=Array.isArray(e)?e:[e],r=0;r2187){p+=Math.floor(r[h].message.length/2187);for(var d=r[h].message;d;){var v=d.slice(0,2187);d=d.slice(2187,d.length);for(var g=0;v.length<2187;g++)v+="9";f.push(v)}}else{v="";r[h].message&&(v=r[h].message.slice(0,2187));for(g=0;v.length<2187;g++)v+="9";f.push(v)}var y=Math.floor(Date.now()/1e3);i=r[h].tag?r[h].tag:"999999999999999999999999999";for(g=0;i.length<27;g++)i+="9";o.addEntry(p,r[h].address.slice(0,81),r[h].value,i,y),a+=parseInt(r[h].value)}if(!a)return n(new Error("Invalid value transfer: the transfer does not require a signature."));{function m(r,n){if(r>0){var s=0-r,u=Math.floor(Date.now()/1e3);o.addEntry(e.securitySum,e.address,s,i,u)}if(a>r)return n(new Error("Not enough balance."));if(r>a){var c=r-a;if(!t)return n(new Error("No remainder address defined"));o.addEntry(1,t,c,i,u)}return o.finalize(),o.addTrytes(f),n(null,o.bundle)}if(e.balance)m(e.balance,n);else{var b={command:"getBalances",addresses:new Array(e.address),threshold:100};this._makeRequest.send(b,function(e,t){if(e)return n(e);m(parseInt(t.balances[0]),n)})}}},h.addSignature=function(e,t,r,o){var a=new s;a.bundle=e;for(var u=r.length/2187,l=(r=i.trits(r),0),f=0;f0){var a=i.trits(e.bundle[o].bundle),s=new Int8Array(243);t.initialize(),t.absorb(r),t.absorb(a),t.squeeze(s);var u=i.trytes(s);e.bundle[o].signatureMessageFragment=u+e.bundle[o].signatureMessageFragment.substring(81,2187)}},e.exports=o},function(e,t){var r=new Uint32Array([2781776228,2667607657,344215631,987627737,203704430,1352113495,2040841986,1220259382,2851504267,2852562949,2826939359,1583999983]),n=function(e){return void 0!==e.slice?e.slice():function(e){var t=new ArrayBuffer(e.byteLength);return new Uint32Array(t).set(new Uint32Array(e)),t}(e)},i=function(e){if(void 0===e.reverse)for(var t=0,r=e.length,n=Math.floor(r/2),i=null;t>>0},a=function(e,t){return e/Math.pow(2,t)>>>0},s=function(e){return(255&e)<<24|(65280&e)<<8|e>>8&65280|e>>24&255},u=function(e,t,r){var n=e+t,i=4294967295&a(n,32),o=(4294967295&n)>>>0,s=0!=i;return r&&(n=o+1),i=4294967295&a(n,32),[o=(4294967295&n)>>>0,s||0!=i]},c=function(e,t){for(var r=!0,n=0;n>>0,r);e[n]=i[0],r=i[1]}if(!r)throw"noborrow"},l=function(e,t){for(var r=e.length;r-- >0;){var n=e[r]>>>0,i=t[r]>>>0;if(ni)return 1}return 0},f=function(e,t){var r=u(e[0],t,!1);e[0]=r[0];for(var n=r[1],i=1;n&&i0;){for(var p=e[h]+1,d=u,v=0,g=0;g>>0}v>0&&(t[d]=v,u+=1),(d=f(t,p))>u&&(u=d)}if(!function(e){for(var t=0;t>31==0)!function(e,t){for(var r=!1,n=0;n0)c(a,r),s=!0;else{f(a,1);var h=n(r);c(h,a),a=h}for(var p=0,d=0;d<242;d++){p=0;for(var v=11;v>=0;v--){var g=(0!=p?4294967295*p+p:0)+a[v],y=g/3>>>0,m=g%3>>>0;a[v]=y,p=m}t[d]=p-1}if(s)for(d=0;d(t,r,n)=>(n%e==0?t.push([r]):t[t.length-1].push(r))&&t,p=(e,t,r)=>(e.context?(r>=u.HASH_LENGTH||r<=0)&&Promise.reject(new Error("Bad Min-Weight Magnitude")):Promise.reject(new Error("Webgl2 Is not Available")),new Promise((i,o)=>{e.queue.push({states:t,mwm:r,call:((e,t,r,i)=>(t,r)=>{e(n.trytes(t))})(i)}),e.state==c&&d(e)})),d=e=>{var t=e.queue.shift();e.state!=l?null!=t&&(e.state=l,g(e,t)):e.state=c},v=(e,t)=>{if(o.run(e.context,"increment"),o.run(e.context,"twist",u.NUMBER_OF_ROUNDS),o.run(e.context,"check",1,{n:"minWeightMagnitude",v:t.mwm}),o.run(e.context,"col_check"),-1===o.readData(e.context,u.STATE_LENGTH,0,1,1)[2]){if(e.state==f)return e._save(t);setTimeout(()=>v(e,t),1)}else o.run(e.context,"finalize"),t.call(o.readData(e.context,0,0,e.context.dim.x,1).reduce(h(4),[]).slice(0,u.HASH_LENGTH).map(e=>e[3]),t),d(e)},g=(e,t)=>{((e,t)=>{for(var r=0;rv(e,t),1)};e.exports={instance:e=>{if(o){let t=new Object;return t.context=o.worker(u.STATE_LENGTH+1,4),t.offset=t.context.dim.y*(e||0),t.buf=t.context.ipt.data,o.addProgram(t.context,"init",s.init,"gr_offset"),o.addProgram(t.context,"increment",s.increment),o.addProgram(t.context,"twist",s.transform),o.addProgram(t.context,"check",s.check,"minWeightMagnitude"),o.addProgram(t.context,"col_check",s.col_check),o.addProgram(t.context,"finalize",s.finalize),t.state=c,t.queue=[],t}},offsetState:e=>a.toPair(n.trits(e)),prepare:(e,t)=>{var r=new i;let o=n.trits(e);return r.absorb(o,0,u.TRANSACTION_LENGTH-u.HASH_LENGTH),o.slice(u.TRANSACTION_LENGTH-u.HASH_LENGTH,u.TRANSACTION_LENGTH).forEach((e,t)=>{r.state[t]=e}),states=a.toPair(r.state),states},search:p,doNext:d}},function(e){e.exports={name:"iota.lib.js",version:"0.4.7",description:"Javascript Library for IOTA",main:"./lib/iota.js",scripts:{build:"gulp",test:"mocha"},author:{name:"Dominik Schiener (IOTA Foundation)",website:"https://iota.org"},keywords:["iota","tangle","library","browser","javascript","nodejs","API"],license:"MIT",bugs:{url:"https://github.com/iotaledger/iota.lib.js/issues"},repository:{type:"git",url:"https://github.com/iotaledger/iota.lib.js.git"},dependencies:{async:"^2.5.0","bignumber.js":"^4.1.0","crypto-js":"^3.1.9-1",xmlhttprequest:"^1.8.0"},devDependencies:{bower:">=1.8.0",browserify:">=14.1.0",chai:"^4.0.2",del:"^3.0.0",gulp:"^3.9.1","gulp-jshint":"^2.0.2","gulp-nsp":">=2.4.2","gulp-rename":">=1.2.2","gulp-replace":"^0.6.1","gulp-uglify":"^3.0.0",jshint:"^2.9.4",mocha:"^3.2.0","vinyl-buffer":"^1.0.0","vinyl-source-stream":"^1.1.0"}}},function(e,t,r){var n=r(16),i=r(20),o=r(34);r(43),r(31),r(30);function a(e){if(!(this instanceof a))return new a(e);this._kerl=new o,this._kerl.initialize(),e&&this.absorb(e)}a.prototype.absorb=function(e){for(var t=Array.isArray(e)?e:[e],r=0;r2187){p+=Math.floor(r[h].message.length/2187);for(var d=r[h].message;d;){var v=d.slice(0,2187);d=d.slice(2187,d.length);for(var g=0;v.length<2187;g++)v+="9";f.push(v)}}else{v="";r[h].message&&(v=r[h].message.slice(0,2187));for(g=0;v.length<2187;g++)v+="9";f.push(v)}var y=Math.floor(Date.now()/1e3);i=r[h].tag?r[h].tag:"999999999999999999999999999";for(g=0;i.length<27;g++)i+="9";o.addEntry(p,r[h].address.slice(0,81),r[h].value,i,y),a+=parseInt(r[h].value)}if(!a)return n(new Error("Invalid value transfer: the transfer does not require a signature."));{function m(r,n){if(r>0){var s=0-r,u=Math.floor(Date.now()/1e3);o.addEntry(e.securitySum,e.address,s,i,u)}if(a>r)return n(new Error("Not enough balance."));if(r>a){var c=r-a;if(!t)return n(new Error("No remainder address defined"));o.addEntry(1,t,c,i,u)}return o.finalize(),o.addTrytes(f),n(null,o.bundle)}if(e.balance)m(e.balance,n);else{var b={command:"getBalances",addresses:new Array(e.address),threshold:100};this._makeRequest.send(b,function(e,t){if(e)return n(e);m(parseInt(t.balances[0]),n)})}}},h.prototype.addSignature=function(e,t,r,o){var a=new s;a.bundle=e;for(var u=r.length/2187,l=(r=i.trits(r),0),f=0;f0){var a=i.trits(e.bundle[o].bundle),s=new Int8Array(243);t.initialize(),t.absorb(r),t.absorb(a),t.squeeze(s);var u=i.trytes(s);e.bundle[o].signatureMessageFragment=u+e.bundle[o].signatureMessageFragment.substring(81,2187)}},e.exports=o},function(e,t){e.exports={attachToTangle:function(e,t,r,n){return{command:"attachToTangle",trunkTransaction:e,branchTransaction:t,minWeightMagnitude:r,trytes:n}},findTransactions:function(e){var t={command:"findTransactions"},r=["bundles","addresses","tags","approvees"];return Object.keys(e).forEach(function(n){r.indexOf(n)>-1&&(t[n]=e[n])}),t},getBalances:function(e,t){return{command:"getBalances",addresses:e,threshold:t}},getInclusionStates:function(e,t){return{command:"getInclusionStates",transactions:e,tips:t}},getNodeInfo:function(){return{command:"getNodeInfo"}},getNeighbors:function(){return{command:"getNeighbors"}},addNeighbors:function(e){return{command:"addNeighbors",uris:e}},removeNeighbors:function(e){return{command:"removeNeighbors",uris:e}},getTips:function(){return{command:"getTips"}},getTransactionsToApprove:function(e,t){var r={command:"getTransactionsToApprove",depth:e};return void 0!=t&&(r.reference=t),r},getTrytes:function(e){return{command:"getTrytes",hashes:e}},interruptAttachingToTangle:function(){return{command:"interruptAttachingToTangle"}},checkConsistency:function(e){return{command:"checkConsistency",tails:e}},broadcastTransactions:function(e){return{command:"broadcastTransactions",trytes:e}},storeTransactions:function(e){return{command:"storeTransactions",trytes:e}},wereAddressesSpentFrom:function(e){return{command:"wereAddressesSpentFrom",addresses:e}}}},function(e,t,r){var n=r(188),i=r(55),o=r(30),a=r(187),s=r(16),u=r(43),c=r(42),l=r(31),f=r(92),h=new Array(244).join("9");function p(e,t){this._makeRequest=e,this.sandbox=t}p.prototype.sendCommand=function(e,t){var r=["addresses","bundles","hashes","tags","transactions","approvees"];if(["findTransactions","getBalances","getInclusionStates","getTrytes"].indexOf(e.command)>-1){var n=Object.keys(e).filter(function(t){return r.indexOf(t)>-1&&e[t].length>1e3});if(n.length)return this._makeRequest.batchedSend(e,n,1e3,t)}return this._makeRequest.send(e,t)},p.prototype.attachToTangle=function(e,t,r,a,s){if(!o.isHash(e))return s(i.invalidTrunkOrBranch(e));if(!o.isHash(t))return s(i.invalidTrunkOrBranch(t));if(!o.isValue(r))return s(i.notInt());if(!o.isArrayOfTrytes(a))return s(i.invalidTrytes());var u=n.attachToTangle(e,t,r,a);return this.sendCommand(u,s)},p.prototype.findTransactions=function(e,t){if(!o.isObject(e))return t(i.invalidKey());var r=["bundles","addresses","tags","approvees"],a=!1;if(Object.keys(e).forEach(function(t){if(-1!==r.indexOf(t)){"addresses"===t&&(e.addresses=e.addresses.map(function(e){return l.noChecksum(e)}));var n=e[t];if("tags"===t)e.tags=n.map(function(e){for(;e.length<27;)e+="9";if(o.isTrytes(e,27))return e;a=i.invalidTrytes()});else if(!o.isArrayOfHashes(n))return void(a=i.invalidTrytes())}else a=i.invalidKey()}),!a){var s=n.findTransactions(e);return this.sendCommand(s,t)}t(a)},p.prototype.getBalances=function(e,t,r){if(!o.isArrayOfHashes(e))return r(i.invalidTrytes());var a=n.getBalances(e.map(function(e){return l.noChecksum(e)}),t);return this.sendCommand(a,r)},p.prototype.getInclusionStates=function(e,t,r){if(!o.isArrayOfHashes(e))return r(i.invalidTrytes());if(!o.isArrayOfHashes(t))return r(i.invalidTrytes());var a=n.getInclusionStates(e,t);return this.sendCommand(a,r)},p.prototype.getNodeInfo=function(e){var t=n.getNodeInfo();return this.sendCommand(t,e)},p.prototype.getNeighbors=function(e){var t=n.getNeighbors();return this.sendCommand(t,e)},p.prototype.addNeighbors=function(e,t){for(var r=0;r0))return s(i,o);setTimeout(function(){u.promoteTransaction(e,t,r,n,a,s)},a.delay)}):s(i.inconsistentSubtangle(e))}).catch(function(e){s(e)})},p.prototype.replayBundle=function(e,t,r,n){var a=this;return o.isHash(e)?o.isValue(t)&&o.isValue(r)?void a.getBundle(e,function(e,i){if(e)return n(e);var o=[];return i.forEach(function(e){o.push(l.transactionTrytes(e))}),a.sendTrytes(o.reverse(),t,r,n)}):n(i.invalidInputs()):n(i.invalidTrytes())},p.prototype.broadcastBundle=function(e,t){var r=this;if(!o.isHash(e))return t(i.invalidTrytes());r.getBundle(e,function(e,n){if(e)return t(e);var i=[];return n.forEach(function(e){i.push(l.transactionTrytes(e))}),r.broadcastTransactions(i.reverse(),t)})},p.prototype._newAddress=function(e,t,r,n){var i=u.key(s.trits(e),t,r),o=u.digests(i),a=u.address(o),c=s.trytes(a);return n&&(c=l.addChecksum(c)),c},p.prototype.getNewAddress=function(e,t,r){var n=this;if(2===arguments.length&&"[object Function]"===Object.prototype.toString.call(t)&&(r=t,t={}),!o.isTrytes(e))return r(i.invalidSeed());var a=0;if("index"in t&&(a=t.index,!o.isValue(a)||a<0))return r(i.invalidIndex());var s=t.checksum||!1,u=t.total||null,c=2;if("security"in t&&(c=t.security,!o.isValue(c)||c<1||c>3))return r(i.invalidSecurity());var l=[];if(u){for(var h=0;h0)})})},function(e,t){return t},function(e,n){if(e)return r(e);var i=t.returnAll?l:n;return r(null,i)})},p.prototype.getInputs=function(e,t,r){var n=this;if(2===arguments.length&&"[object Function]"===Object.prototype.toString.call(t)&&(r=t,t={}),!o.isTrytes(e))return r(i.invalidSeed());var a=t.start||0,s=t.end||null,u=t.threshold||null,c=t.security||2;if(t.end&&(a>s||s>a+500))return r(new Error("Invalid inputs provided"));if(s){for(var l=[],f=a;f0){var f={address:e[s],balance:l,keyIndex:a+s,security:c};if(i.inputs.push(f),i.totalBalance+=l,u&&i.totalBalance>=u){o=!0;break}}}return o?r(null,i):r(new Error("Not enough balance"))})}},p.prototype.prepareTransfers=function(e,t,r,n){var f=this,p=!1,d=!1;if(3===arguments.length&&"[object Function]"===Object.prototype.toString.call(r)&&(n=r,r={}),!o.isTrytes(e))return n(i.invalidSeed());if(r.hasOwnProperty("hmacKey")&&r.hmacKey){if(!o.isTrytes(r.hmacKey))return n(i.invalidTrytes());p=!0}if(t.forEach(function(e){if(e.message=e.message?e.message:"",e.obsoleteTag=e.tag?e.tag:e.obsoleteTag?e.obsoleteTag:"",p&&e.value>0&&(e.message=h+e.message,d=!0),90===e.address.length&&!l.isValidChecksum(e.address))return n(i.invalidChecksum(e.address));e.address=l.noChecksum(e.address)}),!o.isTransfersArray(t))return n(i.invalidTransfers());if(r.inputs&&!o.isInputs(r.inputs))return n(i.invalidInputs());for(var v,g=r.address||null,y=(r.inputs,r.security||2),m=new c,b=0,_=[],w=0;w2187){E+=Math.floor(t[w].message.length/2187);for(var S=t[w].message;S;){var x=S.slice(0,2187);S=S.slice(2187,S.length);for(var T=0;x.length<2187;T++)x+="9";_.push(x)}}else{x="";t[w].message&&(x=t[w].message.slice(0,2187));for(T=0;x.length<2187;T++)x+="9";_.push(x)}var A=Math.floor(Date.now()/1e3);v=t[w].obsoleteTag?t[w].obsoleteTag:"999999999999999999999999999";for(T=0;v.length<27;T++)v+="9";m.addEntry(E,t[w].address,t[w].value,v,A),b+=parseInt(t[w].value)}if(!b){m.finalize(),m.addTrytes(_);var k=[];return m.bundle.forEach(function(e){k.push(l.transactionTrytes(e))}),n(null,k.reverse())}if(r.inputs){var O=[];r.inputs.forEach(function(e){O.push(e.address)}),f.getBalances(O,100,function(e,t){if(e)return n(e);for(var i=[],o=0,a=0;a0){o+=s;var u=r.inputs[a];if(u.balance=s,i.push(u),o>=b)break}}if(b>o)return n(new Error("Not enough balance"));C(i)})}else f.getInputs(e,{threshold:b,security:y},function(e,t){if(e)return n(e);C(t.inputs)});function C(t){for(var r=b,i=0;i=r){var u=o-r;if(u>0&&g)m.addEntry(1,g,u,v,s),I(t);else if(u>0){for(var c=0,l=0;ln?1:0}),r(e,a)})}])})})},p.prototype.getTransfers=function(e,t,r){var n=this;if(2===arguments.length&&"[object Function]"===Object.prototype.toString.call(t)&&(r=t,t={}),!o.isTrytes(e))return r(i.invalidSeed(e));var a=t.start||0,s=t.end||null,u=t.inclusionStates||null,c=t.security||2;if(a>s||s>a+500)return r(new Error("Invalid inputs provided"));var l={index:a,total:s?s-a:null,returnAll:!0,security:c};n.getNewAddress(e,l,function(e,t){return e?r(e):n._bundlesFromAddresses(t,u,r)})},p.prototype.getAccountData=function(e,t,r){var n=this;if(2===arguments.length&&"[object Function]"===Object.prototype.toString.call(t)&&(r=t,t={}),!o.isTrytes(e))return r(i.invalidSeed(e));var a=t.start||0,s=t.end||null,u=t.security||2;if(s&&(a>s||s>a+1e3))return r(new Error("Invalid inputs provided"));var c={latestAddress:"",addresses:[],transfers:[],inputs:[],balance:0},l={index:a,total:s?s-a:null,returnAll:!0,security:u};n.getNewAddress(e,l,function(e,t){if(e)return r(e);c.latestAddress=t[t.length-1],c.addresses=t.slice(0,-1),n._bundlesFromAddresses(t,!0,function(e,t){if(e)return r(e);c.transfers=t,n.getBalances(c.addresses,100,function(e,t){return e?r(e):(t.balances.forEach(function(e,t){e=parseInt(e);if(c.balance+=e,e>0){var r={address:c.addresses[t],keyIndex:t,security:u,balance:e};c.inputs.push(r)}}),r(null,c))})})})},p.prototype.isReattachable=function(e,t){var r=this;o.isString(e)&&(e=new Array(e));for(var n={},a=[],s=0;s0)){var s=[],u=a.length;if(u>1)for(var c=0;c0||e===t?t:t-1}function _(e){for(var t,r,n=1,i=e.length,o=e[0]+"";nc^r?1:-1;for(s=(u=i.length)<(c=o.length)?u:c,a=0;ao[a]^r?1:-1;return u==c?0:u>c^r?1:-1}function E(e,t,r){return(e=k(e))>=t&&e<=r}function S(e){return"[object Array]"==Object.prototype.toString.call(e)}function x(e,t,r){for(var n,i,o=[0],a=0,s=e.length;ar-1&&(null==o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}function T(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function A(e,t){var r,n;if(t<0){for(n="0.";++t;n+="0");e=n+e}else if(++t>(r=e.length)){for(n="0",t-=r;--t;n+="0");e+=n}else t15&&$(i,f,e),c=!1):g.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1,p=z(p,10,t,g.s)}else{if(e instanceof F)return g.s=e.s,g.e=e.e,g.c=(e=e.c)?e.slice():e,void(i=0);if((c="number"==typeof e)&&0*e==0){if(g.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,s=e;s>=10;s/=10,o++);return g.e=o,g.c=[e],void(i=0)}p=e+""}else{if(!a.test(p=e+""))return n(g,p,c);g.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1}}for((o=p.indexOf("."))>-1&&(p=p.replace(".","")),(s=p.search(/e/i))>0?(o<0&&(o=s),o+=+p.slice(s+1),p=p.substring(0,s)):o<0&&(o=p.length),s=0;48===p.charCodeAt(s);s++);for(l=p.length;48===p.charCodeAt(--l););if(p=p.slice(s,l+1))if(l=p.length,c&&j&&l>15&&(e>v||e!==u(e))&&$(i,f,g.s*e),(o=o-s-1)>P)g.c=g.e=null;else if(o=0&&(s=U,U=0,e=e.replace(".",""),c=(f=new F(n)).pow(e.length-p),U=s,f.c=x(A(_(c.c),c.e),10,t),f.e=f.c.length),a=s=(l=x(e,n,t)).length;0==l[--s];l.pop());if(!l[0])return"0";if(p<0?--a:(c.c=l,c.e=a,c.s=i,l=(c=r(c,f,d,v,t)).c,u=c.r,a=c.e),p=l[o=a+d+1],s=t/2,u=u||o<0||null!=l[o+1],u=v<4?(null!=p||u)&&(0==v||v==(c.s<0?3:2)):p>s||p==s&&(4==v||u||6==v&&1&l[o-1]||v==(c.s<0?8:7)),o<1||!l[0])e=u?A("1",-d):"0";else{if(l.length=o,u)for(--t;++l[--o]>t;)l[o]=0,o||(++a,l=[1].concat(l));for(s=l.length;!l[--s];);for(p=0,e="";p<=s;e+=h.charAt(l[p++]));e=A(e,a)}return e}function G(e,t,r,n){var i,o,a,s,u;if(r=null!=r&&H(r,0,8,n,l)?0|r:I,!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)u=_(e.c),u=19==n||24==n&&a<=N?T(u,a):A(u,a);else if(o=(e=K(new F(e),t,r)).e,s=(u=_(e.c)).length,19==n||24==n&&(t<=o||o<=N)){for(;ss){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=o-s)>0)for(o+1==s&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function q(e,t){var r,n,i=0;for(S(e[0])&&(e=e[0]),r=new F(e[0]);++ir||e!=k(e))&&$(n,(i||"decimal places")+(er?" out of range":" not an integer"),e),!0}function W(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*d-1)>P?e.c=e.e=null:r=10;c/=10,i++);if((o=t-i)<0)o+=d,a=t,h=(l=v[f=0])/y[i-a-1]%10|0;else if((f=s((o+1)/d))>=v.length){if(!n)break e;for(;v.length<=f;v.push(0));l=h=0,i=1,a=(o%=d)-d+1}else{for(l=c=v[f],i=1;c>=10;c/=10,i++);h=(a=(o%=d)-d+i)<0?0:l/y[i-a-1]%10|0}if(n=n||t<0||null!=v[f+1]||(a<0?l:l%y[i-a-1]),n=r<4?(h||n)&&(0==r||r==(e.s<0?3:2)):h>5||5==h&&(4==r||n||6==r&&(o>0?a>0?l/y[i-a]:0:v[f-1])%10&1||r==(e.s<0?8:7)),t<1||!v[0])return v.length=0,n?(t-=e.e+1,v[0]=y[(d-t%d)%d],e.e=-t||0):v[0]=e.e=0,e;if(0==o?(v.length=f,c=1,f--):(v.length=f+1,c=y[d-o],v[f]=a>0?u(l/y[i-a]%y[a])*c:0),n)for(;;){if(0==f){for(o=1,a=v[0];a>=10;a/=10,o++);for(a=v[0]+=c,c=1;a>=10;a/=10,c++);o!=c&&(e.e++,v[0]==p&&(v[0]=1));break}if(v[f]+=c,v[f]!=p)break;v[f--]=0,c=1}for(o=v.length;0===v[--o];v.pop());}e.e>P?e.c=e.e=null:e.er)return null!=(e=o[r++])};return s(t="DECIMAL_PLACES")&&H(e,0,m,2,t)&&(C=0|e),n[t]=C,s(t="ROUNDING_MODE")&&H(e,0,8,2,t)&&(I=0|e),n[t]=I,s(t="EXPONENTIAL_AT")&&(S(e)?H(e[0],-m,0,2,t)&&H(e[1],0,m,2,t)&&(N=0|e[0],B=0|e[1]):H(e,-m,m,2,t)&&(N=-(B=0|(e<0?-e:e)))),n[t]=[N,B],s(t="RANGE")&&(S(e)?H(e[0],-m,-1,2,t)&&H(e[1],1,m,2,t)&&(R=0|e[0],P=0|e[1]):H(e,-m,m,2,t)&&(0|e?R=-(P=0|(e<0?-e:e)):j&&$(2,t+" cannot be zero",e))),n[t]=[R,P],s(t="ERRORS")&&(e===!!e||1===e||0===e?(i=0,H=(j=!!e)?V:E):j&&$(2,t+c,e)),n[t]=j,s(t="CRYPTO")&&(!0===e||!1===e||1===e||0===e?e?!(e="undefined"==typeof crypto)&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?M=!0:j?$(2,"crypto unavailable",e?void 0:crypto):M=!1:M=!1:j&&$(2,t+c,e)),n[t]=M,s(t="MODULO_MODE")&&H(e,0,9,2,t)&&(D=0|e),n[t]=D,s(t="POW_PRECISION")&&H(e,0,m,2,t)&&(U=0|e),n[t]=U,s(t="FORMAT")&&("object"==typeof e?L=e:j&&$(2,t+" not an object",e)),n[t]=L,n},F.max=function(){return q(arguments,o.lt)},F.min=function(){return q(arguments,o.gt)},F.random=function(){var e=9007199254740992*Math.random()&2097151?function(){return u(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(t){var r,n,i,o,a,c=0,l=[],f=new F(O);if(t=null!=t&&H(t,0,m,14)?0|t:C,o=s(t/d),M)if(crypto.getRandomValues){for(r=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),r[c]=n[0],r[c+1]=n[1]):(l.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(r=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(r,c):(l.push(a%1e14),c+=7);c=o/7}else M=!1,j&&$(14,"crypto unavailable",crypto);if(!M)for(;c=10;a/=10,c++);cn?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]1;e.splice(0,1));}return function(n,i,o,a,s){var c,l,f,h,v,g,y,m,_,w,E,S,x,T,A,k,O,C=n.s==i.s?1:-1,I=n.c,N=i.c;if(!(I&&I[0]&&N&&N[0]))return new F(n.s&&i.s&&(I?!N||I[0]!=N[0]:N)?I&&0==I[0]||!N?0*C:C/0:NaN);for(_=(m=new F(C)).c=[],C=o+(l=n.e-i.e)+1,s||(s=p,l=b(n.e/d)-b(i.e/d),C=C/d|0),f=0;N[f]==(I[f]||0);f++);if(N[f]>(I[f]||0)&&l--,C<0)_.push(1),h=!0;else{for(T=I.length,k=N.length,f=0,C+=2,(v=u(s/(N[0]+1)))>1&&(N=e(N,v,s),I=e(I,v,s),k=N.length,T=I.length),x=k,E=(w=I.slice(0,k)).length;E=s/2&&A++;do{if(v=0,(c=t(N,w,k,E))<0){if(S=w[0],k!=E&&(S=S*s+(w[1]||0)),(v=u(S/A))>1)for(v>=s&&(v=s-1),y=(g=e(N,v,s)).length,E=w.length;1==t(g,w,y,E);)v--,r(g,k=10;C/=10,f++);K(m,o+(m.e=f+l*d-1)+1,a,h)}else m.e=l,m.r=+h;return m}}(),n=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,r=/^\.([^.]+)$/,n=/^-?(Infinity|NaN)$/,o=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(a,s,u,c){var l,f=u?s:s.replace(o,"");if(n.test(f))a.s=isNaN(f)?null:f<0?-1:1;else{if(!u&&(f=f.replace(e,function(e,t,r){return l="x"==(r=r.toLowerCase())?16:"b"==r?2:8,c&&c!=l?e:t}),c&&(l=c,f=f.replace(t,"$1").replace(r,"0.$1")),s!=f))return new F(f,l);j&&$(i,"not a"+(c?" base "+c:"")+" number",s),a.s=null}a.c=a.e=null,i=0}}(),o.absoluteValue=o.abs=function(){var e=new F(this);return e.s<0&&(e.s=1),e},o.ceil=function(){return K(new F(this),this.e+1,2)},o.comparedTo=o.cmp=function(e,t){return i=1,w(this,new F(e,t))},o.decimalPlaces=o.dp=function(){var e,t,r=this.c;if(!r)return null;if(e=((t=r.length-1)-b(this.e/d))*d,t=r[t])for(;t%10==0;t/=10,e--);return e<0&&(e=0),e},o.dividedBy=o.div=function(e,t){return i=3,r(this,new F(e,t),C,I)},o.dividedToIntegerBy=o.divToInt=function(e,t){return i=4,r(this,new F(e,t),0,1)},o.equals=o.eq=function(e,t){return i=5,0===w(this,new F(e,t))},o.floor=function(){return K(new F(this),this.e+1,3)},o.greaterThan=o.gt=function(e,t){return i=6,w(this,new F(e,t))>0},o.greaterThanOrEqualTo=o.gte=function(e,t){return i=7,1===(t=w(this,new F(e,t)))||0===t},o.isFinite=function(){return!!this.c},o.isInteger=o.isInt=function(){return!!this.c&&b(this.e/d)>this.c.length-2},o.isNaN=function(){return!this.s},o.isNegative=o.isNeg=function(){return this.s<0},o.isZero=function(){return!!this.c&&0==this.c[0]},o.lessThan=o.lt=function(e,t){return i=8,w(this,new F(e,t))<0},o.lessThanOrEqualTo=o.lte=function(e,t){return i=9,-1===(t=w(this,new F(e,t)))||0===t},o.minus=o.sub=function(e,t){var r,n,o,a,s=this,u=s.s;if(i=10,t=(e=new F(e,t)).s,!u||!t)return new F(NaN);if(u!=t)return e.s=-t,s.plus(e);var c=s.e/d,l=e.e/d,f=s.c,h=e.c;if(!c||!l){if(!f||!h)return f?(e.s=-t,e):new F(h?s:NaN);if(!f[0]||!h[0])return h[0]?(e.s=-t,e):new F(f[0]?s:3==I?-0:0)}if(c=b(c),l=b(l),f=f.slice(),u=c-l){for((a=u<0)?(u=-u,o=f):(l=c,o=h),o.reverse(),t=u;t--;o.push(0));o.reverse()}else for(n=(a=(u=f.length)<(t=h.length))?u:t,u=t=0;t0)for(;t--;f[r++]=0);for(t=p-1;n>u;){if(f[--n]0?(s=a,r=c):(o=-o,r=u),r.reverse();o--;r.push(0));r.reverse()}for((o=u.length)-(t=c.length)<0&&(r=c,c=u,u=r,t=o),o=0;t;)o=(u[--t]=u[t]+c[t]+o)/p|0,u[t]=p===u[t]?0:u[t]%p;return o&&(u=[o].concat(u),++s),W(e,u,s)},o.precision=o.sd=function(e){var t,r,n=this,i=n.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&(j&&$(13,"argument"+c,e),e!=!!e&&(e=null)),!i)return null;if(t=(r=i.length-1)*d+1,r=i[r]){for(;r%10==0;r/=10,t--);for(r=i[0];r>=10;r/=10,t++);}return e&&n.e+1>t&&(t=n.e+1),t},o.round=function(e,t){var r=new F(this);return(null==e||H(e,0,m,15))&&K(r,~~e+this.e+1,null!=t&&H(t,0,8,15,l)?0|t:I),r},o.shift=function(e){var t=this;return H(e,-v,v,16,"argument")?t.times("1e"+k(e)):new F(t.c&&t.c[0]&&(e<-v||e>v)?t.s*(e<0?0:1/0):t)},o.squareRoot=o.sqrt=function(){var e,t,n,i,o,a=this,s=a.c,u=a.s,c=a.e,l=C+4,f=new F("0.5");if(1!==u||!s||!s[0])return new F(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(u=Math.sqrt(+a))||u==1/0?(((t=_(s)).length+c)%2==0&&(t+="0"),u=Math.sqrt(t),c=b((c+1)/2)-(c<0||c%2),n=new F(t=u==1/0?"1e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):n=new F(u+""),n.c[0])for((u=(c=n.e)+l)<3&&(u=0);;)if(o=n,n=f.times(o.plus(r(a,o,l,1))),_(o.c).slice(0,u)===(t=_(n.c)).slice(0,u)){if(n.e=0;){for(r=0,v=x[o]%w,g=x[o]/w|0,a=o+(s=c);a>o;)r=((l=v*(l=S[--s]%w)+(u=g*l+(f=S[s]/w|0)*v)%w*w+m[a]+r)/_|0)+(u/w|0)+g*f,m[a--]=l%_;m[a]=r}return r?++n:m.splice(0,1),W(e,m,n)},o.toDigits=function(e,t){var r=new F(this);return e=null!=e&&H(e,1,m,18,"precision")?0|e:null,t=null!=t&&H(t,0,8,18,l)?0|t:I,e?K(r,e,t):r},o.toExponential=function(e,t){return G(this,null!=e&&H(e,0,m,19)?1+~~e:null,t,19)},o.toFixed=function(e,t){return G(this,null!=e&&H(e,0,m,20)?~~e+this.e+1:null,t,20)},o.toFormat=function(e,t){var r=G(this,null!=e&&H(e,0,m,21)?~~e+this.e+1:null,t,21);if(this.c){var n,i=r.split("."),o=+L.groupSize,a=+L.secondaryGroupSize,s=L.groupSeparator,u=i[0],c=i[1],l=this.s<0,f=l?u.slice(1):u,h=f.length;if(a&&(n=o,o=a,a=n,h-=n),o>0&&h>0){for(n=h%o||o,u=f.substr(0,n);n0&&(u+=s+f.slice(n)),l&&(u="-"+u)}r=c?u+L.decimalSeparator+((a=+L.fractionGroupSize)?c.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+L.fractionGroupSeparator):c):u}return r},o.toFraction=function(e){var t,n,i,o,a,s,u,c,l,f=j,h=this,p=h.c,v=new F(O),y=n=new F(O),m=u=new F(O);if(null!=e&&(j=!1,s=new F(e),j=f,(f=s.isInt())&&!s.lt(O)||(j&&$(22,"max denominator "+(f?"out of range":"not an integer"),e),e=!f&&s.c&&K(s,s.e+1,1).gte(O)?s:null)),!p)return h.toString();for(l=_(p),o=v.e=l.length-h.e-1,v.c[0]=g[(a=o%d)<0?d+a:a],e=!e||s.cmp(v)>0?o>0?v:y:s,a=P,P=1/0,s=new F(l),u.c[0]=0;c=r(s,v,0,1),1!=(i=n.plus(c.times(m))).cmp(e);)n=m,m=i,y=u.plus(c.times(i=y)),u=i,v=s.minus(c.times(i=v)),s=i;return i=r(e.minus(n),m,0,1),u=u.plus(i.times(y)),n=n.plus(i.times(m)),u.s=y.s=h.s,t=r(y,m,o*=2,I).minus(h).abs().cmp(r(u,n,o,I).minus(h).abs())<1?[y.toString(),m.toString()]:[u.toString(),n.toString()],P=a,t},o.toNumber=function(){return+this},o.toPower=o.pow=function(e,t){var r,n,o,a=u(e<0?-e:+e),c=this;if(null!=t&&(i=23,t=new F(t)),!H(e,-v,v,23,"exponent")&&(!isFinite(e)||a>v&&(e/=0)||parseFloat(e)!=e&&!(e=NaN))||0==e)return r=Math.pow(+c,e),new F(t?r%t:r);for(t?e>1&&c.gt(O)&&c.isInt()&&t.gt(O)&&t.isInt()?c=c.mod(t):(o=t,t=null):U&&(r=s(U/d+2)),n=new F(O);;){if(a%2){if(!(n=n.times(c)).c)break;r?n.c.length>r&&(n.c.length=r):t&&(n=n.mod(t))}if(!(a=u(a/2)))break;c=c.times(c),r?c.c&&c.c.length>r&&(c.c.length=r):t&&(c=c.mod(t))}return t?n:(e<0&&(n=O.div(n)),o?n.mod(o):r?K(n,U,I):n)},o.toPrecision=function(e,t){return G(this,null!=e&&H(e,1,m,24,"precision")?0|e:null,t,24)},o.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(t=_(r.c),t=null!=e&&H(e,2,64,25,"base")?z(A(t,i),0|e,10,n):i<=N||i>=B?T(t,i):A(t,i),n<0&&r.c[0]&&(t="-"+t)),t},o.truncated=o.trunc=function(){return K(new F(this),this.e+1,1)},o.valueOf=o.toJSON=function(){var e,t=this,r=t.e;return null===r?t.toString():(e=_(t.c),e=r<=N||r>=B?T(e,r):A(e,r),t.s<0?"-"+e:e)},o.isBigNumber=!0,null!=t&&F.config(t),F}()).default=o.BigNumber=o,void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},function(e,t,r){var n=r(46),i=r(30);e.exports=function(e){if(!i.isArray(e)||void 0===e[0])return null;if("OD"!==e[0].signatureMessageFragment[0]+e[0].signatureMessageFragment[1])return null;for(var t=0,r=!0,o="",a=0,s=!1,u="";t0;){var s=new n;s.initialize(),s.absorb(r,0,r.length),s.squeeze(r,0,n.HASH_LENGTH)}i.absorb(r,0,r.length)}return i.squeeze(r,0,n.HASH_LENGTH),r};e.exports={key:function(e,t,r){for(;e.length%243!=0;)e.push(0);var o=i.fromValue(t),s=a(e.slice(),o),u=new n;u.initialize(),u.absorb(s,0,s.length),u.squeeze(s,0,s.length),u.initialize(),u.absorb(s,0,s.length);for(var c=[],l=0,f=[];r-- >0;)for(var h=0;h<27;h++){u.squeeze(f,0,s.length);for(var p=0;p<243;p++)c[l++]=f[p]}return c},digests:function(e){for(var t=[],r=[],i=0;i>>0},a=function(e,t){return e/Math.pow(2,t)>>>0},s=function(e){return(255&e)<<24|(65280&e)<<8|e>>8&65280|e>>24&255},u=function(e,t,r){var n=e+t,i=4294967295&a(n,32),o=(4294967295&n)>>>0,s=0!=i;return r&&(n=o+1),i=4294967295&a(n,32),[o=(4294967295&n)>>>0,s||0!=i]},c=function(e,t){for(var r=!0,n=0;n>>0,r);e[n]=i[0],r=i[1]}if(!r)throw"noborrow"},l=function(e,t){for(var r=e.length;r-- >0;){var n=e[r]>>>0,i=t[r]>>>0;if(ni)return 1}return 0},f=function(e,t){var r=u(e[0],t,!1);e[0]=r[0];for(var n=r[1],i=1;n&&i0;){for(var p=e[h]+1,d=u,v=0,g=0;g>>0}v>0&&(t[d]=v,u+=1),(d=f(t,p))>u&&(u=d)}if(!function(e){for(var t=0;t>31==0)!function(e,t){for(var r=!1,n=0;n0)c(a,r),s=!0;else{f(a,1);var h=n(r);c(h,a),a=h}for(var p=0,d=0;d<242;d++){p=0;for(var v=11;v>=0;v--){var g=(0!=p?4294967295*p+p:0)+a[v],y=g/3>>>0,m=g%3>>>0;a[v]=y,p=m}t[d]=p-1}if(s)for(d=0;d>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)s.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],u=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),f=c>>>16|4294901760&l,h=l<<16|65535&c;for(n[0]^=c,n[1]^=f,n[2]^=l,n[3]^=h,n[4]^=c,n[5]^=f,n[6]^=l,n[7]^=h,i=0;i<4;i++)s.call(this)}},_doProcessBlock:function(e,t){var r=this._X;s.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],a=65535&n,s=n>>>16,u=((a*a>>>17)+a*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);o[r]=u^c}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=r._createHelper(a)}(),e.RabbitLegacy}(r(4),r(29),r(28),r(23),r(9))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=[],i=[],o=[],a=t.algo.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)s.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],u=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),f=c>>>16|4294901760&l,h=l<<16|65535&c;for(i[0]^=c,i[1]^=f,i[2]^=l,i[3]^=h,i[4]^=c,i[5]^=f,i[6]^=l,i[7]^=h,r=0;r<4;r++)s.call(this)}},_doProcessBlock:function(e,t){var r=this._X;s.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],a=65535&n,s=n>>>16,u=((a*a>>>17)+a*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);o[r]=u^c}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=r._createHelper(a)}(),e.Rabbit}(r(4),r(29),r(28),r(23),r(9))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var u=n[i];n[i]=n[o],n[o]=u}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=r._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});t.RC4Drop=r._createHelper(a)}(),e.RC4}(r(4),r(29),r(28),r(23),r(9))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=r.BlockCipher,o=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var c=i[o]=[],l=u[o];for(r=0;r<24;r++)c[r/6|0]|=t[(s[r]-1+l)%28]<<31-r%6,c[4+(r/6|0)]|=t[28+(s[r+24]-1+l)%28]<<31-r%6;for(c[0]=c[0]<<1|c[0]>>>31,r=1;r<7;r++)c[r]=c[r]>>>4*(r-1)+3;c[7]=c[7]<<5|c[7]>>>27}var f=this._invSubKeys=[];for(r=0;r<16;r++)f[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,u=0;u<8;u++)s|=c[u][((a^i[u])&l[u])>>>0];this._lBlock=a,this._rBlock=o^s}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<>>8^255&d^99,i[r]=d,o[d]=r;var v=e[r],g=e[v],y=e[g],m=257*e[d]^16843008*d;a[r]=m<<24|m>>>8,s[r]=m<<16|m>>>16,u[r]=m<<8|m>>>24,c[r]=m,m=16843009*y^65537*g^257*v^16843008*r,l[d]=m<<24|m>>>8,f[d]=m<<16|m>>>16,h[d]=m<<8|m>>>24,p[d]=m,r?(r=v^e[e[e[y^v]]],n^=e[e[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=d[a/r|0]<<24),o[a]=o[a-r]^s}for(var u=this._invKeySchedule=[],c=0;c>>24]]^f[i[s>>>16&255]]^h[i[s>>>8&255]]^p[i[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,u,c,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,l,f,h,p,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var u=this._nRounds,c=e[t]^r[0],l=e[t+1]^r[1],f=e[t+2]^r[2],h=e[t+3]^r[3],p=4,d=1;d>>24]^i[l>>>16&255]^o[f>>>8&255]^a[255&h]^r[p++],g=n[l>>>24]^i[f>>>16&255]^o[h>>>8&255]^a[255&c]^r[p++],y=n[f>>>24]^i[h>>>16&255]^o[c>>>8&255]^a[255&l]^r[p++],m=n[h>>>24]^i[c>>>16&255]^o[l>>>8&255]^a[255&f]^r[p++];c=v,l=g,f=y,h=m}v=(s[c>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[p++],g=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^r[p++],y=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&l])^r[p++],m=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^r[p++],e[t]=v,e[t+1]=g,e[t+2]=y,e[t+3]=m},keySize:8});t.AES=r._createHelper(v)}(),e.AES}(r(4),r(29),r(28),r(23),r(9))},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib.CipherParams,i=r.enc.Hex;r.format.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return n.create({ciphertext:t})}}}(),e.format.Hex}(r(4),r(9))},function(e,t,r){e.exports=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}(r(4),r(9))},function(e,t,r){e.exports=function(e){return e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},e.pad.ZeroPadding}(r(4),r(9))},function(e,t,r){e.exports=function(e){return e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971}(r(4),r(9))},function(e,t,r){e.exports=function(e){return e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126}(r(4),r(9))},function(e,t,r){e.exports=function(e){return e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923}(r(4),r(9))},function(e,t,r){e.exports=function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB}(r(4),r(9))},function(e,t,r){e.exports=function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var a=0;a>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=r(e[0]))&&(e[1]=r(e[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var u=0;u>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=r(e[0]))&&(e[1]=r(e[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var u=0;u>>24)|4278255360&(i<<24|i>>>8)}var o,a,d,_,w,E,S,x,T,A,k,O=this._hash.words,C=f.words,I=h.words,N=s.words,R=u.words,B=c.words,P=l.words;for(E=o=O[0],S=a=O[1],x=d=O[2],T=_=O[3],A=w=O[4],r=0;r<80;r+=1)k=o+e[t+N[r]]|0,k+=r<16?p(a,d,_)+C[0]:r<32?v(a,d,_)+C[1]:r<48?g(a,d,_)+C[2]:r<64?y(a,d,_)+C[3]:m(a,d,_)+C[4],k=(k=b(k|=0,B[r]))+w|0,o=w,w=_,_=b(d,10),d=a,a=k,k=E+e[t+R[r]]|0,k+=r<16?m(S,x,T)+I[0]:r<32?y(S,x,T)+I[1]:r<48?g(S,x,T)+I[2]:r<64?v(S,x,T)+I[3]:p(S,x,T)+I[4],k=(k=b(k|=0,P[r]))+A|0,E=A,A=T,T=b(x,10),x=S,S=k;k=O[1]+d+T|0,O[1]=O[2]+_+A|0,O[2]=O[3]+w+E|0,O[3]=O[4]+o+S|0,O[4]=O[0]+a+x|0,O[0]=k},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function v(e,t,r){return e&t|~e&r}function g(e,t,r){return(e|~t)^r}function y(e,t,r){return e&r|t&~r}function m(e,t,r){return e^(t|~r)}function b(e,t){return e<>>32-t}r.RIPEMD160=o._createHelper(d),r.HmacRIPEMD160=o._createHmacHelper(d)}(Math),e.RIPEMD160}(r(0))},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.x64.Word,s=r.algo,u=[],c=[],l=[];!function(){for(var e=1,t=0,r=0;r<24;r++){u[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,f=0,h=0;h<7;h++){if(1&i){var d=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(O=r[i]).high^=a,O.low^=o}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var d=0,p=0,v=0;v<5;v++)d^=(O=r[h+5*v]).high,p^=O.low;var g=f[h];g.high=d,g.low=p}for(h=0;h<5;h++){var y=f[(h+4)%5],m=f[(h+1)%5],b=m.high,_=m.low;for(d=y.high^(b<<1|_>>>31),p=y.low^(_<<1|b>>>31),v=0;v<5;v++)(O=r[h+5*v]).high^=d,O.low^=p}for(var w=1;w<25;w++){var E=(O=r[w]).high,S=O.low,x=u[w];x<32?(d=E<>>32-x,p=S<>>32-x):(d=S<>>64-x,p=E<>>64-x);var T=f[c[w]];T.high=d,T.low=p}var A=f[0],k=r[0];for(A.high=k.high,A.low=k.low,h=0;h<5;h++)for(v=0;v<5;v++){var O=r[w=h+5*v],C=f[w],I=f[(h+1)%5+5*v],N=f[(h+2)%5+5*v];O.high=C.high^~I.high&N.high,O.low=C.low^~I.low&N.low}O=r[0];var R=l[s];O.high^=R.high,O.low^=R.low}},_doFinalize:function(){var e=this._data,r=e.words,n=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,c=[],l=0;l>>24)|4278255360&(h<<24|h>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),c.push(d),c.push(h)}return new i.init(c,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=o._createHelper(h),r.HmacSHA3=o._createHmacHelper(h)}(Math),e.SHA3}(r(0),r(38))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.x64,n=r.Word,i=r.WordArray,o=t.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s)}(),e.SHA384}(r(0),r(38),r(82))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.WordArray,n=t.algo,i=n.SHA256,o=n.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=i._createHelper(o),t.HmacSHA224=i._createHmacHelper(o)}(),e.SHA224}(r(0),r(83))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.WordArray,n=t.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return r.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return r.create(n,2*t)}}}(),e.enc.Utf16}(r(0))},function(e,t,r){e.exports=function(e){return function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,r=t.init;(t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],i=0;i>>2]|=e[i]<<24-i%4*8;r.call(this,n,t)}else r.apply(this,arguments)}).prototype=t}}(),e.lib.WordArray}(r(0))},function(e,t){function r(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id=210},function(e,t){e.exports={invalidResponse:function(e){return new Error("Invalid Response: "+e)},noConnection:function(e){return new Error("No connection to host: "+e)},requestError:function(e){return new Error("Request Error: "+e)}}},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i=1,o={},a=!1,s=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){l(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?function(){var t="setImmediate$"+Math.random()+"$",r=function(r){r.source===e&&"string"==typeof r.data&&0===r.data.indexOf(t)&&l(+r.data.slice(t.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),n=function(r){e.postMessage(t+r,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){l(e.data)},n=function(t){e.port2.postMessage(t)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var e=s.documentElement;n=function(t){var r=s.createElement("script");r.onreadystatechange=function(){l(t),r.onreadystatechange=null,e.removeChild(r),r=null},e.appendChild(r)}}():n=function(e){setTimeout(l,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r>8-s%1*8)){if((r=o.charCodeAt(s+=.75))>255)throw new i;t=t<<8|r}return a}},function(e,t,r){"use strict";var n=r(8);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},function(e,t,r){"use strict";var n=r(8),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,a={};return e?(n.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}}),a):a}},function(e,t,r){"use strict";var n=r(8);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var a=[];n.forEach(t,function(e,t){null!==e&&void 0!==e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))}))}),o=a.join("&")}return o&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e}},function(e,t,r){"use strict";var n=r(90);e.exports=function(e,t,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},function(e,t,r){"use strict";var n=r(8);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},function(e,t,r){"use strict";var n=r(54),i=r(8),o=r(220),a=r(219);function s(e){this.defaults=e,this.interceptors={request:new o,response:new o}}s.prototype.request=function(e){"string"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),(e=i.merge(n,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var t=[a,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},i.forEach(["delete","get","head","options"],function(e){s.prototype[e]=function(t,r){return this.request(i.merge(r||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){s.prototype[e]=function(t,r,n){return this.request(i.merge(n||{},{method:e,url:t,data:r}))}}),e.exports=s},function(e,t){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)} +return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=i.create([0,1518500249,1859775393,2400959708,2840853838]),h=i.create([1352829926,1548603684,1836072691,2053994217,0]),p=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,p,_,w,E,S,x,T,A,k,O=this._hash.words,C=f.words,I=h.words,N=s.words,B=u.words,R=c.words,P=l.words;for(E=o=O[0],S=a=O[1],x=p=O[2],T=_=O[3],A=w=O[4],r=0;r<80;r+=1)k=o+e[t+N[r]]|0,k+=r<16?d(a,p,_)+C[0]:r<32?v(a,p,_)+C[1]:r<48?g(a,p,_)+C[2]:r<64?y(a,p,_)+C[3]:m(a,p,_)+C[4],k=(k=b(k|=0,R[r]))+w|0,o=w,w=_,_=b(p,10),p=a,a=k,k=E+e[t+B[r]]|0,k+=r<16?m(S,x,T)+I[0]:r<32?y(S,x,T)+I[1]:r<48?g(S,x,T)+I[2]:r<64?v(S,x,T)+I[3]:d(S,x,T)+I[4],k=(k=b(k|=0,P[r]))+A|0,E=A,A=T,T=b(x,10),x=S,S=k;k=O[1]+p+T|0,O[1]=O[2]+_+A|0,O[2]=O[3]+w+E|0,O[3]=O[4]+o+S|0,O[4]=O[0]+a+x|0,O[0]=k},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function d(e,t,r){return e^t^r}function v(e,t,r){return e&t|~e&r}function g(e,t,r){return(e|~t)^r}function y(e,t,r){return e&r|t&~r}function m(e,t,r){return e^(t|~r)}function b(e,t){return e<>>32-t}r.RIPEMD160=o._createHelper(p),r.HmacRIPEMD160=o._createHmacHelper(p)}(Math),e.RIPEMD160}(r(4))},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.x64.Word,s=r.algo,u=[],c=[],l=[];!function(){for(var e=1,t=0,r=0;r<24;r++){u[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,f=0,h=0;h<7;h++){if(1&i){var p=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(O=r[i]).high^=a,O.low^=o}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var p=0,d=0,v=0;v<5;v++)p^=(O=r[h+5*v]).high,d^=O.low;var g=f[h];g.high=p,g.low=d}for(h=0;h<5;h++){var y=f[(h+4)%5],m=f[(h+1)%5],b=m.high,_=m.low;for(p=y.high^(b<<1|_>>>31),d=y.low^(_<<1|b>>>31),v=0;v<5;v++)(O=r[h+5*v]).high^=p,O.low^=d}for(var w=1;w<25;w++){var E=(O=r[w]).high,S=O.low,x=u[w];x<32?(p=E<>>32-x,d=S<>>32-x):(p=S<>>64-x,d=E<>>64-x);var T=f[c[w]];T.high=p,T.low=d}var A=f[0],k=r[0];for(A.high=k.high,A.low=k.low,h=0;h<5;h++)for(v=0;v<5;v++){var O=r[w=h+5*v],C=f[w],I=f[(h+1)%5+5*v],N=f[(h+2)%5+5*v];O.high=C.high^~I.high&N.high,O.low=C.low^~I.low&N.low}O=r[0];var B=l[s];O.high^=B.high,O.low^=B.low}},_doFinalize:function(){var e=this._data,r=e.words,n=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,c=[],l=0;l>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new i.init(c,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=o._createHelper(h),r.HmacSHA3=o._createHmacHelper(h)}(Math),e.SHA3}(r(4),r(44))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.x64,n=r.Word,i=r.WordArray,o=t.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s)}(),e.SHA384}(r(4),r(44),r(89))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.WordArray,n=t.algo,i=n.SHA256,o=n.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=i._createHelper(o),t.HmacSHA224=i._createHmacHelper(o)}(),e.SHA224}(r(4),r(90))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.WordArray,n=t.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return r.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return r.create(n,2*t)}}}(),e.enc.Utf16}(r(4))},function(e,t,r){e.exports=function(e){return function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,r=t.init;(t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],i=0;i>>2]|=e[i]<<24-i%4*8;r.call(this,n,t)}else r.apply(this,arguments)}).prototype=t}}(),e.lib.WordArray}(r(4))},function(e,t){function r(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id=217},function(e,t){e.exports={invalidResponse:function(e){return new Error("Invalid Response: "+e)},noConnection:function(e){return new Error("No connection to host: "+e)},requestError:function(e){return new Error("Request Error: "+e)}}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i=1,o={},a=!1,s=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){l(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?function(){var t="setImmediate$"+Math.random()+"$",r=function(r){r.source===e&&"string"==typeof r.data&&0===r.data.indexOf(t)&&l(+r.data.slice(t.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),n=function(r){e.postMessage(t+r,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){l(e.data)},n=function(t){e.port2.postMessage(t)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var e=s.documentElement;n=function(t){var r=s.createElement("script");r.onreadystatechange=function(){l(t),r.onreadystatechange=null,e.removeChild(r),r=null},e.appendChild(r)}}():n=function(e){setTimeout(l,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r>8-s%1*8)){if((r=o.charCodeAt(s+=.75))>255)throw new i;t=t<<8|r}return a}},function(e,t,r){"use strict";var n=r(13);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},function(e,t,r){"use strict";var n=r(13),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,a={};return e?(n.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}}),a):a}},function(e,t,r){"use strict";var n=r(13);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var a=[];n.forEach(t,function(e,t){null!==e&&void 0!==e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))}))}),o=a.join("&")}return o&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e}},function(e,t,r){"use strict";var n=r(96);e.exports=function(e,t,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},function(e,t,r){"use strict";var n=r(13);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},function(e,t,r){"use strict";var n=r(59),i=r(13),o=r(227),a=r(226);function s(e){this.defaults=e,this.interceptors={request:new o,response:new o}}s.prototype.request=function(e){"string"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),(e=i.merge(n,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var t=[a,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},i.forEach(["delete","get","head","options"],function(e){s.prototype[e]=function(t,r){return this.request(i.merge(r||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){s.prototype[e]=function(t,r,n){return this.request(i.merge(n||{},{method:e,url:t,data:r}))}}),e.exports=s},function(e,t){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)} /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */ -e.exports=function(e){return null!=e&&(r(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,r){"use strict";var n=r(8),i=r(92),o=r(229),a=r(54);function s(e){var t=new o(e),r=i(o.prototype.request,t);return n.extend(r,o.prototype,t),n.extend(r,t),r}var u=s(a);u.Axios=o,u.create=function(e){return s(n.merge(a,e))},u.Cancel=r(88),u.CancelToken=r(215),u.isCancel=r(89),u.all=function(e){return Promise.all(e)},u.spread=r(214),e.exports=u,e.exports.default=u},function(e,t,r){e.exports=r(231)},function(e,t,r){"use strict";function n(e,t){return e===t}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,r=null,i=null;return function(){return function(e,t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var n=t.length,i=0;i1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:a;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var r=Object.keys(e);return t(r.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),n=0;na*v.CHUNKS_PER_SECTOR&&f===a&&n===h?(0,o.of)(c.default.performPow()):(0,o.of)(u.default.checkIfSectorClaimed({genesisHash:n,numberOfChunks:i,sectorIdx:a}))})},function(e,t){return e.ofType(u.default.NODE_CHECK_IF_SECTOR_CLAIMED).mergeMap(function(e){var t=e.payload,r=t.genesisHash,o=t.numberOfChunks,a=t.sectorIdx,s=a*v.CHUNKS_PER_SECTOR,l=p.default.rawGenerate(r,o)[s],f=d.default.hexToBytes(l),g=p.default.hashChain(f),y=n(g,2),m=y[0],b=(y[1],h.default.toAddress(h.default.utils.toTrytes(m)));return(0,i.fromPromise)(h.default.checkIfClaimed(b)).map(function(e){return e?u.default.updateSectorStatus({genesisHash:r,sectorIdx:a}):c.default.startSector({dataMapHash:l,genesisHash:r,numberOfChunks:o,sectorIdx:a})})})},function(e,t){return e.ofType(u.default.NODE_UPDATE_SECTOR_STATUS).map(u.default.determineGenesisHashOrTreasureHunt)})},function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,i=r;return i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]}},function(e,t){var r="undefined"!=typeof crypto&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);e.exports=function(){return r(n),n}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},function(e,t,r){var n,i,o=r(237),a=r(236),s=0,u=0;e.exports=function(e,t,r){var c=t&&r||0,l=t||[],f=(e=e||{}).node||n,h=void 0!==e.clockseq?e.clockseq:i;if(null==f||null==h){var d=o();null==f&&(f=n=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==h&&(h=i=16383&(d[6]<<8|d[7]))}var p=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,g=p-s+(v-u)/1e4;if(g<0&&void 0===e.clockseq&&(h=h+1&16383),(g<0||p>s)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=p,u=v,i=h;var y=(1e4*(268435455&(p+=122192928e5))+v)%4294967296;l[c++]=y>>>24&255,l[c++]=y>>>16&255,l[c++]=y>>>8&255,l[c++]=255&y;var m=p/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=h>>>8|128,l[c++]=255&h;for(var b=0;b<6;++b)l[c+b]=f[b];return t||a(l)}},function(e,t){e.exports=function(e){return e instanceof Date}},function(e,t,r){var n=r(96);e.exports=function(e,t){var r=n(e),i=Number(t);return r.setDate(r.getDate()+i),r}},function(e,t,r){var n=r(240);e.exports=function(e,t){var r=Number(t);return n(e,-r)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(26),i=c(r(241)),o=c(r(238)),a=c(r(19)),s=c(r(28)),u=r(7);function c(e){return e&&e.__esModule?e:{default:e}}t.default=(0,n.combineEpics)(function(e,t){return e.ofType(a.default.NODE_SET_OWNER_ETH_ADDRESS,s.default.GIVE_CONSENT).filter(function(){return t.getState().consent.status===u.CONSENT_STATUS.APPROVED&&!u.IS_DEV}).map(function(){var e=t.getState().node,r=!!e.lastResetAt&&e.lastResetAt>(0,i.default)(new Date,14).valueOf(),n=(0,o.default)(),s=(new Date).valueOf();return r?a.default.initialize():a.default.resetNode({id:n,lastResetAt:s})})})},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=r(60),o=r(59);t.catchError=function(e){return function(t){var r=new a(e),n=t.lift(r);return r.caught=n}};var a=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.selector,this.caught))},e}(),s=function(e){function t(t,r,n){e.call(this,t),this.selector=r,this.caught=n}return n(t,e),t.prototype.error=function(t){if(!this.isStopped){var r=void 0;try{r=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle(),this.add(o.subscribeToResult(this,r))}},t}(i.OuterSubscriber)},function(e,t,r){"use strict";var n=r(243);t._catch=function(e){return n.catchError(e)(this)}},function(e,t,r){"use strict";var n=r(5),i=r(244);n.Observable.prototype.catch=i._catch,n.Observable.prototype._catch=i._catch},function(e,t,r){"use strict";var n=r(99);t.mergeMap=function(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),n.mergeMap(e,t,r)(this)}},function(e,t,r){"use strict";var n=r(5),i=r(246);n.Observable.prototype.mergeMap=i.mergeMap,n.Observable.prototype.flatMap=i.mergeMap},function(e,t,r){"use strict";var n=r(5),i=r(66);n.Observable.prototype.map=i.map},function(e,t,r){"use strict";var n=r(5),i=r(65);n.Observable.prototype.filter=i.filter},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(249),r(248),r(247),r(245);var n=r(26),i=s(r(242)),o=s(r(235)),a=s(r(129));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,n.combineEpics)(i.default,o.default,a.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:o,t=arguments[1];switch(t.type){case i.TREASURE_HUNT_SAVE_TREASURE:var r=t.payload,a=r.treasure,s=r.nextChunkIdx;return n({},e,{treasures:[].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:a,t=arguments[1];switch(t.type){case i.default.TREASURE_HUNT_START_SECTOR:var r=t.payload,s=r.dataMapHash,u=r.genesisHash,c=r.sectorIdx,l=r.numberOfChunks;if(u===e.genesisHash&&c===e.sectorIdx)return e;var f=c*o.CHUNKS_PER_SECTOR;return n({},e,{dataMapHash:s,genesisHash:u,sectorIdx:c,numberOfChunks:l,treasure:null,chunkIdx:f});case i.default.TREASURE_HUNT_INCREMENT_CHUNK:var h=t.payload,d=h.nextChunkIdx,p=h.nextDataMapHash;return n({},e,{chunkIdx:d,dataMapHash:p});case i.default.TREASURE_HUNT_SAVE_TREASURE:var v=t.payload,g=v.treasure,y=v.nextChunkIdx,m=v.nextDataMapHash;return n({},e,{treasure:g,chunkIdx:y,dataMapHash:m});default:return e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:s,t=arguments[1];switch(t.type){case i.default.NODE_SET_OWNER_ETH_ADDRESS:return n({},e,{ethAddress:t.payload});case i.default.NODE_ADD_BROKER_NODE:var r=t.payload.address;return n({},e,{brokerNodes:[].concat(a(e.brokerNodes),[function(e){return{address:e}}(r)])});case i.default.NODE_ADD_NEW_GENESIS_HASH:var u=t.payload,c=u.genesisHash,l=u.numberOfChunks;return n({},e,{newGenesisHashes:[].concat(a(e.newGenesisHashes),[function(e,t){var r=Math.ceil(t/o.CHUNKS_PER_SECTOR);return{genesisHash:e,numberOfChunks:t,sectors:Array(r).fill(o.SECTOR_STATUS.UNCLAIMED)}}(c,l)])});case i.default.NODE_RESET:var f=t.payload,h=f.id,d=f.lastResetAt;return n({},e,{id:h,lastResetAt:d,brokerNodes:[],newGenesisHashes:[],oldGenesisHashes:[]});case i.default.NODE_UPDATE_SECTOR_STATUS:var p=t.payload,v=p.genesisHash,g=p.sectorIdx,y=e.newGenesisHashes.map(function(e){if(e.genesisHash===v){var t=e.sectors.map(function(e,t){return t===g?o.SECTOR_STATUS.CLAIMED:e});return n({},e,{sectors:t})}return e});return n({},e,{newGenesisHashes:y});default:return e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:a;switch(arguments[1].type){case i.default.GIVE_CONSENT:return n({},e,{status:o.CONSENT_STATUS.APPROVED});case i.default.DENY_CONSENT:return n({},e,{status:o.CONSENT_STATUS.DENIED});default:return e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:a;switch(arguments[1].type){case i.default.NODE_REQUEST_BROKER_NODES:return n({},e,{statuses:[].concat(o(e.statuses),["Doing proof of work"])});case i.default.NODE_ADD_BROKER_NODE:return n({},e,{statuses:[].concat(o(e.statuses),["Complete"])});default:return e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(11),i=c(r(255)),o=c(r(254)),a=c(r(253)),s=c(r(252)),u=c(r(251));function c(e){return e&&e.__esModule?e:{default:e}}t.default=(0,n.combineReducers)({consent:o.default,pow:i.default,node:a.default,treasureHunt:s.default,test:u.default})},function(e,t,r){"use strict";var n=function(e){return e},i=function(){},o=function(){return!0};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.breadcrumbDataFromAction,a=void 0===r?i:r,s=t.actionTransformer,u=void 0===s?n:s,c=t.stateTransformer,l=void 0===c?n:c,f=t.breadcrumbCategory,h=void 0===f?"redux-action":f,d=t.filterBreadcrumbActions,p=void 0===d?o:d,v=t.getUserContext,g=t.getTags;return function(t){var r=void 0;return e.setDataCallback(function(e,n){var i=t.getState(),o={lastAction:u(r),state:l(i)};return e.extra=Object.assign(o,e.extra),v&&(e.user=v(i)),g&&(e.tags=g(i)),n?n(e):e}),function(t){return function(n){return p(n)&&e.captureBreadcrumb({category:h,message:n.type,data:a(n)}),r=n,t(n)}}}}},function(e,t,r){var n=r(55);e.exports={wrapMethod:function(e,t,r){var i=e[t],o=e;if(t in e){var a="warn"===t?"warning":t;e[t]=function(){var e=[].slice.call(arguments),s=n.safeJoin(e," "),u={level:a,logger:"console",extra:{arguments:e}};"assert"===t?!1===e[0]&&(s="Assertion failed: "+(n.safeJoin(e.slice(1)," ")||"console.assert"),u.extra.arguments=e.slice(1),r&&r(s,u)):r&&r(s,u),i&&Function.prototype.apply.call(i,o,e)}}}}},function(e,t){function r(e){this.name="RavenConfigError",this.message=e}r.prototype=new Error,r.prototype.constructor=r,e.exports=r},function(e,t){function r(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function n(e,t,n,i,o,a){return r(function(e,t){return e<>>32-t}(r(r(t,e),r(i,a)),o),n)}function i(e,t,r,i,o,a,s){return n(t&r|~t&i,e,t,o,a,s)}function o(e,t,r,i,o,a,s){return n(t&i|r&~i,e,t,o,a,s)}function a(e,t,r,i,o,a,s){return n(t^r^i,e,t,o,a,s)}function s(e,t,r,i,o,a,s){return n(r^(t|~i),e,t,o,a,s)}function u(e,t){var n,u,c,l,f;e[t>>5]|=128<>>9<<4)]=t;var h=1732584193,d=-271733879,p=-1732584194,v=271733878;for(n=0;n>5]>>>t%32&255);return r}function l(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+"0123456789abcdef".charAt(15&t);return n}function h(e){return unescape(encodeURIComponent(e))}function d(e){return function(e){return c(u(l(e),8*e.length))}(h(e))}function p(e,t){return function(e,t){var r,n,i=l(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=u(i,8*e.length)),r=0;r<16;r+=1)o[r]=909522486^i[r],a[r]=1549556828^i[r];return n=u(o.concat(l(t)),512+8*t.length),c(u(a.concat(n),640))}(h(e),h(t))}e.exports=function(e,t,r){return t?r?p(t,e):function(e,t){return f(p(e,t))}(t,e):r?d(e):function(e){return f(d(e))}(e)}},function(e,t,r){(function(t){var n=r(55),i={collectWindowErrors:!0,debug:!1},o="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},a=[].slice,s="?",u=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function c(){return"undefined"==typeof document||null==document.location?"":document.location.href}i.report=function(){var e,t,r=[],l=null,f=null,h=null;function d(e,t){var n=null;if(!t||i.collectWindowErrors){for(var o in r)if(r.hasOwnProperty(o))try{r[o].apply(null,[e].concat(a.call(arguments,2)))}catch(e){n=e}if(n)throw n}}function p(t,r,o,a,l){var f=n.isErrorEvent(l)?l.error:l,p=n.isErrorEvent(t)?t.message:t;if(h)i.computeStackTrace.augmentStackTraceWithInitialElement(h,r,o,p),v();else if(f&&n.isError(f))d(i.computeStackTrace(f),!0);else{var g,y={url:r,line:o,column:a},m=void 0;if("[object String]"==={}.toString.call(p))(g=p.match(u))&&(m=g[1],p=g[2]);y.func=s,d({name:m,message:p,url:c(),stack:[y]},!0)}return!!e&&e.apply(this,arguments)}function v(){var e=h,t=l;l=null,h=null,f=null,d.apply(null,[e,!1].concat(t))}function g(e,t){var r=a.call(arguments,1);if(h){if(f===e)return;v()}var n=i.computeStackTrace(e);if(h=n,f=e,l=r,setTimeout(function(){f===e&&v()},n.incomplete?2e3:0),!1!==t)throw e}return g.subscribe=function(n){t||(e=o.onerror,o.onerror=p,t=!0),r.push(n)},g.unsubscribe=function(e){for(var t=r.length-1;t>=0;--t)r[t]===e&&r.splice(t,1)},g.uninstall=function(){t&&(o.onerror=e,t=!1,e=void 0),r=[]},g}(),i.computeStackTrace=function(){function e(e){if(void 0!==e.stack&&e.stack){for(var t,r,n,i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack||[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,l=/\((\S*)(?::(\d+))(?::(\d+))\)/,f=e.stack.split("\n"),h=[],d=(/^(.*) is undefined$/.exec(e.message),0),p=f.length;d eval")>-1&&(t=u.exec(r[3]))?(r[3]=t[1],r[4]=t[2],r[5]=null):0!==d||r[5]||void 0===e.columnNumber||(h[0].column=e.columnNumber+1),n={url:r[3],func:r[1]||s,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}if(!n.func&&n.line&&(n.func=s),n.url&&"blob:"===n.url.substr(0,5)){var g=new XMLHttpRequest;if(g.open("GET",n.url,!1),g.send(null),200===g.status){var y=g.responseText||"",m=(y=y.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(m){var b=m[1];"~"===b.charAt(0)&&(b=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+b.slice(1)),n.url=b.slice(0,-4)}}}h.push(n)}return h.length?{name:e.name,message:e.message,url:c(),stack:h}:null}}function t(e,t,r,n){var i={url:t,line:r};if(i.url&&i.line){if(e.incomplete=!1,i.func||(i.func=s),e.stack.length>0&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;if(!e.stack[0].line&&e.stack[0].func===i.func)return e.stack[0].line=i.line,!1}return e.stack.unshift(i),e.partial=!0,!0}return e.incomplete=!0,!1}function r(e,o){for(var a,u,l=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,f=[],h={},d=!1,p=r.caller;p&&!d;p=p.caller)if(p!==n&&p!==i.report){if(u={url:null,func:s,line:null,column:null},p.name?u.func=p.name:(a=l.exec(p.toString()))&&(u.func=a[1]),void 0===u.func)try{u.func=a.input.substring(0,a.input.indexOf("{"))}catch(e){}h[""+p]?d=!0:h[""+p]=!0,f.push(u)}o&&f.splice(0,o);var v={name:e.name,message:e.message,url:c(),stack:f};return t(v,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),v}function n(t,n){var o=null;n=null==n?0:+n;try{if(o=e(t))return o}catch(e){if(i.debug)throw e}try{if(o=r(t,n+1))return o}catch(e){if(i.debug)throw e}return{name:t.name,message:t.message,url:c()}}return n.augmentStackTraceWithInitialElement=t,n.computeStackTraceFromStackProp=e,n}(),e.exports=i}).call(this,r(6))},function(e,t,r){(function(t){var n=r(261),i=r(97),o=r(260),a=r(259),s=r(55),u=s.isErrorEvent,c=s.isDOMError,l=s.isDOMException,f=s.isError,h=s.isObject,d=s.isPlainObject,p=s.isUndefined,v=s.isFunction,g=s.isString,y=s.isArray,m=s.isEmptyObject,b=s.each,_=s.objectMerge,w=s.truncate,E=s.objectFrozen,S=s.hasKey,x=s.joinRegExp,T=s.urlencode,A=s.uuid4,k=s.htmlTreeAsString,O=s.isSameException,C=s.isSameStacktrace,I=s.parseUrl,N=s.fill,R=s.supportsFetch,B=s.supportsReferrerPolicy,P=s.serializeKeysForMessage,j=s.serializeException,H=s.sanitize,M=r(258).wrapMethod,D="source protocol user pass host port path".split(" "),U=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function L(){return+new Date}var F="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},z=F.document,G=F.navigator;function W(e,t){return v(t)?function(r){return t(r,e)}:t}function V(){for(var e in this._hasJSON=!("object"!=typeof JSON||!JSON.stringify),this._hasDocument=!p(z),this._hasNavigator=!p(G),this._lastCapturedException=null,this._lastData=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={release:F.SENTRY_RELEASE&&F.SENTRY_RELEASE.id,logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],headers:null,collectWindowErrors:!0,captureUnhandledRejections:!0,maxMessageLength:0,maxUrlLength:250,stackTraceLimit:50,autoBreadcrumbs:!0,instrument:!0,sampleRate:1,sanitizeKeys:[]},this._fetchDefaults={method:"POST",keepalive:!0,referrerPolicy:B()?"origin":""},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=F.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=L(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._keypressTimeout,this._location=F.location,this._lastHref=this._location&&this._location.href,this._resetBackoff(),this._originalConsole)this._originalConsoleMethods[e]=this._originalConsole[e]}V.prototype={VERSION:"3.26.3",debug:!1,TraceKit:n,config:function(e,t){var r=this;if(r._globalServer)return this._logDebug("error","Error: Raven has already been configured"),r;if(!e)return r;var i=r._globalOptions;t&&b(t,function(e,t){"tags"===e||"extra"===e||"user"===e?r._globalContext[e]=t:i[e]=t}),r.setDSN(e),i.ignoreErrors.push(/^Script error\.?$/),i.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),i.ignoreErrors=x(i.ignoreErrors),i.ignoreUrls=!!i.ignoreUrls.length&&x(i.ignoreUrls),i.whitelistUrls=!!i.whitelistUrls.length&&x(i.whitelistUrls),i.includePaths=x(i.includePaths),i.maxBreadcrumbs=Math.max(0,Math.min(i.maxBreadcrumbs||100,100));var o={xhr:!0,console:!0,dom:!0,location:!0,sentry:!0},a=i.autoBreadcrumbs;"[object Object]"==={}.toString.call(a)?a=_(o,a):!1!==a&&(a=o),i.autoBreadcrumbs=a;var s={tryCatch:!0},u=i.instrument;return"[object Object]"==={}.toString.call(u)?u=_(s,u):!1!==u&&(u=s),i.instrument=u,n.collectWindowErrors=!!i.collectWindowErrors,r},install:function(){var e=this;return e.isSetup()&&!e._isRavenInstalled&&(n.report.subscribe(function(){e._handleOnErrorStackInfo.apply(e,arguments)}),e._globalOptions.captureUnhandledRejections&&e._attachPromiseRejectionHandler(),e._patchFunctionToString(),e._globalOptions.instrument&&e._globalOptions.instrument.tryCatch&&e._instrumentTryCatch(),e._globalOptions.autoBreadcrumbs&&e._instrumentBreadcrumbs(),e._drainPlugins(),e._isRavenInstalled=!0),Error.stackTraceLimit=e._globalOptions.stackTraceLimit,this},setDSN:function(e){var t=this._parseDSN(e),r=t.path.lastIndexOf("/"),n=t.path.substr(1,r);this._dsn=e,this._globalKey=t.user,this._globalSecret=t.pass&&t.pass.substr(1),this._globalProject=t.path.substr(r+1),this._globalServer=this._getGlobalServer(t),this._globalEndpoint=this._globalServer+"/"+n+"api/"+this._globalProject+"/store/",this._resetBackoff()},context:function(e,t,r){return v(e)&&(r=t||[],t=e,e={}),this.wrap(e,t).apply(this,r)},wrap:function(e,t,r){var n=this;if(p(t)&&!v(e))return e;if(v(e)&&(t=e,e=void 0),!v(t))return t;try{if(t.__raven__)return t;if(t.__raven_wrapper__)return t.__raven_wrapper__}catch(e){return t}function i(){var i=[],o=arguments.length,a=!e||e&&!1!==e.deep;for(r&&v(r)&&r.apply(this,arguments);o--;)i[o]=a?n.wrap(e,arguments[o]):arguments[o];try{return t.apply(this,i)}catch(t){throw n._ignoreNextOnError(),n.captureException(t,e),t}}for(var o in t)S(t,o)&&(i[o]=t[o]);return i.prototype=t.prototype,t.__raven_wrapper__=i,i.__raven__=!0,i.__orig__=t,i},uninstall:function(){return n.report.uninstall(),this._detachPromiseRejectionHandler(),this._unpatchFunctionToString(),this._restoreBuiltIns(),this._restoreConsole(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},_promiseRejectionHandler:function(e){this._logDebug("debug","Raven caught unhandled promise rejection:",e),this.captureException(e.reason,{mechanism:{type:"onunhandledrejection",handled:!1}})},_attachPromiseRejectionHandler:function(){return this._promiseRejectionHandler=this._promiseRejectionHandler.bind(this),F.addEventListener&&F.addEventListener("unhandledrejection",this._promiseRejectionHandler),this},_detachPromiseRejectionHandler:function(){return F.removeEventListener&&F.removeEventListener("unhandledrejection",this._promiseRejectionHandler),this},captureException:function(e,t){if(t=_({trimHeadFrames:0},t||{}),u(e)&&e.error)e=e.error;else{if(c(e)||l(e)){var r=e.name||(c(e)?"DOMError":"DOMException"),i=e.message?r+": "+e.message:r;return this.captureMessage(i,_(t,{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}))}if(f(e))e=e;else{if(!d(e))return this.captureMessage(e,_(t,{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}));t=this._getCaptureExceptionOptionsFromPlainObject(t,e),e=new Error(t.message)}}this._lastCapturedException=e;try{var o=n.computeStackTrace(e);this._handleStackInfo(o,t)}catch(t){if(e!==t)throw t}return this},_getCaptureExceptionOptionsFromPlainObject:function(e,t){var r=Object.keys(t).sort(),n=_(e,{message:"Non-Error exception captured with keys: "+P(r),fingerprint:[o(r)],extra:e.extra||{}});return n.extra.__serialized__=j(t),n},captureMessage:function(e,t){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)){var r,i=_({message:e+=""},t=t||{});try{throw new Error(e)}catch(e){r=e}r.name=null;var o=n.computeStackTrace(r),a=y(o.stack)&&o.stack[1];a&&"Raven.captureException"===a.func&&(a=o.stack[2]);var s=a&&a.url||"";if((!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(s))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(s))){if(this._globalOptions.stacktrace||t.stacktrace||""===i.message){i.fingerprint=null==i.fingerprint?e:i.fingerprint,(t=_({trimHeadFrames:0},t)).trimHeadFrames+=1;var u=this._prepareFrames(o,t);i.stacktrace={frames:u.reverse()}}return i.fingerprint&&(i.fingerprint=y(i.fingerprint)?i.fingerprint:[i.fingerprint]),this._send(i),this}}},captureBreadcrumb:function(e){var t=_({timestamp:L()/1e3},e);if(v(this._globalOptions.breadcrumbCallback)){var r=this._globalOptions.breadcrumbCallback(t);if(h(r)&&!m(r))t=r;else if(!1===r)return this}return this._breadcrumbs.push(t),this._breadcrumbs.length>this._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift(),this},addPlugin:function(e){var t=[].slice.call(arguments,1);return this._plugins.push([e,t]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(e){return this._globalContext.user=e,this},setExtraContext:function(e){return this._mergeContext("extra",e),this},setTagsContext:function(e){return this._mergeContext("tags",e),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(i(this._globalContext))},setEnvironment:function(e){return this._globalOptions.environment=e,this},setRelease:function(e){return this._globalOptions.release=e,this},setDataCallback:function(e){var t=this._globalOptions.dataCallback;return this._globalOptions.dataCallback=W(t,e),this},setBreadcrumbCallback:function(e){var t=this._globalOptions.breadcrumbCallback;return this._globalOptions.breadcrumbCallback=W(t,e),this},setShouldSendCallback:function(e){var t=this._globalOptions.shouldSendCallback;return this._globalOptions.shouldSendCallback=W(t,e),this},setTransport:function(e){return this._globalOptions.transport=e,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var e=F.RavenConfig;e&&this.config(e.dsn,e.config).install()},showReportDialog:function(e){if(z){var t=(e=e||{}).eventId||this.lastEventId();if(!t)throw new a("Missing eventId");var r=e.dsn||this._dsn;if(!r)throw new a("Missing DSN");var n=encodeURIComponent,i="";i+="?eventId="+n(t),i+="&dsn="+n(r);var o=e.user||this._globalContext.user;o&&(o.name&&(i+="&name="+n(o.name)),o.email&&(i+="&email="+n(o.email)));var s=this._getGlobalServer(this._parseDSN(r)),u=z.createElement("script");u.async=!0,u.src=s+"/api/embed/error-page/"+i,(z.head||z.body).appendChild(u)}},_ignoreNextOnError:function(){var e=this;this._ignoreOnError+=1,setTimeout(function(){e._ignoreOnError-=1})},_triggerEvent:function(e,t){var r,n;if(this._hasDocument){for(n in t=t||{},e="raven"+e.substr(0,1).toUpperCase()+e.substr(1),z.createEvent?(r=z.createEvent("HTMLEvents")).initEvent(e,!0,!0):(r=z.createEventObject()).eventType=e,t)S(t,n)&&(r[n]=t[n]);if(z.createEvent)z.dispatchEvent(r);else try{z.fireEvent("on"+r.eventType.toLowerCase(),r)}catch(e){}}},_breadcrumbEventHandler:function(e){var t=this;return function(r){if(t._keypressTimeout=null,t._lastCapturedEvent!==r){var n;t._lastCapturedEvent=r;try{n=k(r.target)}catch(e){n=""}t.captureBreadcrumb({category:"ui."+e,message:n})}}},_keypressEventHandler:function(){var e=this;return function(t){var r;try{r=t.target}catch(e){return}var n=r&&r.tagName;if(n&&("INPUT"===n||"TEXTAREA"===n||r.isContentEditable)){var i=e._keypressTimeout;i||e._breadcrumbEventHandler("input")(t),clearTimeout(i),e._keypressTimeout=setTimeout(function(){e._keypressTimeout=null},1e3)}}},_captureUrlChange:function(e,t){var r=I(this._location.href),n=I(t),i=I(e);this._lastHref=t,r.protocol===n.protocol&&r.host===n.host&&(t=n.relative),r.protocol===i.protocol&&r.host===i.host&&(e=i.relative),this.captureBreadcrumb({category:"navigation",data:{to:t,from:e}})},_patchFunctionToString:function(){var e=this;e._originalFunctionToString=Function.prototype.toString,Function.prototype.toString=function(){return"function"==typeof this&&this.__raven__?e._originalFunctionToString.apply(this.__orig__,arguments):e._originalFunctionToString.apply(this,arguments)}},_unpatchFunctionToString:function(){this._originalFunctionToString&&(Function.prototype.toString=this._originalFunctionToString)},_instrumentTryCatch:function(){var e=this,t=e._wrappedBuiltIns;function r(t){return function(r,n){for(var i=new Array(arguments.length),o=0;o"}}},a)),t.apply?t.apply(this,i):t(i[0],i[1])}}var n=this._globalOptions.autoBreadcrumbs;function i(r){var i=F[r]&&F[r].prototype;i&&i.hasOwnProperty&&i.hasOwnProperty("addEventListener")&&(N(i,"addEventListener",function(t){return function(i,o,a,s){try{o&&o.handleEvent&&(o.handleEvent=e.wrap({mechanism:{type:"instrument",data:{target:r,function:"handleEvent",handler:o&&o.name||""}}},o.handleEvent))}catch(e){}var u,c,l;return n&&n.dom&&("EventTarget"===r||"Node"===r)&&(c=e._breadcrumbEventHandler("click"),l=e._keypressEventHandler(),u=function(e){if(e){var t;try{t=e.type}catch(e){return}return"click"===t?c(e):"keypress"===t?l(e):void 0}}),t.call(this,i,e.wrap({mechanism:{type:"instrument",data:{target:r,function:"addEventListener",handler:o&&o.name||""}}},o,u),a,s)}},t),N(i,"removeEventListener",function(e){return function(t,r,n,i){try{r=r&&(r.__raven_wrapper__?r.__raven_wrapper__:r)}catch(e){}return e.call(this,t,r,n,i)}},t))}N(F,"setTimeout",r,t),N(F,"setInterval",r,t),F.requestAnimationFrame&&N(F,"requestAnimationFrame",function(t){return function(r){return t(e.wrap({mechanism:{type:"instrument",data:{function:"requestAnimationFrame",handler:t&&t.name||""}}},r))}},t);for(var o=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],a=0;a"}}},r)})}if(t.xhr&&"XMLHttpRequest"in F){var i=F.XMLHttpRequest&&F.XMLHttpRequest.prototype;N(i,"open",function(t){return function(r,n){return g(n)&&-1===n.indexOf(e._globalKey)&&(this.__raven_xhr={method:r,url:n,status_code:null}),t.apply(this,arguments)}},r),N(i,"send",function(t){return function(){var r=this;function i(){if(r.__raven_xhr&&4===r.readyState){try{r.__raven_xhr.status_code=r.status}catch(e){}e.captureBreadcrumb({type:"http",category:"xhr",data:r.__raven_xhr})}}for(var o=["onload","onerror","onprogress"],a=0;a"}}},t,i)}):r.onreadystatechange=i,t.apply(this,arguments)}},r)}t.xhr&&R()&&N(F,"fetch",function(t){return function(){for(var r=new Array(arguments.length),n=0;n2?arguments[2]:void 0;return r&&e._captureUrlChange(e._lastHref,r+""),t.apply(this,arguments)}};N(F.history,"pushState",u,r),N(F.history,"replaceState",u,r)}if(t.console&&"console"in F&&console.log){var c=function(t,r){e.captureBreadcrumb({message:t,level:r.level,category:"console"})};b(["debug","info","warn","error","log"],function(e,t){M(console,t,c)})}},_restoreBuiltIns:function(){for(var e;this._wrappedBuiltIns.length;){var t=(e=this._wrappedBuiltIns.shift())[0],r=e[1],n=e[2];t[r]=n}},_restoreConsole:function(){for(var e in this._originalConsoleMethods)this._originalConsole[e]=this._originalConsoleMethods[e]},_drainPlugins:function(){var e=this;b(this._plugins,function(t,r){var n=r[0],i=r[1];n.apply(e,[e].concat(i))})},_parseDSN:function(e){var t=U.exec(e),r={},n=7;try{for(;n--;)r[D[n]]=t[n]||""}catch(t){throw new a("Invalid DSN: "+e)}if(r.pass&&!this._globalOptions.allowSecretKey)throw new a("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return r},_getGlobalServer:function(e){var t="//"+e.host+(e.port?":"+e.port:"");return e.protocol&&(t=e.protocol+":"+t),t},_handleOnErrorStackInfo:function(e,t){(t=t||{}).mechanism=t.mechanism||{type:"onerror",handled:!1},this._ignoreOnError||this._handleStackInfo(e,t)},_handleStackInfo:function(e,t){var r=this._prepareFrames(e,t);this._triggerEvent("handle",{stackInfo:e,options:t}),this._processException(e.name,e.message,e.url,e.lineno,r,t)},_prepareFrames:function(e,t){var r=this,n=[];if(e.stack&&e.stack.length&&(b(e.stack,function(t,i){var o=r._normalizeFrame(i,e.url);o&&n.push(o)}),t&&t.trimHeadFrames))for(var i=0;i0&&(e.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),this._globalContext.user&&(e.user=this._globalContext.user),t.environment&&(e.environment=t.environment),t.release&&(e.release=t.release),t.serverName&&(e.server_name=t.serverName),e=this._sanitizeData(e),Object.keys(e).forEach(function(t){(null==e[t]||""===e[t]||m(e[t]))&&delete e[t]}),v(t.dataCallback)&&(e=t.dataCallback(e)||e),e&&!m(e)&&(v(t.shouldSendCallback)&&!t.shouldSendCallback(e)||(this._shouldBackoff()?this._logDebug("warn","Raven dropped error due to backoff: ",e):"number"==typeof t.sampleRate?Math.random()-1&&e%1==0&&e<=l}(e.length)&&"[object Array]"==u.call(e)};e.exports=f},function(e,t,r){var n=r(98),i=r(267),o=/^\d+$/,a=Object.prototype.hasOwnProperty,s=9007199254740991;function u(e,t){return e="number"==typeof e||o.test(e)?+e:-1,t=null==t?s:t,e>-1&&e%1==0&&e-1&&e%1==0&&e<=s}(t)&&(i(e)||n(e))&&t||0;for(var r=e.constructor,o=-1,c="function"==typeof r&&r.prototype===e,l=Array(t),f=t>0;++o-1}},function(e,t,r){"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t=n?i.complete():(i.next(t[r]),e.index=r+1,this.schedule(e)))},t.prototype._subscribe=function(e){var r=this.arrayLike,n=this.scheduler,i=r.length;if(n)return n.schedule(t.dispatch,0,{arrayLike:r,index:0,length:i,subscriber:e});for(var o=0;ol)return l;return t}(e)),this.arr=e,this.idx=t,this.len=r}return e.prototype[a.iterator]=function(){return this},e.prototype.next=function(){return this.idx=t.length?r(new s(p,_,new a(void 0,e[_]))):l(e[_],t[_],r,n,p,_,d);for(;_=0?(l(e[i],t[i],r,n,p,i,d),S=u(S,a)):l(e[i],void 0,r,n,p,i,d)}),S.forEach(function(e){l(void 0,t[e],r,n,p,e,d)})}d.length=d.length-1}else e!==t&&("number"===g&&isNaN(e)&&isNaN(t)||r(new i(p,e,t)))}function f(e,t,r,n){return n=n||[],l(e,t,function(e){e&&n.push(e)},r),n.length?n:void 0}function h(e,t,r){if(e&&t&&r&&r.kind){for(var n=e,i=-1,o=r.path?r.path.length-1:0;++i0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},A,e),r=t.logger,n=t.stateTransformer,i=t.errorTransformer,o=t.predicate,a=t.logErrors,s=t.diffPredicate;if(void 0===r)return function(){return function(e){return function(t){return e(t)}}};if(e.getState&&e.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n // ...options\n});\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n"),function(){return function(e){return function(t){return e(t)}}};var u=[];return function(e){var r=e.getState;return function(e){return function(c){if("function"==typeof o&&!o(r,c))return e(c);var l={};u.push(l),l.started=w.now(),l.startedTime=new Date,l.prevState=n(r()),l.action=c;var f=void 0;if(a)try{f=e(c)}catch(e){l.error=i(e)}else f=e(c);l.took=w.now()-l.started,l.nextState=n(r());var h=t.diff&&"function"==typeof s?s(r,c):t.diff;if(v(u,Object.assign({},t,{diff:h})),u.length=0,l.error)throw l.error;return f}}}}var y,m,b=function(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e},_=function(e){return b(e.getHours(),2)+":"+b(e.getMinutes(),2)+":"+b(e.getSeconds(),2)+"."+b(e.getMilliseconds(),3)},w="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:{},t=e.dispatch,r=e.getState;return"function"==typeof t||"function"==typeof r?g()({dispatch:t,getState:r}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};t.defaults=A,t.createLogger=g,t.logger=k,t.default=k,Object.defineProperty(t,"__esModule",{value:!0})}(t)}).call(this,r(6))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.persistor=t.store=void 0;var n=r(11),i=r(291),o=r(26),a=p(r(272)),s=r(128),u=p(r(266)),c=p(r(263)),l=p(r(257)),f=r(7),h=p(r(256)),d=p(r(250));function p(e){return e&&e.__esModule?e:{default:e}}c.default.config(f.SENTRY_DSN).install();var v=[f.IS_DEV&&(0,i.createLogger)(),(0,o.createEpicMiddleware)(d.default),a.default,(0,l.default)(c.default,{})].filter(function(e){return!!e}),g=[n.applyMiddleware.apply(void 0,function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t=t.f?i():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+E(e.c)}(t.a),t.h).then(function(e){1<=e.length?n():setTimeout(o,25)},function(){i()})}()}),i=null,o=new Promise(function(e,r){i=setTimeout(r,t.f)});Promise.race([o,n]).then(function(){i&&(clearTimeout(i),i=null),t.g(t.a)},function(){t.j(t.a)})};var B={D:"serif",C:"sans-serif"},P=null;function j(){if(null===P){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);P=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return P}function H(e,t,r){for(var n in B)if(B.hasOwnProperty(n)&&t===e.f[B[n]]&&r===e.f[B[n]])return!0;return!1}function M(e){var t,r=e.g.a.offsetWidth,n=e.h.a.offsetWidth;(t=r===e.f.serif&&n===e.f["sans-serif"])||(t=j()&&H(e,r,n)),t?s()-e.A>=e.w?j()&&H(e,r,n)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?D(e,e.v):D(e,e.B):function(e){setTimeout(a(function(){M(this)},e),50)}(e):D(e,e.v)}function D(e,t){setTimeout(a(function(){f(this.g.a),f(this.h.a),f(this.j.a),f(this.m.a),t(this.a)},e),0)}function U(e,t,r){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=r}R.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),M(this)};var L=null;function F(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&h(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),k(e,"active")):A(e.a))}function z(e){this.j=e,this.a=new function(){this.c={}},this.h=0,this.f=this.g=!0}function G(e,t,r,n,i){var o=0==--e.h;(e.f||e.g)&&setTimeout(function(){var e=i||null,s=n||{};if(0===r.length&&o)A(t.a);else{t.f+=r.length,o&&(t.j=o);var u,c=[];for(u=0;u>>((3&t)<<3)&255;return i}}},function(e,t){e.exports=function(e){return e instanceof Date}},function(e,t,r){var n=r(99);e.exports=function(e,t){var r=n(e),i=Number(t);return r.setDate(r.getDate()+i),r}},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=r(65),o=r(64);t.catchError=function(e){return function(t){var r=new a(e),n=t.lift(r);return r.caught=n}};var a=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.selector,this.caught))},e}(),s=function(e){function t(t,r,n){e.call(this,t),this.selector=r,this.caught=n}return n(t,e),t.prototype.error=function(t){if(!this.isStopped){var r=void 0;try{r=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle(),this.add(o.subscribeToResult(this,r))}},t}(i.OuterSubscriber)},function(e,t,r){"use strict";var n=r(243);t._catch=function(e){return n.catchError(e)(this)}},function(e,t,r){"use strict";var n=r(10),i=r(244);n.Observable.prototype.catch=i._catch,n.Observable.prototype._catch=i._catch},function(e,t,r){"use strict";var n=r(102);t.mergeMap=function(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),n.mergeMap(e,t,r)(this)}},function(e,t,r){"use strict";var n=r(10),i=r(246);n.Observable.prototype.mergeMap=i.mergeMap,n.Observable.prototype.flatMap=i.mergeMap},function(e,t,r){"use strict";var n=r(10),i=r(71);n.Observable.prototype.map=i.map},function(e,t,r){"use strict";var n=r(10),i=r(70);n.Observable.prototype.filter=i.filter},function(e,t,r){"use strict";var n=function(e){return e},i=function(){},o=function(){return!0};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.breadcrumbDataFromAction,a=void 0===r?i:r,s=t.actionTransformer,u=void 0===s?n:s,c=t.stateTransformer,l=void 0===c?n:c,f=t.breadcrumbCategory,h=void 0===f?"redux-action":f,p=t.filterBreadcrumbActions,d=void 0===p?o:p,v=t.getUserContext,g=t.getTags;return function(t){var r=void 0;return e.setDataCallback(function(e,n){var i=t.getState(),o={lastAction:u(r),state:l(i)};return e.extra=Object.assign(o,e.extra),v&&(e.user=v(i)),g&&(e.tags=g(i)),n?n(e):e}),function(t){return function(n){return d(n)&&e.captureBreadcrumb({category:h,message:n.type,data:a(n)}),r=n,t(n)}}}}},function(e,t,r){var n=r(60);e.exports={wrapMethod:function(e,t,r){var i=e[t],o=e;if(t in e){var a="warn"===t?"warning":t;e[t]=function(){var e=[].slice.call(arguments),s=n.safeJoin(e," "),u={level:a,logger:"console",extra:{arguments:e}};"assert"===t?!1===e[0]&&(s="Assertion failed: "+(n.safeJoin(e.slice(1)," ")||"console.assert"),u.extra.arguments=e.slice(1),r&&r(s,u)):r&&r(s,u),i&&Function.prototype.apply.call(i,o,e)}}}}},function(e,t){function r(e){this.name="RavenConfigError",this.message=e}r.prototype=new Error,r.prototype.constructor=r,e.exports=r},function(e,t){function r(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function n(e,t,n,i,o,a){return r(function(e,t){return e<>>32-t}(r(r(t,e),r(i,a)),o),n)}function i(e,t,r,i,o,a,s){return n(t&r|~t&i,e,t,o,a,s)}function o(e,t,r,i,o,a,s){return n(t&i|r&~i,e,t,o,a,s)}function a(e,t,r,i,o,a,s){return n(t^r^i,e,t,o,a,s)}function s(e,t,r,i,o,a,s){return n(r^(t|~i),e,t,o,a,s)}function u(e,t){var n,u,c,l,f;e[t>>5]|=128<>>9<<4)]=t;var h=1732584193,p=-271733879,d=-1732584194,v=271733878;for(n=0;n>5]>>>t%32&255);return r}function l(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+"0123456789abcdef".charAt(15&t);return n}function h(e){return unescape(encodeURIComponent(e))}function p(e){return function(e){return c(u(l(e),8*e.length))}(h(e))}function d(e,t){return function(e,t){var r,n,i=l(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=u(i,8*e.length)),r=0;r<16;r+=1)o[r]=909522486^i[r],a[r]=1549556828^i[r];return n=u(o.concat(l(t)),512+8*t.length),c(u(a.concat(n),640))}(h(e),h(t))}e.exports=function(e,t,r){return t?r?d(t,e):function(e,t){return f(d(e,t))}(t,e):r?p(e):function(e){return f(p(e))}(e)}},function(e,t,r){(function(t){var n=r(60),i={collectWindowErrors:!0,debug:!1},o="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},a=[].slice,s="?",u=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function c(){return"undefined"==typeof document||null==document.location?"":document.location.href}i.report=function(){var e,t,r=[],l=null,f=null,h=null;function p(e,t){var n=null;if(!t||i.collectWindowErrors){for(var o in r)if(r.hasOwnProperty(o))try{r[o].apply(null,[e].concat(a.call(arguments,2)))}catch(e){n=e}if(n)throw n}}function d(t,r,o,a,l){var f=n.isErrorEvent(l)?l.error:l,d=n.isErrorEvent(t)?t.message:t;if(h)i.computeStackTrace.augmentStackTraceWithInitialElement(h,r,o,d),v();else if(f&&n.isError(f))p(i.computeStackTrace(f),!0);else{var g,y={url:r,line:o,column:a},m=void 0;if("[object String]"==={}.toString.call(d))(g=d.match(u))&&(m=g[1],d=g[2]);y.func=s,p({name:m,message:d,url:c(),stack:[y]},!0)}return!!e&&e.apply(this,arguments)}function v(){var e=h,t=l;l=null,h=null,f=null,p.apply(null,[e,!1].concat(t))}function g(e,t){var r=a.call(arguments,1);if(h){if(f===e)return;v()}var n=i.computeStackTrace(e);if(h=n,f=e,l=r,setTimeout(function(){f===e&&v()},n.incomplete?2e3:0),!1!==t)throw e}return g.subscribe=function(n){t||(e=o.onerror,o.onerror=d,t=!0),r.push(n)},g.unsubscribe=function(e){for(var t=r.length-1;t>=0;--t)r[t]===e&&r.splice(t,1)},g.uninstall=function(){t&&(o.onerror=e,t=!1,e=void 0),r=[]},g}(),i.computeStackTrace=function(){function e(e){if(void 0!==e.stack&&e.stack){for(var t,r,n,i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack||[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,l=/\((\S*)(?::(\d+))(?::(\d+))\)/,f=e.stack.split("\n"),h=[],p=(/^(.*) is undefined$/.exec(e.message),0),d=f.length;p eval")>-1&&(t=u.exec(r[3]))?(r[3]=t[1],r[4]=t[2],r[5]=null):0!==p||r[5]||void 0===e.columnNumber||(h[0].column=e.columnNumber+1),n={url:r[3],func:r[1]||s,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}if(!n.func&&n.line&&(n.func=s),n.url&&"blob:"===n.url.substr(0,5)){var g=new XMLHttpRequest;if(g.open("GET",n.url,!1),g.send(null),200===g.status){var y=g.responseText||"",m=(y=y.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(m){var b=m[1];"~"===b.charAt(0)&&(b=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+b.slice(1)),n.url=b.slice(0,-4)}}}h.push(n)}return h.length?{name:e.name,message:e.message,url:c(),stack:h}:null}}function t(e,t,r,n){var i={url:t,line:r};if(i.url&&i.line){if(e.incomplete=!1,i.func||(i.func=s),e.stack.length>0&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;if(!e.stack[0].line&&e.stack[0].func===i.func)return e.stack[0].line=i.line,!1}return e.stack.unshift(i),e.partial=!0,!0}return e.incomplete=!0,!1}function r(e,o){for(var a,u,l=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,f=[],h={},p=!1,d=r.caller;d&&!p;d=d.caller)if(d!==n&&d!==i.report){if(u={url:null,func:s,line:null,column:null},d.name?u.func=d.name:(a=l.exec(d.toString()))&&(u.func=a[1]),void 0===u.func)try{u.func=a.input.substring(0,a.input.indexOf("{"))}catch(e){}h[""+d]?p=!0:h[""+d]=!0,f.push(u)}o&&f.splice(0,o);var v={name:e.name,message:e.message,url:c(),stack:f};return t(v,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),v}function n(t,n){var o=null;n=null==n?0:+n;try{if(o=e(t))return o}catch(e){if(i.debug)throw e}try{if(o=r(t,n+1))return o}catch(e){if(i.debug)throw e}return{name:t.name,message:t.message,url:c()}}return n.augmentStackTraceWithInitialElement=t,n.computeStackTraceFromStackProp=e,n}(),e.exports=i}).call(this,r(11))},function(e,t,r){(function(t){var n=r(254),i=r(100),o=r(253),a=r(252),s=r(60),u=s.isErrorEvent,c=s.isDOMError,l=s.isDOMException,f=s.isError,h=s.isObject,p=s.isPlainObject,d=s.isUndefined,v=s.isFunction,g=s.isString,y=s.isArray,m=s.isEmptyObject,b=s.each,_=s.objectMerge,w=s.truncate,E=s.objectFrozen,S=s.hasKey,x=s.joinRegExp,T=s.urlencode,A=s.uuid4,k=s.htmlTreeAsString,O=s.isSameException,C=s.isSameStacktrace,I=s.parseUrl,N=s.fill,B=s.supportsFetch,R=s.supportsReferrerPolicy,P=s.serializeKeysForMessage,j=s.serializeException,H=s.sanitize,M=r(251).wrapMethod,D="source protocol user pass host port path".split(" "),U=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function L(){return+new Date}var F="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},z=F.document,G=F.navigator;function q(e,t){return v(t)?function(r){return t(r,e)}:t}function V(){for(var e in this._hasJSON=!("object"!=typeof JSON||!JSON.stringify),this._hasDocument=!d(z),this._hasNavigator=!d(G),this._lastCapturedException=null,this._lastData=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={release:F.SENTRY_RELEASE&&F.SENTRY_RELEASE.id,logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],headers:null,collectWindowErrors:!0,captureUnhandledRejections:!0,maxMessageLength:0,maxUrlLength:250,stackTraceLimit:50,autoBreadcrumbs:!0,instrument:!0,sampleRate:1,sanitizeKeys:[]},this._fetchDefaults={method:"POST",keepalive:!0,referrerPolicy:R()?"origin":""},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=F.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=L(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._keypressTimeout,this._location=F.location,this._lastHref=this._location&&this._location.href,this._resetBackoff(),this._originalConsole)this._originalConsoleMethods[e]=this._originalConsole[e]}V.prototype={VERSION:"3.26.3",debug:!1,TraceKit:n,config:function(e,t){var r=this;if(r._globalServer)return this._logDebug("error","Error: Raven has already been configured"),r;if(!e)return r;var i=r._globalOptions;t&&b(t,function(e,t){"tags"===e||"extra"===e||"user"===e?r._globalContext[e]=t:i[e]=t}),r.setDSN(e),i.ignoreErrors.push(/^Script error\.?$/),i.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),i.ignoreErrors=x(i.ignoreErrors),i.ignoreUrls=!!i.ignoreUrls.length&&x(i.ignoreUrls),i.whitelistUrls=!!i.whitelistUrls.length&&x(i.whitelistUrls),i.includePaths=x(i.includePaths),i.maxBreadcrumbs=Math.max(0,Math.min(i.maxBreadcrumbs||100,100));var o={xhr:!0,console:!0,dom:!0,location:!0,sentry:!0},a=i.autoBreadcrumbs;"[object Object]"==={}.toString.call(a)?a=_(o,a):!1!==a&&(a=o),i.autoBreadcrumbs=a;var s={tryCatch:!0},u=i.instrument;return"[object Object]"==={}.toString.call(u)?u=_(s,u):!1!==u&&(u=s),i.instrument=u,n.collectWindowErrors=!!i.collectWindowErrors,r},install:function(){var e=this;return e.isSetup()&&!e._isRavenInstalled&&(n.report.subscribe(function(){e._handleOnErrorStackInfo.apply(e,arguments)}),e._globalOptions.captureUnhandledRejections&&e._attachPromiseRejectionHandler(),e._patchFunctionToString(),e._globalOptions.instrument&&e._globalOptions.instrument.tryCatch&&e._instrumentTryCatch(),e._globalOptions.autoBreadcrumbs&&e._instrumentBreadcrumbs(),e._drainPlugins(),e._isRavenInstalled=!0),Error.stackTraceLimit=e._globalOptions.stackTraceLimit,this},setDSN:function(e){var t=this._parseDSN(e),r=t.path.lastIndexOf("/"),n=t.path.substr(1,r);this._dsn=e,this._globalKey=t.user,this._globalSecret=t.pass&&t.pass.substr(1),this._globalProject=t.path.substr(r+1),this._globalServer=this._getGlobalServer(t),this._globalEndpoint=this._globalServer+"/"+n+"api/"+this._globalProject+"/store/",this._resetBackoff()},context:function(e,t,r){return v(e)&&(r=t||[],t=e,e={}),this.wrap(e,t).apply(this,r)},wrap:function(e,t,r){var n=this;if(d(t)&&!v(e))return e;if(v(e)&&(t=e,e=void 0),!v(t))return t;try{if(t.__raven__)return t;if(t.__raven_wrapper__)return t.__raven_wrapper__}catch(e){return t}function i(){var i=[],o=arguments.length,a=!e||e&&!1!==e.deep;for(r&&v(r)&&r.apply(this,arguments);o--;)i[o]=a?n.wrap(e,arguments[o]):arguments[o];try{return t.apply(this,i)}catch(t){throw n._ignoreNextOnError(),n.captureException(t,e),t}}for(var o in t)S(t,o)&&(i[o]=t[o]);return i.prototype=t.prototype,t.__raven_wrapper__=i,i.__raven__=!0,i.__orig__=t,i},uninstall:function(){return n.report.uninstall(),this._detachPromiseRejectionHandler(),this._unpatchFunctionToString(),this._restoreBuiltIns(),this._restoreConsole(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},_promiseRejectionHandler:function(e){this._logDebug("debug","Raven caught unhandled promise rejection:",e),this.captureException(e.reason,{mechanism:{type:"onunhandledrejection",handled:!1}})},_attachPromiseRejectionHandler:function(){return this._promiseRejectionHandler=this._promiseRejectionHandler.bind(this),F.addEventListener&&F.addEventListener("unhandledrejection",this._promiseRejectionHandler),this},_detachPromiseRejectionHandler:function(){return F.removeEventListener&&F.removeEventListener("unhandledrejection",this._promiseRejectionHandler),this},captureException:function(e,t){if(t=_({trimHeadFrames:0},t||{}),u(e)&&e.error)e=e.error;else{if(c(e)||l(e)){var r=e.name||(c(e)?"DOMError":"DOMException"),i=e.message?r+": "+e.message:r;return this.captureMessage(i,_(t,{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}))}if(f(e))e=e;else{if(!p(e))return this.captureMessage(e,_(t,{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}));t=this._getCaptureExceptionOptionsFromPlainObject(t,e),e=new Error(t.message)}}this._lastCapturedException=e;try{var o=n.computeStackTrace(e);this._handleStackInfo(o,t)}catch(t){if(e!==t)throw t}return this},_getCaptureExceptionOptionsFromPlainObject:function(e,t){var r=Object.keys(t).sort(),n=_(e,{message:"Non-Error exception captured with keys: "+P(r),fingerprint:[o(r)],extra:e.extra||{}});return n.extra.__serialized__=j(t),n},captureMessage:function(e,t){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)){var r,i=_({message:e+=""},t=t||{});try{throw new Error(e)}catch(e){r=e}r.name=null;var o=n.computeStackTrace(r),a=y(o.stack)&&o.stack[1];a&&"Raven.captureException"===a.func&&(a=o.stack[2]);var s=a&&a.url||"";if((!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(s))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(s))){if(this._globalOptions.stacktrace||t.stacktrace||""===i.message){i.fingerprint=null==i.fingerprint?e:i.fingerprint,(t=_({trimHeadFrames:0},t)).trimHeadFrames+=1;var u=this._prepareFrames(o,t);i.stacktrace={frames:u.reverse()}}return i.fingerprint&&(i.fingerprint=y(i.fingerprint)?i.fingerprint:[i.fingerprint]),this._send(i),this}}},captureBreadcrumb:function(e){var t=_({timestamp:L()/1e3},e);if(v(this._globalOptions.breadcrumbCallback)){var r=this._globalOptions.breadcrumbCallback(t);if(h(r)&&!m(r))t=r;else if(!1===r)return this}return this._breadcrumbs.push(t),this._breadcrumbs.length>this._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift(),this},addPlugin:function(e){var t=[].slice.call(arguments,1);return this._plugins.push([e,t]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(e){return this._globalContext.user=e,this},setExtraContext:function(e){return this._mergeContext("extra",e),this},setTagsContext:function(e){return this._mergeContext("tags",e),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(i(this._globalContext))},setEnvironment:function(e){return this._globalOptions.environment=e,this},setRelease:function(e){return this._globalOptions.release=e,this},setDataCallback:function(e){var t=this._globalOptions.dataCallback;return this._globalOptions.dataCallback=q(t,e),this},setBreadcrumbCallback:function(e){var t=this._globalOptions.breadcrumbCallback;return this._globalOptions.breadcrumbCallback=q(t,e),this},setShouldSendCallback:function(e){var t=this._globalOptions.shouldSendCallback;return this._globalOptions.shouldSendCallback=q(t,e),this},setTransport:function(e){return this._globalOptions.transport=e,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var e=F.RavenConfig;e&&this.config(e.dsn,e.config).install()},showReportDialog:function(e){if(z){var t=(e=e||{}).eventId||this.lastEventId();if(!t)throw new a("Missing eventId");var r=e.dsn||this._dsn;if(!r)throw new a("Missing DSN");var n=encodeURIComponent,i="";i+="?eventId="+n(t),i+="&dsn="+n(r);var o=e.user||this._globalContext.user;o&&(o.name&&(i+="&name="+n(o.name)),o.email&&(i+="&email="+n(o.email)));var s=this._getGlobalServer(this._parseDSN(r)),u=z.createElement("script");u.async=!0,u.src=s+"/api/embed/error-page/"+i,(z.head||z.body).appendChild(u)}},_ignoreNextOnError:function(){var e=this;this._ignoreOnError+=1,setTimeout(function(){e._ignoreOnError-=1})},_triggerEvent:function(e,t){var r,n;if(this._hasDocument){for(n in t=t||{},e="raven"+e.substr(0,1).toUpperCase()+e.substr(1),z.createEvent?(r=z.createEvent("HTMLEvents")).initEvent(e,!0,!0):(r=z.createEventObject()).eventType=e,t)S(t,n)&&(r[n]=t[n]);if(z.createEvent)z.dispatchEvent(r);else try{z.fireEvent("on"+r.eventType.toLowerCase(),r)}catch(e){}}},_breadcrumbEventHandler:function(e){var t=this;return function(r){if(t._keypressTimeout=null,t._lastCapturedEvent!==r){var n;t._lastCapturedEvent=r;try{n=k(r.target)}catch(e){n=""}t.captureBreadcrumb({category:"ui."+e,message:n})}}},_keypressEventHandler:function(){var e=this;return function(t){var r;try{r=t.target}catch(e){return}var n=r&&r.tagName;if(n&&("INPUT"===n||"TEXTAREA"===n||r.isContentEditable)){var i=e._keypressTimeout;i||e._breadcrumbEventHandler("input")(t),clearTimeout(i),e._keypressTimeout=setTimeout(function(){e._keypressTimeout=null},1e3)}}},_captureUrlChange:function(e,t){var r=I(this._location.href),n=I(t),i=I(e);this._lastHref=t,r.protocol===n.protocol&&r.host===n.host&&(t=n.relative),r.protocol===i.protocol&&r.host===i.host&&(e=i.relative),this.captureBreadcrumb({category:"navigation",data:{to:t,from:e}})},_patchFunctionToString:function(){var e=this;e._originalFunctionToString=Function.prototype.toString,Function.prototype.toString=function(){return"function"==typeof this&&this.__raven__?e._originalFunctionToString.apply(this.__orig__,arguments):e._originalFunctionToString.apply(this,arguments)}},_unpatchFunctionToString:function(){this._originalFunctionToString&&(Function.prototype.toString=this._originalFunctionToString)},_instrumentTryCatch:function(){var e=this,t=e._wrappedBuiltIns;function r(t){return function(r,n){for(var i=new Array(arguments.length),o=0;o"}}},a)),t.apply?t.apply(this,i):t(i[0],i[1])}}var n=this._globalOptions.autoBreadcrumbs;function i(r){var i=F[r]&&F[r].prototype;i&&i.hasOwnProperty&&i.hasOwnProperty("addEventListener")&&(N(i,"addEventListener",function(t){return function(i,o,a,s){try{o&&o.handleEvent&&(o.handleEvent=e.wrap({mechanism:{type:"instrument",data:{target:r,function:"handleEvent",handler:o&&o.name||""}}},o.handleEvent))}catch(e){}var u,c,l;return n&&n.dom&&("EventTarget"===r||"Node"===r)&&(c=e._breadcrumbEventHandler("click"),l=e._keypressEventHandler(),u=function(e){if(e){var t;try{t=e.type}catch(e){return}return"click"===t?c(e):"keypress"===t?l(e):void 0}}),t.call(this,i,e.wrap({mechanism:{type:"instrument",data:{target:r,function:"addEventListener",handler:o&&o.name||""}}},o,u),a,s)}},t),N(i,"removeEventListener",function(e){return function(t,r,n,i){try{r=r&&(r.__raven_wrapper__?r.__raven_wrapper__:r)}catch(e){}return e.call(this,t,r,n,i)}},t))}N(F,"setTimeout",r,t),N(F,"setInterval",r,t),F.requestAnimationFrame&&N(F,"requestAnimationFrame",function(t){return function(r){return t(e.wrap({mechanism:{type:"instrument",data:{function:"requestAnimationFrame",handler:t&&t.name||""}}},r))}},t);for(var o=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],a=0;a"}}},r)})}if(t.xhr&&"XMLHttpRequest"in F){var i=F.XMLHttpRequest&&F.XMLHttpRequest.prototype;N(i,"open",function(t){return function(r,n){return g(n)&&-1===n.indexOf(e._globalKey)&&(this.__raven_xhr={method:r,url:n,status_code:null}),t.apply(this,arguments)}},r),N(i,"send",function(t){return function(){var r=this;function i(){if(r.__raven_xhr&&4===r.readyState){try{r.__raven_xhr.status_code=r.status}catch(e){}e.captureBreadcrumb({type:"http",category:"xhr",data:r.__raven_xhr})}}for(var o=["onload","onerror","onprogress"],a=0;a"}}},t,i)}):r.onreadystatechange=i,t.apply(this,arguments)}},r)}t.xhr&&B()&&N(F,"fetch",function(t){return function(){for(var r=new Array(arguments.length),n=0;n2?arguments[2]:void 0;return r&&e._captureUrlChange(e._lastHref,r+""),t.apply(this,arguments)}};N(F.history,"pushState",u,r),N(F.history,"replaceState",u,r)}if(t.console&&"console"in F&&console.log){var c=function(t,r){e.captureBreadcrumb({message:t,level:r.level,category:"console"})};b(["debug","info","warn","error","log"],function(e,t){M(console,t,c)})}},_restoreBuiltIns:function(){for(var e;this._wrappedBuiltIns.length;){var t=(e=this._wrappedBuiltIns.shift())[0],r=e[1],n=e[2];t[r]=n}},_restoreConsole:function(){for(var e in this._originalConsoleMethods)this._originalConsole[e]=this._originalConsoleMethods[e]},_drainPlugins:function(){var e=this;b(this._plugins,function(t,r){var n=r[0],i=r[1];n.apply(e,[e].concat(i))})},_parseDSN:function(e){var t=U.exec(e),r={},n=7;try{for(;n--;)r[D[n]]=t[n]||""}catch(t){throw new a("Invalid DSN: "+e)}if(r.pass&&!this._globalOptions.allowSecretKey)throw new a("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return r},_getGlobalServer:function(e){var t="//"+e.host+(e.port?":"+e.port:"");return e.protocol&&(t=e.protocol+":"+t),t},_handleOnErrorStackInfo:function(e,t){(t=t||{}).mechanism=t.mechanism||{type:"onerror",handled:!1},this._ignoreOnError||this._handleStackInfo(e,t)},_handleStackInfo:function(e,t){var r=this._prepareFrames(e,t);this._triggerEvent("handle",{stackInfo:e,options:t}),this._processException(e.name,e.message,e.url,e.lineno,r,t)},_prepareFrames:function(e,t){var r=this,n=[];if(e.stack&&e.stack.length&&(b(e.stack,function(t,i){var o=r._normalizeFrame(i,e.url);o&&n.push(o)}),t&&t.trimHeadFrames))for(var i=0;i0&&(e.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),this._globalContext.user&&(e.user=this._globalContext.user),t.environment&&(e.environment=t.environment),t.release&&(e.release=t.release),t.serverName&&(e.server_name=t.serverName),e=this._sanitizeData(e),Object.keys(e).forEach(function(t){(null==e[t]||""===e[t]||m(e[t]))&&delete e[t]}),v(t.dataCallback)&&(e=t.dataCallback(e)||e),e&&!m(e)&&(v(t.shouldSendCallback)&&!t.shouldSendCallback(e)||(this._shouldBackoff()?this._logDebug("warn","Raven dropped error due to backoff: ",e):"number"==typeof t.sampleRate?Math.random()-1&&e%1==0&&e<=l}(e.length)&&"[object Array]"==u.call(e)};e.exports=f},function(e,t,r){var n=r(101),i=r(260),o=/^\d+$/,a=Object.prototype.hasOwnProperty,s=9007199254740991;function u(e,t){return e="number"==typeof e||o.test(e)?+e:-1,t=null==t?s:t,e>-1&&e%1==0&&e-1&&e%1==0&&e<=s}(t)&&(i(e)||n(e))&&t||0;for(var r=e.constructor,o=-1,c="function"==typeof r&&r.prototype===e,l=Array(t),f=t>0;++o-1}},function(e,t,r){"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t=n?i.complete():(i.next(t[r]),e.index=r+1,this.schedule(e)))},t.prototype._subscribe=function(e){var r=this.arrayLike,n=this.scheduler,i=r.length;if(n)return n.schedule(t.dispatch,0,{arrayLike:r,index:0,length:i,subscriber:e});for(var o=0;ol)return l;return t}(e)),this.arr=e,this.idx=t,this.len=r}return e.prototype[a.iterator]=function(){return this},e.prototype.next=function(){return this.idx=t.length?r(new s(d,_,new a(void 0,e[_]))):l(e[_],t[_],r,n,d,_,p);for(;_=0?(l(e[i],t[i],r,n,d,i,p),S=u(S,a)):l(e[i],void 0,r,n,d,i,p)}),S.forEach(function(e){l(void 0,t[e],r,n,d,e,p)})}p.length=p.length-1}else e!==t&&("number"===g&&isNaN(e)&&isNaN(t)||r(new i(d,e,t)))}function f(e,t,r,n){return n=n||[],l(e,t,function(e){e&&n.push(e)},r),n.length?n:void 0}function h(e,t,r){if(e&&t&&r&&r.kind){for(var n=e,i=-1,o=r.path?r.path.length-1:0;++i0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},A,e),r=t.logger,n=t.stateTransformer,i=t.errorTransformer,o=t.predicate,a=t.logErrors,s=t.diffPredicate;if(void 0===r)return function(){return function(e){return function(t){return e(t)}}};if(e.getState&&e.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n // ...options\n});\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n"),function(){return function(e){return function(t){return e(t)}}};var u=[];return function(e){var r=e.getState;return function(e){return function(c){if("function"==typeof o&&!o(r,c))return e(c);var l={};u.push(l),l.started=w.now(),l.startedTime=new Date,l.prevState=n(r()),l.action=c;var f=void 0;if(a)try{f=e(c)}catch(e){l.error=i(e)}else f=e(c);l.took=w.now()-l.started,l.nextState=n(r());var h=t.diff&&"function"==typeof s?s(r,c):t.diff;if(v(u,Object.assign({},t,{diff:h})),u.length=0,l.error)throw l.error;return f}}}}var y,m,b=function(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e},_=function(e){return b(e.getHours(),2)+":"+b(e.getMinutes(),2)+":"+b(e.getSeconds(),2)+"."+b(e.getMilliseconds(),3)},w="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:{},t=e.dispatch,r=e.getState;return"function"==typeof t||"function"==typeof r?g()({dispatch:t,getState:r}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};t.defaults=A,t.createLogger=g,t.logger=k,t.default=k,Object.defineProperty(t,"__esModule",{value:!0})}(t)}).call(this,r(11))},function(e,t,r){"use strict"; /** @license React v16.4.1 * react-is.production.min.js * @@ -65,13 +65,13 @@ e.exports=function(e){return null!=e&&(r(e)||function(e){return"function"==typeo * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.async_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.timeout"):60113;function p(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case a:case u:case s:return e;default:switch(e=e&&e.$$typeof){case l:case h:case c:return e;default:return t}}case o:return t}}}t.typeOf=p,t.AsyncMode=f,t.ContextConsumer=l,t.ContextProvider=c,t.Element=i,t.ForwardRef=h,t.Fragment=a,t.Profiler=u,t.Portal=o,t.StrictMode=s,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===u||e===s||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===c||e.$$typeof===l||e.$$typeof===h)},t.isAsyncMode=function(e){return p(e)===f},t.isContextConsumer=function(e){return p(e)===l},t.isContextProvider=function(e){return p(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return p(e)===h},t.isFragment=function(e){return p(e)===a},t.isProfiler=function(e){return p(e)===u},t.isPortal=function(e){return p(e)===o},t.isStrictMode=function(e){return p(e)===s}},function(e,t,r){"use strict"; + */Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.async_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.timeout"):60113;function d(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case a:case u:case s:return e;default:switch(e=e&&e.$$typeof){case l:case h:case c:return e;default:return t}}case o:return t}}}t.typeOf=d,t.AsyncMode=f,t.ContextConsumer=l,t.ContextProvider=c,t.Element=i,t.ForwardRef=h,t.Fragment=a,t.Profiler=u,t.Portal=o,t.StrictMode=s,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===u||e===s||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===c||e.$$typeof===l||e.$$typeof===h)},t.isAsyncMode=function(e){return d(e)===f},t.isContextConsumer=function(e){return d(e)===l},t.isContextProvider=function(e){return d(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return d(e)===h},t.isFragment=function(e){return d(e)===a},t.isProfiler=function(e){return d(e)===u},t.isPortal=function(e){return d(e)===o},t.isStrictMode=function(e){return d(e)===s}},function(e,t,r){"use strict"; /*! * isobject * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(["\n border: none;\n border-radius: 12px;\n cursor: pointer;\n font: 600 23px Poppins;\n height: 50px;\n margin: 15px;\n min-width: 300px;\n outline: none;\n padding: 0;\n width: 100%;\n @media (max-width: 1200px) {\n border-radius: 8px;\n font-size: 16px;\n height: 40px;\n margin: 5px;\n min-width: 180px;\n }\n"],["\n border: none;\n border-radius: 12px;\n cursor: pointer;\n font: 600 23px Poppins;\n height: 50px;\n margin: 15px;\n min-width: 300px;\n outline: none;\n padding: 0;\n width: 100%;\n @media (max-width: 1200px) {\n border-radius: 8px;\n font-size: 16px;\n height: 40px;\n margin: 5px;\n min-width: 180px;\n }\n"]),i=f(["\n background: rgba(8, 143, 252);\n color: white;\n :hover: {\n background: #088ffc;\n }\n"],["\n background: rgba(8, 143, 252);\n color: white;\n :hover: {\n background: #088ffc;\n }\n"]),o=f(["\n background: #ffffff;\n border: 1px solid #f76868;\n color: #f76868;\n :hover: {\n background: #f76868;\n border-color: #f76868;\n }\n"],["\n background: #ffffff;\n border: 1px solid #f76868;\n color: #f76868;\n :hover: {\n background: #f76868;\n border-color: #f76868;\n }\n"]),a=f(["\n list-style-type: none;\n margin-right: 0;\n min-width: 200px;\n width: 15%;\n @media (max-width: 1200px) {\n display: none;\n }\n"],["\n list-style-type: none;\n margin-right: 0;\n min-width: 200px;\n width: 15%;\n @media (max-width: 1200px) {\n display: none;\n }\n"]),s=f(["\n display: flex;\n flex-direction: row;\n margin-right: 0;\n min-width: 200px;\n width: 90%;\n @media (min-width: 1201px) {\n display: none;\n }\n"],["\n display: flex;\n flex-direction: row;\n margin-right: 0;\n min-width: 200px;\n width: 90%;\n @media (min-width: 1201px) {\n display: none;\n }\n"]),u=l(r(2)),c=l(r(41));function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var h=c.default.button(n),d=(0,c.default)(h)(i),p=(0,c.default)(h)(o),v=c.default.div(a),g=c.default.div(s);t.default=function(e){var t=e.giveConsent,r=e.denyConsent;return u.default.createElement("div",null,u.default.createElement(v,null,u.default.createElement("li",null," ",u.default.createElement(d,{onClick:t},"Continue Ad-Free")),u.default.createElement("li",null," ",u.default.createElement(p,{onClick:r},"Deny Consent"))),u.default.createElement(g,null,u.default.createElement(d,{onClick:t},"Continue Ad-Free"),u.default.createElement(p,{onClick:r},"Deny Consent")))}},function(e,t,r){"use strict";r.r(t),r.d(t,"Overlay",function(){return d});var n=r(2),i=r.n(n),o=r(11),a=r(64),s=r(19),u=r(28),c=r(125),l=r.n(c),f=r(7),h=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.componentDidMount=function(){var e=this.props;(0,e.setOwnerEthAddress)(e.ethAddress)},t.prototype.render=function(){var e=this.props,t=e.status,r=e.giveConsent,n=e.denyConsent;return t!==f.CONSENT_STATUS.PENDING?null:i.a.createElement(l.a,{status:t,giveConsent:r,denyConsent:n})},t}(i.a.Component);t.default=Object(a.connect)(function(e){return{status:e.consent.status}},function(e){return Object(o.bindActionCreators)({setOwnerEthAddress:function(e){return s.default.setOwnerEthAddress(e)},giveConsent:u.default.giveConsent,denyConsent:u.default.denyConsent},e)})(d)},function(e,t,r){"use strict";t.__esModule=!0,t.PersistGate=void 0;var n=function(){function e(e,t){for(var r=0;rthis.eventPool.length&&this.eventPool.push(e)}function Se(e){e.eventPool=[],e.getPooled=we,e.release=Ee}a(_e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=s.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=s.thatReturnsTrue)},persist:function(){this.isPersistent=s.thatReturnsTrue},isPersistent:s.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t=Oe),Ne=String.fromCharCode(32),Re={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Be=!1;function Pe(e,t){switch(e){case"keyup":return-1!==Ae.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function je(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var He=!1;var Me={eventTypes:Re,extractEvents:function(e,t,r,n){var i=void 0,o=void 0;if(ke)e:{switch(e){case"compositionstart":i=Re.compositionStart;break e;case"compositionend":i=Re.compositionEnd;break e;case"compositionupdate":i=Re.compositionUpdate;break e}i=void 0}else He?Pe(e,r)&&(i=Re.compositionEnd):"keydown"===e&&229===r.keyCode&&(i=Re.compositionStart);return i?(Ie&&(He||i!==Re.compositionStart?i===Re.compositionEnd&&He&&(o=ge()):(ve._root=n,ve._startText=ye(),He=!0)),i=xe.getPooled(i,t,r,n),o?i.data=o:null!==(o=je(r))&&(i.data=o),ee(i),o=i):o=null,(e=Ce?function(e,t){switch(e){case"compositionend":return je(t);case"keypress":return 32!==t.which?null:(Be=!0,Ne);case"textInput":return(e=t.data)===Ne&&Be?null:e;default:return null}}(e,r):function(e,t){if(He)return"compositionend"===e||!ke&&Pe(e,t)?(e=ge(),ve._root=null,ve._startText=null,ve._fallbackText=null,He=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1

>>0?1:0),_=a.low=_+H,a.high=b+j+(_>>>0>>0?1:0),E=s.low=E+D,s.high=w+M+(E>>>0>>0?1:0),x=l.low=x+L,l.high=S+U+(x>>>0>>0?1:0),A=f.low=A+z,f.high=T+F+(A>>>0>>0?1:0),O=h.low=O+W,h.high=k+G+(O>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=r._createHelper(l),t.HmacSHA512=r._createHmacHelper(l)}(),e.SHA512}(r(0),r(38))}" + "depth": 6, + "source": "\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = require('./Subscriber');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar OuterSubscriber = (function (_super) {\n __extends(OuterSubscriber, _super);\n function OuterSubscriber() {\n _super.apply(this, arguments);\n }\n OuterSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n this.destination.next(innerValue);\n };\n OuterSubscriber.prototype.notifyError = function (error, innerSub) {\n this.destination.error(error);\n };\n OuterSubscriber.prototype.notifyComplete = function (innerSub) {\n this.destination.complete();\n };\n return OuterSubscriber;\n}(Subscriber_1.Subscriber));\nexports.OuterSubscriber = OuterSubscriber;\n//# sourceMappingURL=OuterSubscriber.js.map", + "parsedSrc": "function(e,t,r){\"use strict\";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(){e.apply(this,arguments)}return n(t,e),t.prototype.notifyNext=function(e,t,r,n,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(r(24).Subscriber);t.OuterSubscriber=i}" }, { - "id": 83, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/crypto-js/sha256.js", - "name": "./node_modules/crypto-js/sha256.js", - "index": 238, - "index2": 229, - "size": 5538, + "id": 66, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\symbol\\observable.js", + "name": "./node_modules/rxjs/symbol/observable.js", + "index": 93, + "index2": 87, + "size": 718, "cacheable": true, "built": true, "optional": false, @@ -13529,49 +13421,34 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/crypto-js/index.js", - "issuerId": 39, - "issuerName": "./node_modules/crypto-js/index.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\Observable.js", + "issuerId": 10, + "issuerName": "./node_modules/rxjs/Observable.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { - "id": 250, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/index.js", - "name": "./src/redux/epics/index.js" - }, - { - "id": 235, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/node-epics.js", - "name": "./src/redux/epics/node-epics.js" - }, - { - "id": 87, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/services/iota.js", - "name": "./src/redux/services/iota.js" - }, - { - "id": 213, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/iota.lib.js/lib/iota.js", - "name": "./node_modules/iota.lib.js/lib/iota.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux-observable\\lib\\esm\\index.js", + "name": "./node_modules/redux-observable/lib/esm/index.js" }, { - "id": 24, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/iota.lib.js/lib/utils/utils.js", - "name": "./node_modules/iota.lib.js/lib/utils/utils.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux-observable\\lib\\esm\\ActionsObservable.js", + "name": "./node_modules/redux-observable/lib/esm/ActionsObservable.js" }, { - "id": 39, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/crypto-js/index.js", - "name": "./node_modules/crypto-js/index.js" + "id": 10, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\Observable.js", + "name": "./node_modules/rxjs/Observable.js" } ], "failed": false, @@ -13581,22 +13458,31 @@ ], "reasons": [ { - "moduleId": 39, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/crypto-js/index.js", - "module": "./node_modules/crypto-js/index.js", - "moduleName": "./node_modules/crypto-js/index.js", + "moduleId": 10, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\Observable.js", + "module": "./node_modules/rxjs/Observable.js", + "moduleName": "./node_modules/rxjs/Observable.js", "type": "cjs require", - "userRequest": "./sha256", - "loc": "4:195-214" + "userRequest": "./symbol/observable", + "loc": "4:19-49" }, { - "moduleId": 207, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/crypto-js/sha224.js", - "module": "./node_modules/crypto-js/sha224.js", - "moduleName": "./node_modules/crypto-js/sha224.js", + "moduleId": 64, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\util\\subscribeToResult.js", + "module": "./node_modules/rxjs/util/subscribeToResult.js", + "moduleName": "./node_modules/rxjs/util/subscribeToResult.js", "type": "cjs require", - "userRequest": "./sha256", - "loc": "4:56-75" + "userRequest": "../symbol/observable", + "loc": "9:19-50" + }, + { + "moduleId": 273, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\observable\\FromObservable.js", + "module": "./node_modules/rxjs/observable/FromObservable.js", + "moduleName": "./node_modules/rxjs/observable/FromObservable.js", + "type": "cjs require", + "userRequest": "../symbol/observable", + "loc": "17:19-50" } ], "usedExports": true, @@ -13604,17 +13490,17 @@ "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 8, - "source": ";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function (Math) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var Hasher = C_lib.Hasher;\n\t var C_algo = C.algo;\n\n\t // Initialization and round constants tables\n\t var H = [];\n\t var K = [];\n\n\t // Compute constants\n\t (function () {\n\t function isPrime(n) {\n\t var sqrtN = Math.sqrt(n);\n\t for (var factor = 2; factor <= sqrtN; factor++) {\n\t if (!(n % factor)) {\n\t return false;\n\t }\n\t }\n\n\t return true;\n\t }\n\n\t function getFractionalBits(n) {\n\t return ((n - (n | 0)) * 0x100000000) | 0;\n\t }\n\n\t var n = 2;\n\t var nPrime = 0;\n\t while (nPrime < 64) {\n\t if (isPrime(n)) {\n\t if (nPrime < 8) {\n\t H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));\n\t }\n\t K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));\n\n\t nPrime++;\n\t }\n\n\t n++;\n\t }\n\t }());\n\n\t // Reusable object\n\t var W = [];\n\n\t /**\n\t * SHA-256 hash algorithm.\n\t */\n\t var SHA256 = C_algo.SHA256 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new WordArray.init(H.slice(0));\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Shortcut\n\t var H = this._hash.words;\n\n\t // Working variables\n\t var a = H[0];\n\t var b = H[1];\n\t var c = H[2];\n\t var d = H[3];\n\t var e = H[4];\n\t var f = H[5];\n\t var g = H[6];\n\t var h = H[7];\n\n\t // Computation\n\t for (var i = 0; i < 64; i++) {\n\t if (i < 16) {\n\t W[i] = M[offset + i] | 0;\n\t } else {\n\t var gamma0x = W[i - 15];\n\t var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^\n\t ((gamma0x << 14) | (gamma0x >>> 18)) ^\n\t (gamma0x >>> 3);\n\n\t var gamma1x = W[i - 2];\n\t var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^\n\t ((gamma1x << 13) | (gamma1x >>> 19)) ^\n\t (gamma1x >>> 10);\n\n\t W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];\n\t }\n\n\t var ch = (e & f) ^ (~e & g);\n\t var maj = (a & b) ^ (a & c) ^ (b & c);\n\n\t var sigma0 = ((a << 30) | (a >>> 2)) ^ ((a << 19) | (a >>> 13)) ^ ((a << 10) | (a >>> 22));\n\t var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25));\n\n\t var t1 = h + sigma1 + ch + K[i] + W[i];\n\t var t2 = sigma0 + maj;\n\n\t h = g;\n\t g = f;\n\t f = e;\n\t e = (d + t1) | 0;\n\t d = c;\n\t c = b;\n\t b = a;\n\t a = (t1 + t2) | 0;\n\t }\n\n\t // Intermediate hash value\n\t H[0] = (H[0] + a) | 0;\n\t H[1] = (H[1] + b) | 0;\n\t H[2] = (H[2] + c) | 0;\n\t H[3] = (H[3] + d) | 0;\n\t H[4] = (H[4] + e) | 0;\n\t H[5] = (H[5] + f) | 0;\n\t H[6] = (H[6] + g) | 0;\n\t H[7] = (H[7] + h) | 0;\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;\n\t data.sigBytes = dataWords.length * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Return final computed hash\n\t return this._hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t }\n\t });\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.SHA256('message');\n\t * var hash = CryptoJS.SHA256(wordArray);\n\t */\n\t C.SHA256 = Hasher._createHelper(SHA256);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacSHA256(message, key);\n\t */\n\t C.HmacSHA256 = Hasher._createHmacHelper(SHA256);\n\t}(Math));\n\n\n\treturn CryptoJS.SHA256;\n\n}));", - "parsedSrc": "function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[],u=[];!function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)e(n)&&(i<8&&(s[i]=r(t.pow(n,.5))),u[i]=r(t.pow(n,1/3)),i++),n++}();var c=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],f=r[6],h=r[7],d=0;d<64;d++){if(d<16)c[d]=0|e[t+d];else{var p=c[d-15],v=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=c[d-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[d]=v+c[d-7]+y+c[d-16]}var m=n&i^n&o^i&o,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+u[d]+c[d];h=f,f=l,l=s,s=a+_|0,a=o,o=i,i=n,n=_+(b+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(l),r.HmacSHA256=o._createHmacHelper(l)}(Math),e.SHA256}(r(0))}" + "depth": 5, + "source": "\"use strict\";\nvar root_1 = require('../util/root');\nfunction getSymbolObservable(context) {\n var $$observable;\n var Symbol = context.Symbol;\n if (typeof Symbol === 'function') {\n if (Symbol.observable) {\n $$observable = Symbol.observable;\n }\n else {\n $$observable = Symbol('observable');\n Symbol.observable = $$observable;\n }\n }\n else {\n $$observable = '@@observable';\n }\n return $$observable;\n}\nexports.getSymbolObservable = getSymbolObservable;\nexports.observable = getSymbolObservable(root_1.root);\n/**\n * @deprecated use observable instead\n */\nexports.$$observable = exports.observable;\n//# sourceMappingURL=observable.js.map", + "parsedSrc": "function(e,t,r){\"use strict\";var n=r(25);function i(e){var t,r=e.Symbol;return\"function\"==typeof r?r.observable?t=r.observable:(t=r(\"observable\"),r.observable=t):t=\"@@observable\",t}t.getSymbolObservable=i,t.observable=i(n.root),t.$$observable=t.observable}" }, { - "id": 84, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/timers-browserify/main.js", - "name": "./node_modules/timers-browserify/main.js", - "index": 223, - "index2": 215, - "size": 2022, + "id": 67, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\symbol\\rxSubscriber.js", + "name": "./node_modules/rxjs/symbol/rxSubscriber.js", + "index": 92, + "index2": 84, + "size": 363, "cacheable": true, "built": true, "optional": false, @@ -13622,34 +13508,34 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/node-forge/lib/util.js", - "issuerId": 1, - "issuerName": "./node_modules/node-forge/lib/util.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\Subject.js", + "issuerId": 75, + "issuerName": "./node_modules/rxjs/Subject.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { - "id": 250, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/index.js", - "name": "./src/redux/epics/index.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux-observable\\lib\\esm\\index.js", + "name": "./node_modules/redux-observable/lib/esm/index.js" }, { - "id": 235, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/node-epics.js", - "name": "./src/redux/epics/node-epics.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux-observable\\lib\\esm\\createEpicMiddleware.js", + "name": "./node_modules/redux-observable/lib/esm/createEpicMiddleware.js" }, { - "id": 1, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/node-forge/lib/util.js", - "name": "./node_modules/node-forge/lib/util.js" + "id": 75, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\Subject.js", + "name": "./node_modules/rxjs/Subject.js" } ], "failed": false, @@ -13659,22 +13545,31 @@ ], "reasons": [ { - "moduleId": 1, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/node-forge/lib/util.js", - "module": "./node_modules/node-forge/lib/util.js", - "moduleName": "./node_modules/node-forge/lib/util.js", + "moduleId": 24, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\Subscriber.js", + "module": "./node_modules/rxjs/Subscriber.js", + "moduleName": "./node_modules/rxjs/Subscriber.js", "type": "cjs require", - "userRequest": "setImmediate", - "loc": "1:0-44" + "userRequest": "./symbol/rxSubscriber", + "loc": "10:21-53" }, { - "moduleId": 85, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/iota.lib.js/node_modules/async/dist/async.js", - "module": "./node_modules/iota.lib.js/node_modules/async/dist/async.js", - "moduleName": "./node_modules/iota.lib.js/node_modules/async/dist/async.js", + "moduleId": 75, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\Subject.js", + "module": "./node_modules/rxjs/Subject.js", + "moduleName": "./node_modules/rxjs/Subject.js", "type": "cjs require", - "userRequest": "setImmediate", - "loc": "1:0-50" + "userRequest": "./symbol/rxSubscriber", + "loc": "12:21-53" + }, + { + "moduleId": 283, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\util\\toSubscriber.js", + "module": "./node_modules/rxjs/util/toSubscriber.js", + "moduleName": "./node_modules/rxjs/util/toSubscriber.js", + "type": "cjs require", + "userRequest": "../symbol/rxSubscriber", + "loc": "3:21-54" } ], "usedExports": true, @@ -13683,16 +13578,16 @@ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], "depth": 5, - "source": "var scope = (typeof global !== \"undefined\" && global) ||\n (typeof self !== \"undefined\" && self) ||\n window;\nvar apply = Function.prototype.apply;\n\n// DOM APIs, for completeness\n\nexports.setTimeout = function() {\n return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);\n};\nexports.setInterval = function() {\n return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);\n};\nexports.clearTimeout =\nexports.clearInterval = function(timeout) {\n if (timeout) {\n timeout.close();\n }\n};\n\nfunction Timeout(id, clearFn) {\n this._id = id;\n this._clearFn = clearFn;\n}\nTimeout.prototype.unref = Timeout.prototype.ref = function() {};\nTimeout.prototype.close = function() {\n this._clearFn.call(scope, this._id);\n};\n\n// Does not start the time, just sets up the members needed.\nexports.enroll = function(item, msecs) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = msecs;\n};\n\nexports.unenroll = function(item) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = -1;\n};\n\nexports._unrefActive = exports.active = function(item) {\n clearTimeout(item._idleTimeoutId);\n\n var msecs = item._idleTimeout;\n if (msecs >= 0) {\n item._idleTimeoutId = setTimeout(function onTimeout() {\n if (item._onTimeout)\n item._onTimeout();\n }, msecs);\n }\n};\n\n// setimmediate attaches itself to the global object\nrequire(\"setimmediate\");\n// On some exotic environments, it's not clear which object `setimmediate` was\n// able to install onto. Search each possibility in the same order as the\n// `setimmediate` library.\nexports.setImmediate = (typeof self !== \"undefined\" && self.setImmediate) ||\n (typeof global !== \"undefined\" && global.setImmediate) ||\n (this && this.setImmediate);\nexports.clearImmediate = (typeof self !== \"undefined\" && self.clearImmediate) ||\n (typeof global !== \"undefined\" && global.clearImmediate) ||\n (this && this.clearImmediate);\n", - "parsedSrc": "function(e,t,r){(function(e){var n=void 0!==e&&e||\"undefined\"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(212),t.setImmediate=\"undefined\"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate=\"undefined\"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(6))}" + "source": "\"use strict\";\nvar root_1 = require('../util/root');\nvar Symbol = root_1.root.Symbol;\nexports.rxSubscriber = (typeof Symbol === 'function' && typeof Symbol.for === 'function') ?\n Symbol.for('rxSubscriber') : '@@rxSubscriber';\n/**\n * @deprecated use rxSubscriber instead\n */\nexports.$$rxSubscriber = exports.rxSubscriber;\n//# sourceMappingURL=rxSubscriber.js.map", + "parsedSrc": "function(e,t,r){\"use strict\";var n=r(25).root.Symbol;t.rxSubscriber=\"function\"==typeof n&&\"function\"==typeof n.for?n.for(\"rxSubscriber\"):\"@@rxSubscriber\",t.$$rxSubscriber=t.rxSubscriber}" }, { - "id": 85, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/iota.lib.js/node_modules/async/dist/async.js", - "name": "./node_modules/iota.lib.js/node_modules/async/dist/async.js", - "index": 222, - "index2": 216, - "size": 184893, + "id": 68, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\Subscription.js", + "name": "./node_modules/rxjs/Subscription.js", + "index": 85, + "index2": 82, + "size": 8183, "cacheable": true, "built": true, "optional": false, @@ -13700,44 +13595,34 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/iota.lib.js/lib/utils/makeRequest.js", - "issuerId": 86, - "issuerName": "./node_modules/iota.lib.js/lib/utils/makeRequest.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\Subject.js", + "issuerId": 75, + "issuerName": "./node_modules/rxjs/Subject.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { - "id": 250, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/index.js", - "name": "./src/redux/epics/index.js" - }, - { - "id": 235, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/node-epics.js", - "name": "./src/redux/epics/node-epics.js" - }, - { - "id": 87, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/services/iota.js", - "name": "./src/redux/services/iota.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux-observable\\lib\\esm\\index.js", + "name": "./node_modules/redux-observable/lib/esm/index.js" }, { - "id": 213, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/iota.lib.js/lib/iota.js", - "name": "./node_modules/iota.lib.js/lib/iota.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux-observable\\lib\\esm\\createEpicMiddleware.js", + "name": "./node_modules/redux-observable/lib/esm/createEpicMiddleware.js" }, { - "id": 86, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/iota.lib.js/lib/utils/makeRequest.js", - "name": "./node_modules/iota.lib.js/lib/utils/makeRequest.js" + "id": 75, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\Subject.js", + "name": "./node_modules/rxjs/Subject.js" } ], "failed": false, @@ -13747,22 +13632,31 @@ ], "reasons": [ { - "moduleId": 86, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/iota.lib.js/lib/utils/makeRequest.js", - "module": "./node_modules/iota.lib.js/lib/utils/makeRequest.js", - "moduleName": "./node_modules/iota.lib.js/lib/utils/makeRequest.js", + "moduleId": 24, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\Subscriber.js", + "module": "./node_modules/rxjs/Subscriber.js", + "moduleName": "./node_modules/rxjs/Subscriber.js", "type": "cjs require", - "userRequest": "async", - "loc": "1:12-28" + "userRequest": "./Subscription", + "loc": "8:21-46" }, { - "moduleId": 182, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/iota.lib.js/lib/api/api.js", - "module": "./node_modules/iota.lib.js/lib/api/api.js", - "moduleName": "./node_modules/iota.lib.js/lib/api/api.js", + "moduleId": 75, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\Subject.js", + "module": "./node_modules/rxjs/Subject.js", + "moduleName": "./node_modules/rxjs/Subject.js", "type": "cjs require", - "userRequest": "async", - "loc": "9:24-40" + "userRequest": "./Subscription", + "loc": "9:21-46" + }, + { + "moduleId": 277, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\SubjectSubscription.js", + "module": "./node_modules/rxjs/SubjectSubscription.js", + "moduleName": "./node_modules/rxjs/SubjectSubscription.js", + "type": "cjs require", + "userRequest": "./Subscription", + "loc": "7:21-46" } ], "usedExports": true, @@ -13770,57 +13664,32 @@ "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 7, - "source": "(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n typeof define === 'function' && define.amd ? define(['exports'], factory) :\n (factory((global.async = global.async || {})));\n}(this, (function (exports) { 'use strict';\n\nfunction slice(arrayLike, start) {\n start = start|0;\n var newLen = Math.max(arrayLike.length - start, 0);\n var newArr = Array(newLen);\n for(var idx = 0; idx < newLen; idx++) {\n newArr[idx] = arrayLike[start + idx];\n }\n return newArr;\n}\n\n/**\n * Creates a continuation function with some arguments already applied.\n *\n * Useful as a shorthand when combined with other control flow functions. Any\n * arguments passed to the returned function are added to the arguments\n * originally passed to apply.\n *\n * @name apply\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {Function} fn - The function you want to eventually apply all\n * arguments to. Invokes with (arguments...).\n * @param {...*} arguments... - Any number of arguments to automatically apply\n * when the continuation is called.\n * @returns {Function} the partially-applied function\n * @example\n *\n * // using apply\n * async.parallel([\n * async.apply(fs.writeFile, 'testfile1', 'test1'),\n * async.apply(fs.writeFile, 'testfile2', 'test2')\n * ]);\n *\n *\n * // the same process without using apply\n * async.parallel([\n * function(callback) {\n * fs.writeFile('testfile1', 'test1', callback);\n * },\n * function(callback) {\n * fs.writeFile('testfile2', 'test2', callback);\n * }\n * ]);\n *\n * // It's possible to pass any number of additional arguments when calling the\n * // continuation:\n *\n * node> var fn = async.apply(sys.puts, 'one');\n * node> fn('two', 'three');\n * one\n * two\n * three\n */\nvar apply = function(fn/*, ...args*/) {\n var args = slice(arguments, 1);\n return function(/*callArgs*/) {\n var callArgs = slice(arguments);\n return fn.apply(null, args.concat(callArgs));\n };\n};\n\nvar initialParams = function (fn) {\n return function (/*...args, callback*/) {\n var args = slice(arguments);\n var callback = args.pop();\n fn.call(this, args, callback);\n };\n};\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nvar hasSetImmediate = typeof setImmediate === 'function' && setImmediate;\nvar hasNextTick = typeof process === 'object' && typeof process.nextTick === 'function';\n\nfunction fallback(fn) {\n setTimeout(fn, 0);\n}\n\nfunction wrap(defer) {\n return function (fn/*, ...args*/) {\n var args = slice(arguments, 1);\n defer(function () {\n fn.apply(null, args);\n });\n };\n}\n\nvar _defer;\n\nif (hasSetImmediate) {\n _defer = setImmediate;\n} else if (hasNextTick) {\n _defer = process.nextTick;\n} else {\n _defer = fallback;\n}\n\nvar setImmediate$1 = wrap(_defer);\n\n/**\n * Take a sync function and make it async, passing its return value to a\n * callback. This is useful for plugging sync functions into a waterfall,\n * series, or other async functions. Any arguments passed to the generated\n * function will be passed to the wrapped function (except for the final\n * callback argument). Errors thrown will be passed to the callback.\n *\n * If the function passed to `asyncify` returns a Promise, that promises's\n * resolved/rejected state will be used to call the callback, rather than simply\n * the synchronous return value.\n *\n * This also means you can asyncify ES2017 `async` functions.\n *\n * @name asyncify\n * @static\n * @memberOf module:Utils\n * @method\n * @alias wrapSync\n * @category Util\n * @param {Function} func - The synchronous function, or Promise-returning\n * function to convert to an {@link AsyncFunction}.\n * @returns {AsyncFunction} An asynchronous wrapper of the `func`. To be\n * invoked with `(args..., callback)`.\n * @example\n *\n * // passing a regular synchronous function\n * async.waterfall([\n * async.apply(fs.readFile, filename, \"utf8\"),\n * async.asyncify(JSON.parse),\n * function (data, next) {\n * // data is the result of parsing the text.\n * // If there was a parsing error, it would have been caught.\n * }\n * ], callback);\n *\n * // passing a function returning a promise\n * async.waterfall([\n * async.apply(fs.readFile, filename, \"utf8\"),\n * async.asyncify(function (contents) {\n * return db.model.create(contents);\n * }),\n * function (model, next) {\n * // `model` is the instantiated model object.\n * // If there was an error, this function would be skipped.\n * }\n * ], callback);\n *\n * // es2017 example, though `asyncify` is not needed if your JS environment\n * // supports async functions out of the box\n * var q = async.queue(async.asyncify(async function(file) {\n * var intermediateStep = await processFile(file);\n * return await somePromise(intermediateStep)\n * }));\n *\n * q.push(files);\n */\nfunction asyncify(func) {\n return initialParams(function (args, callback) {\n var result;\n try {\n result = func.apply(this, args);\n } catch (e) {\n return callback(e);\n }\n // if result is Promise object\n if (isObject(result) && typeof result.then === 'function') {\n result.then(function(value) {\n invokeCallback(callback, null, value);\n }, function(err) {\n invokeCallback(callback, err.message ? err : new Error(err));\n });\n } else {\n callback(null, result);\n }\n });\n}\n\nfunction invokeCallback(callback, error, value) {\n try {\n callback(error, value);\n } catch (e) {\n setImmediate$1(rethrow, e);\n }\n}\n\nfunction rethrow(error) {\n throw error;\n}\n\nvar supportsSymbol = typeof Symbol === 'function';\n\nfunction isAsync(fn) {\n return supportsSymbol && fn[Symbol.toStringTag] === 'AsyncFunction';\n}\n\nfunction wrapAsync(asyncFn) {\n return isAsync(asyncFn) ? asyncify(asyncFn) : asyncFn;\n}\n\nfunction applyEach$1(eachfn) {\n return function(fns/*, ...args*/) {\n var args = slice(arguments, 1);\n var go = initialParams(function(args, callback) {\n var that = this;\n return eachfn(fns, function (fn, cb) {\n wrapAsync(fn).apply(that, args.concat(cb));\n }, callback);\n });\n if (args.length) {\n return go.apply(this, args);\n }\n else {\n return go;\n }\n };\n}\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Built-in value references. */\nvar Symbol$1 = root.Symbol;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag$1),\n tag = value[symToStringTag$1];\n\n try {\n value[symToStringTag$1] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag$1] = tag;\n } else {\n delete value[symToStringTag$1];\n }\n }\n return result;\n}\n\n/** Used for built-in method references. */\nvar objectProto$1 = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString$1 = objectProto$1.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString$1.call(value);\n}\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]';\nvar undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]';\nvar funcTag = '[object Function]';\nvar genTag = '[object GeneratorFunction]';\nvar proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\n// A temporary value used to identify if the loop should be broken.\n// See #1064, #1293\nvar breakLoop = {};\n\n/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nfunction once(fn) {\n return function () {\n if (fn === null) return;\n var callFn = fn;\n fn = null;\n callFn.apply(this, arguments);\n };\n}\n\nvar iteratorSymbol = typeof Symbol === 'function' && Symbol.iterator;\n\nvar getIterator = function (coll) {\n return iteratorSymbol && coll[iteratorSymbol] && coll[iteratorSymbol]();\n};\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\n/** Used for built-in method references. */\nvar objectProto$3 = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty$2 = objectProto$3.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto$3.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty$2.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER$1 = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER$1 : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\n/** `Object#toString` result references. */\nvar argsTag$1 = '[object Arguments]';\nvar arrayTag = '[object Array]';\nvar boolTag = '[object Boolean]';\nvar dateTag = '[object Date]';\nvar errorTag = '[object Error]';\nvar funcTag$1 = '[object Function]';\nvar mapTag = '[object Map]';\nvar numberTag = '[object Number]';\nvar objectTag = '[object Object]';\nvar regexpTag = '[object RegExp]';\nvar setTag = '[object Set]';\nvar stringTag = '[object String]';\nvar weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]';\nvar dataViewTag = '[object DataView]';\nvar float32Tag = '[object Float32Array]';\nvar float64Tag = '[object Float64Array]';\nvar int8Tag = '[object Int8Array]';\nvar int16Tag = '[object Int16Array]';\nvar int32Tag = '[object Int32Array]';\nvar uint8Tag = '[object Uint8Array]';\nvar uint8ClampedTag = '[object Uint8ClampedArray]';\nvar uint16Tag = '[object Uint16Array]';\nvar uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag$1] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag$1] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\n/** Detect free variable `exports`. */\nvar freeExports$1 = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule$1 = freeExports$1 && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports$1 && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule$1 && freeModule$1.require && freeModule$1.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n/** Used for built-in method references. */\nvar objectProto$2 = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty$1 = objectProto$2.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty$1.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/** Used for built-in method references. */\nvar objectProto$5 = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$5;\n\n return value === proto;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\n/** Used for built-in method references. */\nvar objectProto$4 = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty$3 = objectProto$4.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty$3.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nfunction createArrayIterator(coll) {\n var i = -1;\n var len = coll.length;\n return function next() {\n return ++i < len ? {value: coll[i], key: i} : null;\n }\n}\n\nfunction createES2015Iterator(iterator) {\n var i = -1;\n return function next() {\n var item = iterator.next();\n if (item.done)\n return null;\n i++;\n return {value: item.value, key: i};\n }\n}\n\nfunction createObjectIterator(obj) {\n var okeys = keys(obj);\n var i = -1;\n var len = okeys.length;\n return function next() {\n var key = okeys[++i];\n return i < len ? {value: obj[key], key: key} : null;\n };\n}\n\nfunction iterator(coll) {\n if (isArrayLike(coll)) {\n return createArrayIterator(coll);\n }\n\n var iterator = getIterator(coll);\n return iterator ? createES2015Iterator(iterator) : createObjectIterator(coll);\n}\n\nfunction onlyOnce(fn) {\n return function() {\n if (fn === null) throw new Error(\"Callback was already called.\");\n var callFn = fn;\n fn = null;\n callFn.apply(this, arguments);\n };\n}\n\nfunction _eachOfLimit(limit) {\n return function (obj, iteratee, callback) {\n callback = once(callback || noop);\n if (limit <= 0 || !obj) {\n return callback(null);\n }\n var nextElem = iterator(obj);\n var done = false;\n var running = 0;\n var looping = false;\n\n function iterateeCallback(err, value) {\n running -= 1;\n if (err) {\n done = true;\n callback(err);\n }\n else if (value === breakLoop || (done && running <= 0)) {\n done = true;\n return callback(null);\n }\n else if (!looping) {\n replenish();\n }\n }\n\n function replenish () {\n looping = true;\n while (running < limit && !done) {\n var elem = nextElem();\n if (elem === null) {\n done = true;\n if (running <= 0) {\n callback(null);\n }\n return;\n }\n running += 1;\n iteratee(elem.value, elem.key, onlyOnce(iterateeCallback));\n }\n looping = false;\n }\n\n replenish();\n };\n}\n\n/**\n * The same as [`eachOf`]{@link module:Collections.eachOf} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name eachOfLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.eachOf]{@link module:Collections.eachOf}\n * @alias forEachOfLimit\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each\n * item in `coll`. The `key` is the item's key, or index in the case of an\n * array.\n * Invoked with (item, key, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n */\nfunction eachOfLimit(coll, limit, iteratee, callback) {\n _eachOfLimit(limit)(coll, wrapAsync(iteratee), callback);\n}\n\nfunction doLimit(fn, limit) {\n return function (iterable, iteratee, callback) {\n return fn(iterable, limit, iteratee, callback);\n };\n}\n\n// eachOf implementation optimized for array-likes\nfunction eachOfArrayLike(coll, iteratee, callback) {\n callback = once(callback || noop);\n var index = 0,\n completed = 0,\n length = coll.length;\n if (length === 0) {\n callback(null);\n }\n\n function iteratorCallback(err, value) {\n if (err) {\n callback(err);\n } else if ((++completed === length) || value === breakLoop) {\n callback(null);\n }\n }\n\n for (; index < length; index++) {\n iteratee(coll[index], index, onlyOnce(iteratorCallback));\n }\n}\n\n// a generic version of eachOf which can handle array, object, and iterator cases.\nvar eachOfGeneric = doLimit(eachOfLimit, Infinity);\n\n/**\n * Like [`each`]{@link module:Collections.each}, except that it passes the key (or index) as the second argument\n * to the iteratee.\n *\n * @name eachOf\n * @static\n * @memberOf module:Collections\n * @method\n * @alias forEachOf\n * @category Collection\n * @see [async.each]{@link module:Collections.each}\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each\n * item in `coll`.\n * The `key` is the item's key, or index in the case of an array.\n * Invoked with (item, key, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @example\n *\n * var obj = {dev: \"/dev.json\", test: \"/test.json\", prod: \"/prod.json\"};\n * var configs = {};\n *\n * async.forEachOf(obj, function (value, key, callback) {\n * fs.readFile(__dirname + value, \"utf8\", function (err, data) {\n * if (err) return callback(err);\n * try {\n * configs[key] = JSON.parse(data);\n * } catch (e) {\n * return callback(e);\n * }\n * callback();\n * });\n * }, function (err) {\n * if (err) console.error(err.message);\n * // configs is now a map of JSON data\n * doSomethingWith(configs);\n * });\n */\nvar eachOf = function(coll, iteratee, callback) {\n var eachOfImplementation = isArrayLike(coll) ? eachOfArrayLike : eachOfGeneric;\n eachOfImplementation(coll, wrapAsync(iteratee), callback);\n};\n\nfunction doParallel(fn) {\n return function (obj, iteratee, callback) {\n return fn(eachOf, obj, wrapAsync(iteratee), callback);\n };\n}\n\nfunction _asyncMap(eachfn, arr, iteratee, callback) {\n callback = callback || noop;\n arr = arr || [];\n var results = [];\n var counter = 0;\n var _iteratee = wrapAsync(iteratee);\n\n eachfn(arr, function (value, _, callback) {\n var index = counter++;\n _iteratee(value, function (err, v) {\n results[index] = v;\n callback(err);\n });\n }, function (err) {\n callback(err, results);\n });\n}\n\n/**\n * Produces a new collection of values by mapping each value in `coll` through\n * the `iteratee` function. The `iteratee` is called with an item from `coll`\n * and a callback for when it has finished processing. Each of these callback\n * takes 2 arguments: an `error`, and the transformed item from `coll`. If\n * `iteratee` passes an error to its callback, the main `callback` (for the\n * `map` function) is immediately called with the error.\n *\n * Note, that since this function applies the `iteratee` to each item in\n * parallel, there is no guarantee that the `iteratee` functions will complete\n * in order. However, the results array will be in the same order as the\n * original `coll`.\n *\n * If `map` is passed an Object, the results will be an Array. The results\n * will roughly be in the order of the original Objects' keys (but this can\n * vary across JavaScript engines).\n *\n * @name map\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with the transformed item.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Results is an Array of the\n * transformed items from the `coll`. Invoked with (err, results).\n * @example\n *\n * async.map(['file1','file2','file3'], fs.stat, function(err, results) {\n * // results is now an array of stats for each file\n * });\n */\nvar map = doParallel(_asyncMap);\n\n/**\n * Applies the provided arguments to each function in the array, calling\n * `callback` after all functions have completed. If you only provide the first\n * argument, `fns`, then it will return a function which lets you pass in the\n * arguments as if it were a single function call. If more arguments are\n * provided, `callback` is required while `args` is still optional.\n *\n * @name applyEach\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|Object} fns - A collection of {@link AsyncFunction}s\n * to all call with the same arguments\n * @param {...*} [args] - any number of separate arguments to pass to the\n * function.\n * @param {Function} [callback] - the final argument should be the callback,\n * called when all functions have completed processing.\n * @returns {Function} - If only the first argument, `fns`, is provided, it will\n * return a function which lets you pass in the arguments as if it were a single\n * function call. The signature is `(..args, callback)`. If invoked with any\n * arguments, `callback` is required.\n * @example\n *\n * async.applyEach([enableSearch, updateSchema], 'bucket', callback);\n *\n * // partial application example:\n * async.each(\n * buckets,\n * async.applyEach([enableSearch, updateSchema]),\n * callback\n * );\n */\nvar applyEach = applyEach$1(map);\n\nfunction doParallelLimit(fn) {\n return function (obj, limit, iteratee, callback) {\n return fn(_eachOfLimit(limit), obj, wrapAsync(iteratee), callback);\n };\n}\n\n/**\n * The same as [`map`]{@link module:Collections.map} but runs a maximum of `limit` async operations at a time.\n *\n * @name mapLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.map]{@link module:Collections.map}\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with the transformed item.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Results is an array of the\n * transformed items from the `coll`. Invoked with (err, results).\n */\nvar mapLimit = doParallelLimit(_asyncMap);\n\n/**\n * The same as [`map`]{@link module:Collections.map} but runs only a single async operation at a time.\n *\n * @name mapSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.map]{@link module:Collections.map}\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with the transformed item.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Results is an array of the\n * transformed items from the `coll`. Invoked with (err, results).\n */\nvar mapSeries = doLimit(mapLimit, 1);\n\n/**\n * The same as [`applyEach`]{@link module:ControlFlow.applyEach} but runs only a single async operation at a time.\n *\n * @name applyEachSeries\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.applyEach]{@link module:ControlFlow.applyEach}\n * @category Control Flow\n * @param {Array|Iterable|Object} fns - A collection of {@link AsyncFunction}s to all\n * call with the same arguments\n * @param {...*} [args] - any number of separate arguments to pass to the\n * function.\n * @param {Function} [callback] - the final argument should be the callback,\n * called when all functions have completed processing.\n * @returns {Function} - If only the first argument is provided, it will return\n * a function which lets you pass in the arguments as if it were a single\n * function call.\n */\nvar applyEachSeries = applyEach$1(mapSeries);\n\n/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\n/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\n/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\n/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\n/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\n/**\n * Determines the best order for running the {@link AsyncFunction}s in `tasks`, based on\n * their requirements. Each function can optionally depend on other functions\n * being completed first, and each function is run as soon as its requirements\n * are satisfied.\n *\n * If any of the {@link AsyncFunction}s pass an error to their callback, the `auto` sequence\n * will stop. Further tasks will not execute (so any other functions depending\n * on it will not run), and the main `callback` is immediately called with the\n * error.\n *\n * {@link AsyncFunction}s also receive an object containing the results of functions which\n * have completed so far as the first argument, if they have dependencies. If a\n * task function has no dependencies, it will only be passed a callback.\n *\n * @name auto\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Object} tasks - An object. Each of its properties is either a\n * function or an array of requirements, with the {@link AsyncFunction} itself the last item\n * in the array. The object's key of a property serves as the name of the task\n * defined by that property, i.e. can be used when specifying requirements for\n * other tasks. The function receives one or two arguments:\n * * a `results` object, containing the results of the previously executed\n * functions, only passed if the task has any dependencies,\n * * a `callback(err, result)` function, which must be called when finished,\n * passing an `error` (which can be `null`) and the result of the function's\n * execution.\n * @param {number} [concurrency=Infinity] - An optional `integer` for\n * determining the maximum number of tasks that can be run in parallel. By\n * default, as many as possible.\n * @param {Function} [callback] - An optional callback which is called when all\n * the tasks have been completed. It receives the `err` argument if any `tasks`\n * pass an error to their callback. Results are always returned; however, if an\n * error occurs, no further `tasks` will be performed, and the results object\n * will only contain partial results. Invoked with (err, results).\n * @returns undefined\n * @example\n *\n * async.auto({\n * // this function will just be passed a callback\n * readData: async.apply(fs.readFile, 'data.txt', 'utf-8'),\n * showData: ['readData', function(results, cb) {\n * // results.readData is the file's contents\n * // ...\n * }]\n * }, callback);\n *\n * async.auto({\n * get_data: function(callback) {\n * console.log('in get_data');\n * // async code to get some data\n * callback(null, 'data', 'converted to array');\n * },\n * make_folder: function(callback) {\n * console.log('in make_folder');\n * // async code to create a directory to store a file in\n * // this is run at the same time as getting the data\n * callback(null, 'folder');\n * },\n * write_file: ['get_data', 'make_folder', function(results, callback) {\n * console.log('in write_file', JSON.stringify(results));\n * // once there is some data and the directory exists,\n * // write the data to a file in the directory\n * callback(null, 'filename');\n * }],\n * email_link: ['write_file', function(results, callback) {\n * console.log('in email_link', JSON.stringify(results));\n * // once the file is written let's email a link to it...\n * // results.write_file contains the filename returned by write_file.\n * callback(null, {'file':results.write_file, 'email':'user@example.com'});\n * }]\n * }, function(err, results) {\n * console.log('err = ', err);\n * console.log('results = ', results);\n * });\n */\nvar auto = function (tasks, concurrency, callback) {\n if (typeof concurrency === 'function') {\n // concurrency is optional, shift the args.\n callback = concurrency;\n concurrency = null;\n }\n callback = once(callback || noop);\n var keys$$1 = keys(tasks);\n var numTasks = keys$$1.length;\n if (!numTasks) {\n return callback(null);\n }\n if (!concurrency) {\n concurrency = numTasks;\n }\n\n var results = {};\n var runningTasks = 0;\n var hasError = false;\n\n var listeners = Object.create(null);\n\n var readyTasks = [];\n\n // for cycle detection:\n var readyToCheck = []; // tasks that have been identified as reachable\n // without the possibility of returning to an ancestor task\n var uncheckedDependencies = {};\n\n baseForOwn(tasks, function (task, key) {\n if (!isArray(task)) {\n // no dependencies\n enqueueTask(key, [task]);\n readyToCheck.push(key);\n return;\n }\n\n var dependencies = task.slice(0, task.length - 1);\n var remainingDependencies = dependencies.length;\n if (remainingDependencies === 0) {\n enqueueTask(key, task);\n readyToCheck.push(key);\n return;\n }\n uncheckedDependencies[key] = remainingDependencies;\n\n arrayEach(dependencies, function (dependencyName) {\n if (!tasks[dependencyName]) {\n throw new Error('async.auto task `' + key +\n '` has a non-existent dependency `' +\n dependencyName + '` in ' +\n dependencies.join(', '));\n }\n addListener(dependencyName, function () {\n remainingDependencies--;\n if (remainingDependencies === 0) {\n enqueueTask(key, task);\n }\n });\n });\n });\n\n checkForDeadlocks();\n processQueue();\n\n function enqueueTask(key, task) {\n readyTasks.push(function () {\n runTask(key, task);\n });\n }\n\n function processQueue() {\n if (readyTasks.length === 0 && runningTasks === 0) {\n return callback(null, results);\n }\n while(readyTasks.length && runningTasks < concurrency) {\n var run = readyTasks.shift();\n run();\n }\n\n }\n\n function addListener(taskName, fn) {\n var taskListeners = listeners[taskName];\n if (!taskListeners) {\n taskListeners = listeners[taskName] = [];\n }\n\n taskListeners.push(fn);\n }\n\n function taskComplete(taskName) {\n var taskListeners = listeners[taskName] || [];\n arrayEach(taskListeners, function (fn) {\n fn();\n });\n processQueue();\n }\n\n\n function runTask(key, task) {\n if (hasError) return;\n\n var taskCallback = onlyOnce(function(err, result) {\n runningTasks--;\n if (arguments.length > 2) {\n result = slice(arguments, 1);\n }\n if (err) {\n var safeResults = {};\n baseForOwn(results, function(val, rkey) {\n safeResults[rkey] = val;\n });\n safeResults[key] = result;\n hasError = true;\n listeners = Object.create(null);\n\n callback(err, safeResults);\n } else {\n results[key] = result;\n taskComplete(key);\n }\n });\n\n runningTasks++;\n var taskFn = wrapAsync(task[task.length - 1]);\n if (task.length > 1) {\n taskFn(results, taskCallback);\n } else {\n taskFn(taskCallback);\n }\n }\n\n function checkForDeadlocks() {\n // Kahn's algorithm\n // https://en.wikipedia.org/wiki/Topological_sorting#Kahn.27s_algorithm\n // http://connalle.blogspot.com/2013/10/topological-sortingkahn-algorithm.html\n var currentTask;\n var counter = 0;\n while (readyToCheck.length) {\n currentTask = readyToCheck.pop();\n counter++;\n arrayEach(getDependents(currentTask), function (dependent) {\n if (--uncheckedDependencies[dependent] === 0) {\n readyToCheck.push(dependent);\n }\n });\n }\n\n if (counter !== numTasks) {\n throw new Error(\n 'async.auto cannot execute tasks due to a recursive dependency'\n );\n }\n }\n\n function getDependents(taskName) {\n var result = [];\n baseForOwn(tasks, function (task, key) {\n if (isArray(task) && baseIndexOf(task, taskName, 0) >= 0) {\n result.push(key);\n }\n });\n return result;\n }\n};\n\n/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol$1 ? Symbol$1.prototype : undefined;\nvar symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\n/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\n\n/**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\nfunction castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n}\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\nfunction charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n}\n\n/**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\nfunction charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n}\n\n/**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction asciiToArray(string) {\n return string.split('');\n}\n\n/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff';\nvar rsComboMarksRange = '\\\\u0300-\\\\u036f';\nvar reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f';\nvar rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff';\nvar rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;\nvar rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\n\n/** Used to compose unicode character classes. */\nvar rsAstralRange$1 = '\\\\ud800-\\\\udfff';\nvar rsComboMarksRange$1 = '\\\\u0300-\\\\u036f';\nvar reComboHalfMarksRange$1 = '\\\\ufe20-\\\\ufe2f';\nvar rsComboSymbolsRange$1 = '\\\\u20d0-\\\\u20ff';\nvar rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1;\nvar rsVarRange$1 = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange$1 + ']';\nvar rsCombo = '[' + rsComboRange$1 + ']';\nvar rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]';\nvar rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')';\nvar rsNonAstral = '[^' + rsAstralRange$1 + ']';\nvar rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}';\nvar rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]';\nvar rsZWJ$1 = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?';\nvar rsOptVar = '[' + rsVarRange$1 + ']?';\nvar rsOptJoin = '(?:' + rsZWJ$1 + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*';\nvar rsSeq = rsOptVar + reOptMod + rsOptJoin;\nvar rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction unicodeToArray(string) {\n return string.match(reUnicode) || [];\n}\n\n/**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n}\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/**\n * Removes leading and trailing whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trim(' abc ');\n * // => 'abc'\n *\n * _.trim('-_-abc-_-', '_-');\n * // => 'abc'\n *\n * _.map([' foo ', ' bar '], _.trim);\n * // => ['foo', 'bar']\n */\nfunction trim(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return string.replace(reTrim, '');\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n chrSymbols = stringToArray(chars),\n start = charsStartIndex(strSymbols, chrSymbols),\n end = charsEndIndex(strSymbols, chrSymbols) + 1;\n\n return castSlice(strSymbols, start, end).join('');\n}\n\nvar FN_ARGS = /^(?:async\\s+)?(function)?\\s*[^\\(]*\\(\\s*([^\\)]*)\\)/m;\nvar FN_ARG_SPLIT = /,/;\nvar FN_ARG = /(=.+)?(\\s*)$/;\nvar STRIP_COMMENTS = /((\\/\\/.*$)|(\\/\\*[\\s\\S]*?\\*\\/))/mg;\n\nfunction parseParams(func) {\n func = func.toString().replace(STRIP_COMMENTS, '');\n func = func.match(FN_ARGS)[2].replace(' ', '');\n func = func ? func.split(FN_ARG_SPLIT) : [];\n func = func.map(function (arg){\n return trim(arg.replace(FN_ARG, ''));\n });\n return func;\n}\n\n/**\n * A dependency-injected version of the [async.auto]{@link module:ControlFlow.auto} function. Dependent\n * tasks are specified as parameters to the function, after the usual callback\n * parameter, with the parameter names matching the names of the tasks it\n * depends on. This can provide even more readable task graphs which can be\n * easier to maintain.\n *\n * If a final callback is specified, the task results are similarly injected,\n * specified as named parameters after the initial error parameter.\n *\n * The autoInject function is purely syntactic sugar and its semantics are\n * otherwise equivalent to [async.auto]{@link module:ControlFlow.auto}.\n *\n * @name autoInject\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.auto]{@link module:ControlFlow.auto}\n * @category Control Flow\n * @param {Object} tasks - An object, each of whose properties is an {@link AsyncFunction} of\n * the form 'func([dependencies...], callback). The object's key of a property\n * serves as the name of the task defined by that property, i.e. can be used\n * when specifying requirements for other tasks.\n * * The `callback` parameter is a `callback(err, result)` which must be called\n * when finished, passing an `error` (which can be `null`) and the result of\n * the function's execution. The remaining parameters name other tasks on\n * which the task is dependent, and the results from those tasks are the\n * arguments of those parameters.\n * @param {Function} [callback] - An optional callback which is called when all\n * the tasks have been completed. It receives the `err` argument if any `tasks`\n * pass an error to their callback, and a `results` object with any completed\n * task results, similar to `auto`.\n * @example\n *\n * // The example from `auto` can be rewritten as follows:\n * async.autoInject({\n * get_data: function(callback) {\n * // async code to get some data\n * callback(null, 'data', 'converted to array');\n * },\n * make_folder: function(callback) {\n * // async code to create a directory to store a file in\n * // this is run at the same time as getting the data\n * callback(null, 'folder');\n * },\n * write_file: function(get_data, make_folder, callback) {\n * // once there is some data and the directory exists,\n * // write the data to a file in the directory\n * callback(null, 'filename');\n * },\n * email_link: function(write_file, callback) {\n * // once the file is written let's email a link to it...\n * // write_file contains the filename returned by write_file.\n * callback(null, {'file':write_file, 'email':'user@example.com'});\n * }\n * }, function(err, results) {\n * console.log('err = ', err);\n * console.log('email_link = ', results.email_link);\n * });\n *\n * // If you are using a JS minifier that mangles parameter names, `autoInject`\n * // will not work with plain functions, since the parameter names will be\n * // collapsed to a single letter identifier. To work around this, you can\n * // explicitly specify the names of the parameters your task function needs\n * // in an array, similar to Angular.js dependency injection.\n *\n * // This still has an advantage over plain `auto`, since the results a task\n * // depends on are still spread into arguments.\n * async.autoInject({\n * //...\n * write_file: ['get_data', 'make_folder', function(get_data, make_folder, callback) {\n * callback(null, 'filename');\n * }],\n * email_link: ['write_file', function(write_file, callback) {\n * callback(null, {'file':write_file, 'email':'user@example.com'});\n * }]\n * //...\n * }, function(err, results) {\n * console.log('err = ', err);\n * console.log('email_link = ', results.email_link);\n * });\n */\nfunction autoInject(tasks, callback) {\n var newTasks = {};\n\n baseForOwn(tasks, function (taskFn, key) {\n var params;\n var fnIsAsync = isAsync(taskFn);\n var hasNoDeps =\n (!fnIsAsync && taskFn.length === 1) ||\n (fnIsAsync && taskFn.length === 0);\n\n if (isArray(taskFn)) {\n params = taskFn.slice(0, -1);\n taskFn = taskFn[taskFn.length - 1];\n\n newTasks[key] = params.concat(params.length > 0 ? newTask : taskFn);\n } else if (hasNoDeps) {\n // no dependencies, use the function as-is\n newTasks[key] = taskFn;\n } else {\n params = parseParams(taskFn);\n if (taskFn.length === 0 && !fnIsAsync && params.length === 0) {\n throw new Error(\"autoInject task functions require explicit parameters.\");\n }\n\n // remove callback param\n if (!fnIsAsync) params.pop();\n\n newTasks[key] = params.concat(newTask);\n }\n\n function newTask(results, taskCb) {\n var newArgs = arrayMap(params, function (name) {\n return results[name];\n });\n newArgs.push(taskCb);\n wrapAsync(taskFn).apply(null, newArgs);\n }\n });\n\n auto(newTasks, callback);\n}\n\n// Simple doubly linked list (https://en.wikipedia.org/wiki/Doubly_linked_list) implementation\n// used for queues. This implementation assumes that the node provided by the user can be modified\n// to adjust the next and last properties. We implement only the minimal functionality\n// for queue support.\nfunction DLL() {\n this.head = this.tail = null;\n this.length = 0;\n}\n\nfunction setInitial(dll, node) {\n dll.length = 1;\n dll.head = dll.tail = node;\n}\n\nDLL.prototype.removeLink = function(node) {\n if (node.prev) node.prev.next = node.next;\n else this.head = node.next;\n if (node.next) node.next.prev = node.prev;\n else this.tail = node.prev;\n\n node.prev = node.next = null;\n this.length -= 1;\n return node;\n};\n\nDLL.prototype.empty = function () {\n while(this.head) this.shift();\n return this;\n};\n\nDLL.prototype.insertAfter = function(node, newNode) {\n newNode.prev = node;\n newNode.next = node.next;\n if (node.next) node.next.prev = newNode;\n else this.tail = newNode;\n node.next = newNode;\n this.length += 1;\n};\n\nDLL.prototype.insertBefore = function(node, newNode) {\n newNode.prev = node.prev;\n newNode.next = node;\n if (node.prev) node.prev.next = newNode;\n else this.head = newNode;\n node.prev = newNode;\n this.length += 1;\n};\n\nDLL.prototype.unshift = function(node) {\n if (this.head) this.insertBefore(this.head, node);\n else setInitial(this, node);\n};\n\nDLL.prototype.push = function(node) {\n if (this.tail) this.insertAfter(this.tail, node);\n else setInitial(this, node);\n};\n\nDLL.prototype.shift = function() {\n return this.head && this.removeLink(this.head);\n};\n\nDLL.prototype.pop = function() {\n return this.tail && this.removeLink(this.tail);\n};\n\nDLL.prototype.toArray = function () {\n var arr = Array(this.length);\n var curr = this.head;\n for(var idx = 0; idx < this.length; idx++) {\n arr[idx] = curr.data;\n curr = curr.next;\n }\n return arr;\n};\n\nDLL.prototype.remove = function (testFn) {\n var curr = this.head;\n while(!!curr) {\n var next = curr.next;\n if (testFn(curr)) {\n this.removeLink(curr);\n }\n curr = next;\n }\n return this;\n};\n\nfunction queue(worker, concurrency, payload) {\n if (concurrency == null) {\n concurrency = 1;\n }\n else if(concurrency === 0) {\n throw new Error('Concurrency must not be zero');\n }\n\n var _worker = wrapAsync(worker);\n var numRunning = 0;\n var workersList = [];\n\n var processingScheduled = false;\n function _insert(data, insertAtFront, callback) {\n if (callback != null && typeof callback !== 'function') {\n throw new Error('task callback must be a function');\n }\n q.started = true;\n if (!isArray(data)) {\n data = [data];\n }\n if (data.length === 0 && q.idle()) {\n // call drain immediately if there are no tasks\n return setImmediate$1(function() {\n q.drain();\n });\n }\n\n for (var i = 0, l = data.length; i < l; i++) {\n var item = {\n data: data[i],\n callback: callback || noop\n };\n\n if (insertAtFront) {\n q._tasks.unshift(item);\n } else {\n q._tasks.push(item);\n }\n }\n\n if (!processingScheduled) {\n processingScheduled = true;\n setImmediate$1(function() {\n processingScheduled = false;\n q.process();\n });\n }\n }\n\n function _next(tasks) {\n return function(err){\n numRunning -= 1;\n\n for (var i = 0, l = tasks.length; i < l; i++) {\n var task = tasks[i];\n\n var index = baseIndexOf(workersList, task, 0);\n if (index === 0) {\n workersList.shift();\n } else if (index > 0) {\n workersList.splice(index, 1);\n }\n\n task.callback.apply(task, arguments);\n\n if (err != null) {\n q.error(err, task.data);\n }\n }\n\n if (numRunning <= (q.concurrency - q.buffer) ) {\n q.unsaturated();\n }\n\n if (q.idle()) {\n q.drain();\n }\n q.process();\n };\n }\n\n var isProcessing = false;\n var q = {\n _tasks: new DLL(),\n concurrency: concurrency,\n payload: payload,\n saturated: noop,\n unsaturated:noop,\n buffer: concurrency / 4,\n empty: noop,\n drain: noop,\n error: noop,\n started: false,\n paused: false,\n push: function (data, callback) {\n _insert(data, false, callback);\n },\n kill: function () {\n q.drain = noop;\n q._tasks.empty();\n },\n unshift: function (data, callback) {\n _insert(data, true, callback);\n },\n remove: function (testFn) {\n q._tasks.remove(testFn);\n },\n process: function () {\n // Avoid trying to start too many processing operations. This can occur\n // when callbacks resolve synchronously (#1267).\n if (isProcessing) {\n return;\n }\n isProcessing = true;\n while(!q.paused && numRunning < q.concurrency && q._tasks.length){\n var tasks = [], data = [];\n var l = q._tasks.length;\n if (q.payload) l = Math.min(l, q.payload);\n for (var i = 0; i < l; i++) {\n var node = q._tasks.shift();\n tasks.push(node);\n workersList.push(node);\n data.push(node.data);\n }\n\n numRunning += 1;\n\n if (q._tasks.length === 0) {\n q.empty();\n }\n\n if (numRunning === q.concurrency) {\n q.saturated();\n }\n\n var cb = onlyOnce(_next(tasks));\n _worker(data, cb);\n }\n isProcessing = false;\n },\n length: function () {\n return q._tasks.length;\n },\n running: function () {\n return numRunning;\n },\n workersList: function () {\n return workersList;\n },\n idle: function() {\n return q._tasks.length + numRunning === 0;\n },\n pause: function () {\n q.paused = true;\n },\n resume: function () {\n if (q.paused === false) { return; }\n q.paused = false;\n setImmediate$1(q.process);\n }\n };\n return q;\n}\n\n/**\n * A cargo of tasks for the worker function to complete. Cargo inherits all of\n * the same methods and event callbacks as [`queue`]{@link module:ControlFlow.queue}.\n * @typedef {Object} CargoObject\n * @memberOf module:ControlFlow\n * @property {Function} length - A function returning the number of items\n * waiting to be processed. Invoke like `cargo.length()`.\n * @property {number} payload - An `integer` for determining how many tasks\n * should be process per round. This property can be changed after a `cargo` is\n * created to alter the payload on-the-fly.\n * @property {Function} push - Adds `task` to the `queue`. The callback is\n * called once the `worker` has finished processing the task. Instead of a\n * single task, an array of `tasks` can be submitted. The respective callback is\n * used for every task in the list. Invoke like `cargo.push(task, [callback])`.\n * @property {Function} saturated - A callback that is called when the\n * `queue.length()` hits the concurrency and further tasks will be queued.\n * @property {Function} empty - A callback that is called when the last item\n * from the `queue` is given to a `worker`.\n * @property {Function} drain - A callback that is called when the last item\n * from the `queue` has returned from the `worker`.\n * @property {Function} idle - a function returning false if there are items\n * waiting or being processed, or true if not. Invoke like `cargo.idle()`.\n * @property {Function} pause - a function that pauses the processing of tasks\n * until `resume()` is called. Invoke like `cargo.pause()`.\n * @property {Function} resume - a function that resumes the processing of\n * queued tasks when the queue is paused. Invoke like `cargo.resume()`.\n * @property {Function} kill - a function that removes the `drain` callback and\n * empties remaining tasks from the queue forcing it to go idle. Invoke like `cargo.kill()`.\n */\n\n/**\n * Creates a `cargo` object with the specified payload. Tasks added to the\n * cargo will be processed altogether (up to the `payload` limit). If the\n * `worker` is in progress, the task is queued until it becomes available. Once\n * the `worker` has completed some tasks, each callback of those tasks is\n * called. Check out [these](https://camo.githubusercontent.com/6bbd36f4cf5b35a0f11a96dcd2e97711ffc2fb37/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130382f62626330636662302d356632392d313165322d393734662d3333393763363464633835382e676966) [animations](https://camo.githubusercontent.com/f4810e00e1c5f5f8addbe3e9f49064fd5d102699/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130312f38346339323036362d356632392d313165322d383134662d3964336430323431336266642e676966)\n * for how `cargo` and `queue` work.\n *\n * While [`queue`]{@link module:ControlFlow.queue} passes only one task to one of a group of workers\n * at a time, cargo passes an array of tasks to a single worker, repeating\n * when the worker is finished.\n *\n * @name cargo\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.queue]{@link module:ControlFlow.queue}\n * @category Control Flow\n * @param {AsyncFunction} worker - An asynchronous function for processing an array\n * of queued tasks. Invoked with `(tasks, callback)`.\n * @param {number} [payload=Infinity] - An optional `integer` for determining\n * how many tasks should be processed per round; if omitted, the default is\n * unlimited.\n * @returns {module:ControlFlow.CargoObject} A cargo object to manage the tasks. Callbacks can\n * attached as certain properties to listen for specific events during the\n * lifecycle of the cargo and inner queue.\n * @example\n *\n * // create a cargo object with payload 2\n * var cargo = async.cargo(function(tasks, callback) {\n * for (var i=0; i true\n */\nfunction identity(value) {\n return value;\n}\n\nfunction _createTester(check, getResult) {\n return function(eachfn, arr, iteratee, cb) {\n cb = cb || noop;\n var testPassed = false;\n var testResult;\n eachfn(arr, function(value, _, callback) {\n iteratee(value, function(err, result) {\n if (err) {\n callback(err);\n } else if (check(result) && !testResult) {\n testPassed = true;\n testResult = getResult(true, value);\n callback(null, breakLoop);\n } else {\n callback();\n }\n });\n }, function(err) {\n if (err) {\n cb(err);\n } else {\n cb(null, testPassed ? testResult : getResult(false));\n }\n });\n };\n}\n\nfunction _findGetResult(v, x) {\n return x;\n}\n\n/**\n * Returns the first value in `coll` that passes an async truth test. The\n * `iteratee` is applied in parallel, meaning the first iteratee to return\n * `true` will fire the detect `callback` with that result. That means the\n * result might not be the first item in the original `coll` (in terms of order)\n * that passes the test.\n\n * If order within the original `coll` is important, then look at\n * [`detectSeries`]{@link module:Collections.detectSeries}.\n *\n * @name detect\n * @static\n * @memberOf module:Collections\n * @method\n * @alias find\n * @category Collections\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.\n * The iteratee must complete with a boolean value as its result.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the `iteratee` functions have finished.\n * Result will be the first item in the array that passes the truth test\n * (iteratee) or the value `undefined` if none passed. Invoked with\n * (err, result).\n * @example\n *\n * async.detect(['file1','file2','file3'], function(filePath, callback) {\n * fs.access(filePath, function(err) {\n * callback(null, !err)\n * });\n * }, function(err, result) {\n * // result now equals the first file in the list that exists\n * });\n */\nvar detect = doParallel(_createTester(identity, _findGetResult));\n\n/**\n * The same as [`detect`]{@link module:Collections.detect} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name detectLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.detect]{@link module:Collections.detect}\n * @alias findLimit\n * @category Collections\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.\n * The iteratee must complete with a boolean value as its result.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the `iteratee` functions have finished.\n * Result will be the first item in the array that passes the truth test\n * (iteratee) or the value `undefined` if none passed. Invoked with\n * (err, result).\n */\nvar detectLimit = doParallelLimit(_createTester(identity, _findGetResult));\n\n/**\n * The same as [`detect`]{@link module:Collections.detect} but runs only a single async operation at a time.\n *\n * @name detectSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.detect]{@link module:Collections.detect}\n * @alias findSeries\n * @category Collections\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.\n * The iteratee must complete with a boolean value as its result.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the `iteratee` functions have finished.\n * Result will be the first item in the array that passes the truth test\n * (iteratee) or the value `undefined` if none passed. Invoked with\n * (err, result).\n */\nvar detectSeries = doLimit(detectLimit, 1);\n\nfunction consoleFunc(name) {\n return function (fn/*, ...args*/) {\n var args = slice(arguments, 1);\n args.push(function (err/*, ...args*/) {\n var args = slice(arguments, 1);\n if (typeof console === 'object') {\n if (err) {\n if (console.error) {\n console.error(err);\n }\n } else if (console[name]) {\n arrayEach(args, function (x) {\n console[name](x);\n });\n }\n }\n });\n wrapAsync(fn).apply(null, args);\n };\n}\n\n/**\n * Logs the result of an [`async` function]{@link AsyncFunction} to the\n * `console` using `console.dir` to display the properties of the resulting object.\n * Only works in Node.js or in browsers that support `console.dir` and\n * `console.error` (such as FF and Chrome).\n * If multiple arguments are returned from the async function,\n * `console.dir` is called on each argument in order.\n *\n * @name dir\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} function - The function you want to eventually apply\n * all arguments to.\n * @param {...*} arguments... - Any number of arguments to apply to the function.\n * @example\n *\n * // in a module\n * var hello = function(name, callback) {\n * setTimeout(function() {\n * callback(null, {hello: name});\n * }, 1000);\n * };\n *\n * // in the node repl\n * node> async.dir(hello, 'world');\n * {hello: 'world'}\n */\nvar dir = consoleFunc('dir');\n\n/**\n * The post-check version of [`during`]{@link module:ControlFlow.during}. To reflect the difference in\n * the order of operations, the arguments `test` and `fn` are switched.\n *\n * Also a version of [`doWhilst`]{@link module:ControlFlow.doWhilst} with asynchronous `test` function.\n * @name doDuring\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.during]{@link module:ControlFlow.during}\n * @category Control Flow\n * @param {AsyncFunction} fn - An async function which is called each time\n * `test` passes. Invoked with (callback).\n * @param {AsyncFunction} test - asynchronous truth test to perform before each\n * execution of `fn`. Invoked with (...args, callback), where `...args` are the\n * non-error args from the previous callback of `fn`.\n * @param {Function} [callback] - A callback which is called after the test\n * function has failed and repeated execution of `fn` has stopped. `callback`\n * will be passed an error if one occurred, otherwise `null`.\n */\nfunction doDuring(fn, test, callback) {\n callback = onlyOnce(callback || noop);\n var _fn = wrapAsync(fn);\n var _test = wrapAsync(test);\n\n function next(err/*, ...args*/) {\n if (err) return callback(err);\n var args = slice(arguments, 1);\n args.push(check);\n _test.apply(this, args);\n }\n\n function check(err, truth) {\n if (err) return callback(err);\n if (!truth) return callback(null);\n _fn(next);\n }\n\n check(null, true);\n\n}\n\n/**\n * The post-check version of [`whilst`]{@link module:ControlFlow.whilst}. To reflect the difference in\n * the order of operations, the arguments `test` and `iteratee` are switched.\n *\n * `doWhilst` is to `whilst` as `do while` is to `while` in plain JavaScript.\n *\n * @name doWhilst\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.whilst]{@link module:ControlFlow.whilst}\n * @category Control Flow\n * @param {AsyncFunction} iteratee - A function which is called each time `test`\n * passes. Invoked with (callback).\n * @param {Function} test - synchronous truth test to perform after each\n * execution of `iteratee`. Invoked with any non-error callback results of\n * `iteratee`.\n * @param {Function} [callback] - A callback which is called after the test\n * function has failed and repeated execution of `iteratee` has stopped.\n * `callback` will be passed an error and any arguments passed to the final\n * `iteratee`'s callback. Invoked with (err, [results]);\n */\nfunction doWhilst(iteratee, test, callback) {\n callback = onlyOnce(callback || noop);\n var _iteratee = wrapAsync(iteratee);\n var next = function(err/*, ...args*/) {\n if (err) return callback(err);\n var args = slice(arguments, 1);\n if (test.apply(this, args)) return _iteratee(next);\n callback.apply(null, [null].concat(args));\n };\n _iteratee(next);\n}\n\n/**\n * Like ['doWhilst']{@link module:ControlFlow.doWhilst}, except the `test` is inverted. Note the\n * argument ordering differs from `until`.\n *\n * @name doUntil\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.doWhilst]{@link module:ControlFlow.doWhilst}\n * @category Control Flow\n * @param {AsyncFunction} iteratee - An async function which is called each time\n * `test` fails. Invoked with (callback).\n * @param {Function} test - synchronous truth test to perform after each\n * execution of `iteratee`. Invoked with any non-error callback results of\n * `iteratee`.\n * @param {Function} [callback] - A callback which is called after the test\n * function has passed and repeated execution of `iteratee` has stopped. `callback`\n * will be passed an error and any arguments passed to the final `iteratee`'s\n * callback. Invoked with (err, [results]);\n */\nfunction doUntil(iteratee, test, callback) {\n doWhilst(iteratee, function() {\n return !test.apply(this, arguments);\n }, callback);\n}\n\n/**\n * Like [`whilst`]{@link module:ControlFlow.whilst}, except the `test` is an asynchronous function that\n * is passed a callback in the form of `function (err, truth)`. If error is\n * passed to `test` or `fn`, the main callback is immediately called with the\n * value of the error.\n *\n * @name during\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.whilst]{@link module:ControlFlow.whilst}\n * @category Control Flow\n * @param {AsyncFunction} test - asynchronous truth test to perform before each\n * execution of `fn`. Invoked with (callback).\n * @param {AsyncFunction} fn - An async function which is called each time\n * `test` passes. Invoked with (callback).\n * @param {Function} [callback] - A callback which is called after the test\n * function has failed and repeated execution of `fn` has stopped. `callback`\n * will be passed an error, if one occurred, otherwise `null`.\n * @example\n *\n * var count = 0;\n *\n * async.during(\n * function (callback) {\n * return callback(null, count < 5);\n * },\n * function (callback) {\n * count++;\n * setTimeout(callback, 1000);\n * },\n * function (err) {\n * // 5 seconds have passed\n * }\n * );\n */\nfunction during(test, fn, callback) {\n callback = onlyOnce(callback || noop);\n var _fn = wrapAsync(fn);\n var _test = wrapAsync(test);\n\n function next(err) {\n if (err) return callback(err);\n _test(check);\n }\n\n function check(err, truth) {\n if (err) return callback(err);\n if (!truth) return callback(null);\n _fn(next);\n }\n\n _test(check);\n}\n\nfunction _withoutIndex(iteratee) {\n return function (value, index, callback) {\n return iteratee(value, callback);\n };\n}\n\n/**\n * Applies the function `iteratee` to each item in `coll`, in parallel.\n * The `iteratee` is called with an item from the list, and a callback for when\n * it has finished. If the `iteratee` passes an error to its `callback`, the\n * main `callback` (for the `each` function) is immediately called with the\n * error.\n *\n * Note, that since this function applies `iteratee` to each item in parallel,\n * there is no guarantee that the iteratee functions will complete in order.\n *\n * @name each\n * @static\n * @memberOf module:Collections\n * @method\n * @alias forEach\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to\n * each item in `coll`. Invoked with (item, callback).\n * The array index is not passed to the iteratee.\n * If you need the index, use `eachOf`.\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @example\n *\n * // assuming openFiles is an array of file names and saveFile is a function\n * // to save the modified contents of that file:\n *\n * async.each(openFiles, saveFile, function(err){\n * // if any of the saves produced an error, err would equal that error\n * });\n *\n * // assuming openFiles is an array of file names\n * async.each(openFiles, function(file, callback) {\n *\n * // Perform operation on file here.\n * console.log('Processing file ' + file);\n *\n * if( file.length > 32 ) {\n * console.log('This file name is too long');\n * callback('File name too long');\n * } else {\n * // Do work to process file here\n * console.log('File processed');\n * callback();\n * }\n * }, function(err) {\n * // if any of the file processing produced an error, err would equal that error\n * if( err ) {\n * // One of the iterations produced an error.\n * // All processing will now stop.\n * console.log('A file failed to process');\n * } else {\n * console.log('All files have been processed successfully');\n * }\n * });\n */\nfunction eachLimit(coll, iteratee, callback) {\n eachOf(coll, _withoutIndex(wrapAsync(iteratee)), callback);\n}\n\n/**\n * The same as [`each`]{@link module:Collections.each} but runs a maximum of `limit` async operations at a time.\n *\n * @name eachLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.each]{@link module:Collections.each}\n * @alias forEachLimit\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The array index is not passed to the iteratee.\n * If you need the index, use `eachOfLimit`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n */\nfunction eachLimit$1(coll, limit, iteratee, callback) {\n _eachOfLimit(limit)(coll, _withoutIndex(wrapAsync(iteratee)), callback);\n}\n\n/**\n * The same as [`each`]{@link module:Collections.each} but runs only a single async operation at a time.\n *\n * @name eachSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.each]{@link module:Collections.each}\n * @alias forEachSeries\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each\n * item in `coll`.\n * The array index is not passed to the iteratee.\n * If you need the index, use `eachOfSeries`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n */\nvar eachSeries = doLimit(eachLimit$1, 1);\n\n/**\n * Wrap an async function and ensure it calls its callback on a later tick of\n * the event loop. If the function already calls its callback on a next tick,\n * no extra deferral is added. This is useful for preventing stack overflows\n * (`RangeError: Maximum call stack size exceeded`) and generally keeping\n * [Zalgo](http://blog.izs.me/post/59142742143/designing-apis-for-asynchrony)\n * contained. ES2017 `async` functions are returned as-is -- they are immune\n * to Zalgo's corrupting influences, as they always resolve on a later tick.\n *\n * @name ensureAsync\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} fn - an async function, one that expects a node-style\n * callback as its last argument.\n * @returns {AsyncFunction} Returns a wrapped function with the exact same call\n * signature as the function passed in.\n * @example\n *\n * function sometimesAsync(arg, callback) {\n * if (cache[arg]) {\n * return callback(null, cache[arg]); // this would be synchronous!!\n * } else {\n * doSomeIO(arg, callback); // this IO would be asynchronous\n * }\n * }\n *\n * // this has a risk of stack overflows if many results are cached in a row\n * async.mapSeries(args, sometimesAsync, done);\n *\n * // this will defer sometimesAsync's callback if necessary,\n * // preventing stack overflows\n * async.mapSeries(args, async.ensureAsync(sometimesAsync), done);\n */\nfunction ensureAsync(fn) {\n if (isAsync(fn)) return fn;\n return initialParams(function (args, callback) {\n var sync = true;\n args.push(function () {\n var innerArgs = arguments;\n if (sync) {\n setImmediate$1(function () {\n callback.apply(null, innerArgs);\n });\n } else {\n callback.apply(null, innerArgs);\n }\n });\n fn.apply(this, args);\n sync = false;\n });\n}\n\nfunction notId(v) {\n return !v;\n}\n\n/**\n * Returns `true` if every element in `coll` satisfies an async test. If any\n * iteratee call returns `false`, the main `callback` is immediately called.\n *\n * @name every\n * @static\n * @memberOf module:Collections\n * @method\n * @alias all\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collection in parallel.\n * The iteratee must complete with a boolean result value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result will be either `true` or `false`\n * depending on the values of the async tests. Invoked with (err, result).\n * @example\n *\n * async.every(['file1','file2','file3'], function(filePath, callback) {\n * fs.access(filePath, function(err) {\n * callback(null, !err)\n * });\n * }, function(err, result) {\n * // if result is true then every file exists\n * });\n */\nvar every = doParallel(_createTester(notId, notId));\n\n/**\n * The same as [`every`]{@link module:Collections.every} but runs a maximum of `limit` async operations at a time.\n *\n * @name everyLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.every]{@link module:Collections.every}\n * @alias allLimit\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collection in parallel.\n * The iteratee must complete with a boolean result value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result will be either `true` or `false`\n * depending on the values of the async tests. Invoked with (err, result).\n */\nvar everyLimit = doParallelLimit(_createTester(notId, notId));\n\n/**\n * The same as [`every`]{@link module:Collections.every} but runs only a single async operation at a time.\n *\n * @name everySeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.every]{@link module:Collections.every}\n * @alias allSeries\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collection in series.\n * The iteratee must complete with a boolean result value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result will be either `true` or `false`\n * depending on the values of the async tests. Invoked with (err, result).\n */\nvar everySeries = doLimit(everyLimit, 1);\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\nfunction filterArray(eachfn, arr, iteratee, callback) {\n var truthValues = new Array(arr.length);\n eachfn(arr, function (x, index, callback) {\n iteratee(x, function (err, v) {\n truthValues[index] = !!v;\n callback(err);\n });\n }, function (err) {\n if (err) return callback(err);\n var results = [];\n for (var i = 0; i < arr.length; i++) {\n if (truthValues[i]) results.push(arr[i]);\n }\n callback(null, results);\n });\n}\n\nfunction filterGeneric(eachfn, coll, iteratee, callback) {\n var results = [];\n eachfn(coll, function (x, index, callback) {\n iteratee(x, function (err, v) {\n if (err) {\n callback(err);\n } else {\n if (v) {\n results.push({index: index, value: x});\n }\n callback();\n }\n });\n }, function (err) {\n if (err) {\n callback(err);\n } else {\n callback(null, arrayMap(results.sort(function (a, b) {\n return a.index - b.index;\n }), baseProperty('value')));\n }\n });\n}\n\nfunction _filter(eachfn, coll, iteratee, callback) {\n var filter = isArrayLike(coll) ? filterArray : filterGeneric;\n filter(eachfn, coll, wrapAsync(iteratee), callback || noop);\n}\n\n/**\n * Returns a new array of all the values in `coll` which pass an async truth\n * test. This operation is performed in parallel, but the results array will be\n * in the same order as the original.\n *\n * @name filter\n * @static\n * @memberOf module:Collections\n * @method\n * @alias select\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {Function} iteratee - A truth test to apply to each item in `coll`.\n * The `iteratee` is passed a `callback(err, truthValue)`, which must be called\n * with a boolean argument once it has completed. Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n * @example\n *\n * async.filter(['file1','file2','file3'], function(filePath, callback) {\n * fs.access(filePath, function(err) {\n * callback(null, !err)\n * });\n * }, function(err, results) {\n * // results now equals an array of the existing files\n * });\n */\nvar filter = doParallel(_filter);\n\n/**\n * The same as [`filter`]{@link module:Collections.filter} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name filterLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.filter]{@link module:Collections.filter}\n * @alias selectLimit\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {Function} iteratee - A truth test to apply to each item in `coll`.\n * The `iteratee` is passed a `callback(err, truthValue)`, which must be called\n * with a boolean argument once it has completed. Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n */\nvar filterLimit = doParallelLimit(_filter);\n\n/**\n * The same as [`filter`]{@link module:Collections.filter} but runs only a single async operation at a time.\n *\n * @name filterSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.filter]{@link module:Collections.filter}\n * @alias selectSeries\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {Function} iteratee - A truth test to apply to each item in `coll`.\n * The `iteratee` is passed a `callback(err, truthValue)`, which must be called\n * with a boolean argument once it has completed. Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results)\n */\nvar filterSeries = doLimit(filterLimit, 1);\n\n/**\n * Calls the asynchronous function `fn` with a callback parameter that allows it\n * to call itself again, in series, indefinitely.\n\n * If an error is passed to the callback then `errback` is called with the\n * error, and execution stops, otherwise it will never be called.\n *\n * @name forever\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {AsyncFunction} fn - an async function to call repeatedly.\n * Invoked with (next).\n * @param {Function} [errback] - when `fn` passes an error to it's callback,\n * this function will be called, and execution stops. Invoked with (err).\n * @example\n *\n * async.forever(\n * function(next) {\n * // next is suitable for passing to things that need a callback(err [, whatever]);\n * // it will result in this function being called again.\n * },\n * function(err) {\n * // if next is called with a value in its first parameter, it will appear\n * // in here as 'err', and execution will stop.\n * }\n * );\n */\nfunction forever(fn, errback) {\n var done = onlyOnce(errback || noop);\n var task = wrapAsync(ensureAsync(fn));\n\n function next(err) {\n if (err) return done(err);\n task(next);\n }\n next();\n}\n\n/**\n * The same as [`groupBy`]{@link module:Collections.groupBy} but runs a maximum of `limit` async operations at a time.\n *\n * @name groupByLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.groupBy]{@link module:Collections.groupBy}\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with a `key` to group the value under.\n * Invoked with (value, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Result is an `Object` whoses\n * properties are arrays of values which returned the corresponding key.\n */\nvar groupByLimit = function(coll, limit, iteratee, callback) {\n callback = callback || noop;\n var _iteratee = wrapAsync(iteratee);\n mapLimit(coll, limit, function(val, callback) {\n _iteratee(val, function(err, key) {\n if (err) return callback(err);\n return callback(null, {key: key, val: val});\n });\n }, function(err, mapResults) {\n var result = {};\n // from MDN, handle object having an `hasOwnProperty` prop\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n\n for (var i = 0; i < mapResults.length; i++) {\n if (mapResults[i]) {\n var key = mapResults[i].key;\n var val = mapResults[i].val;\n\n if (hasOwnProperty.call(result, key)) {\n result[key].push(val);\n } else {\n result[key] = [val];\n }\n }\n }\n\n return callback(err, result);\n });\n};\n\n/**\n * Returns a new object, where each value corresponds to an array of items, from\n * `coll`, that returned the corresponding key. That is, the keys of the object\n * correspond to the values passed to the `iteratee` callback.\n *\n * Note: Since this function applies the `iteratee` to each item in parallel,\n * there is no guarantee that the `iteratee` functions will complete in order.\n * However, the values for each key in the `result` will be in the same order as\n * the original `coll`. For Objects, the values will roughly be in the order of\n * the original Objects' keys (but this can vary across JavaScript engines).\n *\n * @name groupBy\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with a `key` to group the value under.\n * Invoked with (value, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Result is an `Object` whoses\n * properties are arrays of values which returned the corresponding key.\n * @example\n *\n * async.groupBy(['userId1', 'userId2', 'userId3'], function(userId, callback) {\n * db.findById(userId, function(err, user) {\n * if (err) return callback(err);\n * return callback(null, user.age);\n * });\n * }, function(err, result) {\n * // result is object containing the userIds grouped by age\n * // e.g. { 30: ['userId1', 'userId3'], 42: ['userId2']};\n * });\n */\nvar groupBy = doLimit(groupByLimit, Infinity);\n\n/**\n * The same as [`groupBy`]{@link module:Collections.groupBy} but runs only a single async operation at a time.\n *\n * @name groupBySeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.groupBy]{@link module:Collections.groupBy}\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with a `key` to group the value under.\n * Invoked with (value, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Result is an `Object` whoses\n * properties are arrays of values which returned the corresponding key.\n */\nvar groupBySeries = doLimit(groupByLimit, 1);\n\n/**\n * Logs the result of an `async` function to the `console`. Only works in\n * Node.js or in browsers that support `console.log` and `console.error` (such\n * as FF and Chrome). If multiple arguments are returned from the async\n * function, `console.log` is called on each argument in order.\n *\n * @name log\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} function - The function you want to eventually apply\n * all arguments to.\n * @param {...*} arguments... - Any number of arguments to apply to the function.\n * @example\n *\n * // in a module\n * var hello = function(name, callback) {\n * setTimeout(function() {\n * callback(null, 'hello ' + name);\n * }, 1000);\n * };\n *\n * // in the node repl\n * node> async.log(hello, 'world');\n * 'hello world'\n */\nvar log = consoleFunc('log');\n\n/**\n * The same as [`mapValues`]{@link module:Collections.mapValues} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name mapValuesLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.mapValues]{@link module:Collections.mapValues}\n * @category Collection\n * @param {Object} obj - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - A function to apply to each value and key\n * in `coll`.\n * The iteratee should complete with the transformed value as its result.\n * Invoked with (value, key, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. `result` is a new object consisting\n * of each key from `obj`, with each transformed value on the right-hand side.\n * Invoked with (err, result).\n */\nfunction mapValuesLimit(obj, limit, iteratee, callback) {\n callback = once(callback || noop);\n var newObj = {};\n var _iteratee = wrapAsync(iteratee);\n eachOfLimit(obj, limit, function(val, key, next) {\n _iteratee(val, key, function (err, result) {\n if (err) return next(err);\n newObj[key] = result;\n next();\n });\n }, function (err) {\n callback(err, newObj);\n });\n}\n\n/**\n * A relative of [`map`]{@link module:Collections.map}, designed for use with objects.\n *\n * Produces a new Object by mapping each value of `obj` through the `iteratee`\n * function. The `iteratee` is called each `value` and `key` from `obj` and a\n * callback for when it has finished processing. Each of these callbacks takes\n * two arguments: an `error`, and the transformed item from `obj`. If `iteratee`\n * passes an error to its callback, the main `callback` (for the `mapValues`\n * function) is immediately called with the error.\n *\n * Note, the order of the keys in the result is not guaranteed. The keys will\n * be roughly in the order they complete, (but this is very engine-specific)\n *\n * @name mapValues\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Object} obj - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each value and key\n * in `coll`.\n * The iteratee should complete with the transformed value as its result.\n * Invoked with (value, key, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. `result` is a new object consisting\n * of each key from `obj`, with each transformed value on the right-hand side.\n * Invoked with (err, result).\n * @example\n *\n * async.mapValues({\n * f1: 'file1',\n * f2: 'file2',\n * f3: 'file3'\n * }, function (file, key, callback) {\n * fs.stat(file, callback);\n * }, function(err, result) {\n * // result is now a map of stats for each file, e.g.\n * // {\n * // f1: [stats for file1],\n * // f2: [stats for file2],\n * // f3: [stats for file3]\n * // }\n * });\n */\n\nvar mapValues = doLimit(mapValuesLimit, Infinity);\n\n/**\n * The same as [`mapValues`]{@link module:Collections.mapValues} but runs only a single async operation at a time.\n *\n * @name mapValuesSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.mapValues]{@link module:Collections.mapValues}\n * @category Collection\n * @param {Object} obj - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each value and key\n * in `coll`.\n * The iteratee should complete with the transformed value as its result.\n * Invoked with (value, key, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. `result` is a new object consisting\n * of each key from `obj`, with each transformed value on the right-hand side.\n * Invoked with (err, result).\n */\nvar mapValuesSeries = doLimit(mapValuesLimit, 1);\n\nfunction has(obj, key) {\n return key in obj;\n}\n\n/**\n * Caches the results of an async function. When creating a hash to store\n * function results against, the callback is omitted from the hash and an\n * optional hash function can be used.\n *\n * If no hash function is specified, the first argument is used as a hash key,\n * which may work reasonably if it is a string or a data type that converts to a\n * distinct string. Note that objects and arrays will not behave reasonably.\n * Neither will cases where the other arguments are significant. In such cases,\n * specify your own hash function.\n *\n * The cache of results is exposed as the `memo` property of the function\n * returned by `memoize`.\n *\n * @name memoize\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} fn - The async function to proxy and cache results from.\n * @param {Function} hasher - An optional function for generating a custom hash\n * for storing results. It has all the arguments applied to it apart from the\n * callback, and must be synchronous.\n * @returns {AsyncFunction} a memoized version of `fn`\n * @example\n *\n * var slow_fn = function(name, callback) {\n * // do something\n * callback(null, result);\n * };\n * var fn = async.memoize(slow_fn);\n *\n * // fn can now be used as if it were slow_fn\n * fn('some name', function() {\n * // callback\n * });\n */\nfunction memoize(fn, hasher) {\n var memo = Object.create(null);\n var queues = Object.create(null);\n hasher = hasher || identity;\n var _fn = wrapAsync(fn);\n var memoized = initialParams(function memoized(args, callback) {\n var key = hasher.apply(null, args);\n if (has(memo, key)) {\n setImmediate$1(function() {\n callback.apply(null, memo[key]);\n });\n } else if (has(queues, key)) {\n queues[key].push(callback);\n } else {\n queues[key] = [callback];\n _fn.apply(null, args.concat(function(/*args*/) {\n var args = slice(arguments);\n memo[key] = args;\n var q = queues[key];\n delete queues[key];\n for (var i = 0, l = q.length; i < l; i++) {\n q[i].apply(null, args);\n }\n }));\n }\n });\n memoized.memo = memo;\n memoized.unmemoized = fn;\n return memoized;\n}\n\n/**\n * Calls `callback` on a later loop around the event loop. In Node.js this just\n * calls `process.nextTick`. In the browser it will use `setImmediate` if\n * available, otherwise `setTimeout(callback, 0)`, which means other higher\n * priority events may precede the execution of `callback`.\n *\n * This is used internally for browser-compatibility purposes.\n *\n * @name nextTick\n * @static\n * @memberOf module:Utils\n * @method\n * @see [async.setImmediate]{@link module:Utils.setImmediate}\n * @category Util\n * @param {Function} callback - The function to call on a later loop around\n * the event loop. Invoked with (args...).\n * @param {...*} args... - any number of additional arguments to pass to the\n * callback on the next tick.\n * @example\n *\n * var call_order = [];\n * async.nextTick(function() {\n * call_order.push('two');\n * // call_order now equals ['one','two']\n * });\n * call_order.push('one');\n *\n * async.setImmediate(function (a, b, c) {\n * // a, b, and c equal 1, 2, and 3\n * }, 1, 2, 3);\n */\nvar _defer$1;\n\nif (hasNextTick) {\n _defer$1 = process.nextTick;\n} else if (hasSetImmediate) {\n _defer$1 = setImmediate;\n} else {\n _defer$1 = fallback;\n}\n\nvar nextTick = wrap(_defer$1);\n\nfunction _parallel(eachfn, tasks, callback) {\n callback = callback || noop;\n var results = isArrayLike(tasks) ? [] : {};\n\n eachfn(tasks, function (task, key, callback) {\n wrapAsync(task)(function (err, result) {\n if (arguments.length > 2) {\n result = slice(arguments, 1);\n }\n results[key] = result;\n callback(err);\n });\n }, function (err) {\n callback(err, results);\n });\n}\n\n/**\n * Run the `tasks` collection of functions in parallel, without waiting until\n * the previous function has completed. If any of the functions pass an error to\n * its callback, the main `callback` is immediately called with the value of the\n * error. Once the `tasks` have completed, the results are passed to the final\n * `callback` as an array.\n *\n * **Note:** `parallel` is about kicking-off I/O tasks in parallel, not about\n * parallel execution of code. If your tasks do not use any timers or perform\n * any I/O, they will actually be executed in series. Any synchronous setup\n * sections for each task will happen one after the other. JavaScript remains\n * single-threaded.\n *\n * **Hint:** Use [`reflect`]{@link module:Utils.reflect} to continue the\n * execution of other tasks when a task fails.\n *\n * It is also possible to use an object instead of an array. Each property will\n * be run as a function and the results will be passed to the final `callback`\n * as an object instead of an array. This can be a more readable way of handling\n * results from {@link async.parallel}.\n *\n * @name parallel\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|Object} tasks - A collection of\n * [async functions]{@link AsyncFunction} to run.\n * Each async function can complete with any number of optional `result` values.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed successfully. This function gets a results array\n * (or object) containing all the result arguments passed to the task callbacks.\n * Invoked with (err, results).\n *\n * @example\n * async.parallel([\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ],\n * // optional callback\n * function(err, results) {\n * // the results array will equal ['one','two'] even though\n * // the second function had a shorter timeout.\n * });\n *\n * // an example using an object instead of an array\n * async.parallel({\n * one: function(callback) {\n * setTimeout(function() {\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback) {\n * setTimeout(function() {\n * callback(null, 2);\n * }, 100);\n * }\n * }, function(err, results) {\n * // results is now equals to: {one: 1, two: 2}\n * });\n */\nfunction parallelLimit(tasks, callback) {\n _parallel(eachOf, tasks, callback);\n}\n\n/**\n * The same as [`parallel`]{@link module:ControlFlow.parallel} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name parallelLimit\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.parallel]{@link module:ControlFlow.parallel}\n * @category Control Flow\n * @param {Array|Iterable|Object} tasks - A collection of\n * [async functions]{@link AsyncFunction} to run.\n * Each async function can complete with any number of optional `result` values.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed successfully. This function gets a results array\n * (or object) containing all the result arguments passed to the task callbacks.\n * Invoked with (err, results).\n */\nfunction parallelLimit$1(tasks, limit, callback) {\n _parallel(_eachOfLimit(limit), tasks, callback);\n}\n\n/**\n * A queue of tasks for the worker function to complete.\n * @typedef {Object} QueueObject\n * @memberOf module:ControlFlow\n * @property {Function} length - a function returning the number of items\n * waiting to be processed. Invoke with `queue.length()`.\n * @property {boolean} started - a boolean indicating whether or not any\n * items have been pushed and processed by the queue.\n * @property {Function} running - a function returning the number of items\n * currently being processed. Invoke with `queue.running()`.\n * @property {Function} workersList - a function returning the array of items\n * currently being processed. Invoke with `queue.workersList()`.\n * @property {Function} idle - a function returning false if there are items\n * waiting or being processed, or true if not. Invoke with `queue.idle()`.\n * @property {number} concurrency - an integer for determining how many `worker`\n * functions should be run in parallel. This property can be changed after a\n * `queue` is created to alter the concurrency on-the-fly.\n * @property {Function} push - add a new task to the `queue`. Calls `callback`\n * once the `worker` has finished processing the task. Instead of a single task,\n * a `tasks` array can be submitted. The respective callback is used for every\n * task in the list. Invoke with `queue.push(task, [callback])`,\n * @property {Function} unshift - add a new task to the front of the `queue`.\n * Invoke with `queue.unshift(task, [callback])`.\n * @property {Function} remove - remove items from the queue that match a test\n * function. The test function will be passed an object with a `data` property,\n * and a `priority` property, if this is a\n * [priorityQueue]{@link module:ControlFlow.priorityQueue} object.\n * Invoked with `queue.remove(testFn)`, where `testFn` is of the form\n * `function ({data, priority}) {}` and returns a Boolean.\n * @property {Function} saturated - a callback that is called when the number of\n * running workers hits the `concurrency` limit, and further tasks will be\n * queued.\n * @property {Function} unsaturated - a callback that is called when the number\n * of running workers is less than the `concurrency` & `buffer` limits, and\n * further tasks will not be queued.\n * @property {number} buffer - A minimum threshold buffer in order to say that\n * the `queue` is `unsaturated`.\n * @property {Function} empty - a callback that is called when the last item\n * from the `queue` is given to a `worker`.\n * @property {Function} drain - a callback that is called when the last item\n * from the `queue` has returned from the `worker`.\n * @property {Function} error - a callback that is called when a task errors.\n * Has the signature `function(error, task)`.\n * @property {boolean} paused - a boolean for determining whether the queue is\n * in a paused state.\n * @property {Function} pause - a function that pauses the processing of tasks\n * until `resume()` is called. Invoke with `queue.pause()`.\n * @property {Function} resume - a function that resumes the processing of\n * queued tasks when the queue is paused. Invoke with `queue.resume()`.\n * @property {Function} kill - a function that removes the `drain` callback and\n * empties remaining tasks from the queue forcing it to go idle. No more tasks\n * should be pushed to the queue after calling this function. Invoke with `queue.kill()`.\n */\n\n/**\n * Creates a `queue` object with the specified `concurrency`. Tasks added to the\n * `queue` are processed in parallel (up to the `concurrency` limit). If all\n * `worker`s are in progress, the task is queued until one becomes available.\n * Once a `worker` completes a `task`, that `task`'s callback is called.\n *\n * @name queue\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {AsyncFunction} worker - An async function for processing a queued task.\n * If you want to handle errors from an individual task, pass a callback to\n * `q.push()`. Invoked with (task, callback).\n * @param {number} [concurrency=1] - An `integer` for determining how many\n * `worker` functions should be run in parallel. If omitted, the concurrency\n * defaults to `1`. If the concurrency is `0`, an error is thrown.\n * @returns {module:ControlFlow.QueueObject} A queue object to manage the tasks. Callbacks can\n * attached as certain properties to listen for specific events during the\n * lifecycle of the queue.\n * @example\n *\n * // create a queue object with concurrency 2\n * var q = async.queue(function(task, callback) {\n * console.log('hello ' + task.name);\n * callback();\n * }, 2);\n *\n * // assign a callback\n * q.drain = function() {\n * console.log('all items have been processed');\n * };\n *\n * // add some items to the queue\n * q.push({name: 'foo'}, function(err) {\n * console.log('finished processing foo');\n * });\n * q.push({name: 'bar'}, function (err) {\n * console.log('finished processing bar');\n * });\n *\n * // add some items to the queue (batch-wise)\n * q.push([{name: 'baz'},{name: 'bay'},{name: 'bax'}], function(err) {\n * console.log('finished processing item');\n * });\n *\n * // add some items to the front of the queue\n * q.unshift({name: 'bar'}, function (err) {\n * console.log('finished processing bar');\n * });\n */\nvar queue$1 = function (worker, concurrency) {\n var _worker = wrapAsync(worker);\n return queue(function (items, cb) {\n _worker(items[0], cb);\n }, concurrency, 1);\n};\n\n/**\n * The same as [async.queue]{@link module:ControlFlow.queue} only tasks are assigned a priority and\n * completed in ascending priority order.\n *\n * @name priorityQueue\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.queue]{@link module:ControlFlow.queue}\n * @category Control Flow\n * @param {AsyncFunction} worker - An async function for processing a queued task.\n * If you want to handle errors from an individual task, pass a callback to\n * `q.push()`.\n * Invoked with (task, callback).\n * @param {number} concurrency - An `integer` for determining how many `worker`\n * functions should be run in parallel. If omitted, the concurrency defaults to\n * `1`. If the concurrency is `0`, an error is thrown.\n * @returns {module:ControlFlow.QueueObject} A priorityQueue object to manage the tasks. There are two\n * differences between `queue` and `priorityQueue` objects:\n * * `push(task, priority, [callback])` - `priority` should be a number. If an\n * array of `tasks` is given, all tasks will be assigned the same priority.\n * * The `unshift` method was removed.\n */\nvar priorityQueue = function(worker, concurrency) {\n // Start with a normal queue\n var q = queue$1(worker, concurrency);\n\n // Override push to accept second parameter representing priority\n q.push = function(data, priority, callback) {\n if (callback == null) callback = noop;\n if (typeof callback !== 'function') {\n throw new Error('task callback must be a function');\n }\n q.started = true;\n if (!isArray(data)) {\n data = [data];\n }\n if (data.length === 0) {\n // call drain immediately if there are no tasks\n return setImmediate$1(function() {\n q.drain();\n });\n }\n\n priority = priority || 0;\n var nextNode = q._tasks.head;\n while (nextNode && priority >= nextNode.priority) {\n nextNode = nextNode.next;\n }\n\n for (var i = 0, l = data.length; i < l; i++) {\n var item = {\n data: data[i],\n priority: priority,\n callback: callback\n };\n\n if (nextNode) {\n q._tasks.insertBefore(nextNode, item);\n } else {\n q._tasks.push(item);\n }\n }\n setImmediate$1(q.process);\n };\n\n // Remove unshift function\n delete q.unshift;\n\n return q;\n};\n\n/**\n * Runs the `tasks` array of functions in parallel, without waiting until the\n * previous function has completed. Once any of the `tasks` complete or pass an\n * error to its callback, the main `callback` is immediately called. It's\n * equivalent to `Promise.race()`.\n *\n * @name race\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array} tasks - An array containing [async functions]{@link AsyncFunction}\n * to run. Each function can complete with an optional `result` value.\n * @param {Function} callback - A callback to run once any of the functions have\n * completed. This function gets an error or result from the first function that\n * completed. Invoked with (err, result).\n * @returns undefined\n * @example\n *\n * async.race([\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ],\n * // main callback\n * function(err, result) {\n * // the result will be equal to 'two' as it finishes earlier\n * });\n */\nfunction race(tasks, callback) {\n callback = once(callback || noop);\n if (!isArray(tasks)) return callback(new TypeError('First argument to race must be an array of functions'));\n if (!tasks.length) return callback();\n for (var i = 0, l = tasks.length; i < l; i++) {\n wrapAsync(tasks[i])(callback);\n }\n}\n\n/**\n * Same as [`reduce`]{@link module:Collections.reduce}, only operates on `array` in reverse order.\n *\n * @name reduceRight\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.reduce]{@link module:Collections.reduce}\n * @alias foldr\n * @category Collection\n * @param {Array} array - A collection to iterate over.\n * @param {*} memo - The initial state of the reduction.\n * @param {AsyncFunction} iteratee - A function applied to each item in the\n * array to produce the next step in the reduction.\n * The `iteratee` should complete with the next state of the reduction.\n * If the iteratee complete with an error, the reduction is stopped and the\n * main `callback` is immediately called with the error.\n * Invoked with (memo, item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result is the reduced value. Invoked with\n * (err, result).\n */\nfunction reduceRight (array, memo, iteratee, callback) {\n var reversed = slice(array).reverse();\n reduce(reversed, memo, iteratee, callback);\n}\n\n/**\n * Wraps the async function in another function that always completes with a\n * result object, even when it errors.\n *\n * The result object has either the property `error` or `value`.\n *\n * @name reflect\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} fn - The async function you want to wrap\n * @returns {Function} - A function that always passes null to it's callback as\n * the error. The second argument to the callback will be an `object` with\n * either an `error` or a `value` property.\n * @example\n *\n * async.parallel([\n * async.reflect(function(callback) {\n * // do some stuff ...\n * callback(null, 'one');\n * }),\n * async.reflect(function(callback) {\n * // do some more stuff but error ...\n * callback('bad stuff happened');\n * }),\n * async.reflect(function(callback) {\n * // do some more stuff ...\n * callback(null, 'two');\n * })\n * ],\n * // optional callback\n * function(err, results) {\n * // values\n * // results[0].value = 'one'\n * // results[1].error = 'bad stuff happened'\n * // results[2].value = 'two'\n * });\n */\nfunction reflect(fn) {\n var _fn = wrapAsync(fn);\n return initialParams(function reflectOn(args, reflectCallback) {\n args.push(function callback(error, cbArg) {\n if (error) {\n reflectCallback(null, { error: error });\n } else {\n var value;\n if (arguments.length <= 2) {\n value = cbArg;\n } else {\n value = slice(arguments, 1);\n }\n reflectCallback(null, { value: value });\n }\n });\n\n return _fn.apply(this, args);\n });\n}\n\n/**\n * A helper function that wraps an array or an object of functions with `reflect`.\n *\n * @name reflectAll\n * @static\n * @memberOf module:Utils\n * @method\n * @see [async.reflect]{@link module:Utils.reflect}\n * @category Util\n * @param {Array|Object|Iterable} tasks - The collection of\n * [async functions]{@link AsyncFunction} to wrap in `async.reflect`.\n * @returns {Array} Returns an array of async functions, each wrapped in\n * `async.reflect`\n * @example\n *\n * let tasks = [\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * // do some more stuff but error ...\n * callback(new Error('bad stuff happened'));\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ];\n *\n * async.parallel(async.reflectAll(tasks),\n * // optional callback\n * function(err, results) {\n * // values\n * // results[0].value = 'one'\n * // results[1].error = Error('bad stuff happened')\n * // results[2].value = 'two'\n * });\n *\n * // an example using an object instead of an array\n * let tasks = {\n * one: function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * two: function(callback) {\n * callback('two');\n * },\n * three: function(callback) {\n * setTimeout(function() {\n * callback(null, 'three');\n * }, 100);\n * }\n * };\n *\n * async.parallel(async.reflectAll(tasks),\n * // optional callback\n * function(err, results) {\n * // values\n * // results.one.value = 'one'\n * // results.two.error = 'two'\n * // results.three.value = 'three'\n * });\n */\nfunction reflectAll(tasks) {\n var results;\n if (isArray(tasks)) {\n results = arrayMap(tasks, reflect);\n } else {\n results = {};\n baseForOwn(tasks, function(task, key) {\n results[key] = reflect.call(this, task);\n });\n }\n return results;\n}\n\nfunction reject$1(eachfn, arr, iteratee, callback) {\n _filter(eachfn, arr, function(value, cb) {\n iteratee(value, function(err, v) {\n cb(err, !v);\n });\n }, callback);\n}\n\n/**\n * The opposite of [`filter`]{@link module:Collections.filter}. Removes values that pass an `async` truth test.\n *\n * @name reject\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.filter]{@link module:Collections.filter}\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {Function} iteratee - An async truth test to apply to each item in\n * `coll`.\n * The should complete with a boolean value as its `result`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n * @example\n *\n * async.reject(['file1','file2','file3'], function(filePath, callback) {\n * fs.access(filePath, function(err) {\n * callback(null, !err)\n * });\n * }, function(err, results) {\n * // results now equals an array of missing files\n * createFiles(results);\n * });\n */\nvar reject = doParallel(reject$1);\n\n/**\n * The same as [`reject`]{@link module:Collections.reject} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name rejectLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.reject]{@link module:Collections.reject}\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {Function} iteratee - An async truth test to apply to each item in\n * `coll`.\n * The should complete with a boolean value as its `result`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n */\nvar rejectLimit = doParallelLimit(reject$1);\n\n/**\n * The same as [`reject`]{@link module:Collections.reject} but runs only a single async operation at a time.\n *\n * @name rejectSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.reject]{@link module:Collections.reject}\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {Function} iteratee - An async truth test to apply to each item in\n * `coll`.\n * The should complete with a boolean value as its `result`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n */\nvar rejectSeries = doLimit(rejectLimit, 1);\n\n/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant$1(value) {\n return function() {\n return value;\n };\n}\n\n/**\n * Attempts to get a successful response from `task` no more than `times` times\n * before returning an error. If the task is successful, the `callback` will be\n * passed the result of the successful task. If all attempts fail, the callback\n * will be passed the error and result (if any) of the final attempt.\n *\n * @name retry\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @see [async.retryable]{@link module:ControlFlow.retryable}\n * @param {Object|number} [opts = {times: 5, interval: 0}| 5] - Can be either an\n * object with `times` and `interval` or a number.\n * * `times` - The number of attempts to make before giving up. The default\n * is `5`.\n * * `interval` - The time to wait between retries, in milliseconds. The\n * default is `0`. The interval may also be specified as a function of the\n * retry count (see example).\n * * `errorFilter` - An optional synchronous function that is invoked on\n * erroneous result. If it returns `true` the retry attempts will continue;\n * if the function returns `false` the retry flow is aborted with the current\n * attempt's error and result being returned to the final callback.\n * Invoked with (err).\n * * If `opts` is a number, the number specifies the number of times to retry,\n * with the default interval of `0`.\n * @param {AsyncFunction} task - An async function to retry.\n * Invoked with (callback).\n * @param {Function} [callback] - An optional callback which is called when the\n * task has succeeded, or after the final failed attempt. It receives the `err`\n * and `result` arguments of the last attempt at completing the `task`. Invoked\n * with (err, results).\n *\n * @example\n *\n * // The `retry` function can be used as a stand-alone control flow by passing\n * // a callback, as shown below:\n *\n * // try calling apiMethod 3 times\n * async.retry(3, apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // try calling apiMethod 3 times, waiting 200 ms between each retry\n * async.retry({times: 3, interval: 200}, apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // try calling apiMethod 10 times with exponential backoff\n * // (i.e. intervals of 100, 200, 400, 800, 1600, ... milliseconds)\n * async.retry({\n * times: 10,\n * interval: function(retryCount) {\n * return 50 * Math.pow(2, retryCount);\n * }\n * }, apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // try calling apiMethod the default 5 times no delay between each retry\n * async.retry(apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // try calling apiMethod only when error condition satisfies, all other\n * // errors will abort the retry control flow and return to final callback\n * async.retry({\n * errorFilter: function(err) {\n * return err.message === 'Temporary error'; // only retry on a specific error\n * }\n * }, apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // to retry individual methods that are not as reliable within other\n * // control flow functions, use the `retryable` wrapper:\n * async.auto({\n * users: api.getUsers.bind(api),\n * payments: async.retryable(3, api.getPayments.bind(api))\n * }, function(err, results) {\n * // do something with the results\n * });\n *\n */\nfunction retry(opts, task, callback) {\n var DEFAULT_TIMES = 5;\n var DEFAULT_INTERVAL = 0;\n\n var options = {\n times: DEFAULT_TIMES,\n intervalFunc: constant$1(DEFAULT_INTERVAL)\n };\n\n function parseTimes(acc, t) {\n if (typeof t === 'object') {\n acc.times = +t.times || DEFAULT_TIMES;\n\n acc.intervalFunc = typeof t.interval === 'function' ?\n t.interval :\n constant$1(+t.interval || DEFAULT_INTERVAL);\n\n acc.errorFilter = t.errorFilter;\n } else if (typeof t === 'number' || typeof t === 'string') {\n acc.times = +t || DEFAULT_TIMES;\n } else {\n throw new Error(\"Invalid arguments for async.retry\");\n }\n }\n\n if (arguments.length < 3 && typeof opts === 'function') {\n callback = task || noop;\n task = opts;\n } else {\n parseTimes(options, opts);\n callback = callback || noop;\n }\n\n if (typeof task !== 'function') {\n throw new Error(\"Invalid arguments for async.retry\");\n }\n\n var _task = wrapAsync(task);\n\n var attempt = 1;\n function retryAttempt() {\n _task(function(err) {\n if (err && attempt++ < options.times &&\n (typeof options.errorFilter != 'function' ||\n options.errorFilter(err))) {\n setTimeout(retryAttempt, options.intervalFunc(attempt));\n } else {\n callback.apply(null, arguments);\n }\n });\n }\n\n retryAttempt();\n}\n\n/**\n * A close relative of [`retry`]{@link module:ControlFlow.retry}. This method\n * wraps a task and makes it retryable, rather than immediately calling it\n * with retries.\n *\n * @name retryable\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.retry]{@link module:ControlFlow.retry}\n * @category Control Flow\n * @param {Object|number} [opts = {times: 5, interval: 0}| 5] - optional\n * options, exactly the same as from `retry`\n * @param {AsyncFunction} task - the asynchronous function to wrap.\n * This function will be passed any arguments passed to the returned wrapper.\n * Invoked with (...args, callback).\n * @returns {AsyncFunction} The wrapped function, which when invoked, will\n * retry on an error, based on the parameters specified in `opts`.\n * This function will accept the same parameters as `task`.\n * @example\n *\n * async.auto({\n * dep1: async.retryable(3, getFromFlakyService),\n * process: [\"dep1\", async.retryable(3, function (results, cb) {\n * maybeProcessData(results.dep1, cb);\n * })]\n * }, callback);\n */\nvar retryable = function (opts, task) {\n if (!task) {\n task = opts;\n opts = null;\n }\n var _task = wrapAsync(task);\n return initialParams(function (args, callback) {\n function taskFn(cb) {\n _task.apply(null, args.concat(cb));\n }\n\n if (opts) retry(opts, taskFn, callback);\n else retry(taskFn, callback);\n\n });\n};\n\n/**\n * Run the functions in the `tasks` collection in series, each one running once\n * the previous function has completed. If any functions in the series pass an\n * error to its callback, no more functions are run, and `callback` is\n * immediately called with the value of the error. Otherwise, `callback`\n * receives an array of results when `tasks` have completed.\n *\n * It is also possible to use an object instead of an array. Each property will\n * be run as a function, and the results will be passed to the final `callback`\n * as an object instead of an array. This can be a more readable way of handling\n * results from {@link async.series}.\n *\n * **Note** that while many implementations preserve the order of object\n * properties, the [ECMAScript Language Specification](http://www.ecma-international.org/ecma-262/5.1/#sec-8.6)\n * explicitly states that\n *\n * > The mechanics and order of enumerating the properties is not specified.\n *\n * So if you rely on the order in which your series of functions are executed,\n * and want this to work on all platforms, consider using an array.\n *\n * @name series\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|Object} tasks - A collection containing\n * [async functions]{@link AsyncFunction} to run in series.\n * Each function can complete with any number of optional `result` values.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed. This function gets a results array (or object)\n * containing all the result arguments passed to the `task` callbacks. Invoked\n * with (err, result).\n * @example\n * async.series([\n * function(callback) {\n * // do some stuff ...\n * callback(null, 'one');\n * },\n * function(callback) {\n * // do some more stuff ...\n * callback(null, 'two');\n * }\n * ],\n * // optional callback\n * function(err, results) {\n * // results is now equal to ['one', 'two']\n * });\n *\n * async.series({\n * one: function(callback) {\n * setTimeout(function() {\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback){\n * setTimeout(function() {\n * callback(null, 2);\n * }, 100);\n * }\n * }, function(err, results) {\n * // results is now equal to: {one: 1, two: 2}\n * });\n */\nfunction series(tasks, callback) {\n _parallel(eachOfSeries, tasks, callback);\n}\n\n/**\n * Returns `true` if at least one element in the `coll` satisfies an async test.\n * If any iteratee call returns `true`, the main `callback` is immediately\n * called.\n *\n * @name some\n * @static\n * @memberOf module:Collections\n * @method\n * @alias any\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collections in parallel.\n * The iteratee should complete with a boolean `result` value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the iteratee functions have finished.\n * Result will be either `true` or `false` depending on the values of the async\n * tests. Invoked with (err, result).\n * @example\n *\n * async.some(['file1','file2','file3'], function(filePath, callback) {\n * fs.access(filePath, function(err) {\n * callback(null, !err)\n * });\n * }, function(err, result) {\n * // if result is true then at least one of the files exists\n * });\n */\nvar some = doParallel(_createTester(Boolean, identity));\n\n/**\n * The same as [`some`]{@link module:Collections.some} but runs a maximum of `limit` async operations at a time.\n *\n * @name someLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.some]{@link module:Collections.some}\n * @alias anyLimit\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collections in parallel.\n * The iteratee should complete with a boolean `result` value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the iteratee functions have finished.\n * Result will be either `true` or `false` depending on the values of the async\n * tests. Invoked with (err, result).\n */\nvar someLimit = doParallelLimit(_createTester(Boolean, identity));\n\n/**\n * The same as [`some`]{@link module:Collections.some} but runs only a single async operation at a time.\n *\n * @name someSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.some]{@link module:Collections.some}\n * @alias anySeries\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collections in series.\n * The iteratee should complete with a boolean `result` value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the iteratee functions have finished.\n * Result will be either `true` or `false` depending on the values of the async\n * tests. Invoked with (err, result).\n */\nvar someSeries = doLimit(someLimit, 1);\n\n/**\n * Sorts a list by the results of running each `coll` value through an async\n * `iteratee`.\n *\n * @name sortBy\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with a value to use as the sort criteria as\n * its `result`.\n * Invoked with (item, callback).\n * @param {Function} callback - A callback which is called after all the\n * `iteratee` functions have finished, or an error occurs. Results is the items\n * from the original `coll` sorted by the values returned by the `iteratee`\n * calls. Invoked with (err, results).\n * @example\n *\n * async.sortBy(['file1','file2','file3'], function(file, callback) {\n * fs.stat(file, function(err, stats) {\n * callback(err, stats.mtime);\n * });\n * }, function(err, results) {\n * // results is now the original array of files sorted by\n * // modified date\n * });\n *\n * // By modifying the callback parameter the\n * // sorting order can be influenced:\n *\n * // ascending order\n * async.sortBy([1,9,3,5], function(x, callback) {\n * callback(null, x);\n * }, function(err,result) {\n * // result callback\n * });\n *\n * // descending order\n * async.sortBy([1,9,3,5], function(x, callback) {\n * callback(null, x*-1); //<- x*-1 instead of x, turns the order around\n * }, function(err,result) {\n * // result callback\n * });\n */\nfunction sortBy (coll, iteratee, callback) {\n var _iteratee = wrapAsync(iteratee);\n map(coll, function (x, callback) {\n _iteratee(x, function (err, criteria) {\n if (err) return callback(err);\n callback(null, {value: x, criteria: criteria});\n });\n }, function (err, results) {\n if (err) return callback(err);\n callback(null, arrayMap(results.sort(comparator), baseProperty('value')));\n });\n\n function comparator(left, right) {\n var a = left.criteria, b = right.criteria;\n return a < b ? -1 : a > b ? 1 : 0;\n }\n}\n\n/**\n * Sets a time limit on an asynchronous function. If the function does not call\n * its callback within the specified milliseconds, it will be called with a\n * timeout error. The code property for the error object will be `'ETIMEDOUT'`.\n *\n * @name timeout\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} asyncFn - The async function to limit in time.\n * @param {number} milliseconds - The specified time limit.\n * @param {*} [info] - Any variable you want attached (`string`, `object`, etc)\n * to timeout Error for more information..\n * @returns {AsyncFunction} Returns a wrapped function that can be used with any\n * of the control flow functions.\n * Invoke this function with the same parameters as you would `asyncFunc`.\n * @example\n *\n * function myFunction(foo, callback) {\n * doAsyncTask(foo, function(err, data) {\n * // handle errors\n * if (err) return callback(err);\n *\n * // do some stuff ...\n *\n * // return processed data\n * return callback(null, data);\n * });\n * }\n *\n * var wrapped = async.timeout(myFunction, 1000);\n *\n * // call `wrapped` as you would `myFunction`\n * wrapped({ bar: 'bar' }, function(err, data) {\n * // if `myFunction` takes < 1000 ms to execute, `err`\n * // and `data` will have their expected values\n *\n * // else `err` will be an Error with the code 'ETIMEDOUT'\n * });\n */\nfunction timeout(asyncFn, milliseconds, info) {\n var fn = wrapAsync(asyncFn);\n\n return initialParams(function (args, callback) {\n var timedOut = false;\n var timer;\n\n function timeoutCallback() {\n var name = asyncFn.name || 'anonymous';\n var error = new Error('Callback function \"' + name + '\" timed out.');\n error.code = 'ETIMEDOUT';\n if (info) {\n error.info = info;\n }\n timedOut = true;\n callback(error);\n }\n\n args.push(function () {\n if (!timedOut) {\n callback.apply(null, arguments);\n clearTimeout(timer);\n }\n });\n\n // setup timer and call original function\n timer = setTimeout(timeoutCallback, milliseconds);\n fn.apply(null, args);\n });\n}\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeCeil = Math.ceil;\nvar nativeMax = Math.max;\n\n/**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\nfunction baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n}\n\n/**\n * The same as [times]{@link module:ControlFlow.times} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name timesLimit\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.times]{@link module:ControlFlow.times}\n * @category Control Flow\n * @param {number} count - The number of times to run the function.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - The async function to call `n` times.\n * Invoked with the iteration index and a callback: (n, next).\n * @param {Function} callback - see [async.map]{@link module:Collections.map}.\n */\nfunction timeLimit(count, limit, iteratee, callback) {\n var _iteratee = wrapAsync(iteratee);\n mapLimit(baseRange(0, count, 1), limit, _iteratee, callback);\n}\n\n/**\n * Calls the `iteratee` function `n` times, and accumulates results in the same\n * manner you would use with [map]{@link module:Collections.map}.\n *\n * @name times\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.map]{@link module:Collections.map}\n * @category Control Flow\n * @param {number} n - The number of times to run the function.\n * @param {AsyncFunction} iteratee - The async function to call `n` times.\n * Invoked with the iteration index and a callback: (n, next).\n * @param {Function} callback - see {@link module:Collections.map}.\n * @example\n *\n * // Pretend this is some complicated async factory\n * var createUser = function(id, callback) {\n * callback(null, {\n * id: 'user' + id\n * });\n * };\n *\n * // generate 5 users\n * async.times(5, function(n, next) {\n * createUser(n, function(err, user) {\n * next(err, user);\n * });\n * }, function(err, users) {\n * // we should now have 5 users\n * });\n */\nvar times = doLimit(timeLimit, Infinity);\n\n/**\n * The same as [times]{@link module:ControlFlow.times} but runs only a single async operation at a time.\n *\n * @name timesSeries\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.times]{@link module:ControlFlow.times}\n * @category Control Flow\n * @param {number} n - The number of times to run the function.\n * @param {AsyncFunction} iteratee - The async function to call `n` times.\n * Invoked with the iteration index and a callback: (n, next).\n * @param {Function} callback - see {@link module:Collections.map}.\n */\nvar timesSeries = doLimit(timeLimit, 1);\n\n/**\n * A relative of `reduce`. Takes an Object or Array, and iterates over each\n * element in series, each step potentially mutating an `accumulator` value.\n * The type of the accumulator defaults to the type of collection passed in.\n *\n * @name transform\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {*} [accumulator] - The initial state of the transform. If omitted,\n * it will default to an empty Object or Array, depending on the type of `coll`\n * @param {AsyncFunction} iteratee - A function applied to each item in the\n * collection that potentially modifies the accumulator.\n * Invoked with (accumulator, item, key, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result is the transformed accumulator.\n * Invoked with (err, result).\n * @example\n *\n * async.transform([1,2,3], function(acc, item, index, callback) {\n * // pointless async:\n * process.nextTick(function() {\n * acc.push(item * 2)\n * callback(null)\n * });\n * }, function(err, result) {\n * // result is now equal to [2, 4, 6]\n * });\n *\n * @example\n *\n * async.transform({a: 1, b: 2, c: 3}, function (obj, val, key, callback) {\n * setImmediate(function () {\n * obj[key] = val * 2;\n * callback();\n * })\n * }, function (err, result) {\n * // result is equal to {a: 2, b: 4, c: 6}\n * })\n */\nfunction transform (coll, accumulator, iteratee, callback) {\n if (arguments.length <= 3) {\n callback = iteratee;\n iteratee = accumulator;\n accumulator = isArray(coll) ? [] : {};\n }\n callback = once(callback || noop);\n var _iteratee = wrapAsync(iteratee);\n\n eachOf(coll, function(v, k, cb) {\n _iteratee(accumulator, v, k, cb);\n }, function(err) {\n callback(err, accumulator);\n });\n}\n\n/**\n * It runs each task in series but stops whenever any of the functions were\n * successful. If one of the tasks were successful, the `callback` will be\n * passed the result of the successful task. If all tasks fail, the callback\n * will be passed the error and result (if any) of the final attempt.\n *\n * @name tryEach\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|Object} tasks - A collection containing functions to\n * run, each function is passed a `callback(err, result)` it must call on\n * completion with an error `err` (which can be `null`) and an optional `result`\n * value.\n * @param {Function} [callback] - An optional callback which is called when one\n * of the tasks has succeeded, or all have failed. It receives the `err` and\n * `result` arguments of the last attempt at completing the `task`. Invoked with\n * (err, results).\n * @example\n * async.tryEach([\n * function getDataFromFirstWebsite(callback) {\n * // Try getting the data from the first website\n * callback(err, data);\n * },\n * function getDataFromSecondWebsite(callback) {\n * // First website failed,\n * // Try getting the data from the backup website\n * callback(err, data);\n * }\n * ],\n * // optional callback\n * function(err, results) {\n * Now do something with the data.\n * });\n *\n */\nfunction tryEach(tasks, callback) {\n var error = null;\n var result;\n callback = callback || noop;\n eachSeries(tasks, function(task, callback) {\n wrapAsync(task)(function (err, res/*, ...args*/) {\n if (arguments.length > 2) {\n result = slice(arguments, 1);\n } else {\n result = res;\n }\n error = err;\n callback(!err);\n });\n }, function () {\n callback(error, result);\n });\n}\n\n/**\n * Undoes a [memoize]{@link module:Utils.memoize}d function, reverting it to the original,\n * unmemoized form. Handy for testing.\n *\n * @name unmemoize\n * @static\n * @memberOf module:Utils\n * @method\n * @see [async.memoize]{@link module:Utils.memoize}\n * @category Util\n * @param {AsyncFunction} fn - the memoized function\n * @returns {AsyncFunction} a function that calls the original unmemoized function\n */\nfunction unmemoize(fn) {\n return function () {\n return (fn.unmemoized || fn).apply(null, arguments);\n };\n}\n\n/**\n * Repeatedly call `iteratee`, while `test` returns `true`. Calls `callback` when\n * stopped, or an error occurs.\n *\n * @name whilst\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Function} test - synchronous truth test to perform before each\n * execution of `iteratee`. Invoked with ().\n * @param {AsyncFunction} iteratee - An async function which is called each time\n * `test` passes. Invoked with (callback).\n * @param {Function} [callback] - A callback which is called after the test\n * function has failed and repeated execution of `iteratee` has stopped. `callback`\n * will be passed an error and any arguments passed to the final `iteratee`'s\n * callback. Invoked with (err, [results]);\n * @returns undefined\n * @example\n *\n * var count = 0;\n * async.whilst(\n * function() { return count < 5; },\n * function(callback) {\n * count++;\n * setTimeout(function() {\n * callback(null, count);\n * }, 1000);\n * },\n * function (err, n) {\n * // 5 seconds have passed, n = 5\n * }\n * );\n */\nfunction whilst(test, iteratee, callback) {\n callback = onlyOnce(callback || noop);\n var _iteratee = wrapAsync(iteratee);\n if (!test()) return callback(null);\n var next = function(err/*, ...args*/) {\n if (err) return callback(err);\n if (test()) return _iteratee(next);\n var args = slice(arguments, 1);\n callback.apply(null, [null].concat(args));\n };\n _iteratee(next);\n}\n\n/**\n * Repeatedly call `iteratee` until `test` returns `true`. Calls `callback` when\n * stopped, or an error occurs. `callback` will be passed an error and any\n * arguments passed to the final `iteratee`'s callback.\n *\n * The inverse of [whilst]{@link module:ControlFlow.whilst}.\n *\n * @name until\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.whilst]{@link module:ControlFlow.whilst}\n * @category Control Flow\n * @param {Function} test - synchronous truth test to perform before each\n * execution of `iteratee`. Invoked with ().\n * @param {AsyncFunction} iteratee - An async function which is called each time\n * `test` fails. Invoked with (callback).\n * @param {Function} [callback] - A callback which is called after the test\n * function has passed and repeated execution of `iteratee` has stopped. `callback`\n * will be passed an error and any arguments passed to the final `iteratee`'s\n * callback. Invoked with (err, [results]);\n */\nfunction until(test, iteratee, callback) {\n whilst(function() {\n return !test.apply(this, arguments);\n }, iteratee, callback);\n}\n\n/**\n * Runs the `tasks` array of functions in series, each passing their results to\n * the next in the array. However, if any of the `tasks` pass an error to their\n * own callback, the next function is not executed, and the main `callback` is\n * immediately called with the error.\n *\n * @name waterfall\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array} tasks - An array of [async functions]{@link AsyncFunction}\n * to run.\n * Each function should complete with any number of `result` values.\n * The `result` values will be passed as arguments, in order, to the next task.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed. This will be passed the results of the last task's\n * callback. Invoked with (err, [results]).\n * @returns undefined\n * @example\n *\n * async.waterfall([\n * function(callback) {\n * callback(null, 'one', 'two');\n * },\n * function(arg1, arg2, callback) {\n * // arg1 now equals 'one' and arg2 now equals 'two'\n * callback(null, 'three');\n * },\n * function(arg1, callback) {\n * // arg1 now equals 'three'\n * callback(null, 'done');\n * }\n * ], function (err, result) {\n * // result now equals 'done'\n * });\n *\n * // Or, with named functions:\n * async.waterfall([\n * myFirstFunction,\n * mySecondFunction,\n * myLastFunction,\n * ], function (err, result) {\n * // result now equals 'done'\n * });\n * function myFirstFunction(callback) {\n * callback(null, 'one', 'two');\n * }\n * function mySecondFunction(arg1, arg2, callback) {\n * // arg1 now equals 'one' and arg2 now equals 'two'\n * callback(null, 'three');\n * }\n * function myLastFunction(arg1, callback) {\n * // arg1 now equals 'three'\n * callback(null, 'done');\n * }\n */\nvar waterfall = function(tasks, callback) {\n callback = once(callback || noop);\n if (!isArray(tasks)) return callback(new Error('First argument to waterfall must be an array of functions'));\n if (!tasks.length) return callback();\n var taskIndex = 0;\n\n function nextTask(args) {\n var task = wrapAsync(tasks[taskIndex++]);\n args.push(onlyOnce(next));\n task.apply(null, args);\n }\n\n function next(err/*, ...args*/) {\n if (err || taskIndex === tasks.length) {\n return callback.apply(null, arguments);\n }\n nextTask(slice(arguments, 1));\n }\n\n nextTask([]);\n};\n\n/**\n * An \"async function\" in the context of Async is an asynchronous function with\n * a variable number of parameters, with the final parameter being a callback.\n * (`function (arg1, arg2, ..., callback) {}`)\n * The final callback is of the form `callback(err, results...)`, which must be\n * called once the function is completed. The callback should be called with a\n * Error as its first argument to signal that an error occurred.\n * Otherwise, if no error occurred, it should be called with `null` as the first\n * argument, and any additional `result` arguments that may apply, to signal\n * successful completion.\n * The callback must be called exactly once, ideally on a later tick of the\n * JavaScript event loop.\n *\n * This type of function is also referred to as a \"Node-style async function\",\n * or a \"continuation passing-style function\" (CPS). Most of the methods of this\n * library are themselves CPS/Node-style async functions, or functions that\n * return CPS/Node-style async functions.\n *\n * Wherever we accept a Node-style async function, we also directly accept an\n * [ES2017 `async` function]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function}.\n * In this case, the `async` function will not be passed a final callback\n * argument, and any thrown error will be used as the `err` argument of the\n * implicit callback, and the return value will be used as the `result` value.\n * (i.e. a `rejected` of the returned Promise becomes the `err` callback\n * argument, and a `resolved` value becomes the `result`.)\n *\n * Note, due to JavaScript limitations, we can only detect native `async`\n * functions and not transpilied implementations.\n * Your environment must have `async`/`await` support for this to work.\n * (e.g. Node > v7.6, or a recent version of a modern browser).\n * If you are using `async` functions through a transpiler (e.g. Babel), you\n * must still wrap the function with [asyncify]{@link module:Utils.asyncify},\n * because the `async function` will be compiled to an ordinary function that\n * returns a promise.\n *\n * @typedef {Function} AsyncFunction\n * @static\n */\n\n/**\n * Async is a utility module which provides straight-forward, powerful functions\n * for working with asynchronous JavaScript. Although originally designed for\n * use with [Node.js](http://nodejs.org) and installable via\n * `npm install --save async`, it can also be used directly in the browser.\n * @module async\n * @see AsyncFunction\n */\n\n\n/**\n * A collection of `async` functions for manipulating collections, such as\n * arrays and objects.\n * @module Collections\n */\n\n/**\n * A collection of `async` functions for controlling the flow through a script.\n * @module ControlFlow\n */\n\n/**\n * A collection of `async` utility functions.\n * @module Utils\n */\n\nvar index = {\n apply: apply,\n applyEach: applyEach,\n applyEachSeries: applyEachSeries,\n asyncify: asyncify,\n auto: auto,\n autoInject: autoInject,\n cargo: cargo,\n compose: compose,\n concat: concat,\n concatLimit: concatLimit,\n concatSeries: concatSeries,\n constant: constant,\n detect: detect,\n detectLimit: detectLimit,\n detectSeries: detectSeries,\n dir: dir,\n doDuring: doDuring,\n doUntil: doUntil,\n doWhilst: doWhilst,\n during: during,\n each: eachLimit,\n eachLimit: eachLimit$1,\n eachOf: eachOf,\n eachOfLimit: eachOfLimit,\n eachOfSeries: eachOfSeries,\n eachSeries: eachSeries,\n ensureAsync: ensureAsync,\n every: every,\n everyLimit: everyLimit,\n everySeries: everySeries,\n filter: filter,\n filterLimit: filterLimit,\n filterSeries: filterSeries,\n forever: forever,\n groupBy: groupBy,\n groupByLimit: groupByLimit,\n groupBySeries: groupBySeries,\n log: log,\n map: map,\n mapLimit: mapLimit,\n mapSeries: mapSeries,\n mapValues: mapValues,\n mapValuesLimit: mapValuesLimit,\n mapValuesSeries: mapValuesSeries,\n memoize: memoize,\n nextTick: nextTick,\n parallel: parallelLimit,\n parallelLimit: parallelLimit$1,\n priorityQueue: priorityQueue,\n queue: queue$1,\n race: race,\n reduce: reduce,\n reduceRight: reduceRight,\n reflect: reflect,\n reflectAll: reflectAll,\n reject: reject,\n rejectLimit: rejectLimit,\n rejectSeries: rejectSeries,\n retry: retry,\n retryable: retryable,\n seq: seq,\n series: series,\n setImmediate: setImmediate$1,\n some: some,\n someLimit: someLimit,\n someSeries: someSeries,\n sortBy: sortBy,\n timeout: timeout,\n times: times,\n timesLimit: timeLimit,\n timesSeries: timesSeries,\n transform: transform,\n tryEach: tryEach,\n unmemoize: unmemoize,\n until: until,\n waterfall: waterfall,\n whilst: whilst,\n\n // aliases\n all: every,\n allLimit: everyLimit,\n allSeries: everySeries,\n any: some,\n anyLimit: someLimit,\n anySeries: someSeries,\n find: detect,\n findLimit: detectLimit,\n findSeries: detectSeries,\n forEach: eachLimit,\n forEachSeries: eachSeries,\n forEachLimit: eachLimit$1,\n forEachOf: eachOf,\n forEachOfSeries: eachOfSeries,\n forEachOfLimit: eachOfLimit,\n inject: reduce,\n foldl: reduce,\n foldr: reduceRight,\n select: filter,\n selectLimit: filterLimit,\n selectSeries: filterSeries,\n wrapSync: asyncify\n};\n\nexports['default'] = index;\nexports.apply = apply;\nexports.applyEach = applyEach;\nexports.applyEachSeries = applyEachSeries;\nexports.asyncify = asyncify;\nexports.auto = auto;\nexports.autoInject = autoInject;\nexports.cargo = cargo;\nexports.compose = compose;\nexports.concat = concat;\nexports.concatLimit = concatLimit;\nexports.concatSeries = concatSeries;\nexports.constant = constant;\nexports.detect = detect;\nexports.detectLimit = detectLimit;\nexports.detectSeries = detectSeries;\nexports.dir = dir;\nexports.doDuring = doDuring;\nexports.doUntil = doUntil;\nexports.doWhilst = doWhilst;\nexports.during = during;\nexports.each = eachLimit;\nexports.eachLimit = eachLimit$1;\nexports.eachOf = eachOf;\nexports.eachOfLimit = eachOfLimit;\nexports.eachOfSeries = eachOfSeries;\nexports.eachSeries = eachSeries;\nexports.ensureAsync = ensureAsync;\nexports.every = every;\nexports.everyLimit = everyLimit;\nexports.everySeries = everySeries;\nexports.filter = filter;\nexports.filterLimit = filterLimit;\nexports.filterSeries = filterSeries;\nexports.forever = forever;\nexports.groupBy = groupBy;\nexports.groupByLimit = groupByLimit;\nexports.groupBySeries = groupBySeries;\nexports.log = log;\nexports.map = map;\nexports.mapLimit = mapLimit;\nexports.mapSeries = mapSeries;\nexports.mapValues = mapValues;\nexports.mapValuesLimit = mapValuesLimit;\nexports.mapValuesSeries = mapValuesSeries;\nexports.memoize = memoize;\nexports.nextTick = nextTick;\nexports.parallel = parallelLimit;\nexports.parallelLimit = parallelLimit$1;\nexports.priorityQueue = priorityQueue;\nexports.queue = queue$1;\nexports.race = race;\nexports.reduce = reduce;\nexports.reduceRight = reduceRight;\nexports.reflect = reflect;\nexports.reflectAll = reflectAll;\nexports.reject = reject;\nexports.rejectLimit = rejectLimit;\nexports.rejectSeries = rejectSeries;\nexports.retry = retry;\nexports.retryable = retryable;\nexports.seq = seq;\nexports.series = series;\nexports.setImmediate = setImmediate$1;\nexports.some = some;\nexports.someLimit = someLimit;\nexports.someSeries = someSeries;\nexports.sortBy = sortBy;\nexports.timeout = timeout;\nexports.times = times;\nexports.timesLimit = timeLimit;\nexports.timesSeries = timesSeries;\nexports.transform = transform;\nexports.tryEach = tryEach;\nexports.unmemoize = unmemoize;\nexports.until = until;\nexports.waterfall = waterfall;\nexports.whilst = whilst;\nexports.all = every;\nexports.allLimit = everyLimit;\nexports.allSeries = everySeries;\nexports.any = some;\nexports.anyLimit = someLimit;\nexports.anySeries = someSeries;\nexports.find = detect;\nexports.findLimit = detectLimit;\nexports.findSeries = detectSeries;\nexports.forEach = eachLimit;\nexports.forEachSeries = eachSeries;\nexports.forEachLimit = eachLimit$1;\nexports.forEachOf = eachOf;\nexports.forEachOfSeries = eachOfSeries;\nexports.forEachOfLimit = eachOfLimit;\nexports.inject = reduce;\nexports.foldl = reduce;\nexports.foldr = reduceRight;\nexports.select = filter;\nexports.selectLimit = filterLimit;\nexports.selectSeries = filterSeries;\nexports.wrapSync = asyncify;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n", - "parsedSrc": "function(e,t,r){(function(e,r,n,i){!function(e,r){r(t)}(0,function(t){\"use strict\";function o(e,t){t|=0;for(var r=Math.max(e.length-t,0),n=Array(r),i=0;i-1&&e%1==0&&e<=D}function L(e){return null!=e&&U(e.length)&&!function(e){if(!u(e))return!1;var t=B(e);return t==j||t==H||t==P||t==M}(e)}var F={};function z(){}function G(e){return function(){if(null!==e){var t=e;e=null,t.apply(this,arguments)}}}var W=\"function\"==typeof Symbol&&Symbol.iterator,V=function(e){return W&&e[W]&&e[W]()};function q(e){return null!=e&&\"object\"==typeof e}var $=\"[object Arguments]\";function K(e){return q(e)&&B(e)==$}var Y=Object.prototype,X=Y.hasOwnProperty,Q=Y.propertyIsEnumerable,J=K(function(){return arguments}())?K:function(e){return q(e)&&X.call(e,\"callee\")&&!Q.call(e,\"callee\")},Z=Array.isArray;var ee=\"object\"==typeof t&&t&&!t.nodeType&&t,te=ee&&\"object\"==typeof i&&i&&!i.nodeType&&i,re=te&&te.exports===ee?S.Buffer:void 0,ne=(re?re.isBuffer:void 0)||function(){return!1},ie=9007199254740991,oe=/^(?:0|[1-9]\\d*)$/;function ae(e,t){var r=typeof e;return!!(t=null==t?ie:t)&&(\"number\"==r||\"symbol\"!=r&&oe.test(e))&&e>-1&&e%1==0&&e2&&(n=o(arguments,1)),t){var c={};Ue(i,function(e,t){c[t]=e}),c[e]=n,s=!0,u=Object.create(null),r(t,c)}else i[e]=n,function(e){Me(u[e]||[],function(e){e()}),d()}(e)});a++;var c=b(t[t.length-1]);t.length>1?c(i,n):c(n)}(e,t)})}function d(){if(0===c.length&&0===a)return r(null,i);for(;c.length&&a=0&&r.push(n)}),r}Ue(e,function(t,r){if(!Z(t))return h(r,[t]),void l.push(r);var n=t.slice(0,t.length-1),i=n.length;if(0===i)return h(r,t),void l.push(r);f[r]=i,Me(n,function(o){if(!e[o])throw new Error(\"async.auto task `\"+r+\"` has a non-existent dependency `\"+o+\"` in \"+n.join(\", \"));!function(e,t){var r=u[e];r||(r=u[e]=[]);r.push(t)}(o,function(){0===--i&&h(r,t)})})}),function(){var e,t=0;for(;l.length;)e=l.pop(),t++,Me(p(e),function(e){0==--f[e]&&l.push(e)});if(t!==n)throw new Error(\"async.auto cannot execute tasks due to a recursive dependency\")}(),d()};function Ge(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r=n?e:function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n-1;);return r}(n,i),function(e,t){for(var r=e.length;r--&&Fe(t,e[r],0)>-1;);return r}(n,i)+1).join(\"\")}var lt=/^(?:async\\s+)?(function)?\\s*[^\\(]*\\(\\s*([^\\)]*)\\)/m,ft=/,/,ht=/(=.+)?(\\s*)$/,dt=/((\\/\\/.*$)|(\\/\\*[\\s\\S]*?\\*\\/))/gm;function pt(e,t){var r={};Ue(e,function(e,t){var n,i=m(e),o=!i&&1===e.length||i&&0===e.length;if(Z(e))n=e.slice(0,-1),e=e[e.length-1],r[t]=n.concat(n.length>0?a:e);else if(o)r[t]=e;else{if(n=function(e){return e=(e=(e=(e=e.toString().replace(dt,\"\")).match(lt)[2].replace(\" \",\"\"))?e.split(ft):[]).map(function(e){return ct(e.replace(ht,\"\"))})}(e),0===e.length&&!i&&0===n.length)throw new Error(\"autoInject task functions require explicit parameters.\");i||n.pop(),r[t]=n.concat(a)}function a(t,r){var i=Ge(n,function(e){return t[e]});i.push(r),b(e).apply(null,i)}}),ze(r,t)}function vt(){this.head=this.tail=null,this.length=0}function gt(e,t){e.length=1,e.head=e.tail=t}function yt(e,t,r){if(null==t)t=1;else if(0===t)throw new Error(\"Concurrency must not be zero\");var n=b(e),i=0,o=[],a=!1;function s(e,t,r){if(null!=r&&\"function\"!=typeof r)throw new Error(\"task callback must be a function\");if(l.started=!0,Z(e)||(e=[e]),0===e.length&&l.idle())return d(function(){l.drain()});for(var n=0,i=e.length;n0&&o.splice(s,1),a.callback.apply(a,arguments),null!=t&&l.error(t,a.data)}i<=l.concurrency-l.buffer&&l.unsaturated(),l.idle()&&l.drain(),l.process()}}var c=!1,l={_tasks:new vt,concurrency:t,payload:r,saturated:z,unsaturated:z,buffer:t/4,empty:z,drain:z,error:z,started:!1,paused:!1,push:function(e,t){s(e,!1,t)},kill:function(){l.drain=z,l._tasks.empty()},unshift:function(e,t){s(e,!0,t)},remove:function(e){l._tasks.remove(e)},process:function(){if(!c){for(c=!0;!l.paused&&i2&&(i=o(arguments,1)),n[t]=i,r(e)})},function(e){r(e,n)})}function pr(e,t){dr(Oe,e,t)}function vr(e,t,r){dr(Se(t),e,r)}var gr=function(e,t){var r=b(e);return yt(function(e,t){r(e[0],t)},t,1)},yr=function(e,t){var r=gr(e,t);return r.push=function(e,t,n){if(null==n&&(n=z),\"function\"!=typeof n)throw new Error(\"task callback must be a function\");if(r.started=!0,Z(e)||(e=[e]),0===e.length)return d(function(){r.drain()});t=t||0;for(var i=r._tasks.head;i&&t>=i.priority;)i=i.next;for(var o=0,a=e.length;on?1:0}Ne(e,function(e,t){n(e,function(r,n){if(r)return t(r);t(null,{value:e,criteria:n})})},function(e,t){if(e)return r(e);r(null,Ge(t.sort(i),Yt(\"value\")))})}function Pr(e,t,r){var n=b(e);return s(function(i,o){var a,s=!1;i.push(function(){s||(o.apply(null,arguments),clearTimeout(a))}),a=setTimeout(function(){var t=e.name||\"anonymous\",n=new Error('Callback function \"'+t+'\" timed out.');n.code=\"ETIMEDOUT\",r&&(n.info=r),s=!0,o(n)},t),n.apply(null,i)})}var jr=Math.ceil,Hr=Math.max;function Mr(e,t,r,n){var i=b(r);Pe(function(e,t,r,n){for(var i=-1,o=Hr(jr((t-e)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=e,e+=r;return a}(0,e,1),t,i,n)}var Dr=Te(Mr,1/0),Ur=Te(Mr,1);function Lr(e,t,r,n){arguments.length<=3&&(n=r,r=t,t=Z(e)?[]:{}),n=G(n||z);var i=b(r);Oe(e,function(e,r,n){i(t,e,r,n)},function(e){n(e,t)})}function Fr(e,t){var r,n=null;t=t||z,Gt(e,function(e,t){b(e)(function(e,i){r=arguments.length>2?o(arguments,1):i,n=e,t(!e)})},function(){t(n,r)})}function zr(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function Gr(e,t,r){r=Ee(r||z);var n=b(t);if(!e())return r(null);var i=function(t){if(t)return r(t);if(e())return n(i);var a=o(arguments,1);r.apply(null,[null].concat(a))};n(i)}function Wr(e,t,r){Gr(function(){return!e.apply(this,arguments)},t,r)}var Vr=function(e,t){if(t=G(t||z),!Z(e))return t(new Error(\"First argument to waterfall must be an array of functions\"));if(!e.length)return t();var r=0;function n(t){var n=b(e[r++]);t.push(Ee(i)),n.apply(null,t)}function i(i){if(i||r===e.length)return t.apply(null,arguments);n(o(arguments,1))}n([])},qr={apply:a,applyEach:Re,applyEachSeries:He,asyncify:p,auto:ze,autoInject:pt,cargo:mt,compose:Et,concat:Tt,concatLimit:xt,concatSeries:At,constant:kt,detect:Nt,detectLimit:Rt,detectSeries:Bt,dir:jt,doDuring:Ht,doUntil:Dt,doWhilst:Mt,during:Ut,each:Ft,eachLimit:zt,eachOf:Oe,eachOfLimit:xe,eachOfSeries:bt,eachSeries:Gt,ensureAsync:Wt,every:qt,everyLimit:$t,everySeries:Kt,filter:Zt,filterLimit:er,filterSeries:tr,forever:rr,groupBy:ir,groupByLimit:nr,groupBySeries:or,log:ar,map:Ne,mapLimit:Pe,mapSeries:je,mapValues:ur,mapValuesLimit:sr,mapValuesSeries:cr,memoize:fr,nextTick:hr,parallel:pr,parallelLimit:vr,priorityQueue:yr,queue:gr,race:mr,reduce:_t,reduceRight:br,reflect:_r,reflectAll:wr,reject:Sr,rejectLimit:xr,rejectSeries:Tr,retry:kr,retryable:Or,seq:wt,series:Cr,setImmediate:d,some:Ir,someLimit:Nr,someSeries:Rr,sortBy:Br,timeout:Pr,times:Dr,timesLimit:Mr,timesSeries:Ur,transform:Lr,tryEach:Fr,unmemoize:zr,until:Wr,waterfall:Vr,whilst:Gr,all:qt,allLimit:$t,allSeries:Kt,any:Ir,anyLimit:Nr,anySeries:Rr,find:Nt,findLimit:Rt,findSeries:Bt,forEach:Ft,forEachSeries:Gt,forEachLimit:zt,forEachOf:Oe,forEachOfSeries:bt,forEachOfLimit:xe,inject:_t,foldl:_t,foldr:br,select:Zt,selectLimit:er,selectSeries:tr,wrapSync:p};t.default=qr,t.apply=a,t.applyEach=Re,t.applyEachSeries=He,t.asyncify=p,t.auto=ze,t.autoInject=pt,t.cargo=mt,t.compose=Et,t.concat=Tt,t.concatLimit=xt,t.concatSeries=At,t.constant=kt,t.detect=Nt,t.detectLimit=Rt,t.detectSeries=Bt,t.dir=jt,t.doDuring=Ht,t.doUntil=Dt,t.doWhilst=Mt,t.during=Ut,t.each=Ft,t.eachLimit=zt,t.eachOf=Oe,t.eachOfLimit=xe,t.eachOfSeries=bt,t.eachSeries=Gt,t.ensureAsync=Wt,t.every=qt,t.everyLimit=$t,t.everySeries=Kt,t.filter=Zt,t.filterLimit=er,t.filterSeries=tr,t.forever=rr,t.groupBy=ir,t.groupByLimit=nr,t.groupBySeries=or,t.log=ar,t.map=Ne,t.mapLimit=Pe,t.mapSeries=je,t.mapValues=ur,t.mapValuesLimit=sr,t.mapValuesSeries=cr,t.memoize=fr,t.nextTick=hr,t.parallel=pr,t.parallelLimit=vr,t.priorityQueue=yr,t.queue=gr,t.race=mr,t.reduce=_t,t.reduceRight=br,t.reflect=_r,t.reflectAll=wr,t.reject=Sr,t.rejectLimit=xr,t.rejectSeries=Tr,t.retry=kr,t.retryable=Or,t.seq=wt,t.series=Cr,t.setImmediate=d,t.some=Ir,t.someLimit=Nr,t.someSeries=Rr,t.sortBy=Br,t.timeout=Pr,t.times=Dr,t.timesLimit=Mr,t.timesSeries=Ur,t.transform=Lr,t.tryEach=Fr,t.unmemoize=zr,t.until=Wr,t.waterfall=Vr,t.whilst=Gr,t.all=qt,t.allLimit=$t,t.allSeries=Kt,t.any=Ir,t.anyLimit=Nr,t.anySeries=Rr,t.find=Nt,t.findLimit=Rt,t.findSeries=Bt,t.forEach=Ft,t.forEachSeries=Gt,t.forEachLimit=zt,t.forEachOf=Oe,t.forEachOfSeries=bt,t.forEachOfLimit=xe,t.inject=_t,t.foldl=_t,t.foldr=br,t.select=Zt,t.selectLimit=er,t.selectSeries=tr,t.wrapSync=p,Object.defineProperty(t,\"__esModule\",{value:!0})})}).call(this,r(84).setImmediate,r(15),r(6),r(115)(e))}" + "depth": 5, + "source": "\"use strict\";\nvar isArray_1 = require('./util/isArray');\nvar isObject_1 = require('./util/isObject');\nvar isFunction_1 = require('./util/isFunction');\nvar tryCatch_1 = require('./util/tryCatch');\nvar errorObject_1 = require('./util/errorObject');\nvar UnsubscriptionError_1 = require('./util/UnsubscriptionError');\n/**\n * Represents a disposable resource, such as the execution of an Observable. A\n * Subscription has one important method, `unsubscribe`, that takes no argument\n * and just disposes the resource held by the subscription.\n *\n * Additionally, subscriptions may be grouped together through the `add()`\n * method, which will attach a child Subscription to the current Subscription.\n * When a Subscription is unsubscribed, all its children (and its grandchildren)\n * will be unsubscribed as well.\n *\n * @class Subscription\n */\nvar Subscription = (function () {\n /**\n * @param {function(): void} [unsubscribe] A function describing how to\n * perform the disposal of resources when the `unsubscribe` method is called.\n */\n function Subscription(unsubscribe) {\n /**\n * A flag to indicate whether this Subscription has already been unsubscribed.\n * @type {boolean}\n */\n this.closed = false;\n this._parent = null;\n this._parents = null;\n this._subscriptions = null;\n if (unsubscribe) {\n this._unsubscribe = unsubscribe;\n }\n }\n /**\n * Disposes the resources held by the subscription. May, for instance, cancel\n * an ongoing Observable execution or cancel any other type of work that\n * started when the Subscription was created.\n * @return {void}\n */\n Subscription.prototype.unsubscribe = function () {\n var hasErrors = false;\n var errors;\n if (this.closed) {\n return;\n }\n var _a = this, _parent = _a._parent, _parents = _a._parents, _unsubscribe = _a._unsubscribe, _subscriptions = _a._subscriptions;\n this.closed = true;\n this._parent = null;\n this._parents = null;\n // null out _subscriptions first so any child subscriptions that attempt\n // to remove themselves from this subscription will noop\n this._subscriptions = null;\n var index = -1;\n var len = _parents ? _parents.length : 0;\n // if this._parent is null, then so is this._parents, and we\n // don't have to remove ourselves from any parent subscriptions.\n while (_parent) {\n _parent.remove(this);\n // if this._parents is null or index >= len,\n // then _parent is set to null, and the loop exits\n _parent = ++index < len && _parents[index] || null;\n }\n if (isFunction_1.isFunction(_unsubscribe)) {\n var trial = tryCatch_1.tryCatch(_unsubscribe).call(this);\n if (trial === errorObject_1.errorObject) {\n hasErrors = true;\n errors = errors || (errorObject_1.errorObject.e instanceof UnsubscriptionError_1.UnsubscriptionError ?\n flattenUnsubscriptionErrors(errorObject_1.errorObject.e.errors) : [errorObject_1.errorObject.e]);\n }\n }\n if (isArray_1.isArray(_subscriptions)) {\n index = -1;\n len = _subscriptions.length;\n while (++index < len) {\n var sub = _subscriptions[index];\n if (isObject_1.isObject(sub)) {\n var trial = tryCatch_1.tryCatch(sub.unsubscribe).call(sub);\n if (trial === errorObject_1.errorObject) {\n hasErrors = true;\n errors = errors || [];\n var err = errorObject_1.errorObject.e;\n if (err instanceof UnsubscriptionError_1.UnsubscriptionError) {\n errors = errors.concat(flattenUnsubscriptionErrors(err.errors));\n }\n else {\n errors.push(err);\n }\n }\n }\n }\n }\n if (hasErrors) {\n throw new UnsubscriptionError_1.UnsubscriptionError(errors);\n }\n };\n /**\n * Adds a tear down to be called during the unsubscribe() of this\n * Subscription.\n *\n * If the tear down being added is a subscription that is already\n * unsubscribed, is the same reference `add` is being called on, or is\n * `Subscription.EMPTY`, it will not be added.\n *\n * If this subscription is already in an `closed` state, the passed\n * tear down logic will be executed immediately.\n *\n * @param {TeardownLogic} teardown The additional logic to execute on\n * teardown.\n * @return {Subscription} Returns the Subscription used or created to be\n * added to the inner subscriptions list. This Subscription can be used with\n * `remove()` to remove the passed teardown logic from the inner subscriptions\n * list.\n */\n Subscription.prototype.add = function (teardown) {\n if (!teardown || (teardown === Subscription.EMPTY)) {\n return Subscription.EMPTY;\n }\n if (teardown === this) {\n return this;\n }\n var subscription = teardown;\n switch (typeof teardown) {\n case 'function':\n subscription = new Subscription(teardown);\n case 'object':\n if (subscription.closed || typeof subscription.unsubscribe !== 'function') {\n return subscription;\n }\n else if (this.closed) {\n subscription.unsubscribe();\n return subscription;\n }\n else if (typeof subscription._addParent !== 'function' /* quack quack */) {\n var tmp = subscription;\n subscription = new Subscription();\n subscription._subscriptions = [tmp];\n }\n break;\n default:\n throw new Error('unrecognized teardown ' + teardown + ' added to Subscription.');\n }\n var subscriptions = this._subscriptions || (this._subscriptions = []);\n subscriptions.push(subscription);\n subscription._addParent(this);\n return subscription;\n };\n /**\n * Removes a Subscription from the internal list of subscriptions that will\n * unsubscribe during the unsubscribe process of this Subscription.\n * @param {Subscription} subscription The subscription to remove.\n * @return {void}\n */\n Subscription.prototype.remove = function (subscription) {\n var subscriptions = this._subscriptions;\n if (subscriptions) {\n var subscriptionIndex = subscriptions.indexOf(subscription);\n if (subscriptionIndex !== -1) {\n subscriptions.splice(subscriptionIndex, 1);\n }\n }\n };\n Subscription.prototype._addParent = function (parent) {\n var _a = this, _parent = _a._parent, _parents = _a._parents;\n if (!_parent || _parent === parent) {\n // If we don't have a parent, or the new parent is the same as the\n // current parent, then set this._parent to the new parent.\n this._parent = parent;\n }\n else if (!_parents) {\n // If there's already one parent, but not multiple, allocate an Array to\n // store the rest of the parent Subscriptions.\n this._parents = [parent];\n }\n else if (_parents.indexOf(parent) === -1) {\n // Only add the new parent to the _parents list if it's not already there.\n _parents.push(parent);\n }\n };\n Subscription.EMPTY = (function (empty) {\n empty.closed = true;\n return empty;\n }(new Subscription()));\n return Subscription;\n}());\nexports.Subscription = Subscription;\nfunction flattenUnsubscriptionErrors(errors) {\n return errors.reduce(function (errs, err) { return errs.concat((err instanceof UnsubscriptionError_1.UnsubscriptionError) ? err.errors : err); }, []);\n}\n//# sourceMappingURL=Subscription.js.map", + "parsedSrc": "function(e,t,r){\"use strict\";var n=r(111),i=r(110),o=r(112),a=r(282),s=r(109),u=r(281),c=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var r=this._parent,c=this._parents,f=this._unsubscribe,h=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var p=-1,d=c?c.length:0;r;)r.remove(this),r=++p1;var attachedAt=mostRecentTransaction.attachmentTimestamp;var lastEpoch=(0,_sub_minutes2.default)(new Date(),1).valueOf();var afterLastEpoch=lastEpoch1,n=t.attachmentTimestamp,i=(0,a.default)(new Date,1).valueOf();return r&&iLike\n * [Array.prototype.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter),\n * it only emits a value from the source if it passes a criterion function.\n *\n * \n *\n * Similar to the well-known `Array.prototype.filter` method, this operator\n * takes values from the source Observable, passes them through a `predicate`\n * function and only emits those values that yielded `true`.\n *\n * @example Emit only click events whose target was a DIV element\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var clicksOnDivs = clicks.filter(ev => ev.target.tagName === 'DIV');\n * clicksOnDivs.subscribe(x => console.log(x));\n *\n * @see {@link distinct}\n * @see {@link distinctUntilChanged}\n * @see {@link distinctUntilKeyChanged}\n * @see {@link ignoreElements}\n * @see {@link partition}\n * @see {@link skip}\n *\n * @param {function(value: T, index: number): boolean} predicate A function that\n * evaluates each value emitted by the source Observable. If it returns `true`,\n * the value is emitted, if `false` the value is not passed to the output\n * Observable. The `index` parameter is the number `i` for the i-th source\n * emission that has happened since the subscription, starting from the number\n * `0`.\n * @param {any} [thisArg] An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return {Observable} An Observable of values from the source that were\n * allowed by the `predicate` function.\n * @method filter\n * @owner Observable\n */\nfunction filter(predicate, thisArg) {\n return filter_1.filter(predicate, thisArg)(this);\n}\nexports.filter = filter;\n//# sourceMappingURL=filter.js.map", + "parsedSrc": "function(e,t,r){\"use strict\";var n=r(268);t.filter=function(e,t){return n.filter(e,t)(this)}}" }, { - "id": 88, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/cancel/Cancel.js", - "name": "./node_modules/axios/lib/cancel/Cancel.js", - "index": 214, - "index2": 207, - "size": 385, + "id": 71, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\operator\\map.js", + "name": "./node_modules/rxjs/operator/map.js", + "index": 98, + "index2": 95, + "size": 1650, "cacheable": true, "built": true, "optional": false, @@ -13944,44 +13831,29 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/axios.js", - "issuerId": 231, - "issuerName": "./node_modules/axios/lib/axios.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux-observable\\lib\\esm\\createEpicMiddleware.js", + "issuerId": null, + "issuerName": "./node_modules/redux-observable/lib/esm/createEpicMiddleware.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { - "id": 250, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/index.js", - "name": "./src/redux/epics/index.js" - }, - { - "id": 235, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/node-epics.js", - "name": "./src/redux/epics/node-epics.js" - }, - { - "id": 93, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/services/broker-node.js", - "name": "./src/redux/services/broker-node.js" - }, - { - "id": 232, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/index.js", - "name": "./node_modules/axios/index.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux-observable\\lib\\esm\\index.js", + "name": "./node_modules/redux-observable/lib/esm/index.js" }, { - "id": 231, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/axios.js", - "name": "./node_modules/axios/lib/axios.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux-observable\\lib\\esm\\createEpicMiddleware.js", + "name": "./node_modules/redux-observable/lib/esm/createEpicMiddleware.js" } ], "failed": false, @@ -13991,22 +13863,31 @@ ], "reasons": [ { - "moduleId": 215, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/cancel/CancelToken.js", - "module": "./node_modules/axios/lib/cancel/CancelToken.js", - "moduleName": "./node_modules/axios/lib/cancel/CancelToken.js", - "type": "cjs require", - "userRequest": "./Cancel", - "loc": "3:13-32" + "moduleId": 19, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux-observable\\lib\\esm\\index.js a52b0d99a65d8f219a4bab56a60e4255", + "module": "./node_modules/redux-observable/lib/esm/index.js + 5 modules", + "moduleName": "./node_modules/redux-observable/lib/esm/index.js + 5 modules", + "type": "harmony side effect evaluation", + "userRequest": "rxjs/operator/map", + "loc": "4:0-40" }, { - "moduleId": 231, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/axios.js", - "module": "./node_modules/axios/lib/axios.js", - "moduleName": "./node_modules/axios/lib/axios.js", + "moduleId": 19, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux-observable\\lib\\esm\\index.js a52b0d99a65d8f219a4bab56a60e4255", + "module": "./node_modules/redux-observable/lib/esm/index.js + 5 modules", + "moduleName": "./node_modules/redux-observable/lib/esm/index.js + 5 modules", + "type": "harmony import specifier", + "userRequest": "rxjs/operator/map", + "loc": "43:18-21" + }, + { + "moduleId": 248, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\add\\operator\\map.js", + "module": "./node_modules/rxjs/add/operator/map.js", + "moduleName": "./node_modules/rxjs/add/operator/map.js", "type": "cjs require", - "userRequest": "./cancel/Cancel", - "loc": "39:15-41" + "userRequest": "../../operator/map", + "loc": "3:12-41" } ], "usedExports": true, @@ -14014,17 +13895,17 @@ "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 7, - "source": "'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n", - "parsedSrc": "function(e,t,r){\"use strict\";function n(e){this.message=e}n.prototype.toString=function(){return\"Cancel\"+(this.message?\": \"+this.message:\"\")},n.prototype.__CANCEL__=!0,e.exports=n}" + "depth": 4, + "source": "\"use strict\";\nvar map_1 = require('../operators/map');\n/**\n * Applies a given `project` function to each value emitted by the source\n * Observable, and emits the resulting values as an Observable.\n *\n * Like [Array.prototype.map()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map),\n * it passes each source value through a transformation function to get\n * corresponding output values.\n *\n * \n *\n * Similar to the well known `Array.prototype.map` function, this operator\n * applies a projection to each value and emits that projection in the output\n * Observable.\n *\n * @example Map every click to the clientX position of that click\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var positions = clicks.map(ev => ev.clientX);\n * positions.subscribe(x => console.log(x));\n *\n * @see {@link mapTo}\n * @see {@link pluck}\n *\n * @param {function(value: T, index: number): R} project The function to apply\n * to each `value` emitted by the source Observable. The `index` parameter is\n * the number `i` for the i-th emission that has happened since the\n * subscription, starting from the number `0`.\n * @param {any} [thisArg] An optional argument to define what `this` is in the\n * `project` function.\n * @return {Observable} An Observable that emits the values from the source\n * Observable transformed by the given `project` function.\n * @method map\n * @owner Observable\n */\nfunction map(project, thisArg) {\n return map_1.map(project, thisArg)(this);\n}\nexports.map = map;\n//# sourceMappingURL=map.js.map", + "parsedSrc": "function(e,t,r){\"use strict\";var n=r(276);t.map=function(e,t){return n.map(e,t)(this)}}" }, { - "id": 89, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/cancel/isCancel.js", - "name": "./node_modules/axios/lib/cancel/isCancel.js", - "index": 211, - "index2": 202, - "size": 102, + "id": 72, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\node-forge\\lib\\random.js", + "name": "./node_modules/node-forge/lib/random.js", + "index": 332, + "index2": 332, + "size": 5435, "cacheable": true, "built": true, "optional": false, @@ -14032,44 +13913,44 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/axios.js", - "issuerId": 231, - "issuerName": "./node_modules/axios/lib/axios.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\datamap-generator\\src\\utils\\encryption.js", + "issuerId": null, + "issuerName": "./node_modules/datamap-generator/src/utils/encryption.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { - "id": 250, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/index.js", - "name": "./src/redux/epics/index.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx", + "name": "./src/redux/epics/index.tsx" }, { - "id": 235, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/node-epics.js", - "name": "./src/redux/epics/node-epics.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\node-epics.tsx", + "name": "./src/redux/epics/node-epics.tsx" }, { - "id": 93, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/services/broker-node.js", - "name": "./src/redux/services/broker-node.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\datamap-generator\\src\\index.js", + "name": "./node_modules/datamap-generator/src/index.js" }, { - "id": 232, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/index.js", - "name": "./node_modules/axios/index.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\datamap-generator\\src\\datamap.js", + "name": "./node_modules/datamap-generator/src/datamap.js" }, { - "id": 231, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/axios.js", - "name": "./node_modules/axios/lib/axios.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\datamap-generator\\src\\utils\\encryption.js", + "name": "./node_modules/datamap-generator/src/utils/encryption.js" } ], "failed": false, @@ -14079,40 +13960,51 @@ ], "reasons": [ { - "moduleId": 219, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/core/dispatchRequest.js", - "module": "./node_modules/axios/lib/core/dispatchRequest.js", - "moduleName": "./node_modules/axios/lib/core/dispatchRequest.js", - "type": "cjs require", - "userRequest": "../cancel/isCancel", - "loc": "5:15-44" + "moduleId": 137, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx 0186dcfebbdbe990abfba9f0b541f34d", + "module": "./src/redux/epics/index.tsx + 10 modules", + "moduleName": "./src/redux/epics/index.tsx + 10 modules", + "type": "harmony side effect evaluation", + "userRequest": "node-forge/lib/random", + "loc": "3:0-43" }, { - "moduleId": 231, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/axios.js", - "module": "./node_modules/axios/lib/axios.js", - "moduleName": "./node_modules/axios/lib/axios.js", - "type": "cjs require", - "userRequest": "./cancel/isCancel", - "loc": "41:17-45" + "moduleId": 137, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx 0186dcfebbdbe990abfba9f0b541f34d", + "module": "./src/redux/epics/index.tsx + 10 modules", + "moduleName": "./src/redux/epics/index.tsx + 10 modules", + "type": "harmony import specifier", + "userRequest": "node-forge/lib/random", + "loc": "36:16-22" + }, + { + "moduleId": 137, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx 0186dcfebbdbe990abfba9f0b541f34d", + "module": "./src/redux/epics/index.tsx + 10 modules", + "moduleName": "./src/redux/epics/index.tsx + 10 modules", + "type": "harmony import specifier", + "userRequest": "node-forge/lib/random", + "loc": "43:16-22" } ], - "usedExports": true, + "usedExports": [ + "default" + ], "providedExports": null, "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], "depth": 7, - "source": "'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n", - "parsedSrc": "function(e,t,r){\"use strict\";e.exports=function(e){return!(!e||!e.__CANCEL__)}}" + "source": "/**\n * An API for getting cryptographically-secure random bytes. The bytes are\n * generated using the Fortuna algorithm devised by Bruce Schneier and\n * Niels Ferguson.\n *\n * Getting strong random bytes is not yet easy to do in javascript. The only\n * truish random entropy that can be collected is from the mouse, keyboard, or\n * from timing with respect to page loads, etc. This generator makes a poor\n * attempt at providing random bytes when those sources haven't yet provided\n * enough entropy to initially seed or to reseed the PRNG.\n *\n * @author Dave Longley\n *\n * Copyright (c) 2009-2014 Digital Bazaar, Inc.\n */\nvar forge = require('./forge');\nrequire('./aes');\nrequire('./sha256');\nrequire('./prng');\nrequire('./util');\n\n(function() {\n\n// forge.random already defined\nif(forge.random && forge.random.getBytes) {\n module.exports = forge.random;\n return;\n}\n\n(function(jQuery) {\n\n// the default prng plugin, uses AES-128\nvar prng_aes = {};\nvar _prng_aes_output = new Array(4);\nvar _prng_aes_buffer = forge.util.createBuffer();\nprng_aes.formatKey = function(key) {\n // convert the key into 32-bit integers\n var tmp = forge.util.createBuffer(key);\n key = new Array(4);\n key[0] = tmp.getInt32();\n key[1] = tmp.getInt32();\n key[2] = tmp.getInt32();\n key[3] = tmp.getInt32();\n\n // return the expanded key\n return forge.aes._expandKey(key, false);\n};\nprng_aes.formatSeed = function(seed) {\n // convert seed into 32-bit integers\n var tmp = forge.util.createBuffer(seed);\n seed = new Array(4);\n seed[0] = tmp.getInt32();\n seed[1] = tmp.getInt32();\n seed[2] = tmp.getInt32();\n seed[3] = tmp.getInt32();\n return seed;\n};\nprng_aes.cipher = function(key, seed) {\n forge.aes._updateBlock(key, seed, _prng_aes_output, false);\n _prng_aes_buffer.putInt32(_prng_aes_output[0]);\n _prng_aes_buffer.putInt32(_prng_aes_output[1]);\n _prng_aes_buffer.putInt32(_prng_aes_output[2]);\n _prng_aes_buffer.putInt32(_prng_aes_output[3]);\n return _prng_aes_buffer.getBytes();\n};\nprng_aes.increment = function(seed) {\n // FIXME: do we care about carry or signed issues?\n ++seed[3];\n return seed;\n};\nprng_aes.md = forge.md.sha256;\n\n/**\n * Creates a new PRNG.\n */\nfunction spawnPrng() {\n var ctx = forge.prng.create(prng_aes);\n\n /**\n * Gets random bytes. If a native secure crypto API is unavailable, this\n * method tries to make the bytes more unpredictable by drawing from data that\n * can be collected from the user of the browser, eg: mouse movement.\n *\n * If a callback is given, this method will be called asynchronously.\n *\n * @param count the number of random bytes to get.\n * @param [callback(err, bytes)] called once the operation completes.\n *\n * @return the random bytes in a string.\n */\n ctx.getBytes = function(count, callback) {\n return ctx.generate(count, callback);\n };\n\n /**\n * Gets random bytes asynchronously. If a native secure crypto API is\n * unavailable, this method tries to make the bytes more unpredictable by\n * drawing from data that can be collected from the user of the browser,\n * eg: mouse movement.\n *\n * @param count the number of random bytes to get.\n *\n * @return the random bytes in a string.\n */\n ctx.getBytesSync = function(count) {\n return ctx.generate(count);\n };\n\n return ctx;\n}\n\n// create default prng context\nvar _ctx = spawnPrng();\n\n// add other sources of entropy only if window.crypto.getRandomValues is not\n// available -- otherwise this source will be automatically used by the prng\nvar getRandomValues = null;\nif(typeof window !== 'undefined') {\n var _crypto = window.crypto || window.msCrypto;\n if(_crypto && _crypto.getRandomValues) {\n getRandomValues = function(arr) {\n return _crypto.getRandomValues(arr);\n };\n }\n}\nif(forge.options.usePureJavaScript ||\n (!forge.util.isNodejs && !getRandomValues)) {\n // if this is a web worker, do not use weak entropy, instead register to\n // receive strong entropy asynchronously from the main thread\n if(typeof window === 'undefined' || window.document === undefined) {\n // FIXME:\n }\n\n // get load time entropy\n _ctx.collectInt(+new Date(), 32);\n\n // add some entropy from navigator object\n if(typeof(navigator) !== 'undefined') {\n var _navBytes = '';\n for(var key in navigator) {\n try {\n if(typeof(navigator[key]) == 'string') {\n _navBytes += navigator[key];\n }\n } catch(e) {\n /* Some navigator keys might not be accessible, e.g. the geolocation\n attribute throws an exception if touched in Mozilla chrome://\n context.\n\n Silently ignore this and just don't use this as a source of\n entropy. */\n }\n }\n _ctx.collect(_navBytes);\n _navBytes = null;\n }\n\n // add mouse and keyboard collectors if jquery is available\n if(jQuery) {\n // set up mouse entropy capture\n jQuery().mousemove(function(e) {\n // add mouse coords\n _ctx.collectInt(e.clientX, 16);\n _ctx.collectInt(e.clientY, 16);\n });\n\n // set up keyboard entropy capture\n jQuery().keypress(function(e) {\n _ctx.collectInt(e.charCode, 8);\n });\n }\n}\n\n/* Random API */\nif(!forge.random) {\n forge.random = _ctx;\n} else {\n // extend forge.random with _ctx\n for(var key in _ctx) {\n forge.random[key] = _ctx[key];\n }\n}\n\n// expose spawn PRNG\nforge.random.createInstance = spawnPrng;\n\nmodule.exports = forge.random;\n\n})(typeof(jQuery) !== 'undefined' ? jQuery : null);\n\n})();\n", + "parsedSrc": "function(e,t,r){var n=r(17);r(155),r(48),r(153),r(3),n.random&&n.random.getBytes?e.exports=n.random:function(t){var r={},i=new Array(4),o=n.util.createBuffer();function a(){var e=n.prng.create(r);return e.getBytes=function(t,r){return e.generate(t,r)},e.getBytesSync=function(t){return e.generate(t)},e}r.formatKey=function(e){var t=n.util.createBuffer(e);return(e=new Array(4))[0]=t.getInt32(),e[1]=t.getInt32(),e[2]=t.getInt32(),e[3]=t.getInt32(),n.aes._expandKey(e,!1)},r.formatSeed=function(e){var t=n.util.createBuffer(e);return(e=new Array(4))[0]=t.getInt32(),e[1]=t.getInt32(),e[2]=t.getInt32(),e[3]=t.getInt32(),e},r.cipher=function(e,t){return n.aes._updateBlock(e,t,i,!1),o.putInt32(i[0]),o.putInt32(i[1]),o.putInt32(i[2]),o.putInt32(i[3]),o.getBytes()},r.increment=function(e){return++e[3],e},r.md=n.md.sha256;var s=a(),u=null;if(\"undefined\"!=typeof window){var c=window.crypto||window.msCrypto;c&&c.getRandomValues&&(u=function(e){return c.getRandomValues(e)})}if(n.options.usePureJavaScript||!n.util.isNodejs&&!u){if(\"undefined\"==typeof window||window.document,s.collectInt(+new Date,32),\"undefined\"!=typeof navigator){var l=\"\";for(var f in navigator)try{\"string\"==typeof navigator[f]&&(l+=navigator[f])}catch(e){}s.collect(l),l=null}t&&(t().mousemove(function(e){s.collectInt(e.clientX,16),s.collectInt(e.clientY,16)}),t().keypress(function(e){s.collectInt(e.charCode,8)}))}if(n.random)for(var f in s)n.random[f]=s[f];else n.random=s;n.random.createInstance=a,e.exports=n.random}(\"undefined\"!=typeof jQuery?jQuery:null)}" }, { - "id": 90, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/core/createError.js", - "name": "./node_modules/axios/lib/core/createError.js", - "index": 201, - "index2": 191, - "size": 625, + "id": 73, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\curl.lib.js\\src\\curl.lib.js", + "name": "./node_modules/curl.lib.js/src/curl.lib.js", + "index": 279, + "index2": 309, + "size": 3417, "cacheable": true, "built": true, "optional": false, @@ -14120,54 +14012,34 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/adapters/xhr.js", - "issuerId": 91, - "issuerName": "./node_modules/axios/lib/adapters/xhr.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\services\\iota.tsx", + "issuerId": null, + "issuerName": "./src/redux/services/iota.tsx", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { - "id": 250, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/index.js", - "name": "./src/redux/epics/index.js" - }, - { - "id": 235, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/node-epics.js", - "name": "./src/redux/epics/node-epics.js" - }, - { - "id": 93, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/services/broker-node.js", - "name": "./src/redux/services/broker-node.js" - }, - { - "id": 232, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/index.js", - "name": "./node_modules/axios/index.js" - }, - { - "id": 231, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/axios.js", - "name": "./node_modules/axios/lib/axios.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx", + "name": "./src/redux/epics/index.tsx" }, { - "id": 54, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/defaults.js", - "name": "./node_modules/axios/lib/defaults.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\node-epics.tsx", + "name": "./src/redux/epics/node-epics.tsx" }, { - "id": 91, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/adapters/xhr.js", - "name": "./node_modules/axios/lib/adapters/xhr.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\services\\iota.tsx", + "name": "./src/redux/services/iota.tsx" } ], "failed": false, @@ -14177,40 +14049,52 @@ ], "reasons": [ { - "moduleId": 91, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/adapters/xhr.js", - "module": "./node_modules/axios/lib/adapters/xhr.js", - "moduleName": "./node_modules/axios/lib/adapters/xhr.js", - "type": "cjs require", - "userRequest": "../core/createError", - "loc": "8:18-48" + "moduleId": 137, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx 0186dcfebbdbe990abfba9f0b541f34d", + "module": "./src/redux/epics/index.tsx + 10 modules", + "moduleName": "./src/redux/epics/index.tsx + 10 modules", + "type": "harmony side effect evaluation", + "userRequest": "curl.lib.js", + "loc": "3:0-36" }, { - "moduleId": 227, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/core/settle.js", - "module": "./node_modules/axios/lib/core/settle.js", - "moduleName": "./node_modules/axios/lib/core/settle.js", - "type": "cjs require", - "userRequest": "./createError", - "loc": "3:18-42" + "moduleId": 137, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx 0186dcfebbdbe990abfba9f0b541f34d", + "module": "./src/redux/epics/index.tsx + 10 modules", + "moduleName": "./src/redux/epics/index.tsx + 10 modules", + "type": "harmony import specifier", + "userRequest": "curl.lib.js", + "loc": "10:4-13" + }, + { + "moduleId": 137, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx 0186dcfebbdbe990abfba9f0b541f34d", + "module": "./src/redux/epics/index.tsx + 10 modules", + "moduleName": "./src/redux/epics/index.tsx + 10 modules", + "type": "harmony import specifier", + "userRequest": "curl.lib.js", + "loc": "116:12-117:20" } ], - "usedExports": true, + "usedExports": [ + "init", + "pow" + ], "providedExports": null, "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 9, - "source": "'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n", - "parsedSrc": "function(e,t,r){\"use strict\";var n=r(226);e.exports=function(e,t,r,i,o){var a=new Error(e);return n(a,t,r,i,o)}}" + "depth": 5, + "source": "const PearlDiver = require('./pearldiver');\nconst Curl = require(\"./curl\");\nconst Const = require('./constants');\nconst Converter = require('iota.crypto.js').converter;\nconst NONCE_TIMESTAMP_LOWER_BOUND = 0;\nconst NONCE_TIMESTAMP_UPPER_BOUND = Converter.fromValue(0xffffffffffffffff);\n\nlet pdInstance;\n\nconst pow = (options, success, error) => {\n let state;\n if ('trytes' in options) {\n state = PearlDiver.prepare(options.trytes);\n } else if ('state' in options) {\n state = PearlDiver.offsetState(options.state);\n } else {\n error(\"Error: no trytes or state matrix provided\");\n }\n let powPromise = PearlDiver.search(pdInstance, state, options.minWeight)\n if(typeof success === 'function') {\n powPromise.then(success).catch(error)\n }\n return powPromise;\n};\n\nconst TAG_TRINARY_START = 2295;\nconst TAG_TRINARY_SIZE = 27;\n\nconst setTimestamp = (state) => {\n const timestamp = state.subarray(Const.TIMESTAMP_START, Const.TIMESTAMP_LOWER_BOUND_START);\n const upper = state.subarray(Const.TIMESTAMP_UPPER_BOUND_START, Const.NONCE_START);\n timestamp.fill(0);\n Converter.fromValue(Date.now()).map((v, i) => timestamp[i] = v);\n state.subarray(Const.TIMESTAMP_LOWER_BOUND_START, Const.TIMESTAMP_UPPER_BOUND_START).fill(0);\n upper.fill(0);\n NONCE_TIMESTAMP_UPPER_BOUND.map((v,i) => upper[i] = v);\n}\n\nconst overrideAttachToTangle = (api) => {\n api.attachToTangle = (\n trunkTransaction, \n branchTransaction, \n minWeight, \n trytesArray, \n callback\n ) => {\n let branch = branchTransaction; \n let trunk = trunkTransaction;\n const curl = new Curl();\n const hash = new Int8Array(Const.HASH_LENGTH);\n var doWork = (txTrytes) => {\n return new Promise(function (resolve, reject) {\n curl.reset();\n const trytes = txTrytes.substr(0, txTrytes.length-81*3).concat(trunk).concat(branch);\n curl.absorb(Converter.trits(trytes), 0, Const.TRANSACTION_LENGTH - Const.HASH_LENGTH);\n Converter.trits(txTrytes.substr(txTrytes.length-81, txTrytes.length)).forEach((v,i) => curl.state[i] = v);\n Converter.trits(txTrytes.substr(TAG_TRINARY_START, TAG_TRINARY_START + TAG_TRINARY_SIZE)).forEach((v,i) => curl.state[i] = v);\n setTimestamp(curl.state);\n pow({ state: Converter.trytes(curl.state), minWeight}).then((nonce) => {\n resolve(trytes.concat(nonce))\n })\n });\n }\n var trytes = []\n function doNext(i) {\n if(i == trytesArray.length) {\n callback(null, trytes);\n } else {\n doWork(trytesArray[i]).then(function(result) {\n console.log('result:', result);\n var resultTrits = Converter.trits(result);\n curl.reset();\n curl.absorb(resultTrits, 0, resultTrits.length);\n curl.squeeze(hash, 0, Const.HASH_LENGTH);\n branch = trunk;\n trunk = Converter.trytes(hash);\n trytes.push(result)\n doNext(i + 1);\n }).catch(callback);\n }\n }\n doNext(0);\n }\n}\n\nmodule.exports = {\n init: () => { \n pdInstance = PearlDiver.instance(); \n if(pdInstance == null) {\n return false;\n }\n return true;\n },\n pow,\n prepare: PearlDiver.prepare,\n setOffset: (o) => {pdInstance.offset = o},\n interrupt: () => interrupt(pdInstance),\n resume: () => PearlDiver.doNext(pdInstance),\n remove: () => pdInstance.queue.unshift(),\n //getHashRows: (c) => c(PearlDiver.getHashCount()),\n overrideAttachToTangle\n}\n", + "parsedSrc": "function(e,t,r){const n=r(183),i=r(85),o=r(37),a=r(88).converter,s=a.fromValue(0x10000000000000000);let u;const c=(e,t,r)=>{let i;\"trytes\"in e?i=n.prepare(e.trytes):\"state\"in e?i=n.offsetState(e.state):r(\"Error: no trytes or state matrix provided\");let o=n.search(u,i,e.minWeight);return\"function\"==typeof t&&o.then(t).catch(r),o};e.exports={init:()=>null!=(u=n.instance()),pow:c,prepare:n.prepare,setOffset:e=>{u.offset=e},interrupt:()=>interrupt(u),resume:()=>n.doNext(u),remove:()=>u.queue.unshift(),overrideAttachToTangle:e=>{e.attachToTangle=((e,t,r,n,u)=>{let l=t,f=e;const h=new i,p=new Int8Array(o.HASH_LENGTH);var d=e=>new Promise(function(t,n){h.reset();const i=e.substr(0,e.length-243).concat(f).concat(l);h.absorb(a.trits(i),0,o.TRANSACTION_LENGTH-o.HASH_LENGTH),a.trits(e.substr(e.length-81,e.length)).forEach((e,t)=>h.state[t]=e),a.trits(e.substr(2295,2322)).forEach((e,t)=>h.state[t]=e),(e=>{const t=e.subarray(o.TIMESTAMP_START,o.TIMESTAMP_LOWER_BOUND_START),r=e.subarray(o.TIMESTAMP_UPPER_BOUND_START,o.NONCE_START);t.fill(0),a.fromValue(Date.now()).map((e,r)=>t[r]=e),e.subarray(o.TIMESTAMP_LOWER_BOUND_START,o.TIMESTAMP_UPPER_BOUND_START).fill(0),r.fill(0),s.map((e,t)=>r[t]=e)})(h.state),c({state:a.trytes(h.state),minWeight:r}).then(e=>{t(i.concat(e))})}),v=[];!function e(t){t==n.length?u(null,v):d(n[t]).then(function(r){console.log(\"result:\",r);var n=a.trits(r);h.reset(),h.absorb(n,0,n.length),h.squeeze(p,0,o.HASH_LENGTH),l=f,f=a.trytes(p),v.push(r),e(t+1)}).catch(u)}(0)})}}}" }, { - "id": 91, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/adapters/xhr.js", - "name": "./node_modules/axios/lib/adapters/xhr.js", - "index": 199, - "index2": 198, - "size": 6170, + "id": 74, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\iota.lib.js\\lib\\iota.js", + "name": "./node_modules/iota.lib.js/lib/iota.js", + "index": 217, + "index2": 273, + "size": 1491, "cacheable": true, "built": true, "optional": false, @@ -14218,49 +14102,34 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/defaults.js", - "issuerId": 54, - "issuerName": "./node_modules/axios/lib/defaults.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\services\\iota.tsx", + "issuerId": null, + "issuerName": "./src/redux/services/iota.tsx", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { - "id": 250, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/index.js", - "name": "./src/redux/epics/index.js" - }, - { - "id": 235, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/node-epics.js", - "name": "./src/redux/epics/node-epics.js" - }, - { - "id": 93, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/services/broker-node.js", - "name": "./src/redux/services/broker-node.js" - }, - { - "id": 232, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/index.js", - "name": "./node_modules/axios/index.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx", + "name": "./src/redux/epics/index.tsx" }, { - "id": 231, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/axios.js", - "name": "./node_modules/axios/lib/axios.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\node-epics.tsx", + "name": "./src/redux/epics/node-epics.tsx" }, { - "id": 54, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/defaults.js", - "name": "./node_modules/axios/lib/defaults.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\services\\iota.tsx", + "name": "./src/redux/services/iota.tsx" } ], "failed": false, @@ -14270,22 +14139,31 @@ ], "reasons": [ { - "moduleId": 54, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/defaults.js", - "module": "./node_modules/axios/lib/defaults.js", - "moduleName": "./node_modules/axios/lib/defaults.js", - "type": "cjs require", - "userRequest": "./adapters/xhr", - "loc": "20:14-39" + "moduleId": 137, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx 0186dcfebbdbe990abfba9f0b541f34d", + "module": "./src/redux/epics/index.tsx + 10 modules", + "moduleName": "./src/redux/epics/index.tsx + 10 modules", + "type": "harmony side effect evaluation", + "userRequest": "iota.lib.js", + "loc": "1:0-36" }, { - "moduleId": 54, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/defaults.js", - "module": "./node_modules/axios/lib/defaults.js", - "moduleName": "./node_modules/axios/lib/defaults.js", - "type": "cjs require", - "userRequest": "./adapters/http", - "loc": "23:14-40" + "moduleId": 137, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx 0186dcfebbdbe990abfba9f0b541f34d", + "module": "./src/redux/epics/index.tsx + 10 modules", + "moduleName": "./src/redux/epics/index.tsx + 10 modules", + "type": "harmony import specifier", + "userRequest": "iota.lib.js", + "loc": "5:15-19" + }, + { + "moduleId": 137, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx 0186dcfebbdbe990abfba9f0b541f34d", + "module": "./src/redux/epics/index.tsx + 10 modules", + "moduleName": "./src/redux/epics/index.tsx + 10 modules", + "type": "harmony import specifier", + "userRequest": "iota.lib.js", + "loc": "6:23-27" } ], "usedExports": true, @@ -14293,17 +14171,17 @@ "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 8, - "source": "'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildURL = require('./../helpers/buildURL');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\nvar btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || require('./../helpers/btoa');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n var loadEvent = 'onreadystatechange';\n var xDomain = false;\n\n // For IE 8/9 CORS support\n // Only supports POST and GET calls and doesn't returns the response headers.\n // DON'T do this for testing b/c XMLHttpRequest is mocked, not XDomainRequest.\n if (process.env.NODE_ENV !== 'test' &&\n typeof window !== 'undefined' &&\n window.XDomainRequest && !('withCredentials' in request) &&\n !isURLSameOrigin(config.url)) {\n request = new window.XDomainRequest();\n loadEvent = 'onload';\n xDomain = true;\n request.onprogress = function handleProgress() {};\n request.ontimeout = function handleTimeout() {};\n }\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n // Listen for ready state\n request[loadEvent] = function handleLoad() {\n if (!request || (request.readyState !== 4 && !xDomain)) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n var response = {\n data: responseData,\n // IE sends 1223 instead of 204 (https://github.com/axios/axios/issues/201)\n status: request.status === 1223 ? 204 : request.status,\n statusText: request.status === 1223 ? 'No Content' : request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n var cookies = require('./../helpers/cookies');\n\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (config.withCredentials) {\n request.withCredentials = true;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n if (config.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (requestData === undefined) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n", - "parsedSrc": "function(e,t,r){\"use strict\";var n=r(8),i=r(227),o=r(225),a=r(224),s=r(223),u=r(90),c=\"undefined\"!=typeof window&&window.btoa&&window.btoa.bind(window)||r(222);e.exports=function(e){return new Promise(function(t,l){var f=e.data,h=e.headers;n.isFormData(f)&&delete h[\"Content-Type\"];var d=new XMLHttpRequest,p=\"onreadystatechange\",v=!1;if(\"undefined\"==typeof window||!window.XDomainRequest||\"withCredentials\"in d||s(e.url)||(d=new window.XDomainRequest,p=\"onload\",v=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var g=e.auth.username||\"\",y=e.auth.password||\"\";h.Authorization=\"Basic \"+c(g+\":\"+y)}if(d.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[p]=function(){if(d&&(4===d.readyState||v)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf(\"file:\"))){var r=\"getAllResponseHeaders\"in d?a(d.getAllResponseHeaders()):null,n={data:e.responseType&&\"text\"!==e.responseType?d.response:d.responseText,status:1223===d.status?204:d.status,statusText:1223===d.status?\"No Content\":d.statusText,headers:r,config:e,request:d};i(t,l,n),d=null}},d.onerror=function(){l(u(\"Network Error\",e,null,d)),d=null},d.ontimeout=function(){l(u(\"timeout of \"+e.timeout+\"ms exceeded\",e,\"ECONNABORTED\",d)),d=null},n.isStandardBrowserEnv()){var m=r(221),b=(e.withCredentials||s(e.url))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;b&&(h[e.xsrfHeaderName]=b)}if(\"setRequestHeader\"in d&&n.forEach(h,function(e,t){void 0===f&&\"content-type\"===t.toLowerCase()?delete h[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if(\"json\"!==e.responseType)throw t}\"function\"==typeof e.onDownloadProgress&&d.addEventListener(\"progress\",e.onDownloadProgress),\"function\"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener(\"progress\",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),l(e),d=null)}),void 0===f&&(f=null),d.send(f)})}}" + "depth": 5, + "source": "var utils = require(\"./utils/utils\");\nvar makeRequest = require('./utils/makeRequest');\nvar api = require(\"./api/api\");\nvar Multisig = require('./multisig/multisig');\n\n\nfunction IOTA(settings) {\n this.setSettings(settings);\n}\n\n\n/**\n* Reset the libraries settings and internal objects\n*\n* @method setSettings\n* @param {Object} settings\n**/\nIOTA.prototype.setSettings = function(settings) {\n // IF NO SETTINGS, SET DEFAULT TO localhost:14265\n settings = settings || {};\n this.version = require('../package.json').version;\n this.host = settings.host || \"http://localhost\";\n this.port = settings.port || 14265;\n this.provider = settings.provider || this.host.replace(/\\/$/, '') + \":\" + this.port;\n this.sandbox = settings.sandbox || false;\n this.token = settings.token || false;\n\n if (this.sandbox) {\n // remove backslash character\n this.sandbox = this.provider.replace(/\\/$/, '');\n this.provider = this.sandbox + '/commands';\n }\n\n this._makeRequest = new makeRequest(this.provider, this.token);\n this.api = new api(this._makeRequest, this.sandbox);\n // this.mam\n // this.flash\n this.utils = utils;\n this.valid = require(\"./utils/inputValidator\");\n this.multisig = new Multisig(this._makeRequest);\n};\n\n\n/**\n* Change the Node the user connects to\n*\n* @method changeNode\n* @param {Object} settings\n**/\nIOTA.prototype.changeNode = function(settings) {\n this.setSettings(settings);\n};\n\nmodule.exports = IOTA;\n", + "parsedSrc": "function(e,t,r){var n=r(31),i=r(93),o=r(189),a=r(186);function s(e){this.setSettings(e)}s.prototype.setSettings=function(e){e=e||{},this.version=r(184).version,this.host=e.host||\"http://localhost\",this.port=e.port||14265,this.provider=e.provider||this.host.replace(/\\/$/,\"\")+\":\"+this.port,this.sandbox=e.sandbox||!1,this.token=e.token||!1,this.sandbox&&(this.sandbox=this.provider.replace(/\\/$/,\"\"),this.provider=this.sandbox+\"/commands\"),this._makeRequest=new i(this.provider,this.token),this.api=new o(this._makeRequest,this.sandbox),this.utils=n,this.valid=r(30),this.multisig=new a(this._makeRequest)},s.prototype.changeNode=function(e){this.setSettings(e)},e.exports=s}" }, { - "id": 92, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/helpers/bind.js", - "name": "./node_modules/axios/lib/helpers/bind.js", - "index": 194, - "index2": 186, - "size": 256, + "id": 75, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\rxjs\\Subject.js", + "name": "./node_modules/rxjs/Subject.js", + "index": 79, + "index2": 93, + "size": 5687, "cacheable": true, "built": true, "optional": false, @@ -14311,44 +14189,29 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/axios.js", - "issuerId": 231, - "issuerName": "./node_modules/axios/lib/axios.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux-observable\\lib\\esm\\createEpicMiddleware.js", + "issuerId": null, + "issuerName": "./node_modules/redux-observable/lib/esm/createEpicMiddleware.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { - "id": 250, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/index.js", - "name": "./src/redux/epics/index.js" - }, - { - "id": 235, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/node-epics.js", - "name": "./src/redux/epics/node-epics.js" - }, - { - "id": 93, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/services/broker-node.js", - "name": "./src/redux/services/broker-node.js" - }, - { - "id": 232, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/index.js", - "name": "./node_modules/axios/index.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux-observable\\lib\\esm\\index.js", + "name": "./node_modules/redux-observable/lib/esm/index.js" }, { - "id": 231, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/axios.js", - "name": "./node_modules/axios/lib/axios.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux-observable\\lib\\esm\\createEpicMiddleware.js", + "name": "./node_modules/redux-observable/lib/esm/createEpicMiddleware.js" } ], "failed": false, @@ -14358,40 +14221,51 @@ ], "reasons": [ { - "moduleId": 8, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/utils.js", - "module": "./node_modules/axios/lib/utils.js", - "moduleName": "./node_modules/axios/lib/utils.js", - "type": "cjs require", - "userRequest": "./helpers/bind", - "loc": "3:11-36" + "moduleId": 19, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux-observable\\lib\\esm\\index.js a52b0d99a65d8f219a4bab56a60e4255", + "module": "./node_modules/redux-observable/lib/esm/index.js + 5 modules", + "moduleName": "./node_modules/redux-observable/lib/esm/index.js + 5 modules", + "type": "harmony side effect evaluation", + "userRequest": "rxjs/Subject", + "loc": "3:0-39" }, { - "moduleId": 231, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/axios/lib/axios.js", - "module": "./node_modules/axios/lib/axios.js", - "moduleName": "./node_modules/axios/lib/axios.js", - "type": "cjs require", - "userRequest": "./helpers/bind", - "loc": "4:11-36" + "moduleId": 19, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux-observable\\lib\\esm\\index.js a52b0d99a65d8f219a4bab56a60e4255", + "module": "./node_modules/redux-observable/lib/esm/index.js + 5 modules", + "moduleName": "./node_modules/redux-observable/lib/esm/index.js + 5 modules", + "type": "harmony import specifier", + "userRequest": "rxjs/Subject", + "loc": "32:19-26" + }, + { + "moduleId": 19, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux-observable\\lib\\esm\\index.js a52b0d99a65d8f219a4bab56a60e4255", + "module": "./node_modules/redux-observable/lib/esm/index.js + 5 modules", + "moduleName": "./node_modules/redux-observable/lib/esm/index.js + 5 modules", + "type": "harmony import specifier", + "userRequest": "rxjs/Subject", + "loc": "34:18-25" } ], - "usedExports": true, + "usedExports": [ + "Subject" + ], "providedExports": null, "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 7, - "source": "'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n", - "parsedSrc": "function(e,t,r){\"use strict\";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n\n */\nvar SubjectSubscriber = (function (_super) {\n __extends(SubjectSubscriber, _super);\n function SubjectSubscriber(destination) {\n _super.call(this, destination);\n this.destination = destination;\n }\n return SubjectSubscriber;\n}(Subscriber_1.Subscriber));\nexports.SubjectSubscriber = SubjectSubscriber;\n/**\n * @class Subject\n */\nvar Subject = (function (_super) {\n __extends(Subject, _super);\n function Subject() {\n _super.call(this);\n this.observers = [];\n this.closed = false;\n this.isStopped = false;\n this.hasError = false;\n this.thrownError = null;\n }\n Subject.prototype[rxSubscriber_1.rxSubscriber] = function () {\n return new SubjectSubscriber(this);\n };\n Subject.prototype.lift = function (operator) {\n var subject = new AnonymousSubject(this, this);\n subject.operator = operator;\n return subject;\n };\n Subject.prototype.next = function (value) {\n if (this.closed) {\n throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();\n }\n if (!this.isStopped) {\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].next(value);\n }\n }\n };\n Subject.prototype.error = function (err) {\n if (this.closed) {\n throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();\n }\n this.hasError = true;\n this.thrownError = err;\n this.isStopped = true;\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].error(err);\n }\n this.observers.length = 0;\n };\n Subject.prototype.complete = function () {\n if (this.closed) {\n throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();\n }\n this.isStopped = true;\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].complete();\n }\n this.observers.length = 0;\n };\n Subject.prototype.unsubscribe = function () {\n this.isStopped = true;\n this.closed = true;\n this.observers = null;\n };\n Subject.prototype._trySubscribe = function (subscriber) {\n if (this.closed) {\n throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();\n }\n else {\n return _super.prototype._trySubscribe.call(this, subscriber);\n }\n };\n /** @deprecated internal use only */ Subject.prototype._subscribe = function (subscriber) {\n if (this.closed) {\n throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();\n }\n else if (this.hasError) {\n subscriber.error(this.thrownError);\n return Subscription_1.Subscription.EMPTY;\n }\n else if (this.isStopped) {\n subscriber.complete();\n return Subscription_1.Subscription.EMPTY;\n }\n else {\n this.observers.push(subscriber);\n return new SubjectSubscription_1.SubjectSubscription(this, subscriber);\n }\n };\n Subject.prototype.asObservable = function () {\n var observable = new Observable_1.Observable();\n observable.source = this;\n return observable;\n };\n Subject.create = function (destination, source) {\n return new AnonymousSubject(destination, source);\n };\n return Subject;\n}(Observable_1.Observable));\nexports.Subject = Subject;\n/**\n * @class AnonymousSubject\n */\nvar AnonymousSubject = (function (_super) {\n __extends(AnonymousSubject, _super);\n function AnonymousSubject(destination, source) {\n _super.call(this);\n this.destination = destination;\n this.source = source;\n }\n AnonymousSubject.prototype.next = function (value) {\n var destination = this.destination;\n if (destination && destination.next) {\n destination.next(value);\n }\n };\n AnonymousSubject.prototype.error = function (err) {\n var destination = this.destination;\n if (destination && destination.error) {\n this.destination.error(err);\n }\n };\n AnonymousSubject.prototype.complete = function () {\n var destination = this.destination;\n if (destination && destination.complete) {\n this.destination.complete();\n }\n };\n /** @deprecated internal use only */ AnonymousSubject.prototype._subscribe = function (subscriber) {\n var source = this.source;\n if (source) {\n return this.source.subscribe(subscriber);\n }\n else {\n return Subscription_1.Subscription.EMPTY;\n }\n };\n return AnonymousSubject;\n}(Subject));\nexports.AnonymousSubject = AnonymousSubject;\n//# sourceMappingURL=Subject.js.map", + "parsedSrc": "function(e,t,r){\"use strict\";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=r(10),o=r(24),a=r(68),s=r(278),u=r(277),c=r(67),l=function(e){function t(t){e.call(this,t),this.destination=t}return n(t,e),t}(o.Subscriber);t.SubjectSubscriber=l;var f=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(t,e),t.prototype[c.rxSubscriber]=function(){return new l(this)},t.prototype.lift=function(e){var t=new h(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,r=t.length,n=t.slice(),i=0;i'] pattern is used to support closure compiler\n\t * the jsdoc signatures are also used to the same effect\n\t *\n\t * ----\n\t *\n\t * int + int + int === n4 [faster]\n\t *\n\t * vs\n\t *\n\t * int === n1 && int === n2 && int === n3\n\t *\n\t * ----\n\t *\n\t * switch (int) { case ints...} [faster]\n\t *\n\t * vs\n\t *\n\t * if (int == 1 && int === 2 ...)\n\t *\n\t * ----\n\t *\n\t * The (first*n1 + second*n2 + third*n3) format used in the property parser\n\t * is a simple way to hash the sequence of characters\n\t * taking into account the index they occur in\n\t * since any number of 3 character sequences could produce duplicates.\n\t *\n\t * On the other hand sequences that are directly tied to the index of the character\n\t * resolve a far more accurate measure, it's also faster\n\t * to evaluate one condition in a switch statement\n\t * than three in an if statement regardless of the added math.\n\t *\n\t * This allows the vendor prefixer to be both small and fast.\n\t */\n\n\tvar nullptn = /^\\0+/g /* matches leading null characters */\n\tvar formatptn = /[\\0\\r\\f]/g /* matches new line, null and formfeed characters */\n\tvar colonptn = /: */g /* splits animation rules */\n\tvar cursorptn = /zoo|gra/ /* assert cursor varient */\n\tvar transformptn = /([,: ])(transform)/g /* vendor prefix transform, older webkit */\n\tvar animationptn = /,+\\s*(?![^(]*[)])/g /* splits multiple shorthand notation animations */\n\tvar propertiesptn = / +\\s*(?![^(]*[)])/g /* animation properties */\n\tvar elementptn = / *[\\0] */g /* selector elements */\n\tvar selectorptn = /,\\r+?/g /* splits selectors */\n\tvar andptn = /([\\t\\r\\n ])*\\f?&/g /* match & */\n\tvar escapeptn = /:global\\(((?:[^\\(\\)\\[\\]]*|\\[.*\\]|\\([^\\(\\)]*\\))*)\\)/g /* matches :global(.*) */\n\tvar invalidptn = /\\W+/g /* removes invalid characters from keyframes */\n\tvar keyframeptn = /@(k\\w+)\\s*(\\S*)\\s*/ /* matches @keyframes $1 */\n\tvar plcholdrptn = /::(place)/g /* match ::placeholder varient */\n\tvar readonlyptn = /:(read-only)/g /* match :read-only varient */\n\tvar beforeptn = /\\s+(?=[{\\];=:>])/g /* matches \\s before ] ; = : */\n\tvar afterptn = /([[}=:>])\\s+/g /* matches \\s after characters [ } = : */\n\tvar tailptn = /(\\{[^{]+?);(?=\\})/g /* matches tail semi-colons ;} */\n\tvar whiteptn = /\\s{2,}/g /* matches repeating whitespace */\n\tvar pseudoptn = /([^\\(])(:+) */g /* pseudo element */\n\tvar writingptn = /[svh]\\w+-[tblr]{2}/ /* match writing mode property values */\n\tvar gradientptn = /([\\w-]+t\\()/g /* match *gradient property */\n\tvar supportsptn = /\\(\\s*(.*)\\s*\\)/g /* match supports (groups) */\n\tvar propertyptn = /([\\s\\S]*?);/g /* match properties leading semicolon */\n\tvar selfptn = /-self|flex-/g /* match flex- and -self in align-self: flex-*; */\n\tvar pseudofmt = /[^]*?(:[rp][el]a[\\w-]+)[^]*/ /* extrats :readonly or :placholder from selector */\n\tvar trimptn = /[ \\t]+$/ /* match tail whitspace */\n\tvar dimensionptn = /stretch|:\\s*\\w+\\-(?:conte|avail)/ /* match max/min/fit-content, fill-available */\n\tvar imgsrcptn = /([^-])(image-set\\()/\n\n\t/* vendors */\n\tvar webkit = '-webkit-'\n\tvar moz = '-moz-'\n\tvar ms = '-ms-'\n\n\t/* character codes */\n\tvar SEMICOLON = 59 /* ; */\n\tvar CLOSEBRACES = 125 /* } */\n\tvar OPENBRACES = 123 /* { */\n\tvar OPENPARENTHESES = 40 /* ( */\n\tvar CLOSEPARENTHESES = 41 /* ) */\n\tvar OPENBRACKET = 91 /* [ */\n\tvar CLOSEBRACKET = 93 /* ] */\n\tvar NEWLINE = 10 /* \\n */\n\tvar CARRIAGE = 13 /* \\r */\n\tvar TAB = 9 /* \\t */\n\tvar AT = 64 /* @ */\n\tvar SPACE = 32 /* */\n\tvar AND = 38 /* & */\n\tvar DASH = 45 /* - */\n\tvar UNDERSCORE = 95 /* _ */\n\tvar STAR = 42 /* * */\n\tvar COMMA = 44 /* , */\n\tvar COLON = 58 /* : */\n\tvar SINGLEQUOTE = 39 /* ' */\n\tvar DOUBLEQUOTE = 34 /* \" */\n\tvar FOWARDSLASH = 47 /* / */\n\tvar GREATERTHAN = 62 /* > */\n\tvar PLUS = 43 /* + */\n\tvar TILDE = 126 /* ~ */\n\tvar NULL = 0 /* \\0 */\n\tvar FORMFEED = 12 /* \\f */\n\tvar VERTICALTAB = 11 /* \\v */\n\n\t/* special identifiers */\n\tvar KEYFRAME = 107 /* k */\n\tvar MEDIA = 109 /* m */\n\tvar SUPPORTS = 115 /* s */\n\tvar PLACEHOLDER = 112 /* p */\n\tvar READONLY = 111 /* o */\n\tvar IMPORT = 105 /* i */\n\tvar CHARSET = 99 /* c */\n\tvar DOCUMENT = 100 /* d */\n\tvar PAGE = 112 /* p */\n\n\tvar column = 1 /* current column */\n\tvar line = 1 /* current line numebr */\n\tvar pattern = 0 /* :pattern */\n\n\tvar cascade = 1 /* #id h1 h2 vs h1#id h2#id */\n\tvar prefix = 1 /* vendor prefix */\n\tvar escape = 1 /* escape :global() pattern */\n\tvar compress = 0 /* compress output */\n\tvar semicolon = 0 /* no/semicolon option */\n\tvar preserve = 0 /* preserve empty selectors */\n\n\t/* empty reference */\n\tvar array = []\n\n\t/* plugins */\n\tvar plugins = []\n\tvar plugged = 0\n\tvar should = null\n\n\t/* plugin context */\n\tvar POSTS = -2\n\tvar PREPS = -1\n\tvar UNKWN = 0\n\tvar PROPS = 1\n\tvar BLCKS = 2\n\tvar ATRUL = 3\n\n\t/* plugin newline context */\n\tvar unkwn = 0\n\n\t/* keyframe animation */\n\tvar keyed = 1\n\tvar key = ''\n\n\t/* selector namespace */\n\tvar nscopealt = ''\n\tvar nscope = ''\n\n\t/**\n\t * Compile\n\t *\n\t * @param {Array} parent\n\t * @param {Array} current\n\t * @param {string} body\n\t * @param {number} id\n\t * @param {number} depth\n\t * @return {string}\n\t */\n\tfunction compile (parent, current, body, id, depth) {\n\t\tvar bracket = 0 /* brackets [] */\n\t\tvar comment = 0 /* comments /* // or /* */\n\t\tvar parentheses = 0 /* functions () */\n\t\tvar quote = 0 /* quotes '', \"\" */\n\n\t\tvar first = 0 /* first character code */\n\t\tvar second = 0 /* second character code */\n\t\tvar code = 0 /* current character code */\n\t\tvar tail = 0 /* previous character code */\n\t\tvar trail = 0 /* character before previous code */\n\t\tvar peak = 0 /* previous non-whitespace code */\n\n\t\tvar counter = 0 /* count sequence termination */\n\t\tvar context = 0 /* track current context */\n\t\tvar atrule = 0 /* track @at-rule context */\n\t\tvar pseudo = 0 /* track pseudo token index */\n\t\tvar caret = 0 /* current character index */\n\t\tvar format = 0 /* control character formating context */\n\t\tvar insert = 0 /* auto semicolon insertion */\n\t\tvar invert = 0 /* inverted selector pattern */\n\t\tvar length = 0 /* generic length address */\n\t\tvar eof = body.length /* end of file(length) */\n\t\tvar eol = eof - 1 /* end of file(characters) */\n\n\t\tvar char = '' /* current character */\n\t\tvar chars = '' /* current buffer of characters */\n\t\tvar child = '' /* next buffer of characters */\n\t\tvar out = '' /* compiled body */\n\t\tvar children = '' /* compiled children */\n\t\tvar flat = '' /* compiled leafs */\n\t\tvar selector /* generic selector address */\n\t\tvar result /* generic address */\n\n\t\t// ...build body\n\t\twhile (caret < eof) {\n\t\t\tcode = body.charCodeAt(caret)\n\n\t\t\t// eof varient\n\t\t\tif (caret === eol) {\n\t\t\t\t// last character + noop context, add synthetic padding for noop context to terminate\n\t\t\t\tif (comment + quote + parentheses + bracket !== 0) {\n\t\t\t\t\tif (comment !== 0) {\n\t\t\t\t\t\tcode = comment === FOWARDSLASH ? NEWLINE : FOWARDSLASH\n\t\t\t\t\t}\n\n\t\t\t\t\tquote = parentheses = bracket = 0\n\t\t\t\t\teof++\n\t\t\t\t\teol++\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (comment + quote + parentheses + bracket === 0) {\n\t\t\t\t// eof varient\n\t\t\t\tif (caret === eol) {\n\t\t\t\t\tif (format > 0) {\n\t\t\t\t\t\tchars = chars.replace(formatptn, '')\n\t\t\t\t\t}\n\n\t\t\t\t\tif (chars.trim().length > 0) {\n\t\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\t\tcase CARRIAGE:\n\t\t\t\t\t\t\tcase NEWLINE: {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\tchars += body.charAt(caret)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tcode = SEMICOLON\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// auto semicolon insertion\n\t\t\t\tif (insert === 1) {\n\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t// false flags\n\t\t\t\t\t\tcase OPENBRACES:\n\t\t\t\t\t\tcase CLOSEBRACES:\n\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\tcase SINGLEQUOTE:\n\t\t\t\t\t\tcase OPENPARENTHESES:\n\t\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\t\tcase COMMA: {\n\t\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ignore\n\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\tcase CARRIAGE:\n\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// valid\n\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\t\tlength = caret\n\t\t\t\t\t\t\tfirst = code\n\t\t\t\t\t\t\tcaret--\n\t\t\t\t\t\t\tcode = SEMICOLON\n\n\t\t\t\t\t\t\twhile (length < eof) {\n\t\t\t\t\t\t\t\tswitch (body.charCodeAt(length++)) {\n\t\t\t\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\t\t\t\tcase CARRIAGE:\n\t\t\t\t\t\t\t\t\tcase SEMICOLON: {\n\t\t\t\t\t\t\t\t\t\t++caret\n\t\t\t\t\t\t\t\t\t\tcode = first\n\t\t\t\t\t\t\t\t\t\tlength = eof\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcase COLON: {\n\t\t\t\t\t\t\t\t\t\tif (format > 0) {\n\t\t\t\t\t\t\t\t\t\t\t++caret\n\t\t\t\t\t\t\t\t\t\t\tcode = first\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcase OPENBRACES: {\n\t\t\t\t\t\t\t\t\t\tlength = eof\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// token varient\n\t\t\t\tswitch (code) {\n\t\t\t\t\tcase OPENBRACES: {\n\t\t\t\t\t\tchars = chars.trim()\n\t\t\t\t\t\tfirst = chars.charCodeAt(0)\n\t\t\t\t\t\tcounter = 1\n\t\t\t\t\t\tlength = ++caret\n\n\t\t\t\t\t\twhile (caret < eof) {\n\t\t\t\t\t\t\tswitch (code = body.charCodeAt(caret)) {\n\t\t\t\t\t\t\t\tcase OPENBRACES: {\n\t\t\t\t\t\t\t\t\tcounter++\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase CLOSEBRACES: {\n\t\t\t\t\t\t\t\t\tcounter--\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\t\t\t\t\tswitch (second = body.charCodeAt(caret + 1)) {\n\t\t\t\t\t\t\t\t\t\t// /*, //\n\t\t\t\t\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\t\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\t\t\t\t\t\t\tcaret = delimited(second, caret, eol, body)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// given \"[\" === 91 & \"]\" === 93 hence forth 91 + 1 + 1 === 93\n\t\t\t\t\t\t\t\tcase OPENBRACKET: {\n\t\t\t\t\t\t\t\t\tcode++\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// given \"(\" === 40 & \")\" === 41 hence forth 40 + 1 === 41\n\t\t\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\t\t\tcode++\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// quote tail delimiter is identical to the head delimiter hence noop,\n\t\t\t\t\t\t\t\t// fallthrough clauses have been shited to the correct tail delimiter\n\t\t\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\t\t\tcase SINGLEQUOTE: {\n\t\t\t\t\t\t\t\t\twhile (caret++ < eol) {\n\t\t\t\t\t\t\t\t\t\tif (body.charCodeAt(caret) === code) {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (counter === 0) {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcaret++\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tchild = body.substring(length, caret)\n\n\t\t\t\t\t\tif (first === NULL) {\n\t\t\t\t\t\t\tfirst = (chars = chars.replace(nullptn, '').trim()).charCodeAt(0)\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tswitch (first) {\n\t\t\t\t\t\t\t// @at-rule\n\t\t\t\t\t\t\tcase AT: {\n\t\t\t\t\t\t\t\tif (format > 0) {\n\t\t\t\t\t\t\t\t\tchars = chars.replace(formatptn, '')\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tsecond = chars.charCodeAt(1)\n\n\t\t\t\t\t\t\t\tswitch (second) {\n\t\t\t\t\t\t\t\t\tcase DOCUMENT:\n\t\t\t\t\t\t\t\t\tcase MEDIA:\n\t\t\t\t\t\t\t\t\tcase SUPPORTS:\n\t\t\t\t\t\t\t\t\tcase DASH: {\n\t\t\t\t\t\t\t\t\t\tselector = current\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\tselector = array\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tchild = compile(current, selector, child, second, depth+1)\n\t\t\t\t\t\t\t\tlength = child.length\n\n\t\t\t\t\t\t\t\t// preserve empty @at-rule\n\t\t\t\t\t\t\t\tif (preserve > 0 && length === 0) {\n\t\t\t\t\t\t\t\t\tlength = chars.length\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// execute plugins, @at-rule context\n\t\t\t\t\t\t\t\tif (plugged > 0) {\n\t\t\t\t\t\t\t\t\tselector = select(array, chars, invert)\n\t\t\t\t\t\t\t\t\tresult = proxy(ATRUL, child, selector, current, line, column, length, second, depth, id)\n\t\t\t\t\t\t\t\t\tchars = selector.join('')\n\n\t\t\t\t\t\t\t\t\tif (result !== void 0) {\n\t\t\t\t\t\t\t\t\t\tif ((length = (child = result.trim()).length) === 0) {\n\t\t\t\t\t\t\t\t\t\t\tsecond = 0\n\t\t\t\t\t\t\t\t\t\t\tchild = ''\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (length > 0) {\n\t\t\t\t\t\t\t\t\tswitch (second) {\n\t\t\t\t\t\t\t\t\t\tcase SUPPORTS: {\n\t\t\t\t\t\t\t\t\t\t\tchars = chars.replace(supportsptn, supports)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tcase DOCUMENT:\n\t\t\t\t\t\t\t\t\t\tcase MEDIA:\n\t\t\t\t\t\t\t\t\t\tcase DASH: {\n\t\t\t\t\t\t\t\t\t\t\tchild = chars + '{' + child + '}'\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tcase KEYFRAME: {\n\t\t\t\t\t\t\t\t\t\t\tchars = chars.replace(keyframeptn, '$1 $2' + (keyed > 0 ? key : ''))\n\t\t\t\t\t\t\t\t\t\t\tchild = chars + '{' + child + '}'\n\n\t\t\t\t\t\t\t\t\t\t\tif (prefix === 1 || (prefix === 2 && vendor('@'+child, 3))) {\n\t\t\t\t\t\t\t\t\t\t\t\tchild = '@' + webkit + child + '@' + child\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tchild = '@' + child\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\tchild = chars + child\n\n\t\t\t\t\t\t\t\t\t\t\tif (id === PAGE) {\n\t\t\t\t\t\t\t\t\t\t\t\tchild = (out += child, '')\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tchild = ''\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// selector\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\tchild = compile(current, select(current, chars, invert), child, id, depth+1)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tchildren += child\n\n\t\t\t\t\t\t// reset\n\t\t\t\t\t\tcontext = 0\n\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\tpseudo = 0\n\t\t\t\t\t\tformat = 0\n\t\t\t\t\t\tinvert = 0\n\t\t\t\t\t\tatrule = 0\n\t\t\t\t\t\tchars = ''\n\t\t\t\t\t\tchild = ''\n\t\t\t\t\t\tcode = body.charCodeAt(++caret)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase CLOSEBRACES:\n\t\t\t\t\tcase SEMICOLON: {\n\t\t\t\t\t\tchars = (format > 0 ? chars.replace(formatptn, '') : chars).trim()\n\n\t\t\t\t\t\tif ((length = chars.length) > 1) {\n\t\t\t\t\t\t\t// monkey-patch missing colon\n\t\t\t\t\t\t\tif (pseudo === 0) {\n\t\t\t\t\t\t\t\tfirst = chars.charCodeAt(0)\n\n\t\t\t\t\t\t\t\t// first character is a letter or dash, buffer has a space character\n\t\t\t\t\t\t\t\tif ((first === DASH || first > 96 && first < 123)) {\n\t\t\t\t\t\t\t\t\tlength = (chars = chars.replace(' ', ':')).length\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// execute plugins, property context\n\t\t\t\t\t\t\tif (plugged > 0) {\n\t\t\t\t\t\t\t\tif ((result = proxy(PROPS, chars, current, parent, line, column, out.length, id, depth, id)) !== void 0) {\n\t\t\t\t\t\t\t\t\tif ((length = (chars = result.trim()).length) === 0) {\n\t\t\t\t\t\t\t\t\t\tchars = '\\0\\0'\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfirst = chars.charCodeAt(0)\n\t\t\t\t\t\t\tsecond = chars.charCodeAt(1)\n\n\t\t\t\t\t\t\tswitch (first) {\n\t\t\t\t\t\t\t\tcase NULL: {\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase AT: {\n\t\t\t\t\t\t\t\t\tif (second === IMPORT || second === CHARSET) {\n\t\t\t\t\t\t\t\t\t\tflat += chars + body.charAt(caret)\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\tif (chars.charCodeAt(length-1) === COLON) {\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tout += property(chars, first, second, chars.charCodeAt(2))\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// reset\n\t\t\t\t\t\tcontext = 0\n\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\tpseudo = 0\n\t\t\t\t\t\tformat = 0\n\t\t\t\t\t\tinvert = 0\n\t\t\t\t\t\tchars = ''\n\t\t\t\t\t\tcode = body.charCodeAt(++caret)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// parse characters\n\t\t\tswitch (code) {\n\t\t\t\tcase CARRIAGE:\n\t\t\t\tcase NEWLINE: {\n\t\t\t\t\t// auto insert semicolon\n\t\t\t\t\tif (comment + quote + parentheses + bracket + semicolon === 0) {\n\t\t\t\t\t\t// valid non-whitespace characters that\n\t\t\t\t\t\t// may precede a newline\n\t\t\t\t\t\tswitch (peak) {\n\t\t\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\t\t\tcase SINGLEQUOTE:\n\t\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\t\tcase AT:\n\t\t\t\t\t\t\tcase TILDE:\n\t\t\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\t\tcase PLUS:\n\t\t\t\t\t\t\tcase FOWARDSLASH:\n\t\t\t\t\t\t\tcase DASH:\n\t\t\t\t\t\t\tcase COLON:\n\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\t\tcase OPENBRACES:\n\t\t\t\t\t\t\tcase CLOSEBRACES: {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t// current buffer has a colon\n\t\t\t\t\t\t\t\tif (pseudo > 0) {\n\t\t\t\t\t\t\t\t\tinsert = 1\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// terminate line comment\n\t\t\t\t\tif (comment === FOWARDSLASH) {\n\t\t\t\t\t\tcomment = 0\n\t\t\t\t\t} else if (cascade + context === 0 && id !== KEYFRAME && chars.length > 0) {\n\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\tchars += '\\0'\n\t\t\t\t\t}\n\n\t\t\t\t\t// execute plugins, newline context\n\t\t\t\t\tif (plugged * unkwn > 0) {\n\t\t\t\t\t\tproxy(UNKWN, chars, current, parent, line, column, out.length, id, depth, id)\n\t\t\t\t\t}\n\n\t\t\t\t\t// next line, reset column position\n\t\t\t\t\tcolumn = 1\n\t\t\t\t\tline++\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase SEMICOLON:\n\t\t\t\tcase CLOSEBRACES: {\n\t\t\t\t\tif (comment + quote + parentheses + bracket === 0) {\n\t\t\t\t\t\tcolumn++\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdefault: {\n\t\t\t\t\t// increment column position\n\t\t\t\t\tcolumn++\n\n\t\t\t\t\t// current character\n\t\t\t\t\tchar = body.charAt(caret)\n\n\t\t\t\t\t// remove comments, escape functions, strings, attributes and prepare selectors\n\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\tif (quote + bracket + comment === 0) {\n\t\t\t\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\t\t\tcase COLON:\n\t\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\t\t\t\tchar = ''\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\tif (code !== SPACE) {\n\t\t\t\t\t\t\t\t\t\t\tchar = ' '\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// escape breaking control characters\n\t\t\t\t\t\tcase NULL: {\n\t\t\t\t\t\t\tchar = '\\\\0'\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase FORMFEED: {\n\t\t\t\t\t\t\tchar = '\\\\f'\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase VERTICALTAB: {\n\t\t\t\t\t\t\tchar = '\\\\v'\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// &\n\t\t\t\t\t\tcase AND: {\n\t\t\t\t\t\t\t// inverted selector pattern i.e html &\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0 && cascade > 0) {\n\t\t\t\t\t\t\t\tinvert = 1\n\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\tchar = '\\f' + char\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ::paceholder, l\n\t\t\t\t\t\t// :read-ony, l\n\t\t\t\t\t\tcase 108: {\n\t\t\t\t\t\t\tif (quote + comment + bracket + pattern === 0 && pseudo > 0) {\n\t\t\t\t\t\t\t\tswitch (caret - pseudo) {\n\t\t\t\t\t\t\t\t\t// ::placeholder\n\t\t\t\t\t\t\t\t\tcase 2: {\n\t\t\t\t\t\t\t\t\t\tif (tail === PLACEHOLDER && body.charCodeAt(caret-3) === COLON) {\n\t\t\t\t\t\t\t\t\t\t\tpattern = tail\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t// :read-only\n\t\t\t\t\t\t\t\t\tcase 8: {\n\t\t\t\t\t\t\t\t\t\tif (trail === READONLY) {\n\t\t\t\t\t\t\t\t\t\t\tpattern = trail\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// :\n\t\t\t\t\t\tcase COLON: {\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0) {\n\t\t\t\t\t\t\t\tpseudo = caret\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// selectors\n\t\t\t\t\t\tcase COMMA: {\n\t\t\t\t\t\t\tif (comment + parentheses + quote + bracket === 0) {\n\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\tchar += '\\r'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// quotes\n\t\t\t\t\t\tcase DOUBLEQUOTE: {\n\t\t\t\t\t\t\tif (comment === 0) {\n\t\t\t\t\t\t\t\tquote = quote === code ? 0 : (quote === 0 ? code : quote)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase SINGLEQUOTE: {\n\t\t\t\t\t\t\tif (comment === 0) {\n\t\t\t\t\t\t\t\tquote = quote === code ? 0 : (quote === 0 ? code : quote)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// attributes\n\t\t\t\t\t\tcase OPENBRACKET: {\n\t\t\t\t\t\t\tif (quote + comment + parentheses === 0) {\n\t\t\t\t\t\t\t\tbracket++\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase CLOSEBRACKET: {\n\t\t\t\t\t\t\tif (quote + comment + parentheses === 0) {\n\t\t\t\t\t\t\t\tbracket--\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// functions\n\t\t\t\t\t\tcase CLOSEPARENTHESES: {\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0) {\n\t\t\t\t\t\t\t\tparentheses--\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0) {\n\t\t\t\t\t\t\t\tif (context === 0) {\n\t\t\t\t\t\t\t\t\tswitch (tail*2 + trail*3) {\n\t\t\t\t\t\t\t\t\t\t// :matches\n\t\t\t\t\t\t\t\t\t\tcase 533: {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// :global, :not, :nth-child etc...\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\tcounter = 0\n\t\t\t\t\t\t\t\t\t\t\tcontext = 1\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tparentheses++\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase AT: {\n\t\t\t\t\t\t\tif (comment + parentheses + quote + bracket + pseudo + atrule === 0) {\n\t\t\t\t\t\t\t\tatrule = 1\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// block/line comments\n\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\t\t\tif (quote + bracket + parentheses > 0) {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tswitch (comment) {\n\t\t\t\t\t\t\t\t// initialize line/block comment context\n\t\t\t\t\t\t\t\tcase 0: {\n\t\t\t\t\t\t\t\t\tswitch (code*2 + body.charCodeAt(caret+1)*3) {\n\t\t\t\t\t\t\t\t\t\t// //\n\t\t\t\t\t\t\t\t\t\tcase 235: {\n\t\t\t\t\t\t\t\t\t\t\tcomment = FOWARDSLASH\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// /*\n\t\t\t\t\t\t\t\t\t\tcase 220: {\n\t\t\t\t\t\t\t\t\t\t\tlength = caret\n\t\t\t\t\t\t\t\t\t\t\tcomment = STAR\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// end block comment context\n\t\t\t\t\t\t\t\tcase STAR: {\n\t\t\t\t\t\t\t\t\tif (code === FOWARDSLASH && tail === STAR && length + 2 !== caret) {\n\t\t\t\t\t\t\t\t\t\t// /* ... */, !\n\t\t\t\t\t\t\t\t\t\tif (body.charCodeAt(length+2) === 33) {\n\t\t\t\t\t\t\t\t\t\t\tout += body.substring(length, caret+1)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tchar = ''\n\t\t\t\t\t\t\t\t\t\tcomment = 0\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// ignore comment blocks\n\t\t\t\t\tif (comment === 0) {\n\t\t\t\t\t\t// aggressive isolation mode, divide each individual selector\n\t\t\t\t\t\t// including selectors in :not function but excluding selectors in :global function\n\t\t\t\t\t\tif (cascade + quote + bracket + atrule === 0 && id !== KEYFRAME && code !== SEMICOLON) {\n\t\t\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\t\tcase TILDE:\n\t\t\t\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\t\t\t\tcase PLUS:\n\t\t\t\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\t\t\tif (context === 0) {\n\t\t\t\t\t\t\t\t\t\t// outside of an isolated context i.e nth-child(<...>)\n\t\t\t\t\t\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\t\t\t\t\t\tcase CARRIAGE: {\n\t\t\t\t\t\t\t\t\t\t\t\tchar = char + '\\0'\n\t\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\t\tchar = '\\0' + char + (code === COMMA ? '' : '\\0')\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t// within an isolated context, sleep untill it's terminated\n\t\t\t\t\t\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\t\t\t\t\t\t// :globa(\n\t\t\t\t\t\t\t\t\t\t\t\tif (pseudo + 7 === caret && tail === 108) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tpseudo = 0\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tcontext = ++counter\n\t\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcase CLOSEPARENTHESES: {\n\t\t\t\t\t\t\t\t\t\t\t\tif ((context = --counter) === 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\t\t\t\t\t\tchar += '\\0'\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\t\t\t\t\tcase NULL:\n\t\t\t\t\t\t\t\t\t\tcase OPENBRACES:\n\t\t\t\t\t\t\t\t\t\tcase CLOSEBRACES:\n\t\t\t\t\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\t\t\t\tcase FORMFEED:\n\t\t\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\t\t\t\t\tcase CARRIAGE: {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\t// ignore in isolated contexts\n\t\t\t\t\t\t\t\t\t\t\tif (context === 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\t\t\t\t\tchar += '\\0'\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// concat buffer of characters\n\t\t\t\t\t\tchars += char\n\n\t\t\t\t\t\t// previous non-whitespace character code\n\t\t\t\t\t\tif (code !== SPACE && code !== TAB) {\n\t\t\t\t\t\t\tpeak = code\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// tail character codes\n\t\t\ttrail = tail\n\t\t\ttail = code\n\n\t\t\t// visit every character\n\t\t\tcaret++\n\t\t}\n\n\t\tlength = out.length\n\n\t\t// preserve empty selector\n \t\tif (preserve > 0) {\n \t\t\tif (length === 0 && children.length === 0 && (current[0].length === 0) === false) {\n \t\t\t\tif (id !== MEDIA || (current.length === 1 && (cascade > 0 ? nscopealt : nscope) === current[0])) {\n\t\t\t\t\tlength = current.join(',').length + 2\n \t\t\t\t}\n \t\t\t}\n\t\t}\n\n\t\tif (length > 0) {\n\t\t\t// cascade isolation mode?\n\t\t\tselector = cascade === 0 && id !== KEYFRAME ? isolate(current) : current\n\n\t\t\t// execute plugins, block context\n\t\t\tif (plugged > 0) {\n\t\t\t\tresult = proxy(BLCKS, out, selector, parent, line, column, length, id, depth, id)\n\n\t\t\t\tif (result !== void 0 && (out = result).length === 0) {\n\t\t\t\t\treturn flat + out + children\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tout = selector.join(',') + '{' + out + '}'\n\n\t\t\tif (prefix*pattern !== 0) {\n\t\t\t\tif (prefix === 2 && !vendor(out, 2))\n\t\t\t\t\tpattern = 0\n\n\t\t\t\tswitch (pattern) {\n\t\t\t\t\t// ::read-only\n\t\t\t\t\tcase READONLY: {\n\t\t\t\t\t\tout = out.replace(readonlyptn, ':'+moz+'$1')+out\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// ::placeholder\n\t\t\t\t\tcase PLACEHOLDER: {\n\t\t\t\t\t\tout = (\n\t\t\t\t\t\t\tout.replace(plcholdrptn, '::' + webkit + 'input-$1') +\n\t\t\t\t\t\t\tout.replace(plcholdrptn, '::' + moz + '$1') +\n\t\t\t\t\t\t\tout.replace(plcholdrptn, ':' + ms + 'input-$1') + out\n\t\t\t\t\t\t)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tpattern = 0\n\t\t\t}\n\t\t}\n\n\t\treturn flat + out + children\n\t}\n\n\t/**\n\t * Select\n\t *\n\t * @param {Array} parent\n\t * @param {string} current\n\t * @param {number} invert\n\t * @return {Array}\n\t */\n\tfunction select (parent, current, invert) {\n\t\tvar selectors = current.trim().split(selectorptn)\n\t\tvar out = selectors\n\n\t\tvar length = selectors.length\n\t\tvar l = parent.length\n\n\t\tswitch (l) {\n\t\t\t// 0-1 parent selectors\n\t\t\tcase 0:\n\t\t\tcase 1: {\n\t\t\t\tfor (var i = 0, selector = l === 0 ? '' : parent[0] + ' '; i < length; ++i) {\n\t\t\t\t\tout[i] = scope(selector, out[i], invert, l).trim()\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// >2 parent selectors, nested\n\t\t\tdefault: {\n\t\t\t\tfor (var i = 0, j = 0, out = []; i < length; ++i) {\n\t\t\t\t\tfor (var k = 0; k < l; ++k) {\n\t\t\t\t\t\tout[j++] = scope(parent[k] + ' ', selectors[i], invert, l).trim()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn out\n\t}\n\n\t/**\n\t * Scope\n\t *\n\t * @param {string} parent\n\t * @param {string} current\n\t * @param {number} invert\n\t * @param {number} level\n\t * @return {string}\n\t */\n\tfunction scope (parent, current, invert, level) {\n\t\tvar selector = current\n\t\tvar code = selector.charCodeAt(0)\n\n\t\t// trim leading whitespace\n\t\tif (code < 33) {\n\t\t\tcode = (selector = selector.trim()).charCodeAt(0)\n\t\t}\n\n\t\tswitch (code) {\n\t\t\t// &\n\t\t\tcase AND: {\n\t\t\t\tswitch (cascade + level) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\tcase 1: {\n\t\t\t\t\t\tif (parent.trim().length === 0) {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\treturn selector.replace(andptn, '$1'+parent.trim())\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// :\n\t\t\tcase COLON: {\n\t\t\t\tswitch (selector.charCodeAt(1)) {\n\t\t\t\t\t// g in :global\n\t\t\t\t\tcase 103: {\n\t\t\t\t\t\tif (escape > 0 && cascade > 0) {\n\t\t\t\t\t\t\treturn selector.replace(escapeptn, '$1').replace(andptn, '$1'+nscope)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\t// :hover\n\t\t\t\t\t\treturn parent.trim() + selector.replace(andptn, '$1'+parent.trim())\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\t// html &\n\t\t\t\tif (invert*cascade > 0 && selector.indexOf('\\f') > 0) {\n\t\t\t\t\treturn selector.replace(andptn, (parent.charCodeAt(0) === COLON ? '' : '$1')+parent.trim())\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn parent + selector\n\t}\n\n\t/**\n\t * Property\n\t *\n\t * @param {string} input\n\t * @param {number} first\n\t * @param {number} second\n\t * @param {number} third\n\t * @return {string}\n\t */\n\tfunction property (input, first, second, third) {\n\t\tvar index = 0\n\t\tvar out = input + ';'\n\t\tvar hash = (first*2) + (second*3) + (third*4)\n\t\tvar cache\n\n\t\t// animation: a, n, i characters\n\t\tif (hash === 944) {\n\t\t\treturn animation(out)\n\t\t} else if (prefix === 0 || (prefix === 2 && !vendor(out, 1))) {\n\t\t\treturn out\n\t\t}\n\n\t\t// vendor prefix\n\t\tswitch (hash) {\n\t\t\t// text-decoration/text-size-adjust/text-shadow/text-align/text-transform: t, e, x\n\t\t\tcase 1015: {\n\t\t\t\t// text-shadow/text-align/text-transform, a\n\t\t\t\treturn out.charCodeAt(10) === 97 ? webkit + out + out : out\n\t\t\t}\n\t\t\t// filter/fill f, i, l\n\t\t\tcase 951: {\n\t\t\t\t// filter, t\n\t\t\t\treturn out.charCodeAt(3) === 116 ? webkit + out + out : out\n\t\t\t}\n\t\t\t// color/column, c, o, l\n\t\t\tcase 963: {\n\t\t\t\t// column, n\n\t\t\t\treturn out.charCodeAt(5) === 110 ? webkit + out + out : out\n\t\t\t}\n\t\t\t// box-decoration-break, b, o, x\n\t\t\tcase 1009: {\n\t\t\t\tif (out.charCodeAt(4) !== 100) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\t// mask, m, a, s\n\t\t\t// clip-path, c, l, i\n\t\t\tcase 969:\n\t\t\tcase 942: {\n\t\t\t\treturn webkit + out + out\n\t\t\t}\n\t\t\t// appearance: a, p, p\n\t\t\tcase 978: {\n\t\t\t\treturn webkit + out + moz + out + out\n\t\t\t}\n\t\t\t// hyphens: h, y, p\n\t\t\t// user-select: u, s, e\n\t\t\tcase 1019:\n\t\t\tcase 983: {\n\t\t\t\treturn webkit + out + moz + out + ms + out + out\n\t\t\t}\n\t\t\t// background/backface-visibility, b, a, c\n\t\t\tcase 883: {\n\t\t\t\t// backface-visibility, -\n\t\t\t\tif (out.charCodeAt(8) === DASH) {\n\t\t\t\t\treturn webkit + out + out\n\t\t\t\t}\n\n\t\t\t\t// image-set(...)\n\t\t\t\tif (out.indexOf('image-set(', 11) > 0) {\n\t\t\t\t\treturn out.replace(imgsrcptn, '$1'+webkit+'$2') + out\n\t\t\t\t}\n\n\t\t\t\treturn out\n\t\t\t}\n\t\t\t// flex: f, l, e\n\t\t\tcase 932: {\n\t\t\t\tif (out.charCodeAt(4) === DASH) {\n\t\t\t\t\tswitch (out.charCodeAt(5)) {\n\t\t\t\t\t\t// flex-grow, g\n\t\t\t\t\t\tcase 103: {\n\t\t\t\t\t\t\treturn webkit + 'box-' + out.replace('-grow', '') + webkit + out + ms + out.replace('grow', 'positive') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// flex-shrink, s\n\t\t\t\t\t\tcase 115: {\n\t\t\t\t\t\t\treturn webkit + out + ms + out.replace('shrink', 'negative') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// flex-basis, b\n\t\t\t\t\t\tcase 98: {\n\t\t\t\t\t\t\treturn webkit + out + ms + out.replace('basis', 'preferred-size') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn webkit + out + ms + out + out\n\t\t\t}\n\t\t\t// order: o, r, d\n\t\t\tcase 964: {\n\t\t\t\treturn webkit + out + ms + 'flex' + '-' + out + out\n\t\t\t}\n\t\t\t// justify-items/justify-content, j, u, s\n\t\t\tcase 1023: {\n\t\t\t\t// justify-content, c\n\t\t\t\tif (out.charCodeAt(8) !== 99) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\n\t\t\t\tcache = out.substring(out.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify')\n\t\t\t\treturn webkit + 'box-pack' + cache + webkit + out + ms + 'flex-pack' + cache + out\n\t\t\t}\n\t\t\t// cursor, c, u, r\n\t\t\tcase 1005: {\n\t\t\t\treturn cursorptn.test(out) ? out.replace(colonptn, ':' + webkit) + out.replace(colonptn, ':' + moz) + out : out\n\t\t\t}\n\t\t\t// writing-mode, w, r, i\n\t\t\tcase 1000: {\n\t\t\t\tcache = out.substring(13).trim()\n\t\t\t\tindex = cache.indexOf('-') + 1\n\n\t\t\t\tswitch (cache.charCodeAt(0)+cache.charCodeAt(index)) {\n\t\t\t\t\t// vertical-lr\n\t\t\t\t\tcase 226: {\n\t\t\t\t\t\tcache = out.replace(writingptn, 'tb')\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// vertical-rl\n\t\t\t\t\tcase 232: {\n\t\t\t\t\t\tcache = out.replace(writingptn, 'tb-rl')\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// horizontal-tb\n\t\t\t\t\tcase 220: {\n\t\t\t\t\t\tcache = out.replace(writingptn, 'lr')\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\treturn out\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn webkit + out + ms + cache + out\n\t\t\t}\n\t\t\t// position: sticky\n\t\t\tcase 1017: {\n\t\t\t\tif (out.indexOf('sticky', 9) === -1) {\n\t\t\t\t\treturn out\n\t\t\t\t}\n\t\t\t}\n\t\t\t// display(flex/inline-flex/inline-box): d, i, s\n\t\t\tcase 975: {\n\t\t\t\tindex = (out = input).length - 10\n\t\t\t\tcache = (out.charCodeAt(index) === 33 ? out.substring(0, index) : out).substring(input.indexOf(':', 7) + 1).trim()\n\n\t\t\t\tswitch (hash = cache.charCodeAt(0) + (cache.charCodeAt(7)|0)) {\n\t\t\t\t\t// inline-\n\t\t\t\t\tcase 203: {\n\t\t\t\t\t\t// inline-box\n\t\t\t\t\t\tif (cache.charCodeAt(8) < 111) {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// inline-box/sticky\n\t\t\t\t\tcase 115: {\n\t\t\t\t\t\tout = out.replace(cache, webkit+cache)+';'+out\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// inline-flex\n\t\t\t\t\t// flex\n\t\t\t\t\tcase 207:\n\t\t\t\t\tcase 102: {\n\t\t\t\t\t\tout = (\n\t\t\t\t\t\t\tout.replace(cache, webkit+(hash > 102 ? 'inline-' : '')+'box')+';'+\n\t\t\t\t\t\t\tout.replace(cache, webkit+cache)+';'+\n\t\t\t\t\t\t\tout.replace(cache, ms+cache+'box')+';'+\n\t\t\t\t\t\t\tout\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn out + ';'\n\t\t\t}\n\t\t\t// align-items, align-center, align-self: a, l, i, -\n\t\t\tcase 938: {\n\t\t\t\tif (out.charCodeAt(5) === DASH) {\n\t\t\t\t\tswitch (out.charCodeAt(6)) {\n\t\t\t\t\t\t// align-items, i\n\t\t\t\t\t\tcase 105: {\n\t\t\t\t\t\t\tcache = out.replace('-items', '')\n\t\t\t\t\t\t\treturn webkit + out + webkit + 'box-' + cache + ms + 'flex-' + cache + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// align-self, s\n\t\t\t\t\t\tcase 115: {\n\t\t\t\t\t\t\treturn webkit + out + ms + 'flex-item-' + out.replace(selfptn, '') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// align-content\n\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\treturn webkit + out + ms + 'flex-line-pack' + out.replace('align-content', '').replace(selfptn, '') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// min/max\n\t\t\tcase 973:\n\t\t\tcase 989: {\n\t\t\t\t// min-/max- height/width/block-size/inline-size\n\t\t\t\tif (out.charCodeAt(3) !== DASH || out.charCodeAt(4) === 122) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\t// height/width: min-content / width: max-content\n\t\t\tcase 931:\n\t\t\tcase 953: {\n\t\t\t\tif (dimensionptn.test(input) === true) {\n\t\t\t\t\t// stretch\n\t\t\t\t\tif ((cache = input.substring(input.indexOf(':') + 1)).charCodeAt(0) === 115)\n\t\t\t\t\t\treturn property(input.replace('stretch', 'fill-available'), first, second, third).replace(':fill-available', ':stretch')\n\t\t\t\t\telse\n\t\t\t\t\t\treturn out.replace(cache, webkit + cache) + out.replace(cache, moz + cache.replace('fill-', '')) + out\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// transform, transition: t, r, a\n\t\t\tcase 962: {\n\t\t\t\tout = webkit + out + (out.charCodeAt(5) === 102 ? ms + out : '') + out\n\n\t\t\t\t// transitions\n\t\t\t\tif (second + third === 211 && out.charCodeAt(13) === 105 && out.indexOf('transform', 10) > 0) {\n\t\t\t\t\treturn out.substring(0, out.indexOf(';', 27) + 1).replace(transformptn, '$1' + webkit + '$2') + out\n\t\t\t\t}\n\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\n\t\treturn out\n\t}\n\n\t/**\n\t * Vendor\n\t *\n\t * @param {string} content\n\t * @param {number} context\n\t * @return {boolean}\n\t */\n\tfunction vendor (content, context) {\n\t\tvar index = content.indexOf(context === 1 ? ':' : '{')\n\t\tvar key = content.substring(0, context !== 3 ? index : 10)\n\t\tvar value = content.substring(index + 1, content.length - 1)\n\n\t\treturn should(context !== 2 ? key : key.replace(pseudofmt, '$1'), value, context)\n\t}\n\n\t/**\n\t * Supports\n\t *\n\t * @param {string} match\n\t * @param {string} group\n\t * @return {string}\n\t */\n\tfunction supports (match, group) {\n\t\tvar out = property(group, group.charCodeAt(0), group.charCodeAt(1), group.charCodeAt(2))\n\n\t\treturn out !== group+';' ? out.replace(propertyptn, ' or ($1)').substring(4) : '('+group+')'\n\t}\n\n\t/**\n\t * Animation\n\t *\n\t * @param {string} input\n\t * @return {string}\n\t */\n\tfunction animation (input) {\n\t\tvar length = input.length\n\t\tvar index = input.indexOf(':', 9) + 1\n\t\tvar declare = input.substring(0, index).trim()\n\t\tvar out = input.substring(index, length-1).trim()\n\n\t\tswitch (input.charCodeAt(9)*keyed) {\n\t\t\tcase 0: {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// animation-*, -\n\t\t\tcase DASH: {\n\t\t\t\t// animation-name, n\n\t\t\t\tif (input.charCodeAt(10) !== 110) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\t// animation/animation-name\n\t\t\tdefault: {\n\t\t\t\t// split in case of multiple animations\n\t\t\t\tvar list = out.split((out = '', animationptn))\n\n\t\t\t\tfor (var i = 0, index = 0, length = list.length; i < length; index = 0, ++i) {\n\t\t\t\t\tvar value = list[i]\n\t\t\t\t\tvar items = value.split(propertiesptn)\n\n\t\t\t\t\twhile (value = items[index]) {\n\t\t\t\t\t\tvar peak = value.charCodeAt(0)\n\n\t\t\t\t\t\tif (keyed === 1 && (\n\t\t\t\t\t\t\t// letters\n\t\t\t\t\t\t\t(peak > AT && peak < 90) || (peak > 96 && peak < 123) || peak === UNDERSCORE ||\n\t\t\t\t\t\t\t// dash but not in sequence i.e --\n\t\t\t\t\t\t\t(peak === DASH && value.charCodeAt(1) !== DASH)\n\t\t\t\t\t\t)) {\n\t\t\t\t\t\t\t// not a number/function\n\t\t\t\t\t\t\tswitch (isNaN(parseFloat(value)) + (value.indexOf('(') !== -1)) {\n\t\t\t\t\t\t\t\tcase 1: {\n\t\t\t\t\t\t\t\t\tswitch (value) {\n\t\t\t\t\t\t\t\t\t\t// not a valid reserved keyword\n\t\t\t\t\t\t\t\t\t\tcase 'infinite': case 'alternate': case 'backwards': case 'running':\n\t\t\t\t\t\t\t\t\t\tcase 'normal': case 'forwards': case 'both': case 'none': case 'linear':\n\t\t\t\t\t\t\t\t\t\tcase 'ease': case 'ease-in': case 'ease-out': case 'ease-in-out':\n\t\t\t\t\t\t\t\t\t\tcase 'paused': case 'reverse': case 'alternate-reverse': case 'inherit':\n\t\t\t\t\t\t\t\t\t\tcase 'initial': case 'unset': case 'step-start': case 'step-end': {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\tvalue += key\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\titems[index++] = value\n\t\t\t\t\t}\n\n\t\t\t\t\tout += (i === 0 ? '' : ',') + items.join(' ')\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tout = declare + out + ';'\n\n\t\tif (prefix === 1 || (prefix === 2 && vendor(out, 1)))\n\t\t\treturn webkit + out + out\n\n\t\treturn out\n\t}\n\n\t/**\n\t * Isolate\n\t *\n\t * @param {Array} current\n\t */\n\tfunction isolate (current) {\n\t\tfor (var i = 0, length = current.length, selector = Array(length), padding, element; i < length; ++i) {\n\t\t\t// split individual elements in a selector i.e h1 h2 === [h1, h2]\n\t\t\tvar elements = current[i].split(elementptn)\n\t\t\tvar out = ''\n\n\t\t\tfor (var j = 0, size = 0, tail = 0, code = 0, l = elements.length; j < l; ++j) {\n\t\t\t\t// empty element\n\t\t\t\tif ((size = (element = elements[j]).length) === 0 && l > 1) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\ttail = out.charCodeAt(out.length-1)\n\t\t\t\tcode = element.charCodeAt(0)\n\t\t\t\tpadding = ''\n\n\t\t\t\tif (j !== 0) {\n\t\t\t\t\t// determine if we need padding\n\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\tcase TILDE:\n\t\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\t\tcase PLUS:\n\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\tpadding = ' '\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tswitch (code) {\n\t\t\t\t\tcase AND: {\n\t\t\t\t\t\telement = padding + nscopealt\n\t\t\t\t\t}\n\t\t\t\t\tcase TILDE:\n\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\tcase PLUS:\n\t\t\t\t\tcase SPACE:\n\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase OPENBRACKET: {\n\t\t\t\t\t\telement = padding + element + nscopealt\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase COLON: {\n\t\t\t\t\t\tswitch (element.charCodeAt(1)*2 + element.charCodeAt(2)*3) {\n\t\t\t\t\t\t\t// :global\n\t\t\t\t\t\t\tcase 530: {\n\t\t\t\t\t\t\t\tif (escape > 0) {\n\t\t\t\t\t\t\t\t\telement = padding + element.substring(8, size - 1)\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// :hover, :nth-child(), ...\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\tif (j < 1 || elements[j-1].length < 1) {\n\t\t\t\t\t\t\t\t\telement = padding + nscopealt + element\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase COMMA: {\n\t\t\t\t\t\tpadding = ''\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\tif (size > 1 && element.indexOf(':') > 0) {\n\t\t\t\t\t\t\telement = padding + element.replace(pseudoptn, '$1' + nscopealt + '$2')\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\telement = padding + element + nscopealt\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tout += element\n\t\t\t}\n\n\t\t\tselector[i] = out.replace(formatptn, '').trim()\n\t\t}\n\n\t\treturn selector\n\t}\n\n\t/**\n\t * Proxy\n\t *\n\t * @param {number} context\n\t * @param {string} content\n\t * @param {Array} selectors\n\t * @param {Array} parents\n\t * @param {number} line\n\t * @param {number} column\n\t * @param {number} length\n\t * @param {number} id\n\t * @param {number} depth\n\t * @param {number} at\n\t * @return {(string|void|*)}\n\t */\n\tfunction proxy (context, content, selectors, parents, line, column, length, id, depth, at) {\n\t\tfor (var i = 0, out = content, next; i < plugged; ++i) {\n\t\t\tswitch (next = plugins[i].call(stylis, context, out, selectors, parents, line, column, length, id, depth, at)) {\n\t\t\t\tcase void 0:\n\t\t\t\tcase false:\n\t\t\t\tcase true:\n\t\t\t\tcase null: {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault: {\n\t\t\t\t\tout = next\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tswitch (out) {\n\t\t\tcase void 0:\n\t\t\tcase false:\n\t\t\tcase true:\n\t\t\tcase null:\n\t\t\tcase content: {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\treturn out\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @param {number} code\n\t * @param {number} index\n\t * @param {number} length\n\t * @param {string} body\n\t * @return {number}\n\t */\n\tfunction delimited (code, index, length, body) {\n\t\tfor (var i = index + 1; i < length; ++i) {\n\t\t\tswitch (body.charCodeAt(i)) {\n\t\t\t\t// /*\n\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\tif (code === STAR) {\n\t\t\t\t\t\tif (body.charCodeAt(i - 1) === STAR && index + 2 !== i) {\n\t\t\t\t\t\t\treturn i + 1\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\t// //\n\t\t\t\tcase NEWLINE: {\n\t\t\t\t\tif (code === FOWARDSLASH) {\n\t\t\t\t\t\treturn i + 1\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn i\n\t}\n\n\t/**\n\t * @param {number} type\n\t * @param {number} index\n\t * @param {number} length\n\t * @param {number} find\n\t * @param {string} body\n\t * @return {number}\n\t */\n\tfunction match (type, index, length, body) {\n\t\tfor (var i = index + 1; i < length; ++i) {\n\t\t\tswitch (body.charCodeAt(i)) {\n\t\t\t\tcase type: {\n\t\t\t\t\treturn i\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn i\n\t}\n\n\t/**\n\t * Minify\n\t *\n\t * @param {(string|*)} output\n\t * @return {string}\n\t */\n\tfunction minify (output) {\n\t\treturn output\n\t\t\t.replace(formatptn, '')\n\t\t\t.replace(beforeptn, '')\n\t\t\t.replace(afterptn, '$1')\n\t\t\t.replace(tailptn, '$1')\n\t\t\t.replace(whiteptn, ' ')\n\t}\n\n\t/**\n\t * Use\n\t *\n\t * @param {(Array|function(...?)|number|void)?} plugin\n\t */\n\tfunction use (plugin) {\n\t\tswitch (plugin) {\n\t\t\tcase void 0:\n\t\t\tcase null: {\n\t\t\t\tplugged = plugins.length = 0\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\tswitch (plugin.constructor) {\n\t\t\t\t\tcase Array: {\n\t\t\t\t\t\tfor (var i = 0, length = plugin.length; i < length; ++i) {\n\t\t\t\t\t\t\tuse(plugin[i])\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase Function: {\n\t\t\t\t\t\tplugins[plugged++] = plugin\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase Boolean: {\n\t\t\t\t\t\tunkwn = !!plugin|0\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n \t\t}\n\n \t\treturn use\n\t}\n\n\t/**\n\t * Set\n\t *\n\t * @param {*} options\n\t */\n\tfunction set (options) {\n\t\tfor (var name in options) {\n\t\t\tvar value = options[name]\n\t\t\tswitch (name) {\n\t\t\t\tcase 'keyframe': keyed = value|0; break\n\t\t\t\tcase 'global': escape = value|0; break\n\t\t\t\tcase 'cascade': cascade = value|0; break\n\t\t\t\tcase 'compress': compress = value|0; break\n\t\t\t\tcase 'semicolon': semicolon = value|0; break\n\t\t\t\tcase 'preserve': preserve = value|0; break\n\t\t\t\tcase 'prefix':\n\t\t\t\t\tshould = null\n\n\t\t\t\t\tif (!value) {\n\t\t\t\t\t\tprefix = 0\n\t\t\t\t\t} else if (typeof value !== 'function') {\n\t\t\t\t\t\tprefix = 1\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprefix = 2\n\t\t\t\t\t\tshould = value\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn set\n\t}\n\n\t/**\n\t * Stylis\n\t *\n\t * @param {string} selector\n\t * @param {string} input\n\t * @return {*}\n\t */\n\tfunction stylis (selector, input) {\n\t\tif (this !== void 0 && this.constructor === stylis) {\n\t\t\treturn factory(selector)\n\t\t}\n\n\t\t// setup\n\t\tvar ns = selector\n\t\tvar code = ns.charCodeAt(0)\n\n\t\t// trim leading whitespace\n\t\tif (code < 33) {\n\t\t\tcode = (ns = ns.trim()).charCodeAt(0)\n\t\t}\n\n\t\t// keyframe/animation namespace\n\t\tif (keyed > 0) {\n\t\t\tkey = ns.replace(invalidptn, code === OPENBRACKET ? '' : '-')\n\t\t}\n\n\t\t// reset, used to assert if a plugin is moneky-patching the return value\n\t\tcode = 1\n\n\t\t// cascade/isolate\n\t\tif (cascade === 1) {\n\t\t\tnscope = ns\n\t\t} else {\n\t\t\tnscopealt = ns\n\t\t}\n\n\t\tvar selectors = [nscope]\n\t\tvar result\n\n\t\t// execute plugins, pre-process context\n\t\tif (plugged > 0) {\n\t\t\tresult = proxy(PREPS, input, selectors, selectors, line, column, 0, 0, 0, 0)\n\n\t\t\tif (result !== void 0 && typeof result === 'string') {\n\t\t\t\tinput = result\n\t\t\t}\n\t\t}\n\n\t\t// build\n\t\tvar output = compile(array, selectors, input, 0, 0)\n\n\t\t// execute plugins, post-process context\n\t\tif (plugged > 0) {\n\t\t\tresult = proxy(POSTS, output, selectors, selectors, line, column, output.length, 0, 0, 0)\n\n\t\t\t// bypass minification\n\t\t\tif (result !== void 0 && typeof(output = result) !== 'string') {\n\t\t\t\tcode = 0\n\t\t\t}\n\t\t}\n\n\t\t// reset\n\t\tkey = ''\n\t\tnscope = ''\n\t\tnscopealt = ''\n\t\tpattern = 0\n\t\tline = 1\n\t\tcolumn = 1\n\n\t\treturn compress*code === 0 ? output : minify(output)\n\t}\n\n\tstylis['use'] = use\n\tstylis['set'] = set\n\n\tif (options !== void 0) {\n\t\tset(options)\n\t}\n\n\treturn stylis\n}));\n", + "parsedSrc": "function(e,t,r){e.exports=function e(t){\"use strict\";var r=/^\\0+/g,n=/[\\0\\r\\f]/g,i=/: */g,o=/zoo|gra/,a=/([,: ])(transform)/g,s=/,+\\s*(?![^(]*[)])/g,u=/ +\\s*(?![^(]*[)])/g,c=/ *[\\0] */g,l=/,\\r+?/g,f=/([\\t\\r\\n ])*\\f?&/g,h=/:global\\(((?:[^\\(\\)\\[\\]]*|\\[.*\\]|\\([^\\(\\)]*\\))*)\\)/g,p=/\\W+/g,d=/@(k\\w+)\\s*(\\S*)\\s*/,v=/::(place)/g,g=/:(read-only)/g,y=/\\s+(?=[{\\];=:>])/g,m=/([[}=:>])\\s+/g,b=/(\\{[^{]+?);(?=\\})/g,_=/\\s{2,}/g,w=/([^\\(])(:+) */g,E=/[svh]\\w+-[tblr]{2}/,S=/\\(\\s*(.*)\\s*\\)/g,x=/([\\s\\S]*?);/g,T=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\\w-]+)[^]*/,k=/stretch|:\\s*\\w+\\-(?:conte|avail)/,O=/([^-])(image-set\\()/,C=\"-webkit-\",I=\"-moz-\",N=\"-ms-\",B=59,R=125,P=123,j=40,H=41,M=91,D=93,U=10,L=13,F=9,z=64,G=32,q=38,V=45,W=95,$=42,K=44,Y=58,X=39,Q=34,J=47,Z=62,ee=43,te=126,re=0,ne=12,ie=11,oe=107,ae=109,se=115,ue=112,ce=111,le=105,fe=99,he=100,pe=112,de=1,ve=1,ge=0,ye=1,me=1,be=1,_e=0,we=0,Ee=0,Se=[],xe=[],Te=0,Ae=null,ke=-2,Oe=-1,Ce=0,Ie=1,Ne=2,Be=3,Re=0,Pe=1,je=\"\",He=\"\",Me=\"\";function De(e,t,i,o,a){for(var s,u,l=0,f=0,h=0,p=0,y=0,m=0,b=0,_=0,E=0,x=0,T=0,A=0,k=0,O=0,W=0,_e=0,xe=0,Ae=0,ke=0,Oe=i.length,Le=Oe-1,We=\"\",$e=\"\",Ke=\"\",Ye=\"\",Xe=\"\",Qe=\"\";W0&&($e=$e.replace(n,\"\")),$e.trim().length>0)){switch(b){case G:case F:case B:case L:case U:break;default:$e+=i.charAt(W)}b=B}if(1===xe)switch(b){case P:case R:case B:case Q:case X:case j:case H:case K:xe=0;case F:case L:case U:case G:break;default:for(xe=0,ke=W,y=b,W--,b=B;ke0&&(++W,b=y);case P:ke=Oe}}switch(b){case P:for($e=$e.trim(),y=$e.charCodeAt(0),T=1,ke=++W;W0&&($e=$e.replace(n,\"\")),m=$e.charCodeAt(1)){case he:case ae:case se:case V:s=t;break;default:s=Se}if(Ke=De(t,s,Ke,m,a+1),ke=Ke.length,Ee>0&&0===ke&&(ke=$e.length),Te>0&&(s=Ue(Se,$e,Ae),u=qe(Be,Ke,s,t,ve,de,ke,m,a,o),$e=s.join(\"\"),void 0!==u&&0===(ke=(Ke=u.trim()).length)&&(m=0,Ke=\"\")),ke>0)switch(m){case se:$e=$e.replace(S,Ge);case he:case ae:case V:Ke=$e+\"{\"+Ke+\"}\";break;case oe:$e=$e.replace(d,\"$1 $2\"+(Pe>0?je:\"\")),Ke=$e+\"{\"+Ke+\"}\",Ke=1===me||2===me&&ze(\"@\"+Ke,3)?\"@\"+C+Ke+\"@\"+Ke:\"@\"+Ke;break;default:Ke=$e+Ke,o===pe&&(Ye+=Ke,Ke=\"\")}else Ke=\"\";break;default:Ke=De(t,Ue(t,$e,Ae),Ke,o,a+1)}Xe+=Ke,A=0,xe=0,O=0,_e=0,Ae=0,k=0,$e=\"\",Ke=\"\",b=i.charCodeAt(++W);break;case R:case B:if($e=(_e>0?$e.replace(n,\"\"):$e).trim(),(ke=$e.length)>1)switch(0===O&&((y=$e.charCodeAt(0))===V||y>96&&y<123)&&(ke=($e=$e.replace(\" \",\":\")).length),Te>0&&void 0!==(u=qe(Ie,$e,t,e,ve,de,Ye.length,o,a,o))&&0===(ke=($e=u.trim()).length)&&($e=\"\\0\\0\"),y=$e.charCodeAt(0),m=$e.charCodeAt(1),y){case re:break;case z:if(m===le||m===fe){Qe+=$e+i.charAt(W);break}default:if($e.charCodeAt(ke-1)===Y)break;Ye+=Fe($e,y,m,$e.charCodeAt(2))}A=0,xe=0,O=0,_e=0,Ae=0,$e=\"\",b=i.charCodeAt(++W)}}switch(b){case L:case U:if(f+p+h+l+we===0)switch(x){case H:case X:case Q:case z:case te:case Z:case $:case ee:case J:case V:case Y:case K:case B:case P:case R:break;default:O>0&&(xe=1)}f===J?f=0:ye+A===0&&o!==oe&&$e.length>0&&(_e=1,$e+=\"\\0\"),Te*Re>0&&qe(Ce,$e,t,e,ve,de,Ye.length,o,a,o),de=1,ve++;break;case B:case R:if(f+p+h+l===0){de++;break}default:switch(de++,We=i.charAt(W),b){case F:case G:if(p+l+f===0)switch(_){case K:case Y:case F:case G:We=\"\";break;default:b!==G&&(We=\" \")}break;case re:We=\"\\\\0\";break;case ne:We=\"\\\\f\";break;case ie:We=\"\\\\v\";break;case q:p+f+l===0&&ye>0&&(Ae=1,_e=1,We=\"\\f\"+We);break;case 108:if(p+f+l+ge===0&&O>0)switch(W-O){case 2:_===ue&&i.charCodeAt(W-3)===Y&&(ge=_);case 8:E===ce&&(ge=E)}break;case Y:p+f+l===0&&(O=W);break;case K:f+h+p+l===0&&(_e=1,We+=\"\\r\");break;case Q:case X:0===f&&(p=p===b?0:0===p?b:p);break;case M:p+f+h===0&&l++;break;case D:p+f+h===0&&l--;break;case H:p+f+l===0&&h--;break;case j:if(p+f+l===0){if(0===A)switch(2*_+3*E){case 533:break;default:T=0,A=1}h++}break;case z:f+h+p+l+O+k===0&&(k=1);break;case $:case J:if(p+l+h>0)break;switch(f){case 0:switch(2*b+3*i.charCodeAt(W+1)){case 235:f=J;break;case 220:ke=W,f=$}break;case $:b===J&&_===$&&ke+2!==W&&(33===i.charCodeAt(ke+2)&&(Ye+=i.substring(ke,W+1)),We=\"\",f=0)}}if(0===f){if(ye+p+l+k===0&&o!==oe&&b!==B)switch(b){case K:case te:case Z:case ee:case H:case j:if(0===A){switch(_){case F:case G:case U:case L:We+=\"\\0\";break;default:We=\"\\0\"+We+(b===K?\"\":\"\\0\")}_e=1}else switch(b){case j:O+7===W&&108===_&&(O=0),A=++T;break;case H:0==(A=--T)&&(_e=1,We+=\"\\0\")}break;case F:case G:switch(_){case re:case P:case R:case B:case K:case ne:case F:case G:case U:case L:break;default:0===A&&(_e=1,We+=\"\\0\")}}$e+=We,b!==G&&b!==F&&(x=b)}}E=_,_=b,W++}if(ke=Ye.length,Ee>0&&0===ke&&0===Xe.length&&0===t[0].length==0&&(o!==ae||1===t.length&&(ye>0?He:Me)===t[0])&&(ke=t.join(\",\").length+2),ke>0){if(s=0===ye&&o!==oe?function(e){for(var t,r,i=0,o=e.length,a=Array(o);i1)){if(h=u.charCodeAt(u.length-1),p=r.charCodeAt(0),t=\"\",0!==l)switch(h){case $:case te:case Z:case ee:case G:case j:break;default:t=\" \"}switch(p){case q:r=t+He;case te:case Z:case ee:case G:case H:case j:break;case M:r=t+r+He;break;case Y:switch(2*r.charCodeAt(1)+3*r.charCodeAt(2)){case 530:if(be>0){r=t+r.substring(8,f-1);break}default:(l<1||s[l-1].length<1)&&(r=t+He+r)}break;case K:t=\"\";default:r=f>1&&r.indexOf(\":\")>0?t+r.replace(w,\"$1\"+He+\"$2\"):t+r+He}u+=r}a[i]=u.replace(n,\"\").trim()}return a}(t):t,Te>0&&void 0!==(u=qe(Ne,Ye,s,e,ve,de,ke,o,a,o))&&0===(Ye=u).length)return Qe+Ye+Xe;if(Ye=s.join(\",\")+\"{\"+Ye+\"}\",me*ge!=0){switch(2!==me||ze(Ye,2)||(ge=0),ge){case ce:Ye=Ye.replace(g,\":\"+I+\"$1\")+Ye;break;case ue:Ye=Ye.replace(v,\"::\"+C+\"input-$1\")+Ye.replace(v,\"::\"+I+\"$1\")+Ye.replace(v,\":\"+N+\"input-$1\")+Ye}ge=0}}return Qe+Ye+Xe}function Ue(e,t,r){var n=t.trim().split(l),i=n,o=n.length,a=e.length;switch(a){case 0:case 1:for(var s=0,u=0===a?\"\":e[0]+\" \";s0&&ye>0)return i.replace(h,\"$1\").replace(f,\"$1\"+Me);break;default:return e.trim()+i.replace(f,\"$1\"+e.trim())}default:if(r*ye>0&&i.indexOf(\"\\f\")>0)return i.replace(f,(e.charCodeAt(0)===Y?\"\":\"$1\")+e.trim())}return e+i}function Fe(e,t,r,n){var c,l=0,f=e+\";\",h=2*t+3*r+4*n;if(944===h)return function(e){var t=e.length,r=e.indexOf(\":\",9)+1,n=e.substring(0,r).trim(),i=e.substring(r,t-1).trim();switch(e.charCodeAt(9)*Pe){case 0:break;case V:if(110!==e.charCodeAt(10))break;default:for(var o=i.split((i=\"\",s)),a=0,r=0,t=o.length;az&&f<90||f>96&&f<123||f===W||f===V&&c.charCodeAt(1)!==V))switch(isNaN(parseFloat(c))+(-1!==c.indexOf(\"(\"))){case 1:switch(c){case\"infinite\":case\"alternate\":case\"backwards\":case\"running\":case\"normal\":case\"forwards\":case\"both\":case\"none\":case\"linear\":case\"ease\":case\"ease-in\":case\"ease-out\":case\"ease-in-out\":case\"paused\":case\"reverse\":case\"alternate-reverse\":case\"inherit\":case\"initial\":case\"unset\":case\"step-start\":case\"step-end\":break;default:c+=je}}l[r++]=c}i+=(0===a?\"\":\",\")+l.join(\" \")}}return i=n+i+\";\",1===me||2===me&&ze(i,1)?C+i+i:i}(f);if(0===me||2===me&&!ze(f,1))return f;switch(h){case 1015:return 97===f.charCodeAt(10)?C+f+f:f;case 951:return 116===f.charCodeAt(3)?C+f+f:f;case 963:return 110===f.charCodeAt(5)?C+f+f:f;case 1009:if(100!==f.charCodeAt(4))break;case 969:case 942:return C+f+f;case 978:return C+f+I+f+f;case 1019:case 983:return C+f+I+f+N+f+f;case 883:return f.charCodeAt(8)===V?C+f+f:f.indexOf(\"image-set(\",11)>0?f.replace(O,\"$1\"+C+\"$2\")+f:f;case 932:if(f.charCodeAt(4)===V)switch(f.charCodeAt(5)){case 103:return C+\"box-\"+f.replace(\"-grow\",\"\")+C+f+N+f.replace(\"grow\",\"positive\")+f;case 115:return C+f+N+f.replace(\"shrink\",\"negative\")+f;case 98:return C+f+N+f.replace(\"basis\",\"preferred-size\")+f}return C+f+N+f+f;case 964:return C+f+N+\"flex-\"+f+f;case 1023:if(99!==f.charCodeAt(8))break;return c=f.substring(f.indexOf(\":\",15)).replace(\"flex-\",\"\").replace(\"space-between\",\"justify\"),C+\"box-pack\"+c+C+f+N+\"flex-pack\"+c+f;case 1005:return o.test(f)?f.replace(i,\":\"+C)+f.replace(i,\":\"+I)+f:f;case 1e3:switch(c=f.substring(13).trim(),l=c.indexOf(\"-\")+1,c.charCodeAt(0)+c.charCodeAt(l)){case 226:c=f.replace(E,\"tb\");break;case 232:c=f.replace(E,\"tb-rl\");break;case 220:c=f.replace(E,\"lr\");break;default:return f}return C+f+N+c+f;case 1017:if(-1===f.indexOf(\"sticky\",9))return f;case 975:switch(l=(f=e).length-10,c=(33===f.charCodeAt(l)?f.substring(0,l):f).substring(e.indexOf(\":\",7)+1).trim(),h=c.charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(c.charCodeAt(8)<111)break;case 115:f=f.replace(c,C+c)+\";\"+f;break;case 207:case 102:f=f.replace(c,C+(h>102?\"inline-\":\"\")+\"box\")+\";\"+f.replace(c,C+c)+\";\"+f.replace(c,N+c+\"box\")+\";\"+f}return f+\";\";case 938:if(f.charCodeAt(5)===V)switch(f.charCodeAt(6)){case 105:return c=f.replace(\"-items\",\"\"),C+f+C+\"box-\"+c+N+\"flex-\"+c+f;case 115:return C+f+N+\"flex-item-\"+f.replace(T,\"\")+f;default:return C+f+N+\"flex-line-pack\"+f.replace(\"align-content\",\"\").replace(T,\"\")+f}break;case 973:case 989:if(f.charCodeAt(3)!==V||122===f.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(c=e.substring(e.indexOf(\":\")+1)).charCodeAt(0)?Fe(e.replace(\"stretch\",\"fill-available\"),t,r,n).replace(\":fill-available\",\":stretch\"):f.replace(c,C+c)+f.replace(c,I+c.replace(\"fill-\",\"\"))+f;break;case 962:if(f=C+f+(102===f.charCodeAt(5)?N+f:\"\")+f,r+n===211&&105===f.charCodeAt(13)&&f.indexOf(\"transform\",10)>0)return f.substring(0,f.indexOf(\";\",27)+1).replace(a,\"$1\"+C+\"$2\")+f}return f}function ze(e,t){var r=e.indexOf(1===t?\":\":\"{\"),n=e.substring(0,3!==t?r:10),i=e.substring(r+1,e.length-1);return Ae(2!==t?n:n.replace(A,\"$1\"),i,t)}function Ge(e,t){var r=Fe(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+\";\"?r.replace(x,\" or ($1)\").substring(4):\"(\"+t+\")\"}function qe(e,t,r,n,i,o,a,s,u,c){for(var l,f=0,h=t;f0&&(je=i.replace(p,o===M?\"\":\"-\")),o=1,1===ye?Me=i:He=i;var a,s=[Me];Te>0&&void 0!==(a=qe(Oe,r,s,s,ve,de,0,0,0,0))&&\"string\"==typeof a&&(r=a);var u=De(Se,s,r,0,0);return Te>0&&void 0!==(a=qe(ke,u,s,s,ve,de,u.length,0,0,0))&&\"string\"!=typeof(u=a)&&(o=0),je=\"\",Me=\"\",He=\"\",ge=0,ve=1,de=1,_e*o==0?u:function(e){return e.replace(n,\"\").replace(y,\"\").replace(m,\"$1\").replace(b,\"$1\").replace(_,\" \")}(u)}return $e.use=function e(t){switch(t){case void 0:case null:Te=xe.length=0;break;default:switch(t.constructor){case Array:for(var r=0,n=t.length;r\n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nvar isObject = require('isobject');\n\nfunction isObjectObject(o) {\n return isObject(o) === true\n && Object.prototype.toString.call(o) === '[object Object]';\n}\n\nmodule.exports = function isPlainObject(o) {\n var ctor,prot;\n\n if (isObjectObject(o) === false) return false;\n\n // If has modified constructor\n ctor = o.constructor;\n if (typeof ctor !== 'function') return false;\n\n // If has modified prototype\n prot = ctor.prototype;\n if (isObjectObject(prot) === false) return false;\n\n // If constructor does not have an Object-specific method\n if (prot.hasOwnProperty('isPrototypeOf') === false) {\n return false;\n }\n\n // Most likely a plain Object\n return true;\n};\n", + "parsedSrc": "function(e,t,r){\"use strict\";\n/*!\n * is-plain-object \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */var n=r(286);function i(e){return!0===n(e)&&\"[object Object]\"===Object.prototype.toString.call(e)}e.exports=function(e){var t,r;return!1!==i(e)&&(\"function\"==typeof(t=e.constructor)&&(!1!==i(r=t.prototype)&&!1!==r.hasOwnProperty(\"isPrototypeOf\")))}}" }, { - "id": 96, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/date-fns/parse/index.js", - "name": "./node_modules/date-fns/parse/index.js", - "index": 180, - "index2": 175, - "size": 8313, + "id": 79, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\symbol-observable\\es\\index.js", + "name": "./node_modules/symbol-observable/es/index.js", + "index": 32, + "index2": 28, + "size": 403, "cacheable": true, "built": true, "optional": false, @@ -14618,39 +14511,29 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/date-fns/add_days/index.js", - "issuerId": 240, - "issuerName": "./node_modules/date-fns/add_days/index.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux\\es\\createStore.js", + "issuerId": null, + "issuerName": "./node_modules/redux/es/createStore.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", - "name": "./src/redux/index.js" - }, - { - "id": 250, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/index.js", - "name": "./src/redux/epics/index.js" - }, - { - "id": 242, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/app-epics.js", - "name": "./src/redux/epics/app-epics.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\components\\overlay\\index.tsx", + "name": "./src/components/overlay/index.tsx" }, { - "id": 241, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/date-fns/sub_days/index.js", - "name": "./node_modules/date-fns/sub_days/index.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux\\es\\index.js", + "name": "./node_modules/redux/es/index.js" }, { - "id": 240, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/date-fns/add_days/index.js", - "name": "./node_modules/date-fns/add_days/index.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux\\es\\createStore.js", + "name": "./node_modules/redux/es/createStore.js" } ], "failed": false, @@ -14660,40 +14543,53 @@ ], "reasons": [ { - "moduleId": 152, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/date-fns/add_milliseconds/index.js", - "module": "./node_modules/date-fns/add_milliseconds/index.js", - "moduleName": "./node_modules/date-fns/add_milliseconds/index.js", - "type": "cjs require", - "userRequest": "../parse/index.js", - "loc": "1:12-40" + "moduleId": 14, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux\\es\\index.js ae92cbda3100c2365631239731abd95d", + "module": "./node_modules/redux/es/index.js + 6 modules", + "moduleName": "./node_modules/redux/es/index.js + 6 modules", + "type": "harmony side effect evaluation", + "userRequest": "symbol-observable", + "loc": "2:0-45" }, { - "moduleId": 240, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/date-fns/add_days/index.js", - "module": "./node_modules/date-fns/add_days/index.js", - "moduleName": "./node_modules/date-fns/add_days/index.js", - "type": "cjs require", - "userRequest": "../parse/index.js", - "loc": "1:12-40" + "moduleId": 14, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux\\es\\index.js ae92cbda3100c2365631239731abd95d", + "module": "./node_modules/redux/es/index.js + 6 modules", + "moduleName": "./node_modules/redux/es/index.js + 6 modules", + "type": "harmony import specifier", + "userRequest": "symbol-observable", + "loc": "232:12-24" + }, + { + "moduleId": 14, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\redux\\es\\index.js ae92cbda3100c2365631239731abd95d", + "module": "./node_modules/redux/es/index.js + 6 modules", + "moduleName": "./node_modules/redux/es/index.js + 6 modules", + "type": "harmony import specifier", + "userRequest": "symbol-observable", + "loc": "247:11-23" } ], - "usedExports": true, - "providedExports": null, + "usedExports": [ + "default" + ], + "providedExports": [ + "default" + ], "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" + "ModuleConcatenation bailout: Module uses injected variables (global, module)" ], - "depth": 6, - "source": "var isDate = require('../is_date/index.js')\n\nvar MILLISECONDS_IN_HOUR = 3600000\nvar MILLISECONDS_IN_MINUTE = 60000\nvar DEFAULT_ADDITIONAL_DIGITS = 2\n\nvar parseTokenDateTimeDelimeter = /[T ]/\nvar parseTokenPlainTime = /:/\n\n// year tokens\nvar parseTokenYY = /^(\\d{2})$/\nvar parseTokensYYY = [\n /^([+-]\\d{2})$/, // 0 additional digits\n /^([+-]\\d{3})$/, // 1 additional digit\n /^([+-]\\d{4})$/ // 2 additional digits\n]\n\nvar parseTokenYYYY = /^(\\d{4})/\nvar parseTokensYYYYY = [\n /^([+-]\\d{4})/, // 0 additional digits\n /^([+-]\\d{5})/, // 1 additional digit\n /^([+-]\\d{6})/ // 2 additional digits\n]\n\n// date tokens\nvar parseTokenMM = /^-(\\d{2})$/\nvar parseTokenDDD = /^-?(\\d{3})$/\nvar parseTokenMMDD = /^-?(\\d{2})-?(\\d{2})$/\nvar parseTokenWww = /^-?W(\\d{2})$/\nvar parseTokenWwwD = /^-?W(\\d{2})-?(\\d{1})$/\n\n// time tokens\nvar parseTokenHH = /^(\\d{2}([.,]\\d*)?)$/\nvar parseTokenHHMM = /^(\\d{2}):?(\\d{2}([.,]\\d*)?)$/\nvar parseTokenHHMMSS = /^(\\d{2}):?(\\d{2}):?(\\d{2}([.,]\\d*)?)$/\n\n// timezone tokens\nvar parseTokenTimezone = /([Z+-].*)$/\nvar parseTokenTimezoneZ = /^(Z)$/\nvar parseTokenTimezoneHH = /^([+-])(\\d{2})$/\nvar parseTokenTimezoneHHMM = /^([+-])(\\d{2}):?(\\d{2})$/\n\n/**\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If an argument is a string, the function tries to parse it.\n * Function accepts complete ISO 8601 formats as well as partial implementations.\n * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601\n *\n * If all above fails, the function passes the given argument to Date constructor.\n *\n * @param {Date|String|Number} argument - the value to convert\n * @param {Object} [options] - the object with options\n * @param {0 | 1 | 2} [options.additionalDigits=2] - the additional number of digits in the extended year format\n * @returns {Date} the parsed date in the local time zone\n *\n * @example\n * // Convert string '2014-02-11T11:30:30' to date:\n * var result = parse('2014-02-11T11:30:30')\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Parse string '+02014101',\n * // if the additional number of digits in the extended year format is 1:\n * var result = parse('+02014101', {additionalDigits: 1})\n * //=> Fri Apr 11 2014 00:00:00\n */\nfunction parse (argument, dirtyOptions) {\n if (isDate(argument)) {\n // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n return new Date(argument.getTime())\n } else if (typeof argument !== 'string') {\n return new Date(argument)\n }\n\n var options = dirtyOptions || {}\n var additionalDigits = options.additionalDigits\n if (additionalDigits == null) {\n additionalDigits = DEFAULT_ADDITIONAL_DIGITS\n } else {\n additionalDigits = Number(additionalDigits)\n }\n\n var dateStrings = splitDateString(argument)\n\n var parseYearResult = parseYear(dateStrings.date, additionalDigits)\n var year = parseYearResult.year\n var restDateString = parseYearResult.restDateString\n\n var date = parseDate(restDateString, year)\n\n if (date) {\n var timestamp = date.getTime()\n var time = 0\n var offset\n\n if (dateStrings.time) {\n time = parseTime(dateStrings.time)\n }\n\n if (dateStrings.timezone) {\n offset = parseTimezone(dateStrings.timezone)\n } else {\n // get offset accurate to hour in timezones that change offset\n offset = new Date(timestamp + time).getTimezoneOffset()\n offset = new Date(timestamp + time + offset * MILLISECONDS_IN_MINUTE).getTimezoneOffset()\n }\n\n return new Date(timestamp + time + offset * MILLISECONDS_IN_MINUTE)\n } else {\n return new Date(argument)\n }\n}\n\nfunction splitDateString (dateString) {\n var dateStrings = {}\n var array = dateString.split(parseTokenDateTimeDelimeter)\n var timeString\n\n if (parseTokenPlainTime.test(array[0])) {\n dateStrings.date = null\n timeString = array[0]\n } else {\n dateStrings.date = array[0]\n timeString = array[1]\n }\n\n if (timeString) {\n var token = parseTokenTimezone.exec(timeString)\n if (token) {\n dateStrings.time = timeString.replace(token[1], '')\n dateStrings.timezone = token[1]\n } else {\n dateStrings.time = timeString\n }\n }\n\n return dateStrings\n}\n\nfunction parseYear (dateString, additionalDigits) {\n var parseTokenYYY = parseTokensYYY[additionalDigits]\n var parseTokenYYYYY = parseTokensYYYYY[additionalDigits]\n\n var token\n\n // YYYY or ±YYYYY\n token = parseTokenYYYY.exec(dateString) || parseTokenYYYYY.exec(dateString)\n if (token) {\n var yearString = token[1]\n return {\n year: parseInt(yearString, 10),\n restDateString: dateString.slice(yearString.length)\n }\n }\n\n // YY or ±YYY\n token = parseTokenYY.exec(dateString) || parseTokenYYY.exec(dateString)\n if (token) {\n var centuryString = token[1]\n return {\n year: parseInt(centuryString, 10) * 100,\n restDateString: dateString.slice(centuryString.length)\n }\n }\n\n // Invalid ISO-formatted year\n return {\n year: null\n }\n}\n\nfunction parseDate (dateString, year) {\n // Invalid ISO-formatted year\n if (year === null) {\n return null\n }\n\n var token\n var date\n var month\n var week\n\n // YYYY\n if (dateString.length === 0) {\n date = new Date(0)\n date.setUTCFullYear(year)\n return date\n }\n\n // YYYY-MM\n token = parseTokenMM.exec(dateString)\n if (token) {\n date = new Date(0)\n month = parseInt(token[1], 10) - 1\n date.setUTCFullYear(year, month)\n return date\n }\n\n // YYYY-DDD or YYYYDDD\n token = parseTokenDDD.exec(dateString)\n if (token) {\n date = new Date(0)\n var dayOfYear = parseInt(token[1], 10)\n date.setUTCFullYear(year, 0, dayOfYear)\n return date\n }\n\n // YYYY-MM-DD or YYYYMMDD\n token = parseTokenMMDD.exec(dateString)\n if (token) {\n date = new Date(0)\n month = parseInt(token[1], 10) - 1\n var day = parseInt(token[2], 10)\n date.setUTCFullYear(year, month, day)\n return date\n }\n\n // YYYY-Www or YYYYWww\n token = parseTokenWww.exec(dateString)\n if (token) {\n week = parseInt(token[1], 10) - 1\n return dayOfISOYear(year, week)\n }\n\n // YYYY-Www-D or YYYYWwwD\n token = parseTokenWwwD.exec(dateString)\n if (token) {\n week = parseInt(token[1], 10) - 1\n var dayOfWeek = parseInt(token[2], 10) - 1\n return dayOfISOYear(year, week, dayOfWeek)\n }\n\n // Invalid ISO-formatted date\n return null\n}\n\nfunction parseTime (timeString) {\n var token\n var hours\n var minutes\n\n // hh\n token = parseTokenHH.exec(timeString)\n if (token) {\n hours = parseFloat(token[1].replace(',', '.'))\n return (hours % 24) * MILLISECONDS_IN_HOUR\n }\n\n // hh:mm or hhmm\n token = parseTokenHHMM.exec(timeString)\n if (token) {\n hours = parseInt(token[1], 10)\n minutes = parseFloat(token[2].replace(',', '.'))\n return (hours % 24) * MILLISECONDS_IN_HOUR +\n minutes * MILLISECONDS_IN_MINUTE\n }\n\n // hh:mm:ss or hhmmss\n token = parseTokenHHMMSS.exec(timeString)\n if (token) {\n hours = parseInt(token[1], 10)\n minutes = parseInt(token[2], 10)\n var seconds = parseFloat(token[3].replace(',', '.'))\n return (hours % 24) * MILLISECONDS_IN_HOUR +\n minutes * MILLISECONDS_IN_MINUTE +\n seconds * 1000\n }\n\n // Invalid ISO-formatted time\n return null\n}\n\nfunction parseTimezone (timezoneString) {\n var token\n var absoluteOffset\n\n // Z\n token = parseTokenTimezoneZ.exec(timezoneString)\n if (token) {\n return 0\n }\n\n // ±hh\n token = parseTokenTimezoneHH.exec(timezoneString)\n if (token) {\n absoluteOffset = parseInt(token[2], 10) * 60\n return (token[1] === '+') ? -absoluteOffset : absoluteOffset\n }\n\n // ±hh:mm or ±hhmm\n token = parseTokenTimezoneHHMM.exec(timezoneString)\n if (token) {\n absoluteOffset = parseInt(token[2], 10) * 60 + parseInt(token[3], 10)\n return (token[1] === '+') ? -absoluteOffset : absoluteOffset\n }\n\n return 0\n}\n\nfunction dayOfISOYear (isoYear, week, day) {\n week = week || 0\n day = day || 0\n var date = new Date(0)\n date.setUTCFullYear(isoYear, 0, 4)\n var fourthOfJanuaryDay = date.getUTCDay() || 7\n var diff = week * 7 + day + 1 - fourthOfJanuaryDay\n date.setUTCDate(date.getUTCDate() + diff)\n return date\n}\n\nmodule.exports = parse\n", - "parsedSrc": "function(e,t,r){var n=r(239),i=36e5,o=6e4,a=2,s=/[T ]/,u=/:/,c=/^(\\d{2})$/,l=[/^([+-]\\d{2})$/,/^([+-]\\d{3})$/,/^([+-]\\d{4})$/],f=/^(\\d{4})/,h=[/^([+-]\\d{4})/,/^([+-]\\d{5})/,/^([+-]\\d{6})/],d=/^-(\\d{2})$/,p=/^-?(\\d{3})$/,v=/^-?(\\d{2})-?(\\d{2})$/,g=/^-?W(\\d{2})$/,y=/^-?W(\\d{2})-?(\\d{1})$/,m=/^(\\d{2}([.,]\\d*)?)$/,b=/^(\\d{2}):?(\\d{2}([.,]\\d*)?)$/,_=/^(\\d{2}):?(\\d{2}):?(\\d{2}([.,]\\d*)?)$/,w=/([Z+-].*)$/,E=/^(Z)$/,S=/^([+-])(\\d{2})$/,x=/^([+-])(\\d{2}):?(\\d{2})$/;function T(e,t,r){t=t||0,r=r||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var i=7*t+r+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+i),n}e.exports=function(e,t){if(n(e))return new Date(e.getTime());if(\"string\"!=typeof e)return new Date(e);var r=(t||{}).additionalDigits;r=null==r?a:Number(r);var A=function(e){var t,r={},n=e.split(s);if(u.test(n[0])?(r.date=null,t=n[0]):(r.date=n[0],t=n[1]),t){var i=w.exec(t);i?(r.time=t.replace(i[1],\"\"),r.timezone=i[1]):r.time=t}return r}(e),k=function(e,t){var r,n=l[t],i=h[t];if(r=f.exec(e)||i.exec(e)){var o=r[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(r=c.exec(e)||n.exec(e)){var a=r[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(A.date,r),O=k.year,C=function(e,t){if(null===t)return null;var r,n,i,o;if(0===e.length)return(n=new Date(0)).setUTCFullYear(t),n;if(r=d.exec(e))return n=new Date(0),i=parseInt(r[1],10)-1,n.setUTCFullYear(t,i),n;if(r=p.exec(e)){n=new Date(0);var a=parseInt(r[1],10);return n.setUTCFullYear(t,0,a),n}if(r=v.exec(e)){n=new Date(0),i=parseInt(r[1],10)-1;var s=parseInt(r[2],10);return n.setUTCFullYear(t,i,s),n}if(r=g.exec(e))return o=parseInt(r[1],10)-1,T(t,o);if(r=y.exec(e)){o=parseInt(r[1],10)-1;var u=parseInt(r[2],10)-1;return T(t,o,u)}return null}(k.restDateString,O);if(C){var I,N=C.getTime(),R=0;return A.time&&(R=function(e){var t,r,n;if(t=m.exec(e))return(r=parseFloat(t[1].replace(\",\",\".\")))%24*i;if(t=b.exec(e))return r=parseInt(t[1],10),n=parseFloat(t[2].replace(\",\",\".\")),r%24*i+n*o;if(t=_.exec(e)){r=parseInt(t[1],10),n=parseInt(t[2],10);var a=parseFloat(t[3].replace(\",\",\".\"));return r%24*i+n*o+1e3*a}return null}(A.time)),A.timezone?I=function(e){var t,r;return(t=E.exec(e))?0:(t=S.exec(e))?(r=60*parseInt(t[2],10),\"+\"===t[1]?-r:r):(t=x.exec(e))?(r=60*parseInt(t[2],10)+parseInt(t[3],10),\"+\"===t[1]?-r:r):0}(A.timezone):(I=new Date(N+R).getTimezoneOffset(),I=new Date(N+R+I*o).getTimezoneOffset()),new Date(N+R+I*o)}return new Date(e)}}" + "depth": 4, + "source": "/* global window */\nimport ponyfill from './ponyfill.js';\n\nvar root;\n\nif (typeof self !== 'undefined') {\n root = self;\n} else if (typeof window !== 'undefined') {\n root = window;\n} else if (typeof global !== 'undefined') {\n root = global;\n} else if (typeof module !== 'undefined') {\n root = module;\n} else {\n root = Function('return this')();\n}\n\nvar result = ponyfill(root);\nexport default result;\n", + "parsedSrc": "function(e,t,r){\"use strict\";(function(e,n){var i,o=r(134);i=\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:void 0!==e?e:n;var a=Object(o.a)(i);t.a=a}).call(this,r(11),r(69)(e))}" }, { - "id": 97, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/raven-js/vendor/json-stringify-safe/stringify.js", - "name": "./node_modules/raven-js/vendor/json-stringify-safe/stringify.js", - "index": 157, - "index2": 151, - "size": 2029, + "id": 80, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\lodash\\toString.js", + "name": "./node_modules/lodash/toString.js", + "index": 358, + "index2": 350, + "size": 580, "cacheable": true, "built": true, "optional": false, @@ -14701,29 +14597,49 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/raven-js/src/raven.js", - "issuerId": 262, - "issuerName": "./node_modules/raven-js/src/raven.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\lodash\\startsWith.js", + "issuerId": 119, + "issuerName": "./node_modules/lodash/startsWith.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { - "id": 263, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/raven-js/src/singleton.js", - "name": "./node_modules/raven-js/src/singleton.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx", + "name": "./src/redux/epics/index.tsx" }, { - "id": 262, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/raven-js/src/raven.js", - "name": "./node_modules/raven-js/src/raven.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\node-epics.tsx", + "name": "./src/redux/epics/node-epics.tsx" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\datamap-generator\\src\\index.js", + "name": "./node_modules/datamap-generator/src/index.js" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\datamap-generator\\src\\datamap.js", + "name": "./node_modules/datamap-generator/src/datamap.js" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\datamap-generator\\src\\utils\\encryption.js", + "name": "./node_modules/datamap-generator/src/utils/encryption.js" + }, + { + "id": 119, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\lodash\\startsWith.js", + "name": "./node_modules/lodash/startsWith.js" } ], "failed": false, @@ -14733,22 +14649,22 @@ ], "reasons": [ { - "moduleId": 55, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/raven-js/src/utils.js", - "module": "./node_modules/raven-js/src/utils.js", - "moduleName": "./node_modules/raven-js/src/utils.js", + "moduleId": 118, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\lodash\\replace.js", + "module": "./node_modules/lodash/replace.js", + "moduleName": "./node_modules/lodash/replace.js", "type": "cjs require", - "userRequest": "../vendor/json-stringify-safe/stringify", - "loc": "1:16-66" + "userRequest": "./toString", + "loc": "1:15-36" }, { - "moduleId": 262, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/raven-js/src/raven.js", - "module": "./node_modules/raven-js/src/raven.js", - "moduleName": "./node_modules/raven-js/src/raven.js", + "moduleId": 119, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\lodash\\startsWith.js", + "module": "./node_modules/lodash/startsWith.js", + "moduleName": "./node_modules/lodash/startsWith.js", "type": "cjs require", - "userRequest": "../vendor/json-stringify-safe/stringify", - "loc": "4:16-66" + "userRequest": "./toString", + "loc": "4:15-36" } ], "usedExports": true, @@ -14756,17 +14672,17 @@ "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 4, - "source": "/*\n json-stringify-safe\n Like JSON.stringify, but doesn't throw on circular references.\n\n Originally forked from https://github.com/isaacs/json-stringify-safe\n version 5.0.1 on 3/8/2017 and modified to handle Errors serialization\n and IE8 compatibility. Tests for this are in test/vendor.\n\n ISC license: https://github.com/isaacs/json-stringify-safe/blob/master/LICENSE\n*/\n\nexports = module.exports = stringify;\nexports.getSerialize = serializer;\n\nfunction indexOf(haystack, needle) {\n for (var i = 0; i < haystack.length; ++i) {\n if (haystack[i] === needle) return i;\n }\n return -1;\n}\n\nfunction stringify(obj, replacer, spaces, cycleReplacer) {\n return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces);\n}\n\n// https://github.com/ftlabs/js-abbreviate/blob/fa709e5f139e7770a71827b1893f22418097fbda/index.js#L95-L106\nfunction stringifyError(value) {\n var err = {\n // These properties are implemented as magical getters and don't show up in for in\n stack: value.stack,\n message: value.message,\n name: value.name\n };\n\n for (var i in value) {\n if (Object.prototype.hasOwnProperty.call(value, i)) {\n err[i] = value[i];\n }\n }\n\n return err;\n}\n\nfunction serializer(replacer, cycleReplacer) {\n var stack = [];\n var keys = [];\n\n if (cycleReplacer == null) {\n cycleReplacer = function(key, value) {\n if (stack[0] === value) {\n return '[Circular ~]';\n }\n return '[Circular ~.' + keys.slice(0, indexOf(stack, value)).join('.') + ']';\n };\n }\n\n return function(key, value) {\n if (stack.length > 0) {\n var thisPos = indexOf(stack, this);\n ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);\n ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);\n\n if (~indexOf(stack, value)) {\n value = cycleReplacer.call(this, key, value);\n }\n } else {\n stack.push(value);\n }\n\n return replacer == null\n ? value instanceof Error ? stringifyError(value) : value\n : replacer.call(this, key, value);\n };\n}\n", - "parsedSrc": "function(e,t){function r(e,t){for(var r=0;r0){var s=r(n,this);~s?n.splice(s+1):n.push(this),~s?i.splice(s,1/0,o):i.push(o),~r(n,a)&&(a=t.call(this,o,a))}else n.push(a);return null==e?a instanceof Error?function(e){var t={stack:e.stack,message:e.message,name:e.name};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}(a):a:e.call(this,o,a)}}(e.exports=function(e,t,r,i){return JSON.stringify(e,n(t,i),r)}).getSerialize=n}" + "depth": 8, + "source": "var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n", + "parsedSrc": "function(e,t,r){var n=r(82);e.exports=function(e){return null==e?\"\":n(e)}}" }, { - "id": 98, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/lodash.isarguments/index.js", - "name": "./node_modules/lodash.isarguments/index.js", - "index": 135, - "index2": 130, - "size": 5712, + "id": 81, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\lodash\\isSymbol.js", + "name": "./node_modules/lodash/isSymbol.js", + "index": 349, + "index2": 344, + "size": 682, "cacheable": true, "built": true, "optional": false, @@ -14774,34 +14690,54 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/flux-standard-action/node_modules/lodash.isplainobject/index.js", - "issuerId": 270, - "issuerName": "./node_modules/flux-standard-action/node_modules/lodash.isplainobject/index.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\lodash\\_baseToString.js", + "issuerId": 82, + "issuerName": "./node_modules/lodash/_baseToString.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { - "id": 272, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/redux-promise/lib/index.js", - "name": "./node_modules/redux-promise/lib/index.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx", + "name": "./src/redux/epics/index.tsx" }, { - "id": 271, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/flux-standard-action/lib/index.js", - "name": "./node_modules/flux-standard-action/lib/index.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\node-epics.tsx", + "name": "./src/redux/epics/node-epics.tsx" }, { - "id": 270, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/flux-standard-action/node_modules/lodash.isplainobject/index.js", - "name": "./node_modules/flux-standard-action/node_modules/lodash.isplainobject/index.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\datamap-generator\\src\\index.js", + "name": "./node_modules/datamap-generator/src/index.js" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\datamap-generator\\src\\datamap.js", + "name": "./node_modules/datamap-generator/src/datamap.js" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\datamap-generator\\src\\utils\\encryption.js", + "name": "./node_modules/datamap-generator/src/utils/encryption.js" + }, + { + "id": 119, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\lodash\\startsWith.js", + "name": "./node_modules/lodash/startsWith.js" + }, + { + "id": 82, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\lodash\\_baseToString.js", + "name": "./node_modules/lodash/_baseToString.js" } ], "failed": false, @@ -14811,22 +14747,22 @@ ], "reasons": [ { - "moduleId": 268, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/lodash.keysin/index.js", - "module": "./node_modules/lodash.keysin/index.js", - "moduleName": "./node_modules/lodash.keysin/index.js", + "moduleId": 82, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\lodash\\_baseToString.js", + "module": "./node_modules/lodash/_baseToString.js", + "moduleName": "./node_modules/lodash/_baseToString.js", "type": "cjs require", - "userRequest": "lodash.isarguments", - "loc": "9:18-47" + "userRequest": "./isSymbol", + "loc": "4:15-36" }, { - "moduleId": 270, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/flux-standard-action/node_modules/lodash.isplainobject/index.js", - "module": "./node_modules/flux-standard-action/node_modules/lodash.isplainobject/index.js", - "moduleName": "./node_modules/flux-standard-action/node_modules/lodash.isplainobject/index.js", + "moduleId": 140, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\lodash\\toNumber.js", + "module": "./node_modules/lodash/toNumber.js", + "moduleName": "./node_modules/lodash/toNumber.js", "type": "cjs require", - "userRequest": "lodash.isarguments", - "loc": "10:18-47" + "userRequest": "./isSymbol", + "loc": "2:15-36" } ], "usedExports": true, @@ -14834,17 +14770,17 @@ "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 5, - "source": "/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nfunction isArguments(value) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&\n (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8-9 which returns 'object' for typed array and other constructors.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\nmodule.exports = isArguments;\n", - "parsedSrc": "function(e,t){var r=9007199254740991,n=\"[object Arguments]\",i=\"[object Function]\",o=\"[object GeneratorFunction]\",a=Object.prototype,s=a.hasOwnProperty,u=a.toString,c=a.propertyIsEnumerable;e.exports=function(e){return function(e){return function(e){return!!e&&\"object\"==typeof e}(e)&&function(e){return null!=e&&function(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&(\"object\"==t||\"function\"==t)}(e)?u.call(e):\"\";return t==i||t==o}(e)}(e)}(e)&&s.call(e,\"callee\")&&(!c.call(e,\"callee\")||u.call(e)==n)}}" + "depth": 9, + "source": "var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n", + "parsedSrc": "function(e,t,r){var n=r(146),i=r(143),o=\"[object Symbol]\";e.exports=function(e){return\"symbol\"==typeof e||i(e)&&n(e)==o}}" }, { - "id": 99, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/operators/mergeMap.js", - "name": "./node_modules/rxjs/operators/mergeMap.js", - "index": 129, - "index2": 123, - "size": 6653, + "id": 82, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\lodash\\_baseToString.js", + "name": "./node_modules/lodash/_baseToString.js", + "index": 343, + "index2": 345, + "size": 1154, "cacheable": true, "built": true, "optional": false, @@ -14852,34 +14788,49 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/operator/mergeMap.js", - "issuerId": 246, - "issuerName": "./node_modules/rxjs/operator/mergeMap.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\lodash\\startsWith.js", + "issuerId": 119, + "issuerName": "./node_modules/lodash/startsWith.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { - "id": 250, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/index.js", - "name": "./src/redux/epics/index.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx", + "name": "./src/redux/epics/index.tsx" }, { - "id": 247, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/add/operator/mergeMap.js", - "name": "./node_modules/rxjs/add/operator/mergeMap.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\node-epics.tsx", + "name": "./src/redux/epics/node-epics.tsx" }, { - "id": 246, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/operator/mergeMap.js", - "name": "./node_modules/rxjs/operator/mergeMap.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\datamap-generator\\src\\index.js", + "name": "./node_modules/datamap-generator/src/index.js" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\datamap-generator\\src\\datamap.js", + "name": "./node_modules/datamap-generator/src/datamap.js" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\datamap-generator\\src\\utils\\encryption.js", + "name": "./node_modules/datamap-generator/src/utils/encryption.js" + }, + { + "id": 119, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\lodash\\startsWith.js", + "name": "./node_modules/lodash/startsWith.js" } ], "failed": false, @@ -14889,22 +14840,22 @@ ], "reasons": [ { - "moduleId": 246, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/operator/mergeMap.js", - "module": "./node_modules/rxjs/operator/mergeMap.js", - "moduleName": "./node_modules/rxjs/operator/mergeMap.js", + "moduleId": 80, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\lodash\\toString.js", + "module": "./node_modules/lodash/toString.js", + "moduleName": "./node_modules/lodash/toString.js", "type": "cjs require", - "userRequest": "../operators/mergeMap", - "loc": "2:17-49" + "userRequest": "./_baseToString", + "loc": "1:19-45" }, { - "moduleId": 274, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/operators/mergeAll.js", - "module": "./node_modules/rxjs/operators/mergeAll.js", - "moduleName": "./node_modules/rxjs/operators/mergeAll.js", + "moduleId": 119, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\lodash\\startsWith.js", + "module": "./node_modules/lodash/startsWith.js", + "moduleName": "./node_modules/lodash/startsWith.js", "type": "cjs require", - "userRequest": "./mergeMap", - "loc": "2:17-38" + "userRequest": "./_baseToString", + "loc": "2:19-45" } ], "usedExports": true, @@ -14912,17 +14863,17 @@ "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 5, - "source": "\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar subscribeToResult_1 = require('../util/subscribeToResult');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\n/* tslint:enable:max-line-length */\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable.\n *\n * Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link mergeAll}.\n *\n * \n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an Observable, and then merging those resulting Observables and\n * emitting the results of this merger.\n *\n * @example Map and flatten each letter to an Observable ticking every 1 second\n * var letters = Rx.Observable.of('a', 'b', 'c');\n * var result = letters.mergeMap(x =>\n * Rx.Observable.interval(1000).map(i => x+i)\n * );\n * result.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // a0\n * // b0\n * // c0\n * // a1\n * // b1\n * // c1\n * // continues to list a,b,c with respective ascending integers\n *\n * @see {@link concatMap}\n * @see {@link exhaustMap}\n * @see {@link merge}\n * @see {@link mergeAll}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n * @see {@link switchMap}\n *\n * @param {function(value: T, ?index: number): ObservableInput} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input\n * Observables being subscribed to concurrently.\n * @return {Observable} An Observable that emits the result of applying the\n * projection function (and the optional `resultSelector`) to each item emitted\n * by the source Observable and merging the results of the Observables obtained\n * from this transformation.\n * @method mergeMap\n * @owner Observable\n */\nfunction mergeMap(project, resultSelector, concurrent) {\n if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\n return function mergeMapOperatorFunction(source) {\n if (typeof resultSelector === 'number') {\n concurrent = resultSelector;\n resultSelector = null;\n }\n return source.lift(new MergeMapOperator(project, resultSelector, concurrent));\n };\n}\nexports.mergeMap = mergeMap;\nvar MergeMapOperator = (function () {\n function MergeMapOperator(project, resultSelector, concurrent) {\n if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\n this.project = project;\n this.resultSelector = resultSelector;\n this.concurrent = concurrent;\n }\n MergeMapOperator.prototype.call = function (observer, source) {\n return source.subscribe(new MergeMapSubscriber(observer, this.project, this.resultSelector, this.concurrent));\n };\n return MergeMapOperator;\n}());\nexports.MergeMapOperator = MergeMapOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar MergeMapSubscriber = (function (_super) {\n __extends(MergeMapSubscriber, _super);\n function MergeMapSubscriber(destination, project, resultSelector, concurrent) {\n if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\n _super.call(this, destination);\n this.project = project;\n this.resultSelector = resultSelector;\n this.concurrent = concurrent;\n this.hasCompleted = false;\n this.buffer = [];\n this.active = 0;\n this.index = 0;\n }\n MergeMapSubscriber.prototype._next = function (value) {\n if (this.active < this.concurrent) {\n this._tryNext(value);\n }\n else {\n this.buffer.push(value);\n }\n };\n MergeMapSubscriber.prototype._tryNext = function (value) {\n var result;\n var index = this.index++;\n try {\n result = this.project(value, index);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.active++;\n this._innerSub(result, value, index);\n };\n MergeMapSubscriber.prototype._innerSub = function (ish, value, index) {\n this.add(subscribeToResult_1.subscribeToResult(this, ish, value, index));\n };\n MergeMapSubscriber.prototype._complete = function () {\n this.hasCompleted = true;\n if (this.active === 0 && this.buffer.length === 0) {\n this.destination.complete();\n }\n };\n MergeMapSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n if (this.resultSelector) {\n this._notifyResultSelector(outerValue, innerValue, outerIndex, innerIndex);\n }\n else {\n this.destination.next(innerValue);\n }\n };\n MergeMapSubscriber.prototype._notifyResultSelector = function (outerValue, innerValue, outerIndex, innerIndex) {\n var result;\n try {\n result = this.resultSelector(outerValue, innerValue, outerIndex, innerIndex);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(result);\n };\n MergeMapSubscriber.prototype.notifyComplete = function (innerSub) {\n var buffer = this.buffer;\n this.remove(innerSub);\n this.active--;\n if (buffer.length > 0) {\n this._next(buffer.shift());\n }\n else if (this.active === 0 && this.hasCompleted) {\n this.destination.complete();\n }\n };\n return MergeMapSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\nexports.MergeMapSubscriber = MergeMapSubscriber;\n//# sourceMappingURL=mergeMap.js.map", - "parsedSrc": "function(e,t,r){\"use strict\";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=r(59),o=r(60);t.mergeMap=function(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),function(n){return\"number\"==typeof t&&(r=t,t=null),n.lift(new a(e,t,r))}};var a=function(){function e(e,t,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=r}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.resultSelector,this.concurrent))},e}();t.MergeMapOperator=a;var s=function(e){function t(t,r,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY),e.call(this,t),this.project=r,this.resultSelector=n,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return n(t,e),t.prototype._next=function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.OuterSubscriber);t.MergeMapSubscriber=s}" + "depth": 8, + "source": "var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n", + "parsedSrc": "function(e,t,r){var n=r(52),i=r(148),o=r(147),a=r(81),s=1/0,u=n?n.prototype:void 0,c=u?u.toString:void 0;e.exports=function e(t){if(\"string\"==typeof t)return t;if(o(t))return i(t,e)+\"\";if(a(t))return c?c.call(t):\"\";var r=t+\"\";return\"0\"==r&&1/t==-s?\"-0\":r}}" }, { - "id": 100, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/observable/PromiseObservable.js", - "name": "./node_modules/rxjs/observable/PromiseObservable.js", - "index": 117, - "index2": 110, - "size": 4713, + "id": 83, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\node-forge\\lib\\md.js", + "name": "./node_modules/node-forge/lib/md.js", + "index": 337, + "index2": 328, + "size": 253, "cacheable": true, "built": true, "optional": false, @@ -14930,34 +14881,49 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/observable/fromPromise.js", - "issuerId": 95, - "issuerName": "./node_modules/rxjs/observable/fromPromise.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\node-forge\\lib\\sha512.js", + "issuerId": 120, + "issuerName": "./node_modules/node-forge/lib/sha512.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { - "id": 250, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/index.js", - "name": "./src/redux/epics/index.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx", + "name": "./src/redux/epics/index.tsx" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\node-epics.tsx", + "name": "./src/redux/epics/node-epics.tsx" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\datamap-generator\\src\\index.js", + "name": "./node_modules/datamap-generator/src/index.js" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\datamap-generator\\src\\datamap.js", + "name": "./node_modules/datamap-generator/src/datamap.js" }, { - "id": 235, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/epics/node-epics.js", - "name": "./src/redux/epics/node-epics.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\datamap-generator\\src\\utils\\encryption.js", + "name": "./node_modules/datamap-generator/src/utils/encryption.js" }, { - "id": 95, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/observable/fromPromise.js", - "name": "./node_modules/rxjs/observable/fromPromise.js" + "id": 120, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\node-forge\\lib\\sha512.js", + "name": "./node_modules/node-forge/lib/sha512.js" } ], "failed": false, @@ -14967,22 +14933,22 @@ ], "reasons": [ { - "moduleId": 95, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/observable/fromPromise.js", - "module": "./node_modules/rxjs/observable/fromPromise.js", - "moduleName": "./node_modules/rxjs/observable/fromPromise.js", + "moduleId": 48, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\node-forge\\lib\\sha256.js", + "module": "./node_modules/node-forge/lib/sha256.js", + "moduleName": "./node_modules/node-forge/lib/sha256.js", "type": "cjs require", - "userRequest": "./PromiseObservable", - "loc": "2:26-56" + "userRequest": "./md", + "loc": "11:0-15" }, { - "moduleId": 280, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/observable/FromObservable.js", - "module": "./node_modules/rxjs/observable/FromObservable.js", - "moduleName": "./node_modules/rxjs/observable/FromObservable.js", + "moduleId": 120, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\node-forge\\lib\\sha512.js", + "module": "./node_modules/node-forge/lib/sha512.js", + "moduleName": "./node_modules/node-forge/lib/sha512.js", "type": "cjs require", - "userRequest": "./PromiseObservable", - "loc": "10:26-56" + "userRequest": "./md", + "loc": "14:0-15" } ], "usedExports": true, @@ -14990,17 +14956,17 @@ "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 5, - "source": "\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar root_1 = require('../util/root');\nvar Observable_1 = require('../Observable');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar PromiseObservable = (function (_super) {\n __extends(PromiseObservable, _super);\n function PromiseObservable(promise, scheduler) {\n _super.call(this);\n this.promise = promise;\n this.scheduler = scheduler;\n }\n /**\n * Converts a Promise to an Observable.\n *\n * Returns an Observable that just emits the Promise's\n * resolved value, then completes.\n *\n * Converts an ES2015 Promise or a Promises/A+ spec compliant Promise to an\n * Observable. If the Promise resolves with a value, the output Observable\n * emits that resolved value as a `next`, and then completes. If the Promise\n * is rejected, then the output Observable emits the corresponding Error.\n *\n * @example Convert the Promise returned by Fetch to an Observable\n * var result = Rx.Observable.fromPromise(fetch('http://myserver.com/'));\n * result.subscribe(x => console.log(x), e => console.error(e));\n *\n * @see {@link bindCallback}\n * @see {@link from}\n *\n * @param {PromiseLike} promise The promise to be converted.\n * @param {Scheduler} [scheduler] An optional IScheduler to use for scheduling\n * the delivery of the resolved value (or the rejection).\n * @return {Observable} An Observable which wraps the Promise.\n * @static true\n * @name fromPromise\n * @owner Observable\n */\n PromiseObservable.create = function (promise, scheduler) {\n return new PromiseObservable(promise, scheduler);\n };\n /** @deprecated internal use only */ PromiseObservable.prototype._subscribe = function (subscriber) {\n var _this = this;\n var promise = this.promise;\n var scheduler = this.scheduler;\n if (scheduler == null) {\n if (this._isScalar) {\n if (!subscriber.closed) {\n subscriber.next(this.value);\n subscriber.complete();\n }\n }\n else {\n promise.then(function (value) {\n _this.value = value;\n _this._isScalar = true;\n if (!subscriber.closed) {\n subscriber.next(value);\n subscriber.complete();\n }\n }, function (err) {\n if (!subscriber.closed) {\n subscriber.error(err);\n }\n })\n .then(null, function (err) {\n // escape the promise trap, throw unhandled errors\n root_1.root.setTimeout(function () { throw err; });\n });\n }\n }\n else {\n if (this._isScalar) {\n if (!subscriber.closed) {\n return scheduler.schedule(dispatchNext, 0, { value: this.value, subscriber: subscriber });\n }\n }\n else {\n promise.then(function (value) {\n _this.value = value;\n _this._isScalar = true;\n if (!subscriber.closed) {\n subscriber.add(scheduler.schedule(dispatchNext, 0, { value: value, subscriber: subscriber }));\n }\n }, function (err) {\n if (!subscriber.closed) {\n subscriber.add(scheduler.schedule(dispatchError, 0, { err: err, subscriber: subscriber }));\n }\n })\n .then(null, function (err) {\n // escape the promise trap, throw unhandled errors\n root_1.root.setTimeout(function () { throw err; });\n });\n }\n }\n };\n return PromiseObservable;\n}(Observable_1.Observable));\nexports.PromiseObservable = PromiseObservable;\nfunction dispatchNext(arg) {\n var value = arg.value, subscriber = arg.subscriber;\n if (!subscriber.closed) {\n subscriber.next(value);\n subscriber.complete();\n }\n}\nfunction dispatchError(arg) {\n var err = arg.err, subscriber = arg.subscriber;\n if (!subscriber.closed) {\n subscriber.error(err);\n }\n}\n//# sourceMappingURL=PromiseObservable.js.map", - "parsedSrc": "function(e,t,r){\"use strict\";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=r(18),o=function(e){function t(t,r){e.call(this),this.promise=t,this.scheduler=r}return n(t,e),t.create=function(e,r){return new t(e,r)},t.prototype._subscribe=function(e){var t=this,r=this.promise,n=this.scheduler;if(null==n)this._isScalar?e.closed||(e.next(this.value),e.complete()):r.then(function(r){t.value=r,t._isScalar=!0,e.closed||(e.next(r),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){i.root.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return n.schedule(a,0,{value:this.value,subscriber:e})}else r.then(function(r){t.value=r,t._isScalar=!0,e.closed||e.add(n.schedule(a,0,{value:r,subscriber:e}))},function(t){e.closed||e.add(n.schedule(s,0,{err:t,subscriber:e}))}).then(null,function(e){i.root.setTimeout(function(){throw e})})},t}(r(5).Observable);function a(e){var t=e.value,r=e.subscriber;r.closed||(r.next(t),r.complete())}function s(e){var t=e.err,r=e.subscriber;r.closed||r.error(t)}t.PromiseObservable=o}" + "depth": 8, + "source": "/**\n * Node.js module for Forge message digests.\n *\n * @author Dave Longley\n *\n * Copyright 2011-2017 Digital Bazaar, Inc.\n */\nvar forge = require('./forge');\n\nmodule.exports = forge.md = forge.md || {};\nforge.md.algorithms = forge.md.algorithms || {};\n", + "parsedSrc": "function(e,t,r){var n=r(17);e.exports=n.md=n.md||{},n.md.algorithms=n.md.algorithms||{}}" }, { - "id": 101, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/util/isScheduler.js", - "name": "./node_modules/rxjs/util/isScheduler.js", - "index": 114, - "index2": 107, - "size": 178, + "id": 84, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\node-libs-browser\\node_modules\\buffer\\index.js", + "name": "./node_modules/node-libs-browser/node_modules/buffer/index.js", + "index": 319, + "index2": 317, + "size": 48610, "cacheable": true, "built": true, "optional": false, @@ -15008,34 +14974,34 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/observable/merge.js", - "issuerId": 120, - "issuerName": "./node_modules/rxjs/observable/merge.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\node-forge\\lib\\util.js", + "issuerId": 3, + "issuerName": "./node_modules/node-forge/lib/util.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { "id": null, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/redux-observable/lib/esm/index.js", - "name": "./node_modules/redux-observable/lib/esm/index.js" + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx", + "name": "./src/redux/epics/index.tsx" }, { "id": null, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/redux-observable/lib/esm/combineEpics.js", - "name": "./node_modules/redux-observable/lib/esm/combineEpics.js" + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\node-epics.tsx", + "name": "./src/redux/epics/node-epics.tsx" }, { - "id": 120, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/observable/merge.js", - "name": "./node_modules/rxjs/observable/merge.js" + "id": 3, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\node-forge\\lib\\util.js", + "name": "./node_modules/node-forge/lib/util.js" } ], "failed": false, @@ -15045,22 +15011,22 @@ ], "reasons": [ { - "moduleId": 57, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/observable/ArrayObservable.js", - "module": "./node_modules/rxjs/observable/ArrayObservable.js", - "moduleName": "./node_modules/rxjs/observable/ArrayObservable.js", + "moduleId": 3, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\node-forge\\lib\\util.js", + "module": "./node_modules/node-forge/lib/util.js", + "moduleName": "./node_modules/node-forge/lib/util.js", "type": "cjs require", - "userRequest": "../util/isScheduler", - "loc": "10:20-50" + "userRequest": "Buffer", + "loc": "1:0-65" }, { - "moduleId": 120, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/observable/merge.js", - "module": "./node_modules/rxjs/observable/merge.js", - "moduleName": "./node_modules/rxjs/observable/merge.js", + "moduleId": 157, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\node-forge\\lib\\baseN.js", + "module": "./node_modules/node-forge/lib/baseN.js", + "moduleName": "./node_modules/node-forge/lib/baseN.js", "type": "cjs require", - "userRequest": "../util/isScheduler", - "loc": "4:20-50" + "userRequest": "Buffer", + "loc": "1:0-65" } ], "usedExports": true, @@ -15069,16 +15035,16 @@ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], "depth": 5, - "source": "\"use strict\";\nfunction isScheduler(value) {\n return value && typeof value.schedule === 'function';\n}\nexports.isScheduler = isScheduler;\n//# sourceMappingURL=isScheduler.js.map", - "parsedSrc": "function(e,t,r){\"use strict\";t.isScheduler=function(e){return e&&\"function\"==typeof e.schedule}}" + "source": "/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nvar base64 = require('base64-js')\nvar ieee754 = require('ieee754')\nvar isArray = require('isarray')\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n ? global.TYPED_ARRAY_SUPPORT\n : typedArraySupport()\n\n/*\n * Export kMaxLength after typed array support is determined.\n */\nexports.kMaxLength = kMaxLength()\n\nfunction typedArraySupport () {\n try {\n var arr = new Uint8Array(1)\n arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}\n return arr.foo() === 42 && // typed array instances can be augmented\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n } catch (e) {\n return false\n }\n}\n\nfunction kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n}\n\nfunction createBuffer (that, length) {\n if (kMaxLength() < length) {\n throw new RangeError('Invalid typed array length')\n }\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = new Uint8Array(length)\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n if (that === null) {\n that = new Buffer(length)\n }\n that.length = length\n }\n\n return that\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n return new Buffer(arg, encodingOrOffset, length)\n }\n\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new Error(\n 'If encoding is specified then the first argument must be a string'\n )\n }\n return allocUnsafe(this, arg)\n }\n return from(this, arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\n// TODO: Legacy, not needed anymore. Remove in next major version.\nBuffer._augment = function (arr) {\n arr.__proto__ = Buffer.prototype\n return arr\n}\n\nfunction from (that, value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('\"value\" argument must not be a number')\n }\n\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n return fromArrayBuffer(that, value, encodingOrOffset, length)\n }\n\n if (typeof value === 'string') {\n return fromString(that, value, encodingOrOffset)\n }\n\n return fromObject(that, value)\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(null, value, encodingOrOffset, length)\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype\n Buffer.__proto__ = Uint8Array\n if (typeof Symbol !== 'undefined' && Symbol.species &&\n Buffer[Symbol.species] === Buffer) {\n // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\n Object.defineProperty(Buffer, Symbol.species, {\n value: null,\n configurable: true\n })\n }\n}\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be a number')\n } else if (size < 0) {\n throw new RangeError('\"size\" argument must not be negative')\n }\n}\n\nfunction alloc (that, size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(that, size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(that, size).fill(fill, encoding)\n : createBuffer(that, size).fill(fill)\n }\n return createBuffer(that, size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(null, size, fill, encoding)\n}\n\nfunction allocUnsafe (that, size) {\n assertSize(size)\n that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < size; ++i) {\n that[i] = 0\n }\n }\n return that\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(null, size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(null, size)\n}\n\nfunction fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('\"encoding\" must be a valid string encoding')\n }\n\n var length = byteLength(string, encoding) | 0\n that = createBuffer(that, length)\n\n var actual = that.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n that = that.slice(0, actual)\n }\n\n return that\n}\n\nfunction fromArrayLike (that, array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0\n that = createBuffer(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nfunction fromArrayBuffer (that, array, byteOffset, length) {\n array.byteLength // this throws if `array` is not a valid ArrayBuffer\n\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\\'offset\\' is out of bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\\'length\\' is out of bounds')\n }\n\n if (byteOffset === undefined && length === undefined) {\n array = new Uint8Array(array)\n } else if (length === undefined) {\n array = new Uint8Array(array, byteOffset)\n } else {\n array = new Uint8Array(array, byteOffset, length)\n }\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = array\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromArrayLike(that, array)\n }\n return that\n}\n\nfunction fromObject (that, obj) {\n if (Buffer.isBuffer(obj)) {\n var len = checked(obj.length) | 0\n that = createBuffer(that, len)\n\n if (that.length === 0) {\n return that\n }\n\n obj.copy(that, 0, 0, len)\n return that\n }\n\n if (obj) {\n if ((typeof ArrayBuffer !== 'undefined' &&\n obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\n if (typeof obj.length !== 'number' || isnan(obj.length)) {\n return createBuffer(that, 0)\n }\n return fromArrayLike(that, obj)\n }\n\n if (obj.type === 'Buffer' && isArray(obj.data)) {\n return fromArrayLike(that, obj.data)\n }\n }\n\n throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\n}\n\nfunction checked (length) {\n // Note: cannot use `length < kMaxLength()` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n var buffer = Buffer.allocUnsafe(length)\n var pos = 0\n for (i = 0; i < list.length; ++i) {\n var buf = list[i]\n if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n buf.copy(buffer, pos)\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\n (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n string = '' + string\n }\n\n var len = string.length\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n case undefined:\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n// Buffer instances.\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n var i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n var len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n var len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n var len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length | 0\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n if (this.length > max) str += ' ... '\n }\n return ''\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (!Buffer.isBuffer(target)) {\n throw new TypeError('Argument must be a Buffer')\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n var x = thisEnd - thisStart\n var y = end - start\n var len = Math.min(x, y)\n\n var thisCopy = this.slice(thisStart, thisEnd)\n var targetCopy = target.slice(start, end)\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (isNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (Buffer.TYPED_ARRAY_SUPPORT &&\n typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n var indexSize = 1\n var arrLength = arr.length\n var valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n var i\n if (dir) {\n var foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n var found = true\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n // must be an even number of digits\n var strLen = string.length\n if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (isNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0\n if (isFinite(length)) {\n length = length | 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; ++i) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = this.subarray(start, end)\n newBuf.__proto__ = Buffer.prototype\n } else {\n var sliceLen = end - start\n newBuf = new Buffer(sliceLen, undefined)\n for (var i = 0; i < sliceLen; ++i) {\n newBuf[i] = this[i + start]\n }\n }\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n var i\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start]\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; ++i) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, start + len),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (val.length === 1) {\n var code = val.charCodeAt(0)\n if (code < 256) {\n val = code\n }\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n } else if (typeof val === 'number') {\n val = val & 255\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n var i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n var bytes = Buffer.isBuffer(val)\n ? val\n : utf8ToBytes(new Buffer(val, encoding).toString())\n var len = bytes.length\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\nfunction isnan (val) {\n return val !== val // eslint-disable-line no-self-compare\n}\n", + "parsedSrc": "function(e,t,r){\"use strict\";(function(e){\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\nvar n=r(160),i=r(159),o=r(158);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+a().toString(16)+\" bytes\");return 0|e}function d(e,t){if(u.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 r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":case void 0:return L(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return F(e).length;default:if(n)return L(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if(\"string\"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if(\"string\"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if(\"number\"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&\"function\"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw new TypeError(\"val must be string, number or Buffer\")}function y(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&(\"ucs2\"===(n=String(n).toLowerCase())||\"ucs-2\"===n||\"utf16le\"===n||\"utf-16le\"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;os&&(r=s-u),o=r;o>=0;o--){for(var f=!0,h=0;hi&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError(\"Invalid hex string\");n>o/2&&(n=o/2);for(var a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function T(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r=\"\",n=0;for(;nthis.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return C(this,t,r);case\"utf8\":case\"utf-8\":return T(this,t,r);case\"ascii\":return k(this,t,r);case\"latin1\":case\"binary\":return O(this,t,r);case\"base64\":return x(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return I(this,t,r);default:if(n)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e=\"\",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString(\"hex\",0,r).match(/.{2}/g).join(\" \"),this.length>r&&(e+=\" ... \")),\"\"},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError(\"out of range index\");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),c=this.slice(n,i),l=e.slice(t,r),f=0;fi)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");n||(n=\"utf8\");for(var o=!1;;)switch(n){case\"hex\":return m(this,e,t,r);case\"utf8\":case\"utf-8\":return b(this,e,t,r);case\"ascii\":return _(this,e,t,r);case\"latin1\":case\"binary\":return w(this,e,t,r);case\"base64\":return E(this,e,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return S(this,e,t,r);default:if(o)throw new TypeError(\"Unknown encoding: \"+n);n=(\"\"+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function k(e,t,r){var n=\"\";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i=\"\",o=t;or)throw new RangeError(\"Trying to access beyond buffer length\")}function B(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError(\"Index out of range\")}function R(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function P(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function j(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function H(e,t,r,n,o){return o||j(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function M(e,t,r,n,o){return o||j(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||N(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||N(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||B(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);B(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);B(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return H(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return H(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return M(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return M(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError(\"sourceStart out of bounds\");if(n<0)throw new RangeError(\"sourceEnd out of bounds\");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),\"number\"==typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\\s+|\\s+$/g,\"\")}(e).replace(D,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function z(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(11))}" }, { - "id": 102, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/observable/ScalarObservable.js", - "name": "./node_modules/rxjs/observable/ScalarObservable.js", - "index": 112, - "index2": 105, - "size": 1916, + "id": 85, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\curl.lib.js\\src\\curl.js", + "name": "./node_modules/curl.lib.js/src/curl.js", + "index": 298, + "index2": 292, + "size": 1806, "cacheable": true, "built": true, "optional": false, @@ -15086,39 +15052,39 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/observable/ArrayObservable.js", - "issuerId": 57, - "issuerName": "./node_modules/rxjs/observable/ArrayObservable.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\curl.lib.js\\src\\curl.lib.js", + "issuerId": 73, + "issuerName": "./node_modules/curl.lib.js/src/curl.lib.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { "id": null, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/redux-observable/lib/esm/index.js", - "name": "./node_modules/redux-observable/lib/esm/index.js" + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx", + "name": "./src/redux/epics/index.tsx" }, { "id": null, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/redux-observable/lib/esm/ActionsObservable.js", - "name": "./node_modules/redux-observable/lib/esm/ActionsObservable.js" + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\node-epics.tsx", + "name": "./src/redux/epics/node-epics.tsx" }, { - "id": 43, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/observable/of.js", - "name": "./node_modules/rxjs/observable/of.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\services\\iota.tsx", + "name": "./src/redux/services/iota.tsx" }, { - "id": 57, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/observable/ArrayObservable.js", - "name": "./node_modules/rxjs/observable/ArrayObservable.js" + "id": 73, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\curl.lib.js\\src\\curl.lib.js", + "name": "./node_modules/curl.lib.js/src/curl.lib.js" } ], "failed": false, @@ -15128,22 +15094,22 @@ ], "reasons": [ { - "moduleId": 57, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/observable/ArrayObservable.js", - "module": "./node_modules/rxjs/observable/ArrayObservable.js", - "moduleName": "./node_modules/rxjs/observable/ArrayObservable.js", + "moduleId": 73, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\curl.lib.js\\src\\curl.lib.js", + "module": "./node_modules/curl.lib.js/src/curl.lib.js", + "moduleName": "./node_modules/curl.lib.js/src/curl.lib.js", "type": "cjs require", - "userRequest": "./ScalarObservable", - "loc": "8:25-54" + "userRequest": "./curl", + "loc": "2:13-30" }, { - "moduleId": 278, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/observable/ArrayLikeObservable.js", - "module": "./node_modules/rxjs/observable/ArrayLikeObservable.js", - "moduleName": "./node_modules/rxjs/observable/ArrayLikeObservable.js", + "moduleId": 183, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\curl.lib.js\\src\\pearldiver.js", + "module": "./node_modules/curl.lib.js/src/pearldiver.js", + "moduleName": "./node_modules/curl.lib.js/src/pearldiver.js", "type": "cjs require", - "userRequest": "./ScalarObservable", - "loc": "8:25-54" + "userRequest": "./curl", + "loc": "2:13-30" } ], "usedExports": true, @@ -15152,16 +15118,16 @@ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], "depth": 6, - "source": "\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar ScalarObservable = (function (_super) {\n __extends(ScalarObservable, _super);\n function ScalarObservable(value, scheduler) {\n _super.call(this);\n this.value = value;\n this.scheduler = scheduler;\n this._isScalar = true;\n if (scheduler) {\n this._isScalar = false;\n }\n }\n ScalarObservable.create = function (value, scheduler) {\n return new ScalarObservable(value, scheduler);\n };\n ScalarObservable.dispatch = function (state) {\n var done = state.done, value = state.value, subscriber = state.subscriber;\n if (done) {\n subscriber.complete();\n return;\n }\n subscriber.next(value);\n if (subscriber.closed) {\n return;\n }\n state.done = true;\n this.schedule(state);\n };\n /** @deprecated internal use only */ ScalarObservable.prototype._subscribe = function (subscriber) {\n var value = this.value;\n var scheduler = this.scheduler;\n if (scheduler) {\n return scheduler.schedule(ScalarObservable.dispatch, 0, {\n done: false, value: value, subscriber: subscriber\n });\n }\n else {\n subscriber.next(value);\n if (!subscriber.closed) {\n subscriber.complete();\n }\n }\n };\n return ScalarObservable;\n}(Observable_1.Observable));\nexports.ScalarObservable = ScalarObservable;\n//# sourceMappingURL=ScalarObservable.js.map", - "parsedSrc": "function(e,t,r){\"use strict\";var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(t,r){e.call(this),this.value=t,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return n(t,e),t.create=function(e,r){return new t(e,r)},t.dispatch=function(e){var t=e.done,r=e.value,n=e.subscriber;t?n.complete():(n.next(r),n.closed||(e.done=!0,this.schedule(e)))},t.prototype._subscribe=function(e){var r=this.value,n=this.scheduler;if(n)return n.schedule(t.dispatch,0,{done:!1,value:r,subscriber:e});e.next(r),e.closed||e.complete()},t}(r(5).Observable);t.ScalarObservable=i}" + "source": "const Const = require('./constants');\n\n/**\n ** Cryptographic related functions to IOTA's Curl (sponge function)\n **/\n\nfunction Curl(state) {\n // truth table\n this.truthTable = new Int8Array([1, 0, -1, 2, 1, -1, 0, 2, -1, 1, 0]);\n this.HASH_LENGTH = Const.HASH_LENGTH;\n this.initialize(state);\n this.reset();\n}\n\n/**\n * Initializes the state with 729 trits\n *\n * @method initialize\n **/\nCurl.prototype.initialize = function(state, length) {\n\n if (state) {\n this.state = state;\n } else {\n this.state = new Int8Array(Const.STATE_LENGTH);\n }\n}\n\nCurl.prototype.reset = function() {\n this.state.fill(0);\n}\n\n/**\n * Sponge absorb function\n *\n * @method absorb\n **/\nCurl.prototype.absorb = function(trits, offset, length) {\n\n do {\n\n var i = 0;\n var limit = (length < Const.HASH_LENGTH ? length : Const.HASH_LENGTH);\n\n while (i < limit) {\n\n this.state[i++] = trits[offset++];\n }\n\n this.transform();\n\n } while (( length -= Const.HASH_LENGTH ) > 0)\n\n}\n\n/**\n * Sponge squeeze function\n *\n * @method squeeze\n **/\nCurl.prototype.squeeze = function(trits, offset, length) {\n\n do {\n\n var i = 0;\n var limit = (length < Const.HASH_LENGTH ? length : Const.HASH_LENGTH);\n\n while (i < limit) {\n\n trits[offset++] = this.state[i++];\n }\n\n this.transform();\n\n } while (( length -= Const.HASH_LENGTH ) > 0)\n}\n\n/**\n * Sponge transform function\n *\n * @method transform\n **/\nCurl.prototype.transform = function() {\n\n var stateCopy = [], index = 0;\n\n for (var round = 0; round < Const.NUMBER_OF_ROUNDS; round++) {\n\n stateCopy = this.state.slice();\n\n for (var i = 0; i < Const.STATE_LENGTH; i++) {\n\n this.state[i] = this.truthTable[stateCopy[index] + (stateCopy[index += (index < 365 ? 364 : -365)] <<2) + 5];\n }\n }\n}\n\nmodule.exports = Curl;\n", + "parsedSrc": "function(e,t,r){const n=r(37);function i(e){this.truthTable=new Int8Array([1,0,-1,2,1,-1,0,2,-1,1,0]),this.HASH_LENGTH=n.HASH_LENGTH,this.initialize(e),this.reset()}i.prototype.initialize=function(e,t){this.state=e||new Int8Array(n.STATE_LENGTH)},i.prototype.reset=function(){this.state.fill(0)},i.prototype.absorb=function(e,t,r){do{for(var i=0,o=r0)},i.prototype.squeeze=function(e,t,r){do{for(var i=0,o=r0)},i.prototype.transform=function(){for(var e=[],t=0,r=0;r 255) {\n //asciiValue = 32\n return null;\n }\n\n var firstValue = asciiValue % 27;\n var secondValue = (asciiValue - firstValue) / 27;\n\n var trytesValue = TRYTE_VALUES[firstValue] + TRYTE_VALUES[secondValue];\n\n trytes += trytesValue;\n }\n\n return trytes;\n}\n\n\n//\n// Trytes to bytes\n// Reverse operation from the byteToTrytes function in send.js\n// 2 Trytes == 1 Byte\n// We assume that the trytes are a JSON encoded object thus for our encoding:\n// First character = {\n// Last character = }\n// Everything after that is 9's padding\n//\nfunction fromTrytes(inputTrytes) {\n\n // If input is not a string, return null\n if ( typeof inputTrytes !== 'string' ) return null\n\n // If input length is odd, return null\n if ( inputTrytes.length % 2 ) return null\n\n var TRYTE_VALUES = \"9ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n var outputString = \"\";\n\n for (var i = 0; i < inputTrytes.length; i += 2) {\n // get a trytes pair\n var trytes = inputTrytes[i] + inputTrytes[i + 1];\n\n var firstValue = TRYTE_VALUES.indexOf(trytes[0]);\n var secondValue = TRYTE_VALUES.indexOf(trytes[1]);\n\n var decimalValue = firstValue + secondValue * 27;\n\n var character = String.fromCharCode(decimalValue);\n\n outputString += character;\n }\n\n return outputString;\n}\n\nmodule.exports = {\n toTrytes: toTrytes,\n fromTrytes: fromTrytes\n}\n", + "parsedSrc": "function(e,t){e.exports={toTrytes:function(e){if(\"string\"!=typeof e)return null;for(var t=\"\",r=0;r255)return null;var i=n%27;t+=\"9ABCDEFGHIJKLMNOPQRSTUVWXYZ\"[i]+\"9ABCDEFGHIJKLMNOPQRSTUVWXYZ\"[(n-i)/27]}return t},fromTrytes:function(e){if(\"string\"!=typeof e)return null;if(e.length%2)return null;for(var t=\"\",r=0;r 0) {\n\n for (var i = 0; i < 27; i++) {\n\n curl.squeeze(buffer, 0, subseed.length);\n for (var j = 0; j < 243; j++) {\n\n key[offset++] = buffer[j];\n }\n }\n }\n return key;\n}\n\n/**\n*\n*\n**/\nvar digests = function(key) {\n\n var digests = [], buffer = [];\n\n for (var i = 0; i < Math.floor(key.length / 6561); i++) {\n\n var keyFragment = key.slice(i * 6561, (i + 1) * 6561);\n\n for (var j = 0; j < 27; j++) {\n\n buffer = keyFragment.slice(j * 243, (j + 1) * 243);\n\n for (var k = 0; k < 26; k++) {\n\n var kCurl = new Curl();\n kCurl.initialize();\n kCurl.absorb(buffer, 0, buffer.length);\n kCurl.squeeze(buffer, 0, Curl.HASH_LENGTH);\n }\n\n for (var k = 0; k < 243; k++) {\n\n keyFragment[j * 243 + k] = buffer[k];\n }\n }\n\n var curl = new Curl()\n\n curl.initialize();\n curl.absorb(keyFragment, 0, keyFragment.length);\n curl.squeeze(buffer, 0, Curl.HASH_LENGTH);\n\n for (var j = 0; j < 243; j++) {\n\n digests[i * 243 + j] = buffer[j];\n }\n }\n return digests;\n}\n\n/**\n*\n*\n**/\nvar address = function(digests) {\n\n var addressTrits = [];\n\n var curl = new Curl();\n\n curl.initialize();\n curl.absorb(digests, 0, digests.length);\n curl.squeeze(addressTrits, 0, Curl.HASH_LENGTH);\n\n return addressTrits;\n}\n\n/**\n*\n*\n**/\nvar digest = function(normalizedBundleFragment, signatureFragment) {\n\n var buffer = []\n\n var curl = new Curl();\n\n curl.initialize();\n\n for (var i = 0; i< 27; i++) {\n buffer = signatureFragment.slice(i * 243, (i + 1) * 243);\n\n for (var j = normalizedBundleFragment[i] + 13; j-- > 0; ) {\n\n var jCurl = new Curl();\n\n jCurl.initialize();\n jCurl.absorb(buffer, 0, buffer.length);\n jCurl.squeeze(buffer, 0, Curl.HASH_LENGTH);\n }\n\n curl.absorb(buffer, 0, buffer.length);\n }\n\n curl.squeeze(buffer, 0, Curl.HASH_LENGTH);\n return buffer;\n}\n\n/**\n*\n*\n**/\nvar signatureFragment = function(normalizedBundleFragment, keyFragment) {\n\n var signatureFragment = keyFragment.slice(), hash = [];\n\n var curl = new Curl();\n\n for (var i = 0; i < 27; i++) {\n\n hash = signatureFragment.slice(i * 243, (i + 1) * 243);\n\n for (var j = 0; j < 13 - normalizedBundleFragment[i]; j++) {\n\n curl.initialize();\n curl.absorb(hash, 0, hash.length);\n curl.squeeze(hash, 0, Curl.HASH_LENGTH);\n }\n\n for (var j = 0; j < 243; j++) {\n\n signatureFragment[i * 243 + j] = hash[j];\n }\n }\n\n return signatureFragment;\n}\n\n/**\n*\n*\n**/\nvar validateSignatures = function(expectedAddress, signatureFragments, bundleHash) {\n\n var self = this;\n var bundle = new Bundle();\n\n var normalizedBundleFragments = [];\n var normalizedBundleHash = bundle.normalizedBundle(bundleHash);\n\n // Split hash into 3 fragments\n for (var i = 0; i < 3; i++) {\n normalizedBundleFragments[i] = normalizedBundleHash.slice(i * 27, (i + 1) * 27);\n }\n\n // Get digests\n var digests = [];\n\n for (var i = 0; i < signatureFragments.length; i++) {\n\n var digestBuffer = digest(normalizedBundleFragments[i % 3], Converter.trits(signatureFragments[i]));\n\n for (var j = 0; j < 243; j++) {\n\n digests[i * 243 + j] = digestBuffer[j]\n }\n }\n\n var address = Converter.trytes(self.address(digests));\n\n return (expectedAddress === address);\n}\n\n\nmodule.exports = {\n key : key,\n digests : digests,\n address : address,\n digest : digest,\n signatureFragment : signatureFragment,\n validateSignatures : validateSignatures\n}\n", + "parsedSrc": "function(e,t,r){var n=r(18),i=r(15),o=r(41),a=r(40),s=function(e,t){var r=[],i=new n;i.initialize();for(var o=0;o<27;o++){r=t.slice(243*o,243*(o+1));for(var a=e[o]+13;a-- >0;){var s=new n;s.initialize(),s.absorb(r,0,r.length),s.squeeze(r,0,n.HASH_LENGTH)}i.absorb(r,0,r.length)}return i.squeeze(r,0,n.HASH_LENGTH),r};e.exports={key:function(e,t,r){for(;e.length%243!=0;)e.push(0);var o=i.fromValue(t),s=a(e.slice(),o),u=new n;u.initialize(),u.absorb(s,0,s.length),u.squeeze(s,0,s.length),u.initialize(),u.absorb(s,0,s.length);for(var c=[],l=0,f=[];r-- >0;)for(var h=0;h<27;h++){u.squeeze(f,0,s.length);for(var p=0;p<243;p++)c[l++]=f[p]}return c},digests:function(e){for(var t=[],r=[],i=0;i>> 1) | (gamma0xl << 31)) ^ ((gamma0xh >>> 8) | (gamma0xl << 24)) ^ (gamma0xh >>> 7);\n\t var gamma0l = ((gamma0xl >>> 1) | (gamma0xh << 31)) ^ ((gamma0xl >>> 8) | (gamma0xh << 24)) ^ ((gamma0xl >>> 7) | (gamma0xh << 25));\n\n\t // Gamma1\n\t var gamma1x = W[i - 2];\n\t var gamma1xh = gamma1x.high;\n\t var gamma1xl = gamma1x.low;\n\t var gamma1h = ((gamma1xh >>> 19) | (gamma1xl << 13)) ^ ((gamma1xh << 3) | (gamma1xl >>> 29)) ^ (gamma1xh >>> 6);\n\t var gamma1l = ((gamma1xl >>> 19) | (gamma1xh << 13)) ^ ((gamma1xl << 3) | (gamma1xh >>> 29)) ^ ((gamma1xl >>> 6) | (gamma1xh << 26));\n\n\t // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]\n\t var Wi7 = W[i - 7];\n\t var Wi7h = Wi7.high;\n\t var Wi7l = Wi7.low;\n\n\t var Wi16 = W[i - 16];\n\t var Wi16h = Wi16.high;\n\t var Wi16l = Wi16.low;\n\n\t var Wil = gamma0l + Wi7l;\n\t var Wih = gamma0h + Wi7h + ((Wil >>> 0) < (gamma0l >>> 0) ? 1 : 0);\n\t var Wil = Wil + gamma1l;\n\t var Wih = Wih + gamma1h + ((Wil >>> 0) < (gamma1l >>> 0) ? 1 : 0);\n\t var Wil = Wil + Wi16l;\n\t var Wih = Wih + Wi16h + ((Wil >>> 0) < (Wi16l >>> 0) ? 1 : 0);\n\n\t Wi.high = Wih;\n\t Wi.low = Wil;\n\t }\n\n\t var chh = (eh & fh) ^ (~eh & gh);\n\t var chl = (el & fl) ^ (~el & gl);\n\t var majh = (ah & bh) ^ (ah & ch) ^ (bh & ch);\n\t var majl = (al & bl) ^ (al & cl) ^ (bl & cl);\n\n\t var sigma0h = ((ah >>> 28) | (al << 4)) ^ ((ah << 30) | (al >>> 2)) ^ ((ah << 25) | (al >>> 7));\n\t var sigma0l = ((al >>> 28) | (ah << 4)) ^ ((al << 30) | (ah >>> 2)) ^ ((al << 25) | (ah >>> 7));\n\t var sigma1h = ((eh >>> 14) | (el << 18)) ^ ((eh >>> 18) | (el << 14)) ^ ((eh << 23) | (el >>> 9));\n\t var sigma1l = ((el >>> 14) | (eh << 18)) ^ ((el >>> 18) | (eh << 14)) ^ ((el << 23) | (eh >>> 9));\n\n\t // t1 = h + sigma1 + ch + K[i] + W[i]\n\t var Ki = K[i];\n\t var Kih = Ki.high;\n\t var Kil = Ki.low;\n\n\t var t1l = hl + sigma1l;\n\t var t1h = hh + sigma1h + ((t1l >>> 0) < (hl >>> 0) ? 1 : 0);\n\t var t1l = t1l + chl;\n\t var t1h = t1h + chh + ((t1l >>> 0) < (chl >>> 0) ? 1 : 0);\n\t var t1l = t1l + Kil;\n\t var t1h = t1h + Kih + ((t1l >>> 0) < (Kil >>> 0) ? 1 : 0);\n\t var t1l = t1l + Wil;\n\t var t1h = t1h + Wih + ((t1l >>> 0) < (Wil >>> 0) ? 1 : 0);\n\n\t // t2 = sigma0 + maj\n\t var t2l = sigma0l + majl;\n\t var t2h = sigma0h + majh + ((t2l >>> 0) < (sigma0l >>> 0) ? 1 : 0);\n\n\t // Update working variables\n\t hh = gh;\n\t hl = gl;\n\t gh = fh;\n\t gl = fl;\n\t fh = eh;\n\t fl = el;\n\t el = (dl + t1l) | 0;\n\t eh = (dh + t1h + ((el >>> 0) < (dl >>> 0) ? 1 : 0)) | 0;\n\t dh = ch;\n\t dl = cl;\n\t ch = bh;\n\t cl = bl;\n\t bh = ah;\n\t bl = al;\n\t al = (t1l + t2l) | 0;\n\t ah = (t1h + t2h + ((al >>> 0) < (t1l >>> 0) ? 1 : 0)) | 0;\n\t }\n\n\t // Intermediate hash value\n\t H0l = H0.low = (H0l + al);\n\t H0.high = (H0h + ah + ((H0l >>> 0) < (al >>> 0) ? 1 : 0));\n\t H1l = H1.low = (H1l + bl);\n\t H1.high = (H1h + bh + ((H1l >>> 0) < (bl >>> 0) ? 1 : 0));\n\t H2l = H2.low = (H2l + cl);\n\t H2.high = (H2h + ch + ((H2l >>> 0) < (cl >>> 0) ? 1 : 0));\n\t H3l = H3.low = (H3l + dl);\n\t H3.high = (H3h + dh + ((H3l >>> 0) < (dl >>> 0) ? 1 : 0));\n\t H4l = H4.low = (H4l + el);\n\t H4.high = (H4h + eh + ((H4l >>> 0) < (el >>> 0) ? 1 : 0));\n\t H5l = H5.low = (H5l + fl);\n\t H5.high = (H5h + fh + ((H5l >>> 0) < (fl >>> 0) ? 1 : 0));\n\t H6l = H6.low = (H6l + gl);\n\t H6.high = (H6h + gh + ((H6l >>> 0) < (gl >>> 0) ? 1 : 0));\n\t H7l = H7.low = (H7l + hl);\n\t H7.high = (H7h + hh + ((H7l >>> 0) < (hl >>> 0) ? 1 : 0));\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\t dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 30] = Math.floor(nBitsTotal / 0x100000000);\n\t dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 31] = nBitsTotal;\n\t data.sigBytes = dataWords.length * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Convert hash to 32-bit word array before returning\n\t var hash = this._hash.toX32();\n\n\t // Return final computed hash\n\t return hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t },\n\n\t blockSize: 1024/32\n\t });\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.SHA512('message');\n\t * var hash = CryptoJS.SHA512(wordArray);\n\t */\n\t C.SHA512 = Hasher._createHelper(SHA512);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacSHA512(message, key);\n\t */\n\t C.HmacSHA512 = Hasher._createHmacHelper(SHA512);\n\t}());\n\n\n\treturn CryptoJS.SHA512;\n\n}));", + "parsedSrc": "function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.Hasher,n=t.x64,i=n.Word,o=n.WordArray,a=t.algo;function s(){return i.create.apply(i,arguments)}var u=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var l=a.SHA512=r.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],f=r[6],h=r[7],p=n.high,d=n.low,v=i.high,g=i.low,y=o.high,m=o.low,b=a.high,_=a.low,w=s.high,E=s.low,S=l.high,x=l.low,T=f.high,A=f.low,k=h.high,O=h.low,C=p,I=d,N=v,B=g,R=y,P=m,j=b,H=_,M=w,D=E,U=S,L=x,F=T,z=A,G=k,q=O,V=0;V<80;V++){var W=c[V];if(V<16)var $=W.high=0|e[t+2*V],K=W.low=0|e[t+2*V+1];else{var Y=c[V-15],X=Y.high,Q=Y.low,J=(X>>>1|Q<<31)^(X>>>8|Q<<24)^X>>>7,Z=(Q>>>1|X<<31)^(Q>>>8|X<<24)^(Q>>>7|X<<25),ee=c[V-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=c[V-7],ae=oe.high,se=oe.low,ue=c[V-16],ce=ue.high,le=ue.low;$=($=($=J+ae+((K=Z+se)>>>0>>0?1:0))+ne+((K+=ie)>>>0>>0?1:0))+ce+((K+=le)>>>0>>0?1:0),W.high=$,W.low=K}var fe,he=M&U^~M&F,pe=D&L^~D&z,de=C&N^C&R^N&R,ve=I&B^I&P^B&P,ge=(C>>>28|I<<4)^(C<<30|I>>>2)^(C<<25|I>>>7),ye=(I>>>28|C<<4)^(I<<30|C>>>2)^(I<<25|C>>>7),me=(M>>>14|D<<18)^(M>>>18|D<<14)^(M<<23|D>>>9),be=(D>>>14|M<<18)^(D>>>18|M<<14)^(D<<23|M>>>9),_e=u[V],we=_e.high,Ee=_e.low,Se=G+me+((fe=q+be)>>>0>>0?1:0),xe=ye+ve;G=F,q=z,F=U,z=L,U=M,L=D,M=j+(Se=(Se=(Se=Se+he+((fe+=pe)>>>0>>0?1:0))+we+((fe+=Ee)>>>0>>0?1:0))+$+((fe+=K)>>>0>>0?1:0))+((D=H+fe|0)>>>0>>0?1:0)|0,j=R,H=P,R=N,P=B,N=C,B=I,C=Se+(ge+de+(xe>>>0>>0?1:0))+((I=fe+xe|0)>>>0>>0?1:0)|0}d=n.low=d+I,n.high=p+C+(d>>>0>>0?1:0),g=i.low=g+B,i.high=v+N+(g>>>0>>0?1:0),m=o.low=m+P,o.high=y+R+(m>>>0

>>0?1:0),_=a.low=_+H,a.high=b+j+(_>>>0>>0?1:0),E=s.low=E+D,s.high=w+M+(E>>>0>>0?1:0),x=l.low=x+L,l.high=S+U+(x>>>0>>0?1:0),A=f.low=A+z,f.high=T+F+(A>>>0>>0?1:0),O=h.low=O+q,h.high=k+G+(O>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=r._createHelper(l),t.HmacSHA512=r._createHmacHelper(l)}(),e.SHA512}(r(4),r(44))}" }, { - "id": 107, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/util/isObject.js", - "name": "./node_modules/rxjs/util/isObject.js", - "index": 88, - "index2": 79, - "size": 151, + "id": 90, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\crypto-js\\sha256.js", + "name": "./node_modules/crypto-js/sha256.js", + "index": 238, + "index2": 229, + "size": 5538, "cacheable": true, "built": true, "optional": false, @@ -15501,39 +15492,49 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/Subscription.js", - "issuerId": 63, - "issuerName": "./node_modules/rxjs/Subscription.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\crypto-js\\index.js", + "issuerId": 45, + "issuerName": "./node_modules/crypto-js/index.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { "id": null, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/redux-observable/lib/esm/index.js", - "name": "./node_modules/redux-observable/lib/esm/index.js" + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx", + "name": "./src/redux/epics/index.tsx" }, { "id": null, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/redux-observable/lib/esm/createEpicMiddleware.js", - "name": "./node_modules/redux-observable/lib/esm/createEpicMiddleware.js" + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\node-epics.tsx", + "name": "./src/redux/epics/node-epics.tsx" }, { - "id": 68, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/Subject.js", - "name": "./node_modules/rxjs/Subject.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\services\\iota.tsx", + "name": "./src/redux/services/iota.tsx" }, { - "id": 63, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/Subscription.js", - "name": "./node_modules/rxjs/Subscription.js" + "id": 74, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\iota.lib.js\\lib\\iota.js", + "name": "./node_modules/iota.lib.js/lib/iota.js" + }, + { + "id": 31, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\iota.lib.js\\lib\\utils\\utils.js", + "name": "./node_modules/iota.lib.js/lib/utils/utils.js" + }, + { + "id": 45, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\crypto-js\\index.js", + "name": "./node_modules/crypto-js/index.js" } ], "failed": false, @@ -15543,22 +15544,22 @@ ], "reasons": [ { - "moduleId": 59, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/util/subscribeToResult.js", - "module": "./node_modules/rxjs/util/subscribeToResult.js", - "moduleName": "./node_modules/rxjs/util/subscribeToResult.js", + "moduleId": 45, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\crypto-js\\index.js", + "module": "./node_modules/crypto-js/index.js", + "moduleName": "./node_modules/crypto-js/index.js", "type": "cjs require", - "userRequest": "./isObject", - "loc": "5:17-38" + "userRequest": "./sha256", + "loc": "4:195-214" }, { - "moduleId": 63, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/Subscription.js", - "module": "./node_modules/rxjs/Subscription.js", - "moduleName": "./node_modules/rxjs/Subscription.js", + "moduleId": 214, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\crypto-js\\sha224.js", + "module": "./node_modules/crypto-js/sha224.js", + "moduleName": "./node_modules/crypto-js/sha224.js", "type": "cjs require", - "userRequest": "./util/isObject", - "loc": "3:17-43" + "userRequest": "./sha256", + "loc": "4:56-75" } ], "usedExports": true, @@ -15566,17 +15567,17 @@ "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 6, - "source": "\"use strict\";\nfunction isObject(x) {\n return x != null && typeof x === 'object';\n}\nexports.isObject = isObject;\n//# sourceMappingURL=isObject.js.map", - "parsedSrc": "function(e,t,r){\"use strict\";t.isObject=function(e){return null!=e&&\"object\"==typeof e}}" + "depth": 8, + "source": ";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function (Math) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var Hasher = C_lib.Hasher;\n\t var C_algo = C.algo;\n\n\t // Initialization and round constants tables\n\t var H = [];\n\t var K = [];\n\n\t // Compute constants\n\t (function () {\n\t function isPrime(n) {\n\t var sqrtN = Math.sqrt(n);\n\t for (var factor = 2; factor <= sqrtN; factor++) {\n\t if (!(n % factor)) {\n\t return false;\n\t }\n\t }\n\n\t return true;\n\t }\n\n\t function getFractionalBits(n) {\n\t return ((n - (n | 0)) * 0x100000000) | 0;\n\t }\n\n\t var n = 2;\n\t var nPrime = 0;\n\t while (nPrime < 64) {\n\t if (isPrime(n)) {\n\t if (nPrime < 8) {\n\t H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));\n\t }\n\t K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));\n\n\t nPrime++;\n\t }\n\n\t n++;\n\t }\n\t }());\n\n\t // Reusable object\n\t var W = [];\n\n\t /**\n\t * SHA-256 hash algorithm.\n\t */\n\t var SHA256 = C_algo.SHA256 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new WordArray.init(H.slice(0));\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Shortcut\n\t var H = this._hash.words;\n\n\t // Working variables\n\t var a = H[0];\n\t var b = H[1];\n\t var c = H[2];\n\t var d = H[3];\n\t var e = H[4];\n\t var f = H[5];\n\t var g = H[6];\n\t var h = H[7];\n\n\t // Computation\n\t for (var i = 0; i < 64; i++) {\n\t if (i < 16) {\n\t W[i] = M[offset + i] | 0;\n\t } else {\n\t var gamma0x = W[i - 15];\n\t var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^\n\t ((gamma0x << 14) | (gamma0x >>> 18)) ^\n\t (gamma0x >>> 3);\n\n\t var gamma1x = W[i - 2];\n\t var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^\n\t ((gamma1x << 13) | (gamma1x >>> 19)) ^\n\t (gamma1x >>> 10);\n\n\t W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];\n\t }\n\n\t var ch = (e & f) ^ (~e & g);\n\t var maj = (a & b) ^ (a & c) ^ (b & c);\n\n\t var sigma0 = ((a << 30) | (a >>> 2)) ^ ((a << 19) | (a >>> 13)) ^ ((a << 10) | (a >>> 22));\n\t var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25));\n\n\t var t1 = h + sigma1 + ch + K[i] + W[i];\n\t var t2 = sigma0 + maj;\n\n\t h = g;\n\t g = f;\n\t f = e;\n\t e = (d + t1) | 0;\n\t d = c;\n\t c = b;\n\t b = a;\n\t a = (t1 + t2) | 0;\n\t }\n\n\t // Intermediate hash value\n\t H[0] = (H[0] + a) | 0;\n\t H[1] = (H[1] + b) | 0;\n\t H[2] = (H[2] + c) | 0;\n\t H[3] = (H[3] + d) | 0;\n\t H[4] = (H[4] + e) | 0;\n\t H[5] = (H[5] + f) | 0;\n\t H[6] = (H[6] + g) | 0;\n\t H[7] = (H[7] + h) | 0;\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;\n\t data.sigBytes = dataWords.length * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Return final computed hash\n\t return this._hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t }\n\t });\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.SHA256('message');\n\t * var hash = CryptoJS.SHA256(wordArray);\n\t */\n\t C.SHA256 = Hasher._createHelper(SHA256);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacSHA256(message, key);\n\t */\n\t C.HmacSHA256 = Hasher._createHmacHelper(SHA256);\n\t}(Math));\n\n\n\treturn CryptoJS.SHA256;\n\n}));", + "parsedSrc": "function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[],u=[];!function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)e(n)&&(i<8&&(s[i]=r(t.pow(n,.5))),u[i]=r(t.pow(n,1/3)),i++),n++}();var c=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],f=r[6],h=r[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var d=c[p-15],v=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,g=c[p-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=v+c[p-7]+y+c[p-16]}var m=n&i^n&o^i&o,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+u[p]+c[p];h=f,f=l,l=s,s=a+_|0,a=o,o=i,i=n,n=_+(b+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(l),r.HmacSHA256=o._createHmacHelper(l)}(Math),e.SHA256}(r(4))}" }, { - "id": 108, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/util/isArray.js", - "name": "./node_modules/rxjs/util/isArray.js", - "index": 87, - "index2": 78, - "size": 146, + "id": 91, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\timers-browserify\\main.js", + "name": "./node_modules/timers-browserify/main.js", + "index": 222, + "index2": 214, + "size": 2022, "cacheable": true, "built": true, "optional": false, @@ -15584,39 +15585,34 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/Subscription.js", - "issuerId": 63, - "issuerName": "./node_modules/rxjs/Subscription.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\node-forge\\lib\\util.js", + "issuerId": 3, + "issuerName": "./node_modules/node-forge/lib/util.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { "id": null, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/redux-observable/lib/esm/index.js", - "name": "./node_modules/redux-observable/lib/esm/index.js" + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx", + "name": "./src/redux/epics/index.tsx" }, { "id": null, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/redux-observable/lib/esm/createEpicMiddleware.js", - "name": "./node_modules/redux-observable/lib/esm/createEpicMiddleware.js" - }, - { - "id": 68, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/Subject.js", - "name": "./node_modules/rxjs/Subject.js" + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\node-epics.tsx", + "name": "./src/redux/epics/node-epics.tsx" }, { - "id": 63, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/Subscription.js", - "name": "./node_modules/rxjs/Subscription.js" + "id": 3, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\node-forge\\lib\\util.js", + "name": "./node_modules/node-forge/lib/util.js" } ], "failed": false, @@ -15626,22 +15622,22 @@ ], "reasons": [ { - "moduleId": 63, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/Subscription.js", - "module": "./node_modules/rxjs/Subscription.js", - "moduleName": "./node_modules/rxjs/Subscription.js", + "moduleId": 3, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\node-forge\\lib\\util.js", + "module": "./node_modules/node-forge/lib/util.js", + "moduleName": "./node_modules/node-forge/lib/util.js", "type": "cjs require", - "userRequest": "./util/isArray", - "loc": "2:16-41" + "userRequest": "setImmediate", + "loc": "1:0-44" }, { - "moduleId": 280, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/observable/FromObservable.js", - "module": "./node_modules/rxjs/observable/FromObservable.js", - "moduleName": "./node_modules/rxjs/observable/FromObservable.js", + "moduleId": 92, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\iota.lib.js\\node_modules\\async\\dist\\async.js", + "module": "./node_modules/iota.lib.js/node_modules/async/dist/async.js", + "moduleName": "./node_modules/iota.lib.js/node_modules/async/dist/async.js", "type": "cjs require", - "userRequest": "../util/isArray", - "loc": "7:16-42" + "userRequest": "setImmediate", + "loc": "1:0-50" } ], "usedExports": true, @@ -15649,17 +15645,17 @@ "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 6, - "source": "\"use strict\";\nexports.isArray = Array.isArray || (function (x) { return x && typeof x.length === 'number'; });\n//# sourceMappingURL=isArray.js.map", - "parsedSrc": "function(e,t,r){\"use strict\";t.isArray=Array.isArray||function(e){return e&&\"number\"==typeof e.length}}" + "depth": 5, + "source": "var scope = (typeof global !== \"undefined\" && global) ||\n (typeof self !== \"undefined\" && self) ||\n window;\nvar apply = Function.prototype.apply;\n\n// DOM APIs, for completeness\n\nexports.setTimeout = function() {\n return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);\n};\nexports.setInterval = function() {\n return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);\n};\nexports.clearTimeout =\nexports.clearInterval = function(timeout) {\n if (timeout) {\n timeout.close();\n }\n};\n\nfunction Timeout(id, clearFn) {\n this._id = id;\n this._clearFn = clearFn;\n}\nTimeout.prototype.unref = Timeout.prototype.ref = function() {};\nTimeout.prototype.close = function() {\n this._clearFn.call(scope, this._id);\n};\n\n// Does not start the time, just sets up the members needed.\nexports.enroll = function(item, msecs) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = msecs;\n};\n\nexports.unenroll = function(item) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = -1;\n};\n\nexports._unrefActive = exports.active = function(item) {\n clearTimeout(item._idleTimeoutId);\n\n var msecs = item._idleTimeout;\n if (msecs >= 0) {\n item._idleTimeoutId = setTimeout(function onTimeout() {\n if (item._onTimeout)\n item._onTimeout();\n }, msecs);\n }\n};\n\n// setimmediate attaches itself to the global object\nrequire(\"setimmediate\");\n// On some exotic environments, it's not clear which object `setimmediate` was\n// able to install onto. Search each possibility in the same order as the\n// `setimmediate` library.\nexports.setImmediate = (typeof self !== \"undefined\" && self.setImmediate) ||\n (typeof global !== \"undefined\" && global.setImmediate) ||\n (this && this.setImmediate);\nexports.clearImmediate = (typeof self !== \"undefined\" && self.clearImmediate) ||\n (typeof global !== \"undefined\" && global.clearImmediate) ||\n (this && this.clearImmediate);\n", + "parsedSrc": "function(e,t,r){(function(e){var n=void 0!==e&&e||\"undefined\"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(220),t.setImmediate=\"undefined\"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate=\"undefined\"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(11))}" }, { - "id": 109, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/util/isFunction.js", - "name": "./node_modules/rxjs/util/isFunction.js", - "index": 85, - "index2": 77, - "size": 148, + "id": 92, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\iota.lib.js\\node_modules\\async\\dist\\async.js", + "name": "./node_modules/iota.lib.js/node_modules/async/dist/async.js", + "index": 221, + "index2": 216, + "size": 184893, "cacheable": true, "built": true, "optional": false, @@ -15667,39 +15663,44 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/Subscriber.js", - "issuerId": 17, - "issuerName": "./node_modules/rxjs/Subscriber.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\iota.lib.js\\lib\\utils\\makeRequest.js", + "issuerId": 93, + "issuerName": "./node_modules/iota.lib.js/lib/utils/makeRequest.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { "id": null, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/redux-observable/lib/esm/index.js", - "name": "./node_modules/redux-observable/lib/esm/index.js" + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx", + "name": "./src/redux/epics/index.tsx" }, { "id": null, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/redux-observable/lib/esm/createEpicMiddleware.js", - "name": "./node_modules/redux-observable/lib/esm/createEpicMiddleware.js" + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\node-epics.tsx", + "name": "./src/redux/epics/node-epics.tsx" }, { - "id": 68, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/Subject.js", - "name": "./node_modules/rxjs/Subject.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\services\\iota.tsx", + "name": "./src/redux/services/iota.tsx" }, { - "id": 17, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/Subscriber.js", - "name": "./node_modules/rxjs/Subscriber.js" + "id": 74, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\iota.lib.js\\lib\\iota.js", + "name": "./node_modules/iota.lib.js/lib/iota.js" + }, + { + "id": 93, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\iota.lib.js\\lib\\utils\\makeRequest.js", + "name": "./node_modules/iota.lib.js/lib/utils/makeRequest.js" } ], "failed": false, @@ -15709,22 +15710,22 @@ ], "reasons": [ { - "moduleId": 17, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/Subscriber.js", - "module": "./node_modules/rxjs/Subscriber.js", - "moduleName": "./node_modules/rxjs/Subscriber.js", + "moduleId": 93, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\iota.lib.js\\lib\\utils\\makeRequest.js", + "module": "./node_modules/iota.lib.js/lib/utils/makeRequest.js", + "moduleName": "./node_modules/iota.lib.js/lib/utils/makeRequest.js", "type": "cjs require", - "userRequest": "./util/isFunction", - "loc": "7:19-47" + "userRequest": "async", + "loc": "1:12-28" }, { - "moduleId": 63, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/rxjs/Subscription.js", - "module": "./node_modules/rxjs/Subscription.js", - "moduleName": "./node_modules/rxjs/Subscription.js", + "moduleId": 189, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\iota.lib.js\\lib\\api\\api.js", + "module": "./node_modules/iota.lib.js/lib/api/api.js", + "moduleName": "./node_modules/iota.lib.js/lib/api/api.js", "type": "cjs require", - "userRequest": "./util/isFunction", - "loc": "4:19-47" + "userRequest": "async", + "loc": "9:24-40" } ], "usedExports": true, @@ -15732,17 +15733,17 @@ "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 6, - "source": "\"use strict\";\nfunction isFunction(x) {\n return typeof x === 'function';\n}\nexports.isFunction = isFunction;\n//# sourceMappingURL=isFunction.js.map", - "parsedSrc": "function(e,t,r){\"use strict\";t.isFunction=function(e){return\"function\"==typeof e}}" + "depth": 7, + "source": "(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n typeof define === 'function' && define.amd ? define(['exports'], factory) :\n (factory((global.async = global.async || {})));\n}(this, (function (exports) { 'use strict';\n\nfunction slice(arrayLike, start) {\n start = start|0;\n var newLen = Math.max(arrayLike.length - start, 0);\n var newArr = Array(newLen);\n for(var idx = 0; idx < newLen; idx++) {\n newArr[idx] = arrayLike[start + idx];\n }\n return newArr;\n}\n\n/**\n * Creates a continuation function with some arguments already applied.\n *\n * Useful as a shorthand when combined with other control flow functions. Any\n * arguments passed to the returned function are added to the arguments\n * originally passed to apply.\n *\n * @name apply\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {Function} fn - The function you want to eventually apply all\n * arguments to. Invokes with (arguments...).\n * @param {...*} arguments... - Any number of arguments to automatically apply\n * when the continuation is called.\n * @returns {Function} the partially-applied function\n * @example\n *\n * // using apply\n * async.parallel([\n * async.apply(fs.writeFile, 'testfile1', 'test1'),\n * async.apply(fs.writeFile, 'testfile2', 'test2')\n * ]);\n *\n *\n * // the same process without using apply\n * async.parallel([\n * function(callback) {\n * fs.writeFile('testfile1', 'test1', callback);\n * },\n * function(callback) {\n * fs.writeFile('testfile2', 'test2', callback);\n * }\n * ]);\n *\n * // It's possible to pass any number of additional arguments when calling the\n * // continuation:\n *\n * node> var fn = async.apply(sys.puts, 'one');\n * node> fn('two', 'three');\n * one\n * two\n * three\n */\nvar apply = function(fn/*, ...args*/) {\n var args = slice(arguments, 1);\n return function(/*callArgs*/) {\n var callArgs = slice(arguments);\n return fn.apply(null, args.concat(callArgs));\n };\n};\n\nvar initialParams = function (fn) {\n return function (/*...args, callback*/) {\n var args = slice(arguments);\n var callback = args.pop();\n fn.call(this, args, callback);\n };\n};\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nvar hasSetImmediate = typeof setImmediate === 'function' && setImmediate;\nvar hasNextTick = typeof process === 'object' && typeof process.nextTick === 'function';\n\nfunction fallback(fn) {\n setTimeout(fn, 0);\n}\n\nfunction wrap(defer) {\n return function (fn/*, ...args*/) {\n var args = slice(arguments, 1);\n defer(function () {\n fn.apply(null, args);\n });\n };\n}\n\nvar _defer;\n\nif (hasSetImmediate) {\n _defer = setImmediate;\n} else if (hasNextTick) {\n _defer = process.nextTick;\n} else {\n _defer = fallback;\n}\n\nvar setImmediate$1 = wrap(_defer);\n\n/**\n * Take a sync function and make it async, passing its return value to a\n * callback. This is useful for plugging sync functions into a waterfall,\n * series, or other async functions. Any arguments passed to the generated\n * function will be passed to the wrapped function (except for the final\n * callback argument). Errors thrown will be passed to the callback.\n *\n * If the function passed to `asyncify` returns a Promise, that promises's\n * resolved/rejected state will be used to call the callback, rather than simply\n * the synchronous return value.\n *\n * This also means you can asyncify ES2017 `async` functions.\n *\n * @name asyncify\n * @static\n * @memberOf module:Utils\n * @method\n * @alias wrapSync\n * @category Util\n * @param {Function} func - The synchronous function, or Promise-returning\n * function to convert to an {@link AsyncFunction}.\n * @returns {AsyncFunction} An asynchronous wrapper of the `func`. To be\n * invoked with `(args..., callback)`.\n * @example\n *\n * // passing a regular synchronous function\n * async.waterfall([\n * async.apply(fs.readFile, filename, \"utf8\"),\n * async.asyncify(JSON.parse),\n * function (data, next) {\n * // data is the result of parsing the text.\n * // If there was a parsing error, it would have been caught.\n * }\n * ], callback);\n *\n * // passing a function returning a promise\n * async.waterfall([\n * async.apply(fs.readFile, filename, \"utf8\"),\n * async.asyncify(function (contents) {\n * return db.model.create(contents);\n * }),\n * function (model, next) {\n * // `model` is the instantiated model object.\n * // If there was an error, this function would be skipped.\n * }\n * ], callback);\n *\n * // es2017 example, though `asyncify` is not needed if your JS environment\n * // supports async functions out of the box\n * var q = async.queue(async.asyncify(async function(file) {\n * var intermediateStep = await processFile(file);\n * return await somePromise(intermediateStep)\n * }));\n *\n * q.push(files);\n */\nfunction asyncify(func) {\n return initialParams(function (args, callback) {\n var result;\n try {\n result = func.apply(this, args);\n } catch (e) {\n return callback(e);\n }\n // if result is Promise object\n if (isObject(result) && typeof result.then === 'function') {\n result.then(function(value) {\n invokeCallback(callback, null, value);\n }, function(err) {\n invokeCallback(callback, err.message ? err : new Error(err));\n });\n } else {\n callback(null, result);\n }\n });\n}\n\nfunction invokeCallback(callback, error, value) {\n try {\n callback(error, value);\n } catch (e) {\n setImmediate$1(rethrow, e);\n }\n}\n\nfunction rethrow(error) {\n throw error;\n}\n\nvar supportsSymbol = typeof Symbol === 'function';\n\nfunction isAsync(fn) {\n return supportsSymbol && fn[Symbol.toStringTag] === 'AsyncFunction';\n}\n\nfunction wrapAsync(asyncFn) {\n return isAsync(asyncFn) ? asyncify(asyncFn) : asyncFn;\n}\n\nfunction applyEach$1(eachfn) {\n return function(fns/*, ...args*/) {\n var args = slice(arguments, 1);\n var go = initialParams(function(args, callback) {\n var that = this;\n return eachfn(fns, function (fn, cb) {\n wrapAsync(fn).apply(that, args.concat(cb));\n }, callback);\n });\n if (args.length) {\n return go.apply(this, args);\n }\n else {\n return go;\n }\n };\n}\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Built-in value references. */\nvar Symbol$1 = root.Symbol;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag$1),\n tag = value[symToStringTag$1];\n\n try {\n value[symToStringTag$1] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag$1] = tag;\n } else {\n delete value[symToStringTag$1];\n }\n }\n return result;\n}\n\n/** Used for built-in method references. */\nvar objectProto$1 = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString$1 = objectProto$1.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString$1.call(value);\n}\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]';\nvar undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]';\nvar funcTag = '[object Function]';\nvar genTag = '[object GeneratorFunction]';\nvar proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\n// A temporary value used to identify if the loop should be broken.\n// See #1064, #1293\nvar breakLoop = {};\n\n/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nfunction once(fn) {\n return function () {\n if (fn === null) return;\n var callFn = fn;\n fn = null;\n callFn.apply(this, arguments);\n };\n}\n\nvar iteratorSymbol = typeof Symbol === 'function' && Symbol.iterator;\n\nvar getIterator = function (coll) {\n return iteratorSymbol && coll[iteratorSymbol] && coll[iteratorSymbol]();\n};\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\n/** Used for built-in method references. */\nvar objectProto$3 = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty$2 = objectProto$3.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto$3.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty$2.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER$1 = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER$1 : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\n/** `Object#toString` result references. */\nvar argsTag$1 = '[object Arguments]';\nvar arrayTag = '[object Array]';\nvar boolTag = '[object Boolean]';\nvar dateTag = '[object Date]';\nvar errorTag = '[object Error]';\nvar funcTag$1 = '[object Function]';\nvar mapTag = '[object Map]';\nvar numberTag = '[object Number]';\nvar objectTag = '[object Object]';\nvar regexpTag = '[object RegExp]';\nvar setTag = '[object Set]';\nvar stringTag = '[object String]';\nvar weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]';\nvar dataViewTag = '[object DataView]';\nvar float32Tag = '[object Float32Array]';\nvar float64Tag = '[object Float64Array]';\nvar int8Tag = '[object Int8Array]';\nvar int16Tag = '[object Int16Array]';\nvar int32Tag = '[object Int32Array]';\nvar uint8Tag = '[object Uint8Array]';\nvar uint8ClampedTag = '[object Uint8ClampedArray]';\nvar uint16Tag = '[object Uint16Array]';\nvar uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag$1] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag$1] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\n/** Detect free variable `exports`. */\nvar freeExports$1 = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule$1 = freeExports$1 && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports$1 && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule$1 && freeModule$1.require && freeModule$1.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n/** Used for built-in method references. */\nvar objectProto$2 = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty$1 = objectProto$2.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty$1.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/** Used for built-in method references. */\nvar objectProto$5 = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$5;\n\n return value === proto;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\n/** Used for built-in method references. */\nvar objectProto$4 = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty$3 = objectProto$4.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty$3.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nfunction createArrayIterator(coll) {\n var i = -1;\n var len = coll.length;\n return function next() {\n return ++i < len ? {value: coll[i], key: i} : null;\n }\n}\n\nfunction createES2015Iterator(iterator) {\n var i = -1;\n return function next() {\n var item = iterator.next();\n if (item.done)\n return null;\n i++;\n return {value: item.value, key: i};\n }\n}\n\nfunction createObjectIterator(obj) {\n var okeys = keys(obj);\n var i = -1;\n var len = okeys.length;\n return function next() {\n var key = okeys[++i];\n return i < len ? {value: obj[key], key: key} : null;\n };\n}\n\nfunction iterator(coll) {\n if (isArrayLike(coll)) {\n return createArrayIterator(coll);\n }\n\n var iterator = getIterator(coll);\n return iterator ? createES2015Iterator(iterator) : createObjectIterator(coll);\n}\n\nfunction onlyOnce(fn) {\n return function() {\n if (fn === null) throw new Error(\"Callback was already called.\");\n var callFn = fn;\n fn = null;\n callFn.apply(this, arguments);\n };\n}\n\nfunction _eachOfLimit(limit) {\n return function (obj, iteratee, callback) {\n callback = once(callback || noop);\n if (limit <= 0 || !obj) {\n return callback(null);\n }\n var nextElem = iterator(obj);\n var done = false;\n var running = 0;\n var looping = false;\n\n function iterateeCallback(err, value) {\n running -= 1;\n if (err) {\n done = true;\n callback(err);\n }\n else if (value === breakLoop || (done && running <= 0)) {\n done = true;\n return callback(null);\n }\n else if (!looping) {\n replenish();\n }\n }\n\n function replenish () {\n looping = true;\n while (running < limit && !done) {\n var elem = nextElem();\n if (elem === null) {\n done = true;\n if (running <= 0) {\n callback(null);\n }\n return;\n }\n running += 1;\n iteratee(elem.value, elem.key, onlyOnce(iterateeCallback));\n }\n looping = false;\n }\n\n replenish();\n };\n}\n\n/**\n * The same as [`eachOf`]{@link module:Collections.eachOf} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name eachOfLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.eachOf]{@link module:Collections.eachOf}\n * @alias forEachOfLimit\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each\n * item in `coll`. The `key` is the item's key, or index in the case of an\n * array.\n * Invoked with (item, key, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n */\nfunction eachOfLimit(coll, limit, iteratee, callback) {\n _eachOfLimit(limit)(coll, wrapAsync(iteratee), callback);\n}\n\nfunction doLimit(fn, limit) {\n return function (iterable, iteratee, callback) {\n return fn(iterable, limit, iteratee, callback);\n };\n}\n\n// eachOf implementation optimized for array-likes\nfunction eachOfArrayLike(coll, iteratee, callback) {\n callback = once(callback || noop);\n var index = 0,\n completed = 0,\n length = coll.length;\n if (length === 0) {\n callback(null);\n }\n\n function iteratorCallback(err, value) {\n if (err) {\n callback(err);\n } else if ((++completed === length) || value === breakLoop) {\n callback(null);\n }\n }\n\n for (; index < length; index++) {\n iteratee(coll[index], index, onlyOnce(iteratorCallback));\n }\n}\n\n// a generic version of eachOf which can handle array, object, and iterator cases.\nvar eachOfGeneric = doLimit(eachOfLimit, Infinity);\n\n/**\n * Like [`each`]{@link module:Collections.each}, except that it passes the key (or index) as the second argument\n * to the iteratee.\n *\n * @name eachOf\n * @static\n * @memberOf module:Collections\n * @method\n * @alias forEachOf\n * @category Collection\n * @see [async.each]{@link module:Collections.each}\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each\n * item in `coll`.\n * The `key` is the item's key, or index in the case of an array.\n * Invoked with (item, key, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @example\n *\n * var obj = {dev: \"/dev.json\", test: \"/test.json\", prod: \"/prod.json\"};\n * var configs = {};\n *\n * async.forEachOf(obj, function (value, key, callback) {\n * fs.readFile(__dirname + value, \"utf8\", function (err, data) {\n * if (err) return callback(err);\n * try {\n * configs[key] = JSON.parse(data);\n * } catch (e) {\n * return callback(e);\n * }\n * callback();\n * });\n * }, function (err) {\n * if (err) console.error(err.message);\n * // configs is now a map of JSON data\n * doSomethingWith(configs);\n * });\n */\nvar eachOf = function(coll, iteratee, callback) {\n var eachOfImplementation = isArrayLike(coll) ? eachOfArrayLike : eachOfGeneric;\n eachOfImplementation(coll, wrapAsync(iteratee), callback);\n};\n\nfunction doParallel(fn) {\n return function (obj, iteratee, callback) {\n return fn(eachOf, obj, wrapAsync(iteratee), callback);\n };\n}\n\nfunction _asyncMap(eachfn, arr, iteratee, callback) {\n callback = callback || noop;\n arr = arr || [];\n var results = [];\n var counter = 0;\n var _iteratee = wrapAsync(iteratee);\n\n eachfn(arr, function (value, _, callback) {\n var index = counter++;\n _iteratee(value, function (err, v) {\n results[index] = v;\n callback(err);\n });\n }, function (err) {\n callback(err, results);\n });\n}\n\n/**\n * Produces a new collection of values by mapping each value in `coll` through\n * the `iteratee` function. The `iteratee` is called with an item from `coll`\n * and a callback for when it has finished processing. Each of these callback\n * takes 2 arguments: an `error`, and the transformed item from `coll`. If\n * `iteratee` passes an error to its callback, the main `callback` (for the\n * `map` function) is immediately called with the error.\n *\n * Note, that since this function applies the `iteratee` to each item in\n * parallel, there is no guarantee that the `iteratee` functions will complete\n * in order. However, the results array will be in the same order as the\n * original `coll`.\n *\n * If `map` is passed an Object, the results will be an Array. The results\n * will roughly be in the order of the original Objects' keys (but this can\n * vary across JavaScript engines).\n *\n * @name map\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with the transformed item.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Results is an Array of the\n * transformed items from the `coll`. Invoked with (err, results).\n * @example\n *\n * async.map(['file1','file2','file3'], fs.stat, function(err, results) {\n * // results is now an array of stats for each file\n * });\n */\nvar map = doParallel(_asyncMap);\n\n/**\n * Applies the provided arguments to each function in the array, calling\n * `callback` after all functions have completed. If you only provide the first\n * argument, `fns`, then it will return a function which lets you pass in the\n * arguments as if it were a single function call. If more arguments are\n * provided, `callback` is required while `args` is still optional.\n *\n * @name applyEach\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|Object} fns - A collection of {@link AsyncFunction}s\n * to all call with the same arguments\n * @param {...*} [args] - any number of separate arguments to pass to the\n * function.\n * @param {Function} [callback] - the final argument should be the callback,\n * called when all functions have completed processing.\n * @returns {Function} - If only the first argument, `fns`, is provided, it will\n * return a function which lets you pass in the arguments as if it were a single\n * function call. The signature is `(..args, callback)`. If invoked with any\n * arguments, `callback` is required.\n * @example\n *\n * async.applyEach([enableSearch, updateSchema], 'bucket', callback);\n *\n * // partial application example:\n * async.each(\n * buckets,\n * async.applyEach([enableSearch, updateSchema]),\n * callback\n * );\n */\nvar applyEach = applyEach$1(map);\n\nfunction doParallelLimit(fn) {\n return function (obj, limit, iteratee, callback) {\n return fn(_eachOfLimit(limit), obj, wrapAsync(iteratee), callback);\n };\n}\n\n/**\n * The same as [`map`]{@link module:Collections.map} but runs a maximum of `limit` async operations at a time.\n *\n * @name mapLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.map]{@link module:Collections.map}\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with the transformed item.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Results is an array of the\n * transformed items from the `coll`. Invoked with (err, results).\n */\nvar mapLimit = doParallelLimit(_asyncMap);\n\n/**\n * The same as [`map`]{@link module:Collections.map} but runs only a single async operation at a time.\n *\n * @name mapSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.map]{@link module:Collections.map}\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with the transformed item.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Results is an array of the\n * transformed items from the `coll`. Invoked with (err, results).\n */\nvar mapSeries = doLimit(mapLimit, 1);\n\n/**\n * The same as [`applyEach`]{@link module:ControlFlow.applyEach} but runs only a single async operation at a time.\n *\n * @name applyEachSeries\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.applyEach]{@link module:ControlFlow.applyEach}\n * @category Control Flow\n * @param {Array|Iterable|Object} fns - A collection of {@link AsyncFunction}s to all\n * call with the same arguments\n * @param {...*} [args] - any number of separate arguments to pass to the\n * function.\n * @param {Function} [callback] - the final argument should be the callback,\n * called when all functions have completed processing.\n * @returns {Function} - If only the first argument is provided, it will return\n * a function which lets you pass in the arguments as if it were a single\n * function call.\n */\nvar applyEachSeries = applyEach$1(mapSeries);\n\n/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\n/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\n/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\n/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\n/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\n/**\n * Determines the best order for running the {@link AsyncFunction}s in `tasks`, based on\n * their requirements. Each function can optionally depend on other functions\n * being completed first, and each function is run as soon as its requirements\n * are satisfied.\n *\n * If any of the {@link AsyncFunction}s pass an error to their callback, the `auto` sequence\n * will stop. Further tasks will not execute (so any other functions depending\n * on it will not run), and the main `callback` is immediately called with the\n * error.\n *\n * {@link AsyncFunction}s also receive an object containing the results of functions which\n * have completed so far as the first argument, if they have dependencies. If a\n * task function has no dependencies, it will only be passed a callback.\n *\n * @name auto\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Object} tasks - An object. Each of its properties is either a\n * function or an array of requirements, with the {@link AsyncFunction} itself the last item\n * in the array. The object's key of a property serves as the name of the task\n * defined by that property, i.e. can be used when specifying requirements for\n * other tasks. The function receives one or two arguments:\n * * a `results` object, containing the results of the previously executed\n * functions, only passed if the task has any dependencies,\n * * a `callback(err, result)` function, which must be called when finished,\n * passing an `error` (which can be `null`) and the result of the function's\n * execution.\n * @param {number} [concurrency=Infinity] - An optional `integer` for\n * determining the maximum number of tasks that can be run in parallel. By\n * default, as many as possible.\n * @param {Function} [callback] - An optional callback which is called when all\n * the tasks have been completed. It receives the `err` argument if any `tasks`\n * pass an error to their callback. Results are always returned; however, if an\n * error occurs, no further `tasks` will be performed, and the results object\n * will only contain partial results. Invoked with (err, results).\n * @returns undefined\n * @example\n *\n * async.auto({\n * // this function will just be passed a callback\n * readData: async.apply(fs.readFile, 'data.txt', 'utf-8'),\n * showData: ['readData', function(results, cb) {\n * // results.readData is the file's contents\n * // ...\n * }]\n * }, callback);\n *\n * async.auto({\n * get_data: function(callback) {\n * console.log('in get_data');\n * // async code to get some data\n * callback(null, 'data', 'converted to array');\n * },\n * make_folder: function(callback) {\n * console.log('in make_folder');\n * // async code to create a directory to store a file in\n * // this is run at the same time as getting the data\n * callback(null, 'folder');\n * },\n * write_file: ['get_data', 'make_folder', function(results, callback) {\n * console.log('in write_file', JSON.stringify(results));\n * // once there is some data and the directory exists,\n * // write the data to a file in the directory\n * callback(null, 'filename');\n * }],\n * email_link: ['write_file', function(results, callback) {\n * console.log('in email_link', JSON.stringify(results));\n * // once the file is written let's email a link to it...\n * // results.write_file contains the filename returned by write_file.\n * callback(null, {'file':results.write_file, 'email':'user@example.com'});\n * }]\n * }, function(err, results) {\n * console.log('err = ', err);\n * console.log('results = ', results);\n * });\n */\nvar auto = function (tasks, concurrency, callback) {\n if (typeof concurrency === 'function') {\n // concurrency is optional, shift the args.\n callback = concurrency;\n concurrency = null;\n }\n callback = once(callback || noop);\n var keys$$1 = keys(tasks);\n var numTasks = keys$$1.length;\n if (!numTasks) {\n return callback(null);\n }\n if (!concurrency) {\n concurrency = numTasks;\n }\n\n var results = {};\n var runningTasks = 0;\n var hasError = false;\n\n var listeners = Object.create(null);\n\n var readyTasks = [];\n\n // for cycle detection:\n var readyToCheck = []; // tasks that have been identified as reachable\n // without the possibility of returning to an ancestor task\n var uncheckedDependencies = {};\n\n baseForOwn(tasks, function (task, key) {\n if (!isArray(task)) {\n // no dependencies\n enqueueTask(key, [task]);\n readyToCheck.push(key);\n return;\n }\n\n var dependencies = task.slice(0, task.length - 1);\n var remainingDependencies = dependencies.length;\n if (remainingDependencies === 0) {\n enqueueTask(key, task);\n readyToCheck.push(key);\n return;\n }\n uncheckedDependencies[key] = remainingDependencies;\n\n arrayEach(dependencies, function (dependencyName) {\n if (!tasks[dependencyName]) {\n throw new Error('async.auto task `' + key +\n '` has a non-existent dependency `' +\n dependencyName + '` in ' +\n dependencies.join(', '));\n }\n addListener(dependencyName, function () {\n remainingDependencies--;\n if (remainingDependencies === 0) {\n enqueueTask(key, task);\n }\n });\n });\n });\n\n checkForDeadlocks();\n processQueue();\n\n function enqueueTask(key, task) {\n readyTasks.push(function () {\n runTask(key, task);\n });\n }\n\n function processQueue() {\n if (readyTasks.length === 0 && runningTasks === 0) {\n return callback(null, results);\n }\n while(readyTasks.length && runningTasks < concurrency) {\n var run = readyTasks.shift();\n run();\n }\n\n }\n\n function addListener(taskName, fn) {\n var taskListeners = listeners[taskName];\n if (!taskListeners) {\n taskListeners = listeners[taskName] = [];\n }\n\n taskListeners.push(fn);\n }\n\n function taskComplete(taskName) {\n var taskListeners = listeners[taskName] || [];\n arrayEach(taskListeners, function (fn) {\n fn();\n });\n processQueue();\n }\n\n\n function runTask(key, task) {\n if (hasError) return;\n\n var taskCallback = onlyOnce(function(err, result) {\n runningTasks--;\n if (arguments.length > 2) {\n result = slice(arguments, 1);\n }\n if (err) {\n var safeResults = {};\n baseForOwn(results, function(val, rkey) {\n safeResults[rkey] = val;\n });\n safeResults[key] = result;\n hasError = true;\n listeners = Object.create(null);\n\n callback(err, safeResults);\n } else {\n results[key] = result;\n taskComplete(key);\n }\n });\n\n runningTasks++;\n var taskFn = wrapAsync(task[task.length - 1]);\n if (task.length > 1) {\n taskFn(results, taskCallback);\n } else {\n taskFn(taskCallback);\n }\n }\n\n function checkForDeadlocks() {\n // Kahn's algorithm\n // https://en.wikipedia.org/wiki/Topological_sorting#Kahn.27s_algorithm\n // http://connalle.blogspot.com/2013/10/topological-sortingkahn-algorithm.html\n var currentTask;\n var counter = 0;\n while (readyToCheck.length) {\n currentTask = readyToCheck.pop();\n counter++;\n arrayEach(getDependents(currentTask), function (dependent) {\n if (--uncheckedDependencies[dependent] === 0) {\n readyToCheck.push(dependent);\n }\n });\n }\n\n if (counter !== numTasks) {\n throw new Error(\n 'async.auto cannot execute tasks due to a recursive dependency'\n );\n }\n }\n\n function getDependents(taskName) {\n var result = [];\n baseForOwn(tasks, function (task, key) {\n if (isArray(task) && baseIndexOf(task, taskName, 0) >= 0) {\n result.push(key);\n }\n });\n return result;\n }\n};\n\n/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol$1 ? Symbol$1.prototype : undefined;\nvar symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\n/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\n\n/**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\nfunction castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n}\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\nfunction charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n}\n\n/**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\nfunction charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n}\n\n/**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction asciiToArray(string) {\n return string.split('');\n}\n\n/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff';\nvar rsComboMarksRange = '\\\\u0300-\\\\u036f';\nvar reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f';\nvar rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff';\nvar rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;\nvar rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\n\n/** Used to compose unicode character classes. */\nvar rsAstralRange$1 = '\\\\ud800-\\\\udfff';\nvar rsComboMarksRange$1 = '\\\\u0300-\\\\u036f';\nvar reComboHalfMarksRange$1 = '\\\\ufe20-\\\\ufe2f';\nvar rsComboSymbolsRange$1 = '\\\\u20d0-\\\\u20ff';\nvar rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1;\nvar rsVarRange$1 = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange$1 + ']';\nvar rsCombo = '[' + rsComboRange$1 + ']';\nvar rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]';\nvar rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')';\nvar rsNonAstral = '[^' + rsAstralRange$1 + ']';\nvar rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}';\nvar rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]';\nvar rsZWJ$1 = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?';\nvar rsOptVar = '[' + rsVarRange$1 + ']?';\nvar rsOptJoin = '(?:' + rsZWJ$1 + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*';\nvar rsSeq = rsOptVar + reOptMod + rsOptJoin;\nvar rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction unicodeToArray(string) {\n return string.match(reUnicode) || [];\n}\n\n/**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n}\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/**\n * Removes leading and trailing whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trim(' abc ');\n * // => 'abc'\n *\n * _.trim('-_-abc-_-', '_-');\n * // => 'abc'\n *\n * _.map([' foo ', ' bar '], _.trim);\n * // => ['foo', 'bar']\n */\nfunction trim(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return string.replace(reTrim, '');\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n chrSymbols = stringToArray(chars),\n start = charsStartIndex(strSymbols, chrSymbols),\n end = charsEndIndex(strSymbols, chrSymbols) + 1;\n\n return castSlice(strSymbols, start, end).join('');\n}\n\nvar FN_ARGS = /^(?:async\\s+)?(function)?\\s*[^\\(]*\\(\\s*([^\\)]*)\\)/m;\nvar FN_ARG_SPLIT = /,/;\nvar FN_ARG = /(=.+)?(\\s*)$/;\nvar STRIP_COMMENTS = /((\\/\\/.*$)|(\\/\\*[\\s\\S]*?\\*\\/))/mg;\n\nfunction parseParams(func) {\n func = func.toString().replace(STRIP_COMMENTS, '');\n func = func.match(FN_ARGS)[2].replace(' ', '');\n func = func ? func.split(FN_ARG_SPLIT) : [];\n func = func.map(function (arg){\n return trim(arg.replace(FN_ARG, ''));\n });\n return func;\n}\n\n/**\n * A dependency-injected version of the [async.auto]{@link module:ControlFlow.auto} function. Dependent\n * tasks are specified as parameters to the function, after the usual callback\n * parameter, with the parameter names matching the names of the tasks it\n * depends on. This can provide even more readable task graphs which can be\n * easier to maintain.\n *\n * If a final callback is specified, the task results are similarly injected,\n * specified as named parameters after the initial error parameter.\n *\n * The autoInject function is purely syntactic sugar and its semantics are\n * otherwise equivalent to [async.auto]{@link module:ControlFlow.auto}.\n *\n * @name autoInject\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.auto]{@link module:ControlFlow.auto}\n * @category Control Flow\n * @param {Object} tasks - An object, each of whose properties is an {@link AsyncFunction} of\n * the form 'func([dependencies...], callback). The object's key of a property\n * serves as the name of the task defined by that property, i.e. can be used\n * when specifying requirements for other tasks.\n * * The `callback` parameter is a `callback(err, result)` which must be called\n * when finished, passing an `error` (which can be `null`) and the result of\n * the function's execution. The remaining parameters name other tasks on\n * which the task is dependent, and the results from those tasks are the\n * arguments of those parameters.\n * @param {Function} [callback] - An optional callback which is called when all\n * the tasks have been completed. It receives the `err` argument if any `tasks`\n * pass an error to their callback, and a `results` object with any completed\n * task results, similar to `auto`.\n * @example\n *\n * // The example from `auto` can be rewritten as follows:\n * async.autoInject({\n * get_data: function(callback) {\n * // async code to get some data\n * callback(null, 'data', 'converted to array');\n * },\n * make_folder: function(callback) {\n * // async code to create a directory to store a file in\n * // this is run at the same time as getting the data\n * callback(null, 'folder');\n * },\n * write_file: function(get_data, make_folder, callback) {\n * // once there is some data and the directory exists,\n * // write the data to a file in the directory\n * callback(null, 'filename');\n * },\n * email_link: function(write_file, callback) {\n * // once the file is written let's email a link to it...\n * // write_file contains the filename returned by write_file.\n * callback(null, {'file':write_file, 'email':'user@example.com'});\n * }\n * }, function(err, results) {\n * console.log('err = ', err);\n * console.log('email_link = ', results.email_link);\n * });\n *\n * // If you are using a JS minifier that mangles parameter names, `autoInject`\n * // will not work with plain functions, since the parameter names will be\n * // collapsed to a single letter identifier. To work around this, you can\n * // explicitly specify the names of the parameters your task function needs\n * // in an array, similar to Angular.js dependency injection.\n *\n * // This still has an advantage over plain `auto`, since the results a task\n * // depends on are still spread into arguments.\n * async.autoInject({\n * //...\n * write_file: ['get_data', 'make_folder', function(get_data, make_folder, callback) {\n * callback(null, 'filename');\n * }],\n * email_link: ['write_file', function(write_file, callback) {\n * callback(null, {'file':write_file, 'email':'user@example.com'});\n * }]\n * //...\n * }, function(err, results) {\n * console.log('err = ', err);\n * console.log('email_link = ', results.email_link);\n * });\n */\nfunction autoInject(tasks, callback) {\n var newTasks = {};\n\n baseForOwn(tasks, function (taskFn, key) {\n var params;\n var fnIsAsync = isAsync(taskFn);\n var hasNoDeps =\n (!fnIsAsync && taskFn.length === 1) ||\n (fnIsAsync && taskFn.length === 0);\n\n if (isArray(taskFn)) {\n params = taskFn.slice(0, -1);\n taskFn = taskFn[taskFn.length - 1];\n\n newTasks[key] = params.concat(params.length > 0 ? newTask : taskFn);\n } else if (hasNoDeps) {\n // no dependencies, use the function as-is\n newTasks[key] = taskFn;\n } else {\n params = parseParams(taskFn);\n if (taskFn.length === 0 && !fnIsAsync && params.length === 0) {\n throw new Error(\"autoInject task functions require explicit parameters.\");\n }\n\n // remove callback param\n if (!fnIsAsync) params.pop();\n\n newTasks[key] = params.concat(newTask);\n }\n\n function newTask(results, taskCb) {\n var newArgs = arrayMap(params, function (name) {\n return results[name];\n });\n newArgs.push(taskCb);\n wrapAsync(taskFn).apply(null, newArgs);\n }\n });\n\n auto(newTasks, callback);\n}\n\n// Simple doubly linked list (https://en.wikipedia.org/wiki/Doubly_linked_list) implementation\n// used for queues. This implementation assumes that the node provided by the user can be modified\n// to adjust the next and last properties. We implement only the minimal functionality\n// for queue support.\nfunction DLL() {\n this.head = this.tail = null;\n this.length = 0;\n}\n\nfunction setInitial(dll, node) {\n dll.length = 1;\n dll.head = dll.tail = node;\n}\n\nDLL.prototype.removeLink = function(node) {\n if (node.prev) node.prev.next = node.next;\n else this.head = node.next;\n if (node.next) node.next.prev = node.prev;\n else this.tail = node.prev;\n\n node.prev = node.next = null;\n this.length -= 1;\n return node;\n};\n\nDLL.prototype.empty = function () {\n while(this.head) this.shift();\n return this;\n};\n\nDLL.prototype.insertAfter = function(node, newNode) {\n newNode.prev = node;\n newNode.next = node.next;\n if (node.next) node.next.prev = newNode;\n else this.tail = newNode;\n node.next = newNode;\n this.length += 1;\n};\n\nDLL.prototype.insertBefore = function(node, newNode) {\n newNode.prev = node.prev;\n newNode.next = node;\n if (node.prev) node.prev.next = newNode;\n else this.head = newNode;\n node.prev = newNode;\n this.length += 1;\n};\n\nDLL.prototype.unshift = function(node) {\n if (this.head) this.insertBefore(this.head, node);\n else setInitial(this, node);\n};\n\nDLL.prototype.push = function(node) {\n if (this.tail) this.insertAfter(this.tail, node);\n else setInitial(this, node);\n};\n\nDLL.prototype.shift = function() {\n return this.head && this.removeLink(this.head);\n};\n\nDLL.prototype.pop = function() {\n return this.tail && this.removeLink(this.tail);\n};\n\nDLL.prototype.toArray = function () {\n var arr = Array(this.length);\n var curr = this.head;\n for(var idx = 0; idx < this.length; idx++) {\n arr[idx] = curr.data;\n curr = curr.next;\n }\n return arr;\n};\n\nDLL.prototype.remove = function (testFn) {\n var curr = this.head;\n while(!!curr) {\n var next = curr.next;\n if (testFn(curr)) {\n this.removeLink(curr);\n }\n curr = next;\n }\n return this;\n};\n\nfunction queue(worker, concurrency, payload) {\n if (concurrency == null) {\n concurrency = 1;\n }\n else if(concurrency === 0) {\n throw new Error('Concurrency must not be zero');\n }\n\n var _worker = wrapAsync(worker);\n var numRunning = 0;\n var workersList = [];\n\n var processingScheduled = false;\n function _insert(data, insertAtFront, callback) {\n if (callback != null && typeof callback !== 'function') {\n throw new Error('task callback must be a function');\n }\n q.started = true;\n if (!isArray(data)) {\n data = [data];\n }\n if (data.length === 0 && q.idle()) {\n // call drain immediately if there are no tasks\n return setImmediate$1(function() {\n q.drain();\n });\n }\n\n for (var i = 0, l = data.length; i < l; i++) {\n var item = {\n data: data[i],\n callback: callback || noop\n };\n\n if (insertAtFront) {\n q._tasks.unshift(item);\n } else {\n q._tasks.push(item);\n }\n }\n\n if (!processingScheduled) {\n processingScheduled = true;\n setImmediate$1(function() {\n processingScheduled = false;\n q.process();\n });\n }\n }\n\n function _next(tasks) {\n return function(err){\n numRunning -= 1;\n\n for (var i = 0, l = tasks.length; i < l; i++) {\n var task = tasks[i];\n\n var index = baseIndexOf(workersList, task, 0);\n if (index === 0) {\n workersList.shift();\n } else if (index > 0) {\n workersList.splice(index, 1);\n }\n\n task.callback.apply(task, arguments);\n\n if (err != null) {\n q.error(err, task.data);\n }\n }\n\n if (numRunning <= (q.concurrency - q.buffer) ) {\n q.unsaturated();\n }\n\n if (q.idle()) {\n q.drain();\n }\n q.process();\n };\n }\n\n var isProcessing = false;\n var q = {\n _tasks: new DLL(),\n concurrency: concurrency,\n payload: payload,\n saturated: noop,\n unsaturated:noop,\n buffer: concurrency / 4,\n empty: noop,\n drain: noop,\n error: noop,\n started: false,\n paused: false,\n push: function (data, callback) {\n _insert(data, false, callback);\n },\n kill: function () {\n q.drain = noop;\n q._tasks.empty();\n },\n unshift: function (data, callback) {\n _insert(data, true, callback);\n },\n remove: function (testFn) {\n q._tasks.remove(testFn);\n },\n process: function () {\n // Avoid trying to start too many processing operations. This can occur\n // when callbacks resolve synchronously (#1267).\n if (isProcessing) {\n return;\n }\n isProcessing = true;\n while(!q.paused && numRunning < q.concurrency && q._tasks.length){\n var tasks = [], data = [];\n var l = q._tasks.length;\n if (q.payload) l = Math.min(l, q.payload);\n for (var i = 0; i < l; i++) {\n var node = q._tasks.shift();\n tasks.push(node);\n workersList.push(node);\n data.push(node.data);\n }\n\n numRunning += 1;\n\n if (q._tasks.length === 0) {\n q.empty();\n }\n\n if (numRunning === q.concurrency) {\n q.saturated();\n }\n\n var cb = onlyOnce(_next(tasks));\n _worker(data, cb);\n }\n isProcessing = false;\n },\n length: function () {\n return q._tasks.length;\n },\n running: function () {\n return numRunning;\n },\n workersList: function () {\n return workersList;\n },\n idle: function() {\n return q._tasks.length + numRunning === 0;\n },\n pause: function () {\n q.paused = true;\n },\n resume: function () {\n if (q.paused === false) { return; }\n q.paused = false;\n setImmediate$1(q.process);\n }\n };\n return q;\n}\n\n/**\n * A cargo of tasks for the worker function to complete. Cargo inherits all of\n * the same methods and event callbacks as [`queue`]{@link module:ControlFlow.queue}.\n * @typedef {Object} CargoObject\n * @memberOf module:ControlFlow\n * @property {Function} length - A function returning the number of items\n * waiting to be processed. Invoke like `cargo.length()`.\n * @property {number} payload - An `integer` for determining how many tasks\n * should be process per round. This property can be changed after a `cargo` is\n * created to alter the payload on-the-fly.\n * @property {Function} push - Adds `task` to the `queue`. The callback is\n * called once the `worker` has finished processing the task. Instead of a\n * single task, an array of `tasks` can be submitted. The respective callback is\n * used for every task in the list. Invoke like `cargo.push(task, [callback])`.\n * @property {Function} saturated - A callback that is called when the\n * `queue.length()` hits the concurrency and further tasks will be queued.\n * @property {Function} empty - A callback that is called when the last item\n * from the `queue` is given to a `worker`.\n * @property {Function} drain - A callback that is called when the last item\n * from the `queue` has returned from the `worker`.\n * @property {Function} idle - a function returning false if there are items\n * waiting or being processed, or true if not. Invoke like `cargo.idle()`.\n * @property {Function} pause - a function that pauses the processing of tasks\n * until `resume()` is called. Invoke like `cargo.pause()`.\n * @property {Function} resume - a function that resumes the processing of\n * queued tasks when the queue is paused. Invoke like `cargo.resume()`.\n * @property {Function} kill - a function that removes the `drain` callback and\n * empties remaining tasks from the queue forcing it to go idle. Invoke like `cargo.kill()`.\n */\n\n/**\n * Creates a `cargo` object with the specified payload. Tasks added to the\n * cargo will be processed altogether (up to the `payload` limit). If the\n * `worker` is in progress, the task is queued until it becomes available. Once\n * the `worker` has completed some tasks, each callback of those tasks is\n * called. Check out [these](https://camo.githubusercontent.com/6bbd36f4cf5b35a0f11a96dcd2e97711ffc2fb37/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130382f62626330636662302d356632392d313165322d393734662d3333393763363464633835382e676966) [animations](https://camo.githubusercontent.com/f4810e00e1c5f5f8addbe3e9f49064fd5d102699/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130312f38346339323036362d356632392d313165322d383134662d3964336430323431336266642e676966)\n * for how `cargo` and `queue` work.\n *\n * While [`queue`]{@link module:ControlFlow.queue} passes only one task to one of a group of workers\n * at a time, cargo passes an array of tasks to a single worker, repeating\n * when the worker is finished.\n *\n * @name cargo\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.queue]{@link module:ControlFlow.queue}\n * @category Control Flow\n * @param {AsyncFunction} worker - An asynchronous function for processing an array\n * of queued tasks. Invoked with `(tasks, callback)`.\n * @param {number} [payload=Infinity] - An optional `integer` for determining\n * how many tasks should be processed per round; if omitted, the default is\n * unlimited.\n * @returns {module:ControlFlow.CargoObject} A cargo object to manage the tasks. Callbacks can\n * attached as certain properties to listen for specific events during the\n * lifecycle of the cargo and inner queue.\n * @example\n *\n * // create a cargo object with payload 2\n * var cargo = async.cargo(function(tasks, callback) {\n * for (var i=0; i true\n */\nfunction identity(value) {\n return value;\n}\n\nfunction _createTester(check, getResult) {\n return function(eachfn, arr, iteratee, cb) {\n cb = cb || noop;\n var testPassed = false;\n var testResult;\n eachfn(arr, function(value, _, callback) {\n iteratee(value, function(err, result) {\n if (err) {\n callback(err);\n } else if (check(result) && !testResult) {\n testPassed = true;\n testResult = getResult(true, value);\n callback(null, breakLoop);\n } else {\n callback();\n }\n });\n }, function(err) {\n if (err) {\n cb(err);\n } else {\n cb(null, testPassed ? testResult : getResult(false));\n }\n });\n };\n}\n\nfunction _findGetResult(v, x) {\n return x;\n}\n\n/**\n * Returns the first value in `coll` that passes an async truth test. The\n * `iteratee` is applied in parallel, meaning the first iteratee to return\n * `true` will fire the detect `callback` with that result. That means the\n * result might not be the first item in the original `coll` (in terms of order)\n * that passes the test.\n\n * If order within the original `coll` is important, then look at\n * [`detectSeries`]{@link module:Collections.detectSeries}.\n *\n * @name detect\n * @static\n * @memberOf module:Collections\n * @method\n * @alias find\n * @category Collections\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.\n * The iteratee must complete with a boolean value as its result.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the `iteratee` functions have finished.\n * Result will be the first item in the array that passes the truth test\n * (iteratee) or the value `undefined` if none passed. Invoked with\n * (err, result).\n * @example\n *\n * async.detect(['file1','file2','file3'], function(filePath, callback) {\n * fs.access(filePath, function(err) {\n * callback(null, !err)\n * });\n * }, function(err, result) {\n * // result now equals the first file in the list that exists\n * });\n */\nvar detect = doParallel(_createTester(identity, _findGetResult));\n\n/**\n * The same as [`detect`]{@link module:Collections.detect} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name detectLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.detect]{@link module:Collections.detect}\n * @alias findLimit\n * @category Collections\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.\n * The iteratee must complete with a boolean value as its result.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the `iteratee` functions have finished.\n * Result will be the first item in the array that passes the truth test\n * (iteratee) or the value `undefined` if none passed. Invoked with\n * (err, result).\n */\nvar detectLimit = doParallelLimit(_createTester(identity, _findGetResult));\n\n/**\n * The same as [`detect`]{@link module:Collections.detect} but runs only a single async operation at a time.\n *\n * @name detectSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.detect]{@link module:Collections.detect}\n * @alias findSeries\n * @category Collections\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.\n * The iteratee must complete with a boolean value as its result.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the `iteratee` functions have finished.\n * Result will be the first item in the array that passes the truth test\n * (iteratee) or the value `undefined` if none passed. Invoked with\n * (err, result).\n */\nvar detectSeries = doLimit(detectLimit, 1);\n\nfunction consoleFunc(name) {\n return function (fn/*, ...args*/) {\n var args = slice(arguments, 1);\n args.push(function (err/*, ...args*/) {\n var args = slice(arguments, 1);\n if (typeof console === 'object') {\n if (err) {\n if (console.error) {\n console.error(err);\n }\n } else if (console[name]) {\n arrayEach(args, function (x) {\n console[name](x);\n });\n }\n }\n });\n wrapAsync(fn).apply(null, args);\n };\n}\n\n/**\n * Logs the result of an [`async` function]{@link AsyncFunction} to the\n * `console` using `console.dir` to display the properties of the resulting object.\n * Only works in Node.js or in browsers that support `console.dir` and\n * `console.error` (such as FF and Chrome).\n * If multiple arguments are returned from the async function,\n * `console.dir` is called on each argument in order.\n *\n * @name dir\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} function - The function you want to eventually apply\n * all arguments to.\n * @param {...*} arguments... - Any number of arguments to apply to the function.\n * @example\n *\n * // in a module\n * var hello = function(name, callback) {\n * setTimeout(function() {\n * callback(null, {hello: name});\n * }, 1000);\n * };\n *\n * // in the node repl\n * node> async.dir(hello, 'world');\n * {hello: 'world'}\n */\nvar dir = consoleFunc('dir');\n\n/**\n * The post-check version of [`during`]{@link module:ControlFlow.during}. To reflect the difference in\n * the order of operations, the arguments `test` and `fn` are switched.\n *\n * Also a version of [`doWhilst`]{@link module:ControlFlow.doWhilst} with asynchronous `test` function.\n * @name doDuring\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.during]{@link module:ControlFlow.during}\n * @category Control Flow\n * @param {AsyncFunction} fn - An async function which is called each time\n * `test` passes. Invoked with (callback).\n * @param {AsyncFunction} test - asynchronous truth test to perform before each\n * execution of `fn`. Invoked with (...args, callback), where `...args` are the\n * non-error args from the previous callback of `fn`.\n * @param {Function} [callback] - A callback which is called after the test\n * function has failed and repeated execution of `fn` has stopped. `callback`\n * will be passed an error if one occurred, otherwise `null`.\n */\nfunction doDuring(fn, test, callback) {\n callback = onlyOnce(callback || noop);\n var _fn = wrapAsync(fn);\n var _test = wrapAsync(test);\n\n function next(err/*, ...args*/) {\n if (err) return callback(err);\n var args = slice(arguments, 1);\n args.push(check);\n _test.apply(this, args);\n }\n\n function check(err, truth) {\n if (err) return callback(err);\n if (!truth) return callback(null);\n _fn(next);\n }\n\n check(null, true);\n\n}\n\n/**\n * The post-check version of [`whilst`]{@link module:ControlFlow.whilst}. To reflect the difference in\n * the order of operations, the arguments `test` and `iteratee` are switched.\n *\n * `doWhilst` is to `whilst` as `do while` is to `while` in plain JavaScript.\n *\n * @name doWhilst\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.whilst]{@link module:ControlFlow.whilst}\n * @category Control Flow\n * @param {AsyncFunction} iteratee - A function which is called each time `test`\n * passes. Invoked with (callback).\n * @param {Function} test - synchronous truth test to perform after each\n * execution of `iteratee`. Invoked with any non-error callback results of\n * `iteratee`.\n * @param {Function} [callback] - A callback which is called after the test\n * function has failed and repeated execution of `iteratee` has stopped.\n * `callback` will be passed an error and any arguments passed to the final\n * `iteratee`'s callback. Invoked with (err, [results]);\n */\nfunction doWhilst(iteratee, test, callback) {\n callback = onlyOnce(callback || noop);\n var _iteratee = wrapAsync(iteratee);\n var next = function(err/*, ...args*/) {\n if (err) return callback(err);\n var args = slice(arguments, 1);\n if (test.apply(this, args)) return _iteratee(next);\n callback.apply(null, [null].concat(args));\n };\n _iteratee(next);\n}\n\n/**\n * Like ['doWhilst']{@link module:ControlFlow.doWhilst}, except the `test` is inverted. Note the\n * argument ordering differs from `until`.\n *\n * @name doUntil\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.doWhilst]{@link module:ControlFlow.doWhilst}\n * @category Control Flow\n * @param {AsyncFunction} iteratee - An async function which is called each time\n * `test` fails. Invoked with (callback).\n * @param {Function} test - synchronous truth test to perform after each\n * execution of `iteratee`. Invoked with any non-error callback results of\n * `iteratee`.\n * @param {Function} [callback] - A callback which is called after the test\n * function has passed and repeated execution of `iteratee` has stopped. `callback`\n * will be passed an error and any arguments passed to the final `iteratee`'s\n * callback. Invoked with (err, [results]);\n */\nfunction doUntil(iteratee, test, callback) {\n doWhilst(iteratee, function() {\n return !test.apply(this, arguments);\n }, callback);\n}\n\n/**\n * Like [`whilst`]{@link module:ControlFlow.whilst}, except the `test` is an asynchronous function that\n * is passed a callback in the form of `function (err, truth)`. If error is\n * passed to `test` or `fn`, the main callback is immediately called with the\n * value of the error.\n *\n * @name during\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.whilst]{@link module:ControlFlow.whilst}\n * @category Control Flow\n * @param {AsyncFunction} test - asynchronous truth test to perform before each\n * execution of `fn`. Invoked with (callback).\n * @param {AsyncFunction} fn - An async function which is called each time\n * `test` passes. Invoked with (callback).\n * @param {Function} [callback] - A callback which is called after the test\n * function has failed and repeated execution of `fn` has stopped. `callback`\n * will be passed an error, if one occurred, otherwise `null`.\n * @example\n *\n * var count = 0;\n *\n * async.during(\n * function (callback) {\n * return callback(null, count < 5);\n * },\n * function (callback) {\n * count++;\n * setTimeout(callback, 1000);\n * },\n * function (err) {\n * // 5 seconds have passed\n * }\n * );\n */\nfunction during(test, fn, callback) {\n callback = onlyOnce(callback || noop);\n var _fn = wrapAsync(fn);\n var _test = wrapAsync(test);\n\n function next(err) {\n if (err) return callback(err);\n _test(check);\n }\n\n function check(err, truth) {\n if (err) return callback(err);\n if (!truth) return callback(null);\n _fn(next);\n }\n\n _test(check);\n}\n\nfunction _withoutIndex(iteratee) {\n return function (value, index, callback) {\n return iteratee(value, callback);\n };\n}\n\n/**\n * Applies the function `iteratee` to each item in `coll`, in parallel.\n * The `iteratee` is called with an item from the list, and a callback for when\n * it has finished. If the `iteratee` passes an error to its `callback`, the\n * main `callback` (for the `each` function) is immediately called with the\n * error.\n *\n * Note, that since this function applies `iteratee` to each item in parallel,\n * there is no guarantee that the iteratee functions will complete in order.\n *\n * @name each\n * @static\n * @memberOf module:Collections\n * @method\n * @alias forEach\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to\n * each item in `coll`. Invoked with (item, callback).\n * The array index is not passed to the iteratee.\n * If you need the index, use `eachOf`.\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @example\n *\n * // assuming openFiles is an array of file names and saveFile is a function\n * // to save the modified contents of that file:\n *\n * async.each(openFiles, saveFile, function(err){\n * // if any of the saves produced an error, err would equal that error\n * });\n *\n * // assuming openFiles is an array of file names\n * async.each(openFiles, function(file, callback) {\n *\n * // Perform operation on file here.\n * console.log('Processing file ' + file);\n *\n * if( file.length > 32 ) {\n * console.log('This file name is too long');\n * callback('File name too long');\n * } else {\n * // Do work to process file here\n * console.log('File processed');\n * callback();\n * }\n * }, function(err) {\n * // if any of the file processing produced an error, err would equal that error\n * if( err ) {\n * // One of the iterations produced an error.\n * // All processing will now stop.\n * console.log('A file failed to process');\n * } else {\n * console.log('All files have been processed successfully');\n * }\n * });\n */\nfunction eachLimit(coll, iteratee, callback) {\n eachOf(coll, _withoutIndex(wrapAsync(iteratee)), callback);\n}\n\n/**\n * The same as [`each`]{@link module:Collections.each} but runs a maximum of `limit` async operations at a time.\n *\n * @name eachLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.each]{@link module:Collections.each}\n * @alias forEachLimit\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The array index is not passed to the iteratee.\n * If you need the index, use `eachOfLimit`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n */\nfunction eachLimit$1(coll, limit, iteratee, callback) {\n _eachOfLimit(limit)(coll, _withoutIndex(wrapAsync(iteratee)), callback);\n}\n\n/**\n * The same as [`each`]{@link module:Collections.each} but runs only a single async operation at a time.\n *\n * @name eachSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.each]{@link module:Collections.each}\n * @alias forEachSeries\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each\n * item in `coll`.\n * The array index is not passed to the iteratee.\n * If you need the index, use `eachOfSeries`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n */\nvar eachSeries = doLimit(eachLimit$1, 1);\n\n/**\n * Wrap an async function and ensure it calls its callback on a later tick of\n * the event loop. If the function already calls its callback on a next tick,\n * no extra deferral is added. This is useful for preventing stack overflows\n * (`RangeError: Maximum call stack size exceeded`) and generally keeping\n * [Zalgo](http://blog.izs.me/post/59142742143/designing-apis-for-asynchrony)\n * contained. ES2017 `async` functions are returned as-is -- they are immune\n * to Zalgo's corrupting influences, as they always resolve on a later tick.\n *\n * @name ensureAsync\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} fn - an async function, one that expects a node-style\n * callback as its last argument.\n * @returns {AsyncFunction} Returns a wrapped function with the exact same call\n * signature as the function passed in.\n * @example\n *\n * function sometimesAsync(arg, callback) {\n * if (cache[arg]) {\n * return callback(null, cache[arg]); // this would be synchronous!!\n * } else {\n * doSomeIO(arg, callback); // this IO would be asynchronous\n * }\n * }\n *\n * // this has a risk of stack overflows if many results are cached in a row\n * async.mapSeries(args, sometimesAsync, done);\n *\n * // this will defer sometimesAsync's callback if necessary,\n * // preventing stack overflows\n * async.mapSeries(args, async.ensureAsync(sometimesAsync), done);\n */\nfunction ensureAsync(fn) {\n if (isAsync(fn)) return fn;\n return initialParams(function (args, callback) {\n var sync = true;\n args.push(function () {\n var innerArgs = arguments;\n if (sync) {\n setImmediate$1(function () {\n callback.apply(null, innerArgs);\n });\n } else {\n callback.apply(null, innerArgs);\n }\n });\n fn.apply(this, args);\n sync = false;\n });\n}\n\nfunction notId(v) {\n return !v;\n}\n\n/**\n * Returns `true` if every element in `coll` satisfies an async test. If any\n * iteratee call returns `false`, the main `callback` is immediately called.\n *\n * @name every\n * @static\n * @memberOf module:Collections\n * @method\n * @alias all\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collection in parallel.\n * The iteratee must complete with a boolean result value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result will be either `true` or `false`\n * depending on the values of the async tests. Invoked with (err, result).\n * @example\n *\n * async.every(['file1','file2','file3'], function(filePath, callback) {\n * fs.access(filePath, function(err) {\n * callback(null, !err)\n * });\n * }, function(err, result) {\n * // if result is true then every file exists\n * });\n */\nvar every = doParallel(_createTester(notId, notId));\n\n/**\n * The same as [`every`]{@link module:Collections.every} but runs a maximum of `limit` async operations at a time.\n *\n * @name everyLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.every]{@link module:Collections.every}\n * @alias allLimit\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collection in parallel.\n * The iteratee must complete with a boolean result value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result will be either `true` or `false`\n * depending on the values of the async tests. Invoked with (err, result).\n */\nvar everyLimit = doParallelLimit(_createTester(notId, notId));\n\n/**\n * The same as [`every`]{@link module:Collections.every} but runs only a single async operation at a time.\n *\n * @name everySeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.every]{@link module:Collections.every}\n * @alias allSeries\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collection in series.\n * The iteratee must complete with a boolean result value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result will be either `true` or `false`\n * depending on the values of the async tests. Invoked with (err, result).\n */\nvar everySeries = doLimit(everyLimit, 1);\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\nfunction filterArray(eachfn, arr, iteratee, callback) {\n var truthValues = new Array(arr.length);\n eachfn(arr, function (x, index, callback) {\n iteratee(x, function (err, v) {\n truthValues[index] = !!v;\n callback(err);\n });\n }, function (err) {\n if (err) return callback(err);\n var results = [];\n for (var i = 0; i < arr.length; i++) {\n if (truthValues[i]) results.push(arr[i]);\n }\n callback(null, results);\n });\n}\n\nfunction filterGeneric(eachfn, coll, iteratee, callback) {\n var results = [];\n eachfn(coll, function (x, index, callback) {\n iteratee(x, function (err, v) {\n if (err) {\n callback(err);\n } else {\n if (v) {\n results.push({index: index, value: x});\n }\n callback();\n }\n });\n }, function (err) {\n if (err) {\n callback(err);\n } else {\n callback(null, arrayMap(results.sort(function (a, b) {\n return a.index - b.index;\n }), baseProperty('value')));\n }\n });\n}\n\nfunction _filter(eachfn, coll, iteratee, callback) {\n var filter = isArrayLike(coll) ? filterArray : filterGeneric;\n filter(eachfn, coll, wrapAsync(iteratee), callback || noop);\n}\n\n/**\n * Returns a new array of all the values in `coll` which pass an async truth\n * test. This operation is performed in parallel, but the results array will be\n * in the same order as the original.\n *\n * @name filter\n * @static\n * @memberOf module:Collections\n * @method\n * @alias select\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {Function} iteratee - A truth test to apply to each item in `coll`.\n * The `iteratee` is passed a `callback(err, truthValue)`, which must be called\n * with a boolean argument once it has completed. Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n * @example\n *\n * async.filter(['file1','file2','file3'], function(filePath, callback) {\n * fs.access(filePath, function(err) {\n * callback(null, !err)\n * });\n * }, function(err, results) {\n * // results now equals an array of the existing files\n * });\n */\nvar filter = doParallel(_filter);\n\n/**\n * The same as [`filter`]{@link module:Collections.filter} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name filterLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.filter]{@link module:Collections.filter}\n * @alias selectLimit\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {Function} iteratee - A truth test to apply to each item in `coll`.\n * The `iteratee` is passed a `callback(err, truthValue)`, which must be called\n * with a boolean argument once it has completed. Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n */\nvar filterLimit = doParallelLimit(_filter);\n\n/**\n * The same as [`filter`]{@link module:Collections.filter} but runs only a single async operation at a time.\n *\n * @name filterSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.filter]{@link module:Collections.filter}\n * @alias selectSeries\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {Function} iteratee - A truth test to apply to each item in `coll`.\n * The `iteratee` is passed a `callback(err, truthValue)`, which must be called\n * with a boolean argument once it has completed. Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results)\n */\nvar filterSeries = doLimit(filterLimit, 1);\n\n/**\n * Calls the asynchronous function `fn` with a callback parameter that allows it\n * to call itself again, in series, indefinitely.\n\n * If an error is passed to the callback then `errback` is called with the\n * error, and execution stops, otherwise it will never be called.\n *\n * @name forever\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {AsyncFunction} fn - an async function to call repeatedly.\n * Invoked with (next).\n * @param {Function} [errback] - when `fn` passes an error to it's callback,\n * this function will be called, and execution stops. Invoked with (err).\n * @example\n *\n * async.forever(\n * function(next) {\n * // next is suitable for passing to things that need a callback(err [, whatever]);\n * // it will result in this function being called again.\n * },\n * function(err) {\n * // if next is called with a value in its first parameter, it will appear\n * // in here as 'err', and execution will stop.\n * }\n * );\n */\nfunction forever(fn, errback) {\n var done = onlyOnce(errback || noop);\n var task = wrapAsync(ensureAsync(fn));\n\n function next(err) {\n if (err) return done(err);\n task(next);\n }\n next();\n}\n\n/**\n * The same as [`groupBy`]{@link module:Collections.groupBy} but runs a maximum of `limit` async operations at a time.\n *\n * @name groupByLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.groupBy]{@link module:Collections.groupBy}\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with a `key` to group the value under.\n * Invoked with (value, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Result is an `Object` whoses\n * properties are arrays of values which returned the corresponding key.\n */\nvar groupByLimit = function(coll, limit, iteratee, callback) {\n callback = callback || noop;\n var _iteratee = wrapAsync(iteratee);\n mapLimit(coll, limit, function(val, callback) {\n _iteratee(val, function(err, key) {\n if (err) return callback(err);\n return callback(null, {key: key, val: val});\n });\n }, function(err, mapResults) {\n var result = {};\n // from MDN, handle object having an `hasOwnProperty` prop\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n\n for (var i = 0; i < mapResults.length; i++) {\n if (mapResults[i]) {\n var key = mapResults[i].key;\n var val = mapResults[i].val;\n\n if (hasOwnProperty.call(result, key)) {\n result[key].push(val);\n } else {\n result[key] = [val];\n }\n }\n }\n\n return callback(err, result);\n });\n};\n\n/**\n * Returns a new object, where each value corresponds to an array of items, from\n * `coll`, that returned the corresponding key. That is, the keys of the object\n * correspond to the values passed to the `iteratee` callback.\n *\n * Note: Since this function applies the `iteratee` to each item in parallel,\n * there is no guarantee that the `iteratee` functions will complete in order.\n * However, the values for each key in the `result` will be in the same order as\n * the original `coll`. For Objects, the values will roughly be in the order of\n * the original Objects' keys (but this can vary across JavaScript engines).\n *\n * @name groupBy\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with a `key` to group the value under.\n * Invoked with (value, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Result is an `Object` whoses\n * properties are arrays of values which returned the corresponding key.\n * @example\n *\n * async.groupBy(['userId1', 'userId2', 'userId3'], function(userId, callback) {\n * db.findById(userId, function(err, user) {\n * if (err) return callback(err);\n * return callback(null, user.age);\n * });\n * }, function(err, result) {\n * // result is object containing the userIds grouped by age\n * // e.g. { 30: ['userId1', 'userId3'], 42: ['userId2']};\n * });\n */\nvar groupBy = doLimit(groupByLimit, Infinity);\n\n/**\n * The same as [`groupBy`]{@link module:Collections.groupBy} but runs only a single async operation at a time.\n *\n * @name groupBySeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.groupBy]{@link module:Collections.groupBy}\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with a `key` to group the value under.\n * Invoked with (value, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Result is an `Object` whoses\n * properties are arrays of values which returned the corresponding key.\n */\nvar groupBySeries = doLimit(groupByLimit, 1);\n\n/**\n * Logs the result of an `async` function to the `console`. Only works in\n * Node.js or in browsers that support `console.log` and `console.error` (such\n * as FF and Chrome). If multiple arguments are returned from the async\n * function, `console.log` is called on each argument in order.\n *\n * @name log\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} function - The function you want to eventually apply\n * all arguments to.\n * @param {...*} arguments... - Any number of arguments to apply to the function.\n * @example\n *\n * // in a module\n * var hello = function(name, callback) {\n * setTimeout(function() {\n * callback(null, 'hello ' + name);\n * }, 1000);\n * };\n *\n * // in the node repl\n * node> async.log(hello, 'world');\n * 'hello world'\n */\nvar log = consoleFunc('log');\n\n/**\n * The same as [`mapValues`]{@link module:Collections.mapValues} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name mapValuesLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.mapValues]{@link module:Collections.mapValues}\n * @category Collection\n * @param {Object} obj - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - A function to apply to each value and key\n * in `coll`.\n * The iteratee should complete with the transformed value as its result.\n * Invoked with (value, key, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. `result` is a new object consisting\n * of each key from `obj`, with each transformed value on the right-hand side.\n * Invoked with (err, result).\n */\nfunction mapValuesLimit(obj, limit, iteratee, callback) {\n callback = once(callback || noop);\n var newObj = {};\n var _iteratee = wrapAsync(iteratee);\n eachOfLimit(obj, limit, function(val, key, next) {\n _iteratee(val, key, function (err, result) {\n if (err) return next(err);\n newObj[key] = result;\n next();\n });\n }, function (err) {\n callback(err, newObj);\n });\n}\n\n/**\n * A relative of [`map`]{@link module:Collections.map}, designed for use with objects.\n *\n * Produces a new Object by mapping each value of `obj` through the `iteratee`\n * function. The `iteratee` is called each `value` and `key` from `obj` and a\n * callback for when it has finished processing. Each of these callbacks takes\n * two arguments: an `error`, and the transformed item from `obj`. If `iteratee`\n * passes an error to its callback, the main `callback` (for the `mapValues`\n * function) is immediately called with the error.\n *\n * Note, the order of the keys in the result is not guaranteed. The keys will\n * be roughly in the order they complete, (but this is very engine-specific)\n *\n * @name mapValues\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Object} obj - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each value and key\n * in `coll`.\n * The iteratee should complete with the transformed value as its result.\n * Invoked with (value, key, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. `result` is a new object consisting\n * of each key from `obj`, with each transformed value on the right-hand side.\n * Invoked with (err, result).\n * @example\n *\n * async.mapValues({\n * f1: 'file1',\n * f2: 'file2',\n * f3: 'file3'\n * }, function (file, key, callback) {\n * fs.stat(file, callback);\n * }, function(err, result) {\n * // result is now a map of stats for each file, e.g.\n * // {\n * // f1: [stats for file1],\n * // f2: [stats for file2],\n * // f3: [stats for file3]\n * // }\n * });\n */\n\nvar mapValues = doLimit(mapValuesLimit, Infinity);\n\n/**\n * The same as [`mapValues`]{@link module:Collections.mapValues} but runs only a single async operation at a time.\n *\n * @name mapValuesSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.mapValues]{@link module:Collections.mapValues}\n * @category Collection\n * @param {Object} obj - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each value and key\n * in `coll`.\n * The iteratee should complete with the transformed value as its result.\n * Invoked with (value, key, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. `result` is a new object consisting\n * of each key from `obj`, with each transformed value on the right-hand side.\n * Invoked with (err, result).\n */\nvar mapValuesSeries = doLimit(mapValuesLimit, 1);\n\nfunction has(obj, key) {\n return key in obj;\n}\n\n/**\n * Caches the results of an async function. When creating a hash to store\n * function results against, the callback is omitted from the hash and an\n * optional hash function can be used.\n *\n * If no hash function is specified, the first argument is used as a hash key,\n * which may work reasonably if it is a string or a data type that converts to a\n * distinct string. Note that objects and arrays will not behave reasonably.\n * Neither will cases where the other arguments are significant. In such cases,\n * specify your own hash function.\n *\n * The cache of results is exposed as the `memo` property of the function\n * returned by `memoize`.\n *\n * @name memoize\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} fn - The async function to proxy and cache results from.\n * @param {Function} hasher - An optional function for generating a custom hash\n * for storing results. It has all the arguments applied to it apart from the\n * callback, and must be synchronous.\n * @returns {AsyncFunction} a memoized version of `fn`\n * @example\n *\n * var slow_fn = function(name, callback) {\n * // do something\n * callback(null, result);\n * };\n * var fn = async.memoize(slow_fn);\n *\n * // fn can now be used as if it were slow_fn\n * fn('some name', function() {\n * // callback\n * });\n */\nfunction memoize(fn, hasher) {\n var memo = Object.create(null);\n var queues = Object.create(null);\n hasher = hasher || identity;\n var _fn = wrapAsync(fn);\n var memoized = initialParams(function memoized(args, callback) {\n var key = hasher.apply(null, args);\n if (has(memo, key)) {\n setImmediate$1(function() {\n callback.apply(null, memo[key]);\n });\n } else if (has(queues, key)) {\n queues[key].push(callback);\n } else {\n queues[key] = [callback];\n _fn.apply(null, args.concat(function(/*args*/) {\n var args = slice(arguments);\n memo[key] = args;\n var q = queues[key];\n delete queues[key];\n for (var i = 0, l = q.length; i < l; i++) {\n q[i].apply(null, args);\n }\n }));\n }\n });\n memoized.memo = memo;\n memoized.unmemoized = fn;\n return memoized;\n}\n\n/**\n * Calls `callback` on a later loop around the event loop. In Node.js this just\n * calls `process.nextTick`. In the browser it will use `setImmediate` if\n * available, otherwise `setTimeout(callback, 0)`, which means other higher\n * priority events may precede the execution of `callback`.\n *\n * This is used internally for browser-compatibility purposes.\n *\n * @name nextTick\n * @static\n * @memberOf module:Utils\n * @method\n * @see [async.setImmediate]{@link module:Utils.setImmediate}\n * @category Util\n * @param {Function} callback - The function to call on a later loop around\n * the event loop. Invoked with (args...).\n * @param {...*} args... - any number of additional arguments to pass to the\n * callback on the next tick.\n * @example\n *\n * var call_order = [];\n * async.nextTick(function() {\n * call_order.push('two');\n * // call_order now equals ['one','two']\n * });\n * call_order.push('one');\n *\n * async.setImmediate(function (a, b, c) {\n * // a, b, and c equal 1, 2, and 3\n * }, 1, 2, 3);\n */\nvar _defer$1;\n\nif (hasNextTick) {\n _defer$1 = process.nextTick;\n} else if (hasSetImmediate) {\n _defer$1 = setImmediate;\n} else {\n _defer$1 = fallback;\n}\n\nvar nextTick = wrap(_defer$1);\n\nfunction _parallel(eachfn, tasks, callback) {\n callback = callback || noop;\n var results = isArrayLike(tasks) ? [] : {};\n\n eachfn(tasks, function (task, key, callback) {\n wrapAsync(task)(function (err, result) {\n if (arguments.length > 2) {\n result = slice(arguments, 1);\n }\n results[key] = result;\n callback(err);\n });\n }, function (err) {\n callback(err, results);\n });\n}\n\n/**\n * Run the `tasks` collection of functions in parallel, without waiting until\n * the previous function has completed. If any of the functions pass an error to\n * its callback, the main `callback` is immediately called with the value of the\n * error. Once the `tasks` have completed, the results are passed to the final\n * `callback` as an array.\n *\n * **Note:** `parallel` is about kicking-off I/O tasks in parallel, not about\n * parallel execution of code. If your tasks do not use any timers or perform\n * any I/O, they will actually be executed in series. Any synchronous setup\n * sections for each task will happen one after the other. JavaScript remains\n * single-threaded.\n *\n * **Hint:** Use [`reflect`]{@link module:Utils.reflect} to continue the\n * execution of other tasks when a task fails.\n *\n * It is also possible to use an object instead of an array. Each property will\n * be run as a function and the results will be passed to the final `callback`\n * as an object instead of an array. This can be a more readable way of handling\n * results from {@link async.parallel}.\n *\n * @name parallel\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|Object} tasks - A collection of\n * [async functions]{@link AsyncFunction} to run.\n * Each async function can complete with any number of optional `result` values.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed successfully. This function gets a results array\n * (or object) containing all the result arguments passed to the task callbacks.\n * Invoked with (err, results).\n *\n * @example\n * async.parallel([\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ],\n * // optional callback\n * function(err, results) {\n * // the results array will equal ['one','two'] even though\n * // the second function had a shorter timeout.\n * });\n *\n * // an example using an object instead of an array\n * async.parallel({\n * one: function(callback) {\n * setTimeout(function() {\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback) {\n * setTimeout(function() {\n * callback(null, 2);\n * }, 100);\n * }\n * }, function(err, results) {\n * // results is now equals to: {one: 1, two: 2}\n * });\n */\nfunction parallelLimit(tasks, callback) {\n _parallel(eachOf, tasks, callback);\n}\n\n/**\n * The same as [`parallel`]{@link module:ControlFlow.parallel} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name parallelLimit\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.parallel]{@link module:ControlFlow.parallel}\n * @category Control Flow\n * @param {Array|Iterable|Object} tasks - A collection of\n * [async functions]{@link AsyncFunction} to run.\n * Each async function can complete with any number of optional `result` values.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed successfully. This function gets a results array\n * (or object) containing all the result arguments passed to the task callbacks.\n * Invoked with (err, results).\n */\nfunction parallelLimit$1(tasks, limit, callback) {\n _parallel(_eachOfLimit(limit), tasks, callback);\n}\n\n/**\n * A queue of tasks for the worker function to complete.\n * @typedef {Object} QueueObject\n * @memberOf module:ControlFlow\n * @property {Function} length - a function returning the number of items\n * waiting to be processed. Invoke with `queue.length()`.\n * @property {boolean} started - a boolean indicating whether or not any\n * items have been pushed and processed by the queue.\n * @property {Function} running - a function returning the number of items\n * currently being processed. Invoke with `queue.running()`.\n * @property {Function} workersList - a function returning the array of items\n * currently being processed. Invoke with `queue.workersList()`.\n * @property {Function} idle - a function returning false if there are items\n * waiting or being processed, or true if not. Invoke with `queue.idle()`.\n * @property {number} concurrency - an integer for determining how many `worker`\n * functions should be run in parallel. This property can be changed after a\n * `queue` is created to alter the concurrency on-the-fly.\n * @property {Function} push - add a new task to the `queue`. Calls `callback`\n * once the `worker` has finished processing the task. Instead of a single task,\n * a `tasks` array can be submitted. The respective callback is used for every\n * task in the list. Invoke with `queue.push(task, [callback])`,\n * @property {Function} unshift - add a new task to the front of the `queue`.\n * Invoke with `queue.unshift(task, [callback])`.\n * @property {Function} remove - remove items from the queue that match a test\n * function. The test function will be passed an object with a `data` property,\n * and a `priority` property, if this is a\n * [priorityQueue]{@link module:ControlFlow.priorityQueue} object.\n * Invoked with `queue.remove(testFn)`, where `testFn` is of the form\n * `function ({data, priority}) {}` and returns a Boolean.\n * @property {Function} saturated - a callback that is called when the number of\n * running workers hits the `concurrency` limit, and further tasks will be\n * queued.\n * @property {Function} unsaturated - a callback that is called when the number\n * of running workers is less than the `concurrency` & `buffer` limits, and\n * further tasks will not be queued.\n * @property {number} buffer - A minimum threshold buffer in order to say that\n * the `queue` is `unsaturated`.\n * @property {Function} empty - a callback that is called when the last item\n * from the `queue` is given to a `worker`.\n * @property {Function} drain - a callback that is called when the last item\n * from the `queue` has returned from the `worker`.\n * @property {Function} error - a callback that is called when a task errors.\n * Has the signature `function(error, task)`.\n * @property {boolean} paused - a boolean for determining whether the queue is\n * in a paused state.\n * @property {Function} pause - a function that pauses the processing of tasks\n * until `resume()` is called. Invoke with `queue.pause()`.\n * @property {Function} resume - a function that resumes the processing of\n * queued tasks when the queue is paused. Invoke with `queue.resume()`.\n * @property {Function} kill - a function that removes the `drain` callback and\n * empties remaining tasks from the queue forcing it to go idle. No more tasks\n * should be pushed to the queue after calling this function. Invoke with `queue.kill()`.\n */\n\n/**\n * Creates a `queue` object with the specified `concurrency`. Tasks added to the\n * `queue` are processed in parallel (up to the `concurrency` limit). If all\n * `worker`s are in progress, the task is queued until one becomes available.\n * Once a `worker` completes a `task`, that `task`'s callback is called.\n *\n * @name queue\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {AsyncFunction} worker - An async function for processing a queued task.\n * If you want to handle errors from an individual task, pass a callback to\n * `q.push()`. Invoked with (task, callback).\n * @param {number} [concurrency=1] - An `integer` for determining how many\n * `worker` functions should be run in parallel. If omitted, the concurrency\n * defaults to `1`. If the concurrency is `0`, an error is thrown.\n * @returns {module:ControlFlow.QueueObject} A queue object to manage the tasks. Callbacks can\n * attached as certain properties to listen for specific events during the\n * lifecycle of the queue.\n * @example\n *\n * // create a queue object with concurrency 2\n * var q = async.queue(function(task, callback) {\n * console.log('hello ' + task.name);\n * callback();\n * }, 2);\n *\n * // assign a callback\n * q.drain = function() {\n * console.log('all items have been processed');\n * };\n *\n * // add some items to the queue\n * q.push({name: 'foo'}, function(err) {\n * console.log('finished processing foo');\n * });\n * q.push({name: 'bar'}, function (err) {\n * console.log('finished processing bar');\n * });\n *\n * // add some items to the queue (batch-wise)\n * q.push([{name: 'baz'},{name: 'bay'},{name: 'bax'}], function(err) {\n * console.log('finished processing item');\n * });\n *\n * // add some items to the front of the queue\n * q.unshift({name: 'bar'}, function (err) {\n * console.log('finished processing bar');\n * });\n */\nvar queue$1 = function (worker, concurrency) {\n var _worker = wrapAsync(worker);\n return queue(function (items, cb) {\n _worker(items[0], cb);\n }, concurrency, 1);\n};\n\n/**\n * The same as [async.queue]{@link module:ControlFlow.queue} only tasks are assigned a priority and\n * completed in ascending priority order.\n *\n * @name priorityQueue\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.queue]{@link module:ControlFlow.queue}\n * @category Control Flow\n * @param {AsyncFunction} worker - An async function for processing a queued task.\n * If you want to handle errors from an individual task, pass a callback to\n * `q.push()`.\n * Invoked with (task, callback).\n * @param {number} concurrency - An `integer` for determining how many `worker`\n * functions should be run in parallel. If omitted, the concurrency defaults to\n * `1`. If the concurrency is `0`, an error is thrown.\n * @returns {module:ControlFlow.QueueObject} A priorityQueue object to manage the tasks. There are two\n * differences between `queue` and `priorityQueue` objects:\n * * `push(task, priority, [callback])` - `priority` should be a number. If an\n * array of `tasks` is given, all tasks will be assigned the same priority.\n * * The `unshift` method was removed.\n */\nvar priorityQueue = function(worker, concurrency) {\n // Start with a normal queue\n var q = queue$1(worker, concurrency);\n\n // Override push to accept second parameter representing priority\n q.push = function(data, priority, callback) {\n if (callback == null) callback = noop;\n if (typeof callback !== 'function') {\n throw new Error('task callback must be a function');\n }\n q.started = true;\n if (!isArray(data)) {\n data = [data];\n }\n if (data.length === 0) {\n // call drain immediately if there are no tasks\n return setImmediate$1(function() {\n q.drain();\n });\n }\n\n priority = priority || 0;\n var nextNode = q._tasks.head;\n while (nextNode && priority >= nextNode.priority) {\n nextNode = nextNode.next;\n }\n\n for (var i = 0, l = data.length; i < l; i++) {\n var item = {\n data: data[i],\n priority: priority,\n callback: callback\n };\n\n if (nextNode) {\n q._tasks.insertBefore(nextNode, item);\n } else {\n q._tasks.push(item);\n }\n }\n setImmediate$1(q.process);\n };\n\n // Remove unshift function\n delete q.unshift;\n\n return q;\n};\n\n/**\n * Runs the `tasks` array of functions in parallel, without waiting until the\n * previous function has completed. Once any of the `tasks` complete or pass an\n * error to its callback, the main `callback` is immediately called. It's\n * equivalent to `Promise.race()`.\n *\n * @name race\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array} tasks - An array containing [async functions]{@link AsyncFunction}\n * to run. Each function can complete with an optional `result` value.\n * @param {Function} callback - A callback to run once any of the functions have\n * completed. This function gets an error or result from the first function that\n * completed. Invoked with (err, result).\n * @returns undefined\n * @example\n *\n * async.race([\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ],\n * // main callback\n * function(err, result) {\n * // the result will be equal to 'two' as it finishes earlier\n * });\n */\nfunction race(tasks, callback) {\n callback = once(callback || noop);\n if (!isArray(tasks)) return callback(new TypeError('First argument to race must be an array of functions'));\n if (!tasks.length) return callback();\n for (var i = 0, l = tasks.length; i < l; i++) {\n wrapAsync(tasks[i])(callback);\n }\n}\n\n/**\n * Same as [`reduce`]{@link module:Collections.reduce}, only operates on `array` in reverse order.\n *\n * @name reduceRight\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.reduce]{@link module:Collections.reduce}\n * @alias foldr\n * @category Collection\n * @param {Array} array - A collection to iterate over.\n * @param {*} memo - The initial state of the reduction.\n * @param {AsyncFunction} iteratee - A function applied to each item in the\n * array to produce the next step in the reduction.\n * The `iteratee` should complete with the next state of the reduction.\n * If the iteratee complete with an error, the reduction is stopped and the\n * main `callback` is immediately called with the error.\n * Invoked with (memo, item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result is the reduced value. Invoked with\n * (err, result).\n */\nfunction reduceRight (array, memo, iteratee, callback) {\n var reversed = slice(array).reverse();\n reduce(reversed, memo, iteratee, callback);\n}\n\n/**\n * Wraps the async function in another function that always completes with a\n * result object, even when it errors.\n *\n * The result object has either the property `error` or `value`.\n *\n * @name reflect\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} fn - The async function you want to wrap\n * @returns {Function} - A function that always passes null to it's callback as\n * the error. The second argument to the callback will be an `object` with\n * either an `error` or a `value` property.\n * @example\n *\n * async.parallel([\n * async.reflect(function(callback) {\n * // do some stuff ...\n * callback(null, 'one');\n * }),\n * async.reflect(function(callback) {\n * // do some more stuff but error ...\n * callback('bad stuff happened');\n * }),\n * async.reflect(function(callback) {\n * // do some more stuff ...\n * callback(null, 'two');\n * })\n * ],\n * // optional callback\n * function(err, results) {\n * // values\n * // results[0].value = 'one'\n * // results[1].error = 'bad stuff happened'\n * // results[2].value = 'two'\n * });\n */\nfunction reflect(fn) {\n var _fn = wrapAsync(fn);\n return initialParams(function reflectOn(args, reflectCallback) {\n args.push(function callback(error, cbArg) {\n if (error) {\n reflectCallback(null, { error: error });\n } else {\n var value;\n if (arguments.length <= 2) {\n value = cbArg;\n } else {\n value = slice(arguments, 1);\n }\n reflectCallback(null, { value: value });\n }\n });\n\n return _fn.apply(this, args);\n });\n}\n\n/**\n * A helper function that wraps an array or an object of functions with `reflect`.\n *\n * @name reflectAll\n * @static\n * @memberOf module:Utils\n * @method\n * @see [async.reflect]{@link module:Utils.reflect}\n * @category Util\n * @param {Array|Object|Iterable} tasks - The collection of\n * [async functions]{@link AsyncFunction} to wrap in `async.reflect`.\n * @returns {Array} Returns an array of async functions, each wrapped in\n * `async.reflect`\n * @example\n *\n * let tasks = [\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * // do some more stuff but error ...\n * callback(new Error('bad stuff happened'));\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ];\n *\n * async.parallel(async.reflectAll(tasks),\n * // optional callback\n * function(err, results) {\n * // values\n * // results[0].value = 'one'\n * // results[1].error = Error('bad stuff happened')\n * // results[2].value = 'two'\n * });\n *\n * // an example using an object instead of an array\n * let tasks = {\n * one: function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * two: function(callback) {\n * callback('two');\n * },\n * three: function(callback) {\n * setTimeout(function() {\n * callback(null, 'three');\n * }, 100);\n * }\n * };\n *\n * async.parallel(async.reflectAll(tasks),\n * // optional callback\n * function(err, results) {\n * // values\n * // results.one.value = 'one'\n * // results.two.error = 'two'\n * // results.three.value = 'three'\n * });\n */\nfunction reflectAll(tasks) {\n var results;\n if (isArray(tasks)) {\n results = arrayMap(tasks, reflect);\n } else {\n results = {};\n baseForOwn(tasks, function(task, key) {\n results[key] = reflect.call(this, task);\n });\n }\n return results;\n}\n\nfunction reject$1(eachfn, arr, iteratee, callback) {\n _filter(eachfn, arr, function(value, cb) {\n iteratee(value, function(err, v) {\n cb(err, !v);\n });\n }, callback);\n}\n\n/**\n * The opposite of [`filter`]{@link module:Collections.filter}. Removes values that pass an `async` truth test.\n *\n * @name reject\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.filter]{@link module:Collections.filter}\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {Function} iteratee - An async truth test to apply to each item in\n * `coll`.\n * The should complete with a boolean value as its `result`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n * @example\n *\n * async.reject(['file1','file2','file3'], function(filePath, callback) {\n * fs.access(filePath, function(err) {\n * callback(null, !err)\n * });\n * }, function(err, results) {\n * // results now equals an array of missing files\n * createFiles(results);\n * });\n */\nvar reject = doParallel(reject$1);\n\n/**\n * The same as [`reject`]{@link module:Collections.reject} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name rejectLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.reject]{@link module:Collections.reject}\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {Function} iteratee - An async truth test to apply to each item in\n * `coll`.\n * The should complete with a boolean value as its `result`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n */\nvar rejectLimit = doParallelLimit(reject$1);\n\n/**\n * The same as [`reject`]{@link module:Collections.reject} but runs only a single async operation at a time.\n *\n * @name rejectSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.reject]{@link module:Collections.reject}\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {Function} iteratee - An async truth test to apply to each item in\n * `coll`.\n * The should complete with a boolean value as its `result`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n */\nvar rejectSeries = doLimit(rejectLimit, 1);\n\n/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant$1(value) {\n return function() {\n return value;\n };\n}\n\n/**\n * Attempts to get a successful response from `task` no more than `times` times\n * before returning an error. If the task is successful, the `callback` will be\n * passed the result of the successful task. If all attempts fail, the callback\n * will be passed the error and result (if any) of the final attempt.\n *\n * @name retry\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @see [async.retryable]{@link module:ControlFlow.retryable}\n * @param {Object|number} [opts = {times: 5, interval: 0}| 5] - Can be either an\n * object with `times` and `interval` or a number.\n * * `times` - The number of attempts to make before giving up. The default\n * is `5`.\n * * `interval` - The time to wait between retries, in milliseconds. The\n * default is `0`. The interval may also be specified as a function of the\n * retry count (see example).\n * * `errorFilter` - An optional synchronous function that is invoked on\n * erroneous result. If it returns `true` the retry attempts will continue;\n * if the function returns `false` the retry flow is aborted with the current\n * attempt's error and result being returned to the final callback.\n * Invoked with (err).\n * * If `opts` is a number, the number specifies the number of times to retry,\n * with the default interval of `0`.\n * @param {AsyncFunction} task - An async function to retry.\n * Invoked with (callback).\n * @param {Function} [callback] - An optional callback which is called when the\n * task has succeeded, or after the final failed attempt. It receives the `err`\n * and `result` arguments of the last attempt at completing the `task`. Invoked\n * with (err, results).\n *\n * @example\n *\n * // The `retry` function can be used as a stand-alone control flow by passing\n * // a callback, as shown below:\n *\n * // try calling apiMethod 3 times\n * async.retry(3, apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // try calling apiMethod 3 times, waiting 200 ms between each retry\n * async.retry({times: 3, interval: 200}, apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // try calling apiMethod 10 times with exponential backoff\n * // (i.e. intervals of 100, 200, 400, 800, 1600, ... milliseconds)\n * async.retry({\n * times: 10,\n * interval: function(retryCount) {\n * return 50 * Math.pow(2, retryCount);\n * }\n * }, apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // try calling apiMethod the default 5 times no delay between each retry\n * async.retry(apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // try calling apiMethod only when error condition satisfies, all other\n * // errors will abort the retry control flow and return to final callback\n * async.retry({\n * errorFilter: function(err) {\n * return err.message === 'Temporary error'; // only retry on a specific error\n * }\n * }, apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // to retry individual methods that are not as reliable within other\n * // control flow functions, use the `retryable` wrapper:\n * async.auto({\n * users: api.getUsers.bind(api),\n * payments: async.retryable(3, api.getPayments.bind(api))\n * }, function(err, results) {\n * // do something with the results\n * });\n *\n */\nfunction retry(opts, task, callback) {\n var DEFAULT_TIMES = 5;\n var DEFAULT_INTERVAL = 0;\n\n var options = {\n times: DEFAULT_TIMES,\n intervalFunc: constant$1(DEFAULT_INTERVAL)\n };\n\n function parseTimes(acc, t) {\n if (typeof t === 'object') {\n acc.times = +t.times || DEFAULT_TIMES;\n\n acc.intervalFunc = typeof t.interval === 'function' ?\n t.interval :\n constant$1(+t.interval || DEFAULT_INTERVAL);\n\n acc.errorFilter = t.errorFilter;\n } else if (typeof t === 'number' || typeof t === 'string') {\n acc.times = +t || DEFAULT_TIMES;\n } else {\n throw new Error(\"Invalid arguments for async.retry\");\n }\n }\n\n if (arguments.length < 3 && typeof opts === 'function') {\n callback = task || noop;\n task = opts;\n } else {\n parseTimes(options, opts);\n callback = callback || noop;\n }\n\n if (typeof task !== 'function') {\n throw new Error(\"Invalid arguments for async.retry\");\n }\n\n var _task = wrapAsync(task);\n\n var attempt = 1;\n function retryAttempt() {\n _task(function(err) {\n if (err && attempt++ < options.times &&\n (typeof options.errorFilter != 'function' ||\n options.errorFilter(err))) {\n setTimeout(retryAttempt, options.intervalFunc(attempt));\n } else {\n callback.apply(null, arguments);\n }\n });\n }\n\n retryAttempt();\n}\n\n/**\n * A close relative of [`retry`]{@link module:ControlFlow.retry}. This method\n * wraps a task and makes it retryable, rather than immediately calling it\n * with retries.\n *\n * @name retryable\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.retry]{@link module:ControlFlow.retry}\n * @category Control Flow\n * @param {Object|number} [opts = {times: 5, interval: 0}| 5] - optional\n * options, exactly the same as from `retry`\n * @param {AsyncFunction} task - the asynchronous function to wrap.\n * This function will be passed any arguments passed to the returned wrapper.\n * Invoked with (...args, callback).\n * @returns {AsyncFunction} The wrapped function, which when invoked, will\n * retry on an error, based on the parameters specified in `opts`.\n * This function will accept the same parameters as `task`.\n * @example\n *\n * async.auto({\n * dep1: async.retryable(3, getFromFlakyService),\n * process: [\"dep1\", async.retryable(3, function (results, cb) {\n * maybeProcessData(results.dep1, cb);\n * })]\n * }, callback);\n */\nvar retryable = function (opts, task) {\n if (!task) {\n task = opts;\n opts = null;\n }\n var _task = wrapAsync(task);\n return initialParams(function (args, callback) {\n function taskFn(cb) {\n _task.apply(null, args.concat(cb));\n }\n\n if (opts) retry(opts, taskFn, callback);\n else retry(taskFn, callback);\n\n });\n};\n\n/**\n * Run the functions in the `tasks` collection in series, each one running once\n * the previous function has completed. If any functions in the series pass an\n * error to its callback, no more functions are run, and `callback` is\n * immediately called with the value of the error. Otherwise, `callback`\n * receives an array of results when `tasks` have completed.\n *\n * It is also possible to use an object instead of an array. Each property will\n * be run as a function, and the results will be passed to the final `callback`\n * as an object instead of an array. This can be a more readable way of handling\n * results from {@link async.series}.\n *\n * **Note** that while many implementations preserve the order of object\n * properties, the [ECMAScript Language Specification](http://www.ecma-international.org/ecma-262/5.1/#sec-8.6)\n * explicitly states that\n *\n * > The mechanics and order of enumerating the properties is not specified.\n *\n * So if you rely on the order in which your series of functions are executed,\n * and want this to work on all platforms, consider using an array.\n *\n * @name series\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|Object} tasks - A collection containing\n * [async functions]{@link AsyncFunction} to run in series.\n * Each function can complete with any number of optional `result` values.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed. This function gets a results array (or object)\n * containing all the result arguments passed to the `task` callbacks. Invoked\n * with (err, result).\n * @example\n * async.series([\n * function(callback) {\n * // do some stuff ...\n * callback(null, 'one');\n * },\n * function(callback) {\n * // do some more stuff ...\n * callback(null, 'two');\n * }\n * ],\n * // optional callback\n * function(err, results) {\n * // results is now equal to ['one', 'two']\n * });\n *\n * async.series({\n * one: function(callback) {\n * setTimeout(function() {\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback){\n * setTimeout(function() {\n * callback(null, 2);\n * }, 100);\n * }\n * }, function(err, results) {\n * // results is now equal to: {one: 1, two: 2}\n * });\n */\nfunction series(tasks, callback) {\n _parallel(eachOfSeries, tasks, callback);\n}\n\n/**\n * Returns `true` if at least one element in the `coll` satisfies an async test.\n * If any iteratee call returns `true`, the main `callback` is immediately\n * called.\n *\n * @name some\n * @static\n * @memberOf module:Collections\n * @method\n * @alias any\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collections in parallel.\n * The iteratee should complete with a boolean `result` value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the iteratee functions have finished.\n * Result will be either `true` or `false` depending on the values of the async\n * tests. Invoked with (err, result).\n * @example\n *\n * async.some(['file1','file2','file3'], function(filePath, callback) {\n * fs.access(filePath, function(err) {\n * callback(null, !err)\n * });\n * }, function(err, result) {\n * // if result is true then at least one of the files exists\n * });\n */\nvar some = doParallel(_createTester(Boolean, identity));\n\n/**\n * The same as [`some`]{@link module:Collections.some} but runs a maximum of `limit` async operations at a time.\n *\n * @name someLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.some]{@link module:Collections.some}\n * @alias anyLimit\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collections in parallel.\n * The iteratee should complete with a boolean `result` value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the iteratee functions have finished.\n * Result will be either `true` or `false` depending on the values of the async\n * tests. Invoked with (err, result).\n */\nvar someLimit = doParallelLimit(_createTester(Boolean, identity));\n\n/**\n * The same as [`some`]{@link module:Collections.some} but runs only a single async operation at a time.\n *\n * @name someSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.some]{@link module:Collections.some}\n * @alias anySeries\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collections in series.\n * The iteratee should complete with a boolean `result` value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the iteratee functions have finished.\n * Result will be either `true` or `false` depending on the values of the async\n * tests. Invoked with (err, result).\n */\nvar someSeries = doLimit(someLimit, 1);\n\n/**\n * Sorts a list by the results of running each `coll` value through an async\n * `iteratee`.\n *\n * @name sortBy\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with a value to use as the sort criteria as\n * its `result`.\n * Invoked with (item, callback).\n * @param {Function} callback - A callback which is called after all the\n * `iteratee` functions have finished, or an error occurs. Results is the items\n * from the original `coll` sorted by the values returned by the `iteratee`\n * calls. Invoked with (err, results).\n * @example\n *\n * async.sortBy(['file1','file2','file3'], function(file, callback) {\n * fs.stat(file, function(err, stats) {\n * callback(err, stats.mtime);\n * });\n * }, function(err, results) {\n * // results is now the original array of files sorted by\n * // modified date\n * });\n *\n * // By modifying the callback parameter the\n * // sorting order can be influenced:\n *\n * // ascending order\n * async.sortBy([1,9,3,5], function(x, callback) {\n * callback(null, x);\n * }, function(err,result) {\n * // result callback\n * });\n *\n * // descending order\n * async.sortBy([1,9,3,5], function(x, callback) {\n * callback(null, x*-1); //<- x*-1 instead of x, turns the order around\n * }, function(err,result) {\n * // result callback\n * });\n */\nfunction sortBy (coll, iteratee, callback) {\n var _iteratee = wrapAsync(iteratee);\n map(coll, function (x, callback) {\n _iteratee(x, function (err, criteria) {\n if (err) return callback(err);\n callback(null, {value: x, criteria: criteria});\n });\n }, function (err, results) {\n if (err) return callback(err);\n callback(null, arrayMap(results.sort(comparator), baseProperty('value')));\n });\n\n function comparator(left, right) {\n var a = left.criteria, b = right.criteria;\n return a < b ? -1 : a > b ? 1 : 0;\n }\n}\n\n/**\n * Sets a time limit on an asynchronous function. If the function does not call\n * its callback within the specified milliseconds, it will be called with a\n * timeout error. The code property for the error object will be `'ETIMEDOUT'`.\n *\n * @name timeout\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} asyncFn - The async function to limit in time.\n * @param {number} milliseconds - The specified time limit.\n * @param {*} [info] - Any variable you want attached (`string`, `object`, etc)\n * to timeout Error for more information..\n * @returns {AsyncFunction} Returns a wrapped function that can be used with any\n * of the control flow functions.\n * Invoke this function with the same parameters as you would `asyncFunc`.\n * @example\n *\n * function myFunction(foo, callback) {\n * doAsyncTask(foo, function(err, data) {\n * // handle errors\n * if (err) return callback(err);\n *\n * // do some stuff ...\n *\n * // return processed data\n * return callback(null, data);\n * });\n * }\n *\n * var wrapped = async.timeout(myFunction, 1000);\n *\n * // call `wrapped` as you would `myFunction`\n * wrapped({ bar: 'bar' }, function(err, data) {\n * // if `myFunction` takes < 1000 ms to execute, `err`\n * // and `data` will have their expected values\n *\n * // else `err` will be an Error with the code 'ETIMEDOUT'\n * });\n */\nfunction timeout(asyncFn, milliseconds, info) {\n var fn = wrapAsync(asyncFn);\n\n return initialParams(function (args, callback) {\n var timedOut = false;\n var timer;\n\n function timeoutCallback() {\n var name = asyncFn.name || 'anonymous';\n var error = new Error('Callback function \"' + name + '\" timed out.');\n error.code = 'ETIMEDOUT';\n if (info) {\n error.info = info;\n }\n timedOut = true;\n callback(error);\n }\n\n args.push(function () {\n if (!timedOut) {\n callback.apply(null, arguments);\n clearTimeout(timer);\n }\n });\n\n // setup timer and call original function\n timer = setTimeout(timeoutCallback, milliseconds);\n fn.apply(null, args);\n });\n}\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeCeil = Math.ceil;\nvar nativeMax = Math.max;\n\n/**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\nfunction baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n}\n\n/**\n * The same as [times]{@link module:ControlFlow.times} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name timesLimit\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.times]{@link module:ControlFlow.times}\n * @category Control Flow\n * @param {number} count - The number of times to run the function.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - The async function to call `n` times.\n * Invoked with the iteration index and a callback: (n, next).\n * @param {Function} callback - see [async.map]{@link module:Collections.map}.\n */\nfunction timeLimit(count, limit, iteratee, callback) {\n var _iteratee = wrapAsync(iteratee);\n mapLimit(baseRange(0, count, 1), limit, _iteratee, callback);\n}\n\n/**\n * Calls the `iteratee` function `n` times, and accumulates results in the same\n * manner you would use with [map]{@link module:Collections.map}.\n *\n * @name times\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.map]{@link module:Collections.map}\n * @category Control Flow\n * @param {number} n - The number of times to run the function.\n * @param {AsyncFunction} iteratee - The async function to call `n` times.\n * Invoked with the iteration index and a callback: (n, next).\n * @param {Function} callback - see {@link module:Collections.map}.\n * @example\n *\n * // Pretend this is some complicated async factory\n * var createUser = function(id, callback) {\n * callback(null, {\n * id: 'user' + id\n * });\n * };\n *\n * // generate 5 users\n * async.times(5, function(n, next) {\n * createUser(n, function(err, user) {\n * next(err, user);\n * });\n * }, function(err, users) {\n * // we should now have 5 users\n * });\n */\nvar times = doLimit(timeLimit, Infinity);\n\n/**\n * The same as [times]{@link module:ControlFlow.times} but runs only a single async operation at a time.\n *\n * @name timesSeries\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.times]{@link module:ControlFlow.times}\n * @category Control Flow\n * @param {number} n - The number of times to run the function.\n * @param {AsyncFunction} iteratee - The async function to call `n` times.\n * Invoked with the iteration index and a callback: (n, next).\n * @param {Function} callback - see {@link module:Collections.map}.\n */\nvar timesSeries = doLimit(timeLimit, 1);\n\n/**\n * A relative of `reduce`. Takes an Object or Array, and iterates over each\n * element in series, each step potentially mutating an `accumulator` value.\n * The type of the accumulator defaults to the type of collection passed in.\n *\n * @name transform\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Array|Iterable|Object} coll - A collection to iterate over.\n * @param {*} [accumulator] - The initial state of the transform. If omitted,\n * it will default to an empty Object or Array, depending on the type of `coll`\n * @param {AsyncFunction} iteratee - A function applied to each item in the\n * collection that potentially modifies the accumulator.\n * Invoked with (accumulator, item, key, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result is the transformed accumulator.\n * Invoked with (err, result).\n * @example\n *\n * async.transform([1,2,3], function(acc, item, index, callback) {\n * // pointless async:\n * process.nextTick(function() {\n * acc.push(item * 2)\n * callback(null)\n * });\n * }, function(err, result) {\n * // result is now equal to [2, 4, 6]\n * });\n *\n * @example\n *\n * async.transform({a: 1, b: 2, c: 3}, function (obj, val, key, callback) {\n * setImmediate(function () {\n * obj[key] = val * 2;\n * callback();\n * })\n * }, function (err, result) {\n * // result is equal to {a: 2, b: 4, c: 6}\n * })\n */\nfunction transform (coll, accumulator, iteratee, callback) {\n if (arguments.length <= 3) {\n callback = iteratee;\n iteratee = accumulator;\n accumulator = isArray(coll) ? [] : {};\n }\n callback = once(callback || noop);\n var _iteratee = wrapAsync(iteratee);\n\n eachOf(coll, function(v, k, cb) {\n _iteratee(accumulator, v, k, cb);\n }, function(err) {\n callback(err, accumulator);\n });\n}\n\n/**\n * It runs each task in series but stops whenever any of the functions were\n * successful. If one of the tasks were successful, the `callback` will be\n * passed the result of the successful task. If all tasks fail, the callback\n * will be passed the error and result (if any) of the final attempt.\n *\n * @name tryEach\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|Object} tasks - A collection containing functions to\n * run, each function is passed a `callback(err, result)` it must call on\n * completion with an error `err` (which can be `null`) and an optional `result`\n * value.\n * @param {Function} [callback] - An optional callback which is called when one\n * of the tasks has succeeded, or all have failed. It receives the `err` and\n * `result` arguments of the last attempt at completing the `task`. Invoked with\n * (err, results).\n * @example\n * async.tryEach([\n * function getDataFromFirstWebsite(callback) {\n * // Try getting the data from the first website\n * callback(err, data);\n * },\n * function getDataFromSecondWebsite(callback) {\n * // First website failed,\n * // Try getting the data from the backup website\n * callback(err, data);\n * }\n * ],\n * // optional callback\n * function(err, results) {\n * Now do something with the data.\n * });\n *\n */\nfunction tryEach(tasks, callback) {\n var error = null;\n var result;\n callback = callback || noop;\n eachSeries(tasks, function(task, callback) {\n wrapAsync(task)(function (err, res/*, ...args*/) {\n if (arguments.length > 2) {\n result = slice(arguments, 1);\n } else {\n result = res;\n }\n error = err;\n callback(!err);\n });\n }, function () {\n callback(error, result);\n });\n}\n\n/**\n * Undoes a [memoize]{@link module:Utils.memoize}d function, reverting it to the original,\n * unmemoized form. Handy for testing.\n *\n * @name unmemoize\n * @static\n * @memberOf module:Utils\n * @method\n * @see [async.memoize]{@link module:Utils.memoize}\n * @category Util\n * @param {AsyncFunction} fn - the memoized function\n * @returns {AsyncFunction} a function that calls the original unmemoized function\n */\nfunction unmemoize(fn) {\n return function () {\n return (fn.unmemoized || fn).apply(null, arguments);\n };\n}\n\n/**\n * Repeatedly call `iteratee`, while `test` returns `true`. Calls `callback` when\n * stopped, or an error occurs.\n *\n * @name whilst\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Function} test - synchronous truth test to perform before each\n * execution of `iteratee`. Invoked with ().\n * @param {AsyncFunction} iteratee - An async function which is called each time\n * `test` passes. Invoked with (callback).\n * @param {Function} [callback] - A callback which is called after the test\n * function has failed and repeated execution of `iteratee` has stopped. `callback`\n * will be passed an error and any arguments passed to the final `iteratee`'s\n * callback. Invoked with (err, [results]);\n * @returns undefined\n * @example\n *\n * var count = 0;\n * async.whilst(\n * function() { return count < 5; },\n * function(callback) {\n * count++;\n * setTimeout(function() {\n * callback(null, count);\n * }, 1000);\n * },\n * function (err, n) {\n * // 5 seconds have passed, n = 5\n * }\n * );\n */\nfunction whilst(test, iteratee, callback) {\n callback = onlyOnce(callback || noop);\n var _iteratee = wrapAsync(iteratee);\n if (!test()) return callback(null);\n var next = function(err/*, ...args*/) {\n if (err) return callback(err);\n if (test()) return _iteratee(next);\n var args = slice(arguments, 1);\n callback.apply(null, [null].concat(args));\n };\n _iteratee(next);\n}\n\n/**\n * Repeatedly call `iteratee` until `test` returns `true`. Calls `callback` when\n * stopped, or an error occurs. `callback` will be passed an error and any\n * arguments passed to the final `iteratee`'s callback.\n *\n * The inverse of [whilst]{@link module:ControlFlow.whilst}.\n *\n * @name until\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.whilst]{@link module:ControlFlow.whilst}\n * @category Control Flow\n * @param {Function} test - synchronous truth test to perform before each\n * execution of `iteratee`. Invoked with ().\n * @param {AsyncFunction} iteratee - An async function which is called each time\n * `test` fails. Invoked with (callback).\n * @param {Function} [callback] - A callback which is called after the test\n * function has passed and repeated execution of `iteratee` has stopped. `callback`\n * will be passed an error and any arguments passed to the final `iteratee`'s\n * callback. Invoked with (err, [results]);\n */\nfunction until(test, iteratee, callback) {\n whilst(function() {\n return !test.apply(this, arguments);\n }, iteratee, callback);\n}\n\n/**\n * Runs the `tasks` array of functions in series, each passing their results to\n * the next in the array. However, if any of the `tasks` pass an error to their\n * own callback, the next function is not executed, and the main `callback` is\n * immediately called with the error.\n *\n * @name waterfall\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array} tasks - An array of [async functions]{@link AsyncFunction}\n * to run.\n * Each function should complete with any number of `result` values.\n * The `result` values will be passed as arguments, in order, to the next task.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed. This will be passed the results of the last task's\n * callback. Invoked with (err, [results]).\n * @returns undefined\n * @example\n *\n * async.waterfall([\n * function(callback) {\n * callback(null, 'one', 'two');\n * },\n * function(arg1, arg2, callback) {\n * // arg1 now equals 'one' and arg2 now equals 'two'\n * callback(null, 'three');\n * },\n * function(arg1, callback) {\n * // arg1 now equals 'three'\n * callback(null, 'done');\n * }\n * ], function (err, result) {\n * // result now equals 'done'\n * });\n *\n * // Or, with named functions:\n * async.waterfall([\n * myFirstFunction,\n * mySecondFunction,\n * myLastFunction,\n * ], function (err, result) {\n * // result now equals 'done'\n * });\n * function myFirstFunction(callback) {\n * callback(null, 'one', 'two');\n * }\n * function mySecondFunction(arg1, arg2, callback) {\n * // arg1 now equals 'one' and arg2 now equals 'two'\n * callback(null, 'three');\n * }\n * function myLastFunction(arg1, callback) {\n * // arg1 now equals 'three'\n * callback(null, 'done');\n * }\n */\nvar waterfall = function(tasks, callback) {\n callback = once(callback || noop);\n if (!isArray(tasks)) return callback(new Error('First argument to waterfall must be an array of functions'));\n if (!tasks.length) return callback();\n var taskIndex = 0;\n\n function nextTask(args) {\n var task = wrapAsync(tasks[taskIndex++]);\n args.push(onlyOnce(next));\n task.apply(null, args);\n }\n\n function next(err/*, ...args*/) {\n if (err || taskIndex === tasks.length) {\n return callback.apply(null, arguments);\n }\n nextTask(slice(arguments, 1));\n }\n\n nextTask([]);\n};\n\n/**\n * An \"async function\" in the context of Async is an asynchronous function with\n * a variable number of parameters, with the final parameter being a callback.\n * (`function (arg1, arg2, ..., callback) {}`)\n * The final callback is of the form `callback(err, results...)`, which must be\n * called once the function is completed. The callback should be called with a\n * Error as its first argument to signal that an error occurred.\n * Otherwise, if no error occurred, it should be called with `null` as the first\n * argument, and any additional `result` arguments that may apply, to signal\n * successful completion.\n * The callback must be called exactly once, ideally on a later tick of the\n * JavaScript event loop.\n *\n * This type of function is also referred to as a \"Node-style async function\",\n * or a \"continuation passing-style function\" (CPS). Most of the methods of this\n * library are themselves CPS/Node-style async functions, or functions that\n * return CPS/Node-style async functions.\n *\n * Wherever we accept a Node-style async function, we also directly accept an\n * [ES2017 `async` function]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function}.\n * In this case, the `async` function will not be passed a final callback\n * argument, and any thrown error will be used as the `err` argument of the\n * implicit callback, and the return value will be used as the `result` value.\n * (i.e. a `rejected` of the returned Promise becomes the `err` callback\n * argument, and a `resolved` value becomes the `result`.)\n *\n * Note, due to JavaScript limitations, we can only detect native `async`\n * functions and not transpilied implementations.\n * Your environment must have `async`/`await` support for this to work.\n * (e.g. Node > v7.6, or a recent version of a modern browser).\n * If you are using `async` functions through a transpiler (e.g. Babel), you\n * must still wrap the function with [asyncify]{@link module:Utils.asyncify},\n * because the `async function` will be compiled to an ordinary function that\n * returns a promise.\n *\n * @typedef {Function} AsyncFunction\n * @static\n */\n\n/**\n * Async is a utility module which provides straight-forward, powerful functions\n * for working with asynchronous JavaScript. Although originally designed for\n * use with [Node.js](http://nodejs.org) and installable via\n * `npm install --save async`, it can also be used directly in the browser.\n * @module async\n * @see AsyncFunction\n */\n\n\n/**\n * A collection of `async` functions for manipulating collections, such as\n * arrays and objects.\n * @module Collections\n */\n\n/**\n * A collection of `async` functions for controlling the flow through a script.\n * @module ControlFlow\n */\n\n/**\n * A collection of `async` utility functions.\n * @module Utils\n */\n\nvar index = {\n apply: apply,\n applyEach: applyEach,\n applyEachSeries: applyEachSeries,\n asyncify: asyncify,\n auto: auto,\n autoInject: autoInject,\n cargo: cargo,\n compose: compose,\n concat: concat,\n concatLimit: concatLimit,\n concatSeries: concatSeries,\n constant: constant,\n detect: detect,\n detectLimit: detectLimit,\n detectSeries: detectSeries,\n dir: dir,\n doDuring: doDuring,\n doUntil: doUntil,\n doWhilst: doWhilst,\n during: during,\n each: eachLimit,\n eachLimit: eachLimit$1,\n eachOf: eachOf,\n eachOfLimit: eachOfLimit,\n eachOfSeries: eachOfSeries,\n eachSeries: eachSeries,\n ensureAsync: ensureAsync,\n every: every,\n everyLimit: everyLimit,\n everySeries: everySeries,\n filter: filter,\n filterLimit: filterLimit,\n filterSeries: filterSeries,\n forever: forever,\n groupBy: groupBy,\n groupByLimit: groupByLimit,\n groupBySeries: groupBySeries,\n log: log,\n map: map,\n mapLimit: mapLimit,\n mapSeries: mapSeries,\n mapValues: mapValues,\n mapValuesLimit: mapValuesLimit,\n mapValuesSeries: mapValuesSeries,\n memoize: memoize,\n nextTick: nextTick,\n parallel: parallelLimit,\n parallelLimit: parallelLimit$1,\n priorityQueue: priorityQueue,\n queue: queue$1,\n race: race,\n reduce: reduce,\n reduceRight: reduceRight,\n reflect: reflect,\n reflectAll: reflectAll,\n reject: reject,\n rejectLimit: rejectLimit,\n rejectSeries: rejectSeries,\n retry: retry,\n retryable: retryable,\n seq: seq,\n series: series,\n setImmediate: setImmediate$1,\n some: some,\n someLimit: someLimit,\n someSeries: someSeries,\n sortBy: sortBy,\n timeout: timeout,\n times: times,\n timesLimit: timeLimit,\n timesSeries: timesSeries,\n transform: transform,\n tryEach: tryEach,\n unmemoize: unmemoize,\n until: until,\n waterfall: waterfall,\n whilst: whilst,\n\n // aliases\n all: every,\n allLimit: everyLimit,\n allSeries: everySeries,\n any: some,\n anyLimit: someLimit,\n anySeries: someSeries,\n find: detect,\n findLimit: detectLimit,\n findSeries: detectSeries,\n forEach: eachLimit,\n forEachSeries: eachSeries,\n forEachLimit: eachLimit$1,\n forEachOf: eachOf,\n forEachOfSeries: eachOfSeries,\n forEachOfLimit: eachOfLimit,\n inject: reduce,\n foldl: reduce,\n foldr: reduceRight,\n select: filter,\n selectLimit: filterLimit,\n selectSeries: filterSeries,\n wrapSync: asyncify\n};\n\nexports['default'] = index;\nexports.apply = apply;\nexports.applyEach = applyEach;\nexports.applyEachSeries = applyEachSeries;\nexports.asyncify = asyncify;\nexports.auto = auto;\nexports.autoInject = autoInject;\nexports.cargo = cargo;\nexports.compose = compose;\nexports.concat = concat;\nexports.concatLimit = concatLimit;\nexports.concatSeries = concatSeries;\nexports.constant = constant;\nexports.detect = detect;\nexports.detectLimit = detectLimit;\nexports.detectSeries = detectSeries;\nexports.dir = dir;\nexports.doDuring = doDuring;\nexports.doUntil = doUntil;\nexports.doWhilst = doWhilst;\nexports.during = during;\nexports.each = eachLimit;\nexports.eachLimit = eachLimit$1;\nexports.eachOf = eachOf;\nexports.eachOfLimit = eachOfLimit;\nexports.eachOfSeries = eachOfSeries;\nexports.eachSeries = eachSeries;\nexports.ensureAsync = ensureAsync;\nexports.every = every;\nexports.everyLimit = everyLimit;\nexports.everySeries = everySeries;\nexports.filter = filter;\nexports.filterLimit = filterLimit;\nexports.filterSeries = filterSeries;\nexports.forever = forever;\nexports.groupBy = groupBy;\nexports.groupByLimit = groupByLimit;\nexports.groupBySeries = groupBySeries;\nexports.log = log;\nexports.map = map;\nexports.mapLimit = mapLimit;\nexports.mapSeries = mapSeries;\nexports.mapValues = mapValues;\nexports.mapValuesLimit = mapValuesLimit;\nexports.mapValuesSeries = mapValuesSeries;\nexports.memoize = memoize;\nexports.nextTick = nextTick;\nexports.parallel = parallelLimit;\nexports.parallelLimit = parallelLimit$1;\nexports.priorityQueue = priorityQueue;\nexports.queue = queue$1;\nexports.race = race;\nexports.reduce = reduce;\nexports.reduceRight = reduceRight;\nexports.reflect = reflect;\nexports.reflectAll = reflectAll;\nexports.reject = reject;\nexports.rejectLimit = rejectLimit;\nexports.rejectSeries = rejectSeries;\nexports.retry = retry;\nexports.retryable = retryable;\nexports.seq = seq;\nexports.series = series;\nexports.setImmediate = setImmediate$1;\nexports.some = some;\nexports.someLimit = someLimit;\nexports.someSeries = someSeries;\nexports.sortBy = sortBy;\nexports.timeout = timeout;\nexports.times = times;\nexports.timesLimit = timeLimit;\nexports.timesSeries = timesSeries;\nexports.transform = transform;\nexports.tryEach = tryEach;\nexports.unmemoize = unmemoize;\nexports.until = until;\nexports.waterfall = waterfall;\nexports.whilst = whilst;\nexports.all = every;\nexports.allLimit = everyLimit;\nexports.allSeries = everySeries;\nexports.any = some;\nexports.anyLimit = someLimit;\nexports.anySeries = someSeries;\nexports.find = detect;\nexports.findLimit = detectLimit;\nexports.findSeries = detectSeries;\nexports.forEach = eachLimit;\nexports.forEachSeries = eachSeries;\nexports.forEachLimit = eachLimit$1;\nexports.forEachOf = eachOf;\nexports.forEachOfSeries = eachOfSeries;\nexports.forEachOfLimit = eachOfLimit;\nexports.inject = reduce;\nexports.foldl = reduce;\nexports.foldr = reduceRight;\nexports.select = filter;\nexports.selectLimit = filterLimit;\nexports.selectSeries = filterSeries;\nexports.wrapSync = asyncify;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n", + "parsedSrc": "function(e,t,r){(function(e,r,n,i){!function(e,r){r(t)}(0,function(t){\"use strict\";function o(e,t){t|=0;for(var r=Math.max(e.length-t,0),n=Array(r),i=0;i-1&&e%1==0&&e<=D}function L(e){return null!=e&&U(e.length)&&!function(e){if(!u(e))return!1;var t=R(e);return t==j||t==H||t==P||t==M}(e)}var F={};function z(){}function G(e){return function(){if(null!==e){var t=e;e=null,t.apply(this,arguments)}}}var q=\"function\"==typeof Symbol&&Symbol.iterator,V=function(e){return q&&e[q]&&e[q]()};function W(e){return null!=e&&\"object\"==typeof e}var $=\"[object Arguments]\";function K(e){return W(e)&&R(e)==$}var Y=Object.prototype,X=Y.hasOwnProperty,Q=Y.propertyIsEnumerable,J=K(function(){return arguments}())?K:function(e){return W(e)&&X.call(e,\"callee\")&&!Q.call(e,\"callee\")},Z=Array.isArray;var ee=\"object\"==typeof t&&t&&!t.nodeType&&t,te=ee&&\"object\"==typeof i&&i&&!i.nodeType&&i,re=te&&te.exports===ee?S.Buffer:void 0,ne=(re?re.isBuffer:void 0)||function(){return!1},ie=9007199254740991,oe=/^(?:0|[1-9]\\d*)$/;function ae(e,t){var r=typeof e;return!!(t=null==t?ie:t)&&(\"number\"==r||\"symbol\"!=r&&oe.test(e))&&e>-1&&e%1==0&&e2&&(n=o(arguments,1)),t){var c={};Ue(i,function(e,t){c[t]=e}),c[e]=n,s=!0,u=Object.create(null),r(t,c)}else i[e]=n,function(e){Me(u[e]||[],function(e){e()}),p()}(e)});a++;var c=b(t[t.length-1]);t.length>1?c(i,n):c(n)}(e,t)})}function p(){if(0===c.length&&0===a)return r(null,i);for(;c.length&&a=0&&r.push(n)}),r}Ue(e,function(t,r){if(!Z(t))return h(r,[t]),void l.push(r);var n=t.slice(0,t.length-1),i=n.length;if(0===i)return h(r,t),void l.push(r);f[r]=i,Me(n,function(o){if(!e[o])throw new Error(\"async.auto task `\"+r+\"` has a non-existent dependency `\"+o+\"` in \"+n.join(\", \"));!function(e,t){var r=u[e];r||(r=u[e]=[]);r.push(t)}(o,function(){0===--i&&h(r,t)})})}),function(){var e,t=0;for(;l.length;)e=l.pop(),t++,Me(d(e),function(e){0==--f[e]&&l.push(e)});if(t!==n)throw new Error(\"async.auto cannot execute tasks due to a recursive dependency\")}(),p()};function Ge(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r=n?e:function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n-1;);return r}(n,i),function(e,t){for(var r=e.length;r--&&Fe(t,e[r],0)>-1;);return r}(n,i)+1).join(\"\")}var lt=/^(?:async\\s+)?(function)?\\s*[^\\(]*\\(\\s*([^\\)]*)\\)/m,ft=/,/,ht=/(=.+)?(\\s*)$/,pt=/((\\/\\/.*$)|(\\/\\*[\\s\\S]*?\\*\\/))/gm;function dt(e,t){var r={};Ue(e,function(e,t){var n,i=m(e),o=!i&&1===e.length||i&&0===e.length;if(Z(e))n=e.slice(0,-1),e=e[e.length-1],r[t]=n.concat(n.length>0?a:e);else if(o)r[t]=e;else{if(n=function(e){return e=(e=(e=(e=e.toString().replace(pt,\"\")).match(lt)[2].replace(\" \",\"\"))?e.split(ft):[]).map(function(e){return ct(e.replace(ht,\"\"))})}(e),0===e.length&&!i&&0===n.length)throw new Error(\"autoInject task functions require explicit parameters.\");i||n.pop(),r[t]=n.concat(a)}function a(t,r){var i=Ge(n,function(e){return t[e]});i.push(r),b(e).apply(null,i)}}),ze(r,t)}function vt(){this.head=this.tail=null,this.length=0}function gt(e,t){e.length=1,e.head=e.tail=t}function yt(e,t,r){if(null==t)t=1;else if(0===t)throw new Error(\"Concurrency must not be zero\");var n=b(e),i=0,o=[],a=!1;function s(e,t,r){if(null!=r&&\"function\"!=typeof r)throw new Error(\"task callback must be a function\");if(l.started=!0,Z(e)||(e=[e]),0===e.length&&l.idle())return p(function(){l.drain()});for(var n=0,i=e.length;n0&&o.splice(s,1),a.callback.apply(a,arguments),null!=t&&l.error(t,a.data)}i<=l.concurrency-l.buffer&&l.unsaturated(),l.idle()&&l.drain(),l.process()}}var c=!1,l={_tasks:new vt,concurrency:t,payload:r,saturated:z,unsaturated:z,buffer:t/4,empty:z,drain:z,error:z,started:!1,paused:!1,push:function(e,t){s(e,!1,t)},kill:function(){l.drain=z,l._tasks.empty()},unshift:function(e,t){s(e,!0,t)},remove:function(e){l._tasks.remove(e)},process:function(){if(!c){for(c=!0;!l.paused&&i2&&(i=o(arguments,1)),n[t]=i,r(e)})},function(e){r(e,n)})}function dr(e,t){pr(Oe,e,t)}function vr(e,t,r){pr(Se(t),e,r)}var gr=function(e,t){var r=b(e);return yt(function(e,t){r(e[0],t)},t,1)},yr=function(e,t){var r=gr(e,t);return r.push=function(e,t,n){if(null==n&&(n=z),\"function\"!=typeof n)throw new Error(\"task callback must be a function\");if(r.started=!0,Z(e)||(e=[e]),0===e.length)return p(function(){r.drain()});t=t||0;for(var i=r._tasks.head;i&&t>=i.priority;)i=i.next;for(var o=0,a=e.length;on?1:0}Ne(e,function(e,t){n(e,function(r,n){if(r)return t(r);t(null,{value:e,criteria:n})})},function(e,t){if(e)return r(e);r(null,Ge(t.sort(i),Yt(\"value\")))})}function Pr(e,t,r){var n=b(e);return s(function(i,o){var a,s=!1;i.push(function(){s||(o.apply(null,arguments),clearTimeout(a))}),a=setTimeout(function(){var t=e.name||\"anonymous\",n=new Error('Callback function \"'+t+'\" timed out.');n.code=\"ETIMEDOUT\",r&&(n.info=r),s=!0,o(n)},t),n.apply(null,i)})}var jr=Math.ceil,Hr=Math.max;function Mr(e,t,r,n){var i=b(r);Pe(function(e,t,r,n){for(var i=-1,o=Hr(jr((t-e)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=e,e+=r;return a}(0,e,1),t,i,n)}var Dr=Te(Mr,1/0),Ur=Te(Mr,1);function Lr(e,t,r,n){arguments.length<=3&&(n=r,r=t,t=Z(e)?[]:{}),n=G(n||z);var i=b(r);Oe(e,function(e,r,n){i(t,e,r,n)},function(e){n(e,t)})}function Fr(e,t){var r,n=null;t=t||z,Gt(e,function(e,t){b(e)(function(e,i){r=arguments.length>2?o(arguments,1):i,n=e,t(!e)})},function(){t(n,r)})}function zr(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function Gr(e,t,r){r=Ee(r||z);var n=b(t);if(!e())return r(null);var i=function(t){if(t)return r(t);if(e())return n(i);var a=o(arguments,1);r.apply(null,[null].concat(a))};n(i)}function qr(e,t,r){Gr(function(){return!e.apply(this,arguments)},t,r)}var Vr=function(e,t){if(t=G(t||z),!Z(e))return t(new Error(\"First argument to waterfall must be an array of functions\"));if(!e.length)return t();var r=0;function n(t){var n=b(e[r++]);t.push(Ee(i)),n.apply(null,t)}function i(i){if(i||r===e.length)return t.apply(null,arguments);n(o(arguments,1))}n([])},Wr={apply:a,applyEach:Be,applyEachSeries:He,asyncify:d,auto:ze,autoInject:dt,cargo:mt,compose:Et,concat:Tt,concatLimit:xt,concatSeries:At,constant:kt,detect:Nt,detectLimit:Bt,detectSeries:Rt,dir:jt,doDuring:Ht,doUntil:Dt,doWhilst:Mt,during:Ut,each:Ft,eachLimit:zt,eachOf:Oe,eachOfLimit:xe,eachOfSeries:bt,eachSeries:Gt,ensureAsync:qt,every:Wt,everyLimit:$t,everySeries:Kt,filter:Zt,filterLimit:er,filterSeries:tr,forever:rr,groupBy:ir,groupByLimit:nr,groupBySeries:or,log:ar,map:Ne,mapLimit:Pe,mapSeries:je,mapValues:ur,mapValuesLimit:sr,mapValuesSeries:cr,memoize:fr,nextTick:hr,parallel:dr,parallelLimit:vr,priorityQueue:yr,queue:gr,race:mr,reduce:_t,reduceRight:br,reflect:_r,reflectAll:wr,reject:Sr,rejectLimit:xr,rejectSeries:Tr,retry:kr,retryable:Or,seq:wt,series:Cr,setImmediate:p,some:Ir,someLimit:Nr,someSeries:Br,sortBy:Rr,timeout:Pr,times:Dr,timesLimit:Mr,timesSeries:Ur,transform:Lr,tryEach:Fr,unmemoize:zr,until:qr,waterfall:Vr,whilst:Gr,all:Wt,allLimit:$t,allSeries:Kt,any:Ir,anyLimit:Nr,anySeries:Br,find:Nt,findLimit:Bt,findSeries:Rt,forEach:Ft,forEachSeries:Gt,forEachLimit:zt,forEachOf:Oe,forEachOfSeries:bt,forEachOfLimit:xe,inject:_t,foldl:_t,foldr:br,select:Zt,selectLimit:er,selectSeries:tr,wrapSync:d};t.default=Wr,t.apply=a,t.applyEach=Be,t.applyEachSeries=He,t.asyncify=d,t.auto=ze,t.autoInject=dt,t.cargo=mt,t.compose=Et,t.concat=Tt,t.concatLimit=xt,t.concatSeries=At,t.constant=kt,t.detect=Nt,t.detectLimit=Bt,t.detectSeries=Rt,t.dir=jt,t.doDuring=Ht,t.doUntil=Dt,t.doWhilst=Mt,t.during=Ut,t.each=Ft,t.eachLimit=zt,t.eachOf=Oe,t.eachOfLimit=xe,t.eachOfSeries=bt,t.eachSeries=Gt,t.ensureAsync=qt,t.every=Wt,t.everyLimit=$t,t.everySeries=Kt,t.filter=Zt,t.filterLimit=er,t.filterSeries=tr,t.forever=rr,t.groupBy=ir,t.groupByLimit=nr,t.groupBySeries=or,t.log=ar,t.map=Ne,t.mapLimit=Pe,t.mapSeries=je,t.mapValues=ur,t.mapValuesLimit=sr,t.mapValuesSeries=cr,t.memoize=fr,t.nextTick=hr,t.parallel=dr,t.parallelLimit=vr,t.priorityQueue=yr,t.queue=gr,t.race=mr,t.reduce=_t,t.reduceRight=br,t.reflect=_r,t.reflectAll=wr,t.reject=Sr,t.rejectLimit=xr,t.rejectSeries=Tr,t.retry=kr,t.retryable=Or,t.seq=wt,t.series=Cr,t.setImmediate=p,t.some=Ir,t.someLimit=Nr,t.someSeries=Br,t.sortBy=Rr,t.timeout=Pr,t.times=Dr,t.timesLimit=Mr,t.timesSeries=Ur,t.transform=Lr,t.tryEach=Fr,t.unmemoize=zr,t.until=qr,t.waterfall=Vr,t.whilst=Gr,t.all=Wt,t.allLimit=$t,t.allSeries=Kt,t.any=Ir,t.anyLimit=Nr,t.anySeries=Br,t.find=Nt,t.findLimit=Bt,t.findSeries=Rt,t.forEach=Ft,t.forEachSeries=Gt,t.forEachLimit=zt,t.forEachOf=Oe,t.forEachOfSeries=bt,t.forEachOfLimit=xe,t.inject=_t,t.foldl=_t,t.foldr=br,t.select=Zt,t.selectLimit=er,t.selectSeries=tr,t.wrapSync=d,Object.defineProperty(t,\"__esModule\",{value:!0})})}).call(this,r(91).setImmediate,r(21),r(11),r(219)(e))}" }, { - "id": 110, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/webpack/buildin/harmony-module.js", - "name": "(webpack)/buildin/harmony-module.js", - "index": 34, - "index2": 27, - "size": 573, + "id": 93, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\iota.lib.js\\lib\\utils\\makeRequest.js", + "name": "./node_modules/iota.lib.js/lib/utils/makeRequest.js", + "index": 220, + "index2": 219, + "size": 7859, "cacheable": true, "built": true, "optional": false, @@ -15750,34 +15751,39 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/symbol-observable/es/index.js", - "issuerId": 71, - "issuerName": "./node_modules/symbol-observable/es/index.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\iota.lib.js\\lib\\iota.js", + "issuerId": 74, + "issuerName": "./node_modules/iota.lib.js/lib/iota.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 292, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/redux/index.js", + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", "name": "./src/redux/index.js" }, { "id": null, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/redux/es/index.js", - "name": "./node_modules/redux/es/index.js" + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx", + "name": "./src/redux/epics/index.tsx" }, { "id": null, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/redux/es/createStore.js", - "name": "./node_modules/redux/es/createStore.js" + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\node-epics.tsx", + "name": "./src/redux/epics/node-epics.tsx" }, { - "id": 71, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/symbol-observable/es/index.js", - "name": "./node_modules/symbol-observable/es/index.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\services\\iota.tsx", + "name": "./src/redux/services/iota.tsx" + }, + { + "id": 74, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\iota.lib.js\\lib\\iota.js", + "name": "./node_modules/iota.lib.js/lib/iota.js" } ], "failed": false, @@ -15787,22 +15793,22 @@ ], "reasons": [ { - "moduleId": 41, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/styled-components/dist/styled-components.browser.es.js", - "module": "./node_modules/styled-components/dist/styled-components.browser.es.js", - "moduleName": "./node_modules/styled-components/dist/styled-components.browser.es.js", + "moduleId": 31, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\iota.lib.js\\lib\\utils\\utils.js", + "module": "./node_modules/iota.lib.js/lib/utils/utils.js", + "moduleName": "./node_modules/iota.lib.js/lib/utils/utils.js", "type": "cjs require", - "userRequest": "module", - "loc": "1:0-52" + "userRequest": "./makeRequest", + "loc": "2:24-48" }, { - "moduleId": 71, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/symbol-observable/es/index.js", - "module": "./node_modules/symbol-observable/es/index.js", - "moduleName": "./node_modules/symbol-observable/es/index.js", + "moduleId": 74, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\iota.lib.js\\lib\\iota.js", + "module": "./node_modules/iota.lib.js/lib/iota.js", + "moduleName": "./node_modules/iota.lib.js/lib/iota.js", "type": "cjs require", - "userRequest": "module", - "loc": "1:0-52" + "userRequest": "./utils/makeRequest", + "loc": "2:18-48" } ], "usedExports": true, @@ -15810,17 +15816,17 @@ "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 4, - "source": "module.exports = function(originalModule) {\n\tif (!originalModule.webpackPolyfill) {\n\t\tvar module = Object.create(originalModule);\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"exports\", {\n\t\t\tenumerable: true\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n", - "parsedSrc": "function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,\"loaded\",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,\"id\",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,\"exports\",{enumerable:!0}),t.webpackPolyfill=1}return t}}" + "depth": 6, + "source": "var async = require(\"async\");\nvar errors = require(\"../errors/requestErrors\");\n\nfunction xmlHttpRequest() {\n if (typeof XMLHttpRequest !== 'undefined') {\n return new XMLHttpRequest();\n }\n pretendingNotToRequire = require;\n var module = 'xmlhttprequest';\n var request = pretendingNotToRequire(module).XMLHttpRequest;\n return new request();\n}\n\nfunction makeRequest(provider, token) {\n\n this.provider = provider || \"http://localhost:14265\";\n this.token = token;\n}\n\n/**\n* Change the HTTP provider\n*\n* @method setProvider\n* @param {String} provider\n**/\nmakeRequest.prototype.setProvider = function(provider) {\n\n this.provider = provider || \"http://localhost:14265\";\n}\n\n/**\n* creates an XMLHttpRequest Object\n*\n* @method open\n* @param {object} command\n* @returns {object} request\n**/\nmakeRequest.prototype.open = function() {\n\n var request = xmlHttpRequest();\n request.open('POST', this.provider, true);\n request.setRequestHeader('Content-Type','application/json');\n request.setRequestHeader('X-IOTA-API-Version', '1');\n\n if (this.token) {\n //request.withCredentials = true;\n request.setRequestHeader('Authorization', 'token ' + this.token);\n }\n\n return request;\n}\n\n/**\n* sends an http request to a specified host\n*\n* @method send\n* @param {object} command\n* @param {function} callback\n**/\nmakeRequest.prototype.send = function(command, callback) {\n\n var self = this;\n var request = this.open();\n\n request.onreadystatechange = function() {\n\n if (request.readyState === 4) {\n\n var result = request.responseText;\n // Prepare the result\n return self.prepareResult(result, command.command, callback);\n }\n }\n\n try {\n\n request.send(JSON.stringify(command));\n } catch(error) {\n\n return callback(errors.invalidResponse(error));\n }\n}\n\n/**\n* sends a batched http request to a specified host\n* supports findTransactions, getBalances, getInclusionStates & getTrytes commands\n*\n* @method batchedSend\n* @param {object} command\n* @param {function} callback\n**/\nmakeRequest.prototype.batchedSend = function (command, keys, batchSize, callback) {\n var self = this\n var requestStack = []\n\n keys.forEach(function (key) {\n while (command[key].length) {\n var batch = command[key].splice(0, batchSize)\n var params = {}\n\n Object.keys(command).forEach(function (k) {\n if (k === key || keys.indexOf(k) === -1) {\n params[k] = k === key ? batch : command[k]\n }\n })\n\n requestStack.push(params)\n }\n })\n\n async.mapSeries(requestStack, function (command, cb) {\n self.send(command, function (err, res) {\n if (err) {\n return cb(err)\n }\n\n cb(null, res)\n })\n }, function (err, res) {\n if (err) {\n return callback(err)\n }\n\n switch (command.command) {\n case 'getBalances':\n var balances = res.reduce(function (a, b) {\n return a.concat(b.balances)\n }, [])\n\n res = res.sort(function (a, b) {\n return a.milestoneIndex - b.milestoneIndex\n }).shift()\n\n res.balances = balances\n\n callback(null, res)\n\n break\n\n case 'findTransactions':\n var seenTxs = new Set()\n\n if (keys.length === 1) {\n return callback(null, res.reduce(function (a, b) {\n return a.concat(b)\n }, []).filter(function (tx) {\n var seen = seenTxs.has(tx.hash)\n\n if (!seen) {\n seenTxs.add(tx.hash)\n\n return true\n }\n\n return false\n }))\n }\n\n var keysToTxFields = {\n 'bundles': 'bundle',\n 'addresses': 'address',\n 'hashes': 'hash',\n 'tags': 'tag'\n }\n\n callback(null, res.map(function (batch) {\n return batch.filter(function (tx) {\n return keys.every(function (key) {\n return requestStack.some(function (command) {\n return command.hasOwnProperty(key) &&\n command[key].findIndex(function (value) {\n return value === tx[keysToTxFields[key]]\n }) !== -1\n })\n })\n })\n }).reduce(function (a, b) {\n return a.concat(b)\n }, []).filter(function (tx) {\n if (!seenTxs.has(tx.hash)) {\n seenTxs.add(tx.hash)\n\n return true\n }\n return false\n }))\n\n break\n\n default:\n callback(null, res.reduce(function (a, b) {\n return a.concat(b)\n }, []))\n }\n })\n}\n\n/**\n* sends an http request to a specified host\n*\n* @method sandboxSend\n* @param {object} command\n* @param {function} callback\n**/\nmakeRequest.prototype.sandboxSend = function(job, callback) {\n\n // Check every 15 seconds if the job finished or not\n // If failed, return error\n\n var newInterval = setInterval(function() {\n\n var request = xmlHttpRequest();\n\n request.onreadystatechange = function() {\n\n if (request.readyState === 4) {\n\n var result;\n\n // Prepare the result, check that it's JSON\n try {\n\n result = JSON.parse(request.responseText);\n } catch(e) {\n\n return callback(errors.invalidResponse(e));\n }\n\n if (result.status === \"FINISHED\") {\n\n var attachedTrytes = result.attachToTangleResponse.trytes;\n clearInterval(newInterval);\n\n return callback(null, attachedTrytes);\n\n }\n else if (result.status === \"FAILED\") {\n\n clearInterval(newInterval);\n return callback(new Error(\"Sandbox transaction processing failed. Please retry.\"))\n }\n }\n }\n\n try {\n request.open('GET', job, true);\n request.send(JSON.stringify());\n } catch(error) {\n\n return callback(new Error(\"No connection to Sandbox, failed with job: \", job));\n }\n\n }, 5000)\n\n}\n\n/**\n* prepares the returned values from the request\n*\n* @method prepareResult\n* @param {string} result\n* @param {function} callback\n**/\nmakeRequest.prototype.prepareResult = function(result, requestCommand, callback) {\n\n // Result map of the commands we want to format\n var resultMap = {\n 'getNeighbors' : 'neighbors',\n 'addNeighbors' : 'addedNeighbors',\n 'removeNeighbors' : 'removedNeighbors',\n 'getTips' : 'hashes',\n 'findTransactions' : 'hashes',\n 'getTrytes' : 'trytes',\n 'getInclusionStates' : 'states',\n 'attachToTangle' : 'trytes',\n 'wereAddressesSpentFrom': 'states',\n 'checkConsistency' : 'state'\n }\n\n var error;\n\n try {\n result = JSON.parse(result);\n } catch(e) {\n error = errors.invalidResponse(result);\n result = null;\n }\n\n //\n // TODO: PREPARE ERROR MESSAGES BETTER\n //\n if (!error && result.error) {\n error = errors.requestError(result.error);\n result = null;\n }\n\n if (!error && result.exception) {\n error = errors.requestError(result.exception);\n result = null;\n }\n\n // If correct result and we want to prepare the result\n if (result && resultMap.hasOwnProperty(requestCommand)) {\n\n // If the response is from the sandbox, don't prepare the result\n if (requestCommand === 'attachToTangle' && result.hasOwnProperty('id')) {\n\n result = result;\n } else {\n\n result = result[resultMap[requestCommand]];\n }\n }\n\n return callback(error, result);\n}\n\n\nmodule.exports = makeRequest;\n", + "parsedSrc": "function(e,t,r){var n,i=r(92),o=r(218);function a(){if(\"undefined\"!=typeof XMLHttpRequest)return new XMLHttpRequest;pretendingNotToRequire=n;return new(0,r(217)(\"xmlhttprequest\").XMLHttpRequest)}function s(e,t){this.provider=e||\"http://localhost:14265\",this.token=t}s.prototype.setProvider=function(e){this.provider=e||\"http://localhost:14265\"},s.prototype.open=function(){var e=a();return e.open(\"POST\",this.provider,!0),e.setRequestHeader(\"Content-Type\",\"application/json\"),e.setRequestHeader(\"X-IOTA-API-Version\",\"1\"),this.token&&e.setRequestHeader(\"Authorization\",\"token \"+this.token),e},s.prototype.send=function(e,t){var r=this,n=this.open();n.onreadystatechange=function(){if(4===n.readyState){var i=n.responseText;return r.prepareResult(i,e.command,t)}};try{n.send(JSON.stringify(e))}catch(e){return t(o.invalidResponse(e))}},s.prototype.batchedSend=function(e,t,r,n){var o=this,a=[];t.forEach(function(n){for(;e[n].length;){var i=e[n].splice(0,r),o={};Object.keys(e).forEach(function(r){r!==n&&-1!==t.indexOf(r)||(o[r]=r===n?i:e[r])}),a.push(o)}}),i.mapSeries(a,function(e,t){o.send(e,function(e,r){if(e)return t(e);t(null,r)})},function(r,i){if(r)return n(r);switch(e.command){case\"getBalances\":var o=i.reduce(function(e,t){return e.concat(t.balances)},[]);(i=i.sort(function(e,t){return e.milestoneIndex-t.milestoneIndex}).shift()).balances=o,n(null,i);break;case\"findTransactions\":var s=new Set;if(1===t.length)return n(null,i.reduce(function(e,t){return e.concat(t)},[]).filter(function(e){return!s.has(e.hash)&&(s.add(e.hash),!0)}));var u={bundles:\"bundle\",addresses:\"address\",hashes:\"hash\",tags:\"tag\"};n(null,i.map(function(e){return e.filter(function(e){return t.every(function(t){return a.some(function(r){return r.hasOwnProperty(t)&&-1!==r[t].findIndex(function(r){return r===e[u[t]]})})})})}).reduce(function(e,t){return e.concat(t)},[]).filter(function(e){return!s.has(e.hash)&&(s.add(e.hash),!0)}));break;default:n(null,i.reduce(function(e,t){return e.concat(t)},[]))}})},s.prototype.sandboxSend=function(e,t){var r=setInterval(function(){var n=a();n.onreadystatechange=function(){if(4===n.readyState){var e;try{e=JSON.parse(n.responseText)}catch(e){return t(o.invalidResponse(e))}if(\"FINISHED\"===e.status){var i=e.attachToTangleResponse.trytes;return clearInterval(r),t(null,i)}if(\"FAILED\"===e.status)return clearInterval(r),t(new Error(\"Sandbox transaction processing failed. Please retry.\"))}};try{n.open(\"GET\",e,!0),n.send(JSON.stringify())}catch(r){return t(new Error(\"No connection to Sandbox, failed with job: \",e))}},5e3)},s.prototype.prepareResult=function(e,t,r){var n,i={getNeighbors:\"neighbors\",addNeighbors:\"addedNeighbors\",removeNeighbors:\"removedNeighbors\",getTips:\"hashes\",findTransactions:\"hashes\",getTrytes:\"trytes\",getInclusionStates:\"states\",attachToTangle:\"trytes\",wereAddressesSpentFrom:\"states\",checkConsistency:\"state\"};try{e=JSON.parse(e)}catch(t){n=o.invalidResponse(e),e=null}return!n&&e.error&&(n=o.requestError(e.error),e=null),!n&&e.exception&&(n=o.requestError(e.exception),e=null),e&&i.hasOwnProperty(t)&&(e=\"attachToTangle\"===t&&e.hasOwnProperty(\"id\")?e:e[i[t]]),r(n,e)},e.exports=s}" }, { - "id": 111, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/fbjs/lib/emptyFunction.js", - "name": "./node_modules/fbjs/lib/emptyFunction.js", - "index": 7, - "index2": 4, - "size": 959, + "id": 94, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\cancel\\Cancel.js", + "name": "./node_modules/axios/lib/cancel/Cancel.js", + "index": 213, + "index2": 206, + "size": 385, "cacheable": true, "built": true, "optional": false, @@ -15828,24 +15834,44 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/react/cjs/react.production.min.js", - "issuerId": 312, - "issuerName": "./node_modules/react/cjs/react.production.min.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\axios.js", + "issuerId": 238, + "issuerName": "./node_modules/axios/lib/axios.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 2, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/react/index.js", - "name": "./node_modules/react/index.js" + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", + "name": "./src/redux/index.js" }, { - "id": 312, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/react/cjs/react.production.min.js", - "name": "./node_modules/react/cjs/react.production.min.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx", + "name": "./src/redux/epics/index.tsx" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\node-epics.tsx", + "name": "./src/redux/epics/node-epics.tsx" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\services\\broker-node.tsx", + "name": "./src/redux/services/broker-node.tsx" + }, + { + "id": 26, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\index.js", + "name": "./node_modules/axios/index.js" + }, + { + "id": 238, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\axios.js", + "name": "./node_modules/axios/lib/axios.js" } ], "failed": false, @@ -15855,22 +15881,22 @@ ], "reasons": [ { - "moduleId": 310, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/react-dom/cjs/react-dom.production.min.js", - "module": "./node_modules/react-dom/cjs/react-dom.production.min.js", - "moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js", + "moduleId": 222, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\cancel\\CancelToken.js", + "module": "./node_modules/axios/lib/cancel/CancelToken.js", + "moduleName": "./node_modules/axios/lib/cancel/CancelToken.js", "type": "cjs require", - "userRequest": "fbjs/lib/emptyFunction", - "loc": "13:142-175" + "userRequest": "./Cancel", + "loc": "3:13-32" }, { - "moduleId": 312, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/react/cjs/react.production.min.js", - "module": "./node_modules/react/cjs/react.production.min.js", - "moduleName": "./node_modules/react/cjs/react.production.min.js", + "moduleId": 238, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\axios.js", + "module": "./node_modules/axios/lib/axios.js", + "moduleName": "./node_modules/axios/lib/axios.js", "type": "cjs require", - "userRequest": "fbjs/lib/emptyFunction", - "loc": "10:112-145" + "userRequest": "./cancel/Cancel", + "loc": "39:15-41" } ], "usedExports": true, @@ -15878,17 +15904,17 @@ "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 3, - "source": "\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;", - "parsedSrc": "function(e,t,r){\"use strict\";function n(e){return function(){return e}}var i=function(){};i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i}" + "depth": 7, + "source": "'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n", + "parsedSrc": "function(e,t,r){\"use strict\";function n(e){this.message=e}n.prototype.toString=function(){return\"Cancel\"+(this.message?\": \"+this.message:\"\")},n.prototype.__CANCEL__=!0,e.exports=n}" }, { - "id": 112, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/fbjs/lib/emptyObject.js", - "name": "./node_modules/fbjs/lib/emptyObject.js", - "index": 6, - "index2": 3, - "size": 332, + "id": 95, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\cancel\\isCancel.js", + "name": "./node_modules/axios/lib/cancel/isCancel.js", + "index": 210, + "index2": 201, + "size": 102, "cacheable": true, "built": true, "optional": false, @@ -15896,24 +15922,44 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/react/cjs/react.production.min.js", - "issuerId": 312, - "issuerName": "./node_modules/react/cjs/react.production.min.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\axios.js", + "issuerId": 238, + "issuerName": "./node_modules/axios/lib/axios.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 2, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/react/index.js", - "name": "./node_modules/react/index.js" + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", + "name": "./src/redux/index.js" }, { - "id": 312, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/react/cjs/react.production.min.js", - "name": "./node_modules/react/cjs/react.production.min.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx", + "name": "./src/redux/epics/index.tsx" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\node-epics.tsx", + "name": "./src/redux/epics/node-epics.tsx" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\services\\broker-node.tsx", + "name": "./src/redux/services/broker-node.tsx" + }, + { + "id": 26, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\index.js", + "name": "./node_modules/axios/index.js" + }, + { + "id": 238, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\axios.js", + "name": "./node_modules/axios/lib/axios.js" } ], "failed": false, @@ -15923,22 +15969,22 @@ ], "reasons": [ { - "moduleId": 310, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/react-dom/cjs/react-dom.production.min.js", - "module": "./node_modules/react-dom/cjs/react-dom.production.min.js", - "moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js", + "moduleId": 226, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\core\\dispatchRequest.js", + "module": "./node_modules/axios/lib/core/dispatchRequest.js", + "moduleName": "./node_modules/axios/lib/core/dispatchRequest.js", "type": "cjs require", - "userRequest": "fbjs/lib/emptyObject", - "loc": "13:291-322" + "userRequest": "../cancel/isCancel", + "loc": "5:15-44" }, { - "moduleId": 312, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/react/cjs/react.production.min.js", - "module": "./node_modules/react/cjs/react.production.min.js", - "moduleName": "./node_modules/react/cjs/react.production.min.js", + "moduleId": 238, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\axios.js", + "module": "./node_modules/axios/lib/axios.js", + "moduleName": "./node_modules/axios/lib/axios.js", "type": "cjs require", - "userRequest": "fbjs/lib/emptyObject", - "loc": "10:78-109" + "userRequest": "./cancel/isCancel", + "loc": "41:17-45" } ], "usedExports": true, @@ -15946,17 +15992,17 @@ "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 3, - "source": "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\nvar emptyObject = {};\n\nif (process.env.NODE_ENV !== 'production') {\n Object.freeze(emptyObject);\n}\n\nmodule.exports = emptyObject;", - "parsedSrc": "function(e,t,r){\"use strict\";e.exports={}}" + "depth": 7, + "source": "'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n", + "parsedSrc": "function(e,t,r){\"use strict\";e.exports=function(e){return!(!e||!e.__CANCEL__)}}" }, { - "id": 113, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/fbjs/lib/invariant.js", - "name": "./node_modules/fbjs/lib/invariant.js", - "index": 5, - "index2": 2, - "size": 1506, + "id": 96, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\core\\createError.js", + "name": "./node_modules/axios/lib/core/createError.js", + "index": 200, + "index2": 190, + "size": 625, "cacheable": true, "built": true, "optional": false, @@ -15964,24 +16010,54 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/react/cjs/react.production.min.js", - "issuerId": 312, - "issuerName": "./node_modules/react/cjs/react.production.min.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\adapters\\xhr.js", + "issuerId": 97, + "issuerName": "./node_modules/axios/lib/adapters/xhr.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 2, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/react/index.js", - "name": "./node_modules/react/index.js" + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", + "name": "./src/redux/index.js" }, { - "id": 312, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/react/cjs/react.production.min.js", - "name": "./node_modules/react/cjs/react.production.min.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx", + "name": "./src/redux/epics/index.tsx" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\node-epics.tsx", + "name": "./src/redux/epics/node-epics.tsx" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\services\\broker-node.tsx", + "name": "./src/redux/services/broker-node.tsx" + }, + { + "id": 26, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\index.js", + "name": "./node_modules/axios/index.js" + }, + { + "id": 238, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\axios.js", + "name": "./node_modules/axios/lib/axios.js" + }, + { + "id": 59, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\defaults.js", + "name": "./node_modules/axios/lib/defaults.js" + }, + { + "id": 97, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\adapters\\xhr.js", + "name": "./node_modules/axios/lib/adapters/xhr.js" } ], "failed": false, @@ -15991,22 +16067,22 @@ ], "reasons": [ { - "moduleId": 310, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/react-dom/cjs/react-dom.production.min.js", - "module": "./node_modules/react-dom/cjs/react-dom.production.min.js", - "moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js", + "moduleId": 97, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\adapters\\xhr.js", + "module": "./node_modules/axios/lib/adapters/xhr.js", + "moduleName": "./node_modules/axios/lib/adapters/xhr.js", "type": "cjs require", - "userRequest": "fbjs/lib/invariant", - "loc": "13:20-49" + "userRequest": "../core/createError", + "loc": "8:18-48" }, { - "moduleId": 312, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/react/cjs/react.production.min.js", - "module": "./node_modules/react/cjs/react.production.min.js", - "moduleName": "./node_modules/react/cjs/react.production.min.js", + "moduleId": 234, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\core\\settle.js", + "module": "./node_modules/axios/lib/core/settle.js", + "moduleName": "./node_modules/axios/lib/core/settle.js", "type": "cjs require", - "userRequest": "fbjs/lib/invariant", - "loc": "10:46-75" + "userRequest": "./createError", + "loc": "3:18-42" } ], "usedExports": true, @@ -16014,17 +16090,17 @@ "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 3, - "source": "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\nmodule.exports = invariant;", - "parsedSrc": "function(e,t,r){\"use strict\";var n=function(e){};e.exports=function(e,t,r,i,o,a,s,u){if(n(t),!e){var c;if(void 0===t)c=new Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else{var l=[r,i,o,a,s,u],f=0;(c=new Error(t.replace(/%s/g,function(){return l[f++]}))).name=\"Invariant Violation\"}throw c.framesToPop=1,c}}}" + "depth": 9, + "source": "'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n", + "parsedSrc": "function(e,t,r){\"use strict\";var n=r(233);e.exports=function(e,t,r,i,o){var a=new Error(e);return n(a,t,r,i,o)}}" }, { - "id": 114, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/object-assign/index.js", - "name": "./node_modules/object-assign/index.js", - "index": 4, - "index2": 1, - "size": 2108, + "id": 97, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\adapters\\xhr.js", + "name": "./node_modules/axios/lib/adapters/xhr.js", + "index": 198, + "index2": 197, + "size": 6170, "cacheable": true, "built": true, "optional": false, @@ -16032,24 +16108,49 @@ "chunks": [ 0 ], - "issuer": "/Users/jaredfarago/git/webnode/webnode/node_modules/react/cjs/react.production.min.js", - "issuerId": 312, - "issuerName": "./node_modules/react/cjs/react.production.min.js", + "issuer": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\defaults.js", + "issuerId": 59, + "issuerName": "./node_modules/axios/lib/defaults.js", "issuerPath": [ { - "id": 313, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/babel-loader/lib/index.js??ref--5-oneOf-2!/Users/jaredfarago/git/webnode/webnode/node_modules/eslint-loader/index.js??ref--4-0!/Users/jaredfarago/git/webnode/webnode/src/script.js", - "name": "./src/script.js" + "id": 297, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\script.tsx", + "name": "./src/script.tsx" }, { - "id": 2, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/react/index.js", - "name": "./node_modules/react/index.js" + "id": 76, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\babel-loader\\lib\\index.js??ref--5-oneOf-2!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\eslint-loader\\index.js??ref--4-0!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\index.js", + "name": "./src/redux/index.js" }, { - "id": 312, - "identifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/react/cjs/react.production.min.js", - "name": "./node_modules/react/cjs/react.production.min.js" + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\index.tsx", + "name": "./src/redux/epics/index.tsx" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\epics\\node-epics.tsx", + "name": "./src/redux/epics/node-epics.tsx" + }, + { + "id": null, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\awesome-typescript-loader\\dist\\entry.js!C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\src\\redux\\services\\broker-node.tsx", + "name": "./src/redux/services/broker-node.tsx" + }, + { + "id": 26, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\index.js", + "name": "./node_modules/axios/index.js" + }, + { + "id": 238, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\axios.js", + "name": "./node_modules/axios/lib/axios.js" + }, + { + "id": 59, + "identifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\defaults.js", + "name": "./node_modules/axios/lib/defaults.js" } ], "failed": false, @@ -16059,22 +16160,22 @@ ], "reasons": [ { - "moduleId": 310, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/react-dom/cjs/react-dom.production.min.js", - "module": "./node_modules/react-dom/cjs/react-dom.production.min.js", - "moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js", + "moduleId": 59, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\defaults.js", + "module": "./node_modules/axios/lib/defaults.js", + "moduleName": "./node_modules/axios/lib/defaults.js", "type": "cjs require", - "userRequest": "object-assign", - "loc": "13:115-139" + "userRequest": "./adapters/xhr", + "loc": "20:14-39" }, { - "moduleId": 312, - "moduleIdentifier": "/Users/jaredfarago/git/webnode/webnode/node_modules/react/cjs/react.production.min.js", - "module": "./node_modules/react/cjs/react.production.min.js", - "moduleName": "./node_modules/react/cjs/react.production.min.js", + "moduleId": 59, + "moduleIdentifier": "C:\\Users\\Connor\\Documents\\GitHub\\webnode\\webnode\\node_modules\\axios\\lib\\defaults.js", + "module": "./node_modules/axios/lib/defaults.js", + "moduleName": "./node_modules/axios/lib/defaults.js", "type": "cjs require", - "userRequest": "object-assign", - "loc": "10:19-43" + "userRequest": "./adapters/http", + "loc": "23:14-40" } ], "usedExports": true, @@ -16082,17 +16183,17 @@ "optimizationBailout": [ "ModuleConcatenation bailout: Module is not an ECMAScript module" ], - "depth": 3, - "source": "/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n", - "parsedSrc": "function(e,t,r){\"use strict\";\n/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String(\"abc\");if(e[5]=\"de\",\"5\"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t[\"_\"+String.fromCharCode(r)]=r;if(\"0123456789\"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(\"\"))return!1;var n={};return\"abcdefghijklmnopqrst\".split(\"\").forEach(function(e){n[e]=e}),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},n)).join(\"\")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,s=function(e){if(null===e||void 0===e)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(e)}(e),u=1;u