@umijs/deps
Version:
[](https://packagephobia.now.sh/result?p=@umijs/deps)
1 lines • 171 kB
JavaScript
module.exports=(()=>{var __webpack_modules__={6986:(t,e,n)=>{const{dirname:r,join:i,resolve:s,relative:o,isAbsolute:a}=n(5622);const c=n(9219);const{promisify:u}=n(1669);const{access:l,accessSync:f,copyFile:h,copyFileSync:p,unlink:d,unlinkSync:y,readdir:_,readdirSync:m,rename:g,renameSync:v,stat:w,statSync:b,lstat:S,lstatSync:E,symlink:x,symlinkSync:C,readlink:k,readlinkSync:P}=n(5747);const A=u(l);const T=u(h);const F=u(d);const j=u(_);const R=u(g);const O=u(w);const D=u(S);const N=u(x);const z=u(k);const I=u(c);const M=c.sync;const $=n(6186);const B=async t=>{try{await A(t);return true}catch(t){return t.code!=="ENOENT"}};const L=t=>{try{f(t);return true}catch(t){return t.code!=="ENOENT"}};const H=async(t,e,n={},c=true,u=[])=>{if(!t||!e){throw new TypeError("`source` and `destination` file required")}n={overwrite:true,...n};if(!n.overwrite&&await B(e)){throw new Error(`The destination file exists: ${e}`)}await $(r(e));try{await R(t,e)}catch(r){if(r.code==="EXDEV"){const r=await D(t);if(r.isDirectory()){const r=await j(t);await Promise.all(r.map(r=>H(i(t,r),i(e,r),n,false,u)))}else if(r.isSymbolicLink()){u.push({source:t,destination:e})}else{await T(t,e)}}else{throw r}}if(c){await Promise.all(u.map(async({source:t,destination:e})=>{let n=await z(t);if(a(n))n=s(e,o(t,n));let i;try{i=await O(s(r(t),n))}catch(t){}await N(n,e,i&&i.isDirectory()?"junction":"file")}));await I(t)}};const V=(t,e,n={},c=true,u=[])=>{if(!t||!e){throw new TypeError("`source` and `destination` file required")}n={overwrite:true,...n};if(!n.overwrite&&L(e)){throw new Error(`The destination file exists: ${e}`)}$.sync(r(e));try{v(t,e)}catch(r){if(r.code==="EXDEV"){const r=E(t);if(r.isDirectory()){const r=m(t);for(const s of r){V(i(t,s),i(e,s),n,false,u)}}else if(r.isSymbolicLink()){u.push({source:t,destination:e})}else{p(t,e)}}else{throw r}}if(c){for(const{source:t,destination:e}of u){let n=P(t);if(a(n))n=s(e,o(t,n));let i;try{i=b(s(r(t),n))}catch(t){}C(n,e,i&&i.isDirectory()?"junction":"file")}M(t)}};t.exports=H;t.exports.sync=V},1231:(t,e,n)=>{"use strict";const r=n(8043);const i=n(7972);const s=t=>t.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"");class AggregateError extends Error{constructor(t){if(!Array.isArray(t)){throw new TypeError(`Expected input to be an Array, got ${typeof t}`)}t=[...t].map(t=>{if(t instanceof Error){return t}if(t!==null&&typeof t==="object"){return Object.assign(new Error(t.message),t)}return new Error(t)});let e=t.map(t=>{return typeof t.stack==="string"?s(i(t.stack)):String(t)}).join("\n");e="\n"+r(e,4);super(e);this.name="AggregateError";Object.defineProperty(this,"_errors",{value:t})}*[Symbol.iterator](){for(const t of this._errors){yield t}}}t.exports=AggregateError},5490:t=>{"use strict";t.exports=function(t){var e=t._SomePromiseArray;function any(t){var n=new e(t);var r=n.promise();n.setHowMany(1);n.setUnwrap();n.init();return r}t.any=function(t){return any(t)};t.prototype.any=function(){return any(this)}}},8061:(t,e,n)=>{"use strict";var r;try{throw new Error}catch(t){r=t}var i=n(6203);var s=n(878);function Async(){this._customScheduler=false;this._isTickUsed=false;this._lateQueue=new s(16);this._normalQueue=new s(16);this._haveDrainedQueues=false;var t=this;this.drainQueues=function(){t._drainQueues()};this._schedule=i}Async.prototype.setScheduler=function(t){var e=this._schedule;this._schedule=t;this._customScheduler=true;return e};Async.prototype.hasCustomScheduler=function(){return this._customScheduler};Async.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};Async.prototype.fatalError=function(t,e){if(e){process.stderr.write("Fatal "+(t instanceof Error?t.stack:t)+"\n");process.exit(2)}else{this.throwLater(t)}};Async.prototype.throwLater=function(t,e){if(arguments.length===1){e=t;t=function(){throw e}}if(typeof setTimeout!=="undefined"){setTimeout(function(){t(e)},0)}else try{this._schedule(function(){t(e)})}catch(t){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}};function AsyncInvokeLater(t,e,n){this._lateQueue.push(t,e,n);this._queueTick()}function AsyncInvoke(t,e,n){this._normalQueue.push(t,e,n);this._queueTick()}function AsyncSettlePromises(t){this._normalQueue._pushOne(t);this._queueTick()}Async.prototype.invokeLater=AsyncInvokeLater;Async.prototype.invoke=AsyncInvoke;Async.prototype.settlePromises=AsyncSettlePromises;function _drainQueue(t){while(t.length()>0){_drainQueueStep(t)}}function _drainQueueStep(t){var e=t.shift();if(typeof e!=="function"){e._settlePromises()}else{var n=t.shift();var r=t.shift();e.call(n,r)}}Async.prototype._drainQueues=function(){_drainQueue(this._normalQueue);this._reset();this._haveDrainedQueues=true;_drainQueue(this._lateQueue)};Async.prototype._queueTick=function(){if(!this._isTickUsed){this._isTickUsed=true;this._schedule(this.drainQueues)}};Async.prototype._reset=function(){this._isTickUsed=false};t.exports=Async;t.exports.firstLineError=r},3767:t=>{"use strict";t.exports=function(t,e,n,r){var i=false;var s=function(t,e){this._reject(e)};var o=function(t,e){e.promiseRejectionQueued=true;e.bindingPromise._then(s,s,null,this,t)};var a=function(t,e){if((this._bitField&50397184)===0){this._resolveCallback(e.target)}};var c=function(t,e){if(!e.promiseRejectionQueued)this._reject(t)};t.prototype.bind=function(s){if(!i){i=true;t.prototype._propagateFrom=r.propagateFromFunction();t.prototype._boundValue=r.boundValueFunction()}var u=n(s);var l=new t(e);l._propagateFrom(this,1);var f=this._target();l._setBoundTo(u);if(u instanceof t){var h={promiseRejectionQueued:false,promise:l,target:f,bindingPromise:u};f._then(e,o,undefined,l,h);u._then(a,c,undefined,l,h);l._setOnCancel(u)}else{l._resolveCallback(f)}return l};t.prototype._setBoundTo=function(t){if(t!==undefined){this._bitField=this._bitField|2097152;this._boundTo=t}else{this._bitField=this._bitField&~2097152}};t.prototype._isBound=function(){return(this._bitField&2097152)===2097152};t.bind=function(e,n){return t.resolve(n).bind(e)}}},8710:(t,e,n)=>{"use strict";var r;if(typeof Promise!=="undefined")r=Promise;function noConflict(){try{if(Promise===i)Promise=r}catch(t){}return i}var i=n(3694)();i.noConflict=noConflict;t.exports=i},924:(t,e,n)=>{"use strict";var r=Object.create;if(r){var i=r(null);var s=r(null);i[" size"]=s[" size"]=0}t.exports=function(t){var e=n(7448);var r=e.canEvaluate;var o=e.isIdentifier;var a;var c;if(true){var u=function(t){return new Function("ensureMethod"," \n return function(obj) { \n 'use strict' \n var len = this.length; \n ensureMethod(obj, 'methodName'); \n switch(len) { \n case 1: return obj.methodName(this[0]); \n case 2: return obj.methodName(this[0], this[1]); \n case 3: return obj.methodName(this[0], this[1], this[2]); \n case 0: return obj.methodName(); \n default: \n return obj.methodName.apply(obj, this); \n } \n }; \n ".replace(/methodName/g,t))(ensureMethod)};var l=function(t){return new Function("obj"," \n 'use strict'; \n return obj.propertyName; \n ".replace("propertyName",t))};var f=function(t,e,n){var r=n[t];if(typeof r!=="function"){if(!o(t)){return null}r=e(t);n[t]=r;n[" size"]++;if(n[" size"]>512){var i=Object.keys(n);for(var s=0;s<256;++s)delete n[i[s]];n[" size"]=i.length-256}}return r};a=function(t){return f(t,u,i)};c=function(t){return f(t,l,s)}}function ensureMethod(n,r){var i;if(n!=null)i=n[r];if(typeof i!=="function"){var s="Object "+e.classString(n)+" has no method '"+e.toString(r)+"'";throw new t.TypeError(s)}return i}function caller(t){var e=this.pop();var n=ensureMethod(t,e);return n.apply(t,this)}t.prototype.call=function(t){var e=arguments.length;var n=new Array(Math.max(e-1,0));for(var i=1;i<e;++i){n[i-1]=arguments[i]}if(true){if(r){var s=a(t);if(s!==null){return this._then(s,undefined,undefined,n,undefined)}}}n.push(t);return this._then(caller,undefined,undefined,n,undefined)};function namedGetter(t){return t[this]}function indexedGetter(t){var e=+this;if(e<0)e=Math.max(0,e+t.length);return t[e]}t.prototype.get=function(t){var e=typeof t==="number";var n;if(!e){if(r){var i=c(t);n=i!==null?i:namedGetter}else{n=namedGetter}}else{n=indexedGetter}return this._then(n,undefined,undefined,t,undefined)}}},6616:(t,e,n)=>{"use strict";t.exports=function(t,e,r,i){var s=n(7448);var o=s.tryCatch;var a=s.errorObj;var c=t._async;t.prototype["break"]=t.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");var t=this;var e=t;while(t._isCancellable()){if(!t._cancelBy(e)){if(e._isFollowing()){e._followee().cancel()}else{e._cancelBranched()}break}var n=t._cancellationParent;if(n==null||!n._isCancellable()){if(t._isFollowing()){t._followee().cancel()}else{t._cancelBranched()}break}else{if(t._isFollowing())t._followee().cancel();t._setWillBeCancelled();e=t;t=n}}};t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--};t.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===undefined||this._branchesRemainingToCancel<=0};t.prototype._cancelBy=function(t){if(t===this){this._branchesRemainingToCancel=0;this._invokeOnCancel();return true}else{this._branchHasCancelled();if(this._enoughBranchesHaveCancelled()){this._invokeOnCancel();return true}}return false};t.prototype._cancelBranched=function(){if(this._enoughBranchesHaveCancelled()){this._cancel()}};t.prototype._cancel=function(){if(!this._isCancellable())return;this._setCancelled();c.invoke(this._cancelPromises,this,undefined)};t.prototype._cancelPromises=function(){if(this._length()>0)this._settlePromises()};t.prototype._unsetOnCancel=function(){this._onCancelField=undefined};t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()};t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()};t.prototype._doInvokeOnCancel=function(t,e){if(s.isArray(t)){for(var n=0;n<t.length;++n){this._doInvokeOnCancel(t[n],e)}}else if(t!==undefined){if(typeof t==="function"){if(!e){var r=o(t).call(this._boundValue());if(r===a){this._attachExtraTrace(r.e);c.throwLater(r.e)}}}else{t._resultCancelled(this)}}};t.prototype._invokeOnCancel=function(){var t=this._onCancel();this._unsetOnCancel();c.invoke(this._doInvokeOnCancel,this,t)};t.prototype._invokeInternalOnCancel=function(){if(this._isCancellable()){this._doInvokeOnCancel(this._onCancel(),true);this._unsetOnCancel()}};t.prototype._resultCancelled=function(){this.cancel()}}},8985:(t,e,n)=>{"use strict";t.exports=function(t){var e=n(7448);var r=n(3062).keys;var i=e.tryCatch;var s=e.errorObj;function catchFilter(n,o,a){return function(c){var u=a._boundValue();t:for(var l=0;l<n.length;++l){var f=n[l];if(f===Error||f!=null&&f.prototype instanceof Error){if(c instanceof f){return i(o).call(u,c)}}else if(typeof f==="function"){var h=i(f).call(u,c);if(h===s){return h}else if(h){return i(o).call(u,c)}}else if(e.isObject(c)){var p=r(f);for(var d=0;d<p.length;++d){var y=p[d];if(f[y]!=c[y]){continue t}}return i(o).call(u,c)}}return t}}return catchFilter}},5422:t=>{"use strict";t.exports=function(t){var e=false;var n=[];t.prototype._promiseCreated=function(){};t.prototype._pushContext=function(){};t.prototype._popContext=function(){return null};t._peekContext=t.prototype._peekContext=function(){};function Context(){this._trace=new Context.CapturedTrace(peekContext())}Context.prototype._pushContext=function(){if(this._trace!==undefined){this._trace._promiseCreated=null;n.push(this._trace)}};Context.prototype._popContext=function(){if(this._trace!==undefined){var t=n.pop();var e=t._promiseCreated;t._promiseCreated=null;return e}return null};function createContext(){if(e)return new Context}function peekContext(){var t=n.length-1;if(t>=0){return n[t]}return undefined}Context.CapturedTrace=null;Context.create=createContext;Context.deactivateLongStackTraces=function(){};Context.activateLongStackTraces=function(){var n=t.prototype._pushContext;var r=t.prototype._popContext;var i=t._peekContext;var s=t.prototype._peekContext;var o=t.prototype._promiseCreated;Context.deactivateLongStackTraces=function(){t.prototype._pushContext=n;t.prototype._popContext=r;t._peekContext=i;t.prototype._peekContext=s;t.prototype._promiseCreated=o;e=false};e=true;t.prototype._pushContext=Context.prototype._pushContext;t.prototype._popContext=Context.prototype._popContext;t._peekContext=t.prototype._peekContext=peekContext;t.prototype._promiseCreated=function(){var t=this._peekContext();if(t&&t._promiseCreated==null)t._promiseCreated=this}};return Context}},6004:(t,e,n)=>{"use strict";t.exports=function(t,e,r,i){var s=t._async;var o=n(5816).Warning;var a=n(7448);var c=n(3062);var u=a.canAttachTrace;var l;var f;var h=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/;var p=/\((?:timers\.js):\d+:\d+\)/;var d=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/;var y=null;var _=null;var m=false;var g;var v=!!(a.env("BLUEBIRD_DEBUG")!=0&&(false||a.env("BLUEBIRD_DEBUG")||a.env("NODE_ENV")==="development"));var w=!!(a.env("BLUEBIRD_WARNINGS")!=0&&(v||a.env("BLUEBIRD_WARNINGS")));var b=!!(a.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(v||a.env("BLUEBIRD_LONG_STACK_TRACES")));var S=a.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(w||!!a.env("BLUEBIRD_W_FORGOTTEN_RETURN"));var E;(function(){var e=[];function unhandledRejectionCheck(){for(var t=0;t<e.length;++t){e[t]._notifyUnhandledRejection()}unhandledRejectionClear()}function unhandledRejectionClear(){e.length=0}E=function(t){e.push(t);setTimeout(unhandledRejectionCheck,1)};c.defineProperty(t,"_unhandledRejectionCheck",{value:unhandledRejectionCheck});c.defineProperty(t,"_unhandledRejectionClear",{value:unhandledRejectionClear})})();t.prototype.suppressUnhandledRejections=function(){var t=this._target();t._bitField=t._bitField&~1048576|524288};t.prototype._ensurePossibleRejectionHandled=function(){if((this._bitField&524288)!==0)return;this._setRejectionIsUnhandled();E(this)};t.prototype._notifyUnhandledRejectionIsHandled=function(){fireRejectionEvent("rejectionHandled",l,undefined,this)};t.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456};t.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0};t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var t=this._settledValue();this._setUnhandledRejectionIsNotified();fireRejectionEvent("unhandledRejection",f,t,this)}};t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144};t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&~262144};t.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0};t.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576};t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&~1048576;if(this._isUnhandledRejectionNotified()){this._unsetUnhandledRejectionIsNotified();this._notifyUnhandledRejectionIsHandled()}};t.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0};t.prototype._warn=function(t,e,n){return warn(t,e,n||this)};t.onPossiblyUnhandledRejection=function(e){var n=t._getContext();f=a.contextBind(n,e)};t.onUnhandledRejectionHandled=function(e){var n=t._getContext();l=a.contextBind(n,e)};var x=function(){};t.longStackTraces=function(){if(s.haveItemsQueued()&&!D.longStackTraces){throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n")}if(!D.longStackTraces&&longStackTracesIsSupported()){var n=t.prototype._captureStackTrace;var r=t.prototype._attachExtraTrace;var i=t.prototype._dereferenceTrace;D.longStackTraces=true;x=function(){if(s.haveItemsQueued()&&!D.longStackTraces){throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n")}t.prototype._captureStackTrace=n;t.prototype._attachExtraTrace=r;t.prototype._dereferenceTrace=i;e.deactivateLongStackTraces();D.longStackTraces=false};t.prototype._captureStackTrace=longStackTracesCaptureStackTrace;t.prototype._attachExtraTrace=longStackTracesAttachExtraTrace;t.prototype._dereferenceTrace=longStackTracesDereferenceTrace;e.activateLongStackTraces()}};t.hasLongStackTraces=function(){return D.longStackTraces&&longStackTracesIsSupported()};var C={unhandledrejection:{before:function(){var t=a.global.onunhandledrejection;a.global.onunhandledrejection=null;return t},after:function(t){a.global.onunhandledrejection=t}},rejectionhandled:{before:function(){var t=a.global.onrejectionhandled;a.global.onrejectionhandled=null;return t},after:function(t){a.global.onrejectionhandled=t}}};var k=function(){var t=function(t,e){if(t){var n;try{n=t.before();return!a.global.dispatchEvent(e)}finally{t.after(n)}}else{return!a.global.dispatchEvent(e)}};try{if(typeof CustomEvent==="function"){var e=new CustomEvent("CustomEvent");a.global.dispatchEvent(e);return function(e,n){e=e.toLowerCase();var r={detail:n,cancelable:true};var i=new CustomEvent(e,r);c.defineProperty(i,"promise",{value:n.promise});c.defineProperty(i,"reason",{value:n.reason});return t(C[e],i)}}else if(typeof Event==="function"){var e=new Event("CustomEvent");a.global.dispatchEvent(e);return function(e,n){e=e.toLowerCase();var r=new Event(e,{cancelable:true});r.detail=n;c.defineProperty(r,"promise",{value:n.promise});c.defineProperty(r,"reason",{value:n.reason});return t(C[e],r)}}else{var e=document.createEvent("CustomEvent");e.initCustomEvent("testingtheevent",false,true,{});a.global.dispatchEvent(e);return function(e,n){e=e.toLowerCase();var r=document.createEvent("CustomEvent");r.initCustomEvent(e,false,true,n);return t(C[e],r)}}}catch(t){}return function(){return false}}();var P=function(){if(a.isNode){return function(){return process.emit.apply(process,arguments)}}else{if(!a.global){return function(){return false}}return function(t){var e="on"+t.toLowerCase();var n=a.global[e];if(!n)return false;n.apply(a.global,[].slice.call(arguments,1));return true}}}();function generatePromiseLifecycleEventObject(t,e){return{promise:e}}var A={promiseCreated:generatePromiseLifecycleEventObject,promiseFulfilled:generatePromiseLifecycleEventObject,promiseRejected:generatePromiseLifecycleEventObject,promiseResolved:generatePromiseLifecycleEventObject,promiseCancelled:generatePromiseLifecycleEventObject,promiseChained:function(t,e,n){return{promise:e,child:n}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,n){return{reason:e,promise:n}},rejectionHandled:generatePromiseLifecycleEventObject};var T=function(t){var e=false;try{e=P.apply(null,arguments)}catch(t){s.throwLater(t);e=true}var n=false;try{n=k(t,A[t].apply(null,arguments))}catch(t){s.throwLater(t);n=true}return n||e};t.config=function(e){e=Object(e);if("longStackTraces"in e){if(e.longStackTraces){t.longStackTraces()}else if(!e.longStackTraces&&t.hasLongStackTraces()){x()}}if("warnings"in e){var n=e.warnings;D.warnings=!!n;S=D.warnings;if(a.isObject(n)){if("wForgottenReturn"in n){S=!!n.wForgottenReturn}}}if("cancellation"in e&&e.cancellation&&!D.cancellation){if(s.haveItemsQueued()){throw new Error("cannot enable cancellation after promises are in use")}t.prototype._clearCancellationData=cancellationClearCancellationData;t.prototype._propagateFrom=cancellationPropagateFrom;t.prototype._onCancel=cancellationOnCancel;t.prototype._setOnCancel=cancellationSetOnCancel;t.prototype._attachCancellationCallback=cancellationAttachCancellationCallback;t.prototype._execute=cancellationExecute;F=cancellationPropagateFrom;D.cancellation=true}if("monitoring"in e){if(e.monitoring&&!D.monitoring){D.monitoring=true;t.prototype._fireEvent=T}else if(!e.monitoring&&D.monitoring){D.monitoring=false;t.prototype._fireEvent=defaultFireEvent}}if("asyncHooks"in e&&a.nodeSupportsAsyncResource){var o=D.asyncHooks;var c=!!e.asyncHooks;if(o!==c){D.asyncHooks=c;if(c){r()}else{i()}}}return t};function defaultFireEvent(){return false}t.prototype._fireEvent=defaultFireEvent;t.prototype._execute=function(t,e,n){try{t(e,n)}catch(t){return t}};t.prototype._onCancel=function(){};t.prototype._setOnCancel=function(t){};t.prototype._attachCancellationCallback=function(t){};t.prototype._captureStackTrace=function(){};t.prototype._attachExtraTrace=function(){};t.prototype._dereferenceTrace=function(){};t.prototype._clearCancellationData=function(){};t.prototype._propagateFrom=function(t,e){};function cancellationExecute(t,e,n){var r=this;try{t(e,n,function(t){if(typeof t!=="function"){throw new TypeError("onCancel must be a function, got: "+a.toString(t))}r._attachCancellationCallback(t)})}catch(t){return t}}function cancellationAttachCancellationCallback(t){if(!this._isCancellable())return this;var e=this._onCancel();if(e!==undefined){if(a.isArray(e)){e.push(t)}else{this._setOnCancel([e,t])}}else{this._setOnCancel(t)}}function cancellationOnCancel(){return this._onCancelField}function cancellationSetOnCancel(t){this._onCancelField=t}function cancellationClearCancellationData(){this._cancellationParent=undefined;this._onCancelField=undefined}function cancellationPropagateFrom(t,e){if((e&1)!==0){this._cancellationParent=t;var n=t._branchesRemainingToCancel;if(n===undefined){n=0}t._branchesRemainingToCancel=n+1}if((e&2)!==0&&t._isBound()){this._setBoundTo(t._boundTo)}}function bindingPropagateFrom(t,e){if((e&2)!==0&&t._isBound()){this._setBoundTo(t._boundTo)}}var F=bindingPropagateFrom;function boundValueFunction(){var e=this._boundTo;if(e!==undefined){if(e instanceof t){if(e.isFulfilled()){return e.value()}else{return undefined}}}return e}function longStackTracesCaptureStackTrace(){this._trace=new CapturedTrace(this._peekContext())}function longStackTracesAttachExtraTrace(t,e){if(u(t)){var n=this._trace;if(n!==undefined){if(e)n=n._parent}if(n!==undefined){n.attachExtraTrace(t)}else if(!t.__stackCleaned__){var r=parseStackAndMessage(t);a.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n"));a.notEnumerableProp(t,"__stackCleaned__",true)}}}function longStackTracesDereferenceTrace(){this._trace=undefined}function checkForgottenReturns(t,e,n,r,i){if(t===undefined&&e!==null&&S){if(i!==undefined&&i._returnedNonUndefined())return;if((r._bitField&65535)===0)return;if(n)n=n+" ";var s="";var o="";if(e._trace){var a=e._trace.stack.split("\n");var c=cleanStack(a);for(var u=c.length-1;u>=0;--u){var l=c[u];if(!p.test(l)){var f=l.match(d);if(f){s="at "+f[1]+":"+f[2]+":"+f[3]+" "}break}}if(c.length>0){var h=c[0];for(var u=0;u<a.length;++u){if(a[u]===h){if(u>0){o="\n"+a[u-1]}break}}}}var y="a promise was created in a "+n+"handler "+s+"but was not returned from it, "+"see http://goo.gl/rRqMUw"+o;r._warn(y,true,e)}}function deprecated(t,e){var n=t+" is deprecated and will be removed in a future version.";if(e)n+=" Use "+e+" instead.";return warn(n)}function warn(e,n,r){if(!D.warnings)return;var i=new o(e);var s;if(n){r._attachExtraTrace(i)}else if(D.longStackTraces&&(s=t._peekContext())){s.attachExtraTrace(i)}else{var a=parseStackAndMessage(i);i.stack=a.message+"\n"+a.stack.join("\n")}if(!T("warning",i)){formatAndLogError(i,"",true)}}function reconstructStack(t,e){for(var n=0;n<e.length-1;++n){e[n].push("From previous event:");e[n]=e[n].join("\n")}if(n<e.length){e[n]=e[n].join("\n")}return t+"\n"+e.join("\n")}function removeDuplicateOrEmptyJumps(t){for(var e=0;e<t.length;++e){if(t[e].length===0||e+1<t.length&&t[e][0]===t[e+1][0]){t.splice(e,1);e--}}}function removeCommonRoots(t){var e=t[0];for(var n=1;n<t.length;++n){var r=t[n];var i=e.length-1;var s=e[i];var o=-1;for(var a=r.length-1;a>=0;--a){if(r[a]===s){o=a;break}}for(var a=o;a>=0;--a){var c=r[a];if(e[i]===c){e.pop();i--}else{break}}e=r}}function cleanStack(t){var e=[];for(var n=0;n<t.length;++n){var r=t[n];var i=" (No stack trace)"===r||y.test(r);var s=i&&j(r);if(i&&!s){if(m&&r.charAt(0)!==" "){r=" "+r}e.push(r)}}return e}function stackFramesAsArray(t){var e=t.stack.replace(/\s+$/g,"").split("\n");for(var n=0;n<e.length;++n){var r=e[n];if(" (No stack trace)"===r||y.test(r)){break}}if(n>0&&t.name!="SyntaxError"){e=e.slice(n)}return e}function parseStackAndMessage(t){var e=t.stack;var n=t.toString();e=typeof e==="string"&&e.length>0?stackFramesAsArray(t):[" (No stack trace)"];return{message:n,stack:t.name=="SyntaxError"?e:cleanStack(e)}}function formatAndLogError(t,e,n){if(typeof console!=="undefined"){var r;if(a.isObject(t)){var i=t.stack;r=e+_(i,t)}else{r=e+String(t)}if(typeof g==="function"){g(r,n)}else if(typeof console.log==="function"||typeof console.log==="object"){console.log(r)}}}function fireRejectionEvent(t,e,n,r){var i=false;try{if(typeof e==="function"){i=true;if(t==="rejectionHandled"){e(r)}else{e(n,r)}}}catch(t){s.throwLater(t)}if(t==="unhandledRejection"){if(!T(t,n,r)&&!i){formatAndLogError(n,"Unhandled rejection ")}}else{T(t,r)}}function formatNonError(t){var e;if(typeof t==="function"){e="[function "+(t.name||"anonymous")+"]"}else{e=t&&typeof t.toString==="function"?t.toString():a.toString(t);var n=/\[object [a-zA-Z0-9$_]+\]/;if(n.test(e)){try{var r=JSON.stringify(t);e=r}catch(t){}}if(e.length===0){e="(empty array)"}}return"(<"+snip(e)+">, no stack trace)"}function snip(t){var e=41;if(t.length<e){return t}return t.substr(0,e-3)+"..."}function longStackTracesIsSupported(){return typeof O==="function"}var j=function(){return false};var R=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function parseLineInfo(t){var e=t.match(R);if(e){return{fileName:e[1],line:parseInt(e[2],10)}}}function setBounds(t,e){if(!longStackTracesIsSupported())return;var n=(t.stack||"").split("\n");var r=(e.stack||"").split("\n");var i=-1;var s=-1;var o;var a;for(var c=0;c<n.length;++c){var u=parseLineInfo(n[c]);if(u){o=u.fileName;i=u.line;break}}for(var c=0;c<r.length;++c){var u=parseLineInfo(r[c]);if(u){a=u.fileName;s=u.line;break}}if(i<0||s<0||!o||!a||o!==a||i>=s){return}j=function(t){if(h.test(t))return true;var e=parseLineInfo(t);if(e){if(e.fileName===o&&(i<=e.line&&e.line<=s)){return true}}return false}}function CapturedTrace(t){this._parent=t;this._promisesCreated=0;var e=this._length=1+(t===undefined?0:t._length);O(this,CapturedTrace);if(e>32)this.uncycle()}a.inherits(CapturedTrace,Error);e.CapturedTrace=CapturedTrace;CapturedTrace.prototype.uncycle=function(){var t=this._length;if(t<2)return;var e=[];var n={};for(var r=0,i=this;i!==undefined;++r){e.push(i);i=i._parent}t=this._length=r;for(var r=t-1;r>=0;--r){var s=e[r].stack;if(n[s]===undefined){n[s]=r}}for(var r=0;r<t;++r){var o=e[r].stack;var a=n[o];if(a!==undefined&&a!==r){if(a>0){e[a-1]._parent=undefined;e[a-1]._length=1}e[r]._parent=undefined;e[r]._length=1;var c=r>0?e[r-1]:this;if(a<t-1){c._parent=e[a+1];c._parent.uncycle();c._length=c._parent._length+1}else{c._parent=undefined;c._length=1}var u=c._length+1;for(var l=r-2;l>=0;--l){e[l]._length=u;u++}return}}};CapturedTrace.prototype.attachExtraTrace=function(t){if(t.__stackCleaned__)return;this.uncycle();var e=parseStackAndMessage(t);var n=e.message;var r=[e.stack];var i=this;while(i!==undefined){r.push(cleanStack(i.stack.split("\n")));i=i._parent}removeCommonRoots(r);removeDuplicateOrEmptyJumps(r);a.notEnumerableProp(t,"stack",reconstructStack(n,r));a.notEnumerableProp(t,"__stackCleaned__",true)};var O=function stackDetection(){var t=/^\s*at\s*/;var e=function(t,e){if(typeof t==="string")return t;if(e.name!==undefined&&e.message!==undefined){return e.toString()}return formatNonError(e)};if(typeof Error.stackTraceLimit==="number"&&typeof Error.captureStackTrace==="function"){Error.stackTraceLimit+=6;y=t;_=e;var n=Error.captureStackTrace;j=function(t){return h.test(t)};return function(t,e){Error.stackTraceLimit+=6;n(t,e);Error.stackTraceLimit-=6}}var r=new Error;if(typeof r.stack==="string"&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0){y=/@/;_=e;m=true;return function captureStackTrace(t){t.stack=(new Error).stack}}var i;try{throw new Error}catch(t){i="stack"in t}if(!("stack"in r)&&i&&typeof Error.stackTraceLimit==="number"){y=t;_=e;return function captureStackTrace(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6}}_=function(t,e){if(typeof t==="string")return t;if((typeof e==="object"||typeof e==="function")&&e.name!==undefined&&e.message!==undefined){return e.toString()}return formatNonError(e)};return null}([]);if(typeof console!=="undefined"&&typeof console.warn!=="undefined"){g=function(t){console.warn(t)};if(a.isNode&&process.stderr.isTTY){g=function(t,e){var n=e?"[33m":"[31m";console.warn(n+t+"[0m\n")}}else if(!a.isNode&&typeof(new Error).stack==="string"){g=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}}}var D={warnings:w,longStackTraces:false,cancellation:false,monitoring:false,asyncHooks:false};if(b)t.longStackTraces();return{asyncHooks:function(){return D.asyncHooks},longStackTraces:function(){return D.longStackTraces},warnings:function(){return D.warnings},cancellation:function(){return D.cancellation},monitoring:function(){return D.monitoring},propagateFromFunction:function(){return F},boundValueFunction:function(){return boundValueFunction},checkForgottenReturns:checkForgottenReturns,setBounds:setBounds,warn:warn,deprecated:deprecated,CapturedTrace:CapturedTrace,fireDomEvent:k,fireGlobalEvent:P}}},8277:t=>{"use strict";t.exports=function(t){function returner(){return this.value}function thrower(){throw this.reason}t.prototype["return"]=t.prototype.thenReturn=function(e){if(e instanceof t)e.suppressUnhandledRejections();return this._then(returner,undefined,undefined,{value:e},undefined)};t.prototype["throw"]=t.prototype.thenThrow=function(t){return this._then(thrower,undefined,undefined,{reason:t},undefined)};t.prototype.catchThrow=function(t){if(arguments.length<=1){return this._then(undefined,thrower,undefined,{reason:t},undefined)}else{var e=arguments[1];var n=function(){throw e};return this.caught(t,n)}};t.prototype.catchReturn=function(e){if(arguments.length<=1){if(e instanceof t)e.suppressUnhandledRejections();return this._then(undefined,returner,undefined,{value:e},undefined)}else{var n=arguments[1];if(n instanceof t)n.suppressUnhandledRejections();var r=function(){return n};return this.caught(e,r)}}}},838:t=>{"use strict";t.exports=function(t,e){var n=t.reduce;var r=t.all;function promiseAllThis(){return r(this)}function PromiseMapSeries(t,r){return n(t,r,e,e)}t.prototype.each=function(t){return n(this,t,e,0)._then(promiseAllThis,undefined,undefined,this,undefined)};t.prototype.mapSeries=function(t){return n(this,t,e,e)};t.each=function(t,r){return n(t,r,e,0)._then(promiseAllThis,undefined,undefined,t,undefined)};t.mapSeries=PromiseMapSeries}},5816:(t,e,n)=>{"use strict";var r=n(3062);var i=r.freeze;var s=n(7448);var o=s.inherits;var a=s.notEnumerableProp;function subError(t,e){function SubError(n){if(!(this instanceof SubError))return new SubError(n);a(this,"message",typeof n==="string"?n:e);a(this,"name",t);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{Error.call(this)}}o(SubError,Error);return SubError}var c,u;var l=subError("Warning","warning");var f=subError("CancellationError","cancellation error");var h=subError("TimeoutError","timeout error");var p=subError("AggregateError","aggregate error");try{c=TypeError;u=RangeError}catch(t){c=subError("TypeError","type error");u=subError("RangeError","range error")}var d=("join pop push shift unshift slice filter forEach some "+"every map indexOf lastIndexOf reduce reduceRight sort reverse").split(" ");for(var y=0;y<d.length;++y){if(typeof Array.prototype[d[y]]==="function"){p.prototype[d[y]]=Array.prototype[d[y]]}}r.defineProperty(p.prototype,"length",{value:0,configurable:false,writable:true,enumerable:true});p.prototype["isOperational"]=true;var _=0;p.prototype.toString=function(){var t=Array(_*4+1).join(" ");var e="\n"+t+"AggregateError of:"+"\n";_++;t=Array(_*4+1).join(" ");for(var n=0;n<this.length;++n){var r=this[n]===this?"[Circular AggregateError]":this[n]+"";var i=r.split("\n");for(var s=0;s<i.length;++s){i[s]=t+i[s]}r=i.join("\n");e+=r+"\n"}_--;return e};function OperationalError(t){if(!(this instanceof OperationalError))return new OperationalError(t);a(this,"name","OperationalError");a(this,"message",t);this.cause=t;this["isOperational"]=true;if(t instanceof Error){a(this,"message",t.message);a(this,"stack",t.stack)}else if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}o(OperationalError,Error);var m=Error["__BluebirdErrorTypes__"];if(!m){m=i({CancellationError:f,TimeoutError:h,OperationalError:OperationalError,RejectionError:OperationalError,AggregateError:p});r.defineProperty(Error,"__BluebirdErrorTypes__",{value:m,writable:false,enumerable:false,configurable:false})}t.exports={Error:Error,TypeError:c,RangeError:u,CancellationError:m.CancellationError,OperationalError:m.OperationalError,TimeoutError:m.TimeoutError,AggregateError:m.AggregateError,Warning:l}},3062:t=>{var e=function(){"use strict";return this===undefined}();if(e){t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:e,propertyIsWritable:function(t,e){var n=Object.getOwnPropertyDescriptor(t,e);return!!(!n||n.writable||n.set)}}}else{var n={}.hasOwnProperty;var r={}.toString;var i={}.constructor.prototype;var s=function(t){var e=[];for(var r in t){if(n.call(t,r)){e.push(r)}}return e};var o=function(t,e){return{value:t[e]}};var a=function(t,e,n){t[e]=n.value;return t};var c=function(t){return t};var u=function(t){try{return Object(t).constructor.prototype}catch(t){return i}};var l=function(t){try{return r.call(t)==="[object Array]"}catch(t){return false}};t.exports={isArray:l,keys:s,names:s,defineProperty:a,getDescriptor:o,freeze:c,getPrototypeOf:u,isES5:e,propertyIsWritable:function(){return true}}}},2223:t=>{"use strict";t.exports=function(t,e){var n=t.map;t.prototype.filter=function(t,r){return n(this,t,r,e)};t.filter=function(t,r,i){return n(t,r,i,e)}}},7304:(t,e,n)=>{"use strict";t.exports=function(t,e,r){var i=n(7448);var s=t.CancellationError;var o=i.errorObj;var a=n(8985)(r);function PassThroughHandlerContext(t,e,n){this.promise=t;this.type=e;this.handler=n;this.called=false;this.cancelPromise=null}PassThroughHandlerContext.prototype.isFinallyHandler=function(){return this.type===0};function FinallyHandlerCancelReaction(t){this.finallyHandler=t}FinallyHandlerCancelReaction.prototype._resultCancelled=function(){checkCancel(this.finallyHandler)};function checkCancel(t,e){if(t.cancelPromise!=null){if(arguments.length>1){t.cancelPromise._reject(e)}else{t.cancelPromise._cancel()}t.cancelPromise=null;return true}return false}function succeed(){return finallyHandler.call(this,this.promise._target()._settledValue())}function fail(t){if(checkCancel(this,t))return;o.e=t;return o}function finallyHandler(n){var i=this.promise;var a=this.handler;if(!this.called){this.called=true;var c=this.isFinallyHandler()?a.call(i._boundValue()):a.call(i._boundValue(),n);if(c===r){return c}else if(c!==undefined){i._setReturnedNonUndefined();var u=e(c,i);if(u instanceof t){if(this.cancelPromise!=null){if(u._isCancelled()){var l=new s("late cancellation observer");i._attachExtraTrace(l);o.e=l;return o}else if(u.isPending()){u._attachCancellationCallback(new FinallyHandlerCancelReaction(this))}}return u._then(succeed,fail,undefined,this,undefined)}}}if(i.isRejected()){checkCancel(this);o.e=n;return o}else{checkCancel(this);return n}}t.prototype._passThrough=function(t,e,n,r){if(typeof t!=="function")return this.then();return this._then(n,r,undefined,new PassThroughHandlerContext(this,e,t),undefined)};t.prototype.lastly=t.prototype["finally"]=function(t){return this._passThrough(t,0,finallyHandler,finallyHandler)};t.prototype.tap=function(t){return this._passThrough(t,1,finallyHandler)};t.prototype.tapCatch=function(e){var n=arguments.length;if(n===1){return this._passThrough(e,1,undefined,finallyHandler)}else{var r=new Array(n-1),s=0,o;for(o=0;o<n-1;++o){var c=arguments[o];if(i.isObject(c)){r[s++]=c}else{return t.reject(new TypeError("tapCatch statement predicate: "+"expecting an object but got "+i.classString(c)))}}r.length=s;var u=arguments[o];return this._passThrough(a(r,u,this),1,undefined,finallyHandler)}};return PassThroughHandlerContext}},8619:(t,e,n)=>{"use strict";t.exports=function(t,e,r,i,s,o){var a=n(5816);var c=a.TypeError;var u=n(7448);var l=u.errorObj;var f=u.tryCatch;var h=[];function promiseFromYieldHandler(e,n,r){for(var s=0;s<n.length;++s){r._pushContext();var o=f(n[s])(e);r._popContext();if(o===l){r._pushContext();var a=t.reject(l.e);r._popContext();return a}var c=i(o,r);if(c instanceof t)return c}return null}function PromiseSpawn(e,n,i,s){if(o.cancellation()){var a=new t(r);var c=this._finallyPromise=new t(r);this._promise=a.lastly(function(){return c});a._captureStackTrace();a._setOnCancel(this)}else{var u=this._promise=new t(r);u._captureStackTrace()}this._stack=s;this._generatorFunction=e;this._receiver=n;this._generator=undefined;this._yieldHandlers=typeof i==="function"?[i].concat(h):h;this._yieldedPromise=null;this._cancellationPhase=false}u.inherits(PromiseSpawn,s);PromiseSpawn.prototype._isResolved=function(){return this._promise===null};PromiseSpawn.prototype._cleanup=function(){this._promise=this._generator=null;if(o.cancellation()&&this._finallyPromise!==null){this._finallyPromise._fulfill();this._finallyPromise=null}};PromiseSpawn.prototype._promiseCancelled=function(){if(this._isResolved())return;var e=typeof this._generator["return"]!=="undefined";var n;if(!e){var r=new t.CancellationError("generator .return() sentinel");t.coroutine.returnSentinel=r;this._promise._attachExtraTrace(r);this._promise._pushContext();n=f(this._generator["throw"]).call(this._generator,r);this._promise._popContext()}else{this._promise._pushContext();n=f(this._generator["return"]).call(this._generator,undefined);this._promise._popContext()}this._cancellationPhase=true;this._yieldedPromise=null;this._continue(n)};PromiseSpawn.prototype._promiseFulfilled=function(t){this._yieldedPromise=null;this._promise._pushContext();var e=f(this._generator.next).call(this._generator,t);this._promise._popContext();this._continue(e)};PromiseSpawn.prototype._promiseRejected=function(t){this._yieldedPromise=null;this._promise._attachExtraTrace(t);this._promise._pushContext();var e=f(this._generator["throw"]).call(this._generator,t);this._promise._popContext();this._continue(e)};PromiseSpawn.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof t){var e=this._yieldedPromise;this._yieldedPromise=null;e.cancel()}};PromiseSpawn.prototype.promise=function(){return this._promise};PromiseSpawn.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver);this._receiver=this._generatorFunction=undefined;this._promiseFulfilled(undefined)};PromiseSpawn.prototype._continue=function(e){var n=this._promise;if(e===l){this._cleanup();if(this._cancellationPhase){return n.cancel()}else{return n._rejectCallback(e.e,false)}}var r=e.value;if(e.done===true){this._cleanup();if(this._cancellationPhase){return n.cancel()}else{return n._resolveCallback(r)}}else{var s=i(r,this._promise);if(!(s instanceof t)){s=promiseFromYieldHandler(s,this._yieldHandlers,this._promise);if(s===null){this._promiseRejected(new c("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",String(r))+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));return}}s=s._target();var o=s._bitField;if((o&50397184)===0){this._yieldedPromise=s;s._proxy(this,null)}else if((o&33554432)!==0){t._async.invoke(this._promiseFulfilled,this,s._value())}else if((o&16777216)!==0){t._async.invoke(this._promiseRejected,this,s._reason())}else{this._promiseCancelled()}}};t.coroutine=function(t,e){if(typeof t!=="function"){throw new c("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n")}var n=Object(e).yieldHandler;var r=PromiseSpawn;var i=(new Error).stack;return function(){var e=t.apply(this,arguments);var s=new r(undefined,undefined,n,i);var o=s.promise();s._generator=e;s._promiseFulfilled(undefined);return o}};t.coroutine.addYieldHandler=function(t){if(typeof t!=="function"){throw new c("expecting a function but got "+u.classString(t))}h.push(t)};t.spawn=function(n){o.deprecated("Promise.spawn()","Promise.coroutine()");if(typeof n!=="function"){return e("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n")}var r=new PromiseSpawn(n,this);var i=r.promise();r._run(t.spawn);return i}}},5248:(t,e,n)=>{"use strict";t.exports=function(t,e,r,i,s){var o=n(7448);var a=o.canEvaluate;var c=o.tryCatch;var u=o.errorObj;var l;if(true){if(a){var f=function(t){return new Function("value","holder"," \n 'use strict'; \n holder.pIndex = value; \n holder.checkFulfillment(this); \n ".replace(/Index/g,t))};var h=function(t){return new Function("promise","holder"," \n 'use strict'; \n holder.pIndex = promise; \n ".replace(/Index/g,t))};var p=function(e){var n=new Array(e);for(var r=0;r<n.length;++r){n[r]="this.p"+(r+1)}var i=n.join(" = ")+" = null;";var o="var promise;\n"+n.map(function(t){return" \n promise = "+t+"; \n if (promise instanceof Promise) { \n promise.cancel(); \n } \n "}).join("\n");var a=n.join(", ");var l="Holder$"+e;var f="return function(tryCatch, errorObj, Promise, async) { \n 'use strict'; \n function [TheName](fn) { \n [TheProperties] \n this.fn = fn; \n this.asyncNeeded = true; \n this.now = 0; \n } \n \n [TheName].prototype._callFunction = function(promise) { \n promise._pushContext(); \n var ret = tryCatch(this.fn)([ThePassedArguments]); \n promise._popContext(); \n if (ret === errorObj) { \n promise._rejectCallback(ret.e, false); \n } else { \n promise._resolveCallback(ret); \n } \n }; \n \n [TheName].prototype.checkFulfillment = function(promise) { \n var now = ++this.now; \n if (now === [TheTotal]) { \n if (this.asyncNeeded) { \n async.invoke(this._callFunction, this, promise); \n } else { \n this._callFunction(promise); \n } \n \n } \n }; \n \n [TheName].prototype._resultCancelled = function() { \n [CancellationCode] \n }; \n \n return [TheName]; \n }(tryCatch, errorObj, Promise, async); \n ";f=f.replace(/\[TheName\]/g,l).replace(/\[TheTotal\]/g,e).replace(/\[ThePassedArguments\]/g,a).replace(/\[TheProperties\]/g,i).replace(/\[CancellationCode\]/g,o);return new Function("tryCatch","errorObj","Promise","async",f)(c,u,t,s)};var d=[];var y=[];var _=[];for(var m=0;m<8;++m){d.push(p(m+1));y.push(f(m+1));_.push(h(m+1))}l=function(t){this._reject(t)}}}t.join=function(){var n=arguments.length-1;var s;if(n>0&&typeof arguments[n]==="function"){s=arguments[n];if(true){if(n<=8&&a){var c=new t(i);c._captureStackTrace();var u=d[n-1];var f=new u(s);var h=y;for(var p=0;p<n;++p){var m=r(arguments[p],c);if(m instanceof t){m=m._target();var g=m._bitField;if((g&50397184)===0){m._then(h[p],l,undefined,c,f);_[p](m,f);f.asyncNeeded=false}else if((g&33554432)!==0){h[p].call(c,m._value(),f)}else if((g&16777216)!==0){c._reject(m._reason())}else{c._cancel()}}else{h[p].call(c,m,f)}}if(!c._isFateSealed()){if(f.asyncNeeded){var v=t._getContext();f.fn=o.contextBind(v,f.fn)}c._setAsyncGuaranteed();c._setOnCancel(f)}return c}}}var w=arguments.length;var b=new Array(w);for(var S=0;S<w;++S){b[S]=arguments[S]}if(s)b.pop();var c=new e(b).promise();return s!==undefined?c.spread(s):c}}},8150:(t,e,n)=>{"use strict";t.exports=function(t,e,r,i,s,o){var a=n(7448);var c=a.tryCatch;var u=a.errorObj;var l=t._async;function MappingPromiseArray(e,n,r,i){this.constructor$(e);this._promise._captureStackTrace();var o=t._getContext();this._callback=a.contextBind(o,n);this._preservedValues=i===s?new Array(this.length()):null;this._limit=r;this._inFlight=0;this._queue=[];l.invoke(this._asyncInit,this,undefined);if(a.isArray(e)){for(var c=0;c<e.length;++c){var u=e[c];if(u instanceof t){u.suppressUnhandledRejections()}}}}a.inherits(MappingPromiseArray,e);MappingPromiseArray.prototype._asyncInit=function(){this._init$(undefined,-2)};MappingPromiseArray.prototype._init=function(){};MappingPromiseArray.prototype._promiseFulfilled=function(e,n){var r=this._values;var s=this.length();var a=this._preservedValues;var l=this._limit;if(n<0){n=n*-1-1;r[n]=e;if(l>=1){this._inFlight--;this._drainQueue();if(this._isResolved())return true}}else{if(l>=1&&this._inFlight>=l){r[n]=e;this._queue.push(n);return false}if(a!==null)a[n]=e;var f=this._promise;var h=this._callback;var p=f._boundValue();f._pushContext();var d=c(h).call(p,e,n,s);var y=f._popContext();o.checkForgottenReturns(d,y,a!==null?"Promise.filter":"Promise.map",f);if(d===u){this._reject(d.e);return true}var _=i(d,this._promise);if(_ instanceof t){_=_._target();var m=_._bitField;if((m&50397184)===0){if(l>=1)this._inFlight++;r[n]=_;_._proxy(this,(n+1)*-1);return false}else if((m&33554432)!==0){d=_._value()}else if((m&16777216)!==0){this._reject(_._reason());return true}else{this._cancel();return true}}r[n]=d}var g=++this._totalResolved;if(g>=s){if(a!==null){this._filter(r,a)}else{this._resolve(r)}return true}return false};MappingPromiseArray.prototype._drainQueue=function(){var t=this._queue;var e=this._limit;var n=this._values;while(t.length>0&&this._inFlight<e){if(this._isResolved())return;var r=t.pop();this._promiseFulfilled(n[r],r)}};MappingPromiseArray.prototype._filter=function(t,e){var n=e.length;var r=new Array(n);var i=0;for(var s=0;s<n;++s){if(t[s])r[i++]=e[s]}r.length=i;this._resolve(r)};MappingPromiseArray.prototype.preservedValues=function(){return this._preservedValues};function map(e,n,i,s){if(typeof n!=="function"){return r("expecting a function but got "+a.classString(n))}var o=0;if(i!==undefined){if(typeof i==="object"&&i!==null){if(typeof i.concurrency!=="number"){return t.reject(new TypeError("'concurrency' must be a number but it is "+a.classString(i.concurrency)))}o=i.concurrency}else{return t.reject(new TypeError("options argument must be an object but it is "+a.classString(i)))}}o=typeof o==="number"&&isFinite(o)&&o>=1?o:0;return new MappingPromiseArray(e,n,o,s).promise()}t.prototype.map=function(t,e){return map(this,t,e,null)};t.map=function(t,e,n,r){return map(t,e,n,r)}}},7415:(t,e,n)=>{"use strict";t.exports=function(t,e,r,i,s){var o=n(7448);var a=o.tryCatch;t.method=function(n){if(typeof n!=="function"){throw new t.TypeError("expecting a