@griddo/cx 10.6.3 → 10.6.5
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/README.md +0 -2
- package/build/adapters/gatsby/index.d.ts +1 -1
- package/build/build-complete.js +69 -30
- package/build/constants/endpoints.d.ts +18 -0
- package/build/constants/envs.d.ts +33 -0
- package/build/constants/index.d.ts +53 -0
- package/build/index.d.ts +4 -3
- package/build/index.js +90 -49
- package/build/reset-render.js +69 -30
- package/build/run-start-render.js +90 -49
- package/build/services/settings.d.ts +3 -22
- package/build/services/sites.d.ts +34 -36
- package/build/start-render.js +90 -49
- package/build/types/global.d.ts +1 -1
- package/build/upload-search-content.js +70 -31
- package/build/utils/core-utils.d.ts +9 -60
- package/build/utils/domains.d.ts +5 -1
- package/build/utils/loggin.d.ts +49 -0
- package/build/utils/render.d.ts +11 -0
- package/cx.config.js +3 -4
- package/exporter/adapters/gatsby/index.ts +95 -257
- package/exporter/adapters/gatsby/utils.ts +11 -10
- package/exporter/browser/index.ts +4 -4
- package/exporter/constants/endpoints.ts +42 -0
- package/exporter/constants/envs.ts +86 -0
- package/exporter/constants/index.ts +120 -0
- package/exporter/errors/index.ts +2 -2
- package/exporter/index.ts +11 -10
- package/exporter/react/GriddoIntegrations/index.tsx +3 -3
- package/exporter/{build-complete.ts → scripts/build-complete.ts} +4 -4
- package/exporter/{reset-render.ts → scripts/reset-render.ts} +3 -3
- package/exporter/scripts/start-render.ts +26 -0
- package/exporter/{upload-search-content.ts → scripts/upload-search-content.ts} +3 -3
- package/exporter/services/auth.ts +7 -5
- package/exporter/services/distributors.ts +12 -18
- package/exporter/services/domains.ts +2 -12
- package/exporter/services/navigation.ts +10 -8
- package/exporter/services/robots.ts +2 -6
- package/exporter/services/settings.ts +7 -44
- package/exporter/services/sites.ts +115 -159
- package/exporter/services/store.ts +24 -29
- package/exporter/types/api.ts +1 -1
- package/exporter/types/global.ts +1 -0
- package/exporter/utils/api.ts +11 -10
- package/exporter/utils/core-utils.ts +49 -180
- package/exporter/utils/domains.ts +21 -3
- package/exporter/utils/folders.ts +3 -3
- package/exporter/utils/health-checks.ts +4 -4
- package/exporter/utils/instance.ts +3 -3
- package/exporter/utils/integrations.ts +12 -12
- package/exporter/utils/loggin.ts +159 -0
- package/exporter/utils/pages.ts +15 -15
- package/exporter/utils/render.ts +49 -0
- package/exporter/utils/searches.ts +5 -5
- package/exporter/utils/sites.ts +42 -48
- package/exporter/utils/store.ts +9 -9
- package/gatsby-browser.tsx +46 -48
- package/gatsby-config.ts +5 -5
- package/gatsby-node.ts +7 -7
- package/package.json +21 -26
- package/src/components/Head.tsx +1 -1
- package/src/gatsby-node-utils.ts +1 -1
- package/src/utils.ts +1 -1
- package/exporter/start-render.ts +0 -18
- /package/build/{build-complete.d.ts → scripts/build-complete.d.ts} +0 -0
- /package/build/{move-assets.d.ts → scripts/move-assets.d.ts} +0 -0
- /package/build/{reset-render.d.ts → scripts/reset-render.d.ts} +0 -0
- /package/build/{run-start-render.d.ts → scripts/run-start-render.d.ts} +0 -0
- /package/build/{start-render.d.ts → scripts/start-render.d.ts} +0 -0
- /package/build/{upload-search-content.d.ts → scripts/upload-search-content.d.ts} +0 -0
- /package/exporter/{move-assets.ts → scripts/move-assets.ts} +0 -0
- /package/exporter/{run-start-render.ts → scripts/run-start-render.ts} +0 -0
package/build/reset-render.js
CHANGED
|
@@ -1,40 +1,55 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
`),function(a){if(s=a.indexOf(":"),n=zr.trim(a.substr(0,s)).toLowerCase(),i=zr.trim(a.substr(s+1)),n){if(r[n]&&jl.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([i]):r[n]=r[n]?r[n]+", "+i:i}}),r}});var Gi=v((Jp,Ui)=>{"use strict";var Hi=ne();Ui.exports=Hi.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(s){var o=s;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(o){var a=Hi.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var Ji=v((Wp,zi)=>{"use strict";var Ht=ne(),Ll=Ur(),Bl=Fi(),$l=Dt(),Hl=Gr(),Ul=$i(),Gl=Gi(),Jr=Bt();zi.exports=function(t){return new Promise(function(n,i){var s=t.data,o=t.headers,a=t.responseType;Ht.isFormData(s)&&delete o["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.Authorization="Basic "+btoa(d+":"+f)}var p=Hl(t.baseURL,t.url);c.open(t.method.toUpperCase(),$l(p,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function y(){if(c){var S="getAllResponseHeaders"in c?Ul(c.getAllResponseHeaders()):null,O=!a||a==="text"||a==="json"?c.responseText:c.response,R={data:O,status:c.status,statusText:c.statusText,headers:S,config:t,request:c};Ll(n,i,R),c=null}}if("onloadend"in c?c.onloadend=y:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(y)},c.onabort=function(){c&&(i(Jr("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(Jr("Network Error",t,null,c)),c=null},c.ontimeout=function(){var O="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(O=t.timeoutErrorMessage),i(Jr(O,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},Ht.isStandardBrowserEnv()){var m=(t.withCredentials||Gl(p))&&t.xsrfCookieName?Bl.read(t.xsrfCookieName):void 0;m&&(o[t.xsrfHeaderName]=m)}"setRequestHeader"in c&&Ht.forEach(o,function(O,R){typeof s>"u"&&R.toLowerCase()==="content-type"?delete o[R]:c.setRequestHeader(R,O)}),Ht.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),a&&a!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(O){c&&(c.abort(),i(O),c=null)}),s||(s=null),c.send(s)})}});var Vi=v((Vp,Wi)=>{var Ge=1e3,ze=Ge*60,Je=ze*60,Ne=Je*24,zl=Ne*7,Jl=Ne*365.25;Wi.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Wl(e);if(r==="number"&&isFinite(e))return t.long?Xl(e):Vl(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Wl(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Jl;case"weeks":case"week":case"w":return r*zl;case"days":case"day":case"d":return r*Ne;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Je;case"minutes":case"minute":case"mins":case"min":case"m":return r*ze;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ge;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Vl(e){var t=Math.abs(e);return t>=Ne?Math.round(e/Ne)+"d":t>=Je?Math.round(e/Je)+"h":t>=ze?Math.round(e/ze)+"m":t>=Ge?Math.round(e/Ge)+"s":e+"ms"}function Xl(e){var t=Math.abs(e);return t>=Ne?Ut(e,t,Ne,"day"):t>=Je?Ut(e,t,Je,"hour"):t>=ze?Ut(e,t,ze,"minute"):t>=Ge?Ut(e,t,Ge,"second"):e+" ms"}function Ut(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var Wr=v((Xp,Xi)=>{function Yl(e){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=i,r.enabled=o,r.humanize=Vi(),r.destroy=d,Object.keys(e).forEach(f=>{r[f]=e[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let p=0;for(let y=0;y<f.length;y++)p=(p<<5)-p+f.charCodeAt(y),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(f){let p,y=null,m,S;function O(...R){if(!O.enabled)return;let q=O,B=Number(new Date),G=B-(p||B);q.diff=G,q.prev=p,q.curr=B,p=B,R[0]=r.coerce(R[0]),typeof R[0]!="string"&&R.unshift("%O");let U=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,(ve,Ce)=>{if(ve==="%%")return"%";U++;let ae=r.formatters[Ce];if(typeof ae=="function"){let k=R[U];ve=ae.call(q,k),R.splice(U,1),U--}return ve}),r.formatArgs.call(q,R),(q.log||r.log).apply(q,R)}return O.namespace=f,O.useColors=r.useColors(),O.color=r.selectColor(f),O.extend=n,O.destroy=r.destroy,Object.defineProperty(O,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(m!==r.namespaces&&(m=r.namespaces,S=r.enabled(f)),S),set:R=>{y=R}}),typeof r.init=="function"&&r.init(O),O}function n(f,p){let y=r(this.namespace+(typeof p>"u"?":":p)+f);return y.log=this.log,y}function i(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let p,y=(typeof f=="string"?f:"").split(/[\s,]+/),m=y.length;for(p=0;p<m;p++)y[p]&&(f=y[p].replace(/\*/g,".*?"),f[0]==="-"?r.skips.push(new RegExp("^"+f.slice(1)+"$")):r.names.push(new RegExp("^"+f+"$")))}function s(){let f=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),f}function o(f){if(f[f.length-1]==="*")return!0;let p,y;for(p=0,y=r.skips.length;p<y;p++)if(r.skips[p].test(f))return!1;for(p=0,y=r.names.length;p<y;p++)if(r.names[p].test(f))return!0;return!1}function a(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}function c(f){return f instanceof Error?f.stack||f.message:f}function d(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Xi.exports=Yl});var Yi=v((he,Gt)=>{he.formatArgs=Ql;he.save=Zl;he.load=ef;he.useColors=Kl;he.storage=tf();he.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();he.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Kl(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Ql(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Gt.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}he.log=console.debug||console.log||(()=>{});function Zl(e){try{e?he.storage.setItem("debug",e):he.storage.removeItem("debug")}catch{}}function ef(){let e;try{e=he.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function tf(){try{return localStorage}catch{}}Gt.exports=Wr()(he);var{formatters:rf}=Gt.exports;rf.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Qi=v((Yp,Ki)=>{"use strict";Ki.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var Yr=v((Kp,es)=>{"use strict";var nf=require("os"),Zi=require("tty"),ge=Qi(),{env:V}=process,Oe;ge("no-color")||ge("no-colors")||ge("color=false")||ge("color=never")?Oe=0:(ge("color")||ge("colors")||ge("color=true")||ge("color=always"))&&(Oe=1);"FORCE_COLOR"in V&&(V.FORCE_COLOR==="true"?Oe=1:V.FORCE_COLOR==="false"?Oe=0:Oe=V.FORCE_COLOR.length===0?1:Math.min(parseInt(V.FORCE_COLOR,10),3));function Vr(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Xr(e,t){if(Oe===0)return 0;if(ge("color=16m")||ge("color=full")||ge("color=truecolor"))return 3;if(ge("color=256"))return 2;if(e&&!t&&Oe===void 0)return 0;let r=Oe||0;if(V.TERM==="dumb")return r;if(process.platform==="win32"){let n=nf.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in V)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in V)||V.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in V)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(V.TEAMCITY_VERSION)?1:0;if(V.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in V){let n=parseInt((V.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(V.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(V.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(V.TERM)||"COLORTERM"in V?1:r}function sf(e){let t=Xr(e,e&&e.isTTY);return Vr(t)}es.exports={supportsColor:sf,stdout:Vr(Xr(!0,Zi.isatty(1))),stderr:Vr(Xr(!0,Zi.isatty(2)))}});var rs=v((X,Jt)=>{var of=require("tty"),zt=require("util");X.init=df;X.log=lf;X.formatArgs=cf;X.save=ff;X.load=hf;X.useColors=af;X.destroy=zt.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");X.colors=[6,2,3,4,5,1];try{let e=Yr();e&&(e.stderr||e).level>=2&&(X.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}X.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function af(){return"colors"in X.inspectOpts?!!X.inspectOpts.colors:of.isatty(process.stderr.fd)}function cf(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${t} \x1B[0m`;e[0]=s+e[0].split(`
|
|
1
|
+
"use strict";var Wd=Object.create;var it=Object.defineProperty;var Vd=Object.getOwnPropertyDescriptor;var zd=Object.getOwnPropertyNames;var Xd=Object.getPrototypeOf,Jd=Object.prototype.hasOwnProperty;var Oo=(e,r)=>()=>(e&&(r=e(e=0)),r);var g=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Kd=(e,r)=>{for(var t in r)it(e,t,{get:r[t],enumerable:!0})},To=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of zd(r))!Jd.call(e,i)&&i!==t&&it(e,i,{get:()=>r[i],enumerable:!(n=Vd(r,i))||n.enumerable});return e};var K=(e,r,t)=>(t=e!=null?Wd(Xd(e)):{},To(r||!e||!e.__esModule?it(t,"default",{value:e,enumerable:!0}):t,e)),Qd=e=>To(it({},"__esModule",{value:!0}),e);var Sn=g((u0,Do)=>{"use strict";Do.exports=function(r,t){return function(){for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];return r.apply(t,i)}}});var he=g((c0,Po)=>{"use strict";var Zd=Sn(),ze=Object.prototype.toString;function Cn(e){return ze.call(e)==="[object Array]"}function bn(e){return typeof e>"u"}function ep(e){return e!==null&&!bn(e)&&e.constructor!==null&&!bn(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function rp(e){return ze.call(e)==="[object ArrayBuffer]"}function tp(e){return typeof FormData<"u"&&e instanceof FormData}function np(e){var r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&e.buffer instanceof ArrayBuffer,r}function ip(e){return typeof e=="string"}function op(e){return typeof e=="number"}function xo(e){return e!==null&&typeof e=="object"}function ot(e){if(ze.call(e)!=="[object Object]")return!1;var r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}function sp(e){return ze.call(e)==="[object Date]"}function ap(e){return ze.call(e)==="[object File]"}function up(e){return ze.call(e)==="[object Blob]"}function Io(e){return ze.call(e)==="[object Function]"}function cp(e){return xo(e)&&Io(e.pipe)}function lp(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function fp(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function dp(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Rn(e,r){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Cn(e))for(var t=0,n=e.length;t<n;t++)r.call(null,e[t],t,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.call(null,e[i],i,e)}function wn(){var e={};function r(i,o){ot(e[o])&&ot(i)?e[o]=wn(e[o],i):ot(i)?e[o]=wn({},i):Cn(i)?e[o]=i.slice():e[o]=i}for(var t=0,n=arguments.length;t<n;t++)Rn(arguments[t],r);return e}function pp(e,r,t){return Rn(r,function(i,o){t&&typeof i=="function"?e[o]=Zd(i,t):e[o]=i}),e}function hp(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}Po.exports={isArray:Cn,isArrayBuffer:rp,isBuffer:ep,isFormData:tp,isArrayBufferView:np,isString:ip,isNumber:op,isObject:xo,isPlainObject:ot,isUndefined:bn,isDate:sp,isFile:ap,isBlob:up,isFunction:Io,isStream:cp,isURLSearchParams:lp,isStandardBrowserEnv:dp,forEach:Rn,merge:wn,extend:pp,trim:fp,stripBOM:hp}});var st=g((l0,ko)=>{"use strict";var or=he();function Ao(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}ko.exports=function(r,t,n){if(!t)return r;var i;if(n)i=n(t);else if(or.isURLSearchParams(t))i=t.toString();else{var o=[];or.forEach(t,function(c,h){c===null||typeof c>"u"||(or.isArray(c)?h=h+"[]":c=[c],or.forEach(c,function(p){or.isDate(p)?p=p.toISOString():or.isObject(p)&&(p=JSON.stringify(p)),o.push(Ao(h)+"="+Ao(p))}))}),i=o.join("&")}if(i){var a=r.indexOf("#");a!==-1&&(r=r.slice(0,a)),r+=(r.indexOf("?")===-1?"?":"&")+i}return r}});var Lo=g((f0,Fo)=>{"use strict";var mp=he();function at(){this.handlers=[]}at.prototype.use=function(r,t,n){return this.handlers.push({fulfilled:r,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};at.prototype.eject=function(r){this.handlers[r]&&(this.handlers[r]=null)};at.prototype.forEach=function(r){mp.forEach(this.handlers,function(n){n!==null&&r(n)})};Fo.exports=at});var Mo=g((d0,No)=>{"use strict";var yp=he();No.exports=function(r,t){yp.forEach(r,function(i,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(r[t]=i,delete r[o])})}});var ut=g((p0,qo)=>{"use strict";qo.exports=function(r,t,n,i,o){return r.config=t,n&&(r.code=n),r.request=i,r.response=o,r.isAxiosError=!0,r.toJSON=function(){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}},r}});var ct=g((h0,jo)=>{"use strict";var vp=ut();jo.exports=function(r,t,n,i,o){var a=new Error(r);return vp(a,t,n,i,o)}});var On=g((m0,$o)=>{"use strict";var gp=ct();$o.exports=function(r,t,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?r(n):t(gp("Request failed with status code "+n.status,n.config,null,n.request,n))}});var Go=g((y0,Bo)=>{"use strict";var lt=he();Bo.exports=lt.isStandardBrowserEnv()?function(){return{write:function(t,n,i,o,a,u){var c=[];c.push(t+"="+encodeURIComponent(n)),lt.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),lt.isString(o)&&c.push("path="+o),lt.isString(a)&&c.push("domain="+a),u===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var Yo=g((v0,Uo)=>{"use strict";Uo.exports=function(r){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(r)}});var Wo=g((g0,Ho)=>{"use strict";Ho.exports=function(r,t){return t?r.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):r}});var Tn=g((E0,Vo)=>{"use strict";var Ep=Yo(),_p=Wo();Vo.exports=function(r,t){return r&&!Ep(t)?_p(r,t):t}});var Xo=g((_0,zo)=>{"use strict";var Dn=he(),Sp=["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"];zo.exports=function(r){var t={},n,i,o;return r&&Dn.forEach(r.split(`
|
|
2
|
+
`),function(u){if(o=u.indexOf(":"),n=Dn.trim(u.substr(0,o)).toLowerCase(),i=Dn.trim(u.substr(o+1)),n){if(t[n]&&Sp.indexOf(n)>=0)return;n==="set-cookie"?t[n]=(t[n]?t[n]:[]).concat([i]):t[n]=t[n]?t[n]+", "+i:i}}),t}});var Qo=g((S0,Ko)=>{"use strict";var Jo=he();Ko.exports=Jo.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a"),n;function i(o){var a=o;return r&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{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}}return n=i(window.location.href),function(a){var u=Jo.isString(a)?i(a):a;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}()});var es=g((b0,Zo)=>{"use strict";var ft=he(),bp=On(),wp=Go(),Cp=st(),Rp=Tn(),Op=Xo(),Tp=Qo(),xn=ct();Zo.exports=function(r){return new Promise(function(n,i){var o=r.data,a=r.headers,u=r.responseType;ft.isFormData(o)&&delete a["Content-Type"];var c=new XMLHttpRequest;if(r.auth){var h=r.auth.username||"",f=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";a.Authorization="Basic "+btoa(h+":"+f)}var p=Rp(r.baseURL,r.url);c.open(r.method.toUpperCase(),Cp(p,r.params,r.paramsSerializer),!0),c.timeout=r.timeout;function v(){if(c){var S="getAllResponseHeaders"in c?Op(c.getAllResponseHeaders()):null,R=!u||u==="text"||u==="json"?c.responseText:c.response,C={data:R,status:c.status,statusText:c.statusText,headers:S,config:r,request:c};bp(n,i,C),c=null}}if("onloadend"in c?c.onloadend=v:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(v)},c.onabort=function(){c&&(i(xn("Request aborted",r,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(xn("Network Error",r,null,c)),c=null},c.ontimeout=function(){var R="timeout of "+r.timeout+"ms exceeded";r.timeoutErrorMessage&&(R=r.timeoutErrorMessage),i(xn(R,r,r.transitional&&r.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},ft.isStandardBrowserEnv()){var y=(r.withCredentials||Tp(p))&&r.xsrfCookieName?wp.read(r.xsrfCookieName):void 0;y&&(a[r.xsrfHeaderName]=y)}"setRequestHeader"in c&&ft.forEach(a,function(R,C){typeof o>"u"&&C.toLowerCase()==="content-type"?delete a[C]:c.setRequestHeader(C,R)}),ft.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),u&&u!=="json"&&(c.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&c.addEventListener("progress",r.onDownloadProgress),typeof r.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",r.onUploadProgress),r.cancelToken&&r.cancelToken.promise.then(function(R){c&&(c.abort(),i(R),c=null)}),o||(o=null),c.send(o)})}});var ts=g((w0,rs)=>{var sr=1e3,ar=sr*60,ur=ar*60,Xe=ur*24,Dp=Xe*7,xp=Xe*365.25;rs.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return Ip(e);if(t==="number"&&isFinite(e))return r.long?Ap(e):Pp(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Ip(e){if(e=String(e),!(e.length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(r){var t=parseFloat(r[1]),n=(r[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return t*xp;case"weeks":case"week":case"w":return t*Dp;case"days":case"day":case"d":return t*Xe;case"hours":case"hour":case"hrs":case"hr":case"h":return t*ur;case"minutes":case"minute":case"mins":case"min":case"m":return t*ar;case"seconds":case"second":case"secs":case"sec":case"s":return t*sr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function Pp(e){var r=Math.abs(e);return r>=Xe?Math.round(e/Xe)+"d":r>=ur?Math.round(e/ur)+"h":r>=ar?Math.round(e/ar)+"m":r>=sr?Math.round(e/sr)+"s":e+"ms"}function Ap(e){var r=Math.abs(e);return r>=Xe?dt(e,r,Xe,"day"):r>=ur?dt(e,r,ur,"hour"):r>=ar?dt(e,r,ar,"minute"):r>=sr?dt(e,r,sr,"second"):e+" ms"}function dt(e,r,t,n){var i=r>=t*1.5;return Math.round(e/t)+" "+n+(i?"s":"")}});var In=g((C0,ns)=>{function kp(e){t.debug=t,t.default=t,t.coerce=c,t.disable=o,t.enable=i,t.enabled=a,t.humanize=ts(),t.destroy=h,Object.keys(e).forEach(f=>{t[f]=e[f]}),t.names=[],t.skips=[],t.formatters={};function r(f){let p=0;for(let v=0;v<f.length;v++)p=(p<<5)-p+f.charCodeAt(v),p|=0;return t.colors[Math.abs(p)%t.colors.length]}t.selectColor=r;function t(f){let p,v=null,y,S;function R(...C){if(!R.enabled)return;let P=R,U=Number(new Date),F=U-(p||U);P.diff=F,P.prev=p,P.curr=U,p=U,C[0]=t.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let j=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(Ee,Le)=>{if(Ee==="%%")return"%";j++;let _e=t.formatters[Le];if(typeof _e=="function"){let O=C[j];Ee=_e.call(P,O),C.splice(j,1),j--}return Ee}),t.formatArgs.call(P,C),(P.log||t.log).apply(P,C)}return R.namespace=f,R.useColors=t.useColors(),R.color=t.selectColor(f),R.extend=n,R.destroy=t.destroy,Object.defineProperty(R,"enabled",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(y!==t.namespaces&&(y=t.namespaces,S=t.enabled(f)),S),set:C=>{v=C}}),typeof t.init=="function"&&t.init(R),R}function n(f,p){let v=t(this.namespace+(typeof p>"u"?":":p)+f);return v.log=this.log,v}function i(f){t.save(f),t.namespaces=f,t.names=[],t.skips=[];let p,v=(typeof f=="string"?f:"").split(/[\s,]+/),y=v.length;for(p=0;p<y;p++)v[p]&&(f=v[p].replace(/\*/g,".*?"),f[0]==="-"?t.skips.push(new RegExp("^"+f.slice(1)+"$")):t.names.push(new RegExp("^"+f+"$")))}function o(){let f=[...t.names.map(u),...t.skips.map(u).map(p=>"-"+p)].join(",");return t.enable(""),f}function a(f){if(f[f.length-1]==="*")return!0;let p,v;for(p=0,v=t.skips.length;p<v;p++)if(t.skips[p].test(f))return!1;for(p=0,v=t.names.length;p<v;p++)if(t.names[p].test(f))return!0;return!1}function u(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}function c(f){return f instanceof Error?f.stack||f.message:f}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}ns.exports=kp});var is=g((Re,pt)=>{Re.formatArgs=Lp;Re.save=Np;Re.load=Mp;Re.useColors=Fp;Re.storage=qp();Re.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Re.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Fp(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Lp(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+pt.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;e.splice(1,0,r,"color: inherit");let t=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(t++,i==="%c"&&(n=t))}),e.splice(n,0,r)}Re.log=console.debug||console.log||(()=>{});function Np(e){try{e?Re.storage.setItem("debug",e):Re.storage.removeItem("debug")}catch{}}function Mp(){let e;try{e=Re.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function qp(){try{return localStorage}catch{}}pt.exports=In()(Re);var{formatters:jp}=pt.exports;jp.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}}});var ss=g((R0,os)=>{"use strict";os.exports=(e,r=process.argv)=>{let t=e.startsWith("-")?"":e.length===1?"-":"--",n=r.indexOf(t+e),i=r.indexOf("--");return n!==-1&&(i===-1||n<i)}});var cs=g((O0,us)=>{"use strict";var $p=require("os"),as=require("tty"),De=ss(),{env:ne}=process,je;De("no-color")||De("no-colors")||De("color=false")||De("color=never")?je=0:(De("color")||De("colors")||De("color=true")||De("color=always"))&&(je=1);"FORCE_COLOR"in ne&&(ne.FORCE_COLOR==="true"?je=1:ne.FORCE_COLOR==="false"?je=0:je=ne.FORCE_COLOR.length===0?1:Math.min(parseInt(ne.FORCE_COLOR,10),3));function Pn(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function An(e,r){if(je===0)return 0;if(De("color=16m")||De("color=full")||De("color=truecolor"))return 3;if(De("color=256"))return 2;if(e&&!r&&je===void 0)return 0;let t=je||0;if(ne.TERM==="dumb")return t;if(process.platform==="win32"){let n=$p.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in ne)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in ne)||ne.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in ne)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ne.TEAMCITY_VERSION)?1:0;if(ne.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ne){let n=parseInt((ne.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ne.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ne.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ne.TERM)||"COLORTERM"in ne?1:t}function Bp(e){let r=An(e,e&&e.isTTY);return Pn(r)}us.exports={supportsColor:Bp,stdout:Pn(An(!0,as.isatty(1))),stderr:Pn(An(!0,as.isatty(2)))}});var fs=g((oe,mt)=>{var Gp=require("tty"),ht=require("util");oe.init=Xp;oe.log=Wp;oe.formatArgs=Yp;oe.save=Vp;oe.load=zp;oe.useColors=Up;oe.destroy=ht.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");oe.colors=[6,2,3,4,5,1];try{let e=cs();e&&(e.stderr||e).level>=2&&(oe.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}oe.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,r)=>{let t=r.substring(6).toLowerCase().replace(/_([a-z])/g,(i,o)=>o.toUpperCase()),n=process.env[r];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[t]=n,e},{});function Up(){return"colors"in oe.inspectOpts?!!oe.inspectOpts.colors:Gp.isatty(process.stderr.fd)}function Yp(e){let{namespace:r,useColors:t}=this;if(t){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${i};1m${r} \x1B[0m`;e[0]=o+e[0].split(`
|
|
3
3
|
`).join(`
|
|
4
|
-
`+
|
|
5
|
-
`)}function
|
|
6
|
-
`).map(t=>t.trim()).join(" ")};ts.O=function(e){return this.inspectOpts.colors=this.useColors,zt.inspect(e,this.inspectOpts)}});var ns=v((Qp,Kr)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Kr.exports=Yi():Kr.exports=rs()});var ss=v((Zp,is)=>{var ht;is.exports=function(){if(!ht){try{ht=ns()("follow-redirects")}catch{}typeof ht!="function"&&(ht=function(){})}ht.apply(null,arguments)}});var nn=v((em,rn)=>{var De=require("url"),Qr=De.URL,pf=require("http"),mf=require("https"),cs=require("stream").Writable,us=require("assert"),ls=ss(),en=["abort","aborted","connect","error","socket","timeout"],tn=Object.create(null);en.forEach(function(e){tn[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var yf=pt("ERR_INVALID_URL","Invalid URL",TypeError),os=pt("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),gf=pt("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),vf=pt("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),bf=pt("ERR_STREAM_WRITE_AFTER_END","write after end");function de(e,t){cs.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}de.prototype=Object.create(cs.prototype);de.prototype.abort=function(){hs(this._currentRequest),this.emit("abort")};de.prototype.write=function(e,t,r){if(this._ending)throw new bf;if(!je(e)&&!xf(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(dt(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new vf),this.abort())};de.prototype.end=function(e,t,r){if(dt(e)?(r=e,e=t=null):dt(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(e,t,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};de.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};de.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};de.prototype.setTimeout=function(e,t){var r=this;function n(o){o.setTimeout(e),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function i(o){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),n(o)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){de.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(de.prototype,e,{get:function(){return this._currentRequest[e]}})});de.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};de.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of en)n.on(i,tn[i]);if(this._currentUrl=/^\//.test(this._options.path)?De.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function c(d){if(n===o._currentRequest)if(d)o.emit("error",d);else if(s<a.length){var f=a[s++];n.finished||n.write(f.data,f.encoding,c)}else o._ended&&n.end()})()}};de.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(hs(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new gf);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Zr(/^content-/i,this._options.headers));var o=Zr(/^host$/i,this._options.headers),a=De.parse(this._currentUrl),c=o||a.host,d=/^\w+:/.test(r)?this._currentUrl:De.format(Object.assign(a,{host:c})),f;try{f=De.resolve(d,r)}catch(S){this.emit("error",new os({cause:S}));return}ls("redirecting to",f),this._isRedirect=!0;var p=De.parse(f);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==c&&!Sf(p.host,c))&&Zr(/^(?:authorization|cookie)$/i,this._options.headers),dt(i)){var y={headers:e.headers,statusCode:t},m={url:d,method:s,headers:n};try{i(this._options,y,m)}catch(S){this.emit("error",S);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(S){this.emit("error",new os({cause:S}))}};function fs(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",s=r[i]=e[n],o=t[n]=Object.create(s);function a(d,f,p){if(je(d)){var y;try{y=as(new Qr(d))}catch{y=De.parse(d)}if(!je(y.protocol))throw new yf({input:d});d=y}else Qr&&d instanceof Qr?d=as(d):(p=f,f=d,d={protocol:i});return dt(f)&&(p=f,f=null),f=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},d,f),f.nativeProtocols=r,!je(f.host)&&!je(f.hostname)&&(f.hostname="::1"),us.equal(f.protocol,i,"protocol mismatch"),ls("options",f),new de(f,p)}function c(d,f,p){var y=o.request(d,f,p);return y.end(),y}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function wf(){}function as(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};return e.port!==""&&(t.port=Number(e.port)),t}function Zr(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function pt(e,t,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n}function hs(e){for(var t of en)e.removeListener(t,tn[t]);e.on("error",wf),e.abort()}function Sf(e,t){us(je(e)&&je(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function je(e){return typeof e=="string"||e instanceof String}function dt(e){return typeof e=="function"}function xf(e){return typeof e=="object"&&"length"in e}rn.exports=fs({http:pf,https:mf});rn.exports.wrap=fs});var sn=v((tm,Ef)=>{Ef.exports={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]}});var vs=v((rm,gs)=>{"use strict";var mt=ne(),ds=Ur(),_f=Gr(),Cf=Dt(),kf=require("http"),Of=require("https"),Rf=nn().http,Pf=nn().https,ps=require("url"),Af=require("zlib"),Mf=sn(),Wt=Bt(),on=Lt(),ms=/https:?/;function ys(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(s){s.headers.host=s.host,ys(s,t,s.href)}}gs.exports=function(t){return new Promise(function(n,i){var s=function(_){n(_)},o=function(_){i(_)},a=t.data,c=t.headers;if("User-Agent"in c||"user-agent"in c?!c["User-Agent"]&&!c["user-agent"]&&(delete c["User-Agent"],delete c["user-agent"]):c["User-Agent"]="axios/"+Mf.version,a&&!mt.isStream(a)){if(!Buffer.isBuffer(a))if(mt.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(mt.isString(a))a=Buffer.from(a,"utf-8");else return o(Wt("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));c["Content-Length"]=a.length}var d=void 0;if(t.auth){var f=t.auth.username||"",p=t.auth.password||"";d=f+":"+p}var y=_f(t.baseURL,t.url),m=ps.parse(y),S=m.protocol||"http:";if(!d&&m.auth){var O=m.auth.split(":"),R=O[0]||"",q=O[1]||"";d=R+":"+q}d&&delete c.Authorization;var B=ms.test(S),G=B?t.httpsAgent:t.httpAgent,U={path:Cf(m.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:c,agent:G,agents:{http:t.httpAgent,https:t.httpsAgent},auth:d};t.socketPath?U.socketPath=t.socketPath:(U.hostname=m.hostname,U.port=m.port);var re=t.proxy;if(!re&&re!==!1){var ve=S.slice(0,-1)+"_proxy",Ce=process.env[ve]||process.env[ve.toUpperCase()];if(Ce){var ae=ps.parse(Ce),k=process.env.no_proxy||process.env.NO_PROXY,F=!0;if(k){var T=k.split(",").map(function(_){return _.trim()});F=!T.some(function(_){return _?_==="*"||_[0]==="."&&m.hostname.substr(m.hostname.length-_.length)===_?!0:m.hostname===_:!1})}if(F&&(re={host:ae.hostname,port:ae.port,protocol:ae.protocol},ae.auth)){var $=ae.auth.split(":");re.auth={username:$[0],password:$[1]}}}}re&&(U.headers.host=m.hostname+(m.port?":"+m.port:""),ys(U,re,S+"//"+m.hostname+(m.port?":"+m.port:"")+U.path));var P,L=B&&(re?ms.test(re.protocol):!0);t.transport?P=t.transport:t.maxRedirects===0?P=L?Of:kf:(t.maxRedirects&&(U.maxRedirects=t.maxRedirects),P=L?Pf:Rf),t.maxBodyLength>-1&&(U.maxBodyLength=t.maxBodyLength);var C=P.request(U,function(_){if(!C.aborted){var A=_,ke=_.req||C;if(_.statusCode!==204&&ke.method!=="HEAD"&&t.decompress!==!1)switch(_.headers["content-encoding"]){case"gzip":case"compress":case"deflate":A=A.pipe(Af.createUnzip()),delete _.headers["content-encoding"];break}var Fe={status:_.statusCode,statusText:_.statusMessage,headers:_.headers,config:t,request:ke};if(t.responseType==="stream")Fe.data=A,ds(s,o,Fe);else{var ce=[],pe=0;A.on("data",function(me){ce.push(me),pe+=me.length,t.maxContentLength>-1&&pe>t.maxContentLength&&(A.destroy(),o(Wt("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,ke)))}),A.on("error",function(me){C.aborted||o(on(me,t,null,ke))}),A.on("end",function(){var me=Buffer.concat(ce);t.responseType!=="arraybuffer"&&(me=me.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(me=mt.stripBOM(me))),Fe.data=me,ds(s,o,Fe)})}}});if(C.on("error",function(_){C.aborted&&_.code!=="ERR_FR_TOO_MANY_REDIRECTS"||o(on(_,t,null,C))}),t.timeout){var N=parseInt(t.timeout,10);if(isNaN(N)){o(Wt("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",C));return}C.setTimeout(N,function(){C.abort(),o(Wt("timeout of "+N+"ms exceeded",t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",C))})}t.cancelToken&&t.cancelToken.promise.then(function(_){C.aborted||(C.abort(),o(_))}),mt.isStream(a)?a.on("error",function(_){o(on(_,t,null,C))}).pipe(C):C.end(a)})}});var Xt=v((nm,Ss)=>{"use strict";var Y=ne(),bs=Pi(),qf=Lt(),Tf={"Content-Type":"application/x-www-form-urlencoded"};function ws(e,t){!Y.isUndefined(e)&&Y.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function Ff(){var e;return typeof XMLHttpRequest<"u"?e=Ji():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=vs()),e}function If(e,t,r){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Vt={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Ff(),transformRequest:[function(t,r){return bs(r,"Accept"),bs(r,"Content-Type"),Y.isFormData(t)||Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t)?t:Y.isArrayBufferView(t)?t.buffer:Y.isURLSearchParams(t)?(ws(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Y.isObject(t)||r&&r["Content-Type"]==="application/json"?(ws(r,"application/json"),If(t)):t}],transformResponse:[function(t){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||i&&Y.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?qf(o,this,"E_JSON_PARSE"):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Vt.headers={common:{Accept:"application/json, text/plain, */*"}};Y.forEach(["delete","get","head"],function(t){Vt.headers[t]={}});Y.forEach(["post","put","patch"],function(t){Vt.headers[t]=Y.merge(Tf)});Ss.exports=Vt});var Es=v((im,xs)=>{"use strict";var Nf=ne(),Df=Xt();xs.exports=function(t,r,n){var i=this||Df;return Nf.forEach(n,function(o){t=o.call(i,t,r)}),t}});var an=v((sm,_s)=>{"use strict";_s.exports=function(t){return!!(t&&t.__CANCEL__)}});var Os=v((om,ks)=>{"use strict";var Cs=ne(),cn=Es(),jf=an(),Lf=Xt();function un(e){e.cancelToken&&e.cancelToken.throwIfRequested()}ks.exports=function(t){un(t),t.headers=t.headers||{},t.data=cn.call(t,t.data,t.headers,t.transformRequest),t.headers=Cs.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Cs.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||Lf.adapter;return r(t).then(function(i){return un(t),i.data=cn.call(t,i.data,i.headers,t.transformResponse),i},function(i){return jf(i)||(un(t),i&&i.response&&(i.response.data=cn.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})}});var ln=v((am,Rs)=>{"use strict";var Q=ne();Rs.exports=function(t,r){r=r||{};var n={},i=["url","method","data"],s=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(y,m){return Q.isPlainObject(y)&&Q.isPlainObject(m)?Q.merge(y,m):Q.isPlainObject(m)?Q.merge({},m):Q.isArray(m)?m.slice():m}function d(y){Q.isUndefined(r[y])?Q.isUndefined(t[y])||(n[y]=c(void 0,t[y])):n[y]=c(t[y],r[y])}Q.forEach(i,function(m){Q.isUndefined(r[m])||(n[m]=c(void 0,r[m]))}),Q.forEach(s,d),Q.forEach(o,function(m){Q.isUndefined(r[m])?Q.isUndefined(t[m])||(n[m]=c(void 0,t[m])):n[m]=c(void 0,r[m])}),Q.forEach(a,function(m){m in r?n[m]=c(t[m],r[m]):m in t&&(n[m]=c(void 0,t[m]))});var f=i.concat(s).concat(o).concat(a),p=Object.keys(t).concat(Object.keys(r)).filter(function(m){return f.indexOf(m)===-1});return Q.forEach(p,d),n}});var Ts=v((cm,qs)=>{"use strict";var As=sn(),fn={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){fn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Ps={},Bf=As.version.split(".");function Ms(e,t){for(var r=t?t.split("."):Bf,n=e.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}fn.transitional=function(t,r,n){var i=r&&Ms(r);function s(o,a){return"[Axios v"+As.version+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,c){if(t===!1)throw new Error(s(a," has been removed in "+r));return i&&!Ps[a]&&(Ps[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,c):!0}};function $f(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var s=n[i],o=t[s];if(o){var a=e[s],c=a===void 0||o(a,s,e);if(c!==!0)throw new TypeError("option "+s+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+s)}}qs.exports={isOlderVersion:Ms,assertOptions:$f,validators:fn}});var Ls=v((um,js)=>{"use strict";var Ns=ne(),Hf=Dt(),Fs=Oi(),Is=Os(),Yt=ln(),Ds=Ts(),We=Ds.validators;function yt(e){this.defaults=e,this.interceptors={request:new Fs,response:new Fs}}yt.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Yt(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&Ds.assertOptions(r,{silentJSONParsing:We.transitional(We.boolean,"1.0.0"),forcedJSONParsing:We.transitional(We.boolean,"1.0.0"),clarifyTimeoutError:We.transitional(We.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(t)===!1||(i=i&&y.synchronous,n.unshift(y.fulfilled,y.rejected))});var s=[];this.interceptors.response.forEach(function(y){s.push(y.fulfilled,y.rejected)});var o;if(!i){var a=[Is,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(s),o=Promise.resolve(t);a.length;)o=o.then(a.shift(),a.shift());return o}for(var c=t;n.length;){var d=n.shift(),f=n.shift();try{c=d(c)}catch(p){f(p);break}}try{o=Is(c)}catch(p){return Promise.reject(p)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};yt.prototype.getUri=function(t){return t=Yt(this.defaults,t),Hf(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Ns.forEach(["delete","get","head","options"],function(t){yt.prototype[t]=function(r,n){return this.request(Yt(n||{},{method:t,url:r,data:(n||{}).data}))}});Ns.forEach(["post","put","patch"],function(t){yt.prototype[t]=function(r,n,i){return this.request(Yt(i||{},{method:t,url:r,data:n}))}});js.exports=yt});var dn=v((lm,Bs)=>{"use strict";function hn(e){this.message=e}hn.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};hn.prototype.__CANCEL__=!0;Bs.exports=hn});var Hs=v((fm,$s)=>{"use strict";var Uf=dn();function Kt(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var r=this;e(function(i){r.reason||(r.reason=new Uf(i),t(r.reason))})}Kt.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Kt.source=function(){var t,r=new Kt(function(i){t=i});return{token:r,cancel:t}};$s.exports=Kt});var Gs=v((hm,Us)=>{"use strict";Us.exports=function(t){return function(n){return t.apply(null,n)}}});var Js=v((dm,zs)=>{"use strict";zs.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var Xs=v((pm,pn)=>{"use strict";var Ws=ne(),Gf=jr(),Qt=Ls(),zf=ln(),Jf=Xt();function Vs(e){var t=new Qt(e),r=Gf(Qt.prototype.request,t);return Ws.extend(r,Qt.prototype,t),Ws.extend(r,t),r}var we=Vs(Jf);we.Axios=Qt;we.create=function(t){return Vs(zf(we.defaults,t))};we.Cancel=dn();we.CancelToken=Hs();we.isCancel=an();we.all=function(t){return Promise.all(t)};we.spread=Gs();we.isAxiosError=Js();pn.exports=we;pn.exports.default=we});var mn=v((mm,Ys)=>{Ys.exports=Xs()});var Qs=v((ym,Ks)=>{"use strict";var Wf=/[|\\{}()[\]^$+*?.]/g;Ks.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Wf,"\\$&")}});var eo=v((gm,Zs)=>{"use strict";Zs.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]}});var yn=v((vm,io)=>{var Le=eo(),no={};for(Zt in Le)Le.hasOwnProperty(Zt)&&(no[Le[Zt]]=Zt);var Zt,x=io.exports={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"]}};for(ie in x)if(x.hasOwnProperty(ie)){if(!("channels"in x[ie]))throw new Error("missing channels property: "+ie);if(!("labels"in x[ie]))throw new Error("missing channel labels property: "+ie);if(x[ie].labels.length!==x[ie].channels)throw new Error("channel and label counts mismatch: "+ie);to=x[ie].channels,ro=x[ie].labels,delete x[ie].channels,delete x[ie].labels,Object.defineProperty(x[ie],"channels",{value:to}),Object.defineProperty(x[ie],"labels",{value:ro})}var to,ro,ie;x.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,c,d;return s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),d=(i+s)/2,s===i?c=0:d<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,d*100]};x.rgb.hsv=function(e){var t,r,n,i,s,o=e[0]/255,a=e[1]/255,c=e[2]/255,d=Math.max(o,a,c),f=d-Math.min(o,a,c),p=function(y){return(d-y)/6/f+1/2};return f===0?i=s=0:(s=f/d,t=p(o),r=p(a),n=p(c),o===d?i=n-r:a===d?i=1/3+t-n:c===d&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,d*100]};x.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=x.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};x.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,s,o,a;return a=Math.min(1-t,1-r,1-n),i=(1-t-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function Vf(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}x.rgb.keyword=function(e){var t=no[e];if(t)return t;var r=1/0,n;for(var i in Le)if(Le.hasOwnProperty(i)){var s=Le[i],o=Vf(e,s);o<r&&(r=o,n=i)}return n};x.keyword.rgb=function(e){return Le[e]};x.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};x.rgb.lab=function(e){var t=x.rgb.xyz(e),r=t[0],n=t[1],i=t[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};x.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o,a,c;if(r===0)return c=n*255,[c,c,c];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var d=0;d<3;d++)o=t+1/3*-(d-1),o<0&&o++,o>1&&o--,6*o<1?c=i+(s-i)*6*o:2*o<1?c=s:3*o<2?c=i+(s-i)*(2/3-o)*6:c=i,a[d]=c*255;return a};x.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[t,o*100,a*100]};x.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};x.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]};x.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,o,a,c;i>1&&(r/=i,n/=i),s=Math.floor(6*t),o=1-n,a=6*t-s,s&1&&(a=1-a),c=r+a*(o-r);var d,f,p;switch(s){default:case 6:case 0:d=o,f=c,p=r;break;case 1:d=c,f=o,p=r;break;case 2:d=r,f=o,p=c;break;case 3:d=r,f=c,p=o;break;case 4:d=c,f=r,p=o;break;case 5:d=o,f=r,p=c;break}return[d*255,f*255,p*255]};x.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s,o,a;return s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};x.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};x.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(t-r),o=200*(r-n),[i,s,o]};x.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),c=Math.pow(i,3),d=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=d>.008856?d:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};x.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[t,o,s]};x.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[t,i,s]};x.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:x.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(s+=60),s};x.hsv.ansi16=function(e){return x.rgb.ansi16(x.hsv.rgb(e),e[2])};x.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};x.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};x.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};x.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};x.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};x.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===t?c=(r-n)/o%6:i===r?c=2+(n-t)/o:c=4+(t-r)/o+4,c/=6,c%=1,[c*360,o*100,a*100]};x.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};x.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};x.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=t%1*6,o=s%1,a=1-o,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};x.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};x.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};x.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};x.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};x.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};x.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};x.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};x.gray.hsl=x.gray.hsv=function(e){return[0,0,e[0]]};x.gray.hwb=function(e){return[0,100,e[0]]};x.gray.cmyk=function(e){return[0,0,0,e[0]]};x.gray.lab=function(e){return[e[0],0,0]};x.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};x.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var oo=v((bm,so)=>{var er=yn();function Xf(){for(var e={},t=Object.keys(er),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Yf(e){var t=Xf(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(er[n]),s=i.length,o=0;o<s;o++){var a=i[o],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}return t}function Kf(e,t){return function(r){return t(e(r))}}function Qf(e,t){for(var r=[t[e].parent,e],n=er[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=Kf(er[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}so.exports=function(e){for(var t=Yf(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var o=n[s],a=t[o];a.parent!==null&&(r[o]=Qf(o,t))}return r}});var co=v((wm,ao)=>{var gn=yn(),Zf=oo(),Ve={},eh=Object.keys(gn);function th(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function rh(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}eh.forEach(function(e){Ve[e]={},Object.defineProperty(Ve[e],"channels",{value:gn[e].channels}),Object.defineProperty(Ve[e],"labels",{value:gn[e].labels});var t=Zf(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];Ve[e][n]=rh(i),Ve[e][n].raw=th(i)})});ao.exports=Ve});var lo=v((Sm,uo)=>{"use strict";var Xe=co(),tr=(e,t)=>function(){return`\x1B[${e.apply(Xe,arguments)+t}m`},rr=(e,t)=>function(){let r=e.apply(Xe,arguments);return`\x1B[${38+t};5;${r}m`},nr=(e,t)=>function(){let r=e.apply(Xe,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function nh(){let e=new Map,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],gray:[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.grey=t.color.gray;for(let i of Object.keys(t)){let s=t[i];for(let o of Object.keys(s)){let a=s[o];t[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=t[o],e.set(a[0],a[1])}Object.defineProperty(t,i,{value:s,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:tr(r,0)},t.color.ansi256={ansi256:rr(r,0)},t.color.ansi16m={rgb:nr(n,0)},t.bgColor.ansi={ansi:tr(r,10)},t.bgColor.ansi256={ansi256:rr(r,10)},t.bgColor.ansi16m={rgb:nr(n,10)};for(let i of Object.keys(Xe)){if(typeof Xe[i]!="object")continue;let s=Xe[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(t.color.ansi[i]=tr(s.ansi16,0),t.bgColor.ansi[i]=tr(s.ansi16,10)),"ansi256"in s&&(t.color.ansi256[i]=rr(s.ansi256,0),t.bgColor.ansi256[i]=rr(s.ansi256,10)),"rgb"in s&&(t.color.ansi16m[i]=nr(s.rgb,0),t.bgColor.ansi16m[i]=nr(s.rgb,10))}return t}Object.defineProperty(uo,"exports",{enumerable:!0,get:nh})});var ho=v((xm,fo)=>{"use strict";fo.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var mo=v((Em,po)=>{"use strict";var ih=require("os"),Se=ho(),Z=process.env,Ye;Se("no-color")||Se("no-colors")||Se("color=false")?Ye=!1:(Se("color")||Se("colors")||Se("color=true")||Se("color=always"))&&(Ye=!0);"FORCE_COLOR"in Z&&(Ye=Z.FORCE_COLOR.length===0||parseInt(Z.FORCE_COLOR,10)!==0);function sh(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function oh(e){if(Ye===!1)return 0;if(Se("color=16m")||Se("color=full")||Se("color=truecolor"))return 3;if(Se("color=256"))return 2;if(e&&!e.isTTY&&Ye!==!0)return 0;let t=Ye?1:0;if(process.platform==="win32"){let r=ih.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in Z)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in Z)||Z.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in Z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0;if(Z.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Z){let r=parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)||"COLORTERM"in Z?1:(Z.TERM==="dumb",t)}function vn(e){let t=oh(e);return sh(t)}po.exports={supportsColor:vn,stdout:vn(process.stdout),stderr:vn(process.stderr)}});var wo=v((_m,bo)=>{"use strict";var ah=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,yo=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,ch=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,uh=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,lh=new Map([["n",`
|
|
7
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function
|
|
8
|
-
`,
|
|
9
|
-
GFS4: `),console.error(e)});H[K]||(No=global[K]||[],jo(H,No),H.close=function(e){function t(r,n){return e.call(H,r,function(i){i||Do(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,lr,{value:e}),t}(H.close),H.closeSync=function(e){function t(r){e.apply(H,arguments),Do()}return Object.defineProperty(t,lr,{value:e}),t}(H.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Be(H[K]),require("assert").equal(H[K].length,0)}));var No;global[K]||jo(global,H[K]);Rn.exports=kn(qh(H));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!H.__patched&&(Rn.exports=kn(H),H.__patched=!0);function kn(e){Ah(e),e.gracefulify=kn,e.createReadStream=re,e.createWriteStream=ve;var t=e.readFile;e.readFile=r;function r(k,F,T){return typeof F=="function"&&(T=F,F=null),$(k,F,T);function $(P,L,C,N){return t(P,L,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?Qe([$,[P,L,C],M,N||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(k,F,T,$){return typeof T=="function"&&($=T,T=null),P(k,F,T,$);function P(L,C,N,M,_){return n(L,C,N,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Qe([P,[L,C,N,M],A,_||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(k,F,T,$){return typeof T=="function"&&($=T,T=null),P(k,F,T,$);function P(L,C,N,M,_){return s(L,C,N,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Qe([P,[L,C,N,M],A,_||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=c);function c(k,F,T,$){return typeof T=="function"&&($=T,T=0),P(k,F,T,$);function P(L,C,N,M,_){return a(L,C,N,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Qe([P,[L,C,N,M],A,_||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var d=e.readdir;e.readdir=p;var f=/^v[0-5]\./;function p(k,F,T){typeof F=="function"&&(T=F,F=null);var $=f.test(process.version)?function(C,N,M,_){return d(C,P(C,N,M,_))}:function(C,N,M,_){return d(C,N,P(C,N,M,_))};return $(k,F,T);function P(L,C,N,M){return function(_,A){_&&(_.code==="EMFILE"||_.code==="ENFILE")?Qe([$,[L,C,N],_,M||Date.now(),Date.now()]):(A&&A.sort&&A.sort(),typeof N=="function"&&N.call(this,_,A))}}}if(process.version.substr(0,4)==="v0.8"){var y=Mh(e);q=y.ReadStream,G=y.WriteStream}var m=e.ReadStream;m&&(q.prototype=Object.create(m.prototype),q.prototype.open=B);var S=e.WriteStream;S&&(G.prototype=Object.create(S.prototype),G.prototype.open=U),Object.defineProperty(e,"ReadStream",{get:function(){return q},set:function(k){q=k},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return G},set:function(k){G=k},enumerable:!0,configurable:!0});var O=q;Object.defineProperty(e,"FileReadStream",{get:function(){return O},set:function(k){O=k},enumerable:!0,configurable:!0});var R=G;Object.defineProperty(e,"FileWriteStream",{get:function(){return R},set:function(k){R=k},enumerable:!0,configurable:!0});function q(k,F){return this instanceof q?(m.apply(this,arguments),this):q.apply(Object.create(q.prototype),arguments)}function B(){var k=this;ae(k.path,k.flags,k.mode,function(F,T){F?(k.autoClose&&k.destroy(),k.emit("error",F)):(k.fd=T,k.emit("open",T),k.read())})}function G(k,F){return this instanceof G?(S.apply(this,arguments),this):G.apply(Object.create(G.prototype),arguments)}function U(){var k=this;ae(k.path,k.flags,k.mode,function(F,T){F?(k.destroy(),k.emit("error",F)):(k.fd=T,k.emit("open",T))})}function re(k,F){return new e.ReadStream(k,F)}function ve(k,F){return new e.WriteStream(k,F)}var Ce=e.open;e.open=ae;function ae(k,F,T,$){return typeof T=="function"&&($=T,T=null),P(k,F,T,$);function P(L,C,N,M,_){return Ce(L,C,N,function(A,ke){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Qe([P,[L,C,N,M],A,_||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}return e}function Qe(e){Be("ENQUEUE",e[0].name,e[1]),H[K].push(e),On()}var ur;function Do(){for(var e=Date.now(),t=0;t<H[K].length;++t)H[K][t].length>2&&(H[K][t][3]=e,H[K][t][4]=e);On()}function On(){if(clearTimeout(ur),ur=void 0,H[K].length!==0){var e=H[K].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)Be("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Be("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,c=Math.max(s-i,1),d=Math.min(c*1.2,100);a>=d?(Be("RETRY",t.name,r),t.apply(null,r.concat([i]))):H[K].push(e)}ur===void 0&&(ur=setTimeout(On,0))}}});var bt=v(Pe=>{"use strict";var Lo=ue().fromCallback,se=ee(),Fh=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof se[e]=="function");Object.keys(se).forEach(e=>{e!=="promises"&&(Pe[e]=se[e])});Fh.forEach(e=>{Pe[e]=Lo(se[e])});Pe.exists=function(e,t){return typeof t=="function"?se.exists(e,t):new Promise(r=>se.exists(e,r))};Pe.read=function(e,t,r,n,i,s){return typeof s=="function"?se.read(e,t,r,n,i,s):new Promise((o,a)=>{se.read(e,t,r,n,i,(c,d,f)=>{if(c)return a(c);o({bytesRead:d,buffer:f})})})};Pe.write=function(e,t,...r){return typeof r[r.length-1]=="function"?se.write(e,t,...r):new Promise((n,i)=>{se.write(e,t,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof se.writev=="function"&&(Pe.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?se.writev(e,t,...r):new Promise((n,i)=>{se.writev(e,t,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof se.realpath.native=="function"&&(Pe.realpath.native=Lo(se.realpath.native))});var Pn=v((Fm,Bo)=>{Bo.exports=e=>{let t=process.versions.node.split(".").map(r=>parseInt(r,10));return e=e.split(".").map(r=>parseInt(r,10)),t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}});var zo=v((Im,An)=>{"use strict";var Ze=bt(),_e=require("path"),Ih=Pn(),$o=Ih("10.12.0"),Ho=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(_e.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},Uo=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),{...t,...e}},Go=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};An.exports.makeDir=async(e,t)=>{if(Ho(e),t=Uo(t),$o){let n=_e.resolve(e);return Ze.mkdir(n,{mode:t.mode,recursive:!0})}let r=async n=>{try{await Ze.mkdir(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(_e.dirname(n)===n)throw Go(n);if(i.message.includes("null bytes"))throw i;return await r(_e.dirname(n)),r(n)}try{if(!(await Ze.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(_e.resolve(e))};An.exports.makeDirSync=(e,t)=>{if(Ho(e),t=Uo(t),$o){let n=_e.resolve(e);return Ze.mkdirSync(n,{mode:t.mode,recursive:!0})}let r=n=>{try{Ze.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(_e.dirname(n)===n)throw Go(n);if(i.message.includes("null bytes"))throw i;return r(_e.dirname(n)),r(n)}try{if(!Ze.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(_e.resolve(e))}});var xe=v((Nm,Jo)=>{"use strict";var Nh=ue().fromPromise,{makeDir:Dh,makeDirSync:Mn}=zo(),qn=Nh(Dh);Jo.exports={mkdirs:qn,mkdirsSync:Mn,mkdirp:qn,mkdirpSync:Mn,ensureDir:qn,ensureDirSync:Mn}});var Tn=v((Dm,Wo)=>{"use strict";var et=ee();function jh(e,t,r,n){et.open(e,"r+",(i,s)=>{if(i)return n(i);et.futimes(s,t,r,o=>{et.close(s,a=>{n&&n(o||a)})})})}function Lh(e,t,r){let n=et.openSync(e,"r+");return et.futimesSync(n,t,r),et.closeSync(n)}Wo.exports={utimesMillis:jh,utimesMillisSync:Lh}});var wt=v((jm,Ko)=>{"use strict";var tt=bt(),le=require("path"),Bh=require("util"),$h=Pn(),fr=$h("10.5.0"),Vo=e=>fr?tt.stat(e,{bigint:!0}):tt.stat(e),Fn=e=>fr?tt.statSync(e,{bigint:!0}):tt.statSync(e);function Hh(e,t){return Promise.all([Vo(e),Vo(t).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function Uh(e,t){let r,n=Fn(e);try{r=Fn(t)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function Gh(e,t,r,n){Bh.callbackify(Hh)(e,t,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&hr(o,a)?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&In(e,t)?n(new Error(dr(e,t,r))):n(null,{srcStat:o,destStat:a})})}function zh(e,t,r){let{srcStat:n,destStat:i}=Uh(e,t);if(i&&hr(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&In(e,t))throw new Error(dr(e,t,r));return{srcStat:n,destStat:i}}function Xo(e,t,r,n,i){let s=le.resolve(le.dirname(e)),o=le.resolve(le.dirname(r));if(o===s||o===le.parse(o).root)return i();let a=(c,d)=>c?c.code==="ENOENT"?i():i(c):hr(t,d)?i(new Error(dr(e,r,n))):Xo(e,t,o,n,i);fr?tt.stat(o,{bigint:!0},a):tt.stat(o,a)}function Yo(e,t,r,n){let i=le.resolve(le.dirname(e)),s=le.resolve(le.dirname(r));if(s===i||s===le.parse(s).root)return;let o;try{o=Fn(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(hr(t,o))throw new Error(dr(e,r,n));return Yo(e,t,s,n)}function hr(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(fr||t.ino<Number.MAX_SAFE_INTEGER||t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs))}function In(e,t){let r=le.resolve(e).split(le.sep).filter(i=>i),n=le.resolve(t).split(le.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function dr(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}Ko.exports={checkPaths:Gh,checkPathsSync:zh,checkParentPaths:Xo,checkParentPathsSync:Yo,isSrcSubdir:In}});var ra=v((Lm,ta)=>{"use strict";var te=ee(),St=require("path"),Jh=xe().mkdirsSync,Wh=Tn().utimesMillisSync,xt=wt();function Vh(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
10
|
-
|
|
11
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=
|
|
12
|
-
|
|
13
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),
|
|
14
|
-
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s}function K0(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}ic.exports={stringify:Y0,stripBom:K0}});var cc=v((e1,ac)=>{var nt;try{nt=ee()}catch{nt=require("fs")}var Sr=ue(),{stringify:sc,stripBom:oc}=wr();async function Q0(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||nt,n="throws"in t?t.throws:!0,i=await Sr.fromCallback(r.readFile)(e,t);i=oc(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(o){if(n)throw o.message=`${e}: ${o.message}`,o;return null}return s}var Z0=Sr.fromPromise(Q0);function ed(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||nt,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=oc(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function td(e,t,r={}){let n=r.fs||nt,i=sc(t,r);await Sr.fromCallback(n.writeFile)(e,i,r)}var rd=Sr.fromPromise(td);function nd(e,t,r={}){let n=r.fs||nt,i=sc(t,r);return n.writeFileSync(e,i,r)}var id={readFile:Z0,readFileSync:ed,writeFile:rd,writeFileSync:nd};ac.exports=id});var lc=v((t1,uc)=>{"use strict";var xr=cc();uc.exports={readJson:xr.readFile,readJsonSync:xr.readFileSync,writeJson:xr.writeFile,writeJsonSync:xr.writeFileSync}});var Er=v((r1,dc)=>{"use strict";var sd=ue().fromCallback,Rt=ee(),fc=require("path"),hc=xe(),od=Ae().pathExists;function ad(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=fc.dirname(e);od(i,(s,o)=>{if(s)return n(s);if(o)return Rt.writeFile(e,t,r,n);hc.mkdirs(i,a=>{if(a)return n(a);Rt.writeFile(e,t,r,n)})})}function cd(e,...t){let r=fc.dirname(e);if(Rt.existsSync(r))return Rt.writeFileSync(e,...t);hc.mkdirsSync(r),Rt.writeFileSync(e,...t)}dc.exports={outputFile:sd(ad),outputFileSync:cd}});var mc=v((n1,pc)=>{"use strict";var{stringify:ud}=wr(),{outputFile:ld}=Er();async function fd(e,t,r={}){let n=ud(t,r);await ld(e,n,r)}pc.exports=fd});var gc=v((i1,yc)=>{"use strict";var{stringify:hd}=wr(),{outputFileSync:dd}=Er();function pd(e,t,r){let n=hd(t,r);dd(e,n,r)}yc.exports=pd});var bc=v((s1,vc)=>{"use strict";var md=ue().fromPromise,oe=lc();oe.outputJson=md(mc());oe.outputJsonSync=gc();oe.outputJSON=oe.outputJson;oe.outputJSONSync=oe.outputJsonSync;oe.writeJSON=oe.writeJson;oe.writeJSONSync=oe.writeJsonSync;oe.readJSON=oe.readJson;oe.readJSONSync=oe.readJsonSync;vc.exports=oe});var Cc=v((o1,_c)=>{"use strict";var xc=ee(),yd=require("path"),gd=Dn().copySync,Ec=kt().removeSync,vd=xe().mkdirpSync,wc=wt();function bd(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=wc.checkPathsSync(e,t,"move");return wc.checkParentPathsSync(e,i,t,"move"),vd(yd.dirname(t)),wd(e,t,n)}function wd(e,t,r){if(r)return Ec(t),Sc(e,t,r);if(xc.existsSync(t))throw new Error("dest already exists.");return Sc(e,t,r)}function Sc(e,t,r){try{xc.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return Sd(e,t,r)}}function Sd(e,t,r){return gd(e,t,{overwrite:r,errorOnExist:!0}),Ec(e)}_c.exports=bd});var Oc=v((a1,kc)=>{"use strict";kc.exports={moveSync:Cc()}});var qc=v((c1,Mc)=>{"use strict";var xd=ee(),Ed=require("path"),_d=Ln().copy,Ac=kt().remove,Cd=xe().mkdirp,kd=Ae().pathExists,Rc=wt();function Od(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;Rc.checkPaths(e,t,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;Rc.checkParentPaths(e,a,t,"move",c=>{if(c)return n(c);Cd(Ed.dirname(t),d=>d?n(d):Rd(e,t,i,n))})})}function Rd(e,t,r,n){if(r)return Ac(t,i=>i?n(i):Pc(e,t,r,n));kd(t,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):Pc(e,t,r,n))}function Pc(e,t,r,n){xd.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):Pd(e,t,r,n):n())}function Pd(e,t,r,n){_d(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):Ac(e,n))}Mc.exports=Od});var Fc=v((u1,Tc)=>{"use strict";var Ad=ue().fromCallback;Tc.exports={move:Ad(qc())}});var Pt=v((l1,$n)=>{"use strict";$n.exports={...bt(),...Dn(),...Ln(),...Fa(),...nc(),...bc(),...xe(),...Oc(),...Fc(),...Er(),...Ae(),...kt()};var Ic=require("fs");Object.getOwnPropertyDescriptor(Ic,"promises")&&Object.defineProperty($n.exports,"promises",{get(){return Ic.promises}})});var Dc=v((f1,Nc)=>{"use strict";Nc.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]}});var Hn=v((h1,Lc)=>{var At=Dc(),jc={};for(let e of Object.keys(At))jc[At[e]]=e;var E={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"]}};Lc.exports=E;for(let e of Object.keys(E)){if(!("channels"in E[e]))throw new Error("missing channels property: "+e);if(!("labels"in E[e]))throw new Error("missing channel labels property: "+e);if(E[e].labels.length!==E[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=E[e];delete E[e].channels,delete E[e].labels,Object.defineProperty(E[e],"channels",{value:t}),Object.defineProperty(E[e],"labels",{value:r})}E.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,c;s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let d=(i+s)/2;return s===i?c=0:d<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,d*100]};E.rgb.hsv=function(e){let t,r,n,i,s,o=e[0]/255,a=e[1]/255,c=e[2]/255,d=Math.max(o,a,c),f=d-Math.min(o,a,c),p=function(y){return(d-y)/6/f+1/2};return f===0?(i=0,s=0):(s=f/d,t=p(o),r=p(a),n=p(c),o===d?i=n-r:a===d?i=1/3+t-n:c===d&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,d*100]};E.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=E.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};E.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),s=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function Md(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}E.rgb.keyword=function(e){let t=jc[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(At)){let s=At[i],o=Md(e,s);o<r&&(r=o,n=i)}return n};E.keyword.rgb=function(e){return At[e]};E.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};E.rgb.lab=function(e){let t=E.rgb.xyz(e),r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};E.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,c=[0,0,0];for(let d=0;d<3;d++)s=t+1/3*-(d-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,c[d]=o*255;return c};E.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[t,a*100,o*100]};E.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};E.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[t,s*100,o*100]};E.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*t),a=1-n;s=6*t-o,o&1&&(s=1-s);let c=r+s*(a-r),d,f,p;switch(o){default:case 6:case 0:d=a,f=c,p=r;break;case 1:d=c,f=a,p=r;break;case 2:d=r,f=a,p=c;break;case 3:d=r,f=c,p=a;break;case 4:d=c,f=r,p=a;break;case 5:d=a,f=r,p=c;break}return[d*255,f*255,p*255]};E.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};E.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};E.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(t-r),o=200*(r-n);return[i,s,o]};E.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;let a=s**3,c=i**3,d=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=d>.008856?d:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};E.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[t,o,i]};E.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[t,s,o]};E.rgb.ansi16=function(e,t=null){let[r,n,i]=e,s=t===null?E.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};E.hsv.ansi16=function(e){return E.rgb.ansi16(E.hsv.rgb(e),e[2])};E.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};E.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};E.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};E.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};E.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};E.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===t?c=(r-n)/o%6:i===r?c=2+(n-t)/o:c=4+(t-r)/o,c/=6,c%=1,[c*360,o*100,a*100]};E.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};E.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};E.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=t%1*6,o=s%1,a=1-o,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};E.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};E.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};E.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};E.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};E.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};E.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};E.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};E.gray.hsl=function(e){return[0,0,e[0]]};E.gray.hsv=E.gray.hsl;E.gray.hwb=function(e){return[0,100,e[0]]};E.gray.cmyk=function(e){return[0,0,0,e[0]]};E.gray.lab=function(e){return[e[0],0,0]};E.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};E.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var $c=v((d1,Bc)=>{var _r=Hn();function qd(){let e={},t=Object.keys(_r);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Td(e){let t=qd(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(_r[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}}return t}function Fd(e,t){return function(r){return t(e(r))}}function Id(e,t){let r=[t[e].parent,e],n=_r[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=Fd(_r[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}Bc.exports=function(e){let t=Td(e),r={},n=Object.keys(t);for(let i=n.length,s=0;s<i;s++){let o=n[s];t[o].parent!==null&&(r[o]=Id(o,t))}return r}});var Uc=v((p1,Hc)=>{var Un=Hn(),Nd=$c(),it={},Dd=Object.keys(Un);function jd(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Ld(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=e(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}Dd.forEach(e=>{it[e]={},Object.defineProperty(it[e],"channels",{value:Un[e].channels}),Object.defineProperty(it[e],"labels",{value:Un[e].labels});let t=Nd(e);Object.keys(t).forEach(n=>{let i=t[n];it[e][n]=Ld(i),it[e][n].raw=jd(i)})});Hc.exports=it});var Xc=v((m1,Vc)=>{"use strict";var Gc=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,zc=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},Jc=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},Cr=e=>e,Wc=(e,t,r)=>[e,t,r],st=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},Gn,ot=(e,t,r,n)=>{Gn===void 0&&(Gn=Uc());let i=n?10:0,s={};for(let[o,a]of Object.entries(Gn)){let c=o==="ansi16"?"ansi":o;o===t?s[c]=e(r,i):typeof a=="object"&&(s[c]=e(a[t],i))}return s};function Bd(){let e=new Map,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(let[r,n]of Object.entries(t)){for(let[i,s]of Object.entries(n))t[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=t[i],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",st(t.color,"ansi",()=>ot(Gc,"ansi16",Cr,!1)),st(t.color,"ansi256",()=>ot(zc,"ansi256",Cr,!1)),st(t.color,"ansi16m",()=>ot(Jc,"rgb",Wc,!1)),st(t.bgColor,"ansi",()=>ot(Gc,"ansi16",Cr,!0)),st(t.bgColor,"ansi256",()=>ot(zc,"ansi256",Cr,!0)),st(t.bgColor,"ansi16m",()=>ot(Jc,"rgb",Wc,!0)),t}Object.defineProperty(Vc,"exports",{enumerable:!0,get:Bd})});var Kc=v((y1,Yc)=>{"use strict";var $d=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.substr(s),o},Hd=(e,t,r,n)=>{let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
`);return s!==-1&&(t=Yd(t,i,n,s)),n+t+i},zn,au=(e,...t)=>{let[r]=t;if(!kr(r)||!kr(r.raw))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return zn===void 0&&(zn=ru()),zn(e,i.join(""))};Object.defineProperties(Or.prototype,at);var Pr=Or();Pr.supportsColor=Jn;Pr.stderr=Or({level:Wn?Wn.level:0});Pr.stderr.supportsColor=Wn;cu.exports=Pr});var lu=v((Yn,Kn)=>{(function(e,t){typeof Yn=="object"&&typeof Kn<"u"?Kn.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(Yn,function(){"use strict";function e(u){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(u)}var t=/^\s+/,r=/\s+$/;function n(u,h){if(u=u||"",h=h||{},u instanceof n)return u;if(!(this instanceof n))return new n(u,h);var l=i(u);this._originalInput=u,this._r=l.r,this._g=l.g,this._b=l.b,this._a=l.a,this._roundA=Math.round(100*this._a)/100,this._format=h.format||l.format,this._gradientType=h.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=l.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var h=this.toRgb();return(h.r*299+h.g*587+h.b*114)/1e3},getLuminance:function(){var h=this.toRgb(),l,g,w,b,I,D;return l=h.r/255,g=h.g/255,w=h.b/255,l<=.03928?b=l/12.92:b=Math.pow((l+.055)/1.055,2.4),g<=.03928?I=g/12.92:I=Math.pow((g+.055)/1.055,2.4),w<=.03928?D=w/12.92:D=Math.pow((w+.055)/1.055,2.4),.2126*b+.7152*I+.0722*D},setAlpha:function(h){return this._a=$(h),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var h=c(this._r,this._g,this._b);return{h:h.h*360,s:h.s,v:h.v,a:this._a}},toHsvString:function(){var h=c(this._r,this._g,this._b),l=Math.round(h.h*360),g=Math.round(h.s*100),w=Math.round(h.v*100);return this._a==1?"hsv("+l+", "+g+"%, "+w+"%)":"hsva("+l+", "+g+"%, "+w+"%, "+this._roundA+")"},toHsl:function(){var h=o(this._r,this._g,this._b);return{h:h.h*360,s:h.s,l:h.l,a:this._a}},toHslString:function(){var h=o(this._r,this._g,this._b),l=Math.round(h.h*360),g=Math.round(h.s*100),w=Math.round(h.l*100);return this._a==1?"hsl("+l+", "+g+"%, "+w+"%)":"hsla("+l+", "+g+"%, "+w+"%, "+this._roundA+")"},toHex:function(h){return f(this._r,this._g,this._b,h)},toHexString:function(h){return"#"+this.toHex(h)},toHex8:function(h){return p(this._r,this._g,this._b,this._a,h)},toHex8String:function(h){return"#"+this.toHex8(h)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(P(this._r,255)*100)+"%",g:Math.round(P(this._g,255)*100)+"%",b:Math.round(P(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(P(this._r,255)*100)+"%, "+Math.round(P(this._g,255)*100)+"%, "+Math.round(P(this._b,255)*100)+"%)":"rgba("+Math.round(P(this._r,255)*100)+"%, "+Math.round(P(this._g,255)*100)+"%, "+Math.round(P(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:F[f(this._r,this._g,this._b,!0)]||!1},toFilter:function(h){var l="#"+y(this._r,this._g,this._b,this._a),g=l,w=this._gradientType?"GradientType = 1, ":"";if(h){var b=n(h);g="#"+y(b._r,b._g,b._b,b._a)}return"progid:DXImageTransform.Microsoft.gradient("+w+"startColorstr="+l+",endColorstr="+g+")"},toString:function(h){var l=!!h;h=h||this._format;var g=!1,w=this._a<1&&this._a>=0,b=!l&&w&&(h==="hex"||h==="hex6"||h==="hex3"||h==="hex4"||h==="hex8"||h==="name");return b?h==="name"&&this._a===0?this.toName():this.toRgbString():(h==="rgb"&&(g=this.toRgbString()),h==="prgb"&&(g=this.toPercentageRgbString()),(h==="hex"||h==="hex6")&&(g=this.toHexString()),h==="hex3"&&(g=this.toHexString(!0)),h==="hex4"&&(g=this.toHex8String(!0)),h==="hex8"&&(g=this.toHex8String()),h==="name"&&(g=this.toName()),h==="hsl"&&(g=this.toHslString()),h==="hsv"&&(g=this.toHsvString()),g||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(h,l){var g=h.apply(null,[this].concat([].slice.call(l)));return this._r=g._r,this._g=g._g,this._b=g._b,this.setAlpha(g._a),this},lighten:function(){return this._applyModification(R,arguments)},brighten:function(){return this._applyModification(q,arguments)},darken:function(){return this._applyModification(B,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(G,arguments)},_applyCombination:function(h,l){return h.apply(null,[this].concat([].slice.call(l)))},analogous:function(){return this._applyCombination(Ce,arguments)},complement:function(){return this._applyCombination(U,arguments)},monochromatic:function(){return this._applyCombination(ae,arguments)},splitcomplement:function(){return this._applyCombination(ve,arguments)},triad:function(){return this._applyCombination(re,[3])},tetrad:function(){return this._applyCombination(re,[4])}},n.fromRatio=function(u,h){if(e(u)=="object"){var l={};for(var g in u)u.hasOwnProperty(g)&&(g==="a"?l[g]=u[g]:l[g]=A(u[g]));u=l}return n(u,h)};function i(u){var h={r:0,g:0,b:0},l=1,g=null,w=null,b=null,I=!1,D=!1;return typeof u=="string"&&(u=Ft(u)),e(u)=="object"&&(pe(u.r)&&pe(u.g)&&pe(u.b)?(h=s(u.r,u.g,u.b),I=!0,D=String(u.r).substr(-1)==="%"?"prgb":"rgb"):pe(u.h)&&pe(u.s)&&pe(u.v)?(g=A(u.s),w=A(u.v),h=d(u.h,g,w),I=!0,D="hsv"):pe(u.h)&&pe(u.s)&&pe(u.l)&&(g=A(u.s),b=A(u.l),h=a(u.h,g,b),I=!0,D="hsl"),u.hasOwnProperty("a")&&(l=u.a)),l=$(l),{ok:I,format:u.format||D,r:Math.min(255,Math.max(h.r,0)),g:Math.min(255,Math.max(h.g,0)),b:Math.min(255,Math.max(h.b,0)),a:l}}function s(u,h,l){return{r:P(u,255)*255,g:P(h,255)*255,b:P(l,255)*255}}function o(u,h,l){u=P(u,255),h=P(h,255),l=P(l,255);var g=Math.max(u,h,l),w=Math.min(u,h,l),b,I,D=(g+w)/2;if(g==w)b=I=0;else{var z=g-w;switch(I=D>.5?z/(2-g-w):z/(g+w),g){case u:b=(h-l)/z+(h<l?6:0);break;case h:b=(l-u)/z+2;break;case l:b=(u-h)/z+4;break}b/=6}return{h:b,s:I,l:D}}function a(u,h,l){var g,w,b;u=P(u,360),h=P(h,100),l=P(l,100);function I(ye,ft,be){return be<0&&(be+=1),be>1&&(be-=1),be<1/6?ye+(ft-ye)*6*be:be<1/2?ft:be<2/3?ye+(ft-ye)*(2/3-be)*6:ye}if(h===0)g=w=b=l;else{var D=l<.5?l*(1+h):l+h-l*h,z=2*l-D;g=I(z,D,u+1/3),w=I(z,D,u),b=I(z,D,u-1/3)}return{r:g*255,g:w*255,b:b*255}}function c(u,h,l){u=P(u,255),h=P(h,255),l=P(l,255);var g=Math.max(u,h,l),w=Math.min(u,h,l),b,I,D=g,z=g-w;if(I=g===0?0:z/g,g==w)b=0;else{switch(g){case u:b=(h-l)/z+(h<l?6:0);break;case h:b=(l-u)/z+2;break;case l:b=(u-h)/z+4;break}b/=6}return{h:b,s:I,v:D}}function d(u,h,l){u=P(u,360)*6,h=P(h,100),l=P(l,100);var g=Math.floor(u),w=u-g,b=l*(1-h),I=l*(1-w*h),D=l*(1-(1-w)*h),z=g%6,ye=[l,I,b,b,D,l][z],ft=[D,l,l,I,b,b][z],be=[b,b,D,l,l,I][z];return{r:ye*255,g:ft*255,b:be*255}}function f(u,h,l,g){var w=[_(Math.round(u).toString(16)),_(Math.round(h).toString(16)),_(Math.round(l).toString(16))];return g&&w[0].charAt(0)==w[0].charAt(1)&&w[1].charAt(0)==w[1].charAt(1)&&w[2].charAt(0)==w[2].charAt(1)?w[0].charAt(0)+w[1].charAt(0)+w[2].charAt(0):w.join("")}function p(u,h,l,g,w){var b=[_(Math.round(u).toString(16)),_(Math.round(h).toString(16)),_(Math.round(l).toString(16)),_(ke(g))];return w&&b[0].charAt(0)==b[0].charAt(1)&&b[1].charAt(0)==b[1].charAt(1)&&b[2].charAt(0)==b[2].charAt(1)&&b[3].charAt(0)==b[3].charAt(1)?b[0].charAt(0)+b[1].charAt(0)+b[2].charAt(0)+b[3].charAt(0):b.join("")}function y(u,h,l,g){var w=[_(ke(g)),_(Math.round(u).toString(16)),_(Math.round(h).toString(16)),_(Math.round(l).toString(16))];return w.join("")}n.equals=function(u,h){return!u||!h?!1:n(u).toRgbString()==n(h).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(u,h){h=h===0?0:h||10;var l=n(u).toHsl();return l.s-=h/100,l.s=L(l.s),n(l)}function S(u,h){h=h===0?0:h||10;var l=n(u).toHsl();return l.s+=h/100,l.s=L(l.s),n(l)}function O(u){return n(u).desaturate(100)}function R(u,h){h=h===0?0:h||10;var l=n(u).toHsl();return l.l+=h/100,l.l=L(l.l),n(l)}function q(u,h){h=h===0?0:h||10;var l=n(u).toRgb();return l.r=Math.max(0,Math.min(255,l.r-Math.round(255*-(h/100)))),l.g=Math.max(0,Math.min(255,l.g-Math.round(255*-(h/100)))),l.b=Math.max(0,Math.min(255,l.b-Math.round(255*-(h/100)))),n(l)}function B(u,h){h=h===0?0:h||10;var l=n(u).toHsl();return l.l-=h/100,l.l=L(l.l),n(l)}function G(u,h){var l=n(u).toHsl(),g=(l.h+h)%360;return l.h=g<0?360+g:g,n(l)}function U(u){var h=n(u).toHsl();return h.h=(h.h+180)%360,n(h)}function re(u,h){if(isNaN(h)||h<=0)throw new Error("Argument to polyad must be a positive number");for(var l=n(u).toHsl(),g=[n(u)],w=360/h,b=1;b<h;b++)g.push(n({h:(l.h+b*w)%360,s:l.s,l:l.l}));return g}function ve(u){var h=n(u).toHsl(),l=h.h;return[n(u),n({h:(l+72)%360,s:h.s,l:h.l}),n({h:(l+216)%360,s:h.s,l:h.l})]}function Ce(u,h,l){h=h||6,l=l||30;var g=n(u).toHsl(),w=360/l,b=[n(u)];for(g.h=(g.h-(w*h>>1)+720)%360;--h;)g.h=(g.h+w)%360,b.push(n(g));return b}function ae(u,h){h=h||6;for(var l=n(u).toHsv(),g=l.h,w=l.s,b=l.v,I=[],D=1/h;h--;)I.push(n({h:g,s:w,v:b})),b=(b+D)%1;return I}n.mix=function(u,h,l){l=l===0?0:l||50;var g=n(u).toRgb(),w=n(h).toRgb(),b=l/100,I={r:(w.r-g.r)*b+g.r,g:(w.g-g.g)*b+g.g,b:(w.b-g.b)*b+g.b,a:(w.a-g.a)*b+g.a};return n(I)},n.readability=function(u,h){var l=n(u),g=n(h);return(Math.max(l.getLuminance(),g.getLuminance())+.05)/(Math.min(l.getLuminance(),g.getLuminance())+.05)},n.isReadable=function(u,h,l){var g=n.readability(u,h),w,b;switch(b=!1,w=me(l),w.level+w.size){case"AAsmall":case"AAAlarge":b=g>=4.5;break;case"AAlarge":b=g>=3;break;case"AAAsmall":b=g>=7;break}return b},n.mostReadable=function(u,h,l){var g=null,w=0,b,I,D,z;l=l||{},I=l.includeFallbackColors,D=l.level,z=l.size;for(var ye=0;ye<h.length;ye++)b=n.readability(u,h[ye]),b>w&&(w=b,g=n(h[ye]));return n.isReadable(u,g,{level:D,size:z})||!I?g:(l.includeFallbackColors=!1,n.mostReadable(u,["#fff","#000"],l))};var k=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},F=n.hexNames=T(k);function T(u){var h={};for(var l in u)u.hasOwnProperty(l)&&(h[u[l]]=l);return h}function $(u){return u=parseFloat(u),(isNaN(u)||u<0||u>1)&&(u=1),u}function P(u,h){N(u)&&(u="100%");var l=M(u);return u=Math.min(h,Math.max(0,parseFloat(u))),l&&(u=parseInt(u*h,10)/100),Math.abs(u-h)<1e-6?1:u%h/parseFloat(h)}function L(u){return Math.min(1,Math.max(0,u))}function C(u){return parseInt(u,16)}function N(u){return typeof u=="string"&&u.indexOf(".")!=-1&&parseFloat(u)===1}function M(u){return typeof u=="string"&&u.indexOf("%")!=-1}function _(u){return u.length==1?"0"+u:""+u}function A(u){return u<=1&&(u=u*100+"%"),u}function ke(u){return Math.round(parseFloat(u)*255).toString(16)}function Fe(u){return C(u)/255}var ce=function(){var u="[-\\+]?\\d+%?",h="[-\\+]?\\d*\\.\\d+%?",l="(?:"+h+")|(?:"+u+")",g="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?",w="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?";return{CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+g),rgba:new RegExp("rgba"+w),hsl:new RegExp("hsl"+g),hsla:new RegExp("hsla"+w),hsv:new RegExp("hsv"+g),hsva:new RegExp("hsva"+w),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function pe(u){return!!ce.CSS_UNIT.exec(u)}function Ft(u){u=u.replace(t,"").replace(r,"").toLowerCase();var h=!1;if(k[u])u=k[u],h=!0;else if(u=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var l;return(l=ce.rgb.exec(u))?{r:l[1],g:l[2],b:l[3]}:(l=ce.rgba.exec(u))?{r:l[1],g:l[2],b:l[3],a:l[4]}:(l=ce.hsl.exec(u))?{h:l[1],s:l[2],l:l[3]}:(l=ce.hsla.exec(u))?{h:l[1],s:l[2],l:l[3],a:l[4]}:(l=ce.hsv.exec(u))?{h:l[1],s:l[2],v:l[3]}:(l=ce.hsva.exec(u))?{h:l[1],s:l[2],v:l[3],a:l[4]}:(l=ce.hex8.exec(u))?{r:C(l[1]),g:C(l[2]),b:C(l[3]),a:Fe(l[4]),format:h?"name":"hex8"}:(l=ce.hex6.exec(u))?{r:C(l[1]),g:C(l[2]),b:C(l[3]),format:h?"name":"hex"}:(l=ce.hex4.exec(u))?{r:C(l[1]+""+l[1]),g:C(l[2]+""+l[2]),b:C(l[3]+""+l[3]),a:Fe(l[4]+""+l[4]),format:h?"name":"hex8"}:(l=ce.hex3.exec(u))?{r:C(l[1]+""+l[1]),g:C(l[2]+""+l[2]),b:C(l[3]+""+l[3]),format:h?"name":"hex"}:!1}function me(u){var h,l;return u=u||{level:"AA",size:"small"},h=(u.level||"AA").toUpperCase(),l=(u.size||"small").toLowerCase(),h!=="AA"&&h!=="AAA"&&(h="AA"),l!=="small"&&l!=="large"&&(l="small"),{level:h,size:l}}return n})});var gu=v((b1,yu)=>{var qt=lu(),pu={r:256,g:256,b:256,a:1},mu={h:360,s:1,v:1,a:1};function Zn(e,t,r){let n={};for(let i in e)e.hasOwnProperty(i)&&(n[i]=r===0?0:(t[i]-e[i])/r);return n}function ei(e,t,r,n){let i={};for(let s in t)t.hasOwnProperty(s)&&(i[s]=e[s]*r+t[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Qn(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),s=Zn(n,i,r),o=[e.color];for(let a=1;a<r;a++){let c=ei(s,n,a,pu);o.push(qt(c))}return o}function fu(e,t,r,n){let i=e.color.toHsv(),s=t.color.toHsv();if(i.s===0||s.s===0)return Qn(e,t,r);let o;if(typeof n=="boolean")o=n;else{let f=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&f||n==="short"&&!f}let a=Zn(i,s,r),c=[e.color],d;i.h<=s.h&&!o||i.h>=s.h&&o?d=s.h-i.h:o?d=360-s.h+i.h:d=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(d)/r;for(let f=1;f<r;f++){let p=ei(a,i,f,mu);c.push(qt(p))}return c}function hu(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(t-1)*(e[s].pos-e[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==t;)if(i<t){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function du(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,s;for(let c=0,d=e.length;c<d-1;c++)if(t>=e[c].pos&&t<e[c+1].pos){i=e[c],s=e[c+1];break}i||(i=s=e[e.length-1]);let o=Zn(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=ei(o,i.color[r](),(t-i.pos)*100,n);return qt(a)}var ct=class{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,i=-1,s=!1;this.stops=t.map((o,a)=>{let c=o.pos!==void 0;if(r^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let d=o.color!==void 0;if(!d&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!d,o={color:d?qt(o.color):null,colorLess:!d,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:qt(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new ct(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new ct(t.concat(r.reverse()))}rgb(t){let r=hu(this.stops,t),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Qn(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Qn(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(t,r){let n=hu(this.stops,t),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=fu(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=fu(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(t){return du(this.stops,t,"toRgb",pu)}hsvAt(t){return du(this.stops,t,"toHsv",mu)}};yu.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new ct(e)}});var xu=v((w1,Ar)=>{"use strict";var bu=uu(),Zd=gu(),vu=/\s/g;function ti(...e){let t=Zd.apply(this,e),r=(n,i)=>ep(n?n.toString():"",t,i);return r.multiline=(n,i)=>tp(n?n.toString():"",t,i),r}var wu=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function ep(e,t,r){let n=Su(r),i=Math.max(e.replace(vu,"").length,t.stops.length),s=wu(t,n,i),o="";for(let a of e)o+=a.match(vu)?a:bu.hex(s.shift().toHex())(a);return o}function tp(e,t,r){let n=Su(r),i=e.split(`
|
|
20
|
-
|
|
21
|
-
|
|
4
|
+
`+o),e.push(i+"m+"+mt.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=Hp()+r+" "+e[0]}function Hp(){return oe.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Wp(...e){return process.stderr.write(ht.format(...e)+`
|
|
5
|
+
`)}function Vp(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function zp(){return process.env.DEBUG}function Xp(e){e.inspectOpts={};let r=Object.keys(oe.inspectOpts);for(let t=0;t<r.length;t++)e.inspectOpts[r[t]]=oe.inspectOpts[r[t]]}mt.exports=In()(oe);var{formatters:ls}=mt.exports;ls.o=function(e){return this.inspectOpts.colors=this.useColors,ht.inspect(e,this.inspectOpts).split(`
|
|
6
|
+
`).map(r=>r.trim()).join(" ")};ls.O=function(e){return this.inspectOpts.colors=this.useColors,ht.inspect(e,this.inspectOpts)}});var ds=g((T0,kn)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?kn.exports=is():kn.exports=fs()});var hs=g((D0,ps)=>{var Tr;ps.exports=function(){if(!Tr){try{Tr=ds()("follow-redirects")}catch{}typeof Tr!="function"&&(Tr=function(){})}Tr.apply(null,arguments)}});var jn=g((x0,qn)=>{var Je=require("url"),Fn=Je.URL,Jp=require("http"),Kp=require("https"),vs=require("stream").Writable,gs=require("assert"),Es=hs(),Nn=["abort","aborted","connect","error","socket","timeout"],Mn=Object.create(null);Nn.forEach(function(e){Mn[e]=function(r,t,n){this._redirectable.emit(e,r,t,n)}});var Qp=xr("ERR_INVALID_URL","Invalid URL",TypeError),ms=xr("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Zp=xr("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),eh=xr("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),rh=xr("ERR_STREAM_WRITE_AFTER_END","write after end");function Oe(e,r){vs.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],r&&this.on("response",r);var t=this;this._onNativeResponse=function(n){t._processResponse(n)},this._performRequest()}Oe.prototype=Object.create(vs.prototype);Oe.prototype.abort=function(){Ss(this._currentRequest),this.emit("abort")};Oe.prototype.write=function(e,r,t){if(this._ending)throw new rh;if(!Ke(e)&&!ih(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Dr(r)&&(t=r,r=null),e.length===0){t&&t();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:r}),this._currentRequest.write(e,r,t)):(this.emit("error",new eh),this.abort())};Oe.prototype.end=function(e,r,t){if(Dr(e)?(t=e,e=r=null):Dr(r)&&(t=r,r=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,t);else{var n=this,i=this._currentRequest;this.write(e,r,function(){n._ended=!0,i.end(null,null,t)}),this._ending=!0}};Oe.prototype.setHeader=function(e,r){this._options.headers[e]=r,this._currentRequest.setHeader(e,r)};Oe.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};Oe.prototype.setTimeout=function(e,r){var t=this;function n(a){a.setTimeout(e),a.removeListener("timeout",a.destroy),a.addListener("timeout",a.destroy)}function i(a){t._timeout&&clearTimeout(t._timeout),t._timeout=setTimeout(function(){t.emit("timeout"),o()},e),n(a)}function o(){t._timeout&&(clearTimeout(t._timeout),t._timeout=null),t.removeListener("abort",o),t.removeListener("error",o),t.removeListener("response",o),r&&t.removeListener("timeout",r),t.socket||t._currentRequest.removeListener("socket",i)}return r&&this.on("timeout",r),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){Oe.prototype[e]=function(r,t){return this._currentRequest[e](r,t)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(Oe.prototype,e,{get:function(){return this._currentRequest[e]}})});Oe.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var r=e.path.indexOf("?");r<0?e.pathname=e.path:(e.pathname=e.path.substring(0,r),e.search=e.path.substring(r))}};Oe.prototype._performRequest=function(){var e=this._options.protocol,r=this._options.nativeProtocols[e];if(!r){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var t=e.slice(0,-1);this._options.agent=this._options.agents[t]}var n=this._currentRequest=r.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of Nn)n.on(i,Mn[i]);if(this._currentUrl=/^\//.test(this._options.path)?Je.format(this._options):this._options.path,this._isRedirect){var o=0,a=this,u=this._requestBodyBuffers;(function c(h){if(n===a._currentRequest)if(h)a.emit("error",h);else if(o<u.length){var f=u[o++];n.finished||n.write(f.data,f.encoding,c)}else a._ended&&n.end()})()}};Oe.prototype._processResponse=function(e){var r=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:r});var t=e.headers.location;if(!t||this._options.followRedirects===!1||r<300||r>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(Ss(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new Zp);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((r===301||r===302)&&this._options.method==="POST"||r===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Ln(/^content-/i,this._options.headers));var a=Ln(/^host$/i,this._options.headers),u=Je.parse(this._currentUrl),c=a||u.host,h=/^\w+:/.test(t)?this._currentUrl:Je.format(Object.assign(u,{host:c})),f;try{f=Je.resolve(h,t)}catch(S){this.emit("error",new ms({cause:S}));return}Es("redirecting to",f),this._isRedirect=!0;var p=Je.parse(f);if(Object.assign(this._options,p),(p.protocol!==u.protocol&&p.protocol!=="https:"||p.host!==c&&!nh(p.host,c))&&Ln(/^(?:authorization|cookie)$/i,this._options.headers),Dr(i)){var v={headers:e.headers,statusCode:r},y={url:h,method:o,headers:n};try{i(this._options,v,y)}catch(S){this.emit("error",S);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(S){this.emit("error",new ms({cause:S}))}};function _s(e){var r={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(e).forEach(function(n){var i=n+":",o=t[i]=e[n],a=r[n]=Object.create(o);function u(h,f,p){if(Ke(h)){var v;try{v=ys(new Fn(h))}catch{v=Je.parse(h)}if(!Ke(v.protocol))throw new Qp({input:h});h=v}else Fn&&h instanceof Fn?h=ys(h):(p=f,f=h,h={protocol:i});return Dr(f)&&(p=f,f=null),f=Object.assign({maxRedirects:r.maxRedirects,maxBodyLength:r.maxBodyLength},h,f),f.nativeProtocols=t,!Ke(f.host)&&!Ke(f.hostname)&&(f.hostname="::1"),gs.equal(f.protocol,i,"protocol mismatch"),Es("options",f),new Oe(f,p)}function c(h,f,p){var v=a.request(h,f,p);return v.end(),v}Object.defineProperties(a,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),r}function th(){}function ys(e){var r={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};return e.port!==""&&(r.port=Number(e.port)),r}function Ln(e,r){var t;for(var n in r)e.test(n)&&(t=r[n],delete r[n]);return t===null||typeof t>"u"?void 0:String(t).trim()}function xr(e,r,t){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?r+": "+this.cause.message:r}return n.prototype=new(t||Error),n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n}function Ss(e){for(var r of Nn)e.removeListener(r,Mn[r]);e.on("error",th),e.abort()}function nh(e,r){gs(Ke(e)&&Ke(r));var t=e.length-r.length-1;return t>0&&e[t]==="."&&e.endsWith(r)}function Ke(e){return typeof e=="string"||e instanceof String}function Dr(e){return typeof e=="function"}function ih(e){return typeof e=="object"&&"length"in e}qn.exports=_s({http:Jp,https:Kp});qn.exports.wrap=_s});var $n=g((I0,oh)=>{oh.exports={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]}});var Ts=g((P0,Os)=>{"use strict";var Ir=he(),bs=On(),sh=Tn(),ah=st(),uh=require("http"),ch=require("https"),lh=jn().http,fh=jn().https,ws=require("url"),dh=require("zlib"),ph=$n(),yt=ct(),Bn=ut(),Cs=/https:?/;function Rs(e,r,t){if(e.hostname=r.host,e.host=r.host,e.port=r.port,e.path=t,r.auth){var n=Buffer.from(r.auth.username+":"+r.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(o){o.headers.host=o.host,Rs(o,r,o.href)}}Os.exports=function(r){return new Promise(function(n,i){var o=function(T){n(T)},a=function(T){i(T)},u=r.data,c=r.headers;if("User-Agent"in c||"user-agent"in c?!c["User-Agent"]&&!c["user-agent"]&&(delete c["User-Agent"],delete c["user-agent"]):c["User-Agent"]="axios/"+ph.version,u&&!Ir.isStream(u)){if(!Buffer.isBuffer(u))if(Ir.isArrayBuffer(u))u=Buffer.from(new Uint8Array(u));else if(Ir.isString(u))u=Buffer.from(u,"utf-8");else return a(yt("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",r));c["Content-Length"]=u.length}var h=void 0;if(r.auth){var f=r.auth.username||"",p=r.auth.password||"";h=f+":"+p}var v=sh(r.baseURL,r.url),y=ws.parse(v),S=y.protocol||"http:";if(!h&&y.auth){var R=y.auth.split(":"),C=R[0]||"",P=R[1]||"";h=C+":"+P}h&&delete c.Authorization;var U=Cs.test(S),F=U?r.httpsAgent:r.httpAgent,j={path:ah(y.path,r.params,r.paramsSerializer).replace(/^\?/,""),method:r.method.toUpperCase(),headers:c,agent:F,agents:{http:r.httpAgent,https:r.httpsAgent},auth:h};r.socketPath?j.socketPath=r.socketPath:(j.hostname=y.hostname,j.port=y.port);var te=r.proxy;if(!te&&te!==!1){var Ee=S.slice(0,-1)+"_proxy",Le=process.env[Ee]||process.env[Ee.toUpperCase()];if(Le){var _e=ws.parse(Le),O=process.env.no_proxy||process.env.NO_PROXY,M=!0;if(O){var L=O.split(",").map(function(T){return T.trim()});M=!L.some(function(T){return T?T==="*"||T[0]==="."&&y.hostname.substr(y.hostname.length-T.length)===T?!0:y.hostname===T:!1})}if(M&&(te={host:_e.hostname,port:_e.port,protocol:_e.protocol},_e.auth)){var Z=_e.auth.split(":");te.auth={username:Z[0],password:Z[1]}}}}te&&(j.headers.host=y.hostname+(y.port?":"+y.port:""),Rs(j,te,S+"//"+y.hostname+(y.port?":"+y.port:"")+j.path));var $,Y=U&&(te?Cs.test(te.protocol):!0);r.transport?$=r.transport:r.maxRedirects===0?$=Y?ch:uh:(r.maxRedirects&&(j.maxRedirects=r.maxRedirects),$=Y?fh:lh),r.maxBodyLength>-1&&(j.maxBodyLength=r.maxBodyLength);var _=$.request(j,function(T){if(!_.aborted){var N=T,de=T.req||_;if(T.statusCode!==204&&de.method!=="HEAD"&&r.decompress!==!1)switch(T.headers["content-encoding"]){case"gzip":case"compress":case"deflate":N=N.pipe(dh.createUnzip()),delete T.headers["content-encoding"];break}var Me={status:T.statusCode,statusText:T.statusMessage,headers:T.headers,config:r,request:de};if(r.responseType==="stream")Me.data=N,bs(o,a,Me);else{var Ae=[],rr=0;N.on("data",function(Se){Ae.push(Se),rr+=Se.length,r.maxContentLength>-1&&rr>r.maxContentLength&&(N.destroy(),a(yt("maxContentLength size of "+r.maxContentLength+" exceeded",r,null,de)))}),N.on("error",function(Se){_.aborted||a(Bn(Se,r,null,de))}),N.on("end",function(){var Se=Buffer.concat(Ae);r.responseType!=="arraybuffer"&&(Se=Se.toString(r.responseEncoding),(!r.responseEncoding||r.responseEncoding==="utf8")&&(Se=Ir.stripBOM(Se))),Me.data=Se,bs(o,a,Me)})}}});if(_.on("error",function(T){_.aborted&&T.code!=="ERR_FR_TOO_MANY_REDIRECTS"||a(Bn(T,r,null,_))}),r.timeout){var B=parseInt(r.timeout,10);if(isNaN(B)){a(yt("error trying to parse `config.timeout` to int",r,"ERR_PARSE_TIMEOUT",_));return}_.setTimeout(B,function(){_.abort(),a(yt("timeout of "+B+"ms exceeded",r,r.transitional&&r.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",_))})}r.cancelToken&&r.cancelToken.promise.then(function(T){_.aborted||(_.abort(),a(T))}),Ir.isStream(u)?u.on("error",function(T){a(Bn(T,r,null,_))}).pipe(_):_.end(u)})}});var gt=g((A0,Is)=>{"use strict";var se=he(),Ds=Mo(),hh=ut(),mh={"Content-Type":"application/x-www-form-urlencoded"};function xs(e,r){!se.isUndefined(e)&&se.isUndefined(e["Content-Type"])&&(e["Content-Type"]=r)}function yh(){var e;return typeof XMLHttpRequest<"u"?e=es():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=Ts()),e}function vh(e,r,t){if(se.isString(e))try{return(r||JSON.parse)(e),se.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}var vt={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:yh(),transformRequest:[function(r,t){return Ds(t,"Accept"),Ds(t,"Content-Type"),se.isFormData(r)||se.isArrayBuffer(r)||se.isBuffer(r)||se.isStream(r)||se.isFile(r)||se.isBlob(r)?r:se.isArrayBufferView(r)?r.buffer:se.isURLSearchParams(r)?(xs(t,"application/x-www-form-urlencoded;charset=utf-8"),r.toString()):se.isObject(r)||t&&t["Content-Type"]==="application/json"?(xs(t,"application/json"),vh(r)):r}],transformResponse:[function(r){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||i&&se.isString(r)&&r.length)try{return JSON.parse(r)}catch(a){if(o)throw a.name==="SyntaxError"?hh(a,this,"E_JSON_PARSE"):a}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(r){return r>=200&&r<300}};vt.headers={common:{Accept:"application/json, text/plain, */*"}};se.forEach(["delete","get","head"],function(r){vt.headers[r]={}});se.forEach(["post","put","patch"],function(r){vt.headers[r]=se.merge(mh)});Is.exports=vt});var As=g((k0,Ps)=>{"use strict";var gh=he(),Eh=gt();Ps.exports=function(r,t,n){var i=this||Eh;return gh.forEach(n,function(a){r=a.call(i,r,t)}),r}});var Gn=g((F0,ks)=>{"use strict";ks.exports=function(r){return!!(r&&r.__CANCEL__)}});var Ns=g((L0,Ls)=>{"use strict";var Fs=he(),Un=As(),_h=Gn(),Sh=gt();function Yn(e){e.cancelToken&&e.cancelToken.throwIfRequested()}Ls.exports=function(r){Yn(r),r.headers=r.headers||{},r.data=Un.call(r,r.data,r.headers,r.transformRequest),r.headers=Fs.merge(r.headers.common||{},r.headers[r.method]||{},r.headers),Fs.forEach(["delete","get","head","post","put","patch","common"],function(i){delete r.headers[i]});var t=r.adapter||Sh.adapter;return t(r).then(function(i){return Yn(r),i.data=Un.call(r,i.data,i.headers,r.transformResponse),i},function(i){return _h(i)||(Yn(r),i&&i.response&&(i.response.data=Un.call(r,i.response.data,i.response.headers,r.transformResponse))),Promise.reject(i)})}});var Hn=g((N0,Ms)=>{"use strict";var ue=he();Ms.exports=function(r,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];function c(v,y){return ue.isPlainObject(v)&&ue.isPlainObject(y)?ue.merge(v,y):ue.isPlainObject(y)?ue.merge({},y):ue.isArray(y)?y.slice():y}function h(v){ue.isUndefined(t[v])?ue.isUndefined(r[v])||(n[v]=c(void 0,r[v])):n[v]=c(r[v],t[v])}ue.forEach(i,function(y){ue.isUndefined(t[y])||(n[y]=c(void 0,t[y]))}),ue.forEach(o,h),ue.forEach(a,function(y){ue.isUndefined(t[y])?ue.isUndefined(r[y])||(n[y]=c(void 0,r[y])):n[y]=c(void 0,t[y])}),ue.forEach(u,function(y){y in t?n[y]=c(r[y],t[y]):y in r&&(n[y]=c(void 0,r[y]))});var f=i.concat(o).concat(a).concat(u),p=Object.keys(r).concat(Object.keys(t)).filter(function(y){return f.indexOf(y)===-1});return ue.forEach(p,h),n}});var Gs=g((M0,Bs)=>{"use strict";var js=$n(),Wn={};["object","boolean","number","function","string","symbol"].forEach(function(e,r){Wn[e]=function(n){return typeof n===e||"a"+(r<1?"n ":" ")+e}});var qs={},bh=js.version.split(".");function $s(e,r){for(var t=r?r.split("."):bh,n=e.split("."),i=0;i<3;i++){if(t[i]>n[i])return!0;if(t[i]<n[i])return!1}return!1}Wn.transitional=function(r,t,n){var i=t&&$s(t);function o(a,u){return"[Axios v"+js.version+"] Transitional option '"+a+"'"+u+(n?". "+n:"")}return function(a,u,c){if(r===!1)throw new Error(o(u," has been removed in "+t));return i&&!qs[u]&&(qs[u]=!0,console.warn(o(u," has been deprecated since v"+t+" and will be removed in the near future"))),r?r(a,u,c):!0}};function wh(e,r,t){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=r[o];if(a){var u=e[o],c=u===void 0||a(u,o,e);if(c!==!0)throw new TypeError("option "+o+" must be "+c);continue}if(t!==!0)throw Error("Unknown option "+o)}}Bs.exports={isOlderVersion:$s,assertOptions:wh,validators:Wn}});var zs=g((q0,Vs)=>{"use strict";var Hs=he(),Ch=st(),Us=Lo(),Ys=Ns(),Et=Hn(),Ws=Gs(),cr=Ws.validators;function Pr(e){this.defaults=e,this.interceptors={request:new Us,response:new Us}}Pr.prototype.request=function(r){typeof r=="string"?(r=arguments[1]||{},r.url=arguments[0]):r=r||{},r=Et(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var t=r.transitional;t!==void 0&&Ws.assertOptions(t,{silentJSONParsing:cr.transitional(cr.boolean,"1.0.0"),forcedJSONParsing:cr.transitional(cr.boolean,"1.0.0"),clarifyTimeoutError:cr.transitional(cr.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(i=i&&v.synchronous,n.unshift(v.fulfilled,v.rejected))});var o=[];this.interceptors.response.forEach(function(v){o.push(v.fulfilled,v.rejected)});var a;if(!i){var u=[Ys,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),a=Promise.resolve(r);u.length;)a=a.then(u.shift(),u.shift());return a}for(var c=r;n.length;){var h=n.shift(),f=n.shift();try{c=h(c)}catch(p){f(p);break}}try{a=Ys(c)}catch(p){return Promise.reject(p)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};Pr.prototype.getUri=function(r){return r=Et(this.defaults,r),Ch(r.url,r.params,r.paramsSerializer).replace(/^\?/,"")};Hs.forEach(["delete","get","head","options"],function(r){Pr.prototype[r]=function(t,n){return this.request(Et(n||{},{method:r,url:t,data:(n||{}).data}))}});Hs.forEach(["post","put","patch"],function(r){Pr.prototype[r]=function(t,n,i){return this.request(Et(i||{},{method:r,url:t,data:n}))}});Vs.exports=Pr});var zn=g((j0,Xs)=>{"use strict";function Vn(e){this.message=e}Vn.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Vn.prototype.__CANCEL__=!0;Xs.exports=Vn});var Ks=g(($0,Js)=>{"use strict";var Rh=zn();function _t(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(i){r=i});var t=this;e(function(i){t.reason||(t.reason=new Rh(i),r(t.reason))})}_t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};_t.source=function(){var r,t=new _t(function(i){r=i});return{token:t,cancel:r}};Js.exports=_t});var Zs=g((B0,Qs)=>{"use strict";Qs.exports=function(r){return function(n){return r.apply(null,n)}}});var ra=g((G0,ea)=>{"use strict";ea.exports=function(r){return typeof r=="object"&&r.isAxiosError===!0}});var ia=g((U0,Xn)=>{"use strict";var ta=he(),Oh=Sn(),St=zs(),Th=Hn(),Dh=gt();function na(e){var r=new St(e),t=Oh(St.prototype.request,r);return ta.extend(t,St.prototype,r),ta.extend(t,r),t}var xe=na(Dh);xe.Axios=St;xe.create=function(r){return na(Th(xe.defaults,r))};xe.Cancel=zn();xe.CancelToken=Ks();xe.isCancel=Gn();xe.all=function(r){return Promise.all(r)};xe.spread=Zs();xe.isAxiosError=ra();Xn.exports=xe;Xn.exports.default=xe});var Jn=g((Y0,oa)=>{oa.exports=ia()});var aa=g((H0,sa)=>{"use strict";var xh=/[|\\{}()[\]^$+*?.]/g;sa.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(xh,"\\$&")}});var ca=g((W0,ua)=>{"use strict";ua.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]}});var Kn=g((V0,pa)=>{var Qe=ca(),da={};for(bt in Qe)Qe.hasOwnProperty(bt)&&(da[Qe[bt]]=bt);var bt,w=pa.exports={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"]}};for(me in w)if(w.hasOwnProperty(me)){if(!("channels"in w[me]))throw new Error("missing channels property: "+me);if(!("labels"in w[me]))throw new Error("missing channel labels property: "+me);if(w[me].labels.length!==w[me].channels)throw new Error("channel and label counts mismatch: "+me);la=w[me].channels,fa=w[me].labels,delete w[me].channels,delete w[me].labels,Object.defineProperty(w[me],"channels",{value:la}),Object.defineProperty(w[me],"labels",{value:fa})}var la,fa,me;w.rgb.hsl=function(e){var r=e[0]/255,t=e[1]/255,n=e[2]/255,i=Math.min(r,t,n),o=Math.max(r,t,n),a=o-i,u,c,h;return o===i?u=0:r===o?u=(t-n)/a:t===o?u=2+(n-r)/a:n===o&&(u=4+(r-t)/a),u=Math.min(u*60,360),u<0&&(u+=360),h=(i+o)/2,o===i?c=0:h<=.5?c=a/(o+i):c=a/(2-o-i),[u,c*100,h*100]};w.rgb.hsv=function(e){var r,t,n,i,o,a=e[0]/255,u=e[1]/255,c=e[2]/255,h=Math.max(a,u,c),f=h-Math.min(a,u,c),p=function(v){return(h-v)/6/f+1/2};return f===0?i=o=0:(o=f/h,r=p(a),t=p(u),n=p(c),a===h?i=n-t:u===h?i=1/3+r-n:c===h&&(i=2/3+t-r),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,h*100]};w.rgb.hwb=function(e){var r=e[0],t=e[1],n=e[2],i=w.rgb.hsl(e)[0],o=1/255*Math.min(r,Math.min(t,n));return n=1-1/255*Math.max(r,Math.max(t,n)),[i,o*100,n*100]};w.rgb.cmyk=function(e){var r=e[0]/255,t=e[1]/255,n=e[2]/255,i,o,a,u;return u=Math.min(1-r,1-t,1-n),i=(1-r-u)/(1-u)||0,o=(1-t-u)/(1-u)||0,a=(1-n-u)/(1-u)||0,[i*100,o*100,a*100,u*100]};function Ih(e,r){return Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2)+Math.pow(e[2]-r[2],2)}w.rgb.keyword=function(e){var r=da[e];if(r)return r;var t=1/0,n;for(var i in Qe)if(Qe.hasOwnProperty(i)){var o=Qe[i],a=Ih(e,o);a<t&&(t=a,n=i)}return n};w.keyword.rgb=function(e){return Qe[e]};w.rgb.xyz=function(e){var r=e[0]/255,t=e[1]/255,n=e[2]/255;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=r*.4124+t*.3576+n*.1805,o=r*.2126+t*.7152+n*.0722,a=r*.0193+t*.1192+n*.9505;return[i*100,o*100,a*100]};w.rgb.lab=function(e){var r=w.rgb.xyz(e),t=r[0],n=r[1],i=r[2],o,a,u;return t/=95.047,n/=100,i/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=116*n-16,a=500*(t-n),u=200*(n-i),[o,a,u]};w.hsl.rgb=function(e){var r=e[0]/360,t=e[1]/100,n=e[2]/100,i,o,a,u,c;if(t===0)return c=n*255,[c,c,c];n<.5?o=n*(1+t):o=n+t-n*t,i=2*n-o,u=[0,0,0];for(var h=0;h<3;h++)a=r+1/3*-(h-1),a<0&&a++,a>1&&a--,6*a<1?c=i+(o-i)*6*a:2*a<1?c=o:3*a<2?c=i+(o-i)*(2/3-a)*6:c=i,u[h]=c*255;return u};w.hsl.hsv=function(e){var r=e[0],t=e[1]/100,n=e[2]/100,i=t,o=Math.max(n,.01),a,u;return n*=2,t*=n<=1?n:2-n,i*=o<=1?o:2-o,u=(n+t)/2,a=n===0?2*i/(o+i):2*t/(n+t),[r,a*100,u*100]};w.hsv.rgb=function(e){var r=e[0]/60,t=e[1]/100,n=e[2]/100,i=Math.floor(r)%6,o=r-Math.floor(r),a=255*n*(1-t),u=255*n*(1-t*o),c=255*n*(1-t*(1-o));switch(n*=255,i){case 0:return[n,c,a];case 1:return[u,n,a];case 2:return[a,n,c];case 3:return[a,u,n];case 4:return[c,a,n];case 5:return[n,a,u]}};w.hsv.hsl=function(e){var r=e[0],t=e[1]/100,n=e[2]/100,i=Math.max(n,.01),o,a,u;return u=(2-t)*n,o=(2-t)*i,a=t*i,a/=o<=1?o:2-o,a=a||0,u/=2,[r,a*100,u*100]};w.hwb.rgb=function(e){var r=e[0]/360,t=e[1]/100,n=e[2]/100,i=t+n,o,a,u,c;i>1&&(t/=i,n/=i),o=Math.floor(6*r),a=1-n,u=6*r-o,o&1&&(u=1-u),c=t+u*(a-t);var h,f,p;switch(o){default:case 6:case 0:h=a,f=c,p=t;break;case 1:h=c,f=a,p=t;break;case 2:h=t,f=a,p=c;break;case 3:h=t,f=c,p=a;break;case 4:h=c,f=t,p=a;break;case 5:h=a,f=t,p=c;break}return[h*255,f*255,p*255]};w.cmyk.rgb=function(e){var r=e[0]/100,t=e[1]/100,n=e[2]/100,i=e[3]/100,o,a,u;return o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,t*(1-i)+i),u=1-Math.min(1,n*(1-i)+i),[o*255,a*255,u*255]};w.xyz.rgb=function(e){var r=e[0]/100,t=e[1]/100,n=e[2]/100,i,o,a;return i=r*3.2406+t*-1.5372+n*-.4986,o=r*-.9689+t*1.8758+n*.0415,a=r*.0557+t*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]};w.xyz.lab=function(e){var r=e[0],t=e[1],n=e[2],i,o,a;return r/=95.047,t/=100,n/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*t-16,o=500*(r-t),a=200*(t-n),[i,o,a]};w.lab.xyz=function(e){var r=e[0],t=e[1],n=e[2],i,o,a;o=(r+16)/116,i=t/500+o,a=o-n/200;var u=Math.pow(o,3),c=Math.pow(i,3),h=Math.pow(a,3);return o=u>.008856?u:(o-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,a=h>.008856?h:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]};w.lab.lch=function(e){var r=e[0],t=e[1],n=e[2],i,o,a;return i=Math.atan2(n,t),o=i*360/2/Math.PI,o<0&&(o+=360),a=Math.sqrt(t*t+n*n),[r,a,o]};w.lch.lab=function(e){var r=e[0],t=e[1],n=e[2],i,o,a;return a=n/360*2*Math.PI,i=t*Math.cos(a),o=t*Math.sin(a),[r,i,o]};w.rgb.ansi16=function(e){var r=e[0],t=e[1],n=e[2],i=1 in arguments?arguments[1]:w.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var o=30+(Math.round(n/255)<<2|Math.round(t/255)<<1|Math.round(r/255));return i===2&&(o+=60),o};w.hsv.ansi16=function(e){return w.rgb.ansi16(w.hsv.rgb(e),e[2])};w.rgb.ansi256=function(e){var r=e[0],t=e[1],n=e[2];if(r===t&&t===n)return r<8?16:r>248?231:Math.round((r-8)/247*24)+232;var i=16+36*Math.round(r/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5);return i};w.ansi16.rgb=function(e){var r=e%10;if(r===0||r===7)return e>50&&(r+=3.5),r=r/10.5*255,[r,r,r];var t=(~~(e>50)+1)*.5,n=(r&1)*t*255,i=(r>>1&1)*t*255,o=(r>>2&1)*t*255;return[n,i,o]};w.ansi256.rgb=function(e){if(e>=232){var r=(e-232)*10+8;return[r,r,r]}e-=16;var t,n=Math.floor(e/36)/5*255,i=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,i,o]};w.rgb.hex=function(e){var r=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),t=r.toString(16).toUpperCase();return"000000".substring(t.length)+t};w.hex.rgb=function(e){var r=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];var t=r[0];r[0].length===3&&(t=t.split("").map(function(u){return u+u}).join(""));var n=parseInt(t,16),i=n>>16&255,o=n>>8&255,a=n&255;return[i,o,a]};w.rgb.hcg=function(e){var r=e[0]/255,t=e[1]/255,n=e[2]/255,i=Math.max(Math.max(r,t),n),o=Math.min(Math.min(r,t),n),a=i-o,u,c;return a<1?u=o/(1-a):u=0,a<=0?c=0:i===r?c=(t-n)/a%6:i===t?c=2+(n-r)/a:c=4+(r-t)/a+4,c/=6,c%=1,[c*360,a*100,u*100]};w.hsl.hcg=function(e){var r=e[1]/100,t=e[2]/100,n=1,i=0;return t<.5?n=2*r*t:n=2*r*(1-t),n<1&&(i=(t-.5*n)/(1-n)),[e[0],n*100,i*100]};w.hsv.hcg=function(e){var r=e[1]/100,t=e[2]/100,n=r*t,i=0;return n<1&&(i=(t-n)/(1-n)),[e[0],n*100,i*100]};w.hcg.rgb=function(e){var r=e[0]/360,t=e[1]/100,n=e[2]/100;if(t===0)return[n*255,n*255,n*255];var i=[0,0,0],o=r%1*6,a=o%1,u=1-a,c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return c=(1-t)*n,[(t*i[0]+c)*255,(t*i[1]+c)*255,(t*i[2]+c)*255]};w.hcg.hsv=function(e){var r=e[1]/100,t=e[2]/100,n=r+t*(1-r),i=0;return n>0&&(i=r/n),[e[0],i*100,n*100]};w.hcg.hsl=function(e){var r=e[1]/100,t=e[2]/100,n=t*(1-r)+.5*r,i=0;return n>0&&n<.5?i=r/(2*n):n>=.5&&n<1&&(i=r/(2*(1-n))),[e[0],i*100,n*100]};w.hcg.hwb=function(e){var r=e[1]/100,t=e[2]/100,n=r+t*(1-r);return[e[0],(n-r)*100,(1-n)*100]};w.hwb.hcg=function(e){var r=e[1]/100,t=e[2]/100,n=1-t,i=n-r,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]};w.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};w.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};w.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};w.gray.hsl=w.gray.hsv=function(e){return[0,0,e[0]]};w.gray.hwb=function(e){return[0,100,e[0]]};w.gray.cmyk=function(e){return[0,0,0,e[0]]};w.gray.lab=function(e){return[e[0],0,0]};w.gray.hex=function(e){var r=Math.round(e[0]/100*255)&255,t=(r<<16)+(r<<8)+r,n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};w.rgb.gray=function(e){var r=(e[0]+e[1]+e[2])/3;return[r/255*100]}});var ma=g((z0,ha)=>{var wt=Kn();function Ph(){for(var e={},r=Object.keys(wt),t=r.length,n=0;n<t;n++)e[r[n]]={distance:-1,parent:null};return e}function Ah(e){var r=Ph(),t=[e];for(r[e].distance=0;t.length;)for(var n=t.pop(),i=Object.keys(wt[n]),o=i.length,a=0;a<o;a++){var u=i[a],c=r[u];c.distance===-1&&(c.distance=r[n].distance+1,c.parent=n,t.unshift(u))}return r}function kh(e,r){return function(t){return r(e(t))}}function Fh(e,r){for(var t=[r[e].parent,e],n=wt[r[e].parent][e],i=r[e].parent;r[i].parent;)t.unshift(r[i].parent),n=kh(wt[r[i].parent][i],n),i=r[i].parent;return n.conversion=t,n}ha.exports=function(e){for(var r=Ah(e),t={},n=Object.keys(r),i=n.length,o=0;o<i;o++){var a=n[o],u=r[a];u.parent!==null&&(t[a]=Fh(a,r))}return t}});var va=g((X0,ya)=>{var Qn=Kn(),Lh=ma(),lr={},Nh=Object.keys(Qn);function Mh(e){var r=function(t){return t==null?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(r.conversion=e.conversion),r}function qh(e){var r=function(t){if(t==null)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if(typeof n=="object")for(var i=n.length,o=0;o<i;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(r.conversion=e.conversion),r}Nh.forEach(function(e){lr[e]={},Object.defineProperty(lr[e],"channels",{value:Qn[e].channels}),Object.defineProperty(lr[e],"labels",{value:Qn[e].labels});var r=Lh(e),t=Object.keys(r);t.forEach(function(n){var i=r[n];lr[e][n]=qh(i),lr[e][n].raw=Mh(i)})});ya.exports=lr});var Ea=g((J0,ga)=>{"use strict";var fr=va(),Ct=(e,r)=>function(){return`\x1B[${e.apply(fr,arguments)+r}m`},Rt=(e,r)=>function(){let t=e.apply(fr,arguments);return`\x1B[${38+r};5;${t}m`},Ot=(e,r)=>function(){let t=e.apply(fr,arguments);return`\x1B[${38+r};2;${t[0]};${t[1]};${t[2]}m`};function jh(){let e=new Map,r={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],gray:[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]}};r.color.grey=r.color.gray;for(let i of Object.keys(r)){let o=r[i];for(let a of Object.keys(o)){let u=o[a];r[a]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},o[a]=r[a],e.set(u[0],u[1])}Object.defineProperty(r,i,{value:o,enumerable:!1}),Object.defineProperty(r,"codes",{value:e,enumerable:!1})}let t=i=>i,n=(i,o,a)=>[i,o,a];r.color.close="\x1B[39m",r.bgColor.close="\x1B[49m",r.color.ansi={ansi:Ct(t,0)},r.color.ansi256={ansi256:Rt(t,0)},r.color.ansi16m={rgb:Ot(n,0)},r.bgColor.ansi={ansi:Ct(t,10)},r.bgColor.ansi256={ansi256:Rt(t,10)},r.bgColor.ansi16m={rgb:Ot(n,10)};for(let i of Object.keys(fr)){if(typeof fr[i]!="object")continue;let o=fr[i];i==="ansi16"&&(i="ansi"),"ansi16"in o&&(r.color.ansi[i]=Ct(o.ansi16,0),r.bgColor.ansi[i]=Ct(o.ansi16,10)),"ansi256"in o&&(r.color.ansi256[i]=Rt(o.ansi256,0),r.bgColor.ansi256[i]=Rt(o.ansi256,10)),"rgb"in o&&(r.color.ansi16m[i]=Ot(o.rgb,0),r.bgColor.ansi16m[i]=Ot(o.rgb,10))}return r}Object.defineProperty(ga,"exports",{enumerable:!0,get:jh})});var Sa=g((K0,_a)=>{"use strict";_a.exports=(e,r)=>{r=r||process.argv;let t=e.startsWith("-")?"":e.length===1?"-":"--",n=r.indexOf(t+e),i=r.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var wa=g((Q0,ba)=>{"use strict";var $h=require("os"),Ie=Sa(),ce=process.env,dr;Ie("no-color")||Ie("no-colors")||Ie("color=false")?dr=!1:(Ie("color")||Ie("colors")||Ie("color=true")||Ie("color=always"))&&(dr=!0);"FORCE_COLOR"in ce&&(dr=ce.FORCE_COLOR.length===0||parseInt(ce.FORCE_COLOR,10)!==0);function Bh(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Gh(e){if(dr===!1)return 0;if(Ie("color=16m")||Ie("color=full")||Ie("color=truecolor"))return 3;if(Ie("color=256"))return 2;if(e&&!e.isTTY&&dr!==!0)return 0;let r=dr?1:0;if(process.platform==="win32"){let t=$h.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in ce)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(t=>t in ce)||ce.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in ce)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ce.TEAMCITY_VERSION)?1:0;if(ce.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ce){let t=parseInt((ce.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ce.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ce.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ce.TERM)||"COLORTERM"in ce?1:(ce.TERM==="dumb",r)}function Zn(e){let r=Gh(e);return Bh(r)}ba.exports={supportsColor:Zn,stdout:Zn(process.stdout),stderr:Zn(process.stderr)}});var Da=g((Z0,Ta)=>{"use strict";var Uh=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Ca=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Yh=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Hh=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Wh=new Map([["n",`
|
|
7
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Oa(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):Wh.get(e)||e}function Vh(e,r){let t=[],n=r.trim().split(/\s*,\s*/g),i;for(let o of n)if(!isNaN(o))t.push(Number(o));else if(i=o.match(Yh))t.push(i[2].replace(Hh,(a,u,c)=>u?Oa(u):c));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`);return t}function zh(e){Ca.lastIndex=0;let r=[],t;for(;(t=Ca.exec(e))!==null;){let n=t[1];if(t[2]){let i=Vh(n,t[2]);r.push([n].concat(i))}else r.push([n])}return r}function Ra(e,r){let t={};for(let i of r)for(let o of i.styles)t[o[0]]=i.inverse?null:o.slice(1);let n=e;for(let i of Object.keys(t))if(Array.isArray(t[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);t[i].length>0?n=n[i].apply(n,t[i]):n=n[i]}return n}Ta.exports=(e,r)=>{let t=[],n=[],i=[];if(r.replace(Uh,(o,a,u,c,h,f)=>{if(a)i.push(Oa(a));else if(c){let p=i.join("");i=[],n.push(t.length===0?p:Ra(e,t)(p)),t.push({inverse:u,styles:zh(c)})}else if(h){if(t.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Ra(e,t)(i.join(""))),i=[],t.pop()}else i.push(f)}),n.push(i.join("")),t.length>0){let o=`Chalk template literal is missing ${t.length} closing bracket${t.length===1?"":"s"} (\`}\`)`;throw new Error(o)}return n.join("")}});var Dt=g((eg,kr)=>{"use strict";var ri=aa(),re=Ea(),ei=wa().stdout,Xh=Da(),Ia=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Pa=["ansi","ansi","ansi256","ansi16m"],Aa=new Set(["gray"]),pr=Object.create(null);function xa(e,r){r=r||{};let t=ei?ei.level:0;e.level=r.level===void 0?t:r.level,e.enabled="enabled"in r?r.enabled:e.level>0}function Ar(e){if(!this||!(this instanceof Ar)||this.template){let r={};return xa(r,e),r.template=function(){let t=[].slice.call(arguments);return Qh.apply(null,[r.template].concat(t))},Object.setPrototypeOf(r,Ar.prototype),Object.setPrototypeOf(r.template,r),r.template.constructor=Ar,r.template}xa(this,e)}Ia&&(re.blue.open="\x1B[94m");for(let e of Object.keys(re))re[e].closeRe=new RegExp(ri(re[e].close),"g"),pr[e]={get(){let r=re[e];return Tt.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}};pr.visible={get(){return Tt.call(this,this._styles||[],!0,"visible")}};re.color.closeRe=new RegExp(ri(re.color.close),"g");for(let e of Object.keys(re.color.ansi))Aa.has(e)||(pr[e]={get(){let r=this.level;return function(){let n={open:re.color[Pa[r]][e].apply(null,arguments),close:re.color.close,closeRe:re.color.closeRe};return Tt.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});re.bgColor.closeRe=new RegExp(ri(re.bgColor.close),"g");for(let e of Object.keys(re.bgColor.ansi)){if(Aa.has(e))continue;let r="bg"+e[0].toUpperCase()+e.slice(1);pr[r]={get(){let t=this.level;return function(){let i={open:re.bgColor[Pa[t]][e].apply(null,arguments),close:re.bgColor.close,closeRe:re.bgColor.closeRe};return Tt.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}}}var Jh=Object.defineProperties(()=>{},pr);function Tt(e,r,t){let n=function(){return Kh.apply(n,arguments)};n._styles=e,n._empty=r;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(o){i.level=o}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(o){i.enabled=o}}),n.hasGrey=this.hasGrey||t==="gray"||t==="grey",n.__proto__=Jh,n}function Kh(){let e=arguments,r=e.length,t=String(arguments[0]);if(r===0)return"";if(r>1)for(let i=1;i<r;i++)t+=" "+e[i];if(!this.enabled||this.level<=0||!t)return this._empty?"":t;let n=re.dim.open;Ia&&this.hasGrey&&(re.dim.open="");for(let i of this._styles.slice().reverse())t=i.open+t.replace(i.closeRe,i.open)+i.close,t=t.replace(/\r?\n/g,`${i.close}$&${i.open}`);return re.dim.open=n,t}function Qh(e,r){if(!Array.isArray(r))return[].slice.call(arguments,1).join(" ");let t=[].slice.call(arguments,2),n=[r.raw[0]];for(let i=1;i<r.length;i++)n.push(String(t[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(r.raw[i]));return Xh(e,n.join(""))}Object.defineProperties(Ar.prototype,pr);kr.exports=Ar();kr.exports.supportsColor=ei;kr.exports.default=kr.exports});var xt=g((rg,ti)=>{var Zh=require("fs"),em=require("path");function ka(e){console.log(`[dotenv][DEBUG] ${e}`)}var rm=`
|
|
8
|
+
`,tm=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,nm=/\\n/g,im=/\n|\r|\r\n/;function Fa(e,r){let t=!!(r&&r.debug),n={};return e.toString().split(im).forEach(function(i,o){let a=i.match(tm);if(a!=null){let u=a[1],c=a[2]||"",h=c.length-1,f=c[0]==='"'&&c[h]==='"';c[0]==="'"&&c[h]==="'"||f?(c=c.substring(1,h),f&&(c=c.replace(nm,rm))):c=c.trim(),n[u]=c}else t&&ka(`did not match key and value when parsing line ${o+1}: ${i}`)}),n}function om(e){let r=em.resolve(process.cwd(),".env"),t="utf8",n=!1;e&&(e.path!=null&&(r=e.path),e.encoding!=null&&(t=e.encoding),e.debug!=null&&(n=!0));try{let i=Fa(Zh.readFileSync(r,{encoding:t}),{debug:n});return Object.keys(i).forEach(function(o){Object.prototype.hasOwnProperty.call(process.env,o)?n&&ka(`"${o}" is already defined in \`process.env\` and will not be overwritten`):process.env[o]=i[o]}),{parsed:i}}catch(i){return{error:i}}}ti.exports.config=om;ti.exports.parse=Fa});var be=g(ni=>{"use strict";ni.fromCallback=function(e){return Object.defineProperty(function(...r){if(typeof r[r.length-1]=="function")e.apply(this,r);else return new Promise((t,n)=>{e.call(this,...r,(i,o)=>i!=null?n(i):t(o))})},"name",{value:e.name})};ni.fromPromise=function(e){return Object.defineProperty(function(...r){let t=r[r.length-1];if(typeof t!="function")return e.apply(this,r);e.apply(this,r.slice(0,-1)).then(n=>t(null,n),t)},"name",{value:e.name})}});var Na=g((ng,La)=>{var $e=require("constants"),sm=process.cwd,It=null,am=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return It||(It=sm.call(process)),It};try{process.cwd()}catch{}typeof process.chdir=="function"&&(ii=process.chdir,process.chdir=function(e){It=null,ii.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,ii));var ii;La.exports=um;function um(e){$e.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&r(e),e.lutimes||t(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=u(e.stat),e.fstat=u(e.fstat),e.lstat=u(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(f,p,v){v&&process.nextTick(v)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,p,v,y){y&&process.nextTick(y)},e.lchownSync=function(){}),am==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function p(v,y,S){var R=Date.now(),C=0;f(v,y,function P(U){if(U&&(U.code==="EACCES"||U.code==="EPERM")&&Date.now()-R<6e4){setTimeout(function(){e.stat(y,function(F,j){F&&F.code==="ENOENT"?f(v,y,P):S(U)})},C),C<100&&(C+=10);return}S&&S(U)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,f),p}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function p(v,y,S,R,C,P){var U;if(P&&typeof P=="function"){var F=0;U=function(j,te,Ee){if(j&&j.code==="EAGAIN"&&F<10)return F++,f.call(e,v,y,S,R,C,U);P.apply(this,arguments)}}return f.call(e,v,y,S,R,C,U)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,f),p}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(p,v,y,S,R){for(var C=0;;)try{return f.call(e,p,v,y,S,R)}catch(P){if(P.code==="EAGAIN"&&C<10){C++;continue}throw P}}}(e.readSync);function r(f){f.lchmod=function(p,v,y){f.open(p,$e.O_WRONLY|$e.O_SYMLINK,v,function(S,R){if(S){y&&y(S);return}f.fchmod(R,v,function(C){f.close(R,function(P){y&&y(C||P)})})})},f.lchmodSync=function(p,v){var y=f.openSync(p,$e.O_WRONLY|$e.O_SYMLINK,v),S=!0,R;try{R=f.fchmodSync(y,v),S=!1}finally{if(S)try{f.closeSync(y)}catch{}else f.closeSync(y)}return R}}function t(f){$e.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(p,v,y,S){f.open(p,$e.O_SYMLINK,function(R,C){if(R){S&&S(R);return}f.futimes(C,v,y,function(P){f.close(C,function(U){S&&S(P||U)})})})},f.lutimesSync=function(p,v,y){var S=f.openSync(p,$e.O_SYMLINK),R,C=!0;try{R=f.futimesSync(S,v,y),C=!1}finally{if(C)try{f.closeSync(S)}catch{}else f.closeSync(S)}return R}):f.futimes&&(f.lutimes=function(p,v,y,S){S&&process.nextTick(S)},f.lutimesSync=function(){})}function n(f){return f&&function(p,v,y){return f.call(e,p,v,function(S){h(S)&&(S=null),y&&y.apply(this,arguments)})}}function i(f){return f&&function(p,v){try{return f.call(e,p,v)}catch(y){if(!h(y))throw y}}}function o(f){return f&&function(p,v,y,S){return f.call(e,p,v,y,function(R){h(R)&&(R=null),S&&S.apply(this,arguments)})}}function a(f){return f&&function(p,v,y){try{return f.call(e,p,v,y)}catch(S){if(!h(S))throw S}}}function u(f){return f&&function(p,v,y){typeof v=="function"&&(y=v,v=null);function S(R,C){C&&(C.uid<0&&(C.uid+=4294967296),C.gid<0&&(C.gid+=4294967296)),y&&y.apply(this,arguments)}return v?f.call(e,p,v,S):f.call(e,p,S)}}function c(f){return f&&function(p,v){var y=v?f.call(e,p,v):f.call(e,p);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}function h(f){if(!f||f.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var ja=g((ig,qa)=>{var Ma=require("stream").Stream;qa.exports=cm;function cm(e){return{ReadStream:r,WriteStream:t};function r(n,i){if(!(this instanceof r))return new r(n,i);Ma.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var a=Object.keys(i),u=0,c=a.length;u<c;u++){var h=a[u];this[h]=i[h]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(f,p){if(f){o.emit("error",f),o.readable=!1;return}o.fd=p,o.emit("open",p),o._read()})}function t(n,i){if(!(this instanceof t))return new t(n,i);Ma.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),a=0,u=o.length;a<u;a++){var c=o[a];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Ba=g((og,$a)=>{"use strict";$a.exports=fm;var lm=Object.getPrototypeOf||function(e){return e.__proto__};function fm(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var r={__proto__:lm(e)};else var r=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}),r}});var le=g((sg,ai)=>{var Q=require("fs"),dm=Na(),pm=ja(),hm=Ba(),Pt=require("util"),ae,kt;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ae=Symbol.for("graceful-fs.queue"),kt=Symbol.for("graceful-fs.previous")):(ae="___graceful-fs.queue",kt="___graceful-fs.previous");function mm(){}function Ya(e,r){Object.defineProperty(e,ae,{get:function(){return r}})}var Ze=mm;Pt.debuglog?Ze=Pt.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ze=function(){var e=Pt.format.apply(Pt,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
9
|
+
GFS4: `),console.error(e)});Q[ae]||(Ga=global[ae]||[],Ya(Q,Ga),Q.close=function(e){function r(t,n){return e.call(Q,t,function(i){i||Ua(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(r,kt,{value:e}),r}(Q.close),Q.closeSync=function(e){function r(t){e.apply(Q,arguments),Ua()}return Object.defineProperty(r,kt,{value:e}),r}(Q.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ze(Q[ae]),require("assert").equal(Q[ae].length,0)}));var Ga;global[ae]||Ya(global,Q[ae]);ai.exports=oi(hm(Q));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Q.__patched&&(ai.exports=oi(Q),Q.__patched=!0);function oi(e){dm(e),e.gracefulify=oi,e.createReadStream=te,e.createWriteStream=Ee;var r=e.readFile;e.readFile=t;function t(O,M,L){return typeof M=="function"&&(L=M,M=null),Z(O,M,L);function Z($,Y,_,B){return r($,Y,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?hr([Z,[$,Y,_],I,B||Date.now(),Date.now()]):typeof _=="function"&&_.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(O,M,L,Z){return typeof L=="function"&&(Z=L,L=null),$(O,M,L,Z);function $(Y,_,B,I,T){return n(Y,_,B,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?hr([$,[Y,_,B,I],N,T||Date.now(),Date.now()]):typeof I=="function"&&I.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=a);function a(O,M,L,Z){return typeof L=="function"&&(Z=L,L=null),$(O,M,L,Z);function $(Y,_,B,I,T){return o(Y,_,B,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?hr([$,[Y,_,B,I],N,T||Date.now(),Date.now()]):typeof I=="function"&&I.apply(this,arguments)})}}var u=e.copyFile;u&&(e.copyFile=c);function c(O,M,L,Z){return typeof L=="function"&&(Z=L,L=0),$(O,M,L,Z);function $(Y,_,B,I,T){return u(Y,_,B,function(N){N&&(N.code==="EMFILE"||N.code==="ENFILE")?hr([$,[Y,_,B,I],N,T||Date.now(),Date.now()]):typeof I=="function"&&I.apply(this,arguments)})}}var h=e.readdir;e.readdir=p;var f=/^v[0-5]\./;function p(O,M,L){typeof M=="function"&&(L=M,M=null);var Z=f.test(process.version)?function(_,B,I,T){return h(_,$(_,B,I,T))}:function(_,B,I,T){return h(_,B,$(_,B,I,T))};return Z(O,M,L);function $(Y,_,B,I){return function(T,N){T&&(T.code==="EMFILE"||T.code==="ENFILE")?hr([Z,[Y,_,B],T,I||Date.now(),Date.now()]):(N&&N.sort&&N.sort(),typeof B=="function"&&B.call(this,T,N))}}}if(process.version.substr(0,4)==="v0.8"){var v=pm(e);P=v.ReadStream,F=v.WriteStream}var y=e.ReadStream;y&&(P.prototype=Object.create(y.prototype),P.prototype.open=U);var S=e.WriteStream;S&&(F.prototype=Object.create(S.prototype),F.prototype.open=j),Object.defineProperty(e,"ReadStream",{get:function(){return P},set:function(O){P=O},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return F},set:function(O){F=O},enumerable:!0,configurable:!0});var R=P;Object.defineProperty(e,"FileReadStream",{get:function(){return R},set:function(O){R=O},enumerable:!0,configurable:!0});var C=F;Object.defineProperty(e,"FileWriteStream",{get:function(){return C},set:function(O){C=O},enumerable:!0,configurable:!0});function P(O,M){return this instanceof P?(y.apply(this,arguments),this):P.apply(Object.create(P.prototype),arguments)}function U(){var O=this;_e(O.path,O.flags,O.mode,function(M,L){M?(O.autoClose&&O.destroy(),O.emit("error",M)):(O.fd=L,O.emit("open",L),O.read())})}function F(O,M){return this instanceof F?(S.apply(this,arguments),this):F.apply(Object.create(F.prototype),arguments)}function j(){var O=this;_e(O.path,O.flags,O.mode,function(M,L){M?(O.destroy(),O.emit("error",M)):(O.fd=L,O.emit("open",L))})}function te(O,M){return new e.ReadStream(O,M)}function Ee(O,M){return new e.WriteStream(O,M)}var Le=e.open;e.open=_e;function _e(O,M,L,Z){return typeof L=="function"&&(Z=L,L=null),$(O,M,L,Z);function $(Y,_,B,I,T){return Le(Y,_,B,function(N,de){N&&(N.code==="EMFILE"||N.code==="ENFILE")?hr([$,[Y,_,B,I],N,T||Date.now(),Date.now()]):typeof I=="function"&&I.apply(this,arguments)})}}return e}function hr(e){Ze("ENQUEUE",e[0].name,e[1]),Q[ae].push(e),si()}var At;function Ua(){for(var e=Date.now(),r=0;r<Q[ae].length;++r)Q[ae][r].length>2&&(Q[ae][r][3]=e,Q[ae][r][4]=e);si()}function si(){if(clearTimeout(At),At=void 0,Q[ae].length!==0){var e=Q[ae].shift(),r=e[0],t=e[1],n=e[2],i=e[3],o=e[4];if(i===void 0)Ze("RETRY",r.name,t),r.apply(null,t);else if(Date.now()-i>=6e4){Ze("TIMEOUT",r.name,t);var a=t.pop();typeof a=="function"&&a.call(null,n)}else{var u=Date.now()-o,c=Math.max(o-i,1),h=Math.min(c*1.2,100);u>=h?(Ze("RETRY",r.name,t),r.apply(null,t.concat([i]))):Q[ae].push(e)}At===void 0&&(At=setTimeout(si,0))}}});var Fr=g(Be=>{"use strict";var Ha=be().fromCallback,ye=le(),ym=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof ye[e]=="function");Object.keys(ye).forEach(e=>{e!=="promises"&&(Be[e]=ye[e])});ym.forEach(e=>{Be[e]=Ha(ye[e])});Be.exists=function(e,r){return typeof r=="function"?ye.exists(e,r):new Promise(t=>ye.exists(e,t))};Be.read=function(e,r,t,n,i,o){return typeof o=="function"?ye.read(e,r,t,n,i,o):new Promise((a,u)=>{ye.read(e,r,t,n,i,(c,h,f)=>{if(c)return u(c);a({bytesRead:h,buffer:f})})})};Be.write=function(e,r,...t){return typeof t[t.length-1]=="function"?ye.write(e,r,...t):new Promise((n,i)=>{ye.write(e,r,...t,(o,a,u)=>{if(o)return i(o);n({bytesWritten:a,buffer:u})})})};typeof ye.writev=="function"&&(Be.writev=function(e,r,...t){return typeof t[t.length-1]=="function"?ye.writev(e,r,...t):new Promise((n,i)=>{ye.writev(e,r,...t,(o,a,u)=>{if(o)return i(o);n({bytesWritten:a,buffers:u})})})});typeof ye.realpath.native=="function"&&(Be.realpath.native=Ha(ye.realpath.native))});var ui=g((ug,Wa)=>{Wa.exports=e=>{let r=process.versions.node.split(".").map(t=>parseInt(t,10));return e=e.split(".").map(t=>parseInt(t,10)),r[0]>e[0]||r[0]===e[0]&&(r[1]>e[1]||r[1]===e[1]&&r[2]>=e[2])}});var Ka=g((cg,ci)=>{"use strict";var mr=Fr(),Ne=require("path"),vm=ui(),Va=vm("10.12.0"),za=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Ne.parse(e).root,""))){let t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}},Xa=e=>{let r={mode:511};return typeof e=="number"&&(e={mode:e}),{...r,...e}},Ja=e=>{let r=new Error(`operation not permitted, mkdir '${e}'`);return r.code="EPERM",r.errno=-4048,r.path=e,r.syscall="mkdir",r};ci.exports.makeDir=async(e,r)=>{if(za(e),r=Xa(r),Va){let n=Ne.resolve(e);return mr.mkdir(n,{mode:r.mode,recursive:!0})}let t=async n=>{try{await mr.mkdir(n,r.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ne.dirname(n)===n)throw Ja(n);if(i.message.includes("null bytes"))throw i;return await t(Ne.dirname(n)),t(n)}try{if(!(await mr.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return t(Ne.resolve(e))};ci.exports.makeDirSync=(e,r)=>{if(za(e),r=Xa(r),Va){let n=Ne.resolve(e);return mr.mkdirSync(n,{mode:r.mode,recursive:!0})}let t=n=>{try{mr.mkdirSync(n,r.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ne.dirname(n)===n)throw Ja(n);if(i.message.includes("null bytes"))throw i;return t(Ne.dirname(n)),t(n)}try{if(!mr.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return t(Ne.resolve(e))}});var Pe=g((lg,Qa)=>{"use strict";var gm=be().fromPromise,{makeDir:Em,makeDirSync:li}=Ka(),fi=gm(Em);Qa.exports={mkdirs:fi,mkdirsSync:li,mkdirp:fi,mkdirpSync:li,ensureDir:fi,ensureDirSync:li}});var di=g((fg,Za)=>{"use strict";var yr=le();function _m(e,r,t,n){yr.open(e,"r+",(i,o)=>{if(i)return n(i);yr.futimes(o,r,t,a=>{yr.close(o,u=>{n&&n(a||u)})})})}function Sm(e,r,t){let n=yr.openSync(e,"r+");return yr.futimesSync(n,r,t),yr.closeSync(n)}Za.exports={utimesMillis:_m,utimesMillisSync:Sm}});var Lr=g((dg,nu)=>{"use strict";var vr=Fr(),we=require("path"),bm=require("util"),wm=ui(),Ft=wm("10.5.0"),eu=e=>Ft?vr.stat(e,{bigint:!0}):vr.stat(e),pi=e=>Ft?vr.statSync(e,{bigint:!0}):vr.statSync(e);function Cm(e,r){return Promise.all([eu(e),eu(r).catch(t=>{if(t.code==="ENOENT")return null;throw t})]).then(([t,n])=>({srcStat:t,destStat:n}))}function Rm(e,r){let t,n=pi(e);try{t=pi(r)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:t}}function Om(e,r,t,n){bm.callbackify(Cm)(e,r,(i,o)=>{if(i)return n(i);let{srcStat:a,destStat:u}=o;return u&&Lt(a,u)?n(new Error("Source and destination must not be the same.")):a.isDirectory()&&hi(e,r)?n(new Error(Nt(e,r,t))):n(null,{srcStat:a,destStat:u})})}function Tm(e,r,t){let{srcStat:n,destStat:i}=Rm(e,r);if(i&&Lt(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&hi(e,r))throw new Error(Nt(e,r,t));return{srcStat:n,destStat:i}}function ru(e,r,t,n,i){let o=we.resolve(we.dirname(e)),a=we.resolve(we.dirname(t));if(a===o||a===we.parse(a).root)return i();let u=(c,h)=>c?c.code==="ENOENT"?i():i(c):Lt(r,h)?i(new Error(Nt(e,t,n))):ru(e,r,a,n,i);Ft?vr.stat(a,{bigint:!0},u):vr.stat(a,u)}function tu(e,r,t,n){let i=we.resolve(we.dirname(e)),o=we.resolve(we.dirname(t));if(o===i||o===we.parse(o).root)return;let a;try{a=pi(o)}catch(u){if(u.code==="ENOENT")return;throw u}if(Lt(r,a))throw new Error(Nt(e,t,n));return tu(e,r,o,n)}function Lt(e,r){return!!(r.ino&&r.dev&&r.ino===e.ino&&r.dev===e.dev&&(Ft||r.ino<Number.MAX_SAFE_INTEGER||r.size===e.size&&r.mode===e.mode&&r.nlink===e.nlink&&r.atimeMs===e.atimeMs&&r.mtimeMs===e.mtimeMs&&r.ctimeMs===e.ctimeMs&&r.birthtimeMs===e.birthtimeMs))}function hi(e,r){let t=we.resolve(e).split(we.sep).filter(i=>i),n=we.resolve(r).split(we.sep).filter(i=>i);return t.reduce((i,o,a)=>i&&n[a]===o,!0)}function Nt(e,r,t){return`Cannot ${t} '${e}' to a subdirectory of itself, '${r}'.`}nu.exports={checkPaths:Om,checkPathsSync:Tm,checkParentPaths:ru,checkParentPathsSync:tu,isSrcSubdir:hi}});var uu=g((pg,au)=>{"use strict";var fe=le(),Nr=require("path"),Dm=Pe().mkdirsSync,xm=di().utimesMillisSync,Mr=Lr();function Im(e,r,t){typeof t=="function"&&(t={filter:t}),t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
10
|
+
|
|
11
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Mr.checkPathsSync(e,r,"copy");return Mr.checkParentPathsSync(e,n,r,"copy"),Pm(i,e,r,t)}function Pm(e,r,t,n){if(n.filter&&!n.filter(r,t))return;let i=Nr.dirname(t);return fe.existsSync(i)||Dm(i),iu(e,r,t,n)}function iu(e,r,t,n){if(!(n.filter&&!n.filter(r,t)))return Am(e,r,t,n)}function Am(e,r,t,n){let o=(n.dereference?fe.statSync:fe.lstatSync)(r);if(o.isDirectory())return jm(o,e,r,t,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return km(o,e,r,t,n);if(o.isSymbolicLink())return Gm(e,r,t,n)}function km(e,r,t,n,i){return r?Fm(e,t,n,i):ou(e,t,n,i)}function Fm(e,r,t,n){if(n.overwrite)return fe.unlinkSync(t),ou(e,r,t,n);if(n.errorOnExist)throw new Error(`'${t}' already exists`)}function ou(e,r,t,n){return fe.copyFileSync(r,t),n.preserveTimestamps&&Lm(e.mode,r,t),mi(t,e.mode)}function Lm(e,r,t){return Nm(e)&&Mm(t,e),qm(r,t)}function Nm(e){return(e&128)===0}function Mm(e,r){return mi(e,r|128)}function mi(e,r){return fe.chmodSync(e,r)}function qm(e,r){let t=fe.statSync(e);return xm(r,t.atime,t.mtime)}function jm(e,r,t,n,i){if(!r)return $m(e.mode,t,n,i);if(r&&!r.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${t}'.`);return su(t,n,i)}function $m(e,r,t,n){return fe.mkdirSync(t),su(r,t,n),mi(t,e)}function su(e,r,t){fe.readdirSync(e).forEach(n=>Bm(n,e,r,t))}function Bm(e,r,t,n){let i=Nr.join(r,e),o=Nr.join(t,e),{destStat:a}=Mr.checkPathsSync(i,o,"copy");return iu(a,i,o,n)}function Gm(e,r,t,n){let i=fe.readlinkSync(r);if(n.dereference&&(i=Nr.resolve(process.cwd(),i)),e){let o;try{o=fe.readlinkSync(t)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return fe.symlinkSync(i,t);throw a}if(n.dereference&&(o=Nr.resolve(process.cwd(),o)),Mr.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if(fe.statSync(t).isDirectory()&&Mr.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return Um(i,t)}else return fe.symlinkSync(i,t)}function Um(e,r){return fe.unlinkSync(r),fe.symlinkSync(e,r)}au.exports=Im});var yi=g((hg,cu)=>{"use strict";cu.exports={copySync:uu()}});var Ge=g((mg,fu)=>{"use strict";var Ym=be().fromPromise,lu=Fr();function Hm(e){return lu.access(e).then(()=>!0).catch(()=>!1)}fu.exports={pathExists:Ym(Hm),pathExistsSync:lu.existsSync}});var _u=g((yg,Eu)=>{"use strict";var Ce=le(),qr=require("path"),Wm=Pe().mkdirs,Vm=Ge().pathExists,zm=di().utimesMillis,jr=Lr();function Xm(e,r,t,n){typeof t=="function"&&!n?(n=t,t={}):typeof t=="function"&&(t={filter:t}),n=n||function(){},t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
12
|
+
|
|
13
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),jr.checkPaths(e,r,"copy",(i,o)=>{if(i)return n(i);let{srcStat:a,destStat:u}=o;jr.checkParentPaths(e,a,r,"copy",c=>c?n(c):t.filter?mu(du,u,e,r,t,n):du(u,e,r,t,n))})}function du(e,r,t,n,i){let o=qr.dirname(t);Vm(o,(a,u)=>{if(a)return i(a);if(u)return vi(e,r,t,n,i);Wm(o,c=>c?i(c):vi(e,r,t,n,i))})}function mu(e,r,t,n,i,o){Promise.resolve(i.filter(t,n)).then(a=>a?e(r,t,n,i,o):o(),a=>o(a))}function vi(e,r,t,n,i){return n.filter?mu(pu,e,r,t,n,i):pu(e,r,t,n,i)}function pu(e,r,t,n,i){(n.dereference?Ce.stat:Ce.lstat)(r,(a,u)=>{if(a)return i(a);if(u.isDirectory())return ty(u,e,r,t,n,i);if(u.isFile()||u.isCharacterDevice()||u.isBlockDevice())return Jm(u,e,r,t,n,i);if(u.isSymbolicLink())return oy(e,r,t,n,i)})}function Jm(e,r,t,n,i,o){return r?Km(e,t,n,i,o):yu(e,t,n,i,o)}function Km(e,r,t,n,i){if(n.overwrite)Ce.unlink(t,o=>o?i(o):yu(e,r,t,n,i));else return n.errorOnExist?i(new Error(`'${t}' already exists`)):i()}function yu(e,r,t,n,i){Ce.copyFile(r,t,o=>o?i(o):n.preserveTimestamps?Qm(e.mode,r,t,i):Mt(t,e.mode,i))}function Qm(e,r,t,n){return Zm(e)?ey(t,e,i=>i?n(i):hu(e,r,t,n)):hu(e,r,t,n)}function Zm(e){return(e&128)===0}function ey(e,r,t){return Mt(e,r|128,t)}function hu(e,r,t,n){ry(r,t,i=>i?n(i):Mt(t,e,n))}function Mt(e,r,t){return Ce.chmod(e,r,t)}function ry(e,r,t){Ce.stat(e,(n,i)=>n?t(n):zm(r,i.atime,i.mtime,t))}function ty(e,r,t,n,i,o){return r?r&&!r.isDirectory()?o(new Error(`Cannot overwrite non-directory '${n}' with directory '${t}'.`)):vu(t,n,i,o):ny(e.mode,t,n,i,o)}function ny(e,r,t,n,i){Ce.mkdir(t,o=>{if(o)return i(o);vu(r,t,n,a=>a?i(a):Mt(t,e,i))})}function vu(e,r,t,n){Ce.readdir(e,(i,o)=>i?n(i):gu(o,e,r,t,n))}function gu(e,r,t,n,i){let o=e.pop();return o?iy(e,o,r,t,n,i):i()}function iy(e,r,t,n,i,o){let a=qr.join(t,r),u=qr.join(n,r);jr.checkPaths(a,u,"copy",(c,h)=>{if(c)return o(c);let{destStat:f}=h;vi(f,a,u,i,p=>p?o(p):gu(e,t,n,i,o))})}function oy(e,r,t,n,i){Ce.readlink(r,(o,a)=>{if(o)return i(o);if(n.dereference&&(a=qr.resolve(process.cwd(),a)),e)Ce.readlink(t,(u,c)=>u?u.code==="EINVAL"||u.code==="UNKNOWN"?Ce.symlink(a,t,i):i(u):(n.dereference&&(c=qr.resolve(process.cwd(),c)),jr.isSrcSubdir(a,c)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&jr.isSrcSubdir(c,a)?i(new Error(`Cannot overwrite '${c}' with '${a}'.`)):sy(a,t,i)));else return Ce.symlink(a,t,i)})}function sy(e,r,t){Ce.unlink(r,n=>n?t(n):Ce.symlink(e,r,t))}Eu.exports=Xm});var gi=g((vg,Su)=>{"use strict";var ay=be().fromCallback;Su.exports={copy:ay(_u())}});var Iu=g((gg,xu)=>{"use strict";var bu=le(),Ou=require("path"),W=require("assert"),$r=process.platform==="win32";function Tu(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{e[t]=e[t]||bu[t],t=t+"Sync",e[t]=e[t]||bu[t]}),e.maxBusyTries=e.maxBusyTries||3}function Ei(e,r,t){let n=0;typeof r=="function"&&(t=r,r={}),W(e,"rimraf: missing path"),W.strictEqual(typeof e,"string","rimraf: path should be a string"),W.strictEqual(typeof t,"function","rimraf: callback function required"),W(r,"rimraf: invalid options argument provided"),W.strictEqual(typeof r,"object","rimraf: options should be object"),Tu(r),wu(e,r,function i(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&n<r.maxBusyTries){n++;let a=n*100;return setTimeout(()=>wu(e,r,i),a)}o.code==="ENOENT"&&(o=null)}t(o)})}function wu(e,r,t){W(e),W(r),W(typeof t=="function"),r.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return t(null);if(n&&n.code==="EPERM"&&$r)return Cu(e,r,n,t);if(i&&i.isDirectory())return qt(e,r,n,t);r.unlink(e,o=>{if(o){if(o.code==="ENOENT")return t(null);if(o.code==="EPERM")return $r?Cu(e,r,o,t):qt(e,r,o,t);if(o.code==="EISDIR")return qt(e,r,o,t)}return t(o)})})}function Cu(e,r,t,n){W(e),W(r),W(typeof n=="function"),r.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:t):r.stat(e,(o,a)=>{o?n(o.code==="ENOENT"?null:t):a.isDirectory()?qt(e,r,t,n):r.unlink(e,n)})})}function Ru(e,r,t){let n;W(e),W(r);try{r.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw t}try{n=r.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw t}n.isDirectory()?jt(e,r,t):r.unlinkSync(e)}function qt(e,r,t,n){W(e),W(r),W(typeof n=="function"),r.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?uy(e,r,n):i&&i.code==="ENOTDIR"?n(t):n(i)})}function uy(e,r,t){W(e),W(r),W(typeof t=="function"),r.readdir(e,(n,i)=>{if(n)return t(n);let o=i.length,a;if(o===0)return r.rmdir(e,t);i.forEach(u=>{Ei(Ou.join(e,u),r,c=>{if(!a){if(c)return t(a=c);--o===0&&r.rmdir(e,t)}})})})}function Du(e,r){let t;r=r||{},Tu(r),W(e,"rimraf: missing path"),W.strictEqual(typeof e,"string","rimraf: path should be a string"),W(r,"rimraf: missing options"),W.strictEqual(typeof r,"object","rimraf: options should be object");try{t=r.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&$r&&Ru(e,r,n)}try{t&&t.isDirectory()?jt(e,r,null):r.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return $r?Ru(e,r,n):jt(e,r,n);if(n.code!=="EISDIR")throw n;jt(e,r,n)}}function jt(e,r,t){W(e),W(r);try{r.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw t;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")cy(e,r);else if(n.code!=="ENOENT")throw n}}function cy(e,r){if(W(e),W(r),r.readdirSync(e).forEach(t=>Du(Ou.join(e,t),r)),$r){let t=Date.now();do try{return r.rmdirSync(e,r)}catch{}while(Date.now()-t<500)}else return r.rmdirSync(e,r)}xu.exports=Ei;Ei.sync=Du});var Br=g((Eg,Au)=>{"use strict";var ly=be().fromCallback,Pu=Iu();Au.exports={remove:ly(Pu),removeSync:Pu.sync}});var $u=g((_g,ju)=>{"use strict";var fy=be().fromCallback,Lu=le(),Nu=require("path"),Mu=Pe(),qu=Br(),ku=fy(function(r,t){t=t||function(){},Lu.readdir(r,(n,i)=>{if(n)return Mu.mkdirs(r,t);i=i.map(a=>Nu.join(r,a)),o();function o(){let a=i.pop();if(!a)return t();qu.remove(a,u=>{if(u)return t(u);o()})}})});function Fu(e){let r;try{r=Lu.readdirSync(e)}catch{return Mu.mkdirsSync(e)}r.forEach(t=>{t=Nu.join(e,t),qu.removeSync(t)})}ju.exports={emptyDirSync:Fu,emptydirSync:Fu,emptyDir:ku,emptydir:ku}});var Yu=g((Sg,Uu)=>{"use strict";var dy=be().fromCallback,Bu=require("path"),Ue=le(),Gu=Pe();function py(e,r){function t(){Ue.writeFile(e,"",n=>{if(n)return r(n);r()})}Ue.stat(e,(n,i)=>{if(!n&&i.isFile())return r();let o=Bu.dirname(e);Ue.stat(o,(a,u)=>{if(a)return a.code==="ENOENT"?Gu.mkdirs(o,c=>{if(c)return r(c);t()}):r(a);u.isDirectory()?t():Ue.readdir(o,c=>{if(c)return r(c)})})})}function hy(e){let r;try{r=Ue.statSync(e)}catch{}if(r&&r.isFile())return;let t=Bu.dirname(e);try{Ue.statSync(t).isDirectory()||Ue.readdirSync(t)}catch(n){if(n&&n.code==="ENOENT")Gu.mkdirsSync(t);else throw n}Ue.writeFileSync(e,"")}Uu.exports={createFile:dy(py),createFileSync:hy}});var Xu=g((bg,zu)=>{"use strict";var my=be().fromCallback,Wu=require("path"),er=le(),Vu=Pe(),Hu=Ge().pathExists;function yy(e,r,t){function n(i,o){er.link(i,o,a=>{if(a)return t(a);t(null)})}Hu(r,(i,o)=>{if(i)return t(i);if(o)return t(null);er.lstat(e,a=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),t(a);let u=Wu.dirname(r);Hu(u,(c,h)=>{if(c)return t(c);if(h)return n(e,r);Vu.mkdirs(u,f=>{if(f)return t(f);n(e,r)})})})})}function vy(e,r){if(er.existsSync(r))return;try{er.lstatSync(e)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=Wu.dirname(r);return er.existsSync(n)||Vu.mkdirsSync(n),er.linkSync(e,r)}zu.exports={createLink:my(yy),createLinkSync:vy}});var Ku=g((wg,Ju)=>{"use strict";var Ye=require("path"),Gr=le(),gy=Ge().pathExists;function Ey(e,r,t){if(Ye.isAbsolute(e))return Gr.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),t(n)):t(null,{toCwd:e,toDst:e}));{let n=Ye.dirname(r),i=Ye.join(n,e);return gy(i,(o,a)=>o?t(o):a?t(null,{toCwd:i,toDst:e}):Gr.lstat(e,u=>u?(u.message=u.message.replace("lstat","ensureSymlink"),t(u)):t(null,{toCwd:e,toDst:Ye.relative(n,e)})))}}function _y(e,r){let t;if(Ye.isAbsolute(e)){if(t=Gr.existsSync(e),!t)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=Ye.dirname(r),i=Ye.join(n,e);if(t=Gr.existsSync(i),t)return{toCwd:i,toDst:e};if(t=Gr.existsSync(e),!t)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Ye.relative(n,e)}}}Ju.exports={symlinkPaths:Ey,symlinkPathsSync:_y}});var ec=g((Cg,Zu)=>{"use strict";var Qu=le();function Sy(e,r,t){if(t=typeof r=="function"?r:t,r=typeof r=="function"?!1:r,r)return t(null,r);Qu.lstat(e,(n,i)=>{if(n)return t(null,"file");r=i&&i.isDirectory()?"dir":"file",t(null,r)})}function by(e,r){let t;if(r)return r;try{t=Qu.lstatSync(e)}catch{return"file"}return t&&t.isDirectory()?"dir":"file"}Zu.exports={symlinkType:Sy,symlinkTypeSync:by}});var ac=g((Rg,sc)=>{"use strict";var wy=be().fromCallback,tc=require("path"),gr=le(),nc=Pe(),Cy=nc.mkdirs,Ry=nc.mkdirsSync,ic=Ku(),Oy=ic.symlinkPaths,Ty=ic.symlinkPathsSync,oc=ec(),Dy=oc.symlinkType,xy=oc.symlinkTypeSync,rc=Ge().pathExists;function Iy(e,r,t,n){n=typeof t=="function"?t:n,t=typeof t=="function"?!1:t,rc(r,(i,o)=>{if(i)return n(i);if(o)return n(null);Oy(e,r,(a,u)=>{if(a)return n(a);e=u.toDst,Dy(u.toCwd,t,(c,h)=>{if(c)return n(c);let f=tc.dirname(r);rc(f,(p,v)=>{if(p)return n(p);if(v)return gr.symlink(e,r,h,n);Cy(f,y=>{if(y)return n(y);gr.symlink(e,r,h,n)})})})})})}function Py(e,r,t){if(gr.existsSync(r))return;let i=Ty(e,r);e=i.toDst,t=xy(i.toCwd,t);let o=tc.dirname(r);return gr.existsSync(o)||Ry(o),gr.symlinkSync(e,r,t)}sc.exports={createSymlink:wy(Iy),createSymlinkSync:Py}});var cc=g((Og,uc)=>{"use strict";var $t=Yu(),Bt=Xu(),Gt=ac();uc.exports={createFile:$t.createFile,createFileSync:$t.createFileSync,ensureFile:$t.createFile,ensureFileSync:$t.createFileSync,createLink:Bt.createLink,createLinkSync:Bt.createLinkSync,ensureLink:Bt.createLink,ensureLinkSync:Bt.createLinkSync,createSymlink:Gt.createSymlink,createSymlinkSync:Gt.createSymlinkSync,ensureSymlink:Gt.createSymlink,ensureSymlinkSync:Gt.createSymlinkSync}});var Ut=g((Tg,lc)=>{function Ay(e,{EOL:r=`
|
|
14
|
+
`,finalEOL:t=!0,replacer:n=null,spaces:i}={}){let o=t?r:"";return JSON.stringify(e,n,i).replace(/\n/g,r)+o}function ky(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}lc.exports={stringify:Ay,stripBom:ky}});var hc=g((Dg,pc)=>{var Er;try{Er=le()}catch{Er=require("fs")}var Yt=be(),{stringify:fc,stripBom:dc}=Ut();async function Fy(e,r={}){typeof r=="string"&&(r={encoding:r});let t=r.fs||Er,n="throws"in r?r.throws:!0,i=await Yt.fromCallback(t.readFile)(e,r);i=dc(i);let o;try{o=JSON.parse(i,r?r.reviver:null)}catch(a){if(n)throw a.message=`${e}: ${a.message}`,a;return null}return o}var Ly=Yt.fromPromise(Fy);function Ny(e,r={}){typeof r=="string"&&(r={encoding:r});let t=r.fs||Er,n="throws"in r?r.throws:!0;try{let i=t.readFileSync(e,r);return i=dc(i),JSON.parse(i,r.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function My(e,r,t={}){let n=t.fs||Er,i=fc(r,t);await Yt.fromCallback(n.writeFile)(e,i,t)}var qy=Yt.fromPromise(My);function jy(e,r,t={}){let n=t.fs||Er,i=fc(r,t);return n.writeFileSync(e,i,t)}var $y={readFile:Ly,readFileSync:Ny,writeFile:qy,writeFileSync:jy};pc.exports=$y});var yc=g((xg,mc)=>{"use strict";var Ht=hc();mc.exports={readJson:Ht.readFile,readJsonSync:Ht.readFileSync,writeJson:Ht.writeFile,writeJsonSync:Ht.writeFileSync}});var Wt=g((Ig,Ec)=>{"use strict";var By=be().fromCallback,Ur=le(),vc=require("path"),gc=Pe(),Gy=Ge().pathExists;function Uy(e,r,t,n){typeof t=="function"&&(n=t,t="utf8");let i=vc.dirname(e);Gy(i,(o,a)=>{if(o)return n(o);if(a)return Ur.writeFile(e,r,t,n);gc.mkdirs(i,u=>{if(u)return n(u);Ur.writeFile(e,r,t,n)})})}function Yy(e,...r){let t=vc.dirname(e);if(Ur.existsSync(t))return Ur.writeFileSync(e,...r);gc.mkdirsSync(t),Ur.writeFileSync(e,...r)}Ec.exports={outputFile:By(Uy),outputFileSync:Yy}});var Sc=g((Pg,_c)=>{"use strict";var{stringify:Hy}=Ut(),{outputFile:Wy}=Wt();async function Vy(e,r,t={}){let n=Hy(r,t);await Wy(e,n,t)}_c.exports=Vy});var wc=g((Ag,bc)=>{"use strict";var{stringify:zy}=Ut(),{outputFileSync:Xy}=Wt();function Jy(e,r,t){let n=zy(r,t);Xy(e,n,t)}bc.exports=Jy});var Rc=g((kg,Cc)=>{"use strict";var Ky=be().fromPromise,ve=yc();ve.outputJson=Ky(Sc());ve.outputJsonSync=wc();ve.outputJSON=ve.outputJson;ve.outputJSONSync=ve.outputJsonSync;ve.writeJSON=ve.writeJson;ve.writeJSONSync=ve.writeJsonSync;ve.readJSON=ve.readJson;ve.readJSONSync=ve.readJsonSync;Cc.exports=ve});var Pc=g((Fg,Ic)=>{"use strict";var Dc=le(),Qy=require("path"),Zy=yi().copySync,xc=Br().removeSync,ev=Pe().mkdirpSync,Oc=Lr();function rv(e,r,t){t=t||{};let n=t.overwrite||t.clobber||!1,{srcStat:i}=Oc.checkPathsSync(e,r,"move");return Oc.checkParentPathsSync(e,i,r,"move"),ev(Qy.dirname(r)),tv(e,r,n)}function tv(e,r,t){if(t)return xc(r),Tc(e,r,t);if(Dc.existsSync(r))throw new Error("dest already exists.");return Tc(e,r,t)}function Tc(e,r,t){try{Dc.renameSync(e,r)}catch(n){if(n.code!=="EXDEV")throw n;return nv(e,r,t)}}function nv(e,r,t){return Zy(e,r,{overwrite:t,errorOnExist:!0}),xc(e)}Ic.exports=rv});var kc=g((Lg,Ac)=>{"use strict";Ac.exports={moveSync:Pc()}});var qc=g((Ng,Mc)=>{"use strict";var iv=le(),ov=require("path"),sv=gi().copy,Nc=Br().remove,av=Pe().mkdirp,uv=Ge().pathExists,Fc=Lr();function cv(e,r,t,n){typeof t=="function"&&(n=t,t={});let i=t.overwrite||t.clobber||!1;Fc.checkPaths(e,r,"move",(o,a)=>{if(o)return n(o);let{srcStat:u}=a;Fc.checkParentPaths(e,u,r,"move",c=>{if(c)return n(c);av(ov.dirname(r),h=>h?n(h):lv(e,r,i,n))})})}function lv(e,r,t,n){if(t)return Nc(r,i=>i?n(i):Lc(e,r,t,n));uv(r,(i,o)=>i?n(i):o?n(new Error("dest already exists.")):Lc(e,r,t,n))}function Lc(e,r,t,n){iv.rename(e,r,i=>i?i.code!=="EXDEV"?n(i):fv(e,r,t,n):n())}function fv(e,r,t,n){sv(e,r,{overwrite:t,errorOnExist:!0},o=>o?n(o):Nc(e,n))}Mc.exports=cv});var $c=g((Mg,jc)=>{"use strict";var dv=be().fromCallback;jc.exports={move:dv(qc())}});var Yr=g((qg,_i)=>{"use strict";_i.exports={...Fr(),...yi(),...gi(),...$u(),...cc(),...Rc(),...Pe(),...kc(),...$c(),...Wt(),...Ge(),...Br()};var Bc=require("fs");Object.getOwnPropertyDescriptor(Bc,"promises")&&Object.defineProperty(_i.exports,"promises",{get(){return Bc.promises}})});var Uc=g((jg,Gc)=>{var Si=class{constructor(r){this.value=r,this.next=void 0}},bi=class{constructor(){this.clear()}enqueue(r){let t=new Si(r);this._head?(this._tail.next=t,this._tail=t):(this._head=t,this._tail=t),this._size++}dequeue(){let r=this._head;if(r)return this._head=this._head.next,this._size--,r.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let r=this._head;for(;r;)yield r.value,r=r.next}};Gc.exports=bi});var Hc=g(($g,Yc)=>{"use strict";var pv=Uc(),hv=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let r=new pv,t=0,n=()=>{t--,r.size>0&&r.dequeue()()},i=async(u,c,...h)=>{t++;let f=(async()=>u(...h))();c(f);try{await f}catch{}n()},o=(u,c,...h)=>{r.enqueue(i.bind(null,u,c,...h)),(async()=>(await Promise.resolve(),t<e&&r.size>0&&r.dequeue()()))()},a=(u,...c)=>new Promise(h=>{o(u,h,...c)});return Object.defineProperties(a,{activeCount:{get:()=>t},pendingCount:{get:()=>r.size},clearQueue:{value:()=>{r.clear()}}}),a};Yc.exports=hv});var zc=g((Bg,Vc)=>{"use strict";var Wc=Hc(),Vt=class extends Error{constructor(r){super(),this.value=r}},mv=async(e,r)=>r(await e),yv=async e=>{let r=await Promise.all(e);if(r[1]===!0)throw new Vt(r[0]);return!1},vv=async(e,r,t)=>{t={concurrency:1/0,preserveOrder:!0,...t};let n=Wc(t.concurrency),i=[...e].map(a=>[a,n(mv,a,r)]),o=Wc(t.preserveOrder?1:1/0);try{await Promise.all(i.map(a=>o(yv,a)))}catch(a){if(a instanceof Vt)return a.value;throw a}};Vc.exports=vv});var el=g((Gg,wi)=>{"use strict";var Xc=require("path"),zt=require("fs"),{promisify:Jc}=require("util"),gv=zc(),Ev=Jc(zt.stat),_v=Jc(zt.lstat),Kc={directory:"isDirectory",file:"isFile"};function Qc({type:e}){if(!(e in Kc))throw new Error(`Invalid type specified: ${e}`)}var Zc=(e,r)=>e===void 0||r[Kc[e]]();wi.exports=async(e,r)=>{r={cwd:process.cwd(),type:"file",allowSymlinks:!0,...r},Qc(r);let t=r.allowSymlinks?Ev:_v;return gv(e,async n=>{try{let i=await t(Xc.resolve(r.cwd,n));return Zc(r.type,i)}catch{return!1}},r)};wi.exports.sync=(e,r)=>{r={cwd:process.cwd(),allowSymlinks:!0,type:"file",...r},Qc(r);let t=r.allowSymlinks?zt.statSync:zt.lstatSync;for(let n of e)try{let i=t(Xc.resolve(r.cwd,n));if(Zc(r.type,i))return n}catch{}}});var tl=g((Ug,Ci)=>{"use strict";var rl=require("fs"),{promisify:Sv}=require("util"),bv=Sv(rl.access);Ci.exports=async e=>{try{return await bv(e),!0}catch{return!1}};Ci.exports.sync=e=>{try{return rl.accessSync(e),!0}catch{return!1}}});var Oi=g((Yg,_r)=>{"use strict";var He=require("path"),Xt=el(),nl=tl(),Ri=Symbol("findUp.stop");_r.exports=async(e,r={})=>{let t=He.resolve(r.cwd||""),{root:n}=He.parse(t),i=[].concat(e),o=async a=>{if(typeof e!="function")return Xt(i,a);let u=await e(a.cwd);return typeof u=="string"?Xt([u],a):u};for(;;){let a=await o({...r,cwd:t});if(a===Ri)return;if(a)return He.resolve(t,a);if(t===n)return;t=He.dirname(t)}};_r.exports.sync=(e,r={})=>{let t=He.resolve(r.cwd||""),{root:n}=He.parse(t),i=[].concat(e),o=a=>{if(typeof e!="function")return Xt.sync(i,a);let u=e(a.cwd);return typeof u=="string"?Xt.sync([u],a):u};for(;;){let a=o({...r,cwd:t});if(a===Ri)return;if(a)return He.resolve(t,a);if(t===n)return;t=He.dirname(t)}};_r.exports.exists=nl;_r.exports.sync.exists=nl.sync;_r.exports.stop=Ri});var Jt=g((Hg,Ti)=>{"use strict";var il=require("path"),ol=Oi(),wv=async e=>{let r=await ol("package.json",{cwd:e});return r&&il.dirname(r)};Ti.exports=wv;Ti.exports.sync=e=>{let r=ol.sync("package.json",{cwd:e});return r&&il.dirname(r)}});var ul=g((iE,al)=>{"use strict";var{FORCE_COLOR:Ov,NODE_DISABLE_COLORS:Tv,TERM:Dv}=process.env,G={enabled:!Tv&&Dv!=="dumb"&&Ov!=="0",reset:V(0,0),bold:V(1,22),dim:V(2,22),italic:V(3,23),underline:V(4,24),inverse:V(7,27),hidden:V(8,28),strikethrough:V(9,29),black:V(30,39),red:V(31,39),green:V(32,39),yellow:V(33,39),blue:V(34,39),magenta:V(35,39),cyan:V(36,39),white:V(37,39),gray:V(90,39),grey:V(90,39),bgBlack:V(40,49),bgRed:V(41,49),bgGreen:V(42,49),bgYellow:V(43,49),bgBlue:V(44,49),bgMagenta:V(45,49),bgCyan:V(46,49),bgWhite:V(47,49)};function sl(e,r){let t=0,n,i="",o="";for(;t<e.length;t++)n=e[t],i+=n.open,o+=n.close,r.includes(n.close)&&(r=r.replace(n.rgx,n.close+n.open));return i+r+o}function xv(e,r){let t={has:e,keys:r};return t.reset=G.reset.bind(t),t.bold=G.bold.bind(t),t.dim=G.dim.bind(t),t.italic=G.italic.bind(t),t.underline=G.underline.bind(t),t.inverse=G.inverse.bind(t),t.hidden=G.hidden.bind(t),t.strikethrough=G.strikethrough.bind(t),t.black=G.black.bind(t),t.red=G.red.bind(t),t.green=G.green.bind(t),t.yellow=G.yellow.bind(t),t.blue=G.blue.bind(t),t.magenta=G.magenta.bind(t),t.cyan=G.cyan.bind(t),t.white=G.white.bind(t),t.gray=G.gray.bind(t),t.grey=G.grey.bind(t),t.bgBlack=G.bgBlack.bind(t),t.bgRed=G.bgRed.bind(t),t.bgGreen=G.bgGreen.bind(t),t.bgYellow=G.bgYellow.bind(t),t.bgBlue=G.bgBlue.bind(t),t.bgMagenta=G.bgMagenta.bind(t),t.bgCyan=G.bgCyan.bind(t),t.bgWhite=G.bgWhite.bind(t),t}function V(e,r){let t={open:`\x1B[${e}m`,close:`\x1B[${r}m`,rgx:new RegExp(`\\x1b\\[${r}m`,"g")};return function(n){return this!==void 0&&this.has!==void 0?(this.has.includes(e)||(this.has.push(e),this.keys.push(t)),n===void 0?this:G.enabled?sl(this.keys,n+""):n+""):n===void 0?xv([e],[t]):G.enabled?sl([t],n+""):n+""}}al.exports=G});var El=g(A=>{"use strict";var Hr=Symbol.for("react.element"),Iv=Symbol.for("react.portal"),Pv=Symbol.for("react.fragment"),Av=Symbol.for("react.strict_mode"),kv=Symbol.for("react.profiler"),Fv=Symbol.for("react.provider"),Lv=Symbol.for("react.context"),Nv=Symbol.for("react.forward_ref"),Mv=Symbol.for("react.suspense"),qv=Symbol.for("react.memo"),jv=Symbol.for("react.lazy"),cl=Symbol.iterator;function $v(e){return e===null||typeof e!="object"?null:(e=cl&&e[cl]||e["@@iterator"],typeof e=="function"?e:null)}var dl={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pl=Object.assign,hl={};function Sr(e,r,t){this.props=e,this.context=r,this.refs=hl,this.updater=t||dl}Sr.prototype.isReactComponent={};Sr.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")};Sr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ml(){}ml.prototype=Sr.prototype;function xi(e,r,t){this.props=e,this.context=r,this.refs=hl,this.updater=t||dl}var Ii=xi.prototype=new ml;Ii.constructor=xi;pl(Ii,Sr.prototype);Ii.isPureReactComponent=!0;var ll=Array.isArray,yl=Object.prototype.hasOwnProperty,Pi={current:null},vl={key:!0,ref:!0,__self:!0,__source:!0};function gl(e,r,t){var n,i={},o=null,a=null;if(r!=null)for(n in r.ref!==void 0&&(a=r.ref),r.key!==void 0&&(o=""+r.key),r)yl.call(r,n)&&!vl.hasOwnProperty(n)&&(i[n]=r[n]);var u=arguments.length-2;if(u===1)i.children=t;else if(1<u){for(var c=Array(u),h=0;h<u;h++)c[h]=arguments[h+2];i.children=c}if(e&&e.defaultProps)for(n in u=e.defaultProps,u)i[n]===void 0&&(i[n]=u[n]);return{$$typeof:Hr,type:e,key:o,ref:a,props:i,_owner:Pi.current}}function Bv(e,r){return{$$typeof:Hr,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}function Ai(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hr}function Gv(e){var r={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return r[t]})}var fl=/\/+/g;function Di(e,r){return typeof e=="object"&&e!==null&&e.key!=null?Gv(""+e.key):r.toString(36)}function Qt(e,r,t,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Hr:case Iv:a=!0}}if(a)return a=e,i=i(a),e=n===""?"."+Di(a,0):n,ll(i)?(t="",e!=null&&(t=e.replace(fl,"$&/")+"/"),Qt(i,r,t,"",function(h){return h})):i!=null&&(Ai(i)&&(i=Bv(i,t+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(fl,"$&/")+"/")+e)),r.push(i)),1;if(a=0,n=n===""?".":n+":",ll(e))for(var u=0;u<e.length;u++){o=e[u];var c=n+Di(o,u);a+=Qt(o,r,t,c,i)}else if(c=$v(e),typeof c=="function")for(e=c.call(e),u=0;!(o=e.next()).done;)o=o.value,c=n+Di(o,u++),a+=Qt(o,r,t,c,i);else if(o==="object")throw r=String(e),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return a}function Kt(e,r,t){if(e==null)return e;var n=[],i=0;return Qt(e,n,"","",function(o){return r.call(t,o,i++)}),n}function Uv(e){if(e._status===-1){var r=e._result;r=r(),r.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var ge={current:null},Zt={transition:null},Yv={ReactCurrentDispatcher:ge,ReactCurrentBatchConfig:Zt,ReactCurrentOwner:Pi};A.Children={map:Kt,forEach:function(e,r,t){Kt(e,function(){r.apply(this,arguments)},t)},count:function(e){var r=0;return Kt(e,function(){r++}),r},toArray:function(e){return Kt(e,function(r){return r})||[]},only:function(e){if(!Ai(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};A.Component=Sr;A.Fragment=Pv;A.Profiler=kv;A.PureComponent=xi;A.StrictMode=Av;A.Suspense=Mv;A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yv;A.cloneElement=function(e,r,t){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=pl({},e.props),i=e.key,o=e.ref,a=e._owner;if(r!=null){if(r.ref!==void 0&&(o=r.ref,a=Pi.current),r.key!==void 0&&(i=""+r.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in r)yl.call(r,c)&&!vl.hasOwnProperty(c)&&(n[c]=r[c]===void 0&&u!==void 0?u[c]:r[c])}var c=arguments.length-2;if(c===1)n.children=t;else if(1<c){u=Array(c);for(var h=0;h<c;h++)u[h]=arguments[h+2];n.children=u}return{$$typeof:Hr,type:e.type,key:i,ref:o,props:n,_owner:a}};A.createContext=function(e){return e={$$typeof:Lv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Fv,_context:e},e.Consumer=e};A.createElement=gl;A.createFactory=function(e){var r=gl.bind(null,e);return r.type=e,r};A.createRef=function(){return{current:null}};A.forwardRef=function(e){return{$$typeof:Nv,render:e}};A.isValidElement=Ai;A.lazy=function(e){return{$$typeof:jv,_payload:{_status:-1,_result:e},_init:Uv}};A.memo=function(e,r){return{$$typeof:qv,type:e,compare:r===void 0?null:r}};A.startTransition=function(e){var r=Zt.transition;Zt.transition={};try{e()}finally{Zt.transition=r}};A.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};A.useCallback=function(e,r){return ge.current.useCallback(e,r)};A.useContext=function(e){return ge.current.useContext(e)};A.useDebugValue=function(){};A.useDeferredValue=function(e){return ge.current.useDeferredValue(e)};A.useEffect=function(e,r){return ge.current.useEffect(e,r)};A.useId=function(){return ge.current.useId()};A.useImperativeHandle=function(e,r,t){return ge.current.useImperativeHandle(e,r,t)};A.useInsertionEffect=function(e,r){return ge.current.useInsertionEffect(e,r)};A.useLayoutEffect=function(e,r){return ge.current.useLayoutEffect(e,r)};A.useMemo=function(e,r){return ge.current.useMemo(e,r)};A.useReducer=function(e,r,t){return ge.current.useReducer(e,r,t)};A.useRef=function(e){return ge.current.useRef(e)};A.useState=function(e){return ge.current.useState(e)};A.useSyncExternalStore=function(e,r,t){return ge.current.useSyncExternalStore(e,r,t)};A.useTransition=function(){return ge.current.useTransition()};A.version="18.2.0"});var _l=g((k,en)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e="18.2.0",r=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),S=Symbol.iterator,R="@@iterator";function C(s){if(s===null||typeof s!="object")return null;var l=S&&s[S]||s[R];return typeof l=="function"?l:null}var P={current:null},U={transition:null},F={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},j={current:null},te={},Ee=null;function Le(s){Ee=s}te.setExtraStackFrame=function(s){Ee=s},te.getCurrentStack=null,te.getStackAddendum=function(){var s="";Ee&&(s+=Ee);var l=te.getCurrentStack;return l&&(s+=l()||""),s};var _e=!1,O=!1,M=!1,L=!1,Z=!1,$={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:U,ReactCurrentOwner:j};$.ReactDebugCurrentFrame=te,$.ReactCurrentActQueue=F;function Y(s){{for(var l=arguments.length,d=new Array(l>1?l-1:0),m=1;m<l;m++)d[m-1]=arguments[m];B("warn",s,d)}}function _(s){{for(var l=arguments.length,d=new Array(l>1?l-1:0),m=1;m<l;m++)d[m-1]=arguments[m];B("error",s,d)}}function B(s,l,d){{var m=$.ReactDebugCurrentFrame,E=m.getStackAddendum();E!==""&&(l+="%s",d=d.concat([E]));var D=d.map(function(b){return String(b)});D.unshift("Warning: "+l),Function.prototype.apply.call(console[s],console,D)}}var I={};function T(s,l){{var d=s.constructor,m=d&&(d.displayName||d.name)||"ReactClass",E=m+"."+l;if(I[E])return;_("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",l,m),I[E]=!0}}var N={isMounted:function(s){return!1},enqueueForceUpdate:function(s,l,d){T(s,"forceUpdate")},enqueueReplaceState:function(s,l,d,m){T(s,"replaceState")},enqueueSetState:function(s,l,d,m){T(s,"setState")}},de=Object.assign,Me={};Object.freeze(Me);function Ae(s,l,d){this.props=s,this.context=l,this.refs=Me,this.updater=d||N}Ae.prototype.isReactComponent={},Ae.prototype.setState=function(s,l){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,l,"setState")},Ae.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var rr={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Wr=function(s,l){Object.defineProperty(Ae.prototype,s,{get:function(){Y("%s(...) is deprecated in plain JavaScript React classes. %s",l[0],l[1])}})};for(var Se in rr)rr.hasOwnProperty(Se)&&Wr(Se,rr[Se])}function Gi(){}Gi.prototype=Ae.prototype;function an(s,l,d){this.props=s,this.context=l,this.refs=Me,this.updater=d||N}var un=an.prototype=new Gi;un.constructor=an,de(un,Ae.prototype),un.isPureReactComponent=!0;function jf(){var s={current:null};return Object.seal(s),s}var $f=Array.isArray;function Vr(s){return $f(s)}function Bf(s){{var l=typeof Symbol=="function"&&Symbol.toStringTag,d=l&&s[Symbol.toStringTag]||s.constructor.name||"Object";return d}}function Gf(s){try{return Ui(s),!1}catch{return!0}}function Ui(s){return""+s}function zr(s){if(Gf(s))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Bf(s)),Ui(s)}function Uf(s,l,d){var m=s.displayName;if(m)return m;var E=l.displayName||l.name||"";return E!==""?d+"("+E+")":d}function Yi(s){return s.displayName||"Context"}function qe(s){if(s==null)return null;if(typeof s.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case n:return"Fragment";case t:return"Portal";case o:return"Profiler";case i:return"StrictMode";case h:return"Suspense";case f:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case u:var l=s;return Yi(l)+".Consumer";case a:var d=s;return Yi(d._context)+".Provider";case c:return Uf(s,s.render,"ForwardRef");case p:var m=s.displayName||null;return m!==null?m:qe(s.type)||"Memo";case v:{var E=s,D=E._payload,b=E._init;try{return qe(b(D))}catch{return null}}}return null}var Cr=Object.prototype.hasOwnProperty,Hi={key:!0,ref:!0,__self:!0,__source:!0},Wi,Vi,cn;cn={};function zi(s){if(Cr.call(s,"ref")){var l=Object.getOwnPropertyDescriptor(s,"ref").get;if(l&&l.isReactWarning)return!1}return s.ref!==void 0}function Xi(s){if(Cr.call(s,"key")){var l=Object.getOwnPropertyDescriptor(s,"key").get;if(l&&l.isReactWarning)return!1}return s.key!==void 0}function Yf(s,l){var d=function(){Wi||(Wi=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};d.isReactWarning=!0,Object.defineProperty(s,"key",{get:d,configurable:!0})}function Hf(s,l){var d=function(){Vi||(Vi=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};d.isReactWarning=!0,Object.defineProperty(s,"ref",{get:d,configurable:!0})}function Wf(s){if(typeof s.ref=="string"&&j.current&&s.__self&&j.current.stateNode!==s.__self){var l=qe(j.current.type);cn[l]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',l,s.ref),cn[l]=!0)}}var ln=function(s,l,d,m,E,D,b){var x={$$typeof:r,type:s,key:l,ref:d,props:b,_owner:D};return x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(x,"_self",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.defineProperty(x,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x};function Vf(s,l,d){var m,E={},D=null,b=null,x=null,q=null;if(l!=null){zi(l)&&(b=l.ref,Wf(l)),Xi(l)&&(zr(l.key),D=""+l.key),x=l.__self===void 0?null:l.__self,q=l.__source===void 0?null:l.__source;for(m in l)Cr.call(l,m)&&!Hi.hasOwnProperty(m)&&(E[m]=l[m])}var H=arguments.length-2;if(H===1)E.children=d;else if(H>1){for(var z=Array(H),X=0;X<H;X++)z[X]=arguments[X+2];Object.freeze&&Object.freeze(z),E.children=z}if(s&&s.defaultProps){var J=s.defaultProps;for(m in J)E[m]===void 0&&(E[m]=J[m])}if(D||b){var ee=typeof s=="function"?s.displayName||s.name||"Unknown":s;D&&Yf(E,ee),b&&Hf(E,ee)}return ln(s,D,b,x,q,j.current,E)}function zf(s,l){var d=ln(s.type,l,s.ref,s._self,s._source,s._owner,s.props);return d}function Xf(s,l,d){if(s==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var m,E=de({},s.props),D=s.key,b=s.ref,x=s._self,q=s._source,H=s._owner;if(l!=null){zi(l)&&(b=l.ref,H=j.current),Xi(l)&&(zr(l.key),D=""+l.key);var z;s.type&&s.type.defaultProps&&(z=s.type.defaultProps);for(m in l)Cr.call(l,m)&&!Hi.hasOwnProperty(m)&&(l[m]===void 0&&z!==void 0?E[m]=z[m]:E[m]=l[m])}var X=arguments.length-2;if(X===1)E.children=d;else if(X>1){for(var J=Array(X),ee=0;ee<X;ee++)J[ee]=arguments[ee+2];E.children=J}return ln(s.type,D,b,x,q,H,E)}function tr(s){return typeof s=="object"&&s!==null&&s.$$typeof===r}var Ji=".",Jf=":";function Kf(s){var l=/[=:]/g,d={"=":"=0",":":"=2"},m=s.replace(l,function(E){return d[E]});return"$"+m}var Ki=!1,Qf=/\/+/g;function Qi(s){return s.replace(Qf,"$&/")}function fn(s,l){return typeof s=="object"&&s!==null&&s.key!=null?(zr(s.key),Kf(""+s.key)):l.toString(36)}function Xr(s,l,d,m,E){var D=typeof s;(D==="undefined"||D==="boolean")&&(s=null);var b=!1;if(s===null)b=!0;else switch(D){case"string":case"number":b=!0;break;case"object":switch(s.$$typeof){case r:case t:b=!0}}if(b){var x=s,q=E(x),H=m===""?Ji+fn(x,0):m;if(Vr(q)){var z="";H!=null&&(z=Qi(H)+"/"),Xr(q,l,z,"",function(Hd){return Hd})}else q!=null&&(tr(q)&&(q.key&&(!x||x.key!==q.key)&&zr(q.key),q=zf(q,d+(q.key&&(!x||x.key!==q.key)?Qi(""+q.key)+"/":"")+H)),l.push(q));return 1}var X,J,ee=0,ie=m===""?Ji:m+Jf;if(Vr(s))for(var nt=0;nt<s.length;nt++)X=s[nt],J=ie+fn(X,nt),ee+=Xr(X,l,d,J,E);else{var _n=C(s);if(typeof _n=="function"){var wo=s;_n===wo.entries&&(Ki||Y("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ki=!0);for(var Ud=_n.call(wo),Co,Yd=0;!(Co=Ud.next()).done;)X=Co.value,J=ie+fn(X,Yd++),ee+=Xr(X,l,d,J,E)}else if(D==="object"){var Ro=String(s);throw new Error("Objects are not valid as a React child (found: "+(Ro==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":Ro)+"). If you meant to render a collection of children, use an array instead.")}}return ee}function Jr(s,l,d){if(s==null)return s;var m=[],E=0;return Xr(s,m,"","",function(D){return l.call(d,D,E++)}),m}function Zf(s){var l=0;return Jr(s,function(){l++}),l}function ed(s,l,d){Jr(s,function(){l.apply(this,arguments)},d)}function rd(s){return Jr(s,function(l){return l})||[]}function td(s){if(!tr(s))throw new Error("React.Children.only expected to receive a single React element child.");return s}function nd(s){var l={$$typeof:u,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};l.Provider={$$typeof:a,_context:l};var d=!1,m=!1,E=!1;{var D={$$typeof:u,_context:l};Object.defineProperties(D,{Provider:{get:function(){return m||(m=!0,_("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),l.Provider},set:function(b){l.Provider=b}},_currentValue:{get:function(){return l._currentValue},set:function(b){l._currentValue=b}},_currentValue2:{get:function(){return l._currentValue2},set:function(b){l._currentValue2=b}},_threadCount:{get:function(){return l._threadCount},set:function(b){l._threadCount=b}},Consumer:{get:function(){return d||(d=!0,_("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),l.Consumer}},displayName:{get:function(){return l.displayName},set:function(b){E||(Y("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",b),E=!0)}}}),l.Consumer=D}return l._currentRenderer=null,l._currentRenderer2=null,l}var Rr=-1,dn=0,Zi=1,id=2;function od(s){if(s._status===Rr){var l=s._result,d=l();if(d.then(function(D){if(s._status===dn||s._status===Rr){var b=s;b._status=Zi,b._result=D}},function(D){if(s._status===dn||s._status===Rr){var b=s;b._status=id,b._result=D}}),s._status===Rr){var m=s;m._status=dn,m._result=d}}if(s._status===Zi){var E=s._result;return E===void 0&&_(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
15
|
+
|
|
16
|
+
Your code should look like:
|
|
17
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
18
|
+
|
|
19
|
+
Did you accidentally put curly braces around the import?`,E),"default"in E||_(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
20
|
+
|
|
21
|
+
Your code should look like:
|
|
22
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,E),E.default}else throw s._result}function sd(s){var l={_status:Rr,_result:s},d={$$typeof:v,_payload:l,_init:od};{var m,E;Object.defineProperties(d,{defaultProps:{configurable:!0,get:function(){return m},set:function(D){_("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),m=D,Object.defineProperty(d,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return E},set:function(D){_("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),E=D,Object.defineProperty(d,"propTypes",{enumerable:!0})}}})}return d}function ad(s){s!=null&&s.$$typeof===p?_("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof s!="function"?_("forwardRef requires a render function but was given %s.",s===null?"null":typeof s):s.length!==0&&s.length!==2&&_("forwardRef render functions accept exactly two parameters: props and ref. %s",s.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),s!=null&&(s.defaultProps!=null||s.propTypes!=null)&&_("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var l={$$typeof:c,render:s};{var d;Object.defineProperty(l,"displayName",{enumerable:!1,configurable:!0,get:function(){return d},set:function(m){d=m,!s.name&&!s.displayName&&(s.displayName=m)}})}return l}var eo;eo=Symbol.for("react.module.reference");function ro(s){return!!(typeof s=="string"||typeof s=="function"||s===n||s===o||Z||s===i||s===h||s===f||L||s===y||_e||O||M||typeof s=="object"&&s!==null&&(s.$$typeof===v||s.$$typeof===p||s.$$typeof===a||s.$$typeof===u||s.$$typeof===c||s.$$typeof===eo||s.getModuleId!==void 0))}function ud(s,l){ro(s)||_("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var d={$$typeof:p,type:s,compare:l===void 0?null:l};{var m;Object.defineProperty(d,"displayName",{enumerable:!1,configurable:!0,get:function(){return m},set:function(E){m=E,!s.name&&!s.displayName&&(s.displayName=E)}})}return d}function pe(){var s=P.current;return s===null&&_(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
23
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
24
|
+
2. You might be breaking the Rules of Hooks
|
|
25
|
+
3. You might have more than one copy of React in the same app
|
|
26
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),s}function cd(s){var l=pe();if(s._context!==void 0){var d=s._context;d.Consumer===s?_("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):d.Provider===s&&_("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return l.useContext(s)}function ld(s){var l=pe();return l.useState(s)}function fd(s,l,d){var m=pe();return m.useReducer(s,l,d)}function dd(s){var l=pe();return l.useRef(s)}function pd(s,l){var d=pe();return d.useEffect(s,l)}function hd(s,l){var d=pe();return d.useInsertionEffect(s,l)}function md(s,l){var d=pe();return d.useLayoutEffect(s,l)}function yd(s,l){var d=pe();return d.useCallback(s,l)}function vd(s,l){var d=pe();return d.useMemo(s,l)}function gd(s,l,d){var m=pe();return m.useImperativeHandle(s,l,d)}function Ed(s,l){{var d=pe();return d.useDebugValue(s,l)}}function _d(){var s=pe();return s.useTransition()}function Sd(s){var l=pe();return l.useDeferredValue(s)}function bd(){var s=pe();return s.useId()}function wd(s,l,d){var m=pe();return m.useSyncExternalStore(s,l,d)}var Or=0,to,no,io,oo,so,ao,uo;function co(){}co.__reactDisabledLog=!0;function Cd(){{if(Or===0){to=console.log,no=console.info,io=console.warn,oo=console.error,so=console.group,ao=console.groupCollapsed,uo=console.groupEnd;var s={configurable:!0,enumerable:!0,value:co,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Or++}}function Rd(){{if(Or--,Or===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:de({},s,{value:to}),info:de({},s,{value:no}),warn:de({},s,{value:io}),error:de({},s,{value:oo}),group:de({},s,{value:so}),groupCollapsed:de({},s,{value:ao}),groupEnd:de({},s,{value:uo})})}Or<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pn=$.ReactCurrentDispatcher,hn;function Kr(s,l,d){{if(hn===void 0)try{throw Error()}catch(E){var m=E.stack.trim().match(/\n( *(at )?)/);hn=m&&m[1]||""}return`
|
|
27
|
+
`+hn+s}}var mn=!1,Qr;{var Od=typeof WeakMap=="function"?WeakMap:Map;Qr=new Od}function lo(s,l){if(!s||mn)return"";{var d=Qr.get(s);if(d!==void 0)return d}var m;mn=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var D;D=pn.current,pn.current=null,Cd();try{if(l){var b=function(){throw Error()};if(Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(ie){m=ie}Reflect.construct(s,[],b)}else{try{b.call()}catch(ie){m=ie}s.call(b.prototype)}}else{try{throw Error()}catch(ie){m=ie}s()}}catch(ie){if(ie&&m&&typeof ie.stack=="string"){for(var x=ie.stack.split(`
|
|
28
|
+
`),q=m.stack.split(`
|
|
29
|
+
`),H=x.length-1,z=q.length-1;H>=1&&z>=0&&x[H]!==q[z];)z--;for(;H>=1&&z>=0;H--,z--)if(x[H]!==q[z]){if(H!==1||z!==1)do if(H--,z--,z<0||x[H]!==q[z]){var X=`
|
|
30
|
+
`+x[H].replace(" at new "," at ");return s.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",s.displayName)),typeof s=="function"&&Qr.set(s,X),X}while(H>=1&&z>=0);break}}}finally{mn=!1,pn.current=D,Rd(),Error.prepareStackTrace=E}var J=s?s.displayName||s.name:"",ee=J?Kr(J):"";return typeof s=="function"&&Qr.set(s,ee),ee}function Td(s,l,d){return lo(s,!1)}function Dd(s){var l=s.prototype;return!!(l&&l.isReactComponent)}function Zr(s,l,d){if(s==null)return"";if(typeof s=="function")return lo(s,Dd(s));if(typeof s=="string")return Kr(s);switch(s){case h:return Kr("Suspense");case f:return Kr("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case c:return Td(s.render);case p:return Zr(s.type,l,d);case v:{var m=s,E=m._payload,D=m._init;try{return Zr(D(E),l,d)}catch{}}}return""}var fo={},po=$.ReactDebugCurrentFrame;function et(s){if(s){var l=s._owner,d=Zr(s.type,s._source,l?l.type:null);po.setExtraStackFrame(d)}else po.setExtraStackFrame(null)}function xd(s,l,d,m,E){{var D=Function.call.bind(Cr);for(var b in s)if(D(s,b)){var x=void 0;try{if(typeof s[b]!="function"){var q=Error((m||"React class")+": "+d+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw q.name="Invariant Violation",q}x=s[b](l,b,m,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(H){x=H}x&&!(x instanceof Error)&&(et(E),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",m||"React class",d,b,typeof x),et(null)),x instanceof Error&&!(x.message in fo)&&(fo[x.message]=!0,et(E),_("Failed %s type: %s",d,x.message),et(null))}}}function nr(s){if(s){var l=s._owner,d=Zr(s.type,s._source,l?l.type:null);Le(d)}else Le(null)}var yn;yn=!1;function ho(){if(j.current){var s=qe(j.current.type);if(s)return`
|
|
31
|
+
|
|
32
|
+
Check the render method of \``+s+"`."}return""}function Id(s){if(s!==void 0){var l=s.fileName.replace(/^.*[\\\/]/,""),d=s.lineNumber;return`
|
|
33
|
+
|
|
34
|
+
Check your code at `+l+":"+d+"."}return""}function Pd(s){return s!=null?Id(s.__source):""}var mo={};function Ad(s){var l=ho();if(!l){var d=typeof s=="string"?s:s.displayName||s.name;d&&(l=`
|
|
35
|
+
|
|
36
|
+
Check the top-level render call using <`+d+">.")}return l}function yo(s,l){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var d=Ad(l);if(!mo[d]){mo[d]=!0;var m="";s&&s._owner&&s._owner!==j.current&&(m=" It was passed a child from "+qe(s._owner.type)+"."),nr(s),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',d,m),nr(null)}}}function vo(s,l){if(typeof s=="object"){if(Vr(s))for(var d=0;d<s.length;d++){var m=s[d];tr(m)&&yo(m,l)}else if(tr(s))s._store&&(s._store.validated=!0);else if(s){var E=C(s);if(typeof E=="function"&&E!==s.entries)for(var D=E.call(s),b;!(b=D.next()).done;)tr(b.value)&&yo(b.value,l)}}}function go(s){{var l=s.type;if(l==null||typeof l=="string")return;var d;if(typeof l=="function")d=l.propTypes;else if(typeof l=="object"&&(l.$$typeof===c||l.$$typeof===p))d=l.propTypes;else return;if(d){var m=qe(l);xd(d,s.props,"prop",m,s)}else if(l.PropTypes!==void 0&&!yn){yn=!0;var E=qe(l);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"Unknown")}typeof l.getDefaultProps=="function"&&!l.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function kd(s){{for(var l=Object.keys(s.props),d=0;d<l.length;d++){var m=l[d];if(m!=="children"&&m!=="key"){nr(s),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",m),nr(null);break}}s.ref!==null&&(nr(s),_("Invalid attribute `ref` supplied to `React.Fragment`."),nr(null))}}function Eo(s,l,d){var m=ro(s);if(!m){var E="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(E+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var D=Pd(l);D?E+=D:E+=ho();var b;s===null?b="null":Vr(s)?b="array":s!==void 0&&s.$$typeof===r?(b="<"+(qe(s.type)||"Unknown")+" />",E=" Did you accidentally export a JSX literal instead of a component?"):b=typeof s,_("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,E)}var x=Vf.apply(this,arguments);if(x==null)return x;if(m)for(var q=2;q<arguments.length;q++)vo(arguments[q],s);return s===n?kd(x):go(x),x}var _o=!1;function Fd(s){var l=Eo.bind(null,s);return l.type=s,_o||(_o=!0,Y("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(l,"type",{enumerable:!1,get:function(){return Y("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:s}),s}}),l}function Ld(s,l,d){for(var m=Xf.apply(this,arguments),E=2;E<arguments.length;E++)vo(arguments[E],m.type);return go(m),m}function Nd(s,l){var d=U.transition;U.transition={};var m=U.transition;U.transition._updatedFibers=new Set;try{s()}finally{if(U.transition=d,d===null&&m._updatedFibers){var E=m._updatedFibers.size;E>10&&Y("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),m._updatedFibers.clear()}}}var So=!1,rt=null;function Md(s){if(rt===null)try{var l=("require"+Math.random()).slice(0,7),d=en&&en[l];rt=d.call(en,"timers").setImmediate}catch{rt=function(E){So===!1&&(So=!0,typeof MessageChannel>"u"&&_("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var D=new MessageChannel;D.port1.onmessage=E,D.port2.postMessage(void 0)}}return rt(s)}var ir=0,bo=!1;function qd(s){{var l=ir;ir++,F.current===null&&(F.current=[]);var d=F.isBatchingLegacy,m;try{if(F.isBatchingLegacy=!0,m=s(),!d&&F.didScheduleLegacyUpdate){var E=F.current;E!==null&&(F.didScheduleLegacyUpdate=!1,En(E))}}catch(J){throw tt(l),J}finally{F.isBatchingLegacy=d}if(m!==null&&typeof m=="object"&&typeof m.then=="function"){var D=m,b=!1,x={then:function(J,ee){b=!0,D.then(function(ie){tt(l),ir===0?vn(ie,J,ee):J(ie)},function(ie){tt(l),ee(ie)})}};return!bo&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){b||(bo=!0,_("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),x}else{var q=m;if(tt(l),ir===0){var H=F.current;H!==null&&(En(H),F.current=null);var z={then:function(J,ee){F.current===null?(F.current=[],vn(q,J,ee)):J(q)}};return z}else{var X={then:function(J,ee){J(q)}};return X}}}}function tt(s){s!==ir-1&&_("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ir=s}function vn(s,l,d){{var m=F.current;if(m!==null)try{En(m),Md(function(){m.length===0?(F.current=null,l(s)):vn(s,l,d)})}catch(E){d(E)}else l(s)}}var gn=!1;function En(s){if(!gn){gn=!0;var l=0;try{for(;l<s.length;l++){var d=s[l];do d=d(!0);while(d!==null)}s.length=0}catch(m){throw s=s.slice(l+1),m}finally{gn=!1}}}var jd=Eo,$d=Ld,Bd=Fd,Gd={map:Jr,forEach:ed,count:Zf,toArray:rd,only:td};k.Children=Gd,k.Component=Ae,k.Fragment=n,k.Profiler=o,k.PureComponent=an,k.StrictMode=i,k.Suspense=h,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$,k.cloneElement=$d,k.createContext=nd,k.createElement=jd,k.createFactory=Bd,k.createRef=jf,k.forwardRef=ad,k.isValidElement=tr,k.lazy=sd,k.memo=ud,k.startTransition=Nd,k.unstable_act=qd,k.useCallback=yd,k.useContext=cd,k.useDebugValue=Ed,k.useDeferredValue=Sd,k.useEffect=pd,k.useId=bd,k.useImperativeHandle=gd,k.useInsertionEffect=hd,k.useLayoutEffect=md,k.useMemo=vd,k.useReducer=fd,k.useRef=dd,k.useState=ld,k.useSyncExternalStore=wd,k.useTransition=_d,k.version=e,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()});var Sl=g((sE,ki)=>{"use strict";process.env.NODE_ENV==="production"?ki.exports=El():ki.exports=_l()});function wr(e=""){return Wv?Li.default.resolve(Mi.default.sync(__dirname),"../../../",e):Li.default.resolve(Mi.default.sync(__dirname),"../griddo-components",e)}function Vv(){let e=Ni.default.sync("jsconfig.json",{cwd:wr()});return Ni.default.sync("tsconfig.json",{cwd:wr()})||e}function zv(){let e=require(Vv());return Object.keys(e?.compilerOptions?.paths).reduce((r,t)=>{let[n]=t.split("/"),[i]=e&&e.compilerOptions&&e.compilerOptions.paths&&e.compilerOptions.paths[t],[o]=i.split("/*"),a=wr(o);return{...r,[n]:a}},{"@griddo-instance":`${wr()}/src/index.js`})}var Li,Ni,Mi,Wv,lE,wl=Oo(()=>{"use strict";Li=K(require("node:path")),Ni=K(Oi()),Mi=K(Jt()),Wv=__dirname.includes("node_modules"),lE=zv()});var Tl={};Kd(Tl,{CXDir:()=>e0,default:()=>Zv});var ke,tn,Rl,rn,Xv,Jv,Kv,Cl,Qv,Ol,Zv,e0,Dl=Oo(()=>{"use strict";ke=K(require("node:path")),tn=K(Jt());wl();Rl=tn.default.sync(ke.default.resolve(__dirname,"../..")),rn=tn.default.sync(__dirname),Xv=ke.default.resolve(tn.default.sync(__dirname)),Jv=ke.default.resolve(rn,"caches"),Kv=wr(),Cl=ke.default.join(Rl,"exports/sites"),{version:Qv}=require(ke.default.join(rn,"package.json")),Ol={proDomain:"pro-",griddoVersion:Qv,CXDir:{EXPORTS:"__exports",CACHE:"__caches",CX:"__cx",SSG:"__ssg",COMPONENTS:"__components",ROOT:"__root",EXPORTS_DIST:"__exports_dist",CX_DIST:"__cx_dist"},paths:e=>({__caches:ke.default.join(Jv,e||""),__components:Kv,__cx:rn,__exports:ke.default.join(Cl,e||""),__root:Rl,__ssg:Xv,__exports_dist:e?ke.default.join(Cl,e,"dist"):"",__cx_dist:ke.default.join(rn,"dist")})},Zv=Ol,e0=Ol.CXDir});var Rf=K(Jn()),Of=K(Dt());var Al=K(xt());var r0=K(Dt()),xl=K(xt()),t0=K(Yr()),Il=K(Jt());var Rv=K(Yr());var Cv=K(Yr());var Vg=We();var tE=We();var bl=K(ul()),Hv=K(Sl());function Fi(e){console.info(`${bl.default.blue("info")} ${e}`)}xl.default.config();var _E=We(),SE=Il.default.sync();function We(){try{return(Dl(),Qd(Tl)).default}catch{console.log("Error while reading configuration file"),process.exit(1)}}function Fe(e){if(typeof e=="boolean")return e;if(e==null)return!1;if(e.toLowerCase()==="true")return!0;if(e.toLowerCase()==="false")return!1;if(e.toLowerCase()==="on")return!0;if(e.toLowerCase()==="off")return!1;let r=parseInt(e,10);return isNaN(r)?!1:r>0}function Pl(e){return new Promise(r=>setTimeout(r,e))}function qi(e,r=3){return(e/1e3).toFixed(r)}function ji(e){if(typeof e!="string")return"site"in e&&e.site?e?.site:void 0}Al.default.config();var Te=process.env.GRIDDO_API_URL||process.env.API_URL,kl=process.env.GRIDDO_PUBLIC_API_URL||process.env.PUBLIC_API_URL,Fl=process.env.botEmail,Ll=process.env.botPassword,Nl=Number.parseInt(process.env.GRIDDO_API_CONCURRENCY_COUNT||"10"),Ml=Fe(process.env.GRIDDO_RENDER_ALL_SITES||process.env.updateAllSites),ql=Number.parseInt(process.env.GRIDDO_RENDER_SITE||""),jl=(process.env.GRIDDO_RENDER_PAGES||"").split(",").map(e=>Number.parseInt(e)).filter(Boolean),$l=Fe(process.env.GRIDDO_SKIP_BUILD_CHECKS),Bl=Fe(process.env.GRIDDO_DEBUG_LOGS),Gl=Fe(process.env.GRIDDO_BUILD_LOGS),Ul=Fe(process.env.GRIDDO_RENDER_BREAKPOINTS_FEATURE),Yl=Fe(process.env.GRIDDO_SSG_VERBOSE_LOGS),Hl=Fe(process.env.GRIDGRIDDO_SEARCH_FEATURE_FEATURE),Wl=process.env.GRIDDO_ASSET_PREFIX||process.env.ASSET_PREFIX,Vl=process.env.GRIDDO_REACT_APP_INSTANCE||process.env.REACT_APP_INSTANCE,zl=Fe(process.env.GRIDDO_AI_EMBEDDINGS),Xl=Fe(process.env.GRIDDO_VERBOSE_LOGS),Jl=Number.parseInt(process.env.GRIDDO_CLEAN_LIFECYCLE_MAX_ATTEMPTS||"1"),Kl=Number.parseInt(process.env.GRIDDO_CLOSE_LIFECYCLE_MAX_ATTEMPTS||"1"),Ql=Number.parseInt(process.env.GRIDDO_PREPARE_LIFECYCLE_MAX_ATTEMPTS||"1"),Zl=Number.parseInt(process.env.GRIDDO_RESTORE_LIFECYCLE_MAX_ATTEMPTS||"1"),ef=Number.parseInt(process.env.GRIDDO_DATA_LIFECYCLE_MAX_ATTEMPTS||"1"),rf=Number.parseInt(process.env.GRIDDO_SSG_LIFECYCLE_MAX_ATTEMPTS||"2"),tf=Number.parseInt(process.env.GRIDDO_RELOCATION_LIFECYCLE_MAX_ATTEMPTS||"1"),nf=Number.parseInt(process.env.GRIDDO_META_LIFECYCLE_MAX_ATTEMPTS||"4"),of=Number.parseInt(process.env.GRIDDO_ARCHIVE_LIFECYCLE_MAX_ATTEMPTS||"1"),sf=process.env.GRIDDO_CX_FIXTURES_DOMAIN_NAMES,af=process.env.GRIDDO_CX_FIXTURES_SITE_NAMES;var Ve=`${Te}/site/`,uf=`${Te}/sites/all`,cf=`${Te}/settings`,lf=`${Te}/debug/reset-render`,ff=`${Te}/page`,df=`${Te}/search`,pf=`${Te}/domains`,hf=`${Te}/domains/robots`,mf=`${Te}/login_check`,yf=`${Te}/ai/embeddings`,vf=[Ve,"/all"],gf=[Ve,"/languages"],Ef=[Ve,"/build/start"],_f=[Ve,"/build/end"],Sf=[Ve,"/distributor"],bf=[Ve,"/sitemap"],wf=[Ve,"/socials"],Cf=[Ve,"/pages?pagination=false"];var nn={AI_EMBEDDINGS:yf,BUILD_END:_f,BUILD_START:Ef,DOMAINS:pf,GET_ALL:uf,GET_PAGE:ff,GET_PAGES:Cf,GET_REFERENCE_FIELD_DATA:Sf,GET_SITEMAP:bf,INFO:vf,LANGUAGES:gf,LOGIN:mf,RESET_RENDER:lf,ROBOTS:hf,SEARCH:df,SETTINGS:cf,SOCIALS:wf},br={GRIDDO_AI_EMBEDDINGS:zl,GRIDDO_API_CONCURRENCY_COUNT:Nl,GRIDDO_API_URL:Te,GRIDDO_ARCHIVE_LIFECYCLE_MAX_ATTEMPTS:of,GRIDDO_ASSET_PREFIX:Wl,GRIDDO_BOT_PASSWORD:Ll,GRIDDO_BOT_USER:Fl,GRIDDO_BUILD_LOGS:Gl,GRIDDO_CLEAN_LIFECYCLE_MAX_ATTEMPTS:Jl,GRIDDO_CLOSE_LIFECYCLE_MAX_ATTEMPTS:Kl,GRIDDO_DATA_LIFECYCLE_MAX_ATTEMPTS:ef,GRIDDO_DEBUG_LOGS:Bl,GRIDDO_FIXTURES_DOMAIN_NAMES:sf,GRIDDO_FIXTURES_SITE_NAMES:af,GRIDDO_META_LIFECYCLE_MAX_ATTEMPTS:nf,GRIDDO_PREPARE_LIFECYCLE_MAX_ATTEMPTS:Ql,GRIDDO_PUBLIC_API_URL:kl,GRIDDO_REACT_APP_INSTANCE:Vl,GRIDDO_RELOCATION_LIFECYCLE_MAX_ATTEMPTS:tf,GRIDDO_RENDER_ALL_SITES:Ml,GRIDDO_RENDER_BREAKPOINTS_FEATURE:Ul,GRIDDO_RENDER_PAGES:jl,GRIDDO_RENDER_SITE:ql,GRIDDO_RESTORE_LIFECYCLE_MAX_ATTEMPTS:Zl,GRIDDO_SEARCH_FEATURE:Hl,GRIDDO_SKIP_BUILD_CHECKS:$l,GRIDDO_SSG_LIFECYCLE_MAX_ATTEMPTS:rf,GRIDDO_SSG_VERBOSE_LOGS:Yl,GRIDDO_VERBOSE_LOGS:Xl};var $i=class{user;password;baseUrl;headers;constructor(){this.user=br.GRIDDO_BOT_USER,this.password=br.GRIDDO_BOT_PASSWORD,this.baseUrl=br.GRIDDO_API_URL}async login(){try{let r=await(0,Rf.default)({url:nn.LOGIN,method:"POST",headers:{"Content-Type":"application/json"},data:{username:this.user,password:this.password}});if(r.status===200){let{data:{token:t}}=r;this.headers={Authorization:"bearer "+t,"Cache-Control":"no-store"}}return this.headers}catch{console.error(Of.default.red(`
|
|
22
37
|
\u256D\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256E
|
|
23
38
|
\u2502 Access credentials failure \u2502
|
|
24
39
|
\u2502 Check that the login details are correct in your .env file \u2502
|
|
25
40
|
\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F
|
|
26
|
-
`)),process.exit(1)}}},
|
|
27
|
-
Max attempts ${
|
|
41
|
+
`)),process.exit(1)}}},on=new $i;var kf=K(Jn()),Ff=K(Dt()),Lf=K(xt());var Tf=K(require("node:crypto")),sn=K(require("node:fs")),Bi=K(require("node:path")),Df=K(Yr());var n0=We();function xf(e){let{__cx:r}=n0.paths(),t=Bi.default.join(r,"apiCache"),n=Tf.default.createHash("sha256");return n.update(JSON.stringify(e)),`${t}/${n.digest("hex")}`}function If(e,r){let t=typeof r=="string"?r:JSON.stringify(r),n=xf(e),i=Bi.default.dirname(n);sn.default.existsSync(i)||sn.default.mkdirSync(i,{recursive:!0}),sn.default.writeFileSync(n,t,"utf8")}function Pf(e){try{let r=xf(e);return Df.default.readJSONSync(r,{encoding:"utf-8"})}catch{return null}}Lf.default.config();var{env:{RETRY_WAIT_SECONDS:i0="4",RETRY_ATTEMPTS:Af="4"}}=process;async function Nf(e,r,t=""){let{endpoint:n,body:i,cacheKey:o="",attempt:a=1,headers:u}=e,c={endpoint:n,body:i,headers:u,cacheKey:o};if(o){let h=new Date,f=Pf(c);if(f){let p=ji(f),v=p?`site: ${p}`:"",y=qi(new Date().getTime()-h.getTime());return Fi(`${r} (cache) ${v} ${n} - ${y}s ${t}`),f}}try{let h=new Date,{data:f}=await(0,kf.default)({url:n,method:r,headers:Object.assign({},u,on.headers),data:i}),p=ji(f),v=p?`site: ${p}`:"",y=qi(new Date().getTime()-h.getTime());return Fi(`${r} (fetch) ${v} ${n} - ${y}s ${t}`),If(c,f),f}catch(h){let f=h;return f.response?.status===404?null:(a>parseInt(Af)&&(console.log(`
|
|
42
|
+
Max attempts ${Af} reached
|
|
28
43
|
--------------------------------------
|
|
29
|
-
- ${
|
|
44
|
+
- ${r.toUpperCase()} ${n}
|
|
30
45
|
- BODY: ${JSON.stringify(i)}
|
|
31
|
-
- HEADERS: ${JSON.stringify(
|
|
46
|
+
- HEADERS: ${JSON.stringify(u)}
|
|
32
47
|
- RESPONSE: ${f.response?.status,JSON.stringify(f.response?.data)}
|
|
33
48
|
--------------------------------------
|
|
34
|
-
`),process.exit(1)),f.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(f,null,2)),process.exit(1)),
|
|
35
|
-
`),p=
|
|
36
|
-
Response: ${JSON.stringify(c)}`:"",
|
|
37
|
-
${i}`;console.warn(
|
|
49
|
+
`),process.exit(1)),f.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(f,null,2)),process.exit(1)),o0(f,{callInfo:{endpoint:n,body:i}}),console.warn(`Waiting for retry: ${r}`,n),await Pl(parseInt(i0)*1e3),Nf({endpoint:n,body:i,headers:u,cacheKey:o,attempt:a+1},r,t))}}async function Mf(e){let{endpoint:r,body:t,headers:n}=e,i=r.endsWith("/distributor")&&`# Distributor body: ${JSON.stringify(t)} lang: ${JSON.stringify(n?.lang)}`;return await Nf(e,"post",i||"")}function o0(e,r){let{response:t,message:n,stack:i}=e,{callInfo:o}=r,{status:a,statusText:u,data:c}=t||{},h=[];for(let y of Object.keys(o))h.push(`${y}: ${typeof o[y]=="object"?JSON.stringify(o[y]):o[y]}`);let f=h.join(`
|
|
50
|
+
`),p=t?`Code: ${a} - ${u}
|
|
51
|
+
Response: ${JSON.stringify(c)}`:"",v=`${n}
|
|
52
|
+
${i}`;console.warn(Ff.default.bold.red(`
|
|
38
53
|
=============
|
|
39
54
|
|
|
40
55
|
{ Call info }
|
|
@@ -44,7 +59,31 @@ ${f}
|
|
|
44
59
|
${p}
|
|
45
60
|
|
|
46
61
|
{ Error details }
|
|
47
|
-
${
|
|
62
|
+
${v}
|
|
48
63
|
|
|
49
64
|
=============
|
|
50
|
-
`))}
|
|
65
|
+
`))}async function qf(){await Mf({endpoint:nn.RESET_RENDER})}async function s0(){await on.login(),await qf()}s0().catch(e=>{console.error("Error",e?.stdout?.toString()||e),process.exit(1)});
|
|
66
|
+
/*! Bundled license information:
|
|
67
|
+
|
|
68
|
+
react/cjs/react.production.min.js:
|
|
69
|
+
(**
|
|
70
|
+
* @license React
|
|
71
|
+
* react.production.min.js
|
|
72
|
+
*
|
|
73
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the MIT license found in the
|
|
76
|
+
* LICENSE file in the root directory of this source tree.
|
|
77
|
+
*)
|
|
78
|
+
|
|
79
|
+
react/cjs/react.development.js:
|
|
80
|
+
(**
|
|
81
|
+
* @license React
|
|
82
|
+
* react.development.js
|
|
83
|
+
*
|
|
84
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the MIT license found in the
|
|
87
|
+
* LICENSE file in the root directory of this source tree.
|
|
88
|
+
*)
|
|
89
|
+
*/
|