UNPKG

@shopify/cli

Version:

A CLI tool to build for the Shopify platform

56 lines (54 loc) • 277 kB
import{b as vf,c as Ff}from"./chunk-ZR76GGZ6.js";import{b as Cf}from"./chunk-EENHXSWU.js";import{a as Ef}from"./chunk-FUOIGXI4.js";import{a as wf}from"./chunk-6M3ZYNGO.js";import{a as w,c as C,g as p}from"./chunk-VPRTJUIN.js";var ee=C(oe=>{"use strict";p();Object.defineProperty(oe,"__esModule",{value:!0});oe.pickBy=Af;oe.compact=Of;oe.uniqBy=xf;oe.last=Sf;oe.sortBy=jf;oe.castArray=Pf;oe.isProd=$f;oe.maxBy=Rf;oe.sumBy=Lf;oe.capitalize=Tf;oe.isTruthy=kf;oe.isNotFalsy=Mf;oe.uniq=qf;oe.mapValues=Bf;oe.mergeNestedObjects=Nf;function Af(t,e){return Object.entries(t).reduce((n,[s,r])=>(e(r)&&(n[s]=r),n),{})}function Of(t){return t.filter(e=>!!e)}function xf(t,e){return t.filter((n,s)=>{let r=e(n);return!t.some((i,o)=>o>s&&e(i)===r)})}function Sf(t){if(t)return t.at(-1)}function rr(t,e){if(t=t===void 0?0:t,e=e===void 0?0:e,Array.isArray(t)&&Array.isArray(e)){if(t.length===0&&e.length===0)return 0;let n=rr(t[0],e[0]);return n!==0?n:rr(t.slice(1),e.slice(1))}return t<e?-1:t>e?1:0}function jf(t,e){return t.sort((n,s)=>rr(e(n),e(s)))}function Pf(t){return t===void 0?[]:Array.isArray(t)?t:[t]}function $f(){return!["development","test"].includes(process.env.NODE_ENV??"")}function Rf(t,e){if(t.length!==0)return t.reduce((n,s)=>{let r=e(s),i=e(n);return r>i?s:n})}function Lf(t,e){return t.reduce((n,s)=>n+e(s),0)}function Tf(t){return t?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():""}function kf(t){return["1","true","y","yes"].includes(t.toLowerCase())}function Mf(t){return!["0","false","n","no"].includes(t.toLowerCase())}function qf(t){return[...new Set(t)].sort()}function Bf(t,e){return Object.entries(t).reduce((n,[s,r])=>(n[s]=e(r,s),n),{})}function If(t,e){return e.split(".").reduce((n,s)=>n?.[s],t)}function Nf(t,e){return Object.fromEntries(t.flatMap(n=>Object.entries(If(n,e)??{})).reverse())}});var Le=C(He=>{"use strict";p();Object.defineProperty(He,"__esModule",{value:!0});He.fileExists=He.dirExists=void 0;He.readJson=Ro;He.safeReadJson=Uf;He.existsSync=Vf;var Hf=w("node:fs"),ar=w("node:fs/promises"),Wf=ee(),zf=async t=>{let e;try{e=await(0,ar.stat)(t)}catch{throw new Error(`No directory found at ${t}`)}if(!e.isDirectory())throw new Error(`${t} exists but is not a directory`);return t};He.dirExists=zf;var Gf=async t=>{let e;try{e=await(0,ar.stat)(t)}catch{throw new Error(`No file found at ${t}`)}if(!e.isFile())throw new Error(`${t} exists but is not a file`);return t};He.fileExists=Gf;var or=class extends Map{set(e,n){return((0,Wf.isProd)()??!1)&&super.set(e,n),this}},ir=new or;async function Ro(t,e=!0){if(e&&ir.has(t))return JSON.parse(ir.get(t));let n=await(0,ar.readFile)(t,"utf8");return ir.set(t,n),JSON.parse(n)}async function Uf(t,e=!0){try{return await Ro(t,e)}catch{}}function Vf(t){return(0,Hf.existsSync)(t)}});var To=C(le=>{"use strict";p();Object.defineProperty(le,"__esModule",{value:!0});le.string=le.url=le.file=le.directory=le.integer=le.boolean=void 0;le.custom=nt;var Kf=w("node:url"),Lo=Le(),Jf=ee();function nt(t){return(e={})=>({parse:async(n,s,r)=>n,...t,...e,input:[],type:"option"})}le.boolean=nt({parse:async t=>!!t&&(0,Jf.isNotFalsy)(t)});le.integer=nt({async parse(t,e,n){if(!/^-?\d+$/.test(t))throw new Error(`Expected an integer but received: ${t}`);let s=Number.parseInt(t,10);if(n.min!==void 0&&s<n.min)throw new Error(`Expected an integer greater than or equal to ${n.min} but received: ${t}`);if(n.max!==void 0&&s>n.max)throw new Error(`Expected an integer less than or equal to ${n.max} but received: ${t}`);return s}});le.directory=nt({async parse(t,e,n){return n.exists?(0,Lo.dirExists)(t):t}});le.file=nt({async parse(t,e,n){return n.exists?(0,Lo.fileExists)(t):t}});le.url=nt({async parse(t){try{return new Kf.URL(t)}catch{throw new Error(`Expected a valid url but received: ${t}`)}}});var Xf=nt({});le.string=Xf});var ko=C((N1,Yf)=>{Yf.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"4.5.3",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"ansi-escapes":"^4.3.2",ansis:"^3.17.0","clean-stack":"^3.0.1","cli-spinners":"^2.9.2",debug:"^4.4.0",ejs:"^3.1.10","get-package-type":"^0.1.0","indent-string":"^4.0.0","is-wsl":"^2.2.0",lilconfig:"^3.1.3",minimatch:"^9.0.5",semver:"^7.6.3","string-width":"^4.2.3","supports-color":"^8",tinyglobby:"^0.2.14","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^19","@eslint/compat":"^1.3.2","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^5","@oclif/prettier-config":"^0.2.1","@oclif/test":"^4","@types/benchmark":"^2.1.5","@types/chai":"^4.3.16","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/mocha":"^10.0.10","@types/node":"^18","@types/pnpapi":"^0.0.5","@types/sinon":"^17.0.3","@types/supports-color":"^8.1.3","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.5.0","chai-as-promised":"^7.1.2",commitlint:"^19","cross-env":"^7.0.3",eslint:"^9","eslint-config-oclif":"^6","eslint-config-prettier":"^10",husky:"^9.1.7","lint-staged":"^15",madge:"^6.1.0",mocha:"^11.7.2",nyc:"^15.1.0",prettier:"^3.6.2",shx:"^0.4.0",sinon:"^18","ts-node":"^10.9.2",tsd:"^0.33.0",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",exports:{".":"./lib/index.js","./args":"./lib/args.js","./command":"./lib/command.js","./config":"./lib/config/index.js","./errors":"./lib/errors/index.js","./execute":"./lib/execute.js","./flags":"./lib/flags.js","./flush":"./lib/flush.js","./handle":"./lib/errors/handle.js","./help":"./lib/help/index.js","./hooks":"./lib/interfaces/hooks.js","./interfaces":"./lib/interfaces/index.js","./logger":"./lib/logger.js","./package.json":"./package.json","./parser":"./lib/parser/index.js","./performance":"./lib/performance.js","./run":"./lib/main.js","./settings":"./lib/settings.js","./util/ids":"./lib/util/ids.js","./ux":"./lib/ux/index.js"},repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky","test:circular-deps":"yarn build && madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts" --parallel'},types:"lib/index.d.ts"}});var Oe=C(cr=>{"use strict";p();Object.defineProperty(cr,"__esModule",{value:!0});var Qf=w("node:fs"),Zf=w("node:path"),ur=class t extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return t.instance||(t.instance=new t),t.instance}get(e){return super.get(e)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:ko().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,Qf.readFileSync)((0,Zf.join)(__dirname,"..","package.json"),"utf8")).version}}catch{return{name:"@oclif/core",version:"unknown"}}}}};cr.default=ur});var qo=C(Ce=>{"use strict";p();var eh=/[|\\{}()[\]^$+*?.]/g,th=Object.prototype.hasOwnProperty,lr=function(t,e){return th.apply(t,[e])};Ce.escapeRegExpChars=function(t){return t?String(t).replace(eh,"\\$&"):""};var nh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},sh=/[&<>'"]/g;function rh(t){return nh[t]||t}var ih=`var _ENCODE_HTML_RULES = { "&": "&amp;" , "<": "&lt;" , ">": "&gt;" , '"': "&#34;" , "'": "&#39;" } , _MATCH_HTML = /[&<>'"]/g; function encode_char(c) { return _ENCODE_HTML_RULES[c] || c; }; `;Ce.escapeXML=function(t){return t==null?"":String(t).replace(sh,rh)};function Mo(){return Function.prototype.toString.call(this)+`; `+ih}try{typeof Object.defineProperty=="function"?Object.defineProperty(Ce.escapeXML,"toString",{value:Mo}):Ce.escapeXML.toString=Mo}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}Ce.shallowCopy=function(t,e){if(e=e||{},t!=null)for(var n in e)lr(e,n)&&(n==="__proto__"||n==="constructor"||(t[n]=e[n]));return t};Ce.shallowCopyFromList=function(t,e,n){if(n=n||[],e=e||{},t!=null)for(var s=0;s<n.length;s++){var r=n[s];if(typeof e[r]<"u"){if(!lr(e,r)||r==="__proto__"||r==="constructor")continue;t[r]=e[r]}}return t};Ce.cache={_data:{},set:function(t,e){this._data[t]=e},get:function(t){return this._data[t]},remove:function(t){delete this._data[t]},reset:function(){this._data={}}};Ce.hyphenToCamel=function(t){return t.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})};Ce.createNullProtoObjWherePossible=(function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}})();Ce.hasOwnOnlyObject=function(t){var e=Ce.createNullProtoObjWherePossible();for(var n in t)lr(t,n)&&(e[n]=t[n]);return e}});var Bo=C((U1,oh)=>{oh.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.10",author:"Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.8.5"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^4.0.2","lru-cache":"^4.0.1",mocha:"^10.2.0","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"npx jake test"}}});var dr=C(B=>{"use strict";p();var hr=w("fs"),en=w("path"),X=qo(),Io=!1,ah=Bo().version,uh="<",ch=">",lh="%",Uo="locals",fh="ejs",hh="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",Vo=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],dh=Vo.concat("cache"),No=/^\uFEFF/,fr=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;B.cache=X.cache;B.fileLoader=hr.readFileSync;B.localsName=Uo;B.promiseImpl=new Function("return this;")().Promise;B.resolveInclude=function(t,e,n){var s=en.dirname,r=en.extname,i=en.resolve,o=i(n?e:s(e),t),a=r(t);return a||(o+=".ejs"),o};function Ho(t,e){var n;if(e.some(function(s){return n=B.resolveInclude(t,s,!0),hr.existsSync(n)}))return n}function ph(t,e){var n,s,r=e.views,i=/^[A-Za-z]+:\\|^\//.exec(t);if(i&&i.length)t=t.replace(/^\/*/,""),Array.isArray(e.root)?n=Ho(t,e.root):n=B.resolveInclude(t,e.root||"/",!0);else if(e.filename&&(s=B.resolveInclude(t,e.filename),hr.existsSync(s)&&(n=s)),!n&&Array.isArray(r)&&(n=Ho(t,r)),!n&&typeof e.includer!="function")throw new Error('Could not find the include file "'+e.escapeFunction(t)+'"');return n}function tn(t,e){var n,s=t.filename,r=arguments.length>1;if(t.cache){if(!s)throw new Error("cache option requires a filename");if(n=B.cache.get(s),n)return n;r||(e=Wo(s).toString().replace(No,""))}else if(!r){if(!s)throw new Error("Internal EJS error: no file name or template provided");e=Wo(s).toString().replace(No,"")}return n=B.compile(e,t),t.cache&&B.cache.set(s,n),n}function gh(t,e,n){var s;if(n){try{s=tn(t)(e)}catch(r){return n(r)}n(null,s)}else{if(typeof B.promiseImpl=="function")return new B.promiseImpl(function(r,i){try{s=tn(t)(e),r(s)}catch(o){i(o)}});throw new Error("Please provide a callback function")}}function Wo(t){return B.fileLoader(t)}function mh(t,e){var n=X.shallowCopy(X.createNullProtoObjWherePossible(),e);if(n.filename=ph(t,n),typeof e.includer=="function"){var s=e.includer(t,n.filename);if(s&&(s.filename&&(n.filename=s.filename),s.template))return tn(n,s.template)}return tn(n)}function zo(t,e,n,s,r){var i=e.split(` `),o=Math.max(s-3,0),a=Math.min(i.length,s+3),u=r(n),l=i.slice(o,a).map(function(f,c){var h=c+o+1;return(h==s?" >> ":" ")+h+"| "+f}).join(` `);throw t.path=u,t.message=(u||"ejs")+":"+s+` `+l+` `+t.message,t}function Go(t){return t.replace(/;(\s*$)/,"$1")}B.compile=function(e,n){var s;return n&&n.scope&&(Io||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),Io=!0),n.context||(n.context=n.scope),delete n.scope),s=new se(e,n),s.compile()};B.render=function(t,e,n){var s=e||X.createNullProtoObjWherePossible(),r=n||X.createNullProtoObjWherePossible();return arguments.length==2&&X.shallowCopyFromList(r,s,Vo),tn(r,t)(s)};B.renderFile=function(){var t=Array.prototype.slice.call(arguments),e=t.shift(),n,s={filename:e},r,i;return typeof arguments[arguments.length-1]=="function"&&(n=t.pop()),t.length?(r=t.shift(),t.length?X.shallowCopy(s,t.pop()):(r.settings&&(r.settings.views&&(s.views=r.settings.views),r.settings["view cache"]&&(s.cache=!0),i=r.settings["view options"],i&&X.shallowCopy(s,i)),X.shallowCopyFromList(s,r,dh)),s.filename=e):r=X.createNullProtoObjWherePossible(),gh(s,r,n)};B.Template=se;B.clearCache=function(){B.cache.reset()};function se(t,e){var n=X.hasOwnOnlyObject(e),s=X.createNullProtoObjWherePossible();this.templateText=t,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",s.client=n.client||!1,s.escapeFunction=n.escape||n.escapeFunction||X.escapeXML,s.compileDebug=n.compileDebug!==!1,s.debug=!!n.debug,s.filename=n.filename,s.openDelimiter=n.openDelimiter||B.openDelimiter||uh,s.closeDelimiter=n.closeDelimiter||B.closeDelimiter||ch,s.delimiter=n.delimiter||B.delimiter||lh,s.strict=n.strict||!1,s.context=n.context,s.cache=n.cache||!1,s.rmWhitespace=n.rmWhitespace,s.root=n.root,s.includer=n.includer,s.outputFunctionName=n.outputFunctionName,s.localsName=n.localsName||B.localsName||Uo,s.views=n.views,s.async=n.async,s.destructuredLocals=n.destructuredLocals,s.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,s.strict?s._with=!1:s._with=typeof n._with<"u"?n._with:!0,this.opts=s,this.regex=this.createRegex()}se.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};se.prototype={createRegex:function(){var t=hh,e=X.escapeRegExpChars(this.opts.delimiter),n=X.escapeRegExpChars(this.opts.openDelimiter),s=X.escapeRegExpChars(this.opts.closeDelimiter);return t=t.replace(/%/g,e).replace(/</g,n).replace(/>/g,s),new RegExp(t)},compile:function(){var t,e,n=this.opts,s="",r="",i=n.escapeFunction,o,a=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),s+=` var __output = ""; function __append(s) { if (s !== undefined && s !== null) __output += s } `,n.outputFunctionName){if(!fr.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");s+=" var "+n.outputFunctionName+` = __append; `}if(n.localsName&&!fr.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){for(var u=" var __locals = ("+n.localsName+` || {}), `,l=0;l<n.destructuredLocals.length;l++){var f=n.destructuredLocals[l];if(!fr.test(f))throw new Error("destructuredLocals["+l+"] is not a valid JS identifier.");l>0&&(u+=`, `),u+=f+" = __locals."+f}s+=u+`; `}n._with!==!1&&(s+=" with ("+n.localsName+` || {}) { `,r+=` } `),r+=` return __output; `,this.source=s+this.source+r}n.compileDebug?t=`var __line = 1 , __lines = `+JSON.stringify(this.templateText)+` , __filename = `+a+`; try { `+this.source+`} catch (e) { rethrow(e, __lines, __filename, __line, escapeFn); } `:t=this.source,n.client&&(t="escapeFn = escapeFn || "+i.toString()+`; `+t,n.compileDebug&&(t="rethrow = rethrow || "+zo.toString()+`; `+t)),n.strict&&(t=`"use strict"; `+t),n.debug&&console.log(t),n.compileDebug&&n.filename&&(t=t+` //# sourceURL=`+a+` `);try{if(n.async)try{o=new Function("return (async function(){}).constructor;")()}catch(g){throw g instanceof SyntaxError?new Error("This environment does not support async/await"):g}else o=Function;e=new o(n.localsName+", escapeFn, include, rethrow",t)}catch(g){throw g instanceof SyntaxError&&(n.filename&&(g.message+=" in "+n.filename),g.message+=` while compiling ejs `,g.message+=`If the above error is not helpful, you may want to try EJS-Lint: `,g.message+="https://github.com/RyanZim/EJS-Lint",n.async||(g.message+=` `,g.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),g}var c=n.client?e:function(m){var D=function(y,_){var x=X.shallowCopy(X.createNullProtoObjWherePossible(),m);return _&&(x=X.shallowCopy(x,_)),mh(y,n)(x)};return e.apply(n.context,[m||X.createNullProtoObjWherePossible(),i,D,zo])};if(n.filename&&typeof Object.defineProperty=="function"){var h=n.filename,d=en.basename(h,en.extname(h));try{Object.defineProperty(c,"name",{value:d,writable:!1,enumerable:!1,configurable:!0})}catch{}}return c},generateSource:function(){var t=this.opts;t.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,` `).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var e=this,n=this.parseTemplateText(),s=this.opts.delimiter,r=this.opts.openDelimiter,i=this.opts.closeDelimiter;n&&n.length&&n.forEach(function(o,a){var u;if(o.indexOf(r+s)===0&&o.indexOf(r+s+s)!==0&&(u=n[a+2],!(u==s+i||u=="-"+s+i||u=="_"+s+i)))throw new Error('Could not find matching close tag for "'+o+'".');e.scanLine(o)})},parseTemplateText:function(){for(var t=this.templateText,e=this.regex,n=e.exec(t),s=[],r;n;)r=n.index,r!==0&&(s.push(t.substring(0,r)),t=t.slice(r)),s.push(n[0]),t=t.slice(n[0].length),n=e.exec(t);return t&&s.push(t),s},_addOutput:function(t){if(this.truncate&&(t=t.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!t)return t;t=t.replace(/\\/g,"\\\\"),t=t.replace(/\n/g,"\\n"),t=t.replace(/\r/g,"\\r"),t=t.replace(/"/g,'\\"'),this.source+=' ; __append("'+t+`") `},scanLine:function(t){var e=this,n=this.opts.delimiter,s=this.opts.openDelimiter,r=this.opts.closeDelimiter,i=0;switch(i=t.split(` `).length-1,t){case s+n:case s+n+"_":this.mode=se.modes.EVAL;break;case s+n+"=":this.mode=se.modes.ESCAPED;break;case s+n+"-":this.mode=se.modes.RAW;break;case s+n+"#":this.mode=se.modes.COMMENT;break;case s+n+n:this.mode=se.modes.LITERAL,this.source+=' ; __append("'+t.replace(s+n+n,s+n)+`") `;break;case n+n+r:this.mode=se.modes.LITERAL,this.source+=' ; __append("'+t.replace(n+n+r,n+r)+`") `;break;case n+r:case"-"+n+r:case"_"+n+r:this.mode==se.modes.LITERAL&&this._addOutput(t),this.mode=null,this.truncate=t.indexOf("-")===0||t.indexOf("_")===0;break;default:if(this.mode){switch(this.mode){case se.modes.EVAL:case se.modes.ESCAPED:case se.modes.RAW:t.lastIndexOf("//")>t.lastIndexOf(` `)&&(t+=` `)}switch(this.mode){case se.modes.EVAL:this.source+=" ; "+t+` `;break;case se.modes.ESCAPED:this.source+=" ; __append(escapeFn("+Go(t)+`)) `;break;case se.modes.RAW:this.source+=" ; __append("+Go(t)+`) `;break;case se.modes.COMMENT:break;case se.modes.LITERAL:this._addOutput(t);break}}else this._addOutput(t)}e.opts.compileDebug&&i&&(this.currentLine+=i,this.source+=" ; __line = "+this.currentLine+` `)}};B.escapeXML=X.escapeXML;B.__express=B.renderFile;B.VERSION=ah;B.name=fh;typeof window<"u"&&(window.ejs=B)});var de=C(Ke=>{"use strict";p();var Dh=Ke&&Ke.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.getLogger=Ko;Ke.makeDebug=bh;Ke.setLogger=Eh;Ke.clearLoggers=Ch;var _h=Dh(Ff()),gr="oclif";function Nn(t=gr){let e=(0,_h.default)(t);return{child:(n,s)=>Nn(`${t}${s??":"}${n}`),debug:e,error:(n,...s)=>Nn(`${t}:error`).debug(n,...s),info:e,namespace:t,trace:e,warn:e}}var We=new Map;function Ko(t){let e=We.get("root");if(e||pr(Nn(gr)),e=We.get("root"),t){let n=We.get(t);if(n)return n;let s=e.child(t);return We.set(t,s),s}return e}function yh(t){return typeof t.child=="function"&&typeof t.debug=="function"&&typeof t.error=="function"&&typeof t.info=="function"&&typeof t.trace=="function"&&typeof t.warn=="function"&&typeof t.namespace=="string"}function pr(t){We.has(t.namespace)||We.has("root")||(yh(t)?(We.set(t.namespace,t),We.set("root",t)):process.emitWarning("Logger does not match the Logger interface. Using default logger."))}function bh(t){return(e,...n)=>Ko(t).debug(e,...n)}function Eh(t){t&&typeof t!="string"&&"logger"in t&&t.logger?pr(t.logger):pr(Nn(gr))}function Ch(){We.clear()}});var nn=C(Ct=>{"use strict";p();Object.defineProperty(Ct,"__esModule",{value:!0});Ct.stderr=Ct.stdout=void 0;var Et=w("node:util"),vh=(t,...e)=>{!t&&e?console.log((0,Et.format)(...e)):t?console.log(typeof t=="string"?(0,Et.format)(t,...e):(0,Et.format)(...t,...e)):console.log()};Ct.stdout=vh;var Fh=(t,...e)=>{!t&&e?console.error((0,Et.format)(...e)):t?console.error(typeof t=="string"?(0,Et.format)(t,...e):(0,Et.format)(...t,...e)):console.error()};Ct.stderr=Fh});var Xo=C((Z1,Jo)=>{"use strict";p();Jo.exports=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}});var mr=C((tb,Zo)=>{"use strict";p();var Yo=w("os"),wh=Xo(),Qo=/\s+at.*[(\s](.*)\)?/,Ah=/^(?:(?:(?:node|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,Oh=typeof Yo.homedir>"u"?"":Yo.homedir();Zo.exports=(t,{pretty:e=!1,basePath:n}={})=>{let s=n&&new RegExp(`(at | \\()${wh(n)}`,"g");return t.replace(/\\/g,"/").split(` `).filter(r=>{let i=r.match(Qo);if(i===null||!i[1])return!0;let o=i[1];return o.includes(".app/Contents/Resources/electron.asar")||o.includes(".app/Contents/Resources/default_app.asar")?!1:!Ah.test(o)}).filter(r=>r.trim()!=="").map(r=>(s&&(r=r.replace(s,"$1")),e&&(r=r.replace(Qo,(i,o)=>i.replace(o,o.replace(Oh,"~")))),r)).join(` `)}});var Hn=C((sb,ea)=>{"use strict";p();ea.exports=(t,e=1,n)=>{if(n={indent:" ",includeEmptyLines:!1,...n},typeof t!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof t}\``);if(typeof e!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``);if(typeof n.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(e===0)return t;let s=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return t.replace(s,n.indent.repeat(e))}});var na=C((ib,ta)=>{"use strict";p();ta.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var Dr=C((ab,sa)=>{"use strict";p();var xh=na();sa.exports=t=>typeof t=="string"?t.replace(xh(),""):t});var ia=C((cb,_r)=>{"use strict";p();var ra=t=>Number.isNaN(t)?!1: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);_r.exports=ra;_r.exports.default=ra});var aa=C((fb,oa)=>{"use strict";p();oa.exports=function(){return/\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}});var Wn=C((db,yr)=>{"use strict";p();var Sh=Dr(),jh=ia(),Ph=aa(),ua=t=>{if(typeof t!="string"||t.length===0||(t=Sh(t),t.length===0))return 0;t=t.replace(Ph()," ");let e=0;for(let n=0;n<t.length;n++){let s=t.codePointAt(n);s<=31||s>=127&&s<=159||s>=768&&s<=879||(s>65535&&n++,e+=jh(s)?2:1)}return e};yr.exports=ua;yr.exports.default=ua});var la=C((gb,ca)=>{"use strict";p();ca.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 br=C((Db,ha)=>{p();var sn=la(),fa={};for(let t of Object.keys(sn))fa[sn[t]]=t;var S={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};ha.exports=S;for(let t of Object.keys(S)){if(!("channels"in S[t]))throw new Error("missing channels property: "+t);if(!("labels"in S[t]))throw new Error("missing channel labels property: "+t);if(S[t].labels.length!==S[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:n}=S[t];delete S[t].channels,delete S[t].labels,Object.defineProperty(S[t],"channels",{value:e}),Object.defineProperty(S[t],"labels",{value:n})}S.rgb.hsl=function(t){let e=t[0]/255,n=t[1]/255,s=t[2]/255,r=Math.min(e,n,s),i=Math.max(e,n,s),o=i-r,a,u;i===r?a=0:e===i?a=(n-s)/o:n===i?a=2+(s-e)/o:s===i&&(a=4+(e-n)/o),a=Math.min(a*60,360),a<0&&(a+=360);let l=(r+i)/2;return i===r?u=0:l<=.5?u=o/(i+r):u=o/(2-i-r),[a,u*100,l*100]};S.rgb.hsv=function(t){let e,n,s,r,i,o=t[0]/255,a=t[1]/255,u=t[2]/255,l=Math.max(o,a,u),f=l-Math.min(o,a,u),c=function(h){return(l-h)/6/f+1/2};return f===0?(r=0,i=0):(i=f/l,e=c(o),n=c(a),s=c(u),o===l?r=s-n:a===l?r=1/3+e-s:u===l&&(r=2/3+n-e),r<0?r+=1:r>1&&(r-=1)),[r*360,i*100,l*100]};S.rgb.hwb=function(t){let e=t[0],n=t[1],s=t[2],r=S.rgb.hsl(t)[0],i=1/255*Math.min(e,Math.min(n,s));return s=1-1/255*Math.max(e,Math.max(n,s)),[r,i*100,s*100]};S.rgb.cmyk=function(t){let e=t[0]/255,n=t[1]/255,s=t[2]/255,r=Math.min(1-e,1-n,1-s),i=(1-e-r)/(1-r)||0,o=(1-n-r)/(1-r)||0,a=(1-s-r)/(1-r)||0;return[i*100,o*100,a*100,r*100]};function $h(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}S.rgb.keyword=function(t){let e=fa[t];if(e)return e;let n=1/0,s;for(let r of Object.keys(sn)){let i=sn[r],o=$h(t,i);o<n&&(n=o,s=r)}return s};S.keyword.rgb=function(t){return sn[t]};S.rgb.xyz=function(t){let e=t[0]/255,n=t[1]/255,s=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;let r=e*.4124+n*.3576+s*.1805,i=e*.2126+n*.7152+s*.0722,o=e*.0193+n*.1192+s*.9505;return[r*100,i*100,o*100]};S.rgb.lab=function(t){let e=S.rgb.xyz(t),n=e[0],s=e[1],r=e[2];n/=95.047,s/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;let i=116*s-16,o=500*(n-s),a=200*(s-r);return[i,o,a]};S.hsl.rgb=function(t){let e=t[0]/360,n=t[1]/100,s=t[2]/100,r,i,o;if(n===0)return o=s*255,[o,o,o];s<.5?r=s*(1+n):r=s+n-s*n;let a=2*s-r,u=[0,0,0];for(let l=0;l<3;l++)i=e+1/3*-(l-1),i<0&&i++,i>1&&i--,6*i<1?o=a+(r-a)*6*i:2*i<1?o=r:3*i<2?o=a+(r-a)*(2/3-i)*6:o=a,u[l]=o*255;return u};S.hsl.hsv=function(t){let e=t[0],n=t[1]/100,s=t[2]/100,r=n,i=Math.max(s,.01);s*=2,n*=s<=1?s:2-s,r*=i<=1?i:2-i;let o=(s+n)/2,a=s===0?2*r/(i+r):2*n/(s+n);return[e,a*100,o*100]};S.hsv.rgb=function(t){let e=t[0]/60,n=t[1]/100,s=t[2]/100,r=Math.floor(e)%6,i=e-Math.floor(e),o=255*s*(1-n),a=255*s*(1-n*i),u=255*s*(1-n*(1-i));switch(s*=255,r){case 0:return[s,u,o];case 1:return[a,s,o];case 2:return[o,s,u];case 3:return[o,a,s];case 4:return[u,o,s];case 5:return[s,o,a]}};S.hsv.hsl=function(t){let e=t[0],n=t[1]/100,s=t[2]/100,r=Math.max(s,.01),i,o;o=(2-n)*s;let a=(2-n)*r;return i=n*r,i/=a<=1?a:2-a,i=i||0,o/=2,[e,i*100,o*100]};S.hwb.rgb=function(t){let e=t[0]/360,n=t[1]/100,s=t[2]/100,r=n+s,i;r>1&&(n/=r,s/=r);let o=Math.floor(6*e),a=1-s;i=6*e-o,(o&1)!==0&&(i=1-i);let u=n+i*(a-n),l,f,c;switch(o){default:case 6:case 0:l=a,f=u,c=n;break;case 1:l=u,f=a,c=n;break;case 2:l=n,f=a,c=u;break;case 3:l=n,f=u,c=a;break;case 4:l=u,f=n,c=a;break;case 5:l=a,f=n,c=u;break}return[l*255,f*255,c*255]};S.cmyk.rgb=function(t){let e=t[0]/100,n=t[1]/100,s=t[2]/100,r=t[3]/100,i=1-Math.min(1,e*(1-r)+r),o=1-Math.min(1,n*(1-r)+r),a=1-Math.min(1,s*(1-r)+r);return[i*255,o*255,a*255]};S.xyz.rgb=function(t){let e=t[0]/100,n=t[1]/100,s=t[2]/100,r,i,o;return r=e*3.2406+n*-1.5372+s*-.4986,i=e*-.9689+n*1.8758+s*.0415,o=e*.0557+n*-.204+s*1.057,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,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,r=Math.min(Math.max(0,r),1),i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),[r*255,i*255,o*255]};S.xyz.lab=function(t){let e=t[0],n=t[1],s=t[2];e/=95.047,n/=100,s/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let r=116*n-16,i=500*(e-n),o=200*(n-s);return[r,i,o]};S.lab.xyz=function(t){let e=t[0],n=t[1],s=t[2],r,i,o;i=(e+16)/116,r=n/500+i,o=i-s/200;let a=i**3,u=r**3,l=o**3;return i=a>.008856?a:(i-16/116)/7.787,r=u>.008856?u:(r-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,r*=95.047,i*=100,o*=108.883,[r,i,o]};S.lab.lch=function(t){let e=t[0],n=t[1],s=t[2],r;r=Math.atan2(s,n)*360/2/Math.PI,r<0&&(r+=360);let o=Math.sqrt(n*n+s*s);return[e,o,r]};S.lch.lab=function(t){let e=t[0],n=t[1],r=t[2]/360*2*Math.PI,i=n*Math.cos(r),o=n*Math.sin(r);return[e,i,o]};S.rgb.ansi16=function(t,e=null){let[n,s,r]=t,i=e===null?S.rgb.hsv(t)[2]:e;if(i=Math.round(i/50),i===0)return 30;let o=30+(Math.round(r/255)<<2|Math.round(s/255)<<1|Math.round(n/255));return i===2&&(o+=60),o};S.hsv.ansi16=function(t){return S.rgb.ansi16(S.hsv.rgb(t),t[2])};S.rgb.ansi256=function(t){let e=t[0],n=t[1],s=t[2];return e===n&&n===s?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(s/255*5)};S.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];let n=(~~(t>50)+1)*.5,s=(e&1)*n*255,r=(e>>1&1)*n*255,i=(e>>2&1)*n*255;return[s,r,i]};S.ansi256.rgb=function(t){if(t>=232){let i=(t-232)*10+8;return[i,i,i]}t-=16;let e,n=Math.floor(t/36)/5*255,s=Math.floor((e=t%36)/6)/5*255,r=e%6/5*255;return[n,s,r]};S.rgb.hex=function(t){let n=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};S.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let n=e[0];e[0].length===3&&(n=n.split("").map(a=>a+a).join(""));let s=parseInt(n,16),r=s>>16&255,i=s>>8&255,o=s&255;return[r,i,o]};S.rgb.hcg=function(t){let e=t[0]/255,n=t[1]/255,s=t[2]/255,r=Math.max(Math.max(e,n),s),i=Math.min(Math.min(e,n),s),o=r-i,a,u;return o<1?a=i/(1-o):a=0,o<=0?u=0:r===e?u=(n-s)/o%6:r===n?u=2+(s-e)/o:u=4+(e-n)/o,u/=6,u%=1,[u*360,o*100,a*100]};S.hsl.hcg=function(t){let e=t[1]/100,n=t[2]/100,s=n<.5?2*e*n:2*e*(1-n),r=0;return s<1&&(r=(n-.5*s)/(1-s)),[t[0],s*100,r*100]};S.hsv.hcg=function(t){let e=t[1]/100,n=t[2]/100,s=e*n,r=0;return s<1&&(r=(n-s)/(1-s)),[t[0],s*100,r*100]};S.hcg.rgb=function(t){let e=t[0]/360,n=t[1]/100,s=t[2]/100;if(n===0)return[s*255,s*255,s*255];let r=[0,0,0],i=e%1*6,o=i%1,a=1-o,u=0;switch(Math.floor(i)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=a,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]=a,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]=a}return u=(1-n)*s,[(n*r[0]+u)*255,(n*r[1]+u)*255,(n*r[2]+u)*255]};S.hcg.hsv=function(t){let e=t[1]/100,n=t[2]/100,s=e+n*(1-e),r=0;return s>0&&(r=e/s),[t[0],r*100,s*100]};S.hcg.hsl=function(t){let e=t[1]/100,s=t[2]/100*(1-e)+.5*e,r=0;return s>0&&s<.5?r=e/(2*s):s>=.5&&s<1&&(r=e/(2*(1-s))),[t[0],r*100,s*100]};S.hcg.hwb=function(t){let e=t[1]/100,n=t[2]/100,s=e+n*(1-e);return[t[0],(s-e)*100,(1-s)*100]};S.hwb.hcg=function(t){let e=t[1]/100,s=1-t[2]/100,r=s-e,i=0;return r<1&&(i=(s-r)/(1-r)),[t[0],r*100,i*100]};S.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};S.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};S.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};S.gray.hsl=function(t){return[0,0,t[0]]};S.gray.hsv=S.gray.hsl;S.gray.hwb=function(t){return[0,100,t[0]]};S.gray.cmyk=function(t){return[0,0,0,t[0]]};S.gray.lab=function(t){return[t[0],0,0]};S.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,s=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(s.length)+s};S.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var pa=C((yb,da)=>{p();var zn=br();function Rh(){let t={},e=Object.keys(zn);for(let n=e.length,s=0;s<n;s++)t[e[s]]={distance:-1,parent:null};return t}function Lh(t){let e=Rh(),n=[t];for(e[t].distance=0;n.length;){let s=n.pop(),r=Object.keys(zn[s]);for(let i=r.length,o=0;o<i;o++){let a=r[o],u=e[a];u.distance===-1&&(u.distance=e[s].distance+1,u.parent=s,n.unshift(a))}}return e}function Th(t,e){return function(n){return e(t(n))}}function kh(t,e){let n=[e[t].parent,t],s=zn[e[t].parent][t],r=e[t].parent;for(;e[r].parent;)n.unshift(e[r].parent),s=Th(zn[e[r].parent][r],s),r=e[r].parent;return s.conversion=n,s}da.exports=function(t){let e=Lh(t),n={},s=Object.keys(e);for(let r=s.length,i=0;i<r;i++){let o=s[i];e[o].parent!==null&&(n[o]=kh(o,e))}return n}});var ma=C((Eb,ga)=>{p();var Er=br(),Mh=pa(),vt={},qh=Object.keys(Er);function Bh(t){let e=function(...n){let s=n[0];return s==null?s:(s.length>1&&(n=s),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function Ih(t){let e=function(...n){let s=n[0];if(s==null)return s;s.length>1&&(n=s);let r=t(n);if(typeof r=="object")for(let i=r.length,o=0;o<i;o++)r[o]=Math.round(r[o]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}qh.forEach(t=>{vt[t]={},Object.defineProperty(vt[t],"channels",{value:Er[t].channels}),Object.defineProperty(vt[t],"labels",{value:Er[t].labels});let e=Mh(t);Object.keys(e).forEach(s=>{let r=e[s];vt[t][s]=Ih(r),vt[t][s].raw=Bh(r)})});ga.exports=vt});var Ca=C((vb,Ea)=>{"use strict";p();var Da=(t,e)=>(...n)=>`\x1B[${t(...n)+e}m`,_a=(t,e)=>(...n)=>{let s=t(...n);return`\x1B[${38+e};5;${s}m`},ya=(t,e)=>(...n)=>{let s=t(...n);return`\x1B[${38+e};2;${s[0]};${s[1]};${s[2]}m`},Gn=t=>t,ba=(t,e,n)=>[t,e,n],Ft=(t,e,n)=>{Object.defineProperty(t,e,{get:()=>{let s=n();return Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0}),s},enumerable:!0,configurable:!0})},Cr,wt=(t,e,n,s)=>{Cr===void 0&&(Cr=ma());let r=s?10:0,i={};for(let[o,a]of Object.entries(Cr)){let u=o==="ansi16"?"ansi":o;o===e?i[u]=t(n,r):typeof a=="object"&&(i[u]=t(a[e],r))}return i};function Nh(){let t=new Map,e={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]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[n,s]of Object.entries(e)){for(let[r,i]of Object.entries(s))e[r]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},s[r]=e[r],t.set(i[0],i[1]);Object.defineProperty(e,n,{value:s,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",Ft(e.color,"ansi",()=>wt(Da,"ansi16",Gn,!1)),Ft(e.color,"ansi256",()=>wt(_a,"ansi256",Gn,!1)),Ft(e.color,"ansi16m",()=>wt(ya,"rgb",ba,!1)),Ft(e.bgColor,"ansi",()=>wt(Da,"ansi16",Gn,!0)),Ft(e.bgColor,"ansi256",()=>wt(_a,"ansi256",Gn,!0)),Ft(e.bgColor,"ansi16m",()=>wt(ya,"rgb",ba,!0)),e}Object.defineProperty(Ea,"exports",{enumerable:!0,get:Nh})});var Vn=C((wb,Oa)=>{"use strict";p();var rn=Wn(),Hh=Dr(),Wh=Ca(),Un=new Set(["\x1B","\x9B"]),zh=39,Fr="\x07",wa="[",Gh="]",Aa="m",wr=`${Gh}8;;`,va=t=>`${Un.values().next().value}${wa}${t}${Aa}`,Fa=t=>`${Un.values().next().value}${wr}${t}${Fr}`,Uh=t=>t.split(" ").map(e=>rn(e)),vr=(t,e,n)=>{let s=[...e],r=!1,i=!1,o=rn(Hh(t[t.length-1]));for(let[a,u]of s.entries()){let l=rn(u);if(o+l<=n?t[t.length-1]+=u:(t.push(u),o=0),Un.has(u)&&(r=!0,i=s.slice(a+1).join("").startsWith(wr)),r){i?u===Fr&&(r=!1,i=!1):u===Aa&&(r=!1);co