@turbo/gen 1.10.17-canary.0 → 1.10.17-canary.1
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/cli.js +120 -122
- package/package.json +5 -5
package/dist/cli.js
CHANGED
|
@@ -1,129 +1,127 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var Zo=Object.create;var oi=Object.defineProperty;var Xo=Object.getOwnPropertyDescriptor;var Qo=Object.getOwnPropertyNames;var eu=Object.getPrototypeOf,tu=Object.prototype.hasOwnProperty;var ru=(e,a,n,s)=>{if(a&&typeof a=="object"||typeof a=="function")for(let i of Qo(a))!tu.call(e,i)&&i!==n&&oi(e,i,{get:()=>a[i],enumerable:!(s=Xo(a,i))||s.enumerable});return e};var Be=(e,a,n)=>(n=e!=null?Zo(eu(e)):{},ru(a||!e||!e.__esModule?oi(n,"default",{value:e,enumerable:!0}):n,e));var Wo=Be(require("http")),zo=Be(require("https")),Vo=Be(require("chalk")),qe=require("commander");var nu=Object.create,Mr=Object.defineProperty,iu=Object.getOwnPropertyDescriptor,su=Object.getOwnPropertyNames,ou=Object.getPrototypeOf,uu=Object.prototype.hasOwnProperty,Z=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(a,n)=>(typeof require!="undefined"?require:a)[n]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),au=(e,a)=>()=>(e&&(a=e(e=0)),a),j=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports),ui=(e,a)=>{for(var n in a)Mr(e,n,{get:a[n],enumerable:!0})},lu=(e,a,n,s)=>{if(a&&typeof a=="object"||typeof a=="function")for(let i of su(a))!uu.call(e,i)&&i!==n&&Mr(e,i,{get:()=>a[i],enumerable:!(s=iu(a,i))||s.enumerable});return e},Re=(e,a,n)=>(n=e!=null?nu(ou(e)):{},lu(a||!e||!e.__esModule?Mr(n,"default",{value:e,enumerable:!0}):n,e)),B=au(()=>{});var cu=j((e,a)=>{"use strict";B();var n=(s,i)=>{for(let h of Reflect.ownKeys(i))Object.defineProperty(s,h,Object.getOwnPropertyDescriptor(i,h));return s};a.exports=n,a.exports.default=n}),cr=j((e,a)=>{"use strict";B();var n=cu(),s=new WeakMap,i=(h,u={})=>{if(typeof h!="function")throw new TypeError("Expected a function");let r,t=0,p=h.displayName||h.name||"<anonymous>",l=function(...c){if(s.set(l,++t),t===1)r=h.apply(this,c),h=null;else if(u.throw===!0)throw new Error(`Function \`${p}\` can only be called once`);return r};return n(l,h),s.set(l,t),l};a.exports=i,a.exports.default=i,a.exports.callCount=h=>{if(!s.has(h))throw new Error(`The given function \`${h.name}\` is not wrapped by the \`onetime\` package`);return s.get(h)}}),hu=j((e,a)=>{B(),a.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&a.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&a.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),hr=j((e,a)=>{B();var n=global.process,s=function(g){return g&&typeof g=="object"&&typeof g.removeListener=="function"&&typeof g.emit=="function"&&typeof g.reallyExit=="function"&&typeof g.listeners=="function"&&typeof g.kill=="function"&&typeof g.pid=="number"&&typeof g.on=="function"};s(n)?(i=Z("assert"),h=hu(),u=/^win/i.test(n.platform),r=Z("events"),typeof r!="function"&&(r=r.EventEmitter),n.__signal_exit_emitter__?t=n.__signal_exit_emitter__:(t=n.__signal_exit_emitter__=new r,t.count=0,t.emitted={}),t.infinite||(t.setMaxListeners(1/0),t.infinite=!0),a.exports=function(g,D){if(!s(global.process))return function(){};i.equal(typeof g,"function","a callback must be provided for exit handler"),o===!1&&d();var E="exit";D&&D.alwaysLast&&(E="afterexit");var v=function(){t.removeListener(E,g),t.listeners("exit").length===0&&t.listeners("afterexit").length===0&&p()};return t.on(E,g),v},p=function(){!o||!s(global.process)||(o=!1,h.forEach(function(g){try{n.removeListener(g,c[g])}catch{}}),n.emit=b,n.reallyExit=f,t.count-=1)},a.exports.unload=p,l=function(g,D,E){t.emitted[g]||(t.emitted[g]=!0,t.emit(g,D,E))},c={},h.forEach(function(g){c[g]=function(){if(s(global.process)){var D=n.listeners(g);D.length===t.count&&(p(),l("exit",null,g),l("afterexit",null,g),u&&g==="SIGHUP"&&(g="SIGINT"),n.kill(n.pid,g))}}}),a.exports.signals=function(){return h},o=!1,d=function(){o||!s(global.process)||(o=!0,t.count+=1,h=h.filter(function(g){try{return n.on(g,c[g]),!0}catch{return!1}}),n.emit=w,n.reallyExit=y)},a.exports.load=d,f=n.reallyExit,y=function(g){!s(global.process)||(n.exitCode=g||0,l("exit",n.exitCode,null),l("afterexit",n.exitCode,null),f.call(n,n.exitCode))},b=n.emit,w=function(g,D){if(g==="exit"&&s(global.process)){D!==void 0&&(n.exitCode=D);var E=b.apply(this,arguments);return l("exit",n.exitCode,null),l("afterexit",n.exitCode,null),E}else return b.apply(this,arguments)}):a.exports=function(){return function(){}};var i,h,u,r,t,p,l,c,o,d,f,y,b,w});var pu=j((e,a)=>{B(),a.exports=h,h.sync=u;var n=Z("fs");function s(r,t){var p=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!p||(p=p.split(";"),p.indexOf("")!==-1))return!0;for(var l=0;l<p.length;l++){var c=p[l].toLowerCase();if(c&&r.substr(-c.length).toLowerCase()===c)return!0}return!1}function i(r,t,p){return!r.isSymbolicLink()&&!r.isFile()?!1:s(t,p)}function h(r,t,p){n.stat(r,function(l,c){p(l,l?!1:i(c,r,t))})}function u(r,t){return i(n.statSync(r),r,t)}}),fu=j((e,a)=>{B(),a.exports=s,s.sync=i;var n=Z("fs");function s(r,t,p){n.stat(r,function(l,c){p(l,l?!1:h(c,t))})}function i(r,t){return h(n.statSync(r),t)}function h(r,t){return r.isFile()&&u(r,t)}function u(r,t){var p=r.mode,l=r.uid,c=r.gid,o=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),d=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),f=parseInt("100",8),y=parseInt("010",8),b=parseInt("001",8),w=f|y,g=p&b||p&y&&c===d||p&f&&l===o||p&w&&o===0;return g}}),du=j((e,a)=>{B();var n=Z("fs"),s;process.platform==="win32"||global.TESTING_WINDOWS?s=pu():s=fu(),a.exports=i,i.sync=h;function i(u,r,t){if(typeof r=="function"&&(t=r,r={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(p,l){i(u,r||{},function(c,o){c?l(c):p(o)})})}s(u,r||{},function(p,l){p&&(p.code==="EACCES"||r&&r.ignoreErrors)&&(p=null,l=!1),t(p,l)})}function h(u,r){try{return s.sync(u,r||{})}catch(t){if(r&&r.ignoreErrors||t.code==="EACCES")return!1;throw t}}}),mu=j((e,a)=>{B();var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",s=Z("path"),i=n?";":":",h=du(),u=l=>Object.assign(new Error(`not found: ${l}`),{code:"ENOENT"}),r=(l,c)=>{let o=c.colon||i,d=l.match(/\//)||n&&l.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(c.path||process.env.PATH||"").split(o)],f=n?c.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",y=n?f.split(o):[""];return n&&l.indexOf(".")!==-1&&y[0]!==""&&y.unshift(""),{pathEnv:d,pathExt:y,pathExtExe:f}},t=(l,c,o)=>{typeof c=="function"&&(o=c,c={}),c||(c={});let{pathEnv:d,pathExt:f,pathExtExe:y}=r(l,c),b=[],w=D=>new Promise((E,v)=>{if(D===d.length)return c.all&&b.length?E(b):v(u(l));let m=d[D],_=/^".*"$/.test(m)?m.slice(1,-1):m,S=s.join(_,l),A=!_&&/^\.[\\\/]/.test(l)?l.slice(0,2)+S:S;E(g(A,D,0))}),g=(D,E,v)=>new Promise((m,_)=>{if(v===f.length)return m(w(E+1));let S=f[v];h(D+S,{pathExt:y},(A,x)=>{if(!A&&x)if(c.all)b.push(D+S);else return m(D+S);return m(g(D,E,v+1))})});return o?w(0).then(D=>o(null,D),o):w(0)},p=(l,c)=>{c=c||{};let{pathEnv:o,pathExt:d,pathExtExe:f}=r(l,c),y=[];for(let b=0;b<o.length;b++){let w=o[b],g=/^".*"$/.test(w)?w.slice(1,-1):w,D=s.join(g,l),E=!g&&/^\.[\\\/]/.test(l)?l.slice(0,2)+D:D;for(let v=0;v<d.length;v++){let m=E+d[v];try{if(h.sync(m,{pathExt:f}))if(c.all)y.push(m);else return m}catch{}}}if(c.all&&y.length)return y;if(c.nothrow)return null;throw u(l)};a.exports=t,t.sync=p}),ai=j((e,a)=>{"use strict";B();var n=(s={})=>{let i=s.env||process.env;return(s.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(h=>h.toUpperCase()==="PATH")||"Path"};a.exports=n,a.exports.default=n}),yu=j((e,a)=>{"use strict";B();var n=Z("path"),s=mu(),i=ai();function h(r,t){let p=r.options.env||process.env,l=process.cwd(),c=r.options.cwd!=null,o=c&&process.chdir!==void 0&&!process.chdir.disabled;if(o)try{process.chdir(r.options.cwd)}catch{}let d;try{d=s.sync(r.command,{path:p[i({env:p})],pathExt:t?n.delimiter:void 0})}catch{}finally{o&&process.chdir(l)}return d&&(d=n.resolve(c?r.options.cwd:"",d)),d}function u(r){return h(r)||h(r,!0)}a.exports=u}),gu=j((e,a)=>{"use strict";B();var n=/([()\][%!^"`<>&|;, *?])/g;function s(h){return h=h.replace(n,"^$1"),h}function i(h,u){return h=`${h}`,h=h.replace(/(\\*)"/g,'$1$1\\"'),h=h.replace(/(\\*)$/,"$1$1"),h=`"${h}"`,h=h.replace(n,"^$1"),u&&(h=h.replace(n,"^$1")),h}a.exports.command=s,a.exports.argument=i}),bu=j((e,a)=>{"use strict";B(),a.exports=/^#!(.*)/}),vu=j((e,a)=>{"use strict";B();var n=bu();a.exports=(s="")=>{let i=s.match(n);if(!i)return null;let[h,u]=i[0].replace(/#! ?/,"").split(" "),r=h.split("/").pop();return r==="env"?u:u?`${r} ${u}`:r}}),wu=j((e,a)=>{"use strict";B();var n=Z("fs"),s=vu();function i(h){let u=Buffer.alloc(150),r;try{r=n.openSync(h,"r"),n.readSync(r,u,0,150,0),n.closeSync(r)}catch{}return s(u.toString())}a.exports=i}),_u=j((e,a)=>{"use strict";B();var n=Z("path"),s=yu(),i=gu(),h=wu(),u=process.platform==="win32",r=/\.(?:com|exe)$/i,t=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function p(o){o.file=s(o);let d=o.file&&h(o.file);return d?(o.args.unshift(o.file),o.command=d,s(o)):o.file}function l(o){if(!u)return o;let d=p(o),f=!r.test(d);if(o.options.forceShell||f){let y=t.test(d);o.command=n.normalize(o.command),o.command=i.command(o.command),o.args=o.args.map(w=>i.argument(w,y));let b=[o.command].concat(o.args).join(" ");o.args=["/d","/s","/c",`"${b}"`],o.command=process.env.comspec||"cmd.exe",o.options.windowsVerbatimArguments=!0}return o}function c(o,d,f){d&&!Array.isArray(d)&&(f=d,d=null),d=d?d.slice(0):[],f=Object.assign({},f);let y={command:o,args:d,options:f,file:void 0,original:{command:o,args:d}};return f.shell?y:l(y)}a.exports=c}),Eu=j((e,a)=>{"use strict";B();var n=process.platform==="win32";function s(r,t){return Object.assign(new Error(`${t} ${r.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${r.command}`,path:r.command,spawnargs:r.args})}function i(r,t){if(!n)return;let p=r.emit;r.emit=function(l,c){if(l==="exit"){let o=h(c,t,"spawn");if(o)return p.call(r,"error",o)}return p.apply(r,arguments)}}function h(r,t){return n&&r===1&&!t.file?s(t.original,"spawn"):null}function u(r,t){return n&&r===1&&!t.file?s(t.original,"spawnSync"):null}a.exports={hookChildProcess:i,verifyENOENT:h,verifyENOENTSync:u,notFoundError:s}}),Du=j((e,a)=>{"use strict";B();var n=Z("child_process"),s=_u(),i=Eu();function h(r,t,p){let l=s(r,t,p),c=n.spawn(l.command,l.args,l.options);return i.hookChildProcess(c,l),c}function u(r,t,p){let l=s(r,t,p),c=n.spawnSync(l.command,l.args,l.options);return c.error=c.error||i.verifyENOENTSync(c.status,l),c}a.exports=h,a.exports.spawn=h,a.exports.sync=u,a.exports._parse=s,a.exports._enoent=i}),Su=j((e,a)=>{"use strict";B(),a.exports=n=>{let s=typeof n=="string"?`
|
|
2
|
+
"use strict";var _v=Object.create;var Zu=Object.defineProperty;var Ev=Object.getOwnPropertyDescriptor;var bv=Object.getOwnPropertyNames;var Dv=Object.getPrototypeOf,wv=Object.prototype.hasOwnProperty;var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Av=(t,e)=>{for(var r in e)Zu(t,r,{get:e[r],enumerable:!0})},xv=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of bv(e))!wv.call(t,i)&&i!==r&&Zu(t,i,{get:()=>e[i],enumerable:!(n=Ev(e,i))||n.enumerable});return t};var X=(t,e,r)=>(r=t!=null?_v(Dv(t)):{},xv(e||!t||!t.__esModule?Zu(r,"default",{value:t,enumerable:!0}):r,t));var gm=b((KM,Kt)=>{function Qu(t){return Kt.exports=Qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt.exports.__esModule=!0,Kt.exports.default=Kt.exports,Qu(t)}Kt.exports=Qu,Kt.exports.__esModule=!0,Kt.exports.default=Kt.exports});var _m=b((JM,Jt)=>{var Sv=gm().default;function ym(){"use strict";Jt.exports=ym=function(){return t},Jt.exports.__esModule=!0,Jt.exports.default=Jt.exports;var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(O,v,k){O[v]=k.value},i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function u(O,v,k){return Object.defineProperty(O,v,{value:k,enumerable:!0,configurable:!0,writable:!0}),O[v]}try{u({},"")}catch{u=function(k,A,x){return k[A]=x}}function c(O,v,k,A){var x=v&&v.prototype instanceof h?v:h,j=Object.create(x.prototype),U=new ee(A||[]);return n(j,"_invoke",{value:N(O,k,U)}),j}function l(O,v,k){try{return{type:"normal",arg:O.call(v,k)}}catch(A){return{type:"throw",arg:A}}}t.wrap=c;var f={};function h(){}function p(){}function m(){}var _={};u(_,s,function(){return this});var g=Object.getPrototypeOf,D=g&&g(g(_e([])));D&&D!==e&&r.call(D,s)&&(_=D);var C=m.prototype=h.prototype=Object.create(_);function q(O){["next","throw","return"].forEach(function(v){u(O,v,function(k){return this._invoke(v,k)})})}function $(O,v){function k(x,j,U,V){var ae=l(O[x],O,j);if(ae.type!=="throw"){var re=ae.arg,Ve=re.value;return Ve&&Sv(Ve)=="object"&&r.call(Ve,"__await")?v.resolve(Ve.__await).then(function(Ct){k("next",Ct,U,V)},function(Ct){k("throw",Ct,U,V)}):v.resolve(Ve).then(function(Ct){re.value=Ct,U(re)},function(Ct){return k("throw",Ct,U,V)})}V(ae.arg)}var A;n(this,"_invoke",{value:function(j,U){function V(){return new v(function(ae,re){k(j,U,ae,re)})}return A=A?A.then(V,V):V()}})}function N(O,v,k){var A="suspendedStart";return function(x,j){if(A==="executing")throw new Error("Generator is already running");if(A==="completed"){if(x==="throw")throw j;return R()}for(k.method=x,k.arg=j;;){var U=k.delegate;if(U){var V=K(U,k);if(V){if(V===f)continue;return V}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(A==="suspendedStart")throw A="completed",k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);A="executing";var ae=l(O,v,k);if(ae.type==="normal"){if(A=k.done?"completed":"suspendedYield",ae.arg===f)continue;return{value:ae.arg,done:k.done}}ae.type==="throw"&&(A="completed",k.method="throw",k.arg=ae.arg)}}}function K(O,v){var k=v.method,A=O.iterator[k];if(A===void 0)return v.delegate=null,k==="throw"&&O.iterator.return&&(v.method="return",v.arg=void 0,K(O,v),v.method==="throw")||k!=="return"&&(v.method="throw",v.arg=new TypeError("The iterator does not provide a '"+k+"' method")),f;var x=l(A,O.iterator,v.arg);if(x.type==="throw")return v.method="throw",v.arg=x.arg,v.delegate=null,f;var j=x.arg;return j?j.done?(v[O.resultName]=j.value,v.next=O.nextLoc,v.method!=="return"&&(v.method="next",v.arg=void 0),v.delegate=null,f):j:(v.method="throw",v.arg=new TypeError("iterator result is not an object"),v.delegate=null,f)}function z(O){var v={tryLoc:O[0]};1 in O&&(v.catchLoc=O[1]),2 in O&&(v.finallyLoc=O[2],v.afterLoc=O[3]),this.tryEntries.push(v)}function W(O){var v=O.completion||{};v.type="normal",delete v.arg,O.completion=v}function ee(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(z,this),this.reset(!0)}function _e(O){if(O){var v=O[s];if(v)return v.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var k=-1,A=function x(){for(;++k<O.length;)if(r.call(O,k))return x.value=O[k],x.done=!1,x;return x.value=void 0,x.done=!0,x};return A.next=A}}return{next:R}}function R(){return{value:void 0,done:!0}}return p.prototype=m,n(C,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:p,configurable:!0}),p.displayName=u(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(O){var v=typeof O=="function"&&O.constructor;return!!v&&(v===p||(v.displayName||v.name)==="GeneratorFunction")},t.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,m):(O.__proto__=m,u(O,a,"GeneratorFunction")),O.prototype=Object.create(C),O},t.awrap=function(O){return{__await:O}},q($.prototype),u($.prototype,o,function(){return this}),t.AsyncIterator=$,t.async=function(O,v,k,A,x){x===void 0&&(x=Promise);var j=new $(c(O,v,k,A),x);return t.isGeneratorFunction(v)?j:j.next().then(function(U){return U.done?U.value:j.next()})},q(C),u(C,a,"Generator"),u(C,s,function(){return this}),u(C,"toString",function(){return"[object Generator]"}),t.keys=function(O){var v=Object(O),k=[];for(var A in v)k.push(A);return k.reverse(),function x(){for(;k.length;){var j=k.pop();if(j in v)return x.value=j,x.done=!1,x}return x.done=!0,x}},t.values=_e,ee.prototype={constructor:ee,reset:function(v){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(W),!v)for(var k in this)k.charAt(0)==="t"&&r.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=void 0)},stop:function(){this.done=!0;var v=this.tryEntries[0].completion;if(v.type==="throw")throw v.arg;return this.rval},dispatchException:function(v){if(this.done)throw v;var k=this;function A(re,Ve){return U.type="throw",U.arg=v,k.next=re,Ve&&(k.method="next",k.arg=void 0),!!Ve}for(var x=this.tryEntries.length-1;x>=0;--x){var j=this.tryEntries[x],U=j.completion;if(j.tryLoc==="root")return A("end");if(j.tryLoc<=this.prev){var V=r.call(j,"catchLoc"),ae=r.call(j,"finallyLoc");if(V&&ae){if(this.prev<j.catchLoc)return A(j.catchLoc,!0);if(this.prev<j.finallyLoc)return A(j.finallyLoc)}else if(V){if(this.prev<j.catchLoc)return A(j.catchLoc,!0)}else{if(!ae)throw new Error("try statement without catch or finally");if(this.prev<j.finallyLoc)return A(j.finallyLoc)}}}},abrupt:function(v,k){for(var A=this.tryEntries.length-1;A>=0;--A){var x=this.tryEntries[A];if(x.tryLoc<=this.prev&&r.call(x,"finallyLoc")&&this.prev<x.finallyLoc){var j=x;break}}j&&(v==="break"||v==="continue")&&j.tryLoc<=k&&k<=j.finallyLoc&&(j=null);var U=j?j.completion:{};return U.type=v,U.arg=k,j?(this.method="next",this.next=j.finallyLoc,f):this.complete(U)},complete:function(v,k){if(v.type==="throw")throw v.arg;return v.type==="break"||v.type==="continue"?this.next=v.arg:v.type==="return"?(this.rval=this.arg=v.arg,this.method="return",this.next="end"):v.type==="normal"&&k&&(this.next=k),f},finish:function(v){for(var k=this.tryEntries.length-1;k>=0;--k){var A=this.tryEntries[k];if(A.finallyLoc===v)return this.complete(A.completion,A.afterLoc),W(A),f}},catch:function(v){for(var k=this.tryEntries.length-1;k>=0;--k){var A=this.tryEntries[k];if(A.tryLoc===v){var x=A.completion;if(x.type==="throw"){var j=x.arg;W(A)}return j}}throw new Error("illegal catch attempt")},delegateYield:function(v,k,A){return this.delegate={iterator:_e(v),resultName:k,nextLoc:A},this.method==="next"&&(this.arg=void 0),f}},t}Jt.exports=ym,Jt.exports.__esModule=!0,Jt.exports.default=Jt.exports});var bm=b((XM,Em)=>{var Ys=_m()();Em.exports=Ys;try{regeneratorRuntime=Ys}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Ys:Function("r","regeneratorRuntime = r")(Ys)}});var wm=b((Eq,oc)=>{"use strict";var Dm=(t,...e)=>new Promise(r=>{r(t(...e))});oc.exports=Dm;oc.exports.default=Dm});var xm=b((bq,ac)=>{"use strict";var Cv=wm(),Am=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let e=[],r=0,n=()=>{r--,e.length>0&&e.shift()()},i=(a,u,...c)=>{r++;let l=Cv(a,...c);u(l),l.then(n,n)},s=(a,u,...c)=>{r<t?i(a,u,...c):e.push(i.bind(null,a,u,...c))},o=(a,...u)=>new Promise(c=>s(a,c,...u));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.length},clearQueue:{value:()=>{e.length=0}}}),o};ac.exports=Am;ac.exports.default=Am});var vm=b((Dq,uc)=>{"use strict";var Sm=xm(),Ks=class extends Error{constructor(e){super(),this.value=e}},vv=async(t,e)=>e(await t),Rv=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new Ks(e[0]);return!1},Cm=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Sm(r.concurrency),i=[...t].map(o=>[o,n(vv,o,e)]),s=Sm(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(Rv,o)))}catch(o){if(o instanceof Ks)return o.value;throw o}};uc.exports=Cm;uc.exports.default=Cm});var Pm=b((wq,cc)=>{"use strict";var Rm=require("path"),Js=require("fs"),{promisify:Fm}=require("util"),Fv=vm(),Tv=Fm(Js.stat),Ov=Fm(Js.lstat),Tm={directory:"isDirectory",file:"isFile"};function Om({type:t}){if(!(t in Tm))throw new Error(`Invalid type specified: ${t}`)}var km=(t,e)=>t===void 0||e[Tm[t]]();cc.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},Om(e);let r=e.allowSymlinks?Tv:Ov;return Fv(t,async n=>{try{let i=await r(Rm.resolve(e.cwd,n));return km(e.type,i)}catch{return!1}},e)};cc.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},Om(e);let r=e.allowSymlinks?Js.statSync:Js.lstatSync;for(let n of t)try{let i=r(Rm.resolve(e.cwd,n));if(km(e.type,i))return n}catch{}}});var Im=b((Aq,lc)=>{"use strict";var Bm=require("fs"),{promisify:kv}=require("util"),Pv=kv(Bm.access);lc.exports=async t=>{try{return await Pv(t),!0}catch{return!1}};lc.exports.sync=t=>{try{return Bm.accessSync(t),!0}catch{return!1}}});var Nm=b((xq,Fn)=>{"use strict";var Ar=require("path"),Xs=Pm(),Lm=Im(),fc=Symbol("findUp.stop");Fn.exports=async(t,e={})=>{let r=Ar.resolve(e.cwd||""),{root:n}=Ar.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return Xs(i,o);let a=await t(o.cwd);return typeof a=="string"?Xs([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===fc)return;if(o)return Ar.resolve(r,o);if(r===n)return;r=Ar.dirname(r)}};Fn.exports.sync=(t,e={})=>{let r=Ar.resolve(e.cwd||""),{root:n}=Ar.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return Xs.sync(i,o);let a=t(o.cwd);return typeof a=="string"?Xs.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===fc)return;if(o)return Ar.resolve(r,o);if(r===n)return;r=Ar.dirname(r)}};Fn.exports.exists=Lm;Fn.exports.sync.exists=Lm.sync;Fn.exports.stop=fc});var W0=b(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.splitWhen=Bn.flatten=void 0;function _F(t){return t.reduce((e,r)=>[].concat(e,r),[])}Bn.flatten=_F;function EF(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}Bn.splitWhen=EF});var z0=b(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.isEnoentCodeError=void 0;function bF(t){return t.code==="ENOENT"}lo.isEnoentCodeError=bF});var V0=b(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.createDirentFromStats=void 0;var Ic=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function DF(t,e){return new Ic(t,e)}fo.createDirentFromStats=DF});var Y0=b(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.removeLeadingDotSegment=Bt.escape=Bt.makeAbsolute=Bt.unixify=void 0;var wF=require("path"),AF=2,xF=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function SF(t){return t.replace(/\\/g,"/")}Bt.unixify=SF;function CF(t,e){return wF.resolve(t,e)}Bt.makeAbsolute=CF;function vF(t){return t.replace(xF,"\\$2")}Bt.escape=vF;function RF(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(AF)}return t}Bt.removeLeadingDotSegment=RF});var J0=b((Gq,K0)=>{K0.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var Q0=b((Wq,Z0)=>{var FF=J0(),X0={"{":"}","(":")","[":"]"},TF=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var u=X0[a];if(u){var c=t.indexOf(u,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},OF=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=X0[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};Z0.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(FF(e))return!0;var n=TF;return r&&r.strict===!1&&(n=OF),n(e)}});var tg=b((zq,eg)=>{"use strict";var kF=Q0(),PF=require("path").posix.dirname,BF=require("os").platform()==="win32",Lc="/",IF=/\\/g,LF=/[\{\[].*[\}\]]$/,NF=/(^|[^\\])([\{\[]|\([^\)]+$)/,MF=/\\([\!\*\?\|\[\]\(\)\{\}])/g;eg.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&BF&&e.indexOf(Lc)<0&&(e=e.replace(IF,Lc)),LF.test(e)&&(e+=Lc),e+="a";do e=PF(e);while(kF(e)||NF.test(e));return e.replace(MF,"$1")}});var ho=b(ht=>{"use strict";ht.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;ht.find=(t,e)=>t.nodes.find(r=>r.type===e);ht.exceedsLimit=(t,e,r=1,n)=>n===!1||!ht.isInteger(t)||!ht.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;ht.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};ht.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);ht.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;ht.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;ht.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);ht.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var po=b((Yq,ng)=>{"use strict";var rg=ho();ng.exports=(t,e={})=>{let r=(n,i={})=>{let s=e.escapeInvalid&&rg.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(s||o)&&rg.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(t)}});var sg=b((Kq,ig)=>{"use strict";ig.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var pg=b((Jq,dg)=>{"use strict";var og=sg(),nn=(t,e,r)=>{if(og(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(og(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=t+":"+e+"="+i+s+o+a;if(nn.cache.hasOwnProperty(u))return nn.cache[u].result;let c=Math.min(t,e),l=Math.max(t,e);if(Math.abs(c-l)===1){let _=t+"|"+e;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let f=hg(t)||hg(e),h={min:t,max:e,a:c,b:l},p=[],m=[];if(f&&(h.isPadded=f,h.maxLen=String(h.max).length),c<0){let _=l<0?Math.abs(l):1;m=ag(_,Math.abs(c),h,n),c=h.a=0}return l>=0&&(p=ag(c,l,h,n)),h.negatives=m,h.positives=p,h.result=qF(m,p,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&p.length+m.length>1&&(h.result=`(?:${h.result})`),nn.cache[u]=h,h.result};function qF(t,e,r){let n=Nc(t,e,"-",!1,r)||[],i=Nc(e,t,"",!1,r)||[],s=Nc(t,e,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function HF(t,e){let r=1,n=1,i=cg(t,r),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),r+=1,i=cg(t,r);for(i=lg(e+1,n)-1;t<i&&i<=e;)s.add(i),n+=1,i=lg(e+1,n)-1;return s=[...s],s.sort(UF),s}function jF(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=$F(t,e),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,c]=n[a];u===c?s+=u:u!=="0"||c!=="9"?s+=GF(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function ag(t,e,r,n){let i=HF(t,e),s=[],o=t,a;for(let u=0;u<i.length;u++){let c=i[u],l=jF(String(o),String(c),n),f="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+fg(a.count),o=c+1;continue}r.isPadded&&(f=WF(c,r,n)),l.string=f+l.pattern+fg(l.count),s.push(l),o=c+1,a=l}return s}function Nc(t,e,r,n,i){let s=[];for(let o of t){let{string:a}=o;!n&&!ug(e,"string",a)&&s.push(r+a),n&&ug(e,"string",a)&&s.push(r+a)}return s}function $F(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function UF(t,e){return t>e?1:e>t?-1:0}function ug(t,e,r){return t.some(n=>n[e]===r)}function cg(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function lg(t,e){return t-t%Math.pow(10,e)}function fg(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function GF(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function hg(t){return/^-?(0+)\d/.test(t)}function WF(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}nn.cache={};nn.clearCache=()=>nn.cache={};dg.exports=nn});var Hc=b((Xq,wg)=>{"use strict";var zF=require("util"),yg=pg(),mg=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),VF=t=>e=>t===!0?Number(e):String(e),Mc=t=>typeof t=="number"||typeof t=="string"&&t!=="",Xi=t=>Number.isInteger(+t),qc=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},YF=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,KF=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},gg=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},JF=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",n="",i="",s;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,e.wrap?`(${r}${s})`:s},_g=(t,e,r,n)=>{if(r)return yg(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},Eg=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return yg(t,e,r)},bg=(...t)=>new RangeError("Invalid range arguments: "+zF.inspect(...t)),Dg=(t,e,r)=>{if(r.strictRanges===!0)throw bg([t,e]);return[]},XF=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},ZF=(t,e,r=1,n={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw bg([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),u=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=qc(a)||qc(u)||qc(c),f=l?Math.max(a.length,u.length,c.length):0,h=l===!1&&YF(t,e,n)===!1,p=n.transform||VF(h);if(n.toRegex&&r===1)return _g(gg(t,f),gg(e,f),!0,n);let m={negatives:[],positives:[]},_=C=>m[C<0?"negatives":"positives"].push(Math.abs(C)),g=[],D=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?_(i):g.push(KF(p(i,D),f,h)),i=o?i-r:i+r,D++;return n.toRegex===!0?r>1?JF(m,n):Eg(g,null,{wrap:!1,...n}):g},QF=(t,e,r=1,n={})=>{if(!Xi(t)&&t.length>1||!Xi(e)&&e.length>1)return Dg(t,e,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return _g(u,c,!1,n);let l=[],f=0;for(;a?s>=o:s<=o;)l.push(i(s,f)),s=a?s-r:s+r,f++;return n.toRegex===!0?Eg(l,null,{wrap:!1,options:n}):l},mo=(t,e,r,n={})=>{if(e==null&&Mc(t))return[t];if(!Mc(t)||!Mc(e))return Dg(t,e,n);if(typeof r=="function")return mo(t,e,1,{transform:r});if(mg(r))return mo(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Xi(r)?Xi(t)&&Xi(e)?ZF(t,e,r,i):QF(t,e,Math.max(Math.abs(r),1),i):r!=null&&!mg(r)?XF(r,i):mo(t,e,1,r)};wg.exports=mo});var Sg=b((Zq,xg)=>{"use strict";var eT=Hc(),Ag=ho(),tT=(t,e={})=>{let r=(n,i={})=>{let s=Ag.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,u=e.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=Ag.reduce(n.nodes),f=eT(...l,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return l.length>1&&f.length>1?`(${f})`:f}if(n.nodes)for(let l of n.nodes)c+=r(l,n);return c};return r(t)};xg.exports=tT});var Rg=b((Qq,vg)=>{"use strict";var rT=Hc(),Cg=po(),In=ho(),sn=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?In.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)n.push(sn(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?sn(i,s,r):i+s);return In.flatten(n)},nT=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(sn(a.pop(),Cg(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(sn(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=In.reduce(i.nodes);if(In.exceedsLimit(...f,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=rT(...f,e);h.length===0&&(h=Cg(i,e)),a.push(sn(a.pop(),h)),i.nodes=[];return}let u=In.encloseBrace(i),c=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let f=0;f<i.nodes.length;f++){let h=i.nodes[f];if(h.type==="comma"&&i.type==="brace"){f===1&&c.push(""),c.push("");continue}if(h.type==="close"){a.push(sn(a.pop(),c,u));continue}if(h.value&&h.type!=="open"){c.push(sn(c.pop(),h.value));continue}h.nodes&&n(h,i)}return c};return In.flatten(n(t))};vg.exports=nT});var Tg=b((e6,Fg)=>{"use strict";Fg.exports={MAX_LENGTH:1024*64,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:`
|
|
3
|
+
`,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:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Ig=b((t6,Bg)=>{"use strict";var iT=po(),{MAX_LENGTH:Og,CHAR_BACKSLASH:jc,CHAR_BACKTICK:sT,CHAR_COMMA:oT,CHAR_DOT:aT,CHAR_LEFT_PARENTHESES:uT,CHAR_RIGHT_PARENTHESES:cT,CHAR_LEFT_CURLY_BRACE:lT,CHAR_RIGHT_CURLY_BRACE:fT,CHAR_LEFT_SQUARE_BRACKET:kg,CHAR_RIGHT_SQUARE_BRACKET:Pg,CHAR_DOUBLE_QUOTE:hT,CHAR_SINGLE_QUOTE:dT,CHAR_NO_BREAK_SPACE:pT,CHAR_ZERO_WIDTH_NOBREAK_SPACE:mT}=Tg(),gT=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(Og,r.maxLength):Og;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,a=i,u=0,c=t.length,l=0,f=0,h,p={},m=()=>t[l++],_=g=>{if(g.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&g.type==="text"){a.value+=g.value;return}return o.nodes.push(g),g.parent=o,g.prev=a,a=g,g};for(_({type:"bos"});l<c;)if(o=s[s.length-1],h=m(),!(h===mT||h===pT)){if(h===jc){_({type:"text",value:(e.keepEscaping?h:"")+m()});continue}if(h===Pg){_({type:"text",value:"\\"+h});continue}if(h===kg){u++;let g=!0,D;for(;l<c&&(D=m());){if(h+=D,D===kg){u++;continue}if(D===jc){h+=m();continue}if(D===Pg&&(u--,u===0))break}_({type:"text",value:h});continue}if(h===uT){o=_({type:"paren",nodes:[]}),s.push(o),_({type:"text",value:h});continue}if(h===cT){if(o.type!=="paren"){_({type:"text",value:h});continue}o=s.pop(),_({type:"text",value:h}),o=s[s.length-1];continue}if(h===hT||h===dT||h===sT){let g=h,D;for(e.keepQuotes!==!0&&(h="");l<c&&(D=m());){if(D===jc){h+=D+m();continue}if(D===g){e.keepQuotes===!0&&(h+=D);break}h+=D}_({type:"text",value:h});continue}if(h===lT){f++;let D={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=_(D),s.push(o),_({type:"open",value:h});continue}if(h===fT){if(o.type!=="brace"){_({type:"text",value:h});continue}let g="close";o=s.pop(),o.close=!0,_({type:g,value:h}),f--,o=s[s.length-1];continue}if(h===oT&&f>0){if(o.ranges>0){o.ranges=0;let g=o.nodes.shift();o.nodes=[g,{type:"text",value:iT(o)}]}_({type:"comma",value:h}),o.commas++;continue}if(h===aT&&f>0&&o.commas===0){let g=o.nodes;if(f===0||g.length===0){_({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){g.pop();let D=g[g.length-1];D.value+=a.value+h,a=D,o.ranges--;continue}_({type:"dot",value:h});continue}_({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(C=>{C.nodes||(C.type==="open"&&(C.isOpen=!0),C.type==="close"&&(C.isClose=!0),C.nodes||(C.type="text"),C.invalid=!0)});let g=s[s.length-1],D=g.nodes.indexOf(o);g.nodes.splice(D,1,...o.nodes)}while(s.length>0);return _({type:"eos"}),i};Bg.exports=gT});var Mg=b((r6,Ng)=>{"use strict";var Lg=po(),yT=Sg(),_T=Rg(),ET=Ig(),st=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=st.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(st.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};st.parse=(t,e={})=>ET(t,e);st.stringify=(t,e={})=>Lg(typeof t=="string"?st.parse(t,e):t,e);st.compile=(t,e={})=>(typeof t=="string"&&(t=st.parse(t,e)),yT(t,e));st.expand=(t,e={})=>{typeof t=="string"&&(t=st.parse(t,e));let r=_T(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};st.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?st.compile(t,e):st.expand(t,e);Ng.exports=st});var Zi=b((n6,Ug)=>{"use strict";var bT=require("path"),It="\\\\/",qg=`[^${It}]`,rr="\\.",DT="\\+",wT="\\?",go="\\/",AT="(?=.)",Hg="[^/]",$c=`(?:${go}|$)`,jg=`(?:^|${go})`,Uc=`${rr}{1,2}${$c}`,xT=`(?!${rr})`,ST=`(?!${jg}${Uc})`,CT=`(?!${rr}{0,1}${$c})`,vT=`(?!${Uc})`,RT=`[^.${go}]`,FT=`${Hg}*?`,$g={DOT_LITERAL:rr,PLUS_LITERAL:DT,QMARK_LITERAL:wT,SLASH_LITERAL:go,ONE_CHAR:AT,QMARK:Hg,END_ANCHOR:$c,DOTS_SLASH:Uc,NO_DOT:xT,NO_DOTS:ST,NO_DOT_SLASH:CT,NO_DOTS_SLASH:vT,QMARK_NO_DOT:RT,STAR:FT,START_ANCHOR:jg},TT={...$g,SLASH_LITERAL:`[${It}]`,QMARK:qg,STAR:`${qg}*?`,DOTS_SLASH:`${rr}{1,2}(?:[${It}]|$)`,NO_DOT:`(?!${rr})`,NO_DOTS:`(?!(?:^|[${It}])${rr}{1,2}(?:[${It}]|$))`,NO_DOT_SLASH:`(?!${rr}{0,1}(?:[${It}]|$))`,NO_DOTS_SLASH:`(?!${rr}{1,2}(?:[${It}]|$))`,QMARK_NO_DOT:`[^.${It}]`,START_ANCHOR:`(?:^|[${It}])`,END_ANCHOR:`(?:[${It}]|$)`},OT={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"};Ug.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:OT,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:bT.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?TT:$g}}});var Qi=b(Ze=>{"use strict";var kT=require("path"),PT=process.platform==="win32",{REGEX_BACKSLASH:BT,REGEX_REMOVE_BACKSLASH:IT,REGEX_SPECIAL_CHARS:LT,REGEX_SPECIAL_CHARS_GLOBAL:NT}=Zi();Ze.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Ze.hasRegexChars=t=>LT.test(t);Ze.isRegexChar=t=>t.length===1&&Ze.hasRegexChars(t);Ze.escapeRegex=t=>t.replace(NT,"\\$1");Ze.toPosixSlashes=t=>t.replace(BT,"/");Ze.removeBackslashes=t=>t.replace(IT,e=>e==="\\"?"":e);Ze.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Ze.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:PT===!0||kT.sep==="\\";Ze.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?Ze.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};Ze.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Ze.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Xg=b((s6,Jg)=>{"use strict";var Gg=Qi(),{CHAR_ASTERISK:Gc,CHAR_AT:MT,CHAR_BACKWARD_SLASH:es,CHAR_COMMA:qT,CHAR_DOT:Wc,CHAR_EXCLAMATION_MARK:zc,CHAR_FORWARD_SLASH:Kg,CHAR_LEFT_CURLY_BRACE:Vc,CHAR_LEFT_PARENTHESES:Yc,CHAR_LEFT_SQUARE_BRACKET:HT,CHAR_PLUS:jT,CHAR_QUESTION_MARK:Wg,CHAR_RIGHT_CURLY_BRACE:$T,CHAR_RIGHT_PARENTHESES:zg,CHAR_RIGHT_SQUARE_BRACKET:UT}=Zi(),Vg=t=>t===Kg||t===es,Yg=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},GT=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=t,c=-1,l=0,f=0,h=!1,p=!1,m=!1,_=!1,g=!1,D=!1,C=!1,q=!1,$=!1,N=!1,K=0,z,W,ee={value:"",depth:0,isGlob:!1},_e=()=>c>=n,R=()=>u.charCodeAt(c+1),O=()=>(z=W,u.charCodeAt(++c));for(;c<n;){W=O();let j;if(W===es){C=ee.backslashes=!0,W=O(),W===Vc&&(D=!0);continue}if(D===!0||W===Vc){for(K++;_e()!==!0&&(W=O());){if(W===es){C=ee.backslashes=!0,O();continue}if(W===Vc){K++;continue}if(D!==!0&&W===Wc&&(W=O())===Wc){if(h=ee.isBrace=!0,m=ee.isGlob=!0,N=!0,i===!0)continue;break}if(D!==!0&&W===qT){if(h=ee.isBrace=!0,m=ee.isGlob=!0,N=!0,i===!0)continue;break}if(W===$T&&(K--,K===0)){D=!1,h=ee.isBrace=!0,N=!0;break}}if(i===!0)continue;break}if(W===Kg){if(s.push(c),o.push(ee),ee={value:"",depth:0,isGlob:!1},N===!0)continue;if(z===Wc&&c===l+1){l+=2;continue}f=c+1;continue}if(r.noext!==!0&&(W===jT||W===MT||W===Gc||W===Wg||W===zc)===!0&&R()===Yc){if(m=ee.isGlob=!0,_=ee.isExtglob=!0,N=!0,W===zc&&c===l&&($=!0),i===!0){for(;_e()!==!0&&(W=O());){if(W===es){C=ee.backslashes=!0,W=O();continue}if(W===zg){m=ee.isGlob=!0,N=!0;break}}continue}break}if(W===Gc){if(z===Gc&&(g=ee.isGlobstar=!0),m=ee.isGlob=!0,N=!0,i===!0)continue;break}if(W===Wg){if(m=ee.isGlob=!0,N=!0,i===!0)continue;break}if(W===HT){for(;_e()!==!0&&(j=O());){if(j===es){C=ee.backslashes=!0,O();continue}if(j===UT){p=ee.isBracket=!0,m=ee.isGlob=!0,N=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&W===zc&&c===l){q=ee.negated=!0,l++;continue}if(r.noparen!==!0&&W===Yc){if(m=ee.isGlob=!0,i===!0){for(;_e()!==!0&&(W=O());){if(W===Yc){C=ee.backslashes=!0,W=O();continue}if(W===zg){N=!0;break}}continue}break}if(m===!0){if(N=!0,i===!0)continue;break}}r.noext===!0&&(_=!1,m=!1);let v=u,k="",A="";l>0&&(k=u.slice(0,l),u=u.slice(l),f-=l),v&&m===!0&&f>0?(v=u.slice(0,f),A=u.slice(f)):m===!0?(v="",A=u):v=u,v&&v!==""&&v!=="/"&&v!==u&&Vg(v.charCodeAt(v.length-1))&&(v=v.slice(0,-1)),r.unescape===!0&&(A&&(A=Gg.removeBackslashes(A)),v&&C===!0&&(v=Gg.removeBackslashes(v)));let x={prefix:k,input:t,start:l,base:v,glob:A,isBrace:h,isBracket:p,isGlob:m,isExtglob:_,isGlobstar:g,negated:q,negatedExtglob:$};if(r.tokens===!0&&(x.maxDepth=0,Vg(W)||o.push(ee),x.tokens=o),r.parts===!0||r.tokens===!0){let j;for(let U=0;U<s.length;U++){let V=j?j+1:l,ae=s[U],re=t.slice(V,ae);r.tokens&&(U===0&&l!==0?(o[U].isPrefix=!0,o[U].value=k):o[U].value=re,Yg(o[U]),x.maxDepth+=o[U].depth),(U!==0||re!=="")&&a.push(re),j=ae}if(j&&j+1<t.length){let U=t.slice(j+1);a.push(U),r.tokens&&(o[o.length-1].value=U,Yg(o[o.length-1]),x.maxDepth+=o[o.length-1].depth)}x.slashes=s,x.parts=a}return x};Jg.exports=GT});var ey=b((o6,Qg)=>{"use strict";var yo=Zi(),ot=Qi(),{MAX_LENGTH:_o,POSIX_REGEX_SOURCE:WT,REGEX_NON_SPECIAL_CHARS:zT,REGEX_SPECIAL_CHARS_BACKREF:VT,REPLACEMENTS:Zg}=yo,YT=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>ot.escapeRegex(i)).join("..")}return r},Ln=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Kc=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Zg[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(_o,r.maxLength):_o,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=ot.isWindows(e),c=yo.globChars(u),l=yo.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:p,ONE_CHAR:m,DOTS_SLASH:_,NO_DOT:g,NO_DOT_SLASH:D,NO_DOTS_SLASH:C,QMARK:q,QMARK_NO_DOT:$,STAR:N,START_ANCHOR:K}=c,z=I=>`(${a}(?:(?!${K}${I.dot?_:f}).)*?)`,W=r.dot?"":g,ee=r.dot?q:$,_e=r.bash===!0?z(r):N;r.capture&&(_e=`(${_e})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let R={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=ot.removePrefix(t,R),i=t.length;let O=[],v=[],k=[],A=s,x,j=()=>R.index===i-1,U=R.peek=(I=1)=>t[R.index+I],V=R.advance=()=>t[++R.index]||"",ae=()=>t.slice(R.index+1),re=(I="",ce=0)=>{R.consumed+=I,R.index+=ce},Ve=I=>{R.output+=I.output!=null?I.output:I.value,re(I.value)},Ct=()=>{let I=1;for(;U()==="!"&&(U(2)!=="("||U(3)==="?");)V(),R.start++,I++;return I%2===0?!1:(R.negated=!0,R.start++,!0)},Ne=I=>{R[I]++,k.push(I)},nt=I=>{R[I]--,k.pop()},Q=I=>{if(A.type==="globstar"){let ce=R.braces>0&&(I.type==="comma"||I.type==="brace"),B=I.extglob===!0||O.length&&(I.type==="pipe"||I.type==="paren");I.type!=="slash"&&I.type!=="paren"&&!ce&&!B&&(R.output=R.output.slice(0,-A.output.length),A.type="star",A.value="*",A.output=_e,R.output+=A.output)}if(O.length&&I.type!=="paren"&&(O[O.length-1].inner+=I.value),(I.value||I.output)&&Ve(I),A&&A.type==="text"&&I.type==="text"){A.value+=I.value,A.output=(A.output||"")+I.value;return}I.prev=A,o.push(I),A=I},Xr=(I,ce)=>{let B={...l[ce],conditions:1,inner:""};B.prev=A,B.parens=R.parens,B.output=R.output;let d=(r.capture?"(":"")+B.open;Ne("parens"),Q({type:I,value:ce,output:R.output?"":m}),Q({type:"paren",extglob:!0,value:V(),output:d}),O.push(B)},it=I=>{let ce=I.close+(r.capture?")":""),B;if(I.type==="negate"){let d=_e;if(I.inner&&I.inner.length>1&&I.inner.includes("/")&&(d=z(r)),(d!==_e||j()||/^\)+$/.test(ae()))&&(ce=I.close=`)$))${d}`),I.inner.includes("*")&&(B=ae())&&/^\.[^\\/.]+$/.test(B)){let w=Kc(B,{...e,fastpaths:!1}).output;ce=I.close=`)${w})${d})`}I.prev.type==="bos"&&(R.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:x,output:ce}),nt("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let I=!1,ce=t.replace(VT,(B,d,w,y,T,H)=>y==="\\"?(I=!0,B):y==="?"?d?d+y+(T?q.repeat(T.length):""):H===0?ee+(T?q.repeat(T.length):""):q.repeat(w.length):y==="."?f.repeat(w.length):y==="*"?d?d+y+(T?_e:""):_e:d?B:`\\${B}`);return I===!0&&(r.unescape===!0?ce=ce.replace(/\\/g,""):ce=ce.replace(/\\+/g,B=>B.length%2===0?"\\\\":B?"\\":"")),ce===t&&r.contains===!0?(R.output=t,R):(R.output=ot.wrapOutput(ce,R,e),R)}for(;!j();){if(x=V(),x==="\0")continue;if(x==="\\"){let B=U();if(B==="/"&&r.bash!==!0||B==="."||B===";")continue;if(!B){x+="\\",Q({type:"text",value:x});continue}let d=/^\\+/.exec(ae()),w=0;if(d&&d[0].length>2&&(w=d[0].length,R.index+=w,w%2!==0&&(x+="\\")),r.unescape===!0?x=V():x+=V(),R.brackets===0){Q({type:"text",value:x});continue}}if(R.brackets>0&&(x!=="]"||A.value==="["||A.value==="[^")){if(r.posix!==!1&&x===":"){let B=A.value.slice(1);if(B.includes("[")&&(A.posix=!0,B.includes(":"))){let d=A.value.lastIndexOf("["),w=A.value.slice(0,d),y=A.value.slice(d+2),T=WT[y];if(T){A.value=w+T,R.backtrack=!0,V(),!s.output&&o.indexOf(A)===1&&(s.output=m);continue}}}(x==="["&&U()!==":"||x==="-"&&U()==="]")&&(x=`\\${x}`),x==="]"&&(A.value==="["||A.value==="[^")&&(x=`\\${x}`),r.posix===!0&&x==="!"&&A.value==="["&&(x="^"),A.value+=x,Ve({value:x});continue}if(R.quotes===1&&x!=='"'){x=ot.escapeRegex(x),A.value+=x,Ve({value:x});continue}if(x==='"'){R.quotes=R.quotes===1?0:1,r.keepQuotes===!0&&Q({type:"text",value:x});continue}if(x==="("){Ne("parens"),Q({type:"paren",value:x});continue}if(x===")"){if(R.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Ln("opening","("));let B=O[O.length-1];if(B&&R.parens===B.parens+1){it(O.pop());continue}Q({type:"paren",value:x,output:R.parens?")":"\\)"}),nt("parens");continue}if(x==="["){if(r.nobracket===!0||!ae().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Ln("closing","]"));x=`\\${x}`}else Ne("brackets");Q({type:"bracket",value:x});continue}if(x==="]"){if(r.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){Q({type:"text",value:x,output:`\\${x}`});continue}if(R.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Ln("opening","["));Q({type:"text",value:x,output:`\\${x}`});continue}nt("brackets");let B=A.value.slice(1);if(A.posix!==!0&&B[0]==="^"&&!B.includes("/")&&(x=`/${x}`),A.value+=x,Ve({value:x}),r.literalBrackets===!1||ot.hasRegexChars(B))continue;let d=ot.escapeRegex(A.value);if(R.output=R.output.slice(0,-A.value.length),r.literalBrackets===!0){R.output+=d,A.value=d;continue}A.value=`(${a}${d}|${A.value})`,R.output+=A.value;continue}if(x==="{"&&r.nobrace!==!0){Ne("braces");let B={type:"brace",value:x,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};v.push(B),Q(B);continue}if(x==="}"){let B=v[v.length-1];if(r.nobrace===!0||!B){Q({type:"text",value:x,output:x});continue}let d=")";if(B.dots===!0){let w=o.slice(),y=[];for(let T=w.length-1;T>=0&&(o.pop(),w[T].type!=="brace");T--)w[T].type!=="dots"&&y.unshift(w[T].value);d=YT(y,r),R.backtrack=!0}if(B.comma!==!0&&B.dots!==!0){let w=R.output.slice(0,B.outputIndex),y=R.tokens.slice(B.tokensIndex);B.value=B.output="\\{",x=d="\\}",R.output=w;for(let T of y)R.output+=T.output||T.value}Q({type:"brace",value:x,output:d}),nt("braces"),v.pop();continue}if(x==="|"){O.length>0&&O[O.length-1].conditions++,Q({type:"text",value:x});continue}if(x===","){let B=x,d=v[v.length-1];d&&k[k.length-1]==="braces"&&(d.comma=!0,B="|"),Q({type:"comma",value:x,output:B});continue}if(x==="/"){if(A.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",o.pop(),A=s;continue}Q({type:"slash",value:x,output:p});continue}if(x==="."){if(R.braces>0&&A.type==="dot"){A.value==="."&&(A.output=f);let B=v[v.length-1];A.type="dots",A.output+=x,A.value+=x,B.dots=!0;continue}if(R.braces+R.parens===0&&A.type!=="bos"&&A.type!=="slash"){Q({type:"text",value:x,output:f});continue}Q({type:"dot",value:x,output:f});continue}if(x==="?"){if(!(A&&A.value==="(")&&r.noextglob!==!0&&U()==="("&&U(2)!=="?"){Xr("qmark",x);continue}if(A&&A.type==="paren"){let d=U(),w=x;if(d==="<"&&!ot.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(d)||d==="<"&&!/<([!=]|\w+>)/.test(ae()))&&(w=`\\${x}`),Q({type:"text",value:x,output:w});continue}if(r.dot!==!0&&(A.type==="slash"||A.type==="bos")){Q({type:"qmark",value:x,output:$});continue}Q({type:"qmark",value:x,output:q});continue}if(x==="!"){if(r.noextglob!==!0&&U()==="("&&(U(2)!=="?"||!/[!=<:]/.test(U(3)))){Xr("negate",x);continue}if(r.nonegate!==!0&&R.index===0){Ct();continue}}if(x==="+"){if(r.noextglob!==!0&&U()==="("&&U(2)!=="?"){Xr("plus",x);continue}if(A&&A.value==="("||r.regex===!1){Q({type:"plus",value:x,output:h});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||R.parens>0){Q({type:"plus",value:x});continue}Q({type:"plus",value:h});continue}if(x==="@"){if(r.noextglob!==!0&&U()==="("&&U(2)!=="?"){Q({type:"at",extglob:!0,value:x,output:""});continue}Q({type:"text",value:x});continue}if(x!=="*"){(x==="$"||x==="^")&&(x=`\\${x}`);let B=zT.exec(ae());B&&(x+=B[0],R.index+=B[0].length),Q({type:"text",value:x});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=x,A.output=_e,R.backtrack=!0,R.globstar=!0,re(x);continue}let I=ae();if(r.noextglob!==!0&&/^\([^?]/.test(I)){Xr("star",x);continue}if(A.type==="star"){if(r.noglobstar===!0){re(x);continue}let B=A.prev,d=B.prev,w=B.type==="slash"||B.type==="bos",y=d&&(d.type==="star"||d.type==="globstar");if(r.bash===!0&&(!w||I[0]&&I[0]!=="/")){Q({type:"star",value:x,output:""});continue}let T=R.braces>0&&(B.type==="comma"||B.type==="brace"),H=O.length&&(B.type==="pipe"||B.type==="paren");if(!w&&B.type!=="paren"&&!T&&!H){Q({type:"star",value:x,output:""});continue}for(;I.slice(0,3)==="/**";){let M=t[R.index+4];if(M&&M!=="/")break;I=I.slice(3),re("/**",3)}if(B.type==="bos"&&j()){A.type="globstar",A.value+=x,A.output=z(r),R.output=A.output,R.globstar=!0,re(x);continue}if(B.type==="slash"&&B.prev.type!=="bos"&&!y&&j()){R.output=R.output.slice(0,-(B.output+A.output).length),B.output=`(?:${B.output}`,A.type="globstar",A.output=z(r)+(r.strictSlashes?")":"|$)"),A.value+=x,R.globstar=!0,R.output+=B.output+A.output,re(x);continue}if(B.type==="slash"&&B.prev.type!=="bos"&&I[0]==="/"){let M=I[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(B.output+A.output).length),B.output=`(?:${B.output}`,A.type="globstar",A.output=`${z(r)}${p}|${p}${M})`,A.value+=x,R.output+=B.output+A.output,R.globstar=!0,re(x+V()),Q({type:"slash",value:"/",output:""});continue}if(B.type==="bos"&&I[0]==="/"){A.type="globstar",A.value+=x,A.output=`(?:^|${p}|${z(r)}${p})`,R.output=A.output,R.globstar=!0,re(x+V()),Q({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-A.output.length),A.type="globstar",A.output=z(r),A.value+=x,R.output+=A.output,R.globstar=!0,re(x);continue}let ce={type:"star",value:x,output:_e};if(r.bash===!0){ce.output=".*?",(A.type==="bos"||A.type==="slash")&&(ce.output=W+ce.output),Q(ce);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&r.regex===!0){ce.output=x,Q(ce);continue}(R.index===R.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(R.output+=D,A.output+=D):r.dot===!0?(R.output+=C,A.output+=C):(R.output+=W,A.output+=W),U()!=="*"&&(R.output+=m,A.output+=m)),Q(ce)}for(;R.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ln("closing","]"));R.output=ot.escapeLast(R.output,"["),nt("brackets")}for(;R.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ln("closing",")"));R.output=ot.escapeLast(R.output,"("),nt("parens")}for(;R.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ln("closing","}"));R.output=ot.escapeLast(R.output,"{"),nt("braces")}if(r.strictSlashes!==!0&&(A.type==="star"||A.type==="bracket")&&Q({type:"maybe_slash",value:"",output:`${p}?`}),R.backtrack===!0){R.output="";for(let I of R.tokens)R.output+=I.output!=null?I.output:I.value,I.suffix&&(R.output+=I.suffix)}return R};Kc.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(_o,r.maxLength):_o,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=Zg[t]||t;let s=ot.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:p,START_ANCHOR:m}=yo.globChars(s),_=r.dot?f:l,g=r.dot?h:l,D=r.capture?"":"?:",C={negated:!1,prefix:""},q=r.bash===!0?".*?":p;r.capture&&(q=`(${q})`);let $=W=>W.noglobstar===!0?q:`(${D}(?:(?!${m}${W.dot?c:o}).)*?)`,N=W=>{switch(W){case"*":return`${_}${u}${q}`;case".*":return`${o}${u}${q}`;case"*.*":return`${_}${q}${o}${u}${q}`;case"*/*":return`${_}${q}${a}${u}${g}${q}`;case"**":return _+$(r);case"**/*":return`(?:${_}${$(r)}${a})?${g}${u}${q}`;case"**/*.*":return`(?:${_}${$(r)}${a})?${g}${q}${o}${u}${q}`;case"**/.*":return`(?:${_}${$(r)}${a})?${o}${u}${q}`;default:{let ee=/^(.*?)\.(\w+)$/.exec(W);if(!ee)return;let _e=N(ee[1]);return _e?_e+o+ee[2]:void 0}}},K=ot.removePrefix(t,C),z=N(K);return z&&r.strictSlashes!==!0&&(z+=`${a}?`),z};Qg.exports=Kc});var ry=b((a6,ty)=>{"use strict";var KT=require("path"),JT=Xg(),Jc=ey(),Xc=Qi(),XT=Zi(),ZT=t=>t&&typeof t=="object"&&!Array.isArray(t),we=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(h=>we(h,e,r));return h=>{for(let p of l){let m=p(h);if(m)return m}return!1}}let n=ZT(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=Xc.isWindows(e),o=n?we.compileRe(t,e):we.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};u=we(i.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:h,match:p,output:m}=we.test(l,o,e,{glob:t,posix:s}),_={glob:t,state:a,regex:o,posix:s,input:l,output:m,match:p,isMatch:h};return typeof i.onResult=="function"&&i.onResult(_),h===!1?(_.isMatch=!1,f?_:!1):u(l)?(typeof i.onIgnore=="function"&&i.onIgnore(_),_.isMatch=!1,f?_:!1):(typeof i.onMatch=="function"&&i.onMatch(_),f?_:!0)};return r&&(c.state=a),c};we.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?Xc.toPosixSlashes:null),a=t===n,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=we.matchBase(t,e,r,i):a=e.exec(u)),{isMatch:!!a,match:a,output:u}};we.matchBase=(t,e,r,n=Xc.isWindows(r))=>(e instanceof RegExp?e:we.makeRe(e,r)).test(KT.basename(t));we.isMatch=(t,e,r)=>we(e,r)(t);we.parse=(t,e)=>Array.isArray(t)?t.map(r=>we.parse(r,e)):Jc(t,{...e,fastpaths:!1});we.scan=(t,e)=>JT(t,e);we.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=we.toRegex(a,e);return n===!0&&(u.state=t),u};we.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=Jc.fastpaths(t,e)),i.output||(i=Jc(t,e)),we.compileRe(i,e,r,n)};we.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};we.constants=XT;ty.exports=we});var iy=b((u6,ny)=>{"use strict";ny.exports=ry()});var cy=b((c6,uy)=>{"use strict";var oy=require("util"),ay=Mg(),Lt=iy(),Zc=Qi(),sy=t=>t===""||t==="./",ge=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=new Set,s=new Set,o=0,a=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<e.length;l++){let f=Lt(String(e[l]),{...r,onResult:a},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let p of t){let m=f(p,!0);(h?!m.isMatch:m.isMatch)&&(h?n.add(m.output):(n.delete(m.output),i.add(m.output)))}}let c=(o===e.length?[...s]:[...i]).filter(l=>!n.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(l=>l.replace(/\\/g,"")):e}return c};ge.match=ge;ge.matcher=(t,e)=>Lt(t,e);ge.isMatch=(t,e,r)=>Lt(e,r)(t);ge.any=ge.isMatch;ge.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(ge(t,e,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};ge.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${oy.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>ge.contains(t,n,r));if(typeof e=="string"){if(sy(t)||sy(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return ge.isMatch(t,e,{...r,contains:!0})};ge.matchKeys=(t,e,r)=>{if(!Zc.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=ge(Object.keys(t),e,r),i={};for(let s of n)i[s]=t[s];return i};ge.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=Lt(String(i),r);if(n.some(o=>s(o)))return!0}return!1};ge.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=Lt(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};ge.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${oy.inspect(t)}"`);return[].concat(e).every(n=>Lt(n,r)(t))};ge.capture=(t,e,r)=>{let n=Zc.isWindows(r),s=Lt.makeRe(String(t),{...r,capture:!0}).exec(n?Zc.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ge.makeRe=(...t)=>Lt.makeRe(...t);ge.scan=(...t)=>Lt.scan(...t);ge.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of ay(String(n),e))r.push(Lt.parse(i,e));return r};ge.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:ay(t,e)};ge.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ge.braces(t,{...e,expand:!0})};uy.exports=ge});var yy=b(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.matchAny=Y.convertPatternsToRe=Y.makeRe=Y.getPatternParts=Y.expandBraceExpansion=Y.expandPatternsWithBraceExpansion=Y.isAffectDepthOfReadingPattern=Y.endsWithSlashGlobStar=Y.hasGlobStar=Y.getBaseDirectory=Y.isPatternRelatedToParentDirectory=Y.getPatternsOutsideCurrentDirectory=Y.getPatternsInsideCurrentDirectory=Y.getPositivePatterns=Y.getNegativePatterns=Y.isPositivePattern=Y.isNegativePattern=Y.convertToNegativePattern=Y.convertToPositivePattern=Y.isDynamicPattern=Y.isStaticPattern=void 0;var QT=require("path"),eO=tg(),Qc=cy(),ly="**",tO="\\",rO=/[*?]|^!/,nO=/\[[^[]*]/,iO=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,sO=/[!*+?@]\([^(]*\)/,oO=/,|\.\./;function fy(t,e={}){return!hy(t,e)}Y.isStaticPattern=fy;function hy(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(tO)||rO.test(t)||nO.test(t)||iO.test(t)||e.extglob!==!1&&sO.test(t)||e.braceExpansion!==!1&&aO(t))}Y.isDynamicPattern=hy;function aO(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return oO.test(n)}function uO(t){return Eo(t)?t.slice(1):t}Y.convertToPositivePattern=uO;function cO(t){return"!"+t}Y.convertToNegativePattern=cO;function Eo(t){return t.startsWith("!")&&t[1]!=="("}Y.isNegativePattern=Eo;function dy(t){return!Eo(t)}Y.isPositivePattern=dy;function lO(t){return t.filter(Eo)}Y.getNegativePatterns=lO;function fO(t){return t.filter(dy)}Y.getPositivePatterns=fO;function hO(t){return t.filter(e=>!el(e))}Y.getPatternsInsideCurrentDirectory=hO;function dO(t){return t.filter(el)}Y.getPatternsOutsideCurrentDirectory=dO;function el(t){return t.startsWith("..")||t.startsWith("./..")}Y.isPatternRelatedToParentDirectory=el;function pO(t){return eO(t,{flipBackslashes:!1})}Y.getBaseDirectory=pO;function mO(t){return t.includes(ly)}Y.hasGlobStar=mO;function py(t){return t.endsWith("/"+ly)}Y.endsWithSlashGlobStar=py;function gO(t){let e=QT.basename(t);return py(t)||fy(e)}Y.isAffectDepthOfReadingPattern=gO;function yO(t){return t.reduce((e,r)=>e.concat(my(r)),[])}Y.expandPatternsWithBraceExpansion=yO;function my(t){return Qc.braces(t,{expand:!0,nodupes:!0})}Y.expandBraceExpansion=my;function _O(t,e){let{parts:r}=Qc.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}Y.getPatternParts=_O;function gy(t,e){return Qc.makeRe(t,e)}Y.makeRe=gy;function EO(t,e){return t.map(r=>gy(r,e))}Y.convertPatternsToRe=EO;function bO(t,e){return e.some(r=>r.test(t))}Y.matchAny=bO});var Dy=b((f6,by)=>{"use strict";var DO=require("stream"),_y=DO.PassThrough,wO=Array.prototype.slice;by.exports=AO;function AO(){let t=[],e=wO.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=_y(n);function a(){for(let l=0,f=arguments.length;l<f;l++)t.push(Ey(arguments[l],n));return u(),this}function u(){if(r)return;r=!0;let l=t.shift();if(!l){process.nextTick(c);return}Array.isArray(l)||(l=[l]);let f=l.length+1;function h(){--f>0||(r=!1,u())}function p(m){function _(){m.removeListener("merge2UnpipeEnd",_),m.removeListener("end",_),s&&m.removeListener("error",g),h()}function g(D){o.emit("error",D)}if(m._readableState.endEmitted)return h();m.on("merge2UnpipeEnd",_),m.on("end",_),s&&m.on("error",g),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<l.length;m++)p(l[m]);h()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Ey(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=Ey(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(_y(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Ay=b(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.merge=void 0;var xO=Dy();function SO(t){let e=xO(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>wy(t)),e.once("end",()=>wy(t)),e}bo.merge=SO;function wy(t){t.forEach(e=>e.emit("close"))}});var xy=b(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.isEmpty=Nn.isString=void 0;function CO(t){return typeof t=="string"}Nn.isString=CO;function vO(t){return t===""}Nn.isEmpty=vO});var nr=b(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.string=qe.stream=qe.pattern=qe.path=qe.fs=qe.errno=qe.array=void 0;var RO=W0();qe.array=RO;var FO=z0();qe.errno=FO;var TO=V0();qe.fs=TO;var OO=Y0();qe.path=OO;var kO=yy();qe.pattern=kO;var PO=Ay();qe.stream=PO;var BO=xy();qe.string=BO});var vy=b(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.convertPatternGroupToTask=He.convertPatternGroupsToTasks=He.groupPatternsByBaseDirectory=He.getNegativePatternsAsPositive=He.getPositivePatterns=He.convertPatternsToTasks=He.generate=void 0;var ir=nr();function IO(t,e){let r=Sy(t),n=Cy(t,e.ignore),i=r.filter(u=>ir.pattern.isStaticPattern(u,e)),s=r.filter(u=>ir.pattern.isDynamicPattern(u,e)),o=tl(i,n,!1),a=tl(s,n,!0);return o.concat(a)}He.generate=IO;function tl(t,e,r){let n=[],i=ir.pattern.getPatternsOutsideCurrentDirectory(t),s=ir.pattern.getPatternsInsideCurrentDirectory(t),o=rl(i),a=rl(s);return n.push(...nl(o,e,r)),"."in a?n.push(il(".",s,e,r)):n.push(...nl(a,e,r)),n}He.convertPatternsToTasks=tl;function Sy(t){return ir.pattern.getPositivePatterns(t)}He.getPositivePatterns=Sy;function Cy(t,e){return ir.pattern.getNegativePatterns(t).concat(e).map(ir.pattern.convertToPositivePattern)}He.getNegativePatternsAsPositive=Cy;function rl(t){let e={};return t.reduce((r,n)=>{let i=ir.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}He.groupPatternsByBaseDirectory=rl;function nl(t,e,r){return Object.keys(t).map(n=>il(n,t[n],e,r))}He.convertPatternGroupsToTasks=nl;function il(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(ir.pattern.convertToNegativePattern))}}He.convertPatternGroupToTask=il});var Fy=b(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.removeDuplicateSlashes=Mn.transform=void 0;var LO=/(?!^)\/{2,}/g;function NO(t){return t.map(e=>Ry(e))}Mn.transform=NO;function Ry(t){return t.replace(LO,"/")}Mn.removeDuplicateSlashes=Ry});var Oy=b(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.read=void 0;function MO(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){Ty(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){sl(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Ty(r,s);return}sl(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),sl(r,o)})})}Do.read=MO;function Ty(t,e){t(e)}function sl(t,e){t(null,e)}});var ky=b(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.read=void 0;function qO(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}wo.read=qO});var Py=b(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.createFileSystemAdapter=vr.FILE_SYSTEM_ADAPTER=void 0;var Ao=require("fs");vr.FILE_SYSTEM_ADAPTER={lstat:Ao.lstat,stat:Ao.stat,lstatSync:Ao.lstatSync,statSync:Ao.statSync};function HO(t){return t===void 0?vr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},vr.FILE_SYSTEM_ADAPTER),t)}vr.createFileSystemAdapter=HO});var By=b(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var jO=Py(),ol=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=jO.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e!=null?e:r}};al.default=ol});var on=b(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.statSync=Rr.stat=Rr.Settings=void 0;var Iy=Oy(),$O=ky(),ul=By();Rr.Settings=ul.default;function UO(t,e,r){if(typeof e=="function"){Iy.read(t,cl(),e);return}Iy.read(t,cl(e),r)}Rr.stat=UO;function GO(t,e){let r=cl(e);return $O.read(t,r)}Rr.statSync=GO;function cl(t={}){return t instanceof ul.default?t:new ul.default(t)}});var My=b((w6,Ny)=>{var Ly;Ny.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(Ly||(Ly=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Hy=b((A6,qy)=>{qy.exports=zO;var WO=My();function zO(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(u){function c(){e&&e(u,r),e=null}s?WO(c):c()}function a(u,c,l){r[u]=l,(--n===0||c)&&o(c)}n?i?i.forEach(function(u){t[u](function(c,l){a(u,c,l)})}):t.forEach(function(u,c){u(function(l,f){a(c,l,f)})}):o(null),s=!1}});var ll=b(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var xo=process.versions.node.split(".");if(xo[0]===void 0||xo[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var jy=Number.parseInt(xo[0],10),VO=Number.parseInt(xo[1],10),$y=10,YO=10,KO=jy>$y,JO=jy===$y&&VO>=YO;So.IS_SUPPORT_READDIR_WITH_FILE_TYPES=KO||JO});var Uy=b(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.createDirentFromStats=void 0;var fl=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function XO(t,e){return new fl(t,e)}Co.createDirentFromStats=XO});var hl=b(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.fs=void 0;var ZO=Uy();vo.fs=ZO});var dl=b(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.joinPathSegments=void 0;function QO(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ro.joinPathSegments=QO});var Ky=b(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.readdir=Fr.readdirWithFileTypes=Fr.read=void 0;var ek=on(),Gy=Hy(),tk=ll(),Wy=hl(),zy=dl();function rk(t,e,r){if(!e.stats&&tk.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Vy(t,e,r);return}Yy(t,e,r)}Fr.read=rk;function Vy(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){Fo(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:zy.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){pl(r,s);return}let o=s.map(a=>nk(a,e));Gy(o,(a,u)=>{if(a!==null){Fo(r,a);return}pl(r,u)})})}Fr.readdirWithFileTypes=Vy;function nk(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=Wy.fs.createDirentFromStats(t.name,i),r(null,t)})}}function Yy(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){Fo(r,n);return}let s=i.map(o=>{let a=zy.joinPathSegments(t,o,e.pathSegmentSeparator);return u=>{ek.stat(a,e.fsStatSettings,(c,l)=>{if(c!==null){u(c);return}let f={name:o,path:a,dirent:Wy.fs.createDirentFromStats(o,l)};e.stats&&(f.stats=l),u(null,f)})}});Gy(s,(o,a)=>{if(o!==null){Fo(r,o);return}pl(r,a)})})}Fr.readdir=Yy;function Fo(t,e){t(e)}function pl(t,e){t(null,e)}});var e_=b(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.readdir=Tr.readdirWithFileTypes=Tr.read=void 0;var ik=on(),sk=ll(),Jy=hl(),Xy=dl();function ok(t,e){return!e.stats&&sk.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Zy(t,e):Qy(t,e)}Tr.read=ok;function Zy(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Xy.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=Jy.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}Tr.readdirWithFileTypes=Zy;function Qy(t,e){return e.fs.readdirSync(t).map(n=>{let i=Xy.joinPathSegments(t,n,e.pathSegmentSeparator),s=ik.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:Jy.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}Tr.readdir=Qy});var t_=b(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.createFileSystemAdapter=Or.FILE_SYSTEM_ADAPTER=void 0;var qn=require("fs");Or.FILE_SYSTEM_ADAPTER={lstat:qn.lstat,stat:qn.stat,lstatSync:qn.lstatSync,statSync:qn.statSync,readdir:qn.readdir,readdirSync:qn.readdirSync};function ak(t){return t===void 0?Or.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Or.FILE_SYSTEM_ADAPTER),t)}Or.createFileSystemAdapter=ak});var r_=b(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var uk=require("path"),ck=on(),lk=t_(),ml=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=lk.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,uk.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new ck.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};gl.default=ml});var To=b(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.Settings=kr.scandirSync=kr.scandir=void 0;var n_=Ky(),fk=e_(),yl=r_();kr.Settings=yl.default;function hk(t,e,r){if(typeof e=="function"){n_.read(t,_l(),e);return}n_.read(t,_l(e),r)}kr.scandir=hk;function dk(t,e){let r=_l(e);return fk.read(t,r)}kr.scandirSync=dk;function _l(t={}){return t instanceof yl.default?t:new yl.default(t)}});var s_=b((P6,i_)=>{"use strict";function pk(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}i_.exports=pk});var a_=b((B6,El)=>{"use strict";var mk=s_();function o_(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=mk(gk),i=null,s=null,o=0,a=null,u={push:_,drain:dt,saturated:dt,pause:l,paused:!1,concurrency:r,running:c,resume:p,idle:m,length:f,getQueue:h,unshift:g,empty:dt,kill:C,killAndDrain:q,error:$};return u;function c(){return o}function l(){u.paused=!0}function f(){for(var N=i,K=0;N;)N=N.next,K++;return K}function h(){for(var N=i,K=[];N;)K.push(N.value),N=N.next;return K}function p(){if(u.paused){u.paused=!1;for(var N=0;N<u.concurrency;N++)o++,D()}}function m(){return o===0&&u.length()===0}function _(N,K){var z=n.get();z.context=t,z.release=D,z.value=N,z.callback=K||dt,z.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=z,s=z):(i=z,s=z,u.saturated()):(o++,e.call(t,z.value,z.worked))}function g(N,K){var z=n.get();z.context=t,z.release=D,z.value=N,z.callback=K||dt,o===u.concurrency||u.paused?i?(z.next=i,i=z):(i=z,s=z,u.saturated()):(o++,e.call(t,z.value,z.worked))}function D(N){N&&n.release(N);var K=i;K?u.paused?o--:(s===i&&(s=null),i=K.next,K.next=null,e.call(t,K.value,K.worked),s===null&&u.empty()):--o===0&&u.drain()}function C(){i=null,s=null,u.drain=dt}function q(){i=null,s=null,u.drain(),u.drain=dt}function $(N){a=N}}function dt(){}function gk(){this.value=null,this.callback=dt,this.next=null,this.release=dt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=dt,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function yk(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(l,f){e.call(this,l).then(function(h){f(null,h)},f)}var i=o_(t,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=u,i.drained=c,i;function a(l){var f=new Promise(function(h,p){s(l,function(m,_){if(m){p(m);return}h(_)})});return f.catch(dt),f}function u(l){var f=new Promise(function(h,p){o(l,function(m,_){if(m){p(m);return}h(_)})});return f.catch(dt),f}function c(){var l=i.drain,f=new Promise(function(h){i.drain=function(){l(),h()}});return f}}El.exports=o_;El.exports.promise=yk});var Oo=b(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.joinPathSegments=Nt.replacePathSegmentSeparator=Nt.isAppliedFilter=Nt.isFatalError=void 0;function _k(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Nt.isFatalError=_k;function Ek(t,e){return t===null||t(e)}Nt.isAppliedFilter=Ek;function bk(t,e){return t.split(/[/\\]/).join(e)}Nt.replacePathSegmentSeparator=bk;function Dk(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Nt.joinPathSegments=Dk});var wl=b(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var wk=Oo(),bl=class{constructor(e,r){this._root=e,this._settings=r,this._root=wk.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Dl.default=bl});var Sl=b(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var Ak=require("events"),xk=To(),Sk=a_(),ko=Oo(),Ck=wl(),Al=class extends Ck.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=xk.scandir,this._emitter=new Ak.EventEmitter,this._queue=Sk(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!ko.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=ko.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),ko.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&ko.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};xl.default=Al});var u_=b(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var vk=Sl(),Cl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new vk.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{Rk(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Fk(e,this._storage)}),this._reader.read()}};vl.default=Cl;function Rk(t,e){t(e)}function Fk(t,e){t(null,e)}});var c_=b(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var Tk=require("stream"),Ok=Sl(),Rl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Ok.default(this._root,this._settings),this._stream=new Tk.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Fl.default=Rl});var l_=b(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var kk=To(),Po=Oo(),Pk=wl(),Tl=class extends Pk.default{constructor(){super(...arguments),this._scandir=kk.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(Po.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=Po.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Po.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Po.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Ol.default=Tl});var f_=b(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var Bk=l_(),kl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Bk.default(this._root,this._settings)}read(){return this._reader.read()}};Pl.default=kl});var h_=b(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var Ik=require("path"),Lk=To(),Bl=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Ik.sep),this.fsScandirSettings=new Lk.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Il.default=Bl});var Io=b(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.Settings=Mt.walkStream=Mt.walkSync=Mt.walk=void 0;var d_=u_(),Nk=c_(),Mk=f_(),Ll=h_();Mt.Settings=Ll.default;function qk(t,e,r){if(typeof e=="function"){new d_.default(t,Bo()).read(e);return}new d_.default(t,Bo(e)).read(r)}Mt.walk=qk;function Hk(t,e){let r=Bo(e);return new Mk.default(t,r).read()}Mt.walkSync=Hk;function jk(t,e){let r=Bo(e);return new Nk.default(t,r).read()}Mt.walkStream=jk;function Bo(t={}){return t instanceof Ll.default?t:new Ll.default(t)}});var Lo=b(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var $k=require("path"),Uk=on(),p_=nr(),Nl=class{constructor(e){this._settings=e,this._fsStatSettings=new Uk.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return $k.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:p_.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!p_.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Ml.default=Nl});var jl=b(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var Gk=require("stream"),Wk=on(),zk=Io(),Vk=Lo(),ql=class extends Vk.default{constructor(){super(...arguments),this._walkStream=zk.walkStream,this._stat=Wk.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new Gk.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],e[s],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Hl.default=ql});var m_=b(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var Yk=Io(),Kk=Lo(),Jk=jl(),$l=class extends Kk.default{constructor(){super(...arguments),this._walkAsync=Yk.walk,this._readerStream=new Jk.default(this._settings)}dynamic(e,r){return new Promise((n,i)=>{this._walkAsync(e,r,(s,o)=>{s===null?n(o):i(s)})})}async static(e,r){let n=[],i=this._readerStream.static(e,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Ul.default=$l});var g_=b(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var Hn=nr(),Gl=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let e=Hn.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(e){return Hn.pattern.getPatternParts(e,this._micromatchOptions).map(n=>Hn.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Hn.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return Hn.array.splitWhen(e,r=>r.dynamic&&Hn.pattern.hasGlobStar(r.pattern))}};Wl.default=Gl});var y_=b(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var Xk=g_(),zl=class extends Xk.default{match(e){let r=e.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((u,c)=>{let l=s.segments[c];return!!(l.dynamic&&l.patternRe.test(u)||!l.dynamic&&l.pattern===u)}))return!0}return!1}};Vl.default=zl});var __=b(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var No=nr(),Zk=y_(),Yl=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new Zk.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(No.pattern.isAffectDepthOfReadingPattern);return No.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=No.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!No.pattern.matchAny(e,r)}};Kl.default=Yl});var E_=b(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var an=nr(),Jl=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=an.pattern.convertPatternsToRe(e,this._micromatchOptions),i=an.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(e,r,n){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;let i=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(e.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let n=an.path.makeAbsolute(this._settings.cwd,e);return an.pattern.matchAny(n,r)}_isMatchToPatterns(e,r,n){let i=an.path.removeLeadingDotSegment(e),s=an.pattern.matchAny(i,r);return!s&&n?an.pattern.matchAny(i+"/",r):s}};Xl.default=Jl});var b_=b(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var Qk=nr(),Zl=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Qk.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Ql.default=Zl});var w_=b(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});var D_=nr(),ef=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=D_.path.makeAbsolute(this._settings.cwd,r),r=D_.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};tf.default=ef});var Mo=b(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});var eP=require("path"),tP=__(),rP=E_(),nP=b_(),iP=w_(),rf=class{constructor(e){this._settings=e,this.errorFilter=new nP.default(this._settings),this.entryFilter=new rP.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new tP.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new iP.default(this._settings)}_getRootDirectory(e){return eP.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};nf.default=rf});var A_=b(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});var sP=m_(),oP=Mo(),sf=class extends oP.default{constructor(){super(...arguments),this._reader=new sP.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(s=>n.transform(s))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};of.default=sf});var x_=b(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});var aP=require("stream"),uP=jl(),cP=Mo(),af=class extends cP.default{constructor(){super(...arguments),this._reader=new uP.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new aP.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};uf.default=af});var S_=b(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});var lP=on(),fP=Io(),hP=Lo(),cf=class extends hP.default{constructor(){super(...arguments),this._walkSync=fP.walkSync,this._statSync=lP.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};lf.default=cf});var C_=b(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});var dP=S_(),pP=Mo(),ff=class extends pP.default{constructor(){super(...arguments),this._reader=new dP.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};hf.default=ff});var v_=b($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var jn=require("fs"),mP=require("os"),gP=Math.max(mP.cpus().length,1);$n.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:jn.lstat,lstatSync:jn.lstatSync,stat:jn.stat,statSync:jn.statSync,readdir:jn.readdir,readdirSync:jn.readdirSync};var df=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,gP),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},$n.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};$n.default=df});var O_=b((s5,T_)=>{"use strict";var R_=vy(),F_=Fy(),yP=A_(),_P=x_(),EP=C_(),pf=v_(),un=nr();async function mf(t,e){Un(t);let r=gf(t,yP.default,e),n=await Promise.all(r);return un.array.flatten(n)}(function(t){function e(o,a){Un(o);let u=gf(o,EP.default,a);return un.array.flatten(u)}t.sync=e;function r(o,a){Un(o);let u=gf(o,_P.default,a);return un.stream.merge(u)}t.stream=r;function n(o,a){Un(o);let u=F_.transform([].concat(o)),c=new pf.default(a);return R_.generate(u,c)}t.generateTasks=n;function i(o,a){Un(o);let u=new pf.default(a);return un.pattern.isDynamicPattern(o,u)}t.isDynamicPattern=i;function s(o){return Un(o),un.path.escape(o)}t.escapePath=s})(mf||(mf={}));function gf(t,e,r){let n=F_.transform([].concat(t)),i=new pf.default(r),s=R_.generate(n,i),o=new e(i);return s.map(o.read,o)}function Un(t){if(![].concat(t).every(n=>un.string.isString(n)&&!un.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}T_.exports=mf});var P_=b((o5,yf)=>{"use strict";var k_=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};yf.exports=k_;yf.exports.default=k_});var _f=b((a5,Ho)=>{"use strict";var bP=P_(),qo=new WeakMap,B_=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(qo.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return bP(s,t),qo.set(s,n),s};Ho.exports=B_;Ho.exports.default=B_;Ho.exports.callCount=t=>{if(!qo.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return qo.get(t)}});var I_=b((u5,jo)=>{jo.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&jo.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&jo.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Df=b((c5,zn)=>{var ye=global.process,cn=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};cn(ye)?(L_=require("assert"),Gn=I_(),N_=/^win/i.test(ye.platform),ts=require("events"),typeof ts!="function"&&(ts=ts.EventEmitter),ye.__signal_exit_emitter__?Fe=ye.__signal_exit_emitter__:(Fe=ye.__signal_exit_emitter__=new ts,Fe.count=0,Fe.emitted={}),Fe.infinite||(Fe.setMaxListeners(1/0),Fe.infinite=!0),zn.exports=function(t,e){if(!cn(global.process))return function(){};L_.equal(typeof t,"function","a callback must be provided for exit handler"),Wn===!1&&Ef();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){Fe.removeListener(r,t),Fe.listeners("exit").length===0&&Fe.listeners("afterexit").length===0&&$o()};return Fe.on(r,t),n},$o=function(){!Wn||!cn(global.process)||(Wn=!1,Gn.forEach(function(e){try{ye.removeListener(e,Uo[e])}catch{}}),ye.emit=Go,ye.reallyExit=bf,Fe.count-=1)},zn.exports.unload=$o,ln=function(e,r,n){Fe.emitted[e]||(Fe.emitted[e]=!0,Fe.emit(e,r,n))},Uo={},Gn.forEach(function(t){Uo[t]=function(){if(cn(global.process)){var r=ye.listeners(t);r.length===Fe.count&&($o(),ln("exit",null,t),ln("afterexit",null,t),N_&&t==="SIGHUP"&&(t="SIGINT"),ye.kill(ye.pid,t))}}}),zn.exports.signals=function(){return Gn},Wn=!1,Ef=function(){Wn||!cn(global.process)||(Wn=!0,Fe.count+=1,Gn=Gn.filter(function(e){try{return ye.on(e,Uo[e]),!0}catch{return!1}}),ye.emit=q_,ye.reallyExit=M_)},zn.exports.load=Ef,bf=ye.reallyExit,M_=function(e){cn(global.process)&&(ye.exitCode=e||0,ln("exit",ye.exitCode,null),ln("afterexit",ye.exitCode,null),bf.call(ye,ye.exitCode))},Go=ye.emit,q_=function(e,r){if(e==="exit"&&cn(global.process)){r!==void 0&&(ye.exitCode=r);var n=Go.apply(this,arguments);return ln("exit",ye.exitCode,null),ln("afterexit",ye.exitCode,null),n}else return Go.apply(this,arguments)}):zn.exports=function(){return function(){}};var L_,Gn,N_,ts,Fe,$o,ln,Uo,Wn,Ef,bf,M_,Go,q_});var j_=b((l5,H_)=>{"use strict";var DP=_f(),wP=Df();H_.exports=DP(()=>{wP(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var $_=b(Vn=>{"use strict";var AP=j_(),Wo=!1;Vn.show=(t=process.stderr)=>{t.isTTY&&(Wo=!1,t.write("\x1B[?25h"))};Vn.hide=(t=process.stderr)=>{t.isTTY&&(AP(),Wo=!0,t.write("\x1B[?25l"))};Vn.toggle=(t,e)=>{t!==void 0&&(Wo=t),Wo?Vn.show(e):Vn.hide(e)}});var U_=b((h5,xP)=>{xP.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}});var z_=b((d5,W_)=>{"use strict";var zo=Object.assign({},U_()),G_=Object.keys(zo);Object.defineProperty(zo,"random",{get(){let t=Math.floor(Math.random()*G_.length),e=G_[t];return zo[e]}});W_.exports=zo});var Y_=b((p5,V_)=>{"use strict";var Pr=require("chalk"),SP=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",CP={info:Pr.blue("\u2139"),success:Pr.green("\u2714"),warning:Pr.yellow("\u26A0"),error:Pr.red("\u2716")},vP={info:Pr.blue("i"),success:Pr.green("\u221A"),warning:Pr.yellow("\u203C"),error:Pr.red("\xD7")};V_.exports=SP?CP:vP});var J_=b((m5,K_)=>{"use strict";K_.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var Z_=b((g5,X_)=>{"use strict";var RP=J_();X_.exports=t=>typeof t=="string"?t.replace(RP(),""):t});var Q_=b((y5,Vo)=>{var FP=function(){"use strict";function t(o,a,u,c){var l;typeof a=="object"&&(u=a.depth,c=a.prototype,l=a.filter,a=a.circular);var f=[],h=[],p=typeof Buffer!="undefined";typeof a=="undefined"&&(a=!0),typeof u=="undefined"&&(u=1/0);function m(_,g){if(_===null)return null;if(g==0)return _;var D,C;if(typeof _!="object")return _;if(t.__isArray(_))D=[];else if(t.__isRegExp(_))D=new RegExp(_.source,s(_)),_.lastIndex&&(D.lastIndex=_.lastIndex);else if(t.__isDate(_))D=new Date(_.getTime());else{if(p&&Buffer.isBuffer(_))return Buffer.allocUnsafe?D=Buffer.allocUnsafe(_.length):D=new Buffer(_.length),_.copy(D),D;typeof c=="undefined"?(C=Object.getPrototypeOf(_),D=Object.create(C)):(D=Object.create(c),C=c)}if(a){var q=f.indexOf(_);if(q!=-1)return h[q];f.push(_),h.push(D)}for(var $ in _){var N;C&&(N=Object.getOwnPropertyDescriptor(C,$)),!(N&&N.set==null)&&(D[$]=m(_[$],g-1))}return D}return m(o,u)}t.clonePrototype=function(a){if(a===null)return null;var u=function(){};return u.prototype=a,new u};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof Vo=="object"&&Vo.exports&&(Vo.exports=FP)});var tE=b((_5,eE)=>{var TP=Q_();eE.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]=="undefined"&&(t[r]=TP(e[r]))}),t}});var nE=b((E5,rE)=>{rE.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var aE=b((b5,wf)=>{"use strict";var OP=tE(),rs=nE(),sE={nul:0,control:0};wf.exports=function(e){return oE(e,sE)};wf.exports.config=function(t){return t=OP(t||{},sE),function(r){return oE(r,t)}};function oE(t,e){if(typeof t!="string")return iE(t,e);for(var r=0,n=0;n<t.length;n++){var i=iE(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function iE(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:kP(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function kP(t){var e=0,r=rs.length-1,n;if(t<rs[0][0]||t>rs[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>rs[n][1])e=n+1;else if(t<rs[n][0])r=n-1;else return!0;return!1}});var cE=b((D5,uE)=>{"use strict";uE.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var fE=b((w5,lE)=>{var Af=require("stream");lE.exports=Te;function Te(t){Af.apply(this),t=t||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}Te.prototype=Object.create(Af.prototype);Object.defineProperty(Te.prototype,"constructor",{value:Te,enumerable:!1});Te.prototype.mute=function(){this.muted=!0};Te.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Te.prototype,"_onpipe",{value:PP,enumerable:!1,writable:!0,configurable:!0});function PP(t){this._src=t}Object.defineProperty(Te.prototype,"isTTY",{get:BP,set:IP,enumerable:!0,configurable:!0});function BP(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function IP(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Te.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Te.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Te.prototype.pipe=function(t,e){return this._dest=t,Af.prototype.pipe.call(this,t,e)};Te.prototype.pause=function(){if(this._src)return this._src.pause()};Te.prototype.resume=function(){if(this._src)return this._src.resume()};Te.prototype.write=function(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.substr(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.substr(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)};Te.prototype.end=function(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")};function xf(t){return function(){var e=this._dest,r=this._src;e&&e[t]&&e[t].apply(e,arguments),r&&r[t]&&r[t].apply(r,arguments)}}Te.prototype.destroy=xf("destroy");Te.prototype.destroySoon=xf("destroySoon");Te.prototype.close=xf("close")});var dE=b((A5,vf)=>{"use strict";var LP=require("readline"),NP=require("chalk"),hE=$_(),Yo=z_(),Ko=Y_(),MP=Z_(),qP=aE(),HP=cE(),jP=fE(),Sf=Symbol("text"),Jo=Symbol("prefixText"),$P=3,Cf=class{constructor(){this.requests=0,this.mutedStream=new jP,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes($P)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=LP.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},Xo,Zo=class{constructor(e){Xo||(Xo=new Cf),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:HP({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(process.platform==="win32")this._spinner=Yo.line;else if(e===void 0)this._spinner=Yo.dots;else if(Yo[e])this._spinner=Yo[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Sf]}get prefixText(){return this[Jo]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[Jo]=="string"?this[Jo]+"-":"";this.lineCount=MP(r+"--"+this[Sf]).split(`
|
|
4
|
+
`).reduce((n,i)=>n+Math.max(1,Math.ceil(qP(i)/e)),0)}set text(e){this[Sf]=e,this.updateLineCount()}set prefixText(e){this[Jo]=e,this.updateLineCount()}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=NP[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let n=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let e=0;e<this.linesToClear;e++)e>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this}start(e){return e&&(this.text=e),this.isEnabled?this.isSpinning?this:(this.hideCursor&&hE.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,Xo.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
|
5
|
+
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&hE.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(Xo.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:Ko.success,text:e})}fail(e){return this.stopAndPersist({symbol:Ko.error,text:e})}warn(e){return this.stopAndPersist({symbol:Ko.warning,text:e})}info(e){return this.stopAndPersist({symbol:Ko.info,text:e})}stopAndPersist(e={}){let r=e.prefixText||this.prefixText,n=typeof r=="string"&&r!==""?r+" ":"",i=e.text||this.text,s=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${n}${e.symbol||" "}${s}
|
|
6
|
+
`),this}},UP=function(t){return new Zo(t)};vf.exports=UP;vf.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new Zo(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var pE=b((x5,Qo)=>{(function(t){var e=/^\s+/,r=/\s+$/,n=0,i=t.round,s=t.min,o=t.max,a=t.random;function u(d,w){if(d=d||"",w=w||{},d instanceof u)return d;if(!(this instanceof u))return new u(d,w);var y=c(d);this._originalInput=d,this._r=y.r,this._g=y.g,this._b=y.b,this._a=y.a,this._roundA=i(100*this._a)/100,this._format=w.format||y.format,this._gradientType=w.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=y.ok,this._tc_id=n++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var d=this.toRgb();return(d.r*299+d.g*587+d.b*114)/1e3},getLuminance:function(){var d=this.toRgb(),w,y,T,H,M,oe;return w=d.r/255,y=d.g/255,T=d.b/255,w<=.03928?H=w/12.92:H=t.pow((w+.055)/1.055,2.4),y<=.03928?M=y/12.92:M=t.pow((y+.055)/1.055,2.4),T<=.03928?oe=T/12.92:oe=t.pow((T+.055)/1.055,2.4),.2126*H+.7152*M+.0722*oe},setAlpha:function(d){return this._a=U(d),this._roundA=i(100*this._a)/100,this},toHsv:function(){var d=p(this._r,this._g,this._b);return{h:d.h*360,s:d.s,v:d.v,a:this._a}},toHsvString:function(){var d=p(this._r,this._g,this._b),w=i(d.h*360),y=i(d.s*100),T=i(d.v*100);return this._a==1?"hsv("+w+", "+y+"%, "+T+"%)":"hsva("+w+", "+y+"%, "+T+"%, "+this._roundA+")"},toHsl:function(){var d=f(this._r,this._g,this._b);return{h:d.h*360,s:d.s,l:d.l,a:this._a}},toHslString:function(){var d=f(this._r,this._g,this._b),w=i(d.h*360),y=i(d.s*100),T=i(d.l*100);return this._a==1?"hsl("+w+", "+y+"%, "+T+"%)":"hsla("+w+", "+y+"%, "+T+"%, "+this._roundA+")"},toHex:function(d){return _(this._r,this._g,this._b,d)},toHexString:function(d){return"#"+this.toHex(d)},toHex8:function(d){return g(this._r,this._g,this._b,this._a,d)},toHex8String:function(d){return"#"+this.toHex8(d)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(V(this._r,255)*100)+"%",g:i(V(this._g,255)*100)+"%",b:i(V(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(V(this._r,255)*100)+"%, "+i(V(this._g,255)*100)+"%, "+i(V(this._b,255)*100)+"%)":"rgba("+i(V(this._r,255)*100)+"%, "+i(V(this._g,255)*100)+"%, "+i(V(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:x[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(d){var w="#"+D(this._r,this._g,this._b,this._a),y=w,T=this._gradientType?"GradientType = 1, ":"";if(d){var H=u(d);y="#"+D(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+T+"startColorstr="+w+",endColorstr="+y+")"},toString:function(d){var w=!!d;d=d||this._format;var y=!1,T=this._a<1&&this._a>=0,H=!w&&T&&(d==="hex"||d==="hex6"||d==="hex3"||d==="hex4"||d==="hex8"||d==="name");return H?d==="name"&&this._a===0?this.toName():this.toRgbString():(d==="rgb"&&(y=this.toRgbString()),d==="prgb"&&(y=this.toPercentageRgbString()),(d==="hex"||d==="hex6")&&(y=this.toHexString()),d==="hex3"&&(y=this.toHexString(!0)),d==="hex4"&&(y=this.toHex8String(!0)),d==="hex8"&&(y=this.toHex8String()),d==="name"&&(y=this.toName()),d==="hsl"&&(y=this.toHslString()),d==="hsv"&&(y=this.toHsvString()),y||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(d,w){var y=d.apply(null,[this].concat([].slice.call(w)));return this._r=y._r,this._g=y._g,this._b=y._b,this.setAlpha(y._a),this},lighten:function(){return this._applyModification(N,arguments)},brighten:function(){return this._applyModification(K,arguments)},darken:function(){return this._applyModification(z,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(q,arguments)},greyscale:function(){return this._applyModification($,arguments)},spin:function(){return this._applyModification(W,arguments)},_applyCombination:function(d,w){return d.apply(null,[this].concat([].slice.call(w)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(ee,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(_e,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},u.fromRatio=function(d,w){if(typeof d=="object"){var y={};for(var T in d)d.hasOwnProperty(T)&&(T==="a"?y[T]=d[T]:y[T]=nt(d[T]));d=y}return u(d,w)};function c(d){var w={r:0,g:0,b:0},y=1,T=null,H=null,M=null,oe=!1,Ee=!1;return typeof d=="string"&&(d=ce(d)),typeof d=="object"&&(I(d.r)&&I(d.g)&&I(d.b)?(w=l(d.r,d.g,d.b),oe=!0,Ee=String(d.r).substr(-1)==="%"?"prgb":"rgb"):I(d.h)&&I(d.s)&&I(d.v)?(T=nt(d.s),H=nt(d.v),w=m(d.h,T,H),oe=!0,Ee="hsv"):I(d.h)&&I(d.s)&&I(d.l)&&(T=nt(d.s),M=nt(d.l),w=h(d.h,T,M),oe=!0,Ee="hsl"),d.hasOwnProperty("a")&&(y=d.a)),y=U(y),{ok:oe,format:d.format||Ee,r:s(255,o(w.r,0)),g:s(255,o(w.g,0)),b:s(255,o(w.b,0)),a:y}}function l(d,w,y){return{r:V(d,255)*255,g:V(w,255)*255,b:V(y,255)*255}}function f(d,w,y){d=V(d,255),w=V(w,255),y=V(y,255);var T=o(d,w,y),H=s(d,w,y),M,oe,Ee=(T+H)/2;if(T==H)M=oe=0;else{var be=T-H;switch(oe=Ee>.5?be/(2-T-H):be/(T+H),T){case d:M=(w-y)/be+(w<y?6:0);break;case w:M=(y-d)/be+2;break;case y:M=(d-w)/be+4;break}M/=6}return{h:M,s:oe,l:Ee}}function h(d,w,y){var T,H,M;d=V(d,360),w=V(w,100),y=V(y,100);function oe(ft,Mi,vt){return vt<0&&(vt+=1),vt>1&&(vt-=1),vt<1/6?ft+(Mi-ft)*6*vt:vt<1/2?Mi:vt<2/3?ft+(Mi-ft)*(2/3-vt)*6:ft}if(w===0)T=H=M=y;else{var Ee=y<.5?y*(1+w):y+w-y*w,be=2*y-Ee;T=oe(be,Ee,d+1/3),H=oe(be,Ee,d),M=oe(be,Ee,d-1/3)}return{r:T*255,g:H*255,b:M*255}}function p(d,w,y){d=V(d,255),w=V(w,255),y=V(y,255);var T=o(d,w,y),H=s(d,w,y),M,oe,Ee=T,be=T-H;if(oe=T===0?0:be/T,T==H)M=0;else{switch(T){case d:M=(w-y)/be+(w<y?6:0);break;case w:M=(y-d)/be+2;break;case y:M=(d-w)/be+4;break}M/=6}return{h:M,s:oe,v:Ee}}function m(d,w,y){d=V(d,360)*6,w=V(w,100),y=V(y,100);var T=t.floor(d),H=d-T,M=y*(1-w),oe=y*(1-H*w),Ee=y*(1-(1-H)*w),be=T%6,ft=[y,oe,M,M,Ee,y][be],Mi=[Ee,y,y,oe,M,M][be],vt=[M,M,Ee,y,y,oe][be];return{r:ft*255,g:Mi*255,b:vt*255}}function _(d,w,y,T){var H=[Ne(i(d).toString(16)),Ne(i(w).toString(16)),Ne(i(y).toString(16))];return T&&H[0].charAt(0)==H[0].charAt(1)&&H[1].charAt(0)==H[1].charAt(1)&&H[2].charAt(0)==H[2].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0):H.join("")}function g(d,w,y,T,H){var M=[Ne(i(d).toString(16)),Ne(i(w).toString(16)),Ne(i(y).toString(16)),Ne(Q(T))];return H&&M[0].charAt(0)==M[0].charAt(1)&&M[1].charAt(0)==M[1].charAt(1)&&M[2].charAt(0)==M[2].charAt(1)&&M[3].charAt(0)==M[3].charAt(1)?M[0].charAt(0)+M[1].charAt(0)+M[2].charAt(0)+M[3].charAt(0):M.join("")}function D(d,w,y,T){var H=[Ne(Q(T)),Ne(i(d).toString(16)),Ne(i(w).toString(16)),Ne(i(y).toString(16))];return H.join("")}u.equals=function(d,w){return!d||!w?!1:u(d).toRgbString()==u(w).toRgbString()},u.random=function(){return u.fromRatio({r:a(),g:a(),b:a()})};function C(d,w){w=w===0?0:w||10;var y=u(d).toHsl();return y.s-=w/100,y.s=ae(y.s),u(y)}function q(d,w){w=w===0?0:w||10;var y=u(d).toHsl();return y.s+=w/100,y.s=ae(y.s),u(y)}function $(d){return u(d).desaturate(100)}function N(d,w){w=w===0?0:w||10;var y=u(d).toHsl();return y.l+=w/100,y.l=ae(y.l),u(y)}function K(d,w){w=w===0?0:w||10;var y=u(d).toRgb();return y.r=o(0,s(255,y.r-i(255*-(w/100)))),y.g=o(0,s(255,y.g-i(255*-(w/100)))),y.b=o(0,s(255,y.b-i(255*-(w/100)))),u(y)}function z(d,w){w=w===0?0:w||10;var y=u(d).toHsl();return y.l-=w/100,y.l=ae(y.l),u(y)}function W(d,w){var y=u(d).toHsl(),T=(y.h+w)%360;return y.h=T<0?360+T:T,u(y)}function ee(d){var w=u(d).toHsl();return w.h=(w.h+180)%360,u(w)}function _e(d){var w=u(d).toHsl(),y=w.h;return[u(d),u({h:(y+120)%360,s:w.s,l:w.l}),u({h:(y+240)%360,s:w.s,l:w.l})]}function R(d){var w=u(d).toHsl(),y=w.h;return[u(d),u({h:(y+90)%360,s:w.s,l:w.l}),u({h:(y+180)%360,s:w.s,l:w.l}),u({h:(y+270)%360,s:w.s,l:w.l})]}function O(d){var w=u(d).toHsl(),y=w.h;return[u(d),u({h:(y+72)%360,s:w.s,l:w.l}),u({h:(y+216)%360,s:w.s,l:w.l})]}function v(d,w,y){w=w||6,y=y||30;var T=u(d).toHsl(),H=360/y,M=[u(d)];for(T.h=(T.h-(H*w>>1)+720)%360;--w;)T.h=(T.h+H)%360,M.push(u(T));return M}function k(d,w){w=w||6;for(var y=u(d).toHsv(),T=y.h,H=y.s,M=y.v,oe=[],Ee=1/w;w--;)oe.push(u({h:T,s:H,v:M})),M=(M+Ee)%1;return oe}u.mix=function(d,w,y){y=y===0?0:y||50;var T=u(d).toRgb(),H=u(w).toRgb(),M=y/100,oe={r:(H.r-T.r)*M+T.r,g:(H.g-T.g)*M+T.g,b:(H.b-T.b)*M+T.b,a:(H.a-T.a)*M+T.a};return u(oe)},u.readability=function(d,w){var y=u(d),T=u(w);return(t.max(y.getLuminance(),T.getLuminance())+.05)/(t.min(y.getLuminance(),T.getLuminance())+.05)},u.isReadable=function(d,w,y){var T=u.readability(d,w),H,M;switch(M=!1,H=B(y),H.level+H.size){case"AAsmall":case"AAAlarge":M=T>=4.5;break;case"AAlarge":M=T>=3;break;case"AAAsmall":M=T>=7;break}return M},u.mostReadable=function(d,w,y){var T=null,H=0,M,oe,Ee,be;y=y||{},oe=y.includeFallbackColors,Ee=y.level,be=y.size;for(var ft=0;ft<w.length;ft++)M=u.readability(d,w[ft]),M>H&&(H=M,T=u(w[ft]));return u.isReadable(d,T,{level:Ee,size:be})||!oe?T:(y.includeFallbackColors=!1,u.mostReadable(d,["#fff","#000"],y))};var A=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=u.hexNames=j(A);function j(d){var w={};for(var y in d)d.hasOwnProperty(y)&&(w[d[y]]=y);return w}function U(d){return d=parseFloat(d),(isNaN(d)||d<0||d>1)&&(d=1),d}function V(d,w){Ve(d)&&(d="100%");var y=Ct(d);return d=s(w,o(0,parseFloat(d))),y&&(d=parseInt(d*w,10)/100),t.abs(d-w)<1e-6?1:d%w/parseFloat(w)}function ae(d){return s(1,o(0,d))}function re(d){return parseInt(d,16)}function Ve(d){return typeof d=="string"&&d.indexOf(".")!=-1&&parseFloat(d)===1}function Ct(d){return typeof d=="string"&&d.indexOf("%")!=-1}function Ne(d){return d.length==1?"0"+d:""+d}function nt(d){return d<=1&&(d=d*100+"%"),d}function Q(d){return t.round(parseFloat(d)*255).toString(16)}function Xr(d){return re(d)/255}var it=function(){var d="[-\\+]?\\d+%?",w="[-\\+]?\\d*\\.\\d+%?",y="(?:"+w+")|(?:"+d+")",T="[\\s|\\(]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?",H="[\\s|\\(]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?";return{CSS_UNIT:new RegExp(y),rgb:new RegExp("rgb"+T),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+T),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+T),hsva:new RegExp("hsva"+H),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function I(d){return!!it.CSS_UNIT.exec(d)}function ce(d){d=d.replace(e,"").replace(r,"").toLowerCase();var w=!1;if(A[d])d=A[d],w=!0;else if(d=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var y;return(y=it.rgb.exec(d))?{r:y[1],g:y[2],b:y[3]}:(y=it.rgba.exec(d))?{r:y[1],g:y[2],b:y[3],a:y[4]}:(y=it.hsl.exec(d))?{h:y[1],s:y[2],l:y[3]}:(y=it.hsla.exec(d))?{h:y[1],s:y[2],l:y[3],a:y[4]}:(y=it.hsv.exec(d))?{h:y[1],s:y[2],v:y[3]}:(y=it.hsva.exec(d))?{h:y[1],s:y[2],v:y[3],a:y[4]}:(y=it.hex8.exec(d))?{r:re(y[1]),g:re(y[2]),b:re(y[3]),a:Xr(y[4]),format:w?"name":"hex8"}:(y=it.hex6.exec(d))?{r:re(y[1]),g:re(y[2]),b:re(y[3]),format:w?"name":"hex"}:(y=it.hex4.exec(d))?{r:re(y[1]+""+y[1]),g:re(y[2]+""+y[2]),b:re(y[3]+""+y[3]),a:Xr(y[4]+""+y[4]),format:w?"name":"hex8"}:(y=it.hex3.exec(d))?{r:re(y[1]+""+y[1]),g:re(y[2]+""+y[2]),b:re(y[3]+""+y[3]),format:w?"name":"hex"}:!1}function B(d){var w,y;return d=d||{level:"AA",size:"small"},w=(d.level||"AA").toUpperCase(),y=(d.size||"small").toLowerCase(),w!=="AA"&&w!=="AAA"&&(w="AA"),y!=="small"&&y!=="large"&&(y="small"),{level:w,size:y}}typeof Qo!="undefined"&&Qo.exports?Qo.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u})(Math)});var DE=b((S5,bE)=>{var ns=pE(),_E={r:256,g:256,b:256,a:1},EE={h:360,s:1,v:1,a:1};function Ff(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function Tf(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Rf(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=Ff(n,i,r),o=[t.color];for(let a=1;a<r;a++){let u=Tf(s,n,a,_E);o.push(ns(u))}return o}function mE(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Rf(t,e,r);let o;if(typeof n=="boolean")o=n;else{let l=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&l||n==="short"&&!l}let a=Ff(i,s,r),u=[t.color],c;i.h<=s.h&&!o||i.h>=s.h&&o?c=s.h-i.h:o?c=360-s.h+i.h:c=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(c)/r;for(let l=1;l<r;l++){let f=Tf(a,i,l,EE);u.push(ns(f))}return u}function gE(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==e;)if(i<e){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function yE(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,c=t.length;u<c-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){i=t[u],s=t[u+1];break}i||(i=s=t[t.length-1]);let o=Ff(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=Tf(o,i.color[r](),(e-i.pos)*100,n);return ns(a)}var Yn=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.map((o,a)=>{let u=o.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let c=o.color!==void 0;if(!c&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!c,o={color:c?ns(o.color):null,colorLess:!c,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:ns(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new Yn(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new Yn(e.concat(r.reverse()))}rgb(e){let r=gE(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Rf(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Rf(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,r){let n=gE(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=mE(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=mE(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return yE(this.stops,e,"toRgb",_E)}hsvAt(e){return yE(this.stops,e,"toHsv",EE)}};bE.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new Yn(t)}});var CE=b((C5,ea)=>{"use strict";var AE=require("chalk"),GP=DE(),wE=/\s/g;function Of(...t){let e=GP.apply(this,t),r=(n,i)=>WP(n?n.toString():"",e,i);return r.multiline=(n,i)=>zP(n?n.toString():"",e,i),r}var xE=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function WP(t,e,r){let n=SE(r),i=Math.max(t.replace(wE,"").length,e.stops.length),s=xE(e,n,i),o="";for(let a of t)o+=a.match(wE)?a:AE.hex(s.shift().toHex())(a);return o}function zP(t,e,r){let n=SE(r),i=t.split(`
|
|
7
|
+
`),s=Math.max.apply(null,i.map(u=>u.length).concat([e.stops.length])),o=xE(e,n,s),a=[];for(let u of i){let c=o.slice(0),l="";for(let f of u)l+=AE.hex(c.shift().toHex())(f);a.push(l)}return a.join(`
|
|
8
|
+
`)}function SE(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var is={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};ea.exports=Of;for(let t in is)ea.exports[t]=e=>new Of(is[t].colors)(e,is[t].options),ea.exports[t].multiline=e=>new Of(is[t].colors).multiline(e,is[t].options)});var ME=b((O5,NE)=>{NE.exports=LE;LE.sync=r2;var BE=require("fs");function t2(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function IE(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:t2(e,r)}function LE(t,e,r){BE.stat(t,function(n,i){r(n,n?!1:IE(i,t,e))})}function r2(t,e){return IE(BE.statSync(t),t,e)}});var UE=b((k5,$E)=>{$E.exports=HE;HE.sync=n2;var qE=require("fs");function HE(t,e,r){qE.stat(t,function(n,i){r(n,n?!1:jE(i,e))})}function n2(t,e){return jE(qE.statSync(t),e)}function jE(t,e){return t.isFile()&&i2(t,e)}function i2(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),c=parseInt("001",8),l=a|u,f=r&c||r&u&&i===o||r&a&&n===s||r&l&&s===0;return f}});var WE=b((B5,GE)=>{var P5=require("fs"),ta;process.platform==="win32"||global.TESTING_WINDOWS?ta=ME():ta=UE();GE.exports=Lf;Lf.sync=s2;function Lf(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Lf(t,e||{},function(s,o){s?i(s):n(o)})})}ta(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function s2(t,e){try{return ta.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var ZE=b((I5,XE)=>{var Xn=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",zE=require("path"),o2=Xn?";":":",VE=WE(),YE=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),KE=(t,e)=>{let r=e.colon||o2,n=t.match(/\//)||Xn&&t.match(/\\/)?[""]:[...Xn?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=Xn?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Xn?i.split(r):[""];return Xn&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},JE=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:s}=KE(t,e),o=[],a=c=>new Promise((l,f)=>{if(c===n.length)return e.all&&o.length?l(o):f(YE(t));let h=n[c],p=/^".*"$/.test(h)?h.slice(1,-1):h,m=zE.join(p,t),_=!p&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;l(u(_,c,0))}),u=(c,l,f)=>new Promise((h,p)=>{if(f===i.length)return h(a(l+1));let m=i[f];VE(c+m,{pathExt:s},(_,g)=>{if(!_&&g)if(e.all)o.push(c+m);else return h(c+m);return h(u(c,l,f+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},a2=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=KE(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,c=zE.join(u,t),l=!u&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let f=0;f<n.length;f++){let h=l+n[f];try{if(VE.sync(h,{pathExt:i}))if(e.all)s.push(h);else return h}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw YE(t)};XE.exports=JE;JE.sync=a2});var Mf=b((L5,Nf)=>{"use strict";var QE=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};Nf.exports=QE;Nf.exports.default=QE});var nb=b((N5,rb)=>{"use strict";var eb=require("path"),u2=ZE(),c2=Mf();function tb(t,e){let r=t.options.env||process.env,n=process.cwd(),i=t.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=u2.sync(t.command,{path:r[c2({env:r})],pathExt:e?eb.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=eb.resolve(i?t.options.cwd:"",o)),o}function l2(t){return tb(t)||tb(t,!0)}rb.exports=l2});var ib=b((M5,Hf)=>{"use strict";var qf=/([()\][%!^"`<>&|;, *?])/g;function f2(t){return t=t.replace(qf,"^$1"),t}function h2(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(qf,"^$1"),e&&(t=t.replace(qf,"^$1")),t}Hf.exports.command=f2;Hf.exports.argument=h2});var ob=b((q5,sb)=>{"use strict";sb.exports=/^#!(.*)/});var ub=b((H5,ab)=>{"use strict";var d2=ob();ab.exports=(t="")=>{let e=t.match(d2);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var lb=b((j5,cb)=>{"use strict";var jf=require("fs"),p2=ub();function m2(t){let r=Buffer.alloc(150),n;try{n=jf.openSync(t,"r"),jf.readSync(n,r,0,150,0),jf.closeSync(n)}catch{}return p2(r.toString())}cb.exports=m2});var pb=b(($5,db)=>{"use strict";var g2=require("path"),fb=nb(),hb=ib(),y2=lb(),_2=process.platform==="win32",E2=/\.(?:com|exe)$/i,b2=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function D2(t){t.file=fb(t);let e=t.file&&y2(t.file);return e?(t.args.unshift(t.file),t.command=e,fb(t)):t.file}function w2(t){if(!_2)return t;let e=D2(t),r=!E2.test(e);if(t.options.forceShell||r){let n=b2.test(e);t.command=g2.normalize(t.command),t.command=hb.command(t.command),t.args=t.args.map(s=>hb.argument(s,n));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function A2(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:w2(n)}db.exports=A2});var yb=b((U5,gb)=>{"use strict";var $f=process.platform==="win32";function Uf(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function x2(t,e){if(!$f)return;let r=t.emit;t.emit=function(n,i){if(n==="exit"){let s=mb(i,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function mb(t,e){return $f&&t===1&&!e.file?Uf(e.original,"spawn"):null}function S2(t,e){return $f&&t===1&&!e.file?Uf(e.original,"spawnSync"):null}gb.exports={hookChildProcess:x2,verifyENOENT:mb,verifyENOENTSync:S2,notFoundError:Uf}});var bb=b((G5,Zn)=>{"use strict";var _b=require("child_process"),Gf=pb(),Wf=yb();function Eb(t,e,r){let n=Gf(t,e,r),i=_b.spawn(n.command,n.args,n.options);return Wf.hookChildProcess(i,n),i}function C2(t,e,r){let n=Gf(t,e,r),i=_b.spawnSync(n.command,n.args,n.options);return i.error=i.error||Wf.verifyENOENTSync(i.status,n),i}Zn.exports=Eb;Zn.exports.spawn=Eb;Zn.exports.sync=C2;Zn.exports._parse=Gf;Zn.exports._enoent=Wf});var wb=b((W5,Db)=>{"use strict";Db.exports=t=>{let e=typeof t=="string"?`
|
|
3
9
|
`:`
|
|
4
|
-
`.charCodeAt(),
|
|
5
|
-
${
|
|
6
|
-
`);return E?(t.originalMessage=t.message,t.message=m):t=new Error(m),t.shortMessage=v,t.command=c,t.escapedCommand=o,t.exitCode=l,t.signal=p,t.signalDescription=w,t.stdout=h,t.stderr=u,r!==void 0&&(t.all=r),"bufferedData"in t&&delete t.bufferedData,t.failed=!0,t.timedOut=!!d,t.isCanceled=f,t.killed=y&&!d,t};a.exports=i}),Ou=j((e,a)=>{"use strict";B();var n=["stdin","stdout","stderr"],s=h=>n.some(u=>h[u]!==void 0),i=h=>{if(!h)return;let{stdio:u}=h;if(u===void 0)return n.map(t=>h[t]);if(s(h))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${n.map(t=>`\`${t}\``).join(", ")}`);if(typeof u=="string")return u;if(!Array.isArray(u))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof u}\``);let r=Math.max(u.length,n.length);return Array.from({length:r},(t,p)=>u[p])};a.exports=i,a.exports.node=h=>{let u=i(h);return u==="ipc"?"ipc":u===void 0||typeof u=="string"?[u,u,u,"ipc"]:u.includes("ipc")?u:[...u,"ipc"]}}),Ru=j((e,a)=>{"use strict";B();var n=Z("os"),s=hr(),i=1e3*5,h=(y,b="SIGTERM",w={})=>{let g=y(b);return u(y,b,w,g),g},u=(y,b,w,g)=>{if(!r(b,w,g))return;let D=p(w),E=setTimeout(()=>{y("SIGKILL")},D);E.unref&&E.unref()},r=(y,{forceKillAfterTimeout:b},w)=>t(y)&&b!==!1&&w,t=y=>y===n.constants.signals.SIGTERM||typeof y=="string"&&y.toUpperCase()==="SIGTERM",p=({forceKillAfterTimeout:y=!0})=>{if(y===!0)return i;if(!Number.isFinite(y)||y<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`);return y},l=(y,b)=>{y.kill()&&(b.isCanceled=!0)},c=(y,b,w)=>{y.kill(b),w(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},o=(y,{timeout:b,killSignal:w="SIGTERM"},g)=>{if(b===0||b===void 0)return g;let D,E=new Promise((m,_)=>{D=setTimeout(()=>{c(y,w,_)},b)}),v=g.finally(()=>{clearTimeout(D)});return Promise.race([E,v])},d=({timeout:y})=>{if(y!==void 0&&(!Number.isFinite(y)||y<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`)},f=async(y,{cleanup:b,detached:w},g)=>{if(!b||w)return g;let D=s(()=>{y.kill()});return g.finally(()=>{D()})};a.exports={spawnedKill:h,spawnedCancel:l,setupTimeout:o,validateTimeout:d,setExitHandler:f}}),Tu=j((e,a)=>{"use strict";B();var n=s=>s!==null&&typeof s=="object"&&typeof s.pipe=="function";n.writable=s=>n(s)&&s.writable!==!1&&typeof s._write=="function"&&typeof s._writableState=="object",n.readable=s=>n(s)&&s.readable!==!1&&typeof s._read=="function"&&typeof s._readableState=="object",n.duplex=s=>n.writable(s)&&n.readable(s),n.transform=s=>n.duplex(s)&&typeof s._transform=="function",a.exports=n}),Bu=j((e,a)=>{"use strict";B();var{PassThrough:n}=Z("stream");a.exports=s=>{s={...s};let{array:i}=s,{encoding:h}=s,u=h==="buffer",r=!1;i?r=!(h||u):h=h||"utf8",u&&(h=null);let t=new n({objectMode:r});h&&t.setEncoding(h);let p=0,l=[];return t.on("data",c=>{l.push(c),r?p=l.length:p+=c.length}),t.getBufferedValue=()=>i?l:u?Buffer.concat(l,p):l.join(""),t.getBufferedLength=()=>p,t}}),Pu=j((e,a)=>{"use strict";B();var{constants:n}=Z("buffer"),s=Z("stream"),{promisify:i}=Z("util"),h=Bu(),u=i(s.pipeline),r=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function t(p,l){if(!p)throw new Error("Expected a stream");l={maxBuffer:1/0,...l};let{maxBuffer:c}=l,o=h(l);return await new Promise((d,f)=>{let y=b=>{b&&o.getBufferedLength()<=n.MAX_LENGTH&&(b.bufferedData=o.getBufferedValue()),f(b)};(async()=>{try{await u(p,o),d()}catch(b){y(b)}})(),o.on("data",()=>{o.getBufferedLength()>c&&y(new r)})}),o.getBufferedValue()}a.exports=t,a.exports.buffer=(p,l)=>t(p,{...l,encoding:"buffer"}),a.exports.array=(p,l)=>t(p,{...l,array:!0}),a.exports.MaxBufferError=r}),Lu=j((e,a)=>{"use strict";B();var{PassThrough:n}=Z("stream");a.exports=function(){var s=[],i=new n({objectMode:!0});return i.setMaxListeners(0),i.add=h,i.isEmpty=u,i.on("unpipe",r),Array.prototype.slice.call(arguments).forEach(h),i;function h(t){return Array.isArray(t)?(t.forEach(h),this):(s.push(t),t.once("end",r.bind(null,t)),t.once("error",i.emit.bind(i,"error")),t.pipe(i,{end:!1}),this)}function u(){return s.length==0}function r(t){s=s.filter(function(p){return p!==t}),!s.length&&i.readable&&i.end()}}}),Iu=j((e,a)=>{"use strict";B();var n=Tu(),s=Pu(),i=Lu(),h=(c,o)=>{o===void 0||c.stdin===void 0||(n(o)?o.pipe(c.stdin):c.stdin.end(o))},u=(c,{all:o})=>{if(!o||!c.stdout&&!c.stderr)return;let d=i();return c.stdout&&d.add(c.stdout),c.stderr&&d.add(c.stderr),d},r=async(c,o)=>{if(c){c.destroy();try{return await o}catch(d){return d.bufferedData}}},t=(c,{encoding:o,buffer:d,maxBuffer:f})=>{if(!(!c||!d))return o?s(c,{encoding:o,maxBuffer:f}):s.buffer(c,{maxBuffer:f})},p=async({stdout:c,stderr:o,all:d},{encoding:f,buffer:y,maxBuffer:b},w)=>{let g=t(c,{encoding:f,buffer:y,maxBuffer:b}),D=t(o,{encoding:f,buffer:y,maxBuffer:b}),E=t(d,{encoding:f,buffer:y,maxBuffer:b*2});try{return await Promise.all([w,g,D,E])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},r(c,g),r(o,D),r(d,E)])}},l=({input:c})=>{if(n(c))throw new TypeError("The `input` option cannot be a stream in sync mode")};a.exports={handleInput:h,makeAllStream:u,getSpawnedResult:p,validateInputSync:l}}),ju=j((e,a)=>{"use strict";B();var n=(async()=>{})().constructor.prototype,s=["then","catch","finally"].map(u=>[u,Reflect.getOwnPropertyDescriptor(n,u)]),i=(u,r)=>{for(let[t,p]of s){let l=typeof r=="function"?(...c)=>Reflect.apply(p.value,r(),c):p.value.bind(r);Reflect.defineProperty(u,t,{...p,value:l})}return u},h=u=>new Promise((r,t)=>{u.on("exit",(p,l)=>{r({exitCode:p,signal:l})}),u.on("error",p=>{t(p)}),u.stdin&&u.stdin.on("error",p=>{t(p)})});a.exports={mergePromise:i,getSpawnedPromise:h}}),Nu=j((e,a)=>{"use strict";B();var n=(l,c=[])=>Array.isArray(c)?[l,...c]:[l],s=/^[\w.-]+$/,i=/"/g,h=l=>typeof l!="string"||s.test(l)?l:`"${l.replace(i,'\\"')}"`,u=(l,c)=>n(l,c).join(" "),r=(l,c)=>n(l,c).map(o=>h(o)).join(" "),t=/ +/g,p=l=>{let c=[];for(let o of l.trim().split(t)){let d=c[c.length-1];d&&d.endsWith("\\")?c[c.length-1]=`${d.slice(0,-1)} ${o}`:c.push(o)}return c};a.exports={joinCommand:u,getEscapedCommand:r,parseCommand:p}}),Mu=j((e,a)=>{"use strict";B();var n=Z("path"),s=Z("child_process"),i=Du(),h=Su(),u=Au(),r=cr(),t=Fu(),p=Ou(),{spawnedKill:l,spawnedCancel:c,setupTimeout:o,validateTimeout:d,setExitHandler:f}=Ru(),{handleInput:y,getSpawnedResult:b,makeAllStream:w,validateInputSync:g}=Iu(),{mergePromise:D,getSpawnedPromise:E}=ju(),{joinCommand:v,parseCommand:m,getEscapedCommand:_}=Nu(),S=1e3*1e3*100,A=({env:k,extendEnv:O,preferLocal:I,localDir:$,execPath:R})=>{let G=O?{...process.env,...k}:k;return I?u.env({env:G,cwd:$,execPath:R}):G},x=(k,O,I={})=>{let $=i._parse(k,O,I);return k=$.command,O=$.args,I=$.options,I={maxBuffer:S,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:I.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...I},I.env=A(I),I.stdio=p(I),process.platform==="win32"&&n.basename(k,".exe")==="cmd"&&O.unshift("/q"),{file:k,args:O,options:I,parsed:$}},L=(k,O,I)=>typeof O!="string"&&!Buffer.isBuffer(O)?I===void 0?void 0:"":k.stripFinalNewline?h(O):O,T=(k,O,I)=>{let $=x(k,O,I),R=v(k,O),G=_(k,O);d($.options);let z;try{z=s.spawn($.file,$.args,$.options)}catch(q){let ee=new s.ChildProcess,M=Promise.reject(t({error:q,stdout:"",stderr:"",all:"",command:R,escapedCommand:G,parsed:$,timedOut:!1,isCanceled:!1,killed:!1}));return D(ee,M)}let Q=E(z),P=o(z,$.options,Q),N=f(z,$.options,P),F={isCanceled:!1};z.kill=l.bind(null,z.kill.bind(z)),z.cancel=c.bind(null,z,F);let J=r(async()=>{let[{error:q,exitCode:ee,signal:M,timedOut:K},te,oe,ce]=await b(z,$.options,N),be=L($.options,te),ye=L($.options,oe),H=L($.options,ce);if(q||ee!==0||M!==null){let V=t({error:q,exitCode:ee,signal:M,stdout:be,stderr:ye,all:H,command:R,escapedCommand:G,parsed:$,timedOut:K,isCanceled:F.isCanceled,killed:z.killed});if(!$.options.reject)return V;throw V}return{command:R,escapedCommand:G,exitCode:0,stdout:be,stderr:ye,all:H,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return y(z,$.options.input),z.all=w(z,$.options),D(z,J)};a.exports=T,a.exports.sync=(k,O,I)=>{let $=x(k,O,I),R=v(k,O),G=_(k,O);g($.options);let z;try{z=s.spawnSync($.file,$.args,$.options)}catch(N){throw t({error:N,stdout:"",stderr:"",all:"",command:R,escapedCommand:G,parsed:$,timedOut:!1,isCanceled:!1,killed:!1})}let Q=L($.options,z.stdout,z.error),P=L($.options,z.stderr,z.error);if(z.error||z.status!==0||z.signal!==null){let N=t({stdout:Q,stderr:P,error:z.error,signal:z.signal,exitCode:z.status,command:R,escapedCommand:G,parsed:$,timedOut:z.error&&z.error.code==="ETIMEDOUT",isCanceled:!1,killed:z.signal!==null});if(!$.options.reject)return N;throw N}return{command:R,escapedCommand:G,exitCode:0,stdout:Q,stderr:P,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},a.exports.command=(k,O)=>{let[I,...$]=m(k);return T(I,$,O)},a.exports.commandSync=(k,O)=>{let[I,...$]=m(k);return T.sync(I,$,O)},a.exports.node=(k,O,I={})=>{O&&!Array.isArray(O)&&typeof O=="object"&&(I=O,O=[]);let $=p.node(I),R=process.execArgv.filter(Q=>!Q.startsWith("--inspect")),{nodePath:G=process.execPath,nodeOptions:z=R}=I;return T(G,[...z,k,...Array.isArray(O)?O:[]],{...I,stdin:void 0,stdout:void 0,stderr:void 0,stdio:$,shell:!1})}});B();var r0=Re(Mu());B();var $u=j((e,a)=>{"use strict";B();var n=/[|\\{}()[\]^$+*?.]/g;a.exports=function(s){if(typeof s!="string")throw new TypeError("Expected a string");return s.replace(n,"\\$&")}}),Hu=j((e,a)=>{"use strict";B(),a.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]}}),ci=j((e,a)=>{B();var n=Hu(),s={};for(i in n)n.hasOwnProperty(i)&&(s[n[i]]=i);var i,h=a.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(t in h)if(h.hasOwnProperty(t)){if(!("channels"in h[t]))throw new Error("missing channels property: "+t);if(!("labels"in h[t]))throw new Error("missing channel labels property: "+t);if(h[t].labels.length!==h[t].channels)throw new Error("channel and label counts mismatch: "+t);u=h[t].channels,r=h[t].labels,delete h[t].channels,delete h[t].labels,Object.defineProperty(h[t],"channels",{value:u}),Object.defineProperty(h[t],"labels",{value:r})}var u,r,t;h.rgb.hsl=function(l){var c=l[0]/255,o=l[1]/255,d=l[2]/255,f=Math.min(c,o,d),y=Math.max(c,o,d),b=y-f,w,g,D;return y===f?w=0:c===y?w=(o-d)/b:o===y?w=2+(d-c)/b:d===y&&(w=4+(c-o)/b),w=Math.min(w*60,360),w<0&&(w+=360),D=(f+y)/2,y===f?g=0:D<=.5?g=b/(y+f):g=b/(2-y-f),[w,g*100,D*100]},h.rgb.hsv=function(l){var c,o,d,f,y,b=l[0]/255,w=l[1]/255,g=l[2]/255,D=Math.max(b,w,g),E=D-Math.min(b,w,g),v=function(m){return(D-m)/6/E+1/2};return E===0?f=y=0:(y=E/D,c=v(b),o=v(w),d=v(g),b===D?f=d-o:w===D?f=1/3+c-d:g===D&&(f=2/3+o-c),f<0?f+=1:f>1&&(f-=1)),[f*360,y*100,D*100]},h.rgb.hwb=function(l){var c=l[0],o=l[1],d=l[2],f=h.rgb.hsl(l)[0],y=1/255*Math.min(c,Math.min(o,d));return d=1-1/255*Math.max(c,Math.max(o,d)),[f,y*100,d*100]},h.rgb.cmyk=function(l){var c=l[0]/255,o=l[1]/255,d=l[2]/255,f,y,b,w;return w=Math.min(1-c,1-o,1-d),f=(1-c-w)/(1-w)||0,y=(1-o-w)/(1-w)||0,b=(1-d-w)/(1-w)||0,[f*100,y*100,b*100,w*100]};function p(l,c){return Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)+Math.pow(l[2]-c[2],2)}h.rgb.keyword=function(l){var c=s[l];if(c)return c;var o=1/0,d;for(var f in n)if(n.hasOwnProperty(f)){var y=n[f],b=p(l,y);b<o&&(o=b,d=f)}return d},h.keyword.rgb=function(l){return n[l]},h.rgb.xyz=function(l){var c=l[0]/255,o=l[1]/255,d=l[2]/255;c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92,o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var f=c*.4124+o*.3576+d*.1805,y=c*.2126+o*.7152+d*.0722,b=c*.0193+o*.1192+d*.9505;return[f*100,y*100,b*100]},h.rgb.lab=function(l){var c=h.rgb.xyz(l),o=c[0],d=c[1],f=c[2],y,b,w;return o/=95.047,d/=100,f/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,f=f>.008856?Math.pow(f,1/3):7.787*f+16/116,y=116*d-16,b=500*(o-d),w=200*(d-f),[y,b,w]},h.hsl.rgb=function(l){var c=l[0]/360,o=l[1]/100,d=l[2]/100,f,y,b,w,g;if(o===0)return g=d*255,[g,g,g];d<.5?y=d*(1+o):y=d+o-d*o,f=2*d-y,w=[0,0,0];for(var D=0;D<3;D++)b=c+1/3*-(D-1),b<0&&b++,b>1&&b--,6*b<1?g=f+(y-f)*6*b:2*b<1?g=y:3*b<2?g=f+(y-f)*(2/3-b)*6:g=f,w[D]=g*255;return w},h.hsl.hsv=function(l){var c=l[0],o=l[1]/100,d=l[2]/100,f=o,y=Math.max(d,.01),b,w;return d*=2,o*=d<=1?d:2-d,f*=y<=1?y:2-y,w=(d+o)/2,b=d===0?2*f/(y+f):2*o/(d+o),[c,b*100,w*100]},h.hsv.rgb=function(l){var c=l[0]/60,o=l[1]/100,d=l[2]/100,f=Math.floor(c)%6,y=c-Math.floor(c),b=255*d*(1-o),w=255*d*(1-o*y),g=255*d*(1-o*(1-y));switch(d*=255,f){case 0:return[d,g,b];case 1:return[w,d,b];case 2:return[b,d,g];case 3:return[b,w,d];case 4:return[g,b,d];case 5:return[d,b,w]}},h.hsv.hsl=function(l){var c=l[0],o=l[1]/100,d=l[2]/100,f=Math.max(d,.01),y,b,w;return w=(2-o)*d,y=(2-o)*f,b=o*f,b/=y<=1?y:2-y,b=b||0,w/=2,[c,b*100,w*100]},h.hwb.rgb=function(l){var c=l[0]/360,o=l[1]/100,d=l[2]/100,f=o+d,y,b,w,g;f>1&&(o/=f,d/=f),y=Math.floor(6*c),b=1-d,w=6*c-y,y&1&&(w=1-w),g=o+w*(b-o);var D,E,v;switch(y){default:case 6:case 0:D=b,E=g,v=o;break;case 1:D=g,E=b,v=o;break;case 2:D=o,E=b,v=g;break;case 3:D=o,E=g,v=b;break;case 4:D=g,E=o,v=b;break;case 5:D=b,E=o,v=g;break}return[D*255,E*255,v*255]},h.cmyk.rgb=function(l){var c=l[0]/100,o=l[1]/100,d=l[2]/100,f=l[3]/100,y,b,w;return y=1-Math.min(1,c*(1-f)+f),b=1-Math.min(1,o*(1-f)+f),w=1-Math.min(1,d*(1-f)+f),[y*255,b*255,w*255]},h.xyz.rgb=function(l){var c=l[0]/100,o=l[1]/100,d=l[2]/100,f,y,b;return f=c*3.2406+o*-1.5372+d*-.4986,y=c*-.9689+o*1.8758+d*.0415,b=c*.0557+o*-.204+d*1.057,f=f>.0031308?1.055*Math.pow(f,1/2.4)-.055:f*12.92,y=y>.0031308?1.055*Math.pow(y,1/2.4)-.055:y*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,f=Math.min(Math.max(0,f),1),y=Math.min(Math.max(0,y),1),b=Math.min(Math.max(0,b),1),[f*255,y*255,b*255]},h.xyz.lab=function(l){var c=l[0],o=l[1],d=l[2],f,y,b;return c/=95.047,o/=100,d/=108.883,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,f=116*o-16,y=500*(c-o),b=200*(o-d),[f,y,b]},h.lab.xyz=function(l){var c=l[0],o=l[1],d=l[2],f,y,b;y=(c+16)/116,f=o/500+y,b=y-d/200;var w=Math.pow(y,3),g=Math.pow(f,3),D=Math.pow(b,3);return y=w>.008856?w:(y-16/116)/7.787,f=g>.008856?g:(f-16/116)/7.787,b=D>.008856?D:(b-16/116)/7.787,f*=95.047,y*=100,b*=108.883,[f,y,b]},h.lab.lch=function(l){var c=l[0],o=l[1],d=l[2],f,y,b;return f=Math.atan2(d,o),y=f*360/2/Math.PI,y<0&&(y+=360),b=Math.sqrt(o*o+d*d),[c,b,y]},h.lch.lab=function(l){var c=l[0],o=l[1],d=l[2],f,y,b;return b=d/360*2*Math.PI,f=o*Math.cos(b),y=o*Math.sin(b),[c,f,y]},h.rgb.ansi16=function(l){var c=l[0],o=l[1],d=l[2],f=1 in arguments?arguments[1]:h.rgb.hsv(l)[2];if(f=Math.round(f/50),f===0)return 30;var y=30+(Math.round(d/255)<<2|Math.round(o/255)<<1|Math.round(c/255));return f===2&&(y+=60),y},h.hsv.ansi16=function(l){return h.rgb.ansi16(h.hsv.rgb(l),l[2])},h.rgb.ansi256=function(l){var c=l[0],o=l[1],d=l[2];if(c===o&&o===d)return c<8?16:c>248?231:Math.round((c-8)/247*24)+232;var f=16+36*Math.round(c/255*5)+6*Math.round(o/255*5)+Math.round(d/255*5);return f},h.ansi16.rgb=function(l){var c=l%10;if(c===0||c===7)return l>50&&(c+=3.5),c=c/10.5*255,[c,c,c];var o=(~~(l>50)+1)*.5,d=(c&1)*o*255,f=(c>>1&1)*o*255,y=(c>>2&1)*o*255;return[d,f,y]},h.ansi256.rgb=function(l){if(l>=232){var c=(l-232)*10+8;return[c,c,c]}l-=16;var o,d=Math.floor(l/36)/5*255,f=Math.floor((o=l%36)/6)/5*255,y=o%6/5*255;return[d,f,y]},h.rgb.hex=function(l){var c=((Math.round(l[0])&255)<<16)+((Math.round(l[1])&255)<<8)+(Math.round(l[2])&255),o=c.toString(16).toUpperCase();return"000000".substring(o.length)+o},h.hex.rgb=function(l){var c=l.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!c)return[0,0,0];var o=c[0];c[0].length===3&&(o=o.split("").map(function(w){return w+w}).join(""));var d=parseInt(o,16),f=d>>16&255,y=d>>8&255,b=d&255;return[f,y,b]},h.rgb.hcg=function(l){var c=l[0]/255,o=l[1]/255,d=l[2]/255,f=Math.max(Math.max(c,o),d),y=Math.min(Math.min(c,o),d),b=f-y,w,g;return b<1?w=y/(1-b):w=0,b<=0?g=0:f===c?g=(o-d)/b%6:f===o?g=2+(d-c)/b:g=4+(c-o)/b+4,g/=6,g%=1,[g*360,b*100,w*100]},h.hsl.hcg=function(l){var c=l[1]/100,o=l[2]/100,d=1,f=0;return o<.5?d=2*c*o:d=2*c*(1-o),d<1&&(f=(o-.5*d)/(1-d)),[l[0],d*100,f*100]},h.hsv.hcg=function(l){var c=l[1]/100,o=l[2]/100,d=c*o,f=0;return d<1&&(f=(o-d)/(1-d)),[l[0],d*100,f*100]},h.hcg.rgb=function(l){var c=l[0]/360,o=l[1]/100,d=l[2]/100;if(o===0)return[d*255,d*255,d*255];var f=[0,0,0],y=c%1*6,b=y%1,w=1-b,g=0;switch(Math.floor(y)){case 0:f[0]=1,f[1]=b,f[2]=0;break;case 1:f[0]=w,f[1]=1,f[2]=0;break;case 2:f[0]=0,f[1]=1,f[2]=b;break;case 3:f[0]=0,f[1]=w,f[2]=1;break;case 4:f[0]=b,f[1]=0,f[2]=1;break;default:f[0]=1,f[1]=0,f[2]=w}return g=(1-o)*d,[(o*f[0]+g)*255,(o*f[1]+g)*255,(o*f[2]+g)*255]},h.hcg.hsv=function(l){var c=l[1]/100,o=l[2]/100,d=c+o*(1-c),f=0;return d>0&&(f=c/d),[l[0],f*100,d*100]},h.hcg.hsl=function(l){var c=l[1]/100,o=l[2]/100,d=o*(1-c)+.5*c,f=0;return d>0&&d<.5?f=c/(2*d):d>=.5&&d<1&&(f=c/(2*(1-d))),[l[0],f*100,d*100]},h.hcg.hwb=function(l){var c=l[1]/100,o=l[2]/100,d=c+o*(1-c);return[l[0],(d-c)*100,(1-d)*100]},h.hwb.hcg=function(l){var c=l[1]/100,o=l[2]/100,d=1-o,f=d-c,y=0;return f<1&&(y=(d-f)/(1-f)),[l[0],f*100,y*100]},h.apple.rgb=function(l){return[l[0]/65535*255,l[1]/65535*255,l[2]/65535*255]},h.rgb.apple=function(l){return[l[0]/255*65535,l[1]/255*65535,l[2]/255*65535]},h.gray.rgb=function(l){return[l[0]/100*255,l[0]/100*255,l[0]/100*255]},h.gray.hsl=h.gray.hsv=function(l){return[0,0,l[0]]},h.gray.hwb=function(l){return[0,100,l[0]]},h.gray.cmyk=function(l){return[0,0,0,l[0]]},h.gray.lab=function(l){return[l[0],0,0]},h.gray.hex=function(l){var c=Math.round(l[0]/100*255)&255,o=(c<<16)+(c<<8)+c,d=o.toString(16).toUpperCase();return"000000".substring(d.length)+d},h.rgb.gray=function(l){var c=(l[0]+l[1]+l[2])/3;return[c/255*100]}}),Uu=j((e,a)=>{B();var n=ci();function s(){for(var r={},t=Object.keys(n),p=t.length,l=0;l<p;l++)r[t[l]]={distance:-1,parent:null};return r}function i(r){var t=s(),p=[r];for(t[r].distance=0;p.length;)for(var l=p.pop(),c=Object.keys(n[l]),o=c.length,d=0;d<o;d++){var f=c[d],y=t[f];y.distance===-1&&(y.distance=t[l].distance+1,y.parent=l,p.unshift(f))}return t}function h(r,t){return function(p){return t(r(p))}}function u(r,t){for(var p=[t[r].parent,r],l=n[t[r].parent][r],c=t[r].parent;t[c].parent;)p.unshift(t[c].parent),l=h(n[t[c].parent][c],l),c=t[c].parent;return l.conversion=p,l}a.exports=function(r){for(var t=i(r),p={},l=Object.keys(t),c=l.length,o=0;o<c;o++){var d=l[o],f=t[d];f.parent!==null&&(p[d]=u(d,t))}return p}}),Gu=j((e,a)=>{B();var n=ci(),s=Uu(),i={},h=Object.keys(n);function u(t){var p=function(l){return l==null?l:(arguments.length>1&&(l=Array.prototype.slice.call(arguments)),t(l))};return"conversion"in t&&(p.conversion=t.conversion),p}function r(t){var p=function(l){if(l==null)return l;arguments.length>1&&(l=Array.prototype.slice.call(arguments));var c=t(l);if(typeof c=="object")for(var o=c.length,d=0;d<o;d++)c[d]=Math.round(c[d]);return c};return"conversion"in t&&(p.conversion=t.conversion),p}h.forEach(function(t){i[t]={},Object.defineProperty(i[t],"channels",{value:n[t].channels}),Object.defineProperty(i[t],"labels",{value:n[t].labels});var p=s(t),l=Object.keys(p);l.forEach(function(c){var o=p[c];i[t][c]=r(o),i[t][c].raw=u(o)})}),a.exports=i}),qu=j((e,a)=>{"use strict";B();var n=Gu(),s=(r,t)=>function(){return`\x1B[${r.apply(n,arguments)+t}m`},i=(r,t)=>function(){let p=r.apply(n,arguments);return`\x1B[${38+t};5;${p}m`},h=(r,t)=>function(){let p=r.apply(n,arguments);return`\x1B[${38+t};2;${p[0]};${p[1]};${p[2]}m`};function u(){let r=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let c of Object.keys(t)){let o=t[c];for(let d of Object.keys(o)){let f=o[d];t[d]={open:`\x1B[${f[0]}m`,close:`\x1B[${f[1]}m`},o[d]=t[d],r.set(f[0],f[1])}Object.defineProperty(t,c,{value:o,enumerable:!1}),Object.defineProperty(t,"codes",{value:r,enumerable:!1})}let p=c=>c,l=(c,o,d)=>[c,o,d];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:s(p,0)},t.color.ansi256={ansi256:i(p,0)},t.color.ansi16m={rgb:h(l,0)},t.bgColor.ansi={ansi:s(p,10)},t.bgColor.ansi256={ansi256:i(p,10)},t.bgColor.ansi16m={rgb:h(l,10)};for(let c of Object.keys(n)){if(typeof n[c]!="object")continue;let o=n[c];c==="ansi16"&&(c="ansi"),"ansi16"in o&&(t.color.ansi[c]=s(o.ansi16,0),t.bgColor.ansi[c]=s(o.ansi16,10)),"ansi256"in o&&(t.color.ansi256[c]=i(o.ansi256,0),t.bgColor.ansi256[c]=i(o.ansi256,10)),"rgb"in o&&(t.color.ansi16m[c]=h(o.rgb,0),t.bgColor.ansi16m[c]=h(o.rgb,10))}return t}Object.defineProperty(a,"exports",{enumerable:!0,get:u})}),Wu=j((e,a)=>{"use strict";B(),a.exports=(n,s)=>{s=s||process.argv;let i=n.startsWith("-")?"":n.length===1?"-":"--",h=s.indexOf(i+n),u=s.indexOf("--");return h!==-1&&(u===-1?!0:h<u)}}),zu=j((e,a)=>{"use strict";B();var n=Z("os"),s=Wu(),i=process.env,h;s("no-color")||s("no-colors")||s("color=false")?h=!1:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(h=!0),"FORCE_COLOR"in i&&(h=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function u(p){return p===0?!1:{level:p,hasBasic:!0,has256:p>=2,has16m:p>=3}}function r(p){if(h===!1)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(p&&!p.isTTY&&h!==!0)return 0;let l=h?1:0;if(process.platform==="win32"){let c=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(c[0])>=10&&Number(c[2])>=10586?Number(c[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(c=>c in i)||i.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let c=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return c>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,l)}function t(p){let l=r(p);return u(l)}a.exports={supportsColor:t,stdout:t(process.stdout),stderr:t(process.stderr)}}),Vu=j((e,a)=>{"use strict";B();var n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,s=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,h=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,u=new Map([["n",`
|
|
7
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){return c[0]==="u"&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):u.get(c)||c}function t(c,o){let d=[],f=o.trim().split(/\s*,\s*/g),y;for(let b of f)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(h,(w,g,D)=>g?r(g):D));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${c}')`);return d}function p(c){s.lastIndex=0;let o=[],d;for(;(d=s.exec(c))!==null;){let f=d[1];if(d[2]){let y=t(f,d[2]);o.push([f].concat(y))}else o.push([f])}return o}function l(c,o){let d={};for(let y of o)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let f=c;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in f))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?f=f[y].apply(f,d[y]):f=f[y]}return f}a.exports=(c,o)=>{let d=[],f=[],y=[];if(o.replace(n,(b,w,g,D,E,v)=>{if(w)y.push(r(w));else if(D){let m=y.join("");y=[],f.push(d.length===0?m:l(c,d)(m)),d.push({inverse:g,styles:p(D)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");f.push(l(c,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),f.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return f.join("")}}),vt=j((e,a)=>{"use strict";B();var n=$u(),s=qu(),i=zu().stdout,h=Vu(),u=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],t=new Set(["gray"]),p=Object.create(null);function l(b,w){w=w||{};let g=i?i.level:0;b.level=w.level===void 0?g:w.level,b.enabled="enabled"in w?w.enabled:b.level>0}function c(b){if(!this||!(this instanceof c)||this.template){let w={};return l(w,b),w.template=function(){let g=[].slice.call(arguments);return y.apply(null,[w.template].concat(g))},Object.setPrototypeOf(w,c.prototype),Object.setPrototypeOf(w.template,w),w.template.constructor=c,w.template}l(this,b)}u&&(s.blue.open="\x1B[94m");for(let b of Object.keys(s))s[b].closeRe=new RegExp(n(s[b].close),"g"),p[b]={get(){let w=s[b];return d.call(this,this._styles?this._styles.concat(w):[w],this._empty,b)}};p.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},s.color.closeRe=new RegExp(n(s.color.close),"g");for(let b of Object.keys(s.color.ansi))t.has(b)||(p[b]={get(){let w=this.level;return function(){let g={open:s.color[r[w]][b].apply(null,arguments),close:s.color.close,closeRe:s.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(let b of Object.keys(s.bgColor.ansi)){if(t.has(b))continue;let w="bg"+b[0].toUpperCase()+b.slice(1);p[w]={get(){let g=this.level;return function(){let D={open:s.bgColor[r[g]][b].apply(null,arguments),close:s.bgColor.close,closeRe:s.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(D):[D],this._empty,b)}}}}var o=Object.defineProperties(()=>{},p);function d(b,w,g){let D=function(){return f.apply(D,arguments)};D._styles=b,D._empty=w;let E=this;return Object.defineProperty(D,"level",{enumerable:!0,get(){return E.level},set(v){E.level=v}}),Object.defineProperty(D,"enabled",{enumerable:!0,get(){return E.enabled},set(v){E.enabled=v}}),D.hasGrey=this.hasGrey||g==="gray"||g==="grey",D.__proto__=o,D}function f(){let b=arguments,w=b.length,g=String(arguments[0]);if(w===0)return"";if(w>1)for(let E=1;E<w;E++)g+=" "+b[E];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let D=s.dim.open;u&&this.hasGrey&&(s.dim.open="");for(let E of this._styles.slice().reverse())g=E.open+g.replace(E.closeRe,E.open)+E.close,g=g.replace(/\r?\n/g,`${E.close}$&${E.open}`);return s.dim.open=D,g}function y(b,w){if(!Array.isArray(w))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),D=[w.raw[0]];for(let E=1;E<w.length;E++)D.push(String(g[E-1]).replace(/[{}\\]/g,"\\$&")),D.push(String(w.raw[E]));return h(b,D.join(""))}Object.defineProperties(c.prototype,p),a.exports=c(),a.exports.supportsColor=i,a.exports.default=a.exports});var Ku=j((e,a)=>{B();var n=Z("constants"),s=process.cwd,i=null,h=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=s.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(u=process.chdir,process.chdir=function(t){i=null,u.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u));var u;a.exports=r;function r(t){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&p(t),t.lutimes||l(t),t.chown=d(t.chown),t.fchown=d(t.fchown),t.lchown=d(t.lchown),t.chmod=c(t.chmod),t.fchmod=c(t.fchmod),t.lchmod=c(t.lchmod),t.chownSync=f(t.chownSync),t.fchownSync=f(t.fchownSync),t.lchownSync=f(t.lchownSync),t.chmodSync=o(t.chmodSync),t.fchmodSync=o(t.fchmodSync),t.lchmodSync=o(t.lchmodSync),t.stat=y(t.stat),t.fstat=y(t.fstat),t.lstat=y(t.lstat),t.statSync=b(t.statSync),t.fstatSync=b(t.fstatSync),t.lstatSync=b(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(g,D,E){E&&process.nextTick(E)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(g,D,E,v){v&&process.nextTick(v)},t.lchownSync=function(){}),h==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(g){function D(E,v,m){var _=Date.now(),S=0;g(E,v,function A(x){if(x&&(x.code==="EACCES"||x.code==="EPERM"||x.code==="EBUSY")&&Date.now()-_<6e4){setTimeout(function(){t.stat(v,function(L,T){L&&L.code==="ENOENT"?g(E,v,A):m(x)})},S),S<100&&(S+=10);return}m&&m(x)})}return Object.setPrototypeOf&&Object.setPrototypeOf(D,g),D}(t.rename)),t.read=typeof t.read!="function"?t.read:function(g){function D(E,v,m,_,S,A){var x;if(A&&typeof A=="function"){var L=0;x=function(T,k,O){if(T&&T.code==="EAGAIN"&&L<10)return L++,g.call(t,E,v,m,_,S,x);A.apply(this,arguments)}}return g.call(t,E,v,m,_,S,x)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,g),D}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(g){return function(D,E,v,m,_){for(var S=0;;)try{return g.call(t,D,E,v,m,_)}catch(A){if(A.code==="EAGAIN"&&S<10){S++;continue}throw A}}}(t.readSync);function p(g){g.lchmod=function(D,E,v){g.open(D,n.O_WRONLY|n.O_SYMLINK,E,function(m,_){if(m){v&&v(m);return}g.fchmod(_,E,function(S){g.close(_,function(A){v&&v(S||A)})})})},g.lchmodSync=function(D,E){var v=g.openSync(D,n.O_WRONLY|n.O_SYMLINK,E),m=!0,_;try{_=g.fchmodSync(v,E),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return _}}function l(g){n.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(D,E,v,m){g.open(D,n.O_SYMLINK,function(_,S){if(_){m&&m(_);return}g.futimes(S,E,v,function(A){g.close(S,function(x){m&&m(A||x)})})})},g.lutimesSync=function(D,E,v){var m=g.openSync(D,n.O_SYMLINK),_,S=!0;try{_=g.futimesSync(m,E,v),S=!1}finally{if(S)try{g.closeSync(m)}catch{}else g.closeSync(m)}return _}):g.futimes&&(g.lutimes=function(D,E,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function c(g){return g&&function(D,E,v){return g.call(t,D,E,function(m){w(m)&&(m=null),v&&v.apply(this,arguments)})}}function o(g){return g&&function(D,E){try{return g.call(t,D,E)}catch(v){if(!w(v))throw v}}}function d(g){return g&&function(D,E,v,m){return g.call(t,D,E,v,function(_){w(_)&&(_=null),m&&m.apply(this,arguments)})}}function f(g){return g&&function(D,E,v){try{return g.call(t,D,E,v)}catch(m){if(!w(m))throw m}}}function y(g){return g&&function(D,E,v){typeof E=="function"&&(v=E,E=null);function m(_,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),v&&v.apply(this,arguments)}return E?g.call(t,D,E,m):g.call(t,D,m)}}function b(g){return g&&function(D,E){var v=E?g.call(t,D,E):g.call(t,D);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function w(g){if(!g||g.code==="ENOSYS")return!0;var D=!process.getuid||process.getuid()!==0;return!!(D&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),Yu=j((e,a)=>{B();var n=Z("stream").Stream;a.exports=s;function s(i){return{ReadStream:h,WriteStream:u};function h(r,t){if(!(this instanceof h))return new h(r,t);n.call(this);var p=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,t=t||{};for(var l=Object.keys(t),c=0,o=l.length;c<o;c++){var d=l[c];this[d]=t[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){p._read()});return}i.open(this.path,this.flags,this.mode,function(f,y){if(f){p.emit("error",f),p.readable=!1;return}p.fd=y,p.emit("open",y),p._read()})}function u(r,t){if(!(this instanceof u))return new u(r,t);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,t=t||{};for(var p=Object.keys(t),l=0,c=p.length;l<c;l++){var o=p[l];this[o]=t[o]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),Ju=j((e,a)=>{"use strict";B(),a.exports=s;var n=Object.getPrototypeOf||function(i){return i.__proto__};function s(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var h={__proto__:n(i)};else var h=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(u){Object.defineProperty(h,u,Object.getOwnPropertyDescriptor(i,u))}),h}}),xe=j((e,a)=>{B();var n=Z("fs"),s=Ku(),i=Yu(),h=Ju(),u=Z("util"),r,t;typeof Symbol=="function"&&typeof Symbol.for=="function"?(r=Symbol.for("graceful-fs.queue"),t=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",t="___graceful-fs.previous");function p(){}function l(g,D){Object.defineProperty(g,r,{get:function(){return D}})}var c=p;u.debuglog?c=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(c=function(){var g=u.format.apply(u,arguments);g="GFS4: "+g.split(/\n/).join(`
|
|
8
|
-
GFS4: `),console.error(g)}),n[r]||(o=global[r]||[],l(n,o),n.close=function(g){function D(E,v){return g.call(n,E,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(D,t,{value:g}),D}(n.close),n.closeSync=function(g){function D(E){g.apply(n,arguments),b()}return Object.defineProperty(D,t,{value:g}),D}(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){c(n[r]),Z("assert").equal(n[r].length,0)}));var o;global[r]||l(global,n[r]),a.exports=d(h(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(a.exports=d(n),n.__patched=!0);function d(g){s(g),g.gracefulify=d,g.createReadStream=F,g.createWriteStream=J;var D=g.readFile;g.readFile=E;function E(M,K,te){return typeof K=="function"&&(te=K,K=null),oe(M,K,te);function oe(ce,be,ye,H){return D(ce,be,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?f([oe,[ce,be,ye],V,H||Date.now(),Date.now()]):typeof ye=="function"&&ye.apply(this,arguments)})}}var v=g.writeFile;g.writeFile=m;function m(M,K,te,oe){return typeof te=="function"&&(oe=te,te=null),ce(M,K,te,oe);function ce(be,ye,H,V,C){return v(be,ye,H,function(W){W&&(W.code==="EMFILE"||W.code==="ENFILE")?f([ce,[be,ye,H,V],W,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var _=g.appendFile;_&&(g.appendFile=S);function S(M,K,te,oe){return typeof te=="function"&&(oe=te,te=null),ce(M,K,te,oe);function ce(be,ye,H,V,C){return _(be,ye,H,function(W){W&&(W.code==="EMFILE"||W.code==="ENFILE")?f([ce,[be,ye,H,V],W,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var A=g.copyFile;A&&(g.copyFile=x);function x(M,K,te,oe){return typeof te=="function"&&(oe=te,te=0),ce(M,K,te,oe);function ce(be,ye,H,V,C){return A(be,ye,H,function(W){W&&(W.code==="EMFILE"||W.code==="ENFILE")?f([ce,[be,ye,H,V],W,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var L=g.readdir;g.readdir=k;var T=/^v[0-5]\./;function k(M,K,te){typeof K=="function"&&(te=K,K=null);var oe=T.test(process.version)?function(be,ye,H,V){return L(be,ce(be,ye,H,V))}:function(be,ye,H,V){return L(be,ye,ce(be,ye,H,V))};return oe(M,K,te);function ce(be,ye,H,V){return function(C,W){C&&(C.code==="EMFILE"||C.code==="ENFILE")?f([oe,[be,ye,H],C,V||Date.now(),Date.now()]):(W&&W.sort&&W.sort(),typeof H=="function"&&H.call(this,C,W))}}}if(process.version.substr(0,4)==="v0.8"){var O=i(g);z=O.ReadStream,P=O.WriteStream}var I=g.ReadStream;I&&(z.prototype=Object.create(I.prototype),z.prototype.open=Q);var $=g.WriteStream;$&&(P.prototype=Object.create($.prototype),P.prototype.open=N),Object.defineProperty(g,"ReadStream",{get:function(){return z},set:function(M){z=M},enumerable:!0,configurable:!0}),Object.defineProperty(g,"WriteStream",{get:function(){return P},set:function(M){P=M},enumerable:!0,configurable:!0});var R=z;Object.defineProperty(g,"FileReadStream",{get:function(){return R},set:function(M){R=M},enumerable:!0,configurable:!0});var G=P;Object.defineProperty(g,"FileWriteStream",{get:function(){return G},set:function(M){G=M},enumerable:!0,configurable:!0});function z(M,K){return this instanceof z?(I.apply(this,arguments),this):z.apply(Object.create(z.prototype),arguments)}function Q(){var M=this;ee(M.path,M.flags,M.mode,function(K,te){K?(M.autoClose&&M.destroy(),M.emit("error",K)):(M.fd=te,M.emit("open",te),M.read())})}function P(M,K){return this instanceof P?($.apply(this,arguments),this):P.apply(Object.create(P.prototype),arguments)}function N(){var M=this;ee(M.path,M.flags,M.mode,function(K,te){K?(M.destroy(),M.emit("error",K)):(M.fd=te,M.emit("open",te))})}function F(M,K){return new g.ReadStream(M,K)}function J(M,K){return new g.WriteStream(M,K)}var q=g.open;g.open=ee;function ee(M,K,te,oe){return typeof te=="function"&&(oe=te,te=null),ce(M,K,te,oe);function ce(be,ye,H,V,C){return q(be,ye,H,function(W,X){W&&(W.code==="EMFILE"||W.code==="ENFILE")?f([ce,[be,ye,H,V],W,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return g}function f(g){c("ENQUEUE",g[0].name,g[1]),n[r].push(g),w()}var y;function b(){for(var g=Date.now(),D=0;D<n[r].length;++D)n[r][D].length>2&&(n[r][D][3]=g,n[r][D][4]=g);w()}function w(){if(clearTimeout(y),y=void 0,n[r].length!==0){var g=n[r].shift(),D=g[0],E=g[1],v=g[2],m=g[3],_=g[4];if(m===void 0)c("RETRY",D.name,E),D.apply(null,E);else if(Date.now()-m>=6e4){c("TIMEOUT",D.name,E);var S=E.pop();typeof S=="function"&&S.call(null,v)}else{var A=Date.now()-_,x=Math.max(_-m,1),L=Math.min(x*1.2,100);A>=L?(c("RETRY",D.name,E),D.apply(null,E.concat([m]))):n[r].push(g)}y===void 0&&(y=setTimeout(w,0))}}});var Je=j(e=>{"use strict";B(),e.fromCallback=function(a){return Object.defineProperty(function(...n){if(typeof n[n.length-1]=="function")a.apply(this,n);else return new Promise((s,i)=>{a.call(this,...n,(h,u)=>h!=null?i(h):s(u))})},"name",{value:a.name})},e.fromPromise=function(a){return Object.defineProperty(function(...n){let s=n[n.length-1];if(typeof s!="function")return a.apply(this,n);a.apply(this,n.slice(0,-1)).then(i=>s(null,i),s)},"name",{value:a.name})}}),xt=j(e=>{"use strict";B();var a=Je().fromCallback,n=xe(),s=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof n[i]=="function");Object.assign(e,n),s.forEach(i=>{e[i]=a(n[i])}),e.exists=function(i,h){return typeof h=="function"?n.exists(i,h):new Promise(u=>n.exists(i,u))},e.read=function(i,h,u,r,t,p){return typeof p=="function"?n.read(i,h,u,r,t,p):new Promise((l,c)=>{n.read(i,h,u,r,t,(o,d,f)=>{if(o)return c(o);l({bytesRead:d,buffer:f})})})},e.write=function(i,h,...u){return typeof u[u.length-1]=="function"?n.write(i,h,...u):new Promise((r,t)=>{n.write(i,h,...u,(p,l,c)=>{if(p)return t(p);r({bytesWritten:l,buffer:c})})})},e.readv=function(i,h,...u){return typeof u[u.length-1]=="function"?n.readv(i,h,...u):new Promise((r,t)=>{n.readv(i,h,...u,(p,l,c)=>{if(p)return t(p);r({bytesRead:l,buffers:c})})})},e.writev=function(i,h,...u){return typeof u[u.length-1]=="function"?n.writev(i,h,...u):new Promise((r,t)=>{n.writev(i,h,...u,(p,l,c)=>{if(p)return t(p);r({bytesWritten:l,buffers:c})})})},typeof n.realpath.native=="function"?e.realpath.native=a(n.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),Zu=j((e,a)=>{"use strict";B();var n=Z("path");a.exports.checkPath=function(s){if(process.platform==="win32"&&/[<>:"|?*]/.test(s.replace(n.parse(s).root,""))){let i=new Error(`Path contains invalid characters: ${s}`);throw i.code="EINVAL",i}}}),Xu=j((e,a)=>{"use strict";B();var n=xt(),{checkPath:s}=Zu(),i=h=>typeof h=="number"?h:{...{mode:511},...h}.mode;a.exports.makeDir=async(h,u)=>(s(h),n.mkdir(h,{mode:i(u),recursive:!0})),a.exports.makeDirSync=(h,u)=>(s(h),n.mkdirSync(h,{mode:i(u),recursive:!0}))}),nt=j((e,a)=>{"use strict";B();var n=Je().fromPromise,{makeDir:s,makeDirSync:i}=Xu(),h=n(s);a.exports={mkdirs:h,mkdirsSync:i,mkdirp:h,mkdirpSync:i,ensureDir:h,ensureDirSync:i}}),wt=j((e,a)=>{"use strict";B();var n=Je().fromPromise,s=xt();function i(h){return s.access(h).then(()=>!0).catch(()=>!1)}a.exports={pathExists:n(i),pathExistsSync:s.existsSync}}),hi=j((e,a)=>{"use strict";B();var n=xe();function s(h,u,r,t){n.open(h,"r+",(p,l)=>{if(p)return t(p);n.futimes(l,u,r,c=>{n.close(l,o=>{t&&t(c||o)})})})}function i(h,u,r){let t=n.openSync(h,"r+");return n.futimesSync(t,u,r),n.closeSync(t)}a.exports={utimesMillis:s,utimesMillisSync:i}}),kt=j((e,a)=>{"use strict";B();var n=xt(),s=Z("path"),i=Z("util");function h(f,y,b){let w=b.dereference?g=>n.stat(g,{bigint:!0}):g=>n.lstat(g,{bigint:!0});return Promise.all([w(f),w(y).catch(g=>{if(g.code==="ENOENT")return null;throw g})]).then(([g,D])=>({srcStat:g,destStat:D}))}function u(f,y,b){let w,g=b.dereference?E=>n.statSync(E,{bigint:!0}):E=>n.lstatSync(E,{bigint:!0}),D=g(f);try{w=g(y)}catch(E){if(E.code==="ENOENT")return{srcStat:D,destStat:null};throw E}return{srcStat:D,destStat:w}}function r(f,y,b,w,g){i.callbackify(h)(f,y,w,(D,E)=>{if(D)return g(D);let{srcStat:v,destStat:m}=E;if(m){if(c(v,m)){let _=s.basename(f),S=s.basename(y);return b==="move"&&_!==S&&_.toLowerCase()===S.toLowerCase()?g(null,{srcStat:v,destStat:m,isChangingCase:!0}):g(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return g(new Error(`Cannot overwrite non-directory '${y}' with directory '${f}'.`));if(!v.isDirectory()&&m.isDirectory())return g(new Error(`Cannot overwrite directory '${y}' with non-directory '${f}'.`))}return v.isDirectory()&&o(f,y)?g(new Error(d(f,y,b))):g(null,{srcStat:v,destStat:m})})}function t(f,y,b,w){let{srcStat:g,destStat:D}=u(f,y,w);if(D){if(c(g,D)){let E=s.basename(f),v=s.basename(y);if(b==="move"&&E!==v&&E.toLowerCase()===v.toLowerCase())return{srcStat:g,destStat:D,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(g.isDirectory()&&!D.isDirectory())throw new Error(`Cannot overwrite non-directory '${y}' with directory '${f}'.`);if(!g.isDirectory()&&D.isDirectory())throw new Error(`Cannot overwrite directory '${y}' with non-directory '${f}'.`)}if(g.isDirectory()&&o(f,y))throw new Error(d(f,y,b));return{srcStat:g,destStat:D}}function p(f,y,b,w,g){let D=s.resolve(s.dirname(f)),E=s.resolve(s.dirname(b));if(E===D||E===s.parse(E).root)return g();n.stat(E,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?g():g(v):c(y,m)?g(new Error(d(f,b,w))):p(f,y,E,w,g))}function l(f,y,b,w){let g=s.resolve(s.dirname(f)),D=s.resolve(s.dirname(b));if(D===g||D===s.parse(D).root)return;let E;try{E=n.statSync(D,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(c(y,E))throw new Error(d(f,b,w));return l(f,y,D,w)}function c(f,y){return y.ino&&y.dev&&y.ino===f.ino&&y.dev===f.dev}function o(f,y){let b=s.resolve(f).split(s.sep).filter(g=>g),w=s.resolve(y).split(s.sep).filter(g=>g);return b.reduce((g,D,E)=>g&&w[E]===D,!0)}function d(f,y,b){return`Cannot ${b} '${f}' to a subdirectory of itself, '${y}'.`}a.exports={checkPaths:r,checkPathsSync:t,checkParentPaths:p,checkParentPathsSync:l,isSrcSubdir:o,areIdentical:c}}),Qu=j((e,a)=>{"use strict";B();var n=xe(),s=Z("path"),i=nt().mkdirs,h=wt().pathExists,u=hi().utimesMillis,r=kt();function t(T,k,O,I){typeof O=="function"&&!I?(I=O,O={}):typeof O=="function"&&(O={filter:O}),I=I||function(){},O=O||{},O.clobber="clobber"in O?!!O.clobber:!0,O.overwrite="overwrite"in O?!!O.overwrite:O.clobber,O.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
10
|
+
`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Sb=b((z5,as)=>{"use strict";var os=require("path"),Ab=Mf(),xb=t=>{t={cwd:process.cwd(),path:process.env[Ab()],execPath:process.execPath,...t};let e,r=os.resolve(t.cwd),n=[];for(;e!==r;)n.push(os.join(r,"node_modules/.bin")),e=r,r=os.resolve(r,"..");let i=os.resolve(t.cwd,t.execPath,"..");return n.push(i),n.concat(t.path).join(os.delimiter)};as.exports=xb;as.exports.default=xb;as.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=Ab({env:e});return t.path=e[r],e[r]=as.exports(t),e}});var Cb=b(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.SIGNALS=void 0;var v2=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];ra.SIGNALS=v2});var zf=b(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.SIGRTMAX=Qn.getRealtimeSignals=void 0;var R2=function(){let t=Rb-vb+1;return Array.from({length:t},F2)};Qn.getRealtimeSignals=R2;var F2=function(t,e){return{name:`SIGRT${e+1}`,number:vb+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},vb=34,Rb=64;Qn.SIGRTMAX=Rb});var Fb=b(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.getSignals=void 0;var T2=require("os"),O2=Cb(),k2=zf(),P2=function(){let t=(0,k2.getRealtimeSignals)();return[...O2.SIGNALS,...t].map(B2)};na.getSignals=P2;var B2=function({name:t,number:e,description:r,action:n,forced:i=!1,standard:s}){let{signals:{[t]:o}}=T2.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:n,forced:i,standard:s}}});var Ob=b(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.signalsByNumber=ei.signalsByName=void 0;var I2=require("os"),Tb=Fb(),L2=zf(),N2=function(){return(0,Tb.getSignals)().reduce(M2,{})},M2=function(t,{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}){return{...t,[e]:{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}}},q2=N2();ei.signalsByName=q2;var H2=function(){let t=(0,Tb.getSignals)(),e=L2.SIGRTMAX+1,r=Array.from({length:e},(n,i)=>j2(i,t));return Object.assign({},...r)},j2=function(t,e){let r=$2(t,e);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:a,standard:u}=r;return{[t]:{name:n,number:t,description:i,supported:s,action:o,forced:a,standard:u}}},$2=function(t,e){let r=e.find(({name:n})=>I2.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},U2=H2();ei.signalsByNumber=U2});var Pb=b((X5,kb)=>{"use strict";var{signalsByName:G2}=Ob(),W2=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",z2=({stdout:t,stderr:e,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:a,timedOut:u,isCanceled:c,killed:l,parsed:{options:{timeout:f}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let h=i===void 0?void 0:G2[i].description,p=n&&n.code,_=`Command ${W2({timedOut:u,timeout:f,errorCode:p,signal:i,signalDescription:h,exitCode:s,isCanceled:c})}: ${o}`,g=Object.prototype.toString.call(n)==="[object Error]",D=g?`${_}
|
|
11
|
+
${n.message}`:_,C=[D,e,t].filter(Boolean).join(`
|
|
12
|
+
`);return g?(n.originalMessage=n.message,n.message=C):n=new Error(C),n.shortMessage=D,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=h,n.stdout=t,n.stderr=e,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!u,n.isCanceled=c,n.killed=l&&!u,n};kb.exports=z2});var Ib=b((Z5,Vf)=>{"use strict";var ia=["stdin","stdout","stderr"],V2=t=>ia.some(e=>t[e]!==void 0),Bb=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return ia.map(n=>t[n]);if(V2(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${ia.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,ia.length);return Array.from({length:r},(n,i)=>e[i])};Vf.exports=Bb;Vf.exports.node=t=>{let e=Bb(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var Nb=b((Q5,Lb)=>{"use strict";var Y2=require("os"),K2=Df(),J2=1e3*5,X2=(t,e="SIGTERM",r={})=>{let n=t(e);return Z2(t,e,r,n),n},Z2=(t,e,r,n)=>{if(!Q2(e,r,n))return;let i=tB(r),s=setTimeout(()=>{t("SIGKILL")},i);s.unref&&s.unref()},Q2=(t,{forceKillAfterTimeout:e},r)=>eB(t)&&e!==!1&&r,eB=t=>t===Y2.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",tB=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return J2;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},rB=(t,e)=>{t.kill()&&(e.isCanceled=!0)},nB=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},iB=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let i,s=new Promise((a,u)=>{i=setTimeout(()=>{nB(t,r,u)},e)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},sB=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},oB=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let i=K2(()=>{t.kill()});return n.finally(()=>{i()})};Lb.exports={spawnedKill:X2,spawnedCancel:rB,setupTimeout:iB,validateTimeout:sB,setExitHandler:oB}});var qb=b((eH,Mb)=>{"use strict";var Ht=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Ht.writable=t=>Ht(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Ht.readable=t=>Ht(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Ht.duplex=t=>Ht.writable(t)&&Ht.readable(t);Ht.transform=t=>Ht.duplex(t)&&typeof t._transform=="function";Mb.exports=Ht});var jb=b((tH,Hb)=>{"use strict";var{PassThrough:aB}=require("stream");Hb.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new aB({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),i?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var $b=b((rH,us)=>{"use strict";var{constants:uB}=require("buffer"),cB=require("stream"),{promisify:lB}=require("util"),fB=jb(),hB=lB(cB.pipeline),sa=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Yf(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=fB(e);return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=uB.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};(async()=>{try{await hB(t,n),i()}catch(a){o(a)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new sa)})}),n.getBufferedValue()}us.exports=Yf;us.exports.buffer=(t,e)=>Yf(t,{...e,encoding:"buffer"});us.exports.array=(t,e)=>Yf(t,{...e,array:!0});us.exports.MaxBufferError=sa});var Gb=b((nH,Ub)=>{"use strict";var{PassThrough:dB}=require("stream");Ub.exports=function(){var t=[],e=new dB({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",i.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function n(){return t.length==0}function i(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var Yb=b((iH,Vb)=>{"use strict";var zb=qb(),Wb=$b(),pB=Gb(),mB=(t,e)=>{e===void 0||t.stdin===void 0||(zb(e)?e.pipe(t.stdin):t.stdin.end(e))},gB=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=pB();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Kf=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Jf=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?Wb(t,{encoding:e,maxBuffer:n}):Wb.buffer(t,{maxBuffer:n})},yB=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let a=Jf(t,{encoding:n,buffer:i,maxBuffer:s}),u=Jf(e,{encoding:n,buffer:i,maxBuffer:s}),c=Jf(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,a,u,c])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},Kf(t,a),Kf(e,u),Kf(r,c)])}},_B=({input:t})=>{if(zb(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Vb.exports={handleInput:mB,makeAllStream:gB,getSpawnedResult:yB,validateInputSync:_B}});var Jb=b((sH,Kb)=>{"use strict";var EB=(async()=>{})().constructor.prototype,bB=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(EB,t)]),DB=(t,e)=>{for(let[r,n]of bB){let i=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}return t},wB=t=>new Promise((e,r)=>{t.on("exit",(n,i)=>{e({exitCode:n,signal:i})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});Kb.exports={mergePromise:DB,getSpawnedPromise:wB}});var Qb=b((oH,Zb)=>{"use strict";var Xb=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],AB=/^[\w.-]+$/,xB=/"/g,SB=t=>typeof t!="string"||AB.test(t)?t:`"${t.replace(xB,'\\"')}"`,CB=(t,e)=>Xb(t,e).join(" "),vB=(t,e)=>Xb(t,e).map(r=>SB(r)).join(" "),RB=/ +/g,FB=t=>{let e=[];for(let r of t.trim().split(RB)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};Zb.exports={joinCommand:CB,getEscapedCommand:vB,parseCommand:FB}});var oD=b((aH,ti)=>{"use strict";var TB=require("path"),Xf=require("child_process"),OB=bb(),kB=wb(),PB=Sb(),BB=_f(),oa=Pb(),tD=Ib(),{spawnedKill:IB,spawnedCancel:LB,setupTimeout:NB,validateTimeout:MB,setExitHandler:qB}=Nb(),{handleInput:HB,getSpawnedResult:jB,makeAllStream:$B,validateInputSync:UB}=Yb(),{mergePromise:eD,getSpawnedPromise:GB}=Jb(),{joinCommand:rD,parseCommand:nD,getEscapedCommand:iD}=Qb(),WB=1e3*1e3*100,zB=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{let s=e?{...process.env,...t}:t;return r?PB.env({env:s,cwd:n,execPath:i}):s},sD=(t,e,r={})=>{let n=OB._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r={maxBuffer:WB,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r},r.env=zB(r),r.stdio=tD(r),process.platform==="win32"&&TB.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},cs=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?kB(e):e,aa=(t,e,r)=>{let n=sD(t,e,r),i=rD(t,e),s=iD(t,e);MB(n.options);let o;try{o=Xf.spawn(n.file,n.args,n.options)}catch(p){let m=new Xf.ChildProcess,_=Promise.reject(oa({error:p,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return eD(m,_)}let a=GB(o),u=NB(o,n.options,a),c=qB(o,n.options,u),l={isCanceled:!1};o.kill=IB.bind(null,o.kill.bind(o)),o.cancel=LB.bind(null,o,l);let h=BB(async()=>{let[{error:p,exitCode:m,signal:_,timedOut:g},D,C,q]=await jB(o,n.options,c),$=cs(n.options,D),N=cs(n.options,C),K=cs(n.options,q);if(p||m!==0||_!==null){let z=oa({error:p,exitCode:m,signal:_,stdout:$,stderr:N,all:K,command:i,escapedCommand:s,parsed:n,timedOut:g,isCanceled:l.isCanceled,killed:o.killed});if(!n.options.reject)return z;throw z}return{command:i,escapedCommand:s,exitCode:0,stdout:$,stderr:N,all:K,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return HB(o,n.options.input),o.all=$B(o,n.options),eD(o,h)};ti.exports=aa;ti.exports.sync=(t,e,r)=>{let n=sD(t,e,r),i=rD(t,e),s=iD(t,e);UB(n.options);let o;try{o=Xf.spawnSync(n.file,n.args,n.options)}catch(c){throw oa({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=cs(n.options,o.stdout,o.error),u=cs(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=oa({stdout:a,stderr:u,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:s,exitCode:0,stdout:a,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};ti.exports.command=(t,e)=>{let[r,...n]=nD(t);return aa(r,n,e)};ti.exports.commandSync=(t,e)=>{let[r,...n]=nD(t);return aa.sync(r,n,e)};ti.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=tD.node(r),i=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return aa(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var ri=b((hH,cD)=>{"use strict";var uD=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);cD.exports=t=>t?Object.keys(t).map(e=>[uD.has(e)?uD.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var pa=b((dH,_D)=>{"use strict";var lD=typeof process=="object"&&process?process:{stdout:null,stderr:null},JB=require("events"),fD=require("stream"),hD=require("string_decoder").StringDecoder,sr=Symbol("EOF"),or=Symbol("maybeEmitEnd"),Br=Symbol("emittedEnd"),ca=Symbol("emittingEnd"),fs=Symbol("emittedError"),la=Symbol("closed"),dD=Symbol("read"),fa=Symbol("flush"),pD=Symbol("flushChunk"),Qe=Symbol("encoding"),ar=Symbol("decoder"),ha=Symbol("flowing"),hs=Symbol("paused"),ni=Symbol("resume"),Ae=Symbol("buffer"),jt=Symbol("pipes"),Oe=Symbol("bufferLength"),th=Symbol("bufferPush"),rh=Symbol("bufferShift"),je=Symbol("objectMode"),$e=Symbol("destroyed"),nh=Symbol("emitData"),mD=Symbol("emitEnd"),ih=Symbol("emitEnd2"),ur=Symbol("async"),ds=t=>Promise.resolve().then(t),gD=global._MP_NO_ITERATOR_SYMBOLS_!=="1",XB=gD&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),ZB=gD&&Symbol.iterator||Symbol("iterator not implemented"),QB=t=>t==="end"||t==="finish"||t==="prefinish",eI=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,tI=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),da=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[ni](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},sh=class extends da{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};_D.exports=class yD extends fD{constructor(e){super(),this[ha]=!1,this[hs]=!1,this[jt]=[],this[Ae]=[],this[je]=e&&e.objectMode||!1,this[je]?this[Qe]=null:this[Qe]=e&&e.encoding||null,this[Qe]==="buffer"&&(this[Qe]=null),this[ur]=e&&!!e.async||!1,this[ar]=this[Qe]?new hD(this[Qe]):null,this[sr]=!1,this[Br]=!1,this[ca]=!1,this[la]=!1,this[fs]=null,this.writable=!0,this.readable=!0,this[Oe]=0,this[$e]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Ae]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[jt]})}get bufferLength(){return this[Oe]}get encoding(){return this[Qe]}set encoding(e){if(this[je])throw new Error("cannot set encoding in objectMode");if(this[Qe]&&e!==this[Qe]&&(this[ar]&&this[ar].lastNeed||this[Oe]))throw new Error("cannot change encoding");this[Qe]!==e&&(this[ar]=e?new hD(e):null,this[Ae].length&&(this[Ae]=this[Ae].map(r=>this[ar].write(r)))),this[Qe]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[je]}set objectMode(e){this[je]=this[je]||!!e}get async(){return this[ur]}set async(e){this[ur]=this[ur]||!!e}write(e,r,n){if(this[sr])throw new Error("write after end");if(this[$e])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[ur]?ds:s=>s();return!this[je]&&!Buffer.isBuffer(e)&&(tI(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):eI(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[je]?(this.flowing&&this[Oe]!==0&&this[fa](!0),this.flowing?this.emit("data",e):this[th](e),this[Oe]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[Qe]&&!this[ar].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Qe]&&(e=this[ar].write(e)),this.flowing&&this[Oe]!==0&&this[fa](!0),this.flowing?this.emit("data",e):this[th](e),this[Oe]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Oe]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[$e])return null;if(this[Oe]===0||e===0||e>this[Oe])return this[or](),null;this[je]&&(e=null),this[Ae].length>1&&!this[je]&&(this.encoding?this[Ae]=[this[Ae].join("")]:this[Ae]=[Buffer.concat(this[Ae],this[Oe])]);let r=this[dD](e||null,this[Ae][0]);return this[or](),r}[dD](e,r){return e===r.length||e===null?this[rh]():(this[Ae][0]=r.slice(e),r=r.slice(0,e),this[Oe]-=e),this.emit("data",r),!this[Ae].length&&!this[sr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[sr]=!0,this.writable=!1,(this.flowing||!this[hs])&&this[or](),this}[ni](){this[$e]||(this[hs]=!1,this[ha]=!0,this.emit("resume"),this[Ae].length?this[fa]():this[sr]?this[or]():this.emit("drain"))}resume(){return this[ni]()}pause(){this[ha]=!1,this[hs]=!0}get destroyed(){return this[$e]}get flowing(){return this[ha]}get paused(){return this[hs]}[th](e){this[je]?this[Oe]+=1:this[Oe]+=e.length,this[Ae].push(e)}[rh](){return this[Ae].length&&(this[je]?this[Oe]-=1:this[Oe]-=this[Ae][0].length),this[Ae].shift()}[fa](e){do;while(this[pD](this[rh]()));!e&&!this[Ae].length&&!this[sr]&&this.emit("drain")}[pD](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[$e])return;let n=this[Br];return r=r||{},e===lD.stdout||e===lD.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[jt].push(r.proxyErrors?new sh(this,e,r):new da(this,e,r)),this[ur]?ds(()=>this[ni]()):this[ni]()),e}unpipe(e){let r=this[jt].find(n=>n.dest===e);r&&(this[jt].splice(this[jt].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this[jt].length&&!this.flowing?this[ni]():e==="readable"&&this[Oe]!==0?super.emit("readable"):QB(e)&&this[Br]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[fs]&&(this[ur]?ds(()=>r.call(this,this[fs])):r.call(this,this[fs])),n}get emittedEnd(){return this[Br]}[or](){!this[ca]&&!this[Br]&&!this[$e]&&this[Ae].length===0&&this[sr]&&(this[ca]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[la]&&this.emit("close"),this[ca]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==$e&&this[$e])return;if(e==="data")return r?this[ur]?ds(()=>this[nh](r)):this[nh](r):!1;if(e==="end")return this[mD]();if(e==="close"){if(this[la]=!0,!this[Br]&&!this[$e])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[fs]=r;let s=super.emit("error",r);return this[or](),s}else if(e==="resume"){let s=super.emit("resume");return this[or](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[or](),i}[nh](e){for(let n of this[jt])n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[or](),r}[mD](){this[Br]||(this[Br]=!0,this.readable=!1,this[ur]?ds(()=>this[ih]()):this[ih]())}[ih](){if(this[ar]){let r=this[ar].end();if(r){for(let n of this[jt])n.dest.write(r);super.emit("data",r)}}for(let r of this[jt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[je]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[je]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[je]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[je]?Promise.reject(new Error("cannot concat in objectMode")):this[Qe]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on($e,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[XB](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[sr])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:c,done:!!this[sr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once($e,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[ZB](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[$e]?(e?this.emit("error",e):this.emit($e),this):(this[$e]=!0,this[Ae].length=0,this[Oe]=0,typeof this.close=="function"&&!this[la]&&this.close(),e?this.emit("error",e):this.emit($e),this)}static isStream(e){return!!e&&(e instanceof yD||e instanceof fD||e instanceof JB&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var bD=b((pH,ED)=>{var rI=require("zlib").constants||{ZLIB_VERNUM:4736};ED.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},rI))});var fh=b((mH,FD)=>{"use strict";var DD=typeof process=="object"&&process?process:{stdout:null,stderr:null},nI=require("events"),wD=require("stream"),AD=require("string_decoder").StringDecoder,cr=Symbol("EOF"),lr=Symbol("maybeEmitEnd"),Ir=Symbol("emittedEnd"),ma=Symbol("emittingEnd"),ps=Symbol("emittedError"),ga=Symbol("closed"),xD=Symbol("read"),ya=Symbol("flush"),SD=Symbol("flushChunk"),et=Symbol("encoding"),fr=Symbol("decoder"),_a=Symbol("flowing"),ms=Symbol("paused"),ii=Symbol("resume"),ke=Symbol("bufferLength"),oh=Symbol("bufferPush"),ah=Symbol("bufferShift"),Ue=Symbol("objectMode"),Ge=Symbol("destroyed"),uh=Symbol("emitData"),CD=Symbol("emitEnd"),ch=Symbol("emitEnd2"),hr=Symbol("async"),gs=t=>Promise.resolve().then(t),vD=global._MP_NO_ITERATOR_SYMBOLS_!=="1",iI=vD&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),sI=vD&&Symbol.iterator||Symbol("iterator not implemented"),oI=t=>t==="end"||t==="finish"||t==="prefinish",aI=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,uI=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Ea=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[ii](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},lh=class extends Ea{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};FD.exports=class RD extends wD{constructor(e){super(),this[_a]=!1,this[ms]=!1,this.pipes=[],this.buffer=[],this[Ue]=e&&e.objectMode||!1,this[Ue]?this[et]=null:this[et]=e&&e.encoding||null,this[et]==="buffer"&&(this[et]=null),this[hr]=e&&!!e.async||!1,this[fr]=this[et]?new AD(this[et]):null,this[cr]=!1,this[Ir]=!1,this[ma]=!1,this[ga]=!1,this[ps]=null,this.writable=!0,this.readable=!0,this[ke]=0,this[Ge]=!1}get bufferLength(){return this[ke]}get encoding(){return this[et]}set encoding(e){if(this[Ue])throw new Error("cannot set encoding in objectMode");if(this[et]&&e!==this[et]&&(this[fr]&&this[fr].lastNeed||this[ke]))throw new Error("cannot change encoding");this[et]!==e&&(this[fr]=e?new AD(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[fr].write(r)))),this[et]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ue]}set objectMode(e){this[Ue]=this[Ue]||!!e}get async(){return this[hr]}set async(e){this[hr]=this[hr]||!!e}write(e,r,n){if(this[cr])throw new Error("write after end");if(this[Ge])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[hr]?gs:s=>s();return!this[Ue]&&!Buffer.isBuffer(e)&&(uI(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):aI(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Ue]?(this.flowing&&this[ke]!==0&&this[ya](!0),this.flowing?this.emit("data",e):this[oh](e),this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[et]&&!this[fr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[et]&&(e=this[fr].write(e)),this.flowing&&this[ke]!==0&&this[ya](!0),this.flowing?this.emit("data",e):this[oh](e),this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[Ge])return null;if(this[ke]===0||e===0||e>this[ke])return this[lr](),null;this[Ue]&&(e=null),this.buffer.length>1&&!this[Ue]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[ke])]);let r=this[xD](e||null,this.buffer[0]);return this[lr](),r}[xD](e,r){return e===r.length||e===null?this[ah]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[ke]-=e),this.emit("data",r),!this.buffer.length&&!this[cr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[cr]=!0,this.writable=!1,(this.flowing||!this[ms])&&this[lr](),this}[ii](){this[Ge]||(this[ms]=!1,this[_a]=!0,this.emit("resume"),this.buffer.length?this[ya]():this[cr]?this[lr]():this.emit("drain"))}resume(){return this[ii]()}pause(){this[_a]=!1,this[ms]=!0}get destroyed(){return this[Ge]}get flowing(){return this[_a]}get paused(){return this[ms]}[oh](e){this[Ue]?this[ke]+=1:this[ke]+=e.length,this.buffer.push(e)}[ah](){return this.buffer.length&&(this[Ue]?this[ke]-=1:this[ke]-=this.buffer[0].length),this.buffer.shift()}[ya](e){do;while(this[SD](this[ah]()));!e&&!this.buffer.length&&!this[cr]&&this.emit("drain")}[SD](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ge])return;let n=this[Ir];return r=r||{},e===DD.stdout||e===DD.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this.pipes.push(r.proxyErrors?new lh(this,e,r):new Ea(this,e,r)),this[hr]?gs(()=>this[ii]()):this[ii]()),e}unpipe(e){let r=this.pipes.find(n=>n.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[ii]():e==="readable"&&this[ke]!==0?super.emit("readable"):oI(e)&&this[Ir]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[ps]&&(this[hr]?gs(()=>r.call(this,this[ps])):r.call(this,this[ps])),n}get emittedEnd(){return this[Ir]}[lr](){!this[ma]&&!this[Ir]&&!this[Ge]&&this.buffer.length===0&&this[cr]&&(this[ma]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ga]&&this.emit("close"),this[ma]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==Ge&&this[Ge])return;if(e==="data")return r?this[hr]?gs(()=>this[uh](r)):this[uh](r):!1;if(e==="end")return this[CD]();if(e==="close"){if(this[ga]=!0,!this[Ir]&&!this[Ge])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[ps]=r;let s=super.emit("error",r);return this[lr](),s}else if(e==="resume"){let s=super.emit("resume");return this[lr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[lr](),i}[uh](e){for(let n of this.pipes)n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[lr](),r}[CD](){this[Ir]||(this[Ir]=!0,this.readable=!1,this[hr]?gs(()=>this[ch]()):this[ch]())}[ch](){if(this[fr]){let r=this[fr].end();if(r){for(let n of this.pipes)n.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Ue]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[Ue]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[Ue]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Ue]?Promise.reject(new Error("cannot concat in objectMode")):this[et]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Ge,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[iI](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[cr])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:c,done:!!this[cr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(Ge,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[sI](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ge]?(e?this.emit("error",e):this.emit(Ge),this):(this[Ge]=!0,this.buffer.length=0,this[ke]=0,typeof this.close=="function"&&!this[ga]&&this.close(),e?this.emit("error",e):this.emit(Ge),this)}static isStream(e){return!!e&&(e instanceof RD||e instanceof wD||e instanceof nI&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var vh=b(at=>{"use strict";var gh=require("assert"),Lr=require("buffer").Buffer,kD=require("zlib"),hn=at.constants=bD(),cI=fh(),TD=Lr.concat,dn=Symbol("_superWrite"),oi=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},lI=Symbol("opts"),ys=Symbol("flushFlag"),OD=Symbol("finishFlushFlag"),Ch=Symbol("fullFlushFlag"),fe=Symbol("handle"),ba=Symbol("onError"),si=Symbol("sawError"),hh=Symbol("level"),dh=Symbol("strategy"),ph=Symbol("ended"),gH=Symbol("_defaultFullFlush"),Da=class extends cI{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[si]=!1,this[ph]=!1,this[lI]=e,this[ys]=e.flush,this[OD]=e.finishFlush;try{this[fe]=new kD[r](e)}catch(n){throw new oi(n)}this[ba]=n=>{this[si]||(this[si]=!0,this.close(),this.emit("error",n))},this[fe].on("error",n=>this[ba](new oi(n))),this.once("end",()=>this.close)}close(){this[fe]&&(this[fe].close(),this[fe]=null,this.emit("close"))}reset(){if(!this[si])return gh(this[fe],"zlib binding closed"),this[fe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[Ch]),this.write(Object.assign(Lr.alloc(0),{[ys]:e})))}end(e,r,n){return e&&this.write(e,r),this.flush(this[OD]),this[ph]=!0,super.end(null,null,n)}get ended(){return this[ph]}write(e,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof e=="string"&&(e=Lr.from(e,r)),this[si])return;gh(this[fe],"zlib binding closed");let i=this[fe]._handle,s=i.close;i.close=()=>{};let o=this[fe].close;this[fe].close=()=>{},Lr.concat=c=>c;let a;try{let c=typeof e[ys]=="number"?e[ys]:this[ys];a=this[fe]._processChunk(e,c),Lr.concat=TD}catch(c){Lr.concat=TD,this[ba](new oi(c))}finally{this[fe]&&(this[fe]._handle=i,i.close=s,this[fe].close=o,this[fe].removeAllListeners("error"))}this[fe]&&this[fe].on("error",c=>this[ba](new oi(c)));let u;if(a)if(Array.isArray(a)&&a.length>0){u=this[dn](Lr.from(a[0]));for(let c=1;c<a.length;c++)u=this[dn](a[c])}else u=this[dn](Lr.from(a));return n&&n(),u}[dn](e){return super.write(e)}},dr=class extends Da{constructor(e,r){e=e||{},e.flush=e.flush||hn.Z_NO_FLUSH,e.finishFlush=e.finishFlush||hn.Z_FINISH,super(e,r),this[Ch]=hn.Z_FULL_FLUSH,this[hh]=e.level,this[dh]=e.strategy}params(e,r){if(!this[si]){if(!this[fe])throw new Error("cannot switch params when binding is closed");if(!this[fe].params)throw new Error("not supported in this implementation");if(this[hh]!==e||this[dh]!==r){this.flush(hn.Z_SYNC_FLUSH),gh(this[fe],"zlib binding closed");let n=this[fe].flush;this[fe].flush=(i,s)=>{this.flush(i),s()};try{this[fe].params(e,r)}finally{this[fe].flush=n}this[fe]&&(this[hh]=e,this[dh]=r)}}}},yh=class extends dr{constructor(e){super(e,"Deflate")}},_h=class extends dr{constructor(e){super(e,"Inflate")}},mh=Symbol("_portable"),Eh=class extends dr{constructor(e){super(e,"Gzip"),this[mh]=e&&!!e.portable}[dn](e){return this[mh]?(this[mh]=!1,e[9]=255,super[dn](e)):super[dn](e)}},bh=class extends dr{constructor(e){super(e,"Gunzip")}},Dh=class extends dr{constructor(e){super(e,"DeflateRaw")}},wh=class extends dr{constructor(e){super(e,"InflateRaw")}},Ah=class extends dr{constructor(e){super(e,"Unzip")}},wa=class extends Da{constructor(e,r){e=e||{},e.flush=e.flush||hn.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||hn.BROTLI_OPERATION_FINISH,super(e,r),this[Ch]=hn.BROTLI_OPERATION_FLUSH}},xh=class extends wa{constructor(e){super(e,"BrotliCompress")}},Sh=class extends wa{constructor(e){super(e,"BrotliDecompress")}};at.Deflate=yh;at.Inflate=_h;at.Gzip=Eh;at.Gunzip=bh;at.DeflateRaw=Dh;at.InflateRaw=wh;at.Unzip=Ah;typeof kD.BrotliCompress=="function"?(at.BrotliCompress=xh,at.BrotliDecompress=Sh):at.BrotliCompress=at.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var ai=b((EH,PD)=>{var fI=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;PD.exports=fI!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Aa=b((DH,BD)=>{"use strict";var hI=pa(),Rh=ai(),Fh=Symbol("slurp");BD.exports=class extends hI{constructor(e,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=Rh(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=Rh(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[Fh](r),n&&this[Fh](n,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(e):super.write(e.slice(0,n))}[Fh](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?Rh(e[n]):e[n])}}});var Th=b(xa=>{"use strict";xa.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);xa.code=new Map(Array.from(xa.name).map(t=>[t[1],t[0]]))});var MD=b((AH,ND)=>{"use strict";var dI=(t,e)=>{if(Number.isSafeInteger(t))t<0?mI(t,e):pI(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},pI=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},mI=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var n=e.length;n>1;n--){var i=t&255;t=Math.floor(t/256),r?e[n-1]=ID(i):i===0?e[n-1]=0:(r=!0,e[n-1]=LD(i))}},gI=t=>{let e=t[0],r=e===128?_I(t.slice(1,t.length)):e===255?yI(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},yI=t=>{for(var e=t.length,r=0,n=!1,i=e-1;i>-1;i--){var s=t[i],o;n?o=ID(s):s===0?o=s:(n=!0,o=LD(s)),o!==0&&(r-=o*Math.pow(256,e-i-1))}return r},_I=t=>{for(var e=t.length,r=0,n=e-1;n>-1;n--){var i=t[n];i!==0&&(r+=i*Math.pow(256,e-n-1))}return r},ID=t=>(255^t)&255,LD=t=>(255^t)+1&255;ND.exports={encode:dI,parse:gI}});var ci=b((xH,HD)=>{"use strict";var Oh=Th(),ui=require("path").posix,qD=MD(),kh=Symbol("slurp"),ut=Symbol("type"),Ih=class{constructor(e,r,n,i){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[ut]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,n,i):e&&this.set(e)}decode(e,r,n,i){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=pn(e,r,100),this.mode=Nr(e,r+100,8),this.uid=Nr(e,r+108,8),this.gid=Nr(e,r+116,8),this.size=Nr(e,r+124,12),this.mtime=Ph(e,r+136,12),this.cksum=Nr(e,r+148,12),this[kh](n),this[kh](i,!0),this[ut]=pn(e,r+156,1),this[ut]===""&&(this[ut]="0"),this[ut]==="0"&&this.path.slice(-1)==="/"&&(this[ut]="5"),this[ut]==="5"&&(this.size=0),this.linkpath=pn(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=pn(e,r+265,32),this.gname=pn(e,r+297,32),this.devmaj=Nr(e,r+329,8),this.devmin=Nr(e,r+337,8),e[r+475]!==0){let o=pn(e,r+345,155);this.path=o+"/"+this.path}else{let o=pn(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Ph(e,r+476,12),this.ctime=Ph(e,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=e[o];for(let o=r+156;o<r+512;o++)s+=e[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[kh](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=e[n])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=EI(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=mn(e,r,100,s)||this.needPax,this.needPax=Mr(e,r+100,8,this.mode)||this.needPax,this.needPax=Mr(e,r+108,8,this.uid)||this.needPax,this.needPax=Mr(e,r+116,8,this.gid)||this.needPax,this.needPax=Mr(e,r+124,12,this.size)||this.needPax,this.needPax=Bh(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[ut].charCodeAt(0),this.needPax=mn(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=mn(e,r+265,32,this.uname)||this.needPax,this.needPax=mn(e,r+297,32,this.gname)||this.needPax,this.needPax=Mr(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Mr(e,r+337,8,this.devmin)||this.needPax,this.needPax=mn(e,r+345,n,o)||this.needPax,e[r+475]!==0?this.needPax=mn(e,r+345,155,o)||this.needPax:(this.needPax=mn(e,r+345,130,o)||this.needPax,this.needPax=Bh(e,r+476,12,this.atime)||this.needPax,this.needPax=Bh(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let u=r;u<r+148;u++)a+=e[u];for(let u=r+156;u<r+512;u++)a+=e[u];return this.cksum=a,Mr(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return Oh.name.get(this[ut])||this[ut]}get typeKey(){return this[ut]}set type(e){Oh.code.has(e)?this[ut]=Oh.code.get(e):this[ut]=e}},EI=(t,e)=>{let n=t,i="",s,o=ui.parse(t).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=ui.dirname(n),n=ui.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=e?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=e?s=[n.slice(0,100-1),i,!0]:(n=ui.join(ui.basename(i),n),i=ui.dirname(i));while(i!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},pn=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Ph=(t,e,r)=>bI(Nr(t,e,r)),bI=t=>t===null?null:new Date(t*1e3),Nr=(t,e,r)=>t[e]&128?qD.parse(t.slice(e,e+r)):wI(t,e,r),DI=t=>isNaN(t)?null:t,wI=(t,e,r)=>DI(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),AI={12:8589934591,8:2097151},Mr=(t,e,r,n)=>n===null?!1:n>AI[r]||n<0?(qD.encode(n,t.slice(e,e+r)),!0):(xI(t,e,r,n),!1),xI=(t,e,r,n)=>t.write(SI(n,r),e,r,"ascii"),SI=(t,e)=>CI(Math.floor(t).toString(8),e),CI=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",Bh=(t,e,r,n)=>n===null?!1:Mr(t,e,r,n.getTime()/1e3),vI=new Array(156).join("\0"),mn=(t,e,r,n)=>n===null?!1:(t.write(n+vI,e,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);HD.exports=Ih});var Sa=b((SH,jD)=>{"use strict";var RI=ci(),FI=require("path"),_s=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new RI({path:("PaxHeader/"+FI.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(i),i.write(e,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],n=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
|
13
|
+
`,i=Buffer.byteLength(n),s=Math.floor(Math.log(i)/Math.log(10))+1;return i+s>=Math.pow(10,s)&&(s+=1),s+i+n}};_s.parse=(t,e,r)=>new _s(TI(OI(t),e),r);var TI=(t,e)=>e?Object.keys(t).reduce((r,n)=>(r[n]=t[n],r),e):t,OI=t=>t.replace(/\n$/,"").split(`
|
|
14
|
+
`).reduce(kI,Object.create(null)),kI=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let n=e.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return t;let s=n.join("=");return t[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};jD.exports=_s});var li=b((CH,$D)=>{$D.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var Ca=b((vH,UD)=>{"use strict";UD.exports=t=>class extends t{warn(e,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||e,n.tarCode=e,!this.strict&&n.recoverable!==!1?(r instanceof Error&&(n=Object.assign(r,n),r=r.message),this.emit("warn",n.tarCode,r,n)):r instanceof Error?this.emit("error",Object.assign(r,n)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),n))}}});var Nh=b((FH,GD)=>{"use strict";var va=["|","<",">","?",":"],Lh=va.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),PI=new Map(va.map((t,e)=>[t,Lh[e]])),BI=new Map(Lh.map((t,e)=>[t,va[e]]));GD.exports={encode:t=>va.reduce((e,r)=>e.split(r).join(PI.get(r)),t),decode:t=>Lh.reduce((e,r)=>e.split(r).join(BI.get(r)),t)}});var Mh=b((TH,zD)=>{var{isAbsolute:II,parse:WD}=require("path").win32;zD.exports=t=>{let e="",r=WD(t);for(;II(t)||r.root;){let n=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(n.length),e+=n,r=WD(t)}return[e,t]}});var YD=b((OH,VD)=>{"use strict";VD.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var Yh=b((BH,uw)=>{"use strict";var tw=pa(),rw=Sa(),nw=ci(),Ut=require("fs"),KD=require("path"),$t=ai(),LI=li(),iw=(t,e)=>e?(t=$t(t).replace(/^\.(\/|$)/,""),LI(e)+"/"+t):$t(t),NI=16*1024*1024,JD=Symbol("process"),XD=Symbol("file"),ZD=Symbol("directory"),Hh=Symbol("symlink"),QD=Symbol("hardlink"),Es=Symbol("header"),Ra=Symbol("read"),jh=Symbol("lstat"),Fa=Symbol("onlstat"),$h=Symbol("onread"),Uh=Symbol("onreadlink"),Gh=Symbol("openfile"),Wh=Symbol("onopenfile"),qr=Symbol("close"),Ta=Symbol("mode"),zh=Symbol("awaitDrain"),qh=Symbol("ondrain"),Gt=Symbol("prefix"),ew=Symbol("hadError"),sw=Ca(),MI=Nh(),ow=Mh(),aw=YD(),Oa=sw(class extends tw{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=$t(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||NI,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=$t(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?$t(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=ow(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=MI.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=$t(r.absolute||KD.resolve(this.cwd,e)),this.path===""&&(this.path="./"),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.statCache.has(this.absolute)?this[Fa](this.statCache.get(this.absolute)):this[jh]()}emit(e,...r){return e==="error"&&(this[ew]=!0),super.emit(e,...r)}[jh](){Ut.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Fa](r)})}[Fa](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=HI(e),this.emit("stat",e),this[JD]()}[JD](){switch(this.type){case"File":return this[XD]();case"Directory":return this[ZD]();case"SymbolicLink":return this[Hh]();default:return this.end()}}[Ta](e){return aw(e,this.type==="Directory",this.portable)}[Gt](e){return iw(e,this.prefix)}[Es](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new nw({path:this[Gt](this.path),linkpath:this.type==="Link"?this[Gt](this.linkpath):this.linkpath,mode:this[Ta](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new rw({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[Gt](this.path),linkpath:this.type==="Link"?this[Gt](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[ZD](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Es](),this.end()}[Hh](){Ut.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Uh](r)})}[Uh](e){this.linkpath=$t(e),this[Es](),this.end()}[QD](e){this.type="Link",this.linkpath=$t(KD.relative(this.cwd,e)),this.stat.size=0,this[Es](),this.end()}[XD](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[QD](r)}this.linkCache.set(e,this.absolute)}if(this[Es](),this.stat.size===0)return this.end();this[Gh]()}[Gh](){Ut.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Wh](r)})}[Wh](e){if(this.fd=e,this[ew])return this[qr]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Ra]()}[Ra](){let{fd:e,buf:r,offset:n,length:i,pos:s}=this;Ut.read(e,r,n,i,s,(o,a)=>{if(o)return this[qr](()=>this.emit("error",o));this[$h](a)})}[qr](e){Ut.close(this.fd,e)}[$h](e){if(e<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[qr](()=>this.emit("error",i))}if(e>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[qr](()=>this.emit("error",i))}if(e===this.remain)for(let i=e;i<this.length&&e<this.blockRemain;i++)this.buf[i+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[qh]():this[zh](()=>this[qh]())}[zh](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[qh](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[qr](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Ra]()}}),Vh=class extends Oa{[jh](){this[Fa](Ut.lstatSync(this.absolute))}[Hh](){this[Uh](Ut.readlinkSync(this.absolute))}[Gh](){this[Wh](Ut.openSync(this.absolute,"r"))}[Ra](){let e=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,a=Ut.readSync(r,n,i,s,o);this[$h](a),e=!1}finally{if(e)try{this[qr](()=>{})}catch{}}}[zh](e){e()}[qr](e){Ut.closeSync(this.fd),e()}},qI=sw(class extends tw{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=$t(e.path),this.mode=this[Ta](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=$t(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=ow(this.path);i&&(this.path=s,n=i)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new nw({path:this[Gt](this.path),linkpath:this.type==="Link"?this[Gt](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new rw({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[Gt](this.path),linkpath:this.type==="Link"?this[Gt](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Gt](e){return iw(e,this.prefix)}[Ta](e){return aw(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});Oa.Sync=Vh;Oa.Tar=qI;var HI=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";uw.exports=Oa});var lw=b((IH,cw)=>{"use strict";cw.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Kh=b((LH,fw)=>{"use strict";fw.exports=ne;ne.Node=gn;ne.create=ne;function ne(t){var e=this;if(e instanceof ne||(e=new ne),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)e.push(arguments[r]);return e}ne.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};ne.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};ne.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};ne.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)$I(this,arguments[t]);return this.length};ne.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)UI(this,arguments[t]);return this.length};ne.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};ne.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};ne.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;r!==null;n++)t.call(e,r.value,n,this),r=r.next};ne.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;r!==null;n--)t.call(e,r.value,n,this),r=r.prev};ne.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};ne.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};ne.prototype.map=function(t,e){e=e||this;for(var r=new ne,n=this.head;n!==null;)r.push(t.call(e,n.value,this)),n=n.next;return r};ne.prototype.mapReverse=function(t,e){e=e||this;for(var r=new ne,n=this.tail;n!==null;)r.push(t.call(e,n.value,this)),n=n.prev;return r};ne.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=t(r,n.value,i),n=n.next;return r};ne.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=t(r,n.value,i),n=n.prev;return r};ne.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};ne.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};ne.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new ne;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(;i!==null&&n<e;n++,i=i.next)r.push(i.value);return r};ne.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new ne;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=this.length,i=this.tail;i!==null&&n>e;n--)i=i.prev;for(;i!==null&&n>t;n--,i=i.prev)r.push(i.value);return r};ne.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(var s=[],n=0;i&&n<e;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=jI(this,i,r[n]);return s};ne.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};function jI(t,e,r){var n=e===t.head?new gn(r,null,e,t):new gn(r,e,e.next,t);return n.next===null&&(t.tail=n),n.prev===null&&(t.head=n),t.length++,n}function $I(t,e){t.tail=new gn(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function UI(t,e){t.head=new gn(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function gn(t,e,r,n){if(!(this instanceof gn))return new gn(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{lw()(ne)}catch{}});var Ha=b((MH,_w)=>{"use strict";var Ma=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},GI=pa(),WI=vh(),zI=Aa(),id=Yh(),VI=id.Sync,YI=id.Tar,KI=Kh(),hw=Buffer.alloc(1024),Ba=Symbol("onStat"),ka=Symbol("ended"),Wt=Symbol("queue"),fi=Symbol("current"),yn=Symbol("process"),Pa=Symbol("processing"),dw=Symbol("processJob"),zt=Symbol("jobs"),Jh=Symbol("jobDone"),Ia=Symbol("addFSEntry"),pw=Symbol("addTarEntry"),ed=Symbol("stat"),td=Symbol("readdir"),La=Symbol("onreaddir"),Na=Symbol("pipe"),mw=Symbol("entry"),Xh=Symbol("entryOpt"),rd=Symbol("writeEntryClass"),yw=Symbol("write"),Zh=Symbol("ondrain"),qa=require("fs"),gw=require("path"),JI=Ca(),Qh=ai(),sd=JI(class extends GI{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=Qh(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[rd]=id,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new WI.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Zh]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Zh]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Wt]=new KI,this[zt]=0,this.jobs=+e.jobs||4,this[Pa]=!1,this[ka]=!1}[yw](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[ka]=!0,this[yn](),this}write(e){if(this[ka])throw new Error("write after end");return e instanceof zI?this[pw](e):this[Ia](e),this.flowing}[pw](e){let r=Qh(gw.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let n=new Ma(e.path,r,!1);n.entry=new YI(e,this[Xh](n)),n.entry.on("end",i=>this[Jh](n)),this[zt]+=1,this[Wt].push(n)}this[yn]()}[Ia](e){let r=Qh(gw.resolve(this.cwd,e));this[Wt].push(new Ma(e,r)),this[yn]()}[ed](e){e.pending=!0,this[zt]+=1;let r=this.follow?"stat":"lstat";qa[r](e.absolute,(n,i)=>{e.pending=!1,this[zt]-=1,n?this.emit("error",n):this[Ba](e,i)})}[Ba](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[yn]()}[td](e){e.pending=!0,this[zt]+=1,qa.readdir(e.absolute,(r,n)=>{if(e.pending=!1,this[zt]-=1,r)return this.emit("error",r);this[La](e,n)})}[La](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[yn]()}[yn](){if(!this[Pa]){this[Pa]=!0;for(let e=this[Wt].head;e!==null&&this[zt]<this.jobs;e=e.next)if(this[dw](e.value),e.value.ignore){let r=e.next;this[Wt].removeNode(e),e.next=r}this[Pa]=!1,this[ka]&&!this[Wt].length&&this[zt]===0&&(this.zip?this.zip.end(hw):(super.write(hw),super.end()))}}get[fi](){return this[Wt]&&this[Wt].head&&this[Wt].head.value}[Jh](e){this[Wt].shift(),this[zt]-=1,this[yn]()}[dw](e){if(!e.pending){if(e.entry){e===this[fi]&&!e.piped&&this[Na](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Ba](e,this.statCache.get(e.absolute)):this[ed](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[La](e,this.readdirCache.get(e.absolute)):this[td](e),!e.readdir))){if(e.entry=this[mw](e),!e.entry){e.ignore=!0;return}e===this[fi]&&!e.piped&&this[Na](e)}}}[Xh](e){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[mw](e){this[zt]+=1;try{return new this[rd](e.path,this[Xh](e)).on("end",()=>this[Jh](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Zh](){this[fi]&&this[fi].entry&&this[fi].entry.resume()}[Na](e){e.piped=!0,e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ia](o+i)});let r=e.entry,n=this.zip;n?r.on("data",i=>{n.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),nd=class extends sd{constructor(e){super(e),this[rd]=VI}pause(){}resume(){}[ed](e){let r=this.follow?"statSync":"lstatSync";this[Ba](e,qa[r](e.absolute))}[td](e,r){this[La](e,qa.readdirSync(e.absolute))}[Na](e){let r=e.entry,n=this.zip;e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ia](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[yw](i)})}};sd.Sync=nd;_w.exports=sd});var Ei=b(Ds=>{"use strict";var XI=fh(),ZI=require("events").EventEmitter,tt=require("fs"),ud=tt.writev;if(!ud){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;ud=(r,n,i,s)=>{let o=(u,c)=>s(u,c,n),a=new e;a.oncomplete=o,t.writeBuffers(r,n,i,a)}}var yi=Symbol("_autoClose"),Ft=Symbol("_close"),bs=Symbol("_ended"),ue=Symbol("_fd"),Ew=Symbol("_finished"),jr=Symbol("_flags"),od=Symbol("_flush"),cd=Symbol("_handleChunk"),ld=Symbol("_makeBuf"),Wa=Symbol("_mode"),ja=Symbol("_needDrain"),mi=Symbol("_onerror"),_i=Symbol("_onopen"),ad=Symbol("_onread"),di=Symbol("_onwrite"),$r=Symbol("_open"),pr=Symbol("_path"),_n=Symbol("_pos"),Vt=Symbol("_queue"),pi=Symbol("_read"),bw=Symbol("_readSize"),Hr=Symbol("_reading"),$a=Symbol("_remain"),Dw=Symbol("_size"),Ua=Symbol("_write"),hi=Symbol("_writing"),Ga=Symbol("_defaultFlag"),gi=Symbol("_errored"),za=class extends XI{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[gi]=!1,this[ue]=typeof r.fd=="number"?r.fd:null,this[pr]=e,this[bw]=r.readSize||16*1024*1024,this[Hr]=!1,this[Dw]=typeof r.size=="number"?r.size:1/0,this[$a]=this[Dw],this[yi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[ue]=="number"?this[pi]():this[$r]()}get fd(){return this[ue]}get path(){return this[pr]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[$r](){tt.open(this[pr],"r",(e,r)=>this[_i](e,r))}[_i](e,r){e?this[mi](e):(this[ue]=r,this.emit("open",r),this[pi]())}[ld](){return Buffer.allocUnsafe(Math.min(this[bw],this[$a]))}[pi](){if(!this[Hr]){this[Hr]=!0;let e=this[ld]();if(e.length===0)return process.nextTick(()=>this[ad](null,0,e));tt.read(this[ue],e,0,e.length,null,(r,n,i)=>this[ad](r,n,i))}}[ad](e,r,n){this[Hr]=!1,e?this[mi](e):this[cd](r,n)&&this[pi]()}[Ft](){if(this[yi]&&typeof this[ue]=="number"){let e=this[ue];this[ue]=null,tt.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[mi](e){this[Hr]=!0,this[Ft](),this.emit("error",e)}[cd](e,r){let n=!1;return this[$a]-=e,e>0&&(n=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[$a]<=0)&&(n=!1,this[Ft](),super.end()),n}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[ue]=="number"&&this[pi]();break;case"error":return this[gi]?void 0:(this[gi]=!0,super.emit(e,r));default:return super.emit(e,r)}}},fd=class extends za{[$r](){let e=!0;try{this[_i](null,tt.openSync(this[pr],"r")),e=!1}finally{e&&this[Ft]()}}[pi](){let e=!0;try{if(!this[Hr]){this[Hr]=!0;do{let r=this[ld](),n=r.length===0?0:tt.readSync(this[ue],r,0,r.length,null);if(!this[cd](n,r))break}while(!0);this[Hr]=!1}e=!1}finally{e&&this[Ft]()}}[Ft](){if(this[yi]&&typeof this[ue]=="number"){let e=this[ue];this[ue]=null,tt.closeSync(e),this.emit("close")}}},Va=class extends ZI{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[gi]=!1,this[hi]=!1,this[bs]=!1,this[ja]=!1,this[Vt]=[],this[pr]=e,this[ue]=typeof r.fd=="number"?r.fd:null,this[Wa]=r.mode===void 0?438:r.mode,this[_n]=typeof r.start=="number"?r.start:null,this[yi]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[_n]!==null?"r+":"w";this[Ga]=r.flags===void 0,this[jr]=this[Ga]?n:r.flags,this[ue]===null&&this[$r]()}emit(e,r){if(e==="error"){if(this[gi])return;this[gi]=!0}return super.emit(e,r)}get fd(){return this[ue]}get path(){return this[pr]}[mi](e){this[Ft](),this[hi]=!0,this.emit("error",e)}[$r](){tt.open(this[pr],this[jr],this[Wa],(e,r)=>this[_i](e,r))}[_i](e,r){this[Ga]&&this[jr]==="r+"&&e&&e.code==="ENOENT"?(this[jr]="w",this[$r]()):e?this[mi](e):(this[ue]=r,this.emit("open",r),this[od]())}end(e,r){return e&&this.write(e,r),this[bs]=!0,!this[hi]&&!this[Vt].length&&typeof this[ue]=="number"&&this[di](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[bs]?(this.emit("error",new Error("write() after end()")),!1):this[ue]===null||this[hi]||this[Vt].length?(this[Vt].push(e),this[ja]=!0,!1):(this[hi]=!0,this[Ua](e),!0)}[Ua](e){tt.write(this[ue],e,0,e.length,this[_n],(r,n)=>this[di](r,n))}[di](e,r){e?this[mi](e):(this[_n]!==null&&(this[_n]+=r),this[Vt].length?this[od]():(this[hi]=!1,this[bs]&&!this[Ew]?(this[Ew]=!0,this[Ft](),this.emit("finish")):this[ja]&&(this[ja]=!1,this.emit("drain"))))}[od](){if(this[Vt].length===0)this[bs]&&this[di](null,0);else if(this[Vt].length===1)this[Ua](this[Vt].pop());else{let e=this[Vt];this[Vt]=[],ud(this[ue],e,this[_n],(r,n)=>this[di](r,n))}}[Ft](){if(this[yi]&&typeof this[ue]=="number"){let e=this[ue];this[ue]=null,tt.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},hd=class extends Va{[$r](){let e;if(this[Ga]&&this[jr]==="r+")try{e=tt.openSync(this[pr],this[jr],this[Wa])}catch(r){if(r.code==="ENOENT")return this[jr]="w",this[$r]();throw r}else e=tt.openSync(this[pr],this[jr],this[Wa]);this[_i](null,e)}[Ft](){if(this[yi]&&typeof this[ue]=="number"){let e=this[ue];this[ue]=null,tt.closeSync(e),this.emit("close")}}[Ua](e){let r=!0;try{this[di](null,tt.writeSync(this[ue],e,0,e.length,this[_n])),r=!1}finally{if(r)try{this[Ft]()}catch{}}}};Ds.ReadStream=za;Ds.ReadStreamSync=fd;Ds.WriteStream=Va;Ds.WriteStreamSync=hd});var eu=b((jH,Fw)=>{"use strict";var QI=Ca(),eL=ci(),tL=require("events"),rL=Kh(),nL=1024*1024,iL=Aa(),ww=Sa(),sL=vh(),{nextTick:oL}=require("process"),dd=Buffer.from([31,139]),mt=Symbol("state"),En=Symbol("writeEntry"),mr=Symbol("readEntry"),pd=Symbol("nextEntry"),Aw=Symbol("processEntry"),gt=Symbol("extendedHeader"),ws=Symbol("globalExtendedHeader"),Ur=Symbol("meta"),xw=Symbol("emitMeta"),pe=Symbol("buffer"),gr=Symbol("queue"),bn=Symbol("ended"),Sw=Symbol("emittedEnd"),Dn=Symbol("emit"),rt=Symbol("unzip"),Ya=Symbol("consumeChunk"),Ka=Symbol("consumeChunkSub"),md=Symbol("consumeBody"),Cw=Symbol("consumeMeta"),vw=Symbol("consumeHeader"),Ja=Symbol("consuming"),gd=Symbol("bufferConcat"),yd=Symbol("maybeEnd"),As=Symbol("writing"),Gr=Symbol("aborted"),Xa=Symbol("onDone"),wn=Symbol("sawValidEntry"),Za=Symbol("sawNullBlock"),Qa=Symbol("sawEOF"),Rw=Symbol("closeStream"),aL=t=>!0;Fw.exports=QI(class extends tL{constructor(e){e=e||{},super(e),this.file=e.file||"",this[wn]=null,this.on(Xa,r=>{(this[mt]==="begin"||this[wn]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Xa,e.ondone):this.on(Xa,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||nL,this.filter=typeof e.filter=="function"?e.filter:aL,this.writable=!0,this.readable=!1,this[gr]=new rL,this[pe]=null,this[mr]=null,this[En]=null,this[mt]="begin",this[Ur]="",this[gt]=null,this[ws]=null,this[bn]=!1,this[rt]=null,this[Gr]=!1,this[Za]=!1,this[Qa]=!1,this.on("end",()=>this[Rw]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[vw](e,r){this[wn]===null&&(this[wn]=!1);let n;try{n=new eL(e,r,this[gt],this[ws])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[Za]?(this[Qa]=!0,this[mt]==="begin"&&(this[mt]="header"),this[Dn]("eof")):(this[Za]=!0,this[Dn]("nullBlock"));else if(this[Za]=!1,!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{let i=n.type;if(/^(Symbolic)?Link$/.test(i)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(i)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{let s=this[En]=new iL(n,this[gt],this[ws]);if(!this[wn])if(s.remain){let o=()=>{s.invalid||(this[wn]=!0)};s.on("end",o)}else this[wn]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Dn]("ignoredEntry",s),this[mt]="ignore",s.resume()):s.size>0&&(this[Ur]="",s.on("data",o=>this[Ur]+=o),this[mt]="meta"):(this[gt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Dn]("ignoredEntry",s),this[mt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[mt]="body":(this[mt]="header",s.end()),this[mr]?this[gr].push(s):(this[gr].push(s),this[pd]())))}}}[Rw](){oL(()=>this.emit("close"))}[Aw](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[mr]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",n=>this[pd]()),r=!1)):(this[mr]=null,r=!1),r}[pd](){do;while(this[Aw](this[gr].shift()));if(!this[gr].length){let e=this[mr];!e||e.flowing||e.size===e.remain?this[As]||this.emit("drain"):e.once("drain",n=>this.emit("drain"))}}[md](e,r){let n=this[En],i=n.blockRemain,s=i>=e.length&&r===0?e:e.slice(r,r+i);return n.write(s),n.blockRemain||(this[mt]="header",this[En]=null,n.end()),s.length}[Cw](e,r){let n=this[En],i=this[md](e,r);return this[En]||this[xw](n),i}[Dn](e,r,n){!this[gr].length&&!this[mr]?this.emit(e,r,n):this[gr].push([e,r,n])}[xw](e){switch(this[Dn]("meta",this[Ur]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[gt]=ww.parse(this[Ur],this[gt],!1);break;case"GlobalExtendedHeader":this[ws]=ww.parse(this[Ur],this[ws],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[gt]=this[gt]||Object.create(null),this[gt].path=this[Ur].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[gt]=this[gt]||Object.create(null),this[gt].linkpath=this[Ur].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Gr]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Gr])return;if(this[rt]===null&&e){if(this[pe]&&(e=Buffer.concat([this[pe],e]),this[pe]=null),e.length<dd.length)return this[pe]=e,!0;for(let n=0;this[rt]===null&&n<dd.length;n++)e[n]!==dd[n]&&(this[rt]=!1);if(this[rt]===null){let n=this[bn];this[bn]=!1,this[rt]=new sL.Unzip,this[rt].on("data",s=>this[Ya](s)),this[rt].on("error",s=>this.abort(s)),this[rt].on("end",s=>{this[bn]=!0,this[Ya]()}),this[As]=!0;let i=this[rt][n?"end":"write"](e);return this[As]=!1,i}}this[As]=!0,this[rt]?this[rt].write(e):this[Ya](e),this[As]=!1;let r=this[gr].length?!1:this[mr]?this[mr].flowing:!0;return!r&&!this[gr].length&&this[mr].once("drain",n=>this.emit("drain")),r}[gd](e){e&&!this[Gr]&&(this[pe]=this[pe]?Buffer.concat([this[pe],e]):e)}[yd](){if(this[bn]&&!this[Sw]&&!this[Gr]&&!this[Ja]){this[Sw]=!0;let e=this[En];if(e&&e.blockRemain){let r=this[pe]?this[pe].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[pe]&&e.write(this[pe]),e.end()}this[Dn](Xa)}}[Ya](e){if(this[Ja])this[gd](e);else if(!e&&!this[pe])this[yd]();else{if(this[Ja]=!0,this[pe]){this[gd](e);let r=this[pe];this[pe]=null,this[Ka](r)}else this[Ka](e);for(;this[pe]&&this[pe].length>=512&&!this[Gr]&&!this[Qa];){let r=this[pe];this[pe]=null,this[Ka](r)}this[Ja]=!1}(!this[pe]||this[bn])&&this[yd]()}[Ka](e){let r=0,n=e.length;for(;r+512<=n&&!this[Gr]&&!this[Qa];)switch(this[mt]){case"begin":case"header":this[vw](e,r),r+=512;break;case"ignore":case"body":r+=this[md](e,r);break;case"meta":r+=this[Cw](e,r);break;default:throw new Error("invalid state: "+this[mt])}r<n&&(this[pe]?this[pe]=Buffer.concat([e.slice(r),this[pe]]):this[pe]=e.slice(r))}end(e){this[Gr]||(this[rt]?this[rt].end(e):(this[bn]=!0,this.write(e)))}})});var tu=b(($H,Pw)=>{"use strict";var uL=ri(),Ow=eu(),bi=require("fs"),cL=Ei(),Tw=require("path"),_d=li();Pw.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=uL(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&fL(n,e),n.noResume||lL(n),n.file&&n.sync?hL(n):n.file?dL(n,r):kw(n)};var lL=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},fL=(t,e)=>{let r=new Map(e.map(s=>[_d(s),!0])),n=t.filter,i=(s,o)=>{let a=o||Tw.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(Tw.dirname(s),a);return r.set(s,u),u};t.filter=n?(s,o)=>n(s,o)&&i(_d(s)):s=>i(_d(s))},hL=t=>{let e=kw(t),r=t.file,n=!0,i;try{let s=bi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(bi.readFileSync(r));else{let a=0,u=Buffer.allocUnsafe(o);for(i=bi.openSync(r,"r");a<s.size;){let c=bi.readSync(i,u,0,o,a);a+=c,e.write(u.slice(0,c))}e.end()}n=!1}finally{if(n&&i)try{bi.closeSync(i)}catch{}}},dL=(t,e)=>{let r=new Ow(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),bi.stat(i,(u,c)=>{if(u)a(u);else{let l=new cL.ReadStream(i,{readSize:n,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},kw=t=>new Ow(t)});var qw=b((UH,Mw)=>{"use strict";var pL=ri(),ru=Ha(),Bw=Ei(),Iw=tu(),Lw=require("path");Mw.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let n=pL(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?mL(n,e):n.file?gL(n,e,r):n.sync?yL(n,e):_L(n,e)};var mL=(t,e)=>{let r=new ru.Sync(t),n=new Bw.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(n),Nw(r,e)},gL=(t,e,r)=>{let n=new ru(t),i=new Bw.WriteStream(t.file,{mode:t.mode||438});n.pipe(i);let s=new Promise((o,a)=>{i.on("error",a),i.on("close",o),n.on("error",a)});return Ed(n,e),r?s.then(r,r):s},Nw=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Iw({file:Lw.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},Ed=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Iw({file:Lw.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>Ed(t,e));t.add(r)}t.end()},yL=(t,e)=>{let r=new ru.Sync(t);return Nw(r,e),r},_L=(t,e)=>{let r=new ru(t);return Ed(r,e),r}});var bd=b((GH,zw)=>{"use strict";var EL=ri(),Hw=Ha(),ct=require("fs"),jw=Ei(),$w=tu(),Uw=require("path"),Gw=ci();zw.exports=(t,e,r)=>{let n=EL(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),n.sync?bL(n,e):wL(n,e,r)};var bL=(t,e)=>{let r=new Hw.Sync(t),n=!0,i,s;try{try{i=ct.openSync(t.file,"r+")}catch(u){if(u.code==="ENOENT")i=ct.openSync(t.file,"w+");else throw u}let o=ct.fstatSync(i),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let l=0,f=0;l<512;l+=f){if(f=ct.readSync(i,a,l,a.length-l,s+l),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!f)break e}let u=new Gw(a);if(!u.cksumValid)break;let c=512*Math.ceil(u.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(u.path,u.mtime)}n=!1,DL(t,r,s,i,e)}finally{if(n)try{ct.closeSync(i)}catch{}}},DL=(t,e,r,n,i)=>{let s=new jw.WriteStreamSync(t.file,{fd:n,start:r});e.pipe(s),AL(e,i)},wL=(t,e,r)=>{e=Array.from(e);let n=new Hw(t),i=(o,a,u)=>{let c=(m,_)=>{m?ct.close(o,g=>u(m)):u(null,_)},l=0;if(a===0)return c(null,0);let f=0,h=Buffer.alloc(512),p=(m,_)=>{if(m)return c(m);if(f+=_,f<512&&_)return ct.read(o,h,f,h.length-f,l+f,p);if(l===0&&h[0]===31&&h[1]===139)return c(new Error("cannot append to compressed archives"));if(f<512)return c(null,l);let g=new Gw(h);if(!g.cksumValid)return c(null,l);let D=512*Math.ceil(g.size/512);if(l+D+512>a||(l+=D+512,l>=a))return c(null,l);t.mtimeCache&&t.mtimeCache.set(g.path,g.mtime),f=0,ct.read(o,h,0,512,l,p)};ct.read(o,h,0,512,l,p)},s=new Promise((o,a)=>{n.on("error",a);let u="r+",c=(l,f)=>{if(l&&l.code==="ENOENT"&&u==="r+")return u="w+",ct.open(t.file,u,c);if(l)return a(l);ct.fstat(f,(h,p)=>{if(h)return ct.close(f,()=>a(h));i(f,p.size,(m,_)=>{if(m)return a(m);let g=new jw.WriteStream(t.file,{fd:f,start:_});n.pipe(g),g.on("error",a),g.on("close",o),Ww(n,e)})})};ct.open(t.file,u,c)});return r?s.then(r,r):s},AL=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?$w({file:Uw.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},Ww=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return $w({file:Uw.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>Ww(t,e));t.add(r)}t.end()}});var Yw=b((WH,Vw)=>{"use strict";var xL=ri(),SL=bd();Vw.exports=(t,e,r)=>{let n=xL(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),CL(n),SL(n,e,r)};var CL=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,n)=>e(r,n)&&!(t.mtimeCache.get(r)>n.mtime):(r,n)=>!(t.mtimeCache.get(r)>n.mtime)}});var Xw=b((zH,Jw)=>{var{promisify:Kw}=require("util"),Wr=require("fs"),vL=t=>{if(!t)t={mode:511,fs:Wr};else if(typeof t=="object")t={mode:511,fs:Wr,...t};else if(typeof t=="number")t={mode:t,fs:Wr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Wr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Wr.mkdir,t.mkdirAsync=Kw(t.mkdir),t.stat=t.stat||t.fs.stat||Wr.stat,t.statAsync=Kw(t.stat),t.statSync=t.statSync||t.fs.statSync||Wr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Wr.mkdirSync,t};Jw.exports=vL});var Qw=b((VH,Zw)=>{var RL=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:FL,parse:TL}=require("path"),OL=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=FL(t),RL==="win32"){let e=/[*|"<>?:]/,{root:r}=TL(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};Zw.exports=OL});var iA=b((YH,nA)=>{var{dirname:eA}=require("path"),tA=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?tA(t,eA(e),e):void 0),rA=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?rA(t,eA(e),e):void 0}};nA.exports={findMade:tA,findMadeSync:rA}});var Ad=b((KH,oA)=>{var{dirname:sA}=require("path"),Dd=(t,e,r)=>{e.recursive=!1;let n=sA(t);return n===t?e.mkdirAsync(t,e).catch(i=>{if(i.code!=="EISDIR")throw i}):e.mkdirAsync(t,e).then(()=>r||t,i=>{if(i.code==="ENOENT")return Dd(n,e).then(s=>Dd(t,e,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},wd=(t,e,r)=>{let n=sA(t);if(e.recursive=!1,n===t)try{return e.mkdirSync(t,e)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return e.mkdirSync(t,e),r||t}catch(i){if(i.code==="ENOENT")return wd(t,e,wd(n,e,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!e.statSync(t).isDirectory())throw i}catch{throw i}}};oA.exports={mkdirpManual:Dd,mkdirpManualSync:wd}});var cA=b((JH,uA)=>{var{dirname:aA}=require("path"),{findMade:kL,findMadeSync:PL}=iA(),{mkdirpManual:BL,mkdirpManualSync:IL}=Ad(),LL=(t,e)=>(e.recursive=!0,aA(t)===t?e.mkdirAsync(t,e):kL(e,t).then(n=>e.mkdirAsync(t,e).then(()=>n).catch(i=>{if(i.code==="ENOENT")return BL(t,e);throw i}))),NL=(t,e)=>{if(e.recursive=!0,aA(t)===t)return e.mkdirSync(t,e);let n=PL(e,t);try{return e.mkdirSync(t,e),n}catch(i){if(i.code==="ENOENT")return IL(t,e);throw i}};uA.exports={mkdirpNative:LL,mkdirpNativeSync:NL}});var dA=b((XH,hA)=>{var lA=require("fs"),ML=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,xd=ML.replace(/^v/,"").split("."),fA=+xd[0]>10||+xd[0]==10&&+xd[1]>=12,qL=fA?t=>t.mkdir===lA.mkdir:()=>!1,HL=fA?t=>t.mkdirSync===lA.mkdirSync:()=>!1;hA.exports={useNative:qL,useNativeSync:HL}});var EA=b((ZH,_A)=>{var Di=Xw(),wi=Qw(),{mkdirpNative:pA,mkdirpNativeSync:mA}=cA(),{mkdirpManual:gA,mkdirpManualSync:yA}=Ad(),{useNative:jL,useNativeSync:$L}=dA(),Ai=(t,e)=>(t=wi(t),e=Di(e),jL(e)?pA(t,e):gA(t,e)),UL=(t,e)=>(t=wi(t),e=Di(e),$L(e)?mA(t,e):yA(t,e));Ai.sync=UL;Ai.native=(t,e)=>pA(wi(t),Di(e));Ai.manual=(t,e)=>gA(wi(t),Di(e));Ai.nativeSync=(t,e)=>mA(wi(t),Di(e));Ai.manualSync=(t,e)=>yA(wi(t),Di(e));_A.exports=Ai});var CA=b((QH,SA)=>{"use strict";var yt=require("fs"),An=require("path"),GL=yt.lchown?"lchown":"chown",WL=yt.lchownSync?"lchownSync":"chownSync",DA=yt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),bA=(t,e,r)=>{try{return yt[WL](t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},zL=(t,e,r)=>{try{return yt.chownSync(t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},VL=DA?(t,e,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):yt.chown(t,e,r,n)}:(t,e,r,n)=>n,Sd=DA?(t,e,r)=>{try{return bA(t,e,r)}catch(n){if(n.code!=="EISDIR")throw n;zL(t,e,r)}}:(t,e,r)=>bA(t,e,r),YL=process.version,wA=(t,e,r)=>yt.readdir(t,e,r),KL=(t,e)=>yt.readdirSync(t,e);/^v4\./.test(YL)&&(wA=(t,e,r)=>yt.readdir(t,r));var nu=(t,e,r,n)=>{yt[GL](t,e,r,VL(t,e,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},AA=(t,e,r,n,i)=>{if(typeof e=="string")return yt.lstat(An.resolve(t,e),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=e,AA(t,o,r,n,i)});if(e.isDirectory())Cd(An.resolve(t,e.name),r,n,s=>{if(s)return i(s);let o=An.resolve(t,e.name);nu(o,r,n,i)});else{let s=An.resolve(t,e.name);nu(s,r,n,i)}},Cd=(t,e,r,n)=>{wA(t,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return nu(t,e,r,n);let o=s.length,a=null,u=c=>{if(!a){if(c)return n(a=c);if(--o===0)return nu(t,e,r,n)}};s.forEach(c=>AA(t,c,e,r,u))})},JL=(t,e,r,n)=>{if(typeof e=="string")try{let i=yt.lstatSync(An.resolve(t,e));i.name=e,e=i}catch(i){if(i.code==="ENOENT")return;throw i}e.isDirectory()&&xA(An.resolve(t,e.name),r,n),Sd(An.resolve(t,e.name),r,n)},xA=(t,e,r)=>{let n;try{n=KL(t,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return Sd(t,e,r);throw i}return n&&n.length&&n.forEach(i=>JL(t,i,e,r)),Sd(t,e,r)};SA.exports=Cd;Cd.sync=xA});var TA=b((e4,vd)=>{"use strict";var vA=EA(),_t=require("fs"),iu=require("path"),RA=CA(),Tt=ai(),su=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},ou=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},au=(t,e)=>t.get(Tt(e)),xs=(t,e,r)=>t.set(Tt(e),r),XL=(t,e)=>{_t.stat(t,(r,n)=>{(r||!n.isDirectory())&&(r=new ou(t,r&&r.code||"ENOTDIR")),e(r)})};vd.exports=(t,e,r)=>{t=Tt(t);let n=e.umask,i=e.mode|448,s=(i&n)!==0,o=e.uid,a=e.gid,u=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),c=e.preserve,l=e.unlink,f=e.cache,h=Tt(e.cwd),p=(g,D)=>{g?r(g):(xs(f,t,!0),D&&u?RA(D,o,a,C=>p(C)):s?_t.chmod(t,i,r):r())};if(f&&au(f,t)===!0)return p();if(t===h)return XL(t,p);if(c)return vA(t,{mode:i}).then(g=>p(null,g),p);let _=Tt(iu.relative(h,t)).split("/");uu(h,_,i,f,l,h,null,p)};var uu=(t,e,r,n,i,s,o,a)=>{if(!e.length)return a(null,o);let u=e.shift(),c=Tt(iu.resolve(t+"/"+u));if(au(n,c))return uu(c,e,r,n,i,s,o,a);_t.mkdir(c,r,FA(c,e,r,n,i,s,o,a))},FA=(t,e,r,n,i,s,o,a)=>u=>{u?_t.lstat(t,(c,l)=>{if(c)c.path=c.path&&Tt(c.path),a(c);else if(l.isDirectory())uu(t,e,r,n,i,s,o,a);else if(i)_t.unlink(t,f=>{if(f)return a(f);_t.mkdir(t,r,FA(t,e,r,n,i,s,o,a))});else{if(l.isSymbolicLink())return a(new su(t,t+"/"+e.join("/")));a(u)}}):(o=o||t,uu(t,e,r,n,i,s,o,a))},ZL=t=>{let e=!1,r="ENOTDIR";try{e=_t.statSync(t).isDirectory()}catch(n){r=n.code}finally{if(!e)throw new ou(t,r)}};vd.exports.sync=(t,e)=>{t=Tt(t);let r=e.umask,n=e.mode|448,i=(n&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),u=e.preserve,c=e.unlink,l=e.cache,f=Tt(e.cwd),h=g=>{xs(l,t,!0),g&&a&&RA.sync(g,s,o),i&&_t.chmodSync(t,n)};if(l&&au(l,t)===!0)return h();if(t===f)return ZL(f),h();if(u)return h(vA.sync(t,n));let m=Tt(iu.relative(f,t)).split("/"),_=null;for(let g=m.shift(),D=f;g&&(D+="/"+g);g=m.shift())if(D=Tt(iu.resolve(D)),!au(l,D))try{_t.mkdirSync(D,n),_=_||D,xs(l,D,!0)}catch{let q=_t.lstatSync(D);if(q.isDirectory()){xs(l,D,!0);continue}else if(c){_t.unlinkSync(D),_t.mkdirSync(D,n),_=_||D,xs(l,D,!0);continue}else if(q.isSymbolicLink())return new su(D,D+"/"+m.join("/"))}return h(_)}});var Fd=b((t4,OA)=>{var Rd=Object.create(null),{hasOwnProperty:QL}=Object.prototype;OA.exports=t=>(QL.call(Rd,t)||(Rd[t]=t.normalize("NFKD")),Rd[t])});var IA=b((r4,BA)=>{var kA=require("assert"),eN=Fd(),tN=li(),{join:PA}=require("path"),rN=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,nN=rN==="win32";BA.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((f,h)=>(f.length&&(h=PA(f[f.length-1],h)),f.push(h||"/"),f),[]),n=new Set,i=c=>{let l=e.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(f=>t.get(f)),dirs:[...l.dirs].map(f=>t.get(f))}},s=c=>{let{paths:l,dirs:f}=i(c);return l.every(h=>h[0]===c)&&f.every(h=>h[0]instanceof Set&&h[0].has(c))},o=c=>n.has(c)||!s(c)?!1:(n.add(c),c(()=>a(c)),!0),a=c=>{if(!n.has(c))return!1;let{paths:l,dirs:f}=e.get(c),h=new Set;return l.forEach(p=>{let m=t.get(p);kA.equal(m[0],c),m.length===1?t.delete(p):(m.shift(),typeof m[0]=="function"?h.add(m[0]):m[0].forEach(_=>h.add(_)))}),f.forEach(p=>{let m=t.get(p);kA(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(p):m[0].size===1?(m.shift(),h.add(m[0])):m[0].delete(c)}),n.delete(c),h.forEach(p=>o(p)),!0};return{check:s,reserve:(c,l)=>{c=nN?["win32 parallelization disabled"]:c.map(h=>eN(tN(PA(h))).toLowerCase());let f=new Set(c.map(h=>r(h)).reduce((h,p)=>h.concat(p)));return e.set(l,{dirs:f,paths:c}),c.forEach(h=>{let p=t.get(h);p?p.push(l):t.set(h,[l])}),f.forEach(h=>{let p=t.get(h);p?p[p.length-1]instanceof Set?p[p.length-1].add(l):p.push(new Set([l])):t.set(h,[new Set([l])])}),o(l)}}}});var MA=b((n4,NA)=>{var iN=process.env.__FAKE_PLATFORM__||process.platform,sN=iN==="win32",oN=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:aN,O_TRUNC:uN,O_WRONLY:cN,UV_FS_O_FILEMAP:LA=0}=oN.constants,lN=sN&&!!LA,fN=512*1024,hN=LA|uN|aN|cN;NA.exports=lN?t=>t<fN?hN:"w":()=>"w"});var Md=b((i4,ZA)=>{"use strict";var dN=require("assert"),pN=eu(),ie=require("fs"),mN=Ei(),yr=require("path"),KA=TA(),qA=Nh(),gN=IA(),yN=Mh(),lt=ai(),_N=li(),EN=Fd(),HA=Symbol("onEntry"),kd=Symbol("checkFs"),jA=Symbol("checkFs2"),fu=Symbol("pruneCache"),Pd=Symbol("isReusable"),Et=Symbol("makeFs"),Bd=Symbol("file"),Id=Symbol("directory"),hu=Symbol("link"),$A=Symbol("symlink"),UA=Symbol("hardlink"),GA=Symbol("unsupported"),WA=Symbol("checkPath"),zr=Symbol("mkdir"),We=Symbol("onError"),cu=Symbol("pending"),zA=Symbol("pend"),xi=Symbol("unpend"),Td=Symbol("ended"),Od=Symbol("maybeClose"),Ld=Symbol("skip"),Ss=Symbol("doChown"),Cs=Symbol("uid"),vs=Symbol("gid"),Rs=Symbol("checkedCwd"),JA=require("crypto"),XA=MA(),bN=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Fs=bN==="win32",DN=(t,e)=>{if(!Fs)return ie.unlink(t,e);let r=t+".DELETE."+JA.randomBytes(16).toString("hex");ie.rename(t,r,n=>{if(n)return e(n);ie.unlink(r,e)})},wN=t=>{if(!Fs)return ie.unlinkSync(t);let e=t+".DELETE."+JA.randomBytes(16).toString("hex");ie.renameSync(t,e),ie.unlinkSync(e)},VA=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,YA=t=>EN(_N(lt(t))).toLowerCase(),AN=(t,e)=>{e=YA(e);for(let r of t.keys()){let n=YA(r);(n===e||n.indexOf(e+"/")===0)&&t.delete(r)}},xN=t=>{for(let e of t.keys())t.delete(e)},Ts=class extends pN{constructor(e){if(e||(e={}),e.ondone=r=>{this[Td]=!0,this[Od]()},super(e),this[Rs]=!1,this.reservations=gN(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[cu]=0,this[Td]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||Fs,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=lt(yr.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[HA](r))}warn(e,r,n={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(n.recoverable=!1),super.warn(e,r,n)}[Od](){this[Td]&&this[cu]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[WA](e){if(this.strip){let r=lt(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let n=lt(e.linkpath).split("/");if(n.length>=this.strip)e.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=lt(e.path),n=r.split("/");if(n.includes("..")||Fs&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[i,s]=yN(r);i&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:e,path:r}))}if(yr.isAbsolute(e.path)?e.absolute=lt(yr.resolve(e.path)):e.absolute=lt(yr.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:lt(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=yr.win32.parse(e.absolute);e.absolute=r+qA.encode(e.absolute.slice(r.length));let{root:n}=yr.win32.parse(e.path);e.path=n+qA.encode(e.path.slice(n.length))}return!0}[HA](e){if(!this[WA](e))return e.resume();switch(dN.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[kd](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[GA](e)}}[We](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[xi](),r.resume())}[zr](e,r,n){KA(lt(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},n)}[Ss](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Cs](e){return VA(this.uid,e.uid,this.processUid)}[vs](e){return VA(this.gid,e.gid,this.processGid)}[Bd](e,r){let n=e.mode&4095||this.fmode,i=new mN.WriteStream(e.absolute,{flags:XA(e.size),mode:n,autoClose:!1});i.on("error",u=>{i.fd&&ie.close(i.fd,()=>{}),i.write=()=>!0,this[We](u,e),r()});let s=1,o=u=>{if(u){i.fd&&ie.close(i.fd,()=>{}),this[We](u,e),r();return}--s===0&&ie.close(i.fd,c=>{c?this[We](c,e):this[xi](),r()})};i.on("finish",u=>{let c=e.absolute,l=i.fd;if(e.mtime&&!this.noMtime){s++;let f=e.atime||new Date,h=e.mtime;ie.futimes(l,f,h,p=>p?ie.utimes(c,f,h,m=>o(m&&p)):o())}if(this[Ss](e)){s++;let f=this[Cs](e),h=this[vs](e);ie.fchown(l,f,h,p=>p?ie.chown(c,f,h,m=>o(m&&p)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",u=>{this[We](u,e),r()}),e.pipe(a)),a.pipe(i)}[Id](e,r){let n=e.mode&4095||this.dmode;this[zr](e.absolute,n,i=>{if(i){this[We](i,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[xi](),e.resume())};e.mtime&&!this.noMtime&&(s++,ie.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Ss](e)&&(s++,ie.chown(e.absolute,this[Cs](e),this[vs](e),o)),o()})}[GA](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[$A](e,r){this[hu](e,e.linkpath,"symlink",r)}[UA](e,r){let n=lt(yr.resolve(this.cwd,e.linkpath));this[hu](e,n,"link",r)}[zA](){this[cu]++}[xi](){this[cu]--,this[Od]()}[Ld](e){this[xi](),e.resume()}[Pd](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Fs}[kd](e){this[zA]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,n=>this[jA](e,n))}[fu](e){e.type==="SymbolicLink"?xN(this.dirCache):e.type!=="Directory"&&AN(this.dirCache,e.absolute)}[jA](e,r){this[fu](e);let n=a=>{this[fu](e),r(a)},i=()=>{this[zr](this.cwd,this.dmode,a=>{if(a){this[We](a,e),n();return}this[Rs]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=lt(yr.dirname(e.absolute));if(a!==this.cwd)return this[zr](a,this.dmode,u=>{if(u){this[We](u,e),n();return}o()})}o()},o=()=>{ie.lstat(e.absolute,(a,u)=>{if(u&&(this.keep||this.newer&&u.mtime>e.mtime)){this[Ld](e),n();return}if(a||this[Pd](e,u))return this[Et](null,e,n);if(u.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(u.mode&4095)!==e.mode,l=f=>this[Et](f,e,n);return c?ie.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return ie.rmdir(e.absolute,c=>this[Et](c,e,n))}if(e.absolute===this.cwd)return this[Et](null,e,n);DN(e.absolute,c=>this[Et](c,e,n))})};this[Rs]?s():i()}[Et](e,r,n){if(e){this[We](e,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[Bd](r,n);case"Link":return this[UA](r,n);case"SymbolicLink":return this[$A](r,n);case"Directory":case"GNUDumpDir":return this[Id](r,n)}}[hu](e,r,n,i){ie[n](r,e.absolute,s=>{s?this[We](s,e):(this[xi](),e.resume()),i()})}},lu=t=>{try{return[null,t()]}catch(e){return[e,null]}},Nd=class extends Ts{[Et](e,r){return super[Et](e,r,()=>{})}[kd](e){if(this[fu](e),!this[Rs]){let s=this[zr](this.cwd,this.dmode);if(s)return this[We](s,e);this[Rs]=!0}if(e.absolute!==this.cwd){let s=lt(yr.dirname(e.absolute));if(s!==this.cwd){let o=this[zr](s,this.dmode);if(o)return this[We](o,e)}}let[r,n]=lu(()=>ie.lstatSync(e.absolute));if(n&&(this.keep||this.newer&&n.mtime>e.mtime))return this[Ld](e);if(r||this[Pd](e,n))return this[Et](null,e);if(n.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(n.mode&4095)!==e.mode,[a]=o?lu(()=>{ie.chmodSync(e.absolute,e.mode)}):[];return this[Et](a,e)}let[s]=lu(()=>ie.rmdirSync(e.absolute));this[Et](s,e)}let[i]=e.absolute===this.cwd?[]:lu(()=>wN(e.absolute));this[Et](i,e)}[Bd](e,r){let n=e.mode&4095||this.fmode,i=a=>{let u;try{ie.closeSync(s)}catch(c){u=c}(a||u)&&this[We](a||u,e),r()},s;try{s=ie.openSync(e.absolute,XA(e.size),n)}catch(a){return i(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[We](a,e)),e.pipe(o)),o.on("data",a=>{try{ie.writeSync(s,a,0,a.length)}catch(u){i(u)}}),o.on("end",a=>{let u=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,l=e.mtime;try{ie.futimesSync(s,c,l)}catch(f){try{ie.utimesSync(e.absolute,c,l)}catch{u=f}}}if(this[Ss](e)){let c=this[Cs](e),l=this[vs](e);try{ie.fchownSync(s,c,l)}catch(f){try{ie.chownSync(e.absolute,c,l)}catch{u=u||f}}}i(u)})}[Id](e,r){let n=e.mode&4095||this.dmode,i=this[zr](e.absolute,n);if(i){this[We](i,e),r();return}if(e.mtime&&!this.noMtime)try{ie.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Ss](e))try{ie.chownSync(e.absolute,this[Cs](e),this[vs](e))}catch{}r(),e.resume()}[zr](e,r){try{return KA.sync(lt(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(n){return n}}[hu](e,r,n,i){try{ie[n+"Sync"](r,e.absolute),i(),e.resume()}catch(s){return this[We](s,e)}}};Ts.Sync=Nd;ZA.exports=Ts});var nx=b((s4,rx)=>{"use strict";var SN=ri(),du=Md(),ex=require("fs"),tx=Ei(),QA=require("path"),qd=li();rx.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=SN(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&CN(n,e),n.file&&n.sync?vN(n):n.file?RN(n,r):n.sync?FN(n):TN(n)};var CN=(t,e)=>{let r=new Map(e.map(s=>[qd(s),!0])),n=t.filter,i=(s,o)=>{let a=o||QA.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(QA.dirname(s),a);return r.set(s,u),u};t.filter=n?(s,o)=>n(s,o)&&i(qd(s)):s=>i(qd(s))},vN=t=>{let e=new du.Sync(t),r=t.file,n=ex.statSync(r),i=t.maxReadSize||16*1024*1024;new tx.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(e)},RN=(t,e)=>{let r=new du(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),ex.stat(i,(u,c)=>{if(u)a(u);else{let l=new tx.ReadStream(i,{readSize:n,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},FN=t=>new du.Sync(t),TN=t=>new du(t)});var ix=b(ve=>{"use strict";ve.c=ve.create=qw();ve.r=ve.replace=bd();ve.t=ve.list=tu();ve.u=ve.update=Yw();ve.x=ve.extract=nx();ve.Pack=Ha();ve.Unpack=Md();ve.Parse=eu();ve.ReadEntry=Aa();ve.WriteEntry=Yh();ve.Header=ci();ve.Pax=Sa();ve.types=Th()});var Er=b((_r,pu)=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});var sx=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function ON(t){return sx.includes(t)}var kN=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...sx];function PN(t){return kN.includes(t)}var BN=["null","undefined","string","number","bigint","boolean","symbol"];function IN(t){return BN.includes(t)}function Si(t){return e=>typeof e===t}var{toString:ox}=Object.prototype,Os=t=>{let e=ox.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&E.domElement(t))return"HTMLElement";if(PN(e))return e},le=t=>e=>Os(e)===t;function E(t){if(t===null)return"null";switch(typeof t){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(E.observable(t))return"Observable";if(E.array(t))return"Array";if(E.buffer(t))return"Buffer";let e=Os(t);if(e)return e;if(t instanceof String||t instanceof Boolean||t instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}E.undefined=Si("undefined");E.string=Si("string");var LN=Si("number");E.number=t=>LN(t)&&!E.nan(t);E.bigint=Si("bigint");E.function_=Si("function");E.null_=t=>t===null;E.class_=t=>E.function_(t)&&t.toString().startsWith("class ");E.boolean=t=>t===!0||t===!1;E.symbol=Si("symbol");E.numericString=t=>E.string(t)&&!E.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));E.array=(t,e)=>Array.isArray(t)?E.function_(e)?t.every(e):!0:!1;E.buffer=t=>{var e,r,n,i;return(i=(n=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,t))!==null&&i!==void 0?i:!1};E.blob=t=>le("Blob")(t);E.nullOrUndefined=t=>E.null_(t)||E.undefined(t);E.object=t=>!E.null_(t)&&(typeof t=="object"||E.function_(t));E.iterable=t=>{var e;return E.function_((e=t)===null||e===void 0?void 0:e[Symbol.iterator])};E.asyncIterable=t=>{var e;return E.function_((e=t)===null||e===void 0?void 0:e[Symbol.asyncIterator])};E.generator=t=>{var e,r;return E.iterable(t)&&E.function_((e=t)===null||e===void 0?void 0:e.next)&&E.function_((r=t)===null||r===void 0?void 0:r.throw)};E.asyncGenerator=t=>E.asyncIterable(t)&&E.function_(t.next)&&E.function_(t.throw);E.nativePromise=t=>le("Promise")(t);var NN=t=>{var e,r;return E.function_((e=t)===null||e===void 0?void 0:e.then)&&E.function_((r=t)===null||r===void 0?void 0:r.catch)};E.promise=t=>E.nativePromise(t)||NN(t);E.generatorFunction=le("GeneratorFunction");E.asyncGeneratorFunction=t=>Os(t)==="AsyncGeneratorFunction";E.asyncFunction=t=>Os(t)==="AsyncFunction";E.boundFunction=t=>E.function_(t)&&!t.hasOwnProperty("prototype");E.regExp=le("RegExp");E.date=le("Date");E.error=le("Error");E.map=t=>le("Map")(t);E.set=t=>le("Set")(t);E.weakMap=t=>le("WeakMap")(t);E.weakSet=t=>le("WeakSet")(t);E.int8Array=le("Int8Array");E.uint8Array=le("Uint8Array");E.uint8ClampedArray=le("Uint8ClampedArray");E.int16Array=le("Int16Array");E.uint16Array=le("Uint16Array");E.int32Array=le("Int32Array");E.uint32Array=le("Uint32Array");E.float32Array=le("Float32Array");E.float64Array=le("Float64Array");E.bigInt64Array=le("BigInt64Array");E.bigUint64Array=le("BigUint64Array");E.arrayBuffer=le("ArrayBuffer");E.sharedArrayBuffer=le("SharedArrayBuffer");E.dataView=le("DataView");E.enumCase=(t,e)=>Object.values(e).includes(t);E.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;E.urlInstance=t=>le("URL")(t);E.urlString=t=>{if(!E.string(t))return!1;try{return new URL(t),!0}catch{return!1}};E.truthy=t=>!!t;E.falsy=t=>!t;E.nan=t=>Number.isNaN(t);E.primitive=t=>E.null_(t)||IN(typeof t);E.integer=t=>Number.isInteger(t);E.safeInteger=t=>Number.isSafeInteger(t);E.plainObject=t=>{if(ox.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};E.typedArray=t=>ON(Os(t));var MN=t=>E.safeInteger(t)&&t>=0;E.arrayLike=t=>!E.nullOrUndefined(t)&&!E.function_(t)&&MN(t.length);E.inRange=(t,e)=>{if(E.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(E.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var qN=1,HN=["innerHTML","ownerDocument","style","attributes","nodeValue"];E.domElement=t=>E.object(t)&&t.nodeType===qN&&E.string(t.nodeName)&&!E.plainObject(t)&&HN.every(e=>e in t);E.observable=t=>{var e,r,n,i;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((i=(n=t)["@@observable"])===null||i===void 0?void 0:i.call(n)):!1};E.nodeStream=t=>E.object(t)&&E.function_(t.pipe)&&!E.observable(t);E.infinite=t=>t===1/0||t===-1/0;var ax=t=>e=>E.integer(e)&&Math.abs(e%2)===t;E.evenInteger=ax(0);E.oddInteger=ax(1);E.emptyArray=t=>E.array(t)&&t.length===0;E.nonEmptyArray=t=>E.array(t)&&t.length>0;E.emptyString=t=>E.string(t)&&t.length===0;var jN=t=>E.string(t)&&!/\S/.test(t);E.emptyStringOrWhitespace=t=>E.emptyString(t)||jN(t);E.nonEmptyString=t=>E.string(t)&&t.length>0;E.nonEmptyStringAndNotWhitespace=t=>E.string(t)&&!E.emptyStringOrWhitespace(t);E.emptyObject=t=>E.object(t)&&!E.map(t)&&!E.set(t)&&Object.keys(t).length===0;E.nonEmptyObject=t=>E.object(t)&&!E.map(t)&&!E.set(t)&&Object.keys(t).length>0;E.emptySet=t=>E.set(t)&&t.size===0;E.nonEmptySet=t=>E.set(t)&&t.size>0;E.emptyMap=t=>E.map(t)&&t.size===0;E.nonEmptyMap=t=>E.map(t)&&t.size>0;E.propertyKey=t=>E.any([E.string,E.number,E.symbol],t);E.formData=t=>le("FormData")(t);E.urlSearchParams=t=>le("URLSearchParams")(t);var ux=(t,e,r)=>{if(!E.function_(e))throw new TypeError(`Invalid predicate: ${JSON.stringify(e)}`);if(r.length===0)throw new TypeError("Invalid number of values");return t.call(r,e)};E.any=(t,...e)=>(E.array(t)?t:[t]).some(n=>ux(Array.prototype.some,n,e));E.all=(t,...e)=>ux(Array.prototype.every,t,e);var P=(t,e,r,n={})=>{if(!t){let{multipleValues:i}=n,s=i?`received values of types ${[...new Set(r.map(o=>`\`${E(o)}\``))].join(", ")}`:`received value of type \`${E(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${s}.`)}};_r.assert={undefined:t=>P(E.undefined(t),"undefined",t),string:t=>P(E.string(t),"string",t),number:t=>P(E.number(t),"number",t),bigint:t=>P(E.bigint(t),"bigint",t),function_:t=>P(E.function_(t),"Function",t),null_:t=>P(E.null_(t),"null",t),class_:t=>P(E.class_(t),"Class",t),boolean:t=>P(E.boolean(t),"boolean",t),symbol:t=>P(E.symbol(t),"symbol",t),numericString:t=>P(E.numericString(t),"string with a number",t),array:(t,e)=>{P(E.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>P(E.buffer(t),"Buffer",t),blob:t=>P(E.blob(t),"Blob",t),nullOrUndefined:t=>P(E.nullOrUndefined(t),"null or undefined",t),object:t=>P(E.object(t),"Object",t),iterable:t=>P(E.iterable(t),"Iterable",t),asyncIterable:t=>P(E.asyncIterable(t),"AsyncIterable",t),generator:t=>P(E.generator(t),"Generator",t),asyncGenerator:t=>P(E.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>P(E.nativePromise(t),"native Promise",t),promise:t=>P(E.promise(t),"Promise",t),generatorFunction:t=>P(E.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>P(E.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>P(E.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>P(E.boundFunction(t),"Function",t),regExp:t=>P(E.regExp(t),"RegExp",t),date:t=>P(E.date(t),"Date",t),error:t=>P(E.error(t),"Error",t),map:t=>P(E.map(t),"Map",t),set:t=>P(E.set(t),"Set",t),weakMap:t=>P(E.weakMap(t),"WeakMap",t),weakSet:t=>P(E.weakSet(t),"WeakSet",t),int8Array:t=>P(E.int8Array(t),"Int8Array",t),uint8Array:t=>P(E.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>P(E.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>P(E.int16Array(t),"Int16Array",t),uint16Array:t=>P(E.uint16Array(t),"Uint16Array",t),int32Array:t=>P(E.int32Array(t),"Int32Array",t),uint32Array:t=>P(E.uint32Array(t),"Uint32Array",t),float32Array:t=>P(E.float32Array(t),"Float32Array",t),float64Array:t=>P(E.float64Array(t),"Float64Array",t),bigInt64Array:t=>P(E.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>P(E.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>P(E.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>P(E.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>P(E.dataView(t),"DataView",t),enumCase:(t,e)=>P(E.enumCase(t,e),"EnumCase",t),urlInstance:t=>P(E.urlInstance(t),"URL",t),urlString:t=>P(E.urlString(t),"string with a URL",t),truthy:t=>P(E.truthy(t),"truthy",t),falsy:t=>P(E.falsy(t),"falsy",t),nan:t=>P(E.nan(t),"NaN",t),primitive:t=>P(E.primitive(t),"primitive",t),integer:t=>P(E.integer(t),"integer",t),safeInteger:t=>P(E.safeInteger(t),"integer",t),plainObject:t=>P(E.plainObject(t),"plain object",t),typedArray:t=>P(E.typedArray(t),"TypedArray",t),arrayLike:t=>P(E.arrayLike(t),"array-like",t),domElement:t=>P(E.domElement(t),"HTMLElement",t),observable:t=>P(E.observable(t),"Observable",t),nodeStream:t=>P(E.nodeStream(t),"Node.js Stream",t),infinite:t=>P(E.infinite(t),"infinite number",t),emptyArray:t=>P(E.emptyArray(t),"empty array",t),nonEmptyArray:t=>P(E.nonEmptyArray(t),"non-empty array",t),emptyString:t=>P(E.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>P(E.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>P(E.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>P(E.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>P(E.emptyObject(t),"empty object",t),nonEmptyObject:t=>P(E.nonEmptyObject(t),"non-empty object",t),emptySet:t=>P(E.emptySet(t),"empty set",t),nonEmptySet:t=>P(E.nonEmptySet(t),"non-empty set",t),emptyMap:t=>P(E.emptyMap(t),"empty map",t),nonEmptyMap:t=>P(E.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>P(E.propertyKey(t),"PropertyKey",t),formData:t=>P(E.formData(t),"FormData",t),urlSearchParams:t=>P(E.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>P(E.evenInteger(t),"even integer",t),oddInteger:t=>P(E.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>P(E.directInstanceOf(t,e),"T",t),inRange:(t,e)=>P(E.inRange(t,e),"in range",t),any:(t,...e)=>P(E.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>P(E.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(E,{class:{value:E.class_},function:{value:E.function_},null:{value:E.null_}});Object.defineProperties(_r.assert,{class:{value:_r.assert.class_},function:{value:_r.assert.function_},null:{value:_r.assert.null_}});_r.default=E;pu.exports=E;pu.exports.default=E;pu.exports.assert=_r.assert});var cx=b((a4,Hd)=>{"use strict";var mu=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},Ci=class{static fn(e){return(...r)=>new Ci((n,i,s)=>{r.push(s),e(...r).then(n,i)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,n)=>{this._reject=n;let i=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,n(a)},o=a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)};return Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:a=>{this._rejectOnCancel=a}}}),e(i,s,o)})}then(e,r){return this._promise.then(e,r)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let r of this._cancelHandlers)r()}catch(r){this._reject(r);return}this._rejectOnCancel&&this._reject(new mu(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(Ci.prototype,Promise.prototype);Hd.exports=Ci;Hd.exports.CancelError=mu});var lx=b(($d,Ud)=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});function $N(t){return t.encrypted}var jd=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",i=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{n&&r.connect(),$N(t)&&i&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),s&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&s&&r.close(t._hadError)};$d.default=jd;Ud.exports=jd;Ud.exports.default=jd});var fx=b((Wd,zd)=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});var UN=lx(),GN=require("util"),WN=Number(process.versions.node.split(".")[0]),Gd=t=>{if(t.timings)return t.timings;let e={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};t.timings=e;let r=a=>{let u=a.emit.bind(a);a.emit=(c,...l)=>(c==="error"&&(e.error=Date.now(),e.phases.total=e.error-e.start,a.emit=u),u(c,...l))};r(t);let n=()=>{e.abort=Date.now(),(!e.response||WN>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",n);let i=a=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,GN.types.isProxy(a))return;let u=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};a.prependOnceListener("lookup",u),UN.default(a,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(a.removeListener("lookup",u),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};t.socket?i(t.socket):t.prependOnceListener("socket",i);let s=()=>{var a;e.upload=Date.now(),e.phases.request=e.upload-((a=e.secureConnect)!==null&&a!==void 0?a:e.connect)};return(()=>typeof t.writableFinished=="boolean"?t.writableFinished:t.finished&&t.outputSize===0&&(!t.socket||t.socket.writableLength===0))()?s():t.prependOnceListener("finish",s),t.prependOnceListener("response",a=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,a.timings=e,r(a),a.prependOnceListener("end",()=>{e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start}),a.prependOnceListener("aborted",n)}),e};Wd.default=Gd;zd.exports=Gd;zd.exports.default=Gd});var _x=b((u4,Kd)=>{"use strict";var{V4MAPPED:zN,ADDRCONFIG:VN,ALL:yx,promises:{Resolver:hx},lookup:YN}=require("dns"),{promisify:Vd}=require("util"),KN=require("os"),vi=Symbol("cacheableLookupCreateConnection"),Yd=Symbol("cacheableLookupInstance"),dx=Symbol("expires"),JN=typeof yx=="number",px=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},XN=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},mx=()=>{let t=!1,e=!1;for(let r of Object.values(KN.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},ZN=t=>Symbol.iterator in t,gx={ttl:!0},QN={all:!0},gu=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:i=.15,resolver:s=new hx,lookup:o=YN}={}){if(this.maxTtl=r,this.errorTtl=i,this._cache=e,this._resolver=s,this._dnsLookup=Vd(o),this._resolver instanceof hx?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=Vd(this._resolver.resolve4.bind(this._resolver)),this._resolve6=Vd(this._resolver.resolve6.bind(this._resolver))),this._iface=mx(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,n<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},n*1e3);a.unref&&a.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,r,n){if(typeof r=="function"?(n=r,r={}):typeof r=="number"&&(r={family:r}),!n)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(i=>{r.all?n(null,i):n(null,i.address,i.family,i.expires,i.ttl)},n)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(e);if(r.family===6){let i=n.filter(s=>s.family===6);r.hints&zN&&(JN&&r.hints&yx||i.length===0)?XN(n):n=i}else r.family===4&&(n=n.filter(i=>i.family===4));if(r.hints&VN){let{_iface:i}=this;n=n.filter(s=>s.family===6?i.has6:i.has4)}if(n.length===0){let i=new Error(`cacheableLookup ENOTFOUND ${e}`);throw i.code="ENOTFOUND",i.hostname=e,i}return r.all?n:n[0]}async query(e){let r=await this._cache.get(e);if(!r){let n=this._pending[e];if(n)r=await n;else{let i=this.queryAndCache(e);this._pending[e]=i;try{r=await i}finally{delete this._pending[e]}}}return r=r.map(n=>({...n})),r}async _resolve(e){let r=async c=>{try{return await c}catch(l){if(l.code==="ENODATA"||l.code==="ENOTFOUND")return[];throw l}},[n,i]=await Promise.all([this._resolve4(e,gx),this._resolve6(e,gx)].map(c=>r(c))),s=0,o=0,a=0,u=Date.now();for(let c of n)c.family=4,c.expires=u+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of i)c.family=6,c.expires=u+c.ttl*1e3,o=Math.max(o,c.ttl);return n.length>0?i.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...n,...i],cacheTtl:a}}async _lookup(e){try{return{entries:await this._dnsLookup(e,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(e,r,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[dx]=Date.now()+n;try{await this._cache.set(e,r,n)}catch(i){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=i,s}}ZN(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,QN);let r=await this._resolve(e);r.entries.length===0&&this._fallback&&(r=await this._lookup(e),r.entries.length!==0&&this._hostnamesToFallback.add(e));let n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,n),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,i=Date.now();for(let[s,o]of this._cache){let a=o[dx];i>=a?this._cache.delete(s):a<n&&(n=a)}n!==1/0&&this._tick(n-i)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(px(e),vi in e)throw new Error("CacheableLookup has been already installed");e[vi]=e.createConnection,e[Yd]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[vi](r,n))}uninstall(e){if(px(e),e[vi]){if(e[Yd]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[vi],delete e[vi],delete e[Yd]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=mx(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};Kd.exports=gu;Kd.exports.default=gu});var Dx=b((c4,bx)=>{"use strict";var e3="text/plain",t3="us-ascii",Ex=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),r3=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=e?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let u=(o.shift()||"").toLowerCase(),l=[...o.map(f=>{let[h,p=""]=f.split("=").map(m=>m.trim());return h==="charset"&&(p=p.toLowerCase(),p===t3)?"":`${h}${p?`=${p}`:""}`}).filter(Boolean)];return a&&l.push("base64"),(l.length!==0||u&&u!==e3)&&l.unshift(u),`data:${l.join(";")},${a?i.trim():i}${s?`#${s}`:""}`},n3=(t,e)=>{if(e={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...e},t=t.trim(),/^data:/i.test(t))return r3(t,e);if(/^view-source:/i.test(t))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let i=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),e.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),e.stripAuthentication&&(i.username="",i.password=""),e.stripHash?i.hash="":e.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname&&(i.pathname=i.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];Ex(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...i.searchParams.keys()])Ex(o,e.removeQueryParameters)&&i.searchParams.delete(o);e.removeQueryParameters===!0&&(i.search=""),e.sortQueryParameters&&i.searchParams.sort(),e.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=t;return t=i.toString(),!e.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};bx.exports=n3});var xx=b((l4,Ax)=>{Ax.exports=wx;function wx(t,e){if(t&&e)return wx(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var Xd=b((f4,Jd)=>{var Sx=xx();Jd.exports=Sx(yu);Jd.exports.strict=Sx(Cx);yu.proto=yu(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return yu(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Cx(this)},configurable:!0})});function yu(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function Cx(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var Fx=b((h4,Rx)=>{var i3=Xd(),s3=function(){},o3=function(t){return t.setHeader&&typeof t.abort=="function"},a3=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},vx=function(t,e,r){if(typeof e=="function")return vx(t,null,e);e||(e={}),r=i3(r||s3);var n=t._writableState,i=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,a=!1,u=function(){t.writable||c()},c=function(){o=!1,s||r.call(t)},l=function(){s=!1,o||r.call(t)},f=function(g){r.call(t,g?new Error("exited with error code: "+g):null)},h=function(g){r.call(t,g)},p=function(){process.nextTick(m)},m=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},_=function(){t.req.on("finish",c)};return o3(t)?(t.on("complete",c),t.on("abort",p),t.req?_():t.on("request",_)):o&&!n&&(t.on("end",u),t.on("close",u)),a3(t)&&t.on("exit",f),t.on("end",l),t.on("finish",c),e.error!==!1&&t.on("error",h),t.on("close",p),function(){a=!0,t.removeListener("complete",c),t.removeListener("abort",p),t.removeListener("request",_),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("exit",f),t.removeListener("end",l),t.removeListener("error",h),t.removeListener("close",p)}};Rx.exports=vx});var kx=b((d4,Ox)=>{var u3=Xd(),c3=Fx(),Zd=require("fs"),ks=function(){},l3=/^v?\.0/.test(process.version),_u=function(t){return typeof t=="function"},f3=function(t){return!l3||!Zd?!1:(t instanceof(Zd.ReadStream||ks)||t instanceof(Zd.WriteStream||ks))&&_u(t.close)},h3=function(t){return t.setHeader&&_u(t.abort)},d3=function(t,e,r,n){n=u3(n);var i=!1;t.on("close",function(){i=!0}),c3(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,f3(t))return t.close(ks);if(h3(t))return t.abort();if(_u(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},Tx=function(t){t()},p3=function(t,e){return t.pipe(e)},m3=function(){var t=Array.prototype.slice.call(arguments),e=_u(t[t.length-1]||ks)&&t.pop()||ks;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,a=s>0;return d3(i,o,a,function(u){r||(r=u),u&&n.forEach(Tx),!o&&(n.forEach(Tx),e(r))})});return t.reduce(p3)};Ox.exports=m3});var Bx=b((p4,Px)=>{"use strict";var{PassThrough:g3}=require("stream");Px.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new g3({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),i?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var Ix=b((m4,Ri)=>{"use strict";var{constants:y3}=require("buffer"),_3=kx(),E3=Bx(),Eu=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function bu(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=y3.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=_3(t,E3(e),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new Eu)})}),n.getBufferedValue()}Ri.exports=bu;Ri.exports.default=bu;Ri.exports.buffer=(t,e)=>bu(t,{...e,encoding:"buffer"});Ri.exports.array=(t,e)=>bu(t,{...e,array:!0});Ri.exports.MaxBufferError=Eu});var Nx=b((y4,Lx)=>{"use strict";var b3=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),D3=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),w3=new Set([500,502,503,504]),A3={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},x3={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function xn(t){let e=parseInt(t,10);return isFinite(e)?e:0}function S3(t){return t?w3.has(t.status):!0}function Qd(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[i,s]=n.split(/=/,2);e[i.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function C3(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(e.length)return e.join(", ")}Lx.exports=class{constructor(e,r,{shared:n,cacheHeuristic:i,immutableMinTimeToLive:s,ignoreCargoCult:o,_fromObject:a}={}){if(a){this._fromObject(a);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=n!==!1,this._cacheHeuristic=i!==void 0?i:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=Qd(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=Qd(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":C3(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&D3.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||b3.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let r=Qd(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.headers.pragma)||r["max-age"]&&this.age()>r["max-age"]||r["min-fresh"]&&this.timeToLive()<1e3*r["min-fresh"]||this.stale()&&!(r["max-stale"]&&!this._rescc["must-revalidate"]&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(e,!1)}_requestMatches(e,r){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let n of r)if(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)A3[n]||(r[n]=e[n]);if(e.connection){let n=e.connection.trim().split(/\s*,\s*/);for(let i of n)delete r[i]}if(r.warning){let n=r.warning.split(/,/).filter(i=>!/^\s*1[0-9][0-9]/.test(i));n.length?r.warning=n.join(",").trim():delete r.warning}return r}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return xn(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return xn(this._rescc["s-maxage"])}if(this._rescc["max-age"])return xn(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+xn(this._rescc["stale-if-error"]),n=e+xn(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+xn(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+xn(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let i=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));i.length?r["if-none-match"]=i.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&S3(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;if(r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0),!n)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let i={};for(let o in this._resHeaders)i[o]=o in r.headers&&!x3[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:i});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var Du=b((_4,Mx)=>{"use strict";Mx.exports=t=>{let e={};for(let[r,n]of Object.entries(t))e[r.toLowerCase()]=n;return e}});var Hx=b((E4,qx)=>{"use strict";var v3=require("stream").Readable,R3=Du(),ep=class extends v3{constructor(e,r,n,i){if(typeof e!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof i!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=R3(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};qx.exports=ep});var $x=b((b4,jx)=>{"use strict";var F3=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];jx.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(F3));for(let n of r)n in e||(e[n]=typeof t[n]=="function"?t[n].bind(t):t[n])}});var Gx=b((D4,Ux)=>{"use strict";var T3=require("stream").PassThrough,O3=$x(),k3=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new T3;return O3(t,e),t.pipe(e)};Ux.exports=k3});var Wx=b(tp=>{tp.stringify=function t(e){if(typeof e=="undefined")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",n=Array.isArray(e);r=n?"[":"{";var i=!0;for(var s in e){var o=typeof e[s]=="function"||!n&&typeof e[s]=="undefined";Object.hasOwnProperty.call(e,s)&&!o&&(i||(r+=","),i=!1,n?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e=="undefined"?"null":JSON.stringify(e)};tp.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var Kx=b((A4,Yx)=>{"use strict";var P3=require("events"),zx=Wx(),B3=t=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(require(e[r]))(t)}return new Map},Vx=["sqlite","postgres","mysql","mongo","redis","tiered"],rp=class extends P3{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:zx.stringify,deserialize:zx.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let s={...this.opts};this.opts.store=B3(s)}if(this.opts.compression){let s=this.opts.compression;this.opts.serialize=s.serialize.bind(s),this.opts.deserialize=s.deserialize.bind(s)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",s=>this.emit("error",s)),this.opts.store.namespace=this.opts.namespace;let i=s=>async function*(){for await(let[o,a]of typeof s=="function"?s(this.opts.store.namespace):s){let u=this.opts.deserialize(a);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof u.expires=="number"&&Date.now()>u.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),u.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=i(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=i(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return Vx.includes(this.opts.store.opts.dialect)||Vx.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:n}=this.opts,i=Array.isArray(e),s=i?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(i&&n.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>n.get(a)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null)return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(a).then(()=>{}):r&&r.raw?u:u.value}));return Promise.allSettled(o).then(a=>{let u=[];for(let c of a)u.push(c.value);return u})}return Promise.resolve().then(()=>i?n.getMany(s):n.get(s)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(i){let a=[];for(let u of o){if(typeof u=="string"&&(u=this.opts.deserialize(u)),u==null){a.push(void 0);continue}typeof u.expires=="number"&&Date.now()>u.expires?(this.delete(e).then(()=>{}),a.push(void 0)):a.push(r&&r.raw?u:u.value)}return a}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value}})}set(e,r,n){let i=this._getKeyPrefix(e);typeof n=="undefined"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>s.set(i,o,n)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let i=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of i)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(i))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};Yx.exports=rp});var Zx=b((x4,Xx)=>{"use strict";var I3=require("events"),wu=require("url"),L3=Dx(),N3=Ix(),np=Nx(),Jx=Hx(),M3=Du(),q3=Gx(),H3=Kx(),Ot=class{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new H3({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,n)=>{let i;if(typeof r=="string")i=ip(wu.parse(r)),r={};else if(r instanceof wu.URL)i=ip(wu.parse(r.toString())),r={};else{let[f,...h]=(r.path||"").split("?"),p=h.length>0?`?${h.join("?")}`:"";i=ip({...r,pathname:f,search:p})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...j3(i)},r.headers=M3(r.headers);let s=new I3,o=L3(wu.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,u=!1,c=!1,l=f=>{c=!0;let h=!1,p,m=new Promise(g=>{p=()=>{h||(h=!0,g())}}),_=g=>{if(u&&!f.forceRefresh){g.status=g.statusCode;let C=np.fromObject(u.cachePolicy).revalidatedPolicy(f,g);if(!C.modified){let q=C.policy.responseHeaders();g=new Jx(u.statusCode,q,u.body,u.url),g.cachePolicy=C.policy,g.fromCache=!0}}g.fromCache||(g.cachePolicy=new np(f,g,f),g.fromCache=!1);let D;f.cache&&g.cachePolicy.storable()?(D=q3(g),(async()=>{try{let C=N3.buffer(g);if(await Promise.race([m,new Promise(K=>g.once("end",K))]),h)return;let q=await C,$={cachePolicy:g.cachePolicy.toObject(),url:g.url,statusCode:g.fromCache?u.statusCode:g.statusCode,body:q},N=f.strictTtl?g.cachePolicy.timeToLive():void 0;f.maxTtl&&(N=N?Math.min(N,f.maxTtl):f.maxTtl),await this.cache.set(a,$,N)}catch(C){s.emit("error",new Ot.CacheError(C))}})()):f.cache&&u&&(async()=>{try{await this.cache.delete(a)}catch(C){s.emit("error",new Ot.CacheError(C))}})(),s.emit("response",D||g),typeof n=="function"&&n(D||g)};try{let g=e(f,_);g.once("error",p),g.once("abort",p),s.emit("request",g)}catch(g){s.emit("error",new Ot.RequestError(g))}};return(async()=>{let f=async p=>{await Promise.resolve();let m=p.cache?await this.cache.get(a):void 0;if(typeof m=="undefined")return l(p);let _=np.fromObject(m.cachePolicy);if(_.satisfiesWithoutRevalidation(p)&&!p.forceRefresh){let g=_.responseHeaders(),D=new Jx(m.statusCode,g,m.body,m.url);D.cachePolicy=_,D.fromCache=!0,s.emit("response",D),typeof n=="function"&&n(D)}else u=m,p.headers=_.revalidationHeaders(p),l(p)},h=p=>s.emit("error",new Ot.CacheError(p));this.cache.once("error",h),s.on("response",()=>this.cache.removeListener("error",h));try{await f(r)}catch(p){r.automaticFailover&&!c&&l(r),s.emit("error",new Ot.CacheError(p))}})(),s}}};function j3(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function ip(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}Ot.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};Ot.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};Xx.exports=Ot});var eS=b((v4,Qx)=>{"use strict";var $3=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];Qx.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat($3)),n={};for(let i of r)i in e||(n[i]={get(){let s=t[i];return typeof s=="function"?s.bind(t):s},set(s){t[i]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var rS=b((R4,tS)=>{"use strict";var{Transform:U3,PassThrough:G3}=require("stream"),sp=require("zlib"),W3=eS();tS.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof sp.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,i=new U3({transform(a,u,c){n=!1,c(null,a)},flush(a){a()}}),s=new G3({autoDestroy:!1,destroy(a,u){t.destroy(),u(a)}}),o=r?sp.createBrotliDecompress():sp.createUnzip();return o.once("error",a=>{if(n&&!t.readable){s.end();return}s.destroy(a)}),W3(t,s),t.pipe(i).pipe(o).pipe(s),s}});var ap=b((F4,nS)=>{"use strict";var op=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[n,i]of this.oldCache.entries())this.onEviction(n,i);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};nS.exports=op});var cp=b((T4,aS)=>{"use strict";var z3=require("events"),V3=require("tls"),Y3=require("http2"),K3=ap(),Je=Symbol("currentStreamsCount"),iS=Symbol("request"),bt=Symbol("cachedOriginSet"),Fi=Symbol("gracefullyClosing"),J3=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],X3=(t,e,r)=>{let n=0,i=t.length;for(;n<i;){let s=n+i>>>1;r(t[s],e)?n=s+1:i=s}return n},Z3=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,up=(t,e)=>{for(let r of t)r[bt].length<e[bt].length&&r[bt].every(n=>e[bt].includes(n))&&r[Je]+e[Je]<=e.remoteSettings.maxConcurrentStreams&&oS(r)},Q3=(t,e)=>{for(let r of t)e[bt].length<r[bt].length&&e[bt].every(n=>r[bt].includes(n))&&e[Je]+r[Je]<=r.remoteSettings.maxConcurrentStreams&&oS(e)},sS=({agent:t,isFree:e})=>{let r={};for(let n in t.sessions){let s=t.sessions[n].filter(o=>{let a=o[Yt.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?a:!a});s.length!==0&&(r[n]=s)}return r},oS=t=>{t[Fi]=!0,t[Je]===0&&t.close()},Yt=class extends z3{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:n=10,maxCachedTlsSessions:i=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=n,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new K3({maxSize:i})}static normalizeOrigin(e,r){return typeof e=="string"&&(e=new URL(e)),r&&e.hostname!==r&&(e.hostname=r),e.origin}normalizeOptions(e){let r="";if(e)for(let n of J3)e[n]&&(r+=`:${e[n]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let n=this.queue[e][r];this._sessionsCount<this.maxSessions&&!n.completed&&(n.completed=!0,n())}getSession(e,r,n){return new Promise((i,s)=>{Array.isArray(n)?(n=[...n],i()):n=[{resolve:i,reject:s}];let o=this.normalizeOptions(r),a=Yt.normalizeOrigin(e,r&&r.servername);if(a===void 0){for(let{reject:l}of n)l(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(o in this.sessions){let l=this.sessions[o],f=-1,h=-1,p;for(let m of l){let _=m.remoteSettings.maxConcurrentStreams;if(_<f)break;if(m[bt].includes(a)){let g=m[Je];if(g>=_||m[Fi]||m.destroyed)continue;p||(f=_),g>h&&(p=m,h=g)}}if(p){if(n.length!==1){for(let{reject:m}of n){let _=new Error(`Expected the length of listeners to be 1, got ${n.length}.
|
|
15
|
+
Please report this to https://github.com/szmarczak/http2-wrapper/`);m(_)}return}n[0].resolve(p);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...n),this._tryToCreateNewSession(o,a);return}}else this.queue[o]={};let u=()=>{o in this.queue&&this.queue[o][a]===c&&(delete this.queue[o][a],Object.keys(this.queue[o]).length===0&&delete this.queue[o])},c=()=>{let l=`${a}:${o}`,f=!1;try{let h=Y3.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(l),...r});h[Je]=0,h[Fi]=!1;let p=()=>h[Je]<h.remoteSettings.maxConcurrentStreams,m=!0;h.socket.once("session",g=>{this.tlsSessionCache.set(l,g)}),h.once("error",g=>{for(let{reject:D}of n)D(g);this.tlsSessionCache.delete(l)}),h.setTimeout(this.timeout,()=>{h.destroy()}),h.once("close",()=>{if(f){m&&this._freeSessionsCount--,this._sessionsCount--;let g=this.sessions[o];g.splice(g.indexOf(h),1),g.length===0&&delete this.sessions[o]}else{let g=new Error("Session closed without receiving a SETTINGS frame");g.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:D}of n)D(g);u()}this._tryToCreateNewSession(o,a)});let _=()=>{if(!(!(o in this.queue)||!p())){for(let g of h[bt])if(g in this.queue[o]){let{listeners:D}=this.queue[o][g];for(;D.length!==0&&p();)D.shift().resolve(h);let C=this.queue[o];if(C[g].listeners.length===0&&(delete C[g],Object.keys(C).length===0)){delete this.queue[o];break}if(!p())break}}};h.on("origin",()=>{h[bt]=h.originSet,p()&&(_(),up(this.sessions[o],h))}),h.once("remoteSettings",()=>{if(h.ref(),h.unref(),this._sessionsCount++,c.destroyed){let g=new Error("Agent has been destroyed");for(let D of n)D.reject(g);h.destroy();return}h[bt]=h.originSet;{let g=this.sessions;if(o in g){let D=g[o];D.splice(X3(D,h,Z3),0,h)}else g[o]=[h]}this._freeSessionsCount+=1,f=!0,this.emit("session",h),_(),u(),h[Je]===0&&this._freeSessionsCount>this.maxFreeSessions&&h.close(),n.length!==0&&(this.getSession(a,r,n),n.length=0),h.on("remoteSettings",()=>{_(),up(this.sessions[o],h)})}),h[iS]=h.request,h.request=(g,D)=>{if(h[Fi])throw new Error("The session is gracefully closing. No new streams are allowed.");let C=h[iS](g,D);return h.ref(),++h[Je],h[Je]===h.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,C.once("close",()=>{if(m=p(),--h[Je],!h.destroyed&&!h.closed&&(Q3(this.sessions[o],h),p()&&!h.closed)){m||(this._freeSessionsCount++,m=!0);let q=h[Je]===0;q&&h.unref(),q&&(this._freeSessionsCount>this.maxFreeSessions||h[Fi])?h.close():(up(this.sessions[o],h),_())}}),C}}catch(h){for(let p of n)p.reject(h);u()}};c.listeners=n,c.completed=!1,c.destroyed=!1,this.queue[o][a]=c,this._tryToCreateNewSession(o,a)})}request(e,r,n,i){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(n,i))}catch(u){o(u)}}}])})}createConnection(e,r){return Yt.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let n=e.port||443,i=e.hostname||e.host;return typeof r.servername=="undefined"&&(r.servername=i),V3.connect(n,i,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[Je]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let n of r)n.destroy(e);for(let r of Object.values(this.queue))for(let n of Object.values(r))n.destroyed=!0;this.queue={}}get freeSessions(){return sS({agent:this,isFree:!0})}get busySessions(){return sS({agent:this,isFree:!1})}};Yt.kCurrentStreamsCount=Je;Yt.kGracefullyClosing=Fi;aS.exports={Agent:Yt,globalAgent:new Yt}});var fp=b((O4,uS)=>{"use strict";var{Readable:e8}=require("stream"),lp=class extends e8{constructor(e,r){super({highWaterMark:r,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};uS.exports=lp});var hp=b((k4,cS)=>{"use strict";cS.exports=t=>{let e={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var fS=b((P4,lS)=>{"use strict";lS.exports=(t,e,r)=>{for(let n of r)t.on(n,(...i)=>e.emit(n,...i))}});var dS=b((B4,hS)=>{"use strict";hS.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var mS=b((L4,pS)=>{"use strict";var Ti=(t,e,r)=>{pS.exports[e]=class extends t{constructor(...i){super(typeof r=="string"?r:r(i)),this.name=`${super.name} [${e}]`,this.code=e}}};Ti(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${n?"one of":"of"} type ${r}. Received ${typeof t[2]}`});Ti(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);Ti(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);Ti(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);Ti(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);Ti(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var yp=b((N4,wS)=>{"use strict";var t8=require("http2"),{Writable:r8}=require("stream"),{Agent:gS,globalAgent:n8}=cp(),i8=fp(),s8=hp(),o8=fS(),a8=dS(),{ERR_INVALID_ARG_TYPE:dp,ERR_INVALID_PROTOCOL:u8,ERR_HTTP_HEADERS_SENT:yS,ERR_INVALID_HTTP_TOKEN:c8,ERR_HTTP_INVALID_HEADER_VALUE:l8,ERR_INVALID_CHAR:f8}=mS(),{HTTP2_HEADER_STATUS:_S,HTTP2_HEADER_METHOD:ES,HTTP2_HEADER_PATH:bS,HTTP2_METHOD_CONNECT:h8}=t8.constants,ze=Symbol("headers"),pp=Symbol("origin"),mp=Symbol("session"),DS=Symbol("options"),Au=Symbol("flushedHeaders"),Ps=Symbol("jobs"),d8=/^[\^`\-\w!#$%&*+.|~]+$/,p8=/[^\t\u0020-\u007E\u0080-\u00FF]/,gp=class extends r8{constructor(e,r,n){super({autoDestroy:!1});let i=typeof e=="string"||e instanceof URL;if(i&&(e=s8(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(n=r,r=i?e:{...e}):r={...e,...r},r.h2session)this[mp]=r.h2session;else if(r.agent===!1)this.agent=new gS({maxFreeSessions:0});else if(typeof r.agent=="undefined"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new gS({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=n8;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new dp("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new u8(r.protocol,"https:");let s=r.port||r.defaultPort||this.agent&&this.agent.defaultPort||443,o=r.hostname||r.host||"localhost";delete r.hostname,delete r.host,delete r.port;let{timeout:a}=r;if(r.timeout=void 0,this[ze]=Object.create(null),this[Ps]=[],this.socket=null,this.connection=null,this.method=r.method||"GET",this.path=r.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,r.headers)for(let[u,c]of Object.entries(r.headers))this.setHeader(u,c);r.auth&&!("authorization"in this[ze])&&(this[ze].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[DS]=r,s===443?(this[pp]=`https://${o}`,":authority"in this[ze]||(this[ze][":authority"]=o)):(this[pp]=`https://${o}:${s}`,":authority"in this[ze]||(this[ze][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),n&&this.once("response",n),this[Au]=!1}get method(){return this[ze][ES]}set method(e){e&&(this[ze][ES]=e.toUpperCase())}get path(){return this[ze][bS]}set path(e){e&&(this[ze][bS]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let i=()=>this._request.write(e,r,n);this._request?i():this[Ps].push(i)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[Ps].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(e,r){this.res&&this.res._dump(),this._request&&this._request.destroy(),r(e)}async flushHeaders(){if(this[Au]||this.destroyed)return;this[Au]=!0;let e=this.method===h8,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}e||o8(n,this,["timeout","continue","close","error"]);let i=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};n.once("response",i((o,a,u)=>{let c=new i8(this.socket,n.readableHighWaterMark);this.res=c,c.req=this,c.statusCode=o[_S],c.headers=o,c.rawHeaders=u,c.once("end",()=>{this.aborted?(c.aborted=!0,c.emit("aborted")):(c.complete=!0,c.socket=null,c.connection=null)}),e?(c.upgrade=!0,this.emit("connect",c,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",l=>{!c._dumped&&!c.push(l)&&n.pause()}),n.once("end",()=>{c.push(null)}),this.emit("response",c)||c._dump())})),n.once("headers",i(o=>this.emit("information",{statusCode:o[_S]}))),n.once("trailers",i((o,a,u)=>{let{res:c}=this;c.trailers=o,c.rawTrailers=u}));let{socket:s}=n.session;this.socket=s,this.connection=s;for(let o of this[Ps])o();this.emit("socket",this.socket)};if(this[mp])try{r(this[mp].request(this[ze]))}catch(n){this.emit("error",n)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[pp],this[DS],this[ze]))}catch(n){this.emit("error",n)}}}getHeader(e){if(typeof e!="string")throw new dp("name","string",e);return this[ze][e.toLowerCase()]}get headersSent(){return this[Au]}removeHeader(e){if(typeof e!="string")throw new dp("name","string",e);if(this.headersSent)throw new yS("remove");delete this[ze][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new yS("set");if(typeof e!="string"||!d8.test(e)&&!a8(e))throw new c8("Header name",e);if(typeof r=="undefined")throw new l8(r,e);if(p8.test(r))throw new f8("header content",e);this[ze][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=()=>this._request.setTimeout(e,r);return this._request?n():this[Ps].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};wS.exports=gp});var xS=b((M4,AS)=>{"use strict";var m8=require("tls");AS.exports=(t={},e=m8.connect)=>new Promise((r,n)=>{let i=!1,s,o=async()=>{await u,s.off("timeout",a),s.off("error",n),t.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:i}),i&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:i}))},a=async()=>{i=!0,o()},u=(async()=>{try{s=await e(t,o),s.on("error",n),s.once("timeout",a)}catch(c){n(c)}})()})});var CS=b((q4,SS)=>{"use strict";var g8=require("net");SS.exports=t=>{let e=t.host,r=t.headers&&t.headers.host;return r&&(r.startsWith("[")?r.indexOf("]")===-1?e=r:e=r.slice(1,-1):e=r.split(":",1)[0]),g8.isIP(e)?"":e}});var FS=b((H4,Ep)=>{"use strict";var vS=require("http"),_p=require("https"),y8=xS(),_8=ap(),E8=yp(),b8=CS(),D8=hp(),xu=new _8({maxSize:100}),Bs=new Map,RS=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=()=>{t.emit("free",e,r)};e.on("free",n);let i=()=>{t.removeSocket(e,r)};e.on("close",i);let s=()=>{t.removeSocket(e,r),e.off("close",i),e.off("free",n),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},w8=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!xu.has(e)){if(Bs.has(e))return(await Bs.get(e)).alpnProtocol;let{path:r,agent:n}=t;t.path=t.socketPath;let i=y8(t);Bs.set(e,i);try{let{socket:s,alpnProtocol:o}=await i;if(xu.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=_p,u=_p.Agent.prototype.createConnection;n?n.createConnection===u?RS(n,s,t):s.destroy():a.createConnection===u?RS(a,s,t):s.destroy()}return Bs.delete(e),o}catch(s){throw Bs.delete(e),s}}return xu.get(e)};Ep.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=D8(new URL(t))),typeof e=="function"&&(r=e,e=void 0),e={ALPNProtocols:["h2","http/1.1"],...t,...e,resolveSocket:!0},!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let n=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||b8(e),e.port=e.port||(n?443:80),e._defaultAgent=n?_p.globalAgent:vS.globalAgent;let i=e.agent;if(i){if(i.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=i[n?"https":"http"]}return n&&await w8(e)==="h2"?(i&&(e.agent=i.http2),new E8(e,r)):vS.request(e,r)};Ep.exports.protocolCache=xu});var OS=b((j4,TS)=>{"use strict";var A8=require("http2"),x8=cp(),bp=yp(),S8=fp(),C8=FS(),v8=(t,e,r)=>new bp(t,e,r),R8=(t,e,r)=>{let n=new bp(t,e,r);return n.end(),n};TS.exports={...A8,ClientRequest:bp,IncomingMessage:S8,...x8,request:v8,get:R8,auto:C8}});var wp=b(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var kS=Er();Dp.default=t=>kS.default.nodeStream(t)&&kS.default.function_(t.getBoundary)});var LS=b(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var BS=require("fs"),IS=require("util"),PS=Er(),F8=wp(),T8=IS.promisify(BS.stat);Ap.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(PS.default.string(t))return Buffer.byteLength(t);if(PS.default.buffer(t))return t.length;if(F8.default(t))return IS.promisify(t.getLength.bind(t))();if(t instanceof BS.ReadStream){let{size:r}=await T8(t.path);return r===0?void 0:r}}});var Sp=b(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});function O8(t,e,r){let n={};for(let i of r)n[i]=(...s)=>{e.emit(i,...s)},t.on(i,n[i]);return()=>{for(let i of r)t.off(i,n[i])}}xp.default=O8});var NS=b(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.default=()=>{let t=[];return{once(e,r,n){e.once(r,n),t.push({origin:e,event:r,fn:n})},unhandleAll(){for(let e of t){let{origin:r,event:n,fn:i}=e;r.removeListener(n,i)}t.length=0}}}});var qS=b(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.TimeoutError=void 0;var k8=require("net"),P8=NS(),MS=Symbol("reentry"),B8=()=>{},Su=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};Is.TimeoutError=Su;Is.default=(t,e,r)=>{if(MS in t)return B8;t[MS]=!0;let n=[],{once:i,unhandleAll:s}=P8.default(),o=(f,h,p)=>{var m;let _=setTimeout(h,f,f,p);(m=_.unref)===null||m===void 0||m.call(_);let g=()=>{clearTimeout(_)};return n.push(g),g},{host:a,hostname:u}=r,c=(f,h)=>{t.destroy(new Su(f,h))},l=()=>{for(let f of n)f();s()};if(t.once("error",f=>{if(l(),t.listenerCount("error")===0)throw f}),t.once("close",l),i(t,"response",f=>{i(f,"end",l)}),typeof e.request!="undefined"&&o(e.request,c,"request"),typeof e.socket!="undefined"){let f=()=>{c(e.socket,"socket")};t.setTimeout(e.socket,f),n.push(()=>{t.removeListener("timeout",f)})}return i(t,"socket",f=>{var h;let{socketPath:p}=t;if(f.connecting){let m=!!(p!=null?p:k8.isIP((h=u!=null?u:a)!==null&&h!==void 0?h:"")!==0);if(typeof e.lookup!="undefined"&&!m&&typeof f.address().address=="undefined"){let _=o(e.lookup,c,"lookup");i(f,"lookup",_)}if(typeof e.connect!="undefined"){let _=()=>o(e.connect,c,"connect");m?i(f,"connect",_()):i(f,"lookup",g=>{g===null&&i(f,"connect",_())})}typeof e.secureConnect!="undefined"&&r.protocol==="https:"&&i(f,"connect",()=>{let _=o(e.secureConnect,c,"secureConnect");i(f,"secureConnect",_)})}if(typeof e.send!="undefined"){let m=()=>o(e.send,c,"send");f.connecting?i(f,"connect",()=>{i(t,"upload-complete",m())}):i(t,"upload-complete",m())}}),typeof e.response!="undefined"&&i(t,"upload-complete",()=>{let f=o(e.response,c,"response");i(t,"response",f)}),l}});var jS=b(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});var HS=Er();vp.default=t=>{t=t;let e={protocol:t.protocol,hostname:HS.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return HS.default.string(t.port)&&t.port.length>0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var $S=b(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});var I8=require("url"),L8=["protocol","host","hostname","port","pathname","search"];Rp.default=(t,e)=>{var r,n;if(e.path){if(e.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(e.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(e.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(e.search&&e.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!t){if(!e.protocol)throw new TypeError("No URL protocol specified");t=`${e.protocol}//${(n=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&n!==void 0?n:""}`}let i=new I8.URL(t);if(e.path){let s=e.path.indexOf("?");s===-1?e.pathname=e.path:(e.pathname=e.path.slice(0,s),e.search=e.path.slice(s+1)),delete e.path}for(let s of L8)e[s]&&(i[s]=e[s].toString());return i}});var US=b(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});var Fp=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(e,r){typeof e=="object"?this.weakMap.set(e,r):this.map.set(e,r)}get(e){return typeof e=="object"?this.weakMap.get(e):this.map.get(e)}has(e){return typeof e=="object"?this.weakMap.has(e):this.map.has(e)}};Tp.default=Fp});var kp=b(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});var N8=async t=>{let e=[],r=0;for await(let n of t)e.push(n),r+=Buffer.byteLength(n);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};Op.default=N8});var WS=b(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.dnsLookupIpVersionToFamily=Sn.isDnsLookupIpVersion=void 0;var GS={auto:0,ipv4:4,ipv6:6};Sn.isDnsLookupIpVersion=t=>t in GS;Sn.dnsLookupIpVersionToFamily=t=>{if(Sn.isDnsLookupIpVersion(t))return GS[t];throw new Error("Invalid DNS lookup IP version")}});var Pp=b(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.isResponseOk=void 0;Cu.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var VS=b(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});var zS=new Set;Bp.default=t=>{zS.has(t)||(zS.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var YS=b(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});var me=Er(),M8=(t,e)=>{if(me.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");me.assert.any([me.default.string,me.default.undefined],t.encoding),me.assert.any([me.default.boolean,me.default.undefined],t.resolveBodyOnly),me.assert.any([me.default.boolean,me.default.undefined],t.methodRewriting),me.assert.any([me.default.boolean,me.default.undefined],t.isStream),me.assert.any([me.default.string,me.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:n=>n.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},me.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(n=>n.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):me.default.number(r)&&(t.retry.limit=r),me.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(me.default.number))),me.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:n}=t;if(!me.default.function_(n.transform))throw new Error("`options.pagination.transform` must be implemented");if(!me.default.function_(n.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!me.default.function_(n.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!me.default.function_(n.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return t.responseType==="json"&&t.headers.accept===void 0&&(t.headers.accept="application/json"),t};Ip.default=M8});var KS=b(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.retryAfterStatusCodes=void 0;Ls.retryAfterStatusCodes=new Set([413,429,503]);var q8=({attemptCount:t,retryOptions:e,error:r,retryAfter:n})=>{if(t>e.limit)return 0;let i=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!i||!s&&!o)return 0;if(r.response){if(n)return e.maxRetryAfter===void 0||n>e.maxRetryAfter?0:n;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(t-1)*1e3+a};Ls.default=q8});var qs=b(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.UnsupportedProtocolError=se.ReadError=se.TimeoutError=se.UploadError=se.CacheError=se.HTTPError=se.MaxRedirectsError=se.RequestError=se.setNonEnumerableProperties=se.knownHookEvents=se.withoutBody=se.kIsNormalizedAlready=void 0;var JS=require("util"),XS=require("stream"),H8=require("fs"),Vr=require("url"),ZS=require("http"),Lp=require("http"),j8=require("https"),$8=fx(),U8=_x(),QS=Zx(),G8=rS(),W8=OS(),z8=Du(),S=Er(),V8=LS(),eC=wp(),Y8=Sp(),tC=qS(),K8=jS(),rC=$S(),J8=US(),X8=kp(),nC=WS(),Z8=Pp(),Yr=VS(),Q8=YS(),eM=KS(),Np,Be=Symbol("request"),Fu=Symbol("response"),Oi=Symbol("responseSize"),ki=Symbol("downloadedSize"),Pi=Symbol("bodySize"),Bi=Symbol("uploadedSize"),vu=Symbol("serverResponsesPiped"),iC=Symbol("unproxyEvents"),sC=Symbol("isFromCache"),Mp=Symbol("cancelTimeouts"),oC=Symbol("startedReading"),Ii=Symbol("stopReading"),Ru=Symbol("triggerRead"),Kr=Symbol("body"),Ns=Symbol("jobs"),aC=Symbol("originalResponse"),uC=Symbol("retryTimeout");se.kIsNormalizedAlready=Symbol("isNormalizedAlready");var tM=S.default.string(process.versions.brotli);se.withoutBody=new Set(["GET","HEAD"]);se.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function rM(t){for(let e in t){let r=t[e];if(!S.default.string(r)&&!S.default.number(r)&&!S.default.boolean(r)&&!S.default.null_(r)&&!S.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function nM(t){return S.default.object(t)&&!("statusCode"in t)}var qp=new J8.default,iM=async t=>new Promise((e,r)=>{let n=i=>{r(i)};t.pending||e(),t.once("error",n),t.once("ready",()=>{t.off("error",n),e()})}),sM=new Set([300,301,302,303,304,307,308]),oM=["context","body","json","form"];se.setNonEnumerableProperties=(t,e)=>{let r={};for(let n of t)if(n)for(let i of oM)i in n&&(r[i]={writable:!0,configurable:!0,enumerable:!1,value:n[i]});Object.defineProperties(e,r)};var xe=class extends Error{constructor(e,r,n){var i,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(i=r.code)!==null&&i!==void 0?i:"ERR_GOT_REQUEST_ERROR",n instanceof Lu?(Object.defineProperty(this,"request",{enumerable:!1,value:n}),Object.defineProperty(this,"response",{enumerable:!1,value:n[Fu]}),Object.defineProperty(this,"options",{enumerable:!1,value:n.options})):Object.defineProperty(this,"options",{enumerable:!1,value:n}),this.timings=(s=this.request)===null||s===void 0?void 0:s.timings,S.default.string(r.stack)&&S.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
|
|
16
|
+
`).reverse(),u=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
|
|
17
|
+
`).reverse();for(;u.length!==0&&u[0]===a[0];)a.shift();this.stack=`${this.stack.slice(0,o)}${a.reverse().join(`
|
|
18
|
+
`)}${u.reverse().join(`
|
|
19
|
+
`)}`}}};se.RequestError=xe;var Tu=class extends xe{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};se.MaxRedirectsError=Tu;var Ou=class extends xe{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};se.HTTPError=Ou;var ku=class extends xe{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};se.CacheError=ku;var Pu=class extends xe{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};se.UploadError=Pu;var Bu=class extends xe{constructor(e,r,n){super(e.message,e,n),this.name="TimeoutError",this.event=e.event,this.timings=r}};se.TimeoutError=Bu;var Ms=class extends xe{constructor(e,r){super(e.message,e,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};se.ReadError=Ms;var Iu=class extends xe{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};se.UnsupportedProtocolError=Iu;var aM=["socket","connect","continue","information","upgrade","timeout"],Lu=class extends XS.Duplex{constructor(e,r={},n){super({autoDestroy:!1,highWaterMark:0}),this[ki]=0,this[Bi]=0,this.requestInitialized=!1,this[vu]=new Set,this.redirects=[],this[Ii]=!1,this[Ru]=!1,this[Ns]=[],this.retryCount=0,this._progressCallbacks=[];let i=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",c=>{c.prependListener("data",i),c.on("data",s),c.prependListener("end",i),c.on("end",s)}),this.on("unpipe",c=>{c.off("data",i),c.off("data",s),c.off("end",i),c.off("end",s)}),this.on("pipe",c=>{c instanceof Lp.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:o,body:a,form:u}=r;if((o||a||u)&&this._lockWrite(),se.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,n)}catch(c){S.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof H8.ReadStream&&await iM(this.options.body);let{url:l}=this.options;if(!l)throw new TypeError("Missing `url` property");if(this.requestUrl=l.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(c=this[Be])===null||c===void 0||c.destroy();return}for(let f of this[Ns])f();this[Ns].length=0,this.requestInitialized=!0}catch(l){if(l instanceof xe){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(e,r,n){var i,s,o,a,u;let c=r;if(S.default.object(e)&&!S.default.urlInstance(e))r={...n,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...n,...r},e!==void 0&&(r.url=e),S.default.urlInstance(r.url)&&(r.url=new Vr.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),S.assert.any([S.default.string,S.default.undefined],r.method),S.assert.any([S.default.object,S.default.undefined],r.headers),S.assert.any([S.default.string,S.default.urlInstance,S.default.undefined],r.prefixUrl),S.assert.any([S.default.object,S.default.undefined],r.cookieJar),S.assert.any([S.default.object,S.default.string,S.default.undefined],r.searchParams),S.assert.any([S.default.object,S.default.string,S.default.undefined],r.cache),S.assert.any([S.default.object,S.default.number,S.default.undefined],r.timeout),S.assert.any([S.default.object,S.default.undefined],r.context),S.assert.any([S.default.object,S.default.undefined],r.hooks),S.assert.any([S.default.boolean,S.default.undefined],r.decompress),S.assert.any([S.default.boolean,S.default.undefined],r.ignoreInvalidCookies),S.assert.any([S.default.boolean,S.default.undefined],r.followRedirect),S.assert.any([S.default.number,S.default.undefined],r.maxRedirects),S.assert.any([S.default.boolean,S.default.undefined],r.throwHttpErrors),S.assert.any([S.default.boolean,S.default.undefined],r.http2),S.assert.any([S.default.boolean,S.default.undefined],r.allowGetBody),S.assert.any([S.default.string,S.default.undefined],r.localAddress),S.assert.any([nC.isDnsLookupIpVersion,S.default.undefined],r.dnsLookupIpVersion),S.assert.any([S.default.object,S.default.undefined],r.https),S.assert.any([S.default.boolean,S.default.undefined],r.rejectUnauthorized),r.https&&(S.assert.any([S.default.boolean,S.default.undefined],r.https.rejectUnauthorized),S.assert.any([S.default.function_,S.default.undefined],r.https.checkServerIdentity),S.assert.any([S.default.string,S.default.object,S.default.array,S.default.undefined],r.https.certificateAuthority),S.assert.any([S.default.string,S.default.object,S.default.array,S.default.undefined],r.https.key),S.assert.any([S.default.string,S.default.object,S.default.array,S.default.undefined],r.https.certificate),S.assert.any([S.default.string,S.default.undefined],r.https.passphrase),S.assert.any([S.default.string,S.default.buffer,S.default.array,S.default.undefined],r.https.pfx)),S.assert.any([S.default.object,S.default.undefined],r.cacheOptions),S.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(n==null?void 0:n.headers)?r.headers={...r.headers}:r.headers=z8({...n==null?void 0:n.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(n==null?void 0:n.searchParams)){let p;if(S.default.string(r.searchParams)||r.searchParams instanceof Vr.URLSearchParams)p=new Vr.URLSearchParams(r.searchParams);else{rM(r.searchParams),p=new Vr.URLSearchParams;for(let m in r.searchParams){let _=r.searchParams[m];_===null?p.append(m,""):_!==void 0&&p.append(m,_)}}(i=n==null?void 0:n.searchParams)===null||i===void 0||i.forEach((m,_)=>{p.has(_)||p.append(_,m)}),r.searchParams=p}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",S.default.undefined(r.prefixUrl)?r.prefixUrl=(a=n==null?void 0:n.prefixUrl)!==null&&a!==void 0?a:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),S.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=rC.default(r.prefixUrl+r.url,r)}else(S.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=rC.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:p}=r;Object.defineProperty(r,"prefixUrl",{set:_=>{let g=r.url;if(!g.href.startsWith(_))throw new Error(`Cannot change \`prefixUrl\` from ${p} to ${_}: ${g.href}`);r.url=new Vr.URL(_+g.href.slice(p.length)),p=_},get:()=>p});let{protocol:m}=r.url;if(m==="unix:"&&(m="http:",r.url=new Vr.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),m!=="http:"&&m!=="https:")throw new Iu(r);r.username===""?r.username=r.url.username:r.url.username=r.username,r.password===""?r.password=r.url.password:r.url.password=r.password}let{cookieJar:l}=r;if(l){let{setCookie:p,getCookieString:m}=l;S.assert.function_(p),S.assert.function_(m),p.length===4&&m.length===0&&(p=JS.promisify(p.bind(r.cookieJar)),m=JS.promisify(m.bind(r.cookieJar)),r.cookieJar={setCookie:p,getCookieString:m})}let{cache:f}=r;if(f&&(qp.has(f)||qp.set(f,new QS((p,m)=>{let _=p[Be](p,m);return S.default.promise(_)&&(_.once=(g,D)=>{if(g==="error")_.catch(D);else if(g==="abort")(async()=>{try{(await _).once("abort",D)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${g}`);return _}),_},f))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)Np||(Np=new U8.default),r.dnsCache=Np;else if(!S.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${S.default(r.dnsCache)}`);S.default.number(r.timeout)?r.timeout={request:r.timeout}:n&&r.timeout!==n.timeout?r.timeout={...n.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let h=r.hooks===(n==null?void 0:n.hooks);r.hooks={...r.hooks};for(let p of se.knownHookEvents)if(p in r.hooks)if(S.default.array(r.hooks[p]))r.hooks[p]=[...r.hooks[p]];else throw new TypeError(`Parameter \`${p}\` must be an Array, got ${S.default(r.hooks[p])}`);else r.hooks[p]=[];if(n&&!h)for(let p of se.knownHookEvents)n.hooks[p].length>0&&(r.hooks[p]=[...n.hooks[p],...r.hooks[p]]);if("family"in r&&Yr.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),n!=null&&n.https&&(r.https={...n.https,...r.https}),"rejectUnauthorized"in r&&Yr.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&Yr.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&Yr.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&Yr.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&Yr.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&Yr.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&Yr.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent){for(let p in r.agent)if(p!=="http"&&p!=="https"&&p!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${p}\``)}return r.maxRedirects=(u=r.maxRedirects)!==null&&u!==void 0?u:0,se.setNonEnumerableProperties([n,c],r),Q8.default(r,n)}_lockWrite(){let e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:e}=this,{headers:r}=e,n=!S.default.undefined(e.form),i=!S.default.undefined(e.json),s=!S.default.undefined(e.body),o=n||i||s,a=se.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);if([s,n,i].filter(u=>u).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof XS.Readable)&&!S.default.string(e.body)&&!S.default.buffer(e.body)&&!eC.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(n&&!S.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let u=!S.default.string(r["content-type"]);s?(eC.default(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Kr]=e.body):n?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[Kr]=new Vr.URLSearchParams(e.form).toString()):(u&&(r["content-type"]="application/json"),this[Kr]=e.stringifyJson(e.json));let c=await V8.default(this[Kr],e.headers);S.default.undefined(r["content-length"])&&S.default.undefined(r["transfer-encoding"])&&!a&&!S.default.undefined(c)&&(r["content-length"]=String(c))}}else a?this._lockWrite():this._unlockWrite();this[Pi]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:n}=r;this[aC]=e,r.decompress&&(e=G8(e));let i=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:ZS.STATUS_CODES[i],s.url=r.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=e.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[sC]=s.isFromCache,this[Oi]=Number(e.headers["content-length"])||void 0,this[Fu]=e,e.once("end",()=>{this[Oi]=this[ki],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new Ms(a,this))}),e.once("aborted",()=>{this._beforeError(new Ms({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(S.default.object(r.cookieJar)&&o){let a=o.map(async u=>r.cookieJar.setCookie(u,n.toString()));r.ignoreInvalidCookies&&(a=a.map(async u=>u.catch(()=>{})));try{await Promise.all(a)}catch(u){this._beforeError(u);return}}if(r.followRedirect&&e.headers.location&&sM.has(i)){if(e.resume(),this[Be]&&(this[Mp](),delete this[Be],this[iC]()),(i===303&&r.method!=="GET"&&r.method!=="HEAD"||!r.methodRewriting)&&(r.method="GET","body"in r&&delete r.body,"json"in r&&delete r.json,"form"in r&&delete r.form,this[Kr]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new Tu(this));return}try{let f=function(h){return h.protocol==="unix:"||h.hostname==="unix"},u=Buffer.from(e.headers.location,"binary").toString(),c=new Vr.URL(u,n),l=c.toString();if(decodeURI(l),!f(n)&&f(c)){this._beforeError(new xe("Cannot redirect to UNIX socket",{},this));return}c.hostname!==n.hostname||c.port!==n.port?("host"in r.headers&&delete r.headers.host,"cookie"in r.headers&&delete r.headers.cookie,"authorization"in r.headers&&delete r.headers.authorization,(r.username||r.password)&&(r.username="",r.password="")):(c.username=r.username,c.password=r.password),this.redirects.push(l),r.url=c;for(let h of r.hooks.beforeRedirect)await h(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(u){this._beforeError(u);return}return}if(r.isStream&&r.throwHttpErrors&&!Z8.isResponseOk(s)){this._beforeError(new Ou(s));return}e.on("readable",()=>{this[Ru]&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this.emit("response",e);for(let a of this[vu])if(!a.headersSent){for(let u in e.headers){let c=r.decompress?u!=="content-encoding":!0,l=e.headers[u];c&&a.setHeader(u,l)}a.statusCode=i}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:n,url:i}=r;$8.default(e),this[Mp]=tC.default(e,n,i);let s=r.cache?"cacheableResponse":"response";e.once(s,u=>{this._onResponse(u)}),e.once("error",u=>{var c;e.destroy(),(c=e.res)===null||c===void 0||c.removeAllListeners("end"),u=u instanceof tC.TimeoutError?new Bu(u,this.timings,this):new xe(u.message,u,this),this._beforeError(u)}),this[iC]=Y8.default(e,this,aM),this[Be]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[Kr],a=this.redirects.length===0?this:e;S.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new Pu(u,this))})):(this._unlockWrite(),S.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,r){return new Promise((n,i)=>{Object.assign(r,K8.default(e)),delete r.url;let s,o=qp.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),n(a)});r.url=e,o.once("error",i),o.once("request",async a=>{s=a,n(s)})})}async _makeRequest(){var e,r,n,i,s;let{options:o}=this,{headers:a}=o;for(let D in a)if(S.default.undefined(a[D]))delete a[D];else if(S.default.null_(a[D]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${D}\` header`);if(o.decompress&&S.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=tM?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let D=await o.cookieJar.getCookieString(o.url.toString());S.default.nonEmptyString(D)&&(o.headers.cookie=D)}for(let D of o.hooks.beforeRequest){let C=await D(o);if(!S.default.undefined(C)){o.request=()=>C;break}}o.body&&this[Kr]!==o.body&&(this[Kr]=o.body);let{agent:u,request:c,timeout:l,url:f}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),f.hostname==="unix"){let D=/(?<socketPath>.+?):(?<path>.+)/.exec(`${f.pathname}${f.search}`);if(D!=null&&D.groups){let{socketPath:C,path:q}=D.groups;Object.assign(o,{socketPath:C,path:q,host:""})}}let h=f.protocol==="https:",p;o.http2?p=W8.auto:p=h?j8.request:ZS.request;let m=(e=o.request)!==null&&e!==void 0?e:p,_=o.cache?this._createCacheableRequest:m;u&&!o.http2&&(o.agent=u[h?"https":"http"]),o[Be]=m,delete o.request,delete o.timeout;let g=o;if(g.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,g.cacheHeuristic=(n=o.cacheOptions)===null||n===void 0?void 0:n.cacheHeuristic,g.immutableMinTimeToLive=(i=o.cacheOptions)===null||i===void 0?void 0:i.immutableMinTimeToLive,g.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{g.family=nC.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(g.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(g.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(g.ca=o.https.certificateAuthority),o.https.certificate&&(g.cert=o.https.certificate),o.https.key&&(g.key=o.https.key),o.https.passphrase&&(g.passphrase=o.https.passphrase),o.https.pfx&&(g.pfx=o.https.pfx));try{let D=await _(f,g);S.default.undefined(D)&&(D=p(f,g)),o.request=c,o.timeout=l,o.agent=u,o.https&&("rejectUnauthorized"in o.https&&delete g.rejectUnauthorized,o.https.checkServerIdentity&&delete g.checkServerIdentity,o.https.certificateAuthority&&delete g.ca,o.https.certificate&&delete g.cert,o.https.key&&delete g.key,o.https.passphrase&&delete g.passphrase,o.https.pfx&&delete g.pfx),nM(D)?this._onRequest(D):this.writable?(this.once("finish",()=>{this._onResponse(D)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(D)}catch(D){throw D instanceof QS.CacheError?new ku(D,this):new xe(D.message,D,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new xe(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[Ii])return;let{options:r}=this,n=this.retryCount+1;this[Ii]=!0,e instanceof xe||(e=new xe(e.message,e,this));let i=e,{response:s}=i;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await X8.default(s),s.body=s.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let o;try{let a;s&&"retry-after"in s.headers&&(a=Number(s.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(s.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3),o=await r.retry.calculateDelay({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:eM.default({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:0})})}catch(a){this._error(new xe(a.message,a,this));return}if(o){let a=async()=>{try{for(let u of this.options.hooks.beforeRetry)await u(this.options,i,n)}catch(u){this._error(new xe(u.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",n,e))};this[uC]=setTimeout(a,o);return}}this._error(i)})()}_read(){this[Ru]=!0;let e=this[Fu];if(e&&!this[Ii]){e.readableLength&&(this[Ru]=!1);let r;for(;(r=e.read())!==null;){this[ki]+=r.length,this[oC]=!0;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(e,r,n){let i=()=>{this._writeRequest(e,r,n)};this.requestInitialized?i():this[Ns].push(i)}_writeRequest(e,r,n){this[Be].destroyed||(this._progressCallbacks.push(()=>{this[Bi]+=Buffer.byteLength(e,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}),this[Be].write(e,r,i=>{!i&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),n(i)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(Be in this)){e();return}if(this[Be].destroyed){e();return}this[Be].end(n=>{n||(this[Pi]=this[Bi],this.emit("uploadProgress",this.uploadProgress),this[Be].emit("upload-complete")),e(n)})};this.requestInitialized?r():this[Ns].push(r)}_destroy(e,r){var n;this[Ii]=!0,clearTimeout(this[uC]),Be in this&&(this[Mp](),!((n=this[Fu])===null||n===void 0)&&n.complete||this[Be].destroy()),e!==null&&!S.default.undefined(e)&&!(e instanceof xe)&&(e=new xe(e.message,e,this)),r(e)}get _isAboutToError(){return this[Ii]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,n;return((r=(e=this[Be])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((n=this[aC])===null||n===void 0)&&n.complete)}get socket(){var e,r;return(r=(e=this[Be])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Oi]?e=this[ki]/this[Oi]:this[Oi]===this[ki]?e=1:e=0,{percent:e,transferred:this[ki],total:this[Oi]}}get uploadProgress(){let e;return this[Pi]?e=this[Bi]/this[Pi]:this[Pi]===this[Bi]?e=1:e=0,{percent:e,transferred:this[Bi],total:this[Pi]}}get timings(){var e;return(e=this[Be])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[sC]}pipe(e,r){if(this[oC])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof Lp.ServerResponse&&this[vu].add(e),super.pipe(e,r)}unpipe(e){return e instanceof Lp.ServerResponse&&this[vu].delete(e),super.unpipe(e),this}};se.default=Lu});var Hs=b(kt=>{"use strict";var uM=kt&&kt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),cM=kt&&kt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&uM(e,t,r)};Object.defineProperty(kt,"__esModule",{value:!0});kt.CancelError=kt.ParseError=void 0;var cC=qs(),Hp=class extends cC.RequestError{constructor(e,r){let{options:n}=r.request;super(`${e.message} in "${n.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};kt.ParseError=Hp;var jp=class extends cC.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};kt.CancelError=jp;cM(qs(),kt)});var fC=b($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var lC=Hs(),lM=(t,e,r,n)=>{let{rawBody:i}=t;try{if(e==="text")return i.toString(n);if(e==="json")return i.length===0?"":r(i.toString());if(e==="buffer")return i;throw new lC.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new lC.ParseError(s,t)}};$p.default=lM});var Up=b(Jr=>{"use strict";var fM=Jr&&Jr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),hM=Jr&&Jr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&fM(e,t,r)};Object.defineProperty(Jr,"__esModule",{value:!0});var dM=require("events"),pM=Er(),mM=cx(),Nu=Hs(),hC=fC(),dC=qs(),gM=Sp(),yM=kp(),pC=Pp(),_M=["request","response","redirect","uploadProgress","downloadProgress"];function mC(t){let e,r,n=new dM.EventEmitter,i=new mM((o,a,u)=>{let c=l=>{let f=new dC.default(void 0,t);f.retryCount=l,f._noPipe=!0,u(()=>f.destroy()),u.shouldReject=!1,u(()=>a(new Nu.CancelError(f))),e=f,f.once("response",async m=>{var _;if(m.retryCount=l,m.request.aborted)return;let g;try{g=await yM.default(f),m.rawBody=g}catch{return}if(f._isAboutToError)return;let D=((_=m.headers["content-encoding"])!==null&&_!==void 0?_:"").toLowerCase(),C=["gzip","deflate","br"].includes(D),{options:q}=f;if(C&&!q.decompress)m.body=g;else try{m.body=hC.default(m,q.responseType,q.parseJson,q.encoding)}catch($){if(m.body=g.toString(),pC.isResponseOk(m)){f._beforeError($);return}}try{for(let[$,N]of q.hooks.afterResponse.entries())m=await N(m,async K=>{let z=dC.default.normalizeArguments(void 0,{...K,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},q);z.hooks.afterResponse=z.hooks.afterResponse.slice(0,$);for(let ee of z.hooks.beforeRetry)await ee(z);let W=mC(z);return u(()=>{W.catch(()=>{}),W.cancel()}),W})}catch($){f._beforeError(new Nu.RequestError($.message,$,f));return}if(r=m,!pC.isResponseOk(m)){f._beforeError(new Nu.HTTPError(m));return}f.destroy(),o(f.options.resolveBodyOnly?m.body:m)});let h=m=>{if(i.isCanceled)return;let{options:_}=f;if(m instanceof Nu.HTTPError&&!_.throwHttpErrors){let{response:g}=m;o(f.options.resolveBodyOnly?g.body:g);return}a(m)};f.once("error",h);let p=f.options.body;f.once("retry",(m,_)=>{var g,D;if(p===((g=_.request)===null||g===void 0?void 0:g.options.body)&&pM.default.nodeStream((D=_.request)===null||D===void 0?void 0:D.options.body)){h(_);return}c(m)}),gM.default(f,n,_M)};c(0)});i.on=(o,a)=>(n.on(o,a),i);let s=o=>{let a=(async()=>{await i;let{options:u}=r.request;return hC.default(r,o,u.parseJson,u.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)),a};return i.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},i.buffer=()=>s("buffer"),i.text=()=>s("text"),i}Jr.default=mC;hM(Hs(),Jr)});var gC=b(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});var EM=Hs();function bM(t,...e){let r=(async()=>{if(t instanceof EM.RequestError)try{for(let i of e)if(i)for(let s of i)t=await s(t)}catch(i){t=i}throw t})(),n=()=>r;return r.json=n,r.text=n,r.buffer=n,r.on=n,r}Gp.default=bM});var EC=b(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});var yC=Er();function _C(t){for(let e of Object.values(t))(yC.default.plainObject(e)||yC.default.array(e))&&_C(e);return Object.freeze(t)}Wp.default=_C});var DC=b(bC=>{"use strict";Object.defineProperty(bC,"__esModule",{value:!0})});var zp=b(wt=>{"use strict";var DM=wt&&wt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),wM=wt&&wt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&DM(e,t,r)};Object.defineProperty(wt,"__esModule",{value:!0});wt.defaultHandler=void 0;var wC=Er(),Dt=Up(),AM=gC(),qu=qs(),xM=EC(),SM={RequestError:Dt.RequestError,CacheError:Dt.CacheError,ReadError:Dt.ReadError,HTTPError:Dt.HTTPError,MaxRedirectsError:Dt.MaxRedirectsError,TimeoutError:Dt.TimeoutError,ParseError:Dt.ParseError,CancelError:Dt.CancelError,UnsupportedProtocolError:Dt.UnsupportedProtocolError,UploadError:Dt.UploadError},CM=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:Mu}=qu.default,AC=(...t)=>{let e;for(let r of t)e=Mu(void 0,r,e);return e},vM=t=>t.isStream?new qu.default(void 0,t):Dt.default(t),RM=t=>"defaults"in t&&"options"in t.defaults,FM=["get","post","put","patch","head","delete"];wt.defaultHandler=(t,e)=>e(t);var xC=(t,e)=>{if(t)for(let r of t)r(e)},SC=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(n=>(i,s)=>{let o,a=n(i,u=>(o=s(u),o));if(a!==o&&!i.isStream&&o){let u=a,{then:c,catch:l,finally:f}=u;Object.setPrototypeOf(u,Object.getPrototypeOf(o)),Object.defineProperties(u,Object.getOwnPropertyDescriptors(o)),u.then=c,u.catch=l,u.finally=f}return a});let e=(n,i={},s)=>{var o,a;let u=0,c=l=>t.handlers[u++](l,u===t.handlers.length?vM:c);if(wC.default.plainObject(n)){let l={...n,...i};qu.setNonEnumerableProperties([n,i],l),i=l,n=void 0}try{let l;try{xC(t.options.hooks.init,i),xC((o=i.hooks)===null||o===void 0?void 0:o.init,i)}catch(h){l=h}let f=Mu(n,i,s!=null?s:t.options);if(f[qu.kIsNormalizedAlready]=!0,l)throw new Dt.RequestError(l.message,l,f);return c(f)}catch(l){if(i.isStream)throw l;return AM.default(l,t.options.hooks.beforeError,(a=i.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...n)=>{let i=[t.options],s=[...t._rawHandlers],o;for(let a of n)RM(a)?(i.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(i.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==wt.defaultHandler),s.length===0&&s.push(wt.defaultHandler),SC({options:AC(...i),handlers:s,mutableDefaults:!!o})};let r=async function*(n,i){let s=Mu(n,i,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!wC.default.object(o))throw new TypeError("`options.pagination` must be implemented");let a=[],{countLimit:u}=o,c=0;for(;c<o.requestLimit;){c!==0&&await CM(o.backoff);let l=await e(void 0,void 0,s),f=await o.transform(l),h=[];for(let m of f)if(o.filter(m,a,h)&&(!o.shouldContinue(m,a,h)||(yield m,o.stackAllItems&&a.push(m),h.push(m),--u<=0)))return;let p=o.paginate(l,a,h);if(p===!1)return;p===l.request.options?s=l.request.options:p!==void 0&&(s=Mu(void 0,p,s)),c++}};e.paginate=r,e.paginate.all=async(n,i)=>{let s=[];for await(let o of r(n,i))s.push(o);return s},e.paginate.each=r,e.stream=(n,i)=>e(n,{...i,isStream:!0});for(let n of FM)e[n]=(i,s)=>e(i,{...s,method:n}),e.stream[n]=(i,s)=>e(i,{...s,method:n,isStream:!0});return Object.assign(e,SM),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:xM.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=AC,e};wt.default=SC;wM(DC(),wt)});var RC=b((br,Hu)=>{"use strict";var TM=br&&br.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),CC=br&&br.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&TM(e,t,r)};Object.defineProperty(br,"__esModule",{value:!0});var OM=require("url"),vC=zp(),kM={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:t=>t.request.options.responseType==="json"?t.body:JSON.parse(t.body),paginate:t=>{if(!Reflect.has(t.headers,"link"))return!1;let e=t.headers.link.split(","),r;for(let n of e){let i=n.split(";");if(i[1].includes("next")){r=i[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new OM.URL(r)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:t=>JSON.parse(t),stringifyJson:t=>JSON.stringify(t),cacheOptions:{}},handlers:[vC.defaultHandler],mutableDefaults:!1},Vp=vC.default(kM);br.default=Vp;Hu.exports=Vp;Hu.exports.default=Vp;Hu.exports.__esModule=!0;CC(zp(),br);CC(Up(),br)});var IC=b((h9,BC)=>{function At(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}BC.exports=At;At.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};At.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};At.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};At.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};At.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};At.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};At.prototype.start=At.prototype.try;At.prototype.errors=function(){return this._errors};At.prototype.attempts=function(){return this._attempts};At.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=i,r=o)}return e}});var LC=b(Cn=>{var BM=IC();Cn.operation=function(t){var e=Cn.timeouts(t);return new BM(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Cn.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(s,o){return s-o}),n};Cn.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};Cn.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=t[s];t[s]=function(u){var c=Cn.operation(e),l=Array.prototype.slice.call(arguments,1),f=l.pop();l.push(function(h){c.retry(h)||(h&&(arguments[0]=c.mainError()),f.apply(this,arguments))}),c.attempt(function(){u.apply(t,l)})}.bind(t,o),t[s].options=e}}});var MC=b((p9,NC)=>{NC.exports=LC()});var HC=b((m9,qC)=>{var IM=MC();function LM(t,e){function r(n,i){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=IM.operation(s);function a(l){i(l||new Error("Aborted"))}function u(l,f){if(l.bail){a(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,f):i(o.mainError())}function c(l){var f;try{f=t(a,l)}catch(h){u(h,l);return}Promise.resolve(f).then(n).catch(function(p){u(p,l)})}o.attempt(c)}return new Promise(r)}qC.exports=LM});var dv=X(require("http")),pv=X(require("https")),mv=X(require("chalk")),Le=require("commander");var Bv=X(bm());function ec(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qi(t){return qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qi(t)}function tc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rc(t,e){if(e&&(qi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tc(t)}function Zr(t){return Zr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zr(t)}function Xt(t,e){return Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xt(t,e)}function nc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xt(t,e)}function ic(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function sc(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rn(t,e,r){return sc()?Rn=Reflect.construct.bind():Rn=function(i,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(i,a),c=new u;return o&&Xt(c,o.prototype),c},Rn.apply(null,arguments)}function Hi(t){var e=typeof Map=="function"?new Map:void 0;return Hi=function(n){if(n===null||!ic(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Rn(n,arguments,Zr(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Xt(i,n)},Hi(t)}var hc=X(Nm()),Zs=X(require("path")),Qs=X(require("fs-extra")),Iv=function(t){nc(e,t);function e(r){var n;return ec(this,e),n=rc(this,Zr(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return e}(Hi(Error));function Lv(t,e){try{var r=Qs.default.readJsonSync(Zs.default.join(t,"package.json"));if(e.current===void 0&&(e.current=t),r.workspaces||r.bolt)return t}catch(n){if(n.code!=="ENOENT")throw n}}function Nv(t){try{var e=Qs.default.readJsonSync(Zs.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function Mv(t){var e=Qs.default.existsSync(Zs.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function Mm(t){var e={current:void 0},r=(0,hc.sync)(function(n){return[Nv(n),Lv(n,e),Mv(n)].find(function(i){return i})},{cwd:t,type:"directory"});if(e.current===void 0)throw new Iv(t);return r===void 0?e.current:r}var qv=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Hv=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,jv=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,dc={Space_Separator:qv,ID_Start:Hv,ID_Continue:jv},De={isSpaceSeparator(t){return typeof t=="string"&&dc.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||dc.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="\u200C"||t==="\u200D"||dc.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}},mc,Ye,Qt,to,xr,Rt,Re,_c,$i,$v=function(e,r){mc=String(e),Ye="start",Qt=[],to=0,xr=1,Rt=0,Re=void 0,_c=void 0,$i=void 0;do Re=Uv(),zv[Ye]();while(Re.type!=="eof");return typeof r=="function"?gc({"":$i},"",r):$i};function gc(t,e,r){let n=t[e];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){let s=String(i),o=gc(n,s,r);o===void 0?delete n[s]:Object.defineProperty(n,s,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(let i in n){let s=gc(n,i,r);s===void 0?delete n[i]:Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(t,e,n)}var Z,J,ji,Zt,te;function Uv(){for(Z="default",J="",ji=!1,Zt=1;;){te=er();let t=Hm[Z]();if(t)return t}}function er(){if(mc[to])return String.fromCodePoint(mc.codePointAt(to))}function F(){let t=er();return t===`
|
|
20
|
+
`?(xr++,Rt=0):t?Rt+=t.length:Rt++,t&&(to+=t.length),t}var Hm={default(){switch(te){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
|
21
|
+
`:case"\r":case"\u2028":case"\u2029":F();return;case"/":F(),Z="comment";return;case void 0:return F(),he("eof")}if(De.isSpaceSeparator(te)){F();return}return Hm[Ye]()},comment(){switch(te){case"*":F(),Z="multiLineComment";return;case"/":F(),Z="singleLineComment";return}throw de(F())},multiLineComment(){switch(te){case"*":F(),Z="multiLineCommentAsterisk";return;case void 0:throw de(F())}F()},multiLineCommentAsterisk(){switch(te){case"*":F();return;case"/":F(),Z="default";return;case void 0:throw de(F())}F(),Z="multiLineComment"},singleLineComment(){switch(te){case`
|
|
22
|
+
`:case"\r":case"\u2028":case"\u2029":F(),Z="default";return;case void 0:return F(),he("eof")}F()},value(){switch(te){case"{":case"[":return he("punctuator",F());case"n":return F(),Qr("ull"),he("null",null);case"t":return F(),Qr("rue"),he("boolean",!0);case"f":return F(),Qr("alse"),he("boolean",!1);case"-":case"+":F()==="-"&&(Zt=-1),Z="sign";return;case".":J=F(),Z="decimalPointLeading";return;case"0":J=F(),Z="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":J=F(),Z="decimalInteger";return;case"I":return F(),Qr("nfinity"),he("numeric",1/0);case"N":return F(),Qr("aN"),he("numeric",NaN);case'"':case"'":ji=F()==='"',J="",Z="string";return}throw de(F())},identifierNameStartEscape(){if(te!=="u")throw de(F());F();let t=yc();switch(t){case"$":case"_":break;default:if(!De.isIdStartChar(t))throw qm();break}J+=t,Z="identifierName"},identifierName(){switch(te){case"$":case"_":case"\u200C":case"\u200D":J+=F();return;case"\\":F(),Z="identifierNameEscape";return}if(De.isIdContinueChar(te)){J+=F();return}return he("identifier",J)},identifierNameEscape(){if(te!=="u")throw de(F());F();let t=yc();switch(t){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!De.isIdContinueChar(t))throw qm();break}J+=t,Z="identifierName"},sign(){switch(te){case".":J=F(),Z="decimalPointLeading";return;case"0":J=F(),Z="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":J=F(),Z="decimalInteger";return;case"I":return F(),Qr("nfinity"),he("numeric",Zt*(1/0));case"N":return F(),Qr("aN"),he("numeric",NaN)}throw de(F())},zero(){switch(te){case".":J+=F(),Z="decimalPoint";return;case"e":case"E":J+=F(),Z="decimalExponent";return;case"x":case"X":J+=F(),Z="hexadecimal";return}return he("numeric",Zt*0)},decimalInteger(){switch(te){case".":J+=F(),Z="decimalPoint";return;case"e":case"E":J+=F(),Z="decimalExponent";return}if(De.isDigit(te)){J+=F();return}return he("numeric",Zt*Number(J))},decimalPointLeading(){if(De.isDigit(te)){J+=F(),Z="decimalFraction";return}throw de(F())},decimalPoint(){switch(te){case"e":case"E":J+=F(),Z="decimalExponent";return}if(De.isDigit(te)){J+=F(),Z="decimalFraction";return}return he("numeric",Zt*Number(J))},decimalFraction(){switch(te){case"e":case"E":J+=F(),Z="decimalExponent";return}if(De.isDigit(te)){J+=F();return}return he("numeric",Zt*Number(J))},decimalExponent(){switch(te){case"+":case"-":J+=F(),Z="decimalExponentSign";return}if(De.isDigit(te)){J+=F(),Z="decimalExponentInteger";return}throw de(F())},decimalExponentSign(){if(De.isDigit(te)){J+=F(),Z="decimalExponentInteger";return}throw de(F())},decimalExponentInteger(){if(De.isDigit(te)){J+=F();return}return he("numeric",Zt*Number(J))},hexadecimal(){if(De.isHexDigit(te)){J+=F(),Z="hexadecimalInteger";return}throw de(F())},hexadecimalInteger(){if(De.isHexDigit(te)){J+=F();return}return he("numeric",Zt*Number(J))},string(){switch(te){case"\\":F(),J+=Gv();return;case'"':if(ji)return F(),he("string",J);J+=F();return;case"'":if(!ji)return F(),he("string",J);J+=F();return;case`
|
|
23
|
+
`:case"\r":throw de(F());case"\u2028":case"\u2029":Vv(te);break;case void 0:throw de(F())}J+=F()},start(){switch(te){case"{":case"[":return he("punctuator",F())}Z="value"},beforePropertyName(){switch(te){case"$":case"_":J=F(),Z="identifierName";return;case"\\":F(),Z="identifierNameStartEscape";return;case"}":return he("punctuator",F());case'"':case"'":ji=F()==='"',Z="string";return}if(De.isIdStartChar(te)){J+=F(),Z="identifierName";return}throw de(F())},afterPropertyName(){if(te===":")return he("punctuator",F());throw de(F())},beforePropertyValue(){Z="value"},afterPropertyValue(){switch(te){case",":case"}":return he("punctuator",F())}throw de(F())},beforeArrayValue(){if(te==="]")return he("punctuator",F());Z="value"},afterArrayValue(){switch(te){case",":case"]":return he("punctuator",F())}throw de(F())},end(){throw de(F())}};function he(t,e){return{type:t,value:e,line:xr,column:Rt}}function Qr(t){for(let e of t){if(er()!==e)throw de(F());F()}}function Gv(){switch(er()){case"b":return F(),"\b";case"f":return F(),"\f";case"n":return F(),`
|
|
24
|
+
`;case"r":return F(),"\r";case"t":return F()," ";case"v":return F(),"\v";case"0":if(F(),De.isDigit(er()))throw de(F());return"\0";case"x":return F(),Wv();case"u":return F(),yc();case`
|
|
25
|
+
`:case"\u2028":case"\u2029":return F(),"";case"\r":return F(),er()===`
|
|
26
|
+
`&&F(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw de(F());case void 0:throw de(F())}return F()}function Wv(){let t="",e=er();if(!De.isHexDigit(e)||(t+=F(),e=er(),!De.isHexDigit(e)))throw de(F());return t+=F(),String.fromCodePoint(parseInt(t,16))}function yc(){let t="",e=4;for(;e-- >0;){let r=er();if(!De.isHexDigit(r))throw de(F());t+=F()}return String.fromCodePoint(parseInt(t,16))}var zv={start(){if(Re.type==="eof")throw en();pc()},beforePropertyName(){switch(Re.type){case"identifier":case"string":_c=Re.value,Ye="afterPropertyName";return;case"punctuator":eo();return;case"eof":throw en()}},afterPropertyName(){if(Re.type==="eof")throw en();Ye="beforePropertyValue"},beforePropertyValue(){if(Re.type==="eof")throw en();pc()},beforeArrayValue(){if(Re.type==="eof")throw en();if(Re.type==="punctuator"&&Re.value==="]"){eo();return}pc()},afterPropertyValue(){if(Re.type==="eof")throw en();switch(Re.value){case",":Ye="beforePropertyName";return;case"}":eo()}},afterArrayValue(){if(Re.type==="eof")throw en();switch(Re.value){case",":Ye="beforeArrayValue";return;case"]":eo()}},end(){}};function pc(){let t;switch(Re.type){case"punctuator":switch(Re.value){case"{":t={};break;case"[":t=[];break}break;case"null":case"boolean":case"numeric":case"string":t=Re.value;break}if($i===void 0)$i=t;else{let e=Qt[Qt.length-1];Array.isArray(e)?e.push(t):Object.defineProperty(e,_c,{value:t,writable:!0,enumerable:!0,configurable:!0})}if(t!==null&&typeof t=="object")Qt.push(t),Array.isArray(t)?Ye="beforeArrayValue":Ye="beforePropertyName";else{let e=Qt[Qt.length-1];e==null?Ye="end":Array.isArray(e)?Ye="afterArrayValue":Ye="afterPropertyValue"}}function eo(){Qt.pop();let t=Qt[Qt.length-1];t==null?Ye="end":Array.isArray(t)?Ye="afterArrayValue":Ye="afterPropertyValue"}function de(t){return ro(t===void 0?`JSON5: invalid end of input at ${xr}:${Rt}`:`JSON5: invalid character '${jm(t)}' at ${xr}:${Rt}`)}function en(){return ro(`JSON5: invalid end of input at ${xr}:${Rt}`)}function qm(){return Rt-=5,ro(`JSON5: invalid identifier character at ${xr}:${Rt}`)}function Vv(t){console.warn(`JSON5: '${jm(t)}' in strings is not valid ECMAScript; consider escaping`)}function jm(t){let e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[t])return e[t];if(t<" "){let r=t.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return t}function ro(t){let e=new SyntaxError(t);return e.lineNumber=xr,e.columnNumber=Rt,e}var Yv=function(e,r,n){let i=[],s="",o,a,u="",c;if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&(n=r.space,c=r.quote,r=r.replacer),typeof r=="function")a=r;else if(Array.isArray(r)){o=[];for(let _ of r){let g;typeof _=="string"?g=_:(typeof _=="number"||_ instanceof String||_ instanceof Number)&&(g=String(_)),g!==void 0&&o.indexOf(g)<0&&o.push(g)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),u=" ".substr(0,n)):typeof n=="string"&&(u=n.substr(0,10)),l("",{"":e});function l(_,g){let D=g[_];switch(D!=null&&(typeof D.toJSON5=="function"?D=D.toJSON5(_):typeof D.toJSON=="function"&&(D=D.toJSON(_))),a&&(D=a.call(g,_,D)),D instanceof Number?D=Number(D):D instanceof String?D=String(D):D instanceof Boolean&&(D=D.valueOf()),D){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof D=="string")return f(D,!1);if(typeof D=="number")return String(D);if(typeof D=="object")return Array.isArray(D)?m(D):h(D)}function f(_){let g={"'":.1,'"':.2},D={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},C="";for(let $=0;$<_.length;$++){let N=_[$];switch(N){case"'":case'"':g[N]++,C+=N;continue;case"\0":if(De.isDigit(_[$+1])){C+="\\x00";continue}}if(D[N]){C+=D[N];continue}if(N<" "){let K=N.charCodeAt(0).toString(16);C+="\\x"+("00"+K).substring(K.length);continue}C+=N}let q=c||Object.keys(g).reduce(($,N)=>g[$]<g[N]?$:N);return C=C.replace(new RegExp(q,"g"),D[q]),q+C+q}function h(_){if(i.indexOf(_)>=0)throw TypeError("Converting circular structure to JSON5");i.push(_);let g=s;s=s+u;let D=o||Object.keys(_),C=[];for(let $ of D){let N=l($,_);if(N!==void 0){let K=p($)+":";u!==""&&(K+=" "),K+=N,C.push(K)}}let q;if(C.length===0)q="{}";else{let $;if(u==="")$=C.join(","),q="{"+$+"}";else{let N=`,
|
|
27
|
+
`+s;$=C.join(N),q=`{
|
|
28
|
+
`+s+$+`,
|
|
29
|
+
`+g+"}"}}return i.pop(),s=g,q}function p(_){if(_.length===0)return f(_,!0);let g=String.fromCodePoint(_.codePointAt(0));if(!De.isIdStartChar(g))return f(_,!0);for(let D=g.length;D<_.length;D++)if(!De.isIdContinueChar(String.fromCodePoint(_.codePointAt(D))))return f(_,!0);return _}function m(_){if(i.indexOf(_)>=0)throw TypeError("Converting circular structure to JSON5");i.push(_);let g=s;s=s+u;let D=[];for(let q=0;q<_.length;q++){let $=l(String(q),_);D.push($!==void 0?$:"null")}let C;if(D.length===0)C="[]";else if(u==="")C="["+D.join(",")+"]";else{let q=`,
|
|
30
|
+
`+s,$=D.join(q);C=`[
|
|
31
|
+
`+s+$+`,
|
|
32
|
+
`+g+"]"}return i.pop(),s=g,C}},Kv={parse:$v,stringify:Yv},Jv=Kv,no=Jv;var Ec=X(require("fs")),Ui=X(require("path"));function Gi({target:t,cwd:e,contentCheck:r}){let n=Ui.default.parse(e).root,i=!1,s=e;for(;!i&&s!==n;){if(r)try{let o=Ec.default.readFileSync(Ui.default.join(s,t)).toString();if(r(o)){i=!0;break}}catch{}else if(Ec.default.existsSync(Ui.default.join(s,t))){i=!0;break}s=Ui.default.dirname(s)}return i?s:null}function Xv(t){let e=no.parse(t);return!(e&&"extends"in e)}var bc={};function Wi(t,e){var s;let r=(s=e==null?void 0:e.cache)!=null?s:!0,n=t||process.cwd();if(r&&bc[n])return bc[n];let i=Gi({target:"turbo.json",cwd:n,contentCheck:Xv});if(!i)try{if(i=Mm(n),!i)return null}catch{return null}return r&&(bc[n]=i),i}var ss=X(require("fs")),fn=X(require("path"));function n0(t){return typeof t=="undefined"||t===null}function Zv(t){return typeof t=="object"&&t!==null}function Qv(t){return Array.isArray(t)?t:n0(t)?[]:[t]}function e1(t,e){var r,n,i,s;if(e)for(s=Object.keys(e),r=0,n=s.length;r<n;r+=1)i=s[r],t[i]=e[i];return t}function t1(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function r1(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var n1=n0,i1=Zv,s1=Qv,o1=t1,a1=r1,u1=e1,Ce={isNothing:n1,isObject:i1,toArray:s1,repeat:o1,isNegativeZero:a1,extend:u1};function i0(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
|
9
33
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
`,finalEOL:u=!0,replacer:r=null,spaces:t}={}){let p=u?h:"";return JSON.stringify(i,r,t).replace(/\n/g,h)+p}function s(i){return Buffer.isBuffer(i)&&(i=i.toString("utf8")),i.replace(/^\uFEFF/,"")}a.exports={stringify:n,stripBom:s}}),aa=j((e,a)=>{B();var n;try{n=xe()}catch{n=Z("fs")}var s=Je(),{stringify:i,stripBom:h}=Hr();async function u(d,f={}){typeof f=="string"&&(f={encoding:f});let y=f.fs||n,b="throws"in f?f.throws:!0,w=await s.fromCallback(y.readFile)(d,f);w=h(w);let g;try{g=JSON.parse(w,f?f.reviver:null)}catch(D){if(b)throw D.message=`${d}: ${D.message}`,D;return null}return g}var r=s.fromPromise(u);function t(d,f={}){typeof f=="string"&&(f={encoding:f});let y=f.fs||n,b="throws"in f?f.throws:!0;try{let w=y.readFileSync(d,f);return w=h(w),JSON.parse(w,f.reviver)}catch(w){if(b)throw w.message=`${d}: ${w.message}`,w;return null}}async function p(d,f,y={}){let b=y.fs||n,w=i(f,y);await s.fromCallback(b.writeFile)(d,w,y)}var l=s.fromPromise(p);function c(d,f,y={}){let b=y.fs||n,w=i(f,y);return b.writeFileSync(d,w,y)}var o={readFile:r,readFileSync:t,writeFile:l,writeFileSync:c};a.exports=o}),la=j((e,a)=>{"use strict";B();var n=aa();a.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}}),Ur=j((e,a)=>{"use strict";B();var n=Je().fromCallback,s=xe(),i=Z("path"),h=nt(),u=wt().pathExists;function r(p,l,c,o){typeof c=="function"&&(o=c,c="utf8");let d=i.dirname(p);u(d,(f,y)=>{if(f)return o(f);if(y)return s.writeFile(p,l,c,o);h.mkdirs(d,b=>{if(b)return o(b);s.writeFile(p,l,c,o)})})}function t(p,...l){let c=i.dirname(p);if(s.existsSync(c))return s.writeFileSync(p,...l);h.mkdirsSync(c),s.writeFileSync(p,...l)}a.exports={outputFile:n(r),outputFileSync:t}}),ca=j((e,a)=>{"use strict";B();var{stringify:n}=Hr(),{outputFile:s}=Ur();async function i(h,u,r={}){let t=n(u,r);await s(h,t,r)}a.exports=i}),ha=j((e,a)=>{"use strict";B();var{stringify:n}=Hr(),{outputFileSync:s}=Ur();function i(h,u,r){let t=n(u,r);s(h,t,r)}a.exports=i}),pa=j((e,a)=>{"use strict";B();var n=Je().fromPromise,s=la();s.outputJson=n(ca()),s.outputJsonSync=ha(),s.outputJSON=s.outputJson,s.outputJSONSync=s.outputJsonSync,s.writeJSON=s.writeJson,s.writeJSONSync=s.writeJsonSync,s.readJSON=s.readJson,s.readJSONSync=s.readJsonSync,a.exports=s}),fa=j((e,a)=>{"use strict";B();var n=xe(),s=Z("path"),i=$r().copy,h=pr().remove,u=nt().mkdirp,r=wt().pathExists,t=kt();function p(f,y,b,w){typeof b=="function"&&(w=b,b={}),b=b||{};let g=b.overwrite||b.clobber||!1;t.checkPaths(f,y,"move",b,(D,E)=>{if(D)return w(D);let{srcStat:v,isChangingCase:m=!1}=E;t.checkParentPaths(f,v,y,"move",_=>{if(_)return w(_);if(l(y))return c(f,y,g,m,w);u(s.dirname(y),S=>S?w(S):c(f,y,g,m,w))})})}function l(f){let y=s.dirname(f);return s.parse(y).root===y}function c(f,y,b,w,g){if(w)return o(f,y,b,g);if(b)return h(y,D=>D?g(D):o(f,y,b,g));r(y,(D,E)=>D?g(D):E?g(new Error("dest already exists.")):o(f,y,b,g))}function o(f,y,b,w){n.rename(f,y,g=>g?g.code!=="EXDEV"?w(g):d(f,y,b,w):w())}function d(f,y,b,w){i(f,y,{overwrite:b,errorOnExist:!0,preserveTimestamps:!0},g=>g?w(g):h(f,w))}a.exports=p}),da=j((e,a)=>{"use strict";B();var n=xe(),s=Z("path"),i=$r().copySync,h=pr().removeSync,u=nt().mkdirpSync,r=kt();function t(d,f,y){y=y||{};let b=y.overwrite||y.clobber||!1,{srcStat:w,isChangingCase:g=!1}=r.checkPathsSync(d,f,"move",y);return r.checkParentPathsSync(d,w,f,"move"),p(f)||u(s.dirname(f)),l(d,f,b,g)}function p(d){let f=s.dirname(d);return s.parse(f).root===f}function l(d,f,y,b){if(b)return c(d,f,y);if(y)return h(f),c(d,f,y);if(n.existsSync(f))throw new Error("dest already exists.");return c(d,f,y)}function c(d,f,y){try{n.renameSync(d,f)}catch(b){if(b.code!=="EXDEV")throw b;return o(d,f,y)}}function o(d,f,y){return i(d,f,{overwrite:y,errorOnExist:!0,preserveTimestamps:!0}),h(d)}a.exports=t}),ma=j((e,a)=>{"use strict";B();var n=Je().fromCallback;a.exports={move:n(fa()),moveSync:da()}}),pt=j((e,a)=>{"use strict";B(),a.exports={...xt(),...$r(),...ta(),...ua(),...pa(),...nt(),...ma(),...Ur(),...wt(),...pr()}});B();var ya=Re(pt()),ga=[".DS_Store",".git",".gitattributes",".gitignore",".gitlab-ci.yml",".hg",".hgcheck",".hgignore",".idea",".npmignore",".travis.yml","LICENSE","Thumbs.db","docs","mkdocs.yml","npm-debug.log","yarn-debug.log","yarn-error.log","yarnrc.yml",".yarn"];function It(e){let a=ya.default.readdirSync(e).filter(n=>!ga.includes(n)).filter(n=>!n.endsWith(".iml"));return{isEmpty:a.length===0,conflicts:a}}var Gr=Be(require("path"),1);B();var pi=Re(pt()),fi=Re(vt());function fr(e){let a=Gr.default.resolve(e),n=Gr.default.basename(a),s=pi.default.existsSync(a),i=pi.default.lstatSync(a,{throwIfNoEntry:!1});if(i&&!i.isDirectory())return{valid:!1,root:a,projectName:n,error:`${fi.default.dim(n)} is not a directory - please try a different location`};if(s){let{isEmpty:h,conflicts:u}=It(a);if(!h)return{valid:!1,root:a,projectName:n,error:`${fi.default.dim(n)} (${a}) has ${u.length} conflicting ${u.length===1?"file":"files"} - please try a different location`}}return{valid:!0,root:a,projectName:n}}B();function qr(e,a={to:"camel"}){switch(a.to){case"camel":return e.replace(/(?:[-_][a-z])/g,n=>n.toUpperCase().replace("-","").replace("_",""));default:throw new Error("Not implemented")}}var $i=require("stream"),Hi=require("util"),Ui=require("path"),Gi=require("os"),Ut=require("fs"),jt=j((e,a)=>{"use strict";B();var n=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);a.exports=s=>s?Object.keys(s).map(i=>[n.has(i)?n.get(i):i,s[i]]).reduce((i,h)=>(i[h[0]]=h[1],i),Object.create(null)):{}}),Wr=j((e,a)=>{"use strict";B();var n=typeof process=="object"&&process?process:{stdout:null,stderr:null},s=Z("events"),i=Z("stream"),h=Z("string_decoder").StringDecoder,u=Symbol("EOF"),r=Symbol("maybeEmitEnd"),t=Symbol("emittedEnd"),p=Symbol("emittingEnd"),l=Symbol("emittedError"),c=Symbol("closed"),o=Symbol("read"),d=Symbol("flush"),f=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),w=Symbol("flowing"),g=Symbol("paused"),D=Symbol("resume"),E=Symbol("buffer"),v=Symbol("pipes"),m=Symbol("bufferLength"),_=Symbol("bufferPush"),S=Symbol("bufferShift"),A=Symbol("objectMode"),x=Symbol("destroyed"),L=Symbol("emitData"),T=Symbol("emitEnd"),k=Symbol("emitEnd2"),O=Symbol("async"),I=J=>Promise.resolve().then(J),$=global._MP_NO_ITERATOR_SYMBOLS_!=="1",R=$&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),G=$&&Symbol.iterator||Symbol("iterator not implemented"),z=J=>J==="end"||J==="finish"||J==="prefinish",Q=J=>J instanceof ArrayBuffer||typeof J=="object"&&J.constructor&&J.constructor.name==="ArrayBuffer"&&J.byteLength>=0,P=J=>!Buffer.isBuffer(J)&&ArrayBuffer.isView(J),N=class{constructor(J,q,ee){this.src=J,this.dest=q,this.opts=ee,this.ondrain=()=>J[D](),q.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},F=class extends N{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(J,q,ee){super(J,q,ee),this.proxyErrors=M=>q.emit("error",M),J.on("error",this.proxyErrors)}};a.exports=class mi extends i{constructor(q){super(),this[w]=!1,this[g]=!1,this[v]=[],this[E]=[],this[A]=q&&q.objectMode||!1,this[A]?this[y]=null:this[y]=q&&q.encoding||null,this[y]==="buffer"&&(this[y]=null),this[O]=q&&!!q.async||!1,this[b]=this[y]?new h(this[y]):null,this[u]=!1,this[t]=!1,this[p]=!1,this[c]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[m]=0,this[x]=!1,q&&q.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[E]}),q&&q.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[v]})}get bufferLength(){return this[m]}get encoding(){return this[y]}set encoding(q){if(this[A])throw new Error("cannot set encoding in objectMode");if(this[y]&&q!==this[y]&&(this[b]&&this[b].lastNeed||this[m]))throw new Error("cannot change encoding");this[y]!==q&&(this[b]=q?new h(q):null,this[E].length&&(this[E]=this[E].map(ee=>this[b].write(ee)))),this[y]=q}setEncoding(q){this.encoding=q}get objectMode(){return this[A]}set objectMode(q){this[A]=this[A]||!!q}get async(){return this[O]}set async(q){this[O]=this[O]||!!q}write(q,ee,M){if(this[u])throw new Error("write after end");if(this[x])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof ee=="function"&&(M=ee,ee="utf8"),ee||(ee="utf8");let K=this[O]?I:te=>te();return!this[A]&&!Buffer.isBuffer(q)&&(P(q)?q=Buffer.from(q.buffer,q.byteOffset,q.byteLength):Q(q)?q=Buffer.from(q):typeof q!="string"&&(this.objectMode=!0)),this[A]?(this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[_](q),this[m]!==0&&this.emit("readable"),M&&K(M),this.flowing):q.length?(typeof q=="string"&&!(ee===this[y]&&!this[b].lastNeed)&&(q=Buffer.from(q,ee)),Buffer.isBuffer(q)&&this[y]&&(q=this[b].write(q)),this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[_](q),this[m]!==0&&this.emit("readable"),M&&K(M),this.flowing):(this[m]!==0&&this.emit("readable"),M&&K(M),this.flowing)}read(q){if(this[x])return null;if(this[m]===0||q===0||q>this[m])return this[r](),null;this[A]&&(q=null),this[E].length>1&&!this[A]&&(this.encoding?this[E]=[this[E].join("")]:this[E]=[Buffer.concat(this[E],this[m])]);let ee=this[o](q||null,this[E][0]);return this[r](),ee}[o](q,ee){return q===ee.length||q===null?this[S]():(this[E][0]=ee.slice(q),ee=ee.slice(0,q),this[m]-=q),this.emit("data",ee),!this[E].length&&!this[u]&&this.emit("drain"),ee}end(q,ee,M){return typeof q=="function"&&(M=q,q=null),typeof ee=="function"&&(M=ee,ee="utf8"),q&&this.write(q,ee),M&&this.once("end",M),this[u]=!0,this.writable=!1,(this.flowing||!this[g])&&this[r](),this}[D](){this[x]||(this[g]=!1,this[w]=!0,this.emit("resume"),this[E].length?this[d]():this[u]?this[r]():this.emit("drain"))}resume(){return this[D]()}pause(){this[w]=!1,this[g]=!0}get destroyed(){return this[x]}get flowing(){return this[w]}get paused(){return this[g]}[_](q){this[A]?this[m]+=1:this[m]+=q.length,this[E].push(q)}[S](){return this[E].length&&(this[A]?this[m]-=1:this[m]-=this[E][0].length),this[E].shift()}[d](q){do;while(this[f](this[S]()));!q&&!this[E].length&&!this[u]&&this.emit("drain")}[f](q){return q?(this.emit("data",q),this.flowing):!1}pipe(q,ee){if(this[x])return;let M=this[t];return ee=ee||{},q===n.stdout||q===n.stderr?ee.end=!1:ee.end=ee.end!==!1,ee.proxyErrors=!!ee.proxyErrors,M?ee.end&&q.end():(this[v].push(ee.proxyErrors?new F(this,q,ee):new N(this,q,ee)),this[O]?I(()=>this[D]()):this[D]()),q}unpipe(q){let ee=this[v].find(M=>M.dest===q);ee&&(this[v].splice(this[v].indexOf(ee),1),ee.unpipe())}addListener(q,ee){return this.on(q,ee)}on(q,ee){let M=super.on(q,ee);return q==="data"&&!this[v].length&&!this.flowing?this[D]():q==="readable"&&this[m]!==0?super.emit("readable"):z(q)&&this[t]?(super.emit(q),this.removeAllListeners(q)):q==="error"&&this[l]&&(this[O]?I(()=>ee.call(this,this[l])):ee.call(this,this[l])),M}get emittedEnd(){return this[t]}[r](){!this[p]&&!this[t]&&!this[x]&&this[E].length===0&&this[u]&&(this[p]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[c]&&this.emit("close"),this[p]=!1)}emit(q,ee,...M){if(q!=="error"&&q!=="close"&&q!==x&&this[x])return;if(q==="data")return ee?this[O]?I(()=>this[L](ee)):this[L](ee):!1;if(q==="end")return this[T]();if(q==="close"){if(this[c]=!0,!this[t]&&!this[x])return;let te=super.emit("close");return this.removeAllListeners("close"),te}else if(q==="error"){this[l]=ee;let te=super.emit("error",ee);return this[r](),te}else if(q==="resume"){let te=super.emit("resume");return this[r](),te}else if(q==="finish"||q==="prefinish"){let te=super.emit(q);return this.removeAllListeners(q),te}let K=super.emit(q,ee,...M);return this[r](),K}[L](q){for(let M of this[v])M.dest.write(q)===!1&&this.pause();let ee=super.emit("data",q);return this[r](),ee}[T](){this[t]||(this[t]=!0,this.readable=!1,this[O]?I(()=>this[k]()):this[k]())}[k](){if(this[b]){let ee=this[b].end();if(ee){for(let M of this[v])M.dest.write(ee);super.emit("data",ee)}}for(let ee of this[v])ee.end();let q=super.emit("end");return this.removeAllListeners("end"),q}collect(){let q=[];this[A]||(q.dataLength=0);let ee=this.promise();return this.on("data",M=>{q.push(M),this[A]||(q.dataLength+=M.length)}),ee.then(()=>q)}concat(){return this[A]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(q=>this[A]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?q.join(""):Buffer.concat(q,q.dataLength))}promise(){return new Promise((q,ee)=>{this.on(x,()=>ee(new Error("stream destroyed"))),this.on("error",M=>ee(M)),this.on("end",()=>q())})}[R](){return{next:()=>{let q=this.read();if(q!==null)return Promise.resolve({done:!1,value:q});if(this[u])return Promise.resolve({done:!0});let ee=null,M=null,K=be=>{this.removeListener("data",te),this.removeListener("end",oe),M(be)},te=be=>{this.removeListener("error",K),this.removeListener("end",oe),this.pause(),ee({value:be,done:!!this[u]})},oe=()=>{this.removeListener("error",K),this.removeListener("data",te),ee({done:!0})},ce=()=>K(new Error("stream destroyed"));return new Promise((be,ye)=>{M=ye,ee=be,this.once(x,ce),this.once("error",K),this.once("end",oe),this.once("data",te)})}}}[G](){return{next:()=>{let q=this.read();return{value:q,done:q===null}}}}destroy(q){return this[x]?(q?this.emit("error",q):this.emit(x),this):(this[x]=!0,this[E].length=0,this[m]=0,typeof this.close=="function"&&!this[c]&&this.close(),q?this.emit("error",q):this.emit(x),this)}static isStream(q){return!!q&&(q instanceof mi||q instanceof i||q instanceof s&&(typeof q.pipe=="function"||typeof q.write=="function"&&typeof q.end=="function"))}}}),ba=j((e,a)=>{B();var n=Z("zlib").constants||{ZLIB_VERNUM:4736};a.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},n))}),yi=j((e,a)=>{"use strict";B();var n=typeof process=="object"&&process?process:{stdout:null,stderr:null},s=Z("events"),i=Z("stream"),h=Z("string_decoder").StringDecoder,u=Symbol("EOF"),r=Symbol("maybeEmitEnd"),t=Symbol("emittedEnd"),p=Symbol("emittingEnd"),l=Symbol("emittedError"),c=Symbol("closed"),o=Symbol("read"),d=Symbol("flush"),f=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),w=Symbol("flowing"),g=Symbol("paused"),D=Symbol("resume"),E=Symbol("bufferLength"),v=Symbol("bufferPush"),m=Symbol("bufferShift"),_=Symbol("objectMode"),S=Symbol("destroyed"),A=Symbol("emitData"),x=Symbol("emitEnd"),L=Symbol("emitEnd2"),T=Symbol("async"),k=N=>Promise.resolve().then(N),O=global._MP_NO_ITERATOR_SYMBOLS_!=="1",I=O&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),$=O&&Symbol.iterator||Symbol("iterator not implemented"),R=N=>N==="end"||N==="finish"||N==="prefinish",G=N=>N instanceof ArrayBuffer||typeof N=="object"&&N.constructor&&N.constructor.name==="ArrayBuffer"&&N.byteLength>=0,z=N=>!Buffer.isBuffer(N)&&ArrayBuffer.isView(N),Q=class{constructor(N,F,J){this.src=N,this.dest=F,this.opts=J,this.ondrain=()=>N[D](),F.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},P=class extends Q{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(N,F,J){super(N,F,J),this.proxyErrors=q=>F.emit("error",q),N.on("error",this.proxyErrors)}};a.exports=class gi extends i{constructor(F){super(),this[w]=!1,this[g]=!1,this.pipes=[],this.buffer=[],this[_]=F&&F.objectMode||!1,this[_]?this[y]=null:this[y]=F&&F.encoding||null,this[y]==="buffer"&&(this[y]=null),this[T]=F&&!!F.async||!1,this[b]=this[y]?new h(this[y]):null,this[u]=!1,this[t]=!1,this[p]=!1,this[c]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[E]=0,this[S]=!1}get bufferLength(){return this[E]}get encoding(){return this[y]}set encoding(F){if(this[_])throw new Error("cannot set encoding in objectMode");if(this[y]&&F!==this[y]&&(this[b]&&this[b].lastNeed||this[E]))throw new Error("cannot change encoding");this[y]!==F&&(this[b]=F?new h(F):null,this.buffer.length&&(this.buffer=this.buffer.map(J=>this[b].write(J)))),this[y]=F}setEncoding(F){this.encoding=F}get objectMode(){return this[_]}set objectMode(F){this[_]=this[_]||!!F}get async(){return this[T]}set async(F){this[T]=this[T]||!!F}write(F,J,q){if(this[u])throw new Error("write after end");if(this[S])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof J=="function"&&(q=J,J="utf8"),J||(J="utf8");let ee=this[T]?k:M=>M();return!this[_]&&!Buffer.isBuffer(F)&&(z(F)?F=Buffer.from(F.buffer,F.byteOffset,F.byteLength):G(F)?F=Buffer.from(F):typeof F!="string"&&(this.objectMode=!0)),this[_]?(this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",F):this[v](F),this[E]!==0&&this.emit("readable"),q&&ee(q),this.flowing):F.length?(typeof F=="string"&&!(J===this[y]&&!this[b].lastNeed)&&(F=Buffer.from(F,J)),Buffer.isBuffer(F)&&this[y]&&(F=this[b].write(F)),this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",F):this[v](F),this[E]!==0&&this.emit("readable"),q&&ee(q),this.flowing):(this[E]!==0&&this.emit("readable"),q&&ee(q),this.flowing)}read(F){if(this[S])return null;if(this[E]===0||F===0||F>this[E])return this[r](),null;this[_]&&(F=null),this.buffer.length>1&&!this[_]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[E])]);let J=this[o](F||null,this.buffer[0]);return this[r](),J}[o](F,J){return F===J.length||F===null?this[m]():(this.buffer[0]=J.slice(F),J=J.slice(0,F),this[E]-=F),this.emit("data",J),!this.buffer.length&&!this[u]&&this.emit("drain"),J}end(F,J,q){return typeof F=="function"&&(q=F,F=null),typeof J=="function"&&(q=J,J="utf8"),F&&this.write(F,J),q&&this.once("end",q),this[u]=!0,this.writable=!1,(this.flowing||!this[g])&&this[r](),this}[D](){this[S]||(this[g]=!1,this[w]=!0,this.emit("resume"),this.buffer.length?this[d]():this[u]?this[r]():this.emit("drain"))}resume(){return this[D]()}pause(){this[w]=!1,this[g]=!0}get destroyed(){return this[S]}get flowing(){return this[w]}get paused(){return this[g]}[v](F){this[_]?this[E]+=1:this[E]+=F.length,this.buffer.push(F)}[m](){return this.buffer.length&&(this[_]?this[E]-=1:this[E]-=this.buffer[0].length),this.buffer.shift()}[d](F){do;while(this[f](this[m]()));!F&&!this.buffer.length&&!this[u]&&this.emit("drain")}[f](F){return F?(this.emit("data",F),this.flowing):!1}pipe(F,J){if(this[S])return;let q=this[t];return J=J||{},F===n.stdout||F===n.stderr?J.end=!1:J.end=J.end!==!1,J.proxyErrors=!!J.proxyErrors,q?J.end&&F.end():(this.pipes.push(J.proxyErrors?new P(this,F,J):new Q(this,F,J)),this[T]?k(()=>this[D]()):this[D]()),F}unpipe(F){let J=this.pipes.find(q=>q.dest===F);J&&(this.pipes.splice(this.pipes.indexOf(J),1),J.unpipe())}addListener(F,J){return this.on(F,J)}on(F,J){let q=super.on(F,J);return F==="data"&&!this.pipes.length&&!this.flowing?this[D]():F==="readable"&&this[E]!==0?super.emit("readable"):R(F)&&this[t]?(super.emit(F),this.removeAllListeners(F)):F==="error"&&this[l]&&(this[T]?k(()=>J.call(this,this[l])):J.call(this,this[l])),q}get emittedEnd(){return this[t]}[r](){!this[p]&&!this[t]&&!this[S]&&this.buffer.length===0&&this[u]&&(this[p]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[c]&&this.emit("close"),this[p]=!1)}emit(F,J,...q){if(F!=="error"&&F!=="close"&&F!==S&&this[S])return;if(F==="data")return J?this[T]?k(()=>this[A](J)):this[A](J):!1;if(F==="end")return this[x]();if(F==="close"){if(this[c]=!0,!this[t]&&!this[S])return;let M=super.emit("close");return this.removeAllListeners("close"),M}else if(F==="error"){this[l]=J;let M=super.emit("error",J);return this[r](),M}else if(F==="resume"){let M=super.emit("resume");return this[r](),M}else if(F==="finish"||F==="prefinish"){let M=super.emit(F);return this.removeAllListeners(F),M}let ee=super.emit(F,J,...q);return this[r](),ee}[A](F){for(let q of this.pipes)q.dest.write(F)===!1&&this.pause();let J=super.emit("data",F);return this[r](),J}[x](){this[t]||(this[t]=!0,this.readable=!1,this[T]?k(()=>this[L]()):this[L]())}[L](){if(this[b]){let J=this[b].end();if(J){for(let q of this.pipes)q.dest.write(J);super.emit("data",J)}}for(let J of this.pipes)J.end();let F=super.emit("end");return this.removeAllListeners("end"),F}collect(){let F=[];this[_]||(F.dataLength=0);let J=this.promise();return this.on("data",q=>{F.push(q),this[_]||(F.dataLength+=q.length)}),J.then(()=>F)}concat(){return this[_]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(F=>this[_]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?F.join(""):Buffer.concat(F,F.dataLength))}promise(){return new Promise((F,J)=>{this.on(S,()=>J(new Error("stream destroyed"))),this.on("error",q=>J(q)),this.on("end",()=>F())})}[I](){return{next:()=>{let F=this.read();if(F!==null)return Promise.resolve({done:!1,value:F});if(this[u])return Promise.resolve({done:!0});let J=null,q=null,ee=oe=>{this.removeListener("data",M),this.removeListener("end",K),q(oe)},M=oe=>{this.removeListener("error",ee),this.removeListener("end",K),this.pause(),J({value:oe,done:!!this[u]})},K=()=>{this.removeListener("error",ee),this.removeListener("data",M),J({done:!0})},te=()=>ee(new Error("stream destroyed"));return new Promise((oe,ce)=>{q=ce,J=oe,this.once(S,te),this.once("error",ee),this.once("end",K),this.once("data",M)})}}}[$](){return{next:()=>{let F=this.read();return{value:F,done:F===null}}}}destroy(F){return this[S]?(F?this.emit("error",F):this.emit(S),this):(this[S]=!0,this.buffer.length=0,this[E]=0,typeof this.close=="function"&&!this[c]&&this.close(),F?this.emit("error",F):this.emit(S),this)}static isStream(F){return!!F&&(F instanceof gi||F instanceof i||F instanceof s&&(typeof F.pipe=="function"||typeof F.write=="function"&&typeof F.end=="function"))}}}),bi=j(e=>{"use strict";B();var a=Z("assert"),n=Z("buffer").Buffer,s=Z("zlib"),i=e.constants=ba(),h=yi(),u=n.concat,r=Symbol("_superWrite"),t=class extends Error{constructor(R){super("zlib: "+R.message),this.code=R.code,this.errno=R.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+R.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},p=Symbol("opts"),l=Symbol("flushFlag"),c=Symbol("finishFlushFlag"),o=Symbol("fullFlushFlag"),d=Symbol("handle"),f=Symbol("onError"),y=Symbol("sawError"),b=Symbol("level"),w=Symbol("strategy"),g=Symbol("ended"),D=Symbol("_defaultFullFlush"),E=class extends h{constructor(R,G){if(!R||typeof R!="object")throw new TypeError("invalid options for ZlibBase constructor");super(R),this[y]=!1,this[g]=!1,this[p]=R,this[l]=R.flush,this[c]=R.finishFlush;try{this[d]=new s[G](R)}catch(z){throw new t(z)}this[f]=z=>{this[y]||(this[y]=!0,this.close(),this.emit("error",z))},this[d].on("error",z=>this[f](new t(z))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return a(this[d],"zlib binding closed"),this[d].reset()}flush(R){this.ended||(typeof R!="number"&&(R=this[o]),this.write(Object.assign(n.alloc(0),{[l]:R})))}end(R,G,z){return R&&this.write(R,G),this.flush(this[c]),this[g]=!0,super.end(null,null,z)}get ended(){return this[g]}write(R,G,z){if(typeof G=="function"&&(z=G,G="utf8"),typeof R=="string"&&(R=n.from(R,G)),this[y])return;a(this[d],"zlib binding closed");let Q=this[d]._handle,P=Q.close;Q.close=()=>{};let N=this[d].close;this[d].close=()=>{},n.concat=q=>q;let F;try{let q=typeof R[l]=="number"?R[l]:this[l];F=this[d]._processChunk(R,q),n.concat=u}catch(q){n.concat=u,this[f](new t(q))}finally{this[d]&&(this[d]._handle=Q,Q.close=P,this[d].close=N,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",q=>this[f](new t(q)));let J;if(F)if(Array.isArray(F)&&F.length>0){J=this[r](n.from(F[0]));for(let q=1;q<F.length;q++)J=this[r](F[q])}else J=this[r](n.from(F));return z&&z(),J}[r](R){return super.write(R)}},v=class extends E{constructor(R,G){R=R||{},R.flush=R.flush||i.Z_NO_FLUSH,R.finishFlush=R.finishFlush||i.Z_FINISH,super(R,G),this[o]=i.Z_FULL_FLUSH,this[b]=R.level,this[w]=R.strategy}params(R,G){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[b]!==R||this[w]!==G){this.flush(i.Z_SYNC_FLUSH),a(this[d],"zlib binding closed");let z=this[d].flush;this[d].flush=(Q,P)=>{this.flush(Q),P()};try{this[d].params(R,G)}finally{this[d].flush=z}this[d]&&(this[b]=R,this[w]=G)}}}},m=class extends v{constructor(R){super(R,"Deflate")}},_=class extends v{constructor(R){super(R,"Inflate")}},S=Symbol("_portable"),A=class extends v{constructor(R){super(R,"Gzip"),this[S]=R&&!!R.portable}[r](R){return this[S]?(this[S]=!1,R[9]=255,super[r](R)):super[r](R)}},x=class extends v{constructor(R){super(R,"Gunzip")}},L=class extends v{constructor(R){super(R,"DeflateRaw")}},T=class extends v{constructor(R){super(R,"InflateRaw")}},k=class extends v{constructor(R){super(R,"Unzip")}},O=class extends E{constructor(R,G){R=R||{},R.flush=R.flush||i.BROTLI_OPERATION_PROCESS,R.finishFlush=R.finishFlush||i.BROTLI_OPERATION_FINISH,super(R,G),this[o]=i.BROTLI_OPERATION_FLUSH}},I=class extends O{constructor(R){super(R,"BrotliCompress")}},$=class extends O{constructor(R){super(R,"BrotliDecompress")}};e.Deflate=m,e.Inflate=_,e.Gzip=A,e.Gunzip=x,e.DeflateRaw=L,e.InflateRaw=T,e.Unzip=k,typeof s.BrotliCompress=="function"?(e.BrotliCompress=I,e.BrotliDecompress=$):e.BrotliCompress=e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),Nt=j((e,a)=>{B();var n=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;a.exports=n!=="win32"?s=>s:s=>s&&s.replace(/\\/g,"/")}),zr=j((e,a)=>{"use strict";B();var n=Wr(),s=Nt(),i=Symbol("slurp");a.exports=class extends n{constructor(h,u,r){switch(super(),this.pause(),this.extended=u,this.globalExtended=r,this.header=h,this.startBlockSize=512*Math.ceil(h.size/512),this.blockRemain=this.startBlockSize,this.remain=h.size,this.type=h.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=s(h.path),this.mode=h.mode,this.mode&&(this.mode=this.mode&4095),this.uid=h.uid,this.gid=h.gid,this.uname=h.uname,this.gname=h.gname,this.size=h.size,this.mtime=h.mtime,this.atime=h.atime,this.ctime=h.ctime,this.linkpath=s(h.linkpath),this.uname=h.uname,this.gname=h.gname,u&&this[i](u),r&&this[i](r,!0)}write(h){let u=h.length;if(u>this.blockRemain)throw new Error("writing more to entry than is appropriate");let r=this.remain,t=this.blockRemain;return this.remain=Math.max(0,r-u),this.blockRemain=Math.max(0,t-u),this.ignore?!0:r>=u?super.write(h):super.write(h.slice(0,r))}[i](h,u){for(let r in h)h[r]!==null&&h[r]!==void 0&&!(u&&r==="path")&&(this[r]=r==="path"||r==="linkpath"?s(h[r]):h[r])}}}),vi=j(e=>{"use strict";B(),e.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),e.code=new Map(Array.from(e.name).map(a=>[a[1],a[0]]))}),va=j((e,a)=>{"use strict";B();var n=(l,c)=>{if(Number.isSafeInteger(l))l<0?i(l,c):s(l,c);else throw Error("cannot encode number outside of javascript safe integer range");return c},s=(l,c)=>{c[0]=128;for(var o=c.length;o>1;o--)c[o-1]=l&255,l=Math.floor(l/256)},i=(l,c)=>{c[0]=255;var o=!1;l=l*-1;for(var d=c.length;d>1;d--){var f=l&255;l=Math.floor(l/256),o?c[d-1]=t(f):f===0?c[d-1]=0:(o=!0,c[d-1]=p(f))}},h=l=>{let c=l[0],o=c===128?r(l.slice(1,l.length)):c===255?u(l):null;if(o===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(o))throw Error("parsed number outside of javascript safe integer range");return o},u=l=>{for(var c=l.length,o=0,d=!1,f=c-1;f>-1;f--){var y=l[f],b;d?b=t(y):y===0?b=y:(d=!0,b=p(y)),b!==0&&(o-=b*Math.pow(256,c-f-1))}return o},r=l=>{for(var c=l.length,o=0,d=c-1;d>-1;d--){var f=l[d];f!==0&&(o+=f*Math.pow(256,c-d-1))}return o},t=l=>(255^l)&255,p=l=>(255^l)+1&255;a.exports={encode:n,parse:h}}),Mt=j((e,a)=>{"use strict";B();var n=vi(),s=Z("path").posix,i=va(),h=Symbol("slurp"),u=Symbol("type"),r=class{constructor(_,S,A,x){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[u]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(_)?this.decode(_,S||0,A,x):_&&this.set(_)}decode(_,S,A,x){if(S||(S=0),!_||!(_.length>=S+512))throw new Error("need 512 bytes for header");if(this.path=p(_,S,100),this.mode=o(_,S+100,8),this.uid=o(_,S+108,8),this.gid=o(_,S+116,8),this.size=o(_,S+124,12),this.mtime=l(_,S+136,12),this.cksum=o(_,S+148,12),this[h](A),this[h](x,!0),this[u]=p(_,S+156,1),this[u]===""&&(this[u]="0"),this[u]==="0"&&this.path.slice(-1)==="/"&&(this[u]="5"),this[u]==="5"&&(this.size=0),this.linkpath=p(_,S+157,100),_.slice(S+257,S+265).toString()==="ustar\x0000")if(this.uname=p(_,S+265,32),this.gname=p(_,S+297,32),this.devmaj=o(_,S+329,8),this.devmin=o(_,S+337,8),_[S+475]!==0){let T=p(_,S+345,155);this.path=T+"/"+this.path}else{let T=p(_,S+345,130);T&&(this.path=T+"/"+this.path),this.atime=l(_,S+476,12),this.ctime=l(_,S+488,12)}let L=8*32;for(let T=S;T<S+148;T++)L+=_[T];for(let T=S+156;T<S+512;T++)L+=_[T];this.cksumValid=L===this.cksum,this.cksum===null&&L===8*32&&(this.nullBlock=!0)}[h](_,S){for(let A in _)_[A]!==null&&_[A]!==void 0&&!(S&&A==="path")&&(this[A]=_[A])}encode(_,S){if(_||(_=this.block=Buffer.alloc(512),S=0),S||(S=0),!(_.length>=S+512))throw new Error("need 512 bytes for header");let A=this.ctime||this.atime?130:155,x=t(this.path||"",A),L=x[0],T=x[1];this.needPax=x[2],this.needPax=m(_,S,100,L)||this.needPax,this.needPax=b(_,S+100,8,this.mode)||this.needPax,this.needPax=b(_,S+108,8,this.uid)||this.needPax,this.needPax=b(_,S+116,8,this.gid)||this.needPax,this.needPax=b(_,S+124,12,this.size)||this.needPax,this.needPax=E(_,S+136,12,this.mtime)||this.needPax,_[S+156]=this[u].charCodeAt(0),this.needPax=m(_,S+157,100,this.linkpath)||this.needPax,_.write("ustar\x0000",S+257,8),this.needPax=m(_,S+265,32,this.uname)||this.needPax,this.needPax=m(_,S+297,32,this.gname)||this.needPax,this.needPax=b(_,S+329,8,this.devmaj)||this.needPax,this.needPax=b(_,S+337,8,this.devmin)||this.needPax,this.needPax=m(_,S+345,A,T)||this.needPax,_[S+475]!==0?this.needPax=m(_,S+345,155,T)||this.needPax:(this.needPax=m(_,S+345,130,T)||this.needPax,this.needPax=E(_,S+476,12,this.atime)||this.needPax,this.needPax=E(_,S+488,12,this.ctime)||this.needPax);let k=8*32;for(let O=S;O<S+148;O++)k+=_[O];for(let O=S+156;O<S+512;O++)k+=_[O];return this.cksum=k,b(_,S+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(_){for(let S in _)_[S]!==null&&_[S]!==void 0&&(this[S]=_[S])}get type(){return n.name.get(this[u])||this[u]}get typeKey(){return this[u]}set type(_){n.code.has(_)?this[u]=n.code.get(_):this[u]=_}},t=(_,S)=>{let A=_,x="",L,T=s.parse(_).root||".";if(Buffer.byteLength(A)<100)L=[A,x,!1];else{x=s.dirname(A),A=s.basename(A);do Buffer.byteLength(A)<=100&&Buffer.byteLength(x)<=S?L=[A,x,!1]:Buffer.byteLength(A)>100&&Buffer.byteLength(x)<=S?L=[A.slice(0,100-1),x,!0]:(A=s.join(s.basename(x),A),x=s.dirname(x));while(x!==T&&!L);L||(L=[_.slice(0,100-1),"",!0])}return L},p=(_,S,A)=>_.slice(S,S+A).toString("utf8").replace(/\0.*/,""),l=(_,S,A)=>c(o(_,S,A)),c=_=>_===null?null:new Date(_*1e3),o=(_,S,A)=>_[S]&128?i.parse(_.slice(S,S+A)):f(_,S,A),d=_=>isNaN(_)?null:_,f=(_,S,A)=>d(parseInt(_.slice(S,S+A).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},b=(_,S,A,x)=>x===null?!1:x>y[A]||x<0?(i.encode(x,_.slice(S,S+A)),!0):(w(_,S,A,x),!1),w=(_,S,A,x)=>_.write(g(x,A),S,A,"ascii"),g=(_,S)=>D(Math.floor(_).toString(8),S),D=(_,S)=>(_.length===S-1?_:new Array(S-_.length-1).join("0")+_+" ")+"\0",E=(_,S,A,x)=>x===null?!1:b(_,S,A,x.getTime()/1e3),v=new Array(156).join("\0"),m=(_,S,A,x)=>x===null?!1:(_.write(x+v,S,A,"utf8"),x.length!==Buffer.byteLength(x)||x.length>A);a.exports=r}),Vr=j((e,a)=>{"use strict";B();var n=Mt(),s=Z("path"),i=class{constructor(t,p){this.atime=t.atime||null,this.charset=t.charset||null,this.comment=t.comment||null,this.ctime=t.ctime||null,this.gid=t.gid||null,this.gname=t.gname||null,this.linkpath=t.linkpath||null,this.mtime=t.mtime||null,this.path=t.path||null,this.size=t.size||null,this.uid=t.uid||null,this.uname=t.uname||null,this.dev=t.dev||null,this.ino=t.ino||null,this.nlink=t.nlink||null,this.global=p||!1}encode(){let t=this.encodeBody();if(t==="")return null;let p=Buffer.byteLength(t),l=512*Math.ceil(1+p/512),c=Buffer.allocUnsafe(l);for(let o=0;o<512;o++)c[o]=0;new n({path:("PaxHeader/"+s.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:p,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(c),c.write(t,512,p,"utf8");for(let o=p+512;o<c.length;o++)c[o]=0;return c}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(t){if(this[t]===null||this[t]===void 0)return"";let p=this[t]instanceof Date?this[t].getTime()/1e3:this[t],l=" "+(t==="dev"||t==="ino"||t==="nlink"?"SCHILY.":"")+t+"="+p+`
|
|
14
|
-
|
|
15
|
-
`).reduce(r,Object.create(null)),r=(t,p)=>{let l=parseInt(p,10);if(l!==Buffer.byteLength(p)+1)return t;p=p.slice((l+" ").length);let c=p.split("="),o=c.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!o)return t;let d=c.join("=");return t[o]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(o)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,t};a.exports=i}),$t=j((e,a)=>{B(),a.exports=n=>{let s=n.length-1,i=-1;for(;s>-1&&n.charAt(s)==="/";)i=s,s--;return i===-1?n:n.slice(0,i)}}),Kr=j((e,a)=>{"use strict";B(),a.exports=n=>class extends n{warn(s,i,h={}){this.file&&(h.file=this.file),this.cwd&&(h.cwd=this.cwd),h.code=i instanceof Error&&i.code||s,h.tarCode=s,!this.strict&&h.recoverable!==!1?(i instanceof Error&&(h=Object.assign(i,h),i=i.message),this.emit("warn",h.tarCode,i,h)):i instanceof Error?this.emit("error",Object.assign(i,h)):this.emit("error",Object.assign(new Error(`${s}: ${i}`),h))}}}),wi=j((e,a)=>{"use strict";B();var n=["|","<",">","?",":"],s=n.map(u=>String.fromCharCode(61440+u.charCodeAt(0))),i=new Map(n.map((u,r)=>[u,s[r]])),h=new Map(s.map((u,r)=>[u,n[r]]));a.exports={encode:u=>n.reduce((r,t)=>r.split(t).join(i.get(t)),u),decode:u=>s.reduce((r,t)=>r.split(t).join(h.get(t)),u)}}),_i=j((e,a)=>{B();var{isAbsolute:n,parse:s}=Z("path").win32;a.exports=i=>{let h="",u=s(i);for(;n(i)||u.root;){let r=i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"?"/":u.root;i=i.slice(r.length),h+=r,u=s(i)}return[h,i]}}),wa=j((e,a)=>{"use strict";B(),a.exports=(n,s,i)=>(n&=4095,i&&(n=(n|384)&-19),s&&(n&256&&(n|=64),n&32&&(n|=8),n&4&&(n|=1)),n)}),Ei=j((e,a)=>{"use strict";B();var n=Wr(),s=Vr(),i=Mt(),h=Z("fs"),u=Z("path"),r=Nt(),t=$t(),p=(N,F)=>F?(N=r(N).replace(/^\.(\/|$)/,""),t(F)+"/"+N):r(N),l=16*1024*1024,c=Symbol("process"),o=Symbol("file"),d=Symbol("directory"),f=Symbol("symlink"),y=Symbol("hardlink"),b=Symbol("header"),w=Symbol("read"),g=Symbol("lstat"),D=Symbol("onlstat"),E=Symbol("onread"),v=Symbol("onreadlink"),m=Symbol("openfile"),_=Symbol("onopenfile"),S=Symbol("close"),A=Symbol("mode"),x=Symbol("awaitDrain"),L=Symbol("ondrain"),T=Symbol("prefix"),k=Symbol("hadError"),O=Kr(),I=wi(),$=_i(),R=wa(),G=O(class extends n{constructor(N,F){if(F=F||{},super(F),typeof N!="string")throw new TypeError("path is required");this.path=r(N),this.portable=!!F.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=F.maxReadSize||l,this.linkCache=F.linkCache||new Map,this.statCache=F.statCache||new Map,this.preservePaths=!!F.preservePaths,this.cwd=r(F.cwd||process.cwd()),this.strict=!!F.strict,this.noPax=!!F.noPax,this.noMtime=!!F.noMtime,this.mtime=F.mtime||null,this.prefix=F.prefix?r(F.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof F.onwarn=="function"&&this.on("warn",F.onwarn);let J=!1;if(!this.preservePaths){let[q,ee]=$(this.path);q&&(this.path=ee,J=q)}this.win32=!!F.win32||process.platform==="win32",this.win32&&(this.path=I.decode(this.path.replace(/\\/g,"/")),N=N.replace(/\\/g,"/")),this.absolute=r(F.absolute||u.resolve(this.cwd,N)),this.path===""&&(this.path="./"),J&&this.warn("TAR_ENTRY_INFO",`stripping ${J} from absolute path`,{entry:this,path:J+this.path}),this.statCache.has(this.absolute)?this[D](this.statCache.get(this.absolute)):this[g]()}emit(N,...F){return N==="error"&&(this[k]=!0),super.emit(N,...F)}[g](){h.lstat(this.absolute,(N,F)=>{if(N)return this.emit("error",N);this[D](F)})}[D](N){this.statCache.set(this.absolute,N),this.stat=N,N.isFile()||(N.size=0),this.type=P(N),this.emit("stat",N),this[c]()}[c](){switch(this.type){case"File":return this[o]();case"Directory":return this[d]();case"SymbolicLink":return this[f]();default:return this.end()}}[A](N){return R(N,this.type==="Directory",this.portable)}[T](N){return p(N,this.prefix)}[b](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this[A](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new s({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[b](),this.end()}[f](){h.readlink(this.absolute,(N,F)=>{if(N)return this.emit("error",N);this[v](F)})}[v](N){this.linkpath=r(N),this[b](),this.end()}[y](N){this.type="Link",this.linkpath=r(u.relative(this.cwd,N)),this.stat.size=0,this[b](),this.end()}[o](){if(this.stat.nlink>1){let N=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(N)){let F=this.linkCache.get(N);if(F.indexOf(this.cwd)===0)return this[y](F)}this.linkCache.set(N,this.absolute)}if(this[b](),this.stat.size===0)return this.end();this[m]()}[m](){h.open(this.absolute,"r",(N,F)=>{if(N)return this.emit("error",N);this[_](F)})}[_](N){if(this.fd=N,this[k])return this[S]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let F=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(F),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[w]()}[w](){let{fd:N,buf:F,offset:J,length:q,pos:ee}=this;h.read(N,F,J,q,ee,(M,K)=>{if(M)return this[S](()=>this.emit("error",M));this[E](K)})}[S](N){h.close(this.fd,N)}[E](N){if(N<=0&&this.remain>0){let J=new Error("encountered unexpected EOF");return J.path=this.absolute,J.syscall="read",J.code="EOF",this[S](()=>this.emit("error",J))}if(N>this.remain){let J=new Error("did not encounter expected EOF");return J.path=this.absolute,J.syscall="read",J.code="EOF",this[S](()=>this.emit("error",J))}if(N===this.remain)for(let J=N;J<this.length&&N<this.blockRemain;J++)this.buf[J+this.offset]=0,N++,this.remain++;let F=this.offset===0&&N===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+N);this.write(F)?this[L]():this[x](()=>this[L]())}[x](N){this.once("drain",N)}write(N){if(this.blockRemain<N.length){let F=new Error("writing more data than expected");return F.path=this.absolute,this.emit("error",F)}return this.remain-=N.length,this.blockRemain-=N.length,this.pos+=N.length,this.offset+=N.length,super.write(N)}[L](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[S](N=>N?this.emit("error",N):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[w]()}}),z=class extends G{[g](){this[D](h.lstatSync(this.absolute))}[f](){this[v](h.readlinkSync(this.absolute))}[m](){this[_](h.openSync(this.absolute,"r"))}[w](){let N=!0;try{let{fd:F,buf:J,offset:q,length:ee,pos:M}=this,K=h.readSync(F,J,q,ee,M);this[E](K),N=!1}finally{if(N)try{this[S](()=>{})}catch{}}}[x](N){N()}[S](N){h.closeSync(this.fd),N()}},Q=O(class extends n{constructor(N,F){F=F||{},super(F),this.preservePaths=!!F.preservePaths,this.portable=!!F.portable,this.strict=!!F.strict,this.noPax=!!F.noPax,this.noMtime=!!F.noMtime,this.readEntry=N,this.type=N.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=F.prefix||null,this.path=r(N.path),this.mode=this[A](N.mode),this.uid=this.portable?null:N.uid,this.gid=this.portable?null:N.gid,this.uname=this.portable?null:N.uname,this.gname=this.portable?null:N.gname,this.size=N.size,this.mtime=this.noMtime?null:F.mtime||N.mtime,this.atime=this.portable?null:N.atime,this.ctime=this.portable?null:N.ctime,this.linkpath=r(N.linkpath),typeof F.onwarn=="function"&&this.on("warn",F.onwarn);let J=!1;if(!this.preservePaths){let[q,ee]=$(this.path);q&&(this.path=ee,J=q)}this.remain=N.size,this.blockRemain=N.startBlockSize,this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),J&&this.warn("TAR_ENTRY_INFO",`stripping ${J} from absolute path`,{entry:this,path:J+this.path}),this.header.encode()&&!this.noPax&&super.write(new s({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),N.pipe(this)}[T](N){return p(N,this.prefix)}[A](N){return R(N,this.type==="Directory",this.portable)}write(N){let F=N.length;if(F>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=F,super.write(N)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});G.Sync=z,G.Tar=Q;var P=N=>N.isFile()?"File":N.isDirectory()?"Directory":N.isSymbolicLink()?"SymbolicLink":"Unsupported";a.exports=G}),_a=j((e,a)=>{"use strict";B(),a.exports=function(n){n.prototype[Symbol.iterator]=function*(){for(let s=this.head;s;s=s.next)yield s.value}}}),Di=j((e,a)=>{"use strict";B(),a.exports=n,n.Node=u,n.create=n;function n(r){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,r&&typeof r.forEach=="function")r.forEach(function(c){t.push(c)});else if(arguments.length>0)for(var p=0,l=arguments.length;p<l;p++)t.push(arguments[p]);return t}n.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var t=r.next,p=r.prev;return t&&(t.prev=p),p&&(p.next=t),r===this.head&&(this.head=t),r===this.tail&&(this.tail=p),r.list.length--,r.next=null,r.prev=null,r.list=null,t},n.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var t=this.head;r.list=this,r.next=t,t&&(t.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}},n.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var t=this.tail;r.list=this,r.prev=t,t&&(t.next=r),this.tail=r,this.head||(this.head=r),this.length++}},n.prototype.push=function(){for(var r=0,t=arguments.length;r<t;r++)i(this,arguments[r]);return this.length},n.prototype.unshift=function(){for(var r=0,t=arguments.length;r<t;r++)h(this,arguments[r]);return this.length},n.prototype.pop=function(){if(this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}},n.prototype.shift=function(){if(this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}},n.prototype.forEach=function(r,t){t=t||this;for(var p=this.head,l=0;p!==null;l++)r.call(t,p.value,l,this),p=p.next},n.prototype.forEachReverse=function(r,t){t=t||this;for(var p=this.tail,l=this.length-1;p!==null;l--)r.call(t,p.value,l,this),p=p.prev},n.prototype.get=function(r){for(var t=0,p=this.head;p!==null&&t<r;t++)p=p.next;if(t===r&&p!==null)return p.value},n.prototype.getReverse=function(r){for(var t=0,p=this.tail;p!==null&&t<r;t++)p=p.prev;if(t===r&&p!==null)return p.value},n.prototype.map=function(r,t){t=t||this;for(var p=new n,l=this.head;l!==null;)p.push(r.call(t,l.value,this)),l=l.next;return p},n.prototype.mapReverse=function(r,t){t=t||this;for(var p=new n,l=this.tail;l!==null;)p.push(r.call(t,l.value,this)),l=l.prev;return p},n.prototype.reduce=function(r,t){var p,l=this.head;if(arguments.length>1)p=t;else if(this.head)l=this.head.next,p=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=0;l!==null;c++)p=r(p,l.value,c),l=l.next;return p},n.prototype.reduceReverse=function(r,t){var p,l=this.tail;if(arguments.length>1)p=t;else if(this.tail)l=this.tail.prev,p=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=this.length-1;l!==null;c--)p=r(p,l.value,c),l=l.prev;return p},n.prototype.toArray=function(){for(var r=new Array(this.length),t=0,p=this.head;p!==null;t++)r[t]=p.value,p=p.next;return r},n.prototype.toArrayReverse=function(){for(var r=new Array(this.length),t=0,p=this.tail;p!==null;t++)r[t]=p.value,p=p.prev;return r},n.prototype.slice=function(r,t){t=t||this.length,t<0&&(t+=this.length),r=r||0,r<0&&(r+=this.length);var p=new n;if(t<r||t<0)return p;r<0&&(r=0),t>this.length&&(t=this.length);for(var l=0,c=this.head;c!==null&&l<r;l++)c=c.next;for(;c!==null&&l<t;l++,c=c.next)p.push(c.value);return p},n.prototype.sliceReverse=function(r,t){t=t||this.length,t<0&&(t+=this.length),r=r||0,r<0&&(r+=this.length);var p=new n;if(t<r||t<0)return p;r<0&&(r=0),t>this.length&&(t=this.length);for(var l=this.length,c=this.tail;c!==null&&l>t;l--)c=c.prev;for(;c!==null&&l>r;l--,c=c.prev)p.push(c.value);return p},n.prototype.splice=function(r,t,...p){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var l=0,c=this.head;c!==null&&l<r;l++)c=c.next;for(var o=[],l=0;c&&l<t;l++)o.push(c.value),c=this.removeNode(c);c===null&&(c=this.tail),c!==this.head&&c!==this.tail&&(c=c.prev);for(var l=0;l<p.length;l++)c=s(this,c,p[l]);return o},n.prototype.reverse=function(){for(var r=this.head,t=this.tail,p=r;p!==null;p=p.prev){var l=p.prev;p.prev=p.next,p.next=l}return this.head=t,this.tail=r,this};function s(r,t,p){var l=t===r.head?new u(p,null,t,r):new u(p,t,t.next,r);return l.next===null&&(r.tail=l),l.prev===null&&(r.head=l),r.length++,l}function i(r,t){r.tail=new u(t,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function h(r,t){r.head=new u(t,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function u(r,t,p,l){if(!(this instanceof u))return new u(r,t,p,l);this.list=l,this.value=r,t?(t.next=this,this.prev=t):this.prev=null,p?(p.prev=this,this.next=p):this.next=null}try{_a()(n)}catch{}}),Yr=j((e,a)=>{"use strict";B();var n=class{constructor(P,N){this.path=P||"./",this.absolute=N,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},s=Wr(),i=bi(),h=zr(),u=Ei(),r=u.Sync,t=u.Tar,p=Di(),l=Buffer.alloc(1024),c=Symbol("onStat"),o=Symbol("ended"),d=Symbol("queue"),f=Symbol("current"),y=Symbol("process"),b=Symbol("processing"),w=Symbol("processJob"),g=Symbol("jobs"),D=Symbol("jobDone"),E=Symbol("addFSEntry"),v=Symbol("addTarEntry"),m=Symbol("stat"),_=Symbol("readdir"),S=Symbol("onreaddir"),A=Symbol("pipe"),x=Symbol("entry"),L=Symbol("entryOpt"),T=Symbol("writeEntryClass"),k=Symbol("write"),O=Symbol("ondrain"),I=Z("fs"),$=Z("path"),R=Kr(),G=Nt(),z=R(class extends s{constructor(P){super(P),P=P||Object.create(null),this.opt=P,this.file=P.file||"",this.cwd=P.cwd||process.cwd(),this.maxReadSize=P.maxReadSize,this.preservePaths=!!P.preservePaths,this.strict=!!P.strict,this.noPax=!!P.noPax,this.prefix=G(P.prefix||""),this.linkCache=P.linkCache||new Map,this.statCache=P.statCache||new Map,this.readdirCache=P.readdirCache||new Map,this[T]=u,typeof P.onwarn=="function"&&this.on("warn",P.onwarn),this.portable=!!P.portable,this.zip=null,P.gzip?(typeof P.gzip!="object"&&(P.gzip={}),this.portable&&(P.gzip.portable=!0),this.zip=new i.Gzip(P.gzip),this.zip.on("data",N=>super.write(N)),this.zip.on("end",N=>super.end()),this.zip.on("drain",N=>this[O]()),this.on("resume",N=>this.zip.resume())):this.on("drain",this[O]),this.noDirRecurse=!!P.noDirRecurse,this.follow=!!P.follow,this.noMtime=!!P.noMtime,this.mtime=P.mtime||null,this.filter=typeof P.filter=="function"?P.filter:N=>!0,this[d]=new p,this[g]=0,this.jobs=+P.jobs||4,this[b]=!1,this[o]=!1}[k](P){return super.write(P)}add(P){return this.write(P),this}end(P){return P&&this.write(P),this[o]=!0,this[y](),this}write(P){if(this[o])throw new Error("write after end");return P instanceof h?this[v](P):this[E](P),this.flowing}[v](P){let N=G($.resolve(this.cwd,P.path));if(!this.filter(P.path,P))P.resume();else{let F=new n(P.path,N,!1);F.entry=new t(P,this[L](F)),F.entry.on("end",J=>this[D](F)),this[g]+=1,this[d].push(F)}this[y]()}[E](P){let N=G($.resolve(this.cwd,P));this[d].push(new n(P,N)),this[y]()}[m](P){P.pending=!0,this[g]+=1;let N=this.follow?"stat":"lstat";I[N](P.absolute,(F,J)=>{P.pending=!1,this[g]-=1,F?this.emit("error",F):this[c](P,J)})}[c](P,N){this.statCache.set(P.absolute,N),P.stat=N,this.filter(P.path,N)||(P.ignore=!0),this[y]()}[_](P){P.pending=!0,this[g]+=1,I.readdir(P.absolute,(N,F)=>{if(P.pending=!1,this[g]-=1,N)return this.emit("error",N);this[S](P,F)})}[S](P,N){this.readdirCache.set(P.absolute,N),P.readdir=N,this[y]()}[y](){if(!this[b]){this[b]=!0;for(let P=this[d].head;P!==null&&this[g]<this.jobs;P=P.next)if(this[w](P.value),P.value.ignore){let N=P.next;this[d].removeNode(P),P.next=N}this[b]=!1,this[o]&&!this[d].length&&this[g]===0&&(this.zip?this.zip.end(l):(super.write(l),super.end()))}}get[f](){return this[d]&&this[d].head&&this[d].head.value}[D](P){this[d].shift(),this[g]-=1,this[y]()}[w](P){if(!P.pending){if(P.entry){P===this[f]&&!P.piped&&this[A](P);return}if(P.stat||(this.statCache.has(P.absolute)?this[c](P,this.statCache.get(P.absolute)):this[m](P)),!!P.stat&&!P.ignore&&!(!this.noDirRecurse&&P.stat.isDirectory()&&!P.readdir&&(this.readdirCache.has(P.absolute)?this[S](P,this.readdirCache.get(P.absolute)):this[_](P),!P.readdir))){if(P.entry=this[x](P),!P.entry){P.ignore=!0;return}P===this[f]&&!P.piped&&this[A](P)}}}[L](P){return{onwarn:(N,F,J)=>this.warn(N,F,J),noPax:this.noPax,cwd:this.cwd,absolute:P.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[x](P){this[g]+=1;try{return new this[T](P.path,this[L](P)).on("end",()=>this[D](P)).on("error",N=>this.emit("error",N))}catch(N){this.emit("error",N)}}[O](){this[f]&&this[f].entry&&this[f].entry.resume()}[A](P){P.piped=!0,P.readdir&&P.readdir.forEach(J=>{let q=P.path,ee=q==="./"?"":q.replace(/\/*$/,"/");this[E](ee+J)});let N=P.entry,F=this.zip;F?N.on("data",J=>{F.write(J)||N.pause()}):N.on("data",J=>{super.write(J)||N.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Q=class extends z{constructor(P){super(P),this[T]=r}pause(){}resume(){}[m](P){let N=this.follow?"statSync":"lstatSync";this[c](P,I[N](P.absolute))}[_](P,N){this[S](P,I.readdirSync(P.absolute))}[A](P){let N=P.entry,F=this.zip;P.readdir&&P.readdir.forEach(J=>{let q=P.path,ee=q==="./"?"":q.replace(/\/*$/,"/");this[E](ee+J)}),F?N.on("data",J=>{F.write(J)}):N.on("data",J=>{super[k](J)})}};z.Sync=Q,a.exports=z}),Ht=j(e=>{"use strict";B();var a=yi(),n=Z("events").EventEmitter,s=Z("fs"),i=s.writev;if(!i){let P=process.binding("fs"),N=P.FSReqWrap||P.FSReqCallback;i=(F,J,q,ee)=>{let M=(te,oe)=>ee(te,oe,J),K=new N;K.oncomplete=M,P.writeBuffers(F,J,q,K)}}var h=Symbol("_autoClose"),u=Symbol("_close"),r=Symbol("_ended"),t=Symbol("_fd"),p=Symbol("_finished"),l=Symbol("_flags"),c=Symbol("_flush"),o=Symbol("_handleChunk"),d=Symbol("_makeBuf"),f=Symbol("_mode"),y=Symbol("_needDrain"),b=Symbol("_onerror"),w=Symbol("_onopen"),g=Symbol("_onread"),D=Symbol("_onwrite"),E=Symbol("_open"),v=Symbol("_path"),m=Symbol("_pos"),_=Symbol("_queue"),S=Symbol("_read"),A=Symbol("_readSize"),x=Symbol("_reading"),L=Symbol("_remain"),T=Symbol("_size"),k=Symbol("_write"),O=Symbol("_writing"),I=Symbol("_defaultFlag"),$=Symbol("_errored"),R=class extends a{constructor(P,N){if(N=N||{},super(N),this.readable=!0,this.writable=!1,typeof P!="string")throw new TypeError("path must be a string");this[$]=!1,this[t]=typeof N.fd=="number"?N.fd:null,this[v]=P,this[A]=N.readSize||16*1024*1024,this[x]=!1,this[T]=typeof N.size=="number"?N.size:1/0,this[L]=this[T],this[h]=typeof N.autoClose=="boolean"?N.autoClose:!0,typeof this[t]=="number"?this[S]():this[E]()}get fd(){return this[t]}get path(){return this[v]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[E](){s.open(this[v],"r",(P,N)=>this[w](P,N))}[w](P,N){P?this[b](P):(this[t]=N,this.emit("open",N),this[S]())}[d](){return Buffer.allocUnsafe(Math.min(this[A],this[L]))}[S](){if(!this[x]){this[x]=!0;let P=this[d]();if(P.length===0)return process.nextTick(()=>this[g](null,0,P));s.read(this[t],P,0,P.length,null,(N,F,J)=>this[g](N,F,J))}}[g](P,N,F){this[x]=!1,P?this[b](P):this[o](N,F)&&this[S]()}[u](){if(this[h]&&typeof this[t]=="number"){let P=this[t];this[t]=null,s.close(P,N=>N?this.emit("error",N):this.emit("close"))}}[b](P){this[x]=!0,this[u](),this.emit("error",P)}[o](P,N){let F=!1;return this[L]-=P,P>0&&(F=super.write(P<N.length?N.slice(0,P):N)),(P===0||this[L]<=0)&&(F=!1,this[u](),super.end()),F}emit(P,N){switch(P){case"prefinish":case"finish":break;case"drain":typeof this[t]=="number"&&this[S]();break;case"error":return this[$]?void 0:(this[$]=!0,super.emit(P,N));default:return super.emit(P,N)}}},G=class extends R{[E](){let P=!0;try{this[w](null,s.openSync(this[v],"r")),P=!1}finally{P&&this[u]()}}[S](){let P=!0;try{if(!this[x]){this[x]=!0;do{let N=this[d](),F=N.length===0?0:s.readSync(this[t],N,0,N.length,null);if(!this[o](F,N))break}while(!0);this[x]=!1}P=!1}finally{P&&this[u]()}}[u](){if(this[h]&&typeof this[t]=="number"){let P=this[t];this[t]=null,s.closeSync(P),this.emit("close")}}},z=class extends n{constructor(P,N){N=N||{},super(N),this.readable=!1,this.writable=!0,this[$]=!1,this[O]=!1,this[r]=!1,this[y]=!1,this[_]=[],this[v]=P,this[t]=typeof N.fd=="number"?N.fd:null,this[f]=N.mode===void 0?438:N.mode,this[m]=typeof N.start=="number"?N.start:null,this[h]=typeof N.autoClose=="boolean"?N.autoClose:!0;let F=this[m]!==null?"r+":"w";this[I]=N.flags===void 0,this[l]=this[I]?F:N.flags,this[t]===null&&this[E]()}emit(P,N){if(P==="error"){if(this[$])return;this[$]=!0}return super.emit(P,N)}get fd(){return this[t]}get path(){return this[v]}[b](P){this[u](),this[O]=!0,this.emit("error",P)}[E](){s.open(this[v],this[l],this[f],(P,N)=>this[w](P,N))}[w](P,N){this[I]&&this[l]==="r+"&&P&&P.code==="ENOENT"?(this[l]="w",this[E]()):P?this[b](P):(this[t]=N,this.emit("open",N),this[c]())}end(P,N){return P&&this.write(P,N),this[r]=!0,!this[O]&&!this[_].length&&typeof this[t]=="number"&&this[D](null,0),this}write(P,N){return typeof P=="string"&&(P=Buffer.from(P,N)),this[r]?(this.emit("error",new Error("write() after end()")),!1):this[t]===null||this[O]||this[_].length?(this[_].push(P),this[y]=!0,!1):(this[O]=!0,this[k](P),!0)}[k](P){s.write(this[t],P,0,P.length,this[m],(N,F)=>this[D](N,F))}[D](P,N){P?this[b](P):(this[m]!==null&&(this[m]+=N),this[_].length?this[c]():(this[O]=!1,this[r]&&!this[p]?(this[p]=!0,this[u](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[c](){if(this[_].length===0)this[r]&&this[D](null,0);else if(this[_].length===1)this[k](this[_].pop());else{let P=this[_];this[_]=[],i(this[t],P,this[m],(N,F)=>this[D](N,F))}}[u](){if(this[h]&&typeof this[t]=="number"){let P=this[t];this[t]=null,s.close(P,N=>N?this.emit("error",N):this.emit("close"))}}},Q=class extends z{[E](){let P;if(this[I]&&this[l]==="r+")try{P=s.openSync(this[v],this[l],this[f])}catch(N){if(N.code==="ENOENT")return this[l]="w",this[E]();throw N}else P=s.openSync(this[v],this[l],this[f]);this[w](null,P)}[u](){if(this[h]&&typeof this[t]=="number"){let P=this[t];this[t]=null,s.closeSync(P),this.emit("close")}}[k](P){let N=!0;try{this[D](null,s.writeSync(this[t],P,0,P.length,this[m])),N=!1}finally{if(N)try{this[u]()}catch{}}}};e.ReadStream=R,e.ReadStreamSync=G,e.WriteStream=z,e.WriteStreamSync=Q}),Jr=j((e,a)=>{"use strict";B();var n=Kr(),s=Mt(),i=Z("events"),h=Di(),u=1024*1024,r=zr(),t=Vr(),p=bi(),{nextTick:l}=Z("process"),c=Buffer.from([31,139]),o=Symbol("state"),d=Symbol("writeEntry"),f=Symbol("readEntry"),y=Symbol("nextEntry"),b=Symbol("processEntry"),w=Symbol("extendedHeader"),g=Symbol("globalExtendedHeader"),D=Symbol("meta"),E=Symbol("emitMeta"),v=Symbol("buffer"),m=Symbol("queue"),_=Symbol("ended"),S=Symbol("emittedEnd"),A=Symbol("emit"),x=Symbol("unzip"),L=Symbol("consumeChunk"),T=Symbol("consumeChunkSub"),k=Symbol("consumeBody"),O=Symbol("consumeMeta"),I=Symbol("consumeHeader"),$=Symbol("consuming"),R=Symbol("bufferConcat"),G=Symbol("maybeEnd"),z=Symbol("writing"),Q=Symbol("aborted"),P=Symbol("onDone"),N=Symbol("sawValidEntry"),F=Symbol("sawNullBlock"),J=Symbol("sawEOF"),q=Symbol("closeStream"),ee=M=>!0;a.exports=n(class extends i{constructor(M){M=M||{},super(M),this.file=M.file||"",this[N]=null,this.on(P,K=>{(this[o]==="begin"||this[N]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),M.ondone?this.on(P,M.ondone):this.on(P,K=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!M.strict,this.maxMetaEntrySize=M.maxMetaEntrySize||u,this.filter=typeof M.filter=="function"?M.filter:ee,this.writable=!0,this.readable=!1,this[m]=new h,this[v]=null,this[f]=null,this[d]=null,this[o]="begin",this[D]="",this[w]=null,this[g]=null,this[_]=!1,this[x]=null,this[Q]=!1,this[F]=!1,this[J]=!1,this.on("end",()=>this[q]()),typeof M.onwarn=="function"&&this.on("warn",M.onwarn),typeof M.onentry=="function"&&this.on("entry",M.onentry)}[I](M,K){this[N]===null&&(this[N]=!1);let te;try{te=new s(M,K,this[w],this[g])}catch(oe){return this.warn("TAR_ENTRY_INVALID",oe)}if(te.nullBlock)this[F]?(this[J]=!0,this[o]==="begin"&&(this[o]="header"),this[A]("eof")):(this[F]=!0,this[A]("nullBlock"));else if(this[F]=!1,!te.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:te});else if(!te.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:te});else{let oe=te.type;if(/^(Symbolic)?Link$/.test(oe)&&!te.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:te});else if(!/^(Symbolic)?Link$/.test(oe)&&te.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:te});else{let ce=this[d]=new r(te,this[w],this[g]);if(!this[N])if(ce.remain){let be=()=>{ce.invalid||(this[N]=!0)};ce.on("end",be)}else this[N]=!0;ce.meta?ce.size>this.maxMetaEntrySize?(ce.ignore=!0,this[A]("ignoredEntry",ce),this[o]="ignore",ce.resume()):ce.size>0&&(this[D]="",ce.on("data",be=>this[D]+=be),this[o]="meta"):(this[w]=null,ce.ignore=ce.ignore||!this.filter(ce.path,ce),ce.ignore?(this[A]("ignoredEntry",ce),this[o]=ce.remain?"ignore":"header",ce.resume()):(ce.remain?this[o]="body":(this[o]="header",ce.end()),this[f]?this[m].push(ce):(this[m].push(ce),this[y]())))}}}[q](){l(()=>this.emit("close"))}[b](M){let K=!0;return M?Array.isArray(M)?this.emit.apply(this,M):(this[f]=M,this.emit("entry",M),M.emittedEnd||(M.on("end",te=>this[y]()),K=!1)):(this[f]=null,K=!1),K}[y](){do;while(this[b](this[m].shift()));if(!this[m].length){let M=this[f];!M||M.flowing||M.size===M.remain?this[z]||this.emit("drain"):M.once("drain",K=>this.emit("drain"))}}[k](M,K){let te=this[d],oe=te.blockRemain,ce=oe>=M.length&&K===0?M:M.slice(K,K+oe);return te.write(ce),te.blockRemain||(this[o]="header",this[d]=null,te.end()),ce.length}[O](M,K){let te=this[d],oe=this[k](M,K);return this[d]||this[E](te),oe}[A](M,K,te){!this[m].length&&!this[f]?this.emit(M,K,te):this[m].push([M,K,te])}[E](M){switch(this[A]("meta",this[D]),M.type){case"ExtendedHeader":case"OldExtendedHeader":this[w]=t.parse(this[D],this[w],!1);break;case"GlobalExtendedHeader":this[g]=t.parse(this[D],this[g],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[w]=this[w]||Object.create(null),this[w].path=this[D].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[w]=this[w]||Object.create(null),this[w].linkpath=this[D].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+M.type)}}abort(M){this[Q]=!0,this.emit("abort",M),this.warn("TAR_ABORT",M,{recoverable:!1})}write(M){if(this[Q])return;if(this[x]===null&&M){if(this[v]&&(M=Buffer.concat([this[v],M]),this[v]=null),M.length<c.length)return this[v]=M,!0;for(let te=0;this[x]===null&&te<c.length;te++)M[te]!==c[te]&&(this[x]=!1);if(this[x]===null){let te=this[_];this[_]=!1,this[x]=new p.Unzip,this[x].on("data",ce=>this[L](ce)),this[x].on("error",ce=>this.abort(ce)),this[x].on("end",ce=>{this[_]=!0,this[L]()}),this[z]=!0;let oe=this[x][te?"end":"write"](M);return this[z]=!1,oe}}this[z]=!0,this[x]?this[x].write(M):this[L](M),this[z]=!1;let K=this[m].length?!1:this[f]?this[f].flowing:!0;return!K&&!this[m].length&&this[f].once("drain",te=>this.emit("drain")),K}[R](M){M&&!this[Q]&&(this[v]=this[v]?Buffer.concat([this[v],M]):M)}[G](){if(this[_]&&!this[S]&&!this[Q]&&!this[$]){this[S]=!0;let M=this[d];if(M&&M.blockRemain){let K=this[v]?this[v].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${M.blockRemain} more bytes, only ${K} available)`,{entry:M}),this[v]&&M.write(this[v]),M.end()}this[A](P)}}[L](M){if(this[$])this[R](M);else if(!M&&!this[v])this[G]();else{if(this[$]=!0,this[v]){this[R](M);let K=this[v];this[v]=null,this[T](K)}else this[T](M);for(;this[v]&&this[v].length>=512&&!this[Q]&&!this[J];){let K=this[v];this[v]=null,this[T](K)}this[$]=!1}(!this[v]||this[_])&&this[G]()}[T](M){let K=0,te=M.length;for(;K+512<=te&&!this[Q]&&!this[J];)switch(this[o]){case"begin":case"header":this[I](M,K),K+=512;break;case"ignore":case"body":K+=this[k](M,K);break;case"meta":K+=this[O](M,K);break;default:throw new Error("invalid state: "+this[o])}K<te&&(this[v]?this[v]=Buffer.concat([M.slice(K),this[v]]):this[v]=M.slice(K))}end(M){this[Q]||(this[x]?this[x].end(M):(this[_]=!0,this.write(M)))}})}),Zr=j((e,a)=>{"use strict";B();var n=jt(),s=Jr(),i=Z("fs"),h=Ht(),u=Z("path"),r=$t();a.exports=(d,f,y)=>{typeof d=="function"?(y=d,f=null,d={}):Array.isArray(d)&&(f=d,d={}),typeof f=="function"&&(y=f,f=null),f?f=Array.from(f):f=[];let b=n(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return f.length&&p(b,f),b.noResume||t(b),b.file&&b.sync?l(b):b.file?c(b,y):o(b)};var t=d=>{let f=d.onentry;d.onentry=f?y=>{f(y),y.resume()}:y=>y.resume()},p=(d,f)=>{let y=new Map(f.map(g=>[r(g),!0])),b=d.filter,w=(g,D)=>{let E=D||u.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):w(u.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,D)=>b(g,D)&&w(r(g)):g=>w(r(g))},l=d=>{let f=o(d),y=d.file,b=!0,w;try{let g=i.statSync(y),D=d.maxReadSize||16*1024*1024;if(g.size<D)f.end(i.readFileSync(y));else{let E=0,v=Buffer.allocUnsafe(D);for(w=i.openSync(y,"r");E<g.size;){let m=i.readSync(w,v,0,D,E);E+=m,f.write(v.slice(0,m))}f.end()}b=!1}finally{if(b&&w)try{i.closeSync(w)}catch{}}},c=(d,f)=>{let y=new s(d),b=d.maxReadSize||16*1024*1024,w=d.file,g=new Promise((D,E)=>{y.on("error",E),y.on("end",D),i.stat(w,(v,m)=>{if(v)E(v);else{let _=new h.ReadStream(w,{readSize:b,size:m.size});_.on("error",E),_.pipe(y)}})});return f?g.then(f,f):g},o=d=>new s(d)}),Ea=j((e,a)=>{"use strict";B();var n=jt(),s=Yr(),i=Ht(),h=Zr(),u=Z("path");a.exports=(d,f,y)=>{if(typeof f=="function"&&(y=f),Array.isArray(d)&&(f=d,d={}),!f||!Array.isArray(f)||!f.length)throw new TypeError("no files or directories specified");f=Array.from(f);let b=n(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return b.file&&b.sync?r(b,f):b.file?t(b,f,y):b.sync?c(b,f):o(b,f)};var r=(d,f)=>{let y=new s.Sync(d),b=new i.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(b),p(y,f)},t=(d,f,y)=>{let b=new s(d),w=new i.WriteStream(d.file,{mode:d.mode||438});b.pipe(w);let g=new Promise((D,E)=>{w.on("error",E),w.on("close",D),b.on("error",E)});return l(b,f),y?g.then(y,y):g},p=(d,f)=>{f.forEach(y=>{y.charAt(0)==="@"?h({file:u.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:b=>d.add(b)}):d.add(y)}),d.end()},l=(d,f)=>{for(;f.length;){let y=f.shift();if(y.charAt(0)==="@")return h({file:u.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:b=>d.add(b)}).then(b=>l(d,f));d.add(y)}d.end()},c=(d,f)=>{let y=new s.Sync(d);return p(y,f),y},o=(d,f)=>{let y=new s(d);return l(y,f),y}}),Si=j((e,a)=>{"use strict";B();var n=jt(),s=Yr(),i=Z("fs"),h=Ht(),u=Zr(),r=Z("path"),t=Mt();a.exports=(f,y,b)=>{let w=n(f);if(!w.file)throw new TypeError("file is required");if(w.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),w.sync?p(w,y):c(w,y,b)};var p=(f,y)=>{let b=new s.Sync(f),w=!0,g,D;try{try{g=i.openSync(f.file,"r+")}catch(m){if(m.code==="ENOENT")g=i.openSync(f.file,"w+");else throw m}let E=i.fstatSync(g),v=Buffer.alloc(512);e:for(D=0;D<E.size;D+=512){for(let S=0,A=0;S<512;S+=A){if(A=i.readSync(g,v,S,v.length-S,D+S),D===0&&v[0]===31&&v[1]===139)throw new Error("cannot append to compressed archives");if(!A)break e}let m=new t(v);if(!m.cksumValid)break;let _=512*Math.ceil(m.size/512);if(D+_+512>E.size)break;D+=_,f.mtimeCache&&f.mtimeCache.set(m.path,m.mtime)}w=!1,l(f,b,D,g,y)}finally{if(w)try{i.closeSync(g)}catch{}}},l=(f,y,b,w,g)=>{let D=new h.WriteStreamSync(f.file,{fd:w,start:b});y.pipe(D),o(y,g)},c=(f,y,b)=>{y=Array.from(y);let w=new s(f),g=(E,v,m)=>{let _=(T,k)=>{T?i.close(E,O=>m(T)):m(null,k)},S=0;if(v===0)return _(null,0);let A=0,x=Buffer.alloc(512),L=(T,k)=>{if(T)return _(T);if(A+=k,A<512&&k)return i.read(E,x,A,x.length-A,S+A,L);if(S===0&&x[0]===31&&x[1]===139)return _(new Error("cannot append to compressed archives"));if(A<512)return _(null,S);let O=new t(x);if(!O.cksumValid)return _(null,S);let I=512*Math.ceil(O.size/512);if(S+I+512>v||(S+=I+512,S>=v))return _(null,S);f.mtimeCache&&f.mtimeCache.set(O.path,O.mtime),A=0,i.read(E,x,0,512,S,L)};i.read(E,x,0,512,S,L)},D=new Promise((E,v)=>{w.on("error",v);let m="r+",_=(S,A)=>{if(S&&S.code==="ENOENT"&&m==="r+")return m="w+",i.open(f.file,m,_);if(S)return v(S);i.fstat(A,(x,L)=>{if(x)return i.close(A,()=>v(x));g(A,L.size,(T,k)=>{if(T)return v(T);let O=new h.WriteStream(f.file,{fd:A,start:k});w.pipe(O),O.on("error",v),O.on("close",E),d(w,y)})})};i.open(f.file,m,_)});return b?D.then(b,b):D},o=(f,y)=>{y.forEach(b=>{b.charAt(0)==="@"?u({file:r.resolve(f.cwd,b.slice(1)),sync:!0,noResume:!0,onentry:w=>f.add(w)}):f.add(b)}),f.end()},d=(f,y)=>{for(;y.length;){let b=y.shift();if(b.charAt(0)==="@")return u({file:r.resolve(f.cwd,b.slice(1)),noResume:!0,onentry:w=>f.add(w)}).then(w=>d(f,y));f.add(b)}f.end()}}),Da=j((e,a)=>{"use strict";B();var n=jt(),s=Si();a.exports=(h,u,r)=>{let t=n(h);if(!t.file)throw new TypeError("file is required");if(t.gzip)throw new TypeError("cannot append to compressed archives");if(!u||!Array.isArray(u)||!u.length)throw new TypeError("no files or directories specified");return u=Array.from(u),i(t),s(t,u,r)};var i=h=>{let u=h.filter;h.mtimeCache||(h.mtimeCache=new Map),h.filter=u?(r,t)=>u(r,t)&&!(h.mtimeCache.get(r)>t.mtime):(r,t)=>!(h.mtimeCache.get(r)>t.mtime)}}),Sa=j((e,a)=>{B();var{promisify:n}=Z("util"),s=Z("fs"),i=h=>{if(!h)h={mode:511,fs:s};else if(typeof h=="object")h={mode:511,fs:s,...h};else if(typeof h=="number")h={mode:h,fs:s};else if(typeof h=="string")h={mode:parseInt(h,8),fs:s};else throw new TypeError("invalid options argument");return h.mkdir=h.mkdir||h.fs.mkdir||s.mkdir,h.mkdirAsync=n(h.mkdir),h.stat=h.stat||h.fs.stat||s.stat,h.statAsync=n(h.stat),h.statSync=h.statSync||h.fs.statSync||s.statSync,h.mkdirSync=h.mkdirSync||h.fs.mkdirSync||s.mkdirSync,h};a.exports=i}),Aa=j((e,a)=>{B();var n=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:s,parse:i}=Z("path"),h=u=>{if(/\0/.test(u))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:u,code:"ERR_INVALID_ARG_VALUE"});if(u=s(u),n==="win32"){let r=/[*|"<>?:]/,{root:t}=i(u);if(r.test(u.substr(t.length)))throw Object.assign(new Error("Illegal characters in path."),{path:u,code:"EINVAL"})}return u};a.exports=h}),Ca=j((e,a)=>{B();var{dirname:n}=Z("path"),s=(h,u,r=void 0)=>r===u?Promise.resolve():h.statAsync(u).then(t=>t.isDirectory()?r:void 0,t=>t.code==="ENOENT"?s(h,n(u),u):void 0),i=(h,u,r=void 0)=>{if(r!==u)try{return h.statSync(u).isDirectory()?r:void 0}catch(t){return t.code==="ENOENT"?i(h,n(u),u):void 0}};a.exports={findMade:s,findMadeSync:i}}),Ai=j((e,a)=>{B();var{dirname:n}=Z("path"),s=(h,u,r)=>{u.recursive=!1;let t=n(h);return t===h?u.mkdirAsync(h,u).catch(p=>{if(p.code!=="EISDIR")throw p}):u.mkdirAsync(h,u).then(()=>r||h,p=>{if(p.code==="ENOENT")return s(t,u).then(l=>s(h,u,l));if(p.code!=="EEXIST"&&p.code!=="EROFS")throw p;return u.statAsync(h).then(l=>{if(l.isDirectory())return r;throw p},()=>{throw p})})},i=(h,u,r)=>{let t=n(h);if(u.recursive=!1,t===h)try{return u.mkdirSync(h,u)}catch(p){if(p.code!=="EISDIR")throw p;return}try{return u.mkdirSync(h,u),r||h}catch(p){if(p.code==="ENOENT")return i(h,u,i(t,u,r));if(p.code!=="EEXIST"&&p.code!=="EROFS")throw p;try{if(!u.statSync(h).isDirectory())throw p}catch{throw p}}};a.exports={mkdirpManual:s,mkdirpManualSync:i}}),xa=j((e,a)=>{B();var{dirname:n}=Z("path"),{findMade:s,findMadeSync:i}=Ca(),{mkdirpManual:h,mkdirpManualSync:u}=Ai(),r=(p,l)=>(l.recursive=!0,n(p)===p?l.mkdirAsync(p,l):s(l,p).then(c=>l.mkdirAsync(p,l).then(()=>c).catch(o=>{if(o.code==="ENOENT")return h(p,l);throw o}))),t=(p,l)=>{if(l.recursive=!0,n(p)===p)return l.mkdirSync(p,l);let c=i(l,p);try{return l.mkdirSync(p,l),c}catch(o){if(o.code==="ENOENT")return u(p,l);throw o}};a.exports={mkdirpNative:r,mkdirpNativeSync:t}}),ka=j((e,a)=>{B();var n=Z("fs"),s=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,i=s.replace(/^v/,"").split("."),h=+i[0]>10||+i[0]==10&&+i[1]>=12,u=h?t=>t.mkdir===n.mkdir:()=>!1,r=h?t=>t.mkdirSync===n.mkdirSync:()=>!1;a.exports={useNative:u,useNativeSync:r}}),Fa=j((e,a)=>{B();var n=Sa(),s=Aa(),{mkdirpNative:i,mkdirpNativeSync:h}=xa(),{mkdirpManual:u,mkdirpManualSync:r}=Ai(),{useNative:t,useNativeSync:p}=ka(),l=(o,d)=>(o=s(o),d=n(d),t(d)?i(o,d):u(o,d)),c=(o,d)=>(o=s(o),d=n(d),p(d)?h(o,d):r(o,d));l.sync=c,l.native=(o,d)=>i(s(o),n(d)),l.manual=(o,d)=>u(s(o),n(d)),l.nativeSync=(o,d)=>h(s(o),n(d)),l.manualSync=(o,d)=>r(s(o),n(d)),a.exports=l}),Oa=j((e,a)=>{"use strict";B();var n=Z("fs"),s=Z("path"),i=n.lchown?"lchown":"chown",h=n.lchownSync?"lchownSync":"chownSync",u=n.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),r=(D,E,v)=>{try{return n[h](D,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},t=(D,E,v)=>{try{return n.chownSync(D,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},p=u?(D,E,v,m)=>_=>{!_||_.code!=="EISDIR"?m(_):n.chown(D,E,v,m)}:(D,E,v,m)=>m,l=u?(D,E,v)=>{try{return r(D,E,v)}catch(m){if(m.code!=="EISDIR")throw m;t(D,E,v)}}:(D,E,v)=>r(D,E,v),c=process.version,o=(D,E,v)=>n.readdir(D,E,v),d=(D,E)=>n.readdirSync(D,E);/^v4\./.test(c)&&(o=(D,E,v)=>n.readdir(D,v));var f=(D,E,v,m)=>{n[i](D,E,v,p(D,E,v,_=>{m(_&&_.code!=="ENOENT"?_:null)}))},y=(D,E,v,m,_)=>{if(typeof E=="string")return n.lstat(s.resolve(D,E),(S,A)=>{if(S)return _(S.code!=="ENOENT"?S:null);A.name=E,y(D,A,v,m,_)});if(E.isDirectory())b(s.resolve(D,E.name),v,m,S=>{if(S)return _(S);let A=s.resolve(D,E.name);f(A,v,m,_)});else{let S=s.resolve(D,E.name);f(S,v,m,_)}},b=(D,E,v,m)=>{o(D,{withFileTypes:!0},(_,S)=>{if(_){if(_.code==="ENOENT")return m();if(_.code!=="ENOTDIR"&&_.code!=="ENOTSUP")return m(_)}if(_||!S.length)return f(D,E,v,m);let A=S.length,x=null,L=T=>{if(!x){if(T)return m(x=T);if(--A===0)return f(D,E,v,m)}};S.forEach(T=>y(D,T,E,v,L))})},w=(D,E,v,m)=>{if(typeof E=="string")try{let _=n.lstatSync(s.resolve(D,E));_.name=E,E=_}catch(_){if(_.code==="ENOENT")return;throw _}E.isDirectory()&&g(s.resolve(D,E.name),v,m),l(s.resolve(D,E.name),v,m)},g=(D,E,v)=>{let m;try{m=d(D,{withFileTypes:!0})}catch(_){if(_.code==="ENOENT")return;if(_.code==="ENOTDIR"||_.code==="ENOTSUP")return l(D,E,v);throw _}return m&&m.length&&m.forEach(_=>w(D,_,E,v)),l(D,E,v)};a.exports=b,b.sync=g}),Ra=j((e,a)=>{"use strict";B();var n=Fa(),s=Z("fs"),i=Z("path"),h=Oa(),u=Nt(),r=class extends Error{constructor(y,b){super("Cannot extract through symbolic link"),this.path=b,this.symlink=y}get name(){return"SylinkError"}},t=class extends Error{constructor(y,b){super(b+": Cannot cd into '"+y+"'"),this.path=y,this.code=b}get name(){return"CwdError"}},p=(y,b)=>y.get(u(b)),l=(y,b,w)=>y.set(u(b),w),c=(y,b)=>{s.stat(y,(w,g)=>{(w||!g.isDirectory())&&(w=new t(y,w&&w.code||"ENOTDIR")),b(w)})};a.exports=(y,b,w)=>{y=u(y);let g=b.umask,D=b.mode|448,E=(D&g)!==0,v=b.uid,m=b.gid,_=typeof v=="number"&&typeof m=="number"&&(v!==b.processUid||m!==b.processGid),S=b.preserve,A=b.unlink,x=b.cache,L=u(b.cwd),T=(O,I)=>{O?w(O):(l(x,y,!0),I&&_?h(I,v,m,$=>T($)):E?s.chmod(y,D,w):w())};if(x&&p(x,y)===!0)return T();if(y===L)return c(y,T);if(S)return n(y,{mode:D}).then(O=>T(null,O),T);let k=u(i.relative(L,y)).split("/");o(L,k,D,x,A,L,null,T)};var o=(y,b,w,g,D,E,v,m)=>{if(!b.length)return m(null,v);let _=b.shift(),S=u(i.resolve(y+"/"+_));if(p(g,S))return o(S,b,w,g,D,E,v,m);s.mkdir(S,w,d(S,b,w,g,D,E,v,m))},d=(y,b,w,g,D,E,v,m)=>_=>{_?s.lstat(y,(S,A)=>{if(S)S.path=S.path&&u(S.path),m(S);else if(A.isDirectory())o(y,b,w,g,D,E,v,m);else if(D)s.unlink(y,x=>{if(x)return m(x);s.mkdir(y,w,d(y,b,w,g,D,E,v,m))});else{if(A.isSymbolicLink())return m(new r(y,y+"/"+b.join("/")));m(_)}}):(v=v||y,o(y,b,w,g,D,E,v,m))},f=y=>{let b=!1,w="ENOTDIR";try{b=s.statSync(y).isDirectory()}catch(g){w=g.code}finally{if(!b)throw new t(y,w)}};a.exports.sync=(y,b)=>{y=u(y);let w=b.umask,g=b.mode|448,D=(g&w)!==0,E=b.uid,v=b.gid,m=typeof E=="number"&&typeof v=="number"&&(E!==b.processUid||v!==b.processGid),_=b.preserve,S=b.unlink,A=b.cache,x=u(b.cwd),L=O=>{l(A,y,!0),O&&m&&h.sync(O,E,v),D&&s.chmodSync(y,g)};if(A&&p(A,y)===!0)return L();if(y===x)return f(x),L();if(_)return L(n.sync(y,g));let T=u(i.relative(x,y)).split("/"),k=null;for(let O=T.shift(),I=x;O&&(I+="/"+O);O=T.shift())if(I=u(i.resolve(I)),!p(A,I))try{s.mkdirSync(I,g),k=k||I,l(A,I,!0)}catch{let $=s.lstatSync(I);if($.isDirectory()){l(A,I,!0);continue}else if(S){s.unlinkSync(I),s.mkdirSync(I,g),k=k||I,l(A,I,!0);continue}else if($.isSymbolicLink())return new r(I,I+"/"+T.join("/"))}return L(k)}}),Ci=j((e,a)=>{B();var n=Object.create(null),{hasOwnProperty:s}=Object.prototype;a.exports=i=>(s.call(n,i)||(n[i]=i.normalize("NFKD")),n[i])}),Ta=j((e,a)=>{B();var n=Z("assert"),s=Ci(),i=$t(),{join:h}=Z("path"),u=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,r=u==="win32";a.exports=()=>{let t=new Map,p=new Map,l=b=>b.split("/").slice(0,-1).reduce((w,g)=>(w.length&&(g=h(w[w.length-1],g)),w.push(g||"/"),w),[]),c=new Set,o=b=>{let w=p.get(b);if(!w)throw new Error("function does not have any path reservations");return{paths:w.paths.map(g=>t.get(g)),dirs:[...w.dirs].map(g=>t.get(g))}},d=b=>{let{paths:w,dirs:g}=o(b);return w.every(D=>D[0]===b)&&g.every(D=>D[0]instanceof Set&&D[0].has(b))},f=b=>c.has(b)||!d(b)?!1:(c.add(b),b(()=>y(b)),!0),y=b=>{if(!c.has(b))return!1;let{paths:w,dirs:g}=p.get(b),D=new Set;return w.forEach(E=>{let v=t.get(E);n.equal(v[0],b),v.length===1?t.delete(E):(v.shift(),typeof v[0]=="function"?D.add(v[0]):v[0].forEach(m=>D.add(m)))}),g.forEach(E=>{let v=t.get(E);n(v[0]instanceof Set),v[0].size===1&&v.length===1?t.delete(E):v[0].size===1?(v.shift(),D.add(v[0])):v[0].delete(b)}),c.delete(b),D.forEach(E=>f(E)),!0};return{check:d,reserve:(b,w)=>{b=r?["win32 parallelization disabled"]:b.map(D=>s(i(h(D))).toLowerCase());let g=new Set(b.map(D=>l(D)).reduce((D,E)=>D.concat(E)));return p.set(w,{dirs:g,paths:b}),b.forEach(D=>{let E=t.get(D);E?E.push(w):t.set(D,[w])}),g.forEach(D=>{let E=t.get(D);E?E[E.length-1]instanceof Set?E[E.length-1].add(w):E.push(new Set([w])):t.set(D,[new Set([w])])}),f(w)}}}}),Ba=j((e,a)=>{B();var n=process.env.__FAKE_PLATFORM__||process.platform,s=n==="win32",i=global.__FAKE_TESTING_FS__||Z("fs"),{O_CREAT:h,O_TRUNC:u,O_WRONLY:r,UV_FS_O_FILEMAP:t=0}=i.constants,p=s&&!!t,l=512*1024,c=t|u|h|r;a.exports=p?o=>o<l?c:"w":()=>"w"}),xi=j((e,a)=>{"use strict";B();var n=Z("assert"),s=Jr(),i=Z("fs"),h=Ht(),u=Z("path"),r=Ra(),t=wi(),p=Ta(),l=_i(),c=Nt(),o=$t(),d=Ci(),f=Symbol("onEntry"),y=Symbol("checkFs"),b=Symbol("checkFs2"),w=Symbol("pruneCache"),g=Symbol("isReusable"),D=Symbol("makeFs"),E=Symbol("file"),v=Symbol("directory"),m=Symbol("link"),_=Symbol("symlink"),S=Symbol("hardlink"),A=Symbol("unsupported"),x=Symbol("checkPath"),L=Symbol("mkdir"),T=Symbol("onError"),k=Symbol("pending"),O=Symbol("pend"),I=Symbol("unpend"),$=Symbol("ended"),R=Symbol("maybeClose"),G=Symbol("skip"),z=Symbol("doChown"),Q=Symbol("uid"),P=Symbol("gid"),N=Symbol("checkedCwd"),F=Z("crypto"),J=Ba(),q=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,ee=q==="win32",M=(C,W)=>{if(!ee)return i.unlink(C,W);let X=C+".DELETE."+F.randomBytes(16).toString("hex");i.rename(C,X,re=>{if(re)return W(re);i.unlink(X,W)})},K=C=>{if(!ee)return i.unlinkSync(C);let W=C+".DELETE."+F.randomBytes(16).toString("hex");i.renameSync(C,W),i.unlinkSync(W)},te=(C,W,X)=>C===C>>>0?C:W===W>>>0?W:X,oe=C=>d(o(c(C))).toLowerCase(),ce=(C,W)=>{W=oe(W);for(let X of C.keys()){let re=oe(X);(re===W||re.indexOf(W+"/")===0)&&C.delete(X)}},be=C=>{for(let W of C.keys())C.delete(W)},ye=class extends s{constructor(C){if(C||(C={}),C.ondone=W=>{this[$]=!0,this[R]()},super(C),this[N]=!1,this.reservations=p(),this.transform=typeof C.transform=="function"?C.transform:null,this.writable=!0,this.readable=!1,this[k]=0,this[$]=!1,this.dirCache=C.dirCache||new Map,typeof C.uid=="number"||typeof C.gid=="number"){if(typeof C.uid!="number"||typeof C.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(C.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=C.uid,this.gid=C.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;C.preserveOwner===void 0&&typeof C.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!C.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=C.forceChown===!0,this.win32=!!C.win32||ee,this.newer=!!C.newer,this.keep=!!C.keep,this.noMtime=!!C.noMtime,this.preservePaths=!!C.preservePaths,this.unlink=!!C.unlink,this.cwd=c(u.resolve(C.cwd||process.cwd())),this.strip=+C.strip||0,this.processUmask=C.noChmod?0:process.umask(),this.umask=typeof C.umask=="number"?C.umask:this.processUmask,this.dmode=C.dmode||511&~this.umask,this.fmode=C.fmode||438&~this.umask,this.on("entry",W=>this[f](W))}warn(C,W,X={}){return(C==="TAR_BAD_ARCHIVE"||C==="TAR_ABORT")&&(X.recoverable=!1),super.warn(C,W,X)}[R](){this[$]&&this[k]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[x](C){if(this.strip){let W=c(C.path).split("/");if(W.length<this.strip)return!1;if(C.path=W.slice(this.strip).join("/"),C.type==="Link"){let X=c(C.linkpath).split("/");if(X.length>=this.strip)C.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let W=c(C.path),X=W.split("/");if(X.includes("..")||ee&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:C,path:W}),!1;let[re,pe]=l(W);re&&(C.path=pe,this.warn("TAR_ENTRY_INFO",`stripping ${re} from absolute path`,{entry:C,path:W}))}if(u.isAbsolute(C.path)?C.absolute=c(u.resolve(C.path)):C.absolute=c(u.resolve(this.cwd,C.path)),!this.preservePaths&&C.absolute.indexOf(this.cwd+"/")!==0&&C.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:C,path:c(C.path),resolvedPath:C.absolute,cwd:this.cwd}),!1;if(C.absolute===this.cwd&&C.type!=="Directory"&&C.type!=="GNUDumpDir")return!1;if(this.win32){let{root:W}=u.win32.parse(C.absolute);C.absolute=W+t.encode(C.absolute.slice(W.length));let{root:X}=u.win32.parse(C.path);C.path=X+t.encode(C.path.slice(X.length))}return!0}[f](C){if(!this[x](C))return C.resume();switch(n.equal(typeof C.absolute,"string"),C.type){case"Directory":case"GNUDumpDir":C.mode&&(C.mode=C.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](C);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[A](C)}}[T](C,W){C.name==="CwdError"?this.emit("error",C):(this.warn("TAR_ENTRY_ERROR",C,{entry:W}),this[I](),W.resume())}[L](C,W,X){r(c(C),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:W,noChmod:this.noChmod},X)}[z](C){return this.forceChown||this.preserveOwner&&(typeof C.uid=="number"&&C.uid!==this.processUid||typeof C.gid=="number"&&C.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Q](C){return te(this.uid,C.uid,this.processUid)}[P](C){return te(this.gid,C.gid,this.processGid)}[E](C,W){let X=C.mode&4095||this.fmode,re=new h.WriteStream(C.absolute,{flags:J(C.size),mode:X,autoClose:!1});re.on("error",ne=>{re.fd&&i.close(re.fd,()=>{}),re.write=()=>!0,this[T](ne,C),W()});let pe=1,ie=ne=>{if(ne){re.fd&&i.close(re.fd,()=>{}),this[T](ne,C),W();return}--pe===0&&i.close(re.fd,fe=>{fe?this[T](fe,C):this[I](),W()})};re.on("finish",ne=>{let fe=C.absolute,we=re.fd;if(C.mtime&&!this.noMtime){pe++;let ke=C.atime||new Date,Y=C.mtime;i.futimes(we,ke,Y,U=>U?i.utimes(fe,ke,Y,ue=>ie(ue&&U)):ie())}if(this[z](C)){pe++;let ke=this[Q](C),Y=this[P](C);i.fchown(we,ke,Y,U=>U?i.chown(fe,ke,Y,ue=>ie(ue&&U)):ie())}ie()});let le=this.transform&&this.transform(C)||C;le!==C&&(le.on("error",ne=>{this[T](ne,C),W()}),C.pipe(le)),le.pipe(re)}[v](C,W){let X=C.mode&4095||this.dmode;this[L](C.absolute,X,re=>{if(re){this[T](re,C),W();return}let pe=1,ie=le=>{--pe===0&&(W(),this[I](),C.resume())};C.mtime&&!this.noMtime&&(pe++,i.utimes(C.absolute,C.atime||new Date,C.mtime,ie)),this[z](C)&&(pe++,i.chown(C.absolute,this[Q](C),this[P](C),ie)),ie()})}[A](C){C.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${C.type}`,{entry:C}),C.resume()}[_](C,W){this[m](C,C.linkpath,"symlink",W)}[S](C,W){let X=c(u.resolve(this.cwd,C.linkpath));this[m](C,X,"link",W)}[O](){this[k]++}[I](){this[k]--,this[R]()}[G](C){this[I](),C.resume()}[g](C,W){return C.type==="File"&&!this.unlink&&W.isFile()&&W.nlink<=1&&!ee}[y](C){this[O]();let W=[C.path];C.linkpath&&W.push(C.linkpath),this.reservations.reserve(W,X=>this[b](C,X))}[w](C){C.type==="SymbolicLink"?be(this.dirCache):C.type!=="Directory"&&ce(this.dirCache,C.absolute)}[b](C,W){this[w](C);let X=le=>{this[w](C),W(le)},re=()=>{this[L](this.cwd,this.dmode,le=>{if(le){this[T](le,C),X();return}this[N]=!0,pe()})},pe=()=>{if(C.absolute!==this.cwd){let le=c(u.dirname(C.absolute));if(le!==this.cwd)return this[L](le,this.dmode,ne=>{if(ne){this[T](ne,C),X();return}ie()})}ie()},ie=()=>{i.lstat(C.absolute,(le,ne)=>{if(ne&&(this.keep||this.newer&&ne.mtime>C.mtime)){this[G](C),X();return}if(le||this[g](C,ne))return this[D](null,C,X);if(ne.isDirectory()){if(C.type==="Directory"){let fe=!this.noChmod&&C.mode&&(ne.mode&4095)!==C.mode,we=ke=>this[D](ke,C,X);return fe?i.chmod(C.absolute,C.mode,we):we()}if(C.absolute!==this.cwd)return i.rmdir(C.absolute,fe=>this[D](fe,C,X))}if(C.absolute===this.cwd)return this[D](null,C,X);M(C.absolute,fe=>this[D](fe,C,X))})};this[N]?pe():re()}[D](C,W,X){if(C){this[T](C,W),X();return}switch(W.type){case"File":case"OldFile":case"ContiguousFile":return this[E](W,X);case"Link":return this[S](W,X);case"SymbolicLink":return this[_](W,X);case"Directory":case"GNUDumpDir":return this[v](W,X)}}[m](C,W,X,re){i[X](W,C.absolute,pe=>{pe?this[T](pe,C):(this[I](),C.resume()),re()})}},H=C=>{try{return[null,C()]}catch(W){return[W,null]}},V=class extends ye{[D](C,W){return super[D](C,W,()=>{})}[y](C){if(this[w](C),!this[N]){let pe=this[L](this.cwd,this.dmode);if(pe)return this[T](pe,C);this[N]=!0}if(C.absolute!==this.cwd){let pe=c(u.dirname(C.absolute));if(pe!==this.cwd){let ie=this[L](pe,this.dmode);if(ie)return this[T](ie,C)}}let[W,X]=H(()=>i.lstatSync(C.absolute));if(X&&(this.keep||this.newer&&X.mtime>C.mtime))return this[G](C);if(W||this[g](C,X))return this[D](null,C);if(X.isDirectory()){if(C.type==="Directory"){let ie=!this.noChmod&&C.mode&&(X.mode&4095)!==C.mode,[le]=ie?H(()=>{i.chmodSync(C.absolute,C.mode)}):[];return this[D](le,C)}let[pe]=H(()=>i.rmdirSync(C.absolute));this[D](pe,C)}let[re]=C.absolute===this.cwd?[]:H(()=>K(C.absolute));this[D](re,C)}[E](C,W){let X=C.mode&4095||this.fmode,re=le=>{let ne;try{i.closeSync(pe)}catch(fe){ne=fe}(le||ne)&&this[T](le||ne,C),W()},pe;try{pe=i.openSync(C.absolute,J(C.size),X)}catch(le){return re(le)}let ie=this.transform&&this.transform(C)||C;ie!==C&&(ie.on("error",le=>this[T](le,C)),C.pipe(ie)),ie.on("data",le=>{try{i.writeSync(pe,le,0,le.length)}catch(ne){re(ne)}}),ie.on("end",le=>{let ne=null;if(C.mtime&&!this.noMtime){let fe=C.atime||new Date,we=C.mtime;try{i.futimesSync(pe,fe,we)}catch(ke){try{i.utimesSync(C.absolute,fe,we)}catch{ne=ke}}}if(this[z](C)){let fe=this[Q](C),we=this[P](C);try{i.fchownSync(pe,fe,we)}catch(ke){try{i.chownSync(C.absolute,fe,we)}catch{ne=ne||ke}}}re(ne)})}[v](C,W){let X=C.mode&4095||this.dmode,re=this[L](C.absolute,X);if(re){this[T](re,C),W();return}if(C.mtime&&!this.noMtime)try{i.utimesSync(C.absolute,C.atime||new Date,C.mtime)}catch{}if(this[z](C))try{i.chownSync(C.absolute,this[Q](C),this[P](C))}catch{}W(),C.resume()}[L](C,W){try{return r.sync(c(C),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:W})}catch(X){return X}}[m](C,W,X,re){try{i[X+"Sync"](W,C.absolute),re(),C.resume()}catch(pe){return this[T](pe,C)}}};ye.Sync=V,a.exports=ye}),Pa=j((e,a)=>{"use strict";B();var n=jt(),s=xi(),i=Z("fs"),h=Ht(),u=Z("path"),r=$t();a.exports=(d,f,y)=>{typeof d=="function"?(y=d,f=null,d={}):Array.isArray(d)&&(f=d,d={}),typeof f=="function"&&(y=f,f=null),f?f=Array.from(f):f=[];let b=n(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return f.length&&t(b,f),b.file&&b.sync?p(b):b.file?l(b,y):b.sync?c(b):o(b)};var t=(d,f)=>{let y=new Map(f.map(g=>[r(g),!0])),b=d.filter,w=(g,D)=>{let E=D||u.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):w(u.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,D)=>b(g,D)&&w(r(g)):g=>w(r(g))},p=d=>{let f=new s.Sync(d),y=d.file,b=i.statSync(y),w=d.maxReadSize||16*1024*1024;new h.ReadStreamSync(y,{readSize:w,size:b.size}).pipe(f)},l=(d,f)=>{let y=new s(d),b=d.maxReadSize||16*1024*1024,w=d.file,g=new Promise((D,E)=>{y.on("error",E),y.on("close",D),i.stat(w,(v,m)=>{if(v)E(v);else{let _=new h.ReadStream(w,{readSize:b,size:m.size});_.on("error",E),_.pipe(y)}})});return f?g.then(f,f):g},c=d=>new s.Sync(d),o=d=>new s(d)}),La=j(e=>{"use strict";B(),e.c=e.create=Ea(),e.r=e.replace=Si(),e.t=e.list=Zr(),e.u=e.update=Da(),e.x=e.extract=Pa(),e.Pack=Yr(),e.Unpack=xi(),e.Parse=Jr(),e.ReadEntry=zr(),e.WriteEntry=Ei(),e.Header=Mt(),e.Pax=Vr(),e.types=vi()}),ft=j((e,a)=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var n=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function s(m){return n.includes(m)}var i=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...n];function h(m){return i.includes(m)}var u=["null","undefined","string","number","bigint","boolean","symbol"];function r(m){return u.includes(m)}function t(m){return _=>typeof _===m}var{toString:p}=Object.prototype,l=m=>{let _=p.call(m).slice(8,-1);if(/HTML\w+Element/.test(_)&&o.domElement(m))return"HTMLElement";if(h(_))return _},c=m=>_=>l(_)===m;function o(m){if(m===null)return"null";switch(typeof m){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(o.observable(m))return"Observable";if(o.array(m))return"Array";if(o.buffer(m))return"Buffer";let _=l(m);if(_)return _;if(m instanceof String||m instanceof Boolean||m instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}o.undefined=t("undefined"),o.string=t("string");var d=t("number");o.number=m=>d(m)&&!o.nan(m),o.bigint=t("bigint"),o.function_=t("function"),o.null_=m=>m===null,o.class_=m=>o.function_(m)&&m.toString().startsWith("class "),o.boolean=m=>m===!0||m===!1,o.symbol=t("symbol"),o.numericString=m=>o.string(m)&&!o.emptyStringOrWhitespace(m)&&!Number.isNaN(Number(m)),o.array=(m,_)=>Array.isArray(m)?o.function_(_)?m.every(_):!0:!1,o.buffer=m=>{var _,S,A,x;return(x=(A=(S=(_=m)===null||_===void 0?void 0:_.constructor)===null||S===void 0?void 0:S.isBuffer)===null||A===void 0?void 0:A.call(S,m))!==null&&x!==void 0?x:!1},o.blob=m=>c("Blob")(m),o.nullOrUndefined=m=>o.null_(m)||o.undefined(m),o.object=m=>!o.null_(m)&&(typeof m=="object"||o.function_(m)),o.iterable=m=>{var _;return o.function_((_=m)===null||_===void 0?void 0:_[Symbol.iterator])},o.asyncIterable=m=>{var _;return o.function_((_=m)===null||_===void 0?void 0:_[Symbol.asyncIterator])},o.generator=m=>{var _,S;return o.iterable(m)&&o.function_((_=m)===null||_===void 0?void 0:_.next)&&o.function_((S=m)===null||S===void 0?void 0:S.throw)},o.asyncGenerator=m=>o.asyncIterable(m)&&o.function_(m.next)&&o.function_(m.throw),o.nativePromise=m=>c("Promise")(m);var f=m=>{var _,S;return o.function_((_=m)===null||_===void 0?void 0:_.then)&&o.function_((S=m)===null||S===void 0?void 0:S.catch)};o.promise=m=>o.nativePromise(m)||f(m),o.generatorFunction=c("GeneratorFunction"),o.asyncGeneratorFunction=m=>l(m)==="AsyncGeneratorFunction",o.asyncFunction=m=>l(m)==="AsyncFunction",o.boundFunction=m=>o.function_(m)&&!m.hasOwnProperty("prototype"),o.regExp=c("RegExp"),o.date=c("Date"),o.error=c("Error"),o.map=m=>c("Map")(m),o.set=m=>c("Set")(m),o.weakMap=m=>c("WeakMap")(m),o.weakSet=m=>c("WeakSet")(m),o.int8Array=c("Int8Array"),o.uint8Array=c("Uint8Array"),o.uint8ClampedArray=c("Uint8ClampedArray"),o.int16Array=c("Int16Array"),o.uint16Array=c("Uint16Array"),o.int32Array=c("Int32Array"),o.uint32Array=c("Uint32Array"),o.float32Array=c("Float32Array"),o.float64Array=c("Float64Array"),o.bigInt64Array=c("BigInt64Array"),o.bigUint64Array=c("BigUint64Array"),o.arrayBuffer=c("ArrayBuffer"),o.sharedArrayBuffer=c("SharedArrayBuffer"),o.dataView=c("DataView"),o.enumCase=(m,_)=>Object.values(_).includes(m),o.directInstanceOf=(m,_)=>Object.getPrototypeOf(m)===_.prototype,o.urlInstance=m=>c("URL")(m),o.urlString=m=>{if(!o.string(m))return!1;try{return new URL(m),!0}catch{return!1}},o.truthy=m=>!!m,o.falsy=m=>!m,o.nan=m=>Number.isNaN(m),o.primitive=m=>o.null_(m)||r(typeof m),o.integer=m=>Number.isInteger(m),o.safeInteger=m=>Number.isSafeInteger(m),o.plainObject=m=>{if(p.call(m)!=="[object Object]")return!1;let _=Object.getPrototypeOf(m);return _===null||_===Object.getPrototypeOf({})},o.typedArray=m=>s(l(m));var y=m=>o.safeInteger(m)&&m>=0;o.arrayLike=m=>!o.nullOrUndefined(m)&&!o.function_(m)&&y(m.length),o.inRange=(m,_)=>{if(o.number(_))return m>=Math.min(0,_)&&m<=Math.max(_,0);if(o.array(_)&&_.length===2)return m>=Math.min(..._)&&m<=Math.max(..._);throw new TypeError(`Invalid range: ${JSON.stringify(_)}`)};var b=1,w=["innerHTML","ownerDocument","style","attributes","nodeValue"];o.domElement=m=>o.object(m)&&m.nodeType===b&&o.string(m.nodeName)&&!o.plainObject(m)&&w.every(_=>_ in m),o.observable=m=>{var _,S,A,x;return m?m===((S=(_=m)[Symbol.observable])===null||S===void 0?void 0:S.call(_))||m===((x=(A=m)["@@observable"])===null||x===void 0?void 0:x.call(A)):!1},o.nodeStream=m=>o.object(m)&&o.function_(m.pipe)&&!o.observable(m),o.infinite=m=>m===1/0||m===-1/0;var g=m=>_=>o.integer(_)&&Math.abs(_%2)===m;o.evenInteger=g(0),o.oddInteger=g(1),o.emptyArray=m=>o.array(m)&&m.length===0,o.nonEmptyArray=m=>o.array(m)&&m.length>0,o.emptyString=m=>o.string(m)&&m.length===0;var D=m=>o.string(m)&&!/\S/.test(m);o.emptyStringOrWhitespace=m=>o.emptyString(m)||D(m),o.nonEmptyString=m=>o.string(m)&&m.length>0,o.nonEmptyStringAndNotWhitespace=m=>o.string(m)&&!o.emptyStringOrWhitespace(m),o.emptyObject=m=>o.object(m)&&!o.map(m)&&!o.set(m)&&Object.keys(m).length===0,o.nonEmptyObject=m=>o.object(m)&&!o.map(m)&&!o.set(m)&&Object.keys(m).length>0,o.emptySet=m=>o.set(m)&&m.size===0,o.nonEmptySet=m=>o.set(m)&&m.size>0,o.emptyMap=m=>o.map(m)&&m.size===0,o.nonEmptyMap=m=>o.map(m)&&m.size>0,o.propertyKey=m=>o.any([o.string,o.number,o.symbol],m),o.formData=m=>c("FormData")(m),o.urlSearchParams=m=>c("URLSearchParams")(m);var E=(m,_,S)=>{if(!o.function_(_))throw new TypeError(`Invalid predicate: ${JSON.stringify(_)}`);if(S.length===0)throw new TypeError("Invalid number of values");return m.call(S,_)};o.any=(m,..._)=>(o.array(m)?m:[m]).some(S=>E(Array.prototype.some,S,_)),o.all=(m,..._)=>E(Array.prototype.every,m,_);var v=(m,_,S,A={})=>{if(!m){let{multipleValues:x}=A,L=x?`received values of types ${[...new Set(S.map(T=>`\`${o(T)}\``))].join(", ")}`:`received value of type \`${o(S)}\``;throw new TypeError(`Expected value which is \`${_}\`, ${L}.`)}};e.assert={undefined:m=>v(o.undefined(m),"undefined",m),string:m=>v(o.string(m),"string",m),number:m=>v(o.number(m),"number",m),bigint:m=>v(o.bigint(m),"bigint",m),function_:m=>v(o.function_(m),"Function",m),null_:m=>v(o.null_(m),"null",m),class_:m=>v(o.class_(m),"Class",m),boolean:m=>v(o.boolean(m),"boolean",m),symbol:m=>v(o.symbol(m),"symbol",m),numericString:m=>v(o.numericString(m),"string with a number",m),array:(m,_)=>{v(o.array(m),"Array",m),_&&m.forEach(_)},buffer:m=>v(o.buffer(m),"Buffer",m),blob:m=>v(o.blob(m),"Blob",m),nullOrUndefined:m=>v(o.nullOrUndefined(m),"null or undefined",m),object:m=>v(o.object(m),"Object",m),iterable:m=>v(o.iterable(m),"Iterable",m),asyncIterable:m=>v(o.asyncIterable(m),"AsyncIterable",m),generator:m=>v(o.generator(m),"Generator",m),asyncGenerator:m=>v(o.asyncGenerator(m),"AsyncGenerator",m),nativePromise:m=>v(o.nativePromise(m),"native Promise",m),promise:m=>v(o.promise(m),"Promise",m),generatorFunction:m=>v(o.generatorFunction(m),"GeneratorFunction",m),asyncGeneratorFunction:m=>v(o.asyncGeneratorFunction(m),"AsyncGeneratorFunction",m),asyncFunction:m=>v(o.asyncFunction(m),"AsyncFunction",m),boundFunction:m=>v(o.boundFunction(m),"Function",m),regExp:m=>v(o.regExp(m),"RegExp",m),date:m=>v(o.date(m),"Date",m),error:m=>v(o.error(m),"Error",m),map:m=>v(o.map(m),"Map",m),set:m=>v(o.set(m),"Set",m),weakMap:m=>v(o.weakMap(m),"WeakMap",m),weakSet:m=>v(o.weakSet(m),"WeakSet",m),int8Array:m=>v(o.int8Array(m),"Int8Array",m),uint8Array:m=>v(o.uint8Array(m),"Uint8Array",m),uint8ClampedArray:m=>v(o.uint8ClampedArray(m),"Uint8ClampedArray",m),int16Array:m=>v(o.int16Array(m),"Int16Array",m),uint16Array:m=>v(o.uint16Array(m),"Uint16Array",m),int32Array:m=>v(o.int32Array(m),"Int32Array",m),uint32Array:m=>v(o.uint32Array(m),"Uint32Array",m),float32Array:m=>v(o.float32Array(m),"Float32Array",m),float64Array:m=>v(o.float64Array(m),"Float64Array",m),bigInt64Array:m=>v(o.bigInt64Array(m),"BigInt64Array",m),bigUint64Array:m=>v(o.bigUint64Array(m),"BigUint64Array",m),arrayBuffer:m=>v(o.arrayBuffer(m),"ArrayBuffer",m),sharedArrayBuffer:m=>v(o.sharedArrayBuffer(m),"SharedArrayBuffer",m),dataView:m=>v(o.dataView(m),"DataView",m),enumCase:(m,_)=>v(o.enumCase(m,_),"EnumCase",m),urlInstance:m=>v(o.urlInstance(m),"URL",m),urlString:m=>v(o.urlString(m),"string with a URL",m),truthy:m=>v(o.truthy(m),"truthy",m),falsy:m=>v(o.falsy(m),"falsy",m),nan:m=>v(o.nan(m),"NaN",m),primitive:m=>v(o.primitive(m),"primitive",m),integer:m=>v(o.integer(m),"integer",m),safeInteger:m=>v(o.safeInteger(m),"integer",m),plainObject:m=>v(o.plainObject(m),"plain object",m),typedArray:m=>v(o.typedArray(m),"TypedArray",m),arrayLike:m=>v(o.arrayLike(m),"array-like",m),domElement:m=>v(o.domElement(m),"HTMLElement",m),observable:m=>v(o.observable(m),"Observable",m),nodeStream:m=>v(o.nodeStream(m),"Node.js Stream",m),infinite:m=>v(o.infinite(m),"infinite number",m),emptyArray:m=>v(o.emptyArray(m),"empty array",m),nonEmptyArray:m=>v(o.nonEmptyArray(m),"non-empty array",m),emptyString:m=>v(o.emptyString(m),"empty string",m),emptyStringOrWhitespace:m=>v(o.emptyStringOrWhitespace(m),"empty string or whitespace",m),nonEmptyString:m=>v(o.nonEmptyString(m),"non-empty string",m),nonEmptyStringAndNotWhitespace:m=>v(o.nonEmptyStringAndNotWhitespace(m),"non-empty string and not whitespace",m),emptyObject:m=>v(o.emptyObject(m),"empty object",m),nonEmptyObject:m=>v(o.nonEmptyObject(m),"non-empty object",m),emptySet:m=>v(o.emptySet(m),"empty set",m),nonEmptySet:m=>v(o.nonEmptySet(m),"non-empty set",m),emptyMap:m=>v(o.emptyMap(m),"empty map",m),nonEmptyMap:m=>v(o.nonEmptyMap(m),"non-empty map",m),propertyKey:m=>v(o.propertyKey(m),"PropertyKey",m),formData:m=>v(o.formData(m),"FormData",m),urlSearchParams:m=>v(o.urlSearchParams(m),"URLSearchParams",m),evenInteger:m=>v(o.evenInteger(m),"even integer",m),oddInteger:m=>v(o.oddInteger(m),"odd integer",m),directInstanceOf:(m,_)=>v(o.directInstanceOf(m,_),"T",m),inRange:(m,_)=>v(o.inRange(m,_),"in range",m),any:(m,..._)=>v(o.any(m,..._),"predicate returns truthy for any value",_,{multipleValues:!0}),all:(m,..._)=>v(o.all(m,..._),"predicate returns truthy for all values",_,{multipleValues:!0})},Object.defineProperties(o,{class:{value:o.class_},function:{value:o.function_},null:{value:o.null_}}),Object.defineProperties(e.assert,{class:{value:e.assert.class_},function:{value:e.assert.function_},null:{value:e.assert.null_}}),e.default=o,a.exports=o,a.exports.default=o,a.exports.assert=e.assert}),Ia=j((e,a)=>{"use strict";B();var n=class extends Error{constructor(i){super(i||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},s=class{static fn(i){return(...h)=>new s((u,r,t)=>{h.push(t),i(...h).then(u,r)})}constructor(i){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((h,u)=>{this._reject=u;let r=l=>{(!this._isCanceled||!p.shouldReject)&&(this._isPending=!1,h(l))},t=l=>{this._isPending=!1,u(l)},p=l=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(l)};return Object.defineProperties(p,{shouldReject:{get:()=>this._rejectOnCancel,set:l=>{this._rejectOnCancel=l}}}),i(r,t,p)})}then(i,h){return this._promise.then(i,h)}catch(i){return this._promise.catch(i)}finally(i){return this._promise.finally(i)}cancel(i){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let h of this._cancelHandlers)h()}catch(h){this._reject(h);return}this._rejectOnCancel&&this._reject(new n(i))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(s.prototype,Promise.prototype),a.exports=s,a.exports.CancelError=n}),ja=j((e,a)=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});function n(i){return i.encrypted}var s=(i,h)=>{let u;typeof h=="function"?u={connect:h}:u=h;let r=typeof u.connect=="function",t=typeof u.secureConnect=="function",p=typeof u.close=="function",l=()=>{r&&u.connect(),n(i)&&t&&(i.authorized?u.secureConnect():i.authorizationError||i.once("secureConnect",u.secureConnect)),p&&i.once("close",u.close)};i.writable&&!i.connecting?l():i.connecting?i.once("connect",l):i.destroyed&&p&&u.close(i._hadError)};e.default=s,a.exports=s,a.exports.default=s}),Na=j((e,a)=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var n=ja(),s=Z("util"),i=Number(process.versions.node.split(".")[0]),h=u=>{if(u.timings)return u.timings;let r={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};u.timings=r;let t=o=>{let d=o.emit.bind(o);o.emit=(f,...y)=>(f==="error"&&(r.error=Date.now(),r.phases.total=r.error-r.start,o.emit=d),d(f,...y))};t(u);let p=()=>{r.abort=Date.now(),(!r.response||i>=13)&&(r.phases.total=Date.now()-r.start)};u.prependOnceListener("abort",p);let l=o=>{if(r.socket=Date.now(),r.phases.wait=r.socket-r.start,s.types.isProxy(o))return;let d=()=>{r.lookup=Date.now(),r.phases.dns=r.lookup-r.socket};o.prependOnceListener("lookup",d),n.default(o,{connect:()=>{r.connect=Date.now(),r.lookup===void 0&&(o.removeListener("lookup",d),r.lookup=r.connect,r.phases.dns=r.lookup-r.socket),r.phases.tcp=r.connect-r.lookup},secureConnect:()=>{r.secureConnect=Date.now(),r.phases.tls=r.secureConnect-r.connect}})};u.socket?l(u.socket):u.prependOnceListener("socket",l);let c=()=>{var o;r.upload=Date.now(),r.phases.request=r.upload-((o=r.secureConnect)!==null&&o!==void 0?o:r.connect)};return(()=>typeof u.writableFinished=="boolean"?u.writableFinished:u.finished&&u.outputSize===0&&(!u.socket||u.socket.writableLength===0))()?c():u.prependOnceListener("finish",c),u.prependOnceListener("response",o=>{r.response=Date.now(),r.phases.firstByte=r.response-r.upload,o.timings=r,t(o),o.prependOnceListener("end",()=>{r.end=Date.now(),r.phases.download=r.end-r.response,r.phases.total=r.end-r.start}),o.prependOnceListener("aborted",p)}),r};e.default=h,a.exports=h,a.exports.default=h}),Ma=j((e,a)=>{"use strict";B();var{V4MAPPED:n,ADDRCONFIG:s,ALL:i,promises:{Resolver:h},lookup:u}=Z("dns"),{promisify:r}=Z("util"),t=Z("os"),p=Symbol("cacheableLookupCreateConnection"),l=Symbol("cacheableLookupInstance"),c=Symbol("expires"),o=typeof i=="number",d=E=>{if(!(E&&typeof E.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},f=E=>{for(let v of E)v.family!==6&&(v.address=`::ffff:${v.address}`,v.family=6)},y=()=>{let E=!1,v=!1;for(let m of Object.values(t.networkInterfaces()))for(let _ of m)if(!_.internal&&(_.family==="IPv6"?v=!0:E=!0,E&&v))return{has4:E,has6:v};return{has4:E,has6:v}},b=E=>Symbol.iterator in E,w={ttl:!0},g={all:!0},D=class{constructor({cache:E=new Map,maxTtl:v=1/0,fallbackDuration:m=3600,errorTtl:_=.15,resolver:S=new h,lookup:A=u}={}){if(this.maxTtl=v,this.errorTtl=_,this._cache=E,this._resolver=S,this._dnsLookup=r(A),this._resolver instanceof h?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=r(this._resolver.resolve4.bind(this._resolver)),this._resolve6=r(this._resolver.resolve6.bind(this._resolver))),this._iface=y(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,m<1)this._fallback=!1;else{this._fallback=!0;let x=setInterval(()=>{this._hostnamesToFallback.clear()},m*1e3);x.unref&&x.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(E){this.clear(),this._resolver.setServers(E)}get servers(){return this._resolver.getServers()}lookup(E,v,m){if(typeof v=="function"?(m=v,v={}):typeof v=="number"&&(v={family:v}),!m)throw new Error("Callback must be a function.");this.lookupAsync(E,v).then(_=>{v.all?m(null,_):m(null,_.address,_.family,_.expires,_.ttl)},m)}async lookupAsync(E,v={}){typeof v=="number"&&(v={family:v});let m=await this.query(E);if(v.family===6){let _=m.filter(S=>S.family===6);v.hints&n&&(o&&v.hints&i||_.length===0)?f(m):m=_}else v.family===4&&(m=m.filter(_=>_.family===4));if(v.hints&s){let{_iface:_}=this;m=m.filter(S=>S.family===6?_.has6:_.has4)}if(m.length===0){let _=new Error(`cacheableLookup ENOTFOUND ${E}`);throw _.code="ENOTFOUND",_.hostname=E,_}return v.all?m:m[0]}async query(E){let v=await this._cache.get(E);if(!v){let m=this._pending[E];if(m)v=await m;else{let _=this.queryAndCache(E);this._pending[E]=_;try{v=await _}finally{delete this._pending[E]}}}return v=v.map(m=>({...m})),v}async _resolve(E){let v=async T=>{try{return await T}catch(k){if(k.code==="ENODATA"||k.code==="ENOTFOUND")return[];throw k}},[m,_]=await Promise.all([this._resolve4(E,w),this._resolve6(E,w)].map(T=>v(T))),S=0,A=0,x=0,L=Date.now();for(let T of m)T.family=4,T.expires=L+T.ttl*1e3,S=Math.max(S,T.ttl);for(let T of _)T.family=6,T.expires=L+T.ttl*1e3,A=Math.max(A,T.ttl);return m.length>0?_.length>0?x=Math.min(S,A):x=S:x=A,{entries:[...m,..._],cacheTtl:x}}async _lookup(E){try{return{entries:await this._dnsLookup(E,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(E,v,m){if(this.maxTtl>0&&m>0){m=Math.min(m,this.maxTtl)*1e3,v[c]=Date.now()+m;try{await this._cache.set(E,v,m)}catch(_){this.lookupAsync=async()=>{let S=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw S.cause=_,S}}b(this._cache)&&this._tick(m)}}async queryAndCache(E){if(this._hostnamesToFallback.has(E))return this._dnsLookup(E,g);let v=await this._resolve(E);v.entries.length===0&&this._fallback&&(v=await this._lookup(E),v.entries.length!==0&&this._hostnamesToFallback.add(E));let m=v.entries.length===0?this.errorTtl:v.cacheTtl;return await this._set(E,v.entries,m),v.entries}_tick(E){let v=this._nextRemovalTime;(!v||E<v)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=E,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let m=1/0,_=Date.now();for(let[S,A]of this._cache){let x=A[c];_>=x?this._cache.delete(S):x<m&&(m=x)}m!==1/0&&this._tick(m-_)},E),this._removalTimeout.unref&&this._removalTimeout.unref())}install(E){if(d(E),p in E)throw new Error("CacheableLookup has been already installed");E[p]=E.createConnection,E[l]=this,E.createConnection=(v,m)=>("lookup"in v||(v.lookup=this.lookup),E[p](v,m))}uninstall(E){if(d(E),E[p]){if(E[l]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");E.createConnection=E[p],delete E[p],delete E[l]}}updateInterfaceInfo(){let{_iface:E}=this;this._iface=y(),(E.has4&&!this._iface.has4||E.has6&&!this._iface.has6)&&this._cache.clear()}clear(E){if(E){this._cache.delete(E);return}this._cache.clear()}};a.exports=D,a.exports.default=D}),$a=j((e,a)=>{"use strict";B();var n="text/plain",s="us-ascii",i=(r,t)=>t.some(p=>p instanceof RegExp?p.test(r):p===r),h=(r,{stripHash:t})=>{let p=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(r);if(!p)throw new Error(`Invalid URL: ${r}`);let{type:l,data:c,hash:o}=p.groups,d=l.split(";");o=t?"":o;let f=!1;d[d.length-1]==="base64"&&(d.pop(),f=!0);let y=(d.shift()||"").toLowerCase(),b=[...d.map(w=>{let[g,D=""]=w.split("=").map(E=>E.trim());return g==="charset"&&(D=D.toLowerCase(),D===s)?"":`${g}${D?`=${D}`:""}`}).filter(Boolean)];return f&&b.push("base64"),(b.length!==0||y&&y!==n)&&b.unshift(y),`data:${b.join(";")},${f?c.trim():c}${o?`#${o}`:""}`},u=(r,t)=>{if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},r=r.trim(),/^data:/i.test(r))return h(r,t);if(/^view-source:/i.test(r))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let p=r.startsWith("//");!p&&/^\.*\//.test(r)||(r=r.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let l=new URL(r);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&l.protocol==="https:"&&(l.protocol="http:"),t.forceHttps&&l.protocol==="http:"&&(l.protocol="https:"),t.stripAuthentication&&(l.username="",l.password=""),t.stripHash?l.hash="":t.stripTextFragment&&(l.hash=l.hash.replace(/#?:~:text.*?$/i,"")),l.pathname&&(l.pathname=l.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),l.pathname)try{l.pathname=decodeURI(l.pathname)}catch{}if(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let o=l.pathname.split("/"),d=o[o.length-1];i(d,t.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),l.pathname=o.slice(1).join("/")+"/")}if(l.hostname&&(l.hostname=l.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(l.hostname)&&(l.hostname=l.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let o of[...l.searchParams.keys()])i(o,t.removeQueryParameters)&&l.searchParams.delete(o);t.removeQueryParameters===!0&&(l.search=""),t.sortQueryParameters&&l.searchParams.sort(),t.removeTrailingSlash&&(l.pathname=l.pathname.replace(/\/$/,""));let c=r;return r=l.toString(),!t.removeSingleSlash&&l.pathname==="/"&&!c.endsWith("/")&&l.hash===""&&(r=r.replace(/\/$/,"")),(t.removeTrailingSlash||l.pathname==="/")&&l.hash===""&&t.removeSingleSlash&&(r=r.replace(/\/$/,"")),p&&!t.normalizeProtocol&&(r=r.replace(/^http:\/\//,"//")),t.stripProtocol&&(r=r.replace(/^(?:https?:)?\/\//,"")),r};a.exports=u}),Ha=j((e,a)=>{B(),a.exports=n;function n(s,i){if(s&&i)return n(s)(i);if(typeof s!="function")throw new TypeError("need wrapper function");return Object.keys(s).forEach(function(u){h[u]=s[u]}),h;function h(){for(var u=new Array(arguments.length),r=0;r<u.length;r++)u[r]=arguments[r];var t=s.apply(this,u),p=u[u.length-1];return typeof t=="function"&&t!==p&&Object.keys(p).forEach(function(l){t[l]=p[l]}),t}}}),ki=j((e,a)=>{B();var n=Ha();a.exports=n(s),a.exports.strict=n(i),s.proto=s(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return s(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})});function s(h){var u=function(){return u.called?u.value:(u.called=!0,u.value=h.apply(this,arguments))};return u.called=!1,u}function i(h){var u=function(){if(u.called)throw new Error(u.onceError);return u.called=!0,u.value=h.apply(this,arguments)},r=h.name||"Function wrapped with `once`";return u.onceError=r+" shouldn't be called more than once",u.called=!1,u}}),Ua=j((e,a)=>{B();var n=ki(),s=function(){},i=function(r){return r.setHeader&&typeof r.abort=="function"},h=function(r){return r.stdio&&Array.isArray(r.stdio)&&r.stdio.length===3},u=function(r,t,p){if(typeof t=="function")return u(r,null,t);t||(t={}),p=n(p||s);var l=r._writableState,c=r._readableState,o=t.readable||t.readable!==!1&&r.readable,d=t.writable||t.writable!==!1&&r.writable,f=!1,y=function(){r.writable||b()},b=function(){d=!1,o||p.call(r)},w=function(){o=!1,d||p.call(r)},g=function(_){p.call(r,_?new Error("exited with error code: "+_):null)},D=function(_){p.call(r,_)},E=function(){process.nextTick(v)},v=function(){if(!f){if(o&&!(c&&c.ended&&!c.destroyed))return p.call(r,new Error("premature close"));if(d&&!(l&&l.ended&&!l.destroyed))return p.call(r,new Error("premature close"))}},m=function(){r.req.on("finish",b)};return i(r)?(r.on("complete",b),r.on("abort",E),r.req?m():r.on("request",m)):d&&!l&&(r.on("end",y),r.on("close",y)),h(r)&&r.on("exit",g),r.on("end",w),r.on("finish",b),t.error!==!1&&r.on("error",D),r.on("close",E),function(){f=!0,r.removeListener("complete",b),r.removeListener("abort",E),r.removeListener("request",m),r.req&&r.req.removeListener("finish",b),r.removeListener("end",y),r.removeListener("close",y),r.removeListener("finish",b),r.removeListener("exit",g),r.removeListener("end",w),r.removeListener("error",D),r.removeListener("close",E)}};a.exports=u}),Ga=j((e,a)=>{B();var n=ki(),s=Ua(),i=Z("fs"),h=function(){},u=/^v?\.0/.test(process.version),r=function(f){return typeof f=="function"},t=function(f){return!u||!i?!1:(f instanceof(i.ReadStream||h)||f instanceof(i.WriteStream||h))&&r(f.close)},p=function(f){return f.setHeader&&r(f.abort)},l=function(f,y,b,w){w=n(w);var g=!1;f.on("close",function(){g=!0}),s(f,{readable:y,writable:b},function(E){if(E)return w(E);g=!0,w()});var D=!1;return function(E){if(!g&&!D){if(D=!0,t(f))return f.close(h);if(p(f))return f.abort();if(r(f.destroy))return f.destroy();w(E||new Error("stream was destroyed"))}}},c=function(f){f()},o=function(f,y){return f.pipe(y)},d=function(){var f=Array.prototype.slice.call(arguments),y=r(f[f.length-1]||h)&&f.pop()||h;if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new Error("pump requires two streams per minimum");var b,w=f.map(function(g,D){var E=D<f.length-1,v=D>0;return l(g,E,v,function(m){b||(b=m),m&&w.forEach(c),!E&&(w.forEach(c),y(b))})});return f.reduce(o)};a.exports=d}),qa=j((e,a)=>{"use strict";B();var{PassThrough:n}=Z("stream");a.exports=s=>{s={...s};let{array:i}=s,{encoding:h}=s,u=h==="buffer",r=!1;i?r=!(h||u):h=h||"utf8",u&&(h=null);let t=new n({objectMode:r});h&&t.setEncoding(h);let p=0,l=[];return t.on("data",c=>{l.push(c),r?p=l.length:p+=c.length}),t.getBufferedValue=()=>i?l:u?Buffer.concat(l,p):l.join(""),t.getBufferedLength=()=>p,t}}),Wa=j((e,a)=>{"use strict";B();var{constants:n}=Z("buffer"),s=Ga(),i=qa(),h=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function u(r,t){if(!r)return Promise.reject(new Error("Expected a stream"));t={maxBuffer:1/0,...t};let{maxBuffer:p}=t,l;return await new Promise((c,o)=>{let d=f=>{f&&l.getBufferedLength()<=n.MAX_LENGTH&&(f.bufferedData=l.getBufferedValue()),o(f)};l=s(r,i(t),f=>{if(f){d(f);return}c()}),l.on("data",()=>{l.getBufferedLength()>p&&d(new h)})}),l.getBufferedValue()}a.exports=u,a.exports.default=u,a.exports.buffer=(r,t)=>u(r,{...t,encoding:"buffer"}),a.exports.array=(r,t)=>u(r,{...t,array:!0}),a.exports.MaxBufferError=h}),za=j((e,a)=>{"use strict";B();var n=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),s=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),i=new Set([500,502,503,504]),h={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},u={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function r(c){let o=parseInt(c,10);return isFinite(o)?o:0}function t(c){return c?i.has(c.status):!0}function p(c){let o={};if(!c)return o;let d=c.trim().split(/,/);for(let f of d){let[y,b]=f.split(/=/,2);o[y.trim()]=b===void 0?!0:b.trim().replace(/^"|"$/g,"")}return o}function l(c){let o=[];for(let d in c){let f=c[d];o.push(f===!0?d:d+"="+f)}if(o.length)return o.join(", ")}a.exports=class{constructor(c,o,{shared:d,cacheHeuristic:f,immutableMinTimeToLive:y,ignoreCargoCult:b,_fromObject:w}={}){if(w){this._fromObject(w);return}if(!o||!o.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(c),this._responseTime=this.now(),this._isShared=d!==!1,this._cacheHeuristic=f!==void 0?f:.1,this._immutableMinTtl=y!==void 0?y:24*3600*1e3,this._status="status"in o?o.status:200,this._resHeaders=o.headers,this._rescc=p(o.headers["cache-control"]),this._method="method"in c?c.method:"GET",this._url=c.url,this._host=c.headers.host,this._noAuthorization=!c.headers.authorization,this._reqHeaders=o.headers.vary?c.headers:null,this._reqcc=p(c.headers["cache-control"]),b&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":l(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),o.headers["cache-control"]==null&&/no-cache/.test(o.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&s.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||n.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(c){if(!c||!c.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(c){this._assertRequestHasHeaders(c);let o=p(c.headers["cache-control"]);return o["no-cache"]||/no-cache/.test(c.headers.pragma)||o["max-age"]&&this.age()>o["max-age"]||o["min-fresh"]&&this.timeToLive()<1e3*o["min-fresh"]||this.stale()&&!(o["max-stale"]&&!this._rescc["must-revalidate"]&&(o["max-stale"]===!0||o["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(c,!1)}_requestMatches(c,o){return(!this._url||this._url===c.url)&&this._host===c.headers.host&&(!c.method||this._method===c.method||o&&c.method==="HEAD")&&this._varyMatches(c)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(c){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let o=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let d of o)if(c.headers[d]!==this._reqHeaders[d])return!1;return!0}_copyWithoutHopByHopHeaders(c){let o={};for(let d in c)h[d]||(o[d]=c[d]);if(c.connection){let d=c.connection.trim().split(/\s*,\s*/);for(let f of d)delete o[f]}if(o.warning){let d=o.warning.split(/,/).filter(f=>!/^\s*1[0-9][0-9]/.test(f));d.length?o.warning=d.join(",").trim():delete o.warning}return o}responseHeaders(){let c=this._copyWithoutHopByHopHeaders(this._resHeaders),o=this.age();return o>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(c.warning=(c.warning?`${c.warning}, `:"")+'113 - "rfc7234 5.5.4"'),c.age=`${Math.round(o)}`,c.date=new Date(this.now()).toUTCString(),c}date(){let c=Date.parse(this._resHeaders.date);return isFinite(c)?c:this._responseTime}age(){let c=this._ageValue(),o=(this.now()-this._responseTime)/1e3;return c+o}_ageValue(){return r(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return r(this._rescc["s-maxage"])}if(this._rescc["max-age"])return r(this._rescc["max-age"]);let c=this._rescc.immutable?this._immutableMinTtl:0,o=this.date();if(this._resHeaders.expires){let d=Date.parse(this._resHeaders.expires);return Number.isNaN(d)||d<o?0:Math.max(c,(d-o)/1e3)}if(this._resHeaders["last-modified"]){let d=Date.parse(this._resHeaders["last-modified"]);if(isFinite(d)&&o>d)return Math.max(c,(o-d)/1e3*this._cacheHeuristic)}return c}timeToLive(){let c=this.maxAge()-this.age(),o=c+r(this._rescc["stale-if-error"]),d=c+r(this._rescc["stale-while-revalidate"]);return Math.max(0,c,o,d)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+r(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+r(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(c){return new this(void 0,void 0,{_fromObject:c})}_fromObject(c){if(this._responseTime)throw Error("Reinitialized");if(!c||c.v!==1)throw Error("Invalid serialization");this._responseTime=c.t,this._isShared=c.sh,this._cacheHeuristic=c.ch,this._immutableMinTtl=c.imm!==void 0?c.imm:24*3600*1e3,this._status=c.st,this._resHeaders=c.resh,this._rescc=c.rescc,this._method=c.m,this._url=c.u,this._host=c.h,this._noAuthorization=c.a,this._reqHeaders=c.reqh,this._reqcc=c.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(c){this._assertRequestHasHeaders(c);let o=this._copyWithoutHopByHopHeaders(c.headers);if(delete o["if-range"],!this._requestMatches(c,!0)||!this.storable())return delete o["if-none-match"],delete o["if-modified-since"],o;if(this._resHeaders.etag&&(o["if-none-match"]=o["if-none-match"]?`${o["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),o["accept-ranges"]||o["if-match"]||o["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete o["if-modified-since"],o["if-none-match"]){let d=o["if-none-match"].split(/,/).filter(f=>!/^\s*W\//.test(f));d.length?o["if-none-match"]=d.join(",").trim():delete o["if-none-match"]}}else this._resHeaders["last-modified"]&&!o["if-modified-since"]&&(o["if-modified-since"]=this._resHeaders["last-modified"]);return o}revalidatedPolicy(c,o){if(this._assertRequestHasHeaders(c),this._useStaleIfError()&&t(o))return{modified:!1,matches:!1,policy:this};if(!o||!o.headers)throw Error("Response headers missing");let d=!1;if(o.status!==void 0&&o.status!=304?d=!1:o.headers.etag&&!/^\s*W\//.test(o.headers.etag)?d=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===o.headers.etag:this._resHeaders.etag&&o.headers.etag?d=this._resHeaders.etag.replace(/^\s*W\//,"")===o.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?d=this._resHeaders["last-modified"]===o.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!o.headers.etag&&!o.headers["last-modified"]&&(d=!0),!d)return{policy:new this.constructor(c,o),modified:o.status!=304,matches:!1};let f={};for(let b in this._resHeaders)f[b]=b in o.headers&&!u[b]?o.headers[b]:this._resHeaders[b];let y=Object.assign({},o,{status:this._status,method:this._method,headers:f});return{policy:new this.constructor(c,y,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}}),Xr=j((e,a)=>{"use strict";B(),a.exports=n=>{let s={};for(let[i,h]of Object.entries(n))s[i.toLowerCase()]=h;return s}}),Va=j((e,a)=>{"use strict";B();var n=Z("stream").Readable,s=Xr(),i=class extends n{constructor(h,u,r,t){if(typeof h!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof u!="object")throw new TypeError("Argument `headers` should be an object");if(!(r instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof t!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=h,this.headers=s(u),this.body=r,this.url=t}_read(){this.push(this.body),this.push(null)}};a.exports=i}),Ka=j((e,a)=>{"use strict";B();var n=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];a.exports=(s,i)=>{let h=new Set(Object.keys(s).concat(n));for(let u of h)u in i||(i[u]=typeof s[u]=="function"?s[u].bind(s):s[u])}}),Ya=j((e,a)=>{"use strict";B();var n=Z("stream").PassThrough,s=Ka(),i=h=>{if(!(h&&h.pipe))throw new TypeError("Parameter `response` must be a response stream.");let u=new n;return s(h,u),h.pipe(u)};a.exports=i}),Ja=j(e=>{B(),e.stringify=function a(n){if(typeof n>"u")return n;if(n&&Buffer.isBuffer(n))return JSON.stringify(":base64:"+n.toString("base64"));if(n&&n.toJSON&&(n=n.toJSON()),n&&typeof n=="object"){var s="",i=Array.isArray(n);s=i?"[":"{";var h=!0;for(var u in n){var r=typeof n[u]=="function"||!i&&typeof n[u]>"u";Object.hasOwnProperty.call(n,u)&&!r&&(h||(s+=","),h=!1,i?n[u]==null?s+="null":s+=a(n[u]):n[u]!==void 0&&(s+=a(u)+":"+a(n[u])))}return s+=i?"]":"}",s}else return typeof n=="string"?JSON.stringify(/^:/.test(n)?":"+n:n):typeof n>"u"?"null":JSON.stringify(n)},e.parse=function(a){return JSON.parse(a,function(n,s){return typeof s=="string"?/^:base64:/.test(s)?Buffer.from(s.substring(8),"base64"):/^:/.test(s)?s.substring(1):s:s})}}),Za=j((e,a)=>{"use strict";B();var n=Z("events"),s=Ja(),i=r=>{let t={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(r.adapter||r.uri){let p=r.adapter||/^[^:+]*/.exec(r.uri)[0];return new(Z(t[p]))(r)}return new Map},h=["sqlite","postgres","mysql","mongo","redis","tiered"],u=class extends n{constructor(r,{emitErrors:t=!0,...p}={}){if(super(),this.opts={namespace:"keyv",serialize:s.stringify,deserialize:s.parse,...typeof r=="string"?{uri:r}:r,...p},!this.opts.store){let c={...this.opts};this.opts.store=i(c)}if(this.opts.compression){let c=this.opts.compression;this.opts.serialize=c.serialize.bind(c),this.opts.deserialize=c.deserialize.bind(c)}typeof this.opts.store.on=="function"&&t&&this.opts.store.on("error",c=>this.emit("error",c)),this.opts.store.namespace=this.opts.namespace;let l=c=>async function*(){for await(let[o,d]of typeof c=="function"?c(this.opts.store.namespace):c){let f=this.opts.deserialize(d);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof f.expires=="number"&&Date.now()>f.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),f.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=l(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=l(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return h.includes(this.opts.store.opts.dialect)||h.findIndex(r=>this.opts.store.opts.url.includes(r))>=0}_getKeyPrefix(r){return`${this.opts.namespace}:${r}`}_getKeyPrefixArray(r){return r.map(t=>`${this.opts.namespace}:${t}`)}_getKeyUnprefix(r){return r.split(":").splice(1).join(":")}get(r,t){let{store:p}=this.opts,l=Array.isArray(r),c=l?this._getKeyPrefixArray(r):this._getKeyPrefix(r);if(l&&p.getMany===void 0){let o=[];for(let d of c)o.push(Promise.resolve().then(()=>p.get(d)).then(f=>typeof f=="string"?this.opts.deserialize(f):this.opts.compression?this.opts.deserialize(f):f).then(f=>{if(f!=null)return typeof f.expires=="number"&&Date.now()>f.expires?this.delete(d).then(()=>{}):t&&t.raw?f:f.value}));return Promise.allSettled(o).then(d=>{let f=[];for(let y of d)f.push(y.value);return f})}return Promise.resolve().then(()=>l?p.getMany(c):p.get(c)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(l){let d=[];for(let f of o){if(typeof f=="string"&&(f=this.opts.deserialize(f)),f==null){d.push(void 0);continue}typeof f.expires=="number"&&Date.now()>f.expires?(this.delete(r).then(()=>{}),d.push(void 0)):d.push(t&&t.raw?f:f.value)}return d}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(r).then(()=>{}):t&&t.raw?o:o.value}})}set(r,t,p){let l=this._getKeyPrefix(r);typeof p>"u"&&(p=this.opts.ttl),p===0&&(p=void 0);let{store:c}=this.opts;return Promise.resolve().then(()=>{let o=typeof p=="number"?Date.now()+p:null;return typeof t=="symbol"&&this.emit("error","symbol cannot be serialized"),t={value:t,expires:o},this.opts.serialize(t)}).then(o=>c.set(l,o,p)).then(()=>!0)}delete(r){let{store:t}=this.opts;if(Array.isArray(r)){let l=this._getKeyPrefixArray(r);if(t.deleteMany===void 0){let c=[];for(let o of l)c.push(t.delete(o));return Promise.allSettled(c).then(o=>o.every(d=>d.value===!0))}return Promise.resolve().then(()=>t.deleteMany(l))}let p=this._getKeyPrefix(r);return Promise.resolve().then(()=>t.delete(p))}clear(){let{store:r}=this.opts;return Promise.resolve().then(()=>r.clear())}has(r){let t=this._getKeyPrefix(r),{store:p}=this.opts;return Promise.resolve().then(async()=>typeof p.has=="function"?p.has(t):await p.get(t)!==void 0)}disconnect(){let{store:r}=this.opts;if(typeof r.disconnect=="function")return r.disconnect()}};a.exports=u}),Xa=j((e,a)=>{"use strict";B();var n=Z("events"),s=Z("url"),i=$a(),h=Wa(),u=za(),r=Va(),t=Xr(),p=Ya(),l=Za(),c=class{constructor(f,y){if(typeof f!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new l({uri:typeof y=="string"&&y,store:typeof y!="string"&&y,namespace:"cacheable-request"}),this.createCacheableRequest(f)}createCacheableRequest(f){return(y,b)=>{let w;if(typeof y=="string")w=d(s.parse(y)),y={};else if(y instanceof s.URL)w=d(s.parse(y.toString())),y={};else{let[S,...A]=(y.path||"").split("?"),x=A.length>0?`?${A.join("?")}`:"";w=d({...y,pathname:S,search:x})}y={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...y,...o(w)},y.headers=t(y.headers);let g=new n,D=i(s.format(w),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),E=`${y.method}:${D}`,v=!1,m=!1,_=S=>{m=!0;let A=!1,x,L=new Promise(k=>{x=()=>{A||(A=!0,k())}}),T=k=>{if(v&&!S.forceRefresh){k.status=k.statusCode;let I=u.fromObject(v.cachePolicy).revalidatedPolicy(S,k);if(!I.modified){let $=I.policy.responseHeaders();k=new r(v.statusCode,$,v.body,v.url),k.cachePolicy=I.policy,k.fromCache=!0}}k.fromCache||(k.cachePolicy=new u(S,k,S),k.fromCache=!1);let O;S.cache&&k.cachePolicy.storable()?(O=p(k),(async()=>{try{let I=h.buffer(k);if(await Promise.race([L,new Promise(z=>k.once("end",z))]),A)return;let $=await I,R={cachePolicy:k.cachePolicy.toObject(),url:k.url,statusCode:k.fromCache?v.statusCode:k.statusCode,body:$},G=S.strictTtl?k.cachePolicy.timeToLive():void 0;S.maxTtl&&(G=G?Math.min(G,S.maxTtl):S.maxTtl),await this.cache.set(E,R,G)}catch(I){g.emit("error",new c.CacheError(I))}})()):S.cache&&v&&(async()=>{try{await this.cache.delete(E)}catch(I){g.emit("error",new c.CacheError(I))}})(),g.emit("response",O||k),typeof b=="function"&&b(O||k)};try{let k=f(S,T);k.once("error",x),k.once("abort",x),g.emit("request",k)}catch(k){g.emit("error",new c.RequestError(k))}};return(async()=>{let S=async x=>{await Promise.resolve();let L=x.cache?await this.cache.get(E):void 0;if(typeof L>"u")return _(x);let T=u.fromObject(L.cachePolicy);if(T.satisfiesWithoutRevalidation(x)&&!x.forceRefresh){let k=T.responseHeaders(),O=new r(L.statusCode,k,L.body,L.url);O.cachePolicy=T,O.fromCache=!0,g.emit("response",O),typeof b=="function"&&b(O)}else v=L,x.headers=T.revalidationHeaders(x),_(x)},A=x=>g.emit("error",new c.CacheError(x));this.cache.once("error",A),g.on("response",()=>this.cache.removeListener("error",A));try{await S(y)}catch(x){y.automaticFailover&&!m&&_(y),g.emit("error",new c.CacheError(x))}})(),g}}};function o(f){let y={...f};return y.path=`${f.pathname||"/"}${f.search||""}`,delete y.pathname,delete y.search,y}function d(f){return{protocol:f.protocol,auth:f.auth,hostname:f.hostname||f.host||"localhost",port:f.port,pathname:f.pathname,search:f.search}}c.RequestError=class extends Error{constructor(f){super(f.message),this.name="RequestError",Object.assign(this,f)}},c.CacheError=class extends Error{constructor(f){super(f.message),this.name="CacheError",Object.assign(this,f)}},a.exports=c}),Qa=j((e,a)=>{"use strict";B();var n=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];a.exports=(s,i)=>{if(i._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let h=new Set(Object.keys(s).concat(n)),u={};for(let r of h)r in i||(u[r]={get(){let t=s[r];return typeof t=="function"?t.bind(s):t},set(t){s[r]=t},enumerable:!0,configurable:!1});return Object.defineProperties(i,u),s.once("aborted",()=>{i.destroy(),i.emit("aborted")}),s.once("close",()=>{s.complete&&i.readable?i.once("end",()=>{i.emit("close")}):i.emit("close")}),i}}),el=j((e,a)=>{"use strict";B();var{Transform:n,PassThrough:s}=Z("stream"),i=Z("zlib"),h=Qa();a.exports=u=>{let r=(u.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(r))return u;let t=r==="br";if(t&&typeof i.createBrotliDecompress!="function")return u.destroy(new Error("Brotli is not supported on Node.js < 12")),u;let p=!0,l=new n({transform(d,f,y){p=!1,y(null,d)},flush(d){d()}}),c=new s({autoDestroy:!1,destroy(d,f){u.destroy(),f(d)}}),o=t?i.createBrotliDecompress():i.createUnzip();return o.once("error",d=>{if(p&&!u.readable){c.end();return}c.destroy(d)}),h(u,c),u.pipe(l).pipe(o).pipe(c),c}}),Fi=j((e,a)=>{"use strict";B();var n=class{constructor(s={}){if(!(s.maxSize&&s.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=s.maxSize,this.onEviction=s.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(s,i){if(this.cache.set(s,i),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[h,u]of this.oldCache.entries())this.onEviction(h,u);this.oldCache=this.cache,this.cache=new Map}}get(s){if(this.cache.has(s))return this.cache.get(s);if(this.oldCache.has(s)){let i=this.oldCache.get(s);return this.oldCache.delete(s),this._set(s,i),i}}set(s,i){return this.cache.has(s)?this.cache.set(s,i):this._set(s,i),this}has(s){return this.cache.has(s)||this.oldCache.has(s)}peek(s){if(this.cache.has(s))return this.cache.get(s);if(this.oldCache.has(s))return this.oldCache.get(s)}delete(s){let i=this.cache.delete(s);return i&&this._size--,this.oldCache.delete(s)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[s]of this)yield s}*values(){for(let[,s]of this)yield s}*[Symbol.iterator](){for(let s of this.cache)yield s;for(let s of this.oldCache){let[i]=s;this.cache.has(i)||(yield s)}}get size(){let s=0;for(let i of this.oldCache.keys())this.cache.has(i)||s++;return Math.min(this._size+s,this.maxSize)}};a.exports=n}),Oi=j((e,a)=>{"use strict";B();var n=Z("events"),s=Z("tls"),i=Z("http2"),h=Fi(),u=Symbol("currentStreamsCount"),r=Symbol("request"),t=Symbol("cachedOriginSet"),p=Symbol("gracefullyClosing"),l=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],c=(g,D,E)=>{let v=0,m=g.length;for(;v<m;){let _=v+m>>>1;E(g[_],D)?v=_+1:m=_}return v},o=(g,D)=>g.remoteSettings.maxConcurrentStreams>D.remoteSettings.maxConcurrentStreams,d=(g,D)=>{for(let E of g)E[t].length<D[t].length&&E[t].every(v=>D[t].includes(v))&&E[u]+D[u]<=D.remoteSettings.maxConcurrentStreams&&b(E)},f=(g,D)=>{for(let E of g)D[t].length<E[t].length&&D[t].every(v=>E[t].includes(v))&&D[u]+E[u]<=E.remoteSettings.maxConcurrentStreams&&b(D)},y=({agent:g,isFree:D})=>{let E={};for(let v in g.sessions){let m=g.sessions[v].filter(_=>{let S=_[w.kCurrentStreamsCount]<_.remoteSettings.maxConcurrentStreams;return D?S:!S});m.length!==0&&(E[v]=m)}return E},b=g=>{g[p]=!0,g[u]===0&&g.close()},w=class extends n{constructor({timeout:g=6e4,maxSessions:D=1/0,maxFreeSessions:E=10,maxCachedTlsSessions:v=100}={}){super(),this.sessions={},this.queue={},this.timeout=g,this.maxSessions=D,this.maxFreeSessions=E,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new h({maxSize:v})}static normalizeOrigin(g,D){return typeof g=="string"&&(g=new URL(g)),D&&g.hostname!==D&&(g.hostname=D),g.origin}normalizeOptions(g){let D="";if(g)for(let E of l)g[E]&&(D+=`:${g[E]}`);return D}_tryToCreateNewSession(g,D){if(!(g in this.queue)||!(D in this.queue[g]))return;let E=this.queue[g][D];this._sessionsCount<this.maxSessions&&!E.completed&&(E.completed=!0,E())}getSession(g,D,E){return new Promise((v,m)=>{Array.isArray(E)?(E=[...E],v()):E=[{resolve:v,reject:m}];let _=this.normalizeOptions(D),S=w.normalizeOrigin(g,D&&D.servername);if(S===void 0){for(let{reject:L}of E)L(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(_ in this.sessions){let L=this.sessions[_],T=-1,k=-1,O;for(let I of L){let $=I.remoteSettings.maxConcurrentStreams;if($<T)break;if(I[t].includes(S)){let R=I[u];if(R>=$||I[p]||I.destroyed)continue;O||(T=$),R>k&&(O=I,k=R)}}if(O){if(E.length!==1){for(let{reject:I}of E){let $=new Error(`Expected the length of listeners to be 1, got ${E.length}.
|
|
16
|
-
Please report this to https://github.com/szmarczak/http2-wrapper/`);I($)}return}E[0].resolve(O);return}}if(_ in this.queue){if(S in this.queue[_]){this.queue[_][S].listeners.push(...E),this._tryToCreateNewSession(_,S);return}}else this.queue[_]={};let A=()=>{_ in this.queue&&this.queue[_][S]===x&&(delete this.queue[_][S],Object.keys(this.queue[_]).length===0&&delete this.queue[_])},x=()=>{let L=`${S}:${_}`,T=!1;try{let k=i.connect(g,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(L),...D});k[u]=0,k[p]=!1;let O=()=>k[u]<k.remoteSettings.maxConcurrentStreams,I=!0;k.socket.once("session",R=>{this.tlsSessionCache.set(L,R)}),k.once("error",R=>{for(let{reject:G}of E)G(R);this.tlsSessionCache.delete(L)}),k.setTimeout(this.timeout,()=>{k.destroy()}),k.once("close",()=>{if(T){I&&this._freeSessionsCount--,this._sessionsCount--;let R=this.sessions[_];R.splice(R.indexOf(k),1),R.length===0&&delete this.sessions[_]}else{let R=new Error("Session closed without receiving a SETTINGS frame");R.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:G}of E)G(R);A()}this._tryToCreateNewSession(_,S)});let $=()=>{if(!(!(_ in this.queue)||!O())){for(let R of k[t])if(R in this.queue[_]){let{listeners:G}=this.queue[_][R];for(;G.length!==0&&O();)G.shift().resolve(k);let z=this.queue[_];if(z[R].listeners.length===0&&(delete z[R],Object.keys(z).length===0)){delete this.queue[_];break}if(!O())break}}};k.on("origin",()=>{k[t]=k.originSet,O()&&($(),d(this.sessions[_],k))}),k.once("remoteSettings",()=>{if(k.ref(),k.unref(),this._sessionsCount++,x.destroyed){let R=new Error("Agent has been destroyed");for(let G of E)G.reject(R);k.destroy();return}k[t]=k.originSet;{let R=this.sessions;if(_ in R){let G=R[_];G.splice(c(G,k,o),0,k)}else R[_]=[k]}this._freeSessionsCount+=1,T=!0,this.emit("session",k),$(),A(),k[u]===0&&this._freeSessionsCount>this.maxFreeSessions&&k.close(),E.length!==0&&(this.getSession(S,D,E),E.length=0),k.on("remoteSettings",()=>{$(),d(this.sessions[_],k)})}),k[r]=k.request,k.request=(R,G)=>{if(k[p])throw new Error("The session is gracefully closing. No new streams are allowed.");let z=k[r](R,G);return k.ref(),++k[u],k[u]===k.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,z.once("close",()=>{if(I=O(),--k[u],!k.destroyed&&!k.closed&&(f(this.sessions[_],k),O()&&!k.closed)){I||(this._freeSessionsCount++,I=!0);let Q=k[u]===0;Q&&k.unref(),Q&&(this._freeSessionsCount>this.maxFreeSessions||k[p])?k.close():(d(this.sessions[_],k),$())}}),z}}catch(k){for(let O of E)O.reject(k);A()}};x.listeners=E,x.completed=!1,x.destroyed=!1,this.queue[_][S]=x,this._tryToCreateNewSession(_,S)})}request(g,D,E,v){return new Promise((m,_)=>{this.getSession(g,D,[{reject:_,resolve:S=>{try{m(S.request(E,v))}catch(A){_(A)}}}])})}createConnection(g,D){return w.connect(g,D)}static connect(g,D){D.ALPNProtocols=["h2"];let E=g.port||443,v=g.hostname||g.host;return typeof D.servername>"u"&&(D.servername=v),s.connect(E,v,D)}closeFreeSessions(){for(let g of Object.values(this.sessions))for(let D of g)D[u]===0&&D.close()}destroy(g){for(let D of Object.values(this.sessions))for(let E of D)E.destroy(g);for(let D of Object.values(this.queue))for(let E of Object.values(D))E.destroyed=!0;this.queue={}}get freeSessions(){return y({agent:this,isFree:!0})}get busySessions(){return y({agent:this,isFree:!1})}};w.kCurrentStreamsCount=u,w.kGracefullyClosing=p,a.exports={Agent:w,globalAgent:new w}}),Ri=j((e,a)=>{"use strict";B();var{Readable:n}=Z("stream"),s=class extends n{constructor(i,h){super({highWaterMark:h,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=i,this.connection=i,this._dumped=!1}_destroy(i){this.req._request.destroy(i)}setTimeout(i,h){return this.req.setTimeout(i,h),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};a.exports=s}),Ti=j((e,a)=>{"use strict";B(),a.exports=n=>{let s={protocol:n.protocol,hostname:typeof n.hostname=="string"&&n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,host:n.host,hash:n.hash,search:n.search,pathname:n.pathname,href:n.href,path:`${n.pathname||""}${n.search||""}`};return typeof n.port=="string"&&n.port.length!==0&&(s.port=Number(n.port)),(n.username||n.password)&&(s.auth=`${n.username||""}:${n.password||""}`),s}}),tl=j((e,a)=>{"use strict";B(),a.exports=(n,s,i)=>{for(let h of i)n.on(h,(...u)=>s.emit(h,...u))}}),rl=j((e,a)=>{"use strict";B(),a.exports=n=>{switch(n){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}}),nl=j((e,a)=>{"use strict";B();var n=(s,i,h)=>{a.exports[i]=class extends s{constructor(...u){super(typeof h=="string"?h:h(u)),this.name=`${super.name} [${i}]`,this.code=i}}};n(TypeError,"ERR_INVALID_ARG_TYPE",s=>{let i=s[0].includes(".")?"property":"argument",h=s[1],u=Array.isArray(h);return u&&(h=`${h.slice(0,-1).join(", ")} or ${h.slice(-1)}`),`The "${s[0]}" ${i} must be ${u?"one of":"of"} type ${h}. Received ${typeof s[2]}`}),n(TypeError,"ERR_INVALID_PROTOCOL",s=>`Protocol "${s[0]}" not supported. Expected "${s[1]}"`),n(Error,"ERR_HTTP_HEADERS_SENT",s=>`Cannot ${s[0]} headers after they are sent to the client`),n(TypeError,"ERR_INVALID_HTTP_TOKEN",s=>`${s[0]} must be a valid HTTP token [${s[1]}]`),n(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",s=>`Invalid value "${s[0]} for header "${s[1]}"`),n(TypeError,"ERR_INVALID_CHAR",s=>`Invalid character in ${s[0]} [${s[1]}]`)}),Bi=j((e,a)=>{"use strict";B();var n=Z("http2"),{Writable:s}=Z("stream"),{Agent:i,globalAgent:h}=Oi(),u=Ri(),r=Ti(),t=tl(),p=rl(),{ERR_INVALID_ARG_TYPE:l,ERR_INVALID_PROTOCOL:c,ERR_HTTP_HEADERS_SENT:o,ERR_INVALID_HTTP_TOKEN:d,ERR_HTTP_INVALID_HEADER_VALUE:f,ERR_INVALID_CHAR:y}=nl(),{HTTP2_HEADER_STATUS:b,HTTP2_HEADER_METHOD:w,HTTP2_HEADER_PATH:g,HTTP2_METHOD_CONNECT:D}=n.constants,E=Symbol("headers"),v=Symbol("origin"),m=Symbol("session"),_=Symbol("options"),S=Symbol("flushedHeaders"),A=Symbol("jobs"),x=/^[\^`\-\w!#$%&*+.|~]+$/,L=/[^\t\u0020-\u007E\u0080-\u00FF]/,T=class extends s{constructor(k,O,I){super({autoDestroy:!1});let $=typeof k=="string"||k instanceof URL;if($&&(k=r(k instanceof URL?k:new URL(k))),typeof O=="function"||O===void 0?(I=O,O=$?k:{...k}):O={...k,...O},O.h2session)this[m]=O.h2session;else if(O.agent===!1)this.agent=new i({maxFreeSessions:0});else if(typeof O.agent>"u"||O.agent===null)typeof O.createConnection=="function"?(this.agent=new i({maxFreeSessions:0}),this.agent.createConnection=O.createConnection):this.agent=h;else if(typeof O.agent.request=="function")this.agent=O.agent;else throw new l("options.agent",["Agent-like Object","undefined","false"],O.agent);if(O.protocol&&O.protocol!=="https:")throw new c(O.protocol,"https:");let R=O.port||O.defaultPort||this.agent&&this.agent.defaultPort||443,G=O.hostname||O.host||"localhost";delete O.hostname,delete O.host,delete O.port;let{timeout:z}=O;if(O.timeout=void 0,this[E]=Object.create(null),this[A]=[],this.socket=null,this.connection=null,this.method=O.method||"GET",this.path=O.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,O.headers)for(let[Q,P]of Object.entries(O.headers))this.setHeader(Q,P);O.auth&&!("authorization"in this[E])&&(this[E].authorization="Basic "+Buffer.from(O.auth).toString("base64")),O.session=O.tlsSession,O.path=O.socketPath,this[_]=O,R===443?(this[v]=`https://${G}`,":authority"in this[E]||(this[E][":authority"]=G)):(this[v]=`https://${G}:${R}`,":authority"in this[E]||(this[E][":authority"]=`${G}:${R}`)),z&&this.setTimeout(z),I&&this.once("response",I),this[S]=!1}get method(){return this[E][w]}set method(k){k&&(this[E][w]=k.toUpperCase())}get path(){return this[E][g]}set path(k){k&&(this[E][g]=k)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(k,O,I){if(this._mustNotHaveABody){I(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let $=()=>this._request.write(k,O,I);this._request?$():this[A].push($)}_final(k){if(this.destroyed)return;this.flushHeaders();let O=()=>{if(this._mustNotHaveABody){k();return}this._request.end(k)};this._request?O():this[A].push(O)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(k,O){this.res&&this.res._dump(),this._request&&this._request.destroy(),O(k)}async flushHeaders(){if(this[S]||this.destroyed)return;this[S]=!0;let k=this.method===D,O=I=>{if(this._request=I,this.destroyed){I.destroy();return}k||t(I,this,["timeout","continue","close","error"]);let $=G=>(...z)=>{!this.writable&&!this.destroyed?G(...z):this.once("finish",()=>{G(...z)})};I.once("response",$((G,z,Q)=>{let P=new u(this.socket,I.readableHighWaterMark);this.res=P,P.req=this,P.statusCode=G[b],P.headers=G,P.rawHeaders=Q,P.once("end",()=>{this.aborted?(P.aborted=!0,P.emit("aborted")):(P.complete=!0,P.socket=null,P.connection=null)}),k?(P.upgrade=!0,this.emit("connect",P,I,Buffer.alloc(0))?this.emit("close"):I.destroy()):(I.on("data",N=>{!P._dumped&&!P.push(N)&&I.pause()}),I.once("end",()=>{P.push(null)}),this.emit("response",P)||P._dump())})),I.once("headers",$(G=>this.emit("information",{statusCode:G[b]}))),I.once("trailers",$((G,z,Q)=>{let{res:P}=this;P.trailers=G,P.rawTrailers=Q}));let{socket:R}=I.session;this.socket=R,this.connection=R;for(let G of this[A])G();this.emit("socket",this.socket)};if(this[m])try{O(this[m].request(this[E]))}catch(I){this.emit("error",I)}else{this.reusedSocket=!0;try{O(await this.agent.request(this[v],this[_],this[E]))}catch(I){this.emit("error",I)}}}getHeader(k){if(typeof k!="string")throw new l("name","string",k);return this[E][k.toLowerCase()]}get headersSent(){return this[S]}removeHeader(k){if(typeof k!="string")throw new l("name","string",k);if(this.headersSent)throw new o("remove");delete this[E][k.toLowerCase()]}setHeader(k,O){if(this.headersSent)throw new o("set");if(typeof k!="string"||!x.test(k)&&!p(k))throw new d("Header name",k);if(typeof O>"u")throw new f(O,k);if(L.test(O))throw new y("header content",k);this[E][k.toLowerCase()]=O}setNoDelay(){}setSocketKeepAlive(){}setTimeout(k,O){let I=()=>this._request.setTimeout(k,O);return this._request?I():this[A].push(I),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(k){}};a.exports=T}),il=j((e,a)=>{"use strict";B();var n=Z("tls");a.exports=(s={},i=n.connect)=>new Promise((h,u)=>{let r=!1,t,p=async()=>{await c,t.off("timeout",l),t.off("error",u),s.resolveSocket?(h({alpnProtocol:t.alpnProtocol,socket:t,timeout:r}),r&&(await Promise.resolve(),t.emit("timeout"))):(t.destroy(),h({alpnProtocol:t.alpnProtocol,timeout:r}))},l=async()=>{r=!0,p()},c=(async()=>{try{t=await i(s,p),t.on("error",u),t.once("timeout",l)}catch(o){u(o)}})()})}),sl=j((e,a)=>{"use strict";B();var n=Z("net");a.exports=s=>{let i=s.host,h=s.headers&&s.headers.host;return h&&(h.startsWith("[")?h.indexOf("]")===-1?i=h:i=h.slice(1,-1):i=h.split(":",1)[0]),n.isIP(i)?"":i}}),ol=j((e,a)=>{"use strict";B();var n=Z("http"),s=Z("https"),i=il(),h=Fi(),u=Bi(),r=sl(),t=Ti(),p=new h({maxSize:100}),l=new Map,c=(d,f,y)=>{f._httpMessage={shouldKeepAlive:!0};let b=()=>{d.emit("free",f,y)};f.on("free",b);let w=()=>{d.removeSocket(f,y)};f.on("close",w);let g=()=>{d.removeSocket(f,y),f.off("close",w),f.off("free",b),f.off("agentRemove",g)};f.on("agentRemove",g),d.emit("free",f,y)},o=async d=>{let f=`${d.host}:${d.port}:${d.ALPNProtocols.sort()}`;if(!p.has(f)){if(l.has(f))return(await l.get(f)).alpnProtocol;let{path:y,agent:b}=d;d.path=d.socketPath;let w=i(d);l.set(f,w);try{let{socket:g,alpnProtocol:D}=await w;if(p.set(f,D),d.path=y,D==="h2")g.destroy();else{let{globalAgent:E}=s,v=s.Agent.prototype.createConnection;b?b.createConnection===v?c(b,g,d):g.destroy():E.createConnection===v?c(E,g,d):g.destroy()}return l.delete(f),D}catch(g){throw l.delete(f),g}}return p.get(f)};a.exports=async(d,f,y)=>{if((typeof d=="string"||d instanceof URL)&&(d=t(new URL(d))),typeof f=="function"&&(y=f,f=void 0),f={ALPNProtocols:["h2","http/1.1"],...d,...f,resolveSocket:!0},!Array.isArray(f.ALPNProtocols)||f.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");f.protocol=f.protocol||"https:";let b=f.protocol==="https:";f.host=f.hostname||f.host||"localhost",f.session=f.tlsSession,f.servername=f.servername||r(f),f.port=f.port||(b?443:80),f._defaultAgent=b?s.globalAgent:n.globalAgent;let w=f.agent;if(w){if(w.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");f.agent=w[b?"https":"http"]}return b&&await o(f)==="h2"?(w&&(f.agent=w.http2),new u(f,y)):n.request(f,y)},a.exports.protocolCache=p}),ul=j((e,a)=>{"use strict";B();var n=Z("http2"),s=Oi(),i=Bi(),h=Ri(),u=ol(),r=(p,l,c)=>new i(p,l,c),t=(p,l,c)=>{let o=new i(p,l,c);return o.end(),o};a.exports={...n,ClientRequest:i,IncomingMessage:h,...s,request:r,get:t,auto:u}}),Pi=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=ft();e.default=n=>a.default.nodeStream(n)&&a.default.function_(n.getBoundary)}),al=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=Z("fs"),n=Z("util"),s=ft(),i=Pi(),h=n.promisify(a.stat);e.default=async(u,r)=>{if(r&&"content-length"in r)return Number(r["content-length"]);if(!u)return 0;if(s.default.string(u))return Buffer.byteLength(u);if(s.default.buffer(u))return u.length;if(i.default(u))return n.promisify(u.getLength.bind(u))();if(u instanceof a.ReadStream){let{size:t}=await h(u.path);return t===0?void 0:t}}}),Li=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});function a(n,s,i){let h={};for(let u of i)h[u]=(...r)=>{s.emit(u,...r)},n.on(u,h[u]);return()=>{for(let u of i)n.off(u,h[u])}}e.default=a}),ll=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=()=>{let a=[];return{once(n,s,i){n.once(s,i),a.push({origin:n,event:s,fn:i})},unhandleAll(){for(let n of a){let{origin:s,event:i,fn:h}=n;s.removeListener(i,h)}a.length=0}}}}),cl=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.TimeoutError=void 0;var a=Z("net"),n=ll(),s=Symbol("reentry"),i=()=>{},h=class extends Error{constructor(u,r){super(`Timeout awaiting '${r}' for ${u}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};e.TimeoutError=h,e.default=(u,r,t)=>{if(s in u)return i;u[s]=!0;let p=[],{once:l,unhandleAll:c}=n.default(),o=(w,g,D)=>{var E;let v=setTimeout(g,w,w,D);(E=v.unref)===null||E===void 0||E.call(v);let m=()=>{clearTimeout(v)};return p.push(m),m},{host:d,hostname:f}=t,y=(w,g)=>{u.destroy(new h(w,g))},b=()=>{for(let w of p)w();c()};if(u.once("error",w=>{if(b(),u.listenerCount("error")===0)throw w}),u.once("close",b),l(u,"response",w=>{l(w,"end",b)}),typeof r.request<"u"&&o(r.request,y,"request"),typeof r.socket<"u"){let w=()=>{y(r.socket,"socket")};u.setTimeout(r.socket,w),p.push(()=>{u.removeListener("timeout",w)})}return l(u,"socket",w=>{var g;let{socketPath:D}=u;if(w.connecting){let E=!!(D!=null?D:a.isIP((g=f!=null?f:d)!==null&&g!==void 0?g:"")!==0);if(typeof r.lookup<"u"&&!E&&typeof w.address().address>"u"){let v=o(r.lookup,y,"lookup");l(w,"lookup",v)}if(typeof r.connect<"u"){let v=()=>o(r.connect,y,"connect");E?l(w,"connect",v()):l(w,"lookup",m=>{m===null&&l(w,"connect",v())})}typeof r.secureConnect<"u"&&t.protocol==="https:"&&l(w,"connect",()=>{let v=o(r.secureConnect,y,"secureConnect");l(w,"secureConnect",v)})}if(typeof r.send<"u"){let E=()=>o(r.send,y,"send");w.connecting?l(w,"connect",()=>{l(u,"upload-complete",E())}):l(u,"upload-complete",E())}}),typeof r.response<"u"&&l(u,"upload-complete",()=>{let w=o(r.response,y,"response");l(u,"response",w)}),b}}),hl=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=ft();e.default=n=>{n=n;let s={protocol:n.protocol,hostname:a.default.string(n.hostname)&&n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,host:n.host,hash:n.hash,search:n.search,pathname:n.pathname,href:n.href,path:`${n.pathname||""}${n.search||""}`};return a.default.string(n.port)&&n.port.length>0&&(s.port=Number(n.port)),(n.username||n.password)&&(s.auth=`${n.username||""}:${n.password||""}`),s}}),pl=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=Z("url"),n=["protocol","host","hostname","port","pathname","search"];e.default=(s,i)=>{var h,u;if(i.path){if(i.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(i.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(i.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(i.search&&i.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!s){if(!i.protocol)throw new TypeError("No URL protocol specified");s=`${i.protocol}//${(u=(h=i.hostname)!==null&&h!==void 0?h:i.host)!==null&&u!==void 0?u:""}`}let r=new a.URL(s);if(i.path){let t=i.path.indexOf("?");t===-1?i.pathname=i.path:(i.pathname=i.path.slice(0,t),i.search=i.path.slice(t+1)),delete i.path}for(let t of n)i[t]&&(r[t]=i[t].toString());return r}}),fl=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(n,s){typeof n=="object"?this.weakMap.set(n,s):this.map.set(n,s)}get(n){return typeof n=="object"?this.weakMap.get(n):this.map.get(n)}has(n){return typeof n=="object"?this.weakMap.has(n):this.map.has(n)}};e.default=a}),Ii=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=async n=>{let s=[],i=0;for await(let h of n)s.push(h),i+=Buffer.byteLength(h);return Buffer.isBuffer(s[0])?Buffer.concat(s,i):Buffer.from(s.join(""))};e.default=a}),dl=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.dnsLookupIpVersionToFamily=e.isDnsLookupIpVersion=void 0;var a={auto:0,ipv4:4,ipv6:6};e.isDnsLookupIpVersion=n=>n in a,e.dnsLookupIpVersionToFamily=n=>{if(e.isDnsLookupIpVersion(n))return a[n];throw new Error("Invalid DNS lookup IP version")}}),ji=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.isResponseOk=void 0,e.isResponseOk=a=>{let{statusCode:n}=a,s=a.request.options.followRedirect?299:399;return n>=200&&n<=s||n===304}}),ml=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=new Set;e.default=n=>{a.has(n)||(a.add(n),process.emitWarning(`Got: ${n}`,{type:"DeprecationWarning"}))}}),yl=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=ft(),n=(s,i)=>{if(a.default.null_(s.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");a.assert.any([a.default.string,a.default.undefined],s.encoding),a.assert.any([a.default.boolean,a.default.undefined],s.resolveBodyOnly),a.assert.any([a.default.boolean,a.default.undefined],s.methodRewriting),a.assert.any([a.default.boolean,a.default.undefined],s.isStream),a.assert.any([a.default.string,a.default.undefined],s.responseType),s.responseType===void 0&&(s.responseType="text");let{retry:h}=s;if(i?s.retry={...i.retry}:s.retry={calculateDelay:u=>u.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},a.default.object(h)?(s.retry={...s.retry,...h},s.retry.methods=[...new Set(s.retry.methods.map(u=>u.toUpperCase()))],s.retry.statusCodes=[...new Set(s.retry.statusCodes)],s.retry.errorCodes=[...new Set(s.retry.errorCodes)]):a.default.number(h)&&(s.retry.limit=h),a.default.undefined(s.retry.maxRetryAfter)&&(s.retry.maxRetryAfter=Math.min(...[s.timeout.request,s.timeout.connect].filter(a.default.number))),a.default.object(s.pagination)){i&&(s.pagination={...i.pagination,...s.pagination});let{pagination:u}=s;if(!a.default.function_(u.transform))throw new Error("`options.pagination.transform` must be implemented");if(!a.default.function_(u.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!a.default.function_(u.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!a.default.function_(u.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return s.responseType==="json"&&s.headers.accept===void 0&&(s.headers.accept="application/json"),s};e.default=n}),gl=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfterStatusCodes=void 0,e.retryAfterStatusCodes=new Set([413,429,503]);var a=({attemptCount:n,retryOptions:s,error:i,retryAfter:h})=>{if(n>s.limit)return 0;let u=s.methods.includes(i.options.method),r=s.errorCodes.includes(i.code),t=i.response&&s.statusCodes.includes(i.response.statusCode);if(!u||!r&&!t)return 0;if(i.response){if(h)return s.maxRetryAfter===void 0||h>s.maxRetryAfter?0:h;if(i.response.statusCode===413)return 0}let p=Math.random()*100;return 2**(n-1)*1e3+p};e.default=a}),dr=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedProtocolError=e.ReadError=e.TimeoutError=e.UploadError=e.CacheError=e.HTTPError=e.MaxRedirectsError=e.RequestError=e.setNonEnumerableProperties=e.knownHookEvents=e.withoutBody=e.kIsNormalizedAlready=void 0;var a=Z("util"),n=Z("stream"),s=Z("fs"),i=Z("url"),h=Z("http"),u=Z("http"),r=Z("https"),t=Na(),p=Ma(),l=Xa(),c=el(),o=ul(),d=Xr(),f=ft(),y=al(),b=Pi(),w=Li(),g=cl(),D=hl(),E=pl(),v=fl(),m=Ii(),_=dl(),S=ji(),A=ml(),x=yl(),L=gl(),T,k=Symbol("request"),O=Symbol("response"),I=Symbol("responseSize"),$=Symbol("downloadedSize"),R=Symbol("bodySize"),G=Symbol("uploadedSize"),z=Symbol("serverResponsesPiped"),Q=Symbol("unproxyEvents"),P=Symbol("isFromCache"),N=Symbol("cancelTimeouts"),F=Symbol("startedReading"),J=Symbol("stopReading"),q=Symbol("triggerRead"),ee=Symbol("body"),M=Symbol("jobs"),K=Symbol("originalResponse"),te=Symbol("retryTimeout");e.kIsNormalizedAlready=Symbol("isNormalizedAlready");var oe=f.default.string(process.versions.brotli);e.withoutBody=new Set(["GET","HEAD"]),e.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function ce(Y){for(let U in Y){let ue=Y[U];if(!f.default.string(ue)&&!f.default.number(ue)&&!f.default.boolean(ue)&&!f.default.null_(ue)&&!f.default.undefined(ue))throw new TypeError(`The \`searchParams\` value '${String(ue)}' must be a string, number, boolean or null`)}}function be(Y){return f.default.object(Y)&&!("statusCode"in Y)}var ye=new v.default,H=async Y=>new Promise((U,ue)=>{let ve=de=>{ue(de)};Y.pending||U(),Y.once("error",ve),Y.once("ready",()=>{Y.off("error",ve),U()})}),V=new Set([300,301,302,303,304,307,308]),C=["context","body","json","form"];e.setNonEnumerableProperties=(Y,U)=>{let ue={};for(let ve of Y)if(ve)for(let de of C)de in ve&&(ue[de]={writable:!0,configurable:!0,enumerable:!1,value:ve[de]});Object.defineProperties(U,ue)};var W=class extends Error{constructor(Y,U,ue){var ve,de;if(super(Y),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(ve=U.code)!==null&&ve!==void 0?ve:"ERR_GOT_REQUEST_ERROR",ue instanceof ke?(Object.defineProperty(this,"request",{enumerable:!1,value:ue}),Object.defineProperty(this,"response",{enumerable:!1,value:ue[O]}),Object.defineProperty(this,"options",{enumerable:!1,value:ue.options})):Object.defineProperty(this,"options",{enumerable:!1,value:ue}),this.timings=(de=this.request)===null||de===void 0?void 0:de.timings,f.default.string(U.stack)&&f.default.string(this.stack)){let ae=this.stack.indexOf(this.message)+this.message.length,me=this.stack.slice(ae).split(`
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
`)}
|
|
20
|
-
`)}`}}};e.RequestError=W;var X=class extends W{constructor(Y){super(`Redirected ${Y.options.maxRedirects} times. Aborting.`,{},Y),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};e.MaxRedirectsError=X;var re=class extends W{constructor(Y){super(`Response code ${Y.statusCode} (${Y.statusMessage})`,{},Y.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};e.HTTPError=re;var pe=class extends W{constructor(Y,U){super(Y.message,Y,U),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};e.CacheError=pe;var ie=class extends W{constructor(Y,U){super(Y.message,Y,U),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};e.UploadError=ie;var le=class extends W{constructor(Y,U,ue){super(Y.message,Y,ue),this.name="TimeoutError",this.event=Y.event,this.timings=U}};e.TimeoutError=le;var ne=class extends W{constructor(Y,U){super(Y.message,Y,U),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};e.ReadError=ne;var fe=class extends W{constructor(Y){super(`Unsupported protocol "${Y.url.protocol}"`,{},Y),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};e.UnsupportedProtocolError=fe;var we=["socket","connect","continue","information","upgrade","timeout"],ke=class extends n.Duplex{constructor(Y,U={},ue){super({autoDestroy:!1,highWaterMark:0}),this[$]=0,this[G]=0,this.requestInitialized=!1,this[z]=new Set,this.redirects=[],this[J]=!1,this[q]=!1,this[M]=[],this.retryCount=0,this._progressCallbacks=[];let ve=()=>this._unlockWrite(),de=()=>this._lockWrite();this.on("pipe",Ae=>{Ae.prependListener("data",ve),Ae.on("data",de),Ae.prependListener("end",ve),Ae.on("end",de)}),this.on("unpipe",Ae=>{Ae.off("data",ve),Ae.off("data",de),Ae.off("end",ve),Ae.off("end",de)}),this.on("pipe",Ae=>{Ae instanceof u.IncomingMessage&&(this.options.headers={...Ae.headers,...this.options.headers})});let{json:ae,body:me,form:_e}=U;if((ae||me||_e)&&this._lockWrite(),e.kIsNormalizedAlready in U)this.options=U;else try{this.options=this.constructor.normalizeArguments(Y,U,ue)}catch(Ae){f.default.nodeStream(U.body)&&U.body.destroy(),this.destroy(Ae);return}(async()=>{var Ae;try{this.options.body instanceof s.ReadStream&&await H(this.options.body);let{url:We}=this.options;if(!We)throw new TypeError("Missing `url` property");if(this.requestUrl=We.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(Ae=this[k])===null||Ae===void 0||Ae.destroy();return}for(let $e of this[M])$e();this[M].length=0,this.requestInitialized=!0}catch(We){if(We instanceof W){this._beforeError(We);return}this.destroyed||this.destroy(We)}})()}static normalizeArguments(Y,U,ue){var ve,de,ae,me,_e;let Ae=U;if(f.default.object(Y)&&!f.default.urlInstance(Y))U={...ue,...Y,...U};else{if(Y&&U&&U.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");U={...ue,...U},Y!==void 0&&(U.url=Y),f.default.urlInstance(U.url)&&(U.url=new i.URL(U.url.toString()))}if(U.cache===!1&&(U.cache=void 0),U.dnsCache===!1&&(U.dnsCache=void 0),f.assert.any([f.default.string,f.default.undefined],U.method),f.assert.any([f.default.object,f.default.undefined],U.headers),f.assert.any([f.default.string,f.default.urlInstance,f.default.undefined],U.prefixUrl),f.assert.any([f.default.object,f.default.undefined],U.cookieJar),f.assert.any([f.default.object,f.default.string,f.default.undefined],U.searchParams),f.assert.any([f.default.object,f.default.string,f.default.undefined],U.cache),f.assert.any([f.default.object,f.default.number,f.default.undefined],U.timeout),f.assert.any([f.default.object,f.default.undefined],U.context),f.assert.any([f.default.object,f.default.undefined],U.hooks),f.assert.any([f.default.boolean,f.default.undefined],U.decompress),f.assert.any([f.default.boolean,f.default.undefined],U.ignoreInvalidCookies),f.assert.any([f.default.boolean,f.default.undefined],U.followRedirect),f.assert.any([f.default.number,f.default.undefined],U.maxRedirects),f.assert.any([f.default.boolean,f.default.undefined],U.throwHttpErrors),f.assert.any([f.default.boolean,f.default.undefined],U.http2),f.assert.any([f.default.boolean,f.default.undefined],U.allowGetBody),f.assert.any([f.default.string,f.default.undefined],U.localAddress),f.assert.any([_.isDnsLookupIpVersion,f.default.undefined],U.dnsLookupIpVersion),f.assert.any([f.default.object,f.default.undefined],U.https),f.assert.any([f.default.boolean,f.default.undefined],U.rejectUnauthorized),U.https&&(f.assert.any([f.default.boolean,f.default.undefined],U.https.rejectUnauthorized),f.assert.any([f.default.function_,f.default.undefined],U.https.checkServerIdentity),f.assert.any([f.default.string,f.default.object,f.default.array,f.default.undefined],U.https.certificateAuthority),f.assert.any([f.default.string,f.default.object,f.default.array,f.default.undefined],U.https.key),f.assert.any([f.default.string,f.default.object,f.default.array,f.default.undefined],U.https.certificate),f.assert.any([f.default.string,f.default.undefined],U.https.passphrase),f.assert.any([f.default.string,f.default.buffer,f.default.array,f.default.undefined],U.https.pfx)),f.assert.any([f.default.object,f.default.undefined],U.cacheOptions),f.default.string(U.method)?U.method=U.method.toUpperCase():U.method="GET",U.headers===(ue==null?void 0:ue.headers)?U.headers={...U.headers}:U.headers=d({...ue==null?void 0:ue.headers,...U.headers}),"slashes"in U)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in U)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in U&&U.searchParams&&U.searchParams!==(ue==null?void 0:ue.searchParams)){let Ee;if(f.default.string(U.searchParams)||U.searchParams instanceof i.URLSearchParams)Ee=new i.URLSearchParams(U.searchParams);else{ce(U.searchParams),Ee=new i.URLSearchParams;for(let Le in U.searchParams){let je=U.searchParams[Le];je===null?Ee.append(Le,""):je!==void 0&&Ee.append(Le,je)}}(ve=ue==null?void 0:ue.searchParams)===null||ve===void 0||ve.forEach((Le,je)=>{Ee.has(je)||Ee.append(je,Le)}),U.searchParams=Ee}if(U.username=(de=U.username)!==null&&de!==void 0?de:"",U.password=(ae=U.password)!==null&&ae!==void 0?ae:"",f.default.undefined(U.prefixUrl)?U.prefixUrl=(me=ue==null?void 0:ue.prefixUrl)!==null&&me!==void 0?me:"":(U.prefixUrl=U.prefixUrl.toString(),U.prefixUrl!==""&&!U.prefixUrl.endsWith("/")&&(U.prefixUrl+="/")),f.default.string(U.url)){if(U.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");U.url=E.default(U.prefixUrl+U.url,U)}else(f.default.undefined(U.url)&&U.prefixUrl!==""||U.protocol)&&(U.url=E.default(U.prefixUrl,U));if(U.url){"port"in U&&delete U.port;let{prefixUrl:Ee}=U;Object.defineProperty(U,"prefixUrl",{set:je=>{let Fe=U.url;if(!Fe.href.startsWith(je))throw new Error(`Cannot change \`prefixUrl\` from ${Ee} to ${je}: ${Fe.href}`);U.url=new i.URL(je+Fe.href.slice(Ee.length)),Ee=je},get:()=>Ee});let{protocol:Le}=U.url;if(Le==="unix:"&&(Le="http:",U.url=new i.URL(`http://unix${U.url.pathname}${U.url.search}`)),U.searchParams&&(U.url.search=U.searchParams.toString()),Le!=="http:"&&Le!=="https:")throw new fe(U);U.username===""?U.username=U.url.username:U.url.username=U.username,U.password===""?U.password=U.url.password:U.url.password=U.password}let{cookieJar:We}=U;if(We){let{setCookie:Ee,getCookieString:Le}=We;f.assert.function_(Ee),f.assert.function_(Le),Ee.length===4&&Le.length===0&&(Ee=a.promisify(Ee.bind(U.cookieJar)),Le=a.promisify(Le.bind(U.cookieJar)),U.cookieJar={setCookie:Ee,getCookieString:Le})}let{cache:$e}=U;if($e&&(ye.has($e)||ye.set($e,new l((Ee,Le)=>{let je=Ee[k](Ee,Le);return f.default.promise(je)&&(je.once=(Fe,Oe)=>{if(Fe==="error")je.catch(Oe);else if(Fe==="abort")(async()=>{try{(await je).once("abort",Oe)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${Fe}`);return je}),je},$e))),U.cacheOptions={...U.cacheOptions},U.dnsCache===!0)T||(T=new p.default),U.dnsCache=T;else if(!f.default.undefined(U.dnsCache)&&!U.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${f.default(U.dnsCache)}`);f.default.number(U.timeout)?U.timeout={request:U.timeout}:ue&&U.timeout!==ue.timeout?U.timeout={...ue.timeout,...U.timeout}:U.timeout={...U.timeout},U.context||(U.context={});let ar=U.hooks===(ue==null?void 0:ue.hooks);U.hooks={...U.hooks};for(let Ee of e.knownHookEvents)if(Ee in U.hooks)if(f.default.array(U.hooks[Ee]))U.hooks[Ee]=[...U.hooks[Ee]];else throw new TypeError(`Parameter \`${Ee}\` must be an Array, got ${f.default(U.hooks[Ee])}`);else U.hooks[Ee]=[];if(ue&&!ar)for(let Ee of e.knownHookEvents)ue.hooks[Ee].length>0&&(U.hooks[Ee]=[...ue.hooks[Ee],...U.hooks[Ee]]);if("family"in U&&A.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),ue!=null&&ue.https&&(U.https={...ue.https,...U.https}),"rejectUnauthorized"in U&&A.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in U&&A.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in U&&A.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in U&&A.default('"options.key" was never documented, please use "options.https.key"'),"cert"in U&&A.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in U&&A.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in U&&A.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in U)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(U.agent){for(let Ee in U.agent)if(Ee!=="http"&&Ee!=="https"&&Ee!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${Ee}\``)}return U.maxRedirects=(_e=U.maxRedirects)!==null&&_e!==void 0?_e:0,e.setNonEnumerableProperties([ue,Ae],U),x.default(U,ue)}_lockWrite(){let Y=()=>{throw new TypeError("The payload has been already provided")};this.write=Y,this.end=Y}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:Y}=this,{headers:U}=Y,ue=!f.default.undefined(Y.form),ve=!f.default.undefined(Y.json),de=!f.default.undefined(Y.body),ae=ue||ve||de,me=e.withoutBody.has(Y.method)&&!(Y.method==="GET"&&Y.allowGetBody);if(this._cannotHaveBody=me,ae){if(me)throw new TypeError(`The \`${Y.method}\` method cannot be used with a body`);if([de,ue,ve].filter(_e=>_e).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(de&&!(Y.body instanceof n.Readable)&&!f.default.string(Y.body)&&!f.default.buffer(Y.body)&&!b.default(Y.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(ue&&!f.default.object(Y.form))throw new TypeError("The `form` option must be an Object");{let _e=!f.default.string(U["content-type"]);de?(b.default(Y.body)&&_e&&(U["content-type"]=`multipart/form-data; boundary=${Y.body.getBoundary()}`),this[ee]=Y.body):ue?(_e&&(U["content-type"]="application/x-www-form-urlencoded"),this[ee]=new i.URLSearchParams(Y.form).toString()):(_e&&(U["content-type"]="application/json"),this[ee]=Y.stringifyJson(Y.json));let Ae=await y.default(this[ee],Y.headers);f.default.undefined(U["content-length"])&&f.default.undefined(U["transfer-encoding"])&&!me&&!f.default.undefined(Ae)&&(U["content-length"]=String(Ae))}}else me?this._lockWrite():this._unlockWrite();this[R]=Number(U["content-length"])||void 0}async _onResponseBase(Y){let{options:U}=this,{url:ue}=U;this[K]=Y,U.decompress&&(Y=c(Y));let ve=Y.statusCode,de=Y;de.statusMessage=de.statusMessage?de.statusMessage:h.STATUS_CODES[ve],de.url=U.url.toString(),de.requestUrl=this.requestUrl,de.redirectUrls=this.redirects,de.request=this,de.isFromCache=Y.fromCache||!1,de.ip=this.ip,de.retryCount=this.retryCount,this[P]=de.isFromCache,this[I]=Number(Y.headers["content-length"])||void 0,this[O]=Y,Y.once("end",()=>{this[I]=this[$],this.emit("downloadProgress",this.downloadProgress)}),Y.once("error",me=>{Y.destroy(),this._beforeError(new ne(me,this))}),Y.once("aborted",()=>{this._beforeError(new ne({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let ae=Y.headers["set-cookie"];if(f.default.object(U.cookieJar)&&ae){let me=ae.map(async _e=>U.cookieJar.setCookie(_e,ue.toString()));U.ignoreInvalidCookies&&(me=me.map(async _e=>_e.catch(()=>{})));try{await Promise.all(me)}catch(_e){this._beforeError(_e);return}}if(U.followRedirect&&Y.headers.location&&V.has(ve)){if(Y.resume(),this[k]&&(this[N](),delete this[k],this[Q]()),(ve===303&&U.method!=="GET"&&U.method!=="HEAD"||!U.methodRewriting)&&(U.method="GET","body"in U&&delete U.body,"json"in U&&delete U.json,"form"in U&&delete U.form,this[ee]=void 0,delete U.headers["content-length"]),this.redirects.length>=U.maxRedirects){this._beforeError(new X(this));return}try{let me=function($e){return $e.protocol==="unix:"||$e.hostname==="unix"},_e=Buffer.from(Y.headers.location,"binary").toString(),Ae=new i.URL(_e,ue),We=Ae.toString();if(decodeURI(We),!me(ue)&&me(Ae)){this._beforeError(new W("Cannot redirect to UNIX socket",{},this));return}Ae.hostname!==ue.hostname||Ae.port!==ue.port?("host"in U.headers&&delete U.headers.host,"cookie"in U.headers&&delete U.headers.cookie,"authorization"in U.headers&&delete U.headers.authorization,(U.username||U.password)&&(U.username="",U.password="")):(Ae.username=U.username,Ae.password=U.password),this.redirects.push(We),U.url=Ae;for(let $e of U.hooks.beforeRedirect)await $e(U,de);this.emit("redirect",de,U),await this._makeRequest()}catch(me){this._beforeError(me);return}return}if(U.isStream&&U.throwHttpErrors&&!S.isResponseOk(de)){this._beforeError(new re(de));return}Y.on("readable",()=>{this[q]&&this._read()}),this.on("resume",()=>{Y.resume()}),this.on("pause",()=>{Y.pause()}),Y.once("end",()=>{this.push(null)}),this.emit("response",Y);for(let me of this[z])if(!me.headersSent){for(let _e in Y.headers){let Ae=U.decompress?_e!=="content-encoding":!0,We=Y.headers[_e];Ae&&me.setHeader(_e,We)}me.statusCode=ve}}async _onResponse(Y){try{await this._onResponseBase(Y)}catch(U){this._beforeError(U)}}_onRequest(Y){let{options:U}=this,{timeout:ue,url:ve}=U;t.default(Y),this[N]=g.default(Y,ue,ve);let de=U.cache?"cacheableResponse":"response";Y.once(de,_e=>{this._onResponse(_e)}),Y.once("error",_e=>{var Ae;Y.destroy(),(Ae=Y.res)===null||Ae===void 0||Ae.removeAllListeners("end"),_e=_e instanceof g.TimeoutError?new le(_e,this.timings,this):new W(_e.message,_e,this),this._beforeError(_e)}),this[Q]=w.default(Y,this,we),this[k]=Y,this.emit("uploadProgress",this.uploadProgress);let ae=this[ee],me=this.redirects.length===0?this:Y;f.default.nodeStream(ae)?(ae.pipe(me),ae.once("error",_e=>{this._beforeError(new ie(_e,this))})):(this._unlockWrite(),f.default.undefined(ae)?(this._cannotHaveBody||this._noPipe)&&(me.end(),this._lockWrite()):(this._writeRequest(ae,void 0,()=>{}),me.end(),this._lockWrite())),this.emit("request",Y)}async _createCacheableRequest(Y,U){return new Promise((ue,ve)=>{Object.assign(U,D.default(Y)),delete U.url;let de,ae=ye.get(U.cache)(U,async me=>{me._readableState.autoDestroy=!1,de&&(await de).emit("cacheableResponse",me),ue(me)});U.url=Y,ae.once("error",ve),ae.once("request",async me=>{de=me,ue(de)})})}async _makeRequest(){var Y,U,ue,ve,de;let{options:ae}=this,{headers:me}=ae;for(let Oe in me)if(f.default.undefined(me[Oe]))delete me[Oe];else if(f.default.null_(me[Oe]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${Oe}\` header`);if(ae.decompress&&f.default.undefined(me["accept-encoding"])&&(me["accept-encoding"]=oe?"gzip, deflate, br":"gzip, deflate"),ae.cookieJar){let Oe=await ae.cookieJar.getCookieString(ae.url.toString());f.default.nonEmptyString(Oe)&&(ae.headers.cookie=Oe)}for(let Oe of ae.hooks.beforeRequest){let lr=await Oe(ae);if(!f.default.undefined(lr)){ae.request=()=>lr;break}}ae.body&&this[ee]!==ae.body&&(this[ee]=ae.body);let{agent:_e,request:Ae,timeout:We,url:$e}=ae;if(ae.dnsCache&&!("lookup"in ae)&&(ae.lookup=ae.dnsCache.lookup),$e.hostname==="unix"){let Oe=/(?<socketPath>.+?):(?<path>.+)/.exec(`${$e.pathname}${$e.search}`);if(Oe!=null&&Oe.groups){let{socketPath:lr,path:Jo}=Oe.groups;Object.assign(ae,{socketPath:lr,path:Jo,host:""})}}let ar=$e.protocol==="https:",Ee;ae.http2?Ee=o.auto:Ee=ar?r.request:h.request;let Le=(Y=ae.request)!==null&&Y!==void 0?Y:Ee,je=ae.cache?this._createCacheableRequest:Le;_e&&!ae.http2&&(ae.agent=_e[ar?"https":"http"]),ae[k]=Le,delete ae.request,delete ae.timeout;let Fe=ae;if(Fe.shared=(U=ae.cacheOptions)===null||U===void 0?void 0:U.shared,Fe.cacheHeuristic=(ue=ae.cacheOptions)===null||ue===void 0?void 0:ue.cacheHeuristic,Fe.immutableMinTimeToLive=(ve=ae.cacheOptions)===null||ve===void 0?void 0:ve.immutableMinTimeToLive,Fe.ignoreCargoCult=(de=ae.cacheOptions)===null||de===void 0?void 0:de.ignoreCargoCult,ae.dnsLookupIpVersion!==void 0)try{Fe.family=_.dnsLookupIpVersionToFamily(ae.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}ae.https&&("rejectUnauthorized"in ae.https&&(Fe.rejectUnauthorized=ae.https.rejectUnauthorized),ae.https.checkServerIdentity&&(Fe.checkServerIdentity=ae.https.checkServerIdentity),ae.https.certificateAuthority&&(Fe.ca=ae.https.certificateAuthority),ae.https.certificate&&(Fe.cert=ae.https.certificate),ae.https.key&&(Fe.key=ae.https.key),ae.https.passphrase&&(Fe.passphrase=ae.https.passphrase),ae.https.pfx&&(Fe.pfx=ae.https.pfx));try{let Oe=await je($e,Fe);f.default.undefined(Oe)&&(Oe=Ee($e,Fe)),ae.request=Ae,ae.timeout=We,ae.agent=_e,ae.https&&("rejectUnauthorized"in ae.https&&delete Fe.rejectUnauthorized,ae.https.checkServerIdentity&&delete Fe.checkServerIdentity,ae.https.certificateAuthority&&delete Fe.ca,ae.https.certificate&&delete Fe.cert,ae.https.key&&delete Fe.key,ae.https.passphrase&&delete Fe.passphrase,ae.https.pfx&&delete Fe.pfx),be(Oe)?this._onRequest(Oe):this.writable?(this.once("finish",()=>{this._onResponse(Oe)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(Oe)}catch(Oe){throw Oe instanceof l.CacheError?new pe(Oe,this):new W(Oe.message,Oe,this)}}async _error(Y){try{for(let U of this.options.hooks.beforeError)Y=await U(Y)}catch(U){Y=new W(U.message,U,this)}this.destroy(Y)}_beforeError(Y){if(this[J])return;let{options:U}=this,ue=this.retryCount+1;this[J]=!0,Y instanceof W||(Y=new W(Y.message,Y,this));let ve=Y,{response:de}=ve;(async()=>{if(de&&!de.body){de.setEncoding(this._readableState.encoding);try{de.rawBody=await m.default(de),de.body=de.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let ae;try{let me;de&&"retry-after"in de.headers&&(me=Number(de.headers["retry-after"]),Number.isNaN(me)?(me=Date.parse(de.headers["retry-after"])-Date.now(),me<=0&&(me=1)):me*=1e3),ae=await U.retry.calculateDelay({attemptCount:ue,retryOptions:U.retry,error:ve,retryAfter:me,computedValue:L.default({attemptCount:ue,retryOptions:U.retry,error:ve,retryAfter:me,computedValue:0})})}catch(me){this._error(new W(me.message,me,this));return}if(ae){let me=async()=>{try{for(let _e of this.options.hooks.beforeRetry)await _e(this.options,ve,ue)}catch(_e){this._error(new W(_e.message,Y,this));return}this.destroyed||(this.destroy(),this.emit("retry",ue,Y))};this[te]=setTimeout(me,ae);return}}this._error(ve)})()}_read(){this[q]=!0;let Y=this[O];if(Y&&!this[J]){Y.readableLength&&(this[q]=!1);let U;for(;(U=Y.read())!==null;){this[$]+=U.length,this[F]=!0;let ue=this.downloadProgress;ue.percent<1&&this.emit("downloadProgress",ue),this.push(U)}}}_write(Y,U,ue){let ve=()=>{this._writeRequest(Y,U,ue)};this.requestInitialized?ve():this[M].push(ve)}_writeRequest(Y,U,ue){this[k].destroyed||(this._progressCallbacks.push(()=>{this[G]+=Buffer.byteLength(Y,U);let ve=this.uploadProgress;ve.percent<1&&this.emit("uploadProgress",ve)}),this[k].write(Y,U,ve=>{!ve&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),ue(ve)}))}_final(Y){let U=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(k in this)){Y();return}if(this[k].destroyed){Y();return}this[k].end(ue=>{ue||(this[R]=this[G],this.emit("uploadProgress",this.uploadProgress),this[k].emit("upload-complete")),Y(ue)})};this.requestInitialized?U():this[M].push(U)}_destroy(Y,U){var ue;this[J]=!0,clearTimeout(this[te]),k in this&&(this[N](),!((ue=this[O])===null||ue===void 0)&&ue.complete||this[k].destroy()),Y!==null&&!f.default.undefined(Y)&&!(Y instanceof W)&&(Y=new W(Y.message,Y,this)),U(Y)}get _isAboutToError(){return this[J]}get ip(){var Y;return(Y=this.socket)===null||Y===void 0?void 0:Y.remoteAddress}get aborted(){var Y,U,ue;return((U=(Y=this[k])===null||Y===void 0?void 0:Y.destroyed)!==null&&U!==void 0?U:this.destroyed)&&!(!((ue=this[K])===null||ue===void 0)&&ue.complete)}get socket(){var Y,U;return(U=(Y=this[k])===null||Y===void 0?void 0:Y.socket)!==null&&U!==void 0?U:void 0}get downloadProgress(){let Y;return this[I]?Y=this[$]/this[I]:this[I]===this[$]?Y=1:Y=0,{percent:Y,transferred:this[$],total:this[I]}}get uploadProgress(){let Y;return this[R]?Y=this[G]/this[R]:this[R]===this[G]?Y=1:Y=0,{percent:Y,transferred:this[G],total:this[R]}}get timings(){var Y;return(Y=this[k])===null||Y===void 0?void 0:Y.timings}get isFromCache(){return this[P]}pipe(Y,U){if(this[F])throw new Error("Failed to pipe. The response has been emitted already.");return Y instanceof u.ServerResponse&&this[z].add(Y),super.pipe(Y,U)}unpipe(Y){return Y instanceof u.ServerResponse&&this[z].delete(Y),super.unpipe(Y),this}};e.default=ke}),mr=j(e=>{"use strict";B();var a=e&&e.__createBinding||(Object.create?function(u,r,t,p){p===void 0&&(p=t),Object.defineProperty(u,p,{enumerable:!0,get:function(){return r[t]}})}:function(u,r,t,p){p===void 0&&(p=t),u[p]=r[t]}),n=e&&e.__exportStar||function(u,r){for(var t in u)t!=="default"&&!Object.prototype.hasOwnProperty.call(r,t)&&a(r,u,t)};Object.defineProperty(e,"__esModule",{value:!0}),e.CancelError=e.ParseError=void 0;var s=dr(),i=class extends s.RequestError{constructor(u,r){let{options:t}=r.request;super(`${u.message} in "${t.url.toString()}"`,u,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};e.ParseError=i;var h=class extends s.RequestError{constructor(u){super("Promise was canceled",{},u),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};e.CancelError=h,n(dr(),e)}),bl=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=mr(),n=(s,i,h,u)=>{let{rawBody:r}=s;try{if(i==="text")return r.toString(u);if(i==="json")return r.length===0?"":h(r.toString());if(i==="buffer")return r;throw new a.ParseError({message:`Unknown body type '${i}'`,name:"Error"},s)}catch(t){throw new a.ParseError(t,s)}};e.default=n}),Ni=j(e=>{"use strict";B();var a=e&&e.__createBinding||(Object.create?function(f,y,b,w){w===void 0&&(w=b),Object.defineProperty(f,w,{enumerable:!0,get:function(){return y[b]}})}:function(f,y,b,w){w===void 0&&(w=b),f[w]=y[b]}),n=e&&e.__exportStar||function(f,y){for(var b in f)b!=="default"&&!Object.prototype.hasOwnProperty.call(y,b)&&a(y,f,b)};Object.defineProperty(e,"__esModule",{value:!0});var s=Z("events"),i=ft(),h=Ia(),u=mr(),r=bl(),t=dr(),p=Li(),l=Ii(),c=ji(),o=["request","response","redirect","uploadProgress","downloadProgress"];function d(f){let y,b,w=new s.EventEmitter,g=new h((E,v,m)=>{let _=S=>{let A=new t.default(void 0,f);A.retryCount=S,A._noPipe=!0,m(()=>A.destroy()),m.shouldReject=!1,m(()=>v(new u.CancelError(A))),y=A,A.once("response",async T=>{var k;if(T.retryCount=S,T.request.aborted)return;let O;try{O=await l.default(A),T.rawBody=O}catch{return}if(A._isAboutToError)return;let I=((k=T.headers["content-encoding"])!==null&&k!==void 0?k:"").toLowerCase(),$=["gzip","deflate","br"].includes(I),{options:R}=A;if($&&!R.decompress)T.body=O;else try{T.body=r.default(T,R.responseType,R.parseJson,R.encoding)}catch(G){if(T.body=O.toString(),c.isResponseOk(T)){A._beforeError(G);return}}try{for(let[G,z]of R.hooks.afterResponse.entries())T=await z(T,async Q=>{let P=t.default.normalizeArguments(void 0,{...Q,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},R);P.hooks.afterResponse=P.hooks.afterResponse.slice(0,G);for(let F of P.hooks.beforeRetry)await F(P);let N=d(P);return m(()=>{N.catch(()=>{}),N.cancel()}),N})}catch(G){A._beforeError(new u.RequestError(G.message,G,A));return}if(b=T,!c.isResponseOk(T)){A._beforeError(new u.HTTPError(T));return}A.destroy(),E(A.options.resolveBodyOnly?T.body:T)});let x=T=>{if(g.isCanceled)return;let{options:k}=A;if(T instanceof u.HTTPError&&!k.throwHttpErrors){let{response:O}=T;E(A.options.resolveBodyOnly?O.body:O);return}v(T)};A.once("error",x);let L=A.options.body;A.once("retry",(T,k)=>{var O,I;if(L===((O=k.request)===null||O===void 0?void 0:O.options.body)&&i.default.nodeStream((I=k.request)===null||I===void 0?void 0:I.options.body)){x(k);return}_(T)}),p.default(A,w,o)};_(0)});g.on=(E,v)=>(w.on(E,v),g);let D=E=>{let v=(async()=>{await g;let{options:m}=b.request;return r.default(b,E,m.parseJson,m.encoding)})();return Object.defineProperties(v,Object.getOwnPropertyDescriptors(g)),v};return g.json=()=>{let{headers:E}=y.options;return!y.writableFinished&&E.accept===void 0&&(E.accept="application/json"),D("json")},g.buffer=()=>D("buffer"),g.text=()=>D("text"),g}e.default=d,n(mr(),e)}),vl=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=mr();function n(s,...i){let h=(async()=>{if(s instanceof a.RequestError)try{for(let r of i)if(r)for(let t of r)s=await t(s)}catch(r){s=r}throw s})(),u=()=>h;return h.json=u,h.text=u,h.buffer=u,h.on=u,h}e.default=n}),wl=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=ft();function n(s){for(let i of Object.values(s))(a.default.plainObject(i)||a.default.array(i))&&n(i);return Object.freeze(s)}e.default=n}),_l=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0})}),di=j(e=>{"use strict";B();var a=e&&e.__createBinding||(Object.create?function(w,g,D,E){E===void 0&&(E=D),Object.defineProperty(w,E,{enumerable:!0,get:function(){return g[D]}})}:function(w,g,D,E){E===void 0&&(E=D),w[E]=g[D]}),n=e&&e.__exportStar||function(w,g){for(var D in w)D!=="default"&&!Object.prototype.hasOwnProperty.call(g,D)&&a(g,w,D)};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHandler=void 0;var s=ft(),i=Ni(),h=vl(),u=dr(),r=wl(),t={RequestError:i.RequestError,CacheError:i.CacheError,ReadError:i.ReadError,HTTPError:i.HTTPError,MaxRedirectsError:i.MaxRedirectsError,TimeoutError:i.TimeoutError,ParseError:i.ParseError,CancelError:i.CancelError,UnsupportedProtocolError:i.UnsupportedProtocolError,UploadError:i.UploadError},p=async w=>new Promise(g=>{setTimeout(g,w)}),{normalizeArguments:l}=u.default,c=(...w)=>{let g;for(let D of w)g=l(void 0,D,g);return g},o=w=>w.isStream?new u.default(void 0,w):i.default(w),d=w=>"defaults"in w&&"options"in w.defaults,f=["get","post","put","patch","head","delete"];e.defaultHandler=(w,g)=>g(w);var y=(w,g)=>{if(w)for(let D of w)D(g)},b=w=>{w._rawHandlers=w.handlers,w.handlers=w.handlers.map(E=>(v,m)=>{let _,S=E(v,A=>(_=m(A),_));if(S!==_&&!v.isStream&&_){let A=S,{then:x,catch:L,finally:T}=A;Object.setPrototypeOf(A,Object.getPrototypeOf(_)),Object.defineProperties(A,Object.getOwnPropertyDescriptors(_)),A.then=x,A.catch=L,A.finally=T}return S});let g=(E,v={},m)=>{var _,S;let A=0,x=L=>w.handlers[A++](L,A===w.handlers.length?o:x);if(s.default.plainObject(E)){let L={...E,...v};u.setNonEnumerableProperties([E,v],L),v=L,E=void 0}try{let L;try{y(w.options.hooks.init,v),y((_=v.hooks)===null||_===void 0?void 0:_.init,v)}catch(k){L=k}let T=l(E,v,m!=null?m:w.options);if(T[u.kIsNormalizedAlready]=!0,L)throw new i.RequestError(L.message,L,T);return x(T)}catch(L){if(v.isStream)throw L;return h.default(L,w.options.hooks.beforeError,(S=v.hooks)===null||S===void 0?void 0:S.beforeError)}};g.extend=(...E)=>{let v=[w.options],m=[...w._rawHandlers],_;for(let S of E)d(S)?(v.push(S.defaults.options),m.push(...S.defaults._rawHandlers),_=S.defaults.mutableDefaults):(v.push(S),"handlers"in S&&m.push(...S.handlers),_=S.mutableDefaults);return m=m.filter(S=>S!==e.defaultHandler),m.length===0&&m.push(e.defaultHandler),b({options:c(...v),handlers:m,mutableDefaults:!!_})};let D=async function*(E,v){let m=l(E,v,w.options);m.resolveBodyOnly=!1;let _=m.pagination;if(!s.default.object(_))throw new TypeError("`options.pagination` must be implemented");let S=[],{countLimit:A}=_,x=0;for(;x<_.requestLimit;){x!==0&&await p(_.backoff);let L=await g(void 0,void 0,m),T=await _.transform(L),k=[];for(let I of T)if(_.filter(I,S,k)&&(!_.shouldContinue(I,S,k)||(yield I,_.stackAllItems&&S.push(I),k.push(I),--A<=0)))return;let O=_.paginate(L,S,k);if(O===!1)return;O===L.request.options?m=L.request.options:O!==void 0&&(m=l(void 0,O,m)),x++}};g.paginate=D,g.paginate.all=async(E,v)=>{let m=[];for await(let _ of D(E,v))m.push(_);return m},g.paginate.each=D,g.stream=(E,v)=>g(E,{...v,isStream:!0});for(let E of f)g[E]=(v,m)=>g(v,{...m,method:E}),g.stream[E]=(v,m)=>g(v,{...m,method:E,isStream:!0});return Object.assign(g,t),Object.defineProperty(g,"defaults",{value:w.mutableDefaults?w:r.default(w),writable:w.mutableDefaults,configurable:w.mutableDefaults,enumerable:!0}),g.mergeOptions=c,g};e.default=b,n(_l(),e)}),El=j((e,a)=>{"use strict";B();var n=e&&e.__createBinding||(Object.create?function(t,p,l,c){c===void 0&&(c=l),Object.defineProperty(t,c,{enumerable:!0,get:function(){return p[l]}})}:function(t,p,l,c){c===void 0&&(c=l),t[c]=p[l]}),s=e&&e.__exportStar||function(t,p){for(var l in t)l!=="default"&&!Object.prototype.hasOwnProperty.call(p,l)&&n(p,t,l)};Object.defineProperty(e,"__esModule",{value:!0});var i=Z("url"),h=di(),u={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:t=>t.request.options.responseType==="json"?t.body:JSON.parse(t.body),paginate:t=>{if(!Reflect.has(t.headers,"link"))return!1;let p=t.headers.link.split(","),l;for(let c of p){let o=c.split(";");if(o[1].includes("next")){l=o[0].trimStart().trim(),l=l.slice(1,-1);break}}return l?{url:new i.URL(l)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:t=>JSON.parse(t),stringifyJson:t=>JSON.stringify(t),cacheOptions:{}},handlers:[h.defaultHandler],mutableDefaults:!1},r=h.default(u);e.default=r,a.exports=r,a.exports.default=r,a.exports.__esModule=!0,s(di(),e),s(Ni(),e)});B();var Mi=Re(La()),Qr=Re(El()),Dl=(0,Hi.promisify)($i.Stream.pipeline);async function yr(e){try{return(await Qr.default.head(e)).statusCode===200}catch{return!1}}async function en(e,a){let[,n,s,i,h,...u]=e.pathname.split("/"),r=a?a.replace(/^\//,""):u.join("/");if(i===void 0||i===""&&h===void 0)try{let p=await(0,Qr.default)(`https://api.github.com/repos/${n}/${s}`),l=JSON.parse(p.body);return{username:n,name:s,branch:l.default_branch,filePath:r}}catch{return}let t=a?`${h}/${u.join("/")}`.replace(new RegExp(`/${r}|/$`),""):h;if(n&&s&&t&&i==="tree")return{username:n,name:s,branch:t,filePath:r}}function tn({username:e,name:a,branch:n,filePath:s}){let i=`https://api.github.com/repos/${e}/${a}/contents`,h=`${s?`/${s}`:""}/package.json`;return yr(`${i+h}?ref=${n}`)}function rn(e){try{let a=new URL(e);return yr(a.href)}catch{return yr(`https://api.github.com/repos/vercel/turbo/contents/examples/${encodeURIComponent(e)}`)}}async function qi(e,a){let n=(0,Ui.join)((0,Gi.tmpdir)(),`${a}.temp-${Date.now()}`);return await Dl(Qr.default.stream(e),(0,Ut.createWriteStream)(n)),n}async function nn(e,{username:a,name:n,branch:s,filePath:i}){let h=await qi(`https://codeload.github.com/${a}/${n}/tar.gz/${s}`,"turbo-ct-example");await(0,Mi.x)({file:h,cwd:e,strip:i?i.split("/").length+1:1,filter:u=>u.startsWith(`${n}-${s.replace(/\//g,"-")}${i?`/${i}/`:"/"}`)}),await Ut.promises.unlink(h)}async function sn(e,a){let n=await qi("https://codeload.github.com/vercel/turbo/tar.gz/main","turbo-ct-example");await(0,Mi.x)({file:n,cwd:e,strip:2+a.split("/").length,filter:s=>s.includes(`turbo-main/examples/${a}/`)}),await Ut.promises.unlink(n)}var Sl=j((e,a)=>{"use strict";B(),a.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]}}),Wi=j((e,a)=>{B();var n=Sl(),s={};for(let u of Object.keys(n))s[n[u]]=u;var i={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"]}};a.exports=i;for(let u of Object.keys(i)){if(!("channels"in i[u]))throw new Error("missing channels property: "+u);if(!("labels"in i[u]))throw new Error("missing channel labels property: "+u);if(i[u].labels.length!==i[u].channels)throw new Error("channel and label counts mismatch: "+u);let{channels:r,labels:t}=i[u];delete i[u].channels,delete i[u].labels,Object.defineProperty(i[u],"channels",{value:r}),Object.defineProperty(i[u],"labels",{value:t})}i.rgb.hsl=function(u){let r=u[0]/255,t=u[1]/255,p=u[2]/255,l=Math.min(r,t,p),c=Math.max(r,t,p),o=c-l,d,f;c===l?d=0:r===c?d=(t-p)/o:t===c?d=2+(p-r)/o:p===c&&(d=4+(r-t)/o),d=Math.min(d*60,360),d<0&&(d+=360);let y=(l+c)/2;return c===l?f=0:y<=.5?f=o/(c+l):f=o/(2-c-l),[d,f*100,y*100]},i.rgb.hsv=function(u){let r,t,p,l,c,o=u[0]/255,d=u[1]/255,f=u[2]/255,y=Math.max(o,d,f),b=y-Math.min(o,d,f),w=function(g){return(y-g)/6/b+1/2};return b===0?(l=0,c=0):(c=b/y,r=w(o),t=w(d),p=w(f),o===y?l=p-t:d===y?l=1/3+r-p:f===y&&(l=2/3+t-r),l<0?l+=1:l>1&&(l-=1)),[l*360,c*100,y*100]},i.rgb.hwb=function(u){let r=u[0],t=u[1],p=u[2],l=i.rgb.hsl(u)[0],c=1/255*Math.min(r,Math.min(t,p));return p=1-1/255*Math.max(r,Math.max(t,p)),[l,c*100,p*100]},i.rgb.cmyk=function(u){let r=u[0]/255,t=u[1]/255,p=u[2]/255,l=Math.min(1-r,1-t,1-p),c=(1-r-l)/(1-l)||0,o=(1-t-l)/(1-l)||0,d=(1-p-l)/(1-l)||0;return[c*100,o*100,d*100,l*100]};function h(u,r){return(u[0]-r[0])**2+(u[1]-r[1])**2+(u[2]-r[2])**2}i.rgb.keyword=function(u){let r=s[u];if(r)return r;let t=1/0,p;for(let l of Object.keys(n)){let c=n[l],o=h(u,c);o<t&&(t=o,p=l)}return p},i.keyword.rgb=function(u){return n[u]},i.rgb.xyz=function(u){let r=u[0]/255,t=u[1]/255,p=u[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,p=p>.04045?((p+.055)/1.055)**2.4:p/12.92;let l=r*.4124+t*.3576+p*.1805,c=r*.2126+t*.7152+p*.0722,o=r*.0193+t*.1192+p*.9505;return[l*100,c*100,o*100]},i.rgb.lab=function(u){let r=i.rgb.xyz(u),t=r[0],p=r[1],l=r[2];t/=95.047,p/=100,l/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,p=p>.008856?p**(1/3):7.787*p+16/116,l=l>.008856?l**(1/3):7.787*l+16/116;let c=116*p-16,o=500*(t-p),d=200*(p-l);return[c,o,d]},i.hsl.rgb=function(u){let r=u[0]/360,t=u[1]/100,p=u[2]/100,l,c,o;if(t===0)return o=p*255,[o,o,o];p<.5?l=p*(1+t):l=p+t-p*t;let d=2*p-l,f=[0,0,0];for(let y=0;y<3;y++)c=r+1/3*-(y-1),c<0&&c++,c>1&&c--,6*c<1?o=d+(l-d)*6*c:2*c<1?o=l:3*c<2?o=d+(l-d)*(2/3-c)*6:o=d,f[y]=o*255;return f},i.hsl.hsv=function(u){let r=u[0],t=u[1]/100,p=u[2]/100,l=t,c=Math.max(p,.01);p*=2,t*=p<=1?p:2-p,l*=c<=1?c:2-c;let o=(p+t)/2,d=p===0?2*l/(c+l):2*t/(p+t);return[r,d*100,o*100]},i.hsv.rgb=function(u){let r=u[0]/60,t=u[1]/100,p=u[2]/100,l=Math.floor(r)%6,c=r-Math.floor(r),o=255*p*(1-t),d=255*p*(1-t*c),f=255*p*(1-t*(1-c));switch(p*=255,l){case 0:return[p,f,o];case 1:return[d,p,o];case 2:return[o,p,f];case 3:return[o,d,p];case 4:return[f,o,p];case 5:return[p,o,d]}},i.hsv.hsl=function(u){let r=u[0],t=u[1]/100,p=u[2]/100,l=Math.max(p,.01),c,o;o=(2-t)*p;let d=(2-t)*l;return c=t*l,c/=d<=1?d:2-d,c=c||0,o/=2,[r,c*100,o*100]},i.hwb.rgb=function(u){let r=u[0]/360,t=u[1]/100,p=u[2]/100,l=t+p,c;l>1&&(t/=l,p/=l);let o=Math.floor(6*r),d=1-p;c=6*r-o,o&1&&(c=1-c);let f=t+c*(d-t),y,b,w;switch(o){default:case 6:case 0:y=d,b=f,w=t;break;case 1:y=f,b=d,w=t;break;case 2:y=t,b=d,w=f;break;case 3:y=t,b=f,w=d;break;case 4:y=f,b=t,w=d;break;case 5:y=d,b=t,w=f;break}return[y*255,b*255,w*255]},i.cmyk.rgb=function(u){let r=u[0]/100,t=u[1]/100,p=u[2]/100,l=u[3]/100,c=1-Math.min(1,r*(1-l)+l),o=1-Math.min(1,t*(1-l)+l),d=1-Math.min(1,p*(1-l)+l);return[c*255,o*255,d*255]},i.xyz.rgb=function(u){let r=u[0]/100,t=u[1]/100,p=u[2]/100,l,c,o;return l=r*3.2406+t*-1.5372+p*-.4986,c=r*-.9689+t*1.8758+p*.0415,o=r*.0557+t*-.204+p*1.057,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,l=Math.min(Math.max(0,l),1),c=Math.min(Math.max(0,c),1),o=Math.min(Math.max(0,o),1),[l*255,c*255,o*255]},i.xyz.lab=function(u){let r=u[0],t=u[1],p=u[2];r/=95.047,t/=100,p/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,p=p>.008856?p**(1/3):7.787*p+16/116;let l=116*t-16,c=500*(r-t),o=200*(t-p);return[l,c,o]},i.lab.xyz=function(u){let r=u[0],t=u[1],p=u[2],l,c,o;c=(r+16)/116,l=t/500+c,o=c-p/200;let d=c**3,f=l**3,y=o**3;return c=d>.008856?d:(c-16/116)/7.787,l=f>.008856?f:(l-16/116)/7.787,o=y>.008856?y:(o-16/116)/7.787,l*=95.047,c*=100,o*=108.883,[l,c,o]},i.lab.lch=function(u){let r=u[0],t=u[1],p=u[2],l;l=Math.atan2(p,t)*360/2/Math.PI,l<0&&(l+=360);let c=Math.sqrt(t*t+p*p);return[r,c,l]},i.lch.lab=function(u){let r=u[0],t=u[1],p=u[2]/360*2*Math.PI,l=t*Math.cos(p),c=t*Math.sin(p);return[r,l,c]},i.rgb.ansi16=function(u,r=null){let[t,p,l]=u,c=r===null?i.rgb.hsv(u)[2]:r;if(c=Math.round(c/50),c===0)return 30;let o=30+(Math.round(l/255)<<2|Math.round(p/255)<<1|Math.round(t/255));return c===2&&(o+=60),o},i.hsv.ansi16=function(u){return i.rgb.ansi16(i.hsv.rgb(u),u[2])},i.rgb.ansi256=function(u){let r=u[0],t=u[1],p=u[2];return r===t&&t===p?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(t/255*5)+Math.round(p/255*5)},i.ansi16.rgb=function(u){let r=u%10;if(r===0||r===7)return u>50&&(r+=3.5),r=r/10.5*255,[r,r,r];let t=(~~(u>50)+1)*.5,p=(r&1)*t*255,l=(r>>1&1)*t*255,c=(r>>2&1)*t*255;return[p,l,c]},i.ansi256.rgb=function(u){if(u>=232){let c=(u-232)*10+8;return[c,c,c]}u-=16;let r,t=Math.floor(u/36)/5*255,p=Math.floor((r=u%36)/6)/5*255,l=r%6/5*255;return[t,p,l]},i.rgb.hex=function(u){let r=(((Math.round(u[0])&255)<<16)+((Math.round(u[1])&255)<<8)+(Math.round(u[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.hex.rgb=function(u){let r=u.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let t=r[0];r[0].length===3&&(t=t.split("").map(d=>d+d).join(""));let p=parseInt(t,16),l=p>>16&255,c=p>>8&255,o=p&255;return[l,c,o]},i.rgb.hcg=function(u){let r=u[0]/255,t=u[1]/255,p=u[2]/255,l=Math.max(Math.max(r,t),p),c=Math.min(Math.min(r,t),p),o=l-c,d,f;return o<1?d=c/(1-o):d=0,o<=0?f=0:l===r?f=(t-p)/o%6:l===t?f=2+(p-r)/o:f=4+(r-t)/o,f/=6,f%=1,[f*360,o*100,d*100]},i.hsl.hcg=function(u){let r=u[1]/100,t=u[2]/100,p=t<.5?2*r*t:2*r*(1-t),l=0;return p<1&&(l=(t-.5*p)/(1-p)),[u[0],p*100,l*100]},i.hsv.hcg=function(u){let r=u[1]/100,t=u[2]/100,p=r*t,l=0;return p<1&&(l=(t-p)/(1-p)),[u[0],p*100,l*100]},i.hcg.rgb=function(u){let r=u[0]/360,t=u[1]/100,p=u[2]/100;if(t===0)return[p*255,p*255,p*255];let l=[0,0,0],c=r%1*6,o=c%1,d=1-o,f=0;switch(Math.floor(c)){case 0:l[0]=1,l[1]=o,l[2]=0;break;case 1:l[0]=d,l[1]=1,l[2]=0;break;case 2:l[0]=0,l[1]=1,l[2]=o;break;case 3:l[0]=0,l[1]=d,l[2]=1;break;case 4:l[0]=o,l[1]=0,l[2]=1;break;default:l[0]=1,l[1]=0,l[2]=d}return f=(1-t)*p,[(t*l[0]+f)*255,(t*l[1]+f)*255,(t*l[2]+f)*255]},i.hcg.hsv=function(u){let r=u[1]/100,t=u[2]/100,p=r+t*(1-r),l=0;return p>0&&(l=r/p),[u[0],l*100,p*100]},i.hcg.hsl=function(u){let r=u[1]/100,t=u[2]/100*(1-r)+.5*r,p=0;return t>0&&t<.5?p=r/(2*t):t>=.5&&t<1&&(p=r/(2*(1-t))),[u[0],p*100,t*100]},i.hcg.hwb=function(u){let r=u[1]/100,t=u[2]/100,p=r+t*(1-r);return[u[0],(p-r)*100,(1-p)*100]},i.hwb.hcg=function(u){let r=u[1]/100,t=u[2]/100,p=1-t,l=p-r,c=0;return l<1&&(c=(p-l)/(1-l)),[u[0],l*100,c*100]},i.apple.rgb=function(u){return[u[0]/65535*255,u[1]/65535*255,u[2]/65535*255]},i.rgb.apple=function(u){return[u[0]/255*65535,u[1]/255*65535,u[2]/255*65535]},i.gray.rgb=function(u){return[u[0]/100*255,u[0]/100*255,u[0]/100*255]},i.gray.hsl=function(u){return[0,0,u[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(u){return[0,100,u[0]]},i.gray.cmyk=function(u){return[0,0,0,u[0]]},i.gray.lab=function(u){return[u[0],0,0]},i.gray.hex=function(u){let r=Math.round(u[0]/100*255)&255,t=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.rgb.gray=function(u){return[(u[0]+u[1]+u[2])/3/255*100]}}),Al=j((e,a)=>{B();var n=Wi();function s(){let r={},t=Object.keys(n);for(let p=t.length,l=0;l<p;l++)r[t[l]]={distance:-1,parent:null};return r}function i(r){let t=s(),p=[r];for(t[r].distance=0;p.length;){let l=p.pop(),c=Object.keys(n[l]);for(let o=c.length,d=0;d<o;d++){let f=c[d],y=t[f];y.distance===-1&&(y.distance=t[l].distance+1,y.parent=l,p.unshift(f))}}return t}function h(r,t){return function(p){return t(r(p))}}function u(r,t){let p=[t[r].parent,r],l=n[t[r].parent][r],c=t[r].parent;for(;t[c].parent;)p.unshift(t[c].parent),l=h(n[t[c].parent][c],l),c=t[c].parent;return l.conversion=p,l}a.exports=function(r){let t=i(r),p={},l=Object.keys(t);for(let c=l.length,o=0;o<c;o++){let d=l[o];t[d].parent!==null&&(p[d]=u(d,t))}return p}}),Cl=j((e,a)=>{B();var n=Wi(),s=Al(),i={},h=Object.keys(n);function u(t){let p=function(...l){let c=l[0];return c==null?c:(c.length>1&&(l=c),t(l))};return"conversion"in t&&(p.conversion=t.conversion),p}function r(t){let p=function(...l){let c=l[0];if(c==null)return c;c.length>1&&(l=c);let o=t(l);if(typeof o=="object")for(let d=o.length,f=0;f<d;f++)o[f]=Math.round(o[f]);return o};return"conversion"in t&&(p.conversion=t.conversion),p}h.forEach(t=>{i[t]={},Object.defineProperty(i[t],"channels",{value:n[t].channels}),Object.defineProperty(i[t],"labels",{value:n[t].labels});let p=s(t);Object.keys(p).forEach(l=>{let c=p[l];i[t][l]=r(c),i[t][l].raw=u(c)})}),a.exports=i}),zi=j((e,a)=>{"use strict";B();var n=(c,o)=>(...d)=>`\x1B[${c(...d)+o}m`,s=(c,o)=>(...d)=>{let f=c(...d);return`\x1B[${38+o};5;${f}m`},i=(c,o)=>(...d)=>{let f=c(...d);return`\x1B[${38+o};2;${f[0]};${f[1]};${f[2]}m`},h=c=>c,u=(c,o,d)=>[c,o,d],r=(c,o,d)=>{Object.defineProperty(c,o,{get:()=>{let f=d();return Object.defineProperty(c,o,{value:f,enumerable:!0,configurable:!0}),f},enumerable:!0,configurable:!0})},t,p=(c,o,d,f)=>{t===void 0&&(t=Cl());let y=f?10:0,b={};for(let[w,g]of Object.entries(t)){let D=w==="ansi16"?"ansi":w;w===o?b[D]=c(d,y):typeof g=="object"&&(b[D]=c(g[o],y))}return b};function l(){let c=new Map,o={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]}};o.color.gray=o.color.blackBright,o.bgColor.bgGray=o.bgColor.bgBlackBright,o.color.grey=o.color.blackBright,o.bgColor.bgGrey=o.bgColor.bgBlackBright;for(let[d,f]of Object.entries(o)){for(let[y,b]of Object.entries(f))o[y]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},f[y]=o[y],c.set(b[0],b[1]);Object.defineProperty(o,d,{value:f,enumerable:!1})}return Object.defineProperty(o,"codes",{value:c,enumerable:!1}),o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",r(o.color,"ansi",()=>p(n,"ansi16",h,!1)),r(o.color,"ansi256",()=>p(s,"ansi256",h,!1)),r(o.color,"ansi16m",()=>p(i,"rgb",u,!1)),r(o.bgColor,"ansi",()=>p(n,"ansi16",h,!0)),r(o.bgColor,"ansi256",()=>p(s,"ansi256",h,!0)),r(o.bgColor,"ansi16m",()=>p(i,"rgb",u,!0)),o}Object.defineProperty(a,"exports",{enumerable:!0,get:l})}),xl=j((e,a)=>{"use strict";B(),a.exports=(n,s=process.argv)=>{let i=n.startsWith("-")?"":n.length===1?"-":"--",h=s.indexOf(i+n),u=s.indexOf("--");return h!==-1&&(u===-1||h<u)}}),Vi=j((e,a)=>{"use strict";B();var n=Z("os"),s=Z("tty"),i=xl(),{env:h}=process,u;i("no-color")||i("no-colors")||i("color=false")||i("color=never")?u=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(u=1),"FORCE_COLOR"in h&&(h.FORCE_COLOR==="true"?u=1:h.FORCE_COLOR==="false"?u=0:u=h.FORCE_COLOR.length===0?1:Math.min(parseInt(h.FORCE_COLOR,10),3));function r(l){return l===0?!1:{level:l,hasBasic:!0,has256:l>=2,has16m:l>=3}}function t(l,c){if(u===0)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(l&&!c&&u===void 0)return 0;let o=u||0;if(h.TERM==="dumb")return o;if(process.platform==="win32"){let d=n.release().split(".");return Number(d[0])>=10&&Number(d[2])>=10586?Number(d[2])>=14931?3:2:1}if("CI"in h)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(d=>d in h)||h.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in h)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(h.TEAMCITY_VERSION)?1:0;if(h.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in h){let d=parseInt((h.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(h.TERM_PROGRAM){case"iTerm.app":return d>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(h.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(h.TERM)||"COLORTERM"in h?1:o}function p(l){let c=t(l,l&&l.isTTY);return r(c)}a.exports={supportsColor:p,stdout:r(t(!0,s.isatty(1))),stderr:r(t(!0,s.isatty(2)))}}),kl=j((e,a)=>{"use strict";B();var n=(i,h,u)=>{let r=i.indexOf(h);if(r===-1)return i;let t=h.length,p=0,l="";do l+=i.substr(p,r-p)+h+u,p=r+t,r=i.indexOf(h,p);while(r!==-1);return l+=i.substr(p),l},s=(i,h,u,r)=>{let t=0,p="";do{let l=i[r-1]==="\r";p+=i.substr(t,(l?r-1:r)-t)+h+(l?`\r
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
`,t)}
|
|
24
|
-
`
|
|
25
|
-
`);return x!==-1&&(m=u(m,A,S,x)),S+m+A},g,D=(v,...m)=>{let[_]=m;if(!Array.isArray(_))return m.join(" ");let S=m.slice(1),A=[_.raw[0]];for(let x=1;x<_.length;x++)A.push(String(S[x-1]).replace(/[{}\\]/g,"\\$&"),String(_.raw[x]));return g===void 0&&(g=Fl()),g(v,A.join(""))};Object.defineProperties(o.prototype,t);var E=o();E.supportsColor=s,E.stderr=o({level:i?i.level:0}),E.stderr.supportsColor=i,E.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},a.exports=E}),Rl=j((e,a)=>{"use strict";B();var n=cr(),s=hr();a.exports=n(()=>{s(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})}),Tl=j(e=>{"use strict";B();var a=Rl(),n=!1;e.show=(s=process.stderr)=>{!s.isTTY||(n=!1,s.write("\x1B[?25h"))},e.hide=(s=process.stderr)=>{!s.isTTY||(a(),n=!0,s.write("\x1B[?25l"))},e.toggle=(s,i)=>{s!==void 0&&(n=s),n?e.show(i):e.hide(i)}}),Bl=j((e,a)=>{a.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}}),Pl=j((e,a)=>{"use strict";B();var n=Object.assign({},Bl()),s=Object.keys(n);Object.defineProperty(n,"random",{get(){let i=Math.floor(Math.random()*s.length),h=s[i];return n[h]}}),a.exports=n}),Ll=j((e,a)=>{"use strict";B();var n=vt(),s=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",i={info:n.blue("\u2139"),success:n.green("\u2714"),warning:n.yellow("\u26A0"),error:n.red("\u2716")},h={info:n.blue("i"),success:n.green("\u221A"),warning:n.yellow("\u203C"),error:n.red("\xD7")};a.exports=s?i:h}),Il=j((e,a)=>{"use strict";B(),a.exports=({onlyFirst:n=!1}={})=>{let s=["[\\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(s,n?void 0:"g")}}),jl=j((e,a)=>{"use strict";B();var n=Il();a.exports=s=>typeof s=="string"?s.replace(n(),""):s}),Nl=j((e,a)=>{B();var n=function(){"use strict";function s(p,l,c,o){var d;typeof l=="object"&&(c=l.depth,o=l.prototype,d=l.filter,l=l.circular);var f=[],y=[],b=typeof Buffer<"u";typeof l>"u"&&(l=!0),typeof c>"u"&&(c=1/0);function w(g,D){if(g===null)return null;if(D==0)return g;var E,v;if(typeof g!="object")return g;if(s.__isArray(g))E=[];else if(s.__isRegExp(g))E=new RegExp(g.source,t(g)),g.lastIndex&&(E.lastIndex=g.lastIndex);else if(s.__isDate(g))E=new Date(g.getTime());else{if(b&&Buffer.isBuffer(g))return Buffer.allocUnsafe?E=Buffer.allocUnsafe(g.length):E=new Buffer(g.length),g.copy(E),E;typeof o>"u"?(v=Object.getPrototypeOf(g),E=Object.create(v)):(E=Object.create(o),v=o)}if(l){var m=f.indexOf(g);if(m!=-1)return y[m];f.push(g),y.push(E)}for(var _ in g){var S;v&&(S=Object.getOwnPropertyDescriptor(v,_)),!(S&&S.set==null)&&(E[_]=w(g[_],D-1))}return E}return w(p,c)}s.clonePrototype=function(p){if(p===null)return null;var l=function(){};return l.prototype=p,new l};function i(p){return Object.prototype.toString.call(p)}s.__objToStr=i;function h(p){return typeof p=="object"&&i(p)==="[object Date]"}s.__isDate=h;function u(p){return typeof p=="object"&&i(p)==="[object Array]"}s.__isArray=u;function r(p){return typeof p=="object"&&i(p)==="[object RegExp]"}s.__isRegExp=r;function t(p){var l="";return p.global&&(l+="g"),p.ignoreCase&&(l+="i"),p.multiline&&(l+="m"),l}return s.__getRegExpFlags=t,s}();typeof a=="object"&&a.exports&&(a.exports=n)}),Ml=j((e,a)=>{B();var n=Nl();a.exports=function(s,i){return s=s||{},Object.keys(i).forEach(function(h){typeof s[h]>"u"&&(s[h]=n(i[h]))}),s}}),$l=j((e,a)=>{B(),a.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]}),Hl=j((e,a)=>{"use strict";B();var n=Ml(),s=$l(),i={nul:0,control:0};a.exports=function(t){return h(t,i)},a.exports.config=function(t){return t=n(t||{},i),function(p){return h(p,t)}};function h(t,p){if(typeof t!="string")return u(t,p);for(var l=0,c=0;c<t.length;c++){var o=u(t.charCodeAt(c),p);if(o<0)return-1;l+=o}return l}function u(t,p){return t===0?p.nul:t<32||t>=127&&t<160?p.control:r(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function r(t){var p=0,l=s.length-1,c;if(t<s[0][0]||t>s[l][1])return!1;for(;l>=p;)if(c=Math.floor((p+l)/2),t>s[c][1])p=c+1;else if(t<s[c][0])l=c-1;else return!0;return!1}}),Ul=j((e,a)=>{"use strict";B(),a.exports=({stream:n=process.stdout}={})=>!!(n&&n.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}),Gl=j((e,a)=>{B();var n=Z("stream");a.exports=s;function s(t){n.apply(this),t=t||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}s.prototype=Object.create(n.prototype),Object.defineProperty(s.prototype,"constructor",{value:s,enumerable:!1}),s.prototype.mute=function(){this.muted=!0},s.prototype.unmute=function(){this.muted=!1},Object.defineProperty(s.prototype,"_onpipe",{value:i,enumerable:!1,writable:!0,configurable:!0});function i(t){this._src=t}Object.defineProperty(s.prototype,"isTTY",{get:h,set:u,enumerable:!0,configurable:!0});function h(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function u(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(s.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0}),s.prototype.pipe=function(t,p){return this._dest=t,n.prototype.pipe.call(this,t,p)},s.prototype.pause=function(){if(this._src)return this._src.pause()},s.prototype.resume=function(){if(this._src)return this._src.resume()},s.prototype.write=function(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.substr(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.substr(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)},s.prototype.end=function(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")};function r(t){return function(){var p=this._dest,l=this._src;p&&p[t]&&p[t].apply(p,arguments),l&&l[t]&&l[t].apply(l,arguments)}}s.prototype.destroy=r("destroy"),s.prototype.destroySoon=r("destroySoon"),s.prototype.close=r("close")}),ql=j((e,a)=>{"use strict";B();var n=Z("readline"),s=Ol(),i=Tl(),h=Pl(),u=Ll(),r=jl(),t=Hl(),p=Ul(),l=Gl(),c=Symbol("text"),o=Symbol("prefixText"),d=3,f=class{constructor(){this.requests=0,this.mutedStream=new l,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let g=this;this.ourEmit=function(D,E,...v){let{stdin:m}=process;if(g.requests>0||m.emit===g.ourEmit){if(D==="keypress")return;D==="data"&&E.includes(d)&&process.emit("SIGINT"),Reflect.apply(g.oldEmit,this,[D,E,...v])}else Reflect.apply(process.stdin.emit,this,[D,E,...v])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=n.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},y,b=class{constructor(g){y||(y=new f),typeof g=="string"&&(g={text:g}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...g},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:p({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(g=0){if(!(g>=0&&Number.isInteger(g)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=g}_updateInterval(g){g!==void 0&&(this.interval=g)}get spinner(){return this._spinner}set spinner(g){if(this.frameIndex=0,typeof g=="object"){if(g.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=g}else if(process.platform==="win32")this._spinner=h.line;else if(g===void 0)this._spinner=h.dots;else if(h[g])this._spinner=h[g];else throw new Error(`There is no built-in spinner named '${g}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[c]}get prefixText(){return this[o]}get isSpinning(){return this.id!==void 0}updateLineCount(){let g=this.stream.columns||80,D=typeof this[o]=="string"?this[o]+"-":"";this.lineCount=r(D+"--"+this[c]).split(`
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
`)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
`);return L!==-1&&(_=u(_,x,A,L)),A+_+x},D,E=(m,..._)=>{let[S]=_;if(!r(S)||!r(S.raw))return _.join(" ");let A=_.slice(1),x=[S.raw[0]];for(let L=1;L<S.length;L++)x.push(String(A[L-1]).replace(/[{}\\]/g,"\\$&"),String(S.raw[L]));return D===void 0&&(D=zl()),D(m,x.join(""))};Object.defineProperties(d.prototype,p);var v=d();v.supportsColor=s,v.stderr=d({level:i?i.level:0}),v.stderr.supportsColor=i,a.exports=v}),Kl=j((e,a)=>{B(),function(n){var s=/^\s+/,i=/\s+$/,h=0,u=n.round,r=n.min,t=n.max,p=n.random;function l(H,V){if(H=H||"",V=V||{},H instanceof l)return H;if(!(this instanceof l))return new l(H,V);var C=c(H);this._originalInput=H,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=u(100*this._a)/100,this._format=V.format||C.format,this._gradientType=V.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=C.ok,this._tc_id=h++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var H=this.toRgb();return(H.r*299+H.g*587+H.b*114)/1e3},getLuminance:function(){var H=this.toRgb(),V,C,W,X,re,pe;return V=H.r/255,C=H.g/255,W=H.b/255,V<=.03928?X=V/12.92:X=n.pow((V+.055)/1.055,2.4),C<=.03928?re=C/12.92:re=n.pow((C+.055)/1.055,2.4),W<=.03928?pe=W/12.92:pe=n.pow((W+.055)/1.055,2.4),.2126*X+.7152*re+.0722*pe},setAlpha:function(H){return this._a=Q(H),this._roundA=u(100*this._a)/100,this},toHsv:function(){var H=y(this._r,this._g,this._b);return{h:H.h*360,s:H.s,v:H.v,a:this._a}},toHsvString:function(){var H=y(this._r,this._g,this._b),V=u(H.h*360),C=u(H.s*100),W=u(H.v*100);return this._a==1?"hsv("+V+", "+C+"%, "+W+"%)":"hsva("+V+", "+C+"%, "+W+"%, "+this._roundA+")"},toHsl:function(){var H=d(this._r,this._g,this._b);return{h:H.h*360,s:H.s,l:H.l,a:this._a}},toHslString:function(){var H=d(this._r,this._g,this._b),V=u(H.h*360),C=u(H.s*100),W=u(H.l*100);return this._a==1?"hsl("+V+", "+C+"%, "+W+"%)":"hsla("+V+", "+C+"%, "+W+"%, "+this._roundA+")"},toHex:function(H){return w(this._r,this._g,this._b,H)},toHexString:function(H){return"#"+this.toHex(H)},toHex8:function(H){return g(this._r,this._g,this._b,this._a,H)},toHex8String:function(H){return"#"+this.toHex8(H)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(P(this._r,255)*100)+"%",g:u(P(this._g,255)*100)+"%",b:u(P(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+u(P(this._r,255)*100)+"%, "+u(P(this._g,255)*100)+"%, "+u(P(this._b,255)*100)+"%)":"rgba("+u(P(this._r,255)*100)+"%, "+u(P(this._g,255)*100)+"%, "+u(P(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:G[w(this._r,this._g,this._b,!0)]||!1},toFilter:function(H){var V="#"+D(this._r,this._g,this._b,this._a),C=V,W=this._gradientType?"GradientType = 1, ":"";if(H){var X=l(H);C="#"+D(X._r,X._g,X._b,X._a)}return"progid:DXImageTransform.Microsoft.gradient("+W+"startColorstr="+V+",endColorstr="+C+")"},toString:function(H){var V=!!H;H=H||this._format;var C=!1,W=this._a<1&&this._a>=0,X=!V&&W&&(H==="hex"||H==="hex6"||H==="hex3"||H==="hex4"||H==="hex8"||H==="name");return X?H==="name"&&this._a===0?this.toName():this.toRgbString():(H==="rgb"&&(C=this.toRgbString()),H==="prgb"&&(C=this.toPercentageRgbString()),(H==="hex"||H==="hex6")&&(C=this.toHexString()),H==="hex3"&&(C=this.toHexString(!0)),H==="hex4"&&(C=this.toHex8String(!0)),H==="hex8"&&(C=this.toHex8String()),H==="name"&&(C=this.toName()),H==="hsl"&&(C=this.toHslString()),H==="hsv"&&(C=this.toHsvString()),C||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(H,V){var C=H.apply(null,[this].concat([].slice.call(V)));return this._r=C._r,this._g=C._g,this._b=C._b,this.setAlpha(C._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(H,V){return H.apply(null,[this].concat([].slice.call(V)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},l.fromRatio=function(H,V){if(typeof H=="object"){var C={};for(var W in H)H.hasOwnProperty(W)&&(W==="a"?C[W]=H[W]:C[W]=M(H[W]));H=C}return l(H,V)};function c(H){var V={r:0,g:0,b:0},C=1,W=null,X=null,re=null,pe=!1,ie=!1;return typeof H=="string"&&(H=be(H)),typeof H=="object"&&(ce(H.r)&&ce(H.g)&&ce(H.b)?(V=o(H.r,H.g,H.b),pe=!0,ie=String(H.r).substr(-1)==="%"?"prgb":"rgb"):ce(H.h)&&ce(H.s)&&ce(H.v)?(W=M(H.s),X=M(H.v),V=b(H.h,W,X),pe=!0,ie="hsv"):ce(H.h)&&ce(H.s)&&ce(H.l)&&(W=M(H.s),re=M(H.l),V=f(H.h,W,re),pe=!0,ie="hsl"),H.hasOwnProperty("a")&&(C=H.a)),C=Q(C),{ok:pe,format:H.format||ie,r:r(255,t(V.r,0)),g:r(255,t(V.g,0)),b:r(255,t(V.b,0)),a:C}}function o(H,V,C){return{r:P(H,255)*255,g:P(V,255)*255,b:P(C,255)*255}}function d(H,V,C){H=P(H,255),V=P(V,255),C=P(C,255);var W=t(H,V,C),X=r(H,V,C),re,pe,ie=(W+X)/2;if(W==X)re=pe=0;else{var le=W-X;switch(pe=ie>.5?le/(2-W-X):le/(W+X),W){case H:re=(V-C)/le+(V<C?6:0);break;case V:re=(C-H)/le+2;break;case C:re=(H-V)/le+4;break}re/=6}return{h:re,s:pe,l:ie}}function f(H,V,C){var W,X,re;H=P(H,360),V=P(V,100),C=P(C,100);function pe(ne,fe,we){return we<0&&(we+=1),we>1&&(we-=1),we<1/6?ne+(fe-ne)*6*we:we<1/2?fe:we<2/3?ne+(fe-ne)*(2/3-we)*6:ne}if(V===0)W=X=re=C;else{var ie=C<.5?C*(1+V):C+V-C*V,le=2*C-ie;W=pe(le,ie,H+1/3),X=pe(le,ie,H),re=pe(le,ie,H-1/3)}return{r:W*255,g:X*255,b:re*255}}function y(H,V,C){H=P(H,255),V=P(V,255),C=P(C,255);var W=t(H,V,C),X=r(H,V,C),re,pe,ie=W,le=W-X;if(pe=W===0?0:le/W,W==X)re=0;else{switch(W){case H:re=(V-C)/le+(V<C?6:0);break;case V:re=(C-H)/le+2;break;case C:re=(H-V)/le+4;break}re/=6}return{h:re,s:pe,v:ie}}function b(H,V,C){H=P(H,360)*6,V=P(V,100),C=P(C,100);var W=n.floor(H),X=H-W,re=C*(1-V),pe=C*(1-X*V),ie=C*(1-(1-X)*V),le=W%6,ne=[C,pe,re,re,ie,C][le],fe=[ie,C,C,pe,re,re][le],we=[re,re,ie,C,C,pe][le];return{r:ne*255,g:fe*255,b:we*255}}function w(H,V,C,W){var X=[ee(u(H).toString(16)),ee(u(V).toString(16)),ee(u(C).toString(16))];return W&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0):X.join("")}function g(H,V,C,W,X){var re=[ee(u(H).toString(16)),ee(u(V).toString(16)),ee(u(C).toString(16)),ee(K(W))];return X&&re[0].charAt(0)==re[0].charAt(1)&&re[1].charAt(0)==re[1].charAt(1)&&re[2].charAt(0)==re[2].charAt(1)&&re[3].charAt(0)==re[3].charAt(1)?re[0].charAt(0)+re[1].charAt(0)+re[2].charAt(0)+re[3].charAt(0):re.join("")}function D(H,V,C,W){var X=[ee(K(W)),ee(u(H).toString(16)),ee(u(V).toString(16)),ee(u(C).toString(16))];return X.join("")}l.equals=function(H,V){return!H||!V?!1:l(H).toRgbString()==l(V).toRgbString()},l.random=function(){return l.fromRatio({r:p(),g:p(),b:p()})};function E(H,V){V=V===0?0:V||10;var C=l(H).toHsl();return C.s-=V/100,C.s=N(C.s),l(C)}function v(H,V){V=V===0?0:V||10;var C=l(H).toHsl();return C.s+=V/100,C.s=N(C.s),l(C)}function m(H){return l(H).desaturate(100)}function _(H,V){V=V===0?0:V||10;var C=l(H).toHsl();return C.l+=V/100,C.l=N(C.l),l(C)}function S(H,V){V=V===0?0:V||10;var C=l(H).toRgb();return C.r=t(0,r(255,C.r-u(255*-(V/100)))),C.g=t(0,r(255,C.g-u(255*-(V/100)))),C.b=t(0,r(255,C.b-u(255*-(V/100)))),l(C)}function A(H,V){V=V===0?0:V||10;var C=l(H).toHsl();return C.l-=V/100,C.l=N(C.l),l(C)}function x(H,V){var C=l(H).toHsl(),W=(C.h+V)%360;return C.h=W<0?360+W:W,l(C)}function L(H){var V=l(H).toHsl();return V.h=(V.h+180)%360,l(V)}function T(H){var V=l(H).toHsl(),C=V.h;return[l(H),l({h:(C+120)%360,s:V.s,l:V.l}),l({h:(C+240)%360,s:V.s,l:V.l})]}function k(H){var V=l(H).toHsl(),C=V.h;return[l(H),l({h:(C+90)%360,s:V.s,l:V.l}),l({h:(C+180)%360,s:V.s,l:V.l}),l({h:(C+270)%360,s:V.s,l:V.l})]}function O(H){var V=l(H).toHsl(),C=V.h;return[l(H),l({h:(C+72)%360,s:V.s,l:V.l}),l({h:(C+216)%360,s:V.s,l:V.l})]}function I(H,V,C){V=V||6,C=C||30;var W=l(H).toHsl(),X=360/C,re=[l(H)];for(W.h=(W.h-(X*V>>1)+720)%360;--V;)W.h=(W.h+X)%360,re.push(l(W));return re}function $(H,V){V=V||6;for(var C=l(H).toHsv(),W=C.h,X=C.s,re=C.v,pe=[],ie=1/V;V--;)pe.push(l({h:W,s:X,v:re})),re=(re+ie)%1;return pe}l.mix=function(H,V,C){C=C===0?0:C||50;var W=l(H).toRgb(),X=l(V).toRgb(),re=C/100,pe={r:(X.r-W.r)*re+W.r,g:(X.g-W.g)*re+W.g,b:(X.b-W.b)*re+W.b,a:(X.a-W.a)*re+W.a};return l(pe)},l.readability=function(H,V){var C=l(H),W=l(V);return(n.max(C.getLuminance(),W.getLuminance())+.05)/(n.min(C.getLuminance(),W.getLuminance())+.05)},l.isReadable=function(H,V,C){var W=l.readability(H,V),X,re;switch(re=!1,X=ye(C),X.level+X.size){case"AAsmall":case"AAAlarge":re=W>=4.5;break;case"AAlarge":re=W>=3;break;case"AAAsmall":re=W>=7;break}return re},l.mostReadable=function(H,V,C){var W=null,X=0,re,pe,ie,le;C=C||{},pe=C.includeFallbackColors,ie=C.level,le=C.size;for(var ne=0;ne<V.length;ne++)re=l.readability(H,V[ne]),re>X&&(X=re,W=l(V[ne]));return l.isReadable(H,W,{level:ie,size:le})||!pe?W:(C.includeFallbackColors=!1,l.mostReadable(H,["#fff","#000"],C))};var R=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},G=l.hexNames=z(R);function z(H){var V={};for(var C in H)H.hasOwnProperty(C)&&(V[H[C]]=C);return V}function Q(H){return H=parseFloat(H),(isNaN(H)||H<0||H>1)&&(H=1),H}function P(H,V){J(H)&&(H="100%");var C=q(H);return H=r(V,t(0,parseFloat(H))),C&&(H=parseInt(H*V,10)/100),n.abs(H-V)<1e-6?1:H%V/parseFloat(V)}function N(H){return r(1,t(0,H))}function F(H){return parseInt(H,16)}function J(H){return typeof H=="string"&&H.indexOf(".")!=-1&&parseFloat(H)===1}function q(H){return typeof H=="string"&&H.indexOf("%")!=-1}function ee(H){return H.length==1?"0"+H:""+H}function M(H){return H<=1&&(H=H*100+"%"),H}function K(H){return n.round(parseFloat(H)*255).toString(16)}function te(H){return F(H)/255}var oe=function(){var H="[-\\+]?\\d+%?",V="[-\\+]?\\d*\\.\\d+%?",C="(?:"+V+")|(?:"+H+")",W="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",X="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?";return{CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+W),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+W),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+W),hsva:new RegExp("hsva"+X),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ce(H){return!!oe.CSS_UNIT.exec(H)}function be(H){H=H.replace(s,"").replace(i,"").toLowerCase();var V=!1;if(R[H])H=R[H],V=!0;else if(H=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var C;return(C=oe.rgb.exec(H))?{r:C[1],g:C[2],b:C[3]}:(C=oe.rgba.exec(H))?{r:C[1],g:C[2],b:C[3],a:C[4]}:(C=oe.hsl.exec(H))?{h:C[1],s:C[2],l:C[3]}:(C=oe.hsla.exec(H))?{h:C[1],s:C[2],l:C[3],a:C[4]}:(C=oe.hsv.exec(H))?{h:C[1],s:C[2],v:C[3]}:(C=oe.hsva.exec(H))?{h:C[1],s:C[2],v:C[3],a:C[4]}:(C=oe.hex8.exec(H))?{r:F(C[1]),g:F(C[2]),b:F(C[3]),a:te(C[4]),format:V?"name":"hex8"}:(C=oe.hex6.exec(H))?{r:F(C[1]),g:F(C[2]),b:F(C[3]),format:V?"name":"hex"}:(C=oe.hex4.exec(H))?{r:F(C[1]+""+C[1]),g:F(C[2]+""+C[2]),b:F(C[3]+""+C[3]),a:te(C[4]+""+C[4]),format:V?"name":"hex8"}:(C=oe.hex3.exec(H))?{r:F(C[1]+""+C[1]),g:F(C[2]+""+C[2]),b:F(C[3]+""+C[3]),format:V?"name":"hex"}:!1}function ye(H){var V,C;return H=H||{level:"AA",size:"small"},V=(H.level||"AA").toUpperCase(),C=(H.size||"small").toLowerCase(),V!=="AA"&&V!=="AAA"&&(V="AA"),C!=="small"&&C!=="large"&&(C="small"),{level:V,size:C}}typeof a<"u"&&a.exports?a.exports=l:typeof define=="function"&&define.amd?define(function(){return l}):window.tinycolor=l}(Math)}),Yl=j((e,a)=>{B();var n=Kl(),s={r:256,g:256,b:256,a:1},i={h:360,s:1,v:1,a:1};function h(o,d,f){let y={};for(let b in o)o.hasOwnProperty(b)&&(y[b]=f===0?0:(d[b]-o[b])/f);return y}function u(o,d,f,y){let b={};for(let w in d)d.hasOwnProperty(w)&&(b[w]=o[w]*f+d[w],b[w]=b[w]<0?b[w]+y[w]:y[w]!==1?b[w]%y[w]:b[w]);return b}function r(o,d,f){let y=o.color.toRgb(),b=d.color.toRgb(),w=h(y,b,f),g=[o.color];for(let D=1;D<f;D++){let E=u(w,y,D,s);g.push(n(E))}return g}function t(o,d,f,y){let b=o.color.toHsv(),w=d.color.toHsv();if(b.s===0||w.s===0)return r(o,d,f);let g;if(typeof y=="boolean")g=y;else{let m=b.h<w.h&&w.h-b.h<180||b.h>w.h&&b.h-w.h>180;g=y==="long"&&m||y==="short"&&!m}let D=h(b,w,f),E=[o.color],v;b.h<=w.h&&!g||b.h>=w.h&&g?v=w.h-b.h:g?v=360-w.h+b.h:v=360-b.h+w.h,D.h=Math.pow(-1,g?1:0)*Math.abs(v)/f;for(let m=1;m<f;m++){let _=u(D,b,m,i);E.push(n(_))}return E}function p(o,d){let f=o.length;if(d=parseInt(d,10),isNaN(d)||d<2)throw new Error("Invalid number of steps (< 2)");if(d<f)throw new Error("Number of steps cannot be inferior to number of stops");let y=[];for(let w=1;w<f;w++){let g=(d-1)*(o[w].pos-o[w-1].pos);y.push(Math.max(1,Math.round(g)))}let b=1;for(let w=f-1;w--;)b+=y[w];for(;b!==d;)if(b<d){let w=Math.min.apply(null,y);y[y.indexOf(w)]++,b++}else{let w=Math.max.apply(null,y);y[y.indexOf(w)]--,b--}return y}function l(o,d,f,y){if(d<0||d>1)throw new Error("Position must be between 0 and 1");let b,w;for(let E=0,v=o.length;E<v-1;E++)if(d>=o[E].pos&&d<o[E+1].pos){b=o[E],w=o[E+1];break}b||(b=w=o[o.length-1]);let g=h(b.color[f](),w.color[f](),(w.pos-b.pos)*100),D=u(g,b.color[f](),(d-b.pos)*100,y);return n(D)}var c=class{constructor(o){if(o.length<2)throw new Error("Invalid number of stops (< 2)");let d=o[0].pos!==void 0,f=o.length,y=-1,b=!1;this.stops=o.map((w,g)=>{let D=w.pos!==void 0;if(d^D)throw new Error("Cannot mix positionned and not posionned color stops");if(D){let E=w.color!==void 0;if(!E&&(b||g===0||g===f-1))throw new Error("Cannot define two consecutive position-only stops");if(b=!E,w={color:E?n(w.color):null,colorLess:!E,pos:w.pos},w.pos<0||w.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(w.pos<y)throw new Error("Color stops positions are not ordered");y=w.pos}else w={color:n(w.color!==void 0?w.color:w),pos:g/(f-1)};return w}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),f++),this.stops[f-1].pos!==1&&this.stops.push({color:this.stops[f-1].color,pos:1})}reverse(){let o=[];return this.stops.forEach(function(d){o.push({color:d.color,pos:1-d.pos})}),new c(o.reverse())}loop(){let o=[],d=[];return this.stops.forEach(f=>{o.push({color:f.color,pos:f.pos/2})}),this.stops.slice(0,-1).forEach(f=>{d.push({color:f.color,pos:1-f.pos/2})}),new c(o.concat(d.reverse()))}rgb(o){let d=p(this.stops,o),f=[];this.stops.forEach((y,b)=>{y.colorLess&&(y.color=r(this.stops[b-1],this.stops[b+1],2)[1])});for(let y=0,b=this.stops.length;y<b-1;y++){let w=r(this.stops[y],this.stops[y+1],d[y]);f.splice(f.length,0,...w)}return f.push(this.stops[this.stops.length-1].color),f}hsv(o,d){let f=p(this.stops,o),y=[];this.stops.forEach((b,w)=>{b.colorLess&&(b.color=t(this.stops[w-1],this.stops[w+1],2,d)[1])});for(let b=0,w=this.stops.length;b<w-1;b++){let g=t(this.stops[b],this.stops[b+1],f[b],d);y.splice(y.length,0,...g)}return y.push(this.stops[this.stops.length-1].color),y}css(o,d){o=o||"linear",d=d||(o==="linear"?"to right":"ellipse at center");let f=o+"-gradient("+d;return this.stops.forEach(function(y){f+=", "+(y.colorLess?"":y.color.toRgbString()+" ")+y.pos*100+"%"}),f+=")",f}rgbAt(o){return l(this.stops,o,"toRgb",s)}hsvAt(o){return l(this.stops,o,"toHsv",i)}};a.exports=function(o){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');o=arguments[0]}else o=Array.prototype.slice.call(arguments);return new c(o)}}),Jl=j((e,a)=>{"use strict";B();var n=Vl(),s=Yl(),i=/\s/g;function h(...c){let o=s.apply(this,c),d=(f,y)=>r(f?f.toString():"",o,y);return d.multiline=(f,y)=>t(f?f.toString():"",o,y),d}var u=(c,o,d)=>o.interpolation.toLowerCase()==="hsv"?c.hsv(d,o.hsvSpin.toLowerCase()):c.rgb(d);function r(c,o,d){let f=p(d),y=Math.max(c.replace(i,"").length,o.stops.length),b=u(o,f,y),w="";for(let g of c)w+=g.match(i)?g:n.hex(b.shift().toHex())(g);return w}function t(c,o,d){let f=p(d),y=c.split(`
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
`,
|
|
38
|
-
|
|
39
|
-
Downloading files${n?"":` for example ${dt.default.cyan(a)}`}. This might take a moment.`),it(),c.start(),await(0,Qi.default)(()=>sn(u,a),{retries:3}))}catch(b){throw new es(lc(b)?b.message:String(b))}finally{c.stop()}let o=Ot.default.join(u,"package.json"),d=(0,ln.existsSync)(o),f=[];if(d){let b;try{b=(0,ln.readJsonSync)(o)}catch{}b&&f.push(...Object.keys(b.scripts||{}))}let y=e;return Ot.default.join(l,r)===e&&(y=r),{cdPath:y,hasPackageJson:d,availableScripts:f,repoInfo:i}}var hn=Be(require("fs"),1),qt=Be(require("path"),1);B();function Wt({target:e,cwd:a,contentCheck:n}){let s=qt.default.parse(a).root,i=!1,h=a;for(;!i&&h!==s;){if(n)try{let u=hn.default.readFileSync(qt.default.join(h,e)).toString();if(n(u)){i=!0;break}}catch{}else if(hn.default.existsSync(qt.default.join(h,e))){i=!0;break}h=qt.default.dirname(h)}return i?h:null}var Dr=Be(require("path"),1),cc=j((e,a)=>{B();function n(s){return a.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},a.exports.__esModule=!0,a.exports.default=a.exports,n(s)}a.exports=n,a.exports.__esModule=!0,a.exports.default=a.exports}),hc=j((e,a)=>{B();var n=cc().default;function s(){"use strict";a.exports=s=function(){return i},a.exports.__esModule=!0,a.exports.default=a.exports;var i={},h=Object.prototype,u=h.hasOwnProperty,r=Object.defineProperty||function($,R,G){$[R]=G.value},t=typeof Symbol=="function"?Symbol:{},p=t.iterator||"@@iterator",l=t.asyncIterator||"@@asyncIterator",c=t.toStringTag||"@@toStringTag";function o($,R,G){return Object.defineProperty($,R,{value:G,enumerable:!0,configurable:!0,writable:!0}),$[R]}try{o({},"")}catch{o=function($,R,G){return $[R]=G}}function d($,R,G,z){var Q=R&&R.prototype instanceof b?R:b,P=Object.create(Q.prototype),N=new k(z||[]);return r(P,"_invoke",{value:A($,G,N)}),P}function f($,R,G){try{return{type:"normal",arg:$.call(R,G)}}catch(z){return{type:"throw",arg:z}}}i.wrap=d;var y={};function b(){}function w(){}function g(){}var D={};o(D,p,function(){return this});var E=Object.getPrototypeOf,v=E&&E(E(O([])));v&&v!==h&&u.call(v,p)&&(D=v);var m=g.prototype=b.prototype=Object.create(D);function _($){["next","throw","return"].forEach(function(R){o($,R,function(G){return this._invoke(R,G)})})}function S($,R){function G(Q,P,N,F){var J=f($[Q],$,P);if(J.type!=="throw"){var q=J.arg,ee=q.value;return ee&&n(ee)=="object"&&u.call(ee,"__await")?R.resolve(ee.__await).then(function(M){G("next",M,N,F)},function(M){G("throw",M,N,F)}):R.resolve(ee).then(function(M){q.value=M,N(q)},function(M){return G("throw",M,N,F)})}F(J.arg)}var z;r(this,"_invoke",{value:function(Q,P){function N(){return new R(function(F,J){G(Q,P,F,J)})}return z=z?z.then(N,N):N()}})}function A($,R,G){var z="suspendedStart";return function(Q,P){if(z==="executing")throw new Error("Generator is already running");if(z==="completed"){if(Q==="throw")throw P;return I()}for(G.method=Q,G.arg=P;;){var N=G.delegate;if(N){var F=x(N,G);if(F){if(F===y)continue;return F}}if(G.method==="next")G.sent=G._sent=G.arg;else if(G.method==="throw"){if(z==="suspendedStart")throw z="completed",G.arg;G.dispatchException(G.arg)}else G.method==="return"&&G.abrupt("return",G.arg);z="executing";var J=f($,R,G);if(J.type==="normal"){if(z=G.done?"completed":"suspendedYield",J.arg===y)continue;return{value:J.arg,done:G.done}}J.type==="throw"&&(z="completed",G.method="throw",G.arg=J.arg)}}}function x($,R){var G=R.method,z=$.iterator[G];if(z===void 0)return R.delegate=null,G==="throw"&&$.iterator.return&&(R.method="return",R.arg=void 0,x($,R),R.method==="throw")||G!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+G+"' method")),y;var Q=f(z,$.iterator,R.arg);if(Q.type==="throw")return R.method="throw",R.arg=Q.arg,R.delegate=null,y;var P=Q.arg;return P?P.done?(R[$.resultName]=P.value,R.next=$.nextLoc,R.method!=="return"&&(R.method="next",R.arg=void 0),R.delegate=null,y):P:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,y)}function L($){var R={tryLoc:$[0]};1 in $&&(R.catchLoc=$[1]),2 in $&&(R.finallyLoc=$[2],R.afterLoc=$[3]),this.tryEntries.push(R)}function T($){var R=$.completion||{};R.type="normal",delete R.arg,$.completion=R}function k($){this.tryEntries=[{tryLoc:"root"}],$.forEach(L,this),this.reset(!0)}function O($){if($){var R=$[p];if(R)return R.call($);if(typeof $.next=="function")return $;if(!isNaN($.length)){var G=-1,z=function Q(){for(;++G<$.length;)if(u.call($,G))return Q.value=$[G],Q.done=!1,Q;return Q.value=void 0,Q.done=!0,Q};return z.next=z}}return{next:I}}function I(){return{value:void 0,done:!0}}return w.prototype=g,r(m,"constructor",{value:g,configurable:!0}),r(g,"constructor",{value:w,configurable:!0}),w.displayName=o(g,c,"GeneratorFunction"),i.isGeneratorFunction=function($){var R=typeof $=="function"&&$.constructor;return!!R&&(R===w||(R.displayName||R.name)==="GeneratorFunction")},i.mark=function($){return Object.setPrototypeOf?Object.setPrototypeOf($,g):($.__proto__=g,o($,c,"GeneratorFunction")),$.prototype=Object.create(m),$},i.awrap=function($){return{__await:$}},_(S.prototype),o(S.prototype,l,function(){return this}),i.AsyncIterator=S,i.async=function($,R,G,z,Q){Q===void 0&&(Q=Promise);var P=new S(d($,R,G,z),Q);return i.isGeneratorFunction(R)?P:P.next().then(function(N){return N.done?N.value:P.next()})},_(m),o(m,c,"Generator"),o(m,p,function(){return this}),o(m,"toString",function(){return"[object Generator]"}),i.keys=function($){var R=Object($),G=[];for(var z in R)G.push(z);return G.reverse(),function Q(){for(;G.length;){var P=G.pop();if(P in R)return Q.value=P,Q.done=!1,Q}return Q.done=!0,Q}},i.values=O,k.prototype={constructor:k,reset:function($){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!$)for(var R in this)R.charAt(0)==="t"&&u.call(this,R)&&!isNaN(+R.slice(1))&&(this[R]=void 0)},stop:function(){this.done=!0;var $=this.tryEntries[0].completion;if($.type==="throw")throw $.arg;return this.rval},dispatchException:function($){if(this.done)throw $;var R=this;function G(J,q){return P.type="throw",P.arg=$,R.next=J,q&&(R.method="next",R.arg=void 0),!!q}for(var z=this.tryEntries.length-1;z>=0;--z){var Q=this.tryEntries[z],P=Q.completion;if(Q.tryLoc==="root")return G("end");if(Q.tryLoc<=this.prev){var N=u.call(Q,"catchLoc"),F=u.call(Q,"finallyLoc");if(N&&F){if(this.prev<Q.catchLoc)return G(Q.catchLoc,!0);if(this.prev<Q.finallyLoc)return G(Q.finallyLoc)}else if(N){if(this.prev<Q.catchLoc)return G(Q.catchLoc,!0)}else{if(!F)throw new Error("try statement without catch or finally");if(this.prev<Q.finallyLoc)return G(Q.finallyLoc)}}}},abrupt:function($,R){for(var G=this.tryEntries.length-1;G>=0;--G){var z=this.tryEntries[G];if(z.tryLoc<=this.prev&&u.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var Q=z;break}}Q&&($==="break"||$==="continue")&&Q.tryLoc<=R&&R<=Q.finallyLoc&&(Q=null);var P=Q?Q.completion:{};return P.type=$,P.arg=R,Q?(this.method="next",this.next=Q.finallyLoc,y):this.complete(P)},complete:function($,R){if($.type==="throw")throw $.arg;return $.type==="break"||$.type==="continue"?this.next=$.arg:$.type==="return"?(this.rval=this.arg=$.arg,this.method="return",this.next="end"):$.type==="normal"&&R&&(this.next=R),y},finish:function($){for(var R=this.tryEntries.length-1;R>=0;--R){var G=this.tryEntries[R];if(G.finallyLoc===$)return this.complete(G.completion,G.afterLoc),T(G),y}},catch:function($){for(var R=this.tryEntries.length-1;R>=0;--R){var G=this.tryEntries[R];if(G.tryLoc===$){var z=G.completion;if(z.type==="throw"){var Q=z.arg;T(G)}return Q}}throw new Error("illegal catch attempt")},delegateYield:function($,R,G){return this.delegate={iterator:O($),resultName:R,nextLoc:G},this.method==="next"&&(this.arg=void 0),y}},i}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}),pc=j((e,a)=>{B();var n=hc()();a.exports=n;try{regeneratorRuntime=n}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}),fc=j((e,a)=>{"use strict";B();var n=(s,...i)=>new Promise(h=>{h(s(...i))});a.exports=n,a.exports.default=n}),dc=j((e,a)=>{"use strict";B();var n=fc(),s=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let h=[],u=0,r=()=>{u--,h.length>0&&h.shift()()},t=(c,o,...d)=>{u++;let f=n(c,...d);o(f),f.then(r,r)},p=(c,o,...d)=>{u<i?t(c,o,...d):h.push(t.bind(null,c,o,...d))},l=(c,...o)=>new Promise(d=>p(c,d,...o));return Object.defineProperties(l,{activeCount:{get:()=>u},pendingCount:{get:()=>h.length},clearQueue:{value:()=>{h.length=0}}}),l};a.exports=s,a.exports.default=s}),mc=j((e,a)=>{"use strict";B();var n=dc(),s=class extends Error{constructor(r){super(),this.value=r}},i=async(r,t)=>t(await r),h=async r=>{let t=await Promise.all(r);if(t[1]===!0)throw new s(t[0]);return!1},u=async(r,t,p)=>{p={concurrency:1/0,preserveOrder:!0,...p};let l=n(p.concurrency),c=[...r].map(d=>[d,l(i,d,t)]),o=n(p.preserveOrder?1:1/0);try{await Promise.all(c.map(d=>o(h,d)))}catch(d){if(d instanceof s)return d.value;throw d}};a.exports=u,a.exports.default=u}),yc=j((e,a)=>{"use strict";B();var n=Z("path"),s=Z("fs"),{promisify:i}=Z("util"),h=mc(),u=i(s.stat),r=i(s.lstat),t={directory:"isDirectory",file:"isFile"};function p({type:c}){if(!(c in t))throw new Error(`Invalid type specified: ${c}`)}var l=(c,o)=>c===void 0||o[t[c]]();a.exports=async(c,o)=>{o={cwd:process.cwd(),type:"file",allowSymlinks:!0,...o},p(o);let d=o.allowSymlinks?u:r;return h(c,async f=>{try{let y=await d(n.resolve(o.cwd,f));return l(o.type,y)}catch{return!1}},o)},a.exports.sync=(c,o)=>{o={cwd:process.cwd(),allowSymlinks:!0,type:"file",...o},p(o);let d=o.allowSymlinks?s.statSync:s.lstatSync;for(let f of c)try{let y=d(n.resolve(o.cwd,f));if(l(o.type,y))return f}catch{}}}),gc=j((e,a)=>{"use strict";B();var n=Z("fs"),{promisify:s}=Z("util"),i=s(n.access);a.exports=async h=>{try{return await i(h),!0}catch{return!1}},a.exports.sync=h=>{try{return n.accessSync(h),!0}catch{return!1}}}),bc=j((e,a)=>{"use strict";B();var n=Z("path"),s=yc(),i=gc(),h=Symbol("findUp.stop");a.exports=async(u,r={})=>{let t=n.resolve(r.cwd||""),{root:p}=n.parse(t),l=[].concat(u),c=async o=>{if(typeof u!="function")return s(l,o);let d=await u(o.cwd);return typeof d=="string"?s([d],o):d};for(;;){let o=await c({...r,cwd:t});if(o===h)return;if(o)return n.resolve(t,o);if(t===p)return;t=n.dirname(t)}},a.exports.sync=(u,r={})=>{let t=n.resolve(r.cwd||""),{root:p}=n.parse(t),l=[].concat(u),c=o=>{if(typeof u!="function")return s.sync(l,o);let d=u(o.cwd);return typeof d=="string"?s.sync([d],o):d};for(;;){let o=c({...r,cwd:t});if(o===h)return;if(o)return n.resolve(t,o);if(t===p)return;t=n.dirname(t)}},a.exports.exists=i,a.exports.sync.exists=i.sync,a.exports.stop=h}),Ze=j(e=>{"use strict";B(),e.fromCallback=function(a){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")a.apply(this,arguments);else return new Promise((n,s)=>{arguments[arguments.length]=(i,h)=>{if(i)return s(i);n(h)},arguments.length++,a.apply(this,arguments)})},"name",{value:a.name})},e.fromPromise=function(a){return Object.defineProperty(function(){let n=arguments[arguments.length-1];if(typeof n!="function")return a.apply(this,arguments);a.apply(this,arguments).then(s=>n(null,s),n)},"name",{value:a.name})}}),rs=j(e=>{"use strict";B();var a=Ze().fromCallback,n=xe(),s=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof n[i]=="function");Object.keys(n).forEach(i=>{i!=="promises"&&(e[i]=n[i])}),s.forEach(i=>{e[i]=a(n[i])}),e.exists=function(i,h){return typeof h=="function"?n.exists(i,h):new Promise(u=>n.exists(i,u))},e.read=function(i,h,u,r,t,p){return typeof p=="function"?n.read(i,h,u,r,t,p):new Promise((l,c)=>{n.read(i,h,u,r,t,(o,d,f)=>{if(o)return c(o);l({bytesRead:d,buffer:f})})})},e.write=function(i,h,...u){return typeof u[u.length-1]=="function"?n.write(i,h,...u):new Promise((r,t)=>{n.write(i,h,...u,(p,l,c)=>{if(p)return t(p);r({bytesWritten:l,buffer:c})})})},typeof n.realpath.native=="function"&&(e.realpath.native=a(n.realpath.native))}),ns=j((e,a)=>{"use strict";B();var n=Z("path");function s(u){return u=n.normalize(n.resolve(u)).split(n.sep),u.length>0?u[0]:null}var i=/[<>:"|?*]/;function h(u){let r=s(u);return u=u.replace(r,""),i.test(u)}a.exports={getRootPath:s,invalidWin32Path:h}}),vc=j((e,a)=>{"use strict";B();var n=xe(),s=Z("path"),i=ns().invalidWin32Path,h=parseInt("0777",8);function u(r,t,p,l){if(typeof t=="function"?(p=t,t={}):(!t||typeof t!="object")&&(t={mode:t}),process.platform==="win32"&&i(r)){let d=new Error(r+" contains invalid WIN32 path characters.");return d.code="EINVAL",p(d)}let c=t.mode,o=t.fs||n;c===void 0&&(c=h&~process.umask()),l||(l=null),p=p||function(){},r=s.resolve(r),o.mkdir(r,c,d=>{if(!d)return l=l||r,p(null,l);switch(d.code){case"ENOENT":if(s.dirname(r)===r)return p(d);u(s.dirname(r),t,(f,y)=>{f?p(f,y):u(r,t,p,y)});break;default:o.stat(r,(f,y)=>{f||!y.isDirectory()?p(d,l):p(null,l)});break}})}a.exports=u}),wc=j((e,a)=>{"use strict";B();var n=xe(),s=Z("path"),i=ns().invalidWin32Path,h=parseInt("0777",8);function u(r,t,p){(!t||typeof t!="object")&&(t={mode:t});let l=t.mode,c=t.fs||n;if(process.platform==="win32"&&i(r)){let o=new Error(r+" contains invalid WIN32 path characters.");throw o.code="EINVAL",o}l===void 0&&(l=h&~process.umask()),p||(p=null),r=s.resolve(r);try{c.mkdirSync(r,l),p=p||r}catch(o){if(o.code==="ENOENT"){if(s.dirname(r)===r)throw o;p=u(s.dirname(r),t,p),u(r,t,p)}else{let d;try{d=c.statSync(r)}catch{throw o}if(!d.isDirectory())throw o}}return p}a.exports=u}),Qe=j((e,a)=>{"use strict";B();var n=Ze().fromCallback,s=n(vc()),i=wc();a.exports={mkdirs:s,mkdirsSync:i,mkdirp:s,mkdirpSync:i,ensureDir:s,ensureDirSync:i}}),is=j((e,a)=>{"use strict";B();var n=xe(),s=Z("os"),i=Z("path");function h(){let l=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));l=i.join(s.tmpdir(),l);let c=new Date(1435410243862);n.writeFileSync(l,"https://github.com/jprichardson/node-fs-extra/pull/141");let o=n.openSync(l,"r+");return n.futimesSync(o,c,c),n.closeSync(o),n.statSync(l).mtime>1435410243e3}function u(l){let c=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));c=i.join(s.tmpdir(),c);let o=new Date(1435410243862);n.writeFile(c,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return l(d);n.open(c,"r+",(f,y)=>{if(f)return l(f);n.futimes(y,o,o,b=>{if(b)return l(b);n.close(y,w=>{if(w)return l(w);n.stat(c,(g,D)=>{if(g)return l(g);l(null,D.mtime>1435410243e3)})})})})})}function r(l){if(typeof l=="number")return Math.floor(l/1e3)*1e3;if(l instanceof Date)return new Date(Math.floor(l.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function t(l,c,o,d){n.open(l,"r+",(f,y)=>{if(f)return d(f);n.futimes(y,c,o,b=>{n.close(y,w=>{d&&d(b||w)})})})}function p(l,c,o){let d=n.openSync(l,"r+");return n.futimesSync(d,c,o),n.closeSync(d)}a.exports={hasMillisRes:u,hasMillisResSync:h,timeRemoveMillis:r,utimesMillis:t,utimesMillisSync:p}}),_r=j((e,a)=>{"use strict";B();var n=xe(),s=Z("path"),i=10,h=5,u=0,r=process.versions.node.split("."),t=Number.parseInt(r[0],10),p=Number.parseInt(r[1],10),l=Number.parseInt(r[2],10);function c(){return t>i||t===i&&(p>h||p===h&&l>=u)}function o(E,v,m){c()?n.stat(E,{bigint:!0},(_,S)=>{if(_)return m(_);n.stat(v,{bigint:!0},(A,x)=>A?A.code==="ENOENT"?m(null,{srcStat:S,destStat:null}):m(A):m(null,{srcStat:S,destStat:x}))}):n.stat(E,(_,S)=>{if(_)return m(_);n.stat(v,(A,x)=>A?A.code==="ENOENT"?m(null,{srcStat:S,destStat:null}):m(A):m(null,{srcStat:S,destStat:x}))})}function d(E,v){let m,_;c()?m=n.statSync(E,{bigint:!0}):m=n.statSync(E);try{c()?_=n.statSync(v,{bigint:!0}):_=n.statSync(v)}catch(S){if(S.code==="ENOENT")return{srcStat:m,destStat:null};throw S}return{srcStat:m,destStat:_}}function f(E,v,m,_){o(E,v,(S,A)=>{if(S)return _(S);let{srcStat:x,destStat:L}=A;return L&&L.ino&&L.dev&&L.ino===x.ino&&L.dev===x.dev?_(new Error("Source and destination must not be the same.")):x.isDirectory()&&g(E,v)?_(new Error(D(E,v,m))):_(null,{srcStat:x,destStat:L})})}function y(E,v,m){let{srcStat:_,destStat:S}=d(E,v);if(S&&S.ino&&S.dev&&S.ino===_.ino&&S.dev===_.dev)throw new Error("Source and destination must not be the same.");if(_.isDirectory()&&g(E,v))throw new Error(D(E,v,m));return{srcStat:_,destStat:S}}function b(E,v,m,_,S){let A=s.resolve(s.dirname(E)),x=s.resolve(s.dirname(m));if(x===A||x===s.parse(x).root)return S();c()?n.stat(x,{bigint:!0},(L,T)=>L?L.code==="ENOENT"?S():S(L):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?S(new Error(D(E,m,_))):b(E,v,x,_,S)):n.stat(x,(L,T)=>L?L.code==="ENOENT"?S():S(L):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?S(new Error(D(E,m,_))):b(E,v,x,_,S))}function w(E,v,m,_){let S=s.resolve(s.dirname(E)),A=s.resolve(s.dirname(m));if(A===S||A===s.parse(A).root)return;let x;try{c()?x=n.statSync(A,{bigint:!0}):x=n.statSync(A)}catch(L){if(L.code==="ENOENT")return;throw L}if(x.ino&&x.dev&&x.ino===v.ino&&x.dev===v.dev)throw new Error(D(E,m,_));return w(E,v,A,_)}function g(E,v){let m=s.resolve(E).split(s.sep).filter(S=>S),_=s.resolve(v).split(s.sep).filter(S=>S);return m.reduce((S,A,x)=>S&&_[x]===A,!0)}function D(E,v,m){return`Cannot ${m} '${E}' to a subdirectory of itself, '${v}'.`}a.exports={checkPaths:f,checkPathsSync:y,checkParentPaths:b,checkParentPathsSync:w,isSrcSubdir:g}}),_c=j((e,a)=>{"use strict";B(),a.exports=function(n){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(n)}catch{return new Buffer(n)}return new Buffer(n)}}),Ec=j((e,a)=>{"use strict";B();var n=xe(),s=Z("path"),i=Qe().mkdirsSync,h=is().utimesMillisSync,u=_r();function r(v,m,_){typeof _=="function"&&(_={filter:_}),_=_||{},_.clobber="clobber"in _?!!_.clobber:!0,_.overwrite="overwrite"in _?!!_.overwrite:_.clobber,_.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),r.checkPaths(A,x,"copy",(k,O)=>{if(k)return T(k);let{srcStat:I,destStat:$}=O;r.checkParentPaths(A,I,x,"copy",R=>R?T(R):L.filter?l(p,$,A,x,L,T):p($,A,x,L,T))})}function p(A,x,L,T,k){let O=s.dirname(L);h(O,(I,$)=>{if(I)return k(I);if($)return c(A,x,L,T,k);i(O,R=>R?k(R):c(A,x,L,T,k))})}function l(A,x,L,T,k,O){Promise.resolve(k.filter(L,T)).then(I=>I?A(x,L,T,k,O):O(),I=>O(I))}function c(A,x,L,T,k){return T.filter?l(o,A,x,L,T,k):o(A,x,L,T,k)}function o(A,x,L,T,k){(T.dereference?n.stat:n.lstat)(x,(O,I)=>{if(O)return k(O);if(I.isDirectory())return g(I,A,x,L,T,k);if(I.isFile()||I.isCharacterDevice()||I.isBlockDevice())return d(I,A,x,L,T,k);if(I.isSymbolicLink())return _(A,x,L,T,k)})}function d(A,x,L,T,k,O){return x?f(A,L,T,k,O):y(A,L,T,k,O)}function f(A,x,L,T,k){if(T.overwrite)n.unlink(L,O=>O?k(O):y(A,x,L,T,k));else return T.errorOnExist?k(new Error(`'${L}' already exists`)):k()}function y(A,x,L,T,k){return typeof n.copyFile=="function"?n.copyFile(x,L,O=>O?k(O):w(A,L,T,k)):b(A,x,L,T,k)}function b(A,x,L,T,k){let O=n.createReadStream(x);O.on("error",I=>k(I)).once("open",()=>{let I=n.createWriteStream(L,{mode:A.mode});I.on("error",$=>k($)).on("open",()=>O.pipe(I)).once("close",()=>w(A,L,T,k))})}function w(A,x,L,T){n.chmod(x,A.mode,k=>k?T(k):L.preserveTimestamps?u(x,A.atime,A.mtime,T):T())}function g(A,x,L,T,k,O){return x?x&&!x.isDirectory()?O(new Error(`Cannot overwrite non-directory '${T}' with directory '${L}'.`)):E(L,T,k,O):D(A,L,T,k,O)}function D(A,x,L,T,k){n.mkdir(L,O=>{if(O)return k(O);E(x,L,T,I=>I?k(I):n.chmod(L,A.mode,k))})}function E(A,x,L,T){n.readdir(A,(k,O)=>k?T(k):v(O,A,x,L,T))}function v(A,x,L,T,k){let O=A.pop();return O?m(A,O,x,L,T,k):k()}function m(A,x,L,T,k,O){let I=s.join(L,x),$=s.join(T,x);r.checkPaths(I,$,"copy",(R,G)=>{if(R)return O(R);let{destStat:z}=G;c(z,I,$,k,Q=>Q?O(Q):v(A,L,T,k,O))})}function _(A,x,L,T,k){n.readlink(x,(O,I)=>{if(O)return k(O);if(T.dereference&&(I=s.resolve(process.cwd(),I)),A)n.readlink(L,($,R)=>$?$.code==="EINVAL"||$.code==="UNKNOWN"?n.symlink(I,L,k):k($):(T.dereference&&(R=s.resolve(process.cwd(),R)),r.isSrcSubdir(I,R)?k(new Error(`Cannot copy '${I}' to a subdirectory of itself, '${R}'.`)):A.isDirectory()&&r.isSrcSubdir(R,I)?k(new Error(`Cannot overwrite '${R}' with '${I}'.`)):S(I,L,k)));else return n.symlink(I,L,k)})}function S(A,x,L){n.unlink(x,T=>T?L(T):n.symlink(A,x,L))}a.exports=t}),os=j((e,a)=>{"use strict";B();var n=Ze().fromCallback;a.exports={copy:n(Dc())}}),Sc=j((e,a)=>{"use strict";B();var n=xe(),s=Z("path"),i=Z("assert"),h=process.platform==="win32";function u(b){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(w=>{b[w]=b[w]||n[w],w=w+"Sync",b[w]=b[w]||n[w]}),b.maxBusyTries=b.maxBusyTries||3}function r(b,w,g){let D=0;typeof w=="function"&&(g=w,w={}),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i.strictEqual(typeof g,"function","rimraf: callback function required"),i(w,"rimraf: invalid options argument provided"),i.strictEqual(typeof w,"object","rimraf: options should be object"),u(w),t(b,w,function E(v){if(v){if((v.code==="EBUSY"||v.code==="ENOTEMPTY"||v.code==="EPERM")&&D<w.maxBusyTries){D++;let m=D*100;return setTimeout(()=>t(b,w,E),m)}v.code==="ENOENT"&&(v=null)}g(v)})}function t(b,w,g){i(b),i(w),i(typeof g=="function"),w.lstat(b,(D,E)=>{if(D&&D.code==="ENOENT")return g(null);if(D&&D.code==="EPERM"&&h)return p(b,w,D,g);if(E&&E.isDirectory())return c(b,w,D,g);w.unlink(b,v=>{if(v){if(v.code==="ENOENT")return g(null);if(v.code==="EPERM")return h?p(b,w,v,g):c(b,w,v,g);if(v.code==="EISDIR")return c(b,w,v,g)}return g(v)})})}function p(b,w,g,D){i(b),i(w),i(typeof D=="function"),g&&i(g instanceof Error),w.chmod(b,438,E=>{E?D(E.code==="ENOENT"?null:g):w.stat(b,(v,m)=>{v?D(v.code==="ENOENT"?null:g):m.isDirectory()?c(b,w,g,D):w.unlink(b,D)})})}function l(b,w,g){let D;i(b),i(w),g&&i(g instanceof Error);try{w.chmodSync(b,438)}catch(E){if(E.code==="ENOENT")return;throw g}try{D=w.statSync(b)}catch(E){if(E.code==="ENOENT")return;throw g}D.isDirectory()?f(b,w,g):w.unlinkSync(b)}function c(b,w,g,D){i(b),i(w),g&&i(g instanceof Error),i(typeof D=="function"),w.rmdir(b,E=>{E&&(E.code==="ENOTEMPTY"||E.code==="EEXIST"||E.code==="EPERM")?o(b,w,D):E&&E.code==="ENOTDIR"?D(g):D(E)})}function o(b,w,g){i(b),i(w),i(typeof g=="function"),w.readdir(b,(D,E)=>{if(D)return g(D);let v=E.length,m;if(v===0)return w.rmdir(b,g);E.forEach(_=>{r(s.join(b,_),w,S=>{if(!m){if(S)return g(m=S);--v===0&&w.rmdir(b,g)}})})})}function d(b,w){let g;w=w||{},u(w),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i(w,"rimraf: missing options"),i.strictEqual(typeof w,"object","rimraf: options should be object");try{g=w.lstatSync(b)}catch(D){if(D.code==="ENOENT")return;D.code==="EPERM"&&h&&l(b,w,D)}try{g&&g.isDirectory()?f(b,w,null):w.unlinkSync(b)}catch(D){if(D.code==="ENOENT")return;if(D.code==="EPERM")return h?l(b,w,D):f(b,w,D);if(D.code!=="EISDIR")throw D;f(b,w,D)}}function f(b,w,g){i(b),i(w),g&&i(g instanceof Error);try{w.rmdirSync(b)}catch(D){if(D.code==="ENOTDIR")throw g;if(D.code==="ENOTEMPTY"||D.code==="EEXIST"||D.code==="EPERM")y(b,w);else if(D.code!=="ENOENT")throw D}}function y(b,w){if(i(b),i(w),w.readdirSync(b).forEach(g=>d(s.join(b,g),w)),h){let g=Date.now();do try{return w.rmdirSync(b,w)}catch{}while(Date.now()-g<500)}else return w.rmdirSync(b,w)}a.exports=r,r.sync=d}),Er=j((e,a)=>{"use strict";B();var n=Ze().fromCallback,s=Sc();a.exports={remove:n(s),removeSync:s.sync}}),Ac=j((e,a)=>{"use strict";B();var n=Ze().fromCallback,s=xe(),i=Z("path"),h=Qe(),u=Er(),r=n(function(p,l){l=l||function(){},s.readdir(p,(c,o)=>{if(c)return h.mkdirs(p,l);o=o.map(f=>i.join(p,f)),d();function d(){let f=o.pop();if(!f)return l();u.remove(f,y=>{if(y)return l(y);d()})}})});function t(p){let l;try{l=s.readdirSync(p)}catch{return h.mkdirsSync(p)}l.forEach(c=>{c=i.join(p,c),u.removeSync(c)})}a.exports={emptyDirSync:t,emptydirSync:t,emptyDir:r,emptydir:r}}),Cc=j((e,a)=>{"use strict";B();var n=Ze().fromCallback,s=Z("path"),i=xe(),h=Qe(),u=lt().pathExists;function r(p,l){function c(){i.writeFile(p,"",o=>{if(o)return l(o);l()})}i.stat(p,(o,d)=>{if(!o&&d.isFile())return l();let f=s.dirname(p);u(f,(y,b)=>{if(y)return l(y);if(b)return c();h.mkdirs(f,w=>{if(w)return l(w);c()})})})}function t(p){let l;try{l=i.statSync(p)}catch{}if(l&&l.isFile())return;let c=s.dirname(p);i.existsSync(c)||h.mkdirsSync(c),i.writeFileSync(p,"")}a.exports={createFile:n(r),createFileSync:t}}),xc=j((e,a)=>{"use strict";B();var n=Ze().fromCallback,s=Z("path"),i=xe(),h=Qe(),u=lt().pathExists;function r(p,l,c){function o(d,f){i.link(d,f,y=>{if(y)return c(y);c(null)})}u(l,(d,f)=>{if(d)return c(d);if(f)return c(null);i.lstat(p,y=>{if(y)return y.message=y.message.replace("lstat","ensureLink"),c(y);let b=s.dirname(l);u(b,(w,g)=>{if(w)return c(w);if(g)return o(p,l);h.mkdirs(b,D=>{if(D)return c(D);o(p,l)})})})})}function t(p,l){if(i.existsSync(l))return;try{i.lstatSync(p)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let c=s.dirname(l);return i.existsSync(c)||h.mkdirsSync(c),i.linkSync(p,l)}a.exports={createLink:n(r),createLinkSync:t}}),kc=j((e,a)=>{"use strict";B();var n=Z("path"),s=xe(),i=lt().pathExists;function h(r,t,p){if(n.isAbsolute(r))return s.lstat(r,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),p(l)):p(null,{toCwd:r,toDst:r}));{let l=n.dirname(t),c=n.join(l,r);return i(c,(o,d)=>o?p(o):d?p(null,{toCwd:c,toDst:r}):s.lstat(r,f=>f?(f.message=f.message.replace("lstat","ensureSymlink"),p(f)):p(null,{toCwd:r,toDst:n.relative(l,r)})))}}function u(r,t){let p;if(n.isAbsolute(r)){if(p=s.existsSync(r),!p)throw new Error("absolute srcpath does not exist");return{toCwd:r,toDst:r}}else{let l=n.dirname(t),c=n.join(l,r);if(p=s.existsSync(c),p)return{toCwd:c,toDst:r};if(p=s.existsSync(r),!p)throw new Error("relative srcpath does not exist");return{toCwd:r,toDst:n.relative(l,r)}}}a.exports={symlinkPaths:h,symlinkPathsSync:u}}),Fc=j((e,a)=>{"use strict";B();var n=xe();function s(h,u,r){if(r=typeof u=="function"?u:r,u=typeof u=="function"?!1:u,u)return r(null,u);n.lstat(h,(t,p)=>{if(t)return r(null,"file");u=p&&p.isDirectory()?"dir":"file",r(null,u)})}function i(h,u){let r;if(u)return u;try{r=n.lstatSync(h)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}a.exports={symlinkType:s,symlinkTypeSync:i}}),Oc=j((e,a)=>{"use strict";B();var n=Ze().fromCallback,s=Z("path"),i=xe(),h=Qe(),u=h.mkdirs,r=h.mkdirsSync,t=kc(),p=t.symlinkPaths,l=t.symlinkPathsSync,c=Fc(),o=c.symlinkType,d=c.symlinkTypeSync,f=lt().pathExists;function y(w,g,D,E){E=typeof D=="function"?D:E,D=typeof D=="function"?!1:D,f(g,(v,m)=>{if(v)return E(v);if(m)return E(null);p(w,g,(_,S)=>{if(_)return E(_);w=S.toDst,o(S.toCwd,D,(A,x)=>{if(A)return E(A);let L=s.dirname(g);f(L,(T,k)=>{if(T)return E(T);if(k)return i.symlink(w,g,x,E);u(L,O=>{if(O)return E(O);i.symlink(w,g,x,E)})})})})})}function b(w,g,D){if(i.existsSync(g))return;let E=l(w,g);w=E.toDst,D=d(E.toCwd,D);let v=s.dirname(g);return i.existsSync(v)||r(v),i.symlinkSync(w,g,D)}a.exports={createSymlink:n(y),createSymlinkSync:b}}),Rc=j((e,a)=>{"use strict";B();var n=Cc(),s=xc(),i=Oc();a.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:s.createLink,createLinkSync:s.createLinkSync,ensureLink:s.createLink,ensureLinkSync:s.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}}),Tc=j((e,a)=>{B();var n;try{n=xe()}catch{n=Z("fs")}function s(l,c,o){o==null&&(o=c,c={}),typeof c=="string"&&(c={encoding:c}),c=c||{};var d=c.fs||n,f=!0;"throws"in c&&(f=c.throws),d.readFile(l,c,function(y,b){if(y)return o(y);b=t(b);var w;try{w=JSON.parse(b,c?c.reviver:null)}catch(g){return f?(g.message=l+": "+g.message,o(g)):o(null,null)}o(null,w)})}function i(l,c){c=c||{},typeof c=="string"&&(c={encoding:c});var o=c.fs||n,d=!0;"throws"in c&&(d=c.throws);try{var f=o.readFileSync(l,c);return f=t(f),JSON.parse(f,c.reviver)}catch(y){if(d)throw y.message=l+": "+y.message,y;return null}}function h(l,c){var o,d=`
|
|
44
|
-
`;typeof c=="object"&&c!==null&&(c.spaces&&(o=c.spaces),c.EOL&&(d=c.EOL));var f=JSON.stringify(l,c?c.replacer:null,o);return f.replace(/\n/g,d)+d}function u(l,c,o,d){d==null&&(d=o,o={}),o=o||{};var f=o.fs||n,y="";try{y=h(c,o)}catch(b){d&&d(b,null);return}f.writeFile(l,y,o,d)}function r(l,c,o){o=o||{};var d=o.fs||n,f=h(c,o);return d.writeFileSync(l,f,o)}function t(l){return Buffer.isBuffer(l)&&(l=l.toString("utf8")),l=l.replace(/^\uFEFF/,""),l}var p={readFile:s,readFileSync:i,writeFile:u,writeFileSync:r};a.exports=p}),wn=j((e,a)=>{"use strict";B();var n=Ze().fromCallback,s=Tc();a.exports={readJson:n(s.readFile),readJsonSync:s.readFileSync,writeJson:n(s.writeFile),writeJsonSync:s.writeFileSync}}),Bc=j((e,a)=>{"use strict";B();var n=Z("path"),s=Qe(),i=lt().pathExists,h=wn();function u(r,t,p,l){typeof p=="function"&&(l=p,p={});let c=n.dirname(r);i(c,(o,d)=>{if(o)return l(o);if(d)return h.writeJson(r,t,p,l);s.mkdirs(c,f=>{if(f)return l(f);h.writeJson(r,t,p,l)})})}a.exports=u}),Pc=j((e,a)=>{"use strict";B();var n=xe(),s=Z("path"),i=Qe(),h=wn();function u(r,t,p){let l=s.dirname(r);n.existsSync(l)||i.mkdirsSync(l),h.writeJsonSync(r,t,p)}a.exports=u}),Lc=j((e,a)=>{"use strict";B();var n=Ze().fromCallback,s=wn();s.outputJson=n(Bc()),s.outputJsonSync=Pc(),s.outputJSON=s.outputJson,s.outputJSONSync=s.outputJsonSync,s.writeJSON=s.writeJson,s.writeJSONSync=s.writeJsonSync,s.readJSON=s.readJson,s.readJSONSync=s.readJsonSync,a.exports=s}),Ic=j((e,a)=>{"use strict";B();var n=xe(),s=Z("path"),i=ss().copySync,h=Er().removeSync,u=Qe().mkdirpSync,r=_r();function t(o,d,f){f=f||{};let y=f.overwrite||f.clobber||!1,{srcStat:b}=r.checkPathsSync(o,d,"move");return r.checkParentPathsSync(o,b,d,"move"),u(s.dirname(d)),p(o,d,y)}function p(o,d,f){if(f)return h(d),l(o,d,f);if(n.existsSync(d))throw new Error("dest already exists.");return l(o,d,f)}function l(o,d,f){try{n.renameSync(o,d)}catch(y){if(y.code!=="EXDEV")throw y;return c(o,d,f)}}function c(o,d,f){return i(o,d,{overwrite:f,errorOnExist:!0}),h(o)}a.exports=t}),jc=j((e,a)=>{"use strict";B(),a.exports={moveSync:Ic()}}),Nc=j((e,a)=>{"use strict";B();var n=xe(),s=Z("path"),i=os().copy,h=Er().remove,u=Qe().mkdirp,r=lt().pathExists,t=_r();function p(d,f,y,b){typeof y=="function"&&(b=y,y={});let w=y.overwrite||y.clobber||!1;t.checkPaths(d,f,"move",(g,D)=>{if(g)return b(g);let{srcStat:E}=D;t.checkParentPaths(d,E,f,"move",v=>{if(v)return b(v);u(s.dirname(f),m=>m?b(m):l(d,f,w,b))})})}function l(d,f,y,b){if(y)return h(f,w=>w?b(w):c(d,f,y,b));r(f,(w,g)=>w?b(w):g?b(new Error("dest already exists.")):c(d,f,y,b))}function c(d,f,y,b){n.rename(d,f,w=>w?w.code!=="EXDEV"?b(w):o(d,f,y,b):b())}function o(d,f,y,b){i(d,f,{overwrite:y,errorOnExist:!0},w=>w?b(w):h(d,b))}a.exports=p}),Mc=j((e,a)=>{"use strict";B();var n=Ze().fromCallback;a.exports={move:n(Nc())}}),$c=j((e,a)=>{"use strict";B();var n=Ze().fromCallback,s=xe(),i=Z("path"),h=Qe(),u=lt().pathExists;function r(p,l,c,o){typeof c=="function"&&(o=c,c="utf8");let d=i.dirname(p);u(d,(f,y)=>{if(f)return o(f);if(y)return s.writeFile(p,l,c,o);h.mkdirs(d,b=>{if(b)return o(b);s.writeFile(p,l,c,o)})})}function t(p,...l){let c=i.dirname(p);if(s.existsSync(c))return s.writeFileSync(p,...l);h.mkdirsSync(c),s.writeFileSync(p,...l)}a.exports={outputFile:n(r),outputFileSync:t}}),Hc=j((e,a)=>{"use strict";B(),a.exports=Object.assign({},rs(),ss(),os(),Ac(),Rc(),Lc(),Qe(),jc(),Mc(),$c(),lt(),Er());var n=Z("fs");Object.getOwnPropertyDescriptor(n,"promises")&&Object.defineProperty(a.exports,"promises",{get(){return n.promises}})});B();B();var a2=Re(pc());B();B();function Uc(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}B();B();function mn(e){return mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},mn(e)}B();function Gc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qc(e,a){if(a&&(mn(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gc(e)}B();function vr(e){return vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},vr(e)}B();B();function Kt(e,a){return Kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},Kt(e,a)}function Wc(e,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),a&&Kt(e,a)}B();B();function zc(e){return Function.toString.call(e).indexOf("[native code]")!==-1}B();B();function Vc(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function br(e,a,n){return Vc()?br=Reflect.construct.bind():br=function(s,i,h){var u=[null];u.push.apply(u,i);var r=Function.bind.apply(s,u),t=new r;return h&&Kt(t,h.prototype),t},br.apply(null,arguments)}function yn(e){var a=typeof Map=="function"?new Map:void 0;return yn=function(n){if(n===null||!zc(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof a<"u"){if(a.has(n))return a.get(n);a.set(n,s)}function s(){return br(n,arguments,vr(this).constructor)}return s.prototype=Object.create(n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),Kt(s,n)},yn(e)}var Kc=Re(bc()),_n=Re(Hc()),Yc=function(e){Wc(a,e);function a(n){var s;return Uc(this,a),s=qc(this,vr(a).call(this,"No package.json could be found upwards from the directory ".concat(n))),s.directory=n,s}return a}(yn(Error));function Jc(e,a){try{var n=_n.default.readJsonSync(Dr.default.join(e,"package.json"));if(a.current===void 0&&(a.current=e),n.workspaces||n.bolt)return e}catch(s){if(s.code!=="ENOENT")throw s}}function Zc(e){try{var a=_n.default.readJsonSync(Dr.default.join(e,"lerna.json"));if(a.useWorkspaces!==!0)return e}catch(n){if(n.code!=="ENOENT")throw n}}function Xc(e){var a=_n.default.existsSync(Dr.default.join(e,"pnpm-workspace.yaml"));if(a)return e}function Qc(e){var a={current:void 0},n=(0,Kc.sync)(function(s){return[Zc(s),Jc(s,a),Xc(s)].find(function(i){return i})},{cwd:e,type:"directory"});if(a.current===void 0)throw new Yc(e);return n===void 0?a.current:n}B();var eh=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,th=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,rh=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,pn={Space_Separator:eh,ID_Start:th,ID_Continue:rh},Ie={isSpaceSeparator(e){return typeof e=="string"&&pn.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||pn.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||pn.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},gn,Ve,ut,wr,mt,rt,He,En,Vt,nh=function(e,a){gn=String(e),Ve="start",ut=[],wr=0,mt=1,rt=0,He=void 0,En=void 0,Vt=void 0;do He=ih(),uh[Ve]();while(He.type!=="eof");return typeof a=="function"?bn({"":Vt},"",a):Vt};function bn(e,a,n){let s=e[a];if(s!=null&&typeof s=="object")if(Array.isArray(s))for(let i=0;i<s.length;i++){let h=String(i),u=bn(s,h,n);u===void 0?delete s[h]:Object.defineProperty(s,h,{value:u,writable:!0,enumerable:!0,configurable:!0})}else for(let i in s){let h=bn(s,i,n);h===void 0?delete s[i]:Object.defineProperty(s,i,{value:h,writable:!0,enumerable:!0,configurable:!0})}return n.call(e,a,s)}var Se,De,zt,ot,Ce;function ih(){for(Se="default",De="",zt=!1,ot=1;;){Ce=at();let e=us[Se]();if(e)return e}}function at(){if(gn[wr])return String.fromCodePoint(gn.codePointAt(wr))}function se(){let e=at();return e===`
|
|
45
|
-
`?(mt++,rt=0):e?rt+=e.length:rt++,e&&(wr+=e.length),e}var us={default(){switch(Ce){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
|
46
|
-
`:case"\r":case"\u2028":case"\u2029":se();return;case"/":se(),Se="comment";return;case void 0:return se(),Te("eof")}if(Ie.isSpaceSeparator(Ce)){se();return}return us[Ve]()},comment(){switch(Ce){case"*":se(),Se="multiLineComment";return;case"/":se(),Se="singleLineComment";return}throw Pe(se())},multiLineComment(){switch(Ce){case"*":se(),Se="multiLineCommentAsterisk";return;case void 0:throw Pe(se())}se()},multiLineCommentAsterisk(){switch(Ce){case"*":se();return;case"/":se(),Se="default";return;case void 0:throw Pe(se())}se(),Se="multiLineComment"},singleLineComment(){switch(Ce){case`
|
|
47
|
-
`:case"\r":case"\u2028":case"\u2029":se(),Se="default";return;case void 0:return se(),Te("eof")}se()},value(){switch(Ce){case"{":case"[":return Te("punctuator",se());case"n":return se(),_t("ull"),Te("null",null);case"t":return se(),_t("rue"),Te("boolean",!0);case"f":return se(),_t("alse"),Te("boolean",!1);case"-":case"+":se()==="-"&&(ot=-1),Se="sign";return;case".":De=se(),Se="decimalPointLeading";return;case"0":De=se(),Se="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":De=se(),Se="decimalInteger";return;case"I":return se(),_t("nfinity"),Te("numeric",1/0);case"N":return se(),_t("aN"),Te("numeric",NaN);case'"':case"'":zt=se()==='"',De="",Se="string";return}throw Pe(se())},identifierNameStartEscape(){if(Ce!=="u")throw Pe(se());se();let e=vn();switch(e){case"$":case"_":break;default:if(!Ie.isIdStartChar(e))throw ts();break}De+=e,Se="identifierName"},identifierName(){switch(Ce){case"$":case"_":case"\u200C":case"\u200D":De+=se();return;case"\\":se(),Se="identifierNameEscape";return}if(Ie.isIdContinueChar(Ce)){De+=se();return}return Te("identifier",De)},identifierNameEscape(){if(Ce!=="u")throw Pe(se());se();let e=vn();switch(e){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!Ie.isIdContinueChar(e))throw ts();break}De+=e,Se="identifierName"},sign(){switch(Ce){case".":De=se(),Se="decimalPointLeading";return;case"0":De=se(),Se="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":De=se(),Se="decimalInteger";return;case"I":return se(),_t("nfinity"),Te("numeric",ot*(1/0));case"N":return se(),_t("aN"),Te("numeric",NaN)}throw Pe(se())},zero(){switch(Ce){case".":De+=se(),Se="decimalPoint";return;case"e":case"E":De+=se(),Se="decimalExponent";return;case"x":case"X":De+=se(),Se="hexadecimal";return}return Te("numeric",ot*0)},decimalInteger(){switch(Ce){case".":De+=se(),Se="decimalPoint";return;case"e":case"E":De+=se(),Se="decimalExponent";return}if(Ie.isDigit(Ce)){De+=se();return}return Te("numeric",ot*Number(De))},decimalPointLeading(){if(Ie.isDigit(Ce)){De+=se(),Se="decimalFraction";return}throw Pe(se())},decimalPoint(){switch(Ce){case"e":case"E":De+=se(),Se="decimalExponent";return}if(Ie.isDigit(Ce)){De+=se(),Se="decimalFraction";return}return Te("numeric",ot*Number(De))},decimalFraction(){switch(Ce){case"e":case"E":De+=se(),Se="decimalExponent";return}if(Ie.isDigit(Ce)){De+=se();return}return Te("numeric",ot*Number(De))},decimalExponent(){switch(Ce){case"+":case"-":De+=se(),Se="decimalExponentSign";return}if(Ie.isDigit(Ce)){De+=se(),Se="decimalExponentInteger";return}throw Pe(se())},decimalExponentSign(){if(Ie.isDigit(Ce)){De+=se(),Se="decimalExponentInteger";return}throw Pe(se())},decimalExponentInteger(){if(Ie.isDigit(Ce)){De+=se();return}return Te("numeric",ot*Number(De))},hexadecimal(){if(Ie.isHexDigit(Ce)){De+=se(),Se="hexadecimalInteger";return}throw Pe(se())},hexadecimalInteger(){if(Ie.isHexDigit(Ce)){De+=se();return}return Te("numeric",ot*Number(De))},string(){switch(Ce){case"\\":se(),De+=sh();return;case'"':if(zt)return se(),Te("string",De);De+=se();return;case"'":if(!zt)return se(),Te("string",De);De+=se();return;case`
|
|
48
|
-
`:case"\r":throw Pe(se());case"\u2028":case"\u2029":ah(Ce);break;case void 0:throw Pe(se())}De+=se()},start(){switch(Ce){case"{":case"[":return Te("punctuator",se())}Se="value"},beforePropertyName(){switch(Ce){case"$":case"_":De=se(),Se="identifierName";return;case"\\":se(),Se="identifierNameStartEscape";return;case"}":return Te("punctuator",se());case'"':case"'":zt=se()==='"',Se="string";return}if(Ie.isIdStartChar(Ce)){De+=se(),Se="identifierName";return}throw Pe(se())},afterPropertyName(){if(Ce===":")return Te("punctuator",se());throw Pe(se())},beforePropertyValue(){Se="value"},afterPropertyValue(){switch(Ce){case",":case"}":return Te("punctuator",se())}throw Pe(se())},beforeArrayValue(){if(Ce==="]")return Te("punctuator",se());Se="value"},afterArrayValue(){switch(Ce){case",":case"]":return Te("punctuator",se())}throw Pe(se())},end(){throw Pe(se())}};function Te(e,a){return{type:e,value:a,line:mt,column:rt}}function _t(e){for(let a of e){if(at()!==a)throw Pe(se());se()}}function sh(){switch(at()){case"b":return se(),"\b";case"f":return se(),"\f";case"n":return se(),`
|
|
49
|
-
`;case"r":return se(),"\r";case"t":return se()," ";case"v":return se(),"\v";case"0":if(se(),Ie.isDigit(at()))throw Pe(se());return"\0";case"x":return se(),oh();case"u":return se(),vn();case`
|
|
50
|
-
`:case"\u2028":case"\u2029":return se(),"";case"\r":return se(),at()===`
|
|
51
|
-
`&&se(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw Pe(se());case void 0:throw Pe(se())}return se()}function oh(){let e="",a=at();if(!Ie.isHexDigit(a)||(e+=se(),a=at(),!Ie.isHexDigit(a)))throw Pe(se());return e+=se(),String.fromCodePoint(parseInt(e,16))}function vn(){let e="",a=4;for(;a-- >0;){let n=at();if(!Ie.isHexDigit(n))throw Pe(se());e+=se()}return String.fromCodePoint(parseInt(e,16))}var uh={start(){if(He.type==="eof")throw Et();fn()},beforePropertyName(){switch(He.type){case"identifier":case"string":En=He.value,Ve="afterPropertyName";return;case"punctuator":gr();return;case"eof":throw Et()}},afterPropertyName(){if(He.type==="eof")throw Et();Ve="beforePropertyValue"},beforePropertyValue(){if(He.type==="eof")throw Et();fn()},beforeArrayValue(){if(He.type==="eof")throw Et();if(He.type==="punctuator"&&He.value==="]"){gr();return}fn()},afterPropertyValue(){if(He.type==="eof")throw Et();switch(He.value){case",":Ve="beforePropertyName";return;case"}":gr()}},afterArrayValue(){if(He.type==="eof")throw Et();switch(He.value){case",":Ve="beforeArrayValue";return;case"]":gr()}},end(){}};function fn(){let e;switch(He.type){case"punctuator":switch(He.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=He.value;break}if(Vt===void 0)Vt=e;else{let a=ut[ut.length-1];Array.isArray(a)?a.push(e):Object.defineProperty(a,En,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")ut.push(e),Array.isArray(e)?Ve="beforeArrayValue":Ve="beforePropertyName";else{let a=ut[ut.length-1];a==null?Ve="end":Array.isArray(a)?Ve="afterArrayValue":Ve="afterPropertyValue"}}function gr(){ut.pop();let e=ut[ut.length-1];e==null?Ve="end":Array.isArray(e)?Ve="afterArrayValue":Ve="afterPropertyValue"}function Pe(e){return Dn(e===void 0?`JSON5: invalid end of input at ${mt}:${rt}`:`JSON5: invalid character '${as(e)}' at ${mt}:${rt}`)}function Et(){return Dn(`JSON5: invalid end of input at ${mt}:${rt}`)}function ts(){return rt-=5,Dn(`JSON5: invalid identifier character at ${mt}:${rt}`)}function ah(e){console.warn(`JSON5: '${as(e)}' in strings is not valid ECMAScript; consider escaping`)}function as(e){let a={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(a[e])return a[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function Dn(e){let a=new SyntaxError(e);return a.lineNumber=mt,a.columnNumber=rt,a}var lh=function(e,a,n){let s=[],i="",h,u,r="",t;if(a!=null&&typeof a=="object"&&!Array.isArray(a)&&(n=a.space,t=a.quote,a=a.replacer),typeof a=="function")u=a;else if(Array.isArray(a)){h=[];for(let f of a){let y;typeof f=="string"?y=f:(typeof f=="number"||f instanceof String||f instanceof Number)&&(y=String(f)),y!==void 0&&h.indexOf(y)<0&&h.push(y)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),r=" ".substr(0,n)):typeof n=="string"&&(r=n.substr(0,10)),p("",{"":e});function p(f,y){let b=y[f];switch(b!=null&&(typeof b.toJSON5=="function"?b=b.toJSON5(f):typeof b.toJSON=="function"&&(b=b.toJSON(f))),u&&(b=u.call(y,f,b)),b instanceof Number?b=Number(b):b instanceof String?b=String(b):b instanceof Boolean&&(b=b.valueOf()),b){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof b=="string")return l(b,!1);if(typeof b=="number")return String(b);if(typeof b=="object")return Array.isArray(b)?d(b):c(b)}function l(f){let y={"'":.1,'"':.2},b={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},w="";for(let D=0;D<f.length;D++){let E=f[D];switch(E){case"'":case'"':y[E]++,w+=E;continue;case"\0":if(Ie.isDigit(f[D+1])){w+="\\x00";continue}}if(b[E]){w+=b[E];continue}if(E<" "){let v=E.charCodeAt(0).toString(16);w+="\\x"+("00"+v).substring(v.length);continue}w+=E}let g=t||Object.keys(y).reduce((D,E)=>y[D]<y[E]?D:E);return w=w.replace(new RegExp(g,"g"),b[g]),g+w+g}function c(f){if(s.indexOf(f)>=0)throw TypeError("Converting circular structure to JSON5");s.push(f);let y=i;i=i+r;let b=h||Object.keys(f),w=[];for(let D of b){let E=p(D,f);if(E!==void 0){let v=o(D)+":";r!==""&&(v+=" "),v+=E,w.push(v)}}let g;if(w.length===0)g="{}";else{let D;if(r==="")D=w.join(","),g="{"+D+"}";else{let E=`,
|
|
52
|
-
`+i;D=w.join(E),g=`{
|
|
53
|
-
`+i+D+`,
|
|
54
|
-
`+y+"}"}}return s.pop(),i=y,g}function o(f){if(f.length===0)return l(f,!0);let y=String.fromCodePoint(f.codePointAt(0));if(!Ie.isIdStartChar(y))return l(f,!0);for(let b=y.length;b<f.length;b++)if(!Ie.isIdContinueChar(String.fromCodePoint(f.codePointAt(b))))return l(f,!0);return f}function d(f){if(s.indexOf(f)>=0)throw TypeError("Converting circular structure to JSON5");s.push(f);let y=i;i=i+r;let b=[];for(let g=0;g<f.length;g++){let D=p(String(g),f);b.push(D!==void 0?D:"null")}let w;if(b.length===0)w="[]";else if(r==="")w="["+b.join(",")+"]";else{let g=`,
|
|
55
|
-
`+i,D=b.join(g);w=`[
|
|
56
|
-
`+i+D+`,
|
|
57
|
-
`+y+"]"}return s.pop(),i=y,w}},ch={parse:nh,stringify:lh},hh=ch,Sn=hh;function ph(e){let a=Sn.parse(e);return!(a&&"extends"in a)}var dn={};function Yt(e,a){var n;let s=(n=a==null?void 0:a.cache)!=null?n:!0,i=e||process.cwd();if(s&&dn[i])return dn[i];let h=Wt({target:"turbo.json",cwd:i,contentCheck:ph});if(!h)try{if(h=Qc(i),!h)return null}catch{return null}return s&&(dn[i]=h),h}var Zt=Be(require("fs"),1),St=Be(require("path"),1),fh=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function a(s){return s.reduce((i,h)=>[].concat(i,h),[])}e.flatten=a;function n(s,i){let h=[[]],u=0;for(let r of s)i(r)?(u++,h[u]=[]):h[u].push(r);return h}e.splitWhen=n}),dh=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function a(n){return n.code==="ENOENT"}e.isEnoentCodeError=a}),mh=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var a=class{constructor(s,i){this.name=s,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function n(s,i){return new a(s,i)}e.createDirentFromStats=n}),yh=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var a=Z("path"),n=2,s=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(t){return t.replace(/\\/g,"/")}e.unixify=i;function h(t,p){return a.resolve(t,p)}e.makeAbsolute=h;function u(t){return t.replace(s,"\\$2")}e.escape=u;function r(t){if(t.charAt(0)==="."){let p=t.charAt(1);if(p==="/"||p==="\\")return t.slice(n)}return t}e.removeLeadingDotSegment=r}),gh=j((e,a)=>{B(),a.exports=function(n){if(typeof n!="string"||n==="")return!1;for(var s;s=/(\\).|([@?!+*]\(.*\))/g.exec(n);){if(s[2])return!0;n=n.slice(s.index+s[0].length)}return!1}}),bh=j((e,a)=>{B();var n=gh(),s={"{":"}","(":")","[":"]"},i=function(u){if(u[0]==="!")return!0;for(var r=0,t=-2,p=-2,l=-2,c=-2,o=-2;r<u.length;){if(u[r]==="*"||u[r+1]==="?"&&/[\].+)]/.test(u[r])||p!==-1&&u[r]==="["&&u[r+1]!=="]"&&(p<r&&(p=u.indexOf("]",r)),p>r&&(o===-1||o>p||(o=u.indexOf("\\",r),o===-1||o>p)))||l!==-1&&u[r]==="{"&&u[r+1]!=="}"&&(l=u.indexOf("}",r),l>r&&(o=u.indexOf("\\",r),o===-1||o>l))||c!==-1&&u[r]==="("&&u[r+1]==="?"&&/[:!=]/.test(u[r+2])&&u[r+3]!==")"&&(c=u.indexOf(")",r),c>r&&(o=u.indexOf("\\",r),o===-1||o>c))||t!==-1&&u[r]==="("&&u[r+1]!=="|"&&(t<r&&(t=u.indexOf("|",r)),t!==-1&&u[t+1]!==")"&&(c=u.indexOf(")",t),c>t&&(o=u.indexOf("\\",t),o===-1||o>c))))return!0;if(u[r]==="\\"){var d=u[r+1];r+=2;var f=s[d];if(f){var y=u.indexOf(f,r);y!==-1&&(r=y+1)}if(u[r]==="!")return!0}else r++}return!1},h=function(u){if(u[0]==="!")return!0;for(var r=0;r<u.length;){if(/[*?{}()[\]]/.test(u[r]))return!0;if(u[r]==="\\"){var t=u[r+1];r+=2;var p=s[t];if(p){var l=u.indexOf(p,r);l!==-1&&(r=l+1)}if(u[r]==="!")return!0}else r++}return!1};a.exports=function(u,r){if(typeof u!="string"||u==="")return!1;if(n(u))return!0;var t=i;return r&&r.strict===!1&&(t=h),t(u)}}),vh=j((e,a)=>{"use strict";B();var n=bh(),s=Z("path").posix.dirname,i=Z("os").platform()==="win32",h="/",u=/\\/g,r=/[\{\[].*[\}\]]$/,t=/(^|[^\\])([\{\[]|\([^\)]+$)/,p=/\\([\!\*\?\|\[\]\(\)\{\}])/g;a.exports=function(l,c){var o=Object.assign({flipBackslashes:!0},c);o.flipBackslashes&&i&&l.indexOf(h)<0&&(l=l.replace(u,h)),r.test(l)&&(l+=h),l+="a";do l=s(l);while(n(l)||t.test(l));return l.replace(p,"$1")}}),Pn=j(e=>{"use strict";B(),e.isInteger=a=>typeof a=="number"?Number.isInteger(a):typeof a=="string"&&a.trim()!==""?Number.isInteger(Number(a)):!1,e.find=(a,n)=>a.nodes.find(s=>s.type===n),e.exceedsLimit=(a,n,s=1,i)=>i===!1||!e.isInteger(a)||!e.isInteger(n)?!1:(Number(n)-Number(a))/Number(s)>=i,e.escapeNode=(a,n=0,s)=>{let i=a.nodes[n];!i||(s&&i.type===s||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=a=>a.type!=="brace"||a.commas>>0+a.ranges>>0?!1:(a.invalid=!0,!0),e.isInvalidBrace=a=>a.type!=="brace"?!1:a.invalid===!0||a.dollar?!0:!(a.commas>>0+a.ranges>>0)||a.open!==!0||a.close!==!0?(a.invalid=!0,!0):!1,e.isOpenOrClose=a=>a.type==="open"||a.type==="close"?!0:a.open===!0||a.close===!0,e.reduce=a=>a.reduce((n,s)=>(s.type==="text"&&n.push(s.value),s.type==="range"&&(s.type="text"),n),[]),e.flatten=(...a)=>{let n=[],s=i=>{for(let h=0;h<i.length;h++){let u=i[h];Array.isArray(u)?s(u,n):u!==void 0&&n.push(u)}return n};return s(a),n}}),Ln=j((e,a)=>{"use strict";B();var n=Pn();a.exports=(s,i={})=>{let h=(u,r={})=>{let t=i.escapeInvalid&&n.isInvalidBrace(r),p=u.invalid===!0&&i.escapeInvalid===!0,l="";if(u.value)return(t||p)&&n.isOpenOrClose(u)?"\\"+u.value:u.value;if(u.value)return u.value;if(u.nodes)for(let c of u.nodes)l+=h(c);return l};return h(s)}}),wh=j((e,a)=>{"use strict";B(),a.exports=function(n){return typeof n=="number"?n-n===0:typeof n=="string"&&n.trim()!==""?Number.isFinite?Number.isFinite(+n):isFinite(+n):!1}}),_h=j((e,a)=>{"use strict";B();var n=wh(),s=(g,D,E)=>{if(n(g)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(D===void 0||g===D)return String(g);if(n(D)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let v={relaxZeros:!0,...E};typeof v.strictZeros=="boolean"&&(v.relaxZeros=v.strictZeros===!1);let m=String(v.relaxZeros),_=String(v.shorthand),S=String(v.capture),A=String(v.wrap),x=g+":"+D+"="+m+_+S+A;if(s.cache.hasOwnProperty(x))return s.cache[x].result;let L=Math.min(g,D),T=Math.max(g,D);if(Math.abs(L-T)===1){let R=g+"|"+D;return v.capture?`(${R})`:v.wrap===!1?R:`(?:${R})`}let k=b(g)||b(D),O={min:g,max:D,a:L,b:T},I=[],$=[];if(k&&(O.isPadded=k,O.maxLen=String(O.max).length),L<0){let R=T<0?Math.abs(T):1;$=r(R,Math.abs(L),O,v),L=O.a=0}return T>=0&&(I=r(L,T,O,v)),O.negatives=$,O.positives=I,O.result=i($,I,v),v.capture===!0?O.result=`(${O.result})`:v.wrap!==!1&&I.length+$.length>1&&(O.result=`(?:${O.result})`),s.cache[x]=O,O.result};function i(g,D,E){let v=t(g,D,"-",!1,E)||[],m=t(D,g,"",!1,E)||[],_=t(g,D,"-?",!0,E)||[];return v.concat(_).concat(m).join("|")}function h(g,D){let E=1,v=1,m=o(g,E),_=new Set([D]);for(;g<=m&&m<=D;)_.add(m),E+=1,m=o(g,E);for(m=d(D+1,v)-1;g<m&&m<=D;)_.add(m),v+=1,m=d(D+1,v)-1;return _=[..._],_.sort(l),_}function u(g,D,E){if(g===D)return{pattern:g,count:[],digits:0};let v=p(g,D),m=v.length,_="",S=0;for(let A=0;A<m;A++){let[x,L]=v[A];x===L?_+=x:x!=="0"||L!=="9"?_+=y(x,L,E):S++}return S&&(_+=E.shorthand===!0?"\\d":"[0-9]"),{pattern:_,count:[S],digits:m}}function r(g,D,E,v){let m=h(g,D),_=[],S=g,A;for(let x=0;x<m.length;x++){let L=m[x],T=u(String(S),String(L),v),k="";if(!E.isPadded&&A&&A.pattern===T.pattern){A.count.length>1&&A.count.pop(),A.count.push(T.count[0]),A.string=A.pattern+f(A.count),S=L+1;continue}E.isPadded&&(k=w(L,E,v)),T.string=k+T.pattern+f(T.count),_.push(T),S=L+1,A=T}return _}function t(g,D,E,v,m){let _=[];for(let S of g){let{string:A}=S;!v&&!c(D,"string",A)&&_.push(E+A),v&&c(D,"string",A)&&_.push(E+A)}return _}function p(g,D){let E=[];for(let v=0;v<g.length;v++)E.push([g[v],D[v]]);return E}function l(g,D){return g>D?1:D>g?-1:0}function c(g,D,E){return g.some(v=>v[D]===E)}function o(g,D){return Number(String(g).slice(0,-D)+"9".repeat(D))}function d(g,D){return g-g%Math.pow(10,D)}function f(g){let[D=0,E=""]=g;return E||D>1?`{${D+(E?","+E:"")}}`:""}function y(g,D,E){return`[${g}${D-g===1?"":"-"}${D}]`}function b(g){return/^-?(0+)\d/.test(g)}function w(g,D,E){if(!D.isPadded)return g;let v=Math.abs(D.maxLen-String(g).length),m=E.relaxZeros!==!1;switch(v){case 0:return"";case 1:return m?"0?":"0";case 2:return m?"0{0,2}":"00";default:return m?`0{0,${v}}`:`0{${v}}`}}s.cache={},s.clearCache=()=>s.cache={},a.exports=s}),Ss=j((e,a)=>{"use strict";B();var n=Z("util"),s=_h(),i=v=>v!==null&&typeof v=="object"&&!Array.isArray(v),h=v=>m=>v===!0?Number(m):String(m),u=v=>typeof v=="number"||typeof v=="string"&&v!=="",r=v=>Number.isInteger(+v),t=v=>{let m=`${v}`,_=-1;if(m[0]==="-"&&(m=m.slice(1)),m==="0")return!1;for(;m[++_]==="0";);return _>0},p=(v,m,_)=>typeof v=="string"||typeof m=="string"?!0:_.stringify===!0,l=(v,m,_)=>{if(m>0){let S=v[0]==="-"?"-":"";S&&(v=v.slice(1)),v=S+v.padStart(S?m-1:m,"0")}return _===!1?String(v):v},c=(v,m)=>{let _=v[0]==="-"?"-":"";for(_&&(v=v.slice(1),m--);v.length<m;)v="0"+v;return _?"-"+v:v},o=(v,m)=>{v.negatives.sort((L,T)=>L<T?-1:L>T?1:0),v.positives.sort((L,T)=>L<T?-1:L>T?1:0);let _=m.capture?"":"?:",S="",A="",x;return v.positives.length&&(S=v.positives.join("|")),v.negatives.length&&(A=`-(${_}${v.negatives.join("|")})`),S&&A?x=`${S}|${A}`:x=S||A,m.wrap?`(${_}${x})`:x},d=(v,m,_,S)=>{if(_)return s(v,m,{wrap:!1,...S});let A=String.fromCharCode(v);if(v===m)return A;let x=String.fromCharCode(m);return`[${A}-${x}]`},f=(v,m,_)=>{if(Array.isArray(v)){let S=_.wrap===!0,A=_.capture?"":"?:";return S?`(${A}${v.join("|")})`:v.join("|")}return s(v,m,_)},y=(...v)=>new RangeError("Invalid range arguments: "+n.inspect(...v)),b=(v,m,_)=>{if(_.strictRanges===!0)throw y([v,m]);return[]},w=(v,m)=>{if(m.strictRanges===!0)throw new TypeError(`Expected step "${v}" to be a number`);return[]},g=(v,m,_=1,S={})=>{let A=Number(v),x=Number(m);if(!Number.isInteger(A)||!Number.isInteger(x)){if(S.strictRanges===!0)throw y([v,m]);return[]}A===0&&(A=0),x===0&&(x=0);let L=A>x,T=String(v),k=String(m),O=String(_);_=Math.max(Math.abs(_),1);let I=t(T)||t(k)||t(O),$=I?Math.max(T.length,k.length,O.length):0,R=I===!1&&p(v,m,S)===!1,G=S.transform||h(R);if(S.toRegex&&_===1)return d(c(v,$),c(m,$),!0,S);let z={negatives:[],positives:[]},Q=F=>z[F<0?"negatives":"positives"].push(Math.abs(F)),P=[],N=0;for(;L?A>=x:A<=x;)S.toRegex===!0&&_>1?Q(A):P.push(l(G(A,N),$,R)),A=L?A-_:A+_,N++;return S.toRegex===!0?_>1?o(z,S):f(P,null,{wrap:!1,...S}):P},D=(v,m,_=1,S={})=>{if(!r(v)&&v.length>1||!r(m)&&m.length>1)return b(v,m,S);let A=S.transform||(R=>String.fromCharCode(R)),x=`${v}`.charCodeAt(0),L=`${m}`.charCodeAt(0),T=x>L,k=Math.min(x,L),O=Math.max(x,L);if(S.toRegex&&_===1)return d(k,O,!1,S);let I=[],$=0;for(;T?x>=L:x<=L;)I.push(A(x,$)),x=T?x-_:x+_,$++;return S.toRegex===!0?f(I,null,{wrap:!1,options:S}):I},E=(v,m,_,S={})=>{if(m==null&&u(v))return[v];if(!u(v)||!u(m))return b(v,m,S);if(typeof _=="function")return E(v,m,1,{transform:_});if(i(_))return E(v,m,0,_);let A={...S};return A.capture===!0&&(A.wrap=!0),_=_||A.step||1,r(_)?r(v)&&r(m)?g(v,m,_,A):D(v,m,Math.max(Math.abs(_),1),A):_!=null&&!i(_)?w(_,A):E(v,m,1,_)};a.exports=E}),Eh=j((e,a)=>{"use strict";B();var n=Ss(),s=Pn(),i=(h,u={})=>{let r=(t,p={})=>{let l=s.isInvalidBrace(p),c=t.invalid===!0&&u.escapeInvalid===!0,o=l===!0||c===!0,d=u.escapeInvalid===!0?"\\":"",f="";if(t.isOpen===!0||t.isClose===!0)return d+t.value;if(t.type==="open")return o?d+t.value:"(";if(t.type==="close")return o?d+t.value:")";if(t.type==="comma")return t.prev.type==="comma"?"":o?t.value:"|";if(t.value)return t.value;if(t.nodes&&t.ranges>0){let y=s.reduce(t.nodes),b=n(...y,{...u,wrap:!1,toRegex:!0});if(b.length!==0)return y.length>1&&b.length>1?`(${b})`:b}if(t.nodes)for(let y of t.nodes)f+=r(y,t);return f};return r(h)};a.exports=i}),Dh=j((e,a)=>{"use strict";B();var n=Ss(),s=Ln(),i=Pn(),h=(r="",t="",p=!1)=>{let l=[];if(r=[].concat(r),t=[].concat(t),!t.length)return r;if(!r.length)return p?i.flatten(t).map(c=>`{${c}}`):t;for(let c of r)if(Array.isArray(c))for(let o of c)l.push(h(o,t,p));else for(let o of t)p===!0&&typeof o=="string"&&(o=`{${o}}`),l.push(Array.isArray(o)?h(c,o,p):c+o);return i.flatten(l)},u=(r,t={})=>{let p=t.rangeLimit===void 0?1e3:t.rangeLimit,l=(c,o={})=>{c.queue=[];let d=o,f=o.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,f=d.queue;if(c.invalid||c.dollar){f.push(h(f.pop(),s(c,t)));return}if(c.type==="brace"&&c.invalid!==!0&&c.nodes.length===2){f.push(h(f.pop(),["{}"]));return}if(c.nodes&&c.ranges>0){let g=i.reduce(c.nodes);if(i.exceedsLimit(...g,t.step,p))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let D=n(...g,t);D.length===0&&(D=s(c,t)),f.push(h(f.pop(),D)),c.nodes=[];return}let y=i.encloseBrace(c),b=c.queue,w=c;for(;w.type!=="brace"&&w.type!=="root"&&w.parent;)w=w.parent,b=w.queue;for(let g=0;g<c.nodes.length;g++){let D=c.nodes[g];if(D.type==="comma"&&c.type==="brace"){g===1&&b.push(""),b.push("");continue}if(D.type==="close"){f.push(h(f.pop(),b,y));continue}if(D.value&&D.type!=="open"){b.push(h(b.pop(),D.value));continue}D.nodes&&l(D,c)}return b};return i.flatten(l(r))};a.exports=u}),Sh=j((e,a)=>{"use strict";B(),a.exports={MAX_LENGTH:1024*64,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:`
|
|
58
|
-
`,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:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),Ah=j((e,a)=>{"use strict";B();var n=Ln(),{MAX_LENGTH:s,CHAR_BACKSLASH:i,CHAR_BACKTICK:h,CHAR_COMMA:u,CHAR_DOT:r,CHAR_LEFT_PARENTHESES:t,CHAR_RIGHT_PARENTHESES:p,CHAR_LEFT_CURLY_BRACE:l,CHAR_RIGHT_CURLY_BRACE:c,CHAR_LEFT_SQUARE_BRACKET:o,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:f,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:w}=Sh(),g=(D,E={})=>{if(typeof D!="string")throw new TypeError("Expected a string");let v=E||{},m=typeof v.maxLength=="number"?Math.min(s,v.maxLength):s;if(D.length>m)throw new SyntaxError(`Input length (${D.length}), exceeds max characters (${m})`);let _={type:"root",input:D,nodes:[]},S=[_],A=_,x=_,L=0,T=D.length,k=0,O=0,I,$={},R=()=>D[k++],G=z=>{if(z.type==="text"&&x.type==="dot"&&(x.type="text"),x&&x.type==="text"&&z.type==="text"){x.value+=z.value;return}return A.nodes.push(z),z.parent=A,z.prev=x,x=z,z};for(G({type:"bos"});k<T;)if(A=S[S.length-1],I=R(),!(I===w||I===b)){if(I===i){G({type:"text",value:(E.keepEscaping?I:"")+R()});continue}if(I===d){G({type:"text",value:"\\"+I});continue}if(I===o){L++;let z=!0,Q;for(;k<T&&(Q=R());){if(I+=Q,Q===o){L++;continue}if(Q===i){I+=R();continue}if(Q===d&&(L--,L===0))break}G({type:"text",value:I});continue}if(I===t){A=G({type:"paren",nodes:[]}),S.push(A),G({type:"text",value:I});continue}if(I===p){if(A.type!=="paren"){G({type:"text",value:I});continue}A=S.pop(),G({type:"text",value:I}),A=S[S.length-1];continue}if(I===f||I===y||I===h){let z=I,Q;for(E.keepQuotes!==!0&&(I="");k<T&&(Q=R());){if(Q===i){I+=Q+R();continue}if(Q===z){E.keepQuotes===!0&&(I+=Q);break}I+=Q}G({type:"text",value:I});continue}if(I===l){O++;let z=x.value&&x.value.slice(-1)==="$"||A.dollar===!0;A=G({type:"brace",open:!0,close:!1,dollar:z,depth:O,commas:0,ranges:0,nodes:[]}),S.push(A),G({type:"open",value:I});continue}if(I===c){if(A.type!=="brace"){G({type:"text",value:I});continue}let z="close";A=S.pop(),A.close=!0,G({type:z,value:I}),O--,A=S[S.length-1];continue}if(I===u&&O>0){if(A.ranges>0){A.ranges=0;let z=A.nodes.shift();A.nodes=[z,{type:"text",value:n(A)}]}G({type:"comma",value:I}),A.commas++;continue}if(I===r&&O>0&&A.commas===0){let z=A.nodes;if(O===0||z.length===0){G({type:"text",value:I});continue}if(x.type==="dot"){if(A.range=[],x.value+=I,x.type="range",A.nodes.length!==3&&A.nodes.length!==5){A.invalid=!0,A.ranges=0,x.type="text";continue}A.ranges++,A.args=[];continue}if(x.type==="range"){z.pop();let Q=z[z.length-1];Q.value+=x.value+I,x=Q,A.ranges--;continue}G({type:"dot",value:I});continue}G({type:"text",value:I})}do if(A=S.pop(),A.type!=="root"){A.nodes.forEach(P=>{P.nodes||(P.type==="open"&&(P.isOpen=!0),P.type==="close"&&(P.isClose=!0),P.nodes||(P.type="text"),P.invalid=!0)});let z=S[S.length-1],Q=z.nodes.indexOf(A);z.nodes.splice(Q,1,...A.nodes)}while(S.length>0);return G({type:"eos"}),_};a.exports=g}),Ch=j((e,a)=>{"use strict";B();var n=Ln(),s=Eh(),i=Dh(),h=Ah(),u=(r,t={})=>{let p=[];if(Array.isArray(r))for(let l of r){let c=u.create(l,t);Array.isArray(c)?p.push(...c):p.push(c)}else p=[].concat(u.create(r,t));return t&&t.expand===!0&&t.nodupes===!0&&(p=[...new Set(p)]),p};u.parse=(r,t={})=>h(r,t),u.stringify=(r,t={})=>n(typeof r=="string"?u.parse(r,t):r,t),u.compile=(r,t={})=>(typeof r=="string"&&(r=u.parse(r,t)),s(r,t)),u.expand=(r,t={})=>{typeof r=="string"&&(r=u.parse(r,t));let p=i(r,t);return t.noempty===!0&&(p=p.filter(Boolean)),t.nodupes===!0&&(p=[...new Set(p)]),p},u.create=(r,t={})=>r===""||r.length<3?[r]:t.expand!==!0?u.compile(r,t):u.expand(r,t),a.exports=u}),Fr=j((e,a)=>{"use strict";B();var n=Z("path"),s="\\\\/",i=`[^${s}]`,h="\\.",u="\\+",r="\\?",t="\\/",p="(?=.)",l="[^/]",c=`(?:${t}|$)`,o=`(?:^|${t})`,d=`${h}{1,2}${c}`,f=`(?!${h})`,y=`(?!${o}${d})`,b=`(?!${h}{0,1}${c})`,w=`(?!${d})`,g=`[^.${t}]`,D=`${l}*?`,E={DOT_LITERAL:h,PLUS_LITERAL:u,QMARK_LITERAL:r,SLASH_LITERAL:t,ONE_CHAR:p,QMARK:l,END_ANCHOR:c,DOTS_SLASH:d,NO_DOT:f,NO_DOTS:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:w,QMARK_NO_DOT:g,STAR:D,START_ANCHOR:o},v={...E,SLASH_LITERAL:`[${s}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${h}{1,2}(?:[${s}]|$)`,NO_DOT:`(?!${h})`,NO_DOTS:`(?!(?:^|[${s}])${h}{1,2}(?:[${s}]|$))`,NO_DOT_SLASH:`(?!${h}{0,1}(?:[${s}]|$))`,NO_DOTS_SLASH:`(?!${h}{1,2}(?:[${s}]|$))`,QMARK_NO_DOT:`[^.${s}]`,START_ANCHOR:`(?:^|[${s}])`,END_ANCHOR:`(?:[${s}]|$)`},m={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"};a.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:m,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:n.sep,extglobChars(_){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${_.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(_){return _===!0?v:E}}}),Or=j(e=>{"use strict";B();var a=Z("path"),n=process.platform==="win32",{REGEX_BACKSLASH:s,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:u}=Fr();e.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),e.hasRegexChars=r=>h.test(r),e.isRegexChar=r=>r.length===1&&e.hasRegexChars(r),e.escapeRegex=r=>r.replace(u,"\\$1"),e.toPosixSlashes=r=>r.replace(s,"/"),e.removeBackslashes=r=>r.replace(i,t=>t==="\\"?"":t),e.supportsLookbehinds=()=>{let r=process.version.slice(1).split(".").map(Number);return r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10},e.isWindows=r=>r&&typeof r.windows=="boolean"?r.windows:n===!0||a.sep==="\\",e.escapeLast=(r,t,p)=>{let l=r.lastIndexOf(t,p);return l===-1?r:r[l-1]==="\\"?e.escapeLast(r,t,l-1):`${r.slice(0,l)}\\${r.slice(l)}`},e.removePrefix=(r,t={})=>{let p=r;return p.startsWith("./")&&(p=p.slice(2),t.prefix="./"),p},e.wrapOutput=(r,t={},p={})=>{let l=p.contains?"":"^",c=p.contains?"":"$",o=`${l}(?:${r})${c}`;return t.negated===!0&&(o=`(?:^(?!${o}).*$)`),o}}),xh=j((e,a)=>{"use strict";B();var n=Or(),{CHAR_ASTERISK:s,CHAR_AT:i,CHAR_BACKWARD_SLASH:h,CHAR_COMMA:u,CHAR_DOT:r,CHAR_EXCLAMATION_MARK:t,CHAR_FORWARD_SLASH:p,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:o,CHAR_PLUS:d,CHAR_QUESTION_MARK:f,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:w}=Fr(),g=v=>v===p||v===h,D=v=>{v.isPrefix!==!0&&(v.depth=v.isGlobstar?1/0:1)},E=(v,m)=>{let _=m||{},S=v.length-1,A=_.parts===!0||_.scanToEnd===!0,x=[],L=[],T=[],k=v,O=-1,I=0,$=0,R=!1,G=!1,z=!1,Q=!1,P=!1,N=!1,F=!1,J=!1,q=!1,ee=!1,M=0,K,te,oe={value:"",depth:0,isGlob:!1},ce=()=>O>=S,be=()=>k.charCodeAt(O+1),ye=()=>(K=te,k.charCodeAt(++O));for(;O<S;){te=ye();let X;if(te===h){F=oe.backslashes=!0,te=ye(),te===l&&(N=!0);continue}if(N===!0||te===l){for(M++;ce()!==!0&&(te=ye());){if(te===h){F=oe.backslashes=!0,ye();continue}if(te===l){M++;continue}if(N!==!0&&te===r&&(te=ye())===r){if(R=oe.isBrace=!0,z=oe.isGlob=!0,ee=!0,A===!0)continue;break}if(N!==!0&&te===u){if(R=oe.isBrace=!0,z=oe.isGlob=!0,ee=!0,A===!0)continue;break}if(te===y&&(M--,M===0)){N=!1,R=oe.isBrace=!0,ee=!0;break}}if(A===!0)continue;break}if(te===p){if(x.push(O),L.push(oe),oe={value:"",depth:0,isGlob:!1},ee===!0)continue;if(K===r&&O===I+1){I+=2;continue}$=O+1;continue}if(_.noext!==!0&&(te===d||te===i||te===s||te===f||te===t)&&be()===c){if(z=oe.isGlob=!0,Q=oe.isExtglob=!0,ee=!0,te===t&&O===I&&(q=!0),A===!0){for(;ce()!==!0&&(te=ye());){if(te===h){F=oe.backslashes=!0,te=ye();continue}if(te===b){z=oe.isGlob=!0,ee=!0;break}}continue}break}if(te===s){if(K===s&&(P=oe.isGlobstar=!0),z=oe.isGlob=!0,ee=!0,A===!0)continue;break}if(te===f){if(z=oe.isGlob=!0,ee=!0,A===!0)continue;break}if(te===o){for(;ce()!==!0&&(X=ye());){if(X===h){F=oe.backslashes=!0,ye();continue}if(X===w){G=oe.isBracket=!0,z=oe.isGlob=!0,ee=!0;break}}if(A===!0)continue;break}if(_.nonegate!==!0&&te===t&&O===I){J=oe.negated=!0,I++;continue}if(_.noparen!==!0&&te===c){if(z=oe.isGlob=!0,A===!0){for(;ce()!==!0&&(te=ye());){if(te===c){F=oe.backslashes=!0,te=ye();continue}if(te===b){ee=!0;break}}continue}break}if(z===!0){if(ee=!0,A===!0)continue;break}}_.noext===!0&&(Q=!1,z=!1);let H=k,V="",C="";I>0&&(V=k.slice(0,I),k=k.slice(I),$-=I),H&&z===!0&&$>0?(H=k.slice(0,$),C=k.slice($)):z===!0?(H="",C=k):H=k,H&&H!==""&&H!=="/"&&H!==k&&g(H.charCodeAt(H.length-1))&&(H=H.slice(0,-1)),_.unescape===!0&&(C&&(C=n.removeBackslashes(C)),H&&F===!0&&(H=n.removeBackslashes(H)));let W={prefix:V,input:v,start:I,base:H,glob:C,isBrace:R,isBracket:G,isGlob:z,isExtglob:Q,isGlobstar:P,negated:J,negatedExtglob:q};if(_.tokens===!0&&(W.maxDepth=0,g(te)||L.push(oe),W.tokens=L),_.parts===!0||_.tokens===!0){let X;for(let re=0;re<x.length;re++){let pe=X?X+1:I,ie=x[re],le=v.slice(pe,ie);_.tokens&&(re===0&&I!==0?(L[re].isPrefix=!0,L[re].value=V):L[re].value=le,D(L[re]),W.maxDepth+=L[re].depth),(re!==0||le!=="")&&T.push(le),X=ie}if(X&&X+1<v.length){let re=v.slice(X+1);T.push(re),_.tokens&&(L[L.length-1].value=re,D(L[L.length-1]),W.maxDepth+=L[L.length-1].depth)}W.slashes=x,W.parts=T}return W};a.exports=E}),kh=j((e,a)=>{"use strict";B();var n=Fr(),s=Or(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:h,REGEX_NON_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_BACKREF:r,REPLACEMENTS:t}=n,p=(o,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...o,d);o.sort();let f=`[${o.join("-")}]`;try{new RegExp(f)}catch{return o.map(y=>s.escapeRegex(y)).join("..")}return f},l=(o,d)=>`Missing ${o}: "${d}" - use "\\\\${d}" to match literal characters`,c=(o,d)=>{if(typeof o!="string")throw new TypeError("Expected a string");o=t[o]||o;let f={...d},y=typeof f.maxLength=="number"?Math.min(i,f.maxLength):i,b=o.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);let w={type:"bos",value:"",output:f.prepend||""},g=[w],D=f.capture?"":"?:",E=s.isWindows(d),v=n.globChars(E),m=n.extglobChars(v),{DOT_LITERAL:_,PLUS_LITERAL:S,SLASH_LITERAL:A,ONE_CHAR:x,DOTS_SLASH:L,NO_DOT:T,NO_DOT_SLASH:k,NO_DOTS_SLASH:O,QMARK:I,QMARK_NO_DOT:$,STAR:R,START_ANCHOR:G}=v,z=ie=>`(${D}(?:(?!${G}${ie.dot?L:_}).)*?)`,Q=f.dot?"":T,P=f.dot?I:$,N=f.bash===!0?z(f):R;f.capture&&(N=`(${N})`),typeof f.noext=="boolean"&&(f.noextglob=f.noext);let F={input:o,index:-1,start:0,dot:f.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};o=s.removePrefix(o,F),b=o.length;let J=[],q=[],ee=[],M=w,K,te=()=>F.index===b-1,oe=F.peek=(ie=1)=>o[F.index+ie],ce=F.advance=()=>o[++F.index]||"",be=()=>o.slice(F.index+1),ye=(ie="",le=0)=>{F.consumed+=ie,F.index+=le},H=ie=>{F.output+=ie.output!=null?ie.output:ie.value,ye(ie.value)},V=()=>{let ie=1;for(;oe()==="!"&&(oe(2)!=="("||oe(3)==="?");)ce(),F.start++,ie++;return ie%2===0?!1:(F.negated=!0,F.start++,!0)},C=ie=>{F[ie]++,ee.push(ie)},W=ie=>{F[ie]--,ee.pop()},X=ie=>{if(M.type==="globstar"){let le=F.braces>0&&(ie.type==="comma"||ie.type==="brace"),ne=ie.extglob===!0||J.length&&(ie.type==="pipe"||ie.type==="paren");ie.type!=="slash"&&ie.type!=="paren"&&!le&&!ne&&(F.output=F.output.slice(0,-M.output.length),M.type="star",M.value="*",M.output=N,F.output+=M.output)}if(J.length&&ie.type!=="paren"&&(J[J.length-1].inner+=ie.value),(ie.value||ie.output)&&H(ie),M&&M.type==="text"&&ie.type==="text"){M.value+=ie.value,M.output=(M.output||"")+ie.value;return}ie.prev=M,g.push(ie),M=ie},re=(ie,le)=>{let ne={...m[le],conditions:1,inner:""};ne.prev=M,ne.parens=F.parens,ne.output=F.output;let fe=(f.capture?"(":"")+ne.open;C("parens"),X({type:ie,value:le,output:F.output?"":x}),X({type:"paren",extglob:!0,value:ce(),output:fe}),J.push(ne)},pe=ie=>{let le=ie.close+(f.capture?")":""),ne;if(ie.type==="negate"){let fe=N;if(ie.inner&&ie.inner.length>1&&ie.inner.includes("/")&&(fe=z(f)),(fe!==N||te()||/^\)+$/.test(be()))&&(le=ie.close=`)$))${fe}`),ie.inner.includes("*")&&(ne=be())&&/^\.[^\\/.]+$/.test(ne)){let we=c(ne,{...d,fastpaths:!1}).output;le=ie.close=`)${we})${fe})`}ie.prev.type==="bos"&&(F.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:K,output:le}),W("parens")};if(f.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(o)){let ie=!1,le=o.replace(r,(ne,fe,we,ke,Y,U)=>ke==="\\"?(ie=!0,ne):ke==="?"?fe?fe+ke+(Y?I.repeat(Y.length):""):U===0?P+(Y?I.repeat(Y.length):""):I.repeat(we.length):ke==="."?_.repeat(we.length):ke==="*"?fe?fe+ke+(Y?N:""):N:fe?ne:`\\${ne}`);return ie===!0&&(f.unescape===!0?le=le.replace(/\\/g,""):le=le.replace(/\\+/g,ne=>ne.length%2===0?"\\\\":ne?"\\":"")),le===o&&f.contains===!0?(F.output=o,F):(F.output=s.wrapOutput(le,F,d),F)}for(;!te();){if(K=ce(),K==="\0")continue;if(K==="\\"){let ne=oe();if(ne==="/"&&f.bash!==!0||ne==="."||ne===";")continue;if(!ne){K+="\\",X({type:"text",value:K});continue}let fe=/^\\+/.exec(be()),we=0;if(fe&&fe[0].length>2&&(we=fe[0].length,F.index+=we,we%2!==0&&(K+="\\")),f.unescape===!0?K=ce():K+=ce(),F.brackets===0){X({type:"text",value:K});continue}}if(F.brackets>0&&(K!=="]"||M.value==="["||M.value==="[^")){if(f.posix!==!1&&K===":"){let ne=M.value.slice(1);if(ne.includes("[")&&(M.posix=!0,ne.includes(":"))){let fe=M.value.lastIndexOf("["),we=M.value.slice(0,fe),ke=M.value.slice(fe+2),Y=h[ke];if(Y){M.value=we+Y,F.backtrack=!0,ce(),!w.output&&g.indexOf(M)===1&&(w.output=x);continue}}}(K==="["&&oe()!==":"||K==="-"&&oe()==="]")&&(K=`\\${K}`),K==="]"&&(M.value==="["||M.value==="[^")&&(K=`\\${K}`),f.posix===!0&&K==="!"&&M.value==="["&&(K="^"),M.value+=K,H({value:K});continue}if(F.quotes===1&&K!=='"'){K=s.escapeRegex(K),M.value+=K,H({value:K});continue}if(K==='"'){F.quotes=F.quotes===1?0:1,f.keepQuotes===!0&&X({type:"text",value:K});continue}if(K==="("){C("parens"),X({type:"paren",value:K});continue}if(K===")"){if(F.parens===0&&f.strictBrackets===!0)throw new SyntaxError(l("opening","("));let ne=J[J.length-1];if(ne&&F.parens===ne.parens+1){pe(J.pop());continue}X({type:"paren",value:K,output:F.parens?")":"\\)"}),W("parens");continue}if(K==="["){if(f.nobracket===!0||!be().includes("]")){if(f.nobracket!==!0&&f.strictBrackets===!0)throw new SyntaxError(l("closing","]"));K=`\\${K}`}else C("brackets");X({type:"bracket",value:K});continue}if(K==="]"){if(f.nobracket===!0||M&&M.type==="bracket"&&M.value.length===1){X({type:"text",value:K,output:`\\${K}`});continue}if(F.brackets===0){if(f.strictBrackets===!0)throw new SyntaxError(l("opening","["));X({type:"text",value:K,output:`\\${K}`});continue}W("brackets");let ne=M.value.slice(1);if(M.posix!==!0&&ne[0]==="^"&&!ne.includes("/")&&(K=`/${K}`),M.value+=K,H({value:K}),f.literalBrackets===!1||s.hasRegexChars(ne))continue;let fe=s.escapeRegex(M.value);if(F.output=F.output.slice(0,-M.value.length),f.literalBrackets===!0){F.output+=fe,M.value=fe;continue}M.value=`(${D}${fe}|${M.value})`,F.output+=M.value;continue}if(K==="{"&&f.nobrace!==!0){C("braces");let ne={type:"brace",value:K,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};q.push(ne),X(ne);continue}if(K==="}"){let ne=q[q.length-1];if(f.nobrace===!0||!ne){X({type:"text",value:K,output:K});continue}let fe=")";if(ne.dots===!0){let we=g.slice(),ke=[];for(let Y=we.length-1;Y>=0&&(g.pop(),we[Y].type!=="brace");Y--)we[Y].type!=="dots"&&ke.unshift(we[Y].value);fe=p(ke,f),F.backtrack=!0}if(ne.comma!==!0&&ne.dots!==!0){let we=F.output.slice(0,ne.outputIndex),ke=F.tokens.slice(ne.tokensIndex);ne.value=ne.output="\\{",K=fe="\\}",F.output=we;for(let Y of ke)F.output+=Y.output||Y.value}X({type:"brace",value:K,output:fe}),W("braces"),q.pop();continue}if(K==="|"){J.length>0&&J[J.length-1].conditions++,X({type:"text",value:K});continue}if(K===","){let ne=K,fe=q[q.length-1];fe&&ee[ee.length-1]==="braces"&&(fe.comma=!0,ne="|"),X({type:"comma",value:K,output:ne});continue}if(K==="/"){if(M.type==="dot"&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",g.pop(),M=w;continue}X({type:"slash",value:K,output:A});continue}if(K==="."){if(F.braces>0&&M.type==="dot"){M.value==="."&&(M.output=_);let ne=q[q.length-1];M.type="dots",M.output+=K,M.value+=K,ne.dots=!0;continue}if(F.braces+F.parens===0&&M.type!=="bos"&&M.type!=="slash"){X({type:"text",value:K,output:_});continue}X({type:"dot",value:K,output:_});continue}if(K==="?"){if(!(M&&M.value==="(")&&f.noextglob!==!0&&oe()==="("&&oe(2)!=="?"){re("qmark",K);continue}if(M&&M.type==="paren"){let ne=oe(),fe=K;if(ne==="<"&&!s.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(M.value==="("&&!/[!=<:]/.test(ne)||ne==="<"&&!/<([!=]|\w+>)/.test(be()))&&(fe=`\\${K}`),X({type:"text",value:K,output:fe});continue}if(f.dot!==!0&&(M.type==="slash"||M.type==="bos")){X({type:"qmark",value:K,output:$});continue}X({type:"qmark",value:K,output:I});continue}if(K==="!"){if(f.noextglob!==!0&&oe()==="("&&(oe(2)!=="?"||!/[!=<:]/.test(oe(3)))){re("negate",K);continue}if(f.nonegate!==!0&&F.index===0){V();continue}}if(K==="+"){if(f.noextglob!==!0&&oe()==="("&&oe(2)!=="?"){re("plus",K);continue}if(M&&M.value==="("||f.regex===!1){X({type:"plus",value:K,output:S});continue}if(M&&(M.type==="bracket"||M.type==="paren"||M.type==="brace")||F.parens>0){X({type:"plus",value:K});continue}X({type:"plus",value:S});continue}if(K==="@"){if(f.noextglob!==!0&&oe()==="("&&oe(2)!=="?"){X({type:"at",extglob:!0,value:K,output:""});continue}X({type:"text",value:K});continue}if(K!=="*"){(K==="$"||K==="^")&&(K=`\\${K}`);let ne=u.exec(be());ne&&(K+=ne[0],F.index+=ne[0].length),X({type:"text",value:K});continue}if(M&&(M.type==="globstar"||M.star===!0)){M.type="star",M.star=!0,M.value+=K,M.output=N,F.backtrack=!0,F.globstar=!0,ye(K);continue}let ie=be();if(f.noextglob!==!0&&/^\([^?]/.test(ie)){re("star",K);continue}if(M.type==="star"){if(f.noglobstar===!0){ye(K);continue}let ne=M.prev,fe=ne.prev,we=ne.type==="slash"||ne.type==="bos",ke=fe&&(fe.type==="star"||fe.type==="globstar");if(f.bash===!0&&(!we||ie[0]&&ie[0]!=="/")){X({type:"star",value:K,output:""});continue}let Y=F.braces>0&&(ne.type==="comma"||ne.type==="brace"),U=J.length&&(ne.type==="pipe"||ne.type==="paren");if(!we&&ne.type!=="paren"&&!Y&&!U){X({type:"star",value:K,output:""});continue}for(;ie.slice(0,3)==="/**";){let ue=o[F.index+4];if(ue&&ue!=="/")break;ie=ie.slice(3),ye("/**",3)}if(ne.type==="bos"&&te()){M.type="globstar",M.value+=K,M.output=z(f),F.output=M.output,F.globstar=!0,ye(K);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&!ke&&te()){F.output=F.output.slice(0,-(ne.output+M.output).length),ne.output=`(?:${ne.output}`,M.type="globstar",M.output=z(f)+(f.strictSlashes?")":"|$)"),M.value+=K,F.globstar=!0,F.output+=ne.output+M.output,ye(K);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&ie[0]==="/"){let ue=ie[1]!==void 0?"|$":"";F.output=F.output.slice(0,-(ne.output+M.output).length),ne.output=`(?:${ne.output}`,M.type="globstar",M.output=`${z(f)}${A}|${A}${ue})`,M.value+=K,F.output+=ne.output+M.output,F.globstar=!0,ye(K+ce()),X({type:"slash",value:"/",output:""});continue}if(ne.type==="bos"&&ie[0]==="/"){M.type="globstar",M.value+=K,M.output=`(?:^|${A}|${z(f)}${A})`,F.output=M.output,F.globstar=!0,ye(K+ce()),X({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-M.output.length),M.type="globstar",M.output=z(f),M.value+=K,F.output+=M.output,F.globstar=!0,ye(K);continue}let le={type:"star",value:K,output:N};if(f.bash===!0){le.output=".*?",(M.type==="bos"||M.type==="slash")&&(le.output=Q+le.output),X(le);continue}if(M&&(M.type==="bracket"||M.type==="paren")&&f.regex===!0){le.output=K,X(le);continue}(F.index===F.start||M.type==="slash"||M.type==="dot")&&(M.type==="dot"?(F.output+=k,M.output+=k):f.dot===!0?(F.output+=O,M.output+=O):(F.output+=Q,M.output+=Q),oe()!=="*"&&(F.output+=x,M.output+=x)),X(le)}for(;F.brackets>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing","]"));F.output=s.escapeLast(F.output,"["),W("brackets")}for(;F.parens>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing",")"));F.output=s.escapeLast(F.output,"("),W("parens")}for(;F.braces>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing","}"));F.output=s.escapeLast(F.output,"{"),W("braces")}if(f.strictSlashes!==!0&&(M.type==="star"||M.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${A}?`}),F.backtrack===!0){F.output="";for(let ie of F.tokens)F.output+=ie.output!=null?ie.output:ie.value,ie.suffix&&(F.output+=ie.suffix)}return F};c.fastpaths=(o,d)=>{let f={...d},y=typeof f.maxLength=="number"?Math.min(i,f.maxLength):i,b=o.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);o=t[o]||o;let w=s.isWindows(d),{DOT_LITERAL:g,SLASH_LITERAL:D,ONE_CHAR:E,DOTS_SLASH:v,NO_DOT:m,NO_DOTS:_,NO_DOTS_SLASH:S,STAR:A,START_ANCHOR:x}=n.globChars(w),L=f.dot?_:m,T=f.dot?S:m,k=f.capture?"":"?:",O={negated:!1,prefix:""},I=f.bash===!0?".*?":A;f.capture&&(I=`(${I})`);let $=Q=>Q.noglobstar===!0?I:`(${k}(?:(?!${x}${Q.dot?v:g}).)*?)`,R=Q=>{switch(Q){case"*":return`${L}${E}${I}`;case".*":return`${g}${E}${I}`;case"*.*":return`${L}${I}${g}${E}${I}`;case"*/*":return`${L}${I}${D}${E}${T}${I}`;case"**":return L+$(f);case"**/*":return`(?:${L}${$(f)}${D})?${T}${E}${I}`;case"**/*.*":return`(?:${L}${$(f)}${D})?${T}${I}${g}${E}${I}`;case"**/.*":return`(?:${L}${$(f)}${D})?${g}${E}${I}`;default:{let P=/^(.*?)\.(\w+)$/.exec(Q);if(!P)return;let N=R(P[1]);return N?N+g+P[2]:void 0}}},G=s.removePrefix(o,O),z=R(G);return z&&f.strictSlashes!==!0&&(z+=`${D}?`),z},a.exports=c}),Fh=j((e,a)=>{"use strict";B();var n=Z("path"),s=xh(),i=kh(),h=Or(),u=Fr(),r=p=>p&&typeof p=="object"&&!Array.isArray(p),t=(p,l,c=!1)=>{if(Array.isArray(p)){let D=p.map(E=>t(E,l,c));return E=>{for(let v of D){let m=v(E);if(m)return m}return!1}}let o=r(p)&&p.tokens&&p.input;if(p===""||typeof p!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");let d=l||{},f=h.isWindows(l),y=o?t.compileRe(p,l):t.makeRe(p,l,!1,!0),b=y.state;delete y.state;let w=()=>!1;if(d.ignore){let D={...l,ignore:null,onMatch:null,onResult:null};w=t(d.ignore,D,c)}let g=(D,E=!1)=>{let{isMatch:v,match:m,output:_}=t.test(D,y,l,{glob:p,posix:f}),S={glob:p,state:b,regex:y,posix:f,input:D,output:_,match:m,isMatch:v};return typeof d.onResult=="function"&&d.onResult(S),v===!1?(S.isMatch=!1,E?S:!1):w(D)?(typeof d.onIgnore=="function"&&d.onIgnore(S),S.isMatch=!1,E?S:!1):(typeof d.onMatch=="function"&&d.onMatch(S),E?S:!0)};return c&&(g.state=b),g};t.test=(p,l,c,{glob:o,posix:d}={})=>{if(typeof p!="string")throw new TypeError("Expected input to be a string");if(p==="")return{isMatch:!1,output:""};let f=c||{},y=f.format||(d?h.toPosixSlashes:null),b=p===o,w=b&&y?y(p):p;return b===!1&&(w=y?y(p):p,b=w===o),(b===!1||f.capture===!0)&&(f.matchBase===!0||f.basename===!0?b=t.matchBase(p,l,c,d):b=l.exec(w)),{isMatch:!!b,match:b,output:w}},t.matchBase=(p,l,c,o=h.isWindows(c))=>(l instanceof RegExp?l:t.makeRe(l,c)).test(n.basename(p)),t.isMatch=(p,l,c)=>t(l,c)(p),t.parse=(p,l)=>Array.isArray(p)?p.map(c=>t.parse(c,l)):i(p,{...l,fastpaths:!1}),t.scan=(p,l)=>s(p,l),t.compileRe=(p,l,c=!1,o=!1)=>{if(c===!0)return p.output;let d=l||{},f=d.contains?"":"^",y=d.contains?"":"$",b=`${f}(?:${p.output})${y}`;p&&p.negated===!0&&(b=`^(?!${b}).*$`);let w=t.toRegex(b,l);return o===!0&&(w.state=p),w},t.makeRe=(p,l={},c=!1,o=!1)=>{if(!p||typeof p!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return l.fastpaths!==!1&&(p[0]==="."||p[0]==="*")&&(d.output=i.fastpaths(p,l)),d.output||(d=i(p,l)),t.compileRe(d,l,c,o)},t.toRegex=(p,l)=>{try{let c=l||{};return new RegExp(p,c.flags||(c.nocase?"i":""))}catch(c){if(l&&l.debug===!0)throw c;return/$^/}},t.constants=u,a.exports=t}),Oh=j((e,a)=>{"use strict";B(),a.exports=Fh()}),Rh=j((e,a)=>{"use strict";B();var n=Z("util"),s=Ch(),i=Oh(),h=Or(),u=t=>t===""||t==="./",r=(t,p,l)=>{p=[].concat(p),t=[].concat(t);let c=new Set,o=new Set,d=new Set,f=0,y=w=>{d.add(w.output),l&&l.onResult&&l.onResult(w)};for(let w=0;w<p.length;w++){let g=i(String(p[w]),{...l,onResult:y},!0),D=g.state.negated||g.state.negatedExtglob;D&&f++;for(let E of t){let v=g(E,!0);!(D?!v.isMatch:v.isMatch)||(D?c.add(v.output):(c.delete(v.output),o.add(v.output)))}}let b=(f===p.length?[...d]:[...o]).filter(w=>!c.has(w));if(l&&b.length===0){if(l.failglob===!0)throw new Error(`No matches found for "${p.join(", ")}"`);if(l.nonull===!0||l.nullglob===!0)return l.unescape?p.map(w=>w.replace(/\\/g,"")):p}return b};r.match=r,r.matcher=(t,p)=>i(t,p),r.isMatch=(t,p,l)=>i(p,l)(t),r.any=r.isMatch,r.not=(t,p,l={})=>{p=[].concat(p).map(String);let c=new Set,o=[],d=y=>{l.onResult&&l.onResult(y),o.push(y.output)},f=new Set(r(t,p,{...l,onResult:d}));for(let y of o)f.has(y)||c.add(y);return[...c]},r.contains=(t,p,l)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${n.inspect(t)}"`);if(Array.isArray(p))return p.some(c=>r.contains(t,c,l));if(typeof p=="string"){if(u(t)||u(p))return!1;if(t.includes(p)||t.startsWith("./")&&t.slice(2).includes(p))return!0}return r.isMatch(t,p,{...l,contains:!0})},r.matchKeys=(t,p,l)=>{if(!h.isObject(t))throw new TypeError("Expected the first argument to be an object");let c=r(Object.keys(t),p,l),o={};for(let d of c)o[d]=t[d];return o},r.some=(t,p,l)=>{let c=[].concat(t);for(let o of[].concat(p)){let d=i(String(o),l);if(c.some(f=>d(f)))return!0}return!1},r.every=(t,p,l)=>{let c=[].concat(t);for(let o of[].concat(p)){let d=i(String(o),l);if(!c.every(f=>d(f)))return!1}return!0},r.all=(t,p,l)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${n.inspect(t)}"`);return[].concat(p).every(c=>i(c,l)(t))},r.capture=(t,p,l)=>{let c=h.isWindows(l),o=i.makeRe(String(t),{...l,capture:!0}).exec(c?h.toPosixSlashes(p):p);if(o)return o.slice(1).map(d=>d===void 0?"":d)},r.makeRe=(...t)=>i.makeRe(...t),r.scan=(...t)=>i.scan(...t),r.parse=(t,p)=>{let l=[];for(let c of[].concat(t||[]))for(let o of s(String(c),p))l.push(i.parse(o,p));return l},r.braces=(t,p)=>{if(typeof t!="string")throw new TypeError("Expected a string");return p&&p.nobrace===!0||!/\{.*\}/.test(t)?[t]:s(t,p)},r.braceExpand=(t,p)=>{if(typeof t!="string")throw new TypeError("Expected a string");return r.braces(t,{...p,expand:!0})},a.exports=r}),Th=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var a=Z("path"),n=vh(),s=Rh(),i="**",h="\\",u=/[*?]|^!/,r=/\[[^[]*]/,t=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,p=/[!*+?@]\([^(]*\)/,l=/,|\.\./;function c(R,G={}){return!o(R,G)}e.isStaticPattern=c;function o(R,G={}){return R===""?!1:!!(G.caseSensitiveMatch===!1||R.includes(h)||u.test(R)||r.test(R)||t.test(R)||G.extglob!==!1&&p.test(R)||G.braceExpansion!==!1&&d(R))}e.isDynamicPattern=o;function d(R){let G=R.indexOf("{");if(G===-1)return!1;let z=R.indexOf("}",G+1);if(z===-1)return!1;let Q=R.slice(G,z);return l.test(Q)}function f(R){return b(R)?R.slice(1):R}e.convertToPositivePattern=f;function y(R){return"!"+R}e.convertToNegativePattern=y;function b(R){return R.startsWith("!")&&R[1]!=="("}e.isNegativePattern=b;function w(R){return!b(R)}e.isPositivePattern=w;function g(R){return R.filter(b)}e.getNegativePatterns=g;function D(R){return R.filter(w)}e.getPositivePatterns=D;function E(R){return R.filter(G=>!m(G))}e.getPatternsInsideCurrentDirectory=E;function v(R){return R.filter(m)}e.getPatternsOutsideCurrentDirectory=v;function m(R){return R.startsWith("..")||R.startsWith("./..")}e.isPatternRelatedToParentDirectory=m;function _(R){return n(R,{flipBackslashes:!1})}e.getBaseDirectory=_;function S(R){return R.includes(i)}e.hasGlobStar=S;function A(R){return R.endsWith("/"+i)}e.endsWithSlashGlobStar=A;function x(R){let G=a.basename(R);return A(R)||c(G)}e.isAffectDepthOfReadingPattern=x;function L(R){return R.reduce((G,z)=>G.concat(T(z)),[])}e.expandPatternsWithBraceExpansion=L;function T(R){return s.braces(R,{expand:!0,nodupes:!0})}e.expandBraceExpansion=T;function k(R,G){let{parts:z}=s.scan(R,Object.assign(Object.assign({},G),{parts:!0}));return z.length===0&&(z=[R]),z[0].startsWith("/")&&(z[0]=z[0].slice(1),z.unshift("")),z}e.getPatternParts=k;function O(R,G){return s.makeRe(R,G)}e.makeRe=O;function I(R,G){return R.map(z=>O(z,G))}e.convertPatternsToRe=I;function $(R,G){return G.some(z=>z.test(R))}e.matchAny=$}),Bh=j((e,a)=>{"use strict";B();var n=Z("stream"),s=n.PassThrough,i=Array.prototype.slice;a.exports=h;function h(){let r=[],t=i.call(arguments),p=!1,l=t[t.length-1];l&&!Array.isArray(l)&&l.pipe==null?t.pop():l={};let c=l.end!==!1,o=l.pipeError===!0;l.objectMode==null&&(l.objectMode=!0),l.highWaterMark==null&&(l.highWaterMark=64*1024);let d=s(l);function f(){for(let w=0,g=arguments.length;w<g;w++)r.push(u(arguments[w],l));return y(),this}function y(){if(p)return;p=!0;let w=r.shift();if(!w){process.nextTick(b);return}Array.isArray(w)||(w=[w]);let g=w.length+1;function D(){--g>0||(p=!1,y())}function E(v){function m(){v.removeListener("merge2UnpipeEnd",m),v.removeListener("end",m),o&&v.removeListener("error",_),D()}function _(S){d.emit("error",S)}if(v._readableState.endEmitted)return D();v.on("merge2UnpipeEnd",m),v.on("end",m),o&&v.on("error",_),v.pipe(d,{end:!1}),v.resume()}for(let v=0;v<w.length;v++)E(w[v]);D()}function b(){p=!1,d.emit("queueDrain"),c&&d.end()}return d.setMaxListeners(0),d.add=f,d.on("unpipe",function(w){w.emit("merge2UnpipeEnd")}),t.length&&f.apply(null,t),d}function u(r,t){if(Array.isArray(r))for(let p=0,l=r.length;p<l;p++)r[p]=u(r[p],t);else{if(!r._readableState&&r.pipe&&(r=r.pipe(s(t))),!r._readableState||!r.pause||!r.pipe)throw new Error("Only readable stream can be merged.");r.pause()}return r}}),Ph=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var a=Bh();function n(i){let h=a(i);return i.forEach(u=>{u.once("error",r=>h.emit("error",r))}),h.once("close",()=>s(i)),h.once("end",()=>s(i)),h}e.merge=n;function s(i){i.forEach(h=>h.emit("close"))}}),Lh=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function a(s){return typeof s=="string"}e.isString=a;function n(s){return s===""}e.isEmpty=n}),bt=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var a=fh();e.array=a;var n=dh();e.errno=n;var s=mh();e.fs=s;var i=yh();e.path=i;var h=Th();e.pattern=h;var u=Ph();e.stream=u;var r=Lh();e.string=r}),Ih=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var a=bt();function n(p,l){let c=i(p),o=h(p,l.ignore),d=c.filter(w=>a.pattern.isStaticPattern(w,l)),f=c.filter(w=>a.pattern.isDynamicPattern(w,l)),y=s(d,o,!1),b=s(f,o,!0);return y.concat(b)}e.generate=n;function s(p,l,c){let o=[],d=a.pattern.getPatternsOutsideCurrentDirectory(p),f=a.pattern.getPatternsInsideCurrentDirectory(p),y=u(d),b=u(f);return o.push(...r(y,l,c)),"."in b?o.push(t(".",f,l,c)):o.push(...r(b,l,c)),o}e.convertPatternsToTasks=s;function i(p){return a.pattern.getPositivePatterns(p)}e.getPositivePatterns=i;function h(p,l){return a.pattern.getNegativePatterns(p).concat(l).map(a.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=h;function u(p){let l={};return p.reduce((c,o)=>{let d=a.pattern.getBaseDirectory(o);return d in c?c[d].push(o):c[d]=[o],c},l)}e.groupPatternsByBaseDirectory=u;function r(p,l,c){return Object.keys(p).map(o=>t(o,p[o],l,c))}e.convertPatternGroupsToTasks=r;function t(p,l,c,o){return{dynamic:o,positive:l,negative:c,base:p,patterns:[].concat(l,c.map(a.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=t}),jh=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var a=/(?!^)\/{2,}/g;function n(i){return i.map(h=>s(h))}e.transform=n;function s(i){return i.replace(a,"/")}e.removeDuplicateSlashes=s}),Nh=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function a(i,h,u){h.fs.lstat(i,(r,t)=>{if(r!==null){n(u,r);return}if(!t.isSymbolicLink()||!h.followSymbolicLink){s(u,t);return}h.fs.stat(i,(p,l)=>{if(p!==null){if(h.throwErrorOnBrokenSymbolicLink){n(u,p);return}s(u,t);return}h.markSymbolicLink&&(l.isSymbolicLink=()=>!0),s(u,l)})})}e.read=a;function n(i,h){i(h)}function s(i,h){i(null,h)}}),Mh=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function a(n,s){let i=s.fs.lstatSync(n);if(!i.isSymbolicLink()||!s.followSymbolicLink)return i;try{let h=s.fs.statSync(n);return s.markSymbolicLink&&(h.isSymbolicLink=()=>!0),h}catch(h){if(!s.throwErrorOnBrokenSymbolicLink)return i;throw h}}e.read=a}),$h=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var a=Z("fs");e.FILE_SYSTEM_ADAPTER={lstat:a.lstat,stat:a.stat,lstatSync:a.lstatSync,statSync:a.statSync};function n(s){return s===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),s)}e.createFileSystemAdapter=n}),Hh=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=$h(),n=class{constructor(s={}){this._options=s,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=a.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(s,i){return s!=null?s:i}};e.default=n}),Lt=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var a=Nh(),n=Mh(),s=Hh();e.Settings=s.default;function i(r,t,p){if(typeof t=="function"){a.read(r,u(),t);return}a.read(r,u(t),p)}e.stat=i;function h(r,t){let p=u(t);return n.read(r,p)}e.statSync=h;function u(r={}){return r instanceof s.default?r:new s.default(r)}}),Uh=j((e,a)=>{B();var n;a.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):s=>(n||(n=Promise.resolve())).then(s).catch(i=>setTimeout(()=>{throw i},0))}),Gh=j((e,a)=>{B(),a.exports=s;var n=Uh();function s(i,h){let u,r,t,p=!0;Array.isArray(i)?(u=[],r=i.length):(t=Object.keys(i),u={},r=t.length);function l(o){function d(){h&&h(o,u),h=null}p?n(d):d()}function c(o,d,f){u[o]=f,(--r===0||d)&&l(d)}r?t?t.forEach(function(o){i[o](function(d,f){c(o,d,f)})}):i.forEach(function(o,d){o(function(f,y){c(d,f,y)})}):l(null),p=!1}}),As=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var a=process.versions.node.split(".");if(a[0]===void 0||a[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var n=Number.parseInt(a[0],10),s=Number.parseInt(a[1],10),i=10,h=10,u=n>i,r=n===i&&s>=h;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=u||r}),qh=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var a=class{constructor(s,i){this.name=s,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function n(s,i){return new a(s,i)}e.createDirentFromStats=n}),Cs=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var a=qh();e.fs=a}),xs=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function a(n,s,i){return n.endsWith(i)?n+s:n+i+s}e.joinPathSegments=a}),Wh=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var a=Lt(),n=Gh(),s=As(),i=Cs(),h=xs();function u(o,d,f){if(!d.stats&&s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){r(o,d,f);return}p(o,d,f)}e.read=u;function r(o,d,f){d.fs.readdir(o,{withFileTypes:!0},(y,b)=>{if(y!==null){l(f,y);return}let w=b.map(D=>({dirent:D,name:D.name,path:h.joinPathSegments(o,D.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){c(f,w);return}let g=w.map(D=>t(D,d));n(g,(D,E)=>{if(D!==null){l(f,D);return}c(f,E)})})}e.readdirWithFileTypes=r;function t(o,d){return f=>{if(!o.dirent.isSymbolicLink()){f(null,o);return}d.fs.stat(o.path,(y,b)=>{if(y!==null){if(d.throwErrorOnBrokenSymbolicLink){f(y);return}f(null,o);return}o.dirent=i.fs.createDirentFromStats(o.name,b),f(null,o)})}}function p(o,d,f){d.fs.readdir(o,(y,b)=>{if(y!==null){l(f,y);return}let w=b.map(g=>{let D=h.joinPathSegments(o,g,d.pathSegmentSeparator);return E=>{a.stat(D,d.fsStatSettings,(v,m)=>{if(v!==null){E(v);return}let _={name:g,path:D,dirent:i.fs.createDirentFromStats(g,m)};d.stats&&(_.stats=m),E(null,_)})}});n(w,(g,D)=>{if(g!==null){l(f,g);return}c(f,D)})})}e.readdir=p;function l(o,d){o(d)}function c(o,d){o(null,d)}}),zh=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var a=Lt(),n=As(),s=Cs(),i=xs();function h(t,p){return!p.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES?u(t,p):r(t,p)}e.read=h;function u(t,p){return p.fs.readdirSync(t,{withFileTypes:!0}).map(l=>{let c={dirent:l,name:l.name,path:i.joinPathSegments(t,l.name,p.pathSegmentSeparator)};if(c.dirent.isSymbolicLink()&&p.followSymbolicLinks)try{let o=p.fs.statSync(c.path);c.dirent=s.fs.createDirentFromStats(c.name,o)}catch(o){if(p.throwErrorOnBrokenSymbolicLink)throw o}return c})}e.readdirWithFileTypes=u;function r(t,p){return p.fs.readdirSync(t).map(l=>{let c=i.joinPathSegments(t,l,p.pathSegmentSeparator),o=a.statSync(c,p.fsStatSettings),d={name:l,path:c,dirent:s.fs.createDirentFromStats(l,o)};return p.stats&&(d.stats=o),d})}e.readdir=r}),Vh=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var a=Z("fs");e.FILE_SYSTEM_ADAPTER={lstat:a.lstat,stat:a.stat,lstatSync:a.lstatSync,statSync:a.statSync,readdir:a.readdir,readdirSync:a.readdirSync};function n(s){return s===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),s)}e.createFileSystemAdapter=n}),Kh=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=Z("path"),n=Lt(),s=Vh(),i=class{constructor(h={}){this._options=h,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=s.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,a.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new n.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(h,u){return h!=null?h:u}};e.default=i}),In=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var a=Wh(),n=zh(),s=Kh();e.Settings=s.default;function i(r,t,p){if(typeof t=="function"){a.read(r,u(),t);return}a.read(r,u(t),p)}e.scandir=i;function h(r,t){let p=u(t);return n.read(r,p)}e.scandirSync=h;function u(r={}){return r instanceof s.default?r:new s.default(r)}}),Yh=j((e,a)=>{"use strict";B();function n(s){var i=new s,h=i;function u(){var t=i;return t.next?i=t.next:(i=new s,h=i),t.next=null,t}function r(t){h.next=t,h=t}return{get:u,release:r}}a.exports=n}),Jh=j((e,a)=>{"use strict";B();var n=Yh();function s(r,t,p){if(typeof r=="function"&&(p=t,t=r,r=null),p<1)throw new Error("fastqueue concurrency must be greater than 1");var l=n(h),c=null,o=null,d=0,f=null,y={push:m,drain:i,saturated:i,pause:w,paused:!1,concurrency:p,running:b,resume:E,idle:v,length:g,getQueue:D,unshift:_,empty:i,kill:A,killAndDrain:x,error:L};return y;function b(){return d}function w(){y.paused=!0}function g(){for(var T=c,k=0;T;)T=T.next,k++;return k}function D(){for(var T=c,k=[];T;)k.push(T.value),T=T.next;return k}function E(){if(y.paused){y.paused=!1;for(var T=0;T<y.concurrency;T++)d++,S()}}function v(){return d===0&&y.length()===0}function m(T,k){var O=l.get();O.context=r,O.release=S,O.value=T,O.callback=k||i,O.errorHandler=f,d===y.concurrency||y.paused?o?(o.next=O,o=O):(c=O,o=O,y.saturated()):(d++,t.call(r,O.value,O.worked))}function _(T,k){var O=l.get();O.context=r,O.release=S,O.value=T,O.callback=k||i,d===y.concurrency||y.paused?c?(O.next=c,c=O):(c=O,o=O,y.saturated()):(d++,t.call(r,O.value,O.worked))}function S(T){T&&l.release(T);var k=c;k?y.paused?d--:(o===c&&(o=null),c=k.next,k.next=null,t.call(r,k.value,k.worked),o===null&&y.empty()):--d===0&&y.drain()}function A(){c=null,o=null,y.drain=i}function x(){c=null,o=null,y.drain(),y.drain=i}function L(T){f=T}}function i(){}function h(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var r=this;this.worked=function(t,p){var l=r.callback,c=r.errorHandler,o=r.value;r.value=null,r.callback=i,r.errorHandler&&c(t,o),l.call(r.context,t,p),r.release(r)}}function u(r,t,p){typeof r=="function"&&(p=t,t=r,r=null);function l(w,g){t.call(this,w).then(function(D){g(null,D)},g)}var c=s(r,l,p),o=c.push,d=c.unshift;return c.push=f,c.unshift=y,c.drained=b,c;function f(w){var g=new Promise(function(D,E){o(w,function(v,m){if(v){E(v);return}D(m)})});return g.catch(i),g}function y(w){var g=new Promise(function(D,E){d(w,function(v,m){if(v){E(v);return}D(m)})});return g.catch(i),g}function b(){var w=c.drain,g=new Promise(function(D){c.drain=function(){w(),D()}});return g}}a.exports=s,a.exports.promise=u}),jn=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function a(h,u){return h.errorFilter===null?!0:!h.errorFilter(u)}e.isFatalError=a;function n(h,u){return h===null||h(u)}e.isAppliedFilter=n;function s(h,u){return h.split(/[/\\]/).join(u)}e.replacePathSegmentSeparator=s;function i(h,u,r){return h===""?u:h.endsWith(r)?h+u:h+r+u}e.joinPathSegments=i}),ks=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=jn(),n=class{constructor(s,i){this._root=s,this._settings=i,this._root=a.replacePathSegmentSeparator(s,i.pathSegmentSeparator)}};e.default=n}),Fs=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=Z("events"),n=In(),s=Jh(),i=jn(),h=ks(),u=class extends h.default{constructor(r,t){super(r,t),this._settings=t,this._scandir=n.scandir,this._emitter=new a.EventEmitter,this._queue=s(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(r){this._emitter.on("entry",r)}onError(r){this._emitter.once("error",r)}onEnd(r){this._emitter.once("end",r)}_pushToQueue(r,t){let p={directory:r,base:t};this._queue.push(p,l=>{l!==null&&this._handleError(l)})}_worker(r,t){this._scandir(r.directory,this._settings.fsScandirSettings,(p,l)=>{if(p!==null){t(p,void 0);return}for(let c of l)this._handleEntry(c,r.base);t(null,void 0)})}_handleError(r){this._isDestroyed||!i.isFatalError(this._settings,r)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",r))}_handleEntry(r,t){if(this._isDestroyed||this._isFatalError)return;let p=r.path;t!==void 0&&(r.path=i.joinPathSegments(t,r.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,r)&&this._emitEntry(r),r.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(p,t===void 0?void 0:r.path)}_emitEntry(r){this._emitter.emit("entry",r)}};e.default=u}),Zh=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=Fs(),n=class{constructor(h,u){this._root=h,this._settings=u,this._reader=new a.default(this._root,this._settings),this._storage=[]}read(h){this._reader.onError(u=>{s(h,u)}),this._reader.onEntry(u=>{this._storage.push(u)}),this._reader.onEnd(()=>{i(h,this._storage)}),this._reader.read()}};e.default=n;function s(h,u){h(u)}function i(h,u){h(null,u)}}),Xh=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=Z("stream"),n=Fs(),s=class{constructor(i,h){this._root=i,this._settings=h,this._reader=new n.default(this._root,this._settings),this._stream=new a.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=s}),Qh=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=In(),n=jn(),s=ks(),i=class extends s.default{constructor(){super(...arguments),this._scandir=a.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(h,u){this._queue.add({directory:h,base:u})}_handleQueue(){for(let h of this._queue.values())this._handleDirectory(h.directory,h.base)}_handleDirectory(h,u){try{let r=this._scandir(h,this._settings.fsScandirSettings);for(let t of r)this._handleEntry(t,u)}catch(r){this._handleError(r)}}_handleError(h){if(n.isFatalError(this._settings,h))throw h}_handleEntry(h,u){let r=h.path;u!==void 0&&(h.path=n.joinPathSegments(u,h.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,h)&&this._pushToStorage(h),h.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,h)&&this._pushToQueue(r,u===void 0?void 0:h.path)}_pushToStorage(h){this._storage.push(h)}};e.default=i}),ep=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=Qh(),n=class{constructor(s,i){this._root=s,this._settings=i,this._reader=new a.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=n}),tp=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=Z("path"),n=In(),s=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,a.sep),this.fsScandirSettings=new n.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,h){return i!=null?i:h}};e.default=s}),Nn=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var a=Zh(),n=Xh(),s=ep(),i=tp();e.Settings=i.default;function h(p,l,c){if(typeof l=="function"){new a.default(p,t()).read(l);return}new a.default(p,t(l)).read(c)}e.walk=h;function u(p,l){let c=t(l);return new s.default(p,c).read()}e.walkSync=u;function r(p,l){let c=t(l);return new n.default(p,c).read()}e.walkStream=r;function t(p={}){return p instanceof i.default?p:new i.default(p)}}),Mn=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=Z("path"),n=Lt(),s=bt(),i=class{constructor(h){this._settings=h,this._fsStatSettings=new n.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(h){return a.resolve(this._settings.cwd,h)}_makeEntry(h,u){let r={name:u,path:u,dirent:s.fs.createDirentFromStats(u,h)};return this._settings.stats&&(r.stats=h),r}_isFatalError(h){return!s.errno.isEnoentCodeError(h)&&!this._settings.suppressErrors}};e.default=i}),Os=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=Z("stream"),n=Lt(),s=Nn(),i=Mn(),h=class extends i.default{constructor(){super(...arguments),this._walkStream=s.walkStream,this._stat=n.stat}dynamic(u,r){return this._walkStream(u,r)}static(u,r){let t=u.map(this._getFullEntryPath,this),p=new a.PassThrough({objectMode:!0});p._write=(l,c,o)=>this._getEntry(t[l],u[l],r).then(d=>{d!==null&&r.entryFilter(d)&&p.push(d),l===t.length-1&&p.end(),o()}).catch(o);for(let l=0;l<t.length;l++)p.write(l);return p}_getEntry(u,r,t){return this._getStat(u).then(p=>this._makeEntry(p,r)).catch(p=>{if(t.errorFilter(p))return null;throw p})}_getStat(u){return new Promise((r,t)=>{this._stat(u,this._fsStatSettings,(p,l)=>p===null?r(l):t(p))})}};e.default=h}),rp=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=Nn(),n=Mn(),s=Os(),i=class extends n.default{constructor(){super(...arguments),this._walkAsync=a.walk,this._readerStream=new s.default(this._settings)}dynamic(h,u){return new Promise((r,t)=>{this._walkAsync(h,u,(p,l)=>{p===null?r(l):t(p)})})}async static(h,u){let r=[],t=this._readerStream.static(h,u);return new Promise((p,l)=>{t.once("error",l),t.on("data",c=>r.push(c)),t.once("end",()=>p(r))})}};e.default=i}),np=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=bt(),n=class{constructor(s,i,h){this._patterns=s,this._settings=i,this._micromatchOptions=h,this._storage=[],this._fillStorage()}_fillStorage(){let s=a.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let i of s){let h=this._getPatternSegments(i),u=this._splitSegmentsIntoSections(h);this._storage.push({complete:u.length<=1,pattern:i,segments:h,sections:u})}}_getPatternSegments(s){return a.pattern.getPatternParts(s,this._micromatchOptions).map(i=>a.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:a.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(s){return a.array.splitWhen(s,i=>i.dynamic&&a.pattern.hasGlobStar(i.pattern))}};e.default=n}),ip=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=np(),n=class extends a.default{match(s){let i=s.split("/"),h=i.length,u=this._storage.filter(r=>!r.complete||r.segments.length>h);for(let r of u){let t=r.sections[0];if(!r.complete&&h>t.length||i.every((p,l)=>{let c=r.segments[l];return!!(c.dynamic&&c.patternRe.test(p)||!c.dynamic&&c.pattern===p)}))return!0}return!1}};e.default=n}),sp=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=bt(),n=ip(),s=class{constructor(i,h){this._settings=i,this._micromatchOptions=h}getFilter(i,h,u){let r=this._getMatcher(h),t=this._getNegativePatternsRe(u);return p=>this._filter(i,p,r,t)}_getMatcher(i){return new n.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let h=i.filter(a.pattern.isAffectDepthOfReadingPattern);return a.pattern.convertPatternsToRe(h,this._micromatchOptions)}_filter(i,h,u,r){if(this._isSkippedByDeep(i,h.path)||this._isSkippedSymbolicLink(h))return!1;let t=a.path.removeLeadingDotSegment(h.path);return this._isSkippedByPositivePatterns(t,u)?!1:this._isSkippedByNegativePatterns(t,r)}_isSkippedByDeep(i,h){return this._settings.deep===1/0?!1:this._getEntryLevel(i,h)>=this._settings.deep}_getEntryLevel(i,h){let u=h.split("/").length;if(i==="")return u;let r=i.split("/").length;return u-r}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,h){return!this._settings.baseNameMatch&&!h.match(i)}_isSkippedByNegativePatterns(i,h){return!a.pattern.matchAny(i,h)}};e.default=s}),op=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=bt(),n=class{constructor(s,i){this._settings=s,this._micromatchOptions=i,this.index=new Map}getFilter(s,i){let h=a.pattern.convertPatternsToRe(s,this._micromatchOptions),u=a.pattern.convertPatternsToRe(i,this._micromatchOptions);return r=>this._filter(r,h,u)}_filter(s,i,h){if(this._settings.unique&&this._isDuplicateEntry(s)||this._onlyFileFilter(s)||this._onlyDirectoryFilter(s)||this._isSkippedByAbsoluteNegativePatterns(s.path,h))return!1;let u=this._settings.baseNameMatch?s.name:s.path,r=s.dirent.isDirectory(),t=this._isMatchToPatterns(u,i,r)&&!this._isMatchToPatterns(s.path,h,r);return this._settings.unique&&t&&this._createIndexRecord(s),t}_isDuplicateEntry(s){return this.index.has(s.path)}_createIndexRecord(s){this.index.set(s.path,void 0)}_onlyFileFilter(s){return this._settings.onlyFiles&&!s.dirent.isFile()}_onlyDirectoryFilter(s){return this._settings.onlyDirectories&&!s.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(s,i){if(!this._settings.absolute)return!1;let h=a.path.makeAbsolute(this._settings.cwd,s);return a.pattern.matchAny(h,i)}_isMatchToPatterns(s,i,h){let u=a.path.removeLeadingDotSegment(s),r=a.pattern.matchAny(u,i);return!r&&h?a.pattern.matchAny(u+"/",i):r}};e.default=n}),up=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=bt(),n=class{constructor(s){this._settings=s}getFilter(){return s=>this._isNonFatalError(s)}_isNonFatalError(s){return a.errno.isEnoentCodeError(s)||this._settings.suppressErrors}};e.default=n}),ap=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=bt(),n=class{constructor(s){this._settings=s}getTransformer(){return s=>this._transform(s)}_transform(s){let i=s.path;return this._settings.absolute&&(i=a.path.makeAbsolute(this._settings.cwd,i),i=a.path.unixify(i)),this._settings.markDirectories&&s.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},s),{path:i}):i}};e.default=n}),$n=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=Z("path"),n=sp(),s=op(),i=up(),h=ap(),u=class{constructor(r){this._settings=r,this.errorFilter=new i.default(this._settings),this.entryFilter=new s.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new n.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new h.default(this._settings)}_getRootDirectory(r){return a.resolve(this._settings.cwd,r.base)}_getReaderOptions(r){let t=r.base==="."?"":r.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,r.positive,r.negative),entryFilter:this.entryFilter.getFilter(r.positive,r.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=u}),lp=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=rp(),n=$n(),s=class extends n.default{constructor(){super(...arguments),this._reader=new a.default(this._settings)}async read(i){let h=this._getRootDirectory(i),u=this._getReaderOptions(i);return(await this.api(h,i,u)).map(r=>u.transform(r))}api(i,h,u){return h.dynamic?this._reader.dynamic(i,u):this._reader.static(h.patterns,u)}};e.default=s}),cp=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=Z("stream"),n=Os(),s=$n(),i=class extends s.default{constructor(){super(...arguments),this._reader=new n.default(this._settings)}read(h){let u=this._getRootDirectory(h),r=this._getReaderOptions(h),t=this.api(u,h,r),p=new a.Readable({objectMode:!0,read:()=>{}});return t.once("error",l=>p.emit("error",l)).on("data",l=>p.emit("data",r.transform(l))).once("end",()=>p.emit("end")),p.once("close",()=>t.destroy()),p}api(h,u,r){return u.dynamic?this._reader.dynamic(h,r):this._reader.static(u.patterns,r)}};e.default=i}),hp=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=Lt(),n=Nn(),s=Mn(),i=class extends s.default{constructor(){super(...arguments),this._walkSync=n.walkSync,this._statSync=a.statSync}dynamic(h,u){return this._walkSync(h,u)}static(h,u){let r=[];for(let t of h){let p=this._getFullEntryPath(t),l=this._getEntry(p,t,u);l===null||!u.entryFilter(l)||r.push(l)}return r}_getEntry(h,u,r){try{let t=this._getStat(h);return this._makeEntry(t,u)}catch(t){if(r.errorFilter(t))return null;throw t}}_getStat(h){return this._statSync(h,this._fsStatSettings)}};e.default=i}),pp=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var a=hp(),n=$n(),s=class extends n.default{constructor(){super(...arguments),this._reader=new a.default(this._settings)}read(i){let h=this._getRootDirectory(i),u=this._getReaderOptions(i);return this.api(h,i,u).map(u.transform)}api(i,h,u){return h.dynamic?this._reader.dynamic(i,u):this._reader.static(h.patterns,u)}};e.default=s}),fp=j(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var a=Z("fs"),n=Z("os"),s=Math.max(n.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:a.lstat,lstatSync:a.lstatSync,stat:a.stat,statSync:a.statSync,readdir:a.readdir,readdirSync:a.readdirSync};var i=class{constructor(h={}){this._options=h,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,s),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(h,u){return h===void 0?u:h}_getFileSystemMethods(h={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),h)}};e.default=i}),dp=j((e,a)=>{"use strict";B();var n=Ih(),s=jh(),i=lp(),h=cp(),u=pp(),r=fp(),t=bt();async function p(o,d){c(o);let f=l(o,i.default,d),y=await Promise.all(f);return t.array.flatten(y)}(function(o){function d(g,D){c(g);let E=l(g,u.default,D);return t.array.flatten(E)}o.sync=d;function f(g,D){c(g);let E=l(g,h.default,D);return t.stream.merge(E)}o.stream=f;function y(g,D){c(g);let E=s.transform([].concat(g)),v=new r.default(D);return n.generate(E,v)}o.generateTasks=y;function b(g,D){c(g);let E=new r.default(D);return t.pattern.isDynamicPattern(g,E)}o.isDynamicPattern=b;function w(g){return c(g),t.path.escape(g)}o.escapePath=w})(p||(p={}));function l(o,d,f){let y=s.transform([].concat(o)),b=new r.default(f),w=n.generate(y,b),g=new d(b);return w.map(g.read,g)}function c(o){if(![].concat(o).every(d=>t.string.isString(d)&&!t.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}a.exports=p});B();B();function Rs(e){return typeof e>"u"||e===null}function mp(e){return typeof e=="object"&&e!==null}function yp(e){return Array.isArray(e)?e:Rs(e)?[]:[e]}function gp(e,a){var n,s,i,h;if(a)for(h=Object.keys(a),n=0,s=h.length;n<s;n+=1)i=h[n],e[i]=a[i];return e}function bp(e,a){var n="",s;for(s=0;s<a;s+=1)n+=e;return n}function vp(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var wp=Rs,_p=mp,Ep=yp,Dp=bp,Sp=vp,Ap=gp,Me={isNothing:wp,isObject:_p,toArray:Ep,repeat:Dp,isNegativeZero:Sp,extend:Ap};function Ts(e,a){var n="",s=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!a&&e.mark.snippet&&(n+=`
|
|
59
|
-
|
|
60
|
-
`+e.mark.snippet),s+" "+n):s}function Xt(e,a){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=a,this.message=Ts(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Xt.prototype=Object.create(Error.prototype);Xt.prototype.constructor=Xt;Xt.prototype.toString=function(e){return this.name+": "+Ts(this,e)};var Ke=Xt;function An(e,a,n,s,i){var h="",u="",r=Math.floor(i/2)-1;return s-a>r&&(h=" ... ",a=s-r+h.length),n-s>r&&(u=" ...",n=s+r-u.length),{str:h+e.slice(a,n).replace(/\t/g,"\u2192")+u,pos:s-a+h.length}}function Cn(e,a){return Me.repeat(" ",a-e.length)+e}function Cp(e,a){if(a=Object.create(a||null),!e.buffer)return null;a.maxLength||(a.maxLength=79),typeof a.indent!="number"&&(a.indent=1),typeof a.linesBefore!="number"&&(a.linesBefore=3),typeof a.linesAfter!="number"&&(a.linesAfter=2);for(var n=/\r?\n|\r|\0/g,s=[0],i=[],h,u=-1;h=n.exec(e.buffer);)i.push(h.index),s.push(h.index+h[0].length),e.position<=h.index&&u<0&&(u=s.length-2);u<0&&(u=s.length-1);var r="",t,p,l=Math.min(e.line+a.linesAfter,i.length).toString().length,c=a.maxLength-(a.indent+l+3);for(t=1;t<=a.linesBefore&&!(u-t<0);t++)p=An(e.buffer,s[u-t],i[u-t],e.position-(s[u]-s[u-t]),c),r=Me.repeat(" ",a.indent)+Cn((e.line-t+1).toString(),l)+" | "+p.str+`
|
|
61
|
-
`+r;for(p=An(e.buffer,s[u],i[u],e.position,c),r+=Me.repeat(" ",a.indent)+Cn((e.line+1).toString(),l)+" | "+p.str+`
|
|
62
|
-
`,r+=Me.repeat("-",a.indent+l+3+p.pos)+`^
|
|
63
|
-
`,t=1;t<=a.linesAfter&&!(u+t>=i.length);t++)p=An(e.buffer,s[u+t],i[u+t],e.position-(s[u]-s[u+t]),c),r+=Me.repeat(" ",a.indent)+Cn((e.line+t+1).toString(),l)+" | "+p.str+`
|
|
64
|
-
`;return r.replace(/\n$/,"")}var xp=Cp,kp=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Fp=["scalar","sequence","mapping"];function Op(e){var a={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(s){a[String(s)]=n})}),a}function Rp(e,a){if(a=a||{},Object.keys(a).forEach(function(n){if(kp.indexOf(n)===-1)throw new Ke('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=a,this.tag=e,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(n){return n},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=Op(a.styleAliases||null),Fp.indexOf(this.kind)===-1)throw new Ke('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ue=Rp;function ls(e,a){var n=[];return e[a].forEach(function(s){var i=n.length;n.forEach(function(h,u){h.tag===s.tag&&h.kind===s.kind&&h.multi===s.multi&&(i=u)}),n[i]=s}),n}function Tp(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},a,n;function s(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(a=0,n=arguments.length;a<n;a+=1)arguments[a].forEach(s);return e}function Fn(e){return this.extend(e)}Fn.prototype.extend=function(e){var a=[],n=[];if(e instanceof Ue)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(a=a.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new Ke("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");a.forEach(function(i){if(!(i instanceof Ue))throw new Ke("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new Ke("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new Ke("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(i){if(!(i instanceof Ue))throw new Ke("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(Fn.prototype);return s.implicit=(this.implicit||[]).concat(a),s.explicit=(this.explicit||[]).concat(n),s.compiledImplicit=ls(s,"implicit"),s.compiledExplicit=ls(s,"explicit"),s.compiledTypeMap=Tp(s.compiledImplicit,s.compiledExplicit),s};var Bs=Fn,Ps=new Ue("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Ls=new Ue("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Is=new Ue("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),js=new Bs({explicit:[Ps,Ls,Is]});function Bp(e){if(e===null)return!0;var a=e.length;return a===1&&e==="~"||a===4&&(e==="null"||e==="Null"||e==="NULL")}function Pp(){return null}function Lp(e){return e===null}var Ns=new Ue("tag:yaml.org,2002:null",{kind:"scalar",resolve:Bp,construct:Pp,predicate:Lp,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Ip(e){if(e===null)return!1;var a=e.length;return a===4&&(e==="true"||e==="True"||e==="TRUE")||a===5&&(e==="false"||e==="False"||e==="FALSE")}function jp(e){return e==="true"||e==="True"||e==="TRUE"}function Np(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Ms=new Ue("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Ip,construct:jp,predicate:Np,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Mp(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function $p(e){return 48<=e&&e<=55}function Hp(e){return 48<=e&&e<=57}function Up(e){if(e===null)return!1;var a=e.length,n=0,s=!1,i;if(!a)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===a)return!0;if(i=e[++n],i==="b"){for(n++;n<a;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;s=!0}return s&&i!=="_"}if(i==="x"){for(n++;n<a;n++)if(i=e[n],i!=="_"){if(!Mp(e.charCodeAt(n)))return!1;s=!0}return s&&i!=="_"}if(i==="o"){for(n++;n<a;n++)if(i=e[n],i!=="_"){if(!$p(e.charCodeAt(n)))return!1;s=!0}return s&&i!=="_"}}if(i==="_")return!1;for(;n<a;n++)if(i=e[n],i!=="_"){if(!Hp(e.charCodeAt(n)))return!1;s=!0}return!(!s||i==="_")}function Gp(e){var a=e,n=1,s;if(a.indexOf("_")!==-1&&(a=a.replace(/_/g,"")),s=a[0],(s==="-"||s==="+")&&(s==="-"&&(n=-1),a=a.slice(1),s=a[0]),a==="0")return 0;if(s==="0"){if(a[1]==="b")return n*parseInt(a.slice(2),2);if(a[1]==="x")return n*parseInt(a.slice(2),16);if(a[1]==="o")return n*parseInt(a.slice(2),8)}return n*parseInt(a,10)}function qp(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Me.isNegativeZero(e)}var $s=new Ue("tag:yaml.org,2002:int",{kind:"scalar",resolve:Up,construct:Gp,predicate:qp,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Wp=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function zp(e){return!(e===null||!Wp.test(e)||e[e.length-1]==="_")}function Vp(e){var a,n;return a=e.replace(/_/g,"").toLowerCase(),n=a[0]==="-"?-1:1,"+-".indexOf(a[0])>=0&&(a=a.slice(1)),a===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:a===".nan"?NaN:n*parseFloat(a,10)}var Kp=/^[-+]?[0-9]+e/;function Yp(e,a){var n;if(isNaN(e))switch(a){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(a){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(a){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Me.isNegativeZero(e))return"-0.0";return n=e.toString(10),Kp.test(n)?n.replace("e",".e"):n}function Jp(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Me.isNegativeZero(e))}var Hs=new Ue("tag:yaml.org,2002:float",{kind:"scalar",resolve:zp,construct:Vp,predicate:Jp,represent:Yp,defaultStyle:"lowercase"}),Us=js.extend({implicit:[Ns,Ms,$s,Hs]}),Gs=Us,qs=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ws=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Zp(e){return e===null?!1:qs.exec(e)!==null||Ws.exec(e)!==null}function Xp(e){var a,n,s,i,h,u,r,t=0,p=null,l,c,o;if(a=qs.exec(e),a===null&&(a=Ws.exec(e)),a===null)throw new Error("Date resolve error");if(n=+a[1],s=+a[2]-1,i=+a[3],!a[4])return new Date(Date.UTC(n,s,i));if(h=+a[4],u=+a[5],r=+a[6],a[7]){for(t=a[7].slice(0,3);t.length<3;)t+="0";t=+t}return a[9]&&(l=+a[10],c=+(a[11]||0),p=(l*60+c)*6e4,a[9]==="-"&&(p=-p)),o=new Date(Date.UTC(n,s,i,h,u,r,t)),p&&o.setTime(o.getTime()-p),o}function Qp(e){return e.toISOString()}var zs=new Ue("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Zp,construct:Xp,instanceOf:Date,represent:Qp});function ef(e){return e==="<<"||e===null}var Vs=new Ue("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ef}),Hn=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
65
|
-
\r`;function tf(e){if(e===null)return!1;var a,n,s=0,i=e.length,h=Hn;for(n=0;n<i;n++)if(a=h.indexOf(e.charAt(n)),!(a>64)){if(a<0)return!1;s+=6}return s%8===0}function rf(e){var a,n,s=e.replace(/[\r\n=]/g,""),i=s.length,h=Hn,u=0,r=[];for(a=0;a<i;a++)a%4===0&&a&&(r.push(u>>16&255),r.push(u>>8&255),r.push(u&255)),u=u<<6|h.indexOf(s.charAt(a));return n=i%4*6,n===0?(r.push(u>>16&255),r.push(u>>8&255),r.push(u&255)):n===18?(r.push(u>>10&255),r.push(u>>2&255)):n===12&&r.push(u>>4&255),new Uint8Array(r)}function nf(e){var a="",n=0,s,i,h=e.length,u=Hn;for(s=0;s<h;s++)s%3===0&&s&&(a+=u[n>>18&63],a+=u[n>>12&63],a+=u[n>>6&63],a+=u[n&63]),n=(n<<8)+e[s];return i=h%3,i===0?(a+=u[n>>18&63],a+=u[n>>12&63],a+=u[n>>6&63],a+=u[n&63]):i===2?(a+=u[n>>10&63],a+=u[n>>4&63],a+=u[n<<2&63],a+=u[64]):i===1&&(a+=u[n>>2&63],a+=u[n<<4&63],a+=u[64],a+=u[64]),a}function sf(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Ks=new Ue("tag:yaml.org,2002:binary",{kind:"scalar",resolve:tf,construct:rf,predicate:sf,represent:nf}),of=Object.prototype.hasOwnProperty,uf=Object.prototype.toString;function af(e){if(e===null)return!0;var a=[],n,s,i,h,u,r=e;for(n=0,s=r.length;n<s;n+=1){if(i=r[n],u=!1,uf.call(i)!=="[object Object]")return!1;for(h in i)if(of.call(i,h))if(!u)u=!0;else return!1;if(!u)return!1;if(a.indexOf(h)===-1)a.push(h);else return!1}return!0}function lf(e){return e!==null?e:[]}var Ys=new Ue("tag:yaml.org,2002:omap",{kind:"sequence",resolve:af,construct:lf}),cf=Object.prototype.toString;function hf(e){if(e===null)return!0;var a,n,s,i,h,u=e;for(h=new Array(u.length),a=0,n=u.length;a<n;a+=1){if(s=u[a],cf.call(s)!=="[object Object]"||(i=Object.keys(s),i.length!==1))return!1;h[a]=[i[0],s[i[0]]]}return!0}function pf(e){if(e===null)return[];var a,n,s,i,h,u=e;for(h=new Array(u.length),a=0,n=u.length;a<n;a+=1)s=u[a],i=Object.keys(s),h[a]=[i[0],s[i[0]]];return h}var Js=new Ue("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:hf,construct:pf}),ff=Object.prototype.hasOwnProperty;function df(e){if(e===null)return!0;var a,n=e;for(a in n)if(ff.call(n,a)&&n[a]!==null)return!1;return!0}function mf(e){return e!==null?e:{}}var Zs=new Ue("tag:yaml.org,2002:set",{kind:"mapping",resolve:df,construct:mf}),Un=Gs.extend({implicit:[zs,Vs],explicit:[Ks,Ys,Js,Zs]}),gt=Object.prototype.hasOwnProperty,Sr=1,Xs=2,Qs=3,Ar=4,xn=1,yf=2,cs=3,gf=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,bf=/[\x85\u2028\u2029]/,vf=/[,\[\]\{\}]/,eo=/^(?:!|!!|![a-z\-]+!)$/i,to=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function hs(e){return Object.prototype.toString.call(e)}function st(e){return e===10||e===13}function At(e){return e===9||e===32}function Ye(e){return e===9||e===32||e===10||e===13}function Tt(e){return e===44||e===91||e===93||e===123||e===125}function wf(e){var a;return 48<=e&&e<=57?e-48:(a=e|32,97<=a&&a<=102?a-97+10:-1)}function _f(e){return e===120?2:e===117?4:e===85?8:0}function Ef(e){return 48<=e&&e<=57?e-48:-1}function ps(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
66
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Df(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var ro=new Array(256),no=new Array(256);for(Dt=0;Dt<256;Dt++)ro[Dt]=ps(Dt)?1:0,no[Dt]=ps(Dt);var Dt;function Sf(e,a){this.input=e,this.filename=a.filename||null,this.schema=a.schema||Un,this.onWarning=a.onWarning||null,this.legacy=a.legacy||!1,this.json=a.json||!1,this.listener=a.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function io(e,a){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=xp(n),new Ke(a,n)}function ge(e,a){throw io(e,a)}function Cr(e,a){e.onWarning&&e.onWarning.call(null,io(e,a))}var fs={YAML:function(e,a,n){var s,i,h;e.version!==null&&ge(e,"duplication of %YAML directive"),n.length!==1&&ge(e,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),s===null&&ge(e,"ill-formed argument of the YAML directive"),i=parseInt(s[1],10),h=parseInt(s[2],10),i!==1&&ge(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=h<2,h!==1&&h!==2&&Cr(e,"unsupported YAML version of the document")},TAG:function(e,a,n){var s,i;n.length!==2&&ge(e,"TAG directive accepts exactly two arguments"),s=n[0],i=n[1],eo.test(s)||ge(e,"ill-formed tag handle (first argument) of the TAG directive"),gt.call(e.tagMap,s)&&ge(e,'there is a previously declared suffix for "'+s+'" tag handle'),to.test(i)||ge(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{ge(e,"tag prefix is malformed: "+i)}e.tagMap[s]=i}};function yt(e,a,n,s){var i,h,u,r;if(a<n){if(r=e.input.slice(a,n),s)for(i=0,h=r.length;i<h;i+=1)u=r.charCodeAt(i),u===9||32<=u&&u<=1114111||ge(e,"expected valid JSON character");else gf.test(r)&&ge(e,"the stream contains non-printable characters");e.result+=r}}function ds(e,a,n,s){var i,h,u,r;for(Me.isObject(n)||ge(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),u=0,r=i.length;u<r;u+=1)h=i[u],gt.call(a,h)||(a[h]=n[h],s[h]=!0)}function Bt(e,a,n,s,i,h,u,r,t){var p,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),p=0,l=i.length;p<l;p+=1)Array.isArray(i[p])&&ge(e,"nested arrays are not supported inside keys"),typeof i=="object"&&hs(i[p])==="[object Object]"&&(i[p]="[object Object]");if(typeof i=="object"&&hs(i)==="[object Object]"&&(i="[object Object]"),i=String(i),a===null&&(a={}),s==="tag:yaml.org,2002:merge")if(Array.isArray(h))for(p=0,l=h.length;p<l;p+=1)ds(e,a,h[p],n);else ds(e,a,h,n);else!e.json&&!gt.call(n,i)&>.call(a,i)&&(e.line=u||e.line,e.lineStart=r||e.lineStart,e.position=t||e.position,ge(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(a,i,{configurable:!0,enumerable:!0,writable:!0,value:h}):a[i]=h,delete n[i];return a}function Gn(e){var a;a=e.input.charCodeAt(e.position),a===10?e.position++:a===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ge(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ne(e,a,n){for(var s=0,i=e.input.charCodeAt(e.position);i!==0;){for(;At(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(a&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(st(i))for(Gn(e),i=e.input.charCodeAt(e.position),s++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&s!==0&&e.lineIndent<n&&Cr(e,"deficient indentation"),s}function Rr(e){var a=e.position,n;return n=e.input.charCodeAt(a),!!((n===45||n===46)&&n===e.input.charCodeAt(a+1)&&n===e.input.charCodeAt(a+2)&&(a+=3,n=e.input.charCodeAt(a),n===0||Ye(n)))}function qn(e,a){a===1?e.result+=" ":a>1&&(e.result+=Me.repeat(`
|
|
67
|
-
`,a-1))}function Af(e,a,n){var s,i,h,u,r,t,p,l,c=e.kind,o=e.result,d;if(d=e.input.charCodeAt(e.position),Ye(d)||Tt(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),Ye(i)||n&&Tt(i)))return!1;for(e.kind="scalar",e.result="",h=u=e.position,r=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),Ye(i)||n&&Tt(i))break}else if(d===35){if(s=e.input.charCodeAt(e.position-1),Ye(s))break}else{if(e.position===e.lineStart&&Rr(e)||n&&Tt(d))break;if(st(d))if(t=e.line,p=e.lineStart,l=e.lineIndent,Ne(e,!1,-1),e.lineIndent>=a){r=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=u,e.line=t,e.lineStart=p,e.lineIndent=l;break}}r&&(yt(e,h,u,!1),qn(e,e.line-t),h=u=e.position,r=!1),At(d)||(u=e.position+1),d=e.input.charCodeAt(++e.position)}return yt(e,h,u,!1),e.result?!0:(e.kind=c,e.result=o,!1)}function Cf(e,a){var n,s,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,s=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(yt(e,s,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)s=e.position,e.position++,i=e.position;else return!0;else st(n)?(yt(e,s,i,!0),qn(e,Ne(e,!1,a)),s=i=e.position):e.position===e.lineStart&&Rr(e)?ge(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ge(e,"unexpected end of the stream within a single quoted scalar")}function xf(e,a){var n,s,i,h,u,r;if(r=e.input.charCodeAt(e.position),r!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=s=e.position;(r=e.input.charCodeAt(e.position))!==0;){if(r===34)return yt(e,n,e.position,!0),e.position++,!0;if(r===92){if(yt(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),st(r))Ne(e,!1,a);else if(r<256&&ro[r])e.result+=no[r],e.position++;else if((u=_f(r))>0){for(i=u,h=0;i>0;i--)r=e.input.charCodeAt(++e.position),(u=wf(r))>=0?h=(h<<4)+u:ge(e,"expected hexadecimal character");e.result+=Df(h),e.position++}else ge(e,"unknown escape sequence");n=s=e.position}else st(r)?(yt(e,n,s,!0),qn(e,Ne(e,!1,a)),n=s=e.position):e.position===e.lineStart&&Rr(e)?ge(e,"unexpected end of the document within a double quoted scalar"):(e.position++,s=e.position)}ge(e,"unexpected end of the stream within a double quoted scalar")}function kf(e,a){var n=!0,s,i,h,u=e.tag,r,t=e.anchor,p,l,c,o,d,f=Object.create(null),y,b,w,g;if(g=e.input.charCodeAt(e.position),g===91)l=93,d=!1,r=[];else if(g===123)l=125,d=!0,r={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=r),g=e.input.charCodeAt(++e.position);g!==0;){if(Ne(e,!0,a),g=e.input.charCodeAt(e.position),g===l)return e.position++,e.tag=u,e.anchor=t,e.kind=d?"mapping":"sequence",e.result=r,!0;n?g===44&&ge(e,"expected the node content, but found ','"):ge(e,"missed comma between flow collection entries"),b=y=w=null,c=o=!1,g===63&&(p=e.input.charCodeAt(e.position+1),Ye(p)&&(c=o=!0,e.position++,Ne(e,!0,a))),s=e.line,i=e.lineStart,h=e.position,Pt(e,a,Sr,!1,!0),b=e.tag,y=e.result,Ne(e,!0,a),g=e.input.charCodeAt(e.position),(o||e.line===s)&&g===58&&(c=!0,g=e.input.charCodeAt(++e.position),Ne(e,!0,a),Pt(e,a,Sr,!1,!0),w=e.result),d?Bt(e,r,f,b,y,w,s,i,h):c?r.push(Bt(e,null,f,b,y,w,s,i,h)):r.push(y),Ne(e,!0,a),g=e.input.charCodeAt(e.position),g===44?(n=!0,g=e.input.charCodeAt(++e.position)):n=!1}ge(e,"unexpected end of the stream within a flow collection")}function Ff(e,a){var n,s,i=xn,h=!1,u=!1,r=a,t=0,p=!1,l,c;if(c=e.input.charCodeAt(e.position),c===124)s=!1;else if(c===62)s=!0;else return!1;for(e.kind="scalar",e.result="";c!==0;)if(c=e.input.charCodeAt(++e.position),c===43||c===45)xn===i?i=c===43?cs:yf:ge(e,"repeat of a chomping mode identifier");else if((l=Ef(c))>=0)l===0?ge(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?ge(e,"repeat of an indentation width identifier"):(r=a+l-1,u=!0);else break;if(At(c)){do c=e.input.charCodeAt(++e.position);while(At(c));if(c===35)do c=e.input.charCodeAt(++e.position);while(!st(c)&&c!==0)}for(;c!==0;){for(Gn(e),e.lineIndent=0,c=e.input.charCodeAt(e.position);(!u||e.lineIndent<r)&&c===32;)e.lineIndent++,c=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>r&&(r=e.lineIndent),st(c)){t++;continue}if(e.lineIndent<r){i===cs?e.result+=Me.repeat(`
|
|
68
|
-
`,h?1+t:t):i===xn&&h&&(e.result+=`
|
|
69
|
-
`);break}for(s?At(c)?(p=!0,e.result+=Me.repeat(`
|
|
70
|
-
`,h?1+t:t)):p?(p=!1,e.result+=Me.repeat(`
|
|
71
|
-
`,t+1)):t===0?h&&(e.result+=" "):e.result+=Me.repeat(`
|
|
72
|
-
`,t):e.result+=Me.repeat(`
|
|
73
|
-
`,h?1+t:t),h=!0,u=!0,t=0,n=e.position;!st(c)&&c!==0;)c=e.input.charCodeAt(++e.position);yt(e,n,e.position,!1)}return!0}function ms(e,a){var n,s=e.tag,i=e.anchor,h=[],u,r=!1,t;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),t=e.input.charCodeAt(e.position);t!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ge(e,"tab characters must not be used in indentation")),!(t!==45||(u=e.input.charCodeAt(e.position+1),!Ye(u))));){if(r=!0,e.position++,Ne(e,!0,-1)&&e.lineIndent<=a){h.push(null),t=e.input.charCodeAt(e.position);continue}if(n=e.line,Pt(e,a,Qs,!1,!0),h.push(e.result),Ne(e,!0,-1),t=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>a)&&t!==0)ge(e,"bad indentation of a sequence entry");else if(e.lineIndent<a)break}return r?(e.tag=s,e.anchor=i,e.kind="sequence",e.result=h,!0):!1}function Of(e,a,n){var s,i,h,u,r,t,p=e.tag,l=e.anchor,c={},o=Object.create(null),d=null,f=null,y=null,b=!1,w=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),g=e.input.charCodeAt(e.position);g!==0;){if(!b&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ge(e,"tab characters must not be used in indentation")),s=e.input.charCodeAt(e.position+1),h=e.line,(g===63||g===58)&&Ye(s))g===63?(b&&(Bt(e,c,o,d,f,null,u,r,t),d=f=y=null),w=!0,b=!0,i=!0):b?(b=!1,i=!0):ge(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=s;else{if(u=e.line,r=e.lineStart,t=e.position,!Pt(e,n,Xs,!1,!0))break;if(e.line===h){for(g=e.input.charCodeAt(e.position);At(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),Ye(g)||ge(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(Bt(e,c,o,d,f,null,u,r,t),d=f=y=null),w=!0,b=!1,i=!1,d=e.tag,f=e.result;else if(w)ge(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=p,e.anchor=l,!0}else if(w)ge(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=p,e.anchor=l,!0}if((e.line===h||e.lineIndent>a)&&(b&&(u=e.line,r=e.lineStart,t=e.position),Pt(e,a,Ar,!0,i)&&(b?f=e.result:y=e.result),b||(Bt(e,c,o,d,f,y,u,r,t),d=f=y=null),Ne(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===h||e.lineIndent>a)&&g!==0)ge(e,"bad indentation of a mapping entry");else if(e.lineIndent<a)break}return b&&Bt(e,c,o,d,f,null,u,r,t),w&&(e.tag=p,e.anchor=l,e.kind="mapping",e.result=c),w}function Rf(e){var a,n=!1,s=!1,i,h,u;if(u=e.input.charCodeAt(e.position),u!==33)return!1;if(e.tag!==null&&ge(e,"duplication of a tag property"),u=e.input.charCodeAt(++e.position),u===60?(n=!0,u=e.input.charCodeAt(++e.position)):u===33?(s=!0,i="!!",u=e.input.charCodeAt(++e.position)):i="!",a=e.position,n){do u=e.input.charCodeAt(++e.position);while(u!==0&&u!==62);e.position<e.length?(h=e.input.slice(a,e.position),u=e.input.charCodeAt(++e.position)):ge(e,"unexpected end of the stream within a verbatim tag")}else{for(;u!==0&&!Ye(u);)u===33&&(s?ge(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(a-1,e.position+1),eo.test(i)||ge(e,"named tag handle cannot contain such characters"),s=!0,a=e.position+1)),u=e.input.charCodeAt(++e.position);h=e.input.slice(a,e.position),vf.test(h)&&ge(e,"tag suffix cannot contain flow indicator characters")}h&&!to.test(h)&&ge(e,"tag name cannot contain such characters: "+h);try{h=decodeURIComponent(h)}catch{ge(e,"tag name is malformed: "+h)}return n?e.tag=h:gt.call(e.tagMap,i)?e.tag=e.tagMap[i]+h:i==="!"?e.tag="!"+h:i==="!!"?e.tag="tag:yaml.org,2002:"+h:ge(e,'undeclared tag handle "'+i+'"'),!0}function Tf(e){var a,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&ge(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),a=e.position;n!==0&&!Ye(n)&&!Tt(n);)n=e.input.charCodeAt(++e.position);return e.position===a&&ge(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(a,e.position),!0}function Bf(e){var a,n,s;if(s=e.input.charCodeAt(e.position),s!==42)return!1;for(s=e.input.charCodeAt(++e.position),a=e.position;s!==0&&!Ye(s)&&!Tt(s);)s=e.input.charCodeAt(++e.position);return e.position===a&&ge(e,"name of an alias node must contain at least one character"),n=e.input.slice(a,e.position),gt.call(e.anchorMap,n)||ge(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Ne(e,!0,-1),!0}function Pt(e,a,n,s,i){var h,u,r,t=1,p=!1,l=!1,c,o,d,f,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,h=u=r=Ar===n||Qs===n,s&&Ne(e,!0,-1)&&(p=!0,e.lineIndent>a?t=1:e.lineIndent===a?t=0:e.lineIndent<a&&(t=-1)),t===1)for(;Rf(e)||Tf(e);)Ne(e,!0,-1)?(p=!0,r=h,e.lineIndent>a?t=1:e.lineIndent===a?t=0:e.lineIndent<a&&(t=-1)):r=!1;if(r&&(r=p||i),(t===1||Ar===n)&&(Sr===n||Xs===n?y=a:y=a+1,b=e.position-e.lineStart,t===1?r&&(ms(e,b)||Of(e,b,y))||kf(e,y)?l=!0:(u&&Ff(e,y)||Cf(e,y)||xf(e,y)?l=!0:Bf(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&ge(e,"alias node should not have any properties")):Af(e,y,Sr===n)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):t===0&&(l=r&&ms(e,b))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ge(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,o=e.implicitTypes.length;c<o;c+=1)if(f=e.implicitTypes[c],f.resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(gt.call(e.typeMap[e.kind||"fallback"],e.tag))f=e.typeMap[e.kind||"fallback"][e.tag];else for(f=null,d=e.typeMap.multi[e.kind||"fallback"],c=0,o=d.length;c<o;c+=1)if(e.tag.slice(0,d[c].tag.length)===d[c].tag){f=d[c];break}f||ge(e,"unknown tag !<"+e.tag+">"),e.result!==null&&f.kind!==e.kind&&ge(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ge(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function Pf(e){var a=e.position,n,s,i,h=!1,u;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(u=e.input.charCodeAt(e.position))!==0&&(Ne(e,!0,-1),u=e.input.charCodeAt(e.position),!(e.lineIndent>0||u!==37));){for(h=!0,u=e.input.charCodeAt(++e.position),n=e.position;u!==0&&!Ye(u);)u=e.input.charCodeAt(++e.position);for(s=e.input.slice(n,e.position),i=[],s.length<1&&ge(e,"directive name must not be less than one character in length");u!==0;){for(;At(u);)u=e.input.charCodeAt(++e.position);if(u===35){do u=e.input.charCodeAt(++e.position);while(u!==0&&!st(u));break}if(st(u))break;for(n=e.position;u!==0&&!Ye(u);)u=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}u!==0&&Gn(e),gt.call(fs,s)?fs[s](e,s,i):Cr(e,'unknown document directive "'+s+'"')}if(Ne(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ne(e,!0,-1)):h&&ge(e,"directives end mark is expected"),Pt(e,e.lineIndent-1,Ar,!1,!0),Ne(e,!0,-1),e.checkLineBreaks&&bf.test(e.input.slice(a,e.position))&&Cr(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Rr(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ne(e,!0,-1));return}if(e.position<e.length-1)ge(e,"end of the stream or a document separator is expected");else return}function so(e,a){e=String(e),a=a||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
74
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new Sf(e,a),s=e.indexOf("\0");for(s!==-1&&(n.position=s,ge(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Pf(n);return n.documents}function Lf(e,a,n){a!==null&&typeof a=="object"&&typeof n>"u"&&(n=a,a=null);var s=so(e,n);if(typeof a!="function")return s;for(var i=0,h=s.length;i<h;i+=1)a(s[i])}function If(e,a){var n=so(e,a);if(n.length!==0){if(n.length===1)return n[0];throw new Ke("expected a single document in the stream, but found more")}}var jf=Lf,Nf=If,oo={loadAll:jf,load:Nf},uo=Object.prototype.toString,ao=Object.prototype.hasOwnProperty,Wn=65279,Mf=9,Qt=10,$f=13,Hf=32,Uf=33,Gf=34,On=35,qf=37,Wf=38,zf=39,Vf=42,lo=44,Kf=45,xr=58,Yf=61,Jf=62,Zf=63,Xf=64,co=91,ho=93,Qf=96,po=123,ed=124,fo=125,ze={};ze[0]="\\0";ze[7]="\\a";ze[8]="\\b";ze[9]="\\t";ze[10]="\\n";ze[11]="\\v";ze[12]="\\f";ze[13]="\\r";ze[27]="\\e";ze[34]='\\"';ze[92]="\\\\";ze[133]="\\N";ze[160]="\\_";ze[8232]="\\L";ze[8233]="\\P";var td=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],rd=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function nd(e,a){var n,s,i,h,u,r,t;if(a===null)return{};for(n={},s=Object.keys(a),i=0,h=s.length;i<h;i+=1)u=s[i],r=String(a[u]),u.slice(0,2)==="!!"&&(u="tag:yaml.org,2002:"+u.slice(2)),t=e.compiledTypeMap.fallback[u],t&&ao.call(t.styleAliases,r)&&(r=t.styleAliases[r]),n[u]=r;return n}function id(e){var a,n,s;if(a=e.toString(16).toUpperCase(),e<=255)n="x",s=2;else if(e<=65535)n="u",s=4;else if(e<=4294967295)n="U",s=8;else throw new Ke("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Me.repeat("0",s-a.length)+a}var sd=1,er=2;function od(e){this.schema=e.schema||Un,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Me.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=nd(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?er:sd,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function ys(e,a){for(var n=Me.repeat(" ",a),s=0,i=-1,h="",u,r=e.length;s<r;)i=e.indexOf(`
|
|
75
|
-
`,s),i===-1?(u=e.slice(s),s=r):(u=e.slice(s,i+1),s=i+1),u.length&&u!==`
|
|
76
|
-
`&&(h+=n),h+=u;return h}function Rn(e,a){return`
|
|
77
|
-
`+Me.repeat(" ",e.indent*a)}function ud(e,a){var n,s,i;for(n=0,s=e.implicitTypes.length;n<s;n+=1)if(i=e.implicitTypes[n],i.resolve(a))return!0;return!1}function kr(e){return e===Hf||e===Mf}function tr(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Wn||65536<=e&&e<=1114111}function gs(e){return tr(e)&&e!==Wn&&e!==$f&&e!==Qt}function bs(e,a,n){var s=gs(e),i=s&&!kr(e);return(n?s:s&&e!==lo&&e!==co&&e!==ho&&e!==po&&e!==fo)&&e!==On&&!(a===xr&&!i)||gs(a)&&!kr(a)&&e===On||a===xr&&i}function ad(e){return tr(e)&&e!==Wn&&!kr(e)&&e!==Kf&&e!==Zf&&e!==xr&&e!==lo&&e!==co&&e!==ho&&e!==po&&e!==fo&&e!==On&&e!==Wf&&e!==Vf&&e!==Uf&&e!==ed&&e!==Yf&&e!==Jf&&e!==zf&&e!==Gf&&e!==qf&&e!==Xf&&e!==Qf}function ld(e){return!kr(e)&&e!==xr}function Jt(e,a){var n=e.charCodeAt(a),s;return n>=55296&&n<=56319&&a+1<e.length&&(s=e.charCodeAt(a+1),s>=56320&&s<=57343)?(n-55296)*1024+s-56320+65536:n}function mo(e){var a=/^\n* /;return a.test(e)}var yo=1,Tn=2,go=3,bo=4,Rt=5;function cd(e,a,n,s,i,h,u,r){var t,p=0,l=null,c=!1,o=!1,d=s!==-1,f=-1,y=ad(Jt(e,0))&&ld(Jt(e,e.length-1));if(a||u)for(t=0;t<e.length;p>=65536?t+=2:t++){if(p=Jt(e,t),!tr(p))return Rt;y=y&&bs(p,l,r),l=p}else{for(t=0;t<e.length;p>=65536?t+=2:t++){if(p=Jt(e,t),p===Qt)c=!0,d&&(o=o||t-f-1>s&&e[f+1]!==" ",f=t);else if(!tr(p))return Rt;y=y&&bs(p,l,r),l=p}o=o||d&&t-f-1>s&&e[f+1]!==" "}return!c&&!o?y&&!u&&!i(e)?yo:h===er?Rt:Tn:n>9&&mo(e)?Rt:u?h===er?Rt:Tn:o?bo:go}function hd(e,a,n,s,i){e.dump=function(){if(a.length===0)return e.quotingType===er?'""':"''";if(!e.noCompatMode&&(td.indexOf(a)!==-1||rd.test(a)))return e.quotingType===er?'"'+a+'"':"'"+a+"'";var h=e.indent*Math.max(1,n),u=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-h),r=s||e.flowLevel>-1&&n>=e.flowLevel;function t(p){return ud(e,p)}switch(cd(a,r,e.indent,u,t,e.quotingType,e.forceQuotes&&!s,i)){case yo:return a;case Tn:return"'"+a.replace(/'/g,"''")+"'";case go:return"|"+vs(a,e.indent)+ws(ys(a,h));case bo:return">"+vs(a,e.indent)+ws(ys(pd(a,u),h));case Rt:return'"'+fd(a)+'"';default:throw new Ke("impossible error: invalid scalar style")}}()}function vs(e,a){var n=mo(e)?String(a):"",s=e[e.length-1]===`
|
|
78
|
-
`,i=s&&(e[e.length-2]===`
|
|
79
|
-
`||e===`
|
|
80
|
-
`),h=i?"+":s?"":"-";return n+h+`
|
|
81
|
-
`}function ws(e){return e[e.length-1]===`
|
|
82
|
-
`?e.slice(0,-1):e}function pd(e,a){for(var n=/(\n+)([^\n]*)/g,s=function(){var p=e.indexOf(`
|
|
83
|
-
`);return p=p!==-1?p:e.length,n.lastIndex=p,_s(e.slice(0,p),a)}(),i=e[0]===`
|
|
84
|
-
`||e[0]===" ",h,u;u=n.exec(e);){var r=u[1],t=u[2];h=t[0]===" ",s+=r+(!i&&!h&&t!==""?`
|
|
85
|
-
`:"")+_s(t,a),i=h}return s}function _s(e,a){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,s,i=0,h,u=0,r=0,t="";s=n.exec(e);)r=s.index,r-i>a&&(h=u>i?u:r,t+=`
|
|
86
|
-
`+e.slice(i,h),i=h+1),u=r;return t+=`
|
|
87
|
-
`,e.length-i>a&&u>i?t+=e.slice(i,u)+`
|
|
88
|
-
`+e.slice(u+1):t+=e.slice(i),t.slice(1)}function fd(e){for(var a="",n=0,s,i=0;i<e.length;n>=65536?i+=2:i++)n=Jt(e,i),s=ze[n],!s&&tr(n)?(a+=e[i],n>=65536&&(a+=e[i+1])):a+=s||id(n);return a}function dd(e,a,n){var s="",i=e.tag,h,u,r;for(h=0,u=n.length;h<u;h+=1)r=n[h],e.replacer&&(r=e.replacer.call(n,String(h),r)),(ct(e,a,r,!1,!1)||typeof r>"u"&&ct(e,a,null,!1,!1))&&(s!==""&&(s+=","+(e.condenseFlow?"":" ")),s+=e.dump);e.tag=i,e.dump="["+s+"]"}function Es(e,a,n,s){var i="",h=e.tag,u,r,t;for(u=0,r=n.length;u<r;u+=1)t=n[u],e.replacer&&(t=e.replacer.call(n,String(u),t)),(ct(e,a+1,t,!0,!0,!1,!0)||typeof t>"u"&&ct(e,a+1,null,!0,!0,!1,!0))&&((!s||i!=="")&&(i+=Rn(e,a)),e.dump&&Qt===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=h,e.dump=i||"[]"}function md(e,a,n){var s="",i=e.tag,h=Object.keys(n),u,r,t,p,l;for(u=0,r=h.length;u<r;u+=1)l="",s!==""&&(l+=", "),e.condenseFlow&&(l+='"'),t=h[u],p=n[t],e.replacer&&(p=e.replacer.call(n,t,p)),ct(e,a,t,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ct(e,a,p,!1,!1)&&(l+=e.dump,s+=l));e.tag=i,e.dump="{"+s+"}"}function yd(e,a,n,s){var i="",h=e.tag,u=Object.keys(n),r,t,p,l,c,o;if(e.sortKeys===!0)u.sort();else if(typeof e.sortKeys=="function")u.sort(e.sortKeys);else if(e.sortKeys)throw new Ke("sortKeys must be a boolean or a function");for(r=0,t=u.length;r<t;r+=1)o="",(!s||i!=="")&&(o+=Rn(e,a)),p=u[r],l=n[p],e.replacer&&(l=e.replacer.call(n,p,l)),ct(e,a+1,p,!0,!0,!0)&&(c=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,c&&(e.dump&&Qt===e.dump.charCodeAt(0)?o+="?":o+="? "),o+=e.dump,c&&(o+=Rn(e,a)),ct(e,a+1,l,!0,c)&&(e.dump&&Qt===e.dump.charCodeAt(0)?o+=":":o+=": ",o+=e.dump,i+=o));e.tag=h,e.dump=i||"{}"}function Ds(e,a,n){var s,i,h,u,r,t;for(i=n?e.explicitTypes:e.implicitTypes,h=0,u=i.length;h<u;h+=1)if(r=i[h],(r.instanceOf||r.predicate)&&(!r.instanceOf||typeof a=="object"&&a instanceof r.instanceOf)&&(!r.predicate||r.predicate(a))){if(n?r.multi&&r.representName?e.tag=r.representName(a):e.tag=r.tag:e.tag="?",r.represent){if(t=e.styleMap[r.tag]||r.defaultStyle,uo.call(r.represent)==="[object Function]")s=r.represent(a,t);else if(ao.call(r.represent,t))s=r.represent[t](a,t);else throw new Ke("!<"+r.tag+'> tag resolver accepts not "'+t+'" style');e.dump=s}return!0}return!1}function ct(e,a,n,s,i,h,u){e.tag=null,e.dump=n,Ds(e,n,!1)||Ds(e,n,!0);var r=uo.call(e.dump),t=s,p;s&&(s=e.flowLevel<0||e.flowLevel>a);var l=r==="[object Object]"||r==="[object Array]",c,o;if(l&&(c=e.duplicates.indexOf(n),o=c!==-1),(e.tag!==null&&e.tag!=="?"||o||e.indent!==2&&a>0)&&(i=!1),o&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(l&&o&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),r==="[object Object]")s&&Object.keys(e.dump).length!==0?(yd(e,a,e.dump,i),o&&(e.dump="&ref_"+c+e.dump)):(md(e,a,e.dump),o&&(e.dump="&ref_"+c+" "+e.dump));else if(r==="[object Array]")s&&e.dump.length!==0?(e.noArrayIndent&&!u&&a>0?Es(e,a-1,e.dump,i):Es(e,a,e.dump,i),o&&(e.dump="&ref_"+c+e.dump)):(dd(e,a,e.dump),o&&(e.dump="&ref_"+c+" "+e.dump));else if(r==="[object String]")e.tag!=="?"&&hd(e,e.dump,a,h,t);else{if(r==="[object Undefined]"||e.skipInvalid)return!1;throw new Ke("unacceptable kind of an object to dump "+r)}e.tag!==null&&e.tag!=="?"&&(p=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?p="!"+p:p.slice(0,18)==="tag:yaml.org,2002:"?p="!!"+p.slice(18):p="!<"+p+">",e.dump=p+" "+e.dump)}return!0}function gd(e,a){var n=[],s=[],i,h;for(Bn(e,n,s),i=0,h=s.length;i<h;i+=1)a.duplicates.push(n[s[i]]);a.usedDuplicates=new Array(h)}function Bn(e,a,n){var s,i,h;if(e!==null&&typeof e=="object")if(i=a.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(a.push(e),Array.isArray(e))for(i=0,h=e.length;i<h;i+=1)Bn(e[i],a,n);else for(s=Object.keys(e),i=0,h=s.length;i<h;i+=1)Bn(e[s[i]],a,n)}function bd(e,a){a=a||{};var n=new od(a);n.noRefs||gd(e,n);var s=e;return n.replacer&&(s=n.replacer.call({"":s},"",s)),ct(n,0,s,!0,!0)?n.dump+`
|
|
89
|
-
`:""}var vd=bd,wd={dump:vd};function zn(e,a){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+a+" instead, which is now safe by default.")}}var _d=Ue,Ed=Bs,Dd=js,Sd=Us,Ad=Gs,Cd=Un,xd=oo.load,kd=oo.loadAll,Fd=wd.dump,Od=Ke,Rd={binary:Ks,float:Hs,map:Is,null:Ns,pairs:Js,set:Zs,timestamp:zs,bool:Ms,int:$s,merge:Vs,omap:Ys,seq:Ls,str:Ps},Td=zn("safeLoad","load"),Bd=zn("safeLoadAll","loadAll"),Pd=zn("safeDump","dump"),Ld={Type:_d,Schema:Ed,FAILSAFE_SCHEMA:Dd,JSON_SCHEMA:Sd,CORE_SCHEMA:Ad,DEFAULT_SCHEMA:Cd,load:xd,loadAll:kd,dump:Fd,YAMLException:Od,types:Rd,safeLoad:Td,safeLoadAll:Bd,safeDump:Pd},Id=Ld,jd=Re(dp()),Nd="turbo.json";var kn={};function Md(e){try{if(Zt.default.existsSync(St.default.join(e,"pnpm-workspace.yaml")))return Id.load(Zt.default.readFileSync(St.default.join(e,"pnpm-workspace.yaml"),"utf8")).packages||[];let a=JSON.parse(Zt.default.readFileSync(St.default.join(e,"package.json"),"utf8"));if(a.workspaces){if("packages"in a.workspaces)return a.workspaces.packages||[];if(Array.isArray(a.workspaces))return a.workspaces}return[]}catch{return[]}}function Vn(e,a){var n;let s=Yt(e,a),i=[],h=(n=a==null?void 0:a.cache)!=null?n:!0;if(h&&e&&e in kn)return kn[e];if(s){let u=Md(s).map(r=>`${r}/turbo.json`);(0,jd.sync)([Nd,...u],{cwd:s,onlyFiles:!0,followSymbolicLinks:!1,suppressErrors:!0}).map(r=>St.default.join(s,r)).forEach(r=>{try{let t=Zt.default.readFileSync(r,"utf8"),p=Sn.parse(t),l=St.default.dirname(r)===s;if(l){if("extends"in p)return}else if(!("extends"in p))return;i.push({config:p,turboConfigPath:r,workspacePath:St.default.dirname(r),isRootConfig:l})}catch(t){un(t)}})}return h&&e&&(kn[e]=i),i}B();var Ko=require("proxy-agent");var rr={name:"@turbo/gen",version:"1.10.17-canary.0",description:"Extend a Turborepo",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-gen"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:"dist/cli.js",types:"dist/types.d.ts",scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit"},dependencies:{"@turbo/workspaces":"workspace:*",chalk:"2.4.2",commander:"^10.0.0","fs-extra":"^10.1.0",inquirer:"^8.2.4",minimatch:"^9.0.0","node-plop":"^0.26.3","proxy-agent":"^6.2.2","ts-node":"^10.9.1","update-check":"^1.5.4","validate-npm-package-name":"^5.0.0"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@types/fs-extra":"^9.0.13","@types/inquirer":"^8.2.5","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/validate-npm-package-name":"^4.0.0",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^4.5.5"},files:["dist"],publishConfig:{access:"public"}};var vo=Be(require("chalk")),wo=Be(require("update-check"));var Hd=(0,wo.default)(rr).catch(()=>null);async function Kn(){try{let e=await Hd;e!=null&&e.latest&&(he.log(),he.log(vo.default.yellow.bold(`A new version of \`${rr.name}\` is available!`)),he.log()),process.exit()}catch{}}var _o=require("@turbo/workspaces");async function Tr({root:e}){let a=e||process.cwd(),n=Yt(a);if(!n)he.error("Unable to infer repository root - override with --root");else try{return(0,_o.getWorkspaceDetails)({root:n})}catch{he.error(`Unable to determine workspace details. Make sure "${a}" is the root, or add "packageManager" to "package.json" or ensure a lockfile is present.`)}process.exit(1)}var ht=Be(require("path")),Pr=Be(require("fs-extra")),Br=Be(require("node-plop")),Eo=require("ts-node"),Do=require("inquirer");var Ge=class extends Error{constructor(n,s){var i;super(n);this.name="GenerateError",this.type=(i=s==null?void 0:s.type)!=null?i:"unknown",Error.captureStackTrace(this,Ge)}};var So=["ts","js","cjs"],Ud=ht.default.join("turbo","generators"),Ao=So.map(e=>ht.default.join(Ud,`config.${e}`)),Gd=[...Ao,...So.map(e=>ht.default.join(`plopfile.${e}`))];function Co({project:e,configPath:a}){(0,Eo.register)({transpileOnly:!0,cwd:e.paths.root,compilerOptions:{module:"nodenext",moduleResolution:"nodenext"}});let n=Wd({project:e}),s;if(a){if(!Pr.default.existsSync(a))throw new Ge(`No config at "${a}"`,{type:"plop_no_config"});try{s=(0,Br.default)(a,{destBasePath:a,force:!1})}catch(i){he.error(i)}}else{for(let i of Gd){let h=ht.default.join(e.paths.root,i);if(Pr.default.existsSync(h))try{s=(0,Br.default)(h,{destBasePath:e.paths.root,force:!1});break}catch(u){he.error(u)}}!s&&n.length>0&&(s=(0,Br.default)(n[0].config,{destBasePath:n[0].root,force:!1}),n.shift())}return s&&n.forEach(i=>{try{s==null||s.load(i.config,{destBasePath:i.root,force:!1})}catch(h){he.error(h)}}),s}function Yn({project:e,configPath:a}){let n=Co({project:e,configPath:a});if(!n)return[];let i=n.getGeneratorList().map(r=>n.getGenerator(r.name)),h={};i.forEach(r=>{let t=r,p=e.workspaceData.workspaces.find(l=>{if(t.basePath===e.paths.root)return!1;let c=t.basePath.split(ht.default.sep);return c.pop(),c.pop(),ht.default.join("/",...c)===l.paths.root});p?(p.name in h||(h[p.name]=[]),h[p.name].push(t)):("root"in h||(h.root=[]),h.root.push(t))});let u=[];return Object.keys(h).forEach(r=>{u.push(new Do.Separator(r)),u.push(...h[r])}),u}function qd({project:e,generator:a}){let n={root:e.paths.root,workspace:a.basePath?Wt({cwd:a.basePath,target:"package.json"}):void 0},s={};try{s=Vn(a.basePath)}catch{}return{turbo:{paths:n,configs:s}}}function Wd({project:e}){let a=[];return e.workspaceData.workspaces.forEach(n=>{for(let s of Ao)Pr.default.existsSync(ht.default.join(n.paths.root,s))&&a.push({config:ht.default.join(n.paths.root,s),root:n.paths.root})}),a}async function xo({project:e,generator:a,bypassArgs:n,configPath:s}){let i=Co({project:e,configPath:s});if(!i)throw new Ge("Unable to load generators",{type:"plop_unable_to_load_config"});let h=i.getGenerator(a);if(!h)throw new Ge(`Generator ${a} not found`,{type:"plop_generator_not_found"});let u=await h.runPrompts(n),r=await h.runActions({...u,...qd({project:e,generator:h})},{onComment:t=>{he.dimmed(t)}});if(r.failures.length>0)throw r.failures.forEach(t=>{t instanceof Error?he.error(`Error - ${t.message}`):he.error(`Error - ${t.error}. Unable to ${t.type} to "${t.path}"`)}),new Ge(`Failed to run "${a}" generator`,{type:"plop_error_running_generator"});r.changes.length>0&&(he.info("Changes made:"),r.changes.forEach(t=>{t.path&&he.item(`${t.path} (${t.type})`)}))}var Ct=require("inquirer");async function ko({generators:e,generator:a}){if(a){if(e.find(s=>!(s instanceof Ct.Separator)&&s.name===a))return{selectedGenerator:a};he.warn(`Generator "${a}" not found`),he.log()}return await(0,Ct.prompt)({type:"list",name:"selectedGenerator",message:"Select generator to run",choices:e.map(s=>s instanceof Ct.Separator?s:{name:s.description?` ${s.name}: ${s.description}`:` ${s.name}`,value:s.name})})}async function Fo(){return(0,Ct.prompt)({type:"list",name:"answer",message:"Should the generator config be created with TS or JS?",default:"ts",choices:[{name:"JavaScript",value:"js"},{name:"TypeScript",value:"ts"}]})}async function Oo({message:e}){return(0,Ct.prompt)({type:"confirm",name:"answer",message:e})}var Jn=Be(require("path")),Lr=require("fs-extra");async function Ro({project:e,template:a}){let n=Jn.default.join(e.paths.root,"turbo","generators"),s=`simple-${a}`;if(await(0,Lr.pathExists)(n))throw new Ge(`Generator config directory already exists at ${n}`,{type:"config_directory_already_exists"});await(0,Lr.copy)(Jn.default.join(__dirname,"templates",s),n,{recursive:!0})}async function Zn({generator:e,project:a,opts:n}){let s=!1,i=Yn({project:a,configPath:n.config});if(!i.length){he.error("No generators found."),he.log();let{answer:u}=await Oo({message:`Would you like to add a config with a sample custom generator to ${a.name}?`});if(u){s=!0;let{answer:r}=await Fo();try{await Ro({project:a,template:r})}catch(t){throw t instanceof Ge||he.error("Failed to create generator config"),t}if(he.log(),he.info("Generator config successfully created!"),he.info("Loading generator config..."),he.log(),i=Yn({project:a,configPath:n.config}),!i.length){he.error("Error loading generator");return}}else{he.log(),he.dimmed("Learn more about custom Turborepo generators - https://turbo.build/repo/docs/core-concepts/monorepos/code-generation#custom-generators");return}}let{selectedGenerator:h}=await ko({generators:i,generator:e});try{await xo({project:a,generator:h,bypassArgs:n.args,configPath:n.config})}catch(u){if(u instanceof Ge)throw u;let r="Failed to run generator";throw u instanceof Error&&(r=u.message),new Ge(r,{type:"plop_error_running_generator"})}finally{s&&(he.log(),he.info("Congrats! You just ran your first Turborepo generator"),he.dimmed("Learn more about custom Turborepo generators - https://turbo.build/repo/docs/core-concepts/monorepos/code-generation#custom-generators"))}he.log(),he.bold(he.turboGradient(">>> Success!"))}var ti=Be(require("path")),ir=require("fs-extra"),Uo=Be(require("chalk"));var nr=Be(require("path")),Lo=require("fs-extra"),et=require("inquirer"),Io=require("minimatch"),ei=Be(require("validate-npm-package-name"));var Xn=Be(require("path"));var To=Be(require("path"));function Bo({project:e}){let n=e.workspaceData.workspaces.map(i=>To.default.relative(e.paths.root,i.paths.root)),s=new Set;return e.workspaceData.globs.forEach(i=>{if(!n.includes(i)){if(!i.startsWith("!")){let u=i.split("/")[0];s.add(u)}}}),Array.from(s)}function Qn({project:e,workspace:a}){return Xn.default.relative(e.paths.root,a.paths.root).split(Xn.default.sep)[0]}function Ir({project:e}){let a=Bo({project:e}),n=a.includes("apps"),s=a.includes("packages"),i={},h=[];return e.workspaceData.workspaces.forEach(u=>{let r=Qn({project:e,workspace:u});r!=="apps"&&h.push(u),r in i||(i[r]=[]),i[r].push(u)}),{hasRootApps:n,hasRootPackages:s,workspacesByGroup:i,nonAppWorkspaces:h}}var Po=require("inquirer");function jr({project:e,type:a,showAllDependencies:n}){let s=Ir({project:e}),i=[],h=e.workspaceData.workspaces;n||(a==="app"&&s.hasRootApps?h=s.workspacesByGroup.apps:a==="package"&&s.nonAppWorkspaces.length>0&&(h=s.nonAppWorkspaces));let u;return h.forEach(r=>{let t=Qn({project:e,workspace:r});t!==u&&i.push(new Po.Separator(t)),u=t,i.push(r)}),i}async function jo({override:e,suggestion:a,workspaceType:n}){let{validForNewPackages:s}=(0,ei.default)(e||"");return e&&s?{answer:e}:(0,et.prompt)({type:"input",name:"answer",default:a,validate:i=>{let{validForNewPackages:h}=(0,ei.default)(i);return h||`Invalid ${n} name`},message:`What is the name of the ${n}?`})}async function No({override:e,message:a}){return e?{answer:e}:(0,et.prompt)({type:"list",name:"answer",message:a!=null?a:"What type of workspace should be added?",choices:[{name:"app",value:"app"},{name:"package",value:"package"}]})}async function Mo({workspaceType:e,workspaceName:a,destination:n,project:s}){let i=a.includes("/")?a.split("/")[1]:a;if(n){let{valid:t,root:p}=fr(n);if(t)return{absolute:p,relative:nr.default.relative(s.paths.root,p)}}let h,u=Ir({project:s});e==="app"&&u.hasRootApps?h=`${s.paths.root}/apps/${i}`:e==="package"&&u.hasRootPackages&&(h=`${s.paths.root}/packages/${i}`);let{answer:r}=await(0,et.prompt)({type:"input",name:"answer",message:`Where should "${a}" be added?`,default:h?nr.default.relative(s.paths.root,h):void 0,validate:t=>{let p=nr.default.join(s.paths.root,t),{valid:l,error:c}=fr(p),o=s.workspaceData.globs.some(d=>(0,Io.minimatch)(t,d));return l&&o?!0:o?c:`${t} is not a valid workspace location`}});return{absolute:nr.default.join(s.paths.root,r),relative:r}}async function $o({override:e,workspaces:a,workspaceName:n}){if(e){let i=a.find(h=>h instanceof et.Separator?!1:h.name===e);if(i)return{answer:i};he.warn(`Workspace "${e}" not found`),he.log()}return await(0,et.prompt)({type:"list",name:"answer",loop:!1,pageSize:25,message:`Which workspace should "${n}" start from?`,choices:a.map(i=>i instanceof et.Separator?i:{name:` ${i.name}`,value:i})})}async function Ho({workspaceName:e,project:a,workspaceSource:n,showAllDependencies:s}){let i={dependencies:{},devDependencies:{},peerDependencies:{},optionalDependencies:{}},{answer:h}=await Vd({message:`Add workspace dependencies to "${e}"?`});if(!h)return i;let{answer:u}=await(0,et.prompt)({type:"checkbox",name:"answer",message:`Select all dependencies types to modify for "${e}"`,loop:!1,choices:[{name:"dependencies",value:"dependencies"},{name:"devDependencies",value:"devDependencies"},{name:"peerDependencies",value:"peerDependencies"},{name:"optionalDependencies",value:"optionalDependencies"}]}),r=jr({project:a,type:"package",showAllDependencies:s}),t=n?(0,Lo.readJsonSync)(n.paths.packageJson):void 0;for(let p of u){let{answer:l}=await(0,et.prompt)({type:"checkbox",name:"answer",default:t&&Object.keys(t[p]||{}),pageSize:15,message:`Which packages should be added as ${p} to "${e}?`,loop:!1,choices:r.map(o=>o instanceof et.Separator?o:{name:` ${o.name}`,value:o.name})}),c=(t==null?void 0:t[p])||{};if(Object.keys(c).length){let o=new Set(Object.keys(c));l.forEach(d=>{o.has(d)||(c[d]=a.packageManager==="pnpm"?"workspace:*":"*")}),i[p]=c}else i[p]=l.reduce((o,d)=>({...o,[d]:a.packageManager==="pnpm"?"workspace:*":"*"}),{})}return i}async function Vd({message:e}){return(0,et.prompt)({type:"confirm",name:"answer",message:e})}async function Nr({project:e,opts:a}){var t;let n,s=a.method==="copy"&&a.copy.type==="external"?((t=a.examplePath)==null?void 0:t.split("/").pop())||a.copy.source.split("/").pop():void 0,{answer:i}=await No({override:a.type,message:a.method==="copy"&&a.copy.source==="external"&&s?`What type of workspace should "${s}" be created as?`:void 0}),{answer:h}=await jo({override:a.name,workspaceType:i,suggestion:s});if(a.method==="copy"&&a.copy.type==="internal"){let{answer:p}=await $o({override:a.copy.source,workspaces:jr({project:e,type:i}),workspaceName:h});n=p}let u=await Mo({workspaceType:i,workspaceName:h,project:e,destination:a.destination}),r=await Ho({workspaceName:h,project:e,workspaceSource:n,showAllDependencies:a.showAllDependencies});return{type:i,name:h,location:u,source:n,dependencies:r}}async function ri({project:e,opts:a}){let{name:n,location:s,dependencies:i}=await Nr({project:e,opts:a}),h={name:n,version:"0.0.0",private:!0,scripts:{dev:"echo 'Add dev script here'",build:"echo 'Add build script here'",test:"echo 'Add test script here'",lint:"echo 'Add lint script here'"}};Object.keys(i).forEach(u=>{let r=i[u];r&&Object.keys(r).length>0&&(h[u]=r)}),(0,ir.mkdirSync)(s.absolute,{recursive:!0}),(0,ir.writeFileSync)(ti.default.join(s.absolute,"package.json"),JSON.stringify(h,null,2)),(0,ir.writeFileSync)(ti.default.join(s.absolute,"README.md"),`# \`${n}\``),he.log(),he.log(`${Uo.default.bold(he.turboGradient(">>> Success!"))} Created ${n} at "${s.relative}"`)}var ni=Be(require("path")),tt=require("fs-extra"),Go=Be(require("chalk"));async function ii({project:e,opts:a}){let{name:n,type:s,location:i,source:h,dependencies:u}=await Nr({project:e,opts:a}),r=ni.default.join(i.absolute,"package.json");if(a.copy.type==="external"){he.log(),he.warn("Some manual modifications may be required."),he.dimmed(`This ${s} may require local dependencies or a different package manager than what is available in this repo`),await cn({appPath:i.absolute,example:a.copy.source,examplePath:a.examplePath});try{if((0,tt.existsSync)(r)){if((await(0,tt.readJSON)(r)).workspaces)throw new Error("New workspace root detected - unexpected 'workspaces' field in package.json")}else throw new Error("New workspace is missing a package.json file");if((0,tt.existsSync)(ni.default.join(i.absolute,"pnpm-workspace.yaml")))throw new Error("New workspace root detected - unexpected pnpm-workspace.yaml")}catch(p){let l="UNKNOWN_ERROR";p instanceof Error&&(l=p.message),he.error(l),await(0,tt.rm)(i.absolute,{recursive:!0,force:!0});return}}else if(h){let p=async c=>Promise.resolve(!c.includes("node_modules")),l=he.turboLoader(`Creating "${n}" from "${h.name}"...`);l.start(),await(0,tt.copy)(h.paths.root,i.absolute,{filter:p}),l.stop()}let t=await(0,tt.readJSON)(r);t.name=n,Object.keys(u).forEach(p=>{let l=u[p];l&&Object.keys(l).length>0&&(t[p]=l)}),await(0,tt.writeJSON)(r,t,{spaces:2}),he.log(),he.log(`${Go.default.bold(he.turboGradient(">>> Success!"))} Created ${n} at "${i.relative}"`)}function Yd(e){let{copy:a,...n}=e,s=a===!0||typeof a=="string"?"copy":"empty",i=typeof a=="string"?a:"",h=typeof a=="string"&&a.startsWith("https://")?"external":"internal";return{method:s,copy:{type:h,source:i},...n}}async function sr(e){let a=await Tr(e),n=Yd(e);he.log();let s={project:a,opts:n};n.method==="copy"?(n.copy.type==="external"?he.info(`Copy a remote workspace from ${n.copy.source}`):he.info(`Copy an existing workspace from "${a.name}"`),he.log(),await ii(s)):(he.info(`Add an empty workspace to "${a.name}"`),he.log(),await ri(s))}async function or(e,a){let n=await Tr(a);he.log(),he.info(`Modify "${n.name}" using custom generators`),he.log(),await Zn({generator:e,project:n,opts:a})}function qo(e){try{let a=JSON.parse(e),n={};for(let s in a){let i=qr(s,{to:"camel"});n[i]=a[s]}return n}catch(a){he.error("Error parsing arguments",a),process.exit(1)}}async function si(e,a){var n;if(e==="workspace"){let s=qo(a.json);s.showAllDependencies=(n=s.showAllDependencies)!=null?n:!1;let i=!1,h=s.empty||!0;s.copy===""||s.copy===!0?(i=!0,h=!1):s.copy&&s.copy.length>0&&(i=s.copy,h=!1),s.copy=i,s.empty=h,await sr(s)}else if(e==="run"){let s=qo(a.json),{generatorName:i,...h}=s;await or(i,h)}else he.error(`Received unknown command - "${e}" (must be one of "workspace" | "run")`),process.exit(1)}var Yo=new Ko.ProxyAgent;Wo.default.globalAgent=Yo;zo.default.globalAgent=Yo;var ur=new qe.Command;ur.name(Vo.default.bold(he.turboGradient("@turbo/gen"))).description("Extend your Turborepo").version(rr.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").showHelpAfterError(!1);ur.command("run",{isDefault:!0}).alias("r").description("Run custom generators").addArgument(new qe.Argument("[generator-name]","The name of the generator to run")).addOption(new qe.Option("-c, --config <config>","Generator configuration file (default: turbo/generators/config.js")).addOption(new qe.Option("-r, --root <dir>","The root of your repository (default: directory with root turbo.json)")).addOption(new qe.Option("-a, --args <args...>","Arguments passed directly to generator").default([])).action(or);ur.command("workspace").aliases(["w"]).description("Add a new package or app to your project").addOption(new qe.Option("-n, --name <workspace-name>","Name for the new workspace")).addOption(new qe.Option("-b, --empty","Generate an empty workspace").conflicts("copy").default(!0)).addOption(new qe.Option("-c, --copy [source]",`Generate a workspace using an existing workspace as a template. Can be the name of a local workspace
|
|
34
|
+
`+t.mark.snippet),n+" "+r):n}function Vi(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=i0(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Vi.prototype=Object.create(Error.prototype);Vi.prototype.constructor=Vi;Vi.prototype.toString=function(e){return this.name+": "+i0(this,e)};var Ke=Vi;function Dc(t,e,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-e>a&&(s=" ... ",e=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:n-e+s.length}}function wc(t,e){return Ce.repeat(" ",e-t.length)+t}function c1(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(t.buffer);)i.push(s.index),n.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",u,c,l=Math.min(t.line+e.linesAfter,i.length).toString().length,f=e.maxLength-(e.indent+l+3);for(u=1;u<=e.linesBefore&&!(o-u<0);u++)c=Dc(t.buffer,n[o-u],i[o-u],t.position-(n[o]-n[o-u]),f),a=Ce.repeat(" ",e.indent)+wc((t.line-u+1).toString(),l)+" | "+c.str+`
|
|
35
|
+
`+a;for(c=Dc(t.buffer,n[o],i[o],t.position,f),a+=Ce.repeat(" ",e.indent)+wc((t.line+1).toString(),l)+" | "+c.str+`
|
|
36
|
+
`,a+=Ce.repeat("-",e.indent+l+3+c.pos)+`^
|
|
37
|
+
`,u=1;u<=e.linesAfter&&!(o+u>=i.length);u++)c=Dc(t.buffer,n[o+u],i[o+u],t.position-(n[o]-n[o+u]),f),a+=Ce.repeat(" ",e.indent)+wc((t.line+u+1).toString(),l)+" | "+c.str+`
|
|
38
|
+
`;return a.replace(/\n$/,"")}var l1=c1,f1=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],h1=["scalar","sequence","mapping"];function d1(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function p1(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(f1.indexOf(r)===-1)throw new Ke('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=d1(e.styleAliases||null),h1.indexOf(this.kind)===-1)throw new Ke('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Pe=p1;function $m(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function m1(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}function xc(t){return this.extend(t)}xc.prototype.extend=function(e){var r=[],n=[];if(e instanceof Pe)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new Ke("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Pe))throw new Ke("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Ke("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Ke("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof Pe))throw new Ke("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(xc.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=$m(i,"implicit"),i.compiledExplicit=$m(i,"explicit"),i.compiledTypeMap=m1(i.compiledImplicit,i.compiledExplicit),i};var s0=xc,o0=new Pe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),a0=new Pe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),u0=new Pe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),c0=new s0({explicit:[o0,a0,u0]});function g1(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function y1(){return null}function _1(t){return t===null}var l0=new Pe("tag:yaml.org,2002:null",{kind:"scalar",resolve:g1,construct:y1,predicate:_1,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function E1(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function b1(t){return t==="true"||t==="True"||t==="TRUE"}function D1(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var f0=new Pe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:E1,construct:b1,predicate:D1,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function w1(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function A1(t){return 48<=t&&t<=55}function x1(t){return 48<=t&&t<=57}function S1(t){if(t===null)return!1;var e=t.length,r=0,n=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!w1(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!A1(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<e;r++)if(i=t[r],i!=="_"){if(!x1(t.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function C1(t){var e=t,r=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function v1(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Ce.isNegativeZero(t)}var h0=new Pe("tag:yaml.org,2002:int",{kind:"scalar",resolve:S1,construct:C1,predicate:v1,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),R1=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function F1(t){return!(t===null||!R1.test(t)||t[t.length-1]==="_")}function T1(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var O1=/^[-+]?[0-9]+e/;function k1(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ce.isNegativeZero(t))return"-0.0";return r=t.toString(10),O1.test(r)?r.replace("e",".e"):r}function P1(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Ce.isNegativeZero(t))}var d0=new Pe("tag:yaml.org,2002:float",{kind:"scalar",resolve:F1,construct:T1,predicate:P1,represent:k1,defaultStyle:"lowercase"}),p0=c0.extend({implicit:[l0,f0,h0,d0]}),m0=p0,g0=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),y0=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function B1(t){return t===null?!1:g0.exec(t)!==null||y0.exec(t)!==null}function I1(t){var e,r,n,i,s,o,a,u=0,c=null,l,f,h;if(e=g0.exec(t),e===null&&(e=y0.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(l=+e[10],f=+(e[11]||0),c=(l*60+f)*6e4,e[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,i,s,o,a,u)),c&&h.setTime(h.getTime()-c),h}function L1(t){return t.toISOString()}var _0=new Pe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:B1,construct:I1,instanceOf:Date,represent:L1});function N1(t){return t==="<<"||t===null}var E0=new Pe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:N1}),Fc=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
39
|
+
\r`;function M1(t){if(t===null)return!1;var e,r,n=0,i=t.length,s=Fc;for(r=0;r<i;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function q1(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,s=Fc,o=0,a=[];for(e=0;e<i;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(e));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function H1(t){var e="",r=0,n,i,s=t.length,o=Fc;for(n=0;n<s;n++)n%3===0&&n&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[n];return i=s%3,i===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):i===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):i===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function j1(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var b0=new Pe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:M1,construct:q1,predicate:j1,represent:H1}),$1=Object.prototype.hasOwnProperty,U1=Object.prototype.toString;function G1(t){if(t===null)return!0;var e=[],r,n,i,s,o,a=t;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,U1.call(i)!=="[object Object]")return!1;for(s in i)if($1.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function W1(t){return t!==null?t:[]}var D0=new Pe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:G1,construct:W1}),z1=Object.prototype.toString;function V1(t){if(t===null)return!0;var e,r,n,i,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(n=o[e],z1.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[e]=[i[0],n[i[0]]]}return!0}function Y1(t){if(t===null)return[];var e,r,n,i,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)n=o[e],i=Object.keys(n),s[e]=[i[0],n[i[0]]];return s}var w0=new Pe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:V1,construct:Y1}),K1=Object.prototype.hasOwnProperty;function J1(t){if(t===null)return!0;var e,r=t;for(e in r)if(K1.call(r,e)&&r[e]!==null)return!1;return!0}function X1(t){return t!==null?t:{}}var A0=new Pe("tag:yaml.org,2002:set",{kind:"mapping",resolve:J1,construct:X1}),Tc=m0.extend({implicit:[_0,E0],explicit:[b0,D0,w0,A0]}),Cr=Object.prototype.hasOwnProperty,io=1,x0=2,S0=3,so=4,Ac=1,Z1=2,Um=3,Q1=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,eR=/[\x85\u2028\u2029]/,tR=/[,\[\]\{\}]/,C0=/^(?:!|!!|![a-z\-]+!)$/i,v0=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Gm(t){return Object.prototype.toString.call(t)}function Pt(t){return t===10||t===13}function rn(t){return t===9||t===32}function Xe(t){return t===9||t===32||t===10||t===13}function On(t){return t===44||t===91||t===93||t===123||t===125}function rR(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function nR(t){return t===120?2:t===117?4:t===85?8:0}function iR(t){return 48<=t&&t<=57?t-48:-1}function Wm(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
|
40
|
+
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function sR(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var R0=new Array(256),F0=new Array(256);for(tn=0;tn<256;tn++)R0[tn]=Wm(tn)?1:0,F0[tn]=Wm(tn);var tn;function oR(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Tc,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function T0(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=l1(r),new Ke(e,r)}function G(t,e){throw T0(t,e)}function oo(t,e){t.onWarning&&t.onWarning.call(null,T0(t,e))}var zm={YAML:function(e,r,n){var i,s,o;e.version!==null&&G(e,"duplication of %YAML directive"),n.length!==1&&G(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&G(e,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&G(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&oo(e,"unsupported YAML version of the document")},TAG:function(e,r,n){var i,s;n.length!==2&&G(e,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],C0.test(i)||G(e,"ill-formed tag handle (first argument) of the TAG directive"),Cr.call(e.tagMap,i)&&G(e,'there is a previously declared suffix for "'+i+'" tag handle'),v0.test(s)||G(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{G(e,"tag prefix is malformed: "+s)}e.tagMap[i]=s}};function Sr(t,e,r,n){var i,s,o,a;if(e<r){if(a=t.input.slice(e,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||G(t,"expected valid JSON character");else Q1.test(a)&&G(t,"the stream contains non-printable characters");t.result+=a}}function Vm(t,e,r,n){var i,s,o,a;for(Ce.isObject(r)||G(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],Cr.call(e,s)||(e[s]=r[s],n[s]=!0)}function kn(t,e,r,n,i,s,o,a,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&G(t,"nested arrays are not supported inside keys"),typeof i=="object"&&Gm(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&Gm(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,l=s.length;c<l;c+=1)Vm(t,e,s[c],r);else Vm(t,e,s,r);else!t.json&&!Cr.call(r,i)&&Cr.call(e,i)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=u||t.position,G(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[i]=s,delete r[i];return e}function Oc(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):G(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Se(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);i!==0;){for(;rn(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(Pt(i))for(Oc(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&oo(t,"deficient indentation"),n}function co(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Xe(r)))}function kc(t,e){e===1?t.result+=" ":e>1&&(t.result+=Ce.repeat(`
|
|
41
|
+
`,e-1))}function aR(t,e,r){var n,i,s,o,a,u,c,l,f=t.kind,h=t.result,p;if(p=t.input.charCodeAt(t.position),Xe(p)||On(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=t.input.charCodeAt(t.position+1),Xe(i)||r&&On(i)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;p!==0;){if(p===58){if(i=t.input.charCodeAt(t.position+1),Xe(i)||r&&On(i))break}else if(p===35){if(n=t.input.charCodeAt(t.position-1),Xe(n))break}else{if(t.position===t.lineStart&&co(t)||r&&On(p))break;if(Pt(p))if(u=t.line,c=t.lineStart,l=t.lineIndent,Se(t,!1,-1),t.lineIndent>=e){a=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=u,t.lineStart=c,t.lineIndent=l;break}}a&&(Sr(t,s,o,!1),kc(t,t.line-u),s=o=t.position,a=!1),rn(p)||(o=t.position+1),p=t.input.charCodeAt(++t.position)}return Sr(t,s,o,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function uR(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Sr(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else Pt(r)?(Sr(t,n,i,!0),kc(t,Se(t,!1,e)),n=i=t.position):t.position===t.lineStart&&co(t)?G(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);G(t,"unexpected end of the stream within a single quoted scalar")}function cR(t,e){var r,n,i,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return Sr(t,r,t.position,!0),t.position++,!0;if(a===92){if(Sr(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Pt(a))Se(t,!1,e);else if(a<256&&R0[a])t.result+=F0[a],t.position++;else if((o=nR(a))>0){for(i=o,s=0;i>0;i--)a=t.input.charCodeAt(++t.position),(o=rR(a))>=0?s=(s<<4)+o:G(t,"expected hexadecimal character");t.result+=sR(s),t.position++}else G(t,"unknown escape sequence");r=n=t.position}else Pt(a)?(Sr(t,r,n,!0),kc(t,Se(t,!1,e)),r=n=t.position):t.position===t.lineStart&&co(t)?G(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}G(t,"unexpected end of the stream within a double quoted scalar")}function lR(t,e){var r=!0,n,i,s,o=t.tag,a,u=t.anchor,c,l,f,h,p,m=Object.create(null),_,g,D,C;if(C=t.input.charCodeAt(t.position),C===91)l=93,p=!1,a=[];else if(C===123)l=125,p=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),C=t.input.charCodeAt(++t.position);C!==0;){if(Se(t,!0,e),C=t.input.charCodeAt(t.position),C===l)return t.position++,t.tag=o,t.anchor=u,t.kind=p?"mapping":"sequence",t.result=a,!0;r?C===44&&G(t,"expected the node content, but found ','"):G(t,"missed comma between flow collection entries"),g=_=D=null,f=h=!1,C===63&&(c=t.input.charCodeAt(t.position+1),Xe(c)&&(f=h=!0,t.position++,Se(t,!0,e))),n=t.line,i=t.lineStart,s=t.position,Pn(t,e,io,!1,!0),g=t.tag,_=t.result,Se(t,!0,e),C=t.input.charCodeAt(t.position),(h||t.line===n)&&C===58&&(f=!0,C=t.input.charCodeAt(++t.position),Se(t,!0,e),Pn(t,e,io,!1,!0),D=t.result),p?kn(t,a,m,g,_,D,n,i,s):f?a.push(kn(t,null,m,g,_,D,n,i,s)):a.push(_),Se(t,!0,e),C=t.input.charCodeAt(t.position),C===44?(r=!0,C=t.input.charCodeAt(++t.position)):r=!1}G(t,"unexpected end of the stream within a flow collection")}function fR(t,e){var r,n,i=Ac,s=!1,o=!1,a=e,u=0,c=!1,l,f;if(f=t.input.charCodeAt(t.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)Ac===i?i=f===43?Um:Z1:G(t,"repeat of a chomping mode identifier");else if((l=iR(f))>=0)l===0?G(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?G(t,"repeat of an indentation width identifier"):(a=e+l-1,o=!0);else break;if(rn(f)){do f=t.input.charCodeAt(++t.position);while(rn(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!Pt(f)&&f!==0)}for(;f!==0;){for(Oc(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),Pt(f)){u++;continue}if(t.lineIndent<a){i===Um?t.result+=Ce.repeat(`
|
|
42
|
+
`,s?1+u:u):i===Ac&&s&&(t.result+=`
|
|
43
|
+
`);break}for(n?rn(f)?(c=!0,t.result+=Ce.repeat(`
|
|
44
|
+
`,s?1+u:u)):c?(c=!1,t.result+=Ce.repeat(`
|
|
45
|
+
`,u+1)):u===0?s&&(t.result+=" "):t.result+=Ce.repeat(`
|
|
46
|
+
`,u):t.result+=Ce.repeat(`
|
|
47
|
+
`,s?1+u:u),s=!0,o=!0,u=0,r=t.position;!Pt(f)&&f!==0;)f=t.input.charCodeAt(++t.position);Sr(t,r,t.position,!1)}return!0}function Ym(t,e){var r,n=t.tag,i=t.anchor,s=[],o,a=!1,u;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),u=t.input.charCodeAt(t.position);u!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,G(t,"tab characters must not be used in indentation")),!(u!==45||(o=t.input.charCodeAt(t.position+1),!Xe(o))));){if(a=!0,t.position++,Se(t,!0,-1)&&t.lineIndent<=e){s.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,Pn(t,e,S0,!1,!0),s.push(t.result),Se(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)G(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=s,!0):!1}function hR(t,e,r){var n,i,s,o,a,u,c=t.tag,l=t.anchor,f={},h=Object.create(null),p=null,m=null,_=null,g=!1,D=!1,C;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),C=t.input.charCodeAt(t.position);C!==0;){if(!g&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,G(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),s=t.line,(C===63||C===58)&&Xe(n))C===63?(g&&(kn(t,f,h,p,m,null,o,a,u),p=m=_=null),D=!0,g=!0,i=!0):g?(g=!1,i=!0):G(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,C=n;else{if(o=t.line,a=t.lineStart,u=t.position,!Pn(t,r,x0,!1,!0))break;if(t.line===s){for(C=t.input.charCodeAt(t.position);rn(C);)C=t.input.charCodeAt(++t.position);if(C===58)C=t.input.charCodeAt(++t.position),Xe(C)||G(t,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(kn(t,f,h,p,m,null,o,a,u),p=m=_=null),D=!0,g=!1,i=!1,p=t.tag,m=t.result;else if(D)G(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=l,!0}else if(D)G(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=l,!0}if((t.line===s||t.lineIndent>e)&&(g&&(o=t.line,a=t.lineStart,u=t.position),Pn(t,e,so,!0,i)&&(g?m=t.result:_=t.result),g||(kn(t,f,h,p,m,_,o,a,u),p=m=_=null),Se(t,!0,-1),C=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&C!==0)G(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return g&&kn(t,f,h,p,m,null,o,a,u),D&&(t.tag=c,t.anchor=l,t.kind="mapping",t.result=f),D}function dR(t){var e,r=!1,n=!1,i,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&G(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(n=!0,i="!!",o=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):G(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Xe(o);)o===33&&(n?G(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),C0.test(i)||G(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),tR.test(s)&&G(t,"tag suffix cannot contain flow indicator characters")}s&&!v0.test(s)&&G(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{G(t,"tag name is malformed: "+s)}return r?t.tag=s:Cr.call(t.tagMap,i)?t.tag=t.tagMap[i]+s:i==="!"?t.tag="!"+s:i==="!!"?t.tag="tag:yaml.org,2002:"+s:G(t,'undeclared tag handle "'+i+'"'),!0}function pR(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&G(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Xe(r)&&!On(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&G(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function mR(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!Xe(n)&&!On(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&G(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),Cr.call(t.anchorMap,r)||G(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Se(t,!0,-1),!0}function Pn(t,e,r,n,i){var s,o,a,u=1,c=!1,l=!1,f,h,p,m,_,g;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=so===r||S0===r,n&&Se(t,!0,-1)&&(c=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),u===1)for(;dR(t)||pR(t);)Se(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)):a=!1;if(a&&(a=c||i),(u===1||so===r)&&(io===r||x0===r?_=e:_=e+1,g=t.position-t.lineStart,u===1?a&&(Ym(t,g)||hR(t,g,_))||lR(t,_)?l=!0:(o&&fR(t,_)||uR(t,_)||cR(t,_)?l=!0:mR(t)?(l=!0,(t.tag!==null||t.anchor!==null)&&G(t,"alias node should not have any properties")):aR(t,_,io===r)&&(l=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):u===0&&(l=a&&Ym(t,g))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&G(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,h=t.implicitTypes.length;f<h;f+=1)if(m=t.implicitTypes[f],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Cr.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,p=t.typeMap.multi[t.kind||"fallback"],f=0,h=p.length;f<h;f+=1)if(t.tag.slice(0,p[f].tag.length)===p[f].tag){m=p[f];break}m||G(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&G(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):G(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||l}function gR(t){var e=t.position,r,n,i,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(Se(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!Xe(o);)o=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&G(t,"directive name must not be less than one character in length");o!==0;){for(;rn(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!Pt(o));break}if(Pt(o))break;for(r=t.position;o!==0&&!Xe(o);)o=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}o!==0&&Oc(t),Cr.call(zm,n)?zm[n](t,n,i):oo(t,'unknown document directive "'+n+'"')}if(Se(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Se(t,!0,-1)):s&&G(t,"directives end mark is expected"),Pn(t,t.lineIndent-1,so,!1,!0),Se(t,!0,-1),t.checkLineBreaks&&eR.test(t.input.slice(e,t.position))&&oo(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&co(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Se(t,!0,-1));return}if(t.position<t.length-1)G(t,"end of the stream or a document separator is expected");else return}function O0(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
|
|
48
|
+
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new oR(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,G(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)gR(r);return r.documents}function yR(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var n=O0(t,r);if(typeof e!="function")return n;for(var i=0,s=n.length;i<s;i+=1)e(n[i])}function _R(t,e){var r=O0(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Ke("expected a single document in the stream, but found more")}}var ER=yR,bR=_R,k0={loadAll:ER,load:bR},P0=Object.prototype.toString,B0=Object.prototype.hasOwnProperty,Pc=65279,DR=9,Yi=10,wR=13,AR=32,xR=33,SR=34,Sc=35,CR=37,vR=38,RR=39,FR=42,I0=44,TR=45,ao=58,OR=61,kR=62,PR=63,BR=64,L0=91,N0=93,IR=96,M0=123,LR=124,q0=125,Me={};Me[0]="\\0";Me[7]="\\a";Me[8]="\\b";Me[9]="\\t";Me[10]="\\n";Me[11]="\\v";Me[12]="\\f";Me[13]="\\r";Me[27]="\\e";Me[34]='\\"';Me[92]="\\\\";Me[133]="\\N";Me[160]="\\_";Me[8232]="\\L";Me[8233]="\\P";var NR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],MR=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function qR(t,e){var r,n,i,s,o,a,u;if(e===null)return{};for(r={},n=Object.keys(e),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=t.compiledTypeMap.fallback[o],u&&B0.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function HR(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new Ke("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Ce.repeat("0",n-e.length)+e}var jR=1,Ki=2;function $R(t){this.schema=t.schema||Tc,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Ce.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=qR(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?Ki:jR,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Km(t,e){for(var r=Ce.repeat(" ",e),n=0,i=-1,s="",o,a=t.length;n<a;)i=t.indexOf(`
|
|
49
|
+
`,n),i===-1?(o=t.slice(n),n=a):(o=t.slice(n,i+1),n=i+1),o.length&&o!==`
|
|
50
|
+
`&&(s+=r),s+=o;return s}function Cc(t,e){return`
|
|
51
|
+
`+Ce.repeat(" ",t.indent*e)}function UR(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}function uo(t){return t===AR||t===DR}function Ji(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Pc||65536<=t&&t<=1114111}function Jm(t){return Ji(t)&&t!==Pc&&t!==wR&&t!==Yi}function Xm(t,e,r){var n=Jm(t),i=n&&!uo(t);return(r?n:n&&t!==I0&&t!==L0&&t!==N0&&t!==M0&&t!==q0)&&t!==Sc&&!(e===ao&&!i)||Jm(e)&&!uo(e)&&t===Sc||e===ao&&i}function GR(t){return Ji(t)&&t!==Pc&&!uo(t)&&t!==TR&&t!==PR&&t!==ao&&t!==I0&&t!==L0&&t!==N0&&t!==M0&&t!==q0&&t!==Sc&&t!==vR&&t!==FR&&t!==xR&&t!==LR&&t!==OR&&t!==kR&&t!==RR&&t!==SR&&t!==CR&&t!==BR&&t!==IR}function WR(t){return!uo(t)&&t!==ao}function zi(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function H0(t){var e=/^\n* /;return e.test(t)}var j0=1,vc=2,$0=3,U0=4,Tn=5;function zR(t,e,r,n,i,s,o,a){var u,c=0,l=null,f=!1,h=!1,p=n!==-1,m=-1,_=GR(zi(t,0))&&WR(zi(t,t.length-1));if(e||o)for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=zi(t,u),!Ji(c))return Tn;_=_&&Xm(c,l,a),l=c}else{for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=zi(t,u),c===Yi)f=!0,p&&(h=h||u-m-1>n&&t[m+1]!==" ",m=u);else if(!Ji(c))return Tn;_=_&&Xm(c,l,a),l=c}h=h||p&&u-m-1>n&&t[m+1]!==" "}return!f&&!h?_&&!o&&!i(t)?j0:s===Ki?Tn:vc:r>9&&H0(t)?Tn:o?s===Ki?Tn:vc:h?U0:$0}function VR(t,e,r,n,i){t.dump=function(){if(e.length===0)return t.quotingType===Ki?'""':"''";if(!t.noCompatMode&&(NR.indexOf(e)!==-1||MR.test(e)))return t.quotingType===Ki?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=n||t.flowLevel>-1&&r>=t.flowLevel;function u(c){return UR(t,c)}switch(zR(e,a,t.indent,o,u,t.quotingType,t.forceQuotes&&!n,i)){case j0:return e;case vc:return"'"+e.replace(/'/g,"''")+"'";case $0:return"|"+Zm(e,t.indent)+Qm(Km(e,s));case U0:return">"+Zm(e,t.indent)+Qm(Km(YR(e,o),s));case Tn:return'"'+KR(e)+'"';default:throw new Ke("impossible error: invalid scalar style")}}()}function Zm(t,e){var r=H0(t)?String(e):"",n=t[t.length-1]===`
|
|
52
|
+
`,i=n&&(t[t.length-2]===`
|
|
53
|
+
`||t===`
|
|
54
|
+
`),s=i?"+":n?"":"-";return r+s+`
|
|
55
|
+
`}function Qm(t){return t[t.length-1]===`
|
|
56
|
+
`?t.slice(0,-1):t}function YR(t,e){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=t.indexOf(`
|
|
57
|
+
`);return c=c!==-1?c:t.length,r.lastIndex=c,e0(t.slice(0,c),e)}(),i=t[0]===`
|
|
58
|
+
`||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],u=o[2];s=u[0]===" ",n+=a+(!i&&!s&&u!==""?`
|
|
59
|
+
`:"")+e0(u,e),i=s}return n}function e0(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,u="";n=r.exec(t);)a=n.index,a-i>e&&(s=o>i?o:a,u+=`
|
|
60
|
+
`+t.slice(i,s),i=s+1),o=a;return u+=`
|
|
61
|
+
`,t.length-i>e&&o>i?u+=t.slice(i,o)+`
|
|
62
|
+
`+t.slice(o+1):u+=t.slice(i),u.slice(1)}function KR(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=zi(t,i),n=Me[r],!n&&Ji(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||HR(r);return e}function JR(t,e,r){var n="",i=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(tr(t,e,a,!1,!1)||typeof a=="undefined"&&tr(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function t0(t,e,r,n){var i="",s=t.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],t.replacer&&(u=t.replacer.call(r,String(o),u)),(tr(t,e+1,u,!0,!0,!1,!0)||typeof u=="undefined"&&tr(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Cc(t,e)),t.dump&&Yi===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=s,t.dump=i||"[]"}function XR(t,e,r){var n="",i=t.tag,s=Object.keys(r),o,a,u,c,l;for(o=0,a=s.length;o<a;o+=1)l="",n!==""&&(l+=", "),t.condenseFlow&&(l+='"'),u=s[o],c=r[u],t.replacer&&(c=t.replacer.call(r,u,c)),tr(t,e,u,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),tr(t,e,c,!1,!1)&&(l+=t.dump,n+=l));t.tag=i,t.dump="{"+n+"}"}function ZR(t,e,r,n){var i="",s=t.tag,o=Object.keys(r),a,u,c,l,f,h;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new Ke("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)h="",(!n||i!=="")&&(h+=Cc(t,e)),c=o[a],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),tr(t,e+1,c,!0,!0,!0)&&(f=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,f&&(t.dump&&Yi===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,f&&(h+=Cc(t,e)),tr(t,e+1,l,!0,f)&&(t.dump&&Yi===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,i+=h));t.tag=s,t.dump=i||"{}"}function r0(t,e,r){var n,i,s,o,a,u;for(i=r?t.explicitTypes:t.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(u=t.styleMap[a.tag]||a.defaultStyle,P0.call(a.represent)==="[object Function]")n=a.represent(e,u);else if(B0.call(a.represent,u))n=a.represent[u](e,u);else throw new Ke("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');t.dump=n}return!0}return!1}function tr(t,e,r,n,i,s,o){t.tag=null,t.dump=r,r0(t,r,!1)||r0(t,r,!0);var a=P0.call(t.dump),u=n,c;n&&(n=t.flowLevel<0||t.flowLevel>e);var l=a==="[object Object]"||a==="[object Array]",f,h;if(l&&(f=t.duplicates.indexOf(r),h=f!==-1),(t.tag!==null&&t.tag!=="?"||h||t.indent!==2&&e>0)&&(i=!1),h&&t.usedDuplicates[f])t.dump="*ref_"+f;else{if(l&&h&&!t.usedDuplicates[f]&&(t.usedDuplicates[f]=!0),a==="[object Object]")n&&Object.keys(t.dump).length!==0?(ZR(t,e,t.dump,i),h&&(t.dump="&ref_"+f+t.dump)):(XR(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?t0(t,e-1,t.dump,i):t0(t,e,t.dump,i),h&&(t.dump="&ref_"+f+t.dump)):(JR(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&VR(t,t.dump,e,s,u);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Ke("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function QR(t,e){var r=[],n=[],i,s;for(Rc(t,r,n),i=0,s=n.length;i<s;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(s)}function Rc(t,e,r){var n,i,s;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,s=t.length;i<s;i+=1)Rc(t[i],e,r);else for(n=Object.keys(t),i=0,s=n.length;i<s;i+=1)Rc(t[n[i]],e,r)}function eF(t,e){e=e||{};var r=new $R(e);r.noRefs||QR(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),tr(r,0,n,!0,!0)?r.dump+`
|
|
63
|
+
`:""}var tF=eF,rF={dump:tF};function Bc(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var nF=Pe,iF=s0,sF=c0,oF=p0,aF=m0,uF=Tc,cF=k0.load,lF=k0.loadAll,fF=rF.dump,hF=Ke,dF={binary:b0,float:d0,map:u0,null:l0,pairs:w0,set:A0,timestamp:_0,bool:f0,int:h0,merge:E0,omap:D0,seq:a0,str:o0},pF=Bc("safeLoad","load"),mF=Bc("safeLoadAll","loadAll"),gF=Bc("safeDump","dump"),yF={Type:nF,Schema:iF,FAILSAFE_SCHEMA:sF,JSON_SCHEMA:oF,CORE_SCHEMA:aF,DEFAULT_SCHEMA:uF,load:cF,loadAll:lF,dump:fF,YAMLException:hF,types:dF,safeLoad:pF,safeLoadAll:mF,safeDump:gF},G0=yF;var PE=X(O_());var L={};Av(L,{bold:()=>JP,dimmed:()=>XP,error:()=>pt,info:()=>KP,item:()=>ZP,log:()=>qt,turboBlue:()=>Kn,turboGradient:()=>YP,turboLoader:()=>kf,turboRed:()=>OE,warn:()=>Pf,yellow:()=>kE});var Jn=X(require("chalk")),vE=X(dE()),RE=X(CE()),FE="#0099F7",TE="#F11712",VP="#FFFF00",YP=(0,RE.default)(FE,TE),Kn=Jn.default.hex(FE),OE=Jn.default.hex(TE),kE=Jn.default.hex(VP),kf=t=>(0,vE.default)({text:t,spinner:{frames:[" ",Kn("> "),Kn(">> "),Kn(">>>")]}}),KP=(...t)=>{qt(Kn.bold(">>>"),...t)},JP=(...t)=>{qt(Jn.default.bold(...t))},XP=(...t)=>{qt(Jn.default.dim(...t))},ZP=(...t)=>{qt(Kn.bold(" \u2022"),...t)},qt=(...t)=>{console.log(...t)},Pf=(...t)=>{console.error(kE.bold(">>>"),...t)},pt=(...t)=>{console.error(OE.bold(">>>"),...t)};var QP="turbo.json";var Bf={};function e2(t){try{if(ss.default.existsSync(fn.default.join(t,"pnpm-workspace.yaml")))return G0.load(ss.default.readFileSync(fn.default.join(t,"pnpm-workspace.yaml"),"utf8")).packages||[];let e=JSON.parse(ss.default.readFileSync(fn.default.join(t,"package.json"),"utf8"));if(e.workspaces){if("packages"in e.workspaces)return e.workspaces.packages||[];if(Array.isArray(e.workspaces))return e.workspaces}return[]}catch{return[]}}function If(t,e){var s;let r=Wi(t,e),n=[],i=(s=e==null?void 0:e.cache)!=null?s:!0;if(i&&t&&t in Bf)return Bf[t];if(r){let a=e2(r).map(c=>`${c}/turbo.json`);(0,PE.sync)([QP,...a],{cwd:r,onlyFiles:!0,followSymbolicLinks:!1,suppressErrors:!0}).map(c=>fn.default.join(r,c)).forEach(c=>{try{let l=ss.default.readFileSync(c,"utf8"),f=no.parse(l),h=fn.default.dirname(c)===r;if(h){if("extends"in f)return}else if(!("extends"in f))return;n.push({config:f,turboConfigPath:c,workspacePath:fn.default.dirname(c),isRootConfig:h})}catch(l){Pf(l)}})}return i&&t&&(Bf[t]=n),n}var VB=X(require("os")),YB=X(oD());var aD=X(require("fs-extra")),KB=[".DS_Store",".git",".gitattributes",".gitignore",".gitlab-ci.yml",".hg",".hgcheck",".hgignore",".idea",".npmignore",".travis.yml","LICENSE","Thumbs.db","docs","mkdocs.yml","npm-debug.log","yarn-debug.log","yarn-error.log","yarnrc.yml",".yarn"];function ls(t){let e=aD.default.readdirSync(t).filter(r=>!KB.includes(r)).filter(r=>!r.endsWith(".iml"));return{isEmpty:e.length===0,conflicts:e}}var Zf=X(require("path")),Qf=X(require("fs-extra")),eh=X(require("chalk"));function ua(t){let e=Zf.default.resolve(t),r=Zf.default.basename(e),n=Qf.default.existsSync(e),i=Qf.default.lstatSync(e,{throwIfNoEntry:!1});if(i&&!i.isDirectory())return{valid:!1,root:e,projectName:r,error:`${eh.default.dim(r)} is not a directory - please try a different location`};if(n){let{isEmpty:s,conflicts:o}=ls(e);if(!s)return{valid:!1,root:e,projectName:r,error:`${eh.default.dim(r)} (${e}) has ${o.length} conflicting ${o.length===1?"file":"files"} - please try a different location`}}return{valid:!0,root:e,projectName:r}}var FC=require("stream"),TC=require("util"),OC=require("path"),kC=require("os"),js=require("fs"),Yp=X(ix()),$u=X(RC()),PM=(0,TC.promisify)(FC.Stream.pipeline);async function ju(t){try{return(await $u.default.head(t)).statusCode===200}catch{return!1}}async function Kp(t,e){let[,r,n,i,s,...o]=t.pathname.split("/"),a=e?e.replace(/^\//,""):o.join("/");if(i===void 0||i===""&&s===void 0)try{let c=await(0,$u.default)(`https://api.github.com/repos/${r}/${n}`),l=JSON.parse(c.body);return{username:r,name:n,branch:l.default_branch,filePath:a}}catch{return}let u=e?`${s}/${o.join("/")}`.replace(new RegExp(`/${a}|/$`),""):s;if(r&&n&&u&&i==="tree")return{username:r,name:n,branch:u,filePath:a}}function Jp({username:t,name:e,branch:r,filePath:n}){let i=`https://api.github.com/repos/${t}/${e}/contents`,s=`${n?`/${n}`:""}/package.json`;return ju(`${i+s}?ref=${r}`)}function Xp(t){try{let e=new URL(t);return ju(e.href)}catch{return ju(`https://api.github.com/repos/vercel/turbo/contents/examples/${encodeURIComponent(t)}`)}}async function PC(t,e){let r=(0,OC.join)((0,kC.tmpdir)(),`${e}.temp-${Date.now()}`);return await PM($u.default.stream(t),(0,js.createWriteStream)(r)),r}async function Zp(t,{username:e,name:r,branch:n,filePath:i}){let s=await PC(`https://codeload.github.com/${e}/${r}/tar.gz/${n}`,"turbo-ct-example");await(0,Yp.x)({file:s,cwd:t,strip:i?i.split("/").length+1:1,filter:o=>o.startsWith(`${r}-${n.replace(/\//g,"-")}${i?`/${i}/`:"/"}`)}),await js.promises.unlink(s)}async function Qp(t,e){let r=await PC("https://codeload.github.com/vercel/turbo/tar.gz/main","turbo-ct-example");await(0,Yp.x)({file:r,cwd:t,strip:2+e.split("/").length,filter:n=>n.includes(`turbo-main/examples/${e}/`)}),await js.promises.unlink(r)}var Uu=require("fs-extra");async function em(t){try{return await(0,Uu.access)(t,Uu.constants.W_OK),!0}catch{return!1}}var Li=X(require("path")),tm=X(HC()),Dr=X(require("chalk")),Ni=require("fs-extra");function NM(t){return typeof t=="object"&&t!==null&&typeof t.message=="string"}var Gu=class extends Error{};async function rm({appPath:t,example:e,isDefaultExample:r,examplePath:n}){let i,s;if(r)i={username:"vercel",name:"turbo",branch:"main",filePath:"examples/basic"};else{try{s=new URL(e)}catch(g){g.code!=="ERR_INVALID_URL"&&(pt(g),process.exit(1))}s?(s.origin!=="https://github.com"&&(pt(`Invalid URL: ${Dr.default.red(`"${e}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`),process.exit(1)),i=await Kp(s,n),i||(pt(`Unable to fetch repository information from: ${Dr.default.red(`"${e}"`)}. Please fix the URL and try again.`),process.exit(1)),await Jp(i)||(pt(`Could not locate the repository for ${Dr.default.red(`"${e}"`)}. Please check that the repository exists and try again.`),process.exit(1))):await Xp(e)||(pt(`Could not locate an example named ${Dr.default.red(`"${e}"`)}. It could be due to the following:
|
|
64
|
+
`,`1. Your spelling of example ${Dr.default.red(`"${e}"`)} might be incorrect.
|
|
65
|
+
`,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1))}let o=Li.default.resolve(t);await em(Li.default.dirname(o))||(pt("The application path is not writable, please check folder permissions and try again."),pt("It is likely you do not have write permissions for this folder."),process.exit(1));let a=Li.default.basename(o);try{await(0,Ni.mkdir)(o,{recursive:!0})}catch(g){pt("Unable to create project directory"),pt(g),process.exit(1)}let{isEmpty:u,conflicts:c}=ls(o);u||(pt(`${Dr.default.dim(o)} has ${c.length} conflicting ${c.length===1?"file":"files"} - please try a different location`),process.exit(1));let l=process.cwd();process.chdir(o);let f=kf("Downloading files...");try{!r&&i?(qt(`
|
|
66
|
+
Downloading files from repo ${Dr.default.cyan(e)}. This might take a moment.`),qt(),f.start(),await(0,tm.default)(()=>Zp(o,i),{retries:3})):(qt(`
|
|
67
|
+
Downloading files${r?"":` for example ${Dr.default.cyan(e)}`}. This might take a moment.`),qt(),f.start(),await(0,tm.default)(()=>Qp(o,e),{retries:3}))}catch(g){throw new Gu(NM(g)?g.message:String(g))}finally{f.stop()}let h=Li.default.join(o,"package.json"),p=(0,Ni.existsSync)(h),m=[];if(p){let g;try{g=(0,Ni.readJsonSync)(h)}catch{}g&&m.push(...Object.keys(g.scripts||{}))}let _=t;return Li.default.join(l,a)===t&&(_=a),{cdPath:_,hasPackageJson:p,availableScripts:m,repoInfo:i}}function nm(t,e={to:"camel"}){switch(e.to){case"camel":return t.replace(/(?:[-_][a-z])/g,r=>r.toUpperCase().replace("-","").replace("_",""));default:throw new Error("Not implemented")}}var gv=require("proxy-agent");var $s={name:"@turbo/gen",version:"1.10.17-canary.1",description:"Extend a Turborepo",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-gen"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:"dist/cli.js",types:"dist/types.d.ts",scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit"},dependencies:{"@turbo/workspaces":"workspace:*",chalk:"2.4.2",commander:"^10.0.0","fs-extra":"^10.1.0",inquirer:"^8.2.4",minimatch:"^9.0.0","node-plop":"^0.26.3","proxy-agent":"^6.2.2","ts-node":"^10.9.1","update-check":"^1.5.4","validate-npm-package-name":"^5.0.0"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@types/fs-extra":"^9.0.13","@types/inquirer":"^8.2.5","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/validate-npm-package-name":"^4.0.0",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^4.5.5"},files:["dist"],publishConfig:{access:"public"}};var jC=X(require("chalk")),$C=X(require("update-check"));var qM=(0,$C.default)($s).catch(()=>null);async function im(){try{let t=await qM;t!=null&&t.latest&&(L.log(),L.log(jC.default.yellow.bold(`A new version of \`${$s.name}\` is available!`)),L.log()),process.exit()}catch{}}var UC=require("@turbo/workspaces");async function Wu({root:t}){let e=t||process.cwd(),r=Wi(e);if(!r)L.error("Unable to infer repository root - override with --root");else try{return(0,UC.getWorkspaceDetails)({root:r})}catch{L.error(`Unable to determine workspace details. Make sure "${e}" is the root, or add "packageManager" to "package.json" or ensure a lockfile is present.`)}process.exit(1)}var wr=X(require("path")),Vu=X(require("fs-extra")),zu=X(require("node-plop")),GC=require("ts-node"),WC=require("inquirer");var Ie=class extends Error{constructor(r,n){var i;super(r);this.name="GenerateError",this.type=(i=n==null?void 0:n.type)!=null?i:"unknown",Error.captureStackTrace(this,Ie)}};var zC=["ts","js","cjs"],HM=wr.default.join("turbo","generators"),VC=zC.map(t=>wr.default.join(HM,`config.${t}`)),jM=[...VC,...zC.map(t=>wr.default.join(`plopfile.${t}`))];function YC({project:t,configPath:e}){(0,GC.register)({transpileOnly:!0,cwd:t.paths.root,compilerOptions:{module:"nodenext",moduleResolution:"nodenext"}});let r=UM({project:t}),n;if(e){if(!Vu.default.existsSync(e))throw new Ie(`No config at "${e}"`,{type:"plop_no_config"});try{n=(0,zu.default)(e,{destBasePath:e,force:!1})}catch(i){L.error(i)}}else{for(let i of jM){let s=wr.default.join(t.paths.root,i);if(Vu.default.existsSync(s))try{n=(0,zu.default)(s,{destBasePath:t.paths.root,force:!1});break}catch(o){L.error(o)}}!n&&r.length>0&&(n=(0,zu.default)(r[0].config,{destBasePath:r[0].root,force:!1}),r.shift())}return n&&r.forEach(i=>{try{n==null||n.load(i.config,{destBasePath:i.root,force:!1})}catch(s){L.error(s)}}),n}function sm({project:t,configPath:e}){let r=YC({project:t,configPath:e});if(!r)return[];let i=r.getGeneratorList().map(a=>r.getGenerator(a.name)),s={};i.forEach(a=>{let u=a,c=t.workspaceData.workspaces.find(l=>{if(u.basePath===t.paths.root)return!1;let f=u.basePath.split(wr.default.sep);return f.pop(),f.pop(),wr.default.join("/",...f)===l.paths.root});c?(c.name in s||(s[c.name]=[]),s[c.name].push(u)):("root"in s||(s.root=[]),s.root.push(u))});let o=[];return Object.keys(s).forEach(a=>{o.push(new WC.Separator(a)),o.push(...s[a])}),o}function $M({project:t,generator:e}){let r={root:t.paths.root,workspace:e.basePath?Gi({cwd:e.basePath,target:"package.json"}):void 0},n={};try{n=If(e.basePath)}catch{}return{turbo:{paths:r,configs:n}}}function UM({project:t}){let e=[];return t.workspaceData.workspaces.forEach(r=>{for(let n of VC)Vu.default.existsSync(wr.default.join(r.paths.root,n))&&e.push({config:wr.default.join(r.paths.root,n),root:r.paths.root})}),e}async function KC({project:t,generator:e,bypassArgs:r,configPath:n}){let i=YC({project:t,configPath:n});if(!i)throw new Ie("Unable to load generators",{type:"plop_unable_to_load_config"});let s=i.getGenerator(e);if(!s)throw new Ie(`Generator ${e} not found`,{type:"plop_generator_not_found"});let o=await s.runPrompts(r),a=await s.runActions({...o,...$M({project:t,generator:s})},{onComment:u=>{L.dimmed(u)}});if(a.failures.length>0)throw a.failures.forEach(u=>{u instanceof Error?L.error(`Error - ${u.message}`):L.error(`Error - ${u.error}. Unable to ${u.type} to "${u.path}"`)}),new Ie(`Failed to run "${e}" generator`,{type:"plop_error_running_generator"});a.changes.length>0&&(L.info("Changes made:"),a.changes.forEach(u=>{u.path&&L.item(`${u.path} (${u.type})`)}))}var vn=require("inquirer");async function JC({generators:t,generator:e}){if(e){if(t.find(n=>!(n instanceof vn.Separator)&&n.name===e))return{selectedGenerator:e};L.warn(`Generator "${e}" not found`),L.log()}return await(0,vn.prompt)({type:"list",name:"selectedGenerator",message:"Select generator to run",choices:t.map(n=>n instanceof vn.Separator?n:{name:n.description?` ${n.name}: ${n.description}`:` ${n.name}`,value:n.name})})}async function XC(){return(0,vn.prompt)({type:"list",name:"answer",message:"Should the generator config be created with TS or JS?",default:"ts",choices:[{name:"JavaScript",value:"js"},{name:"TypeScript",value:"ts"}]})}async function ZC({message:t}){return(0,vn.prompt)({type:"confirm",name:"answer",message:t})}var om=X(require("path")),Yu=require("fs-extra");async function QC({project:t,template:e}){let r=om.default.join(t.paths.root,"turbo","generators"),n=`simple-${e}`;if(await(0,Yu.pathExists)(r))throw new Ie(`Generator config directory already exists at ${r}`,{type:"config_directory_already_exists"});await(0,Yu.copy)(om.default.join(__dirname,"templates",n),r,{recursive:!0})}async function am({generator:t,project:e,opts:r}){let n=!1,i=sm({project:e,configPath:r.config});if(!i.length){L.error("No generators found."),L.log();let{answer:o}=await ZC({message:`Would you like to add a config with a sample custom generator to ${e.name}?`});if(o){n=!0;let{answer:a}=await XC();try{await QC({project:e,template:a})}catch(u){throw u instanceof Ie||L.error("Failed to create generator config"),u}if(L.log(),L.info("Generator config successfully created!"),L.info("Loading generator config..."),L.log(),i=sm({project:e,configPath:r.config}),!i.length){L.error("Error loading generator");return}}else{L.log(),L.dimmed("Learn more about custom Turborepo generators - https://turbo.build/repo/docs/core-concepts/monorepos/code-generation#custom-generators");return}}let{selectedGenerator:s}=await JC({generators:i,generator:t});try{await KC({project:e,generator:s,bypassArgs:r.args,configPath:r.config})}catch(o){if(o instanceof Ie)throw o;let a="Failed to run generator";throw o instanceof Error&&(a=o.message),new Ie(a,{type:"plop_error_running_generator"})}finally{n&&(L.log(),L.info("Congrats! You just ran your first Turborepo generator"),L.dimmed("Learn more about custom Turborepo generators - https://turbo.build/repo/docs/core-concepts/monorepos/code-generation#custom-generators"))}L.log(),L.bold(L.turboGradient(">>> Success!"))}var fm=X(require("path")),Gs=require("fs-extra"),lv=X(require("chalk"));var Us=X(require("path")),nv=require("fs-extra"),xt=require("inquirer"),iv=require("minimatch"),lm=X(require("validate-npm-package-name"));var um=X(require("path"));var ev=X(require("path"));function tv({project:t}){let r=t.workspaceData.workspaces.map(i=>ev.default.relative(t.paths.root,i.paths.root)),n=new Set;return t.workspaceData.globs.forEach(i=>{if(!r.includes(i)){if(!i.startsWith("!")){let o=i.split("/")[0];n.add(o)}}}),Array.from(n)}function cm({project:t,workspace:e}){return um.default.relative(t.paths.root,e.paths.root).split(um.default.sep)[0]}function Ku({project:t}){let e=tv({project:t}),r=e.includes("apps"),n=e.includes("packages"),i={},s=[];return t.workspaceData.workspaces.forEach(o=>{let a=cm({project:t,workspace:o});a!=="apps"&&s.push(o),a in i||(i[a]=[]),i[a].push(o)}),{hasRootApps:r,hasRootPackages:n,workspacesByGroup:i,nonAppWorkspaces:s}}var rv=require("inquirer");function Ju({project:t,type:e,showAllDependencies:r}){let n=Ku({project:t}),i=[],s=t.workspaceData.workspaces;r||(e==="app"&&n.hasRootApps?s=n.workspacesByGroup.apps:e==="package"&&n.nonAppWorkspaces.length>0&&(s=n.nonAppWorkspaces));let o;return s.forEach(a=>{let u=cm({project:t,workspace:a});u!==o&&i.push(new rv.Separator(u)),o=u,i.push(a)}),i}async function sv({override:t,suggestion:e,workspaceType:r}){let{validForNewPackages:n}=(0,lm.default)(t||"");return t&&n?{answer:t}:(0,xt.prompt)({type:"input",name:"answer",default:e,validate:i=>{let{validForNewPackages:s}=(0,lm.default)(i);return s||`Invalid ${r} name`},message:`What is the name of the ${r}?`})}async function ov({override:t,message:e}){return t?{answer:t}:(0,xt.prompt)({type:"list",name:"answer",message:e!=null?e:"What type of workspace should be added?",choices:[{name:"app",value:"app"},{name:"package",value:"package"}]})}async function av({workspaceType:t,workspaceName:e,destination:r,project:n}){let i=e.includes("/")?e.split("/")[1]:e;if(r){let{valid:u,root:c}=ua(r);if(u)return{absolute:c,relative:Us.default.relative(n.paths.root,c)}}let s,o=Ku({project:n});t==="app"&&o.hasRootApps?s=`${n.paths.root}/apps/${i}`:t==="package"&&o.hasRootPackages&&(s=`${n.paths.root}/packages/${i}`);let{answer:a}=await(0,xt.prompt)({type:"input",name:"answer",message:`Where should "${e}" be added?`,default:s?Us.default.relative(n.paths.root,s):void 0,validate:u=>{let c=Us.default.join(n.paths.root,u),{valid:l,error:f}=ua(c),h=n.workspaceData.globs.some(p=>(0,iv.minimatch)(u,p));return l&&h?!0:h?f:`${u} is not a valid workspace location`}});return{absolute:Us.default.join(n.paths.root,a),relative:a}}async function uv({override:t,workspaces:e,workspaceName:r}){if(t){let i=e.find(s=>s instanceof xt.Separator?!1:s.name===t);if(i)return{answer:i};L.warn(`Workspace "${t}" not found`),L.log()}return await(0,xt.prompt)({type:"list",name:"answer",loop:!1,pageSize:25,message:`Which workspace should "${r}" start from?`,choices:e.map(i=>i instanceof xt.Separator?i:{name:` ${i.name}`,value:i})})}async function cv({workspaceName:t,project:e,workspaceSource:r,showAllDependencies:n}){let i={dependencies:{},devDependencies:{},peerDependencies:{},optionalDependencies:{}},{answer:s}=await WM({message:`Add workspace dependencies to "${t}"?`});if(!s)return i;let{answer:o}=await(0,xt.prompt)({type:"checkbox",name:"answer",message:`Select all dependencies types to modify for "${t}"`,loop:!1,choices:[{name:"dependencies",value:"dependencies"},{name:"devDependencies",value:"devDependencies"},{name:"peerDependencies",value:"peerDependencies"},{name:"optionalDependencies",value:"optionalDependencies"}]}),a=Ju({project:e,type:"package",showAllDependencies:n}),u=r?(0,nv.readJsonSync)(r.paths.packageJson):void 0;for(let c of o){let{answer:l}=await(0,xt.prompt)({type:"checkbox",name:"answer",default:u&&Object.keys(u[c]||{}),pageSize:15,message:`Which packages should be added as ${c} to "${t}?`,loop:!1,choices:a.map(h=>h instanceof xt.Separator?h:{name:` ${h.name}`,value:h.name})}),f=(u==null?void 0:u[c])||{};if(Object.keys(f).length){let h=new Set(Object.keys(f));l.forEach(p=>{h.has(p)||(f[p]=e.packageManager==="pnpm"?"workspace:*":"*")}),i[c]=f}else i[c]=l.reduce((h,p)=>({...h,[p]:e.packageManager==="pnpm"?"workspace:*":"*"}),{})}return i}async function WM({message:t}){return(0,xt.prompt)({type:"confirm",name:"answer",message:t})}async function Xu({project:t,opts:e}){var u;let r,n=e.method==="copy"&&e.copy.type==="external"?((u=e.examplePath)==null?void 0:u.split("/").pop())||e.copy.source.split("/").pop():void 0,{answer:i}=await ov({override:e.type,message:e.method==="copy"&&e.copy.source==="external"&&n?`What type of workspace should "${n}" be created as?`:void 0}),{answer:s}=await sv({override:e.name,workspaceType:i,suggestion:n});if(e.method==="copy"&&e.copy.type==="internal"){let{answer:c}=await uv({override:e.copy.source,workspaces:Ju({project:t,type:i}),workspaceName:s});r=c}let o=await av({workspaceType:i,workspaceName:s,project:t,destination:e.destination}),a=await cv({workspaceName:s,project:t,workspaceSource:r,showAllDependencies:e.showAllDependencies});return{type:i,name:s,location:o,source:r,dependencies:a}}async function hm({project:t,opts:e}){let{name:r,location:n,dependencies:i}=await Xu({project:t,opts:e}),s={name:r,version:"0.0.0",private:!0,scripts:{dev:"echo 'Add dev script here'",build:"echo 'Add build script here'",test:"echo 'Add test script here'",lint:"echo 'Add lint script here'"}};Object.keys(i).forEach(o=>{let a=i[o];a&&Object.keys(a).length>0&&(s[o]=a)}),(0,Gs.mkdirSync)(n.absolute,{recursive:!0}),(0,Gs.writeFileSync)(fm.default.join(n.absolute,"package.json"),JSON.stringify(s,null,2)),(0,Gs.writeFileSync)(fm.default.join(n.absolute,"README.md"),`# \`${r}\``),L.log(),L.log(`${lv.default.bold(L.turboGradient(">>> Success!"))} Created ${r} at "${n.relative}"`)}var dm=X(require("path")),St=require("fs-extra"),fv=X(require("chalk"));async function pm({project:t,opts:e}){let{name:r,type:n,location:i,source:s,dependencies:o}=await Xu({project:t,opts:e}),a=dm.default.join(i.absolute,"package.json");if(e.copy.type==="external"){L.log(),L.warn("Some manual modifications may be required."),L.dimmed(`This ${n} may require local dependencies or a different package manager than what is available in this repo`),await rm({appPath:i.absolute,example:e.copy.source,examplePath:e.examplePath});try{if((0,St.existsSync)(a)){if((await(0,St.readJSON)(a)).workspaces)throw new Error("New workspace root detected - unexpected 'workspaces' field in package.json")}else throw new Error("New workspace is missing a package.json file");if((0,St.existsSync)(dm.default.join(i.absolute,"pnpm-workspace.yaml")))throw new Error("New workspace root detected - unexpected pnpm-workspace.yaml")}catch(c){let l="UNKNOWN_ERROR";c instanceof Error&&(l=c.message),L.error(l),await(0,St.rm)(i.absolute,{recursive:!0,force:!0});return}}else if(s){let c=async f=>Promise.resolve(!f.includes("node_modules")),l=L.turboLoader(`Creating "${r}" from "${s.name}"...`);l.start(),await(0,St.copy)(s.paths.root,i.absolute,{filter:c}),l.stop()}let u=await(0,St.readJSON)(a);u.name=r,Object.keys(o).forEach(c=>{let l=o[c];l&&Object.keys(l).length>0&&(u[c]=l)}),await(0,St.writeJSON)(a,u,{spaces:2}),L.log(),L.log(`${fv.default.bold(L.turboGradient(">>> Success!"))} Created ${r} at "${i.relative}"`)}function VM(t){let{copy:e,...r}=t,n=e===!0||typeof e=="string"?"copy":"empty",i=typeof e=="string"?e:"",s=typeof e=="string"&&e.startsWith("https://")?"external":"internal";return{method:n,copy:{type:s,source:i},...r}}async function Ws(t){let e=await Wu(t),r=VM(t);L.log();let n={project:e,opts:r};r.method==="copy"?(r.copy.type==="external"?L.info(`Copy a remote workspace from ${r.copy.source}`):L.info(`Copy an existing workspace from "${e.name}"`),L.log(),await pm(n)):(L.info(`Add an empty workspace to "${e.name}"`),L.log(),await hm(n))}async function zs(t,e){let r=await Wu(e);L.log(),L.info(`Modify "${r.name}" using custom generators`),L.log(),await am({generator:t,project:r,opts:e})}function hv(t){try{let e=JSON.parse(t),r={};for(let n in e){let i=nm(n,{to:"camel"});r[i]=e[n]}return r}catch(e){L.error("Error parsing arguments",e),process.exit(1)}}async function mm(t,e){var r;if(t==="workspace"){let n=hv(e.json);n.showAllDependencies=(r=n.showAllDependencies)!=null?r:!1;let i=!1,s=n.empty||!0;n.copy===""||n.copy===!0?(i=!0,s=!1):n.copy&&n.copy.length>0&&(i=n.copy,s=!1),n.copy=i,n.empty=s,await Ws(n)}else if(t==="run"){let n=hv(e.json),{generatorName:i,...s}=n;await zs(i,s)}else L.error(`Received unknown command - "${t}" (must be one of "workspace" | "run")`),process.exit(1)}var yv=new gv.ProxyAgent;dv.default.globalAgent=yv;pv.default.globalAgent=yv;var Vs=new Le.Command;Vs.name(mv.default.bold(L.turboGradient("@turbo/gen"))).description("Extend your Turborepo").version($s.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").showHelpAfterError(!1);Vs.command("run",{isDefault:!0}).alias("r").description("Run custom generators").addArgument(new Le.Argument("[generator-name]","The name of the generator to run")).addOption(new Le.Option("-c, --config <config>","Generator configuration file (default: turbo/generators/config.js")).addOption(new Le.Option("-r, --root <dir>","The root of your repository (default: directory with root turbo.json)")).addOption(new Le.Option("-a, --args <args...>","Arguments passed directly to generator").default([])).action(zs);Vs.command("workspace").aliases(["w"]).description("Add a new package or app to your project").addOption(new Le.Option("-n, --name <workspace-name>","Name for the new workspace")).addOption(new Le.Option("-b, --empty","Generate an empty workspace").conflicts("copy").default(!0)).addOption(new Le.Option("-c, --copy [source]",`Generate a workspace using an existing workspace as a template. Can be the name of a local workspace
|
|
90
68
|
within your monorepo, or a fully qualified GitHub URL with any branch and/or subdirectory.
|
|
91
|
-
`).conflicts("empty")).addOption(new
|
|
69
|
+
`).conflicts("empty")).addOption(new Le.Option("-d, --destination <dir>","Where the new workspace should be created")).addOption(new Le.Option("-t, --type <type>","The type of workspace to create").choices(["app","package"])).addOption(new Le.Option("-r, --root <dir>","The root of your repository (default: directory with root turbo.json)")).addOption(new Le.Option("-p, --example-path <path-to-example>",`In a rare case, your GitHub URL might contain a branch name with
|
|
92
70
|
a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).
|
|
93
71
|
In this case, you must specify the path to the example separately:
|
|
94
72
|
--example-path foo/bar
|
|
95
|
-
`).implies({copy:!0})).addOption(new
|
|
96
|
-
/*!
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
*
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
73
|
+
`).implies({copy:!0})).addOption(new Le.Option("--show-all-dependencies","Do not filter available dependencies by the workspace type").default(!1)).action(Ws);Vs.command("raw",{hidden:!0}).argument("<type>","The type of generator to run").addOption(new Le.Option("--json <arguments>","Arguments as raw JSON")).action(mm);Vs.parseAsync().then(im).catch(async t=>{L.log(),t instanceof Ie?L.error(t.message):(L.error("Unexpected error. Please report it as a bug:"),L.log(t)),L.log(),await im(),process.exit(1)});
|
|
74
|
+
/*! Bundled license information:
|
|
75
|
+
|
|
76
|
+
@babel/runtime/helpers/regeneratorRuntime.js:
|
|
77
|
+
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)
|
|
78
|
+
|
|
79
|
+
is-extglob/index.js:
|
|
80
|
+
(*!
|
|
81
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
82
|
+
*
|
|
83
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
84
|
+
* Licensed under the MIT License.
|
|
85
|
+
*)
|
|
86
|
+
|
|
87
|
+
is-glob/index.js:
|
|
88
|
+
(*!
|
|
89
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
90
|
+
*
|
|
91
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
92
|
+
* Released under the MIT License.
|
|
93
|
+
*)
|
|
94
|
+
|
|
95
|
+
is-number/index.js:
|
|
96
|
+
(*!
|
|
97
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
98
|
+
*
|
|
99
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
100
|
+
* Released under the MIT License.
|
|
101
|
+
*)
|
|
102
|
+
|
|
103
|
+
to-regex-range/index.js:
|
|
104
|
+
(*!
|
|
105
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
106
|
+
*
|
|
107
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
108
|
+
* Released under the MIT License.
|
|
109
|
+
*)
|
|
110
|
+
|
|
111
|
+
fill-range/index.js:
|
|
112
|
+
(*!
|
|
113
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
114
|
+
*
|
|
115
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
116
|
+
* Licensed under the MIT License.
|
|
117
|
+
*)
|
|
118
|
+
|
|
119
|
+
queue-microtask/index.js:
|
|
120
|
+
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
121
|
+
|
|
122
|
+
run-parallel/index.js:
|
|
123
|
+
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
124
|
+
|
|
125
|
+
js-yaml/dist/js-yaml.mjs:
|
|
126
|
+
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
|
|
127
|
+
*/
|