@griddo/cx 10.4.18 → 10.4.20
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/build/adapters/gatsby/index.d.ts +2 -0
- package/build/adapters/gatsby/utils.d.ts +26 -0
- package/build/adapters/index.d.ts +3 -0
- package/build/browser/index.d.ts +5 -0
- package/build/build-complete.d.ts +18 -0
- package/build/build-complete.js +22 -22
- package/build/index.d.ts +29 -0
- package/build/index.js +35 -35
- package/build/move-assets.d.ts +1 -0
- package/build/react/index.d.ts +2 -0
- package/build/reset-render.d.ts +1 -0
- package/build/reset-render.js +22 -22
- package/build/run-start-render.d.ts +1 -0
- package/build/run-start-render.js +35 -35
- package/build/services/auth.d.ts +21 -0
- package/build/services/distributors.d.ts +45 -0
- package/build/services/domains.d.ts +8 -0
- package/build/services/navigation.d.ts +77 -0
- package/build/services/robots.d.ts +21 -0
- package/build/services/settings.d.ts +23 -0
- package/build/services/sites.d.ts +42 -0
- package/build/services/store.d.ts +6 -0
- package/build/start-render.d.ts +3 -0
- package/build/start-render.js +35 -35
- package/build/types/api.d.ts +130 -0
- package/build/types/global.d.ts +78 -0
- package/build/types/navigation.d.ts +28 -0
- package/build/types/pages.d.ts +128 -0
- package/build/types/sites.d.ts +43 -0
- package/build/types/templates.d.ts +8 -0
- package/build/upload-search-content.d.ts +1 -0
- package/build/upload-search-content.js +50 -0
- package/build/utils/api.d.ts +23 -0
- package/build/utils/cache.d.ts +35 -0
- package/build/utils/create-build-data.d.ts +8 -0
- package/build/utils/domains.d.ts +5 -0
- package/build/utils/folders.d.ts +48 -0
- package/build/utils/health-checks.d.ts +7 -0
- package/build/utils/instance.d.ts +21 -0
- package/build/utils/messages.d.ts +2 -0
- package/build/utils/pages.d.ts +34 -0
- package/build/utils/searches.d.ts +14 -0
- package/build/utils/shared.d.ts +110 -0
- package/build/utils/sites.d.ts +36 -0
- package/build/utils/store.d.ts +79 -0
- package/build/utils/temp-utils.d.ts +10 -0
- package/cx.config.js +1 -1
- package/exporter/adapters/gatsby/index.ts +11 -10
- package/exporter/index.ts +6 -4
- package/exporter/services/robots.ts +4 -3
- package/exporter/services/store.ts +13 -4
- package/exporter/types/global.ts +1 -1
- package/exporter/upload-search-content.ts +38 -0
- package/exporter/utils/api.ts +2 -2
- package/exporter/utils/cache.ts +25 -11
- package/exporter/utils/create-build-data.ts +3 -10
- package/exporter/utils/folders.ts +14 -15
- package/exporter/utils/searches.ts +26 -10
- package/exporter/utils/shared.ts +33 -7
- package/exporter/utils/sites.ts +10 -10
- package/exporter/utils/store.ts +77 -27
- package/exporter/utils/temp-utils.ts +12 -11
- package/gatsby-config.ts +1 -1
- package/gatsby-node.ts +9 -10
- package/package.json +20 -11
- package/src/components/Head.tsx +1 -1
- package/src/components/template.tsx +1 -1
- package/src/gatsby-node-utils.ts +1 -1
- package/src/types.ts +1 -1
- package/tsconfig.json +26 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";var wl=Object.create;var Dt=Object.defineProperty;var Sl=Object.getOwnPropertyDescriptor;var xl=Object.getOwnPropertyNames;var El=Object.getPrototypeOf,_l=Object.prototype.hasOwnProperty;var Si=(e,t)=>()=>(e&&(t=e(e=0)),t);var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Cl=(e,t)=>{for(var r in t)Dt(e,r,{get:t[r],enumerable:!0})},xi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xl(t))!_l.call(e,i)&&i!==r&&Dt(e,i,{get:()=>t[i],enumerable:!(n=Sl(t,i))||n.enumerable});return e};var D=(e,t,r)=>(r=e!=null?wl(El(e)):{},xi(t||!e||!e.__esModule?Dt(r,"default",{value:e,enumerable:!0}):r,e)),kl=e=>xi(Dt({},"__esModule",{value:!0}),e);var _i=v((rm,Ei)=>{var Lr=class{constructor(t){this.value=t,this.next=void 0}},$r=class{constructor(){this.clear()}enqueue(t){let r=new Lr(t);this._head?(this._tail.next=r,this._tail=r):(this._head=r,this._tail=r),this._size++}dequeue(){let t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};Ei.exports=$r});var ki=v((nm,Ci)=>{"use strict";var Ol=_i(),Rl=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new Ol,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},i=async(a,c,...d)=>{r++;let f=(async()=>a(...d))();c(f);try{await f}catch{}n()},o=(a,c,...d)=>{t.enqueue(i.bind(null,a,c,...d)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},s=(a,...c)=>new Promise(d=>{o(a,d,...c)});return Object.defineProperties(s,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),s};Ci.exports=Rl});var Pi=v((im,Ri)=>{"use strict";var Oi=ki(),jt=class extends Error{constructor(t){super(),this.value=t}},Pl=async(e,t)=>t(await e),Al=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new jt(t[0]);return!1},ql=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Oi(r.concurrency),i=[...e].map(s=>[s,n(Pl,s,t)]),o=Oi(r.preserveOrder?1:1/0);try{await Promise.all(i.map(s=>o(Al,s)))}catch(s){if(s instanceof jt)return s.value;throw s}};Ri.exports=ql});var Ii=v((om,Ur)=>{"use strict";var Ai=require("path"),Nt=require("fs"),{promisify:qi}=require("util"),Ml=Pi(),Fl=qi(Nt.stat),Tl=qi(Nt.lstat),Mi={directory:"isDirectory",file:"isFile"};function Fi({type:e}){if(!(e in Mi))throw new Error(`Invalid type specified: ${e}`)}var Ti=(e,t)=>e===void 0||t[Mi[e]]();Ur.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},Fi(t);let r=t.allowSymlinks?Fl:Tl;return Ml(e,async n=>{try{let i=await r(Ai.resolve(t.cwd,n));return Ti(t.type,i)}catch{return!1}},t)};Ur.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},Fi(t);let r=t.allowSymlinks?Nt.statSync:Nt.lstatSync;for(let n of e)try{let i=r(Ai.resolve(t.cwd,n));if(Ti(t.type,i))return n}catch{}}});var ji=v((sm,Hr)=>{"use strict";var Di=require("fs"),{promisify:Il}=require("util"),Dl=Il(Di.access);Hr.exports=async e=>{try{return await Dl(e),!0}catch{return!1}};Hr.exports.sync=e=>{try{return Di.accessSync(e),!0}catch{return!1}}});var zr=v((am,He)=>{"use strict";var Oe=require("path"),Bt=Ii(),Ni=ji(),Gr=Symbol("findUp.stop");He.exports=async(e,t={})=>{let r=Oe.resolve(t.cwd||""),{root:n}=Oe.parse(r),i=[].concat(e),o=async s=>{if(typeof e!="function")return Bt(i,s);let a=await e(s.cwd);return typeof a=="string"?Bt([a],s):a};for(;;){let s=await o({...t,cwd:r});if(s===Gr)return;if(s)return Oe.resolve(r,s);if(r===n)return;r=Oe.dirname(r)}};He.exports.sync=(e,t={})=>{let r=Oe.resolve(t.cwd||""),{root:n}=Oe.parse(r),i=[].concat(e),o=s=>{if(typeof e!="function")return Bt.sync(i,s);let a=e(s.cwd);return typeof a=="string"?Bt.sync([a],s):a};for(;;){let s=o({...t,cwd:r});if(s===Gr)return;if(s)return Oe.resolve(r,s);if(r===n)return;r=Oe.dirname(r)}};He.exports.exists=Ni;He.exports.sync.exists=Ni.sync;He.exports.stop=Gr});var dt=v((cm,Jr)=>{"use strict";var Bi=require("path"),Li=zr(),jl=async e=>{let t=await Li("package.json",{cwd:e});return t&&Bi.dirname(t)};Jr.exports=jl;Jr.exports.sync=e=>{let t=Li.sync("package.json",{cwd:e});return t&&Bi.dirname(t)}});var Wr=v((um,$i)=>{"use strict";$i.exports=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];return t.apply(r,i)}}});var ne=v((lm,Gi)=>{"use strict";var Nl=Wr(),Ie=Object.prototype.toString;function Xr(e){return Ie.call(e)==="[object Array]"}function Vr(e){return typeof e>"u"}function Bl(e){return e!==null&&!Vr(e)&&e.constructor!==null&&!Vr(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Ll(e){return Ie.call(e)==="[object ArrayBuffer]"}function $l(e){return typeof FormData<"u"&&e instanceof FormData}function Ul(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Hl(e){return typeof e=="string"}function Gl(e){return typeof e=="number"}function Ui(e){return e!==null&&typeof e=="object"}function Lt(e){if(Ie.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function zl(e){return Ie.call(e)==="[object Date]"}function Jl(e){return Ie.call(e)==="[object File]"}function Wl(e){return Ie.call(e)==="[object Blob]"}function Hi(e){return Ie.call(e)==="[object Function]"}function Vl(e){return Ui(e)&&Hi(e.pipe)}function Yl(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function Xl(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Kl(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Kr(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Xr(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function Yr(){var e={};function t(i,o){Lt(e[o])&&Lt(i)?e[o]=Yr(e[o],i):Lt(i)?e[o]=Yr({},i):Xr(i)?e[o]=i.slice():e[o]=i}for(var r=0,n=arguments.length;r<n;r++)Kr(arguments[r],t);return e}function Ql(e,t,r){return Kr(t,function(i,o){r&&typeof i=="function"?e[o]=Nl(i,r):e[o]=i}),e}function Zl(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}Gi.exports={isArray:Xr,isArrayBuffer:Ll,isBuffer:Bl,isFormData:$l,isArrayBufferView:Ul,isString:Hl,isNumber:Gl,isObject:Ui,isPlainObject:Lt,isUndefined:Vr,isDate:zl,isFile:Jl,isBlob:Wl,isFunction:Hi,isStream:Vl,isURLSearchParams:Yl,isStandardBrowserEnv:Kl,forEach:Kr,merge:Yr,extend:Ql,trim:Xl,stripBOM:Zl}});var $t=v((fm,Ji)=>{"use strict";var Ge=ne();function zi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Ji.exports=function(t,r,n){if(!r)return t;var i;if(n)i=n(r);else if(Ge.isURLSearchParams(r))i=r.toString();else{var o=[];Ge.forEach(r,function(c,d){c===null||typeof c>"u"||(Ge.isArray(c)?d=d+"[]":c=[c],Ge.forEach(c,function(p){Ge.isDate(p)?p=p.toISOString():Ge.isObject(p)&&(p=JSON.stringify(p)),o.push(zi(d)+"="+zi(p))}))}),i=o.join("&")}if(i){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}});var Vi=v((hm,Wi)=>{"use strict";var ef=ne();function Ut(){this.handlers=[]}Ut.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Ut.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Ut.prototype.forEach=function(t){ef.forEach(this.handlers,function(n){n!==null&&t(n)})};Wi.exports=Ut});var Xi=v((dm,Yi)=>{"use strict";var tf=ne();Yi.exports=function(t,r){tf.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})}});var Ht=v((pm,Ki)=>{"use strict";Ki.exports=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.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}},t}});var Gt=v((mm,Qi)=>{"use strict";var rf=Ht();Qi.exports=function(t,r,n,i,o){var s=new Error(t);return rf(s,r,n,i,o)}});var Qr=v((ym,Zi)=>{"use strict";var nf=Gt();Zi.exports=function(t,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):r(nf("Request failed with status code "+n.status,n.config,null,n.request,n))}});var to=v((gm,eo)=>{"use strict";var zt=ne();eo.exports=zt.isStandardBrowserEnv()?function(){return{write:function(r,n,i,o,s,a){var c=[];c.push(r+"="+encodeURIComponent(n)),zt.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),zt.isString(o)&&c.push("path="+o),zt.isString(s)&&c.push("domain="+s),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var no=v((vm,ro)=>{"use strict";ro.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}});var oo=v((bm,io)=>{"use strict";io.exports=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}});var Zr=v((wm,so)=>{"use strict";var of=no(),sf=oo();so.exports=function(t,r){return t&&!of(r)?sf(t,r):r}});var co=v((Sm,ao)=>{"use strict";var en=ne(),af=["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"];ao.exports=function(t){var r={},n,i,o;return t&&en.forEach(t.split(`
|
|
2
|
+
`),function(a){if(o=a.indexOf(":"),n=en.trim(a.substr(0,o)).toLowerCase(),i=en.trim(a.substr(o+1)),n){if(r[n]&&af.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 fo=v((xm,lo)=>{"use strict";var uo=ne();lo.exports=uo.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(o){var s=o;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{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(s){var a=uo.isString(s)?i(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var po=v((Em,ho)=>{"use strict";var Jt=ne(),cf=Qr(),uf=to(),lf=$t(),ff=Zr(),hf=co(),df=fo(),tn=Gt();ho.exports=function(t){return new Promise(function(n,i){var o=t.data,s=t.headers,a=t.responseType;Jt.isFormData(o)&&delete s["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.Authorization="Basic "+btoa(d+":"+f)}var p=ff(t.baseURL,t.url);c.open(t.method.toUpperCase(),lf(p,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function y(){if(c){var S="getAllResponseHeaders"in c?hf(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};cf(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(tn("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(tn("Network Error",t,null,c)),c=null},c.ontimeout=function(){var O="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(O=t.timeoutErrorMessage),i(tn(O,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},Jt.isStandardBrowserEnv()){var m=(t.withCredentials||df(p))&&t.xsrfCookieName?uf.read(t.xsrfCookieName):void 0;m&&(s[t.xsrfHeaderName]=m)}"setRequestHeader"in c&&Jt.forEach(s,function(O,R){typeof o>"u"&&R.toLowerCase()==="content-type"?delete s[R]:c.setRequestHeader(R,O)}),Jt.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)}),o||(o=null),c.send(o)})}});var yo=v((_m,mo)=>{var ze=1e3,Je=ze*60,We=Je*60,De=We*24,pf=De*7,mf=De*365.25;mo.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return yf(e);if(r==="number"&&isFinite(e))return t.long?vf(e):gf(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function yf(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*mf;case"weeks":case"week":case"w":return r*pf;case"days":case"day":case"d":return r*De;case"hours":case"hour":case"hrs":case"hr":case"h":return r*We;case"minutes":case"minute":case"mins":case"min":case"m":return r*Je;case"seconds":case"second":case"secs":case"sec":case"s":return r*ze;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function gf(e){var t=Math.abs(e);return t>=De?Math.round(e/De)+"d":t>=We?Math.round(e/We)+"h":t>=Je?Math.round(e/Je)+"m":t>=ze?Math.round(e/ze)+"s":e+"ms"}function vf(e){var t=Math.abs(e);return t>=De?Wt(e,t,De,"day"):t>=We?Wt(e,t,We,"hour"):t>=Je?Wt(e,t,Je,"minute"):t>=ze?Wt(e,t,ze,"second"):e+" ms"}function Wt(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var rn=v((Cm,go)=>{function bf(e){r.debug=r,r.default=r,r.coerce=c,r.disable=o,r.enable=i,r.enabled=s,r.humanize=yo(),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 M=O,$=Number(new Date),z=$-(p||$);M.diff=z,M.prev=p,M.curr=$,p=$,R[0]=r.coerce(R[0]),typeof R[0]!="string"&&R.unshift("%O");let G=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,(ve,Ce)=>{if(ve==="%%")return"%";G++;let ae=r.formatters[Ce];if(typeof ae=="function"){let k=R[G];ve=ae.call(M,k),R.splice(G,1),G--}return ve}),r.formatArgs.call(M,R),(M.log||r.log).apply(M,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 o(){let f=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),f}function s(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}go.exports=bf});var vo=v((he,Vt)=>{he.formatArgs=Sf;he.save=xf;he.load=Ef;he.useColors=wf;he.storage=_f();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 wf(){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 Sf(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Vt.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 xf(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 _f(){try{return localStorage}catch{}}Vt.exports=rn()(he);var{formatters:Cf}=Vt.exports;Cf.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var wo=v((km,bo)=>{"use strict";bo.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 sn=v((Om,xo)=>{"use strict";var kf=require("os"),So=require("tty"),ge=wo(),{env:V}=process,Re;ge("no-color")||ge("no-colors")||ge("color=false")||ge("color=never")?Re=0:(ge("color")||ge("colors")||ge("color=true")||ge("color=always"))&&(Re=1);"FORCE_COLOR"in V&&(V.FORCE_COLOR==="true"?Re=1:V.FORCE_COLOR==="false"?Re=0:Re=V.FORCE_COLOR.length===0?1:Math.min(parseInt(V.FORCE_COLOR,10),3));function nn(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function on(e,t){if(Re===0)return 0;if(ge("color=16m")||ge("color=full")||ge("color=truecolor"))return 3;if(ge("color=256"))return 2;if(e&&!t&&Re===void 0)return 0;let r=Re||0;if(V.TERM==="dumb")return r;if(process.platform==="win32"){let n=kf.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 Of(e){let t=on(e,e&&e.isTTY);return nn(t)}xo.exports={supportsColor:Of,stdout:nn(on(!0,So.isatty(1))),stderr:nn(on(!0,So.isatty(2)))}});var _o=v((Y,Xt)=>{var Rf=require("tty"),Yt=require("util");Y.init=If;Y.log=Mf;Y.formatArgs=Af;Y.save=Ff;Y.load=Tf;Y.useColors=Pf;Y.destroy=Yt.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Y.colors=[6,2,3,4,5,1];try{let e=sn();e&&(e.stderr||e).level>=2&&(Y.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{}Y.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,o)=>o.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 Pf(){return"colors"in Y.inspectOpts?!!Y.inspectOpts.colors:Rf.isatty(process.stderr.fd)}function Af(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${i};1m${t} \x1B[0m`;e[0]=o+e[0].split(`
|
|
3
|
+
`).join(`
|
|
4
|
+
`+o),e.push(i+"m+"+Xt.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=qf()+t+" "+e[0]}function qf(){return Y.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Mf(...e){return process.stderr.write(Yt.format(...e)+`
|
|
5
|
+
`)}function Ff(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Tf(){return process.env.DEBUG}function If(e){e.inspectOpts={};let t=Object.keys(Y.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=Y.inspectOpts[t[r]]}Xt.exports=rn()(Y);var{formatters:Eo}=Xt.exports;Eo.o=function(e){return this.inspectOpts.colors=this.useColors,Yt.inspect(e,this.inspectOpts).split(`
|
|
6
|
+
`).map(t=>t.trim()).join(" ")};Eo.O=function(e){return this.inspectOpts.colors=this.useColors,Yt.inspect(e,this.inspectOpts)}});var Co=v((Rm,an)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?an.exports=vo():an.exports=_o()});var Oo=v((Pm,ko)=>{var pt;ko.exports=function(){if(!pt){try{pt=Co()("follow-redirects")}catch{}typeof pt!="function"&&(pt=function(){})}pt.apply(null,arguments)}});var dn=v((Am,hn)=>{var je=require("url"),cn=je.URL,Df=require("http"),jf=require("https"),Ao=require("stream").Writable,qo=require("assert"),Mo=Oo(),ln=["abort","aborted","connect","error","socket","timeout"],fn=Object.create(null);ln.forEach(function(e){fn[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var Nf=yt("ERR_INVALID_URL","Invalid URL",TypeError),Ro=yt("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Bf=yt("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Lf=yt("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),$f=yt("ERR_STREAM_WRITE_AFTER_END","write after end");function de(e,t){Ao.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(Ao.prototype);de.prototype.abort=function(){To(this._currentRequest),this.emit("abort")};de.prototype.write=function(e,t,r){if(this._ending)throw new $f;if(!Ne(e)&&!Gf(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(mt(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 Lf),this.abort())};de.prototype.end=function(e,t,r){if(mt(e)?(r=e,e=t=null):mt(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(s){s.setTimeout(e),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function i(s){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),o()},e),n(s)}function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",o),r.removeListener("error",o),r.removeListener("response",o),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",o),this.on("error",o),this.on("response",o),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 ln)n.on(i,fn[i]);if(this._currentUrl=/^\//.test(this._options.path)?je.format(this._options):this._options.path,this._isRedirect){var o=0,s=this,a=this._requestBodyBuffers;(function c(d){if(n===s._currentRequest)if(d)s.emit("error",d);else if(o<a.length){var f=a[o++];n.finished||n.write(f.data,f.encoding,c)}else s._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(To(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new Bf);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=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=[],un(/^content-/i,this._options.headers));var s=un(/^host$/i,this._options.headers),a=je.parse(this._currentUrl),c=s||a.host,d=/^\w+:/.test(r)?this._currentUrl:je.format(Object.assign(a,{host:c})),f;try{f=je.resolve(d,r)}catch(S){this.emit("error",new Ro({cause:S}));return}Mo("redirecting to",f),this._isRedirect=!0;var p=je.parse(f);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==c&&!Hf(p.host,c))&&un(/^(?:authorization|cookie)$/i,this._options.headers),mt(i)){var y={headers:e.headers,statusCode:t},m={url:d,method:o,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 Ro({cause:S}))}};function Fo(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",o=r[i]=e[n],s=t[n]=Object.create(o);function a(d,f,p){if(Ne(d)){var y;try{y=Po(new cn(d))}catch{y=je.parse(d)}if(!Ne(y.protocol))throw new Nf({input:d});d=y}else cn&&d instanceof cn?d=Po(d):(p=f,f=d,d={protocol:i});return mt(f)&&(p=f,f=null),f=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},d,f),f.nativeProtocols=r,!Ne(f.host)&&!Ne(f.hostname)&&(f.hostname="::1"),qo.equal(f.protocol,i,"protocol mismatch"),Mo("options",f),new de(f,p)}function c(d,f,p){var y=s.request(d,f,p);return y.end(),y}Object.defineProperties(s,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function Uf(){}function Po(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 un(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 yt(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 To(e){for(var t of ln)e.removeListener(t,fn[t]);e.on("error",Uf),e.abort()}function Hf(e,t){qo(Ne(e)&&Ne(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function Ne(e){return typeof e=="string"||e instanceof String}function mt(e){return typeof e=="function"}function Gf(e){return typeof e=="object"&&"length"in e}hn.exports=Fo({http:Df,https:jf});hn.exports.wrap=Fo});var pn=v((qm,zf)=>{zf.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 Lo=v((Mm,Bo)=>{"use strict";var gt=ne(),Io=Qr(),Jf=Zr(),Wf=$t(),Vf=require("http"),Yf=require("https"),Xf=dn().http,Kf=dn().https,Do=require("url"),Qf=require("zlib"),Zf=pn(),Kt=Gt(),mn=Ht(),jo=/https:?/;function No(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(o){o.headers.host=o.host,No(o,t,o.href)}}Bo.exports=function(t){return new Promise(function(n,i){var o=function(_){n(_)},s=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/"+Zf.version,a&&!gt.isStream(a)){if(!Buffer.isBuffer(a))if(gt.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(gt.isString(a))a=Buffer.from(a,"utf-8");else return s(Kt("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=Jf(t.baseURL,t.url),m=Do.parse(y),S=m.protocol||"http:";if(!d&&m.auth){var O=m.auth.split(":"),R=O[0]||"",M=O[1]||"";d=R+":"+M}d&&delete c.Authorization;var $=jo.test(S),z=$?t.httpsAgent:t.httpAgent,G={path:Wf(m.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:c,agent:z,agents:{http:t.httpAgent,https:t.httpsAgent},auth:d};t.socketPath?G.socketPath=t.socketPath:(G.hostname=m.hostname,G.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=Do.parse(Ce),k=process.env.no_proxy||process.env.NO_PROXY,T=!0;if(k){var F=k.split(",").map(function(_){return _.trim()});T=!F.some(function(_){return _?_==="*"||_[0]==="."&&m.hostname.substr(m.hostname.length-_.length)===_?!0:m.hostname===_:!1})}if(T&&(re={host:ae.hostname,port:ae.port,protocol:ae.protocol},ae.auth)){var U=ae.auth.split(":");re.auth={username:U[0],password:U[1]}}}}re&&(G.headers.host=m.hostname+(m.port?":"+m.port:""),No(G,re,S+"//"+m.hostname+(m.port?":"+m.port:"")+G.path));var P,L=$&&(re?jo.test(re.protocol):!0);t.transport?P=t.transport:t.maxRedirects===0?P=L?Yf:Vf:(t.maxRedirects&&(G.maxRedirects=t.maxRedirects),P=L?Kf:Xf),t.maxBodyLength>-1&&(G.maxBodyLength=t.maxBodyLength);var C=P.request(G,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(Qf.createUnzip()),delete _.headers["content-encoding"];break}var Te={status:_.statusCode,statusText:_.statusMessage,headers:_.headers,config:t,request:ke};if(t.responseType==="stream")Te.data=A,Io(o,s,Te);else{var ce=[],pe=0;A.on("data",function(me){ce.push(me),pe+=me.length,t.maxContentLength>-1&&pe>t.maxContentLength&&(A.destroy(),s(Kt("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,ke)))}),A.on("error",function(me){C.aborted||s(mn(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=gt.stripBOM(me))),Te.data=me,Io(o,s,Te)})}}});if(C.on("error",function(_){C.aborted&&_.code!=="ERR_FR_TOO_MANY_REDIRECTS"||s(mn(_,t,null,C))}),t.timeout){var j=parseInt(t.timeout,10);if(isNaN(j)){s(Kt("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",C));return}C.setTimeout(j,function(){C.abort(),s(Kt("timeout of "+j+"ms exceeded",t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",C))})}t.cancelToken&&t.cancelToken.promise.then(function(_){C.aborted||(C.abort(),s(_))}),gt.isStream(a)?a.on("error",function(_){s(mn(_,t,null,C))}).pipe(C):C.end(a)})}});var Zt=v((Fm,Ho)=>{"use strict";var X=ne(),$o=Xi(),eh=Ht(),th={"Content-Type":"application/x-www-form-urlencoded"};function Uo(e,t){!X.isUndefined(e)&&X.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function rh(){var e;return typeof XMLHttpRequest<"u"?e=po():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=Lo()),e}function nh(e,t,r){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Qt={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:rh(),transformRequest:[function(t,r){return $o(r,"Accept"),$o(r,"Content-Type"),X.isFormData(t)||X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t)?t:X.isArrayBufferView(t)?t.buffer:X.isURLSearchParams(t)?(Uo(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):X.isObject(t)||r&&r["Content-Type"]==="application/json"?(Uo(r,"application/json"),nh(t)):t}],transformResponse:[function(t){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||i&&X.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?eh(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Qt.headers={common:{Accept:"application/json, text/plain, */*"}};X.forEach(["delete","get","head"],function(t){Qt.headers[t]={}});X.forEach(["post","put","patch"],function(t){Qt.headers[t]=X.merge(th)});Ho.exports=Qt});var zo=v((Tm,Go)=>{"use strict";var ih=ne(),oh=Zt();Go.exports=function(t,r,n){var i=this||oh;return ih.forEach(n,function(s){t=s.call(i,t,r)}),t}});var yn=v((Im,Jo)=>{"use strict";Jo.exports=function(t){return!!(t&&t.__CANCEL__)}});var Yo=v((Dm,Vo)=>{"use strict";var Wo=ne(),gn=zo(),sh=yn(),ah=Zt();function vn(e){e.cancelToken&&e.cancelToken.throwIfRequested()}Vo.exports=function(t){vn(t),t.headers=t.headers||{},t.data=gn.call(t,t.data,t.headers,t.transformRequest),t.headers=Wo.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Wo.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||ah.adapter;return r(t).then(function(i){return vn(t),i.data=gn.call(t,i.data,i.headers,t.transformResponse),i},function(i){return sh(i)||(vn(t),i&&i.response&&(i.response.data=gn.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})}});var bn=v((jm,Xo)=>{"use strict";var Q=ne();Xo.exports=function(t,r){r=r||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],s=["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(o,d),Q.forEach(s,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(o).concat(s).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((Nm,es)=>{"use strict";var Qo=pn(),wn={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){wn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Ko={},ch=Qo.version.split(".");function Zo(e,t){for(var r=t?t.split("."):ch,n=e.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}wn.transitional=function(t,r,n){var i=r&&Zo(r);function o(s,a){return"[Axios v"+Qo.version+"] Transitional option '"+s+"'"+a+(n?". "+n:"")}return function(s,a,c){if(t===!1)throw new Error(o(a," has been removed in "+r));return i&&!Ko[a]&&(Ko[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,a,c):!0}};function uh(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 o=n[i],s=t[o];if(s){var a=e[o],c=a===void 0||s(a,o,e);if(c!==!0)throw new TypeError("option "+o+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+o)}}es.exports={isOlderVersion:Zo,assertOptions:uh,validators:wn}});var as=v((Bm,ss)=>{"use strict";var is=ne(),lh=$t(),rs=Vi(),ns=Yo(),er=bn(),os=ts(),Ve=os.validators;function vt(e){this.defaults=e,this.interceptors={request:new rs,response:new rs}}vt.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=er(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&&os.assertOptions(r,{silentJSONParsing:Ve.transitional(Ve.boolean,"1.0.0"),forcedJSONParsing:Ve.transitional(Ve.boolean,"1.0.0"),clarifyTimeoutError:Ve.transitional(Ve.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 o=[];this.interceptors.response.forEach(function(y){o.push(y.fulfilled,y.rejected)});var s;if(!i){var a=[ns,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(o),s=Promise.resolve(t);a.length;)s=s.then(a.shift(),a.shift());return s}for(var c=t;n.length;){var d=n.shift(),f=n.shift();try{c=d(c)}catch(p){f(p);break}}try{s=ns(c)}catch(p){return Promise.reject(p)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};vt.prototype.getUri=function(t){return t=er(this.defaults,t),lh(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};is.forEach(["delete","get","head","options"],function(t){vt.prototype[t]=function(r,n){return this.request(er(n||{},{method:t,url:r,data:(n||{}).data}))}});is.forEach(["post","put","patch"],function(t){vt.prototype[t]=function(r,n,i){return this.request(er(i||{},{method:t,url:r,data:n}))}});ss.exports=vt});var xn=v((Lm,cs)=>{"use strict";function Sn(e){this.message=e}Sn.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Sn.prototype.__CANCEL__=!0;cs.exports=Sn});var ls=v(($m,us)=>{"use strict";var fh=xn();function tr(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 fh(i),t(r.reason))})}tr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};tr.source=function(){var t,r=new tr(function(i){t=i});return{token:r,cancel:t}};us.exports=tr});var hs=v((Um,fs)=>{"use strict";fs.exports=function(t){return function(n){return t.apply(null,n)}}});var ps=v((Hm,ds)=>{"use strict";ds.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var gs=v((Gm,En)=>{"use strict";var ms=ne(),hh=Wr(),rr=as(),dh=bn(),ph=Zt();function ys(e){var t=new rr(e),r=hh(rr.prototype.request,t);return ms.extend(r,rr.prototype,t),ms.extend(r,t),r}var we=ys(ph);we.Axios=rr;we.create=function(t){return ys(dh(we.defaults,t))};we.Cancel=xn();we.CancelToken=ls();we.isCancel=yn();we.all=function(t){return Promise.all(t)};we.spread=hs();we.isAxiosError=ps();En.exports=we;En.exports.default=we});var _n=v((zm,vs)=>{vs.exports=gs()});var ws=v((Jm,bs)=>{"use strict";var mh=/[|\\{}()[\]^$+*?.]/g;bs.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(mh,"\\$&")}});var xs=v((Wm,Ss)=>{"use strict";Ss.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 Cn=v((Vm,ks)=>{var Be=xs(),Cs={};for(nr in Be)Be.hasOwnProperty(nr)&&(Cs[Be[nr]]=nr);var nr,x=ks.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);Es=x[ie].channels,_s=x[ie].labels,delete x[ie].channels,delete x[ie].labels,Object.defineProperty(x[ie],"channels",{value:Es}),Object.defineProperty(x[ie],"labels",{value:_s})}var Es,_s,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),o=Math.max(t,r,n),s=o-i,a,c,d;return o===i?a=0:t===o?a=(r-n)/s:r===o?a=2+(n-t)/s:n===o&&(a=4+(t-r)/s),a=Math.min(a*60,360),a<0&&(a+=360),d=(i+o)/2,o===i?c=0:d<=.5?c=s/(o+i):c=s/(2-o-i),[a,c*100,d*100]};x.rgb.hsv=function(e){var t,r,n,i,o,s=e[0]/255,a=e[1]/255,c=e[2]/255,d=Math.max(s,a,c),f=d-Math.min(s,a,c),p=function(y){return(d-y)/6/f+1/2};return f===0?i=o=0:(o=f/d,t=p(s),r=p(a),n=p(c),s===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,o*100,d*100]};x.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=x.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,o*100,n*100]};x.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,o,s,a;return a=Math.min(1-t,1-r,1-n),i=(1-t-a)/(1-a)||0,o=(1-r-a)/(1-a)||0,s=(1-n-a)/(1-a)||0,[i*100,o*100,s*100,a*100]};function yh(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=Cs[e];if(t)return t;var r=1/0,n;for(var i in Be)if(Be.hasOwnProperty(i)){var o=Be[i],s=yh(e,o);s<r&&(r=s,n=i)}return n};x.keyword.rgb=function(e){return Be[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,o=t*.2126+r*.7152+n*.0722,s=t*.0193+r*.1192+n*.9505;return[i*100,o*100,s*100]};x.rgb.lab=function(e){var t=x.rgb.xyz(e),r=t[0],n=t[1],i=t[2],o,s,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,o=116*n-16,s=500*(r-n),a=200*(n-i),[o,s,a]};x.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,o,s,a,c;if(r===0)return c=n*255,[c,c,c];n<.5?o=n*(1+r):o=n+r-n*r,i=2*n-o,a=[0,0,0];for(var d=0;d<3;d++)s=t+1/3*-(d-1),s<0&&s++,s>1&&s--,6*s<1?c=i+(o-i)*6*s:2*s<1?c=o:3*s<2?c=i+(o-i)*(2/3-s)*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,o=Math.max(n,.01),s,a;return n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o,a=(n+r)/2,s=n===0?2*i/(o+i):2*r/(n+r),[t,s*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,o=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*o),c=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,c,s];case 1:return[a,n,s];case 2:return[s,n,c];case 3:return[s,a,n];case 4:return[c,s,n];case 5:return[n,s,a]}};x.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),o,s,a;return a=(2-r)*n,o=(2-r)*i,s=r*i,s/=o<=1?o:2-o,s=s||0,a/=2,[t,s*100,a*100]};x.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,o,s,a,c;i>1&&(r/=i,n/=i),o=Math.floor(6*t),s=1-n,a=6*t-o,o&1&&(a=1-a),c=r+a*(s-r);var d,f,p;switch(o){default:case 6:case 0:d=s,f=c,p=r;break;case 1:d=c,f=s,p=r;break;case 2:d=r,f=s,p=c;break;case 3:d=r,f=c,p=s;break;case 4:d=c,f=r,p=s;break;case 5:d=s,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,o,s,a;return o=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[o*255,s*255,a*255]};x.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,o,s;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,s=t*.0557+r*-.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,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*255]};x.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,o,s;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,o=500*(t-r),s=200*(r-n),[i,o,s]};x.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,o,s;o=(t+16)/116,i=r/500+o,s=o-n/200;var a=Math.pow(o,3),c=Math.pow(i,3),d=Math.pow(s,3);return o=a>.008856?a:(o-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,s=d>.008856?d:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};x.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,o,s;return i=Math.atan2(n,r),o=i*360/2/Math.PI,o<0&&(o+=360),s=Math.sqrt(r*r+n*n),[t,s,o]};x.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,o,s;return s=n/360*2*Math.PI,i=r*Math.cos(s),o=r*Math.sin(s),[t,i,o]};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 o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(o+=60),o};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,o=(t>>2&1)*r*255;return[n,i,o]};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,o=r%6/5*255;return[n,i,o]};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,o=n>>8&255,s=n&255;return[i,o,s]};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),o=Math.min(Math.min(t,r),n),s=i-o,a,c;return s<1?a=o/(1-s):a=0,s<=0?c=0:i===t?c=(r-n)/s%6:i===r?c=2+(n-t)/s:c=4+(t-r)/s+4,c/=6,c%=1,[c*360,s*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],o=t%1*6,s=o%1,a=1-s,c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,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]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,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,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*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 Rs=v((Ym,Os)=>{var ir=Cn();function gh(){for(var e={},t=Object.keys(ir),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function vh(e){var t=gh(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(ir[n]),o=i.length,s=0;s<o;s++){var a=i[s],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}return t}function bh(e,t){return function(r){return t(e(r))}}function wh(e,t){for(var r=[t[e].parent,e],n=ir[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=bh(ir[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}Os.exports=function(e){for(var t=vh(e),r={},n=Object.keys(t),i=n.length,o=0;o<i;o++){var s=n[o],a=t[s];a.parent!==null&&(r[s]=wh(s,t))}return r}});var As=v((Xm,Ps)=>{var kn=Cn(),Sh=Rs(),Ye={},xh=Object.keys(kn);function Eh(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 _h(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,o=0;o<i;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}xh.forEach(function(e){Ye[e]={},Object.defineProperty(Ye[e],"channels",{value:kn[e].channels}),Object.defineProperty(Ye[e],"labels",{value:kn[e].labels});var t=Sh(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];Ye[e][n]=_h(i),Ye[e][n].raw=Eh(i)})});Ps.exports=Ye});var Ms=v((Km,qs)=>{"use strict";var Xe=As(),or=(e,t)=>function(){return`\x1B[${e.apply(Xe,arguments)+t}m`},sr=(e,t)=>function(){let r=e.apply(Xe,arguments);return`\x1B[${38+t};5;${r}m`},ar=(e,t)=>function(){let r=e.apply(Xe,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function Ch(){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 o=t[i];for(let s of Object.keys(o)){let a=o[s];t[s]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},o[s]=t[s],e.set(a[0],a[1])}Object.defineProperty(t,i,{value:o,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,o,s)=>[i,o,s];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:or(r,0)},t.color.ansi256={ansi256:sr(r,0)},t.color.ansi16m={rgb:ar(n,0)},t.bgColor.ansi={ansi:or(r,10)},t.bgColor.ansi256={ansi256:sr(r,10)},t.bgColor.ansi16m={rgb:ar(n,10)};for(let i of Object.keys(Xe)){if(typeof Xe[i]!="object")continue;let o=Xe[i];i==="ansi16"&&(i="ansi"),"ansi16"in o&&(t.color.ansi[i]=or(o.ansi16,0),t.bgColor.ansi[i]=or(o.ansi16,10)),"ansi256"in o&&(t.color.ansi256[i]=sr(o.ansi256,0),t.bgColor.ansi256[i]=sr(o.ansi256,10)),"rgb"in o&&(t.color.ansi16m[i]=ar(o.rgb,0),t.bgColor.ansi16m[i]=ar(o.rgb,10))}return t}Object.defineProperty(qs,"exports",{enumerable:!0,get:Ch})});var Ts=v((Qm,Fs)=>{"use strict";Fs.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 Ds=v((Zm,Is)=>{"use strict";var kh=require("os"),Se=Ts(),Z=process.env,Ke;Se("no-color")||Se("no-colors")||Se("color=false")?Ke=!1:(Se("color")||Se("colors")||Se("color=true")||Se("color=always"))&&(Ke=!0);"FORCE_COLOR"in Z&&(Ke=Z.FORCE_COLOR.length===0||parseInt(Z.FORCE_COLOR,10)!==0);function Oh(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Rh(e){if(Ke===!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&&Ke!==!0)return 0;let t=Ke?1:0;if(process.platform==="win32"){let r=kh.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 On(e){let t=Rh(e);return Oh(t)}Is.exports={supportsColor:On,stdout:On(process.stdout),stderr:On(process.stderr)}});var $s=v((e1,Ls)=>{"use strict";var Ph=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,js=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Ah=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,qh=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Mh=new Map([["n",`
|
|
7
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Bs(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):Mh.get(e)||e}function Fh(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let o of n)if(!isNaN(o))r.push(Number(o));else if(i=o.match(Ah))r.push(i[2].replace(qh,(s,a,c)=>a?Bs(a):c));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`);return r}function Th(e){js.lastIndex=0;let t=[],r;for(;(r=js.exec(e))!==null;){let n=r[1];if(r[2]){let i=Fh(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Ns(e,t){let r={};for(let i of t)for(let o of i.styles)r[o[0]]=i.inverse?null:o.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}Ls.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(Ph,(o,s,a,c,d,f)=>{if(s)i.push(Bs(s));else if(c){let p=i.join("");i=[],n.push(r.length===0?p:Ns(e,r)(p)),r.push({inverse:a,styles:Th(c)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Ns(e,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let o=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(o)}return n.join("")}});var ur=v((t1,wt)=>{"use strict";var Pn=ws(),W=Ms(),Rn=Ds().stdout,Ih=$s(),Hs=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Gs=["ansi","ansi","ansi256","ansi16m"],zs=new Set(["gray"]),Qe=Object.create(null);function Us(e,t){t=t||{};let r=Rn?Rn.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function bt(e){if(!this||!(this instanceof bt)||this.template){let t={};return Us(t,e),t.template=function(){let r=[].slice.call(arguments);return Nh.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,bt.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=bt,t.template}Us(this,e)}Hs&&(W.blue.open="\x1B[94m");for(let e of Object.keys(W))W[e].closeRe=new RegExp(Pn(W[e].close),"g"),Qe[e]={get(){let t=W[e];return cr.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};Qe.visible={get(){return cr.call(this,this._styles||[],!0,"visible")}};W.color.closeRe=new RegExp(Pn(W.color.close),"g");for(let e of Object.keys(W.color.ansi))zs.has(e)||(Qe[e]={get(){let t=this.level;return function(){let n={open:W.color[Gs[t]][e].apply(null,arguments),close:W.color.close,closeRe:W.color.closeRe};return cr.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});W.bgColor.closeRe=new RegExp(Pn(W.bgColor.close),"g");for(let e of Object.keys(W.bgColor.ansi)){if(zs.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);Qe[t]={get(){let r=this.level;return function(){let i={open:W.bgColor[Gs[r]][e].apply(null,arguments),close:W.bgColor.close,closeRe:W.bgColor.closeRe};return cr.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}}}var Dh=Object.defineProperties(()=>{},Qe);function cr(e,t,r){let n=function(){return jh.apply(n,arguments)};n._styles=e,n._empty=t;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||r==="gray"||r==="grey",n.__proto__=Dh,n}function jh(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return"";if(t>1)for(let i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=W.dim.open;Hs&&this.hasGrey&&(W.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return W.dim.open=n,r}function Nh(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[t.raw[0]];for(let i=1;i<t.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[i]));return Ih(e,n.join(""))}Object.defineProperties(bt.prototype,Qe);wt.exports=bt();wt.exports.supportsColor=Rn;wt.exports.default=wt.exports});var Mn=v((n1,qn)=>{var Bh=require("fs"),Lh=require("path");function Vs(e){console.log(`[dotenv][DEBUG] ${e}`)}var $h=`
|
|
8
|
+
`,Uh=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,Hh=/\\n/g,Gh=/\n|\r|\r\n/;function Ys(e,t){let r=!!(t&&t.debug),n={};return e.toString().split(Gh).forEach(function(i,o){let s=i.match(Uh);if(s!=null){let a=s[1],c=s[2]||"",d=c.length-1,f=c[0]==='"'&&c[d]==='"';c[0]==="'"&&c[d]==="'"||f?(c=c.substring(1,d),f&&(c=c.replace(Hh,$h))):c=c.trim(),n[a]=c}else r&&Vs(`did not match key and value when parsing line ${o+1}: ${i}`)}),n}function zh(e){let t=Lh.resolve(process.cwd(),".env"),r="utf8",n=!1;e&&(e.path!=null&&(t=e.path),e.encoding!=null&&(r=e.encoding),e.debug!=null&&(n=!0));try{let i=Ys(Bh.readFileSync(t,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(o){Object.prototype.hasOwnProperty.call(process.env,o)?n&&Vs(`"${o}" is already defined in \`process.env\` and will not be overwritten`):process.env[o]=i[o]}),{parsed:i}}catch(i){return{error:i}}}qn.exports.config=zh;qn.exports.parse=Ys});var ue=v(Fn=>{"use strict";Fn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,o)=>i!=null?n(i):r(o))})},"name",{value:e.name})};Fn.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var Ks=v((o1,Xs)=>{var Pe=require("constants"),Jh=process.cwd,fr=null,Wh=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return fr||(fr=Jh.call(process)),fr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Tn=process.chdir,process.chdir=function(e){fr=null,Tn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Tn));var Tn;Xs.exports=Vh;function Vh(e){Pe.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(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=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(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,y){y&&process.nextTick(y)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,p,y,m){m&&process.nextTick(m)},e.lchownSync=function(){}),Wh==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function p(y,m,S){var O=Date.now(),R=0;f(y,m,function M($){if($&&($.code==="EACCES"||$.code==="EPERM")&&Date.now()-O<6e4){setTimeout(function(){e.stat(m,function(z,G){z&&z.code==="ENOENT"?f(y,m,M):S($)})},R),R<100&&(R+=10);return}S&&S($)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,f),p}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function p(y,m,S,O,R,M){var $;if(M&&typeof M=="function"){var z=0;$=function(G,re,ve){if(G&&G.code==="EAGAIN"&&z<10)return z++,f.call(e,y,m,S,O,R,$);M.apply(this,arguments)}}return f.call(e,y,m,S,O,R,$)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,f),p}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(p,y,m,S,O){for(var R=0;;)try{return f.call(e,p,y,m,S,O)}catch(M){if(M.code==="EAGAIN"&&R<10){R++;continue}throw M}}}(e.readSync);function t(f){f.lchmod=function(p,y,m){f.open(p,Pe.O_WRONLY|Pe.O_SYMLINK,y,function(S,O){if(S){m&&m(S);return}f.fchmod(O,y,function(R){f.close(O,function(M){m&&m(R||M)})})})},f.lchmodSync=function(p,y){var m=f.openSync(p,Pe.O_WRONLY|Pe.O_SYMLINK,y),S=!0,O;try{O=f.fchmodSync(m,y),S=!1}finally{if(S)try{f.closeSync(m)}catch{}else f.closeSync(m)}return O}}function r(f){Pe.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(p,y,m,S){f.open(p,Pe.O_SYMLINK,function(O,R){if(O){S&&S(O);return}f.futimes(R,y,m,function(M){f.close(R,function($){S&&S(M||$)})})})},f.lutimesSync=function(p,y,m){var S=f.openSync(p,Pe.O_SYMLINK),O,R=!0;try{O=f.futimesSync(S,y,m),R=!1}finally{if(R)try{f.closeSync(S)}catch{}else f.closeSync(S)}return O}):f.futimes&&(f.lutimes=function(p,y,m,S){S&&process.nextTick(S)},f.lutimesSync=function(){})}function n(f){return f&&function(p,y,m){return f.call(e,p,y,function(S){d(S)&&(S=null),m&&m.apply(this,arguments)})}}function i(f){return f&&function(p,y){try{return f.call(e,p,y)}catch(m){if(!d(m))throw m}}}function o(f){return f&&function(p,y,m,S){return f.call(e,p,y,m,function(O){d(O)&&(O=null),S&&S.apply(this,arguments)})}}function s(f){return f&&function(p,y,m){try{return f.call(e,p,y,m)}catch(S){if(!d(S))throw S}}}function a(f){return f&&function(p,y,m){typeof y=="function"&&(m=y,y=null);function S(O,R){R&&(R.uid<0&&(R.uid+=4294967296),R.gid<0&&(R.gid+=4294967296)),m&&m.apply(this,arguments)}return y?f.call(e,p,y,S):f.call(e,p,S)}}function c(f){return f&&function(p,y){var m=y?f.call(e,p,y):f.call(e,p);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function d(f){if(!f||f.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var ea=v((s1,Zs)=>{var Qs=require("stream").Stream;Zs.exports=Yh;function Yh(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);Qs.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 s=Object.keys(i),a=0,c=s.length;a<c;a++){var d=s[a];this[d]=i[d]}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 r(n,i){if(!(this instanceof r))return new r(n,i);Qs.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),s=0,a=o.length;s<a;s++){var c=o[s];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 ra=v((a1,ta)=>{"use strict";ta.exports=Kh;var Xh=Object.getPrototypeOf||function(e){return e.__proto__};function Kh(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Xh(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var ee=v((c1,jn)=>{var H=require("fs"),Qh=Ks(),Zh=ea(),e0=ra(),hr=require("util"),K,pr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(K=Symbol.for("graceful-fs.queue"),pr=Symbol.for("graceful-fs.previous")):(K="___graceful-fs.queue",pr="___graceful-fs.previous");function t0(){}function oa(e,t){Object.defineProperty(e,K,{get:function(){return t}})}var Le=t0;hr.debuglog?Le=hr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Le=function(){var e=hr.format.apply(hr,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
9
|
+
GFS4: `),console.error(e)});H[K]||(na=global[K]||[],oa(H,na),H.close=function(e){function t(r,n){return e.call(H,r,function(i){i||ia(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,pr,{value:e}),t}(H.close),H.closeSync=function(e){function t(r){e.apply(H,arguments),ia()}return Object.defineProperty(t,pr,{value:e}),t}(H.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Le(H[K]),require("assert").equal(H[K].length,0)}));var na;global[K]||oa(global,H[K]);jn.exports=In(e0(H));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!H.__patched&&(jn.exports=In(H),H.__patched=!0);function In(e){Qh(e),e.gracefulify=In,e.createReadStream=re,e.createWriteStream=ve;var t=e.readFile;e.readFile=r;function r(k,T,F){return typeof T=="function"&&(F=T,T=null),U(k,T,F);function U(P,L,C,j){return t(P,L,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?Ze([U,[P,L,C],q,j||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(k,T,F,U){return typeof F=="function"&&(U=F,F=null),P(k,T,F,U);function P(L,C,j,q,_){return n(L,C,j,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Ze([P,[L,C,j,q],A,_||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=s);function s(k,T,F,U){return typeof F=="function"&&(U=F,F=null),P(k,T,F,U);function P(L,C,j,q,_){return o(L,C,j,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Ze([P,[L,C,j,q],A,_||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=c);function c(k,T,F,U){return typeof F=="function"&&(U=F,F=0),P(k,T,F,U);function P(L,C,j,q,_){return a(L,C,j,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Ze([P,[L,C,j,q],A,_||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var d=e.readdir;e.readdir=p;var f=/^v[0-5]\./;function p(k,T,F){typeof T=="function"&&(F=T,T=null);var U=f.test(process.version)?function(C,j,q,_){return d(C,P(C,j,q,_))}:function(C,j,q,_){return d(C,j,P(C,j,q,_))};return U(k,T,F);function P(L,C,j,q){return function(_,A){_&&(_.code==="EMFILE"||_.code==="ENFILE")?Ze([U,[L,C,j],_,q||Date.now(),Date.now()]):(A&&A.sort&&A.sort(),typeof j=="function"&&j.call(this,_,A))}}}if(process.version.substr(0,4)==="v0.8"){var y=Zh(e);M=y.ReadStream,z=y.WriteStream}var m=e.ReadStream;m&&(M.prototype=Object.create(m.prototype),M.prototype.open=$);var S=e.WriteStream;S&&(z.prototype=Object.create(S.prototype),z.prototype.open=G),Object.defineProperty(e,"ReadStream",{get:function(){return M},set:function(k){M=k},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return z},set:function(k){z=k},enumerable:!0,configurable:!0});var O=M;Object.defineProperty(e,"FileReadStream",{get:function(){return O},set:function(k){O=k},enumerable:!0,configurable:!0});var R=z;Object.defineProperty(e,"FileWriteStream",{get:function(){return R},set:function(k){R=k},enumerable:!0,configurable:!0});function M(k,T){return this instanceof M?(m.apply(this,arguments),this):M.apply(Object.create(M.prototype),arguments)}function $(){var k=this;ae(k.path,k.flags,k.mode,function(T,F){T?(k.autoClose&&k.destroy(),k.emit("error",T)):(k.fd=F,k.emit("open",F),k.read())})}function z(k,T){return this instanceof z?(S.apply(this,arguments),this):z.apply(Object.create(z.prototype),arguments)}function G(){var k=this;ae(k.path,k.flags,k.mode,function(T,F){T?(k.destroy(),k.emit("error",T)):(k.fd=F,k.emit("open",F))})}function re(k,T){return new e.ReadStream(k,T)}function ve(k,T){return new e.WriteStream(k,T)}var Ce=e.open;e.open=ae;function ae(k,T,F,U){return typeof F=="function"&&(U=F,F=null),P(k,T,F,U);function P(L,C,j,q,_){return Ce(L,C,j,function(A,ke){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Ze([P,[L,C,j,q],A,_||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}return e}function Ze(e){Le("ENQUEUE",e[0].name,e[1]),H[K].push(e),Dn()}var dr;function ia(){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);Dn()}function Dn(){if(clearTimeout(dr),dr=void 0,H[K].length!==0){var e=H[K].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(i===void 0)Le("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Le("TIMEOUT",t.name,r);var s=r.pop();typeof s=="function"&&s.call(null,n)}else{var a=Date.now()-o,c=Math.max(o-i,1),d=Math.min(c*1.2,100);a>=d?(Le("RETRY",t.name,r),t.apply(null,r.concat([i]))):H[K].push(e)}dr===void 0&&(dr=setTimeout(Dn,0))}}});var St=v(Ae=>{"use strict";var sa=ue().fromCallback,oe=ee(),r0=["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 oe[e]=="function");Object.keys(oe).forEach(e=>{e!=="promises"&&(Ae[e]=oe[e])});r0.forEach(e=>{Ae[e]=sa(oe[e])});Ae.exists=function(e,t){return typeof t=="function"?oe.exists(e,t):new Promise(r=>oe.exists(e,r))};Ae.read=function(e,t,r,n,i,o){return typeof o=="function"?oe.read(e,t,r,n,i,o):new Promise((s,a)=>{oe.read(e,t,r,n,i,(c,d,f)=>{if(c)return a(c);s({bytesRead:d,buffer:f})})})};Ae.write=function(e,t,...r){return typeof r[r.length-1]=="function"?oe.write(e,t,...r):new Promise((n,i)=>{oe.write(e,t,...r,(o,s,a)=>{if(o)return i(o);n({bytesWritten:s,buffer:a})})})};typeof oe.writev=="function"&&(Ae.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?oe.writev(e,t,...r):new Promise((n,i)=>{oe.writev(e,t,...r,(o,s,a)=>{if(o)return i(o);n({bytesWritten:s,buffers:a})})})});typeof oe.realpath.native=="function"&&(Ae.realpath.native=sa(oe.realpath.native))});var Nn=v((l1,aa)=>{aa.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 ha=v((f1,Bn)=>{"use strict";var et=St(),_e=require("path"),n0=Nn(),ca=n0("10.12.0"),ua=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}},la=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),{...t,...e}},fa=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};Bn.exports.makeDir=async(e,t)=>{if(ua(e),t=la(t),ca){let n=_e.resolve(e);return et.mkdir(n,{mode:t.mode,recursive:!0})}let r=async n=>{try{await et.mkdir(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(_e.dirname(n)===n)throw fa(n);if(i.message.includes("null bytes"))throw i;return await r(_e.dirname(n)),r(n)}try{if(!(await et.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(_e.resolve(e))};Bn.exports.makeDirSync=(e,t)=>{if(ua(e),t=la(t),ca){let n=_e.resolve(e);return et.mkdirSync(n,{mode:t.mode,recursive:!0})}let r=n=>{try{et.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(_e.dirname(n)===n)throw fa(n);if(i.message.includes("null bytes"))throw i;return r(_e.dirname(n)),r(n)}try{if(!et.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(_e.resolve(e))}});var xe=v((h1,da)=>{"use strict";var i0=ue().fromPromise,{makeDir:o0,makeDirSync:Ln}=ha(),$n=i0(o0);da.exports={mkdirs:$n,mkdirsSync:Ln,mkdirp:$n,mkdirpSync:Ln,ensureDir:$n,ensureDirSync:Ln}});var Un=v((d1,pa)=>{"use strict";var tt=ee();function s0(e,t,r,n){tt.open(e,"r+",(i,o)=>{if(i)return n(i);tt.futimes(o,t,r,s=>{tt.close(o,a=>{n&&n(s||a)})})})}function a0(e,t,r){let n=tt.openSync(e,"r+");return tt.futimesSync(n,t,r),tt.closeSync(n)}pa.exports={utimesMillis:s0,utimesMillisSync:a0}});var xt=v((p1,va)=>{"use strict";var rt=St(),le=require("path"),c0=require("util"),u0=Nn(),mr=u0("10.5.0"),ma=e=>mr?rt.stat(e,{bigint:!0}):rt.stat(e),Hn=e=>mr?rt.statSync(e,{bigint:!0}):rt.statSync(e);function l0(e,t){return Promise.all([ma(e),ma(t).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function f0(e,t){let r,n=Hn(e);try{r=Hn(t)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function h0(e,t,r,n){c0.callbackify(l0)(e,t,(i,o)=>{if(i)return n(i);let{srcStat:s,destStat:a}=o;return a&&yr(s,a)?n(new Error("Source and destination must not be the same.")):s.isDirectory()&&Gn(e,t)?n(new Error(gr(e,t,r))):n(null,{srcStat:s,destStat:a})})}function d0(e,t,r){let{srcStat:n,destStat:i}=f0(e,t);if(i&&yr(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Gn(e,t))throw new Error(gr(e,t,r));return{srcStat:n,destStat:i}}function ya(e,t,r,n,i){let o=le.resolve(le.dirname(e)),s=le.resolve(le.dirname(r));if(s===o||s===le.parse(s).root)return i();let a=(c,d)=>c?c.code==="ENOENT"?i():i(c):yr(t,d)?i(new Error(gr(e,r,n))):ya(e,t,s,n,i);mr?rt.stat(s,{bigint:!0},a):rt.stat(s,a)}function ga(e,t,r,n){let i=le.resolve(le.dirname(e)),o=le.resolve(le.dirname(r));if(o===i||o===le.parse(o).root)return;let s;try{s=Hn(o)}catch(a){if(a.code==="ENOENT")return;throw a}if(yr(t,s))throw new Error(gr(e,r,n));return ga(e,t,o,n)}function yr(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(mr||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 Gn(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,o,s)=>i&&n[s]===o,!0)}function gr(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}va.exports={checkPaths:h0,checkPathsSync:d0,checkParentPaths:ya,checkParentPathsSync:ga,isSrcSubdir:Gn}});var Ea=v((m1,xa)=>{"use strict";var te=ee(),Et=require("path"),p0=xe().mkdirsSync,m0=Un().utimesMillisSync,_t=xt();function y0(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}=_t.checkPathsSync(e,t,"copy");return _t.checkParentPathsSync(e,n,t,"copy"),g0(i,e,t,r)}function g0(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=Et.dirname(r);return te.existsSync(i)||p0(i),ba(e,t,r,n)}function ba(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return v0(e,t,r,n)}function v0(e,t,r,n){let o=(n.dereference?te.statSync:te.lstatSync)(t);if(o.isDirectory())return C0(o,e,t,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return b0(o,e,t,r,n);if(o.isSymbolicLink())return R0(e,t,r,n)}function b0(e,t,r,n,i){return t?w0(e,r,n,i):wa(e,r,n,i)}function w0(e,t,r,n){if(n.overwrite)return te.unlinkSync(r),wa(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function wa(e,t,r,n){return te.copyFileSync(t,r),n.preserveTimestamps&&S0(e.mode,t,r),zn(r,e.mode)}function S0(e,t,r){return x0(e)&&E0(r,e),_0(t,r)}function x0(e){return(e&128)===0}function E0(e,t){return zn(e,t|128)}function zn(e,t){return te.chmodSync(e,t)}function _0(e,t){let r=te.statSync(e);return m0(t,r.atime,r.mtime)}function C0(e,t,r,n,i){if(!t)return k0(e.mode,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return Sa(r,n,i)}function k0(e,t,r,n){return te.mkdirSync(r),Sa(t,r,n),zn(r,e)}function Sa(e,t,r){te.readdirSync(e).forEach(n=>O0(n,e,t,r))}function O0(e,t,r,n){let i=Et.join(t,e),o=Et.join(r,e),{destStat:s}=_t.checkPathsSync(i,o,"copy");return ba(s,i,o,n)}function R0(e,t,r,n){let i=te.readlinkSync(t);if(n.dereference&&(i=Et.resolve(process.cwd(),i)),e){let o;try{o=te.readlinkSync(r)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return te.symlinkSync(i,r);throw s}if(n.dereference&&(o=Et.resolve(process.cwd(),o)),_t.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if(te.statSync(r).isDirectory()&&_t.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return P0(i,r)}else return te.symlinkSync(i,r)}function P0(e,t){return te.unlinkSync(t),te.symlinkSync(e,t)}xa.exports=y0});var Jn=v((y1,_a)=>{"use strict";_a.exports={copySync:Ea()}});var qe=v((g1,ka)=>{"use strict";var A0=ue().fromPromise,Ca=St();function q0(e){return Ca.access(e).then(()=>!0).catch(()=>!1)}ka.exports={pathExists:A0(q0),pathExistsSync:Ca.existsSync}});var Ia=v((v1,Ta)=>{"use strict";var fe=ee(),Ct=require("path"),M0=xe().mkdirs,F0=qe().pathExists,T0=Un().utimesMillis,kt=xt();function I0(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},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;
|
|
12
|
+
|
|
13
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),kt.checkPaths(e,t,"copy",(i,o)=>{if(i)return n(i);let{srcStat:s,destStat:a}=o;kt.checkParentPaths(e,s,t,"copy",c=>c?n(c):r.filter?Aa(Oa,a,e,t,r,n):Oa(a,e,t,r,n))})}function Oa(e,t,r,n,i){let o=Ct.dirname(r);F0(o,(s,a)=>{if(s)return i(s);if(a)return Wn(e,t,r,n,i);M0(o,c=>c?i(c):Wn(e,t,r,n,i))})}function Aa(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then(s=>s?e(t,r,n,i,o):o(),s=>o(s))}function Wn(e,t,r,n,i){return n.filter?Aa(Ra,e,t,r,n,i):Ra(e,t,r,n,i)}function Ra(e,t,r,n,i){(n.dereference?fe.stat:fe.lstat)(t,(s,a)=>{if(s)return i(s);if(a.isDirectory())return U0(a,e,t,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return D0(a,e,t,r,n,i);if(a.isSymbolicLink())return z0(e,t,r,n,i)})}function D0(e,t,r,n,i,o){return t?j0(e,r,n,i,o):qa(e,r,n,i,o)}function j0(e,t,r,n,i){if(n.overwrite)fe.unlink(r,o=>o?i(o):qa(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function qa(e,t,r,n,i){fe.copyFile(t,r,o=>o?i(o):n.preserveTimestamps?N0(e.mode,t,r,i):vr(r,e.mode,i))}function N0(e,t,r,n){return B0(e)?L0(r,e,i=>i?n(i):Pa(e,t,r,n)):Pa(e,t,r,n)}function B0(e){return(e&128)===0}function L0(e,t,r){return vr(e,t|128,r)}function Pa(e,t,r,n){$0(t,r,i=>i?n(i):vr(r,e,n))}function vr(e,t,r){return fe.chmod(e,t,r)}function $0(e,t,r){fe.stat(e,(n,i)=>n?r(n):T0(t,i.atime,i.mtime,r))}function U0(e,t,r,n,i,o){return t?t&&!t.isDirectory()?o(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):Ma(r,n,i,o):H0(e.mode,r,n,i,o)}function H0(e,t,r,n,i){fe.mkdir(r,o=>{if(o)return i(o);Ma(t,r,n,s=>s?i(s):vr(r,e,i))})}function Ma(e,t,r,n){fe.readdir(e,(i,o)=>i?n(i):Fa(o,e,t,r,n))}function Fa(e,t,r,n,i){let o=e.pop();return o?G0(e,o,t,r,n,i):i()}function G0(e,t,r,n,i,o){let s=Ct.join(r,t),a=Ct.join(n,t);kt.checkPaths(s,a,"copy",(c,d)=>{if(c)return o(c);let{destStat:f}=d;Wn(f,s,a,i,p=>p?o(p):Fa(e,r,n,i,o))})}function z0(e,t,r,n,i){fe.readlink(t,(o,s)=>{if(o)return i(o);if(n.dereference&&(s=Ct.resolve(process.cwd(),s)),e)fe.readlink(r,(a,c)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?fe.symlink(s,r,i):i(a):(n.dereference&&(c=Ct.resolve(process.cwd(),c)),kt.isSrcSubdir(s,c)?i(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&kt.isSrcSubdir(c,s)?i(new Error(`Cannot overwrite '${c}' with '${s}'.`)):J0(s,r,i)));else return fe.symlink(s,r,i)})}function J0(e,t,r){fe.unlink(t,n=>n?r(n):fe.symlink(e,t,r))}Ta.exports=I0});var Vn=v((b1,Da)=>{"use strict";var W0=ue().fromCallback;Da.exports={copy:W0(Ia())}});var za=v((w1,Ga)=>{"use strict";var ja=ee(),$a=require("path"),B=require("assert"),Ot=process.platform==="win32";function Ua(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||ja[r],r=r+"Sync",e[r]=e[r]||ja[r]}),e.maxBusyTries=e.maxBusyTries||3}function Yn(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),B(e,"rimraf: missing path"),B.strictEqual(typeof e,"string","rimraf: path should be a string"),B.strictEqual(typeof r,"function","rimraf: callback function required"),B(t,"rimraf: invalid options argument provided"),B.strictEqual(typeof t,"object","rimraf: options should be object"),Ua(t),Na(e,t,function i(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&n<t.maxBusyTries){n++;let s=n*100;return setTimeout(()=>Na(e,t,i),s)}o.code==="ENOENT"&&(o=null)}r(o)})}function Na(e,t,r){B(e),B(t),B(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Ot)return Ba(e,t,n,r);if(i&&i.isDirectory())return br(e,t,n,r);t.unlink(e,o=>{if(o){if(o.code==="ENOENT")return r(null);if(o.code==="EPERM")return Ot?Ba(e,t,o,r):br(e,t,o,r);if(o.code==="EISDIR")return br(e,t,o,r)}return r(o)})})}function Ba(e,t,r,n){B(e),B(t),B(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(o,s)=>{o?n(o.code==="ENOENT"?null:r):s.isDirectory()?br(e,t,r,n):t.unlink(e,n)})})}function La(e,t,r){let n;B(e),B(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?wr(e,t,r):t.unlinkSync(e)}function br(e,t,r,n){B(e),B(t),B(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?V0(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function V0(e,t,r){B(e),B(t),B(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let o=i.length,s;if(o===0)return t.rmdir(e,r);i.forEach(a=>{Yn($a.join(e,a),t,c=>{if(!s){if(c)return r(s=c);--o===0&&t.rmdir(e,r)}})})})}function Ha(e,t){let r;t=t||{},Ua(t),B(e,"rimraf: missing path"),B.strictEqual(typeof e,"string","rimraf: path should be a string"),B(t,"rimraf: missing options"),B.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Ot&&La(e,t,n)}try{r&&r.isDirectory()?wr(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Ot?La(e,t,n):wr(e,t,n);if(n.code!=="EISDIR")throw n;wr(e,t,n)}}function wr(e,t,r){B(e),B(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")Y0(e,t);else if(n.code!=="ENOENT")throw n}}function Y0(e,t){if(B(e),B(t),t.readdirSync(e).forEach(r=>Ha($a.join(e,r),t)),Ot){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}Ga.exports=Yn;Yn.sync=Ha});var Rt=v((S1,Wa)=>{"use strict";var X0=ue().fromCallback,Ja=za();Wa.exports={remove:X0(Ja),removeSync:Ja.sync}});var tc=v((x1,ec)=>{"use strict";var K0=ue().fromCallback,Xa=ee(),Ka=require("path"),Qa=xe(),Za=Rt(),Va=K0(function(t,r){r=r||function(){},Xa.readdir(t,(n,i)=>{if(n)return Qa.mkdirs(t,r);i=i.map(s=>Ka.join(t,s)),o();function o(){let s=i.pop();if(!s)return r();Za.remove(s,a=>{if(a)return r(a);o()})}})});function Ya(e){let t;try{t=Xa.readdirSync(e)}catch{return Qa.mkdirsSync(e)}t.forEach(r=>{r=Ka.join(e,r),Za.removeSync(r)})}ec.exports={emptyDirSync:Ya,emptydirSync:Ya,emptyDir:Va,emptydir:Va}});var oc=v((E1,ic)=>{"use strict";var Q0=ue().fromCallback,rc=require("path"),Me=ee(),nc=xe();function Z0(e,t){function r(){Me.writeFile(e,"",n=>{if(n)return t(n);t()})}Me.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let o=rc.dirname(e);Me.stat(o,(s,a)=>{if(s)return s.code==="ENOENT"?nc.mkdirs(o,c=>{if(c)return t(c);r()}):t(s);a.isDirectory()?r():Me.readdir(o,c=>{if(c)return t(c)})})})}function ed(e){let t;try{t=Me.statSync(e)}catch{}if(t&&t.isFile())return;let r=rc.dirname(e);try{Me.statSync(r).isDirectory()||Me.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")nc.mkdirsSync(r);else throw n}Me.writeFileSync(e,"")}ic.exports={createFile:Q0(Z0),createFileSync:ed}});var lc=v((_1,uc)=>{"use strict";var td=ue().fromCallback,ac=require("path"),$e=ee(),cc=xe(),sc=qe().pathExists;function rd(e,t,r){function n(i,o){$e.link(i,o,s=>{if(s)return r(s);r(null)})}sc(t,(i,o)=>{if(i)return r(i);if(o)return r(null);$e.lstat(e,s=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),r(s);let a=ac.dirname(t);sc(a,(c,d)=>{if(c)return r(c);if(d)return n(e,t);cc.mkdirs(a,f=>{if(f)return r(f);n(e,t)})})})})}function nd(e,t){if($e.existsSync(t))return;try{$e.lstatSync(e)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=ac.dirname(t);return $e.existsSync(n)||cc.mkdirsSync(n),$e.linkSync(e,t)}uc.exports={createLink:td(rd),createLinkSync:nd}});var hc=v((C1,fc)=>{"use strict";var Fe=require("path"),Pt=ee(),id=qe().pathExists;function od(e,t,r){if(Fe.isAbsolute(e))return Pt.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=Fe.dirname(t),i=Fe.join(n,e);return id(i,(o,s)=>o?r(o):s?r(null,{toCwd:i,toDst:e}):Pt.lstat(e,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:e,toDst:Fe.relative(n,e)})))}}function sd(e,t){let r;if(Fe.isAbsolute(e)){if(r=Pt.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=Fe.dirname(t),i=Fe.join(n,e);if(r=Pt.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Pt.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Fe.relative(n,e)}}}fc.exports={symlinkPaths:od,symlinkPathsSync:sd}});var mc=v((k1,pc)=>{"use strict";var dc=ee();function ad(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);dc.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function cd(e,t){let r;if(t)return t;try{r=dc.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}pc.exports={symlinkType:ad,symlinkTypeSync:cd}});var xc=v((O1,Sc)=>{"use strict";var ud=ue().fromCallback,gc=require("path"),nt=ee(),vc=xe(),ld=vc.mkdirs,fd=vc.mkdirsSync,bc=hc(),hd=bc.symlinkPaths,dd=bc.symlinkPathsSync,wc=mc(),pd=wc.symlinkType,md=wc.symlinkTypeSync,yc=qe().pathExists;function yd(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,yc(t,(i,o)=>{if(i)return n(i);if(o)return n(null);hd(e,t,(s,a)=>{if(s)return n(s);e=a.toDst,pd(a.toCwd,r,(c,d)=>{if(c)return n(c);let f=gc.dirname(t);yc(f,(p,y)=>{if(p)return n(p);if(y)return nt.symlink(e,t,d,n);ld(f,m=>{if(m)return n(m);nt.symlink(e,t,d,n)})})})})})}function gd(e,t,r){if(nt.existsSync(t))return;let i=dd(e,t);e=i.toDst,r=md(i.toCwd,r);let o=gc.dirname(t);return nt.existsSync(o)||fd(o),nt.symlinkSync(e,t,r)}Sc.exports={createSymlink:ud(yd),createSymlinkSync:gd}});var _c=v((R1,Ec)=>{"use strict";var Sr=oc(),xr=lc(),Er=xc();Ec.exports={createFile:Sr.createFile,createFileSync:Sr.createFileSync,ensureFile:Sr.createFile,ensureFileSync:Sr.createFileSync,createLink:xr.createLink,createLinkSync:xr.createLinkSync,ensureLink:xr.createLink,ensureLinkSync:xr.createLinkSync,createSymlink:Er.createSymlink,createSymlinkSync:Er.createSymlinkSync,ensureSymlink:Er.createSymlink,ensureSymlinkSync:Er.createSymlinkSync}});var _r=v((P1,Cc)=>{function vd(e,{EOL:t=`
|
|
14
|
+
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let o=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+o}function bd(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}Cc.exports={stringify:vd,stripBom:bd}});var Pc=v((A1,Rc)=>{var it;try{it=ee()}catch{it=require("fs")}var Cr=ue(),{stringify:kc,stripBom:Oc}=_r();async function wd(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||it,n="throws"in t?t.throws:!0,i=await Cr.fromCallback(r.readFile)(e,t);i=Oc(i);let o;try{o=JSON.parse(i,t?t.reviver:null)}catch(s){if(n)throw s.message=`${e}: ${s.message}`,s;return null}return o}var Sd=Cr.fromPromise(wd);function xd(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||it,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 Ed(e,t,r={}){let n=r.fs||it,i=kc(t,r);await Cr.fromCallback(n.writeFile)(e,i,r)}var _d=Cr.fromPromise(Ed);function Cd(e,t,r={}){let n=r.fs||it,i=kc(t,r);return n.writeFileSync(e,i,r)}var kd={readFile:Sd,readFileSync:xd,writeFile:_d,writeFileSync:Cd};Rc.exports=kd});var qc=v((q1,Ac)=>{"use strict";var kr=Pc();Ac.exports={readJson:kr.readFile,readJsonSync:kr.readFileSync,writeJson:kr.writeFile,writeJsonSync:kr.writeFileSync}});var Or=v((M1,Tc)=>{"use strict";var Od=ue().fromCallback,At=ee(),Mc=require("path"),Fc=xe(),Rd=qe().pathExists;function Pd(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Mc.dirname(e);Rd(i,(o,s)=>{if(o)return n(o);if(s)return At.writeFile(e,t,r,n);Fc.mkdirs(i,a=>{if(a)return n(a);At.writeFile(e,t,r,n)})})}function Ad(e,...t){let r=Mc.dirname(e);if(At.existsSync(r))return At.writeFileSync(e,...t);Fc.mkdirsSync(r),At.writeFileSync(e,...t)}Tc.exports={outputFile:Od(Pd),outputFileSync:Ad}});var Dc=v((F1,Ic)=>{"use strict";var{stringify:qd}=_r(),{outputFile:Md}=Or();async function Fd(e,t,r={}){let n=qd(t,r);await Md(e,n,r)}Ic.exports=Fd});var Nc=v((T1,jc)=>{"use strict";var{stringify:Td}=_r(),{outputFileSync:Id}=Or();function Dd(e,t,r){let n=Td(t,r);Id(e,n,r)}jc.exports=Dd});var Lc=v((I1,Bc)=>{"use strict";var jd=ue().fromPromise,se=qc();se.outputJson=jd(Dc());se.outputJsonSync=Nc();se.outputJSON=se.outputJson;se.outputJSONSync=se.outputJsonSync;se.writeJSON=se.writeJson;se.writeJSONSync=se.writeJsonSync;se.readJSON=se.readJson;se.readJSONSync=se.readJsonSync;Bc.exports=se});var Jc=v((D1,zc)=>{"use strict";var Hc=ee(),Nd=require("path"),Bd=Jn().copySync,Gc=Rt().removeSync,Ld=xe().mkdirpSync,$c=xt();function $d(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=$c.checkPathsSync(e,t,"move");return $c.checkParentPathsSync(e,i,t,"move"),Ld(Nd.dirname(t)),Ud(e,t,n)}function Ud(e,t,r){if(r)return Gc(t),Uc(e,t,r);if(Hc.existsSync(t))throw new Error("dest already exists.");return Uc(e,t,r)}function Uc(e,t,r){try{Hc.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return Hd(e,t,r)}}function Hd(e,t,r){return Bd(e,t,{overwrite:r,errorOnExist:!0}),Gc(e)}zc.exports=$d});var Vc=v((j1,Wc)=>{"use strict";Wc.exports={moveSync:Jc()}});var Zc=v((N1,Qc)=>{"use strict";var Gd=ee(),zd=require("path"),Jd=Vn().copy,Kc=Rt().remove,Wd=xe().mkdirp,Vd=qe().pathExists,Yc=xt();function Yd(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;Yc.checkPaths(e,t,"move",(o,s)=>{if(o)return n(o);let{srcStat:a}=s;Yc.checkParentPaths(e,a,t,"move",c=>{if(c)return n(c);Wd(zd.dirname(t),d=>d?n(d):Xd(e,t,i,n))})})}function Xd(e,t,r,n){if(r)return Kc(t,i=>i?n(i):Xc(e,t,r,n));Vd(t,(i,o)=>i?n(i):o?n(new Error("dest already exists.")):Xc(e,t,r,n))}function Xc(e,t,r,n){Gd.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):Kd(e,t,r,n):n())}function Kd(e,t,r,n){Jd(e,t,{overwrite:r,errorOnExist:!0},o=>o?n(o):Kc(e,n))}Qc.exports=Yd});var tu=v((B1,eu)=>{"use strict";var Qd=ue().fromCallback;eu.exports={move:Qd(Zc())}});var ot=v((L1,Xn)=>{"use strict";Xn.exports={...St(),...Jn(),...Vn(),...tc(),..._c(),...Lc(),...xe(),...Vc(),...tu(),...Or(),...qe(),...Rt()};var ru=require("fs");Object.getOwnPropertyDescriptor(ru,"promises")&&Object.defineProperty(Xn.exports,"promises",{get(){return ru.promises}})});var iu=v(($1,nu)=>{"use strict";nu.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=v((U1,su)=>{var qt=iu(),ou={};for(let e of Object.keys(qt))ou[qt[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"]}};su.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),o=Math.max(t,r,n),s=o-i,a,c;o===i?a=0:t===o?a=(r-n)/s:r===o?a=2+(n-t)/s:n===o&&(a=4+(t-r)/s),a=Math.min(a*60,360),a<0&&(a+=360);let d=(i+o)/2;return o===i?c=0:d<=.5?c=s/(o+i):c=s/(2-o-i),[a,c*100,d*100]};E.rgb.hsv=function(e){let t,r,n,i,o,s=e[0]/255,a=e[1]/255,c=e[2]/255,d=Math.max(s,a,c),f=d-Math.min(s,a,c),p=function(y){return(d-y)/6/f+1/2};return f===0?(i=0,o=0):(o=f/d,t=p(s),r=p(a),n=p(c),s===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,o*100,d*100]};E.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=E.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,o*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),o=(1-t-i)/(1-i)||0,s=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};function Zd(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=ou[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(qt)){let o=qt[i],s=Zd(e,o);s<r&&(r=s,n=i)}return n};E.keyword.rgb=function(e){return qt[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,o=t*.2126+r*.7152+n*.0722,s=t*.0193+r*.1192+n*.9505;return[i*100,o*100,s*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 o=116*n-16,s=500*(r-n),a=200*(n-i);return[o,s,a]};E.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,o,s;if(r===0)return s=n*255,[s,s,s];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++)o=t+1/3*-(d-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,c[d]=s*255;return c};E.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;let s=(n+r)/2,a=n===0?2*i/(o+i):2*r/(n+r);return[t,a*100,s*100]};E.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*o),c=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,c,s];case 1:return[a,n,s];case 2:return[s,n,c];case 3:return[s,a,n];case 4:return[c,s,n];case 5:return[n,s,a]}};E.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),o,s;s=(2-r)*n;let a=(2-r)*i;return o=r*i,o/=a<=1?a:2-a,o=o||0,s/=2,[t,o*100,s*100]};E.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,o;i>1&&(r/=i,n/=i);let s=Math.floor(6*t),a=1-n;o=6*t-s,s&1&&(o=1-o);let c=r+o*(a-r),d,f,p;switch(s){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,o=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[o*255,s*255,a*255]};E.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,o,s;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,s=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*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,o=500*(t-r),s=200*(r-n);return[i,o,s]};E.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,o,s;o=(t+16)/116,i=r/500+o,s=o-n/200;let a=o**3,c=i**3,d=s**3;return o=a>.008856?a:(o-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,s=d>.008856?d:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};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 s=Math.sqrt(r*r+n*n);return[t,s,i]};E.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,o=r*Math.cos(i),s=r*Math.sin(i);return[t,o,s]};E.rgb.ansi16=function(e,t=null){let[r,n,i]=e,o=t===null?E.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(s+=60),s};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,o=(t>>2&1)*r*255;return[n,i,o]};E.ansi256.rgb=function(e){if(e>=232){let o=(e-232)*10+8;return[o,o,o]}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,o=n>>8&255,s=n&255;return[i,o,s]};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),o=Math.min(Math.min(t,r),n),s=i-o,a,c;return s<1?a=o/(1-s):a=0,s<=0?c=0:i===t?c=(r-n)/s%6:i===r?c=2+(n-t)/s:c=4+(t-r)/s,c/=6,c%=1,[c*360,s*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],o=t%1*6,s=o%1,a=1-s,c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,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]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,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,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*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 cu=v((H1,au)=>{var Rr=Kn();function ep(){let e={},t=Object.keys(Rr);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function tp(e){let t=ep(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(Rr[n]);for(let o=i.length,s=0;s<o;s++){let a=i[s],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}}return t}function rp(e,t){return function(r){return t(e(r))}}function np(e,t){let r=[t[e].parent,e],n=Rr[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=rp(Rr[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}au.exports=function(e){let t=tp(e),r={},n=Object.keys(t);for(let i=n.length,o=0;o<i;o++){let s=n[o];t[s].parent!==null&&(r[s]=np(s,t))}return r}});var lu=v((G1,uu)=>{var Qn=Kn(),ip=cu(),st={},op=Object.keys(Qn);function sp(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 ap(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 o=i.length,s=0;s<o;s++)i[s]=Math.round(i[s]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}op.forEach(e=>{st[e]={},Object.defineProperty(st[e],"channels",{value:Qn[e].channels}),Object.defineProperty(st[e],"labels",{value:Qn[e].labels});let t=ip(e);Object.keys(t).forEach(n=>{let i=t[n];st[e][n]=ap(i),st[e][n].raw=sp(i)})});uu.exports=st});var yu=v((z1,mu)=>{"use strict";var fu=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,hu=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},du=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},Pr=e=>e,pu=(e,t,r)=>[e,t,r],at=(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})},Zn,ct=(e,t,r,n)=>{Zn===void 0&&(Zn=lu());let i=n?10:0,o={};for(let[s,a]of Object.entries(Zn)){let c=s==="ansi16"?"ansi":s;s===t?o[c]=e(r,i):typeof a=="object"&&(o[c]=e(a[t],i))}return o};function cp(){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,o]of Object.entries(n))t[i]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[i]=t[i],e.set(o[0],o[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",at(t.color,"ansi",()=>ct(fu,"ansi16",Pr,!1)),at(t.color,"ansi256",()=>ct(hu,"ansi256",Pr,!1)),at(t.color,"ansi16m",()=>ct(du,"rgb",pu,!1)),at(t.bgColor,"ansi",()=>ct(fu,"ansi16",Pr,!0)),at(t.bgColor,"ansi256",()=>ct(hu,"ansi256",Pr,!0)),at(t.bgColor,"ansi16m",()=>ct(du,"rgb",pu,!0)),t}Object.defineProperty(mu,"exports",{enumerable:!0,get:cp})});var vu=v((J1,gu)=>{"use strict";var up=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,s="";do s+=e.substr(o,n-o)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return s+=e.substr(o),s},lp=(e,t,r,n)=>{let i=0,o="";do{let s=e[n-1]==="\r";o+=e.substr(i,(s?n-1:n)-i)+t+(s?`\r
|
|
15
|
+
`:`
|
|
16
|
+
`)+r,i=n+1,n=e.indexOf(`
|
|
17
|
+
`,i)}while(n!==-1);return o+=e.substr(i),o};gu.exports={stringReplaceAll:up,stringEncaseCRLFWithFirstIndex:lp}});var Eu=v((W1,xu)=>{"use strict";var fp=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,bu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,hp=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,dp=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,pp=new Map([["n",`
|
|
18
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Su(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):pp.get(e)||e}function mp(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let o of n){let s=Number(o);if(!Number.isNaN(s))r.push(s);else if(i=o.match(hp))r.push(i[2].replace(dp,(a,c,d)=>c?Su(c):d));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`)}return r}function yp(e){bu.lastIndex=0;let t=[],r;for(;(r=bu.exec(e))!==null;){let n=r[1];if(r[2]){let i=mp(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function wu(e,t){let r={};for(let i of t)for(let o of i.styles)r[o[0]]=i.inverse?null:o.slice(1);let n=e;for(let[i,o]of Object.entries(r))if(Array.isArray(o)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=o.length>0?n[i](...o):n[i]}return n}xu.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(fp,(o,s,a,c,d,f)=>{if(s)i.push(Su(s));else if(c){let p=i.join("");i=[],n.push(r.length===0?p:wu(e,r)(p)),r.push({inverse:a,styles:yp(c)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(wu(e,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let o=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(o)}return n.join("")}});var Au=v((V1,Pu)=>{"use strict";var Mt=yu(),{stdout:ti,stderr:ri}=sn(),{stringReplaceAll:gp,stringEncaseCRLFWithFirstIndex:vp}=vu(),{isArray:Ar}=Array,Cu=["ansi","ansi","ansi256","ansi16m"],ut=Object.create(null),bp=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=ti?ti.level:0;e.level=t.level===void 0?r:t.level},ni=class{constructor(t){return ku(t)}},ku=e=>{let t={};return bp(t,e),t.template=(...r)=>Ru(t.template,...r),Object.setPrototypeOf(t,qr.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=ni,t.template};function qr(e){return ku(e)}for(let[e,t]of Object.entries(Mt))ut[e]={get(){let r=Mr(this,ii(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};ut.visible={get(){let e=Mr(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Ou=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of Ou)ut[e]={get(){let{level:t}=this;return function(...r){let n=ii(Mt.color[Cu[t]][e](...r),Mt.color.close,this._styler);return Mr(this,n,this._isEmpty)}}};for(let e of Ou){let t="bg"+e[0].toUpperCase()+e.slice(1);ut[t]={get(){let{level:r}=this;return function(...n){let i=ii(Mt.bgColor[Cu[r]][e](...n),Mt.bgColor.close,this._styler);return Mr(this,i,this._isEmpty)}}}}var wp=Object.defineProperties(()=>{},{...ut,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),ii=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Mr=(e,t,r)=>{let n=(...i)=>Ar(i[0])&&Ar(i[0].raw)?_u(n,Ru(n,...i)):_u(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,wp),n._generator=e,n._styler=t,n._isEmpty=r,n},_u=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=gp(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
|
|
19
|
+
`);return o!==-1&&(t=vp(t,i,n,o)),n+t+i},ei,Ru=(e,...t)=>{let[r]=t;if(!Ar(r)||!Ar(r.raw))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let o=1;o<r.length;o++)i.push(String(n[o-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[o]));return ei===void 0&&(ei=Eu()),ei(e,i.join(""))};Object.defineProperties(qr.prototype,ut);var Fr=qr();Fr.supportsColor=ti;Fr.stderr=qr({level:ri?ri.level:0});Fr.stderr.supportsColor=ri;Pu.exports=Fr});var qu=v((oi,si)=>{(function(e,t){typeof oi=="object"&&typeof si<"u"?si.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(oi,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,N;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?N=w/12.92:N=Math.pow((w+.055)/1.055,2.4),.2126*b+.7152*I+.0722*N},setAlpha:function(h){return this._a=U(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=s(this._r,this._g,this._b);return{h:h.h*360,s:h.s,l:h.l,a:this._a}},toHslString:function(){var h=s(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:T[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(M,arguments)},darken:function(){return this._applyModification($,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(z,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(G,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,N=!1;return typeof u=="string"&&(u=It(u)),e(u)=="object"&&(pe(u.r)&&pe(u.g)&&pe(u.b)?(h=o(u.r,u.g,u.b),I=!0,N=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,N="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,N="hsl"),u.hasOwnProperty("a")&&(l=u.a)),l=U(l),{ok:I,format:u.format||N,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 o(u,h,l){return{r:P(u,255)*255,g:P(h,255)*255,b:P(l,255)*255}}function s(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,N=(g+w)/2;if(g==w)b=I=0;else{var J=g-w;switch(I=N>.5?J/(2-g-w):J/(g+w),g){case u:b=(h-l)/J+(h<l?6:0);break;case h:b=(l-u)/J+2;break;case l:b=(u-h)/J+4;break}b/=6}return{h:b,s:I,l:N}}function a(u,h,l){var g,w,b;u=P(u,360),h=P(h,100),l=P(l,100);function I(ye,ht,be){return be<0&&(be+=1),be>1&&(be-=1),be<1/6?ye+(ht-ye)*6*be:be<1/2?ht:be<2/3?ye+(ht-ye)*(2/3-be)*6:ye}if(h===0)g=w=b=l;else{var N=l<.5?l*(1+h):l+h-l*h,J=2*l-N;g=I(J,N,u+1/3),w=I(J,N,u),b=I(J,N,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,N=g,J=g-w;if(I=g===0?0:J/g,g==w)b=0;else{switch(g){case u:b=(h-l)/J+(h<l?6:0);break;case h:b=(l-u)/J+2;break;case l:b=(u-h)/J+4;break}b/=6}return{h:b,s:I,v:N}}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),N=l*(1-(1-w)*h),J=g%6,ye=[l,I,b,b,N,l][J],ht=[N,l,l,I,b,b][J],be=[b,b,N,l,l,I][J];return{r:ye*255,g:ht*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 M(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 $(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 z(u,h){var l=n(u).toHsl(),g=(l.h+h)%360;return l.h=g<0?360+g:g,n(l)}function G(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=[],N=1/h;h--;)I.push(n({h:g,s:w,v:b})),b=(b+N)%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,N,J;l=l||{},I=l.includeFallbackColors,N=l.level,J=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:N,size:J})||!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"},T=n.hexNames=F(k);function F(u){var h={};for(var l in u)u.hasOwnProperty(l)&&(h[u[l]]=l);return h}function U(u){return u=parseFloat(u),(isNaN(u)||u<0||u>1)&&(u=1),u}function P(u,h){j(u)&&(u="100%");var l=q(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 j(u){return typeof u=="string"&&u.indexOf(".")!=-1&&parseFloat(u)===1}function q(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 Te(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 It(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:Te(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:Te(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 Nu=v((Y1,ju)=>{var Ft=qu(),Iu={r:256,g:256,b:256,a:1},Du={h:360,s:1,v:1,a:1};function ci(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 ui(e,t,r,n){let i={};for(let o in t)t.hasOwnProperty(o)&&(i[o]=e[o]*r+t[o],i[o]=i[o]<0?i[o]+n[o]:n[o]!==1?i[o]%n[o]:i[o]);return i}function ai(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),o=ci(n,i,r),s=[e.color];for(let a=1;a<r;a++){let c=ui(o,n,a,Iu);s.push(Ft(c))}return s}function Mu(e,t,r,n){let i=e.color.toHsv(),o=t.color.toHsv();if(i.s===0||o.s===0)return ai(e,t,r);let s;if(typeof n=="boolean")s=n;else{let f=i.h<o.h&&o.h-i.h<180||i.h>o.h&&i.h-o.h>180;s=n==="long"&&f||n==="short"&&!f}let a=ci(i,o,r),c=[e.color],d;i.h<=o.h&&!s||i.h>=o.h&&s?d=o.h-i.h:s?d=360-o.h+i.h:d=360-i.h+o.h,a.h=Math.pow(-1,s?1:0)*Math.abs(d)/r;for(let f=1;f<r;f++){let p=ui(a,i,f,Du);c.push(Ft(p))}return c}function Fu(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 o=1;o<r;o++){let s=(t-1)*(e[o].pos-e[o-1].pos);n.push(Math.max(1,Math.round(s)))}let i=1;for(let o=r-1;o--;)i+=n[o];for(;i!==t;)if(i<t){let o=Math.min.apply(null,n);n[n.indexOf(o)]++,i++}else{let o=Math.max.apply(null,n);n[n.indexOf(o)]--,i--}return n}function Tu(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,o;for(let c=0,d=e.length;c<d-1;c++)if(t>=e[c].pos&&t<e[c+1].pos){i=e[c],o=e[c+1];break}i||(i=o=e[e.length-1]);let s=ci(i.color[r](),o.color[r](),(o.pos-i.pos)*100),a=ui(s,i.color[r](),(t-i.pos)*100,n);return Ft(a)}var lt=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,o=!1;this.stops=t.map((s,a)=>{let c=s.pos!==void 0;if(r^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let d=s.color!==void 0;if(!d&&(o||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(o=!d,s={color:d?Ft(s.color):null,colorLess:!d,pos:s.pos},s.pos<0||s.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(s.pos<i)throw new Error("Color stops positions are not ordered");i=s.pos}else s={color:Ft(s.color!==void 0?s.color:s),pos:a/(n-1)};return s}),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 lt(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 lt(t.concat(r.reverse()))}rgb(t){let r=Fu(this.stops,t),n=[];this.stops.forEach((i,o)=>{i.colorLess&&(i.color=ai(this.stops[o-1],this.stops[o+1],2)[1])});for(let i=0,o=this.stops.length;i<o-1;i++){let s=ai(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...s)}return n.push(this.stops[this.stops.length-1].color),n}hsv(t,r){let n=Fu(this.stops,t),i=[];this.stops.forEach((o,s)=>{o.colorLess&&(o.color=Mu(this.stops[s-1],this.stops[s+1],2,r)[1])});for(let o=0,s=this.stops.length;o<s-1;o++){let a=Mu(this.stops[o],this.stops[o+1],n[o],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 Tu(this.stops,t,"toRgb",Iu)}hsvAt(t){return Tu(this.stops,t,"toHsv",Du)}};ju.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 lt(e)}});var Hu=v((X1,Tr)=>{"use strict";var Lu=Au(),Sp=Nu(),Bu=/\s/g;function li(...e){let t=Sp.apply(this,e),r=(n,i)=>xp(n?n.toString():"",t,i);return r.multiline=(n,i)=>Ep(n?n.toString():"",t,i),r}var $u=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function xp(e,t,r){let n=Uu(r),i=Math.max(e.replace(Bu,"").length,t.stops.length),o=$u(t,n,i),s="";for(let a of e)s+=a.match(Bu)?a:Lu.hex(o.shift().toHex())(a);return s}function Ep(e,t,r){let n=Uu(r),i=e.split(`
|
|
20
|
+
`),o=Math.max.apply(null,i.map(c=>c.length).concat([t.stops.length])),s=$u(t,n,o),a=[];for(let c of i){let d=s.slice(0),f="";for(let p of c)f+=Lu.hex(d.shift().toHex())(p);a.push(f)}return a.join(`
|
|
21
|
+
`)}function Uu(e){let t={interpolation:"rgb",hsvSpin:"short",...e};if(e!==void 0&&typeof e!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if(typeof t.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof t.interpolation}\``);if(t.interpolation.toLowerCase()==="hsv"&&typeof t.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof t.hsvSpin}\``);return t}var Tt={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};Tr.exports=li;for(let e in Tt)Tr.exports[e]=t=>new li(Tt[e].colors)(t,Tt[e].options),Tr.exports[e].multiline=t=>new li(Tt[e].colors).multiline(t,Tt[e].options)});function ft(e=""){return Pp?pi.default.resolve(yi.default.sync(__dirname),"../../../",e):pi.default.resolve(yi.default.sync(__dirname),"../griddo-components",e)}function Ap(){let e=mi.default.sync("jsconfig.json",{cwd:ft()});return mi.default.sync("tsconfig.json",{cwd:ft()})||e}function qp(){let e=require(Ap());return Object.keys(e?.compilerOptions?.paths).reduce((t,r)=>{let[n]=r.split("/"),[i]=e&&e.compilerOptions&&e.compilerOptions.paths&&e.compilerOptions.paths[r],[o]=i.split("/*"),s=ft(o);return{...t,[n]:s}},{"@griddo-instance":`${ft()}/src/index.js`})}var pi,mi,yi,Pp,dy,Zu=Si(()=>{"use strict";pi=D(require("node:path")),mi=D(zr()),yi=D(dt()),Pp=__dirname.includes("node_modules"),dy=qp()});var nl={};Cl(nl,{CXDir:()=>jp,default:()=>Dp});var Ue,Dr,el,tl,Mp,Fp,Tp,Ip,rl,Dp,jp,il=Si(()=>{"use strict";Ue=D(require("node:path")),Dr=D(dt());Zu();el=Dr.default.sync(Ue.default.resolve(__dirname,"../..")),tl=Dr.default.sync(__dirname),Mp=Ue.default.resolve(Dr.default.sync(__dirname)),Fp=Ue.default.resolve(tl,"caches"),Tp=ft(),Ip=Ue.default.join(el,"exports/sites"),rl={proDomain:"pro-",CXDir:{EXPORTS:"__exports",CACHE:"__caches",CX:"__cx",SSG:"__ssg",COMPONENTS:"__components",ROOT:"__root"},paths:e=>({__caches:Ue.default.join(Fp,e||""),__components:Tp,__cx:tl,__exports:Ue.default.join(Ip,e||""),__root:el,__ssg:Mp})},Dp=rl,jp=rl.CXDir});var vl=D(require("node:fs")),Br=D(require("node:path")),bl=D(dt());var Js=D(_n()),Ws=D(ur()),An=class{user;password;baseUrl;headers;constructor(){this.user=process.env.botEmail,this.password=process.env.botPassword,this.baseUrl=process.env.API_URL}async login(){try{let t=await(0,Js.default)({url:`${this.baseUrl}/login_check`,method:"POST",headers:{"Content-Type":"application/json"},data:{username:this.user,password:this.password}});if(t.status===200){let{data:{token:r}}=t;this.headers={Authorization:"bearer "+r,"Cache-Control":"no-store"}}return this.headers}catch{console.error(Ws.default.red(`
|
|
22
|
+
\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
|
+
\u2502 Access credentials failure \u2502
|
|
24
|
+
\u2502 Check that the login details are correct in your .env file \u2502
|
|
25
|
+
\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)}}},lr=new An;var fl=D(_n()),hl=D(ur()),dl=D(Mn());var ol=D(require("node:crypto")),jr=D(require("node:fs")),gi=D(require("node:path")),sl=D(ot());var Np=D(ot());var Rp=D(ot());var Yu=D(require("node:fs")),Ir=D(require("node:path")),Xu=D(ot());var _p=D(ur()),Gu=D(Mn()),zu=D(ot()),Cp=D(Hu()),Ju=D(dt());var Q1=Ee();Gu.default.config();var Z1=!!process.env.GRIDDO_DEBUG_LOGS&&!!JSON.parse(process.env.GRIDDO_DEBUG_LOGS),kp=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),ey=Ju.default.sync();function Wu(e){let t=[];return zu.default.readdirSync(e).forEach(n=>{let i=`${e}/${n}`;t.push(i)}),t}function fi(e){kp&&console.info(e.replace(/(\s)\s+/g,"$1"))}function Vu(e){return new Promise(t=>setTimeout(t,e))}function hi(e,t=3){return(e/1e3).toFixed(t)}function di(e){return"site"in e&&e.site?e?.site:void 0}var Ku=Ee();function Qu(e){let{__caches:t}=Ku.paths(e);return Op({basePath:Ir.default.join(t,"store"),withSizeProp:!1})}function*Op(e){let{basePath:t,withSizeProp:r}=e||{},{__cx:n}=Ku.paths(),i=t||Ir.default.join(n,"store"),o=Wu(i).filter(s=>Ir.default.extname(s)===".json");for(let s of o)try{let a=Xu.default.readJsonSync(s,{encoding:"utf-8"});if(r){let c=Yu.default.statSync(s);a.size=c.size/1024}a.path&&(yield a)}catch(a){console.error(`Error: The file ${s} doesn't exist`,a)}}var fy=Ee();var by=Ee();function Ee(){try{return(il(),kl(nl)).default}catch{console.log("Error while reading configuration file"),process.exit(1)}}var Bp=Ee();function al(e){let{__cx:t}=Bp.paths(),r=gi.default.join(t,"apiCache"),n=ol.default.createHash("sha256");return n.update(JSON.stringify(e)),`${r}/${n.digest("hex")}`}function cl(e,t){let r=typeof t=="string"?t:JSON.stringify(t),n=al(e),i=gi.default.dirname(n);jr.default.existsSync(i)||jr.default.mkdirSync(i,{recursive:!0}),jr.default.writeFileSync(n,r,"utf8")}function ul(e){try{let t=al(e);return sl.default.readJSONSync(t,{encoding:"utf-8"})}catch{return null}}dl.default.config();var{env:{RETRY_WAIT_SECONDS:Lp="4",RETRY_ATTEMPTS:ll="4"}}=process;async function vi(e,t,r=""){let{endpoint:n,body:i,cacheKey:o="",attempt:s=1,headers:a}=e,c={endpoint:n,body:i,headers:a,cacheKey:o};if(o){let d=new Date,f=ul(c);if(f){let p=di(f),y=p?`site: ${p}`:"",m=hi(new Date().getTime()-d.getTime());return fi(`${t} (cache) ${y} ${n} - ${m}s ${r}`),f}}try{let d=new Date,{data:f}=await(0,fl.default)({url:n,method:t,headers:Object.assign({},a,lr.headers),data:i}),p=di(f),y=p?`site: ${p}`:"",m=hi(new Date().getTime()-d.getTime());return fi(`${t} (fetch) ${y} ${n} - ${m}s ${r}`),cl(c,f),f}catch(d){let f=d;return f.response?.status===404?null:(s>parseInt(ll)&&(console.log(`
|
|
27
|
+
Max attempts ${ll} reached
|
|
28
|
+
--------------------------------------
|
|
29
|
+
- ${t.toUpperCase()} ${n}
|
|
30
|
+
- BODY: ${JSON.stringify(i)}
|
|
31
|
+
- HEADERS: ${JSON.stringify(a)}
|
|
32
|
+
- RESPONSE: ${f.response?.status,JSON.stringify(f.response?.data)}
|
|
33
|
+
--------------------------------------
|
|
34
|
+
`),process.exit(1)),f.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(f,null,2)),process.exit(1)),$p(f,{callInfo:{endpoint:n,body:i}}),console.warn(`Waiting for retry: ${t}`,n),await Vu(parseInt(Lp)*1e3),vi({endpoint:n,body:i,headers:a,cacheKey:o,attempt:s+1},t,r))}}async function pl(e){return await vi(e,"get")}async function ml(e){let{endpoint:t,body:r,headers:n}=e,i=t.endsWith("/distributor")&&`# Distributor body: ${JSON.stringify(r)} lang: ${JSON.stringify(n?.lang)}`;return await vi(e,"post",i||"")}function $p(e,t){let{response:r,message:n,stack:i}=e,{callInfo:o}=t,{status:s,statusText:a,data:c}=r||{},d=[];for(let m of Object.keys(o))d.push(`${m}: ${typeof o[m]=="object"?JSON.stringify(o[m]):o[m]}`);let f=d.join(`
|
|
35
|
+
`),p=r?`Code: ${s} - ${a}
|
|
36
|
+
Response: ${JSON.stringify(c)}`:"",y=`${n}
|
|
37
|
+
${i}`;console.warn(hl.default.bold.red(`
|
|
38
|
+
=============
|
|
39
|
+
|
|
40
|
+
{ Call info }
|
|
41
|
+
${f}
|
|
42
|
+
|
|
43
|
+
{ API Response }
|
|
44
|
+
${p}
|
|
45
|
+
|
|
46
|
+
{ Error details }
|
|
47
|
+
${y}
|
|
48
|
+
|
|
49
|
+
=============
|
|
50
|
+
`))}var Up=process.env.API_URL,Hp={GET_ALL:`${Up}/domains`},Nr=class{static async getAll(){let{GET_ALL:t}=Hp;return await pl({endpoint:t})}};async function yl(){await lr.login();let e=await Nr.getAll();return Gp(e)}function Gp(e){let t=e.filter(({slug:r})=>!!r).map(({slug:r})=>r.replace("/",""));return[...new Set(t)]}var bi=D(require("node:fs")),wi=D(require("node:path"));var zp=process.env.API_URL;async function Jp(e){let{title:t,description:r,image:n,pageId:i,languageId:o,siteId:s,url:a,content:c,template:d}=e;return await ml({endpoint:`${zp}/search`,body:{title:t,description:r,image:n,pageId:i,languageId:o,siteId:s,url:a,template:d,content:Wp(c)}})}function Wp(e){let t=Vp(["meta","link","style","script","noscript","nav","header","footer"],e),r=Yp(t);return Xp(r)}function Vp(e,t){let r=t;return e.forEach(n=>{r=r.replace(new RegExp(`<${n}.*?>.*?</${n}>`,"gis")," ").replace(new RegExp(`(<${n}([^>]+)>)`,"gis")," ")}),r}function Yp(e){return e.replace(/(<([^>]+)>)/gis," ")}function Xp(e){return e.replace(/\s+/g," ")}async function gl(e,t){let r=Ee(),{__caches:n}=r.paths(t),i=wi.default.join(n,"store");if(!bi.default.existsSync(i)){console.log(`Skipping uploading content to the search endpoint for the domain ${t}, it has not exported sites.`);return}let o=Qu(t);for await(let s of o){let{context:{page:a,openGraph:c}}=s,{compose:d}=a.fullPath,f=wi.default.resolve(`${e}/${d}/index.html`),p=bi.default.readFileSync(f).toString(),y={siteId:a.site,pageId:a.id,title:a.title,languageId:a.language,url:a.fullUrl,template:a.template.templateType||a.templateId,description:c.description,image:c.image,content:p};await Jp(y)}}var Kp=JSON.parse(process.env.GRIDDO_SEARCH_FEATURE||"false"),Qp=bl.default.sync(Br.default.resolve(__dirname,"../..")),Zp=Br.default.resolve(Qp,"exports/sites");async function em(){if(!Kp)return;let e=await yl();for(let t of e){let r=Br.default.resolve(Zp,t,"dist");vl.default.existsSync(r)&&await gl(r,t)}}em().catch(e=>{console.error("Error",e?.stdout?.toString()||e),process.exit(1)});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { APIResponses, GetAPI, PostAPI, PutAPI } from "../types/api";
|
|
2
|
+
/**
|
|
3
|
+
* Make a GET request to the Griddo API.
|
|
4
|
+
*
|
|
5
|
+
* @template T Response Type returned.
|
|
6
|
+
* @returns A promise that is resolved with the data from the API response.
|
|
7
|
+
*/
|
|
8
|
+
declare function getApi<T extends APIResponses>(props: GetAPI): Promise<T>;
|
|
9
|
+
/**
|
|
10
|
+
* Make a PUT request to the Griddo API.
|
|
11
|
+
*
|
|
12
|
+
* @template T Response Type returned.
|
|
13
|
+
* @returns A promise that is resolved with the data from the API response.
|
|
14
|
+
*/
|
|
15
|
+
declare function putApi<T extends APIResponses>(props: PutAPI): Promise<T>;
|
|
16
|
+
/**
|
|
17
|
+
* Make a POST request to the Griddo API.
|
|
18
|
+
*
|
|
19
|
+
* @template T Response Type returned.
|
|
20
|
+
* @returns A promise that is resolved with the data from the API response.
|
|
21
|
+
*/
|
|
22
|
+
declare function postApi<T extends APIResponses>(props: PostAPI): Promise<T>;
|
|
23
|
+
export { getApi as get, postApi as post, putApi as put };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Petition } from "../types/global";
|
|
2
|
+
import type { SiteHash } from "../types/sites";
|
|
3
|
+
/**
|
|
4
|
+
* Creates an `apiCache` dir to store pages fetched from them API.
|
|
5
|
+
*/
|
|
6
|
+
declare function createAPICacheDir(): void;
|
|
7
|
+
/**
|
|
8
|
+
* Generate a filename with a hash using a string.
|
|
9
|
+
*
|
|
10
|
+
* @todo Merge with generateFilenameWithHash
|
|
11
|
+
* @param data A string to create a sha256 based on.
|
|
12
|
+
*/
|
|
13
|
+
declare function createSha256(data: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* Save a file using a hash name.
|
|
16
|
+
*
|
|
17
|
+
* @param petition An object.
|
|
18
|
+
* @param content Content to be saved.
|
|
19
|
+
*/
|
|
20
|
+
declare function saveCache<T>(petition: Petition, content: T): void;
|
|
21
|
+
/**
|
|
22
|
+
* Search in the `apiCache` dir for a file using the petition as hash generator.
|
|
23
|
+
* Return the file content if found or null if not.
|
|
24
|
+
*
|
|
25
|
+
* @param petition An object
|
|
26
|
+
*/
|
|
27
|
+
declare function searchCacheData<T>(petition: Petition): T | null;
|
|
28
|
+
/**
|
|
29
|
+
* Update (write) the site hash file.
|
|
30
|
+
*
|
|
31
|
+
* @param siteId The id of the site.
|
|
32
|
+
* @param siteHash The has of the site.
|
|
33
|
+
*/
|
|
34
|
+
declare function updatedSiteHash(siteId: number, siteHash: SiteHash): string;
|
|
35
|
+
export { createAPICacheDir, createSha256, saveCache, searchCacheData, updatedSiteHash, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Download all data: sites, pages etc.. from the instance private Griddo API.
|
|
3
|
+
* Then you can use the generator funcion `getBuildPagesFromStore()` to get the pages and
|
|
4
|
+
* `getBuildMetadata()` to get build and sites metadata as objects. Both from
|
|
5
|
+
* exporter utils sites dir.
|
|
6
|
+
*/
|
|
7
|
+
declare function createBuildData(domain: string): Promise<void>;
|
|
8
|
+
export { createBuildData };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { MakeDirectoryOptions } from "fs-extra";
|
|
3
|
+
/**
|
|
4
|
+
* Remove an empty directory from the basePath recursively.
|
|
5
|
+
* If the directory has only .xml files it will handle as empty too (empty site)
|
|
6
|
+
*
|
|
7
|
+
* @param baseDir - The base directory.
|
|
8
|
+
*/
|
|
9
|
+
declare const clearEmptyDirs: (baseDir: string) => void;
|
|
10
|
+
/**
|
|
11
|
+
* Creates multiple directories.
|
|
12
|
+
*
|
|
13
|
+
* @param dirs - An array of directory paths.
|
|
14
|
+
* @param options - Same option as `fs.mkdirSync()`
|
|
15
|
+
*/
|
|
16
|
+
declare function createDirsSync(dirs: Array<string>, options?: MakeDirectoryOptions): void;
|
|
17
|
+
/**
|
|
18
|
+
* Copy multiple directories with backup option.
|
|
19
|
+
*
|
|
20
|
+
* @param src - Source directory.
|
|
21
|
+
* @param dst - Destination directory.
|
|
22
|
+
* @param dirs - Directories to copy.
|
|
23
|
+
* @param options.withBackup - Create a previous backup before copy.
|
|
24
|
+
*/
|
|
25
|
+
declare function copyDirsSync(src: string, dst: string, dirs: Array<string>, options?: {
|
|
26
|
+
withBackup: boolean;
|
|
27
|
+
}): void;
|
|
28
|
+
/**
|
|
29
|
+
* Move artifacts between CX valid directories.
|
|
30
|
+
*
|
|
31
|
+
* @param src - Source directory.
|
|
32
|
+
* @param dst - Destination directory.
|
|
33
|
+
* @param dirs - Directories to move.
|
|
34
|
+
* @param options - Options.
|
|
35
|
+
*/
|
|
36
|
+
declare function moveDirsSync(src: string, dst: string, dirs: Array<string>, options?: {
|
|
37
|
+
withBackup?: boolean;
|
|
38
|
+
override?: boolean;
|
|
39
|
+
}): void;
|
|
40
|
+
/**
|
|
41
|
+
* Remove directories from `basePath` directory.
|
|
42
|
+
*
|
|
43
|
+
* @param basePath - Base directory.
|
|
44
|
+
* @param dirs - Directory to remove.
|
|
45
|
+
*/
|
|
46
|
+
declare function removeDirsSync(basePath: string, dirs: Array<string>): void;
|
|
47
|
+
declare function removeVirtualPagesFromStore(): Promise<void>;
|
|
48
|
+
export { clearEmptyDirs, copyDirsSync, createDirsSync, moveDirsSync, removeDirsSync, removeVirtualPagesFromStore, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if the environment is secure to launch a render.
|
|
3
|
+
* If something fails then log an error message and exit from the process.
|
|
4
|
+
* Otherwise just return true.
|
|
5
|
+
*/
|
|
6
|
+
declare function checkRenderHealthOrExit(): boolean;
|
|
7
|
+
export { checkRenderHealthOrExit };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const IS_COMPONENT_LIBRARY: boolean;
|
|
2
|
+
declare const PROJECT_ALIASES: {
|
|
3
|
+
"@griddo-instance": string;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Returns the instance or monorepo paths.
|
|
7
|
+
*
|
|
8
|
+
* @param customPath The path for the instance components
|
|
9
|
+
*/
|
|
10
|
+
declare function resolveComponentsPath(customPath?: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* Return the instance or monorepo components {t|j}sconfig.json file.
|
|
13
|
+
*/
|
|
14
|
+
declare function getComponentsJSConfig(): string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Get the instance webpack aliases
|
|
17
|
+
*/
|
|
18
|
+
declare function getComponentsLibAliases(): {
|
|
19
|
+
"@griddo-instance": string;
|
|
20
|
+
};
|
|
21
|
+
export { IS_COMPONENT_LIBRARY, PROJECT_ALIASES, getComponentsJSConfig, getComponentsLibAliases, resolveComponentsPath, };
|