Lines 1-21javascript
2import{createRequire as l3}from"node:module";var b3=Object.create;var{getPrototypeOf:v3,defineProperty:i0,getOwnPropertyNames:y3}=Object;var g3=Object.prototype.hasOwnProperty;function u3(_){return this[_]}var d3,m3,Y8=(_,$,K)=>{var U=_!=null&&typeof _==="object";if(U){var Z=$?d3??=new WeakMap:m3??=new WeakMap,J=Z.get(_);if(J)return J}K=_!=null?b3(v3(_)):{};let Q=$||!_||!_.__esModule?i0(K,"default",{value:_,enumerable:!0}):K;for(let X of y3(_))if(!g3.call(Q,X))i0(Q,X,{get:u3.bind(_,X),enumerable:!0});if(U)Z.set(_,Q);return Q};var z=(_,$)=>()=>($||_(($={exports:{}}).exports,$),$.exports);var c3 ...
4`+J),_.push(Z+"m+"+H0.exports.humanize(this.diff)+"\x1B[0m")}else _[0]=L_()+$+" "+_[0]}function L_(){if(q8.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function E_(..._){return process.stderr.write(G0.formatWithOptions(q8.inspectOpts,..._)+`
5`)}function A_(_){if(_)process.env.DEBUG=_;else delete process.env.DEBUG}function W_(){return process.env.DEBUG}function q_(_){_.inspectOpts={};let $=Object.keys(q8.inspectOpts);for(let K=0;K<$.length;K++)_.inspectOpts[$[K]]=q8.inspectOpts[$[K]]}H0.exports=a0()(q8);var{formatters:W8}=H0.exports;W8.o=function(_){return this.inspectOpts.colors=this.useColors,G0.inspect(_,this.inspectOpts).split(`
6`).map(($)=>$.trim()).join(" ")};W8.O=function(_){return this.inspectOpts.colors=this.useColors,G0.inspect(_,this.inspectOpts)}});var I8=z((AJ,s0)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)s0.exports=N8();else s0.exports=D8()});function k_(){let _=new Map;for(let[$,K]of Object.entries(q)){for(let[U,Z]of Object.entries(K))q[U]={open:`\x1B[${Z[0]}m`,close:`\x1B[${Z[1]}m`},K[U]=q[U],_.set(Z[0],Z[1]);Object.defineProperty(q,$,{value:K,enumerable:!1})}return Object.defineProperty(q,"codes",{value:_,enumerable:!1}),q.color.close
8`)+K,Z=U+1,U=_.indexOf(`
9`,Z)}while(U!==-1);return J+=_.slice(Z),J}function m1(_){return u_(_)}var b8,v8,e0,D1,d1,y8,I1,g_=(_,$={})=>{if($.level&&!(Number.isInteger($.level)&&$.level>=0&&$.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let K=b8?b8.level:0;_.level=$.level===void 0?K:$.level},u_=(_)=>{let $=(...K)=>K.join(" ");return g_($,_),Object.setPrototypeOf($,m1.prototype),$},_2=(_,$,K,...U)=>{if(_==="rgb"){if($==="ansi16m")return g[K].ansi16m(...U);if($==="ansi256")return g[K].ansi256(g.rgbToAnsi256(...U));return g[K].ansi(g.rgbToAnsi(...U))}if(_==="hex")return _2("rgb",$,K,...g.hexT ...
10`);if(J!==-1)$=x8($,Z,U,J);return U+$+Z},p_,kJ,g8;var u8=V(()=>{S8();f8();({stdout:b8,stderr:v8}=k8),e0=Symbol("GENERATOR"),D1=Symbol("STYLER"),d1=Symbol("IS_EMPTY"),y8=
11${$}`,o_,r_,s_=(_,$,K)=>{let U=K===""?"":`with ${K.trim()}() `,Z=a_.bind(null,U,$.toString());Object.defineProperty(Z,"name",r_);let{writable:J,enumerable:Q,
12`||$==="\r"}#j(){if(this.#X)return;if(this.#X=setTimeout(()=>{if(this.#X=void 0,this.isSpinning)this.#N()},F$),typeof this.#X?.unref==="function")this.#X.unref()}#O(){if(this.#X)clearTimeout(this.#X),this.#X=void 0}#R(_,$,K,U){let Z=this.#E(K," "),Q=typeof $==="string"?(_?" ":"")+$:"",X=this.#A(U," ");return Z+_+Q+X}constructor(_){if(typeof _==="string")_={text:_};if(this.#_={color:"cyan",stream:n1.stderr,discardStdin:!0,hideCursor:!0,..._},this.color=this.#_.color,this.#K=this.#_.stream,typeof this.#_.isEnabled!=="boolean")this.#_.isEnabled=B2({stream:this.#K});if(typeof this.#_.isSilent!=="b ...
13`))K+=Math.max(1,Math.ceil(V2(U)/$));return K}get color(){return this.#H}set color(_){if(_!==void 0&&_!==!1&&!P$.has(_))throw Error("The `color` option must be a valid color or `false` to disable");this.#H=_}get isEnabled(){return this.#_.isEnabled&&!this.#_.isSilent}set isEnabled(_){if(typeof _
14`),Y=J-1;K=[...X.slice(0,Y),"... (content truncated to fit terminal)"].join(`
15`)}if(this.#z(()=>this.#K.write(K))===!1&&this.#K.isTTY)this.#M=()=>{this.#M=void 0,this.#N()},this.#K.once("drain",this.#M);this.#J=this.#B(K,U)}finally{if($)this.#z(()=>this.#K.write(S$))}return this}start(_){if(_!==void 0)this.text=_;if(this.isSilent)return this;if(!this.isEnabled){let $=this.text?"-":"",K=" ".repeat(this.#_.indent)+this.#R($,this.text,this.#_.prefixText,this.#_.suffixText);if(K.trim()!=="")this.#z(()=>this.#K.write(K+`
16`));return this}if(this.isSpinning)return this;if(this.#_.hideCursor)X2.hide(this.#K);if(this.#_.discardStdin&&n1.stdin.isTTY)N2.start(),this.#V=!0;return this.#I(),this.render(),this.#Q=setInterval(this.render.bind(this),this.interval),this}stop(){if(clearInterval(this.#Q),this.#Q=void 0,this.#U=-1,this.#$=0,this.#O(),this.#C(),this.#M)this.#K.removeListener("drain",this.#M),this.#M=void 0;if(this.isEnabled){if(this.clear(),this.#_.hideCursor)X2.show(this.#K)}if(this.#V)this.#V=!1,N2.stop();return this}succeed(_){return this.stopAndPersist({symbol:L1.success,text:_})}fail(_){return this.stopA ...
17`;return this.stop(),this.#z(()=>this.#K.write(J)),this}}function O2(_){return new b9(_)}var F$=200,w$="\x1B[?2026h",S$="\x1B[?2026l",q0,P$;var v9=
18In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var J=!0,Q=!1,X;return{s:function(){K=K.call(_)},n:function(){var M=K.next();return J=M.done,M},e:function(M){Q=!0,X=M},f:function(){try{if(!J&&K.return!=null)K.return()}finally{if(Q)throw X}}}}function y$(_,$){if(!_)return;if(typeof _==="string")return p9(_,$);var K=Object.prototype.toString.call(_).slice(8,-1);if(K==="Object"&&_.constructor)K=_.constructor.name;if(K==="Map"||K==="Set")return Array.from(_);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return p9(_,$)}function p9(_,$){i ...
20`)}});var U7=z((xX,K7)=>{K7.exports=(_,$,K)=>{K=K||$;let U=Math.min($-K,_-Math.floor(K/2));if(U<
21`),this.close()}validate(){var _=this;return z7(function*(){let $=yield _.validator(_.value);if(typeof $==="string")_.errorMsg=$,$=!1;_.error=!$})()}submit(){var _=this;return z7(function*(){if(_.value=_.value||_.initial,_.cursorOffset=0,_.cursor=_.rendered.length,yield _.validate(),_.error){_.red=!0,_.fire(),_.render();return}_.done=!0,_.aborted=!1,_.fire(),_.render(),_.out.write(`
Long lines were clipped for display.