adobe-jsx
Version:
command line tool to execute adobe extendscript .jsx file
12 lines • 55 kB
JavaScript
import K from"node:fs/promises";import at from"node:os";import Ce from"node:path";import lt from"util";import ct from"path";import ht from"fs";import Ft from"os";import Ct from"tty";import{constants as ft}from"node:fs";import Et from"node:child_process";import{promisify as dt}from"node:util";var fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pt(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function Ee(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var de=Ee(lt),gt=ct,mt=ht,bt=Ee(Ft),ke=Ee(Ct);function pe(t,e){return t(e={exports:{}},e.exports),e.exports}var ge,$e=(ge=Object.freeze({__proto__:null,default:[{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"Solano CI",constant:"TDDIUM",env:"TDDIUM",pr:"TDDIUM_PR_ID",deprecated:!0},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Team Foundation Server",constant:"TFS",env:"TF_BUILD"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}}]}))&&ge.default||ge,re=pe(function(t,e){var u=process.env;function D(r){return typeof r=="string"?!!u[r]:Object.keys(r).every(function(n){return u[n]===r[n]})}Object.defineProperty(e,"_vendors",{value:$e.map(function(r){return r.constant})}),e.name=null,e.isPR=null,$e.forEach(function(r){var n=(Array.isArray(r.env)?r.env:[r.env]).every(function(o){return D(o)});if(e[r.constant]=n,n)switch(e.name=r.name,typeof r.pr){case"string":e.isPR=!!u[r.pr];break;case"object":"env"in r.pr?e.isPR=r.pr.env in u&&u[r.pr.env]!==r.pr.ne:"any"in r.pr?e.isPR=r.pr.any.some(function(o){return!!u[o]}):e.isPR=D(r.pr);break;default:e.isPR=null}}),e.isCI=!!(u.CI||u.CONTINUOUS_INTEGRATION||u.BUILD_NUMBER||u.RUN_ID||e.name)}),Te=(re.name,re.isPR,re.isCI,!1),Re=!1,Le=!1,Z="development",yt=typeof window<"u",ne="",xe=!1;function me(t){return!(!t||t==="false")}typeof process<"u"&&(process.platform&&(ne=String(process.platform)),process.stdout&&(Le=me(process.stdout.isTTY)),Te=Boolean(re.isCI),process.env&&(process.env.NODE_ENV&&(Z=process.env.NODE_ENV),Re=me(process.env.DEBUG),xe=me(process.env.MINIMAL)));var N={browser:yt,test:Z==="test",dev:Z==="development"||Z==="dev",production:Z==="production",debug:Re,ci:Te,tty:Le,minimal:void 0,minimalCLI:void 0,windows:/^win/i.test(ne),darwin:/^darwin/i.test(ne),linux:/^linux/i.test(ne)};N.minimal=xe||N.ci||N.test||!N.tty,N.minimalCLI=N.minimal;var be=Object.freeze(N);const m={};m[m.Fatal=0]="Fatal",m[m.Error=0]="Error",m[m.Warn=1]="Warn",m[m.Log=2]="Log",m[m.Info=3]="Info",m[m.Success=3]="Success",m[m.Debug=4]="Debug",m[m.Trace=5]="Trace",m[m.Silent=-1/0]="Silent",m[m.Verbose=1/0]="Verbose";var Bt={silent:{level:-1},fatal:{level:m.Fatal},error:{level:m.Error},warn:{level:m.Warn},log:{level:m.Log},info:{level:m.Info},success:{level:m.Success},debug:{level:m.Debug},trace:{level:m.Trace},verbose:{level:m.Trace},ready:{level:m.Info},start:{level:m.Info}};function vt(t){return e=t,Object.prototype.toString.call(e)==="[object Object]"&&!(!t.message&&!t.args)&&!t.stack;var e}let ye=!1;const Pe=[];class A{constructor(e={}){this._reporters=e.reporters||[],this._types=e.types||Bt,this.level=e.level!==void 0?e.level:3,this._defaults=e.defaults||{},this._async=e.async!==void 0?e.async:void 0,this._stdout=e.stdout,this._stderr=e.stderr,this._mockFn=e.mockFn,this._throttle=e.throttle||1e3,this._throttleMin=e.throttleMin||5;for(const u in this._types){const D={type:u,...this._types[u],...this._defaults};this[u]=this._wrapLogFn(D),this[u].raw=this._wrapLogFn(D,!0)}this._mockFn&&this.mockTypes(),this._lastLogSerialized=void 0,this._lastLog=void 0,this._lastLogTime=void 0,this._lastLogCount=0,this._throttleTimeout=void 0}get stdout(){return this._stdout||console._stdout}get stderr(){return this._stderr||console._stderr}create(e){return new A(Object.assign({reporters:this._reporters,level:this.level,types:this._types,defaults:this._defaults,stdout:this._stdout,stderr:this._stderr,mockFn:this._mockFn},e))}withDefaults(e){return this.create({defaults:Object.assign({},this._defaults,e)})}withTag(e){return this.withDefaults({tag:this._defaults.tag?this._defaults.tag+":"+e:e})}addReporter(e){return this._reporters.push(e),this}removeReporter(e){if(e){const u=this._reporters.indexOf(e);if(u>=0)return this._reporters.splice(u,1)}else this._reporters.splice(0);return this}setReporters(e){return this._reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const e in this._types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}restoreConsole(){for(const e in this._types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapStd(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}_wrapStream(e,u){e&&(e.__write||(e.__write=e.write),e.write=D=>{this[u].raw(String(D).trim())})}restoreStd(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){ye=!0}resumeLogs(){ye=!1;const e=Pe.splice(0);for(const u of e)u[0]._logFn(u[1],u[2])}mockTypes(e){if(this._mockFn=e||this._mockFn,typeof this._mockFn=="function")for(const u in this._types)this[u]=this._mockFn(u,this._types[u])||this[u],this[u].raw=this[u]}_wrapLogFn(e,u){return(...D)=>{if(!ye)return this._logFn(e,D,u);Pe.push([this,e,D,u])}}_logFn(e,u,D){if(e.level>this.level)return!!this._async&&Promise.resolve(!1);const r=Object.assign({date:new Date,args:[]},e);!D&&u.length===1&&vt(u[0])?Object.assign(r,u[0]):r.args=Array.from(u),r.message&&(r.args.unshift(r.message),delete r.message),r.additional&&(Array.isArray(r.additional)||(r.additional=r.additional.split(`
`)),r.args.push(`
`+r.additional.join(`
`)),delete r.additional),r.type=typeof r.type=="string"?r.type.toLowerCase():"",r.tag=typeof r.tag=="string"?r.tag.toLowerCase():"";const n=(s=!1)=>{const i=this._lastLogCount-this._throttleMin;if(this._lastLog&&i>0){const h=[...this._lastLog.args];i>1&&h.push(`(repeated ${i} times)`),this._log({...this._lastLog,args:h}),this._lastLogCount=1}if(s){if(this._lastLog=r,this._async)return this._logAsync(r);this._log(r)}};clearTimeout(this._throttleTimeout);const o=this._lastLogTime?r.date-this._lastLogTime:0;if(this._lastLogTime=r.date,o<this._throttle)try{const s=JSON.stringify([r.type,r.tag,r.args]),i=this._lastLogSerialized===s;if(this._lastLogSerialized=s,i&&(this._lastLogCount++,this._lastLogCount>this._throttleMin))return void(this._throttleTimeout=setTimeout(n,this._throttle))}catch{}n(!0)}_log(e){for(const u of this._reporters)u.log(e,{async:!1,stdout:this.stdout,stderr:this.stderr})}_logAsync(e){return Promise.all(this._reporters.map(u=>u.log(e,{async:!0,stdout:this.stdout,stderr:this.stderr})))}}function je(t){const e=process.cwd()+gt.sep;return t.split(`
`).splice(1).map(u=>u.trim().replace("file://","").replace(e,""))}A.prototype.add=A.prototype.addReporter,A.prototype.remove=A.prototype.removeReporter,A.prototype.clear=A.prototype.removeReporter,A.prototype.withScope=A.prototype.withTag,A.prototype.mock=A.prototype.mockTypes,A.prototype.pause=A.prototype.pauseLogs,A.prototype.resume=A.prototype.resumeLogs;var _t=pe(function(t,e){t.exports=function(){var u="millisecond",D="second",r="minute",n="hour",o="day",s="week",i="month",h="quarter",l="year",g=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,y=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M=function(E,F,a){var f=String(E);return!f||f.length>=F?E:""+Array(F+1-f.length).join(a)+E},k={s:M,z:function(E){var F=-E.utcOffset(),a=Math.abs(F),f=Math.floor(a/60),C=a%60;return(F<=0?"+":"-")+M(f,2,"0")+":"+M(C,2,"0")},m:function(E,F){var a=12*(F.year()-E.year())+(F.month()-E.month()),f=E.clone().add(a,i),C=F-f<0,p=E.clone().add(a+(C?-1:1),i);return Number(-(a+(F-f)/(C?f-p:p-f))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:i,y:l,w:s,d:o,D:"date",h:n,m:r,s:D,ms:u,Q:h}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},P={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},L="en",$={};$[L]=P;var he=function(E){return E instanceof ue},te=function(E,F,a){var f;if(!E)return L;if(typeof E=="string")$[E]&&(f=E),F&&($[E]=F,f=E);else{var C=E.name;$[C]=E,f=C}return!a&&f&&(L=f),f||!a&&L},w=function(E,F){if(he(E))return E.clone();var a=typeof F=="object"?F:{};return a.date=E,a.args=arguments,new ue(a)},b=k;b.l=te,b.i=he,b.w=function(E,F){return w(E,{locale:F.$L,utc:F.$u,$offset:F.$offset})};var ue=function(){function E(a){this.$L=this.$L||te(a.locale,null,!0),this.parse(a)}var F=E.prototype;return F.parse=function(a){this.$d=function(f){var C=f.date,p=f.utc;if(C===null)return new Date(NaN);if(b.u(C))return new Date;if(C instanceof Date)return new Date(C);if(typeof C=="string"&&!/Z$/i.test(C)){var d=C.match(g);if(d)return p?new Date(Date.UTC(d[1],d[2]-1,d[3]||1,d[4]||0,d[5]||0,d[6]||0,d[7]||0)):new Date(d[1],d[2]-1,d[3]||1,d[4]||0,d[5]||0,d[6]||0,d[7]||0)}return new Date(C)}(a),this.init()},F.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},F.$utils=function(){return b},F.isValid=function(){return this.$d.toString()!=="Invalid Date"},F.isSame=function(a,f){var C=w(a);return this.startOf(f)<=C&&C<=this.endOf(f)},F.isAfter=function(a,f){return w(a)<this.startOf(f)},F.isBefore=function(a,f){return this.endOf(f)<w(a)},F.$g=function(a,f,C){return b.u(a)?this[f]:this.set(C,a)},F.year=function(a){return this.$g(a,"$y",l)},F.month=function(a){return this.$g(a,"$M",i)},F.day=function(a){return this.$g(a,"$W",o)},F.date=function(a){return this.$g(a,"$D","date")},F.hour=function(a){return this.$g(a,"$H",n)},F.minute=function(a){return this.$g(a,"$m",r)},F.second=function(a){return this.$g(a,"$s",D)},F.millisecond=function(a){return this.$g(a,"$ms",u)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(a,f){var C=this,p=!!b.u(f)||f,d=b.p(a),B=function(Y,I){var U=b.w(C.$u?Date.UTC(C.$y,I,Y):new Date(C.$y,I,Y),C);return p?U:U.endOf(o)},O=function(Y,I){return b.w(C.toDate()[Y].apply(C.toDate("s"),(p?[0,0,0,0]:[23,59,59,999]).slice(I)),C)},v=this.$W,S=this.$M,j=this.$D,x="set"+(this.$u?"UTC":"");switch(d){case l:return p?B(1,0):B(31,11);case i:return p?B(1,S):B(0,S+1);case s:var J=this.$locale().weekStart||0,Q=(v<J?v+7:v)-J;return B(p?j-Q:j+(6-Q),S);case o:case"date":return O(x+"Hours",0);case n:return O(x+"Minutes",1);case r:return O(x+"Seconds",2);case D:return O(x+"Milliseconds",3);default:return this.clone()}},F.endOf=function(a){return this.startOf(a,!1)},F.$set=function(a,f){var C,p=b.p(a),d="set"+(this.$u?"UTC":""),B=(C={},C.day=d+"Date",C.date=d+"Date",C[i]=d+"Month",C[l]=d+"FullYear",C[n]=d+"Hours",C[r]=d+"Minutes",C[D]=d+"Seconds",C[u]=d+"Milliseconds",C)[p],O=p===o?this.$D+(f-this.$W):f;if(p===i||p===l){var v=this.clone().set("date",1);v.$d[B](O),v.init(),this.$d=v.set("date",Math.min(this.$D,v.daysInMonth())).toDate()}else B&&this.$d[B](O);return this.init(),this},F.set=function(a,f){return this.clone().$set(a,f)},F.get=function(a){return this[b.p(a)]()},F.add=function(a,f){var C,p=this;a=Number(a);var d=b.p(f),B=function(S){var j=w(p);return b.w(j.date(j.date()+Math.round(S*a)),p)};if(d===i)return this.set(i,this.$M+a);if(d===l)return this.set(l,this.$y+a);if(d===o)return B(1);if(d===s)return B(7);var O=(C={},C[r]=6e4,C[n]=36e5,C[D]=1e3,C)[d]||1,v=this.$d.getTime()+a*O;return b.w(v,this)},F.subtract=function(a,f){return this.add(-1*a,f)},F.format=function(a){var f=this;if(!this.isValid())return"Invalid Date";var C=a||"YYYY-MM-DDTHH:mm:ssZ",p=b.z(this),d=this.$locale(),B=this.$H,O=this.$m,v=this.$M,S=d.weekdays,j=d.months,x=function(I,U,Fe,De){return I&&(I[U]||I(f,C))||Fe[U].substr(0,De)},J=function(I){return b.s(B%12||12,I,"0")},Q=d.meridiem||function(I,U,Fe){var De=I<12?"AM":"PM";return Fe?De.toLowerCase():De},Y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:v+1,MM:b.s(v+1,2,"0"),MMM:x(d.monthsShort,v,j,3),MMMM:x(j,v),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:x(d.weekdaysMin,this.$W,S,2),ddd:x(d.weekdaysShort,this.$W,S,3),dddd:S[this.$W],H:String(B),HH:b.s(B,2,"0"),h:J(1),hh:J(2),a:Q(B,O,!0),A:Q(B,O,!1),m:String(O),mm:b.s(O,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:p};return C.replace(y,function(I,U){return U||Y[I]||p.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(a,f,C){var p,d=b.p(f),B=w(a),O=6e4*(B.utcOffset()-this.utcOffset()),v=this-B,S=b.m(this,B);return S=(p={},p[l]=S/12,p[i]=S,p[h]=S/3,p[s]=(v-O)/6048e5,p.day=(v-O)/864e5,p[n]=v/36e5,p[r]=v/6e4,p[D]=v/1e3,p)[d]||v,C?S:b.a(S)},F.daysInMonth=function(){return this.endOf(i).$D},F.$locale=function(){return $[this.$L]},F.locale=function(a,f){if(!a)return this.$L;var C=this.clone(),p=te(a,f,!0);return p&&(C.$L=p),C},F.clone=function(){return b.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},E}();return w.prototype=ue.prototype,w.extend=function(E,F){return E(F,ue,w),w},w.locale=te,w.isDayjs=he,w.unix=function(E){return w(1e3*E)},w.en=$[L],w.Ls=$,w}()});const At={dateFormat:"HH:mm:ss",formatOptions:{date:!0,colors:!1,compact:!0}},Ue=t=>t?`[${t}]`:"";class Be{constructor(e){this.options=Object.assign({},At,e)}formatStack(e){return" "+je(e).join(`
`)}formatArgs(e){const u=e.map(D=>D&&typeof D.stack=="string"?D.message+`
`+this.formatStack(D.stack):D);return typeof de.formatWithOptions=="function"?de.formatWithOptions(this.options.formatOptions,...u):de.format(...u)}formatDate(e){return this.options.formatOptions.date?function(u,D){return _t(D).format(u)}(this.options.dateFormat,e):""}filterAndJoin(e){return e.filter(u=>u).join(" ")}formatLogObj(e){const u=this.formatArgs(e.args);return this.filterAndJoin([Ue(e.type),Ue(e.tag),u])}log(e,{async:u,stdout:D,stderr:r}={}){return function(n,o,s="default"){const i=o.__write||o.write;switch(s){case"async":return new Promise(h=>{i.call(o,n)===!0?h():o.once("drain",()=>{h()})});case"sync":return mt.writeSync(o.fd,n);default:return i.call(o,n)}}(this.formatLogObj(e,{width:D.columns||0})+`
`,e.level<2?r:D,u?"async":"default")}}var wt=t=>typeof t=="string"?t.replace((({onlyFirst:e=!1}={})=>{const u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(u,e?void 0:"g")})(),""):t;const Ne=t=>!Number.isNaN(t)&&t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);var qe=Ne,Ot=Ne;qe.default=Ot;const He=t=>{if(typeof(t=t.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))!="string"||t.length===0)return 0;t=wt(t);let e=0;for(let u=0;u<t.length;u++){const D=t.codePointAt(u);D<=31||D>=127&&D<=159||D>=768&&D<=879||(D>65535&&u++,e+=qe(D)?2:1)}return e};var ve=He,St=He;ve.default=St;var Mt=/[|\\{}()[\]^$+*?.]/g,It=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(Mt,"\\$&")};const{platform:Ye}=process,R={tick:"\u2714",cross:"\u2716",star:"\u2605",square:"\u2587",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",play:"\u25B6",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",circleQuestionMark:"?\u20DD",bullet:"\u25CF",dot:"\u2024",line:"\u2500",ellipsis:"\u2026",pointer:"\u276F",pointerSmall:"\u203A",info:"\u2139",warning:"\u26A0",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",heart:"\u2665",nodejs:"\u2B22",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",questionMarkPrefix:"?\u20DD",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneSeventh:"\u2150",oneEighth:"\u215B",oneNinth:"\u2151",oneTenth:"\u2152",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E"},Ve={tick:"\u221A",cross:"\xD7",star:"*",square:"\u2588",squareSmall:"[ ]",squareSmallFilled:"[\u2588]",play:"\u25BA",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",circleQuestionMark:"(?)",bullet:"*",dot:".",line:"\u2500",ellipsis:"...",pointer:">",pointerSmall:"\xBB",info:"i",warning:"\u203C",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",heart:R.heart,nodejs:"\u2666",arrowUp:R.arrowUp,arrowDown:R.arrowDown,arrowLeft:R.arrowLeft,arrowRight:R.arrowRight,radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",questionMarkPrefix:"\uFF1F",oneHalf:"1/2",oneThird:"1/3",oneQuarter:"1/4",oneFifth:"1/5",oneSixth:"1/6",oneSeventh:"1/7",oneEighth:"1/8",oneNinth:"1/9",oneTenth:"1/10",twoThirds:"2/3",twoFifths:"2/5",threeQuarters:"3/4",threeFifths:"3/5",threeEighths:"3/8",fourFifths:"4/5",fiveSixths:"5/6",fiveEighths:"5/8",sevenEighths:"7/8"};Ye==="linux"&&(R.questionMarkPrefix="?");const oe=Ye==="win32"?Ve:R;var V=Object.assign(t=>{if(oe===R)return t;for(const[e,u]of Object.entries(R))u!==oe[e]&&(t=t.replace(new RegExp(It(u),"g"),oe[e]));return t},oe),kt=R,$t=Ve;V.main=kt,V.windows=$t;var X={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]};const We={};for(const t of Object.keys(X))We[X[t]]=t;const c={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"]}};var q=c;for(const t of Object.keys(c)){if(!("channels"in c[t]))throw new Error("missing channels property: "+t);if(!("labels"in c[t]))throw new Error("missing channel labels property: "+t);if(c[t].labels.length!==c[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:u}=c[t];delete c[t].channels,delete c[t].labels,Object.defineProperty(c[t],"channels",{value:e}),Object.defineProperty(c[t],"labels",{value:u})}function Tt(t){const e=function(){const D={},r=Object.keys(q);for(let n=r.length,o=0;o<n;o++)D[r[o]]={distance:-1,parent:null};return D}(),u=[t];for(e[t].distance=0;u.length;){const D=u.pop(),r=Object.keys(q[D]);for(let n=r.length,o=0;o<n;o++){const s=r[o],i=e[s];i.distance===-1&&(i.distance=e[D].distance+1,i.parent=D,u.unshift(s))}}return e}function Rt(t,e){return function(u){return e(t(u))}}function Lt(t,e){const u=[e[t].parent,t];let D=q[e[t].parent][t],r=e[t].parent;for(;e[r].parent;)u.unshift(e[r].parent),D=Rt(q[e[r].parent][r],D),r=e[r].parent;return D.conversion=u,D}c.rgb.hsl=function(t){const e=t[0]/255,u=t[1]/255,D=t[2]/255,r=Math.min(e,u,D),n=Math.max(e,u,D),o=n-r;let s,i;n===r?s=0:e===n?s=(u-D)/o:u===n?s=2+(D-e)/o:D===n&&(s=4+(e-u)/o),s=Math.min(60*s,360),s<0&&(s+=360);const h=(r+n)/2;return i=n===r?0:h<=.5?o/(n+r):o/(2-n-r),[s,100*i,100*h]},c.rgb.hsv=function(t){let e,u,D,r,n;const o=t[0]/255,s=t[1]/255,i=t[2]/255,h=Math.max(o,s,i),l=h-Math.min(o,s,i),g=function(y){return(h-y)/6/l+.5};return l===0?(r=0,n=0):(n=l/h,e=g(o),u=g(s),D=g(i),o===h?r=D-u:s===h?r=1/3+e-D:i===h&&(r=2/3+u-e),r<0?r+=1:r>1&&(r-=1)),[360*r,100*n,100*h]},c.rgb.hwb=function(t){const e=t[0],u=t[1];let D=t[2];const r=c.rgb.hsl(t)[0],n=1/255*Math.min(e,Math.min(u,D));return D=1-1/255*Math.max(e,Math.max(u,D)),[r,100*n,100*D]},c.rgb.cmyk=function(t){const e=t[0]/255,u=t[1]/255,D=t[2]/255,r=Math.min(1-e,1-u,1-D);return[100*((1-e-r)/(1-r)||0),100*((1-u-r)/(1-r)||0),100*((1-D-r)/(1-r)||0),100*r]},c.rgb.keyword=function(t){const e=We[t];if(e)return e;let u,D=1/0;for(const o of Object.keys(X)){const s=(n=X[o],((r=t)[0]-n[0])**2+(r[1]-n[1])**2+(r[2]-n[2])**2);s<D&&(D=s,u=o)}var r,n;return u},c.keyword.rgb=function(t){return X[t]},c.rgb.xyz=function(t){let e=t[0]/255,u=t[1]/255,D=t[2]/255;return e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,u=u>.04045?((u+.055)/1.055)**2.4:u/12.92,D=D>.04045?((D+.055)/1.055)**2.4:D/12.92,[100*(.4124*e+.3576*u+.1805*D),100*(.2126*e+.7152*u+.0722*D),100*(.0193*e+.1192*u+.9505*D)]},c.rgb.lab=function(t){const e=c.rgb.xyz(t);let u=e[0],D=e[1],r=e[2];return u/=95.047,D/=100,r/=108.883,u=u>.008856?u**(1/3):7.787*u+16/116,D=D>.008856?D**(1/3):7.787*D+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*D-16,500*(u-D),200*(D-r)]},c.hsl.rgb=function(t){const e=t[0]/360,u=t[1]/100,D=t[2]/100;let r,n,o;if(u===0)return o=255*D,[o,o,o];r=D<.5?D*(1+u):D+u-D*u;const s=2*D-r,i=[0,0,0];for(let h=0;h<3;h++)n=e+1/3*-(h-1),n<0&&n++,n>1&&n--,o=6*n<1?s+6*(r-s)*n:2*n<1?r:3*n<2?s+(r-s)*(2/3-n)*6:s,i[h]=255*o;return i},c.hsl.hsv=function(t){const e=t[0];let u=t[1]/100,D=t[2]/100,r=u;const n=Math.max(D,.01);return D*=2,u*=D<=1?D:2-D,r*=n<=1?n:2-n,[e,100*(D===0?2*r/(n+r):2*u/(D+u)),100*((D+u)/2)]},c.hsv.rgb=function(t){const e=t[0]/60,u=t[1]/100;let D=t[2]/100;const r=Math.floor(e)%6,n=e-Math.floor(e),o=255*D*(1-u),s=255*D*(1-u*n),i=255*D*(1-u*(1-n));switch(D*=255,r){case 0:return[D,i,o];case 1:return[s,D,o];case 2:return[o,D,i];case 3:return[o,s,D];case 4:return[i,o,D];case 5:return[D,o,s]}},c.hsv.hsl=function(t){const e=t[0],u=t[1]/100,D=t[2]/100,r=Math.max(D,.01);let n,o;o=(2-u)*D;const s=(2-u)*r;return n=u*r,n/=s<=1?s:2-s,n=n||0,o/=2,[e,100*n,100*o]},c.hwb.rgb=function(t){const e=t[0]/360;let u=t[1]/100,D=t[2]/100;const r=u+D;let n;r>1&&(u/=r,D/=r);const o=Math.floor(6*e),s=1-D;n=6*e-o,(1&o)!=0&&(n=1-n);const i=u+n*(s-u);let h,l,g;switch(o){default:case 6:case 0:h=s,l=i,g=u;break;case 1:h=i,l=s,g=u;break;case 2:h=u,l=s,g=i;break;case 3:h=u,l=i,g=s;break;case 4:h=i,l=u,g=s;break;case 5:h=s,l=u,g=i}return[255*h,255*l,255*g]},c.cmyk.rgb=function(t){const e=t[0]/100,u=t[1]/100,D=t[2]/100,r=t[3]/100;return[255*(1-Math.min(1,e*(1-r)+r)),255*(1-Math.min(1,u*(1-r)+r)),255*(1-Math.min(1,D*(1-r)+r))]},c.xyz.rgb=function(t){const e=t[0]/100,u=t[1]/100,D=t[2]/100;let r,n,o;return r=3.2406*e+-1.5372*u+-.4986*D,n=-.9689*e+1.8758*u+.0415*D,o=.0557*e+-.204*u+1.057*D,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),o=Math.min(Math.max(0,o),1),[255*r,255*n,255*o]},c.xyz.lab=function(t){let e=t[0],u=t[1],D=t[2];return e/=95.047,u/=100,D/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,u=u>.008856?u**(1/3):7.787*u+16/116,D=D>.008856?D**(1/3):7.787*D+16/116,[116*u-16,500*(e-u),200*(u-D)]},c.lab.xyz=function(t){let e,u,D;u=(t[0]+16)/116,e=t[1]/500+u,D=u-t[2]/200;const r=u**3,n=e**3,o=D**3;return u=r>.008856?r:(u-16/116)/7.787,e=n>.008856?n:(e-16/116)/7.787,D=o>.008856?o:(D-16/116)/7.787,e*=95.047,u*=100,D*=108.883,[e,u,D]},c.lab.lch=function(t){const e=t[0],u=t[1],D=t[2];let r;return r=360*Math.atan2(D,u)/2/Math.PI,r<0&&(r+=360),[e,Math.sqrt(u*u+D*D),r]},c.lch.lab=function(t){const e=t[0],u=t[1],D=t[2]/360*2*Math.PI;return[e,u*Math.cos(D),u*Math.sin(D)]},c.rgb.ansi16=function(t,e=null){const[u,D,r]=t;let n=e===null?c.rgb.hsv(t)[2]:e;if(n=Math.round(n/50),n===0)return 30;let o=30+(Math.round(r/255)<<2|Math.round(D/255)<<1|Math.round(u/255));return n===2&&(o+=60),o},c.hsv.ansi16=function(t){return c.rgb.ansi16(c.hsv.rgb(t),t[2])},c.rgb.ansi256=function(t){const e=t[0],u=t[1],D=t[2];return e===u&&u===D?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(u/255*5)+Math.round(D/255*5)},c.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const u=.5*(1+~~(t>50));return[(1&e)*u*255,(e>>1&1)*u*255,(e>>2&1)*u*255]},c.ansi256.rgb=function(t){if(t>=232){const u=10*(t-232)+8;return[u,u,u]}let e;return t-=16,[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},c.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},c.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let u=e[0];e[0].length===3&&(u=u.split("").map(r=>r+r).join(""));const D=parseInt(u,16);return[D>>16&255,D>>8&255,255&D]},c.rgb.hcg=function(t){const e=t[0]/255,u=t[1]/255,D=t[2]/255,r=Math.max(Math.max(e,u),D),n=Math.min(Math.min(e,u),D),o=r-n;let s,i;return s=o<1?n/(1-o):0,i=o<=0?0:r===e?(u-D)/o%6:r===u?2+(D-e)/o:4+(e-u)/o,i/=6,i%=1,[360*i,100*o,100*s]},c.hsl.hcg=function(t){const e=t[1]/100,u=t[2]/100,D=u<.5?2*e*u:2*e*(1-u);let r=0;return D<1&&(r=(u-.5*D)/(1-D)),[t[0],100*D,100*r]},c.hsv.hcg=function(t){const e=t[1]/100,u=t[2]/100,D=e*u;let r=0;return D<1&&(r=(u-D)/(1-D)),[t[0],100*D,100*r]},c.hcg.rgb=function(t){const e=t[0]/360,u=t[1]/100,D=t[2]/100;if(u===0)return[255*D,255*D,255*D];const r=[0,0,0],n=e%1*6,o=n%1,s=1-o;let i=0;switch(Math.floor(n)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=s,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=o;break;case 3:r[0]=0,r[1]=s,r[2]=1;break;case 4:r[0]=o,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=s}return i=(1-u)*D,[255*(u*r[0]+i),255*(u*r[1]+i),255*(u*r[2]+i)]},c.hcg.hsv=function(t){const e=t[1]/100,u=e+t[2]/100*(1-e);let D=0;return u>0&&(D=e/u),[t[0],100*D,100*u]},c.hcg.hsl=function(t){const e=t[1]/100,u=t[2]/100*(1-e)+.5*e;let D=0;return u>0&&u<.5?D=e/(2*u):u>=.5&&u<1&&(D=e/(2*(1-u))),[t[0],100*D,100*u]},c.hcg.hwb=function(t){const e=t[1]/100,u=e+t[2]/100*(1-e);return[t[0],100*(u-e),100*(1-u)]},c.hwb.hcg=function(t){const e=t[1]/100,u=1-t[2]/100,D=u-e;let r=0;return D<1&&(r=(u-D)/(1-D)),[t[0],100*D,100*r]},c.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},c.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},c.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},c.gray.hsl=function(t){return[0,0,t[0]]},c.gray.hsv=c.gray.hsl,c.gray.hwb=function(t){return[0,100,t[0]]},c.gray.cmyk=function(t){return[0,0,0,t[0]]},c.gray.lab=function(t){return[t[0],0,0]},c.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),u=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(u.length)+u},c.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};const W={};Object.keys(q).forEach(t=>{W[t]={},Object.defineProperty(W[t],"channels",{value:q[t].channels}),Object.defineProperty(W[t],"labels",{value:q[t].labels});const e=function(u){const D=Tt(u),r={},n=Object.keys(D);for(let o=n.length,s=0;s<o;s++){const i=n[s];D[i].parent!==null&&(r[i]=Lt(i,D))}return r}(t);Object.keys(e).forEach(u=>{const D=e[u];W[t][u]=function(r){const n=function(...o){const s=o[0];if(s==null)return s;s.length>1&&(o=s);const i=r(o);if(typeof i=="object")for(let h=i.length,l=0;l<h;l++)i[l]=Math.round(i[l]);return i};return"conversion"in r&&(n.conversion=r.conversion),n}(D),W[t][u].raw=function(r){const n=function(...o){const s=o[0];return s==null?s:(s.length>1&&(o=s),r(o))};return"conversion"in r&&(n.conversion=r.conversion),n}(D)})});var xt=W,ee=pe(function(t){const e=(h,l)=>(...g)=>`\x1B[${h(...g)+l}m`,u=(h,l)=>(...g)=>{const y=h(...g);return`\x1B[${38+l};5;${y}m`},D=(h,l)=>(...g)=>{const y=h(...g);return`\x1B[${38+l};2;${y[0]};${y[1]};${y[2]}m`},r=h=>h,n=(h,l,g)=>[h,l,g],o=(h,l,g)=>{Object.defineProperty(h,l,{get:()=>{const y=g();return Object.defineProperty(h,l,{value:y,enumerable:!0,configurable:!0}),y},enumerable:!0,configurable:!0})};let s;const i=(h,l,g,y)=>{s===void 0&&(s=xt);const M=y?10:0,k={};for(const[P,L]of Object.entries(s)){const $=P==="ansi16"?"ansi":P;P===l?k[$]=h(g,M):typeof L=="object"&&(k[$]=h(L[l],M))}return k};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const h=new Map,l={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]}};l.color.gray=l.color.blackBright,l.bgColor.bgGray=l.bgColor.bgBlackBright,l.color.grey=l.color.blackBright,l.bgColor.bgGrey=l.bgColor.bgBlackBright;for(const[g,y]of Object.entries(l)){for(const[M,k]of Object.entries(y))l[M]={open:`\x1B[${k[0]}m`,close:`\x1B[${k[1]}m`},y[M]=l[M],h.set(k[0],k[1]);Object.defineProperty(l,g,{value:y,enumerable:!1})}return Object.defineProperty(l,"codes",{value:h,enumerable:!1}),l.color.close="\x1B[39m",l.bgColor.close="\x1B[49m",o(l.color,"ansi",()=>i(e,"ansi16",r,!1)),o(l.color,"ansi256",()=>i(u,"ansi256",r,!1)),o(l.color,"ansi16m",()=>i(D,"rgb",n,!1)),o(l.bgColor,"ansi",()=>i(e,"ansi16",r,!0)),o(l.bgColor,"ansi256",()=>i(u,"ansi256",r,!0)),o(l.bgColor,"ansi16m",()=>i(D,"rgb",n,!0)),l}})}),T=(t,e=process.argv)=>{const u=t.startsWith("-")?"":t.length===1?"-":"--",D=e.indexOf(u+t),r=e.indexOf("--");return D!==-1&&(r===-1||D<r)};const{env:_}=process;let G;function _e(t){return t!==0&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Ae(t,e){if(G===0)return 0;if(T("color=16m")||T("color=full")||T("color=truecolor"))return 3;if(T("color=256"))return 2;if(t&&!e&&G===void 0)return 0;const u=G||0;if(_.TERM==="dumb")return u;if(process.platform==="win32"){const D=bt.release().split(".");return Number(D[0])>=10&&Number(D[2])>=10586?Number(D[2])>=14931?3:2:1}if("CI"in _)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(D=>D in _)||_.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in _)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(_.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in _)return 1;if(_.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in _){const D=parseInt((_.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(_.TERM_PROGRAM){case"iTerm.app":return D>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(_.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(_.TERM)||"COLORTERM"in _?1:u}T("no-color")||T("no-colors")||T("color=false")||T("color=never")?G=0:(T("color")||T("colors")||T("color=true")||T("color=always"))&&(G=1),"FORCE_COLOR"in _&&(G=_.FORCE_COLOR==="true"?1:_.FORCE_COLOR==="false"?0:_.FORCE_COLOR.length===0?1:Math.min(parseInt(_.FORCE_COLOR,10),3));var Pt={supportsColor:function(t){return _e(Ae(t,t&&t.isTTY))},stdout:_e(Ae(!0,ke.isatty(1))),stderr:_e(Ae(!0,ke.isatty(2)))},jt={stringReplaceAll:(t,e,u)=>{let D=t.indexOf(e);if(D===-1)return t;const r=e.length;let n=0,o="";do o+=t.substr(n,D-n)+e+u,n=D+r,D=t.indexOf(e,n);while(D!==-1);return o+=t.substr(n),o},stringEncaseCRLFWithFirstIndex:(t,e,u,D)=>{let r=0,n="";do{const o=t[D-1]==="\r";n+=t.substr(r,(o?D-1:D)-r)+e+(o?`\r
`:`
`)+u,r=D+1,D=t.indexOf(`
`,r)}while(D!==-1);return n+=t.substr(r),n}};const Ut=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Ge=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Nt=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,qt=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Ht=new Map([["n",`
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function ze(t){const e=t[0]==="u",u=t[1]==="{";return e&&!u&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&u?String.fromCodePoint(parseInt(t.slice(2,-1),16)):Ht.get(t)||t}function Yt(t,e){const u=[],D=e.trim().split(/\s*,\s*/g);let r;for(const n of D){const o=Number(n);if(Number.isNaN(o)){if(!(r=n.match(Nt)))throw new Error(`Invalid Chalk template style argument: ${n} (in style '${t}')`);u.push(r[2].replace(qt,(s,i,h)=>i?ze(i):h))}else u.push(o)}return u}function Vt(t){Ge.lastIndex=0;const e=[];let u;for(;(u=Ge.exec(t))!==null;){const D=u[1];if(u[2]){const r=Yt(D,u[2]);e.push([D].concat(r))}else e.push([D])}return e}function Je(t,e){const u={};for(const r of e)for(const n of r.styles)u[n[0]]=r.inverse?null:n.slice(1);let D=t;for(const[r,n]of Object.entries(u))if(Array.isArray(n)){if(!(r in D))throw new Error("Unknown Chalk style: "+r);D=n.length>0?D[r](...n):D[r]}return D}var Wt=(t,e)=>{const u=[],D=[];let r=[];if(e.replace(Ut,(n,o,s,i,h,l)=>{if(o)r.push(ze(o));else if(i){const g=r.join("");r=[],D.push(u.length===0?g:Je(t,u)(g)),u.push({inverse:s,styles:Vt(i)})}else if(h){if(u.length===0)throw new Error("Found extraneous } in Chalk template literal");D.push(Je(t,u)(r.join(""))),r=[],u.pop()}else r.push(l)}),D.push(r.join("")),u.length>0){const n=`Chalk template literal is missing ${u.length} closing bracket${u.length===1?"":"s"} (\`}\`)`;throw new Error(n)}return D.join("")};const{stdout:we,stderr:Oe}=Pt,{stringReplaceAll:Gt,stringEncaseCRLFWithFirstIndex:zt}=jt,Qe=["ansi","ansi","ansi256","ansi16m"],z=Object.create(null);class Jt{constructor(e){return Ke(e)}}const Ke=t=>{const e={};return((u,D={})=>{if(D.level&&!(Number.isInteger(D.level)&&D.level>=0&&D.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=we?we.level:0;u.level=D.level===void 0?r:D.level})(e,t),e.template=(...u)=>Zt(e.template,...u),Object.setPrototypeOf(e,se.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=Jt,e.template};function se(t){return Ke(t)}for(const[t,