@nice-move/cli 0.11.1 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/199.mjs +1 -0
- package/dist/402.mjs +1 -0
- package/dist/471.mjs +1 -0
- package/dist/784.mjs +1 -0
- package/dist/786.mjs +1 -0
- package/dist/794.mjs +1 -0
- package/dist/930.mjs +1 -0
- package/dist/cli.mjs +1 -10457
- package/package.json +6 -7
- package/dist/node_modules_cli-truncate_index_js.mjs +0 -298
- package/dist/node_modules_commitlint_rules_lib_trailer-exists_js-node_modules_conventional-changelog-angul-37aae9.mjs +0 -31
- package/dist/node_modules_lint-staged_lib_loadConfig_js.mjs +0 -23
- package/dist/node_modules_listr2_node_modules_wrap-ansi_index_js.mjs +0 -236
- package/dist/vendors-node_modules_ansi-styles_index_js-node_modules_string-width_index_js.mjs +0 -703
- package/dist/vendors-node_modules_commitlint_format_lib_index_js.mjs +0 -2108
- package/dist/vendors-node_modules_commitlint_lint_lib_lint_js.mjs +0 -8376
- package/dist/vendors-node_modules_lint-staged_lib_index_js.mjs +0 -12063
- package/dist/vendors-node_modules_log-update_index_js.mjs +0 -1124
package/dist/471.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const id=471;export const ids=[471];export const modules={5234:(e,t,r)=>{const s=r(3026),i=r(3528),n=r(8873),o=r(1623),a=(e,t={})=>{let r=[];if(Array.isArray(e))for(let s of e){let e=a.create(s,t);Array.isArray(e)?r.push(...e):r.push(e)}else r=[].concat(a.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(r=[...new Set(r)]),r};a.parse=(e,t={})=>o(e,t),a.stringify=(e,t={})=>s("string"==typeof e?a.parse(e,t):e,t),a.compile=(e,t={})=>("string"==typeof e&&(e=a.parse(e,t)),i(e,t)),a.expand=(e,t={})=>{"string"==typeof e&&(e=a.parse(e,t));let r=n(e,t);return!0===t.noempty&&(r=r.filter(Boolean)),!0===t.nodupes&&(r=[...new Set(r)]),r},a.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?a.compile(e,t):a.expand(e,t),e.exports=a},3528:(e,t,r)=>{const s=r(7305),i=r(2012);e.exports=(e,t={})=>{let r=(e,n={})=>{let o=i.isInvalidBrace(n),a=!0===e.invalid&&!0===t.escapeInvalid,l=!0===o||!0===a,c=!0===t.escapeInvalid?"\\":"",u="";if(!0===e.isOpen)return c+e.value;if(!0===e.isClose)return c+e.value;if("open"===e.type)return l?c+e.value:"(";if("close"===e.type)return l?c+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":l?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){let r=i.reduce(e.nodes),n=s(...r,{...t,wrap:!1,toRegex:!0});if(0!==n.length)return r.length>1&&n.length>1?`(${n})`:n}if(e.nodes)for(let t of e.nodes)u+=r(t,e);return u};return r(e)}},8514:e=>{e.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:"\xa0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},8873:(e,t,r)=>{const s=r(7305),i=r(3026),n=r(2012),o=(e="",t="",r=!1)=>{let s=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return r?n.flatten(t).map((e=>`{${e}}`)):t;for(let i of e)if(Array.isArray(i))for(let e of i)s.push(o(e,t,r));else for(let e of t)!0===r&&"string"==typeof e&&(e=`{${e}}`),s.push(Array.isArray(e)?o(i,e,r):i+e);return n.flatten(s)};e.exports=(e,t={})=>{let r=void 0===t.rangeLimit?1e3:t.rangeLimit,a=(e,l={})=>{e.queue=[];let c=l,u=l.queue;for(;"brace"!==c.type&&"root"!==c.type&&c.parent;)c=c.parent,u=c.queue;if(e.invalid||e.dollar)return void u.push(o(u.pop(),i(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void u.push(o(u.pop(),["{}"]));if(e.nodes&&e.ranges>0){let a=n.reduce(e.nodes);if(n.exceedsLimit(...a,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let l=s(...a,t);return 0===l.length&&(l=i(e,t)),u.push(o(u.pop(),l)),void(e.nodes=[])}let p=n.encloseBrace(e),h=e.queue,f=e;for(;"brace"!==f.type&&"root"!==f.type&&f.parent;)f=f.parent,h=f.queue;for(let t=0;t<e.nodes.length;t++){let r=e.nodes[t];"comma"!==r.type||"brace"!==e.type?"close"!==r.type?r.value&&"open"!==r.type?h.push(o(h.pop(),r.value)):r.nodes&&a(r,e):u.push(o(u.pop(),h,p)):(1===t&&h.push(""),h.push(""))}return h};return n.flatten(a(e))}},1623:(e,t,r)=>{const s=r(3026),{MAX_LENGTH:i,CHAR_BACKSLASH:n,CHAR_BACKTICK:o,CHAR_COMMA:a,CHAR_DOT:l,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:u,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:h,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:y,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=r(8514);e.exports=(e,t={})=>{if("string"!=typeof e)throw new TypeError("Expected a string");let r=t||{},b="number"==typeof r.maxLength?Math.min(i,r.maxLength):i;if(e.length>b)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${b})`);let R,A={type:"root",input:e,nodes:[]},C=[A],w=A,S=A,T=0,O=e.length,v=0,_=0;const k=()=>e[v++],x=e=>{if("text"===e.type&&"dot"===S.type&&(S.type="text"),!S||"text"!==S.type||"text"!==e.type)return w.nodes.push(e),e.parent=w,e.prev=S,S=e,e;S.value+=e.value};for(x({type:"bos"});v<O;)if(w=C[C.length-1],R=k(),R!==E&&R!==y)if(R!==n)if(R!==d)if(R!==f)if(R!==c)if(R!==u)if(R!==g&&R!==m&&R!==o)if(R!==p)if(R!==h)if(R===a&&_>0){if(w.ranges>0){w.ranges=0;let e=w.nodes.shift();w.nodes=[e,{type:"text",value:s(w)}]}x({type:"comma",value:R}),w.commas++}else if(R===l&&_>0&&0===w.commas){let e=w.nodes;if(0===_||0===e.length){x({type:"text",value:R});continue}if("dot"===S.type){if(w.range=[],S.value+=R,S.type="range",3!==w.nodes.length&&5!==w.nodes.length){w.invalid=!0,w.ranges=0,S.type="text";continue}w.ranges++,w.args=[];continue}if("range"===S.type){e.pop();let t=e[e.length-1];t.value+=S.value+R,S=t,w.ranges--;continue}x({type:"dot",value:R})}else x({type:"text",value:R});else{if("brace"!==w.type){x({type:"text",value:R});continue}let e="close";w=C.pop(),w.close=!0,x({type:e,value:R}),_--,w=C[C.length-1]}else{_++;let e=S.value&&"$"===S.value.slice(-1)||!0===w.dollar;w=x({type:"brace",open:!0,close:!1,dollar:e,depth:_,commas:0,ranges:0,nodes:[]}),C.push(w),x({type:"open",value:R})}else{let e,r=R;for(!0!==t.keepQuotes&&(R="");v<O&&(e=k());)if(e!==n){if(e===r){!0===t.keepQuotes&&(R+=e);break}R+=e}else R+=e+k();x({type:"text",value:R})}else{if("paren"!==w.type){x({type:"text",value:R});continue}w=C.pop(),x({type:"text",value:R}),w=C[C.length-1]}else w=x({type:"paren",nodes:[]}),C.push(w),x({type:"text",value:R});else{T++;let e;for(;v<O&&(e=k());)if(R+=e,e!==f)if(e!==n){if(e===d&&(T--,0===T))break}else R+=k();else T++;x({type:"text",value:R})}else x({type:"text",value:"\\"+R});else x({type:"text",value:(t.keepEscaping?R:"")+k()});do{if(w=C.pop(),"root"!==w.type){w.nodes.forEach((e=>{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)}));let e=C[C.length-1],t=e.nodes.indexOf(w);e.nodes.splice(t,1,...w.nodes)}}while(C.length>0);return x({type:"eos"}),A}},3026:(e,t,r)=>{const s=r(2012);e.exports=(e,t={})=>{let r=(e,i={})=>{let n=t.escapeInvalid&&s.isInvalidBrace(i),o=!0===e.invalid&&!0===t.escapeInvalid,a="";if(e.value)return(n||o)&&s.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(let t of e.nodes)a+=r(t);return a};return r(e)}},2012:(e,t)=>{t.isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),t.find=(e,t)=>e.nodes.find((e=>e.type===t)),t.exceedsLimit=(e,r,s=1,i)=>!1!==i&&(!(!t.isInteger(e)||!t.isInteger(r))&&(Number(r)-Number(e))/Number(s)>=i),t.escapeNode=(e,t=0,r)=>{let s=e.nodes[t];s&&(r&&s.type===r||"open"===s.type||"close"===s.type)&&!0!==s.escaped&&(s.value="\\"+s.value,s.escaped=!0)},t.encloseBrace=e=>"brace"===e.type&&(e.commas>>0+e.ranges>>0==0&&(e.invalid=!0,!0)),t.isInvalidBrace=e=>"brace"===e.type&&(!(!0!==e.invalid&&!e.dollar)||(e.commas>>0+e.ranges>>0==0||!0!==e.open||!0!==e.close)&&(e.invalid=!0,!0)),t.isOpenOrClose=e=>"open"===e.type||"close"===e.type||(!0===e.open||!0===e.close),t.reduce=e=>e.reduce(((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e)),[]),t.flatten=(...e)=>{const t=[],r=e=>{for(let s=0;s<e.length;s++){let i=e[s];Array.isArray(i)?r(i,t):void 0!==i&&t.push(i)}return t};return r(e),t}},5881:e=>{var t=1e3,r=60*t,s=60*r,i=24*s,n=7*i,o=365.25*i;function a(e,t,r,s){var i=t>=1.5*r;return Math.round(e/r)+" "+s+(i?"s":"")}e.exports=function(e,l){l=l||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var l=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*o;case"weeks":case"week":case"w":return l*n;case"days":case"day":case"d":return l*i;case"hours":case"hour":case"hrs":case"hr":case"h":return l*s;case"minutes":case"minute":case"mins":case"min":case"m":return l*r;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(e);if("number"===c&&isFinite(e))return l.long?function(e){var n=Math.abs(e);if(n>=i)return a(e,n,i,"day");if(n>=s)return a(e,n,s,"hour");if(n>=r)return a(e,n,r,"minute");if(n>=t)return a(e,n,t,"second");return e+" ms"}(e):function(e){var n=Math.abs(e);if(n>=i)return Math.round(e/i)+"d";if(n>=s)return Math.round(e/s)+"h";if(n>=r)return Math.round(e/r)+"m";if(n>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},5130:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let s=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(i=s))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(7123)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7123:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,n,o=null;function a(...e){if(!a.enabled)return;const s=a,i=Number(new Date),n=i-(r||i);s.diff=n,s.prev=r,s.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";o++;const n=t.formatters[i];if("function"==typeof n){const t=e[o];r=n.call(s,t),e.splice(o,1),o--}return r})),t.formatArgs.call(s,e);(s.log||t.log).apply(s,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=s,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,n=t.enabled(e)),n),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function s(e,r){const s=t(this.namespace+(void 0===r?":":r)+e);return s.log=this.log,s}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const s=("string"==typeof e?e:"").split(/[\s,]+/),i=s.length;for(r=0;r<i;r++)s[r]&&("-"===(e=s[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,s;for(r=0,s=t.skips.length;r<s;r++)if(t.skips[r].test(e))return!1;for(r=0,s=t.names.length;r<s;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(5881),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},445:(e,t,r)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=r(5130):e.exports=r(8414)},8414:(e,t,r)=>{const s=r(6224),i=r(3837);t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let s=0;s<r.length;s++)e.inspectOpts[r[s]]=t.inspectOpts[r[s]]},t.log=function(...e){return process.stderr.write(i.format(...e)+"\n")},t.formatArgs=function(r){const{namespace:s,useColors:i}=this;if(i){const t=this.color,i="\x1b[3"+(t<8?t:"8;5;"+t),n=` ${i};1m${s} \x1b[0m`;r[0]=n+r[0].split("\n").join("\n"+n),r.push(i+"m+"+e.exports.humanize(this.diff)+"\x1b[0m")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+s+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):s.isatty(process.stderr.fd)},t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=r(7013);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let s=process.env[t];return s=!!/^(yes|on|true|enabled)$/i.test(s)||!/^(no|off|false|disabled)$/i.test(s)&&("null"===s?null:Number(s)),e[r]=s,e}),{}),e.exports=r(7123)(t);const{formatters:n}=e.exports;n.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},n.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},161:e=>{var t=Object.prototype.hasOwnProperty,r="~";function s(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function n(e,t,s,n,o){if("function"!=typeof s)throw new TypeError("The listener must be a function");var a=new i(s,n||e,o),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new s:delete e._events[t]}function a(){this._events=new s,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),(new s).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,s,i=[];if(0===this._eventsCount)return i;for(s in e=this._events)t.call(e,s)&&i.push(r?s.slice(1):s);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e){var t=r?r+e:e,s=this._events[t];if(!s)return[];if(s.fn)return[s.fn];for(var i=0,n=s.length,o=new Array(n);i<n;i++)o[i]=s[i].fn;return o},a.prototype.listenerCount=function(e){var t=r?r+e:e,s=this._events[t];return s?s.fn?1:s.length:0},a.prototype.emit=function(e,t,s,i,n,o){var a=r?r+e:e;if(!this._events[a])return!1;var l,c,u=this._events[a],p=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),p){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,s),!0;case 4:return u.fn.call(u.context,t,s,i),!0;case 5:return u.fn.call(u.context,t,s,i,n),!0;case 6:return u.fn.call(u.context,t,s,i,n,o),!0}for(c=1,l=new Array(p-1);c<p;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),p){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,s);break;case 4:u[c].fn.call(u[c].context,t,s,i);break;default:if(!l)for(h=1,l=new Array(p-1);h<p;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},a.prototype.on=function(e,t,r){return n(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return n(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,s,i){var n=r?r+e:e;if(!this._events[n])return this;if(!t)return o(this,n),this;var a=this._events[n];if(a.fn)a.fn!==t||i&&!a.once||s&&a.context!==s||o(this,n);else{for(var l=0,c=[],u=a.length;l<u;l++)(a[l].fn!==t||i&&!a[l].once||s&&a[l].context!==s)&&c.push(a[l]);c.length?this._events[n]=1===c.length?c[0]:c:o(this,n)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&o(this,t)):(this._events=new s,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,e.exports=a},7305:(e,t,r)=>{const s=r(3837),i=r(1914),n=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),o=e=>"number"==typeof e||"string"==typeof e&&""!==e,a=e=>Number.isInteger(+e),l=e=>{let t=`${e}`,r=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++r];);return r>0},c=(e,t,r)=>{if(t>0){let r="-"===e[0]?"-":"";r&&(e=e.slice(1)),e=r+e.padStart(r?t-1:t,"0")}return!1===r?String(e):e},u=(e,t)=>{let r="-"===e[0]?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},p=(e,t,r,s)=>{if(r)return i(e,t,{wrap:!1,...s});let n=String.fromCharCode(e);return e===t?n:`[${n}-${String.fromCharCode(t)}]`},h=(e,t,r)=>{if(Array.isArray(e)){let t=!0===r.wrap,s=r.capture?"":"?:";return t?`(${s}${e.join("|")})`:e.join("|")}return i(e,t,r)},f=(...e)=>new RangeError("Invalid range arguments: "+s.inspect(...e)),d=(e,t,r)=>{if(!0===r.strictRanges)throw f([e,t]);return[]},g=(e,t,r=1,s={})=>{let i=Number(e),n=Number(t);if(!Number.isInteger(i)||!Number.isInteger(n)){if(!0===s.strictRanges)throw f([e,t]);return[]}0===i&&(i=0),0===n&&(n=0);let o=i>n,a=String(e),d=String(t),g=String(r);r=Math.max(Math.abs(r),1);let m=l(a)||l(d)||l(g),y=m?Math.max(a.length,d.length,g.length):0,E=!1===m&&!1===((e,t,r)=>"string"==typeof e||"string"==typeof t||!0===r.stringify)(e,t,s),b=s.transform||(e=>t=>!0===e?Number(t):String(t))(E);if(s.toRegex&&1===r)return p(u(e,y),u(t,y),!0,s);let R={negatives:[],positives:[]},A=[],C=0;for(;o?i>=n:i<=n;)!0===s.toRegex&&r>1?R[(w=i)<0?"negatives":"positives"].push(Math.abs(w)):A.push(c(b(i,C),y,E)),i=o?i-r:i+r,C++;var w;return!0===s.toRegex?r>1?((e,t)=>{e.negatives.sort(((e,t)=>e<t?-1:e>t?1:0)),e.positives.sort(((e,t)=>e<t?-1:e>t?1:0));let r,s=t.capture?"":"?:",i="",n="";return e.positives.length&&(i=e.positives.join("|")),e.negatives.length&&(n=`-(${s}${e.negatives.join("|")})`),r=i&&n?`${i}|${n}`:i||n,t.wrap?`(${s}${r})`:r})(R,s):h(A,null,{wrap:!1,...s}):A},m=(e,t,r,s={})=>{if(null==t&&o(e))return[e];if(!o(e)||!o(t))return d(e,t,s);if("function"==typeof r)return m(e,t,1,{transform:r});if(n(r))return m(e,t,0,r);let i={...s};return!0===i.capture&&(i.wrap=!0),r=r||i.step||1,a(r)?a(e)&&a(t)?g(e,t,r,i):((e,t,r=1,s={})=>{if(!a(e)&&e.length>1||!a(t)&&t.length>1)return d(e,t,s);let i=s.transform||(e=>String.fromCharCode(e)),n=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),l=n>o,c=Math.min(n,o),u=Math.max(n,o);if(s.toRegex&&1===r)return p(c,u,!1,s);let f=[],g=0;for(;l?n>=o:n<=o;)f.push(i(n,g)),n=l?n-r:n+r,g++;return!0===s.toRegex?h(f,null,{wrap:!1,options:s}):f})(e,t,Math.max(Math.abs(r),1),i):null==r||n(r)?m(e,t,1,r):((e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]})(r,i)};e.exports=m},1346:e=>{e.exports=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))}},1876:(e,t,r)=>{const s=r(3837),i=r(5234),n=r(4763),o=r(3338),a=e=>""===e||"./"===e,l=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let s=new Set,i=new Set,o=new Set,a=0,l=e=>{o.add(e.output),r&&r.onResult&&r.onResult(e)};for(let o=0;o<t.length;o++){let c=n(String(t[o]),{...r,onResult:l},!0),u=c.state.negated||c.state.negatedExtglob;u&&a++;for(let t of e){let e=c(t,!0);(u?!e.isMatch:e.isMatch)&&(u?s.add(e.output):(s.delete(e.output),i.add(e.output)))}}let c=(a===t.length?[...o]:[...i]).filter((e=>!s.has(e)));if(r&&0===c.length){if(!0===r.failglob)throw new Error(`No matches found for "${t.join(", ")}"`);if(!0===r.nonull||!0===r.nullglob)return r.unescape?t.map((e=>e.replace(/\\/g,""))):t}return c};l.match=l,l.matcher=(e,t)=>n(e,t),l.any=l.isMatch=(e,t,r)=>n(t,r)(e),l.not=(e,t,r={})=>{t=[].concat(t).map(String);let s=new Set,i=[],n=new Set(l(e,t,{...r,onResult:e=>{r.onResult&&r.onResult(e),i.push(e.output)}}));for(let e of i)n.has(e)||s.add(e);return[...s]},l.contains=(e,t,r)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${s.inspect(e)}"`);if(Array.isArray(t))return t.some((t=>l.contains(e,t,r)));if("string"==typeof t){if(a(e)||a(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return l.isMatch(e,t,{...r,contains:!0})},l.matchKeys=(e,t,r)=>{if(!o.isObject(e))throw new TypeError("Expected the first argument to be an object");let s=l(Object.keys(e),t,r),i={};for(let t of s)i[t]=e[t];return i},l.some=(e,t,r)=>{let s=[].concat(e);for(let e of[].concat(t)){let t=n(String(e),r);if(s.some((e=>t(e))))return!0}return!1},l.every=(e,t,r)=>{let s=[].concat(e);for(let e of[].concat(t)){let t=n(String(e),r);if(!s.every((e=>t(e))))return!1}return!0},l.all=(e,t,r)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${s.inspect(e)}"`);return[].concat(t).every((t=>n(t,r)(e)))},l.capture=(e,t,r)=>{let s=o.isWindows(r),i=n.makeRe(String(e),{...r,capture:!0}).exec(s?o.toPosixSlashes(t):t);if(i)return i.slice(1).map((e=>void 0===e?"":e))},l.makeRe=(...e)=>n.makeRe(...e),l.scan=(...e)=>n.scan(...e),l.parse=(e,t)=>{let r=[];for(let s of[].concat(e||[]))for(let e of i(String(s),t))r.push(n.parse(e,t));return r},l.braces=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return t&&!0===t.nobrace||!/\{.*\}/.test(e)?[e]:i(e,t)},l.braceExpand=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return l.braces(e,{...t,expand:!0})},e.exports=l},4763:(e,t,r)=>{e.exports=r(2595)},7411:(e,t,r)=>{const s=r(1017),i="\\\\/",n=`[^${i}]`,o="\\.",a="\\/",l="[^/]",c=`(?:${a}|$)`,u=`(?:^|${a})`,p=`${o}{1,2}${c}`,h={DOT_LITERAL:o,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:a,ONE_CHAR:"(?=.)",QMARK:l,END_ANCHOR:c,DOTS_SLASH:p,NO_DOT:`(?!${o})`,NO_DOTS:`(?!${u}${p})`,NO_DOT_SLASH:`(?!${o}{0,1}${c})`,NO_DOTS_SLASH:`(?!${p})`,QMARK_NO_DOT:`[^.${a}]`,STAR:`${l}*?`,START_ANCHOR:u},f={...h,SLASH_LITERAL:`[${i}]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`${o}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${i}])${o}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`};e.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:s.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?f:h}},2902:(e,t,r)=>{const s=r(7411),i=r(3338),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:l,REPLACEMENTS:c}=s,u=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>i.escapeRegex(e))).join("..")}return r},p=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,h=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=c[e]||e;const r={...t},f="number"==typeof r.maxLength?Math.min(n,r.maxLength):n;let d=e.length;if(d>f)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${f}`);const g={type:"bos",value:"",output:r.prepend||""},m=[g],y=r.capture?"":"?:",E=i.isWindows(t),b=s.globChars(E),R=s.extglobChars(b),{DOT_LITERAL:A,PLUS_LITERAL:C,SLASH_LITERAL:w,ONE_CHAR:S,DOTS_SLASH:T,NO_DOT:O,NO_DOT_SLASH:v,NO_DOTS_SLASH:_,QMARK:k,QMARK_NO_DOT:x,STAR:L,START_ANCHOR:P}=b,$=e=>`(${y}(?:(?!${P}${e.dot?T:A}).)*?)`,I=r.dot?"":O,B=r.dot?k:x;let D=!0===r.bash?$(r):L;r.capture&&(D=`(${D})`),"boolean"==typeof r.noext&&(r.noextglob=r.noext);const M={input:e,index:-1,start:0,dot:!0===r.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:m};e=i.removePrefix(e,M),d=e.length;const F=[],H=[],N=[];let U,G=g;const j=()=>M.index===d-1,K=M.peek=(t=1)=>e[M.index+t],W=M.advance=()=>e[++M.index]||"",Y=()=>e.slice(M.index+1),z=(e="",t=0)=>{M.consumed+=e,M.index+=t},q=e=>{M.output+=null!=e.output?e.output:e.value,z(e.value)},V=()=>{let e=1;for(;"!"===K()&&("("!==K(2)||"?"===K(3));)W(),M.start++,e++;return e%2!=0&&(M.negated=!0,M.start++,!0)},Q=e=>{M[e]++,N.push(e)},X=e=>{M[e]--,N.pop()},Z=e=>{if("globstar"===G.type){const t=M.braces>0&&("comma"===e.type||"brace"===e.type),r=!0===e.extglob||F.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||r||(M.output=M.output.slice(0,-G.output.length),G.type="star",G.value="*",G.output=D,M.output+=G.output)}if(F.length&&"paren"!==e.type&&(F[F.length-1].inner+=e.value),(e.value||e.output)&&q(e),G&&"text"===G.type&&"text"===e.type)return G.value+=e.value,void(G.output=(G.output||"")+e.value);e.prev=G,m.push(e),G=e},J=(e,t)=>{const s={...R[t],conditions:1,inner:""};s.prev=G,s.parens=M.parens,s.output=M.output;const i=(r.capture?"(":"")+s.open;Q("parens"),Z({type:e,value:t,output:M.output?"":S}),Z({type:"paren",extglob:!0,value:W(),output:i}),F.push(s)},ee=e=>{let s,i=e.close+(r.capture?")":"");if("negate"===e.type){let n=D;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(n=$(r)),(n!==D||j()||/^\)+$/.test(Y()))&&(i=e.close=`)$))${n}`),e.inner.includes("*")&&(s=Y())&&/^\.[^\\/.]+$/.test(s)){const r=h(s,{...t,fastpaths:!1}).output;i=e.close=`)${r})${n})`}"bos"===e.prev.type&&(M.negatedExtglob=!0)}Z({type:"paren",extglob:!0,value:U,output:i}),X("parens")};if(!1!==r.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let s=!1,n=e.replace(l,((e,t,r,i,n,o)=>"\\"===i?(s=!0,e):"?"===i?t?t+i+(n?k.repeat(n.length):""):0===o?B+(n?k.repeat(n.length):""):k.repeat(r.length):"."===i?A.repeat(r.length):"*"===i?t?t+i+(n?D:""):D:t?e:`\\${e}`));return!0===s&&(n=!0===r.unescape?n.replace(/\\/g,""):n.replace(/\\+/g,(e=>e.length%2==0?"\\\\":e?"\\":""))),n===e&&!0===r.contains?(M.output=e,M):(M.output=i.wrapOutput(n,M,t),M)}for(;!j();){if(U=W(),"\0"===U)continue;if("\\"===U){const e=K();if("/"===e&&!0!==r.bash)continue;if("."===e||";"===e)continue;if(!e){U+="\\",Z({type:"text",value:U});continue}const t=/^\\+/.exec(Y());let s=0;if(t&&t[0].length>2&&(s=t[0].length,M.index+=s,s%2!=0&&(U+="\\")),!0===r.unescape?U=W():U+=W(),0===M.brackets){Z({type:"text",value:U});continue}}if(M.brackets>0&&("]"!==U||"["===G.value||"[^"===G.value)){if(!1!==r.posix&&":"===U){const e=G.value.slice(1);if(e.includes("[")&&(G.posix=!0,e.includes(":"))){const e=G.value.lastIndexOf("["),t=G.value.slice(0,e),r=G.value.slice(e+2),s=o[r];if(s){G.value=t+s,M.backtrack=!0,W(),g.output||1!==m.indexOf(G)||(g.output=S);continue}}}("["===U&&":"!==K()||"-"===U&&"]"===K())&&(U=`\\${U}`),"]"!==U||"["!==G.value&&"[^"!==G.value||(U=`\\${U}`),!0===r.posix&&"!"===U&&"["===G.value&&(U="^"),G.value+=U,q({value:U});continue}if(1===M.quotes&&'"'!==U){U=i.escapeRegex(U),G.value+=U,q({value:U});continue}if('"'===U){M.quotes=1===M.quotes?0:1,!0===r.keepQuotes&&Z({type:"text",value:U});continue}if("("===U){Q("parens"),Z({type:"paren",value:U});continue}if(")"===U){if(0===M.parens&&!0===r.strictBrackets)throw new SyntaxError(p("opening","("));const e=F[F.length-1];if(e&&M.parens===e.parens+1){ee(F.pop());continue}Z({type:"paren",value:U,output:M.parens?")":"\\)"}),X("parens");continue}if("["===U){if(!0!==r.nobracket&&Y().includes("]"))Q("brackets");else{if(!0!==r.nobracket&&!0===r.strictBrackets)throw new SyntaxError(p("closing","]"));U=`\\${U}`}Z({type:"bracket",value:U});continue}if("]"===U){if(!0===r.nobracket||G&&"bracket"===G.type&&1===G.value.length){Z({type:"text",value:U,output:`\\${U}`});continue}if(0===M.brackets){if(!0===r.strictBrackets)throw new SyntaxError(p("opening","["));Z({type:"text",value:U,output:`\\${U}`});continue}X("brackets");const e=G.value.slice(1);if(!0===G.posix||"^"!==e[0]||e.includes("/")||(U=`/${U}`),G.value+=U,q({value:U}),!1===r.literalBrackets||i.hasRegexChars(e))continue;const t=i.escapeRegex(G.value);if(M.output=M.output.slice(0,-G.value.length),!0===r.literalBrackets){M.output+=t,G.value=t;continue}G.value=`(${y}${t}|${G.value})`,M.output+=G.value;continue}if("{"===U&&!0!==r.nobrace){Q("braces");const e={type:"brace",value:U,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};H.push(e),Z(e);continue}if("}"===U){const e=H[H.length-1];if(!0===r.nobrace||!e){Z({type:"text",value:U,output:U});continue}let t=")";if(!0===e.dots){const e=m.slice(),s=[];for(let t=e.length-1;t>=0&&(m.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&s.unshift(e[t].value);t=u(s,r),M.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const r=M.output.slice(0,e.outputIndex),s=M.tokens.slice(e.tokensIndex);e.value=e.output="\\{",U=t="\\}",M.output=r;for(const e of s)M.output+=e.output||e.value}Z({type:"brace",value:U,output:t}),X("braces"),H.pop();continue}if("|"===U){F.length>0&&F[F.length-1].conditions++,Z({type:"text",value:U});continue}if(","===U){let e=U;const t=H[H.length-1];t&&"braces"===N[N.length-1]&&(t.comma=!0,e="|"),Z({type:"comma",value:U,output:e});continue}if("/"===U){if("dot"===G.type&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",m.pop(),G=g;continue}Z({type:"slash",value:U,output:w});continue}if("."===U){if(M.braces>0&&"dot"===G.type){"."===G.value&&(G.output=A);const e=H[H.length-1];G.type="dots",G.output+=U,G.value+=U,e.dots=!0;continue}if(M.braces+M.parens===0&&"bos"!==G.type&&"slash"!==G.type){Z({type:"text",value:U,output:A});continue}Z({type:"dot",value:U,output:A});continue}if("?"===U){if(!(G&&"("===G.value)&&!0!==r.noextglob&&"("===K()&&"?"!==K(2)){J("qmark",U);continue}if(G&&"paren"===G.type){const e=K();let t=U;if("<"===e&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===G.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(Y()))&&(t=`\\${U}`),Z({type:"text",value:U,output:t});continue}if(!0!==r.dot&&("slash"===G.type||"bos"===G.type)){Z({type:"qmark",value:U,output:x});continue}Z({type:"qmark",value:U,output:k});continue}if("!"===U){if(!0!==r.noextglob&&"("===K()&&("?"!==K(2)||!/[!=<:]/.test(K(3)))){J("negate",U);continue}if(!0!==r.nonegate&&0===M.index){V();continue}}if("+"===U){if(!0!==r.noextglob&&"("===K()&&"?"!==K(2)){J("plus",U);continue}if(G&&"("===G.value||!1===r.regex){Z({type:"plus",value:U,output:C});continue}if(G&&("bracket"===G.type||"paren"===G.type||"brace"===G.type)||M.parens>0){Z({type:"plus",value:U});continue}Z({type:"plus",value:C});continue}if("@"===U){if(!0!==r.noextglob&&"("===K()&&"?"!==K(2)){Z({type:"at",extglob:!0,value:U,output:""});continue}Z({type:"text",value:U});continue}if("*"!==U){"$"!==U&&"^"!==U||(U=`\\${U}`);const e=a.exec(Y());e&&(U+=e[0],M.index+=e[0].length),Z({type:"text",value:U});continue}if(G&&("globstar"===G.type||!0===G.star)){G.type="star",G.star=!0,G.value+=U,G.output=D,M.backtrack=!0,M.globstar=!0,z(U);continue}let t=Y();if(!0!==r.noextglob&&/^\([^?]/.test(t)){J("star",U);continue}if("star"===G.type){if(!0===r.noglobstar){z(U);continue}const s=G.prev,i=s.prev,n="slash"===s.type||"bos"===s.type,o=i&&("star"===i.type||"globstar"===i.type);if(!0===r.bash&&(!n||t[0]&&"/"!==t[0])){Z({type:"star",value:U,output:""});continue}const a=M.braces>0&&("comma"===s.type||"brace"===s.type),l=F.length&&("pipe"===s.type||"paren"===s.type);if(!n&&"paren"!==s.type&&!a&&!l){Z({type:"star",value:U,output:""});continue}for(;"/**"===t.slice(0,3);){const r=e[M.index+4];if(r&&"/"!==r)break;t=t.slice(3),z("/**",3)}if("bos"===s.type&&j()){G.type="globstar",G.value+=U,G.output=$(r),M.output=G.output,M.globstar=!0,z(U);continue}if("slash"===s.type&&"bos"!==s.prev.type&&!o&&j()){M.output=M.output.slice(0,-(s.output+G.output).length),s.output=`(?:${s.output}`,G.type="globstar",G.output=$(r)+(r.strictSlashes?")":"|$)"),G.value+=U,M.globstar=!0,M.output+=s.output+G.output,z(U);continue}if("slash"===s.type&&"bos"!==s.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";M.output=M.output.slice(0,-(s.output+G.output).length),s.output=`(?:${s.output}`,G.type="globstar",G.output=`${$(r)}${w}|${w}${e})`,G.value+=U,M.output+=s.output+G.output,M.globstar=!0,z(U+W()),Z({type:"slash",value:"/",output:""});continue}if("bos"===s.type&&"/"===t[0]){G.type="globstar",G.value+=U,G.output=`(?:^|${w}|${$(r)}${w})`,M.output=G.output,M.globstar=!0,z(U+W()),Z({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-G.output.length),G.type="globstar",G.output=$(r),G.value+=U,M.output+=G.output,M.globstar=!0,z(U);continue}const s={type:"star",value:U,output:D};!0!==r.bash?!G||"bracket"!==G.type&&"paren"!==G.type||!0!==r.regex?(M.index!==M.start&&"slash"!==G.type&&"dot"!==G.type||("dot"===G.type?(M.output+=v,G.output+=v):!0===r.dot?(M.output+=_,G.output+=_):(M.output+=I,G.output+=I),"*"!==K()&&(M.output+=S,G.output+=S)),Z(s)):(s.output=U,Z(s)):(s.output=".*?","bos"!==G.type&&"slash"!==G.type||(s.output=I+s.output),Z(s))}for(;M.brackets>0;){if(!0===r.strictBrackets)throw new SyntaxError(p("closing","]"));M.output=i.escapeLast(M.output,"["),X("brackets")}for(;M.parens>0;){if(!0===r.strictBrackets)throw new SyntaxError(p("closing",")"));M.output=i.escapeLast(M.output,"("),X("parens")}for(;M.braces>0;){if(!0===r.strictBrackets)throw new SyntaxError(p("closing","}"));M.output=i.escapeLast(M.output,"{"),X("braces")}if(!0===r.strictSlashes||"star"!==G.type&&"bracket"!==G.type||Z({type:"maybe_slash",value:"",output:`${w}?`}),!0===M.backtrack){M.output="";for(const e of M.tokens)M.output+=null!=e.output?e.output:e.value,e.suffix&&(M.output+=e.suffix)}return M};h.fastpaths=(e,t)=>{const r={...t},o="number"==typeof r.maxLength?Math.min(n,r.maxLength):n,a=e.length;if(a>o)throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`);e=c[e]||e;const l=i.isWindows(t),{DOT_LITERAL:u,SLASH_LITERAL:p,ONE_CHAR:h,DOTS_SLASH:f,NO_DOT:d,NO_DOTS:g,NO_DOTS_SLASH:m,STAR:y,START_ANCHOR:E}=s.globChars(l),b=r.dot?g:d,R=r.dot?m:d,A=r.capture?"":"?:";let C=!0===r.bash?".*?":y;r.capture&&(C=`(${C})`);const w=e=>!0===e.noglobstar?C:`(${A}(?:(?!${E}${e.dot?f:u}).)*?)`,S=e=>{switch(e){case"*":return`${b}${h}${C}`;case".*":return`${u}${h}${C}`;case"*.*":return`${b}${C}${u}${h}${C}`;case"*/*":return`${b}${C}${p}${h}${R}${C}`;case"**":return b+w(r);case"**/*":return`(?:${b}${w(r)}${p})?${R}${h}${C}`;case"**/*.*":return`(?:${b}${w(r)}${p})?${R}${C}${u}${h}${C}`;case"**/.*":return`(?:${b}${w(r)}${p})?${u}${h}${C}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=S(t[1]);if(!r)return;return r+u+t[2]}}},T=i.removePrefix(e,{negated:!1,prefix:""});let O=S(T);return O&&!0!==r.strictSlashes&&(O+=`${p}?`),O},e.exports=h},2595:(e,t,r)=>{const s=r(1017),i=r(4933),n=r(2902),o=r(3338),a=r(7411),l=(e,t,r=!1)=>{if(Array.isArray(e)){const s=e.map((e=>l(e,t,r))),i=e=>{for(const t of s){const r=t(e);if(r)return r}return!1};return i}const s=(i=e)&&"object"==typeof i&&!Array.isArray(i)&&e.tokens&&e.input;var i;if(""===e||"string"!=typeof e&&!s)throw new TypeError("Expected pattern to be a non-empty string");const n=t||{},a=o.isWindows(t),c=s?l.compileRe(e,t):l.makeRe(e,t,!1,!0),u=c.state;delete c.state;let p=()=>!1;if(n.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};p=l(n.ignore,e,r)}const h=(r,s=!1)=>{const{isMatch:i,match:o,output:h}=l.test(r,c,t,{glob:e,posix:a}),f={glob:e,state:u,regex:c,posix:a,input:r,output:h,match:o,isMatch:i};return"function"==typeof n.onResult&&n.onResult(f),!1===i?(f.isMatch=!1,!!s&&f):p(r)?("function"==typeof n.onIgnore&&n.onIgnore(f),f.isMatch=!1,!!s&&f):("function"==typeof n.onMatch&&n.onMatch(f),!s||f)};return r&&(h.state=u),h};l.test=(e,t,r,{glob:s,posix:i}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const n=r||{},a=n.format||(i?o.toPosixSlashes:null);let c=e===s,u=c&&a?a(e):e;return!1===c&&(u=a?a(e):e,c=u===s),!1!==c&&!0!==n.capture||(c=!0===n.matchBase||!0===n.basename?l.matchBase(e,t,r,i):t.exec(u)),{isMatch:Boolean(c),match:c,output:u}},l.matchBase=(e,t,r,i=o.isWindows(r))=>(t instanceof RegExp?t:l.makeRe(t,r)).test(s.basename(e)),l.isMatch=(e,t,r)=>l(t,r)(e),l.parse=(e,t)=>Array.isArray(e)?e.map((e=>l.parse(e,t))):n(e,{...t,fastpaths:!1}),l.scan=(e,t)=>i(e,t),l.compileRe=(e,t,r=!1,s=!1)=>{if(!0===r)return e.output;const i=t||{},n=i.contains?"":"^",o=i.contains?"":"$";let a=`${n}(?:${e.output})${o}`;e&&!0===e.negated&&(a=`^(?!${a}).*$`);const c=l.toRegex(a,t);return!0===s&&(c.state=e),c},l.makeRe=(e,t={},r=!1,s=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(i.output=n.fastpaths(e,t)),i.output||(i=n(e,t)),l.compileRe(i,t,r,s)},l.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},l.constants=a,e.exports=l},4933:(e,t,r)=>{const s=r(3338),{CHAR_ASTERISK:i,CHAR_AT:n,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:a,CHAR_DOT:l,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:u,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:d,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:E}=r(7411),b=e=>e===u||e===o,R=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};e.exports=(e,t)=>{const r=t||{},A=e.length-1,C=!0===r.parts||!0===r.scanToEnd,w=[],S=[],T=[];let O,v,_=e,k=-1,x=0,L=0,P=!1,$=!1,I=!1,B=!1,D=!1,M=!1,F=!1,H=!1,N=!1,U=!1,G=0,j={value:"",depth:0,isGlob:!1};const K=()=>k>=A,W=()=>(O=v,_.charCodeAt(++k));for(;k<A;){let e;if(v=W(),v!==o){if(!0===M||v===p){for(G++;!0!==K()&&(v=W());)if(v!==o)if(v!==p){if(!0!==M&&v===l&&(v=W())===l){if(P=j.isBrace=!0,I=j.isGlob=!0,U=!0,!0===C)continue;break}if(!0!==M&&v===a){if(P=j.isBrace=!0,I=j.isGlob=!0,U=!0,!0===C)continue;break}if(v===m&&(G--,0===G)){M=!1,P=j.isBrace=!0,U=!0;break}}else G++;else F=j.backslashes=!0,W();if(!0===C)continue;break}if(v!==u){if(!0!==r.noext){if(!0===(v===d||v===n||v===i||v===g||v===c)&&_.charCodeAt(k+1)===h){if(I=j.isGlob=!0,B=j.isExtglob=!0,U=!0,v===c&&k===x&&(N=!0),!0===C){for(;!0!==K()&&(v=W());)if(v!==o){if(v===y){I=j.isGlob=!0,U=!0;break}}else F=j.backslashes=!0,v=W();continue}break}}if(v===i){if(O===i&&(D=j.isGlobstar=!0),I=j.isGlob=!0,U=!0,!0===C)continue;break}if(v===g){if(I=j.isGlob=!0,U=!0,!0===C)continue;break}if(v===f){for(;!0!==K()&&(e=W());)if(e!==o){if(e===E){$=j.isBracket=!0,I=j.isGlob=!0,U=!0;break}}else F=j.backslashes=!0,W();if(!0===C)continue;break}if(!0===r.nonegate||v!==c||k!==x){if(!0!==r.noparen&&v===h){if(I=j.isGlob=!0,!0===C){for(;!0!==K()&&(v=W());)if(v!==h){if(v===y){U=!0;break}}else F=j.backslashes=!0,v=W();continue}break}if(!0===I){if(U=!0,!0===C)continue;break}}else H=j.negated=!0,x++}else{if(w.push(k),S.push(j),j={value:"",depth:0,isGlob:!1},!0===U)continue;if(O===l&&k===x+1){x+=2;continue}L=k+1}}else F=j.backslashes=!0,v=W(),v===p&&(M=!0)}!0===r.noext&&(B=!1,I=!1);let Y=_,z="",q="";x>0&&(z=_.slice(0,x),_=_.slice(x),L-=x),Y&&!0===I&&L>0?(Y=_.slice(0,L),q=_.slice(L)):!0===I?(Y="",q=_):Y=_,Y&&""!==Y&&"/"!==Y&&Y!==_&&b(Y.charCodeAt(Y.length-1))&&(Y=Y.slice(0,-1)),!0===r.unescape&&(q&&(q=s.removeBackslashes(q)),Y&&!0===F&&(Y=s.removeBackslashes(Y)));const V={prefix:z,input:e,start:x,base:Y,glob:q,isBrace:P,isBracket:$,isGlob:I,isExtglob:B,isGlobstar:D,negated:H,negatedExtglob:N};if(!0===r.tokens&&(V.maxDepth=0,b(v)||S.push(j),V.tokens=S),!0===r.parts||!0===r.tokens){let t;for(let s=0;s<w.length;s++){const i=t?t+1:x,n=w[s],o=e.slice(i,n);r.tokens&&(0===s&&0!==x?(S[s].isPrefix=!0,S[s].value=z):S[s].value=o,R(S[s]),V.maxDepth+=S[s].depth),0===s&&""===o||T.push(o),t=n}if(t&&t+1<e.length){const s=e.slice(t+1);T.push(s),r.tokens&&(S[S.length-1].value=s,R(S[S.length-1]),V.maxDepth+=S[S.length-1].depth)}V.slashes=w,V.parts=T}return V}},3338:(e,t,r)=>{const s=r(1017),i="win32"===process.platform,{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:l}=r(7411);t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>a.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(l,"\\$1"),t.toPosixSlashes=e=>e.replace(n,"/"),t.removeBackslashes=e=>e.replace(o,(e=>"\\"===e?"":e)),t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===i||"\\"===s.sep,t.escapeLast=(e,r,s)=>{const i=e.lastIndexOf(r,s);return-1===i?e:"\\"===e[i-1]?t.escapeLast(e,r,i-1):`${e.slice(0,i)}\\${e.slice(i)}`},t.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},t.wrapOutput=(e,t={},r={})=>{let s=`${r.contains?"":"^"}(?:${e})${r.contains?"":"$"}`;return!0===t.negated&&(s=`(?:^(?!${s}).*$)`),s}},5417:(e,t,r)=>{String.prototype.startsWith||(String.prototype.startsWith=function(e){return this.substring(0,e.length)===e});var s=r(3978);e.exports=function(e,t,r){var i,n,o;if("function"==typeof t&&(r=t,t=void 0),"function"!=typeof r)return i=s,n=e,o=t,new Promise((function(e,t){i(n,o,(function(r,s){if(r)return t(r);e(s)}))}));s(e,t,r)}},5217:(e,t,r)=>{var s=r(2081).spawn;e.exports=function(e,t,r,i){"function"==typeof r&&(i=r,r=void 0);var n=!1,o=s(e,t,r),a="",l="";o.stdout.on("data",(function(e){a+=e.toString()})),o.stderr.on("data",(function(e){l+=e.toString()})),o.on("error",(function(e){n||(n=!0,i(new Error(e)))})),o.on("close",(function(e){if(!n){if(n=!0,l=function(e){if(e)return(e=(e=e.trim()).replace(/your \d+x\d+ screen size is bogus\. expect trouble/gi,"")).trim()}(l))return i(new Error(l));i(null,a,e)}}))}},8594:(e,t,r)=>{var s=r(2037),i={ps:()=>r(1694),wmic:()=>r(4010)},n=s.platform();n.startsWith("win")&&(n="win");var o={darwin:"ps",sunos:"ps",freebsd:"ps",netbsd:"ps",win:"wmic",linux:"ps",aix:"ps"}[n];e.exports=function(e){void 0===o&&e(new Error(s.platform()+" is not supported yet, please open an issue (https://github.com/simonepri/pidtree)")),i[o]()(e)}},3978:(e,t,r)=>{var s=r(8594);e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),"object"!=typeof t&&(t={}),e=parseInt(e,10),isNaN(e)||e<-1?r(new TypeError("The pid provided is invalid")):s((function(s,i){if(s)r(s);else if(-1!==e){for(var n,o=0;o<i.length;o++){if(i[o][1]===e){n=t.advanced?{ppid:i[o][0],pid:e}:e;break}i[o][0]===e&&(n=t.advanced?{pid:e}:e)}if(n){for(var a={};i.length>0;){var l=i.pop();a[l[0]]?a[l[0]].push(l[1]):a[l[0]]=[l[1]]}for(var c=0,u=[n];c<u.length;){var p=t.advanced?u[c++].pid:u[c++];if(a[p]){for(var h=a[p].length,f=0;f<h;f++)u.push(t.advanced?{ppid:p,pid:a[p][f]}:a[p][f]);delete a[p]}}t.root||u.shift(),r(null,u)}else r(new Error("No matching pid found"))}else{for(var d=0;d<i.length;d++)i[d]=t.advanced?{ppid:i[d][0],pid:i[d][1]}:i[d]=i[d][1];r(null,i)}}))}},1694:(e,t,r)=>{var s=r(2037),i=r(5217);e.exports=function(e){i("ps",["-A","-o","ppid,pid"],(function(t,r,i){if(t)return e(t);if(0!==i)return e(new Error("pidtree ps command exited with code "+i));try{r=r.split(s.EOL);for(var n=[],o=1;o<r.length;o++)r[o]=r[o].trim(),r[o]&&(r[o]=r[o].split(/\s+/),r[o][0]=parseInt(r[o][0],10),r[o][1]=parseInt(r[o][1],10),n.push(r[o]));e(null,n)}catch(t){e(t)}}))}},4010:(e,t,r)=>{var s=r(2037),i=r(5217);e.exports=function(e){i("wmic",["PROCESS","get","ParentProcessId,ProcessId"],{windowsHide:!0,windowsVerbatimArguments:!0},(function(t,r,i){if(t)e(t);else if(0===i)try{r=r.split(s.EOL);for(var n=[],o=1;o<r.length;o++)r[o]=r[o].trim(),r[o]&&(r[o]=r[o].split(/\s+/),r[o][0]=parseInt(r[o][0],10),r[o][1]=parseInt(r[o][1],10),n.push(r[o]));e(null,n)}catch(t){e(t)}else e(new Error("pidtree wmic command exited with code "+i))}))}},7152:e=>{function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){return(e=e||{}).circles?function(e){var r=[],s=[];return e.proto?function e(n){if("object"!=typeof n||null===n)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return i(n,e);if(n instanceof Map)return new Map(i(Array.from(n),e));if(n instanceof Set)return new Set(i(Array.from(n),e));var o={};for(var a in r.push(n),s.push(o),n){var l=n[a];if("object"!=typeof l||null===l)o[a]=l;else if(l instanceof Date)o[a]=new Date(l);else if(l instanceof Map)o[a]=new Map(i(Array.from(l),e));else if(l instanceof Set)o[a]=new Set(i(Array.from(l),e));else if(ArrayBuffer.isView(l))o[a]=t(l);else{var c=r.indexOf(l);o[a]=-1!==c?s[c]:e(l)}}return r.pop(),s.pop(),o}:function e(n){if("object"!=typeof n||null===n)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return i(n,e);if(n instanceof Map)return new Map(i(Array.from(n),e));if(n instanceof Set)return new Set(i(Array.from(n),e));var o={};for(var a in r.push(n),s.push(o),n)if(!1!==Object.hasOwnProperty.call(n,a)){var l=n[a];if("object"!=typeof l||null===l)o[a]=l;else if(l instanceof Date)o[a]=new Date(l);else if(l instanceof Map)o[a]=new Map(i(Array.from(l),e));else if(l instanceof Set)o[a]=new Set(i(Array.from(l),e));else if(ArrayBuffer.isView(l))o[a]=t(l);else{var c=r.indexOf(l);o[a]=-1!==c?s[c]:e(l)}}return r.pop(),s.pop(),o};function i(e,i){for(var n=Object.keys(e),o=new Array(n.length),a=0;a<n.length;a++){var l=n[a],c=e[l];if("object"!=typeof c||null===c)o[l]=c;else if(c instanceof Date)o[l]=new Date(c);else if(ArrayBuffer.isView(c))o[l]=t(c);else{var u=r.indexOf(c);o[l]=-1!==u?s[u]:i(c)}}return o}}(e):e.proto?function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return r(s,e);if(s instanceof Map)return new Map(r(Array.from(s),e));if(s instanceof Set)return new Set(r(Array.from(s),e));var i={};for(var n in s){var o=s[n];"object"!=typeof o||null===o?i[n]=o:o instanceof Date?i[n]=new Date(o):o instanceof Map?i[n]=new Map(r(Array.from(o),e)):o instanceof Set?i[n]=new Set(r(Array.from(o),e)):ArrayBuffer.isView(o)?i[n]=t(o):i[n]=e(o)}return i}:function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return r(s,e);if(s instanceof Map)return new Map(r(Array.from(s),e));if(s instanceof Set)return new Set(r(Array.from(s),e));var i={};for(var n in s)if(!1!==Object.hasOwnProperty.call(s,n)){var o=s[n];"object"!=typeof o||null===o?i[n]=o:o instanceof Date?i[n]=new Date(o):o instanceof Map?i[n]=new Map(r(Array.from(o),e)):o instanceof Set?i[n]=new Set(r(Array.from(o),e)):ArrayBuffer.isView(o)?i[n]=t(o):i[n]=e(o)}return i};function r(e,r){for(var s=Object.keys(e),i=new Array(s.length),n=0;n<s.length;n++){var o=s[n],a=e[o];"object"!=typeof a||null===a?i[o]=a:a instanceof Date?i[o]=new Date(a):ArrayBuffer.isView(a)?i[o]=t(a):i[o]=r(a)}return i}}},7013:(e,t,r)=>{const s=r(2037),i=r(9248),n=process.env;let o;function a(e){const t=function(e){if(!1===o)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==o)return 0;const t=o?1:0;if("win32"===process.platform){const e=s.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in n))||"codeship"===n.CI_NAME?1:t;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if("truecolor"===n.COLORTERM)return 3;if("TERM_PROGRAM"in n){const e=parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)||"COLORTERM"in n?1:(n.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}i("no-color")||i("no-colors")||i("color=false")?o=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(o=!0),"FORCE_COLOR"in n&&(o=0===n.FORCE_COLOR.length||0!==parseInt(n.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},9248:e=>{e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",s=t.indexOf(r+e),i=t.indexOf("--");return-1!==s&&(-1===i||s<i)}},1914:(e,t,r)=>{const s=r(1346),i=(e,t,r)=>{if(!1===s(e))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===t||e===t)return String(e);if(!1===s(t))throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};"boolean"==typeof n.strictZeros&&(n.relaxZeros=!1===n.strictZeros);let l=e+":"+t+"="+String(n.relaxZeros)+String(n.shorthand)+String(n.capture)+String(n.wrap);if(i.cache.hasOwnProperty(l))return i.cache[l].result;let c=Math.min(e,t),u=Math.max(e,t);if(1===Math.abs(c-u)){let r=e+"|"+t;return n.capture?`(${r})`:!1===n.wrap?r:`(?:${r})`}let p=d(e)||d(t),h={min:e,max:t,a:c,b:u},f=[],g=[];if(p&&(h.isPadded=p,h.maxLen=String(h.max).length),c<0){g=o(u<0?Math.abs(u):1,Math.abs(c),h,n),c=h.a=0}return u>=0&&(f=o(c,u,h,n)),h.negatives=g,h.positives=f,h.result=function(e,t,r){let s=a(e,t,"-",!1,r)||[],i=a(t,e,"",!1,r)||[],n=a(e,t,"-?",!0,r)||[];return s.concat(n).concat(i).join("|")}(g,f,n),!0===n.capture?h.result=`(${h.result})`:!1!==n.wrap&&f.length+g.length>1&&(h.result=`(?:${h.result})`),i.cache[l]=h,h.result};function n(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let s=function(e,t){let r=[];for(let s=0;s<e.length;s++)r.push([e[s],t[s]]);return r}(e,t),i=s.length,n="",o=0;for(let e=0;e<i;e++){let[t,i]=s[e];t===i?n+=t:"0"!==t||"9"!==i?n+=f(t,i,r):o++}return o&&(n+=!0===r.shorthand?"\\d":"[0-9]"),{pattern:n,count:[o],digits:i}}function o(e,t,r,s){let i,o=function(e,t){let r=1,s=1,i=u(e,r),n=new Set([t]);for(;e<=i&&i<=t;)n.add(i),r+=1,i=u(e,r);for(i=p(t+1,s)-1;e<i&&i<=t;)n.add(i),s+=1,i=p(t+1,s)-1;return n=[...n],n.sort(l),n}(e,t),a=[],c=e;for(let e=0;e<o.length;e++){let t=o[e],l=n(String(c),String(t),s),u="";r.isPadded||!i||i.pattern!==l.pattern?(r.isPadded&&(u=g(t,r,s)),l.string=u+l.pattern+h(l.count),a.push(l),c=t+1,i=l):(i.count.length>1&&i.count.pop(),i.count.push(l.count[0]),i.string=i.pattern+h(i.count),c=t+1)}return a}function a(e,t,r,s,i){let n=[];for(let i of e){let{string:e}=i;s||c(t,"string",e)||n.push(r+e),s&&c(t,"string",e)&&n.push(r+e)}return n}function l(e,t){return e>t?1:t>e?-1:0}function c(e,t,r){return e.some((e=>e[t]===r))}function u(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function p(e,t){return e-e%Math.pow(10,t)}function h(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function f(e,t,r){return`[${e}${t-e==1?"":"-"}${t}]`}function d(e){return/^-?(0+)\d/.test(e)}function g(e,t,r){if(!t.isPadded)return e;let s=Math.abs(t.maxLen-String(e).length),i=!1!==r.relaxZeros;switch(s){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${s}}`:`0{${s}}`}}i.cache={},i.clearCache=()=>i.cache={},e.exports=i},2471:(e,t,r)=>{r.d(t,{default:()=>Gs});var s=r(445),i=r(7261);const n=(e=0)=>t=>`\x1b[${t+e}m`,o=(e=0)=>t=>`\x1b[${38+e};5;${t}m`,a=(e=0)=>(t,r,s)=>`\x1b[${38+e};2;${t};${r};${s}m`,l={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(l.modifier),Object.keys(l.color),Object.keys(l.bgColor);const c=function(){const e=new Map;for(const[t,r]of Object.entries(l)){for(const[t,s]of Object.entries(r))l[t]={open:`\x1b[${s[0]}m`,close:`\x1b[${s[1]}m`},r[t]=l[t],e.set(s[0],s[1]);Object.defineProperty(l,t,{value:r,enumerable:!1})}return Object.defineProperty(l,"codes",{value:e,enumerable:!1}),l.color.close="\x1b[39m",l.bgColor.close="\x1b[49m",l.color.ansi=n(),l.color.ansi256=o(),l.color.ansi16m=a(),l.bgColor.ansi=n(10),l.bgColor.ansi256=o(10),l.bgColor.ansi16m=a(10),Object.defineProperties(l,{rgbToAnsi256:{value:(e,t,r)=>e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[r]=t;3===r.length&&(r=[...r].map((e=>e+e)).join(""));const s=Number.parseInt(r,16);return[s>>16&255,s>>8&255,255&s]},enumerable:!1},hexToAnsi256:{value:e=>l.rgbToAnsi256(...l.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return e-8+90;let t,r,s;if(e>=232)t=(10*(e-232)+8)/255,r=t,s=t;else{const i=(e-=16)%36;t=Math.floor(e/36)/5,r=Math.floor(i/6)/5,s=i%6/5}const i=2*Math.max(t,r,s);if(0===i)return 30;let n=30+(Math.round(s)<<2|Math.round(r)<<1|Math.round(t));return 2===i&&(n+=60),n},enumerable:!1},rgbToAnsi:{value:(e,t,r)=>l.ansi256ToAnsi(l.rgbToAnsi256(e,t,r)),enumerable:!1},hexToAnsi:{value:e=>l.ansi256ToAnsi(l.hexToAnsi256(e)),enumerable:!1}}),l}(),u=c;var p=r(7742),h=r(612),f=r(5997);function d(e,t=(globalThis.Deno?globalThis.Deno.args:p.argv)){const r=e.startsWith("-")?"":1===e.length?"-":"--",s=t.indexOf(r+e),i=t.indexOf("--");return-1!==s&&(-1===i||s<i)}const{env:g}=p;let m;function y(e,{streamIsTTY:t,sniffFlags:r=!0}={}){const s=function(){if("FORCE_COLOR"in g)return"true"===g.FORCE_COLOR?1:"false"===g.FORCE_COLOR?0:0===g.FORCE_COLOR.length?1:Math.min(Number.parseInt(g.FORCE_COLOR,10),3)}();void 0!==s&&(m=s);const i=r?m:s;if(0===i)return 0;if(r){if(d("color=16m")||d("color=full")||d("color=truecolor"))return 3;if(d("color=256"))return 2}if("TF_BUILD"in g&&"AGENT_NAME"in g)return 1;if(e&&!t&&void 0===i)return 0;const n=i||0;if("dumb"===g.TERM)return n;if("win32"===p.platform){const e=h.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in g)return"GITHUB_ACTIONS"in g||"GITEA_ACTIONS"in g?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((e=>e in g))||"codeship"===g.CI_NAME?1:n;if("TEAMCITY_VERSION"in g)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(g.TEAMCITY_VERSION)?1:0;if("truecolor"===g.COLORTERM)return 3;if("xterm-kitty"===g.TERM)return 3;if("TERM_PROGRAM"in g){const e=Number.parseInt((g.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(g.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(g.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(g.TERM)||"COLORTERM"in g?1:n}function E(e,t={}){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(y(e,{streamIsTTY:e&&e.isTTY,...t}))}d("no-color")||d("no-colors")||d("color=false")||d("color=never")?m=0:(d("color")||d("colors")||d("color=true")||d("color=always"))&&(m=1);const b={stdout:E({isTTY:f.isatty(1)}),stderr:E({isTTY:f.isatty(2)})};function R(e,t,r){let s=e.indexOf(t);if(-1===s)return e;const i=t.length;let n=0,o="";do{o+=e.slice(n,s)+t+r,n=s+i,s=e.indexOf(t,n)}while(-1!==s);return o+=e.slice(n),o}const{stdout:A,stderr:C}=b,w=Symbol("GENERATOR"),S=Symbol("STYLER"),T=Symbol("IS_EMPTY"),O=["ansi","ansi","ansi256","ansi16m"],v=Object.create(null);const _=e=>{const t=(...e)=>e.join(" ");return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=A?A.level:0;e.level=void 0===t.level?r:t.level})(t,e),Object.setPrototypeOf(t,k.prototype),t};function k(e){return _(e)}Object.setPrototypeOf(k.prototype,Function.prototype);for(const[e,t]of Object.entries(u))v[e]={get(){const r=I(this,$(t.open,t.close,this[S]),this[T]);return Object.defineProperty(this,e,{value:r}),r}};v.visible={get(){const e=I(this,this[S],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const x=(e,t,r,...s)=>"rgb"===e?"ansi16m"===t?u[r].ansi16m(...s):"ansi256"===t?u[r].ansi256(u.rgbToAnsi256(...s)):u[r].ansi(u.rgbToAnsi(...s)):"hex"===e?x("rgb",t,r,...u.hexToRgb(...s)):u[r][e](...s),L=["rgb","hex","ansi256"];for(const e of L){v[e]={get(){const{level:t}=this;return function(...r){const s=$(x(e,O[t],"color",...r),u.color.close,this[S]);return I(this,s,this[T])}}};v["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...r){const s=$(x(e,O[t],"bgColor",...r),u.bgColor.close,this[S]);return I(this,s,this[T])}}}}const P=Object.defineProperties((()=>{}),{...v,level:{enumerable:!0,get(){return this[w].level},set(e){this[w].level=e}}}),$=(e,t,r)=>{let s,i;return void 0===r?(s=e,i=t):(s=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:s,closeAll:i,parent:r}},I=(e,t,r)=>{const s=(...e)=>B(s,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(s,P),s[w]=e,s[S]=t,s[T]=r,s},B=(e,t)=>{if(e.level<=0||!t)return e[T]?"":t;let r=e[S];if(void 0===r)return t;const{openAll:s,closeAll:i}=r;if(t.includes("\x1b"))for(;void 0!==r;)t=R(t,r.close,r.open),r=r.parent;const n=t.indexOf("\n");return-1!==n&&(t=function(e,t,r,s){let i=0,n="";do{const o="\r"===e[s-1];n+=e.slice(i,o?s-1:s)+t+(o?"\r\n":"\n")+r,i=s+1,s=e.indexOf("\n",i)}while(-1!==s);return n+=e.slice(i),n}(t,i,s,n)),s+t+i};Object.defineProperties(k.prototype,v);const D=k(),M=(k({level:C?C.level:0}),D);const F=r(161);var H=r(6224),N=r.t(H,2);const{env:U={},argv:G=[],platform:j=""}="undefined"==typeof process?{}:process,K="NO_COLOR"in U||G.includes("--no-color"),W="FORCE_COLOR"in U||G.includes("--color"),Y="win32"===j,z="dumb"===U.TERM,q=N&&H.isatty&&H.isatty(1)&&U.TERM&&!z,V=!K&&(W||Y&&!z||q||"CI"in U&&("GITHUB_ACTIONS"in U||"GITLAB_CI"in U||"CIRCLECI"in U)),Q=(e,t,r,s,i=t.substring(0,e)+s,n=t.substring(e+r.length),o=n.indexOf(r))=>i+(o<0?n:Q(o,n,r,s)),X=(e,t,r=e,s=e.length+1)=>i=>i||""!==i&&void 0!==i?((e,t,r,s,i)=>e<0?r+t+s:r+Q(e,t,s,i)+s)((""+i).indexOf(t,s),i,e,t,r):"",Z=(e,t,r)=>X(`\x1b[${e}m`,`\x1b[${t}m`,r),J={reset:Z(0,0),bold:Z(1,22,"\x1b[22m\x1b[1m"),dim:Z(2,22,"\x1b[22m\x1b[2m"),italic:Z(3,23),underline:Z(4,24),inverse:Z(7,27),hidden:Z(8,28),strikethrough:Z(9,29),black:Z(30,39),red:Z(31,39),green:Z(32,39),yellow:Z(33,39),blue:Z(34,39),magenta:Z(35,39),cyan:Z(36,39),white:Z(37,39),gray:Z(90,39),bgBlack:Z(40,49),bgRed:Z(41,49),bgGreen:Z(42,49),bgYellow:Z(43,49),bgBlue:Z(44,49),bgMagenta:Z(45,49),bgCyan:Z(46,49),bgWhite:Z(47,49),blackBright:Z(90,39),redBright:Z(91,39),greenBright:Z(92,39),yellowBright:Z(93,39),blueBright:Z(94,39),magentaBright:Z(95,39),cyanBright:Z(96,39),whiteBright:Z(97,39),bgBlackBright:Z(100,49),bgRedBright:Z(101,49),bgGreenBright:Z(102,49),bgYellowBright:Z(103,49),bgBlueBright:Z(104,49),bgMagentaBright:Z(105,49),bgCyanBright:Z(106,49),bgWhiteBright:Z(107,49)},ee=({useColor:e=V}={})=>e?J:Object.keys(J).reduce(((e,t)=>({...e,[t]:String})),{}),{reset:te,bold:re,dim:se,italic:ie,underline:ne,inverse:oe,hidden:ae,strikethrough:le,black:ce,red:ue,green:pe,yellow:he,blue:fe,magenta:de,cyan:ge,white:me,gray:ye,bgBlack:Ee,bgRed:be,bgGreen:Re,bgYellow:Ae,bgBlue:Ce,bgMagenta:we,bgCyan:Se,bgWhite:Te,blackBright:Oe,redBright:ve,greenBright:_e,yellowBright:ke,blueBright:xe,magentaBright:Le,cyanBright:Pe,whiteBright:$e,bgBlackBright:Ie,bgRedBright:Be,bgGreenBright:De,bgYellowBright:Me,bgBlueBright:Fe,bgMagentaBright:He,bgCyanBright:Ne,bgWhiteBright:Ue}=ee();var Ge=r(3837),je=r(2037),Ke=r(1576),We=r(2781),Ye=r(7152),ze=r(6113),qe=Object.defineProperty,Ve=(e,t)=>qe(e,"name",{value:t,configurable:!0}),Qe={CURSOR_HIDE:"\x1b[?25l",CURSOR_SHOW:"\x1b[?25h"},Xe=(e=>(e.WAITING="WAITING",e.STARTED="STARTED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.SKIPPED="SKIPPED",e.ROLLING_BACK="ROLLING_BACK",e.ROLLED_BACK="ROLLED_BACK",e.RETRY="RETRY",e.PAUSED="PAUSED",e.PROMPT="PROMPT",e.PROMPT_COMPLETED="PROMPT_COMPLETED",e.PROMPT_FAILED="PROMPT_FAILED",e))(Xe||{}),Ze=class{static{Ve(this,"EventManager")}emitter=new F;emit(e,t){this.emitter.emit(e,t)}on(e,t){this.emitter.addListener(e,t)}once(e,t){this.emitter.once(e,t)}off(e,t){this.emitter.off(e,t)}complete(){this.emitter.removeAllListeners()}};(class{static{Ve(this,"BaseEventMap")}});function Je(e){return!!e&&"function"==typeof e.lift&&"function"==typeof e.subscribe}function et(){return!!process.env.LISTR_FORCE_UNICODE||"win32"!==process.platform||!!process.env.CI||!!process.env.WT_SESSION||"vscode"===process.env.TERM_PROGRAM||"xterm-256color"===process.env.TERM||"alacritty"===process.env.TERM}Ve(Je,"isObservable"),Ve(et,"isUnicodeSupported");var tt=/\u0007/;function rt(e){return String(e).replace(new RegExp("(?:\\u001b|\\u009b)\\[[\\=><~/#&.:=?%@~_-]*[0-9]*[\\a-ln-tqyz=><~/#&.:=?%@~_-]+","gmi"),"").replace(new RegExp(tt,"gmi"),"").trim()}Ve(rt,"cleanseAnsi");var st=ee();function it(e,t){return e.replace(/^(?!\s*$)/gm," ".repeat(t))}Ve(it,"indent");var nt={warning:"\u26a0",cross:"\u2716",arrowDown:"\u2193",tick:"\u2714",arrowRight:"\u2192",pointer:"\u276f",checkboxOn:"\u2612",arrowLeft:"\u2190",squareSmallFilled:"\u25fc",pointerSmall:"\u203a"},ot={...nt,warning:"\u203c",cross:"\xd7",tick:"\u221a",pointer:">",checkboxOn:"[\xd7]",squareSmallFilled:"\u25a0"},at=et()?nt:ot;function lt(e,...t){return(0,Ge.format)(String(e),...t)}Ve(lt,"splat");var ct={STARTED:at.pointer,FAILED:at.cross,SKIPPED:at.arrowDown,COMPLETED:at.tick,OUTPUT:at.pointerSmall,TITLE:at.arrowRight,RETRY:at.warning,ROLLBACK:at.arrowLeft,PAUSED:at.squareSmallFilled},ut={STARTED:st.yellow,FAILED:st.red,SKIPPED:st.yellow,COMPLETED:st.green,RETRY:st.yellowBright,ROLLBACK:st.redBright,PAUSED:st.yellowBright},pt=["RETRY","ROLLBACK","FAILED"],ht=class{constructor(e){this.options=e,this.options={useIcons:!0,toStderr:[],...e??{}},this.options.fields??={},this.options.fields.prefix??=[],this.options.fields.suffix??=[],this.process=this.options.processOutput??new gt}static{Ve(this,"ListrLogger")}process;log(e,t,r){const s=this.format(e,t,r);this.options.toStderr.includes(e)?this.process.toStderr(s):this.process.toStdout(s)}toStdout(e,t,r=!0){this.process.toStdout(this.format(null,e,t),r)}toStderr(e,t,r=!0){this.process.toStderr(this.format(null,e,t),r)}wrap(e,t){return e?this.applyFormat(`[${e}]`,t):e}splat(...e){const t=e.shift()??"";return 0===e.length?t:lt(t,e)}suffix(e,...t){return t.filter(Boolean).forEach((t=>{if(e+=this.spacing(e),"string"==typeof t)e+=this.wrap(t);else if("object"==typeof t){if(t.args??=[],"function"==typeof t.condition?!t.condition(...t.args):!(t.condition??1))return e;e+=this.wrap("function"==typeof t.field?t.field(...t.args):t.field,{format:t?.format(...t.args)})}})),e}prefix(e,...t){return t.filter(Boolean).forEach((t=>{if(e=this.spacing(e)+e,"string"==typeof t)e=this.wrap(t)+e;else if("object"==typeof t){if(t.args??=[],"function"==typeof t.condition?!t.condition(...t.args):!(t.condition??1))return e;e=this.wrap("function"==typeof t.field?t.field(...t.args):t.field,{format:t?.format()})+e}})),e}fields(e,t){return this.options?.fields?.prefix&&(e=this.prefix(e,...this.options.fields.prefix)),t?.prefix&&(e=this.prefix(e,...t.prefix)),t?.suffix&&(e=this.suffix(e,...t.suffix)),this.options?.fields?.suffix&&(e=this.suffix(e,...this.options.fields.suffix)),e}icon(e,t){if(!e)return null;t||=this.options.icon?.[e];const r=this.options.color?.[e];return t&&r&&(t=r(t)),t}format(e,t,r){return Array.isArray(t)||(t=[t]),t=this.splat(t.shift(),...t).toString().split(je.EOL).filter((e=>!e||""!==e.trim())).map((t=>this.style(e,this.fields(t,{prefix:Array.isArray(r?.prefix)?r.prefix:[r?.prefix],suffix:Array.isArray(r?.suffix)?r.suffix:[r?.suffix]})))).join(je.EOL)}style(e,t){if(!e||!t)return t;const r=this.icon(e,!this.options.useIcons&&this.wrap(e));return r&&(t=r+" "+t),t}applyFormat(e,t){return t?.format?t.format(e):e}spacing(e){return void 0===e||""===e.trim()?"":" "}},ft=class{constructor(e){this.options=e}static{Ve(this,"ProcessOutputBuffer")}buffer=[];decoder=new Ke.StringDecoder;get all(){return this.buffer}get last(){return this.buffer.at(-1)}get length(){return this.buffer.length}write(e,...t){const r=t[t.length-1];return this.buffer.push({time:Date.now(),stream:this.options?.stream,entry:this.decoder.write("string"==typeof e?Buffer.from(e,"string"==typeof t[0]?t[0]:void 0):Buffer.from(e))}),this.options?.limit&&(this.buffer=this.buffer.slice(-this.options.limit)),"function"==typeof r&&r(),!0}reset(){this.buffer=[]}},dt=class{constructor(e){this.stream=e,this.method=e.write,this.buffer=new ft({stream:e})}static{Ve(this,"ProcessOutputStream")}method;buffer;get out(){return Object.assign({},this.stream,{write:this.write.bind(this)})}hijack(){this.stream.write=this.buffer.write.bind(this.buffer)}release(){this.stream.write=this.method;const e=[...this.buffer.all];return this.buffer.reset(),e}write(...e){return this.method.apply(this.stream,e)}},gt=class{constructor(e,t,r){this.options=r,this.stream={stdout:new dt(e??process.stdout),stderr:new dt(t??process.stderr)},this.options={dump:["stdout","stderr"],leaveEmptyLine:!0,...r}}static{Ve(this,"ProcessOutput")}stream;active;get stdout(){return this.stream.stdout.out}get stderr(){return this.stream.stderr.out}hijack(){if(this.active)throw new Error("ProcessOutput has been already hijacked!");this.stream.stdout.write(Qe.CURSOR_HIDE),Object.values(this.stream).forEach((e=>e.hijack())),this.active=!0}release(){const e=Object.entries(this.stream).map((([e,t])=>({name:e,buffer:t.release()}))).filter((e=>this.options.dump.includes(e.name))).flatMap((e=>e.buffer)).sort(((e,t)=>e.time-t.time)).map((e=>({...e,entry:rt(e.entry)}))).filter((e=>e.entry));e.length>0&&(this.options.leaveEmptyLine&&this.stdout.write(je.EOL),e.forEach((e=>{(e.stream??this.stdout).write(e.entry+je.EOL)}))),this.stream.stdout.write(Qe.CURSOR_SHOW),this.active=!1}toStdout(e,t=!0){return t&&(e+=je.EOL),this.stream.stdout.write(e)}toStderr(e,t=!0){return t&&(e+=je.EOL),this.stream.stderr.write(e)}};function mt(e){const t=new We.Writable;return t.write=t=>(e(t.toString()),!0),t}Ve(mt,"createWritable");(class{constructor(e,t){this.task=e,this.wrapper=t}static{Ve(this,"ListrPromptAdapter")}state;reportStarted(){if(this.state=this.task.state,this.task.prompt)throw new Ht("There is already an active prompt attached to this task which may not be cleaned up properly.");this.task.prompt=this,this.task.state$="PROMPT"}reportFailed(){this.task.state$="PROMPT_FAILED",this.restoreState()}reportCompleted(){this.task.state$="PROMPT_COMPLETED",this.restoreState()}restoreState(){this.task.prompt=void 0,this.state&&(this.task.state=this.state)}});var yt=class{static{Ve(this,"Spinner")}spinner=et()?["\u280b","\u2819","\u2839","\u2838","\u283c","\u2834","\u2826","\u2827","\u2807","\u280f"]:["-","\\","|","/"];id;spinnerPosition=0;spin(){this.spinnerPosition=++this.spinnerPosition%this.spinner.length}fetch(){return this.spinner[this.spinnerPosition]}isRunning(){return!!this.id}start(e,t=100){this.id=setInterval((()=>{this.spin(),e&&e()}),t)}stop(){clearInterval(this.id)}},Et={SKIPPED_WITH_COLLAPSE:at.arrowDown,SKIPPED_WITHOUT_COLLAPSE:at.warning,OUTPUT:at.pointerSmall,OUTPUT_WITH_BOTTOMBAR:at.pointerSmall,PENDING:at.pointer,COMPLETED:at.tick,COMPLETED_WITH_FAILED_SUBTASKS:at.warning,COMPLETED_WITH_SISTER_TASKS_FAILED:at.squareSmallFilled,RETRY:at.warning,ROLLING_BACK:at.warning,ROLLED_BACK:at.arrowLeft,FAILED:at.cross,FAILED_WITH_SUBTASKS:at.pointer,WAITING:at.squareSmallFilled,PAUSED:at.squareSmallFilled},bt={SKIPPED_WITH_COLLAPSE:st.yellow,SKIPPED_WITHOUT_COLLAPSE:st.yellow,PENDING:st.yellow,COMPLETED:st.green,COMPLETED_WITH_FAILED_SUBTASKS:st.yellow,COMPLETED_WITH_SISTER_TASKS_FAILED:st.red,RETRY:st.yellowBright,ROLLING_BACK:st.redBright,ROLLED_BACK:st.redBright,FAILED:st.red,FAILED_WITH_SUBTASKS:st.red,WAITING:st.dim,PAUSED:st.yellowBright};function Rt(e){const t=Math.floor(e/1e3),r=Math.floor(t/60);let s;return 0===t&&0===r&&(s=`0.${Math.floor(e/100)}s`),t>0&&(s=t%60+"s"),r>0&&(s=`${r}m${s}`),s}Ve(Rt,"parseTimer");var At={condition:!0,field:Rt,format:()=>st.dim};function Ct(){const e=new Date;return String(e.getHours()).padStart(2,"0")+":"+String(e.getMinutes()).padStart(2,"0")+":"+String(e.getSeconds()).padStart(2,"0")}Ve(Ct,"parseTimestamp");var wt=class e{constructor(t,r,s){this.tasks=t,this.options=r,this.events=s,this.options={...e.rendererOptions,...this.options,icon:{...Et,...r?.icon??{}},color:{...bt,...r?.color??{}}},this.spinner=this.options.spinner??new yt,this.logger=this.options.logger??new ht({useIcons:!0,toStderr:[]}),this.logger.options.icon=this.options.icon,this.logger.options.color=this.options.color}static{Ve(this,"DefaultRenderer")}static nonTTY=!1;static rendererOptions={indentation:2,clearOutput:!1,showSubtasks:!0,collapseSubtasks:!0,collapseSkips:!0,showSkipMessage:!0,suffixSkips:!1,collapseErrors:!0,showErrorMessage:!0,suffixRetries:!0,lazy:!1,removeEmptyLines:!0,formatOutput:"wrap",pausedTimer:{...At,format:()=>st.yellowBright}};static rendererTaskOptions={outputBar:!0};prompt;activePrompt;spinner;logger;updater;truncate;wrap;buffer={output:new Map,bottom:new Map};cache={render:new Map,rendererOptions:new Map,rendererTaskOptions:new Map};async render(){const{createLogUpdate:e}=await Promise.all([r.e(930),r.e(786)]).then(r.bind(r,5786)),{default:t}=await Promise.all([r.e(930),r.e(199)]).then(r.bind(r,9199)),{default:s}=await Promise.all([r.e(930),r.e(784)]).then(r.bind(r,7784));this.updater=e(this.logger.process.stdout),this.truncate=t,this.wrap=s,this.logger.process.hijack(),this.options?.lazy||this.spinner.start((()=>{this.update()})),this.events.on("SHOUD_REFRESH_RENDER",(()=>{this.update()}))}update(){this.updater(this.create())}end(){this.spinner.stop(),this.updater.clear(),this.updater.done(),this.options.clearOutput||this.logger.process.toStdout(this.create({prompt:!1})),this.logger.process.release()}create(e){e={tasks:!0,bottomBar:!0,prompt:!0,...e};const t=[],r=this.renderer(this.tasks),s=this.renderBottomBar(),i=this.renderPrompt();return e.tasks&&r.length>0&&t.push(...r),e.bottomBar&&s.length>0&&(t.length>0&&t.push(""),t.push(...s)),e.prompt&&i.length>0&&(t.length>0&&t.push(""),t.push(...i)),t.join(je.EOL)}style(e,t=!1){const r=this.cache.rendererOptions.get(e.id);if(e.isSkipped()){if(t||r.collapseSkips)return this.logger.icon("SKIPPED_WITH_COLLAPSE");if(!1===r.collapseSkips)return this.logger.icon("SKIPPED_WITHOUT_COLLAPSE")}if(t)return this.shouldOutputToBottomBar(e)?this.logger.icon("OUTPUT_WITH_BOTTOMBAR"):this.logger.icon("OUTPUT");if(e.hasSubtasks()){if(e.isStarted()||e.isPrompt()&&!1!==r.showSubtasks&&!e.subtasks.every((e=>!e.hasTitle())))return this.logger.icon("PENDING");if(e.isCompleted()&&e.subtasks.some((e=>e.hasFailed())))return this.logger.icon("COMPLETED_WITH_FAILED_SUBTASKS");if(e.hasFailed())return this.logger.icon("FAILED_WITH_SUBTASKS")}return e.isStarted()||e.isPrompt()?this.logger.icon("PENDING",!this.options?.lazy&&this.spinner.fetch()):e.isCompleted()?this.logger.icon("COMPLETED"):e.isRetrying()?this.logger.icon("RETRY",!this.options?.lazy&&this.spinner.fetch()):e.isRollingBack()?this.logger.icon("ROLLING_BACK",!this.options?.lazy&&this.spinner.fetch()):e.hasRolledBack()?this.logger.icon("ROLLED_BACK"):e.hasFailed()?this.logger.icon("FAILED"):e.isPaused()?this.logger.icon("PAUSED"):this.logger.icon("WAITING")}format(e,t,r){if(""===e.trim())return[];let s;t&&(e=t+" "+e);const i=(process.stdout.columns??80)-r*this.options.indentation-2;switch(this.options.formatOutput){case"truncate":s=e.split(je.EOL).map(((e,t)=>this.truncate(this.indent(e,t),i)));break;case"wrap":s=this.wrap(e,i,{hard:!0}).split(je.EOL).map(((e,t)=>this.indent(e,t)));break;default:throw new Ft("Format option for the renderer is wrong.")}return this.options.removeEmptyLines&&(s=s.filter(Boolean)),s.map((e=>it(e,r*this.options.indentation)))}shouldOutputToOutputBar(e){const t=this.cache.rendererTaskOptions.get(e.id).outputBar;return"number"==typeof t&&0!==t||"boolean"==typeof t&&!1!==t}shouldOutputToBottomBar(e){const t=this.cache.rendererTaskOptions.get(e.id).bottomBar;return"number"==typeof t&&0!==t||"boolean"==typeof t&&!1!==t||!e.hasTitle()}renderer(e,t=0){return e.flatMap((r=>{if(!r.isEnabled())return[];if(this.cache.render.has(r.id))return this.cache.render.get(r.id);this.calculate(r),this.setupBuffer(r);const s=this.cache.rendererOptions.get(r.id),i=this.cache.rendererTaskOptions.get(r.id),n=[];if(r.isPrompt()){if(this.activePrompt&&this.activePrompt!==r.id)throw new Ft("Only one prompt can be active at the given time, please re-evaluate your task design.");this.activePrompt||(r.on("PROMPT",(e=>{const t=rt(e);t&&(this.prompt=t)})),r.on("STATE",(e=>{("PROMPT_COMPLETED"===e||r.hasFinalized()||r.hasReset())&&(this.prompt=null,this.activePrompt=null,r.off("PROMPT"))})),this.activePrompt=r.id)}if(r.hasTitle()&&(!e.some((e=>e.hasFailed()))||r.hasFailed()||!1===r.options.exitOnError||r.isCompleted()||r.isSkipped()?r.hasFailed()&&s.collapseErrors?n.push(...this.format(!r.hasSubtasks()&&r.message.error&&s.showErrorMessage?r.message.error:r.title,this.style(r),t)):r.isSkipped()&&s.collapseSkips?n.push(...this.format(this.logger.suffix(r.message.skip&&s.showSkipMessage?r.message.skip:r.title,{field:"SKIPPED",condition:s.suffixSkips,format:()=>st.dim}),this.style(r),t)):r.isRetrying()?n.push(...this.format(this.logger.suffix(r.title,{field:`RETRY:${r.message.retry.count}`,format:()=>st.yellow,condition:s.suffixRetries}),this.style(r),t)):r.isCompleted()&&r.hasTitle()&&Pt(i.timer?.condition,r.message.duration)?n.push(...this.format(this.logger.suffix(r?.title,{...i.timer,args:[r.message.duration]}),this.style(r),t)):r.isPaused()?n.push(...this.format(this.logger.suffix(r.title,{...s.pausedTimer,args:[r.message.paused-Date.now()]}),this.style(r),t)):n.push(...this.format(r.title,this.style(r),t)):n.push(...this.format(r.title,this.logger.icon("COMPLETED_WITH_SISTER_TASKS_FAILED"),t))),r.hasSubtasks()&&s.showSubtasks||(!r.hasFailed()||!1!==s.collapseErrors||!s.showErrorMessage&&s.showSubtasks?!r.isSkipped()||!1!==s.collapseSkips||!s.showSkipMessage&&s.showSubtasks||n.push(...this.dump(r,t,"SKIPPED")):n.push(...this.dump(r,t,"FAILED"))),(r.isPending()||i.persistentOutput)&&n.push(...this.renderOutputBar(r,t)),!1!==s.showSubtasks&&r.hasSubtasks()&&(r.isPending()||r.hasFinalized()&&!r.hasTitle()||r.isCompleted()&&!1===s.collapseSubtasks&&!r.subtasks.some((e=>!0===this.cache.rendererOptions.get(e.id)?.collapseSubtasks))||r.subtasks.some((e=>!1===this.cache.rendererOptions.get(e.id)?.collapseSubtasks))||r.subtasks.some((e=>e.hasFailed()))||r.subtasks.some((e=>e.hasRolledBack())))){const e=r.hasTitle()?t+1:t,s=this.renderer(r.subtasks,e);n.push(...s)}return r.hasFinalized()&&(i.persistentOutput||(this.buffer.bottom.delete(r.id),this.buffer.output.delete(r.id))),r.isClosed()&&(this.cache.render.set(r.id,n),this.reset(r)),n}))}renderOutputBar(e,t){const r=this.buffer.output.get(e.id);return r?r.all.flatMap((r=>this.dump(e,t,"OUTPUT",r.entry))):[]}renderBottomBar(){return 0===this.buffer.bottom.size?[]:Array.from(this.buffer.bottom.values()).flatMap((e=>e.all)).sort(((e,t)=>e.time-t.time)).map((e=>e.entry))}renderPrompt(){return this.prompt?[this.prompt]:[]}calculate(t){if(this.cache.rendererOptions.has(t.id)&&this.cache.rendererTaskOptions.has(t.id))return;const r={...this.options,...t.rendererOptions};this.cache.rendererOptions.set(t.id,r),this.cache.rendererTaskOptions.set(t.id,{...e.rendererTaskOptions,timer:r.timer,...t.rendererTaskOptions})}setupBuffer(e){if(this.buffer.bottom.has(e.id)||this.buffer.output.has(e.id))return;const t=this.cache.rendererTaskOptions.get(e.id);this.shouldOutputToBottomBar(e)&&!this.buffer.bottom.has(e.id)?(this.buffer.bottom.set(e.id,new ft({limit:"number"==typeof t.bottomBar?t.bottomBar:1})),e.on("OUTPUT",(t=>{const r=this.dump(e,-1,"OUTPUT",t);this.buffer.bottom.get(e.id).write(r.join(je.EOL))})),e.on("STATE",(t=>{if("RETRY"===t)this.buffer.bottom.delete(e.id)}))):this.shouldOutputToOutputBar(e)&&!this.buffer.output.has(e.id)&&(this.buffer.output.set(e.id,new ft({limit:"number"==typeof t.outputBar?t.outputBar:1})),e.on("OUTPUT",(t=>{this.buffer.output.get(e.id).write(t)})),e.on("STATE",(t=>{if("RETRY"===t)this.buffer.output.delete(e.id)})))}reset(e){this.cache.rendererOptions.delete(e.id),this.cache.rendererTaskOptions.delete(e.id),this.buffer.output.delete(e.id)}dump(e,t,r="OUTPUT",s){if(!s)switch(r){case"OUTPUT":s=e.output;break;case"SKIPPED":s=e.message.skip;break;case"FAILED":s=e.message.error}return e.hasTitle()&&"FAILED"===r&&s===e.title||"string"!=typeof s?[]:("OUTPUT"===r&&(s=rt(s)),this.format(s,this.style(e,!0),t+1))}indent(e,t){return t>0?it(e.trim(),this.options.indentation):e.trim()}},St=class{constructor(e,t){this.tasks=e,this.options=t}static{Ve(this,"SilentRenderer")}static nonTTY=!0;static rendererOptions;static rendererTaskOptions;render(){}end(){}},Tt=class e{constructor(t,r){this.tasks=t,this.options=r,this.options={...e.rendererOptions,...r,icon:{...ct,...r?.icon??{}},color:{...ut,...r?.color??{}}},this.logger=this.options.logger??new ht({useIcons:!0,toStderr:pt}),this.logger.options.icon=this.options.icon,this.logger.options.color=this.options.color,this.options.timestamp&&this.logger.options.fields.prefix.unshift(this.options.timestamp)}static{Ve(this,"SimpleRenderer")}static nonTTY=!0;static rendererOptions={pausedTimer:{...At,field:e=>`PAUSED:${e}`,format:()=>st.yellowBright}};static rendererTaskOptions={};logger;cache={rendererOptions:new Map,rendererTaskOptions:new Map};end(){this.logger.process.release()}render(){this.renderer(this.tasks)}renderer(e){e.forEach((e=>{this.calculate(e),e.once("CLOSED",(()=>{this.reset(e)}));const t=this.cache.rendererOptions.get(e.id),r=this.cache.rendererTaskOptions.get(e.id);e.on("SUBTASK",(e=>{this.renderer(e)})),e.on("STATE",(t=>{if(e.hasTitle())if("STARTED"===t)this.logger.log("STARTED",e.title);else if("COMPLETED"===t){const t=r?.timer;this.logger.log("COMPLETED",e.title,t&&{suffix:{...t,condition:!!e.message?.duration&&t.condition,args:[e.message.duration]}})}else"PROMPT"===t?(this.logger.process.hijack(),e.on("PROMPT",(e=>{this.logger.process.toStderr(e,!1)}))):"PROMPT_COMPLETED"===t&&(e.off("PROMPT"),this.logger.process.release())})),e.on("OUTPUT",(e=>{this.logger.log("OUTPUT",e)})),e.on("MESSAGE",(r=>{if(r.error)this.logger.log("FAILED",e.title,{suffix:{field:`FAILED: ${r.error}`,format:()=>st.red}});else if(r.skip)this.logger.log("SKIPPED",e.title,{suffix:{field:`SKIPPED: ${r.skip}`,format:()=>st.yellow}});else if(r.rollback)this.logger.log("ROLLBACK",e.title,{suffix:{field:`ROLLBACK: ${r.rollback}`,format:()=>st.red}});else if(r.retry)this.logger.log("RETRY",e.title,{suffix:{field:`RETRY:${r.retry.count}`,format:()=>st.red}});else if(r.paused){const s=t?.pausedTimer;this.logger.log("PAUSED",e.title,s&&{suffix:{...s,condition:!!r?.paused&&s.condition,args:[r.paused-Date.now()]}})}}))}))}calculate(t){if(this.cache.rendererOptions.has(t.id)&&this.cache.rendererTaskOptions.has(t.id))return;const r={...this.options,...t.rendererOptions};this.cache.rendererOptions.set(t.id,r),this.cache.rendererTaskOptions.set(t.id,{...e.rendererTaskOptions,timer:r.timer,...t.rendererTaskOptions})}reset(e){this.cache.rendererOptions.delete(e.id),this.cache.rendererTaskOptions.delete(e.id)}},Ot=class{constructor(e){this.options=e}static{Ve(this,"TestRendererSerializer")}serialize(e,t,r){return JSON.stringify(this.generate(e,t,r))}generate(e,t,r){const s={event:e,data:t};if("boolean"!=typeof this.options?.task){const e=Object.fromEntries(this.options.task.map((e=>{const t=r[e];return"function"==typeof t?[e,t.call(r)]:[e,t]})));Object.keys(r).length>0&&(s.task=e)}return s}},vt=class e{constructor(t,r){this.tasks=t,this.options=r,this.options={...e.rendererOptions,...this.options},this.logger=this.options.logger??new ht({useIcons:!1}),this.serializer=new Ot(this.options)}static{Ve(this,"TestRenderer")}static nonTTY=!0;static rendererOptions={subtasks:!0,state:Object.values(Xe),output:!0,prompt:!0,title:!0,messages:["skip","error","retry","rollback","paused"],messagesToStderr:["error","rollback","retry"],task:["hasRolledBack","isRollingBack","isCompleted","isSkipped","hasFinalized","hasSubtasks","title","hasReset","hasTitle","isPrompt","isPaused","isPending","isSkipped","isStarted","hasFailed","isEnabled","isRetrying","path"]};static rendererTaskOptions;logger;serializer;render(){this.renderer(this.tasks)}end(){}renderer(e){e.forEach((e=>{this.options.subtasks&&e.on("SUBTASK",(e=>{this.renderer(e)})),this.options.state&&e.on("STATE",(t=>{this.logger.toStdout(this.serializer.serialize("STATE",t,e))})),this.options.output&&e.on("OUTPUT",(t=>{this.logger.toStdout(this.serializer.serialize("OUTPUT",t,e))})),this.options.prompt&&e.on("PROMPT",(t=>{this.logger.toStdout(this.serializer.serialize("PROMPT",t,e))})),this.options.title&&e.on("TITLE",(t=>{this.logger.toStdout(this.serializer.serialize("TITLE",t,e))})),e.on("MESSAGE",(t=>{const r=Object.fromEntries(Object.entries(t).map((([e,t])=>{if(this.options.messages.includes(e))return[e,t]})).filter(Boolean));if(Object.keys(r).length>0){const t=this.serializer.serialize("MESSAGE",r,e);this.options.messagesToStderr.some((e=>Object.keys(r).includes(e)))?this.logger.toStderr(t):this.logger.toStdout(t)}}))}))}},_t={default:wt,simple:Tt,verbose:class e{constructor(t,r){this.tasks=t,this.options=r,this.options={...e.rendererOptions,...this.options,icon:{...ct,...r?.icon??{}},color:{...ut,...r?.color??{}}},this.logger=this.options.logger??new ht({useIcons:!1,toStderr:pt}),this.logger.options.icon=this.options.icon,this.logger.options.color=this.options.color,this.options.timestamp&&this.logger.options.fields.prefix.unshift(this.options.timestamp)}static{Ve(this,"VerboseRenderer")}static nonTTY=!0;static rendererOptions={logTitleChange:!1,pausedTimer:{...At,format:()=>st.yellowBright}};static rendererTaskOptions;logger;cache={rendererOptions:new Map,rendererTaskOptions:new Map};render(){this.renderer(this.tasks)}end(){}renderer(e){e.forEach((e=>{this.calculate(e),e.once("CLOSED",(()=>{this.reset(e)}));const t=this.cache.rendererOptions.get(e.id),r=this.cache.rendererTaskOptions.get(e.id);e.on("SUBTASK",(e=>{this.renderer(e)})),e.on("STATE",(t=>{if(e.hasTitle())if("STARTED"===t)this.logger.log("STARTED",e.title);else if("COMPLETED"===t){const t=r.timer;this.logger.log("COMPLETED",e.title,t&&{suffix:{...t,condition:!!e.message?.duration&&t.condition,args:[e.message.duration]}})}})),e.on("OUTPUT",(e=>{this.logger.log("OUTPUT",e)})),e.on("PROMPT",(e=>{const t=rt(e);t&&this.logger.log("PROMPT",t)})),!1!==this.options?.logTitleChange&&e.on("TITLE",(e=>{this.logger.log("TITLE",e)})),e.on("MESSAGE",(r=>{if(r?.error)this.logger.log("FAILED",r.error);else if(r?.skip)this.logger.log("SKIPPED",r.skip);else if(r?.rollback)this.logger.log("ROLLBACK",r.rollback);else if(r?.retry)this.logger.log("RETRY",e.title,{suffix:r.retry.count.toString()});else if(r?.paused){const s=t?.pausedTimer;this.logger.log("PAUSED",e.title,s&&{suffix:{...s,condition:!!r?.paused&&s.condition,args:[r.paused-Date.now()]}})}}))}))}calculate(t){if(this.cache.rendererOptions.has(t.id)&&this.cache.rendererTaskOptions.has(t.id))return;const r={...this.options,...t.rendererOptions};this.cache.rendererOptions.set(t.id,r),this.cache.rendererTaskOptions.set(t.id,{...e.rendererTaskOptions,timer:r.timer,...t.rendererTaskOptions})}reset(e){this.cache.rendererOptions.delete(e.id),this.cache.rendererTaskOptions.delete(e.id)}},test:vt,silent:St};function kt(e){return!0===process.stdout.isTTY||!0===e.nonTTY}function xt(e){return"string"==typeof e?_t[e]??_t.default:"function"==typeof e?e:_t.default}function Lt(e){if(Pt(e?.silentRendererCondition))return{renderer:xt("silent"),selection:"SILENT"};const t={renderer:xt(e.renderer),options:e.rendererOptions,selection:"PRIMARY"};return!kt(t.renderer)||Pt(e?.fallbackRendererCondition)?{renderer:xt(e.fallbackRenderer),options:e.fallbackRendererOptions,selection:"SECONDARY"}:t}function Pt(e,...t){return"function"==typeof e?e(...t):e}Ve(kt,"isRendererSupported"),Ve(xt,"getRendererClass"),Ve(Lt,"getRenderer"),Ve(Pt,"assertFunctionOrSelf");var $t=Ye({circles:!0});function It(e){return $t(e)}Ve(It,"cloneObject");var Bt=class{static{Ve(this,"Concurrency")}concurrency;count;queue;constructor(e){this.concurrency=e.concurrency,this.count=0,this.queue=new Set}add(e){return this.count<this.concurrency?this.run(e):new Promise((t=>{const r=Ve((()=>t(this.run(e))),"callback");this.queue.add(r)}))}flush(){for(const e of this.queue){if(this.count>=this.concurrency)break;this.queue.delete(e),e()}}run(e){this.count++;const t=e(),r=Ve((()=>{this.count--,this.flush()}),"cleanup");return t.then(r,(()=>{this.queue.clear()})),t}};function Dt(e){return new Promise((t=>{setTimeout(t,e)}))}Ve(Dt,"delay");var Mt=class extends Error{constructor(e,t,r){super(e.message),this.error=e,this.type=t,this.task=r,this.name="ListrError",this.path=r.path,"full"===r?.options.collectErrors&&(this.task=It(r),this.ctx=It(r.listr.ctx)),this.stack=e?.stack}static{Ve(this,"ListrError")}path;ctx},Ft=class extends Error{static{Ve(this,"ListrRendererError")}},Ht=class extends Error{static{Ve(this,"PromptError")}},Nt=class{constructor(e){this.task=e}static{Ve(this,"TaskWrapper")}get title(){return this.task.title}set title(e){e=Array.isArray(e)?e:[e],this.task.title$=lt(e.shift(),...e)}get output(){return this.task.output}set output(e){e=Array.isArray(e)?e:[e],this.task.output$=lt(e.shift(),...e)}set promptOutput(e){this.task.promptOutput$=e}newListr(e,t){let r;return r="function"==typeof e?e(this):e,new Kt(r,t,this.task)}report(e,t){!1!==this.task.options.collectErrors&&this.task.listr.errors.push(new Mt(e,t,this.task)),this.task.message$={error:e.message??this.task?.title}}skip(e,...t){this.task.state$="SKIPPED",e&&(this.task.message$={skip:e?lt(e,...t):this.task?.title})}isRetrying(){return this.task.isRetrying()?this.task.retry:{count:0}}prompt(e){return this.task.prompt?this.task.prompt:new e(this.task,this)}stdout(e){return mt((t=>{if("PROMPT"===e)this.promptOutput=t;else this.output=t}))}run(e){return this.task.run(e,this)}},Ut=class extends Ze{static{Ve(this,"ListrTaskEventManager")}},Gt=class extends Ut{constructor(e,t,r,s,i){if(super(),this.listr=e,this.task=t,this.options=r,this.rendererOptions=s,this.rendererTaskOptions=i,t.title){const e=Array.isArray(t?.title)?t.title:[t.title];this.title=lt(e.shift(),...e),this.initialTitle=this.title}this.taskFn=t.task,this.parent=e.parentTask}static{Ve(this,"Task")}id=(0,ze.randomUUID)();state="WAITING";subtasks;title;initialTitle;output;retry;message={};prompt;parent;enabled;taskFn;closed;set state$(e){if(this.state=e,this.emit("STATE",e),this.hasSubtasks()&&this.hasFailed())for(const e of this.subtasks)"STARTED"===e.state&&(e.state$="FAILED");this.listr.events.emit("SHOUD_REFRESH_RENDER")}set output$(e){this.output=e,this.emit("OUTPUT",e),this.listr.events.emit("SHOUD_REFRESH_RENDER")}set promptOutput$(e){this.emit("PROMPT",e),rt(e)&&this.listr.events.emit("SHOUD_REFRESH_RENDER")}set message$(e){this.message={...this.message,...e},this.emit("MESSAGE",e),this.listr.events.emit("SHOUD_REFRESH_RENDER")}set title$(e){this.title=e,this.emit("TITLE",e),this.listr.events.emit("SHOUD_REFRESH_RENDER")}get path(){return[...this.listr.path,this.initialTitle]}async check(e){return"WAITING"===this.state&&(this.enabled=await Pt(this.task?.enabled??!0,e),this.emit("ENABLED",this.enabled),this.listr.events.emit("SHOUD_REFRESH_RENDER")),this.enabled}hasSubtasks(){return this.subtasks?.length>0}hasFinalized(){return this.isCompleted()||this.hasFailed()||this.isSkipped()||this.hasRolledBack()}isPending(){return this.isStarted()||this.isPrompt()||this.hasReset()}isStarted(){return"STARTED"===this.state}isSkipped(){return"SKIPPED"===this.state}isCompleted(){return"COMPLETED"===this.state}hasFailed(){return"FAILED"===this.state}isRollingBack(){return"ROLLING_BACK"===this.state}hasRolledBack(){return"ROLLED_BACK"===this.state}isRetrying(){return"RETRY"===this.state}hasReset(){return"RETRY"===this.state||"ROLLING_BACK"===this.state}isEnabled(){return this.enabled}hasTitle(){return"string"==typeof this?.title}isPrompt(){return"PROMPT"===this.state||"PROMPT_COMPLETED"===this.state}isPaused(){return"PAUSED"===this.state}isClosed(){return this.closed}async pause(e){const t=this.state;this.state$="PAUSED",this.message$={paused:Date.now()+e},await Dt(e),this.state$=t,this.message$={paused:null}}async run(e,t){const r=Ve((t=>(t instanceof Kt?(t.options={...this.options,...t.options},t.rendererClass=xt("silent"),this.subtasks=t.tasks,t.errors=this.listr.errors,this.emit("SUBTASK",this.subtasks),t=t.run(e)):t instanceof Promise?t=t.then(r):t instanceof We.Readable?t=new Promise(((e,r)=>{t.on("data",(e=>{this.output$=e.toString()})),t.on("error",(e=>r(e))),t.on("end",(()=>e(null)))})):Je(t)&&(t=new Promise(((e,r)=>{t.subscribe({next:e=>{this.output$=e},error:r,complete:e})}))),t)),"handleResult"),s=Date.now();this.state$="STARTED";const i=await Pt(this.task?.skip??!1,e);if(i)return"string"==typeof i?this.message$={skip:i}:this.hasTitle()?this.message$={skip:this.title}:this.message$={skip:"Skipped task without a title."},void(this.state$="SKIPPED");try{const i="number"==typeof this.task?.retry&&this.task.retry>0?this.task.retry+1:"object"==typeof this.task?.retry&&this.task.retry.tries>0?this.task.retry.tries+1:1,n="object"==typeof this.task.retry&&this.task.retry.delay;for(let s=1;s<=i;s++)try{await r(this.taskFn(e,t));break}catch(e){if(s===i)throw e;this.retry={count:s,error:e},this.message$={retry:this.retry},this.title$=this.initialTitle,this.output=void 0,t.report(e,"WILL_RETRY"),this.state$="RETRY",n&&await this.pause(n)}(this.isStarted()||this.isRetrying())&&(this.message$={duration:Date.now()-s},this.state$="COMPLETED")}catch(r){if(this.prompt instanceof Ht&&(r=this.prompt),this.task?.rollback){t.report(r,"WILL_ROLLBACK");try{this.state$="ROLLING_BACK",await this.task.rollback(e,t),this.message$={rollback:this.title},this.state$="ROLLED_BACK"}catch(e){throw this.state$="FAILED",t.report(e,"HAS_FAILED_TO_ROLLBACK"),this.close(),e}if(!1!==this.listr.options?.exitAfterRollback)throw this.close(),r}else{if(this.state$="FAILED",!1!==this.listr.options.exitOnError&&!1!==await Pt(this.task?.exitOnError,e))throw t.report(r,"HAS_FAILED"),this.close(),r;this.hasSubtasks()||t.report(r,"HAS_FAILED_WITHOUT_ERROR")}}finally{this.close()}}close(){this.emit("CLOSED"),this.listr.events.emit("SHOUD_REFRESH_RENDER"),this.complete()}},jt=class extends Ze{static{Ve(this,"ListrEventManager")}},Kt=class{constructor(e,t,r){this.task=e,this.options=t,this.parentTask=r,this.options={concurrent:!1,renderer:"default",fallbackRenderer:"simple",exitOnError:!0,exitAfterRollback:!0,collectErrors:!1,registerSignalListeners:!0,...this.parentTask?.options??{},...t},!0===this.options.concurrent?this.options.concurrent=1/0:"number"!=typeof this.options.concurrent&&(this.options.concurrent=1),this.concurrency=new Bt({concurrency:this.options.concurrent}),r&&(this.path=[...r.listr.path,r.title],this.errors=r.listr.errors),this.parentTask?.listr.events instanceof jt?this.events=this.parentTask.listr.events:this.events=new jt;const s=Lt({renderer:this.options.renderer,rendererOptions:this.options.rendererOptions,fallbackRenderer:this.options.fallbackRenderer,fallbackRendererOptions:this.options.fallbackRendererOptions,fallbackRendererCondition:this.options?.fallbackRendererCondition,silentRendererCondition:this.options?.silentRendererCondition});this.rendererClass=s.renderer,this.rendererClassOptions=s.options,this.rendererSelection=s.selection,this.add(e??[]),this.options.registerSignalListeners&&process.once("SIGINT",(()=>{this.tasks.forEach((async e=>{e.isPending()&&(e.state$="FAILED")})),this.renderer.end(new Error("Interrupted.")),process.exit(127)})).setMaxListeners(0),(this.options?.forceTTY||process.env.LISTR_FORCE_TTY)&&(process.stdout.isTTY=!0,process.stderr.isTTY=!0),this.options?.forceUnicode&&(process.env.LISTR_FORCE_UNICODE="1")}static{Ve(this,"Listr")}tasks=[];errors=[];ctx;events;path=[];rendererClass;rendererClassOptions;rendererSelection;concurrency;renderer;add(e){this.tasks.push(...this.generate(e))}async run(e){this.renderer||(this.renderer=new this.rendererClass(this.tasks,this.rendererClassOptions,this.events)),await this.renderer.render(),this.ctx=this.options?.ctx??e??{},await Promise.all(this.tasks.map((e=>e.check(this.ctx))));try{await Promise.all(this.tasks.map((e=>this.concurrency.add((()=>this.runTask(e)))))),this.renderer.end()}catch(e){if(!1!==this.options.exitOnError)throw this.renderer.end(e),e}return this.ctx}generate(e){return(e=Array.isArray(e)?e:[e]).map((e=>{let t;return"PRIMARY"===this.rendererSelection?t=e.rendererOptions:"SECONDARY"===this.rendererSelection&&(t=e.fallbackRendererOptions),new Gt(this,e,this.options,this.rendererClassOptions,t)}))}async runTask(e){if(await e.check(this.ctx))return new Nt(e).run(this.ctx)}};const Wt=M.blue(at.arrowRight),Yt=M.redBright(at.cross),zt=M.yellow(at.warning),qt=(e,t,r)=>`${M.redBright(`${Yt} Validation Error:`)}\n\n Invalid value for '${M.bold(e)}': ${M.bold((0,i.inspect)(r))}\n\n ${t}`,Vt=M.redBright(`${Yt} Current directory is not a git directory!`),Qt=M.redBright(`${Yt} Failed to get staged files!`),Xt=`${Yt} No valid configuration found.`,Zt=`${Wt} No staged files found.`,Jt=`${Wt} No staged files match any configured task.`,er=M.yellow(`${zt} Some of your tasks use \`git add\` command. Please remove it from the config since all modifications made by tasks will be automatically added to the git commit index.\n`),tr="Skipped because of errors from tasks.",rr=`\n ${M.redBright(`${Yt} lint-staged failed due to a git error.`)}`,sr=(e,t,r)=>`${M.redBright(`${Yt} Validation Error:`)}\n\n Invalid value for option '${M.bold(e)}': ${M.bold(t)}\n\n ${r}\n\nSee https://github.com/okonet/lint-staged#command-line-flags`,ir=`\n ${M.yellow(`${zt} lint-staged prevented an empty git commit.\n Use the --allow-empty option to continue, or check your task configuration`)}\n`,nr=(M.redBright(`${Yt} Failed to read config from stdin.`),(e={},t)=>{if(!Array.isArray(e.output))return;const r=e.errors?.size>0?t.error:t.log;for(const t of e.output)r(t)});var or=r(9411);const ar=e=>{if(e===or.posix.sep||e===or.win32.sep)return or.posix.sep;let t=e.split(/[/\\]+/).join(or.posix.sep);return(e.startsWith("\\\\?\\")||e.startsWith("\\\\.\\"))&&(t=t.replace(/^\/(\.|\?)/,"//$1")),t.endsWith(or.posix.sep)&&(t=t.slice(0,-1)),t},lr=s("lint-staged:chunkFiles"),cr=({files:e,baseDir:t,maxArgLength:r=null,relative:s=!1})=>{const i=e.map((e=>ar(s||!t?e:or.resolve(t,e))));if(!r)return lr("Skip chunking files because of undefined maxArgLength"),[i];const n=i.join(" ").length;lr(`Resolved an argument string length of ${n} characters from ${i.length} files`);const o=Math.min(Math.ceil(n/r),i.length);return lr(`Creating ${o} chunks for maxArgLength of ${r}`),((e,t)=>{if(1===t)return[e];const r=[];let s=0;for(let i=0;i<t;i++){const n=Math.ceil((e.length-s)/(t-i));r.push([]),r[i]=e.slice(s,n+s),s+=n}return r})(i,o)};var ur=r(893);const pr=s("lint-staged:execGit"),hr=["-c","submodule.recurse=false"],fr=async(e,t={})=>{pr("Running git command",e);try{const{stdout:r}=await(0,ur.r)("git",hr.concat(e),{...t,all:!0,cwd:t.cwd||process.cwd()});return r}catch({all:e}){throw new Error(e)}};var dr=r(1876);const gr=s("lint-staged:generateTasks"),mr=({config:e,cwd:t=process.cwd(),files:r,relative:s=!1})=>{gr("Generating linter tasks");const i=r.map((e=>ar(or.relative(t,e))));return Object.entries(e).map((([e,r])=>{const n=e.startsWith("../"),o=i.filter((e=>!!n||!e.startsWith("..")&&!or.isAbsolute(e))),a=dr(o,e,{cwd:t,dot:!0,matchBase:!e.includes("/"),posixSlashes:!0,strictBrackets:!0}),l={pattern:e,commands:r,fileList:a.map((e=>ar(s?e:or.resolve(t,e))))};return gr("Generated task: \n%O",l),l}))};var yr=r(4492);const Er=new RegExp(h.EOL+"$"),br=e=>new yr.Writable({write:function(t,r,s){e(t.toString().replace(Er,"")),s()}}),Rr=({renderer:e},{FORCE_COLOR:t})=>"silent"===e||"test"===e||Number(t)>0?e:"verbose",Ar=(e,t,r=process.env)=>{const s=(({debug:e,quiet:t},r,s)=>t?{renderer:"silent"}:"test"===s.NODE_ENV?{renderer:"test",rendererOptions:{logger:new ht({processOutput:new gt(br(r.log),br(r.error))})}}:e||"dumb"===s.TERM?{renderer:"verbose"}:{renderer:"update",rendererOptions:{formatOutput:"truncate"}})(e,t,r);return{...s,fallbackRenderer:Rr(s,r)}};function Cr(e,t){return["diff","--name-only","-z",`--diff-filter=${void 0!==t?t.trim():"ACMR"}`,...void 0!==e?e.trim().split(" "):["--staged"]]}const wr=e=>e?e.replace(/\u0000$/,"").split("\0"):[];var Sr=r(3977);const Tr=s("lint-staged:file"),Or=async(e,t=!0)=>{Tr("Reading file `%s`",e);try{return await Sr.readFile(e)}catch(r){if(t&&"ENOENT"===r.code)return Tr("File `%s` doesn't exist, ignoring...",e),null;throw r}},vr=async(e,t=!0)=>{Tr("Removing file `%s`",e);try{await Sr.unlink(e)}catch(r){if(!t||"ENOENT"!==r.code)throw r;Tr("File `%s` doesn't exist, ignoring...",e)}},_r=async(e,t)=>{Tr("Writing file `%s`",e),await Sr.writeFile(e,t)},kr=Symbol("ApplyEmptyCommitError"),xr=new Error("Configuration could not be found"),Lr=new Error("Configuration should be an object or a function"),Pr=new Error("Configuration should not be empty"),$r=Symbol("GetBackupStashError"),Ir=Symbol("GetStagedFilesError"),Br=Symbol("GitError"),Dr=Symbol("GitRepoError"),Mr=Symbol("HideUnstagedChangesError"),Fr=new Error("Invalid Options"),Hr=Symbol("RestoreMergeStatusError"),Nr=Symbol("RestoreOriginalStateError"),Ur=Symbol("RestoreUnstagedChangesError"),Gr=Symbol("TaskError"),jr=s("lint-staged:GitWorkflow"),Kr=/\x00/,Wr=(e,t=!0)=>e.reduce(((e,r)=>{if(Kr.test(r)){const[s,i]=r.split(Kr);t&&e.push(i),e.push(s)}else e.push(r);return e}),[]),Yr="lint-staged automatic backup",zr="lint-staged_unstaged.patch",qr=["--binary","--unified=0","--no-color","--no-ext-diff","--src-prefix=a/","--dst-prefix=b/","--patch","--submodule=short"],Vr=["-v","--whitespace=nowarn","--recount","--unidiff-zero"],Qr=(e,t,r)=>{throw t.errors.add(Br),r&&t.errors.add(r),e};class Xr{constructor({allowEmpty:e,gitConfigDir:t,gitDir:r,matchedFileChunks:s,diff:i,diffFilter:n}){this.execGit=(e,t={})=>fr(e,{...t,cwd:r}),this.deletedFiles=[],this.gitConfigDir=t,this.gitDir=r,this.diff=i,this.diffFilter=n,this.allowEmpty=e,this.matchedFileChunks=s,this.mergeHeadFilename=or.resolve(t,"MERGE_HEAD"),this.mergeModeFilename=or.resolve(t,"MERGE_MODE"),this.mergeMsgFilename=or.resolve(t,"MERGE_MSG")}getHiddenFilepath(e){return or.resolve(this.gitConfigDir,`./${e}`)}async getBackupStash(e){const t=(await this.execGit(["stash","list"])).split("\n").findIndex((e=>e.includes(Yr)));if(-1===t)throw e.errors.add($r),new Error("lint-staged automatic backup is missing!");return String(t)}async getDeletedFiles(){jr("Getting deleted files...");const e=(await this.execGit(["ls-files","--deleted"])).split("\n").filter(Boolean).map((e=>or.resolve(this.gitDir,e)));return jr("Found deleted files:",e),e}async backupMergeStatus(){jr("Backing up merge state..."),await Promise.all([Or(this.mergeHeadFilename).then((e=>this.mergeHeadBuffer=e)),Or(this.mergeModeFilename).then((e=>this.mergeModeBuffer=e)),Or(this.mergeMsgFilename).then((e=>this.mergeMsgBuffer=e))]),jr("Done backing up merge state!")}async restoreMergeStatus(e){jr("Restoring merge state...");try{await Promise.all([this.mergeHeadBuffer&&_r(this.mergeHeadFilename,this.mergeHeadBuffer),this.mergeModeBuffer&&_r(this.mergeModeFilename,this.mergeModeBuffer),this.mergeMsgBuffer&&_r(this.mergeMsgFilename,this.mergeMsgBuffer)]),jr("Done restoring merge state!")}catch(t){jr("Failed restoring merge state with error:"),jr(t),Qr(new Error("Merge state could not be restored due to an error!"),e,Hr)}}async getPartiallyStagedFiles(){jr("Getting partially staged files...");const e=(await this.execGit(["status","-z"])).split(/\x00(?=[ AMDRCU?!]{2} |$)/).filter((e=>{const[t,r]=e;return" "!==t&&" "!==r&&"?"!==t&&"?"!==r})).map((e=>e.substr(3))).filter(Boolean);return jr("Found partially staged files:",e),e.length?e:null}async prepare(e){try{if(jr("Backing up original state..."),this.partiallyStagedFiles=await this.getPartiallyStagedFiles(),this.partiallyStagedFiles){e.hasPartiallyStagedFiles=!0;const t=this.getHiddenFilepath(zr),r=Wr(this.partiallyStagedFiles);await this.execGit(["diff",...qr,"--output",t,"--",...r])}else e.hasPartiallyStagedFiles=!1;if(!e.shouldBackup)return;await this.backupMergeStatus(),this.deletedFiles=await this.getDeletedFiles();const t=await this.execGit(["stash","create"]);await this.execGit(["stash","store","--quiet","--message",Yr,t]),jr("Done backing up original state!")}catch(t){Qr(t,e)}}async hideUnstagedChanges(e){try{const e=Wr(this.partiallyStagedFiles,!1);await this.execGit(["checkout","--force","--",...e])}catch(t){Qr(t,e,Mr)}}async applyModifications(e){jr("Adding task modifications to index...");for(const e of this.matchedFileChunks)await this.execGit(["add","--",...e]);jr("Done adding task modifications to index!");await this.execGit(Cr(this.diff,this.diffFilter))||this.allowEmpty||Qr(new Error("Prevented an empty git commit!"),e,kr)}async restoreUnstagedChanges(e){jr("Restoring unstaged changes...");const t=this.getHiddenFilepath(zr);try{await this.execGit(["apply",...Vr,t])}catch(r){jr("Error while restoring changes:"),jr(r),jr("Retrying with 3-way merge");try{await this.execGit(["apply",...Vr,"--3way",t])}catch(t){jr("Error while restoring unstaged changes using 3-way merge:"),jr(t),Qr(new Error("Unstaged changes could not be restored due to a merge conflict!"),e,Ur)}}}async restoreOriginalState(e){try{jr("Restoring original state..."),await this.execGit(["reset","--hard","HEAD"]),await this.execGit(["stash","apply","--quiet","--index",await this.getBackupStash(e)]),await this.restoreMergeStatus(e),await Promise.all(this.deletedFiles.map((e=>vr(e)))),await vr(this.getHiddenFilepath(zr)),jr("Done restoring original state!")}catch(t){Qr(t,e,Nr)}}async cleanup(e){try{jr("Dropping backup stash..."),await this.execGit(["stash","drop","--quiet",await this.getBackupStash(e)]),jr("Done dropping backup stash!")}catch(t){Qr(t,e)}}}const Zr=s("lint-staged:groupFilesByConfig");function Jr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0;r<e.length;r++){var s=e[r];if("string"==typeof s)return s}}var es=r(5417),ts=r(2361);const rs=({quiet:e=!1}={})=>({hasPartiallyStagedFiles:null,shouldBackup:null,shouldHidePartiallyStaged:!0,errors:new Set([]),events:new ts,output:[],quiet:e}),ss=e=>e.hasPartiallyStagedFiles&&e.shouldHidePartiallyStaged,is=e=>!!e.shouldBackup&&(e.errors.has(Br)?rr:e.errors.has(Gr)?tr:void 0),ns=e=>e.errors.has(Br)?rr:e.errors.has(Gr)?tr:void 0,os=e=>e.shouldBackup&&(e.errors.has(Gr)||e.errors.has(kr)||e.errors.has(Ur)),as=e=>{if(e.errors.has(Br)&&!e.errors.has(kr)&&!e.errors.has(Ur))return rr},ls=e=>e.shouldBackup,cs=e=>!e.errors.has(Br)||e.errors.has(kr)||e.errors.has(Ur)?e.errors.has(Nr)?rr:void 0:rr,us="lint-staged:taskError",ps=s("lint-staged:resolveTaskFn"),hs=({code:e,killed:t,signal:r})=>(t?"KILLED":r)||e||"FAILED",fs=(e,t,r,s=!1)=>{const{stderr:i,stdout:n}=t;if(!!i||!!n){const t=s?M.redBright(`${Yt} ${e}:`):`${Wt} ${e}:`,o=[].concat(r.quiet?[]:["",t]).concat(i||[]).concat(n||[]);r.output.push(o.join("\n"))}else if(s){const s=hs(t),i=M.redBright(`\n${Yt} ${e} failed without output (${s}).`);r.quiet||r.output.push(i)}},ds=(e,t)=>{let r;const s=async()=>{r=(async e=>{try{const t=await es(e.pid);for(const e of t)try{process.kill(e)}catch(t){ps('Failed to kill process with pid "%d": %o',e,t)}}catch(t){ps('Failed to kill process with pid "%d": %o',e.pid,t)}e.kill()})(t),await r};return e.events.on(us,s,{once:!0}),async()=>{e.events.off(us,s),await r}},gs=({command:e,cwd:t=process.cwd(),files:r,gitDir:s,isFn:i,shell:n=!1,verbose:o=!1})=>{const[a,...l]=function(e,t,r){var s,i=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,n=e,o=[];t&&o.push(t),r&&o.push(r);do{null!==(s=i.exec(n))&&o.push(Jr(s[1],s[6],s[0]))}while(null!==s);return o}(e);ps("cmd:",a),ps("args:",l);const c={cwd:/^git(\.exe)?/i.test(a)?s:t,preferLocal:!0,reject:!1,shell:n};return ps("execaOptions:",c),async(t=rs())=>{const s=n?(0,ur.cF)(i?e:`${e} ${r.join(" ")}`,c):(0,ur.r)(a,i?l:l.concat(r),c),u=ds(t,s),p=await s;if(await u(),p.failed||p.killed||null!=p.signal)throw((e,t,r)=>{r.errors.add(Gr),r.events.emit(us,Gr),fs(e,t,r,!0);const s=hs(t);return new Error(`${M.redBright(e)} ${M.dim(`[${s}]`)}`)})(e,p,t);o&&fs(e,p,t)}},ms=s("lint-staged:makeCmdTasks"),ys=async({commands:e,cwd:t,files:r,gitDir:s,shell:i,verbose:n})=>{ms("Creating listr tasks for commands %o",e);const o=Array.isArray(e)?e:[e],a=[];for(const e of o){const o="function"==typeof e,l=o?await e([...r]):e,c=Array.isArray(l)?l:[l];for(const e of c){if(o&&"string"!=typeof e)throw new Error(qt("[Function]","Function task should return a string or an array of strings",l));const c=gs({command:e,cwd:t,files:r,gitDir:s,isFn:o,shell:i,verbose:n});a.push({title:e,command:e,task:c})}}return a},Es=s("lint-staged:resolveGitRepo"),bs=async(e=process.cwd())=>{try{Es("Resolving git repo from `%s`",e),Es("Unset GIT_DIR (was `%s`)",process.env.GIT_DIR),delete process.env.GIT_DIR,Es("Unset GIT_WORK_TREE (was `%s`)",process.env.GIT_WORK_TREE),delete process.env.GIT_WORK_TREE;const t=ar(await fr(["rev-parse","--show-prefix"],{cwd:e})),r=ar(((e,t)=>(t&&t.endsWith(or.sep)&&(t=t.slice(0,-1)),t?e.substring(0,e.lastIndexOf(t)):e))(ar(e),t)),s=ar(await(async e=>{const t=or.join(e,".git"),r=await Sr.lstat(t);if(r.isDirectory())return t;if(r.isSymbolicLink())return await Sr.realpath(e);const s=(await Or(t)).toString();return or.resolve(e,s.replace(/^gitdir: /,"")).trim()})(r));return Es("Resolved git directory to be `%s`",r),Es("Resolved git config directory to be `%s`",s),{gitDir:r,gitConfigDir:s}}catch(e){return Es("Failed to resolve git repo with error:",e),{error:e,gitDir:null,gitConfigDir:null}}},Rs=async()=>{},As=/(?<![\\$])({)(?:(?!(?<!\\),|\.\.|\{|\}).)*?(?<!\\)(})/g,Cs=/{{[^}{]*}}/,ws=(e,t)=>{const r=(e=>{let t=`${e}`;const r=Cs.exec(e)?.[0];if(r){const e=r.replace("{{","{").replace("}}","}");t=t.replace(r,e)}return t})((e=>{let t=`${e}`,r=null;for(;r=As.exec(e);){const e=r[0],s=e.replace(/{/,"").replace(/}/,"");t=t.replace(e,s)}return t})(e));var s,i;return r!==e&&t.warn((s=e,i=r,M.yellow(`${zt} Detected incorrect braces with only single value: \`${s}\`. Reformatted as: \`${i}\`\n`))),r},Ss=s("lint-staged:validateConfig"),Ts=e=>e&&"object"==typeof e&&!Array.isArray(e),Os=new Map([["concurrent",e=>"boolean"==typeof e],["chunkSize",e=>"number"==typeof e],["globOptions",Ts],["linters",Ts],["ignore",e=>Array.isArray(e)],["subTaskConcurrency",e=>"number"==typeof e],["renderer",e=>"string"==typeof e],["relative",e=>"boolean"==typeof e]]),vs=(e,t,r)=>{if(Ss("Validating config from `%s`...",t),!e||"object"!=typeof e&&"function"!=typeof e)throw Lr;if("function"==typeof e)return{"*":e};if(0===Object.entries(e).length)throw Pr;const s=[],n=Object.entries(e).reduce(((e,[t,i])=>{if(Os.has(t)){return Os.get(t)(i)&&s.push(qt(t,"Advanced configuration has been deprecated.",i)),e}Array.isArray(i)&&!i.some((e=>"string"!=typeof e&&"function"!=typeof e))||"string"==typeof i||"function"==typeof i||s.push(qt(t,"Should be a string, a function, or an array of strings and functions.",i));const n=ws(t,r);return{...e,[n]:i}}),{});if(s.length){const e=s.join("\n\n");throw r.error(`Could not parse lint-staged config.\n\n${e}\n\nSee https://github.com/okonet/lint-staged#configuration.`),new Error(e)}return Ss("Validated config from `%s`:",t),Ss((0,i.inspect)(e,{compact:!1})),n},_s=["package.json","package.yaml","package.yml",".lintstagedrc",".lintstagedrc.json",".lintstagedrc.yaml",".lintstagedrc.yml",".lintstagedrc.mjs",".lintstagedrc.js",".lintstagedrc.cjs","lint-staged.config.mjs","lint-staged.config.js","lint-staged.config.cjs"],ks=s("lint-staged:searchConfigs"),xs=["ls-files","-z","--full-name"],Ls=e=>e.filter((e=>_s.includes(or.basename(e)))),Ps=e=>e.split("/").length,$s=(e,t)=>Ps(e)>Ps(t)?-1:1,Is=async({configObject:e,configPath:t,cwd:r=process.cwd(),gitDir:s=r},i)=>{if(ks("Searching for configuration files..."),e)return ks("Using single direct configuration object..."),{"":vs(e,"config object",i)};if(t){ks("Using single configuration path...");const{config:e,filepath:r}=await Rs();return e?{[t]:vs(e,r,i)}:{}}const[n,o]=await Promise.all([fr(xs,{cwd:s}).then(wr).then(Ls),fr([...xs,"--others","--exclude-standard"],{cwd:s}).then(wr).then(Ls)]),a=[...n,...o].map((e=>ar(or.join(s,e)))).filter((l=r,e=>e.startsWith(ar(l)))).sort($s);var l;ks("Found possible config files:",a);const c=a.reduce(((e,t)=>Object.assign(e,{[t]:null})),{});await Promise.all(Object.keys(c).map((e=>Rs().then((({config:t,filepath:r})=>{t&&(e!==r&&ks('Config file "%s" resolved to "%s"',e,r),c[e]=vs(t,r,i))})))));const u=Object.entries(c).filter((([,e])=>!!e)).reduce(((e,[t,r])=>({...e,[t]:r})),{});if(!Object.keys(u).length){ks('Could not find config files inside "%s"',r);const{config:e,filepath:t}=await Rs();e?(ks('Found parent configuration file from "%s"',t),u[t]=vs(e,t,i)):ks('Could not find parent configuration files from "%s"',r)}return ks("Found %d config files",Object.keys(u).length),u},Bs=s("lint-staged:runAll"),Ds=e=>Object.assign(new Error("lint-staged failed"),{ctx:e}),Ms=async({allowEmpty:e=!1,concurrent:t=!0,configObject:r,configPath:s,cwd:i,debug:n=!1,diff:o,diffFilter:a,maxArgLength:l,quiet:c=!1,relative:u=!1,shell:p=!1,stash:h=void 0===o,hidePartiallyStaged:f=h,verbose:d=!1},g=console)=>{Bs("Running all linter scripts...");const m=!!i;i=m?or.resolve(i):process.cwd(),Bs("Using working directory `%s`",i);const y=rs({quiet:c}),{gitDir:E,gitConfigDir:b}=await bs(i);if(!E)throw c||y.output.push(Vt),y.errors.add(Dr),Ds(y);const R=await fr(["log","-1"],{cwd:E}).then((()=>!0)).catch((()=>!1));y.shouldBackup=R&&h,y.shouldBackup||c||g.warn(((e,t)=>{const r=void 0!==t?"`--diff` was used":e?"`--no-stash` was used":"there\u2019s no initial commit yet";return M.yellow(`${zt} Skipping backup because ${r}.\n`)})(R,o)),y.shouldHidePartiallyStaged=f,y.shouldHidePartiallyStaged||c||g.warn(((e,t)=>{const r=void 0!==t?"`--diff` was used":e?"`--no-hide-partially-staged` was used":"`--no-stash` was used";return M.yellow(`${zt} Skipping hiding unstaged changes from partially staged files because ${r}.\n`)})(R&&h,o));const A=await(async({cwd:e=process.cwd(),diff:t,diffFilter:r}={})=>{try{const s=await fr(Cr(t,r),{cwd:e});return s?wr(s).map((t=>ar(or.resolve(e,t)))):[]}catch{return null}})({cwd:E,diff:o,diffFilter:a});if(!A)throw c||y.output.push(Qt),y.errors.add(Ir),Ds(y);if(Bs("Loaded list of staged files in git:\n%O",A),0===A.length)return c||y.output.push(Zt),y;const C=await Is({configObject:r,configPath:s,cwd:i,gitDir:E},g),w=Object.keys(C).length;if(0===w)throw y.errors.add(xr),Ds(y);const S=await(async({configs:e,files:t,singleConfigMode:r})=>{Zr("Grouping %d files by %d configurations",t.length,Object.keys(e).length);const s=new Set(t),i={};for(const[n,o]of Object.entries(e)){if(r){i[n]={config:o,files:t};break}const e=or.normalize(or.dirname(n)),a=t=>{const r=or.relative(e,t);return r&&!r.startsWith("..")&&!or.isAbsolute(r)},l=Object.keys(o).some((e=>e.startsWith(".."))),c=new Set(l?s:void 0);l||s.forEach((e=>{a(e)&&c.add(e)})),c.forEach((e=>{s.delete(e)})),i[n]={config:o,files:Array.from(c)}}return i})({configs:C,files:A,singleConfigMode:r||void 0!==s}),T=w>1;let O=!1;const v={ctx:y,exitOnError:!1,registerSignalListeners:!1,...Ar({debug:n,quiet:c},g)},_=[],k=new Set;for(const[e,{config:r,files:s}]of Object.entries(S)){const n=e?ar(or.relative(i,e)):"Config object",o=cr({baseDir:E,files:s,maxArgLength:l,relative:u}),a=T&&!m?or.dirname(e):i,c=o.length;c>1&&Bs("Chunked staged files from `%s` into %d part",e,c);for(const[e,s]of o.entries()){const i=await Promise.all(mr({config:r,cwd:a,files:s,relative:u}).map((e=>ys({commands:e.commands,cwd:a,files:e.fileList,gitDir:E,shell:p,verbose:d}).then((t=>{e.fileList.forEach((e=>{const t=or.isAbsolute(e)?e:ar(or.join(a,e));k.add(t)})),O=O||t.some((e=>"git add"===e.command));const r=e.fileList.length;return{title:`${e.pattern}${M.dim(` \u2014 ${r} ${1===r?"file":"files"}`)}`,task:async(e,r)=>r.newListr(t,{concurrent:!1,exitOnError:!0}),skip:()=>0===r&&`${e.pattern}${M.dim(" \u2014 no files")}`}})))));_.push({title:`${n}${M.dim(` \u2014 ${s.length} ${s.length>1?"files":"file"}`)}`+(c>1?M.dim(` (chunk ${e+1}/${c})...`):""),task:(e,r)=>r.newListr(i,{concurrent:t,exitOnError:!0}),skip:()=>y.errors.has(Br)?"Skipped because of previous git error.":!!i.every((e=>e.skip()))&&`${n}${M.dim(" \u2014 no tasks to run")}`})}}if(O&&!c&&g.warn(er),_.every((e=>e.skip())))return c||y.output.push(Jt),y;const x=cr({baseDir:i,files:Array.from(k),maxArgLength:l,relative:!1}),L=new Xr({allowEmpty:e,gitConfigDir:b,gitDir:E,matchedFileChunks:x,diff:o,diffFilter:a}),P=new Kt([{title:"Preparing lint-staged...",task:e=>L.prepare(e)},{title:"Hiding unstaged changes to partially staged files...",task:e=>L.hideUnstagedChanges(e),enabled:ss},{title:`Running tasks for ${o?"changed":"staged"} files...`,task:(e,r)=>r.newListr(_,{concurrent:t}),skip:()=>_.every((e=>e.skip()))},{title:"Applying modifications from tasks...",task:e=>L.applyModifications(e),skip:is},{title:"Restoring unstaged changes to partially staged files...",task:e=>L.restoreUnstagedChanges(e),enabled:ss,skip:ns},{title:"Reverting to original state because of errors...",task:e=>L.restoreOriginalState(e),enabled:os,skip:as},{title:"Cleaning up temporary files...",task:e=>L.cleanup(e),enabled:ls,skip:cs}],v);if(await P.run(),y.errors.size>0)throw Ds(y);return y};var Fs=r(7561);const Hs=s("lint-staged:validateOptions"),Ns=s("lint-staged"),Us=()=>{switch(process.platform){case"darwin":return 262144;case"win32":return 8191;default:return 131072}},Gs=async({allowEmpty:e=!1,concurrent:t=!0,config:r,configPath:s,cwd:i,debug:n=!1,diff:o,diffFilter:a,maxArgLength:l=Us()/2,quiet:c=!1,relative:u=!1,shell:p=!1,stash:h=void 0===o,hidePartiallyStaged:f=h,verbose:d=!1}={},g=console)=>{await(async(e={},t)=>{if(Hs("Validating options..."),"string"==typeof e.cwd)try{const t=or.resolve(e.cwd);await Sr.access(t,Fs.constants.F_OK)}catch(r){throw t.error(sr("cwd",e.cwd,r.message)),Fr}if("string"==typeof e.shell)try{await Sr.access(e.shell,Fs.constants.X_OK)}catch(r){throw t.error(sr("shell",e.shell,r.message)),Fr}Hs("Validated options!")})({cwd:i,shell:p},g),Ns("Unset GIT_LITERAL_PATHSPECS (was `%s`)",process.env.GIT_LITERAL_PATHSPECS),delete process.env.GIT_LITERAL_PATHSPECS;const m={allowEmpty:e,concurrent:t,configObject:r,configPath:s,cwd:i,debug:n,diff:o,diffFilter:a,maxArgLength:l,quiet:c,relative:u,shell:p,stash:h,hidePartiallyStaged:f,verbose:d};try{const e=await Ms(m,g);return Ns("Tasks were executed successfully!"),nr(e,g),!0}catch(e){if(e?.ctx?.errors){const{ctx:t}=e;return t.errors.has(xr)?g.error(Xt):t.errors.has(kr)?g.warn(ir):t.errors.has(Br)&&!t.errors.has($r)&&(g.error(rr),t.shouldBackup&&g.error(" Any lost modifications can be restored from a git stash:\n\n > git stash list\n stash@{0}: automatic lint-staged backup\n > git stash apply --index stash@{0}\n")),nr(t,g),!1}throw e}}}};
|
package/dist/784.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const id=784;export const ids=[784];export const modules={7784:(t,e,n)=>{n.d(e,{default:()=>h});var o=n(139),r=n(6616),s=n(9416);function i(t,e={}){if("string"!=typeof t||0===t.length)return 0;const{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:i=!1}=e;if(i||(t=(0,o.Z)(t)),0===t.length)return 0;let l=0;for(const{segment:e}of(new Intl.Segmenter).segment(t)){const t=e.codePointAt(0);t<=31||t>=127&&t<=159||(t>=768&&t<=879||((0,s.Z)().test(e)?l+=2:l+=(0,r.a5)(t,{ambiguousAsWide:!n})))}return l}var l=n(8806);const c=new Set(["\x1b","\x9b"]),u="]8;;",a=t=>`${c.values().next().value}[${t}m`,p=t=>`${c.values().next().value}${u}${t}\x07`,g=(t,e,n)=>{const r=[...e];let s=!1,l=!1,a=i((0,o.Z)(t.at(-1)));for(const[e,o]of r.entries()){const p=i(o);if(a+p<=n?t[t.length-1]+=o:(t.push(o),a=0),c.has(o)){s=!0;l=r.slice(e+1,e+1+4).join("")===u}s?l?"\x07"===o&&(s=!1,l=!1):"m"===o&&(s=!1):(a+=p,a===n&&e<r.length-1&&(t.push(""),a=0))}!a&&t.at(-1).length>0&&t.length>1&&(t[t.length-2]+=t.pop())},f=(t,e,n={})=>{if(!1!==n.trim&&""===t.trim())return"";let o,r,s="";const f=(t=>t.split(" ").map((t=>i(t))))(t);let h=[""];for(const[o,r]of t.split(" ").entries()){!1!==n.trim&&(h[h.length-1]=h.at(-1).trimStart());let t=i(h.at(-1));if(0!==o&&(t>=e&&(!1===n.wordWrap||!1===n.trim)&&(h.push(""),t=0),(t>0||!1===n.trim)&&(h[h.length-1]+=" ",t++)),n.hard&&f[o]>e){const n=e-t,s=1+Math.floor((f[o]-n-1)/e);Math.floor((f[o]-1)/e)<s&&h.push(""),g(h,r,e)}else{if(t+f[o]>e&&t>0&&f[o]>0){if(!1===n.wordWrap&&t<e){g(h,r,e);continue}h.push("")}t+f[o]>e&&!1===n.wordWrap?g(h,r,e):h[h.length-1]+=r}}!1!==n.trim&&(h=h.map((t=>(t=>{const e=t.split(" ");let n=e.length;for(;n>0&&!(i(e[n-1])>0);)n--;return n===e.length?t:e.slice(0,n).join(" ")+e.slice(n).join("")})(t))));const m=h.join("\n"),d=[...m];let v=0;for(const[t,e]of d.entries()){if(s+=e,c.has(e)){const{groups:t}=new RegExp(`(?:\\[(?<code>\\d+)m|\\${u}(?<uri>.*)\x07)`).exec(m.slice(v))||{groups:{}};if(void 0!==t.code){const e=Number.parseFloat(t.code);o=39===e?void 0:e}else void 0!==t.uri&&(r=0===t.uri.length?void 0:t.uri)}const n=l.ZP.codes.get(Number(o));"\n"===d[t+1]?(r&&(s+=p("")),o&&n&&(s+=a(n))):"\n"===e&&(o&&n&&(s+=a(o)),r&&(s+=p(r))),v+=e.length}return s};function h(t,e,n){return String(t).normalize().replaceAll("\r\n","\n").split("\n").map((t=>f(t,e,n))).join("\n")}}};
|
package/dist/786.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const id=786;export const ids=[786,784];export const modules={8278:e=>{const t=(e,t)=>{for(const n of Reflect.ownKeys(t))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n));return e};e.exports=t,e.exports.default=t},3937:(e,t,n)=>{const r=n(8278),o=new WeakMap,i=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,i=0;const s=e.displayName||e.name||"<anonymous>",l=function(...r){if(o.set(l,++i),1===i)n=e.apply(this,r),e=null;else if(!0===t.throw)throw new Error(`Function \`${s}\` can only be called once`);return n};return r(l,e),o.set(l,i),l};e.exports=i,e.exports.default=i,e.exports.callCount=e=>{if(!o.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return o.get(e)}},260:(e,t,n)=>{var r=global.process;const o=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on};if(o(r)){var i,s=n(9491),l=n(3261),c=/^win/i.test(r.platform),a=n(2361);"function"!=typeof a&&(a=a.EventEmitter),r.__signal_exit_emitter__?i=r.__signal_exit_emitter__:((i=r.__signal_exit_emitter__=new a).count=0,i.emitted={}),i.infinite||(i.setMaxListeners(1/0),i.infinite=!0),e.exports=function(e,t){if(!o(global.process))return function(){};s.equal(typeof e,"function","a callback must be provided for exit handler"),!1===p&&h();var n="exit";t&&t.alwaysLast&&(n="afterexit");return i.on(n,e),function(){i.removeListener(n,e),0===i.listeners("exit").length&&0===i.listeners("afterexit").length&&u()}};var u=function(){p&&o(global.process)&&(p=!1,l.forEach((function(e){try{r.removeListener(e,d[e])}catch(e){}})),r.emit=w,r.reallyExit=g,i.count-=1)};e.exports.unload=u;var f=function(e,t,n){i.emitted[e]||(i.emitted[e]=!0,i.emit(e,t,n))},d={};l.forEach((function(e){d[e]=function(){o(global.process)&&(r.listeners(e).length===i.count&&(u(),f("exit",null,e),f("afterexit",null,e),c&&"SIGHUP"===e&&(e="SIGINT"),r.kill(r.pid,e)))}})),e.exports.signals=function(){return l};var p=!1,h=function(){!p&&o(global.process)&&(p=!0,i.count+=1,l=l.filter((function(e){try{return r.on(e,d[e]),!0}catch(e){return!1}})),r.emit=x,r.reallyExit=m)};e.exports.load=h;var g=r.reallyExit,m=function(e){o(global.process)&&(r.exitCode=e||0,f("exit",r.exitCode,null),f("afterexit",r.exitCode,null),g.call(r,r.exitCode))},w=r.emit,x=function(e,t){if("exit"===e&&o(global.process)){void 0!==t&&(r.exitCode=t);var n=w.apply(this,arguments);return f("exit",r.exitCode,null),f("afterexit",r.exitCode,null),n}return w.apply(this,arguments)}}else e.exports=function(){return function(){}}},3261:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},5786:(e,t,n)=>{n.d(t,{createLogUpdate:()=>Z});var r=n(7742);const o="\x1b[",i="\x1b]",s="\x07",l=";",c="undefined"!=typeof window&&void 0!==window.document,a=!c&&"Apple_Terminal"===r.env.TERM_PROGRAM,u=!c&&"win32"===r.platform,f=c?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:r.cwd,d={cursorTo:(e,t)=>{if("number"!=typeof e)throw new TypeError("The `x` argument is required");return"number"!=typeof t?o+(e+1)+"G":o+(t+1)+l+(e+1)+"H"},cursorMove:(e,t)=>{if("number"!=typeof e)throw new TypeError("The `x` argument is required");let n="";return e<0?n+=o+-e+"D":e>0&&(n+=o+e+"C"),t<0?n+=o+-t+"A":t>0&&(n+=o+t+"B"),n},cursorUp:(e=1)=>o+e+"A",cursorDown:(e=1)=>o+e+"B",cursorForward:(e=1)=>o+e+"C",cursorBackward:(e=1)=>o+e+"D",cursorLeft:"\x1b[G"};d.cursorSavePosition=a?"\x1b7":"\x1b[s",d.cursorRestorePosition=a?"\x1b8":"\x1b[u",d.cursorGetPosition="\x1b[6n",d.cursorNextLine="\x1b[E",d.cursorPrevLine="\x1b[F",d.cursorHide="\x1b[?25l",d.cursorShow="\x1b[?25h",d.eraseLines=e=>{let t="";for(let n=0;n<e;n++)t+=d.eraseLine+(n<e-1?d.cursorUp():"");return e&&(t+=d.cursorLeft),t},d.eraseEndLine="\x1b[K",d.eraseStartLine="\x1b[1K",d.eraseLine="\x1b[2K",d.eraseDown="\x1b[J",d.eraseUp="\x1b[1J",d.eraseScreen="\x1b[2J",d.scrollUp="\x1b[S",d.scrollDown="\x1b[T",d.clearScreen="\x1bc",d.clearTerminal=u?`${d.eraseScreen}${o}0f`:`${d.eraseScreen}${o}3J${o}H`,d.enterAlternativeScreen="\x1b[?1049h",d.exitAlternativeScreen="\x1b[?1049l",d.beep=s,d.link=(e,t)=>[i,"8",l,l,t,s,e,i,"8",l,l,s].join(""),d.image=(e,t={})=>{let n=`${i}1337;File=inline=1`;return t.width&&(n+=`;width=${t.width}`),t.height&&(n+=`;height=${t.height}`),!1===t.preserveAspectRatio&&(n+=";preserveAspectRatio=0"),n+":"+e.toString("base64")+s},d.iTerm={setCwd:(e=f())=>`${i}50;CurrentDir=${e}${s}`,annotation(e,t={}){let n=`${i}1337;`;const r=void 0!==t.x,o=void 0!==t.y;if((r||o)&&(!r||!o||void 0===t.length))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),n+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?n+=(r?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):n+=e,n+s}};const p=d;var h=n(3937),g=n(260);const m=h((()=>{g((()=>{r.stderr.write("\x1b[?25h")}),{alwaysLast:!0})}));let w=!1;const x={show:(e=r.stderr)=>{e.isTTY&&(w=!1,e.write("\x1b[?25h"))},hide:(e=r.stderr)=>{e.isTTY&&(m(),w=!0,e.write("\x1b[?25l"))},toggle:(e,t)=>{void 0!==e&&(w=e),w?x.show(t):x.hide(t)}},v=x;var y=n(7784),S=n(8806),I=n(6616);function b(e){return!!Number.isInteger(e)&&2===(0,I.a5)(e)}const P=new Set([27,155]),T="0".codePointAt(0),A="9".codePointAt(0),E=new Set,G=new Map;for(const[e,t]of S.ZP.codes)E.add(S.ZP.color.ansi(t)),G.set(S.ZP.color.ansi(e),S.ZP.color.ansi(t));function L(e){if(E.has(e))return e;if(G.has(e))return G.get(e);(e=e.slice(2)).includes(";")&&(e=e[0]+"0");const t=S.ZP.codes.get(Number.parseInt(e,10));return t?S.ZP.color.ansi(t):S.ZP.reset.open}function C(e,t){const n=function(e){for(let t=0;t<e.length;t++){const n=e.codePointAt(t);if(n>=T&&n<=A)return t}return-1}(e=e.slice(t,t+19));if(-1!==n){let t=e.indexOf("m",n);return-1===t&&(t=e.length),e.slice(0,t+1)}}function _(e){let t=[];for(const n of e)n.code===S.ZP.reset.open?t=[]:E.has(n.code)?t=t.filter((e=>e.endCode!==n.code)):(t=t.filter((e=>e.endCode!==n.endCode)),t.push(n));return t}function $(e,t,n){const r=function(e,t=Number.POSITIVE_INFINITY){const n=[];let r=0,o=0;for(;r<e.length;){const i=e.codePointAt(r);if(P.has(i)){const t=C(e,r);if(t){n.push({type:"ansi",code:t,endCode:L(t)}),r+=t.length;continue}}const s=b(i),l=String.fromCodePoint(i);if(n.push({type:"character",value:l,isFullWidth:s}),r+=l.length,o+=s?2:l.length,o>=t)break}return n}(e,n);let o=[],i=0,s="",l=!1;for(const e of r){if(void 0!==n&&i>=n)break;"ansi"===e.type?(o.push(e),l&&(s+=e.code)):(!l&&i>=t&&(l=!0,o=_(o),s=o.map((({code:e})=>e)).join("")),l&&(s+=e.value),i+=e.isFullWidth?2:e.value.length)}return s+=_(o).map((({endCode:e})=>e)).reverse().join(""),s}var j=n(139);const R=e=>{const{columns:t}=e;return t||80},N=(e,t)=>{const n=e.rows??24,r=t.split("\n"),o=r.length-n;return o<=0?t:$(t,(0,j.Z)(r.slice(0,o).join("\n")).length+1)};function Z(e,{showCursor:t=!1}={}){let n=0,r=R(e),o="";const i=(...i)=>{t||v.hide();let s=i.join(" ")+"\n";s=N(e,s);const l=R(e);s===o&&r===l||(o=s,r=l,s=(0,y.default)(s,l,{trim:!1,hard:!0,wordWrap:!1}),e.write(p.eraseLines(n)+s),n=s.split("\n").length)};return i.clear=()=>{e.write(p.eraseLines(n)),o="",r=R(e),n=0},i.done=()=>{o="",r=R(e),n=0,t||v.show()},i}Z(r.stdout),Z(r.stderr)},7784:(e,t,n)=>{n.d(t,{default:()=>h});var r=n(139),o=n(6616),i=n(9416);function s(e,t={}){if("string"!=typeof e||0===e.length)return 0;const{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:s=!1}=t;if(s||(e=(0,r.Z)(e)),0===e.length)return 0;let l=0;for(const{segment:t}of(new Intl.Segmenter).segment(e)){const e=t.codePointAt(0);e<=31||e>=127&&e<=159||(e>=768&&e<=879||((0,i.Z)().test(t)?l+=2:l+=(0,o.a5)(e,{ambiguousAsWide:!n})))}return l}var l=n(8806);const c=new Set(["\x1b","\x9b"]),a="]8;;",u=e=>`${c.values().next().value}[${e}m`,f=e=>`${c.values().next().value}${a}${e}\x07`,d=(e,t,n)=>{const o=[...t];let i=!1,l=!1,u=s((0,r.Z)(e.at(-1)));for(const[t,r]of o.entries()){const f=s(r);if(u+f<=n?e[e.length-1]+=r:(e.push(r),u=0),c.has(r)){i=!0;l=o.slice(t+1,t+1+4).join("")===a}i?l?"\x07"===r&&(i=!1,l=!1):"m"===r&&(i=!1):(u+=f,u===n&&t<o.length-1&&(e.push(""),u=0))}!u&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop())},p=(e,t,n={})=>{if(!1!==n.trim&&""===e.trim())return"";let r,o,i="";const p=(e=>e.split(" ").map((e=>s(e))))(e);let h=[""];for(const[r,o]of e.split(" ").entries()){!1!==n.trim&&(h[h.length-1]=h.at(-1).trimStart());let e=s(h.at(-1));if(0!==r&&(e>=t&&(!1===n.wordWrap||!1===n.trim)&&(h.push(""),e=0),(e>0||!1===n.trim)&&(h[h.length-1]+=" ",e++)),n.hard&&p[r]>t){const n=t-e,i=1+Math.floor((p[r]-n-1)/t);Math.floor((p[r]-1)/t)<i&&h.push(""),d(h,o,t)}else{if(e+p[r]>t&&e>0&&p[r]>0){if(!1===n.wordWrap&&e<t){d(h,o,t);continue}h.push("")}e+p[r]>t&&!1===n.wordWrap?d(h,o,t):h[h.length-1]+=o}}!1!==n.trim&&(h=h.map((e=>(e=>{const t=e.split(" ");let n=t.length;for(;n>0&&!(s(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")})(e))));const g=h.join("\n"),m=[...g];let w=0;for(const[e,t]of m.entries()){if(i+=t,c.has(t)){const{groups:e}=new RegExp(`(?:\\[(?<code>\\d+)m|\\${a}(?<uri>.*)\x07)`).exec(g.slice(w))||{groups:{}};if(void 0!==e.code){const t=Number.parseFloat(e.code);r=39===t?void 0:t}else void 0!==e.uri&&(o=0===e.uri.length?void 0:e.uri)}const n=l.ZP.codes.get(Number(r));"\n"===m[e+1]?(o&&(i+=f("")),r&&n&&(i+=u(n))):"\n"===t&&(r&&n&&(i+=u(r)),o&&(i+=f(o))),w+=t.length}return i};function h(e,t,n){return String(e).normalize().replaceAll("\r\n","\n").split("\n").map((e=>p(e,t,n))).join("\n")}}};
|
package/dist/794.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const id=794;export const ids=[794];export const modules={2209:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.formatResult=t.format=void 0;const o=r(n(2645)),l=[" ","\u26a0","\u2716"],s=["white","yellow","red"];function a(e={},t={}){const{results:n=[]}=e,r=e=>function(e,t={}){const{color:n=!0}=t,{errors:r=[],warnings:l=[],input:s=""}=e;if(!s)return[""];const a="\u29d7",i=n?o.default.gray(a):a,c=r.length>0?s:s.split("\n")[0],u=n?o.default.bold(c):c,h=r.length>0||l.length>0;return t.verbose||h?[`${i} input: ${u}`]:[]}(e,t),l=e=>i(e,t);return n.filter((e=>Array.isArray(e.warnings)||Array.isArray(e.errors))).map((e=>[...r(e),...l(e)])).reduce(((e,t)=>Array.isArray(t)?[...e,...t]:[...e,t]),[]).join("\n")}function i(e={},t={}){const{signs:n=l,colors:r=s,color:a=!0}=t,{errors:i=[],warnings:c=[]}=e,u=[...i,...c].map((e=>{const t=n[e.level]||"",l=r[e.level]||"white",s=a?o.default[l](t):t,i=a?o.default.grey(`[${e.name}]`):`[${e.name}]`;return`${s} ${e.message} ${i}`})),h=function(e){if((e.errors||[]).length>0)return"\u2716";return(e.warnings||[]).length?"\u26a0":"\u2714"}(e),g=function(e){if((e.errors||[]).length>0)return"red";return(e.warnings||[]).length?"yellow":"green"}(e),f=a?o.default[g](h):h,b=i.length,d=c.length,p=u.length>0,m=t.verbose||p?`${f} found ${b} problems, ${d} warnings`:void 0,y=a&&"string"==typeof m?o.default.bold(m):m,v=p&&t.helpUrl?`\u24d8 Get help: ${t.helpUrl}`:void 0;return[...u,p?"":void 0,y,v,p?"":void 0].filter((e=>"string"==typeof e))}t.format=a,t.formatResult=i,t.default=a},3794:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(2209);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l(s).default}}),o(n(2209),t)},1958:(e,t,n)=>{e=n.nmd(e);const r=(e,t)=>(...n)=>`\x1b[${e(...n)+t}m`,o=(e,t)=>(...n)=>{const r=e(...n);return`\x1b[${38+t};5;${r}m`},l=(e,t)=>(...n)=>{const r=e(...n);return`\x1b[${38+t};2;${r[0]};${r[1]};${r[2]}m`},s=e=>e,a=(e,t,n)=>[e,t,n],i=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let c;const u=(e,t,r,o)=>{void 0===c&&(c=n(841));const l=o?10:0,s={};for(const[n,o]of Object.entries(c)){const a="ansi16"===n?"ansi":n;n===t?s[a]=e(r,l):"object"==typeof o&&(s[a]=e(o[t],l))}return s};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,r]of Object.entries(t)){for(const[n,o]of Object.entries(r))t[n]={open:`\x1b[${o[0]}m`,close:`\x1b[${o[1]}m`},r[n]=t[n],e.set(o[0],o[1]);Object.defineProperty(t,n,{value:r,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1b[39m",t.bgColor.close="\x1b[49m",i(t.color,"ansi",(()=>u(r,"ansi16",s,!1))),i(t.color,"ansi256",(()=>u(o,"ansi256",s,!1))),i(t.color,"ansi16m",(()=>u(l,"rgb",a,!1))),i(t.bgColor,"ansi",(()=>u(r,"ansi16",s,!0))),i(t.bgColor,"ansi256",(()=>u(o,"ansi256",s,!0))),i(t.bgColor,"ansi16m",(()=>u(l,"rgb",a,!0))),t}})},6183:(e,t,n)=>{const r=n(2037),o=n(6224),l=n(8137),{env:s}=process;let a;function i(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function c(e,t){if(0===a)return 0;if(l("color=16m")||l("color=full")||l("color=truecolor"))return 3;if(l("color=256"))return 2;if(e&&!t&&void 0===a)return 0;const n=a||0;if("dumb"===s.TERM)return n;if("win32"===process.platform){const e=r.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in s))||"codeship"===s.CI_NAME?1:n;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("truecolor"===s.COLORTERM)return 3;if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:n}l("no-color")||l("no-colors")||l("color=false")||l("color=never")?a=0:(l("color")||l("colors")||l("color=true")||l("color=always"))&&(a=1),"FORCE_COLOR"in s&&(a="true"===s.FORCE_COLOR?1:"false"===s.FORCE_COLOR?0:0===s.FORCE_COLOR.length?1:Math.min(parseInt(s.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return i(c(e,e&&e.isTTY))},stdout:i(c(!0,o.isatty(1))),stderr:i(c(!0,o.isatty(2)))}},2645:(e,t,n)=>{const r=n(1958),{stdout:o,stderr:l}=n(6183),{stringReplaceAll:s,stringEncaseCRLFWithFirstIndex:a}=n(1957),{isArray:i}=Array,c=["ansi","ansi","ansi256","ansi16m"],u=Object.create(null);class h{constructor(e){return g(e)}}const g=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=o?o.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>w(t.template,...e),Object.setPrototypeOf(t,f.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=h,t.template};function f(e){return g(e)}for(const[e,t]of Object.entries(r))u[e]={get(){const n=m(this,p(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};u.visible={get(){const e=m(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const b=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of b)u[e]={get(){const{level:t}=this;return function(...n){const o=p(r.color[c[t]][e](...n),r.color.close,this._styler);return m(this,o,this._isEmpty)}}};for(const e of b){u["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const o=p(r.bgColor[c[t]][e](...n),r.bgColor.close,this._styler);return m(this,o,this._isEmpty)}}}}const d=Object.defineProperties((()=>{}),{...u,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),p=(e,t,n)=>{let r,o;return void 0===n?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},m=(e,t,n)=>{const r=(...e)=>i(e[0])&&i(e[0].raw)?y(r,w(r,...e)):y(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,d),r._generator=e,r._styler=t,r._isEmpty=n,r},y=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:r,closeAll:o}=n;if(-1!==t.indexOf("\x1b"))for(;void 0!==n;)t=s(t,n.close,n.open),n=n.parent;const l=t.indexOf("\n");return-1!==l&&(t=a(t,o,r,l)),r+t+o};let v;const w=(e,...t)=>{const[r]=t;if(!i(r)||!i(r.raw))return t.join(" ");const o=t.slice(1),l=[r.raw[0]];for(let e=1;e<r.length;e++)l.push(String(o[e-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[e]));return void 0===v&&(v=n(1070)),v(e,l.join(""))};Object.defineProperties(f.prototype,u);const k=f();k.supportsColor=o,k.stderr=f({level:l?l.level:0}),k.stderr.supportsColor=l,e.exports=k},1070:e=>{const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,o=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,l=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function s(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):l.get(e)||e}function a(e,t){const n=[],l=t.trim().split(/\s*,\s*/g);let a;for(const t of l){const l=Number(t);if(Number.isNaN(l)){if(!(a=t.match(r)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);n.push(a[2].replace(o,((e,t,n)=>t?s(t):n)))}else n.push(l)}return n}function i(e){n.lastIndex=0;const t=[];let r;for(;null!==(r=n.exec(e));){const e=r[1];if(r[2]){const n=a(e,r[2]);t.push([e].concat(n))}else t.push([e])}return t}function c(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in r))throw new Error(`Unknown Chalk style: ${e}`);r=t.length>0?r[e](...t):r[e]}return r}e.exports=(e,n)=>{const r=[],o=[];let l=[];if(n.replace(t,((t,n,a,u,h,g)=>{if(n)l.push(s(n));else if(u){const t=l.join("");l=[],o.push(0===r.length?t:c(e,r)(t)),r.push({inverse:a,styles:i(u)})}else if(h){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");o.push(c(e,r)(l.join(""))),l=[],r.pop()}else l.push(g)})),o.push(l.join("")),r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")}},1957:e=>{e.exports={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(-1===r)return e;const o=t.length;let l=0,s="";do{s+=e.substr(l,r-l)+t+n,l=r+o,r=e.indexOf(t,l)}while(-1!==r);return s+=e.substr(l),s},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let o=0,l="";do{const s="\r"===e[r-1];l+=e.substr(o,(s?r-1:r)-o)+t+(s?"\r\n":"\n")+n,o=r+1,r=e.indexOf("\n",o)}while(-1!==r);return l+=e.substr(o),l}}},4959:(e,t,n)=>{const r=n(1103),o={};for(const e of Object.keys(r))o[r[e]]=e;const l={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=l;for(const e of Object.keys(l)){if(!("channels"in l[e]))throw new Error("missing channels property: "+e);if(!("labels"in l[e]))throw new Error("missing channel labels property: "+e);if(l[e].labels.length!==l[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=l[e];delete l[e].channels,delete l[e].labels,Object.defineProperty(l[e],"channels",{value:t}),Object.defineProperty(l[e],"labels",{value:n})}l.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),l=Math.max(t,n,r),s=l-o;let a,i;l===o?a=0:t===l?a=(n-r)/s:n===l?a=2+(r-t)/s:r===l&&(a=4+(t-n)/s),a=Math.min(60*a,360),a<0&&(a+=360);const c=(o+l)/2;return i=l===o?0:c<=.5?s/(l+o):s/(2-l-o),[a,100*i,100*c]},l.rgb.hsv=function(e){let t,n,r,o,l;const s=e[0]/255,a=e[1]/255,i=e[2]/255,c=Math.max(s,a,i),u=c-Math.min(s,a,i),h=function(e){return(c-e)/6/u+.5};return 0===u?(o=0,l=0):(l=u/c,t=h(s),n=h(a),r=h(i),s===c?o=r-n:a===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*l,100*c]},l.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=l.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*s,100*r]},l.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},l.rgb.keyword=function(e){const t=o[e];if(t)return t;let n,l=1/0;for(const t of Object.keys(r)){const o=r[t],i=(a=o,((s=e)[0]-a[0])**2+(s[1]-a[1])**2+(s[2]-a[2])**2);i<l&&(l=i,n=t)}var s,a;return n},l.keyword.rgb=function(e){return r[e]},l.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;return[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},l.rgb.lab=function(e){const t=l.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;return[116*r-16,500*(n-r),200*(r-o)]},l.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,l,s;if(0===n)return s=255*r,[s,s,s];o=r<.5?r*(1+n):r+n-r*n;const a=2*r-o,i=[0,0,0];for(let e=0;e<3;e++)l=t+1/3*-(e-1),l<0&&l++,l>1&&l--,s=6*l<1?a+6*(o-a)*l:2*l<1?o:3*l<2?a+(o-a)*(2/3-l)*6:a,i[e]=255*s;return i},l.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const l=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=l<=1?l:2-l;return[t,100*(0===r?2*o/(l+o):2*n/(r+n)),100*((r+n)/2)]},l.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,l=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*l),i=255*r*(1-n*(1-l));switch(r*=255,o){case 0:return[r,i,s];case 1:return[a,r,s];case 2:return[s,r,i];case 3:return[s,a,r];case 4:return[i,s,r];case 5:return[r,s,a]}},l.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let l,s;s=(2-n)*r;const a=(2-n)*o;return l=n*o,l/=a<=1?a:2-a,l=l||0,s/=2,[t,100*l,100*s]},l.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let l;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),a=1-r;l=6*t-s,0!=(1&s)&&(l=1-l);const i=n+l*(a-n);let c,u,h;switch(s){default:case 6:case 0:c=a,u=i,h=n;break;case 1:c=i,u=a,h=n;break;case 2:c=n,u=a,h=i;break;case 3:c=n,u=i,h=a;break;case 4:c=i,u=n,h=a;break;case 5:c=a,u=n,h=i}return[255*c,255*u,255*h]},l.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},l.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,l,s;return o=3.2406*t+-1.5372*n+-.4986*r,l=-.9689*t+1.8758*n+.0415*r,s=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=Math.min(Math.max(0,o),1),l=Math.min(Math.max(0,l),1),s=Math.min(Math.max(0,s),1),[255*o,255*l,255*s]},l.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*n-16,500*(t-n),200*(n-r)]},l.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,l=t**3,s=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=l>.008856?l:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},l.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360);return[t,Math.sqrt(n*n+r*r),o]},l.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},l.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let s=null===t?l.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let a=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===s&&(a+=60),a},l.hsv.ansi16=function(e){return l.rgb.ansi16(l.hsv.rgb(e),e[2])},l.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},l.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},l.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},l.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},l.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},l.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),l=Math.min(Math.min(t,n),r),s=o-l;let a,i;return a=s<1?l/(1-s):0,i=s<=0?0:o===t?(n-r)/s%6:o===n?2+(r-t)/s:4+(t-n)/s,i/=6,i%=1,[360*i,100*s,100*a]},l.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},l.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},l.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],l=t%1*6,s=l%1,a=1-s;let i=0;switch(Math.floor(l)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},l.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},l.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},l.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},l.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},l.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},l.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},l.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},l.gray.hsl=function(e){return[0,0,e[0]]},l.gray.hsv=l.gray.hsl,l.gray.hwb=function(e){return[0,100,e[0]]},l.gray.cmyk=function(e){return[0,0,0,e[0]]},l.gray.lab=function(e){return[e[0],0,0]},l.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},l.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},841:(e,t,n)=>{const r=n(4959),o=n(9325),l={};Object.keys(r).forEach((e=>{l[e]={},Object.defineProperty(l[e],"channels",{value:r[e].channels}),Object.defineProperty(l[e],"labels",{value:r[e].labels});const t=o(e);Object.keys(t).forEach((n=>{const r=t[n];l[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),l[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=l},9325:(e,t,n)=>{const r=n(4959);function o(e){const t=function(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),o=Object.keys(r[e]);for(let r=o.length,l=0;l<r;l++){const r=o[l],s=t[r];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,n.unshift(r))}}return t}function l(e,t){return function(n){return t(e(n))}}function s(e,t){const n=[t[e].parent,e];let o=r[t[e].parent][e],s=t[e].parent;for(;t[s].parent;)n.unshift(t[s].parent),o=l(r[t[s].parent][s],o),s=t[s].parent;return o.conversion=n,o}e.exports=function(e){const t=o(e),n={},r=Object.keys(t);for(let e=r.length,o=0;o<e;o++){const e=r[o];null!==t[e].parent&&(n[e]=s(e,t))}return n}},1103:e=>{e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8137:e=>{e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(-1===o||r<o)}}};
|
package/dist/930.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const id=930;export const ids=[930];export const modules={8806:(D,u,F)=>{F.d(u,{ZP:()=>e});const C=(D=0)=>u=>`\x1b[${u+D}m`,E=(D=0)=>u=>`\x1b[${38+D};5;${u}m`,B=(D=0)=>(u,F,C)=>`\x1b[${38+D};2;${u};${F};${C}m`,A={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(A.modifier),Object.keys(A.color),Object.keys(A.bgColor);const e=function(){const D=new Map;for(const[u,F]of Object.entries(A)){for(const[u,C]of Object.entries(F))A[u]={open:`\x1b[${C[0]}m`,close:`\x1b[${C[1]}m`},F[u]=A[u],D.set(C[0],C[1]);Object.defineProperty(A,u,{value:F,enumerable:!1})}return Object.defineProperty(A,"codes",{value:D,enumerable:!1}),A.color.close="\x1b[39m",A.bgColor.close="\x1b[49m",A.color.ansi=C(),A.color.ansi256=E(),A.color.ansi16m=B(),A.bgColor.ansi=C(10),A.bgColor.ansi256=E(10),A.bgColor.ansi16m=B(10),Object.defineProperties(A,{rgbToAnsi256:{value:(D,u,F)=>D===u&&u===F?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(u/255*5)+Math.round(F/255*5),enumerable:!1},hexToRgb:{value:D=>{const u=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!u)return[0,0,0];let[F]=u;3===F.length&&(F=[...F].map((D=>D+D)).join(""));const C=Number.parseInt(F,16);return[C>>16&255,C>>8&255,255&C]},enumerable:!1},hexToAnsi256:{value:D=>A.rgbToAnsi256(...A.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value:D=>{if(D<8)return 30+D;if(D<16)return D-8+90;let u,F,C;if(D>=232)u=(10*(D-232)+8)/255,F=u,C=u;else{const E=(D-=16)%36;u=Math.floor(D/36)/5,F=Math.floor(E/6)/5,C=E%6/5}const E=2*Math.max(u,F,C);if(0===E)return 30;let B=30+(Math.round(C)<<2|Math.round(F)<<1|Math.round(u));return 2===E&&(B+=60),B},enumerable:!1},rgbToAnsi:{value:(D,u,F)=>A.ansi256ToAnsi(A.rgbToAnsi256(D,u,F)),enumerable:!1},hexToAnsi:{value:D=>A.ansi256ToAnsi(A.hexToAnsi256(D)),enumerable:!1}}),A}()},9416:(D,u,F)=>{F.d(u,{Z:()=>C});const C=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g},6616:(D,u,F)=>{function C(D){return 161===D||164===D||167===D||168===D||170===D||173===D||174===D||D>=176&&D<=180||D>=182&&D<=186||D>=188&&D<=191||198===D||208===D||215===D||216===D||D>=222&&D<=225||230===D||D>=232&&D<=234||236===D||237===D||240===D||242===D||243===D||D>=247&&D<=250||252===D||254===D||257===D||273===D||275===D||283===D||294===D||295===D||299===D||D>=305&&D<=307||312===D||D>=319&&D<=322||324===D||D>=328&&D<=331||333===D||338===D||339===D||358===D||359===D||363===D||462===D||464===D||466===D||468===D||470===D||472===D||474===D||476===D||593===D||609===D||708===D||711===D||D>=713&&D<=715||717===D||720===D||D>=728&&D<=731||733===D||735===D||D>=768&&D<=879||D>=913&&D<=929||D>=931&&D<=937||D>=945&&D<=961||D>=963&&D<=969||1025===D||D>=1040&&D<=1103||1105===D||8208===D||D>=8211&&D<=8214||8216===D||8217===D||8220===D||8221===D||D>=8224&&D<=8226||D>=8228&&D<=8231||8240===D||8242===D||8243===D||8245===D||8251===D||8254===D||8308===D||8319===D||D>=8321&&D<=8324||8364===D||8451===D||8453===D||8457===D||8467===D||8470===D||8481===D||8482===D||8486===D||8491===D||8531===D||8532===D||D>=8539&&D<=8542||D>=8544&&D<=8555||D>=8560&&D<=8569||8585===D||D>=8592&&D<=8601||8632===D||8633===D||8658===D||8660===D||8679===D||8704===D||8706===D||8707===D||8711===D||8712===D||8715===D||8719===D||8721===D||8725===D||8730===D||D>=8733&&D<=8736||8739===D||8741===D||D>=8743&&D<=8748||8750===D||D>=8756&&D<=8759||8764===D||8765===D||8776===D||8780===D||8786===D||8800===D||8801===D||D>=8804&&D<=8807||8810===D||8811===D||8814===D||8815===D||8834===D||8835===D||8838===D||8839===D||8853===D||8857===D||8869===D||8895===D||8978===D||D>=9312&&D<=9449||D>=9451&&D<=9547||D>=9552&&D<=9587||D>=9600&&D<=9615||D>=9618&&D<=9621||9632===D||9633===D||D>=9635&&D<=9641||9650===D||9651===D||9654===D||9655===D||9660===D||9661===D||9664===D||9665===D||D>=9670&&D<=9672||9675===D||D>=9678&&D<=9681||D>=9698&&D<=9701||9711===D||9733===D||9734===D||9737===D||9742===D||9743===D||9756===D||9758===D||9792===D||9794===D||9824===D||9825===D||D>=9827&&D<=9829||D>=9831&&D<=9834||9836===D||9837===D||9839===D||9886===D||9887===D||9919===D||D>=9926&&D<=9933||D>=9935&&D<=9939||D>=9941&&D<=9953||9955===D||9960===D||9961===D||D>=9963&&D<=9969||9972===D||D>=9974&&D<=9977||9979===D||9980===D||9982===D||9983===D||10045===D||D>=10102&&D<=10111||D>=11094&&D<=11097||D>=12872&&D<=12879||D>=57344&&D<=63743||D>=65024&&D<=65039||65533===D||D>=127232&&D<=127242||D>=127248&&D<=127277||D>=127280&&D<=127337||D>=127344&&D<=127373||127375===D||127376===D||D>=127387&&D<=127404||D>=917760&&D<=917999||D>=983040&&D<=1048573||D>=1048576&&D<=1114109}function E(D){return 12288===D||D>=65281&&D<=65376||D>=65504&&D<=65510}function B(D){return D>=4352&&D<=4447||8986===D||8987===D||9001===D||9002===D||D>=9193&&D<=9196||9200===D||9203===D||9725===D||9726===D||9748===D||9749===D||D>=9800&&D<=9811||9855===D||9875===D||9889===D||9898===D||9899===D||9917===D||9918===D||9924===D||9925===D||9934===D||9940===D||9962===D||9970===D||9971===D||9973===D||9978===D||9981===D||9989===D||9994===D||9995===D||10024===D||10060===D||10062===D||D>=10067&&D<=10069||10071===D||D>=10133&&D<=10135||10160===D||10175===D||11035===D||11036===D||11088===D||11093===D||D>=11904&&D<=11929||D>=11931&&D<=12019||D>=12032&&D<=12245||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12353&&D<=12438||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12771||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=19903||D>=19968&&D<=42124||D>=42128&&D<=42182||D>=43360&&D<=43388||D>=44032&&D<=55203||D>=63744&&D<=64255||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=94176&&D<=94180||94192===D||94193===D||D>=94208&&D<=100343||D>=100352&&D<=101589||D>=101632&&D<=101640||D>=110576&&D<=110579||D>=110581&&D<=110587||110589===D||110590===D||D>=110592&&D<=110882||110898===D||D>=110928&&D<=110930||110933===D||D>=110948&&D<=110951||D>=110960&&D<=111355||126980===D||127183===D||127374===D||D>=127377&&D<=127386||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||127568===D||127569===D||D>=127584&&D<=127589||D>=127744&&D<=127776||D>=127789&&D<=127797||D>=127799&&D<=127868||D>=127870&&D<=127891||D>=127904&&D<=127946||D>=127951&&D<=127955||D>=127968&&D<=127984||127988===D||D>=127992&&D<=128062||128064===D||D>=128066&&D<=128252||D>=128255&&D<=128317||D>=128331&&D<=128334||D>=128336&&D<=128359||128378===D||128405===D||128406===D||128420===D||D>=128507&&D<=128591||D>=128640&&D<=128709||128716===D||D>=128720&&D<=128722||D>=128725&&D<=128727||D>=128732&&D<=128735||128747===D||128748===D||D>=128756&&D<=128764||D>=128992&&D<=129003||129008===D||D>=129292&&D<=129338||D>=129340&&D<=129349||D>=129351&&D<=129535||D>=129648&&D<=129660||D>=129664&&D<=129672||D>=129680&&D<=129725||D>=129727&&D<=129733||D>=129742&&D<=129755||D>=129760&&D<=129768||D>=129776&&D<=129784||D>=131072&&D<=196605||D>=196608&&D<=262141}function A(D){if(!Number.isSafeInteger(D))throw new TypeError(`Expected a code point, got \`${typeof D}\`.`)}function e(D,{ambiguousAsWide:u=!1}={}){return A(D),E(D)||B(D)||u&&C(D)?2:1}F.d(u,{a5:()=>e})},139:(D,u,F)=>{F.d(u,{Z:()=>E});const C=function({onlyFirst:D=!1}={}){const u=["[\\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(u,D?void 0:"g")}();function E(D){if("string"!=typeof D)throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(C,"")}}};
|