1 line
55 KiB
JavaScript
1 line
55 KiB
JavaScript
(()=>{var e={989:function(e,t){(function(e,r){"use strict";true?r(t):0})(this,(function(e){"use strict";var t=function noop(){};var r=function throwError(){throw new Error("Callback was already called.")};var n=5;var a=0;var l="object";var i="function";var o=Array.isArray;var c=Object.keys;var f=Array.prototype.push;var u=typeof Symbol===i&&Symbol.iterator;var s,h,y;createImmediate();var v=createEach(arrayEach,baseEach,symbolEach);var d=createMap(arrayEachIndex,baseEachIndex,symbolEachIndex,true);var b=createMap(arrayEachIndex,baseEachKey,symbolEachKey,false);var I=createFilter(arrayEachIndexValue,baseEachIndexValue,symbolEachIndexValue,true);var p=createFilterSeries(true);var m=createFilterLimit(true);var g=createFilter(arrayEachIndexValue,baseEachIndexValue,symbolEachIndexValue,false);var k=createFilterSeries(false);var x=createFilterLimit(false);var C=createDetect(arrayEachValue,baseEachValue,symbolEachValue,true);var W=createDetectSeries(true);var w=createDetectLimit(true);var j=createEvery(arrayEachValue,baseEachValue,symbolEachValue);var E=createEverySeries();var L=createEveryLimit();var S=createPick(arrayEachIndexValue,baseEachKeyValue,symbolEachKeyValue,true);var K=createPickSeries(true);var A=createPickLimit(true);var _=createPick(arrayEachIndexValue,baseEachKeyValue,symbolEachKeyValue,false);var O=createPickSeries(false);var V=createPickLimit(false);var N=createTransform(arrayEachResult,baseEachResult,symbolEachResult);var B=createSortBy(arrayEachIndexValue,baseEachIndexValue,symbolEachIndexValue);var D=createConcat(arrayEachIndex,baseEachIndex,symbolEachIndex);var F=createGroupBy(arrayEachValue,baseEachValue,symbolEachValue);var R=createParallel(arrayEachFunc,baseEachFunc);var T=createApplyEach(d);var q=createApplyEach(mapSeries);var P=createLogger("log");var Q=createLogger("dir");var z={VERSION:"2.6.1",each:v,eachSeries:eachSeries,eachLimit:eachLimit,forEach:v,forEachSeries:eachSeries,forEachLimit:eachLimit,eachOf:v,eachOfSeries:eachSeries,eachOfLimit:eachLimit,forEachOf:v,forEachOfSeries:eachSeries,forEachOfLimit:eachLimit,map:d,mapSeries:mapSeries,mapLimit:mapLimit,mapValues:b,mapValuesSeries:mapValuesSeries,mapValuesLimit:mapValuesLimit,filter:I,filterSeries:p,filterLimit:m,select:I,selectSeries:p,selectLimit:m,reject:g,rejectSeries:k,rejectLimit:x,detect:C,detectSeries:W,detectLimit:w,find:C,findSeries:W,findLimit:w,pick:S,pickSeries:K,pickLimit:A,omit:_,omitSeries:O,omitLimit:V,reduce:reduce,inject:reduce,foldl:reduce,reduceRight:reduceRight,foldr:reduceRight,transform:N,transformSeries:transformSeries,transformLimit:transformLimit,sortBy:B,sortBySeries:sortBySeries,sortByLimit:sortByLimit,some:some,someSeries:someSeries,someLimit:someLimit,any:some,anySeries:someSeries,anyLimit:someLimit,every:j,everySeries:E,everyLimit:L,all:j,allSeries:E,allLimit:L,concat:D,concatSeries:concatSeries,concatLimit:concatLimit,groupBy:F,groupBySeries:groupBySeries,groupByLimit:groupByLimit,parallel:R,series:series,parallelLimit:parallelLimit,tryEach:tryEach,waterfall:waterfall,angelFall:angelFall,angelfall:angelFall,whilst:whilst,doWhilst:doWhilst,until:until,doUntil:doUntil,during:during,doDuring:doDuring,forever:forever,compose:compose,seq:seq,applyEach:T,applyEachSeries:q,queue:queue,priorityQueue:priorityQueue,cargo:cargo,auto:auto,autoInject:autoInject,retry:retry,retryable:retryable,iterator:iterator,times:times,timesSeries:timesSeries,timesLimit:timesLimit,race:race,apply:apply,nextTick:h,setImmediate:y,memoize:memoize,unmemoize:unmemoize,ensureAsync:ensureAsync,constant:constant,asyncify:asyncify,wrapSync:asyncify,log:P,dir:Q,reflect:reflect,reflectAll:reflectAll,timeout:timeout,createLogger:createLogger,safe:safe,fast:fast};e["default"]=z;baseEachSync(z,(function(t,r){e[r]=t}),c(z));function createImmediate(e){var t=function delay(e){var t=slice(arguments,1);setTimeout((function(){e.apply(null,t)}))};y=typeof setImmediate===i?setImmediate:t;if(typeof process===l&&typeof process.nextTick===i){s=/^v0.10/.test(process.version)?y:process.nextTick;h=/^v0/.test(process.version)?y:process.nextTick}else{h=s=y}if(e===false){s=function(e){e()}}}function createArray(e){var t=-1;var r=e.length;var n=Array(r);while(++t<r){n[t]=e[t]}return n}function slice(e,t){var r=e.length;var n=-1;var a=r-t;if(a<=0){return[]}var l=Array(a);while(++n<a){l[n]=e[n+t]}return l}function objectClone(e){var t=c(e);var r=t.length;var n=-1;var a={};while(++n<r){var l=t[n];a[l]=e[l]}return a}function compact(e){var t=-1;var r=e.length;var n=[];while(++t<r){var a=e[t];if(a){n[n.length]=a}}return n}function reverse(e){var t=-1;var r=e.length;var n=Array(r);var a=r;while(++t<r){n[--a]=e[t]}return n}function has(e,t){return e.hasOwnProperty(t)}function notInclude(e,t){var r=-1;var n=e.length;while(++r<n){if(e[r]===t){return false}}return true}function arrayEachSync(e,t){var r=-1;var n=e.length;while(++r<n){t(e[r],r)}return e}function baseEachSync(e,t,r){var n=-1;var a=r.length;while(++n<a){var l=r[n];t(e[l],l)}return e}function timesSync(e,t){var r=-1;while(++r<e){t(r)}}function sortByCriteria(e,t){var r=e.length;var n=Array(r);var a;for(a=0;a<r;a++){n[a]=a}quickSort(t,0,r-1,n);var l=Array(r);for(var i=0;i<r;i++){a=n[i];l[i]=a===undefined?e[i]:e[a]}return l}function partition(e,t,r,n,a){var l=t;var i=r;while(l<=i){t=l;while(l<i&&e[l]<n){l++}while(i>=t&&e[i]>=n){i--}if(l>i){break}swap(e,a,l++,i--)}return l}function swap(e,t,r,n){var a=e[r];e[r]=e[n];e[n]=a;var l=t[r];t[r]=t[n];t[n]=l}function quickSort(e,t,r,n){if(t===r){return}var a=t;while(++a<=r&&e[t]===e[a]){var l=a-1;if(n[l]>n[a]){var i=n[l];n[l]=n[a];n[a]=i}}if(a>r){return}var o=e[t]>e[a]?t:a;a=partition(e,t,r,e[o],n);quickSort(e,t,a-1,n);quickSort(e,a,r,n)}function makeConcatResult(e){var r=[];arrayEachSync(e,(function(e){if(e===t){return}if(o(e)){f.apply(r,e)}else{r.push(e)}}));return r}function arrayEach(e,t,r){var n=-1;var a=e.length;if(t.length===3){while(++n<a){t(e[n],n,onlyOnce(r))}}else{while(++n<a){t(e[n],onlyOnce(r))}}}function baseEach(e,t,r,n){var a;var l=-1;var i=n.length;if(t.length===3){while(++l<i){a=n[l];t(e[a],a,onlyOnce(r))}}else{while(++l<i){t(e[n[l]],onlyOnce(r))}}}function symbolEach(e,t,r){var n=e[u]();var a=0;var l;if(t.length===3){while((l=n.next()).done===false){t(l.value,a++,onlyOnce(r))}}else{while((l=n.next()).done===false){a++;t(l.value,onlyOnce(r))}}return a}function arrayEachResult(e,t,r,n){var a=-1;var l=e.length;if(r.length===4){while(++a<l){r(t,e[a],a,onlyOnce(n))}}else{while(++a<l){r(t,e[a],onlyOnce(n))}}}function baseEachResult(e,t,r,n,a){var l;var i=-1;var o=a.length;if(r.length===4){while(++i<o){l=a[i];r(t,e[l],l,onlyOnce(n))}}else{while(++i<o){r(t,e[a[i]],onlyOnce(n))}}}function symbolEachResult(e,t,r,n){var a;var l=0;var i=e[u]();if(r.length===4){while((a=i.next()).done===false){r(t,a.value,l++,onlyOnce(n))}}else{while((a=i.next()).done===false){l++;r(t,a.value,onlyOnce(n))}}return l}function arrayEachFunc(e,t){var r=-1;var n=e.length;while(++r<n){e[r](t(r))}}function baseEachFunc(e,t,r){var n;var a=-1;var l=r.length;while(++a<l){n=r[a];e[n](t(n))}}function arrayEachIndex(e,t,r){var n=-1;var a=e.length;if(t.length===3){while(++n<a){t(e[n],n,r(n))}}else{while(++n<a){t(e[n],r(n))}}}function baseEachIndex(e,t,r,n){var a;var l=-1;var i=n.length;if(t.length===3){while(++l<i){a=n[l];t(e[a],a,r(l))}}else{while(++l<i){t(e[n[l]],r(l))}}}function symbolEachIndex(e,t,r){var n;var a=0;var l=e[u]();if(t.length===3){while((n=l.next()).done===false){t(n.value,a,r(a++))}}else{while((n=l.next()).done===false){t(n.value,r(a++))}}return a}function baseEachKey(e,t,r,n){var a;var l=-1;var i=n.length;if(t.length===3){while(++l<i){a=n[l];t(e[a],a,r(a))}}else{while(++l<i){a=n[l];t(e[a],r(a))}}}function symbolEachKey(e,t,r){var n;var a=0;var l=e[u]();if(t.length===3){while((n=l.next()).done===false){t(n.value,a,r(a++))}}else{while((n=l.next()).done===false){t(n.value,r(a++))}}return a}function arrayEachValue(e,t,r){var n;var a=-1;var l=e.length;if(t.length===3){while(++a<l){n=e[a];t(n,a,r(n))}}else{while(++a<l){n=e[a];t(n,r(n))}}}function baseEachValue(e,t,r,n){var a,l;var i=-1;var o=n.length;if(t.length===3){while(++i<o){a=n[i];l=e[a];t(l,a,r(l))}}else{while(++i<o){l=e[n[i]];t(l,r(l))}}}function symbolEachValue(e,t,r){var n,a;var l=0;var i=e[u]();if(t.length===3){while((a=i.next()).done===false){n=a.value;t(n,l++,r(n))}}else{while((a=i.next()).done===false){l++;n=a.value;t(n,r(n))}}return l}function arrayEachIndexValue(e,t,r){var n;var a=-1;var l=e.length;if(t.length===3){while(++a<l){n=e[a];t(n,a,r(a,n))}}else{while(++a<l){n=e[a];t(n,r(a,n))}}}function baseEachIndexValue(e,t,r,n){var a,l;var i=-1;var o=n.length;if(t.length===3){while(++i<o){a=n[i];l=e[a];t(l,a,r(i,l))}}else{while(++i<o){l=e[n[i]];t(l,r(i,l))}}}function symbolEachIndexValue(e,t,r){var n,a;var l=0;var i=e[u]();if(t.length===3){while((a=i.next()).done===false){n=a.value;t(n,l,r(l++,n))}}else{while((a=i.next()).done===false){n=a.value;t(n,r(l++,n))}}return l}function baseEachKeyValue(e,t,r,n){var a,l;var i=-1;var o=n.length;if(t.length===3){while(++i<o){a=n[i];l=e[a];t(l,a,r(a,l))}}else{while(++i<o){a=n[i];l=e[a];t(l,r(a,l))}}}function symbolEachKeyValue(e,t,r){var n,a;var l=0;var i=e[u]();if(t.length===3){while((a=i.next()).done===false){n=a.value;t(n,l,r(l++,n))}}else{while((a=i.next()).done===false){n=a.value;t(n,r(l++,n))}}return l}function onlyOnce(e){return function(t,n){var a=e;e=r;a(t,n)}}function once(e){return function(r,n){var a=e;e=t;a(r,n)}}function createEach(e,r,n){return function each(a,i,f){f=once(f||t);var s,h;var y=0;if(o(a)){s=a.length;e(a,i,done)}else if(!a){}else if(u&&a[u]){s=n(a,i,done);s&&s===y&&f(null)}else if(typeof a===l){h=c(a);s=h.length;r(a,i,done,h)}if(!s){f(null)}function done(e,t){if(e){f=once(f);f(e)}else if(++y===s){f(null)}else if(t===false){f=once(f);f(null)}}}}function createMap(e,n,a,i){var f,s;if(i){f=Array;s=createArray}else{f=function(){return{}};s=objectClone}return function(i,h,y){y=y||t;var v,d,b;var I=0;if(o(i)){v=i.length;b=f(v);e(i,h,createCallback)}else if(!i){}else if(u&&i[u]){b=f(0);v=a(i,h,createCallback);v&&v===I&&y(null,b)}else if(typeof i===l){d=c(i);v=d.length;b=f(v);n(i,h,createCallback,d)}if(!v){y(null,f())}function createCallback(e){return function done(t,n){if(e===null){r()}if(t){e=null;y=once(y);y(t,s(b));return}b[e]=n;e=null;if(++I===v){y(null,b)}}}}}function createFilter(e,n,a,i){return function(f,s,h){h=h||t;var y,v,d;var b=0;if(o(f)){y=f.length;d=Array(y);e(f,s,createCallback)}else if(!f){}else if(u&&f[u]){d=[];y=a(f,s,createCallback);y&&y===b&&h(null,compact(d))}else if(typeof f===l){v=c(f);y=v.length;d=Array(y);n(f,s,createCallback,v)}if(!y){return h(null,[])}function createCallback(e,t){return function done(n,a){if(e===null){r()}if(n){e=null;h=once(h);h(n);return}if(!!a===i){d[e]=t}e=null;if(++b===y){h(null,compact(d))}}}}}function createFilterSeries(e){return function(n,a,i){i=onlyOnce(i||t);var f,h,y,v,d,b,I;var p=false;var m=0;var g=[];if(o(n)){f=n.length;I=a.length===3?arrayIteratorWithIndex:arrayIterator}else if(!n){}else if(u&&n[u]){f=Infinity;d=n[u]();I=a.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof n===l){v=c(n);f=v.length;I=a.length===3?objectIteratorWithKey:objectIterator}if(!f){return i(null,[])}I();function arrayIterator(){y=n[m];a(y,done)}function arrayIteratorWithIndex(){y=n[m];a(y,m,done)}function symbolIterator(){b=d.next();y=b.value;b.done?i(null,g):a(y,done)}function symbolIteratorWithKey(){b=d.next();y=b.value;b.done?i(null,g):a(y,m,done)}function objectIterator(){h=v[m];y=n[h];a(y,done)}function objectIteratorWithKey(){h=v[m];y=n[h];a(y,h,done)}function done(t,n){if(t){i(t);return}if(!!n===e){g[g.length]=y}if(++m===f){I=r;i(null,g)}else if(p){s(I)}else{p=true;I()}p=false}}}function createFilterLimit(e){return function(n,a,i,f){f=f||t;var h,y,v,d,b,I,p,m,g;var k=false;var x=0;var C=0;if(o(n)){h=n.length;m=i.length===3?arrayIteratorWithIndex:arrayIterator}else if(!n){}else if(u&&n[u]){h=Infinity;g=[];I=n[u]();m=i.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof n===l){b=c(n);h=b.length;m=i.length===3?objectIteratorWithKey:objectIterator}if(!h||isNaN(a)||a<1){return f(null,[])}g=g||Array(h);timesSync(a>h?h:a,m);function arrayIterator(){y=x++;if(y<h){d=n[y];i(d,createCallback(d,y))}}function arrayIteratorWithIndex(){y=x++;if(y<h){d=n[y];i(d,y,createCallback(d,y))}}function symbolIterator(){p=I.next();if(p.done===false){d=p.value;i(d,createCallback(d,x++))}else if(C===x&&i!==t){i=t;f(null,compact(g))}}function symbolIteratorWithKey(){p=I.next();if(p.done===false){d=p.value;i(d,x,createCallback(d,x++))}else if(C===x&&i!==t){i=t;f(null,compact(g))}}function objectIterator(){y=x++;if(y<h){d=n[b[y]];i(d,createCallback(d,y))}}function objectIteratorWithKey(){y=x++;if(y<h){v=b[y];d=n[v];i(d,v,createCallback(d,y))}}function createCallback(n,a){return function(l,i){if(a===null){r()}if(l){a=null;m=t;f=once(f);f(l);return}if(!!i===e){g[a]=n}a=null;if(++C===h){f=onlyOnce(f);f(null,compact(g))}else if(k){s(m)}else{k=true;m()}k=false}}}}function eachSeries(e,n,a){a=onlyOnce(a||t);var i,f,h,y,v,d;var b=false;var I=0;if(o(e)){i=e.length;d=n.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(u&&e[u]){i=Infinity;y=e[u]();d=n.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===l){h=c(e);i=h.length;d=n.length===3?objectIteratorWithKey:objectIterator}if(!i){return a(null)}d();function arrayIterator(){n(e[I],done)}function arrayIteratorWithIndex(){n(e[I],I,done)}function symbolIterator(){v=y.next();v.done?a(null):n(v.value,done)}function symbolIteratorWithKey(){v=y.next();v.done?a(null):n(v.value,I,done)}function objectIterator(){n(e[h[I]],done)}function objectIteratorWithKey(){f=h[I];n(e[f],f,done)}function done(e,t){if(e){a(e)}else if(++I===i||t===false){d=r;a(null)}else if(b){s(d)}else{b=true;d()}b=false}}function eachLimit(e,n,a,i){i=i||t;var f,h,y,v,d,b,I;var p=false;var m=0;var g=0;if(o(e)){f=e.length;I=a.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(u&&e[u]){f=Infinity;d=e[u]();I=a.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===l){v=c(e);f=v.length;I=a.length===3?objectIteratorWithKey:objectIterator}else{return i(null)}if(!f||isNaN(n)||n<1){return i(null)}timesSync(n>f?f:n,I);function arrayIterator(){if(m<f){a(e[m++],done)}}function arrayIteratorWithIndex(){h=m++;if(h<f){a(e[h],h,done)}}function symbolIterator(){b=d.next();if(b.done===false){m++;a(b.value,done)}else if(g===m&&a!==t){a=t;i(null)}}function symbolIteratorWithKey(){b=d.next();if(b.done===false){a(b.value,m++,done)}else if(g===m&&a!==t){a=t;i(null)}}function objectIterator(){if(m<f){a(e[v[m++]],done)}}function objectIteratorWithKey(){h=m++;if(h<f){y=v[h];a(e[y],y,done)}}function done(e,n){if(e||n===false){I=t;i=once(i);i(e)}else if(++g===f){a=t;I=r;i=onlyOnce(i);i(null)}else if(p){s(I)}else{p=true;I()}p=false}}function mapSeries(e,n,a){a=a||t;var i,f,h,y,v,d,b;var I=false;var p=0;if(o(e)){i=e.length;b=n.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(u&&e[u]){i=Infinity;d=[];y=e[u]();b=n.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===l){h=c(e);i=h.length;b=n.length===3?objectIteratorWithKey:objectIterator}if(!i){return a(null,[])}d=d||Array(i);b();function arrayIterator(){n(e[p],done)}function arrayIteratorWithIndex(){n(e[p],p,done)}function symbolIterator(){v=y.next();v.done?a(null,d):n(v.value,done)}function symbolIteratorWithKey(){v=y.next();v.done?a(null,d):n(v.value,p,done)}function objectIterator(){n(e[h[p]],done)}function objectIteratorWithKey(){f=h[p];n(e[f],f,done)}function done(e,t){if(e){b=r;a=onlyOnce(a);a(e,createArray(d));return}d[p]=t;if(++p===i){b=r;a(null,d);a=r}else if(I){s(b)}else{I=true;b()}I=false}}function mapLimit(e,n,a,i){i=i||t;var f,h,y,v,d,b,I,p;var m=false;var g=0;var k=0;if(o(e)){f=e.length;p=a.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(u&&e[u]){f=Infinity;I=[];d=e[u]();p=a.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===l){v=c(e);f=v.length;p=a.length===3?objectIteratorWithKey:objectIterator}if(!f||isNaN(n)||n<1){return i(null,[])}I=I||Array(f);timesSync(n>f?f:n,p);function arrayIterator(){h=g++;if(h<f){a(e[h],createCallback(h))}}function arrayIteratorWithIndex(){h=g++;if(h<f){a(e[h],h,createCallback(h))}}function symbolIterator(){b=d.next();if(b.done===false){a(b.value,createCallback(g++))}else if(k===g&&a!==t){a=t;i(null,I)}}function symbolIteratorWithKey(){b=d.next();if(b.done===false){a(b.value,g,createCallback(g++))}else if(k===g&&a!==t){a=t;i(null,I)}}function objectIterator(){h=g++;if(h<f){a(e[v[h]],createCallback(h))}}function objectIteratorWithKey(){h=g++;if(h<f){y=v[h];a(e[y],y,createCallback(h))}}function createCallback(e){return function(n,a){if(e===null){r()}if(n){e=null;p=t;i=once(i);i(n,createArray(I));return}I[e]=a;e=null;if(++k===f){p=r;i(null,I);i=r}else if(m){s(p)}else{m=true;p()}m=false}}}function mapValuesSeries(e,n,a){a=a||t;var i,f,h,y,v,d;var b=false;var I={};var p=0;if(o(e)){i=e.length;d=n.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(u&&e[u]){i=Infinity;y=e[u]();d=n.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===l){h=c(e);i=h.length;d=n.length===3?objectIteratorWithKey:objectIterator}if(!i){return a(null,I)}d();function arrayIterator(){f=p;n(e[p],done)}function arrayIteratorWithIndex(){f=p;n(e[p],p,done)}function symbolIterator(){f=p;v=y.next();v.done?a(null,I):n(v.value,done)}function symbolIteratorWithKey(){f=p;v=y.next();v.done?a(null,I):n(v.value,p,done)}function objectIterator(){f=h[p];n(e[f],done)}function objectIteratorWithKey(){f=h[p];n(e[f],f,done)}function done(e,t){if(e){d=r;a=onlyOnce(a);a(e,objectClone(I));return}I[f]=t;if(++p===i){d=r;a(null,I);a=r}else if(b){s(d)}else{b=true;d()}b=false}}function mapValuesLimit(e,n,a,i){i=i||t;var f,h,y,v,d,b,I;var p=false;var m={};var g=0;var k=0;if(o(e)){f=e.length;I=a.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(u&&e[u]){f=Infinity;d=e[u]();I=a.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===l){v=c(e);f=v.length;I=a.length===3?objectIteratorWithKey:objectIterator}if(!f||isNaN(n)||n<1){return i(null,m)}timesSync(n>f?f:n,I);function arrayIterator(){h=g++;if(h<f){a(e[h],createCallback(h))}}function arrayIteratorWithIndex(){h=g++;if(h<f){a(e[h],h,createCallback(h))}}function symbolIterator(){b=d.next();if(b.done===false){a(b.value,createCallback(g++))}else if(k===g&&a!==t){a=t;i(null,m)}}function symbolIteratorWithKey(){b=d.next();if(b.done===false){a(b.value,g,createCallback(g++))}else if(k===g&&a!==t){a=t;i(null,m)}}function objectIterator(){h=g++;if(h<f){y=v[h];a(e[y],createCallback(y))}}function objectIteratorWithKey(){h=g++;if(h<f){y=v[h];a(e[y],y,createCallback(y))}}function createCallback(e){return function(n,a){if(e===null){r()}if(n){e=null;I=t;i=once(i);i(n,objectClone(m));return}m[e]=a;e=null;if(++k===f){i(null,m)}else if(p){s(I)}else{p=true;I()}p=false}}}function createDetect(e,n,a,i){return function(f,s,h){h=h||t;var y,v;var d=0;if(o(f)){y=f.length;e(f,s,createCallback)}else if(!f){}else if(u&&f[u]){y=a(f,s,createCallback);y&&y===d&&h(null)}else if(typeof f===l){v=c(f);y=v.length;n(f,s,createCallback,v)}if(!y){h(null)}function createCallback(e){var t=false;return function done(n,a){if(t){r()}t=true;if(n){h=once(h);h(n)}else if(!!a===i){h=once(h);h(null,e)}else if(++d===y){h(null)}}}}}function createDetectSeries(e){return function(n,a,i){i=onlyOnce(i||t);var f,h,y,v,d,b,I;var p=false;var m=0;if(o(n)){f=n.length;I=a.length===3?arrayIteratorWithIndex:arrayIterator}else if(!n){}else if(u&&n[u]){f=Infinity;d=n[u]();I=a.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof n===l){v=c(n);f=v.length;I=a.length===3?objectIteratorWithKey:objectIterator}if(!f){return i(null)}I();function arrayIterator(){y=n[m];a(y,done)}function arrayIteratorWithIndex(){y=n[m];a(y,m,done)}function symbolIterator(){b=d.next();y=b.value;b.done?i(null):a(y,done)}function symbolIteratorWithKey(){b=d.next();y=b.value;b.done?i(null):a(y,m,done)}function objectIterator(){y=n[v[m]];a(y,done)}function objectIteratorWithKey(){h=v[m];y=n[h];a(y,h,done)}function done(t,n){if(t){i(t)}else if(!!n===e){I=r;i(null,y)}else if(++m===f){I=r;i(null)}else if(p){s(I)}else{p=true;I()}p=false}}}function createDetectLimit(e){return function(n,a,i,f){f=f||t;var h,y,v,d,b,I,p,m;var g=false;var k=0;var x=0;if(o(n)){h=n.length;m=i.length===3?arrayIteratorWithIndex:arrayIterator}else if(!n){}else if(u&&n[u]){h=Infinity;I=n[u]();m=i.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof n===l){b=c(n);h=b.length;m=i.length===3?objectIteratorWithKey:objectIterator}if(!h||isNaN(a)||a<1){return f(null)}timesSync(a>h?h:a,m);function arrayIterator(){y=k++;if(y<h){d=n[y];i(d,createCallback(d))}}function arrayIteratorWithIndex(){y=k++;if(y<h){d=n[y];i(d,y,createCallback(d))}}function symbolIterator(){p=I.next();if(p.done===false){k++;d=p.value;i(d,createCallback(d))}else if(x===k&&i!==t){i=t;f(null)}}function symbolIteratorWithKey(){p=I.next();if(p.done===false){d=p.value;i(d,k++,createCallback(d))}else if(x===k&&i!==t){i=t;f(null)}}function objectIterator(){y=k++;if(y<h){d=n[b[y]];i(d,createCallback(d))}}function objectIteratorWithKey(){if(k<h){v=b[k++];d=n[v];i(d,v,createCallback(d))}}function createCallback(n){var a=false;return function(l,i){if(a){r()}a=true;if(l){m=t;f=once(f);f(l)}else if(!!i===e){m=t;f=once(f);f(null,n)}else if(++x===h){f(null)}else if(g){s(m)}else{g=true;m()}g=false}}}}function createPick(e,n,a,i){return function(f,s,h){h=h||t;var y,v;var d=0;var b={};if(o(f)){y=f.length;e(f,s,createCallback)}else if(!f){}else if(u&&f[u]){y=a(f,s,createCallback);y&&y===d&&h(null,b)}else if(typeof f===l){v=c(f);y=v.length;n(f,s,createCallback,v)}if(!y){return h(null,{})}function createCallback(e,t){return function done(n,a){if(e===null){r()}if(n){e=null;h=once(h);h(n,objectClone(b));return}if(!!a===i){b[e]=t}e=null;if(++d===y){h(null,b)}}}}}function createPickSeries(e){return function(n,a,i){i=onlyOnce(i||t);var f,h,y,v,d,b,I;var p=false;var m={};var g=0;if(o(n)){f=n.length;I=a.length===3?arrayIteratorWithIndex:arrayIterator}else if(!n){}else if(u&&n[u]){f=Infinity;d=n[u]();I=a.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof n===l){v=c(n);f=v.length;I=a.length===3?objectIteratorWithKey:objectIterator}if(!f){return i(null,{})}I();function arrayIterator(){h=g;y=n[g];a(y,done)}function arrayIteratorWithIndex(){h=g;y=n[g];a(y,g,done)}function symbolIterator(){h=g;b=d.next();y=b.value;b.done?i(null,m):a(y,done)}function symbolIteratorWithKey(){h=g;b=d.next();y=b.value;b.done?i(null,m):a(y,h,done)}function objectIterator(){h=v[g];y=n[h];a(y,done)}function objectIteratorWithKey(){h=v[g];y=n[h];a(y,h,done)}function done(t,n){if(t){i(t,m);return}if(!!n===e){m[h]=y}if(++g===f){I=r;i(null,m)}else if(p){s(I)}else{p=true;I()}p=false}}}function createPickLimit(e){return function(n,a,i,f){f=f||t;var h,y,v,d,b,I,p,m;var g=false;var k={};var x=0;var C=0;if(o(n)){h=n.length;m=i.length===3?arrayIteratorWithIndex:arrayIterator}else if(!n){}else if(u&&n[u]){h=Infinity;I=n[u]();m=i.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof n===l){b=c(n);h=b.length;m=i.length===3?objectIteratorWithKey:objectIterator}if(!h||isNaN(a)||a<1){return f(null,{})}timesSync(a>h?h:a,m);function arrayIterator(){y=x++;if(y<h){d=n[y];i(d,createCallback(d,y))}}function arrayIteratorWithIndex(){y=x++;if(y<h){d=n[y];i(d,y,createCallback(d,y))}}function symbolIterator(){p=I.next();if(p.done===false){d=p.value;i(d,createCallback(d,x++))}else if(C===x&&i!==t){i=t;f(null,k)}}function symbolIteratorWithKey(){p=I.next();if(p.done===false){d=p.value;i(d,x,createCallback(d,x++))}else if(C===x&&i!==t){i=t;f(null,k)}}function objectIterator(){if(x<h){v=b[x++];d=n[v];i(d,createCallback(d,v))}}function objectIteratorWithKey(){if(x<h){v=b[x++];d=n[v];i(d,v,createCallback(d,v))}}function createCallback(n,a){return function(l,i){if(a===null){r()}if(l){a=null;m=t;f=once(f);f(l,objectClone(k));return}if(!!i===e){k[a]=n}a=null;if(++C===h){m=r;f=onlyOnce(f);f(null,k)}else if(g){s(m)}else{g=true;m()}g=false}}}}function reduce(e,n,a,i){i=onlyOnce(i||t);var f,h,y,v,d,b;var I=false;var p=0;if(o(e)){f=e.length;b=a.length===4?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(u&&e[u]){f=Infinity;v=e[u]();b=a.length===4?symbolIteratorWithKey:symbolIterator}else if(typeof e===l){y=c(e);f=y.length;b=a.length===4?objectIteratorWithKey:objectIterator}if(!f){return i(null,n)}b(n);function arrayIterator(t){a(t,e[p],done)}function arrayIteratorWithIndex(t){a(t,e[p],p,done)}function symbolIterator(e){d=v.next();d.done?i(null,e):a(e,d.value,done)}function symbolIteratorWithKey(e){d=v.next();d.done?i(null,e):a(e,d.value,p,done)}function objectIterator(t){a(t,e[y[p]],done)}function objectIteratorWithKey(t){h=y[p];a(t,e[h],h,done)}function done(e,t){if(e){i(e,t)}else if(++p===f){a=r;i(null,t)}else if(I){s((function(){b(t)}))}else{I=true;b(t)}I=false}}function reduceRight(e,n,a,i){i=onlyOnce(i||t);var f,h,y,v,d,b,I,p;var m=false;if(o(e)){f=e.length;p=a.length===4?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(u&&e[u]){I=[];d=e[u]();h=-1;while((b=d.next()).done===false){I[++h]=b.value}e=I;f=I.length;p=a.length===4?arrayIteratorWithIndex:arrayIterator}else if(typeof e===l){v=c(e);f=v.length;p=a.length===4?objectIteratorWithKey:objectIterator}if(!f){return i(null,n)}p(n);function arrayIterator(t){a(t,e[--f],done)}function arrayIteratorWithIndex(t){a(t,e[--f],f,done)}function objectIterator(t){a(t,e[v[--f]],done)}function objectIteratorWithKey(t){y=v[--f];a(t,e[y],y,done)}function done(e,t){if(e){i(e,t)}else if(f===0){p=r;i(null,t)}else if(m){s((function(){p(t)}))}else{m=true;p(t)}m=false}}function createTransform(e,r,n){return function transform(a,i,f,s){if(arguments.length===3){s=f;f=i;i=undefined}s=s||t;var h,y,v;var d=0;if(o(a)){h=a.length;v=i!==undefined?i:[];e(a,v,f,done)}else if(!a){}else if(u&&a[u]){v=i!==undefined?i:{};h=n(a,v,f,done);h&&h===d&&s(null,v)}else if(typeof a===l){y=c(a);h=y.length;v=i!==undefined?i:{};r(a,v,f,done,y)}if(!h){s(null,i!==undefined?i:v||{})}function done(e,t){if(e){s=once(s);s(e,o(v)?createArray(v):objectClone(v))}else if(++d===h){s(null,v)}else if(t===false){s=once(s);s(null,o(v)?createArray(v):objectClone(v))}}}}function transformSeries(e,n,a,i){if(arguments.length===3){i=a;a=n;n=undefined}i=onlyOnce(i||t);var f,h,y,v,d,b,I;var p=false;var m=0;if(o(e)){f=e.length;I=n!==undefined?n:[];b=a.length===4?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(u&&e[u]){f=Infinity;v=e[u]();I=n!==undefined?n:{};b=a.length===4?symbolIteratorWithKey:symbolIterator}else if(typeof e===l){y=c(e);f=y.length;I=n!==undefined?n:{};b=a.length===4?objectIteratorWithKey:objectIterator}if(!f){return i(null,n!==undefined?n:I||{})}b();function arrayIterator(){a(I,e[m],done)}function arrayIteratorWithIndex(){a(I,e[m],m,done)}function symbolIterator(){d=v.next();d.done?i(null,I):a(I,d.value,done)}function symbolIteratorWithKey(){d=v.next();d.done?i(null,I):a(I,d.value,m,done)}function objectIterator(){a(I,e[y[m]],done)}function objectIteratorWithKey(){h=y[m];a(I,e[h],h,done)}function done(e,t){if(e){i(e,I)}else if(++m===f||t===false){b=r;i(null,I)}else if(p){s(b)}else{p=true;b()}p=false}}function transformLimit(e,r,n,a,i){if(arguments.length===4){i=a;a=n;n=undefined}i=i||t;var f,h,y,v,d,b,I,p;var m=false;var g=0;var k=0;if(o(e)){f=e.length;p=n!==undefined?n:[];I=a.length===4?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(u&&e[u]){f=Infinity;d=e[u]();p=n!==undefined?n:{};I=a.length===4?symbolIteratorWithKey:symbolIterator}else if(typeof e===l){v=c(e);f=v.length;p=n!==undefined?n:{};I=a.length===4?objectIteratorWithKey:objectIterator}if(!f||isNaN(r)||r<1){return i(null,n!==undefined?n:p||{})}timesSync(r>f?f:r,I);function arrayIterator(){h=g++;if(h<f){a(p,e[h],onlyOnce(done))}}function arrayIteratorWithIndex(){h=g++;if(h<f){a(p,e[h],h,onlyOnce(done))}}function symbolIterator(){b=d.next();if(b.done===false){g++;a(p,b.value,onlyOnce(done))}else if(k===g&&a!==t){a=t;i(null,p)}}function symbolIteratorWithKey(){b=d.next();if(b.done===false){a(p,b.value,g++,onlyOnce(done))}else if(k===g&&a!==t){a=t;i(null,p)}}function objectIterator(){h=g++;if(h<f){a(p,e[v[h]],onlyOnce(done))}}function objectIteratorWithKey(){h=g++;if(h<f){y=v[h];a(p,e[y],y,onlyOnce(done))}}function done(e,r){if(e||r===false){I=t;i(e||null,o(p)?createArray(p):objectClone(p));i=t}else if(++k===f){a=t;i(null,p)}else if(m){s(I)}else{m=true;I()}m=false}}function createSortBy(e,n,a){return function sortBy(i,f,s){s=s||t;var h,y,v;var d=0;if(o(i)){h=i.length;y=Array(h);v=Array(h);e(i,f,createCallback)}else if(!i){}else if(u&&i[u]){y=[];v=[];h=a(i,f,createCallback);h&&h===d&&s(null,sortByCriteria(y,v))}else if(typeof i===l){var b=c(i);h=b.length;y=Array(h);v=Array(h);n(i,f,createCallback,b)}if(!h){s(null,[])}function createCallback(e,t){var n=false;y[e]=t;return function done(t,a){if(n){r()}n=true;v[e]=a;if(t){s=once(s);s(t)}else if(++d===h){s(null,sortByCriteria(y,v))}}}}}function sortBySeries(e,n,a){a=onlyOnce(a||t);var i,f,h,y,v,d,b,I,p;var m=false;var g=0;if(o(e)){i=e.length;b=e;I=Array(i);p=n.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(u&&e[u]){i=Infinity;b=[];I=[];v=e[u]();p=n.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===l){y=c(e);i=y.length;b=Array(i);I=Array(i);p=n.length===3?objectIteratorWithKey:objectIterator}if(!i){return a(null,[])}p();function arrayIterator(){h=e[g];n(h,done)}function arrayIteratorWithIndex(){h=e[g];n(h,g,done)}function symbolIterator(){d=v.next();if(d.done){return a(null,sortByCriteria(b,I))}h=d.value;b[g]=h;n(h,done)}function symbolIteratorWithKey(){d=v.next();if(d.done){return a(null,sortByCriteria(b,I))}h=d.value;b[g]=h;n(h,g,done)}function objectIterator(){h=e[y[g]];b[g]=h;n(h,done)}function objectIteratorWithKey(){f=y[g];h=e[f];b[g]=h;n(h,f,done)}function done(e,t){I[g]=t;if(e){a(e)}else if(++g===i){p=r;a(null,sortByCriteria(b,I))}else if(m){s(p)}else{m=true;p()}m=false}}function sortByLimit(e,n,a,i){i=i||t;var f,h,y,v,d,b,I,p,m,g;var k=false;var x=0;var C=0;if(o(e)){f=e.length;d=e;g=a.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(u&&e[u]){f=Infinity;I=e[u]();d=[];m=[];g=a.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===l){b=c(e);f=b.length;d=Array(f);g=a.length===3?objectIteratorWithKey:objectIterator}if(!f||isNaN(n)||n<1){return i(null,[])}m=m||Array(f);timesSync(n>f?f:n,g);function arrayIterator(){if(x<f){v=e[x];a(v,createCallback(v,x++))}}function arrayIteratorWithIndex(){h=x++;if(h<f){v=e[h];a(v,h,createCallback(v,h))}}function symbolIterator(){p=I.next();if(p.done===false){v=p.value;d[x]=v;a(v,createCallback(v,x++))}else if(C===x&&a!==t){a=t;i(null,sortByCriteria(d,m))}}function symbolIteratorWithKey(){p=I.next();if(p.done===false){v=p.value;d[x]=v;a(v,x,createCallback(v,x++))}else if(C===x&&a!==t){a=t;i(null,sortByCriteria(d,m))}}function objectIterator(){if(x<f){v=e[b[x]];d[x]=v;a(v,createCallback(v,x++))}}function objectIteratorWithKey(){if(x<f){y=b[x];v=e[y];d[x]=v;a(v,y,createCallback(v,x++))}}function createCallback(e,n){var a=false;return function(e,l){if(a){r()}a=true;m[n]=l;if(e){g=t;i(e);i=t}else if(++C===f){i(null,sortByCriteria(d,m))}else if(k){s(g)}else{k=true;g()}k=false}}}function some(e,r,n){n=n||t;C(e,r,done);function done(e,t){if(e){return n(e)}n(null,!!t)}}function someSeries(e,r,n){n=n||t;W(e,r,done);function done(e,t){if(e){return n(e)}n(null,!!t)}}function someLimit(e,r,n,a){a=a||t;w(e,r,n,done);function done(e,t){if(e){return a(e)}a(null,!!t)}}function createEvery(e,r,n){var a=createDetect(e,r,n,false);return function every(e,r,n){n=n||t;a(e,r,done);function done(e,t){if(e){return n(e)}n(null,!t)}}}function createEverySeries(){var e=createDetectSeries(false);return function everySeries(r,n,a){a=a||t;e(r,n,done);function done(e,t){if(e){return a(e)}a(null,!t)}}}function createEveryLimit(){var e=createDetectLimit(false);return function everyLimit(r,n,a,l){l=l||t;e(r,n,a,done);function done(e,t){if(e){return l(e)}l(null,!t)}}}function createConcat(e,n,a){return function concat(i,f,s){s=s||t;var h,y;var v=0;if(o(i)){h=i.length;y=Array(h);e(i,f,createCallback)}else if(!i){}else if(u&&i[u]){y=[];h=a(i,f,createCallback);h&&h===v&&s(null,y)}else if(typeof i===l){var d=c(i);h=d.length;y=Array(h);n(i,f,createCallback,d)}if(!h){s(null,[])}function createCallback(e){return function done(n,a){if(e===null){r()}if(n){e=null;s=once(s);arrayEachSync(y,(function(e,r){if(e===undefined){y[r]=t}}));s(n,makeConcatResult(y));return}switch(arguments.length){case 0:case 1:y[e]=t;break;case 2:y[e]=a;break;default:y[e]=slice(arguments,1);break}e=null;if(++v===h){s(null,makeConcatResult(y))}}}}}function concatSeries(e,n,a){a=onlyOnce(a||t);var i,h,y,v,d,b;var I=false;var p=[];var m=0;if(o(e)){i=e.length;b=n.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(u&&e[u]){i=Infinity;v=e[u]();b=n.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===l){y=c(e);i=y.length;b=n.length===3?objectIteratorWithKey:objectIterator}if(!i){return a(null,p)}b();function arrayIterator(){n(e[m],done)}function arrayIteratorWithIndex(){n(e[m],m,done)}function symbolIterator(){d=v.next();d.done?a(null,p):n(d.value,done)}function symbolIteratorWithKey(){d=v.next();d.done?a(null,p):n(d.value,m,done)}function objectIterator(){n(e[y[m]],done)}function objectIteratorWithKey(){h=y[m];n(e[h],h,done)}function done(e,t){if(o(t)){f.apply(p,t)}else if(arguments.length>=2){f.apply(p,slice(arguments,1))}if(e){a(e,p)}else if(++m===i){b=r;a(null,p)}else if(I){s(b)}else{I=true;b()}I=false}}function concatLimit(e,n,a,i){i=i||t;var f,h,y,v,d,b;var I=false;var p=0;var m=0;if(o(e)){f=e.length;d=a.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(u&&e[u]){f=Infinity;b=[];y=e[u]();d=a.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===l){var g=c(e);f=g.length;d=a.length===3?objectIteratorWithKey:objectIterator}if(!f||isNaN(n)||n<1){return i(null,[])}b=b||Array(f);timesSync(n>f?f:n,d);function arrayIterator(){if(p<f){a(e[p],createCallback(p++))}}function arrayIteratorWithIndex(){if(p<f){a(e[p],p,createCallback(p++))}}function symbolIterator(){v=y.next();if(v.done===false){a(v.value,createCallback(p++))}else if(m===p&&a!==t){a=t;i(null,makeConcatResult(b))}}function symbolIteratorWithKey(){v=y.next();if(v.done===false){a(v.value,p,createCallback(p++))}else if(m===p&&a!==t){a=t;i(null,makeConcatResult(b))}}function objectIterator(){if(p<f){a(e[g[p]],createCallback(p++))}}function objectIteratorWithKey(){if(p<f){h=g[p];a(e[h],h,createCallback(p++))}}function createCallback(e){return function(n,a){if(e===null){r()}if(n){e=null;d=t;i=once(i);arrayEachSync(b,(function(e,r){if(e===undefined){b[r]=t}}));i(n,makeConcatResult(b));return}switch(arguments.length){case 0:case 1:b[e]=t;break;case 2:b[e]=a;break;default:b[e]=slice(arguments,1);break}e=null;if(++m===f){d=r;i(null,makeConcatResult(b));i=r}else if(I){s(d)}else{I=true;d()}I=false}}}function createGroupBy(e,n,a){return function groupBy(i,f,s){s=s||t;var h;var y=0;var v={};if(o(i)){h=i.length;e(i,f,createCallback)}else if(!i){}else if(u&&i[u]){h=a(i,f,createCallback);h&&h===y&&s(null,v)}else if(typeof i===l){var d=c(i);h=d.length;n(i,f,createCallback,d)}if(!h){s(null,{})}function createCallback(e){var t=false;return function done(n,a){if(t){r()}t=true;if(n){s=once(s);s(n,objectClone(v));return}var l=v[a];if(!l){v[a]=[e]}else{l.push(e)}if(++y===h){s(null,v)}}}}}function groupBySeries(e,n,a){a=onlyOnce(a||t);var i,f,h,y,v,d,b;var I=false;var p=0;var m={};if(o(e)){i=e.length;b=n.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(u&&e[u]){i=Infinity;v=e[u]();b=n.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===l){y=c(e);i=y.length;b=n.length===3?objectIteratorWithKey:objectIterator}if(!i){return a(null,m)}b();function arrayIterator(){h=e[p];n(h,done)}function arrayIteratorWithIndex(){h=e[p];n(h,p,done)}function symbolIterator(){d=v.next();h=d.value;d.done?a(null,m):n(h,done)}function symbolIteratorWithKey(){d=v.next();h=d.value;d.done?a(null,m):n(h,p,done)}function objectIterator(){h=e[y[p]];n(h,done)}function objectIteratorWithKey(){f=y[p];h=e[f];n(h,f,done)}function done(e,t){if(e){b=r;a=onlyOnce(a);a(e,objectClone(m));return}var n=m[t];if(!n){m[t]=[h]}else{n.push(h)}if(++p===i){b=r;a(null,m)}else if(I){s(b)}else{I=true;b()}I=false}}function groupByLimit(e,n,a,i){i=i||t;var f,h,y,v,d,b,I,p;var m=false;var g=0;var k=0;var x={};if(o(e)){f=e.length;p=a.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(u&&e[u]){f=Infinity;b=e[u]();p=a.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===l){d=c(e);f=d.length;p=a.length===3?objectIteratorWithKey:objectIterator}if(!f||isNaN(n)||n<1){return i(null,x)}timesSync(n>f?f:n,p);function arrayIterator(){if(g<f){v=e[g++];a(v,createCallback(v))}}function arrayIteratorWithIndex(){h=g++;if(h<f){v=e[h];a(v,h,createCallback(v))}}function symbolIterator(){I=b.next();if(I.done===false){g++;v=I.value;a(v,createCallback(v))}else if(k===g&&a!==t){a=t;i(null,x)}}function symbolIteratorWithKey(){I=b.next();if(I.done===false){v=I.value;a(v,g++,createCallback(v))}else if(k===g&&a!==t){a=t;i(null,x)}}function objectIterator(){if(g<f){v=e[d[g++]];a(v,createCallback(v))}}function objectIteratorWithKey(){if(g<f){y=d[g++];v=e[y];a(v,y,createCallback(v))}}function createCallback(e){var n=false;return function(a,l){if(n){r()}n=true;if(a){p=t;i=once(i);i(a,objectClone(x));return}var o=x[l];if(!o){x[l]=[e]}else{o.push(e)}if(++k===f){i(null,x)}else if(m){s(p)}else{m=true;p()}m=false}}}function createParallel(e,n){return function parallel(a,i){i=i||t;var f,u,s;var h=0;if(o(a)){f=a.length;s=Array(f);e(a,createCallback)}else if(a&&typeof a===l){u=c(a);f=u.length;s={};n(a,createCallback,u)}if(!f){i(null,s)}function createCallback(e){return function(t,n){if(e===null){r()}if(t){e=null;i=once(i);i(t,s);return}s[e]=arguments.length<=2?n:slice(arguments,1);e=null;if(++h===f){i(null,s)}}}}}function series(e,n){n=n||t;var a,i,f,u,h;var y=false;var v=0;if(o(e)){a=e.length;u=Array(a);h=arrayIterator}else if(e&&typeof e===l){f=c(e);a=f.length;u={};h=objectIterator}else{return n(null)}if(!a){return n(null,u)}h();function arrayIterator(){i=v;e[v](done)}function objectIterator(){i=f[v];e[i](done)}function done(e,t){if(e){h=r;n=onlyOnce(n);n(e,u);return}u[i]=arguments.length<=2?t:slice(arguments,1);if(++v===a){h=r;n(null,u)}else if(y){s(h)}else{y=true;h()}y=false}}function parallelLimit(e,n,a){a=a||t;var i,f,u,h,y,v;var d=false;var b=0;var I=0;if(o(e)){i=e.length;y=Array(i);v=arrayIterator}else if(e&&typeof e===l){h=c(e);i=h.length;y={};v=objectIterator}if(!i||isNaN(n)||n<1){return a(null,y)}timesSync(n>i?i:n,v);function arrayIterator(){f=b++;if(f<i){e[f](createCallback(f))}}function objectIterator(){if(b<i){u=h[b++];e[u](createCallback(u))}}function createCallback(e){return function(n,l){if(e===null){r()}if(n){e=null;v=t;a=once(a);a(n,y);return}y[e]=arguments.length<=2?l:slice(arguments,1);e=null;if(++I===i){a(null,y)}else if(d){s(v)}else{d=true;v()}d=false}}}function tryEach(e,r){r=r||t;var n,a,i;var f=false;var u=0;if(o(e)){n=e.length;i=arrayIterator}else if(e&&typeof e===l){a=c(e);n=a.length;i=objectIterator}if(!n){return r(null)}i();function arrayIterator(){e[u](done)}function objectIterator(){e[a[u]](done)}function done(e,t){if(!e){if(arguments.length<=2){r(null,t)}else{r(null,slice(arguments,1))}}else if(++u===n){r(e)}else{f=true;i()}f=false}}function checkWaterfallTasks(e,t){if(!o(e)){t(new Error("First argument to waterfall must be an array of functions"));return false}if(e.length===0){t(null);return false}return true}function waterfallIterator(e,t,r){switch(t.length){case 0:case 1:return e(r);case 2:return e(t[1],r);case 3:return e(t[1],t[2],r);case 4:return e(t[1],t[2],t[3],r);case 5:return e(t[1],t[2],t[3],t[4],r);case 6:return e(t[1],t[2],t[3],t[4],t[5],r);default:t=slice(t,1);t.push(r);return e.apply(null,t)}}function waterfall(e,n){n=n||t;if(!checkWaterfallTasks(e,n)){return}var a,l,i,o;var c=0;var f=e.length;waterfallIterator(e[0],[],createCallback(0));function iterate(){waterfallIterator(a,l,createCallback(a))}function createCallback(u){return function next(h,y){if(u===undefined){n=t;r()}u=undefined;if(h){i=n;n=r;i(h);return}if(++c===f){i=n;n=r;if(arguments.length<=2){i(h,y)}else{i.apply(null,createArray(arguments))}return}if(o){l=arguments;a=e[c]||r;s(iterate)}else{o=true;waterfallIterator(e[c]||r,arguments,createCallback(c))}o=false}}}function angelFall(e,n){n=n||t;if(!checkWaterfallTasks(e,n)){return}var a=0;var l=false;var i=e.length;var o=e[a];var c=[];var iterate=function(){switch(o.length){case 0:try{next(null,o())}catch(e){next(e)}return;case 1:return o(next);case 2:return o(c[1],next);case 3:return o(c[1],c[2],next);case 4:return o(c[1],c[2],c[3],next);case 5:return o(c[1],c[2],c[3],c[4],next);default:c=slice(c,1);c[o.length-1]=next;return o.apply(null,c)}};iterate();function next(t,f){if(t){iterate=r;n=onlyOnce(n);n(t);return}if(++a===i){iterate=r;var u=n;n=r;if(arguments.length===2){u(t,f)}else{u.apply(null,createArray(arguments))}return}o=e[a];c=arguments;if(l){s(iterate)}else{l=true;iterate()}l=false}}function whilst(e,r,n){n=n||t;var a=false;if(e()){iterate()}else{n(null)}function iterate(){if(a){s(next)}else{a=true;r(done)}a=false}function next(){r(done)}function done(t,r){if(t){return n(t)}if(arguments.length<=2){if(e(r)){iterate()}else{n(null,r)}return}r=slice(arguments,1);if(e.apply(null,r)){iterate()}else{n.apply(null,[null].concat(r))}}}function doWhilst(e,r,n){n=n||t;var a=false;next();function iterate(){if(a){s(next)}else{a=true;e(done)}a=false}function next(){e(done)}function done(e,t){if(e){return n(e)}if(arguments.length<=2){if(r(t)){iterate()}else{n(null,t)}return}t=slice(arguments,1);if(r.apply(null,t)){iterate()}else{n.apply(null,[null].concat(t))}}}function until(e,r,n){n=n||t;var a=false;if(!e()){iterate()}else{n(null)}function iterate(){if(a){s(next)}else{a=true;r(done)}a=false}function next(){r(done)}function done(t,r){if(t){return n(t)}if(arguments.length<=2){if(!e(r)){iterate()}else{n(null,r)}return}r=slice(arguments,1);if(!e.apply(null,r)){iterate()}else{n.apply(null,[null].concat(r))}}}function doUntil(e,r,n){n=n||t;var a=false;next();function iterate(){if(a){s(next)}else{a=true;e(done)}a=false}function next(){e(done)}function done(e,t){if(e){return n(e)}if(arguments.length<=2){if(!r(t)){iterate()}else{n(null,t)}return}t=slice(arguments,1);if(!r.apply(null,t)){iterate()}else{n.apply(null,[null].concat(t))}}}function during(e,r,n){n=n||t;_test();function _test(){e(iterate)}function iterate(e,t){if(e){return n(e)}if(t){r(done)}else{n(null)}}function done(e){if(e){return n(e)}_test()}}function doDuring(e,r,n){n=n||t;iterate(null,true);function iterate(t,r){if(t){return n(t)}if(r){e(done)}else{n(null)}}function done(e,t){if(e){return n(e)}switch(arguments.length){case 0:case 1:r(iterate);break;case 2:r(t,iterate);break;default:var a=slice(arguments,1);a.push(iterate);r.apply(null,a);break}}}function forever(e,t){var r=false;iterate();function iterate(){e(next)}function next(e){if(e){if(t){return t(e)}throw e}if(r){s(iterate)}else{r=true;iterate()}r=false}}function compose(){return seq.apply(null,reverse(arguments))}function seq(){var e=createArray(arguments);return function(){var r=this;var n=createArray(arguments);var a=n[n.length-1];if(typeof a===i){n.pop()}else{a=t}reduce(e,n,iterator,done);function iterator(e,t,n){var func=function(e){var t=slice(arguments,1);n(e,t)};e.push(func);t.apply(r,e)}function done(e,t){t=o(t)?t:[t];t.unshift(e);a.apply(r,t)}}}function createApplyEach(e){return function applyEach(r){var go=function(){var n=this;var a=createArray(arguments);var l=a.pop()||t;return e(r,iterator,l);function iterator(e,t){e.apply(n,a.concat([t]))}};if(arguments.length>1){var n=slice(arguments,1);return go.apply(this,n)}else{return go}}}function DLL(){this.head=null;this.tail=null;this.length=0}DLL.prototype._removeLink=function(e){var t=e.prev;var r=e.next;if(t){t.next=r}else{this.head=r}if(r){r.prev=t}else{this.tail=t}e.prev=null;e.next=null;this.length--;return e};DLL.prototype.empty=DLL;DLL.prototype._setInitial=function(e){this.length=1;this.head=this.tail=e};DLL.prototype.insertBefore=function(e,t){t.prev=e.prev;t.next=e;if(e.prev){e.prev.next=t}else{this.head=t}e.prev=t;this.length++};DLL.prototype.unshift=function(e){if(this.head){this.insertBefore(this.head,e)}else{this._setInitial(e)}};DLL.prototype.push=function(e){var t=this.tail;if(t){e.prev=t;e.next=t.next;this.tail=e;t.next=e;this.length++}else{this._setInitial(e)}};DLL.prototype.shift=function(){return this.head&&this._removeLink(this.head)};DLL.prototype.splice=function(e){var t;var r=[];while(e--&&(t=this.shift())){r.push(t)}return r};DLL.prototype.remove=function(e){var t=this.head;while(t){if(e(t)){this._removeLink(t)}t=t.next}return this};function baseQueue(e,n,a,l){if(a===undefined){a=1}else if(isNaN(a)||a<1){throw new Error("Concurrency must not be zero")}var i=0;var c=[];var u,h;var y={_tasks:new DLL,concurrency:a,payload:l,saturated:t,unsaturated:t,buffer:a/4,empty:t,drain:t,error:t,started:false,paused:false,push:push,kill:kill,unshift:unshift,remove:remove,process:e?runQueue:runCargo,length:getLength,running:running,workersList:getWorkersList,idle:idle,pause:pause,resume:resume,_worker:n};return y;function push(e,t){_insert(e,t)}function unshift(e,t){_insert(e,t,true)}function _exec(e){var t={data:e,callback:u};if(h){y._tasks.unshift(t)}else{y._tasks.push(t)}s(y.process)}function _insert(e,r,n){if(r==null){r=t}else if(typeof r!=="function"){throw new Error("task callback must be a function")}y.started=true;var a=o(e)?e:[e];if(e===undefined||!a.length){if(y.idle()){s(y.drain)}return}h=n;u=r;arrayEachSync(a,_exec)}function kill(){y.drain=t;y._tasks.empty()}function _next(e,t){var n=false;return function done(a,l){if(n){r()}n=true;i--;var o;var f=-1;var u=c.length;var s=-1;var h=t.length;var y=arguments.length>2;var v=y&&createArray(arguments);while(++s<h){o=t[s];while(++f<u){if(c[f]===o){if(f===0){c.shift()}else{c.splice(f,1)}f=u;u--}}f=-1;if(y){o.callback.apply(o,v)}else{o.callback(a,l)}if(a){e.error(a,o.data)}}if(i<=e.concurrency-e.buffer){e.unsaturated()}if(e._tasks.length+i===0){e.drain()}e.process()}}function runQueue(){while(!y.paused&&i<y.concurrency&&y._tasks.length){var e=y._tasks.shift();i++;c.push(e);if(y._tasks.length===0){y.empty()}if(i===y.concurrency){y.saturated()}var t=_next(y,[e]);n(e.data,t)}}function runCargo(){while(!y.paused&&i<y.concurrency&&y._tasks.length){var e=y._tasks.splice(y.payload||y._tasks.length);var t=-1;var r=e.length;var a=Array(r);while(++t<r){a[t]=e[t].data}i++;f.apply(c,e);if(y._tasks.length===0){y.empty()}if(i===y.concurrency){y.saturated()}var l=_next(y,e);n(a,l)}}function getLength(){return y._tasks.length}function running(){return i}function getWorkersList(){return c}function idle(){return y.length()+i===0}function pause(){y.paused=true}function _resume(){s(y.process)}function resume(){if(y.paused===false){return}y.paused=false;var e=y.concurrency<y._tasks.length?y.concurrency:y._tasks.length;timesSync(e,_resume)}function remove(e){y._tasks.remove(e)}}function queue(e,t){return baseQueue(true,e,t)}function priorityQueue(e,r){var n=baseQueue(true,e,r);n.push=push;delete n.unshift;return n;function push(e,r,a){n.started=true;r=r||0;var l=o(e)?e:[e];var c=l.length;if(e===undefined||c===0){if(n.idle()){s(n.drain)}return}a=typeof a===i?a:t;var f=n._tasks.head;while(f&&r>=f.priority){f=f.next}while(c--){var u={data:l[c],priority:r,callback:a};if(f){n._tasks.insertBefore(f,u)}else{n._tasks.push(u)}s(n.process)}}}function cargo(e,t){return baseQueue(false,e,1,t)}function auto(e,n,a){if(typeof n===i){a=n;n=null}var l=c(e);var f=l.length;var u={};if(f===0){return a(null,u)}var s=0;var h=[];var y=Object.create(null);a=onlyOnce(a||t);n=n||f;baseEachSync(e,iterator,l);proceedQueue();function iterator(e,n){var i,c;if(!o(e)){i=e;c=0;h.push([i,c,done]);return}var v=e.length-1;i=e[v];c=v;if(v===0){h.push([i,c,done]);return}var d=-1;while(++d<v){var b=e[d];if(notInclude(l,b)){var I="async.auto task `"+n+"` has non-existent dependency `"+b+"` in "+e.join(", ");throw new Error(I)}var p=y[b];if(!p){p=y[b]=[]}p.push(taskListener)}function done(e,l){if(n===null){r()}l=arguments.length<=2?l:slice(arguments,1);if(e){f=0;s=0;h.length=0;var i=objectClone(u);i[n]=l;n=null;var o=a;a=t;o(e,i);return}s--;f--;u[n]=l;taskComplete(n);n=null}function taskListener(){if(--v===0){h.push([i,c,done])}}}function proceedQueue(){if(h.length===0&&s===0){if(f!==0){throw new Error("async.auto task has cyclic dependencies")}return a(null,u)}while(h.length&&s<n&&a!==t){s++;var e=h.shift();if(e[1]===0){e[0](e[2])}else{e[0](u,e[2])}}}function taskComplete(e){var t=y[e]||[];arrayEachSync(t,(function(e){e()}));proceedQueue()}}var M=/^(function)?\s*[^\(]*\(\s*([^\)]*)\)/m;var U=/,/;var G=/(=.+)?(\s*)$/;var $=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function parseParams(e){e=e.toString().replace($,"");e=e.match(M)[2].replace(" ","");e=e?e.split(U):[];e=e.map((function(e){return e.replace(G,"").trim()}));return e}function autoInject(e,t,r){var n={};baseEachSync(e,iterator,c(e));auto(n,t,r);function iterator(e,t){var r;var a=e.length;if(o(e)){if(a===0){throw new Error("autoInject task functions require explicit parameters.")}r=createArray(e);a=r.length-1;e=r[a];if(a===0){n[t]=e;return}}else if(a===1){n[t]=e;return}else{r=parseParams(e);if(a===0&&r.length===0){throw new Error("autoInject task functions require explicit parameters.")}a=r.length-1}r[a]=newTask;n[t]=r;function newTask(t,n){switch(a){case 1:e(t[r[0]],n);break;case 2:e(t[r[0]],t[r[1]],n);break;case 3:e(t[r[0]],t[r[1]],t[r[2]],n);break;default:var l=-1;while(++l<a){r[l]=t[r[l]]}r[l]=n;e.apply(null,r);break}}}}function retry(e,r,l){var o,c,f;var u=0;if(arguments.length<3&&typeof e===i){l=r||t;r=e;e=null;o=n}else{l=l||t;switch(typeof e){case"object":if(typeof e.errorFilter===i){f=e.errorFilter}var s=e.interval;switch(typeof s){case i:c=s;break;case"string":case"number":s=+s;c=s?function(){return s}:function(){return a};break}o=+e.times||n;break;case"number":o=e||n;break;case"string":o=+e||n;break;default:throw new Error("Invalid arguments for async.retry")}}if(typeof r!=="function"){throw new Error("Invalid arguments for async.retry")}if(c){r(intervalCallback)}else{r(simpleCallback)}function simpleIterator(){r(simpleCallback)}function simpleCallback(e,t){if(++u===o||!e||f&&!f(e)){if(arguments.length<=2){return l(e,t)}var r=createArray(arguments);return l.apply(null,r)}simpleIterator()}function intervalIterator(){r(intervalCallback)}function intervalCallback(e,t){if(++u===o||!e||f&&!f(e)){if(arguments.length<=2){return l(e,t)}var r=createArray(arguments);return l.apply(null,r)}setTimeout(intervalIterator,c(u))}}function retryable(e,t){if(!t){t=e;e=null}return done;function done(){var r;var n=createArray(arguments);var a=n.length-1;var l=n[a];switch(t.length){case 1:r=task1;break;case 2:r=task2;break;case 3:r=task3;break;default:r=task4}if(e){retry(e,r,l)}else{retry(r,l)}function task1(e){t(e)}function task2(e){t(n[0],e)}function task3(e){t(n[0],n[1],e)}function task4(e){n[a]=e;t.apply(null,n)}}}function iterator(e){var t=0;var r=[];if(o(e)){t=e.length}else{r=c(e);t=r.length}return makeCallback(0);function makeCallback(n){var fn=function(){if(t){var a=r[n]||n;e[a].apply(null,createArray(arguments))}return fn.next()};fn.next=function(){return n<t-1?makeCallback(n+1):null};return fn}}function apply(e){switch(arguments.length){case 0:case 1:return e;case 2:return e.bind(null,arguments[1]);case 3:return e.bind(null,arguments[1],arguments[2]);case 4:return e.bind(null,arguments[1],arguments[2],arguments[3]);case 5:return e.bind(null,arguments[1],arguments[2],arguments[3],arguments[4]);default:var t=arguments.length;var r=0;var n=Array(t);n[r]=null;while(++r<t){n[r]=arguments[r]}return e.bind.apply(e,n)}}function timeout(e,t,r){var n,a;return wrappedFunc;function wrappedFunc(){a=setTimeout(timeoutCallback,t);var r=createArray(arguments);var l=r.length-1;n=r[l];r[l]=injectedCallback;simpleApply(e,r)}function timeoutCallback(){var t=e.name||"anonymous";var l=new Error('Callback function "'+t+'" timed out.');l.code="ETIMEDOUT";if(r){l.info=r}a=null;n(l)}function injectedCallback(){if(a!==null){simpleApply(n,createArray(arguments));clearTimeout(a)}}function simpleApply(e,t){switch(t.length){case 0:e();break;case 1:e(t[0]);break;case 2:e(t[0],t[1]);break;default:e.apply(null,t);break}}}function times(e,n,a){a=a||t;e=+e;if(isNaN(e)||e<1){return a(null,[])}var l=Array(e);timesSync(e,iterate);function iterate(e){n(e,createCallback(e))}function createCallback(n){return function(i,o){if(n===null){r()}l[n]=o;n=null;if(i){a(i);a=t}else if(--e===0){a(null,l)}}}}function timesSeries(e,n,a){a=a||t;e=+e;if(isNaN(e)||e<1){return a(null,[])}var l=Array(e);var i=false;var o=0;iterate();function iterate(){n(o,done)}function done(t,n){l[o]=n;if(t){a(t);a=r}else if(++o>=e){a(null,l);a=r}else if(i){s(iterate)}else{i=true;iterate()}i=false}}function timesLimit(e,n,a,l){l=l||t;e=+e;if(isNaN(e)||e<1||isNaN(n)||n<1){return l(null,[])}var i=Array(e);var o=false;var c=0;var f=0;timesSync(n>e?e:n,iterate);function iterate(){var t=c++;if(t<e){a(t,createCallback(t))}}function createCallback(n){return function(a,c){if(n===null){r()}i[n]=c;n=null;if(a){l(a);l=t}else if(++f>=e){l(null,i);l=r}else if(o){s(iterate)}else{o=true;iterate()}o=false}}}function race(e,r){r=once(r||t);var n,a;var i=-1;if(o(e)){n=e.length;while(++i<n){e[i](r)}}else if(e&&typeof e===l){a=c(e);n=a.length;while(++i<n){e[a[i]](r)}}else{return r(new TypeError("First argument to race must be a collection of functions"))}if(!n){r(null)}}function memoize(e,t){t=t||function(e){return e};var r={};var n={};var memoized=function(){var a=createArray(arguments);var l=a.pop();var i=t.apply(null,a);if(has(r,i)){s((function(){l.apply(null,r[i])}));return}if(has(n,i)){return n[i].push(l)}n[i]=[l];a.push(done);e.apply(null,a);function done(e){var t=createArray(arguments);if(!e){r[i]=t}var a=n[i];delete n[i];var l=-1;var o=a.length;while(++l<o){a[l].apply(null,t)}}};memoized.memo=r;memoized.unmemoized=e;return memoized}function unmemoize(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function ensureAsync(e){return function(){var t=createArray(arguments);var r=t.length-1;var n=t[r];var a=true;t[r]=done;e.apply(this,t);a=false;function done(){var e=createArray(arguments);if(a){s((function(){n.apply(null,e)}))}else{n.apply(null,e)}}}}function constant(){var e=[null].concat(createArray(arguments));return function(t){t=arguments[arguments.length-1];t.apply(this,e)}}function asyncify(e){return function(){var t=createArray(arguments);var r=t.pop();var n;try{n=e.apply(this,t)}catch(e){return r(e)}if(n&&typeof n.then===i){n.then((function(e){invokeCallback(r,null,e)}),(function(e){invokeCallback(r,e&&e.message?e:new Error(e))}))}else{r(null,n)}}}function invokeCallback(e,t,r){try{e(t,r)}catch(e){s(rethrow,e)}}function rethrow(e){throw e}function reflect(e){return function(){var t;switch(arguments.length){case 1:t=arguments[0];return e(done);case 2:t=arguments[1];return e(arguments[0],done);default:var r=createArray(arguments);var n=r.length-1;t=r[n];r[n]=done;e.apply(this,r)}function done(e,r){if(e){return t(null,{error:e})}if(arguments.length>2){r=slice(arguments,1)}t(null,{value:r})}}}function reflectAll(e){var t,r;if(o(e)){t=Array(e.length);arrayEachSync(e,iterate)}else if(e&&typeof e===l){r=c(e);t={};baseEachSync(e,iterate,r)}return t;function iterate(e,r){t[r]=reflect(e)}}function createLogger(e){return function(e){var t=slice(arguments,1);t.push(done);e.apply(null,t)};function done(t){if(typeof console===l){if(t){if(console.error){console.error(t)}return}if(console[e]){var r=slice(arguments,1);arrayEachSync(r,(function(t){console[e](t)}))}}}}function safe(){createImmediate();return e}function fast(){createImmediate(false);return e}}))}};if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t={};e[989](0,t);module.exports=t})(); |