@turbo/gen 2.7.1 → 2.7.2-canary.0
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 +63 -67
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -1,86 +1,82 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var VS=Object.create;var Lc=Object.defineProperty;var YS=Object.getOwnPropertyDescriptor;var KS=Object.getOwnPropertyNames;var JS=Object.getPrototypeOf,XS=Object.prototype.hasOwnProperty;var y=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ZS=(e,t)=>{for(var r in t)Lc(e,r,{get:t[r],enumerable:!0})},QS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of KS(t))!XS.call(e,i)&&i!==r&&Lc(e,i,{get:()=>t[i],enumerable:!(n=YS(t,i))||n.enumerable});return e};var X=(e,t,r)=>(r=e!=null?VS(JS(e)):{},QS(t||!e||!e.__esModule?Lc(r,"default",{value:e,enumerable:!0}):r,e));var Cm=y((P9,ir)=>{function Nc(e){return ir.exports=Nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ir.exports.__esModule=!0,ir.exports.default=ir.exports,Nc(e)}ir.exports=Nc,ir.exports.__esModule=!0,ir.exports.default=ir.exports});var Fm=y((B9,sr)=>{var Sm=Cm().default;function Rm(){"use strict";sr.exports=Rm=function(){return t},sr.exports.__esModule=!0,sr.exports.default=sr.exports;var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(A,F,C){A[F]=C.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function c(A,F,C){return Object.defineProperty(A,F,{value:C,enumerable:!0,configurable:!0,writable:!0}),A[F]}try{c({},"")}catch{c=function(C,k,G){return C[k]=G}}function l(A,F,C,k){var G=F&&F.prototype instanceof v?F:v,q=Object.create(G.prototype),le=new ot(k||[]);return i(q,"_invoke",{value:ve(A,C,le)}),q}function f(A,F,C){try{return{type:"normal",arg:A.call(F,C)}}catch(k){return{type:"throw",arg:k}}}t.wrap=l;var h="suspendedStart",p="suspendedYield",m="executing",g="completed",b={};function v(){}function S(){}function L(){}var W={};c(W,o,function(){return this});var M=Object.getPrototypeOf,J=M&&M(M(x([])));J&&J!==r&&n.call(J,o)&&(W=J);var z=L.prototype=v.prototype=Object.create(W);function Y(A){["next","throw","return"].forEach(function(F){c(A,F,function(C){return this._invoke(F,C)})})}function te(A,F){function C(G,q,le,Oe){var ae=f(A[G],A,q);if(ae.type!=="throw"){var Ae=ae.arg,K=Ae.value;return K&&Sm(K)=="object"&&n.call(K,"__await")?F.resolve(K.__await).then(function(tt){C("next",tt,le,Oe)},function(tt){C("throw",tt,le,Oe)}):F.resolve(K).then(function(tt){Ae.value=tt,le(Ae)},function(tt){return C("throw",tt,le,Oe)})}Oe(ae.arg)}var k;i(this,"_invoke",{value:function(q,le){function Oe(){return new F(function(ae,Ae){C(q,le,ae,Ae)})}return k=k?k.then(Oe,Oe):Oe()}})}function ve(A,F,C){var k=h;return function(G,q){if(k===m)throw new Error("Generator is already running");if(k===g){if(G==="throw")throw q;return{value:e,done:!0}}for(C.method=G,C.arg=q;;){var le=C.delegate;if(le){var Oe=R(le,C);if(Oe){if(Oe===b)continue;return Oe}}if(C.method==="next")C.sent=C._sent=C.arg;else if(C.method==="throw"){if(k===h)throw k=g,C.arg;C.dispatchException(C.arg)}else C.method==="return"&&C.abrupt("return",C.arg);k=m;var ae=f(A,F,C);if(ae.type==="normal"){if(k=C.done?g:p,ae.arg===b)continue;return{value:ae.arg,done:C.done}}ae.type==="throw"&&(k=g,C.method="throw",C.arg=ae.arg)}}}function R(A,F){var C=F.method,k=A.iterator[C];if(k===e)return F.delegate=null,C==="throw"&&A.iterator.return&&(F.method="return",F.arg=e,R(A,F),F.method==="throw")||C!=="return"&&(F.method="throw",F.arg=new TypeError("The iterator does not provide a '"+C+"' method")),b;var G=f(k,A.iterator,F.arg);if(G.type==="throw")return F.method="throw",F.arg=G.arg,F.delegate=null,b;var q=G.arg;return q?q.done?(F[A.resultName]=q.value,F.next=A.nextLoc,F.method!=="return"&&(F.method="next",F.arg=e),F.delegate=null,b):q:(F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,b)}function ce(A){var F={tryLoc:A[0]};1 in A&&(F.catchLoc=A[1]),2 in A&&(F.finallyLoc=A[2],F.afterLoc=A[3]),this.tryEntries.push(F)}function oe(A){var F=A.completion||{};F.type="normal",delete F.arg,A.completion=F}function ot(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(ce,this),this.reset(!0)}function x(A){if(A||A===""){var F=A[o];if(F)return F.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var C=-1,k=function G(){for(;++C<A.length;)if(n.call(A,C))return G.value=A[C],G.done=!1,G;return G.value=e,G.done=!0,G};return k.next=k}}throw new TypeError(Sm(A)+" is not iterable")}return S.prototype=L,i(z,"constructor",{value:L,configurable:!0}),i(L,"constructor",{value:S,configurable:!0}),S.displayName=c(L,u,"GeneratorFunction"),t.isGeneratorFunction=function(A){var F=typeof A=="function"&&A.constructor;return!!F&&(F===S||(F.displayName||F.name)==="GeneratorFunction")},t.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,L):(A.__proto__=L,c(A,u,"GeneratorFunction")),A.prototype=Object.create(z),A},t.awrap=function(A){return{__await:A}},Y(te.prototype),c(te.prototype,a,function(){return this}),t.AsyncIterator=te,t.async=function(A,F,C,k,G){G===void 0&&(G=Promise);var q=new te(l(A,F,C,k),G);return t.isGeneratorFunction(F)?q:q.next().then(function(le){return le.done?le.value:q.next()})},Y(z),c(z,u,"Generator"),c(z,o,function(){return this}),c(z,"toString",function(){return"[object Generator]"}),t.keys=function(A){var F=Object(A),C=[];for(var k in F)C.push(k);return C.reverse(),function G(){for(;C.length;){var q=C.pop();if(q in F)return G.value=q,G.done=!1,G}return G.done=!0,G}},t.values=x,ot.prototype={constructor:ot,reset:function(F){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(oe),!F)for(var C in this)C.charAt(0)==="t"&&n.call(this,C)&&!isNaN(+C.slice(1))&&(this[C]=e)},stop:function(){this.done=!0;var F=this.tryEntries[0].completion;if(F.type==="throw")throw F.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var C=this;function k(Ae,K){return le.type="throw",le.arg=F,C.next=Ae,K&&(C.method="next",C.arg=e),!!K}for(var G=this.tryEntries.length-1;G>=0;--G){var q=this.tryEntries[G],le=q.completion;if(q.tryLoc==="root")return k("end");if(q.tryLoc<=this.prev){var Oe=n.call(q,"catchLoc"),ae=n.call(q,"finallyLoc");if(Oe&&ae){if(this.prev<q.catchLoc)return k(q.catchLoc,!0);if(this.prev<q.finallyLoc)return k(q.finallyLoc)}else if(Oe){if(this.prev<q.catchLoc)return k(q.catchLoc,!0)}else{if(!ae)throw new Error("try statement without catch or finally");if(this.prev<q.finallyLoc)return k(q.finallyLoc)}}}},abrupt:function(F,C){for(var k=this.tryEntries.length-1;k>=0;--k){var G=this.tryEntries[k];if(G.tryLoc<=this.prev&&n.call(G,"finallyLoc")&&this.prev<G.finallyLoc){var q=G;break}}q&&(F==="break"||F==="continue")&&q.tryLoc<=C&&C<=q.finallyLoc&&(q=null);var le=q?q.completion:{};return le.type=F,le.arg=C,q?(this.method="next",this.next=q.finallyLoc,b):this.complete(le)},complete:function(F,C){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&C&&(this.next=C),b},finish:function(F){for(var C=this.tryEntries.length-1;C>=0;--C){var k=this.tryEntries[C];if(k.finallyLoc===F)return this.complete(k.completion,k.afterLoc),oe(k),b}},catch:function(F){for(var C=this.tryEntries.length-1;C>=0;--C){var k=this.tryEntries[C];if(k.tryLoc===F){var G=k.completion;if(G.type==="throw"){var q=G.arg;oe(k)}return q}}throw new Error("illegal catch attempt")},delegateYield:function(F,C,k){return this.delegate={iterator:x(F),resultName:C,nextLoc:k},this.method==="next"&&(this.arg=e),b}},t}sr.exports=Rm,sr.exports.__esModule=!0,sr.exports.default=sr.exports});var Om=y((I9,Tm)=>{var yo=Fm()();Tm.exports=yo;try{regeneratorRuntime=yo}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=yo:Function("r","regeneratorRuntime = r")(yo)}});var Pm=y((nq,Gc)=>{"use strict";var km=(e,...t)=>new Promise(r=>{r(e(...t))});Gc.exports=km;Gc.exports.default=km});var Im=y((iq,Wc)=>{"use strict";var eR=Pm(),Bm=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let t=[],r=0,n=()=>{r--,t.length>0&&t.shift()()},i=(a,u,...c)=>{r++;let l=eR(a,...c);u(l),l.then(n,n)},s=(a,u,...c)=>{r<e?i(a,u,...c):t.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:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),o};Wc.exports=Bm;Wc.exports.default=Bm});var Mm=y((sq,zc)=>{"use strict";var Lm=Im(),_o=class extends Error{constructor(t){super(),this.value=t}},tR=async(e,t)=>t(await e),rR=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new _o(t[0]);return!1},Nm=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Lm(r.concurrency),i=[...e].map(o=>[o,n(tR,o,t)]),s=Lm(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(rR,o)))}catch(o){if(o instanceof _o)return o.value;throw o}};zc.exports=Nm;zc.exports.default=Nm});var Gm=y((oq,Vc)=>{"use strict";var qm=require("path"),bo=require("fs"),{promisify:jm}=require("util"),nR=Mm(),iR=jm(bo.stat),sR=jm(bo.lstat),Hm={directory:"isDirectory",file:"isFile"};function $m({type:e}){if(!(e in Hm))throw new Error(`Invalid type specified: ${e}`)}var Um=(e,t)=>e===void 0||t[Hm[e]]();Vc.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},$m(t);let r=t.allowSymlinks?iR:sR;return nR(e,async n=>{try{let i=await r(qm.resolve(t.cwd,n));return Um(t.type,i)}catch{return!1}},t)};Vc.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},$m(t);let r=t.allowSymlinks?bo.statSync:bo.lstatSync;for(let n of e)try{let i=r(qm.resolve(t.cwd,n));if(Um(t.type,i))return n}catch{}}});var zm=y((aq,Yc)=>{"use strict";var Wm=require("fs"),{promisify:oR}=require("util"),aR=oR(Wm.access);Yc.exports=async e=>{try{return await aR(e),!0}catch{return!1}};Yc.exports.sync=e=>{try{return Wm.accessSync(e),!0}catch{return!1}}});var Ym=y((uq,jn)=>{"use strict";var Or=require("path"),Eo=Gm(),Vm=zm(),Kc=Symbol("findUp.stop");jn.exports=async(e,t={})=>{let r=Or.resolve(t.cwd||""),{root:n}=Or.parse(r),i=[].concat(e),s=async o=>{if(typeof e!="function")return Eo(i,o);let a=await e(o.cwd);return typeof a=="string"?Eo([a],o):a};for(;;){let o=await s({...t,cwd:r});if(o===Kc)return;if(o)return Or.resolve(r,o);if(r===n)return;r=Or.dirname(r)}};jn.exports.sync=(e,t={})=>{let r=Or.resolve(t.cwd||""),{root:n}=Or.parse(r),i=[].concat(e),s=o=>{if(typeof e!="function")return Eo.sync(i,o);let a=e(o.cwd);return typeof a=="string"?Eo.sync([a],o):a};for(;;){let o=s({...t,cwd:r});if(o===Kc)return;if(o)return Or.resolve(r,o);if(r===n)return;r=Or.dirname(r)}};jn.exports.exists=Vm;jn.exports.sync.exists=Vm.sync;jn.exports.stop=Kc});var ry=y(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.splitWhen=Wn.flatten=void 0;function z5(e){return e.reduce((t,r)=>[].concat(t,r),[])}Wn.flatten=z5;function V5(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}Wn.splitWhen=V5});var ny=y(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.isEnoentCodeError=void 0;function Y5(e){return e.code==="ENOENT"}Po.isEnoentCodeError=Y5});var iy=y(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.createDirentFromStats=void 0;var bl=class{constructor(t,r){this.name=t,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 K5(e,t){return new bl(e,t)}Bo.createDirentFromStats=K5});var sy=y(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.removeLeadingDotSegment=Gt.escape=Gt.makeAbsolute=Gt.unixify=void 0;var J5=require("path"),X5=2,Z5=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Q5(e){return e.replace(/\\/g,"/")}Gt.unixify=Q5;function eT(e,t){return J5.resolve(e,t)}Gt.makeAbsolute=eT;function tT(e){return e.replace(Z5,"\\$2")}Gt.escape=tT;function rT(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(X5)}return e}Gt.removeLeadingDotSegment=rT});var ay=y((Rq,oy)=>{oy.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var ly=y((Fq,cy)=>{var nT=ay(),uy={"{":"}","(":")","[":"]"},iT=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var u=uy[a];if(u){var c=e.indexOf(u,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},sT=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=uy[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};cy.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(nT(t))return!0;var n=iT;return r&&r.strict===!1&&(n=sT),n(t)}});var hy=y((Tq,fy)=>{"use strict";var oT=ly(),aT=require("path").posix.dirname,uT=require("os").platform()==="win32",El="/",cT=/\\/g,lT=/[\{\[].*[\}\]]$/,fT=/(^|[^\\])([\{\[]|\([^\)]+$)/,hT=/\\([\!\*\?\|\[\]\(\)\{\}])/g;fy.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&uT&&t.indexOf(El)<0&&(t=t.replace(cT,El)),lT.test(t)&&(t+=El),t+="a";do t=aT(t);while(oT(t)||fT.test(t));return t.replace(hT,"$1")}});var Io=y(At=>{"use strict";At.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;At.find=(e,t)=>e.nodes.find(r=>r.type===t);At.exceedsLimit=(e,t,r=1,n)=>n===!1||!At.isInteger(e)||!At.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;At.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};At.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);At.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;At.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;At.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);At.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];if(Array.isArray(s)){r(s);continue}s!==void 0&&t.push(s)}return t};return r(e),t}});var Lo=y((kq,py)=>{"use strict";var dy=Io();py.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&dy.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&dy.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(e)}});var gy=y((Pq,my)=>{"use strict";my.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var xy=y((Bq,Dy)=>{"use strict";var yy=gy(),pn=(e,t,r)=>{if(yy(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(yy(t)===!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=e+":"+t+"="+i+s+o+a;if(pn.cache.hasOwnProperty(u))return pn.cache[u].result;let c=Math.min(e,t),l=Math.max(e,t);if(Math.abs(c-l)===1){let g=e+"|"+t;return n.capture?`(${g})`:n.wrap===!1?g:`(?:${g})`}let f=Ay(e)||Ay(t),h={min:e,max:t,a:c,b:l},p=[],m=[];if(f&&(h.isPadded=f,h.maxLen=String(h.max).length),c<0){let g=l<0?Math.abs(l):1;m=_y(g,Math.abs(c),h,n),c=h.a=0}return l>=0&&(p=_y(c,l,h,n)),h.negatives=m,h.positives=p,h.result=dT(m,p,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&p.length+m.length>1&&(h.result=`(?:${h.result})`),pn.cache[u]=h,h.result};function dT(e,t,r){let n=wl(e,t,"-",!1,r)||[],i=wl(t,e,"",!1,r)||[],s=wl(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function pT(e,t){let r=1,n=1,i=Ey(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=Ey(e,r);for(i=wy(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=wy(t+1,n)-1;return s=[...s],s.sort(yT),s}function mT(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=gT(e,t),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+=_T(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function _y(e,t,r,n){let i=pT(e,t),s=[],o=e,a;for(let u=0;u<i.length;u++){let c=i[u],l=mT(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+vy(a.count),o=c+1;continue}r.isPadded&&(f=bT(c,r,n)),l.string=f+l.pattern+vy(l.count),s.push(l),o=c+1,a=l}return s}function wl(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!by(t,"string",a)&&s.push(r+a),n&&by(t,"string",a)&&s.push(r+a)}return s}function gT(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function yT(e,t){return e>t?1:t>e?-1:0}function by(e,t,r){return e.some(n=>n[t]===r)}function Ey(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function wy(e,t){return e-e%Math.pow(10,t)}function vy(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function _T(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Ay(e){return/^-?(0+)\d/.test(e)}function bT(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).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}}`}}pn.cache={};pn.clearCache=()=>pn.cache={};Dy.exports=pn});var Dl=y((Iq,ky)=>{"use strict";var ET=require("util"),Sy=xy(),Cy=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),wT=e=>t=>e===!0?Number(t):String(t),vl=e=>typeof e=="number"||typeof e=="string"&&e!=="",ms=e=>Number.isInteger(+e),Al=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},vT=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,AT=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},Mo=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},DT=(e,t,r)=>{e.negatives.sort((a,u)=>a<u?-1:a>u?1:0),e.positives.sort((a,u)=>a<u?-1:a>u?1:0);let n=t.capture?"":"?:",i="",s="",o;return e.positives.length&&(i=e.positives.map(a=>Mo(String(a),r)).join("|")),e.negatives.length&&(s=`-(${n}${e.negatives.map(a=>Mo(String(a),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,t.wrap?`(${n}${o})`:o},Ry=(e,t,r,n)=>{if(r)return Sy(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Fy=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Sy(e,t,r)},Ty=(...e)=>new RangeError("Invalid range arguments: "+ET.inspect(...e)),Oy=(e,t,r)=>{if(r.strictRanges===!0)throw Ty([e,t]);return[]},xT=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},CT=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Ty([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),u=String(t),c=String(r);r=Math.max(Math.abs(r),1);let l=Al(a)||Al(u)||Al(c),f=l?Math.max(a.length,u.length,c.length):0,h=l===!1&&vT(e,t,n)===!1,p=n.transform||wT(h);if(n.toRegex&&r===1)return Ry(Mo(e,f),Mo(t,f),!0,n);let m={negatives:[],positives:[]},g=S=>m[S<0?"negatives":"positives"].push(Math.abs(S)),b=[],v=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?g(i):b.push(AT(p(i,v),f,h)),i=o?i-r:i+r,v++;return n.toRegex===!0?r>1?DT(m,n,f):Fy(b,null,{wrap:!1,...n}):b},ST=(e,t,r=1,n={})=>{if(!ms(e)&&e.length>1||!ms(t)&&t.length>1)return Oy(e,t,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return Ry(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?Fy(l,null,{wrap:!1,options:n}):l},No=(e,t,r,n={})=>{if(t==null&&vl(e))return[e];if(!vl(e)||!vl(t))return Oy(e,t,n);if(typeof r=="function")return No(e,t,1,{transform:r});if(Cy(r))return No(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,ms(r)?ms(e)&&ms(t)?CT(e,t,r,i):ST(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Cy(r)?xT(r,i):No(e,t,1,r)};ky.exports=No});var Iy=y((Lq,By)=>{"use strict";var RT=Dl(),Py=Io(),FT=(e,t={})=>{let r=(n,i={})=>{let s=Py.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,u=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0)return u+n.value;if(n.isClose===!0)return console.log("node.isClose",u,n.value),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=Py.reduce(n.nodes),f=RT(...l,{...t,wrap:!1,toRegex:!0,strictZeros:!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(e)};By.exports=FT});var My=y((Nq,Ny)=>{"use strict";var TT=Dl(),Ly=Lo(),zn=Io(),mn=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?zn.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(mn(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?mn(i,s,r):i+s);return zn.flatten(n)},OT=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.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(mn(a.pop(),Ly(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(mn(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=zn.reduce(i.nodes);if(zn.exceedsLimit(...f,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=TT(...f,t);h.length===0&&(h=Ly(i,t)),a.push(mn(a.pop(),h)),i.nodes=[];return}let u=zn.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(mn(a.pop(),c,u));continue}if(h.value&&h.type!=="open"){c.push(mn(c.pop(),h.value));continue}h.nodes&&n(h,i)}return c};return zn.flatten(n(e))};Ny.exports=OT});var jy=y((Mq,qy)=>{"use strict";qy.exports={MAX_LENGTH:1e4,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 Wy=y((qq,Gy)=>{"use strict";var kT=Lo(),{MAX_LENGTH:Hy,CHAR_BACKSLASH:xl,CHAR_BACKTICK:PT,CHAR_COMMA:BT,CHAR_DOT:IT,CHAR_LEFT_PARENTHESES:LT,CHAR_RIGHT_PARENTHESES:NT,CHAR_LEFT_CURLY_BRACE:MT,CHAR_RIGHT_CURLY_BRACE:qT,CHAR_LEFT_SQUARE_BRACKET:$y,CHAR_RIGHT_SQUARE_BRACKET:Uy,CHAR_DOUBLE_QUOTE:jT,CHAR_SINGLE_QUOTE:HT,CHAR_NO_BREAK_SPACE:$T,CHAR_ZERO_WIDTH_NOBREAK_SPACE:UT}=jy(),GT=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Hy,r.maxLength):Hy;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,a=i,u=0,c=e.length,l=0,f=0,h,p=()=>e[l++],m=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(m({type:"bos"});l<c;)if(o=s[s.length-1],h=p(),!(h===UT||h===$T)){if(h===xl){m({type:"text",value:(t.keepEscaping?h:"")+p()});continue}if(h===Uy){m({type:"text",value:"\\"+h});continue}if(h===$y){u++;let g;for(;l<c&&(g=p());){if(h+=g,g===$y){u++;continue}if(g===xl){h+=p();continue}if(g===Uy&&(u--,u===0))break}m({type:"text",value:h});continue}if(h===LT){o=m({type:"paren",nodes:[]}),s.push(o),m({type:"text",value:h});continue}if(h===NT){if(o.type!=="paren"){m({type:"text",value:h});continue}o=s.pop(),m({type:"text",value:h}),o=s[s.length-1];continue}if(h===jT||h===HT||h===PT){let g=h,b;for(t.keepQuotes!==!0&&(h="");l<c&&(b=p());){if(b===xl){h+=b+p();continue}if(b===g){t.keepQuotes===!0&&(h+=b);break}h+=b}m({type:"text",value:h});continue}if(h===MT){f++;let b={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=m(b),s.push(o),m({type:"open",value:h});continue}if(h===qT){if(o.type!=="brace"){m({type:"text",value:h});continue}let g="close";o=s.pop(),o.close=!0,m({type:g,value:h}),f--,o=s[s.length-1];continue}if(h===BT&&f>0){if(o.ranges>0){o.ranges=0;let g=o.nodes.shift();o.nodes=[g,{type:"text",value:kT(o)}]}m({type:"comma",value:h}),o.commas++;continue}if(h===IT&&f>0&&o.commas===0){let g=o.nodes;if(f===0||g.length===0){m({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 b=g[g.length-1];b.value+=a.value+h,a=b,o.ranges--;continue}m({type:"dot",value:h});continue}m({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(v=>{v.nodes||(v.type==="open"&&(v.isOpen=!0),v.type==="close"&&(v.isClose=!0),v.nodes||(v.type="text"),v.invalid=!0)});let g=s[s.length-1],b=g.nodes.indexOf(o);g.nodes.splice(b,1,...o.nodes)}while(s.length>0);return m({type:"eos"}),i};Gy.exports=GT});var Yy=y((jq,Vy)=>{"use strict";var zy=Lo(),WT=Iy(),zT=My(),VT=Wy(),gt=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=gt.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(gt.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};gt.parse=(e,t={})=>VT(e,t);gt.stringify=(e,t={})=>zy(typeof e=="string"?gt.parse(e,t):e,t);gt.compile=(e,t={})=>(typeof e=="string"&&(e=gt.parse(e,t)),WT(e,t));gt.expand=(e,t={})=>{typeof e=="string"&&(e=gt.parse(e,t));let r=zT(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};gt.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?gt.compile(e,t):gt.expand(e,t);Vy.exports=gt});var gs=y((Hq,Qy)=>{"use strict";var YT=require("path"),Wt="\\\\/",Ky=`[^${Wt}]`,fr="\\.",KT="\\+",JT="\\?",qo="\\/",XT="(?=.)",Jy="[^/]",Cl=`(?:${qo}|$)`,Xy=`(?:^|${qo})`,Sl=`${fr}{1,2}${Cl}`,ZT=`(?!${fr})`,QT=`(?!${Xy}${Sl})`,eO=`(?!${fr}{0,1}${Cl})`,tO=`(?!${Sl})`,rO=`[^.${qo}]`,nO=`${Jy}*?`,Zy={DOT_LITERAL:fr,PLUS_LITERAL:KT,QMARK_LITERAL:JT,SLASH_LITERAL:qo,ONE_CHAR:XT,QMARK:Jy,END_ANCHOR:Cl,DOTS_SLASH:Sl,NO_DOT:ZT,NO_DOTS:QT,NO_DOT_SLASH:eO,NO_DOTS_SLASH:tO,QMARK_NO_DOT:rO,STAR:nO,START_ANCHOR:Xy},iO={...Zy,SLASH_LITERAL:`[${Wt}]`,QMARK:Ky,STAR:`${Ky}*?`,DOTS_SLASH:`${fr}{1,2}(?:[${Wt}]|$)`,NO_DOT:`(?!${fr})`,NO_DOTS:`(?!(?:^|[${Wt}])${fr}{1,2}(?:[${Wt}]|$))`,NO_DOT_SLASH:`(?!${fr}{0,1}(?:[${Wt}]|$))`,NO_DOTS_SLASH:`(?!${fr}{1,2}(?:[${Wt}]|$))`,QMARK_NO_DOT:`[^.${Wt}]`,START_ANCHOR:`(?:^|[${Wt}])`,END_ANCHOR:`(?:[${Wt}]|$)`},sO={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"};Qy.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:sO,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:YT.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?iO:Zy}}});var ys=y(ut=>{"use strict";var oO=require("path"),aO=process.platform==="win32",{REGEX_BACKSLASH:uO,REGEX_REMOVE_BACKSLASH:cO,REGEX_SPECIAL_CHARS:lO,REGEX_SPECIAL_CHARS_GLOBAL:fO}=gs();ut.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ut.hasRegexChars=e=>lO.test(e);ut.isRegexChar=e=>e.length===1&&ut.hasRegexChars(e);ut.escapeRegex=e=>e.replace(fO,"\\$1");ut.toPosixSlashes=e=>e.replace(uO,"/");ut.removeBackslashes=e=>e.replace(cO,t=>t==="\\"?"":t);ut.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ut.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:aO===!0||oO.sep==="\\";ut.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?ut.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ut.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};ut.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var a1=y((Uq,o1)=>{"use strict";var e1=ys(),{CHAR_ASTERISK:Rl,CHAR_AT:hO,CHAR_BACKWARD_SLASH:_s,CHAR_COMMA:dO,CHAR_DOT:Fl,CHAR_EXCLAMATION_MARK:Tl,CHAR_FORWARD_SLASH:s1,CHAR_LEFT_CURLY_BRACE:Ol,CHAR_LEFT_PARENTHESES:kl,CHAR_LEFT_SQUARE_BRACKET:pO,CHAR_PLUS:mO,CHAR_QUESTION_MARK:t1,CHAR_RIGHT_CURLY_BRACE:gO,CHAR_RIGHT_PARENTHESES:r1,CHAR_RIGHT_SQUARE_BRACKET:yO}=gs(),n1=e=>e===s1||e===_s,i1=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},_O=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=e,c=-1,l=0,f=0,h=!1,p=!1,m=!1,g=!1,b=!1,v=!1,S=!1,L=!1,W=!1,M=!1,J=0,z,Y,te={value:"",depth:0,isGlob:!1},ve=()=>c>=n,R=()=>u.charCodeAt(c+1),ce=()=>(z=Y,u.charCodeAt(++c));for(;c<n;){Y=ce();let F;if(Y===_s){S=te.backslashes=!0,Y=ce(),Y===Ol&&(v=!0);continue}if(v===!0||Y===Ol){for(J++;ve()!==!0&&(Y=ce());){if(Y===_s){S=te.backslashes=!0,ce();continue}if(Y===Ol){J++;continue}if(v!==!0&&Y===Fl&&(Y=ce())===Fl){if(h=te.isBrace=!0,m=te.isGlob=!0,M=!0,i===!0)continue;break}if(v!==!0&&Y===dO){if(h=te.isBrace=!0,m=te.isGlob=!0,M=!0,i===!0)continue;break}if(Y===gO&&(J--,J===0)){v=!1,h=te.isBrace=!0,M=!0;break}}if(i===!0)continue;break}if(Y===s1){if(s.push(c),o.push(te),te={value:"",depth:0,isGlob:!1},M===!0)continue;if(z===Fl&&c===l+1){l+=2;continue}f=c+1;continue}if(r.noext!==!0&&(Y===mO||Y===hO||Y===Rl||Y===t1||Y===Tl)===!0&&R()===kl){if(m=te.isGlob=!0,g=te.isExtglob=!0,M=!0,Y===Tl&&c===l&&(W=!0),i===!0){for(;ve()!==!0&&(Y=ce());){if(Y===_s){S=te.backslashes=!0,Y=ce();continue}if(Y===r1){m=te.isGlob=!0,M=!0;break}}continue}break}if(Y===Rl){if(z===Rl&&(b=te.isGlobstar=!0),m=te.isGlob=!0,M=!0,i===!0)continue;break}if(Y===t1){if(m=te.isGlob=!0,M=!0,i===!0)continue;break}if(Y===pO){for(;ve()!==!0&&(F=ce());){if(F===_s){S=te.backslashes=!0,ce();continue}if(F===yO){p=te.isBracket=!0,m=te.isGlob=!0,M=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&Y===Tl&&c===l){L=te.negated=!0,l++;continue}if(r.noparen!==!0&&Y===kl){if(m=te.isGlob=!0,i===!0){for(;ve()!==!0&&(Y=ce());){if(Y===kl){S=te.backslashes=!0,Y=ce();continue}if(Y===r1){M=!0;break}}continue}break}if(m===!0){if(M=!0,i===!0)continue;break}}r.noext===!0&&(g=!1,m=!1);let oe=u,ot="",x="";l>0&&(ot=u.slice(0,l),u=u.slice(l),f-=l),oe&&m===!0&&f>0?(oe=u.slice(0,f),x=u.slice(f)):m===!0?(oe="",x=u):oe=u,oe&&oe!==""&&oe!=="/"&&oe!==u&&n1(oe.charCodeAt(oe.length-1))&&(oe=oe.slice(0,-1)),r.unescape===!0&&(x&&(x=e1.removeBackslashes(x)),oe&&S===!0&&(oe=e1.removeBackslashes(oe)));let A={prefix:ot,input:e,start:l,base:oe,glob:x,isBrace:h,isBracket:p,isGlob:m,isExtglob:g,isGlobstar:b,negated:L,negatedExtglob:W};if(r.tokens===!0&&(A.maxDepth=0,n1(Y)||o.push(te),A.tokens=o),r.parts===!0||r.tokens===!0){let F;for(let C=0;C<s.length;C++){let k=F?F+1:l,G=s[C],q=e.slice(k,G);r.tokens&&(C===0&&l!==0?(o[C].isPrefix=!0,o[C].value=ot):o[C].value=q,i1(o[C]),A.maxDepth+=o[C].depth),(C!==0||q!=="")&&a.push(q),F=G}if(F&&F+1<e.length){let C=e.slice(F+1);a.push(C),r.tokens&&(o[o.length-1].value=C,i1(o[o.length-1]),A.maxDepth+=o[o.length-1].depth)}A.slashes=s,A.parts=a}return A};o1.exports=_O});var l1=y((Gq,c1)=>{"use strict";var jo=gs(),yt=ys(),{MAX_LENGTH:Ho,POSIX_REGEX_SOURCE:bO,REGEX_NON_SPECIAL_CHARS:EO,REGEX_SPECIAL_CHARS_BACKREF:wO,REPLACEMENTS:u1}=jo,vO=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>yt.escapeRegex(i)).join("..")}return r},Vn=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Pl=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=u1[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Ho,r.maxLength):Ho,i=e.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=yt.isWindows(t),c=jo.globChars(u),l=jo.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:p,ONE_CHAR:m,DOTS_SLASH:g,NO_DOT:b,NO_DOT_SLASH:v,NO_DOTS_SLASH:S,QMARK:L,QMARK_NO_DOT:W,STAR:M,START_ANCHOR:J}=c,z=I=>`(${a}(?:(?!${J}${I.dot?g:f}).)*?)`,Y=r.dot?"":b,te=r.dot?L:W,ve=r.bash===!0?z(r):M;r.capture&&(ve=`(${ve})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let R={input:e,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};e=yt.removePrefix(e,R),i=e.length;let ce=[],oe=[],ot=[],x=s,A,F=()=>R.index===i-1,C=R.peek=(I=1)=>e[R.index+I],k=R.advance=()=>e[++R.index]||"",G=()=>e.slice(R.index+1),q=(I="",he=0)=>{R.consumed+=I,R.index+=he},le=I=>{R.output+=I.output!=null?I.output:I.value,q(I.value)},Oe=()=>{let I=1;for(;C()==="!"&&(C(2)!=="("||C(3)==="?");)k(),R.start++,I++;return I%2===0?!1:(R.negated=!0,R.start++,!0)},ae=I=>{R[I]++,ot.push(I)},Ae=I=>{R[I]--,ot.pop()},K=I=>{if(x.type==="globstar"){let he=R.braces>0&&(I.type==="comma"||I.type==="brace"),B=I.extglob===!0||ce.length&&(I.type==="pipe"||I.type==="paren");I.type!=="slash"&&I.type!=="paren"&&!he&&!B&&(R.output=R.output.slice(0,-x.output.length),x.type="star",x.value="*",x.output=ve,R.output+=x.output)}if(ce.length&&I.type!=="paren"&&(ce[ce.length-1].inner+=I.value),(I.value||I.output)&&le(I),x&&x.type==="text"&&I.type==="text"){x.value+=I.value,x.output=(x.output||"")+I.value;return}I.prev=x,o.push(I),x=I},tt=(I,he)=>{let B={...l[he],conditions:1,inner:""};B.prev=x,B.parens=R.parens,B.output=R.output;let d=(r.capture?"(":"")+B.open;ae("parens"),K({type:I,value:he,output:R.output?"":m}),K({type:"paren",extglob:!0,value:k(),output:d}),ce.push(B)},mt=I=>{let he=I.close+(r.capture?")":""),B;if(I.type==="negate"){let d=ve;if(I.inner&&I.inner.length>1&&I.inner.includes("/")&&(d=z(r)),(d!==ve||F()||/^\)+$/.test(G()))&&(he=I.close=`)$))${d}`),I.inner.includes("*")&&(B=G())&&/^\.[^\\/.]+$/.test(B)){let w=Pl(B,{...t,fastpaths:!1}).output;he=I.close=`)${w})${d})`}I.prev.type==="bos"&&(R.negatedExtglob=!0)}K({type:"paren",extglob:!0,value:A,output:he}),Ae("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let I=!1,he=e.replace(wO,(B,d,w,_,O,H)=>_==="\\"?(I=!0,B):_==="?"?d?d+_+(O?L.repeat(O.length):""):H===0?te+(O?L.repeat(O.length):""):L.repeat(w.length):_==="."?f.repeat(w.length):_==="*"?d?d+_+(O?ve:""):ve:d?B:`\\${B}`);return I===!0&&(r.unescape===!0?he=he.replace(/\\/g,""):he=he.replace(/\\+/g,B=>B.length%2===0?"\\\\":B?"\\":"")),he===e&&r.contains===!0?(R.output=e,R):(R.output=yt.wrapOutput(he,R,t),R)}for(;!F();){if(A=k(),A==="\0")continue;if(A==="\\"){let B=C();if(B==="/"&&r.bash!==!0||B==="."||B===";")continue;if(!B){A+="\\",K({type:"text",value:A});continue}let d=/^\\+/.exec(G()),w=0;if(d&&d[0].length>2&&(w=d[0].length,R.index+=w,w%2!==0&&(A+="\\")),r.unescape===!0?A=k():A+=k(),R.brackets===0){K({type:"text",value:A});continue}}if(R.brackets>0&&(A!=="]"||x.value==="["||x.value==="[^")){if(r.posix!==!1&&A===":"){let B=x.value.slice(1);if(B.includes("[")&&(x.posix=!0,B.includes(":"))){let d=x.value.lastIndexOf("["),w=x.value.slice(0,d),_=x.value.slice(d+2),O=bO[_];if(O){x.value=w+O,R.backtrack=!0,k(),!s.output&&o.indexOf(x)===1&&(s.output=m);continue}}}(A==="["&&C()!==":"||A==="-"&&C()==="]")&&(A=`\\${A}`),A==="]"&&(x.value==="["||x.value==="[^")&&(A=`\\${A}`),r.posix===!0&&A==="!"&&x.value==="["&&(A="^"),x.value+=A,le({value:A});continue}if(R.quotes===1&&A!=='"'){A=yt.escapeRegex(A),x.value+=A,le({value:A});continue}if(A==='"'){R.quotes=R.quotes===1?0:1,r.keepQuotes===!0&&K({type:"text",value:A});continue}if(A==="("){ae("parens"),K({type:"paren",value:A});continue}if(A===")"){if(R.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Vn("opening","("));let B=ce[ce.length-1];if(B&&R.parens===B.parens+1){mt(ce.pop());continue}K({type:"paren",value:A,output:R.parens?")":"\\)"}),Ae("parens");continue}if(A==="["){if(r.nobracket===!0||!G().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Vn("closing","]"));A=`\\${A}`}else ae("brackets");K({type:"bracket",value:A});continue}if(A==="]"){if(r.nobracket===!0||x&&x.type==="bracket"&&x.value.length===1){K({type:"text",value:A,output:`\\${A}`});continue}if(R.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Vn("opening","["));K({type:"text",value:A,output:`\\${A}`});continue}Ae("brackets");let B=x.value.slice(1);if(x.posix!==!0&&B[0]==="^"&&!B.includes("/")&&(A=`/${A}`),x.value+=A,le({value:A}),r.literalBrackets===!1||yt.hasRegexChars(B))continue;let d=yt.escapeRegex(x.value);if(R.output=R.output.slice(0,-x.value.length),r.literalBrackets===!0){R.output+=d,x.value=d;continue}x.value=`(${a}${d}|${x.value})`,R.output+=x.value;continue}if(A==="{"&&r.nobrace!==!0){ae("braces");let B={type:"brace",value:A,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};oe.push(B),K(B);continue}if(A==="}"){let B=oe[oe.length-1];if(r.nobrace===!0||!B){K({type:"text",value:A,output:A});continue}let d=")";if(B.dots===!0){let w=o.slice(),_=[];for(let O=w.length-1;O>=0&&(o.pop(),w[O].type!=="brace");O--)w[O].type!=="dots"&&_.unshift(w[O].value);d=vO(_,r),R.backtrack=!0}if(B.comma!==!0&&B.dots!==!0){let w=R.output.slice(0,B.outputIndex),_=R.tokens.slice(B.tokensIndex);B.value=B.output="\\{",A=d="\\}",R.output=w;for(let O of _)R.output+=O.output||O.value}K({type:"brace",value:A,output:d}),Ae("braces"),oe.pop();continue}if(A==="|"){ce.length>0&&ce[ce.length-1].conditions++,K({type:"text",value:A});continue}if(A===","){let B=A,d=oe[oe.length-1];d&&ot[ot.length-1]==="braces"&&(d.comma=!0,B="|"),K({type:"comma",value:A,output:B});continue}if(A==="/"){if(x.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",o.pop(),x=s;continue}K({type:"slash",value:A,output:p});continue}if(A==="."){if(R.braces>0&&x.type==="dot"){x.value==="."&&(x.output=f);let B=oe[oe.length-1];x.type="dots",x.output+=A,x.value+=A,B.dots=!0;continue}if(R.braces+R.parens===0&&x.type!=="bos"&&x.type!=="slash"){K({type:"text",value:A,output:f});continue}K({type:"dot",value:A,output:f});continue}if(A==="?"){if(!(x&&x.value==="(")&&r.noextglob!==!0&&C()==="("&&C(2)!=="?"){tt("qmark",A);continue}if(x&&x.type==="paren"){let d=C(),w=A;if(d==="<"&&!yt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(x.value==="("&&!/[!=<:]/.test(d)||d==="<"&&!/<([!=]|\w+>)/.test(G()))&&(w=`\\${A}`),K({type:"text",value:A,output:w});continue}if(r.dot!==!0&&(x.type==="slash"||x.type==="bos")){K({type:"qmark",value:A,output:W});continue}K({type:"qmark",value:A,output:L});continue}if(A==="!"){if(r.noextglob!==!0&&C()==="("&&(C(2)!=="?"||!/[!=<:]/.test(C(3)))){tt("negate",A);continue}if(r.nonegate!==!0&&R.index===0){Oe();continue}}if(A==="+"){if(r.noextglob!==!0&&C()==="("&&C(2)!=="?"){tt("plus",A);continue}if(x&&x.value==="("||r.regex===!1){K({type:"plus",value:A,output:h});continue}if(x&&(x.type==="bracket"||x.type==="paren"||x.type==="brace")||R.parens>0){K({type:"plus",value:A});continue}K({type:"plus",value:h});continue}if(A==="@"){if(r.noextglob!==!0&&C()==="("&&C(2)!=="?"){K({type:"at",extglob:!0,value:A,output:""});continue}K({type:"text",value:A});continue}if(A!=="*"){(A==="$"||A==="^")&&(A=`\\${A}`);let B=EO.exec(G());B&&(A+=B[0],R.index+=B[0].length),K({type:"text",value:A});continue}if(x&&(x.type==="globstar"||x.star===!0)){x.type="star",x.star=!0,x.value+=A,x.output=ve,R.backtrack=!0,R.globstar=!0,q(A);continue}let I=G();if(r.noextglob!==!0&&/^\([^?]/.test(I)){tt("star",A);continue}if(x.type==="star"){if(r.noglobstar===!0){q(A);continue}let B=x.prev,d=B.prev,w=B.type==="slash"||B.type==="bos",_=d&&(d.type==="star"||d.type==="globstar");if(r.bash===!0&&(!w||I[0]&&I[0]!=="/")){K({type:"star",value:A,output:""});continue}let O=R.braces>0&&(B.type==="comma"||B.type==="brace"),H=ce.length&&(B.type==="pipe"||B.type==="paren");if(!w&&B.type!=="paren"&&!O&&!H){K({type:"star",value:A,output:""});continue}for(;I.slice(0,3)==="/**";){let j=e[R.index+4];if(j&&j!=="/")break;I=I.slice(3),q("/**",3)}if(B.type==="bos"&&F()){x.type="globstar",x.value+=A,x.output=z(r),R.output=x.output,R.globstar=!0,q(A);continue}if(B.type==="slash"&&B.prev.type!=="bos"&&!_&&F()){R.output=R.output.slice(0,-(B.output+x.output).length),B.output=`(?:${B.output}`,x.type="globstar",x.output=z(r)+(r.strictSlashes?")":"|$)"),x.value+=A,R.globstar=!0,R.output+=B.output+x.output,q(A);continue}if(B.type==="slash"&&B.prev.type!=="bos"&&I[0]==="/"){let j=I[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(B.output+x.output).length),B.output=`(?:${B.output}`,x.type="globstar",x.output=`${z(r)}${p}|${p}${j})`,x.value+=A,R.output+=B.output+x.output,R.globstar=!0,q(A+k()),K({type:"slash",value:"/",output:""});continue}if(B.type==="bos"&&I[0]==="/"){x.type="globstar",x.value+=A,x.output=`(?:^|${p}|${z(r)}${p})`,R.output=x.output,R.globstar=!0,q(A+k()),K({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-x.output.length),x.type="globstar",x.output=z(r),x.value+=A,R.output+=x.output,R.globstar=!0,q(A);continue}let he={type:"star",value:A,output:ve};if(r.bash===!0){he.output=".*?",(x.type==="bos"||x.type==="slash")&&(he.output=Y+he.output),K(he);continue}if(x&&(x.type==="bracket"||x.type==="paren")&&r.regex===!0){he.output=A,K(he);continue}(R.index===R.start||x.type==="slash"||x.type==="dot")&&(x.type==="dot"?(R.output+=v,x.output+=v):r.dot===!0?(R.output+=S,x.output+=S):(R.output+=Y,x.output+=Y),C()!=="*"&&(R.output+=m,x.output+=m)),K(he)}for(;R.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Vn("closing","]"));R.output=yt.escapeLast(R.output,"["),Ae("brackets")}for(;R.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Vn("closing",")"));R.output=yt.escapeLast(R.output,"("),Ae("parens")}for(;R.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Vn("closing","}"));R.output=yt.escapeLast(R.output,"{"),Ae("braces")}if(r.strictSlashes!==!0&&(x.type==="star"||x.type==="bracket")&&K({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};Pl.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Ho,r.maxLength):Ho,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=u1[e]||e;let s=yt.isWindows(t),{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}=jo.globChars(s),g=r.dot?f:l,b=r.dot?h:l,v=r.capture?"":"?:",S={negated:!1,prefix:""},L=r.bash===!0?".*?":p;r.capture&&(L=`(${L})`);let W=Y=>Y.noglobstar===!0?L:`(${v}(?:(?!${m}${Y.dot?c:o}).)*?)`,M=Y=>{switch(Y){case"*":return`${g}${u}${L}`;case".*":return`${o}${u}${L}`;case"*.*":return`${g}${L}${o}${u}${L}`;case"*/*":return`${g}${L}${a}${u}${b}${L}`;case"**":return g+W(r);case"**/*":return`(?:${g}${W(r)}${a})?${b}${u}${L}`;case"**/*.*":return`(?:${g}${W(r)}${a})?${b}${L}${o}${u}${L}`;case"**/.*":return`(?:${g}${W(r)}${a})?${o}${u}${L}`;default:{let te=/^(.*?)\.(\w+)$/.exec(Y);if(!te)return;let ve=M(te[1]);return ve?ve+o+te[2]:void 0}}},J=yt.removePrefix(e,S),z=M(J);return z&&r.strictSlashes!==!0&&(z+=`${a}?`),z};c1.exports=Pl});var h1=y((Wq,f1)=>{"use strict";var AO=require("path"),DO=a1(),Bl=l1(),Il=ys(),xO=gs(),CO=e=>e&&typeof e=="object"&&!Array.isArray(e),Ce=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(h=>Ce(h,t,r));return h=>{for(let p of l){let m=p(h);if(m)return m}return!1}}let n=CO(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=Il.isWindows(t),o=n?Ce.compileRe(e,t):Ce.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let l={...t,ignore:null,onMatch:null,onResult:null};u=Ce(i.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:h,match:p,output:m}=Ce.test(l,o,t,{glob:e,posix:s}),g={glob:e,state:a,regex:o,posix:s,input:l,output:m,match:p,isMatch:h};return typeof i.onResult=="function"&&i.onResult(g),h===!1?(g.isMatch=!1,f?g:!1):u(l)?(typeof i.onIgnore=="function"&&i.onIgnore(g),g.isMatch=!1,f?g:!1):(typeof i.onMatch=="function"&&i.onMatch(g),f?g:!0)};return r&&(c.state=a),c};Ce.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?Il.toPosixSlashes:null),a=e===n,u=a&&o?o(e):e;return a===!1&&(u=o?o(e):e,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Ce.matchBase(e,t,r,i):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};Ce.matchBase=(e,t,r,n=Il.isWindows(r))=>(t instanceof RegExp?t:Ce.makeRe(t,r)).test(AO.basename(e));Ce.isMatch=(e,t,r)=>Ce(t,r)(e);Ce.parse=(e,t)=>Array.isArray(e)?e.map(r=>Ce.parse(r,t)):Bl(e,{...t,fastpaths:!1});Ce.scan=(e,t)=>DO(e,t);Ce.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=Ce.toRegex(a,t);return n===!0&&(u.state=e),u};Ce.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=Bl.fastpaths(e,t)),i.output||(i=Bl(e,t)),Ce.compileRe(i,t,r,n)};Ce.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Ce.constants=xO;f1.exports=Ce});var p1=y((zq,d1)=>{"use strict";d1.exports=h1()});var E1=y((Vq,b1)=>{"use strict";var g1=require("util"),y1=Yy(),zt=p1(),Ll=ys(),m1=e=>e===""||e==="./",_1=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},ye=(e,t,r)=>{t=[].concat(t),e=[].concat(e);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<t.length;l++){let f=zt(String(t[l]),{...r,onResult:a},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let p of e){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===t.length?[...s]:[...i]).filter(l=>!n.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(l=>l.replace(/\\/g,"")):t}return c};ye.match=ye;ye.matcher=(e,t)=>zt(e,t);ye.isMatch=(e,t,r)=>zt(t,r)(e);ye.any=ye.isMatch;ye.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(ye(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};ye.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${g1.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>ye.contains(e,n,r));if(typeof t=="string"){if(m1(e)||m1(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return ye.isMatch(e,t,{...r,contains:!0})};ye.matchKeys=(e,t,r)=>{if(!Ll.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=ye(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};ye.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=zt(String(i),r);if(n.some(o=>s(o)))return!0}return!1};ye.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=zt(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};ye.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${g1.inspect(e)}"`);return[].concat(t).every(n=>zt(n,r)(e))};ye.capture=(e,t,r)=>{let n=Ll.isWindows(r),s=zt.makeRe(String(e),{...r,capture:!0}).exec(n?Ll.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ye.makeRe=(...e)=>zt.makeRe(...e);ye.scan=(...e)=>zt.scan(...e);ye.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of y1(String(n),t))r.push(zt.parse(i,t));return r};ye.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!_1(e)?[e]:y1(e,t)};ye.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return ye.braces(e,{...t,expand:!0})};ye.hasBraces=_1;b1.exports=ye});var R1=y(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.matchAny=Z.convertPatternsToRe=Z.makeRe=Z.getPatternParts=Z.expandBraceExpansion=Z.expandPatternsWithBraceExpansion=Z.isAffectDepthOfReadingPattern=Z.endsWithSlashGlobStar=Z.hasGlobStar=Z.getBaseDirectory=Z.isPatternRelatedToParentDirectory=Z.getPatternsOutsideCurrentDirectory=Z.getPatternsInsideCurrentDirectory=Z.getPositivePatterns=Z.getNegativePatterns=Z.isPositivePattern=Z.isNegativePattern=Z.convertToNegativePattern=Z.convertToPositivePattern=Z.isDynamicPattern=Z.isStaticPattern=void 0;var SO=require("path"),RO=hy(),Nl=E1(),w1="**",FO="\\",TO=/[*?]|^!/,OO=/\[[^[]*]/,kO=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,PO=/[!*+?@]\([^(]*\)/,BO=/,|\.\./;function v1(e,t={}){return!A1(e,t)}Z.isStaticPattern=v1;function A1(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(FO)||TO.test(e)||OO.test(e)||kO.test(e)||t.extglob!==!1&&PO.test(e)||t.braceExpansion!==!1&&IO(e))}Z.isDynamicPattern=A1;function IO(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return BO.test(n)}function LO(e){return $o(e)?e.slice(1):e}Z.convertToPositivePattern=LO;function NO(e){return"!"+e}Z.convertToNegativePattern=NO;function $o(e){return e.startsWith("!")&&e[1]!=="("}Z.isNegativePattern=$o;function D1(e){return!$o(e)}Z.isPositivePattern=D1;function MO(e){return e.filter($o)}Z.getNegativePatterns=MO;function qO(e){return e.filter(D1)}Z.getPositivePatterns=qO;function jO(e){return e.filter(t=>!Ml(t))}Z.getPatternsInsideCurrentDirectory=jO;function HO(e){return e.filter(Ml)}Z.getPatternsOutsideCurrentDirectory=HO;function Ml(e){return e.startsWith("..")||e.startsWith("./..")}Z.isPatternRelatedToParentDirectory=Ml;function $O(e){return RO(e,{flipBackslashes:!1})}Z.getBaseDirectory=$O;function UO(e){return e.includes(w1)}Z.hasGlobStar=UO;function x1(e){return e.endsWith("/"+w1)}Z.endsWithSlashGlobStar=x1;function GO(e){let t=SO.basename(e);return x1(e)||v1(t)}Z.isAffectDepthOfReadingPattern=GO;function WO(e){return e.reduce((t,r)=>t.concat(C1(r)),[])}Z.expandPatternsWithBraceExpansion=WO;function C1(e){return Nl.braces(e,{expand:!0,nodupes:!0})}Z.expandBraceExpansion=C1;function zO(e,t){let{parts:r}=Nl.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}Z.getPatternParts=zO;function S1(e,t){return Nl.makeRe(e,t)}Z.makeRe=S1;function VO(e,t){return e.map(r=>S1(r,t))}Z.convertPatternsToRe=VO;function YO(e,t){return t.some(r=>r.test(e))}Z.matchAny=YO});var k1=y((Kq,O1)=>{"use strict";var KO=require("stream"),F1=KO.PassThrough,JO=Array.prototype.slice;O1.exports=XO;function XO(){let e=[],t=JO.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.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=F1(n);function a(){for(let l=0,f=arguments.length;l<f;l++)e.push(T1(arguments[l],n));return u(),this}function u(){if(r)return;r=!0;let l=e.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 g(){m.removeListener("merge2UnpipeEnd",g),m.removeListener("end",g),s&&m.removeListener("error",b),h()}function b(v){o.emit("error",v)}if(m._readableState.endEmitted)return h();m.on("merge2UnpipeEnd",g),m.on("end",g),s&&m.on("error",b),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")}),t.length&&a.apply(null,t),o}function T1(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=T1(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(F1(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var B1=y(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.merge=void 0;var ZO=k1();function QO(e){let t=ZO(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>P1(e)),t.once("end",()=>P1(e)),t}Uo.merge=QO;function P1(e){e.forEach(t=>t.emit("close"))}});var I1=y(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.isEmpty=Yn.isString=void 0;function ek(e){return typeof e=="string"}Yn.isString=ek;function tk(e){return e===""}Yn.isEmpty=tk});var hr=y(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.string=We.stream=We.pattern=We.path=We.fs=We.errno=We.array=void 0;var rk=ry();We.array=rk;var nk=ny();We.errno=nk;var ik=iy();We.fs=ik;var sk=sy();We.path=sk;var ok=R1();We.pattern=ok;var ak=B1();We.stream=ak;var uk=I1();We.string=uk});var M1=y(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.convertPatternGroupToTask=ze.convertPatternGroupsToTasks=ze.groupPatternsByBaseDirectory=ze.getNegativePatternsAsPositive=ze.getPositivePatterns=ze.convertPatternsToTasks=ze.generate=void 0;var dr=hr();function ck(e,t){let r=L1(e),n=N1(e,t.ignore),i=r.filter(u=>dr.pattern.isStaticPattern(u,t)),s=r.filter(u=>dr.pattern.isDynamicPattern(u,t)),o=ql(i,n,!1),a=ql(s,n,!0);return o.concat(a)}ze.generate=ck;function ql(e,t,r){let n=[],i=dr.pattern.getPatternsOutsideCurrentDirectory(e),s=dr.pattern.getPatternsInsideCurrentDirectory(e),o=jl(i),a=jl(s);return n.push(...Hl(o,t,r)),"."in a?n.push($l(".",s,t,r)):n.push(...Hl(a,t,r)),n}ze.convertPatternsToTasks=ql;function L1(e){return dr.pattern.getPositivePatterns(e)}ze.getPositivePatterns=L1;function N1(e,t){return dr.pattern.getNegativePatterns(e).concat(t).map(dr.pattern.convertToPositivePattern)}ze.getNegativePatternsAsPositive=N1;function jl(e){let t={};return e.reduce((r,n)=>{let i=dr.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}ze.groupPatternsByBaseDirectory=jl;function Hl(e,t,r){return Object.keys(e).map(n=>$l(n,e[n],t,r))}ze.convertPatternGroupsToTasks=Hl;function $l(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(dr.pattern.convertToNegativePattern))}}ze.convertPatternGroupToTask=$l});var j1=y(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.removeDuplicateSlashes=Kn.transform=void 0;var lk=/(?!^)\/{2,}/g;function fk(e){return e.map(t=>q1(t))}Kn.transform=fk;function q1(e){return e.replace(lk,"/")}Kn.removeDuplicateSlashes=q1});var $1=y(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.read=void 0;function hk(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){H1(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){Ul(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){H1(r,s);return}Ul(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Ul(r,o)})})}Go.read=hk;function H1(e,t){e(t)}function Ul(e,t){e(null,t)}});var U1=y(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.read=void 0;function dk(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}Wo.read=dk});var G1=y(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.createFileSystemAdapter=Ir.FILE_SYSTEM_ADAPTER=void 0;var zo=require("fs");Ir.FILE_SYSTEM_ADAPTER={lstat:zo.lstat,stat:zo.stat,lstatSync:zo.lstatSync,statSync:zo.statSync};function pk(e){return e===void 0?Ir.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ir.FILE_SYSTEM_ADAPTER),e)}Ir.createFileSystemAdapter=pk});var W1=y(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var mk=G1(),Gl=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=mk.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t!=null?t:r}};Wl.default=Gl});var gn=y(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.statSync=Lr.stat=Lr.Settings=void 0;var z1=$1(),gk=U1(),zl=W1();Lr.Settings=zl.default;function yk(e,t,r){if(typeof t=="function"){z1.read(e,Vl(),t);return}z1.read(e,Vl(t),r)}Lr.stat=yk;function _k(e,t){let r=Vl(t);return gk.read(e,r)}Lr.statSync=_k;function Vl(e={}){return e instanceof zl.default?e:new zl.default(e)}});var K1=y((o7,Y1)=>{var V1;Y1.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):e=>(V1||(V1=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var X1=y((a7,J1)=>{J1.exports=Ek;var bk=K1();function Ek(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(u){function c(){t&&t(u,r),t=null}s?bk(c):c()}function a(u,c,l){r[u]=l,(--n===0||c)&&o(c)}n?i?i.forEach(function(u){e[u](function(c,l){a(u,c,l)})}):e.forEach(function(u,c){u(function(l,f){a(c,l,f)})}):o(null),s=!1}});var Yl=y(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Vo=process.versions.node.split(".");if(Vo[0]===void 0||Vo[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Z1=Number.parseInt(Vo[0],10),wk=Number.parseInt(Vo[1],10),Q1=10,vk=10,Ak=Z1>Q1,Dk=Z1===Q1&&wk>=vk;Yo.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Ak||Dk});var e_=y(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.createDirentFromStats=void 0;var Kl=class{constructor(t,r){this.name=t,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 xk(e,t){return new Kl(e,t)}Ko.createDirentFromStats=xk});var Jl=y(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.fs=void 0;var Ck=e_();Jo.fs=Ck});var Xl=y(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.joinPathSegments=void 0;function Sk(e,t,r){return e.endsWith(r)?e+t:e+r+t}Xo.joinPathSegments=Sk});var o_=y(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.readdir=Nr.readdirWithFileTypes=Nr.read=void 0;var Rk=gn(),t_=X1(),Fk=Yl(),r_=Jl(),n_=Xl();function Tk(e,t,r){if(!t.stats&&Fk.IS_SUPPORT_READDIR_WITH_FILE_TYPES){i_(e,t,r);return}s_(e,t,r)}Nr.read=Tk;function i_(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Zo(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:n_.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Zl(r,s);return}let o=s.map(a=>Ok(a,t));t_(o,(a,u)=>{if(a!==null){Zo(r,a);return}Zl(r,u)})})}Nr.readdirWithFileTypes=i_;function Ok(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=r_.fs.createDirentFromStats(e.name,i),r(null,e)})}}function s_(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Zo(r,n);return}let s=i.map(o=>{let a=n_.joinPathSegments(e,o,t.pathSegmentSeparator);return u=>{Rk.stat(a,t.fsStatSettings,(c,l)=>{if(c!==null){u(c);return}let f={name:o,path:a,dirent:r_.fs.createDirentFromStats(o,l)};t.stats&&(f.stats=l),u(null,f)})}});t_(s,(o,a)=>{if(o!==null){Zo(r,o);return}Zl(r,a)})})}Nr.readdir=s_;function Zo(e,t){e(t)}function Zl(e,t){e(null,t)}});var f_=y(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.readdir=Mr.readdirWithFileTypes=Mr.read=void 0;var kk=gn(),Pk=Yl(),a_=Jl(),u_=Xl();function Bk(e,t){return!t.stats&&Pk.IS_SUPPORT_READDIR_WITH_FILE_TYPES?c_(e,t):l_(e,t)}Mr.read=Bk;function c_(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:u_.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=a_.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}Mr.readdirWithFileTypes=c_;function l_(e,t){return t.fs.readdirSync(e).map(n=>{let i=u_.joinPathSegments(e,n,t.pathSegmentSeparator),s=kk.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:a_.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}Mr.readdir=l_});var h_=y(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.createFileSystemAdapter=qr.FILE_SYSTEM_ADAPTER=void 0;var Jn=require("fs");qr.FILE_SYSTEM_ADAPTER={lstat:Jn.lstat,stat:Jn.stat,lstatSync:Jn.lstatSync,statSync:Jn.statSync,readdir:Jn.readdir,readdirSync:Jn.readdirSync};function Ik(e){return e===void 0?qr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},qr.FILE_SYSTEM_ADAPTER),e)}qr.createFileSystemAdapter=Ik});var d_=y(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});var Lk=require("path"),Nk=gn(),Mk=h_(),Ql=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Mk.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Lk.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Nk.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};ef.default=Ql});var Qo=y(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.Settings=jr.scandirSync=jr.scandir=void 0;var p_=o_(),qk=f_(),tf=d_();jr.Settings=tf.default;function jk(e,t,r){if(typeof t=="function"){p_.read(e,rf(),t);return}p_.read(e,rf(t),r)}jr.scandir=jk;function Hk(e,t){let r=rf(t);return qk.read(e,r)}jr.scandirSync=Hk;function rf(e={}){return e instanceof tf.default?e:new tf.default(e)}});var g_=y((y7,m_)=>{"use strict";function $k(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}m_.exports=$k});var __=y((_7,nf)=>{"use strict";var Uk=g_();function y_(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=Uk(Gk),i=null,s=null,o=0,a=null,u={push:g,drain:Dt,saturated:Dt,pause:l,paused:!1,concurrency:r,running:c,resume:p,idle:m,length:f,getQueue:h,unshift:b,empty:Dt,kill:S,killAndDrain:L,error:W};return u;function c(){return o}function l(){u.paused=!0}function f(){for(var M=i,J=0;M;)M=M.next,J++;return J}function h(){for(var M=i,J=[];M;)J.push(M.value),M=M.next;return J}function p(){if(u.paused){u.paused=!1;for(var M=0;M<u.concurrency;M++)o++,v()}}function m(){return o===0&&u.length()===0}function g(M,J){var z=n.get();z.context=e,z.release=v,z.value=M,z.callback=J||Dt,z.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=z,s=z):(i=z,s=z,u.saturated()):(o++,t.call(e,z.value,z.worked))}function b(M,J){var z=n.get();z.context=e,z.release=v,z.value=M,z.callback=J||Dt,o===u.concurrency||u.paused?i?(z.next=i,i=z):(i=z,s=z,u.saturated()):(o++,t.call(e,z.value,z.worked))}function v(M){M&&n.release(M);var J=i;J?u.paused?o--:(s===i&&(s=null),i=J.next,J.next=null,t.call(e,J.value,J.worked),s===null&&u.empty()):--o===0&&u.drain()}function S(){i=null,s=null,u.drain=Dt}function L(){i=null,s=null,u.drain(),u.drain=Dt}function W(M){a=M}}function Dt(){}function Gk(){this.value=null,this.callback=Dt,this.next=null,this.release=Dt,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=Dt,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function Wk(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(l,f){t.call(this,l).then(function(h){f(null,h)},f)}var i=y_(e,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,g){if(m){p(m);return}h(g)})});return f.catch(Dt),f}function u(l){var f=new Promise(function(h,p){o(l,function(m,g){if(m){p(m);return}h(g)})});return f.catch(Dt),f}function c(){var l=i.drain,f=new Promise(function(h){i.drain=function(){l(),h()}});return f}}nf.exports=y_;nf.exports.promise=Wk});var ea=y(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.joinPathSegments=Vt.replacePathSegmentSeparator=Vt.isAppliedFilter=Vt.isFatalError=void 0;function zk(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Vt.isFatalError=zk;function Vk(e,t){return e===null||e(t)}Vt.isAppliedFilter=Vk;function Yk(e,t){return e.split(/[/\\]/).join(t)}Vt.replacePathSegmentSeparator=Yk;function Kk(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Vt.joinPathSegments=Kk});var af=y(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});var Jk=ea(),sf=class{constructor(t,r){this._root=t,this._settings=r,this._root=Jk.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};of.default=sf});var lf=y(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});var Xk=require("events"),Zk=Qo(),Qk=__(),ta=ea(),eP=af(),uf=class extends eP.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Zk.scandir,this._emitter=new Xk.EventEmitter,this._queue=Qk(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(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!ta.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=ta.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),ta.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&ta.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};cf.default=uf});var b_=y(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});var tP=lf(),ff=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new tP.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{rP(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{nP(t,this._storage)}),this._reader.read()}};hf.default=ff;function rP(e,t){e(t)}function nP(e,t){e(null,t)}});var E_=y(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});var iP=require("stream"),sP=lf(),df=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new sP.default(this._root,this._settings),this._stream=new iP.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};pf.default=df});var w_=y(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});var oP=Qo(),ra=ea(),aP=af(),mf=class extends aP.default{constructor(){super(...arguments),this._scandir=oP.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(ra.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=ra.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),ra.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&ra.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};gf.default=mf});var v_=y(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});var uP=w_(),yf=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new uP.default(this._root,this._settings)}read(){return this._reader.read()}};_f.default=yf});var A_=y(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});var cP=require("path"),lP=Qo(),bf=class{constructor(t={}){this._options=t,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,cP.sep),this.fsScandirSettings=new lP.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};Ef.default=bf});var ia=y(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.Settings=Yt.walkStream=Yt.walkSync=Yt.walk=void 0;var D_=b_(),fP=E_(),hP=v_(),wf=A_();Yt.Settings=wf.default;function dP(e,t,r){if(typeof t=="function"){new D_.default(e,na()).read(t);return}new D_.default(e,na(t)).read(r)}Yt.walk=dP;function pP(e,t){let r=na(t);return new hP.default(e,r).read()}Yt.walkSync=pP;function mP(e,t){let r=na(t);return new fP.default(e,r).read()}Yt.walkStream=mP;function na(e={}){return e instanceof wf.default?e:new wf.default(e)}});var sa=y(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});var gP=require("path"),yP=gn(),x_=hr(),vf=class{constructor(t){this._settings=t,this._fsStatSettings=new yP.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return gP.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:x_.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!x_.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Af.default=vf});var Cf=y(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});var _P=require("stream"),bP=gn(),EP=ia(),wP=sa(),Df=class extends wP.default{constructor(){super(...arguments),this._walkStream=EP.walkStream,this._stat=bP.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new _P.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[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(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};xf.default=Df});var C_=y(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});var vP=ia(),AP=sa(),DP=Cf(),Sf=class extends AP.default{constructor(){super(...arguments),this._walkAsync=vP.walk,this._readerStream=new DP.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Rf.default=Sf});var S_=y(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});var Xn=hr(),Ff=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=Xn.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of t){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(t){return Xn.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Xn.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Xn.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Xn.array.splitWhen(t,r=>r.dynamic&&Xn.pattern.hasGlobStar(r.pattern))}};Tf.default=Ff});var R_=y(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});var xP=S_(),Of=class extends xP.default{match(t){let r=t.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}};kf.default=Of});var F_=y(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var oa=hr(),CP=R_(),Pf=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new CP.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(oa.pattern.isAffectDepthOfReadingPattern);return oa.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=oa.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!oa.pattern.matchAny(t,r)}};Bf.default=Pf});var T_=y(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var yn=hr(),If=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=yn.pattern.convertPatternsToRe(t,this._micromatchOptions),i=yn.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=t.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(t.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(t),o}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=yn.path.makeAbsolute(this._settings.cwd,t);return yn.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let i=yn.path.removeLeadingDotSegment(t),s=yn.pattern.matchAny(i,r);return!s&&n?yn.pattern.matchAny(i+"/",r):s}};Lf.default=If});var O_=y(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});var SP=hr(),Nf=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return SP.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Mf.default=Nf});var P_=y(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});var k_=hr(),qf=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=k_.path.makeAbsolute(this._settings.cwd,r),r=k_.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};jf.default=qf});var aa=y($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var RP=require("path"),FP=F_(),TP=T_(),OP=O_(),kP=P_(),Hf=class{constructor(t){this._settings=t,this.errorFilter=new OP.default(this._settings),this.entryFilter=new TP.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new FP.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new kP.default(this._settings)}_getRootDirectory(t){return RP.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.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}}};$f.default=Hf});var B_=y(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var PP=C_(),BP=aa(),Uf=class extends BP.default{constructor(){super(...arguments),this._reader=new PP.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Gf.default=Uf});var I_=y(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});var IP=require("stream"),LP=Cf(),NP=aa(),Wf=class extends NP.default{constructor(){super(...arguments),this._reader=new LP.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new IP.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(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};zf.default=Wf});var L_=y(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});var MP=gn(),qP=ia(),jP=sa(),Vf=class extends jP.default{constructor(){super(...arguments),this._walkSync=qP.walkSync,this._statSync=MP.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Yf.default=Vf});var N_=y(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var HP=L_(),$P=aa(),Kf=class extends $P.default{constructor(){super(...arguments),this._reader=new HP.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Jf.default=Kf});var M_=y(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Zn=require("fs"),UP=require("os"),GP=Math.max(UP.cpus().length,1);Qn.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Zn.lstat,lstatSync:Zn.lstatSync,stat:Zn.stat,statSync:Zn.statSync,readdir:Zn.readdir,readdirSync:Zn.readdirSync};var Xf=class{constructor(t={}){this._options=t,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(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},Qn.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};Qn.default=Xf});var $_=y((U7,H_)=>{"use strict";var q_=M1(),j_=j1(),WP=B_(),zP=I_(),VP=N_(),Zf=M_(),_n=hr();async function Qf(e,t){ei(e);let r=eh(e,WP.default,t),n=await Promise.all(r);return _n.array.flatten(n)}(function(e){function t(o,a){ei(o);let u=eh(o,VP.default,a);return _n.array.flatten(u)}e.sync=t;function r(o,a){ei(o);let u=eh(o,zP.default,a);return _n.stream.merge(u)}e.stream=r;function n(o,a){ei(o);let u=j_.transform([].concat(o)),c=new Zf.default(a);return q_.generate(u,c)}e.generateTasks=n;function i(o,a){ei(o);let u=new Zf.default(a);return _n.pattern.isDynamicPattern(o,u)}e.isDynamicPattern=i;function s(o){return ei(o),_n.path.escape(o)}e.escapePath=s})(Qf||(Qf={}));function eh(e,t,r){let n=j_.transform([].concat(e)),i=new Zf.default(r),s=q_.generate(n,i),o=new t(i);return s.map(o.read,o)}function ei(e){if(![].concat(e).every(n=>_n.string.isString(n)&&!_n.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}H_.exports=Qf});var G_=y((G7,U_)=>{"use strict";U_.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var th=y((W7,z_)=>{var bs=G_(),W_={};for(let e of Object.keys(bs))W_[bs[e]]=e;var $={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"]}};z_.exports=$;for(let e of Object.keys($)){if(!("channels"in $[e]))throw new Error("missing channels property: "+e);if(!("labels"in $[e]))throw new Error("missing channel labels property: "+e);if($[e].labels.length!==$[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=$[e];delete $[e].channels,delete $[e].labels,Object.defineProperty($[e],"channels",{value:t}),Object.defineProperty($[e],"labels",{value:r})}$.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,u;s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let c=(i+s)/2;return s===i?u=0:c<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,c*100]};$.rgb.hsv=function(e){let t,r,n,i,s,o=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(o,a,u),l=c-Math.min(o,a,u),f=function(h){return(c-h)/6/l+1/2};return l===0?(i=0,s=0):(s=l/c,t=f(o),r=f(a),n=f(u),o===c?i=n-r:a===c?i=1/3+t-n:u===c&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};$.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=$.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};$.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),s=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function YP(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}$.rgb.keyword=function(e){let t=W_[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(bs)){let s=bs[i],o=YP(e,s);o<r&&(r=o,n=i)}return n};$.keyword.rgb=function(e){return bs[e]};$.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};$.rgb.lab=function(e){let t=$.rgb.xyz(e),r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};$.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let c=0;c<3;c++)s=t+1/3*-(c-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,u[c]=o*255;return u};$.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[t,a*100,o*100]};$.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};$.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[t,s*100,o*100]};$.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*t),a=1-n;s=6*t-o,o&1&&(s=1-s);let u=r+s*(a-r),c,l,f;switch(o){default:case 6:case 0:c=a,l=u,f=r;break;case 1:c=u,l=a,f=r;break;case 2:c=r,l=a,f=u;break;case 3:c=r,l=u,f=a;break;case 4:c=u,l=r,f=a;break;case 5:c=a,l=r,f=u;break}return[c*255,l*255,f*255]};$.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};$.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};$.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(t-r),o=200*(r-n);return[i,s,o]};$.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,c=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};$.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[t,o,i]};$.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[t,s,o]};$.rgb.ansi16=function(e,t=null){let[r,n,i]=e,s=t===null?$.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};$.hsv.ansi16=function(e){return $.rgb.ansi16($.hsv.rgb(e),e[2])};$.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};$.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};$.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};$.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};$.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};$.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===t?u=(r-n)/o%6:i===r?u=2+(n-t)/o:u=4+(t-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};$.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};$.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};$.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=t%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};$.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};$.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};$.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};$.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};$.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};$.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};$.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};$.gray.hsl=function(e){return[0,0,e[0]]};$.gray.hsv=$.gray.hsl;$.gray.hwb=function(e){return[0,100,e[0]]};$.gray.cmyk=function(e){return[0,0,0,e[0]]};$.gray.lab=function(e){return[e[0],0,0]};$.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};$.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Y_=y((z7,V_)=>{var ua=th();function KP(){let e={},t=Object.keys(ua);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function JP(e){let t=KP(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(ua[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],u=t[a];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(a))}}return t}function XP(e,t){return function(r){return t(e(r))}}function ZP(e,t){let r=[t[e].parent,e],n=ua[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=XP(ua[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}V_.exports=function(e){let t=JP(e),r={},n=Object.keys(t);for(let i=n.length,s=0;s<i;s++){let o=n[s];t[o].parent!==null&&(r[o]=ZP(o,t))}return r}});var J_=y((V7,K_)=>{var rh=th(),QP=Y_(),ti={},e3=Object.keys(rh);function t3(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function r3(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=e(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}e3.forEach(e=>{ti[e]={},Object.defineProperty(ti[e],"channels",{value:rh[e].channels}),Object.defineProperty(ti[e],"labels",{value:rh[e].labels});let t=QP(e);Object.keys(t).forEach(n=>{let i=t[n];ti[e][n]=r3(i),ti[e][n].raw=t3(i)})});K_.exports=ti});var ih=y((Y7,tb)=>{"use strict";var X_=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,Z_=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},Q_=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},ca=e=>e,eb=(e,t,r)=>[e,t,r],ri=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},nh,ni=(e,t,r,n)=>{nh===void 0&&(nh=J_());let i=n?10:0,s={};for(let[o,a]of Object.entries(nh)){let u=o==="ansi16"?"ansi":o;o===t?s[u]=e(r,i):typeof a=="object"&&(s[u]=e(a[t],i))}return s};function n3(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,s]of Object.entries(n))t[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=t[i],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",ri(t.color,"ansi",()=>ni(X_,"ansi16",ca,!1)),ri(t.color,"ansi256",()=>ni(Z_,"ansi256",ca,!1)),ri(t.color,"ansi16m",()=>ni(Q_,"rgb",eb,!1)),ri(t.bgColor,"ansi",()=>ni(X_,"ansi16",ca,!0)),ri(t.bgColor,"ansi256",()=>ni(Z_,"ansi256",ca,!0)),ri(t.bgColor,"ansi16m",()=>ni(Q_,"rgb",eb,!0)),t}Object.defineProperty(tb,"exports",{enumerable:!0,get:n3})});var nb=y((K7,rb)=>{"use strict";rb.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var ah=y((J7,sb)=>{"use strict";var i3=require("os"),ib=require("tty"),xt=nb(),{env:Ie}=process,Hr;xt("no-color")||xt("no-colors")||xt("color=false")||xt("color=never")?Hr=0:(xt("color")||xt("colors")||xt("color=true")||xt("color=always"))&&(Hr=1);"FORCE_COLOR"in Ie&&(Ie.FORCE_COLOR==="true"?Hr=1:Ie.FORCE_COLOR==="false"?Hr=0:Hr=Ie.FORCE_COLOR.length===0?1:Math.min(parseInt(Ie.FORCE_COLOR,10),3));function sh(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function oh(e,t){if(Hr===0)return 0;if(xt("color=16m")||xt("color=full")||xt("color=truecolor"))return 3;if(xt("color=256"))return 2;if(e&&!t&&Hr===void 0)return 0;let r=Hr||0;if(Ie.TERM==="dumb")return r;if(process.platform==="win32"){let n=i3.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Ie)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Ie)||Ie.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Ie)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ie.TEAMCITY_VERSION)?1:0;if(Ie.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ie){let n=parseInt((Ie.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ie.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ie.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ie.TERM)||"COLORTERM"in Ie?1:r}function s3(e){let t=oh(e,e&&e.isTTY);return sh(t)}sb.exports={supportsColor:s3,stdout:sh(oh(!0,ib.isatty(1))),stderr:sh(oh(!0,ib.isatty(2)))}});var ab=y((X7,ob)=>{"use strict";var o3=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.substr(s),o},a3=(e,t,r,n)=>{let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
|
|
2
|
+
"use strict";var ZA=Object.create;var ba=Object.defineProperty;var JA=Object.getOwnPropertyDescriptor;var QA=Object.getOwnPropertyNames;var ev=Object.getPrototypeOf,tv=Object.prototype.hasOwnProperty;var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),rv=(e,t)=>{for(var r in t)ba(e,r,{get:t[r],enumerable:!0})},nv=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of QA(t))!tv.call(e,i)&&i!==r&&ba(e,i,{get:()=>t[i],enumerable:!(n=JA(t,i))||n.enumerable});return e};var Y=(e,t,r)=>(r=e!=null?ZA(ev(e)):{},nv(t||!e||!e.__esModule?ba(r,"default",{value:e,enumerable:!0}):r,e));var Qp=g((qP,Ut)=>{function _a(e){return Ut.exports=_a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ut.exports.__esModule=!0,Ut.exports.default=Ut.exports,_a(e)}Ut.exports=_a,Ut.exports.__esModule=!0,Ut.exports.default=Ut.exports});var r0=g((jP,Wt)=>{var e0=Qp().default;function t0(){"use strict";Wt.exports=t0=function(){return t},Wt.exports.__esModule=!0,Wt.exports.default=Wt.exports;var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(b,C,x){b[C]=x.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",a=s.toStringTag||"@@toStringTag";function c(b,C,x){return Object.defineProperty(b,C,{value:x,enumerable:!0,configurable:!0,writable:!0}),b[C]}try{c({},"")}catch{c=function(x,O,$){return x[O]=$}}function l(b,C,x,O){var $=C&&C.prototype instanceof A?C:A,P=Object.create($.prototype),oe=new Xe(O||[]);return i(P,"_invoke",{value:ge(b,x,oe)}),P}function f(b,C,x){try{return{type:"normal",arg:b.call(C,x)}}catch(O){return{type:"throw",arg:O}}}t.wrap=l;var p="suspendedStart",_="suspendedYield",E="executing",m="completed",D={};function A(){}function R(){}function M(){}var W={};c(W,o,function(){return this});var L=Object.getPrototypeOf,X=L&&L(L(v([])));X&&X!==r&&n.call(X,o)&&(W=X);var G=M.prototype=A.prototype=Object.create(W);function U(b){["next","throw","return"].forEach(function(C){c(b,C,function(x){return this._invoke(C,x)})})}function J(b,C){function x($,P,oe,xe){var ne=f(b[$],b,P);if(ne.type!=="throw"){var ye=ne.arg,z=ye.value;return z&&e0(z)=="object"&&n.call(z,"__await")?C.resolve(z.__await).then(function(ze){x("next",ze,oe,xe)},function(ze){x("throw",ze,oe,xe)}):C.resolve(z).then(function(ze){ye.value=ze,oe(ye)},function(ze){return x("throw",ze,oe,xe)})}xe(ne.arg)}var O;i(this,"_invoke",{value:function(P,oe){function xe(){return new C(function(ne,ye){x(P,oe,ne,ye)})}return O=O?O.then(xe,xe):xe()}})}function ge(b,C,x){var O=p;return function($,P){if(O===E)throw new Error("Generator is already running");if(O===m){if($==="throw")throw P;return{value:e,done:!0}}for(x.method=$,x.arg=P;;){var oe=x.delegate;if(oe){var xe=w(oe,x);if(xe){if(xe===D)continue;return xe}}if(x.method==="next")x.sent=x._sent=x.arg;else if(x.method==="throw"){if(O===p)throw O=m,x.arg;x.dispatchException(x.arg)}else x.method==="return"&&x.abrupt("return",x.arg);O=E;var ne=f(b,C,x);if(ne.type==="normal"){if(O=x.done?m:_,ne.arg===D)continue;return{value:ne.arg,done:x.done}}ne.type==="throw"&&(O=m,x.method="throw",x.arg=ne.arg)}}}function w(b,C){var x=C.method,O=b.iterator[x];if(O===e)return C.delegate=null,x==="throw"&&b.iterator.return&&(C.method="return",C.arg=e,w(b,C),C.method==="throw")||x!=="return"&&(C.method="throw",C.arg=new TypeError("The iterator does not provide a '"+x+"' method")),D;var $=f(O,b.iterator,C.arg);if($.type==="throw")return C.method="throw",C.arg=$.arg,C.delegate=null,D;var P=$.arg;return P?P.done?(C[b.resultName]=P.value,C.next=b.nextLoc,C.method!=="return"&&(C.method="next",C.arg=e),C.delegate=null,D):P:(C.method="throw",C.arg=new TypeError("iterator result is not an object"),C.delegate=null,D)}function se(b){var C={tryLoc:b[0]};1 in b&&(C.catchLoc=b[1]),2 in b&&(C.finallyLoc=b[2],C.afterLoc=b[3]),this.tryEntries.push(C)}function re(b){var C=b.completion||{};C.type="normal",delete C.arg,b.completion=C}function Xe(b){this.tryEntries=[{tryLoc:"root"}],b.forEach(se,this),this.reset(!0)}function v(b){if(b||b===""){var C=b[o];if(C)return C.call(b);if(typeof b.next=="function")return b;if(!isNaN(b.length)){var x=-1,O=function $(){for(;++x<b.length;)if(n.call(b,x))return $.value=b[x],$.done=!1,$;return $.value=e,$.done=!0,$};return O.next=O}}throw new TypeError(e0(b)+" is not iterable")}return R.prototype=M,i(G,"constructor",{value:M,configurable:!0}),i(M,"constructor",{value:R,configurable:!0}),R.displayName=c(M,a,"GeneratorFunction"),t.isGeneratorFunction=function(b){var C=typeof b=="function"&&b.constructor;return!!C&&(C===R||(C.displayName||C.name)==="GeneratorFunction")},t.mark=function(b){return Object.setPrototypeOf?Object.setPrototypeOf(b,M):(b.__proto__=M,c(b,a,"GeneratorFunction")),b.prototype=Object.create(G),b},t.awrap=function(b){return{__await:b}},U(J.prototype),c(J.prototype,u,function(){return this}),t.AsyncIterator=J,t.async=function(b,C,x,O,$){$===void 0&&($=Promise);var P=new J(l(b,C,x,O),$);return t.isGeneratorFunction(C)?P:P.next().then(function(oe){return oe.done?oe.value:P.next()})},U(G),c(G,a,"Generator"),c(G,o,function(){return this}),c(G,"toString",function(){return"[object Generator]"}),t.keys=function(b){var C=Object(b),x=[];for(var O in C)x.push(O);return x.reverse(),function $(){for(;x.length;){var P=x.pop();if(P in C)return $.value=P,$.done=!1,$}return $.done=!0,$}},t.values=v,Xe.prototype={constructor:Xe,reset:function(C){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(re),!C)for(var x in this)x.charAt(0)==="t"&&n.call(this,x)&&!isNaN(+x.slice(1))&&(this[x]=e)},stop:function(){this.done=!0;var C=this.tryEntries[0].completion;if(C.type==="throw")throw C.arg;return this.rval},dispatchException:function(C){if(this.done)throw C;var x=this;function O(ye,z){return oe.type="throw",oe.arg=C,x.next=ye,z&&(x.method="next",x.arg=e),!!z}for(var $=this.tryEntries.length-1;$>=0;--$){var P=this.tryEntries[$],oe=P.completion;if(P.tryLoc==="root")return O("end");if(P.tryLoc<=this.prev){var xe=n.call(P,"catchLoc"),ne=n.call(P,"finallyLoc");if(xe&&ne){if(this.prev<P.catchLoc)return O(P.catchLoc,!0);if(this.prev<P.finallyLoc)return O(P.finallyLoc)}else if(xe){if(this.prev<P.catchLoc)return O(P.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<P.finallyLoc)return O(P.finallyLoc)}}}},abrupt:function(C,x){for(var O=this.tryEntries.length-1;O>=0;--O){var $=this.tryEntries[O];if($.tryLoc<=this.prev&&n.call($,"finallyLoc")&&this.prev<$.finallyLoc){var P=$;break}}P&&(C==="break"||C==="continue")&&P.tryLoc<=x&&x<=P.finallyLoc&&(P=null);var oe=P?P.completion:{};return oe.type=C,oe.arg=x,P?(this.method="next",this.next=P.finallyLoc,D):this.complete(oe)},complete:function(C,x){if(C.type==="throw")throw C.arg;return C.type==="break"||C.type==="continue"?this.next=C.arg:C.type==="return"?(this.rval=this.arg=C.arg,this.method="return",this.next="end"):C.type==="normal"&&x&&(this.next=x),D},finish:function(C){for(var x=this.tryEntries.length-1;x>=0;--x){var O=this.tryEntries[x];if(O.finallyLoc===C)return this.complete(O.completion,O.afterLoc),re(O),D}},catch:function(C){for(var x=this.tryEntries.length-1;x>=0;--x){var O=this.tryEntries[x];if(O.tryLoc===C){var $=O.completion;if($.type==="throw"){var P=$.arg;re(O)}return P}}throw new Error("illegal catch attempt")},delegateYield:function(C,x,O){return this.delegate={iterator:v(C),resultName:x,nextLoc:O},this.method==="next"&&(this.arg=e),D}},t}Wt.exports=t0,Wt.exports.__esModule=!0,Wt.exports.default=Wt.exports});var i0=g(($P,n0)=>{var Cs=r0()();n0.exports=Cs;try{regeneratorRuntime=Cs}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Cs:Function("r","regeneratorRuntime = r")(Cs)}});var o0=g((c8,Sa)=>{"use strict";var s0=(e,...t)=>new Promise(r=>{r(e(...t))});Sa.exports=s0;Sa.exports.default=s0});var a0=g((l8,Fa)=>{"use strict";var iv=o0(),u0=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let t=[],r=0,n=()=>{r--,t.length>0&&t.shift()()},i=(u,a,...c)=>{r++;let l=iv(u,...c);a(l),l.then(n,n)},s=(u,a,...c)=>{r<e?i(u,a,...c):t.push(i.bind(null,u,a,...c))},o=(u,...a)=>new Promise(c=>s(u,c,...a));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),o};Fa.exports=u0;Fa.exports.default=u0});var f0=g((f8,Ra)=>{"use strict";var c0=a0(),Ss=class extends Error{constructor(t){super(),this.value=t}},sv=async(e,t)=>t(await e),ov=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new Ss(t[0]);return!1},l0=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=c0(r.concurrency),i=[...e].map(o=>[o,n(sv,o,t)]),s=c0(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(ov,o)))}catch(o){if(o instanceof Ss)return o.value;throw o}};Ra.exports=l0;Ra.exports.default=l0});var y0=g((h8,Oa)=>{"use strict";var h0=require("path"),Fs=require("fs"),{promisify:p0}=require("util"),uv=f0(),av=p0(Fs.stat),cv=p0(Fs.lstat),d0={directory:"isDirectory",file:"isFile"};function m0({type:e}){if(!(e in d0))throw new Error(`Invalid type specified: ${e}`)}var g0=(e,t)=>e===void 0||t[d0[e]]();Oa.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},m0(t);let r=t.allowSymlinks?av:cv;return uv(e,async n=>{try{let i=await r(h0.resolve(t.cwd,n));return g0(t.type,i)}catch{return!1}},t)};Oa.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},m0(t);let r=t.allowSymlinks?Fs.statSync:Fs.lstatSync;for(let n of e)try{let i=r(h0.resolve(t.cwd,n));if(g0(t.type,i))return n}catch{}}});var b0=g((p8,Ta)=>{"use strict";var E0=require("fs"),{promisify:lv}=require("util"),fv=lv(E0.access);Ta.exports=async e=>{try{return await fv(e),!0}catch{return!1}};Ta.exports.sync=e=>{try{return E0.accessSync(e),!0}catch{return!1}}});var D0=g((d8,yn)=>{"use strict";var dr=require("path"),Rs=y0(),_0=b0(),ka=Symbol("findUp.stop");yn.exports=async(e,t={})=>{let r=dr.resolve(t.cwd||""),{root:n}=dr.parse(r),i=[].concat(e),s=async o=>{if(typeof e!="function")return Rs(i,o);let u=await e(o.cwd);return typeof u=="string"?Rs([u],o):u};for(;;){let o=await s({...t,cwd:r});if(o===ka)return;if(o)return dr.resolve(r,o);if(r===n)return;r=dr.dirname(r)}};yn.exports.sync=(e,t={})=>{let r=dr.resolve(t.cwd||""),{root:n}=dr.parse(r),i=[].concat(e),s=o=>{if(typeof e!="function")return Rs.sync(i,o);let u=e(o.cwd);return typeof u=="string"?Rs.sync([u],o):u};for(;;){let o=s({...t,cwd:r});if(o===ka)return;if(o)return dr.resolve(r,o);if(r===n)return;r=dr.dirname(r)}};yn.exports.exists=_0;yn.exports.sync.exists=_0.sync;yn.exports.stop=ka});var Rd=g(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.splitWhen=An.flatten=void 0;function Xw(e){return e.reduce((t,r)=>[].concat(t,r),[])}An.flatten=Xw;function Zw(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}An.splitWhen=Zw});var Od=g(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.isEnoentCodeError=void 0;function Jw(e){return e.code==="ENOENT"}Hs.isEnoentCodeError=Jw});var Td=g(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.createDirentFromStats=void 0;var rc=class{constructor(t,r){this.name=t,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 Qw(e,t){return new rc(e,t)}Gs.createDirentFromStats=Qw});var kd=g(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.removeLeadingDotSegment=Ot.escape=Ot.makeAbsolute=Ot.unixify=void 0;var eC=require("path"),tC=2,rC=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function nC(e){return e.replace(/\\/g,"/")}Ot.unixify=nC;function iC(e,t){return eC.resolve(e,t)}Ot.makeAbsolute=iC;function sC(e){return e.replace(rC,"\\$2")}Ot.escape=sC;function oC(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(tC)}return e}Ot.removeLeadingDotSegment=oC});var Pd=g((P8,Bd)=>{Bd.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var Nd=g((I8,Ld)=>{var uC=Pd(),Id={"{":"}","(":")","[":"]"},aC=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var u=e[t+1];t+=2;var a=Id[u];if(a){var c=e.indexOf(a,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},cC=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=Id[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};Ld.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(uC(t))return!0;var n=aC;return r&&r.strict===!1&&(n=cC),n(t)}});var qd=g((L8,Md)=>{"use strict";var lC=Nd(),fC=require("path").posix.dirname,hC=require("os").platform()==="win32",nc="/",pC=/\\/g,dC=/[\{\[].*[\}\]]$/,mC=/(^|[^\\])([\{\[]|\([^\)]+$)/,gC=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Md.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&hC&&t.indexOf(nc)<0&&(t=t.replace(pC,nc)),dC.test(t)&&(t+=nc),t+="a";do t=fC(t);while(lC(t)||mC.test(t));return t.replace(gC,"$1")}});var Us=g(dt=>{"use strict";dt.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;dt.find=(e,t)=>e.nodes.find(r=>r.type===t);dt.exceedsLimit=(e,t,r=1,n)=>n===!1||!dt.isInteger(e)||!dt.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;dt.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};dt.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);dt.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;dt.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;dt.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);dt.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];if(Array.isArray(s)){r(s);continue}s!==void 0&&t.push(s)}return t};return r(e),t}});var Ws=g((M8,$d)=>{"use strict";var jd=Us();$d.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&jd.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,u="";if(n.value)return(s||o)&&jd.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let a of n.nodes)u+=r(a);return u};return r(e)}});var Gd=g((q8,Hd)=>{"use strict";Hd.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Jd=g((j8,Zd)=>{"use strict";var Ud=Gd(),zr=(e,t,r)=>{if(Ud(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Ud(t)===!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),u=String(n.wrap),a=e+":"+t+"="+i+s+o+u;if(zr.cache.hasOwnProperty(a))return zr.cache[a].result;let c=Math.min(e,t),l=Math.max(e,t);if(Math.abs(c-l)===1){let m=e+"|"+t;return n.capture?`(${m})`:n.wrap===!1?m:`(?:${m})`}let f=Xd(e)||Xd(t),p={min:e,max:t,a:c,b:l},_=[],E=[];if(f&&(p.isPadded=f,p.maxLen=String(p.max).length),c<0){let m=l<0?Math.abs(l):1;E=Wd(m,Math.abs(c),p,n),c=p.a=0}return l>=0&&(_=Wd(c,l,p,n)),p.negatives=E,p.positives=_,p.result=yC(E,_,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&_.length+E.length>1&&(p.result=`(?:${p.result})`),zr.cache[a]=p,p.result};function yC(e,t,r){let n=ic(e,t,"-",!1,r)||[],i=ic(t,e,"",!1,r)||[],s=ic(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function EC(e,t){let r=1,n=1,i=Yd(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=Yd(e,r);for(i=Vd(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=Vd(t+1,n)-1;return s=[...s],s.sort(DC),s}function bC(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=_C(e,t),i=n.length,s="",o=0;for(let u=0;u<i;u++){let[a,c]=n[u];a===c?s+=a:a!=="0"||c!=="9"?s+=AC(a,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function Wd(e,t,r,n){let i=EC(e,t),s=[],o=e,u;for(let a=0;a<i.length;a++){let c=i[a],l=bC(String(o),String(c),n),f="";if(!r.isPadded&&u&&u.pattern===l.pattern){u.count.length>1&&u.count.pop(),u.count.push(l.count[0]),u.string=u.pattern+Kd(u.count),o=c+1;continue}r.isPadded&&(f=vC(c,r,n)),l.string=f+l.pattern+Kd(l.count),s.push(l),o=c+1,u=l}return s}function ic(e,t,r,n,i){let s=[];for(let o of e){let{string:u}=o;!n&&!zd(t,"string",u)&&s.push(r+u),n&&zd(t,"string",u)&&s.push(r+u)}return s}function _C(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function DC(e,t){return e>t?1:t>e?-1:0}function zd(e,t,r){return e.some(n=>n[t]===r)}function Yd(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Vd(e,t){return e-e%Math.pow(10,t)}function Kd(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function AC(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Xd(e){return/^-?(0+)\d/.test(e)}function vC(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).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}}`}}zr.cache={};zr.clearCache=()=>zr.cache={};Zd.exports=zr});var uc=g(($8,sm)=>{"use strict";var xC=require("util"),em=Jd(),Qd=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),wC=e=>t=>e===!0?Number(t):String(t),sc=e=>typeof e=="number"||typeof e=="string"&&e!=="",Li=e=>Number.isInteger(+e),oc=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},CC=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,SC=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},Ys=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},FC=(e,t,r)=>{e.negatives.sort((u,a)=>u<a?-1:u>a?1:0),e.positives.sort((u,a)=>u<a?-1:u>a?1:0);let n=t.capture?"":"?:",i="",s="",o;return e.positives.length&&(i=e.positives.map(u=>Ys(String(u),r)).join("|")),e.negatives.length&&(s=`-(${n}${e.negatives.map(u=>Ys(String(u),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,t.wrap?`(${n}${o})`:o},tm=(e,t,r,n)=>{if(r)return em(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},rm=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return em(e,t,r)},nm=(...e)=>new RangeError("Invalid range arguments: "+xC.inspect(...e)),im=(e,t,r)=>{if(r.strictRanges===!0)throw nm([e,t]);return[]},RC=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},OC=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw nm([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,u=String(e),a=String(t),c=String(r);r=Math.max(Math.abs(r),1);let l=oc(u)||oc(a)||oc(c),f=l?Math.max(u.length,a.length,c.length):0,p=l===!1&&CC(e,t,n)===!1,_=n.transform||wC(p);if(n.toRegex&&r===1)return tm(Ys(e,f),Ys(t,f),!0,n);let E={negatives:[],positives:[]},m=R=>E[R<0?"negatives":"positives"].push(Math.abs(R)),D=[],A=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?m(i):D.push(SC(_(i,A),f,p)),i=o?i-r:i+r,A++;return n.toRegex===!0?r>1?FC(E,n,f):rm(D,null,{wrap:!1,...n}):D},TC=(e,t,r=1,n={})=>{if(!Li(e)&&e.length>1||!Li(t)&&t.length>1)return im(e,t,n);let i=n.transform||(p=>String.fromCharCode(p)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),u=s>o,a=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return tm(a,c,!1,n);let l=[],f=0;for(;u?s>=o:s<=o;)l.push(i(s,f)),s=u?s-r:s+r,f++;return n.toRegex===!0?rm(l,null,{wrap:!1,options:n}):l},zs=(e,t,r,n={})=>{if(t==null&&sc(e))return[e];if(!sc(e)||!sc(t))return im(e,t,n);if(typeof r=="function")return zs(e,t,1,{transform:r});if(Qd(r))return zs(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Li(r)?Li(e)&&Li(t)?OC(e,t,r,i):TC(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Qd(r)?RC(r,i):zs(e,t,1,r)};sm.exports=zs});var am=g((H8,um)=>{"use strict";var kC=uc(),om=Us(),BC=(e,t={})=>{let r=(n,i={})=>{let s=om.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,u=s===!0||o===!0,a=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0)return a+n.value;if(n.isClose===!0)return console.log("node.isClose",a,n.value),a+n.value;if(n.type==="open")return u?a+n.value:"(";if(n.type==="close")return u?a+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":u?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=om.reduce(n.nodes),f=kC(...l,{...t,wrap:!1,toRegex:!0,strictZeros:!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(e)};um.exports=BC});var fm=g((G8,lm)=>{"use strict";var PC=uc(),cm=Ws(),vn=Us(),Yr=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?vn.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(Yr(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Yr(i,s,r):i+s);return vn.flatten(n)},IC=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,u=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,u=o.queue;if(i.invalid||i.dollar){u.push(Yr(u.pop(),cm(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){u.push(Yr(u.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=vn.reduce(i.nodes);if(vn.exceedsLimit(...f,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=PC(...f,t);p.length===0&&(p=cm(i,t)),u.push(Yr(u.pop(),p)),i.nodes=[];return}let a=vn.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 p=i.nodes[f];if(p.type==="comma"&&i.type==="brace"){f===1&&c.push(""),c.push("");continue}if(p.type==="close"){u.push(Yr(u.pop(),c,a));continue}if(p.value&&p.type!=="open"){c.push(Yr(c.pop(),p.value));continue}p.nodes&&n(p,i)}return c};return vn.flatten(n(e))};lm.exports=IC});var pm=g((U8,hm)=>{"use strict";hm.exports={MAX_LENGTH:1e4,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 Em=g((W8,ym)=>{"use strict";var LC=Ws(),{MAX_LENGTH:dm,CHAR_BACKSLASH:ac,CHAR_BACKTICK:NC,CHAR_COMMA:MC,CHAR_DOT:qC,CHAR_LEFT_PARENTHESES:jC,CHAR_RIGHT_PARENTHESES:$C,CHAR_LEFT_CURLY_BRACE:HC,CHAR_RIGHT_CURLY_BRACE:GC,CHAR_LEFT_SQUARE_BRACKET:mm,CHAR_RIGHT_SQUARE_BRACKET:gm,CHAR_DOUBLE_QUOTE:UC,CHAR_SINGLE_QUOTE:WC,CHAR_NO_BREAK_SPACE:zC,CHAR_ZERO_WIDTH_NOBREAK_SPACE:YC}=pm(),VC=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(dm,r.maxLength):dm;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,u=i,a=0,c=e.length,l=0,f=0,p,_=()=>e[l++],E=m=>{if(m.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&m.type==="text"){u.value+=m.value;return}return o.nodes.push(m),m.parent=o,m.prev=u,u=m,m};for(E({type:"bos"});l<c;)if(o=s[s.length-1],p=_(),!(p===YC||p===zC)){if(p===ac){E({type:"text",value:(t.keepEscaping?p:"")+_()});continue}if(p===gm){E({type:"text",value:"\\"+p});continue}if(p===mm){a++;let m;for(;l<c&&(m=_());){if(p+=m,m===mm){a++;continue}if(m===ac){p+=_();continue}if(m===gm&&(a--,a===0))break}E({type:"text",value:p});continue}if(p===jC){o=E({type:"paren",nodes:[]}),s.push(o),E({type:"text",value:p});continue}if(p===$C){if(o.type!=="paren"){E({type:"text",value:p});continue}o=s.pop(),E({type:"text",value:p}),o=s[s.length-1];continue}if(p===UC||p===WC||p===NC){let m=p,D;for(t.keepQuotes!==!0&&(p="");l<c&&(D=_());){if(D===ac){p+=D+_();continue}if(D===m){t.keepQuotes===!0&&(p+=D);break}p+=D}E({type:"text",value:p});continue}if(p===HC){f++;let D={type:"brace",open:!0,close:!1,dollar:u.value&&u.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=E(D),s.push(o),E({type:"open",value:p});continue}if(p===GC){if(o.type!=="brace"){E({type:"text",value:p});continue}let m="close";o=s.pop(),o.close=!0,E({type:m,value:p}),f--,o=s[s.length-1];continue}if(p===MC&&f>0){if(o.ranges>0){o.ranges=0;let m=o.nodes.shift();o.nodes=[m,{type:"text",value:LC(o)}]}E({type:"comma",value:p}),o.commas++;continue}if(p===qC&&f>0&&o.commas===0){let m=o.nodes;if(f===0||m.length===0){E({type:"text",value:p});continue}if(u.type==="dot"){if(o.range=[],u.value+=p,u.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,u.type="text";continue}o.ranges++,o.args=[];continue}if(u.type==="range"){m.pop();let D=m[m.length-1];D.value+=u.value+p,u=D,o.ranges--;continue}E({type:"dot",value:p});continue}E({type:"text",value:p})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(A=>{A.nodes||(A.type==="open"&&(A.isOpen=!0),A.type==="close"&&(A.isClose=!0),A.nodes||(A.type="text"),A.invalid=!0)});let m=s[s.length-1],D=m.nodes.indexOf(o);m.nodes.splice(D,1,...o.nodes)}while(s.length>0);return E({type:"eos"}),i};ym.exports=VC});var Dm=g((z8,_m)=>{"use strict";var bm=Ws(),KC=am(),XC=fm(),ZC=Em(),ot=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=ot.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(ot.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};ot.parse=(e,t={})=>ZC(e,t);ot.stringify=(e,t={})=>bm(typeof e=="string"?ot.parse(e,t):e,t);ot.compile=(e,t={})=>(typeof e=="string"&&(e=ot.parse(e,t)),KC(e,t));ot.expand=(e,t={})=>{typeof e=="string"&&(e=ot.parse(e,t));let r=XC(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};ot.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?ot.compile(e,t):ot.expand(e,t);_m.exports=ot});var Ni=g((Y8,Cm)=>{"use strict";var JC=require("path"),Tt="\\\\/",Am=`[^${Tt}]`,Zt="\\.",QC="\\+",eS="\\?",Vs="\\/",tS="(?=.)",vm="[^/]",cc=`(?:${Vs}|$)`,xm=`(?:^|${Vs})`,lc=`${Zt}{1,2}${cc}`,rS=`(?!${Zt})`,nS=`(?!${xm}${lc})`,iS=`(?!${Zt}{0,1}${cc})`,sS=`(?!${lc})`,oS=`[^.${Vs}]`,uS=`${vm}*?`,wm={DOT_LITERAL:Zt,PLUS_LITERAL:QC,QMARK_LITERAL:eS,SLASH_LITERAL:Vs,ONE_CHAR:tS,QMARK:vm,END_ANCHOR:cc,DOTS_SLASH:lc,NO_DOT:rS,NO_DOTS:nS,NO_DOT_SLASH:iS,NO_DOTS_SLASH:sS,QMARK_NO_DOT:oS,STAR:uS,START_ANCHOR:xm},aS={...wm,SLASH_LITERAL:`[${Tt}]`,QMARK:Am,STAR:`${Am}*?`,DOTS_SLASH:`${Zt}{1,2}(?:[${Tt}]|$)`,NO_DOT:`(?!${Zt})`,NO_DOTS:`(?!(?:^|[${Tt}])${Zt}{1,2}(?:[${Tt}]|$))`,NO_DOT_SLASH:`(?!${Zt}{0,1}(?:[${Tt}]|$))`,NO_DOTS_SLASH:`(?!${Zt}{1,2}(?:[${Tt}]|$))`,QMARK_NO_DOT:`[^.${Tt}]`,START_ANCHOR:`(?:^|[${Tt}])`,END_ANCHOR:`(?:[${Tt}]|$)`},cS={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"};Cm.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:cS,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:JC.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?aS:wm}}});var Mi=g(Je=>{"use strict";var lS=require("path"),fS=process.platform==="win32",{REGEX_BACKSLASH:hS,REGEX_REMOVE_BACKSLASH:pS,REGEX_SPECIAL_CHARS:dS,REGEX_SPECIAL_CHARS_GLOBAL:mS}=Ni();Je.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Je.hasRegexChars=e=>dS.test(e);Je.isRegexChar=e=>e.length===1&&Je.hasRegexChars(e);Je.escapeRegex=e=>e.replace(mS,"\\$1");Je.toPosixSlashes=e=>e.replace(hS,"/");Je.removeBackslashes=e=>e.replace(pS,t=>t==="\\"?"":t);Je.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};Je.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:fS===!0||lS.sep==="\\";Je.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?Je.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};Je.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};Je.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Pm=g((K8,Bm)=>{"use strict";var Sm=Mi(),{CHAR_ASTERISK:fc,CHAR_AT:gS,CHAR_BACKWARD_SLASH:qi,CHAR_COMMA:yS,CHAR_DOT:hc,CHAR_EXCLAMATION_MARK:pc,CHAR_FORWARD_SLASH:km,CHAR_LEFT_CURLY_BRACE:dc,CHAR_LEFT_PARENTHESES:mc,CHAR_LEFT_SQUARE_BRACKET:ES,CHAR_PLUS:bS,CHAR_QUESTION_MARK:Fm,CHAR_RIGHT_CURLY_BRACE:_S,CHAR_RIGHT_PARENTHESES:Rm,CHAR_RIGHT_SQUARE_BRACKET:DS}=Ni(),Om=e=>e===km||e===qi,Tm=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},AS=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],u=[],a=e,c=-1,l=0,f=0,p=!1,_=!1,E=!1,m=!1,D=!1,A=!1,R=!1,M=!1,W=!1,L=!1,X=0,G,U,J={value:"",depth:0,isGlob:!1},ge=()=>c>=n,w=()=>a.charCodeAt(c+1),se=()=>(G=U,a.charCodeAt(++c));for(;c<n;){U=se();let C;if(U===qi){R=J.backslashes=!0,U=se(),U===dc&&(A=!0);continue}if(A===!0||U===dc){for(X++;ge()!==!0&&(U=se());){if(U===qi){R=J.backslashes=!0,se();continue}if(U===dc){X++;continue}if(A!==!0&&U===hc&&(U=se())===hc){if(p=J.isBrace=!0,E=J.isGlob=!0,L=!0,i===!0)continue;break}if(A!==!0&&U===yS){if(p=J.isBrace=!0,E=J.isGlob=!0,L=!0,i===!0)continue;break}if(U===_S&&(X--,X===0)){A=!1,p=J.isBrace=!0,L=!0;break}}if(i===!0)continue;break}if(U===km){if(s.push(c),o.push(J),J={value:"",depth:0,isGlob:!1},L===!0)continue;if(G===hc&&c===l+1){l+=2;continue}f=c+1;continue}if(r.noext!==!0&&(U===bS||U===gS||U===fc||U===Fm||U===pc)===!0&&w()===mc){if(E=J.isGlob=!0,m=J.isExtglob=!0,L=!0,U===pc&&c===l&&(W=!0),i===!0){for(;ge()!==!0&&(U=se());){if(U===qi){R=J.backslashes=!0,U=se();continue}if(U===Rm){E=J.isGlob=!0,L=!0;break}}continue}break}if(U===fc){if(G===fc&&(D=J.isGlobstar=!0),E=J.isGlob=!0,L=!0,i===!0)continue;break}if(U===Fm){if(E=J.isGlob=!0,L=!0,i===!0)continue;break}if(U===ES){for(;ge()!==!0&&(C=se());){if(C===qi){R=J.backslashes=!0,se();continue}if(C===DS){_=J.isBracket=!0,E=J.isGlob=!0,L=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&U===pc&&c===l){M=J.negated=!0,l++;continue}if(r.noparen!==!0&&U===mc){if(E=J.isGlob=!0,i===!0){for(;ge()!==!0&&(U=se());){if(U===mc){R=J.backslashes=!0,U=se();continue}if(U===Rm){L=!0;break}}continue}break}if(E===!0){if(L=!0,i===!0)continue;break}}r.noext===!0&&(m=!1,E=!1);let re=a,Xe="",v="";l>0&&(Xe=a.slice(0,l),a=a.slice(l),f-=l),re&&E===!0&&f>0?(re=a.slice(0,f),v=a.slice(f)):E===!0?(re="",v=a):re=a,re&&re!==""&&re!=="/"&&re!==a&&Om(re.charCodeAt(re.length-1))&&(re=re.slice(0,-1)),r.unescape===!0&&(v&&(v=Sm.removeBackslashes(v)),re&&R===!0&&(re=Sm.removeBackslashes(re)));let b={prefix:Xe,input:e,start:l,base:re,glob:v,isBrace:p,isBracket:_,isGlob:E,isExtglob:m,isGlobstar:D,negated:M,negatedExtglob:W};if(r.tokens===!0&&(b.maxDepth=0,Om(U)||o.push(J),b.tokens=o),r.parts===!0||r.tokens===!0){let C;for(let x=0;x<s.length;x++){let O=C?C+1:l,$=s[x],P=e.slice(O,$);r.tokens&&(x===0&&l!==0?(o[x].isPrefix=!0,o[x].value=Xe):o[x].value=P,Tm(o[x]),b.maxDepth+=o[x].depth),(x!==0||P!=="")&&u.push(P),C=$}if(C&&C+1<e.length){let x=e.slice(C+1);u.push(x),r.tokens&&(o[o.length-1].value=x,Tm(o[o.length-1]),b.maxDepth+=o[o.length-1].depth)}b.slashes=s,b.parts=u}return b};Bm.exports=AS});var Nm=g((X8,Lm)=>{"use strict";var Ks=Ni(),ut=Mi(),{MAX_LENGTH:Xs,POSIX_REGEX_SOURCE:vS,REGEX_NON_SPECIAL_CHARS:xS,REGEX_SPECIAL_CHARS_BACKREF:wS,REPLACEMENTS:Im}=Ks,CS=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>ut.escapeRegex(i)).join("..")}return r},xn=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,gc=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Im[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Xs,r.maxLength):Xs,i=e.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],u=r.capture?"":"?:",a=ut.isWindows(t),c=Ks.globChars(a),l=Ks.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:p,SLASH_LITERAL:_,ONE_CHAR:E,DOTS_SLASH:m,NO_DOT:D,NO_DOT_SLASH:A,NO_DOTS_SLASH:R,QMARK:M,QMARK_NO_DOT:W,STAR:L,START_ANCHOR:X}=c,G=k=>`(${u}(?:(?!${X}${k.dot?m:f}).)*?)`,U=r.dot?"":D,J=r.dot?M:W,ge=r.bash===!0?G(r):L;r.capture&&(ge=`(${ge})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let w={input:e,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};e=ut.removePrefix(e,w),i=e.length;let se=[],re=[],Xe=[],v=s,b,C=()=>w.index===i-1,x=w.peek=(k=1)=>e[w.index+k],O=w.advance=()=>e[++w.index]||"",$=()=>e.slice(w.index+1),P=(k="",ae=0)=>{w.consumed+=k,w.index+=ae},oe=k=>{w.output+=k.output!=null?k.output:k.value,P(k.value)},xe=()=>{let k=1;for(;x()==="!"&&(x(2)!=="("||x(3)==="?");)O(),w.start++,k++;return k%2===0?!1:(w.negated=!0,w.start++,!0)},ne=k=>{w[k]++,Xe.push(k)},ye=k=>{w[k]--,Xe.pop()},z=k=>{if(v.type==="globstar"){let ae=w.braces>0&&(k.type==="comma"||k.type==="brace"),T=k.extglob===!0||se.length&&(k.type==="pipe"||k.type==="paren");k.type!=="slash"&&k.type!=="paren"&&!ae&&!T&&(w.output=w.output.slice(0,-v.output.length),v.type="star",v.value="*",v.output=ge,w.output+=v.output)}if(se.length&&k.type!=="paren"&&(se[se.length-1].inner+=k.value),(k.value||k.output)&&oe(k),v&&v.type==="text"&&k.type==="text"){v.value+=k.value,v.output=(v.output||"")+k.value;return}k.prev=v,o.push(k),v=k},ze=(k,ae)=>{let T={...l[ae],conditions:1,inner:""};T.prev=v,T.parens=w.parens,T.output=w.output;let h=(r.capture?"(":"")+T.open;ne("parens"),z({type:k,value:ae,output:w.output?"":E}),z({type:"paren",extglob:!0,value:O(),output:h}),se.push(T)},st=k=>{let ae=k.close+(r.capture?")":""),T;if(k.type==="negate"){let h=ge;if(k.inner&&k.inner.length>1&&k.inner.includes("/")&&(h=G(r)),(h!==ge||C()||/^\)+$/.test($()))&&(ae=k.close=`)$))${h}`),k.inner.includes("*")&&(T=$())&&/^\.[^\\/.]+$/.test(T)){let y=gc(T,{...t,fastpaths:!1}).output;ae=k.close=`)${y})${h})`}k.prev.type==="bos"&&(w.negatedExtglob=!0)}z({type:"paren",extglob:!0,value:b,output:ae}),ye("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let k=!1,ae=e.replace(wS,(T,h,y,d,F,N)=>d==="\\"?(k=!0,T):d==="?"?h?h+d+(F?M.repeat(F.length):""):N===0?J+(F?M.repeat(F.length):""):M.repeat(y.length):d==="."?f.repeat(y.length):d==="*"?h?h+d+(F?ge:""):ge:h?T:`\\${T}`);return k===!0&&(r.unescape===!0?ae=ae.replace(/\\/g,""):ae=ae.replace(/\\+/g,T=>T.length%2===0?"\\\\":T?"\\":"")),ae===e&&r.contains===!0?(w.output=e,w):(w.output=ut.wrapOutput(ae,w,t),w)}for(;!C();){if(b=O(),b==="\0")continue;if(b==="\\"){let T=x();if(T==="/"&&r.bash!==!0||T==="."||T===";")continue;if(!T){b+="\\",z({type:"text",value:b});continue}let h=/^\\+/.exec($()),y=0;if(h&&h[0].length>2&&(y=h[0].length,w.index+=y,y%2!==0&&(b+="\\")),r.unescape===!0?b=O():b+=O(),w.brackets===0){z({type:"text",value:b});continue}}if(w.brackets>0&&(b!=="]"||v.value==="["||v.value==="[^")){if(r.posix!==!1&&b===":"){let T=v.value.slice(1);if(T.includes("[")&&(v.posix=!0,T.includes(":"))){let h=v.value.lastIndexOf("["),y=v.value.slice(0,h),d=v.value.slice(h+2),F=vS[d];if(F){v.value=y+F,w.backtrack=!0,O(),!s.output&&o.indexOf(v)===1&&(s.output=E);continue}}}(b==="["&&x()!==":"||b==="-"&&x()==="]")&&(b=`\\${b}`),b==="]"&&(v.value==="["||v.value==="[^")&&(b=`\\${b}`),r.posix===!0&&b==="!"&&v.value==="["&&(b="^"),v.value+=b,oe({value:b});continue}if(w.quotes===1&&b!=='"'){b=ut.escapeRegex(b),v.value+=b,oe({value:b});continue}if(b==='"'){w.quotes=w.quotes===1?0:1,r.keepQuotes===!0&&z({type:"text",value:b});continue}if(b==="("){ne("parens"),z({type:"paren",value:b});continue}if(b===")"){if(w.parens===0&&r.strictBrackets===!0)throw new SyntaxError(xn("opening","("));let T=se[se.length-1];if(T&&w.parens===T.parens+1){st(se.pop());continue}z({type:"paren",value:b,output:w.parens?")":"\\)"}),ye("parens");continue}if(b==="["){if(r.nobracket===!0||!$().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(xn("closing","]"));b=`\\${b}`}else ne("brackets");z({type:"bracket",value:b});continue}if(b==="]"){if(r.nobracket===!0||v&&v.type==="bracket"&&v.value.length===1){z({type:"text",value:b,output:`\\${b}`});continue}if(w.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(xn("opening","["));z({type:"text",value:b,output:`\\${b}`});continue}ye("brackets");let T=v.value.slice(1);if(v.posix!==!0&&T[0]==="^"&&!T.includes("/")&&(b=`/${b}`),v.value+=b,oe({value:b}),r.literalBrackets===!1||ut.hasRegexChars(T))continue;let h=ut.escapeRegex(v.value);if(w.output=w.output.slice(0,-v.value.length),r.literalBrackets===!0){w.output+=h,v.value=h;continue}v.value=`(${u}${h}|${v.value})`,w.output+=v.value;continue}if(b==="{"&&r.nobrace!==!0){ne("braces");let T={type:"brace",value:b,output:"(",outputIndex:w.output.length,tokensIndex:w.tokens.length};re.push(T),z(T);continue}if(b==="}"){let T=re[re.length-1];if(r.nobrace===!0||!T){z({type:"text",value:b,output:b});continue}let h=")";if(T.dots===!0){let y=o.slice(),d=[];for(let F=y.length-1;F>=0&&(o.pop(),y[F].type!=="brace");F--)y[F].type!=="dots"&&d.unshift(y[F].value);h=CS(d,r),w.backtrack=!0}if(T.comma!==!0&&T.dots!==!0){let y=w.output.slice(0,T.outputIndex),d=w.tokens.slice(T.tokensIndex);T.value=T.output="\\{",b=h="\\}",w.output=y;for(let F of d)w.output+=F.output||F.value}z({type:"brace",value:b,output:h}),ye("braces"),re.pop();continue}if(b==="|"){se.length>0&&se[se.length-1].conditions++,z({type:"text",value:b});continue}if(b===","){let T=b,h=re[re.length-1];h&&Xe[Xe.length-1]==="braces"&&(h.comma=!0,T="|"),z({type:"comma",value:b,output:T});continue}if(b==="/"){if(v.type==="dot"&&w.index===w.start+1){w.start=w.index+1,w.consumed="",w.output="",o.pop(),v=s;continue}z({type:"slash",value:b,output:_});continue}if(b==="."){if(w.braces>0&&v.type==="dot"){v.value==="."&&(v.output=f);let T=re[re.length-1];v.type="dots",v.output+=b,v.value+=b,T.dots=!0;continue}if(w.braces+w.parens===0&&v.type!=="bos"&&v.type!=="slash"){z({type:"text",value:b,output:f});continue}z({type:"dot",value:b,output:f});continue}if(b==="?"){if(!(v&&v.value==="(")&&r.noextglob!==!0&&x()==="("&&x(2)!=="?"){ze("qmark",b);continue}if(v&&v.type==="paren"){let h=x(),y=b;if(h==="<"&&!ut.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(v.value==="("&&!/[!=<:]/.test(h)||h==="<"&&!/<([!=]|\w+>)/.test($()))&&(y=`\\${b}`),z({type:"text",value:b,output:y});continue}if(r.dot!==!0&&(v.type==="slash"||v.type==="bos")){z({type:"qmark",value:b,output:W});continue}z({type:"qmark",value:b,output:M});continue}if(b==="!"){if(r.noextglob!==!0&&x()==="("&&(x(2)!=="?"||!/[!=<:]/.test(x(3)))){ze("negate",b);continue}if(r.nonegate!==!0&&w.index===0){xe();continue}}if(b==="+"){if(r.noextglob!==!0&&x()==="("&&x(2)!=="?"){ze("plus",b);continue}if(v&&v.value==="("||r.regex===!1){z({type:"plus",value:b,output:p});continue}if(v&&(v.type==="bracket"||v.type==="paren"||v.type==="brace")||w.parens>0){z({type:"plus",value:b});continue}z({type:"plus",value:p});continue}if(b==="@"){if(r.noextglob!==!0&&x()==="("&&x(2)!=="?"){z({type:"at",extglob:!0,value:b,output:""});continue}z({type:"text",value:b});continue}if(b!=="*"){(b==="$"||b==="^")&&(b=`\\${b}`);let T=xS.exec($());T&&(b+=T[0],w.index+=T[0].length),z({type:"text",value:b});continue}if(v&&(v.type==="globstar"||v.star===!0)){v.type="star",v.star=!0,v.value+=b,v.output=ge,w.backtrack=!0,w.globstar=!0,P(b);continue}let k=$();if(r.noextglob!==!0&&/^\([^?]/.test(k)){ze("star",b);continue}if(v.type==="star"){if(r.noglobstar===!0){P(b);continue}let T=v.prev,h=T.prev,y=T.type==="slash"||T.type==="bos",d=h&&(h.type==="star"||h.type==="globstar");if(r.bash===!0&&(!y||k[0]&&k[0]!=="/")){z({type:"star",value:b,output:""});continue}let F=w.braces>0&&(T.type==="comma"||T.type==="brace"),N=se.length&&(T.type==="pipe"||T.type==="paren");if(!y&&T.type!=="paren"&&!F&&!N){z({type:"star",value:b,output:""});continue}for(;k.slice(0,3)==="/**";){let I=e[w.index+4];if(I&&I!=="/")break;k=k.slice(3),P("/**",3)}if(T.type==="bos"&&C()){v.type="globstar",v.value+=b,v.output=G(r),w.output=v.output,w.globstar=!0,P(b);continue}if(T.type==="slash"&&T.prev.type!=="bos"&&!d&&C()){w.output=w.output.slice(0,-(T.output+v.output).length),T.output=`(?:${T.output}`,v.type="globstar",v.output=G(r)+(r.strictSlashes?")":"|$)"),v.value+=b,w.globstar=!0,w.output+=T.output+v.output,P(b);continue}if(T.type==="slash"&&T.prev.type!=="bos"&&k[0]==="/"){let I=k[1]!==void 0?"|$":"";w.output=w.output.slice(0,-(T.output+v.output).length),T.output=`(?:${T.output}`,v.type="globstar",v.output=`${G(r)}${_}|${_}${I})`,v.value+=b,w.output+=T.output+v.output,w.globstar=!0,P(b+O()),z({type:"slash",value:"/",output:""});continue}if(T.type==="bos"&&k[0]==="/"){v.type="globstar",v.value+=b,v.output=`(?:^|${_}|${G(r)}${_})`,w.output=v.output,w.globstar=!0,P(b+O()),z({type:"slash",value:"/",output:""});continue}w.output=w.output.slice(0,-v.output.length),v.type="globstar",v.output=G(r),v.value+=b,w.output+=v.output,w.globstar=!0,P(b);continue}let ae={type:"star",value:b,output:ge};if(r.bash===!0){ae.output=".*?",(v.type==="bos"||v.type==="slash")&&(ae.output=U+ae.output),z(ae);continue}if(v&&(v.type==="bracket"||v.type==="paren")&&r.regex===!0){ae.output=b,z(ae);continue}(w.index===w.start||v.type==="slash"||v.type==="dot")&&(v.type==="dot"?(w.output+=A,v.output+=A):r.dot===!0?(w.output+=R,v.output+=R):(w.output+=U,v.output+=U),x()!=="*"&&(w.output+=E,v.output+=E)),z(ae)}for(;w.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(xn("closing","]"));w.output=ut.escapeLast(w.output,"["),ye("brackets")}for(;w.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(xn("closing",")"));w.output=ut.escapeLast(w.output,"("),ye("parens")}for(;w.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(xn("closing","}"));w.output=ut.escapeLast(w.output,"{"),ye("braces")}if(r.strictSlashes!==!0&&(v.type==="star"||v.type==="bracket")&&z({type:"maybe_slash",value:"",output:`${_}?`}),w.backtrack===!0){w.output="";for(let k of w.tokens)w.output+=k.output!=null?k.output:k.value,k.suffix&&(w.output+=k.suffix)}return w};gc.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Xs,r.maxLength):Xs,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=Im[e]||e;let s=ut.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:u,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:p,STAR:_,START_ANCHOR:E}=Ks.globChars(s),m=r.dot?f:l,D=r.dot?p:l,A=r.capture?"":"?:",R={negated:!1,prefix:""},M=r.bash===!0?".*?":_;r.capture&&(M=`(${M})`);let W=U=>U.noglobstar===!0?M:`(${A}(?:(?!${E}${U.dot?c:o}).)*?)`,L=U=>{switch(U){case"*":return`${m}${a}${M}`;case".*":return`${o}${a}${M}`;case"*.*":return`${m}${M}${o}${a}${M}`;case"*/*":return`${m}${M}${u}${a}${D}${M}`;case"**":return m+W(r);case"**/*":return`(?:${m}${W(r)}${u})?${D}${a}${M}`;case"**/*.*":return`(?:${m}${W(r)}${u})?${D}${M}${o}${a}${M}`;case"**/.*":return`(?:${m}${W(r)}${u})?${o}${a}${M}`;default:{let J=/^(.*?)\.(\w+)$/.exec(U);if(!J)return;let ge=L(J[1]);return ge?ge+o+J[2]:void 0}}},X=ut.removePrefix(e,R),G=L(X);return G&&r.strictSlashes!==!0&&(G+=`${u}?`),G};Lm.exports=gc});var qm=g((Z8,Mm)=>{"use strict";var SS=require("path"),FS=Pm(),yc=Nm(),Ec=Mi(),RS=Ni(),OS=e=>e&&typeof e=="object"&&!Array.isArray(e),_e=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(p=>_e(p,t,r));return p=>{for(let _ of l){let E=_(p);if(E)return E}return!1}}let n=OS(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=Ec.isWindows(t),o=n?_e.compileRe(e,t):_e.makeRe(e,t,!1,!0),u=o.state;delete o.state;let a=()=>!1;if(i.ignore){let l={...t,ignore:null,onMatch:null,onResult:null};a=_e(i.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:p,match:_,output:E}=_e.test(l,o,t,{glob:e,posix:s}),m={glob:e,state:u,regex:o,posix:s,input:l,output:E,match:_,isMatch:p};return typeof i.onResult=="function"&&i.onResult(m),p===!1?(m.isMatch=!1,f?m:!1):a(l)?(typeof i.onIgnore=="function"&&i.onIgnore(m),m.isMatch=!1,f?m:!1):(typeof i.onMatch=="function"&&i.onMatch(m),f?m:!0)};return r&&(c.state=u),c};_e.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?Ec.toPosixSlashes:null),u=e===n,a=u&&o?o(e):e;return u===!1&&(a=o?o(e):e,u=a===n),(u===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?u=_e.matchBase(e,t,r,i):u=t.exec(a)),{isMatch:!!u,match:u,output:a}};_e.matchBase=(e,t,r,n=Ec.isWindows(r))=>(t instanceof RegExp?t:_e.makeRe(t,r)).test(SS.basename(e));_e.isMatch=(e,t,r)=>_e(t,r)(e);_e.parse=(e,t)=>Array.isArray(e)?e.map(r=>_e.parse(r,t)):yc(e,{...t,fastpaths:!1});_e.scan=(e,t)=>FS(e,t);_e.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",u=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(u=`^(?!${u}).*$`);let a=_e.toRegex(u,t);return n===!0&&(a.state=e),a};_e.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=yc.fastpaths(e,t)),i.output||(i=yc(e,t)),_e.compileRe(i,t,r,n)};_e.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};_e.constants=RS;Mm.exports=_e});var $m=g((J8,jm)=>{"use strict";jm.exports=qm()});var Ym=g((Q8,zm)=>{"use strict";var Gm=require("util"),Um=Dm(),kt=$m(),bc=Mi(),Hm=e=>e===""||e==="./",Wm=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},he=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,u=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<t.length;l++){let f=kt(String(t[l]),{...r,onResult:u},!0),p=f.state.negated||f.state.negatedExtglob;p&&o++;for(let _ of e){let E=f(_,!0);(p?!E.isMatch:E.isMatch)&&(p?n.add(E.output):(n.delete(E.output),i.add(E.output)))}}let c=(o===t.length?[...s]:[...i]).filter(l=>!n.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(l=>l.replace(/\\/g,"")):t}return c};he.match=he;he.matcher=(e,t)=>kt(e,t);he.isMatch=(e,t,r)=>kt(t,r)(e);he.any=he.isMatch;he.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=u=>{r.onResult&&r.onResult(u),i.push(u.output)},o=new Set(he(e,t,{...r,onResult:s}));for(let u of i)o.has(u)||n.add(u);return[...n]};he.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Gm.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>he.contains(e,n,r));if(typeof t=="string"){if(Hm(e)||Hm(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return he.isMatch(e,t,{...r,contains:!0})};he.matchKeys=(e,t,r)=>{if(!bc.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=he(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};he.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=kt(String(i),r);if(n.some(o=>s(o)))return!0}return!1};he.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=kt(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};he.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Gm.inspect(e)}"`);return[].concat(t).every(n=>kt(n,r)(e))};he.capture=(e,t,r)=>{let n=bc.isWindows(r),s=kt.makeRe(String(e),{...r,capture:!0}).exec(n?bc.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};he.makeRe=(...e)=>kt.makeRe(...e);he.scan=(...e)=>kt.scan(...e);he.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of Um(String(n),t))r.push(kt.parse(i,t));return r};he.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!Wm(e)?[e]:Um(e,t)};he.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return he.braces(e,{...t,expand:!0})};he.hasBraces=Wm;zm.exports=he});var tg=g(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.matchAny=V.convertPatternsToRe=V.makeRe=V.getPatternParts=V.expandBraceExpansion=V.expandPatternsWithBraceExpansion=V.isAffectDepthOfReadingPattern=V.endsWithSlashGlobStar=V.hasGlobStar=V.getBaseDirectory=V.isPatternRelatedToParentDirectory=V.getPatternsOutsideCurrentDirectory=V.getPatternsInsideCurrentDirectory=V.getPositivePatterns=V.getNegativePatterns=V.isPositivePattern=V.isNegativePattern=V.convertToNegativePattern=V.convertToPositivePattern=V.isDynamicPattern=V.isStaticPattern=void 0;var TS=require("path"),kS=qd(),_c=Ym(),Vm="**",BS="\\",PS=/[*?]|^!/,IS=/\[[^[]*]/,LS=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,NS=/[!*+?@]\([^(]*\)/,MS=/,|\.\./;function Km(e,t={}){return!Xm(e,t)}V.isStaticPattern=Km;function Xm(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(BS)||PS.test(e)||IS.test(e)||LS.test(e)||t.extglob!==!1&&NS.test(e)||t.braceExpansion!==!1&&qS(e))}V.isDynamicPattern=Xm;function qS(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return MS.test(n)}function jS(e){return Zs(e)?e.slice(1):e}V.convertToPositivePattern=jS;function $S(e){return"!"+e}V.convertToNegativePattern=$S;function Zs(e){return e.startsWith("!")&&e[1]!=="("}V.isNegativePattern=Zs;function Zm(e){return!Zs(e)}V.isPositivePattern=Zm;function HS(e){return e.filter(Zs)}V.getNegativePatterns=HS;function GS(e){return e.filter(Zm)}V.getPositivePatterns=GS;function US(e){return e.filter(t=>!Dc(t))}V.getPatternsInsideCurrentDirectory=US;function WS(e){return e.filter(Dc)}V.getPatternsOutsideCurrentDirectory=WS;function Dc(e){return e.startsWith("..")||e.startsWith("./..")}V.isPatternRelatedToParentDirectory=Dc;function zS(e){return kS(e,{flipBackslashes:!1})}V.getBaseDirectory=zS;function YS(e){return e.includes(Vm)}V.hasGlobStar=YS;function Jm(e){return e.endsWith("/"+Vm)}V.endsWithSlashGlobStar=Jm;function VS(e){let t=TS.basename(e);return Jm(e)||Km(t)}V.isAffectDepthOfReadingPattern=VS;function KS(e){return e.reduce((t,r)=>t.concat(Qm(r)),[])}V.expandPatternsWithBraceExpansion=KS;function Qm(e){return _c.braces(e,{expand:!0,nodupes:!0})}V.expandBraceExpansion=Qm;function XS(e,t){let{parts:r}=_c.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}V.getPatternParts=XS;function eg(e,t){return _c.makeRe(e,t)}V.makeRe=eg;function ZS(e,t){return e.map(r=>eg(r,t))}V.convertPatternsToRe=ZS;function JS(e,t){return t.some(r=>r.test(e))}V.matchAny=JS});var sg=g((t6,ig)=>{"use strict";var QS=require("stream"),rg=QS.PassThrough,e5=Array.prototype.slice;ig.exports=t5;function t5(){let e=[],t=e5.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.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=rg(n);function u(){for(let l=0,f=arguments.length;l<f;l++)e.push(ng(arguments[l],n));return a(),this}function a(){if(r)return;r=!0;let l=e.shift();if(!l){process.nextTick(c);return}Array.isArray(l)||(l=[l]);let f=l.length+1;function p(){--f>0||(r=!1,a())}function _(E){function m(){E.removeListener("merge2UnpipeEnd",m),E.removeListener("end",m),s&&E.removeListener("error",D),p()}function D(A){o.emit("error",A)}if(E._readableState.endEmitted)return p();E.on("merge2UnpipeEnd",m),E.on("end",m),s&&E.on("error",D),E.pipe(o,{end:!1}),E.resume()}for(let E=0;E<l.length;E++)_(l[E]);p()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=u,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),t.length&&u.apply(null,t),o}function ng(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=ng(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(rg(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var ug=g(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.merge=void 0;var r5=sg();function n5(e){let t=r5(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>og(e)),t.once("end",()=>og(e)),t}Js.merge=n5;function og(e){e.forEach(t=>t.emit("close"))}});var ag=g(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.isEmpty=wn.isString=void 0;function i5(e){return typeof e=="string"}wn.isString=i5;function s5(e){return e===""}wn.isEmpty=s5});var Jt=g(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.string=Me.stream=Me.pattern=Me.path=Me.fs=Me.errno=Me.array=void 0;var o5=Rd();Me.array=o5;var u5=Od();Me.errno=u5;var a5=Td();Me.fs=a5;var c5=kd();Me.path=c5;var l5=tg();Me.pattern=l5;var f5=ug();Me.stream=f5;var h5=ag();Me.string=h5});var fg=g(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.convertPatternGroupToTask=qe.convertPatternGroupsToTasks=qe.groupPatternsByBaseDirectory=qe.getNegativePatternsAsPositive=qe.getPositivePatterns=qe.convertPatternsToTasks=qe.generate=void 0;var Qt=Jt();function p5(e,t){let r=cg(e),n=lg(e,t.ignore),i=r.filter(a=>Qt.pattern.isStaticPattern(a,t)),s=r.filter(a=>Qt.pattern.isDynamicPattern(a,t)),o=Ac(i,n,!1),u=Ac(s,n,!0);return o.concat(u)}qe.generate=p5;function Ac(e,t,r){let n=[],i=Qt.pattern.getPatternsOutsideCurrentDirectory(e),s=Qt.pattern.getPatternsInsideCurrentDirectory(e),o=vc(i),u=vc(s);return n.push(...xc(o,t,r)),"."in u?n.push(wc(".",s,t,r)):n.push(...xc(u,t,r)),n}qe.convertPatternsToTasks=Ac;function cg(e){return Qt.pattern.getPositivePatterns(e)}qe.getPositivePatterns=cg;function lg(e,t){return Qt.pattern.getNegativePatterns(e).concat(t).map(Qt.pattern.convertToPositivePattern)}qe.getNegativePatternsAsPositive=lg;function vc(e){let t={};return e.reduce((r,n)=>{let i=Qt.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}qe.groupPatternsByBaseDirectory=vc;function xc(e,t,r){return Object.keys(e).map(n=>wc(n,e[n],t,r))}qe.convertPatternGroupsToTasks=xc;function wc(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Qt.pattern.convertToNegativePattern))}}qe.convertPatternGroupToTask=wc});var pg=g(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.removeDuplicateSlashes=Cn.transform=void 0;var d5=/(?!^)\/{2,}/g;function m5(e){return e.map(t=>hg(t))}Cn.transform=m5;function hg(e){return e.replace(d5,"/")}Cn.removeDuplicateSlashes=hg});var mg=g(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.read=void 0;function g5(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){dg(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){Cc(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){dg(r,s);return}Cc(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Cc(r,o)})})}Qs.read=g5;function dg(e,t){e(t)}function Cc(e,t){e(null,t)}});var gg=g(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.read=void 0;function y5(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}eo.read=y5});var yg=g(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.createFileSystemAdapter=Er.FILE_SYSTEM_ADAPTER=void 0;var to=require("fs");Er.FILE_SYSTEM_ADAPTER={lstat:to.lstat,stat:to.stat,lstatSync:to.lstatSync,statSync:to.statSync};function E5(e){return e===void 0?Er.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Er.FILE_SYSTEM_ADAPTER),e)}Er.createFileSystemAdapter=E5});var Eg=g(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});var b5=yg(),Sc=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=b5.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t!=null?t:r}};Fc.default=Sc});var Vr=g(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.statSync=br.stat=br.Settings=void 0;var bg=mg(),_5=gg(),Rc=Eg();br.Settings=Rc.default;function D5(e,t,r){if(typeof t=="function"){bg.read(e,Oc(),t);return}bg.read(e,Oc(t),r)}br.stat=D5;function A5(e,t){let r=Oc(t);return _5.read(e,r)}br.statSync=A5;function Oc(e={}){return e instanceof Rc.default?e:new Rc.default(e)}});var Ag=g((h6,Dg)=>{var _g;Dg.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):e=>(_g||(_g=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var xg=g((p6,vg)=>{vg.exports=x5;var v5=Ag();function x5(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(a){function c(){t&&t(a,r),t=null}s?v5(c):c()}function u(a,c,l){r[a]=l,(--n===0||c)&&o(c)}n?i?i.forEach(function(a){e[a](function(c,l){u(a,c,l)})}):e.forEach(function(a,c){a(function(l,f){u(c,l,f)})}):o(null),s=!1}});var Tc=g(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var ro=process.versions.node.split(".");if(ro[0]===void 0||ro[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var wg=Number.parseInt(ro[0],10),w5=Number.parseInt(ro[1],10),Cg=10,C5=10,S5=wg>Cg,F5=wg===Cg&&w5>=C5;no.IS_SUPPORT_READDIR_WITH_FILE_TYPES=S5||F5});var Sg=g(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.createDirentFromStats=void 0;var kc=class{constructor(t,r){this.name=t,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 R5(e,t){return new kc(e,t)}io.createDirentFromStats=R5});var Bc=g(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.fs=void 0;var O5=Sg();so.fs=O5});var Pc=g(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.joinPathSegments=void 0;function T5(e,t,r){return e.endsWith(r)?e+t:e+r+t}oo.joinPathSegments=T5});var Bg=g(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.readdir=_r.readdirWithFileTypes=_r.read=void 0;var k5=Vr(),Fg=xg(),B5=Tc(),Rg=Bc(),Og=Pc();function P5(e,t,r){if(!t.stats&&B5.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Tg(e,t,r);return}kg(e,t,r)}_r.read=P5;function Tg(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){uo(r,n);return}let s=i.map(u=>({dirent:u,name:u.name,path:Og.joinPathSegments(e,u.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Ic(r,s);return}let o=s.map(u=>I5(u,t));Fg(o,(u,a)=>{if(u!==null){uo(r,u);return}Ic(r,a)})})}_r.readdirWithFileTypes=Tg;function I5(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=Rg.fs.createDirentFromStats(e.name,i),r(null,e)})}}function kg(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){uo(r,n);return}let s=i.map(o=>{let u=Og.joinPathSegments(e,o,t.pathSegmentSeparator);return a=>{k5.stat(u,t.fsStatSettings,(c,l)=>{if(c!==null){a(c);return}let f={name:o,path:u,dirent:Rg.fs.createDirentFromStats(o,l)};t.stats&&(f.stats=l),a(null,f)})}});Fg(s,(o,u)=>{if(o!==null){uo(r,o);return}Ic(r,u)})})}_r.readdir=kg;function uo(e,t){e(t)}function Ic(e,t){e(null,t)}});var Mg=g(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.readdir=Dr.readdirWithFileTypes=Dr.read=void 0;var L5=Vr(),N5=Tc(),Pg=Bc(),Ig=Pc();function M5(e,t){return!t.stats&&N5.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Lg(e,t):Ng(e,t)}Dr.read=M5;function Lg(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Ig.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=Pg.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}Dr.readdirWithFileTypes=Lg;function Ng(e,t){return t.fs.readdirSync(e).map(n=>{let i=Ig.joinPathSegments(e,n,t.pathSegmentSeparator),s=L5.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:Pg.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}Dr.readdir=Ng});var qg=g(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.createFileSystemAdapter=Ar.FILE_SYSTEM_ADAPTER=void 0;var Sn=require("fs");Ar.FILE_SYSTEM_ADAPTER={lstat:Sn.lstat,stat:Sn.stat,lstatSync:Sn.lstatSync,statSync:Sn.statSync,readdir:Sn.readdir,readdirSync:Sn.readdirSync};function q5(e){return e===void 0?Ar.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ar.FILE_SYSTEM_ADAPTER),e)}Ar.createFileSystemAdapter=q5});var jg=g(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});var j5=require("path"),$5=Vr(),H5=qg(),Lc=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=H5.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,j5.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new $5.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};Nc.default=Lc});var ao=g(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.Settings=vr.scandirSync=vr.scandir=void 0;var $g=Bg(),G5=Mg(),Mc=jg();vr.Settings=Mc.default;function U5(e,t,r){if(typeof t=="function"){$g.read(e,qc(),t);return}$g.read(e,qc(t),r)}vr.scandir=U5;function W5(e,t){let r=qc(t);return G5.read(e,r)}vr.scandirSync=W5;function qc(e={}){return e instanceof Mc.default?e:new Mc.default(e)}});var Gg=g((v6,Hg)=>{"use strict";function z5(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}Hg.exports=z5});var Wg=g((x6,jc)=>{"use strict";var Y5=Gg();function Ug(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=Y5(V5),i=null,s=null,o=0,u=null,a={push:m,drain:mt,saturated:mt,pause:l,paused:!1,concurrency:r,running:c,resume:_,idle:E,length:f,getQueue:p,unshift:D,empty:mt,kill:R,killAndDrain:M,error:W};return a;function c(){return o}function l(){a.paused=!0}function f(){for(var L=i,X=0;L;)L=L.next,X++;return X}function p(){for(var L=i,X=[];L;)X.push(L.value),L=L.next;return X}function _(){if(a.paused){a.paused=!1;for(var L=0;L<a.concurrency;L++)o++,A()}}function E(){return o===0&&a.length()===0}function m(L,X){var G=n.get();G.context=e,G.release=A,G.value=L,G.callback=X||mt,G.errorHandler=u,o===a.concurrency||a.paused?s?(s.next=G,s=G):(i=G,s=G,a.saturated()):(o++,t.call(e,G.value,G.worked))}function D(L,X){var G=n.get();G.context=e,G.release=A,G.value=L,G.callback=X||mt,o===a.concurrency||a.paused?i?(G.next=i,i=G):(i=G,s=G,a.saturated()):(o++,t.call(e,G.value,G.worked))}function A(L){L&&n.release(L);var X=i;X?a.paused?o--:(s===i&&(s=null),i=X.next,X.next=null,t.call(e,X.value,X.worked),s===null&&a.empty()):--o===0&&a.drain()}function R(){i=null,s=null,a.drain=mt}function M(){i=null,s=null,a.drain(),a.drain=mt}function W(L){u=L}}function mt(){}function V5(){this.value=null,this.callback=mt,this.next=null,this.release=mt,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=mt,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function K5(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(l,f){t.call(this,l).then(function(p){f(null,p)},f)}var i=Ug(e,n,r),s=i.push,o=i.unshift;return i.push=u,i.unshift=a,i.drained=c,i;function u(l){var f=new Promise(function(p,_){s(l,function(E,m){if(E){_(E);return}p(m)})});return f.catch(mt),f}function a(l){var f=new Promise(function(p,_){o(l,function(E,m){if(E){_(E);return}p(m)})});return f.catch(mt),f}function c(){var l=i.drain,f=new Promise(function(p){i.drain=function(){l(),p()}});return f}}jc.exports=Ug;jc.exports.promise=K5});var co=g(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.joinPathSegments=Bt.replacePathSegmentSeparator=Bt.isAppliedFilter=Bt.isFatalError=void 0;function X5(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Bt.isFatalError=X5;function Z5(e,t){return e===null||e(t)}Bt.isAppliedFilter=Z5;function J5(e,t){return e.split(/[/\\]/).join(t)}Bt.replacePathSegmentSeparator=J5;function Q5(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Bt.joinPathSegments=Q5});var Gc=g(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});var eF=co(),$c=class{constructor(t,r){this._root=t,this._settings=r,this._root=eF.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};Hc.default=$c});var zc=g(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});var tF=require("events"),rF=ao(),nF=Wg(),lo=co(),iF=Gc(),Uc=class extends iF.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=rF.scandir,this._emitter=new tF.EventEmitter,this._queue=nF(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(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!lo.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=lo.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),lo.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&lo.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Wc.default=Uc});var zg=g(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});var sF=zc(),Yc=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new sF.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{oF(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{uF(t,this._storage)}),this._reader.read()}};Vc.default=Yc;function oF(e,t){e(t)}function uF(e,t){e(null,t)}});var Yg=g(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var aF=require("stream"),cF=zc(),Kc=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new cF.default(this._root,this._settings),this._stream=new aF.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Xc.default=Kc});var Vg=g(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var lF=ao(),fo=co(),fF=Gc(),Zc=class extends fF.default{constructor(){super(...arguments),this._scandir=lF.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(fo.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=fo.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),fo.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&fo.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Jc.default=Zc});var Kg=g(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var hF=Vg(),Qc=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new hF.default(this._root,this._settings)}read(){return this._reader.read()}};el.default=Qc});var Xg=g(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var pF=require("path"),dF=ao(),tl=class{constructor(t={}){this._options=t,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,pF.sep),this.fsScandirSettings=new dF.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t!=null?t:r}};rl.default=tl});var po=g(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.Settings=Pt.walkStream=Pt.walkSync=Pt.walk=void 0;var Zg=zg(),mF=Yg(),gF=Kg(),nl=Xg();Pt.Settings=nl.default;function yF(e,t,r){if(typeof t=="function"){new Zg.default(e,ho()).read(t);return}new Zg.default(e,ho(t)).read(r)}Pt.walk=yF;function EF(e,t){let r=ho(t);return new gF.default(e,r).read()}Pt.walkSync=EF;function bF(e,t){let r=ho(t);return new mF.default(e,r).read()}Pt.walkStream=bF;function ho(e={}){return e instanceof nl.default?e:new nl.default(e)}});var mo=g(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var _F=require("path"),DF=Vr(),Jg=Jt(),il=class{constructor(t){this._settings=t,this._fsStatSettings=new DF.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return _F.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:Jg.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!Jg.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};sl.default=il});var al=g(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var AF=require("stream"),vF=Vr(),xF=po(),wF=mo(),ol=class extends wF.default{constructor(){super(...arguments),this._walkStream=xF.walkStream,this._stat=vF.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new AF.PassThrough({objectMode:!0});i._write=(s,o,u)=>this._getEntry(n[s],t[s],r).then(a=>{a!==null&&r.entryFilter(a)&&i.push(a),s===n.length-1&&i.end(),u()}).catch(u);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};ul.default=ol});var Qg=g(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var CF=po(),SF=mo(),FF=al(),cl=class extends SF.default{constructor(){super(...arguments),this._walkAsync=CF.walk,this._readerStream=new FF.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",u=>n.push(u)),i.once("end",()=>s(n))})}};ll.default=cl});var e1=g(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var Fn=Jt(),fl=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=Fn.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of t){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(t){return Fn.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Fn.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Fn.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Fn.array.splitWhen(t,r=>r.dynamic&&Fn.pattern.hasGlobStar(r.pattern))}};hl.default=fl});var t1=g(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var RF=e1(),pl=class extends RF.default{match(t){let r=t.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((a,c)=>{let l=s.segments[c];return!!(l.dynamic&&l.patternRe.test(a)||!l.dynamic&&l.pattern===a)}))return!0}return!1}};dl.default=pl});var r1=g(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var go=Jt(),OF=t1(),ml=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new OF.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(go.pattern.isAffectDepthOfReadingPattern);return go.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=go.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!go.pattern.matchAny(t,r)}};gl.default=ml});var n1=g(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var Kr=Jt(),yl=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=Kr.pattern.convertPatternsToRe(t,this._micromatchOptions),i=Kr.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=t.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(t.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(t),o}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=Kr.path.makeAbsolute(this._settings.cwd,t);return Kr.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let i=Kr.path.removeLeadingDotSegment(t),s=Kr.pattern.matchAny(i,r);return!s&&n?Kr.pattern.matchAny(i+"/",r):s}};El.default=yl});var i1=g(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var TF=Jt(),bl=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return TF.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};_l.default=bl});var o1=g(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var s1=Jt(),Dl=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=s1.path.makeAbsolute(this._settings.cwd,r),r=s1.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Al.default=Dl});var yo=g(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var kF=require("path"),BF=r1(),PF=n1(),IF=i1(),LF=o1(),vl=class{constructor(t){this._settings=t,this.errorFilter=new IF.default(this._settings),this.entryFilter=new PF.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new BF.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new LF.default(this._settings)}_getRootDirectory(t){return kF.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.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}}};xl.default=vl});var u1=g(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var NF=Qg(),MF=yo(),wl=class extends MF.default{constructor(){super(...arguments),this._reader=new NF.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Cl.default=wl});var a1=g(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var qF=require("stream"),jF=al(),$F=yo(),Sl=class extends $F.default{constructor(){super(...arguments),this._reader=new jF.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new qF.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(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Fl.default=Sl});var c1=g(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var HF=Vr(),GF=po(),UF=mo(),Rl=class extends UF.default{constructor(){super(...arguments),this._walkSync=GF.walkSync,this._statSync=HF.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Ol.default=Rl});var l1=g(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var WF=c1(),zF=yo(),Tl=class extends zF.default{constructor(){super(...arguments),this._reader=new WF.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};kl.default=Tl});var f1=g(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Rn=require("fs"),YF=require("os"),VF=Math.max(YF.cpus().length,1);On.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Rn.lstat,lstatSync:Rn.lstatSync,stat:Rn.stat,statSync:Rn.statSync,readdir:Rn.readdir,readdirSync:Rn.readdirSync};var Bl=class{constructor(t={}){this._options=t,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,VF),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(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},On.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};On.default=Bl});var m1=g((K6,d1)=>{"use strict";var h1=fg(),p1=pg(),KF=u1(),XF=a1(),ZF=l1(),Pl=f1(),Xr=Jt();async function Il(e,t){Tn(e);let r=Ll(e,KF.default,t),n=await Promise.all(r);return Xr.array.flatten(n)}(function(e){function t(o,u){Tn(o);let a=Ll(o,ZF.default,u);return Xr.array.flatten(a)}e.sync=t;function r(o,u){Tn(o);let a=Ll(o,XF.default,u);return Xr.stream.merge(a)}e.stream=r;function n(o,u){Tn(o);let a=p1.transform([].concat(o)),c=new Pl.default(u);return h1.generate(a,c)}e.generateTasks=n;function i(o,u){Tn(o);let a=new Pl.default(u);return Xr.pattern.isDynamicPattern(o,a)}e.isDynamicPattern=i;function s(o){return Tn(o),Xr.path.escape(o)}e.escapePath=s})(Il||(Il={}));function Ll(e,t,r){let n=p1.transform([].concat(e)),i=new Pl.default(r),s=h1.generate(n,i),o=new t(i);return s.map(o.read,o)}function Tn(e){if(![].concat(e).every(n=>Xr.string.isString(n)&&!Xr.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}d1.exports=Il});var y1=g((X6,g1)=>{"use strict";g1.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Nl=g((Z6,b1)=>{var ji=y1(),E1={};for(let e of Object.keys(ji))E1[ji[e]]=e;var q={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"]}};b1.exports=q;for(let e of Object.keys(q)){if(!("channels"in q[e]))throw new Error("missing channels property: "+e);if(!("labels"in q[e]))throw new Error("missing channel labels property: "+e);if(q[e].labels.length!==q[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=q[e];delete q[e].channels,delete q[e].labels,Object.defineProperty(q[e],"channels",{value:t}),Object.defineProperty(q[e],"labels",{value:r})}q.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,u,a;s===i?u=0:t===s?u=(r-n)/o:r===s?u=2+(n-t)/o:n===s&&(u=4+(t-r)/o),u=Math.min(u*60,360),u<0&&(u+=360);let c=(i+s)/2;return s===i?a=0:c<=.5?a=o/(s+i):a=o/(2-s-i),[u,a*100,c*100]};q.rgb.hsv=function(e){let t,r,n,i,s,o=e[0]/255,u=e[1]/255,a=e[2]/255,c=Math.max(o,u,a),l=c-Math.min(o,u,a),f=function(p){return(c-p)/6/l+1/2};return l===0?(i=0,s=0):(s=l/c,t=f(o),r=f(u),n=f(a),o===c?i=n-r:u===c?i=1/3+t-n:a===c&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};q.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=q.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};q.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),s=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,u=(1-n-i)/(1-i)||0;return[s*100,o*100,u*100,i*100]};function JF(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}q.rgb.keyword=function(e){let t=E1[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(ji)){let s=ji[i],o=JF(e,s);o<r&&(r=o,n=i)}return n};q.keyword.rgb=function(e){return ji[e]};q.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};q.rgb.lab=function(e){let t=q.rgb.xyz(e),r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),u=200*(n-i);return[s,o,u]};q.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let u=2*n-i,a=[0,0,0];for(let c=0;c<3;c++)s=t+1/3*-(c-1),s<0&&s++,s>1&&s--,6*s<1?o=u+(i-u)*6*s:2*s<1?o=i:3*s<2?o=u+(i-u)*(2/3-s)*6:o=u,a[c]=o*255;return a};q.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,u=n===0?2*i/(s+i):2*r/(n+r);return[t,u*100,o*100]};q.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),u=255*n*(1-r*s),a=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,a,o];case 1:return[u,n,o];case 2:return[o,n,a];case 3:return[o,u,n];case 4:return[a,o,n];case 5:return[n,o,u]}};q.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let u=(2-r)*i;return s=r*i,s/=u<=1?u:2-u,s=s||0,o/=2,[t,s*100,o*100]};q.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*t),u=1-n;s=6*t-o,o&1&&(s=1-s);let a=r+s*(u-r),c,l,f;switch(o){default:case 6:case 0:c=u,l=a,f=r;break;case 1:c=a,l=u,f=r;break;case 2:c=r,l=u,f=a;break;case 3:c=r,l=a,f=u;break;case 4:c=a,l=r,f=u;break;case 5:c=u,l=r,f=a;break}return[c*255,l*255,f*255]};q.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),u=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,u*255]};q.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};q.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(t-r),o=200*(r-n);return[i,s,o]};q.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;let u=s**3,a=i**3,c=o**3;return s=u>.008856?u:(s-16/116)/7.787,i=a>.008856?a:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};q.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[t,o,i]};q.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[t,s,o]};q.rgb.ansi16=function(e,t=null){let[r,n,i]=e,s=t===null?q.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};q.hsv.ansi16=function(e){return q.rgb.ansi16(q.hsv.rgb(e),e[2])};q.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};q.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};q.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};q.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};q.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(u=>u+u).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};q.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,u,a;return o<1?u=s/(1-o):u=0,o<=0?a=0:i===t?a=(r-n)/o%6:i===r?a=2+(n-t)/o:a=4+(t-r)/o,a/=6,a%=1,[a*360,o*100,u*100]};q.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};q.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};q.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=t%1*6,o=s%1,u=1-o,a=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return a=(1-r)*n,[(r*i[0]+a)*255,(r*i[1]+a)*255,(r*i[2]+a)*255]};q.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};q.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};q.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};q.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};q.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};q.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};q.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};q.gray.hsl=function(e){return[0,0,e[0]]};q.gray.hsv=q.gray.hsl;q.gray.hwb=function(e){return[0,100,e[0]]};q.gray.cmyk=function(e){return[0,0,0,e[0]]};q.gray.lab=function(e){return[e[0],0,0]};q.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};q.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var D1=g((J6,_1)=>{var Eo=Nl();function QF(){let e={},t=Object.keys(Eo);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function eR(e){let t=QF(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(Eo[n]);for(let s=i.length,o=0;o<s;o++){let u=i[o],a=t[u];a.distance===-1&&(a.distance=t[n].distance+1,a.parent=n,r.unshift(u))}}return t}function tR(e,t){return function(r){return t(e(r))}}function rR(e,t){let r=[t[e].parent,e],n=Eo[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=tR(Eo[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}_1.exports=function(e){let t=eR(e),r={},n=Object.keys(t);for(let i=n.length,s=0;s<i;s++){let o=n[s];t[o].parent!==null&&(r[o]=rR(o,t))}return r}});var v1=g((Q6,A1)=>{var Ml=Nl(),nR=D1(),kn={},iR=Object.keys(Ml);function sR(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function oR(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=e(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}iR.forEach(e=>{kn[e]={},Object.defineProperty(kn[e],"channels",{value:Ml[e].channels}),Object.defineProperty(kn[e],"labels",{value:Ml[e].labels});let t=nR(e);Object.keys(t).forEach(n=>{let i=t[n];kn[e][n]=oR(i),kn[e][n].raw=sR(i)})});A1.exports=kn});var jl=g((eI,F1)=>{"use strict";var x1=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,w1=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},C1=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},bo=e=>e,S1=(e,t,r)=>[e,t,r],Bn=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},ql,Pn=(e,t,r,n)=>{ql===void 0&&(ql=v1());let i=n?10:0,s={};for(let[o,u]of Object.entries(ql)){let a=o==="ansi16"?"ansi":o;o===t?s[a]=e(r,i):typeof u=="object"&&(s[a]=e(u[t],i))}return s};function uR(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,s]of Object.entries(n))t[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=t[i],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",Bn(t.color,"ansi",()=>Pn(x1,"ansi16",bo,!1)),Bn(t.color,"ansi256",()=>Pn(w1,"ansi256",bo,!1)),Bn(t.color,"ansi16m",()=>Pn(C1,"rgb",S1,!1)),Bn(t.bgColor,"ansi",()=>Pn(x1,"ansi16",bo,!0)),Bn(t.bgColor,"ansi256",()=>Pn(w1,"ansi256",bo,!0)),Bn(t.bgColor,"ansi16m",()=>Pn(C1,"rgb",S1,!0)),t}Object.defineProperty(F1,"exports",{enumerable:!0,get:uR})});var O1=g((tI,R1)=>{"use strict";R1.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var Gl=g((rI,k1)=>{"use strict";var aR=require("os"),T1=require("tty"),gt=O1(),{env:Fe}=process,xr;gt("no-color")||gt("no-colors")||gt("color=false")||gt("color=never")?xr=0:(gt("color")||gt("colors")||gt("color=true")||gt("color=always"))&&(xr=1);"FORCE_COLOR"in Fe&&(Fe.FORCE_COLOR==="true"?xr=1:Fe.FORCE_COLOR==="false"?xr=0:xr=Fe.FORCE_COLOR.length===0?1:Math.min(parseInt(Fe.FORCE_COLOR,10),3));function $l(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Hl(e,t){if(xr===0)return 0;if(gt("color=16m")||gt("color=full")||gt("color=truecolor"))return 3;if(gt("color=256"))return 2;if(e&&!t&&xr===void 0)return 0;let r=xr||0;if(Fe.TERM==="dumb")return r;if(process.platform==="win32"){let n=aR.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Fe)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Fe)||Fe.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Fe)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Fe.TEAMCITY_VERSION)?1:0;if(Fe.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Fe){let n=parseInt((Fe.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Fe.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Fe.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Fe.TERM)||"COLORTERM"in Fe?1:r}function cR(e){let t=Hl(e,e&&e.isTTY);return $l(t)}k1.exports={supportsColor:cR,stdout:$l(Hl(!0,T1.isatty(1))),stderr:$l(Hl(!0,T1.isatty(2)))}});var P1=g((nI,B1)=>{"use strict";var lR=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.substr(s),o},fR=(e,t,r,n)=>{let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
|
|
4
4
|
`:`
|
|
5
5
|
`)+r,i=n+1,n=e.indexOf(`
|
|
6
|
-
`,i)}while(n!==-1);return s+=e.substr(i),s};
|
|
7
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function
|
|
8
|
-
`);return s!==-1&&(t=m3(t,i,n,s)),n+t+i},uh,b3=(e,...t)=>{let[r]=t;if(!Array.isArray(r))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return uh===void 0&&(uh=hb()),uh(e,i.join(""))};Object.defineProperties(la.prototype,ii);var ws=la();ws.supportsColor=ch;ws.stderr=la({level:lh?lh.level:0});ws.stderr.supportsColor=lh;ws.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};gb.exports=ws});var bb=y((ej,dh)=>{"use strict";var _b=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};dh.exports=_b;dh.exports.default=_b});var ph=y((tj,da)=>{"use strict";var E3=bb(),ha=new WeakMap,Eb=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",s=function(...o){if(ha.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return E3(s,e),ha.set(s,n),s};da.exports=Eb;da.exports.default=Eb;da.exports.callCount=e=>{if(!ha.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return ha.get(e)}});var wb=y((rj,pa)=>{pa.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&pa.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&pa.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var yh=y((nj,ai)=>{var Ee=global.process,bn=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};bn(Ee)?(vb=require("assert"),si=wb(),Ab=/^win/i.test(Ee.platform),vs=require("events"),typeof vs!="function"&&(vs=vs.EventEmitter),Ee.__signal_exit_emitter__?Le=Ee.__signal_exit_emitter__:(Le=Ee.__signal_exit_emitter__=new vs,Le.count=0,Le.emitted={}),Le.infinite||(Le.setMaxListeners(1/0),Le.infinite=!0),ai.exports=function(e,t){if(!bn(global.process))return function(){};vb.equal(typeof e,"function","a callback must be provided for exit handler"),oi===!1&&mh();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){Le.removeListener(r,e),Le.listeners("exit").length===0&&Le.listeners("afterexit").length===0&&ma()};return Le.on(r,e),n},ma=function(){!oi||!bn(global.process)||(oi=!1,si.forEach(function(t){try{Ee.removeListener(t,ga[t])}catch{}}),Ee.emit=ya,Ee.reallyExit=gh,Le.count-=1)},ai.exports.unload=ma,En=function(t,r,n){Le.emitted[t]||(Le.emitted[t]=!0,Le.emit(t,r,n))},ga={},si.forEach(function(e){ga[e]=function(){if(bn(global.process)){var r=Ee.listeners(e);r.length===Le.count&&(ma(),En("exit",null,e),En("afterexit",null,e),Ab&&e==="SIGHUP"&&(e="SIGINT"),Ee.kill(Ee.pid,e))}}}),ai.exports.signals=function(){return si},oi=!1,mh=function(){oi||!bn(global.process)||(oi=!0,Le.count+=1,si=si.filter(function(t){try{return Ee.on(t,ga[t]),!0}catch{return!1}}),Ee.emit=xb,Ee.reallyExit=Db)},ai.exports.load=mh,gh=Ee.reallyExit,Db=function(t){bn(global.process)&&(Ee.exitCode=t||0,En("exit",Ee.exitCode,null),En("afterexit",Ee.exitCode,null),gh.call(Ee,Ee.exitCode))},ya=Ee.emit,xb=function(t,r){if(t==="exit"&&bn(global.process)){r!==void 0&&(Ee.exitCode=r);var n=ya.apply(this,arguments);return En("exit",Ee.exitCode,null),En("afterexit",Ee.exitCode,null),n}else return ya.apply(this,arguments)}):ai.exports=function(){return function(){}};var vb,si,Ab,vs,Le,ma,En,ga,oi,mh,gh,Db,ya,xb});var Sb=y((ij,Cb)=>{"use strict";var w3=ph(),v3=yh();Cb.exports=w3(()=>{v3(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var Rb=y(ui=>{"use strict";var A3=Sb(),_a=!1;ui.show=(e=process.stderr)=>{e.isTTY&&(_a=!1,e.write("\x1B[?25h"))};ui.hide=(e=process.stderr)=>{e.isTTY&&(A3(),_a=!0,e.write("\x1B[?25l"))};ui.toggle=(e,t)=>{e!==void 0&&(_a=e),_a?ui.show(t):ui.hide(t)}});var Fb=y((oj,D3)=>{D3.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 kb=y((aj,Ob)=>{"use strict";var ba=Object.assign({},Fb()),Tb=Object.keys(ba);Object.defineProperty(ba,"random",{get(){let e=Math.floor(Math.random()*Tb.length),t=Tb[e];return ba[t]}});Ob.exports=ba});var Bb=y((uj,Pb)=>{"use strict";var x3=/[|\\{}()[\]^$+*?.]/g;Pb.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(x3,"\\$&")}});var Lb=y((cj,Ib)=>{"use strict";Ib.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var _h=y((lj,jb)=>{var wn=Lb(),qb={};for(Ea in wn)wn.hasOwnProperty(Ea)&&(qb[wn[Ea]]=Ea);var Ea,U=jb.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(it in U)if(U.hasOwnProperty(it)){if(!("channels"in U[it]))throw new Error("missing channels property: "+it);if(!("labels"in U[it]))throw new Error("missing channel labels property: "+it);if(U[it].labels.length!==U[it].channels)throw new Error("channel and label counts mismatch: "+it);Nb=U[it].channels,Mb=U[it].labels,delete U[it].channels,delete U[it].labels,Object.defineProperty(U[it],"channels",{value:Nb}),Object.defineProperty(U[it],"labels",{value:Mb})}var Nb,Mb,it;U.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,u,c;return s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),c=(i+s)/2,s===i?u=0:c<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,c*100]};U.rgb.hsv=function(e){var t,r,n,i,s,o=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(o,a,u),l=c-Math.min(o,a,u),f=function(h){return(c-h)/6/l+1/2};return l===0?i=s=0:(s=l/c,t=f(o),r=f(a),n=f(u),o===c?i=n-r:a===c?i=1/3+t-n:u===c&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};U.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=U.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};U.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,s,o,a;return a=Math.min(1-t,1-r,1-n),i=(1-t-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function C3(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}U.rgb.keyword=function(e){var t=qb[e];if(t)return t;var r=1/0,n;for(var i in wn)if(wn.hasOwnProperty(i)){var s=wn[i],o=C3(e,s);o<r&&(r=o,n=i)}return n};U.keyword.rgb=function(e){return wn[e]};U.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};U.rgb.lab=function(e){var t=U.rgb.xyz(e),r=t[0],n=t[1],i=t[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};U.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var c=0;c<3;c++)o=t+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?u=i+(s-i)*6*o:2*o<1?u=s:3*o<2?u=i+(s-i)*(2/3-o)*6:u=i,a[c]=u*255;return a};U.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[t,o*100,a*100]};U.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};U.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]};U.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,o,a,u;i>1&&(r/=i,n/=i),s=Math.floor(6*t),o=1-n,a=6*t-s,s&1&&(a=1-a),u=r+a*(o-r);var c,l,f;switch(s){default:case 6:case 0:c=o,l=u,f=r;break;case 1:c=u,l=o,f=r;break;case 2:c=r,l=o,f=u;break;case 3:c=r,l=u,f=o;break;case 4:c=u,l=r,f=o;break;case 5:c=o,l=r,f=u;break}return[c*255,l*255,f*255]};U.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s,o,a;return s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};U.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};U.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(t-r),o=200*(r-n),[i,s,o]};U.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),u=Math.pow(i,3),c=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};U.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[t,o,s]};U.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[t,i,s]};U.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:U.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(s+=60),s};U.hsv.ansi16=function(e){return U.rgb.ansi16(U.hsv.rgb(e),e[2])};U.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};U.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};U.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};U.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};U.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};U.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===t?u=(r-n)/o%6:i===r?u=2+(n-t)/o:u=4+(t-r)/o+4,u/=6,u%=1,[u*360,o*100,a*100]};U.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};U.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};U.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=t%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};U.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};U.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};U.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};U.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};U.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};U.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};U.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};U.gray.hsl=U.gray.hsv=function(e){return[0,0,e[0]]};U.gray.hwb=function(e){return[0,100,e[0]]};U.gray.cmyk=function(e){return[0,0,0,e[0]]};U.gray.lab=function(e){return[e[0],0,0]};U.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};U.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var $b=y((fj,Hb)=>{var wa=_h();function S3(){for(var e={},t=Object.keys(wa),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function R3(e){var t=S3(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(wa[n]),s=i.length,o=0;o<s;o++){var a=i[o],u=t[a];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(a))}return t}function F3(e,t){return function(r){return t(e(r))}}function T3(e,t){for(var r=[t[e].parent,e],n=wa[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=F3(wa[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}Hb.exports=function(e){for(var t=R3(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var o=n[s],a=t[o];a.parent!==null&&(r[o]=T3(o,t))}return r}});var Gb=y((hj,Ub)=>{var bh=_h(),O3=$b(),ci={},k3=Object.keys(bh);function P3(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function B3(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}k3.forEach(function(e){ci[e]={},Object.defineProperty(ci[e],"channels",{value:bh[e].channels}),Object.defineProperty(ci[e],"labels",{value:bh[e].labels});var t=O3(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];ci[e][n]=B3(i),ci[e][n].raw=P3(i)})});Ub.exports=ci});var zb=y((dj,Wb)=>{"use strict";var li=Gb(),va=(e,t)=>function(){return`\x1B[${e.apply(li,arguments)+t}m`},Aa=(e,t)=>function(){let r=e.apply(li,arguments);return`\x1B[${38+t};5;${r}m`},Da=(e,t)=>function(){let r=e.apply(li,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function I3(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],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 i of Object.keys(t)){let s=t[i];for(let o of Object.keys(s)){let a=s[o];t[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=t[o],e.set(a[0],a[1])}Object.defineProperty(t,i,{value:s,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:va(r,0)},t.color.ansi256={ansi256:Aa(r,0)},t.color.ansi16m={rgb:Da(n,0)},t.bgColor.ansi={ansi:va(r,10)},t.bgColor.ansi256={ansi256:Aa(r,10)},t.bgColor.ansi16m={rgb:Da(n,10)};for(let i of Object.keys(li)){if(typeof li[i]!="object")continue;let s=li[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(t.color.ansi[i]=va(s.ansi16,0),t.bgColor.ansi[i]=va(s.ansi16,10)),"ansi256"in s&&(t.color.ansi256[i]=Aa(s.ansi256,0),t.bgColor.ansi256[i]=Aa(s.ansi256,10)),"rgb"in s&&(t.color.ansi16m[i]=Da(s.rgb,0),t.bgColor.ansi16m[i]=Da(s.rgb,10))}return t}Object.defineProperty(Wb,"exports",{enumerable:!0,get:I3})});var Yb=y((pj,Vb)=>{"use strict";Vb.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var Jb=y((mj,Kb)=>{"use strict";var L3=require("os"),Mt=Yb(),Ve=process.env,fi;Mt("no-color")||Mt("no-colors")||Mt("color=false")?fi=!1:(Mt("color")||Mt("colors")||Mt("color=true")||Mt("color=always"))&&(fi=!0);"FORCE_COLOR"in Ve&&(fi=Ve.FORCE_COLOR.length===0||parseInt(Ve.FORCE_COLOR,10)!==0);function N3(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function M3(e){if(fi===!1)return 0;if(Mt("color=16m")||Mt("color=full")||Mt("color=truecolor"))return 3;if(Mt("color=256"))return 2;if(e&&!e.isTTY&&fi!==!0)return 0;let t=fi?1:0;if(process.platform==="win32"){let r=L3.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in Ve)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in Ve)||Ve.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in Ve)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ve.TEAMCITY_VERSION)?1:0;if(Ve.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ve){let r=parseInt((Ve.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ve.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ve.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ve.TERM)||"COLORTERM"in Ve?1:(Ve.TERM==="dumb",t)}function Eh(e){let t=M3(e);return N3(t)}Kb.exports={supportsColor:Eh,stdout:Eh(process.stdout),stderr:Eh(process.stderr)}});var tE=y((gj,eE)=>{"use strict";var q3=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Xb=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,j3=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,H3=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,$3=new Map([["n",`
|
|
9
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Qb(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):$3.get(e)||e}function U3(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(j3))r.push(i[2].replace(H3,(o,a,u)=>a?Qb(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function G3(e){Xb.lastIndex=0;let t=[],r;for(;(r=Xb.exec(e))!==null;){let n=r[1];if(r[2]){let i=U3(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Zb(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}eE.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(q3,(s,o,a,u,c,l)=>{if(o)i.push(Qb(o));else if(u){let f=i.join("");i=[],n.push(r.length===0?f:Zb(e,r)(f)),r.push({inverse:a,styles:G3(u)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Zb(e,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var oE=y((yj,Ds)=>{"use strict";var vh=Bb(),Te=zb(),wh=Jb().stdout,W3=tE(),nE=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),iE=["ansi","ansi","ansi256","ansi16m"],sE=new Set(["gray"]),hi=Object.create(null);function rE(e,t){t=t||{};let r=wh?wh.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function As(e){if(!this||!(this instanceof As)||this.template){let t={};return rE(t,e),t.template=function(){let r=[].slice.call(arguments);return Y3.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,As.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=As,t.template}rE(this,e)}nE&&(Te.blue.open="\x1B[94m");for(let e of Object.keys(Te))Te[e].closeRe=new RegExp(vh(Te[e].close),"g"),hi[e]={get(){let t=Te[e];return xa.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};hi.visible={get(){return xa.call(this,this._styles||[],!0,"visible")}};Te.color.closeRe=new RegExp(vh(Te.color.close),"g");for(let e of Object.keys(Te.color.ansi))sE.has(e)||(hi[e]={get(){let t=this.level;return function(){let n={open:Te.color[iE[t]][e].apply(null,arguments),close:Te.color.close,closeRe:Te.color.closeRe};return xa.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});Te.bgColor.closeRe=new RegExp(vh(Te.bgColor.close),"g");for(let e of Object.keys(Te.bgColor.ansi)){if(sE.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);hi[t]={get(){let r=this.level;return function(){let i={open:Te.bgColor[iE[r]][e].apply(null,arguments),close:Te.bgColor.close,closeRe:Te.bgColor.closeRe};return xa.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}}}var z3=Object.defineProperties(()=>{},hi);function xa(e,t,r){let n=function(){return V3.apply(n,arguments)};n._styles=e,n._empty=t;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=z3,n}function V3(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return"";if(t>1)for(let i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=Te.dim.open;nE&&this.hasGrey&&(Te.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return Te.dim.open=n,r}function Y3(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[t.raw[0]];for(let i=1;i<t.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[i]));return W3(e,n.join(""))}Object.defineProperties(As.prototype,hi);Ds.exports=As();Ds.exports.supportsColor=wh;Ds.exports.default=Ds.exports});var uE=y((_j,aE)=>{"use strict";var $r=oE(),K3=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",J3={info:$r.blue("\u2139"),success:$r.green("\u2714"),warning:$r.yellow("\u26A0"),error:$r.red("\u2716")},X3={info:$r.blue("i"),success:$r.green("\u221A"),warning:$r.yellow("\u203C"),error:$r.red("\xD7")};aE.exports=K3?J3:X3});var lE=y((bj,cE)=>{"use strict";cE.exports=({onlyFirst:e=!1}={})=>{let t=["[\\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(t,e?void 0:"g")}});var hE=y((Ej,fE)=>{"use strict";var Z3=lE();fE.exports=e=>typeof e=="string"?e.replace(Z3(),""):e});var dE=y((wj,Ca)=>{var Q3=function(){"use strict";function e(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,b){if(g===null)return null;if(b==0)return g;var v,S;if(typeof g!="object")return g;if(e.__isArray(g))v=[];else if(e.__isRegExp(g))v=new RegExp(g.source,s(g)),g.lastIndex&&(v.lastIndex=g.lastIndex);else if(e.__isDate(g))v=new Date(g.getTime());else{if(p&&Buffer.isBuffer(g))return Buffer.allocUnsafe?v=Buffer.allocUnsafe(g.length):v=new Buffer(g.length),g.copy(v),v;typeof c=="undefined"?(S=Object.getPrototypeOf(g),v=Object.create(S)):(v=Object.create(c),S=c)}if(a){var L=f.indexOf(g);if(L!=-1)return h[L];f.push(g),h.push(v)}for(var W in g){var M;S&&(M=Object.getOwnPropertyDescriptor(S,W)),!(M&&M.set==null)&&(v[W]=m(g[W],b-1))}return v}return m(o,u)}e.clonePrototype=function(a){if(a===null)return null;var u=function(){};return u.prototype=a,new u};function t(o){return Object.prototype.toString.call(o)}e.__objToStr=t;function r(o){return typeof o=="object"&&t(o)==="[object Date]"}e.__isDate=r;function n(o){return typeof o=="object"&&t(o)==="[object Array]"}e.__isArray=n;function i(o){return typeof o=="object"&&t(o)==="[object RegExp]"}e.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return e.__getRegExpFlags=s,e}();typeof Ca=="object"&&Ca.exports&&(Ca.exports=Q3)});var mE=y((vj,pE)=>{var eB=dE();pE.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]=="undefined"&&(e[r]=eB(t[r]))}),e}});var yE=y((Aj,gE)=>{gE.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 wE=y((Dj,Ah)=>{"use strict";var tB=mE(),xs=yE(),bE={nul:0,control:0};Ah.exports=function(t){return EE(t,bE)};Ah.exports.config=function(e){return e=tB(e||{},bE),function(r){return EE(r,e)}};function EE(e,t){if(typeof e!="string")return _E(e,t);for(var r=0,n=0;n<e.length;n++){var i=_E(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function _E(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:rB(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function rB(e){var t=0,r=xs.length-1,n;if(e<xs[0][0]||e>xs[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>xs[n][1])t=n+1;else if(e<xs[n][0])r=n-1;else return!0;return!1}});var AE=y((xj,vE)=>{"use strict";vE.exports=({stream:e=process.stdout}={})=>!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var xE=y((Cj,DE)=>{var Dh=require("stream");DE.exports=Ne;function Ne(e){Dh.apply(this),e=e||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}Ne.prototype=Object.create(Dh.prototype);Object.defineProperty(Ne.prototype,"constructor",{value:Ne,enumerable:!1});Ne.prototype.mute=function(){this.muted=!0};Ne.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Ne.prototype,"_onpipe",{value:nB,enumerable:!1,writable:!0,configurable:!0});function nB(e){this._src=e}Object.defineProperty(Ne.prototype,"isTTY",{get:iB,set:sB,enumerable:!0,configurable:!0});function iB(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function sB(e){Object.defineProperty(this,"isTTY",{value:e,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Ne.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Ne.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Ne.prototype.pipe=function(e,t){return this._dest=e,Dh.prototype.pipe.call(this,e,t)};Ne.prototype.pause=function(){if(this._src)return this._src.pause()};Ne.prototype.resume=function(){if(this._src)return this._src.resume()};Ne.prototype.write=function(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return e.indexOf(this._prompt)===0&&(e=e.substr(this._prompt.length),e=e.replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.substr(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)};Ne.prototype.end=function(e){this.muted&&(e&&this.replace?e=e.toString().replace(/./g,this.replace):e=null),e&&this.emit("data",e),this.emit("end")};function xh(e){return function(){var t=this._dest,r=this._src;t&&t[e]&&t[e].apply(t,arguments),r&&r[e]&&r[e].apply(r,arguments)}}Ne.prototype.destroy=xh("destroy");Ne.prototype.destroySoon=xh("destroySoon");Ne.prototype.close=xh("close")});var SE=y((Sj,Rh)=>{"use strict";var oB=require("readline"),aB=yb(),CE=Rb(),Sa=kb(),Ra=uE(),uB=hE(),cB=wE(),lB=AE(),fB=xE(),Ch=Symbol("text"),Fa=Symbol("prefixText"),hB=3,Sh=class{constructor(){this.requests=0,this.mutedStream=new fB,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let t=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(t.requests>0||s.emit===t.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(hB)&&process.emit("SIGINT"),Reflect.apply(t.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=oB.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)}},Ta,Oa=class{constructor(t){Ta||(Ta=new Sh),typeof t=="string"&&(t={text:t}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...t},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:lB({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(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=t}_updateInterval(t){t!==void 0&&(this.interval=t)}get spinner(){return this._spinner}set spinner(t){if(this.frameIndex=0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=t}else if(process.platform==="win32")this._spinner=Sa.line;else if(t===void 0)this._spinner=Sa.dots;else if(Sa[t])this._spinner=Sa[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Ch]}get prefixText(){return this[Fa]}get isSpinning(){return this.id!==void 0}updateLineCount(){let t=this.stream.columns||80,r=typeof this[Fa]=="string"?this[Fa]+"-":"";this.lineCount=uB(r+"--"+this[Ch]).split(`
|
|
10
|
-
`).reduce((n,i)=>n+Math.max(1,Math.ceil(
|
|
11
|
-
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&
|
|
12
|
-
`),this}},
|
|
6
|
+
`,i)}while(n!==-1);return s+=e.substr(i),s};B1.exports={stringReplaceAll:lR,stringEncaseCRLFWithFirstIndex:fR}});var q1=g((iI,M1)=>{"use strict";var hR=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,I1=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,pR=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,dR=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,mR=new Map([["n",`
|
|
7
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function N1(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):mR.get(e)||e}function gR(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(pR))r.push(i[2].replace(dR,(u,a,c)=>a?N1(a):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`)}return r}function yR(e){I1.lastIndex=0;let t=[],r;for(;(r=I1.exec(e))!==null;){let n=r[1];if(r[2]){let i=gR(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function L1(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}M1.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(hR,(s,o,u,a,c,l)=>{if(o)i.push(N1(o));else if(a){let f=i.join("");i=[],n.push(r.length===0?f:L1(e,r)(f)),r.push({inverse:u,styles:yR(a)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(L1(e,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var U1=g((sI,G1)=>{"use strict";var $i=jl(),{stdout:Wl,stderr:zl}=Gl(),{stringReplaceAll:ER,stringEncaseCRLFWithFirstIndex:bR}=P1(),j1=["ansi","ansi","ansi256","ansi16m"],In=Object.create(null),_R=(e,t={})=>{if(t.level>3||t.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let r=Wl?Wl.level:0;e.level=t.level===void 0?r:t.level},Yl=class{constructor(t){return $1(t)}},$1=e=>{let t={};return _R(t,e),t.template=(...r)=>vR(t.template,...r),Object.setPrototypeOf(t,_o.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Yl,t.template};function _o(e){return $1(e)}for(let[e,t]of Object.entries($i))In[e]={get(){let r=Do(this,Vl(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};In.visible={get(){let e=Do(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var H1=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of H1)In[e]={get(){let{level:t}=this;return function(...r){let n=Vl($i.color[j1[t]][e](...r),$i.color.close,this._styler);return Do(this,n,this._isEmpty)}}};for(let e of H1){let t="bg"+e[0].toUpperCase()+e.slice(1);In[t]={get(){let{level:r}=this;return function(...n){let i=Vl($i.bgColor[j1[r]][e](...n),$i.bgColor.close,this._styler);return Do(this,i,this._isEmpty)}}}}var DR=Object.defineProperties(()=>{},{...In,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),Vl=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Do=(e,t,r)=>{let n=(...i)=>AR(n,i.length===1?""+i[0]:i.join(" "));return n.__proto__=DR,n._generator=e,n._styler=t,n._isEmpty=r,n},AR=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=ER(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
|
8
|
+
`);return s!==-1&&(t=bR(t,i,n,s)),n+t+i},Ul,vR=(e,...t)=>{let[r]=t;if(!Array.isArray(r))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Ul===void 0&&(Ul=q1()),Ul(e,i.join(""))};Object.defineProperties(_o.prototype,In);var Hi=_o();Hi.supportsColor=Wl;Hi.stderr=_o({level:zl?zl.level:0});Hi.stderr.supportsColor=zl;Hi.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};G1.exports=Hi});var z1=g((oI,Kl)=>{"use strict";var W1=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Kl.exports=W1;Kl.exports.default=W1});var Xl=g((uI,vo)=>{"use strict";var xR=z1(),Ao=new WeakMap,Y1=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",s=function(...o){if(Ao.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return xR(s,e),Ao.set(s,n),s};vo.exports=Y1;vo.exports.default=Y1;vo.exports.callCount=e=>{if(!Ao.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Ao.get(e)}});var V1=g((aI,xo)=>{xo.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&xo.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&xo.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Ql=g((cI,Mn)=>{var de=global.process,Zr=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};Zr(de)?(K1=require("assert"),Ln=V1(),X1=/^win/i.test(de.platform),Gi=require("events"),typeof Gi!="function"&&(Gi=Gi.EventEmitter),de.__signal_exit_emitter__?Re=de.__signal_exit_emitter__:(Re=de.__signal_exit_emitter__=new Gi,Re.count=0,Re.emitted={}),Re.infinite||(Re.setMaxListeners(1/0),Re.infinite=!0),Mn.exports=function(e,t){if(!Zr(global.process))return function(){};K1.equal(typeof e,"function","a callback must be provided for exit handler"),Nn===!1&&Zl();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){Re.removeListener(r,e),Re.listeners("exit").length===0&&Re.listeners("afterexit").length===0&&wo()};return Re.on(r,e),n},wo=function(){!Nn||!Zr(global.process)||(Nn=!1,Ln.forEach(function(t){try{de.removeListener(t,Co[t])}catch{}}),de.emit=So,de.reallyExit=Jl,Re.count-=1)},Mn.exports.unload=wo,Jr=function(t,r,n){Re.emitted[t]||(Re.emitted[t]=!0,Re.emit(t,r,n))},Co={},Ln.forEach(function(e){Co[e]=function(){if(Zr(global.process)){var r=de.listeners(e);r.length===Re.count&&(wo(),Jr("exit",null,e),Jr("afterexit",null,e),X1&&e==="SIGHUP"&&(e="SIGINT"),de.kill(de.pid,e))}}}),Mn.exports.signals=function(){return Ln},Nn=!1,Zl=function(){Nn||!Zr(global.process)||(Nn=!0,Re.count+=1,Ln=Ln.filter(function(t){try{return de.on(t,Co[t]),!0}catch{return!1}}),de.emit=J1,de.reallyExit=Z1)},Mn.exports.load=Zl,Jl=de.reallyExit,Z1=function(t){Zr(global.process)&&(de.exitCode=t||0,Jr("exit",de.exitCode,null),Jr("afterexit",de.exitCode,null),Jl.call(de,de.exitCode))},So=de.emit,J1=function(t,r){if(t==="exit"&&Zr(global.process)){r!==void 0&&(de.exitCode=r);var n=So.apply(this,arguments);return Jr("exit",de.exitCode,null),Jr("afterexit",de.exitCode,null),n}else return So.apply(this,arguments)}):Mn.exports=function(){return function(){}};var K1,Ln,X1,Gi,Re,wo,Jr,Co,Nn,Zl,Jl,Z1,So,J1});var ey=g((lI,Q1)=>{"use strict";var wR=Xl(),CR=Ql();Q1.exports=wR(()=>{CR(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var ty=g(qn=>{"use strict";var SR=ey(),Fo=!1;qn.show=(e=process.stderr)=>{e.isTTY&&(Fo=!1,e.write("\x1B[?25h"))};qn.hide=(e=process.stderr)=>{e.isTTY&&(SR(),Fo=!0,e.write("\x1B[?25l"))};qn.toggle=(e,t)=>{e!==void 0&&(Fo=e),Fo?qn.show(t):qn.hide(t)}});var ry=g((hI,FR)=>{FR.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 sy=g((pI,iy)=>{"use strict";var Ro=Object.assign({},ry()),ny=Object.keys(Ro);Object.defineProperty(Ro,"random",{get(){let e=Math.floor(Math.random()*ny.length),t=ny[e];return Ro[t]}});iy.exports=Ro});var uy=g((dI,oy)=>{"use strict";var RR=/[|\\{}()[\]^$+*?.]/g;oy.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(RR,"\\$&")}});var cy=g((mI,ay)=>{"use strict";ay.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var ef=g((gI,py)=>{var Qr=cy(),hy={};for(Oo in Qr)Qr.hasOwnProperty(Oo)&&(hy[Qr[Oo]]=Oo);var Oo,j=py.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(Ke in j)if(j.hasOwnProperty(Ke)){if(!("channels"in j[Ke]))throw new Error("missing channels property: "+Ke);if(!("labels"in j[Ke]))throw new Error("missing channel labels property: "+Ke);if(j[Ke].labels.length!==j[Ke].channels)throw new Error("channel and label counts mismatch: "+Ke);ly=j[Ke].channels,fy=j[Ke].labels,delete j[Ke].channels,delete j[Ke].labels,Object.defineProperty(j[Ke],"channels",{value:ly}),Object.defineProperty(j[Ke],"labels",{value:fy})}var ly,fy,Ke;j.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,u,a,c;return s===i?u=0:t===s?u=(r-n)/o:r===s?u=2+(n-t)/o:n===s&&(u=4+(t-r)/o),u=Math.min(u*60,360),u<0&&(u+=360),c=(i+s)/2,s===i?a=0:c<=.5?a=o/(s+i):a=o/(2-s-i),[u,a*100,c*100]};j.rgb.hsv=function(e){var t,r,n,i,s,o=e[0]/255,u=e[1]/255,a=e[2]/255,c=Math.max(o,u,a),l=c-Math.min(o,u,a),f=function(p){return(c-p)/6/l+1/2};return l===0?i=s=0:(s=l/c,t=f(o),r=f(u),n=f(a),o===c?i=n-r:u===c?i=1/3+t-n:a===c&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,c*100]};j.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=j.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};j.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,s,o,u;return u=Math.min(1-t,1-r,1-n),i=(1-t-u)/(1-u)||0,s=(1-r-u)/(1-u)||0,o=(1-n-u)/(1-u)||0,[i*100,s*100,o*100,u*100]};function OR(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}j.rgb.keyword=function(e){var t=hy[e];if(t)return t;var r=1/0,n;for(var i in Qr)if(Qr.hasOwnProperty(i)){var s=Qr[i],o=OR(e,s);o<r&&(r=o,n=i)}return n};j.keyword.rgb=function(e){return Qr[e]};j.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};j.rgb.lab=function(e){var t=j.rgb.xyz(e),r=t[0],n=t[1],i=t[2],s,o,u;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),u=200*(n-i),[s,o,u]};j.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o,u,a;if(r===0)return a=n*255,[a,a,a];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,u=[0,0,0];for(var c=0;c<3;c++)o=t+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?a=i+(s-i)*6*o:2*o<1?a=s:3*o<2?a=i+(s-i)*(2/3-o)*6:a=i,u[c]=a*255;return u};j.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01),o,u;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,u=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[t,o*100,u*100]};j.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),u=255*n*(1-r*s),a=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,a,o];case 1:return[u,n,o];case 2:return[o,n,a];case 3:return[o,u,n];case 4:return[a,o,n];case 5:return[n,o,u]}};j.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o,u;return u=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,u/=2,[t,o*100,u*100]};j.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,o,u,a;i>1&&(r/=i,n/=i),s=Math.floor(6*t),o=1-n,u=6*t-s,s&1&&(u=1-u),a=r+u*(o-r);var c,l,f;switch(s){default:case 6:case 0:c=o,l=a,f=r;break;case 1:c=a,l=o,f=r;break;case 2:c=r,l=o,f=a;break;case 3:c=r,l=a,f=o;break;case 4:c=a,l=r,f=o;break;case 5:c=o,l=r,f=a;break}return[c*255,l*255,f*255]};j.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s,o,u;return s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),u=1-Math.min(1,n*(1-i)+i),[s*255,o*255,u*255]};j.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};j.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(t-r),o=200*(r-n),[i,s,o]};j.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;var u=Math.pow(s,3),a=Math.pow(i,3),c=Math.pow(o,3);return s=u>.008856?u:(s-16/116)/7.787,i=a>.008856?a:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};j.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[t,o,s]};j.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[t,i,s]};j.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:j.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(s+=60),s};j.hsv.ansi16=function(e){return j.rgb.ansi16(j.hsv.rgb(e),e[2])};j.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};j.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};j.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};j.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};j.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(u){return u+u}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};j.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,u,a;return o<1?u=s/(1-o):u=0,o<=0?a=0:i===t?a=(r-n)/o%6:i===r?a=2+(n-t)/o:a=4+(t-r)/o+4,a/=6,a%=1,[a*360,o*100,u*100]};j.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};j.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};j.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=t%1*6,o=s%1,u=1-o,a=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return a=(1-r)*n,[(r*i[0]+a)*255,(r*i[1]+a)*255,(r*i[2]+a)*255]};j.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};j.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};j.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};j.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};j.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};j.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};j.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};j.gray.hsl=j.gray.hsv=function(e){return[0,0,e[0]]};j.gray.hwb=function(e){return[0,100,e[0]]};j.gray.cmyk=function(e){return[0,0,0,e[0]]};j.gray.lab=function(e){return[e[0],0,0]};j.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};j.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var my=g((yI,dy)=>{var To=ef();function TR(){for(var e={},t=Object.keys(To),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function kR(e){var t=TR(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(To[n]),s=i.length,o=0;o<s;o++){var u=i[o],a=t[u];a.distance===-1&&(a.distance=t[n].distance+1,a.parent=n,r.unshift(u))}return t}function BR(e,t){return function(r){return t(e(r))}}function PR(e,t){for(var r=[t[e].parent,e],n=To[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=BR(To[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}dy.exports=function(e){for(var t=kR(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var o=n[s],u=t[o];u.parent!==null&&(r[o]=PR(o,t))}return r}});var yy=g((EI,gy)=>{var tf=ef(),IR=my(),jn={},LR=Object.keys(tf);function NR(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function MR(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}LR.forEach(function(e){jn[e]={},Object.defineProperty(jn[e],"channels",{value:tf[e].channels}),Object.defineProperty(jn[e],"labels",{value:tf[e].labels});var t=IR(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];jn[e][n]=MR(i),jn[e][n].raw=NR(i)})});gy.exports=jn});var by=g((bI,Ey)=>{"use strict";var $n=yy(),ko=(e,t)=>function(){return`\x1B[${e.apply($n,arguments)+t}m`},Bo=(e,t)=>function(){let r=e.apply($n,arguments);return`\x1B[${38+t};5;${r}m`},Po=(e,t)=>function(){let r=e.apply($n,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function qR(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],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 i of Object.keys(t)){let s=t[i];for(let o of Object.keys(s)){let u=s[o];t[o]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},s[o]=t[o],e.set(u[0],u[1])}Object.defineProperty(t,i,{value:s,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:ko(r,0)},t.color.ansi256={ansi256:Bo(r,0)},t.color.ansi16m={rgb:Po(n,0)},t.bgColor.ansi={ansi:ko(r,10)},t.bgColor.ansi256={ansi256:Bo(r,10)},t.bgColor.ansi16m={rgb:Po(n,10)};for(let i of Object.keys($n)){if(typeof $n[i]!="object")continue;let s=$n[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(t.color.ansi[i]=ko(s.ansi16,0),t.bgColor.ansi[i]=ko(s.ansi16,10)),"ansi256"in s&&(t.color.ansi256[i]=Bo(s.ansi256,0),t.bgColor.ansi256[i]=Bo(s.ansi256,10)),"rgb"in s&&(t.color.ansi16m[i]=Po(s.rgb,0),t.bgColor.ansi16m[i]=Po(s.rgb,10))}return t}Object.defineProperty(Ey,"exports",{enumerable:!0,get:qR})});var Dy=g((_I,_y)=>{"use strict";_y.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var vy=g((DI,Ay)=>{"use strict";var jR=require("os"),Ct=Dy(),je=process.env,Hn;Ct("no-color")||Ct("no-colors")||Ct("color=false")?Hn=!1:(Ct("color")||Ct("colors")||Ct("color=true")||Ct("color=always"))&&(Hn=!0);"FORCE_COLOR"in je&&(Hn=je.FORCE_COLOR.length===0||parseInt(je.FORCE_COLOR,10)!==0);function $R(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function HR(e){if(Hn===!1)return 0;if(Ct("color=16m")||Ct("color=full")||Ct("color=truecolor"))return 3;if(Ct("color=256"))return 2;if(e&&!e.isTTY&&Hn!==!0)return 0;let t=Hn?1:0;if(process.platform==="win32"){let r=jR.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in je)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in je)||je.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in je)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(je.TEAMCITY_VERSION)?1:0;if(je.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in je){let r=parseInt((je.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(je.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(je.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(je.TERM)||"COLORTERM"in je?1:(je.TERM==="dumb",t)}function rf(e){let t=HR(e);return $R(t)}Ay.exports={supportsColor:rf,stdout:rf(process.stdout),stderr:rf(process.stderr)}});var Fy=g((AI,Sy)=>{"use strict";var GR=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,xy=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,UR=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,WR=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,zR=new Map([["n",`
|
|
9
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Cy(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):zR.get(e)||e}function YR(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(UR))r.push(i[2].replace(WR,(o,u,a)=>u?Cy(u):a));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function VR(e){xy.lastIndex=0;let t=[],r;for(;(r=xy.exec(e))!==null;){let n=r[1];if(r[2]){let i=YR(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function wy(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}Sy.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(GR,(s,o,u,a,c,l)=>{if(o)i.push(Cy(o));else if(a){let f=i.join("");i=[],n.push(r.length===0?f:wy(e,r)(f)),r.push({inverse:u,styles:VR(a)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(wy(e,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var By=g((vI,Wi)=>{"use strict";var sf=uy(),ve=by(),nf=vy().stdout,KR=Fy(),Oy=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Ty=["ansi","ansi","ansi256","ansi16m"],ky=new Set(["gray"]),Gn=Object.create(null);function Ry(e,t){t=t||{};let r=nf?nf.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function Ui(e){if(!this||!(this instanceof Ui)||this.template){let t={};return Ry(t,e),t.template=function(){let r=[].slice.call(arguments);return JR.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,Ui.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=Ui,t.template}Ry(this,e)}Oy&&(ve.blue.open="\x1B[94m");for(let e of Object.keys(ve))ve[e].closeRe=new RegExp(sf(ve[e].close),"g"),Gn[e]={get(){let t=ve[e];return Io.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};Gn.visible={get(){return Io.call(this,this._styles||[],!0,"visible")}};ve.color.closeRe=new RegExp(sf(ve.color.close),"g");for(let e of Object.keys(ve.color.ansi))ky.has(e)||(Gn[e]={get(){let t=this.level;return function(){let n={open:ve.color[Ty[t]][e].apply(null,arguments),close:ve.color.close,closeRe:ve.color.closeRe};return Io.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});ve.bgColor.closeRe=new RegExp(sf(ve.bgColor.close),"g");for(let e of Object.keys(ve.bgColor.ansi)){if(ky.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);Gn[t]={get(){let r=this.level;return function(){let i={open:ve.bgColor[Ty[r]][e].apply(null,arguments),close:ve.bgColor.close,closeRe:ve.bgColor.closeRe};return Io.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}}}var XR=Object.defineProperties(()=>{},Gn);function Io(e,t,r){let n=function(){return ZR.apply(n,arguments)};n._styles=e,n._empty=t;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=XR,n}function ZR(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return"";if(t>1)for(let i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=ve.dim.open;Oy&&this.hasGrey&&(ve.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return ve.dim.open=n,r}function JR(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[t.raw[0]];for(let i=1;i<t.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[i]));return KR(e,n.join(""))}Object.defineProperties(Ui.prototype,Gn);Wi.exports=Ui();Wi.exports.supportsColor=nf;Wi.exports.default=Wi.exports});var Iy=g((xI,Py)=>{"use strict";var wr=By(),QR=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",eO={info:wr.blue("\u2139"),success:wr.green("\u2714"),warning:wr.yellow("\u26A0"),error:wr.red("\u2716")},tO={info:wr.blue("i"),success:wr.green("\u221A"),warning:wr.yellow("\u203C"),error:wr.red("\xD7")};Py.exports=QR?eO:tO});var Ny=g((wI,Ly)=>{"use strict";Ly.exports=({onlyFirst:e=!1}={})=>{let t=["[\\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(t,e?void 0:"g")}});var qy=g((CI,My)=>{"use strict";var rO=Ny();My.exports=e=>typeof e=="string"?e.replace(rO(),""):e});var jy=g((SI,Lo)=>{var nO=function(){"use strict";function e(o,u,a,c){var l;typeof u=="object"&&(a=u.depth,c=u.prototype,l=u.filter,u=u.circular);var f=[],p=[],_=typeof Buffer!="undefined";typeof u=="undefined"&&(u=!0),typeof a=="undefined"&&(a=1/0);function E(m,D){if(m===null)return null;if(D==0)return m;var A,R;if(typeof m!="object")return m;if(e.__isArray(m))A=[];else if(e.__isRegExp(m))A=new RegExp(m.source,s(m)),m.lastIndex&&(A.lastIndex=m.lastIndex);else if(e.__isDate(m))A=new Date(m.getTime());else{if(_&&Buffer.isBuffer(m))return Buffer.allocUnsafe?A=Buffer.allocUnsafe(m.length):A=new Buffer(m.length),m.copy(A),A;typeof c=="undefined"?(R=Object.getPrototypeOf(m),A=Object.create(R)):(A=Object.create(c),R=c)}if(u){var M=f.indexOf(m);if(M!=-1)return p[M];f.push(m),p.push(A)}for(var W in m){var L;R&&(L=Object.getOwnPropertyDescriptor(R,W)),!(L&&L.set==null)&&(A[W]=E(m[W],D-1))}return A}return E(o,a)}e.clonePrototype=function(u){if(u===null)return null;var a=function(){};return a.prototype=u,new a};function t(o){return Object.prototype.toString.call(o)}e.__objToStr=t;function r(o){return typeof o=="object"&&t(o)==="[object Date]"}e.__isDate=r;function n(o){return typeof o=="object"&&t(o)==="[object Array]"}e.__isArray=n;function i(o){return typeof o=="object"&&t(o)==="[object RegExp]"}e.__isRegExp=i;function s(o){var u="";return o.global&&(u+="g"),o.ignoreCase&&(u+="i"),o.multiline&&(u+="m"),u}return e.__getRegExpFlags=s,e}();typeof Lo=="object"&&Lo.exports&&(Lo.exports=nO)});var Hy=g((FI,$y)=>{var iO=jy();$y.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]=="undefined"&&(e[r]=iO(t[r]))}),e}});var Uy=g((RI,Gy)=>{Gy.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 Vy=g((OI,of)=>{"use strict";var sO=Hy(),zi=Uy(),zy={nul:0,control:0};of.exports=function(t){return Yy(t,zy)};of.exports.config=function(e){return e=sO(e||{},zy),function(r){return Yy(r,e)}};function Yy(e,t){if(typeof e!="string")return Wy(e,t);for(var r=0,n=0;n<e.length;n++){var i=Wy(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function Wy(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:oO(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function oO(e){var t=0,r=zi.length-1,n;if(e<zi[0][0]||e>zi[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>zi[n][1])t=n+1;else if(e<zi[n][0])r=n-1;else return!0;return!1}});var Xy=g((TI,Ky)=>{"use strict";Ky.exports=({stream:e=process.stdout}={})=>!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var Jy=g((kI,Zy)=>{var uf=require("stream");Zy.exports=Oe;function Oe(e){uf.apply(this),e=e||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}Oe.prototype=Object.create(uf.prototype);Object.defineProperty(Oe.prototype,"constructor",{value:Oe,enumerable:!1});Oe.prototype.mute=function(){this.muted=!0};Oe.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Oe.prototype,"_onpipe",{value:uO,enumerable:!1,writable:!0,configurable:!0});function uO(e){this._src=e}Object.defineProperty(Oe.prototype,"isTTY",{get:aO,set:cO,enumerable:!0,configurable:!0});function aO(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function cO(e){Object.defineProperty(this,"isTTY",{value:e,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Oe.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Oe.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Oe.prototype.pipe=function(e,t){return this._dest=e,uf.prototype.pipe.call(this,e,t)};Oe.prototype.pause=function(){if(this._src)return this._src.pause()};Oe.prototype.resume=function(){if(this._src)return this._src.resume()};Oe.prototype.write=function(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return e.indexOf(this._prompt)===0&&(e=e.substr(this._prompt.length),e=e.replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.substr(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)};Oe.prototype.end=function(e){this.muted&&(e&&this.replace?e=e.toString().replace(/./g,this.replace):e=null),e&&this.emit("data",e),this.emit("end")};function af(e){return function(){var t=this._dest,r=this._src;t&&t[e]&&t[e].apply(t,arguments),r&&r[e]&&r[e].apply(r,arguments)}}Oe.prototype.destroy=af("destroy");Oe.prototype.destroySoon=af("destroySoon");Oe.prototype.close=af("close")});var eE=g((BI,ff)=>{"use strict";var lO=require("readline"),fO=U1(),Qy=ty(),No=sy(),Mo=Iy(),hO=qy(),pO=Vy(),dO=Xy(),mO=Jy(),cf=Symbol("text"),qo=Symbol("prefixText"),gO=3,lf=class{constructor(){this.requests=0,this.mutedStream=new mO,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let t=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(t.requests>0||s.emit===t.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(gO)&&process.emit("SIGINT"),Reflect.apply(t.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=lO.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)}},jo,$o=class{constructor(t){jo||(jo=new lf),typeof t=="string"&&(t={text:t}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...t},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:dO({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(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=t}_updateInterval(t){t!==void 0&&(this.interval=t)}get spinner(){return this._spinner}set spinner(t){if(this.frameIndex=0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=t}else if(process.platform==="win32")this._spinner=No.line;else if(t===void 0)this._spinner=No.dots;else if(No[t])this._spinner=No[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[cf]}get prefixText(){return this[qo]}get isSpinning(){return this.id!==void 0}updateLineCount(){let t=this.stream.columns||80,r=typeof this[qo]=="string"?this[qo]+"-":"";this.lineCount=hO(r+"--"+this[cf]).split(`
|
|
10
|
+
`).reduce((n,i)=>n+Math.max(1,Math.ceil(pO(i)/t)),0)}set text(t){this[cf]=t,this.updateLineCount()}set prefixText(t){this[qo]=t,this.updateLineCount()}frame(){let{frames:t}=this.spinner,r=t[this.frameIndex];this.color&&(r=fO[this.color](r)),this.frameIndex=++this.frameIndex%t.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 t=0;t<this.linesToClear;t++)t>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(t){return t&&(this.text=t),this.isEnabled?this.isSpinning?this:(this.hideCursor&&Qy.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,jo.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
|
11
|
+
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&Qy.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(jo.stop(),this.isDiscardingStdin=!1),this):this}succeed(t){return this.stopAndPersist({symbol:Mo.success,text:t})}fail(t){return this.stopAndPersist({symbol:Mo.error,text:t})}warn(t){return this.stopAndPersist({symbol:Mo.warning,text:t})}info(t){return this.stopAndPersist({symbol:Mo.info,text:t})}stopAndPersist(t={}){let r=t.prefixText||this.prefixText,n=typeof r=="string"&&r!==""?r+" ":"",i=t.text||this.text,s=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${n}${t.symbol||" "}${s}
|
|
12
|
+
`),this}},yO=function(e){return new $o(e)};ff.exports=yO;ff.exports.promise=(e,t)=>{if(typeof e.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new $o(t);return r.start(),(async()=>{try{await e,r.succeed()}catch{r.fail()}})(),r}});var rE=g((PI,tE)=>{"use strict";var EO=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.substr(s),o},bO=(e,t,r,n)=>{let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
|
|
13
13
|
`:`
|
|
14
14
|
`)+r,i=n+1,n=e.indexOf(`
|
|
15
|
-
`,i)}while(n!==-1);return s+=e.substr(i),s};
|
|
16
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function
|
|
17
|
-
`);return s!==-1&&(t=AB(t,i,n,s)),n+t+i},Fh,qE=(e,...t)=>{let[r]=t;if(!ka(r)||!ka(r.raw))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Fh===void 0&&(Fh=BE()),Fh(e,i.join(""))};Object.defineProperties(Pa.prototype,di);var Ia=Pa();Ia.supportsColor=Th;Ia.stderr=Pa({level:Oh?Oh.level:0});Ia.stderr.supportsColor=Oh;jE.exports=Ia});var $E=y((Oj,La)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,s=e.min,o=e.max,a=e.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 _=c(d);this._originalInput=d,this._r=_.r,this._g=_.g,this._b=_.b,this._a=_.a,this._roundA=i(100*this._a)/100,this._format=w.format||_.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=_.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,_,O,H,j,ue;return w=d.r/255,_=d.g/255,O=d.b/255,w<=.03928?H=w/12.92:H=e.pow((w+.055)/1.055,2.4),_<=.03928?j=_/12.92:j=e.pow((_+.055)/1.055,2.4),O<=.03928?ue=O/12.92:ue=e.pow((O+.055)/1.055,2.4),.2126*H+.7152*j+.0722*ue},setAlpha:function(d){return this._a=C(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),_=i(d.s*100),O=i(d.v*100);return this._a==1?"hsv("+w+", "+_+"%, "+O+"%)":"hsva("+w+", "+_+"%, "+O+"%, "+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),_=i(d.s*100),O=i(d.l*100);return this._a==1?"hsl("+w+", "+_+"%, "+O+"%)":"hsla("+w+", "+_+"%, "+O+"%, "+this._roundA+")"},toHex:function(d){return g(this._r,this._g,this._b,d)},toHexString:function(d){return"#"+this.toHex(d)},toHex8:function(d){return b(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(k(this._r,255)*100)+"%",g:i(k(this._g,255)*100)+"%",b:i(k(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(k(this._r,255)*100)+"%, "+i(k(this._g,255)*100)+"%, "+i(k(this._b,255)*100)+"%)":"rgba("+i(k(this._r,255)*100)+"%, "+i(k(this._g,255)*100)+"%, "+i(k(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:A[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(d){var w="#"+v(this._r,this._g,this._b,this._a),_=w,O=this._gradientType?"GradientType = 1, ":"";if(d){var H=u(d);_="#"+v(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+O+"startColorstr="+w+",endColorstr="+_+")"},toString:function(d){var w=!!d;d=d||this._format;var _=!1,O=this._a<1&&this._a>=0,H=!w&&O&&(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"&&(_=this.toRgbString()),d==="prgb"&&(_=this.toPercentageRgbString()),(d==="hex"||d==="hex6")&&(_=this.toHexString()),d==="hex3"&&(_=this.toHexString(!0)),d==="hex4"&&(_=this.toHex8String(!0)),d==="hex8"&&(_=this.toHex8String()),d==="name"&&(_=this.toName()),d==="hsl"&&(_=this.toHslString()),d==="hsv"&&(_=this.toHsvString()),_||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(d,w){var _=d.apply(null,[this].concat([].slice.call(w)));return this._r=_._r,this._g=_._g,this._b=_._b,this.setAlpha(_._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(J,arguments)},darken:function(){return this._applyModification(z,arguments)},desaturate:function(){return this._applyModification(S,arguments)},saturate:function(){return this._applyModification(L,arguments)},greyscale:function(){return this._applyModification(W,arguments)},spin:function(){return this._applyModification(Y,arguments)},_applyCombination:function(d,w){return d.apply(null,[this].concat([].slice.call(w)))},analogous:function(){return this._applyCombination(oe,arguments)},complement:function(){return this._applyCombination(te,arguments)},monochromatic:function(){return this._applyCombination(ot,arguments)},splitcomplement:function(){return this._applyCombination(ce,arguments)},triad:function(){return this._applyCombination(ve,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},u.fromRatio=function(d,w){if(typeof d=="object"){var _={};for(var O in d)d.hasOwnProperty(O)&&(O==="a"?_[O]=d[O]:_[O]=Ae(d[O]));d=_}return u(d,w)};function c(d){var w={r:0,g:0,b:0},_=1,O=null,H=null,j=null,ue=!1,we=!1;return typeof d=="string"&&(d=he(d)),typeof d=="object"&&(I(d.r)&&I(d.g)&&I(d.b)?(w=l(d.r,d.g,d.b),ue=!0,we=String(d.r).substr(-1)==="%"?"prgb":"rgb"):I(d.h)&&I(d.s)&&I(d.v)?(O=Ae(d.s),H=Ae(d.v),w=m(d.h,O,H),ue=!0,we="hsv"):I(d.h)&&I(d.s)&&I(d.l)&&(O=Ae(d.s),j=Ae(d.l),w=h(d.h,O,j),ue=!0,we="hsl"),d.hasOwnProperty("a")&&(_=d.a)),_=C(_),{ok:ue,format:d.format||we,r:s(255,o(w.r,0)),g:s(255,o(w.g,0)),b:s(255,o(w.b,0)),a:_}}function l(d,w,_){return{r:k(d,255)*255,g:k(w,255)*255,b:k(_,255)*255}}function f(d,w,_){d=k(d,255),w=k(w,255),_=k(_,255);var O=o(d,w,_),H=s(d,w,_),j,ue,we=(O+H)/2;if(O==H)j=ue=0;else{var De=O-H;switch(ue=we>.5?De/(2-O-H):De/(O+H),O){case d:j=(w-_)/De+(w<_?6:0);break;case w:j=(_-d)/De+2;break;case _:j=(d-w)/De+4;break}j/=6}return{h:j,s:ue,l:we}}function h(d,w,_){var O,H,j;d=k(d,360),w=k(w,100),_=k(_,100);function ue(vt,rs,Lt){return Lt<0&&(Lt+=1),Lt>1&&(Lt-=1),Lt<1/6?vt+(rs-vt)*6*Lt:Lt<1/2?rs:Lt<2/3?vt+(rs-vt)*(2/3-Lt)*6:vt}if(w===0)O=H=j=_;else{var we=_<.5?_*(1+w):_+w-_*w,De=2*_-we;O=ue(De,we,d+1/3),H=ue(De,we,d),j=ue(De,we,d-1/3)}return{r:O*255,g:H*255,b:j*255}}function p(d,w,_){d=k(d,255),w=k(w,255),_=k(_,255);var O=o(d,w,_),H=s(d,w,_),j,ue,we=O,De=O-H;if(ue=O===0?0:De/O,O==H)j=0;else{switch(O){case d:j=(w-_)/De+(w<_?6:0);break;case w:j=(_-d)/De+2;break;case _:j=(d-w)/De+4;break}j/=6}return{h:j,s:ue,v:we}}function m(d,w,_){d=k(d,360)*6,w=k(w,100),_=k(_,100);var O=e.floor(d),H=d-O,j=_*(1-w),ue=_*(1-H*w),we=_*(1-(1-H)*w),De=O%6,vt=[_,ue,j,j,we,_][De],rs=[we,_,_,ue,j,j][De],Lt=[j,j,we,_,_,ue][De];return{r:vt*255,g:rs*255,b:Lt*255}}function g(d,w,_,O){var H=[ae(i(d).toString(16)),ae(i(w).toString(16)),ae(i(_).toString(16))];return O&&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 b(d,w,_,O,H){var j=[ae(i(d).toString(16)),ae(i(w).toString(16)),ae(i(_).toString(16)),ae(K(O))];return H&&j[0].charAt(0)==j[0].charAt(1)&&j[1].charAt(0)==j[1].charAt(1)&&j[2].charAt(0)==j[2].charAt(1)&&j[3].charAt(0)==j[3].charAt(1)?j[0].charAt(0)+j[1].charAt(0)+j[2].charAt(0)+j[3].charAt(0):j.join("")}function v(d,w,_,O){var H=[ae(K(O)),ae(i(d).toString(16)),ae(i(w).toString(16)),ae(i(_).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 S(d,w){w=w===0?0:w||10;var _=u(d).toHsl();return _.s-=w/100,_.s=G(_.s),u(_)}function L(d,w){w=w===0?0:w||10;var _=u(d).toHsl();return _.s+=w/100,_.s=G(_.s),u(_)}function W(d){return u(d).desaturate(100)}function M(d,w){w=w===0?0:w||10;var _=u(d).toHsl();return _.l+=w/100,_.l=G(_.l),u(_)}function J(d,w){w=w===0?0:w||10;var _=u(d).toRgb();return _.r=o(0,s(255,_.r-i(255*-(w/100)))),_.g=o(0,s(255,_.g-i(255*-(w/100)))),_.b=o(0,s(255,_.b-i(255*-(w/100)))),u(_)}function z(d,w){w=w===0?0:w||10;var _=u(d).toHsl();return _.l-=w/100,_.l=G(_.l),u(_)}function Y(d,w){var _=u(d).toHsl(),O=(_.h+w)%360;return _.h=O<0?360+O:O,u(_)}function te(d){var w=u(d).toHsl();return w.h=(w.h+180)%360,u(w)}function ve(d){var w=u(d).toHsl(),_=w.h;return[u(d),u({h:(_+120)%360,s:w.s,l:w.l}),u({h:(_+240)%360,s:w.s,l:w.l})]}function R(d){var w=u(d).toHsl(),_=w.h;return[u(d),u({h:(_+90)%360,s:w.s,l:w.l}),u({h:(_+180)%360,s:w.s,l:w.l}),u({h:(_+270)%360,s:w.s,l:w.l})]}function ce(d){var w=u(d).toHsl(),_=w.h;return[u(d),u({h:(_+72)%360,s:w.s,l:w.l}),u({h:(_+216)%360,s:w.s,l:w.l})]}function oe(d,w,_){w=w||6,_=_||30;var O=u(d).toHsl(),H=360/_,j=[u(d)];for(O.h=(O.h-(H*w>>1)+720)%360;--w;)O.h=(O.h+H)%360,j.push(u(O));return j}function ot(d,w){w=w||6;for(var _=u(d).toHsv(),O=_.h,H=_.s,j=_.v,ue=[],we=1/w;w--;)ue.push(u({h:O,s:H,v:j})),j=(j+we)%1;return ue}u.mix=function(d,w,_){_=_===0?0:_||50;var O=u(d).toRgb(),H=u(w).toRgb(),j=_/100,ue={r:(H.r-O.r)*j+O.r,g:(H.g-O.g)*j+O.g,b:(H.b-O.b)*j+O.b,a:(H.a-O.a)*j+O.a};return u(ue)},u.readability=function(d,w){var _=u(d),O=u(w);return(e.max(_.getLuminance(),O.getLuminance())+.05)/(e.min(_.getLuminance(),O.getLuminance())+.05)},u.isReadable=function(d,w,_){var O=u.readability(d,w),H,j;switch(j=!1,H=B(_),H.level+H.size){case"AAsmall":case"AAAlarge":j=O>=4.5;break;case"AAlarge":j=O>=3;break;case"AAAsmall":j=O>=7;break}return j},u.mostReadable=function(d,w,_){var O=null,H=0,j,ue,we,De;_=_||{},ue=_.includeFallbackColors,we=_.level,De=_.size;for(var vt=0;vt<w.length;vt++)j=u.readability(d,w[vt]),j>H&&(H=j,O=u(w[vt]));return u.isReadable(d,O,{level:we,size:De})||!ue?O:(_.includeFallbackColors=!1,u.mostReadable(d,["#fff","#000"],_))};var x=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"},A=u.hexNames=F(x);function F(d){var w={};for(var _ in d)d.hasOwnProperty(_)&&(w[d[_]]=_);return w}function C(d){return d=parseFloat(d),(isNaN(d)||d<0||d>1)&&(d=1),d}function k(d,w){le(d)&&(d="100%");var _=Oe(d);return d=s(w,o(0,parseFloat(d))),_&&(d=parseInt(d*w,10)/100),e.abs(d-w)<1e-6?1:d%w/parseFloat(w)}function G(d){return s(1,o(0,d))}function q(d){return parseInt(d,16)}function le(d){return typeof d=="string"&&d.indexOf(".")!=-1&&parseFloat(d)===1}function Oe(d){return typeof d=="string"&&d.indexOf("%")!=-1}function ae(d){return d.length==1?"0"+d:""+d}function Ae(d){return d<=1&&(d=d*100+"%"),d}function K(d){return e.round(parseFloat(d)*255).toString(16)}function tt(d){return q(d)/255}var mt=function(){var d="[-\\+]?\\d+%?",w="[-\\+]?\\d*\\.\\d+%?",_="(?:"+w+")|(?:"+d+")",O="[\\s|\\(]+("+_+")[,|\\s]+("+_+")[,|\\s]+("+_+")\\s*\\)?",H="[\\s|\\(]+("+_+")[,|\\s]+("+_+")[,|\\s]+("+_+")[,|\\s]+("+_+")\\s*\\)?";return{CSS_UNIT:new RegExp(_),rgb:new RegExp("rgb"+O),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+O),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+O),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!!mt.CSS_UNIT.exec(d)}function he(d){d=d.replace(t,"").replace(r,"").toLowerCase();var w=!1;if(x[d])d=x[d],w=!0;else if(d=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var _;return(_=mt.rgb.exec(d))?{r:_[1],g:_[2],b:_[3]}:(_=mt.rgba.exec(d))?{r:_[1],g:_[2],b:_[3],a:_[4]}:(_=mt.hsl.exec(d))?{h:_[1],s:_[2],l:_[3]}:(_=mt.hsla.exec(d))?{h:_[1],s:_[2],l:_[3],a:_[4]}:(_=mt.hsv.exec(d))?{h:_[1],s:_[2],v:_[3]}:(_=mt.hsva.exec(d))?{h:_[1],s:_[2],v:_[3],a:_[4]}:(_=mt.hex8.exec(d))?{r:q(_[1]),g:q(_[2]),b:q(_[3]),a:tt(_[4]),format:w?"name":"hex8"}:(_=mt.hex6.exec(d))?{r:q(_[1]),g:q(_[2]),b:q(_[3]),format:w?"name":"hex"}:(_=mt.hex4.exec(d))?{r:q(_[1]+""+_[1]),g:q(_[2]+""+_[2]),b:q(_[3]+""+_[3]),a:tt(_[4]+""+_[4]),format:w?"name":"hex8"}:(_=mt.hex3.exec(d))?{r:q(_[1]+""+_[1]),g:q(_[2]+""+_[2]),b:q(_[3]+""+_[3]),format:w?"name":"hex"}:!1}function B(d){var w,_;return d=d||{level:"AA",size:"small"},w=(d.level||"AA").toUpperCase(),_=(d.size||"small").toLowerCase(),w!=="AA"&&w!=="AAA"&&(w="AA"),_!=="small"&&_!=="large"&&(_="small"),{level:w,size:_}}typeof La!="undefined"&&La.exports?La.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u})(Math)});var KE=y((kj,YE)=>{var Ss=$E(),zE={r:256,g:256,b:256,a:1},VE={h:360,s:1,v:1,a:1};function Ih(e,t,r){let n={};for(let i in e)e.hasOwnProperty(i)&&(n[i]=r===0?0:(t[i]-e[i])/r);return n}function Lh(e,t,r,n){let i={};for(let s in t)t.hasOwnProperty(s)&&(i[s]=e[s]*r+t[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Bh(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),s=Ih(n,i,r),o=[e.color];for(let a=1;a<r;a++){let u=Lh(s,n,a,zE);o.push(Ss(u))}return o}function UE(e,t,r,n){let i=e.color.toHsv(),s=t.color.toHsv();if(i.s===0||s.s===0)return Bh(e,t,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=Ih(i,s,r),u=[e.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=Lh(a,i,l,VE);u.push(Ss(f))}return u}function GE(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<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=(t-1)*(e[s].pos-e[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!==t;)if(i<t){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 WE(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,c=e.length;u<c-1;u++)if(t>=e[u].pos&&t<e[u+1].pos){i=e[u],s=e[u+1];break}i||(i=s=e[e.length-1]);let o=Ih(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=Lh(o,i.color[r](),(t-i.pos)*100,n);return Ss(a)}var pi=class{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,i=-1,s=!1;this.stops=t.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?Ss(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:Ss(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 t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new pi(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.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 pi(t.concat(r.reverse()))}rgb(t){let r=GE(this.stops,t),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Bh(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Bh(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(t,r){let n=GE(this.stops,t),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=UE(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=UE(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(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(t){return WE(this.stops,t,"toRgb",zE)}hsvAt(t){return WE(this.stops,t,"toHsv",VE)}};YE.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new pi(e)}});var ew=y((Pj,Na)=>{"use strict";var XE=HE(),CB=KE(),JE=/\s/g;function Nh(...e){let t=CB.apply(this,e),r=(n,i)=>SB(n?n.toString():"",t,i);return r.multiline=(n,i)=>RB(n?n.toString():"",t,i),r}var ZE=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function SB(e,t,r){let n=QE(r),i=Math.max(e.replace(JE,"").length,t.stops.length),s=ZE(t,n,i),o="";for(let a of e)o+=a.match(JE)?a:XE.hex(s.shift().toHex())(a);return o}function RB(e,t,r){let n=QE(r),i=e.split(`
|
|
18
|
-
`),s=Math.max.apply(null,i.map(
|
|
19
|
-
`)}function
|
|
15
|
+
`,i)}while(n!==-1);return s+=e.substr(i),s};tE.exports={stringReplaceAll:EO,stringEncaseCRLFWithFirstIndex:bO}});var uE=g((II,oE)=>{"use strict";var _O=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,nE=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,DO=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,AO=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,vO=new Map([["n",`
|
|
16
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function sE(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):vO.get(e)||e}function xO(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(DO))r.push(i[2].replace(AO,(u,a,c)=>a?sE(a):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`)}return r}function wO(e){nE.lastIndex=0;let t=[],r;for(;(r=nE.exec(e))!==null;){let n=r[1];if(r[2]){let i=xO(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function iE(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}oE.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(_O,(s,o,u,a,c,l)=>{if(o)i.push(sE(o));else if(a){let f=i.join("");i=[],n.push(r.length===0?f:iE(e,r)(f)),r.push({inverse:u,styles:wO(a)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(iE(e,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var dE=g((LI,pE)=>{"use strict";var Yi=jl(),{stdout:pf,stderr:df}=Gl(),{stringReplaceAll:CO,stringEncaseCRLFWithFirstIndex:SO}=rE(),{isArray:Ho}=Array,cE=["ansi","ansi","ansi256","ansi16m"],Un=Object.create(null),FO=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=pf?pf.level:0;e.level=t.level===void 0?r:t.level},mf=class{constructor(t){return lE(t)}},lE=e=>{let t={};return FO(t,e),t.template=(...r)=>hE(t.template,...r),Object.setPrototypeOf(t,Go.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=mf,t.template};function Go(e){return lE(e)}for(let[e,t]of Object.entries(Yi))Un[e]={get(){let r=Uo(this,gf(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};Un.visible={get(){let e=Uo(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var fE=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of fE)Un[e]={get(){let{level:t}=this;return function(...r){let n=gf(Yi.color[cE[t]][e](...r),Yi.color.close,this._styler);return Uo(this,n,this._isEmpty)}}};for(let e of fE){let t="bg"+e[0].toUpperCase()+e.slice(1);Un[t]={get(){let{level:r}=this;return function(...n){let i=gf(Yi.bgColor[cE[r]][e](...n),Yi.bgColor.close,this._styler);return Uo(this,i,this._isEmpty)}}}}var RO=Object.defineProperties(()=>{},{...Un,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),gf=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Uo=(e,t,r)=>{let n=(...i)=>Ho(i[0])&&Ho(i[0].raw)?aE(n,hE(n,...i)):aE(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,RO),n._generator=e,n._styler=t,n._isEmpty=r,n},aE=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=CO(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
|
17
|
+
`);return s!==-1&&(t=SO(t,i,n,s)),n+t+i},hf,hE=(e,...t)=>{let[r]=t;if(!Ho(r)||!Ho(r.raw))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return hf===void 0&&(hf=uE()),hf(e,i.join(""))};Object.defineProperties(Go.prototype,Un);var Wo=Go();Wo.supportsColor=pf;Wo.stderr=Go({level:df?df.level:0});Wo.stderr.supportsColor=df;pE.exports=Wo});var mE=g((NI,zo)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,s=e.min,o=e.max,u=e.random;function a(h,y){if(h=h||"",y=y||{},h instanceof a)return h;if(!(this instanceof a))return new a(h,y);var d=c(h);this._originalInput=h,this._r=d.r,this._g=d.g,this._b=d.b,this._a=d.a,this._roundA=i(100*this._a)/100,this._format=y.format||d.format,this._gradientType=y.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=d.ok,this._tc_id=n++}a.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(),y,d,F,N,I,ie;return y=h.r/255,d=h.g/255,F=h.b/255,y<=.03928?N=y/12.92:N=e.pow((y+.055)/1.055,2.4),d<=.03928?I=d/12.92:I=e.pow((d+.055)/1.055,2.4),F<=.03928?ie=F/12.92:ie=e.pow((F+.055)/1.055,2.4),.2126*N+.7152*I+.0722*ie},setAlpha:function(h){return this._a=x(h),this._roundA=i(100*this._a)/100,this},toHsv:function(){var h=_(this._r,this._g,this._b);return{h:h.h*360,s:h.s,v:h.v,a:this._a}},toHsvString:function(){var h=_(this._r,this._g,this._b),y=i(h.h*360),d=i(h.s*100),F=i(h.v*100);return this._a==1?"hsv("+y+", "+d+"%, "+F+"%)":"hsva("+y+", "+d+"%, "+F+"%, "+this._roundA+")"},toHsl:function(){var h=f(this._r,this._g,this._b);return{h:h.h*360,s:h.s,l:h.l,a:this._a}},toHslString:function(){var h=f(this._r,this._g,this._b),y=i(h.h*360),d=i(h.s*100),F=i(h.l*100);return this._a==1?"hsl("+y+", "+d+"%, "+F+"%)":"hsla("+y+", "+d+"%, "+F+"%, "+this._roundA+")"},toHex:function(h){return m(this._r,this._g,this._b,h)},toHexString:function(h){return"#"+this.toHex(h)},toHex8:function(h){return D(this._r,this._g,this._b,this._a,h)},toHex8String:function(h){return"#"+this.toHex8(h)},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(O(this._r,255)*100)+"%",g:i(O(this._g,255)*100)+"%",b:i(O(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(O(this._r,255)*100)+"%, "+i(O(this._g,255)*100)+"%, "+i(O(this._b,255)*100)+"%)":"rgba("+i(O(this._r,255)*100)+"%, "+i(O(this._g,255)*100)+"%, "+i(O(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:b[m(this._r,this._g,this._b,!0)]||!1},toFilter:function(h){var y="#"+A(this._r,this._g,this._b,this._a),d=y,F=this._gradientType?"GradientType = 1, ":"";if(h){var N=a(h);d="#"+A(N._r,N._g,N._b,N._a)}return"progid:DXImageTransform.Microsoft.gradient("+F+"startColorstr="+y+",endColorstr="+d+")"},toString:function(h){var y=!!h;h=h||this._format;var d=!1,F=this._a<1&&this._a>=0,N=!y&&F&&(h==="hex"||h==="hex6"||h==="hex3"||h==="hex4"||h==="hex8"||h==="name");return N?h==="name"&&this._a===0?this.toName():this.toRgbString():(h==="rgb"&&(d=this.toRgbString()),h==="prgb"&&(d=this.toPercentageRgbString()),(h==="hex"||h==="hex6")&&(d=this.toHexString()),h==="hex3"&&(d=this.toHexString(!0)),h==="hex4"&&(d=this.toHex8String(!0)),h==="hex8"&&(d=this.toHex8String()),h==="name"&&(d=this.toName()),h==="hsl"&&(d=this.toHslString()),h==="hsv"&&(d=this.toHsvString()),d||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(h,y){var d=h.apply(null,[this].concat([].slice.call(y)));return this._r=d._r,this._g=d._g,this._b=d._b,this.setAlpha(d._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(X,arguments)},darken:function(){return this._applyModification(G,arguments)},desaturate:function(){return this._applyModification(R,arguments)},saturate:function(){return this._applyModification(M,arguments)},greyscale:function(){return this._applyModification(W,arguments)},spin:function(){return this._applyModification(U,arguments)},_applyCombination:function(h,y){return h.apply(null,[this].concat([].slice.call(y)))},analogous:function(){return this._applyCombination(re,arguments)},complement:function(){return this._applyCombination(J,arguments)},monochromatic:function(){return this._applyCombination(Xe,arguments)},splitcomplement:function(){return this._applyCombination(se,arguments)},triad:function(){return this._applyCombination(ge,arguments)},tetrad:function(){return this._applyCombination(w,arguments)}},a.fromRatio=function(h,y){if(typeof h=="object"){var d={};for(var F in h)h.hasOwnProperty(F)&&(F==="a"?d[F]=h[F]:d[F]=ye(h[F]));h=d}return a(h,y)};function c(h){var y={r:0,g:0,b:0},d=1,F=null,N=null,I=null,ie=!1,me=!1;return typeof h=="string"&&(h=ae(h)),typeof h=="object"&&(k(h.r)&&k(h.g)&&k(h.b)?(y=l(h.r,h.g,h.b),ie=!0,me=String(h.r).substr(-1)==="%"?"prgb":"rgb"):k(h.h)&&k(h.s)&&k(h.v)?(F=ye(h.s),N=ye(h.v),y=E(h.h,F,N),ie=!0,me="hsv"):k(h.h)&&k(h.s)&&k(h.l)&&(F=ye(h.s),I=ye(h.l),y=p(h.h,F,I),ie=!0,me="hsl"),h.hasOwnProperty("a")&&(d=h.a)),d=x(d),{ok:ie,format:h.format||me,r:s(255,o(y.r,0)),g:s(255,o(y.g,0)),b:s(255,o(y.b,0)),a:d}}function l(h,y,d){return{r:O(h,255)*255,g:O(y,255)*255,b:O(d,255)*255}}function f(h,y,d){h=O(h,255),y=O(y,255),d=O(d,255);var F=o(h,y,d),N=s(h,y,d),I,ie,me=(F+N)/2;if(F==N)I=ie=0;else{var Ee=F-N;switch(ie=me>.5?Ee/(2-F-N):Ee/(F+N),F){case h:I=(y-d)/Ee+(y<d?6:0);break;case y:I=(d-h)/Ee+2;break;case d:I=(h-y)/Ee+4;break}I/=6}return{h:I,s:ie,l:me}}function p(h,y,d){var F,N,I;h=O(h,360),y=O(y,100),d=O(d,100);function ie(pt,vi,xt){return xt<0&&(xt+=1),xt>1&&(xt-=1),xt<1/6?pt+(vi-pt)*6*xt:xt<1/2?vi:xt<2/3?pt+(vi-pt)*(2/3-xt)*6:pt}if(y===0)F=N=I=d;else{var me=d<.5?d*(1+y):d+y-d*y,Ee=2*d-me;F=ie(Ee,me,h+1/3),N=ie(Ee,me,h),I=ie(Ee,me,h-1/3)}return{r:F*255,g:N*255,b:I*255}}function _(h,y,d){h=O(h,255),y=O(y,255),d=O(d,255);var F=o(h,y,d),N=s(h,y,d),I,ie,me=F,Ee=F-N;if(ie=F===0?0:Ee/F,F==N)I=0;else{switch(F){case h:I=(y-d)/Ee+(y<d?6:0);break;case y:I=(d-h)/Ee+2;break;case d:I=(h-y)/Ee+4;break}I/=6}return{h:I,s:ie,v:me}}function E(h,y,d){h=O(h,360)*6,y=O(y,100),d=O(d,100);var F=e.floor(h),N=h-F,I=d*(1-y),ie=d*(1-N*y),me=d*(1-(1-N)*y),Ee=F%6,pt=[d,ie,I,I,me,d][Ee],vi=[me,d,d,ie,I,I][Ee],xt=[I,I,me,d,d,ie][Ee];return{r:pt*255,g:vi*255,b:xt*255}}function m(h,y,d,F){var N=[ne(i(h).toString(16)),ne(i(y).toString(16)),ne(i(d).toString(16))];return F&&N[0].charAt(0)==N[0].charAt(1)&&N[1].charAt(0)==N[1].charAt(1)&&N[2].charAt(0)==N[2].charAt(1)?N[0].charAt(0)+N[1].charAt(0)+N[2].charAt(0):N.join("")}function D(h,y,d,F,N){var I=[ne(i(h).toString(16)),ne(i(y).toString(16)),ne(i(d).toString(16)),ne(z(F))];return N&&I[0].charAt(0)==I[0].charAt(1)&&I[1].charAt(0)==I[1].charAt(1)&&I[2].charAt(0)==I[2].charAt(1)&&I[3].charAt(0)==I[3].charAt(1)?I[0].charAt(0)+I[1].charAt(0)+I[2].charAt(0)+I[3].charAt(0):I.join("")}function A(h,y,d,F){var N=[ne(z(F)),ne(i(h).toString(16)),ne(i(y).toString(16)),ne(i(d).toString(16))];return N.join("")}a.equals=function(h,y){return!h||!y?!1:a(h).toRgbString()==a(y).toRgbString()},a.random=function(){return a.fromRatio({r:u(),g:u(),b:u()})};function R(h,y){y=y===0?0:y||10;var d=a(h).toHsl();return d.s-=y/100,d.s=$(d.s),a(d)}function M(h,y){y=y===0?0:y||10;var d=a(h).toHsl();return d.s+=y/100,d.s=$(d.s),a(d)}function W(h){return a(h).desaturate(100)}function L(h,y){y=y===0?0:y||10;var d=a(h).toHsl();return d.l+=y/100,d.l=$(d.l),a(d)}function X(h,y){y=y===0?0:y||10;var d=a(h).toRgb();return d.r=o(0,s(255,d.r-i(255*-(y/100)))),d.g=o(0,s(255,d.g-i(255*-(y/100)))),d.b=o(0,s(255,d.b-i(255*-(y/100)))),a(d)}function G(h,y){y=y===0?0:y||10;var d=a(h).toHsl();return d.l-=y/100,d.l=$(d.l),a(d)}function U(h,y){var d=a(h).toHsl(),F=(d.h+y)%360;return d.h=F<0?360+F:F,a(d)}function J(h){var y=a(h).toHsl();return y.h=(y.h+180)%360,a(y)}function ge(h){var y=a(h).toHsl(),d=y.h;return[a(h),a({h:(d+120)%360,s:y.s,l:y.l}),a({h:(d+240)%360,s:y.s,l:y.l})]}function w(h){var y=a(h).toHsl(),d=y.h;return[a(h),a({h:(d+90)%360,s:y.s,l:y.l}),a({h:(d+180)%360,s:y.s,l:y.l}),a({h:(d+270)%360,s:y.s,l:y.l})]}function se(h){var y=a(h).toHsl(),d=y.h;return[a(h),a({h:(d+72)%360,s:y.s,l:y.l}),a({h:(d+216)%360,s:y.s,l:y.l})]}function re(h,y,d){y=y||6,d=d||30;var F=a(h).toHsl(),N=360/d,I=[a(h)];for(F.h=(F.h-(N*y>>1)+720)%360;--y;)F.h=(F.h+N)%360,I.push(a(F));return I}function Xe(h,y){y=y||6;for(var d=a(h).toHsv(),F=d.h,N=d.s,I=d.v,ie=[],me=1/y;y--;)ie.push(a({h:F,s:N,v:I})),I=(I+me)%1;return ie}a.mix=function(h,y,d){d=d===0?0:d||50;var F=a(h).toRgb(),N=a(y).toRgb(),I=d/100,ie={r:(N.r-F.r)*I+F.r,g:(N.g-F.g)*I+F.g,b:(N.b-F.b)*I+F.b,a:(N.a-F.a)*I+F.a};return a(ie)},a.readability=function(h,y){var d=a(h),F=a(y);return(e.max(d.getLuminance(),F.getLuminance())+.05)/(e.min(d.getLuminance(),F.getLuminance())+.05)},a.isReadable=function(h,y,d){var F=a.readability(h,y),N,I;switch(I=!1,N=T(d),N.level+N.size){case"AAsmall":case"AAAlarge":I=F>=4.5;break;case"AAlarge":I=F>=3;break;case"AAAsmall":I=F>=7;break}return I},a.mostReadable=function(h,y,d){var F=null,N=0,I,ie,me,Ee;d=d||{},ie=d.includeFallbackColors,me=d.level,Ee=d.size;for(var pt=0;pt<y.length;pt++)I=a.readability(h,y[pt]),I>N&&(N=I,F=a(y[pt]));return a.isReadable(h,F,{level:me,size:Ee})||!ie?F:(d.includeFallbackColors=!1,a.mostReadable(h,["#fff","#000"],d))};var v=a.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"},b=a.hexNames=C(v);function C(h){var y={};for(var d in h)h.hasOwnProperty(d)&&(y[h[d]]=d);return y}function x(h){return h=parseFloat(h),(isNaN(h)||h<0||h>1)&&(h=1),h}function O(h,y){oe(h)&&(h="100%");var d=xe(h);return h=s(y,o(0,parseFloat(h))),d&&(h=parseInt(h*y,10)/100),e.abs(h-y)<1e-6?1:h%y/parseFloat(y)}function $(h){return s(1,o(0,h))}function P(h){return parseInt(h,16)}function oe(h){return typeof h=="string"&&h.indexOf(".")!=-1&&parseFloat(h)===1}function xe(h){return typeof h=="string"&&h.indexOf("%")!=-1}function ne(h){return h.length==1?"0"+h:""+h}function ye(h){return h<=1&&(h=h*100+"%"),h}function z(h){return e.round(parseFloat(h)*255).toString(16)}function ze(h){return P(h)/255}var st=function(){var h="[-\\+]?\\d+%?",y="[-\\+]?\\d*\\.\\d+%?",d="(?:"+y+")|(?:"+h+")",F="[\\s|\\(]+("+d+")[,|\\s]+("+d+")[,|\\s]+("+d+")\\s*\\)?",N="[\\s|\\(]+("+d+")[,|\\s]+("+d+")[,|\\s]+("+d+")[,|\\s]+("+d+")\\s*\\)?";return{CSS_UNIT:new RegExp(d),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+N),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+N),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+N),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 k(h){return!!st.CSS_UNIT.exec(h)}function ae(h){h=h.replace(t,"").replace(r,"").toLowerCase();var y=!1;if(v[h])h=v[h],y=!0;else if(h=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var d;return(d=st.rgb.exec(h))?{r:d[1],g:d[2],b:d[3]}:(d=st.rgba.exec(h))?{r:d[1],g:d[2],b:d[3],a:d[4]}:(d=st.hsl.exec(h))?{h:d[1],s:d[2],l:d[3]}:(d=st.hsla.exec(h))?{h:d[1],s:d[2],l:d[3],a:d[4]}:(d=st.hsv.exec(h))?{h:d[1],s:d[2],v:d[3]}:(d=st.hsva.exec(h))?{h:d[1],s:d[2],v:d[3],a:d[4]}:(d=st.hex8.exec(h))?{r:P(d[1]),g:P(d[2]),b:P(d[3]),a:ze(d[4]),format:y?"name":"hex8"}:(d=st.hex6.exec(h))?{r:P(d[1]),g:P(d[2]),b:P(d[3]),format:y?"name":"hex"}:(d=st.hex4.exec(h))?{r:P(d[1]+""+d[1]),g:P(d[2]+""+d[2]),b:P(d[3]+""+d[3]),a:ze(d[4]+""+d[4]),format:y?"name":"hex8"}:(d=st.hex3.exec(h))?{r:P(d[1]+""+d[1]),g:P(d[2]+""+d[2]),b:P(d[3]+""+d[3]),format:y?"name":"hex"}:!1}function T(h){var y,d;return h=h||{level:"AA",size:"small"},y=(h.level||"AA").toUpperCase(),d=(h.size||"small").toLowerCase(),y!=="AA"&&y!=="AAA"&&(y="AA"),d!=="small"&&d!=="large"&&(d="small"),{level:y,size:d}}typeof zo!="undefined"&&zo.exports?zo.exports=a:typeof define=="function"&&define.amd?define(function(){return a}):window.tinycolor=a})(Math)});var AE=g((MI,DE)=>{var Vi=mE(),bE={r:256,g:256,b:256,a:1},_E={h:360,s:1,v:1,a:1};function Ef(e,t,r){let n={};for(let i in e)e.hasOwnProperty(i)&&(n[i]=r===0?0:(t[i]-e[i])/r);return n}function bf(e,t,r,n){let i={};for(let s in t)t.hasOwnProperty(s)&&(i[s]=e[s]*r+t[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function yf(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),s=Ef(n,i,r),o=[e.color];for(let u=1;u<r;u++){let a=bf(s,n,u,bE);o.push(Vi(a))}return o}function gE(e,t,r,n){let i=e.color.toHsv(),s=t.color.toHsv();if(i.s===0||s.s===0)return yf(e,t,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 u=Ef(i,s,r),a=[e.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,u.h=Math.pow(-1,o?1:0)*Math.abs(c)/r;for(let l=1;l<r;l++){let f=bf(u,i,l,_E);a.push(Vi(f))}return a}function yE(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<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=(t-1)*(e[s].pos-e[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!==t;)if(i<t){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 EE(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,s;for(let a=0,c=e.length;a<c-1;a++)if(t>=e[a].pos&&t<e[a+1].pos){i=e[a],s=e[a+1];break}i||(i=s=e[e.length-1]);let o=Ef(i.color[r](),s.color[r](),(s.pos-i.pos)*100),u=bf(o,i.color[r](),(t-i.pos)*100,n);return Vi(u)}var Wn=class{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,i=-1,s=!1;this.stops=t.map((o,u)=>{let a=o.pos!==void 0;if(r^a)throw new Error("Cannot mix positionned and not posionned color stops");if(a){let c=o.color!==void 0;if(!c&&(s||u===0||u===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!c,o={color:c?Vi(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:Vi(o.color!==void 0?o.color:o),pos:u/(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 t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new Wn(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.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 Wn(t.concat(r.reverse()))}rgb(t){let r=yE(this.stops,t),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=yf(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=yf(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(t,r){let n=yE(this.stops,t),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=gE(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let u=gE(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...u)}return i.push(this.stops[this.stops.length-1].color),i}css(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(t){return EE(this.stops,t,"toRgb",bE)}hsvAt(t){return EE(this.stops,t,"toHsv",_E)}};DE.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new Wn(e)}});var SE=g((qI,Yo)=>{"use strict";var xE=dE(),OO=AE(),vE=/\s/g;function _f(...e){let t=OO.apply(this,e),r=(n,i)=>TO(n?n.toString():"",t,i);return r.multiline=(n,i)=>kO(n?n.toString():"",t,i),r}var wE=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function TO(e,t,r){let n=CE(r),i=Math.max(e.replace(vE,"").length,t.stops.length),s=wE(t,n,i),o="";for(let u of e)o+=u.match(vE)?u:xE.hex(s.shift().toHex())(u);return o}function kO(e,t,r){let n=CE(r),i=e.split(`
|
|
18
|
+
`),s=Math.max.apply(null,i.map(a=>a.length).concat([t.stops.length])),o=wE(t,n,s),u=[];for(let a of i){let c=o.slice(0),l="";for(let f of a)l+=xE.hex(c.shift().toHex())(f);u.push(l)}return u.join(`
|
|
19
|
+
`)}function CE(e){let t={interpolation:"rgb",hsvSpin:"short",...e};if(e!==void 0&&typeof e!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if(typeof t.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof t.interpolation}\``);if(t.interpolation.toLowerCase()==="hsv"&&typeof t.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof t.hsvSpin}\``);return t}var Ki={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"}}};Yo.exports=_f;for(let e in Ki)Yo.exports[e]=t=>new _f(Ki[e].colors)(t,Ki[e].options),Yo.exports[e].multiline=t=>new _f(Ki[e].colors).multiline(t,Ki[e].options)});var jE=g((UI,qE)=>{qE.exports=ME;ME.sync=WO;var LE=require("fs");function UO(e,t){var r=t.pathExt!==void 0?t.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&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function NE(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:UO(t,r)}function ME(e,t,r){LE.stat(e,function(n,i){r(n,n?!1:NE(i,e,t))})}function WO(e,t){return NE(LE.statSync(e),e,t)}});var WE=g((WI,UE)=>{UE.exports=HE;HE.sync=zO;var $E=require("fs");function HE(e,t,r){$E.stat(e,function(n,i){r(n,n?!1:GE(i,t))})}function zO(e,t){return GE($E.statSync(e),t)}function GE(e,t){return e.isFile()&&YO(e,t)}function YO(e,t){var r=e.mode,n=e.uid,i=e.gid,s=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),o=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),u=parseInt("100",8),a=parseInt("010",8),c=parseInt("001",8),l=u|a,f=r&c||r&a&&i===o||r&u&&n===s||r&l&&s===0;return f}});var YE=g((YI,zE)=>{var zI=require("fs"),Vo;process.platform==="win32"||global.TESTING_WINDOWS?Vo=jE():Vo=WE();zE.exports=wf;wf.sync=VO;function wf(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){wf(e,t||{},function(s,o){s?i(s):n(o)})})}Vo(e,t||{},function(n,i){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function VO(e,t){try{return Vo.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var eb=g((VI,QE)=>{var Vn=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",VE=require("path"),KO=Vn?";":":",KE=YE(),XE=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),ZE=(e,t)=>{let r=t.colon||KO,n=e.match(/\//)||Vn&&e.match(/\\/)?[""]:[...Vn?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=Vn?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Vn?i.split(r):[""];return Vn&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},JE=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:s}=ZE(e,t),o=[],u=c=>new Promise((l,f)=>{if(c===n.length)return t.all&&o.length?l(o):f(XE(e));let p=n[c],_=/^".*"$/.test(p)?p.slice(1,-1):p,E=VE.join(_,e),m=!_&&/^\.[\\\/]/.test(e)?e.slice(0,2)+E:E;l(a(m,c,0))}),a=(c,l,f)=>new Promise((p,_)=>{if(f===i.length)return p(u(l+1));let E=i[f];KE(c+E,{pathExt:s},(m,D)=>{if(!m&&D)if(t.all)o.push(c+E);else return p(c+E);return p(a(c,l,f+1))})});return r?u(0).then(c=>r(null,c),r):u(0)},XO=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=ZE(e,t),s=[];for(let o=0;o<r.length;o++){let u=r[o],a=/^".*"$/.test(u)?u.slice(1,-1):u,c=VE.join(a,e),l=!a&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let f=0;f<n.length;f++){let p=l+n[f];try{if(KE.sync(p,{pathExt:i}))if(t.all)s.push(p);else return p}catch{}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw XE(e)};QE.exports=JE;JE.sync=XO});var Sf=g((KI,Cf)=>{"use strict";var tb=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};Cf.exports=tb;Cf.exports.default=tb});var sb=g((XI,ib)=>{"use strict";var rb=require("path"),ZO=eb(),JO=Sf();function nb(e,t){let r=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch{}let o;try{o=ZO.sync(e.command,{path:r[JO({env:r})],pathExt:t?rb.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=rb.resolve(i?e.options.cwd:"",o)),o}function QO(e){return nb(e)||nb(e,!0)}ib.exports=QO});var ob=g((ZI,Rf)=>{"use strict";var Ff=/([()\][%!^"`<>&|;, *?])/g;function eT(e){return e=e.replace(Ff,"^$1"),e}function tT(e,t){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(Ff,"^$1"),t&&(e=e.replace(Ff,"^$1")),e}Rf.exports.command=eT;Rf.exports.argument=tT});var ab=g((JI,ub)=>{"use strict";ub.exports=/^#!(.*)/});var lb=g((QI,cb)=>{"use strict";var rT=ab();cb.exports=(e="")=>{let t=e.match(rT);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var hb=g((eL,fb)=>{"use strict";var Of=require("fs"),nT=lb();function iT(e){let r=Buffer.alloc(150),n;try{n=Of.openSync(e,"r"),Of.readSync(n,r,0,150,0),Of.closeSync(n)}catch{}return nT(r.toString())}fb.exports=iT});var gb=g((tL,mb)=>{"use strict";var sT=require("path"),pb=sb(),db=ob(),oT=hb(),uT=process.platform==="win32",aT=/\.(?:com|exe)$/i,cT=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function lT(e){e.file=pb(e);let t=e.file&&oT(e.file);return t?(e.args.unshift(e.file),e.command=t,pb(e)):e.file}function fT(e){if(!uT)return e;let t=lT(e),r=!aT.test(t);if(e.options.forceShell||r){let n=cT.test(t);e.command=sT.normalize(e.command),e.command=db.command(e.command),e.args=e.args.map(s=>db.argument(s,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function hT(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:fT(n)}mb.exports=hT});var bb=g((rL,Eb)=>{"use strict";var Tf=process.platform==="win32";function kf(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function pT(e,t){if(!Tf)return;let r=e.emit;e.emit=function(n,i){if(n==="exit"){let s=yb(i,t,"spawn");if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}}function yb(e,t){return Tf&&e===1&&!t.file?kf(t.original,"spawn"):null}function dT(e,t){return Tf&&e===1&&!t.file?kf(t.original,"spawnSync"):null}Eb.exports={hookChildProcess:pT,verifyENOENT:yb,verifyENOENTSync:dT,notFoundError:kf}});var Ab=g((nL,Kn)=>{"use strict";var _b=require("child_process"),Bf=gb(),Pf=bb();function Db(e,t,r){let n=Bf(e,t,r),i=_b.spawn(n.command,n.args,n.options);return Pf.hookChildProcess(i,n),i}function mT(e,t,r){let n=Bf(e,t,r),i=_b.spawnSync(n.command,n.args,n.options);return i.error=i.error||Pf.verifyENOENTSync(i.status,n),i}Kn.exports=Db;Kn.exports.spawn=Db;Kn.exports.sync=mT;Kn.exports._parse=Bf;Kn.exports._enoent=Pf});var xb=g((iL,vb)=>{"use strict";vb.exports=e=>{let t=typeof e=="string"?`
|
|
20
20
|
`:`
|
|
21
|
-
`.charCodeAt(),r=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e}});var
|
|
22
|
-
${n.message}`:
|
|
23
|
-
`);return b?(n.originalMessage=n.message,n.message=S):n=new Error(S),n.shortMessage=v,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,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};av.exports=OI});var lv=y((sH,ed)=>{"use strict";var Ha=["stdin","stdout","stderr"],kI=e=>Ha.some(t=>e[t]!==void 0),cv=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return Ha.map(n=>e[n]);if(kI(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Ha.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,Ha.length);return Array.from({length:r},(n,i)=>t[i])};ed.exports=cv;ed.exports.node=e=>{let t=cv(e);return t==="ipc"?"ipc":t===void 0||typeof t=="string"?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]}});var hv=y((oH,fv)=>{"use strict";var PI=require("os"),BI=yh(),II=1e3*5,LI=(e,t="SIGTERM",r={})=>{let n=e(t);return NI(e,t,r,n),n},NI=(e,t,r,n)=>{if(!MI(t,r,n))return;let i=jI(r),s=setTimeout(()=>{e("SIGKILL")},i);s.unref&&s.unref()},MI=(e,{forceKillAfterTimeout:t},r)=>qI(e)&&t!==!1&&r,qI=e=>e===PI.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",jI=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return II;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},HI=(e,t)=>{e.kill()&&(t.isCanceled=!0)},$I=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},UI=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let i,s=new Promise((a,u)=>{i=setTimeout(()=>{$I(e,r,u)},t)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},GI=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},WI=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=BI(()=>{e.kill()});return n.finally(()=>{i()})};fv.exports={spawnedKill:LI,spawnedCancel:HI,setupTimeout:UI,validateTimeout:GI,setExitHandler:WI}});var pv=y((aH,dv)=>{"use strict";var Kt=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";Kt.writable=e=>Kt(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";Kt.readable=e=>Kt(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";Kt.duplex=e=>Kt.writable(e)&&Kt.readable(e);Kt.transform=e=>Kt.duplex(e)&&typeof e._transform=="function";dv.exports=Kt});var gv=y((uH,mv)=>{"use strict";var{PassThrough:zI}=require("stream");mv.exports=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new zI({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=()=>t?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var yv=y((cH,ks)=>{"use strict";var{constants:VI}=require("buffer"),YI=require("stream"),{promisify:KI}=require("util"),JI=gv(),XI=KI(YI.pipeline),$a=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function td(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=JI(t);return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=VI.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};(async()=>{try{await XI(e,n),i()}catch(a){o(a)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new $a)})}),n.getBufferedValue()}ks.exports=td;ks.exports.buffer=(e,t)=>td(e,{...t,encoding:"buffer"});ks.exports.array=(e,t)=>td(e,{...t,array:!0});ks.exports.MaxBufferError=$a});var bv=y((lH,_v)=>{"use strict";var{PassThrough:ZI}=require("stream");_v.exports=function(){var e=[],t=new ZI({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),t;function r(s){return Array.isArray(s)?(s.forEach(r),this):(e.push(s),s.once("end",i.bind(null,s)),s.once("error",t.emit.bind(t,"error")),s.pipe(t,{end:!1}),this)}function n(){return e.length==0}function i(s){e=e.filter(function(o){return o!==s}),!e.length&&t.readable&&t.end()}}});var Av=y((fH,vv)=>{"use strict";var wv=pv(),Ev=yv(),QI=bv(),eL=(e,t)=>{t===void 0||e.stdin===void 0||(wv(t)?t.pipe(e.stdin):e.stdin.end(t))},tL=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=QI();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},rd=async(e,t)=>{if(e){e.destroy();try{return await t}catch(r){return r.bufferedData}}},nd=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(!(!e||!r))return t?Ev(e,{encoding:t,maxBuffer:n}):Ev.buffer(e,{maxBuffer:n})},rL=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let a=nd(e,{encoding:n,buffer:i,maxBuffer:s}),u=nd(t,{encoding:n,buffer:i,maxBuffer:s}),c=nd(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},rd(e,a),rd(t,u),rd(r,c)])}},nL=({input:e})=>{if(wv(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};vv.exports={handleInput:eL,makeAllStream:tL,getSpawnedResult:rL,validateInputSync:nL}});var xv=y((hH,Dv)=>{"use strict";var iL=(async()=>{})().constructor.prototype,sL=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(iL,e)]),oL=(e,t)=>{for(let[r,n]of sL){let i=typeof t=="function"?(...s)=>Reflect.apply(n.value,t(),s):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}return e},aL=e=>new Promise((t,r)=>{e.on("exit",(n,i)=>{t({exitCode:n,signal:i})}),e.on("error",n=>{r(n)}),e.stdin&&e.stdin.on("error",n=>{r(n)})});Dv.exports={mergePromise:oL,getSpawnedPromise:aL}});var Rv=y((dH,Sv)=>{"use strict";var Cv=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],uL=/^[\w.-]+$/,cL=/"/g,lL=e=>typeof e!="string"||uL.test(e)?e:`"${e.replace(cL,'\\"')}"`,fL=(e,t)=>Cv(e,t).join(" "),hL=(e,t)=>Cv(e,t).map(r=>lL(r)).join(" "),dL=/ +/g,pL=e=>{let t=[];for(let r of e.trim().split(dL)){let n=t[t.length-1];n&&n.endsWith("\\")?t[t.length-1]=`${n.slice(0,-1)} ${r}`:t.push(r)}return t};Sv.exports={joinCommand:fL,getEscapedCommand:hL,parseCommand:pL}});var Iv=y((pH,Ei)=>{"use strict";var mL=require("path"),id=require("child_process"),gL=Kw(),yL=Xw(),_L=ev(),bL=ph(),Ua=uv(),Tv=lv(),{spawnedKill:EL,spawnedCancel:wL,setupTimeout:vL,validateTimeout:AL,setExitHandler:DL}=hv(),{handleInput:xL,getSpawnedResult:CL,makeAllStream:SL,validateInputSync:RL}=Av(),{mergePromise:Fv,getSpawnedPromise:FL}=xv(),{joinCommand:Ov,parseCommand:kv,getEscapedCommand:Pv}=Rv(),TL=1e3*1e3*100,OL=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let s=t?{...process.env,...e}:e;return r?_L.env({env:s,cwd:n,execPath:i}):s},Bv=(e,t,r={})=>{let n=gL._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:TL,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=OL(r),r.stdio=Tv(r),process.platform==="win32"&&mL.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},Ps=(e,t,r)=>typeof t!="string"&&!Buffer.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?yL(t):t,Ga=(e,t,r)=>{let n=Bv(e,t,r),i=Ov(e,t),s=Pv(e,t);AL(n.options);let o;try{o=id.spawn(n.file,n.args,n.options)}catch(p){let m=new id.ChildProcess,g=Promise.reject(Ua({error:p,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Fv(m,g)}let a=FL(o),u=vL(o,n.options,a),c=DL(o,n.options,u),l={isCanceled:!1};o.kill=EL.bind(null,o.kill.bind(o)),o.cancel=wL.bind(null,o,l);let h=bL(async()=>{let[{error:p,exitCode:m,signal:g,timedOut:b},v,S,L]=await CL(o,n.options,c),W=Ps(n.options,v),M=Ps(n.options,S),J=Ps(n.options,L);if(p||m!==0||g!==null){let z=Ua({error:p,exitCode:m,signal:g,stdout:W,stderr:M,all:J,command:i,escapedCommand:s,parsed:n,timedOut:b,isCanceled:l.isCanceled,killed:o.killed});if(!n.options.reject)return z;throw z}return{command:i,escapedCommand:s,exitCode:0,stdout:W,stderr:M,all:J,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return xL(o,n.options.input),o.all=SL(o,n.options),Fv(o,h)};Ei.exports=Ga;Ei.exports.sync=(e,t,r)=>{let n=Bv(e,t,r),i=Ov(e,t),s=Pv(e,t);RL(n.options);let o;try{o=id.spawnSync(n.file,n.args,n.options)}catch(c){throw Ua({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=Ps(n.options,o.stdout,o.error),u=Ps(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Ua({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}};Ei.exports.command=(e,t)=>{let[r,...n]=kv(e);return Ga(r,n,t)};Ei.exports.commandSync=(e,t)=>{let[r,...n]=kv(e);return Ga.sync(r,n,t)};Ei.exports.node=(e,t,r={})=>{t&&!Array.isArray(t)&&typeof t=="object"&&(r=t,t=[]);let n=Tv.node(r),i=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return Ga(s,[...o,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var wi=y((bH,Mv)=>{"use strict";var Nv=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"]]);Mv.exports=e=>e?Object.keys(e).map(t=>[Nv.has(t)?Nv.get(t):t,e[t]]).reduce((t,r)=>(t[r[0]]=r[1],t),Object.create(null)):{}});var Xa=y((EH,Vv)=>{"use strict";var qv=typeof process=="object"&&process?process:{stdout:null,stderr:null},IL=require("events"),jv=require("stream"),Hv=require("string_decoder").StringDecoder,pr=Symbol("EOF"),mr=Symbol("maybeEmitEnd"),Gr=Symbol("emittedEnd"),za=Symbol("emittingEnd"),Is=Symbol("emittedError"),Va=Symbol("closed"),$v=Symbol("read"),Ya=Symbol("flush"),Uv=Symbol("flushChunk"),ft=Symbol("encoding"),gr=Symbol("decoder"),Ka=Symbol("flowing"),Ls=Symbol("paused"),vi=Symbol("resume"),Se=Symbol("buffer"),Jt=Symbol("pipes"),Me=Symbol("bufferLength"),ud=Symbol("bufferPush"),cd=Symbol("bufferShift"),Ke=Symbol("objectMode"),Je=Symbol("destroyed"),ld=Symbol("emitData"),Gv=Symbol("emitEnd"),fd=Symbol("emitEnd2"),yr=Symbol("async"),Ns=e=>Promise.resolve().then(e),Wv=global._MP_NO_ITERATOR_SYMBOLS_!=="1",LL=Wv&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),NL=Wv&&Symbol.iterator||Symbol("iterator not implemented"),ML=e=>e==="end"||e==="finish"||e==="prefinish",qL=e=>e instanceof ArrayBuffer||typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,jL=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),Ja=class{constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[vi](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},hd=class extends Ja{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}};Vv.exports=class zv extends jv{constructor(t){super(),this[Ka]=!1,this[Ls]=!1,this[Jt]=[],this[Se]=[],this[Ke]=t&&t.objectMode||!1,this[Ke]?this[ft]=null:this[ft]=t&&t.encoding||null,this[ft]==="buffer"&&(this[ft]=null),this[yr]=t&&!!t.async||!1,this[gr]=this[ft]?new Hv(this[ft]):null,this[pr]=!1,this[Gr]=!1,this[za]=!1,this[Va]=!1,this[Is]=null,this.writable=!0,this.readable=!0,this[Me]=0,this[Je]=!1,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Se]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Jt]})}get bufferLength(){return this[Me]}get encoding(){return this[ft]}set encoding(t){if(this[Ke])throw new Error("cannot set encoding in objectMode");if(this[ft]&&t!==this[ft]&&(this[gr]&&this[gr].lastNeed||this[Me]))throw new Error("cannot change encoding");this[ft]!==t&&(this[gr]=t?new Hv(t):null,this[Se].length&&(this[Se]=this[Se].map(r=>this[gr].write(r)))),this[ft]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[Ke]}set objectMode(t){this[Ke]=this[Ke]||!!t}get async(){return this[yr]}set async(t){this[yr]=this[yr]||!!t}write(t,r,n){if(this[pr])throw new Error("write after end");if(this[Je])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[yr]?Ns:s=>s();return!this[Ke]&&!Buffer.isBuffer(t)&&(jL(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):qL(t)?t=Buffer.from(t):typeof t!="string"&&(this.objectMode=!0)),this[Ke]?(this.flowing&&this[Me]!==0&&this[Ya](!0),this.flowing?this.emit("data",t):this[ud](t),this[Me]!==0&&this.emit("readable"),n&&i(n),this.flowing):t.length?(typeof t=="string"&&!(r===this[ft]&&!this[gr].lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[ft]&&(t=this[gr].write(t)),this.flowing&&this[Me]!==0&&this[Ya](!0),this.flowing?this.emit("data",t):this[ud](t),this[Me]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Me]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(t){if(this[Je])return null;if(this[Me]===0||t===0||t>this[Me])return this[mr](),null;this[Ke]&&(t=null),this[Se].length>1&&!this[Ke]&&(this.encoding?this[Se]=[this[Se].join("")]:this[Se]=[Buffer.concat(this[Se],this[Me])]);let r=this[$v](t||null,this[Se][0]);return this[mr](),r}[$v](t,r){return t===r.length||t===null?this[cd]():(this[Se][0]=r.slice(t),r=r.slice(0,t),this[Me]-=t),this.emit("data",r),!this[Se].length&&!this[pr]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=null),typeof r=="function"&&(n=r,r="utf8"),t&&this.write(t,r),n&&this.once("end",n),this[pr]=!0,this.writable=!1,(this.flowing||!this[Ls])&&this[mr](),this}[vi](){this[Je]||(this[Ls]=!1,this[Ka]=!0,this.emit("resume"),this[Se].length?this[Ya]():this[pr]?this[mr]():this.emit("drain"))}resume(){return this[vi]()}pause(){this[Ka]=!1,this[Ls]=!0}get destroyed(){return this[Je]}get flowing(){return this[Ka]}get paused(){return this[Ls]}[ud](t){this[Ke]?this[Me]+=1:this[Me]+=t.length,this[Se].push(t)}[cd](){return this[Se].length&&(this[Ke]?this[Me]-=1:this[Me]-=this[Se][0].length),this[Se].shift()}[Ya](t){do;while(this[Uv](this[cd]()));!t&&!this[Se].length&&!this[pr]&&this.emit("drain")}[Uv](t){return t?(this.emit("data",t),this.flowing):!1}pipe(t,r){if(this[Je])return;let n=this[Gr];return r=r||{},t===qv.stdout||t===qv.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this[Jt].push(r.proxyErrors?new hd(this,t,r):new Ja(this,t,r)),this[yr]?Ns(()=>this[vi]()):this[vi]()),t}unpipe(t){let r=this[Jt].find(n=>n.dest===t);r&&(this[Jt].splice(this[Jt].indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);return t==="data"&&!this[Jt].length&&!this.flowing?this[vi]():t==="readable"&&this[Me]!==0?super.emit("readable"):ML(t)&&this[Gr]?(super.emit(t),this.removeAllListeners(t)):t==="error"&&this[Is]&&(this[yr]?Ns(()=>r.call(this,this[Is])):r.call(this,this[Is])),n}get emittedEnd(){return this[Gr]}[mr](){!this[za]&&!this[Gr]&&!this[Je]&&this[Se].length===0&&this[pr]&&(this[za]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Va]&&this.emit("close"),this[za]=!1)}emit(t,r,...n){if(t!=="error"&&t!=="close"&&t!==Je&&this[Je])return;if(t==="data")return r?this[yr]?Ns(()=>this[ld](r)):this[ld](r):!1;if(t==="end")return this[Gv]();if(t==="close"){if(this[Va]=!0,!this[Gr]&&!this[Je])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[Is]=r;let s=super.emit("error",r);return this[mr](),s}else if(t==="resume"){let s=super.emit("resume");return this[mr](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,r,...n);return this[mr](),i}[ld](t){for(let n of this[Jt])n.dest.write(t)===!1&&this.pause();let r=super.emit("data",t);return this[mr](),r}[Gv](){this[Gr]||(this[Gr]=!0,this.readable=!1,this[yr]?Ns(()=>this[fd]()):this[fd]())}[fd](){if(this[gr]){let r=this[gr].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 t=super.emit("end");return this.removeAllListeners("end"),t}collect(){let t=[];this[Ke]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[Ke]||(t.dataLength+=n.length)}),r.then(()=>t)}concat(){return this[Ke]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[Ke]?Promise.reject(new Error("cannot concat in objectMode")):this[ft]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,r)=>{this.on(Je,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[LL](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[pr])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[pr]})},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(Je,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[NL](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(t){return this[Je]?(t?this.emit("error",t):this.emit(Je),this):(this[Je]=!0,this[Se].length=0,this[Me]=0,typeof this.close=="function"&&!this[Va]&&this.close(),t?this.emit("error",t):this.emit(Je),this)}static isStream(t){return!!t&&(t instanceof zv||t instanceof jv||t instanceof IL&&(typeof t.pipe=="function"||typeof t.write=="function"&&typeof t.end=="function"))}}});var Kv=y((wH,Yv)=>{var HL=require("zlib").constants||{ZLIB_VERNUM:4736};Yv.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},HL))});var _d=y((vH,iA)=>{"use strict";var Jv=typeof process=="object"&&process?process:{stdout:null,stderr:null},$L=require("events"),Xv=require("stream"),Zv=require("string_decoder").StringDecoder,_r=Symbol("EOF"),br=Symbol("maybeEmitEnd"),Wr=Symbol("emittedEnd"),Za=Symbol("emittingEnd"),Ms=Symbol("emittedError"),Qa=Symbol("closed"),Qv=Symbol("read"),eu=Symbol("flush"),eA=Symbol("flushChunk"),ht=Symbol("encoding"),Er=Symbol("decoder"),tu=Symbol("flowing"),qs=Symbol("paused"),Ai=Symbol("resume"),qe=Symbol("bufferLength"),dd=Symbol("bufferPush"),pd=Symbol("bufferShift"),Xe=Symbol("objectMode"),Ze=Symbol("destroyed"),md=Symbol("emitData"),tA=Symbol("emitEnd"),gd=Symbol("emitEnd2"),wr=Symbol("async"),js=e=>Promise.resolve().then(e),rA=global._MP_NO_ITERATOR_SYMBOLS_!=="1",UL=rA&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),GL=rA&&Symbol.iterator||Symbol("iterator not implemented"),WL=e=>e==="end"||e==="finish"||e==="prefinish",zL=e=>e instanceof ArrayBuffer||typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,VL=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),ru=class{constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[Ai](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},yd=class extends ru{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}};iA.exports=class nA extends Xv{constructor(t){super(),this[tu]=!1,this[qs]=!1,this.pipes=[],this.buffer=[],this[Xe]=t&&t.objectMode||!1,this[Xe]?this[ht]=null:this[ht]=t&&t.encoding||null,this[ht]==="buffer"&&(this[ht]=null),this[wr]=t&&!!t.async||!1,this[Er]=this[ht]?new Zv(this[ht]):null,this[_r]=!1,this[Wr]=!1,this[Za]=!1,this[Qa]=!1,this[Ms]=null,this.writable=!0,this.readable=!0,this[qe]=0,this[Ze]=!1}get bufferLength(){return this[qe]}get encoding(){return this[ht]}set encoding(t){if(this[Xe])throw new Error("cannot set encoding in objectMode");if(this[ht]&&t!==this[ht]&&(this[Er]&&this[Er].lastNeed||this[qe]))throw new Error("cannot change encoding");this[ht]!==t&&(this[Er]=t?new Zv(t):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Er].write(r)))),this[ht]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[Xe]}set objectMode(t){this[Xe]=this[Xe]||!!t}get async(){return this[wr]}set async(t){this[wr]=this[wr]||!!t}write(t,r,n){if(this[_r])throw new Error("write after end");if(this[Ze])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[wr]?js:s=>s();return!this[Xe]&&!Buffer.isBuffer(t)&&(VL(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):zL(t)?t=Buffer.from(t):typeof t!="string"&&(this.objectMode=!0)),this[Xe]?(this.flowing&&this[qe]!==0&&this[eu](!0),this.flowing?this.emit("data",t):this[dd](t),this[qe]!==0&&this.emit("readable"),n&&i(n),this.flowing):t.length?(typeof t=="string"&&!(r===this[ht]&&!this[Er].lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[ht]&&(t=this[Er].write(t)),this.flowing&&this[qe]!==0&&this[eu](!0),this.flowing?this.emit("data",t):this[dd](t),this[qe]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[qe]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(t){if(this[Ze])return null;if(this[qe]===0||t===0||t>this[qe])return this[br](),null;this[Xe]&&(t=null),this.buffer.length>1&&!this[Xe]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[qe])]);let r=this[Qv](t||null,this.buffer[0]);return this[br](),r}[Qv](t,r){return t===r.length||t===null?this[pd]():(this.buffer[0]=r.slice(t),r=r.slice(0,t),this[qe]-=t),this.emit("data",r),!this.buffer.length&&!this[_r]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=null),typeof r=="function"&&(n=r,r="utf8"),t&&this.write(t,r),n&&this.once("end",n),this[_r]=!0,this.writable=!1,(this.flowing||!this[qs])&&this[br](),this}[Ai](){this[Ze]||(this[qs]=!1,this[tu]=!0,this.emit("resume"),this.buffer.length?this[eu]():this[_r]?this[br]():this.emit("drain"))}resume(){return this[Ai]()}pause(){this[tu]=!1,this[qs]=!0}get destroyed(){return this[Ze]}get flowing(){return this[tu]}get paused(){return this[qs]}[dd](t){this[Xe]?this[qe]+=1:this[qe]+=t.length,this.buffer.push(t)}[pd](){return this.buffer.length&&(this[Xe]?this[qe]-=1:this[qe]-=this.buffer[0].length),this.buffer.shift()}[eu](t){do;while(this[eA](this[pd]()));!t&&!this.buffer.length&&!this[_r]&&this.emit("drain")}[eA](t){return t?(this.emit("data",t),this.flowing):!1}pipe(t,r){if(this[Ze])return;let n=this[Wr];return r=r||{},t===Jv.stdout||t===Jv.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this.pipes.push(r.proxyErrors?new yd(this,t,r):new ru(this,t,r)),this[wr]?js(()=>this[Ai]()):this[Ai]()),t}unpipe(t){let r=this.pipes.find(n=>n.dest===t);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);return t==="data"&&!this.pipes.length&&!this.flowing?this[Ai]():t==="readable"&&this[qe]!==0?super.emit("readable"):WL(t)&&this[Wr]?(super.emit(t),this.removeAllListeners(t)):t==="error"&&this[Ms]&&(this[wr]?js(()=>r.call(this,this[Ms])):r.call(this,this[Ms])),n}get emittedEnd(){return this[Wr]}[br](){!this[Za]&&!this[Wr]&&!this[Ze]&&this.buffer.length===0&&this[_r]&&(this[Za]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Qa]&&this.emit("close"),this[Za]=!1)}emit(t,r,...n){if(t!=="error"&&t!=="close"&&t!==Ze&&this[Ze])return;if(t==="data")return r?this[wr]?js(()=>this[md](r)):this[md](r):!1;if(t==="end")return this[tA]();if(t==="close"){if(this[Qa]=!0,!this[Wr]&&!this[Ze])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[Ms]=r;let s=super.emit("error",r);return this[br](),s}else if(t==="resume"){let s=super.emit("resume");return this[br](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,r,...n);return this[br](),i}[md](t){for(let n of this.pipes)n.dest.write(t)===!1&&this.pause();let r=super.emit("data",t);return this[br](),r}[tA](){this[Wr]||(this[Wr]=!0,this.readable=!1,this[wr]?js(()=>this[gd]()):this[gd]())}[gd](){if(this[Er]){let r=this[Er].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 t=super.emit("end");return this.removeAllListeners("end"),t}collect(){let t=[];this[Xe]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[Xe]||(t.dataLength+=n.length)}),r.then(()=>t)}concat(){return this[Xe]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[Xe]?Promise.reject(new Error("cannot concat in objectMode")):this[ht]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,r)=>{this.on(Ze,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[UL](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[_r])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[_r]})},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(Ze,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[GL](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(t){return this[Ze]?(t?this.emit("error",t):this.emit(Ze),this):(this[Ze]=!0,this.buffer.length=0,this[qe]=0,typeof this.close=="function"&&!this[Qa]&&this.close(),t?this.emit("error",t):this.emit(Ze),this)}static isStream(t){return!!t&&(t instanceof nA||t instanceof Xv||t instanceof $L&&(typeof t.pipe=="function"||typeof t.write=="function"&&typeof t.end=="function"))}}});var Bd=y(_t=>{"use strict";var Ad=require("assert"),zr=require("buffer").Buffer,aA=require("zlib"),vn=_t.constants=Kv(),YL=_d(),sA=zr.concat,An=Symbol("_superWrite"),xi=class extends Error{constructor(t){super("zlib: "+t.message),this.code=t.code,this.errno=t.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+t.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},KL=Symbol("opts"),Hs=Symbol("flushFlag"),oA=Symbol("finishFlushFlag"),Pd=Symbol("fullFlushFlag"),pe=Symbol("handle"),nu=Symbol("onError"),Di=Symbol("sawError"),bd=Symbol("level"),Ed=Symbol("strategy"),wd=Symbol("ended"),AH=Symbol("_defaultFullFlush"),iu=class extends YL{constructor(t,r){if(!t||typeof t!="object")throw new TypeError("invalid options for ZlibBase constructor");super(t),this[Di]=!1,this[wd]=!1,this[KL]=t,this[Hs]=t.flush,this[oA]=t.finishFlush;try{this[pe]=new aA[r](t)}catch(n){throw new xi(n)}this[nu]=n=>{this[Di]||(this[Di]=!0,this.close(),this.emit("error",n))},this[pe].on("error",n=>this[nu](new xi(n))),this.once("end",()=>this.close)}close(){this[pe]&&(this[pe].close(),this[pe]=null,this.emit("close"))}reset(){if(!this[Di])return Ad(this[pe],"zlib binding closed"),this[pe].reset()}flush(t){this.ended||(typeof t!="number"&&(t=this[Pd]),this.write(Object.assign(zr.alloc(0),{[Hs]:t})))}end(t,r,n){return t&&this.write(t,r),this.flush(this[oA]),this[wd]=!0,super.end(null,null,n)}get ended(){return this[wd]}write(t,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof t=="string"&&(t=zr.from(t,r)),this[Di])return;Ad(this[pe],"zlib binding closed");let i=this[pe]._handle,s=i.close;i.close=()=>{};let o=this[pe].close;this[pe].close=()=>{},zr.concat=c=>c;let a;try{let c=typeof t[Hs]=="number"?t[Hs]:this[Hs];a=this[pe]._processChunk(t,c),zr.concat=sA}catch(c){zr.concat=sA,this[nu](new xi(c))}finally{this[pe]&&(this[pe]._handle=i,i.close=s,this[pe].close=o,this[pe].removeAllListeners("error"))}this[pe]&&this[pe].on("error",c=>this[nu](new xi(c)));let u;if(a)if(Array.isArray(a)&&a.length>0){u=this[An](zr.from(a[0]));for(let c=1;c<a.length;c++)u=this[An](a[c])}else u=this[An](zr.from(a));return n&&n(),u}[An](t){return super.write(t)}},vr=class extends iu{constructor(t,r){t=t||{},t.flush=t.flush||vn.Z_NO_FLUSH,t.finishFlush=t.finishFlush||vn.Z_FINISH,super(t,r),this[Pd]=vn.Z_FULL_FLUSH,this[bd]=t.level,this[Ed]=t.strategy}params(t,r){if(!this[Di]){if(!this[pe])throw new Error("cannot switch params when binding is closed");if(!this[pe].params)throw new Error("not supported in this implementation");if(this[bd]!==t||this[Ed]!==r){this.flush(vn.Z_SYNC_FLUSH),Ad(this[pe],"zlib binding closed");let n=this[pe].flush;this[pe].flush=(i,s)=>{this.flush(i),s()};try{this[pe].params(t,r)}finally{this[pe].flush=n}this[pe]&&(this[bd]=t,this[Ed]=r)}}}},Dd=class extends vr{constructor(t){super(t,"Deflate")}},xd=class extends vr{constructor(t){super(t,"Inflate")}},vd=Symbol("_portable"),Cd=class extends vr{constructor(t){super(t,"Gzip"),this[vd]=t&&!!t.portable}[An](t){return this[vd]?(this[vd]=!1,t[9]=255,super[An](t)):super[An](t)}},Sd=class extends vr{constructor(t){super(t,"Gunzip")}},Rd=class extends vr{constructor(t){super(t,"DeflateRaw")}},Fd=class extends vr{constructor(t){super(t,"InflateRaw")}},Td=class extends vr{constructor(t){super(t,"Unzip")}},su=class extends iu{constructor(t,r){t=t||{},t.flush=t.flush||vn.BROTLI_OPERATION_PROCESS,t.finishFlush=t.finishFlush||vn.BROTLI_OPERATION_FINISH,super(t,r),this[Pd]=vn.BROTLI_OPERATION_FLUSH}},Od=class extends su{constructor(t){super(t,"BrotliCompress")}},kd=class extends su{constructor(t){super(t,"BrotliDecompress")}};_t.Deflate=Dd;_t.Inflate=xd;_t.Gzip=Cd;_t.Gunzip=Sd;_t.DeflateRaw=Rd;_t.InflateRaw=Fd;_t.Unzip=Td;typeof aA.BrotliCompress=="function"?(_t.BrotliCompress=Od,_t.BrotliDecompress=kd):_t.BrotliCompress=_t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Ci=y((CH,uA)=>{var JL=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;uA.exports=JL!=="win32"?e=>e:e=>e&&e.replace(/\\/g,"/")});var ou=y((RH,cA)=>{"use strict";var XL=Xa(),Id=Ci(),Ld=Symbol("slurp");cA.exports=class extends XL{constructor(t,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=t,this.startBlockSize=512*Math.ceil(t.size/512),this.blockRemain=this.startBlockSize,this.remain=t.size,this.type=t.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=Id(t.path),this.mode=t.mode,this.mode&&(this.mode=this.mode&4095),this.uid=t.uid,this.gid=t.gid,this.uname=t.uname,this.gname=t.gname,this.size=t.size,this.mtime=t.mtime,this.atime=t.atime,this.ctime=t.ctime,this.linkpath=Id(t.linkpath),this.uname=t.uname,this.gname=t.gname,r&&this[Ld](r),n&&this[Ld](n,!0)}write(t){let r=t.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(t):super.write(t.slice(0,n))}[Ld](t,r){for(let n in t)t[n]!==null&&t[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?Id(t[n]):t[n])}}});var Nd=y(au=>{"use strict";au.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"]]);au.code=new Map(Array.from(au.name).map(e=>[e[1],e[0]]))});var dA=y((TH,hA)=>{"use strict";var ZL=(e,t)=>{if(Number.isSafeInteger(e))e<0?e6(e,t):QL(e,t);else throw Error("cannot encode number outside of javascript safe integer range");return t},QL=(e,t)=>{t[0]=128;for(var r=t.length;r>1;r--)t[r-1]=e&255,e=Math.floor(e/256)},e6=(e,t)=>{t[0]=255;var r=!1;e=e*-1;for(var n=t.length;n>1;n--){var i=e&255;e=Math.floor(e/256),r?t[n-1]=lA(i):i===0?t[n-1]=0:(r=!0,t[n-1]=fA(i))}},t6=e=>{let t=e[0],r=t===128?n6(e.slice(1,e.length)):t===255?r6(e):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},r6=e=>{for(var t=e.length,r=0,n=!1,i=t-1;i>-1;i--){var s=e[i],o;n?o=lA(s):s===0?o=s:(n=!0,o=fA(s)),o!==0&&(r-=o*Math.pow(256,t-i-1))}return r},n6=e=>{for(var t=e.length,r=0,n=t-1;n>-1;n--){var i=e[n];i!==0&&(r+=i*Math.pow(256,t-n-1))}return r},lA=e=>(255^e)&255,fA=e=>(255^e)+1&255;hA.exports={encode:ZL,parse:t6}});var Ri=y((OH,mA)=>{"use strict";var Md=Nd(),Si=require("path").posix,pA=dA(),qd=Symbol("slurp"),bt=Symbol("type"),$d=class{constructor(t,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[bt]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(t)?this.decode(t,r||0,n,i):t&&this.set(t)}decode(t,r,n,i){if(r||(r=0),!t||!(t.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=Dn(t,r,100),this.mode=Vr(t,r+100,8),this.uid=Vr(t,r+108,8),this.gid=Vr(t,r+116,8),this.size=Vr(t,r+124,12),this.mtime=jd(t,r+136,12),this.cksum=Vr(t,r+148,12),this[qd](n),this[qd](i,!0),this[bt]=Dn(t,r+156,1),this[bt]===""&&(this[bt]="0"),this[bt]==="0"&&this.path.slice(-1)==="/"&&(this[bt]="5"),this[bt]==="5"&&(this.size=0),this.linkpath=Dn(t,r+157,100),t.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=Dn(t,r+265,32),this.gname=Dn(t,r+297,32),this.devmaj=Vr(t,r+329,8),this.devmin=Vr(t,r+337,8),t[r+475]!==0){let o=Dn(t,r+345,155);this.path=o+"/"+this.path}else{let o=Dn(t,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=jd(t,r+476,12),this.ctime=jd(t,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=t[o];for(let o=r+156;o<r+512;o++)s+=t[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[qd](t,r){for(let n in t)t[n]!==null&&t[n]!==void 0&&!(r&&n==="path")&&(this[n]=t[n])}encode(t,r){if(t||(t=this.block=Buffer.alloc(512),r=0),r||(r=0),!(t.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=i6(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=xn(t,r,100,s)||this.needPax,this.needPax=Yr(t,r+100,8,this.mode)||this.needPax,this.needPax=Yr(t,r+108,8,this.uid)||this.needPax,this.needPax=Yr(t,r+116,8,this.gid)||this.needPax,this.needPax=Yr(t,r+124,12,this.size)||this.needPax,this.needPax=Hd(t,r+136,12,this.mtime)||this.needPax,t[r+156]=this[bt].charCodeAt(0),this.needPax=xn(t,r+157,100,this.linkpath)||this.needPax,t.write("ustar\x0000",r+257,8),this.needPax=xn(t,r+265,32,this.uname)||this.needPax,this.needPax=xn(t,r+297,32,this.gname)||this.needPax,this.needPax=Yr(t,r+329,8,this.devmaj)||this.needPax,this.needPax=Yr(t,r+337,8,this.devmin)||this.needPax,this.needPax=xn(t,r+345,n,o)||this.needPax,t[r+475]!==0?this.needPax=xn(t,r+345,155,o)||this.needPax:(this.needPax=xn(t,r+345,130,o)||this.needPax,this.needPax=Hd(t,r+476,12,this.atime)||this.needPax,this.needPax=Hd(t,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let u=r;u<r+148;u++)a+=t[u];for(let u=r+156;u<r+512;u++)a+=t[u];return this.cksum=a,Yr(t,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(t){for(let r in t)t[r]!==null&&t[r]!==void 0&&(this[r]=t[r])}get type(){return Md.name.get(this[bt])||this[bt]}get typeKey(){return this[bt]}set type(t){Md.code.has(t)?this[bt]=Md.code.get(t):this[bt]=t}},i6=(e,t)=>{let n=e,i="",s,o=Si.parse(e).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=Si.dirname(n),n=Si.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=t?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=t?s=[n.slice(0,100-1),i,!0]:(n=Si.join(Si.basename(i),n),i=Si.dirname(i));while(i!==o&&!s);s||(s=[e.slice(0,100-1),"",!0])}return s},Dn=(e,t,r)=>e.slice(t,t+r).toString("utf8").replace(/\0.*/,""),jd=(e,t,r)=>s6(Vr(e,t,r)),s6=e=>e===null?null:new Date(e*1e3),Vr=(e,t,r)=>e[t]&128?pA.parse(e.slice(t,t+r)):a6(e,t,r),o6=e=>isNaN(e)?null:e,a6=(e,t,r)=>o6(parseInt(e.slice(t,t+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),u6={12:8589934591,8:2097151},Yr=(e,t,r,n)=>n===null?!1:n>u6[r]||n<0?(pA.encode(n,e.slice(t,t+r)),!0):(c6(e,t,r,n),!1),c6=(e,t,r,n)=>e.write(l6(n,r),t,r,"ascii"),l6=(e,t)=>f6(Math.floor(e).toString(8),t),f6=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0",Hd=(e,t,r,n)=>n===null?!1:Yr(e,t,r,n.getTime()/1e3),h6=new Array(156).join("\0"),xn=(e,t,r,n)=>n===null?!1:(e.write(n+h6,t,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);mA.exports=$d});var uu=y((kH,gA)=>{"use strict";var d6=Ri(),p6=require("path"),$s=class{constructor(t,r){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=r||!1}encode(){let t=this.encodeBody();if(t==="")return null;let r=Buffer.byteLength(t),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new d6({path:("PaxHeader/"+p6.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(t,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(t){if(this[t]===null||this[t]===void 0)return"";let r=this[t]instanceof Date?this[t].getTime()/1e3:this[t],n=" "+(t==="dev"||t==="ino"||t==="nlink"?"SCHILY.":"")+t+"="+r+`
|
|
24
|
-
`,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}}
|
|
25
|
-
`).reduce(y6,Object.create(null)),y6=(e,t)=>{let r=parseInt(t,10);if(r!==Buffer.byteLength(t)+1)return e;t=t.slice((r+" ").length);let n=t.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return e;let s=n.join("=");return e[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,e};gA.exports=$s});var Fi=y((PH,yA)=>{yA.exports=e=>{let t=e.length-1,r=-1;for(;t>-1&&e.charAt(t)==="/";)r=t,t--;return r===-1?e:e.slice(0,r)}});var cu=y((BH,_A)=>{"use strict";_A.exports=e=>class extends e{warn(t,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||t,n.tarCode=t,!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(`${t}: ${r}`),n))}}});var Gd=y((LH,bA)=>{"use strict";var lu=["|","<",">","?",":"],Ud=lu.map(e=>String.fromCharCode(61440+e.charCodeAt(0))),_6=new Map(lu.map((e,t)=>[e,Ud[t]])),b6=new Map(Ud.map((e,t)=>[e,lu[t]]));bA.exports={encode:e=>lu.reduce((t,r)=>t.split(r).join(_6.get(r)),e),decode:e=>Ud.reduce((t,r)=>t.split(r).join(b6.get(r)),e)}});var Wd=y((NH,wA)=>{var{isAbsolute:E6,parse:EA}=require("path").win32;wA.exports=e=>{let t="",r=EA(e);for(;E6(e)||r.root;){let n=e.charAt(0)==="/"&&e.slice(0,4)!=="//?/"?"/":r.root;e=e.slice(n.length),t+=n,r=EA(e)}return[t,e]}});var AA=y((MH,vA)=>{"use strict";vA.exports=(e,t,r)=>(e&=4095,r&&(e=(e|384)&-19),t&&(e&256&&(e|=64),e&32&&(e|=8),e&4&&(e|=1)),e)});var tp=y((HH,NA)=>{"use strict";var TA=Xa(),OA=uu(),kA=Ri(),Zt=require("fs"),DA=require("path"),Xt=Ci(),w6=Fi(),PA=(e,t)=>t?(e=Xt(e).replace(/^\.(\/|$)/,""),w6(t)+"/"+e):Xt(e),v6=16*1024*1024,xA=Symbol("process"),CA=Symbol("file"),SA=Symbol("directory"),Vd=Symbol("symlink"),RA=Symbol("hardlink"),Us=Symbol("header"),fu=Symbol("read"),Yd=Symbol("lstat"),hu=Symbol("onlstat"),Kd=Symbol("onread"),Jd=Symbol("onreadlink"),Xd=Symbol("openfile"),Zd=Symbol("onopenfile"),Kr=Symbol("close"),du=Symbol("mode"),Qd=Symbol("awaitDrain"),zd=Symbol("ondrain"),Qt=Symbol("prefix"),FA=Symbol("hadError"),BA=cu(),A6=Gd(),IA=Wd(),LA=AA(),pu=BA(class extends TA{constructor(t,r){if(r=r||{},super(r),typeof t!="string")throw new TypeError("path is required");this.path=Xt(t),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||v6,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Xt(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?Xt(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]=IA(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=A6.decode(this.path.replace(/\\/g,"/")),t=t.replace(/\\/g,"/")),this.absolute=Xt(r.absolute||DA.resolve(this.cwd,t)),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[hu](this.statCache.get(this.absolute)):this[Yd]()}emit(t,...r){return t==="error"&&(this[FA]=!0),super.emit(t,...r)}[Yd](){Zt.lstat(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[hu](r)})}[hu](t){this.statCache.set(this.absolute,t),this.stat=t,t.isFile()||(t.size=0),this.type=x6(t),this.emit("stat",t),this[xA]()}[xA](){switch(this.type){case"File":return this[CA]();case"Directory":return this[SA]();case"SymbolicLink":return this[Vd]();default:return this.end()}}[du](t){return LA(t,this.type==="Directory",this.portable)}[Qt](t){return PA(t,this.prefix)}[Us](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new kA({path:this[Qt](this.path),linkpath:this.type==="Link"?this[Qt](this.linkpath):this.linkpath,mode:this[du](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 OA({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[Qt](this.path),linkpath:this.type==="Link"?this[Qt](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)}[SA](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Us](),this.end()}[Vd](){Zt.readlink(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[Jd](r)})}[Jd](t){this.linkpath=Xt(t),this[Us](),this.end()}[RA](t){this.type="Link",this.linkpath=Xt(DA.relative(this.cwd,t)),this.stat.size=0,this[Us](),this.end()}[CA](){if(this.stat.nlink>1){let t=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(t)){let r=this.linkCache.get(t);if(r.indexOf(this.cwd)===0)return this[RA](r)}this.linkCache.set(t,this.absolute)}if(this[Us](),this.stat.size===0)return this.end();this[Xd]()}[Xd](){Zt.open(this.absolute,"r",(t,r)=>{if(t)return this.emit("error",t);this[Zd](r)})}[Zd](t){if(this.fd=t,this[FA])return this[Kr]();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[fu]()}[fu](){let{fd:t,buf:r,offset:n,length:i,pos:s}=this;Zt.read(t,r,n,i,s,(o,a)=>{if(o)return this[Kr](()=>this.emit("error",o));this[Kd](a)})}[Kr](t){Zt.close(this.fd,t)}[Kd](t){if(t<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Kr](()=>this.emit("error",i))}if(t>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Kr](()=>this.emit("error",i))}if(t===this.remain)for(let i=t;i<this.length&&t<this.blockRemain;i++)this.buf[i+this.offset]=0,t++,this.remain++;let r=this.offset===0&&t===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+t);this.write(r)?this[zd]():this[Qd](()=>this[zd]())}[Qd](t){this.once("drain",t)}write(t){if(this.blockRemain<t.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=t.length,this.blockRemain-=t.length,this.pos+=t.length,this.offset+=t.length,super.write(t)}[zd](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Kr](t=>t?this.emit("error",t):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[fu]()}}),ep=class extends pu{[Yd](){this[hu](Zt.lstatSync(this.absolute))}[Vd](){this[Jd](Zt.readlinkSync(this.absolute))}[Xd](){this[Zd](Zt.openSync(this.absolute,"r"))}[fu](){let t=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,a=Zt.readSync(r,n,i,s,o);this[Kd](a),t=!1}finally{if(t)try{this[Kr](()=>{})}catch{}}}[Qd](t){t()}[Kr](t){Zt.closeSync(this.fd),t()}},D6=BA(class extends TA{constructor(t,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=t,this.type=t.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Xt(t.path),this.mode=this[du](t.mode),this.uid=this.portable?null:t.uid,this.gid=this.portable?null:t.gid,this.uname=this.portable?null:t.uname,this.gname=this.portable?null:t.gname,this.size=t.size,this.mtime=this.noMtime?null:r.mtime||t.mtime,this.atime=this.portable?null:t.atime,this.ctime=this.portable?null:t.ctime,this.linkpath=Xt(t.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=IA(this.path);i&&(this.path=s,n=i)}this.remain=t.size,this.blockRemain=t.startBlockSize,this.header=new kA({path:this[Qt](this.path),linkpath:this.type==="Link"?this[Qt](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 OA({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[Qt](this.path),linkpath:this.type==="Link"?this[Qt](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),t.pipe(this)}[Qt](t){return PA(t,this.prefix)}[du](t){return LA(t,this.type==="Directory",this.portable)}write(t){let r=t.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(t)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});pu.Sync=ep;pu.Tar=D6;var x6=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";NA.exports=pu});var qA=y(($H,MA)=>{"use strict";MA.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var rp=y((UH,jA)=>{"use strict";jA.exports=ne;ne.Node=Cn;ne.create=ne;function ne(e){var t=this;if(t instanceof ne||(t=new ne),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}ne.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};ne.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};ne.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};ne.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)S6(this,arguments[e]);return this.length};ne.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)R6(this,arguments[e]);return this.length};ne.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};ne.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};ne.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};ne.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};ne.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};ne.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};ne.prototype.map=function(e,t){t=t||this;for(var r=new ne,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};ne.prototype.mapReverse=function(e,t){t=t||this;for(var r=new ne,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};ne.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;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=e(r,n.value,i),n=n.next;return r};ne.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;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=e(r,n.value,i),n=n.prev;return r};ne.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};ne.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};ne.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new ne;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};ne.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new ne;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};ne.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;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=C6(this,i,r[n]);return s};ne.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function C6(e,t,r){var n=t===e.head?new Cn(r,null,t,e):new Cn(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function S6(e,t){e.tail=new Cn(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function R6(e,t){e.head=new Cn(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Cn(e,t,r,n){if(!(this instanceof Cn))return new Cn(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{qA()(ne)}catch{}});var Au=y((WH,VA)=>{"use strict";var wu=class{constructor(t,r){this.path=t||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},F6=Xa(),T6=Bd(),O6=ou(),fp=tp(),k6=fp.Sync,P6=fp.Tar,B6=rp(),HA=Buffer.alloc(1024),yu=Symbol("onStat"),mu=Symbol("ended"),er=Symbol("queue"),Ti=Symbol("current"),Sn=Symbol("process"),gu=Symbol("processing"),$A=Symbol("processJob"),tr=Symbol("jobs"),np=Symbol("jobDone"),_u=Symbol("addFSEntry"),UA=Symbol("addTarEntry"),ap=Symbol("stat"),up=Symbol("readdir"),bu=Symbol("onreaddir"),Eu=Symbol("pipe"),GA=Symbol("entry"),ip=Symbol("entryOpt"),cp=Symbol("writeEntryClass"),zA=Symbol("write"),sp=Symbol("ondrain"),vu=require("fs"),WA=require("path"),I6=cu(),op=Ci(),hp=I6(class extends F6{constructor(t){super(t),t=t||Object.create(null),this.opt=t,this.file=t.file||"",this.cwd=t.cwd||process.cwd(),this.maxReadSize=t.maxReadSize,this.preservePaths=!!t.preservePaths,this.strict=!!t.strict,this.noPax=!!t.noPax,this.prefix=op(t.prefix||""),this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.readdirCache=t.readdirCache||new Map,this[cp]=fp,typeof t.onwarn=="function"&&this.on("warn",t.onwarn),this.portable=!!t.portable,this.zip=null,t.gzip?(typeof t.gzip!="object"&&(t.gzip={}),this.portable&&(t.gzip.portable=!0),this.zip=new T6.Gzip(t.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[sp]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[sp]),this.noDirRecurse=!!t.noDirRecurse,this.follow=!!t.follow,this.noMtime=!!t.noMtime,this.mtime=t.mtime||null,this.filter=typeof t.filter=="function"?t.filter:r=>!0,this[er]=new B6,this[tr]=0,this.jobs=+t.jobs||4,this[gu]=!1,this[mu]=!1}[zA](t){return super.write(t)}add(t){return this.write(t),this}end(t){return t&&this.write(t),this[mu]=!0,this[Sn](),this}write(t){if(this[mu])throw new Error("write after end");return t instanceof O6?this[UA](t):this[_u](t),this.flowing}[UA](t){let r=op(WA.resolve(this.cwd,t.path));if(!this.filter(t.path,t))t.resume();else{let n=new wu(t.path,r,!1);n.entry=new P6(t,this[ip](n)),n.entry.on("end",i=>this[np](n)),this[tr]+=1,this[er].push(n)}this[Sn]()}[_u](t){let r=op(WA.resolve(this.cwd,t));this[er].push(new wu(t,r)),this[Sn]()}[ap](t){t.pending=!0,this[tr]+=1;let r=this.follow?"stat":"lstat";vu[r](t.absolute,(n,i)=>{t.pending=!1,this[tr]-=1,n?this.emit("error",n):this[yu](t,i)})}[yu](t,r){this.statCache.set(t.absolute,r),t.stat=r,this.filter(t.path,r)||(t.ignore=!0),this[Sn]()}[up](t){t.pending=!0,this[tr]+=1,vu.readdir(t.absolute,(r,n)=>{if(t.pending=!1,this[tr]-=1,r)return this.emit("error",r);this[bu](t,n)})}[bu](t,r){this.readdirCache.set(t.absolute,r),t.readdir=r,this[Sn]()}[Sn](){if(!this[gu]){this[gu]=!0;for(let t=this[er].head;t!==null&&this[tr]<this.jobs;t=t.next)if(this[$A](t.value),t.value.ignore){let r=t.next;this[er].removeNode(t),t.next=r}this[gu]=!1,this[mu]&&!this[er].length&&this[tr]===0&&(this.zip?this.zip.end(HA):(super.write(HA),super.end()))}}get[Ti](){return this[er]&&this[er].head&&this[er].head.value}[np](t){this[er].shift(),this[tr]-=1,this[Sn]()}[$A](t){if(!t.pending){if(t.entry){t===this[Ti]&&!t.piped&&this[Eu](t);return}if(t.stat||(this.statCache.has(t.absolute)?this[yu](t,this.statCache.get(t.absolute)):this[ap](t)),!!t.stat&&!t.ignore&&!(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir&&(this.readdirCache.has(t.absolute)?this[bu](t,this.readdirCache.get(t.absolute)):this[up](t),!t.readdir))){if(t.entry=this[GA](t),!t.entry){t.ignore=!0;return}t===this[Ti]&&!t.piped&&this[Eu](t)}}}[ip](t){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:t.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}}[GA](t){this[tr]+=1;try{return new this[cp](t.path,this[ip](t)).on("end",()=>this[np](t)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[sp](){this[Ti]&&this[Ti].entry&&this[Ti].entry.resume()}[Eu](t){t.piped=!0,t.readdir&&t.readdir.forEach(i=>{let s=t.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[_u](o+i)});let r=t.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()}}),lp=class extends hp{constructor(t){super(t),this[cp]=k6}pause(){}resume(){}[ap](t){let r=this.follow?"statSync":"lstatSync";this[yu](t,vu[r](t.absolute))}[up](t,r){this[bu](t,vu.readdirSync(t.absolute))}[Eu](t){let r=t.entry,n=this.zip;t.readdir&&t.readdir.forEach(i=>{let s=t.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[_u](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[zA](i)})}};hp.Sync=lp;VA.exports=hp});var Mi=y(Ws=>{"use strict";var L6=_d(),N6=require("events").EventEmitter,dt=require("fs"),mp=dt.writev;if(!mp){let e=process.binding("fs"),t=e.FSReqWrap||e.FSReqCallback;mp=(r,n,i,s)=>{let o=(u,c)=>s(u,c,n),a=new t;a.oncomplete=o,e.writeBuffers(r,n,i,a)}}var Li=Symbol("_autoClose"),qt=Symbol("_close"),Gs=Symbol("_ended"),fe=Symbol("_fd"),YA=Symbol("_finished"),Xr=Symbol("_flags"),dp=Symbol("_flush"),gp=Symbol("_handleChunk"),yp=Symbol("_makeBuf"),Ru=Symbol("_mode"),Du=Symbol("_needDrain"),Bi=Symbol("_onerror"),Ni=Symbol("_onopen"),pp=Symbol("_onread"),ki=Symbol("_onwrite"),Zr=Symbol("_open"),Ar=Symbol("_path"),Rn=Symbol("_pos"),rr=Symbol("_queue"),Pi=Symbol("_read"),KA=Symbol("_readSize"),Jr=Symbol("_reading"),xu=Symbol("_remain"),JA=Symbol("_size"),Cu=Symbol("_write"),Oi=Symbol("_writing"),Su=Symbol("_defaultFlag"),Ii=Symbol("_errored"),Fu=class extends L6{constructor(t,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof t!="string")throw new TypeError("path must be a string");this[Ii]=!1,this[fe]=typeof r.fd=="number"?r.fd:null,this[Ar]=t,this[KA]=r.readSize||16*1024*1024,this[Jr]=!1,this[JA]=typeof r.size=="number"?r.size:1/0,this[xu]=this[JA],this[Li]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[fe]=="number"?this[Pi]():this[Zr]()}get fd(){return this[fe]}get path(){return this[Ar]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Zr](){dt.open(this[Ar],"r",(t,r)=>this[Ni](t,r))}[Ni](t,r){t?this[Bi](t):(this[fe]=r,this.emit("open",r),this[Pi]())}[yp](){return Buffer.allocUnsafe(Math.min(this[KA],this[xu]))}[Pi](){if(!this[Jr]){this[Jr]=!0;let t=this[yp]();if(t.length===0)return process.nextTick(()=>this[pp](null,0,t));dt.read(this[fe],t,0,t.length,null,(r,n,i)=>this[pp](r,n,i))}}[pp](t,r,n){this[Jr]=!1,t?this[Bi](t):this[gp](r,n)&&this[Pi]()}[qt](){if(this[Li]&&typeof this[fe]=="number"){let t=this[fe];this[fe]=null,dt.close(t,r=>r?this.emit("error",r):this.emit("close"))}}[Bi](t){this[Jr]=!0,this[qt](),this.emit("error",t)}[gp](t,r){let n=!1;return this[xu]-=t,t>0&&(n=super.write(t<r.length?r.slice(0,t):r)),(t===0||this[xu]<=0)&&(n=!1,this[qt](),super.end()),n}emit(t,r){switch(t){case"prefinish":case"finish":break;case"drain":typeof this[fe]=="number"&&this[Pi]();break;case"error":return this[Ii]?void 0:(this[Ii]=!0,super.emit(t,r));default:return super.emit(t,r)}}},_p=class extends Fu{[Zr](){let t=!0;try{this[Ni](null,dt.openSync(this[Ar],"r")),t=!1}finally{t&&this[qt]()}}[Pi](){let t=!0;try{if(!this[Jr]){this[Jr]=!0;do{let r=this[yp](),n=r.length===0?0:dt.readSync(this[fe],r,0,r.length,null);if(!this[gp](n,r))break}while(!0);this[Jr]=!1}t=!1}finally{t&&this[qt]()}}[qt](){if(this[Li]&&typeof this[fe]=="number"){let t=this[fe];this[fe]=null,dt.closeSync(t),this.emit("close")}}},Tu=class extends N6{constructor(t,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Ii]=!1,this[Oi]=!1,this[Gs]=!1,this[Du]=!1,this[rr]=[],this[Ar]=t,this[fe]=typeof r.fd=="number"?r.fd:null,this[Ru]=r.mode===void 0?438:r.mode,this[Rn]=typeof r.start=="number"?r.start:null,this[Li]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[Rn]!==null?"r+":"w";this[Su]=r.flags===void 0,this[Xr]=this[Su]?n:r.flags,this[fe]===null&&this[Zr]()}emit(t,r){if(t==="error"){if(this[Ii])return;this[Ii]=!0}return super.emit(t,r)}get fd(){return this[fe]}get path(){return this[Ar]}[Bi](t){this[qt](),this[Oi]=!0,this.emit("error",t)}[Zr](){dt.open(this[Ar],this[Xr],this[Ru],(t,r)=>this[Ni](t,r))}[Ni](t,r){this[Su]&&this[Xr]==="r+"&&t&&t.code==="ENOENT"?(this[Xr]="w",this[Zr]()):t?this[Bi](t):(this[fe]=r,this.emit("open",r),this[dp]())}end(t,r){return t&&this.write(t,r),this[Gs]=!0,!this[Oi]&&!this[rr].length&&typeof this[fe]=="number"&&this[ki](null,0),this}write(t,r){return typeof t=="string"&&(t=Buffer.from(t,r)),this[Gs]?(this.emit("error",new Error("write() after end()")),!1):this[fe]===null||this[Oi]||this[rr].length?(this[rr].push(t),this[Du]=!0,!1):(this[Oi]=!0,this[Cu](t),!0)}[Cu](t){dt.write(this[fe],t,0,t.length,this[Rn],(r,n)=>this[ki](r,n))}[ki](t,r){t?this[Bi](t):(this[Rn]!==null&&(this[Rn]+=r),this[rr].length?this[dp]():(this[Oi]=!1,this[Gs]&&!this[YA]?(this[YA]=!0,this[qt](),this.emit("finish")):this[Du]&&(this[Du]=!1,this.emit("drain"))))}[dp](){if(this[rr].length===0)this[Gs]&&this[ki](null,0);else if(this[rr].length===1)this[Cu](this[rr].pop());else{let t=this[rr];this[rr]=[],mp(this[fe],t,this[Rn],(r,n)=>this[ki](r,n))}}[qt](){if(this[Li]&&typeof this[fe]=="number"){let t=this[fe];this[fe]=null,dt.close(t,r=>r?this.emit("error",r):this.emit("close"))}}},bp=class extends Tu{[Zr](){let t;if(this[Su]&&this[Xr]==="r+")try{t=dt.openSync(this[Ar],this[Xr],this[Ru])}catch(r){if(r.code==="ENOENT")return this[Xr]="w",this[Zr]();throw r}else t=dt.openSync(this[Ar],this[Xr],this[Ru]);this[Ni](null,t)}[qt](){if(this[Li]&&typeof this[fe]=="number"){let t=this[fe];this[fe]=null,dt.closeSync(t),this.emit("close")}}[Cu](t){let r=!0;try{this[ki](null,dt.writeSync(this[fe],t,0,t.length,this[Rn])),r=!1}finally{if(r)try{this[qt]()}catch{}}}};Ws.ReadStream=Fu;Ws.ReadStreamSync=_p;Ws.WriteStream=Tu;Ws.WriteStreamSync=bp});var Nu=y((YH,iD)=>{"use strict";var M6=cu(),q6=Ri(),j6=require("events"),H6=rp(),$6=1024*1024,U6=ou(),XA=uu(),G6=Bd(),{nextTick:W6}=require("process"),Ep=Buffer.from([31,139]),Ct=Symbol("state"),Fn=Symbol("writeEntry"),Dr=Symbol("readEntry"),wp=Symbol("nextEntry"),ZA=Symbol("processEntry"),St=Symbol("extendedHeader"),zs=Symbol("globalExtendedHeader"),Qr=Symbol("meta"),QA=Symbol("emitMeta"),_e=Symbol("buffer"),xr=Symbol("queue"),Tn=Symbol("ended"),eD=Symbol("emittedEnd"),On=Symbol("emit"),pt=Symbol("unzip"),Ou=Symbol("consumeChunk"),ku=Symbol("consumeChunkSub"),vp=Symbol("consumeBody"),tD=Symbol("consumeMeta"),rD=Symbol("consumeHeader"),Pu=Symbol("consuming"),Ap=Symbol("bufferConcat"),Dp=Symbol("maybeEnd"),Vs=Symbol("writing"),en=Symbol("aborted"),Bu=Symbol("onDone"),kn=Symbol("sawValidEntry"),Iu=Symbol("sawNullBlock"),Lu=Symbol("sawEOF"),nD=Symbol("closeStream"),z6=e=>!0;iD.exports=M6(class extends j6{constructor(t){t=t||{},super(t),this.file=t.file||"",this[kn]=null,this.on(Bu,r=>{(this[Ct]==="begin"||this[kn]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),t.ondone?this.on(Bu,t.ondone):this.on(Bu,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!t.strict,this.maxMetaEntrySize=t.maxMetaEntrySize||$6,this.filter=typeof t.filter=="function"?t.filter:z6,this.writable=!0,this.readable=!1,this[xr]=new H6,this[_e]=null,this[Dr]=null,this[Fn]=null,this[Ct]="begin",this[Qr]="",this[St]=null,this[zs]=null,this[Tn]=!1,this[pt]=null,this[en]=!1,this[Iu]=!1,this[Lu]=!1,this.on("end",()=>this[nD]()),typeof t.onwarn=="function"&&this.on("warn",t.onwarn),typeof t.onentry=="function"&&this.on("entry",t.onentry)}[rD](t,r){this[kn]===null&&(this[kn]=!1);let n;try{n=new q6(t,r,this[St],this[zs])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[Iu]?(this[Lu]=!0,this[Ct]==="begin"&&(this[Ct]="header"),this[On]("eof")):(this[Iu]=!0,this[On]("nullBlock"));else if(this[Iu]=!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[Fn]=new U6(n,this[St],this[zs]);if(!this[kn])if(s.remain){let o=()=>{s.invalid||(this[kn]=!0)};s.on("end",o)}else this[kn]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[On]("ignoredEntry",s),this[Ct]="ignore",s.resume()):s.size>0&&(this[Qr]="",s.on("data",o=>this[Qr]+=o),this[Ct]="meta"):(this[St]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[On]("ignoredEntry",s),this[Ct]=s.remain?"ignore":"header",s.resume()):(s.remain?this[Ct]="body":(this[Ct]="header",s.end()),this[Dr]?this[xr].push(s):(this[xr].push(s),this[wp]())))}}}[nD](){W6(()=>this.emit("close"))}[ZA](t){let r=!0;return t?Array.isArray(t)?this.emit.apply(this,t):(this[Dr]=t,this.emit("entry",t),t.emittedEnd||(t.on("end",n=>this[wp]()),r=!1)):(this[Dr]=null,r=!1),r}[wp](){do;while(this[ZA](this[xr].shift()));if(!this[xr].length){let t=this[Dr];!t||t.flowing||t.size===t.remain?this[Vs]||this.emit("drain"):t.once("drain",n=>this.emit("drain"))}}[vp](t,r){let n=this[Fn],i=n.blockRemain,s=i>=t.length&&r===0?t:t.slice(r,r+i);return n.write(s),n.blockRemain||(this[Ct]="header",this[Fn]=null,n.end()),s.length}[tD](t,r){let n=this[Fn],i=this[vp](t,r);return this[Fn]||this[QA](n),i}[On](t,r,n){!this[xr].length&&!this[Dr]?this.emit(t,r,n):this[xr].push([t,r,n])}[QA](t){switch(this[On]("meta",this[Qr]),t.type){case"ExtendedHeader":case"OldExtendedHeader":this[St]=XA.parse(this[Qr],this[St],!1);break;case"GlobalExtendedHeader":this[zs]=XA.parse(this[Qr],this[zs],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[St]=this[St]||Object.create(null),this[St].path=this[Qr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[St]=this[St]||Object.create(null),this[St].linkpath=this[Qr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+t.type)}}abort(t){this[en]=!0,this.emit("abort",t),this.warn("TAR_ABORT",t,{recoverable:!1})}write(t){if(this[en])return;if(this[pt]===null&&t){if(this[_e]&&(t=Buffer.concat([this[_e],t]),this[_e]=null),t.length<Ep.length)return this[_e]=t,!0;for(let n=0;this[pt]===null&&n<Ep.length;n++)t[n]!==Ep[n]&&(this[pt]=!1);if(this[pt]===null){let n=this[Tn];this[Tn]=!1,this[pt]=new G6.Unzip,this[pt].on("data",s=>this[Ou](s)),this[pt].on("error",s=>this.abort(s)),this[pt].on("end",s=>{this[Tn]=!0,this[Ou]()}),this[Vs]=!0;let i=this[pt][n?"end":"write"](t);return this[Vs]=!1,i}}this[Vs]=!0,this[pt]?this[pt].write(t):this[Ou](t),this[Vs]=!1;let r=this[xr].length?!1:this[Dr]?this[Dr].flowing:!0;return!r&&!this[xr].length&&this[Dr].once("drain",n=>this.emit("drain")),r}[Ap](t){t&&!this[en]&&(this[_e]=this[_e]?Buffer.concat([this[_e],t]):t)}[Dp](){if(this[Tn]&&!this[eD]&&!this[en]&&!this[Pu]){this[eD]=!0;let t=this[Fn];if(t&&t.blockRemain){let r=this[_e]?this[_e].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${r} available)`,{entry:t}),this[_e]&&t.write(this[_e]),t.end()}this[On](Bu)}}[Ou](t){if(this[Pu])this[Ap](t);else if(!t&&!this[_e])this[Dp]();else{if(this[Pu]=!0,this[_e]){this[Ap](t);let r=this[_e];this[_e]=null,this[ku](r)}else this[ku](t);for(;this[_e]&&this[_e].length>=512&&!this[en]&&!this[Lu];){let r=this[_e];this[_e]=null,this[ku](r)}this[Pu]=!1}(!this[_e]||this[Tn])&&this[Dp]()}[ku](t){let r=0,n=t.length;for(;r+512<=n&&!this[en]&&!this[Lu];)switch(this[Ct]){case"begin":case"header":this[rD](t,r),r+=512;break;case"ignore":case"body":r+=this[vp](t,r);break;case"meta":r+=this[tD](t,r);break;default:throw new Error("invalid state: "+this[Ct])}r<n&&(this[_e]?this[_e]=Buffer.concat([t.slice(r),this[_e]]):this[_e]=t.slice(r))}end(t){this[en]||(this[pt]?this[pt].end(t):(this[Tn]=!0,this.write(t)))}})});var Mu=y((KH,uD)=>{"use strict";var V6=wi(),oD=Nu(),qi=require("fs"),Y6=Mi(),sD=require("path"),xp=Fi();uD.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=V6(e);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 t.length&&J6(n,t),n.noResume||K6(n),n.file&&n.sync?X6(n):n.file?Z6(n,r):aD(n)};var K6=e=>{let t=e.onentry;e.onentry=t?r=>{t(r),r.resume()}:r=>r.resume()},J6=(e,t)=>{let r=new Map(t.map(s=>[xp(s),!0])),n=e.filter,i=(s,o)=>{let a=o||sD.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(sD.dirname(s),a);return r.set(s,u),u};e.filter=n?(s,o)=>n(s,o)&&i(xp(s)):s=>i(xp(s))},X6=e=>{let t=aD(e),r=e.file,n=!0,i;try{let s=qi.statSync(r),o=e.maxReadSize||16*1024*1024;if(s.size<o)t.end(qi.readFileSync(r));else{let a=0,u=Buffer.allocUnsafe(o);for(i=qi.openSync(r,"r");a<s.size;){let c=qi.readSync(i,u,0,o,a);a+=c,t.write(u.slice(0,c))}t.end()}n=!1}finally{if(n&&i)try{qi.closeSync(i)}catch{}}},Z6=(e,t)=>{let r=new oD(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),qi.stat(i,(u,c)=>{if(u)a(u);else{let l=new Y6.ReadStream(i,{readSize:n,size:c.size});l.on("error",a),l.pipe(r)}})});return t?s.then(t,t):s},aD=e=>new oD(e)});var pD=y((JH,dD)=>{"use strict";var Q6=wi(),qu=Au(),cD=Mi(),lD=Mu(),fD=require("path");dD.exports=(e,t,r)=>{if(typeof t=="function"&&(r=t),Array.isArray(e)&&(t=e,e={}),!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);let n=Q6(e);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?e8(n,t):n.file?t8(n,t,r):n.sync?r8(n,t):n8(n,t)};var e8=(e,t)=>{let r=new qu.Sync(e),n=new cD.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(n),hD(r,t)},t8=(e,t,r)=>{let n=new qu(e),i=new cD.WriteStream(e.file,{mode:e.mode||438});n.pipe(i);let s=new Promise((o,a)=>{i.on("error",a),i.on("close",o),n.on("error",a)});return Cp(n,t),r?s.then(r,r):s},hD=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?lD({file:fD.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},Cp=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return lD({file:fD.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>Cp(e,t));e.add(r)}e.end()},r8=(e,t)=>{let r=new qu.Sync(e);return hD(r,t),r},n8=(e,t)=>{let r=new qu(e);return Cp(r,t),r}});var Sp=y((XH,wD)=>{"use strict";var i8=wi(),mD=Au(),Et=require("fs"),gD=Mi(),yD=Mu(),_D=require("path"),bD=Ri();wD.exports=(e,t,r)=>{let n=i8(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),n.sync?s8(n,t):a8(n,t,r)};var s8=(e,t)=>{let r=new mD.Sync(e),n=!0,i,s;try{try{i=Et.openSync(e.file,"r+")}catch(u){if(u.code==="ENOENT")i=Et.openSync(e.file,"w+");else throw u}let o=Et.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=Et.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 bD(a);if(!u.cksumValid)break;let c=512*Math.ceil(u.size/512);if(s+c+512>o.size)break;s+=c,e.mtimeCache&&e.mtimeCache.set(u.path,u.mtime)}n=!1,o8(e,r,s,i,t)}finally{if(n)try{Et.closeSync(i)}catch{}}},o8=(e,t,r,n,i)=>{let s=new gD.WriteStreamSync(e.file,{fd:n,start:r});t.pipe(s),u8(t,i)},a8=(e,t,r)=>{t=Array.from(t);let n=new mD(e),i=(o,a,u)=>{let c=(m,g)=>{m?Et.close(o,b=>u(m)):u(null,g)},l=0;if(a===0)return c(null,0);let f=0,h=Buffer.alloc(512),p=(m,g)=>{if(m)return c(m);if(f+=g,f<512&&g)return Et.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 b=new bD(h);if(!b.cksumValid)return c(null,l);let v=512*Math.ceil(b.size/512);if(l+v+512>a||(l+=v+512,l>=a))return c(null,l);e.mtimeCache&&e.mtimeCache.set(b.path,b.mtime),f=0,Et.read(o,h,0,512,l,p)};Et.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+",Et.open(e.file,u,c);if(l)return a(l);Et.fstat(f,(h,p)=>{if(h)return Et.close(f,()=>a(h));i(f,p.size,(m,g)=>{if(m)return a(m);let b=new gD.WriteStream(e.file,{fd:f,start:g});n.pipe(b),b.on("error",a),b.on("close",o),ED(n,t)})})};Et.open(e.file,u,c)});return r?s.then(r,r):s},u8=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?yD({file:_D.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},ED=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return yD({file:_D.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>ED(e,t));e.add(r)}e.end()}});var AD=y((ZH,vD)=>{"use strict";var c8=wi(),l8=Sp();vD.exports=(e,t,r)=>{let n=c8(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),f8(n),l8(n,t,r)};var f8=e=>{let t=e.filter;e.mtimeCache||(e.mtimeCache=new Map),e.filter=t?(r,n)=>t(r,n)&&!(e.mtimeCache.get(r)>n.mtime):(r,n)=>!(e.mtimeCache.get(r)>n.mtime)}});var CD=y((QH,xD)=>{var{promisify:DD}=require("util"),tn=require("fs"),h8=e=>{if(!e)e={mode:511,fs:tn};else if(typeof e=="object")e={mode:511,fs:tn,...e};else if(typeof e=="number")e={mode:e,fs:tn};else if(typeof e=="string")e={mode:parseInt(e,8),fs:tn};else throw new TypeError("invalid options argument");return e.mkdir=e.mkdir||e.fs.mkdir||tn.mkdir,e.mkdirAsync=DD(e.mkdir),e.stat=e.stat||e.fs.stat||tn.stat,e.statAsync=DD(e.stat),e.statSync=e.statSync||e.fs.statSync||tn.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||tn.mkdirSync,e};xD.exports=h8});var RD=y((e$,SD)=>{var d8=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:p8,parse:m8}=require("path"),g8=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=p8(e),d8==="win32"){let t=/[*|"<>?:]/,{root:r}=m8(e);if(t.test(e.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e};SD.exports=g8});var PD=y((t$,kD)=>{var{dirname:FD}=require("path"),TD=(e,t,r=void 0)=>r===t?Promise.resolve():e.statAsync(t).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?TD(e,FD(t),t):void 0),OD=(e,t,r=void 0)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?OD(e,FD(t),t):void 0}};kD.exports={findMade:TD,findMadeSync:OD}});var Tp=y((r$,ID)=>{var{dirname:BD}=require("path"),Rp=(e,t,r)=>{t.recursive=!1;let n=BD(e);return n===e?t.mkdirAsync(e,t).catch(i=>{if(i.code!=="EISDIR")throw i}):t.mkdirAsync(e,t).then(()=>r||e,i=>{if(i.code==="ENOENT")return Rp(n,t).then(s=>Rp(e,t,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return t.statAsync(e).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},Fp=(e,t,r)=>{let n=BD(e);if(t.recursive=!1,n===e)try{return t.mkdirSync(e,t)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return t.mkdirSync(e,t),r||e}catch(i){if(i.code==="ENOENT")return Fp(e,t,Fp(n,t,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!t.statSync(e).isDirectory())throw i}catch{throw i}}};ID.exports={mkdirpManual:Rp,mkdirpManualSync:Fp}});var MD=y((n$,ND)=>{var{dirname:LD}=require("path"),{findMade:y8,findMadeSync:_8}=PD(),{mkdirpManual:b8,mkdirpManualSync:E8}=Tp(),w8=(e,t)=>(t.recursive=!0,LD(e)===e?t.mkdirAsync(e,t):y8(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(i=>{if(i.code==="ENOENT")return b8(e,t);throw i}))),v8=(e,t)=>{if(t.recursive=!0,LD(e)===e)return t.mkdirSync(e,t);let n=_8(t,e);try{return t.mkdirSync(e,t),n}catch(i){if(i.code==="ENOENT")return E8(e,t);throw i}};ND.exports={mkdirpNative:w8,mkdirpNativeSync:v8}});var $D=y((i$,HD)=>{var qD=require("fs"),A8=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Op=A8.replace(/^v/,"").split("."),jD=+Op[0]>10||+Op[0]==10&&+Op[1]>=12,D8=jD?e=>e.mkdir===qD.mkdir:()=>!1,x8=jD?e=>e.mkdirSync===qD.mkdirSync:()=>!1;HD.exports={useNative:D8,useNativeSync:x8}});var YD=y((s$,VD)=>{var ji=CD(),Hi=RD(),{mkdirpNative:UD,mkdirpNativeSync:GD}=MD(),{mkdirpManual:WD,mkdirpManualSync:zD}=Tp(),{useNative:C8,useNativeSync:S8}=$D(),$i=(e,t)=>(e=Hi(e),t=ji(t),C8(t)?UD(e,t):WD(e,t)),R8=(e,t)=>(e=Hi(e),t=ji(t),S8(t)?GD(e,t):zD(e,t));$i.sync=R8;$i.native=(e,t)=>UD(Hi(e),ji(t));$i.manual=(e,t)=>WD(Hi(e),ji(t));$i.nativeSync=(e,t)=>GD(Hi(e),ji(t));$i.manualSync=(e,t)=>zD(Hi(e),ji(t));VD.exports=$i});var tx=y((o$,ex)=>{"use strict";var Rt=require("fs"),Pn=require("path"),F8=Rt.lchown?"lchown":"chown",T8=Rt.lchownSync?"lchownSync":"chownSync",JD=Rt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),KD=(e,t,r)=>{try{return Rt[T8](e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},O8=(e,t,r)=>{try{return Rt.chownSync(e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},k8=JD?(e,t,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):Rt.chown(e,t,r,n)}:(e,t,r,n)=>n,kp=JD?(e,t,r)=>{try{return KD(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;O8(e,t,r)}}:(e,t,r)=>KD(e,t,r),P8=process.version,XD=(e,t,r)=>Rt.readdir(e,t,r),B8=(e,t)=>Rt.readdirSync(e,t);/^v4\./.test(P8)&&(XD=(e,t,r)=>Rt.readdir(e,r));var ju=(e,t,r,n)=>{Rt[F8](e,t,r,k8(e,t,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},ZD=(e,t,r,n,i)=>{if(typeof t=="string")return Rt.lstat(Pn.resolve(e,t),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=t,ZD(e,o,r,n,i)});if(t.isDirectory())Pp(Pn.resolve(e,t.name),r,n,s=>{if(s)return i(s);let o=Pn.resolve(e,t.name);ju(o,r,n,i)});else{let s=Pn.resolve(e,t.name);ju(s,r,n,i)}},Pp=(e,t,r,n)=>{XD(e,{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 ju(e,t,r,n);let o=s.length,a=null,u=c=>{if(!a){if(c)return n(a=c);if(--o===0)return ju(e,t,r,n)}};s.forEach(c=>ZD(e,c,t,r,u))})},I8=(e,t,r,n)=>{if(typeof t=="string")try{let i=Rt.lstatSync(Pn.resolve(e,t));i.name=t,t=i}catch(i){if(i.code==="ENOENT")return;throw i}t.isDirectory()&&QD(Pn.resolve(e,t.name),r,n),kp(Pn.resolve(e,t.name),r,n)},QD=(e,t,r)=>{let n;try{n=B8(e,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return kp(e,t,r);throw i}return n&&n.length&&n.forEach(i=>I8(e,i,t,r)),kp(e,t,r)};ex.exports=Pp;Pp.sync=QD});var sx=y((a$,Bp)=>{"use strict";var rx=YD(),Ft=require("fs"),Hu=require("path"),nx=tx(),jt=Ci(),$u=class extends Error{constructor(t,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=t}get name(){return"SylinkError"}},Uu=class extends Error{constructor(t,r){super(r+": Cannot cd into '"+t+"'"),this.path=t,this.code=r}get name(){return"CwdError"}},Gu=(e,t)=>e.get(jt(t)),Ys=(e,t,r)=>e.set(jt(t),r),L8=(e,t)=>{Ft.stat(e,(r,n)=>{(r||!n.isDirectory())&&(r=new Uu(e,r&&r.code||"ENOTDIR")),t(r)})};Bp.exports=(e,t,r)=>{e=jt(e);let n=t.umask,i=t.mode|448,s=(i&n)!==0,o=t.uid,a=t.gid,u=typeof o=="number"&&typeof a=="number"&&(o!==t.processUid||a!==t.processGid),c=t.preserve,l=t.unlink,f=t.cache,h=jt(t.cwd),p=(b,v)=>{b?r(b):(Ys(f,e,!0),v&&u?nx(v,o,a,S=>p(S)):s?Ft.chmod(e,i,r):r())};if(f&&Gu(f,e)===!0)return p();if(e===h)return L8(e,p);if(c)return rx(e,{mode:i}).then(b=>p(null,b),p);let g=jt(Hu.relative(h,e)).split("/");Wu(h,g,i,f,l,h,null,p)};var Wu=(e,t,r,n,i,s,o,a)=>{if(!t.length)return a(null,o);let u=t.shift(),c=jt(Hu.resolve(e+"/"+u));if(Gu(n,c))return Wu(c,t,r,n,i,s,o,a);Ft.mkdir(c,r,ix(c,t,r,n,i,s,o,a))},ix=(e,t,r,n,i,s,o,a)=>u=>{u?Ft.lstat(e,(c,l)=>{if(c)c.path=c.path&&jt(c.path),a(c);else if(l.isDirectory())Wu(e,t,r,n,i,s,o,a);else if(i)Ft.unlink(e,f=>{if(f)return a(f);Ft.mkdir(e,r,ix(e,t,r,n,i,s,o,a))});else{if(l.isSymbolicLink())return a(new $u(e,e+"/"+t.join("/")));a(u)}}):(o=o||e,Wu(e,t,r,n,i,s,o,a))},N8=e=>{let t=!1,r="ENOTDIR";try{t=Ft.statSync(e).isDirectory()}catch(n){r=n.code}finally{if(!t)throw new Uu(e,r)}};Bp.exports.sync=(e,t)=>{e=jt(e);let r=t.umask,n=t.mode|448,i=(n&r)!==0,s=t.uid,o=t.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==t.processUid||o!==t.processGid),u=t.preserve,c=t.unlink,l=t.cache,f=jt(t.cwd),h=b=>{Ys(l,e,!0),b&&a&&nx.sync(b,s,o),i&&Ft.chmodSync(e,n)};if(l&&Gu(l,e)===!0)return h();if(e===f)return N8(f),h();if(u)return h(rx.sync(e,n));let m=jt(Hu.relative(f,e)).split("/"),g=null;for(let b=m.shift(),v=f;b&&(v+="/"+b);b=m.shift())if(v=jt(Hu.resolve(v)),!Gu(l,v))try{Ft.mkdirSync(v,n),g=g||v,Ys(l,v,!0)}catch{let L=Ft.lstatSync(v);if(L.isDirectory()){Ys(l,v,!0);continue}else if(c){Ft.unlinkSync(v),Ft.mkdirSync(v,n),g=g||v,Ys(l,v,!0);continue}else if(L.isSymbolicLink())return new $u(v,v+"/"+m.join("/"))}return h(g)}});var Lp=y((u$,ox)=>{var Ip=Object.create(null),{hasOwnProperty:M8}=Object.prototype;ox.exports=e=>(M8.call(Ip,e)||(Ip[e]=e.normalize("NFKD")),Ip[e])});var lx=y((c$,cx)=>{var ax=require("assert"),q8=Lp(),j8=Fi(),{join:ux}=require("path"),H8=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,$8=H8==="win32";cx.exports=()=>{let e=new Map,t=new Map,r=c=>c.split("/").slice(0,-1).reduce((f,h)=>(f.length&&(h=ux(f[f.length-1],h)),f.push(h||"/"),f),[]),n=new Set,i=c=>{let l=t.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(f=>e.get(f)),dirs:[...l.dirs].map(f=>e.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}=t.get(c),h=new Set;return l.forEach(p=>{let m=e.get(p);ax.equal(m[0],c),m.length===1?e.delete(p):(m.shift(),typeof m[0]=="function"?h.add(m[0]):m[0].forEach(g=>h.add(g)))}),f.forEach(p=>{let m=e.get(p);ax(m[0]instanceof Set),m[0].size===1&&m.length===1?e.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=$8?["win32 parallelization disabled"]:c.map(h=>q8(j8(ux(h))).toLowerCase());let f=new Set(c.map(h=>r(h)).reduce((h,p)=>h.concat(p)));return t.set(l,{dirs:f,paths:c}),c.forEach(h=>{let p=e.get(h);p?p.push(l):e.set(h,[l])}),f.forEach(h=>{let p=e.get(h);p?p[p.length-1]instanceof Set?p[p.length-1].add(l):p.push(new Set([l])):e.set(h,[new Set([l])])}),o(l)}}}});var dx=y((l$,hx)=>{var U8=process.env.__FAKE_PLATFORM__||process.platform,G8=U8==="win32",W8=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:z8,O_TRUNC:V8,O_WRONLY:Y8,UV_FS_O_FILEMAP:fx=0}=W8.constants,K8=G8&&!!fx,J8=512*1024,X8=fx|V8|z8|Y8;hx.exports=K8?e=>e<J8?X8:"w":()=>"w"});var Wp=y((f$,Sx)=>{"use strict";var Z8=require("assert"),Q8=Nu(),ie=require("fs"),eN=Mi(),Cr=require("path"),Dx=sx(),px=Gd(),tN=lx(),rN=Wd(),wt=Ci(),nN=Fi(),iN=Lp(),mx=Symbol("onEntry"),qp=Symbol("checkFs"),gx=Symbol("checkFs2"),Yu=Symbol("pruneCache"),jp=Symbol("isReusable"),Tt=Symbol("makeFs"),Hp=Symbol("file"),$p=Symbol("directory"),Ku=Symbol("link"),yx=Symbol("symlink"),_x=Symbol("hardlink"),bx=Symbol("unsupported"),Ex=Symbol("checkPath"),rn=Symbol("mkdir"),Qe=Symbol("onError"),zu=Symbol("pending"),wx=Symbol("pend"),Ui=Symbol("unpend"),Np=Symbol("ended"),Mp=Symbol("maybeClose"),Up=Symbol("skip"),Ks=Symbol("doChown"),Js=Symbol("uid"),Xs=Symbol("gid"),Zs=Symbol("checkedCwd"),xx=require("crypto"),Cx=dx(),sN=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Qs=sN==="win32",oN=(e,t)=>{if(!Qs)return ie.unlink(e,t);let r=e+".DELETE."+xx.randomBytes(16).toString("hex");ie.rename(e,r,n=>{if(n)return t(n);ie.unlink(r,t)})},aN=e=>{if(!Qs)return ie.unlinkSync(e);let t=e+".DELETE."+xx.randomBytes(16).toString("hex");ie.renameSync(e,t),ie.unlinkSync(t)},vx=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r,Ax=e=>iN(nN(wt(e))).toLowerCase(),uN=(e,t)=>{t=Ax(t);for(let r of e.keys()){let n=Ax(r);(n===t||n.indexOf(t+"/")===0)&&e.delete(r)}},cN=e=>{for(let t of e.keys())e.delete(t)},eo=class extends Q8{constructor(t){if(t||(t={}),t.ondone=r=>{this[Np]=!0,this[Mp]()},super(t),this[Zs]=!1,this.reservations=tN(),this.transform=typeof t.transform=="function"?t.transform:null,this.writable=!0,this.readable=!1,this[zu]=0,this[Np]=!1,this.dirCache=t.dirCache||new Map,typeof t.uid=="number"||typeof t.gid=="number"){if(typeof t.uid!="number"||typeof t.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(t.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=t.uid,this.gid=t.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;t.preserveOwner===void 0&&typeof t.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!t.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=t.forceChown===!0,this.win32=!!t.win32||Qs,this.newer=!!t.newer,this.keep=!!t.keep,this.noMtime=!!t.noMtime,this.preservePaths=!!t.preservePaths,this.unlink=!!t.unlink,this.cwd=wt(Cr.resolve(t.cwd||process.cwd())),this.strip=+t.strip||0,this.processUmask=t.noChmod?0:process.umask(),this.umask=typeof t.umask=="number"?t.umask:this.processUmask,this.dmode=t.dmode||511&~this.umask,this.fmode=t.fmode||438&~this.umask,this.on("entry",r=>this[mx](r))}warn(t,r,n={}){return(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT")&&(n.recoverable=!1),super.warn(t,r,n)}[Mp](){this[Np]&&this[zu]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[Ex](t){if(this.strip){let r=wt(t.path).split("/");if(r.length<this.strip)return!1;if(t.path=r.slice(this.strip).join("/"),t.type==="Link"){let n=wt(t.linkpath).split("/");if(n.length>=this.strip)t.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=wt(t.path),n=r.split("/");if(n.includes("..")||Qs&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:t,path:r}),!1;let[i,s]=rN(r);i&&(t.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:t,path:r}))}if(Cr.isAbsolute(t.path)?t.absolute=wt(Cr.resolve(t.path)):t.absolute=wt(Cr.resolve(this.cwd,t.path)),!this.preservePaths&&t.absolute.indexOf(this.cwd+"/")!==0&&t.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:wt(t.path),resolvedPath:t.absolute,cwd:this.cwd}),!1;if(t.absolute===this.cwd&&t.type!=="Directory"&&t.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=Cr.win32.parse(t.absolute);t.absolute=r+px.encode(t.absolute.slice(r.length));let{root:n}=Cr.win32.parse(t.path);t.path=n+px.encode(t.path.slice(n.length))}return!0}[mx](t){if(!this[Ex](t))return t.resume();switch(Z8.equal(typeof t.absolute,"string"),t.type){case"Directory":case"GNUDumpDir":t.mode&&(t.mode=t.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[qp](t);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[bx](t)}}[Qe](t,r){t.name==="CwdError"?this.emit("error",t):(this.warn("TAR_ENTRY_ERROR",t,{entry:r}),this[Ui](),r.resume())}[rn](t,r,n){Dx(wt(t),{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)}[Ks](t){return this.forceChown||this.preserveOwner&&(typeof t.uid=="number"&&t.uid!==this.processUid||typeof t.gid=="number"&&t.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Js](t){return vx(this.uid,t.uid,this.processUid)}[Xs](t){return vx(this.gid,t.gid,this.processGid)}[Hp](t,r){let n=t.mode&4095||this.fmode,i=new eN.WriteStream(t.absolute,{flags:Cx(t.size),mode:n,autoClose:!1});i.on("error",u=>{i.fd&&ie.close(i.fd,()=>{}),i.write=()=>!0,this[Qe](u,t),r()});let s=1,o=u=>{if(u){i.fd&&ie.close(i.fd,()=>{}),this[Qe](u,t),r();return}--s===0&&ie.close(i.fd,c=>{c?this[Qe](c,t):this[Ui](),r()})};i.on("finish",u=>{let c=t.absolute,l=i.fd;if(t.mtime&&!this.noMtime){s++;let f=t.atime||new Date,h=t.mtime;ie.futimes(l,f,h,p=>p?ie.utimes(c,f,h,m=>o(m&&p)):o())}if(this[Ks](t)){s++;let f=this[Js](t),h=this[Xs](t);ie.fchown(l,f,h,p=>p?ie.chown(c,f,h,m=>o(m&&p)):o())}o()});let a=this.transform&&this.transform(t)||t;a!==t&&(a.on("error",u=>{this[Qe](u,t),r()}),t.pipe(a)),a.pipe(i)}[$p](t,r){let n=t.mode&4095||this.dmode;this[rn](t.absolute,n,i=>{if(i){this[Qe](i,t),r();return}let s=1,o=a=>{--s===0&&(r(),this[Ui](),t.resume())};t.mtime&&!this.noMtime&&(s++,ie.utimes(t.absolute,t.atime||new Date,t.mtime,o)),this[Ks](t)&&(s++,ie.chown(t.absolute,this[Js](t),this[Xs](t),o)),o()})}[bx](t){t.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t}),t.resume()}[yx](t,r){this[Ku](t,t.linkpath,"symlink",r)}[_x](t,r){let n=wt(Cr.resolve(this.cwd,t.linkpath));this[Ku](t,n,"link",r)}[wx](){this[zu]++}[Ui](){this[zu]--,this[Mp]()}[Up](t){this[Ui](),t.resume()}[jp](t,r){return t.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Qs}[qp](t){this[wx]();let r=[t.path];t.linkpath&&r.push(t.linkpath),this.reservations.reserve(r,n=>this[gx](t,n))}[Yu](t){t.type==="SymbolicLink"?cN(this.dirCache):t.type!=="Directory"&&uN(this.dirCache,t.absolute)}[gx](t,r){this[Yu](t);let n=a=>{this[Yu](t),r(a)},i=()=>{this[rn](this.cwd,this.dmode,a=>{if(a){this[Qe](a,t),n();return}this[Zs]=!0,s()})},s=()=>{if(t.absolute!==this.cwd){let a=wt(Cr.dirname(t.absolute));if(a!==this.cwd)return this[rn](a,this.dmode,u=>{if(u){this[Qe](u,t),n();return}o()})}o()},o=()=>{ie.lstat(t.absolute,(a,u)=>{if(u&&(this.keep||this.newer&&u.mtime>t.mtime)){this[Up](t),n();return}if(a||this[jp](t,u))return this[Tt](null,t,n);if(u.isDirectory()){if(t.type==="Directory"){let c=!this.noChmod&&t.mode&&(u.mode&4095)!==t.mode,l=f=>this[Tt](f,t,n);return c?ie.chmod(t.absolute,t.mode,l):l()}if(t.absolute!==this.cwd)return ie.rmdir(t.absolute,c=>this[Tt](c,t,n))}if(t.absolute===this.cwd)return this[Tt](null,t,n);oN(t.absolute,c=>this[Tt](c,t,n))})};this[Zs]?s():i()}[Tt](t,r,n){if(t){this[Qe](t,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[Hp](r,n);case"Link":return this[_x](r,n);case"SymbolicLink":return this[yx](r,n);case"Directory":case"GNUDumpDir":return this[$p](r,n)}}[Ku](t,r,n,i){ie[n](r,t.absolute,s=>{s?this[Qe](s,t):(this[Ui](),t.resume()),i()})}},Vu=e=>{try{return[null,e()]}catch(t){return[t,null]}},Gp=class extends eo{[Tt](t,r){return super[Tt](t,r,()=>{})}[qp](t){if(this[Yu](t),!this[Zs]){let s=this[rn](this.cwd,this.dmode);if(s)return this[Qe](s,t);this[Zs]=!0}if(t.absolute!==this.cwd){let s=wt(Cr.dirname(t.absolute));if(s!==this.cwd){let o=this[rn](s,this.dmode);if(o)return this[Qe](o,t)}}let[r,n]=Vu(()=>ie.lstatSync(t.absolute));if(n&&(this.keep||this.newer&&n.mtime>t.mtime))return this[Up](t);if(r||this[jp](t,n))return this[Tt](null,t);if(n.isDirectory()){if(t.type==="Directory"){let o=!this.noChmod&&t.mode&&(n.mode&4095)!==t.mode,[a]=o?Vu(()=>{ie.chmodSync(t.absolute,t.mode)}):[];return this[Tt](a,t)}let[s]=Vu(()=>ie.rmdirSync(t.absolute));this[Tt](s,t)}let[i]=t.absolute===this.cwd?[]:Vu(()=>aN(t.absolute));this[Tt](i,t)}[Hp](t,r){let n=t.mode&4095||this.fmode,i=a=>{let u;try{ie.closeSync(s)}catch(c){u=c}(a||u)&&this[Qe](a||u,t),r()},s;try{s=ie.openSync(t.absolute,Cx(t.size),n)}catch(a){return i(a)}let o=this.transform&&this.transform(t)||t;o!==t&&(o.on("error",a=>this[Qe](a,t)),t.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(t.mtime&&!this.noMtime){let c=t.atime||new Date,l=t.mtime;try{ie.futimesSync(s,c,l)}catch(f){try{ie.utimesSync(t.absolute,c,l)}catch{u=f}}}if(this[Ks](t)){let c=this[Js](t),l=this[Xs](t);try{ie.fchownSync(s,c,l)}catch(f){try{ie.chownSync(t.absolute,c,l)}catch{u=u||f}}}i(u)})}[$p](t,r){let n=t.mode&4095||this.dmode,i=this[rn](t.absolute,n);if(i){this[Qe](i,t),r();return}if(t.mtime&&!this.noMtime)try{ie.utimesSync(t.absolute,t.atime||new Date,t.mtime)}catch{}if(this[Ks](t))try{ie.chownSync(t.absolute,this[Js](t),this[Xs](t))}catch{}r(),t.resume()}[rn](t,r){try{return Dx.sync(wt(t),{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}}[Ku](t,r,n,i){try{ie[n+"Sync"](r,t.absolute),i(),t.resume()}catch(s){return this[Qe](s,t)}}};eo.Sync=Gp;Sx.exports=eo});var kx=y((h$,Ox)=>{"use strict";var lN=wi(),Ju=Wp(),Fx=require("fs"),Tx=Mi(),Rx=require("path"),zp=Fi();Ox.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=lN(e);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 t.length&&fN(n,t),n.file&&n.sync?hN(n):n.file?dN(n,r):n.sync?pN(n):mN(n)};var fN=(e,t)=>{let r=new Map(t.map(s=>[zp(s),!0])),n=e.filter,i=(s,o)=>{let a=o||Rx.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(Rx.dirname(s),a);return r.set(s,u),u};e.filter=n?(s,o)=>n(s,o)&&i(zp(s)):s=>i(zp(s))},hN=e=>{let t=new Ju.Sync(e),r=e.file,n=Fx.statSync(r),i=e.maxReadSize||16*1024*1024;new Tx.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(t)},dN=(e,t)=>{let r=new Ju(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),Fx.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 t?s.then(t,t):s},pN=e=>new Ju.Sync(e),mN=e=>new Ju(e)});var Px=y(Pe=>{"use strict";Pe.c=Pe.create=pD();Pe.r=Pe.replace=Sp();Pe.t=Pe.list=Mu();Pe.u=Pe.update=AD();Pe.x=Pe.extract=kx();Pe.Pack=Au();Pe.Unpack=Wp();Pe.Parse=Nu();Pe.ReadEntry=ou();Pe.WriteEntry=tp();Pe.Header=Ri();Pe.Pax=uu();Pe.types=Nd()});var Rr=y((Sr,Xu)=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});var Bx=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function gN(e){return Bx.includes(e)}var yN=["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",...Bx];function _N(e){return yN.includes(e)}var bN=["null","undefined","string","number","bigint","boolean","symbol"];function EN(e){return bN.includes(e)}function Gi(e){return t=>typeof t===e}var{toString:Ix}=Object.prototype,to=e=>{let t=Ix.call(e).slice(8,-1);if(/HTML\w+Element/.test(t)&&E.domElement(e))return"HTMLElement";if(_N(t))return t},de=e=>t=>to(t)===e;function E(e){if(e===null)return"null";switch(typeof e){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(e))return"Observable";if(E.array(e))return"Array";if(E.buffer(e))return"Buffer";let t=to(e);if(t)return t;if(e instanceof String||e instanceof Boolean||e instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}E.undefined=Gi("undefined");E.string=Gi("string");var wN=Gi("number");E.number=e=>wN(e)&&!E.nan(e);E.bigint=Gi("bigint");E.function_=Gi("function");E.null_=e=>e===null;E.class_=e=>E.function_(e)&&e.toString().startsWith("class ");E.boolean=e=>e===!0||e===!1;E.symbol=Gi("symbol");E.numericString=e=>E.string(e)&&!E.emptyStringOrWhitespace(e)&&!Number.isNaN(Number(e));E.array=(e,t)=>Array.isArray(e)?E.function_(t)?e.every(t):!0:!1;E.buffer=e=>{var t,r,n,i;return(i=(n=(r=(t=e)===null||t===void 0?void 0:t.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,e))!==null&&i!==void 0?i:!1};E.blob=e=>de("Blob")(e);E.nullOrUndefined=e=>E.null_(e)||E.undefined(e);E.object=e=>!E.null_(e)&&(typeof e=="object"||E.function_(e));E.iterable=e=>{var t;return E.function_((t=e)===null||t===void 0?void 0:t[Symbol.iterator])};E.asyncIterable=e=>{var t;return E.function_((t=e)===null||t===void 0?void 0:t[Symbol.asyncIterator])};E.generator=e=>{var t,r;return E.iterable(e)&&E.function_((t=e)===null||t===void 0?void 0:t.next)&&E.function_((r=e)===null||r===void 0?void 0:r.throw)};E.asyncGenerator=e=>E.asyncIterable(e)&&E.function_(e.next)&&E.function_(e.throw);E.nativePromise=e=>de("Promise")(e);var vN=e=>{var t,r;return E.function_((t=e)===null||t===void 0?void 0:t.then)&&E.function_((r=e)===null||r===void 0?void 0:r.catch)};E.promise=e=>E.nativePromise(e)||vN(e);E.generatorFunction=de("GeneratorFunction");E.asyncGeneratorFunction=e=>to(e)==="AsyncGeneratorFunction";E.asyncFunction=e=>to(e)==="AsyncFunction";E.boundFunction=e=>E.function_(e)&&!e.hasOwnProperty("prototype");E.regExp=de("RegExp");E.date=de("Date");E.error=de("Error");E.map=e=>de("Map")(e);E.set=e=>de("Set")(e);E.weakMap=e=>de("WeakMap")(e);E.weakSet=e=>de("WeakSet")(e);E.int8Array=de("Int8Array");E.uint8Array=de("Uint8Array");E.uint8ClampedArray=de("Uint8ClampedArray");E.int16Array=de("Int16Array");E.uint16Array=de("Uint16Array");E.int32Array=de("Int32Array");E.uint32Array=de("Uint32Array");E.float32Array=de("Float32Array");E.float64Array=de("Float64Array");E.bigInt64Array=de("BigInt64Array");E.bigUint64Array=de("BigUint64Array");E.arrayBuffer=de("ArrayBuffer");E.sharedArrayBuffer=de("SharedArrayBuffer");E.dataView=de("DataView");E.enumCase=(e,t)=>Object.values(t).includes(e);E.directInstanceOf=(e,t)=>Object.getPrototypeOf(e)===t.prototype;E.urlInstance=e=>de("URL")(e);E.urlString=e=>{if(!E.string(e))return!1;try{return new URL(e),!0}catch{return!1}};E.truthy=e=>!!e;E.falsy=e=>!e;E.nan=e=>Number.isNaN(e);E.primitive=e=>E.null_(e)||EN(typeof e);E.integer=e=>Number.isInteger(e);E.safeInteger=e=>Number.isSafeInteger(e);E.plainObject=e=>{if(Ix.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};E.typedArray=e=>gN(to(e));var AN=e=>E.safeInteger(e)&&e>=0;E.arrayLike=e=>!E.nullOrUndefined(e)&&!E.function_(e)&&AN(e.length);E.inRange=(e,t)=>{if(E.number(t))return e>=Math.min(0,t)&&e<=Math.max(t,0);if(E.array(t)&&t.length===2)return e>=Math.min(...t)&&e<=Math.max(...t);throw new TypeError(`Invalid range: ${JSON.stringify(t)}`)};var DN=1,xN=["innerHTML","ownerDocument","style","attributes","nodeValue"];E.domElement=e=>E.object(e)&&e.nodeType===DN&&E.string(e.nodeName)&&!E.plainObject(e)&&xN.every(t=>t in e);E.observable=e=>{var t,r,n,i;return e?e===((r=(t=e)[Symbol.observable])===null||r===void 0?void 0:r.call(t))||e===((i=(n=e)["@@observable"])===null||i===void 0?void 0:i.call(n)):!1};E.nodeStream=e=>E.object(e)&&E.function_(e.pipe)&&!E.observable(e);E.infinite=e=>e===1/0||e===-1/0;var Lx=e=>t=>E.integer(t)&&Math.abs(t%2)===e;E.evenInteger=Lx(0);E.oddInteger=Lx(1);E.emptyArray=e=>E.array(e)&&e.length===0;E.nonEmptyArray=e=>E.array(e)&&e.length>0;E.emptyString=e=>E.string(e)&&e.length===0;var CN=e=>E.string(e)&&!/\S/.test(e);E.emptyStringOrWhitespace=e=>E.emptyString(e)||CN(e);E.nonEmptyString=e=>E.string(e)&&e.length>0;E.nonEmptyStringAndNotWhitespace=e=>E.string(e)&&!E.emptyStringOrWhitespace(e);E.emptyObject=e=>E.object(e)&&!E.map(e)&&!E.set(e)&&Object.keys(e).length===0;E.nonEmptyObject=e=>E.object(e)&&!E.map(e)&&!E.set(e)&&Object.keys(e).length>0;E.emptySet=e=>E.set(e)&&e.size===0;E.nonEmptySet=e=>E.set(e)&&e.size>0;E.emptyMap=e=>E.map(e)&&e.size===0;E.nonEmptyMap=e=>E.map(e)&&e.size>0;E.propertyKey=e=>E.any([E.string,E.number,E.symbol],e);E.formData=e=>de("FormData")(e);E.urlSearchParams=e=>de("URLSearchParams")(e);var Nx=(e,t,r)=>{if(!E.function_(t))throw new TypeError(`Invalid predicate: ${JSON.stringify(t)}`);if(r.length===0)throw new TypeError("Invalid number of values");return e.call(r,t)};E.any=(e,...t)=>(E.array(e)?e:[e]).some(n=>Nx(Array.prototype.some,n,t));E.all=(e,...t)=>Nx(Array.prototype.every,e,t);var P=(e,t,r,n={})=>{if(!e){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 \`${t}\`, ${s}.`)}};Sr.assert={undefined:e=>P(E.undefined(e),"undefined",e),string:e=>P(E.string(e),"string",e),number:e=>P(E.number(e),"number",e),bigint:e=>P(E.bigint(e),"bigint",e),function_:e=>P(E.function_(e),"Function",e),null_:e=>P(E.null_(e),"null",e),class_:e=>P(E.class_(e),"Class",e),boolean:e=>P(E.boolean(e),"boolean",e),symbol:e=>P(E.symbol(e),"symbol",e),numericString:e=>P(E.numericString(e),"string with a number",e),array:(e,t)=>{P(E.array(e),"Array",e),t&&e.forEach(t)},buffer:e=>P(E.buffer(e),"Buffer",e),blob:e=>P(E.blob(e),"Blob",e),nullOrUndefined:e=>P(E.nullOrUndefined(e),"null or undefined",e),object:e=>P(E.object(e),"Object",e),iterable:e=>P(E.iterable(e),"Iterable",e),asyncIterable:e=>P(E.asyncIterable(e),"AsyncIterable",e),generator:e=>P(E.generator(e),"Generator",e),asyncGenerator:e=>P(E.asyncGenerator(e),"AsyncGenerator",e),nativePromise:e=>P(E.nativePromise(e),"native Promise",e),promise:e=>P(E.promise(e),"Promise",e),generatorFunction:e=>P(E.generatorFunction(e),"GeneratorFunction",e),asyncGeneratorFunction:e=>P(E.asyncGeneratorFunction(e),"AsyncGeneratorFunction",e),asyncFunction:e=>P(E.asyncFunction(e),"AsyncFunction",e),boundFunction:e=>P(E.boundFunction(e),"Function",e),regExp:e=>P(E.regExp(e),"RegExp",e),date:e=>P(E.date(e),"Date",e),error:e=>P(E.error(e),"Error",e),map:e=>P(E.map(e),"Map",e),set:e=>P(E.set(e),"Set",e),weakMap:e=>P(E.weakMap(e),"WeakMap",e),weakSet:e=>P(E.weakSet(e),"WeakSet",e),int8Array:e=>P(E.int8Array(e),"Int8Array",e),uint8Array:e=>P(E.uint8Array(e),"Uint8Array",e),uint8ClampedArray:e=>P(E.uint8ClampedArray(e),"Uint8ClampedArray",e),int16Array:e=>P(E.int16Array(e),"Int16Array",e),uint16Array:e=>P(E.uint16Array(e),"Uint16Array",e),int32Array:e=>P(E.int32Array(e),"Int32Array",e),uint32Array:e=>P(E.uint32Array(e),"Uint32Array",e),float32Array:e=>P(E.float32Array(e),"Float32Array",e),float64Array:e=>P(E.float64Array(e),"Float64Array",e),bigInt64Array:e=>P(E.bigInt64Array(e),"BigInt64Array",e),bigUint64Array:e=>P(E.bigUint64Array(e),"BigUint64Array",e),arrayBuffer:e=>P(E.arrayBuffer(e),"ArrayBuffer",e),sharedArrayBuffer:e=>P(E.sharedArrayBuffer(e),"SharedArrayBuffer",e),dataView:e=>P(E.dataView(e),"DataView",e),enumCase:(e,t)=>P(E.enumCase(e,t),"EnumCase",e),urlInstance:e=>P(E.urlInstance(e),"URL",e),urlString:e=>P(E.urlString(e),"string with a URL",e),truthy:e=>P(E.truthy(e),"truthy",e),falsy:e=>P(E.falsy(e),"falsy",e),nan:e=>P(E.nan(e),"NaN",e),primitive:e=>P(E.primitive(e),"primitive",e),integer:e=>P(E.integer(e),"integer",e),safeInteger:e=>P(E.safeInteger(e),"integer",e),plainObject:e=>P(E.plainObject(e),"plain object",e),typedArray:e=>P(E.typedArray(e),"TypedArray",e),arrayLike:e=>P(E.arrayLike(e),"array-like",e),domElement:e=>P(E.domElement(e),"HTMLElement",e),observable:e=>P(E.observable(e),"Observable",e),nodeStream:e=>P(E.nodeStream(e),"Node.js Stream",e),infinite:e=>P(E.infinite(e),"infinite number",e),emptyArray:e=>P(E.emptyArray(e),"empty array",e),nonEmptyArray:e=>P(E.nonEmptyArray(e),"non-empty array",e),emptyString:e=>P(E.emptyString(e),"empty string",e),emptyStringOrWhitespace:e=>P(E.emptyStringOrWhitespace(e),"empty string or whitespace",e),nonEmptyString:e=>P(E.nonEmptyString(e),"non-empty string",e),nonEmptyStringAndNotWhitespace:e=>P(E.nonEmptyStringAndNotWhitespace(e),"non-empty string and not whitespace",e),emptyObject:e=>P(E.emptyObject(e),"empty object",e),nonEmptyObject:e=>P(E.nonEmptyObject(e),"non-empty object",e),emptySet:e=>P(E.emptySet(e),"empty set",e),nonEmptySet:e=>P(E.nonEmptySet(e),"non-empty set",e),emptyMap:e=>P(E.emptyMap(e),"empty map",e),nonEmptyMap:e=>P(E.nonEmptyMap(e),"non-empty map",e),propertyKey:e=>P(E.propertyKey(e),"PropertyKey",e),formData:e=>P(E.formData(e),"FormData",e),urlSearchParams:e=>P(E.urlSearchParams(e),"URLSearchParams",e),evenInteger:e=>P(E.evenInteger(e),"even integer",e),oddInteger:e=>P(E.oddInteger(e),"odd integer",e),directInstanceOf:(e,t)=>P(E.directInstanceOf(e,t),"T",e),inRange:(e,t)=>P(E.inRange(e,t),"in range",e),any:(e,...t)=>P(E.any(e,...t),"predicate returns truthy for any value",t,{multipleValues:!0}),all:(e,...t)=>P(E.all(e,...t),"predicate returns truthy for all values",t,{multipleValues:!0})};Object.defineProperties(E,{class:{value:E.class_},function:{value:E.function_},null:{value:E.null_}});Object.defineProperties(Sr.assert,{class:{value:Sr.assert.class_},function:{value:Sr.assert.function_},null:{value:Sr.assert.null_}});Sr.default=E;Xu.exports=E;Xu.exports.default=E;Xu.exports.assert=Sr.assert});var Mx=y((p$,Vp)=>{"use strict";var Zu=class extends Error{constructor(t){super(t||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},Wi=class{static fn(t){return(...r)=>new Wi((n,i,s)=>{r.push(s),t(...r).then(n,i)})}constructor(t){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}}}),t(i,s,o)})}then(t,r){return this._promise.then(t,r)}catch(t){return this._promise.catch(t)}finally(t){return this._promise.finally(t)}cancel(t){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 Zu(t))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(Wi.prototype,Promise.prototype);Vp.exports=Wi;Vp.exports.CancelError=Zu});var qx=y((Kp,Jp)=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});function SN(e){return e.encrypted}var Yp=(e,t)=>{let r;typeof t=="function"?r={connect:t}:r=t;let n=typeof r.connect=="function",i=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{n&&r.connect(),SN(e)&&i&&(e.authorized?r.secureConnect():e.authorizationError||e.once("secureConnect",r.secureConnect)),s&&e.once("close",r.close)};e.writable&&!e.connecting?o():e.connecting?e.once("connect",o):e.destroyed&&s&&r.close(e._hadError)};Kp.default=Yp;Jp.exports=Yp;Jp.exports.default=Yp});var jx=y((Zp,Qp)=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});var RN=qx(),FN=require("util"),TN=Number(process.versions.node.split(".")[0]),Xp=e=>{if(e.timings)return e.timings;let t={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}};e.timings=t;let r=a=>{let u=a.emit.bind(a);a.emit=(c,...l)=>(c==="error"&&(t.error=Date.now(),t.phases.total=t.error-t.start,a.emit=u),u(c,...l))};r(e);let n=()=>{t.abort=Date.now(),(!t.response||TN>=13)&&(t.phases.total=Date.now()-t.start)};e.prependOnceListener("abort",n);let i=a=>{if(t.socket=Date.now(),t.phases.wait=t.socket-t.start,FN.types.isProxy(a))return;let u=()=>{t.lookup=Date.now(),t.phases.dns=t.lookup-t.socket};a.prependOnceListener("lookup",u),RN.default(a,{connect:()=>{t.connect=Date.now(),t.lookup===void 0&&(a.removeListener("lookup",u),t.lookup=t.connect,t.phases.dns=t.lookup-t.socket),t.phases.tcp=t.connect-t.lookup},secureConnect:()=>{t.secureConnect=Date.now(),t.phases.tls=t.secureConnect-t.connect}})};e.socket?i(e.socket):e.prependOnceListener("socket",i);let s=()=>{var a;t.upload=Date.now(),t.phases.request=t.upload-((a=t.secureConnect)!==null&&a!==void 0?a:t.connect)};return(()=>typeof e.writableFinished=="boolean"?e.writableFinished:e.finished&&e.outputSize===0&&(!e.socket||e.socket.writableLength===0))()?s():e.prependOnceListener("finish",s),e.prependOnceListener("response",a=>{t.response=Date.now(),t.phases.firstByte=t.response-t.upload,a.timings=t,r(a),a.prependOnceListener("end",()=>{t.end=Date.now(),t.phases.download=t.end-t.response,t.phases.total=t.end-t.start}),a.prependOnceListener("aborted",n)}),t};Zp.default=Xp;Qp.exports=Xp;Qp.exports.default=Xp});var Vx=y((m$,r0)=>{"use strict";var{V4MAPPED:ON,ADDRCONFIG:kN,ALL:zx,promises:{Resolver:Hx},lookup:PN}=require("dns"),{promisify:e0}=require("util"),BN=require("os"),zi=Symbol("cacheableLookupCreateConnection"),t0=Symbol("cacheableLookupInstance"),$x=Symbol("expires"),IN=typeof zx=="number",Ux=e=>{if(!(e&&typeof e.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},LN=e=>{for(let t of e)t.family!==6&&(t.address=`::ffff:${t.address}`,t.family=6)},Gx=()=>{let e=!1,t=!1;for(let r of Object.values(BN.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?t=!0:e=!0,e&&t))return{has4:e,has6:t};return{has4:e,has6:t}},NN=e=>Symbol.iterator in e,Wx={ttl:!0},MN={all:!0},Qu=class{constructor({cache:t=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:i=.15,resolver:s=new Hx,lookup:o=PN}={}){if(this.maxTtl=r,this.errorTtl=i,this._cache=t,this._resolver=s,this._dnsLookup=e0(o),this._resolver instanceof Hx?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=e0(this._resolver.resolve4.bind(this._resolver)),this._resolve6=e0(this._resolver.resolve6.bind(this._resolver))),this._iface=Gx(),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(t){this.clear(),this._resolver.setServers(t)}get servers(){return this._resolver.getServers()}lookup(t,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(t,r).then(i=>{r.all?n(null,i):n(null,i.address,i.family,i.expires,i.ttl)},n)}async lookupAsync(t,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(t);if(r.family===6){let i=n.filter(s=>s.family===6);r.hints&ON&&(IN&&r.hints&zx||i.length===0)?LN(n):n=i}else r.family===4&&(n=n.filter(i=>i.family===4));if(r.hints&kN){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 ${t}`);throw i.code="ENOTFOUND",i.hostname=t,i}return r.all?n:n[0]}async query(t){let r=await this._cache.get(t);if(!r){let n=this._pending[t];if(n)r=await n;else{let i=this.queryAndCache(t);this._pending[t]=i;try{r=await i}finally{delete this._pending[t]}}}return r=r.map(n=>({...n})),r}async _resolve(t){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(t,Wx),this._resolve6(t,Wx)].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(t){try{return{entries:await this._dnsLookup(t,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(t,r,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[$x]=Date.now()+n;try{await this._cache.set(t,r,n)}catch(i){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=i,s}}NN(this._cache)&&this._tick(n)}}async queryAndCache(t){if(this._hostnamesToFallback.has(t))return this._dnsLookup(t,MN);let r=await this._resolve(t);r.entries.length===0&&this._fallback&&(r=await this._lookup(t),r.entries.length!==0&&this._hostnamesToFallback.add(t));let n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(t,r.entries,n),r.entries}_tick(t){let r=this._nextRemovalTime;(!r||t<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=t,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,i=Date.now();for(let[s,o]of this._cache){let a=o[$x];i>=a?this._cache.delete(s):a<n&&(n=a)}n!==1/0&&this._tick(n-i)},t),this._removalTimeout.unref&&this._removalTimeout.unref())}install(t){if(Ux(t),zi in t)throw new Error("CacheableLookup has been already installed");t[zi]=t.createConnection,t[t0]=this,t.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),t[zi](r,n))}uninstall(t){if(Ux(t),t[zi]){if(t[t0]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");t.createConnection=t[zi],delete t[zi],delete t[t0]}}updateInterfaceInfo(){let{_iface:t}=this;this._iface=Gx(),(t.has4&&!this._iface.has4||t.has6&&!this._iface.has6)&&this._cache.clear()}clear(t){if(t){this._cache.delete(t);return}this._cache.clear()}};r0.exports=Qu;r0.exports.default=Qu});var Jx=y((g$,Kx)=>{"use strict";var qN="text/plain",jN="us-ascii",Yx=(e,t)=>t.some(r=>r instanceof RegExp?r.test(e):r===e),HN=(e,{stripHash:t})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!r)throw new Error(`Invalid URL: ${e}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=t?"":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===jN)?"":`${h}${p?`=${p}`:""}`}).filter(Boolean)];return a&&l.push("base64"),(l.length!==0||u&&u!==qN)&&l.unshift(u),`data:${l.join(";")},${a?i.trim():i}${s?`#${s}`:""}`},$N=(e,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},e=e.trim(),/^data:/i.test(e))return HN(e,t);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let i=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),t.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),t.stripAuthentication&&(i.username="",i.password=""),t.stripHash?i.hash="":t.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(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];Yx(a,t.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let o of[...i.searchParams.keys()])Yx(o,t.removeQueryParameters)&&i.searchParams.delete(o);t.removeQueryParameters===!0&&(i.search=""),t.sortQueryParameters&&i.searchParams.sort(),t.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=e;return e=i.toString(),!t.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e};Kx.exports=$N});var Qx=y((y$,Zx)=>{Zx.exports=Xx;function Xx(e,t){if(e&&t)return Xx(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){r[n]=e[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=e.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 i0=y((_$,n0)=>{var eC=Qx();n0.exports=eC(ec);n0.exports.strict=eC(tC);ec.proto=ec(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return ec(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return tC(this)},configurable:!0})});function ec(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function tC(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}});var iC=y((b$,nC)=>{var UN=i0(),GN=function(){},WN=function(e){return e.setHeader&&typeof e.abort=="function"},zN=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},rC=function(e,t,r){if(typeof t=="function")return rC(e,null,t);t||(t={}),r=UN(r||GN);var n=e._writableState,i=e._readableState,s=t.readable||t.readable!==!1&&e.readable,o=t.writable||t.writable!==!1&&e.writable,a=!1,u=function(){e.writable||c()},c=function(){o=!1,s||r.call(e)},l=function(){s=!1,o||r.call(e)},f=function(b){r.call(e,b?new Error("exited with error code: "+b):null)},h=function(b){r.call(e,b)},p=function(){process.nextTick(m)},m=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(e,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(e,new Error("premature close"))}},g=function(){e.req.on("finish",c)};return WN(e)?(e.on("complete",c),e.on("abort",p),e.req?g():e.on("request",g)):o&&!n&&(e.on("end",u),e.on("close",u)),zN(e)&&e.on("exit",f),e.on("end",l),e.on("finish",c),t.error!==!1&&e.on("error",h),e.on("close",p),function(){a=!0,e.removeListener("complete",c),e.removeListener("abort",p),e.removeListener("request",g),e.req&&e.req.removeListener("finish",c),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",c),e.removeListener("exit",f),e.removeListener("end",l),e.removeListener("error",h),e.removeListener("close",p)}};nC.exports=rC});var aC=y((E$,oC)=>{var VN=i0(),YN=iC(),s0=require("fs"),ro=function(){},KN=/^v?\.0/.test(process.version),tc=function(e){return typeof e=="function"},JN=function(e){return!KN||!s0?!1:(e instanceof(s0.ReadStream||ro)||e instanceof(s0.WriteStream||ro))&&tc(e.close)},XN=function(e){return e.setHeader&&tc(e.abort)},ZN=function(e,t,r,n){n=VN(n);var i=!1;e.on("close",function(){i=!0}),YN(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,JN(e))return e.close(ro);if(XN(e))return e.abort();if(tc(e.destroy))return e.destroy();n(o||new Error("stream was destroyed"))}}},sC=function(e){e()},QN=function(e,t){return e.pipe(t)},eM=function(){var e=Array.prototype.slice.call(arguments),t=tc(e[e.length-1]||ro)&&e.pop()||ro;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r,n=e.map(function(i,s){var o=s<e.length-1,a=s>0;return ZN(i,o,a,function(u){r||(r=u),u&&n.forEach(sC),!o&&(n.forEach(sC),t(r))})});return e.reduce(QN)};oC.exports=eM});var cC=y((w$,uC)=>{"use strict";var{PassThrough:tM}=require("stream");uC.exports=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new tM({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=()=>t?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var lC=y((v$,Vi)=>{"use strict";var{constants:rM}=require("buffer"),nM=aC(),iM=cC(),rc=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function nc(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=rM.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=nM(e,iM(t),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new rc)})}),n.getBufferedValue()}Vi.exports=nc;Vi.exports.default=nc;Vi.exports.buffer=(e,t)=>nc(e,{...t,encoding:"buffer"});Vi.exports.array=(e,t)=>nc(e,{...t,array:!0});Vi.exports.MaxBufferError=rc});var hC=y((D$,fC)=>{"use strict";var sM=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),oM=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),aM=new Set([500,502,503,504]),uM={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},cM={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function Bn(e){let t=parseInt(e,10);return isFinite(t)?t:0}function lM(e){return e?aM.has(e.status):!0}function o0(e){let t={};if(!e)return t;let r=e.trim().split(/,/);for(let n of r){let[i,s]=n.split(/=/,2);t[i.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return t}function fM(e){let t=[];for(let r in e){let n=e[r];t.push(n===!0?r:r+"="+n)}if(t.length)return t.join(", ")}fC.exports=class{constructor(t,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(t),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=o0(r.headers["cache-control"]),this._method="method"in t?t.method:"GET",this._url=t.url,this._host=t.headers.host,this._noAuthorization=!t.headers.authorization,this._reqHeaders=r.headers.vary?t.headers:null,this._reqcc=o0(t.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":fM(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())&&oM.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||sM.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(t){if(!t||!t.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(t){this._assertRequestHasHeaders(t);let r=o0(t.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(t.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(t,!1)}_requestMatches(t,r){return(!this._url||this._url===t.url)&&this._host===t.headers.host&&(!t.method||this._method===t.method||r&&t.method==="HEAD")&&this._varyMatches(t)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(t){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(t.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(t){let r={};for(let n in t)uM[n]||(r[n]=t[n]);if(t.connection){let n=t.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 t=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(t.warning=(t.warning?`${t.warning}, `:"")+'113 - "rfc7234 5.5.4"'),t.age=`${Math.round(r)}`,t.date=new Date(this.now()).toUTCString(),t}date(){let t=Date.parse(this._resHeaders.date);return isFinite(t)?t:this._responseTime}age(){let t=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return t+r}_ageValue(){return Bn(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 Bn(this._rescc["s-maxage"])}if(this._rescc["max-age"])return Bn(this._rescc["max-age"]);let t=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(t,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(t,(r-n)/1e3*this._cacheHeuristic)}return t}timeToLive(){let t=this.maxAge()-this.age(),r=t+Bn(this._rescc["stale-if-error"]),n=t+Bn(this._rescc["stale-while-revalidate"]);return Math.max(0,t,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+Bn(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+Bn(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(t){return new this(void 0,void 0,{_fromObject:t})}_fromObject(t){if(this._responseTime)throw Error("Reinitialized");if(!t||t.v!==1)throw Error("Invalid serialization");this._responseTime=t.t,this._isShared=t.sh,this._cacheHeuristic=t.ch,this._immutableMinTtl=t.imm!==void 0?t.imm:24*3600*1e3,this._status=t.st,this._resHeaders=t.resh,this._rescc=t.rescc,this._method=t.m,this._url=t.u,this._host=t.h,this._noAuthorization=t.a,this._reqHeaders=t.reqh,this._reqcc=t.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(t){this._assertRequestHasHeaders(t);let r=this._copyWithoutHopByHopHeaders(t.headers);if(delete r["if-range"],!this._requestMatches(t,!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(t,r){if(this._assertRequestHasHeaders(t),this._useStaleIfError()&&lM(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(t,r),modified:r.status!=304,matches:!1};let i={};for(let o in this._resHeaders)i[o]=o in r.headers&&!cM[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(t,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var ic=y((x$,dC)=>{"use strict";dC.exports=e=>{let t={};for(let[r,n]of Object.entries(e))t[r.toLowerCase()]=n;return t}});var mC=y((C$,pC)=>{"use strict";var hM=require("stream").Readable,dM=ic(),a0=class extends hM{constructor(t,r,n,i){if(typeof t!="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=t,this.headers=dM(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};pC.exports=a0});var yC=y((S$,gC)=>{"use strict";var pM=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];gC.exports=(e,t)=>{let r=new Set(Object.keys(e).concat(pM));for(let n of r)n in t||(t[n]=typeof e[n]=="function"?e[n].bind(e):e[n])}});var bC=y((R$,_C)=>{"use strict";var mM=require("stream").PassThrough,gM=yC(),yM=e=>{if(!(e&&e.pipe))throw new TypeError("Parameter `response` must be a response stream.");let t=new mM;return gM(e,t),e.pipe(t)};_C.exports=yM});var EC=y(u0=>{u0.stringify=function e(t){if(typeof t=="undefined")return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t=="object"){var r="",n=Array.isArray(t);r=n?"[":"{";var i=!0;for(var s in t){var o=typeof t[s]=="function"||!n&&typeof t[s]=="undefined";Object.hasOwnProperty.call(t,s)&&!o&&(i||(r+=","),i=!1,n?t[s]==null?r+="null":r+=e(t[s]):t[s]!==void 0&&(r+=e(s)+":"+e(t[s])))}return r+=n?"]":"}",r}else return typeof t=="string"?JSON.stringify(/^:/.test(t)?":"+t:t):typeof t=="undefined"?"null":JSON.stringify(t)};u0.parse=function(e){return JSON.parse(e,function(t,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var DC=y((T$,AC)=>{"use strict";var _M=require("events"),wC=EC(),bM=e=>{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(e.adapter||e.uri){let r=e.adapter||/^[^:+]*/.exec(e.uri)[0];return new(require(t[r]))(e)}return new Map},vC=["sqlite","postgres","mysql","mongo","redis","tiered"],c0=class extends _M{constructor(t,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:wC.stringify,deserialize:wC.parse,...typeof t=="string"?{uri:t}:t,...n},!this.opts.store){let s={...this.opts};this.opts.store=bM(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 vC.includes(this.opts.store.opts.dialect)||vC.findIndex(t=>this.opts.store.opts.url.includes(t))>=0}_getKeyPrefix(t){return`${this.opts.namespace}:${t}`}_getKeyPrefixArray(t){return t.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(t){return t.split(":").splice(1).join(":")}get(t,r){let{store:n}=this.opts,i=Array.isArray(t),s=i?this._getKeyPrefixArray(t):this._getKeyPrefix(t);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(t).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(t).then(()=>{}):r&&r.raw?o:o.value}})}set(t,r,n){let i=this._getKeyPrefix(t);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(t){let{store:r}=this.opts;if(Array.isArray(t)){let i=this._getKeyPrefixArray(t);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(t);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:t}=this.opts;return Promise.resolve().then(()=>t.clear())}has(t){let r=this._getKeyPrefix(t),{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:t}=this.opts;if(typeof t.disconnect=="function")return t.disconnect()}};AC.exports=c0});var SC=y((O$,CC)=>{"use strict";var EM=require("events"),sc=require("url"),wM=Jx(),vM=lC(),l0=hC(),xC=mC(),AM=ic(),DM=bC(),xM=DC(),Ht=class{constructor(t,r){if(typeof t!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new xM({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(t)}createCacheableRequest(t){return(r,n)=>{let i;if(typeof r=="string")i=f0(sc.parse(r)),r={};else if(r instanceof sc.URL)i=f0(sc.parse(r.toString())),r={};else{let[f,...h]=(r.path||"").split("?"),p=h.length>0?`?${h.join("?")}`:"";i=f0({...r,pathname:f,search:p})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...CM(i)},r.headers=AM(r.headers);let s=new EM,o=wM(sc.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(b=>{p=()=>{h||(h=!0,b())}}),g=b=>{if(u&&!f.forceRefresh){b.status=b.statusCode;let S=l0.fromObject(u.cachePolicy).revalidatedPolicy(f,b);if(!S.modified){let L=S.policy.responseHeaders();b=new xC(u.statusCode,L,u.body,u.url),b.cachePolicy=S.policy,b.fromCache=!0}}b.fromCache||(b.cachePolicy=new l0(f,b,f),b.fromCache=!1);let v;f.cache&&b.cachePolicy.storable()?(v=DM(b),(async()=>{try{let S=vM.buffer(b);if(await Promise.race([m,new Promise(J=>b.once("end",J))]),h)return;let L=await S,W={cachePolicy:b.cachePolicy.toObject(),url:b.url,statusCode:b.fromCache?u.statusCode:b.statusCode,body:L},M=f.strictTtl?b.cachePolicy.timeToLive():void 0;f.maxTtl&&(M=M?Math.min(M,f.maxTtl):f.maxTtl),await this.cache.set(a,W,M)}catch(S){s.emit("error",new Ht.CacheError(S))}})()):f.cache&&u&&(async()=>{try{await this.cache.delete(a)}catch(S){s.emit("error",new Ht.CacheError(S))}})(),s.emit("response",v||b),typeof n=="function"&&n(v||b)};try{let b=t(f,g);b.once("error",p),b.once("abort",p),s.emit("request",b)}catch(b){s.emit("error",new Ht.RequestError(b))}};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 g=l0.fromObject(m.cachePolicy);if(g.satisfiesWithoutRevalidation(p)&&!p.forceRefresh){let b=g.responseHeaders(),v=new xC(m.statusCode,b,m.body,m.url);v.cachePolicy=g,v.fromCache=!0,s.emit("response",v),typeof n=="function"&&n(v)}else u=m,p.headers=g.revalidationHeaders(p),l(p)},h=p=>s.emit("error",new Ht.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 Ht.CacheError(p))}})(),s}}};function CM(e){let t={...e};return t.path=`${e.pathname||"/"}${e.search||""}`,delete t.pathname,delete t.search,t}function f0(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}Ht.RequestError=class extends Error{constructor(e){super(e.message),this.name="RequestError",Object.assign(this,e)}};Ht.CacheError=class extends Error{constructor(e){super(e.message),this.name="CacheError",Object.assign(this,e)}};CC.exports=Ht});var FC=y((B$,RC)=>{"use strict";var SM=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];RC.exports=(e,t)=>{if(t._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(e).concat(SM)),n={};for(let i of r)i in t||(n[i]={get(){let s=e[i];return typeof s=="function"?s.bind(e):s},set(s){e[i]=s},enumerable:!0,configurable:!1});return Object.defineProperties(t,n),e.once("aborted",()=>{t.destroy(),t.emit("aborted")}),e.once("close",()=>{e.complete&&t.readable?t.once("end",()=>{t.emit("close")}):t.emit("close")}),t}});var OC=y((I$,TC)=>{"use strict";var{Transform:RM,PassThrough:FM}=require("stream"),h0=require("zlib"),TM=FC();TC.exports=e=>{let t=(e.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(t))return e;let r=t==="br";if(r&&typeof h0.createBrotliDecompress!="function")return e.destroy(new Error("Brotli is not supported on Node.js < 12")),e;let n=!0,i=new RM({transform(a,u,c){n=!1,c(null,a)},flush(a){a()}}),s=new FM({autoDestroy:!1,destroy(a,u){e.destroy(),u(a)}}),o=r?h0.createBrotliDecompress():h0.createUnzip();return o.once("error",a=>{if(n&&!e.readable){s.end();return}s.destroy(a)}),TM(e,s),e.pipe(i).pipe(o).pipe(s),s}});var p0=y((L$,kC)=>{"use strict";var d0=class{constructor(t={}){if(!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=t.maxSize,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(t,r){if(this.cache.set(t,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(t){if(this.cache.has(t))return this.cache.get(t);if(this.oldCache.has(t)){let r=this.oldCache.get(t);return this.oldCache.delete(t),this._set(t,r),r}}set(t,r){return this.cache.has(t)?this.cache.set(t,r):this._set(t,r),this}has(t){return this.cache.has(t)||this.oldCache.has(t)}peek(t){if(this.cache.has(t))return this.cache.get(t);if(this.oldCache.has(t))return this.oldCache.get(t)}delete(t){let r=this.cache.delete(t);return r&&this._size--,this.oldCache.delete(t)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[t]of this)yield t}*values(){for(let[,t]of this)yield t}*[Symbol.iterator](){for(let t of this.cache)yield t;for(let t of this.oldCache){let[r]=t;this.cache.has(r)||(yield t)}}get size(){let t=0;for(let r of this.oldCache.keys())this.cache.has(r)||t++;return Math.min(this._size+t,this.maxSize)}};kC.exports=d0});var g0=y((N$,LC)=>{"use strict";var OM=require("events"),kM=require("tls"),PM=require("http2"),BM=p0(),st=Symbol("currentStreamsCount"),PC=Symbol("request"),Ot=Symbol("cachedOriginSet"),Yi=Symbol("gracefullyClosing"),IM=["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"],LM=(e,t,r)=>{let n=0,i=e.length;for(;n<i;){let s=n+i>>>1;r(e[s],t)?n=s+1:i=s}return n},NM=(e,t)=>e.remoteSettings.maxConcurrentStreams>t.remoteSettings.maxConcurrentStreams,m0=(e,t)=>{for(let r of e)r[Ot].length<t[Ot].length&&r[Ot].every(n=>t[Ot].includes(n))&&r[st]+t[st]<=t.remoteSettings.maxConcurrentStreams&&IC(r)},MM=(e,t)=>{for(let r of e)t[Ot].length<r[Ot].length&&t[Ot].every(n=>r[Ot].includes(n))&&t[st]+r[st]<=r.remoteSettings.maxConcurrentStreams&&IC(t)},BC=({agent:e,isFree:t})=>{let r={};for(let n in e.sessions){let s=e.sessions[n].filter(o=>{let a=o[nr.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return t?a:!a});s.length!==0&&(r[n]=s)}return r},IC=e=>{e[Yi]=!0,e[st]===0&&e.close()},nr=class extends OM{constructor({timeout:t=6e4,maxSessions:r=1/0,maxFreeSessions:n=10,maxCachedTlsSessions:i=100}={}){super(),this.sessions={},this.queue={},this.timeout=t,this.maxSessions=r,this.maxFreeSessions=n,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new BM({maxSize:i})}static normalizeOrigin(t,r){return typeof t=="string"&&(t=new URL(t)),r&&t.hostname!==r&&(t.hostname=r),t.origin}normalizeOptions(t){let r="";if(t)for(let n of IM)t[n]&&(r+=`:${t[n]}`);return r}_tryToCreateNewSession(t,r){if(!(t in this.queue)||!(r in this.queue[t]))return;let n=this.queue[t][r];this._sessionsCount<this.maxSessions&&!n.completed&&(n.completed=!0,n())}getSession(t,r,n){return new Promise((i,s)=>{Array.isArray(n)?(n=[...n],i()):n=[{resolve:i,reject:s}];let o=this.normalizeOptions(r),a=nr.normalizeOrigin(t,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 g=m.remoteSettings.maxConcurrentStreams;if(g<f)break;if(m[Ot].includes(a)){let b=m[st];if(b>=g||m[Yi]||m.destroyed)continue;p||(f=g),b>h&&(p=m,h=b)}}if(p){if(n.length!==1){for(let{reject:m}of n){let g=new Error(`Expected the length of listeners to be 1, got ${n.length}.
|
|
26
|
-
Please report this to https://github.com/szmarczak/http2-wrapper/`);m(g)}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=PM.connect(t,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(l),...r});h[st]=0,h[Yi]=!1;let p=()=>h[st]<h.remoteSettings.maxConcurrentStreams,m=!0;h.socket.once("session",b=>{this.tlsSessionCache.set(l,b)}),h.once("error",b=>{for(let{reject:v}of n)v(b);this.tlsSessionCache.delete(l)}),h.setTimeout(this.timeout,()=>{h.destroy()}),h.once("close",()=>{if(f){m&&this._freeSessionsCount--,this._sessionsCount--;let b=this.sessions[o];b.splice(b.indexOf(h),1),b.length===0&&delete this.sessions[o]}else{let b=new Error("Session closed without receiving a SETTINGS frame");b.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:v}of n)v(b);u()}this._tryToCreateNewSession(o,a)});let g=()=>{if(!(!(o in this.queue)||!p())){for(let b of h[Ot])if(b in this.queue[o]){let{listeners:v}=this.queue[o][b];for(;v.length!==0&&p();)v.shift().resolve(h);let S=this.queue[o];if(S[b].listeners.length===0&&(delete S[b],Object.keys(S).length===0)){delete this.queue[o];break}if(!p())break}}};h.on("origin",()=>{h[Ot]=h.originSet,p()&&(g(),m0(this.sessions[o],h))}),h.once("remoteSettings",()=>{if(h.ref(),h.unref(),this._sessionsCount++,c.destroyed){let b=new Error("Agent has been destroyed");for(let v of n)v.reject(b);h.destroy();return}h[Ot]=h.originSet;{let b=this.sessions;if(o in b){let v=b[o];v.splice(LM(v,h,NM),0,h)}else b[o]=[h]}this._freeSessionsCount+=1,f=!0,this.emit("session",h),g(),u(),h[st]===0&&this._freeSessionsCount>this.maxFreeSessions&&h.close(),n.length!==0&&(this.getSession(a,r,n),n.length=0),h.on("remoteSettings",()=>{g(),m0(this.sessions[o],h)})}),h[PC]=h.request,h.request=(b,v)=>{if(h[Yi])throw new Error("The session is gracefully closing. No new streams are allowed.");let S=h[PC](b,v);return h.ref(),++h[st],h[st]===h.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,S.once("close",()=>{if(m=p(),--h[st],!h.destroyed&&!h.closed&&(MM(this.sessions[o],h),p()&&!h.closed)){m||(this._freeSessionsCount++,m=!0);let L=h[st]===0;L&&h.unref(),L&&(this._freeSessionsCount>this.maxFreeSessions||h[Yi])?h.close():(m0(this.sessions[o],h),g())}}),S}}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(t,r,n,i){return new Promise((s,o)=>{this.getSession(t,r,[{reject:o,resolve:a=>{try{s(a.request(n,i))}catch(u){o(u)}}}])})}createConnection(t,r){return nr.connect(t,r)}static connect(t,r){r.ALPNProtocols=["h2"];let n=t.port||443,i=t.hostname||t.host;return typeof r.servername=="undefined"&&(r.servername=i),kM.connect(n,i,r)}closeFreeSessions(){for(let t of Object.values(this.sessions))for(let r of t)r[st]===0&&r.close()}destroy(t){for(let r of Object.values(this.sessions))for(let n of r)n.destroy(t);for(let r of Object.values(this.queue))for(let n of Object.values(r))n.destroyed=!0;this.queue={}}get freeSessions(){return BC({agent:this,isFree:!0})}get busySessions(){return BC({agent:this,isFree:!1})}};nr.kCurrentStreamsCount=st;nr.kGracefullyClosing=Yi;LC.exports={Agent:nr,globalAgent:new nr}});var _0=y((M$,NC)=>{"use strict";var{Readable:qM}=require("stream"),y0=class extends qM{constructor(t,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=t,this.connection=t,this._dumped=!1}_destroy(t){this.req._request.destroy(t)}setTimeout(t,r){return this.req.setTimeout(t,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};NC.exports=y0});var b0=y((q$,MC)=>{"use strict";MC.exports=e=>{let t={protocol:e.protocol,hostname:typeof e.hostname=="string"&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};return typeof e.port=="string"&&e.port.length!==0&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username||""}:${e.password||""}`),t}});var jC=y((j$,qC)=>{"use strict";qC.exports=(e,t,r)=>{for(let n of r)e.on(n,(...i)=>t.emit(n,...i))}});var $C=y((H$,HC)=>{"use strict";HC.exports=e=>{switch(e){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var GC=y((U$,UC)=>{"use strict";var Ki=(e,t,r)=>{UC.exports[t]=class extends e{constructor(...i){super(typeof r=="string"?r:r(i)),this.name=`${super.name} [${t}]`,this.code=t}}};Ki(TypeError,"ERR_INVALID_ARG_TYPE",e=>{let t=e[0].includes(".")?"property":"argument",r=e[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${e[0]}" ${t} must be ${n?"one of":"of"} type ${r}. Received ${typeof e[2]}`});Ki(TypeError,"ERR_INVALID_PROTOCOL",e=>`Protocol "${e[0]}" not supported. Expected "${e[1]}"`);Ki(Error,"ERR_HTTP_HEADERS_SENT",e=>`Cannot ${e[0]} headers after they are sent to the client`);Ki(TypeError,"ERR_INVALID_HTTP_TOKEN",e=>`${e[0]} must be a valid HTTP token [${e[1]}]`);Ki(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",e=>`Invalid value "${e[0]} for header "${e[1]}"`);Ki(TypeError,"ERR_INVALID_CHAR",e=>`Invalid character in ${e[0]} [${e[1]}]`)});var D0=y((G$,XC)=>{"use strict";var jM=require("http2"),{Writable:HM}=require("stream"),{Agent:WC,globalAgent:$M}=g0(),UM=_0(),GM=b0(),WM=jC(),zM=$C(),{ERR_INVALID_ARG_TYPE:E0,ERR_INVALID_PROTOCOL:VM,ERR_HTTP_HEADERS_SENT:zC,ERR_INVALID_HTTP_TOKEN:YM,ERR_HTTP_INVALID_HEADER_VALUE:KM,ERR_INVALID_CHAR:JM}=GC(),{HTTP2_HEADER_STATUS:VC,HTTP2_HEADER_METHOD:YC,HTTP2_HEADER_PATH:KC,HTTP2_METHOD_CONNECT:XM}=jM.constants,et=Symbol("headers"),w0=Symbol("origin"),v0=Symbol("session"),JC=Symbol("options"),oc=Symbol("flushedHeaders"),no=Symbol("jobs"),ZM=/^[\^`\-\w!#$%&*+.|~]+$/,QM=/[^\t\u0020-\u007E\u0080-\u00FF]/,A0=class extends HM{constructor(t,r,n){super({autoDestroy:!1});let i=typeof t=="string"||t instanceof URL;if(i&&(t=GM(t instanceof URL?t:new URL(t))),typeof r=="function"||r===void 0?(n=r,r=i?t:{...t}):r={...t,...r},r.h2session)this[v0]=r.h2session;else if(r.agent===!1)this.agent=new WC({maxFreeSessions:0});else if(typeof r.agent=="undefined"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new WC({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=$M;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new E0("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new VM(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[et]=Object.create(null),this[no]=[],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[et])&&(this[et].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[JC]=r,s===443?(this[w0]=`https://${o}`,":authority"in this[et]||(this[et][":authority"]=o)):(this[w0]=`https://${o}:${s}`,":authority"in this[et]||(this[et][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),n&&this.once("response",n),this[oc]=!1}get method(){return this[et][YC]}set method(t){t&&(this[et][YC]=t.toUpperCase())}get path(){return this[et][KC]}set path(t){t&&(this[et][KC]=t)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(t,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(t,r,n);this._request?i():this[no].push(i)}_final(t){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){t();return}this._request.end(t)};this._request?r():this[no].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(t,r){this.res&&this.res._dump(),this._request&&this._request.destroy(),r(t)}async flushHeaders(){if(this[oc]||this.destroyed)return;this[oc]=!0;let t=this.method===XM,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}t||WM(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 UM(this.socket,n.readableHighWaterMark);this.res=c,c.req=this,c.statusCode=o[VC],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)}),t?(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[VC]}))),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[no])o();this.emit("socket",this.socket)};if(this[v0])try{r(this[v0].request(this[et]))}catch(n){this.emit("error",n)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[w0],this[JC],this[et]))}catch(n){this.emit("error",n)}}}getHeader(t){if(typeof t!="string")throw new E0("name","string",t);return this[et][t.toLowerCase()]}get headersSent(){return this[oc]}removeHeader(t){if(typeof t!="string")throw new E0("name","string",t);if(this.headersSent)throw new zC("remove");delete this[et][t.toLowerCase()]}setHeader(t,r){if(this.headersSent)throw new zC("set");if(typeof t!="string"||!ZM.test(t)&&!zM(t))throw new YM("Header name",t);if(typeof r=="undefined")throw new KM(r,t);if(QM.test(r))throw new JM("header content",t);this[et][t.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(t,r){let n=()=>this._request.setTimeout(t,r);return this._request?n():this[no].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(t){}};XC.exports=A0});var QC=y((W$,ZC)=>{"use strict";var e4=require("tls");ZC.exports=(e={},t=e4.connect)=>new Promise((r,n)=>{let i=!1,s,o=async()=>{await u,s.off("timeout",a),s.off("error",n),e.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 t(e,o),s.on("error",n),s.once("timeout",a)}catch(c){n(c)}})()})});var t2=y((z$,e2)=>{"use strict";var t4=require("net");e2.exports=e=>{let t=e.host,r=e.headers&&e.headers.host;return r&&(r.startsWith("[")?r.indexOf("]")===-1?t=r:t=r.slice(1,-1):t=r.split(":",1)[0]),t4.isIP(t)?"":t}});var i2=y((V$,C0)=>{"use strict";var r2=require("http"),x0=require("https"),r4=QC(),n4=p0(),i4=D0(),s4=t2(),o4=b0(),ac=new n4({maxSize:100}),io=new Map,n2=(e,t,r)=>{t._httpMessage={shouldKeepAlive:!0};let n=()=>{e.emit("free",t,r)};t.on("free",n);let i=()=>{e.removeSocket(t,r)};t.on("close",i);let s=()=>{e.removeSocket(t,r),t.off("close",i),t.off("free",n),t.off("agentRemove",s)};t.on("agentRemove",s),e.emit("free",t,r)},a4=async e=>{let t=`${e.host}:${e.port}:${e.ALPNProtocols.sort()}`;if(!ac.has(t)){if(io.has(t))return(await io.get(t)).alpnProtocol;let{path:r,agent:n}=e;e.path=e.socketPath;let i=r4(e);io.set(t,i);try{let{socket:s,alpnProtocol:o}=await i;if(ac.set(t,o),e.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=x0,u=x0.Agent.prototype.createConnection;n?n.createConnection===u?n2(n,s,e):s.destroy():a.createConnection===u?n2(a,s,e):s.destroy()}return io.delete(t),o}catch(s){throw io.delete(t),s}}return ac.get(t)};C0.exports=async(e,t,r)=>{if((typeof e=="string"||e instanceof URL)&&(e=o4(new URL(e))),typeof t=="function"&&(r=t,t=void 0),t={ALPNProtocols:["h2","http/1.1"],...e,...t,resolveSocket:!0},!Array.isArray(t.ALPNProtocols)||t.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");t.protocol=t.protocol||"https:";let n=t.protocol==="https:";t.host=t.hostname||t.host||"localhost",t.session=t.tlsSession,t.servername=t.servername||s4(t),t.port=t.port||(n?443:80),t._defaultAgent=n?x0.globalAgent:r2.globalAgent;let i=t.agent;if(i){if(i.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");t.agent=i[n?"https":"http"]}return n&&await a4(t)==="h2"?(i&&(t.agent=i.http2),new i4(t,r)):r2.request(t,r)};C0.exports.protocolCache=ac});var o2=y((Y$,s2)=>{"use strict";var u4=require("http2"),c4=g0(),S0=D0(),l4=_0(),f4=i2(),h4=(e,t,r)=>new S0(e,t,r),d4=(e,t,r)=>{let n=new S0(e,t,r);return n.end(),n};s2.exports={...u4,ClientRequest:S0,IncomingMessage:l4,...c4,request:h4,get:d4,auto:f4}});var F0=y(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0});var a2=Rr();R0.default=e=>a2.default.nodeStream(e)&&a2.default.function_(e.getBoundary)});var f2=y(T0=>{"use strict";Object.defineProperty(T0,"__esModule",{value:!0});var c2=require("fs"),l2=require("util"),u2=Rr(),p4=F0(),m4=l2.promisify(c2.stat);T0.default=async(e,t)=>{if(t&&"content-length"in t)return Number(t["content-length"]);if(!e)return 0;if(u2.default.string(e))return Buffer.byteLength(e);if(u2.default.buffer(e))return e.length;if(p4.default(e))return l2.promisify(e.getLength.bind(e))();if(e instanceof c2.ReadStream){let{size:r}=await m4(e.path);return r===0?void 0:r}}});var k0=y(O0=>{"use strict";Object.defineProperty(O0,"__esModule",{value:!0});function g4(e,t,r){let n={};for(let i of r)n[i]=(...s)=>{t.emit(i,...s)},e.on(i,n[i]);return()=>{for(let i of r)e.off(i,n[i])}}O0.default=g4});var h2=y(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});P0.default=()=>{let e=[];return{once(t,r,n){t.once(r,n),e.push({origin:t,event:r,fn:n})},unhandleAll(){for(let t of e){let{origin:r,event:n,fn:i}=t;r.removeListener(n,i)}e.length=0}}}});var p2=y(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.TimeoutError=void 0;var y4=require("net"),_4=h2(),d2=Symbol("reentry"),b4=()=>{},uc=class extends Error{constructor(t,r){super(`Timeout awaiting '${r}' for ${t}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};so.TimeoutError=uc;so.default=(e,t,r)=>{if(d2 in e)return b4;e[d2]=!0;let n=[],{once:i,unhandleAll:s}=_4.default(),o=(f,h,p)=>{var m;let g=setTimeout(h,f,f,p);(m=g.unref)===null||m===void 0||m.call(g);let b=()=>{clearTimeout(g)};return n.push(b),b},{host:a,hostname:u}=r,c=(f,h)=>{e.destroy(new uc(f,h))},l=()=>{for(let f of n)f();s()};if(e.once("error",f=>{if(l(),e.listenerCount("error")===0)throw f}),e.once("close",l),i(e,"response",f=>{i(f,"end",l)}),typeof t.request!="undefined"&&o(t.request,c,"request"),typeof t.socket!="undefined"){let f=()=>{c(t.socket,"socket")};e.setTimeout(t.socket,f),n.push(()=>{e.removeListener("timeout",f)})}return i(e,"socket",f=>{var h;let{socketPath:p}=e;if(f.connecting){let m=!!(p!=null?p:y4.isIP((h=u!=null?u:a)!==null&&h!==void 0?h:"")!==0);if(typeof t.lookup!="undefined"&&!m&&typeof f.address().address=="undefined"){let g=o(t.lookup,c,"lookup");i(f,"lookup",g)}if(typeof t.connect!="undefined"){let g=()=>o(t.connect,c,"connect");m?i(f,"connect",g()):i(f,"lookup",b=>{b===null&&i(f,"connect",g())})}typeof t.secureConnect!="undefined"&&r.protocol==="https:"&&i(f,"connect",()=>{let g=o(t.secureConnect,c,"secureConnect");i(f,"secureConnect",g)})}if(typeof t.send!="undefined"){let m=()=>o(t.send,c,"send");f.connecting?i(f,"connect",()=>{i(e,"upload-complete",m())}):i(e,"upload-complete",m())}}),typeof t.response!="undefined"&&i(e,"upload-complete",()=>{let f=o(t.response,c,"response");i(e,"response",f)}),l}});var g2=y(B0=>{"use strict";Object.defineProperty(B0,"__esModule",{value:!0});var m2=Rr();B0.default=e=>{e=e;let t={protocol:e.protocol,hostname:m2.default.string(e.hostname)&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};return m2.default.string(e.port)&&e.port.length>0&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username||""}:${e.password||""}`),t}});var y2=y(I0=>{"use strict";Object.defineProperty(I0,"__esModule",{value:!0});var E4=require("url"),w4=["protocol","host","hostname","port","pathname","search"];I0.default=(e,t)=>{var r,n;if(t.path){if(t.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(t.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(t.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(t.search&&t.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!e){if(!t.protocol)throw new TypeError("No URL protocol specified");e=`${t.protocol}//${(n=(r=t.hostname)!==null&&r!==void 0?r:t.host)!==null&&n!==void 0?n:""}`}let i=new E4.URL(e);if(t.path){let s=t.path.indexOf("?");s===-1?t.pathname=t.path:(t.pathname=t.path.slice(0,s),t.search=t.path.slice(s+1)),delete t.path}for(let s of w4)t[s]&&(i[s]=t[s].toString());return i}});var _2=y(N0=>{"use strict";Object.defineProperty(N0,"__esModule",{value:!0});var L0=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(t,r){typeof t=="object"?this.weakMap.set(t,r):this.map.set(t,r)}get(t){return typeof t=="object"?this.weakMap.get(t):this.map.get(t)}has(t){return typeof t=="object"?this.weakMap.has(t):this.map.has(t)}};N0.default=L0});var q0=y(M0=>{"use strict";Object.defineProperty(M0,"__esModule",{value:!0});var v4=async e=>{let t=[],r=0;for await(let n of e)t.push(n),r+=Buffer.byteLength(n);return Buffer.isBuffer(t[0])?Buffer.concat(t,r):Buffer.from(t.join(""))};M0.default=v4});var E2=y(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.dnsLookupIpVersionToFamily=In.isDnsLookupIpVersion=void 0;var b2={auto:0,ipv4:4,ipv6:6};In.isDnsLookupIpVersion=e=>e in b2;In.dnsLookupIpVersionToFamily=e=>{if(In.isDnsLookupIpVersion(e))return b2[e];throw new Error("Invalid DNS lookup IP version")}});var j0=y(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.isResponseOk=void 0;cc.isResponseOk=e=>{let{statusCode:t}=e,r=e.request.options.followRedirect?299:399;return t>=200&&t<=r||t===304}});var v2=y(H0=>{"use strict";Object.defineProperty(H0,"__esModule",{value:!0});var w2=new Set;H0.default=e=>{w2.has(e)||(w2.add(e),process.emitWarning(`Got: ${e}`,{type:"DeprecationWarning"}))}});var A2=y($0=>{"use strict";Object.defineProperty($0,"__esModule",{value:!0});var be=Rr(),A4=(e,t)=>{if(be.default.null_(e.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");be.assert.any([be.default.string,be.default.undefined],e.encoding),be.assert.any([be.default.boolean,be.default.undefined],e.resolveBodyOnly),be.assert.any([be.default.boolean,be.default.undefined],e.methodRewriting),be.assert.any([be.default.boolean,be.default.undefined],e.isStream),be.assert.any([be.default.string,be.default.undefined],e.responseType),e.responseType===void 0&&(e.responseType="text");let{retry:r}=e;if(t?e.retry={...t.retry}:e.retry={calculateDelay:n=>n.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},be.default.object(r)?(e.retry={...e.retry,...r},e.retry.methods=[...new Set(e.retry.methods.map(n=>n.toUpperCase()))],e.retry.statusCodes=[...new Set(e.retry.statusCodes)],e.retry.errorCodes=[...new Set(e.retry.errorCodes)]):be.default.number(r)&&(e.retry.limit=r),be.default.undefined(e.retry.maxRetryAfter)&&(e.retry.maxRetryAfter=Math.min(...[e.timeout.request,e.timeout.connect].filter(be.default.number))),be.default.object(e.pagination)){t&&(e.pagination={...t.pagination,...e.pagination});let{pagination:n}=e;if(!be.default.function_(n.transform))throw new Error("`options.pagination.transform` must be implemented");if(!be.default.function_(n.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!be.default.function_(n.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!be.default.function_(n.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return e.responseType==="json"&&e.headers.accept===void 0&&(e.headers.accept="application/json"),e};$0.default=A4});var D2=y(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.retryAfterStatusCodes=void 0;oo.retryAfterStatusCodes=new Set([413,429,503]);var D4=({attemptCount:e,retryOptions:t,error:r,retryAfter:n})=>{if(e>t.limit)return 0;let i=t.methods.includes(r.options.method),s=t.errorCodes.includes(r.code),o=r.response&&t.statusCodes.includes(r.response.statusCode);if(!i||!s&&!o)return 0;if(r.response){if(n)return t.maxRetryAfter===void 0||n>t.maxRetryAfter?0:n;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(e-1)*1e3+a};oo.default=D4});var co=y(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 x2=require("util"),C2=require("stream"),x4=require("fs"),nn=require("url"),S2=require("http"),U0=require("http"),C4=require("https"),S4=jx(),R4=Vx(),R2=SC(),F4=OC(),T4=o2(),O4=ic(),D=Rr(),k4=f2(),F2=F0(),P4=k0(),T2=p2(),B4=g2(),O2=y2(),I4=_2(),L4=q0(),k2=E2(),N4=j0(),sn=v2(),M4=A2(),q4=D2(),G0,He=Symbol("request"),hc=Symbol("response"),Ji=Symbol("responseSize"),Xi=Symbol("downloadedSize"),Zi=Symbol("bodySize"),Qi=Symbol("uploadedSize"),lc=Symbol("serverResponsesPiped"),P2=Symbol("unproxyEvents"),B2=Symbol("isFromCache"),W0=Symbol("cancelTimeouts"),I2=Symbol("startedReading"),es=Symbol("stopReading"),fc=Symbol("triggerRead"),on=Symbol("body"),ao=Symbol("jobs"),L2=Symbol("originalResponse"),N2=Symbol("retryTimeout");se.kIsNormalizedAlready=Symbol("isNormalizedAlready");var j4=D.default.string(process.versions.brotli);se.withoutBody=new Set(["GET","HEAD"]);se.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function H4(e){for(let t in e){let r=e[t];if(!D.default.string(r)&&!D.default.number(r)&&!D.default.boolean(r)&&!D.default.null_(r)&&!D.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function $4(e){return D.default.object(e)&&!("statusCode"in e)}var z0=new I4.default,U4=async e=>new Promise((t,r)=>{let n=i=>{r(i)};e.pending||t(),e.once("error",n),e.once("ready",()=>{e.off("error",n),t()})}),G4=new Set([300,301,302,303,304,307,308]),W4=["context","body","json","form"];se.setNonEnumerableProperties=(e,t)=>{let r={};for(let n of e)if(n)for(let i of W4)i in n&&(r[i]={writable:!0,configurable:!0,enumerable:!1,value:n[i]});Object.defineProperties(t,r)};var Re=class extends Error{constructor(t,r,n){var i,s;if(super(t),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(i=r.code)!==null&&i!==void 0?i:"ERR_GOT_REQUEST_ERROR",n instanceof bc?(Object.defineProperty(this,"request",{enumerable:!1,value:n}),Object.defineProperty(this,"response",{enumerable:!1,value:n[hc]}),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,D.default.string(r.stack)&&D.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
`)}`}}};se.RequestError=Re;var dc=class extends Re{constructor(t){super(`Redirected ${t.options.maxRedirects} times. Aborting.`,{},t),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};se.MaxRedirectsError=dc;var pc=class extends Re{constructor(t){super(`Response code ${t.statusCode} (${t.statusMessage})`,{},t.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};se.HTTPError=pc;var mc=class extends Re{constructor(t,r){super(t.message,t,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};se.CacheError=mc;var gc=class extends Re{constructor(t,r){super(t.message,t,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};se.UploadError=gc;var yc=class extends Re{constructor(t,r,n){super(t.message,t,n),this.name="TimeoutError",this.event=t.event,this.timings=r}};se.TimeoutError=yc;var uo=class extends Re{constructor(t,r){super(t.message,t,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};se.ReadError=uo;var _c=class extends Re{constructor(t){super(`Unsupported protocol "${t.url.protocol}"`,{},t),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};se.UnsupportedProtocolError=_c;var z4=["socket","connect","continue","information","upgrade","timeout"],bc=class extends C2.Duplex{constructor(t,r={},n){super({autoDestroy:!1,highWaterMark:0}),this[Xi]=0,this[Qi]=0,this.requestInitialized=!1,this[lc]=new Set,this.redirects=[],this[es]=!1,this[fc]=!1,this[ao]=[],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 U0.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(t,r,n)}catch(c){D.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof x4.ReadStream&&await U4(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[He])===null||c===void 0||c.destroy();return}for(let f of this[ao])f();this[ao].length=0,this.requestInitialized=!0}catch(l){if(l instanceof Re){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(t,r,n){var i,s,o,a,u;let c=r;if(D.default.object(t)&&!D.default.urlInstance(t))r={...n,...t,...r};else{if(t&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...n,...r},t!==void 0&&(r.url=t),D.default.urlInstance(r.url)&&(r.url=new nn.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),D.assert.any([D.default.string,D.default.undefined],r.method),D.assert.any([D.default.object,D.default.undefined],r.headers),D.assert.any([D.default.string,D.default.urlInstance,D.default.undefined],r.prefixUrl),D.assert.any([D.default.object,D.default.undefined],r.cookieJar),D.assert.any([D.default.object,D.default.string,D.default.undefined],r.searchParams),D.assert.any([D.default.object,D.default.string,D.default.undefined],r.cache),D.assert.any([D.default.object,D.default.number,D.default.undefined],r.timeout),D.assert.any([D.default.object,D.default.undefined],r.context),D.assert.any([D.default.object,D.default.undefined],r.hooks),D.assert.any([D.default.boolean,D.default.undefined],r.decompress),D.assert.any([D.default.boolean,D.default.undefined],r.ignoreInvalidCookies),D.assert.any([D.default.boolean,D.default.undefined],r.followRedirect),D.assert.any([D.default.number,D.default.undefined],r.maxRedirects),D.assert.any([D.default.boolean,D.default.undefined],r.throwHttpErrors),D.assert.any([D.default.boolean,D.default.undefined],r.http2),D.assert.any([D.default.boolean,D.default.undefined],r.allowGetBody),D.assert.any([D.default.string,D.default.undefined],r.localAddress),D.assert.any([k2.isDnsLookupIpVersion,D.default.undefined],r.dnsLookupIpVersion),D.assert.any([D.default.object,D.default.undefined],r.https),D.assert.any([D.default.boolean,D.default.undefined],r.rejectUnauthorized),r.https&&(D.assert.any([D.default.boolean,D.default.undefined],r.https.rejectUnauthorized),D.assert.any([D.default.function_,D.default.undefined],r.https.checkServerIdentity),D.assert.any([D.default.string,D.default.object,D.default.array,D.default.undefined],r.https.certificateAuthority),D.assert.any([D.default.string,D.default.object,D.default.array,D.default.undefined],r.https.key),D.assert.any([D.default.string,D.default.object,D.default.array,D.default.undefined],r.https.certificate),D.assert.any([D.default.string,D.default.undefined],r.https.passphrase),D.assert.any([D.default.string,D.default.buffer,D.default.array,D.default.undefined],r.https.pfx)),D.assert.any([D.default.object,D.default.undefined],r.cacheOptions),D.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=O4({...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(D.default.string(r.searchParams)||r.searchParams instanceof nn.URLSearchParams)p=new nn.URLSearchParams(r.searchParams);else{H4(r.searchParams),p=new nn.URLSearchParams;for(let m in r.searchParams){let g=r.searchParams[m];g===null?p.append(m,""):g!==void 0&&p.append(m,g)}}(i=n==null?void 0:n.searchParams)===null||i===void 0||i.forEach((m,g)=>{p.has(g)||p.append(g,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:"",D.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+="/")),D.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=O2.default(r.prefixUrl+r.url,r)}else(D.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=O2.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:p}=r;Object.defineProperty(r,"prefixUrl",{set:g=>{let b=r.url;if(!b.href.startsWith(g))throw new Error(`Cannot change \`prefixUrl\` from ${p} to ${g}: ${b.href}`);r.url=new nn.URL(g+b.href.slice(p.length)),p=g},get:()=>p});let{protocol:m}=r.url;if(m==="unix:"&&(m="http:",r.url=new nn.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),m!=="http:"&&m!=="https:")throw new _c(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;D.assert.function_(p),D.assert.function_(m),p.length===4&&m.length===0&&(p=x2.promisify(p.bind(r.cookieJar)),m=x2.promisify(m.bind(r.cookieJar)),r.cookieJar={setCookie:p,getCookieString:m})}let{cache:f}=r;if(f&&(z0.has(f)||z0.set(f,new R2((p,m)=>{let g=p[He](p,m);return D.default.promise(g)&&(g.once=(b,v)=>{if(b==="error")g.catch(v);else if(b==="abort")(async()=>{try{(await g).once("abort",v)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${b}`);return g}),g},f))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)G0||(G0=new R4.default),r.dnsCache=G0;else if(!D.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${D.default(r.dnsCache)}`);D.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(D.default.array(r.hooks[p]))r.hooks[p]=[...r.hooks[p]];else throw new TypeError(`Parameter \`${p}\` must be an Array, got ${D.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&&sn.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),n!=null&&n.https&&(r.https={...n.https,...r.https}),"rejectUnauthorized"in r&&sn.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&sn.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&sn.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&sn.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&sn.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&sn.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&sn.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),M4.default(r,n)}_lockWrite(){let t=()=>{throw new TypeError("The payload has been already provided")};this.write=t,this.end=t}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:t}=this,{headers:r}=t,n=!D.default.undefined(t.form),i=!D.default.undefined(t.json),s=!D.default.undefined(t.body),o=n||i||s,a=se.withoutBody.has(t.method)&&!(t.method==="GET"&&t.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${t.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&&!(t.body instanceof C2.Readable)&&!D.default.string(t.body)&&!D.default.buffer(t.body)&&!F2.default(t.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(n&&!D.default.object(t.form))throw new TypeError("The `form` option must be an Object");{let u=!D.default.string(r["content-type"]);s?(F2.default(t.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${t.body.getBoundary()}`),this[on]=t.body):n?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[on]=new nn.URLSearchParams(t.form).toString()):(u&&(r["content-type"]="application/json"),this[on]=t.stringifyJson(t.json));let c=await k4.default(this[on],t.headers);D.default.undefined(r["content-length"])&&D.default.undefined(r["transfer-encoding"])&&!a&&!D.default.undefined(c)&&(r["content-length"]=String(c))}}else a?this._lockWrite():this._unlockWrite();this[Zi]=Number(r["content-length"])||void 0}async _onResponseBase(t){let{options:r}=this,{url:n}=r;this[L2]=t,r.decompress&&(t=F4(t));let i=t.statusCode,s=t;s.statusMessage=s.statusMessage?s.statusMessage:S2.STATUS_CODES[i],s.url=r.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=t.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[B2]=s.isFromCache,this[Ji]=Number(t.headers["content-length"])||void 0,this[hc]=t,t.once("end",()=>{this[Ji]=this[Xi],this.emit("downloadProgress",this.downloadProgress)}),t.once("error",a=>{t.destroy(),this._beforeError(new uo(a,this))}),t.once("aborted",()=>{this._beforeError(new uo({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=t.headers["set-cookie"];if(D.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&&t.headers.location&&G4.has(i)){if(t.resume(),this[He]&&(this[W0](),delete this[He],this[P2]()),(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[on]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new dc(this));return}try{let f=function(h){return h.protocol==="unix:"||h.hostname==="unix"},u=Buffer.from(t.headers.location,"binary").toString(),c=new nn.URL(u,n),l=c.toString();if(decodeURI(l),!f(n)&&f(c)){this._beforeError(new Re("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&&!N4.isResponseOk(s)){this._beforeError(new pc(s));return}t.on("readable",()=>{this[fc]&&this._read()}),this.on("resume",()=>{t.resume()}),this.on("pause",()=>{t.pause()}),t.once("end",()=>{this.push(null)}),this.emit("response",t);for(let a of this[lc])if(!a.headersSent){for(let u in t.headers){let c=r.decompress?u!=="content-encoding":!0,l=t.headers[u];c&&a.setHeader(u,l)}a.statusCode=i}}async _onResponse(t){try{await this._onResponseBase(t)}catch(r){this._beforeError(r)}}_onRequest(t){let{options:r}=this,{timeout:n,url:i}=r;S4.default(t),this[W0]=T2.default(t,n,i);let s=r.cache?"cacheableResponse":"response";t.once(s,u=>{this._onResponse(u)}),t.once("error",u=>{var c;t.destroy(),(c=t.res)===null||c===void 0||c.removeAllListeners("end"),u=u instanceof T2.TimeoutError?new yc(u,this.timings,this):new Re(u.message,u,this),this._beforeError(u)}),this[P2]=P4.default(t,this,z4),this[He]=t,this.emit("uploadProgress",this.uploadProgress);let o=this[on],a=this.redirects.length===0?this:t;D.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new gc(u,this))})):(this._unlockWrite(),D.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",t)}async _createCacheableRequest(t,r){return new Promise((n,i)=>{Object.assign(r,B4.default(t)),delete r.url;let s,o=z0.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),n(a)});r.url=t,o.once("error",i),o.once("request",async a=>{s=a,n(s)})})}async _makeRequest(){var t,r,n,i,s;let{options:o}=this,{headers:a}=o;for(let v in a)if(D.default.undefined(a[v]))delete a[v];else if(D.default.null_(a[v]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${v}\` header`);if(o.decompress&&D.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=j4?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let v=await o.cookieJar.getCookieString(o.url.toString());D.default.nonEmptyString(v)&&(o.headers.cookie=v)}for(let v of o.hooks.beforeRequest){let S=await v(o);if(!D.default.undefined(S)){o.request=()=>S;break}}o.body&&this[on]!==o.body&&(this[on]=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 v=/(?<socketPath>.+?):(?<path>.+)/.exec(`${f.pathname}${f.search}`);if(v!=null&&v.groups){let{socketPath:S,path:L}=v.groups;Object.assign(o,{socketPath:S,path:L,host:""})}}let h=f.protocol==="https:",p;o.http2?p=T4.auto:p=h?C4.request:S2.request;let m=(t=o.request)!==null&&t!==void 0?t:p,g=o.cache?this._createCacheableRequest:m;u&&!o.http2&&(o.agent=u[h?"https":"http"]),o[He]=m,delete o.request,delete o.timeout;let b=o;if(b.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,b.cacheHeuristic=(n=o.cacheOptions)===null||n===void 0?void 0:n.cacheHeuristic,b.immutableMinTimeToLive=(i=o.cacheOptions)===null||i===void 0?void 0:i.immutableMinTimeToLive,b.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{b.family=k2.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(b.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(b.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(b.ca=o.https.certificateAuthority),o.https.certificate&&(b.cert=o.https.certificate),o.https.key&&(b.key=o.https.key),o.https.passphrase&&(b.passphrase=o.https.passphrase),o.https.pfx&&(b.pfx=o.https.pfx));try{let v=await g(f,b);D.default.undefined(v)&&(v=p(f,b)),o.request=c,o.timeout=l,o.agent=u,o.https&&("rejectUnauthorized"in o.https&&delete b.rejectUnauthorized,o.https.checkServerIdentity&&delete b.checkServerIdentity,o.https.certificateAuthority&&delete b.ca,o.https.certificate&&delete b.cert,o.https.key&&delete b.key,o.https.passphrase&&delete b.passphrase,o.https.pfx&&delete b.pfx),$4(v)?this._onRequest(v):this.writable?(this.once("finish",()=>{this._onResponse(v)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(v)}catch(v){throw v instanceof R2.CacheError?new mc(v,this):new Re(v.message,v,this)}}async _error(t){try{for(let r of this.options.hooks.beforeError)t=await r(t)}catch(r){t=new Re(r.message,r,this)}this.destroy(t)}_beforeError(t){if(this[es])return;let{options:r}=this,n=this.retryCount+1;this[es]=!0,t instanceof Re||(t=new Re(t.message,t,this));let i=t,{response:s}=i;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await L4.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:q4.default({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:0})})}catch(a){this._error(new Re(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 Re(u.message,t,this));return}this.destroyed||(this.destroy(),this.emit("retry",n,t))};this[N2]=setTimeout(a,o);return}}this._error(i)})()}_read(){this[fc]=!0;let t=this[hc];if(t&&!this[es]){t.readableLength&&(this[fc]=!1);let r;for(;(r=t.read())!==null;){this[Xi]+=r.length,this[I2]=!0;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(t,r,n){let i=()=>{this._writeRequest(t,r,n)};this.requestInitialized?i():this[ao].push(i)}_writeRequest(t,r,n){this[He].destroyed||(this._progressCallbacks.push(()=>{this[Qi]+=Buffer.byteLength(t,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}),this[He].write(t,r,i=>{!i&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),n(i)}))}_final(t){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(He in this)){t();return}if(this[He].destroyed){t();return}this[He].end(n=>{n||(this[Zi]=this[Qi],this.emit("uploadProgress",this.uploadProgress),this[He].emit("upload-complete")),t(n)})};this.requestInitialized?r():this[ao].push(r)}_destroy(t,r){var n;this[es]=!0,clearTimeout(this[N2]),He in this&&(this[W0](),!((n=this[hc])===null||n===void 0)&&n.complete||this[He].destroy()),t!==null&&!D.default.undefined(t)&&!(t instanceof Re)&&(t=new Re(t.message,t,this)),r(t)}get _isAboutToError(){return this[es]}get ip(){var t;return(t=this.socket)===null||t===void 0?void 0:t.remoteAddress}get aborted(){var t,r,n;return((r=(t=this[He])===null||t===void 0?void 0:t.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((n=this[L2])===null||n===void 0)&&n.complete)}get socket(){var t,r;return(r=(t=this[He])===null||t===void 0?void 0:t.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let t;return this[Ji]?t=this[Xi]/this[Ji]:this[Ji]===this[Xi]?t=1:t=0,{percent:t,transferred:this[Xi],total:this[Ji]}}get uploadProgress(){let t;return this[Zi]?t=this[Qi]/this[Zi]:this[Zi]===this[Qi]?t=1:t=0,{percent:t,transferred:this[Qi],total:this[Zi]}}get timings(){var t;return(t=this[He])===null||t===void 0?void 0:t.timings}get isFromCache(){return this[B2]}pipe(t,r){if(this[I2])throw new Error("Failed to pipe. The response has been emitted already.");return t instanceof U0.ServerResponse&&this[lc].add(t),super.pipe(t,r)}unpipe(t){return t instanceof U0.ServerResponse&&this[lc].delete(t),super.unpipe(t),this}};se.default=bc});var lo=y($t=>{"use strict";var V4=$t&&$t.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Y4=$t&&$t.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&V4(t,e,r)};Object.defineProperty($t,"__esModule",{value:!0});$t.CancelError=$t.ParseError=void 0;var M2=co(),V0=class extends M2.RequestError{constructor(t,r){let{options:n}=r.request;super(`${t.message} in "${n.url.toString()}"`,t,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};$t.ParseError=V0;var Y0=class extends M2.RequestError{constructor(t){super("Promise was canceled",{},t),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};$t.CancelError=Y0;Y4(co(),$t)});var j2=y(K0=>{"use strict";Object.defineProperty(K0,"__esModule",{value:!0});var q2=lo(),K4=(e,t,r,n)=>{let{rawBody:i}=e;try{if(t==="text")return i.toString(n);if(t==="json")return i.length===0?"":r(i.toString());if(t==="buffer")return i;throw new q2.ParseError({message:`Unknown body type '${t}'`,name:"Error"},e)}catch(s){throw new q2.ParseError(s,e)}};K0.default=K4});var J0=y(an=>{"use strict";var J4=an&&an.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),X4=an&&an.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&J4(t,e,r)};Object.defineProperty(an,"__esModule",{value:!0});var Z4=require("events"),Q4=Rr(),e9=Mx(),Ec=lo(),H2=j2(),$2=co(),t9=k0(),r9=q0(),U2=j0(),n9=["request","response","redirect","uploadProgress","downloadProgress"];function G2(e){let t,r,n=new Z4.EventEmitter,i=new e9((o,a,u)=>{let c=l=>{let f=new $2.default(void 0,e);f.retryCount=l,f._noPipe=!0,u(()=>f.destroy()),u.shouldReject=!1,u(()=>a(new Ec.CancelError(f))),t=f,f.once("response",async m=>{var g;if(m.retryCount=l,m.request.aborted)return;let b;try{b=await r9.default(f),m.rawBody=b}catch{return}if(f._isAboutToError)return;let v=((g=m.headers["content-encoding"])!==null&&g!==void 0?g:"").toLowerCase(),S=["gzip","deflate","br"].includes(v),{options:L}=f;if(S&&!L.decompress)m.body=b;else try{m.body=H2.default(m,L.responseType,L.parseJson,L.encoding)}catch(W){if(m.body=b.toString(),U2.isResponseOk(m)){f._beforeError(W);return}}try{for(let[W,M]of L.hooks.afterResponse.entries())m=await M(m,async J=>{let z=$2.default.normalizeArguments(void 0,{...J,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},L);z.hooks.afterResponse=z.hooks.afterResponse.slice(0,W);for(let te of z.hooks.beforeRetry)await te(z);let Y=G2(z);return u(()=>{Y.catch(()=>{}),Y.cancel()}),Y})}catch(W){f._beforeError(new Ec.RequestError(W.message,W,f));return}if(r=m,!U2.isResponseOk(m)){f._beforeError(new Ec.HTTPError(m));return}f.destroy(),o(f.options.resolveBodyOnly?m.body:m)});let h=m=>{if(i.isCanceled)return;let{options:g}=f;if(m instanceof Ec.HTTPError&&!g.throwHttpErrors){let{response:b}=m;o(f.options.resolveBodyOnly?b.body:b);return}a(m)};f.once("error",h);let p=f.options.body;f.once("retry",(m,g)=>{var b,v;if(p===((b=g.request)===null||b===void 0?void 0:b.options.body)&&Q4.default.nodeStream((v=g.request)===null||v===void 0?void 0:v.options.body)){h(g);return}c(m)}),t9.default(f,n,n9)};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 H2.default(r,o,u.parseJson,u.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)),a};return i.json=()=>{let{headers:o}=t.options;return!t.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},i.buffer=()=>s("buffer"),i.text=()=>s("text"),i}an.default=G2;X4(lo(),an)});var W2=y(X0=>{"use strict";Object.defineProperty(X0,"__esModule",{value:!0});var i9=lo();function s9(e,...t){let r=(async()=>{if(e instanceof i9.RequestError)try{for(let i of t)if(i)for(let s of i)e=await s(e)}catch(i){e=i}throw e})(),n=()=>r;return r.json=n,r.text=n,r.buffer=n,r.on=n,r}X0.default=s9});var Y2=y(Z0=>{"use strict";Object.defineProperty(Z0,"__esModule",{value:!0});var z2=Rr();function V2(e){for(let t of Object.values(e))(z2.default.plainObject(t)||z2.default.array(t))&&V2(t);return Object.freeze(e)}Z0.default=V2});var J2=y(K2=>{"use strict";Object.defineProperty(K2,"__esModule",{value:!0})});var Q0=y(Pt=>{"use strict";var o9=Pt&&Pt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),a9=Pt&&Pt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&o9(t,e,r)};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.defaultHandler=void 0;var X2=Rr(),kt=J0(),u9=W2(),vc=co(),c9=Y2(),l9={RequestError:kt.RequestError,CacheError:kt.CacheError,ReadError:kt.ReadError,HTTPError:kt.HTTPError,MaxRedirectsError:kt.MaxRedirectsError,TimeoutError:kt.TimeoutError,ParseError:kt.ParseError,CancelError:kt.CancelError,UnsupportedProtocolError:kt.UnsupportedProtocolError,UploadError:kt.UploadError},f9=async e=>new Promise(t=>{setTimeout(t,e)}),{normalizeArguments:wc}=vc.default,Z2=(...e)=>{let t;for(let r of e)t=wc(void 0,r,t);return t},h9=e=>e.isStream?new vc.default(void 0,e):kt.default(e),d9=e=>"defaults"in e&&"options"in e.defaults,p9=["get","post","put","patch","head","delete"];Pt.defaultHandler=(e,t)=>t(e);var Q2=(e,t)=>{if(e)for(let r of e)r(t)},eS=e=>{e._rawHandlers=e.handlers,e.handlers=e.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 t=(n,i={},s)=>{var o,a;let u=0,c=l=>e.handlers[u++](l,u===e.handlers.length?h9:c);if(X2.default.plainObject(n)){let l={...n,...i};vc.setNonEnumerableProperties([n,i],l),i=l,n=void 0}try{let l;try{Q2(e.options.hooks.init,i),Q2((o=i.hooks)===null||o===void 0?void 0:o.init,i)}catch(h){l=h}let f=wc(n,i,s!=null?s:e.options);if(f[vc.kIsNormalizedAlready]=!0,l)throw new kt.RequestError(l.message,l,f);return c(f)}catch(l){if(i.isStream)throw l;return u9.default(l,e.options.hooks.beforeError,(a=i.hooks)===null||a===void 0?void 0:a.beforeError)}};t.extend=(...n)=>{let i=[e.options],s=[...e._rawHandlers],o;for(let a of n)d9(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!==Pt.defaultHandler),s.length===0&&s.push(Pt.defaultHandler),eS({options:Z2(...i),handlers:s,mutableDefaults:!!o})};let r=async function*(n,i){let s=wc(n,i,e.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!X2.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 f9(o.backoff);let l=await t(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=wc(void 0,p,s)),c++}};t.paginate=r,t.paginate.all=async(n,i)=>{let s=[];for await(let o of r(n,i))s.push(o);return s},t.paginate.each=r,t.stream=(n,i)=>t(n,{...i,isStream:!0});for(let n of p9)t[n]=(i,s)=>t(i,{...s,method:n}),t.stream[n]=(i,s)=>t(i,{...s,method:n,isStream:!0});return Object.assign(t,l9),Object.defineProperty(t,"defaults",{value:e.mutableDefaults?e:c9.default(e),writable:e.mutableDefaults,configurable:e.mutableDefaults,enumerable:!0}),t.mergeOptions=Z2,t};Pt.default=eS;a9(J2(),Pt)});var nS=y((Fr,Ac)=>{"use strict";var m9=Fr&&Fr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),tS=Fr&&Fr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&m9(t,e,r)};Object.defineProperty(Fr,"__esModule",{value:!0});var g9=require("url"),rS=Q0(),y9={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:e})=>e},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:e=>e.request.options.responseType==="json"?e.body:JSON.parse(e.body),paginate:e=>{if(!Reflect.has(e.headers,"link"))return!1;let t=e.headers.link.split(","),r;for(let n of t){let i=n.split(";");if(i[1].includes("next")){r=i[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new g9.URL(r)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:e=>JSON.parse(e),stringifyJson:e=>JSON.stringify(e),cacheOptions:{}},handlers:[rS.defaultHandler],mutableDefaults:!1},em=rS.default(y9);Fr.default=em;Ac.exports=em;Ac.exports.default=em;Ac.exports.__esModule=!0;tS(Q0(),Fr);tS(J0(),Fr)});var lS=y((bU,cS)=>{function Bt(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.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))}cS.exports=Bt;Bt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Bt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Bt.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);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};Bt.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Bt.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};Bt.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};Bt.prototype.start=Bt.prototype.try;Bt.prototype.errors=function(){return this._errors};Bt.prototype.attempts=function(){return this._attempts};Bt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(e[s]||0)+1;e[s]=o,o>=r&&(t=i,r=o)}return t}});var fS=y(Ln=>{var b9=lS();Ln.operation=function(e){var t=Ln.timeouts(e);return new b9(t,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};Ln.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(s,o){return s-o}),n};Ln.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};Ln.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=e[s];e[s]=function(u){var c=Ln.operation(t),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(e,l)})}.bind(e,o),e[s].options=t}}});var dS=y((wU,hS)=>{hS.exports=fS()});var mS=y((vU,pS)=>{var E9=dS();function w9(e,t){function r(n,i){var s=t||{},o;"randomize"in s||(s.randomize=!0),o=E9.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=e(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)}pS.exports=w9});var $S=X(require("http")),US=X(require("https")),GS=X(require("picocolors")),Ue=require("commander");var uR=X(Om());function Mc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ns(e){return ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ns(e)}function qc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jc(e,t){if(t&&(ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qc(e)}function cn(e){return cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cn(e)}function or(e,t){return or=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},or(e,t)}function Hc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&or(e,t)}function $c(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Uc(){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 qn(e,t,r){return Uc()?qn=Reflect.construct.bind():qn=function(i,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(i,a),c=new u;return o&&or(c,o.prototype),c},qn.apply(null,arguments)}function is(e){var t=typeof Map=="function"?new Map:void 0;return is=function(n){if(n===null||!$c(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return qn(n,arguments,cn(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),or(i,n)},is(e)}var Jc=X(Ym()),wo=X(require("path")),vo=X(require("fs-extra")),cR=function(e){Hc(t,e);function t(r){var n;return Mc(this,t),n=jc(this,cn(t).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return t}(is(Error));function lR(e,t){try{var r=vo.default.readJsonSync(wo.default.join(e,"package.json"));if(t.current===void 0&&(t.current=e),r.workspaces||r.bolt)return e}catch(n){if(n.code!=="ENOENT")throw n}}function fR(e){try{var t=vo.default.readJsonSync(wo.default.join(e,"lerna.json"));if(t.useWorkspaces!==!0)return e}catch(r){if(r.code!=="ENOENT")throw r}}function hR(e){var t=vo.default.existsSync(wo.default.join(e,"pnpm-workspace.yaml"));if(t)return e}function Km(e){var t={current:void 0},r=(0,Jc.sync)(function(n){return[fR(n),lR(n,t),hR(n)].find(function(i){return i})},{cwd:e,type:"directory"});if(t.current===void 0)throw new cR(e);return r===void 0?t.current:r}var dR=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,pR=/[\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]/,mR=/[\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]/,Xc={Space_Separator:dR,ID_Start:pR,ID_Continue:mR},xe={isSpaceSeparator(e){return typeof e=="string"&&Xc.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Xc.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"||Xc.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)}},Qc,rt,ur,Do,kr,Nt,Be,rl,os,gR=function(t,r){Qc=String(t),rt="start",ur=[],Do=0,kr=1,Nt=0,Be=void 0,rl=void 0,os=void 0;do Be=yR(),ER[rt]();while(Be.type!=="eof");return typeof r=="function"?el({"":os},"",r):os};function el(e,t,r){let n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){let s=String(i),o=el(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=el(n,i,r);s===void 0?delete n[i]:Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,n)}var ee,Q,ss,ar,re;function yR(){for(ee="default",Q="",ss=!1,ar=1;;){re=cr();let e=Xm[ee]();if(e)return e}}function cr(){if(Qc[Do])return String.fromCodePoint(Qc.codePointAt(Do))}function T(){let e=cr();return e===`
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
`:case"\r":throw ge(T());case"\u2028":case"\u2029":wR(re);break;case void 0:throw ge(T())}Q+=T()},start(){switch(re){case"{":case"[":return me("punctuator",T())}ee="value"},beforePropertyName(){switch(re){case"$":case"_":Q=T(),ee="identifierName";return;case"\\":T(),ee="identifierNameStartEscape";return;case"}":return me("punctuator",T());case'"':case"'":ss=T()==='"',ee="string";return}if(xe.isIdStartChar(re)){Q+=T(),ee="identifierName";return}throw ge(T())},afterPropertyName(){if(re===":")return me("punctuator",T());throw ge(T())},beforePropertyValue(){ee="value"},afterPropertyValue(){switch(re){case",":case"}":return me("punctuator",T())}throw ge(T())},beforeArrayValue(){if(re==="]")return me("punctuator",T());ee="value"},afterArrayValue(){switch(re){case",":case"]":return me("punctuator",T())}throw ge(T())},end(){throw ge(T())}};function me(e,t){return{type:e,value:t,line:kr,column:Nt}}function ln(e){for(let t of e){if(cr()!==t)throw ge(T());T()}}function _R(){switch(cr()){case"b":return T(),"\b";case"f":return T(),"\f";case"n":return T(),`
|
|
35
|
-
`;case"r":return T(),"\r";case"t":return T()," ";case"v":return T(),"\v";case"0":if(T(),xe.isDigit(cr()))throw ge(T());return"\0";case"x":return T(),bR();case"u":return T(),tl();case`
|
|
36
|
-
`:case"\u2028":case"\u2029":return T(),"";case"\r":return T(),cr()===`
|
|
37
|
-
`&&T(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw ge(T());case void 0:throw ge(T())}return T()}function bR(){let e="",t=cr();if(!xe.isHexDigit(t)||(e+=T(),t=cr(),!xe.isHexDigit(t)))throw ge(T());return e+=T(),String.fromCodePoint(parseInt(e,16))}function tl(){let e="",t=4;for(;t-- >0;){let r=cr();if(!xe.isHexDigit(r))throw ge(T());e+=T()}return String.fromCodePoint(parseInt(e,16))}var ER={start(){if(Be.type==="eof")throw fn();Zc()},beforePropertyName(){switch(Be.type){case"identifier":case"string":rl=Be.value,rt="afterPropertyName";return;case"punctuator":Ao();return;case"eof":throw fn()}},afterPropertyName(){if(Be.type==="eof")throw fn();rt="beforePropertyValue"},beforePropertyValue(){if(Be.type==="eof")throw fn();Zc()},beforeArrayValue(){if(Be.type==="eof")throw fn();if(Be.type==="punctuator"&&Be.value==="]"){Ao();return}Zc()},afterPropertyValue(){if(Be.type==="eof")throw fn();switch(Be.value){case",":rt="beforePropertyName";return;case"}":Ao()}},afterArrayValue(){if(Be.type==="eof")throw fn();switch(Be.value){case",":rt="beforeArrayValue";return;case"]":Ao()}},end(){}};function Zc(){let e;switch(Be.type){case"punctuator":switch(Be.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=Be.value;break}if(os===void 0)os=e;else{let t=ur[ur.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,rl,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")ur.push(e),Array.isArray(e)?rt="beforeArrayValue":rt="beforePropertyName";else{let t=ur[ur.length-1];t==null?rt="end":Array.isArray(t)?rt="afterArrayValue":rt="afterPropertyValue"}}function Ao(){ur.pop();let e=ur[ur.length-1];e==null?rt="end":Array.isArray(e)?rt="afterArrayValue":rt="afterPropertyValue"}function ge(e){return xo(e===void 0?`JSON5: invalid end of input at ${kr}:${Nt}`:`JSON5: invalid character '${Zm(e)}' at ${kr}:${Nt}`)}function fn(){return xo(`JSON5: invalid end of input at ${kr}:${Nt}`)}function Jm(){return Nt-=5,xo(`JSON5: invalid identifier character at ${kr}:${Nt}`)}function wR(e){console.warn(`JSON5: '${Zm(e)}' in strings is not valid ECMAScript; consider escaping`)}function Zm(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let r=e.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return e}function xo(e){let t=new SyntaxError(e);return t.lineNumber=kr,t.columnNumber=Nt,t}var vR=function(t,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 g of r){let b;typeof g=="string"?b=g:(typeof g=="number"||g instanceof String||g instanceof Number)&&(b=String(g)),b!==void 0&&o.indexOf(b)<0&&o.push(b)}}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("",{"":t});function l(g,b){let v=b[g];switch(v!=null&&(typeof v.toJSON5=="function"?v=v.toJSON5(g):typeof v.toJSON=="function"&&(v=v.toJSON(g))),a&&(v=a.call(b,g,v)),v instanceof Number?v=Number(v):v instanceof String?v=String(v):v instanceof Boolean&&(v=v.valueOf()),v){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof v=="string")return f(v,!1);if(typeof v=="number")return String(v);if(typeof v=="object")return Array.isArray(v)?m(v):h(v)}function f(g){let b={"'":.1,'"':.2},v={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},S="";for(let W=0;W<g.length;W++){let M=g[W];switch(M){case"'":case'"':b[M]++,S+=M;continue;case"\0":if(xe.isDigit(g[W+1])){S+="\\x00";continue}}if(v[M]){S+=v[M];continue}if(M<" "){let J=M.charCodeAt(0).toString(16);S+="\\x"+("00"+J).substring(J.length);continue}S+=M}let L=c||Object.keys(b).reduce((W,M)=>b[W]<b[M]?W:M);return S=S.replace(new RegExp(L,"g"),v[L]),L+S+L}function h(g){if(i.indexOf(g)>=0)throw TypeError("Converting circular structure to JSON5");i.push(g);let b=s;s=s+u;let v=o||Object.keys(g),S=[];for(let W of v){let M=l(W,g);if(M!==void 0){let J=p(W)+":";u!==""&&(J+=" "),J+=M,S.push(J)}}let L;if(S.length===0)L="{}";else{let W;if(u==="")W=S.join(","),L="{"+W+"}";else{let M=`,
|
|
38
|
-
`+s;W=S.join(M),L=`{
|
|
21
|
+
`.charCodeAt(),r=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e}});var Sb=g((sL,Ji)=>{"use strict";var Zi=require("path"),wb=Sf(),Cb=e=>{e={cwd:process.cwd(),path:process.env[wb()],execPath:process.execPath,...e};let t,r=Zi.resolve(e.cwd),n=[];for(;t!==r;)n.push(Zi.join(r,"node_modules/.bin")),t=r,r=Zi.resolve(r,"..");let i=Zi.resolve(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(Zi.delimiter)};Ji.exports=Cb;Ji.exports.default=Cb;Ji.exports.env=e=>{e={env:process.env,...e};let t={...e.env},r=wb({env:t});return e.path=t[r],t[r]=Ji.exports(e),t}});var Fb=g(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.SIGNALS=void 0;var gT=[{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"}];Ko.SIGNALS=gT});var If=g(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.SIGRTMAX=Xn.getRealtimeSignals=void 0;var yT=function(){let e=Ob-Rb+1;return Array.from({length:e},ET)};Xn.getRealtimeSignals=yT;var ET=function(e,t){return{name:`SIGRT${t+1}`,number:Rb+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Rb=34,Ob=64;Xn.SIGRTMAX=Ob});var Tb=g(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.getSignals=void 0;var bT=require("os"),_T=Fb(),DT=If(),AT=function(){let e=(0,DT.getRealtimeSignals)();return[..._T.SIGNALS,...e].map(vT)};Xo.getSignals=AT;var vT=function({name:e,number:t,description:r,action:n,forced:i=!1,standard:s}){let{signals:{[e]:o}}=bT.constants,u=o!==void 0;return{name:e,number:u?o:t,description:r,supported:u,action:n,forced:i,standard:s}}});var Bb=g(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.signalsByNumber=Zn.signalsByName=void 0;var xT=require("os"),kb=Tb(),wT=If(),CT=function(){return(0,kb.getSignals)().reduce(ST,{})},ST=function(e,{name:t,number:r,description:n,supported:i,action:s,forced:o,standard:u}){return{...e,[t]:{name:t,number:r,description:n,supported:i,action:s,forced:o,standard:u}}},FT=CT();Zn.signalsByName=FT;var RT=function(){let e=(0,kb.getSignals)(),t=wT.SIGRTMAX+1,r=Array.from({length:t},(n,i)=>OT(i,e));return Object.assign({},...r)},OT=function(e,t){let r=TT(e,t);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:u,standard:a}=r;return{[e]:{name:n,number:e,description:i,supported:s,action:o,forced:u,standard:a}}},TT=function(e,t){let r=t.find(({name:n})=>xT.constants.signals[n]===e);return r!==void 0?r:t.find(n=>n.number===e)},kT=RT();Zn.signalsByNumber=kT});var Ib=g((lL,Pb)=>{"use strict";var{signalsByName:BT}=Bb(),PT=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>e?`timed out after ${t} 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",IT=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:u,timedOut:a,isCanceled:c,killed:l,parsed:{options:{timeout:f}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let p=i===void 0?void 0:BT[i].description,_=n&&n.code,m=`Command ${PT({timedOut:a,timeout:f,errorCode:_,signal:i,signalDescription:p,exitCode:s,isCanceled:c})}: ${o}`,D=Object.prototype.toString.call(n)==="[object Error]",A=D?`${m}
|
|
22
|
+
${n.message}`:m,R=[A,t,e].filter(Boolean).join(`
|
|
23
|
+
`);return D?(n.originalMessage=n.message,n.message=R):n=new Error(R),n.shortMessage=A,n.command=o,n.escapedCommand=u,n.exitCode=s,n.signal=i,n.signalDescription=p,n.stdout=e,n.stderr=t,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!a,n.isCanceled=c,n.killed=l&&!a,n};Pb.exports=IT});var Nb=g((fL,Lf)=>{"use strict";var Zo=["stdin","stdout","stderr"],LT=e=>Zo.some(t=>e[t]!==void 0),Lb=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return Zo.map(n=>e[n]);if(LT(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Zo.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,Zo.length);return Array.from({length:r},(n,i)=>t[i])};Lf.exports=Lb;Lf.exports.node=e=>{let t=Lb(e);return t==="ipc"?"ipc":t===void 0||typeof t=="string"?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]}});var qb=g((hL,Mb)=>{"use strict";var NT=require("os"),MT=Ql(),qT=1e3*5,jT=(e,t="SIGTERM",r={})=>{let n=e(t);return $T(e,t,r,n),n},$T=(e,t,r,n)=>{if(!HT(t,r,n))return;let i=UT(r),s=setTimeout(()=>{e("SIGKILL")},i);s.unref&&s.unref()},HT=(e,{forceKillAfterTimeout:t},r)=>GT(e)&&t!==!1&&r,GT=e=>e===NT.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",UT=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return qT;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},WT=(e,t)=>{e.kill()&&(t.isCanceled=!0)},zT=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},YT=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let i,s=new Promise((u,a)=>{i=setTimeout(()=>{zT(e,r,a)},t)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},VT=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},KT=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=MT(()=>{e.kill()});return n.finally(()=>{i()})};Mb.exports={spawnedKill:jT,spawnedCancel:WT,setupTimeout:YT,validateTimeout:VT,setExitHandler:KT}});var $b=g((pL,jb)=>{"use strict";var It=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";It.writable=e=>It(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";It.readable=e=>It(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";It.duplex=e=>It.writable(e)&&It.readable(e);It.transform=e=>It.duplex(e)&&typeof e._transform=="function";jb.exports=It});var Gb=g((dL,Hb)=>{"use strict";var{PassThrough:XT}=require("stream");Hb.exports=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new XT({objectMode:i});r&&s.setEncoding(r);let o=0,u=[];return s.on("data",a=>{u.push(a),i?o=u.length:o+=a.length}),s.getBufferedValue=()=>t?u:n?Buffer.concat(u,o):u.join(""),s.getBufferedLength=()=>o,s}});var Ub=g((mL,Qi)=>{"use strict";var{constants:ZT}=require("buffer"),JT=require("stream"),{promisify:QT}=require("util"),ek=Gb(),tk=QT(JT.pipeline),Jo=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Nf(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=ek(t);return await new Promise((i,s)=>{let o=u=>{u&&n.getBufferedLength()<=ZT.MAX_LENGTH&&(u.bufferedData=n.getBufferedValue()),s(u)};(async()=>{try{await tk(e,n),i()}catch(u){o(u)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new Jo)})}),n.getBufferedValue()}Qi.exports=Nf;Qi.exports.buffer=(e,t)=>Nf(e,{...t,encoding:"buffer"});Qi.exports.array=(e,t)=>Nf(e,{...t,array:!0});Qi.exports.MaxBufferError=Jo});var zb=g((gL,Wb)=>{"use strict";var{PassThrough:rk}=require("stream");Wb.exports=function(){var e=[],t=new rk({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),t;function r(s){return Array.isArray(s)?(s.forEach(r),this):(e.push(s),s.once("end",i.bind(null,s)),s.once("error",t.emit.bind(t,"error")),s.pipe(t,{end:!1}),this)}function n(){return e.length==0}function i(s){e=e.filter(function(o){return o!==s}),!e.length&&t.readable&&t.end()}}});var Xb=g((yL,Kb)=>{"use strict";var Vb=$b(),Yb=Ub(),nk=zb(),ik=(e,t)=>{t===void 0||e.stdin===void 0||(Vb(t)?t.pipe(e.stdin):e.stdin.end(t))},sk=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=nk();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},Mf=async(e,t)=>{if(e){e.destroy();try{return await t}catch(r){return r.bufferedData}}},qf=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(!(!e||!r))return t?Yb(e,{encoding:t,maxBuffer:n}):Yb.buffer(e,{maxBuffer:n})},ok=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let u=qf(e,{encoding:n,buffer:i,maxBuffer:s}),a=qf(t,{encoding:n,buffer:i,maxBuffer:s}),c=qf(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,u,a,c])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},Mf(e,u),Mf(t,a),Mf(r,c)])}},uk=({input:e})=>{if(Vb(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};Kb.exports={handleInput:ik,makeAllStream:sk,getSpawnedResult:ok,validateInputSync:uk}});var Jb=g((EL,Zb)=>{"use strict";var ak=(async()=>{})().constructor.prototype,ck=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(ak,e)]),lk=(e,t)=>{for(let[r,n]of ck){let i=typeof t=="function"?(...s)=>Reflect.apply(n.value,t(),s):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}return e},fk=e=>new Promise((t,r)=>{e.on("exit",(n,i)=>{t({exitCode:n,signal:i})}),e.on("error",n=>{r(n)}),e.stdin&&e.stdin.on("error",n=>{r(n)})});Zb.exports={mergePromise:lk,getSpawnedPromise:fk}});var t_=g((bL,e_)=>{"use strict";var Qb=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],hk=/^[\w.-]+$/,pk=/"/g,dk=e=>typeof e!="string"||hk.test(e)?e:`"${e.replace(pk,'\\"')}"`,mk=(e,t)=>Qb(e,t).join(" "),gk=(e,t)=>Qb(e,t).map(r=>dk(r)).join(" "),yk=/ +/g,Ek=e=>{let t=[];for(let r of e.trim().split(yk)){let n=t[t.length-1];n&&n.endsWith("\\")?t[t.length-1]=`${n.slice(0,-1)} ${r}`:t.push(r)}return t};e_.exports={joinCommand:mk,getEscapedCommand:gk,parseCommand:Ek}});var a_=g((_L,Jn)=>{"use strict";var bk=require("path"),jf=require("child_process"),_k=Ab(),Dk=xb(),Ak=Sb(),vk=Xl(),Qo=Ib(),n_=Nb(),{spawnedKill:xk,spawnedCancel:wk,setupTimeout:Ck,validateTimeout:Sk,setExitHandler:Fk}=qb(),{handleInput:Rk,getSpawnedResult:Ok,makeAllStream:Tk,validateInputSync:kk}=Xb(),{mergePromise:r_,getSpawnedPromise:Bk}=Jb(),{joinCommand:i_,parseCommand:s_,getEscapedCommand:o_}=t_(),Pk=1e3*1e3*100,Ik=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let s=t?{...process.env,...e}:e;return r?Ak.env({env:s,cwd:n,execPath:i}):s},u_=(e,t,r={})=>{let n=_k._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:Pk,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=Ik(r),r.stdio=n_(r),process.platform==="win32"&&bk.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},es=(e,t,r)=>typeof t!="string"&&!Buffer.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?Dk(t):t,eu=(e,t,r)=>{let n=u_(e,t,r),i=i_(e,t),s=o_(e,t);Sk(n.options);let o;try{o=jf.spawn(n.file,n.args,n.options)}catch(_){let E=new jf.ChildProcess,m=Promise.reject(Qo({error:_,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return r_(E,m)}let u=Bk(o),a=Ck(o,n.options,u),c=Fk(o,n.options,a),l={isCanceled:!1};o.kill=xk.bind(null,o.kill.bind(o)),o.cancel=wk.bind(null,o,l);let p=vk(async()=>{let[{error:_,exitCode:E,signal:m,timedOut:D},A,R,M]=await Ok(o,n.options,c),W=es(n.options,A),L=es(n.options,R),X=es(n.options,M);if(_||E!==0||m!==null){let G=Qo({error:_,exitCode:E,signal:m,stdout:W,stderr:L,all:X,command:i,escapedCommand:s,parsed:n,timedOut:D,isCanceled:l.isCanceled,killed:o.killed});if(!n.options.reject)return G;throw G}return{command:i,escapedCommand:s,exitCode:0,stdout:W,stderr:L,all:X,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Rk(o,n.options.input),o.all=Tk(o,n.options),r_(o,p)};Jn.exports=eu;Jn.exports.sync=(e,t,r)=>{let n=u_(e,t,r),i=i_(e,t),s=o_(e,t);kk(n.options);let o;try{o=jf.spawnSync(n.file,n.args,n.options)}catch(c){throw Qo({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let u=es(n.options,o.stdout,o.error),a=es(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Qo({stdout:u,stderr:a,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:u,stderr:a,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Jn.exports.command=(e,t)=>{let[r,...n]=s_(e);return eu(r,n,t)};Jn.exports.commandSync=(e,t)=>{let[r,...n]=s_(e);return eu.sync(r,n,t)};Jn.exports.node=(e,t,r={})=>{t&&!Array.isArray(t)&&typeof t=="object"&&(r=t,t=[]);let n=n_.node(r),i=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return eu(s,[...o,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var Qn=g((wL,f_)=>{"use strict";var l_=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"]]);f_.exports=e=>e?Object.keys(e).map(t=>[l_.has(t)?l_.get(t):t,e[t]]).reduce((t,r)=>(t[r[0]]=r[1],t),Object.create(null)):{}});var uu=g((CL,__)=>{"use strict";var h_=typeof process=="object"&&process?process:{stdout:null,stderr:null},qk=require("events"),p_=require("stream"),d_=require("string_decoder").StringDecoder,er=Symbol("EOF"),tr=Symbol("maybeEmitEnd"),Sr=Symbol("emittedEnd"),ru=Symbol("emittingEnd"),rs=Symbol("emittedError"),nu=Symbol("closed"),m_=Symbol("read"),iu=Symbol("flush"),g_=Symbol("flushChunk"),tt=Symbol("encoding"),rr=Symbol("decoder"),su=Symbol("flowing"),ns=Symbol("paused"),ei=Symbol("resume"),De=Symbol("buffer"),Lt=Symbol("pipes"),ke=Symbol("bufferLength"),Uf=Symbol("bufferPush"),Wf=Symbol("bufferShift"),$e=Symbol("objectMode"),He=Symbol("destroyed"),zf=Symbol("emitData"),y_=Symbol("emitEnd"),Yf=Symbol("emitEnd2"),nr=Symbol("async"),is=e=>Promise.resolve().then(e),E_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",jk=E_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),$k=E_&&Symbol.iterator||Symbol("iterator not implemented"),Hk=e=>e==="end"||e==="finish"||e==="prefinish",Gk=e=>e instanceof ArrayBuffer||typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,Uk=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),ou=class{constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[ei](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Vf=class extends ou{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}};__.exports=class b_ extends p_{constructor(t){super(),this[su]=!1,this[ns]=!1,this[Lt]=[],this[De]=[],this[$e]=t&&t.objectMode||!1,this[$e]?this[tt]=null:this[tt]=t&&t.encoding||null,this[tt]==="buffer"&&(this[tt]=null),this[nr]=t&&!!t.async||!1,this[rr]=this[tt]?new d_(this[tt]):null,this[er]=!1,this[Sr]=!1,this[ru]=!1,this[nu]=!1,this[rs]=null,this.writable=!0,this.readable=!0,this[ke]=0,this[He]=!1,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[De]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Lt]})}get bufferLength(){return this[ke]}get encoding(){return this[tt]}set encoding(t){if(this[$e])throw new Error("cannot set encoding in objectMode");if(this[tt]&&t!==this[tt]&&(this[rr]&&this[rr].lastNeed||this[ke]))throw new Error("cannot change encoding");this[tt]!==t&&(this[rr]=t?new d_(t):null,this[De].length&&(this[De]=this[De].map(r=>this[rr].write(r)))),this[tt]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[$e]}set objectMode(t){this[$e]=this[$e]||!!t}get async(){return this[nr]}set async(t){this[nr]=this[nr]||!!t}write(t,r,n){if(this[er])throw new Error("write after end");if(this[He])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[nr]?is:s=>s();return!this[$e]&&!Buffer.isBuffer(t)&&(Uk(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):Gk(t)?t=Buffer.from(t):typeof t!="string"&&(this.objectMode=!0)),this[$e]?(this.flowing&&this[ke]!==0&&this[iu](!0),this.flowing?this.emit("data",t):this[Uf](t),this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing):t.length?(typeof t=="string"&&!(r===this[tt]&&!this[rr].lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[tt]&&(t=this[rr].write(t)),this.flowing&&this[ke]!==0&&this[iu](!0),this.flowing?this.emit("data",t):this[Uf](t),this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(t){if(this[He])return null;if(this[ke]===0||t===0||t>this[ke])return this[tr](),null;this[$e]&&(t=null),this[De].length>1&&!this[$e]&&(this.encoding?this[De]=[this[De].join("")]:this[De]=[Buffer.concat(this[De],this[ke])]);let r=this[m_](t||null,this[De][0]);return this[tr](),r}[m_](t,r){return t===r.length||t===null?this[Wf]():(this[De][0]=r.slice(t),r=r.slice(0,t),this[ke]-=t),this.emit("data",r),!this[De].length&&!this[er]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=null),typeof r=="function"&&(n=r,r="utf8"),t&&this.write(t,r),n&&this.once("end",n),this[er]=!0,this.writable=!1,(this.flowing||!this[ns])&&this[tr](),this}[ei](){this[He]||(this[ns]=!1,this[su]=!0,this.emit("resume"),this[De].length?this[iu]():this[er]?this[tr]():this.emit("drain"))}resume(){return this[ei]()}pause(){this[su]=!1,this[ns]=!0}get destroyed(){return this[He]}get flowing(){return this[su]}get paused(){return this[ns]}[Uf](t){this[$e]?this[ke]+=1:this[ke]+=t.length,this[De].push(t)}[Wf](){return this[De].length&&(this[$e]?this[ke]-=1:this[ke]-=this[De][0].length),this[De].shift()}[iu](t){do;while(this[g_](this[Wf]()));!t&&!this[De].length&&!this[er]&&this.emit("drain")}[g_](t){return t?(this.emit("data",t),this.flowing):!1}pipe(t,r){if(this[He])return;let n=this[Sr];return r=r||{},t===h_.stdout||t===h_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this[Lt].push(r.proxyErrors?new Vf(this,t,r):new ou(this,t,r)),this[nr]?is(()=>this[ei]()):this[ei]()),t}unpipe(t){let r=this[Lt].find(n=>n.dest===t);r&&(this[Lt].splice(this[Lt].indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);return t==="data"&&!this[Lt].length&&!this.flowing?this[ei]():t==="readable"&&this[ke]!==0?super.emit("readable"):Hk(t)&&this[Sr]?(super.emit(t),this.removeAllListeners(t)):t==="error"&&this[rs]&&(this[nr]?is(()=>r.call(this,this[rs])):r.call(this,this[rs])),n}get emittedEnd(){return this[Sr]}[tr](){!this[ru]&&!this[Sr]&&!this[He]&&this[De].length===0&&this[er]&&(this[ru]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[nu]&&this.emit("close"),this[ru]=!1)}emit(t,r,...n){if(t!=="error"&&t!=="close"&&t!==He&&this[He])return;if(t==="data")return r?this[nr]?is(()=>this[zf](r)):this[zf](r):!1;if(t==="end")return this[y_]();if(t==="close"){if(this[nu]=!0,!this[Sr]&&!this[He])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[rs]=r;let s=super.emit("error",r);return this[tr](),s}else if(t==="resume"){let s=super.emit("resume");return this[tr](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,r,...n);return this[tr](),i}[zf](t){for(let n of this[Lt])n.dest.write(t)===!1&&this.pause();let r=super.emit("data",t);return this[tr](),r}[y_](){this[Sr]||(this[Sr]=!0,this.readable=!1,this[nr]?is(()=>this[Yf]()):this[Yf]())}[Yf](){if(this[rr]){let r=this[rr].end();if(r){for(let n of this[Lt])n.dest.write(r);super.emit("data",r)}}for(let r of this[Lt])r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}collect(){let t=[];this[$e]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[$e]||(t.dataLength+=n.length)}),r.then(()=>t)}concat(){return this[$e]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[$e]?Promise.reject(new Error("cannot concat in objectMode")):this[tt]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,r)=>{this.on(He,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[jk](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[er])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",u),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),n({value:c,done:!!this[er]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(He,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[$k](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(t){return this[He]?(t?this.emit("error",t):this.emit(He),this):(this[He]=!0,this[De].length=0,this[ke]=0,typeof this.close=="function"&&!this[nu]&&this.close(),t?this.emit("error",t):this.emit(He),this)}static isStream(t){return!!t&&(t instanceof b_||t instanceof p_||t instanceof qk&&(typeof t.pipe=="function"||typeof t.write=="function"&&typeof t.end=="function"))}}});var A_=g((SL,D_)=>{var Wk=require("zlib").constants||{ZLIB_VERNUM:4736};D_.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},Wk))});var eh=g((FL,T_)=>{"use strict";var v_=typeof process=="object"&&process?process:{stdout:null,stderr:null},zk=require("events"),x_=require("stream"),w_=require("string_decoder").StringDecoder,ir=Symbol("EOF"),sr=Symbol("maybeEmitEnd"),Fr=Symbol("emittedEnd"),au=Symbol("emittingEnd"),ss=Symbol("emittedError"),cu=Symbol("closed"),C_=Symbol("read"),lu=Symbol("flush"),S_=Symbol("flushChunk"),rt=Symbol("encoding"),or=Symbol("decoder"),fu=Symbol("flowing"),os=Symbol("paused"),ti=Symbol("resume"),Be=Symbol("bufferLength"),Kf=Symbol("bufferPush"),Xf=Symbol("bufferShift"),Ge=Symbol("objectMode"),Ue=Symbol("destroyed"),Zf=Symbol("emitData"),F_=Symbol("emitEnd"),Jf=Symbol("emitEnd2"),ur=Symbol("async"),us=e=>Promise.resolve().then(e),R_=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Yk=R_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Vk=R_&&Symbol.iterator||Symbol("iterator not implemented"),Kk=e=>e==="end"||e==="finish"||e==="prefinish",Xk=e=>e instanceof ArrayBuffer||typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,Zk=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),hu=class{constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[ti](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Qf=class extends hu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}};T_.exports=class O_ extends x_{constructor(t){super(),this[fu]=!1,this[os]=!1,this.pipes=[],this.buffer=[],this[Ge]=t&&t.objectMode||!1,this[Ge]?this[rt]=null:this[rt]=t&&t.encoding||null,this[rt]==="buffer"&&(this[rt]=null),this[ur]=t&&!!t.async||!1,this[or]=this[rt]?new w_(this[rt]):null,this[ir]=!1,this[Fr]=!1,this[au]=!1,this[cu]=!1,this[ss]=null,this.writable=!0,this.readable=!0,this[Be]=0,this[Ue]=!1}get bufferLength(){return this[Be]}get encoding(){return this[rt]}set encoding(t){if(this[Ge])throw new Error("cannot set encoding in objectMode");if(this[rt]&&t!==this[rt]&&(this[or]&&this[or].lastNeed||this[Be]))throw new Error("cannot change encoding");this[rt]!==t&&(this[or]=t?new w_(t):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[or].write(r)))),this[rt]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[Ge]}set objectMode(t){this[Ge]=this[Ge]||!!t}get async(){return this[ur]}set async(t){this[ur]=this[ur]||!!t}write(t,r,n){if(this[ir])throw new Error("write after end");if(this[Ue])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]?us:s=>s();return!this[Ge]&&!Buffer.isBuffer(t)&&(Zk(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):Xk(t)?t=Buffer.from(t):typeof t!="string"&&(this.objectMode=!0)),this[Ge]?(this.flowing&&this[Be]!==0&&this[lu](!0),this.flowing?this.emit("data",t):this[Kf](t),this[Be]!==0&&this.emit("readable"),n&&i(n),this.flowing):t.length?(typeof t=="string"&&!(r===this[rt]&&!this[or].lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[rt]&&(t=this[or].write(t)),this.flowing&&this[Be]!==0&&this[lu](!0),this.flowing?this.emit("data",t):this[Kf](t),this[Be]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Be]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(t){if(this[Ue])return null;if(this[Be]===0||t===0||t>this[Be])return this[sr](),null;this[Ge]&&(t=null),this.buffer.length>1&&!this[Ge]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Be])]);let r=this[C_](t||null,this.buffer[0]);return this[sr](),r}[C_](t,r){return t===r.length||t===null?this[Xf]():(this.buffer[0]=r.slice(t),r=r.slice(0,t),this[Be]-=t),this.emit("data",r),!this.buffer.length&&!this[ir]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=null),typeof r=="function"&&(n=r,r="utf8"),t&&this.write(t,r),n&&this.once("end",n),this[ir]=!0,this.writable=!1,(this.flowing||!this[os])&&this[sr](),this}[ti](){this[Ue]||(this[os]=!1,this[fu]=!0,this.emit("resume"),this.buffer.length?this[lu]():this[ir]?this[sr]():this.emit("drain"))}resume(){return this[ti]()}pause(){this[fu]=!1,this[os]=!0}get destroyed(){return this[Ue]}get flowing(){return this[fu]}get paused(){return this[os]}[Kf](t){this[Ge]?this[Be]+=1:this[Be]+=t.length,this.buffer.push(t)}[Xf](){return this.buffer.length&&(this[Ge]?this[Be]-=1:this[Be]-=this.buffer[0].length),this.buffer.shift()}[lu](t){do;while(this[S_](this[Xf]()));!t&&!this.buffer.length&&!this[ir]&&this.emit("drain")}[S_](t){return t?(this.emit("data",t),this.flowing):!1}pipe(t,r){if(this[Ue])return;let n=this[Fr];return r=r||{},t===v_.stdout||t===v_.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this.pipes.push(r.proxyErrors?new Qf(this,t,r):new hu(this,t,r)),this[ur]?us(()=>this[ti]()):this[ti]()),t}unpipe(t){let r=this.pipes.find(n=>n.dest===t);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);return t==="data"&&!this.pipes.length&&!this.flowing?this[ti]():t==="readable"&&this[Be]!==0?super.emit("readable"):Kk(t)&&this[Fr]?(super.emit(t),this.removeAllListeners(t)):t==="error"&&this[ss]&&(this[ur]?us(()=>r.call(this,this[ss])):r.call(this,this[ss])),n}get emittedEnd(){return this[Fr]}[sr](){!this[au]&&!this[Fr]&&!this[Ue]&&this.buffer.length===0&&this[ir]&&(this[au]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[cu]&&this.emit("close"),this[au]=!1)}emit(t,r,...n){if(t!=="error"&&t!=="close"&&t!==Ue&&this[Ue])return;if(t==="data")return r?this[ur]?us(()=>this[Zf](r)):this[Zf](r):!1;if(t==="end")return this[F_]();if(t==="close"){if(this[cu]=!0,!this[Fr]&&!this[Ue])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[ss]=r;let s=super.emit("error",r);return this[sr](),s}else if(t==="resume"){let s=super.emit("resume");return this[sr](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,r,...n);return this[sr](),i}[Zf](t){for(let n of this.pipes)n.dest.write(t)===!1&&this.pause();let r=super.emit("data",t);return this[sr](),r}[F_](){this[Fr]||(this[Fr]=!0,this.readable=!1,this[ur]?us(()=>this[Jf]()):this[Jf]())}[Jf](){if(this[or]){let r=this[or].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 t=super.emit("end");return this.removeAllListeners("end"),t}collect(){let t=[];this[Ge]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[Ge]||(t.dataLength+=n.length)}),r.then(()=>t)}concat(){return this[Ge]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[Ge]?Promise.reject(new Error("cannot concat in objectMode")):this[rt]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,r)=>{this.on(Ue,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[Yk](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[ir])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",u),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),n({value:c,done:!!this[ir]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(Ue,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[Vk](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(t){return this[Ue]?(t?this.emit("error",t):this.emit(Ue),this):(this[Ue]=!0,this.buffer.length=0,this[Be]=0,typeof this.close=="function"&&!this[cu]&&this.close(),t?this.emit("error",t):this.emit(Ue),this)}static isStream(t){return!!t&&(t instanceof O_||t instanceof x_||t instanceof zk&&(typeof t.pipe=="function"||typeof t.write=="function"&&typeof t.end=="function"))}}});var gh=g(at=>{"use strict";var sh=require("assert"),Rr=require("buffer").Buffer,P_=require("zlib"),en=at.constants=A_(),Jk=eh(),k_=Rr.concat,tn=Symbol("_superWrite"),ni=class extends Error{constructor(t){super("zlib: "+t.message),this.code=t.code,this.errno=t.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+t.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},Qk=Symbol("opts"),as=Symbol("flushFlag"),B_=Symbol("finishFlushFlag"),mh=Symbol("fullFlushFlag"),ce=Symbol("handle"),pu=Symbol("onError"),ri=Symbol("sawError"),th=Symbol("level"),rh=Symbol("strategy"),nh=Symbol("ended"),RL=Symbol("_defaultFullFlush"),du=class extends Jk{constructor(t,r){if(!t||typeof t!="object")throw new TypeError("invalid options for ZlibBase constructor");super(t),this[ri]=!1,this[nh]=!1,this[Qk]=t,this[as]=t.flush,this[B_]=t.finishFlush;try{this[ce]=new P_[r](t)}catch(n){throw new ni(n)}this[pu]=n=>{this[ri]||(this[ri]=!0,this.close(),this.emit("error",n))},this[ce].on("error",n=>this[pu](new ni(n))),this.once("end",()=>this.close)}close(){this[ce]&&(this[ce].close(),this[ce]=null,this.emit("close"))}reset(){if(!this[ri])return sh(this[ce],"zlib binding closed"),this[ce].reset()}flush(t){this.ended||(typeof t!="number"&&(t=this[mh]),this.write(Object.assign(Rr.alloc(0),{[as]:t})))}end(t,r,n){return t&&this.write(t,r),this.flush(this[B_]),this[nh]=!0,super.end(null,null,n)}get ended(){return this[nh]}write(t,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof t=="string"&&(t=Rr.from(t,r)),this[ri])return;sh(this[ce],"zlib binding closed");let i=this[ce]._handle,s=i.close;i.close=()=>{};let o=this[ce].close;this[ce].close=()=>{},Rr.concat=c=>c;let u;try{let c=typeof t[as]=="number"?t[as]:this[as];u=this[ce]._processChunk(t,c),Rr.concat=k_}catch(c){Rr.concat=k_,this[pu](new ni(c))}finally{this[ce]&&(this[ce]._handle=i,i.close=s,this[ce].close=o,this[ce].removeAllListeners("error"))}this[ce]&&this[ce].on("error",c=>this[pu](new ni(c)));let a;if(u)if(Array.isArray(u)&&u.length>0){a=this[tn](Rr.from(u[0]));for(let c=1;c<u.length;c++)a=this[tn](u[c])}else a=this[tn](Rr.from(u));return n&&n(),a}[tn](t){return super.write(t)}},ar=class extends du{constructor(t,r){t=t||{},t.flush=t.flush||en.Z_NO_FLUSH,t.finishFlush=t.finishFlush||en.Z_FINISH,super(t,r),this[mh]=en.Z_FULL_FLUSH,this[th]=t.level,this[rh]=t.strategy}params(t,r){if(!this[ri]){if(!this[ce])throw new Error("cannot switch params when binding is closed");if(!this[ce].params)throw new Error("not supported in this implementation");if(this[th]!==t||this[rh]!==r){this.flush(en.Z_SYNC_FLUSH),sh(this[ce],"zlib binding closed");let n=this[ce].flush;this[ce].flush=(i,s)=>{this.flush(i),s()};try{this[ce].params(t,r)}finally{this[ce].flush=n}this[ce]&&(this[th]=t,this[rh]=r)}}}},oh=class extends ar{constructor(t){super(t,"Deflate")}},uh=class extends ar{constructor(t){super(t,"Inflate")}},ih=Symbol("_portable"),ah=class extends ar{constructor(t){super(t,"Gzip"),this[ih]=t&&!!t.portable}[tn](t){return this[ih]?(this[ih]=!1,t[9]=255,super[tn](t)):super[tn](t)}},ch=class extends ar{constructor(t){super(t,"Gunzip")}},lh=class extends ar{constructor(t){super(t,"DeflateRaw")}},fh=class extends ar{constructor(t){super(t,"InflateRaw")}},hh=class extends ar{constructor(t){super(t,"Unzip")}},mu=class extends du{constructor(t,r){t=t||{},t.flush=t.flush||en.BROTLI_OPERATION_PROCESS,t.finishFlush=t.finishFlush||en.BROTLI_OPERATION_FINISH,super(t,r),this[mh]=en.BROTLI_OPERATION_FLUSH}},ph=class extends mu{constructor(t){super(t,"BrotliCompress")}},dh=class extends mu{constructor(t){super(t,"BrotliDecompress")}};at.Deflate=oh;at.Inflate=uh;at.Gzip=ah;at.Gunzip=ch;at.DeflateRaw=lh;at.InflateRaw=fh;at.Unzip=hh;typeof P_.BrotliCompress=="function"?(at.BrotliCompress=ph,at.BrotliDecompress=dh):at.BrotliCompress=at.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var ii=g((kL,I_)=>{var e3=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;I_.exports=e3!=="win32"?e=>e:e=>e&&e.replace(/\\/g,"/")});var gu=g((PL,L_)=>{"use strict";var t3=uu(),yh=ii(),Eh=Symbol("slurp");L_.exports=class extends t3{constructor(t,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=t,this.startBlockSize=512*Math.ceil(t.size/512),this.blockRemain=this.startBlockSize,this.remain=t.size,this.type=t.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=yh(t.path),this.mode=t.mode,this.mode&&(this.mode=this.mode&4095),this.uid=t.uid,this.gid=t.gid,this.uname=t.uname,this.gname=t.gname,this.size=t.size,this.mtime=t.mtime,this.atime=t.atime,this.ctime=t.ctime,this.linkpath=yh(t.linkpath),this.uname=t.uname,this.gname=t.gname,r&&this[Eh](r),n&&this[Eh](n,!0)}write(t){let r=t.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(t):super.write(t.slice(0,n))}[Eh](t,r){for(let n in t)t[n]!==null&&t[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?yh(t[n]):t[n])}}});var bh=g(yu=>{"use strict";yu.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"]]);yu.code=new Map(Array.from(yu.name).map(e=>[e[1],e[0]]))});var j_=g((LL,q_)=>{"use strict";var r3=(e,t)=>{if(Number.isSafeInteger(e))e<0?i3(e,t):n3(e,t);else throw Error("cannot encode number outside of javascript safe integer range");return t},n3=(e,t)=>{t[0]=128;for(var r=t.length;r>1;r--)t[r-1]=e&255,e=Math.floor(e/256)},i3=(e,t)=>{t[0]=255;var r=!1;e=e*-1;for(var n=t.length;n>1;n--){var i=e&255;e=Math.floor(e/256),r?t[n-1]=N_(i):i===0?t[n-1]=0:(r=!0,t[n-1]=M_(i))}},s3=e=>{let t=e[0],r=t===128?u3(e.slice(1,e.length)):t===255?o3(e):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},o3=e=>{for(var t=e.length,r=0,n=!1,i=t-1;i>-1;i--){var s=e[i],o;n?o=N_(s):s===0?o=s:(n=!0,o=M_(s)),o!==0&&(r-=o*Math.pow(256,t-i-1))}return r},u3=e=>{for(var t=e.length,r=0,n=t-1;n>-1;n--){var i=e[n];i!==0&&(r+=i*Math.pow(256,t-n-1))}return r},N_=e=>(255^e)&255,M_=e=>(255^e)+1&255;q_.exports={encode:r3,parse:s3}});var oi=g((NL,H_)=>{"use strict";var _h=bh(),si=require("path").posix,$_=j_(),Dh=Symbol("slurp"),ct=Symbol("type"),xh=class{constructor(t,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[ct]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(t)?this.decode(t,r||0,n,i):t&&this.set(t)}decode(t,r,n,i){if(r||(r=0),!t||!(t.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=rn(t,r,100),this.mode=Or(t,r+100,8),this.uid=Or(t,r+108,8),this.gid=Or(t,r+116,8),this.size=Or(t,r+124,12),this.mtime=Ah(t,r+136,12),this.cksum=Or(t,r+148,12),this[Dh](n),this[Dh](i,!0),this[ct]=rn(t,r+156,1),this[ct]===""&&(this[ct]="0"),this[ct]==="0"&&this.path.slice(-1)==="/"&&(this[ct]="5"),this[ct]==="5"&&(this.size=0),this.linkpath=rn(t,r+157,100),t.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=rn(t,r+265,32),this.gname=rn(t,r+297,32),this.devmaj=Or(t,r+329,8),this.devmin=Or(t,r+337,8),t[r+475]!==0){let o=rn(t,r+345,155);this.path=o+"/"+this.path}else{let o=rn(t,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Ah(t,r+476,12),this.ctime=Ah(t,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=t[o];for(let o=r+156;o<r+512;o++)s+=t[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[Dh](t,r){for(let n in t)t[n]!==null&&t[n]!==void 0&&!(r&&n==="path")&&(this[n]=t[n])}encode(t,r){if(t||(t=this.block=Buffer.alloc(512),r=0),r||(r=0),!(t.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=a3(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=nn(t,r,100,s)||this.needPax,this.needPax=Tr(t,r+100,8,this.mode)||this.needPax,this.needPax=Tr(t,r+108,8,this.uid)||this.needPax,this.needPax=Tr(t,r+116,8,this.gid)||this.needPax,this.needPax=Tr(t,r+124,12,this.size)||this.needPax,this.needPax=vh(t,r+136,12,this.mtime)||this.needPax,t[r+156]=this[ct].charCodeAt(0),this.needPax=nn(t,r+157,100,this.linkpath)||this.needPax,t.write("ustar\x0000",r+257,8),this.needPax=nn(t,r+265,32,this.uname)||this.needPax,this.needPax=nn(t,r+297,32,this.gname)||this.needPax,this.needPax=Tr(t,r+329,8,this.devmaj)||this.needPax,this.needPax=Tr(t,r+337,8,this.devmin)||this.needPax,this.needPax=nn(t,r+345,n,o)||this.needPax,t[r+475]!==0?this.needPax=nn(t,r+345,155,o)||this.needPax:(this.needPax=nn(t,r+345,130,o)||this.needPax,this.needPax=vh(t,r+476,12,this.atime)||this.needPax,this.needPax=vh(t,r+488,12,this.ctime)||this.needPax);let u=8*32;for(let a=r;a<r+148;a++)u+=t[a];for(let a=r+156;a<r+512;a++)u+=t[a];return this.cksum=u,Tr(t,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(t){for(let r in t)t[r]!==null&&t[r]!==void 0&&(this[r]=t[r])}get type(){return _h.name.get(this[ct])||this[ct]}get typeKey(){return this[ct]}set type(t){_h.code.has(t)?this[ct]=_h.code.get(t):this[ct]=t}},a3=(e,t)=>{let n=e,i="",s,o=si.parse(e).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=si.dirname(n),n=si.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=t?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=t?s=[n.slice(0,100-1),i,!0]:(n=si.join(si.basename(i),n),i=si.dirname(i));while(i!==o&&!s);s||(s=[e.slice(0,100-1),"",!0])}return s},rn=(e,t,r)=>e.slice(t,t+r).toString("utf8").replace(/\0.*/,""),Ah=(e,t,r)=>c3(Or(e,t,r)),c3=e=>e===null?null:new Date(e*1e3),Or=(e,t,r)=>e[t]&128?$_.parse(e.slice(t,t+r)):f3(e,t,r),l3=e=>isNaN(e)?null:e,f3=(e,t,r)=>l3(parseInt(e.slice(t,t+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),h3={12:8589934591,8:2097151},Tr=(e,t,r,n)=>n===null?!1:n>h3[r]||n<0?($_.encode(n,e.slice(t,t+r)),!0):(p3(e,t,r,n),!1),p3=(e,t,r,n)=>e.write(d3(n,r),t,r,"ascii"),d3=(e,t)=>m3(Math.floor(e).toString(8),t),m3=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0",vh=(e,t,r,n)=>n===null?!1:Tr(e,t,r,n.getTime()/1e3),g3=new Array(156).join("\0"),nn=(e,t,r,n)=>n===null?!1:(e.write(n+g3,t,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);H_.exports=xh});var Eu=g((ML,G_)=>{"use strict";var y3=oi(),E3=require("path"),cs=class{constructor(t,r){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=r||!1}encode(){let t=this.encodeBody();if(t==="")return null;let r=Buffer.byteLength(t),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new y3({path:("PaxHeader/"+E3.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(t,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(t){if(this[t]===null||this[t]===void 0)return"";let r=this[t]instanceof Date?this[t].getTime()/1e3:this[t],n=" "+(t==="dev"||t==="ino"||t==="nlink"?"SCHILY.":"")+t+"="+r+`
|
|
24
|
+
`,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}};cs.parse=(e,t,r)=>new cs(b3(_3(e),t),r);var b3=(e,t)=>t?Object.keys(e).reduce((r,n)=>(r[n]=e[n],r),t):e,_3=e=>e.replace(/\n$/,"").split(`
|
|
25
|
+
`).reduce(D3,Object.create(null)),D3=(e,t)=>{let r=parseInt(t,10);if(r!==Buffer.byteLength(t)+1)return e;t=t.slice((r+" ").length);let n=t.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return e;let s=n.join("=");return e[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,e};G_.exports=cs});var ui=g((qL,U_)=>{U_.exports=e=>{let t=e.length-1,r=-1;for(;t>-1&&e.charAt(t)==="/";)r=t,t--;return r===-1?e:e.slice(0,r)}});var bu=g((jL,W_)=>{"use strict";W_.exports=e=>class extends e{warn(t,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||t,n.tarCode=t,!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(`${t}: ${r}`),n))}}});var Ch=g((HL,z_)=>{"use strict";var _u=["|","<",">","?",":"],wh=_u.map(e=>String.fromCharCode(61440+e.charCodeAt(0))),A3=new Map(_u.map((e,t)=>[e,wh[t]])),v3=new Map(wh.map((e,t)=>[e,_u[t]]));z_.exports={encode:e=>_u.reduce((t,r)=>t.split(r).join(A3.get(r)),e),decode:e=>wh.reduce((t,r)=>t.split(r).join(v3.get(r)),e)}});var Sh=g((GL,V_)=>{var{isAbsolute:x3,parse:Y_}=require("path").win32;V_.exports=e=>{let t="",r=Y_(e);for(;x3(e)||r.root;){let n=e.charAt(0)==="/"&&e.slice(0,4)!=="//?/"?"/":r.root;e=e.slice(n.length),t+=n,r=Y_(e)}return[t,e]}});var X_=g((UL,K_)=>{"use strict";K_.exports=(e,t,r)=>(e&=4095,r&&(e=(e|384)&-19),t&&(e&256&&(e|=64),e&32&&(e|=8),e&4&&(e|=1)),e)});var Nh=g((YL,lD)=>{"use strict";var nD=uu(),iD=Eu(),sD=oi(),Mt=require("fs"),Z_=require("path"),Nt=ii(),w3=ui(),oD=(e,t)=>t?(e=Nt(e).replace(/^\.(\/|$)/,""),w3(t)+"/"+e):Nt(e),C3=16*1024*1024,J_=Symbol("process"),Q_=Symbol("file"),eD=Symbol("directory"),Rh=Symbol("symlink"),tD=Symbol("hardlink"),ls=Symbol("header"),Du=Symbol("read"),Oh=Symbol("lstat"),Au=Symbol("onlstat"),Th=Symbol("onread"),kh=Symbol("onreadlink"),Bh=Symbol("openfile"),Ph=Symbol("onopenfile"),kr=Symbol("close"),vu=Symbol("mode"),Ih=Symbol("awaitDrain"),Fh=Symbol("ondrain"),qt=Symbol("prefix"),rD=Symbol("hadError"),uD=bu(),S3=Ch(),aD=Sh(),cD=X_(),xu=uD(class extends nD{constructor(t,r){if(r=r||{},super(r),typeof t!="string")throw new TypeError("path is required");this.path=Nt(t),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||C3,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Nt(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?Nt(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]=aD(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=S3.decode(this.path.replace(/\\/g,"/")),t=t.replace(/\\/g,"/")),this.absolute=Nt(r.absolute||Z_.resolve(this.cwd,t)),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[Au](this.statCache.get(this.absolute)):this[Oh]()}emit(t,...r){return t==="error"&&(this[rD]=!0),super.emit(t,...r)}[Oh](){Mt.lstat(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[Au](r)})}[Au](t){this.statCache.set(this.absolute,t),this.stat=t,t.isFile()||(t.size=0),this.type=R3(t),this.emit("stat",t),this[J_]()}[J_](){switch(this.type){case"File":return this[Q_]();case"Directory":return this[eD]();case"SymbolicLink":return this[Rh]();default:return this.end()}}[vu](t){return cD(t,this.type==="Directory",this.portable)}[qt](t){return oD(t,this.prefix)}[ls](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new sD({path:this[qt](this.path),linkpath:this.type==="Link"?this[qt](this.linkpath):this.linkpath,mode:this[vu](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 iD({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[qt](this.path),linkpath:this.type==="Link"?this[qt](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)}[eD](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[ls](),this.end()}[Rh](){Mt.readlink(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[kh](r)})}[kh](t){this.linkpath=Nt(t),this[ls](),this.end()}[tD](t){this.type="Link",this.linkpath=Nt(Z_.relative(this.cwd,t)),this.stat.size=0,this[ls](),this.end()}[Q_](){if(this.stat.nlink>1){let t=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(t)){let r=this.linkCache.get(t);if(r.indexOf(this.cwd)===0)return this[tD](r)}this.linkCache.set(t,this.absolute)}if(this[ls](),this.stat.size===0)return this.end();this[Bh]()}[Bh](){Mt.open(this.absolute,"r",(t,r)=>{if(t)return this.emit("error",t);this[Ph](r)})}[Ph](t){if(this.fd=t,this[rD])return this[kr]();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[Du]()}[Du](){let{fd:t,buf:r,offset:n,length:i,pos:s}=this;Mt.read(t,r,n,i,s,(o,u)=>{if(o)return this[kr](()=>this.emit("error",o));this[Th](u)})}[kr](t){Mt.close(this.fd,t)}[Th](t){if(t<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[kr](()=>this.emit("error",i))}if(t>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[kr](()=>this.emit("error",i))}if(t===this.remain)for(let i=t;i<this.length&&t<this.blockRemain;i++)this.buf[i+this.offset]=0,t++,this.remain++;let r=this.offset===0&&t===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+t);this.write(r)?this[Fh]():this[Ih](()=>this[Fh]())}[Ih](t){this.once("drain",t)}write(t){if(this.blockRemain<t.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=t.length,this.blockRemain-=t.length,this.pos+=t.length,this.offset+=t.length,super.write(t)}[Fh](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[kr](t=>t?this.emit("error",t):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[Du]()}}),Lh=class extends xu{[Oh](){this[Au](Mt.lstatSync(this.absolute))}[Rh](){this[kh](Mt.readlinkSync(this.absolute))}[Bh](){this[Ph](Mt.openSync(this.absolute,"r"))}[Du](){let t=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,u=Mt.readSync(r,n,i,s,o);this[Th](u),t=!1}finally{if(t)try{this[kr](()=>{})}catch{}}}[Ih](t){t()}[kr](t){Mt.closeSync(this.fd),t()}},F3=uD(class extends nD{constructor(t,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=t,this.type=t.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Nt(t.path),this.mode=this[vu](t.mode),this.uid=this.portable?null:t.uid,this.gid=this.portable?null:t.gid,this.uname=this.portable?null:t.uname,this.gname=this.portable?null:t.gname,this.size=t.size,this.mtime=this.noMtime?null:r.mtime||t.mtime,this.atime=this.portable?null:t.atime,this.ctime=this.portable?null:t.ctime,this.linkpath=Nt(t.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=aD(this.path);i&&(this.path=s,n=i)}this.remain=t.size,this.blockRemain=t.startBlockSize,this.header=new sD({path:this[qt](this.path),linkpath:this.type==="Link"?this[qt](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 iD({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[qt](this.path),linkpath:this.type==="Link"?this[qt](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),t.pipe(this)}[qt](t){return oD(t,this.prefix)}[vu](t){return cD(t,this.type==="Directory",this.portable)}write(t){let r=t.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(t)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});xu.Sync=Lh;xu.Tar=F3;var R3=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";lD.exports=xu});var hD=g((VL,fD)=>{"use strict";fD.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var Mh=g((KL,pD)=>{"use strict";pD.exports=ee;ee.Node=sn;ee.create=ee;function ee(e){var t=this;if(t instanceof ee||(t=new ee),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}ee.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};ee.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};ee.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};ee.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)T3(this,arguments[e]);return this.length};ee.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)k3(this,arguments[e]);return this.length};ee.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};ee.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};ee.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};ee.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};ee.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};ee.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};ee.prototype.map=function(e,t){t=t||this;for(var r=new ee,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};ee.prototype.mapReverse=function(e,t){t=t||this;for(var r=new ee,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};ee.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;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=e(r,n.value,i),n=n.next;return r};ee.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;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=e(r,n.value,i),n=n.prev;return r};ee.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};ee.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};ee.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new ee;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};ee.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new ee;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};ee.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;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=O3(this,i,r[n]);return s};ee.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function O3(e,t,r){var n=t===e.head?new sn(r,null,t,e):new sn(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function T3(e,t){e.tail=new sn(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function k3(e,t){e.head=new sn(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function sn(e,t,r,n){if(!(this instanceof sn))return new sn(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{hD()(ee)}catch{}});var Bu=g((ZL,_D)=>{"use strict";var Tu=class{constructor(t,r){this.path=t||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},B3=uu(),P3=gh(),I3=gu(),Yh=Nh(),L3=Yh.Sync,N3=Yh.Tar,M3=Mh(),dD=Buffer.alloc(1024),Su=Symbol("onStat"),wu=Symbol("ended"),jt=Symbol("queue"),ai=Symbol("current"),on=Symbol("process"),Cu=Symbol("processing"),mD=Symbol("processJob"),$t=Symbol("jobs"),qh=Symbol("jobDone"),Fu=Symbol("addFSEntry"),gD=Symbol("addTarEntry"),Gh=Symbol("stat"),Uh=Symbol("readdir"),Ru=Symbol("onreaddir"),Ou=Symbol("pipe"),yD=Symbol("entry"),jh=Symbol("entryOpt"),Wh=Symbol("writeEntryClass"),bD=Symbol("write"),$h=Symbol("ondrain"),ku=require("fs"),ED=require("path"),q3=bu(),Hh=ii(),Vh=q3(class extends B3{constructor(t){super(t),t=t||Object.create(null),this.opt=t,this.file=t.file||"",this.cwd=t.cwd||process.cwd(),this.maxReadSize=t.maxReadSize,this.preservePaths=!!t.preservePaths,this.strict=!!t.strict,this.noPax=!!t.noPax,this.prefix=Hh(t.prefix||""),this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.readdirCache=t.readdirCache||new Map,this[Wh]=Yh,typeof t.onwarn=="function"&&this.on("warn",t.onwarn),this.portable=!!t.portable,this.zip=null,t.gzip?(typeof t.gzip!="object"&&(t.gzip={}),this.portable&&(t.gzip.portable=!0),this.zip=new P3.Gzip(t.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[$h]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[$h]),this.noDirRecurse=!!t.noDirRecurse,this.follow=!!t.follow,this.noMtime=!!t.noMtime,this.mtime=t.mtime||null,this.filter=typeof t.filter=="function"?t.filter:r=>!0,this[jt]=new M3,this[$t]=0,this.jobs=+t.jobs||4,this[Cu]=!1,this[wu]=!1}[bD](t){return super.write(t)}add(t){return this.write(t),this}end(t){return t&&this.write(t),this[wu]=!0,this[on](),this}write(t){if(this[wu])throw new Error("write after end");return t instanceof I3?this[gD](t):this[Fu](t),this.flowing}[gD](t){let r=Hh(ED.resolve(this.cwd,t.path));if(!this.filter(t.path,t))t.resume();else{let n=new Tu(t.path,r,!1);n.entry=new N3(t,this[jh](n)),n.entry.on("end",i=>this[qh](n)),this[$t]+=1,this[jt].push(n)}this[on]()}[Fu](t){let r=Hh(ED.resolve(this.cwd,t));this[jt].push(new Tu(t,r)),this[on]()}[Gh](t){t.pending=!0,this[$t]+=1;let r=this.follow?"stat":"lstat";ku[r](t.absolute,(n,i)=>{t.pending=!1,this[$t]-=1,n?this.emit("error",n):this[Su](t,i)})}[Su](t,r){this.statCache.set(t.absolute,r),t.stat=r,this.filter(t.path,r)||(t.ignore=!0),this[on]()}[Uh](t){t.pending=!0,this[$t]+=1,ku.readdir(t.absolute,(r,n)=>{if(t.pending=!1,this[$t]-=1,r)return this.emit("error",r);this[Ru](t,n)})}[Ru](t,r){this.readdirCache.set(t.absolute,r),t.readdir=r,this[on]()}[on](){if(!this[Cu]){this[Cu]=!0;for(let t=this[jt].head;t!==null&&this[$t]<this.jobs;t=t.next)if(this[mD](t.value),t.value.ignore){let r=t.next;this[jt].removeNode(t),t.next=r}this[Cu]=!1,this[wu]&&!this[jt].length&&this[$t]===0&&(this.zip?this.zip.end(dD):(super.write(dD),super.end()))}}get[ai](){return this[jt]&&this[jt].head&&this[jt].head.value}[qh](t){this[jt].shift(),this[$t]-=1,this[on]()}[mD](t){if(!t.pending){if(t.entry){t===this[ai]&&!t.piped&&this[Ou](t);return}if(t.stat||(this.statCache.has(t.absolute)?this[Su](t,this.statCache.get(t.absolute)):this[Gh](t)),!!t.stat&&!t.ignore&&!(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir&&(this.readdirCache.has(t.absolute)?this[Ru](t,this.readdirCache.get(t.absolute)):this[Uh](t),!t.readdir))){if(t.entry=this[yD](t),!t.entry){t.ignore=!0;return}t===this[ai]&&!t.piped&&this[Ou](t)}}}[jh](t){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:t.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}}[yD](t){this[$t]+=1;try{return new this[Wh](t.path,this[jh](t)).on("end",()=>this[qh](t)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[$h](){this[ai]&&this[ai].entry&&this[ai].entry.resume()}[Ou](t){t.piped=!0,t.readdir&&t.readdir.forEach(i=>{let s=t.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Fu](o+i)});let r=t.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()}}),zh=class extends Vh{constructor(t){super(t),this[Wh]=L3}pause(){}resume(){}[Gh](t){let r=this.follow?"statSync":"lstatSync";this[Su](t,ku[r](t.absolute))}[Uh](t,r){this[Ru](t,ku.readdirSync(t.absolute))}[Ou](t){let r=t.entry,n=this.zip;t.readdir&&t.readdir.forEach(i=>{let s=t.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Fu](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[bD](i)})}};Vh.Sync=zh;_D.exports=Vh});var gi=g(hs=>{"use strict";var j3=eh(),$3=require("events").EventEmitter,nt=require("fs"),Zh=nt.writev;if(!Zh){let e=process.binding("fs"),t=e.FSReqWrap||e.FSReqCallback;Zh=(r,n,i,s)=>{let o=(a,c)=>s(a,c,n),u=new t;u.oncomplete=o,e.writeBuffers(r,n,i,u)}}var di=Symbol("_autoClose"),St=Symbol("_close"),fs=Symbol("_ended"),ue=Symbol("_fd"),DD=Symbol("_finished"),Pr=Symbol("_flags"),Kh=Symbol("_flush"),Jh=Symbol("_handleChunk"),Qh=Symbol("_makeBuf"),Mu=Symbol("_mode"),Pu=Symbol("_needDrain"),hi=Symbol("_onerror"),mi=Symbol("_onopen"),Xh=Symbol("_onread"),li=Symbol("_onwrite"),Ir=Symbol("_open"),cr=Symbol("_path"),un=Symbol("_pos"),Ht=Symbol("_queue"),fi=Symbol("_read"),AD=Symbol("_readSize"),Br=Symbol("_reading"),Iu=Symbol("_remain"),vD=Symbol("_size"),Lu=Symbol("_write"),ci=Symbol("_writing"),Nu=Symbol("_defaultFlag"),pi=Symbol("_errored"),qu=class extends j3{constructor(t,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof t!="string")throw new TypeError("path must be a string");this[pi]=!1,this[ue]=typeof r.fd=="number"?r.fd:null,this[cr]=t,this[AD]=r.readSize||16*1024*1024,this[Br]=!1,this[vD]=typeof r.size=="number"?r.size:1/0,this[Iu]=this[vD],this[di]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[ue]=="number"?this[fi]():this[Ir]()}get fd(){return this[ue]}get path(){return this[cr]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Ir](){nt.open(this[cr],"r",(t,r)=>this[mi](t,r))}[mi](t,r){t?this[hi](t):(this[ue]=r,this.emit("open",r),this[fi]())}[Qh](){return Buffer.allocUnsafe(Math.min(this[AD],this[Iu]))}[fi](){if(!this[Br]){this[Br]=!0;let t=this[Qh]();if(t.length===0)return process.nextTick(()=>this[Xh](null,0,t));nt.read(this[ue],t,0,t.length,null,(r,n,i)=>this[Xh](r,n,i))}}[Xh](t,r,n){this[Br]=!1,t?this[hi](t):this[Jh](r,n)&&this[fi]()}[St](){if(this[di]&&typeof this[ue]=="number"){let t=this[ue];this[ue]=null,nt.close(t,r=>r?this.emit("error",r):this.emit("close"))}}[hi](t){this[Br]=!0,this[St](),this.emit("error",t)}[Jh](t,r){let n=!1;return this[Iu]-=t,t>0&&(n=super.write(t<r.length?r.slice(0,t):r)),(t===0||this[Iu]<=0)&&(n=!1,this[St](),super.end()),n}emit(t,r){switch(t){case"prefinish":case"finish":break;case"drain":typeof this[ue]=="number"&&this[fi]();break;case"error":return this[pi]?void 0:(this[pi]=!0,super.emit(t,r));default:return super.emit(t,r)}}},ep=class extends qu{[Ir](){let t=!0;try{this[mi](null,nt.openSync(this[cr],"r")),t=!1}finally{t&&this[St]()}}[fi](){let t=!0;try{if(!this[Br]){this[Br]=!0;do{let r=this[Qh](),n=r.length===0?0:nt.readSync(this[ue],r,0,r.length,null);if(!this[Jh](n,r))break}while(!0);this[Br]=!1}t=!1}finally{t&&this[St]()}}[St](){if(this[di]&&typeof this[ue]=="number"){let t=this[ue];this[ue]=null,nt.closeSync(t),this.emit("close")}}},ju=class extends $3{constructor(t,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[pi]=!1,this[ci]=!1,this[fs]=!1,this[Pu]=!1,this[Ht]=[],this[cr]=t,this[ue]=typeof r.fd=="number"?r.fd:null,this[Mu]=r.mode===void 0?438:r.mode,this[un]=typeof r.start=="number"?r.start:null,this[di]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[un]!==null?"r+":"w";this[Nu]=r.flags===void 0,this[Pr]=this[Nu]?n:r.flags,this[ue]===null&&this[Ir]()}emit(t,r){if(t==="error"){if(this[pi])return;this[pi]=!0}return super.emit(t,r)}get fd(){return this[ue]}get path(){return this[cr]}[hi](t){this[St](),this[ci]=!0,this.emit("error",t)}[Ir](){nt.open(this[cr],this[Pr],this[Mu],(t,r)=>this[mi](t,r))}[mi](t,r){this[Nu]&&this[Pr]==="r+"&&t&&t.code==="ENOENT"?(this[Pr]="w",this[Ir]()):t?this[hi](t):(this[ue]=r,this.emit("open",r),this[Kh]())}end(t,r){return t&&this.write(t,r),this[fs]=!0,!this[ci]&&!this[Ht].length&&typeof this[ue]=="number"&&this[li](null,0),this}write(t,r){return typeof t=="string"&&(t=Buffer.from(t,r)),this[fs]?(this.emit("error",new Error("write() after end()")),!1):this[ue]===null||this[ci]||this[Ht].length?(this[Ht].push(t),this[Pu]=!0,!1):(this[ci]=!0,this[Lu](t),!0)}[Lu](t){nt.write(this[ue],t,0,t.length,this[un],(r,n)=>this[li](r,n))}[li](t,r){t?this[hi](t):(this[un]!==null&&(this[un]+=r),this[Ht].length?this[Kh]():(this[ci]=!1,this[fs]&&!this[DD]?(this[DD]=!0,this[St](),this.emit("finish")):this[Pu]&&(this[Pu]=!1,this.emit("drain"))))}[Kh](){if(this[Ht].length===0)this[fs]&&this[li](null,0);else if(this[Ht].length===1)this[Lu](this[Ht].pop());else{let t=this[Ht];this[Ht]=[],Zh(this[ue],t,this[un],(r,n)=>this[li](r,n))}}[St](){if(this[di]&&typeof this[ue]=="number"){let t=this[ue];this[ue]=null,nt.close(t,r=>r?this.emit("error",r):this.emit("close"))}}},tp=class extends ju{[Ir](){let t;if(this[Nu]&&this[Pr]==="r+")try{t=nt.openSync(this[cr],this[Pr],this[Mu])}catch(r){if(r.code==="ENOENT")return this[Pr]="w",this[Ir]();throw r}else t=nt.openSync(this[cr],this[Pr],this[Mu]);this[mi](null,t)}[St](){if(this[di]&&typeof this[ue]=="number"){let t=this[ue];this[ue]=null,nt.closeSync(t),this.emit("close")}}[Lu](t){let r=!0;try{this[li](null,nt.writeSync(this[ue],t,0,t.length,this[un])),r=!1}finally{if(r)try{this[St]()}catch{}}}};hs.ReadStream=qu;hs.ReadStreamSync=ep;hs.WriteStream=ju;hs.WriteStreamSync=tp});var Yu=g((eN,TD)=>{"use strict";var H3=bu(),G3=oi(),U3=require("events"),W3=Mh(),z3=1024*1024,Y3=gu(),xD=Eu(),V3=gh(),{nextTick:K3}=require("process"),rp=Buffer.from([31,139]),yt=Symbol("state"),an=Symbol("writeEntry"),lr=Symbol("readEntry"),np=Symbol("nextEntry"),wD=Symbol("processEntry"),Et=Symbol("extendedHeader"),ps=Symbol("globalExtendedHeader"),Lr=Symbol("meta"),CD=Symbol("emitMeta"),pe=Symbol("buffer"),fr=Symbol("queue"),cn=Symbol("ended"),SD=Symbol("emittedEnd"),ln=Symbol("emit"),it=Symbol("unzip"),$u=Symbol("consumeChunk"),Hu=Symbol("consumeChunkSub"),ip=Symbol("consumeBody"),FD=Symbol("consumeMeta"),RD=Symbol("consumeHeader"),Gu=Symbol("consuming"),sp=Symbol("bufferConcat"),op=Symbol("maybeEnd"),ds=Symbol("writing"),Nr=Symbol("aborted"),Uu=Symbol("onDone"),fn=Symbol("sawValidEntry"),Wu=Symbol("sawNullBlock"),zu=Symbol("sawEOF"),OD=Symbol("closeStream"),X3=e=>!0;TD.exports=H3(class extends U3{constructor(t){t=t||{},super(t),this.file=t.file||"",this[fn]=null,this.on(Uu,r=>{(this[yt]==="begin"||this[fn]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),t.ondone?this.on(Uu,t.ondone):this.on(Uu,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!t.strict,this.maxMetaEntrySize=t.maxMetaEntrySize||z3,this.filter=typeof t.filter=="function"?t.filter:X3,this.writable=!0,this.readable=!1,this[fr]=new W3,this[pe]=null,this[lr]=null,this[an]=null,this[yt]="begin",this[Lr]="",this[Et]=null,this[ps]=null,this[cn]=!1,this[it]=null,this[Nr]=!1,this[Wu]=!1,this[zu]=!1,this.on("end",()=>this[OD]()),typeof t.onwarn=="function"&&this.on("warn",t.onwarn),typeof t.onentry=="function"&&this.on("entry",t.onentry)}[RD](t,r){this[fn]===null&&(this[fn]=!1);let n;try{n=new G3(t,r,this[Et],this[ps])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[Wu]?(this[zu]=!0,this[yt]==="begin"&&(this[yt]="header"),this[ln]("eof")):(this[Wu]=!0,this[ln]("nullBlock"));else if(this[Wu]=!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[an]=new Y3(n,this[Et],this[ps]);if(!this[fn])if(s.remain){let o=()=>{s.invalid||(this[fn]=!0)};s.on("end",o)}else this[fn]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[ln]("ignoredEntry",s),this[yt]="ignore",s.resume()):s.size>0&&(this[Lr]="",s.on("data",o=>this[Lr]+=o),this[yt]="meta"):(this[Et]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[ln]("ignoredEntry",s),this[yt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[yt]="body":(this[yt]="header",s.end()),this[lr]?this[fr].push(s):(this[fr].push(s),this[np]())))}}}[OD](){K3(()=>this.emit("close"))}[wD](t){let r=!0;return t?Array.isArray(t)?this.emit.apply(this,t):(this[lr]=t,this.emit("entry",t),t.emittedEnd||(t.on("end",n=>this[np]()),r=!1)):(this[lr]=null,r=!1),r}[np](){do;while(this[wD](this[fr].shift()));if(!this[fr].length){let t=this[lr];!t||t.flowing||t.size===t.remain?this[ds]||this.emit("drain"):t.once("drain",n=>this.emit("drain"))}}[ip](t,r){let n=this[an],i=n.blockRemain,s=i>=t.length&&r===0?t:t.slice(r,r+i);return n.write(s),n.blockRemain||(this[yt]="header",this[an]=null,n.end()),s.length}[FD](t,r){let n=this[an],i=this[ip](t,r);return this[an]||this[CD](n),i}[ln](t,r,n){!this[fr].length&&!this[lr]?this.emit(t,r,n):this[fr].push([t,r,n])}[CD](t){switch(this[ln]("meta",this[Lr]),t.type){case"ExtendedHeader":case"OldExtendedHeader":this[Et]=xD.parse(this[Lr],this[Et],!1);break;case"GlobalExtendedHeader":this[ps]=xD.parse(this[Lr],this[ps],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Et]=this[Et]||Object.create(null),this[Et].path=this[Lr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Et]=this[Et]||Object.create(null),this[Et].linkpath=this[Lr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+t.type)}}abort(t){this[Nr]=!0,this.emit("abort",t),this.warn("TAR_ABORT",t,{recoverable:!1})}write(t){if(this[Nr])return;if(this[it]===null&&t){if(this[pe]&&(t=Buffer.concat([this[pe],t]),this[pe]=null),t.length<rp.length)return this[pe]=t,!0;for(let n=0;this[it]===null&&n<rp.length;n++)t[n]!==rp[n]&&(this[it]=!1);if(this[it]===null){let n=this[cn];this[cn]=!1,this[it]=new V3.Unzip,this[it].on("data",s=>this[$u](s)),this[it].on("error",s=>this.abort(s)),this[it].on("end",s=>{this[cn]=!0,this[$u]()}),this[ds]=!0;let i=this[it][n?"end":"write"](t);return this[ds]=!1,i}}this[ds]=!0,this[it]?this[it].write(t):this[$u](t),this[ds]=!1;let r=this[fr].length?!1:this[lr]?this[lr].flowing:!0;return!r&&!this[fr].length&&this[lr].once("drain",n=>this.emit("drain")),r}[sp](t){t&&!this[Nr]&&(this[pe]=this[pe]?Buffer.concat([this[pe],t]):t)}[op](){if(this[cn]&&!this[SD]&&!this[Nr]&&!this[Gu]){this[SD]=!0;let t=this[an];if(t&&t.blockRemain){let r=this[pe]?this[pe].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${r} available)`,{entry:t}),this[pe]&&t.write(this[pe]),t.end()}this[ln](Uu)}}[$u](t){if(this[Gu])this[sp](t);else if(!t&&!this[pe])this[op]();else{if(this[Gu]=!0,this[pe]){this[sp](t);let r=this[pe];this[pe]=null,this[Hu](r)}else this[Hu](t);for(;this[pe]&&this[pe].length>=512&&!this[Nr]&&!this[zu];){let r=this[pe];this[pe]=null,this[Hu](r)}this[Gu]=!1}(!this[pe]||this[cn])&&this[op]()}[Hu](t){let r=0,n=t.length;for(;r+512<=n&&!this[Nr]&&!this[zu];)switch(this[yt]){case"begin":case"header":this[RD](t,r),r+=512;break;case"ignore":case"body":r+=this[ip](t,r);break;case"meta":r+=this[FD](t,r);break;default:throw new Error("invalid state: "+this[yt])}r<n&&(this[pe]?this[pe]=Buffer.concat([t.slice(r),this[pe]]):this[pe]=t.slice(r))}end(t){this[Nr]||(this[it]?this[it].end(t):(this[cn]=!0,this.write(t)))}})});var Vu=g((tN,ID)=>{"use strict";var Z3=Qn(),BD=Yu(),yi=require("fs"),J3=gi(),kD=require("path"),up=ui();ID.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=Z3(e);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 t.length&&eB(n,t),n.noResume||Q3(n),n.file&&n.sync?tB(n):n.file?rB(n,r):PD(n)};var Q3=e=>{let t=e.onentry;e.onentry=t?r=>{t(r),r.resume()}:r=>r.resume()},eB=(e,t)=>{let r=new Map(t.map(s=>[up(s),!0])),n=e.filter,i=(s,o)=>{let u=o||kD.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):i(kD.dirname(s),u);return r.set(s,a),a};e.filter=n?(s,o)=>n(s,o)&&i(up(s)):s=>i(up(s))},tB=e=>{let t=PD(e),r=e.file,n=!0,i;try{let s=yi.statSync(r),o=e.maxReadSize||16*1024*1024;if(s.size<o)t.end(yi.readFileSync(r));else{let u=0,a=Buffer.allocUnsafe(o);for(i=yi.openSync(r,"r");u<s.size;){let c=yi.readSync(i,a,0,o,u);u+=c,t.write(a.slice(0,c))}t.end()}n=!1}finally{if(n&&i)try{yi.closeSync(i)}catch{}}},rB=(e,t)=>{let r=new BD(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((o,u)=>{r.on("error",u),r.on("end",o),yi.stat(i,(a,c)=>{if(a)u(a);else{let l=new J3.ReadStream(i,{readSize:n,size:c.size});l.on("error",u),l.pipe(r)}})});return t?s.then(t,t):s},PD=e=>new BD(e)});var $D=g((rN,jD)=>{"use strict";var nB=Qn(),Ku=Bu(),LD=gi(),ND=Vu(),MD=require("path");jD.exports=(e,t,r)=>{if(typeof t=="function"&&(r=t),Array.isArray(e)&&(t=e,e={}),!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);let n=nB(e);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?iB(n,t):n.file?sB(n,t,r):n.sync?oB(n,t):uB(n,t)};var iB=(e,t)=>{let r=new Ku.Sync(e),n=new LD.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(n),qD(r,t)},sB=(e,t,r)=>{let n=new Ku(e),i=new LD.WriteStream(e.file,{mode:e.mode||438});n.pipe(i);let s=new Promise((o,u)=>{i.on("error",u),i.on("close",o),n.on("error",u)});return ap(n,t),r?s.then(r,r):s},qD=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?ND({file:MD.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},ap=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return ND({file:MD.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>ap(e,t));e.add(r)}e.end()},oB=(e,t)=>{let r=new Ku.Sync(e);return qD(r,t),r},uB=(e,t)=>{let r=new Ku(e);return ap(r,t),r}});var cp=g((nN,VD)=>{"use strict";var aB=Qn(),HD=Bu(),lt=require("fs"),GD=gi(),UD=Vu(),WD=require("path"),zD=oi();VD.exports=(e,t,r)=>{let n=aB(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),n.sync?cB(n,t):fB(n,t,r)};var cB=(e,t)=>{let r=new HD.Sync(e),n=!0,i,s;try{try{i=lt.openSync(e.file,"r+")}catch(a){if(a.code==="ENOENT")i=lt.openSync(e.file,"w+");else throw a}let o=lt.fstatSync(i),u=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let l=0,f=0;l<512;l+=f){if(f=lt.readSync(i,u,l,u.length-l,s+l),s===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!f)break e}let a=new zD(u);if(!a.cksumValid)break;let c=512*Math.ceil(a.size/512);if(s+c+512>o.size)break;s+=c,e.mtimeCache&&e.mtimeCache.set(a.path,a.mtime)}n=!1,lB(e,r,s,i,t)}finally{if(n)try{lt.closeSync(i)}catch{}}},lB=(e,t,r,n,i)=>{let s=new GD.WriteStreamSync(e.file,{fd:n,start:r});t.pipe(s),hB(t,i)},fB=(e,t,r)=>{t=Array.from(t);let n=new HD(e),i=(o,u,a)=>{let c=(E,m)=>{E?lt.close(o,D=>a(E)):a(null,m)},l=0;if(u===0)return c(null,0);let f=0,p=Buffer.alloc(512),_=(E,m)=>{if(E)return c(E);if(f+=m,f<512&&m)return lt.read(o,p,f,p.length-f,l+f,_);if(l===0&&p[0]===31&&p[1]===139)return c(new Error("cannot append to compressed archives"));if(f<512)return c(null,l);let D=new zD(p);if(!D.cksumValid)return c(null,l);let A=512*Math.ceil(D.size/512);if(l+A+512>u||(l+=A+512,l>=u))return c(null,l);e.mtimeCache&&e.mtimeCache.set(D.path,D.mtime),f=0,lt.read(o,p,0,512,l,_)};lt.read(o,p,0,512,l,_)},s=new Promise((o,u)=>{n.on("error",u);let a="r+",c=(l,f)=>{if(l&&l.code==="ENOENT"&&a==="r+")return a="w+",lt.open(e.file,a,c);if(l)return u(l);lt.fstat(f,(p,_)=>{if(p)return lt.close(f,()=>u(p));i(f,_.size,(E,m)=>{if(E)return u(E);let D=new GD.WriteStream(e.file,{fd:f,start:m});n.pipe(D),D.on("error",u),D.on("close",o),YD(n,t)})})};lt.open(e.file,a,c)});return r?s.then(r,r):s},hB=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?UD({file:WD.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},YD=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return UD({file:WD.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>YD(e,t));e.add(r)}e.end()}});var XD=g((iN,KD)=>{"use strict";var pB=Qn(),dB=cp();KD.exports=(e,t,r)=>{let n=pB(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),mB(n),dB(n,t,r)};var mB=e=>{let t=e.filter;e.mtimeCache||(e.mtimeCache=new Map),e.filter=t?(r,n)=>t(r,n)&&!(e.mtimeCache.get(r)>n.mtime):(r,n)=>!(e.mtimeCache.get(r)>n.mtime)}});var QD=g((sN,JD)=>{var{promisify:ZD}=require("util"),Mr=require("fs"),gB=e=>{if(!e)e={mode:511,fs:Mr};else if(typeof e=="object")e={mode:511,fs:Mr,...e};else if(typeof e=="number")e={mode:e,fs:Mr};else if(typeof e=="string")e={mode:parseInt(e,8),fs:Mr};else throw new TypeError("invalid options argument");return e.mkdir=e.mkdir||e.fs.mkdir||Mr.mkdir,e.mkdirAsync=ZD(e.mkdir),e.stat=e.stat||e.fs.stat||Mr.stat,e.statAsync=ZD(e.stat),e.statSync=e.statSync||e.fs.statSync||Mr.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||Mr.mkdirSync,e};JD.exports=gB});var t2=g((oN,e2)=>{var yB=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:EB,parse:bB}=require("path"),_B=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=EB(e),yB==="win32"){let t=/[*|"<>?:]/,{root:r}=bB(e);if(t.test(e.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e};e2.exports=_B});var o2=g((uN,s2)=>{var{dirname:r2}=require("path"),n2=(e,t,r=void 0)=>r===t?Promise.resolve():e.statAsync(t).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?n2(e,r2(t),t):void 0),i2=(e,t,r=void 0)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?i2(e,r2(t),t):void 0}};s2.exports={findMade:n2,findMadeSync:i2}});var hp=g((aN,a2)=>{var{dirname:u2}=require("path"),lp=(e,t,r)=>{t.recursive=!1;let n=u2(e);return n===e?t.mkdirAsync(e,t).catch(i=>{if(i.code!=="EISDIR")throw i}):t.mkdirAsync(e,t).then(()=>r||e,i=>{if(i.code==="ENOENT")return lp(n,t).then(s=>lp(e,t,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return t.statAsync(e).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},fp=(e,t,r)=>{let n=u2(e);if(t.recursive=!1,n===e)try{return t.mkdirSync(e,t)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return t.mkdirSync(e,t),r||e}catch(i){if(i.code==="ENOENT")return fp(e,t,fp(n,t,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!t.statSync(e).isDirectory())throw i}catch{throw i}}};a2.exports={mkdirpManual:lp,mkdirpManualSync:fp}});var f2=g((cN,l2)=>{var{dirname:c2}=require("path"),{findMade:DB,findMadeSync:AB}=o2(),{mkdirpManual:vB,mkdirpManualSync:xB}=hp(),wB=(e,t)=>(t.recursive=!0,c2(e)===e?t.mkdirAsync(e,t):DB(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(i=>{if(i.code==="ENOENT")return vB(e,t);throw i}))),CB=(e,t)=>{if(t.recursive=!0,c2(e)===e)return t.mkdirSync(e,t);let n=AB(t,e);try{return t.mkdirSync(e,t),n}catch(i){if(i.code==="ENOENT")return xB(e,t);throw i}};l2.exports={mkdirpNative:wB,mkdirpNativeSync:CB}});var m2=g((lN,d2)=>{var h2=require("fs"),SB=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,pp=SB.replace(/^v/,"").split("."),p2=+pp[0]>10||+pp[0]==10&&+pp[1]>=12,FB=p2?e=>e.mkdir===h2.mkdir:()=>!1,RB=p2?e=>e.mkdirSync===h2.mkdirSync:()=>!1;d2.exports={useNative:FB,useNativeSync:RB}});var D2=g((fN,_2)=>{var Ei=QD(),bi=t2(),{mkdirpNative:g2,mkdirpNativeSync:y2}=f2(),{mkdirpManual:E2,mkdirpManualSync:b2}=hp(),{useNative:OB,useNativeSync:TB}=m2(),_i=(e,t)=>(e=bi(e),t=Ei(t),OB(t)?g2(e,t):E2(e,t)),kB=(e,t)=>(e=bi(e),t=Ei(t),TB(t)?y2(e,t):b2(e,t));_i.sync=kB;_i.native=(e,t)=>g2(bi(e),Ei(t));_i.manual=(e,t)=>E2(bi(e),Ei(t));_i.nativeSync=(e,t)=>y2(bi(e),Ei(t));_i.manualSync=(e,t)=>b2(bi(e),Ei(t));_2.exports=_i});var F2=g((hN,S2)=>{"use strict";var bt=require("fs"),hn=require("path"),BB=bt.lchown?"lchown":"chown",PB=bt.lchownSync?"lchownSync":"chownSync",v2=bt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),A2=(e,t,r)=>{try{return bt[PB](e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},IB=(e,t,r)=>{try{return bt.chownSync(e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},LB=v2?(e,t,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):bt.chown(e,t,r,n)}:(e,t,r,n)=>n,dp=v2?(e,t,r)=>{try{return A2(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;IB(e,t,r)}}:(e,t,r)=>A2(e,t,r),NB=process.version,x2=(e,t,r)=>bt.readdir(e,t,r),MB=(e,t)=>bt.readdirSync(e,t);/^v4\./.test(NB)&&(x2=(e,t,r)=>bt.readdir(e,r));var Xu=(e,t,r,n)=>{bt[BB](e,t,r,LB(e,t,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},w2=(e,t,r,n,i)=>{if(typeof t=="string")return bt.lstat(hn.resolve(e,t),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=t,w2(e,o,r,n,i)});if(t.isDirectory())mp(hn.resolve(e,t.name),r,n,s=>{if(s)return i(s);let o=hn.resolve(e,t.name);Xu(o,r,n,i)});else{let s=hn.resolve(e,t.name);Xu(s,r,n,i)}},mp=(e,t,r,n)=>{x2(e,{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 Xu(e,t,r,n);let o=s.length,u=null,a=c=>{if(!u){if(c)return n(u=c);if(--o===0)return Xu(e,t,r,n)}};s.forEach(c=>w2(e,c,t,r,a))})},qB=(e,t,r,n)=>{if(typeof t=="string")try{let i=bt.lstatSync(hn.resolve(e,t));i.name=t,t=i}catch(i){if(i.code==="ENOENT")return;throw i}t.isDirectory()&&C2(hn.resolve(e,t.name),r,n),dp(hn.resolve(e,t.name),r,n)},C2=(e,t,r)=>{let n;try{n=MB(e,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return dp(e,t,r);throw i}return n&&n.length&&n.forEach(i=>qB(e,i,t,r)),dp(e,t,r)};S2.exports=mp;mp.sync=C2});var k2=g((pN,gp)=>{"use strict";var R2=D2(),_t=require("fs"),Zu=require("path"),O2=F2(),Ft=ii(),Ju=class extends Error{constructor(t,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=t}get name(){return"SylinkError"}},Qu=class extends Error{constructor(t,r){super(r+": Cannot cd into '"+t+"'"),this.path=t,this.code=r}get name(){return"CwdError"}},ea=(e,t)=>e.get(Ft(t)),ms=(e,t,r)=>e.set(Ft(t),r),jB=(e,t)=>{_t.stat(e,(r,n)=>{(r||!n.isDirectory())&&(r=new Qu(e,r&&r.code||"ENOTDIR")),t(r)})};gp.exports=(e,t,r)=>{e=Ft(e);let n=t.umask,i=t.mode|448,s=(i&n)!==0,o=t.uid,u=t.gid,a=typeof o=="number"&&typeof u=="number"&&(o!==t.processUid||u!==t.processGid),c=t.preserve,l=t.unlink,f=t.cache,p=Ft(t.cwd),_=(D,A)=>{D?r(D):(ms(f,e,!0),A&&a?O2(A,o,u,R=>_(R)):s?_t.chmod(e,i,r):r())};if(f&&ea(f,e)===!0)return _();if(e===p)return jB(e,_);if(c)return R2(e,{mode:i}).then(D=>_(null,D),_);let m=Ft(Zu.relative(p,e)).split("/");ta(p,m,i,f,l,p,null,_)};var ta=(e,t,r,n,i,s,o,u)=>{if(!t.length)return u(null,o);let a=t.shift(),c=Ft(Zu.resolve(e+"/"+a));if(ea(n,c))return ta(c,t,r,n,i,s,o,u);_t.mkdir(c,r,T2(c,t,r,n,i,s,o,u))},T2=(e,t,r,n,i,s,o,u)=>a=>{a?_t.lstat(e,(c,l)=>{if(c)c.path=c.path&&Ft(c.path),u(c);else if(l.isDirectory())ta(e,t,r,n,i,s,o,u);else if(i)_t.unlink(e,f=>{if(f)return u(f);_t.mkdir(e,r,T2(e,t,r,n,i,s,o,u))});else{if(l.isSymbolicLink())return u(new Ju(e,e+"/"+t.join("/")));u(a)}}):(o=o||e,ta(e,t,r,n,i,s,o,u))},$B=e=>{let t=!1,r="ENOTDIR";try{t=_t.statSync(e).isDirectory()}catch(n){r=n.code}finally{if(!t)throw new Qu(e,r)}};gp.exports.sync=(e,t)=>{e=Ft(e);let r=t.umask,n=t.mode|448,i=(n&r)!==0,s=t.uid,o=t.gid,u=typeof s=="number"&&typeof o=="number"&&(s!==t.processUid||o!==t.processGid),a=t.preserve,c=t.unlink,l=t.cache,f=Ft(t.cwd),p=D=>{ms(l,e,!0),D&&u&&O2.sync(D,s,o),i&&_t.chmodSync(e,n)};if(l&&ea(l,e)===!0)return p();if(e===f)return $B(f),p();if(a)return p(R2.sync(e,n));let E=Ft(Zu.relative(f,e)).split("/"),m=null;for(let D=E.shift(),A=f;D&&(A+="/"+D);D=E.shift())if(A=Ft(Zu.resolve(A)),!ea(l,A))try{_t.mkdirSync(A,n),m=m||A,ms(l,A,!0)}catch{let M=_t.lstatSync(A);if(M.isDirectory()){ms(l,A,!0);continue}else if(c){_t.unlinkSync(A),_t.mkdirSync(A,n),m=m||A,ms(l,A,!0);continue}else if(M.isSymbolicLink())return new Ju(A,A+"/"+E.join("/"))}return p(m)}});var Ep=g((dN,B2)=>{var yp=Object.create(null),{hasOwnProperty:HB}=Object.prototype;B2.exports=e=>(HB.call(yp,e)||(yp[e]=e.normalize("NFKD")),yp[e])});var N2=g((mN,L2)=>{var P2=require("assert"),GB=Ep(),UB=ui(),{join:I2}=require("path"),WB=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,zB=WB==="win32";L2.exports=()=>{let e=new Map,t=new Map,r=c=>c.split("/").slice(0,-1).reduce((f,p)=>(f.length&&(p=I2(f[f.length-1],p)),f.push(p||"/"),f),[]),n=new Set,i=c=>{let l=t.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(f=>e.get(f)),dirs:[...l.dirs].map(f=>e.get(f))}},s=c=>{let{paths:l,dirs:f}=i(c);return l.every(p=>p[0]===c)&&f.every(p=>p[0]instanceof Set&&p[0].has(c))},o=c=>n.has(c)||!s(c)?!1:(n.add(c),c(()=>u(c)),!0),u=c=>{if(!n.has(c))return!1;let{paths:l,dirs:f}=t.get(c),p=new Set;return l.forEach(_=>{let E=e.get(_);P2.equal(E[0],c),E.length===1?e.delete(_):(E.shift(),typeof E[0]=="function"?p.add(E[0]):E[0].forEach(m=>p.add(m)))}),f.forEach(_=>{let E=e.get(_);P2(E[0]instanceof Set),E[0].size===1&&E.length===1?e.delete(_):E[0].size===1?(E.shift(),p.add(E[0])):E[0].delete(c)}),n.delete(c),p.forEach(_=>o(_)),!0};return{check:s,reserve:(c,l)=>{c=zB?["win32 parallelization disabled"]:c.map(p=>GB(UB(I2(p))).toLowerCase());let f=new Set(c.map(p=>r(p)).reduce((p,_)=>p.concat(_)));return t.set(l,{dirs:f,paths:c}),c.forEach(p=>{let _=e.get(p);_?_.push(l):e.set(p,[l])}),f.forEach(p=>{let _=e.get(p);_?_[_.length-1]instanceof Set?_[_.length-1].add(l):_.push(new Set([l])):e.set(p,[new Set([l])])}),o(l)}}}});var j2=g((gN,q2)=>{var YB=process.env.__FAKE_PLATFORM__||process.platform,VB=YB==="win32",KB=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:XB,O_TRUNC:ZB,O_WRONLY:JB,UV_FS_O_FILEMAP:M2=0}=KB.constants,QB=VB&&!!M2,eP=512*1024,tP=M2|ZB|XB|JB;q2.exports=QB?e=>e<eP?tP:"w":()=>"w"});var Sp=g((yN,eA)=>{"use strict";var rP=require("assert"),nP=Yu(),te=require("fs"),iP=gi(),hr=require("path"),Z2=k2(),$2=Ch(),sP=N2(),oP=Sh(),ft=ii(),uP=ui(),aP=Ep(),H2=Symbol("onEntry"),Dp=Symbol("checkFs"),G2=Symbol("checkFs2"),ia=Symbol("pruneCache"),Ap=Symbol("isReusable"),Dt=Symbol("makeFs"),vp=Symbol("file"),xp=Symbol("directory"),sa=Symbol("link"),U2=Symbol("symlink"),W2=Symbol("hardlink"),z2=Symbol("unsupported"),Y2=Symbol("checkPath"),qr=Symbol("mkdir"),We=Symbol("onError"),ra=Symbol("pending"),V2=Symbol("pend"),Di=Symbol("unpend"),bp=Symbol("ended"),_p=Symbol("maybeClose"),wp=Symbol("skip"),gs=Symbol("doChown"),ys=Symbol("uid"),Es=Symbol("gid"),bs=Symbol("checkedCwd"),J2=require("crypto"),Q2=j2(),cP=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,_s=cP==="win32",lP=(e,t)=>{if(!_s)return te.unlink(e,t);let r=e+".DELETE."+J2.randomBytes(16).toString("hex");te.rename(e,r,n=>{if(n)return t(n);te.unlink(r,t)})},fP=e=>{if(!_s)return te.unlinkSync(e);let t=e+".DELETE."+J2.randomBytes(16).toString("hex");te.renameSync(e,t),te.unlinkSync(t)},K2=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r,X2=e=>aP(uP(ft(e))).toLowerCase(),hP=(e,t)=>{t=X2(t);for(let r of e.keys()){let n=X2(r);(n===t||n.indexOf(t+"/")===0)&&e.delete(r)}},pP=e=>{for(let t of e.keys())e.delete(t)},Ds=class extends nP{constructor(t){if(t||(t={}),t.ondone=r=>{this[bp]=!0,this[_p]()},super(t),this[bs]=!1,this.reservations=sP(),this.transform=typeof t.transform=="function"?t.transform:null,this.writable=!0,this.readable=!1,this[ra]=0,this[bp]=!1,this.dirCache=t.dirCache||new Map,typeof t.uid=="number"||typeof t.gid=="number"){if(typeof t.uid!="number"||typeof t.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(t.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=t.uid,this.gid=t.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;t.preserveOwner===void 0&&typeof t.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!t.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=t.forceChown===!0,this.win32=!!t.win32||_s,this.newer=!!t.newer,this.keep=!!t.keep,this.noMtime=!!t.noMtime,this.preservePaths=!!t.preservePaths,this.unlink=!!t.unlink,this.cwd=ft(hr.resolve(t.cwd||process.cwd())),this.strip=+t.strip||0,this.processUmask=t.noChmod?0:process.umask(),this.umask=typeof t.umask=="number"?t.umask:this.processUmask,this.dmode=t.dmode||511&~this.umask,this.fmode=t.fmode||438&~this.umask,this.on("entry",r=>this[H2](r))}warn(t,r,n={}){return(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT")&&(n.recoverable=!1),super.warn(t,r,n)}[_p](){this[bp]&&this[ra]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[Y2](t){if(this.strip){let r=ft(t.path).split("/");if(r.length<this.strip)return!1;if(t.path=r.slice(this.strip).join("/"),t.type==="Link"){let n=ft(t.linkpath).split("/");if(n.length>=this.strip)t.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=ft(t.path),n=r.split("/");if(n.includes("..")||_s&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:t,path:r}),!1;let[i,s]=oP(r);i&&(t.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:t,path:r}))}if(hr.isAbsolute(t.path)?t.absolute=ft(hr.resolve(t.path)):t.absolute=ft(hr.resolve(this.cwd,t.path)),!this.preservePaths&&t.absolute.indexOf(this.cwd+"/")!==0&&t.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:ft(t.path),resolvedPath:t.absolute,cwd:this.cwd}),!1;if(t.absolute===this.cwd&&t.type!=="Directory"&&t.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=hr.win32.parse(t.absolute);t.absolute=r+$2.encode(t.absolute.slice(r.length));let{root:n}=hr.win32.parse(t.path);t.path=n+$2.encode(t.path.slice(n.length))}return!0}[H2](t){if(!this[Y2](t))return t.resume();switch(rP.equal(typeof t.absolute,"string"),t.type){case"Directory":case"GNUDumpDir":t.mode&&(t.mode=t.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Dp](t);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[z2](t)}}[We](t,r){t.name==="CwdError"?this.emit("error",t):(this.warn("TAR_ENTRY_ERROR",t,{entry:r}),this[Di](),r.resume())}[qr](t,r,n){Z2(ft(t),{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)}[gs](t){return this.forceChown||this.preserveOwner&&(typeof t.uid=="number"&&t.uid!==this.processUid||typeof t.gid=="number"&&t.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[ys](t){return K2(this.uid,t.uid,this.processUid)}[Es](t){return K2(this.gid,t.gid,this.processGid)}[vp](t,r){let n=t.mode&4095||this.fmode,i=new iP.WriteStream(t.absolute,{flags:Q2(t.size),mode:n,autoClose:!1});i.on("error",a=>{i.fd&&te.close(i.fd,()=>{}),i.write=()=>!0,this[We](a,t),r()});let s=1,o=a=>{if(a){i.fd&&te.close(i.fd,()=>{}),this[We](a,t),r();return}--s===0&&te.close(i.fd,c=>{c?this[We](c,t):this[Di](),r()})};i.on("finish",a=>{let c=t.absolute,l=i.fd;if(t.mtime&&!this.noMtime){s++;let f=t.atime||new Date,p=t.mtime;te.futimes(l,f,p,_=>_?te.utimes(c,f,p,E=>o(E&&_)):o())}if(this[gs](t)){s++;let f=this[ys](t),p=this[Es](t);te.fchown(l,f,p,_=>_?te.chown(c,f,p,E=>o(E&&_)):o())}o()});let u=this.transform&&this.transform(t)||t;u!==t&&(u.on("error",a=>{this[We](a,t),r()}),t.pipe(u)),u.pipe(i)}[xp](t,r){let n=t.mode&4095||this.dmode;this[qr](t.absolute,n,i=>{if(i){this[We](i,t),r();return}let s=1,o=u=>{--s===0&&(r(),this[Di](),t.resume())};t.mtime&&!this.noMtime&&(s++,te.utimes(t.absolute,t.atime||new Date,t.mtime,o)),this[gs](t)&&(s++,te.chown(t.absolute,this[ys](t),this[Es](t),o)),o()})}[z2](t){t.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t}),t.resume()}[U2](t,r){this[sa](t,t.linkpath,"symlink",r)}[W2](t,r){let n=ft(hr.resolve(this.cwd,t.linkpath));this[sa](t,n,"link",r)}[V2](){this[ra]++}[Di](){this[ra]--,this[_p]()}[wp](t){this[Di](),t.resume()}[Ap](t,r){return t.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!_s}[Dp](t){this[V2]();let r=[t.path];t.linkpath&&r.push(t.linkpath),this.reservations.reserve(r,n=>this[G2](t,n))}[ia](t){t.type==="SymbolicLink"?pP(this.dirCache):t.type!=="Directory"&&hP(this.dirCache,t.absolute)}[G2](t,r){this[ia](t);let n=u=>{this[ia](t),r(u)},i=()=>{this[qr](this.cwd,this.dmode,u=>{if(u){this[We](u,t),n();return}this[bs]=!0,s()})},s=()=>{if(t.absolute!==this.cwd){let u=ft(hr.dirname(t.absolute));if(u!==this.cwd)return this[qr](u,this.dmode,a=>{if(a){this[We](a,t),n();return}o()})}o()},o=()=>{te.lstat(t.absolute,(u,a)=>{if(a&&(this.keep||this.newer&&a.mtime>t.mtime)){this[wp](t),n();return}if(u||this[Ap](t,a))return this[Dt](null,t,n);if(a.isDirectory()){if(t.type==="Directory"){let c=!this.noChmod&&t.mode&&(a.mode&4095)!==t.mode,l=f=>this[Dt](f,t,n);return c?te.chmod(t.absolute,t.mode,l):l()}if(t.absolute!==this.cwd)return te.rmdir(t.absolute,c=>this[Dt](c,t,n))}if(t.absolute===this.cwd)return this[Dt](null,t,n);lP(t.absolute,c=>this[Dt](c,t,n))})};this[bs]?s():i()}[Dt](t,r,n){if(t){this[We](t,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[vp](r,n);case"Link":return this[W2](r,n);case"SymbolicLink":return this[U2](r,n);case"Directory":case"GNUDumpDir":return this[xp](r,n)}}[sa](t,r,n,i){te[n](r,t.absolute,s=>{s?this[We](s,t):(this[Di](),t.resume()),i()})}},na=e=>{try{return[null,e()]}catch(t){return[t,null]}},Cp=class extends Ds{[Dt](t,r){return super[Dt](t,r,()=>{})}[Dp](t){if(this[ia](t),!this[bs]){let s=this[qr](this.cwd,this.dmode);if(s)return this[We](s,t);this[bs]=!0}if(t.absolute!==this.cwd){let s=ft(hr.dirname(t.absolute));if(s!==this.cwd){let o=this[qr](s,this.dmode);if(o)return this[We](o,t)}}let[r,n]=na(()=>te.lstatSync(t.absolute));if(n&&(this.keep||this.newer&&n.mtime>t.mtime))return this[wp](t);if(r||this[Ap](t,n))return this[Dt](null,t);if(n.isDirectory()){if(t.type==="Directory"){let o=!this.noChmod&&t.mode&&(n.mode&4095)!==t.mode,[u]=o?na(()=>{te.chmodSync(t.absolute,t.mode)}):[];return this[Dt](u,t)}let[s]=na(()=>te.rmdirSync(t.absolute));this[Dt](s,t)}let[i]=t.absolute===this.cwd?[]:na(()=>fP(t.absolute));this[Dt](i,t)}[vp](t,r){let n=t.mode&4095||this.fmode,i=u=>{let a;try{te.closeSync(s)}catch(c){a=c}(u||a)&&this[We](u||a,t),r()},s;try{s=te.openSync(t.absolute,Q2(t.size),n)}catch(u){return i(u)}let o=this.transform&&this.transform(t)||t;o!==t&&(o.on("error",u=>this[We](u,t)),t.pipe(o)),o.on("data",u=>{try{te.writeSync(s,u,0,u.length)}catch(a){i(a)}}),o.on("end",u=>{let a=null;if(t.mtime&&!this.noMtime){let c=t.atime||new Date,l=t.mtime;try{te.futimesSync(s,c,l)}catch(f){try{te.utimesSync(t.absolute,c,l)}catch{a=f}}}if(this[gs](t)){let c=this[ys](t),l=this[Es](t);try{te.fchownSync(s,c,l)}catch(f){try{te.chownSync(t.absolute,c,l)}catch{a=a||f}}}i(a)})}[xp](t,r){let n=t.mode&4095||this.dmode,i=this[qr](t.absolute,n);if(i){this[We](i,t),r();return}if(t.mtime&&!this.noMtime)try{te.utimesSync(t.absolute,t.atime||new Date,t.mtime)}catch{}if(this[gs](t))try{te.chownSync(t.absolute,this[ys](t),this[Es](t))}catch{}r(),t.resume()}[qr](t,r){try{return Z2.sync(ft(t),{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}}[sa](t,r,n,i){try{te[n+"Sync"](r,t.absolute),i(),t.resume()}catch(s){return this[We](s,t)}}};Ds.Sync=Cp;eA.exports=Ds});var sA=g((EN,iA)=>{"use strict";var dP=Qn(),oa=Sp(),rA=require("fs"),nA=gi(),tA=require("path"),Fp=ui();iA.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=dP(e);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 t.length&&mP(n,t),n.file&&n.sync?gP(n):n.file?yP(n,r):n.sync?EP(n):bP(n)};var mP=(e,t)=>{let r=new Map(t.map(s=>[Fp(s),!0])),n=e.filter,i=(s,o)=>{let u=o||tA.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):i(tA.dirname(s),u);return r.set(s,a),a};e.filter=n?(s,o)=>n(s,o)&&i(Fp(s)):s=>i(Fp(s))},gP=e=>{let t=new oa.Sync(e),r=e.file,n=rA.statSync(r),i=e.maxReadSize||16*1024*1024;new nA.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(t)},yP=(e,t)=>{let r=new oa(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((o,u)=>{r.on("error",u),r.on("close",o),rA.stat(i,(a,c)=>{if(a)u(a);else{let l=new nA.ReadStream(i,{readSize:n,size:c.size});l.on("error",u),l.pipe(r)}})});return t?s.then(t,t):s},EP=e=>new oa.Sync(e),bP=e=>new oa(e)});var oA=g(Ce=>{"use strict";Ce.c=Ce.create=$D();Ce.r=Ce.replace=cp();Ce.t=Ce.list=Vu();Ce.u=Ce.update=XD();Ce.x=Ce.extract=sA();Ce.Pack=Bu();Ce.Unpack=Sp();Ce.Parse=Yu();Ce.ReadEntry=gu();Ce.WriteEntry=Nh();Ce.Header=oi();Ce.Pax=Eu();Ce.types=bh()});var dA=g((vN,pA)=>{function At(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.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))}pA.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(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);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(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.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(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};At.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};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 e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(e[s]||0)+1;e[s]=o,o>=r&&(t=i,r=o)}return t}});var mA=g(pn=>{var xP=dA();pn.operation=function(e){var t=pn.timeouts(e);return new xP(t,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};pn.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(s,o){return s-o}),n};pn.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};pn.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=e[s];e[s]=function(a){var c=pn.operation(t),l=Array.prototype.slice.call(arguments,1),f=l.pop();l.push(function(p){c.retry(p)||(p&&(arguments[0]=c.mainError()),f.apply(this,arguments))}),c.attempt(function(){a.apply(e,l)})}.bind(e,o),e[s].options=t}}});var yA=g((wN,gA)=>{gA.exports=mA()});var bA=g((CN,EA)=>{var wP=yA();function CP(e,t){function r(n,i){var s=t||{},o;"randomize"in s||(s.randomize=!0),o=wP.operation(s);function u(l){i(l||new Error("Aborted"))}function a(l,f){if(l.bail){u(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,f):i(o.mainError())}function c(l){var f;try{f=e(u,l)}catch(p){a(p,l);return}Promise.resolve(f).then(n).catch(function(_){a(_,l)})}o.attempt(c)}return new Promise(r)}EA.exports=CP});var zA=Y(require("http")),YA=Y(require("https")),VA=Y(require("picocolors")),Le=require("commander");var hv=Y(i0());function Da(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xi(e){return xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xi(e)}function Aa(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function va(e,t){if(t&&(xi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aa(e)}function $r(e){return $r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$r(e)}function zt(e,t){return zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zt(e,t)}function xa(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zt(e,t)}function wa(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ca(){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 gn(e,t,r){return Ca()?gn=Reflect.construct.bind():gn=function(i,s,o){var u=[null];u.push.apply(u,s);var a=Function.bind.apply(i,u),c=new a;return o&&zt(c,o.prototype),c},gn.apply(null,arguments)}function wi(e){var t=typeof Map=="function"?new Map:void 0;return wi=function(n){if(n===null||!wa(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return gn(n,arguments,$r(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),zt(i,n)},wi(e)}var Ba=Y(D0()),Os=Y(require("path")),Ts=Y(require("fs-extra")),pv=function(e){xa(t,e);function t(r){var n;return Da(this,t),n=va(this,$r(t).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return t}(wi(Error));function dv(e,t){try{var r=Ts.default.readJsonSync(Os.default.join(e,"package.json"));if(t.current===void 0&&(t.current=e),r.workspaces||r.bolt)return e}catch(n){if(n.code!=="ENOENT")throw n}}function mv(e){try{var t=Ts.default.readJsonSync(Os.default.join(e,"lerna.json"));if(t.useWorkspaces!==!0)return e}catch(r){if(r.code!=="ENOENT")throw r}}function gv(e){var t=Ts.default.existsSync(Os.default.join(e,"pnpm-workspace.yaml"));if(t)return e}function A0(e){var t={current:void 0},r=(0,Ba.sync)(function(n){return[mv(n),dv(n,t),gv(n)].find(function(i){return i})},{cwd:e,type:"directory"});if(t.current===void 0)throw new pv(e);return r===void 0?t.current:r}var yv=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ev=/[\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]/,bv=/[\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]/,Pa={Space_Separator:yv,ID_Start:Ev,ID_Continue:bv},be={isSpaceSeparator(e){return typeof e=="string"&&Pa.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Pa.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"||Pa.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)}},La,Ye,Vt,Bs,mr,wt,Se,qa,Si,_v=function(t,r){La=String(t),Ye="start",Vt=[],Bs=0,mr=1,wt=0,Se=void 0,qa=void 0,Si=void 0;do Se=Dv(),xv[Ye]();while(Se.type!=="eof");return typeof r=="function"?Na({"":Si},"",r):Si};function Na(e,t,r){let n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){let s=String(i),o=Na(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=Na(n,i,r);s===void 0?delete n[i]:Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,n)}var Z,K,Ci,Yt,Q;function Dv(){for(Z="default",K="",Ci=!1,Yt=1;;){Q=Kt();let e=x0[Z]();if(e)return e}}function Kt(){if(La[Bs])return String.fromCodePoint(La.codePointAt(Bs))}function S(){let e=Kt();return e===`
|
|
26
|
+
`?(mr++,wt=0):e?wt+=e.length:wt++,e&&(Bs+=e.length),e}var x0={default(){switch(Q){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
|
27
|
+
`:case"\r":case"\u2028":case"\u2029":S();return;case"/":S(),Z="comment";return;case void 0:return S(),le("eof")}if(be.isSpaceSeparator(Q)){S();return}return x0[Ye]()},comment(){switch(Q){case"*":S(),Z="multiLineComment";return;case"/":S(),Z="singleLineComment";return}throw fe(S())},multiLineComment(){switch(Q){case"*":S(),Z="multiLineCommentAsterisk";return;case void 0:throw fe(S())}S()},multiLineCommentAsterisk(){switch(Q){case"*":S();return;case"/":S(),Z="default";return;case void 0:throw fe(S())}S(),Z="multiLineComment"},singleLineComment(){switch(Q){case`
|
|
28
|
+
`:case"\r":case"\u2028":case"\u2029":S(),Z="default";return;case void 0:return S(),le("eof")}S()},value(){switch(Q){case"{":case"[":return le("punctuator",S());case"n":return S(),Hr("ull"),le("null",null);case"t":return S(),Hr("rue"),le("boolean",!0);case"f":return S(),Hr("alse"),le("boolean",!1);case"-":case"+":S()==="-"&&(Yt=-1),Z="sign";return;case".":K=S(),Z="decimalPointLeading";return;case"0":K=S(),Z="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":K=S(),Z="decimalInteger";return;case"I":return S(),Hr("nfinity"),le("numeric",1/0);case"N":return S(),Hr("aN"),le("numeric",NaN);case'"':case"'":Ci=S()==='"',K="",Z="string";return}throw fe(S())},identifierNameStartEscape(){if(Q!=="u")throw fe(S());S();let e=Ma();switch(e){case"$":case"_":break;default:if(!be.isIdStartChar(e))throw v0();break}K+=e,Z="identifierName"},identifierName(){switch(Q){case"$":case"_":case"\u200C":case"\u200D":K+=S();return;case"\\":S(),Z="identifierNameEscape";return}if(be.isIdContinueChar(Q)){K+=S();return}return le("identifier",K)},identifierNameEscape(){if(Q!=="u")throw fe(S());S();let e=Ma();switch(e){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!be.isIdContinueChar(e))throw v0();break}K+=e,Z="identifierName"},sign(){switch(Q){case".":K=S(),Z="decimalPointLeading";return;case"0":K=S(),Z="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":K=S(),Z="decimalInteger";return;case"I":return S(),Hr("nfinity"),le("numeric",Yt*(1/0));case"N":return S(),Hr("aN"),le("numeric",NaN)}throw fe(S())},zero(){switch(Q){case".":K+=S(),Z="decimalPoint";return;case"e":case"E":K+=S(),Z="decimalExponent";return;case"x":case"X":K+=S(),Z="hexadecimal";return}return le("numeric",Yt*0)},decimalInteger(){switch(Q){case".":K+=S(),Z="decimalPoint";return;case"e":case"E":K+=S(),Z="decimalExponent";return}if(be.isDigit(Q)){K+=S();return}return le("numeric",Yt*Number(K))},decimalPointLeading(){if(be.isDigit(Q)){K+=S(),Z="decimalFraction";return}throw fe(S())},decimalPoint(){switch(Q){case"e":case"E":K+=S(),Z="decimalExponent";return}if(be.isDigit(Q)){K+=S(),Z="decimalFraction";return}return le("numeric",Yt*Number(K))},decimalFraction(){switch(Q){case"e":case"E":K+=S(),Z="decimalExponent";return}if(be.isDigit(Q)){K+=S();return}return le("numeric",Yt*Number(K))},decimalExponent(){switch(Q){case"+":case"-":K+=S(),Z="decimalExponentSign";return}if(be.isDigit(Q)){K+=S(),Z="decimalExponentInteger";return}throw fe(S())},decimalExponentSign(){if(be.isDigit(Q)){K+=S(),Z="decimalExponentInteger";return}throw fe(S())},decimalExponentInteger(){if(be.isDigit(Q)){K+=S();return}return le("numeric",Yt*Number(K))},hexadecimal(){if(be.isHexDigit(Q)){K+=S(),Z="hexadecimalInteger";return}throw fe(S())},hexadecimalInteger(){if(be.isHexDigit(Q)){K+=S();return}return le("numeric",Yt*Number(K))},string(){switch(Q){case"\\":S(),K+=Av();return;case'"':if(Ci)return S(),le("string",K);K+=S();return;case"'":if(!Ci)return S(),le("string",K);K+=S();return;case`
|
|
29
|
+
`:case"\r":throw fe(S());case"\u2028":case"\u2029":wv(Q);break;case void 0:throw fe(S())}K+=S()},start(){switch(Q){case"{":case"[":return le("punctuator",S())}Z="value"},beforePropertyName(){switch(Q){case"$":case"_":K=S(),Z="identifierName";return;case"\\":S(),Z="identifierNameStartEscape";return;case"}":return le("punctuator",S());case'"':case"'":Ci=S()==='"',Z="string";return}if(be.isIdStartChar(Q)){K+=S(),Z="identifierName";return}throw fe(S())},afterPropertyName(){if(Q===":")return le("punctuator",S());throw fe(S())},beforePropertyValue(){Z="value"},afterPropertyValue(){switch(Q){case",":case"}":return le("punctuator",S())}throw fe(S())},beforeArrayValue(){if(Q==="]")return le("punctuator",S());Z="value"},afterArrayValue(){switch(Q){case",":case"]":return le("punctuator",S())}throw fe(S())},end(){throw fe(S())}};function le(e,t){return{type:e,value:t,line:mr,column:wt}}function Hr(e){for(let t of e){if(Kt()!==t)throw fe(S());S()}}function Av(){switch(Kt()){case"b":return S(),"\b";case"f":return S(),"\f";case"n":return S(),`
|
|
30
|
+
`;case"r":return S(),"\r";case"t":return S()," ";case"v":return S(),"\v";case"0":if(S(),be.isDigit(Kt()))throw fe(S());return"\0";case"x":return S(),vv();case"u":return S(),Ma();case`
|
|
31
|
+
`:case"\u2028":case"\u2029":return S(),"";case"\r":return S(),Kt()===`
|
|
32
|
+
`&&S(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw fe(S());case void 0:throw fe(S())}return S()}function vv(){let e="",t=Kt();if(!be.isHexDigit(t)||(e+=S(),t=Kt(),!be.isHexDigit(t)))throw fe(S());return e+=S(),String.fromCodePoint(parseInt(e,16))}function Ma(){let e="",t=4;for(;t-- >0;){let r=Kt();if(!be.isHexDigit(r))throw fe(S());e+=S()}return String.fromCodePoint(parseInt(e,16))}var xv={start(){if(Se.type==="eof")throw Gr();Ia()},beforePropertyName(){switch(Se.type){case"identifier":case"string":qa=Se.value,Ye="afterPropertyName";return;case"punctuator":ks();return;case"eof":throw Gr()}},afterPropertyName(){if(Se.type==="eof")throw Gr();Ye="beforePropertyValue"},beforePropertyValue(){if(Se.type==="eof")throw Gr();Ia()},beforeArrayValue(){if(Se.type==="eof")throw Gr();if(Se.type==="punctuator"&&Se.value==="]"){ks();return}Ia()},afterPropertyValue(){if(Se.type==="eof")throw Gr();switch(Se.value){case",":Ye="beforePropertyName";return;case"}":ks()}},afterArrayValue(){if(Se.type==="eof")throw Gr();switch(Se.value){case",":Ye="beforeArrayValue";return;case"]":ks()}},end(){}};function Ia(){let e;switch(Se.type){case"punctuator":switch(Se.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=Se.value;break}if(Si===void 0)Si=e;else{let t=Vt[Vt.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,qa,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")Vt.push(e),Array.isArray(e)?Ye="beforeArrayValue":Ye="beforePropertyName";else{let t=Vt[Vt.length-1];t==null?Ye="end":Array.isArray(t)?Ye="afterArrayValue":Ye="afterPropertyValue"}}function ks(){Vt.pop();let e=Vt[Vt.length-1];e==null?Ye="end":Array.isArray(e)?Ye="afterArrayValue":Ye="afterPropertyValue"}function fe(e){return Ps(e===void 0?`JSON5: invalid end of input at ${mr}:${wt}`:`JSON5: invalid character '${w0(e)}' at ${mr}:${wt}`)}function Gr(){return Ps(`JSON5: invalid end of input at ${mr}:${wt}`)}function v0(){return wt-=5,Ps(`JSON5: invalid identifier character at ${mr}:${wt}`)}function wv(e){console.warn(`JSON5: '${w0(e)}' in strings is not valid ECMAScript; consider escaping`)}function w0(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let r=e.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return e}function Ps(e){let t=new SyntaxError(e);return t.lineNumber=mr,t.columnNumber=wt,t}var Cv=function(t,r,n){let i=[],s="",o,u,a="",c;if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&(n=r.space,c=r.quote,r=r.replacer),typeof r=="function")u=r;else if(Array.isArray(r)){o=[];for(let m of r){let D;typeof m=="string"?D=m:(typeof m=="number"||m instanceof String||m instanceof Number)&&(D=String(m)),D!==void 0&&o.indexOf(D)<0&&o.push(D)}}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)),a=" ".substr(0,n)):typeof n=="string"&&(a=n.substr(0,10)),l("",{"":t});function l(m,D){let A=D[m];switch(A!=null&&(typeof A.toJSON5=="function"?A=A.toJSON5(m):typeof A.toJSON=="function"&&(A=A.toJSON(m))),u&&(A=u.call(D,m,A)),A instanceof Number?A=Number(A):A instanceof String?A=String(A):A instanceof Boolean&&(A=A.valueOf()),A){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof A=="string")return f(A,!1);if(typeof A=="number")return String(A);if(typeof A=="object")return Array.isArray(A)?E(A):p(A)}function f(m){let D={"'":.1,'"':.2},A={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},R="";for(let W=0;W<m.length;W++){let L=m[W];switch(L){case"'":case'"':D[L]++,R+=L;continue;case"\0":if(be.isDigit(m[W+1])){R+="\\x00";continue}}if(A[L]){R+=A[L];continue}if(L<" "){let X=L.charCodeAt(0).toString(16);R+="\\x"+("00"+X).substring(X.length);continue}R+=L}let M=c||Object.keys(D).reduce((W,L)=>D[W]<D[L]?W:L);return R=R.replace(new RegExp(M,"g"),A[M]),M+R+M}function p(m){if(i.indexOf(m)>=0)throw TypeError("Converting circular structure to JSON5");i.push(m);let D=s;s=s+a;let A=o||Object.keys(m),R=[];for(let W of A){let L=l(W,m);if(L!==void 0){let X=_(W)+":";a!==""&&(X+=" "),X+=L,R.push(X)}}let M;if(R.length===0)M="{}";else{let W;if(a==="")W=R.join(","),M="{"+W+"}";else{let L=`,
|
|
33
|
+
`+s;W=R.join(L),M=`{
|
|
39
34
|
`+s+W+`,
|
|
40
|
-
`+
|
|
41
|
-
`+s,W=
|
|
35
|
+
`+D+"}"}}return i.pop(),s=D,M}function _(m){if(m.length===0)return f(m,!0);let D=String.fromCodePoint(m.codePointAt(0));if(!be.isIdStartChar(D))return f(m,!0);for(let A=D.length;A<m.length;A++)if(!be.isIdContinueChar(String.fromCodePoint(m.codePointAt(A))))return f(m,!0);return m}function E(m){if(i.indexOf(m)>=0)throw TypeError("Converting circular structure to JSON5");i.push(m);let D=s;s=s+a;let A=[];for(let M=0;M<m.length;M++){let W=l(String(M),m);A.push(W!==void 0?W:"null")}let R;if(A.length===0)R="[]";else if(a==="")R="["+A.join(",")+"]";else{let M=`,
|
|
36
|
+
`+s,W=A.join(M);R=`[
|
|
42
37
|
`+s+W+`,
|
|
43
|
-
`+
|
|
38
|
+
`+D+"]"}return i.pop(),s=D,R}},Sv={parse:_v,stringify:Cv},Fv=Sv,Is=Fv;var ja=Y(require("fs")),Fi=Y(require("path"));function Ri({target:e,cwd:t,contentCheck:r}){let n=Fi.default.parse(t).root,i=!1,s=t;for(;!i&&s!==n;){if(r)try{let o=ja.default.readFileSync(Fi.default.join(s,e)).toString();if(r(o)){i=!0;break}}catch{}else if(ja.default.existsSync(Fi.default.join(s,e))){i=!0;break}s=Fi.default.dirname(s)}return i?s:null}function Rv(e){let t=Is.parse(e);return!(t&&"extends"in t)}var $a={};function Oi(e,t){var s;let r=(s=t==null?void 0:t.cache)!=null?s:!0,n=e||process.cwd();if(r&&$a[n])return $a[n];let i=Ri({target:"turbo.json",cwd:n,contentCheck:Rv});if(!i)try{if(i=A0(n),!i)return null}catch{return null}return r&&($a[n]=i),i}var Xi=Y(require("fs")),Cr=Y(require("path"));function $0(e){return typeof e=="undefined"||e===null}function Ov(e){return typeof e=="object"&&e!==null}function Tv(e){return Array.isArray(e)?e:$0(e)?[]:[e]}function kv(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function Bv(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function Pv(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Iv=$0,Lv=Ov,Nv=Tv,Mv=Bv,qv=Pv,jv=kv,we={isNothing:Iv,isObject:Lv,toArray:Nv,repeat:Mv,isNegativeZero:qv,extend:jv};function H0(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
|
44
39
|
|
|
45
|
-
`+e.mark.snippet),n+" "+r):n}function
|
|
46
|
-
`+
|
|
47
|
-
`,
|
|
48
|
-
`,
|
|
49
|
-
`;return
|
|
50
|
-
\r`;function
|
|
51
|
-
`: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
|
|
52
|
-
`,t-1))}function
|
|
53
|
-
`,s?1+
|
|
54
|
-
`);break}for(n?
|
|
55
|
-
`,s?1+
|
|
56
|
-
`,
|
|
57
|
-
`,
|
|
58
|
-
`,s?1+
|
|
59
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new
|
|
60
|
-
`,n),i===-1?(o=e.slice(n),n=
|
|
61
|
-
`&&(s+=r),s+=o;return s}function
|
|
62
|
-
`+
|
|
40
|
+
`+e.mark.snippet),n+" "+r):n}function ki(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=H0(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ki.prototype=Object.create(Error.prototype);ki.prototype.constructor=ki;ki.prototype.toString=function(t){return this.name+": "+H0(this,t)};var Ve=ki;function Ha(e,t,r,n,i){var s="",o="",u=Math.floor(i/2)-1;return n-t>u&&(s=" ... ",t=n-u+s.length),r-n>u&&(o=" ...",r=n+u-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function Ga(e,t){return we.repeat(" ",t-e.length)+e}function $v(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var u="",a,c,l=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+l+3);for(a=1;a<=t.linesBefore&&!(o-a<0);a++)c=Ha(e.buffer,n[o-a],i[o-a],e.position-(n[o]-n[o-a]),f),u=we.repeat(" ",t.indent)+Ga((e.line-a+1).toString(),l)+" | "+c.str+`
|
|
41
|
+
`+u;for(c=Ha(e.buffer,n[o],i[o],e.position,f),u+=we.repeat(" ",t.indent)+Ga((e.line+1).toString(),l)+" | "+c.str+`
|
|
42
|
+
`,u+=we.repeat("-",t.indent+l+3+c.pos)+`^
|
|
43
|
+
`,a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=Ha(e.buffer,n[o+a],i[o+a],e.position-(n[o]-n[o+a]),f),u+=we.repeat(" ",t.indent)+Ga((e.line+a+1).toString(),l)+" | "+c.str+`
|
|
44
|
+
`;return u.replace(/\n$/,"")}var Hv=$v,Gv=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Uv=["scalar","sequence","mapping"];function Wv(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function zv(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Gv.indexOf(r)===-1)throw new Ve('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Wv(t.styleAliases||null),Uv.indexOf(this.kind)===-1)throw new Ve('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Pe=zv;function C0(e,t){var r=[];return e[t].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 Yv(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(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(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Wa(e){return this.extend(e)}Wa.prototype.extend=function(t){var r=[],n=[];if(t instanceof Pe)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new Ve("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Pe))throw new Ve("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Ve("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 Ve("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 Ve("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Wa.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=C0(i,"implicit"),i.compiledExplicit=C0(i,"explicit"),i.compiledTypeMap=Yv(i.compiledImplicit,i.compiledExplicit),i};var G0=Wa,U0=new Pe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),W0=new Pe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),z0=new Pe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Y0=new G0({explicit:[U0,W0,z0]});function Vv(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Kv(){return null}function Xv(e){return e===null}var V0=new Pe("tag:yaml.org,2002:null",{kind:"scalar",resolve:Vv,construct:Kv,predicate:Xv,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Zv(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function Jv(e){return e==="true"||e==="True"||e==="TRUE"}function Qv(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var K0=new Pe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Zv,construct:Jv,predicate:Qv,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 ex(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function tx(e){return 48<=e&&e<=55}function rx(e){return 48<=e&&e<=57}function nx(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!ex(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!tx(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!rx(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function ix(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function sx(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!we.isNegativeZero(e)}var X0=new Pe("tag:yaml.org,2002:int",{kind:"scalar",resolve:nx,construct:ix,predicate:sx,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"]}}),ox=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ux(e){return!(e===null||!ox.test(e)||e[e.length-1]==="_")}function ax(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var cx=/^[-+]?[0-9]+e/;function lx(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(we.isNegativeZero(e))return"-0.0";return r=e.toString(10),cx.test(r)?r.replace("e",".e"):r}function fx(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||we.isNegativeZero(e))}var Z0=new Pe("tag:yaml.org,2002:float",{kind:"scalar",resolve:ux,construct:ax,predicate:fx,represent:lx,defaultStyle:"lowercase"}),J0=Y0.extend({implicit:[V0,K0,X0,Z0]}),Q0=J0,ed=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),td=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 hx(e){return e===null?!1:ed.exec(e)!==null||td.exec(e)!==null}function px(e){var t,r,n,i,s,o,u,a=0,c=null,l,f,p;if(t=ed.exec(e),t===null&&(t=td.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],u=+t[6],t[7]){for(a=t[7].slice(0,3);a.length<3;)a+="0";a=+a}return t[9]&&(l=+t[10],f=+(t[11]||0),c=(l*60+f)*6e4,t[9]==="-"&&(c=-c)),p=new Date(Date.UTC(r,n,i,s,o,u,a)),c&&p.setTime(p.getTime()-c),p}function dx(e){return e.toISOString()}var rd=new Pe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:hx,construct:px,instanceOf:Date,represent:dx});function mx(e){return e==="<<"||e===null}var nd=new Pe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:mx}),Xa=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
45
|
+
\r`;function gx(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Xa;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function yx(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Xa,o=0,u=[];for(t=0;t<i;t++)t%4===0&&t&&(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)):r===18?(u.push(o>>10&255),u.push(o>>2&255)):r===12&&u.push(o>>4&255),new Uint8Array(u)}function Ex(e){var t="",r=0,n,i,s=e.length,o=Xa;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function bx(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var id=new Pe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:gx,construct:yx,predicate:bx,represent:Ex}),_x=Object.prototype.hasOwnProperty,Dx=Object.prototype.toString;function Ax(e){if(e===null)return!0;var t=[],r,n,i,s,o,u=e;for(r=0,n=u.length;r<n;r+=1){if(i=u[r],o=!1,Dx.call(i)!=="[object Object]")return!1;for(s in i)if(_x.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function vx(e){return e!==null?e:[]}var sd=new Pe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ax,construct:vx}),xx=Object.prototype.toString;function wx(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],xx.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function Cx(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var od=new Pe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:wx,construct:Cx}),Sx=Object.prototype.hasOwnProperty;function Fx(e){if(e===null)return!0;var t,r=e;for(t in r)if(Sx.call(r,t)&&r[t]!==null)return!1;return!0}function Rx(e){return e!==null?e:{}}var ud=new Pe("tag:yaml.org,2002:set",{kind:"mapping",resolve:Fx,construct:Rx}),Za=Q0.extend({implicit:[rd,nd],explicit:[id,sd,od,ud]}),yr=Object.prototype.hasOwnProperty,Ls=1,ad=2,cd=3,Ns=4,Ua=1,Ox=2,S0=3,Tx=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,kx=/[\x85\u2028\u2029]/,Bx=/[,\[\]\{\}]/,ld=/^(?:!|!!|![a-z\-]+!)$/i,fd=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function F0(e){return Object.prototype.toString.call(e)}function Rt(e){return e===10||e===13}function Wr(e){return e===9||e===32}function Ze(e){return e===9||e===32||e===10||e===13}function bn(e){return e===44||e===91||e===93||e===123||e===125}function Px(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Ix(e){return e===120?2:e===117?4:e===85?8:0}function Lx(e){return 48<=e&&e<=57?e-48:-1}function R0(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
46
|
+
`: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 Nx(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var hd=new Array(256),pd=new Array(256);for(Ur=0;Ur<256;Ur++)hd[Ur]=R0(Ur)?1:0,pd[Ur]=R0(Ur);var Ur;function Mx(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Za,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.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 dd(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=Hv(r),new Ve(t,r)}function H(e,t){throw dd(e,t)}function Ms(e,t){e.onWarning&&e.onWarning.call(null,dd(e,t))}var O0={YAML:function(t,r,n){var i,s,o;t.version!==null&&H(t,"duplication of %YAML directive"),n.length!==1&&H(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&H(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&H(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&Ms(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&H(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],ld.test(i)||H(t,"ill-formed tag handle (first argument) of the TAG directive"),yr.call(t.tagMap,i)&&H(t,'there is a previously declared suffix for "'+i+'" tag handle'),fd.test(s)||H(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{H(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function gr(e,t,r,n){var i,s,o,u;if(t<r){if(u=e.input.slice(t,r),n)for(i=0,s=u.length;i<s;i+=1)o=u.charCodeAt(i),o===9||32<=o&&o<=1114111||H(e,"expected valid JSON character");else Tx.test(u)&&H(e,"the stream contains non-printable characters");e.result+=u}}function T0(e,t,r,n){var i,s,o,u;for(we.isObject(r)||H(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,u=i.length;o<u;o+=1)s=i[o],yr.call(t,s)||(t[s]=r[s],n[s]=!0)}function _n(e,t,r,n,i,s,o,u,a){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])&&H(e,"nested arrays are not supported inside keys"),typeof i=="object"&&F0(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&F0(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,l=s.length;c<l;c+=1)T0(e,t,s[c],r);else T0(e,t,s,r);else!e.json&&!yr.call(r,i)&&yr.call(t,i)&&(e.line=o||e.line,e.lineStart=u||e.lineStart,e.position=a||e.position,H(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function Ja(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):H(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ae(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Wr(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Rt(i))for(Ja(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Ms(e,"deficient indentation"),n}function $s(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Ze(r)))}function Qa(e,t){t===1?e.result+=" ":t>1&&(e.result+=we.repeat(`
|
|
47
|
+
`,t-1))}function qx(e,t,r){var n,i,s,o,u,a,c,l,f=e.kind,p=e.result,_;if(_=e.input.charCodeAt(e.position),Ze(_)||bn(_)||_===35||_===38||_===42||_===33||_===124||_===62||_===39||_===34||_===37||_===64||_===96||(_===63||_===45)&&(i=e.input.charCodeAt(e.position+1),Ze(i)||r&&bn(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,u=!1;_!==0;){if(_===58){if(i=e.input.charCodeAt(e.position+1),Ze(i)||r&&bn(i))break}else if(_===35){if(n=e.input.charCodeAt(e.position-1),Ze(n))break}else{if(e.position===e.lineStart&&$s(e)||r&&bn(_))break;if(Rt(_))if(a=e.line,c=e.lineStart,l=e.lineIndent,Ae(e,!1,-1),e.lineIndent>=t){u=!0,_=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=a,e.lineStart=c,e.lineIndent=l;break}}u&&(gr(e,s,o,!1),Qa(e,e.line-a),s=o=e.position,u=!1),Wr(_)||(o=e.position+1),_=e.input.charCodeAt(++e.position)}return gr(e,s,o,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function jx(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(gr(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Rt(r)?(gr(e,n,i,!0),Qa(e,Ae(e,!1,t)),n=i=e.position):e.position===e.lineStart&&$s(e)?H(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);H(e,"unexpected end of the stream within a single quoted scalar")}function $x(e,t){var r,n,i,s,o,u;if(u=e.input.charCodeAt(e.position),u!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(u=e.input.charCodeAt(e.position))!==0;){if(u===34)return gr(e,r,e.position,!0),e.position++,!0;if(u===92){if(gr(e,r,e.position,!0),u=e.input.charCodeAt(++e.position),Rt(u))Ae(e,!1,t);else if(u<256&&hd[u])e.result+=pd[u],e.position++;else if((o=Ix(u))>0){for(i=o,s=0;i>0;i--)u=e.input.charCodeAt(++e.position),(o=Px(u))>=0?s=(s<<4)+o:H(e,"expected hexadecimal character");e.result+=Nx(s),e.position++}else H(e,"unknown escape sequence");r=n=e.position}else Rt(u)?(gr(e,r,n,!0),Qa(e,Ae(e,!1,t)),r=n=e.position):e.position===e.lineStart&&$s(e)?H(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}H(e,"unexpected end of the stream within a double quoted scalar")}function Hx(e,t){var r=!0,n,i,s,o=e.tag,u,a=e.anchor,c,l,f,p,_,E=Object.create(null),m,D,A,R;if(R=e.input.charCodeAt(e.position),R===91)l=93,_=!1,u=[];else if(R===123)l=125,_=!0,u={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),R=e.input.charCodeAt(++e.position);R!==0;){if(Ae(e,!0,t),R=e.input.charCodeAt(e.position),R===l)return e.position++,e.tag=o,e.anchor=a,e.kind=_?"mapping":"sequence",e.result=u,!0;r?R===44&&H(e,"expected the node content, but found ','"):H(e,"missed comma between flow collection entries"),D=m=A=null,f=p=!1,R===63&&(c=e.input.charCodeAt(e.position+1),Ze(c)&&(f=p=!0,e.position++,Ae(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,Dn(e,t,Ls,!1,!0),D=e.tag,m=e.result,Ae(e,!0,t),R=e.input.charCodeAt(e.position),(p||e.line===n)&&R===58&&(f=!0,R=e.input.charCodeAt(++e.position),Ae(e,!0,t),Dn(e,t,Ls,!1,!0),A=e.result),_?_n(e,u,E,D,m,A,n,i,s):f?u.push(_n(e,null,E,D,m,A,n,i,s)):u.push(m),Ae(e,!0,t),R=e.input.charCodeAt(e.position),R===44?(r=!0,R=e.input.charCodeAt(++e.position)):r=!1}H(e,"unexpected end of the stream within a flow collection")}function Gx(e,t){var r,n,i=Ua,s=!1,o=!1,u=t,a=0,c=!1,l,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Ua===i?i=f===43?S0:Ox:H(e,"repeat of a chomping mode identifier");else if((l=Lx(f))>=0)l===0?H(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?H(e,"repeat of an indentation width identifier"):(u=t+l-1,o=!0);else break;if(Wr(f)){do f=e.input.charCodeAt(++e.position);while(Wr(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Rt(f)&&f!==0)}for(;f!==0;){for(Ja(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndent<u)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>u&&(u=e.lineIndent),Rt(f)){a++;continue}if(e.lineIndent<u){i===S0?e.result+=we.repeat(`
|
|
48
|
+
`,s?1+a:a):i===Ua&&s&&(e.result+=`
|
|
49
|
+
`);break}for(n?Wr(f)?(c=!0,e.result+=we.repeat(`
|
|
50
|
+
`,s?1+a:a)):c?(c=!1,e.result+=we.repeat(`
|
|
51
|
+
`,a+1)):a===0?s&&(e.result+=" "):e.result+=we.repeat(`
|
|
52
|
+
`,a):e.result+=we.repeat(`
|
|
53
|
+
`,s?1+a:a),s=!0,o=!0,a=0,r=e.position;!Rt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);gr(e,r,e.position,!1)}return!0}function k0(e,t){var r,n=e.tag,i=e.anchor,s=[],o,u=!1,a;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),a=e.input.charCodeAt(e.position);a!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,H(e,"tab characters must not be used in indentation")),!(a!==45||(o=e.input.charCodeAt(e.position+1),!Ze(o))));){if(u=!0,e.position++,Ae(e,!0,-1)&&e.lineIndent<=t){s.push(null),a=e.input.charCodeAt(e.position);continue}if(r=e.line,Dn(e,t,cd,!1,!0),s.push(e.result),Ae(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&a!==0)H(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return u?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function Ux(e,t,r){var n,i,s,o,u,a,c=e.tag,l=e.anchor,f={},p=Object.create(null),_=null,E=null,m=null,D=!1,A=!1,R;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),R=e.input.charCodeAt(e.position);R!==0;){if(!D&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,H(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(R===63||R===58)&&Ze(n))R===63?(D&&(_n(e,f,p,_,E,null,o,u,a),_=E=m=null),A=!0,D=!0,i=!0):D?(D=!1,i=!0):H(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,R=n;else{if(o=e.line,u=e.lineStart,a=e.position,!Dn(e,r,ad,!1,!0))break;if(e.line===s){for(R=e.input.charCodeAt(e.position);Wr(R);)R=e.input.charCodeAt(++e.position);if(R===58)R=e.input.charCodeAt(++e.position),Ze(R)||H(e,"a whitespace character is expected after the key-value separator within a block mapping"),D&&(_n(e,f,p,_,E,null,o,u,a),_=E=m=null),A=!0,D=!1,i=!1,_=e.tag,E=e.result;else if(A)H(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=l,!0}else if(A)H(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=l,!0}if((e.line===s||e.lineIndent>t)&&(D&&(o=e.line,u=e.lineStart,a=e.position),Dn(e,t,Ns,!0,i)&&(D?E=e.result:m=e.result),D||(_n(e,f,p,_,E,m,o,u,a),_=E=m=null),Ae(e,!0,-1),R=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&R!==0)H(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return D&&_n(e,f,p,_,E,null,o,u,a),A&&(e.tag=c,e.anchor=l,e.kind="mapping",e.result=f),A}function Wx(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&H(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):H(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Ze(o);)o===33&&(n?H(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),ld.test(i)||H(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Bx.test(s)&&H(e,"tag suffix cannot contain flow indicator characters")}s&&!fd.test(s)&&H(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{H(e,"tag name is malformed: "+s)}return r?e.tag=s:yr.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:H(e,'undeclared tag handle "'+i+'"'),!0}function zx(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&H(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ze(r)&&!bn(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&H(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Yx(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Ze(n)&&!bn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&H(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),yr.call(e.anchorMap,r)||H(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Ae(e,!0,-1),!0}function Dn(e,t,r,n,i){var s,o,u,a=1,c=!1,l=!1,f,p,_,E,m,D;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=u=Ns===r||cd===r,n&&Ae(e,!0,-1)&&(c=!0,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)),a===1)for(;Wx(e)||zx(e);)Ae(e,!0,-1)?(c=!0,u=s,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)):u=!1;if(u&&(u=c||i),(a===1||Ns===r)&&(Ls===r||ad===r?m=t:m=t+1,D=e.position-e.lineStart,a===1?u&&(k0(e,D)||Ux(e,D,m))||Hx(e,m)?l=!0:(o&&Gx(e,m)||jx(e,m)||$x(e,m)?l=!0:Yx(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&H(e,"alias node should not have any properties")):qx(e,m,Ls===r)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(l=u&&k0(e,D))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&H(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f<p;f+=1)if(E=e.implicitTypes[f],E.resolve(e.result)){e.result=E.construct(e.result),e.tag=E.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(yr.call(e.typeMap[e.kind||"fallback"],e.tag))E=e.typeMap[e.kind||"fallback"][e.tag];else for(E=null,_=e.typeMap.multi[e.kind||"fallback"],f=0,p=_.length;f<p;f+=1)if(e.tag.slice(0,_[f].tag.length)===_[f].tag){E=_[f];break}E||H(e,"unknown tag !<"+e.tag+">"),e.result!==null&&E.kind!==e.kind&&H(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+E.kind+'", not "'+e.kind+'"'),E.resolve(e.result,e.tag)?(e.result=E.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):H(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 Vx(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Ae(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!Ze(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&H(e,"directive name must not be less than one character in length");o!==0;){for(;Wr(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Rt(o));break}if(Rt(o))break;for(r=e.position;o!==0&&!Ze(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&Ja(e),yr.call(O0,n)?O0[n](e,n,i):Ms(e,'unknown document directive "'+n+'"')}if(Ae(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,Ae(e,!0,-1)):s&&H(e,"directives end mark is expected"),Dn(e,e.lineIndent-1,Ns,!1,!0),Ae(e,!0,-1),e.checkLineBreaks&&kx.test(e.input.slice(t,e.position))&&Ms(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&$s(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ae(e,!0,-1));return}if(e.position<e.length-1)H(e,"end of the stream or a document separator is expected");else return}function md(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
54
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Mx(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,H(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;)Vx(r);return r.documents}function Kx(e,t,r){t!==null&&typeof t=="object"&&typeof r=="undefined"&&(r=t,t=null);var n=md(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function Xx(e,t){var r=md(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Ve("expected a single document in the stream, but found more")}}var Zx=Kx,Jx=Xx,gd={loadAll:Zx,load:Jx},yd=Object.prototype.toString,Ed=Object.prototype.hasOwnProperty,ec=65279,Qx=9,Bi=10,ew=13,tw=32,rw=33,nw=34,za=35,iw=37,sw=38,ow=39,uw=42,bd=44,aw=45,qs=58,cw=61,lw=62,fw=63,hw=64,_d=91,Dd=93,pw=96,Ad=123,dw=124,vd=125,Ne={};Ne[0]="\\0";Ne[7]="\\a";Ne[8]="\\b";Ne[9]="\\t";Ne[10]="\\n";Ne[11]="\\v";Ne[12]="\\f";Ne[13]="\\r";Ne[27]="\\e";Ne[34]='\\"';Ne[92]="\\\\";Ne[133]="\\N";Ne[160]="\\_";Ne[8232]="\\L";Ne[8233]="\\P";var mw=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],gw=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function yw(e,t){var r,n,i,s,o,u,a;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],u=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),a=e.compiledTypeMap.fallback[o],a&&Ed.call(a.styleAliases,u)&&(u=a.styleAliases[u]),r[o]=u;return r}function Ew(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Ve("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+we.repeat("0",n-t.length)+t}var bw=1,Pi=2;function _w(e){this.schema=e.schema||Za,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=we.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=yw(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==='"'?Pi:bw,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 B0(e,t){for(var r=we.repeat(" ",t),n=0,i=-1,s="",o,u=e.length;n<u;)i=e.indexOf(`
|
|
55
|
+
`,n),i===-1?(o=e.slice(n),n=u):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
|
|
56
|
+
`&&(s+=r),s+=o;return s}function Ya(e,t){return`
|
|
57
|
+
`+we.repeat(" ",e.indent*t)}function Dw(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function js(e){return e===tw||e===Qx}function Ii(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==ec||65536<=e&&e<=1114111}function P0(e){return Ii(e)&&e!==ec&&e!==ew&&e!==Bi}function I0(e,t,r){var n=P0(e),i=n&&!js(e);return(r?n:n&&e!==bd&&e!==_d&&e!==Dd&&e!==Ad&&e!==vd)&&e!==za&&!(t===qs&&!i)||P0(t)&&!js(t)&&e===za||t===qs&&i}function Aw(e){return Ii(e)&&e!==ec&&!js(e)&&e!==aw&&e!==fw&&e!==qs&&e!==bd&&e!==_d&&e!==Dd&&e!==Ad&&e!==vd&&e!==za&&e!==sw&&e!==uw&&e!==rw&&e!==dw&&e!==cw&&e!==lw&&e!==ow&&e!==nw&&e!==iw&&e!==hw&&e!==pw}function vw(e){return!js(e)&&e!==qs}function Ti(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function xd(e){var t=/^\n* /;return t.test(e)}var wd=1,Va=2,Cd=3,Sd=4,En=5;function xw(e,t,r,n,i,s,o,u){var a,c=0,l=null,f=!1,p=!1,_=n!==-1,E=-1,m=Aw(Ti(e,0))&&vw(Ti(e,e.length-1));if(t||o)for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=Ti(e,a),!Ii(c))return En;m=m&&I0(c,l,u),l=c}else{for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=Ti(e,a),c===Bi)f=!0,_&&(p=p||a-E-1>n&&e[E+1]!==" ",E=a);else if(!Ii(c))return En;m=m&&I0(c,l,u),l=c}p=p||_&&a-E-1>n&&e[E+1]!==" "}return!f&&!p?m&&!o&&!i(e)?wd:s===Pi?En:Va:r>9&&xd(e)?En:o?s===Pi?En:Va:p?Sd:Cd}function ww(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===Pi?'""':"''";if(!e.noCompatMode&&(mw.indexOf(t)!==-1||gw.test(t)))return e.quotingType===Pi?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),u=n||e.flowLevel>-1&&r>=e.flowLevel;function a(c){return Dw(e,c)}switch(xw(t,u,e.indent,o,a,e.quotingType,e.forceQuotes&&!n,i)){case wd:return t;case Va:return"'"+t.replace(/'/g,"''")+"'";case Cd:return"|"+L0(t,e.indent)+N0(B0(t,s));case Sd:return">"+L0(t,e.indent)+N0(B0(Cw(t,o),s));case En:return'"'+Sw(t)+'"';default:throw new Ve("impossible error: invalid scalar style")}}()}function L0(e,t){var r=xd(e)?String(t):"",n=e[e.length-1]===`
|
|
63
58
|
`,i=n&&(e[e.length-2]===`
|
|
64
59
|
`||e===`
|
|
65
60
|
`),s=i?"+":n?"":"-";return r+s+`
|
|
66
|
-
`}function
|
|
67
|
-
`?e.slice(0,-1):e}function
|
|
68
|
-
`);return c=c!==-1?c:e.length,r.lastIndex=c,
|
|
69
|
-
`||e[0]===" ",s,o;o=r.exec(e);){var
|
|
70
|
-
`:"")+
|
|
71
|
-
`+e.slice(i,s),i=s+1),o=
|
|
72
|
-
`,e.length-i>t&&o>i?
|
|
73
|
-
`+e.slice(o+1):
|
|
74
|
-
`:""}var
|
|
75
|
-
Please use either turbo.json or turbo.jsonc, but not both.`;throw
|
|
76
|
-
|
|
77
|
-
`,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1))}let o=ts.default.resolve(e);await um(ts.default.dirname(o))||(Ye("The application path is not writable, please check folder permissions and try again."),Ye("It is likely you do not have write permissions for this folder."),process.exit(1));let a=ts.default.basename(o);try{await Cc.default.mkdir(o,{recursive:!0})}catch(b){Ye("Unable to create project directory"),Ye(b),process.exit(1)}let{isEmpty:u,conflicts:c}=Bs(o);u||(Ye(`${Nn.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),lt();let f=qh("Downloading files... (This might take a moment)");try{!r&&i?(f.start(),await(0,cm.default)(()=>sm(o,i),{retries:3})):(f.start(),await(0,cm.default)(()=>om(o,t),{retries:3}))}catch(b){throw new Sc(v9(b)?b.message:String(b))}finally{f.stop()}let h=ts.default.join(o,"package.json"),p=Cc.default.existsSync(h),m=[];if(p){let b;try{b=Cc.default.readJsonSync(h)}catch{}b&&m.push(...Object.keys(b.scripts||{}))}let g=e;return ts.default.join(l,a)===e&&(g=a),{cdPath:g,hasPackageJson:p,availableScripts:m,repoInfo:i}}function fm(e,t={to:"camel"}){switch(t.to){case"camel":return e.replace(/(?:[-_][a-z])/g,r=>r.toUpperCase().replace("-","").replace("_",""));default:throw new Error("Not implemented")}}var Rc=X(require("picocolors")),gS=X(require("update-check"));function hm(e){let{packageInfo:t,upgradeCommand:r}=e,n=(0,gS.default)(t).catch(()=>null);return async function(s=0){try{let o=await n;if(o!=null&&o.latest){lt(),lt(Rc.default.yellow(Rc.default.bold(`A new version of \`${t.name}\` is available!`)));let a=typeof r=="function"?await r():r;a&<(`You can update by running: ${Rc.default.cyan(a)}`),lt()}process.exit(s)}catch(o){process.env.DEBUG&&Ye("Update check failed:",o),process.exit(s)}}}var WS=require("proxy-agent");var dm={name:"@turbo/gen",version:"2.7.1",description:"Extend a Turborepo",type:"commonjs",homepage:"https://turborepo.com",license:"MIT",repository:{type:"git",url:"git+https://github.com/vercel/turborepo.git",directory:"packages/turbo-gen"},bugs:{url:"https://github.com/vercel/turborepo/issues"},bin:"dist/cli.js",types:"dist/types.d.ts",scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","package:types":"attw --profile node16 --pack"},dependencies:{"@turbo/workspaces":"workspace:*",commander:"10.0.0","fs-extra":"10.1.0",inquirer:"8.2.4",minimatch:"9.0.0","node-plop":"0.26.3",picocolors:"1.0.1","proxy-agent":"6.5.0","ts-node":"10.9.2","update-check":"1.5.4","validate-npm-package-name":"5.0.0"},devDependencies:{"@arethetypeswrong/cli":"0.18.2","@jest/globals":"29.7.0","@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/node":"18.17.4","@types/validate-npm-package-name":"4.0.0",jest:"29.7.0","ts-jest":"29.2.5",tsup:"6.7.0",typescript:"5.5.4"},files:["dist"],publishConfig:{access:"public"}};var yS=require("@turbo/workspaces");async function Fc({root:e}){let t=e||process.cwd(),r=cs(t);if(!r)N.error("Unable to infer repository root - override with --root");else try{return(0,yS.getWorkspaceDetails)({root:r})}catch{N.error(`Unable to determine workspace details. Make sure "${t}" is the root, or add "packageManager" to "package.json" or ensure a lockfile is present.`)}process.exit(1)}var Tr=X(require("path")),Oc=X(require("fs-extra")),Tc=X(require("node-plop")),_S=require("ts-node"),bS=require("inquirer");var $e=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,$e)}};var ES=["ts","js","cjs"],D9=Tr.default.join("turbo","generators"),wS=ES.map(e=>Tr.default.join(D9,`config.${e}`)),x9=[...wS,...ES.map(e=>Tr.default.join(`plopfile.${e}`))];function vS({project:e,configPath:t}){(0,_S.register)({transpileOnly:!0,cwd:e.paths.root,compilerOptions:{module:"nodenext",moduleResolution:"nodenext"}});let r=S9({project:e}),n;if(t){if(!Oc.default.existsSync(t))throw new $e(`No config at "${t}"`,{type:"plop_no_config"});try{n=(0,Tc.default)(t,{destBasePath:t,force:!1})}catch(i){N.error(i)}}else{for(let i of x9){let s=Tr.default.join(e.paths.root,i);if(Oc.default.existsSync(s))try{n=(0,Tc.default)(s,{destBasePath:e.paths.root,force:!1});break}catch(o){N.error(o)}}!n&&r.length>0&&(n=(0,Tc.default)(r[0].config,{destBasePath:r[0].root,force:!1}),r.shift())}return n&&r.forEach(i=>{try{n.load(i.config,{destBasePath:i.root,force:!1})}catch(s){N.error(s)}}),n}function pm({project:e,configPath:t}){let r=vS({project:e,configPath:t});if(!r)return[];let i=r.getGeneratorList().map(a=>r.getGenerator(a.name)),s={};i.forEach(a=>{let u=a,c=e.workspaceData.workspaces.find(l=>{if(u.basePath===e.paths.root)return!1;let f=u.basePath.split(Tr.default.sep);return f.pop(),f.pop(),Tr.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 bS.Separator(a)),o.push(...s[a])}),o}function C9({project:e,generator:t}){let r={cwd:process.cwd(),root:e.paths.root,workspace:t.basePath?us({cwd:t.basePath,target:"package.json"}):void 0},n={};try{n=$h(t.basePath)}catch{}return{turbo:{paths:r,configs:n}}}function S9({project:e}){let t=[];return e.workspaceData.workspaces.forEach(r=>{for(let n of wS)Oc.default.existsSync(Tr.default.join(r.paths.root,n))&&t.push({config:Tr.default.join(r.paths.root,n),root:r.paths.root})}),t}async function AS({project:e,generator:t,bypassArgs:r,configPath:n}){let i=vS({project:e,configPath:n});if(!i)throw new $e("Unable to load generators",{type:"plop_unable_to_load_config"});let s=i.getGenerator(t);if(!s)throw new $e(`Generator ${t} not found`,{type:"plop_generator_not_found"});let o=await s.runPrompts(r),a=await s.runActions({...o,...C9({project:e,generator:s})},{onComment:u=>{N.dimmed(u)}});if(a.failures.length>0)throw a.failures.forEach(u=>{u instanceof Error?N.error(`Error - ${u.message}`):N.error(`Error - ${u.error}. Unable to ${u.type} to "${u.path}"`)}),new $e(`Failed to run "${t}" generator`,{type:"plop_error_running_generator"});a.changes.length>0&&(N.info("Changes made:"),a.changes.forEach(u=>{u.path&&N.item(`${u.path} (${u.type})`)}))}var Mn=require("inquirer");async function DS({generators:e,generator:t}){if(t){if(e.find(n=>!(n instanceof Mn.Separator)&&n.name===t))return{selectedGenerator:t};N.warn(`Generator "${t}" not found`),N.log()}return await(0,Mn.prompt)({type:"list",name:"selectedGenerator",message:"Select generator to run",choices:e.map(n=>n instanceof Mn.Separator?n:{name:n.description?` ${n.name}: ${n.description}`:` ${n.name}`,value:n.name})})}async function xS(){return(0,Mn.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 CS({message:e}){return(0,Mn.prompt)({type:"confirm",name:"answer",message:e})}var mm=X(require("path")),gm=X(require("fs-extra"));async function SS({project:e,template:t}){let r=mm.default.join(e.paths.root,"turbo","generators"),n=`simple-${t}`;if(await gm.default.pathExists(r))throw new $e(`Generator config directory already exists at ${r}`,{type:"config_directory_already_exists"});await gm.default.copy(mm.default.join(__dirname,"templates",n),r,{recursive:!0})}async function ym({generator:e,project:t,opts:r}){let n=!1,i=pm({project:t,configPath:r.config});if(!i.length){N.error("No generators found."),N.log();let{answer:o}=await CS({message:`Would you like to add a config with a sample custom generator to ${t.name}?`});if(o){n=!0;let{answer:a}=await xS();try{await SS({project:t,template:a})}catch(u){throw u instanceof $e||N.error("Failed to create generator config"),u}if(N.log(),N.info("Generator config successfully created!"),N.info("Loading generator config..."),N.log(),i=pm({project:t,configPath:r.config}),!i.length){N.error("Error loading generator");return}}else{N.log(),N.dimmed("Learn more about custom Turborepo generators - https://turborepo.com/docs/guides/generating-code#custom-generators");return}}let{selectedGenerator:s}=await DS({generators:i,generator:e});try{await AS({project:t,generator:s,bypassArgs:r.args,configPath:r.config})}catch(o){if(o instanceof $e)throw o;let a="Failed to run generator";throw o instanceof Error&&(a=o.message),new $e(a,{type:"plop_error_running_generator"})}finally{n&&(N.log(),N.info("Congrats! You just ran your first Turborepo generator"),N.dimmed("Learn more about custom Turborepo generators - https://turborepo.com/docs/guides/generating-code#custom-generators"))}N.log(),N.bold(N.turboGradient(">>> Success!"))}var wm=X(require("path")),Ic=X(require("fs-extra")),MS=X(require("picocolors"));var ho=X(require("path")),OS=X(require("fs-extra")),It=require("inquirer"),kS=require("minimatch"),Em=X(require("validate-npm-package-name"));var _m=X(require("path"));var RS=X(require("path"));function FS({project:e}){let r=e.workspaceData.workspaces.map(i=>RS.default.relative(e.paths.root,i.paths.root)),n=new Set;return e.workspaceData.globs.forEach(i=>{if(!r.includes(i)){if(!i.startsWith("!")){let o=i.split("/")[0];n.add(o)}}}),Array.from(n)}function bm({project:e,workspace:t}){return _m.default.relative(e.paths.root,t.paths.root).split(_m.default.sep)[0]}function kc({project:e}){let t=FS({project:e}),r=t.includes("apps"),n=t.includes("packages"),i={},s=[];return e.workspaceData.workspaces.forEach(o=>{let a=bm({project:e,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 TS=require("inquirer");function Pc({project:e,type:t,showAllDependencies:r}){let n=kc({project:e}),i=[],s=e.workspaceData.workspaces;r||(t==="app"&&n.hasRootApps?s=n.workspacesByGroup.apps:t==="package"&&n.nonAppWorkspaces.length>0&&(s=n.nonAppWorkspaces));let o;return s.forEach(a=>{let u=bm({project:e,workspace:a});u!==o&&i.push(new TS.Separator(u)),o=u,i.push(a)}),i}async function PS({override:e,suggestion:t,workspaceType:r}){let{validForNewPackages:n}=(0,Em.default)(e||"");return e&&n?{answer:e}:(0,It.prompt)({type:"input",name:"answer",default:t,validate:i=>{let{validForNewPackages:s}=(0,Em.default)(i);return s||`Invalid ${r} name`},message:`What is the name of the ${r}?`})}async function BS({override:e,message:t}){return e?{answer:e}:(0,It.prompt)({type:"list",name:"answer",message:t!=null?t:"What type of workspace should be added?",choices:[{name:"app",value:"app"},{name:"package",value:"package"}]})}async function IS({workspaceType:e,workspaceName:t,destination:r,project:n}){let i=t.includes("/")?t.split("/")[1]:t;if(r){let{valid:u,root:c}=Wa(r);if(u)return{absolute:c,relative:ho.default.relative(n.paths.root,c)}}let s,o=kc({project:n});e==="app"&&o.hasRootApps?s=`${n.paths.root}/apps/${i}`:e==="package"&&o.hasRootPackages&&(s=`${n.paths.root}/packages/${i}`);let{answer:a}=await(0,It.prompt)({type:"input",name:"answer",message:`Where should "${t}" be added?`,default:s?ho.default.relative(n.paths.root,s):void 0,validate:u=>{let c=ho.default.join(n.paths.root,u),{valid:l,error:f}=Wa(c),h=n.workspaceData.globs.some(p=>(0,kS.minimatch)(u,p));return l&&h?!0:h?f:`${u} is not a valid workspace location`}});return{absolute:ho.default.join(n.paths.root,a),relative:a}}async function LS({override:e,workspaces:t,workspaceName:r}){if(e){let i=t.find(s=>s instanceof It.Separator?!1:s.name===e);if(i)return{answer:i};N.warn(`Workspace "${e}" not found`),N.log()}return await(0,It.prompt)({type:"list",name:"answer",loop:!1,pageSize:25,message:`Which workspace should "${r}" start from?`,choices:t.map(i=>i instanceof It.Separator?i:{name:` ${i.name}`,value:i})})}async function NS({workspaceName:e,project:t,workspaceSource:r,showAllDependencies:n}){let i={dependencies:{},devDependencies:{},peerDependencies:{},optionalDependencies:{}},{answer:s}=await F9({message:`Add workspace dependencies to "${e}"?`});if(!s)return i;let{answer:o}=await(0,It.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"}]}),a=Pc({project:t,type:"package",showAllDependencies:n}),u=r?OS.default.readJsonSync(r.paths.packageJson):void 0;for(let c of o){let{answer:l}=await(0,It.prompt)({type:"checkbox",name:"answer",default:u&&Object.keys(u[c]||{}),pageSize:15,message:`Which packages should be added as ${c} to "${e}?`,loop:!1,choices:a.map(h=>h instanceof It.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]=t.packageManager==="pnpm"?"workspace:*":"*")}),i[c]=f}else i[c]=l.reduce((h,p)=>({...h,[p]:t.packageManager==="pnpm"?"workspace:*":"*"}),{})}return i}async function F9({message:e}){return(0,It.prompt)({type:"confirm",name:"answer",message:e})}async function Bc({project:e,opts:t}){var u;let r,n=t.method==="copy"&&t.copy.type==="external"?((u=t.examplePath)==null?void 0:u.split("/").pop())||t.copy.source.split("/").pop():void 0,{answer:i}=await BS({override:t.type,message:t.method==="copy"&&t.copy.source==="external"&&n?`What type of workspace should "${n}" be created as?`:void 0}),{answer:s}=await PS({override:t.name,workspaceType:i,suggestion:n});if(t.method==="copy"&&t.copy.type==="internal"){let{answer:c}=await LS({override:t.copy.source,workspaces:Pc({project:e,type:i}),workspaceName:s});r=c}let o=await IS({workspaceType:i,workspaceName:s,project:e,destination:t.destination}),a=await NS({workspaceName:s,project:e,workspaceSource:r,showAllDependencies:t.showAllDependencies});return{type:i,name:s,location:o,source:r,dependencies:a}}async function vm({project:e,opts:t}){let{name:r,location:n,dependencies:i}=await Bc({project:e,opts:t}),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)}),Ic.default.mkdirSync(n.absolute,{recursive:!0}),Ic.default.writeFileSync(wm.default.join(n.absolute,"package.json"),JSON.stringify(s,null,2)),Ic.default.writeFileSync(wm.default.join(n.absolute,"README.md"),`# \`${r}\``),N.log(),N.log(`${MS.default.bold(N.turboGradient(">>> Success!"))} Created ${r} at "${n.relative}"`)}var Am=X(require("path")),un=X(require("fs-extra")),qS=X(require("picocolors"));async function Dm({project:e,opts:t}){let{name:r,type:n,location:i,source:s,dependencies:o}=await Bc({project:e,opts:t}),a=Am.default.join(i.absolute,"package.json");if(t.copy.type==="external"){N.log(),N.warn("Some manual modifications may be required."),N.dimmed(`This ${n} may require local dependencies or a different package manager than what is available in this repo`),await lm({appPath:i.absolute,example:t.copy.source,examplePath:t.examplePath});try{if(un.default.existsSync(a)){if((await un.default.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(un.default.existsSync(Am.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),N.error(l),await un.default.rm(i.absolute,{recursive:!0,force:!0});return}}else if(s){let c=async f=>Promise.resolve(!f.includes("node_modules")),l=N.turboLoader(`Creating "${r}" from "${s.name}"...`);l.start(),await un.default.copy(s.paths.root,i.absolute,{filter:c}),l.stop()}let u=await un.default.readJSON(a);u.name=r,Object.keys(o).forEach(c=>{let l=o[c];l&&Object.keys(l).length>0&&(u[c]=l)}),await un.default.writeJSON(a,u,{spaces:2}),N.log(),N.log(`${qS.default.bold(N.turboGradient(">>> Success!"))} Created ${r} at "${i.relative}"`)}function O9(e){let{copy:t,...r}=e,n=t===!0||typeof t=="string"?"copy":"empty",i=typeof t=="string"?t:"",s=typeof t=="string"&&t.startsWith("https://")?"external":"internal";return{method:n,copy:{type:s,source:i},...r}}async function po(e){let t=await Fc(e),r=O9(e);N.log();let n={project:t,opts:r};r.method==="copy"?(r.copy.type==="external"?N.info(`Copy a remote workspace from ${r.copy.source}`):N.info(`Copy an existing workspace from "${t.name}"`),N.log(),await Dm(n)):(N.info(`Add an empty workspace to "${t.name}"`),N.log(),await vm(n))}async function mo(e,t){let r=await Fc(t);N.log(),N.info(`Modify "${r.name}" using custom generators`),N.log(),await ym({generator:e,project:r,opts:t})}function jS(e){try{let t=JSON.parse(e),r={};for(let n in t){let i=fm(n,{to:"camel"});r[i]=t[n]}return r}catch(t){N.error("Error parsing arguments",t),process.exit(1)}}async function xm(e,t){var r;if(e==="workspace"){let n=jS(t.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 po(n)}else if(e==="run"){let n=jS(t.json),{generatorName:i,...s}=n;await mo(i,s)}else N.error(`Received unknown command - "${e}" (must be one of "workspace" | "run")`),process.exit(1)}var HS=hm({packageInfo:dm}),zS=new WS.ProxyAgent;$S.default.globalAgent=zS;US.default.globalAgent=zS;var go=new Ue.Command;go.name(GS.default.bold(N.turboGradient("@turbo/gen"))).description("Extend your Turborepo").version(dm.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").showHelpAfterError(!1);go.command("run",{isDefault:!0}).alias("r").description("Run custom generators").addArgument(new Ue.Argument("[generator-name]","The name of the generator to run")).addOption(new Ue.Option("-c, --config <config>","Generator configuration file (default: turbo/generators/config.js")).addOption(new Ue.Option("-r, --root <dir>","The root of your repository (default: directory with root turbo.json)")).addOption(new Ue.Option("-a, --args <args...>","Arguments passed directly to generator").default([])).action(mo);go.command("workspace").aliases(["w"]).description("Add a new package or app to your project").addOption(new Ue.Option("-n, --name <workspace-name>","Name for the new workspace")).addOption(new Ue.Option("-b, --empty","Generate an empty workspace").conflicts("copy").default(!0)).addOption(new Ue.Option("-c, --copy [source]",`Generate a workspace using an existing workspace as a template. Can be the name of a local workspace
|
|
61
|
+
`}function N0(e){return e[e.length-1]===`
|
|
62
|
+
`?e.slice(0,-1):e}function Cw(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
|
|
63
|
+
`);return c=c!==-1?c:e.length,r.lastIndex=c,M0(e.slice(0,c),t)}(),i=e[0]===`
|
|
64
|
+
`||e[0]===" ",s,o;o=r.exec(e);){var u=o[1],a=o[2];s=a[0]===" ",n+=u+(!i&&!s&&a!==""?`
|
|
65
|
+
`:"")+M0(a,t),i=s}return n}function M0(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,u=0,a="";n=r.exec(e);)u=n.index,u-i>t&&(s=o>i?o:u,a+=`
|
|
66
|
+
`+e.slice(i,s),i=s+1),o=u;return a+=`
|
|
67
|
+
`,e.length-i>t&&o>i?a+=e.slice(i,o)+`
|
|
68
|
+
`+e.slice(o+1):a+=e.slice(i),a.slice(1)}function Sw(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=Ti(e,i),n=Ne[r],!n&&Ii(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||Ew(r);return t}function Fw(e,t,r){var n="",i=e.tag,s,o,u;for(s=0,o=r.length;s<o;s+=1)u=r[s],e.replacer&&(u=e.replacer.call(r,String(s),u)),(Xt(e,t,u,!1,!1)||typeof u=="undefined"&&Xt(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function q0(e,t,r,n){var i="",s=e.tag,o,u,a;for(o=0,u=r.length;o<u;o+=1)a=r[o],e.replacer&&(a=e.replacer.call(r,String(o),a)),(Xt(e,t+1,a,!0,!0,!1,!0)||typeof a=="undefined"&&Xt(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Ya(e,t)),e.dump&&Bi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function Rw(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,u,a,c,l;for(o=0,u=s.length;o<u;o+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),a=s[o],c=r[a],e.replacer&&(c=e.replacer.call(r,a,c)),Xt(e,t,a,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Xt(e,t,c,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function Ow(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),u,a,c,l,f,p;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Ve("sortKeys must be a boolean or a function");for(u=0,a=o.length;u<a;u+=1)p="",(!n||i!=="")&&(p+=Ya(e,t)),c=o[u],l=r[c],e.replacer&&(l=e.replacer.call(r,c,l)),Xt(e,t+1,c,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Bi===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,f&&(p+=Ya(e,t)),Xt(e,t+1,l,!0,f)&&(e.dump&&Bi===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=s,e.dump=i||"{}"}function j0(e,t,r){var n,i,s,o,u,a;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(u=i[s],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t=="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(r?u.multi&&u.representName?e.tag=u.representName(t):e.tag=u.tag:e.tag="?",u.represent){if(a=e.styleMap[u.tag]||u.defaultStyle,yd.call(u.represent)==="[object Function]")n=u.represent(t,a);else if(Ed.call(u.represent,a))n=u.represent[a](t,a);else throw new Ve("!<"+u.tag+'> tag resolver accepts not "'+a+'" style');e.dump=n}return!0}return!1}function Xt(e,t,r,n,i,s,o){e.tag=null,e.dump=r,j0(e,r,!1)||j0(e,r,!0);var u=yd.call(e.dump),a=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var l=u==="[object Object]"||u==="[object Array]",f,p;if(l&&(f=e.duplicates.indexOf(r),p=f!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(l&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),u==="[object Object]")n&&Object.keys(e.dump).length!==0?(Ow(e,t,e.dump,i),p&&(e.dump="&ref_"+f+e.dump)):(Rw(e,t,e.dump),p&&(e.dump="&ref_"+f+" "+e.dump));else if(u==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?q0(e,t-1,e.dump,i):q0(e,t,e.dump,i),p&&(e.dump="&ref_"+f+e.dump)):(Fw(e,t,e.dump),p&&(e.dump="&ref_"+f+" "+e.dump));else if(u==="[object String]")e.tag!=="?"&&ww(e,e.dump,t,s,a);else{if(u==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Ve("unacceptable kind of an object to dump "+u)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function Tw(e,t){var r=[],n=[],i,s;for(Ka(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function Ka(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Ka(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Ka(e[n[i]],t,r)}function kw(e,t){t=t||{};var r=new _w(t);r.noRefs||Tw(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Xt(r,0,n,!0,!0)?r.dump+`
|
|
69
|
+
`:""}var Bw=kw,Pw={dump:Bw};function tc(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var Iw=Pe,Lw=G0,Nw=Y0,Mw=J0,qw=Q0,jw=Za,$w=gd.load,Hw=gd.loadAll,Gw=Pw.dump,Uw=Ve,Ww={binary:id,float:Z0,map:z0,null:V0,pairs:od,set:ud,timestamp:rd,bool:K0,int:X0,merge:nd,omap:sd,seq:W0,str:U0},zw=tc("safeLoad","load"),Yw=tc("safeLoadAll","loadAll"),Vw=tc("safeDump","dump"),Kw={Type:Iw,Schema:Lw,FAILSAFE_SCHEMA:Nw,JSON_SCHEMA:Mw,CORE_SCHEMA:qw,DEFAULT_SCHEMA:jw,load:$w,loadAll:Hw,dump:Gw,YAMLException:Uw,types:Ww,safeLoad:zw,safeLoadAll:Yw,safeDump:Vw},Fd=Kw;var IE=Y(m1());var B={};rv(B,{bold:()=>LO,dimmed:()=>MO,error:()=>Te,grey:()=>qO,info:()=>IO,item:()=>jO,log:()=>et,turboBlue:()=>zn,turboGradient:()=>PO,turboLoader:()=>Af,turboRed:()=>kE,underline:()=>NO,warn:()=>Yn,yellow:()=>BE});var Qe=require("picocolors"),FE=Y(eE()),RE=Y(SE()),OE="#0099F7",TE="#F11712",BO="#FFFF00",Df=e=>{let t=$O(e);return r=>`\x1B[38;5;${t}m${r}${(0,Qe.reset)("")}`},PO=(0,RE.default)(OE,TE),zn=Df(OE),kE=Df(TE),BE=Df(BO),Af=e=>(0,FE.default)({text:e,spinner:{frames:[" ",zn("> "),zn(">> "),zn(">>>")]}}),IO=(...e)=>{et(zn((0,Qe.bold)(">>>")),e.join(" "))},LO=(...e)=>{et((0,Qe.bold)(e.join(" ")))},NO=(...e)=>{et((0,Qe.underline)(e.join(" ")))},MO=(...e)=>{et((0,Qe.dim)(e.join(" ")))},qO=(...e)=>{et((0,Qe.gray)(e.join(" ")))},jO=(...e)=>{et(zn((0,Qe.bold)(" \u2022")),e.join(" "))},et=(...e)=>{console.log(...e)},Yn=(...e)=>{console.error(BE((0,Qe.bold)(">>>")),e.join(" "))},Te=(...e)=>{console.error(kE((0,Qe.bold)(">>>")),e.join(" "))};function $O(e){let t=parseInt(e.slice(1),16),r=Math.floor(t/(256*256))%256,n=Math.floor(t/256)%256,i=t%256;return 16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)}var PE="{turbo.json,turbo.jsonc}";var vf={};function GO(e){try{if(Xi.default.existsSync(Cr.default.join(e,"pnpm-workspace.yaml")))return Fd.load(Xi.default.readFileSync(Cr.default.join(e,"pnpm-workspace.yaml"),"utf8")).packages||[];let t=JSON.parse(Xi.default.readFileSync(Cr.default.join(e,"package.json"),"utf8"));if(t.workspaces){if("packages"in t.workspaces)return t.workspaces.packages||[];if(Array.isArray(t.workspaces))return t.workspaces}return[]}catch{return[]}}function xf(e,t){var s;let r=Oi(e,t),n=[],i=(s=t==null?void 0:t.cache)!=null?s:!0;if(i&&e&&e in vf)return vf[e];if(r){let u=GO(r).map(l=>`${l}/${PE}`),a=(0,IE.sync)([PE,...u],{cwd:r,onlyFiles:!0,followSymbolicLinks:!1,suppressErrors:!0}).map(l=>Cr.default.join(r,l)),c={};for(let l of a){let f=Cr.default.dirname(l);c[f]||(c[f]=[]),c[f].push(l)}for(let[l,f]of Object.entries(c)){if(f.length>1){let _=`Found both turbo.json and turbo.jsonc in the same directory: ${l}
|
|
70
|
+
Please use either turbo.json or turbo.jsonc, but not both.`;throw Te(_),new Error(_)}let p=f[0];try{let _=Xi.default.readFileSync(p,"utf8"),E=Is.parse(_),m=Cr.default.dirname(p)===r;if(m){if("extends"in E)continue}else if(!("extends"in E))continue;n.push({config:E,turboConfigPath:p,workspacePath:Cr.default.dirname(p),isRootConfig:m})}catch(_){Yn(_)}}}return i&&e&&(vf[e]=n),n}var Lk=Y(require("os")),Nk=Y(a_());var c_=Y(require("fs-extra")),Mk=[".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 ts(e){let t=c_.default.readdirSync(e).filter(r=>!Mk.includes(r)).filter(r=>!r.endsWith(".iml"));return{isEmpty:t.length===0,conflicts:t}}var $f=Y(require("path")),Hf=Y(require("fs-extra")),Gf=Y(require("picocolors"));function tu(e){let t=$f.default.resolve(e),r=$f.default.basename(t),n=Hf.default.existsSync(t),i=Hf.default.lstatSync(t,{throwIfNoEntry:!1});if(i&&!i.isDirectory())return{valid:!1,root:t,projectName:r,error:`${Gf.default.dim(r)} is not a directory - please try a different location`};if(n){let{isEmpty:s,conflicts:o}=ts(t);if(!s)return{valid:!1,root:t,projectName:r,error:`${Gf.default.dim(r)} (${t}) has ${o.length} conflicting ${o.length===1?"file":"files"} - please try a different location`}}return{valid:!0,root:t,projectName:r}}var uA=require("stream"),aA=require("stream/promises"),cA=require("zlib"),Gt=require("fs"),ht=require("path"),ua=require("child_process"),lA=Y(oA());var _P=1e4,DP=12e4;async function fA(e,t={},r=_P){let n=new AbortController,i=setTimeout(()=>{n.abort()},r);try{return await fetch(e,{...t,signal:n.signal})}finally{clearTimeout(i)}}async function aa(e){try{return(await fA(e,{method:"HEAD"})).ok}catch{return!1}}async function Rp(e,t){let[,r,n,i,s,...o]=e.pathname.split("/"),u=t?t.replace(/^\//,""):o.join("/");if(i===void 0||i===""&&s===void 0)try{let c=await fA(`https://api.github.com/repos/${r}/${n}`);if(!c.ok)return;let l=await c.json();return{username:r,name:n,branch:l.default_branch,filePath:u}}catch{return}let a=t?`${s}/${o.join("/")}`.replace(new RegExp(`/${u}|/$`),""):s;if(r&&n&&a&&i==="tree")return{username:r,name:n,branch:a,filePath:u}}function Op({username:e,name:t,branch:r,filePath:n}){let i=`https://api.github.com/repos/${e}/${t}/contents`,s=`${n?`/${n}`:""}/package.json`;return aa(`${i+s}?ref=${r}`)}function Tp(e){try{let t=new URL(e);return aa(t.href)}catch{return aa(`https://api.github.com/repos/vercel/turborepo/contents/examples/${encodeURIComponent(e)}`)}}function AP(e,t,r){if(t.includes("\0"))return!1;let i=t.replace(/\\/g,"/").normalize("NFC"),s=r!=null?r:(0,ht.resolve)(e),o=(0,ht.resolve)(s,i);return!(0,ht.relative)(s,o).startsWith("..")&&(0,ht.resolve)(o)===o}function vP(e){return e==="SymbolicLink"||e==="Link"}async function hA({url:e,root:t,strip:r,filter:n}){let i=new AbortController,s=setTimeout(()=>{i.abort()},DP),o=[],u=(0,ht.resolve)(t),a=new Set;try{let c=await fetch(e,{signal:i.signal});if(!c.ok||!c.body)throw new Error(`Failed to download: ${c.status}`);let l=uA.Readable.fromWeb(c.body),f=null,p=[],_=new lA.Parse({filter:E=>{if(f===null){let m=E.split("/");f=m.length?m[0]:null}return n(E,f)},onentry:E=>{let D=E.path.split("/").slice(r).join("/");if(!D){E.resume();return}if(!AP(t,D,u)){Te(`Blocked path traversal attempt: ${E.path}`),E.resume();return}if(E.type&&vP(E.type)){Yn(`Blocked symlink: ${E.path}`),E.resume();return}let A=(0,ht.resolve)(u,D);if(E.type==="Directory")a.has(A)||((0,Gt.mkdirSync)(A,{recursive:!0}),a.add(A)),E.resume();else if(E.type==="File"){let R=(0,ht.dirname)(A);a.has(R)||((0,Gt.mkdirSync)(R,{recursive:!0}),a.add(R));let M=(0,Gt.createWriteStream)(A);o.push(M),p.push(new Promise((W,L)=>{M.on("finish",W),M.on("error",L)})),E.pipe(M)}else E.resume()}});await(0,aA.pipeline)(l,(0,cA.createGunzip)(),_),await Promise.all(p)}finally{clearTimeout(s);for(let c of o)c.destroy()}}async function kp(e,{username:t,name:r,branch:n,filePath:i}){await hA({url:`https://codeload.github.com/${t}/${r}/tar.gz/${n}`,root:e,strip:i?i.split("/").length+1:1,filter:(s,o)=>s.startsWith(`${o}${i?`/${i}/`:"/"}`)})}async function Bp(e,t){let r=(0,ht.join)(e,".turbo-clone-temp");try{(0,ua.execFileSync)("git",["clone","--filter=blob:none","--no-checkout","--depth","1","--sparse","https://github.com/vercel/turborepo.git",r],{stdio:"pipe"}),(0,ua.execFileSync)("git",["sparse-checkout","set",`examples/${t}`],{cwd:r,stdio:"pipe"}),(0,ua.execFileSync)("git",["checkout"],{cwd:r,stdio:"pipe"});let n=(0,ht.join)(r,"examples",t);(0,Gt.cpSync)(n,e,{recursive:!0})}catch{(0,Gt.rmSync)(r,{recursive:!0,force:!0}),Yn(`Git is not available. Downloading example via tarball (slower).
|
|
71
|
+
For faster downloads, install git: https://git-scm.com/downloads`),await hA({url:"https://codeload.github.com/vercel/turborepo/tar.gz/main",root:e,strip:3,filter:(i,s)=>i.startsWith(`${s}/examples/${t}/`)});return}(0,Gt.rmSync)(r,{recursive:!0,force:!0})}var Pp=Y(require("fs-extra"));async function Ip(e){try{return await Pp.default.access(e,Pp.default.constants.W_OK),!0}catch{return!1}}var Ai=Y(require("path")),Lp=Y(bA()),dn=Y(require("picocolors")),ca=Y(require("fs-extra"));function SP(e){return typeof e=="object"&&e!==null&&typeof e.message=="string"}var la=class extends Error{};function FP(e){return e.hostname==="github.com"}async function Np({appPath:e,example:t,isDefaultExample:r,examplePath:n}){let i,s;et();let o=Af("Downloading files...");o.start();try{if(!r){try{s=new URL(t)}catch(D){D.code!=="ERR_INVALID_URL"&&(o.stop(),Te(D),process.exit(1))}s?(FP(s)||(o.stop(),Te(`Invalid URL: ${dn.default.red(`"${t}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`),process.exit(1)),i=await Rp(s,n),i||(o.stop(),Te(`Unable to fetch repository information from: ${dn.default.red(`"${t}"`)}. Please fix the URL and try again.`),process.exit(1)),await Op(i)||(o.stop(),Te(`Could not locate the repository for ${dn.default.red(`"${t}"`)}. Please check that the repository exists and try again.`),process.exit(1))):await Tp(t)||(o.stop(),Te(`Could not locate an example named ${dn.default.red(`"${t}"`)}. It could be due to the following:
|
|
72
|
+
`,`1. Your spelling of example ${dn.default.red(`"${t}"`)} might be incorrect.
|
|
73
|
+
`,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1))}let u=Ai.default.resolve(e);await Ip(Ai.default.dirname(u))||(o.stop(),Te("The application path is not writable, please check folder permissions and try again."),Te("It is likely you do not have write permissions for this folder."),process.exit(1));let a=Ai.default.basename(u);try{await ca.default.mkdir(u,{recursive:!0})}catch(D){o.stop(),Te("Unable to create project directory"),Te(D),process.exit(1)}let{isEmpty:c,conflicts:l}=ts(u);c||(o.stop(),Te(`${dn.default.dim(u)} has ${l.length} conflicting ${l.length===1?"file":"files"} - please try a different location`),process.exit(1));let f=process.cwd();if(process.chdir(u),!r&&i){let D=i;await(0,Lp.default)(()=>kp(u,D),{retries:3})}else await(0,Lp.default)(()=>Bp(u,t),{retries:3});o.stop();let p=Ai.default.join(u,"package.json"),_=ca.default.existsSync(p),E=[];if(_){let D;try{D=ca.default.readJsonSync(p)}catch{}D&&E.push(...Object.keys(D.scripts||{}))}let m=e;return Ai.default.join(f,a)===e&&(m=a),{cdPath:m,hasPackageJson:_,availableScripts:E,repoInfo:i}}catch(u){throw o.stop(),new la(SP(u)?u.message:String(u))}}function Mp(e,t={to:"camel"}){switch(t.to){case"camel":return e.replace(/(?:[-_][a-z])/g,r=>r.toUpperCase().replace("-","").replace("_",""));default:throw new Error("Not implemented")}}var fa=Y(require("picocolors")),_A=Y(require("update-check"));function qp(e){let{packageInfo:t,upgradeCommand:r}=e,n=(0,_A.default)(t).catch(()=>null);return async function(s=0){try{let o=await n;if(o!=null&&o.latest){et(),et(fa.default.yellow(fa.default.bold(`A new version of \`${t.name}\` is available!`)));let u=typeof r=="function"?await r():r;u&&et(`You can update by running: ${fa.default.cyan(u)}`),et()}process.exit(s)}catch(o){process.env.DEBUG&&Te("Update check failed:",o),process.exit(s)}}}var KA=require("proxy-agent");var jp={name:"@turbo/gen",version:"2.7.2-canary.0",description:"Extend a Turborepo",type:"commonjs",homepage:"https://turborepo.com",license:"MIT",repository:{type:"git",url:"git+https://github.com/vercel/turborepo.git",directory:"packages/turbo-gen"},bugs:{url:"https://github.com/vercel/turborepo/issues"},bin:"dist/cli.js",types:"dist/types.d.ts",scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","package:types":"attw --profile node16 --pack"},dependencies:{"@turbo/workspaces":"workspace:*",commander:"10.0.0","fs-extra":"10.1.0",inquirer:"8.2.4",minimatch:"9.0.0","node-plop":"0.26.3",picocolors:"1.0.1","proxy-agent":"6.5.0","ts-node":"10.9.2","update-check":"1.5.4","validate-npm-package-name":"5.0.0"},devDependencies:{"@arethetypeswrong/cli":"0.18.2","@jest/globals":"29.7.0","@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/node":"18.17.4","@types/validate-npm-package-name":"4.0.0",jest:"29.7.0","ts-jest":"29.2.5",tsup:"6.7.0",typescript:"5.5.4"},files:["dist"],publishConfig:{access:"public"}};var DA=require("@turbo/workspaces");async function ha({root:e}){let t=e||process.cwd(),r=Oi(t);if(!r)B.error("Unable to infer repository root - override with --root");else try{return(0,DA.getWorkspaceDetails)({root:r})}catch{B.error(`Unable to determine workspace details. Make sure "${t}" is the root, or add "packageManager" to "package.json" or ensure a lockfile is present.`)}process.exit(1)}var pr=Y(require("path")),da=Y(require("fs-extra")),pa=Y(require("node-plop")),AA=require("ts-node"),vA=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 xA=["ts","js","cjs"],OP=pr.default.join("turbo","generators"),wA=xA.map(e=>pr.default.join(OP,`config.${e}`)),TP=[...wA,...xA.map(e=>pr.default.join(`plopfile.${e}`))];function CA({project:e,configPath:t}){(0,AA.register)({transpileOnly:!0,cwd:e.paths.root,compilerOptions:{module:"nodenext",moduleResolution:"nodenext"}});let r=BP({project:e}),n;if(t){if(!da.default.existsSync(t))throw new Ie(`No config at "${t}"`,{type:"plop_no_config"});try{n=(0,pa.default)(t,{destBasePath:t,force:!1})}catch(i){B.error(i)}}else{for(let i of TP){let s=pr.default.join(e.paths.root,i);if(da.default.existsSync(s))try{n=(0,pa.default)(s,{destBasePath:e.paths.root,force:!1});break}catch(o){B.error(o)}}!n&&r.length>0&&(n=(0,pa.default)(r[0].config,{destBasePath:r[0].root,force:!1}),r.shift())}return n&&r.forEach(i=>{try{n.load(i.config,{destBasePath:i.root,force:!1})}catch(s){B.error(s)}}),n}function $p({project:e,configPath:t}){let r=CA({project:e,configPath:t});if(!r)return[];let i=r.getGeneratorList().map(u=>r.getGenerator(u.name)),s={};i.forEach(u=>{let a=u,c=e.workspaceData.workspaces.find(l=>{if(a.basePath===e.paths.root)return!1;let f=a.basePath.split(pr.default.sep);return f.pop(),f.pop(),pr.default.join("/",...f)===l.paths.root});c?(c.name in s||(s[c.name]=[]),s[c.name].push(a)):("root"in s||(s.root=[]),s.root.push(a))});let o=[];return Object.keys(s).forEach(u=>{o.push(new vA.Separator(u)),o.push(...s[u])}),o}function kP({project:e,generator:t}){let r={cwd:process.cwd(),root:e.paths.root,workspace:t.basePath?Ri({cwd:t.basePath,target:"package.json"}):void 0},n={};try{n=xf(t.basePath)}catch{}return{turbo:{paths:r,configs:n}}}function BP({project:e}){let t=[];return e.workspaceData.workspaces.forEach(r=>{for(let n of wA)da.default.existsSync(pr.default.join(r.paths.root,n))&&t.push({config:pr.default.join(r.paths.root,n),root:r.paths.root})}),t}async function SA({project:e,generator:t,bypassArgs:r,configPath:n}){let i=CA({project:e,configPath:n});if(!i)throw new Ie("Unable to load generators",{type:"plop_unable_to_load_config"});let s=i.getGenerator(t);if(!s)throw new Ie(`Generator ${t} not found`,{type:"plop_generator_not_found"});let o=await s.runPrompts(r),u=await s.runActions({...o,...kP({project:e,generator:s})},{onComment:a=>{B.dimmed(a)}});if(u.failures.length>0)throw u.failures.forEach(a=>{a instanceof Error?B.error(`Error - ${a.message}`):B.error(`Error - ${a.error}. Unable to ${a.type} to "${a.path}"`)}),new Ie(`Failed to run "${t}" generator`,{type:"plop_error_running_generator"});u.changes.length>0&&(B.info("Changes made:"),u.changes.forEach(a=>{a.path&&B.item(`${a.path} (${a.type})`)}))}var mn=require("inquirer");async function FA({generators:e,generator:t}){if(t){if(e.find(n=>!(n instanceof mn.Separator)&&n.name===t))return{selectedGenerator:t};B.warn(`Generator "${t}" not found`),B.log()}return await(0,mn.prompt)({type:"list",name:"selectedGenerator",message:"Select generator to run",choices:e.map(n=>n instanceof mn.Separator?n:{name:n.description?` ${n.name}: ${n.description}`:` ${n.name}`,value:n.name})})}async function RA(){return(0,mn.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 OA({message:e}){return(0,mn.prompt)({type:"confirm",name:"answer",message:e})}var Hp=Y(require("path")),Gp=Y(require("fs-extra"));async function TA({project:e,template:t}){let r=Hp.default.join(e.paths.root,"turbo","generators"),n=`simple-${t}`;if(await Gp.default.pathExists(r))throw new Ie(`Generator config directory already exists at ${r}`,{type:"config_directory_already_exists"});await Gp.default.copy(Hp.default.join(__dirname,"templates",n),r,{recursive:!0})}async function Up({generator:e,project:t,opts:r}){let n=!1,i=$p({project:t,configPath:r.config});if(!i.length){B.error("No generators found."),B.log();let{answer:o}=await OA({message:`Would you like to add a config with a sample custom generator to ${t.name}?`});if(o){n=!0;let{answer:u}=await RA();try{await TA({project:t,template:u})}catch(a){throw a instanceof Ie||B.error("Failed to create generator config"),a}if(B.log(),B.info("Generator config successfully created!"),B.info("Loading generator config..."),B.log(),i=$p({project:t,configPath:r.config}),!i.length){B.error("Error loading generator");return}}else{B.log(),B.dimmed("Learn more about custom Turborepo generators - https://turborepo.com/docs/guides/generating-code#custom-generators");return}}let{selectedGenerator:s}=await FA({generators:i,generator:e});try{await SA({project:t,generator:s,bypassArgs:r.args,configPath:r.config})}catch(o){if(o instanceof Ie)throw o;let u="Failed to run generator";throw o instanceof Error&&(u=o.message),new Ie(u,{type:"plop_error_running_generator"})}finally{n&&(B.log(),B.info("Congrats! You just ran your first Turborepo generator"),B.dimmed("Learn more about custom Turborepo generators - https://turborepo.com/docs/guides/generating-code#custom-generators"))}B.log(),B.bold(B.turboGradient(">>> Success!"))}var Vp=Y(require("path")),Ea=Y(require("fs-extra")),HA=Y(require("picocolors"));var As=Y(require("path")),IA=Y(require("fs-extra")),vt=require("inquirer"),LA=require("minimatch"),Yp=Y(require("validate-npm-package-name"));var Wp=Y(require("path"));var kA=Y(require("path"));function BA({project:e}){let r=e.workspaceData.workspaces.map(i=>kA.default.relative(e.paths.root,i.paths.root)),n=new Set;return e.workspaceData.globs.forEach(i=>{if(!r.includes(i)){if(!i.startsWith("!")){let o=i.split("/")[0];n.add(o)}}}),Array.from(n)}function zp({project:e,workspace:t}){return Wp.default.relative(e.paths.root,t.paths.root).split(Wp.default.sep)[0]}function ma({project:e}){let t=BA({project:e}),r=t.includes("apps"),n=t.includes("packages"),i={},s=[];return e.workspaceData.workspaces.forEach(o=>{let u=zp({project:e,workspace:o});u!=="apps"&&s.push(o),u in i||(i[u]=[]),i[u].push(o)}),{hasRootApps:r,hasRootPackages:n,workspacesByGroup:i,nonAppWorkspaces:s}}var PA=require("inquirer");function ga({project:e,type:t,showAllDependencies:r}){let n=ma({project:e}),i=[],s=e.workspaceData.workspaces;r||(t==="app"&&n.hasRootApps?s=n.workspacesByGroup.apps:t==="package"&&n.nonAppWorkspaces.length>0&&(s=n.nonAppWorkspaces));let o;return s.forEach(u=>{let a=zp({project:e,workspace:u});a!==o&&i.push(new PA.Separator(a)),o=a,i.push(u)}),i}async function NA({override:e,suggestion:t,workspaceType:r}){let{validForNewPackages:n}=(0,Yp.default)(e||"");return e&&n?{answer:e}:(0,vt.prompt)({type:"input",name:"answer",default:t,validate:i=>{let{validForNewPackages:s}=(0,Yp.default)(i);return s||`Invalid ${r} name`},message:`What is the name of the ${r}?`})}async function MA({override:e,message:t}){return e?{answer:e}:(0,vt.prompt)({type:"list",name:"answer",message:t!=null?t:"What type of workspace should be added?",choices:[{name:"app",value:"app"},{name:"package",value:"package"}]})}async function qA({workspaceType:e,workspaceName:t,destination:r,project:n}){let i=t.includes("/")?t.split("/")[1]:t;if(r){let{valid:a,root:c}=tu(r);if(a)return{absolute:c,relative:As.default.relative(n.paths.root,c)}}let s,o=ma({project:n});e==="app"&&o.hasRootApps?s=`${n.paths.root}/apps/${i}`:e==="package"&&o.hasRootPackages&&(s=`${n.paths.root}/packages/${i}`);let{answer:u}=await(0,vt.prompt)({type:"input",name:"answer",message:`Where should "${t}" be added?`,default:s?As.default.relative(n.paths.root,s):void 0,validate:a=>{let c=As.default.join(n.paths.root,a),{valid:l,error:f}=tu(c),p=n.workspaceData.globs.some(_=>(0,LA.minimatch)(a,_));return l&&p?!0:p?f:`${a} is not a valid workspace location`}});return{absolute:As.default.join(n.paths.root,u),relative:u}}async function jA({override:e,workspaces:t,workspaceName:r}){if(e){let i=t.find(s=>s instanceof vt.Separator?!1:s.name===e);if(i)return{answer:i};B.warn(`Workspace "${e}" not found`),B.log()}return await(0,vt.prompt)({type:"list",name:"answer",loop:!1,pageSize:25,message:`Which workspace should "${r}" start from?`,choices:t.map(i=>i instanceof vt.Separator?i:{name:` ${i.name}`,value:i})})}async function $A({workspaceName:e,project:t,workspaceSource:r,showAllDependencies:n}){let i={dependencies:{},devDependencies:{},peerDependencies:{},optionalDependencies:{}},{answer:s}=await IP({message:`Add workspace dependencies to "${e}"?`});if(!s)return i;let{answer:o}=await(0,vt.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"}]}),u=ga({project:t,type:"package",showAllDependencies:n}),a=r?IA.default.readJsonSync(r.paths.packageJson):void 0;for(let c of o){let{answer:l}=await(0,vt.prompt)({type:"checkbox",name:"answer",default:a&&Object.keys(a[c]||{}),pageSize:15,message:`Which packages should be added as ${c} to "${e}?`,loop:!1,choices:u.map(p=>p instanceof vt.Separator?p:{name:` ${p.name}`,value:p.name})}),f=(a==null?void 0:a[c])||{};if(Object.keys(f).length){let p=new Set(Object.keys(f));l.forEach(_=>{p.has(_)||(f[_]=t.packageManager==="pnpm"?"workspace:*":"*")}),i[c]=f}else i[c]=l.reduce((p,_)=>({...p,[_]:t.packageManager==="pnpm"?"workspace:*":"*"}),{})}return i}async function IP({message:e}){return(0,vt.prompt)({type:"confirm",name:"answer",message:e})}async function ya({project:e,opts:t}){var a;let r,n=t.method==="copy"&&t.copy.type==="external"?((a=t.examplePath)==null?void 0:a.split("/").pop())||t.copy.source.split("/").pop():void 0,{answer:i}=await MA({override:t.type,message:t.method==="copy"&&t.copy.source==="external"&&n?`What type of workspace should "${n}" be created as?`:void 0}),{answer:s}=await NA({override:t.name,workspaceType:i,suggestion:n});if(t.method==="copy"&&t.copy.type==="internal"){let{answer:c}=await jA({override:t.copy.source,workspaces:ga({project:e,type:i}),workspaceName:s});r=c}let o=await qA({workspaceType:i,workspaceName:s,project:e,destination:t.destination}),u=await $A({workspaceName:s,project:e,workspaceSource:r,showAllDependencies:t.showAllDependencies});return{type:i,name:s,location:o,source:r,dependencies:u}}async function Kp({project:e,opts:t}){let{name:r,location:n,dependencies:i}=await ya({project:e,opts:t}),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 u=i[o];u&&Object.keys(u).length>0&&(s[o]=u)}),Ea.default.mkdirSync(n.absolute,{recursive:!0}),Ea.default.writeFileSync(Vp.default.join(n.absolute,"package.json"),JSON.stringify(s,null,2)),Ea.default.writeFileSync(Vp.default.join(n.absolute,"README.md"),`# \`${r}\``),B.log(),B.log(`${HA.default.bold(B.turboGradient(">>> Success!"))} Created ${r} at "${n.relative}"`)}var Xp=Y(require("path")),jr=Y(require("fs-extra")),GA=Y(require("picocolors"));async function Zp({project:e,opts:t}){let{name:r,type:n,location:i,source:s,dependencies:o}=await ya({project:e,opts:t}),u=Xp.default.join(i.absolute,"package.json");if(t.copy.type==="external"){B.log(),B.warn("Some manual modifications may be required."),B.dimmed(`This ${n} may require local dependencies or a different package manager than what is available in this repo`),await Np({appPath:i.absolute,example:t.copy.source,examplePath:t.examplePath});try{if(jr.default.existsSync(u)){if((await jr.default.readJSON(u)).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(jr.default.existsSync(Xp.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),B.error(l),await jr.default.rm(i.absolute,{recursive:!0,force:!0});return}}else if(s){let c=async f=>Promise.resolve(!f.includes("node_modules")),l=B.turboLoader(`Creating "${r}" from "${s.name}"...`);l.start(),await jr.default.copy(s.paths.root,i.absolute,{filter:c}),l.stop()}let a=await jr.default.readJSON(u);a.name=r,Object.keys(o).forEach(c=>{let l=o[c];l&&Object.keys(l).length>0&&(a[c]=l)}),await jr.default.writeJSON(u,a,{spaces:2}),B.log(),B.log(`${GA.default.bold(B.turboGradient(">>> Success!"))} Created ${r} at "${i.relative}"`)}function NP(e){let{copy:t,...r}=e,n=t===!0||typeof t=="string"?"copy":"empty",i=typeof t=="string"?t:"",s=typeof t=="string"&&t.startsWith("https://")?"external":"internal";return{method:n,copy:{type:s,source:i},...r}}async function vs(e){let t=await ha(e),r=NP(e);B.log();let n={project:t,opts:r};r.method==="copy"?(r.copy.type==="external"?B.info(`Copy a remote workspace from ${r.copy.source}`):B.info(`Copy an existing workspace from "${t.name}"`),B.log(),await Zp(n)):(B.info(`Add an empty workspace to "${t.name}"`),B.log(),await Kp(n))}async function xs(e,t){let r=await ha(t);B.log(),B.info(`Modify "${r.name}" using custom generators`),B.log(),await Up({generator:e,project:r,opts:t})}function UA(e){try{let t=JSON.parse(e),r={};for(let n in t){let i=Mp(n,{to:"camel"});r[i]=t[n]}return r}catch(t){B.error("Error parsing arguments",t),process.exit(1)}}async function Jp(e,t){var r;if(e==="workspace"){let n=UA(t.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 vs(n)}else if(e==="run"){let n=UA(t.json),{generatorName:i,...s}=n;await xs(i,s)}else B.error(`Received unknown command - "${e}" (must be one of "workspace" | "run")`),process.exit(1)}var WA=qp({packageInfo:jp}),XA=new KA.ProxyAgent;zA.default.globalAgent=XA;YA.default.globalAgent=XA;var ws=new Le.Command;ws.name(VA.default.bold(B.turboGradient("@turbo/gen"))).description("Extend your Turborepo").version(jp.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").showHelpAfterError(!1);ws.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(xs);ws.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
|
|
78
74
|
within your monorepo, or a fully qualified GitHub URL with any branch and/or subdirectory.
|
|
79
|
-
`).conflicts("empty")).addOption(new
|
|
75
|
+
`).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
|
|
80
76
|
a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).
|
|
81
77
|
In this case, you must specify the path to the example separately:
|
|
82
78
|
--example-path foo/bar
|
|
83
|
-
`).implies({copy:!0})).addOption(new
|
|
79
|
+
`).implies({copy:!0})).addOption(new Le.Option("--show-all-dependencies","Do not filter available dependencies by the workspace type").default(!1)).action(vs);ws.command("raw",{hidden:!0}).argument("<type>","The type of generator to run").addOption(new Le.Option("--json <arguments>","Arguments as raw JSON")).action(Jp);ws.parseAsync().then(()=>WA()).catch(async e=>{B.log(),e instanceof Ie?B.error(e.message):(B.error("Unexpected error. Please report it as a bug:"),B.log(e)),B.log(),await WA(1)});
|
|
84
80
|
/*! Bundled license information:
|
|
85
81
|
|
|
86
82
|
@babel/runtime/helpers/regeneratorRuntime.js:
|