@umijs/utils 4.0.0-beta.6 → 4.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiled/axios/index.d.ts +12 -12
- package/compiled/axios/index.js +1 -1
- package/compiled/chalk/index.js +1 -1
- package/compiled/color/color-convert/conversions.d.ts +87 -87
- package/compiled/color/color-convert/index.d.ts +75 -60
- package/compiled/color/color-convert/route.d.ts +271 -271
- package/compiled/color/index.d.ts +116 -121
- package/compiled/color/index.js +1 -1
- package/compiled/color/package.json +1 -4
- package/compiled/debug/LICENSE +10 -9
- package/compiled/debug/index.js +1 -1
- package/compiled/debug/package.json +1 -1
- package/compiled/prettier/index.d.ts +568 -679
- package/compiled/prettier/index.js +62 -274
- package/compiled/prettier/package.json +1 -5
- package/compiled/yargs-parser/index.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/isStyleFile.d.ts +5 -0
- package/dist/isStyleFile.js +16 -0
- package/dist/logger.d.ts +8 -6
- package/dist/logger.js +8 -1
- package/dist/register.js +1 -0
- package/dist/tryPaths.d.ts +1 -0
- package/dist/tryPaths.js +11 -0
- package/package.json +20 -20
|
@@ -15,7 +15,7 @@ export interface AxiosResponseTransformer {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export interface AxiosAdapter {
|
|
18
|
-
(config: AxiosRequestConfig): AxiosPromise
|
|
18
|
+
(config: AxiosRequestConfig): AxiosPromise;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export interface AxiosBasicCredentials {
|
|
@@ -112,7 +112,7 @@ export interface AxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'hea
|
|
|
112
112
|
headers: HeadersDefaults;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
export interface AxiosResponse<T =
|
|
115
|
+
export interface AxiosResponse<T = any, D = any> {
|
|
116
116
|
data: T;
|
|
117
117
|
status: number;
|
|
118
118
|
statusText: string;
|
|
@@ -121,7 +121,7 @@ export interface AxiosResponse<T = unknown, D = any> {
|
|
|
121
121
|
request?: any;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
export interface AxiosError<T =
|
|
124
|
+
export interface AxiosError<T = any, D = any> extends Error {
|
|
125
125
|
config: AxiosRequestConfig<D>;
|
|
126
126
|
code?: string;
|
|
127
127
|
request?: any;
|
|
@@ -130,7 +130,7 @@ export interface AxiosError<T = unknown, D = any> extends Error {
|
|
|
130
130
|
toJSON: () => object;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
export interface AxiosPromise<T =
|
|
133
|
+
export interface AxiosPromise<T = any> extends Promise<AxiosResponse<T>> {
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
export interface CancelStatic {
|
|
@@ -174,14 +174,14 @@ export class Axios {
|
|
|
174
174
|
response: AxiosInterceptorManager<AxiosResponse>;
|
|
175
175
|
};
|
|
176
176
|
getUri(config?: AxiosRequestConfig): string;
|
|
177
|
-
request<T =
|
|
178
|
-
get<T =
|
|
179
|
-
delete<T =
|
|
180
|
-
head<T =
|
|
181
|
-
options<T =
|
|
182
|
-
post<T =
|
|
183
|
-
put<T =
|
|
184
|
-
patch<T =
|
|
177
|
+
request<T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>;
|
|
178
|
+
get<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
|
|
179
|
+
delete<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
|
|
180
|
+
head<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
|
|
181
|
+
options<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
|
|
182
|
+
post<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
|
|
183
|
+
put<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
|
|
184
|
+
patch<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
export interface AxiosInstance extends Axios {
|
package/compiled/axios/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){var e={120:function(e,t,r){e.exports=r(103)},562:function(e,t,r){"use strict";var n=r(590);var o=r(415);var i=r(138);var s=r(323);var a=r(605);var u=r(211);var f=r(886).http;var c=r(886).https;var l=r(835);var d=r(761);var p=r(278).version;var h=r(451);var m=r(398);var v=r(661);var g=r(85);var y=/https:?/;function setProxy(e,t,r){e.hostname=t.host;e.host=t.host;e.port=t.port;e.path=r;if(t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function beforeRedirect(e){e.headers.host=e.host;setProxy(e,t,e.href)}}e.exports=function httpAdapter(e){return new Promise((function dispatchHttpRequest(t,r){var b;function done(){if(e.cancelToken){e.cancelToken.unsubscribe(b)}if(e.signal){e.signal.removeEventListener("abort",b)}}var R=function resolve(e){done();t(e)};var _=function reject(e){done();r(e)};var E=e.data;var x=e.headers;var w={};Object.keys(x).forEach((function storeLowerName(e){w[e.toLowerCase()]=e}));if("user-agent"in w){if(!x[w["user-agent"]]){delete x[w["user-agent"]]}}else{x["User-Agent"]="axios/"+p}if(E&&!n.isStream(E)){if(Buffer.isBuffer(E)){}else if(n.isArrayBuffer(E)){E=Buffer.from(new Uint8Array(E))}else if(n.isString(E)){E=Buffer.from(E,"utf-8")}else{return _(h("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e))}if(!w["content-length"]){x["Content-Length"]=E.length}}var T=undefined;if(e.auth){var C=e.auth.username||"";var q=e.auth.password||"";T=C+":"+q}var O=i(e.baseURL,e.url);var S=l.parse(O);var A=S.protocol||"http:";if(!T&&S.auth){var B=S.auth.split(":");var j=B[0]||"";var U=B[1]||"";T=j+":"+U}if(T&&w.authorization){delete x[w.authorization]}var L=y.test(A);var N=L?e.httpsAgent:e.httpAgent;var P={path:s(S.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:x,agent:N,agents:{http:e.httpAgent,https:e.httpsAgent},auth:T};if(e.socketPath){P.socketPath=e.socketPath}else{P.hostname=S.hostname;P.port=S.port}var k=e.proxy;if(!k&&k!==false){var D=A.slice(0,-1)+"_proxy";var M=process.env[D]||process.env[D.toUpperCase()];if(M){var I=l.parse(M);var H=process.env.no_proxy||process.env.NO_PROXY;var F=true;if(H){var z=H.split(",").map((function trim(e){return e.trim()}));F=!z.some((function proxyMatch(e){if(!e){return false}if(e==="*"){return true}if(e[0]==="."&&S.hostname.substr(S.hostname.length-e.length)===e){return true}return S.hostname===e}))}if(F){k={host:I.hostname,port:I.port,protocol:I.protocol};if(I.auth){var V=I.auth.split(":");k.auth={username:V[0],password:V[1]}}}}}if(k){P.headers.host=S.hostname+(S.port?":"+S.port:"");setProxy(P,k,A+"//"+S.hostname+(S.port?":"+S.port:"")+P.path)}var J;var W=L&&(k?y.test(k.protocol):true);if(e.transport){J=e.transport}else if(e.maxRedirects===0){J=W?u:a}else{if(e.maxRedirects){P.maxRedirects=e.maxRedirects}J=W?c:f}if(e.maxBodyLength>-1){P.maxBodyLength=e.maxBodyLength}if(e.insecureHTTPParser){P.insecureHTTPParser=e.insecureHTTPParser}var X=J.request(P,(function handleResponse(t){if(X.aborted)return;var r=t;var i=t.req||X;if(t.statusCode!==204&&i.method!=="HEAD"&&e.decompress!==false){switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(d.createUnzip());delete t.headers["content-encoding"];break}}var s={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:i};if(e.responseType==="stream"){s.data=r;o(R,_,s)}else{var a=[];var u=0;r.on("data",(function handleStreamData(t){a.push(t);u+=t.length;if(e.maxContentLength>-1&&u>e.maxContentLength){r.destroy();_(h("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,i))}}));r.on("error",(function handleStreamError(t){if(X.aborted)return;_(m(t,e,null,i))}));r.on("end",(function handleStreamEnd(){var t=Buffer.concat(a);if(e.responseType!=="arraybuffer"){t=t.toString(e.responseEncoding);if(!e.responseEncoding||e.responseEncoding==="utf8"){t=n.stripBOM(t)}}s.data=t;o(R,_,s)}))}}));X.on("error",(function handleRequestError(t){if(X.aborted&&t.code!=="ERR_FR_TOO_MANY_REDIRECTS")return;_(m(t,e,null,X))}));if(e.timeout){var $=parseInt(e.timeout,10);if(isNaN($)){_(h("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",X));return}X.setTimeout($,(function handleRequestTimeout(){X.abort();var t=e.transitional||v.transitional;_(h("timeout of "+$+"ms exceeded",e,t.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",X))}))}if(e.cancelToken||e.signal){b=function(e){if(X.aborted)return;X.abort();_(!e||e&&e.type?new g("canceled"):e)};e.cancelToken&&e.cancelToken.subscribe(b);if(e.signal){e.signal.aborted?b():e.signal.addEventListener("abort",b)}}if(n.isStream(E)){E.on("error",(function handleStreamError(t){_(m(t,e,null,X))})).pipe(X)}else{X.end(E)}}))}},974:function(e,t,r){"use strict";var n=r(590);var o=r(415);var i=r(51);var s=r(323);var a=r(138);var u=r(124);var f=r(450);var c=r(451);var l=r(661);var d=r(85);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,r){var p=e.data;var h=e.headers;var m=e.responseType;var v;function done(){if(e.cancelToken){e.cancelToken.unsubscribe(v)}if(e.signal){e.signal.removeEventListener("abort",v)}}if(n.isFormData(p)){delete h["Content-Type"]}var g=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"";var b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(y+":"+b)}var R=a(e.baseURL,e.url);g.open(e.method.toUpperCase(),s(R,e.params,e.paramsSerializer),true);g.timeout=e.timeout;function onloadend(){if(!g){return}var n="getAllResponseHeaders"in g?u(g.getAllResponseHeaders()):null;var i=!m||m==="text"||m==="json"?g.responseText:g.response;var s={data:i,status:g.status,statusText:g.statusText,headers:n,config:e,request:g};o((function _resolve(e){t(e);done()}),(function _reject(e){r(e);done()}),s);g=null}if("onloadend"in g){g.onloadend=onloadend}else{g.onreadystatechange=function handleLoad(){if(!g||g.readyState!==4){return}if(g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)){return}setTimeout(onloadend)}}g.onabort=function handleAbort(){if(!g){return}r(c("Request aborted",e,"ECONNABORTED",g));g=null};g.onerror=function handleError(){r(c("Network Error",e,null,g));g=null};g.ontimeout=function handleTimeout(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";var n=e.transitional||l.transitional;if(e.timeoutErrorMessage){t=e.timeoutErrorMessage}r(c(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g));g=null};if(n.isStandardBrowserEnv()){var _=(e.withCredentials||f(R))&&e.xsrfCookieName?i.read(e.xsrfCookieName):undefined;if(_){h[e.xsrfHeaderName]=_}}if("setRequestHeader"in g){n.forEach(h,(function setRequestHeader(e,t){if(typeof p==="undefined"&&t.toLowerCase()==="content-type"){delete h[t]}else{g.setRequestHeader(t,e)}}))}if(!n.isUndefined(e.withCredentials)){g.withCredentials=!!e.withCredentials}if(m&&m!=="json"){g.responseType=e.responseType}if(typeof e.onDownloadProgress==="function"){g.addEventListener("progress",e.onDownloadProgress)}if(typeof e.onUploadProgress==="function"&&g.upload){g.upload.addEventListener("progress",e.onUploadProgress)}if(e.cancelToken||e.signal){v=function(e){if(!g){return}r(!e||e&&e.type?new d("canceled"):e);g.abort();g=null};e.cancelToken&&e.cancelToken.subscribe(v);if(e.signal){e.signal.aborted?v():e.signal.addEventListener("abort",v)}}if(!p){p=null}g.send(p)}))}},103:function(e,t,r){"use strict";var n=r(590);var o=r(733);var i=r(100);var s=r(135);var a=r(661);function createInstance(e){var t=new i(e);var r=o(i.prototype.request,t);n.extend(r,i.prototype,t);n.extend(r,t);r.create=function create(t){return createInstance(s(e,t))};return r}var u=createInstance(a);u.Axios=i;u.Cancel=r(85);u.CancelToken=r(471);u.isCancel=r(928);u.VERSION=r(278).version;u.all=function all(e){return Promise.all(e)};u.spread=r(50);u.isAxiosError=r(223);e.exports=u;e.exports.default=u},85:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")};Cancel.prototype.__CANCEL__=true;e.exports=Cancel},471:function(e,t,r){"use strict";var n=r(85);function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise((function promiseExecutor(e){t=e}));var r=this;this.promise.then((function(e){if(!r._listeners)return;var t;var n=r._listeners.length;for(t=0;t<n;t++){r._listeners[t](e)}r._listeners=null}));this.promise.then=function(e){var t;var n=new Promise((function(e){r.subscribe(e);t=e})).then(e);n.cancel=function reject(){r.unsubscribe(t)};return n};e((function cancel(e){if(r.reason){return}r.reason=new n(e);t(r.reason)}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason){throw this.reason}};CancelToken.prototype.subscribe=function subscribe(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}};CancelToken.prototype.unsubscribe=function unsubscribe(e){if(!this._listeners){return}var t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}};CancelToken.source=function source(){var e;var t=new CancelToken((function executor(t){e=t}));return{token:t,cancel:e}};e.exports=CancelToken},928:function(e){"use strict";e.exports=function isCancel(e){return!!(e&&e.__CANCEL__)}},100:function(e,t,r){"use strict";var n=r(590);var o=r(323);var i=r(376);var s=r(548);var a=r(135);var u=r(434);var f=u.validators;function Axios(e){this.defaults=e;this.interceptors={request:new i,response:new i}}Axios.prototype.request=function request(e){if(typeof e==="string"){e=arguments[1]||{};e.url=arguments[0]}else{e=e||{}}e=a(this.defaults,e);if(e.method){e.method=e.method.toLowerCase()}else if(this.defaults.method){e.method=this.defaults.method.toLowerCase()}else{e.method="get"}var t=e.transitional;if(t!==undefined){u.assertOptions(t,{silentJSONParsing:f.transitional(f.boolean),forcedJSONParsing:f.transitional(f.boolean),clarifyTimeoutError:f.transitional(f.boolean)},false)}var r=[];var n=true;this.interceptors.request.forEach((function unshiftRequestInterceptors(t){if(typeof t.runWhen==="function"&&t.runWhen(e)===false){return}n=n&&t.synchronous;r.unshift(t.fulfilled,t.rejected)}));var o=[];this.interceptors.response.forEach((function pushResponseInterceptors(e){o.push(e.fulfilled,e.rejected)}));var i;if(!n){var c=[s,undefined];Array.prototype.unshift.apply(c,r);c=c.concat(o);i=Promise.resolve(e);while(c.length){i=i.then(c.shift(),c.shift())}return i}var l=e;while(r.length){var d=r.shift();var p=r.shift();try{l=d(l)}catch(e){p(e);break}}try{i=s(l)}catch(e){return Promise.reject(e)}while(o.length){i=i.then(o.shift(),o.shift())}return i};Axios.prototype.getUri=function getUri(e){e=a(this.defaults,e);return o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};n.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}}));n.forEach(["post","put","patch"],(function forEachMethodWithData(e){Axios.prototype[e]=function(t,r,n){return this.request(a(n||{},{method:e,url:t,data:r}))}}));e.exports=Axios},376:function(e,t,r){"use strict";var n=r(590);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t,r){this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:false,runWhen:r?r.runWhen:null});return this.handlers.length-1};InterceptorManager.prototype.eject=function eject(e){if(this.handlers[e]){this.handlers[e]=null}};InterceptorManager.prototype.forEach=function forEach(e){n.forEach(this.handlers,(function forEachHandler(t){if(t!==null){e(t)}}))};e.exports=InterceptorManager},138:function(e,t,r){"use strict";var n=r(147);var o=r(792);e.exports=function buildFullPath(e,t){if(e&&!n(t)){return o(e,t)}return t}},451:function(e,t,r){"use strict";var n=r(398);e.exports=function createError(e,t,r,o,i){var s=new Error(e);return n(s,t,r,o,i)}},548:function(e,t,r){"use strict";var n=r(590);var o=r(694);var i=r(928);var s=r(661);var a=r(85);function throwIfCancellationRequested(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new a("canceled")}}e.exports=function dispatchRequest(e){throwIfCancellationRequested(e);e.headers=e.headers||{};e.data=o.call(e,e.data,e.headers,e.transformRequest);e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers);n.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function onAdapterResolution(t){throwIfCancellationRequested(e);t.data=o.call(e,t.data,t.headers,e.transformResponse);return t}),(function onAdapterRejection(t){if(!i(t)){throwIfCancellationRequested(e);if(t&&t.response){t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse)}}return Promise.reject(t)}))}},398:function(e){"use strict";e.exports=function enhanceError(e,t,r,n,o){e.config=t;if(r){e.code=r}e.request=n;e.response=o;e.isAxiosError=true;e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}};return e}},135:function(e,t,r){"use strict";var n=r(590);e.exports=function mergeConfig(e,t){t=t||{};var r={};function getMergedValue(e,t){if(n.isPlainObject(e)&&n.isPlainObject(t)){return n.merge(e,t)}else if(n.isPlainObject(t)){return n.merge({},t)}else if(n.isArray(t)){return t.slice()}return t}function mergeDeepProperties(r){if(!n.isUndefined(t[r])){return getMergedValue(e[r],t[r])}else if(!n.isUndefined(e[r])){return getMergedValue(undefined,e[r])}}function valueFromConfig2(e){if(!n.isUndefined(t[e])){return getMergedValue(undefined,t[e])}}function defaultToConfig2(r){if(!n.isUndefined(t[r])){return getMergedValue(undefined,t[r])}else if(!n.isUndefined(e[r])){return getMergedValue(undefined,e[r])}}function mergeDirectKeys(r){if(r in t){return getMergedValue(e[r],t[r])}else if(r in e){return getMergedValue(undefined,e[r])}}var o={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys};n.forEach(Object.keys(e).concat(Object.keys(t)),(function computeConfigValue(e){var t=o[e]||mergeDeepProperties;var i=t(e);n.isUndefined(i)&&t!==mergeDirectKeys||(r[e]=i)}));return r}},415:function(e,t,r){"use strict";var n=r(451);e.exports=function settle(e,t,r){var o=r.config.validateStatus;if(!r.status||!o||o(r.status)){e(r)}else{t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}}},694:function(e,t,r){"use strict";var n=r(590);var o=r(661);e.exports=function transformData(e,t,r){var i=this||o;n.forEach(r,(function transform(r){e=r.call(i,e,t)}));return e}},661:function(e,t,r){"use strict";var n=r(590);var o=r(408);var i=r(398);var s={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){if(!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])){e["Content-Type"]=t}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=r(974)}else if(typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"){e=r(562)}return e}function stringifySafely(e,t,r){if(n.isString(e)){try{(t||JSON.parse)(e);return n.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(r||JSON.stringify)(e)}var a={transitional:{silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false},adapter:getDefaultAdapter(),transformRequest:[function transformRequest(e,t){o(t,"Accept");o(t,"Content-Type");if(n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)){return e}if(n.isArrayBufferView(e)){return e.buffer}if(n.isURLSearchParams(e)){setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8");return e.toString()}if(n.isObject(e)||t&&t["Content-Type"]==="application/json"){setContentTypeIfUnset(t,"application/json");return stringifySafely(e)}return e}],transformResponse:[function transformResponse(e){var t=this.transitional||a.transitional;var r=t&&t.silentJSONParsing;var o=t&&t.forcedJSONParsing;var s=!r&&this.responseType==="json";if(s||o&&n.isString(e)&&e.length){try{return JSON.parse(e)}catch(e){if(s){if(e.name==="SyntaxError"){throw i(e,this,"E_JSON_PARSE")}throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function forEachMethodNoData(e){a.headers[e]={}}));n.forEach(["post","put","patch"],(function forEachMethodWithData(e){a.headers[e]=n.merge(s)}));e.exports=a},278:function(e){e.exports={version:"0.23.0"}},733:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){var r=new Array(arguments.length);for(var n=0;n<r.length;n++){r[n]=arguments[n]}return e.apply(t,r)}}},323:function(e,t,r){"use strict";var n=r(590);function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,t,r){if(!t){return e}var o;if(r){o=r(t)}else if(n.isURLSearchParams(t)){o=t.toString()}else{var i=[];n.forEach(t,(function serialize(e,t){if(e===null||typeof e==="undefined"){return}if(n.isArray(e)){t=t+"[]"}else{e=[e]}n.forEach(e,(function parseValue(e){if(n.isDate(e)){e=e.toISOString()}else if(n.isObject(e)){e=JSON.stringify(e)}i.push(encode(t)+"="+encode(e))}))}));o=i.join("&")}if(o){var s=e.indexOf("#");if(s!==-1){e=e.slice(0,s)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}},792:function(e){"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},51:function(e,t,r){"use strict";var n=r(590);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,r,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t));if(n.isNumber(r)){a.push("expires="+new Date(r).toGMTString())}if(n.isString(o)){a.push("path="+o)}if(n.isString(i)){a.push("domain="+i)}if(s===true){a.push("secure")}document.cookie=a.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():function nonStandardBrowserEnv(){return{write:function write(){},read:function read(){return null},remove:function remove(){}}}()},147:function(e){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},223:function(e){"use strict";e.exports=function isAxiosError(e){return typeof e==="object"&&e.isAxiosError===true}},450:function(e,t,r){"use strict";var n=r(590);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){var e=/(msie|trident)/i.test(navigator.userAgent);var t=document.createElement("a");var r;function resolveURL(r){var n=r;if(e){t.setAttribute("href",n);n=t.href}t.setAttribute("href",n);return{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}r=resolveURL(window.location.href);return function isURLSameOrigin(e){var t=n.isString(e)?resolveURL(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}()},408:function(e,t,r){"use strict";var n=r(590);e.exports=function normalizeHeaderName(e,t){n.forEach(e,(function processHeader(r,n){if(n!==t&&n.toUpperCase()===t.toUpperCase()){e[t]=r;delete e[n]}}))}},124:function(e,t,r){"use strict";var n=r(590);var o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var t={};var r;var i;var s;if(!e){return t}n.forEach(e.split("\n"),(function parser(e){s=e.indexOf(":");r=n.trim(e.substr(0,s)).toLowerCase();i=n.trim(e.substr(s+1));if(r){if(t[r]&&o.indexOf(r)>=0){return}if(r==="set-cookie"){t[r]=(t[r]?t[r]:[]).concat([i])}else{t[r]=t[r]?t[r]+", "+i:i}}}));return t}},50:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},434:function(e,t,r){"use strict";var n=r(278).version;var o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function validator(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function transitional(e,t,r){function formatMessage(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,o){if(e===false){throw new Error(formatMessage(n," has been removed"+(t?" in "+t:"")))}if(t&&!i[n]){i[n]=true;console.warn(formatMessage(n," has been deprecated since v"+t+" and will be removed in the near future"))}return e?e(r,n,o):true}};function assertOptions(e,t,r){if(typeof e!=="object"){throw new TypeError("options must be an object")}var n=Object.keys(e);var o=n.length;while(o-- >0){var i=n[o];var s=t[i];if(s){var a=e[i];var u=a===undefined||s(a,i,e);if(u!==true){throw new TypeError("option "+i+" must be "+u)}continue}if(r!==true){throw Error("Unknown option "+i)}}}e.exports={assertOptions:assertOptions,validators:o}},590:function(e,t,r){"use strict";var n=r(733);var o=Object.prototype.toString;function isArray(e){return o.call(e)==="[object Array]"}function isUndefined(e){return typeof e==="undefined"}function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isArrayBuffer(e){return o.call(e)==="[object ArrayBuffer]"}function isFormData(e){return typeof FormData!=="undefined"&&e instanceof FormData}function isArrayBufferView(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&e.buffer instanceof ArrayBuffer}return t}function isString(e){return typeof e==="string"}function isNumber(e){return typeof e==="number"}function isObject(e){return e!==null&&typeof e==="object"}function isPlainObject(e){if(o.call(e)!=="[object Object]"){return false}var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function isDate(e){return o.call(e)==="[object Date]"}function isFile(e){return o.call(e)==="[object File]"}function isBlob(e){return o.call(e)==="[object Blob]"}function isFunction(e){return o.call(e)==="[object Function]"}function isStream(e){return isObject(e)&&isFunction(e.pipe)}function isURLSearchParams(e){return typeof URLSearchParams!=="undefined"&&e instanceof URLSearchParams}function trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){if(typeof navigator!=="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"}function forEach(e,t){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(isArray(e)){for(var r=0,n=e.length;r<n;r++){t.call(null,e[r],r,e)}}else{for(var o in e){if(Object.prototype.hasOwnProperty.call(e,o)){t.call(null,e[o],o,e)}}}}function merge(){var e={};function assignValue(t,r){if(isPlainObject(e[r])&&isPlainObject(t)){e[r]=merge(e[r],t)}else if(isPlainObject(t)){e[r]=merge({},t)}else if(isArray(t)){e[r]=t.slice()}else{e[r]=t}}for(var t=0,r=arguments.length;t<r;t++){forEach(arguments[t],assignValue)}return e}function extend(e,t,r){forEach(t,(function assignValue(t,o){if(r&&typeof t==="function"){e[o]=n(t,r)}else{e[o]=t}}));return e}function stripBOM(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e}e.exports={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isStandardBrowserEnv:isStandardBrowserEnv,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM}},779:function(e,t,r){var n;e.exports=function(){if(!n){try{n=r(627)("follow-redirects")}catch(e){}if(typeof n!=="function"){n=function(){}}}n.apply(null,arguments)}},886:function(e,t,r){var n=r(835);var o=n.URL;var i=r(605);var s=r(211);var a=r(413).Writable;var u=r(357);var f=r(779);var c=["abort","aborted","connect","error","socket","timeout"];var l=Object.create(null);c.forEach((function(e){l[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var d=createErrorType("ERR_FR_REDIRECTION_FAILURE","");var p=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded");var h=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var m=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");function RedirectableRequest(e,t){a.call(this);this._sanitizeOptions(e);this._options=e;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(t){this.on("response",t)}var r=this;this._onNativeResponse=function(e){r._processResponse(e)};this._performRequest()}RedirectableRequest.prototype=Object.create(a.prototype);RedirectableRequest.prototype.abort=function(){abortRequest(this._currentRequest);this.emit("abort")};RedirectableRequest.prototype.write=function(e,t,r){if(this._ending){throw new m}if(!(typeof e==="string"||typeof e==="object"&&"length"in e)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(typeof t==="function"){r=t;t=null}if(e.length===0){if(r){r()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:t});this._currentRequest.write(e,t,r)}else{this.emit("error",new h);this.abort()}};RedirectableRequest.prototype.end=function(e,t,r){if(typeof e==="function"){r=e;e=t=null}else if(typeof t==="function"){r=t;t=null}if(!e){this._ended=this._ending=true;this._currentRequest.end(null,null,r)}else{var n=this;var o=this._currentRequest;this.write(e,t,(function(){n._ended=true;o.end(null,null,r)}));this._ending=true}};RedirectableRequest.prototype.setHeader=function(e,t){this._options.headers[e]=t;this._currentRequest.setHeader(e,t)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};RedirectableRequest.prototype.setTimeout=function(e,t){var r=this;function destroyOnTimeout(t){t.setTimeout(e);t.removeListener("timeout",t.destroy);t.addListener("timeout",t.destroy)}function startTimer(t){if(r._timeout){clearTimeout(r._timeout)}r._timeout=setTimeout((function(){r.emit("timeout");clearTimer()}),e);destroyOnTimeout(t)}function clearTimer(){if(r._timeout){clearTimeout(r._timeout);r._timeout=null}if(t){r.removeListener("timeout",t)}if(!r.socket){r._currentRequest.removeListener("socket",startTimer)}}if(t){this.on("timeout",t)}if(this.socket){startTimer(this.socket)}else{this._currentRequest.once("socket",startTimer)}this.on("socket",destroyOnTimeout);this.once("response",clearTimer);this.once("error",clearTimer);return this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){RedirectableRequest.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}}));["aborted","connection","socket"].forEach((function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})}));RedirectableRequest.prototype._sanitizeOptions=function(e){if(!e.headers){e.headers={}}if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(!e.pathname&&e.path){var t=e.path.indexOf("?");if(t<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,t);e.search=e.path.substring(t)}}};RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var o=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=n.format(this._options);o._redirectable=this;for(var i=0;i<c.length;i++){o.on(c[i],l[c[i]])}if(this._isRedirect){var s=0;var a=this;var u=this._requestBodyBuffers;(function writeNext(e){if(o===a._currentRequest){if(e){a.emit("error",e)}else if(s<u.length){var t=u[s++];if(!o.finished){o.write(t.data,t.encoding,writeNext)}}else if(a._ended){o.end()}}})()}};RedirectableRequest.prototype._processResponse=function(e){var t=e.statusCode;if(this._options.trackRedirects){this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t})}var r=e.headers.location;if(r&&this._options.followRedirects!==false&&t>=300&&t<400){abortRequest(this._currentRequest);e.destroy();if(++this._redirectCount>this._options.maxRedirects){this.emit("error",new p);return}if((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var o=removeMatchingHeaders(/^host$/i,this._options.headers)||n.parse(this._currentUrl).hostname;var i=n.resolve(this._currentUrl,r);f("redirecting to",i);this._isRedirect=true;var s=n.parse(i);Object.assign(this._options,s);if(s.hostname!==o){removeMatchingHeaders(/^authorization$/i,this._options.headers)}if(typeof this._options.beforeRedirect==="function"){var a={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,a)}catch(e){this.emit("error",e);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){var u=new d("Redirected request failed: "+e.message);u.cause=e;this.emit("error",u)}}else{e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[]}};function wrap(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024};var r={};Object.keys(e).forEach((function(i){var s=i+":";var a=r[s]=e[i];var c=t[i]=Object.create(a);function request(e,i,a){if(typeof e==="string"){var c=e;try{e=urlToOptions(new o(c))}catch(t){e=n.parse(c)}}else if(o&&e instanceof o){e=urlToOptions(e)}else{a=i;i=e;e={protocol:s}}if(typeof i==="function"){a=i;i=null}i=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,i);i.nativeProtocols=r;u.equal(i.protocol,s,"protocol mismatch");f("options",i);return new RedirectableRequest(i,a)}function get(e,t,r){var n=c.request(e,t,r);n.end();return n}Object.defineProperties(c,{request:{value:request,configurable:true,enumerable:true,writable:true},get:{value:get,configurable:true,enumerable:true,writable:true}})}));return t}function noop(){}function urlToOptions(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};if(e.port!==""){t.port=Number(e.port)}return t}function removeMatchingHeaders(e,t){var r;for(var n in t){if(e.test(n)){r=t[n];delete t[n]}}return r}function createErrorType(e,t){function CustomError(e){Error.captureStackTrace(this,this.constructor);this.message=e||t}CustomError.prototype=new Error;CustomError.prototype.constructor=CustomError;CustomError.prototype.name="Error ["+e+"]";CustomError.prototype.code=e;return CustomError}function abortRequest(e){for(var t=0;t<c.length;t++){e.removeListener(c[t],l[c[t]])}e.on("error",noop);e.abort()}e.exports=wrap({http:i,https:s});e.exports.wrap=wrap},627:function(e){"use strict";e.exports=require("@umijs/utils/compiled/debug")},357:function(e){"use strict";e.exports=require("assert")},605:function(e){"use strict";e.exports=require("http")},211:function(e){"use strict";e.exports=require("https")},413:function(e){"use strict";e.exports=require("stream")},835:function(e){"use strict";e.exports=require("url")},761:function(e){"use strict";e.exports=require("zlib")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var o=t[r]={exports:{}};var i=true;try{e[r](o,o.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(120);module.exports=r})();
|
|
1
|
+
(function(){var e={45:function(e,t,r){e.exports=r(562)},595:function(e,t,r){"use strict";var n=r(202);var o=r(322);var i=r(349);var s=r(741);var a=r(685);var u=r(687);var f=r(611).http;var c=r(611).https;var l=r(310);var d=r(796);var p=r(812).version;var h=r(259);var m=r(122);var v=r(280);var g=r(786);var y=/https:?/;function setProxy(e,t,r){e.hostname=t.host;e.host=t.host;e.port=t.port;e.path=r;if(t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function beforeRedirect(e){e.headers.host=e.host;setProxy(e,t,e.href)}}e.exports=function httpAdapter(e){return new Promise((function dispatchHttpRequest(t,r){var b;function done(){if(e.cancelToken){e.cancelToken.unsubscribe(b)}if(e.signal){e.signal.removeEventListener("abort",b)}}var R=function resolve(e){done();t(e)};var _=function reject(e){done();r(e)};var E=e.data;var w=e.headers;var x={};Object.keys(w).forEach((function storeLowerName(e){x[e.toLowerCase()]=e}));if("user-agent"in x){if(!w[x["user-agent"]]){delete w[x["user-agent"]]}}else{w["User-Agent"]="axios/"+p}if(E&&!n.isStream(E)){if(Buffer.isBuffer(E)){}else if(n.isArrayBuffer(E)){E=Buffer.from(new Uint8Array(E))}else if(n.isString(E)){E=Buffer.from(E,"utf-8")}else{return _(h("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e))}if(!x["content-length"]){w["Content-Length"]=E.length}}var T=undefined;if(e.auth){var C=e.auth.username||"";var O=e.auth.password||"";T=C+":"+O}var q=i(e.baseURL,e.url);var S=l.parse(q);var A=S.protocol||"http:";if(!T&&S.auth){var B=S.auth.split(":");var j=B[0]||"";var L=B[1]||"";T=j+":"+L}if(T&&x.authorization){delete w[x.authorization]}var U=y.test(A);var N=U?e.httpsAgent:e.httpAgent;var P={path:s(S.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:w,agent:N,agents:{http:e.httpAgent,https:e.httpsAgent},auth:T};if(e.socketPath){P.socketPath=e.socketPath}else{P.hostname=S.hostname;P.port=S.port}var k=e.proxy;if(!k&&k!==false){var D=A.slice(0,-1)+"_proxy";var M=process.env[D]||process.env[D.toUpperCase()];if(M){var I=l.parse(M);var H=process.env.no_proxy||process.env.NO_PROXY;var F=true;if(H){var z=H.split(",").map((function trim(e){return e.trim()}));F=!z.some((function proxyMatch(e){if(!e){return false}if(e==="*"){return true}if(e[0]==="."&&S.hostname.substr(S.hostname.length-e.length)===e){return true}return S.hostname===e}))}if(F){k={host:I.hostname,port:I.port,protocol:I.protocol};if(I.auth){var V=I.auth.split(":");k.auth={username:V[0],password:V[1]}}}}}if(k){P.headers.host=S.hostname+(S.port?":"+S.port:"");setProxy(P,k,A+"//"+S.hostname+(S.port?":"+S.port:"")+P.path)}var J;var W=U&&(k?y.test(k.protocol):true);if(e.transport){J=e.transport}else if(e.maxRedirects===0){J=W?u:a}else{if(e.maxRedirects){P.maxRedirects=e.maxRedirects}J=W?c:f}if(e.maxBodyLength>-1){P.maxBodyLength=e.maxBodyLength}if(e.insecureHTTPParser){P.insecureHTTPParser=e.insecureHTTPParser}var X=J.request(P,(function handleResponse(t){if(X.aborted)return;var r=t;var i=t.req||X;if(t.statusCode!==204&&i.method!=="HEAD"&&e.decompress!==false){switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(d.createUnzip());delete t.headers["content-encoding"];break}}var s={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:i};if(e.responseType==="stream"){s.data=r;o(R,_,s)}else{var a=[];var u=0;r.on("data",(function handleStreamData(t){a.push(t);u+=t.length;if(e.maxContentLength>-1&&u>e.maxContentLength){r.destroy();_(h("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,i))}}));r.on("error",(function handleStreamError(t){if(X.aborted)return;_(m(t,e,null,i))}));r.on("end",(function handleStreamEnd(){var t=Buffer.concat(a);if(e.responseType!=="arraybuffer"){t=t.toString(e.responseEncoding);if(!e.responseEncoding||e.responseEncoding==="utf8"){t=n.stripBOM(t)}}s.data=t;o(R,_,s)}))}}));X.on("error",(function handleRequestError(t){if(X.aborted&&t.code!=="ERR_FR_TOO_MANY_REDIRECTS")return;_(m(t,e,null,X))}));if(e.timeout){var $=parseInt(e.timeout,10);if(isNaN($)){_(h("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",X));return}X.setTimeout($,(function handleRequestTimeout(){X.abort();var t=e.transitional||v.transitional;_(h("timeout of "+$+"ms exceeded",e,t.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",X))}))}if(e.cancelToken||e.signal){b=function(e){if(X.aborted)return;X.abort();_(!e||e&&e.type?new g("canceled"):e)};e.cancelToken&&e.cancelToken.subscribe(b);if(e.signal){e.signal.aborted?b():e.signal.addEventListener("abort",b)}}if(n.isStream(E)){E.on("error",(function handleStreamError(t){_(m(t,e,null,X))})).pipe(X)}else{X.end(E)}}))}},924:function(e,t,r){"use strict";var n=r(202);var o=r(322);var i=r(137);var s=r(741);var a=r(349);var u=r(779);var f=r(463);var c=r(259);var l=r(280);var d=r(786);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,r){var p=e.data;var h=e.headers;var m=e.responseType;var v;function done(){if(e.cancelToken){e.cancelToken.unsubscribe(v)}if(e.signal){e.signal.removeEventListener("abort",v)}}if(n.isFormData(p)){delete h["Content-Type"]}var g=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"";var b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(y+":"+b)}var R=a(e.baseURL,e.url);g.open(e.method.toUpperCase(),s(R,e.params,e.paramsSerializer),true);g.timeout=e.timeout;function onloadend(){if(!g){return}var n="getAllResponseHeaders"in g?u(g.getAllResponseHeaders()):null;var i=!m||m==="text"||m==="json"?g.responseText:g.response;var s={data:i,status:g.status,statusText:g.statusText,headers:n,config:e,request:g};o((function _resolve(e){t(e);done()}),(function _reject(e){r(e);done()}),s);g=null}if("onloadend"in g){g.onloadend=onloadend}else{g.onreadystatechange=function handleLoad(){if(!g||g.readyState!==4){return}if(g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)){return}setTimeout(onloadend)}}g.onabort=function handleAbort(){if(!g){return}r(c("Request aborted",e,"ECONNABORTED",g));g=null};g.onerror=function handleError(){r(c("Network Error",e,null,g));g=null};g.ontimeout=function handleTimeout(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";var n=e.transitional||l.transitional;if(e.timeoutErrorMessage){t=e.timeoutErrorMessage}r(c(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g));g=null};if(n.isStandardBrowserEnv()){var _=(e.withCredentials||f(R))&&e.xsrfCookieName?i.read(e.xsrfCookieName):undefined;if(_){h[e.xsrfHeaderName]=_}}if("setRequestHeader"in g){n.forEach(h,(function setRequestHeader(e,t){if(typeof p==="undefined"&&t.toLowerCase()==="content-type"){delete h[t]}else{g.setRequestHeader(t,e)}}))}if(!n.isUndefined(e.withCredentials)){g.withCredentials=!!e.withCredentials}if(m&&m!=="json"){g.responseType=e.responseType}if(typeof e.onDownloadProgress==="function"){g.addEventListener("progress",e.onDownloadProgress)}if(typeof e.onUploadProgress==="function"&&g.upload){g.upload.addEventListener("progress",e.onUploadProgress)}if(e.cancelToken||e.signal){v=function(e){if(!g){return}r(!e||e&&e.type?new d("canceled"):e);g.abort();g=null};e.cancelToken&&e.cancelToken.subscribe(v);if(e.signal){e.signal.aborted?v():e.signal.addEventListener("abort",v)}}if(!p){p=null}g.send(p)}))}},562:function(e,t,r){"use strict";var n=r(202);var o=r(518);var i=r(638);var s=r(663);var a=r(280);function createInstance(e){var t=new i(e);var r=o(i.prototype.request,t);n.extend(r,i.prototype,t);n.extend(r,t);r.create=function create(t){return createInstance(s(e,t))};return r}var u=createInstance(a);u.Axios=i;u.Cancel=r(786);u.CancelToken=r(931);u.isCancel=r(81);u.VERSION=r(812).version;u.all=function all(e){return Promise.all(e)};u.spread=r(807);u.isAxiosError=r(623);e.exports=u;e.exports["default"]=u},786:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")};Cancel.prototype.__CANCEL__=true;e.exports=Cancel},931:function(e,t,r){"use strict";var n=r(786);function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise((function promiseExecutor(e){t=e}));var r=this;this.promise.then((function(e){if(!r._listeners)return;var t;var n=r._listeners.length;for(t=0;t<n;t++){r._listeners[t](e)}r._listeners=null}));this.promise.then=function(e){var t;var n=new Promise((function(e){r.subscribe(e);t=e})).then(e);n.cancel=function reject(){r.unsubscribe(t)};return n};e((function cancel(e){if(r.reason){return}r.reason=new n(e);t(r.reason)}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason){throw this.reason}};CancelToken.prototype.subscribe=function subscribe(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}};CancelToken.prototype.unsubscribe=function unsubscribe(e){if(!this._listeners){return}var t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}};CancelToken.source=function source(){var e;var t=new CancelToken((function executor(t){e=t}));return{token:t,cancel:e}};e.exports=CancelToken},81:function(e){"use strict";e.exports=function isCancel(e){return!!(e&&e.__CANCEL__)}},638:function(e,t,r){"use strict";var n=r(202);var o=r(741);var i=r(242);var s=r(170);var a=r(663);var u=r(823);var f=u.validators;function Axios(e){this.defaults=e;this.interceptors={request:new i,response:new i}}Axios.prototype.request=function request(e){if(typeof e==="string"){e=arguments[1]||{};e.url=arguments[0]}else{e=e||{}}e=a(this.defaults,e);if(e.method){e.method=e.method.toLowerCase()}else if(this.defaults.method){e.method=this.defaults.method.toLowerCase()}else{e.method="get"}var t=e.transitional;if(t!==undefined){u.assertOptions(t,{silentJSONParsing:f.transitional(f.boolean),forcedJSONParsing:f.transitional(f.boolean),clarifyTimeoutError:f.transitional(f.boolean)},false)}var r=[];var n=true;this.interceptors.request.forEach((function unshiftRequestInterceptors(t){if(typeof t.runWhen==="function"&&t.runWhen(e)===false){return}n=n&&t.synchronous;r.unshift(t.fulfilled,t.rejected)}));var o=[];this.interceptors.response.forEach((function pushResponseInterceptors(e){o.push(e.fulfilled,e.rejected)}));var i;if(!n){var c=[s,undefined];Array.prototype.unshift.apply(c,r);c=c.concat(o);i=Promise.resolve(e);while(c.length){i=i.then(c.shift(),c.shift())}return i}var l=e;while(r.length){var d=r.shift();var p=r.shift();try{l=d(l)}catch(e){p(e);break}}try{i=s(l)}catch(e){return Promise.reject(e)}while(o.length){i=i.then(o.shift(),o.shift())}return i};Axios.prototype.getUri=function getUri(e){e=a(this.defaults,e);return o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};n.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}}));n.forEach(["post","put","patch"],(function forEachMethodWithData(e){Axios.prototype[e]=function(t,r,n){return this.request(a(n||{},{method:e,url:t,data:r}))}}));e.exports=Axios},242:function(e,t,r){"use strict";var n=r(202);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t,r){this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:false,runWhen:r?r.runWhen:null});return this.handlers.length-1};InterceptorManager.prototype.eject=function eject(e){if(this.handlers[e]){this.handlers[e]=null}};InterceptorManager.prototype.forEach=function forEach(e){n.forEach(this.handlers,(function forEachHandler(t){if(t!==null){e(t)}}))};e.exports=InterceptorManager},349:function(e,t,r){"use strict";var n=r(669);var o=r(8);e.exports=function buildFullPath(e,t){if(e&&!n(t)){return o(e,t)}return t}},259:function(e,t,r){"use strict";var n=r(122);e.exports=function createError(e,t,r,o,i){var s=new Error(e);return n(s,t,r,o,i)}},170:function(e,t,r){"use strict";var n=r(202);var o=r(356);var i=r(81);var s=r(280);var a=r(786);function throwIfCancellationRequested(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new a("canceled")}}e.exports=function dispatchRequest(e){throwIfCancellationRequested(e);e.headers=e.headers||{};e.data=o.call(e,e.data,e.headers,e.transformRequest);e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers);n.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function onAdapterResolution(t){throwIfCancellationRequested(e);t.data=o.call(e,t.data,t.headers,e.transformResponse);return t}),(function onAdapterRejection(t){if(!i(t)){throwIfCancellationRequested(e);if(t&&t.response){t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse)}}return Promise.reject(t)}))}},122:function(e){"use strict";e.exports=function enhanceError(e,t,r,n,o){e.config=t;if(r){e.code=r}e.request=n;e.response=o;e.isAxiosError=true;e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}};return e}},663:function(e,t,r){"use strict";var n=r(202);e.exports=function mergeConfig(e,t){t=t||{};var r={};function getMergedValue(e,t){if(n.isPlainObject(e)&&n.isPlainObject(t)){return n.merge(e,t)}else if(n.isPlainObject(t)){return n.merge({},t)}else if(n.isArray(t)){return t.slice()}return t}function mergeDeepProperties(r){if(!n.isUndefined(t[r])){return getMergedValue(e[r],t[r])}else if(!n.isUndefined(e[r])){return getMergedValue(undefined,e[r])}}function valueFromConfig2(e){if(!n.isUndefined(t[e])){return getMergedValue(undefined,t[e])}}function defaultToConfig2(r){if(!n.isUndefined(t[r])){return getMergedValue(undefined,t[r])}else if(!n.isUndefined(e[r])){return getMergedValue(undefined,e[r])}}function mergeDirectKeys(r){if(r in t){return getMergedValue(e[r],t[r])}else if(r in e){return getMergedValue(undefined,e[r])}}var o={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys};n.forEach(Object.keys(e).concat(Object.keys(t)),(function computeConfigValue(e){var t=o[e]||mergeDeepProperties;var i=t(e);n.isUndefined(i)&&t!==mergeDirectKeys||(r[e]=i)}));return r}},322:function(e,t,r){"use strict";var n=r(259);e.exports=function settle(e,t,r){var o=r.config.validateStatus;if(!r.status||!o||o(r.status)){e(r)}else{t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}}},356:function(e,t,r){"use strict";var n=r(202);var o=r(280);e.exports=function transformData(e,t,r){var i=this||o;n.forEach(r,(function transform(r){e=r.call(i,e,t)}));return e}},280:function(e,t,r){"use strict";var n=r(202);var o=r(93);var i=r(122);var s={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){if(!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])){e["Content-Type"]=t}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=r(924)}else if(typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"){e=r(595)}return e}function stringifySafely(e,t,r){if(n.isString(e)){try{(t||JSON.parse)(e);return n.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(r||JSON.stringify)(e)}var a={transitional:{silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false},adapter:getDefaultAdapter(),transformRequest:[function transformRequest(e,t){o(t,"Accept");o(t,"Content-Type");if(n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)){return e}if(n.isArrayBufferView(e)){return e.buffer}if(n.isURLSearchParams(e)){setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8");return e.toString()}if(n.isObject(e)||t&&t["Content-Type"]==="application/json"){setContentTypeIfUnset(t,"application/json");return stringifySafely(e)}return e}],transformResponse:[function transformResponse(e){var t=this.transitional||a.transitional;var r=t&&t.silentJSONParsing;var o=t&&t.forcedJSONParsing;var s=!r&&this.responseType==="json";if(s||o&&n.isString(e)&&e.length){try{return JSON.parse(e)}catch(e){if(s){if(e.name==="SyntaxError"){throw i(e,this,"E_JSON_PARSE")}throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function forEachMethodNoData(e){a.headers[e]={}}));n.forEach(["post","put","patch"],(function forEachMethodWithData(e){a.headers[e]=n.merge(s)}));e.exports=a},812:function(e){e.exports={version:"0.24.0"}},518:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){var r=new Array(arguments.length);for(var n=0;n<r.length;n++){r[n]=arguments[n]}return e.apply(t,r)}}},741:function(e,t,r){"use strict";var n=r(202);function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,t,r){if(!t){return e}var o;if(r){o=r(t)}else if(n.isURLSearchParams(t)){o=t.toString()}else{var i=[];n.forEach(t,(function serialize(e,t){if(e===null||typeof e==="undefined"){return}if(n.isArray(e)){t=t+"[]"}else{e=[e]}n.forEach(e,(function parseValue(e){if(n.isDate(e)){e=e.toISOString()}else if(n.isObject(e)){e=JSON.stringify(e)}i.push(encode(t)+"="+encode(e))}))}));o=i.join("&")}if(o){var s=e.indexOf("#");if(s!==-1){e=e.slice(0,s)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}},8:function(e){"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},137:function(e,t,r){"use strict";var n=r(202);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,r,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t));if(n.isNumber(r)){a.push("expires="+new Date(r).toGMTString())}if(n.isString(o)){a.push("path="+o)}if(n.isString(i)){a.push("domain="+i)}if(s===true){a.push("secure")}document.cookie=a.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():function nonStandardBrowserEnv(){return{write:function write(){},read:function read(){return null},remove:function remove(){}}}()},669:function(e){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},623:function(e){"use strict";e.exports=function isAxiosError(e){return typeof e==="object"&&e.isAxiosError===true}},463:function(e,t,r){"use strict";var n=r(202);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){var e=/(msie|trident)/i.test(navigator.userAgent);var t=document.createElement("a");var r;function resolveURL(r){var n=r;if(e){t.setAttribute("href",n);n=t.href}t.setAttribute("href",n);return{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}r=resolveURL(window.location.href);return function isURLSameOrigin(e){var t=n.isString(e)?resolveURL(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}()},93:function(e,t,r){"use strict";var n=r(202);e.exports=function normalizeHeaderName(e,t){n.forEach(e,(function processHeader(r,n){if(n!==t&&n.toUpperCase()===t.toUpperCase()){e[t]=r;delete e[n]}}))}},779:function(e,t,r){"use strict";var n=r(202);var o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var t={};var r;var i;var s;if(!e){return t}n.forEach(e.split("\n"),(function parser(e){s=e.indexOf(":");r=n.trim(e.substr(0,s)).toLowerCase();i=n.trim(e.substr(s+1));if(r){if(t[r]&&o.indexOf(r)>=0){return}if(r==="set-cookie"){t[r]=(t[r]?t[r]:[]).concat([i])}else{t[r]=t[r]?t[r]+", "+i:i}}}));return t}},807:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},823:function(e,t,r){"use strict";var n=r(812).version;var o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function validator(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function transitional(e,t,r){function formatMessage(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,o){if(e===false){throw new Error(formatMessage(n," has been removed"+(t?" in "+t:"")))}if(t&&!i[n]){i[n]=true;console.warn(formatMessage(n," has been deprecated since v"+t+" and will be removed in the near future"))}return e?e(r,n,o):true}};function assertOptions(e,t,r){if(typeof e!=="object"){throw new TypeError("options must be an object")}var n=Object.keys(e);var o=n.length;while(o-- >0){var i=n[o];var s=t[i];if(s){var a=e[i];var u=a===undefined||s(a,i,e);if(u!==true){throw new TypeError("option "+i+" must be "+u)}continue}if(r!==true){throw Error("Unknown option "+i)}}}e.exports={assertOptions:assertOptions,validators:o}},202:function(e,t,r){"use strict";var n=r(518);var o=Object.prototype.toString;function isArray(e){return o.call(e)==="[object Array]"}function isUndefined(e){return typeof e==="undefined"}function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isArrayBuffer(e){return o.call(e)==="[object ArrayBuffer]"}function isFormData(e){return typeof FormData!=="undefined"&&e instanceof FormData}function isArrayBufferView(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&e.buffer instanceof ArrayBuffer}return t}function isString(e){return typeof e==="string"}function isNumber(e){return typeof e==="number"}function isObject(e){return e!==null&&typeof e==="object"}function isPlainObject(e){if(o.call(e)!=="[object Object]"){return false}var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function isDate(e){return o.call(e)==="[object Date]"}function isFile(e){return o.call(e)==="[object File]"}function isBlob(e){return o.call(e)==="[object Blob]"}function isFunction(e){return o.call(e)==="[object Function]"}function isStream(e){return isObject(e)&&isFunction(e.pipe)}function isURLSearchParams(e){return typeof URLSearchParams!=="undefined"&&e instanceof URLSearchParams}function trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){if(typeof navigator!=="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"}function forEach(e,t){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(isArray(e)){for(var r=0,n=e.length;r<n;r++){t.call(null,e[r],r,e)}}else{for(var o in e){if(Object.prototype.hasOwnProperty.call(e,o)){t.call(null,e[o],o,e)}}}}function merge(){var e={};function assignValue(t,r){if(isPlainObject(e[r])&&isPlainObject(t)){e[r]=merge(e[r],t)}else if(isPlainObject(t)){e[r]=merge({},t)}else if(isArray(t)){e[r]=t.slice()}else{e[r]=t}}for(var t=0,r=arguments.length;t<r;t++){forEach(arguments[t],assignValue)}return e}function extend(e,t,r){forEach(t,(function assignValue(t,o){if(r&&typeof t==="function"){e[o]=n(t,r)}else{e[o]=t}}));return e}function stripBOM(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e}e.exports={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isStandardBrowserEnv:isStandardBrowserEnv,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM}},127:function(e,t,r){var n;e.exports=function(){if(!n){try{n=r(755)("follow-redirects")}catch(e){}if(typeof n!=="function"){n=function(){}}}n.apply(null,arguments)}},611:function(e,t,r){var n=r(310);var o=n.URL;var i=r(685);var s=r(687);var a=r(781).Writable;var u=r(491);var f=r(127);var c=["abort","aborted","connect","error","socket","timeout"];var l=Object.create(null);c.forEach((function(e){l[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var d=createErrorType("ERR_FR_REDIRECTION_FAILURE","Redirected request failed");var p=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded");var h=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var m=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");function RedirectableRequest(e,t){a.call(this);this._sanitizeOptions(e);this._options=e;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(t){this.on("response",t)}var r=this;this._onNativeResponse=function(e){r._processResponse(e)};this._performRequest()}RedirectableRequest.prototype=Object.create(a.prototype);RedirectableRequest.prototype.abort=function(){abortRequest(this._currentRequest);this.emit("abort")};RedirectableRequest.prototype.write=function(e,t,r){if(this._ending){throw new m}if(!(typeof e==="string"||typeof e==="object"&&"length"in e)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(typeof t==="function"){r=t;t=null}if(e.length===0){if(r){r()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:t});this._currentRequest.write(e,t,r)}else{this.emit("error",new h);this.abort()}};RedirectableRequest.prototype.end=function(e,t,r){if(typeof e==="function"){r=e;e=t=null}else if(typeof t==="function"){r=t;t=null}if(!e){this._ended=this._ending=true;this._currentRequest.end(null,null,r)}else{var n=this;var o=this._currentRequest;this.write(e,t,(function(){n._ended=true;o.end(null,null,r)}));this._ending=true}};RedirectableRequest.prototype.setHeader=function(e,t){this._options.headers[e]=t;this._currentRequest.setHeader(e,t)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};RedirectableRequest.prototype.setTimeout=function(e,t){var r=this;function destroyOnTimeout(t){t.setTimeout(e);t.removeListener("timeout",t.destroy);t.addListener("timeout",t.destroy)}function startTimer(t){if(r._timeout){clearTimeout(r._timeout)}r._timeout=setTimeout((function(){r.emit("timeout");clearTimer()}),e);destroyOnTimeout(t)}function clearTimer(){if(r._timeout){clearTimeout(r._timeout);r._timeout=null}r.removeListener("abort",clearTimer);r.removeListener("error",clearTimer);r.removeListener("response",clearTimer);if(t){r.removeListener("timeout",t)}if(!r.socket){r._currentRequest.removeListener("socket",startTimer)}}if(t){this.on("timeout",t)}if(this.socket){startTimer(this.socket)}else{this._currentRequest.once("socket",startTimer)}this.on("socket",destroyOnTimeout);this.on("abort",clearTimer);this.on("error",clearTimer);this.on("response",clearTimer);return this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){RedirectableRequest.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}}));["aborted","connection","socket"].forEach((function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})}));RedirectableRequest.prototype._sanitizeOptions=function(e){if(!e.headers){e.headers={}}if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(!e.pathname&&e.path){var t=e.path.indexOf("?");if(t<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,t);e.search=e.path.substring(t)}}};RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var o=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=n.format(this._options);o._redirectable=this;for(var i=0;i<c.length;i++){o.on(c[i],l[c[i]])}if(this._isRedirect){var s=0;var a=this;var u=this._requestBodyBuffers;(function writeNext(e){if(o===a._currentRequest){if(e){a.emit("error",e)}else if(s<u.length){var t=u[s++];if(!o.finished){o.write(t.data,t.encoding,writeNext)}}else if(a._ended){o.end()}}})()}};RedirectableRequest.prototype._processResponse=function(e){var t=e.statusCode;if(this._options.trackRedirects){this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t})}var r=e.headers.location;if(r&&this._options.followRedirects!==false&&t>=300&&t<400){abortRequest(this._currentRequest);e.destroy();if(++this._redirectCount>this._options.maxRedirects){this.emit("error",new p);return}if((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var o=removeMatchingHeaders(/^host$/i,this._options.headers);var i=n.parse(this._currentUrl);var s=o||i.host;var a=/^\w+:/.test(r)?this._currentUrl:n.format(Object.assign(i,{host:s}));var u;try{u=n.resolve(a,r)}catch(e){this.emit("error",new d(e));return}f("redirecting to",u);this._isRedirect=true;var c=n.parse(u);Object.assign(this._options,c);if(!(c.host===s||isSubdomainOf(c.host,s))){removeMatchingHeaders(/^authorization$/i,this._options.headers)}if(typeof this._options.beforeRedirect==="function"){var l={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,l)}catch(e){this.emit("error",e);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new d(e))}}else{e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[]}};function wrap(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024};var r={};Object.keys(e).forEach((function(i){var s=i+":";var a=r[s]=e[i];var c=t[i]=Object.create(a);function request(e,i,a){if(typeof e==="string"){var c=e;try{e=urlToOptions(new o(c))}catch(t){e=n.parse(c)}}else if(o&&e instanceof o){e=urlToOptions(e)}else{a=i;i=e;e={protocol:s}}if(typeof i==="function"){a=i;i=null}i=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,i);i.nativeProtocols=r;u.equal(i.protocol,s,"protocol mismatch");f("options",i);return new RedirectableRequest(i,a)}function get(e,t,r){var n=c.request(e,t,r);n.end();return n}Object.defineProperties(c,{request:{value:request,configurable:true,enumerable:true,writable:true},get:{value:get,configurable:true,enumerable:true,writable:true}})}));return t}function noop(){}function urlToOptions(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};if(e.port!==""){t.port=Number(e.port)}return t}function removeMatchingHeaders(e,t){var r;for(var n in t){if(e.test(n)){r=t[n].toString().trim();delete t[n]}}return r}function createErrorType(e,t){function CustomError(e){Error.captureStackTrace(this,this.constructor);if(!e){this.message=t}else{this.message=t+": "+e.message;this.cause=e}}CustomError.prototype=new Error;CustomError.prototype.constructor=CustomError;CustomError.prototype.name="Error ["+e+"]";CustomError.prototype.code=e;return CustomError}function abortRequest(e){for(var t=0;t<c.length;t++){e.removeListener(c[t],l[c[t]])}e.on("error",noop);e.abort()}function isSubdomainOf(e,t){const r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}e.exports=wrap({http:i,https:s});e.exports.wrap=wrap},755:function(e){"use strict";e.exports=require("@umijs/utils/compiled/debug")},491:function(e){"use strict";e.exports=require("assert")},685:function(e){"use strict";e.exports=require("http")},687:function(e){"use strict";e.exports=require("https")},781:function(e){"use strict";e.exports=require("stream")},310:function(e){"use strict";e.exports=require("url")},796:function(e){"use strict";e.exports=require("zlib")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var o=t[r]={exports:{}};var i=true;try{e[r](o,o.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(45);module.exports=r})();
|
package/compiled/chalk/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){var e={980:function(e,t,n){"use strict";e=n.nmd(e);const wrapAnsi16=(e,t)=>(...n)=>{const r=e(...n);return`[${r+t}m`};const wrapAnsi256=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`};const wrapAnsi16m=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};const ansi2ansi=e=>e;const rgb2rgb=(e,t,n)=>[e,t,n];const setLazyProperty=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true});return r},enumerable:true,configurable:true})};let r;const makeDynamicStyles=(e,t,o,s)=>{if(r===undefined){r=n(808)}const l=s?10:0;const c={};for(const[n,s]of Object.entries(r)){const r=n==="ansi16"?"ansi":n;if(n===t){c[r]=e(o,l)}else if(typeof s==="object"){c[r]=e(s[t],l)}}return c};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,r]of Object.entries(t)){for(const[n,o]of Object.entries(r)){t[n]={open:`[${o[0]}m`,close:`[${o[1]}m`};r[n]=t[n];e.set(o[0],o[1])}Object.defineProperty(t,n,{value:r,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="[39m";t.bgColor.close="[49m";setLazyProperty(t.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(t.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(t.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(t.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},244:function(e,t,n){"use strict";const r=n(980);const{stdout:o,stderr:s}=n(821);const{stringReplaceAll:l,stringEncaseCRLFWithFirstIndex:c}=n(991);const{isArray:i}=Array;const a=["ansi","ansi","ansi256","ansi16m"];const u=Object.create(null);const applyOptions=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const n=o?o.level:0;e.level=t.level===undefined?n:t.level};class ChalkClass{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const t={};applyOptions(t,e);t.template=(...e)=>chalkTag(t.template,...e);Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};t.template.Instance=ChalkClass;return t.template};function Chalk(e){return chalkFactory(e)}for(const[e,t]of Object.entries(r)){u[e]={get(){const n=createBuilder(this,createStyler(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:n});return n}}}u.visible={get(){const e=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of f){u[e]={get(){const{level:t}=this;return function(...n){const o=createStyler(r.color[a[t]][e](...n),r.color.close,this._styler);return createBuilder(this,o,this._isEmpty)}}}}for(const e of f){const t="bg"+e[0].toUpperCase()+e.slice(1);u[t]={get(){const{level:t}=this;return function(...n){const o=createStyler(r.bgColor[a[t]][e](...n),r.bgColor.close,this._styler);return createBuilder(this,o,this._isEmpty)}}}}const h=Object.defineProperties((()=>{}),{...u,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const createStyler=(e,t,n)=>{let r;let o;if(n===undefined){r=e;o=t}else{r=n.openAll+e;o=t+n.closeAll}return{open:e,close:t,openAll:r,closeAll:o,parent:n}};const createBuilder=(e,t,n)=>{const builder=(...e)=>{if(i(e[0])&&i(e[0].raw)){return applyStyle(builder,chalkTag(builder,...e))}return applyStyle(builder,e.length===1?""+e[0]:e.join(" "))};Object.setPrototypeOf(builder,h);builder._generator=e;builder._styler=t;builder._isEmpty=n;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let n=e._styler;if(n===undefined){return t}const{openAll:r,closeAll:o}=n;if(t.indexOf("")!==-1){while(n!==undefined){t=l(t,n.close,n.open);n=n.parent}}const s=t.indexOf("\n");if(s!==-1){t=c(t,o,r,s)}return r+t+o};let g;const chalkTag=(e,...t)=>{const[r]=t;if(!i(r)||!i(r.raw)){return t.join(" ")}const o=t.slice(1);const s=[r.raw[0]];for(let e=1;e<r.length;e++){s.push(String(o[e-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[e]))}if(g===undefined){g=n(148)}return g(e,s.join(""))};Object.defineProperties(Chalk.prototype,u);const b=Chalk();b.supportsColor=o;b.stderr=Chalk({level:s?s.level:0});b.stderr.supportsColor=s;e.exports=b},148:function(e){"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const o=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;const s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const t=e[0]==="u";const n=e[1]==="{";if(t&&!n&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&n){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return s.get(e)||e}function parseArguments(e,t){const n=[];const s=t.trim().split(/\s*,\s*/g);let l;for(const t of s){const s=Number(t);if(!Number.isNaN(s)){n.push(s)}else if(l=t.match(r)){n.push(l[2].replace(o,((e,t,n)=>t?unescape(t):n)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return n}function parseStyle(e){n.lastIndex=0;const t=[];let r;while((r=n.exec(e))!==null){const e=r[1];if(r[2]){const n=parseArguments(e,r[2]);t.push([e].concat(n))}else{t.push([e])}}return t}function buildStyle(e,t){const n={};for(const e of t){for(const t of e.styles){n[t[0]]=e.inverse?null:t.slice(1)}}let r=e;for(const[e,t]of Object.entries(n)){if(!Array.isArray(t)){continue}if(!(e in r)){throw new Error(`Unknown Chalk style: ${e}`)}r=t.length>0?r[e](...t):r[e]}return r}e.exports=(e,n)=>{const r=[];const o=[];let s=[];n.replace(t,((t,n,l,c,i,a)=>{if(n){s.push(unescape(n))}else if(c){const t=s.join("");s=[];o.push(r.length===0?t:buildStyle(e,r)(t));r.push({inverse:l,styles:parseStyle(c)})}else if(i){if(r.length===0){throw new Error("Found extraneous } in Chalk template literal")}o.push(buildStyle(e,r)(s.join("")));s=[];r.pop()}else{s.push(a)}}));o.push(s.join(""));if(r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")}},991:function(e){"use strict";const stringReplaceAll=(e,t,n)=>{let r=e.indexOf(t);if(r===-1){return e}const o=t.length;let s=0;let l="";do{l+=e.substr(s,r-s)+t+n;s=r+o;r=e.indexOf(t,s)}while(r!==-1);l+=e.substr(s);return l};const stringEncaseCRLFWithFirstIndex=(e,t,n,r)=>{let o=0;let s="";do{const l=e[r-1]==="\r";s+=e.substr(o,(l?r-1:r)-o)+t+(l?"\r\n":"\n")+n;o=r+1;r=e.indexOf("\n",o)}while(r!==-1);s+=e.substr(o);return s};e.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},348:function(e,t,n){const r=n(702);const o={};for(const e of Object.keys(r)){o[r[e]]=e}const s={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=s;for(const e of Object.keys(s)){if(!("channels"in s[e])){throw new Error("missing channels property: "+e)}if(!("labels"in s[e])){throw new Error("missing channel labels property: "+e)}if(s[e].labels.length!==s[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:n}=s[e];delete s[e].channels;delete s[e].labels;Object.defineProperty(s[e],"channels",{value:t});Object.defineProperty(s[e],"labels",{value:n})}s.rgb.hsl=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const o=Math.min(t,n,r);const s=Math.max(t,n,r);const l=s-o;let c;let i;if(s===o){c=0}else if(t===s){c=(n-r)/l}else if(n===s){c=2+(r-t)/l}else if(r===s){c=4+(t-n)/l}c=Math.min(c*60,360);if(c<0){c+=360}const a=(o+s)/2;if(s===o){i=0}else if(a<=.5){i=l/(s+o)}else{i=l/(2-s-o)}return[c,i*100,a*100]};s.rgb.hsv=function(e){let t;let n;let r;let o;let s;const l=e[0]/255;const c=e[1]/255;const i=e[2]/255;const a=Math.max(l,c,i);const u=a-Math.min(l,c,i);const diffc=function(e){return(a-e)/6/u+1/2};if(u===0){o=0;s=0}else{s=u/a;t=diffc(l);n=diffc(c);r=diffc(i);if(l===a){o=r-n}else if(c===a){o=1/3+t-r}else if(i===a){o=2/3+n-t}if(o<0){o+=1}else if(o>1){o-=1}}return[o*360,s*100,a*100]};s.rgb.hwb=function(e){const t=e[0];const n=e[1];let r=e[2];const o=s.rgb.hsl(e)[0];const l=1/255*Math.min(t,Math.min(n,r));r=1-1/255*Math.max(t,Math.max(n,r));return[o,l*100,r*100]};s.rgb.cmyk=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const o=Math.min(1-t,1-n,1-r);const s=(1-t-o)/(1-o)||0;const l=(1-n-o)/(1-o)||0;const c=(1-r-o)/(1-o)||0;return[s*100,l*100,c*100,o*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}s.rgb.keyword=function(e){const t=o[e];if(t){return t}let n=Infinity;let s;for(const t of Object.keys(r)){const o=r[t];const l=comparativeDistance(e,o);if(l<n){n=l;s=t}}return s};s.keyword.rgb=function(e){return r[e]};s.rgb.xyz=function(e){let t=e[0]/255;let n=e[1]/255;let r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805;const s=t*.2126+n*.7152+r*.0722;const l=t*.0193+n*.1192+r*.9505;return[o*100,s*100,l*100]};s.rgb.lab=function(e){const t=s.rgb.xyz(e);let n=t[0];let r=t[1];let o=t[2];n/=95.047;r/=100;o/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;o=o>.008856?o**(1/3):7.787*o+16/116;const l=116*r-16;const c=500*(n-r);const i=200*(r-o);return[l,c,i]};s.hsl.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const r=e[2]/100;let o;let s;let l;if(n===0){l=r*255;return[l,l,l]}if(r<.5){o=r*(1+n)}else{o=r+n-r*n}const c=2*r-o;const i=[0,0,0];for(let e=0;e<3;e++){s=t+1/3*-(e-1);if(s<0){s++}if(s>1){s--}if(6*s<1){l=c+(o-c)*6*s}else if(2*s<1){l=o}else if(3*s<2){l=c+(o-c)*(2/3-s)*6}else{l=c}i[e]=l*255}return i};s.hsl.hsv=function(e){const t=e[0];let n=e[1]/100;let r=e[2]/100;let o=n;const s=Math.max(r,.01);r*=2;n*=r<=1?r:2-r;o*=s<=1?s:2-s;const l=(r+n)/2;const c=r===0?2*o/(s+o):2*n/(r+n);return[t,c*100,l*100]};s.hsv.rgb=function(e){const t=e[0]/60;const n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6;const s=t-Math.floor(t);const l=255*r*(1-n);const c=255*r*(1-n*s);const i=255*r*(1-n*(1-s));r*=255;switch(o){case 0:return[r,i,l];case 1:return[c,r,l];case 2:return[l,r,i];case 3:return[l,c,r];case 4:return[i,l,r];case 5:return[r,l,c]}};s.hsv.hsl=function(e){const t=e[0];const n=e[1]/100;const r=e[2]/100;const o=Math.max(r,.01);let s;let l;l=(2-n)*r;const c=(2-n)*o;s=n*o;s/=c<=1?c:2-c;s=s||0;l/=2;return[t,s*100,l*100]};s.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100;let r=e[2]/100;const o=n+r;let s;if(o>1){n/=o;r/=o}const l=Math.floor(6*t);const c=1-r;s=6*t-l;if((l&1)!==0){s=1-s}const i=n+s*(c-n);let a;let u;let f;switch(l){default:case 6:case 0:a=c;u=i;f=n;break;case 1:a=i;u=c;f=n;break;case 2:a=n;u=c;f=i;break;case 3:a=n;u=i;f=c;break;case 4:a=i;u=n;f=c;break;case 5:a=c;u=n;f=i;break}return[a*255,u*255,f*255]};s.cmyk.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const r=e[2]/100;const o=e[3]/100;const s=1-Math.min(1,t*(1-o)+o);const l=1-Math.min(1,n*(1-o)+o);const c=1-Math.min(1,r*(1-o)+o);return[s*255,l*255,c*255]};s.xyz.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const r=e[2]/100;let o;let s;let l;o=t*3.2406+n*-1.5372+r*-.4986;s=t*-.9689+n*1.8758+r*.0415;l=t*.0557+n*-.204+r*1.057;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92;o=Math.min(Math.max(0,o),1);s=Math.min(Math.max(0,s),1);l=Math.min(Math.max(0,l),1);return[o*255,s*255,l*255]};s.xyz.lab=function(e){let t=e[0];let n=e[1];let r=e[2];t/=95.047;n/=100;r/=108.883;t=t>.008856?t**(1/3):7.787*t+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16;const s=500*(t-n);const l=200*(n-r);return[o,s,l]};s.lab.xyz=function(e){const t=e[0];const n=e[1];const r=e[2];let o;let s;let l;s=(t+16)/116;o=n/500+s;l=s-r/200;const c=s**3;const i=o**3;const a=l**3;s=c>.008856?c:(s-16/116)/7.787;o=i>.008856?i:(o-16/116)/7.787;l=a>.008856?a:(l-16/116)/7.787;o*=95.047;s*=100;l*=108.883;return[o,s,l]};s.lab.lch=function(e){const t=e[0];const n=e[1];const r=e[2];let o;const s=Math.atan2(r,n);o=s*360/2/Math.PI;if(o<0){o+=360}const l=Math.sqrt(n*n+r*r);return[t,l,o]};s.lch.lab=function(e){const t=e[0];const n=e[1];const r=e[2];const o=r/360*2*Math.PI;const s=n*Math.cos(o);const l=n*Math.sin(o);return[t,s,l]};s.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let l=t===null?s.rgb.hsv(e)[2]:t;l=Math.round(l/50);if(l===0){return 30}let c=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));if(l===2){c+=60}return c};s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])};s.rgb.ansi256=function(e){const t=e[0];const n=e[1];const r=e[2];if(t===n&&n===r){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const o=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return o};s.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const n=(~~(e>50)+1)*.5;const r=(t&1)*n*255;const o=(t>>1&1)*n*255;const s=(t>>2&1)*n*255;return[r,o,s]};s.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const n=Math.floor(e/36)/5*255;const r=Math.floor((t=e%36)/6)/5*255;const o=t%6/5*255;return[n,r,o]};s.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};s.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let n=t[0];if(t[0].length===3){n=n.split("").map((e=>e+e)).join("")}const r=parseInt(n,16);const o=r>>16&255;const s=r>>8&255;const l=r&255;return[o,s,l]};s.rgb.hcg=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const o=Math.max(Math.max(t,n),r);const s=Math.min(Math.min(t,n),r);const l=o-s;let c;let i;if(l<1){c=s/(1-l)}else{c=0}if(l<=0){i=0}else if(o===t){i=(n-r)/l%6}else if(o===n){i=2+(r-t)/l}else{i=4+(t-n)/l}i/=6;i%=1;return[i*360,l*100,c*100]};s.hsl.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=n<.5?2*t*n:2*t*(1-n);let o=0;if(r<1){o=(n-.5*r)/(1-r)}return[e[0],r*100,o*100]};s.hsv.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=t*n;let o=0;if(r<1){o=(n-r)/(1-r)}return[e[0],r*100,o*100]};s.hcg.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const r=e[2]/100;if(n===0){return[r*255,r*255,r*255]}const o=[0,0,0];const s=t%1*6;const l=s%1;const c=1-l;let i=0;switch(Math.floor(s)){case 0:o[0]=1;o[1]=l;o[2]=0;break;case 1:o[0]=c;o[1]=1;o[2]=0;break;case 2:o[0]=0;o[1]=1;o[2]=l;break;case 3:o[0]=0;o[1]=c;o[2]=1;break;case 4:o[0]=l;o[1]=0;o[2]=1;break;default:o[0]=1;o[1]=0;o[2]=c}i=(1-n)*r;return[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};s.hcg.hsv=function(e){const t=e[1]/100;const n=e[2]/100;const r=t+n*(1-t);let o=0;if(r>0){o=t/r}return[e[0],o*100,r*100]};s.hcg.hsl=function(e){const t=e[1]/100;const n=e[2]/100;const r=n*(1-t)+.5*t;let o=0;if(r>0&&r<.5){o=t/(2*r)}else if(r>=.5&&r<1){o=t/(2*(1-r))}return[e[0],o*100,r*100]};s.hcg.hwb=function(e){const t=e[1]/100;const n=e[2]/100;const r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};s.hwb.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=1-n;const o=r-t;let s=0;if(o<1){s=(r-o)/(1-o)}return[e[0],o*100,s*100]};s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};s.gray.hsl=function(e){return[0,0,e[0]]};s.gray.hsv=s.gray.hsl;s.gray.hwb=function(e){return[0,100,e[0]]};s.gray.cmyk=function(e){return[0,0,0,e[0]]};s.gray.lab=function(e){return[e[0],0,0]};s.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const n=(t<<16)+(t<<8)+t;const r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r};s.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},808:function(e,t,n){const r=n(348);const o=n(682);const s={};const l=Object.keys(r);function wrapRaw(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}const r=e(t);if(typeof r==="object"){for(let e=r.length,t=0;t<e;t++){r[t]=Math.round(r[t])}}return r};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}l.forEach((e=>{s[e]={};Object.defineProperty(s[e],"channels",{value:r[e].channels});Object.defineProperty(s[e],"labels",{value:r[e].labels});const t=o(e);const n=Object.keys(t);n.forEach((n=>{const r=t[n];s[e][n]=wrapRounded(r);s[e][n].raw=wrapRaw(r)}))}));e.exports=s},682:function(e,t,n){const r=n(348);function buildGraph(){const e={};const t=Object.keys(r);for(let n=t.length,r=0;r<n;r++){e[t[r]]={distance:-1,parent:null}}return e}function deriveBFS(e){const t=buildGraph();const n=[e];t[e].distance=0;while(n.length){const e=n.pop();const o=Object.keys(r[e]);for(let r=o.length,s=0;s<r;s++){const r=o[s];const l=t[r];if(l.distance===-1){l.distance=t[e].distance+1;l.parent=e;n.unshift(r)}}}return t}function link(e,t){return function(n){return t(e(n))}}function wrapConversion(e,t){const n=[t[e].parent,e];let o=r[t[e].parent][e];let s=t[e].parent;while(t[s].parent){n.unshift(t[s].parent);o=link(r[t[s].parent][s],o);s=t[s].parent}o.conversion=n;return o}e.exports=function(e){const t=deriveBFS(e);const n={};const r=Object.keys(t);for(let e=r.length,o=0;o<e;o++){const e=r[o];const s=t[e];if(s.parent===null){continue}n[e]=wrapConversion(e,t)}return n}},702:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},419:function(e){"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const r=t.indexOf(n+e);const o=t.indexOf("--");return r!==-1&&(o===-1||r<o)}},821:function(e,t,n){"use strict";const r=n(87);const o=n(867);const s=n(419);const{env:l}=process;let c;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){c=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){c=1}if("FORCE_COLOR"in l){if(l.FORCE_COLOR==="true"){c=1}else if(l.FORCE_COLOR==="false"){c=0}else{c=l.FORCE_COLOR.length===0?1:Math.min(parseInt(l.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(c===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!t&&c===undefined){return 0}const n=c||0;if(l.TERM==="dumb"){return n}if(process.platform==="win32"){const e=r.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in l){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in l))||l.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in l){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l.TEAMCITY_VERSION)?1:0}if(l.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in l){const e=parseInt((l.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(l.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(l.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(l.TERM)){return 1}if("COLORTERM"in l){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,o.isatty(1))),stderr:translateLevel(supportsColor(true,o.isatty(2)))}},87:function(e){"use strict";e.exports=require("os")},867:function(e){"use strict";e.exports=require("tty")}};var t={};function __nccwpck_require__(n){var r=t[n];if(r!==undefined){return r.exports}var o=t[n]={id:n,loaded:false,exports:{}};var s=true;try{e[n](o,o.exports,__nccwpck_require__);s=false}finally{if(s)delete t[n]}o.loaded=true;return o.exports}!function(){__nccwpck_require__.nmd=function(e){e.paths=[];if(!e.children)e.children=[];return e}}();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(244);module.exports=n})();
|
|
1
|
+
(function(){var e={774:function(e,t,n){"use strict";e=n.nmd(e);const wrapAnsi16=(e,t)=>(...n)=>{const r=e(...n);return`[${r+t}m`};const wrapAnsi256=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`};const wrapAnsi16m=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};const ansi2ansi=e=>e;const rgb2rgb=(e,t,n)=>[e,t,n];const setLazyProperty=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true});return r},enumerable:true,configurable:true})};let r;const makeDynamicStyles=(e,t,o,s)=>{if(r===undefined){r=n(59)}const l=s?10:0;const c={};for(const[n,s]of Object.entries(r)){const r=n==="ansi16"?"ansi":n;if(n===t){c[r]=e(o,l)}else if(typeof s==="object"){c[r]=e(s[t],l)}}return c};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,r]of Object.entries(t)){for(const[n,o]of Object.entries(r)){t[n]={open:`[${o[0]}m`,close:`[${o[1]}m`};r[n]=t[n];e.set(o[0],o[1])}Object.defineProperty(t,n,{value:r,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="[39m";t.bgColor.close="[49m";setLazyProperty(t.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(t.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(t.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(t.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},536:function(e,t,n){"use strict";const r=n(774);const{stdout:o,stderr:s}=n(611);const{stringReplaceAll:l,stringEncaseCRLFWithFirstIndex:c}=n(713);const{isArray:i}=Array;const a=["ansi","ansi","ansi256","ansi16m"];const u=Object.create(null);const applyOptions=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const n=o?o.level:0;e.level=t.level===undefined?n:t.level};class ChalkClass{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const t={};applyOptions(t,e);t.template=(...e)=>chalkTag(t.template,...e);Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};t.template.Instance=ChalkClass;return t.template};function Chalk(e){return chalkFactory(e)}for(const[e,t]of Object.entries(r)){u[e]={get(){const n=createBuilder(this,createStyler(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:n});return n}}}u.visible={get(){const e=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of f){u[e]={get(){const{level:t}=this;return function(...n){const o=createStyler(r.color[a[t]][e](...n),r.color.close,this._styler);return createBuilder(this,o,this._isEmpty)}}}}for(const e of f){const t="bg"+e[0].toUpperCase()+e.slice(1);u[t]={get(){const{level:t}=this;return function(...n){const o=createStyler(r.bgColor[a[t]][e](...n),r.bgColor.close,this._styler);return createBuilder(this,o,this._isEmpty)}}}}const h=Object.defineProperties((()=>{}),{...u,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const createStyler=(e,t,n)=>{let r;let o;if(n===undefined){r=e;o=t}else{r=n.openAll+e;o=t+n.closeAll}return{open:e,close:t,openAll:r,closeAll:o,parent:n}};const createBuilder=(e,t,n)=>{const builder=(...e)=>{if(i(e[0])&&i(e[0].raw)){return applyStyle(builder,chalkTag(builder,...e))}return applyStyle(builder,e.length===1?""+e[0]:e.join(" "))};Object.setPrototypeOf(builder,h);builder._generator=e;builder._styler=t;builder._isEmpty=n;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let n=e._styler;if(n===undefined){return t}const{openAll:r,closeAll:o}=n;if(t.indexOf("")!==-1){while(n!==undefined){t=l(t,n.close,n.open);n=n.parent}}const s=t.indexOf("\n");if(s!==-1){t=c(t,o,r,s)}return r+t+o};let g;const chalkTag=(e,...t)=>{const[r]=t;if(!i(r)||!i(r.raw)){return t.join(" ")}const o=t.slice(1);const s=[r.raw[0]];for(let e=1;e<r.length;e++){s.push(String(o[e-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[e]))}if(g===undefined){g=n(566)}return g(e,s.join(""))};Object.defineProperties(Chalk.prototype,u);const b=Chalk();b.supportsColor=o;b.stderr=Chalk({level:s?s.level:0});b.stderr.supportsColor=s;e.exports=b},566:function(e){"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const o=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;const s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const t=e[0]==="u";const n=e[1]==="{";if(t&&!n&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&n){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return s.get(e)||e}function parseArguments(e,t){const n=[];const s=t.trim().split(/\s*,\s*/g);let l;for(const t of s){const s=Number(t);if(!Number.isNaN(s)){n.push(s)}else if(l=t.match(r)){n.push(l[2].replace(o,((e,t,n)=>t?unescape(t):n)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return n}function parseStyle(e){n.lastIndex=0;const t=[];let r;while((r=n.exec(e))!==null){const e=r[1];if(r[2]){const n=parseArguments(e,r[2]);t.push([e].concat(n))}else{t.push([e])}}return t}function buildStyle(e,t){const n={};for(const e of t){for(const t of e.styles){n[t[0]]=e.inverse?null:t.slice(1)}}let r=e;for(const[e,t]of Object.entries(n)){if(!Array.isArray(t)){continue}if(!(e in r)){throw new Error(`Unknown Chalk style: ${e}`)}r=t.length>0?r[e](...t):r[e]}return r}e.exports=(e,n)=>{const r=[];const o=[];let s=[];n.replace(t,((t,n,l,c,i,a)=>{if(n){s.push(unescape(n))}else if(c){const t=s.join("");s=[];o.push(r.length===0?t:buildStyle(e,r)(t));r.push({inverse:l,styles:parseStyle(c)})}else if(i){if(r.length===0){throw new Error("Found extraneous } in Chalk template literal")}o.push(buildStyle(e,r)(s.join("")));s=[];r.pop()}else{s.push(a)}}));o.push(s.join(""));if(r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")}},713:function(e){"use strict";const stringReplaceAll=(e,t,n)=>{let r=e.indexOf(t);if(r===-1){return e}const o=t.length;let s=0;let l="";do{l+=e.substr(s,r-s)+t+n;s=r+o;r=e.indexOf(t,s)}while(r!==-1);l+=e.substr(s);return l};const stringEncaseCRLFWithFirstIndex=(e,t,n,r)=>{let o=0;let s="";do{const l=e[r-1]==="\r";s+=e.substr(o,(l?r-1:r)-o)+t+(l?"\r\n":"\n")+n;o=r+1;r=e.indexOf("\n",o)}while(r!==-1);s+=e.substr(o);return s};e.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},922:function(e,t,n){const r=n(838);const o={};for(const e of Object.keys(r)){o[r[e]]=e}const s={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=s;for(const e of Object.keys(s)){if(!("channels"in s[e])){throw new Error("missing channels property: "+e)}if(!("labels"in s[e])){throw new Error("missing channel labels property: "+e)}if(s[e].labels.length!==s[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:n}=s[e];delete s[e].channels;delete s[e].labels;Object.defineProperty(s[e],"channels",{value:t});Object.defineProperty(s[e],"labels",{value:n})}s.rgb.hsl=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const o=Math.min(t,n,r);const s=Math.max(t,n,r);const l=s-o;let c;let i;if(s===o){c=0}else if(t===s){c=(n-r)/l}else if(n===s){c=2+(r-t)/l}else if(r===s){c=4+(t-n)/l}c=Math.min(c*60,360);if(c<0){c+=360}const a=(o+s)/2;if(s===o){i=0}else if(a<=.5){i=l/(s+o)}else{i=l/(2-s-o)}return[c,i*100,a*100]};s.rgb.hsv=function(e){let t;let n;let r;let o;let s;const l=e[0]/255;const c=e[1]/255;const i=e[2]/255;const a=Math.max(l,c,i);const u=a-Math.min(l,c,i);const diffc=function(e){return(a-e)/6/u+1/2};if(u===0){o=0;s=0}else{s=u/a;t=diffc(l);n=diffc(c);r=diffc(i);if(l===a){o=r-n}else if(c===a){o=1/3+t-r}else if(i===a){o=2/3+n-t}if(o<0){o+=1}else if(o>1){o-=1}}return[o*360,s*100,a*100]};s.rgb.hwb=function(e){const t=e[0];const n=e[1];let r=e[2];const o=s.rgb.hsl(e)[0];const l=1/255*Math.min(t,Math.min(n,r));r=1-1/255*Math.max(t,Math.max(n,r));return[o,l*100,r*100]};s.rgb.cmyk=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const o=Math.min(1-t,1-n,1-r);const s=(1-t-o)/(1-o)||0;const l=(1-n-o)/(1-o)||0;const c=(1-r-o)/(1-o)||0;return[s*100,l*100,c*100,o*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}s.rgb.keyword=function(e){const t=o[e];if(t){return t}let n=Infinity;let s;for(const t of Object.keys(r)){const o=r[t];const l=comparativeDistance(e,o);if(l<n){n=l;s=t}}return s};s.keyword.rgb=function(e){return r[e]};s.rgb.xyz=function(e){let t=e[0]/255;let n=e[1]/255;let r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805;const s=t*.2126+n*.7152+r*.0722;const l=t*.0193+n*.1192+r*.9505;return[o*100,s*100,l*100]};s.rgb.lab=function(e){const t=s.rgb.xyz(e);let n=t[0];let r=t[1];let o=t[2];n/=95.047;r/=100;o/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;o=o>.008856?o**(1/3):7.787*o+16/116;const l=116*r-16;const c=500*(n-r);const i=200*(r-o);return[l,c,i]};s.hsl.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const r=e[2]/100;let o;let s;let l;if(n===0){l=r*255;return[l,l,l]}if(r<.5){o=r*(1+n)}else{o=r+n-r*n}const c=2*r-o;const i=[0,0,0];for(let e=0;e<3;e++){s=t+1/3*-(e-1);if(s<0){s++}if(s>1){s--}if(6*s<1){l=c+(o-c)*6*s}else if(2*s<1){l=o}else if(3*s<2){l=c+(o-c)*(2/3-s)*6}else{l=c}i[e]=l*255}return i};s.hsl.hsv=function(e){const t=e[0];let n=e[1]/100;let r=e[2]/100;let o=n;const s=Math.max(r,.01);r*=2;n*=r<=1?r:2-r;o*=s<=1?s:2-s;const l=(r+n)/2;const c=r===0?2*o/(s+o):2*n/(r+n);return[t,c*100,l*100]};s.hsv.rgb=function(e){const t=e[0]/60;const n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6;const s=t-Math.floor(t);const l=255*r*(1-n);const c=255*r*(1-n*s);const i=255*r*(1-n*(1-s));r*=255;switch(o){case 0:return[r,i,l];case 1:return[c,r,l];case 2:return[l,r,i];case 3:return[l,c,r];case 4:return[i,l,r];case 5:return[r,l,c]}};s.hsv.hsl=function(e){const t=e[0];const n=e[1]/100;const r=e[2]/100;const o=Math.max(r,.01);let s;let l;l=(2-n)*r;const c=(2-n)*o;s=n*o;s/=c<=1?c:2-c;s=s||0;l/=2;return[t,s*100,l*100]};s.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100;let r=e[2]/100;const o=n+r;let s;if(o>1){n/=o;r/=o}const l=Math.floor(6*t);const c=1-r;s=6*t-l;if((l&1)!==0){s=1-s}const i=n+s*(c-n);let a;let u;let f;switch(l){default:case 6:case 0:a=c;u=i;f=n;break;case 1:a=i;u=c;f=n;break;case 2:a=n;u=c;f=i;break;case 3:a=n;u=i;f=c;break;case 4:a=i;u=n;f=c;break;case 5:a=c;u=n;f=i;break}return[a*255,u*255,f*255]};s.cmyk.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const r=e[2]/100;const o=e[3]/100;const s=1-Math.min(1,t*(1-o)+o);const l=1-Math.min(1,n*(1-o)+o);const c=1-Math.min(1,r*(1-o)+o);return[s*255,l*255,c*255]};s.xyz.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const r=e[2]/100;let o;let s;let l;o=t*3.2406+n*-1.5372+r*-.4986;s=t*-.9689+n*1.8758+r*.0415;l=t*.0557+n*-.204+r*1.057;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92;o=Math.min(Math.max(0,o),1);s=Math.min(Math.max(0,s),1);l=Math.min(Math.max(0,l),1);return[o*255,s*255,l*255]};s.xyz.lab=function(e){let t=e[0];let n=e[1];let r=e[2];t/=95.047;n/=100;r/=108.883;t=t>.008856?t**(1/3):7.787*t+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16;const s=500*(t-n);const l=200*(n-r);return[o,s,l]};s.lab.xyz=function(e){const t=e[0];const n=e[1];const r=e[2];let o;let s;let l;s=(t+16)/116;o=n/500+s;l=s-r/200;const c=s**3;const i=o**3;const a=l**3;s=c>.008856?c:(s-16/116)/7.787;o=i>.008856?i:(o-16/116)/7.787;l=a>.008856?a:(l-16/116)/7.787;o*=95.047;s*=100;l*=108.883;return[o,s,l]};s.lab.lch=function(e){const t=e[0];const n=e[1];const r=e[2];let o;const s=Math.atan2(r,n);o=s*360/2/Math.PI;if(o<0){o+=360}const l=Math.sqrt(n*n+r*r);return[t,l,o]};s.lch.lab=function(e){const t=e[0];const n=e[1];const r=e[2];const o=r/360*2*Math.PI;const s=n*Math.cos(o);const l=n*Math.sin(o);return[t,s,l]};s.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let l=t===null?s.rgb.hsv(e)[2]:t;l=Math.round(l/50);if(l===0){return 30}let c=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));if(l===2){c+=60}return c};s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])};s.rgb.ansi256=function(e){const t=e[0];const n=e[1];const r=e[2];if(t===n&&n===r){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const o=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return o};s.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const n=(~~(e>50)+1)*.5;const r=(t&1)*n*255;const o=(t>>1&1)*n*255;const s=(t>>2&1)*n*255;return[r,o,s]};s.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const n=Math.floor(e/36)/5*255;const r=Math.floor((t=e%36)/6)/5*255;const o=t%6/5*255;return[n,r,o]};s.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};s.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let n=t[0];if(t[0].length===3){n=n.split("").map((e=>e+e)).join("")}const r=parseInt(n,16);const o=r>>16&255;const s=r>>8&255;const l=r&255;return[o,s,l]};s.rgb.hcg=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const o=Math.max(Math.max(t,n),r);const s=Math.min(Math.min(t,n),r);const l=o-s;let c;let i;if(l<1){c=s/(1-l)}else{c=0}if(l<=0){i=0}else if(o===t){i=(n-r)/l%6}else if(o===n){i=2+(r-t)/l}else{i=4+(t-n)/l}i/=6;i%=1;return[i*360,l*100,c*100]};s.hsl.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=n<.5?2*t*n:2*t*(1-n);let o=0;if(r<1){o=(n-.5*r)/(1-r)}return[e[0],r*100,o*100]};s.hsv.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=t*n;let o=0;if(r<1){o=(n-r)/(1-r)}return[e[0],r*100,o*100]};s.hcg.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const r=e[2]/100;if(n===0){return[r*255,r*255,r*255]}const o=[0,0,0];const s=t%1*6;const l=s%1;const c=1-l;let i=0;switch(Math.floor(s)){case 0:o[0]=1;o[1]=l;o[2]=0;break;case 1:o[0]=c;o[1]=1;o[2]=0;break;case 2:o[0]=0;o[1]=1;o[2]=l;break;case 3:o[0]=0;o[1]=c;o[2]=1;break;case 4:o[0]=l;o[1]=0;o[2]=1;break;default:o[0]=1;o[1]=0;o[2]=c}i=(1-n)*r;return[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};s.hcg.hsv=function(e){const t=e[1]/100;const n=e[2]/100;const r=t+n*(1-t);let o=0;if(r>0){o=t/r}return[e[0],o*100,r*100]};s.hcg.hsl=function(e){const t=e[1]/100;const n=e[2]/100;const r=n*(1-t)+.5*t;let o=0;if(r>0&&r<.5){o=t/(2*r)}else if(r>=.5&&r<1){o=t/(2*(1-r))}return[e[0],o*100,r*100]};s.hcg.hwb=function(e){const t=e[1]/100;const n=e[2]/100;const r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};s.hwb.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=1-n;const o=r-t;let s=0;if(o<1){s=(r-o)/(1-o)}return[e[0],o*100,s*100]};s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};s.gray.hsl=function(e){return[0,0,e[0]]};s.gray.hsv=s.gray.hsl;s.gray.hwb=function(e){return[0,100,e[0]]};s.gray.cmyk=function(e){return[0,0,0,e[0]]};s.gray.lab=function(e){return[e[0],0,0]};s.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const n=(t<<16)+(t<<8)+t;const r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r};s.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},59:function(e,t,n){const r=n(922);const o=n(910);const s={};const l=Object.keys(r);function wrapRaw(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}const r=e(t);if(typeof r==="object"){for(let e=r.length,t=0;t<e;t++){r[t]=Math.round(r[t])}}return r};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}l.forEach((e=>{s[e]={};Object.defineProperty(s[e],"channels",{value:r[e].channels});Object.defineProperty(s[e],"labels",{value:r[e].labels});const t=o(e);const n=Object.keys(t);n.forEach((n=>{const r=t[n];s[e][n]=wrapRounded(r);s[e][n].raw=wrapRaw(r)}))}));e.exports=s},910:function(e,t,n){const r=n(922);function buildGraph(){const e={};const t=Object.keys(r);for(let n=t.length,r=0;r<n;r++){e[t[r]]={distance:-1,parent:null}}return e}function deriveBFS(e){const t=buildGraph();const n=[e];t[e].distance=0;while(n.length){const e=n.pop();const o=Object.keys(r[e]);for(let r=o.length,s=0;s<r;s++){const r=o[s];const l=t[r];if(l.distance===-1){l.distance=t[e].distance+1;l.parent=e;n.unshift(r)}}}return t}function link(e,t){return function(n){return t(e(n))}}function wrapConversion(e,t){const n=[t[e].parent,e];let o=r[t[e].parent][e];let s=t[e].parent;while(t[s].parent){n.unshift(t[s].parent);o=link(r[t[s].parent][s],o);s=t[s].parent}o.conversion=n;return o}e.exports=function(e){const t=deriveBFS(e);const n={};const r=Object.keys(t);for(let e=r.length,o=0;o<e;o++){const e=r[o];const s=t[e];if(s.parent===null){continue}n[e]=wrapConversion(e,t)}return n}},838:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},338:function(e){"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const r=t.indexOf(n+e);const o=t.indexOf("--");return r!==-1&&(o===-1||r<o)}},611:function(e,t,n){"use strict";const r=n(37);const o=n(224);const s=n(338);const{env:l}=process;let c;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){c=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){c=1}if("FORCE_COLOR"in l){if(l.FORCE_COLOR==="true"){c=1}else if(l.FORCE_COLOR==="false"){c=0}else{c=l.FORCE_COLOR.length===0?1:Math.min(parseInt(l.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(c===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!t&&c===undefined){return 0}const n=c||0;if(l.TERM==="dumb"){return n}if(process.platform==="win32"){const e=r.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in l){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in l))||l.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in l){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l.TEAMCITY_VERSION)?1:0}if(l.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in l){const e=parseInt((l.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(l.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(l.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(l.TERM)){return 1}if("COLORTERM"in l){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,o.isatty(1))),stderr:translateLevel(supportsColor(true,o.isatty(2)))}},37:function(e){"use strict";e.exports=require("os")},224:function(e){"use strict";e.exports=require("tty")}};var t={};function __nccwpck_require__(n){var r=t[n];if(r!==undefined){return r.exports}var o=t[n]={id:n,loaded:false,exports:{}};var s=true;try{e[n](o,o.exports,__nccwpck_require__);s=false}finally{if(s)delete t[n]}o.loaded=true;return o.exports}!function(){__nccwpck_require__.nmd=function(e){e.paths=[];if(!e.children)e.children=[];return e}}();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(536);module.exports=n})();
|
|
@@ -17,133 +17,133 @@ export type APPLE = [number, number, number];
|
|
|
17
17
|
export type GRAY = [number];
|
|
18
18
|
|
|
19
19
|
export namespace rgb {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
20
|
+
const channels: 3;
|
|
21
|
+
const labels: 'rgb';
|
|
22
|
+
function hsl(rgb: RGB): HSL;
|
|
23
|
+
function hsl(...rgb: RGB): HSL;
|
|
24
|
+
function hsv(rgb: RGB): HSV;
|
|
25
|
+
function hsv(...rgb: RGB): HSV;
|
|
26
|
+
function hwb(rgb: RGB): HWB;
|
|
27
|
+
function hwb(...rgb: RGB): HWB;
|
|
28
|
+
function cmyk(rgb: RGB): CMYK;
|
|
29
|
+
function cmyk(...rgb: RGB): CMYK;
|
|
30
|
+
function keyword(rgb: RGB): KEYWORD;
|
|
31
|
+
function keyword(...rgb: RGB): KEYWORD;
|
|
32
|
+
function xyz(rgb: RGB): XYZ;
|
|
33
|
+
function xyz(...rgb: RGB): XYZ;
|
|
34
|
+
function lab(rgb: RGB): LAB;
|
|
35
|
+
function lab(...rgb: RGB): LAB;
|
|
36
|
+
function ansi16(rgb: RGB): ANSI16;
|
|
37
|
+
function ansi16(...rgb: RGB): ANSI16;
|
|
38
|
+
function ansi256(rgb: RGB): ANSI256;
|
|
39
|
+
function ansi256(...rgb: RGB): ANSI256;
|
|
40
|
+
function hex(rgb: RGB): HEX;
|
|
41
|
+
function hex(...rgb: RGB): HEX;
|
|
42
|
+
function hcg(rgb: RGB): HCG;
|
|
43
|
+
function hcg(...rgb: RGB): HCG;
|
|
44
|
+
function apple(rgb: RGB): APPLE;
|
|
45
|
+
function apple(...rgb: RGB): APPLE;
|
|
46
|
+
function gray(rgb: RGB): GRAY;
|
|
47
|
+
function gray(...rgb: RGB): GRAY;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export namespace hsl {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
const channels: 3;
|
|
52
|
+
const labels: 'hsl';
|
|
53
|
+
function rgb(hsl: HSL): RGB;
|
|
54
|
+
function hsv(hsl: HSL): HSV;
|
|
55
|
+
function hcg(hsl: HSL): HCG;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export namespace hsv {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
const channels: 3;
|
|
60
|
+
const labels: 'hsv';
|
|
61
|
+
function rgb(hsv: HSV): RGB;
|
|
62
|
+
function hsl(hsv: HSV): HSL;
|
|
63
|
+
function ansi16(hsv: HSV): ANSI16;
|
|
64
|
+
function hcg(hsv: HSV): HCG;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export namespace hwb {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
const channels: 3;
|
|
69
|
+
const labels: 'hwb';
|
|
70
|
+
function rgb(hwb: HWB): RGB;
|
|
71
|
+
function hcg(hwb: HWB): HCG;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
export namespace cmyk {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
const channels: 4;
|
|
76
|
+
const labels: 'cmyk';
|
|
77
|
+
function rgb(cmyk: CMYK): RGB;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
export namespace xyz {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
const channels: 3;
|
|
82
|
+
const labels: 'xyz';
|
|
83
|
+
function rgb(xyz: XYZ): RGB;
|
|
84
|
+
function lab(xyz: XYZ): LAB;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
export namespace lab {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
const channels: 3;
|
|
89
|
+
const labels: 'lab';
|
|
90
|
+
function xyz(lab: LAB): XYZ;
|
|
91
|
+
function lch(lab: LAB): LCH;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
export namespace lch {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
const channels: 3;
|
|
96
|
+
const labels: 'lch';
|
|
97
|
+
function lab(lch: LCH): LAB;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
export namespace hex {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
const channels: 1;
|
|
102
|
+
const labels: ['hex'];
|
|
103
|
+
function rgb(hex: HEX): RGB;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
export namespace keyword {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
const channels: 1;
|
|
108
|
+
const labels: ['keyword'];
|
|
109
|
+
function rgb(keyword: KEYWORD): RGB;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
export namespace ansi16 {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
const channels: 1;
|
|
114
|
+
const labels: ['ansi16'];
|
|
115
|
+
function rgb(ansi16: ANSI16): RGB;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
export namespace ansi256 {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
const channels: 1;
|
|
120
|
+
const labels: ['ansi256'];
|
|
121
|
+
function rgb(ansi256: ANSI256): RGB;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
export namespace hcg {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
const channels: 3;
|
|
126
|
+
const labels: ['h', 'c', 'g'];
|
|
127
|
+
function rgb(hcg: HCG): RGB;
|
|
128
|
+
function hsv(hcg: HCG): HSV;
|
|
129
|
+
function hsl(hcg: HCG): HSL;
|
|
130
|
+
function hwb(hcg: HCG): HWB;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
export namespace apple {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
const channels: 3;
|
|
135
|
+
const labels: ['r16', 'g16', 'b16'];
|
|
136
|
+
function rgb(apple: APPLE): RGB;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
export namespace gray {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
140
|
+
const channels: 1;
|
|
141
|
+
const labels: ['gray'];
|
|
142
|
+
function rgb(gray: GRAY): RGB;
|
|
143
|
+
function hsl(gray: GRAY): HSL;
|
|
144
|
+
function hsv(gray: GRAY): HSV;
|
|
145
|
+
function hwb(gray: GRAY): HWB;
|
|
146
|
+
function cmyk(gray: GRAY): CMYK;
|
|
147
|
+
function lab(gray: GRAY): LAB;
|
|
148
|
+
function hex(gray: GRAY): HEX;
|
|
149
149
|
}
|