@onfrontier/cli 0.1.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.
Files changed (2) hide show
  1. package/dist/cli.js +167 -0
  2. package/package.json +42 -0
package/dist/cli.js ADDED
@@ -0,0 +1,167 @@
1
+ #!/usr/bin/env node
2
+ import{createRequire as P60}from"node:module";var U60=Object.create;var{getPrototypeOf:z60,defineProperty:pI,getOwnPropertyNames:B60}=Object;var L60=Object.prototype.hasOwnProperty;function F60(Q){return this[Q]}var M60,I60,H1=(Q,X,J)=>{var Y=Q!=null&&typeof Q==="object";if(Y){var Z=X?M60??=new WeakMap:I60??=new WeakMap,q=Z.get(Q);if(q)return q}J=Q!=null?U60(z60(Q)):{};let $=X||!Q||!Q.__esModule?pI(J,"default",{value:Q,enumerable:!0}):J;for(let H of B60(Q))if(!L60.call($,H))pI($,H,{get:F60.bind(Q,H),enumerable:!0});if(Y)Z.set(Q,$);return $};var F=(Q,X)=>()=>(X||Q((X={exports:{}}).exports,X),X.exports);var l=P60(import.meta.url);var iI=F((Zi0,nI)=>{var C60=Object.prototype.toString;nI.exports=function(Q){var X;return C60.call(Q)==="[object Object]"&&(X=Object.getPrototypeOf(Q),X===null||X===Object.getPrototypeOf({}))}});var rI=F((qi0,oI)=>{oI.exports=function(Q){if(Q===null||Q===void 0)return[];return Array.isArray(Q)?Q:[Q]}});var tI=F(($i0,aI)=>{var O60=Object.prototype.toString;aI.exports=function(X){if(X===void 0)return"undefined";if(X===null)return"null";var J=typeof X;if(J==="boolean")return"boolean";if(J==="string")return"string";if(J==="number")return"number";if(J==="symbol")return"symbol";if(J==="function")return w60(X)?"generatorfunction":"function";if(j60(X))return"array";if(E60(X))return"buffer";if(A60(X))return"arguments";if(R60(X))return"date";if(N60(X))return"error";if(D60(X))return"regexp";switch(sI(X)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(T60(X))return"generator";switch(J=O60.call(X),J){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return J.slice(8,-1).toLowerCase().replace(/\s/g,"")};function sI(Q){return typeof Q.constructor==="function"?Q.constructor.name:null}function j60(Q){if(Array.isArray)return Array.isArray(Q);return Q instanceof Array}function N60(Q){return Q instanceof Error||typeof Q.message==="string"&&Q.constructor&&typeof Q.constructor.stackTraceLimit==="number"}function R60(Q){if(Q instanceof Date)return!0;return typeof Q.toDateString==="function"&&typeof Q.getDate==="function"&&typeof Q.setDate==="function"}function D60(Q){if(Q instanceof RegExp)return!0;return typeof Q.flags==="string"&&typeof Q.ignoreCase==="boolean"&&typeof Q.multiline==="boolean"&&typeof Q.global==="boolean"}function w60(Q,X){return sI(Q)==="GeneratorFunction"}function T60(Q){return typeof Q.throw==="function"&&typeof Q.return==="function"&&typeof Q.next==="function"}function A60(Q){try{if(typeof Q.length==="number"&&typeof Q.callee==="function")return!0}catch(X){if(X.message.indexOf("callee")!==-1)return!0}return!1}function E60(Q){if(Q.constructor&&typeof Q.constructor.isBuffer==="function")return Q.constructor.isBuffer(Q);return!1}});var ZP=F((Hi0,pK)=>{var _60=iI(),S60=rI(),cK=tI(),eI=(Q,X,J)=>{if(!Q[X])Q[X]=[];Q[X].push(J)},QP=(Q,X,J,Y)=>{if(!Q[X])Q[X]={};Q[X][J]=Y},HZ=(Q)=>{return Array.isArray(Q)?`[${Q.map(HZ).join(", ")}]`:cK(Q)==="string"?JSON.stringify(Q):Q},v60=(Q)=>{if(Array.isArray(Q)&&Q.length>0){let[X]=Q;return`${cK(X)}-array`}return cK(Q)},x60=(Q,X)=>{let J=Q==="array"?"string-array":Q;if(lK.includes(J)&&Array.isArray(X)&&X.length===0)return"array";return J},k60=["stopEarly","unknown","--"],JP=["string","boolean","number"],lK=JP.map((Q)=>`${Q}-array`),XP=[...JP,"array",...lK],YP=(Q)=>{Q=Q||{};let X={};return k60.forEach((J)=>{if(Q[J])X[J]=Q[J]}),Object.keys(Q).forEach((J)=>{let Y=Q[J];if(J==="arguments")J="_";if(typeof Y==="string")Y={type:Y};if(_60(Y)){let Z=Y,{type:q}=Z;if(q){if(!XP.includes(q))throw TypeError(`Expected type of "${J}" to be one of ${HZ(XP)}, got ${HZ(q)}`);if(lK.includes(q)){let[$]=q.split("-");eI(X,"array",{key:J,[$]:!0})}else eI(X,q,J)}if({}.hasOwnProperty.call(Z,"default")){let{default:$}=Z,H=v60($),K=x60(q,$);if(K&&K!==H)throw TypeError(`Expected "${J}" default value to be of type "${K}", got ${HZ(H)}`);QP(X,"default",J,$)}S60(Z.alias).forEach(($)=>{QP(X,"alias",$,J)})}}),X};pK.exports=YP;pK.exports.default=YP});var BP=F((Oi0,tK)=>{var UP=(Q)=>typeof Q==="object"&&Q!==null,zP=Symbol("skip"),GP=(Q)=>UP(Q)&&!(Q instanceof RegExp)&&!(Q instanceof Error)&&!(Q instanceof Date),aK=(Q,X,J,Y=new WeakMap)=>{if(J={deep:!1,target:{},...J},Y.has(Q))return Y.get(Q);Y.set(Q,J.target);let{target:Z}=J;delete J.target;let q=($)=>$.map((H)=>GP(H)?aK(H,X,J,Y):H);if(Array.isArray(Q))return q(Q);for(let[$,H]of Object.entries(Q)){let K=X($,H,Q);if(K===zP)continue;let[V,W,{shouldRecurse:G=!0}={}]=K;if(V==="__proto__")continue;if(J.deep&&G&&GP(W))W=Array.isArray(W)?q(W):aK(W,X,J,Y);Z[V]=W}return Z};tK.exports=(Q,X,J)=>{if(!UP(Q))throw TypeError(`Expected an object, got \`${Q}\` (${typeof Q})`);return aK(Q,X,J)};tK.exports.mapObjectSkip=zP});var jP=F((Ai0,OP)=>{OP.exports=function(Q,X){var J={},Y=Object.keys(Q);for(var Z=0;Z<Y.length;Z++){var q=Y[Z],$=X(q,Q[q],Q);J[$[0]]=$[1]}return J}});var RP=F((Ei0,NP)=>{NP.exports=function(Q,X){if(typeof Q!=="string")throw TypeError("Expected a string");return X=typeof X>"u"?"_":X,Q.replace(/([a-z\d])([A-Z])/g,"$1"+X+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+X+"$2").toLowerCase()}});var wP=F((_i0,DP)=>{var r60=jP(),s60=RP();DP.exports=function(Q,X,J){if(typeof X!=="string")J=X,X=null;J=J||{},X=X||J.separator;var Y=J.exclude||[];return r60(Q,function(Z,q){return Z=Y.indexOf(Z)===-1?s60(Z,X):Z,[Z,q]})}});var SP=F((Zo0,_P)=>{_P.exports=function(X){if(!X)return!1;return X instanceof Array||Array.isArray(X)||X.length>=0&&X.splice instanceof Function}});var xP=F((qo0,vP)=>{var H80=l("util"),K80=SP(),WW=function(X,J){if(!X||X.constructor!==String)J=X||{},X=Error.name;var Y=function Z(q){if(!this)return new Z(q);q=q instanceof Error?q.message:q||this.message,Error.call(this,q),Error.captureStackTrace(this,Y),this.name=X,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var W=q.split(/\r?\n/g);for(var G in J){if(!J.hasOwnProperty(G))continue;var U=J[G];if("message"in U){if(W=U.message(this[G],W)||W,!K80(W))W=[W]}}return W.join(`
3
+ `)},set:function(W){q=W}});var $=null,H=Object.getOwnPropertyDescriptor(this,"stack"),K=H.get,V=H.value;delete H.value,delete H.writable,H.set=function(W){$=W},H.get=function(){var W=($||(K?K.call(this):V)).split(/\r?\n+/g);if(!$)W[0]=this.name+": "+this.message;var G=1;for(var U in J){if(!J.hasOwnProperty(U))continue;var z=J[U];if("line"in z){var L=z.line(this[U]);if(L)W.splice(G++,0," "+L)}if("stack"in z)z.stack(this[U],W)}return W.join(`
4
+ `)},Object.defineProperty(this,"stack",H)};if(Object.setPrototypeOf)Object.setPrototypeOf(Y.prototype,Error.prototype),Object.setPrototypeOf(Y,Error);else H80.inherits(Y,Error);return Y};WW.append=function(Q,X){return{message:function(J,Y){if(J=J||X,J)Y[0]+=" "+Q.replace("%s",J.toString());return Y}}};WW.line=function(Q,X){return{line:function(J){if(J=J||X,J)return Q.replace("%s",J.toString());return null}}};vP.exports=WW});var hP=F(($o0,yP)=>{var W80=(Q)=>{let X=Q.charCodeAt(0).toString(16).toUpperCase();return"0x"+(X.length%2?"0":"")+X},V80=(Q,X,J)=>{if(!X)return{message:Q.message+" while parsing empty string",position:0};let Y=Q.message.match(/^Unexpected token (.) .*position\s+(\d+)/i),Z=Y?+Y[2]:Q.message.match(/^Unexpected end of JSON.*/i)?X.length-1:null,q=Y?Q.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(Y[1])} (${W80(Y[1])})`):Q.message;if(Z!==null&&Z!==void 0){let $=Z<=J?0:Z-J,H=Z+J>=X.length?X.length:Z+J,K=($===0?"":"...")+X.slice($,H)+(H===X.length?"":"...");return{message:q+` while parsing ${X===K?"":"near "}${JSON.stringify(K)}`,position:Z}}else return{message:q+` while parsing '${X.slice(0,J*2)}'`,position:0}};class VW extends SyntaxError{constructor(Q,X,J,Y){J=J||20;let Z=V80(Q,X,J);super(Z.message);Object.assign(this,Z),this.code="EJSONPARSE",this.systemError=Q,Error.captureStackTrace(this,Y||this.constructor)}get name(){return this.constructor.name}set name(Q){}get[Symbol.toStringTag](){return this.constructor.name}}var G80=Symbol.for("indent"),U80=Symbol.for("newline"),z80=/^\s*[{\[]((?:\r?\n)+)([\s\t]*)/,B80=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,UZ=(Q,X,J)=>{let Y=kP(Q);J=J||20;try{let[,Z=`
5
+ `,q=" "]=Y.match(B80)||Y.match(z80)||[,"",""],$=JSON.parse(Y,X);if($&&typeof $==="object")$[U80]=Z,$[G80]=q;return $}catch(Z){if(typeof Q!=="string"&&!Buffer.isBuffer(Q)){let q=Array.isArray(Q)&&Q.length===0;throw Object.assign(TypeError(`Cannot parse ${q?"an empty array":String(Q)}`),{code:"EJSONPARSE",systemError:Z})}throw new VW(Z,Y,J,UZ)}},kP=(Q)=>String(Q).replace(/^\uFEFF/,"");yP.exports=UZ;UZ.JSONParseError=VW;UZ.noExceptions=(Q,X)=>{try{return JSON.parse(kP(Q),X)}catch(J){}}});var uP=F((L80)=>{L80.__esModule=!0;L80.LinesAndColumns=void 0;var zZ=`
6
+ `,bP="\r",fP=function(){function Q(X){this.string=X;var J=[0];for(var Y=0;Y<X.length;)switch(X[Y]){case zZ:Y+=zZ.length,J.push(Y);break;case bP:if(Y+=bP.length,X[Y]===zZ)Y+=zZ.length;J.push(Y);break;default:Y++;break}this.offsets=J}return Q.prototype.locationForIndex=function(X){if(X<0||X>this.string.length)return null;var J=0,Y=this.offsets;while(Y[J+1]<=X)J++;var Z=X-Y[J];return{line:J,column:Z}},Q.prototype.indexForLocation=function(X){var{line:J,column:Y}=X;if(J<0||J>=this.offsets.length)return null;if(Y<0||Y>this.lengthOfLine(J))return null;return this.offsets[J]+Y},Q.prototype.lengthOfLine=function(X){var J=this.offsets[X],Y=X===this.offsets.length-1?this.string.length:this.offsets[X+1];return Y-J},Q}();L80.LinesAndColumns=fP;L80.default=fP});var FZ=F((Ko0,GW)=>{var LZ=process||{},mP=LZ.argv||[],BZ=LZ.env||{},I80=!(!!BZ.NO_COLOR||mP.includes("--no-color"))&&(!!BZ.FORCE_COLOR||mP.includes("--color")||LZ.platform==="win32"||(LZ.stdout||{}).isTTY&&BZ.TERM!=="dumb"||!!BZ.CI),P80=(Q,X,J=Q)=>(Y)=>{let Z=""+Y,q=Z.indexOf(X,Q.length);return~q?Q+C80(Z,X,J,q)+X:Q+Z+X},C80=(Q,X,J,Y)=>{let Z="",q=0;do Z+=Q.substring(q,Y)+J,q=Y+X.length,Y=Q.indexOf(X,q);while(~Y);return Z+Q.substring(q)},dP=(Q=I80)=>{let X=Q?P80:()=>String;return{isColorSupported:Q,reset:X("\x1B[0m","\x1B[0m"),bold:X("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:X("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:X("\x1B[3m","\x1B[23m"),underline:X("\x1B[4m","\x1B[24m"),inverse:X("\x1B[7m","\x1B[27m"),hidden:X("\x1B[8m","\x1B[28m"),strikethrough:X("\x1B[9m","\x1B[29m"),black:X("\x1B[30m","\x1B[39m"),red:X("\x1B[31m","\x1B[39m"),green:X("\x1B[32m","\x1B[39m"),yellow:X("\x1B[33m","\x1B[39m"),blue:X("\x1B[34m","\x1B[39m"),magenta:X("\x1B[35m","\x1B[39m"),cyan:X("\x1B[36m","\x1B[39m"),white:X("\x1B[37m","\x1B[39m"),gray:X("\x1B[90m","\x1B[39m"),bgBlack:X("\x1B[40m","\x1B[49m"),bgRed:X("\x1B[41m","\x1B[49m"),bgGreen:X("\x1B[42m","\x1B[49m"),bgYellow:X("\x1B[43m","\x1B[49m"),bgBlue:X("\x1B[44m","\x1B[49m"),bgMagenta:X("\x1B[45m","\x1B[49m"),bgCyan:X("\x1B[46m","\x1B[49m"),bgWhite:X("\x1B[47m","\x1B[49m"),blackBright:X("\x1B[90m","\x1B[39m"),redBright:X("\x1B[91m","\x1B[39m"),greenBright:X("\x1B[92m","\x1B[39m"),yellowBright:X("\x1B[93m","\x1B[39m"),blueBright:X("\x1B[94m","\x1B[39m"),magentaBright:X("\x1B[95m","\x1B[39m"),cyanBright:X("\x1B[96m","\x1B[39m"),whiteBright:X("\x1B[97m","\x1B[39m"),bgBlackBright:X("\x1B[100m","\x1B[49m"),bgRedBright:X("\x1B[101m","\x1B[49m"),bgGreenBright:X("\x1B[102m","\x1B[49m"),bgYellowBright:X("\x1B[103m","\x1B[49m"),bgBlueBright:X("\x1B[104m","\x1B[49m"),bgMagentaBright:X("\x1B[105m","\x1B[49m"),bgCyanBright:X("\x1B[106m","\x1B[49m"),bgWhiteBright:X("\x1B[107m","\x1B[49m")}};GW.exports=dP();GW.exports.createColors=dP});var lP=F((cP)=>{Object.defineProperty(cP,"__esModule",{value:!0});cP.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;cP.matchToToken=function(Q){var X={type:"invalid",value:Q[0],closed:void 0};if(Q[1])X.type="string",X.closed=!!(Q[3]||Q[4]);else if(Q[5])X.type="comment";else if(Q[6])X.type="comment",X.closed=!!Q[7];else if(Q[8])X.type="regex";else if(Q[9])X.type="number";else if(Q[10])X.type="name";else if(Q[11])X.type="punctuator";else if(Q[12])X.type="whitespace";return X}});var sP=F((rP)=>{Object.defineProperty(rP,"__esModule",{value:!0});rP.isIdentifierChar=oP;rP.isIdentifierName=w80;rP.isIdentifierStart=iP;var zW="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",pP="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",N80=new RegExp("["+zW+"]"),R80=new RegExp("["+zW+pP+"]");zW=pP=null;var nP=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],D80=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function UW(Q,X){let J=65536;for(let Y=0,Z=X.length;Y<Z;Y+=2){if(J+=X[Y],J>Q)return!1;if(J+=X[Y+1],J>=Q)return!0}return!1}function iP(Q){if(Q<65)return Q===36;if(Q<=90)return!0;if(Q<97)return Q===95;if(Q<=122)return!0;if(Q<=65535)return Q>=170&&N80.test(String.fromCharCode(Q));return UW(Q,nP)}function oP(Q){if(Q<48)return Q===36;if(Q<58)return!0;if(Q<65)return!1;if(Q<=90)return!0;if(Q<97)return Q===95;if(Q<=122)return!0;if(Q<=65535)return Q>=170&&R80.test(String.fromCharCode(Q));return UW(Q,nP)||UW(Q,D80)}function w80(Q){let X=!0;for(let J=0;J<Q.length;J++){let Y=Q.charCodeAt(J);if((Y&64512)===55296&&J+1<Q.length){let Z=Q.charCodeAt(++J);if((Z&64512)===56320)Y=65536+((Y&1023)<<10)+(Z&1023)}if(X){if(X=!1,!iP(Y))return!1}else if(!oP(Y))return!1}return!X}});var XC=F((QC)=>{Object.defineProperty(QC,"__esModule",{value:!0});QC.isKeyword=k80;QC.isReservedWord=aP;QC.isStrictBindOnlyReservedWord=eP;QC.isStrictBindReservedWord=x80;QC.isStrictReservedWord=tP;var BW={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},_80=new Set(BW.keyword),S80=new Set(BW.strict),v80=new Set(BW.strictBind);function aP(Q,X){return X&&Q==="await"||Q==="enum"}function tP(Q,X){return aP(Q,X)||S80.has(Q)}function eP(Q){return v80.has(Q)}function x80(Q,X){return tP(Q,X)||eP(Q)}function k80(Q){return _80.has(Q)}});var JC=F((_8)=>{Object.defineProperty(_8,"__esModule",{value:!0});Object.defineProperty(_8,"isIdentifierChar",{enumerable:!0,get:function(){return LW.isIdentifierChar}});Object.defineProperty(_8,"isIdentifierName",{enumerable:!0,get:function(){return LW.isIdentifierName}});Object.defineProperty(_8,"isIdentifierStart",{enumerable:!0,get:function(){return LW.isIdentifierStart}});Object.defineProperty(_8,"isKeyword",{enumerable:!0,get:function(){return eQ.isKeyword}});Object.defineProperty(_8,"isReservedWord",{enumerable:!0,get:function(){return eQ.isReservedWord}});Object.defineProperty(_8,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return eQ.isStrictBindOnlyReservedWord}});Object.defineProperty(_8,"isStrictBindReservedWord",{enumerable:!0,get:function(){return eQ.isStrictBindReservedWord}});Object.defineProperty(_8,"isStrictReservedWord",{enumerable:!0,get:function(){return eQ.isStrictReservedWord}});var LW=sP(),eQ=XC()});var zC=F((UC)=>{Object.defineProperty(UC,"__esModule",{value:!0});var FW=FZ(),YC=lP(),ZC=JC();function u80(){return typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:FW.isColorSupported}var MZ=(Q,X)=>(J)=>Q(X(J));function HC(Q){return{keyword:Q.cyan,capitalized:Q.yellow,jsxIdentifier:Q.yellow,punctuator:Q.yellow,number:Q.magenta,string:Q.green,regex:Q.magenta,comment:Q.gray,invalid:MZ(MZ(Q.white,Q.bgRed),Q.bold),gutter:Q.gray,marker:MZ(Q.red,Q.bold),message:MZ(Q.red,Q.bold),reset:Q.reset}}var m80=HC(FW.createColors(!0)),d80=HC(FW.createColors(!1));function KC(Q){return Q?m80:d80}var c80=new Set(["as","async","from","get","of","set"]),l80=/\r\n|[\n\r\u2028\u2029]/,p80=/^[()[\]{}]$/,WC,n80=/^[a-z][\w-]*$/i,i80=function(Q,X,J){if(Q.type==="name"){let Y=Q.value;if(ZC.isKeyword(Y)||ZC.isStrictReservedWord(Y,!0)||c80.has(Y))return"keyword";if(n80.test(Y)&&(J[X-1]==="<"||J.slice(X-2,X)==="</"))return"jsxIdentifier";let Z=String.fromCodePoint(Y.codePointAt(0));if(Z!==Z.toLowerCase())return"capitalized"}if(Q.type==="punctuator"&&p80.test(Q.value))return"bracket";if(Q.type==="invalid"&&(Q.value==="@"||Q.value==="#"))return"punctuator";return Q.type};WC=function*(Q){let X;while(X=YC.default.exec(Q)){let J=YC.matchToToken(X);yield{type:i80(J,X.index,Q),value:J.value}}};function VC(Q){if(Q==="")return"";let X=KC(!0),J="";for(let{type:Y,value:Z}of WC(Q))if(Y in X)J+=Z.split(l80).map((q)=>X[Y](q)).join(`
7
+ `);else J+=Z;return J}var qC=!1,$C=/\r\n|[\n\r\u2028\u2029]/;function o80(Q,X,J,Y){let Z=Object.assign({column:0,line:-1},Q.start),q=Object.assign({},Z,Q.end),{linesAbove:$=2,linesBelow:H=3}=J||{},K=Z.line-Y,V=Z.column,W=q.line-Y,G=q.column,U=Math.max(K-($+1),0),z=Math.min(X.length,W+H);if(K===-1)U=0;if(W===-1)z=X.length;let L=W-K,B={};if(L)for(let M=0;M<=L;M++){let I=M+K;if(!V)B[I]=!0;else if(M===0){let j=X[I-1].length;B[I]=[V,j-V+1]}else if(M===L)B[I]=[0,G];else{let j=X[I-M].length;B[I]=[0,j]}}else if(V===G)if(V)B[K]=[V,0];else B[K]=!0;else B[K]=[V,G-V];return{start:U,end:z,markerLines:B}}function GC(Q,X,J={}){let Y=J.forceColor||u80()&&J.highlightCode,Z=(J.startLine||1)-1,q=KC(Y),$=Q.split($C),{start:H,end:K,markerLines:V}=o80(X,$,J,Z),W=X.start&&typeof X.start.column==="number",G=String(K+Z).length,z=(Y?VC(Q):Q).split($C,K).slice(H,K).map((L,B)=>{let M=H+1+B,j=` ${` ${M+Z}`.slice(-G)} |`,D=V[M],N=!V[M+1];if(D){let k="";if(Array.isArray(D)){let f=L.slice(0,Math.max(D[0]-1,0)).replace(/[^\t]/g," "),S=D[1]||1;if(k=[`
8
+ `,q.gutter(j.replace(/\d/g," "))," ",f,q.marker("^").repeat(S)].join(""),N&&J.message)k+=" "+q.message(J.message)}return[q.marker(">"),q.gutter(j),L.length>0?` ${L}`:"",k].join("")}else return` ${q.gutter(j)}${L.length>0?` ${L}`:""}`}).join(`
9
+ `);if(J.message&&!W)z=`${" ".repeat(G+1)}${J.message}
10
+ ${z}`;if(Y)return q.reset(z);else return z}function r80(Q,X,J,Y={}){if(!qC){qC=!0;let q="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(q,"DeprecationWarning");else{let $=Error(q);$.name="DeprecationWarning",console.warn(Error(q))}}return J=Math.max(J,0),GC(Q,{start:{column:J,line:X}},Y)}UC.codeFrameColumns=GC;UC.default=r80;UC.highlight=VC});var MC=F((Bo0,FC)=>{var MW=xP(),e80=hP(),{default:Q40}=uP(),{codeFrameColumns:X40}=zC(),BC=MW("JSONError",{fileName:MW.append("in %s"),codeFrame:MW.append(`
11
+
12
+ %s
13
+ `)}),LC=(Q,X,J)=>{if(typeof X==="string")J=X,X=null;try{try{return JSON.parse(Q,X)}catch(Y){throw e80(Q,X),Y}}catch(Y){Y.message=Y.message.replace(/\n/g,"");let Z=Y.message.match(/in JSON at position (\d+) while parsing/),q=new BC(Y);if(J)q.fileName=J;if(Z&&Z.length>0){let $=new Q40(Q),H=Number(Z[1]),K=$.locationForIndex(H),V=X40(Q,{start:{line:K.line+1,column:K.column+1}},{highlightCode:!0});q.codeFrame=V}throw q}};LC.JSONError=BC;FC.exports=LC});var QX=F((Lo0,IC)=>{var J40=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...Q)=>console.error("SEMVER",...Q):()=>{};IC.exports=J40});var b7=F((Fo0,PC)=>{var Y40=Number.MAX_SAFE_INTEGER||9007199254740991,Z40=["major","premajor","minor","preminor","patch","prepatch","prerelease"];PC.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Y40,RELEASE_TYPES:Z40,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var f7=F((S8,CC)=>{var{MAX_SAFE_COMPONENT_LENGTH:IW,MAX_SAFE_BUILD_LENGTH:q40,MAX_LENGTH:$40}=b7(),H40=QX();S8=CC.exports={};var K40=S8.re=[],W40=S8.safeRe=[],r=S8.src=[],V40=S8.safeSrc=[],s=S8.t={},G40=0,PW="[a-zA-Z0-9-]",U40=[["\\s",1],["\\d",$40],[PW,q40]],z40=(Q)=>{for(let[X,J]of U40)Q=Q.split(`${X}*`).join(`${X}{0,${J}}`).split(`${X}+`).join(`${X}{1,${J}}`);return Q},M0=(Q,X,J)=>{let Y=z40(X),Z=G40++;H40(Q,Z,X),s[Q]=Z,r[Z]=X,V40[Z]=Y,K40[Z]=new RegExp(X,J?"g":void 0),W40[Z]=new RegExp(Y,J?"g":void 0)};M0("NUMERICIDENTIFIER","0|[1-9]\\d*");M0("NUMERICIDENTIFIERLOOSE","\\d+");M0("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${PW}*`);M0("MAINVERSION",`(${r[s.NUMERICIDENTIFIER]})\\.(${r[s.NUMERICIDENTIFIER]})\\.(${r[s.NUMERICIDENTIFIER]})`);M0("MAINVERSIONLOOSE",`(${r[s.NUMERICIDENTIFIERLOOSE]})\\.(${r[s.NUMERICIDENTIFIERLOOSE]})\\.(${r[s.NUMERICIDENTIFIERLOOSE]})`);M0("PRERELEASEIDENTIFIER",`(?:${r[s.NONNUMERICIDENTIFIER]}|${r[s.NUMERICIDENTIFIER]})`);M0("PRERELEASEIDENTIFIERLOOSE",`(?:${r[s.NONNUMERICIDENTIFIER]}|${r[s.NUMERICIDENTIFIERLOOSE]})`);M0("PRERELEASE",`(?:-(${r[s.PRERELEASEIDENTIFIER]}(?:\\.${r[s.PRERELEASEIDENTIFIER]})*))`);M0("PRERELEASELOOSE",`(?:-?(${r[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${r[s.PRERELEASEIDENTIFIERLOOSE]})*))`);M0("BUILDIDENTIFIER",`${PW}+`);M0("BUILD",`(?:\\+(${r[s.BUILDIDENTIFIER]}(?:\\.${r[s.BUILDIDENTIFIER]})*))`);M0("FULLPLAIN",`v?${r[s.MAINVERSION]}${r[s.PRERELEASE]}?${r[s.BUILD]}?`);M0("FULL",`^${r[s.FULLPLAIN]}$`);M0("LOOSEPLAIN",`[v=\\s]*${r[s.MAINVERSIONLOOSE]}${r[s.PRERELEASELOOSE]}?${r[s.BUILD]}?`);M0("LOOSE",`^${r[s.LOOSEPLAIN]}$`);M0("GTLT","((?:<|>)?=?)");M0("XRANGEIDENTIFIERLOOSE",`${r[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);M0("XRANGEIDENTIFIER",`${r[s.NUMERICIDENTIFIER]}|x|X|\\*`);M0("XRANGEPLAIN",`[v=\\s]*(${r[s.XRANGEIDENTIFIER]})(?:\\.(${r[s.XRANGEIDENTIFIER]})(?:\\.(${r[s.XRANGEIDENTIFIER]})(?:${r[s.PRERELEASE]})?${r[s.BUILD]}?)?)?`);M0("XRANGEPLAINLOOSE",`[v=\\s]*(${r[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[s.XRANGEIDENTIFIERLOOSE]})(?:${r[s.PRERELEASELOOSE]})?${r[s.BUILD]}?)?)?`);M0("XRANGE",`^${r[s.GTLT]}\\s*${r[s.XRANGEPLAIN]}$`);M0("XRANGELOOSE",`^${r[s.GTLT]}\\s*${r[s.XRANGEPLAINLOOSE]}$`);M0("COERCEPLAIN",`(^|[^\\d])(\\d{1,${IW}})(?:\\.(\\d{1,${IW}}))?(?:\\.(\\d{1,${IW}}))?`);M0("COERCE",`${r[s.COERCEPLAIN]}(?:$|[^\\d])`);M0("COERCEFULL",r[s.COERCEPLAIN]+`(?:${r[s.PRERELEASE]})?(?:${r[s.BUILD]})?(?:$|[^\\d])`);M0("COERCERTL",r[s.COERCE],!0);M0("COERCERTLFULL",r[s.COERCEFULL],!0);M0("LONETILDE","(?:~>?)");M0("TILDETRIM",`(\\s*)${r[s.LONETILDE]}\\s+`,!0);S8.tildeTrimReplace="$1~";M0("TILDE",`^${r[s.LONETILDE]}${r[s.XRANGEPLAIN]}$`);M0("TILDELOOSE",`^${r[s.LONETILDE]}${r[s.XRANGEPLAINLOOSE]}$`);M0("LONECARET","(?:\\^)");M0("CARETTRIM",`(\\s*)${r[s.LONECARET]}\\s+`,!0);S8.caretTrimReplace="$1^";M0("CARET",`^${r[s.LONECARET]}${r[s.XRANGEPLAIN]}$`);M0("CARETLOOSE",`^${r[s.LONECARET]}${r[s.XRANGEPLAINLOOSE]}$`);M0("COMPARATORLOOSE",`^${r[s.GTLT]}\\s*(${r[s.LOOSEPLAIN]})$|^$`);M0("COMPARATOR",`^${r[s.GTLT]}\\s*(${r[s.FULLPLAIN]})$|^$`);M0("COMPARATORTRIM",`(\\s*)${r[s.GTLT]}\\s*(${r[s.LOOSEPLAIN]}|${r[s.XRANGEPLAIN]})`,!0);S8.comparatorTrimReplace="$1$2$3";M0("HYPHENRANGE",`^\\s*(${r[s.XRANGEPLAIN]})\\s+-\\s+(${r[s.XRANGEPLAIN]})\\s*$`);M0("HYPHENRANGELOOSE",`^\\s*(${r[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${r[s.XRANGEPLAINLOOSE]})\\s*$`);M0("STAR","(<|>)?=?\\s*\\*");M0("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");M0("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var IZ=F((Mo0,OC)=>{var B40=Object.freeze({loose:!0}),L40=Object.freeze({}),F40=(Q)=>{if(!Q)return L40;if(typeof Q!=="object")return B40;return Q};OC.exports=F40});var CW=F((Io0,RC)=>{var jC=/^[0-9]+$/,NC=(Q,X)=>{if(typeof Q==="number"&&typeof X==="number")return Q===X?0:Q<X?-1:1;let J=jC.test(Q),Y=jC.test(X);if(J&&Y)Q=+Q,X=+X;return Q===X?0:J&&!Y?-1:Y&&!J?1:Q<X?-1:1},M40=(Q,X)=>NC(X,Q);RC.exports={compareIdentifiers:NC,rcompareIdentifiers:M40}});var g1=F((Po0,wC)=>{var PZ=QX(),{MAX_LENGTH:DC,MAX_SAFE_INTEGER:CZ}=b7(),{safeRe:OZ,t:jZ}=f7(),I40=IZ(),{compareIdentifiers:OW}=CW(),P40=(Q,X)=>{let J=X.split(".");if(J.length>Q.length)return!1;for(let Y=0;Y<J.length;Y++)if(OW(Q[Y],J[Y])!==0)return!1;return!0};class K8{constructor(Q,X){if(X=I40(X),Q instanceof K8)if(Q.loose===!!X.loose&&Q.includePrerelease===!!X.includePrerelease)return Q;else Q=Q.version;else if(typeof Q!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof Q}".`);if(Q.length>DC)throw TypeError(`version is longer than ${DC} characters`);PZ("SemVer",Q,X),this.options=X,this.loose=!!X.loose,this.includePrerelease=!!X.includePrerelease;let J=Q.trim().match(X.loose?OZ[jZ.LOOSE]:OZ[jZ.FULL]);if(!J)throw TypeError(`Invalid Version: ${Q}`);if(this.raw=Q,this.major=+J[1],this.minor=+J[2],this.patch=+J[3],this.major>CZ||this.major<0)throw TypeError("Invalid major version");if(this.minor>CZ||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>CZ||this.patch<0)throw TypeError("Invalid patch version");if(!J[4])this.prerelease=[];else this.prerelease=J[4].split(".").map((Y)=>{if(/^[0-9]+$/.test(Y)){let Z=+Y;if(Z>=0&&Z<CZ)return Z}return Y});this.build=J[5]?J[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(Q){if(PZ("SemVer.compare",this.version,this.options,Q),!(Q instanceof K8)){if(typeof Q==="string"&&Q===this.version)return 0;Q=new K8(Q,this.options)}if(Q.version===this.version)return 0;return this.compareMain(Q)||this.comparePre(Q)}compareMain(Q){if(!(Q instanceof K8))Q=new K8(Q,this.options);if(this.major<Q.major)return-1;if(this.major>Q.major)return 1;if(this.minor<Q.minor)return-1;if(this.minor>Q.minor)return 1;if(this.patch<Q.patch)return-1;if(this.patch>Q.patch)return 1;return 0}comparePre(Q){if(!(Q instanceof K8))Q=new K8(Q,this.options);if(this.prerelease.length&&!Q.prerelease.length)return-1;else if(!this.prerelease.length&&Q.prerelease.length)return 1;else if(!this.prerelease.length&&!Q.prerelease.length)return 0;let X=0;do{let J=this.prerelease[X],Y=Q.prerelease[X];if(PZ("prerelease compare",X,J,Y),J===void 0&&Y===void 0)return 0;else if(Y===void 0)return 1;else if(J===void 0)return-1;else if(J===Y)continue;else return OW(J,Y)}while(++X)}compareBuild(Q){if(!(Q instanceof K8))Q=new K8(Q,this.options);let X=0;do{let J=this.build[X],Y=Q.build[X];if(PZ("build compare",X,J,Y),J===void 0&&Y===void 0)return 0;else if(Y===void 0)return 1;else if(J===void 0)return-1;else if(J===Y)continue;else return OW(J,Y)}while(++X)}inc(Q,X,J){if(Q.startsWith("pre")){if(!X&&J===!1)throw Error("invalid increment argument: identifier is empty");if(X){let Y=`-${X}`.match(this.options.loose?OZ[jZ.PRERELEASELOOSE]:OZ[jZ.PRERELEASE]);if(!Y||Y[1]!==X)throw Error(`invalid identifier: ${X}`)}}switch(Q){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",X,J);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",X,J);break;case"prepatch":this.prerelease.length=0,this.inc("patch",X,J),this.inc("pre",X,J);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",X,J);this.inc("pre",X,J);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let Y=Number(J)?1:0;if(this.prerelease.length===0)this.prerelease=[Y];else{let Z=this.prerelease.length;while(--Z>=0)if(typeof this.prerelease[Z]==="number")this.prerelease[Z]++,Z=-2;if(Z===-1){if(X===this.prerelease.join(".")&&J===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(Y)}}if(X){let Z=[X,Y];if(J===!1)Z=[X];if(P40(this.prerelease,X)){let q=this.prerelease[X.split(".").length];if(isNaN(q))this.prerelease=Z}else this.prerelease=Z}break}default:throw Error(`invalid increment argument: ${Q}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}wC.exports=K8});var h4=F((Co0,AC)=>{var TC=g1(),C40=(Q,X,J=!1)=>{if(Q instanceof TC)return Q;try{return new TC(Q,X)}catch(Y){if(!J)return null;throw Y}};AC.exports=C40});var NZ=F((Oo0,EC)=>{var O40=h4(),j40=(Q,X)=>{let J=O40(Q,X);return J?J.version:null};EC.exports=j40});var RZ=F((jo0,_C)=>{var N40=h4(),R40=(Q,X)=>{let J=N40(Q.trim().replace(/^[=v]+/,""),X);return J?J.version:null};_C.exports=R40});var jW=F((No0,D40)=>{D40.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","ALGLIB-Documentation","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Advanced-Cryptics-Dictionary","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","Artistic-dist","Aspell-RU","BOLA-1.1","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-2-Clause-pkgconf-disclaimer","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-Tso","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Mark-Modifications","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","Buddy","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CAPEC-tou","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CryptoSwift","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","ESA-PL-permissive-2.4","ESA-PL-strong-copyleft-2.4","ESA-PL-weak-copyleft-2.4","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Game-Programming-Gems","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HDF5","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-SMC","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HPND-sell-variant-critical-systems","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ISO-permission","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-STK","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MMPL-1.0.1","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-TNT","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTIA-PD","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSC-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OSSP","OpenMDW-1.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","ParaType-Free-Font-1.3","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGMLUG-PM","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SOFA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SUL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TekHVC","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","UnRAR","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","Vixie-Cron","W3C","W3C-19980720","W3C-20150513","WTFNMFPL","WTFPL","Watcom-1.0","Widget-Workshop","WordNet","Wsuipa","X11","X11-distribute-modifications-variant","X11-no-permit-persons","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","hyphen-bulgarian","iMatix","jove","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","man2html","metamail","mpi-permissive","mpich2","mplus","ngrep","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var SC=F((Ro0,w40)=>{w40.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var vC=F((Do0,T40)=>{T40.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var kC=F((wo0,xC)=>{var A40=[].concat(jW()).concat(SC()),E40=vC();xC.exports=function(Q){var X=0;function J(){return X<Q.length}function Y(L){if(L instanceof RegExp){var B=Q.slice(X),M=B.match(L);if(M)return X+=M[0].length,M[0]}else if(Q.indexOf(L,X)===X)return X+=L.length,L}function Z(){Y(/[ ]*/)}function q(){var L,B=["WITH","AND","OR","(",")",":","+"];for(var M=0;M<B.length;M++)if(L=Y(B[M]),L)break;if(L==="+"&&X>1&&Q[X-2]===" ")throw Error("Space before `+`");return L&&{type:"OPERATOR",string:L}}function $(){return Y(/[A-Za-z0-9-.]+/)}function H(){var L=$();if(!L)throw Error("Expected idstring at offset "+X);return L}function K(){if(Y("DocumentRef-")){var L=H();return{type:"DOCUMENTREF",string:L}}}function V(){if(Y("LicenseRef-")){var L=H();return{type:"LICENSEREF",string:L}}}function W(){var L=X,B=$();if(A40.indexOf(B)!==-1)return{type:"LICENSE",string:B};else if(E40.indexOf(B)!==-1)return{type:"EXCEPTION",string:B};X=L}function G(){return q()||K()||V()||W()}var U=[];while(J()){if(Z(),!J())break;var z=G();if(!z)throw Error("Unexpected `"+Q[X]+"` at offset "+X);U.push(z)}return U}});var hC=F((To0,yC)=>{yC.exports=function(Q){var X=0;function J(){return X<Q.length}function Y(){return J()?Q[X]:null}function Z(){if(!J())throw Error();X++}function q(B){var M=Y();if(M&&M.type==="OPERATOR"&&B===M.string)return Z(),M.string}function $(){if(q("WITH")){var B=Y();if(B&&B.type==="EXCEPTION")return Z(),B.string;throw Error("Expected exception after `WITH`")}}function H(){var B=X,M="",I=Y();if(I.type==="DOCUMENTREF"){if(Z(),M+="DocumentRef-"+I.string+":",!q(":"))throw Error("Expected `:` after `DocumentRef-...`")}if(I=Y(),I.type==="LICENSEREF")return Z(),M+="LicenseRef-"+I.string,{license:M};X=B}function K(){var B=Y();if(B&&B.type==="LICENSE"){Z();var M={license:B.string};if(q("+"))M.plus=!0;var I=$();if(I)M.exception=I;return M}}function V(){var B=q("(");if(!B)return;var M=z();if(!q(")"))throw Error("Expected `)`");return M}function W(){return V()||H()||K()}function G(B,M){return function I(){var j=M();if(!j)return;if(!q(B))return j;var D=I();if(!D)throw Error("Expected expression");return{left:j,conjunction:B.toLowerCase(),right:D}}}var U=G("AND",W),z=G("OR",U),L=z();if(!L||J())throw Error("Syntax error");return L}});var NW=F((Ao0,bC)=>{var _40=kC(),S40=hC();bC.exports=function(Q){return S40(_40(Q))}});var nC=F((Eo0,pC)=>{var v40=NW(),x40=jW();function DZ(Q){try{return v40(Q),!0}catch(X){return!1}}function lC(Q,X){var J=X[0].length-Q[0].length;if(J!==0)return J;return Q[0].toUpperCase().localeCompare(X[0].toUpperCase())}var fC=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(lC),k40=0,y40=1,gC=[function(Q){return Q.toUpperCase()},function(Q){return Q.trim()},function(Q){return Q.replace(/\./g,"")},function(Q){return Q.replace(/\s+/g,"")},function(Q){return Q.replace(/\s+/g,"-")},function(Q){return Q.replace("v","-")},function(Q){return Q.replace(/,?\s*(\d)/,"-$1")},function(Q){return Q.replace(/,?\s*(\d)/,"-$1.0")},function(Q){return Q.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(Q){return Q.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(Q){return Q[0].toUpperCase()+Q.slice(1)},function(Q){return Q.replace("/","-")},function(Q){return Q.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(Q){if(Q.indexOf("3.0")!==-1)return Q+"-or-later";else return Q+"-only"},function(Q){return Q+"only"},function(Q){return Q.replace(/(\d)$/,"-$1.0")},function(Q){return Q.replace(/(-| )?(\d)$/,"-$2-Clause")},function(Q){return Q.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(Q){return Q.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(Q){return Q.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(Q){return Q.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(Q){return Q.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(Q){return Q.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(Q){return"CC-"+Q},function(Q){return"CC-"+Q+"-4.0"},function(Q){return Q.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(Q){return"CC-"+Q.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],RW=x40.map(function(Q){var X=/^(.*)-\d+\.\d+$/.exec(Q);return X?[X[0],X[1]]:[Q,null]}).reduce(function(Q,X){var J=X[1];return Q[J]=Q[J]||[],Q[J].push(X[0]),Q},{}),h40=Object.keys(RW).map(function(X){return[X,RW[X]]}).filter(function(X){return X[1].length===1&&X[0]!==null&&X[0]!=="APL"}).map(function(X){return[X[0],X[1][0]]});RW=void 0;var uC=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(h40).sort(lC),b40=0,f40=1,mC=function(Q){for(var X=0;X<gC.length;X++){var J=gC[X](Q).trim();if(J!==Q&&DZ(J))return J}return null},dC=function(Q){var X=Q.toUpperCase();for(var J=0;J<uC.length;J++){var Y=uC[J];if(X.indexOf(Y[b40])>-1)return Y[f40]}return null},cC=function(Q,X){for(var J=0;J<fC.length;J++){var Y=fC[J],Z=Y[k40];if(Q.indexOf(Z)>-1){var q=Q.replace(Z,Y[y40]),$=X(q);if($!==null)return $}}return null};pC.exports=function(Q,X){X=X||{};var J=X.upgrade===void 0?!0:!!X.upgrade;function Y(H){return J?g40(H):H}var Z=typeof Q==="string"&&Q.trim().length!==0;if(!Z)throw Error("Invalid argument. Expected non-empty string.");if(Q=Q.trim(),DZ(Q))return Y(Q);var q=Q.replace(/\+$/,"").trim();if(DZ(q))return Y(q);var $=mC(Q);if($!==null)return Y($);if($=cC(Q,function(H){if(DZ(H))return H;return mC(H)}),$!==null)return Y($);if($=dC(Q),$!==null)return Y($);if($=cC(Q,dC),$!==null)return Y($);return null};function g40(Q){if(["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(Q)!==-1)return Q+"-only";else if(["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(Q)!==-1)return Q.replace(/\+$/,"-or-later");else if(["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(Q)!==-1)return Q+"-or-later";else return Q}});var wW=F((_o0,rC)=>{var u40=NW(),m40=nC(),iC='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',d40=/^SEE LICEN[CS]E IN (.+)$/;function oC(Q,X){return X.slice(0,Q.length)===Q}function DW(Q){if(Q.hasOwnProperty("license")){var X=Q.license;return oC("LicenseRef",X)||oC("DocumentRef",X)}else return DW(Q.left)||DW(Q.right)}rC.exports=function(Q){var X;try{X=u40(Q)}catch(q){var J;if(Q==="UNLICENSED"||Q==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};else if(J=d40.exec(Q))return{validForOldPackages:!0,validForNewPackages:!0,inFile:J[1]};else{var Y={validForOldPackages:!1,validForNewPackages:!1,warnings:[iC]};if(Q.trim().length!==0){var Z=m40(Q);if(Z)Y.warnings.push('license is similar to the valid expression "'+Z+'"')}return Y}}if(DW(X))return{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[iC]};else return{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var TW=F((So0,aC)=>{var n0=(...Q)=>Q.every((X)=>X)?Q.join(""):"",u1=(Q)=>Q?encodeURIComponent(Q):"",XX={sshtemplate:({domain:Q,user:X,project:J,committish:Y})=>`git@${Q}:${X}/${J}.git${n0("#",Y)}`,sshurltemplate:({domain:Q,user:X,project:J,committish:Y})=>`git+ssh://git@${Q}/${X}/${J}.git${n0("#",Y)}`,browsetemplate:({domain:Q,user:X,project:J,committish:Y,treepath:Z})=>`https://${Q}/${X}/${J}${n0("/",Z,"/",u1(Y))}`,browsefiletemplate:({domain:Q,user:X,project:J,committish:Y,treepath:Z,path:q,fragment:$,hashformat:H})=>`https://${Q}/${X}/${J}/${Z}/${u1(Y||"master")}/${q}${n0("#",H($||""))}`,docstemplate:({domain:Q,user:X,project:J,treepath:Y,committish:Z})=>`https://${Q}/${X}/${J}${n0("/",Y,"/",u1(Z))}#readme`,httpstemplate:({auth:Q,domain:X,user:J,project:Y,committish:Z})=>`git+https://${n0(Q,"@")}${X}/${J}/${Y}.git${n0("#",Z)}`,filetemplate:({domain:Q,user:X,project:J,committish:Y,path:Z})=>`https://${Q}/${X}/${J}/raw/${u1(Y)||"master"}/${Z}`,shortcuttemplate:({type:Q,user:X,project:J,committish:Y})=>`${Q}:${X}/${J}${n0("#",Y)}`,pathtemplate:({user:Q,project:X,committish:J})=>`${Q}/${X}${n0("#",J)}`,bugstemplate:({domain:Q,user:X,project:J})=>`https://${Q}/${X}/${J}/issues`,hashformat:sC},m6={};m6.github=Object.assign({},XX,{protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",filetemplate:({auth:Q,user:X,project:J,committish:Y,path:Z})=>`https://${n0(Q,"@")}raw.githubusercontent.com/${X}/${J}/${u1(Y)||"master"}/${Z}`,gittemplate:({auth:Q,domain:X,user:J,project:Y,committish:Z})=>`git://${n0(Q,"@")}${X}/${J}/${Y}.git${n0("#",Z)}`,tarballtemplate:({domain:Q,user:X,project:J,committish:Y})=>`https://codeload.${Q}/${X}/${J}/tar.gz/${u1(Y)||"master"}`,extract:(Q)=>{let[,X,J,Y,Z]=Q.pathname.split("/",5);if(Y&&Y!=="tree")return;if(!Y)Z=Q.hash.slice(1);if(J&&J.endsWith(".git"))J=J.slice(0,-4);if(!X||!J)return;return{user:X,project:J,committish:Z}}});m6.bitbucket=Object.assign({},XX,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",tarballtemplate:({domain:Q,user:X,project:J,committish:Y})=>`https://${Q}/${X}/${J}/get/${u1(Y)||"master"}.tar.gz`,extract:(Q)=>{let[,X,J,Y]=Q.pathname.split("/",4);if(["get"].includes(Y))return;if(J&&J.endsWith(".git"))J=J.slice(0,-4);if(!X||!J)return;return{user:X,project:J,committish:Q.hash.slice(1)}}});m6.gitlab=Object.assign({},XX,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",httpstemplate:({auth:Q,domain:X,user:J,project:Y,committish:Z})=>`git+https://${n0(Q,"@")}${X}/${J}/${Y}.git${n0("#",Z)}`,tarballtemplate:({domain:Q,user:X,project:J,committish:Y})=>`https://${Q}/${X}/${J}/repository/archive.tar.gz?ref=${u1(Y)||"master"}`,extract:(Q)=>{let X=Q.pathname.slice(1);if(X.includes("/-/")||X.includes("/archive.tar.gz"))return;let J=X.split("/"),Y=J.pop();if(Y.endsWith(".git"))Y=Y.slice(0,-4);let Z=J.join("/");if(!Z||!Y)return;return{user:Z,project:Y,committish:Q.hash.slice(1)}}});m6.gist=Object.assign({},XX,{protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",sshtemplate:({domain:Q,project:X,committish:J})=>`git@${Q}:${X}.git${n0("#",J)}`,sshurltemplate:({domain:Q,project:X,committish:J})=>`git+ssh://git@${Q}/${X}.git${n0("#",J)}`,browsetemplate:({domain:Q,project:X,committish:J})=>`https://${Q}/${X}${n0("/",u1(J))}`,browsefiletemplate:({domain:Q,project:X,committish:J,path:Y,hashformat:Z})=>`https://${Q}/${X}${n0("/",u1(J))}${n0("#",Z(Y))}`,docstemplate:({domain:Q,project:X,committish:J})=>`https://${Q}/${X}${n0("/",u1(J))}`,httpstemplate:({domain:Q,project:X,committish:J})=>`git+https://${Q}/${X}.git${n0("#",J)}`,filetemplate:({user:Q,project:X,committish:J,path:Y})=>`https://gist.githubusercontent.com/${Q}/${X}/raw${n0("/",u1(J))}/${Y}`,shortcuttemplate:({type:Q,project:X,committish:J})=>`${Q}:${X}${n0("#",J)}`,pathtemplate:({project:Q,committish:X})=>`${Q}${n0("#",X)}`,bugstemplate:({domain:Q,project:X})=>`https://${Q}/${X}`,gittemplate:({domain:Q,project:X,committish:J})=>`git://${Q}/${X}.git${n0("#",J)}`,tarballtemplate:({project:Q,committish:X})=>`https://codeload.github.com/gist/${Q}/tar.gz/${u1(X)||"master"}`,extract:(Q)=>{let[,X,J,Y]=Q.pathname.split("/",4);if(Y==="raw")return;if(!J){if(!X)return;J=X,X=null}if(J.endsWith(".git"))J=J.slice(0,-4);return{user:X,project:J,committish:Q.hash.slice(1)}},hashformat:function(Q){return Q&&"file-"+sC(Q)}});m6.sourcehut=Object.assign({},XX,{protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",browsefiletemplate:({domain:Q,user:X,project:J,committish:Y,treepath:Z,path:q,fragment:$,hashformat:H})=>`https://${Q}/${X}/${J}/${Z}/${u1(Y||"main")}/${q}${n0("#",H($||""))}`,filetemplate:({domain:Q,user:X,project:J,committish:Y,path:Z})=>`https://${Q}/${X}/${J}/blob/${u1(Y)||"main"}/${Z}`,httpstemplate:({domain:Q,user:X,project:J,committish:Y})=>`https://${Q}/${X}/${J}.git${n0("#",Y)}`,tarballtemplate:({domain:Q,user:X,project:J,committish:Y})=>`https://${Q}/${X}/${J}/archive/${u1(Y)||"main"}.tar.gz`,bugstemplate:({domain:Q,user:X,project:J})=>`https://todo.sr.ht/${X}/${J}`,docstemplate:({domain:Q,user:X,project:J,treepath:Y,committish:Z})=>`https://${Q}/${X}/${J}${n0("/",Y,"/",u1(Z))}#readme`,extract:(Q)=>{let[,X,J,Y]=Q.pathname.split("/",4);if(["archive"].includes(Y))return;if(J&&J.endsWith(".git"))J=J.slice(0,-4);if(!X||!J)return;return{user:X,project:J,committish:Q.hash.slice(1)}}});var c40=Object.keys(m6);m6.byShortcut={};m6.byDomain={};for(let Q of c40)m6.byShortcut[`${Q}:`]=Q,m6.byDomain[m6[Q].domain]=Q;function sC(Q){return Q.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}aC.exports=m6});var QO=F((vo0,eC)=>{var l40=TW();class tC{constructor(Q,X,J,Y,Z,q,$={}){Object.assign(this,l40[Q]),this.type=Q,this.user=X,this.auth=J,this.project=Y,this.committish=Z,this.default=q,this.opts=$}hash(){return this.committish?`#${this.committish}`:""}ssh(Q){return this._fill(this.sshtemplate,Q)}_fill(Q,X){if(typeof Q==="function"){let J={...this,...this.opts,...X};if(!J.path)J.path="";if(J.path.startsWith("/"))J.path=J.path.slice(1);if(J.noCommittish)J.committish=null;let Y=Q(J);return J.noGitPlus&&Y.startsWith("git+")?Y.slice(4):Y}return null}sshurl(Q){return this._fill(this.sshurltemplate,Q)}browse(Q,X,J){if(typeof Q!=="string")return this._fill(this.browsetemplate,Q);if(typeof X!=="string")J=X,X=null;return this._fill(this.browsefiletemplate,{...J,fragment:X,path:Q})}docs(Q){return this._fill(this.docstemplate,Q)}bugs(Q){return this._fill(this.bugstemplate,Q)}https(Q){return this._fill(this.httpstemplate,Q)}git(Q){return this._fill(this.gittemplate,Q)}shortcut(Q){return this._fill(this.shortcuttemplate,Q)}path(Q){return this._fill(this.pathtemplate,Q)}tarball(Q){return this._fill(this.tarballtemplate,{...Q,noCommittish:!1})}file(Q,X){return this._fill(this.filetemplate,{...X,path:Q})}getDefaultRepresentation(){return this.default}toString(Q){if(this.default&&typeof this[this.default]==="function")return this[this.default](Q);return this.sshurl(Q)}}eC.exports=tC});var JO=F((xo0,XO)=>{XO.exports=function(Q){Q.prototype[Symbol.iterator]=function*(){for(let X=this.head;X;X=X.next)yield X.value}}});var ZO=F((ko0,YO)=>{YO.exports=g0;g0.Node=w5;g0.create=g0;function g0(Q){var X=this;if(!(X instanceof g0))X=new g0;if(X.tail=null,X.head=null,X.length=0,Q&&typeof Q.forEach==="function")Q.forEach(function(Z){X.push(Z)});else if(arguments.length>0)for(var J=0,Y=arguments.length;J<Y;J++)X.push(arguments[J]);return X}g0.prototype.removeNode=function(Q){if(Q.list!==this)throw Error("removing node which does not belong to this list");var{next:X,prev:J}=Q;if(X)X.prev=J;if(J)J.next=X;if(Q===this.head)this.head=X;if(Q===this.tail)this.tail=J;return Q.list.length--,Q.next=null,Q.prev=null,Q.list=null,X};g0.prototype.unshiftNode=function(Q){if(Q===this.head)return;if(Q.list)Q.list.removeNode(Q);var X=this.head;if(Q.list=this,Q.next=X,X)X.prev=Q;if(this.head=Q,!this.tail)this.tail=Q;this.length++};g0.prototype.pushNode=function(Q){if(Q===this.tail)return;if(Q.list)Q.list.removeNode(Q);var X=this.tail;if(Q.list=this,Q.prev=X,X)X.next=Q;if(this.tail=Q,!this.head)this.head=Q;this.length++};g0.prototype.push=function(){for(var Q=0,X=arguments.length;Q<X;Q++)n40(this,arguments[Q]);return this.length};g0.prototype.unshift=function(){for(var Q=0,X=arguments.length;Q<X;Q++)i40(this,arguments[Q]);return this.length};g0.prototype.pop=function(){if(!this.tail)return;var Q=this.tail.value;if(this.tail=this.tail.prev,this.tail)this.tail.next=null;else this.head=null;return this.length--,Q};g0.prototype.shift=function(){if(!this.head)return;var Q=this.head.value;if(this.head=this.head.next,this.head)this.head.prev=null;else this.tail=null;return this.length--,Q};g0.prototype.forEach=function(Q,X){X=X||this;for(var J=this.head,Y=0;J!==null;Y++)Q.call(X,J.value,Y,this),J=J.next};g0.prototype.forEachReverse=function(Q,X){X=X||this;for(var J=this.tail,Y=this.length-1;J!==null;Y--)Q.call(X,J.value,Y,this),J=J.prev};g0.prototype.get=function(Q){for(var X=0,J=this.head;J!==null&&X<Q;X++)J=J.next;if(X===Q&&J!==null)return J.value};g0.prototype.getReverse=function(Q){for(var X=0,J=this.tail;J!==null&&X<Q;X++)J=J.prev;if(X===Q&&J!==null)return J.value};g0.prototype.map=function(Q,X){X=X||this;var J=new g0;for(var Y=this.head;Y!==null;)J.push(Q.call(X,Y.value,this)),Y=Y.next;return J};g0.prototype.mapReverse=function(Q,X){X=X||this;var J=new g0;for(var Y=this.tail;Y!==null;)J.push(Q.call(X,Y.value,this)),Y=Y.prev;return J};g0.prototype.reduce=function(Q,X){var J,Y=this.head;if(arguments.length>1)J=X;else if(this.head)Y=this.head.next,J=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var Z=0;Y!==null;Z++)J=Q(J,Y.value,Z),Y=Y.next;return J};g0.prototype.reduceReverse=function(Q,X){var J,Y=this.tail;if(arguments.length>1)J=X;else if(this.tail)Y=this.tail.prev,J=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var Z=this.length-1;Y!==null;Z--)J=Q(J,Y.value,Z),Y=Y.prev;return J};g0.prototype.toArray=function(){var Q=Array(this.length);for(var X=0,J=this.head;J!==null;X++)Q[X]=J.value,J=J.next;return Q};g0.prototype.toArrayReverse=function(){var Q=Array(this.length);for(var X=0,J=this.tail;J!==null;X++)Q[X]=J.value,J=J.prev;return Q};g0.prototype.slice=function(Q,X){if(X=X||this.length,X<0)X+=this.length;if(Q=Q||0,Q<0)Q+=this.length;var J=new g0;if(X<Q||X<0)return J;if(Q<0)Q=0;if(X>this.length)X=this.length;for(var Y=0,Z=this.head;Z!==null&&Y<Q;Y++)Z=Z.next;for(;Z!==null&&Y<X;Y++,Z=Z.next)J.push(Z.value);return J};g0.prototype.sliceReverse=function(Q,X){if(X=X||this.length,X<0)X+=this.length;if(Q=Q||0,Q<0)Q+=this.length;var J=new g0;if(X<Q||X<0)return J;if(Q<0)Q=0;if(X>this.length)X=this.length;for(var Y=this.length,Z=this.tail;Z!==null&&Y>X;Y--)Z=Z.prev;for(;Z!==null&&Y>Q;Y--,Z=Z.prev)J.push(Z.value);return J};g0.prototype.splice=function(Q,X,...J){if(Q>this.length)Q=this.length-1;if(Q<0)Q=this.length+Q;for(var Y=0,Z=this.head;Z!==null&&Y<Q;Y++)Z=Z.next;var q=[];for(var Y=0;Z&&Y<X;Y++)q.push(Z.value),Z=this.removeNode(Z);if(Z===null)Z=this.tail;if(Z!==this.head&&Z!==this.tail)Z=Z.prev;for(var Y=0;Y<J.length;Y++)Z=p40(this,Z,J[Y]);return q};g0.prototype.reverse=function(){var Q=this.head,X=this.tail;for(var J=Q;J!==null;J=J.prev){var Y=J.prev;J.prev=J.next,J.next=Y}return this.head=X,this.tail=Q,this};function p40(Q,X,J){var Y=X===Q.head?new w5(J,null,X,Q):new w5(J,X,X.next,Q);if(Y.next===null)Q.tail=Y;if(Y.prev===null)Q.head=Y;return Q.length++,Y}function n40(Q,X){if(Q.tail=new w5(X,Q.tail,null,Q),!Q.head)Q.head=Q.tail;Q.length++}function i40(Q,X){if(Q.head=new w5(X,null,Q.head,Q),!Q.tail)Q.tail=Q.head;Q.length++}function w5(Q,X,J,Y){if(!(this instanceof w5))return new w5(Q,X,J,Y);if(this.list=Y,this.value=Q,X)X.next=this,this.prev=X;else this.prev=null;if(J)J.prev=this,this.next=J;else this.next=null}try{JO()(g0)}catch(Q){}});var GO=F((yo0,VO)=>{var o40=ZO(),T5=Symbol("max"),K4=Symbol("length"),g7=Symbol("lengthCalculator"),YX=Symbol("allowStale"),A5=Symbol("maxAge"),H4=Symbol("dispose"),qO=Symbol("noDisposeOnSet"),x1=Symbol("lruList"),W8=Symbol("cache"),HO=Symbol("updateAgeOnGet"),AW=()=>1;class KO{constructor(Q){if(typeof Q==="number")Q={max:Q};if(!Q)Q={};if(Q.max&&(typeof Q.max!=="number"||Q.max<0))throw TypeError("max must be a non-negative number");let X=this[T5]=Q.max||1/0,J=Q.length||AW;if(this[g7]=typeof J!=="function"?AW:J,this[YX]=Q.stale||!1,Q.maxAge&&typeof Q.maxAge!=="number")throw TypeError("maxAge must be a number");this[A5]=Q.maxAge||0,this[H4]=Q.dispose,this[qO]=Q.noDisposeOnSet||!1,this[HO]=Q.updateAgeOnGet||!1,this.reset()}set max(Q){if(typeof Q!=="number"||Q<0)throw TypeError("max must be a non-negative number");this[T5]=Q||1/0,JX(this)}get max(){return this[T5]}set allowStale(Q){this[YX]=!!Q}get allowStale(){return this[YX]}set maxAge(Q){if(typeof Q!=="number")throw TypeError("maxAge must be a non-negative number");this[A5]=Q,JX(this)}get maxAge(){return this[A5]}set lengthCalculator(Q){if(typeof Q!=="function")Q=AW;if(Q!==this[g7])this[g7]=Q,this[K4]=0,this[x1].forEach((X)=>{X.length=this[g7](X.value,X.key),this[K4]+=X.length});JX(this)}get lengthCalculator(){return this[g7]}get length(){return this[K4]}get itemCount(){return this[x1].length}rforEach(Q,X){X=X||this;for(let J=this[x1].tail;J!==null;){let Y=J.prev;$O(this,Q,J,X),J=Y}}forEach(Q,X){X=X||this;for(let J=this[x1].head;J!==null;){let Y=J.next;$O(this,Q,J,X),J=Y}}keys(){return this[x1].toArray().map((Q)=>Q.key)}values(){return this[x1].toArray().map((Q)=>Q.value)}reset(){if(this[H4]&&this[x1]&&this[x1].length)this[x1].forEach((Q)=>this[H4](Q.key,Q.value));this[W8]=new Map,this[x1]=new o40,this[K4]=0}dump(){return this[x1].map((Q)=>wZ(this,Q)?!1:{k:Q.key,v:Q.value,e:Q.now+(Q.maxAge||0)}).toArray().filter((Q)=>Q)}dumpLru(){return this[x1]}set(Q,X,J){if(J=J||this[A5],J&&typeof J!=="number")throw TypeError("maxAge must be a number");let Y=J?Date.now():0,Z=this[g7](X,Q);if(this[W8].has(Q)){if(Z>this[T5])return u7(this,this[W8].get(Q)),!1;let H=this[W8].get(Q).value;if(this[H4]){if(!this[qO])this[H4](Q,H.value)}return H.now=Y,H.maxAge=J,H.value=X,this[K4]+=Z-H.length,H.length=Z,this.get(Q),JX(this),!0}let q=new WO(Q,X,Z,Y,J);if(q.length>this[T5]){if(this[H4])this[H4](Q,X);return!1}return this[K4]+=q.length,this[x1].unshift(q),this[W8].set(Q,this[x1].head),JX(this),!0}has(Q){if(!this[W8].has(Q))return!1;let X=this[W8].get(Q).value;return!wZ(this,X)}get(Q){return EW(this,Q,!0)}peek(Q){return EW(this,Q,!1)}pop(){let Q=this[x1].tail;if(!Q)return null;return u7(this,Q),Q.value}del(Q){u7(this,this[W8].get(Q))}load(Q){this.reset();let X=Date.now();for(let J=Q.length-1;J>=0;J--){let Y=Q[J],Z=Y.e||0;if(Z===0)this.set(Y.k,Y.v);else{let q=Z-X;if(q>0)this.set(Y.k,Y.v,q)}}}prune(){this[W8].forEach((Q,X)=>EW(this,X,!1))}}var EW=(Q,X,J)=>{let Y=Q[W8].get(X);if(Y){let Z=Y.value;if(wZ(Q,Z)){if(u7(Q,Y),!Q[YX])return}else if(J){if(Q[HO])Y.value.now=Date.now();Q[x1].unshiftNode(Y)}return Z.value}},wZ=(Q,X)=>{if(!X||!X.maxAge&&!Q[A5])return!1;let J=Date.now()-X.now;return X.maxAge?J>X.maxAge:Q[A5]&&J>Q[A5]},JX=(Q)=>{if(Q[K4]>Q[T5])for(let X=Q[x1].tail;Q[K4]>Q[T5]&&X!==null;){let J=X.prev;u7(Q,X),X=J}},u7=(Q,X)=>{if(X){let J=X.value;if(Q[H4])Q[H4](J.key,J.value);Q[K4]-=J.length,Q[W8].delete(J.key),Q[x1].removeNode(X)}};class WO{constructor(Q,X,J,Y,Z){this.key=Q,this.value=X,this.length=J,this.now=Y,this.maxAge=Z||0}}var $O=(Q,X,J,Y)=>{let Z=J.value;if(wZ(Q,Z)){if(u7(Q,J),!Q[YX])Z=void 0}if(Z)X.call(Y,Z.value,Z.key,Q)};VO.exports=KO});var zO=F((ho0,SW)=>{var UO=l("url"),TZ=TW(),r40=SW.exports=QO(),s40=GO(),_W=new s40({max:1000}),a40={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function t40(Q){return a40[Q]||Q.slice(0,-1)}var e40={"git:":!0,"https:":!0,"git+https:":!0,"http:":!0,"git+http:":!0},Q50=Object.keys(TZ.byShortcut).concat(["http:","https:","git:","git+ssh:","git+https:","ssh:"]);SW.exports.fromUrl=function(Q,X){if(typeof Q!=="string")return;let J=Q+JSON.stringify(X||{});if(!_W.has(J))_W.set(J,X50(Q,X));return _W.get(J)};function X50(Q,X){if(!Q)return;let J=Y50(Q)?"github:"+Q:J50(Q),Y=q50(J);if(!Y)return Y;let Z=TZ.byShortcut[Y.protocol],q=TZ.byDomain[Y.hostname.startsWith("www.")?Y.hostname.slice(4):Y.hostname],$=Z||q;if(!$)return;let H=TZ[Z||q],K=null;if(e40[Y.protocol]&&(Y.username||Y.password))K=`${Y.username}${Y.password?":"+Y.password:""}`;let V=null,W=null,G=null,U=null;try{if(Z){let z=Y.pathname.startsWith("/")?Y.pathname.slice(1):Y.pathname,L=z.indexOf("@");if(L>-1)z=z.slice(L+1);let B=z.lastIndexOf("/");if(B>-1){if(W=decodeURIComponent(z.slice(0,B)),!W)W=null;G=decodeURIComponent(z.slice(B+1))}else G=decodeURIComponent(z);if(G.endsWith(".git"))G=G.slice(0,-4);if(Y.hash)V=decodeURIComponent(Y.hash.slice(1));U="shortcut"}else{if(!H.protocols.includes(Y.protocol))return;let z=H.extract(Y);if(!z)return;W=z.user&&decodeURIComponent(z.user),G=decodeURIComponent(z.project),V=decodeURIComponent(z.committish),U=t40(Y.protocol)}}catch(z){if(z instanceof URIError)return;else throw z}return new r40($,W,K,G,V,U,X)}var J50=(Q)=>{let X=Q.indexOf(":"),J=Q.slice(0,X+1);if(Q50.includes(J))return Q;let Y=Q.indexOf("@");if(Y>-1)if(Y>X)return`git+ssh://${Q}`;else return Q;if(Q.indexOf("//")===X+1)return Q;return Q.slice(0,X+1)+"//"+Q.slice(X+1)},Y50=(Q)=>{let X=Q.indexOf("#"),J=Q.indexOf("/"),Y=Q.indexOf("/",J+1),Z=Q.indexOf(":"),q=/\s/.exec(Q),$=Q.indexOf("@"),H=!q||X>-1&&q.index>X,K=$===-1||X>-1&&$>X,V=Z===-1||X>-1&&Z>X,W=Y===-1||X>-1&&Y>X,G=J>0,U=X>-1?Q[X-1]!=="/":!Q.endsWith("/"),z=!Q.startsWith(".");return H&&G&&U&&z&&K&&V&&W},Z50=(Q)=>{let X=Q.indexOf("@"),J=Q.lastIndexOf("#"),Y=Q.indexOf(":"),Z=Q.lastIndexOf(":",J>-1?J:1/0),q;if(Z>X)q=Q.slice(0,Z)+"/"+Q.slice(Z+1),Y=q.indexOf(":"),Z=q.lastIndexOf(":");if(Y===-1&&Q.indexOf("//")===-1)q=`git+ssh://${q}`;return q},q50=(Q)=>{let X;try{X=new UO.URL(Q)}catch(Y){}if(X)return X;let J=Z50(Q);try{X=new UO.URL(J)}catch(Y){}return X}});var FO=F((bo0,LO)=>{var $50="Function.prototype.bind called on incompatible ",H50=Object.prototype.toString,K50=Math.max,W50="[object Function]",BO=function(X,J){var Y=[];for(var Z=0;Z<X.length;Z+=1)Y[Z]=X[Z];for(var q=0;q<J.length;q+=1)Y[q+X.length]=J[q];return Y},V50=function(X,J){var Y=[];for(var Z=J||0,q=0;Z<X.length;Z+=1,q+=1)Y[q]=X[Z];return Y},G50=function(Q,X){var J="";for(var Y=0;Y<Q.length;Y+=1)if(J+=Q[Y],Y+1<Q.length)J+=X;return J};LO.exports=function(X){var J=this;if(typeof J!=="function"||H50.apply(J)!==W50)throw TypeError($50+J);var Y=V50(arguments,1),Z,q=function(){if(this instanceof Z){var W=J.apply(this,BO(Y,arguments));if(Object(W)===W)return W;return this}return J.apply(X,BO(Y,arguments))},$=K50(0,J.length-Y.length),H=[];for(var K=0;K<$;K++)H[K]="$"+K;if(Z=Function("binder","return function ("+G50(H,",")+"){ return binder.apply(this,arguments); }")(q),J.prototype){var V=function(){};V.prototype=J.prototype,Z.prototype=new V,V.prototype=null}return Z}});var IO=F((fo0,MO)=>{var U50=FO();MO.exports=Function.prototype.bind||U50});var CO=F((go0,PO)=>{var z50=Function.prototype.call,B50=Object.prototype.hasOwnProperty,L50=IO();PO.exports=L50.call(z50,B50)});var OO=F((uo0,F50)=>{F50.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":[">= 22.13 && < 23",">= 23.4"],_stream_duplex:">= 0.9.4 && < 26","node:_stream_duplex":[">= 14.18 && < 15",">= 16 && < 26"],_stream_transform:">= 0.9.4 && < 26","node:_stream_transform":[">= 14.18 && < 15",">= 16 && < 26"],_stream_wrap:">= 1.4.1 && < 26","node:_stream_wrap":[">= 14.18 && < 15",">= 16 && < 26"],_stream_passthrough:">= 0.9.4 && < 26","node:_stream_passthrough":[">= 14.18 && < 15",">= 16 && < 26"],_stream_readable:">= 0.9.4 && < 26","node:_stream_readable":[">= 14.18 && < 15",">= 16 && < 26"],_stream_writable:">= 0.9.4 && < 26","node:_stream_writable":[">= 14.18 && < 15",">= 16 && < 26"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var vW=F((mo0,RO)=>{var M50=CO();function I50(Q,X){var J=Q.split("."),Y=X.split(" "),Z=Y.length>1?Y[0]:"=",q=(Y.length>1?Y[1]:Y[0]).split(".");for(var $=0;$<3;++$){var H=parseInt(J[$]||0,10),K=parseInt(q[$]||0,10);if(H===K)continue;if(Z==="<")return H<K;if(Z===">=")return H>=K;return!1}return Z===">="}function jO(Q,X){var J=X.split(/ ?&& ?/);if(J.length===0)return!1;for(var Y=0;Y<J.length;++Y)if(!I50(Q,J[Y]))return!1;return!0}function P50(Q,X){if(typeof X==="boolean")return X;var J=typeof Q>"u"?process.versions&&process.versions.node:Q;if(typeof J!=="string")throw TypeError(typeof Q>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(X&&typeof X==="object"){for(var Y=0;Y<X.length;++Y)if(jO(J,X[Y]))return!0;return!1}return jO(J,X)}var NO=OO();RO.exports=function(X,J){return M50(NO,X)&&P50(J,NO[X])}});var wO=F((do0,DO)=>{DO.exports=C50;function C50(Q){if(!Q)return;if(Q==="ERROR: No README data found!")return;Q=Q.trim().split(`
14
+ `);for(var X=0;Q[X]&&Q[X].trim().match(/^(#|$)/);X++);var J=Q.length;for(var Y=X+1;Y<J&&Q[Y].trim();Y++);return Q.slice(X,Y).join(" ").trim()}});var TO=F((co0,O50)=>{O50.exports={topLevel:{dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}}});var _O=F((lo0,EO)=>{var j50=NZ(),N50=RZ(),R50=wW(),AZ=zO(),D50=vW(),w50=["dependencies","devDependencies","optionalDependencies"],T50=wO(),xW=l("url"),b4=TO();EO.exports={warn:function(){},fixRepositoryField:function(Q){if(Q.repositories)this.warn("repositories"),Q.repository=Q.repositories[0];if(!Q.repository)return this.warn("missingRepository");if(typeof Q.repository==="string")Q.repository={type:"git",url:Q.repository};var X=Q.repository.url||"";if(X){var J=AZ.fromUrl(X);if(J)X=Q.repository.url=J.getDefaultRepresentation()==="shortcut"?J.https():J.toString()}if(X.match(/github.com\/[^/]+\/[^/]+\.git\.git$/))this.warn("brokenGitUrl",X)},fixTypos:function(Q){Object.keys(b4.topLevel).forEach(function(X){if(Object.prototype.hasOwnProperty.call(Q,X))this.warn("typo",X,b4.topLevel[X])},this)},fixScriptsField:function(Q){if(!Q.scripts)return;if(typeof Q.scripts!=="object"){this.warn("nonObjectScripts"),delete Q.scripts;return}Object.keys(Q.scripts).forEach(function(X){if(typeof Q.scripts[X]!=="string")this.warn("nonStringScript"),delete Q.scripts[X];else if(b4.script[X]&&!Q.scripts[b4.script[X]])this.warn("typo",X,b4.script[X],"scripts")},this)},fixFilesField:function(Q){var X=Q.files;if(X&&!Array.isArray(X))this.warn("nonArrayFiles"),delete Q.files;else if(Q.files)Q.files=Q.files.filter(function(J){if(!J||typeof J!=="string")return this.warn("invalidFilename",J),!1;else return!0},this)},fixBinField:function(Q){if(!Q.bin)return;if(typeof Q.bin==="string"){var X={},J;if(J=Q.name.match(/^@[^/]+[/](.*)$/))X[J[1]]=Q.bin;else X[Q.name]=Q.bin;Q.bin=X}},fixManField:function(Q){if(!Q.man)return;if(typeof Q.man==="string")Q.man=[Q.man]},fixBundleDependenciesField:function(Q){var X="bundledDependencies",J="bundleDependencies";if(Q[X]&&!Q[J])Q[J]=Q[X],delete Q[X];if(Q[J]&&!Array.isArray(Q[J]))this.warn("nonArrayBundleDependencies"),delete Q[J];else if(Q[J])Q[J]=Q[J].filter(function(Y){if(!Y||typeof Y!=="string")return this.warn("nonStringBundleDependency",Y),!1;else{if(!Q.dependencies)Q.dependencies={};if(Object.prototype.hasOwnProperty.call(Q.dependencies,Y))this.warn("nonDependencyBundleDependency",Y),Q.dependencies[Y]="*";return!0}},this)},fixDependencies:function(Q,X){y50(Q,this.warn),x50(Q,this.warn),this.fixBundleDependenciesField(Q),["dependencies","devDependencies"].forEach(function(J){if(!(J in Q))return;if(!Q[J]||typeof Q[J]!=="object"){this.warn("nonObjectDependencies",J),delete Q[J];return}Object.keys(Q[J]).forEach(function(Y){var Z=Q[J][Y];if(typeof Z!=="string")this.warn("nonStringDependency",Y,JSON.stringify(Z)),delete Q[J][Y];var q=AZ.fromUrl(Q[J][Y]);if(q)Q[J][Y]=q.toString()},this)},this)},fixModulesField:function(Q){if(Q.modules)this.warn("deprecatedModules"),delete Q.modules},fixKeywordsField:function(Q){if(typeof Q.keywords==="string")Q.keywords=Q.keywords.split(/,\s+/);if(Q.keywords&&!Array.isArray(Q.keywords))delete Q.keywords,this.warn("nonArrayKeywords");else if(Q.keywords)Q.keywords=Q.keywords.filter(function(X){if(typeof X!=="string"||!X)return this.warn("nonStringKeyword"),!1;else return!0},this)},fixVersionField:function(Q,X){var J=!X;if(!Q.version)return Q.version="",!0;if(!j50(Q.version,J))throw Error('Invalid version: "'+Q.version+'"');return Q.version=N50(Q.version,J),!0},fixPeople:function(Q){AO(Q,S50),AO(Q,v50)},fixNameField:function(Q,X){if(typeof X==="boolean")X={strict:X};else if(typeof X>"u")X={};var J=X.strict;if(!Q.name&&!J){Q.name="";return}if(typeof Q.name!=="string")throw Error("name field must be a string.");if(!J)Q.name=Q.name.trim();if(_50(Q.name,J,X.allowLegacyCase),D50(Q.name))this.warn("conflictingName",Q.name)},fixDescriptionField:function(Q){if(Q.description&&typeof Q.description!=="string")this.warn("nonStringDescription"),delete Q.description;if(Q.readme&&!Q.description)Q.description=T50(Q.readme);if(Q.description===void 0)delete Q.description;if(!Q.description)this.warn("missingDescription")},fixReadmeField:function(Q){if(!Q.readme)this.warn("missingReadme"),Q.readme="ERROR: No README data found!"},fixBugsField:function(Q){if(!Q.bugs&&Q.repository&&Q.repository.url){var X=AZ.fromUrl(Q.repository.url);if(X&&X.bugs())Q.bugs={url:X.bugs()}}else if(Q.bugs){var J=/^.+@.*\..+$/;if(typeof Q.bugs==="string")if(J.test(Q.bugs))Q.bugs={email:Q.bugs};else if(xW.parse(Q.bugs).protocol)Q.bugs={url:Q.bugs};else this.warn("nonEmailUrlBugsString");else{h50(Q.bugs,this.warn);var Y=Q.bugs;if(Q.bugs={},Y.url)if(typeof Y.url==="string"&&xW.parse(Y.url).protocol)Q.bugs.url=Y.url;else this.warn("nonUrlBugsUrlField");if(Y.email)if(typeof Y.email==="string"&&J.test(Y.email))Q.bugs.email=Y.email;else this.warn("nonEmailBugsEmailField")}if(!Q.bugs.email&&!Q.bugs.url)delete Q.bugs,this.warn("emptyNormalizedBugs")}},fixHomepageField:function(Q){if(!Q.homepage&&Q.repository&&Q.repository.url){var X=AZ.fromUrl(Q.repository.url);if(X&&X.docs())Q.homepage=X.docs()}if(!Q.homepage)return;if(typeof Q.homepage!=="string")return this.warn("nonUrlHomepage"),delete Q.homepage;if(!xW.parse(Q.homepage).protocol)Q.homepage="http://"+Q.homepage},fixLicenseField:function(Q){let X=Q.license||Q.licence;if(!X)return this.warn("missingLicense");if(typeof X!=="string"||X.length<1||X.trim()==="")return this.warn("invalidLicense");if(!R50(X).validForNewPackages)return this.warn("invalidLicense")}};function A50(Q){if(Q.charAt(0)!=="@")return!1;var X=Q.slice(1).split("/");if(X.length!==2)return!1;return X[0]&&X[1]&&X[0]===encodeURIComponent(X[0])&&X[1]===encodeURIComponent(X[1])}function E50(Q){return!Q.match(/[/@\s+%:]/)&&Q===encodeURIComponent(Q)}function _50(Q,X,J){if(Q.charAt(0)==="."||!(A50(Q)||E50(Q))||X&&!J&&Q!==Q.toLowerCase()||Q.toLowerCase()==="node_modules"||Q.toLowerCase()==="favicon.ico")throw Error("Invalid name: "+JSON.stringify(Q))}function AO(Q,X){if(Q.author)Q.author=X(Q.author);return["maintainers","contributors"].forEach(function(J){if(!Array.isArray(Q[J]))return;Q[J]=Q[J].map(X)}),Q}function S50(Q){if(typeof Q==="string")return Q;var X=Q.name||"",J=Q.url||Q.web,Y=J?" ("+J+")":"",Z=Q.email||Q.mail,q=Z?" <"+Z+">":"";return X+q+Y}function v50(Q){if(typeof Q!=="string")return Q;var X=Q.match(/^([^(<]+)/),J=Q.match(/\(([^)]+)\)/),Y=Q.match(/<([^>]+)>/),Z={};if(X&&X[0].trim())Z.name=X[0].trim();if(Y)Z.email=Y[1];if(J)Z.url=J[1];return Z}function x50(Q,X){var J=Q.optionalDependencies;if(!J)return;var Y=Q.dependencies||{};Object.keys(J).forEach(function(Z){Y[Z]=J[Z]}),Q.dependencies=Y}function k50(Q,X,J){if(!Q)return{};if(typeof Q==="string")Q=Q.trim().split(/[\n\r\s\t ,]+/);if(!Array.isArray(Q))return Q;J("deprecatedArrayDependencies",X);var Y={};return Q.filter(function(Z){return typeof Z==="string"}).forEach(function(Z){Z=Z.trim().split(/(:?[@\s><=])/);var q=Z.shift(),$=Z.join("");$=$.trim(),$=$.replace(/^@/,""),Y[q]=$}),Y}function y50(Q,X){w50.forEach(function(J){if(!Q[J])return;Q[J]=k50(Q[J],J,X)})}function h50(Q,X){if(!Q)return;Object.keys(Q).forEach(function(J){if(b4.bugs[J])X("typo",J,b4.bugs[J],"bugs"),Q[b4.bugs[J]]=Q[J],delete Q[J]})}});var SO=F((po0,b50)=>{b50.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."}});var kO=F((no0,xO)=>{var vO=l("util"),kW=SO();xO.exports=function(){var Q=Array.prototype.slice.call(arguments,0),X=Q.shift();if(X==="typo")return f50.apply(null,Q);else{var J=kW[X]?kW[X]:X+": '%s'";return Q.unshift(J),vO.format.apply(null,Q)}};function f50(Q,X,J){if(J)Q=J+"['"+Q+"']",X=J+"['"+X+"']";return vO.format(kW.typo,Q,X)}});var fO=F((io0,bO)=>{bO.exports=yO;var yW=_O();yO.fixer=yW;var g50=kO(),u50=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],m50=["dependencies","people","typos"],hW=u50.map(function(Q){return hO(Q)+"Field"});hW=hW.concat(m50);function yO(Q,X,J){if(X===!0)X=null,J=!0;if(!J)J=!1;if(!X||Q.private)X=function(Y){};if(Q.scripts&&Q.scripts.install==="node-gyp rebuild"&&!Q.scripts.preinstall)Q.gypfile=!0;yW.warn=function(){X(g50.apply(null,arguments))},hW.forEach(function(Y){yW["fix"+hO(Y)](Q,J)}),Q._id=Q.name+"@"+Q.version}function hO(Q){return Q.charAt(0).toUpperCase()+Q.slice(1)}});var pO=F(($r0,bW)=>{var o50=l("util"),cO=!1,lO=(Q=console.error)=>{if(cO)return;cO=!0,process.on("unhandledRejection",(X)=>{if(!(X instanceof Error))X=Error(`Promise rejected with value: ${o50.inspect(X)}`);Q(X.stack),process.exit(1)})};bW.exports=lO;bW.exports.default=lO});var fW=F((Hr0,iO)=>{var c0=(...Q)=>Q.every((X)=>X)?Q.join(""):"",N1=(Q)=>Q?encodeURIComponent(Q):"",ZX={sshtemplate:({domain:Q,user:X,project:J,committish:Y})=>`git@${Q}:${X}/${J}.git${c0("#",Y)}`,sshurltemplate:({domain:Q,user:X,project:J,committish:Y})=>`git+ssh://git@${Q}/${X}/${J}.git${c0("#",Y)}`,edittemplate:({domain:Q,user:X,project:J,committish:Y,editpath:Z,path:q})=>`https://${Q}/${X}/${J}${c0("/",Z,"/",N1(Y||"master"),"/",q)}`,browsetemplate:({domain:Q,user:X,project:J,committish:Y,treepath:Z})=>`https://${Q}/${X}/${J}${c0("/",Z,"/",N1(Y))}`,browsefiletemplate:({domain:Q,user:X,project:J,committish:Y,treepath:Z,path:q,fragment:$,hashformat:H})=>`https://${Q}/${X}/${J}/${Z}/${N1(Y||"master")}/${q}${c0("#",H($||""))}`,docstemplate:({domain:Q,user:X,project:J,treepath:Y,committish:Z})=>`https://${Q}/${X}/${J}${c0("/",Y,"/",N1(Z))}#readme`,httpstemplate:({auth:Q,domain:X,user:J,project:Y,committish:Z})=>`git+https://${c0(Q,"@")}${X}/${J}/${Y}.git${c0("#",Z)}`,filetemplate:({domain:Q,user:X,project:J,committish:Y,path:Z})=>`https://${Q}/${X}/${J}/raw/${N1(Y)||"master"}/${Z}`,shortcuttemplate:({type:Q,user:X,project:J,committish:Y})=>`${Q}:${X}/${J}${c0("#",Y)}`,pathtemplate:({user:Q,project:X,committish:J})=>`${Q}/${X}${c0("#",J)}`,bugstemplate:({domain:Q,user:X,project:J})=>`https://${Q}/${X}/${J}/issues`,hashformat:nO},d6={};d6.github=Object.assign({},ZX,{protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",editpath:"edit",filetemplate:({auth:Q,user:X,project:J,committish:Y,path:Z})=>`https://${c0(Q,"@")}raw.githubusercontent.com/${X}/${J}/${N1(Y)||"master"}/${Z}`,gittemplate:({auth:Q,domain:X,user:J,project:Y,committish:Z})=>`git://${c0(Q,"@")}${X}/${J}/${Y}.git${c0("#",Z)}`,tarballtemplate:({domain:Q,user:X,project:J,committish:Y})=>`https://codeload.${Q}/${X}/${J}/tar.gz/${N1(Y)||"master"}`,extract:(Q)=>{let[,X,J,Y,Z]=Q.pathname.split("/",5);if(Y&&Y!=="tree")return;if(!Y)Z=Q.hash.slice(1);if(J&&J.endsWith(".git"))J=J.slice(0,-4);if(!X||!J)return;return{user:X,project:J,committish:Z}}});d6.bitbucket=Object.assign({},ZX,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",editpath:"?mode=edit",edittemplate:({domain:Q,user:X,project:J,committish:Y,treepath:Z,path:q,editpath:$})=>`https://${Q}/${X}/${J}${c0("/",Z,"/",N1(Y||"master"),"/",q,$)}`,tarballtemplate:({domain:Q,user:X,project:J,committish:Y})=>`https://${Q}/${X}/${J}/get/${N1(Y)||"master"}.tar.gz`,extract:(Q)=>{let[,X,J,Y]=Q.pathname.split("/",4);if(["get"].includes(Y))return;if(J&&J.endsWith(".git"))J=J.slice(0,-4);if(!X||!J)return;return{user:X,project:J,committish:Q.hash.slice(1)}}});d6.gitlab=Object.assign({},ZX,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",editpath:"-/edit",httpstemplate:({auth:Q,domain:X,user:J,project:Y,committish:Z})=>`git+https://${c0(Q,"@")}${X}/${J}/${Y}.git${c0("#",Z)}`,tarballtemplate:({domain:Q,user:X,project:J,committish:Y})=>`https://${Q}/${X}/${J}/repository/archive.tar.gz?ref=${N1(Y)||"master"}`,extract:(Q)=>{let X=Q.pathname.slice(1);if(X.includes("/-/")||X.includes("/archive.tar.gz"))return;let J=X.split("/"),Y=J.pop();if(Y.endsWith(".git"))Y=Y.slice(0,-4);let Z=J.join("/");if(!Z||!Y)return;return{user:Z,project:Y,committish:Q.hash.slice(1)}}});d6.gist=Object.assign({},ZX,{protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:Q,project:X,committish:J})=>`git@${Q}:${X}.git${c0("#",J)}`,sshurltemplate:({domain:Q,project:X,committish:J})=>`git+ssh://git@${Q}/${X}.git${c0("#",J)}`,edittemplate:({domain:Q,user:X,project:J,committish:Y,editpath:Z})=>`https://${Q}/${X}/${J}${c0("/",N1(Y))}/${Z}`,browsetemplate:({domain:Q,project:X,committish:J})=>`https://${Q}/${X}${c0("/",N1(J))}`,browsefiletemplate:({domain:Q,project:X,committish:J,path:Y,hashformat:Z})=>`https://${Q}/${X}${c0("/",N1(J))}${c0("#",Z(Y))}`,docstemplate:({domain:Q,project:X,committish:J})=>`https://${Q}/${X}${c0("/",N1(J))}`,httpstemplate:({domain:Q,project:X,committish:J})=>`git+https://${Q}/${X}.git${c0("#",J)}`,filetemplate:({user:Q,project:X,committish:J,path:Y})=>`https://gist.githubusercontent.com/${Q}/${X}/raw${c0("/",N1(J))}/${Y}`,shortcuttemplate:({type:Q,project:X,committish:J})=>`${Q}:${X}${c0("#",J)}`,pathtemplate:({project:Q,committish:X})=>`${Q}${c0("#",X)}`,bugstemplate:({domain:Q,project:X})=>`https://${Q}/${X}`,gittemplate:({domain:Q,project:X,committish:J})=>`git://${Q}/${X}.git${c0("#",J)}`,tarballtemplate:({project:Q,committish:X})=>`https://codeload.github.com/gist/${Q}/tar.gz/${N1(X)||"master"}`,extract:(Q)=>{let[,X,J,Y]=Q.pathname.split("/",4);if(Y==="raw")return;if(!J){if(!X)return;J=X,X=null}if(J.endsWith(".git"))J=J.slice(0,-4);return{user:X,project:J,committish:Q.hash.slice(1)}},hashformat:function(Q){return Q&&"file-"+nO(Q)}});d6.sourcehut=Object.assign({},ZX,{protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",browsefiletemplate:({domain:Q,user:X,project:J,committish:Y,treepath:Z,path:q,fragment:$,hashformat:H})=>`https://${Q}/${X}/${J}/${Z}/${N1(Y||"main")}/${q}${c0("#",H($||""))}`,filetemplate:({domain:Q,user:X,project:J,committish:Y,path:Z})=>`https://${Q}/${X}/${J}/blob/${N1(Y)||"main"}/${Z}`,httpstemplate:({domain:Q,user:X,project:J,committish:Y})=>`https://${Q}/${X}/${J}.git${c0("#",Y)}`,tarballtemplate:({domain:Q,user:X,project:J,committish:Y})=>`https://${Q}/${X}/${J}/archive/${N1(Y)||"main"}.tar.gz`,bugstemplate:({domain:Q,user:X,project:J})=>`https://todo.sr.ht/${X}/${J}`,docstemplate:({domain:Q,user:X,project:J,treepath:Y,committish:Z})=>`https://${Q}/${X}/${J}${c0("/",Y,"/",N1(Z))}#readme`,extract:(Q)=>{let[,X,J,Y]=Q.pathname.split("/",4);if(["archive"].includes(Y))return;if(J&&J.endsWith(".git"))J=J.slice(0,-4);if(!X||!J)return;return{user:X,project:J,committish:Q.hash.slice(1)}}});var r50=Object.keys(d6);d6.byShortcut={};d6.byDomain={};for(let Q of r50)d6.byShortcut[`${Q}:`]=Q,d6.byDomain[d6[Q].domain]=Q;function nO(Q){return Q.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}iO.exports=d6});var sO=F((Kr0,rO)=>{var s50=fW();class oO{constructor(Q,X,J,Y,Z,q,$={}){Object.assign(this,s50[Q]),this.type=Q,this.user=X,this.auth=J,this.project=Y,this.committish=Z,this.default=q,this.opts=$}hash(){return this.committish?`#${this.committish}`:""}ssh(Q){return this._fill(this.sshtemplate,Q)}_fill(Q,X){if(typeof Q==="function"){let J={...this,...this.opts,...X};if(!J.path)J.path="";if(J.path.startsWith("/"))J.path=J.path.slice(1);if(J.noCommittish)J.committish=null;let Y=Q(J);return J.noGitPlus&&Y.startsWith("git+")?Y.slice(4):Y}return null}sshurl(Q){return this._fill(this.sshurltemplate,Q)}browse(Q,X,J){if(typeof Q!=="string")return this._fill(this.browsetemplate,Q);if(typeof X!=="string")J=X,X=null;return this._fill(this.browsefiletemplate,{...J,fragment:X,path:Q})}docs(Q){return this._fill(this.docstemplate,Q)}bugs(Q){return this._fill(this.bugstemplate,Q)}https(Q){return this._fill(this.httpstemplate,Q)}git(Q){return this._fill(this.gittemplate,Q)}shortcut(Q){return this._fill(this.shortcuttemplate,Q)}path(Q){return this._fill(this.pathtemplate,Q)}tarball(Q){return this._fill(this.tarballtemplate,{...Q,noCommittish:!1})}file(Q,X){return this._fill(this.filetemplate,{...X,path:Q})}edit(Q,X){return this._fill(this.edittemplate,{...X,path:Q})}getDefaultRepresentation(){return this.default}toString(Q){if(this.default&&typeof this[this.default]==="function")return this[this.default](Q);return this.sshurl(Q)}}rO.exports=oO});var Jj=F((Wr0,Xj)=>{var qX=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date,a50=typeof AbortController==="function",EZ=a50?AbortController:class{constructor(){this.signal=new aO}abort(X=Error("This operation was aborted")){this.signal.reason=this.signal.reason||X,this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",target:this.signal})}},t50=typeof AbortSignal==="function",e50=typeof EZ.AbortSignal==="function",aO=t50?AbortSignal:e50?EZ.AbortController:class{constructor(){this.reason=void 0,this.aborted=!1,this._listeners=[]}dispatchEvent(X){if(X.type==="abort")this.aborted=!0,this.onabort(X),this._listeners.forEach((J)=>J(X),this)}onabort(){}addEventListener(X,J){if(X==="abort")this._listeners.push(J)}removeEventListener(X,J){if(X==="abort")this._listeners=this._listeners.filter((Y)=>Y!==J)}},mW=new Set,gW=(Q,X)=>{let J=`LRU_CACHE_OPTION_${Q}`;if(_Z(J))dW(J,`${Q} option`,`options.${X}`,E5)},uW=(Q,X)=>{let J=`LRU_CACHE_METHOD_${Q}`;if(_Z(J)){let{prototype:Y}=E5,{get:Z}=Object.getOwnPropertyDescriptor(Y,Q);dW(J,`${Q} method`,`cache.${X}()`,Z)}},Q70=(Q,X)=>{let J=`LRU_CACHE_PROPERTY_${Q}`;if(_Z(J)){let{prototype:Y}=E5,{get:Z}=Object.getOwnPropertyDescriptor(Y,Q);dW(J,`${Q} property`,`cache.${X}`,Z)}},tO=(...Q)=>{typeof process==="object"&&process&&typeof process.emitWarning==="function"?process.emitWarning(...Q):console.error(...Q)},_Z=(Q)=>!mW.has(Q),dW=(Q,X,J,Y)=>{mW.add(Q);let Z=`The ${X} is deprecated. Please use ${J} instead.`;tO(Z,"DeprecationWarning",Q,Y)},f4=(Q)=>Q&&Q===Math.floor(Q)&&Q>0&&isFinite(Q),eO=(Q)=>!f4(Q)?null:Q<=Math.pow(2,8)?Uint8Array:Q<=Math.pow(2,16)?Uint16Array:Q<=Math.pow(2,32)?Uint32Array:Q<=Number.MAX_SAFE_INTEGER?$X:null;class $X extends Array{constructor(Q){super(Q);this.fill(0)}}class Qj{constructor(Q){if(Q===0)return[];let X=eO(Q);this.heap=new X(Q),this.length=0}push(Q){this.heap[this.length++]=Q}pop(){return this.heap[--this.length]}}class E5{constructor(Q={}){let{max:X=0,ttl:J,ttlResolution:Y=1,ttlAutopurge:Z,updateAgeOnGet:q,updateAgeOnHas:$,allowStale:H,dispose:K,disposeAfter:V,noDisposeOnSet:W,noUpdateTTL:G,maxSize:U=0,maxEntrySize:z=0,sizeCalculation:L,fetchMethod:B,fetchContext:M,noDeleteOnFetchRejection:I,noDeleteOnStaleGet:j,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:N,ignoreFetchAbort:k}=Q,{length:f,maxAge:S,stale:p}=Q instanceof E5?{}:Q;if(X!==0&&!f4(X))throw TypeError("max option must be a nonnegative integer");let T=X?eO(X):Array;if(!T)throw Error("invalid max value: "+X);if(this.max=X,this.maxSize=U,this.maxEntrySize=z||this.maxSize,this.sizeCalculation=L||f,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!=="function")throw TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=B||null,this.fetchMethod&&typeof this.fetchMethod!=="function")throw TypeError("fetchMethod must be a function if specified");if(this.fetchContext=M,!this.fetchMethod&&M!==void 0)throw TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=Array(X).fill(null),this.valList=Array(X).fill(null),this.next=new T(X),this.prev=new T(X),this.head=0,this.tail=0,this.free=new Qj(X),this.initialFill=1,this.size=0,typeof K==="function")this.dispose=K;if(typeof V==="function")this.disposeAfter=V,this.disposed=[];else this.disposeAfter=null,this.disposed=null;if(this.noDisposeOnSet=!!W,this.noUpdateTTL=!!G,this.noDeleteOnFetchRejection=!!I,this.allowStaleOnFetchRejection=!!D,this.allowStaleOnFetchAbort=!!N,this.ignoreFetchAbort=!!k,this.maxEntrySize!==0){if(this.maxSize!==0){if(!f4(this.maxSize))throw TypeError("maxSize must be a positive integer if specified")}if(!f4(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!H||!!p,this.noDeleteOnStaleGet=!!j,this.updateAgeOnGet=!!q,this.updateAgeOnHas=!!$,this.ttlResolution=f4(Y)||Y===0?Y:1,this.ttlAutopurge=!!Z,this.ttl=J||S||0,this.ttl){if(!f4(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){if(_Z("LRU_CACHE_UNBOUNDED"))mW.add("LRU_CACHE_UNBOUNDED"),tO("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning","LRU_CACHE_UNBOUNDED",E5)}if(p)gW("stale","allowStale");if(S)gW("maxAge","ttl");if(f)gW("length","sizeCalculation")}getRemainingTTL(Q){return this.has(Q,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new $X(this.max),this.starts=new $X(this.max),this.setItemTTL=(J,Y,Z=qX.now())=>{if(this.starts[J]=Y!==0?Z:0,this.ttls[J]=Y,Y!==0&&this.ttlAutopurge){let q=setTimeout(()=>{if(this.isStale(J))this.delete(this.keyList[J])},Y+1);if(q.unref)q.unref()}},this.updateItemAge=(J)=>{this.starts[J]=this.ttls[J]!==0?qX.now():0},this.statusTTL=(J,Y)=>{if(J)J.ttl=this.ttls[Y],J.start=this.starts[Y],J.now=Q||X(),J.remainingTTL=J.now+J.ttl-J.start};let Q=0,X=()=>{let J=qX.now();if(this.ttlResolution>0){Q=J;let Y=setTimeout(()=>Q=0,this.ttlResolution);if(Y.unref)Y.unref()}return J};this.getRemainingTTL=(J)=>{let Y=this.keyMap.get(J);if(Y===void 0)return 0;return this.ttls[Y]===0||this.starts[Y]===0?1/0:this.starts[Y]+this.ttls[Y]-(Q||X())},this.isStale=(J)=>{return this.ttls[J]!==0&&this.starts[J]!==0&&(Q||X())-this.starts[J]>this.ttls[J]}}updateItemAge(Q){}statusTTL(Q,X){}setItemTTL(Q,X,J){}isStale(Q){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new $X(this.max),this.removeItemSize=(Q)=>{this.calculatedSize-=this.sizes[Q],this.sizes[Q]=0},this.requireSize=(Q,X,J,Y)=>{if(this.isBackgroundFetch(X))return 0;if(!f4(J))if(Y){if(typeof Y!=="function")throw TypeError("sizeCalculation must be a function");if(J=Y(X,Q),!f4(J))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return J},this.addItemSize=(Q,X,J)=>{if(this.sizes[Q]=X,this.maxSize){let Y=this.maxSize-this.sizes[Q];while(this.calculatedSize>Y)this.evict(!0)}if(this.calculatedSize+=this.sizes[Q],J)J.entrySize=X,J.totalCalculatedSize=this.calculatedSize}}removeItemSize(Q){}addItemSize(Q,X){}requireSize(Q,X,J,Y){if(J||Y)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:Q=this.allowStale}={}){if(this.size)for(let X=this.tail;;){if(!this.isValidIndex(X))break;if(Q||!this.isStale(X))yield X;if(X===this.head)break;else X=this.prev[X]}}*rindexes({allowStale:Q=this.allowStale}={}){if(this.size)for(let X=this.head;;){if(!this.isValidIndex(X))break;if(Q||!this.isStale(X))yield X;if(X===this.tail)break;else X=this.next[X]}}isValidIndex(Q){return Q!==void 0&&this.keyMap.get(this.keyList[Q])===Q}*entries(){for(let Q of this.indexes())if(this.valList[Q]!==void 0&&this.keyList[Q]!==void 0&&!this.isBackgroundFetch(this.valList[Q]))yield[this.keyList[Q],this.valList[Q]]}*rentries(){for(let Q of this.rindexes())if(this.valList[Q]!==void 0&&this.keyList[Q]!==void 0&&!this.isBackgroundFetch(this.valList[Q]))yield[this.keyList[Q],this.valList[Q]]}*keys(){for(let Q of this.indexes())if(this.keyList[Q]!==void 0&&!this.isBackgroundFetch(this.valList[Q]))yield this.keyList[Q]}*rkeys(){for(let Q of this.rindexes())if(this.keyList[Q]!==void 0&&!this.isBackgroundFetch(this.valList[Q]))yield this.keyList[Q]}*values(){for(let Q of this.indexes())if(this.valList[Q]!==void 0&&!this.isBackgroundFetch(this.valList[Q]))yield this.valList[Q]}*rvalues(){for(let Q of this.rindexes())if(this.valList[Q]!==void 0&&!this.isBackgroundFetch(this.valList[Q]))yield this.valList[Q]}[Symbol.iterator](){return this.entries()}find(Q,X){for(let J of this.indexes()){let Y=this.valList[J],Z=this.isBackgroundFetch(Y)?Y.__staleWhileFetching:Y;if(Z===void 0)continue;if(Q(Z,this.keyList[J],this))return this.get(this.keyList[J],X)}}forEach(Q,X=this){for(let J of this.indexes()){let Y=this.valList[J],Z=this.isBackgroundFetch(Y)?Y.__staleWhileFetching:Y;if(Z===void 0)continue;Q.call(X,Z,this.keyList[J],this)}}rforEach(Q,X=this){for(let J of this.rindexes()){let Y=this.valList[J],Z=this.isBackgroundFetch(Y)?Y.__staleWhileFetching:Y;if(Z===void 0)continue;Q.call(X,Z,this.keyList[J],this)}}get prune(){return uW("prune","purgeStale"),this.purgeStale}purgeStale(){let Q=!1;for(let X of this.rindexes({allowStale:!0}))if(this.isStale(X))this.delete(this.keyList[X]),Q=!0;return Q}dump(){let Q=[];for(let X of this.indexes({allowStale:!0})){let J=this.keyList[X],Y=this.valList[X],Z=this.isBackgroundFetch(Y)?Y.__staleWhileFetching:Y;if(Z===void 0)continue;let q={value:Z};if(this.ttls){q.ttl=this.ttls[X];let $=qX.now()-this.starts[X];q.start=Math.floor(Date.now()-$)}if(this.sizes)q.size=this.sizes[X];Q.unshift([J,q])}return Q}load(Q){this.clear();for(let[X,J]of Q){if(J.start){let Y=Date.now()-J.start;J.start=qX.now()-Y}this.set(X,J.value,J)}}dispose(Q,X,J){}set(Q,X,{ttl:J=this.ttl,start:Y,noDisposeOnSet:Z=this.noDisposeOnSet,size:q=0,sizeCalculation:$=this.sizeCalculation,noUpdateTTL:H=this.noUpdateTTL,status:K}={}){if(q=this.requireSize(Q,X,q,$),this.maxEntrySize&&q>this.maxEntrySize){if(K)K.set="miss",K.maxEntrySizeExceeded=!0;return this.delete(Q),this}let V=this.size===0?void 0:this.keyMap.get(Q);if(V===void 0){if(V=this.newIndex(),this.keyList[V]=Q,this.valList[V]=X,this.keyMap.set(Q,V),this.next[this.tail]=V,this.prev[V]=this.tail,this.tail=V,this.size++,this.addItemSize(V,q,K),K)K.set="add";H=!1}else{this.moveToTail(V);let W=this.valList[V];if(X!==W){if(this.isBackgroundFetch(W))W.__abortController.abort(Error("replaced"));else if(!Z){if(this.dispose(W,Q,"set"),this.disposeAfter)this.disposed.push([W,Q,"set"])}if(this.removeItemSize(V),this.valList[V]=X,this.addItemSize(V,q,K),K){K.set="replace";let G=W&&this.isBackgroundFetch(W)?W.__staleWhileFetching:W;if(G!==void 0)K.oldValue=G}}else if(K)K.set="update"}if(J!==0&&this.ttl===0&&!this.ttls)this.initializeTTLTracking();if(!H)this.setItemTTL(V,J,Y);if(this.statusTTL(K,V),this.disposeAfter)while(this.disposed.length)this.disposeAfter(...this.disposed.shift());return this}newIndex(){if(this.size===0)return this.tail;if(this.size===this.max&&this.max!==0)return this.evict(!1);if(this.free.length!==0)return this.free.pop();return this.initialFill++}pop(){if(this.size){let Q=this.valList[this.head];return this.evict(!0),Q}}evict(Q){let X=this.head,J=this.keyList[X],Y=this.valList[X];if(this.isBackgroundFetch(Y))Y.__abortController.abort(Error("evicted"));else if(this.dispose(Y,J,"evict"),this.disposeAfter)this.disposed.push([Y,J,"evict"]);if(this.removeItemSize(X),Q)this.keyList[X]=null,this.valList[X]=null,this.free.push(X);return this.head=this.next[X],this.keyMap.delete(J),this.size--,X}has(Q,{updateAgeOnHas:X=this.updateAgeOnHas,status:J}={}){let Y=this.keyMap.get(Q);if(Y!==void 0){if(!this.isStale(Y)){if(X)this.updateItemAge(Y);if(J)J.has="hit";return this.statusTTL(J,Y),!0}else if(J)J.has="stale",this.statusTTL(J,Y)}else if(J)J.has="miss";return!1}peek(Q,{allowStale:X=this.allowStale}={}){let J=this.keyMap.get(Q);if(J!==void 0&&(X||!this.isStale(J))){let Y=this.valList[J];return this.isBackgroundFetch(Y)?Y.__staleWhileFetching:Y}}backgroundFetch(Q,X,J,Y){let Z=X===void 0?void 0:this.valList[X];if(this.isBackgroundFetch(Z))return Z;let q=new EZ;if(J.signal)J.signal.addEventListener("abort",()=>q.abort(J.signal.reason));let $={signal:q.signal,options:J,context:Y},H=(U,z=!1)=>{let{aborted:L}=q.signal,B=J.ignoreFetchAbort&&U!==void 0;if(J.status)if(L&&!z){if(J.status.fetchAborted=!0,J.status.fetchError=q.signal.reason,B)J.status.fetchAbortIgnored=!0}else J.status.fetchResolved=!0;if(L&&!B&&!z)return V(q.signal.reason);if(this.valList[X]===G)if(U===void 0)if(G.__staleWhileFetching)this.valList[X]=G.__staleWhileFetching;else this.delete(Q);else{if(J.status)J.status.fetchUpdated=!0;this.set(Q,U,$.options)}return U},K=(U)=>{if(J.status)J.status.fetchRejected=!0,J.status.fetchError=U;return V(U)},V=(U)=>{let{aborted:z}=q.signal,L=z&&J.allowStaleOnFetchAbort,B=L||J.allowStaleOnFetchRejection,M=B||J.noDeleteOnFetchRejection;if(this.valList[X]===G){if(!M||G.__staleWhileFetching===void 0)this.delete(Q);else if(!L)this.valList[X]=G.__staleWhileFetching}if(B){if(J.status&&G.__staleWhileFetching!==void 0)J.status.returnedStale=!0;return G.__staleWhileFetching}else if(G.__returned===G)throw U},W=(U,z)=>{this.fetchMethod(Q,Z,$).then((L)=>U(L),z),q.signal.addEventListener("abort",()=>{if(!J.ignoreFetchAbort||J.allowStaleOnFetchAbort){if(U(),J.allowStaleOnFetchAbort)U=(L)=>H(L,!0)}})};if(J.status)J.status.fetchDispatched=!0;let G=new Promise(W).then(H,K);if(G.__abortController=q,G.__staleWhileFetching=Z,G.__returned=null,X===void 0)this.set(Q,G,{...$.options,status:void 0}),X=this.keyMap.get(Q);else this.valList[X]=G;return G}isBackgroundFetch(Q){return Q&&typeof Q==="object"&&typeof Q.then==="function"&&Object.prototype.hasOwnProperty.call(Q,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(Q,"__returned")&&(Q.__returned===Q||Q.__returned===null)}async fetch(Q,{allowStale:X=this.allowStale,updateAgeOnGet:J=this.updateAgeOnGet,noDeleteOnStaleGet:Y=this.noDeleteOnStaleGet,ttl:Z=this.ttl,noDisposeOnSet:q=this.noDisposeOnSet,size:$=0,sizeCalculation:H=this.sizeCalculation,noUpdateTTL:K=this.noUpdateTTL,noDeleteOnFetchRejection:V=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:W=this.allowStaleOnFetchRejection,ignoreFetchAbort:G=this.ignoreFetchAbort,allowStaleOnFetchAbort:U=this.allowStaleOnFetchAbort,fetchContext:z=this.fetchContext,forceRefresh:L=!1,status:B,signal:M}={}){if(!this.fetchMethod){if(B)B.fetch="get";return this.get(Q,{allowStale:X,updateAgeOnGet:J,noDeleteOnStaleGet:Y,status:B})}let I={allowStale:X,updateAgeOnGet:J,noDeleteOnStaleGet:Y,ttl:Z,noDisposeOnSet:q,size:$,sizeCalculation:H,noUpdateTTL:K,noDeleteOnFetchRejection:V,allowStaleOnFetchRejection:W,allowStaleOnFetchAbort:U,ignoreFetchAbort:G,status:B,signal:M},j=this.keyMap.get(Q);if(j===void 0){if(B)B.fetch="miss";let D=this.backgroundFetch(Q,j,I,z);return D.__returned=D}else{let D=this.valList[j];if(this.isBackgroundFetch(D)){let p=X&&D.__staleWhileFetching!==void 0;if(B){if(B.fetch="inflight",p)B.returnedStale=!0}return p?D.__staleWhileFetching:D.__returned=D}let N=this.isStale(j);if(!L&&!N){if(B)B.fetch="hit";if(this.moveToTail(j),J)this.updateItemAge(j);return this.statusTTL(B,j),D}let k=this.backgroundFetch(Q,j,I,z),f=k.__staleWhileFetching!==void 0,S=f&&X;if(B){if(B.fetch=f&&N?"stale":"refresh",S&&N)B.returnedStale=!0}return S?k.__staleWhileFetching:k.__returned=k}}get(Q,{allowStale:X=this.allowStale,updateAgeOnGet:J=this.updateAgeOnGet,noDeleteOnStaleGet:Y=this.noDeleteOnStaleGet,status:Z}={}){let q=this.keyMap.get(Q);if(q!==void 0){let $=this.valList[q],H=this.isBackgroundFetch($);if(this.statusTTL(Z,q),this.isStale(q)){if(Z)Z.get="stale";if(!H){if(!Y)this.delete(Q);if(Z)Z.returnedStale=X;return X?$:void 0}else{if(Z)Z.returnedStale=X&&$.__staleWhileFetching!==void 0;return X?$.__staleWhileFetching:void 0}}else{if(Z)Z.get="hit";if(H)return $.__staleWhileFetching;if(this.moveToTail(q),J)this.updateItemAge(q);return $}}else if(Z)Z.get="miss"}connect(Q,X){this.prev[X]=Q,this.next[Q]=X}moveToTail(Q){if(Q!==this.tail){if(Q===this.head)this.head=this.next[Q];else this.connect(this.prev[Q],this.next[Q]);this.connect(this.tail,Q),this.tail=Q}}get del(){return uW("del","delete"),this.delete}delete(Q){let X=!1;if(this.size!==0){let J=this.keyMap.get(Q);if(J!==void 0)if(X=!0,this.size===1)this.clear();else{this.removeItemSize(J);let Y=this.valList[J];if(this.isBackgroundFetch(Y))Y.__abortController.abort(Error("deleted"));else if(this.dispose(Y,Q,"delete"),this.disposeAfter)this.disposed.push([Y,Q,"delete"]);if(this.keyMap.delete(Q),this.keyList[J]=null,this.valList[J]=null,J===this.tail)this.tail=this.prev[J];else if(J===this.head)this.head=this.next[J];else this.next[this.prev[J]]=this.next[J],this.prev[this.next[J]]=this.prev[J];this.size--,this.free.push(J)}}if(this.disposed)while(this.disposed.length)this.disposeAfter(...this.disposed.shift());return X}clear(){for(let Q of this.rindexes({allowStale:!0})){let X=this.valList[Q];if(this.isBackgroundFetch(X))X.__abortController.abort(Error("deleted"));else{let J=this.keyList[Q];if(this.dispose(X,J,"delete"),this.disposeAfter)this.disposed.push([X,J,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls)this.ttls.fill(0),this.starts.fill(0);if(this.sizes)this.sizes.fill(0);if(this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)while(this.disposed.length)this.disposeAfter(...this.disposed.shift())}get reset(){return uW("reset","clear"),this.clear}get length(){return Q70("length","size"),this.size}static get AbortController(){return EZ}static get AbortSignal(){return aO}}Xj.exports=E5});var qj=F((Vr0,Zj)=>{var X70=l("url"),cW=(Q,X,J)=>{let Y=Q.indexOf(J);return Q.lastIndexOf(X,Y>-1?Y:1/0)},Yj=(Q)=>{try{return new X70.URL(Q)}catch{}},J70=(Q,X)=>{let J=Q.indexOf(":"),Y=Q.slice(0,J+1);if(Object.prototype.hasOwnProperty.call(X,Y))return Q;let Z=Q.indexOf("@");if(Z>-1)if(Z>J)return`git+ssh://${Q}`;else return Q;if(Q.indexOf("//")===J+1)return Q;return`${Q.slice(0,J+1)}//${Q.slice(J+1)}`},Y70=(Q)=>{let X=cW(Q,"@","#"),J=cW(Q,":","#");if(J>X)Q=Q.slice(0,J)+"/"+Q.slice(J+1);if(cW(Q,":","#")===-1&&Q.indexOf("//")===-1)Q=`git+ssh://${Q}`;return Q};Zj.exports=(Q,X)=>{let J=X?J70(Q,X):Q;return Yj(J)||Yj(Y70(J))}});var Hj=F((Gr0,SZ)=>{var KX=fW(),Z70=SZ.exports=sO(),q70=Jj(),$j=qj(),lW=new q70({max:1000}),HX={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0},...Object.keys(KX.byShortcut).reduce((Q,X)=>{return Q[X]={name:KX.byShortcut[X]},Q},{})};SZ.exports.fromUrl=function(Q,X){if(typeof Q!=="string")return;let J=Q+JSON.stringify(X||{});if(!lW.has(J))lW.set(J,$70(Q,X));return lW.get(J)};SZ.exports.parseUrl=$j;function $70(Q,X){if(!Q)return;let J=H70(Q)?`github:${Q}`:Q,Y=$j(J,HX);if(!Y)return;let Z=KX.byShortcut[Y.protocol],q=KX.byDomain[Y.hostname.startsWith("www.")?Y.hostname.slice(4):Y.hostname],$=Z||q;if(!$)return;let H=KX[Z||q],K=null;if(HX[Y.protocol]&&HX[Y.protocol].auth&&(Y.username||Y.password))K=`${Y.username}${Y.password?":"+Y.password:""}`;let V=null,W=null,G=null,U=null;try{if(Z){let z=Y.pathname.startsWith("/")?Y.pathname.slice(1):Y.pathname,L=z.indexOf("@");if(L>-1)z=z.slice(L+1);let B=z.lastIndexOf("/");if(B>-1){if(W=decodeURIComponent(z.slice(0,B)),!W)W=null;G=decodeURIComponent(z.slice(B+1))}else G=decodeURIComponent(z);if(G.endsWith(".git"))G=G.slice(0,-4);if(Y.hash)V=decodeURIComponent(Y.hash.slice(1));U="shortcut"}else{if(!H.protocols.includes(Y.protocol))return;let z=H.extract(Y);if(!z)return;W=z.user&&decodeURIComponent(z.user),G=decodeURIComponent(z.project),V=decodeURIComponent(z.committish),U=HX[Y.protocol]&&HX[Y.protocol].name||Y.protocol.slice(0,-1)}}catch(z){if(z instanceof URIError)return;else throw z}return new Z70($,W,K,G,V,U,X)}var H70=(Q)=>{let X=Q.indexOf("#"),J=Q.indexOf("/"),Y=Q.indexOf("/",J+1),Z=Q.indexOf(":"),q=/\s/.exec(Q),$=Q.indexOf("@"),H=!q||X>-1&&q.index>X,K=$===-1||X>-1&&$>X,V=Z===-1||X>-1&&Z>X,W=Y===-1||X>-1&&Y>X,G=J>0,U=X>-1?Q[X-1]!=="/":!Q.endsWith("/"),z=!Q.startsWith(".");return H&&G&&U&&z&&K&&V&&W}});var Wj=F((Ur0,Kj)=>{Kj.exports=K70;function K70(Q){if(!Q)return;if(Q==="ERROR: No README data found!")return;Q=Q.trim().split(`
15
+ `);let X=0;while(Q[X]&&Q[X].trim().match(/^(#|$)/))X++;let J=Q.length,Y=X+1;while(Y<J&&Q[Y].trim())Y++;return Q.slice(X,Y).join(" ").trim()}});var Vj=F((zr0,W70)=>{W70.exports={topLevel:{dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}}});var Bj=F((Br0,zj)=>{var V70=NZ(),G70=RZ(),U70=wW(),vZ=Hj(),z70=vW(),B70=["dependencies","devDependencies","optionalDependencies"],L70=Wj(),pW=l("url"),g4=Vj(),Gj=(Q)=>Q.includes("@")&&Q.indexOf("@")<Q.lastIndexOf(".");zj.exports={warn:function(){},fixRepositoryField:function(Q){if(Q.repositories)this.warn("repositories"),Q.repository=Q.repositories[0];if(!Q.repository)return this.warn("missingRepository");if(typeof Q.repository==="string")Q.repository={type:"git",url:Q.repository};var X=Q.repository.url||"";if(X){var J=vZ.fromUrl(X);if(J)X=Q.repository.url=J.getDefaultRepresentation()==="shortcut"?J.https():J.toString()}if(X.match(/github.com\/[^/]+\/[^/]+\.git\.git$/))this.warn("brokenGitUrl",X)},fixTypos:function(Q){Object.keys(g4.topLevel).forEach(function(X){if(Object.prototype.hasOwnProperty.call(Q,X))this.warn("typo",X,g4.topLevel[X])},this)},fixScriptsField:function(Q){if(!Q.scripts)return;if(typeof Q.scripts!=="object"){this.warn("nonObjectScripts"),delete Q.scripts;return}Object.keys(Q.scripts).forEach(function(X){if(typeof Q.scripts[X]!=="string")this.warn("nonStringScript"),delete Q.scripts[X];else if(g4.script[X]&&!Q.scripts[g4.script[X]])this.warn("typo",X,g4.script[X],"scripts")},this)},fixFilesField:function(Q){var X=Q.files;if(X&&!Array.isArray(X))this.warn("nonArrayFiles"),delete Q.files;else if(Q.files)Q.files=Q.files.filter(function(J){if(!J||typeof J!=="string")return this.warn("invalidFilename",J),!1;else return!0},this)},fixBinField:function(Q){if(!Q.bin)return;if(typeof Q.bin==="string"){var X={},J;if(J=Q.name.match(/^@[^/]+[/](.*)$/))X[J[1]]=Q.bin;else X[Q.name]=Q.bin;Q.bin=X}},fixManField:function(Q){if(!Q.man)return;if(typeof Q.man==="string")Q.man=[Q.man]},fixBundleDependenciesField:function(Q){var X="bundledDependencies",J="bundleDependencies";if(Q[X]&&!Q[J])Q[J]=Q[X],delete Q[X];if(Q[J]&&!Array.isArray(Q[J]))this.warn("nonArrayBundleDependencies"),delete Q[J];else if(Q[J])Q[J]=Q[J].filter(function(Y){if(!Y||typeof Y!=="string")return this.warn("nonStringBundleDependency",Y),!1;else{if(!Q.dependencies)Q.dependencies={};if(!Object.prototype.hasOwnProperty.call(Q.dependencies,Y))this.warn("nonDependencyBundleDependency",Y),Q.dependencies[Y]="*";return!0}},this)},fixDependencies:function(Q,X){N70(Q,this.warn),O70(Q,this.warn),this.fixBundleDependenciesField(Q),["dependencies","devDependencies"].forEach(function(J){if(!(J in Q))return;if(!Q[J]||typeof Q[J]!=="object"){this.warn("nonObjectDependencies",J),delete Q[J];return}Object.keys(Q[J]).forEach(function(Y){var Z=Q[J][Y];if(typeof Z!=="string")this.warn("nonStringDependency",Y,JSON.stringify(Z)),delete Q[J][Y];var q=vZ.fromUrl(Q[J][Y]);if(q)Q[J][Y]=q.toString()},this)},this)},fixModulesField:function(Q){if(Q.modules)this.warn("deprecatedModules"),delete Q.modules},fixKeywordsField:function(Q){if(typeof Q.keywords==="string")Q.keywords=Q.keywords.split(/,\s+/);if(Q.keywords&&!Array.isArray(Q.keywords))delete Q.keywords,this.warn("nonArrayKeywords");else if(Q.keywords)Q.keywords=Q.keywords.filter(function(X){if(typeof X!=="string"||!X)return this.warn("nonStringKeyword"),!1;else return!0},this)},fixVersionField:function(Q,X){var J=!X;if(!Q.version)return Q.version="",!0;if(!V70(Q.version,J))throw Error('Invalid version: "'+Q.version+'"');return Q.version=G70(Q.version,J),!0},fixPeople:function(Q){Uj(Q,P70),Uj(Q,C70)},fixNameField:function(Q,X){if(typeof X==="boolean")X={strict:X};else if(typeof X>"u")X={};var J=X.strict;if(!Q.name&&!J){Q.name="";return}if(typeof Q.name!=="string")throw Error("name field must be a string.");if(!J)Q.name=Q.name.trim();if(I70(Q.name,J,X.allowLegacyCase),z70(Q.name))this.warn("conflictingName",Q.name)},fixDescriptionField:function(Q){if(Q.description&&typeof Q.description!=="string")this.warn("nonStringDescription"),delete Q.description;if(Q.readme&&!Q.description)Q.description=L70(Q.readme);if(Q.description===void 0)delete Q.description;if(!Q.description)this.warn("missingDescription")},fixReadmeField:function(Q){if(!Q.readme)this.warn("missingReadme"),Q.readme="ERROR: No README data found!"},fixBugsField:function(Q){if(!Q.bugs&&Q.repository&&Q.repository.url){var X=vZ.fromUrl(Q.repository.url);if(X&&X.bugs())Q.bugs={url:X.bugs()}}else if(Q.bugs){if(typeof Q.bugs==="string")if(Gj(Q.bugs))Q.bugs={email:Q.bugs};else if(pW.parse(Q.bugs).protocol)Q.bugs={url:Q.bugs};else this.warn("nonEmailUrlBugsString");else{R70(Q.bugs,this.warn);var J=Q.bugs;if(Q.bugs={},J.url)if(typeof J.url==="string"&&pW.parse(J.url).protocol)Q.bugs.url=J.url;else this.warn("nonUrlBugsUrlField");if(J.email)if(typeof J.email==="string"&&Gj(J.email))Q.bugs.email=J.email;else this.warn("nonEmailBugsEmailField")}if(!Q.bugs.email&&!Q.bugs.url)delete Q.bugs,this.warn("emptyNormalizedBugs")}},fixHomepageField:function(Q){if(!Q.homepage&&Q.repository&&Q.repository.url){var X=vZ.fromUrl(Q.repository.url);if(X&&X.docs())Q.homepage=X.docs()}if(!Q.homepage)return;if(typeof Q.homepage!=="string")return this.warn("nonUrlHomepage"),delete Q.homepage;if(!pW.parse(Q.homepage).protocol)Q.homepage="http://"+Q.homepage},fixLicenseField:function(Q){let X=Q.license||Q.licence;if(!X)return this.warn("missingLicense");if(typeof X!=="string"||X.length<1||X.trim()==="")return this.warn("invalidLicense");if(!U70(X).validForNewPackages)return this.warn("invalidLicense")}};function F70(Q){if(Q.charAt(0)!=="@")return!1;var X=Q.slice(1).split("/");if(X.length!==2)return!1;return X[0]&&X[1]&&X[0]===encodeURIComponent(X[0])&&X[1]===encodeURIComponent(X[1])}function M70(Q){return!Q.match(/[/@\s+%:]/)&&Q===encodeURIComponent(Q)}function I70(Q,X,J){if(Q.charAt(0)==="."||!(F70(Q)||M70(Q))||X&&!J&&Q!==Q.toLowerCase()||Q.toLowerCase()==="node_modules"||Q.toLowerCase()==="favicon.ico")throw Error("Invalid name: "+JSON.stringify(Q))}function Uj(Q,X){if(Q.author)Q.author=X(Q.author);return["maintainers","contributors"].forEach(function(J){if(!Array.isArray(Q[J]))return;Q[J]=Q[J].map(X)}),Q}function P70(Q){if(typeof Q==="string")return Q;var X=Q.name||"",J=Q.url||Q.web,Y=J?" ("+J+")":"",Z=Q.email||Q.mail,q=Z?" <"+Z+">":"";return X+q+Y}function C70(Q){if(typeof Q!=="string")return Q;var X=Q.match(/^([^(<]+)/),J=Q.match(/\(([^()]+)\)/),Y=Q.match(/<([^<>]+)>/),Z={};if(X&&X[0].trim())Z.name=X[0].trim();if(Y)Z.email=Y[1];if(J)Z.url=J[1];return Z}function O70(Q,X){var J=Q.optionalDependencies;if(!J)return;var Y=Q.dependencies||{};Object.keys(J).forEach(function(Z){Y[Z]=J[Z]}),Q.dependencies=Y}function j70(Q,X,J){if(!Q)return{};if(typeof Q==="string")Q=Q.trim().split(/[\n\r\s\t ,]+/);if(!Array.isArray(Q))return Q;J("deprecatedArrayDependencies",X);var Y={};return Q.filter(function(Z){return typeof Z==="string"}).forEach(function(Z){Z=Z.trim().split(/(:?[@\s><=])/);var q=Z.shift(),$=Z.join("");$=$.trim(),$=$.replace(/^@/,""),Y[q]=$}),Y}function N70(Q,X){B70.forEach(function(J){if(!Q[J])return;Q[J]=j70(Q[J],J,X)})}function R70(Q,X){if(!Q)return;Object.keys(Q).forEach(function(J){if(g4.bugs[J])X("typo",J,g4.bugs[J],"bugs"),Q[g4.bugs[J]]=Q[J],delete Q[J]})}});var Lj=F((Lr0,D70)=>{D70.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."}});var Ij=F((Fr0,Mj)=>{var Fj=l("util"),nW=Lj();Mj.exports=function(){var Q=Array.prototype.slice.call(arguments,0),X=Q.shift();if(X==="typo")return w70.apply(null,Q);else{var J=nW[X]?nW[X]:X+": '%s'";return Q.unshift(J),Fj.format.apply(null,Q)}};function w70(Q,X,J){if(J)Q=J+"['"+Q+"']",X=J+"['"+X+"']";return Fj.format(nW.typo,Q,X)}});var jj=F((Mr0,Oj)=>{Oj.exports=Pj;var iW=Bj();Pj.fixer=iW;var T70=Ij(),A70=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],E70=["dependencies","people","typos"],oW=A70.map(function(Q){return Cj(Q)+"Field"});oW=oW.concat(E70);function Pj(Q,X,J){if(X===!0)X=null,J=!0;if(!J)J=!1;if(!X||Q.private)X=function(Y){};if(Q.scripts&&Q.scripts.install==="node-gyp rebuild"&&!Q.scripts.preinstall)Q.gypfile=!0;iW.warn=function(){X(T70.apply(null,arguments))},oW.forEach(function(Y){iW["fix"+Cj(Y)](Q,J)}),Q._id=Q.name+"@"+Q.version}function Cj(Q){return Q.charAt(0).toUpperCase()+Q.slice(1)}});var _j=F((Ar0,Ej)=>{var Aj=g1(),u70=(Q,X,J,Y,Z)=>{if(typeof J==="string")Z=Y,Y=J,J=void 0;try{return new Aj(Q instanceof Aj?Q.version:Q,J).inc(X,Y,Z).version}catch(q){return null}};Ej.exports=u70});var xj=F((Er0,vj)=>{var Sj=h4(),m70=(Q,X)=>{let J=Sj(Q,null,!0),Y=Sj(X,null,!0),Z=J.compare(Y);if(Z===0)return null;let q=Z>0,$=q?J:Y,H=q?Y:J,K=!!$.prerelease.length;if(!!H.prerelease.length&&!K){if(!H.patch&&!H.minor)return"major";if(H.compareMain($)===0){if(H.minor&&!H.patch)return"minor";return"patch"}}let W=K?"pre":"";if(J.major!==Y.major)return W+"major";if(J.minor!==Y.minor)return W+"minor";if(J.patch!==Y.patch)return W+"patch";return"prerelease"};vj.exports=m70});var yj=F((_r0,kj)=>{var d70=g1(),c70=(Q,X)=>new d70(Q,X).major;kj.exports=c70});var bj=F((Sr0,hj)=>{var l70=g1(),p70=(Q,X)=>new l70(Q,X).minor;hj.exports=p70});var gj=F((vr0,fj)=>{var n70=g1(),i70=(Q,X)=>new n70(Q,X).patch;fj.exports=i70});var mj=F((xr0,uj)=>{var o70=h4(),r70=(Q,X)=>{let J=o70(Q,X);return J&&J.prerelease.length?J.prerelease:null};uj.exports=r70});var c6=F((kr0,cj)=>{var dj=g1(),s70=(Q,X,J)=>new dj(Q,J).compare(new dj(X,J));cj.exports=s70});var pj=F((yr0,lj)=>{var a70=c6(),t70=(Q,X,J)=>a70(X,Q,J);lj.exports=t70});var ij=F((hr0,nj)=>{var e70=c6(),Q90=(Q,X)=>e70(Q,X,!0);nj.exports=Q90});var xZ=F((br0,rj)=>{var oj=g1(),X90=(Q,X,J)=>{let Y=new oj(Q,J),Z=new oj(X,J);return Y.compare(Z)||Y.compareBuild(Z)};rj.exports=X90});var aj=F((fr0,sj)=>{var J90=xZ(),Y90=(Q,X)=>Q.sort((J,Y)=>J90(J,Y,X));sj.exports=Y90});var ej=F((gr0,tj)=>{var Z90=xZ(),q90=(Q,X)=>Q.sort((J,Y)=>Z90(Y,J,X));tj.exports=q90});var WX=F((ur0,QN)=>{var $90=c6(),H90=(Q,X,J)=>$90(Q,X,J)>0;QN.exports=H90});var kZ=F((mr0,XN)=>{var K90=c6(),W90=(Q,X,J)=>K90(Q,X,J)<0;XN.exports=W90});var rW=F((dr0,JN)=>{var V90=c6(),G90=(Q,X,J)=>V90(Q,X,J)===0;JN.exports=G90});var sW=F((cr0,YN)=>{var U90=c6(),z90=(Q,X,J)=>U90(Q,X,J)!==0;YN.exports=z90});var yZ=F((lr0,ZN)=>{var B90=c6(),L90=(Q,X,J)=>B90(Q,X,J)>=0;ZN.exports=L90});var hZ=F((pr0,qN)=>{var F90=c6(),M90=(Q,X,J)=>F90(Q,X,J)<=0;qN.exports=M90});var aW=F((nr0,$N)=>{var I90=rW(),P90=sW(),C90=WX(),O90=yZ(),j90=kZ(),N90=hZ(),R90=(Q,X,J,Y)=>{switch(X){case"===":if(typeof Q==="object")Q=Q.version;if(typeof J==="object")J=J.version;return Q===J;case"!==":if(typeof Q==="object")Q=Q.version;if(typeof J==="object")J=J.version;return Q!==J;case"":case"=":case"==":return I90(Q,J,Y);case"!=":return P90(Q,J,Y);case">":return C90(Q,J,Y);case">=":return O90(Q,J,Y);case"<":return j90(Q,J,Y);case"<=":return N90(Q,J,Y);default:throw TypeError(`Invalid operator: ${X}`)}};$N.exports=R90});var KN=F((ir0,HN)=>{var D90=g1(),w90=h4(),{safeRe:bZ,t:fZ}=f7(),T90=(Q,X)=>{if(Q instanceof D90)return Q;if(typeof Q==="number")Q=String(Q);if(typeof Q!=="string")return null;X=X||{};let J=null;if(!X.rtl)J=Q.match(X.includePrerelease?bZ[fZ.COERCEFULL]:bZ[fZ.COERCE]);else{let K=X.includePrerelease?bZ[fZ.COERCERTLFULL]:bZ[fZ.COERCERTL],V;while((V=K.exec(Q))&&(!J||J.index+J[0].length!==Q.length)){if(!J||V.index+V[0].length!==J.index+J[0].length)J=V;K.lastIndex=V.index+V[1].length+V[2].length}K.lastIndex=-1}if(J===null)return null;let Y=J[2],Z=J[3]||"0",q=J[4]||"0",$=X.includePrerelease&&J[5]?`-${J[5]}`:"",H=X.includePrerelease&&J[6]?`+${J[6]}`:"";return w90(`${Y}.${Z}.${q}${$}${H}`,X)};HN.exports=T90});var VN=F((or0,WN)=>{var A90=h4(),E90=b7(),_90=g1(),S90=(Q,X,J)=>{if(!E90.RELEASE_TYPES.includes(X))return null;let Y=v90(Q,J);return Y&&x90(Y,X)},v90=(Q,X)=>{let J=Q instanceof _90?Q.version:Q;return A90(J,X)},x90=(Q,X)=>{if(k90(X))return Q.version;switch(Q.prerelease=[],X){case"major":Q.minor=0,Q.patch=0;break;case"minor":Q.patch=0;break}return Q.format()},k90=(Q)=>{return Q.startsWith("pre")};WN.exports=S90});var zN=F((rr0,UN)=>{class GN{constructor(){this.max=1000,this.map=new Map}get(Q){let X=this.map.get(Q);if(X===void 0)return;else return this.map.delete(Q),this.map.set(Q,X),X}delete(Q){return this.map.delete(Q)}set(Q,X){if(!this.delete(Q)&&X!==void 0){if(this.map.size>=this.max){let Y=this.map.keys().next().value;this.delete(Y)}this.map.set(Q,X)}return this}}UN.exports=GN});var l6=F((sr0,MN)=>{var y90=/\s+/g;class VX{constructor(Q,X){if(X=b90(X),Q instanceof VX)if(Q.loose===!!X.loose&&Q.includePrerelease===!!X.includePrerelease)return Q;else return new VX(Q.raw,X);if(Q instanceof tW)return this.raw=Q.value,this.set=[[Q]],this.formatted=void 0,this;if(this.options=X,this.loose=!!X.loose,this.includePrerelease=!!X.includePrerelease,this.raw=Q.trim().replace(y90," "),this.set=this.raw.split("||").map((J)=>this.parseRange(J.trim())).filter((J)=>J.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let J=this.set[0];if(this.set=this.set.filter((Y)=>!LN(Y[0])),this.set.length===0)this.set=[J];else if(this.set.length>1){for(let Y of this.set)if(Y.length===1&&n90(Y[0])){this.set=[Y];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let Q=0;Q<this.set.length;Q++){if(Q>0)this.formatted+="||";let X=this.set[Q];for(let J=0;J<X.length;J++){if(J>0)this.formatted+=" ";this.formatted+=X[J].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(Q){Q=Q.replace(p90,"");let J=((this.options.includePrerelease&&c90)|(this.options.loose&&l90))+":"+Q,Y=BN.get(J);if(Y)return Y;let Z=this.options.loose,q=Z?$6[m1.HYPHENRANGELOOSE]:$6[m1.HYPHENRANGE];Q=Q.replace(q,YQ0(this.options.includePrerelease)),s0("hyphen replace",Q),Q=Q.replace($6[m1.COMPARATORTRIM],u90),s0("comparator trim",Q),Q=Q.replace($6[m1.TILDETRIM],m90),s0("tilde trim",Q),Q=Q.replace($6[m1.CARETTRIM],d90),s0("caret trim",Q);let $=Q.split(" ").map((W)=>i90(W,this.options)).join(" ").split(/\s+/).map((W)=>JQ0(W,this.options));if(Z)$=$.filter((W)=>{return s0("loose invalid filter",W,this.options),!!W.match($6[m1.COMPARATORLOOSE])});s0("range list",$);let H=new Map,K=$.map((W)=>new tW(W,this.options));for(let W of K){if(LN(W))return[W];H.set(W.value,W)}if(H.size>1&&H.has(""))H.delete("");let V=[...H.values()];return BN.set(J,V),V}intersects(Q,X){if(!(Q instanceof VX))throw TypeError("a Range is required");return this.set.some((J)=>{return FN(J,X)&&Q.set.some((Y)=>{return FN(Y,X)&&J.every((Z)=>{return Y.every((q)=>{return Z.intersects(q,X)})})})})}test(Q){if(!Q)return!1;if(typeof Q==="string")try{Q=new f90(Q,this.options)}catch(X){return!1}for(let X=0;X<this.set.length;X++)if(ZQ0(this.set[X],Q,this.options))return!0;return!1}}MN.exports=VX;var h90=zN(),BN=new h90,b90=IZ(),tW=GX(),s0=QX(),f90=g1(),{safeRe:$6,src:g90,t:m1,comparatorTrimReplace:u90,tildeTrimReplace:m90,caretTrimReplace:d90}=f7(),{FLAG_INCLUDE_PRERELEASE:c90,FLAG_LOOSE:l90}=b7(),p90=new RegExp(g90[m1.BUILD],"g"),LN=(Q)=>Q.value==="<0.0.0-0",n90=(Q)=>Q.value==="",FN=(Q,X)=>{let J=!0,Y=Q.slice(),Z=Y.pop();while(J&&Y.length)J=Y.every((q)=>{return Z.intersects(q,X)}),Z=Y.pop();return J},i90=(Q,X)=>{return Q=Q.replace($6[m1.BUILD],""),s0("comp",Q,X),Q=a90(Q,X),s0("caret",Q),Q=r90(Q,X),s0("tildes",Q),Q=e90(Q,X),s0("xrange",Q),Q=XQ0(Q,X),s0("stars",Q),Q},T1=(Q)=>!Q||Q.toLowerCase()==="x"||Q==="*",o90=(Q,X,J)=>T1(Q)&&!T1(X)||T1(X)&&J&&!T1(J),r90=(Q,X)=>{return Q.trim().split(/\s+/).map((J)=>s90(J,X)).join(" ")},s90=(Q,X)=>{let J=X.loose?$6[m1.TILDELOOSE]:$6[m1.TILDE],Y=X.includePrerelease?"-0":"";return Q.replace(J,(Z,q,$,H,K)=>{s0("tilde",Q,Z,q,$,H,K);let V;if(T1(q))V="";else if(T1($))V=`>=${q}.0.0${Y} <${+q+1}.0.0-0`;else if(T1(H))V=`>=${q}.${$}.0${Y} <${q}.${+$+1}.0-0`;else if(K)s0("replaceTilde pr",K),V=`>=${q}.${$}.${H}-${K} <${q}.${+$+1}.0-0`;else V=`>=${q}.${$}.${H} <${q}.${+$+1}.0-0`;return s0("tilde return",V),V})},a90=(Q,X)=>{return Q.trim().split(/\s+/).map((J)=>t90(J,X)).join(" ")},t90=(Q,X)=>{s0("caret",Q,X);let J=X.loose?$6[m1.CARETLOOSE]:$6[m1.CARET],Y=X.includePrerelease?"-0":"";return Q.replace(J,(Z,q,$,H,K)=>{s0("caret",Q,Z,q,$,H,K);let V;if(T1(q))V="";else if(T1($))V=`>=${q}.0.0${Y} <${+q+1}.0.0-0`;else if(T1(H))if(q==="0")V=`>=${q}.${$}.0${Y} <${q}.${+$+1}.0-0`;else V=`>=${q}.${$}.0${Y} <${+q+1}.0.0-0`;else if(K)if(s0("replaceCaret pr",K),q==="0")if($==="0")V=`>=${q}.${$}.${H}-${K} <${q}.${$}.${+H+1}-0`;else V=`>=${q}.${$}.${H}-${K} <${q}.${+$+1}.0-0`;else V=`>=${q}.${$}.${H}-${K} <${+q+1}.0.0-0`;else if(s0("no pr"),q==="0")if($==="0")V=`>=${q}.${$}.${H} <${q}.${$}.${+H+1}-0`;else V=`>=${q}.${$}.${H} <${q}.${+$+1}.0-0`;else V=`>=${q}.${$}.${H} <${+q+1}.0.0-0`;return s0("caret return",V),V})},e90=(Q,X)=>{return s0("replaceXRanges",Q,X),Q.split(/\s+/).map((J)=>QQ0(J,X)).join(" ")},QQ0=(Q,X)=>{Q=Q.trim();let J=X.loose?$6[m1.XRANGELOOSE]:$6[m1.XRANGE];return Q.replace(J,(Y,Z,q,$,H,K)=>{if(s0("xRange",Q,Y,Z,q,$,H,K),o90(q,$,H))return Q;let V=T1(q),W=V||T1($),G=W||T1(H),U=G;if(Z==="="&&U)Z="";if(K=X.includePrerelease?"-0":"",V)if(Z===">"||Z==="<")Y="<0.0.0-0";else Y="*";else if(Z&&U){if(W)$=0;if(H=0,Z===">")if(Z=">=",W)q=+q+1,$=0,H=0;else $=+$+1,H=0;else if(Z==="<=")if(Z="<",W)q=+q+1;else $=+$+1;if(Z==="<")K="-0";Y=`${Z+q}.${$}.${H}${K}`}else if(W)Y=`>=${q}.0.0${K} <${+q+1}.0.0-0`;else if(G)Y=`>=${q}.${$}.0${K} <${q}.${+$+1}.0-0`;return s0("xRange return",Y),Y})},XQ0=(Q,X)=>{return s0("replaceStars",Q,X),Q.trim().replace($6[m1.STAR],"")},JQ0=(Q,X)=>{return s0("replaceGTE0",Q,X),Q.trim().replace($6[X.includePrerelease?m1.GTE0PRE:m1.GTE0],"")},YQ0=(Q)=>(X,J,Y,Z,q,$,H,K,V,W,G,U)=>{if(T1(Y))J="";else if(T1(Z))J=`>=${Y}.0.0${Q?"-0":""}`;else if(T1(q))J=`>=${Y}.${Z}.0${Q?"-0":""}`;else if($)J=`>=${J}`;else J=`>=${J}${Q?"-0":""}`;if(T1(V))K="";else if(T1(W))K=`<${+V+1}.0.0-0`;else if(T1(G))K=`<${V}.${+W+1}.0-0`;else if(U)K=`<=${V}.${W}.${G}-${U}`;else if(Q)K=`<${V}.${W}.${+G+1}-0`;else K=`<=${K}`;return`${J} ${K}`.trim()},ZQ0=(Q,X,J)=>{for(let Y=0;Y<Q.length;Y++)if(!Q[Y].test(X))return!1;if(X.prerelease.length&&!J.includePrerelease){for(let Y=0;Y<Q.length;Y++){if(s0(Q[Y].semver),Q[Y].semver===tW.ANY)continue;if(Q[Y].semver.prerelease.length>0){let Z=Q[Y].semver;if(Z.major===X.major&&Z.minor===X.minor&&Z.patch===X.patch)return!0}}return!1}return!0}});var GX=F((ar0,NN)=>{var UX=Symbol("SemVer ANY");class gZ{static get ANY(){return UX}constructor(Q,X){if(X=IN(X),Q instanceof gZ)if(Q.loose===!!X.loose)return Q;else Q=Q.value;if(Q=Q.trim().split(/\s+/).join(" "),QV("comparator",Q,X),this.options=X,this.loose=!!X.loose,this.parse(Q),this.semver===UX)this.value="";else this.value=this.operator+this.semver.version;QV("comp",this)}parse(Q){let X=this.options.loose?PN[CN.COMPARATORLOOSE]:PN[CN.COMPARATOR],J=Q.match(X);if(!J)throw TypeError(`Invalid comparator: ${Q}`);if(this.operator=J[1]!==void 0?J[1]:"",this.operator==="=")this.operator="";if(!J[2])this.semver=UX;else this.semver=new ON(J[2],this.options.loose)}toString(){return this.value}test(Q){if(QV("Comparator.test",Q,this.options.loose),this.semver===UX||Q===UX)return!0;if(typeof Q==="string")try{Q=new ON(Q,this.options)}catch(X){return!1}return eW(Q,this.operator,this.semver,this.options)}intersects(Q,X){if(!(Q instanceof gZ))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new jN(Q.value,X).test(this.value)}else if(Q.operator===""){if(Q.value==="")return!0;return new jN(this.value,X).test(Q.semver)}if(X=IN(X),X.includePrerelease&&(this.value==="<0.0.0-0"||Q.value==="<0.0.0-0"))return!1;if(!X.includePrerelease&&(this.value.startsWith("<0.0.0")||Q.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&Q.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&Q.operator.startsWith("<"))return!0;if(this.semver.version===Q.semver.version&&this.operator.includes("=")&&Q.operator.includes("="))return!0;if(eW(this.semver,"<",Q.semver,X)&&this.operator.startsWith(">")&&Q.operator.startsWith("<"))return!0;if(eW(this.semver,">",Q.semver,X)&&this.operator.startsWith("<")&&Q.operator.startsWith(">"))return!0;return!1}}NN.exports=gZ;var IN=IZ(),{safeRe:PN,t:CN}=f7(),eW=aW(),QV=QX(),ON=g1(),jN=l6()});var zX=F((tr0,RN)=>{var qQ0=l6(),$Q0=(Q,X,J)=>{try{X=new qQ0(X,J)}catch(Y){return!1}return X.test(Q)};RN.exports=$Q0});var wN=F((er0,DN)=>{var HQ0=l6(),KQ0=(Q,X)=>new HQ0(Q,X).set.map((J)=>J.map((Y)=>Y.value).join(" ").trim().split(" "));DN.exports=KQ0});var AN=F((Qs0,TN)=>{var WQ0=g1(),VQ0=l6(),GQ0=(Q,X,J)=>{let Y=null,Z=null,q=null;try{q=new VQ0(X,J)}catch($){return null}return Q.forEach(($)=>{if(q.test($)){if(!Y||Z.compare($)===-1)Y=$,Z=new WQ0(Y,J)}}),Y};TN.exports=GQ0});var _N=F((Xs0,EN)=>{var UQ0=g1(),zQ0=l6(),BQ0=(Q,X,J)=>{let Y=null,Z=null,q=null;try{q=new zQ0(X,J)}catch($){return null}return Q.forEach(($)=>{if(q.test($)){if(!Y||Z.compare($)===1)Y=$,Z=new UQ0(Y,J)}}),Y};EN.exports=BQ0});var xN=F((Js0,vN)=>{var XV=g1(),LQ0=l6(),SN=WX(),FQ0=(Q,X)=>{Q=new LQ0(Q,X);let J=new XV("0.0.0");if(Q.test(J))return J;if(J=new XV("0.0.0-0"),Q.test(J))return J;J=null;for(let Y=0;Y<Q.set.length;++Y){let Z=Q.set[Y],q=null;if(Z.forEach(($)=>{let H=new XV($.semver.version);switch($.operator){case">":if(H.prerelease.length===0)H.patch++;else H.prerelease.push(0);H.raw=H.format();case"":case">=":if(!q||SN(H,q))q=H;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${$.operator}`)}}),q&&(!J||SN(J,q)))J=q}if(J&&Q.test(J))return J;return null};vN.exports=FQ0});var yN=F((Ys0,kN)=>{var MQ0=l6(),IQ0=(Q,X)=>{try{return new MQ0(Q,X).range||"*"}catch(J){return null}};kN.exports=IQ0});var uZ=F((Zs0,gN)=>{var PQ0=g1(),fN=GX(),{ANY:CQ0}=fN,OQ0=l6(),jQ0=zX(),hN=WX(),bN=kZ(),NQ0=hZ(),RQ0=yZ(),DQ0=(Q,X,J,Y)=>{Q=new PQ0(Q,Y),X=new OQ0(X,Y);let Z,q,$,H,K;switch(J){case">":Z=hN,q=NQ0,$=bN,H=">",K=">=";break;case"<":Z=bN,q=RQ0,$=hN,H="<",K="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(jQ0(Q,X,Y))return!1;for(let V=0;V<X.set.length;++V){let W=X.set[V],G=null,U=null;if(W.forEach((z)=>{if(z.semver===CQ0)z=new fN(">=0.0.0");if(G=G||z,U=U||z,Z(z.semver,G.semver,Y))G=z;else if($(z.semver,U.semver,Y))U=z}),G.operator===H||G.operator===K)return!1;if((!U.operator||U.operator===H)&&q(Q,U.semver))return!1;else if(U.operator===K&&$(Q,U.semver))return!1}return!0};gN.exports=DQ0});var mN=F((qs0,uN)=>{var wQ0=uZ(),TQ0=(Q,X,J)=>wQ0(Q,X,">",J);uN.exports=TQ0});var cN=F(($s0,dN)=>{var AQ0=uZ(),EQ0=(Q,X,J)=>AQ0(Q,X,"<",J);dN.exports=EQ0});var nN=F((Hs0,pN)=>{var lN=l6(),_Q0=(Q,X,J)=>{return Q=new lN(Q,J),X=new lN(X,J),Q.intersects(X,J)};pN.exports=_Q0});var oN=F((Ks0,iN)=>{var SQ0=zX(),vQ0=c6();iN.exports=(Q,X,J)=>{let Y=[],Z=null,q=null,$=Q.sort((W,G)=>vQ0(W,G,J));for(let W of $)if(SQ0(W,X,J)){if(q=W,!Z)Z=W}else{if(q)Y.push([Z,q]);q=null,Z=null}if(Z)Y.push([Z,null]);let H=[];for(let[W,G]of Y)if(W===G)H.push(W);else if(!G&&W===$[0])H.push("*");else if(!G)H.push(`>=${W}`);else if(W===$[0])H.push(`<=${G}`);else H.push(`${W} - ${G}`);let K=H.join(" || "),V=typeof X.raw==="string"?X.raw:String(X);return K.length<V.length?K:X}});var QR=F((Ws0,eN)=>{var rN=l6(),ZV=GX(),{ANY:JV}=ZV,YV=zX(),qV=c6(),xQ0=(Q,X,J={})=>{if(Q===X)return!0;Q=new rN(Q,J),X=new rN(X,J);let Y=!1;Q:for(let Z of Q.set){for(let q of X.set){let $=yQ0(Z,q,J);if(Y=Y||$!==null,$)continue Q}if(Y)return!1}return!0},kQ0=[new ZV(">=0.0.0-0")],sN=[new ZV(">=0.0.0")],yQ0=(Q,X,J)=>{if(Q===X)return!0;if(Q.length===1&&Q[0].semver===JV)if(X.length===1&&X[0].semver===JV)return!0;else if(J.includePrerelease)Q=kQ0;else Q=sN;if(X.length===1&&X[0].semver===JV)if(J.includePrerelease)return!0;else X=sN;let Y=new Set,Z,q;for(let z of Q)if(z.operator===">"||z.operator===">=")Z=aN(Z,z,J);else if(z.operator==="<"||z.operator==="<=")q=tN(q,z,J);else Y.add(z.semver);if(Y.size>1)return null;let $;if(Z&&q){if($=qV(Z.semver,q.semver,J),$>0)return null;else if($===0&&(Z.operator!==">="||q.operator!=="<="))return null}for(let z of Y){if(Z&&!YV(z,String(Z),J))return null;if(q&&!YV(z,String(q),J))return null;for(let L of X)if(!YV(z,String(L),J))return!1;return!0}let H,K,V,W,G=q&&!J.includePrerelease&&q.semver.prerelease.length?q.semver:!1,U=Z&&!J.includePrerelease&&Z.semver.prerelease.length?Z.semver:!1;if(G&&G.prerelease.length===1&&q.operator==="<"&&G.prerelease[0]===0)G=!1;for(let z of X){if(W=W||z.operator===">"||z.operator===">=",V=V||z.operator==="<"||z.operator==="<=",Z){if(U){if(z.semver.prerelease&&z.semver.prerelease.length&&z.semver.major===U.major&&z.semver.minor===U.minor&&z.semver.patch===U.patch)U=!1}if(z.operator===">"||z.operator===">="){if(H=aN(Z,z,J),H===z&&H!==Z)return!1}else if(Z.operator===">="&&!z.test(Z.semver))return!1}if(q){if(G){if(z.semver.prerelease&&z.semver.prerelease.length&&z.semver.major===G.major&&z.semver.minor===G.minor&&z.semver.patch===G.patch)G=!1}if(z.operator==="<"||z.operator==="<="){if(K=tN(q,z,J),K===z&&K!==q)return!1}else if(q.operator==="<="&&!z.test(q.semver))return!1}if(!z.operator&&(q||Z)&&$!==0)return!1}if(Z&&V&&!q&&$!==0)return!1;if(q&&W&&!Z&&$!==0)return!1;if(U||G)return!1;return!0},aN=(Q,X,J)=>{if(!Q)return X;let Y=qV(Q.semver,X.semver,J);return Y>0?Q:Y<0?X:X.operator===">"&&Q.operator===">="?X:Q},tN=(Q,X,J)=>{if(!Q)return X;let Y=qV(Q.semver,X.semver,J);return Y<0?Q:Y>0?X:X.operator==="<"&&Q.operator==="<="?X:Q};eN.exports=xQ0});var HV=F((Vs0,YR)=>{var $V=f7(),XR=b7(),hQ0=g1(),JR=CW(),bQ0=h4(),fQ0=NZ(),gQ0=RZ(),uQ0=_j(),mQ0=xj(),dQ0=yj(),cQ0=bj(),lQ0=gj(),pQ0=mj(),nQ0=c6(),iQ0=pj(),oQ0=ij(),rQ0=xZ(),sQ0=aj(),aQ0=ej(),tQ0=WX(),eQ0=kZ(),QX0=rW(),XX0=sW(),JX0=yZ(),YX0=hZ(),ZX0=aW(),qX0=KN(),$X0=VN(),HX0=GX(),KX0=l6(),WX0=zX(),VX0=wN(),GX0=AN(),UX0=_N(),zX0=xN(),BX0=yN(),LX0=uZ(),FX0=mN(),MX0=cN(),IX0=nN(),PX0=oN(),CX0=QR();YR.exports={parse:bQ0,valid:fQ0,clean:gQ0,inc:uQ0,diff:mQ0,major:dQ0,minor:cQ0,patch:lQ0,prerelease:pQ0,compare:nQ0,rcompare:iQ0,compareLoose:oQ0,compareBuild:rQ0,sort:sQ0,rsort:aQ0,gt:tQ0,lt:eQ0,eq:QX0,neq:XX0,gte:JX0,lte:YX0,cmp:ZX0,coerce:qX0,truncate:$X0,Comparator:HX0,Range:KX0,satisfies:WX0,toComparators:VX0,maxSatisfying:GX0,minSatisfying:UX0,minVersion:zX0,validRange:BX0,outside:LX0,gtr:FX0,ltr:MX0,intersects:IX0,simplifyRange:PX0,subset:CX0,SemVer:hQ0,re:$V.re,src:$V.src,tokens:$V.t,SEMVER_SPEC_VERSION:XR.SEMVER_SPEC_VERSION,RELEASE_TYPES:XR.RELEASE_TYPES,compareIdentifiers:JR.compareIdentifiers,rcompareIdentifiers:JR.rcompareIdentifiers}});var IX=F((AR)=>{Object.defineProperty(AR,"__esModule",{value:!0});AR.regexpCode=AR.getEsmExportName=AR.getProperty=AR.safeStringify=AR.stringify=AR.strConcat=AR.addCodeArg=AR.str=AR._=AR.nil=AR._Code=AR.Name=AR.IDENTIFIER=AR._CodeOrName=void 0;class lZ{}AR._CodeOrName=lZ;AR.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class l7 extends lZ{constructor(Q){super();if(!AR.IDENTIFIER.test(Q))throw Error("CodeGen: name must be a valid identifier");this.str=Q}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}AR.Name=l7;class G8 extends lZ{constructor(Q){super();this._items=typeof Q==="string"?[Q]:Q}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let Q=this._items[0];return Q===""||Q==='""'}get str(){var Q;return(Q=this._str)!==null&&Q!==void 0?Q:this._str=this._items.reduce((X,J)=>`${X}${J}`,"")}get names(){var Q;return(Q=this._names)!==null&&Q!==void 0?Q:this._names=this._items.reduce((X,J)=>{if(J instanceof l7)X[J.str]=(X[J.str]||0)+1;return X},{})}}AR._Code=G8;AR.nil=new G8("");function wR(Q,...X){let J=[Q[0]],Y=0;while(Y<X.length)OV(J,X[Y]),J.push(Q[++Y]);return new G8(J)}AR._=wR;var CV=new G8("+");function TR(Q,...X){let J=[MX(Q[0])],Y=0;while(Y<X.length)J.push(CV),OV(J,X[Y]),J.push(CV,MX(Q[++Y]));return xX0(J),new G8(J)}AR.str=TR;function OV(Q,X){if(X instanceof G8)Q.push(...X._items);else if(X instanceof l7)Q.push(X);else Q.push(hX0(X))}AR.addCodeArg=OV;function xX0(Q){let X=1;while(X<Q.length-1){if(Q[X]===CV){let J=kX0(Q[X-1],Q[X+1]);if(J!==void 0){Q.splice(X-1,3,J);continue}Q[X++]="+"}X++}}function kX0(Q,X){if(X==='""')return Q;if(Q==='""')return X;if(typeof Q=="string"){if(X instanceof l7||Q[Q.length-1]!=='"')return;if(typeof X!="string")return`${Q.slice(0,-1)}${X}"`;if(X[0]==='"')return Q.slice(0,-1)+X.slice(1);return}if(typeof X=="string"&&X[0]==='"'&&!(Q instanceof l7))return`"${Q}${X.slice(1)}`;return}function yX0(Q,X){return X.emptyStr()?Q:Q.emptyStr()?X:TR`${Q}${X}`}AR.strConcat=yX0;function hX0(Q){return typeof Q=="number"||typeof Q=="boolean"||Q===null?Q:MX(Array.isArray(Q)?Q.join(","):Q)}function bX0(Q){return new G8(MX(Q))}AR.stringify=bX0;function MX(Q){return JSON.stringify(Q).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}AR.safeStringify=MX;function fX0(Q){return typeof Q=="string"&&AR.IDENTIFIER.test(Q)?new G8(`.${Q}`):wR`[${Q}]`}AR.getProperty=fX0;function gX0(Q){if(typeof Q=="string"&&AR.IDENTIFIER.test(Q))return new G8(`${Q}`);throw Error(`CodeGen: invalid export name: ${Q}, use explicit $id name mapping`)}AR.getEsmExportName=gX0;function uX0(Q){return new G8(Q.toString())}AR.regexpCode=uX0});var DV=F((vR)=>{Object.defineProperty(vR,"__esModule",{value:!0});vR.ValueScope=vR.ValueScopeName=vR.Scope=vR.varKinds=vR.UsedValueState=void 0;var M6=IX();class _R extends Error{constructor(Q){super(`CodeGen: "code" for ${Q} not defined`);this.value=Q.value}}var nZ;(function(Q){Q[Q.Started=0]="Started",Q[Q.Completed=1]="Completed"})(nZ||(vR.UsedValueState=nZ={}));vR.varKinds={const:new M6.Name("const"),let:new M6.Name("let"),var:new M6.Name("var")};class NV{constructor({prefixes:Q,parent:X}={}){this._names={},this._prefixes=Q,this._parent=X}toName(Q){return Q instanceof M6.Name?Q:this.name(Q)}name(Q){return new M6.Name(this._newName(Q))}_newName(Q){let X=this._names[Q]||this._nameGroup(Q);return`${Q}${X.index++}`}_nameGroup(Q){var X,J;if(((J=(X=this._parent)===null||X===void 0?void 0:X._prefixes)===null||J===void 0?void 0:J.has(Q))||this._prefixes&&!this._prefixes.has(Q))throw Error(`CodeGen: prefix "${Q}" is not allowed in this scope`);return this._names[Q]={prefix:Q,index:0}}}vR.Scope=NV;class RV extends M6.Name{constructor(Q,X){super(X);this.prefix=Q}setValue(Q,{property:X,itemIndex:J}){this.value=Q,this.scopePath=M6._`.${new M6.Name(X)}[${J}]`}}vR.ValueScopeName=RV;var eX0=M6._`\n`;class SR extends NV{constructor(Q){super(Q);this._values={},this._scope=Q.scope,this.opts={...Q,_n:Q.lines?eX0:M6.nil}}get(){return this._scope}name(Q){return new RV(Q,this._newName(Q))}value(Q,X){var J;if(X.ref===void 0)throw Error("CodeGen: ref must be passed in value");let Y=this.toName(Q),{prefix:Z}=Y,q=(J=X.key)!==null&&J!==void 0?J:X.ref,$=this._values[Z];if($){let V=$.get(q);if(V)return V}else $=this._values[Z]=new Map;$.set(q,Y);let H=this._scope[Z]||(this._scope[Z]=[]),K=H.length;return H[K]=X.ref,Y.setValue(X,{property:Z,itemIndex:K}),Y}getValue(Q,X){let J=this._values[Q];if(!J)return;return J.get(X)}scopeRefs(Q,X=this._values){return this._reduceValues(X,(J)=>{if(J.scopePath===void 0)throw Error(`CodeGen: name "${J}" has no value`);return M6._`${Q}${J.scopePath}`})}scopeCode(Q=this._values,X,J){return this._reduceValues(Q,(Y)=>{if(Y.value===void 0)throw Error(`CodeGen: name "${Y}" has no value`);return Y.value.code},X,J)}_reduceValues(Q,X,J={},Y){let Z=M6.nil;for(let q in Q){let $=Q[q];if(!$)continue;let H=J[q]=J[q]||new Map;$.forEach((K)=>{if(H.has(K))return;H.set(K,nZ.Started);let V=X(K);if(V){let W=this.opts.es5?vR.varKinds.var:vR.varKinds.const;Z=M6._`${Z}${W} ${K} = ${V};${this.opts._n}`}else if(V=Y===null||Y===void 0?void 0:Y(K))Z=M6._`${Z}${V}${this.opts._n}`;else throw new _R(K);H.set(K,nZ.Completed)})}return Z}}vR.ValueScope=SR});var L0=F((I6)=>{Object.defineProperty(I6,"__esModule",{value:!0});I6.or=I6.and=I6.not=I6.CodeGen=I6.operators=I6.varKinds=I6.ValueScopeName=I6.ValueScope=I6.Scope=I6.Name=I6.regexpCode=I6.stringify=I6.getProperty=I6.nil=I6.strConcat=I6.str=I6._=void 0;var _0=IX(),U8=DV(),m4=IX();Object.defineProperty(I6,"_",{enumerable:!0,get:function(){return m4._}});Object.defineProperty(I6,"str",{enumerable:!0,get:function(){return m4.str}});Object.defineProperty(I6,"strConcat",{enumerable:!0,get:function(){return m4.strConcat}});Object.defineProperty(I6,"nil",{enumerable:!0,get:function(){return m4.nil}});Object.defineProperty(I6,"getProperty",{enumerable:!0,get:function(){return m4.getProperty}});Object.defineProperty(I6,"stringify",{enumerable:!0,get:function(){return m4.stringify}});Object.defineProperty(I6,"regexpCode",{enumerable:!0,get:function(){return m4.regexpCode}});Object.defineProperty(I6,"Name",{enumerable:!0,get:function(){return m4.Name}});var tZ=DV();Object.defineProperty(I6,"Scope",{enumerable:!0,get:function(){return tZ.Scope}});Object.defineProperty(I6,"ValueScope",{enumerable:!0,get:function(){return tZ.ValueScope}});Object.defineProperty(I6,"ValueScopeName",{enumerable:!0,get:function(){return tZ.ValueScopeName}});Object.defineProperty(I6,"varKinds",{enumerable:!0,get:function(){return tZ.varKinds}});I6.operators={GT:new _0._Code(">"),GTE:new _0._Code(">="),LT:new _0._Code("<"),LTE:new _0._Code("<="),EQ:new _0._Code("==="),NEQ:new _0._Code("!=="),NOT:new _0._Code("!"),OR:new _0._Code("||"),AND:new _0._Code("&&"),ADD:new _0._Code("+")};class d4{optimizeNodes(){return this}optimizeNames(Q,X){return this}}class kR extends d4{constructor(Q,X,J){super();this.varKind=Q,this.name=X,this.rhs=J}render({es5:Q,_n:X}){let J=Q?U8.varKinds.var:this.varKind,Y=this.rhs===void 0?"":` = ${this.rhs}`;return`${J} ${this.name}${Y};`+X}optimizeNames(Q,X){if(!Q[this.name.str])return;if(this.rhs)this.rhs=n7(this.rhs,Q,X);return this}get names(){return this.rhs instanceof _0._CodeOrName?this.rhs.names:{}}}class AV extends d4{constructor(Q,X,J){super();this.lhs=Q,this.rhs=X,this.sideEffects=J}render({_n:Q}){return`${this.lhs} = ${this.rhs};`+Q}optimizeNames(Q,X){if(this.lhs instanceof _0.Name&&!Q[this.lhs.str]&&!this.sideEffects)return;return this.rhs=n7(this.rhs,Q,X),this}get names(){let Q=this.lhs instanceof _0.Name?{}:{...this.lhs.names};return aZ(Q,this.rhs)}}class yR extends AV{constructor(Q,X,J,Y){super(Q,J,Y);this.op=X}render({_n:Q}){return`${this.lhs} ${this.op}= ${this.rhs};`+Q}}class hR extends d4{constructor(Q){super();this.label=Q,this.names={}}render({_n:Q}){return`${this.label}:`+Q}}class bR extends d4{constructor(Q){super();this.label=Q,this.names={}}render({_n:Q}){return`break${this.label?` ${this.label}`:""};`+Q}}class fR extends d4{constructor(Q){super();this.error=Q}render({_n:Q}){return`throw ${this.error};`+Q}get names(){return this.error.names}}class gR extends d4{constructor(Q){super();this.code=Q}render({_n:Q}){return`${this.code};`+Q}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(Q,X){return this.code=n7(this.code,Q,X),this}get names(){return this.code instanceof _0._CodeOrName?this.code.names:{}}}class eZ extends d4{constructor(Q=[]){super();this.nodes=Q}render(Q){return this.nodes.reduce((X,J)=>X+J.render(Q),"")}optimizeNodes(){let{nodes:Q}=this,X=Q.length;while(X--){let J=Q[X].optimizeNodes();if(Array.isArray(J))Q.splice(X,1,...J);else if(J)Q[X]=J;else Q.splice(X,1)}return Q.length>0?this:void 0}optimizeNames(Q,X){let{nodes:J}=this,Y=J.length;while(Y--){let Z=J[Y];if(Z.optimizeNames(Q,X))continue;YJ0(Q,Z.names),J.splice(Y,1)}return J.length>0?this:void 0}get names(){return this.nodes.reduce((Q,X)=>v5(Q,X.names),{})}}class c4 extends eZ{render(Q){return"{"+Q._n+super.render(Q)+"}"+Q._n}}class uR extends eZ{}class PX extends c4{}PX.kind="else";class W4 extends c4{constructor(Q,X){super(X);this.condition=Q}render(Q){let X=`if(${this.condition})`+super.render(Q);if(this.else)X+="else "+this.else.render(Q);return X}optimizeNodes(){super.optimizeNodes();let Q=this.condition;if(Q===!0)return this.nodes;let X=this.else;if(X){let J=X.optimizeNodes();X=this.else=Array.isArray(J)?new PX(J):J}if(X){if(Q===!1)return X instanceof W4?X:X.nodes;if(this.nodes.length)return this;return new W4(pR(Q),X instanceof W4?[X]:X.nodes)}if(Q===!1||!this.nodes.length)return;return this}optimizeNames(Q,X){var J;if(this.else=(J=this.else)===null||J===void 0?void 0:J.optimizeNames(Q,X),!(super.optimizeNames(Q,X)||this.else))return;return this.condition=n7(this.condition,Q,X),this}get names(){let Q=super.names;if(aZ(Q,this.condition),this.else)v5(Q,this.else.names);return Q}}W4.kind="if";class p7 extends c4{}p7.kind="for";class mR extends p7{constructor(Q){super();this.iteration=Q}render(Q){return`for(${this.iteration})`+super.render(Q)}optimizeNames(Q,X){if(!super.optimizeNames(Q,X))return;return this.iteration=n7(this.iteration,Q,X),this}get names(){return v5(super.names,this.iteration.names)}}class dR extends p7{constructor(Q,X,J,Y){super();this.varKind=Q,this.name=X,this.from=J,this.to=Y}render(Q){let X=Q.es5?U8.varKinds.var:this.varKind,{name:J,from:Y,to:Z}=this;return`for(${X} ${J}=${Y}; ${J}<${Z}; ${J}++)`+super.render(Q)}get names(){let Q=aZ(super.names,this.from);return aZ(Q,this.to)}}class wV extends p7{constructor(Q,X,J,Y){super();this.loop=Q,this.varKind=X,this.name=J,this.iterable=Y}render(Q){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(Q)}optimizeNames(Q,X){if(!super.optimizeNames(Q,X))return;return this.iterable=n7(this.iterable,Q,X),this}get names(){return v5(super.names,this.iterable.names)}}class iZ extends c4{constructor(Q,X,J){super();this.name=Q,this.args=X,this.async=J}render(Q){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(Q)}}iZ.kind="func";class oZ extends eZ{render(Q){return"return "+super.render(Q)}}oZ.kind="return";class cR extends c4{render(Q){let X="try"+super.render(Q);if(this.catch)X+=this.catch.render(Q);if(this.finally)X+=this.finally.render(Q);return X}optimizeNodes(){var Q,X;return super.optimizeNodes(),(Q=this.catch)===null||Q===void 0||Q.optimizeNodes(),(X=this.finally)===null||X===void 0||X.optimizeNodes(),this}optimizeNames(Q,X){var J,Y;return super.optimizeNames(Q,X),(J=this.catch)===null||J===void 0||J.optimizeNames(Q,X),(Y=this.finally)===null||Y===void 0||Y.optimizeNames(Q,X),this}get names(){let Q=super.names;if(this.catch)v5(Q,this.catch.names);if(this.finally)v5(Q,this.finally.names);return Q}}class rZ extends c4{constructor(Q){super();this.error=Q}render(Q){return`catch(${this.error})`+super.render(Q)}}rZ.kind="catch";class sZ extends c4{render(Q){return"finally"+super.render(Q)}}sZ.kind="finally";class lR{constructor(Q,X={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...X,_n:X.lines?`
16
+ `:""},this._extScope=Q,this._scope=new U8.Scope({parent:Q}),this._nodes=[new uR]}toString(){return this._root.render(this.opts)}name(Q){return this._scope.name(Q)}scopeName(Q){return this._extScope.name(Q)}scopeValue(Q,X){let J=this._extScope.value(Q,X);return(this._values[J.prefix]||(this._values[J.prefix]=new Set)).add(J),J}getScopeValue(Q,X){return this._extScope.getValue(Q,X)}scopeRefs(Q){return this._extScope.scopeRefs(Q,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(Q,X,J,Y){let Z=this._scope.toName(X);if(J!==void 0&&Y)this._constants[Z.str]=J;return this._leafNode(new kR(Q,Z,J)),Z}const(Q,X,J){return this._def(U8.varKinds.const,Q,X,J)}let(Q,X,J){return this._def(U8.varKinds.let,Q,X,J)}var(Q,X,J){return this._def(U8.varKinds.var,Q,X,J)}assign(Q,X,J){return this._leafNode(new AV(Q,X,J))}add(Q,X){return this._leafNode(new yR(Q,I6.operators.ADD,X))}code(Q){if(typeof Q=="function")Q();else if(Q!==_0.nil)this._leafNode(new gR(Q));return this}object(...Q){let X=["{"];for(let[J,Y]of Q){if(X.length>1)X.push(",");if(X.push(J),J!==Y||this.opts.es5)X.push(":"),(0,_0.addCodeArg)(X,Y)}return X.push("}"),new _0._Code(X)}if(Q,X,J){if(this._blockNode(new W4(Q)),X&&J)this.code(X).else().code(J).endIf();else if(X)this.code(X).endIf();else if(J)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(Q){return this._elseNode(new W4(Q))}else(){return this._elseNode(new PX)}endIf(){return this._endBlockNode(W4,PX)}_for(Q,X){if(this._blockNode(Q),X)this.code(X).endFor();return this}for(Q,X){return this._for(new mR(Q),X)}forRange(Q,X,J,Y,Z=this.opts.es5?U8.varKinds.var:U8.varKinds.let){let q=this._scope.toName(Q);return this._for(new dR(Z,q,X,J),()=>Y(q))}forOf(Q,X,J,Y=U8.varKinds.const){let Z=this._scope.toName(Q);if(this.opts.es5){let q=X instanceof _0.Name?X:this.var("_arr",X);return this.forRange("_i",0,_0._`${q}.length`,($)=>{this.var(Z,_0._`${q}[${$}]`),J(Z)})}return this._for(new wV("of",Y,Z,X),()=>J(Z))}forIn(Q,X,J,Y=this.opts.es5?U8.varKinds.var:U8.varKinds.const){if(this.opts.ownProperties)return this.forOf(Q,_0._`Object.keys(${X})`,J);let Z=this._scope.toName(Q);return this._for(new wV("in",Y,Z,X),()=>J(Z))}endFor(){return this._endBlockNode(p7)}label(Q){return this._leafNode(new hR(Q))}break(Q){return this._leafNode(new bR(Q))}return(Q){let X=new oZ;if(this._blockNode(X),this.code(Q),X.nodes.length!==1)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(oZ)}try(Q,X,J){if(!X&&!J)throw Error('CodeGen: "try" without "catch" and "finally"');let Y=new cR;if(this._blockNode(Y),this.code(Q),X){let Z=this.name("e");this._currNode=Y.catch=new rZ(Z),X(Z)}if(J)this._currNode=Y.finally=new sZ,this.code(J);return this._endBlockNode(rZ,sZ)}throw(Q){return this._leafNode(new fR(Q))}block(Q,X){if(this._blockStarts.push(this._nodes.length),Q)this.code(Q).endBlock(X);return this}endBlock(Q){let X=this._blockStarts.pop();if(X===void 0)throw Error("CodeGen: not in self-balancing block");let J=this._nodes.length-X;if(J<0||Q!==void 0&&J!==Q)throw Error(`CodeGen: wrong number of nodes: ${J} vs ${Q} expected`);return this._nodes.length=X,this}func(Q,X=_0.nil,J,Y){if(this._blockNode(new iZ(Q,X,J)),Y)this.code(Y).endFunc();return this}endFunc(){return this._endBlockNode(iZ)}optimize(Q=1){while(Q-- >0)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(Q){return this._currNode.nodes.push(Q),this}_blockNode(Q){this._currNode.nodes.push(Q),this._nodes.push(Q)}_endBlockNode(Q,X){let J=this._currNode;if(J instanceof Q||X&&J instanceof X)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${X?`${Q.kind}/${X.kind}`:Q.kind}"`)}_elseNode(Q){let X=this._currNode;if(!(X instanceof W4))throw Error('CodeGen: "else" without "if"');return this._currNode=X.else=Q,this}get _root(){return this._nodes[0]}get _currNode(){let Q=this._nodes;return Q[Q.length-1]}set _currNode(Q){let X=this._nodes;X[X.length-1]=Q}}I6.CodeGen=lR;function v5(Q,X){for(let J in X)Q[J]=(Q[J]||0)+(X[J]||0);return Q}function aZ(Q,X){return X instanceof _0._CodeOrName?v5(Q,X.names):Q}function n7(Q,X,J){if(Q instanceof _0.Name)return Y(Q);if(!Z(Q))return Q;return new _0._Code(Q._items.reduce((q,$)=>{if($ instanceof _0.Name)$=Y($);if($ instanceof _0._Code)q.push(...$._items);else q.push($);return q},[]));function Y(q){let $=J[q.str];if($===void 0||X[q.str]!==1)return q;return delete X[q.str],$}function Z(q){return q instanceof _0._Code&&q._items.some(($)=>$ instanceof _0.Name&&X[$.str]===1&&J[$.str]!==void 0)}}function YJ0(Q,X){for(let J in X)Q[J]=(Q[J]||0)-(X[J]||0)}function pR(Q){return typeof Q=="boolean"||typeof Q=="number"||Q===null?!Q:_0._`!${TV(Q)}`}I6.not=pR;var ZJ0=nR(I6.operators.AND);function qJ0(...Q){return Q.reduce(ZJ0)}I6.and=qJ0;var $J0=nR(I6.operators.OR);function HJ0(...Q){return Q.reduce($J0)}I6.or=HJ0;function nR(Q){return(X,J)=>X===_0.nil?J:J===_0.nil?X:_0._`${TV(X)} ${Q} ${TV(J)}`}function TV(Q){return Q instanceof _0.Name?Q:_0._`(${Q})`}});var R0=F((XD)=>{Object.defineProperty(XD,"__esModule",{value:!0});XD.checkStrictMode=XD.getErrorPath=XD.Type=XD.useFunc=XD.setEvaluated=XD.evaluatedPropsToName=XD.mergeEvaluated=XD.eachItem=XD.unescapeJsonPointer=XD.escapeJsonPointer=XD.escapeFragment=XD.unescapeFragment=XD.schemaRefOrVal=XD.schemaHasRulesButRef=XD.schemaHasRules=XD.checkUnknownRules=XD.alwaysValidSchema=XD.toHash=void 0;var o0=L0(),GJ0=IX();function UJ0(Q){let X={};for(let J of Q)X[J]=!0;return X}XD.toHash=UJ0;function zJ0(Q,X){if(typeof X=="boolean")return X;if(Object.keys(X).length===0)return!0;return sR(Q,X),!aR(X,Q.self.RULES.all)}XD.alwaysValidSchema=zJ0;function sR(Q,X=Q.schema){let{opts:J,self:Y}=Q;if(!J.strictSchema)return;if(typeof X==="boolean")return;let Z=Y.RULES.keywords;for(let q in X)if(!Z[q])QD(Q,`unknown keyword: "${q}"`)}XD.checkUnknownRules=sR;function aR(Q,X){if(typeof Q=="boolean")return!Q;for(let J in Q)if(X[J])return!0;return!1}XD.schemaHasRules=aR;function BJ0(Q,X){if(typeof Q=="boolean")return!Q;for(let J in Q)if(J!=="$ref"&&X.all[J])return!0;return!1}XD.schemaHasRulesButRef=BJ0;function LJ0({topSchemaRef:Q,schemaPath:X},J,Y,Z){if(!Z){if(typeof J=="number"||typeof J=="boolean")return J;if(typeof J=="string")return o0._`${J}`}return o0._`${Q}${X}${(0,o0.getProperty)(Y)}`}XD.schemaRefOrVal=LJ0;function FJ0(Q){return tR(decodeURIComponent(Q))}XD.unescapeFragment=FJ0;function MJ0(Q){return encodeURIComponent(_V(Q))}XD.escapeFragment=MJ0;function _V(Q){if(typeof Q=="number")return`${Q}`;return Q.replace(/~/g,"~0").replace(/\//g,"~1")}XD.escapeJsonPointer=_V;function tR(Q){return Q.replace(/~1/g,"/").replace(/~0/g,"~")}XD.unescapeJsonPointer=tR;function IJ0(Q,X){if(Array.isArray(Q))for(let J of Q)X(J);else X(Q)}XD.eachItem=IJ0;function oR({mergeNames:Q,mergeToName:X,mergeValues:J,resultToName:Y}){return(Z,q,$,H)=>{let K=$===void 0?q:$ instanceof o0.Name?(q instanceof o0.Name?Q(Z,q,$):X(Z,q,$),$):q instanceof o0.Name?(X(Z,$,q),q):J(q,$);return H===o0.Name&&!(K instanceof o0.Name)?Y(Z,K):K}}XD.mergeEvaluated={props:oR({mergeNames:(Q,X,J)=>Q.if(o0._`${J} !== true && ${X} !== undefined`,()=>{Q.if(o0._`${X} === true`,()=>Q.assign(J,!0),()=>Q.assign(J,o0._`${J} || {}`).code(o0._`Object.assign(${J}, ${X})`))}),mergeToName:(Q,X,J)=>Q.if(o0._`${J} !== true`,()=>{if(X===!0)Q.assign(J,!0);else Q.assign(J,o0._`${J} || {}`),SV(Q,J,X)}),mergeValues:(Q,X)=>Q===!0?!0:{...Q,...X},resultToName:eR}),items:oR({mergeNames:(Q,X,J)=>Q.if(o0._`${J} !== true && ${X} !== undefined`,()=>Q.assign(J,o0._`${X} === true ? true : ${J} > ${X} ? ${J} : ${X}`)),mergeToName:(Q,X,J)=>Q.if(o0._`${J} !== true`,()=>Q.assign(J,X===!0?!0:o0._`${J} > ${X} ? ${J} : ${X}`)),mergeValues:(Q,X)=>Q===!0?!0:Math.max(Q,X),resultToName:(Q,X)=>Q.var("items",X)})};function eR(Q,X){if(X===!0)return Q.var("props",!0);let J=Q.var("props",o0._`{}`);if(X!==void 0)SV(Q,J,X);return J}XD.evaluatedPropsToName=eR;function SV(Q,X,J){Object.keys(J).forEach((Y)=>Q.assign(o0._`${X}${(0,o0.getProperty)(Y)}`,!0))}XD.setEvaluated=SV;var rR={};function PJ0(Q,X){return Q.scopeValue("func",{ref:X,code:rR[X.code]||(rR[X.code]=new GJ0._Code(X.code))})}XD.useFunc=PJ0;var EV;(function(Q){Q[Q.Num=0]="Num",Q[Q.Str=1]="Str"})(EV||(XD.Type=EV={}));function CJ0(Q,X,J){if(Q instanceof o0.Name){let Y=X===EV.Num;return J?Y?o0._`"[" + ${Q} + "]"`:o0._`"['" + ${Q} + "']"`:Y?o0._`"/" + ${Q}`:o0._`"/" + ${Q}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return J?(0,o0.getProperty)(Q).toString():"/"+_V(Q)}XD.getErrorPath=CJ0;function QD(Q,X,J=Q.opts.strictSchema){if(!J)return;if(X=`strict mode: ${X}`,J===!0)throw Error(X);Q.self.logger.warn(X)}XD.checkStrictMode=QD});var p6=F((YD)=>{Object.defineProperty(YD,"__esModule",{value:!0});var s1=L0(),fJ0={data:new s1.Name("data"),valCxt:new s1.Name("valCxt"),instancePath:new s1.Name("instancePath"),parentData:new s1.Name("parentData"),parentDataProperty:new s1.Name("parentDataProperty"),rootData:new s1.Name("rootData"),dynamicAnchors:new s1.Name("dynamicAnchors"),vErrors:new s1.Name("vErrors"),errors:new s1.Name("errors"),this:new s1.Name("this"),self:new s1.Name("self"),scope:new s1.Name("scope"),json:new s1.Name("json"),jsonPos:new s1.Name("jsonPos"),jsonLen:new s1.Name("jsonLen"),jsonPart:new s1.Name("jsonPart")};YD.default=fJ0});var CX=F((HD)=>{Object.defineProperty(HD,"__esModule",{value:!0});HD.extendErrors=HD.resetErrorsCount=HD.reportExtraError=HD.reportError=HD.keyword$DataError=HD.keywordError=void 0;var x0=L0(),Xq=R0(),H6=p6();HD.keywordError={message:({keyword:Q})=>x0.str`must pass "${Q}" keyword validation`};HD.keyword$DataError={message:({keyword:Q,schemaType:X})=>X?x0.str`"${Q}" keyword must be ${X} ($data)`:x0.str`"${Q}" keyword is invalid ($data)`};function uJ0(Q,X=HD.keywordError,J,Y){let{it:Z}=Q,{gen:q,compositeRule:$,allErrors:H}=Z,K=$D(Q,X,J);if(Y!==null&&Y!==void 0?Y:$||H)ZD(q,K);else qD(Z,x0._`[${K}]`)}HD.reportError=uJ0;function mJ0(Q,X=HD.keywordError,J){let{it:Y}=Q,{gen:Z,compositeRule:q,allErrors:$}=Y,H=$D(Q,X,J);if(ZD(Z,H),!(q||$))qD(Y,H6.default.vErrors)}HD.reportExtraError=mJ0;function dJ0(Q,X){Q.assign(H6.default.errors,X),Q.if(x0._`${H6.default.vErrors} !== null`,()=>Q.if(X,()=>Q.assign(x0._`${H6.default.vErrors}.length`,X),()=>Q.assign(H6.default.vErrors,null)))}HD.resetErrorsCount=dJ0;function cJ0({gen:Q,keyword:X,schemaValue:J,data:Y,errsCount:Z,it:q}){if(Z===void 0)throw Error("ajv implementation error");let $=Q.name("err");Q.forRange("i",Z,H6.default.errors,(H)=>{if(Q.const($,x0._`${H6.default.vErrors}[${H}]`),Q.if(x0._`${$}.instancePath === undefined`,()=>Q.assign(x0._`${$}.instancePath`,(0,x0.strConcat)(H6.default.instancePath,q.errorPath))),Q.assign(x0._`${$}.schemaPath`,x0.str`${q.errSchemaPath}/${X}`),q.opts.verbose)Q.assign(x0._`${$}.schema`,J),Q.assign(x0._`${$}.data`,Y)})}HD.extendErrors=cJ0;function ZD(Q,X){let J=Q.const("err",X);Q.if(x0._`${H6.default.vErrors} === null`,()=>Q.assign(H6.default.vErrors,x0._`[${J}]`),x0._`${H6.default.vErrors}.push(${J})`),Q.code(x0._`${H6.default.errors}++`)}function qD(Q,X){let{gen:J,validateName:Y,schemaEnv:Z}=Q;if(Z.$async)J.throw(x0._`new ${Q.ValidationError}(${X})`);else J.assign(x0._`${Y}.errors`,X),J.return(!1)}var x5={keyword:new x0.Name("keyword"),schemaPath:new x0.Name("schemaPath"),params:new x0.Name("params"),propertyName:new x0.Name("propertyName"),message:new x0.Name("message"),schema:new x0.Name("schema"),parentSchema:new x0.Name("parentSchema")};function $D(Q,X,J){let{createErrors:Y}=Q.it;if(Y===!1)return x0._`{}`;return lJ0(Q,X,J)}function lJ0(Q,X,J={}){let{gen:Y,it:Z}=Q,q=[pJ0(Z,J),nJ0(Q,J)];return iJ0(Q,X,q),Y.object(...q)}function pJ0({errorPath:Q},{instancePath:X}){let J=X?x0.str`${Q}${(0,Xq.getErrorPath)(X,Xq.Type.Str)}`:Q;return[H6.default.instancePath,(0,x0.strConcat)(H6.default.instancePath,J)]}function nJ0({keyword:Q,it:{errSchemaPath:X}},{schemaPath:J,parentSchema:Y}){let Z=Y?X:x0.str`${X}/${Q}`;if(J)Z=x0.str`${Z}${(0,Xq.getErrorPath)(J,Xq.Type.Str)}`;return[x5.schemaPath,Z]}function iJ0(Q,{params:X,message:J},Y){let{keyword:Z,data:q,schemaValue:$,it:H}=Q,{opts:K,propertyName:V,topSchemaRef:W,schemaPath:G}=H;if(Y.push([x5.keyword,Z],[x5.params,typeof X=="function"?X(Q):X||x0._`{}`]),K.messages)Y.push([x5.message,typeof J=="function"?J(Q):J]);if(K.verbose)Y.push([x5.schema,$],[x5.parentSchema,x0._`${W}${G}`],[H6.default.data,q]);if(V)Y.push([x5.propertyName,V])}});var UD=F((VD)=>{Object.defineProperty(VD,"__esModule",{value:!0});VD.boolOrEmptySchema=VD.topBoolOrEmptySchema=void 0;var tJ0=CX(),eJ0=L0(),QY0=p6(),XY0={message:"boolean schema is false"};function JY0(Q){let{gen:X,schema:J,validateName:Y}=Q;if(J===!1)WD(Q,!1);else if(typeof J=="object"&&J.$async===!0)X.return(QY0.default.data);else X.assign(eJ0._`${Y}.errors`,null),X.return(!0)}VD.topBoolOrEmptySchema=JY0;function YY0(Q,X){let{gen:J,schema:Y}=Q;if(Y===!1)J.var(X,!1),WD(Q);else J.var(X,!0)}VD.boolOrEmptySchema=YY0;function WD(Q,X){let{gen:J,data:Y}=Q,Z={gen:J,keyword:"false schema",data:Y,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:Q};(0,tJ0.reportError)(Z,XY0,void 0,X)}});var xV=F((zD)=>{Object.defineProperty(zD,"__esModule",{value:!0});zD.getRules=zD.isJSONType=void 0;var qY0=["string","number","integer","boolean","null","object","array"],$Y0=new Set(qY0);function HY0(Q){return typeof Q=="string"&&$Y0.has(Q)}zD.isJSONType=HY0;function KY0(){let Q={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...Q,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},Q.number,Q.string,Q.array,Q.object],post:{rules:[]},all:{},keywords:{}}}zD.getRules=KY0});var kV=F((MD)=>{Object.defineProperty(MD,"__esModule",{value:!0});MD.shouldUseRule=MD.shouldUseGroup=MD.schemaHasRulesForType=void 0;function VY0({schema:Q,self:X},J){let Y=X.RULES.types[J];return Y&&Y!==!0&&LD(Q,Y)}MD.schemaHasRulesForType=VY0;function LD(Q,X){return X.rules.some((J)=>FD(Q,J))}MD.shouldUseGroup=LD;function FD(Q,X){var J;return Q[X.keyword]!==void 0||((J=X.definition.implements)===null||J===void 0?void 0:J.some((Y)=>Q[Y]!==void 0))}MD.shouldUseRule=FD});var OX=F((jD)=>{Object.defineProperty(jD,"__esModule",{value:!0});jD.reportTypeError=jD.checkDataTypes=jD.checkDataType=jD.coerceAndCheckDataType=jD.getJSONTypes=jD.getSchemaTypes=jD.DataType=void 0;var zY0=xV(),BY0=kV(),LY0=CX(),C0=L0(),PD=R0(),i7;(function(Q){Q[Q.Correct=0]="Correct",Q[Q.Wrong=1]="Wrong"})(i7||(jD.DataType=i7={}));function FY0(Q){let X=CD(Q.type);if(X.includes("null")){if(Q.nullable===!1)throw Error("type: null contradicts nullable: false")}else{if(!X.length&&Q.nullable!==void 0)throw Error('"nullable" cannot be used without "type"');if(Q.nullable===!0)X.push("null")}return X}jD.getSchemaTypes=FY0;function CD(Q){let X=Array.isArray(Q)?Q:Q?[Q]:[];if(X.every(zY0.isJSONType))return X;throw Error("type must be JSONType or JSONType[]: "+X.join(","))}jD.getJSONTypes=CD;function MY0(Q,X){let{gen:J,data:Y,opts:Z}=Q,q=IY0(X,Z.coerceTypes),$=X.length>0&&!(q.length===0&&X.length===1&&(0,BY0.schemaHasRulesForType)(Q,X[0]));if($){let H=hV(X,Y,Z.strictNumbers,i7.Wrong);J.if(H,()=>{if(q.length)PY0(Q,X,q);else bV(Q)})}return $}jD.coerceAndCheckDataType=MY0;var OD=new Set(["string","number","integer","boolean","null"]);function IY0(Q,X){return X?Q.filter((J)=>OD.has(J)||X==="array"&&J==="array"):[]}function PY0(Q,X,J){let{gen:Y,data:Z,opts:q}=Q,$=Y.let("dataType",C0._`typeof ${Z}`),H=Y.let("coerced",C0._`undefined`);if(q.coerceTypes==="array")Y.if(C0._`${$} == 'object' && Array.isArray(${Z}) && ${Z}.length == 1`,()=>Y.assign(Z,C0._`${Z}[0]`).assign($,C0._`typeof ${Z}`).if(hV(X,Z,q.strictNumbers),()=>Y.assign(H,Z)));Y.if(C0._`${H} !== undefined`);for(let V of J)if(OD.has(V)||V==="array"&&q.coerceTypes==="array")K(V);Y.else(),bV(Q),Y.endIf(),Y.if(C0._`${H} !== undefined`,()=>{Y.assign(Z,H),CY0(Q,H)});function K(V){switch(V){case"string":Y.elseIf(C0._`${$} == "number" || ${$} == "boolean"`).assign(H,C0._`"" + ${Z}`).elseIf(C0._`${Z} === null`).assign(H,C0._`""`);return;case"number":Y.elseIf(C0._`${$} == "boolean" || ${Z} === null
17
+ || (${$} == "string" && ${Z} && ${Z} == +${Z})`).assign(H,C0._`+${Z}`);return;case"integer":Y.elseIf(C0._`${$} === "boolean" || ${Z} === null
18
+ || (${$} === "string" && ${Z} && ${Z} == +${Z} && !(${Z} % 1))`).assign(H,C0._`+${Z}`);return;case"boolean":Y.elseIf(C0._`${Z} === "false" || ${Z} === 0 || ${Z} === null`).assign(H,!1).elseIf(C0._`${Z} === "true" || ${Z} === 1`).assign(H,!0);return;case"null":Y.elseIf(C0._`${Z} === "" || ${Z} === 0 || ${Z} === false`),Y.assign(H,null);return;case"array":Y.elseIf(C0._`${$} === "string" || ${$} === "number"
19
+ || ${$} === "boolean" || ${Z} === null`).assign(H,C0._`[${Z}]`)}}}function CY0({gen:Q,parentData:X,parentDataProperty:J},Y){Q.if(C0._`${X} !== undefined`,()=>Q.assign(C0._`${X}[${J}]`,Y))}function yV(Q,X,J,Y=i7.Correct){let Z=Y===i7.Correct?C0.operators.EQ:C0.operators.NEQ,q;switch(Q){case"null":return C0._`${X} ${Z} null`;case"array":q=C0._`Array.isArray(${X})`;break;case"object":q=C0._`${X} && typeof ${X} == "object" && !Array.isArray(${X})`;break;case"integer":q=$(C0._`!(${X} % 1) && !isNaN(${X})`);break;case"number":q=$();break;default:return C0._`typeof ${X} ${Z} ${Q}`}return Y===i7.Correct?q:(0,C0.not)(q);function $(H=C0.nil){return(0,C0.and)(C0._`typeof ${X} == "number"`,H,J?C0._`isFinite(${X})`:C0.nil)}}jD.checkDataType=yV;function hV(Q,X,J,Y){if(Q.length===1)return yV(Q[0],X,J,Y);let Z,q=(0,PD.toHash)(Q);if(q.array&&q.object){let $=C0._`typeof ${X} != "object"`;Z=q.null?$:C0._`!${X} || ${$}`,delete q.null,delete q.array,delete q.object}else Z=C0.nil;if(q.number)delete q.integer;for(let $ in q)Z=(0,C0.and)(Z,yV($,X,J,Y));return Z}jD.checkDataTypes=hV;var OY0={message:({schema:Q})=>`must be ${Q}`,params:({schema:Q,schemaValue:X})=>typeof Q=="string"?C0._`{type: ${Q}}`:C0._`{type: ${X}}`};function bV(Q){let X=jY0(Q);(0,LY0.reportError)(X,OY0)}jD.reportTypeError=bV;function jY0(Q){let{gen:X,data:J,schema:Y}=Q,Z=(0,PD.schemaRefOrVal)(Q,Y,"type");return{gen:X,keyword:"type",data:J,schema:Y.type,schemaCode:Z,schemaValue:Z,parentSchema:Y,params:{},it:Q}}});var TD=F((DD)=>{Object.defineProperty(DD,"__esModule",{value:!0});DD.assignDefaults=void 0;var o7=L0(),EY0=R0();function _Y0(Q,X){let{properties:J,items:Y}=Q.schema;if(X==="object"&&J)for(let Z in J)RD(Q,Z,J[Z].default);else if(X==="array"&&Array.isArray(Y))Y.forEach((Z,q)=>RD(Q,q,Z.default))}DD.assignDefaults=_Y0;function RD(Q,X,J){let{gen:Y,compositeRule:Z,data:q,opts:$}=Q;if(J===void 0)return;let H=o7._`${q}${(0,o7.getProperty)(X)}`;if(Z){(0,EY0.checkStrictMode)(Q,`default is ignored for: ${H}`);return}let K=o7._`${H} === undefined`;if($.useDefaults==="empty")K=o7._`${K} || ${H} === null || ${H} === ""`;Y.if(K,o7._`${H} = ${(0,o7.stringify)(J)}`)}});var n6=F((_D)=>{Object.defineProperty(_D,"__esModule",{value:!0});_D.validateUnion=_D.validateArray=_D.usePattern=_D.callValidateCode=_D.schemaProperties=_D.allSchemaProperties=_D.noPropertyInData=_D.propertyInData=_D.isOwnProperty=_D.hasPropFunc=_D.reportMissingProp=_D.checkMissingProp=_D.checkReportMissingProp=void 0;var a0=L0(),fV=R0(),l4=p6(),SY0=R0();function vY0(Q,X){let{gen:J,data:Y,it:Z}=Q;J.if(uV(J,Y,X,Z.opts.ownProperties),()=>{Q.setParams({missingProperty:a0._`${X}`},!0),Q.error()})}_D.checkReportMissingProp=vY0;function xY0({gen:Q,data:X,it:{opts:J}},Y,Z){return(0,a0.or)(...Y.map((q)=>(0,a0.and)(uV(Q,X,q,J.ownProperties),a0._`${Z} = ${q}`)))}_D.checkMissingProp=xY0;function kY0(Q,X){Q.setParams({missingProperty:X},!0),Q.error()}_D.reportMissingProp=kY0;function AD(Q){return Q.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:a0._`Object.prototype.hasOwnProperty`})}_D.hasPropFunc=AD;function gV(Q,X,J){return a0._`${AD(Q)}.call(${X}, ${J})`}_D.isOwnProperty=gV;function yY0(Q,X,J,Y){let Z=a0._`${X}${(0,a0.getProperty)(J)} !== undefined`;return Y?a0._`${Z} && ${gV(Q,X,J)}`:Z}_D.propertyInData=yY0;function uV(Q,X,J,Y){let Z=a0._`${X}${(0,a0.getProperty)(J)} === undefined`;return Y?(0,a0.or)(Z,(0,a0.not)(gV(Q,X,J))):Z}_D.noPropertyInData=uV;function ED(Q){return Q?Object.keys(Q).filter((X)=>X!=="__proto__"):[]}_D.allSchemaProperties=ED;function hY0(Q,X){return ED(X).filter((J)=>!(0,fV.alwaysValidSchema)(Q,X[J]))}_D.schemaProperties=hY0;function bY0({schemaCode:Q,data:X,it:{gen:J,topSchemaRef:Y,schemaPath:Z,errorPath:q},it:$},H,K,V){let W=V?a0._`${Q}, ${X}, ${Y}${Z}`:X,G=[[l4.default.instancePath,(0,a0.strConcat)(l4.default.instancePath,q)],[l4.default.parentData,$.parentData],[l4.default.parentDataProperty,$.parentDataProperty],[l4.default.rootData,l4.default.rootData]];if($.opts.dynamicRef)G.push([l4.default.dynamicAnchors,l4.default.dynamicAnchors]);let U=a0._`${W}, ${J.object(...G)}`;return K!==a0.nil?a0._`${H}.call(${K}, ${U})`:a0._`${H}(${U})`}_D.callValidateCode=bY0;var fY0=a0._`new RegExp`;function gY0({gen:Q,it:{opts:X}},J){let Y=X.unicodeRegExp?"u":"",{regExp:Z}=X.code,q=Z(J,Y);return Q.scopeValue("pattern",{key:q.toString(),ref:q,code:a0._`${Z.code==="new RegExp"?fY0:(0,SY0.useFunc)(Q,Z)}(${J}, ${Y})`})}_D.usePattern=gY0;function uY0(Q){let{gen:X,data:J,keyword:Y,it:Z}=Q,q=X.name("valid");if(Z.allErrors){let H=X.let("valid",!0);return $(()=>X.assign(H,!1)),H}return X.var(q,!0),$(()=>X.break()),q;function $(H){let K=X.const("len",a0._`${J}.length`);X.forRange("i",0,K,(V)=>{Q.subschema({keyword:Y,dataProp:V,dataPropType:fV.Type.Num},q),X.if((0,a0.not)(q),H)})}}_D.validateArray=uY0;function mY0(Q){let{gen:X,schema:J,keyword:Y,it:Z}=Q;if(!Array.isArray(J))throw Error("ajv implementation error");if(J.some((K)=>(0,fV.alwaysValidSchema)(Z,K))&&!Z.opts.unevaluated)return;let $=X.let("valid",!1),H=X.name("_valid");X.block(()=>J.forEach((K,V)=>{let W=Q.subschema({keyword:Y,schemaProp:V,compositeRule:!0},H);if(X.assign($,a0._`${$} || ${H}`),!Q.mergeValidEvaluated(W,H))X.if((0,a0.not)($))})),Q.result($,()=>Q.reset(),()=>Q.error(!0))}_D.validateUnion=mY0});var hD=F((kD)=>{Object.defineProperty(kD,"__esModule",{value:!0});kD.validateKeywordUsage=kD.validSchemaType=kD.funcKeywordCode=kD.macroKeywordCode=void 0;var K6=L0(),k5=p6(),QZ0=n6(),XZ0=CX();function JZ0(Q,X){let{gen:J,keyword:Y,schema:Z,parentSchema:q,it:$}=Q,H=X.macro.call($.self,Z,q,$),K=xD(J,Y,H);if($.opts.validateSchema!==!1)$.self.validateSchema(H,!0);let V=J.name("valid");Q.subschema({schema:H,schemaPath:K6.nil,errSchemaPath:`${$.errSchemaPath}/${Y}`,topSchemaRef:K,compositeRule:!0},V),Q.pass(V,()=>Q.error(!0))}kD.macroKeywordCode=JZ0;function YZ0(Q,X){var J;let{gen:Y,keyword:Z,schema:q,parentSchema:$,$data:H,it:K}=Q;qZ0(K,X);let V=!H&&X.compile?X.compile.call(K.self,q,$,K):X.validate,W=xD(Y,Z,V),G=Y.let("valid");Q.block$data(G,U),Q.ok((J=X.valid)!==null&&J!==void 0?J:G);function U(){if(X.errors===!1){if(B(),X.modifying)vD(Q);M(()=>Q.error())}else{let I=X.async?z():L();if(X.modifying)vD(Q);M(()=>ZZ0(Q,I))}}function z(){let I=Y.let("ruleErrs",null);return Y.try(()=>B(K6._`await `),(j)=>Y.assign(G,!1).if(K6._`${j} instanceof ${K.ValidationError}`,()=>Y.assign(I,K6._`${j}.errors`),()=>Y.throw(j))),I}function L(){let I=K6._`${W}.errors`;return Y.assign(I,null),B(K6.nil),I}function B(I=X.async?K6._`await `:K6.nil){let j=K.opts.passContext?k5.default.this:k5.default.self,D=!(("compile"in X)&&!H||X.schema===!1);Y.assign(G,K6._`${I}${(0,QZ0.callValidateCode)(Q,W,j,D)}`,X.modifying)}function M(I){var j;Y.if((0,K6.not)((j=X.valid)!==null&&j!==void 0?j:G),I)}}kD.funcKeywordCode=YZ0;function vD(Q){let{gen:X,data:J,it:Y}=Q;X.if(Y.parentData,()=>X.assign(J,K6._`${Y.parentData}[${Y.parentDataProperty}]`))}function ZZ0(Q,X){let{gen:J}=Q;J.if(K6._`Array.isArray(${X})`,()=>{J.assign(k5.default.vErrors,K6._`${k5.default.vErrors} === null ? ${X} : ${k5.default.vErrors}.concat(${X})`).assign(k5.default.errors,K6._`${k5.default.vErrors}.length`),(0,XZ0.extendErrors)(Q)},()=>Q.error())}function qZ0({schemaEnv:Q},X){if(X.async&&!Q.$async)throw Error("async keyword in sync schema")}function xD(Q,X,J){if(J===void 0)throw Error(`keyword "${X}" failed to compile`);return Q.scopeValue("keyword",typeof J=="function"?{ref:J}:{ref:J,code:(0,K6.stringify)(J)})}function $Z0(Q,X,J=!1){return!X.length||X.some((Y)=>Y==="array"?Array.isArray(Q):Y==="object"?Q&&typeof Q=="object"&&!Array.isArray(Q):typeof Q==Y||J&&typeof Q>"u")}kD.validSchemaType=$Z0;function HZ0({schema:Q,opts:X,self:J,errSchemaPath:Y},Z,q){if(Array.isArray(Z.keyword)?!Z.keyword.includes(q):Z.keyword!==q)throw Error("ajv implementation error");let $=Z.dependencies;if($===null||$===void 0?void 0:$.some((H)=>!Object.prototype.hasOwnProperty.call(Q,H)))throw Error(`parent schema must have dependencies of ${q}: ${$.join(",")}`);if(Z.validateSchema){if(!Z.validateSchema(Q[q])){let K=`keyword "${q}" value is invalid at path "${Y}": `+J.errorsText(Z.validateSchema.errors);if(X.validateSchema==="log")J.logger.error(K);else throw Error(K)}}}kD.validateKeywordUsage=HZ0});var uD=F((fD)=>{Object.defineProperty(fD,"__esModule",{value:!0});fD.extendSubschemaMode=fD.extendSubschemaData=fD.getSubschema=void 0;var y8=L0(),bD=R0();function GZ0(Q,{keyword:X,schemaProp:J,schema:Y,schemaPath:Z,errSchemaPath:q,topSchemaRef:$}){if(X!==void 0&&Y!==void 0)throw Error('both "keyword" and "schema" passed, only one allowed');if(X!==void 0){let H=Q.schema[X];return J===void 0?{schema:H,schemaPath:y8._`${Q.schemaPath}${(0,y8.getProperty)(X)}`,errSchemaPath:`${Q.errSchemaPath}/${X}`}:{schema:H[J],schemaPath:y8._`${Q.schemaPath}${(0,y8.getProperty)(X)}${(0,y8.getProperty)(J)}`,errSchemaPath:`${Q.errSchemaPath}/${X}/${(0,bD.escapeFragment)(J)}`}}if(Y!==void 0){if(Z===void 0||q===void 0||$===void 0)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:Y,schemaPath:Z,topSchemaRef:$,errSchemaPath:q}}throw Error('either "keyword" or "schema" must be passed')}fD.getSubschema=GZ0;function UZ0(Q,X,{dataProp:J,dataPropType:Y,data:Z,dataTypes:q,propertyName:$}){if(Z!==void 0&&J!==void 0)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:H}=X;if(J!==void 0){let{errorPath:V,dataPathArr:W,opts:G}=X,U=H.let("data",y8._`${X.data}${(0,y8.getProperty)(J)}`,!0);K(U),Q.errorPath=y8.str`${V}${(0,bD.getErrorPath)(J,Y,G.jsPropertySyntax)}`,Q.parentDataProperty=y8._`${J}`,Q.dataPathArr=[...W,Q.parentDataProperty]}if(Z!==void 0){let V=Z instanceof y8.Name?Z:H.let("data",Z,!0);if(K(V),$!==void 0)Q.propertyName=$}if(q)Q.dataTypes=q;function K(V){Q.data=V,Q.dataLevel=X.dataLevel+1,Q.dataTypes=[],X.definedProperties=new Set,Q.parentData=X.data,Q.dataNames=[...X.dataNames,V]}}fD.extendSubschemaData=UZ0;function zZ0(Q,{jtdDiscriminator:X,jtdMetadata:J,compositeRule:Y,createErrors:Z,allErrors:q}){if(Y!==void 0)Q.compositeRule=Y;if(Z!==void 0)Q.createErrors=Z;if(q!==void 0)Q.allErrors=q;Q.jtdDiscriminator=X,Q.jtdMetadata=J}fD.extendSubschemaMode=zZ0});var mV=F((ca0,mD)=>{mD.exports=function Q(X,J){if(X===J)return!0;if(X&&J&&typeof X=="object"&&typeof J=="object"){if(X.constructor!==J.constructor)return!1;var Y,Z,q;if(Array.isArray(X)){if(Y=X.length,Y!=J.length)return!1;for(Z=Y;Z--!==0;)if(!Q(X[Z],J[Z]))return!1;return!0}if(X.constructor===RegExp)return X.source===J.source&&X.flags===J.flags;if(X.valueOf!==Object.prototype.valueOf)return X.valueOf()===J.valueOf();if(X.toString!==Object.prototype.toString)return X.toString()===J.toString();if(q=Object.keys(X),Y=q.length,Y!==Object.keys(J).length)return!1;for(Z=Y;Z--!==0;)if(!Object.prototype.hasOwnProperty.call(J,q[Z]))return!1;for(Z=Y;Z--!==0;){var $=q[Z];if(!Q(X[$],J[$]))return!1}return!0}return X!==X&&J!==J}});var cD=F((la0,dD)=>{var p4=dD.exports=function(Q,X,J){if(typeof X=="function")J=X,X={};J=X.cb||J;var Y=typeof J=="function"?J:J.pre||function(){},Z=J.post||function(){};Jq(X,Y,Z,Q,"",Q)};p4.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};p4.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};p4.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};p4.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Jq(Q,X,J,Y,Z,q,$,H,K,V){if(Y&&typeof Y=="object"&&!Array.isArray(Y)){X(Y,Z,q,$,H,K,V);for(var W in Y){var G=Y[W];if(Array.isArray(G)){if(W in p4.arrayKeywords)for(var U=0;U<G.length;U++)Jq(Q,X,J,G[U],Z+"/"+W+"/"+U,q,Z,W,Y,U)}else if(W in p4.propsKeywords){if(G&&typeof G=="object")for(var z in G)Jq(Q,X,J,G[z],Z+"/"+W+"/"+FZ0(z),q,Z,W,Y,z)}else if(W in p4.keywords||Q.allKeys&&!(W in p4.skipKeywords))Jq(Q,X,J,G,Z+"/"+W,q,Z,W,Y)}J(Y,Z,q,$,H,K,V)}}function FZ0(Q){return Q.replace(/~/g,"~0").replace(/\//g,"~1")}});var jX=F((iD)=>{Object.defineProperty(iD,"__esModule",{value:!0});iD.getSchemaRefs=iD.resolveUrl=iD.normalizeId=iD._getFullPath=iD.getFullPath=iD.inlineRef=void 0;var MZ0=R0(),IZ0=mV(),PZ0=cD(),CZ0=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function OZ0(Q,X=!0){if(typeof Q=="boolean")return!0;if(X===!0)return!dV(Q);if(!X)return!1;return lD(Q)<=X}iD.inlineRef=OZ0;var jZ0=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function dV(Q){for(let X in Q){if(jZ0.has(X))return!0;let J=Q[X];if(Array.isArray(J)&&J.some(dV))return!0;if(typeof J=="object"&&dV(J))return!0}return!1}function lD(Q){let X=0;for(let J in Q){if(J==="$ref")return 1/0;if(X++,CZ0.has(J))continue;if(typeof Q[J]=="object")(0,MZ0.eachItem)(Q[J],(Y)=>X+=lD(Y));if(X===1/0)return 1/0}return X}function pD(Q,X="",J){if(J!==!1)X=r7(X);let Y=Q.parse(X);return nD(Q,Y)}iD.getFullPath=pD;function nD(Q,X){return Q.serialize(X).split("#")[0]+"#"}iD._getFullPath=nD;var NZ0=/#\/?$/;function r7(Q){return Q?Q.replace(NZ0,""):""}iD.normalizeId=r7;function RZ0(Q,X,J){return J=r7(J),Q.resolve(X,J)}iD.resolveUrl=RZ0;var DZ0=/^[a-z_][-a-z0-9._]*$/i;function wZ0(Q,X){if(typeof Q=="boolean")return{};let{schemaId:J,uriResolver:Y}=this.opts,Z=r7(Q[J]||X),q={"":Z},$=pD(Y,Z,!1),H={},K=new Set;return PZ0(Q,{allKeys:!0},(G,U,z,L)=>{if(L===void 0)return;let B=$+U,M=q[L];if(typeof G[J]=="string")M=I.call(this,G[J]);j.call(this,G.$anchor),j.call(this,G.$dynamicAnchor),q[U]=M;function I(D){let N=this.opts.uriResolver.resolve;if(D=r7(M?N(M,D):D),K.has(D))throw W(D);K.add(D);let k=this.refs[D];if(typeof k=="string")k=this.refs[k];if(typeof k=="object")V(G,k.schema,D);else if(D!==r7(B))if(D[0]==="#")V(G,H[D],D),H[D]=G;else this.refs[D]=B;return D}function j(D){if(typeof D=="string"){if(!DZ0.test(D))throw Error(`invalid anchor "${D}"`);I.call(this,`#${D}`)}}}),H;function V(G,U,z){if(U!==void 0&&!IZ0(G,U))throw W(z)}function W(G){return Error(`reference "${G}" resolves to more than one schema`)}}iD.getSchemaRefs=wZ0});var s7=F((Ww)=>{Object.defineProperty(Ww,"__esModule",{value:!0});Ww.getData=Ww.KeywordCxt=Ww.validateFunctionCode=void 0;var eD=UD(),rD=OX(),lV=kV(),Yq=OX(),vZ0=TD(),RX=hD(),cV=uD(),q0=L0(),B0=p6(),xZ0=jX(),V4=R0(),NX=CX();function kZ0(Q){if(Jw(Q)){if(Yw(Q),Xw(Q)){bZ0(Q);return}}Qw(Q,()=>(0,eD.topBoolOrEmptySchema)(Q))}Ww.validateFunctionCode=kZ0;function Qw({gen:Q,validateName:X,schema:J,schemaEnv:Y,opts:Z},q){if(Z.code.es5)Q.func(X,q0._`${B0.default.data}, ${B0.default.valCxt}`,Y.$async,()=>{Q.code(q0._`"use strict"; ${sD(J,Z)}`),hZ0(Q,Z),Q.code(q)});else Q.func(X,q0._`${B0.default.data}, ${yZ0(Z)}`,Y.$async,()=>Q.code(sD(J,Z)).code(q))}function yZ0(Q){return q0._`{${B0.default.instancePath}="", ${B0.default.parentData}, ${B0.default.parentDataProperty}, ${B0.default.rootData}=${B0.default.data}${Q.dynamicRef?q0._`, ${B0.default.dynamicAnchors}={}`:q0.nil}}={}`}function hZ0(Q,X){Q.if(B0.default.valCxt,()=>{if(Q.var(B0.default.instancePath,q0._`${B0.default.valCxt}.${B0.default.instancePath}`),Q.var(B0.default.parentData,q0._`${B0.default.valCxt}.${B0.default.parentData}`),Q.var(B0.default.parentDataProperty,q0._`${B0.default.valCxt}.${B0.default.parentDataProperty}`),Q.var(B0.default.rootData,q0._`${B0.default.valCxt}.${B0.default.rootData}`),X.dynamicRef)Q.var(B0.default.dynamicAnchors,q0._`${B0.default.valCxt}.${B0.default.dynamicAnchors}`)},()=>{if(Q.var(B0.default.instancePath,q0._`""`),Q.var(B0.default.parentData,q0._`undefined`),Q.var(B0.default.parentDataProperty,q0._`undefined`),Q.var(B0.default.rootData,B0.default.data),X.dynamicRef)Q.var(B0.default.dynamicAnchors,q0._`{}`)})}function bZ0(Q){let{schema:X,opts:J,gen:Y}=Q;Qw(Q,()=>{if(J.$comment&&X.$comment)qw(Q);if(dZ0(Q),Y.let(B0.default.vErrors,null),Y.let(B0.default.errors,0),J.unevaluated)fZ0(Q);Zw(Q),pZ0(Q)});return}function fZ0(Q){let{gen:X,validateName:J}=Q;Q.evaluated=X.const("evaluated",q0._`${J}.evaluated`),X.if(q0._`${Q.evaluated}.dynamicProps`,()=>X.assign(q0._`${Q.evaluated}.props`,q0._`undefined`)),X.if(q0._`${Q.evaluated}.dynamicItems`,()=>X.assign(q0._`${Q.evaluated}.items`,q0._`undefined`))}function sD(Q,X){let J=typeof Q=="object"&&Q[X.schemaId];return J&&(X.code.source||X.code.process)?q0._`/*# sourceURL=${J} */`:q0.nil}function gZ0(Q,X){if(Jw(Q)){if(Yw(Q),Xw(Q)){uZ0(Q,X);return}}(0,eD.boolOrEmptySchema)(Q,X)}function Xw({schema:Q,self:X}){if(typeof Q=="boolean")return!Q;for(let J in Q)if(X.RULES.all[J])return!0;return!1}function Jw(Q){return typeof Q.schema!="boolean"}function uZ0(Q,X){let{schema:J,gen:Y,opts:Z}=Q;if(Z.$comment&&J.$comment)qw(Q);cZ0(Q),lZ0(Q);let q=Y.const("_errs",B0.default.errors);Zw(Q,q),Y.var(X,q0._`${q} === ${B0.default.errors}`)}function Yw(Q){(0,V4.checkUnknownRules)(Q),mZ0(Q)}function Zw(Q,X){if(Q.opts.jtd)return aD(Q,[],!1,X);let J=(0,rD.getSchemaTypes)(Q.schema),Y=(0,rD.coerceAndCheckDataType)(Q,J);aD(Q,J,!Y,X)}function mZ0(Q){let{schema:X,errSchemaPath:J,opts:Y,self:Z}=Q;if(X.$ref&&Y.ignoreKeywordsWithRef&&(0,V4.schemaHasRulesButRef)(X,Z.RULES))Z.logger.warn(`$ref: keywords ignored in schema at path "${J}"`)}function dZ0(Q){let{schema:X,opts:J}=Q;if(X.default!==void 0&&J.useDefaults&&J.strictSchema)(0,V4.checkStrictMode)(Q,"default is ignored in the schema root")}function cZ0(Q){let X=Q.schema[Q.opts.schemaId];if(X)Q.baseId=(0,xZ0.resolveUrl)(Q.opts.uriResolver,Q.baseId,X)}function lZ0(Q){if(Q.schema.$async&&!Q.schemaEnv.$async)throw Error("async schema in sync schema")}function qw({gen:Q,schemaEnv:X,schema:J,errSchemaPath:Y,opts:Z}){let q=J.$comment;if(Z.$comment===!0)Q.code(q0._`${B0.default.self}.logger.log(${q})`);else if(typeof Z.$comment=="function"){let $=q0.str`${Y}/$comment`,H=Q.scopeValue("root",{ref:X.root});Q.code(q0._`${B0.default.self}.opts.$comment(${q}, ${$}, ${H}.schema)`)}}function pZ0(Q){let{gen:X,schemaEnv:J,validateName:Y,ValidationError:Z,opts:q}=Q;if(J.$async)X.if(q0._`${B0.default.errors} === 0`,()=>X.return(B0.default.data),()=>X.throw(q0._`new ${Z}(${B0.default.vErrors})`));else{if(X.assign(q0._`${Y}.errors`,B0.default.vErrors),q.unevaluated)nZ0(Q);X.return(q0._`${B0.default.errors} === 0`)}}function nZ0({gen:Q,evaluated:X,props:J,items:Y}){if(J instanceof q0.Name)Q.assign(q0._`${X}.props`,J);if(Y instanceof q0.Name)Q.assign(q0._`${X}.items`,Y)}function aD(Q,X,J,Y){let{gen:Z,schema:q,data:$,allErrors:H,opts:K,self:V}=Q,{RULES:W}=V;if(q.$ref&&(K.ignoreKeywordsWithRef||!(0,V4.schemaHasRulesButRef)(q,W))){Z.block(()=>Hw(Q,"$ref",W.all.$ref.definition));return}if(!K.jtd)iZ0(Q,X);Z.block(()=>{for(let U of W.rules)G(U);G(W.post)});function G(U){if(!(0,lV.shouldUseGroup)(q,U))return;if(U.type){if(Z.if((0,Yq.checkDataType)(U.type,$,K.strictNumbers)),tD(Q,U),X.length===1&&X[0]===U.type&&J)Z.else(),(0,Yq.reportTypeError)(Q);Z.endIf()}else tD(Q,U);if(!H)Z.if(q0._`${B0.default.errors} === ${Y||0}`)}}function tD(Q,X){let{gen:J,schema:Y,opts:{useDefaults:Z}}=Q;if(Z)(0,vZ0.assignDefaults)(Q,X.type);J.block(()=>{for(let q of X.rules)if((0,lV.shouldUseRule)(Y,q))Hw(Q,q.keyword,q.definition,X.type)})}function iZ0(Q,X){if(Q.schemaEnv.meta||!Q.opts.strictTypes)return;if(oZ0(Q,X),!Q.opts.allowUnionTypes)rZ0(Q,X);sZ0(Q,Q.dataTypes)}function oZ0(Q,X){if(!X.length)return;if(!Q.dataTypes.length){Q.dataTypes=X;return}X.forEach((J)=>{if(!$w(Q.dataTypes,J))pV(Q,`type "${J}" not allowed by context "${Q.dataTypes.join(",")}"`)}),tZ0(Q,X)}function rZ0(Q,X){if(X.length>1&&!(X.length===2&&X.includes("null")))pV(Q,"use allowUnionTypes to allow union type keyword")}function sZ0(Q,X){let J=Q.self.RULES.all;for(let Y in J){let Z=J[Y];if(typeof Z=="object"&&(0,lV.shouldUseRule)(Q.schema,Z)){let{type:q}=Z.definition;if(q.length&&!q.some(($)=>aZ0(X,$)))pV(Q,`missing type "${q.join(",")}" for keyword "${Y}"`)}}}function aZ0(Q,X){return Q.includes(X)||X==="number"&&Q.includes("integer")}function $w(Q,X){return Q.includes(X)||X==="integer"&&Q.includes("number")}function tZ0(Q,X){let J=[];for(let Y of Q.dataTypes)if($w(X,Y))J.push(Y);else if(X.includes("integer")&&Y==="number")J.push("integer");Q.dataTypes=J}function pV(Q,X){let J=Q.schemaEnv.baseId+Q.errSchemaPath;X+=` at "${J}" (strictTypes)`,(0,V4.checkStrictMode)(Q,X,Q.opts.strictTypes)}class nV{constructor(Q,X,J){if((0,RX.validateKeywordUsage)(Q,X,J),this.gen=Q.gen,this.allErrors=Q.allErrors,this.keyword=J,this.data=Q.data,this.schema=Q.schema[J],this.$data=X.$data&&Q.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,V4.schemaRefOrVal)(Q,this.schema,J,this.$data),this.schemaType=X.schemaType,this.parentSchema=Q.schema,this.params={},this.it=Q,this.def=X,this.$data)this.schemaCode=Q.gen.const("vSchema",Kw(this.$data,Q));else if(this.schemaCode=this.schemaValue,!(0,RX.validSchemaType)(this.schema,X.schemaType,X.allowUndefined))throw Error(`${J} value must be ${JSON.stringify(X.schemaType)}`);if("code"in X?X.trackErrors:X.errors!==!1)this.errsCount=Q.gen.const("_errs",B0.default.errors)}result(Q,X,J){this.failResult((0,q0.not)(Q),X,J)}failResult(Q,X,J){if(this.gen.if(Q),J)J();else this.error();if(X){if(this.gen.else(),X(),this.allErrors)this.gen.endIf()}else if(this.allErrors)this.gen.endIf();else this.gen.else()}pass(Q,X){this.failResult((0,q0.not)(Q),void 0,X)}fail(Q){if(Q===void 0){if(this.error(),!this.allErrors)this.gen.if(!1);return}if(this.gen.if(Q),this.error(),this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(Q){if(!this.$data)return this.fail(Q);let{schemaCode:X}=this;this.fail(q0._`${X} !== undefined && (${(0,q0.or)(this.invalid$data(),Q)})`)}error(Q,X,J){if(X){this.setParams(X),this._error(Q,J),this.setParams({});return}this._error(Q,J)}_error(Q,X){(Q?NX.reportExtraError:NX.reportError)(this,this.def.error,X)}$dataError(){(0,NX.reportError)(this,this.def.$dataError||NX.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error('add "trackErrors" to keyword definition');(0,NX.resetErrorsCount)(this.gen,this.errsCount)}ok(Q){if(!this.allErrors)this.gen.if(Q)}setParams(Q,X){if(X)Object.assign(this.params,Q);else this.params=Q}block$data(Q,X,J=q0.nil){this.gen.block(()=>{this.check$data(Q,J),X()})}check$data(Q=q0.nil,X=q0.nil){if(!this.$data)return;let{gen:J,schemaCode:Y,schemaType:Z,def:q}=this;if(J.if((0,q0.or)(q0._`${Y} === undefined`,X)),Q!==q0.nil)J.assign(Q,!0);if(Z.length||q.validateSchema){if(J.elseIf(this.invalid$data()),this.$dataError(),Q!==q0.nil)J.assign(Q,!1)}J.else()}invalid$data(){let{gen:Q,schemaCode:X,schemaType:J,def:Y,it:Z}=this;return(0,q0.or)(q(),$());function q(){if(J.length){if(!(X instanceof q0.Name))throw Error("ajv implementation error");let H=Array.isArray(J)?J:[J];return q0._`${(0,Yq.checkDataTypes)(H,X,Z.opts.strictNumbers,Yq.DataType.Wrong)}`}return q0.nil}function $(){if(Y.validateSchema){let H=Q.scopeValue("validate$data",{ref:Y.validateSchema});return q0._`!${H}(${X})`}return q0.nil}}subschema(Q,X){let J=(0,cV.getSubschema)(this.it,Q);(0,cV.extendSubschemaData)(J,this.it,Q),(0,cV.extendSubschemaMode)(J,Q);let Y={...this.it,...J,items:void 0,props:void 0};return gZ0(Y,X),Y}mergeEvaluated(Q,X){let{it:J,gen:Y}=this;if(!J.opts.unevaluated)return;if(J.props!==!0&&Q.props!==void 0)J.props=V4.mergeEvaluated.props(Y,Q.props,J.props,X);if(J.items!==!0&&Q.items!==void 0)J.items=V4.mergeEvaluated.items(Y,Q.items,J.items,X)}mergeValidEvaluated(Q,X){let{it:J,gen:Y}=this;if(J.opts.unevaluated&&(J.props!==!0||J.items!==!0))return Y.if(X,()=>this.mergeEvaluated(Q,q0.Name)),!0}}Ww.KeywordCxt=nV;function Hw(Q,X,J,Y){let Z=new nV(Q,J,X);if("code"in J)J.code(Z,Y);else if(Z.$data&&J.validate)(0,RX.funcKeywordCode)(Z,J);else if("macro"in J)(0,RX.macroKeywordCode)(Z,J);else if(J.compile||J.validate)(0,RX.funcKeywordCode)(Z,J)}var eZ0=/^\/(?:[^~]|~0|~1)*$/,Qq0=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Kw(Q,{dataLevel:X,dataNames:J,dataPathArr:Y}){let Z,q;if(Q==="")return B0.default.rootData;if(Q[0]==="/"){if(!eZ0.test(Q))throw Error(`Invalid JSON-pointer: ${Q}`);Z=Q,q=B0.default.rootData}else{let V=Qq0.exec(Q);if(!V)throw Error(`Invalid JSON-pointer: ${Q}`);let W=+V[1];if(Z=V[2],Z==="#"){if(W>=X)throw Error(K("property/index",W));return Y[X-W]}if(W>X)throw Error(K("data",W));if(q=J[X-W],!Z)return q}let $=q,H=Z.split("/");for(let V of H)if(V)q=q0._`${q}${(0,q0.getProperty)((0,V4.unescapeJsonPointer)(V))}`,$=q0._`${$} && ${q}`;return $;function K(V,W){return`Cannot access ${V} ${W} levels up, current level is ${X}`}}Ww.getData=Kw});var DX=F((Uw)=>{Object.defineProperty(Uw,"__esModule",{value:!0});class Gw extends Error{constructor(Q){super("validation failed");this.errors=Q,this.ajv=this.validation=!0}}Uw.default=Gw});var a7=F((Bw)=>{Object.defineProperty(Bw,"__esModule",{value:!0});var iV=jX();class zw extends Error{constructor(Q,X,J,Y){super(Y||`can't resolve reference ${J} from id ${X}`);this.missingRef=(0,iV.resolveUrl)(Q,X,J),this.missingSchema=(0,iV.normalizeId)((0,iV.getFullPath)(Q,this.missingRef))}}Bw.default=zw});var TX=F((Mw)=>{Object.defineProperty(Mw,"__esModule",{value:!0});Mw.resolveSchema=Mw.getCompilingSchema=Mw.resolveRef=Mw.compileSchema=Mw.SchemaEnv=void 0;var z8=L0(),qq0=DX(),y5=p6(),B8=jX(),Lw=R0(),$q0=s7();class wX{constructor(Q){var X;this.refs={},this.dynamicAnchors={};let J;if(typeof Q.schema=="object")J=Q.schema;this.schema=Q.schema,this.schemaId=Q.schemaId,this.root=Q.root||this,this.baseId=(X=Q.baseId)!==null&&X!==void 0?X:(0,B8.normalizeId)(J===null||J===void 0?void 0:J[Q.schemaId||"$id"]),this.schemaPath=Q.schemaPath,this.localRefs=Q.localRefs,this.meta=Q.meta,this.$async=J===null||J===void 0?void 0:J.$async,this.refs={}}}Mw.SchemaEnv=wX;function rV(Q){let X=Fw.call(this,Q);if(X)return X;let J=(0,B8.getFullPath)(this.opts.uriResolver,Q.root.baseId),{es5:Y,lines:Z}=this.opts.code,{ownProperties:q}=this.opts,$=new z8.CodeGen(this.scope,{es5:Y,lines:Z,ownProperties:q}),H;if(Q.$async)H=$.scopeValue("Error",{ref:qq0.default,code:z8._`require("ajv/dist/runtime/validation_error").default`});let K=$.scopeName("validate");Q.validateName=K;let V={gen:$,allErrors:this.opts.allErrors,data:y5.default.data,parentData:y5.default.parentData,parentDataProperty:y5.default.parentDataProperty,dataNames:[y5.default.data],dataPathArr:[z8.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:$.scopeValue("schema",this.opts.code.source===!0?{ref:Q.schema,code:(0,z8.stringify)(Q.schema)}:{ref:Q.schema}),validateName:K,ValidationError:H,schema:Q.schema,schemaEnv:Q,rootId:J,baseId:Q.baseId||J,schemaPath:z8.nil,errSchemaPath:Q.schemaPath||(this.opts.jtd?"":"#"),errorPath:z8._`""`,opts:this.opts,self:this},W;try{this._compilations.add(Q),(0,$q0.validateFunctionCode)(V),$.optimize(this.opts.code.optimize);let G=$.toString();if(W=`${$.scopeRefs(y5.default.scope)}return ${G}`,this.opts.code.process)W=this.opts.code.process(W,Q);let z=Function(`${y5.default.self}`,`${y5.default.scope}`,W)(this,this.scope.get());if(this.scope.value(K,{ref:z}),z.errors=null,z.schema=Q.schema,z.schemaEnv=Q,Q.$async)z.$async=!0;if(this.opts.code.source===!0)z.source={validateName:K,validateCode:G,scopeValues:$._values};if(this.opts.unevaluated){let{props:L,items:B}=V;if(z.evaluated={props:L instanceof z8.Name?void 0:L,items:B instanceof z8.Name?void 0:B,dynamicProps:L instanceof z8.Name,dynamicItems:B instanceof z8.Name},z.source)z.source.evaluated=(0,z8.stringify)(z.evaluated)}return Q.validate=z,Q}catch(G){if(delete Q.validate,delete Q.validateName,W)this.logger.error("Error compiling schema, function code:",W);throw G}finally{this._compilations.delete(Q)}}Mw.compileSchema=rV;function Hq0(Q,X,J){var Y;J=(0,B8.resolveUrl)(this.opts.uriResolver,X,J);let Z=Q.refs[J];if(Z)return Z;let q=Vq0.call(this,Q,J);if(q===void 0){let $=(Y=Q.localRefs)===null||Y===void 0?void 0:Y[J],{schemaId:H}=this.opts;if($)q=new wX({schema:$,schemaId:H,root:Q,baseId:X})}if(q===void 0)return;return Q.refs[J]=Kq0.call(this,q)}Mw.resolveRef=Hq0;function Kq0(Q){if((0,B8.inlineRef)(Q.schema,this.opts.inlineRefs))return Q.schema;return Q.validate?Q:rV.call(this,Q)}function Fw(Q){for(let X of this._compilations)if(Wq0(X,Q))return X}Mw.getCompilingSchema=Fw;function Wq0(Q,X){return Q.schema===X.schema&&Q.root===X.root&&Q.baseId===X.baseId}function Vq0(Q,X){let J;while(typeof(J=this.refs[X])=="string")X=J;return J||this.schemas[X]||Zq.call(this,Q,X)}function Zq(Q,X){let J=this.opts.uriResolver.parse(X),Y=(0,B8._getFullPath)(this.opts.uriResolver,J),Z=(0,B8.getFullPath)(this.opts.uriResolver,Q.baseId,void 0);if(Object.keys(Q.schema).length>0&&Y===Z)return oV.call(this,J,Q);let q=(0,B8.normalizeId)(Y),$=this.refs[q]||this.schemas[q];if(typeof $=="string"){let H=Zq.call(this,Q,$);if(typeof(H===null||H===void 0?void 0:H.schema)!=="object")return;return oV.call(this,J,H)}if(typeof($===null||$===void 0?void 0:$.schema)!=="object")return;if(!$.validate)rV.call(this,$);if(q===(0,B8.normalizeId)(X)){let{schema:H}=$,{schemaId:K}=this.opts,V=H[K];if(V)Z=(0,B8.resolveUrl)(this.opts.uriResolver,Z,V);return new wX({schema:H,schemaId:K,root:Q,baseId:Z})}return oV.call(this,J,$)}Mw.resolveSchema=Zq;var Gq0=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function oV(Q,{baseId:X,schema:J,root:Y}){var Z;if(((Z=Q.fragment)===null||Z===void 0?void 0:Z[0])!=="/")return;for(let H of Q.fragment.slice(1).split("/")){if(typeof J==="boolean")return;let K=J[(0,Lw.unescapeFragment)(H)];if(K===void 0)return;J=K;let V=typeof J==="object"&&J[this.opts.schemaId];if(!Gq0.has(H)&&V)X=(0,B8.resolveUrl)(this.opts.uriResolver,X,V)}let q;if(typeof J!="boolean"&&J.$ref&&!(0,Lw.schemaHasRulesButRef)(J,this.RULES)){let H=(0,B8.resolveUrl)(this.opts.uriResolver,X,J.$ref);q=Zq.call(this,Y,H)}let{schemaId:$}=this.opts;if(q=q||new wX({schema:J,schemaId:$,root:Y,baseId:X}),q.schema!==q.root.schema)return q;return}});var Pw=F((sa0,Fq0)=>{Fq0.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var tV=F((aa0,Dw)=>{var Mq0=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Ow=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),sV=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),jw=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),Iq0=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function aV(Q){let X="",J=0,Y=0;for(Y=0;Y<Q.length;Y++){if(J=Q[Y].charCodeAt(0),J===48)continue;if(!(J>=48&&J<=57||J>=65&&J<=70||J>=97&&J<=102))return"";X+=Q[Y];break}for(Y+=1;Y<Q.length;Y++){if(J=Q[Y].charCodeAt(0),!(J>=48&&J<=57||J>=65&&J<=70||J>=97&&J<=102))return"";X+=Q[Y]}return X}var Pq0=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function Cw(Q){return Q.length=0,!0}function Cq0(Q,X,J){if(Q.length){let Y=aV(Q);if(Y!=="")X.push(Y);else return J.error=!0,!1;Q.length=0}return!0}function Oq0(Q){let X=0,J={error:!1,address:"",zone:""},Y=[],Z=[],q=!1,$=!1,H=Cq0;for(let K=0;K<Q.length;K++){let V=Q[K];if(V==="["||V==="]")continue;if(V===":"){if(q===!0)$=!0;if(!H(Z,Y,J))break;if(++X>7){J.error=!0;break}if(K>0&&Q[K-1]===":")q=!0;Y.push(":");continue}else if(V==="%"){if(!H(Z,Y,J))break;H=Cw}else{Z.push(V);continue}}if(Z.length)if(H===Cw)J.zone=Z.join("");else if($)Y.push(Z.join(""));else Y.push(aV(Z));return J.address=Y.join(""),J}function Nw(Q){if(jq0(Q,":")<2)return{host:Q,isIPV6:!1};let X=Oq0(Q);if(!X.error){let{address:J,address:Y}=X;if(X.zone)J+="%"+X.zone,Y+="%25"+X.zone;return{host:J,isIPV6:!0,escapedHost:Y}}else return{host:Q,isIPV6:!1}}function jq0(Q,X){let J=0;for(let Y=0;Y<Q.length;Y++)if(Q[Y]===X)J++;return J}function Nq0(Q){let X=Q,J=[],Y=-1,Z=0;while(Z=X.length){if(Z===1)if(X===".")break;else if(X==="/"){J.push("/");break}else{J.push(X);break}else if(Z===2){if(X[0]==="."){if(X[1]===".")break;else if(X[1]==="/"){X=X.slice(2);continue}}else if(X[0]==="/"){if(X[1]==="."||X[1]==="/"){J.push("/");break}}}else if(Z===3){if(X==="/.."){if(J.length!==0)J.pop();J.push("/");break}}if(X[0]==="."){if(X[1]==="."){if(X[2]==="/"){X=X.slice(3);continue}}else if(X[1]==="/"){X=X.slice(2);continue}}else if(X[0]==="/"){if(X[1]==="."){if(X[2]==="/"){X=X.slice(2);continue}else if(X[2]==="."){if(X[3]==="/"){if(X=X.slice(3),J.length!==0)J.pop();continue}}}}if((Y=X.indexOf("/",1))===-1){J.push(X);break}else J.push(X.slice(0,Y)),X=X.slice(Y)}return J.join("")}var Rq0={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},Dq0=/[@/?#:]/g,wq0=/[@/?#]/g;function Rw(Q,X){let J=X?wq0:Dq0;return J.lastIndex=0,Q.replace(J,(Y)=>Rq0[Y])}function Tq0(Q,X=!1){if(Q.indexOf("%")===-1)return Q;let J="";for(let Y=0;Y<Q.length;Y++){if(Q[Y]==="%"&&Y+2<Q.length){let Z=Q.slice(Y+1,Y+3);if(sV(Z)){let q=Z.toUpperCase(),$=String.fromCharCode(parseInt(q,16));if(X&&jw($))J+=$;else J+="%"+q;Y+=2;continue}}J+=Q[Y]}return J}function Aq0(Q){let X="";for(let J=0;J<Q.length;J++){if(Q[J]==="%"&&J+2<Q.length){let Y=Q.slice(J+1,J+3);if(sV(Y)){let Z=Y.toUpperCase(),q=String.fromCharCode(parseInt(Z,16));if(q!=="."&&jw(q))X+=q;else X+="%"+Z;J+=2;continue}}if(Iq0(Q[J]))X+=Q[J];else X+=escape(Q[J])}return X}function Eq0(Q){let X="";for(let J=0;J<Q.length;J++){if(Q[J]==="%"&&J+2<Q.length){let Y=Q.slice(J+1,J+3);if(sV(Y)){X+="%"+Y.toUpperCase(),J+=2;continue}}X+=escape(Q[J])}return X}function _q0(Q){let X=[];if(Q.userinfo!==void 0)X.push(Q.userinfo),X.push("@");if(Q.host!==void 0){let J=unescape(Q.host);if(!Ow(J)){let Y=Nw(J);if(Y.isIPV6===!0)J=`[${Y.escapedHost}]`;else J=Rw(J,!1)}X.push(J)}if(typeof Q.port==="number"||typeof Q.port==="string")X.push(":"),X.push(String(Q.port));return X.length?X.join(""):void 0}Dw.exports={nonSimpleDomain:Pq0,recomposeAuthority:_q0,reescapeHostDelimiters:Rw,normalizePercentEncoding:Tq0,normalizePathEncoding:Aq0,escapePreservingEscapes:Eq0,removeDotSegments:Nq0,isIPv4:Ow,isUUID:Mq0,normalizeIPv6:Nw,stringArrayToHexStripped:aV}});var _w=F((ta0,Ew)=>{var{isUUID:Sq0}=tV(),vq0=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,xq0=["http","https","ws","wss","urn","urn:uuid"];function kq0(Q){return xq0.indexOf(Q)!==-1}function eV(Q){if(Q.secure===!0)return!0;else if(Q.secure===!1)return!1;else if(Q.scheme)return Q.scheme.length===3&&(Q.scheme[0]==="w"||Q.scheme[0]==="W")&&(Q.scheme[1]==="s"||Q.scheme[1]==="S")&&(Q.scheme[2]==="s"||Q.scheme[2]==="S");else return!1}function ww(Q){if(!Q.host)Q.error=Q.error||"HTTP URIs must have a host.";return Q}function Tw(Q){let X=String(Q.scheme).toLowerCase()==="https";if(Q.port===(X?443:80)||Q.port==="")Q.port=void 0;if(!Q.path)Q.path="/";return Q}function yq0(Q){return Q.secure=eV(Q),Q.resourceName=(Q.path||"/")+(Q.query?"?"+Q.query:""),Q.path=void 0,Q.query=void 0,Q}function hq0(Q){if(Q.port===(eV(Q)?443:80)||Q.port==="")Q.port=void 0;if(typeof Q.secure==="boolean")Q.scheme=Q.secure?"wss":"ws",Q.secure=void 0;if(Q.resourceName){let[X,J]=Q.resourceName.split("?");Q.path=X&&X!=="/"?X:void 0,Q.query=J,Q.resourceName=void 0}return Q.fragment=void 0,Q}function bq0(Q,X){if(!Q.path)return Q.error="URN can not be parsed",Q;let J=Q.path.match(vq0);if(J){let Y=X.scheme||Q.scheme||"urn";Q.nid=J[1].toLowerCase(),Q.nss=J[2];let Z=`${Y}:${X.nid||Q.nid}`,q=QG(Z);if(Q.path=void 0,q)Q=q.parse(Q,X)}else Q.error=Q.error||"URN can not be parsed.";return Q}function fq0(Q,X){if(Q.nid===void 0)throw Error("URN without nid cannot be serialized");let J=X.scheme||Q.scheme||"urn",Y=Q.nid.toLowerCase(),Z=`${J}:${X.nid||Y}`,q=QG(Z);if(q)Q=q.serialize(Q,X);let $=Q,H=Q.nss;return $.path=`${Y||X.nid}:${H}`,X.skipEscape=!0,$}function gq0(Q,X){let J=Q;if(J.uuid=J.nss,J.nss=void 0,!X.tolerant&&(!J.uuid||!Sq0(J.uuid)))J.error=J.error||"UUID is not valid.";return J}function uq0(Q){let X=Q;return X.nss=(Q.uuid||"").toLowerCase(),X}var Aw={scheme:"http",domainHost:!0,parse:ww,serialize:Tw},mq0={scheme:"https",domainHost:Aw.domainHost,parse:ww,serialize:Tw},qq={scheme:"ws",domainHost:!0,parse:yq0,serialize:hq0},dq0={scheme:"wss",domainHost:qq.domainHost,parse:qq.parse,serialize:qq.serialize},cq0={scheme:"urn",parse:bq0,serialize:fq0,skipNormalize:!0},lq0={scheme:"urn:uuid",parse:gq0,serialize:uq0,skipNormalize:!0},$q={http:Aw,https:mq0,ws:qq,wss:dq0,urn:cq0,"urn:uuid":lq0};Object.setPrototypeOf($q,null);function QG(Q){return Q&&($q[Q]||$q[Q.toLowerCase()])||void 0}Ew.exports={wsIsSecure:eV,SCHEMES:$q,isValidSchemeName:kq0,getSchemeHandler:QG}});var yw=F((ea0,Wq)=>{var{normalizeIPv6:pq0,removeDotSegments:AX,recomposeAuthority:nq0,normalizePercentEncoding:iq0,normalizePathEncoding:oq0,escapePreservingEscapes:rq0,reescapeHostDelimiters:sq0,isIPv4:aq0,nonSimpleDomain:tq0}=tV(),{SCHEMES:eq0,getSchemeHandler:vw}=_w();function Q$0(Q,X){if(typeof Q==="string")Q=H$0(Q,X);else if(typeof Q==="object")Q=Kq(h5(Q,X),X);return Q}function X$0(Q,X,J){let Y=J?Object.assign({scheme:"null"},J):{scheme:"null"},{parsed:Z,malformedAuthorityOrPort:q}=Hq(Q,Y),{parsed:$,malformedAuthorityOrPort:H}=Hq(X,Y);if(q||H)throw Error(Z.error||$.error||"URI is malformed.");let K=xw(Z,$,Y,!0);return Y.skipEscape=!0,h5(K,Y)}function xw(Q,X,J,Y){let Z={};if(!Y)Q=Kq(h5(Q,J),J),X=Kq(h5(X,J),J);if(J=J||{},!J.tolerant&&X.scheme)Z.scheme=X.scheme,Z.userinfo=X.userinfo,Z.host=X.host,Z.port=X.port,Z.path=AX(X.path||""),Z.query=X.query;else{if(X.userinfo!==void 0||X.host!==void 0||X.port!==void 0)Z.userinfo=X.userinfo,Z.host=X.host,Z.port=X.port,Z.path=AX(X.path||""),Z.query=X.query;else{if(!X.path)if(Z.path=Q.path,X.query!==void 0)Z.query=X.query;else Z.query=Q.query;else{if(X.path[0]==="/")Z.path=AX(X.path);else{if((Q.userinfo!==void 0||Q.host!==void 0||Q.port!==void 0)&&!Q.path)Z.path="/"+X.path;else if(!Q.path)Z.path=X.path;else Z.path=Q.path.slice(0,Q.path.lastIndexOf("/")+1)+X.path;Z.path=AX(Z.path)}Z.query=X.query}Z.userinfo=Q.userinfo,Z.host=Q.host,Z.port=Q.port}Z.scheme=Q.scheme}return Z.fragment=X.fragment,Z}function J$0(Q,X,J){let Y=Sw(Q,J),Z=Sw(X,J);return Y!==void 0&&Z!==void 0&&Y.toLowerCase()===Z.toLowerCase()}function h5(Q,X){let J={host:Q.host,scheme:Q.scheme,userinfo:Q.userinfo,port:Q.port,path:Q.path,query:Q.query,nid:Q.nid,nss:Q.nss,uuid:Q.uuid,fragment:Q.fragment,reference:Q.reference,resourceName:Q.resourceName,secure:Q.secure,error:""},Y=Object.assign({},X),Z=[],q=vw(Y.scheme||J.scheme);if(q&&q.serialize)q.serialize(J,Y);if(J.path!==void 0)if(!Y.skipEscape){if(J.path=rq0(J.path),J.scheme!==void 0)J.path=J.path.split("%3A").join(":")}else J.path=iq0(J.path);if(Y.reference!=="suffix"&&J.scheme)Z.push(J.scheme,":");let $=nq0(J);if($!==void 0){if(Y.reference!=="suffix")Z.push("//");if(Z.push($),J.path&&J.path[0]!=="/")Z.push("/")}if(J.path!==void 0){let H=J.path;if(!Y.absolutePath&&(!q||!q.absolutePath))H=AX(H);if($===void 0&&H[0]==="/"&&H[1]==="/")H="/%2F"+H.slice(2);Z.push(H)}if(J.query!==void 0)Z.push("?",J.query);if(J.fragment!==void 0)Z.push("#",J.fragment);return Z.join("")}var Y$0=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,Z$0=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,q$0=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function $$0(Q,X){if(X[2]!==void 0&&Q.path&&Q.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof Q.port==="number"&&(Q.port<0||Q.port>65535))return"URI port is malformed.";return}function Hq(Q,X){let J=Object.assign({},X),Y={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},Z=!1,q=!1;if(J.reference==="suffix")if(J.scheme)Q=J.scheme+":"+Q;else Q="//"+Q;let $=Q.match(Z$0);if($!==null&&$[1].indexOf("\\")!==-1)Y.error="URI authority must not contain a literal backslash.",Z=!0;let H=Q.match(q$0);if(H!==null){let V=H[1],W=V.replace(/[\t\n\r]/g,"");if(W.length>=2){if(W.slice(0,2)!=="//")Y.error=Y.error||"URI authority must not contain a literal backslash.",Z=!0;else if(V.length!==W.length)Y.error=Y.error||"URI authority introducer must not contain whitespace.",Z=!0}}let K=Q.match(Y$0);if(K){if(Y.scheme=K[1],Y.userinfo=K[3],Y.host=K[4],Y.port=parseInt(K[5],10),Y.path=K[6]||"",Y.query=K[7],Y.fragment=K[8],isNaN(Y.port))Y.port=K[5];let V=$$0(Y,K);if(V!==void 0)Y.error=Y.error||V,Z=!0;if(Y.host)if(aq0(Y.host)===!1){let U=pq0(Y.host);Y.host=U.host.toLowerCase(),q=U.isIPV6}else q=!0;if(Y.scheme===void 0&&Y.userinfo===void 0&&Y.host===void 0&&Y.port===void 0&&Y.query===void 0&&!Y.path)Y.reference="same-document";else if(Y.scheme===void 0)Y.reference="relative";else if(Y.fragment===void 0)Y.reference="absolute";else Y.reference="uri";if(J.reference&&J.reference!=="suffix"&&J.reference!==Y.reference)Y.error=Y.error||"URI is not a "+J.reference+" reference.";let W=vw(J.scheme||Y.scheme);if(!J.unicodeSupport&&(!W||!W.unicodeSupport)){if(Y.host&&(J.domainHost||W&&W.domainHost)&&q===!1&&tq0(Y.host))try{Y.host=new URL("http://"+Y.host).hostname}catch(G){Y.error=Y.error||"Host's domain name can not be converted to ASCII: "+G}}if(!W||W&&!W.skipNormalize){if(Q.indexOf("%")!==-1){if(Y.scheme!==void 0)Y.scheme=unescape(Y.scheme);if(Y.host!==void 0)Y.host=sq0(unescape(Y.host),q)}if(Y.path)Y.path=oq0(Y.path);if(Y.fragment)try{Y.fragment=encodeURI(decodeURIComponent(Y.fragment))}catch{Y.error=Y.error||"URI malformed"}}if(W&&W.parse)W.parse(Y,J)}else Y.error=Y.error||"URI can not be parsed.";return{parsed:Y,malformedAuthorityOrPort:Z}}function Kq(Q,X){return Hq(Q,X).parsed}function H$0(Q,X){return kw(Q,X).normalized}function kw(Q,X){let{parsed:J,malformedAuthorityOrPort:Y}=Hq(Q,X);return{normalized:Y?Q:h5(J,X),malformedAuthorityOrPort:Y}}function Sw(Q,X){if(typeof Q==="string"){let{normalized:J,malformedAuthorityOrPort:Y}=kw(Q,X);return Y?void 0:J}if(typeof Q==="object")return h5(Q,X)}var XG={SCHEMES:eq0,normalize:Q$0,resolve:X$0,resolveComponent:xw,equal:J$0,serialize:h5,parse:Kq};Wq.exports=XG;Wq.exports.default=XG;Wq.exports.fastUri=XG});var fw=F((bw)=>{Object.defineProperty(bw,"__esModule",{value:!0});var hw=yw();hw.code='require("ajv/dist/runtime/uri").default';bw.default=hw});var ZG=F((G4)=>{Object.defineProperty(G4,"__esModule",{value:!0});G4.CodeGen=G4.Name=G4.nil=G4.stringify=G4.str=G4._=G4.KeywordCxt=void 0;var W$0=s7();Object.defineProperty(G4,"KeywordCxt",{enumerable:!0,get:function(){return W$0.KeywordCxt}});var t7=L0();Object.defineProperty(G4,"_",{enumerable:!0,get:function(){return t7._}});Object.defineProperty(G4,"str",{enumerable:!0,get:function(){return t7.str}});Object.defineProperty(G4,"stringify",{enumerable:!0,get:function(){return t7.stringify}});Object.defineProperty(G4,"nil",{enumerable:!0,get:function(){return t7.nil}});Object.defineProperty(G4,"Name",{enumerable:!0,get:function(){return t7.Name}});Object.defineProperty(G4,"CodeGen",{enumerable:!0,get:function(){return t7.CodeGen}});var V$0=DX(),cw=a7(),G$0=xV(),EX=TX(),U$0=L0(),_X=jX(),Vq=OX(),YG=R0(),gw=Pw(),z$0=fw(),lw=(Q,X)=>new RegExp(Q,X);lw.code="new RegExp";var B$0=["removeAdditional","useDefaults","coerceTypes"],L$0=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),F$0={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},M$0={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},uw=200;function I$0(Q){var X,J,Y,Z,q,$,H,K,V,W,G,U,z,L,B,M,I,j,D,N,k,f,S,p,T;let u=Q.strict,c=(X=Q.code)===null||X===void 0?void 0:X.optimize,X0=c===!0||c===void 0?1:c||0,I0=(Y=(J=Q.code)===null||J===void 0?void 0:J.regExp)!==null&&Y!==void 0?Y:lw,P0=(Z=Q.uriResolver)!==null&&Z!==void 0?Z:z$0.default;return{strictSchema:($=(q=Q.strictSchema)!==null&&q!==void 0?q:u)!==null&&$!==void 0?$:!0,strictNumbers:(K=(H=Q.strictNumbers)!==null&&H!==void 0?H:u)!==null&&K!==void 0?K:!0,strictTypes:(W=(V=Q.strictTypes)!==null&&V!==void 0?V:u)!==null&&W!==void 0?W:"log",strictTuples:(U=(G=Q.strictTuples)!==null&&G!==void 0?G:u)!==null&&U!==void 0?U:"log",strictRequired:(L=(z=Q.strictRequired)!==null&&z!==void 0?z:u)!==null&&L!==void 0?L:!1,code:Q.code?{...Q.code,optimize:X0,regExp:I0}:{optimize:X0,regExp:I0},loopRequired:(B=Q.loopRequired)!==null&&B!==void 0?B:uw,loopEnum:(M=Q.loopEnum)!==null&&M!==void 0?M:uw,meta:(I=Q.meta)!==null&&I!==void 0?I:!0,messages:(j=Q.messages)!==null&&j!==void 0?j:!0,inlineRefs:(D=Q.inlineRefs)!==null&&D!==void 0?D:!0,schemaId:(N=Q.schemaId)!==null&&N!==void 0?N:"$id",addUsedSchema:(k=Q.addUsedSchema)!==null&&k!==void 0?k:!0,validateSchema:(f=Q.validateSchema)!==null&&f!==void 0?f:!0,validateFormats:(S=Q.validateFormats)!==null&&S!==void 0?S:!0,unicodeRegExp:(p=Q.unicodeRegExp)!==null&&p!==void 0?p:!0,int32range:(T=Q.int32range)!==null&&T!==void 0?T:!0,uriResolver:P0}}class Gq{constructor(Q={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,Q=this.opts={...Q,...I$0(Q)};let{es5:X,lines:J}=this.opts.code;this.scope=new U$0.ValueScope({scope:{},prefixes:L$0,es5:X,lines:J}),this.logger=R$0(Q.logger);let Y=Q.validateFormats;if(Q.validateFormats=!1,this.RULES=(0,G$0.getRules)(),mw.call(this,F$0,Q,"NOT SUPPORTED"),mw.call(this,M$0,Q,"DEPRECATED","warn"),this._metaOpts=j$0.call(this),Q.formats)C$0.call(this);if(this._addVocabularies(),this._addDefaultMetaSchema(),Q.keywords)O$0.call(this,Q.keywords);if(typeof Q.meta=="object")this.addMetaSchema(Q.meta);P$0.call(this),Q.validateFormats=Y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:Q,meta:X,schemaId:J}=this.opts,Y=gw;if(J==="id")Y={...gw},Y.id=Y.$id,delete Y.$id;if(X&&Q)this.addMetaSchema(Y,Y[J],!1)}defaultMeta(){let{meta:Q,schemaId:X}=this.opts;return this.opts.defaultMeta=typeof Q=="object"?Q[X]||Q:void 0}validate(Q,X){let J;if(typeof Q=="string"){if(J=this.getSchema(Q),!J)throw Error(`no schema with key or ref "${Q}"`)}else J=this.compile(Q);let Y=J(X);if(!("$async"in J))this.errors=J.errors;return Y}compile(Q,X){let J=this._addSchema(Q,X);return J.validate||this._compileSchemaEnv(J)}compileAsync(Q,X){if(typeof this.opts.loadSchema!="function")throw Error("options.loadSchema should be a function");let{loadSchema:J}=this.opts;return Y.call(this,Q,X);async function Y(V,W){await Z.call(this,V.$schema);let G=this._addSchema(V,W);return G.validate||q.call(this,G)}async function Z(V){if(V&&!this.getSchema(V))await Y.call(this,{$ref:V},!0)}async function q(V){try{return this._compileSchemaEnv(V)}catch(W){if(!(W instanceof cw.default))throw W;return $.call(this,W),await H.call(this,W.missingSchema),q.call(this,V)}}function $({missingSchema:V,missingRef:W}){if(this.refs[V])throw Error(`AnySchema ${V} is loaded but ${W} cannot be resolved`)}async function H(V){let W=await K.call(this,V);if(!this.refs[V])await Z.call(this,W.$schema);if(!this.refs[V])this.addSchema(W,V,X)}async function K(V){let W=this._loading[V];if(W)return W;try{return await(this._loading[V]=J(V))}finally{delete this._loading[V]}}}addSchema(Q,X,J,Y=this.opts.validateSchema){if(Array.isArray(Q)){for(let q of Q)this.addSchema(q,void 0,J,Y);return this}let Z;if(typeof Q==="object"){let{schemaId:q}=this.opts;if(Z=Q[q],Z!==void 0&&typeof Z!="string")throw Error(`schema ${q} must be string`)}return X=(0,_X.normalizeId)(X||Z),this._checkUnique(X),this.schemas[X]=this._addSchema(Q,J,X,Y,!0),this}addMetaSchema(Q,X,J=this.opts.validateSchema){return this.addSchema(Q,X,!0,J),this}validateSchema(Q,X){if(typeof Q=="boolean")return!0;let J;if(J=Q.$schema,J!==void 0&&typeof J!="string")throw Error("$schema must be a string");if(J=J||this.opts.defaultMeta||this.defaultMeta(),!J)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let Y=this.validate(J,Q);if(!Y&&X){let Z="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(Z);else throw Error(Z)}return Y}getSchema(Q){let X;while(typeof(X=dw.call(this,Q))=="string")Q=X;if(X===void 0){let{schemaId:J}=this.opts,Y=new EX.SchemaEnv({schema:{},schemaId:J});if(X=EX.resolveSchema.call(this,Y,Q),!X)return;this.refs[Q]=X}return X.validate||this._compileSchemaEnv(X)}removeSchema(Q){if(Q instanceof RegExp)return this._removeAllSchemas(this.schemas,Q),this._removeAllSchemas(this.refs,Q),this;switch(typeof Q){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let X=dw.call(this,Q);if(typeof X=="object")this._cache.delete(X.schema);return delete this.schemas[Q],delete this.refs[Q],this}case"object":{let X=Q;this._cache.delete(X);let J=Q[this.opts.schemaId];if(J)J=(0,_X.normalizeId)(J),delete this.schemas[J],delete this.refs[J];return this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(Q){for(let X of Q)this.addKeyword(X);return this}addKeyword(Q,X){let J;if(typeof Q=="string"){if(J=Q,typeof X=="object")this.logger.warn("these parameters are deprecated, see docs for addKeyword"),X.keyword=J}else if(typeof Q=="object"&&X===void 0){if(X=Q,J=X.keyword,Array.isArray(J)&&!J.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(w$0.call(this,J,X),!X)return(0,YG.eachItem)(J,(Z)=>JG.call(this,Z)),this;A$0.call(this,X);let Y={...X,type:(0,Vq.getJSONTypes)(X.type),schemaType:(0,Vq.getJSONTypes)(X.schemaType)};return(0,YG.eachItem)(J,Y.type.length===0?(Z)=>JG.call(this,Z,Y):(Z)=>Y.type.forEach((q)=>JG.call(this,Z,Y,q))),this}getKeyword(Q){let X=this.RULES.all[Q];return typeof X=="object"?X.definition:!!X}removeKeyword(Q){let{RULES:X}=this;delete X.keywords[Q],delete X.all[Q];for(let J of X.rules){let Y=J.rules.findIndex((Z)=>Z.keyword===Q);if(Y>=0)J.rules.splice(Y,1)}return this}addFormat(Q,X){if(typeof X=="string")X=new RegExp(X);return this.formats[Q]=X,this}errorsText(Q=this.errors,{separator:X=", ",dataVar:J="data"}={}){if(!Q||Q.length===0)return"No errors";return Q.map((Y)=>`${J}${Y.instancePath} ${Y.message}`).reduce((Y,Z)=>Y+X+Z)}$dataMetaSchema(Q,X){let J=this.RULES.all;Q=JSON.parse(JSON.stringify(Q));for(let Y of X){let Z=Y.split("/").slice(1),q=Q;for(let $ of Z)q=q[$];for(let $ in J){let H=J[$];if(typeof H!="object")continue;let{$data:K}=H.definition,V=q[$];if(K&&V)q[$]=pw(V)}}return Q}_removeAllSchemas(Q,X){for(let J in Q){let Y=Q[J];if(!X||X.test(J)){if(typeof Y=="string")delete Q[J];else if(Y&&!Y.meta)this._cache.delete(Y.schema),delete Q[J]}}}_addSchema(Q,X,J,Y=this.opts.validateSchema,Z=this.opts.addUsedSchema){let q,{schemaId:$}=this.opts;if(typeof Q=="object")q=Q[$];else if(this.opts.jtd)throw Error("schema must be object");else if(typeof Q!="boolean")throw Error("schema must be object or boolean");let H=this._cache.get(Q);if(H!==void 0)return H;J=(0,_X.normalizeId)(q||J);let K=_X.getSchemaRefs.call(this,Q,J);if(H=new EX.SchemaEnv({schema:Q,schemaId:$,meta:X,baseId:J,localRefs:K}),this._cache.set(H.schema,H),Z&&!J.startsWith("#")){if(J)this._checkUnique(J);this.refs[J]=H}if(Y)this.validateSchema(Q,!0);return H}_checkUnique(Q){if(this.schemas[Q]||this.refs[Q])throw Error(`schema with key or id "${Q}" already exists`)}_compileSchemaEnv(Q){if(Q.meta)this._compileMetaSchema(Q);else EX.compileSchema.call(this,Q);if(!Q.validate)throw Error("ajv implementation error");return Q.validate}_compileMetaSchema(Q){let X=this.opts;this.opts=this._metaOpts;try{EX.compileSchema.call(this,Q)}finally{this.opts=X}}}Gq.ValidationError=V$0.default;Gq.MissingRefError=cw.default;G4.default=Gq;function mw(Q,X,J,Y="error"){for(let Z in Q){let q=Z;if(q in X)this.logger[Y](`${J}: option ${Z}. ${Q[q]}`)}}function dw(Q){return Q=(0,_X.normalizeId)(Q),this.schemas[Q]||this.refs[Q]}function P$0(){let Q=this.opts.schemas;if(!Q)return;if(Array.isArray(Q))this.addSchema(Q);else for(let X in Q)this.addSchema(Q[X],X)}function C$0(){for(let Q in this.opts.formats){let X=this.opts.formats[Q];if(X)this.addFormat(Q,X)}}function O$0(Q){if(Array.isArray(Q)){this.addVocabulary(Q);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let X in Q){let J=Q[X];if(!J.keyword)J.keyword=X;this.addKeyword(J)}}function j$0(){let Q={...this.opts};for(let X of B$0)delete Q[X];return Q}var N$0={log(){},warn(){},error(){}};function R$0(Q){if(Q===!1)return N$0;if(Q===void 0)return console;if(Q.log&&Q.warn&&Q.error)return Q;throw Error("logger must implement log, warn and error methods")}var D$0=/^[a-z_$][a-z0-9_$:-]*$/i;function w$0(Q,X){let{RULES:J}=this;if((0,YG.eachItem)(Q,(Y)=>{if(J.keywords[Y])throw Error(`Keyword ${Y} is already defined`);if(!D$0.test(Y))throw Error(`Keyword ${Y} has invalid name`)}),!X)return;if(X.$data&&!(("code"in X)||("validate"in X)))throw Error('$data keyword must have "code" or "validate" function')}function JG(Q,X,J){var Y;let Z=X===null||X===void 0?void 0:X.post;if(J&&Z)throw Error('keyword with "post" flag cannot have "type"');let{RULES:q}=this,$=Z?q.post:q.rules.find(({type:K})=>K===J);if(!$)$={type:J,rules:[]},q.rules.push($);if(q.keywords[Q]=!0,!X)return;let H={keyword:Q,definition:{...X,type:(0,Vq.getJSONTypes)(X.type),schemaType:(0,Vq.getJSONTypes)(X.schemaType)}};if(X.before)T$0.call(this,$,H,X.before);else $.rules.push(H);q.all[Q]=H,(Y=X.implements)===null||Y===void 0||Y.forEach((K)=>this.addKeyword(K))}function T$0(Q,X,J){let Y=Q.rules.findIndex((Z)=>Z.keyword===J);if(Y>=0)Q.rules.splice(Y,0,X);else Q.rules.push(X),this.logger.warn(`rule ${J} is not defined`)}function A$0(Q){let{metaSchema:X}=Q;if(X===void 0)return;if(Q.$data&&this.opts.$data)X=pw(X);Q.validateSchema=this.compile(X,!0)}var E$0={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function pw(Q){return{anyOf:[Q,E$0]}}});var iw=F((nw)=>{Object.defineProperty(nw,"__esModule",{value:!0});var v$0={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};nw.default=v$0});var Bq=F((aw)=>{Object.defineProperty(aw,"__esModule",{value:!0});aw.callRef=aw.getValidate=void 0;var k$0=a7(),ow=n6(),P6=L0(),e7=p6(),rw=TX(),Uq=R0(),y$0={keyword:"$ref",schemaType:"string",code(Q){let{gen:X,schema:J,it:Y}=Q,{baseId:Z,schemaEnv:q,validateName:$,opts:H,self:K}=Y,{root:V}=q;if((J==="#"||J==="#/")&&Z===V.baseId)return G();let W=rw.resolveRef.call(K,V,Z,J);if(W===void 0)throw new k$0.default(Y.opts.uriResolver,Z,J);if(W instanceof rw.SchemaEnv)return U(W);return z(W);function G(){if(q===V)return zq(Q,$,q,q.$async);let L=X.scopeValue("root",{ref:V});return zq(Q,P6._`${L}.validate`,V,V.$async)}function U(L){let B=sw(Q,L);zq(Q,B,L,L.$async)}function z(L){let B=X.scopeValue("schema",H.code.source===!0?{ref:L,code:(0,P6.stringify)(L)}:{ref:L}),M=X.name("valid"),I=Q.subschema({schema:L,dataTypes:[],schemaPath:P6.nil,topSchemaRef:B,errSchemaPath:J},M);Q.mergeEvaluated(I),Q.ok(M)}}};function sw(Q,X){let{gen:J}=Q;return X.validate?J.scopeValue("validate",{ref:X.validate}):P6._`${J.scopeValue("wrapper",{ref:X})}.validate`}aw.getValidate=sw;function zq(Q,X,J,Y){let{gen:Z,it:q}=Q,{allErrors:$,schemaEnv:H,opts:K}=q,V=K.passContext?e7.default.this:P6.nil;if(Y)W();else G();function W(){if(!H.$async)throw Error("async schema referenced by sync schema");let L=Z.let("valid");Z.try(()=>{if(Z.code(P6._`await ${(0,ow.callValidateCode)(Q,X,V)}`),z(X),!$)Z.assign(L,!0)},(B)=>{if(Z.if(P6._`!(${B} instanceof ${q.ValidationError})`,()=>Z.throw(B)),U(B),!$)Z.assign(L,!1)}),Q.ok(L)}function G(){Q.result((0,ow.callValidateCode)(Q,X,V),()=>z(X),()=>U(X))}function U(L){let B=P6._`${L}.errors`;Z.assign(e7.default.vErrors,P6._`${e7.default.vErrors} === null ? ${B} : ${e7.default.vErrors}.concat(${B})`),Z.assign(e7.default.errors,P6._`${e7.default.vErrors}.length`)}function z(L){var B;if(!q.opts.unevaluated)return;let M=(B=J===null||J===void 0?void 0:J.validate)===null||B===void 0?void 0:B.evaluated;if(q.props!==!0)if(M&&!M.dynamicProps){if(M.props!==void 0)q.props=Uq.mergeEvaluated.props(Z,M.props,q.props)}else{let I=Z.var("props",P6._`${L}.evaluated.props`);q.props=Uq.mergeEvaluated.props(Z,I,q.props,P6.Name)}if(q.items!==!0)if(M&&!M.dynamicItems){if(M.items!==void 0)q.items=Uq.mergeEvaluated.items(Z,M.items,q.items)}else{let I=Z.var("items",P6._`${L}.evaluated.items`);q.items=Uq.mergeEvaluated.items(Z,I,q.items,P6.Name)}}}aw.callRef=zq;aw.default=y$0});var qG=F((ew)=>{Object.defineProperty(ew,"__esModule",{value:!0});var f$0=iw(),g$0=Bq(),u$0=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",f$0.default,g$0.default];ew.default=u$0});var XT=F((QT)=>{Object.defineProperty(QT,"__esModule",{value:!0});var Lq=L0(),n4=Lq.operators,Fq={maximum:{okStr:"<=",ok:n4.LTE,fail:n4.GT},minimum:{okStr:">=",ok:n4.GTE,fail:n4.LT},exclusiveMaximum:{okStr:"<",ok:n4.LT,fail:n4.GTE},exclusiveMinimum:{okStr:">",ok:n4.GT,fail:n4.LTE}},d$0={message:({keyword:Q,schemaCode:X})=>Lq.str`must be ${Fq[Q].okStr} ${X}`,params:({keyword:Q,schemaCode:X})=>Lq._`{comparison: ${Fq[Q].okStr}, limit: ${X}}`},c$0={keyword:Object.keys(Fq),type:"number",schemaType:"number",$data:!0,error:d$0,code(Q){let{keyword:X,data:J,schemaCode:Y}=Q;Q.fail$data(Lq._`${J} ${Fq[X].fail} ${Y} || isNaN(${J})`)}};QT.default=c$0});var YT=F((JT)=>{Object.defineProperty(JT,"__esModule",{value:!0});var SX=L0(),p$0={message:({schemaCode:Q})=>SX.str`must be multiple of ${Q}`,params:({schemaCode:Q})=>SX._`{multipleOf: ${Q}}`},n$0={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:p$0,code(Q){let{gen:X,data:J,schemaCode:Y,it:Z}=Q,q=Z.opts.multipleOfPrecision,$=X.let("res"),H=q?SX._`Math.abs(Math.round(${$}) - ${$}) > 1e-${q}`:SX._`${$} !== parseInt(${$})`;Q.fail$data(SX._`(${Y} === 0 || (${$} = ${J}/${Y}, ${H}))`)}};JT.default=n$0});var $T=F((qT)=>{Object.defineProperty(qT,"__esModule",{value:!0});function ZT(Q){let X=Q.length,J=0,Y=0,Z;while(Y<X)if(J++,Z=Q.charCodeAt(Y++),Z>=55296&&Z<=56319&&Y<X){if(Z=Q.charCodeAt(Y),(Z&64512)===56320)Y++}return J}qT.default=ZT;ZT.code='require("ajv/dist/runtime/ucs2length").default'});var KT=F((HT)=>{Object.defineProperty(HT,"__esModule",{value:!0});var b5=L0(),r$0=R0(),s$0=$T(),a$0={message({keyword:Q,schemaCode:X}){let J=Q==="maxLength"?"more":"fewer";return b5.str`must NOT have ${J} than ${X} characters`},params:({schemaCode:Q})=>b5._`{limit: ${Q}}`},t$0={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:a$0,code(Q){let{keyword:X,data:J,schemaCode:Y,it:Z}=Q,q=X==="maxLength"?b5.operators.GT:b5.operators.LT,$=Z.opts.unicode===!1?b5._`${J}.length`:b5._`${(0,r$0.useFunc)(Q.gen,s$0.default)}(${J})`;Q.fail$data(b5._`${$} ${q} ${Y}`)}};HT.default=t$0});var VT=F((WT)=>{Object.defineProperty(WT,"__esModule",{value:!0});var Q30=n6(),X30=R0(),Q9=L0(),J30={message:({schemaCode:Q})=>Q9.str`must match pattern "${Q}"`,params:({schemaCode:Q})=>Q9._`{pattern: ${Q}}`},Y30={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:J30,code(Q){let{gen:X,data:J,$data:Y,schema:Z,schemaCode:q,it:$}=Q,H=$.opts.unicodeRegExp?"u":"";if(Y){let{regExp:K}=$.opts.code,V=K.code==="new RegExp"?Q9._`new RegExp`:(0,X30.useFunc)(X,K),W=X.let("valid");X.try(()=>X.assign(W,Q9._`${V}(${q}, ${H}).test(${J})`),()=>X.assign(W,!1)),Q.fail$data(Q9._`!${W}`)}else{let K=(0,Q30.usePattern)(Q,Z);Q.fail$data(Q9._`!${K}.test(${J})`)}}};WT.default=Y30});var UT=F((GT)=>{Object.defineProperty(GT,"__esModule",{value:!0});var vX=L0(),q30={message({keyword:Q,schemaCode:X}){let J=Q==="maxProperties"?"more":"fewer";return vX.str`must NOT have ${J} than ${X} properties`},params:({schemaCode:Q})=>vX._`{limit: ${Q}}`},$30={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:q30,code(Q){let{keyword:X,data:J,schemaCode:Y}=Q,Z=X==="maxProperties"?vX.operators.GT:vX.operators.LT;Q.fail$data(vX._`Object.keys(${J}).length ${Z} ${Y}`)}};GT.default=$30});var BT=F((zT)=>{Object.defineProperty(zT,"__esModule",{value:!0});var xX=n6(),kX=L0(),K30=R0(),W30={message:({params:{missingProperty:Q}})=>kX.str`must have required property '${Q}'`,params:({params:{missingProperty:Q}})=>kX._`{missingProperty: ${Q}}`},V30={keyword:"required",type:"object",schemaType:"array",$data:!0,error:W30,code(Q){let{gen:X,schema:J,schemaCode:Y,data:Z,$data:q,it:$}=Q,{opts:H}=$;if(!q&&J.length===0)return;let K=J.length>=H.loopRequired;if($.allErrors)V();else W();if(H.strictRequired){let z=Q.parentSchema.properties,{definedProperties:L}=Q.it;for(let B of J)if((z===null||z===void 0?void 0:z[B])===void 0&&!L.has(B)){let M=$.schemaEnv.baseId+$.errSchemaPath,I=`required property "${B}" is not defined at "${M}" (strictRequired)`;(0,K30.checkStrictMode)($,I,$.opts.strictRequired)}}function V(){if(K||q)Q.block$data(kX.nil,G);else for(let z of J)(0,xX.checkReportMissingProp)(Q,z)}function W(){let z=X.let("missing");if(K||q){let L=X.let("valid",!0);Q.block$data(L,()=>U(z,L)),Q.ok(L)}else X.if((0,xX.checkMissingProp)(Q,J,z)),(0,xX.reportMissingProp)(Q,z),X.else()}function G(){X.forOf("prop",Y,(z)=>{Q.setParams({missingProperty:z}),X.if((0,xX.noPropertyInData)(X,Z,z,H.ownProperties),()=>Q.error())})}function U(z,L){Q.setParams({missingProperty:z}),X.forOf(z,Y,()=>{X.assign(L,(0,xX.propertyInData)(X,Z,z,H.ownProperties)),X.if((0,kX.not)(L),()=>{Q.error(),X.break()})},kX.nil)}}};zT.default=V30});var FT=F((LT)=>{Object.defineProperty(LT,"__esModule",{value:!0});var yX=L0(),U30={message({keyword:Q,schemaCode:X}){let J=Q==="maxItems"?"more":"fewer";return yX.str`must NOT have ${J} than ${X} items`},params:({schemaCode:Q})=>yX._`{limit: ${Q}}`},z30={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:U30,code(Q){let{keyword:X,data:J,schemaCode:Y}=Q,Z=X==="maxItems"?yX.operators.GT:yX.operators.LT;Q.fail$data(yX._`${J}.length ${Z} ${Y}`)}};LT.default=z30});var Mq=F((IT)=>{Object.defineProperty(IT,"__esModule",{value:!0});var MT=mV();MT.code='require("ajv/dist/runtime/equal").default';IT.default=MT});var CT=F((PT)=>{Object.defineProperty(PT,"__esModule",{value:!0});var $G=OX(),c1=L0(),F30=R0(),M30=Mq(),I30={message:({params:{i:Q,j:X}})=>c1.str`must NOT have duplicate items (items ## ${X} and ${Q} are identical)`,params:({params:{i:Q,j:X}})=>c1._`{i: ${Q}, j: ${X}}`},P30={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:I30,code(Q){let{gen:X,data:J,$data:Y,schema:Z,parentSchema:q,schemaCode:$,it:H}=Q;if(!Y&&!Z)return;let K=X.let("valid"),V=q.items?(0,$G.getSchemaTypes)(q.items):[];Q.block$data(K,W,c1._`${$} === false`),Q.ok(K);function W(){let L=X.let("i",c1._`${J}.length`),B=X.let("j");Q.setParams({i:L,j:B}),X.assign(K,!0),X.if(c1._`${L} > 1`,()=>(G()?U:z)(L,B))}function G(){return V.length>0&&!V.some((L)=>L==="object"||L==="array")}function U(L,B){let M=X.name("item"),I=(0,$G.checkDataTypes)(V,M,H.opts.strictNumbers,$G.DataType.Wrong),j=X.const("indices",c1._`{}`);X.for(c1._`;${L}--;`,()=>{if(X.let(M,c1._`${J}[${L}]`),X.if(I,c1._`continue`),V.length>1)X.if(c1._`typeof ${M} == "string"`,c1._`${M} += "_"`);X.if(c1._`typeof ${j}[${M}] == "number"`,()=>{X.assign(B,c1._`${j}[${M}]`),Q.error(),X.assign(K,!1).break()}).code(c1._`${j}[${M}] = ${L}`)})}function z(L,B){let M=(0,F30.useFunc)(X,M30.default),I=X.name("outer");X.label(I).for(c1._`;${L}--;`,()=>X.for(c1._`${B} = ${L}; ${B}--;`,()=>X.if(c1._`${M}(${J}[${L}], ${J}[${B}])`,()=>{Q.error(),X.assign(K,!1).break(I)})))}}};PT.default=P30});var jT=F((OT)=>{Object.defineProperty(OT,"__esModule",{value:!0});var HG=L0(),O30=R0(),j30=Mq(),N30={message:"must be equal to constant",params:({schemaCode:Q})=>HG._`{allowedValue: ${Q}}`},R30={keyword:"const",$data:!0,error:N30,code(Q){let{gen:X,data:J,$data:Y,schemaCode:Z,schema:q}=Q;if(Y||q&&typeof q=="object")Q.fail$data(HG._`!${(0,O30.useFunc)(X,j30.default)}(${J}, ${Z})`);else Q.fail(HG._`${q} !== ${J}`)}};OT.default=R30});var RT=F((NT)=>{Object.defineProperty(NT,"__esModule",{value:!0});var hX=L0(),w30=R0(),T30=Mq(),A30={message:"must be equal to one of the allowed values",params:({schemaCode:Q})=>hX._`{allowedValues: ${Q}}`},E30={keyword:"enum",schemaType:"array",$data:!0,error:A30,code(Q){let{gen:X,data:J,$data:Y,schema:Z,schemaCode:q,it:$}=Q;if(!Y&&Z.length===0)throw Error("enum must have non-empty array");let H=Z.length>=$.opts.loopEnum,K,V=()=>K!==null&&K!==void 0?K:K=(0,w30.useFunc)(X,T30.default),W;if(H||Y)W=X.let("valid"),Q.block$data(W,G);else{if(!Array.isArray(Z))throw Error("ajv implementation error");let z=X.const("vSchema",q);W=(0,hX.or)(...Z.map((L,B)=>U(z,B)))}Q.pass(W);function G(){X.assign(W,!1),X.forOf("v",q,(z)=>X.if(hX._`${V()}(${J}, ${z})`,()=>X.assign(W,!0).break()))}function U(z,L){let B=Z[L];return typeof B==="object"&&B!==null?hX._`${V()}(${J}, ${z}[${L}])`:hX._`${J} === ${B}`}}};NT.default=E30});var KG=F((DT)=>{Object.defineProperty(DT,"__esModule",{value:!0});var S30=XT(),v30=YT(),x30=KT(),k30=VT(),y30=UT(),h30=BT(),b30=FT(),f30=CT(),g30=jT(),u30=RT(),m30=[S30.default,v30.default,x30.default,k30.default,y30.default,h30.default,b30.default,f30.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},g30.default,u30.default];DT.default=m30});var VG=F((TT)=>{Object.defineProperty(TT,"__esModule",{value:!0});TT.validateAdditionalItems=void 0;var f5=L0(),WG=R0(),c30={message:({params:{len:Q}})=>f5.str`must NOT have more than ${Q} items`,params:({params:{len:Q}})=>f5._`{limit: ${Q}}`},l30={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:c30,code(Q){let{parentSchema:X,it:J}=Q,{items:Y}=X;if(!Array.isArray(Y)){(0,WG.checkStrictMode)(J,'"additionalItems" is ignored when "items" is not an array of schemas');return}wT(Q,Y)}};function wT(Q,X){let{gen:J,schema:Y,data:Z,keyword:q,it:$}=Q;$.items=!0;let H=J.const("len",f5._`${Z}.length`);if(Y===!1)Q.setParams({len:X.length}),Q.pass(f5._`${H} <= ${X.length}`);else if(typeof Y=="object"&&!(0,WG.alwaysValidSchema)($,Y)){let V=J.var("valid",f5._`${H} <= ${X.length}`);J.if((0,f5.not)(V),()=>K(V)),Q.ok(V)}function K(V){J.forRange("i",X.length,H,(W)=>{if(Q.subschema({keyword:q,dataProp:W,dataPropType:WG.Type.Num},V),!$.allErrors)J.if((0,f5.not)(V),()=>J.break())})}}TT.validateAdditionalItems=wT;TT.default=l30});var GG=F((ST)=>{Object.defineProperty(ST,"__esModule",{value:!0});ST.validateTuple=void 0;var ET=L0(),Iq=R0(),n30=n6(),i30={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(Q){let{schema:X,it:J}=Q;if(Array.isArray(X))return _T(Q,"additionalItems",X);if(J.items=!0,(0,Iq.alwaysValidSchema)(J,X))return;Q.ok((0,n30.validateArray)(Q))}};function _T(Q,X,J=Q.schema){let{gen:Y,parentSchema:Z,data:q,keyword:$,it:H}=Q;if(W(Z),H.opts.unevaluated&&J.length&&H.items!==!0)H.items=Iq.mergeEvaluated.items(Y,J.length,H.items);let K=Y.name("valid"),V=Y.const("len",ET._`${q}.length`);J.forEach((G,U)=>{if((0,Iq.alwaysValidSchema)(H,G))return;Y.if(ET._`${V} > ${U}`,()=>Q.subschema({keyword:$,schemaProp:U,dataProp:U},K)),Q.ok(K)});function W(G){let{opts:U,errSchemaPath:z}=H,L=J.length,B=L===G.minItems&&(L===G.maxItems||G[X]===!1);if(U.strictTuples&&!B){let M=`"${$}" is ${L}-tuple, but minItems or maxItems/${X} are not specified or different at path "${z}"`;(0,Iq.checkStrictMode)(H,M,U.strictTuples)}}}ST.validateTuple=_T;ST.default=i30});var kT=F((xT)=>{Object.defineProperty(xT,"__esModule",{value:!0});var r30=GG(),s30={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:(Q)=>(0,r30.validateTuple)(Q,"items")};xT.default=s30});var bT=F((hT)=>{Object.defineProperty(hT,"__esModule",{value:!0});var yT=L0(),t30=R0(),e30=n6(),QH0=VG(),XH0={message:({params:{len:Q}})=>yT.str`must NOT have more than ${Q} items`,params:({params:{len:Q}})=>yT._`{limit: ${Q}}`},JH0={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:XH0,code(Q){let{schema:X,parentSchema:J,it:Y}=Q,{prefixItems:Z}=J;if(Y.items=!0,(0,t30.alwaysValidSchema)(Y,X))return;if(Z)(0,QH0.validateAdditionalItems)(Q,Z);else Q.ok((0,e30.validateArray)(Q))}};hT.default=JH0});var gT=F((fT)=>{Object.defineProperty(fT,"__esModule",{value:!0});var i6=L0(),Pq=R0(),ZH0={message:({params:{min:Q,max:X}})=>X===void 0?i6.str`must contain at least ${Q} valid item(s)`:i6.str`must contain at least ${Q} and no more than ${X} valid item(s)`,params:({params:{min:Q,max:X}})=>X===void 0?i6._`{minContains: ${Q}}`:i6._`{minContains: ${Q}, maxContains: ${X}}`},qH0={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:ZH0,code(Q){let{gen:X,schema:J,parentSchema:Y,data:Z,it:q}=Q,$,H,{minContains:K,maxContains:V}=Y;if(q.opts.next)$=K===void 0?1:K,H=V;else $=1;let W=X.const("len",i6._`${Z}.length`);if(Q.setParams({min:$,max:H}),H===void 0&&$===0){(0,Pq.checkStrictMode)(q,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(H!==void 0&&$>H){(0,Pq.checkStrictMode)(q,'"minContains" > "maxContains" is always invalid'),Q.fail();return}if((0,Pq.alwaysValidSchema)(q,J)){let B=i6._`${W} >= ${$}`;if(H!==void 0)B=i6._`${B} && ${W} <= ${H}`;Q.pass(B);return}q.items=!0;let G=X.name("valid");if(H===void 0&&$===1)z(G,()=>X.if(G,()=>X.break()));else if($===0){if(X.let(G,!0),H!==void 0)X.if(i6._`${Z}.length > 0`,U)}else X.let(G,!1),U();Q.result(G,()=>Q.reset());function U(){let B=X.name("_valid"),M=X.let("count",0);z(B,()=>X.if(B,()=>L(M)))}function z(B,M){X.forRange("i",0,W,(I)=>{Q.subschema({keyword:"contains",dataProp:I,dataPropType:Pq.Type.Num,compositeRule:!0},B),M()})}function L(B){if(X.code(i6._`${B}++`),H===void 0)X.if(i6._`${B} >= ${$}`,()=>X.assign(G,!0).break());else if(X.if(i6._`${B} > ${H}`,()=>X.assign(G,!1).break()),$===1)X.assign(G,!0);else X.if(i6._`${B} >= ${$}`,()=>X.assign(G,!0))}}};fT.default=qH0});var Cq=F((dT)=>{Object.defineProperty(dT,"__esModule",{value:!0});dT.validateSchemaDeps=dT.validatePropertyDeps=dT.error=void 0;var UG=L0(),HH0=R0(),bX=n6();dT.error={message:({params:{property:Q,depsCount:X,deps:J}})=>{let Y=X===1?"property":"properties";return UG.str`must have ${Y} ${J} when property ${Q} is present`},params:({params:{property:Q,depsCount:X,deps:J,missingProperty:Y}})=>UG._`{property: ${Q},
20
+ missingProperty: ${Y},
21
+ depsCount: ${X},
22
+ deps: ${J}}`};var KH0={keyword:"dependencies",type:"object",schemaType:"object",error:dT.error,code(Q){let[X,J]=WH0(Q);uT(Q,X),mT(Q,J)}};function WH0({schema:Q}){let X={},J={};for(let Y in Q){if(Y==="__proto__")continue;let Z=Array.isArray(Q[Y])?X:J;Z[Y]=Q[Y]}return[X,J]}function uT(Q,X=Q.schema){let{gen:J,data:Y,it:Z}=Q;if(Object.keys(X).length===0)return;let q=J.let("missing");for(let $ in X){let H=X[$];if(H.length===0)continue;let K=(0,bX.propertyInData)(J,Y,$,Z.opts.ownProperties);if(Q.setParams({property:$,depsCount:H.length,deps:H.join(", ")}),Z.allErrors)J.if(K,()=>{for(let V of H)(0,bX.checkReportMissingProp)(Q,V)});else J.if(UG._`${K} && (${(0,bX.checkMissingProp)(Q,H,q)})`),(0,bX.reportMissingProp)(Q,q),J.else()}}dT.validatePropertyDeps=uT;function mT(Q,X=Q.schema){let{gen:J,data:Y,keyword:Z,it:q}=Q,$=J.name("valid");for(let H in X){if((0,HH0.alwaysValidSchema)(q,X[H]))continue;J.if((0,bX.propertyInData)(J,Y,H,q.opts.ownProperties),()=>{let K=Q.subschema({keyword:Z,schemaProp:H},$);Q.mergeValidEvaluated(K,$)},()=>J.var($,!0)),Q.ok($)}}dT.validateSchemaDeps=mT;dT.default=KH0});var iT=F((nT)=>{Object.defineProperty(nT,"__esModule",{value:!0});var pT=L0(),UH0=R0(),zH0={message:"property name must be valid",params:({params:Q})=>pT._`{propertyName: ${Q.propertyName}}`},BH0={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:zH0,code(Q){let{gen:X,schema:J,data:Y,it:Z}=Q;if((0,UH0.alwaysValidSchema)(Z,J))return;let q=X.name("valid");X.forIn("key",Y,($)=>{Q.setParams({propertyName:$}),Q.subschema({keyword:"propertyNames",data:$,dataTypes:["string"],propertyName:$,compositeRule:!0},q),X.if((0,pT.not)(q),()=>{if(Q.error(!0),!Z.allErrors)X.break()})}),Q.ok(q)}};nT.default=BH0});var zG=F((oT)=>{Object.defineProperty(oT,"__esModule",{value:!0});var Oq=n6(),L8=L0(),FH0=p6(),jq=R0(),MH0={message:"must NOT have additional properties",params:({params:Q})=>L8._`{additionalProperty: ${Q.additionalProperty}}`},IH0={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:MH0,code(Q){let{gen:X,schema:J,parentSchema:Y,data:Z,errsCount:q,it:$}=Q;if(!q)throw Error("ajv implementation error");let{allErrors:H,opts:K}=$;if($.props=!0,K.removeAdditional!=="all"&&(0,jq.alwaysValidSchema)($,J))return;let V=(0,Oq.allSchemaProperties)(Y.properties),W=(0,Oq.allSchemaProperties)(Y.patternProperties);G(),Q.ok(L8._`${q} === ${FH0.default.errors}`);function G(){X.forIn("key",Z,(M)=>{if(!V.length&&!W.length)L(M);else X.if(U(M),()=>L(M))})}function U(M){let I;if(V.length>8){let j=(0,jq.schemaRefOrVal)($,Y.properties,"properties");I=(0,Oq.isOwnProperty)(X,j,M)}else if(V.length)I=(0,L8.or)(...V.map((j)=>L8._`${M} === ${j}`));else I=L8.nil;if(W.length)I=(0,L8.or)(I,...W.map((j)=>L8._`${(0,Oq.usePattern)(Q,j)}.test(${M})`));return(0,L8.not)(I)}function z(M){X.code(L8._`delete ${Z}[${M}]`)}function L(M){if(K.removeAdditional==="all"||K.removeAdditional&&J===!1){z(M);return}if(J===!1){if(Q.setParams({additionalProperty:M}),Q.error(),!H)X.break();return}if(typeof J=="object"&&!(0,jq.alwaysValidSchema)($,J)){let I=X.name("valid");if(K.removeAdditional==="failing")B(M,I,!1),X.if((0,L8.not)(I),()=>{Q.reset(),z(M)});else if(B(M,I),!H)X.if((0,L8.not)(I),()=>X.break())}}function B(M,I,j){let D={keyword:"additionalProperties",dataProp:M,dataPropType:jq.Type.Str};if(j===!1)Object.assign(D,{compositeRule:!0,createErrors:!1,allErrors:!1});Q.subschema(D,I)}}};oT.default=IH0});var tT=F((aT)=>{Object.defineProperty(aT,"__esModule",{value:!0});var CH0=s7(),rT=n6(),BG=R0(),sT=zG(),OH0={keyword:"properties",type:"object",schemaType:"object",code(Q){let{gen:X,schema:J,parentSchema:Y,data:Z,it:q}=Q;if(q.opts.removeAdditional==="all"&&Y.additionalProperties===void 0)sT.default.code(new CH0.KeywordCxt(q,sT.default,"additionalProperties"));let $=(0,rT.allSchemaProperties)(J);for(let G of $)q.definedProperties.add(G);if(q.opts.unevaluated&&$.length&&q.props!==!0)q.props=BG.mergeEvaluated.props(X,(0,BG.toHash)($),q.props);let H=$.filter((G)=>!(0,BG.alwaysValidSchema)(q,J[G]));if(H.length===0)return;let K=X.name("valid");for(let G of H){if(V(G))W(G);else{if(X.if((0,rT.propertyInData)(X,Z,G,q.opts.ownProperties)),W(G),!q.allErrors)X.else().var(K,!0);X.endIf()}Q.it.definedProperties.add(G),Q.ok(K)}function V(G){return q.opts.useDefaults&&!q.compositeRule&&J[G].default!==void 0}function W(G){Q.subschema({keyword:"properties",schemaProp:G,dataProp:G},K)}}};aT.default=OH0});var YA=F((JA)=>{Object.defineProperty(JA,"__esModule",{value:!0});var eT=n6(),Nq=L0(),QA=R0(),XA=R0(),NH0={keyword:"patternProperties",type:"object",schemaType:"object",code(Q){let{gen:X,schema:J,data:Y,parentSchema:Z,it:q}=Q,{opts:$}=q,H=(0,eT.allSchemaProperties)(J),K=H.filter((B)=>(0,QA.alwaysValidSchema)(q,J[B]));if(H.length===0||K.length===H.length&&(!q.opts.unevaluated||q.props===!0))return;let V=$.strictSchema&&!$.allowMatchingProperties&&Z.properties,W=X.name("valid");if(q.props!==!0&&!(q.props instanceof Nq.Name))q.props=(0,XA.evaluatedPropsToName)(X,q.props);let{props:G}=q;U();function U(){for(let B of H){if(V)z(B);if(q.allErrors)L(B);else X.var(W,!0),L(B),X.if(W)}}function z(B){for(let M in V)if(new RegExp(B).test(M))(0,QA.checkStrictMode)(q,`property ${M} matches pattern ${B} (use allowMatchingProperties)`)}function L(B){X.forIn("key",Y,(M)=>{X.if(Nq._`${(0,eT.usePattern)(Q,B)}.test(${M})`,()=>{let I=K.includes(B);if(!I)Q.subschema({keyword:"patternProperties",schemaProp:B,dataProp:M,dataPropType:XA.Type.Str},W);if(q.opts.unevaluated&&G!==!0)X.assign(Nq._`${G}[${M}]`,!0);else if(!I&&!q.allErrors)X.if((0,Nq.not)(W),()=>X.break())})})}}};JA.default=NH0});var qA=F((ZA)=>{Object.defineProperty(ZA,"__esModule",{value:!0});var DH0=R0(),wH0={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(Q){let{gen:X,schema:J,it:Y}=Q;if((0,DH0.alwaysValidSchema)(Y,J)){Q.fail();return}let Z=X.name("valid");Q.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},Z),Q.failResult(Z,()=>Q.reset(),()=>Q.error())},error:{message:"must NOT be valid"}};ZA.default=wH0});var HA=F(($A)=>{Object.defineProperty($A,"__esModule",{value:!0});var AH0=n6(),EH0={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:AH0.validateUnion,error:{message:"must match a schema in anyOf"}};$A.default=EH0});var WA=F((KA)=>{Object.defineProperty(KA,"__esModule",{value:!0});var Rq=L0(),SH0=R0(),vH0={message:"must match exactly one schema in oneOf",params:({params:Q})=>Rq._`{passingSchemas: ${Q.passing}}`},xH0={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:vH0,code(Q){let{gen:X,schema:J,parentSchema:Y,it:Z}=Q;if(!Array.isArray(J))throw Error("ajv implementation error");if(Z.opts.discriminator&&Y.discriminator)return;let q=J,$=X.let("valid",!1),H=X.let("passing",null),K=X.name("_valid");Q.setParams({passing:H}),X.block(V),Q.result($,()=>Q.reset(),()=>Q.error(!0));function V(){q.forEach((W,G)=>{let U;if((0,SH0.alwaysValidSchema)(Z,W))X.var(K,!0);else U=Q.subschema({keyword:"oneOf",schemaProp:G,compositeRule:!0},K);if(G>0)X.if(Rq._`${K} && ${$}`).assign($,!1).assign(H,Rq._`[${H}, ${G}]`).else();X.if(K,()=>{if(X.assign($,!0),X.assign(H,G),U)Q.mergeEvaluated(U,Rq.Name)})})}}};KA.default=xH0});var GA=F((VA)=>{Object.defineProperty(VA,"__esModule",{value:!0});var yH0=R0(),hH0={keyword:"allOf",schemaType:"array",code(Q){let{gen:X,schema:J,it:Y}=Q;if(!Array.isArray(J))throw Error("ajv implementation error");let Z=X.name("valid");J.forEach((q,$)=>{if((0,yH0.alwaysValidSchema)(Y,q))return;let H=Q.subschema({keyword:"allOf",schemaProp:$},Z);Q.ok(Z),Q.mergeEvaluated(H)})}};VA.default=hH0});var LA=F((BA)=>{Object.defineProperty(BA,"__esModule",{value:!0});var Dq=L0(),zA=R0(),fH0={message:({params:Q})=>Dq.str`must match "${Q.ifClause}" schema`,params:({params:Q})=>Dq._`{failingKeyword: ${Q.ifClause}}`},gH0={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:fH0,code(Q){let{gen:X,parentSchema:J,it:Y}=Q;if(J.then===void 0&&J.else===void 0)(0,zA.checkStrictMode)(Y,'"if" without "then" and "else" is ignored');let Z=UA(Y,"then"),q=UA(Y,"else");if(!Z&&!q)return;let $=X.let("valid",!0),H=X.name("_valid");if(K(),Q.reset(),Z&&q){let W=X.let("ifClause");Q.setParams({ifClause:W}),X.if(H,V("then",W),V("else",W))}else if(Z)X.if(H,V("then"));else X.if((0,Dq.not)(H),V("else"));Q.pass($,()=>Q.error(!0));function K(){let W=Q.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},H);Q.mergeEvaluated(W)}function V(W,G){return()=>{let U=Q.subschema({keyword:W},H);if(X.assign($,H),Q.mergeValidEvaluated(U,$),G)X.assign(G,Dq._`${W}`);else Q.setParams({ifClause:W})}}}};function UA(Q,X){let J=Q.schema[X];return J!==void 0&&!(0,zA.alwaysValidSchema)(Q,J)}BA.default=gH0});var MA=F((FA)=>{Object.defineProperty(FA,"__esModule",{value:!0});var mH0=R0(),dH0={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:Q,parentSchema:X,it:J}){if(X.if===void 0)(0,mH0.checkStrictMode)(J,`"${Q}" without "if" is ignored`)}};FA.default=dH0});var LG=F((IA)=>{Object.defineProperty(IA,"__esModule",{value:!0});var lH0=VG(),pH0=kT(),nH0=GG(),iH0=bT(),oH0=gT(),rH0=Cq(),sH0=iT(),aH0=zG(),tH0=tT(),eH0=YA(),QK0=qA(),XK0=HA(),JK0=WA(),YK0=GA(),ZK0=LA(),qK0=MA();function $K0(Q=!1){let X=[QK0.default,XK0.default,JK0.default,YK0.default,ZK0.default,qK0.default,sH0.default,aH0.default,rH0.default,tH0.default,eH0.default];if(Q)X.push(pH0.default,iH0.default);else X.push(lH0.default,nH0.default);return X.push(oH0.default),X}IA.default=$K0});var MG=F((OA)=>{Object.defineProperty(OA,"__esModule",{value:!0});OA.dynamicAnchor=void 0;var FG=L0(),KK0=p6(),PA=TX(),WK0=Bq(),VK0={keyword:"$dynamicAnchor",schemaType:"string",code:(Q)=>CA(Q,Q.schema)};function CA(Q,X){let{gen:J,it:Y}=Q;Y.schemaEnv.root.dynamicAnchors[X]=!0;let Z=FG._`${KK0.default.dynamicAnchors}${(0,FG.getProperty)(X)}`,q=Y.errSchemaPath==="#"?Y.validateName:GK0(Q);J.if(FG._`!${Z}`,()=>J.assign(Z,q))}OA.dynamicAnchor=CA;function GK0(Q){let{schemaEnv:X,schema:J,self:Y}=Q.it,{root:Z,baseId:q,localRefs:$,meta:H}=X.root,{schemaId:K}=Y.opts,V=new PA.SchemaEnv({schema:J,schemaId:K,root:Z,baseId:q,localRefs:$,meta:H});return PA.compileSchema.call(Y,V),(0,WK0.getValidate)(Q,V)}OA.default=VK0});var IG=F((wA)=>{Object.defineProperty(wA,"__esModule",{value:!0});wA.dynamicRef=void 0;var NA=L0(),zK0=p6(),RA=Bq(),BK0={keyword:"$dynamicRef",schemaType:"string",code:(Q)=>DA(Q,Q.schema)};function DA(Q,X){let{gen:J,keyword:Y,it:Z}=Q;if(X[0]!=="#")throw Error(`"${Y}" only supports hash fragment reference`);let q=X.slice(1);if(Z.allErrors)$();else{let K=J.let("valid",!1);$(K),Q.ok(K)}function $(K){if(Z.schemaEnv.root.dynamicAnchors[q]){let V=J.let("_v",NA._`${zK0.default.dynamicAnchors}${(0,NA.getProperty)(q)}`);J.if(V,H(V,K),H(Z.validateName,K))}else H(Z.validateName,K)()}function H(K,V){return V?()=>J.block(()=>{(0,RA.callRef)(Q,K),J.let(V,!0)}):()=>(0,RA.callRef)(Q,K)}}wA.dynamicRef=DA;wA.default=BK0});var EA=F((AA)=>{Object.defineProperty(AA,"__esModule",{value:!0});var FK0=MG(),MK0=R0(),IK0={keyword:"$recursiveAnchor",schemaType:"boolean",code(Q){if(Q.schema)(0,FK0.dynamicAnchor)(Q,"");else(0,MK0.checkStrictMode)(Q.it,"$recursiveAnchor: false is ignored")}};AA.default=IK0});var SA=F((_A)=>{Object.defineProperty(_A,"__esModule",{value:!0});var CK0=IG(),OK0={keyword:"$recursiveRef",schemaType:"string",code:(Q)=>(0,CK0.dynamicRef)(Q,Q.schema)};_A.default=OK0});var xA=F((vA)=>{Object.defineProperty(vA,"__esModule",{value:!0});var NK0=MG(),RK0=IG(),DK0=EA(),wK0=SA(),TK0=[NK0.default,RK0.default,DK0.default,wK0.default];vA.default=TK0});var hA=F((yA)=>{Object.defineProperty(yA,"__esModule",{value:!0});var kA=Cq(),EK0={keyword:"dependentRequired",type:"object",schemaType:"object",error:kA.error,code:(Q)=>(0,kA.validatePropertyDeps)(Q)};yA.default=EK0});var fA=F((bA)=>{Object.defineProperty(bA,"__esModule",{value:!0});var SK0=Cq(),vK0={keyword:"dependentSchemas",type:"object",schemaType:"object",code:(Q)=>(0,SK0.validateSchemaDeps)(Q)};bA.default=vK0});var uA=F((gA)=>{Object.defineProperty(gA,"__esModule",{value:!0});var kK0=R0(),yK0={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:Q,parentSchema:X,it:J}){if(X.contains===void 0)(0,kK0.checkStrictMode)(J,`"${Q}" without "contains" is ignored`)}};gA.default=yK0});var dA=F((mA)=>{Object.defineProperty(mA,"__esModule",{value:!0});var bK0=hA(),fK0=fA(),gK0=uA(),uK0=[bK0.default,fK0.default,gK0.default];mA.default=uK0});var pA=F((lA)=>{Object.defineProperty(lA,"__esModule",{value:!0});var i4=L0(),cA=R0(),dK0=p6(),cK0={message:"must NOT have unevaluated properties",params:({params:Q})=>i4._`{unevaluatedProperty: ${Q.unevaluatedProperty}}`},lK0={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:cK0,code(Q){let{gen:X,schema:J,data:Y,errsCount:Z,it:q}=Q;if(!Z)throw Error("ajv implementation error");let{allErrors:$,props:H}=q;if(H instanceof i4.Name)X.if(i4._`${H} !== true`,()=>X.forIn("key",Y,(G)=>X.if(V(H,G),()=>K(G))));else if(H!==!0)X.forIn("key",Y,(G)=>H===void 0?K(G):X.if(W(H,G),()=>K(G)));q.props=!0,Q.ok(i4._`${Z} === ${dK0.default.errors}`);function K(G){if(J===!1){if(Q.setParams({unevaluatedProperty:G}),Q.error(),!$)X.break();return}if(!(0,cA.alwaysValidSchema)(q,J)){let U=X.name("valid");if(Q.subschema({keyword:"unevaluatedProperties",dataProp:G,dataPropType:cA.Type.Str},U),!$)X.if((0,i4.not)(U),()=>X.break())}}function V(G,U){return i4._`!${G} || !${G}[${U}]`}function W(G,U){let z=[];for(let L in G)if(G[L]===!0)z.push(i4._`${U} !== ${L}`);return(0,i4.and)(...z)}}};lA.default=lK0});var oA=F((iA)=>{Object.defineProperty(iA,"__esModule",{value:!0});var g5=L0(),nA=R0(),nK0={message:({params:{len:Q}})=>g5.str`must NOT have more than ${Q} items`,params:({params:{len:Q}})=>g5._`{limit: ${Q}}`},iK0={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:nK0,code(Q){let{gen:X,schema:J,data:Y,it:Z}=Q,q=Z.items||0;if(q===!0)return;let $=X.const("len",g5._`${Y}.length`);if(J===!1)Q.setParams({len:q}),Q.fail(g5._`${$} > ${q}`);else if(typeof J=="object"&&!(0,nA.alwaysValidSchema)(Z,J)){let K=X.var("valid",g5._`${$} <= ${q}`);X.if((0,g5.not)(K),()=>H(K,q)),Q.ok(K)}Z.items=!0;function H(K,V){X.forRange("i",V,$,(W)=>{if(Q.subschema({keyword:"unevaluatedItems",dataProp:W,dataPropType:nA.Type.Num},K),!Z.allErrors)X.if((0,g5.not)(K),()=>X.break())})}}};iA.default=iK0});var sA=F((rA)=>{Object.defineProperty(rA,"__esModule",{value:!0});var rK0=pA(),sK0=oA(),aK0=[rK0.default,sK0.default];rA.default=aK0});var tA=F((aA)=>{Object.defineProperty(aA,"__esModule",{value:!0});var F1=L0(),eK0={message:({schemaCode:Q})=>F1.str`must match format "${Q}"`,params:({schemaCode:Q})=>F1._`{format: ${Q}}`},QW0={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:eK0,code(Q,X){let{gen:J,data:Y,$data:Z,schema:q,schemaCode:$,it:H}=Q,{opts:K,errSchemaPath:V,schemaEnv:W,self:G}=H;if(!K.validateFormats)return;if(Z)U();else z();function U(){let L=J.scopeValue("formats",{ref:G.formats,code:K.code.formats}),B=J.const("fDef",F1._`${L}[${$}]`),M=J.let("fType"),I=J.let("format");J.if(F1._`typeof ${B} == "object" && !(${B} instanceof RegExp)`,()=>J.assign(M,F1._`${B}.type || "string"`).assign(I,F1._`${B}.validate`),()=>J.assign(M,F1._`"string"`).assign(I,B)),Q.fail$data((0,F1.or)(j(),D()));function j(){if(K.strictSchema===!1)return F1.nil;return F1._`${$} && !${I}`}function D(){let N=W.$async?F1._`(${B}.async ? await ${I}(${Y}) : ${I}(${Y}))`:F1._`${I}(${Y})`,k=F1._`(typeof ${I} == "function" ? ${N} : ${I}.test(${Y}))`;return F1._`${I} && ${I} !== true && ${M} === ${X} && !${k}`}}function z(){let L=G.formats[q];if(!L){j();return}if(L===!0)return;let[B,M,I]=D(L);if(B===X)Q.pass(N());function j(){if(K.strictSchema===!1){G.logger.warn(k());return}throw Error(k());function k(){return`unknown format "${q}" ignored in schema at path "${V}"`}}function D(k){let f=k instanceof RegExp?(0,F1.regexpCode)(k):K.code.formats?F1._`${K.code.formats}${(0,F1.getProperty)(q)}`:void 0,S=J.scopeValue("formats",{key:q,ref:k,code:f});if(typeof k=="object"&&!(k instanceof RegExp))return[k.type||"string",k.validate,F1._`${S}.validate`];return["string",k,S]}function N(){if(typeof L=="object"&&!(L instanceof RegExp)&&L.async){if(!W.$async)throw Error("async format in sync schema");return F1._`await ${I}(${Y})`}return typeof M=="function"?F1._`${I}(${Y})`:F1._`${I}.test(${Y})`}}}};aA.default=QW0});var PG=F((eA)=>{Object.defineProperty(eA,"__esModule",{value:!0});var JW0=tA(),YW0=[JW0.default];eA.default=YW0});var CG=F((QE)=>{Object.defineProperty(QE,"__esModule",{value:!0});QE.contentVocabulary=QE.metadataVocabulary=void 0;QE.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];QE.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var ZE=F((YE)=>{Object.defineProperty(YE,"__esModule",{value:!0});var $W0=qG(),HW0=KG(),KW0=LG(),WW0=xA(),VW0=dA(),GW0=sA(),UW0=PG(),JE=CG(),zW0=[WW0.default,$W0.default,HW0.default,(0,KW0.default)(!0),UW0.default,JE.metadataVocabulary,JE.contentVocabulary,VW0.default,GW0.default];YE.default=zW0});var KE=F(($E)=>{Object.defineProperty($E,"__esModule",{value:!0});$E.DiscrError=void 0;var qE;(function(Q){Q.Tag="tag",Q.Mapping="mapping"})(qE||($E.DiscrError=qE={}))});var jG=F((VE)=>{Object.defineProperty(VE,"__esModule",{value:!0});var X9=L0(),OG=KE(),WE=TX(),LW0=a7(),FW0=R0(),MW0={message:({params:{discrError:Q,tagName:X}})=>Q===OG.DiscrError.Tag?`tag "${X}" must be string`:`value of tag "${X}" must be in oneOf`,params:({params:{discrError:Q,tag:X,tagName:J}})=>X9._`{error: ${Q}, tag: ${J}, tagValue: ${X}}`},IW0={keyword:"discriminator",type:"object",schemaType:"object",error:MW0,code(Q){let{gen:X,data:J,schema:Y,parentSchema:Z,it:q}=Q,{oneOf:$}=Z;if(!q.opts.discriminator)throw Error("discriminator: requires discriminator option");let H=Y.propertyName;if(typeof H!="string")throw Error("discriminator: requires propertyName");if(Y.mapping)throw Error("discriminator: mapping is not supported");if(!$)throw Error("discriminator: requires oneOf keyword");let K=X.let("valid",!1),V=X.const("tag",X9._`${J}${(0,X9.getProperty)(H)}`);X.if(X9._`typeof ${V} == "string"`,()=>W(),()=>Q.error(!1,{discrError:OG.DiscrError.Tag,tag:V,tagName:H})),Q.ok(K);function W(){let z=U();X.if(!1);for(let L in z)X.elseIf(X9._`${V} === ${L}`),X.assign(K,G(z[L]));X.else(),Q.error(!1,{discrError:OG.DiscrError.Mapping,tag:V,tagName:H}),X.endIf()}function G(z){let L=X.name("valid"),B=Q.subschema({keyword:"oneOf",schemaProp:z},L);return Q.mergeEvaluated(B,X9.Name),L}function U(){var z;let L={},B=I(Z),M=!0;for(let N=0;N<$.length;N++){let k=$[N];if((k===null||k===void 0?void 0:k.$ref)&&!(0,FW0.schemaHasRulesButRef)(k,q.self.RULES)){let S=k.$ref;if(k=WE.resolveRef.call(q.self,q.schemaEnv.root,q.baseId,S),k instanceof WE.SchemaEnv)k=k.schema;if(k===void 0)throw new LW0.default(q.opts.uriResolver,q.baseId,S)}let f=(z=k===null||k===void 0?void 0:k.properties)===null||z===void 0?void 0:z[H];if(typeof f!="object")throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${H}"`);M=M&&(B||I(k)),j(f,N)}if(!M)throw Error(`discriminator: "${H}" must be required`);return L;function I({required:N}){return Array.isArray(N)&&N.includes(H)}function j(N,k){if(N.const)D(N.const,k);else if(N.enum)for(let f of N.enum)D(f,k);else throw Error(`discriminator: "properties/${H}" must have "const" or "enum"`)}function D(N,k){if(typeof N!="string"||N in L)throw Error(`discriminator: "${H}" values must be unique strings`);L[N]=k}}}};VE.default=IW0});var GE=F((qe0,CW0)=>{CW0.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var UE=F(($e0,OW0)=>{OW0.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var zE=F((He0,jW0)=>{jW0.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var BE=F((Ke0,NW0)=>{NW0.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var LE=F((We0,RW0)=>{RW0.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var FE=F((Ve0,DW0)=>{DW0.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var ME=F((Ge0,wW0)=>{wW0.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var IE=F((Ue0,TW0)=>{TW0.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var CE=F((PE)=>{Object.defineProperty(PE,"__esModule",{value:!0});var AW0=GE(),EW0=UE(),_W0=zE(),SW0=BE(),vW0=LE(),xW0=FE(),kW0=ME(),yW0=IE(),hW0=["/properties"];function bW0(Q){return[AW0,EW0,_W0,SW0,vW0,X(this,xW0),kW0,X(this,yW0)].forEach((J)=>this.addMetaSchema(J,void 0,!1)),this;function X(J,Y){return Q?J.$dataMetaSchema(Y,hW0):Y}}PE.default=bW0});var OE=F((C6,RG)=>{Object.defineProperty(C6,"__esModule",{value:!0});C6.MissingRefError=C6.ValidationError=C6.CodeGen=C6.Name=C6.nil=C6.stringify=C6.str=C6._=C6.KeywordCxt=C6.Ajv2020=void 0;var gW0=ZG(),uW0=ZE(),mW0=jG(),dW0=CE(),NG="https://json-schema.org/draft/2020-12/schema";class fX extends gW0.default{constructor(Q={}){super({...Q,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){if(super._addVocabularies(),uW0.default.forEach((Q)=>this.addVocabulary(Q)),this.opts.discriminator)this.addKeyword(mW0.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:Q,meta:X}=this.opts;if(!X)return;dW0.default.call(this,Q),this.refs["http://json-schema.org/schema"]=NG}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(NG)?NG:void 0)}}C6.Ajv2020=fX;RG.exports=C6=fX;RG.exports.Ajv2020=fX;Object.defineProperty(C6,"__esModule",{value:!0});C6.default=fX;var cW0=s7();Object.defineProperty(C6,"KeywordCxt",{enumerable:!0,get:function(){return cW0.KeywordCxt}});var J9=L0();Object.defineProperty(C6,"_",{enumerable:!0,get:function(){return J9._}});Object.defineProperty(C6,"str",{enumerable:!0,get:function(){return J9.str}});Object.defineProperty(C6,"stringify",{enumerable:!0,get:function(){return J9.stringify}});Object.defineProperty(C6,"nil",{enumerable:!0,get:function(){return J9.nil}});Object.defineProperty(C6,"Name",{enumerable:!0,get:function(){return J9.Name}});Object.defineProperty(C6,"CodeGen",{enumerable:!0,get:function(){return J9.CodeGen}});var lW0=DX();Object.defineProperty(C6,"ValidationError",{enumerable:!0,get:function(){return lW0.default}});var pW0=a7();Object.defineProperty(C6,"MissingRefError",{enumerable:!0,get:function(){return pW0.default}})});var SE=F((EE)=>{Object.defineProperty(EE,"__esModule",{value:!0});EE.formatNames=EE.fastFormats=EE.fullFormats=void 0;function h8(Q,X){return{validate:Q,compare:X}}EE.fullFormats={date:h8(DE,AG),time:h8(wG(!0),EG),"date-time":h8(jE(!0),TE),"iso-time":h8(wG(),wE),"iso-date-time":h8(jE(),AE),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:eW0,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:$V0,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:QV0,int32:{type:"number",validate:YV0},int64:{type:"number",validate:ZV0},float:{type:"number",validate:RE},double:{type:"number",validate:RE},password:!0,binary:!0};EE.fastFormats={...EE.fullFormats,date:h8(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,AG),time:h8(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,EG),"date-time":h8(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,TE),"iso-time":h8(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,wE),"iso-date-time":h8(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,AE),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};EE.formatNames=Object.keys(EE.fullFormats);function oW0(Q){return Q%4===0&&(Q%100!==0||Q%400===0)}var rW0=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,sW0=[0,31,28,31,30,31,30,31,31,30,31,30,31];function DE(Q){let X=rW0.exec(Q);if(!X)return!1;let J=+X[1],Y=+X[2],Z=+X[3];return Y>=1&&Y<=12&&Z>=1&&Z<=(Y===2&&oW0(J)?29:sW0[Y])}function AG(Q,X){if(!(Q&&X))return;if(Q>X)return 1;if(Q<X)return-1;return 0}var DG=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function wG(Q){return function(J){let Y=DG.exec(J);if(!Y)return!1;let Z=+Y[1],q=+Y[2],$=+Y[3],H=Y[4],K=Y[5]==="-"?-1:1,V=+(Y[6]||0),W=+(Y[7]||0);if(V>23||W>59||Q&&!H)return!1;if(Z<=23&&q<=59&&$<60)return!0;let G=q-W*K,U=Z-V*K-(G<0?1:0);return(U===23||U===-1)&&(G===59||G===-1)&&$<61}}function EG(Q,X){if(!(Q&&X))return;let J=new Date("2020-01-01T"+Q).valueOf(),Y=new Date("2020-01-01T"+X).valueOf();if(!(J&&Y))return;return J-Y}function wE(Q,X){if(!(Q&&X))return;let J=DG.exec(Q),Y=DG.exec(X);if(!(J&&Y))return;if(Q=J[1]+J[2]+J[3],X=Y[1]+Y[2]+Y[3],Q>X)return 1;if(Q<X)return-1;return 0}var TG=/t|\s/i;function jE(Q){let X=wG(Q);return function(Y){let Z=Y.split(TG);return Z.length===2&&DE(Z[0])&&X(Z[1])}}function TE(Q,X){if(!(Q&&X))return;let J=new Date(Q).valueOf(),Y=new Date(X).valueOf();if(!(J&&Y))return;return J-Y}function AE(Q,X){if(!(Q&&X))return;let[J,Y]=Q.split(TG),[Z,q]=X.split(TG),$=AG(J,Z);if($===void 0)return;return $||EG(Y,q)}var aW0=/\/|:/,tW0=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function eW0(Q){return aW0.test(Q)&&tW0.test(Q)}var NE=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function QV0(Q){return NE.lastIndex=0,NE.test(Q)}var XV0=-2147483648,JV0=2147483647;function YV0(Q){return Number.isInteger(Q)&&Q<=JV0&&Q>=XV0}function ZV0(Q){return Number.isInteger(Q)}function RE(){return!0}var qV0=/[^\\]\\Z/;function $V0(Q){if(qV0.test(Q))return!1;try{return new RegExp(Q),!0}catch(X){return!1}}});var kE=F((xE)=>{Object.defineProperty(xE,"__esModule",{value:!0});var KV0=qG(),WV0=KG(),VV0=LG(),GV0=PG(),vE=CG(),UV0=[KV0.default,WV0.default,(0,VV0.default)(),GV0.default,vE.metadataVocabulary,vE.contentVocabulary];xE.default=UV0});var yE=F((Re0,BV0)=>{BV0.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var bE=F((O6,SG)=>{Object.defineProperty(O6,"__esModule",{value:!0});O6.MissingRefError=O6.ValidationError=O6.CodeGen=O6.Name=O6.nil=O6.stringify=O6.str=O6._=O6.KeywordCxt=O6.Ajv=void 0;var LV0=ZG(),FV0=kE(),MV0=jG(),hE=yE(),IV0=["/properties"],wq="http://json-schema.org/draft-07/schema";class gX extends LV0.default{_addVocabularies(){if(super._addVocabularies(),FV0.default.forEach((Q)=>this.addVocabulary(Q)),this.opts.discriminator)this.addKeyword(MV0.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let Q=this.opts.$data?this.$dataMetaSchema(hE,IV0):hE;this.addMetaSchema(Q,wq,!1),this.refs["http://json-schema.org/schema"]=wq}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(wq)?wq:void 0)}}O6.Ajv=gX;SG.exports=O6=gX;SG.exports.Ajv=gX;Object.defineProperty(O6,"__esModule",{value:!0});O6.default=gX;var PV0=s7();Object.defineProperty(O6,"KeywordCxt",{enumerable:!0,get:function(){return PV0.KeywordCxt}});var Y9=L0();Object.defineProperty(O6,"_",{enumerable:!0,get:function(){return Y9._}});Object.defineProperty(O6,"str",{enumerable:!0,get:function(){return Y9.str}});Object.defineProperty(O6,"stringify",{enumerable:!0,get:function(){return Y9.stringify}});Object.defineProperty(O6,"nil",{enumerable:!0,get:function(){return Y9.nil}});Object.defineProperty(O6,"Name",{enumerable:!0,get:function(){return Y9.Name}});Object.defineProperty(O6,"CodeGen",{enumerable:!0,get:function(){return Y9.CodeGen}});var CV0=DX();Object.defineProperty(O6,"ValidationError",{enumerable:!0,get:function(){return CV0.default}});var OV0=a7();Object.defineProperty(O6,"MissingRefError",{enumerable:!0,get:function(){return OV0.default}})});var gE=F((fE)=>{Object.defineProperty(fE,"__esModule",{value:!0});fE.formatLimitDefinition=void 0;var RV0=bE(),F8=L0(),o4=F8.operators,Tq={formatMaximum:{okStr:"<=",ok:o4.LTE,fail:o4.GT},formatMinimum:{okStr:">=",ok:o4.GTE,fail:o4.LT},formatExclusiveMaximum:{okStr:"<",ok:o4.LT,fail:o4.GTE},formatExclusiveMinimum:{okStr:">",ok:o4.GT,fail:o4.LTE}},DV0={message:({keyword:Q,schemaCode:X})=>F8.str`should be ${Tq[Q].okStr} ${X}`,params:({keyword:Q,schemaCode:X})=>F8._`{comparison: ${Tq[Q].okStr}, limit: ${X}}`};fE.formatLimitDefinition={keyword:Object.keys(Tq),type:"string",schemaType:"string",$data:!0,error:DV0,code(Q){let{gen:X,data:J,schemaCode:Y,keyword:Z,it:q}=Q,{opts:$,self:H}=q;if(!$.validateFormats)return;let K=new RV0.KeywordCxt(q,H.RULES.all.format.definition,"format");if(K.$data)V();else W();function V(){let U=X.scopeValue("formats",{ref:H.formats,code:$.code.formats}),z=X.const("fmt",F8._`${U}[${K.schemaCode}]`);Q.fail$data((0,F8.or)(F8._`typeof ${z} != "object"`,F8._`${z} instanceof RegExp`,F8._`typeof ${z}.compare != "function"`,G(z)))}function W(){let U=K.schema,z=H.formats[U];if(!z||z===!0)return;if(typeof z!="object"||z instanceof RegExp||typeof z.compare!="function")throw Error(`"${Z}": format "${U}" does not define "compare" function`);let L=X.scopeValue("formats",{key:U,ref:z,code:$.code.formats?F8._`${$.code.formats}${(0,F8.getProperty)(U)}`:void 0});Q.fail$data(G(L))}function G(U){return F8._`${U}.compare(${J}, ${Y}) ${Tq[Z].fail} 0`}},dependencies:["format"]};var wV0=(Q)=>{return Q.addKeyword(fE.formatLimitDefinition),Q};fE.default=wV0});var cE=F((uX,dE)=>{Object.defineProperty(uX,"__esModule",{value:!0});var Z9=SE(),AV0=gE(),xG=L0(),uE=new xG.Name("fullFormats"),EV0=new xG.Name("fastFormats"),kG=(Q,X={keywords:!0})=>{if(Array.isArray(X))return mE(Q,X,Z9.fullFormats,uE),Q;let[J,Y]=X.mode==="fast"?[Z9.fastFormats,EV0]:[Z9.fullFormats,uE],Z=X.formats||Z9.formatNames;if(mE(Q,Z,J,Y),X.keywords)(0,AV0.default)(Q);return Q};kG.get=(Q,X="full")=>{let Y=(X==="fast"?Z9.fastFormats:Z9.fullFormats)[Q];if(!Y)throw Error(`Unknown format "${Q}"`);return Y};function mE(Q,X,J,Y){var Z,q;(Z=(q=Q.opts.code).formats)!==null&&Z!==void 0||(q.formats=xG._`require("ajv-formats/dist/formats").${Y}`);for(let $ of X)Q.addFormat($,J[$])}dE.exports=uX=kG;Object.defineProperty(uX,"__esModule",{value:!0});uX.default=kG});var Z_=F((Y_)=>{Object.defineProperty(Y_,"__esModule",{value:!0});Y_.range=Y_.balanced=void 0;var sV0=(Q,X,J)=>{let Y=Q instanceof RegExp?J_(Q,J):Q,Z=X instanceof RegExp?J_(X,J):X,q=Y!==null&&Z!=null&&Y_.range(Y,Z,J);return q&&{start:q[0],end:q[1],pre:J.slice(0,q[0]),body:J.slice(q[0]+Y.length,q[1]),post:J.slice(q[1]+Z.length)}};Y_.balanced=sV0;var J_=(Q,X)=>{let J=X.match(Q);return J?J[0]:null},aV0=(Q,X,J)=>{let Y,Z,q,$=void 0,H,K=J.indexOf(Q),V=J.indexOf(X,K+1),W=K;if(K>=0&&V>0){if(Q===X)return[K,V];Y=[],q=J.length;while(W>=0&&!H){if(W===K)Y.push(W),K=J.indexOf(Q,W+1);else if(Y.length===1){let G=Y.pop();if(G!==void 0)H=[G,V]}else{if(Z=Y.pop(),Z!==void 0&&Z<q)q=Z,$=V;V=J.indexOf(X,W+1)}W=K<V&&K>=0?K:V}if(Y.length&&$!==void 0)H=[q,$]}return H};Y_.range=aV0});var z_=F((G_)=>{Object.defineProperty(G_,"__esModule",{value:!0});G_.EXPANSION_MAX_LENGTH=G_.EXPANSION_MAX=void 0;G_.expand=GG0;var q_=Z_(),$_="\x00SLASH"+Math.random()+"\x00",H_="\x00OPEN"+Math.random()+"\x00",nG="\x00CLOSE"+Math.random()+"\x00",K_="\x00COMMA"+Math.random()+"\x00",W_="\x00PERIOD"+Math.random()+"\x00",eV0=new RegExp($_,"g"),QG0=new RegExp(H_,"g"),XG0=new RegExp(nG,"g"),JG0=new RegExp(K_,"g"),YG0=new RegExp(W_,"g"),ZG0=/\\\\/g,qG0=/\\{/g,$G0=/\\}/g,HG0=/\\,/g,KG0=/\\\./g;G_.EXPANSION_MAX=1e5;G_.EXPANSION_MAX_LENGTH=4000000;function lG(Q){return!isNaN(Q)?parseInt(Q,10):Q.charCodeAt(0)}function WG0(Q){return Q.replace(ZG0,$_).replace(qG0,H_).replace($G0,nG).replace(HG0,K_).replace(KG0,W_)}function VG0(Q){return Q.replace(eV0,"\\").replace(QG0,"{").replace(XG0,"}").replace(JG0,",").replace(YG0,".")}function V_(Q){if(!Q)return[""];let X=[],J=(0,q_.balanced)("{","}",Q);if(!J)return Q.split(",");let{pre:Y,body:Z,post:q}=J,$=Y.split(",");$[$.length-1]+="{"+Z+"}";let H=V_(q);if(q.length)$[$.length-1]+=H.shift(),$.push.apply($,H);return X.push.apply(X,$),X}function GG0(Q,X={}){if(!Q)return[];let{max:J=G_.EXPANSION_MAX,maxLength:Y=G_.EXPANSION_MAX_LENGTH}=X;if(Q.slice(0,2)==="{}")Q="\\{\\}"+Q.slice(2);return pG(WG0(Q),J,Y,!0).map(VG0)}function UG0(Q){return"{"+Q+"}"}function zG0(Q){return/^-?0\d/.test(Q)}function BG0(Q,X){return Q<=X}function LG0(Q,X){return Q>=X}function dX(Q,X,J,Y,Z,q){let $=[],H=0;for(let K=0;K<Q.length;K++)for(let V=0;V<J.length;V++){if($.length>=Y)return $;let W=Q[K]+X+J[V];if(q&&!W)continue;if(H+W.length>Z)return $;$.push(W),H+=W.length}return $}function FG0(Q,X,J,Y){let Z=Q.split(/\.\./),q=[];if(Z[0]===void 0||Z[1]===void 0)return q;let $=lG(Z[0]),H=lG(Z[1]),K=Math.max(Z[0].length,Z[1].length),V=Z.length===3&&Z[2]!==void 0?Math.max(Math.abs(lG(Z[2])),1):1,W=BG0;if(H<$)V*=-1,W=LG0;let U=Z.some(zG0),z=0;for(let L=$;W(L,H)&&q.length<J;L+=V){let B;if(X){if(B=String.fromCharCode(L),B==="\\")B=""}else if(B=String(L),U){let M=K-B.length;if(M>0){let I=Array(M+1).join("0");if(L<0)B="-"+I+B.slice(1);else B=I+B}}if(z+B.length>Y)break;q.push(B),z+=B.length}return q}function pG(Q,X,J,Y){let Z=[""],q=!1,$=!0;for(;;){let H=(0,q_.balanced)("{","}",Q);if(!H)return dX(Z,Q,[""],X,J,q);let K=H.pre;if(/\$$/.test(K)){if(Z=dX(Z,K+"{"+H.body+"}",[""],X,J,q&&!H.post.length),$=!1,!H.post.length)break;Q=H.post;continue}let V=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(H.body),W=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(H.body),G=V||W,U=H.body.indexOf(",")>=0;if(!G&&!U){if(H.post.match(/,(?!,).*\}/)){Q=H.pre+"{"+H.body+nG+H.post,Y=!0;continue}return dX(Z,K+"{"+H.body+"}"+H.post,[""],X,J,q)}if($)q=Y&&!G,$=!1;let z;if(G)z=FG0(H.body,W,X,J);else{let L=V_(H.body);if(L.length===1&&L[0]!==void 0){if(L=pG(L[0],X,J,!1).map(UG0),L.length===1){if(Z=dX(Z,K+L[0],[""],X,J,q&&!H.post.length),!H.post.length)break;Q=H.post;continue}}let B=q&&!H.post.length&&!K;for(let I=0;B&&I<Z.length;I++)if(Z[I])B=!1;z=[];let M=0;Q:for(let I=0;I<L.length;I++){let j=pG(L[I],X,J,!1);for(let D=0;D<j.length;D++){let N=j[D];if(B&&!N)continue;if(z.length>=X||M+N.length>J)break Q;z.push(N),M+=N.length}}}if(Z=dX(Z,K,z,X,J,q&&!H.post.length),!H.post.length)break;Q=H.post}return Z}});var F_=F((B_)=>{Object.defineProperty(B_,"__esModule",{value:!0});B_.assertValidPattern=void 0;var IG0=65536,PG0=(Q)=>{if(typeof Q!=="string")throw TypeError("invalid pattern");if(Q.length>IG0)throw TypeError("pattern is too long")};B_.assertValidPattern=PG0});var C_=F((I_)=>{Object.defineProperty(I_,"__esModule",{value:!0});I_.parseClass=void 0;var CG0={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},cX=(Q)=>Q.replace(/[[\]\\-]/g,"\\$&"),OG0=(Q)=>Q.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),M_=(Q)=>Q.join(""),jG0=(Q,X)=>{let J=X;if(Q.charAt(J)!=="[")throw Error("not in a brace expression");let Y=[],Z=[],q=J+1,$=!1,H=!1,K=!1,V=!1,W=J,G="";Q:while(q<Q.length){let B=Q.charAt(q);if((B==="!"||B==="^")&&q===J+1){V=!0,q++;continue}if(B==="]"&&$&&!K){W=q+1;break}if($=!0,B==="\\"){if(!K){K=!0,q++;continue}}if(B==="["&&!K){for(let[M,[I,j,D]]of Object.entries(CG0))if(Q.startsWith(M,q)){if(G)return["$.",!1,Q.length-J,!0];if(q+=M.length,D)Z.push(I);else Y.push(I);H=H||j;continue Q}}if(K=!1,G){if(B>G)Y.push(cX(G)+"-"+cX(B));else if(B===G)Y.push(cX(B));G="",q++;continue}if(Q.startsWith("-]",q+1)){Y.push(cX(B+"-")),q+=2;continue}if(Q.startsWith("-",q+1)){G=B,q+=2;continue}Y.push(cX(B)),q++}if(W<q)return["",!1,0,!1];if(!Y.length&&!Z.length)return["$.",!1,Q.length-J,!0];if(Z.length===0&&Y.length===1&&/^\\?.$/.test(Y[0])&&!V){let B=Y[0].length===2?Y[0].slice(-1):Y[0];return[OG0(B),!1,W-J,!1]}let U="["+(V?"^":"")+M_(Y)+"]",z="["+(V?"":"^")+M_(Z)+"]";return[Y.length&&Z.length?"("+U+"|"+z+")":Y.length?U:z,H,W-J,!0]};I_.parseClass=jG0});var _q=F((O_)=>{Object.defineProperty(O_,"__esModule",{value:!0});O_.unescape=void 0;var NG0=(Q,{windowsPathsNoEscape:X=!1,magicalBraces:J=!0}={})=>{if(J)return X?Q.replace(/\[([^/\\])\]/g,"$1"):Q.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1");return X?Q.replace(/\[([^/\\{}])\]/g,"$1"):Q.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1")};O_.unescape=NG0});var aG=F((T_)=>{var j6;Object.defineProperty(T_,"__esModule",{value:!0});T_.AST=void 0;var RG0=C_(),Sq=_q(),DG0=new Set(["!","?","+","*","@"]),oG=(Q)=>DG0.has(Q),N_=(Q)=>oG(Q.type),wG0=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),TG0=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),AG0=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),R_=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),EG0="(?!(?:^|/)\\.\\.?(?:$|/))",vq="(?!\\.)",_G0=new Set(["[","."]),SG0=new Set(["..","."]),vG0=new Set("().*{}+?[]^$\\!"),xG0=(Q)=>Q.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),rG="[^/]",D_=rG+"*?",w_=rG+"+?",kG0=0;class sG{type;#X;#Y;#J=!1;#Q=[];#Z;#V;#W;#G=!1;#K;#H;#q=!1;id=++kG0;get depth(){return(this.#Z?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#X.id,parent:this.#Z?.id,depth:this.depth,partsLength:this.#Q.length,parts:this.#Q}}constructor(Q,X,J={}){if(this.type=Q,Q)this.#Y=!0;if(this.#Z=X,this.#X=this.#Z?this.#Z.#X:this,this.#K=this.#X===this?J:this.#X.#K,this.#W=this.#X===this?[]:this.#X.#W,Q==="!"&&!this.#X.#G)this.#W.push(this);this.#V=this.#Z?this.#Z.#Q.length:0}get hasMagic(){if(this.#Y!==void 0)return this.#Y;for(let Q of this.#Q){if(typeof Q==="string")continue;if(Q.type||Q.hasMagic)return this.#Y=!0}return this.#Y}toString(){return this.#H!==void 0?this.#H:!this.type?this.#H=this.#Q.map((Q)=>String(Q)).join(""):this.#H=this.type+"("+this.#Q.map((Q)=>String(Q)).join("|")+")"}#C(){if(this!==this.#X)throw Error("should only call on root");if(this.#G)return this;this.toString(),this.#G=!0;let Q;while(Q=this.#W.pop()){if(Q.type!=="!")continue;let X=Q,J=X.#Z;while(J){for(let Y=X.#V+1;!J.type&&Y<J.#Q.length;Y++)for(let Z of Q.#Q){if(typeof Z==="string")throw Error("string part in extglob AST??");Z.copyIn(J.#Q[Y])}X=J,J=X.#Z}}return this}push(...Q){for(let X of Q){if(X==="")continue;if(typeof X!=="string"&&!(X instanceof j6&&X.#Z===this))throw Error("invalid part: "+X);this.#Q.push(X)}}toJSON(){let Q=this.type===null?this.#Q.slice().map((X)=>typeof X==="string"?X:X.toJSON()):[this.type,...this.#Q.map((X)=>X.toJSON())];if(this.isStart()&&!this.type)Q.unshift([]);if(this.isEnd()&&(this===this.#X||this.#X.#G&&this.#Z?.type==="!"))Q.push({});return Q}isStart(){if(this.#X===this)return!0;if(!this.#Z?.isStart())return!1;if(this.#V===0)return!0;let Q=this.#Z;for(let X=0;X<this.#V;X++){let J=Q.#Q[X];if(!(J instanceof j6&&J.type==="!"))return!1}return!0}isEnd(){if(this.#X===this)return!0;if(this.#Z?.type==="!")return!0;if(!this.#Z?.isEnd())return!1;if(!this.type)return this.#Z?.isEnd();let Q=this.#Z?this.#Z.#Q.length:0;return this.#V===Q-1}copyIn(Q){if(typeof Q==="string")this.push(Q);else this.push(Q.clone(this))}clone(Q){let X=new j6(this.type,Q);for(let J of this.#Q)X.copyIn(J);return X}static#F(Q,X,J,Y,Z){let q=Y.maxExtglobRecursion??2,$=!1,H=!1,K=-1,V=!1;if(X.type===null){let L=J,B="";while(L<Q.length){let M=Q.charAt(L++);if($||M==="\\"){$=!$,B+=M;continue}if(H){if(L===K+1){if(M==="^"||M==="!")V=!0}else if(M==="]"&&!(L===K+2&&V))H=!1;B+=M;continue}else if(M==="["){H=!0,K=L,V=!1,B+=M;continue}if(!Y.noext&&oG(M)&&Q.charAt(L)==="("&&Z<=q){X.push(B),B="";let j=new j6(M,X);L=j6.#F(Q,j,L,Y,Z+1),X.push(j);continue}B+=M}return X.push(B),L}let W=J+1,G=new j6(null,X),U=[],z="";while(W<Q.length){let L=Q.charAt(W++);if($||L==="\\"){$=!$,z+=L;continue}if(H){if(W===K+1){if(L==="^"||L==="!")V=!0}else if(L==="]"&&!(W===K+2&&V))H=!1;z+=L;continue}else if(L==="["){H=!0,K=W,V=!1,z+=L;continue}if(!Y.noext&&oG(L)&&Q.charAt(W)==="("&&(Z<=q||X&&X.#O(L))){let M=X&&X.#O(L)?0:1;G.push(z),z="";let I=new j6(L,G);G.push(I),W=j6.#F(Q,I,W,Y,Z+M);continue}if(L==="|"){G.push(z),z="",U.push(G),G=new j6(null,X);continue}if(L===")"){if(z===""&&X.#Q.length===0)X.#q=!0;return G.push(z),z="",X.push(...U,G),W}z+=L}return X.type=null,X.#Y=void 0,X.#Q=[Q.substring(J-1)],W}#I(Q){return this.#B(Q,TG0)}#B(Q,X=wG0){if(!Q||typeof Q!=="object"||Q.type!==null||Q.#Q.length!==1||this.type===null)return!1;let J=Q.#Q[0];if(!J||typeof J!=="object"||J.type===null)return!1;return this.#O(J.type,X)}#O(Q,X=AG0){return!!X.get(this.type)?.includes(Q)}#L(Q,X){let J=Q.#Q[0],Y=new j6(null,J,this.options);Y.#Q.push(""),J.push(Y),this.#j(Q,X)}#j(Q,X){let J=Q.#Q[0];this.#Q.splice(X,1,...J.#Q);for(let Y of J.#Q)if(typeof Y==="object")Y.#Z=this;this.#H=void 0}#D(Q){return!!R_.get(this.type)?.has(Q)}#P(Q){if(!Q||typeof Q!=="object"||Q.type!==null||Q.#Q.length!==1||this.type===null||this.#Q.length!==1)return!1;let X=Q.#Q[0];if(!X||typeof X!=="object"||X.type===null)return!1;return this.#D(X.type)}#N(Q){let X=R_.get(this.type),J=Q.#Q[0],Y=X?.get(J.type);if(!Y)return!1;this.#Q=J.#Q;for(let Z of this.#Q)if(typeof Z==="object")Z.#Z=this;this.type=Y,this.#H=void 0,this.#q=!1}static fromGlob(Q,X={}){let J=new j6(null,void 0,X);return j6.#F(Q,J,0,X,0),J}toMMPattern(){if(this!==this.#X)return this.#X.toMMPattern();let Q=this.toString(),[X,J,Y,Z]=this.toRegExpSource();if(!(Y||this.#Y||this.#K.nocase&&!this.#K.nocaseMagicOnly&&Q.toUpperCase()!==Q.toLowerCase()))return J;let $=(this.#K.nocase?"i":"")+(Z?"u":"");return Object.assign(new RegExp(`^${X}$`,$),{_src:X,_glob:Q})}get options(){return this.#K}toRegExpSource(Q){let X=Q??!!this.#K.dot;if(this.#X===this)this.#M(),this.#C();if(!N_(this)){let H=this.isStart()&&this.isEnd()&&!this.#Q.some((U)=>typeof U!=="string"),K=this.#Q.map((U)=>{let[z,L,B,M]=typeof U==="string"?j6.#w(U,this.#Y,H):U.toRegExpSource(Q);return this.#Y=this.#Y||B,this.#J=this.#J||M,z}).join(""),V="";if(this.isStart()){if(typeof this.#Q[0]==="string"){if(!(this.#Q.length===1&&SG0.has(this.#Q[0]))){let z=_G0,L=X&&z.has(K.charAt(0))||K.startsWith("\\.")&&z.has(K.charAt(2))||K.startsWith("\\.\\.")&&z.has(K.charAt(4)),B=!X&&!Q&&z.has(K.charAt(0));V=L?EG0:B?vq:""}}}let W="";if(this.isEnd()&&this.#X.#G&&this.#Z?.type==="!")W="(?:$|\\/)";return[V+K+W,(0,Sq.unescape)(K),this.#Y=!!this.#Y,this.#J]}let J=this.type==="*"||this.type==="+",Y=this.type==="!"?"(?:(?!(?:":"(?:",Z=this.#z(X);if(this.isStart()&&this.isEnd()&&!Z&&this.type!=="!"){let H=this.toString(),K=this;return K.#Q=[H],K.type=null,K.#Y=void 0,[H,(0,Sq.unescape)(this.toString()),!1,!1]}let q=!J||Q||X||!vq?"":this.#z(!0);if(q===Z)q="";if(q)Z=`(?:${Z})(?:${q})*?`;let $="";if(this.type==="!"&&this.#q)$=(this.isStart()&&!X?vq:"")+w_;else{let H=this.type==="!"?"))"+(this.isStart()&&!X&&!Q?vq:"")+D_+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&q?")":this.type==="*"&&q?")?":`)${this.type}`;$=Y+Z+H}return[$,(0,Sq.unescape)(Z),this.#Y=!!this.#Y,this.#J]}#M(){if(!N_(this)){for(let Q of this.#Q)if(typeof Q==="object")Q.#M()}else{let Q=0,X=!1;do{X=!0;for(let J=0;J<this.#Q.length;J++){let Y=this.#Q[J];if(typeof Y==="object"){if(Y.#M(),this.#B(Y))X=!1,this.#j(Y,J);else if(this.#I(Y))X=!1,this.#L(Y,J);else if(this.#P(Y))X=!1,this.#N(Y)}}}while(!X&&++Q<10)}this.#H=void 0}#z(Q){return this.#Q.map((X)=>{if(typeof X==="string")throw Error("string type in extglob ast??");let[J,Y,Z,q]=X.toRegExpSource(Q);return this.#J=this.#J||q,J}).filter((X)=>!(this.isStart()&&this.isEnd())||!!X).join("|")}static#w(Q,X,J=!1){let Y=!1,Z="",q=!1,$=!1;for(let H=0;H<Q.length;H++){let K=Q.charAt(H);if(Y){Y=!1,Z+=(vG0.has(K)?"\\":"")+K;continue}if(K==="*"){if($)continue;$=!0,Z+=J&&/^[*]+$/.test(Q)?w_:D_,X=!0;continue}else $=!1;if(K==="\\"){if(H===Q.length-1)Z+="\\\\";else Y=!0;continue}if(K==="["){let[V,W,G,U]=(0,RG0.parseClass)(Q,H);if(G){Z+=V,q=q||W,H+=G-1,X=X||U;continue}}if(K==="?"){Z+=rG,X=!0;continue}Z+=xG0(K)}return[Z,(0,Sq.unescape)(Q),!!X,q]}}T_.AST=sG;j6=sG});var tG=F((E_)=>{Object.defineProperty(E_,"__esModule",{value:!0});E_.escape=void 0;var yG0=(Q,{windowsPathsNoEscape:X=!1,magicalBraces:J=!1}={})=>{if(J)return X?Q.replace(/[?*()[\]{}]/g,"[$&]"):Q.replace(/[?*()[\]\\{}]/g,"\\$&");return X?Q.replace(/[?*()[\]]/g,"[$&]"):Q.replace(/[?*()[\]\\]/g,"\\$&")};E_.escape=yG0});var d_=F((lX)=>{Object.defineProperty(lX,"__esModule",{value:!0});lX.unescape=lX.escape=lX.AST=lX.Minimatch=lX.match=lX.makeRe=lX.braceExpand=lX.defaults=lX.filter=lX.GLOBSTAR=lX.sep=lX.minimatch=void 0;var hG0=z_(),xq=F_(),x_=aG(),bG0=tG(),fG0=_q(),gG0=(Q,X,J={})=>{if((0,xq.assertValidPattern)(X),!J.nocomment&&X.charAt(0)==="#")return!1;return new H9(X,J).match(Q)};lX.minimatch=gG0;var uG0=/^\*+([^+@!?*[(]*)$/,mG0=(Q)=>(X)=>!X.startsWith(".")&&X.endsWith(Q),dG0=(Q)=>(X)=>X.endsWith(Q),cG0=(Q)=>{return Q=Q.toLowerCase(),(X)=>!X.startsWith(".")&&X.toLowerCase().endsWith(Q)},lG0=(Q)=>{return Q=Q.toLowerCase(),(X)=>X.toLowerCase().endsWith(Q)},pG0=/^\*+\.\*+$/,nG0=(Q)=>!Q.startsWith(".")&&Q.includes("."),iG0=(Q)=>Q!=="."&&Q!==".."&&Q.includes("."),oG0=/^\.\*+$/,rG0=(Q)=>Q!=="."&&Q!==".."&&Q.startsWith("."),sG0=/^\*+$/,aG0=(Q)=>Q.length!==0&&!Q.startsWith("."),tG0=(Q)=>Q.length!==0&&Q!=="."&&Q!=="..",eG0=/^\?+([^+@!?*[(]*)?$/,QU0=([Q,X=""])=>{let J=k_([Q]);if(!X)return J;return X=X.toLowerCase(),(Y)=>J(Y)&&Y.toLowerCase().endsWith(X)},XU0=([Q,X=""])=>{let J=y_([Q]);if(!X)return J;return X=X.toLowerCase(),(Y)=>J(Y)&&Y.toLowerCase().endsWith(X)},JU0=([Q,X=""])=>{let J=y_([Q]);return!X?J:(Y)=>J(Y)&&Y.endsWith(X)},YU0=([Q,X=""])=>{let J=k_([Q]);return!X?J:(Y)=>J(Y)&&Y.endsWith(X)},k_=([Q])=>{let X=Q.length;return(J)=>J.length===X&&!J.startsWith(".")},y_=([Q])=>{let X=Q.length;return(J)=>J.length===X&&J!=="."&&J!==".."},h_=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",S_={win32:{sep:"\\"},posix:{sep:"/"}};lX.sep=h_==="win32"?S_.win32.sep:S_.posix.sep;lX.minimatch.sep=lX.sep;lX.GLOBSTAR=Symbol("globstar **");lX.minimatch.GLOBSTAR=lX.GLOBSTAR;var ZU0="[^/]",qU0=ZU0+"*?",$U0="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",HU0="(?:(?!(?:\\/|^)\\.).)*?",KU0=(Q,X={})=>(J)=>lX.minimatch(J,Q,X);lX.filter=KU0;lX.minimatch.filter=lX.filter;var o6=(Q,X={})=>Object.assign({},Q,X),WU0=(Q)=>{if(!Q||typeof Q!=="object"||!Object.keys(Q).length)return lX.minimatch;let X=lX.minimatch;return Object.assign((Y,Z,q={})=>X(Y,Z,o6(Q,q)),{Minimatch:class extends X.Minimatch{constructor(Z,q={}){super(Z,o6(Q,q))}static defaults(Z){return X.defaults(o6(Q,Z)).Minimatch}},AST:class extends X.AST{constructor(Z,q,$={}){super(Z,q,o6(Q,$))}static fromGlob(Z,q={}){return X.AST.fromGlob(Z,o6(Q,q))}},unescape:(Y,Z={})=>X.unescape(Y,o6(Q,Z)),escape:(Y,Z={})=>X.escape(Y,o6(Q,Z)),filter:(Y,Z={})=>X.filter(Y,o6(Q,Z)),defaults:(Y)=>X.defaults(o6(Q,Y)),makeRe:(Y,Z={})=>X.makeRe(Y,o6(Q,Z)),braceExpand:(Y,Z={})=>X.braceExpand(Y,o6(Q,Z)),match:(Y,Z,q={})=>X.match(Y,Z,o6(Q,q)),sep:X.sep,GLOBSTAR:lX.GLOBSTAR})};lX.defaults=WU0;lX.minimatch.defaults=lX.defaults;var VU0=(Q,X={})=>{if((0,xq.assertValidPattern)(Q),X.nobrace||!/\{(?:(?!\{).)*\}/.test(Q))return[Q];return(0,hG0.expand)(Q,{max:X.braceExpandMax})};lX.braceExpand=VU0;lX.minimatch.braceExpand=lX.braceExpand;var GU0=(Q,X={})=>new H9(Q,X).makeRe();lX.makeRe=GU0;lX.minimatch.makeRe=lX.makeRe;var UU0=(Q,X,J={})=>{let Y=new H9(X,J);if(Q=Q.filter((Z)=>Y.match(Z)),Y.options.nonull&&!Q.length)Q.push(X);return Q};lX.match=UU0;lX.minimatch.match=lX.match;var v_=/[?*]|[+@!]\(.*?\)|\[|\]/,zU0=(Q)=>Q.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class H9{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(Q,X={}){(0,xq.assertValidPattern)(Q),X=X||{},this.options=X,this.maxGlobstarRecursion=X.maxGlobstarRecursion??200,this.pattern=Q,this.platform=X.platform||h_,this.isWindows=this.platform==="win32";let J="allowWindowsEscape";if(this.windowsPathsNoEscape=!!X.windowsPathsNoEscape||X[J]===!1,this.windowsPathsNoEscape)this.pattern=this.pattern.replace(/\\/g,"/");this.preserveMultipleSlashes=!!X.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!X.nonegate,this.comment=!1,this.empty=!1,this.partial=!!X.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=X.windowsNoMagicRoot!==void 0?X.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let Q of this.set)for(let X of Q)if(typeof X!=="string")return!0;return!1}debug(...Q){}make(){let Q=this.pattern,X=this.options;if(!X.nocomment&&Q.charAt(0)==="#"){this.comment=!0;return}if(!Q){this.empty=!0;return}if(this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],X.debug)this.debug=(...Z)=>console.error(...Z);this.debug(this.pattern,this.globSet);let J=this.globSet.map((Z)=>this.slashSplit(Z));this.globParts=this.preprocess(J),this.debug(this.pattern,this.globParts);let Y=this.globParts.map((Z,q,$)=>{if(this.isWindows&&this.windowsNoMagicRoot){let H=Z[0]===""&&Z[1]===""&&(Z[2]==="?"||!v_.test(Z[2]))&&!v_.test(Z[3]),K=/^[a-z]:/i.test(Z[0]);if(H)return[...Z.slice(0,4),...Z.slice(4).map((V)=>this.parse(V))];else if(K)return[Z[0],...Z.slice(1).map((V)=>this.parse(V))]}return Z.map((H)=>this.parse(H))});if(this.debug(this.pattern,Y),this.set=Y.filter((Z)=>Z.indexOf(!1)===-1),this.isWindows)for(let Z=0;Z<this.set.length;Z++){let q=this.set[Z];if(q[0]===""&&q[1]===""&&this.globParts[Z][2]==="?"&&typeof q[3]==="string"&&/^[a-z]:$/i.test(q[3]))q[2]="?"}this.debug(this.pattern,this.set)}preprocess(Q){if(this.options.noglobstar){for(let J of Q)for(let Y=0;Y<J.length;Y++)if(J[Y]==="**")J[Y]="*"}let{optimizationLevel:X=1}=this.options;if(X>=2)Q=this.firstPhasePreProcess(Q),Q=this.secondPhasePreProcess(Q);else if(X>=1)Q=this.levelOneOptimize(Q);else Q=this.adjascentGlobstarOptimize(Q);return Q}adjascentGlobstarOptimize(Q){return Q.map((X)=>{let J=-1;while((J=X.indexOf("**",J+1))!==-1){let Y=J;while(X[Y+1]==="**")Y++;if(Y!==J)X.splice(J,Y-J)}return X})}levelOneOptimize(Q){return Q.map((X)=>{return X=X.reduce((J,Y)=>{let Z=J[J.length-1];if(Y==="**"&&Z==="**")return J;if(Y===".."){if(Z&&Z!==".."&&Z!=="."&&Z!=="**")return J.pop(),J}return J.push(Y),J},[]),X.length===0?[""]:X})}levelTwoFileOptimize(Q){if(!Array.isArray(Q))Q=this.slashSplit(Q);let X=!1;do{if(X=!1,!this.preserveMultipleSlashes){for(let Y=1;Y<Q.length-1;Y++){let Z=Q[Y];if(Y===1&&Z===""&&Q[0]==="")continue;if(Z==="."||Z==="")X=!0,Q.splice(Y,1),Y--}if(Q[0]==="."&&Q.length===2&&(Q[1]==="."||Q[1]===""))X=!0,Q.pop()}let J=0;while((J=Q.indexOf("..",J+1))!==-1){let Y=Q[J-1];if(Y&&Y!=="."&&Y!==".."&&Y!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(Y)))X=!0,Q.splice(J-1,2),J-=2}}while(X);return Q.length===0?[""]:Q}firstPhasePreProcess(Q){let X=!1;do{X=!1;for(let J of Q){let Y=-1;while((Y=J.indexOf("**",Y+1))!==-1){let q=Y;while(J[q+1]==="**")q++;if(q>Y)J.splice(Y+1,q-Y);let $=J[Y+1],H=J[Y+2],K=J[Y+3];if($!=="..")continue;if(!H||H==="."||H===".."||!K||K==="."||K==="..")continue;X=!0,J.splice(Y,1);let V=J.slice(0);V[Y]="**",Q.push(V),Y--}if(!this.preserveMultipleSlashes){for(let q=1;q<J.length-1;q++){let $=J[q];if(q===1&&$===""&&J[0]==="")continue;if($==="."||$==="")X=!0,J.splice(q,1),q--}if(J[0]==="."&&J.length===2&&(J[1]==="."||J[1]===""))X=!0,J.pop()}let Z=0;while((Z=J.indexOf("..",Z+1))!==-1){let q=J[Z-1];if(q&&q!=="."&&q!==".."&&q!=="**"){X=!0;let H=Z===1&&J[Z+1]==="**"?["."]:[];if(J.splice(Z-1,2,...H),J.length===0)J.push("");Z-=2}}}}while(X);return Q}secondPhasePreProcess(Q){for(let X=0;X<Q.length-1;X++)for(let J=X+1;J<Q.length;J++){let Y=this.partsMatch(Q[X],Q[J],!this.preserveMultipleSlashes);if(Y){Q[X]=[],Q[J]=Y;break}}return Q.filter((X)=>X.length)}partsMatch(Q,X,J=!1){let Y=0,Z=0,q=[],$="";while(Y<Q.length&&Z<X.length)if(Q[Y]===X[Z])q.push($==="b"?X[Z]:Q[Y]),Y++,Z++;else if(J&&Q[Y]==="**"&&X[Z]===Q[Y+1])q.push(Q[Y]),Y++;else if(J&&X[Z]==="**"&&Q[Y]===X[Z+1])q.push(X[Z]),Z++;else if(Q[Y]==="*"&&X[Z]&&(this.options.dot||!X[Z].startsWith("."))&&X[Z]!=="**"){if($==="b")return!1;$="a",q.push(Q[Y]),Y++,Z++}else if(X[Z]==="*"&&Q[Y]&&(this.options.dot||!Q[Y].startsWith("."))&&Q[Y]!=="**"){if($==="a")return!1;$="b",q.push(X[Z]),Y++,Z++}else return!1;return Q.length===X.length&&q}parseNegate(){if(this.nonegate)return;let Q=this.pattern,X=!1,J=0;for(let Y=0;Y<Q.length&&Q.charAt(Y)==="!";Y++)X=!X,J++;if(J)this.pattern=Q.slice(J);this.negate=X}matchOne(Q,X,J=!1){let Y=0,Z=0;if(this.isWindows){let $=typeof Q[0]==="string"&&/^[a-z]:$/i.test(Q[0]),H=!$&&Q[0]===""&&Q[1]===""&&Q[2]==="?"&&/^[a-z]:$/i.test(Q[3]),K=typeof X[0]==="string"&&/^[a-z]:$/i.test(X[0]),V=!K&&X[0]===""&&X[1]===""&&X[2]==="?"&&typeof X[3]==="string"&&/^[a-z]:$/i.test(X[3]),W=H?3:$?0:void 0,G=V?3:K?0:void 0;if(typeof W==="number"&&typeof G==="number"){let[U,z]=[Q[W],X[G]];if(U.toLowerCase()===z.toLowerCase())X[G]=U,Z=G,Y=W}}let{optimizationLevel:q=1}=this.options;if(q>=2)Q=this.levelTwoFileOptimize(Q);if(X.includes(lX.GLOBSTAR))return this.#X(Q,X,J,Y,Z);return this.#J(Q,X,J,Y,Z)}#X(Q,X,J,Y,Z){let q=X.indexOf(lX.GLOBSTAR,Z),$=X.lastIndexOf(lX.GLOBSTAR),[H,K,V]=J?[X.slice(Z,q),X.slice(q+1),[]]:[X.slice(Z,q),X.slice(q+1,$),X.slice($+1)];if(H.length){let I=Q.slice(Y,Y+H.length);if(!this.#J(I,H,J,0,0))return!1;Y+=H.length,Z+=H.length}let W=0;if(V.length){if(V.length+Y>Q.length)return!1;let I=Q.length-V.length;if(this.#J(Q,V,J,I,0))W=V.length;else{if(Q[Q.length-1]!==""||Y+V.length===Q.length)return!1;if(I--,!this.#J(Q,V,J,I,0))return!1;W=V.length+1}}if(!K.length){let I=!!W;for(let j=Y;j<Q.length-W;j++){let D=String(Q[j]);if(I=!0,D==="."||D===".."||!this.options.dot&&D.startsWith("."))return!1}return J||I}let G=[[[],0]],U=G[0],z=0,L=[0];for(let I of K)if(I===lX.GLOBSTAR)L.push(z),U=[[],0],G.push(U);else U[0].push(I),z++;let B=G.length-1,M=Q.length-W;for(let I of G)I[1]=M-(L[B--]+I[0].length);return!!this.#Y(Q,G,Y,0,J,0,!!W)}#Y(Q,X,J,Y,Z,q,$){let H=X[Y];if(!H){for(let W=J;W<Q.length;W++){$=!0;let G=Q[W];if(G==="."||G===".."||!this.options.dot&&G.startsWith("."))return!1}return $}let[K,V]=H;while(J<=V){if(this.#J(Q.slice(0,J+K.length),K,Z,J,0)&&q<this.maxGlobstarRecursion){let U=this.#Y(Q,X,J+K.length,Y+1,Z,q+1,$);if(U!==!1)return U}let G=Q[J];if(G==="."||G===".."||!this.options.dot&&G.startsWith("."))return!1;J++}return Z||null}#J(Q,X,J,Y,Z){let q,$,H,K;for(q=Y,$=Z,K=Q.length,H=X.length;q<K&&$<H;q++,$++){this.debug("matchOne loop");let V=X[$],W=Q[q];if(this.debug(X,V,W),V===!1||V===lX.GLOBSTAR)return!1;let G;if(typeof V==="string")G=W===V,this.debug("string match",V,W,G);else G=V.test(W),this.debug("pattern match",V,W,G);if(!G)return!1}if(q===K&&$===H)return!0;else if(q===K)return J;else if($===H)return q===K-1&&Q[q]==="";else throw Error("wtf?")}braceExpand(){return lX.braceExpand(this.pattern,this.options)}parse(Q){(0,xq.assertValidPattern)(Q);let X=this.options;if(Q==="**")return lX.GLOBSTAR;if(Q==="")return"";let J,Y=null;if(J=Q.match(sG0))Y=X.dot?tG0:aG0;else if(J=Q.match(uG0))Y=(X.nocase?X.dot?lG0:cG0:X.dot?dG0:mG0)(J[1]);else if(J=Q.match(eG0))Y=(X.nocase?X.dot?XU0:QU0:X.dot?JU0:YU0)(J);else if(J=Q.match(pG0))Y=X.dot?iG0:nG0;else if(J=Q.match(oG0))Y=rG0;let Z=x_.AST.fromGlob(Q,this.options).toMMPattern();if(Y&&typeof Z==="object")Reflect.defineProperty(Z,"test",{value:Y});return Z}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let Q=this.set;if(!Q.length)return this.regexp=!1,this.regexp;let X=this.options,J=X.noglobstar?qU0:X.dot?$U0:HU0,Y=new Set(X.nocase?["i"]:[]),Z=Q.map((H)=>{let K=H.map((W)=>{if(W instanceof RegExp)for(let G of W.flags.split(""))Y.add(G);return typeof W==="string"?zU0(W):W===lX.GLOBSTAR?lX.GLOBSTAR:W._src});K.forEach((W,G)=>{let U=K[G+1],z=K[G-1];if(W!==lX.GLOBSTAR||z===lX.GLOBSTAR)return;if(z===void 0)if(U!==void 0&&U!==lX.GLOBSTAR)K[G+1]="(?:\\/|"+J+"\\/)?"+U;else K[G]=J;else if(U===void 0)K[G-1]=z+"(?:\\/|\\/"+J+")?";else if(U!==lX.GLOBSTAR)K[G-1]=z+"(?:\\/|\\/"+J+"\\/)"+U,K[G+1]=lX.GLOBSTAR});let V=K.filter((W)=>W!==lX.GLOBSTAR);if(this.partial&&V.length>=1){let W=[];for(let G=1;G<=V.length;G++)W.push(V.slice(0,G).join("/"));return"(?:"+W.join("|")+")"}return V.join("/")}).join("|"),[q,$]=Q.length>1?["(?:",")"]:["",""];if(Z="^"+q+Z+$+"$",this.partial)Z="^(?:\\/|"+q+Z.slice(1,-1)+$+")$";if(this.negate)Z="^(?!"+Z+").+$";try{this.regexp=new RegExp(Z,[...Y].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(Q){if(this.preserveMultipleSlashes)return Q.split("/");else if(this.isWindows&&/^\/\/[^/]+/.test(Q))return["",...Q.split(/\/+/)];else return Q.split(/\/+/)}match(Q,X=this.partial){if(this.debug("match",Q,this.pattern),this.comment)return!1;if(this.empty)return Q==="";if(Q==="/"&&X)return!0;let J=this.options;if(this.isWindows)Q=Q.split("\\").join("/");let Y=this.slashSplit(Q);this.debug(this.pattern,"split",Y);let Z=this.set;this.debug(this.pattern,"set",Z);let q=Y[Y.length-1];if(!q)for(let $=Y.length-2;!q&&$>=0;$--)q=Y[$];for(let $ of Z){let H=Y;if(J.matchBase&&$.length===1)H=[q];if(this.matchOne(H,$,X)){if(J.flipNegate)return!0;return!this.negate}}if(J.flipNegate)return!1;return this.negate}static defaults(Q){return lX.minimatch.defaults(Q).Minimatch}}lX.Minimatch=H9;var BU0=aG();Object.defineProperty(lX,"AST",{enumerable:!0,get:function(){return BU0.AST}});var LU0=tG();Object.defineProperty(lX,"escape",{enumerable:!0,get:function(){return LU0.escape}});var FU0=_q();Object.defineProperty(lX,"unescape",{enumerable:!0,get:function(){return FU0.unescape}});lX.minimatch.AST=x_.AST;lX.minimatch.Minimatch=H9;lX.minimatch.escape=bG0.escape;lX.minimatch.unescape=fG0.unescape});var l_=F((V01,c_)=>{var r4=l("fs"),QU=l("path"),PU0=l("events").EventEmitter,CU0=d_().Minimatch;class pX extends PU0{constructor(Q){Q=Q||{};super(Q);this.isSymbolicLink=Q.isSymbolicLink,this.path=Q.path||process.cwd(),this.basename=QU.basename(this.path),this.ignoreFiles=Q.ignoreFiles||[".ignore"],this.ignoreRules={},this.parent=Q.parent||null,this.includeEmpty=!!Q.includeEmpty,this.root=this.parent?this.parent.root:this.path,this.follow=!!Q.follow,this.result=this.parent?this.parent.result:new Set,this.entries=null,this.sawError=!1,this.exact=Q.exact}sort(Q,X){return Q.localeCompare(X,"en")}emit(Q,X){let J=!1;if(!(this.sawError&&Q==="error")){if(Q==="error")this.sawError=!0;else if(Q==="done"&&!this.parent)X=Array.from(X).map((Y)=>/^@/.test(Y)?`./${Y}`:Y).sort(this.sort),this.result=X;if(Q==="error"&&this.parent)J=this.parent.emit("error",X);else J=super.emit(Q,X)}return J}start(){return r4.readdir(this.path,(Q,X)=>Q?this.emit("error",Q):this.onReaddir(X)),this}isIgnoreFile(Q){return Q!=="."&&Q!==".."&&this.ignoreFiles.indexOf(Q)!==-1}onReaddir(Q){if(this.entries=Q,Q.length===0){if(this.includeEmpty)this.result.add(this.path.slice(this.root.length+1));this.emit("done",this.result)}else if(this.entries.some((J)=>this.isIgnoreFile(J)))this.addIgnoreFiles();else this.filterEntries()}addIgnoreFiles(){let Q=this.entries.filter((Y)=>this.isIgnoreFile(Y)),X=Q.length,J=()=>{if(--X===0)this.filterEntries()};Q.forEach((Y)=>this.addIgnoreFile(Y,J))}addIgnoreFile(Q,X){let J=QU.resolve(this.path,Q);r4.readFile(J,"utf8",(Y,Z)=>Y?this.emit("error",Y):this.onReadIgnoreFile(Q,Z,X))}onReadIgnoreFile(Q,X,J){let Y={matchBase:!0,dot:!0,flipNegate:!0,nocase:!0},Z=X.split(/\r?\n/).filter((q)=>!/^#|^$/.test(q.trim())).map((q)=>{return new CU0(q.trim(),Y)});this.ignoreRules[Q]=Z,J()}filterEntries(){let Q=this.entries.map((J)=>{let Y=this.filterEntry(J),Z=this.filterEntry(J,!0);return Y||Z?[J,Y,Z]:!1}).filter((J)=>J),X=Q.length;if(X===0)this.emit("done",this.result);else{let J=()=>{if(--X===0)this.emit("done",this.result)};Q.forEach((Y)=>{let Z=Y[0],q=Y[1],$=Y[2];this.stat({entry:Z,file:q,dir:$},J)})}}onstat({st:Q,entry:X,file:J,dir:Y,isSymbolicLink:Z},q){let $=this.path+"/"+X;if(!Q.isDirectory()){if(J)this.result.add($.slice(this.root.length+1));q()}else if(Y)this.walker(X,{isSymbolicLink:Z,exact:J||this.filterEntry(X+"/")},q);else q()}stat({entry:Q,file:X,dir:J},Y){let Z=this.path+"/"+Q;r4.lstat(Z,(q,$)=>{if(q)this.emit("error",q);else{let H=$.isSymbolicLink();if(this.follow&&H)r4.stat(Z,(K,V)=>{if(K)this.emit("error",K);else this.onstat({st:V,entry:Q,file:X,dir:J,isSymbolicLink:H},Y)});else this.onstat({st:$,entry:Q,file:X,dir:J,isSymbolicLink:H},Y)}})}walkerOpt(Q,X){return{path:this.path+"/"+Q,parent:this,ignoreFiles:this.ignoreFiles,follow:this.follow,includeEmpty:this.includeEmpty,...X}}walker(Q,X,J){new pX(this.walkerOpt(Q,X)).on("done",J).start()}filterEntry(Q,X,J){let Y=!0;if(this.parent&&this.parent.filterEntry){let Z=this.basename+"/"+Q,q=J||Q;if(Y=this.parent.filterEntry(Z,X,q),!Y&&!this.exact)return!1}return this.ignoreFiles.forEach((Z)=>{if(this.ignoreRules[Z])this.ignoreRules[Z].forEach((q)=>{if(q.negate!==Y){let $=J&&q.globParts.some((K)=>K.length<=(K.slice(-1)[0]?1:2));if(q.match("/"+Q)||q.match(Q)||!!X&&(q.match("/"+Q+"/")||q.match(Q+"/")||q.negate&&(q.match("/"+Q,!0)||q.match(Q,!0))||$&&(q.match("/"+J+"/")||q.match(J+"/")||q.negate&&(q.match("/"+J,!0)||q.match(J,!0)))))Y=q.negate}})}),Y}}class kq extends pX{start(){return this.onReaddir(r4.readdirSync(this.path)),this}addIgnoreFile(Q,X){let J=QU.resolve(this.path,Q);this.onReadIgnoreFile(Q,r4.readFileSync(J,"utf8"),X)}stat({entry:Q,file:X,dir:J},Y){let Z=this.path+"/"+Q,q=r4.lstatSync(Z),$=q.isSymbolicLink();if(this.follow&&$)q=r4.statSync(Z);this.onstat({st:q,entry:Q,file:X,dir:J,isSymbolicLink:$},Y)}walker(Q,X,J){new kq(this.walkerOpt(Q,X)).start(),J()}}var yq=(Q,X)=>{let J=new Promise((Y,Z)=>{new pX(Q).on("done",Y).on("error",Z).start()});return X?J.then((Y)=>X(null,Y),X):J},OU0=(Q)=>new kq(Q).start().result;c_.exports=yq;yq.sync=OU0;yq.Walker=pX;yq.WalkerSync=kq});var n_=F((G01,p_)=>{var jU0=typeof process==="object"&&process&&process.platform==="win32";p_.exports=jU0?{sep:"\\"}:{sep:"/"}});var a_=F((U01,s_)=>{s_.exports=o_;function o_(Q,X,J){if(Q instanceof RegExp)Q=i_(Q,J);if(X instanceof RegExp)X=i_(X,J);var Y=r_(Q,X,J);return Y&&{start:Y[0],end:Y[1],pre:J.slice(0,Y[0]),body:J.slice(Y[0]+Q.length,Y[1]),post:J.slice(Y[1]+X.length)}}function i_(Q,X){var J=X.match(Q);return J?J[0]:null}o_.range=r_;function r_(Q,X,J){var Y,Z,q,$,H,K=J.indexOf(Q),V=J.indexOf(X,K+1),W=K;if(K>=0&&V>0){if(Q===X)return[K,V];Y=[],q=J.length;while(W>=0&&!H){if(W==K)Y.push(W),K=J.indexOf(Q,W+1);else if(Y.length==1)H=[Y.pop(),V];else{if(Z=Y.pop(),Z<q)q=Z,$=V;V=J.indexOf(X,W+1)}W=K<V&&K>=0?K:V}if(Y.length)H=[q,$]}return H}});var qS=F((z01,ZS)=>{var t_=a_();ZS.exports=TU0;var e_="\x00SLASH"+Math.random()+"\x00",QS="\x00OPEN"+Math.random()+"\x00",YU="\x00CLOSE"+Math.random()+"\x00",XS="\x00COMMA"+Math.random()+"\x00",JS="\x00PERIOD"+Math.random()+"\x00",NU0=1e5,RU0=4000000;function XU(Q){return parseInt(Q,10)==Q?parseInt(Q,10):Q.charCodeAt(0)}function DU0(Q){return Q.split("\\\\").join(e_).split("\\{").join(QS).split("\\}").join(YU).split("\\,").join(XS).split("\\.").join(JS)}function wU0(Q){return Q.split(e_).join("\\").split(QS).join("{").split(YU).join("}").split(XS).join(",").split(JS).join(".")}function YS(Q){if(!Q)return[""];var X=[],J=t_("{","}",Q);if(!J)return Q.split(",");var{pre:Y,body:Z,post:q}=J,$=Y.split(",");$[$.length-1]+="{"+Z+"}";var H=YS(q);if(q.length)$[$.length-1]+=H.shift(),$.push.apply($,H);return X.push.apply(X,$),X}function TU0(Q,X){if(!Q)return[];X=X||{};var J=X.max==null?NU0:X.max,Y=X.maxLength==null?RU0:X.maxLength;if(Q.substr(0,2)==="{}")Q="\\{\\}"+Q.substr(2);return JU(DU0(Q),J,Y,!0).map(wU0)}function AU0(Q){return"{"+Q+"}"}function EU0(Q){return/^-?0\d/.test(Q)}function _U0(Q,X){return Q<=X}function SU0(Q,X){return Q>=X}function nX(Q,X,J,Y,Z,q){var $=[],H=0;for(var K=0;K<Q.length;K++)for(var V=0;V<J.length;V++){if($.length>=Y)return $;var W=Q[K]+X+J[V];if(q&&!W)continue;if(H+W.length>Z)return $;$.push(W),H+=W.length}return $}function vU0(Q,X,J,Y){var Z=Q.split(/\.\./),q=[];if(Z[0]===void 0||Z[1]===void 0)return q;var $=XU(Z[0]),H=XU(Z[1]),K=Math.max(Z[0].length,Z[1].length),V=Z.length===3&&Z[2]!==void 0?Math.max(Math.abs(XU(Z[2])),1):1,W=_U0,G=H<$;if(G)V*=-1,W=SU0;var U=Z.some(EU0),z=0;for(var L=$;W(L,H)&&q.length<J;L+=V){var B;if(X){if(B=String.fromCharCode(L),B==="\\")B=""}else if(B=String(L),U){var M=K-B.length;if(M>0){var I=Array(M+1).join("0");if(L<0)B="-"+I+B.slice(1);else B=I+B}}if(z+B.length>Y)break;q.push(B),z+=B.length}return q}function JU(Q,X,J,Y){var Z=[""],q=!1,$=!0;for(;;){let N=t_("{","}",Q);if(!N)return nX(Z,Q,[""],X,J,q);let k=N.pre;if(/\$$/.test(k)){if(Z=nX(Z,k+"{"+N.body+"}",[""],X,J,q&&!N.post.length),$=!1,!N.post.length)break;Q=N.post;continue}var H=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(N.body),K=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(N.body),V=H||K,W=N.body.indexOf(",")>=0;if(!V&&!W){if(N.post.match(/,(?!,).*\}/)){Q=N.pre+"{"+N.body+YU+N.post,Y=!0;continue}return nX(Z,k+"{"+N.body+"}"+N.post,[""],X,J,q)}if($)q=Y&&!V,$=!1;var G;if(V)G=vU0(N.body,K,X,J);else{var U=YS(N.body);if(U.length===1&&U[0]!==void 0){if(U=JU(U[0],X,J,!1).map(AU0),U.length===1){if(Z=nX(Z,k+U[0],[""],X,J,q&&!N.post.length),!N.post.length)break;Q=N.post;continue}}var z=q&&!N.post.length&&!k;for(var L=0;z&&L<Z.length;L++)if(Z[L])z=!1;G=[];var B=0;Q:for(var M=0;M<U.length;M++){var I=JU(U[M],X,J,!1);for(var j=0;j<I.length;j++){var D=I[j];if(z&&!D)continue;if(G.length>=X||B+D.length>J)break Q;G.push(D),B+=D.length}}}if(Z=nX(Z,k,G,X,J,q&&!N.post.length),!N.post.length)break;Q=N.post}return Z}});var GS=F((B01,KU)=>{var E6=KU.exports=(Q,X,J={})=>{if(hq(X),!J.nocomment&&X.charAt(0)==="#")return!1;return new iX(X,J).match(Q)};KU.exports=E6;var $U=n_();E6.sep=$U.sep;var W6=Symbol("globstar **");E6.GLOBSTAR=W6;var xU0=qS(),$S={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},HU="[^/]",ZU=HU+"*?",kU0="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",yU0="(?:(?!(?:\\/|^)\\.).)*?",WS=(Q)=>Q.split("").reduce((X,J)=>{return X[J]=!0,X},{}),HS=WS("().*{}+?[]^$\\!"),hU0=WS("[.("),KS=/\/+/;E6.filter=(Q,X={})=>(J,Y,Z)=>E6(J,Q,X);var s4=(Q,X={})=>{let J={};return Object.keys(Q).forEach((Y)=>J[Y]=Q[Y]),Object.keys(X).forEach((Y)=>J[Y]=X[Y]),J};E6.defaults=(Q)=>{if(!Q||typeof Q!=="object"||!Object.keys(Q).length)return E6;let X=E6,J=(Y,Z,q)=>X(Y,Z,s4(Q,q));return J.Minimatch=class extends X.Minimatch{constructor(Z,q){super(Z,s4(Q,q))}},J.Minimatch.defaults=(Y)=>X.defaults(s4(Q,Y)).Minimatch,J.filter=(Y,Z)=>X.filter(Y,s4(Q,Z)),J.defaults=(Y)=>X.defaults(s4(Q,Y)),J.makeRe=(Y,Z)=>X.makeRe(Y,s4(Q,Z)),J.braceExpand=(Y,Z)=>X.braceExpand(Y,s4(Q,Z)),J.match=(Y,Z,q)=>X.match(Y,Z,s4(Q,q)),J};E6.braceExpand=(Q,X)=>VS(Q,X);var VS=(Q,X={})=>{if(hq(Q),X.nobrace||!/\{(?:(?!\{).)*\}/.test(Q))return[Q];return xU0(Q)},bU0=65536,hq=(Q)=>{if(typeof Q!=="string")throw TypeError("invalid pattern");if(Q.length>bU0)throw TypeError("pattern is too long")},qU=Symbol("subparse");E6.makeRe=(Q,X)=>new iX(Q,X||{}).makeRe();E6.match=(Q,X,J={})=>{let Y=new iX(X,J);if(Q=Q.filter((Z)=>Y.match(Z)),Y.options.nonull&&!Q.length)Q.push(X);return Q};var fU0=(Q)=>Q.replace(/\\(.)/g,"$1"),gU0=(Q)=>Q.replace(/\\([^-\]])/g,"$1"),uU0=(Q)=>Q.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),mU0=(Q)=>Q.replace(/[[\]\\]/g,"\\$&");class iX{constructor(Q,X){if(hq(Q),!X)X={};if(this.options=X,this.maxGlobstarRecursion=X.maxGlobstarRecursion!==void 0?X.maxGlobstarRecursion:200,this.set=[],this.pattern=Q,this.windowsPathsNoEscape=!!X.windowsPathsNoEscape||X.allowWindowsEscape===!1,this.windowsPathsNoEscape)this.pattern=this.pattern.replace(/\\/g,"/");this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!X.partial,this.make()}debug(){}make(){let Q=this.pattern,X=this.options;if(!X.nocomment&&Q.charAt(0)==="#"){this.comment=!0;return}if(!Q){this.empty=!0;return}this.parseNegate();let J=this.globSet=this.braceExpand();if(X.debug)this.debug=(...Y)=>console.error(...Y);this.debug(this.pattern,J),J=this.globParts=J.map((Y)=>Y.split(KS)),this.debug(this.pattern,J),J=J.map((Y,Z,q)=>Y.map(this.parse,this)),this.debug(this.pattern,J),J=J.filter((Y)=>Y.indexOf(!1)===-1),this.debug(this.pattern,J),this.set=J}parseNegate(){if(this.options.nonegate)return;let Q=this.pattern,X=!1,J=0;for(let Y=0;Y<Q.length&&Q.charAt(Y)==="!";Y++)X=!X,J++;if(J)this.pattern=Q.slice(J);this.negate=X}matchOne(Q,X,J){if(X.indexOf(W6)!==-1)return this._matchGlobstar(Q,X,J,0,0);return this._matchOne(Q,X,J,0,0)}_matchGlobstar(Q,X,J,Y,Z){let q=-1;for(let I=Z;I<X.length;I++)if(X[I]===W6){q=I;break}let $=-1;for(let I=X.length-1;I>=0;I--)if(X[I]===W6){$=I;break}let H=X.slice(Z,q),K=J?X.slice(q+1):X.slice(q+1,$),V=J?[]:X.slice($+1);if(H.length){let I=Q.slice(Y,Y+H.length);if(!this._matchOne(I,H,J,0,0))return!1;Y+=H.length}let W=0;if(V.length){if(V.length+Y>Q.length)return!1;let I=Q.length-V.length;if(this._matchOne(Q,V,J,I,0))W=V.length;else{if(Q[Q.length-1]!==""||Y+V.length===Q.length)return!1;if(!this._matchOne(Q,V,J,I-1,0))return!1;W=V.length+1}}if(!K.length){let I=!!W;for(let j=Y;j<Q.length-W;j++){let D=String(Q[j]);if(I=!0,D==="."||D===".."||!this.options.dot&&D.charAt(0)===".")return!1}return J||I}let G=[[[],0]],U=G[0],z=0,L=[0];for(let I of K)if(I===W6)L.push(z),U=[[],0],G.push(U);else U[0].push(I),z++;let B=G.length-1,M=Q.length-W;for(let I of G)I[1]=M-(L[B--]+I[0].length);return!!this._matchGlobStarBodySections(Q,G,Y,0,J,0,!!W)}_matchGlobStarBodySections(Q,X,J,Y,Z,q,$){let H=X[Y];if(!H){for(let W=J;W<Q.length;W++){$=!0;let G=Q[W];if(G==="."||G===".."||!this.options.dot&&G.charAt(0)===".")return!1}return $}let[K,V]=H;while(J<=V){if(this._matchOne(Q.slice(0,J+K.length),K,Z,J,0)&&q<this.maxGlobstarRecursion){let U=this._matchGlobStarBodySections(Q,X,J+K.length,Y+1,Z,q+1,$);if(U!==!1)return U}let G=Q[J];if(G==="."||G===".."||!this.options.dot&&G.charAt(0)===".")return!1;J++}return Z||null}_matchOne(Q,X,J,Y,Z){let q,$,H,K;for(q=Y,$=Z,H=Q.length,K=X.length;q<H&&$<K;q++,$++){this.debug("matchOne loop");let V=X[$],W=Q[q];if(this.debug(X,V,W),V===!1||V===W6)return!1;let G;if(typeof V==="string")G=W===V,this.debug("string match",V,W,G);else G=W.match(V),this.debug("pattern match",V,W,G);if(!G)return!1}if(q===H&&$===K)return!0;else if(q===H)return J;else if($===K)return q===H-1&&Q[q]==="";throw Error("wtf?")}braceExpand(){return VS(this.pattern,this.options)}parse(Q,X){hq(Q);let J=this.options;if(Q==="**")if(!J.noglobstar)return W6;else Q="*";if(Q==="")return"";let Y="",Z=!1,q=!1,$=[],H=[],K,V=!1,W=-1,G=-1,U,z,L,B=Q.charAt(0)===".",M=J.dot||B,I=()=>B?"":M?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",j=(f)=>f.charAt(0)==="."?"":J.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",D=()=>{if(K){switch(K){case"*":Y+=ZU,Z=!0;break;case"?":Y+=HU,Z=!0;break;default:Y+="\\"+K;break}this.debug("clearStateChar %j %j",K,Y),K=!1}};for(let f=0,S;f<Q.length&&(S=Q.charAt(f));f++){if(this.debug("%s\t%s %s %j",Q,f,Y,S),q){if(S==="/")return!1;if(HS[S])Y+="\\";Y+=S,q=!1;continue}switch(S){case"/":return!1;case"\\":if(V&&Q.charAt(f+1)==="-"){Y+=S;continue}D(),q=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",Q,f,Y,S),V){if(this.debug(" in class"),S==="!"&&f===G+1)S="^";Y+=S;continue}if(S==="*"&&K==="*")continue;if(this.debug("call clearStateChar %j",K),D(),K=S,J.noext)D();continue;case"(":{if(V){Y+="(";continue}if(!K){Y+="\\(";continue}let p={type:K,start:f-1,reStart:Y.length,open:$S[K].open,close:$S[K].close};if(this.debug(this.pattern,"\t",p),$.push(p),Y+=p.open,p.start===0&&p.type!=="!")B=!0,Y+=j(Q.slice(f+1));this.debug("plType %j %j",K,Y),K=!1;continue}case")":{let p=$[$.length-1];if(V||!p){Y+="\\)";continue}if($.pop(),D(),Z=!0,z=p,Y+=z.close,z.type==="!")H.push(Object.assign(z,{reEnd:Y.length}));continue}case"|":{let p=$[$.length-1];if(V||!p){Y+="\\|";continue}if(D(),Y+="|",p.start===0&&p.type!=="!")B=!0,Y+=j(Q.slice(f+1));continue}case"[":if(D(),V){Y+="\\"+S;continue}V=!0,G=f,W=Y.length,Y+=S;continue;case"]":if(f===G+1||!V){Y+="\\"+S;continue}U=Q.substring(G+1,f);try{RegExp("["+mU0(gU0(U))+"]"),Y+=S}catch(p){Y=Y.substring(0,W)+"(?:$.)"}Z=!0,V=!1;continue;default:if(D(),HS[S]&&!(S==="^"&&V))Y+="\\";Y+=S;break}}if(V)U=Q.slice(G+1),L=this.parse(U,qU),Y=Y.substring(0,W)+"\\["+L[0],Z=Z||L[1];for(z=$.pop();z;z=$.pop()){let f;f=Y.slice(z.reStart+z.open.length),this.debug("setting tail",Y,z),f=f.replace(/((?:\\{2}){0,64})(\\?)\|/g,(p,T,u)=>{if(!u)u="\\";return T+T+u+"|"}),this.debug(`tail=%j
23
+ %s`,f,f,z,Y);let S=z.type==="*"?ZU:z.type==="?"?HU:"\\"+z.type;Z=!0,Y=Y.slice(0,z.reStart)+S+"\\("+f}if(D(),q)Y+="\\\\";let N=hU0[Y.charAt(0)];for(let f=H.length-1;f>-1;f--){let S=H[f],p=Y.slice(0,S.reStart),T=Y.slice(S.reStart,S.reEnd-8),u=Y.slice(S.reEnd),c=Y.slice(S.reEnd-8,S.reEnd)+u,X0=p.split(")").length,I0=p.split("(").length-X0,P0=u;for(let w0=0;w0<I0;w0++)P0=P0.replace(/\)[+*?]?/,"");u=P0;let m0=u===""&&X!==qU?"(?:$|\\/)":"";Y=p+T+u+m0+c}if(Y!==""&&Z)Y="(?=.)"+Y;if(N)Y=I()+Y;if(X===qU)return[Y,Z];if(J.nocase&&!Z)Z=Q.toUpperCase()!==Q.toLowerCase();if(!Z)return fU0(Q);let k=J.nocase?"i":"";try{return Object.assign(new RegExp("^"+Y+"$",k),{_glob:Q,_src:Y})}catch(f){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let Q=this.set;if(!Q.length)return this.regexp=!1,this.regexp;let X=this.options,J=X.noglobstar?ZU:X.dot?kU0:yU0,Y=X.nocase?"i":"",Z=Q.map((q)=>{return q=q.map(($)=>typeof $==="string"?uU0($):$===W6?W6:$._src).reduce(($,H)=>{if(!($[$.length-1]===W6&&H===W6))$.push(H);return $},[]),q.forEach(($,H)=>{if($!==W6||q[H-1]===W6)return;if(H===0)if(q.length>1)q[H+1]="(?:\\/|"+J+"\\/)?"+q[H+1];else q[H]=J;else if(H===q.length-1)q[H-1]+="(?:\\/|"+J+")?";else q[H-1]+="(?:\\/|\\/"+J+"\\/)"+q[H+1],q[H+1]=W6}),q.filter(($)=>$!==W6).join("/")}).join("|");if(Z="^(?:"+Z+")$",this.negate)Z="^(?!"+Z+").*$";try{this.regexp=new RegExp(Z,Y)}catch(q){this.regexp=!1}return this.regexp}match(Q,X=this.partial){if(this.debug("match",Q,this.pattern),this.comment)return!1;if(this.empty)return Q==="";if(Q==="/"&&X)return!0;let J=this.options;if($U.sep!=="/")Q=Q.split($U.sep).join("/");Q=Q.split(KS),this.debug(this.pattern,"split",Q);let Y=this.set;this.debug(this.pattern,"set",Y);let Z;for(let q=Q.length-1;q>=0;q--)if(Z=Q[q],Z)break;for(let q=0;q<Y.length;q++){let $=Y[q],H=Q;if(J.matchBase&&$.length===1)H=[Z];if(this.matchOne(H,$,X)){if(J.flipNegate)return!0;return!this.negate}}if(J.flipNegate)return!1;return this.negate}static defaults(Q){return E6.defaults(Q).Minimatch}}E6.Minimatch=iX});var FS=F((L01,LS)=>{LS.exports=BS;var VU=l("fs"),{EventEmitter:dU0}=l("events"),{Minimatch:WU}=GS(),{resolve:cU0}=l("path");function lU0(Q,X){return new Promise((J,Y)=>{VU.readdir(Q,{withFileTypes:!0},(Z,q)=>{if(Z)switch(Z.code){case"ENOTDIR":if(X)Y(Z);else J([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":J([]);break;case"ELOOP":default:Y(Z);break}else J(q)})})}function US(Q,X){return new Promise((J,Y)=>{(X?VU.stat:VU.lstat)(Q,(q,$)=>{if(q)switch(q.code){case"ENOENT":if(X)J(US(Q,!1));else J(null);break;default:J(null);break}else J($)})})}async function*zS(Q,X,J,Y,Z,q){let $=await lU0(X+Q,q);for(let H of $){let K=H.name;if(K===void 0)K=H,Y=!0;let V=Q+"/"+K,W=V.slice(1),G=X+"/"+W,U=null;if(Y||J)U=await US(G,J);if(!U&&H.name!==void 0)U=H;if(U===null)U={isDirectory:()=>!1};if(U.isDirectory()){if(!Z(W))yield{relative:W,absolute:G,stats:U},yield*zS(V,X,J,Y,Z,!1)}else yield{relative:W,absolute:G,stats:U}}}async function*pU0(Q,X,J,Y){yield*zS("",Q,X,J,Y,!0)}function nU0(Q){return{pattern:Q.pattern,dot:!!Q.dot,noglobstar:!!Q.noglobstar,matchBase:!!Q.matchBase,nocase:!!Q.nocase,ignore:Q.ignore,skip:Q.skip,follow:!!Q.follow,stat:!!Q.stat,nodir:!!Q.nodir,mark:!!Q.mark,silent:!!Q.silent,absolute:!!Q.absolute}}class GU extends dU0{constructor(Q,X,J){super();if(typeof X==="function")J=X,X=null;if(this.options=nU0(X||{}),this.matchers=[],this.options.pattern){let Y=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=Y.map((Z)=>new WU(Z,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let Y=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=Y.map((Z)=>new WU(Z,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let Y=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=Y.map((Z)=>new WU(Z,{dot:!0}))}if(this.iterator=pU0(cU0(Q||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,J)this._matches=[],this.on("match",(Y)=>this._matches.push(this.options.absolute?Y.absolute:Y.relative)),this.on("error",(Y)=>J(Y)),this.on("end",()=>J(null,this._matches));setTimeout(()=>this._next(),0)}_shouldSkipDirectory(Q){return this.skipMatchers.some((X)=>X.match(Q))}_fileMatches(Q,X){let J=Q+(X?"/":"");return(this.matchers.length===0||this.matchers.some((Y)=>Y.match(J)))&&!this.ignoreMatchers.some((Y)=>Y.match(J))&&(!this.options.nodir||!X)}_next(){if(!this.paused&&!this.aborted)this.iterator.next().then((Q)=>{if(!Q.done){let X=Q.value.stats.isDirectory();if(this._fileMatches(Q.value.relative,X)){let J=Q.value.relative,Y=Q.value.absolute;if(this.options.mark&&X)J+="/",Y+="/";if(this.options.stat)this.emit("match",{relative:J,absolute:Y,stat:Q.value.stats});else this.emit("match",{relative:J,absolute:Y})}this._next(this.iterator)}else this.emit("end")}).catch((Q)=>{if(this.abort(),this.emit("error",Q),!Q.code&&!this.options.silent)console.error(Q)});else this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){if(this.paused=!1,this.inactive)this.inactive=!1,this._next()}}function BS(Q,X,J){return new GU(Q,X,J)}BS.ReaddirGlob=GU});var IS=F((bq,MS)=>{(function(Q,X){typeof bq==="object"&&typeof MS<"u"?X(bq):typeof define==="function"&&define.amd?define(["exports"],X):(Q=typeof globalThis<"u"?globalThis:Q||self,X(Q.async={}))})(bq,function(Q){function X(P,...C){return(...O)=>P(...C,...O)}function J(P){return function(...C){var O=C.pop();return P.call(this,C,O)}}var Y=typeof queueMicrotask==="function"&&queueMicrotask,Z=typeof setImmediate==="function"&&setImmediate,q=typeof process==="object"&&typeof process.nextTick==="function";function $(P){setTimeout(P,0)}function H(P){return(C,...O)=>P(()=>C(...O))}var K;if(Y)K=queueMicrotask;else if(Z)K=setImmediate;else if(q)K=process.nextTick;else K=$;var V=H(K);function W(P){if(z(P))return function(...C){let O=C.pop(),w=P.apply(this,C);return G(w,O)};return J(function(C,O){var w;try{w=P.apply(this,C)}catch(v){return O(v)}if(w&&typeof w.then==="function")return G(w,O);else O(null,w)})}function G(P,C){return P.then((O)=>{U(C,null,O)},(O)=>{U(C,O&&(O instanceof Error||O.message)?O:Error(O))})}function U(P,C,O){try{P(C,O)}catch(w){V((v)=>{throw v},w)}}function z(P){return P[Symbol.toStringTag]==="AsyncFunction"}function L(P){return P[Symbol.toStringTag]==="AsyncGenerator"}function B(P){return typeof P[Symbol.asyncIterator]==="function"}function M(P){if(typeof P!=="function")throw Error("expected a function");return z(P)?W(P):P}function I(P,C){if(!C)C=P.length;if(!C)throw Error("arity is undefined");function O(...w){if(typeof w[C-1]==="function")return P.apply(this,w);return new Promise((v,x)=>{w[C-1]=(y,...h)=>{if(y)return x(y);v(h.length>1?h:h[0])},P.apply(this,w)})}return O}function j(P){return function(O,...w){return I(function(x){var y=this;return P(O,(h,g)=>{M(h).apply(y,w.concat(g))},x)})}}function D(P,C,O,w){C=C||[];var v=[],x=0,y=M(O);return P(C,(h,g,Y0)=>{var E0=x++;y(h,(b0,S0)=>{v[E0]=S0,Y0(b0)})},(h)=>{w(h,v)})}function N(P){return P&&typeof P.length==="number"&&P.length>=0&&P.length%1===0}let k={};function f(P){function C(...O){if(P===null)return;var w=P;P=null,w.apply(this,O)}return Object.assign(C,P),C}function S(P){return P[Symbol.iterator]&&P[Symbol.iterator]()}function p(P){var C=-1,O=P.length;return function(){return++C<O?{value:P[C],key:C}:null}}function T(P){var C=-1;return function(){var w=P.next();if(w.done)return null;return C++,{value:w.value,key:C}}}function u(P){var C=P?Object.keys(P):[],O=-1,w=C.length;return function v(){var x=C[++O];if(x==="__proto__")return v();return O<w?{value:P[x],key:x}:null}}function c(P){if(N(P))return p(P);var C=S(P);return C?T(C):u(P)}function X0(P){return function(...C){if(P===null)throw Error("Callback was already called.");var O=P;P=null,O.apply(this,C)}}function I0(P,C,O,w){let v=!1,x=!1,y=!1,h=0,g=0;function Y0(){if(h>=C||y||v)return;y=!0,P.next().then(({value:S0,done:f6})=>{if(x||v)return;if(y=!1,f6){if(v=!0,h<=0)w(null);return}h++,O(S0,g,E0),g++,Y0()}).catch(b0)}function E0(S0,f6){if(h-=1,x)return;if(S0)return b0(S0);if(S0===!1){v=!0,x=!0;return}if(f6===k||v&&h<=0)return v=!0,w(null);Y0()}function b0(S0){if(x)return;y=!1,v=!0,w(S0)}Y0()}var P0=(P)=>{return(C,O,w)=>{if(w=f(w),P<=0)throw RangeError("concurrency limit cannot be less than 1");if(!C)return w(null);if(L(C))return I0(C,P,O,w);if(B(C))return I0(C[Symbol.asyncIterator](),P,O,w);var v=c(C),x=!1,y=!1,h=0,g=!1;function Y0(b0,S0){if(y)return;if(h-=1,b0)x=!0,w(b0);else if(b0===!1)x=!0,y=!0;else if(S0===k||x&&h<=0)return x=!0,w(null);else if(!g)E0()}function E0(){g=!0;while(h<P&&!x){var b0=v();if(b0===null){if(x=!0,h<=0)w(null);return}h+=1,O(b0.value,b0.key,X0(Y0))}g=!1}E0()}};function m0(P,C,O,w){return P0(C)(P,M(O),w)}var w0=I(m0,4);function h0(P,C,O){O=f(O);var w=0,v=0,{length:x}=P,y=!1;if(x===0)O(null);function h(g,Y0){if(g===!1)y=!0;if(y===!0)return;if(g)O(g);else if(++v===x||Y0===k)O(null)}for(;w<x;w++)C(P[w],w,X0(h))}function $1(P,C,O){return w0(P,1/0,C,O)}function d0(P,C,O){var w=N(P)?h0:$1;return w(P,M(C),O)}var U1=I(d0,3);function Z4(P,C,O){return D(U1,P,C,O)}var k4=I(Z4,3),G0=j(k4);function v7(P,C,O){return w0(P,1,C,O)}var Z6=I(v7,3);function cQ(P,C,O){return D(Z6,P,C,O)}var E8=I(cQ,3),x7=j(E8);let q6=Symbol("promiseCallback");function w1(){let P,C;function O(w,...v){if(w)return C(w);P(v.length>1?v:v[0])}return O[q6]=new Promise((w,v)=>{P=w,C=v}),O}function $0(P,C,O){if(typeof C!=="number")O=C,C=null;O=f(O||w1());var w=Object.keys(P).length;if(!w)return O(null);if(!C)C=w;var v={},x=0,y=!1,h=!1,g=Object.create(null),Y0=[],E0=[],b0={};Object.keys(P).forEach((e)=>{var W0=P[e];if(!Array.isArray(W0)){S0(e,[W0]),E0.push(e);return}var v0=W0.slice(0,W0.length-1),J1=v0.length;if(J1===0){S0(e,W0),E0.push(e);return}b0[e]=J1,v0.forEach((v1)=>{if(!P[v1])throw Error("async.auto task `"+e+"` has a non-existent dependency `"+v1+"` in "+v0.join(", "));y7(v1,()=>{if(J1--,J1===0)S0(e,W0)})})}),f0(),f6();function S0(e,W0){Y0.push(()=>rQ(e,W0))}function f6(){if(y)return;if(Y0.length===0&&x===0)return O(null,v);while(Y0.length&&x<C){var e=Y0.shift();e()}}function y7(e,W0){var v0=g[e];if(!v0)v0=g[e]=[];v0.push(W0)}function N5(e){var W0=g[e]||[];W0.forEach((v0)=>v0()),f6()}function rQ(e,W0){if(h)return;var v0=X0((v1,...g6)=>{if(x--,v1===!1){y=!0;return}if(g6.length<2)[g6]=g6;if(v1){var h7={};if(Object.keys(v).forEach((R5)=>{h7[R5]=v[R5]}),h7[e]=g6,h=!0,g=Object.create(null),y)return;O(v1,h7)}else v[e]=g6,N5(e)});x++;var J1=M(W0[W0.length-1]);if(W0.length>1)J1(v,v0);else J1(v0)}function f0(){var e,W0=0;while(E0.length)e=E0.pop(),W0++,K0(e).forEach((v0)=>{if(--b0[v0]===0)E0.push(v0)});if(W0!==w)throw Error("async.auto cannot execute tasks due to a recursive dependency")}function K0(e){var W0=[];return Object.keys(P).forEach((v0)=>{let J1=P[v0];if(Array.isArray(J1)&&J1.indexOf(e)>=0)W0.push(v0)}),W0}return O[q6]}var d=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,Z0=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,R=/,/,A=/(=.+)?(\s*)$/;function m(P){let C="",O=0,w=P.indexOf("*/");while(O<P.length)if(P[O]==="/"&&P[O+1]==="/"){let v=P.indexOf(`
24
+ `,O);O=v===-1?P.length:v}else if(w!==-1&&P[O]==="/"&&P[O+1]==="*"){let v=P.indexOf("*/",O);if(v!==-1)O=v+2,w=P.indexOf("*/",O);else C+=P[O],O++}else C+=P[O],O++;return C}function b(P){let C=m(P.toString()),O=C.match(d);if(!O)O=C.match(Z0);if(!O)throw Error(`could not parse args in autoInject
25
+ Source:
26
+ `+C);let[,w]=O;return w.replace(/\s/g,"").split(R).map((v)=>v.replace(A,"").trim())}function E(P,C){var O={};return Object.keys(P).forEach((w)=>{var v=P[w],x,y=z(v),h=!y&&v.length===1||y&&v.length===0;if(Array.isArray(v))x=[...v],v=x.pop(),O[w]=x.concat(x.length>0?g:v);else if(h)O[w]=v;else{if(x=b(v),v.length===0&&!y&&x.length===0)throw Error("autoInject task functions require explicit parameters.");if(!y)x.pop();O[w]=x.concat(g)}function g(Y0,E0){var b0=x.map((S0)=>Y0[S0]);b0.push(E0),M(v)(...b0)}}),$0(O,C)}class t{constructor(){this.head=this.tail=null,this.length=0}removeLink(P){if(P.prev)P.prev.next=P.next;else this.head=P.next;if(P.next)P.next.prev=P.prev;else this.tail=P.prev;return P.prev=P.next=null,this.length-=1,P}empty(){while(this.head)this.shift();return this}insertAfter(P,C){if(C.prev=P,C.next=P.next,P.next)P.next.prev=C;else this.tail=C;P.next=C,this.length+=1}insertBefore(P,C){if(C.prev=P.prev,C.next=P,P.prev)P.prev.next=C;else this.head=C;P.prev=C,this.length+=1}unshift(P){if(this.head)this.insertBefore(this.head,P);else i(this,P)}push(P){if(this.tail)this.insertAfter(this.tail,P);else i(this,P)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){var P=this.head;while(P)yield P.data,P=P.next}remove(P){var C=this.head;while(C){var{next:O}=C;if(P(C))this.removeLink(C);C=O}return this}}function i(P,C){P.length=1,P.head=P.tail=C}function J0(P,C,O){if(C==null)C=1;else if(C===0)throw RangeError("Concurrency must not be zero");var w=M(P),v=0,x=[];let y={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function h(K0,e){y[K0].push(e)}function g(K0,e){let W0=(...v0)=>{Y0(K0,W0),e(...v0)};y[K0].push(W0)}function Y0(K0,e){if(!K0)return Object.keys(y).forEach((W0)=>y[W0]=[]);if(!e)return y[K0]=[];y[K0]=y[K0].filter((W0)=>W0!==e)}function E0(K0,...e){y[K0].forEach((W0)=>W0(...e))}var b0=!1;function S0(K0,e,W0,v0){if(v0!=null&&typeof v0!=="function")throw Error("task callback must be a function");f0.started=!0;var J1,v1;function g6(R5,...sQ){if(R5)return W0?v1(R5):J1();if(sQ.length<=1)return J1(sQ[0]);J1(sQ)}var h7=f0._createTaskItem(K0,W0?g6:v0||g6);if(e)f0._tasks.unshift(h7);else f0._tasks.push(h7);if(!b0)b0=!0,V(()=>{b0=!1,f0.process()});if(W0||!v0)return new Promise((R5,sQ)=>{J1=R5,v1=sQ})}function f6(K0){return function(e,...W0){v-=1;for(var v0=0,J1=K0.length;v0<J1;v0++){var v1=K0[v0],g6=x.indexOf(v1);if(g6===0)x.shift();else if(g6>0)x.splice(g6,1);if(v1.callback(e,...W0),e!=null)E0("error",e,v1.data)}if(v<=f0.concurrency-f0.buffer)E0("unsaturated");if(f0.idle())E0("drain");f0.process()}}function y7(K0){if(K0.length===0&&f0.idle())return V(()=>E0("drain")),!0;return!1}let N5=(K0)=>(e)=>{if(!e)return new Promise((W0,v0)=>{g(K0,(J1,v1)=>{if(J1)return v0(J1);W0(v1)})});Y0(K0),h(K0,e)};var rQ=!1,f0={_tasks:new t,_createTaskItem(K0,e){return{data:K0,callback:e}},*[Symbol.iterator](){yield*f0._tasks[Symbol.iterator]()},concurrency:C,payload:O,buffer:C/4,started:!1,paused:!1,push(K0,e){if(Array.isArray(K0)){if(y7(K0))return;return K0.map((W0)=>S0(W0,!1,!1,e))}return S0(K0,!1,!1,e)},pushAsync(K0,e){if(Array.isArray(K0)){if(y7(K0))return;return K0.map((W0)=>S0(W0,!1,!0,e))}return S0(K0,!1,!0,e)},kill(){Y0(),f0._tasks.empty()},unshift(K0,e){if(Array.isArray(K0)){if(y7(K0))return;return K0.map((W0)=>S0(W0,!0,!1,e))}return S0(K0,!0,!1,e)},unshiftAsync(K0,e){if(Array.isArray(K0)){if(y7(K0))return;return K0.map((W0)=>S0(W0,!0,!0,e))}return S0(K0,!0,!0,e)},remove(K0){f0._tasks.remove(K0)},process(){if(rQ)return;rQ=!0;while(!f0.paused&&v<f0.concurrency&&f0._tasks.length){var K0=[],e=[],W0=f0._tasks.length;if(f0.payload)W0=Math.min(W0,f0.payload);for(var v0=0;v0<W0;v0++){var J1=f0._tasks.shift();K0.push(J1),x.push(J1),e.push(J1.data)}if(v+=1,f0._tasks.length===0)E0("empty");if(v===f0.concurrency)E0("saturated");var v1=X0(f6(K0));w(e,v1)}rQ=!1},length(){return f0._tasks.length},running(){return v},workersList(){return x},idle(){return f0._tasks.length+v===0},pause(){f0.paused=!0},resume(){if(f0.paused===!1)return;f0.paused=!1,V(f0.process)}};return Object.defineProperties(f0,{saturated:{writable:!1,value:N5("saturated")},unsaturated:{writable:!1,value:N5("unsaturated")},empty:{writable:!1,value:N5("empty")},drain:{writable:!1,value:N5("drain")},error:{writable:!1,value:N5("error")}}),f0}function L1(P,C){return J0(P,1,C)}function S1(P,C,O){return J0(P,C,O)}function A10(P,C,O,w){w=f(w);var v=M(O);return Z6(P,(x,y,h)=>{v(C,x,(g,Y0)=>{C=Y0,h(g)})},(x)=>w(x,C))}var y4=I(A10,4);function hK(...P){var C=P.map(M);return function(...O){var w=this,v=O[O.length-1];if(typeof v=="function")O.pop();else v=w1();return y4(C,O,(x,y,h)=>{y.apply(w,x.concat((g,...Y0)=>{h(g,Y0)}))},(x,y)=>v(x,...y)),v[q6]}}function KI(...P){return hK(...P.reverse())}function E10(P,C,O,w){return D(P0(C),P,O,w)}var lQ=I(E10,4);function _10(P,C,O,w){var v=M(O);return lQ(P,C,(x,y)=>{v(x,(h,...g)=>{if(h)return y(h);return y(h,g)})},(x,y)=>{var h=[];for(var g=0;g<y.length;g++)if(y[g])h=h.concat(...y[g]);return w(x,h)})}var k7=I(_10,4);function S10(P,C,O){return k7(P,1/0,C,O)}var fY=I(S10,3);function v10(P,C,O){return k7(P,1,C,O)}var gY=I(v10,3);function WI(...P){return function(...C){var O=C.pop();return O(null,...P)}}function q4(P,C){return(O,w,v,x)=>{var y=!1,h;let g=M(v);O(w,(Y0,E0,b0)=>{g(Y0,(S0,f6)=>{if(S0||S0===!1)return b0(S0);if(P(f6)&&!h)return y=!0,h=C(!0,Y0),b0(null,k);b0()})},(Y0)=>{if(Y0)return x(Y0);x(null,y?h:C(!1))})}}function x10(P,C,O){return q4((w)=>w,(w,v)=>v)(U1,P,C,O)}var uY=I(x10,3);function k10(P,C,O,w){return q4((v)=>v,(v,x)=>x)(P0(C),P,O,w)}var mY=I(k10,4);function y10(P,C,O){return q4((w)=>w,(w,v)=>v)(P0(1),P,C,O)}var dY=I(y10,3);function VI(P){return(C,...O)=>M(C)(...O,(w,...v)=>{if(typeof console==="object"){if(w){if(console.error)console.error(w)}else if(console[P])v.forEach((x)=>console[P](x))}})}var GI=VI("dir");function h10(P,C,O){O=X0(O);var w=M(P),v=M(C),x;function y(g,...Y0){if(g)return O(g);if(g===!1)return;x=Y0,v(...Y0,h)}function h(g,Y0){if(g)return O(g);if(g===!1)return;if(!Y0)return O(null,...x);w(y)}return h(null,!0)}var pQ=I(h10,3);function UI(P,C,O){let w=M(C);return pQ(P,(...v)=>{let x=v.pop();w(...v,(y,h)=>x(y,!h))},O)}function zI(P){return(C,O,w)=>P(C,w)}function b10(P,C,O){return U1(P,zI(M(C)),O)}var cY=I(b10,3);function f10(P,C,O,w){return P0(C)(P,zI(M(O)),w)}var nQ=I(f10,4);function g10(P,C,O){return nQ(P,1,C,O)}var iQ=I(g10,3);function bK(P){if(z(P))return P;return function(...C){var O=C.pop(),w=!0;C.push((...v)=>{if(w)V(()=>O(...v));else O(...v)}),P.apply(this,C),w=!1}}function u10(P,C,O){return q4((w)=>!w,(w)=>!w)(U1,P,C,O)}var lY=I(u10,3);function m10(P,C,O,w){return q4((v)=>!v,(v)=>!v)(P0(C),P,O,w)}var pY=I(m10,4);function d10(P,C,O){return q4((w)=>!w,(w)=>!w)(Z6,P,C,O)}var nY=I(d10,3);function c10(P,C,O,w){var v=Array(C.length);P(C,(x,y,h)=>{O(x,(g,Y0)=>{v[y]=!!Y0,h(g)})},(x)=>{if(x)return w(x);var y=[];for(var h=0;h<C.length;h++)if(v[h])y.push(C[h]);w(null,y)})}function l10(P,C,O,w){var v=[];P(C,(x,y,h)=>{O(x,(g,Y0)=>{if(g)return h(g);if(Y0)v.push({index:y,value:x});h(g)})},(x)=>{if(x)return w(x);w(null,v.sort((y,h)=>y.index-h.index).map((y)=>y.value))})}function iY(P,C,O,w){var v=N(C)?c10:l10;return v(P,C,M(O),w)}function p10(P,C,O){return iY(U1,P,C,O)}var oY=I(p10,3);function n10(P,C,O,w){return iY(P0(C),P,O,w)}var rY=I(n10,4);function i10(P,C,O){return iY(Z6,P,C,O)}var sY=I(i10,3);function o10(P,C){var O=X0(C),w=M(bK(P));function v(x){if(x)return O(x);if(x===!1)return;w(v)}return v()}var BI=I(o10,2);function r10(P,C,O,w){var v=M(O);return lQ(P,C,(x,y)=>{v(x,(h,g)=>{if(h)return y(h);return y(h,{key:g,val:x})})},(x,y)=>{var h={},{hasOwnProperty:g}=Object.prototype;for(var Y0=0;Y0<y.length;Y0++)if(y[Y0]){var{key:E0}=y[Y0],{val:b0}=y[Y0];if(g.call(h,E0))h[E0].push(b0);else h[E0]=[b0]}return w(x,h)})}var aY=I(r10,4);function LI(P,C,O){return aY(P,1/0,C,O)}function FI(P,C,O){return aY(P,1,C,O)}var MI=VI("log");function s10(P,C,O,w){w=f(w);var v={},x=M(O);return P0(C)(P,(y,h,g)=>{x(y,h,(Y0,E0)=>{if(Y0)return g(Y0);v[h]=E0,g(Y0)})},(y)=>w(y,v))}var tY=I(s10,4);function II(P,C,O){return tY(P,1/0,C,O)}function PI(P,C,O){return tY(P,1,C,O)}function CI(P,C=(O)=>O){var O=Object.create(null),w=Object.create(null),v=M(P),x=J((y,h)=>{var g=C(...y);if(g in O)V(()=>h(null,...O[g]));else if(g in w)w[g].push(h);else w[g]=[h],v(...y,(Y0,...E0)=>{if(!Y0)O[g]=E0;var b0=w[g];delete w[g];for(var S0=0,f6=b0.length;S0<f6;S0++)b0[S0](Y0,...E0)})});return x.memo=O,x.unmemoized=P,x}var eY;if(q)eY=process.nextTick;else if(Z)eY=setImmediate;else eY=$;var OI=H(eY),fK=I((P,C,O)=>{var w=N(C)?[]:{};P(C,(v,x,y)=>{M(v)((h,...g)=>{if(g.length<2)[g]=g;w[x]=g,y(h)})},(v)=>O(v,w))},3);function jI(P,C){return fK(U1,P,C)}function NI(P,C,O){return fK(P0(C),P,O)}function gK(P,C){var O=M(P);return J0((w,v)=>{O(w[0],v)},C,1)}class RI{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(P){let C;while(P>0&&uK(this.heap[P],this.heap[C=DI(P)])){let O=this.heap[P];this.heap[P]=this.heap[C],this.heap[C]=O,P=C}}percDown(P){let C;while((C=a10(P))<this.heap.length){if(C+1<this.heap.length&&uK(this.heap[C+1],this.heap[C]))C=C+1;if(uK(this.heap[P],this.heap[C]))break;let O=this.heap[P];this.heap[P]=this.heap[C],this.heap[C]=O,P=C}}push(P){P.pushCount=++this.pushCount,this.heap.push(P),this.percUp(this.heap.length-1)}unshift(P){return this.heap.push(P)}shift(){let[P]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),P}toArray(){return[...this]}*[Symbol.iterator](){for(let P=0;P<this.heap.length;P++)yield this.heap[P].data}remove(P){let C=0;for(let O=0;O<this.heap.length;O++)if(!P(this.heap[O]))this.heap[C]=this.heap[O],C++;this.heap.splice(C);for(let O=DI(this.heap.length-1);O>=0;O--)this.percDown(O);return this}}function a10(P){return(P<<1)+1}function DI(P){return(P+1>>1)-1}function uK(P,C){if(P.priority!==C.priority)return P.priority<C.priority;else return P.pushCount<C.pushCount}function wI(P,C){var O=gK(P,C),{push:w,pushAsync:v}=O;O._tasks=new RI,O._createTaskItem=({data:y,priority:h},g)=>{return{data:y,priority:h,callback:g}};function x(y,h){if(!Array.isArray(y))return{data:y,priority:h};return y.map((g)=>{return{data:g,priority:h}})}return O.push=function(y,h=0,g){return w(x(y,h),g)},O.pushAsync=function(y,h=0,g){return v(x(y,h),g)},delete O.unshift,delete O.unshiftAsync,O}function t10(P,C){if(C=f(C),!Array.isArray(P))return C(TypeError("First argument to race must be an array of functions"));if(!P.length)return C();for(var O=0,w=P.length;O<w;O++)M(P[O])(C)}var TI=I(t10,2);function QZ(P,C,O,w){var v=[...P].reverse();return y4(v,C,O,w)}function XZ(P){var C=M(P);return J(function(w,v){return w.push((x,...y)=>{let h={};if(x)h.error=x;if(y.length>0){var g=y;if(y.length<=1)[g]=y;h.value=g}v(null,h)}),C.apply(this,w)})}function AI(P){var C;if(Array.isArray(P))C=P.map(XZ);else C={},Object.keys(P).forEach((O)=>{C[O]=XZ.call(this,P[O])});return C}function mK(P,C,O,w){let v=M(O);return iY(P,C,(x,y)=>{v(x,(h,g)=>{y(h,!g)})},w)}function e10(P,C,O){return mK(U1,P,C,O)}var EI=I(e10,3);function Q60(P,C,O,w){return mK(P0(C),P,O,w)}var _I=I(Q60,4);function X60(P,C,O){return mK(Z6,P,C,O)}var SI=I(X60,3);function vI(P){return function(){return P}}let dK=5,xI=0;function JZ(P,C,O){var w={times:dK,intervalFunc:vI(xI)};if(arguments.length<3&&typeof P==="function")O=C||w1(),C=P;else J60(w,P),O=O||w1();if(typeof C!=="function")throw Error("Invalid arguments for async.retry");var v=M(C),x=1;function y(){v((h,...g)=>{if(h===!1)return;if(h&&x++<w.times&&(typeof w.errorFilter!="function"||w.errorFilter(h)))setTimeout(y,w.intervalFunc(x-1));else O(h,...g)})}return y(),O[q6]}function J60(P,C){if(typeof C==="object")P.times=+C.times||dK,P.intervalFunc=typeof C.interval==="function"?C.interval:vI(+C.interval||xI),P.errorFilter=C.errorFilter;else if(typeof C==="number"||typeof C==="string")P.times=+C||dK;else throw Error("Invalid arguments for async.retry")}function kI(P,C){if(!C)C=P,P=null;let O=P&&P.arity||C.length;if(z(C))O+=1;var w=M(C);return J((v,x)=>{if(v.length<O-1||x==null)v.push(x),x=w1();function y(h){w(...v,h)}if(P)JZ(P,y,x);else JZ(y,x);return x[q6]})}function yI(P,C){return fK(Z6,P,C)}function Y60(P,C,O){return q4(Boolean,(w)=>w)(U1,P,C,O)}var YZ=I(Y60,3);function Z60(P,C,O,w){return q4(Boolean,(v)=>v)(P0(C),P,O,w)}var ZZ=I(Z60,4);function q60(P,C,O){return q4(Boolean,(w)=>w)(Z6,P,C,O)}var qZ=I(q60,3);function $60(P,C,O){var w=M(C);return k4(P,(x,y)=>{w(x,(h,g)=>{if(h)return y(h);y(h,{value:x,criteria:g})})},(x,y)=>{if(x)return O(x);O(null,y.sort(v).map((h)=>h.value))});function v(x,y){var h=x.criteria,g=y.criteria;return h<g?-1:h>g?1:0}}var hI=I($60,3);function bI(P,C,O){var w=M(P);return J((v,x)=>{var y=!1,h;function g(){var Y0=P.name||"anonymous",E0=Error('Callback function "'+Y0+'" timed out.');if(E0.code="ETIMEDOUT",O)E0.info=O;y=!0,x(E0)}v.push((...Y0)=>{if(!y)x(...Y0),clearTimeout(h)}),h=setTimeout(g,C),w(...v)})}function H60(P){var C=Array(P);while(P--)C[P]=P;return C}function $Z(P,C,O,w){var v=M(O);return lQ(H60(P),C,v,w)}function fI(P,C,O){return $Z(P,1/0,C,O)}function gI(P,C,O){return $Z(P,1,C,O)}function uI(P,C,O,w){if(arguments.length<=3&&typeof C==="function")w=O,O=C,C=Array.isArray(P)?[]:{};w=f(w||w1());var v=M(O);return U1(P,(x,y,h)=>{v(C,x,y,h)},(x)=>w(x,C)),w[q6]}function K60(P,C){var O=null,w;return iQ(P,(v,x)=>{M(v)((y,...h)=>{if(y===!1)return x(y);if(h.length<2)[w]=h;else w=h;O=y,x(y?null:{})})},()=>C(O,w))}var mI=I(K60);function dI(P){return(...C)=>{return(P.unmemoized||P)(...C)}}function W60(P,C,O){O=X0(O);var w=M(C),v=M(P),x=[];function y(g,...Y0){if(g)return O(g);if(x=Y0,g===!1)return;v(h)}function h(g,Y0){if(g)return O(g);if(g===!1)return;if(!Y0)return O(null,...x);w(y)}return v(h)}var oQ=I(W60,3);function cI(P,C,O){let w=M(P);return oQ((v)=>w((x,y)=>v(x,!y)),C,O)}function V60(P,C){if(C=f(C),!Array.isArray(P))return C(Error("First argument to waterfall must be an array of functions"));if(!P.length)return C();var O=0;function w(x){var y=M(P[O++]);y(...x,X0(v))}function v(x,...y){if(x===!1)return;if(x||O===P.length)return C(x,...y);w(y)}w([])}var lI=I(V60),G60={apply:X,applyEach:G0,applyEachSeries:x7,asyncify:W,auto:$0,autoInject:E,cargo:L1,cargoQueue:S1,compose:KI,concat:fY,concatLimit:k7,concatSeries:gY,constant:WI,detect:uY,detectLimit:mY,detectSeries:dY,dir:GI,doUntil:UI,doWhilst:pQ,each:cY,eachLimit:nQ,eachOf:U1,eachOfLimit:w0,eachOfSeries:Z6,eachSeries:iQ,ensureAsync:bK,every:lY,everyLimit:pY,everySeries:nY,filter:oY,filterLimit:rY,filterSeries:sY,forever:BI,groupBy:LI,groupByLimit:aY,groupBySeries:FI,log:MI,map:k4,mapLimit:lQ,mapSeries:E8,mapValues:II,mapValuesLimit:tY,mapValuesSeries:PI,memoize:CI,nextTick:OI,parallel:jI,parallelLimit:NI,priorityQueue:wI,queue:gK,race:TI,reduce:y4,reduceRight:QZ,reflect:XZ,reflectAll:AI,reject:EI,rejectLimit:_I,rejectSeries:SI,retry:JZ,retryable:kI,seq:hK,series:yI,setImmediate:V,some:YZ,someLimit:ZZ,someSeries:qZ,sortBy:hI,timeout:bI,times:fI,timesLimit:$Z,timesSeries:gI,transform:uI,tryEach:mI,unmemoize:dI,until:cI,waterfall:lI,whilst:oQ,all:lY,allLimit:pY,allSeries:nY,any:YZ,anyLimit:ZZ,anySeries:qZ,find:uY,findLimit:mY,findSeries:dY,flatMap:fY,flatMapLimit:k7,flatMapSeries:gY,forEach:cY,forEachSeries:iQ,forEachLimit:nQ,forEachOf:U1,forEachOfSeries:Z6,forEachOfLimit:w0,inject:y4,foldl:y4,foldr:QZ,select:oY,selectLimit:rY,selectSeries:sY,wrapSync:W,during:oQ,doDuring:pQ};Q.all=lY,Q.allLimit=pY,Q.allSeries=nY,Q.any=YZ,Q.anyLimit=ZZ,Q.anySeries=qZ,Q.apply=X,Q.applyEach=G0,Q.applyEachSeries=x7,Q.asyncify=W,Q.auto=$0,Q.autoInject=E,Q.cargo=L1,Q.cargoQueue=S1,Q.compose=KI,Q.concat=fY,Q.concatLimit=k7,Q.concatSeries=gY,Q.constant=WI,Q.default=G60,Q.detect=uY,Q.detectLimit=mY,Q.detectSeries=dY,Q.dir=GI,Q.doDuring=pQ,Q.doUntil=UI,Q.doWhilst=pQ,Q.during=oQ,Q.each=cY,Q.eachLimit=nQ,Q.eachOf=U1,Q.eachOfLimit=w0,Q.eachOfSeries=Z6,Q.eachSeries=iQ,Q.ensureAsync=bK,Q.every=lY,Q.everyLimit=pY,Q.everySeries=nY,Q.filter=oY,Q.filterLimit=rY,Q.filterSeries=sY,Q.find=uY,Q.findLimit=mY,Q.findSeries=dY,Q.flatMap=fY,Q.flatMapLimit=k7,Q.flatMapSeries=gY,Q.foldl=y4,Q.foldr=QZ,Q.forEach=cY,Q.forEachLimit=nQ,Q.forEachOf=U1,Q.forEachOfLimit=w0,Q.forEachOfSeries=Z6,Q.forEachSeries=iQ,Q.forever=BI,Q.groupBy=LI,Q.groupByLimit=aY,Q.groupBySeries=FI,Q.inject=y4,Q.log=MI,Q.map=k4,Q.mapLimit=lQ,Q.mapSeries=E8,Q.mapValues=II,Q.mapValuesLimit=tY,Q.mapValuesSeries=PI,Q.memoize=CI,Q.nextTick=OI,Q.parallel=jI,Q.parallelLimit=NI,Q.priorityQueue=wI,Q.queue=gK,Q.race=TI,Q.reduce=y4,Q.reduceRight=QZ,Q.reflect=XZ,Q.reflectAll=AI,Q.reject=EI,Q.rejectLimit=_I,Q.rejectSeries=SI,Q.retry=JZ,Q.retryable=kI,Q.select=oY,Q.selectLimit=rY,Q.selectSeries=sY,Q.seq=hK,Q.series=yI,Q.setImmediate=V,Q.some=YZ,Q.someLimit=ZZ,Q.someSeries=qZ,Q.sortBy=hI,Q.timeout=bI,Q.times=fI,Q.timesLimit=$Z,Q.timesSeries=gI,Q.transform=uI,Q.tryEach=mI,Q.unmemoize=dI,Q.until=cI,Q.waterfall=lI,Q.whilst=oQ,Q.wrapSync=W,Object.defineProperty(Q,"__esModule",{value:!0})})});var CS=F((F01,PS)=>{var a4=l("constants"),iU0=process.cwd,fq=null,oU0=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!fq)fq=iU0.call(process);return fq};try{process.cwd()}catch(Q){}if(typeof process.chdir==="function"){if(gq=process.chdir,process.chdir=function(Q){fq=null,gq.call(process,Q)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,gq)}var gq;PS.exports=rU0;function rU0(Q){if(a4.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))X(Q);if(!Q.lutimes)J(Q);if(Q.chown=q(Q.chown),Q.fchown=q(Q.fchown),Q.lchown=q(Q.lchown),Q.chmod=Y(Q.chmod),Q.fchmod=Y(Q.fchmod),Q.lchmod=Y(Q.lchmod),Q.chownSync=$(Q.chownSync),Q.fchownSync=$(Q.fchownSync),Q.lchownSync=$(Q.lchownSync),Q.chmodSync=Z(Q.chmodSync),Q.fchmodSync=Z(Q.fchmodSync),Q.lchmodSync=Z(Q.lchmodSync),Q.stat=H(Q.stat),Q.fstat=H(Q.fstat),Q.lstat=H(Q.lstat),Q.statSync=K(Q.statSync),Q.fstatSync=K(Q.fstatSync),Q.lstatSync=K(Q.lstatSync),Q.chmod&&!Q.lchmod)Q.lchmod=function(W,G,U){if(U)process.nextTick(U)},Q.lchmodSync=function(){};if(Q.chown&&!Q.lchown)Q.lchown=function(W,G,U,z){if(z)process.nextTick(z)},Q.lchownSync=function(){};if(oU0==="win32")Q.rename=typeof Q.rename!=="function"?Q.rename:function(W){function G(U,z,L){var B=Date.now(),M=0;W(U,z,function I(j){if(j&&(j.code==="EACCES"||j.code==="EPERM"||j.code==="EBUSY")&&Date.now()-B<60000){if(setTimeout(function(){Q.stat(z,function(D,N){if(D&&D.code==="ENOENT")W(U,z,I);else L(j)})},M),M<100)M+=10;return}if(L)L(j)})}if(Object.setPrototypeOf)Object.setPrototypeOf(G,W);return G}(Q.rename);Q.read=typeof Q.read!=="function"?Q.read:function(W){function G(U,z,L,B,M,I){var j;if(I&&typeof I==="function"){var D=0;j=function(N,k,f){if(N&&N.code==="EAGAIN"&&D<10)return D++,W.call(Q,U,z,L,B,M,j);I.apply(this,arguments)}}return W.call(Q,U,z,L,B,M,j)}if(Object.setPrototypeOf)Object.setPrototypeOf(G,W);return G}(Q.read),Q.readSync=typeof Q.readSync!=="function"?Q.readSync:function(W){return function(G,U,z,L,B){var M=0;while(!0)try{return W.call(Q,G,U,z,L,B)}catch(I){if(I.code==="EAGAIN"&&M<10){M++;continue}throw I}}}(Q.readSync);function X(W){W.lchmod=function(G,U,z){W.open(G,a4.O_WRONLY|a4.O_SYMLINK,U,function(L,B){if(L){if(z)z(L);return}W.fchmod(B,U,function(M){W.close(B,function(I){if(z)z(M||I)})})})},W.lchmodSync=function(G,U){var z=W.openSync(G,a4.O_WRONLY|a4.O_SYMLINK,U),L=!0,B;try{B=W.fchmodSync(z,U),L=!1}finally{if(L)try{W.closeSync(z)}catch(M){}else W.closeSync(z)}return B}}function J(W){if(a4.hasOwnProperty("O_SYMLINK")&&W.futimes)W.lutimes=function(G,U,z,L){W.open(G,a4.O_SYMLINK,function(B,M){if(B){if(L)L(B);return}W.futimes(M,U,z,function(I){W.close(M,function(j){if(L)L(I||j)})})})},W.lutimesSync=function(G,U,z){var L=W.openSync(G,a4.O_SYMLINK),B,M=!0;try{B=W.futimesSync(L,U,z),M=!1}finally{if(M)try{W.closeSync(L)}catch(I){}else W.closeSync(L)}return B};else if(W.futimes)W.lutimes=function(G,U,z,L){if(L)process.nextTick(L)},W.lutimesSync=function(){}}function Y(W){if(!W)return W;return function(G,U,z){return W.call(Q,G,U,function(L){if(V(L))L=null;if(z)z.apply(this,arguments)})}}function Z(W){if(!W)return W;return function(G,U){try{return W.call(Q,G,U)}catch(z){if(!V(z))throw z}}}function q(W){if(!W)return W;return function(G,U,z,L){return W.call(Q,G,U,z,function(B){if(V(B))B=null;if(L)L.apply(this,arguments)})}}function $(W){if(!W)return W;return function(G,U,z){try{return W.call(Q,G,U,z)}catch(L){if(!V(L))throw L}}}function H(W){if(!W)return W;return function(G,U,z){if(typeof U==="function")z=U,U=null;function L(B,M){if(M){if(M.uid<0)M.uid+=4294967296;if(M.gid<0)M.gid+=4294967296}if(z)z.apply(this,arguments)}return U?W.call(Q,G,U,L):W.call(Q,G,L)}}function K(W){if(!W)return W;return function(G,U){var z=U?W.call(Q,G,U):W.call(Q,G);if(z){if(z.uid<0)z.uid+=4294967296;if(z.gid<0)z.gid+=4294967296}return z}}function V(W){if(!W)return!0;if(W.code==="ENOSYS")return!0;var G=!process.getuid||process.getuid()!==0;if(G){if(W.code==="EINVAL"||W.code==="EPERM")return!0}return!1}}});var NS=F((M01,jS)=>{var OS=l("stream").Stream;jS.exports=sU0;function sU0(Q){return{ReadStream:X,WriteStream:J};function X(Y,Z){if(!(this instanceof X))return new X(Y,Z);OS.call(this);var q=this;this.path=Y,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,Z=Z||{};var $=Object.keys(Z);for(var H=0,K=$.length;H<K;H++){var V=$[H];this[V]=Z[V]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!=="number")throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){q._read()});return}Q.open(this.path,this.flags,this.mode,function(W,G){if(W){q.emit("error",W),q.readable=!1;return}q.fd=G,q.emit("open",G),q._read()})}function J(Y,Z){if(!(this instanceof J))return new J(Y,Z);OS.call(this),this.path=Y,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,Z=Z||{};var q=Object.keys(Z);for(var $=0,H=q.length;$<H;$++){var K=q[$];this[K]=Z[K]}if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.start<0)throw Error("start must be >= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=Q.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var DS=F((I01,RS)=>{RS.exports=tU0;var aU0=Object.getPrototypeOf||function(Q){return Q.__proto__};function tU0(Q){if(Q===null||typeof Q!=="object")return Q;if(Q instanceof Object)var X={__proto__:aU0(Q)};else var X=Object.create(null);return Object.getOwnPropertyNames(Q).forEach(function(J){Object.defineProperty(X,J,Object.getOwnPropertyDescriptor(Q,J))}),X}});var FU=F((P01,LU)=>{var W1=l("fs"),eU0=CS(),Qz0=NS(),Xz0=DS(),uq=l("util"),p1,dq;if(typeof Symbol==="function"&&typeof Symbol.for==="function")p1=Symbol.for("graceful-fs.queue"),dq=Symbol.for("graceful-fs.previous");else p1="___graceful-fs.queue",dq="___graceful-fs.previous";function Jz0(){}function TS(Q,X){Object.defineProperty(Q,p1,{get:function(){return X}})}var c5=Jz0;if(uq.debuglog)c5=uq.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))c5=function(){var Q=uq.format.apply(uq,arguments);Q="GFS4: "+Q.split(/\n/).join(`
27
+ GFS4: `),console.error(Q)};if(!W1[p1]){if(UU=global[p1]||[],TS(W1,UU),W1.close=function(Q){function X(J,Y){return Q.call(W1,J,function(Z){if(!Z)wS();if(typeof Y==="function")Y.apply(this,arguments)})}return Object.defineProperty(X,dq,{value:Q}),X}(W1.close),W1.closeSync=function(Q){function X(J){Q.apply(W1,arguments),wS()}return Object.defineProperty(X,dq,{value:Q}),X}(W1.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){c5(W1[p1]),l("assert").equal(W1[p1].length,0)})}var UU;if(!global[p1])TS(global,W1[p1]);LU.exports=zU(Xz0(W1));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!W1.__patched)LU.exports=zU(W1),W1.__patched=!0;function zU(Q){eU0(Q),Q.gracefulify=zU,Q.createReadStream=k,Q.createWriteStream=f;var X=Q.readFile;Q.readFile=J;function J(T,u,c){if(typeof u==="function")c=u,u=null;return X0(T,u,c);function X0(I0,P0,m0,w0){return X(I0,P0,function(h0){if(h0&&(h0.code==="EMFILE"||h0.code==="ENFILE"))K9([X0,[I0,P0,m0],h0,w0||Date.now(),Date.now()]);else if(typeof m0==="function")m0.apply(this,arguments)})}}var Y=Q.writeFile;Q.writeFile=Z;function Z(T,u,c,X0){if(typeof c==="function")X0=c,c=null;return I0(T,u,c,X0);function I0(P0,m0,w0,h0,$1){return Y(P0,m0,w0,function(d0){if(d0&&(d0.code==="EMFILE"||d0.code==="ENFILE"))K9([I0,[P0,m0,w0,h0],d0,$1||Date.now(),Date.now()]);else if(typeof h0==="function")h0.apply(this,arguments)})}}var q=Q.appendFile;if(q)Q.appendFile=$;function $(T,u,c,X0){if(typeof c==="function")X0=c,c=null;return I0(T,u,c,X0);function I0(P0,m0,w0,h0,$1){return q(P0,m0,w0,function(d0){if(d0&&(d0.code==="EMFILE"||d0.code==="ENFILE"))K9([I0,[P0,m0,w0,h0],d0,$1||Date.now(),Date.now()]);else if(typeof h0==="function")h0.apply(this,arguments)})}}var H=Q.copyFile;if(H)Q.copyFile=K;function K(T,u,c,X0){if(typeof c==="function")X0=c,c=0;return I0(T,u,c,X0);function I0(P0,m0,w0,h0,$1){return H(P0,m0,w0,function(d0){if(d0&&(d0.code==="EMFILE"||d0.code==="ENFILE"))K9([I0,[P0,m0,w0,h0],d0,$1||Date.now(),Date.now()]);else if(typeof h0==="function")h0.apply(this,arguments)})}}var V=Q.readdir;Q.readdir=G;var W=/^v[0-5]\./;function G(T,u,c){if(typeof u==="function")c=u,u=null;var X0=W.test(process.version)?function(m0,w0,h0,$1){return V(m0,I0(m0,w0,h0,$1))}:function(m0,w0,h0,$1){return V(m0,w0,I0(m0,w0,h0,$1))};return X0(T,u,c);function I0(P0,m0,w0,h0){return function($1,d0){if($1&&($1.code==="EMFILE"||$1.code==="ENFILE"))K9([X0,[P0,m0,w0],$1,h0||Date.now(),Date.now()]);else{if(d0&&d0.sort)d0.sort();if(typeof w0==="function")w0.call(this,$1,d0)}}}}if(process.version.substr(0,4)==="v0.8"){var U=Qz0(Q);I=U.ReadStream,D=U.WriteStream}var z=Q.ReadStream;if(z)I.prototype=Object.create(z.prototype),I.prototype.open=j;var L=Q.WriteStream;if(L)D.prototype=Object.create(L.prototype),D.prototype.open=N;Object.defineProperty(Q,"ReadStream",{get:function(){return I},set:function(T){I=T},enumerable:!0,configurable:!0}),Object.defineProperty(Q,"WriteStream",{get:function(){return D},set:function(T){D=T},enumerable:!0,configurable:!0});var B=I;Object.defineProperty(Q,"FileReadStream",{get:function(){return B},set:function(T){B=T},enumerable:!0,configurable:!0});var M=D;Object.defineProperty(Q,"FileWriteStream",{get:function(){return M},set:function(T){M=T},enumerable:!0,configurable:!0});function I(T,u){if(this instanceof I)return z.apply(this,arguments),this;else return I.apply(Object.create(I.prototype),arguments)}function j(){var T=this;p(T.path,T.flags,T.mode,function(u,c){if(u){if(T.autoClose)T.destroy();T.emit("error",u)}else T.fd=c,T.emit("open",c),T.read()})}function D(T,u){if(this instanceof D)return L.apply(this,arguments),this;else return D.apply(Object.create(D.prototype),arguments)}function N(){var T=this;p(T.path,T.flags,T.mode,function(u,c){if(u)T.destroy(),T.emit("error",u);else T.fd=c,T.emit("open",c)})}function k(T,u){return new Q.ReadStream(T,u)}function f(T,u){return new Q.WriteStream(T,u)}var S=Q.open;Q.open=p;function p(T,u,c,X0){if(typeof c==="function")X0=c,c=null;return I0(T,u,c,X0);function I0(P0,m0,w0,h0,$1){return S(P0,m0,w0,function(d0,U1){if(d0&&(d0.code==="EMFILE"||d0.code==="ENFILE"))K9([I0,[P0,m0,w0,h0],d0,$1||Date.now(),Date.now()]);else if(typeof h0==="function")h0.apply(this,arguments)})}}return Q}function K9(Q){c5("ENQUEUE",Q[0].name,Q[1]),W1[p1].push(Q),BU()}var mq;function wS(){var Q=Date.now();for(var X=0;X<W1[p1].length;++X)if(W1[p1][X].length>2)W1[p1][X][3]=Q,W1[p1][X][4]=Q;BU()}function BU(){if(clearTimeout(mq),mq=void 0,W1[p1].length===0)return;var Q=W1[p1].shift(),X=Q[0],J=Q[1],Y=Q[2],Z=Q[3],q=Q[4];if(Z===void 0)c5("RETRY",X.name,J),X.apply(null,J);else if(Date.now()-Z>=60000){c5("TIMEOUT",X.name,J);var $=J.pop();if(typeof $==="function")$.call(null,Y)}else{var H=Date.now()-q,K=Math.max(q-Z,1),V=Math.min(K*1.2,100);if(H>=V)c5("RETRY",X.name,J),X.apply(null,J.concat([Z]));else W1[p1].push(Q)}if(mq===void 0)mq=setTimeout(BU,0)}});var ES=F((C01,AS)=>{var b8=(Q)=>Q!==null&&typeof Q==="object"&&typeof Q.pipe==="function";b8.writable=(Q)=>b8(Q)&&Q.writable!==!1&&typeof Q._write==="function"&&typeof Q._writableState==="object";b8.readable=(Q)=>b8(Q)&&Q.readable!==!1&&typeof Q._read==="function"&&typeof Q._readableState==="object";b8.duplex=(Q)=>b8.writable(Q)&&b8.readable(Q);b8.transform=(Q)=>b8.duplex(Q)&&typeof Q._transform==="function";AS.exports=b8});var oX=F((O01,MU)=>{if(typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0)MU.exports={nextTick:Yz0};else MU.exports=process;function Yz0(Q,X,J,Y){if(typeof Q!=="function")throw TypeError('"callback" argument must be a function');var Z=arguments.length,q,$;switch(Z){case 0:case 1:return process.nextTick(Q);case 2:return process.nextTick(function(){Q.call(null,X)});case 3:return process.nextTick(function(){Q.call(null,X,J)});case 4:return process.nextTick(function(){Q.call(null,X,J,Y)});default:q=Array(Z-1),$=0;while($<q.length)q[$++]=arguments[$];return process.nextTick(function(){Q.apply(null,q)})}}});var SS=F((j01,_S)=>{var Zz0={}.toString;_S.exports=Array.isArray||function(Q){return Zz0.call(Q)=="[object Array]"}});var rX=F((IU,xS)=>{var cq=l("buffer"),U4=cq.Buffer;function vS(Q,X){for(var J in Q)X[J]=Q[J]}if(U4.from&&U4.alloc&&U4.allocUnsafe&&U4.allocUnsafeSlow)xS.exports=cq;else vS(cq,IU),IU.Buffer=W9;function W9(Q,X,J){return U4(Q,X,J)}vS(U4,W9);W9.from=function(Q,X,J){if(typeof Q==="number")throw TypeError("Argument must not be a number");return U4(Q,X,J)};W9.alloc=function(Q,X,J){if(typeof Q!=="number")throw TypeError("Argument must be a number");var Y=U4(Q);if(X!==void 0)if(typeof J==="string")Y.fill(X,J);else Y.fill(X);else Y.fill(0);return Y};W9.allocUnsafe=function(Q){if(typeof Q!=="number")throw TypeError("Argument must be a number");return U4(Q)};W9.allocUnsafeSlow=function(Q){if(typeof Q!=="number")throw TypeError("Argument must be a number");return cq.SlowBuffer(Q)}});var V9=F((Pz0)=>{function qz0(Q){if(Array.isArray)return Array.isArray(Q);return lq(Q)==="[object Array]"}Pz0.isArray=qz0;function $z0(Q){return typeof Q==="boolean"}Pz0.isBoolean=$z0;function Hz0(Q){return Q===null}Pz0.isNull=Hz0;function Kz0(Q){return Q==null}Pz0.isNullOrUndefined=Kz0;function Wz0(Q){return typeof Q==="number"}Pz0.isNumber=Wz0;function Vz0(Q){return typeof Q==="string"}Pz0.isString=Vz0;function Gz0(Q){return typeof Q==="symbol"}Pz0.isSymbol=Gz0;function Uz0(Q){return Q===void 0}Pz0.isUndefined=Uz0;function zz0(Q){return lq(Q)==="[object RegExp]"}Pz0.isRegExp=zz0;function Bz0(Q){return typeof Q==="object"&&Q!==null}Pz0.isObject=Bz0;function Lz0(Q){return lq(Q)==="[object Date]"}Pz0.isDate=Lz0;function Fz0(Q){return lq(Q)==="[object Error]"||Q instanceof Error}Pz0.isError=Fz0;function Mz0(Q){return typeof Q==="function"}Pz0.isFunction=Mz0;function Iz0(Q){return Q===null||typeof Q==="boolean"||typeof Q==="number"||typeof Q==="string"||typeof Q==="symbol"||typeof Q>"u"}Pz0.isPrimitive=Iz0;Pz0.isBuffer=l("buffer").Buffer.isBuffer;function lq(Q){return Object.prototype.toString.call(Q)}});var kS=F((R01,PU)=>{if(typeof Object.create==="function")PU.exports=function(X,J){if(J)X.super_=J,X.prototype=Object.create(J.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}})};else PU.exports=function(X,J){if(J){X.super_=J;var Y=function(){};Y.prototype=J.prototype,X.prototype=new Y,X.prototype.constructor=X}}});var G9=F((D01,CU)=>{try{if(pq=l("util"),typeof pq.inherits!=="function")throw"";CU.exports=pq.inherits}catch(Q){CU.exports=kS()}var pq});var hS=F((w01,OU)=>{function yz0(Q,X){if(!(Q instanceof X))throw TypeError("Cannot call a class as a function")}var yS=rX().Buffer,sX=l("util");function hz0(Q,X,J){Q.copy(X,J)}OU.exports=function(){function Q(){yz0(this,Q),this.head=null,this.tail=null,this.length=0}return Q.prototype.push=function(J){var Y={data:J,next:null};if(this.length>0)this.tail.next=Y;else this.head=Y;this.tail=Y,++this.length},Q.prototype.unshift=function(J){var Y={data:J,next:this.head};if(this.length===0)this.tail=Y;this.head=Y,++this.length},Q.prototype.shift=function(){if(this.length===0)return;var J=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,J},Q.prototype.clear=function(){this.head=this.tail=null,this.length=0},Q.prototype.join=function(J){if(this.length===0)return"";var Y=this.head,Z=""+Y.data;while(Y=Y.next)Z+=J+Y.data;return Z},Q.prototype.concat=function(J){if(this.length===0)return yS.alloc(0);var Y=yS.allocUnsafe(J>>>0),Z=this.head,q=0;while(Z)hz0(Z.data,Y,q),q+=Z.data.length,Z=Z.next;return Y},Q}();if(sX&&sX.inspect&&sX.inspect.custom)OU.exports.prototype[sX.inspect.custom]=function(){var Q=sX.inspect({length:this.length});return this.constructor.name+" "+Q}});var jU=F((T01,bS)=>{var nq=oX();function bz0(Q,X){var J=this,Y=this._readableState&&this._readableState.destroyed,Z=this._writableState&&this._writableState.destroyed;if(Y||Z){if(X)X(Q);else if(Q){if(!this._writableState)nq.nextTick(iq,this,Q);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,nq.nextTick(iq,this,Q)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy(Q||null,function(q){if(!X&&q){if(!J._writableState)nq.nextTick(iq,J,q);else if(!J._writableState.errorEmitted)J._writableState.errorEmitted=!0,nq.nextTick(iq,J,q)}else if(X)X(q)}),this}function fz0(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function iq(Q,X){Q.emit("error",X)}bS.exports={destroy:bz0,undestroy:fz0}});var gS=F((A01,fS)=>{fS.exports=l("util").deprecate});var RU=F((E01,iS)=>{var l5=oX();iS.exports=R1;function mS(Q){var X=this;this.next=null,this.entry=null,this.finish=function(){JB0(X,Q)}}var gz0=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:l5.nextTick,U9;R1.WritableState=tX;var dS=Object.create(V9());dS.inherits=G9();var uz0={deprecate:gS()},cS=l("stream"),rq=rX().Buffer,mz0=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function dz0(Q){return rq.from(Q)}function cz0(Q){return rq.isBuffer(Q)||Q instanceof mz0}var lS=jU();dS.inherits(R1,cS);function lz0(){}function tX(Q,X){U9=U9||p5(),Q=Q||{};var J=X instanceof U9;if(this.objectMode=!!Q.objectMode,J)this.objectMode=this.objectMode||!!Q.writableObjectMode;var{highWaterMark:Y,writableHighWaterMark:Z}=Q,q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(J&&(Z||Z===0))this.highWaterMark=Z;else this.highWaterMark=q;this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var $=Q.decodeStrings===!1;this.decodeStrings=!$,this.defaultEncoding=Q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(H){az0(X,H)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new mS(this)}tX.prototype.getBuffer=function(){var X=this.bufferedRequest,J=[];while(X)J.push(X),X=X.next;return J};(function(){try{Object.defineProperty(tX.prototype,"buffer",{get:uz0.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Q){}})();var oq;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")oq=Function.prototype[Symbol.hasInstance],Object.defineProperty(R1,Symbol.hasInstance,{value:function(Q){if(oq.call(this,Q))return!0;if(this!==R1)return!1;return Q&&Q._writableState instanceof tX}});else oq=function(Q){return Q instanceof this};function R1(Q){if(U9=U9||p5(),!oq.call(R1,this)&&!(this instanceof U9))return new R1(Q);if(this._writableState=new tX(Q,this),this.writable=!0,Q){if(typeof Q.write==="function")this._write=Q.write;if(typeof Q.writev==="function")this._writev=Q.writev;if(typeof Q.destroy==="function")this._destroy=Q.destroy;if(typeof Q.final==="function")this._final=Q.final}cS.call(this)}R1.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};function pz0(Q,X){var J=Error("write after end");Q.emit("error",J),l5.nextTick(X,J)}function nz0(Q,X,J,Y){var Z=!0,q=!1;if(J===null)q=TypeError("May not write null values to stream");else if(typeof J!=="string"&&J!==void 0&&!X.objectMode)q=TypeError("Invalid non-string/buffer chunk");if(q)Q.emit("error",q),l5.nextTick(Y,q),Z=!1;return Z}R1.prototype.write=function(Q,X,J){var Y=this._writableState,Z=!1,q=!Y.objectMode&&cz0(Q);if(q&&!rq.isBuffer(Q))Q=dz0(Q);if(typeof X==="function")J=X,X=null;if(q)X="buffer";else if(!X)X=Y.defaultEncoding;if(typeof J!=="function")J=lz0;if(Y.ended)pz0(this,J);else if(q||nz0(this,Y,Q,J))Y.pendingcb++,Z=oz0(this,Y,q,Q,X,J);return Z};R1.prototype.cork=function(){var Q=this._writableState;Q.corked++};R1.prototype.uncork=function(){var Q=this._writableState;if(Q.corked){if(Q.corked--,!Q.writing&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest)pS(this,Q)}};R1.prototype.setDefaultEncoding=function(X){if(typeof X==="string")X=X.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((X+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+X);return this._writableState.defaultEncoding=X,this};function iz0(Q,X,J){if(!Q.objectMode&&Q.decodeStrings!==!1&&typeof X==="string")X=rq.from(X,J);return X}Object.defineProperty(R1.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function oz0(Q,X,J,Y,Z,q){if(!J){var $=iz0(X,Y,Z);if(Y!==$)J=!0,Z="buffer",Y=$}var H=X.objectMode?1:Y.length;X.length+=H;var K=X.length<X.highWaterMark;if(!K)X.needDrain=!0;if(X.writing||X.corked){var V=X.lastBufferedRequest;if(X.lastBufferedRequest={chunk:Y,encoding:Z,isBuf:J,callback:q,next:null},V)V.next=X.lastBufferedRequest;else X.bufferedRequest=X.lastBufferedRequest;X.bufferedRequestCount+=1}else NU(Q,X,!1,H,Y,Z,q);return K}function NU(Q,X,J,Y,Z,q,$){if(X.writelen=Y,X.writecb=$,X.writing=!0,X.sync=!0,J)Q._writev(Z,X.onwrite);else Q._write(Z,q,X.onwrite);X.sync=!1}function rz0(Q,X,J,Y,Z){if(--X.pendingcb,J)l5.nextTick(Z,Y),l5.nextTick(aX,Q,X),Q._writableState.errorEmitted=!0,Q.emit("error",Y);else Z(Y),Q._writableState.errorEmitted=!0,Q.emit("error",Y),aX(Q,X)}function sz0(Q){Q.writing=!1,Q.writecb=null,Q.length-=Q.writelen,Q.writelen=0}function az0(Q,X){var J=Q._writableState,Y=J.sync,Z=J.writecb;if(sz0(J),X)rz0(Q,J,Y,X,Z);else{var q=nS(J);if(!q&&!J.corked&&!J.bufferProcessing&&J.bufferedRequest)pS(Q,J);if(Y)gz0(uS,Q,J,q,Z);else uS(Q,J,q,Z)}}function uS(Q,X,J,Y){if(!J)tz0(Q,X);X.pendingcb--,Y(),aX(Q,X)}function tz0(Q,X){if(X.length===0&&X.needDrain)X.needDrain=!1,Q.emit("drain")}function pS(Q,X){X.bufferProcessing=!0;var J=X.bufferedRequest;if(Q._writev&&J&&J.next){var Y=X.bufferedRequestCount,Z=Array(Y),q=X.corkedRequestsFree;q.entry=J;var $=0,H=!0;while(J){if(Z[$]=J,!J.isBuf)H=!1;J=J.next,$+=1}if(Z.allBuffers=H,NU(Q,X,!0,X.length,Z,"",q.finish),X.pendingcb++,X.lastBufferedRequest=null,q.next)X.corkedRequestsFree=q.next,q.next=null;else X.corkedRequestsFree=new mS(X);X.bufferedRequestCount=0}else{while(J){var{chunk:K,encoding:V,callback:W}=J,G=X.objectMode?1:K.length;if(NU(Q,X,!1,G,K,V,W),J=J.next,X.bufferedRequestCount--,X.writing)break}if(J===null)X.lastBufferedRequest=null}X.bufferedRequest=J,X.bufferProcessing=!1}R1.prototype._write=function(Q,X,J){J(Error("_write() is not implemented"))};R1.prototype._writev=null;R1.prototype.end=function(Q,X,J){var Y=this._writableState;if(typeof Q==="function")J=Q,Q=null,X=null;else if(typeof X==="function")J=X,X=null;if(Q!==null&&Q!==void 0)this.write(Q,X);if(Y.corked)Y.corked=1,this.uncork();if(!Y.ending)XB0(this,Y,J)};function nS(Q){return Q.ending&&Q.length===0&&Q.bufferedRequest===null&&!Q.finished&&!Q.writing}function ez0(Q,X){Q._final(function(J){if(X.pendingcb--,J)Q.emit("error",J);X.prefinished=!0,Q.emit("prefinish"),aX(Q,X)})}function QB0(Q,X){if(!X.prefinished&&!X.finalCalled)if(typeof Q._final==="function")X.pendingcb++,X.finalCalled=!0,l5.nextTick(ez0,Q,X);else X.prefinished=!0,Q.emit("prefinish")}function aX(Q,X){var J=nS(X);if(J){if(QB0(Q,X),X.pendingcb===0)X.finished=!0,Q.emit("finish")}return J}function XB0(Q,X,J){if(X.ending=!0,aX(Q,X),J)if(X.finished)l5.nextTick(J);else Q.once("finish",J);X.ended=!0,Q.writable=!1}function JB0(Q,X,J){var Y=Q.entry;Q.entry=null;while(Y){var Z=Y.callback;X.pendingcb--,Z(J),Y=Y.next}X.corkedRequestsFree.next=Q}Object.defineProperty(R1.prototype,"destroyed",{get:function(){if(this._writableState===void 0)return!1;return this._writableState.destroyed},set:function(Q){if(!this._writableState)return;this._writableState.destroyed=Q}});R1.prototype.destroy=lS.destroy;R1.prototype._undestroy=lS.undestroy;R1.prototype._destroy=function(Q,X){this.end(),X(Q)}});var p5=F((_01,aS)=>{var oS=oX(),YB0=Object.keys||function(Q){var X=[];for(var J in Q)X.push(J);return X};aS.exports=z4;var rS=Object.create(V9());rS.inherits=G9();var sS=wU(),DU=RU();rS.inherits(z4,sS);{sq=YB0(DU.prototype);for(eX=0;eX<sq.length;eX++)if(QJ=sq[eX],!z4.prototype[QJ])z4.prototype[QJ]=DU.prototype[QJ]}var sq,QJ,eX;function z4(Q){if(!(this instanceof z4))return new z4(Q);if(sS.call(this,Q),DU.call(this,Q),Q&&Q.readable===!1)this.readable=!1;if(Q&&Q.writable===!1)this.writable=!1;if(this.allowHalfOpen=!0,Q&&Q.allowHalfOpen===!1)this.allowHalfOpen=!1;this.once("end",ZB0)}Object.defineProperty(z4.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ZB0(){if(this.allowHalfOpen||this._writableState.ended)return;oS.nextTick(qB0,this)}function qB0(Q){Q.end()}Object.defineProperty(z4.prototype,"destroyed",{get:function(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set:function(Q){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=Q,this._writableState.destroyed=Q}});z4.prototype._destroy=function(Q,X){this.push(null),this.end(),oS.nextTick(X,Q)}});var EU=F((PB0)=>{var AU=rX().Buffer,tS=AU.isEncoding||function(Q){switch(Q=""+Q,Q&&Q.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function $B0(Q){if(!Q)return"utf8";var X;while(!0)switch(Q){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Q;default:if(X)return;Q=(""+Q).toLowerCase(),X=!0}}function HB0(Q){var X=$B0(Q);if(typeof X!=="string"&&(AU.isEncoding===tS||!tS(Q)))throw Error("Unknown encoding: "+Q);return X||Q}PB0.StringDecoder=XJ;function XJ(Q){this.encoding=HB0(Q);var X;switch(this.encoding){case"utf16le":this.text=zB0,this.end=BB0,X=4;break;case"utf8":this.fillLast=VB0,X=4;break;case"base64":this.text=LB0,this.end=FB0,X=3;break;default:this.write=MB0,this.end=IB0;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=AU.allocUnsafe(X)}XJ.prototype.write=function(Q){if(Q.length===0)return"";var X,J;if(this.lastNeed){if(X=this.fillLast(Q),X===void 0)return"";J=this.lastNeed,this.lastNeed=0}else J=0;if(J<Q.length)return X?X+this.text(Q,J):this.text(Q,J);return X||""};XJ.prototype.end=UB0;XJ.prototype.text=GB0;XJ.prototype.fillLast=function(Q){if(this.lastNeed<=Q.length)return Q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Q.length),this.lastNeed-=Q.length};function TU(Q){if(Q<=127)return 0;else if(Q>>5===6)return 2;else if(Q>>4===14)return 3;else if(Q>>3===30)return 4;return Q>>6===2?-1:-2}function KB0(Q,X,J){var Y=X.length-1;if(Y<J)return 0;var Z=TU(X[Y]);if(Z>=0){if(Z>0)Q.lastNeed=Z-1;return Z}if(--Y<J||Z===-2)return 0;if(Z=TU(X[Y]),Z>=0){if(Z>0)Q.lastNeed=Z-2;return Z}if(--Y<J||Z===-2)return 0;if(Z=TU(X[Y]),Z>=0){if(Z>0)if(Z===2)Z=0;else Q.lastNeed=Z-3;return Z}return 0}function WB0(Q,X,J){if((X[0]&192)!==128)return Q.lastNeed=0,"�";if(Q.lastNeed>1&&X.length>1){if((X[1]&192)!==128)return Q.lastNeed=1,"�";if(Q.lastNeed>2&&X.length>2){if((X[2]&192)!==128)return Q.lastNeed=2,"�"}}}function VB0(Q){var X=this.lastTotal-this.lastNeed,J=WB0(this,Q,X);if(J!==void 0)return J;if(this.lastNeed<=Q.length)return Q.copy(this.lastChar,X,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Q.copy(this.lastChar,X,0,Q.length),this.lastNeed-=Q.length}function GB0(Q,X){var J=KB0(this,Q,X);if(!this.lastNeed)return Q.toString("utf8",X);this.lastTotal=J;var Y=Q.length-(J-this.lastNeed);return Q.copy(this.lastChar,0,Y),Q.toString("utf8",X,Y)}function UB0(Q){var X=Q&&Q.length?this.write(Q):"";if(this.lastNeed)return X+"�";return X}function zB0(Q,X){if((Q.length-X)%2===0){var J=Q.toString("utf16le",X);if(J){var Y=J.charCodeAt(J.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Q[Q.length-2],this.lastChar[1]=Q[Q.length-1],J.slice(0,-1)}return J}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Q[Q.length-1],Q.toString("utf16le",X,Q.length-1)}function BB0(Q){var X=Q&&Q.length?this.write(Q):"";if(this.lastNeed){var J=this.lastTotal-this.lastNeed;return X+this.lastChar.toString("utf16le",0,J)}return X}function LB0(Q,X){var J=(Q.length-X)%3;if(J===0)return Q.toString("base64",X);if(this.lastNeed=3-J,this.lastTotal=3,J===1)this.lastChar[0]=Q[Q.length-1];else this.lastChar[0]=Q[Q.length-2],this.lastChar[1]=Q[Q.length-1];return Q.toString("base64",X,Q.length-J)}function FB0(Q){var X=Q&&Q.length?this.write(Q):"";if(this.lastNeed)return X+this.lastChar.toString("base64",0,3-this.lastNeed);return X}function MB0(Q){return Q.toString(this.encoding)}function IB0(Q){return Q&&Q.length?this.write(Q):""}});var wU=F((x01,Vv)=>{var B9=oX();Vv.exports=t0;var OB0=SS(),JJ;t0.ReadableState=qv;var v01=l("events").EventEmitter,Jv=function(Q,X){return Q.listeners(X).length},kU=l("stream"),YJ=rX().Buffer,jB0=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function NB0(Q){return YJ.from(Q)}function RB0(Q){return YJ.isBuffer(Q)||Q instanceof jB0}var Yv=Object.create(V9());Yv.inherits=G9();var _U=l("util"),l0=void 0;if(_U&&_U.debuglog)l0=_U.debuglog("stream");else l0=function(){};var DB0=hS(),Zv=jU(),z9;Yv.inherits(t0,kU);var SU=["error","close","destroy","pause","resume"];function wB0(Q,X,J){if(typeof Q.prependListener==="function")return Q.prependListener(X,J);if(!Q._events||!Q._events[X])Q.on(X,J);else if(OB0(Q._events[X]))Q._events[X].unshift(J);else Q._events[X]=[J,Q._events[X]]}function qv(Q,X){JJ=JJ||p5(),Q=Q||{};var J=X instanceof JJ;if(this.objectMode=!!Q.objectMode,J)this.objectMode=this.objectMode||!!Q.readableObjectMode;var{highWaterMark:Y,readableHighWaterMark:Z}=Q,q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(J&&(Z||Z===0))this.highWaterMark=Z;else this.highWaterMark=q;if(this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new DB0,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Q.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Q.encoding){if(!z9)z9=EU().StringDecoder;this.decoder=new z9(Q.encoding),this.encoding=Q.encoding}}function t0(Q){if(JJ=JJ||p5(),!(this instanceof t0))return new t0(Q);if(this._readableState=new qv(Q,this),this.readable=!0,Q){if(typeof Q.read==="function")this._read=Q.read;if(typeof Q.destroy==="function")this._destroy=Q.destroy}kU.call(this)}Object.defineProperty(t0.prototype,"destroyed",{get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function(Q){if(!this._readableState)return;this._readableState.destroyed=Q}});t0.prototype.destroy=Zv.destroy;t0.prototype._undestroy=Zv.undestroy;t0.prototype._destroy=function(Q,X){this.push(null),X(Q)};t0.prototype.push=function(Q,X){var J=this._readableState,Y;if(!J.objectMode){if(typeof Q==="string"){if(X=X||J.defaultEncoding,X!==J.encoding)Q=YJ.from(Q,X),X="";Y=!0}}else Y=!0;return $v(this,Q,X,!1,Y)};t0.prototype.unshift=function(Q){return $v(this,Q,null,!0,!1)};function $v(Q,X,J,Y,Z){var q=Q._readableState;if(X===null)q.reading=!1,_B0(Q,q);else{var $;if(!Z)$=TB0(q,X);if($)Q.emit("error",$);else if(q.objectMode||X&&X.length>0){if(typeof X!=="string"&&!q.objectMode&&Object.getPrototypeOf(X)!==YJ.prototype)X=NB0(X);if(Y)if(q.endEmitted)Q.emit("error",Error("stream.unshift() after end event"));else vU(Q,q,X,!0);else if(q.ended)Q.emit("error",Error("stream.push() after EOF"));else if(q.reading=!1,q.decoder&&!J)if(X=q.decoder.write(X),q.objectMode||X.length!==0)vU(Q,q,X,!1);else Hv(Q,q);else vU(Q,q,X,!1)}else if(!Y)q.reading=!1}return AB0(q)}function vU(Q,X,J,Y){if(X.flowing&&X.length===0&&!X.sync)Q.emit("data",J),Q.read(0);else{if(X.length+=X.objectMode?1:J.length,Y)X.buffer.unshift(J);else X.buffer.push(J);if(X.needReadable)aq(Q)}Hv(Q,X)}function TB0(Q,X){var J;if(!RB0(X)&&typeof X!=="string"&&X!==void 0&&!Q.objectMode)J=TypeError("Invalid non-string/buffer chunk");return J}function AB0(Q){return!Q.ended&&(Q.needReadable||Q.length<Q.highWaterMark||Q.length===0)}t0.prototype.isPaused=function(){return this._readableState.flowing===!1};t0.prototype.setEncoding=function(Q){if(!z9)z9=EU().StringDecoder;return this._readableState.decoder=new z9(Q),this._readableState.encoding=Q,this};var eS=8388608;function EB0(Q){if(Q>=eS)Q=eS;else Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++;return Q}function Qv(Q,X){if(Q<=0||X.length===0&&X.ended)return 0;if(X.objectMode)return 1;if(Q!==Q)if(X.flowing&&X.length)return X.buffer.head.data.length;else return X.length;if(Q>X.highWaterMark)X.highWaterMark=EB0(Q);if(Q<=X.length)return Q;if(!X.ended)return X.needReadable=!0,0;return X.length}t0.prototype.read=function(Q){l0("read",Q),Q=parseInt(Q,10);var X=this._readableState,J=Q;if(Q!==0)X.emittedReadable=!1;if(Q===0&&X.needReadable&&(X.length>=X.highWaterMark||X.ended)){if(l0("read: emitReadable",X.length,X.ended),X.length===0&&X.ended)xU(this);else aq(this);return null}if(Q=Qv(Q,X),Q===0&&X.ended){if(X.length===0)xU(this);return null}var Y=X.needReadable;if(l0("need readable",Y),X.length===0||X.length-Q<X.highWaterMark)Y=!0,l0("length less than watermark",Y);if(X.ended||X.reading)Y=!1,l0("reading or ended",Y);else if(Y){if(l0("do read"),X.reading=!0,X.sync=!0,X.length===0)X.needReadable=!0;if(this._read(X.highWaterMark),X.sync=!1,!X.reading)Q=Qv(J,X)}var Z;if(Q>0)Z=Kv(Q,X);else Z=null;if(Z===null)X.needReadable=!0,Q=0;else X.length-=Q;if(X.length===0){if(!X.ended)X.needReadable=!0;if(J!==Q&&X.ended)xU(this)}if(Z!==null)this.emit("data",Z);return Z};function _B0(Q,X){if(X.ended)return;if(X.decoder){var J=X.decoder.end();if(J&&J.length)X.buffer.push(J),X.length+=X.objectMode?1:J.length}X.ended=!0,aq(Q)}function aq(Q){var X=Q._readableState;if(X.needReadable=!1,!X.emittedReadable)if(l0("emitReadable",X.flowing),X.emittedReadable=!0,X.sync)B9.nextTick(Xv,Q);else Xv(Q)}function Xv(Q){l0("emit readable"),Q.emit("readable"),yU(Q)}function Hv(Q,X){if(!X.readingMore)X.readingMore=!0,B9.nextTick(SB0,Q,X)}function SB0(Q,X){var J=X.length;while(!X.reading&&!X.flowing&&!X.ended&&X.length<X.highWaterMark)if(l0("maybeReadMore read 0"),Q.read(0),J===X.length)break;else J=X.length;X.readingMore=!1}t0.prototype._read=function(Q){this.emit("error",Error("_read() is not implemented"))};t0.prototype.pipe=function(Q,X){var J=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=Q;break;case 1:Y.pipes=[Y.pipes,Q];break;default:Y.pipes.push(Q);break}Y.pipesCount+=1,l0("pipe count=%d opts=%j",Y.pipesCount,X);var Z=(!X||X.end!==!1)&&Q!==process.stdout&&Q!==process.stderr,q=Z?H:M;if(Y.endEmitted)B9.nextTick(q);else J.once("end",q);Q.on("unpipe",$);function $(I,j){if(l0("onunpipe"),I===J){if(j&&j.hasUnpiped===!1)j.hasUnpiped=!0,W()}}function H(){l0("onend"),Q.end()}var K=vB0(J);Q.on("drain",K);var V=!1;function W(){if(l0("cleanup"),Q.removeListener("close",L),Q.removeListener("finish",B),Q.removeListener("drain",K),Q.removeListener("error",z),Q.removeListener("unpipe",$),J.removeListener("end",H),J.removeListener("end",M),J.removeListener("data",U),V=!0,Y.awaitDrain&&(!Q._writableState||Q._writableState.needDrain))K()}var G=!1;J.on("data",U);function U(I){l0("ondata"),G=!1;var j=Q.write(I);if(j===!1&&!G){if((Y.pipesCount===1&&Y.pipes===Q||Y.pipesCount>1&&Wv(Y.pipes,Q)!==-1)&&!V)l0("false write response, pause",Y.awaitDrain),Y.awaitDrain++,G=!0;J.pause()}}function z(I){if(l0("onerror",I),M(),Q.removeListener("error",z),Jv(Q,"error")===0)Q.emit("error",I)}wB0(Q,"error",z);function L(){Q.removeListener("finish",B),M()}Q.once("close",L);function B(){l0("onfinish"),Q.removeListener("close",L),M()}Q.once("finish",B);function M(){l0("unpipe"),J.unpipe(Q)}if(Q.emit("pipe",J),!Y.flowing)l0("pipe resume"),J.resume();return Q};function vB0(Q){return function(){var X=Q._readableState;if(l0("pipeOnDrain",X.awaitDrain),X.awaitDrain)X.awaitDrain--;if(X.awaitDrain===0&&Jv(Q,"data"))X.flowing=!0,yU(Q)}}t0.prototype.unpipe=function(Q){var X=this._readableState,J={hasUnpiped:!1};if(X.pipesCount===0)return this;if(X.pipesCount===1){if(Q&&Q!==X.pipes)return this;if(!Q)Q=X.pipes;if(X.pipes=null,X.pipesCount=0,X.flowing=!1,Q)Q.emit("unpipe",this,J);return this}if(!Q){var{pipes:Y,pipesCount:Z}=X;X.pipes=null,X.pipesCount=0,X.flowing=!1;for(var q=0;q<Z;q++)Y[q].emit("unpipe",this,{hasUnpiped:!1});return this}var $=Wv(X.pipes,Q);if($===-1)return this;if(X.pipes.splice($,1),X.pipesCount-=1,X.pipesCount===1)X.pipes=X.pipes[0];return Q.emit("unpipe",this,J),this};t0.prototype.on=function(Q,X){var J=kU.prototype.on.call(this,Q,X);if(Q==="data"){if(this._readableState.flowing!==!1)this.resume()}else if(Q==="readable"){var Y=this._readableState;if(!Y.endEmitted&&!Y.readableListening){if(Y.readableListening=Y.needReadable=!0,Y.emittedReadable=!1,!Y.reading)B9.nextTick(xB0,this);else if(Y.length)aq(this)}}return J};t0.prototype.addListener=t0.prototype.on;function xB0(Q){l0("readable nexttick read 0"),Q.read(0)}t0.prototype.resume=function(){var Q=this._readableState;if(!Q.flowing)l0("resume"),Q.flowing=!0,kB0(this,Q);return this};function kB0(Q,X){if(!X.resumeScheduled)X.resumeScheduled=!0,B9.nextTick(yB0,Q,X)}function yB0(Q,X){if(!X.reading)l0("resume read 0"),Q.read(0);if(X.resumeScheduled=!1,X.awaitDrain=0,Q.emit("resume"),yU(Q),X.flowing&&!X.reading)Q.read(0)}t0.prototype.pause=function(){if(l0("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)l0("pause"),this._readableState.flowing=!1,this.emit("pause");return this};function yU(Q){var X=Q._readableState;l0("flow",X.flowing);while(X.flowing&&Q.read()!==null);}t0.prototype.wrap=function(Q){var X=this,J=this._readableState,Y=!1;Q.on("end",function(){if(l0("wrapped end"),J.decoder&&!J.ended){var $=J.decoder.end();if($&&$.length)X.push($)}X.push(null)}),Q.on("data",function($){if(l0("wrapped data"),J.decoder)$=J.decoder.write($);if(J.objectMode&&($===null||$===void 0))return;else if(!J.objectMode&&(!$||!$.length))return;var H=X.push($);if(!H)Y=!0,Q.pause()});for(var Z in Q)if(this[Z]===void 0&&typeof Q[Z]==="function")this[Z]=function($){return function(){return Q[$].apply(Q,arguments)}}(Z);for(var q=0;q<SU.length;q++)Q.on(SU[q],this.emit.bind(this,SU[q]));return this._read=function($){if(l0("wrapped _read",$),Y)Y=!1,Q.resume()},this};Object.defineProperty(t0.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});t0._fromList=Kv;function Kv(Q,X){if(X.length===0)return null;var J;if(X.objectMode)J=X.buffer.shift();else if(!Q||Q>=X.length){if(X.decoder)J=X.buffer.join("");else if(X.buffer.length===1)J=X.buffer.head.data;else J=X.buffer.concat(X.length);X.buffer.clear()}else J=hB0(Q,X.buffer,X.decoder);return J}function hB0(Q,X,J){var Y;if(Q<X.head.data.length)Y=X.head.data.slice(0,Q),X.head.data=X.head.data.slice(Q);else if(Q===X.head.data.length)Y=X.shift();else Y=J?bB0(Q,X):fB0(Q,X);return Y}function bB0(Q,X){var J=X.head,Y=1,Z=J.data;Q-=Z.length;while(J=J.next){var q=J.data,$=Q>q.length?q.length:Q;if($===q.length)Z+=q;else Z+=q.slice(0,Q);if(Q-=$,Q===0){if($===q.length)if(++Y,J.next)X.head=J.next;else X.head=X.tail=null;else X.head=J,J.data=q.slice($);break}++Y}return X.length-=Y,Z}function fB0(Q,X){var J=YJ.allocUnsafe(Q),Y=X.head,Z=1;Y.data.copy(J),Q-=Y.data.length;while(Y=Y.next){var q=Y.data,$=Q>q.length?q.length:Q;if(q.copy(J,J.length-Q,0,$),Q-=$,Q===0){if($===q.length)if(++Z,Y.next)X.head=Y.next;else X.head=X.tail=null;else X.head=Y,Y.data=q.slice($);break}++Z}return X.length-=Z,J}function xU(Q){var X=Q._readableState;if(X.length>0)throw Error('"endReadable()" called on non-empty stream');if(!X.endEmitted)X.ended=!0,B9.nextTick(gB0,X,Q)}function gB0(Q,X){if(!Q.endEmitted&&Q.length===0)Q.endEmitted=!0,X.readable=!1,X.emit("end")}function Wv(Q,X){for(var J=0,Y=Q.length;J<Y;J++)if(Q[J]===X)return J;return-1}});var hU=F((k01,zv)=>{zv.exports=B4;var tq=p5(),Uv=Object.create(V9());Uv.inherits=G9();Uv.inherits(B4,tq);function uB0(Q,X){var J=this._transformState;J.transforming=!1;var Y=J.writecb;if(!Y)return this.emit("error",Error("write callback called multiple times"));if(J.writechunk=null,J.writecb=null,X!=null)this.push(X);Y(Q);var Z=this._readableState;if(Z.reading=!1,Z.needReadable||Z.length<Z.highWaterMark)this._read(Z.highWaterMark)}function B4(Q){if(!(this instanceof B4))return new B4(Q);if(tq.call(this,Q),this._transformState={afterTransform:uB0.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,Q){if(typeof Q.transform==="function")this._transform=Q.transform;if(typeof Q.flush==="function")this._flush=Q.flush}this.on("prefinish",mB0)}function mB0(){var Q=this;if(typeof this._flush==="function")this._flush(function(X,J){Gv(Q,X,J)});else Gv(this,null,null)}B4.prototype.push=function(Q,X){return this._transformState.needTransform=!1,tq.prototype.push.call(this,Q,X)};B4.prototype._transform=function(Q,X,J){throw Error("_transform() is not implemented")};B4.prototype._write=function(Q,X,J){var Y=this._transformState;if(Y.writecb=J,Y.writechunk=Q,Y.writeencoding=X,!Y.transforming){var Z=this._readableState;if(Y.needTransform||Z.needReadable||Z.length<Z.highWaterMark)this._read(Z.highWaterMark)}};B4.prototype._read=function(Q){var X=this._transformState;if(X.writechunk!==null&&X.writecb&&!X.transforming)X.transforming=!0,this._transform(X.writechunk,X.writeencoding,X.afterTransform);else X.needTransform=!0};B4.prototype._destroy=function(Q,X){var J=this;tq.prototype._destroy.call(this,Q,function(Y){X(Y),J.emit("close")})};function Gv(Q,X,J){if(X)return Q.emit("error",X);if(J!=null)Q.push(J);if(Q._writableState.length)throw Error("Calling transform done when ws.length != 0");if(Q._transformState.transforming)throw Error("Calling transform done when still transforming");return Q.push(null)}});var Mv=F((y01,Fv)=>{Fv.exports=ZJ;var Bv=hU(),Lv=Object.create(V9());Lv.inherits=G9();Lv.inherits(ZJ,Bv);function ZJ(Q){if(!(this instanceof ZJ))return new ZJ(Q);Bv.call(this,Q)}ZJ.prototype._transform=function(Q,X,J){J(null,Q)}});var Iv=F((n1,eq)=>{var f8=l("stream");if(process.env.READABLE_STREAM==="disable"&&f8)eq.exports=f8,n1=eq.exports=f8.Readable,n1.Readable=f8.Readable,n1.Writable=f8.Writable,n1.Duplex=f8.Duplex,n1.Transform=f8.Transform,n1.PassThrough=f8.PassThrough,n1.Stream=f8;else n1=eq.exports=wU(),n1.Stream=f8||n1,n1.Readable=n1,n1.Writable=RU(),n1.Duplex=p5(),n1.Transform=hU(),n1.PassThrough=Mv()});var Cv=F((h01,Pv)=>{Pv.exports=Iv().PassThrough});var Rv=F((b01,Nv)=>{var Ov=l("util"),J$=Cv();Nv.exports={Readable:Q$,Writable:X$};Ov.inherits(Q$,J$);Ov.inherits(X$,J$);function jv(Q,X,J){Q[X]=function(){return delete Q[X],J.apply(this,arguments),this[X].apply(this,arguments)}}function Q$(Q,X){if(!(this instanceof Q$))return new Q$(Q,X);J$.call(this,X),jv(this,"_read",function(){var J=Q.call(this,X),Y=this.emit.bind(this,"error");J.on("error",Y),J.pipe(this)}),this.emit("readable")}function X$(Q,X){if(!(this instanceof X$))return new X$(Q,X);J$.call(this,X),jv(this,"_write",function(){var J=Q.call(this,X),Y=this.emit.bind(this,"error");J.on("error",Y),this.pipe(J)}),this.emit("writable")}});var bU=F((f01,Dv)=>{/*!
28
+ * normalize-path <https://github.com/jonschlinkert/normalize-path>
29
+ *
30
+ * Copyright (c) 2014-2018, Jon Schlinkert.
31
+ * Released under the MIT License.
32
+ */Dv.exports=function(Q,X){if(typeof Q!=="string")throw TypeError("expected path to be a string");if(Q==="\\"||Q==="/")return"/";var J=Q.length;if(J<=1)return Q;var Y="";if(J>4&&Q[3]==="\\"){var Z=Q[2];if((Z==="?"||Z===".")&&Q.slice(0,2)==="\\\\")Q=Q.slice(2),Y="//"}var q=Q.split(/[/\\]+/);if(X!==!1&&q[q.length-1]==="")q.pop();return Y+q.join("/")}});var fU=F((g01,wv)=>{function dB0(Q){return Q}wv.exports=dB0});var Av=F((u01,Tv)=>{function cB0(Q,X,J){switch(J.length){case 0:return Q.call(X);case 1:return Q.call(X,J[0]);case 2:return Q.call(X,J[0],J[1]);case 3:return Q.call(X,J[0],J[1],J[2])}return Q.apply(X,J)}Tv.exports=cB0});var Sv=F((m01,_v)=>{var lB0=Av(),Ev=Math.max;function pB0(Q,X,J){return X=Ev(X===void 0?Q.length-1:X,0),function(){var Y=arguments,Z=-1,q=Ev(Y.length-X,0),$=Array(q);while(++Z<q)$[Z]=Y[X+Z];Z=-1;var H=Array(X+1);while(++Z<X)H[Z]=Y[Z];return H[X]=J($),lB0(Q,this,H)}}_v.exports=pB0});var xv=F((d01,vv)=>{function nB0(Q){return function(){return Q}}vv.exports=nB0});var gU=F((c01,kv)=>{var iB0=typeof global=="object"&&global&&global.Object===Object&&global;kv.exports=iB0});var L9=F((l01,yv)=>{var oB0=gU(),rB0=typeof self=="object"&&self&&self.Object===Object&&self,sB0=oB0||rB0||Function("return this")();yv.exports=sB0});var Y$=F((p01,hv)=>{var aB0=L9(),tB0=aB0.Symbol;hv.exports=tB0});var uv=F((n01,gv)=>{var bv=Y$(),fv=Object.prototype,eB0=fv.hasOwnProperty,Q20=fv.toString,qJ=bv?bv.toStringTag:void 0;function X20(Q){var X=eB0.call(Q,qJ),J=Q[qJ];try{Q[qJ]=void 0;var Y=!0}catch(q){}var Z=Q20.call(Q);if(Y)if(X)Q[qJ]=J;else delete Q[qJ];return Z}gv.exports=X20});var dv=F((i01,mv)=>{var J20=Object.prototype,Y20=J20.toString;function Z20(Q){return Y20.call(Q)}mv.exports=Z20});var $J=F((o01,pv)=>{var cv=Y$(),q20=uv(),$20=dv(),H20="[object Null]",K20="[object Undefined]",lv=cv?cv.toStringTag:void 0;function W20(Q){if(Q==null)return Q===void 0?K20:H20;return lv&&lv in Object(Q)?q20(Q):$20(Q)}pv.exports=W20});var HJ=F((r01,nv)=>{function V20(Q){var X=typeof Q;return Q!=null&&(X=="object"||X=="function")}nv.exports=V20});var uU=F((s01,iv)=>{var G20=$J(),U20=HJ(),z20="[object AsyncFunction]",B20="[object Function]",L20="[object GeneratorFunction]",F20="[object Proxy]";function M20(Q){if(!U20(Q))return!1;var X=G20(Q);return X==B20||X==L20||X==z20||X==F20}iv.exports=M20});var rv=F((a01,ov)=>{var I20=L9(),P20=I20["__core-js_shared__"];ov.exports=P20});var tv=F((t01,av)=>{var mU=rv(),sv=function(){var Q=/[^.]+$/.exec(mU&&mU.keys&&mU.keys.IE_PROTO||"");return Q?"Symbol(src)_1."+Q:""}();function C20(Q){return!!sv&&sv in Q}av.exports=C20});var Qx=F((e01,ev)=>{var O20=Function.prototype,j20=O20.toString;function N20(Q){if(Q!=null){try{return j20.call(Q)}catch(X){}try{return Q+""}catch(X){}}return""}ev.exports=N20});var Jx=F((Q11,Xx)=>{var R20=uU(),D20=tv(),w20=HJ(),T20=Qx(),A20=/[\\^$.*+?()[\]{}|]/g,E20=/^\[object .+?Constructor\]$/,_20=Function.prototype,S20=Object.prototype,v20=_20.toString,x20=S20.hasOwnProperty,k20=RegExp("^"+v20.call(x20).replace(A20,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function y20(Q){if(!w20(Q)||D20(Q))return!1;var X=R20(Q)?k20:E20;return X.test(T20(Q))}Xx.exports=y20});var Zx=F((X11,Yx)=>{function h20(Q,X){return Q==null?void 0:Q[X]}Yx.exports=h20});var KJ=F((J11,qx)=>{var b20=Jx(),f20=Zx();function g20(Q,X){var J=f20(Q,X);return b20(J)?J:void 0}qx.exports=g20});var Hx=F((Y11,$x)=>{var u20=KJ(),m20=function(){try{var Q=u20(Object,"defineProperty");return Q({},"",{}),Q}catch(X){}}();$x.exports=m20});var Vx=F((Z11,Wx)=>{var d20=xv(),Kx=Hx(),c20=fU(),l20=!Kx?c20:function(Q,X){return Kx(Q,"toString",{configurable:!0,enumerable:!1,value:d20(X),writable:!0})};Wx.exports=l20});var Ux=F((q11,Gx)=>{var p20=800,n20=16,i20=Date.now;function o20(Q){var X=0,J=0;return function(){var Y=i20(),Z=n20-(Y-J);if(J=Y,Z>0){if(++X>=p20)return arguments[0]}else X=0;return Q.apply(void 0,arguments)}}Gx.exports=o20});var Bx=F(($11,zx)=>{var r20=Vx(),s20=Ux(),a20=s20(r20);zx.exports=a20});var Z$=F((H11,Lx)=>{var t20=fU(),e20=Sv(),QL0=Bx();function XL0(Q,X){return QL0(e20(Q,X,t20),Q+"")}Lx.exports=XL0});var q$=F((K11,Fx)=>{function JL0(Q,X){return Q===X||Q!==Q&&X!==X}Fx.exports=JL0});var dU=F((W11,Mx)=>{var YL0=9007199254740991;function ZL0(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=YL0}Mx.exports=ZL0});var $$=F((V11,Ix)=>{var qL0=uU(),$L0=dU();function HL0(Q){return Q!=null&&$L0(Q.length)&&!qL0(Q)}Ix.exports=HL0});var cU=F((G11,Px)=>{var KL0=9007199254740991,WL0=/^(?:0|[1-9]\d*)$/;function VL0(Q,X){var J=typeof Q;return X=X==null?KL0:X,!!X&&(J=="number"||J!="symbol"&&WL0.test(Q))&&(Q>-1&&Q%1==0&&Q<X)}Px.exports=VL0});var Ox=F((U11,Cx)=>{var GL0=q$(),UL0=$$(),zL0=cU(),BL0=HJ();function LL0(Q,X,J){if(!BL0(J))return!1;var Y=typeof X;if(Y=="number"?UL0(J)&&zL0(X,J.length):Y=="string"&&(X in J))return GL0(J[X],Q);return!1}Cx.exports=LL0});var Nx=F((z11,jx)=>{function FL0(Q,X){var J=-1,Y=Array(Q);while(++J<Q)Y[J]=X(J);return Y}jx.exports=FL0});var F9=F((B11,Rx)=>{function ML0(Q){return Q!=null&&typeof Q=="object"}Rx.exports=ML0});var wx=F((L11,Dx)=>{var IL0=$J(),PL0=F9(),CL0="[object Arguments]";function OL0(Q){return PL0(Q)&&IL0(Q)==CL0}Dx.exports=OL0});var lU=F((F11,Ex)=>{var Tx=wx(),jL0=F9(),Ax=Object.prototype,NL0=Ax.hasOwnProperty,RL0=Ax.propertyIsEnumerable,DL0=Tx(function(){return arguments}())?Tx:function(Q){return jL0(Q)&&NL0.call(Q,"callee")&&!RL0.call(Q,"callee")};Ex.exports=DL0});var pU=F((M11,_x)=>{var wL0=Array.isArray;_x.exports=wL0});var vx=F((I11,Sx)=>{function TL0(){return!1}Sx.exports=TL0});var hx=F((H$,M9)=>{var AL0=L9(),EL0=vx(),yx=typeof H$=="object"&&H$&&!H$.nodeType&&H$,xx=yx&&typeof M9=="object"&&M9&&!M9.nodeType&&M9,_L0=xx&&xx.exports===yx,kx=_L0?AL0.Buffer:void 0,SL0=kx?kx.isBuffer:void 0,vL0=SL0||EL0;M9.exports=vL0});var fx=F((C11,bx)=>{var xL0=$J(),kL0=dU(),yL0=F9(),hL0="[object Arguments]",bL0="[object Array]",fL0="[object Boolean]",gL0="[object Date]",uL0="[object Error]",mL0="[object Function]",dL0="[object Map]",cL0="[object Number]",lL0="[object Object]",pL0="[object RegExp]",nL0="[object Set]",iL0="[object String]",oL0="[object WeakMap]",rL0="[object ArrayBuffer]",sL0="[object DataView]",aL0="[object Float32Array]",tL0="[object Float64Array]",eL0="[object Int8Array]",QF0="[object Int16Array]",XF0="[object Int32Array]",JF0="[object Uint8Array]",YF0="[object Uint8ClampedArray]",ZF0="[object Uint16Array]",qF0="[object Uint32Array]",e0={};e0[aL0]=e0[tL0]=e0[eL0]=e0[QF0]=e0[XF0]=e0[JF0]=e0[YF0]=e0[ZF0]=e0[qF0]=!0;e0[hL0]=e0[bL0]=e0[rL0]=e0[fL0]=e0[sL0]=e0[gL0]=e0[uL0]=e0[mL0]=e0[dL0]=e0[cL0]=e0[lL0]=e0[pL0]=e0[nL0]=e0[iL0]=e0[oL0]=!1;function $F0(Q){return yL0(Q)&&kL0(Q.length)&&!!e0[xL0(Q)]}bx.exports=$F0});var nU=F((O11,gx)=>{function HF0(Q){return function(X){return Q(X)}}gx.exports=HF0});var mx=F((K$,I9)=>{var KF0=gU(),ux=typeof K$=="object"&&K$&&!K$.nodeType&&K$,WJ=ux&&typeof I9=="object"&&I9&&!I9.nodeType&&I9,WF0=WJ&&WJ.exports===ux,iU=WF0&&KF0.process,VF0=function(){try{var Q=WJ&&WJ.require&&WJ.require("util").types;if(Q)return Q;return iU&&iU.binding&&iU.binding("util")}catch(X){}}();I9.exports=VF0});var px=F((N11,lx)=>{var GF0=fx(),UF0=nU(),dx=mx(),cx=dx&&dx.isTypedArray,zF0=cx?UF0(cx):GF0;lx.exports=zF0});var ix=F((R11,nx)=>{var BF0=Nx(),LF0=lU(),FF0=pU(),MF0=hx(),IF0=cU(),PF0=px(),CF0=Object.prototype,OF0=CF0.hasOwnProperty;function jF0(Q,X){var J=FF0(Q),Y=!J&&LF0(Q),Z=!J&&!Y&&MF0(Q),q=!J&&!Y&&!Z&&PF0(Q),$=J||Y||Z||q,H=$?BF0(Q.length,String):[],K=H.length;for(var V in Q)if((X||OF0.call(Q,V))&&!($&&(V=="length"||Z&&(V=="offset"||V=="parent")||q&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||IF0(V,K))))H.push(V);return H}nx.exports=jF0});var rx=F((D11,ox)=>{var NF0=Object.prototype;function RF0(Q){var X=Q&&Q.constructor,J=typeof X=="function"&&X.prototype||NF0;return Q===J}ox.exports=RF0});var ax=F((w11,sx)=>{function DF0(Q){var X=[];if(Q!=null)for(var J in Object(Q))X.push(J);return X}sx.exports=DF0});var ex=F((T11,tx)=>{var wF0=HJ(),TF0=rx(),AF0=ax(),EF0=Object.prototype,_F0=EF0.hasOwnProperty;function SF0(Q){if(!wF0(Q))return AF0(Q);var X=TF0(Q),J=[];for(var Y in Q)if(!(Y=="constructor"&&(X||!_F0.call(Q,Y))))J.push(Y);return J}tx.exports=SF0});var Xk=F((A11,Qk)=>{var vF0=ix(),xF0=ex(),kF0=$$();function yF0(Q){return kF0(Q)?vF0(Q,!0):xF0(Q)}Qk.exports=yF0});var Zk=F((E11,Yk)=>{var hF0=Z$(),bF0=q$(),fF0=Ox(),gF0=Xk(),Jk=Object.prototype,uF0=Jk.hasOwnProperty,mF0=hF0(function(Q,X){Q=Object(Q);var J=-1,Y=X.length,Z=Y>2?X[2]:void 0;if(Z&&fF0(X[0],X[1],Z))Y=1;while(++J<Y){var q=X[J],$=gF0(q),H=-1,K=$.length;while(++H<K){var V=$[H],W=Q[V];if(W===void 0||bF0(W,Jk[V])&&!uF0.call(Q,V))Q[V]=q[V]}}return Q});Yk.exports=mF0});var Y1=F((_11,$k)=>{class qk extends Error{constructor(Q){if(!Array.isArray(Q))throw TypeError(`Expected input to be an Array, got ${typeof Q}`);let X="";for(let J=0;J<Q.length;J++)X+=` ${Q[J].stack}
33
+ `;super(X);this.name="AggregateError",this.errors=Q}}$k.exports={AggregateError:qk,ArrayIsArray(Q){return Array.isArray(Q)},ArrayPrototypeIncludes(Q,X){return Q.includes(X)},ArrayPrototypeIndexOf(Q,X){return Q.indexOf(X)},ArrayPrototypeJoin(Q,X){return Q.join(X)},ArrayPrototypeMap(Q,X){return Q.map(X)},ArrayPrototypePop(Q,X){return Q.pop(X)},ArrayPrototypePush(Q,X){return Q.push(X)},ArrayPrototypeSlice(Q,X,J){return Q.slice(X,J)},Error,FunctionPrototypeCall(Q,X,...J){return Q.call(X,...J)},FunctionPrototypeSymbolHasInstance(Q,X){return Function.prototype[Symbol.hasInstance].call(Q,X)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(Q,X){return Object.defineProperties(Q,X)},ObjectDefineProperty(Q,X,J){return Object.defineProperty(Q,X,J)},ObjectGetOwnPropertyDescriptor(Q,X){return Object.getOwnPropertyDescriptor(Q,X)},ObjectKeys(Q){return Object.keys(Q)},ObjectSetPrototypeOf(Q,X){return Object.setPrototypeOf(Q,X)},Promise,PromisePrototypeCatch(Q,X){return Q.catch(X)},PromisePrototypeThen(Q,X,J){return Q.then(X,J)},PromiseReject(Q){return Promise.reject(Q)},PromiseResolve(Q){return Promise.resolve(Q)},ReflectApply:Reflect.apply,RegExpPrototypeTest(Q,X){return Q.test(X)},SafeSet:Set,String,StringPrototypeSlice(Q,X,J){return Q.slice(X,J)},StringPrototypeToLowerCase(Q){return Q.toLowerCase()},StringPrototypeToUpperCase(Q){return Q.toUpperCase()},StringPrototypeTrim(Q){return Q.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(Q,X,J){return Q.set(X,J)},Boolean,Uint8Array}});var oU=F((S11,Hk)=>{Hk.exports={format(Q,...X){return Q.replace(/%([sdifj])/g,function(...[J,Y]){let Z=X.shift();if(Y==="f")return Z.toFixed(6);else if(Y==="j")return JSON.stringify(Z);else if(Y==="s"&&typeof Z==="object")return`${Z.constructor!==Object?Z.constructor.name:""} {}`.trim();else return Z.toString()})},inspect(Q){switch(typeof Q){case"string":if(Q.includes("'")){if(!Q.includes('"'))return`"${Q}"`;else if(!Q.includes("`")&&!Q.includes("${"))return`\`${Q}\``}return`'${Q}'`;case"number":if(isNaN(Q))return"NaN";else if(Object.is(Q,-0))return String(Q);return Q;case"bigint":return`${String(Q)}n`;case"boolean":case"undefined":return String(Q);case"object":return"{}"}}}});var t1=F((v11,Gk)=>{var{format:dF0,inspect:W$}=oU(),{AggregateError:cF0}=Y1(),lF0=globalThis.AggregateError||cF0,pF0=Symbol("kIsNodeError"),nF0=["string","function","number","object","Function","Object","boolean","bigint","symbol"],iF0=/^([A-Z][a-z0-9]*)+$/,V$={};function n5(Q,X){if(!Q)throw new V$.ERR_INTERNAL_ASSERTION(X)}function Kk(Q){let X="",J=Q.length,Y=Q[0]==="-"?1:0;for(;J>=Y+4;J-=3)X=`_${Q.slice(J-3,J)}${X}`;return`${Q.slice(0,J)}${X}`}function oF0(Q,X,J){if(typeof X==="function")return n5(X.length<=J.length,`Code: ${Q}; The provided arguments length (${J.length}) does not match the required ones (${X.length}).`),X(...J);let Y=(X.match(/%[dfijoOs]/g)||[]).length;if(n5(Y===J.length,`Code: ${Q}; The provided arguments length (${J.length}) does not match the required ones (${Y}).`),J.length===0)return X;return dF0(X,...J)}function i1(Q,X,J){if(!J)J=Error;class Y extends J{constructor(...Z){super(oF0(Q,X,Z))}toString(){return`${this.name} [${Q}]: ${this.message}`}}Object.defineProperties(Y.prototype,{name:{value:J.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${Q}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),Y.prototype.code=Q,Y.prototype[pF0]=!0,V$[Q]=Y}function Wk(Q){let X="__node_internal_"+Q.name;return Object.defineProperty(Q,"name",{value:X}),Q}function rF0(Q,X){if(Q&&X&&Q!==X){if(Array.isArray(X.errors))return X.errors.push(Q),X;let J=new lF0([X,Q],X.message);return J.code=X.code,J}return Q||X}class Vk extends Error{constructor(Q="The operation was aborted",X=void 0){if(X!==void 0&&typeof X!=="object")throw new V$.ERR_INVALID_ARG_TYPE("options","Object",X);super(Q,X);this.code="ABORT_ERR",this.name="AbortError"}}i1("ERR_ASSERTION","%s",Error);i1("ERR_INVALID_ARG_TYPE",(Q,X,J)=>{if(n5(typeof Q==="string","'name' must be a string"),!Array.isArray(X))X=[X];let Y="The ";if(Q.endsWith(" argument"))Y+=`${Q} `;else Y+=`"${Q}" ${Q.includes(".")?"property":"argument"} `;Y+="must be ";let Z=[],q=[],$=[];for(let K of X)if(n5(typeof K==="string","All expected entries have to be of type string"),nF0.includes(K))Z.push(K.toLowerCase());else if(iF0.test(K))q.push(K);else n5(K!=="object",'The value "object" should be written as "Object"'),$.push(K);if(q.length>0){let K=Z.indexOf("object");if(K!==-1)Z.splice(Z,K,1),q.push("Object")}if(Z.length>0){switch(Z.length){case 1:Y+=`of type ${Z[0]}`;break;case 2:Y+=`one of type ${Z[0]} or ${Z[1]}`;break;default:{let K=Z.pop();Y+=`one of type ${Z.join(", ")}, or ${K}`}}if(q.length>0||$.length>0)Y+=" or "}if(q.length>0){switch(q.length){case 1:Y+=`an instance of ${q[0]}`;break;case 2:Y+=`an instance of ${q[0]} or ${q[1]}`;break;default:{let K=q.pop();Y+=`an instance of ${q.join(", ")}, or ${K}`}}if($.length>0)Y+=" or "}switch($.length){case 0:break;case 1:if($[0].toLowerCase()!==$[0])Y+="an ";Y+=`${$[0]}`;break;case 2:Y+=`one of ${$[0]} or ${$[1]}`;break;default:{let K=$.pop();Y+=`one of ${$.join(", ")}, or ${K}`}}if(J==null)Y+=`. Received ${J}`;else if(typeof J==="function"&&J.name)Y+=`. Received function ${J.name}`;else if(typeof J==="object"){var H;if((H=J.constructor)!==null&&H!==void 0&&H.name)Y+=`. Received an instance of ${J.constructor.name}`;else{let K=W$(J,{depth:-1});Y+=`. Received ${K}`}}else{let K=W$(J,{colors:!1});if(K.length>25)K=`${K.slice(0,25)}...`;Y+=`. Received type ${typeof J} (${K})`}return Y},TypeError);i1("ERR_INVALID_ARG_VALUE",(Q,X,J="is invalid")=>{let Y=W$(X);if(Y.length>128)Y=Y.slice(0,128)+"...";return`The ${Q.includes(".")?"property":"argument"} '${Q}' ${J}. Received ${Y}`},TypeError);i1("ERR_INVALID_RETURN_VALUE",(Q,X,J)=>{var Y;let Z=J!==null&&J!==void 0&&(Y=J.constructor)!==null&&Y!==void 0&&Y.name?`instance of ${J.constructor.name}`:`type ${typeof J}`;return`Expected ${Q} to be returned from the "${X}" function but got ${Z}.`},TypeError);i1("ERR_MISSING_ARGS",(...Q)=>{n5(Q.length>0,"At least one arg needs to be specified");let X,J=Q.length;switch(Q=(Array.isArray(Q)?Q:[Q]).map((Y)=>`"${Y}"`).join(" or "),J){case 1:X+=`The ${Q[0]} argument`;break;case 2:X+=`The ${Q[0]} and ${Q[1]} arguments`;break;default:{let Y=Q.pop();X+=`The ${Q.join(", ")}, and ${Y} arguments`}break}return`${X} must be specified`},TypeError);i1("ERR_OUT_OF_RANGE",(Q,X,J)=>{n5(X,'Missing "range" argument');let Y;if(Number.isInteger(J)&&Math.abs(J)>4294967296)Y=Kk(String(J));else if(typeof J==="bigint"){Y=String(J);let Z=BigInt(2)**BigInt(32);if(J>Z||J<-Z)Y=Kk(Y);Y+="n"}else Y=W$(J);return`The value of "${Q}" is out of range. It must be ${X}. Received ${Y}`},RangeError);i1("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);i1("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);i1("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);i1("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);i1("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);i1("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);i1("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);i1("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);i1("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);i1("ERR_STREAM_WRITE_AFTER_END","write after end",Error);i1("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);Gk.exports={AbortError:Vk,aggregateTwoErrors:Wk(rF0),hideStackFrames:Wk,codes:V$}});var jk=F((Ok,GJ)=>{Object.defineProperty(Ok,"__esModule",{value:!0});var Mk=new WeakMap,rU=new WeakMap;function Q1(Q){let X=Mk.get(Q);return console.assert(X!=null,"'this' is expected an Event object, but got",Q),X}function Uk(Q){if(Q.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",Q.passiveListener);return}if(!Q.event.cancelable)return;if(Q.canceled=!0,typeof Q.event.preventDefault==="function")Q.event.preventDefault()}function P9(Q,X){Mk.set(this,{eventTarget:Q,event:X,eventPhase:2,currentTarget:Q,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:X.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let J=Object.keys(X);for(let Y=0;Y<J.length;++Y){let Z=J[Y];if(!(Z in this))Object.defineProperty(this,Z,Ik(Z))}}P9.prototype={get type(){return Q1(this).event.type},get target(){return Q1(this).eventTarget},get currentTarget(){return Q1(this).currentTarget},composedPath(){let Q=Q1(this).currentTarget;if(Q==null)return[];return[Q]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return Q1(this).eventPhase},stopPropagation(){let Q=Q1(this);if(Q.stopped=!0,typeof Q.event.stopPropagation==="function")Q.event.stopPropagation()},stopImmediatePropagation(){let Q=Q1(this);if(Q.stopped=!0,Q.immediateStopped=!0,typeof Q.event.stopImmediatePropagation==="function")Q.event.stopImmediatePropagation()},get bubbles(){return Boolean(Q1(this).event.bubbles)},get cancelable(){return Boolean(Q1(this).event.cancelable)},preventDefault(){Uk(Q1(this))},get defaultPrevented(){return Q1(this).canceled},get composed(){return Boolean(Q1(this).event.composed)},get timeStamp(){return Q1(this).timeStamp},get srcElement(){return Q1(this).eventTarget},get cancelBubble(){return Q1(this).stopped},set cancelBubble(Q){if(!Q)return;let X=Q1(this);if(X.stopped=!0,typeof X.event.cancelBubble==="boolean")X.event.cancelBubble=!0},get returnValue(){return!Q1(this).canceled},set returnValue(Q){if(!Q)Uk(Q1(this))},initEvent(){}};Object.defineProperty(P9.prototype,"constructor",{value:P9,configurable:!0,writable:!0});if(typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(P9.prototype,window.Event.prototype),rU.set(window.Event.prototype,P9);function Ik(Q){return{get(){return Q1(this).event[Q]},set(X){Q1(this).event[Q]=X},configurable:!0,enumerable:!0}}function sF0(Q){return{value(){let X=Q1(this).event;return X[Q].apply(X,arguments)},configurable:!0,enumerable:!0}}function aF0(Q,X){let J=Object.keys(X);if(J.length===0)return Q;function Y(Z,q){Q.call(this,Z,q)}Y.prototype=Object.create(Q.prototype,{constructor:{value:Y,configurable:!0,writable:!0}});for(let Z=0;Z<J.length;++Z){let q=J[Z];if(!(q in Q.prototype)){let H=typeof Object.getOwnPropertyDescriptor(X,q).value==="function";Object.defineProperty(Y.prototype,q,H?sF0(q):Ik(q))}}return Y}function Pk(Q){if(Q==null||Q===Object.prototype)return P9;let X=rU.get(Q);if(X==null)X=aF0(Pk(Object.getPrototypeOf(Q)),Q),rU.set(Q,X);return X}function tF0(Q,X){return new(Pk(Object.getPrototypeOf(X)))(Q,X)}function eF0(Q){return Q1(Q).immediateStopped}function QM0(Q,X){Q1(Q).eventPhase=X}function XM0(Q,X){Q1(Q).currentTarget=X}function zk(Q,X){Q1(Q).passiveListener=X}var Ck=new WeakMap,Bk=1,Lk=2,G$=3;function U$(Q){return Q!==null&&typeof Q==="object"}function VJ(Q){let X=Ck.get(Q);if(X==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return X}function JM0(Q){return{get(){let J=VJ(this).get(Q);while(J!=null){if(J.listenerType===G$)return J.listener;J=J.next}return null},set(X){if(typeof X!=="function"&&!U$(X))X=null;let J=VJ(this),Y=null,Z=J.get(Q);while(Z!=null){if(Z.listenerType===G$)if(Y!==null)Y.next=Z.next;else if(Z.next!==null)J.set(Q,Z.next);else J.delete(Q);else Y=Z;Z=Z.next}if(X!==null){let q={listener:X,listenerType:G$,passive:!1,once:!1,next:null};if(Y===null)J.set(Q,q);else Y.next=q}},configurable:!0,enumerable:!0}}function sU(Q,X){Object.defineProperty(Q,`on${X}`,JM0(X))}function Fk(Q){function X(){M8.call(this)}X.prototype=Object.create(M8.prototype,{constructor:{value:X,configurable:!0,writable:!0}});for(let J=0;J<Q.length;++J)sU(X.prototype,Q[J]);return X}function M8(){if(this instanceof M8){Ck.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return Fk(arguments[0]);if(arguments.length>0){let Q=Array(arguments.length);for(let X=0;X<arguments.length;++X)Q[X]=arguments[X];return Fk(Q)}throw TypeError("Cannot call a class as a function")}M8.prototype={addEventListener(Q,X,J){if(X==null)return;if(typeof X!=="function"&&!U$(X))throw TypeError("'listener' should be a function or an object.");let Y=VJ(this),Z=U$(J),$=(Z?Boolean(J.capture):Boolean(J))?Bk:Lk,H={listener:X,listenerType:$,passive:Z&&Boolean(J.passive),once:Z&&Boolean(J.once),next:null},K=Y.get(Q);if(K===void 0){Y.set(Q,H);return}let V=null;while(K!=null){if(K.listener===X&&K.listenerType===$)return;V=K,K=K.next}V.next=H},removeEventListener(Q,X,J){if(X==null)return;let Y=VJ(this),q=(U$(J)?Boolean(J.capture):Boolean(J))?Bk:Lk,$=null,H=Y.get(Q);while(H!=null){if(H.listener===X&&H.listenerType===q){if($!==null)$.next=H.next;else if(H.next!==null)Y.set(Q,H.next);else Y.delete(Q);return}$=H,H=H.next}},dispatchEvent(Q){if(Q==null||typeof Q.type!=="string")throw TypeError('"event.type" should be a string.');let X=VJ(this),J=Q.type,Y=X.get(J);if(Y==null)return!0;let Z=tF0(this,Q),q=null;while(Y!=null){if(Y.once)if(q!==null)q.next=Y.next;else if(Y.next!==null)X.set(J,Y.next);else X.delete(J);else q=Y;if(zk(Z,Y.passive?Y.listener:null),typeof Y.listener==="function")try{Y.listener.call(this,Z)}catch($){if(typeof console<"u"&&typeof console.error==="function")console.error($)}else if(Y.listenerType!==G$&&typeof Y.listener.handleEvent==="function")Y.listener.handleEvent(Z);if(eF0(Z))break;Y=Y.next}return zk(Z,null),QM0(Z,0),XM0(Z,null),!Z.defaultPrevented}};Object.defineProperty(M8.prototype,"constructor",{value:M8,configurable:!0,writable:!0});if(typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(M8.prototype,window.EventTarget.prototype);Ok.defineEventAttribute=sU;Ok.EventTarget=M8;Ok.default=M8;GJ.exports=M8;GJ.exports.EventTarget=GJ.exports.default=M8;GJ.exports.defineEventAttribute=sU});var C9=F((Dk,UJ)=>{Object.defineProperty(Dk,"__esModule",{value:!0});var aU=jk();class i5 extends aU.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let Q=z$.get(this);if(typeof Q!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return Q}}aU.defineEventAttribute(i5.prototype,"abort");function $M0(){let Q=Object.create(i5.prototype);return aU.EventTarget.call(Q),z$.set(Q,!1),Q}function HM0(Q){if(z$.get(Q)!==!1)return;z$.set(Q,!0),Q.dispatchEvent({type:"abort"})}var z$=new WeakMap;Object.defineProperties(i5.prototype,{aborted:{enumerable:!0}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(i5.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class o5{constructor(){Rk.set(this,$M0())}get signal(){return Nk(this)}abort(){HM0(Nk(this))}}var Rk=new WeakMap;function Nk(Q){let X=Rk.get(Q);if(X==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${Q===null?"null":typeof Q}`);return X}Object.defineProperties(o5.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(o5.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Dk.AbortController=o5;Dk.AbortSignal=i5;Dk.default=o5;UJ.exports=o5;UJ.exports.AbortController=UJ.exports.default=o5;UJ.exports.AbortSignal=i5});var V6=F((x11,eU)=>{var GM0=l("buffer"),{format:UM0,inspect:zM0}=oU(),{codes:{ERR_INVALID_ARG_TYPE:tU}}=t1(),{kResistStopPropagation:BM0,AggregateError:LM0,SymbolDispose:FM0}=Y1(),MM0=globalThis.AbortSignal||C9().AbortSignal,IM0=globalThis.AbortController||C9().AbortController,PM0=Object.getPrototypeOf(async function(){}).constructor,wk=globalThis.Blob||GM0.Blob,CM0=typeof wk<"u"?function(X){return X instanceof wk}:function(X){return!1},Tk=(Q,X)=>{if(Q!==void 0&&(Q===null||typeof Q!=="object"||!("aborted"in Q)))throw new tU(X,"AbortSignal",Q)},OM0=(Q,X)=>{if(typeof Q!=="function")throw new tU(X,"Function",Q)};eU.exports={AggregateError:LM0,kEmptyObject:Object.freeze({}),once(Q){let X=!1;return function(...J){if(X)return;X=!0,Q.apply(this,J)}},createDeferredPromise:function(){let Q,X;return{promise:new Promise((Y,Z)=>{Q=Y,X=Z}),resolve:Q,reject:X}},promisify(Q){return new Promise((X,J)=>{Q((Y,...Z)=>{if(Y)return J(Y);return X(...Z)})})},debuglog(){return function(){}},format:UM0,inspect:zM0,types:{isAsyncFunction(Q){return Q instanceof PM0},isArrayBufferView(Q){return ArrayBuffer.isView(Q)}},isBlob:CM0,deprecate(Q,X){return Q},addAbortListener:l("events").addAbortListener||function(X,J){if(X===void 0)throw new tU("signal","AbortSignal",X);Tk(X,"signal"),OM0(J,"listener");let Y;if(X.aborted)queueMicrotask(()=>J());else X.addEventListener("abort",J,{__proto__:null,once:!0,[BM0]:!0}),Y=()=>{X.removeEventListener("abort",J)};return{__proto__:null,[FM0](){var Z;(Z=Y)===null||Z===void 0||Z()}}},AbortSignalAny:MM0.any||function(X){if(X.length===1)return X[0];let J=new IM0,Y=()=>J.abort();return X.forEach((Z)=>{Tk(Z,"signals"),Z.addEventListener("abort",Y,{once:!0})}),J.signal.addEventListener("abort",()=>{X.forEach((Z)=>Z.removeEventListener("abort",Y))},{once:!0}),J.signal}};eU.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var j9=F((k11,bk)=>{var{ArrayIsArray:Xz,ArrayPrototypeIncludes:Sk,ArrayPrototypeJoin:vk,ArrayPrototypeMap:jM0,NumberIsInteger:Jz,NumberIsNaN:NM0,NumberMAX_SAFE_INTEGER:RM0,NumberMIN_SAFE_INTEGER:DM0,NumberParseInt:wM0,ObjectPrototypeHasOwnProperty:TM0,RegExpPrototypeExec:xk,String:AM0,StringPrototypeToUpperCase:EM0,StringPrototypeTrim:_M0}=Y1(),{hideStackFrames:r6,codes:{ERR_SOCKET_BAD_PORT:SM0,ERR_INVALID_ARG_TYPE:e1,ERR_INVALID_ARG_VALUE:O9,ERR_OUT_OF_RANGE:r5,ERR_UNKNOWN_SIGNAL:Ak}}=t1(),{normalizeEncoding:vM0}=V6(),{isAsyncFunction:xM0,isArrayBufferView:kM0}=V6().types,Ek={};function yM0(Q){return Q===(Q|0)}function hM0(Q){return Q===Q>>>0}var bM0=/^[0-7]+$/,fM0="must be a 32-bit unsigned integer or an octal string";function gM0(Q,X,J){if(typeof Q>"u")Q=J;if(typeof Q==="string"){if(xk(bM0,Q)===null)throw new O9(X,Q,fM0);Q=wM0(Q,8)}return kk(Q,X),Q}var uM0=r6((Q,X,J=DM0,Y=RM0)=>{if(typeof Q!=="number")throw new e1(X,"number",Q);if(!Jz(Q))throw new r5(X,"an integer",Q);if(Q<J||Q>Y)throw new r5(X,`>= ${J} && <= ${Y}`,Q)}),mM0=r6((Q,X,J=-2147483648,Y=2147483647)=>{if(typeof Q!=="number")throw new e1(X,"number",Q);if(!Jz(Q))throw new r5(X,"an integer",Q);if(Q<J||Q>Y)throw new r5(X,`>= ${J} && <= ${Y}`,Q)}),kk=r6((Q,X,J=!1)=>{if(typeof Q!=="number")throw new e1(X,"number",Q);if(!Jz(Q))throw new r5(X,"an integer",Q);let Y=J?1:0,Z=4294967295;if(Q<Y||Q>Z)throw new r5(X,`>= ${Y} && <= ${Z}`,Q)});function Yz(Q,X){if(typeof Q!=="string")throw new e1(X,"string",Q)}function dM0(Q,X,J=void 0,Y){if(typeof Q!=="number")throw new e1(X,"number",Q);if(J!=null&&Q<J||Y!=null&&Q>Y||(J!=null||Y!=null)&&NM0(Q))throw new r5(X,`${J!=null?`>= ${J}`:""}${J!=null&&Y!=null?" && ":""}${Y!=null?`<= ${Y}`:""}`,Q)}var cM0=r6((Q,X,J)=>{if(!Sk(J,Q)){let Z="must be one of: "+vk(jM0(J,(q)=>typeof q==="string"?`'${q}'`:AM0(q)),", ");throw new O9(X,Q,Z)}});function yk(Q,X){if(typeof Q!=="boolean")throw new e1(X,"boolean",Q)}function Qz(Q,X,J){return Q==null||!TM0(Q,X)?J:Q[X]}var lM0=r6((Q,X,J=null)=>{let Y=Qz(J,"allowArray",!1),Z=Qz(J,"allowFunction",!1);if(!Qz(J,"nullable",!1)&&Q===null||!Y&&Xz(Q)||typeof Q!=="object"&&(!Z||typeof Q!=="function"))throw new e1(X,"Object",Q)}),pM0=r6((Q,X)=>{if(Q!=null&&typeof Q!=="object"&&typeof Q!=="function")throw new e1(X,"a dictionary",Q)}),B$=r6((Q,X,J=0)=>{if(!Xz(Q))throw new e1(X,"Array",Q);if(Q.length<J){let Y=`must be longer than ${J}`;throw new O9(X,Q,Y)}});function nM0(Q,X){B$(Q,X);for(let J=0;J<Q.length;J++)Yz(Q[J],`${X}[${J}]`)}function iM0(Q,X){B$(Q,X);for(let J=0;J<Q.length;J++)yk(Q[J],`${X}[${J}]`)}function oM0(Q,X){B$(Q,X);for(let J=0;J<Q.length;J++){let Y=Q[J],Z=`${X}[${J}]`;if(Y==null)throw new e1(Z,"AbortSignal",Y);hk(Y,Z)}}function rM0(Q,X="signal"){if(Yz(Q,X),Ek[Q]===void 0){if(Ek[EM0(Q)]!==void 0)throw new Ak(Q+" (signals must use all capital letters)");throw new Ak(Q)}}var sM0=r6((Q,X="buffer")=>{if(!kM0(Q))throw new e1(X,["Buffer","TypedArray","DataView"],Q)});function aM0(Q,X){let J=vM0(X),Y=Q.length;if(J==="hex"&&Y%2!==0)throw new O9("encoding",X,`is invalid for data of length ${Y}`)}function tM0(Q,X="Port",J=!0){if(typeof Q!=="number"&&typeof Q!=="string"||typeof Q==="string"&&_M0(Q).length===0||+Q!==+Q>>>0||Q>65535||Q===0&&!J)throw new SM0(X,Q,J);return Q|0}var hk=r6((Q,X)=>{if(Q!==void 0&&(Q===null||typeof Q!=="object"||!("aborted"in Q)))throw new e1(X,"AbortSignal",Q)}),eM0=r6((Q,X)=>{if(typeof Q!=="function")throw new e1(X,"Function",Q)}),QI0=r6((Q,X)=>{if(typeof Q!=="function"||xM0(Q))throw new e1(X,"Function",Q)}),XI0=r6((Q,X)=>{if(Q!==void 0)throw new e1(X,"undefined",Q)});function JI0(Q,X,J){if(!Sk(J,Q))throw new e1(X,`('${vk(J,"|")}')`,Q)}var YI0=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function _k(Q,X){if(typeof Q>"u"||!xk(YI0,Q))throw new O9(X,Q,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function ZI0(Q){if(typeof Q==="string")return _k(Q,"hints"),Q;else if(Xz(Q)){let X=Q.length,J="";if(X===0)return J;for(let Y=0;Y<X;Y++){let Z=Q[Y];if(_k(Z,"hints"),J+=Z,Y!==X-1)J+=", "}return J}throw new O9("hints",Q,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}bk.exports={isInt32:yM0,isUint32:hM0,parseFileMode:gM0,validateArray:B$,validateStringArray:nM0,validateBooleanArray:iM0,validateAbortSignalArray:oM0,validateBoolean:yk,validateBuffer:sM0,validateDictionary:pM0,validateEncoding:aM0,validateFunction:eM0,validateInt32:mM0,validateInteger:uM0,validateNumber:dM0,validateObject:lM0,validateOneOf:cM0,validatePlainFunction:QI0,validatePort:tM0,validateSignalName:rM0,validateString:Yz,validateUint32:kk,validateUndefined:XI0,validateUnion:JI0,validateAbortSignal:hk,validateLinkHeaderValue:ZI0}});var t4=F((y11,fk)=>{fk.exports=global.process});var u8=F((h11,ek)=>{var{SymbolAsyncIterator:gk,SymbolIterator:uk,SymbolFor:s5}=Y1(),mk=s5("nodejs.stream.destroyed"),dk=s5("nodejs.stream.errored"),Zz=s5("nodejs.stream.readable"),qz=s5("nodejs.stream.writable"),ck=s5("nodejs.stream.disturbed"),qI0=s5("nodejs.webstream.isClosedPromise"),$I0=s5("nodejs.webstream.controllerErrorFunction");function L$(Q,X=!1){var J;return!!(Q&&typeof Q.pipe==="function"&&typeof Q.on==="function"&&(!X||typeof Q.pause==="function"&&typeof Q.resume==="function")&&(!Q._writableState||((J=Q._readableState)===null||J===void 0?void 0:J.readable)!==!1)&&(!Q._writableState||Q._readableState))}function F$(Q){var X;return!!(Q&&typeof Q.write==="function"&&typeof Q.on==="function"&&(!Q._readableState||((X=Q._writableState)===null||X===void 0?void 0:X.writable)!==!1))}function HI0(Q){return!!(Q&&typeof Q.pipe==="function"&&Q._readableState&&typeof Q.on==="function"&&typeof Q.write==="function")}function g8(Q){return Q&&(Q._readableState||Q._writableState||typeof Q.write==="function"&&typeof Q.on==="function"||typeof Q.pipe==="function"&&typeof Q.on==="function")}function lk(Q){return!!(Q&&!g8(Q)&&typeof Q.pipeThrough==="function"&&typeof Q.getReader==="function"&&typeof Q.cancel==="function")}function pk(Q){return!!(Q&&!g8(Q)&&typeof Q.getWriter==="function"&&typeof Q.abort==="function")}function nk(Q){return!!(Q&&!g8(Q)&&typeof Q.readable==="object"&&typeof Q.writable==="object")}function KI0(Q){return lk(Q)||pk(Q)||nk(Q)}function WI0(Q,X){if(Q==null)return!1;if(X===!0)return typeof Q[gk]==="function";if(X===!1)return typeof Q[uk]==="function";return typeof Q[gk]==="function"||typeof Q[uk]==="function"}function M$(Q){if(!g8(Q))return null;let{_writableState:X,_readableState:J}=Q,Y=X||J;return!!(Q.destroyed||Q[mk]||Y!==null&&Y!==void 0&&Y.destroyed)}function ik(Q){if(!F$(Q))return null;if(Q.writableEnded===!0)return!0;let X=Q._writableState;if(X!==null&&X!==void 0&&X.errored)return!1;if(typeof(X===null||X===void 0?void 0:X.ended)!=="boolean")return null;return X.ended}function VI0(Q,X){if(!F$(Q))return null;if(Q.writableFinished===!0)return!0;let J=Q._writableState;if(J!==null&&J!==void 0&&J.errored)return!1;if(typeof(J===null||J===void 0?void 0:J.finished)!=="boolean")return null;return!!(J.finished||X===!1&&J.ended===!0&&J.length===0)}function GI0(Q){if(!L$(Q))return null;if(Q.readableEnded===!0)return!0;let X=Q._readableState;if(!X||X.errored)return!1;if(typeof(X===null||X===void 0?void 0:X.ended)!=="boolean")return null;return X.ended}function ok(Q,X){if(!L$(Q))return null;let J=Q._readableState;if(J!==null&&J!==void 0&&J.errored)return!1;if(typeof(J===null||J===void 0?void 0:J.endEmitted)!=="boolean")return null;return!!(J.endEmitted||X===!1&&J.ended===!0&&J.length===0)}function rk(Q){if(Q&&Q[Zz]!=null)return Q[Zz];if(typeof(Q===null||Q===void 0?void 0:Q.readable)!=="boolean")return null;if(M$(Q))return!1;return L$(Q)&&Q.readable&&!ok(Q)}function sk(Q){if(Q&&Q[qz]!=null)return Q[qz];if(typeof(Q===null||Q===void 0?void 0:Q.writable)!=="boolean")return null;if(M$(Q))return!1;return F$(Q)&&Q.writable&&!ik(Q)}function UI0(Q,X){if(!g8(Q))return null;if(M$(Q))return!0;if((X===null||X===void 0?void 0:X.readable)!==!1&&rk(Q))return!1;if((X===null||X===void 0?void 0:X.writable)!==!1&&sk(Q))return!1;return!0}function zI0(Q){var X,J;if(!g8(Q))return null;if(Q.writableErrored)return Q.writableErrored;return(X=(J=Q._writableState)===null||J===void 0?void 0:J.errored)!==null&&X!==void 0?X:null}function BI0(Q){var X,J;if(!g8(Q))return null;if(Q.readableErrored)return Q.readableErrored;return(X=(J=Q._readableState)===null||J===void 0?void 0:J.errored)!==null&&X!==void 0?X:null}function LI0(Q){if(!g8(Q))return null;if(typeof Q.closed==="boolean")return Q.closed;let{_writableState:X,_readableState:J}=Q;if(typeof(X===null||X===void 0?void 0:X.closed)==="boolean"||typeof(J===null||J===void 0?void 0:J.closed)==="boolean")return(X===null||X===void 0?void 0:X.closed)||(J===null||J===void 0?void 0:J.closed);if(typeof Q._closed==="boolean"&&ak(Q))return Q._closed;return null}function ak(Q){return typeof Q._closed==="boolean"&&typeof Q._defaultKeepAlive==="boolean"&&typeof Q._removedConnection==="boolean"&&typeof Q._removedContLen==="boolean"}function tk(Q){return typeof Q._sent100==="boolean"&&ak(Q)}function FI0(Q){var X;return typeof Q._consuming==="boolean"&&typeof Q._dumped==="boolean"&&((X=Q.req)===null||X===void 0?void 0:X.upgradeOrConnect)===void 0}function MI0(Q){if(!g8(Q))return null;let{_writableState:X,_readableState:J}=Q,Y=X||J;return!Y&&tk(Q)||!!(Y&&Y.autoDestroy&&Y.emitClose&&Y.closed===!1)}function II0(Q){var X;return!!(Q&&((X=Q[ck])!==null&&X!==void 0?X:Q.readableDidRead||Q.readableAborted))}function PI0(Q){var X,J,Y,Z,q,$,H,K,V,W;return!!(Q&&((X=(J=(Y=(Z=(q=($=Q[dk])!==null&&$!==void 0?$:Q.readableErrored)!==null&&q!==void 0?q:Q.writableErrored)!==null&&Z!==void 0?Z:(H=Q._readableState)===null||H===void 0?void 0:H.errorEmitted)!==null&&Y!==void 0?Y:(K=Q._writableState)===null||K===void 0?void 0:K.errorEmitted)!==null&&J!==void 0?J:(V=Q._readableState)===null||V===void 0?void 0:V.errored)!==null&&X!==void 0?X:(W=Q._writableState)===null||W===void 0?void 0:W.errored))}ek.exports={isDestroyed:M$,kIsDestroyed:mk,isDisturbed:II0,kIsDisturbed:ck,isErrored:PI0,kIsErrored:dk,isReadable:rk,kIsReadable:Zz,kIsClosedPromise:qI0,kControllerErrorFunction:$I0,kIsWritable:qz,isClosed:LI0,isDuplexNodeStream:HI0,isFinished:UI0,isIterable:WI0,isReadableNodeStream:L$,isReadableStream:lk,isReadableEnded:GI0,isReadableFinished:ok,isReadableErrored:BI0,isNodeStream:g8,isWebStream:KI0,isWritable:sk,isWritableNodeStream:F$,isWritableStream:pk,isWritableEnded:ik,isWritableFinished:VI0,isWritableErrored:zI0,isServerRequest:FI0,isServerResponse:tk,willEmitClose:MI0,isTransformStream:nk}});var L4=F((b11,Vz)=>{var e4=t4(),{AbortError:Ky,codes:CI0}=t1(),{ERR_INVALID_ARG_TYPE:OI0,ERR_STREAM_PREMATURE_CLOSE:Qy}=CI0,{kEmptyObject:Hz,once:Kz}=V6(),{validateAbortSignal:jI0,validateFunction:NI0,validateObject:RI0,validateBoolean:DI0}=j9(),{Promise:wI0,PromisePrototypeThen:TI0,SymbolDispose:Wy}=Y1(),{isClosed:AI0,isReadable:Xy,isReadableNodeStream:$z,isReadableStream:EI0,isReadableFinished:Jy,isReadableErrored:Yy,isWritable:Zy,isWritableNodeStream:qy,isWritableStream:_I0,isWritableFinished:$y,isWritableErrored:Hy,isNodeStream:SI0,willEmitClose:vI0,kIsClosedPromise:xI0}=u8(),N9;function kI0(Q){return Q.setHeader&&typeof Q.abort==="function"}var Wz=()=>{};function Vy(Q,X,J){var Y,Z;if(arguments.length===2)J=X,X=Hz;else if(X==null)X=Hz;else RI0(X,"options");if(NI0(J,"callback"),jI0(X.signal,"options.signal"),J=Kz(J),EI0(Q)||_I0(Q))return yI0(Q,X,J);if(!SI0(Q))throw new OI0("stream",["ReadableStream","WritableStream","Stream"],Q);let q=(Y=X.readable)!==null&&Y!==void 0?Y:$z(Q),$=(Z=X.writable)!==null&&Z!==void 0?Z:qy(Q),H=Q._writableState,K=Q._readableState,V=()=>{if(!Q.writable)U()},W=vI0(Q)&&$z(Q)===q&&qy(Q)===$,G=$y(Q,!1),U=()=>{if(G=!0,Q.destroyed)W=!1;if(W&&(!Q.readable||q))return;if(!q||z)J.call(Q)},z=Jy(Q,!1),L=()=>{if(z=!0,Q.destroyed)W=!1;if(W&&(!Q.writable||$))return;if(!$||G)J.call(Q)},B=(k)=>{J.call(Q,k)},M=AI0(Q),I=()=>{M=!0;let k=Hy(Q)||Yy(Q);if(k&&typeof k!=="boolean")return J.call(Q,k);if(q&&!z&&$z(Q,!0)){if(!Jy(Q,!1))return J.call(Q,new Qy)}if($&&!G){if(!$y(Q,!1))return J.call(Q,new Qy)}J.call(Q)},j=()=>{M=!0;let k=Hy(Q)||Yy(Q);if(k&&typeof k!=="boolean")return J.call(Q,k);J.call(Q)},D=()=>{Q.req.on("finish",U)};if(kI0(Q)){if(Q.on("complete",U),!W)Q.on("abort",I);if(Q.req)D();else Q.on("request",D)}else if($&&!H)Q.on("end",V),Q.on("close",V);if(!W&&typeof Q.aborted==="boolean")Q.on("aborted",I);if(Q.on("end",L),Q.on("finish",U),X.error!==!1)Q.on("error",B);if(Q.on("close",I),M)e4.nextTick(I);else if(H!==null&&H!==void 0&&H.errorEmitted||K!==null&&K!==void 0&&K.errorEmitted){if(!W)e4.nextTick(j)}else if(!q&&(!W||Xy(Q))&&(G||Zy(Q)===!1))e4.nextTick(j);else if(!$&&(!W||Zy(Q))&&(z||Xy(Q)===!1))e4.nextTick(j);else if(K&&Q.req&&Q.aborted)e4.nextTick(j);let N=()=>{if(J=Wz,Q.removeListener("aborted",I),Q.removeListener("complete",U),Q.removeListener("abort",I),Q.removeListener("request",D),Q.req)Q.req.removeListener("finish",U);Q.removeListener("end",V),Q.removeListener("close",V),Q.removeListener("finish",U),Q.removeListener("end",L),Q.removeListener("error",B),Q.removeListener("close",I)};if(X.signal&&!M){let k=()=>{let f=J;N(),f.call(Q,new Ky(void 0,{cause:X.signal.reason}))};if(X.signal.aborted)e4.nextTick(k);else{N9=N9||V6().addAbortListener;let f=N9(X.signal,k),S=J;J=Kz((...p)=>{f[Wy](),S.apply(Q,p)})}}return N}function yI0(Q,X,J){let Y=!1,Z=Wz;if(X.signal)if(Z=()=>{Y=!0,J.call(Q,new Ky(void 0,{cause:X.signal.reason}))},X.signal.aborted)e4.nextTick(Z);else{N9=N9||V6().addAbortListener;let $=N9(X.signal,Z),H=J;J=Kz((...K)=>{$[Wy](),H.apply(Q,K)})}let q=(...$)=>{if(!Y)e4.nextTick(()=>J.apply(Q,$))};return TI0(Q[xI0].promise,q,q),Wz}function hI0(Q,X){var J;let Y=!1;if(X===null)X=Hz;if((J=X)!==null&&J!==void 0&&J.cleanup)DI0(X.cleanup,"cleanup"),Y=X.cleanup;return new wI0((Z,q)=>{let $=Vy(Q,X,(H)=>{if(Y)$();if(H)q(H);else Z()})})}Vz.exports=Vy;Vz.exports.finished=hI0});var a5=F((f11,Iy)=>{var m8=t4(),{aggregateTwoErrors:bI0,codes:{ERR_MULTIPLE_CALLBACK:fI0},AbortError:gI0}=t1(),{Symbol:zy}=Y1(),{kIsDestroyed:uI0,isDestroyed:mI0,isFinished:dI0,isServerRequest:cI0}=u8(),By=zy("kDestroy"),Gz=zy("kConstruct");function Ly(Q,X,J){if(Q){if(Q.stack,X&&!X.errored)X.errored=Q;if(J&&!J.errored)J.errored=Q}}function lI0(Q,X){let J=this._readableState,Y=this._writableState,Z=Y||J;if(Y!==null&&Y!==void 0&&Y.destroyed||J!==null&&J!==void 0&&J.destroyed){if(typeof X==="function")X();return this}if(Ly(Q,Y,J),Y)Y.destroyed=!0;if(J)J.destroyed=!0;if(!Z.constructed)this.once(By,function(q){Gy(this,bI0(q,Q),X)});else Gy(this,Q,X);return this}function Gy(Q,X,J){let Y=!1;function Z(q){if(Y)return;Y=!0;let{_readableState:$,_writableState:H}=Q;if(Ly(q,H,$),H)H.closed=!0;if($)$.closed=!0;if(typeof J==="function")J(q);if(q)m8.nextTick(pI0,Q,q);else m8.nextTick(Fy,Q)}try{Q._destroy(X||null,Z)}catch(q){Z(q)}}function pI0(Q,X){Uz(Q,X),Fy(Q)}function Fy(Q){let{_readableState:X,_writableState:J}=Q;if(J)J.closeEmitted=!0;if(X)X.closeEmitted=!0;if(J!==null&&J!==void 0&&J.emitClose||X!==null&&X!==void 0&&X.emitClose)Q.emit("close")}function Uz(Q,X){let{_readableState:J,_writableState:Y}=Q;if(Y!==null&&Y!==void 0&&Y.errorEmitted||J!==null&&J!==void 0&&J.errorEmitted)return;if(Y)Y.errorEmitted=!0;if(J)J.errorEmitted=!0;Q.emit("error",X)}function nI0(){let Q=this._readableState,X=this._writableState;if(Q)Q.constructed=!0,Q.closed=!1,Q.closeEmitted=!1,Q.destroyed=!1,Q.errored=null,Q.errorEmitted=!1,Q.reading=!1,Q.ended=Q.readable===!1,Q.endEmitted=Q.readable===!1;if(X)X.constructed=!0,X.destroyed=!1,X.closed=!1,X.closeEmitted=!1,X.errored=null,X.errorEmitted=!1,X.finalCalled=!1,X.prefinished=!1,X.ended=X.writable===!1,X.ending=X.writable===!1,X.finished=X.writable===!1}function zz(Q,X,J){let{_readableState:Y,_writableState:Z}=Q;if(Z!==null&&Z!==void 0&&Z.destroyed||Y!==null&&Y!==void 0&&Y.destroyed)return this;if(Y!==null&&Y!==void 0&&Y.autoDestroy||Z!==null&&Z!==void 0&&Z.autoDestroy)Q.destroy(X);else if(X){if(X.stack,Z&&!Z.errored)Z.errored=X;if(Y&&!Y.errored)Y.errored=X;if(J)m8.nextTick(Uz,Q,X);else Uz(Q,X)}}function iI0(Q,X){if(typeof Q._construct!=="function")return;let{_readableState:J,_writableState:Y}=Q;if(J)J.constructed=!1;if(Y)Y.constructed=!1;if(Q.once(Gz,X),Q.listenerCount(Gz)>1)return;m8.nextTick(oI0,Q)}function oI0(Q){let X=!1;function J(Y){if(X){zz(Q,Y!==null&&Y!==void 0?Y:new fI0);return}X=!0;let{_readableState:Z,_writableState:q}=Q,$=q||Z;if(Z)Z.constructed=!0;if(q)q.constructed=!0;if($.destroyed)Q.emit(By,Y);else if(Y)zz(Q,Y,!0);else m8.nextTick(rI0,Q)}try{Q._construct((Y)=>{m8.nextTick(J,Y)})}catch(Y){m8.nextTick(J,Y)}}function rI0(Q){Q.emit(Gz)}function Uy(Q){return(Q===null||Q===void 0?void 0:Q.setHeader)&&typeof Q.abort==="function"}function My(Q){Q.emit("close")}function sI0(Q,X){Q.emit("error",X),m8.nextTick(My,Q)}function aI0(Q,X){if(!Q||mI0(Q))return;if(!X&&!dI0(Q))X=new gI0;if(cI0(Q))Q.socket=null,Q.destroy(X);else if(Uy(Q))Q.abort();else if(Uy(Q.req))Q.req.abort();else if(typeof Q.destroy==="function")Q.destroy(X);else if(typeof Q.close==="function")Q.close();else if(X)m8.nextTick(sI0,Q,X);else m8.nextTick(My,Q);if(!Q.destroyed)Q[uI0]=!0}Iy.exports={construct:iI0,destroyer:aI0,destroy:lI0,undestroy:nI0,errorOrDestroy:zz}});var C$=F((g11,Cy)=>{var{ArrayIsArray:tI0,ObjectSetPrototypeOf:Py}=Y1(),{EventEmitter:I$}=l("events");function P$(Q){I$.call(this,Q)}Py(P$.prototype,I$.prototype);Py(P$,I$);P$.prototype.pipe=function(Q,X){let J=this;function Y(W){if(Q.writable&&Q.write(W)===!1&&J.pause)J.pause()}J.on("data",Y);function Z(){if(J.readable&&J.resume)J.resume()}if(Q.on("drain",Z),!Q._isStdio&&(!X||X.end!==!1))J.on("end",$),J.on("close",H);let q=!1;function $(){if(q)return;q=!0,Q.end()}function H(){if(q)return;if(q=!0,typeof Q.destroy==="function")Q.destroy()}function K(W){if(V(),I$.listenerCount(this,"error")===0)this.emit("error",W)}Bz(J,"error",K),Bz(Q,"error",K);function V(){J.removeListener("data",Y),Q.removeListener("drain",Z),J.removeListener("end",$),J.removeListener("close",H),J.removeListener("error",K),Q.removeListener("error",K),J.removeListener("end",V),J.removeListener("close",V),Q.removeListener("close",V)}return J.on("end",V),J.on("close",V),Q.on("close",V),Q.emit("pipe",J),Q};function Bz(Q,X,J){if(typeof Q.prependListener==="function")return Q.prependListener(X,J);if(!Q._events||!Q._events[X])Q.on(X,J);else if(tI0(Q._events[X]))Q._events[X].unshift(J);else Q._events[X]=[J,Q._events[X]]}Cy.exports={Stream:P$,prependListener:Bz}});var zJ=F((qP0,O$)=>{var{SymbolDispose:eI0}=Y1(),{AbortError:Oy,codes:QP0}=t1(),{isNodeStream:jy,isWebStream:XP0,kControllerErrorFunction:JP0}=u8(),YP0=L4(),{ERR_INVALID_ARG_TYPE:Ny}=QP0,Lz,ZP0=(Q,X)=>{if(typeof Q!=="object"||!("aborted"in Q))throw new Ny(X,"AbortSignal",Q)};qP0.addAbortSignal=function(X,J){if(ZP0(X,"signal"),!jy(J)&&!XP0(J))throw new Ny("stream",["ReadableStream","WritableStream","Stream"],J);return qP0.addAbortSignalNoValidate(X,J)};qP0.addAbortSignalNoValidate=function(Q,X){if(typeof Q!=="object"||!("aborted"in Q))return X;let J=jy(X)?()=>{X.destroy(new Oy(void 0,{cause:Q.reason}))}:()=>{X[JP0](new Oy(void 0,{cause:Q.reason}))};if(Q.aborted)J();else{Lz=Lz||V6().addAbortListener;let Y=Lz(Q,J);YP0(X,Y[eI0])}return X}});var wy=F((u11,Dy)=>{var{StringPrototypeSlice:Ry,SymbolIterator:KP0,TypedArrayPrototypeSet:j$,Uint8Array:WP0}=Y1(),{Buffer:Fz}=l("buffer"),{inspect:VP0}=V6();Dy.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(X){let J={data:X,next:null};if(this.length>0)this.tail.next=J;else this.head=J;this.tail=J,++this.length}unshift(X){let J={data:X,next:this.head};if(this.length===0)this.tail=J;this.head=J,++this.length}shift(){if(this.length===0)return;let X=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,X}clear(){this.head=this.tail=null,this.length=0}join(X){if(this.length===0)return"";let J=this.head,Y=""+J.data;while((J=J.next)!==null)Y+=X+J.data;return Y}concat(X){if(this.length===0)return Fz.alloc(0);let J=Fz.allocUnsafe(X>>>0),Y=this.head,Z=0;while(Y)j$(J,Y.data,Z),Z+=Y.data.length,Y=Y.next;return J}consume(X,J){let Y=this.head.data;if(X<Y.length){let Z=Y.slice(0,X);return this.head.data=Y.slice(X),Z}if(X===Y.length)return this.shift();return J?this._getString(X):this._getBuffer(X)}first(){return this.head.data}*[KP0](){for(let X=this.head;X;X=X.next)yield X.data}_getString(X){let J="",Y=this.head,Z=0;do{let q=Y.data;if(X>q.length)J+=q,X-=q.length;else{if(X===q.length)if(J+=q,++Z,Y.next)this.head=Y.next;else this.head=this.tail=null;else J+=Ry(q,0,X),this.head=Y,Y.data=Ry(q,X);break}++Z}while((Y=Y.next)!==null);return this.length-=Z,J}_getBuffer(X){let J=Fz.allocUnsafe(X),Y=X,Z=this.head,q=0;do{let $=Z.data;if(X>$.length)j$(J,$,Y-X),X-=$.length;else{if(X===$.length)if(j$(J,$,Y-X),++q,Z.next)this.head=Z.next;else this.head=this.tail=null;else j$(J,new WP0($.buffer,$.byteOffset,X),Y-X),this.head=Z,Z.data=$.slice(X);break}++q}while((Z=Z.next)!==null);return this.length-=q,J}[Symbol.for("nodejs.util.inspect.custom")](X,J){return VP0(this,{...J,depth:0,customInspect:!1})}}});var BJ=F((m11,_y)=>{var{MathFloor:GP0,NumberIsInteger:UP0}=Y1(),{validateInteger:zP0}=j9(),{ERR_INVALID_ARG_VALUE:BP0}=t1().codes,Ty=16384,Ay=16;function LP0(Q,X,J){return Q.highWaterMark!=null?Q.highWaterMark:X?Q[J]:null}function Ey(Q){return Q?Ay:Ty}function FP0(Q,X){if(zP0(X,"value",0),Q)Ay=X;else Ty=X}function MP0(Q,X,J,Y){let Z=LP0(X,Y,J);if(Z!=null){if(!UP0(Z)||Z<0){let q=Y?`options.${J}`:"options.highWaterMark";throw new BP0(q,Z)}return GP0(Z)}return Ey(Q.objectMode)}_y.exports={getHighWaterMark:MP0,getDefaultHighWaterMark:Ey,setDefaultHighWaterMark:FP0}});var xy=F((Mz,vy)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var N$=l("buffer"),d8=N$.Buffer;function Sy(Q,X){for(var J in Q)X[J]=Q[J]}if(d8.from&&d8.alloc&&d8.allocUnsafe&&d8.allocUnsafeSlow)vy.exports=N$;else Sy(N$,Mz),Mz.Buffer=t5;function t5(Q,X,J){return d8(Q,X,J)}t5.prototype=Object.create(d8.prototype);Sy(d8,t5);t5.from=function(Q,X,J){if(typeof Q==="number")throw TypeError("Argument must not be a number");return d8(Q,X,J)};t5.alloc=function(Q,X,J){if(typeof Q!=="number")throw TypeError("Argument must be a number");var Y=d8(Q);if(X!==void 0)if(typeof J==="string")Y.fill(X,J);else Y.fill(X);else Y.fill(0);return Y};t5.allocUnsafe=function(Q){if(typeof Q!=="number")throw TypeError("Argument must be a number");return d8(Q)};t5.allocUnsafeSlow=function(Q){if(typeof Q!=="number")throw TypeError("Argument must be a number");return N$.SlowBuffer(Q)}});var yy=F((SP0)=>{var Pz=xy().Buffer,ky=Pz.isEncoding||function(Q){switch(Q=""+Q,Q&&Q.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function IP0(Q){if(!Q)return"utf8";var X;while(!0)switch(Q){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Q;default:if(X)return;Q=(""+Q).toLowerCase(),X=!0}}function PP0(Q){var X=IP0(Q);if(typeof X!=="string"&&(Pz.isEncoding===ky||!ky(Q)))throw Error("Unknown encoding: "+Q);return X||Q}SP0.StringDecoder=LJ;function LJ(Q){this.encoding=PP0(Q);var X;switch(this.encoding){case"utf16le":this.text=DP0,this.end=wP0,X=4;break;case"utf8":this.fillLast=jP0,X=4;break;case"base64":this.text=TP0,this.end=AP0,X=3;break;default:this.write=EP0,this.end=_P0;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Pz.allocUnsafe(X)}LJ.prototype.write=function(Q){if(Q.length===0)return"";var X,J;if(this.lastNeed){if(X=this.fillLast(Q),X===void 0)return"";J=this.lastNeed,this.lastNeed=0}else J=0;if(J<Q.length)return X?X+this.text(Q,J):this.text(Q,J);return X||""};LJ.prototype.end=RP0;LJ.prototype.text=NP0;LJ.prototype.fillLast=function(Q){if(this.lastNeed<=Q.length)return Q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Q.length),this.lastNeed-=Q.length};function Iz(Q){if(Q<=127)return 0;else if(Q>>5===6)return 2;else if(Q>>4===14)return 3;else if(Q>>3===30)return 4;return Q>>6===2?-1:-2}function CP0(Q,X,J){var Y=X.length-1;if(Y<J)return 0;var Z=Iz(X[Y]);if(Z>=0){if(Z>0)Q.lastNeed=Z-1;return Z}if(--Y<J||Z===-2)return 0;if(Z=Iz(X[Y]),Z>=0){if(Z>0)Q.lastNeed=Z-2;return Z}if(--Y<J||Z===-2)return 0;if(Z=Iz(X[Y]),Z>=0){if(Z>0)if(Z===2)Z=0;else Q.lastNeed=Z-3;return Z}return 0}function OP0(Q,X,J){if((X[0]&192)!==128)return Q.lastNeed=0,"�";if(Q.lastNeed>1&&X.length>1){if((X[1]&192)!==128)return Q.lastNeed=1,"�";if(Q.lastNeed>2&&X.length>2){if((X[2]&192)!==128)return Q.lastNeed=2,"�"}}}function jP0(Q){var X=this.lastTotal-this.lastNeed,J=OP0(this,Q,X);if(J!==void 0)return J;if(this.lastNeed<=Q.length)return Q.copy(this.lastChar,X,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Q.copy(this.lastChar,X,0,Q.length),this.lastNeed-=Q.length}function NP0(Q,X){var J=CP0(this,Q,X);if(!this.lastNeed)return Q.toString("utf8",X);this.lastTotal=J;var Y=Q.length-(J-this.lastNeed);return Q.copy(this.lastChar,0,Y),Q.toString("utf8",X,Y)}function RP0(Q){var X=Q&&Q.length?this.write(Q):"";if(this.lastNeed)return X+"�";return X}function DP0(Q,X){if((Q.length-X)%2===0){var J=Q.toString("utf16le",X);if(J){var Y=J.charCodeAt(J.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Q[Q.length-2],this.lastChar[1]=Q[Q.length-1],J.slice(0,-1)}return J}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Q[Q.length-1],Q.toString("utf16le",X,Q.length-1)}function wP0(Q){var X=Q&&Q.length?this.write(Q):"";if(this.lastNeed){var J=this.lastTotal-this.lastNeed;return X+this.lastChar.toString("utf16le",0,J)}return X}function TP0(Q,X){var J=(Q.length-X)%3;if(J===0)return Q.toString("base64",X);if(this.lastNeed=3-J,this.lastTotal=3,J===1)this.lastChar[0]=Q[Q.length-1];else this.lastChar[0]=Q[Q.length-2],this.lastChar[1]=Q[Q.length-1];return Q.toString("base64",X,Q.length-J)}function AP0(Q){var X=Q&&Q.length?this.write(Q):"";if(this.lastNeed)return X+this.lastChar.toString("base64",0,3-this.lastNeed);return X}function EP0(Q){return Q.toString(this.encoding)}function _P0(Q){return Q&&Q.length?this.write(Q):""}});var Cz=F((c11,gy)=>{var hy=t4(),{PromisePrototypeThen:xP0,SymbolAsyncIterator:by,SymbolIterator:fy}=Y1(),{Buffer:kP0}=l("buffer"),{ERR_INVALID_ARG_TYPE:yP0,ERR_STREAM_NULL_VALUES:hP0}=t1().codes;function bP0(Q,X,J){let Y;if(typeof X==="string"||X instanceof kP0)return new Q({objectMode:!0,...J,read(){this.push(X),this.push(null)}});let Z;if(X&&X[by])Z=!0,Y=X[by]();else if(X&&X[fy])Z=!1,Y=X[fy]();else throw new yP0("iterable",["Iterable"],X);let q=new Q({objectMode:!0,highWaterMark:1,...J}),$=!1;q._read=function(){if(!$)$=!0,K()},q._destroy=function(V,W){xP0(H(V),()=>hy.nextTick(W,V),(G)=>hy.nextTick(W,G||V))};async function H(V){let W=V!==void 0&&V!==null,G=typeof Y.throw==="function";if(W&&G){let{value:U,done:z}=await Y.throw(V);if(await U,z)return}if(typeof Y.return==="function"){let{value:U}=await Y.return();await U}}async function K(){for(;;){try{let{value:V,done:W}=Z?await Y.next():Y.next();if(W)q.push(null);else{let G=V&&typeof V.then==="function"?await V:V;if(G===null)throw $=!1,new hP0;else if(q.push(G))continue;else $=!1}}catch(V){q.destroy(V)}break}}return q}gy.exports=bP0});var MJ=F((l11,Yh)=>{var I8=t4(),{ArrayPrototypeIndexOf:fP0,NumberIsInteger:gP0,NumberIsNaN:uP0,NumberParseInt:mP0,ObjectDefineProperties:Az,ObjectKeys:dP0,ObjectSetPrototypeOf:dy,Promise:cy,SafeSet:cP0,SymbolAsyncDispose:lP0,SymbolAsyncIterator:pP0,Symbol:nP0}=Y1();Yh.exports=j0;j0.ReadableState=T$;var{EventEmitter:iP0}=l("events"),{Stream:Q5,prependListener:oP0}=C$(),{Buffer:Oz}=l("buffer"),{addAbortSignal:rP0}=zJ(),ly=L4(),A0=V6().debuglog("stream",(Q)=>{A0=Q}),sP0=wy(),w9=a5(),{getHighWaterMark:aP0,getDefaultHighWaterMark:tP0}=BJ(),{aggregateTwoErrors:uy,codes:{ERR_INVALID_ARG_TYPE:eP0,ERR_METHOD_NOT_IMPLEMENTED:QC0,ERR_OUT_OF_RANGE:XC0,ERR_STREAM_PUSH_AFTER_EOF:JC0,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:YC0},AbortError:ZC0}=t1(),{validateObject:qC0}=j9(),e5=nP0("kPaused"),{StringDecoder:py}=yy(),$C0=Cz();dy(j0.prototype,Q5.prototype);dy(j0,Q5);var jz=()=>{},{errorOrDestroy:R9}=w9,D9=1,HC0=2,ny=4,FJ=8,iy=16,R$=32,D$=64,oy=128,KC0=256,WC0=512,VC0=1024,wz=2048,Tz=4096,GC0=8192,UC0=16384,zC0=32768,ry=65536,BC0=131072,LC0=262144;function A1(Q){return{enumerable:!1,get(){return(this.state&Q)!==0},set(X){if(X)this.state|=Q;else this.state&=~Q}}}Az(T$.prototype,{objectMode:A1(D9),ended:A1(HC0),endEmitted:A1(ny),reading:A1(FJ),constructed:A1(iy),sync:A1(R$),needReadable:A1(D$),emittedReadable:A1(oy),readableListening:A1(KC0),resumeScheduled:A1(WC0),errorEmitted:A1(VC0),emitClose:A1(wz),autoDestroy:A1(Tz),destroyed:A1(GC0),closed:A1(UC0),closeEmitted:A1(zC0),multiAwaitDrain:A1(ry),readingMore:A1(BC0),dataEmitted:A1(LC0)});function T$(Q,X,J){if(typeof J!=="boolean")J=X instanceof c8();if(this.state=wz|Tz|iy|R$,Q&&Q.objectMode)this.state|=D9;if(J&&Q&&Q.readableObjectMode)this.state|=D9;if(this.highWaterMark=Q?aP0(this,Q,"readableHighWaterMark",J):tP0(!1),this.buffer=new sP0,this.length=0,this.pipes=[],this.flowing=null,this[e5]=null,Q&&Q.emitClose===!1)this.state&=~wz;if(Q&&Q.autoDestroy===!1)this.state&=~Tz;if(this.errored=null,this.defaultEncoding=Q&&Q.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,Q&&Q.encoding)this.decoder=new py(Q.encoding),this.encoding=Q.encoding}function j0(Q){if(!(this instanceof j0))return new j0(Q);let X=this instanceof c8();if(this._readableState=new T$(Q,this,X),Q){if(typeof Q.read==="function")this._read=Q.read;if(typeof Q.destroy==="function")this._destroy=Q.destroy;if(typeof Q.construct==="function")this._construct=Q.construct;if(Q.signal&&!X)rP0(Q.signal,this)}Q5.call(this,Q),w9.construct(this,()=>{if(this._readableState.needReadable)w$(this,this._readableState)})}j0.prototype.destroy=w9.destroy;j0.prototype._undestroy=w9.undestroy;j0.prototype._destroy=function(Q,X){X(Q)};j0.prototype[iP0.captureRejectionSymbol]=function(Q){this.destroy(Q)};j0.prototype[lP0]=function(){let Q;if(!this.destroyed)Q=this.readableEnded?null:new ZC0,this.destroy(Q);return new cy((X,J)=>ly(this,(Y)=>Y&&Y!==Q?J(Y):X(null)))};j0.prototype.push=function(Q,X){return sy(this,Q,X,!1)};j0.prototype.unshift=function(Q,X){return sy(this,Q,X,!0)};function sy(Q,X,J,Y){A0("readableAddChunk",X);let Z=Q._readableState,q;if((Z.state&D9)===0){if(typeof X==="string"){if(J=J||Z.defaultEncoding,Z.encoding!==J)if(Y&&Z.encoding)X=Oz.from(X,J).toString(Z.encoding);else X=Oz.from(X,J),J=""}else if(X instanceof Oz)J="";else if(Q5._isUint8Array(X))X=Q5._uint8ArrayToBuffer(X),J="";else if(X!=null)q=new eP0("chunk",["string","Buffer","Uint8Array"],X)}if(q)R9(Q,q);else if(X===null)Z.state&=~FJ,IC0(Q,Z);else if((Z.state&D9)!==0||X&&X.length>0)if(Y)if((Z.state&ny)!==0)R9(Q,new YC0);else if(Z.destroyed||Z.errored)return!1;else Nz(Q,Z,X,!0);else if(Z.ended)R9(Q,new JC0);else if(Z.destroyed||Z.errored)return!1;else if(Z.state&=~FJ,Z.decoder&&!J)if(X=Z.decoder.write(X),Z.objectMode||X.length!==0)Nz(Q,Z,X,!1);else w$(Q,Z);else Nz(Q,Z,X,!1);else if(!Y)Z.state&=~FJ,w$(Q,Z);return!Z.ended&&(Z.length<Z.highWaterMark||Z.length===0)}function Nz(Q,X,J,Y){if(X.flowing&&X.length===0&&!X.sync&&Q.listenerCount("data")>0){if((X.state&ry)!==0)X.awaitDrainWriters.clear();else X.awaitDrainWriters=null;X.dataEmitted=!0,Q.emit("data",J)}else{if(X.length+=X.objectMode?1:J.length,Y)X.buffer.unshift(J);else X.buffer.push(J);if((X.state&D$)!==0)A$(Q)}w$(Q,X)}j0.prototype.isPaused=function(){let Q=this._readableState;return Q[e5]===!0||Q.flowing===!1};j0.prototype.setEncoding=function(Q){let X=new py(Q);this._readableState.decoder=X,this._readableState.encoding=this._readableState.decoder.encoding;let J=this._readableState.buffer,Y="";for(let Z of J)Y+=X.write(Z);if(J.clear(),Y!=="")J.push(Y);return this._readableState.length=Y.length,this};var FC0=1073741824;function MC0(Q){if(Q>FC0)throw new XC0("size","<= 1GiB",Q);else Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++;return Q}function my(Q,X){if(Q<=0||X.length===0&&X.ended)return 0;if((X.state&D9)!==0)return 1;if(uP0(Q)){if(X.flowing&&X.length)return X.buffer.first().length;return X.length}if(Q<=X.length)return Q;return X.ended?X.length:0}j0.prototype.read=function(Q){if(A0("read",Q),Q===void 0)Q=NaN;else if(!gP0(Q))Q=mP0(Q,10);let X=this._readableState,J=Q;if(Q>X.highWaterMark)X.highWaterMark=MC0(Q);if(Q!==0)X.state&=~oy;if(Q===0&&X.needReadable&&((X.highWaterMark!==0?X.length>=X.highWaterMark:X.length>0)||X.ended)){if(A0("read: emitReadable",X.length,X.ended),X.length===0&&X.ended)Rz(this);else A$(this);return null}if(Q=my(Q,X),Q===0&&X.ended){if(X.length===0)Rz(this);return null}let Y=(X.state&D$)!==0;if(A0("need readable",Y),X.length===0||X.length-Q<X.highWaterMark)Y=!0,A0("length less than watermark",Y);if(X.ended||X.reading||X.destroyed||X.errored||!X.constructed)Y=!1,A0("reading, ended or constructing",Y);else if(Y){if(A0("do read"),X.state|=FJ|R$,X.length===0)X.state|=D$;try{this._read(X.highWaterMark)}catch(q){R9(this,q)}if(X.state&=~R$,!X.reading)Q=my(J,X)}let Z;if(Q>0)Z=Xh(Q,X);else Z=null;if(Z===null)X.needReadable=X.length<=X.highWaterMark,Q=0;else if(X.length-=Q,X.multiAwaitDrain)X.awaitDrainWriters.clear();else X.awaitDrainWriters=null;if(X.length===0){if(!X.ended)X.needReadable=!0;if(J!==Q&&X.ended)Rz(this)}if(Z!==null&&!X.errorEmitted&&!X.closeEmitted)X.dataEmitted=!0,this.emit("data",Z);return Z};function IC0(Q,X){if(A0("onEofChunk"),X.ended)return;if(X.decoder){let J=X.decoder.end();if(J&&J.length)X.buffer.push(J),X.length+=X.objectMode?1:J.length}if(X.ended=!0,X.sync)A$(Q);else X.needReadable=!1,X.emittedReadable=!0,ay(Q)}function A$(Q){let X=Q._readableState;if(A0("emitReadable",X.needReadable,X.emittedReadable),X.needReadable=!1,!X.emittedReadable)A0("emitReadable",X.flowing),X.emittedReadable=!0,I8.nextTick(ay,Q)}function ay(Q){let X=Q._readableState;if(A0("emitReadable_",X.destroyed,X.length,X.ended),!X.destroyed&&!X.errored&&(X.length||X.ended))Q.emit("readable"),X.emittedReadable=!1;X.needReadable=!X.flowing&&!X.ended&&X.length<=X.highWaterMark,ey(Q)}function w$(Q,X){if(!X.readingMore&&X.constructed)X.readingMore=!0,I8.nextTick(PC0,Q,X)}function PC0(Q,X){while(!X.reading&&!X.ended&&(X.length<X.highWaterMark||X.flowing&&X.length===0)){let J=X.length;if(A0("maybeReadMore read 0"),Q.read(0),J===X.length)break}X.readingMore=!1}j0.prototype._read=function(Q){throw new QC0("_read()")};j0.prototype.pipe=function(Q,X){let J=this,Y=this._readableState;if(Y.pipes.length===1){if(!Y.multiAwaitDrain)Y.multiAwaitDrain=!0,Y.awaitDrainWriters=new cP0(Y.awaitDrainWriters?[Y.awaitDrainWriters]:[])}Y.pipes.push(Q),A0("pipe count=%d opts=%j",Y.pipes.length,X);let q=(!X||X.end!==!1)&&Q!==I8.stdout&&Q!==I8.stderr?H:M;if(Y.endEmitted)I8.nextTick(q);else J.once("end",q);Q.on("unpipe",$);function $(I,j){if(A0("onunpipe"),I===J){if(j&&j.hasUnpiped===!1)j.hasUnpiped=!0,W()}}function H(){A0("onend"),Q.end()}let K,V=!1;function W(){if(A0("cleanup"),Q.removeListener("close",L),Q.removeListener("finish",B),K)Q.removeListener("drain",K);if(Q.removeListener("error",z),Q.removeListener("unpipe",$),J.removeListener("end",H),J.removeListener("end",M),J.removeListener("data",U),V=!0,K&&Y.awaitDrainWriters&&(!Q._writableState||Q._writableState.needDrain))K()}function G(){if(!V){if(Y.pipes.length===1&&Y.pipes[0]===Q)A0("false write response, pause",0),Y.awaitDrainWriters=Q,Y.multiAwaitDrain=!1;else if(Y.pipes.length>1&&Y.pipes.includes(Q))A0("false write response, pause",Y.awaitDrainWriters.size),Y.awaitDrainWriters.add(Q);J.pause()}if(!K)K=CC0(J,Q),Q.on("drain",K)}J.on("data",U);function U(I){A0("ondata");let j=Q.write(I);if(A0("dest.write",j),j===!1)G()}function z(I){if(A0("onerror",I),M(),Q.removeListener("error",z),Q.listenerCount("error")===0){let j=Q._writableState||Q._readableState;if(j&&!j.errorEmitted)R9(Q,I);else Q.emit("error",I)}}oP0(Q,"error",z);function L(){Q.removeListener("finish",B),M()}Q.once("close",L);function B(){A0("onfinish"),Q.removeListener("close",L),M()}Q.once("finish",B);function M(){A0("unpipe"),J.unpipe(Q)}if(Q.emit("pipe",J),Q.writableNeedDrain===!0)G();else if(!Y.flowing)A0("pipe resume"),J.resume();return Q};function CC0(Q,X){return function(){let Y=Q._readableState;if(Y.awaitDrainWriters===X)A0("pipeOnDrain",1),Y.awaitDrainWriters=null;else if(Y.multiAwaitDrain)A0("pipeOnDrain",Y.awaitDrainWriters.size),Y.awaitDrainWriters.delete(X);if((!Y.awaitDrainWriters||Y.awaitDrainWriters.size===0)&&Q.listenerCount("data"))Q.resume()}}j0.prototype.unpipe=function(Q){let X=this._readableState,J={hasUnpiped:!1};if(X.pipes.length===0)return this;if(!Q){let Z=X.pipes;X.pipes=[],this.pause();for(let q=0;q<Z.length;q++)Z[q].emit("unpipe",this,{hasUnpiped:!1});return this}let Y=fP0(X.pipes,Q);if(Y===-1)return this;if(X.pipes.splice(Y,1),X.pipes.length===0)this.pause();return Q.emit("unpipe",this,J),this};j0.prototype.on=function(Q,X){let J=Q5.prototype.on.call(this,Q,X),Y=this._readableState;if(Q==="data"){if(Y.readableListening=this.listenerCount("readable")>0,Y.flowing!==!1)this.resume()}else if(Q==="readable"){if(!Y.endEmitted&&!Y.readableListening){if(Y.readableListening=Y.needReadable=!0,Y.flowing=!1,Y.emittedReadable=!1,A0("on readable",Y.length,Y.reading),Y.length)A$(this);else if(!Y.reading)I8.nextTick(OC0,this)}}return J};j0.prototype.addListener=j0.prototype.on;j0.prototype.removeListener=function(Q,X){let J=Q5.prototype.removeListener.call(this,Q,X);if(Q==="readable")I8.nextTick(ty,this);return J};j0.prototype.off=j0.prototype.removeListener;j0.prototype.removeAllListeners=function(Q){let X=Q5.prototype.removeAllListeners.apply(this,arguments);if(Q==="readable"||Q===void 0)I8.nextTick(ty,this);return X};function ty(Q){let X=Q._readableState;if(X.readableListening=Q.listenerCount("readable")>0,X.resumeScheduled&&X[e5]===!1)X.flowing=!0;else if(Q.listenerCount("data")>0)Q.resume();else if(!X.readableListening)X.flowing=null}function OC0(Q){A0("readable nexttick read 0"),Q.read(0)}j0.prototype.resume=function(){let Q=this._readableState;if(!Q.flowing)A0("resume"),Q.flowing=!Q.readableListening,jC0(this,Q);return Q[e5]=!1,this};function jC0(Q,X){if(!X.resumeScheduled)X.resumeScheduled=!0,I8.nextTick(NC0,Q,X)}function NC0(Q,X){if(A0("resume",X.reading),!X.reading)Q.read(0);if(X.resumeScheduled=!1,Q.emit("resume"),ey(Q),X.flowing&&!X.reading)Q.read(0)}j0.prototype.pause=function(){if(A0("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)A0("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[e5]=!0,this};function ey(Q){let X=Q._readableState;A0("flow",X.flowing);while(X.flowing&&Q.read()!==null);}j0.prototype.wrap=function(Q){let X=!1;Q.on("data",(Y)=>{if(!this.push(Y)&&Q.pause)X=!0,Q.pause()}),Q.on("end",()=>{this.push(null)}),Q.on("error",(Y)=>{R9(this,Y)}),Q.on("close",()=>{this.destroy()}),Q.on("destroy",()=>{this.destroy()}),this._read=()=>{if(X&&Q.resume)X=!1,Q.resume()};let J=dP0(Q);for(let Y=1;Y<J.length;Y++){let Z=J[Y];if(this[Z]===void 0&&typeof Q[Z]==="function")this[Z]=Q[Z].bind(Q)}return this};j0.prototype[pP0]=function(){return Qh(this)};j0.prototype.iterator=function(Q){if(Q!==void 0)qC0(Q,"options");return Qh(this,Q)};function Qh(Q,X){if(typeof Q.read!=="function")Q=j0.wrap(Q,{objectMode:!0});let J=RC0(Q,X);return J.stream=Q,J}async function*RC0(Q,X){let J=jz;function Y($){if(this===Q)J(),J=jz;else J=$}Q.on("readable",Y);let Z,q=ly(Q,{writable:!1},($)=>{Z=$?uy(Z,$):null,J(),J=jz});try{while(!0){let $=Q.destroyed?null:Q.read();if($!==null)yield $;else if(Z)throw Z;else if(Z===null)return;else await new cy(Y)}}catch($){throw Z=uy(Z,$),Z}finally{if((Z||(X===null||X===void 0?void 0:X.destroyOnReturn)!==!1)&&(Z===void 0||Q._readableState.autoDestroy))w9.destroyer(Q,null);else Q.off("readable",Y),q()}}Az(j0.prototype,{readable:{__proto__:null,get(){let Q=this._readableState;return!!Q&&Q.readable!==!1&&!Q.destroyed&&!Q.errorEmitted&&!Q.endEmitted},set(Q){if(this._readableState)this._readableState.readable=!!Q}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(Q){if(this._readableState)this._readableState.flowing=Q}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(Q){if(!this._readableState)return;this._readableState.destroyed=Q}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});Az(T$.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[e5]!==!1},set(Q){this[e5]=!!Q}}});j0._fromList=Xh;function Xh(Q,X){if(X.length===0)return null;let J;if(X.objectMode)J=X.buffer.shift();else if(!Q||Q>=X.length){if(X.decoder)J=X.buffer.join("");else if(X.buffer.length===1)J=X.buffer.first();else J=X.buffer.concat(X.length);X.buffer.clear()}else J=X.buffer.consume(Q,X.decoder);return J}function Rz(Q){let X=Q._readableState;if(A0("endReadable",X.endEmitted),!X.endEmitted)X.ended=!0,I8.nextTick(DC0,X,Q)}function DC0(Q,X){if(A0("endReadableNT",Q.endEmitted,Q.length),!Q.errored&&!Q.closeEmitted&&!Q.endEmitted&&Q.length===0){if(Q.endEmitted=!0,X.emit("end"),X.writable&&X.allowHalfOpen===!1)I8.nextTick(wC0,X);else if(Q.autoDestroy){let J=X._writableState;if(!J||J.autoDestroy&&(J.finished||J.writable===!1))X.destroy()}}}function wC0(Q){if(Q.writable&&!Q.writableEnded&&!Q.destroyed)Q.end()}j0.from=function(Q,X){return $C0(j0,Q,X)};var Dz;function Jh(){if(Dz===void 0)Dz={};return Dz}j0.fromWeb=function(Q,X){return Jh().newStreamReadableFromReadableStream(Q,X)};j0.toWeb=function(Q,X){return Jh().newReadableStreamFromStreamReadable(Q,X)};j0.wrap=function(Q,X){var J,Y;return new j0({objectMode:(J=(Y=Q.readableObjectMode)!==null&&Y!==void 0?Y:Q.objectMode)!==null&&J!==void 0?J:!0,...X,destroy(Z,q){w9.destroyer(Q,Z),q(Z)}}).wrap(Q)}});var x$=F((p11,Lh)=>{var Q7=t4(),{ArrayPrototypeSlice:$h,Error:TC0,FunctionPrototypeSymbolHasInstance:Hh,ObjectDefineProperty:Kh,ObjectDefineProperties:AC0,ObjectSetPrototypeOf:Wh,StringPrototypeToLowerCase:EC0,Symbol:_C0,SymbolHasInstance:SC0}=Y1();Lh.exports=V1;V1.WritableState=CJ;var{EventEmitter:vC0}=l("events"),IJ=C$().Stream,{Buffer:E$}=l("buffer"),v$=a5(),{addAbortSignal:xC0}=zJ(),{getHighWaterMark:kC0,getDefaultHighWaterMark:yC0}=BJ(),{ERR_INVALID_ARG_TYPE:hC0,ERR_METHOD_NOT_IMPLEMENTED:bC0,ERR_MULTIPLE_CALLBACK:Vh,ERR_STREAM_CANNOT_PIPE:fC0,ERR_STREAM_DESTROYED:PJ,ERR_STREAM_ALREADY_FINISHED:gC0,ERR_STREAM_NULL_VALUES:uC0,ERR_STREAM_WRITE_AFTER_END:mC0,ERR_UNKNOWN_ENCODING:Gh}=t1().codes,{errorOrDestroy:T9}=v$;Wh(V1.prototype,IJ.prototype);Wh(V1,IJ);function Sz(){}var A9=_C0("kOnFinished");function CJ(Q,X,J){if(typeof J!=="boolean")J=X instanceof c8();if(this.objectMode=!!(Q&&Q.objectMode),J)this.objectMode=this.objectMode||!!(Q&&Q.writableObjectMode);this.highWaterMark=Q?kC0(this,Q,"writableHighWaterMark",J):yC0(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let Y=!!(Q&&Q.decodeStrings===!1);this.decodeStrings=!Y,this.defaultEncoding=Q&&Q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=cC0.bind(void 0,X),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,S$(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!Q||Q.emitClose!==!1,this.autoDestroy=!Q||Q.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[A9]=[]}function S$(Q){Q.buffered=[],Q.bufferedIndex=0,Q.allBuffers=!0,Q.allNoop=!0}CJ.prototype.getBuffer=function(){return $h(this.buffered,this.bufferedIndex)};Kh(CJ.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function V1(Q){let X=this instanceof c8();if(!X&&!Hh(V1,this))return new V1(Q);if(this._writableState=new CJ(Q,this,X),Q){if(typeof Q.write==="function")this._write=Q.write;if(typeof Q.writev==="function")this._writev=Q.writev;if(typeof Q.destroy==="function")this._destroy=Q.destroy;if(typeof Q.final==="function")this._final=Q.final;if(typeof Q.construct==="function")this._construct=Q.construct;if(Q.signal)xC0(Q.signal,this)}IJ.call(this,Q),v$.construct(this,()=>{let J=this._writableState;if(!J.writing)xz(this,J);kz(this,J)})}Kh(V1,SC0,{__proto__:null,value:function(Q){if(Hh(this,Q))return!0;if(this!==V1)return!1;return Q&&Q._writableState instanceof CJ}});V1.prototype.pipe=function(){T9(this,new fC0)};function Uh(Q,X,J,Y){let Z=Q._writableState;if(typeof J==="function")Y=J,J=Z.defaultEncoding;else{if(!J)J=Z.defaultEncoding;else if(J!=="buffer"&&!E$.isEncoding(J))throw new Gh(J);if(typeof Y!=="function")Y=Sz}if(X===null)throw new uC0;else if(!Z.objectMode)if(typeof X==="string"){if(Z.decodeStrings!==!1)X=E$.from(X,J),J="buffer"}else if(X instanceof E$)J="buffer";else if(IJ._isUint8Array(X))X=IJ._uint8ArrayToBuffer(X),J="buffer";else throw new hC0("chunk",["string","Buffer","Uint8Array"],X);let q;if(Z.ending)q=new mC0;else if(Z.destroyed)q=new PJ("write");if(q)return Q7.nextTick(Y,q),T9(Q,q,!0),q;return Z.pendingcb++,dC0(Q,Z,X,J,Y)}V1.prototype.write=function(Q,X,J){return Uh(this,Q,X,J)===!0};V1.prototype.cork=function(){this._writableState.corked++};V1.prototype.uncork=function(){let Q=this._writableState;if(Q.corked){if(Q.corked--,!Q.writing)xz(this,Q)}};V1.prototype.setDefaultEncoding=function(X){if(typeof X==="string")X=EC0(X);if(!E$.isEncoding(X))throw new Gh(X);return this._writableState.defaultEncoding=X,this};function dC0(Q,X,J,Y,Z){let q=X.objectMode?1:J.length;X.length+=q;let $=X.length<X.highWaterMark;if(!$)X.needDrain=!0;if(X.writing||X.corked||X.errored||!X.constructed){if(X.buffered.push({chunk:J,encoding:Y,callback:Z}),X.allBuffers&&Y!=="buffer")X.allBuffers=!1;if(X.allNoop&&Z!==Sz)X.allNoop=!1}else X.writelen=q,X.writecb=Z,X.writing=!0,X.sync=!0,Q._write(J,Y,X.onwrite),X.sync=!1;return $&&!X.errored&&!X.destroyed}function Zh(Q,X,J,Y,Z,q,$){if(X.writelen=Y,X.writecb=$,X.writing=!0,X.sync=!0,X.destroyed)X.onwrite(new PJ("write"));else if(J)Q._writev(Z,X.onwrite);else Q._write(Z,q,X.onwrite);X.sync=!1}function qh(Q,X,J,Y){--X.pendingcb,Y(J),vz(X),T9(Q,J)}function cC0(Q,X){let J=Q._writableState,Y=J.sync,Z=J.writecb;if(typeof Z!=="function"){T9(Q,new Vh);return}if(J.writing=!1,J.writecb=null,J.length-=J.writelen,J.writelen=0,X){if(X.stack,!J.errored)J.errored=X;if(Q._readableState&&!Q._readableState.errored)Q._readableState.errored=X;if(Y)Q7.nextTick(qh,Q,J,X,Z);else qh(Q,J,X,Z)}else{if(J.buffered.length>J.bufferedIndex)xz(Q,J);if(Y)if(J.afterWriteTickInfo!==null&&J.afterWriteTickInfo.cb===Z)J.afterWriteTickInfo.count++;else J.afterWriteTickInfo={count:1,cb:Z,stream:Q,state:J},Q7.nextTick(lC0,J.afterWriteTickInfo);else zh(Q,J,1,Z)}}function lC0({stream:Q,state:X,count:J,cb:Y}){return X.afterWriteTickInfo=null,zh(Q,X,J,Y)}function zh(Q,X,J,Y){if(!X.ending&&!Q.destroyed&&X.length===0&&X.needDrain)X.needDrain=!1,Q.emit("drain");while(J-- >0)X.pendingcb--,Y();if(X.destroyed)vz(X);kz(Q,X)}function vz(Q){if(Q.writing)return;for(let Z=Q.bufferedIndex;Z<Q.buffered.length;++Z){var X;let{chunk:q,callback:$}=Q.buffered[Z],H=Q.objectMode?1:q.length;Q.length-=H,$((X=Q.errored)!==null&&X!==void 0?X:new PJ("write"))}let J=Q[A9].splice(0);for(let Z=0;Z<J.length;Z++){var Y;J[Z]((Y=Q.errored)!==null&&Y!==void 0?Y:new PJ("end"))}S$(Q)}function xz(Q,X){if(X.corked||X.bufferProcessing||X.destroyed||!X.constructed)return;let{buffered:J,bufferedIndex:Y,objectMode:Z}=X,q=J.length-Y;if(!q)return;let $=Y;if(X.bufferProcessing=!0,q>1&&Q._writev){X.pendingcb-=q-1;let H=X.allNoop?Sz:(V)=>{for(let W=$;W<J.length;++W)J[W].callback(V)},K=X.allNoop&&$===0?J:$h(J,$);K.allBuffers=X.allBuffers,Zh(Q,X,!0,X.length,K,"",H),S$(X)}else{do{let{chunk:H,encoding:K,callback:V}=J[$];J[$++]=null;let W=Z?1:H.length;Zh(Q,X,!1,W,H,K,V)}while($<J.length&&!X.writing);if($===J.length)S$(X);else if($>256)J.splice(0,$),X.bufferedIndex=0;else X.bufferedIndex=$}X.bufferProcessing=!1}V1.prototype._write=function(Q,X,J){if(this._writev)this._writev([{chunk:Q,encoding:X}],J);else throw new bC0("_write()")};V1.prototype._writev=null;V1.prototype.end=function(Q,X,J){let Y=this._writableState;if(typeof Q==="function")J=Q,Q=null,X=null;else if(typeof X==="function")J=X,X=null;let Z;if(Q!==null&&Q!==void 0){let q=Uh(this,Q,X);if(q instanceof TC0)Z=q}if(Y.corked)Y.corked=1,this.uncork();if(Z);else if(!Y.errored&&!Y.ending)Y.ending=!0,kz(this,Y,!0),Y.ended=!0;else if(Y.finished)Z=new gC0("end");else if(Y.destroyed)Z=new PJ("end");if(typeof J==="function")if(Z||Y.finished)Q7.nextTick(J,Z);else Y[A9].push(J);return this};function _$(Q){return Q.ending&&!Q.destroyed&&Q.constructed&&Q.length===0&&!Q.errored&&Q.buffered.length===0&&!Q.finished&&!Q.writing&&!Q.errorEmitted&&!Q.closeEmitted}function pC0(Q,X){let J=!1;function Y(Z){if(J){T9(Q,Z!==null&&Z!==void 0?Z:Vh());return}if(J=!0,X.pendingcb--,Z){let q=X[A9].splice(0);for(let $=0;$<q.length;$++)q[$](Z);T9(Q,Z,X.sync)}else if(_$(X))X.prefinished=!0,Q.emit("prefinish"),X.pendingcb++,Q7.nextTick(_z,Q,X)}X.sync=!0,X.pendingcb++;try{Q._final(Y)}catch(Z){Y(Z)}X.sync=!1}function nC0(Q,X){if(!X.prefinished&&!X.finalCalled)if(typeof Q._final==="function"&&!X.destroyed)X.finalCalled=!0,pC0(Q,X);else X.prefinished=!0,Q.emit("prefinish")}function kz(Q,X,J){if(_$(X)){if(nC0(Q,X),X.pendingcb===0){if(J)X.pendingcb++,Q7.nextTick((Y,Z)=>{if(_$(Z))_z(Y,Z);else Z.pendingcb--},Q,X);else if(_$(X))X.pendingcb++,_z(Q,X)}}}function _z(Q,X){X.pendingcb--,X.finished=!0;let J=X[A9].splice(0);for(let Y=0;Y<J.length;Y++)J[Y]();if(Q.emit("finish"),X.autoDestroy){let Y=Q._readableState;if(!Y||Y.autoDestroy&&(Y.endEmitted||Y.readable===!1))Q.destroy()}}AC0(V1.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(Q){if(this._writableState)this._writableState.destroyed=Q}},writable:{__proto__:null,get(){let Q=this._writableState;return!!Q&&Q.writable!==!1&&!Q.destroyed&&!Q.errored&&!Q.ending&&!Q.ended},set(Q){if(this._writableState)this._writableState.writable=!!Q}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let Q=this._writableState;if(!Q)return!1;return!Q.destroyed&&!Q.ending&&Q.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var iC0=v$.destroy;V1.prototype.destroy=function(Q,X){let J=this._writableState;if(!J.destroyed&&(J.bufferedIndex<J.buffered.length||J[A9].length))Q7.nextTick(vz,J);return iC0.call(this,Q,X),this};V1.prototype._undestroy=v$.undestroy;V1.prototype._destroy=function(Q,X){X(Q)};V1.prototype[vC0.captureRejectionSymbol]=function(Q){this.destroy(Q)};var Ez;function Bh(){if(Ez===void 0)Ez={};return Ez}V1.fromWeb=function(Q,X){return Bh().newStreamWritableFromWritableStream(Q,X)};V1.toWeb=function(Q){return Bh().newWritableStreamFromStreamWritable(Q)}});var _h=F((n11,Eh)=>{var yz=t4(),oC0=l("buffer"),{isReadable:rC0,isWritable:sC0,isIterable:Fh,isNodeStream:aC0,isReadableNodeStream:Mh,isWritableNodeStream:Ih,isDuplexNodeStream:tC0,isReadableStream:Ph,isWritableStream:Ch}=u8(),Oh=L4(),{AbortError:Th,codes:{ERR_INVALID_ARG_TYPE:eC0,ERR_INVALID_RETURN_VALUE:jh}}=t1(),{destroyer:_9}=a5(),QO0=c8(),Ah=MJ(),XO0=x$(),{createDeferredPromise:Nh}=V6(),Rh=Cz(),Dh=globalThis.Blob||oC0.Blob,JO0=typeof Dh<"u"?function(X){return X instanceof Dh}:function(X){return!1},YO0=globalThis.AbortController||C9().AbortController,{FunctionPrototypeCall:wh}=Y1();class X7 extends QO0{constructor(Q){super(Q);if((Q===null||Q===void 0?void 0:Q.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((Q===null||Q===void 0?void 0:Q.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}Eh.exports=function Q(X,J){if(tC0(X))return X;if(Mh(X))return E9({readable:X});if(Ih(X))return E9({writable:X});if(aC0(X))return E9({writable:!1,readable:!1});if(Ph(X))return E9({readable:Ah.fromWeb(X)});if(Ch(X))return E9({writable:XO0.fromWeb(X)});if(typeof X==="function"){let{value:Z,write:q,final:$,destroy:H}=ZO0(X);if(Fh(Z))return Rh(X7,Z,{objectMode:!0,write:q,final:$,destroy:H});let K=Z===null||Z===void 0?void 0:Z.then;if(typeof K==="function"){let V,W=wh(K,Z,(G)=>{if(G!=null)throw new jh("nully","body",G)},(G)=>{_9(V,G)});return V=new X7({objectMode:!0,readable:!1,write:q,final(G){$(async()=>{try{await W,yz.nextTick(G,null)}catch(U){yz.nextTick(G,U)}})},destroy:H})}throw new jh("Iterable, AsyncIterable or AsyncFunction",J,Z)}if(JO0(X))return Q(X.arrayBuffer());if(Fh(X))return Rh(X7,X,{objectMode:!0,writable:!1});if(Ph(X===null||X===void 0?void 0:X.readable)&&Ch(X===null||X===void 0?void 0:X.writable))return X7.fromWeb(X);if(typeof(X===null||X===void 0?void 0:X.writable)==="object"||typeof(X===null||X===void 0?void 0:X.readable)==="object"){let Z=X!==null&&X!==void 0&&X.readable?Mh(X===null||X===void 0?void 0:X.readable)?X===null||X===void 0?void 0:X.readable:Q(X.readable):void 0,q=X!==null&&X!==void 0&&X.writable?Ih(X===null||X===void 0?void 0:X.writable)?X===null||X===void 0?void 0:X.writable:Q(X.writable):void 0;return E9({readable:Z,writable:q})}let Y=X===null||X===void 0?void 0:X.then;if(typeof Y==="function"){let Z;return wh(Y,X,(q)=>{if(q!=null)Z.push(q);Z.push(null)},(q)=>{_9(Z,q)}),Z=new X7({objectMode:!0,writable:!1,read(){}})}throw new eC0(J,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],X)};function ZO0(Q){let{promise:X,resolve:J}=Nh(),Y=new YO0,Z=Y.signal;return{value:Q(async function*(){while(!0){let $=X;X=null;let{chunk:H,done:K,cb:V}=await $;if(yz.nextTick(V),K)return;if(Z.aborted)throw new Th(void 0,{cause:Z.reason});({promise:X,resolve:J}=Nh()),yield H}}(),{signal:Z}),write($,H,K){let V=J;J=null,V({chunk:$,done:!1,cb:K})},final($){let H=J;J=null,H({done:!0,cb:$})},destroy($,H){Y.abort(),H($)}}}function E9(Q){let X=Q.readable&&typeof Q.readable.read!=="function"?Ah.wrap(Q.readable):Q.readable,J=Q.writable,Y=!!rC0(X),Z=!!sC0(J),q,$,H,K,V;function W(G){let U=K;if(K=null,U)U(G);else if(G)V.destroy(G)}if(V=new X7({readableObjectMode:!!(X!==null&&X!==void 0&&X.readableObjectMode),writableObjectMode:!!(J!==null&&J!==void 0&&J.writableObjectMode),readable:Y,writable:Z}),Z)Oh(J,(G)=>{if(Z=!1,G)_9(X,G);W(G)}),V._write=function(G,U,z){if(J.write(G,U))z();else q=z},V._final=function(G){J.end(),$=G},J.on("drain",function(){if(q){let G=q;q=null,G()}}),J.on("finish",function(){if($){let G=$;$=null,G()}});if(Y)Oh(X,(G)=>{if(Y=!1,G)_9(X,G);W(G)}),X.on("readable",function(){if(H){let G=H;H=null,G()}}),X.on("end",function(){V.push(null)}),V._read=function(){while(!0){let G=X.read();if(G===null){H=V._read;return}if(!V.push(G))return}};return V._destroy=function(G,U){if(!G&&K!==null)G=new Th;if(H=null,q=null,$=null,K===null)U(G);else K=U,_9(J,G),_9(X,G)},V}});var c8=F((i11,xh)=>{var{ObjectDefineProperties:qO0,ObjectGetOwnPropertyDescriptor:F4,ObjectKeys:$O0,ObjectSetPrototypeOf:Sh}=Y1();xh.exports=P8;var fz=MJ(),s6=x$();Sh(P8.prototype,fz.prototype);Sh(P8,fz);{let Q=$O0(s6.prototype);for(let X=0;X<Q.length;X++){let J=Q[X];if(!P8.prototype[J])P8.prototype[J]=s6.prototype[J]}}function P8(Q){if(!(this instanceof P8))return new P8(Q);if(fz.call(this,Q),s6.call(this,Q),Q){if(this.allowHalfOpen=Q.allowHalfOpen!==!1,Q.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(Q.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}qO0(P8.prototype,{writable:{__proto__:null,...F4(s6.prototype,"writable")},writableHighWaterMark:{__proto__:null,...F4(s6.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...F4(s6.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...F4(s6.prototype,"writableBuffer")},writableLength:{__proto__:null,...F4(s6.prototype,"writableLength")},writableFinished:{__proto__:null,...F4(s6.prototype,"writableFinished")},writableCorked:{__proto__:null,...F4(s6.prototype,"writableCorked")},writableEnded:{__proto__:null,...F4(s6.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...F4(s6.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(Q){if(this._readableState&&this._writableState)this._readableState.destroyed=Q,this._writableState.destroyed=Q}}});var hz;function vh(){if(hz===void 0)hz={};return hz}P8.fromWeb=function(Q,X){return vh().newStreamDuplexFromReadableWritablePair(Q,X)};P8.toWeb=function(Q){return vh().newReadableWritablePairFromDuplex(Q)};var bz;P8.from=function(Q){if(!bz)bz=_h();return bz(Q,"body")}});var mz=F((o11,yh)=>{var{ObjectSetPrototypeOf:kh,Symbol:HO0}=Y1();yh.exports=M4;var{ERR_METHOD_NOT_IMPLEMENTED:KO0}=t1().codes,uz=c8(),{getHighWaterMark:WO0}=BJ();kh(M4.prototype,uz.prototype);kh(M4,uz);var OJ=HO0("kCallback");function M4(Q){if(!(this instanceof M4))return new M4(Q);let X=Q?WO0(this,Q,"readableHighWaterMark",!0):null;if(X===0)Q={...Q,highWaterMark:null,readableHighWaterMark:X,writableHighWaterMark:Q.writableHighWaterMark||0};if(uz.call(this,Q),this._readableState.sync=!1,this[OJ]=null,Q){if(typeof Q.transform==="function")this._transform=Q.transform;if(typeof Q.flush==="function")this._flush=Q.flush}this.on("prefinish",VO0)}function gz(Q){if(typeof this._flush==="function"&&!this.destroyed)this._flush((X,J)=>{if(X){if(Q)Q(X);else this.destroy(X);return}if(J!=null)this.push(J);if(this.push(null),Q)Q()});else if(this.push(null),Q)Q()}function VO0(){if(this._final!==gz)gz.call(this)}M4.prototype._final=gz;M4.prototype._transform=function(Q,X,J){throw new KO0("_transform()")};M4.prototype._write=function(Q,X,J){let Y=this._readableState,Z=this._writableState,q=Y.length;this._transform(Q,X,($,H)=>{if($){J($);return}if(H!=null)this.push(H);if(Z.ended||q===Y.length||Y.length<Y.highWaterMark)J();else this[OJ]=J})};M4.prototype._read=function(){if(this[OJ]){let Q=this[OJ];this[OJ]=null,Q()}}});var cz=F((r11,bh)=>{var{ObjectSetPrototypeOf:hh}=Y1();bh.exports=S9;var dz=mz();hh(S9.prototype,dz.prototype);hh(S9,dz);function S9(Q){if(!(this instanceof S9))return new S9(Q);dz.call(this,Q)}S9.prototype._transform=function(Q,X,J){J(null,Q)}});var b$=F((s11,dh)=>{var jJ=t4(),{ArrayIsArray:GO0,Promise:UO0,SymbolAsyncIterator:zO0,SymbolDispose:BO0}=Y1(),h$=L4(),{once:LO0}=V6(),FO0=a5(),fh=c8(),{aggregateTwoErrors:MO0,codes:{ERR_INVALID_ARG_TYPE:tz,ERR_INVALID_RETURN_VALUE:lz,ERR_MISSING_ARGS:IO0,ERR_STREAM_DESTROYED:PO0,ERR_STREAM_PREMATURE_CLOSE:CO0},AbortError:OO0}=t1(),{validateFunction:jO0,validateAbortSignal:NO0}=j9(),{isIterable:J7,isReadable:pz,isReadableNodeStream:y$,isNodeStream:gh,isTransformStream:v9,isWebStream:RO0,isReadableStream:nz,isReadableFinished:DO0}=u8(),wO0=globalThis.AbortController||C9().AbortController,iz,oz,rz;function uh(Q,X,J){let Y=!1;Q.on("close",()=>{Y=!0});let Z=h$(Q,{readable:X,writable:J},(q)=>{Y=!q});return{destroy:(q)=>{if(Y)return;Y=!0,FO0.destroyer(Q,q||new PO0("pipe"))},cleanup:Z}}function TO0(Q){return jO0(Q[Q.length-1],"streams[stream.length - 1]"),Q.pop()}function sz(Q){if(J7(Q))return Q;else if(y$(Q))return AO0(Q);throw new tz("val",["Readable","Iterable","AsyncIterable"],Q)}async function*AO0(Q){if(!oz)oz=MJ();yield*oz.prototype[zO0].call(Q)}async function k$(Q,X,J,{end:Y}){let Z,q=null,$=(V)=>{if(V)Z=V;if(q){let W=q;q=null,W()}},H=()=>new UO0((V,W)=>{if(Z)W(Z);else q=()=>{if(Z)W(Z);else V()}});X.on("drain",$);let K=h$(X,{readable:!1},$);try{if(X.writableNeedDrain)await H();for await(let V of Q)if(!X.write(V))await H();if(Y)X.end(),await H();J()}catch(V){J(Z!==V?MO0(Z,V):V)}finally{K(),X.off("drain",$)}}async function az(Q,X,J,{end:Y}){if(v9(X))X=X.writable;let Z=X.getWriter();try{for await(let q of Q)await Z.ready,Z.write(q).catch(()=>{});if(await Z.ready,Y)await Z.close();J()}catch(q){try{await Z.abort(q),J(q)}catch($){J($)}}}function EO0(...Q){return mh(Q,LO0(TO0(Q)))}function mh(Q,X,J){if(Q.length===1&&GO0(Q[0]))Q=Q[0];if(Q.length<2)throw new IO0("streams");let Y=new wO0,Z=Y.signal,q=J===null||J===void 0?void 0:J.signal,$=[];NO0(q,"options.signal");function H(){L(new OO0)}rz=rz||V6().addAbortListener;let K;if(q)K=rz(q,H);let V,W,G=[],U=0;function z(D){L(D,--U===0)}function L(D,N){var k;if(D&&(!V||V.code==="ERR_STREAM_PREMATURE_CLOSE"))V=D;if(!V&&!N)return;while(G.length)G.shift()(V);if((k=K)===null||k===void 0||k[BO0](),Y.abort(),N){if(!V)$.forEach((f)=>f());jJ.nextTick(X,V,W)}}let B;for(let D=0;D<Q.length;D++){let N=Q[D],k=D<Q.length-1,f=D>0,S=k||(J===null||J===void 0?void 0:J.end)!==!1,p=D===Q.length-1;if(gh(N)){let T=function(u){if(u&&u.name!=="AbortError"&&u.code!=="ERR_STREAM_PREMATURE_CLOSE")z(u)};var j=T;if(S){let{destroy:u,cleanup:c}=uh(N,k,f);if(G.push(u),pz(N)&&p)$.push(c)}if(N.on("error",T),pz(N)&&p)$.push(()=>{N.removeListener("error",T)})}if(D===0)if(typeof N==="function"){if(B=N({signal:Z}),!J7(B))throw new lz("Iterable, AsyncIterable or Stream","source",B)}else if(J7(N)||y$(N)||v9(N))B=N;else B=fh.from(N);else if(typeof N==="function"){if(v9(B)){var M;B=sz((M=B)===null||M===void 0?void 0:M.readable)}else B=sz(B);if(B=N(B,{signal:Z}),k){if(!J7(B,!0))throw new lz("AsyncIterable",`transform[${D-1}]`,B)}else{var I;if(!iz)iz=cz();let T=new iz({objectMode:!0}),u=(I=B)===null||I===void 0?void 0:I.then;if(typeof u==="function")U++,u.call(B,(I0)=>{if(W=I0,I0!=null)T.write(I0);if(S)T.end();jJ.nextTick(z)},(I0)=>{T.destroy(I0),jJ.nextTick(z,I0)});else if(J7(B,!0))U++,k$(B,T,z,{end:S});else if(nz(B)||v9(B)){let I0=B.readable||B;U++,k$(I0,T,z,{end:S})}else throw new lz("AsyncIterable or Promise","destination",B);B=T;let{destroy:c,cleanup:X0}=uh(B,!1,!0);if(G.push(c),p)$.push(X0)}}else if(gh(N)){if(y$(B)){U+=2;let T=_O0(B,N,z,{end:S});if(pz(N)&&p)$.push(T)}else if(v9(B)||nz(B)){let T=B.readable||B;U++,k$(T,N,z,{end:S})}else if(J7(B))U++,k$(B,N,z,{end:S});else throw new tz("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],B);B=N}else if(RO0(N)){if(y$(B))U++,az(sz(B),N,z,{end:S});else if(nz(B)||J7(B))U++,az(B,N,z,{end:S});else if(v9(B))U++,az(B.readable,N,z,{end:S});else throw new tz("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],B);B=N}else B=fh.from(N)}if(Z!==null&&Z!==void 0&&Z.aborted||q!==null&&q!==void 0&&q.aborted)jJ.nextTick(H);return B}function _O0(Q,X,J,{end:Y}){let Z=!1;if(X.on("close",()=>{if(!Z)J(new CO0)}),Q.pipe(X,{end:!1}),Y){let $=function(){Z=!0,X.end()};var q=$;if(DO0(Q))jJ.nextTick($);else Q.once("end",$)}else J();return h$(Q,{readable:!0,writable:!1},($)=>{let H=Q._readableState;if($&&$.code==="ERR_STREAM_PREMATURE_CLOSE"&&H&&H.ended&&!H.errored&&!H.errorEmitted)Q.once("end",J).once("error",J);else J($)}),h$(X,{readable:!1,writable:!0},J)}dh.exports={pipelineImpl:mh,pipeline:EO0}});var QB=F((a11,oh)=>{var{pipeline:SO0}=b$(),f$=c8(),{destroyer:vO0}=a5(),{isNodeStream:g$,isReadable:ch,isWritable:lh,isWebStream:ez,isTransformStream:Y7,isWritableStream:ph,isReadableStream:nh}=u8(),{AbortError:xO0,codes:{ERR_INVALID_ARG_VALUE:ih,ERR_MISSING_ARGS:kO0}}=t1(),yO0=L4();oh.exports=function(...X){if(X.length===0)throw new kO0("streams");if(X.length===1)return f$.from(X[0]);let J=[...X];if(typeof X[0]==="function")X[0]=f$.from(X[0]);if(typeof X[X.length-1]==="function"){let z=X.length-1;X[z]=f$.from(X[z])}for(let z=0;z<X.length;++z){if(!g$(X[z])&&!ez(X[z]))continue;if(z<X.length-1&&!(ch(X[z])||nh(X[z])||Y7(X[z])))throw new ih(`streams[${z}]`,J[z],"must be readable");if(z>0&&!(lh(X[z])||ph(X[z])||Y7(X[z])))throw new ih(`streams[${z}]`,J[z],"must be writable")}let Y,Z,q,$,H;function K(z){let L=$;if($=null,L)L(z);else if(z)H.destroy(z);else if(!U&&!G)H.destroy()}let V=X[0],W=SO0(X,K),G=!!(lh(V)||ph(V)||Y7(V)),U=!!(ch(W)||nh(W)||Y7(W));if(H=new f$({writableObjectMode:!!(V!==null&&V!==void 0&&V.writableObjectMode),readableObjectMode:!!(W!==null&&W!==void 0&&W.readableObjectMode),writable:G,readable:U}),G){if(g$(V))H._write=function(L,B,M){if(V.write(L,B))M();else Y=M},H._final=function(L){V.end(),Z=L},V.on("drain",function(){if(Y){let L=Y;Y=null,L()}});else if(ez(V)){let B=(Y7(V)?V.writable:V).getWriter();H._write=async function(M,I,j){try{await B.ready,B.write(M).catch(()=>{}),j()}catch(D){j(D)}},H._final=async function(M){try{await B.ready,B.close().catch(()=>{}),Z=M}catch(I){M(I)}}}let z=Y7(W)?W.readable:W;yO0(z,()=>{if(Z){let L=Z;Z=null,L()}})}if(U){if(g$(W))W.on("readable",function(){if(q){let z=q;q=null,z()}}),W.on("end",function(){H.push(null)}),H._read=function(){while(!0){let z=W.read();if(z===null){q=H._read;return}if(!H.push(z))return}};else if(ez(W)){let L=(Y7(W)?W.readable:W).getReader();H._read=async function(){while(!0)try{let{value:B,done:M}=await L.read();if(!H.push(B))return;if(M){H.push(null);return}}catch{return}}}}return H._destroy=function(z,L){if(!z&&$!==null)z=new xO0;if(q=null,Y=null,Z=null,$===null)L(z);else if($=L,g$(W))vO0(W,z)},H}});var qb=F((Wj0,JB)=>{var hO0=globalThis.AbortController||C9().AbortController,{codes:{ERR_INVALID_ARG_VALUE:bO0,ERR_INVALID_ARG_TYPE:NJ,ERR_MISSING_ARGS:fO0,ERR_OUT_OF_RANGE:gO0},AbortError:l8}=t1(),{validateAbortSignal:Z7,validateInteger:rh,validateObject:q7}=j9(),uO0=Y1().Symbol("kWeak"),mO0=Y1().Symbol("kResistStopPropagation"),{finished:dO0}=L4(),cO0=QB(),{addAbortSignalNoValidate:lO0}=zJ(),{isWritable:pO0,isNodeStream:nO0}=u8(),{deprecate:iO0}=V6(),{ArrayPrototypePush:oO0,Boolean:rO0,MathFloor:sh,Number:sO0,NumberIsNaN:aO0,Promise:ah,PromiseReject:th,PromiseResolve:tO0,PromisePrototypeThen:eh,Symbol:Xb}=Y1(),u$=Xb("kEmpty"),Qb=Xb("kEof");function eO0(Q,X){if(X!=null)q7(X,"options");if((X===null||X===void 0?void 0:X.signal)!=null)Z7(X.signal,"options.signal");if(nO0(Q)&&!pO0(Q))throw new bO0("stream",Q,"must be writable");let J=cO0(this,Q);if(X!==null&&X!==void 0&&X.signal)lO0(X.signal,J);return J}function m$(Q,X){if(typeof Q!=="function")throw new NJ("fn",["Function","AsyncFunction"],Q);if(X!=null)q7(X,"options");if((X===null||X===void 0?void 0:X.signal)!=null)Z7(X.signal,"options.signal");let J=1;if((X===null||X===void 0?void 0:X.concurrency)!=null)J=sh(X.concurrency);let Y=J-1;if((X===null||X===void 0?void 0:X.highWaterMark)!=null)Y=sh(X.highWaterMark);return rh(J,"options.concurrency",1),rh(Y,"options.highWaterMark",0),Y+=J,async function*(){let q=V6().AbortSignalAny([X===null||X===void 0?void 0:X.signal].filter(rO0)),$=this,H=[],K={signal:q},V,W,G=!1,U=0;function z(){G=!0,L()}function L(){U-=1,B()}function B(){if(W&&!G&&U<J&&H.length<Y)W(),W=null}async function M(){try{for await(let I of $){if(G)return;if(q.aborted)throw new l8;try{if(I=Q(I,K),I===u$)continue;I=tO0(I)}catch(j){I=th(j)}if(U+=1,eh(I,L,z),H.push(I),V)V(),V=null;if(!G&&(H.length>=Y||U>=J))await new ah((j)=>{W=j})}H.push(Qb)}catch(I){let j=th(I);eh(j,L,z),H.push(j)}finally{if(G=!0,V)V(),V=null}}M();try{while(!0){while(H.length>0){let I=await H[0];if(I===Qb)return;if(q.aborted)throw new l8;if(I!==u$)yield I;H.shift(),B()}await new ah((I)=>{V=I})}}finally{if(G=!0,W)W(),W=null}}.call(this)}function Qj0(Q=void 0){if(Q!=null)q7(Q,"options");if((Q===null||Q===void 0?void 0:Q.signal)!=null)Z7(Q.signal,"options.signal");return async function*(){let J=0;for await(let Z of this){var Y;if(Q!==null&&Q!==void 0&&(Y=Q.signal)!==null&&Y!==void 0&&Y.aborted)throw new l8({cause:Q.signal.reason});yield[J++,Z]}}.call(this)}async function Jb(Q,X=void 0){for await(let J of XB.call(this,Q,X))return!0;return!1}async function Xj0(Q,X=void 0){if(typeof Q!=="function")throw new NJ("fn",["Function","AsyncFunction"],Q);return!await Jb.call(this,async(...J)=>{return!await Q(...J)},X)}async function Jj0(Q,X){for await(let J of XB.call(this,Q,X))return J;return}async function Yj0(Q,X){if(typeof Q!=="function")throw new NJ("fn",["Function","AsyncFunction"],Q);async function J(Y,Z){return await Q(Y,Z),u$}for await(let Y of m$.call(this,J,X));}function XB(Q,X){if(typeof Q!=="function")throw new NJ("fn",["Function","AsyncFunction"],Q);async function J(Y,Z){if(await Q(Y,Z))return Y;return u$}return m$.call(this,J,X)}class Yb extends fO0{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function Zj0(Q,X,J){var Y;if(typeof Q!=="function")throw new NJ("reducer",["Function","AsyncFunction"],Q);if(J!=null)q7(J,"options");if((J===null||J===void 0?void 0:J.signal)!=null)Z7(J.signal,"options.signal");let Z=arguments.length>1;if(J!==null&&J!==void 0&&(Y=J.signal)!==null&&Y!==void 0&&Y.aborted){let V=new l8(void 0,{cause:J.signal.reason});throw this.once("error",()=>{}),await dO0(this.destroy(V)),V}let q=new hO0,$=q.signal;if(J!==null&&J!==void 0&&J.signal){let V={once:!0,[uO0]:this,[mO0]:!0};J.signal.addEventListener("abort",()=>q.abort(),V)}let H=!1;try{for await(let V of this){var K;if(H=!0,J!==null&&J!==void 0&&(K=J.signal)!==null&&K!==void 0&&K.aborted)throw new l8;if(!Z)X=V,Z=!0;else X=await Q(X,V,{signal:$})}if(!H&&!Z)throw new Yb}finally{q.abort()}return X}async function qj0(Q){if(Q!=null)q7(Q,"options");if((Q===null||Q===void 0?void 0:Q.signal)!=null)Z7(Q.signal,"options.signal");let X=[];for await(let Y of this){var J;if(Q!==null&&Q!==void 0&&(J=Q.signal)!==null&&J!==void 0&&J.aborted)throw new l8(void 0,{cause:Q.signal.reason});oO0(X,Y)}return X}function $j0(Q,X){let J=m$.call(this,Q,X);return async function*(){for await(let Z of J)yield*Z}.call(this)}function Zb(Q){if(Q=sO0(Q),aO0(Q))return 0;if(Q<0)throw new gO0("number",">= 0",Q);return Q}function Hj0(Q,X=void 0){if(X!=null)q7(X,"options");if((X===null||X===void 0?void 0:X.signal)!=null)Z7(X.signal,"options.signal");return Q=Zb(Q),async function*(){var Y;if(X!==null&&X!==void 0&&(Y=X.signal)!==null&&Y!==void 0&&Y.aborted)throw new l8;for await(let q of this){var Z;if(X!==null&&X!==void 0&&(Z=X.signal)!==null&&Z!==void 0&&Z.aborted)throw new l8;if(Q--<=0)yield q}}.call(this)}function Kj0(Q,X=void 0){if(X!=null)q7(X,"options");if((X===null||X===void 0?void 0:X.signal)!=null)Z7(X.signal,"options.signal");return Q=Zb(Q),async function*(){var Y;if(X!==null&&X!==void 0&&(Y=X.signal)!==null&&Y!==void 0&&Y.aborted)throw new l8;for await(let q of this){var Z;if(X!==null&&X!==void 0&&(Z=X.signal)!==null&&Z!==void 0&&Z.aborted)throw new l8;if(Q-- >0)yield q;if(Q<=0)return}}.call(this)}Wj0.streamReturningOperators={asIndexedPairs:iO0(Qj0,"readable.asIndexedPairs will be removed in a future version."),drop:Hj0,filter:XB,flatMap:$j0,map:m$,take:Kj0,compose:eO0};Wj0.promiseReturningOperators={every:Xj0,forEach:Yj0,reduce:Zj0,toArray:qj0,some:Jb,find:Jj0}});var YB=F((t11,$b)=>{var{ArrayPrototypePop:Uj0,Promise:zj0}=Y1(),{isIterable:Bj0,isNodeStream:Lj0,isWebStream:Fj0}=u8(),{pipelineImpl:Mj0}=b$(),{finished:Ij0}=L4();ZB();function Pj0(...Q){return new zj0((X,J)=>{let Y,Z,q=Q[Q.length-1];if(q&&typeof q==="object"&&!Lj0(q)&&!Bj0(q)&&!Fj0(q)){let $=Uj0(Q);Y=$.signal,Z=$.end}Mj0(Q,($,H)=>{if($)J($);else X(H)},{signal:Y,end:Z})})}$b.exports={finished:Ij0,pipeline:Pj0}});var ZB=F((e11,Lb)=>{var{Buffer:Cj0}=l("buffer"),{ObjectDefineProperty:I4,ObjectKeys:Wb,ReflectApply:Vb}=Y1(),{promisify:{custom:Gb}}=V6(),{streamReturningOperators:Hb,promiseReturningOperators:Kb}=qb(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Ub}}=t1(),Oj0=QB(),{setDefaultHighWaterMark:jj0,getDefaultHighWaterMark:Nj0}=BJ(),{pipeline:zb}=b$(),{destroyer:Rj0}=a5(),Bb=L4(),qB=YB(),RJ=u8(),X1=Lb.exports=C$().Stream;X1.isDestroyed=RJ.isDestroyed;X1.isDisturbed=RJ.isDisturbed;X1.isErrored=RJ.isErrored;X1.isReadable=RJ.isReadable;X1.isWritable=RJ.isWritable;X1.Readable=MJ();for(let Q of Wb(Hb)){let J=function(...Y){if(new.target)throw Ub();return X1.Readable.from(Vb(X,this,Y))},X=Hb[Q];I4(J,"name",{__proto__:null,value:X.name}),I4(J,"length",{__proto__:null,value:X.length}),I4(X1.Readable.prototype,Q,{__proto__:null,value:J,enumerable:!1,configurable:!0,writable:!0})}for(let Q of Wb(Kb)){let J=function(...Y){if(new.target)throw Ub();return Vb(X,this,Y)},X=Kb[Q];I4(J,"name",{__proto__:null,value:X.name}),I4(J,"length",{__proto__:null,value:X.length}),I4(X1.Readable.prototype,Q,{__proto__:null,value:J,enumerable:!1,configurable:!0,writable:!0})}X1.Writable=x$();X1.Duplex=c8();X1.Transform=mz();X1.PassThrough=cz();X1.pipeline=zb;var{addAbortSignal:Dj0}=zJ();X1.addAbortSignal=Dj0;X1.finished=Bb;X1.destroy=Rj0;X1.compose=Oj0;X1.setDefaultHighWaterMark=jj0;X1.getDefaultHighWaterMark=Nj0;I4(X1,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return qB}});I4(zb,Gb,{__proto__:null,enumerable:!0,get(){return qB.pipeline}});I4(Bb,Gb,{__proto__:null,enumerable:!0,get(){return qB.finished}});X1.Stream=X1;X1._isUint8Array=function(X){return X instanceof Uint8Array};X1._uint8ArrayToBuffer=function(X){return Cj0.from(X.buffer,X.byteOffset,X.byteLength)}});var $7=F((Q61,T0)=>{var E1=l("stream");if(E1&&process.env.READABLE_STREAM==="disable"){let Q=E1.promises;T0.exports._uint8ArrayToBuffer=E1._uint8ArrayToBuffer,T0.exports._isUint8Array=E1._isUint8Array,T0.exports.isDisturbed=E1.isDisturbed,T0.exports.isErrored=E1.isErrored,T0.exports.isReadable=E1.isReadable,T0.exports.Readable=E1.Readable,T0.exports.Writable=E1.Writable,T0.exports.Duplex=E1.Duplex,T0.exports.Transform=E1.Transform,T0.exports.PassThrough=E1.PassThrough,T0.exports.addAbortSignal=E1.addAbortSignal,T0.exports.finished=E1.finished,T0.exports.destroy=E1.destroy,T0.exports.pipeline=E1.pipeline,T0.exports.compose=E1.compose,Object.defineProperty(E1,"promises",{configurable:!0,enumerable:!0,get(){return Q}}),T0.exports.Stream=E1.Stream}else{let Q=ZB(),X=YB(),J=Q.Readable.destroy;T0.exports=Q.Readable,T0.exports._uint8ArrayToBuffer=Q._uint8ArrayToBuffer,T0.exports._isUint8Array=Q._isUint8Array,T0.exports.isDisturbed=Q.isDisturbed,T0.exports.isErrored=Q.isErrored,T0.exports.isReadable=Q.isReadable,T0.exports.Readable=Q.Readable,T0.exports.Writable=Q.Writable,T0.exports.Duplex=Q.Duplex,T0.exports.Transform=Q.Transform,T0.exports.PassThrough=Q.PassThrough,T0.exports.addAbortSignal=Q.addAbortSignal,T0.exports.finished=Q.finished,T0.exports.destroy=Q.destroy,T0.exports.destroy=J,T0.exports.pipeline=Q.pipeline,T0.exports.compose=Q.compose,Object.defineProperty(Q,"promises",{configurable:!0,enumerable:!0,get(){return X}}),T0.exports.Stream=Q.Stream}T0.exports.default=T0.exports});var Mb=F((M61,Fb)=>{function wj0(Q,X){var J=-1,Y=X.length,Z=Q.length;while(++J<Y)Q[Z+J]=X[J];return Q}Fb.exports=wj0});var Ob=F((I61,Cb)=>{var Ib=Y$(),Tj0=lU(),Aj0=pU(),Pb=Ib?Ib.isConcatSpreadable:void 0;function Ej0(Q){return Aj0(Q)||Tj0(Q)||!!(Pb&&Q&&Q[Pb])}Cb.exports=Ej0});var d$=F((P61,Nb)=>{var _j0=Mb(),Sj0=Ob();function jb(Q,X,J,Y,Z){var q=-1,$=Q.length;J||(J=Sj0),Z||(Z=[]);while(++q<$){var H=Q[q];if(X>0&&J(H))if(X>1)jb(H,X-1,J,Y,Z);else _j0(Z,H);else if(!Y)Z[Z.length]=H}return Z}Nb.exports=jb});var Db=F((C61,Rb)=>{var vj0=d$();function xj0(Q){var X=Q==null?0:Q.length;return X?vj0(Q,1):[]}Rb.exports=xj0});var DJ=F((O61,wb)=>{var kj0=KJ(),yj0=kj0(Object,"create");wb.exports=yj0});var Eb=F((j61,Ab)=>{var Tb=DJ();function hj0(){this.__data__=Tb?Tb(null):{},this.size=0}Ab.exports=hj0});var Sb=F((N61,_b)=>{function bj0(Q){var X=this.has(Q)&&delete this.__data__[Q];return this.size-=X?1:0,X}_b.exports=bj0});var xb=F((R61,vb)=>{var fj0=DJ(),gj0="__lodash_hash_undefined__",uj0=Object.prototype,mj0=uj0.hasOwnProperty;function dj0(Q){var X=this.__data__;if(fj0){var J=X[Q];return J===gj0?void 0:J}return mj0.call(X,Q)?X[Q]:void 0}vb.exports=dj0});var yb=F((D61,kb)=>{var cj0=DJ(),lj0=Object.prototype,pj0=lj0.hasOwnProperty;function nj0(Q){var X=this.__data__;return cj0?X[Q]!==void 0:pj0.call(X,Q)}kb.exports=nj0});var bb=F((w61,hb)=>{var ij0=DJ(),oj0="__lodash_hash_undefined__";function rj0(Q,X){var J=this.__data__;return this.size+=this.has(Q)?0:1,J[Q]=ij0&&X===void 0?oj0:X,this}hb.exports=rj0});var gb=F((T61,fb)=>{var sj0=Eb(),aj0=Sb(),tj0=xb(),ej0=yb(),QN0=bb();function x9(Q){var X=-1,J=Q==null?0:Q.length;this.clear();while(++X<J){var Y=Q[X];this.set(Y[0],Y[1])}}x9.prototype.clear=sj0;x9.prototype.delete=aj0;x9.prototype.get=tj0;x9.prototype.has=ej0;x9.prototype.set=QN0;fb.exports=x9});var mb=F((A61,ub)=>{function XN0(){this.__data__=[],this.size=0}ub.exports=XN0});var wJ=F((E61,db)=>{var JN0=q$();function YN0(Q,X){var J=Q.length;while(J--)if(JN0(Q[J][0],X))return J;return-1}db.exports=YN0});var lb=F((_61,cb)=>{var ZN0=wJ(),qN0=Array.prototype,$N0=qN0.splice;function HN0(Q){var X=this.__data__,J=ZN0(X,Q);if(J<0)return!1;var Y=X.length-1;if(J==Y)X.pop();else $N0.call(X,J,1);return--this.size,!0}cb.exports=HN0});var nb=F((S61,pb)=>{var KN0=wJ();function WN0(Q){var X=this.__data__,J=KN0(X,Q);return J<0?void 0:X[J][1]}pb.exports=WN0});var ob=F((v61,ib)=>{var VN0=wJ();function GN0(Q){return VN0(this.__data__,Q)>-1}ib.exports=GN0});var sb=F((x61,rb)=>{var UN0=wJ();function zN0(Q,X){var J=this.__data__,Y=UN0(J,Q);if(Y<0)++this.size,J.push([Q,X]);else J[Y][1]=X;return this}rb.exports=zN0});var tb=F((k61,ab)=>{var BN0=mb(),LN0=lb(),FN0=nb(),MN0=ob(),IN0=sb();function k9(Q){var X=-1,J=Q==null?0:Q.length;this.clear();while(++X<J){var Y=Q[X];this.set(Y[0],Y[1])}}k9.prototype.clear=BN0;k9.prototype.delete=LN0;k9.prototype.get=FN0;k9.prototype.has=MN0;k9.prototype.set=IN0;ab.exports=k9});var Qf=F((y61,eb)=>{var PN0=KJ(),CN0=L9(),ON0=PN0(CN0,"Map");eb.exports=ON0});var Yf=F((h61,Jf)=>{var Xf=gb(),jN0=tb(),NN0=Qf();function RN0(){this.size=0,this.__data__={hash:new Xf,map:new(NN0||jN0),string:new Xf}}Jf.exports=RN0});var qf=F((b61,Zf)=>{function DN0(Q){var X=typeof Q;return X=="string"||X=="number"||X=="symbol"||X=="boolean"?Q!=="__proto__":Q===null}Zf.exports=DN0});var TJ=F((f61,$f)=>{var wN0=qf();function TN0(Q,X){var J=Q.__data__;return wN0(X)?J[typeof X=="string"?"string":"hash"]:J.map}$f.exports=TN0});var Kf=F((g61,Hf)=>{var AN0=TJ();function EN0(Q){var X=AN0(this,Q).delete(Q);return this.size-=X?1:0,X}Hf.exports=EN0});var Vf=F((u61,Wf)=>{var _N0=TJ();function SN0(Q){return _N0(this,Q).get(Q)}Wf.exports=SN0});var Uf=F((m61,Gf)=>{var vN0=TJ();function xN0(Q){return vN0(this,Q).has(Q)}Gf.exports=xN0});var Bf=F((d61,zf)=>{var kN0=TJ();function yN0(Q,X){var J=kN0(this,Q),Y=J.size;return J.set(Q,X),this.size+=J.size==Y?0:1,this}zf.exports=yN0});var Ff=F((c61,Lf)=>{var hN0=Yf(),bN0=Kf(),fN0=Vf(),gN0=Uf(),uN0=Bf();function y9(Q){var X=-1,J=Q==null?0:Q.length;this.clear();while(++X<J){var Y=Q[X];this.set(Y[0],Y[1])}}y9.prototype.clear=hN0;y9.prototype.delete=bN0;y9.prototype.get=fN0;y9.prototype.has=gN0;y9.prototype.set=uN0;Lf.exports=y9});var If=F((l61,Mf)=>{var mN0="__lodash_hash_undefined__";function dN0(Q){return this.__data__.set(Q,mN0),this}Mf.exports=dN0});var Cf=F((p61,Pf)=>{function cN0(Q){return this.__data__.has(Q)}Pf.exports=cN0});var $B=F((n61,Of)=>{var lN0=Ff(),pN0=If(),nN0=Cf();function c$(Q){var X=-1,J=Q==null?0:Q.length;this.__data__=new lN0;while(++X<J)this.add(Q[X])}c$.prototype.add=c$.prototype.push=pN0;c$.prototype.has=nN0;Of.exports=c$});var Nf=F((i61,jf)=>{function iN0(Q,X,J,Y){var Z=Q.length,q=J+(Y?1:-1);while(Y?q--:++q<Z)if(X(Q[q],q,Q))return q;return-1}jf.exports=iN0});var Df=F((o61,Rf)=>{function oN0(Q){return Q!==Q}Rf.exports=oN0});var Tf=F((r61,wf)=>{function rN0(Q,X,J){var Y=J-1,Z=Q.length;while(++Y<Z)if(Q[Y]===X)return Y;return-1}wf.exports=rN0});var Ef=F((s61,Af)=>{var sN0=Nf(),aN0=Df(),tN0=Tf();function eN0(Q,X,J){return X===X?tN0(Q,X,J):sN0(Q,aN0,J)}Af.exports=eN0});var HB=F((a61,_f)=>{var QR0=Ef();function XR0(Q,X){var J=Q==null?0:Q.length;return!!J&&QR0(Q,X,0)>-1}_f.exports=XR0});var KB=F((t61,Sf)=>{function JR0(Q,X,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(X,Q[Y]))return!0;return!1}Sf.exports=JR0});var xf=F((e61,vf)=>{function YR0(Q,X){var J=-1,Y=Q==null?0:Q.length,Z=Array(Y);while(++J<Y)Z[J]=X(Q[J],J,Q);return Z}vf.exports=YR0});var WB=F((Q81,kf)=>{function ZR0(Q,X){return Q.has(X)}kf.exports=ZR0});var hf=F((X81,yf)=>{var qR0=$B(),$R0=HB(),HR0=KB(),KR0=xf(),WR0=nU(),VR0=WB(),GR0=200;function UR0(Q,X,J,Y){var Z=-1,q=$R0,$=!0,H=Q.length,K=[],V=X.length;if(!H)return K;if(J)X=KR0(X,WR0(J));if(Y)q=HR0,$=!1;else if(X.length>=GR0)q=VR0,$=!1,X=new qR0(X);Q:while(++Z<H){var W=Q[Z],G=J==null?W:J(W);if(W=Y||W!==0?W:0,$&&G===G){var U=V;while(U--)if(X[U]===G)continue Q;K.push(W)}else if(!q(X,G,Y))K.push(W)}return K}yf.exports=UR0});var VB=F((J81,bf)=>{var zR0=$$(),BR0=F9();function LR0(Q){return BR0(Q)&&zR0(Q)}bf.exports=LR0});var uf=F((Y81,gf)=>{var FR0=hf(),MR0=d$(),IR0=Z$(),ff=VB(),PR0=IR0(function(Q,X){return ff(Q)?FR0(Q,MR0(X,1,ff,!0)):[]});gf.exports=PR0});var df=F((Z81,mf)=>{var CR0=KJ(),OR0=L9(),jR0=CR0(OR0,"Set");mf.exports=jR0});var lf=F((q81,cf)=>{function NR0(){}cf.exports=NR0});var GB=F(($81,pf)=>{function RR0(Q){var X=-1,J=Array(Q.size);return Q.forEach(function(Y){J[++X]=Y}),J}pf.exports=RR0});var of=F((H81,nf)=>{var UB=df(),DR0=lf(),wR0=GB(),TR0=1/0,AR0=!(UB&&1/wR0(new UB([,-0]))[1]==TR0)?DR0:function(Q){return new UB(Q)};nf.exports=AR0});var sf=F((K81,rf)=>{var ER0=$B(),_R0=HB(),SR0=KB(),vR0=WB(),xR0=of(),kR0=GB(),yR0=200;function hR0(Q,X,J){var Y=-1,Z=_R0,q=Q.length,$=!0,H=[],K=H;if(J)$=!1,Z=SR0;else if(q>=yR0){var V=X?null:xR0(Q);if(V)return kR0(V);$=!1,Z=vR0,K=new ER0}else K=X?[]:H;Q:while(++Y<q){var W=Q[Y],G=X?X(W):W;if(W=J||W!==0?W:0,$&&G===G){var U=K.length;while(U--)if(K[U]===G)continue Q;if(X)K.push(G);H.push(W)}else if(!Z(K,G,J)){if(K!==H)K.push(G);H.push(W)}}return H}rf.exports=hR0});var tf=F((W81,af)=>{var bR0=d$(),fR0=Z$(),gR0=sf(),uR0=VB(),mR0=fR0(function(Q){return gR0(bR0(Q,1,uR0,!0))});af.exports=mR0});var Qg=F((V81,ef)=>{function dR0(Q,X){return function(J){return Q(X(J))}}ef.exports=dR0});var Jg=F((G81,Xg)=>{var cR0=Qg(),lR0=cR0(Object.getPrototypeOf,Object);Xg.exports=lR0});var qg=F((U81,Zg)=>{var pR0=$J(),nR0=Jg(),iR0=F9(),oR0="[object Object]",rR0=Function.prototype,sR0=Object.prototype,Yg=rR0.toString,aR0=sR0.hasOwnProperty,tR0=Yg.call(Object);function eR0(Q){if(!iR0(Q)||pR0(Q)!=oR0)return!1;var X=nR0(Q);if(X===null)return!0;var J=aR0.call(X,"constructor")&&X.constructor;return typeof J=="function"&&J instanceof J&&Yg.call(J)==tR0}Zg.exports=eR0});var Vg=F((z81,Wg)=>{Wg.exports=Hg;function Hg(Q,X,J){if(Q instanceof RegExp)Q=$g(Q,J);if(X instanceof RegExp)X=$g(X,J);var Y=Kg(Q,X,J);return Y&&{start:Y[0],end:Y[1],pre:J.slice(0,Y[0]),body:J.slice(Y[0]+Q.length,Y[1]),post:J.slice(Y[1]+X.length)}}function $g(Q,X){var J=X.match(Q);return J?J[0]:null}Hg.range=Kg;function Kg(Q,X,J){var Y,Z,q,$,H,K=J.indexOf(Q),V=J.indexOf(X,K+1),W=K;if(K>=0&&V>0){if(Q===X)return[K,V];Y=[],q=J.length;while(W>=0&&!H){if(W==K)Y.push(W),K=J.indexOf(Q,W+1);else if(Y.length==1)H=[Y.pop(),V];else{if(Z=Y.pop(),Z<q)q=Z,$=V;V=J.indexOf(X,W+1)}W=K<V&&K>=0?K:V}if(Y.length)H=[q,$]}return H}});var Ig=F((B81,Mg)=>{var Gg=Vg();Mg.exports=ZD0;var Ug="\x00SLASH"+Math.random()+"\x00",zg="\x00OPEN"+Math.random()+"\x00",LB="\x00CLOSE"+Math.random()+"\x00",Bg="\x00COMMA"+Math.random()+"\x00",Lg="\x00PERIOD"+Math.random()+"\x00",QD0=1e5,XD0=4000000;function zB(Q){return parseInt(Q,10)==Q?parseInt(Q,10):Q.charCodeAt(0)}function JD0(Q){return Q.split("\\\\").join(Ug).split("\\{").join(zg).split("\\}").join(LB).split("\\,").join(Bg).split("\\.").join(Lg)}function YD0(Q){return Q.split(Ug).join("\\").split(zg).join("{").split(LB).join("}").split(Bg).join(",").split(Lg).join(".")}function Fg(Q){if(!Q)return[""];var X=[],J=Gg("{","}",Q);if(!J)return Q.split(",");var{pre:Y,body:Z,post:q}=J,$=Y.split(",");$[$.length-1]+="{"+Z+"}";var H=Fg(q);if(q.length)$[$.length-1]+=H.shift(),$.push.apply($,H);return X.push.apply(X,$),X}function ZD0(Q,X){if(!Q)return[];X=X||{};var J=X.max==null?QD0:X.max,Y=X.maxLength==null?XD0:X.maxLength;if(Q.substr(0,2)==="{}")Q="\\{\\}"+Q.substr(2);return BB(JD0(Q),J,Y,!0).map(YD0)}function qD0(Q){return"{"+Q+"}"}function $D0(Q){return/^-?0\d/.test(Q)}function HD0(Q,X){return Q<=X}function KD0(Q,X){return Q>=X}function AJ(Q,X,J,Y,Z,q){var $=[],H=0;for(var K=0;K<Q.length;K++)for(var V=0;V<J.length;V++){if($.length>=Y)return $;var W=Q[K]+X+J[V];if(q&&!W)continue;if(H+W.length>Z)return $;$.push(W),H+=W.length}return $}function WD0(Q,X,J,Y){var Z=Q.split(/\.\./),q=[];if(Z[0]===void 0||Z[1]===void 0)return q;var $=zB(Z[0]),H=zB(Z[1]),K=Math.max(Z[0].length,Z[1].length),V=Z.length===3&&Z[2]!==void 0?Math.max(Math.abs(zB(Z[2])),1):1,W=HD0,G=H<$;if(G)V*=-1,W=KD0;var U=Z.some($D0),z=0;for(var L=$;W(L,H)&&q.length<J;L+=V){var B;if(X){if(B=String.fromCharCode(L),B==="\\")B=""}else if(B=String(L),U){var M=K-B.length;if(M>0){var I=Array(M+1).join("0");if(L<0)B="-"+I+B.slice(1);else B=I+B}}if(z+B.length>Y)break;q.push(B),z+=B.length}return q}function BB(Q,X,J,Y){var Z=[""],q=!1,$=!0;for(;;){let N=Gg("{","}",Q);if(!N)return AJ(Z,Q,[""],X,J,q);let k=N.pre;if(/\$$/.test(k)){if(Z=AJ(Z,k+"{"+N.body+"}",[""],X,J,q&&!N.post.length),$=!1,!N.post.length)break;Q=N.post;continue}var H=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(N.body),K=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(N.body),V=H||K,W=N.body.indexOf(",")>=0;if(!V&&!W){if(N.post.match(/,(?!,).*\}/)){Q=N.pre+"{"+N.body+LB+N.post,Y=!0;continue}return AJ(Z,k+"{"+N.body+"}"+N.post,[""],X,J,q)}if($)q=Y&&!V,$=!1;var G;if(V)G=WD0(N.body,K,X,J);else{var U=Fg(N.body);if(U.length===1&&U[0]!==void 0){if(U=BB(U[0],X,J,!1).map(qD0),U.length===1){if(Z=AJ(Z,k+U[0],[""],X,J,q&&!N.post.length),!N.post.length)break;Q=N.post;continue}}var z=q&&!N.post.length&&!k;for(var L=0;z&&L<Z.length;L++)if(Z[L])z=!1;G=[];var B=0;Q:for(var M=0;M<U.length;M++){var I=BB(U[M],X,J,!1);for(var j=0;j<I.length;j++){var D=I[j];if(z&&!D)continue;if(G.length>=X||B+D.length>J)break Q;G.push(D),B+=D.length}}}if(Z=AJ(Z,k,G,X,J,q&&!N.post.length),!N.post.length)break;Q=N.post}return Z}});var Og=F((Pg)=>{Object.defineProperty(Pg,"__esModule",{value:!0});Pg.assertValidPattern=void 0;var VD0=65536,GD0=(Q)=>{if(typeof Q!=="string")throw TypeError("invalid pattern");if(Q.length>VD0)throw TypeError("pattern is too long")};Pg.assertValidPattern=GD0});var Dg=F((Ng)=>{Object.defineProperty(Ng,"__esModule",{value:!0});Ng.parseClass=void 0;var UD0={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},EJ=(Q)=>Q.replace(/[[\]\\-]/g,"\\$&"),zD0=(Q)=>Q.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),jg=(Q)=>Q.join(""),BD0=(Q,X)=>{let J=X;if(Q.charAt(J)!=="[")throw Error("not in a brace expression");let Y=[],Z=[],q=J+1,$=!1,H=!1,K=!1,V=!1,W=J,G="";Q:while(q<Q.length){let B=Q.charAt(q);if((B==="!"||B==="^")&&q===J+1){V=!0,q++;continue}if(B==="]"&&$&&!K){W=q+1;break}if($=!0,B==="\\"){if(!K){K=!0,q++;continue}}if(B==="["&&!K){for(let[M,[I,j,D]]of Object.entries(UD0))if(Q.startsWith(M,q)){if(G)return["$.",!1,Q.length-J,!0];if(q+=M.length,D)Z.push(I);else Y.push(I);H=H||j;continue Q}}if(K=!1,G){if(B>G)Y.push(EJ(G)+"-"+EJ(B));else if(B===G)Y.push(EJ(B));G="",q++;continue}if(Q.startsWith("-]",q+1)){Y.push(EJ(B+"-")),q+=2;continue}if(Q.startsWith("-",q+1)){G=B,q+=2;continue}Y.push(EJ(B)),q++}if(W<q)return["",!1,0,!1];if(!Y.length&&!Z.length)return["$.",!1,Q.length-J,!0];if(Z.length===0&&Y.length===1&&/^\\?.$/.test(Y[0])&&!V){let B=Y[0].length===2?Y[0].slice(-1):Y[0];return[zD0(B),!1,W-J,!1]}let U="["+(V?"^":"")+jg(Y)+"]",z="["+(V?"":"^")+jg(Z)+"]";return[Y.length&&Z.length?"("+U+"|"+z+")":Y.length?U:z,H,W-J,!0]};Ng.parseClass=BD0});var l$=F((wg)=>{Object.defineProperty(wg,"__esModule",{value:!0});wg.unescape=void 0;var LD0=(Q,{windowsPathsNoEscape:X=!1}={})=>{return X?Q.replace(/\[([^\/\\])\]/g,"$1"):Q.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")};wg.unescape=LD0});var PB=F((vg)=>{var N6;Object.defineProperty(vg,"__esModule",{value:!0});vg.AST=void 0;var FD0=Dg(),p$=l$(),MD0=new Set(["!","?","+","*","@"]),FB=(Q)=>MD0.has(Q),Ag=(Q)=>FB(Q.type),ID0=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),PD0=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),CD0=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Eg=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),OD0="(?!(?:^|/)\\.\\.?(?:$|/))",n$="(?!\\.)",jD0=new Set(["[","."]),ND0=new Set(["..","."]),RD0=new Set("().*{}+?[]^$\\!"),DD0=(Q)=>Q.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),MB="[^/]",_g=MB+"*?",Sg=MB+"+?";class IB{type;#X;#Y;#J=!1;#Q=[];#Z;#V;#W;#G=!1;#K;#H;#q=!1;constructor(Q,X,J={}){if(this.type=Q,Q)this.#Y=!0;if(this.#Z=X,this.#X=this.#Z?this.#Z.#X:this,this.#K=this.#X===this?J:this.#X.#K,this.#W=this.#X===this?[]:this.#X.#W,Q==="!"&&!this.#X.#G)this.#W.push(this);this.#V=this.#Z?this.#Z.#Q.length:0}get hasMagic(){if(this.#Y!==void 0)return this.#Y;for(let Q of this.#Q){if(typeof Q==="string")continue;if(Q.type||Q.hasMagic)return this.#Y=!0}return this.#Y}toString(){if(this.#H!==void 0)return this.#H;if(!this.type)return this.#H=this.#Q.map((Q)=>String(Q)).join("");else return this.#H=this.type+"("+this.#Q.map((Q)=>String(Q)).join("|")+")"}#C(){if(this!==this.#X)throw Error("should only call on root");if(this.#G)return this;this.toString(),this.#G=!0;let Q;while(Q=this.#W.pop()){if(Q.type!=="!")continue;let X=Q,J=X.#Z;while(J){for(let Y=X.#V+1;!J.type&&Y<J.#Q.length;Y++)for(let Z of Q.#Q){if(typeof Z==="string")throw Error("string part in extglob AST??");Z.copyIn(J.#Q[Y])}X=J,J=X.#Z}}return this}push(...Q){for(let X of Q){if(X==="")continue;if(typeof X!=="string"&&!(X instanceof N6&&X.#Z===this))throw Error("invalid part: "+X);this.#Q.push(X)}}toJSON(){let Q=this.type===null?this.#Q.slice().map((X)=>typeof X==="string"?X:X.toJSON()):[this.type,...this.#Q.map((X)=>X.toJSON())];if(this.isStart()&&!this.type)Q.unshift([]);if(this.isEnd()&&(this===this.#X||this.#X.#G&&this.#Z?.type==="!"))Q.push({});return Q}isStart(){if(this.#X===this)return!0;if(!this.#Z?.isStart())return!1;if(this.#V===0)return!0;let Q=this.#Z;for(let X=0;X<this.#V;X++){let J=Q.#Q[X];if(!(J instanceof N6&&J.type==="!"))return!1}return!0}isEnd(){if(this.#X===this)return!0;if(this.#Z?.type==="!")return!0;if(!this.#Z?.isEnd())return!1;if(!this.type)return this.#Z?.isEnd();let Q=this.#Z?this.#Z.#Q.length:0;return this.#V===Q-1}copyIn(Q){if(typeof Q==="string")this.push(Q);else this.push(Q.clone(this))}clone(Q){let X=new N6(this.type,Q);for(let J of this.#Q)X.copyIn(J);return X}static#F(Q,X,J,Y,Z){let q=Y.maxExtglobRecursion??2,$=!1,H=!1,K=-1,V=!1;if(X.type===null){let L=J,B="";while(L<Q.length){let M=Q.charAt(L++);if($||M==="\\"){$=!$,B+=M;continue}if(H){if(L===K+1){if(M==="^"||M==="!")V=!0}else if(M==="]"&&!(L===K+2&&V))H=!1;B+=M;continue}else if(M==="["){H=!0,K=L,V=!1,B+=M;continue}if(!Y.noext&&FB(M)&&Q.charAt(L)==="("&&Z<=q){X.push(B),B="";let j=new N6(M,X);L=N6.#F(Q,j,L,Y,Z+1),X.push(j);continue}B+=M}return X.push(B),L}let W=J+1,G=new N6(null,X),U=[],z="";while(W<Q.length){let L=Q.charAt(W++);if($||L==="\\"){$=!$,z+=L;continue}if(H){if(W===K+1){if(L==="^"||L==="!")V=!0}else if(L==="]"&&!(W===K+2&&V))H=!1;z+=L;continue}else if(L==="["){H=!0,K=W,V=!1,z+=L;continue}if(FB(L)&&Q.charAt(W)==="("&&(Z<=q||X&&X.#O(L))){let M=X&&X.#O(L)?0:1;G.push(z),z="";let I=new N6(L,G);G.push(I),W=N6.#F(Q,I,W,Y,Z+M);continue}if(L==="|"){G.push(z),z="",U.push(G),G=new N6(null,X);continue}if(L===")"){if(z===""&&X.#Q.length===0)X.#q=!0;return G.push(z),z="",X.push(...U,G),W}z+=L}return X.type=null,X.#Y=void 0,X.#Q=[Q.substring(J-1)],W}#I(Q){return this.#B(Q,PD0)}#B(Q,X=ID0){if(!Q||typeof Q!=="object"||Q.type!==null||Q.#Q.length!==1||this.type===null)return!1;let J=Q.#Q[0];if(!J||typeof J!=="object"||J.type===null)return!1;return this.#O(J.type,X)}#O(Q,X=CD0){return!!X.get(this.type)?.includes(Q)}#L(Q,X){let J=Q.#Q[0],Y=new N6(null,J,this.options);Y.#Q.push(""),J.push(Y),this.#j(Q,X)}#j(Q,X){let J=Q.#Q[0];this.#Q.splice(X,1,...J.#Q);for(let Y of J.#Q)if(typeof Y==="object")Y.#Z=this;this.#H=void 0}#D(Q){return!!Eg.get(this.type)?.has(Q)}#P(Q){if(!Q||typeof Q!=="object"||Q.type!==null||Q.#Q.length!==1||this.type===null||this.#Q.length!==1)return!1;let X=Q.#Q[0];if(!X||typeof X!=="object"||X.type===null)return!1;return this.#D(X.type)}#N(Q){let X=Eg.get(this.type),J=Q.#Q[0],Y=X?.get(J.type);if(!Y)return!1;this.#Q=J.#Q;for(let Z of this.#Q)if(typeof Z==="object")Z.#Z=this;this.type=Y,this.#H=void 0,this.#q=!1}#M(){if(!Ag(this)){for(let Q of this.#Q)if(typeof Q==="object")Q.#M()}else{let Q=0,X=!1;do{X=!0;for(let J=0;J<this.#Q.length;J++){let Y=this.#Q[J];if(typeof Y==="object"){if(Y.#M(),this.#B(Y))X=!1,this.#j(Y,J);else if(this.#I(Y))X=!1,this.#L(Y,J);else if(this.#P(Y))X=!1,this.#N(Y)}}}while(!X&&++Q<10)}this.#H=void 0}static fromGlob(Q,X={}){let J=new N6(null,void 0,X);return N6.#F(Q,J,0,X,0),J}toMMPattern(){if(this!==this.#X)return this.#X.toMMPattern();let Q=this.toString(),[X,J,Y,Z]=this.toRegExpSource();if(!(Y||this.#Y||this.#K.nocase&&!this.#K.nocaseMagicOnly&&Q.toUpperCase()!==Q.toLowerCase()))return J;let $=(this.#K.nocase?"i":"")+(Z?"u":"");return Object.assign(new RegExp(`^${X}$`,$),{_src:X,_glob:Q})}get options(){return this.#K}toRegExpSource(Q){let X=Q??!!this.#K.dot;if(this.#X===this)this.#M(),this.#C();if(!Ag(this)){let H=this.isStart()&&this.isEnd(),K=this.#Q.map((U)=>{let[z,L,B,M]=typeof U==="string"?N6.#w(U,this.#Y,H):U.toRegExpSource(Q);return this.#Y=this.#Y||B,this.#J=this.#J||M,z}).join(""),V="";if(this.isStart()){if(typeof this.#Q[0]==="string"){if(!(this.#Q.length===1&&ND0.has(this.#Q[0]))){let z=jD0,L=X&&z.has(K.charAt(0))||K.startsWith("\\.")&&z.has(K.charAt(2))||K.startsWith("\\.\\.")&&z.has(K.charAt(4)),B=!X&&!Q&&z.has(K.charAt(0));V=L?OD0:B?n$:""}}}let W="";if(this.isEnd()&&this.#X.#G&&this.#Z?.type==="!")W="(?:$|\\/)";return[V+K+W,(0,p$.unescape)(K),this.#Y=!!this.#Y,this.#J]}let J=this.type==="*"||this.type==="+",Y=this.type==="!"?"(?:(?!(?:":"(?:",Z=this.#z(X);if(this.isStart()&&this.isEnd()&&!Z&&this.type!=="!"){let H=this.toString(),K=this;return K.#Q=[H],K.type=null,K.#Y=void 0,[H,(0,p$.unescape)(this.toString()),!1,!1]}let q=!J||Q||X||!n$?"":this.#z(!0);if(q===Z)q="";if(q)Z=`(?:${Z})(?:${q})*?`;let $="";if(this.type==="!"&&this.#q)$=(this.isStart()&&!X?n$:"")+Sg;else{let H=this.type==="!"?"))"+(this.isStart()&&!X&&!Q?n$:"")+_g+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&q?")":this.type==="*"&&q?")?":`)${this.type}`;$=Y+Z+H}return[$,(0,p$.unescape)(Z),this.#Y=!!this.#Y,this.#J]}#z(Q){return this.#Q.map((X)=>{if(typeof X==="string")throw Error("string type in extglob ast??");let[J,Y,Z,q]=X.toRegExpSource(Q);return this.#J=this.#J||q,J}).filter((X)=>!(this.isStart()&&this.isEnd())||!!X).join("|")}static#w(Q,X,J=!1){let Y=!1,Z="",q=!1,$=!1;for(let H=0;H<Q.length;H++){let K=Q.charAt(H);if(Y){Y=!1,Z+=(RD0.has(K)?"\\":"")+K,$=!1;continue}if(K==="\\"){if(H===Q.length-1)Z+="\\\\";else Y=!0;continue}if(K==="["){let[V,W,G,U]=(0,FD0.parseClass)(Q,H);if(G){Z+=V,q=q||W,H+=G-1,X=X||U,$=!1;continue}}if(K==="*"){if($)continue;$=!0,Z+=J&&/^[*]+$/.test(Q)?Sg:_g,X=!0;continue}else $=!1;if(K==="?"){Z+=MB,X=!0;continue}Z+=DD0(K)}return[Z,(0,p$.unescape)(Q),!!X,q]}}vg.AST=IB;N6=IB});var CB=F((kg)=>{Object.defineProperty(kg,"__esModule",{value:!0});kg.escape=void 0;var wD0=(Q,{windowsPathsNoEscape:X=!1}={})=>{return X?Q.replace(/[?*()[\]]/g,"[$&]"):Q.replace(/[?*()[\]\\]/g,"\\$&")};kg.escape=wD0});var X5=F((a)=>{var TD0=a&&a.__importDefault||function(Q){return Q&&Q.__esModule?Q:{default:Q}};Object.defineProperty(a,"__esModule",{value:!0});a.unescape=a.escape=a.AST=a.Minimatch=a.match=a.makeRe=a.braceExpand=a.defaults=a.filter=a.GLOBSTAR=a.sep=a.minimatch=void 0;var AD0=TD0(Ig()),i$=Og(),fg=PB(),ED0=CB(),_D0=l$(),SD0=(Q,X,J={})=>{if((0,i$.assertValidPattern)(X),!J.nocomment&&X.charAt(0)==="#")return!1;return new h9(X,J).match(Q)};a.minimatch=SD0;var vD0=/^\*+([^+@!?\*\[\(]*)$/,xD0=(Q)=>(X)=>!X.startsWith(".")&&X.endsWith(Q),kD0=(Q)=>(X)=>X.endsWith(Q),yD0=(Q)=>{return Q=Q.toLowerCase(),(X)=>!X.startsWith(".")&&X.toLowerCase().endsWith(Q)},hD0=(Q)=>{return Q=Q.toLowerCase(),(X)=>X.toLowerCase().endsWith(Q)},bD0=/^\*+\.\*+$/,fD0=(Q)=>!Q.startsWith(".")&&Q.includes("."),gD0=(Q)=>Q!=="."&&Q!==".."&&Q.includes("."),uD0=/^\.\*+$/,mD0=(Q)=>Q!=="."&&Q!==".."&&Q.startsWith("."),dD0=/^\*+$/,cD0=(Q)=>Q.length!==0&&!Q.startsWith("."),lD0=(Q)=>Q.length!==0&&Q!=="."&&Q!=="..",pD0=/^\?+([^+@!?\*\[\(]*)?$/,nD0=([Q,X=""])=>{let J=gg([Q]);if(!X)return J;return X=X.toLowerCase(),(Y)=>J(Y)&&Y.toLowerCase().endsWith(X)},iD0=([Q,X=""])=>{let J=ug([Q]);if(!X)return J;return X=X.toLowerCase(),(Y)=>J(Y)&&Y.toLowerCase().endsWith(X)},oD0=([Q,X=""])=>{let J=ug([Q]);return!X?J:(Y)=>J(Y)&&Y.endsWith(X)},rD0=([Q,X=""])=>{let J=gg([Q]);return!X?J:(Y)=>J(Y)&&Y.endsWith(X)},gg=([Q])=>{let X=Q.length;return(J)=>J.length===X&&!J.startsWith(".")},ug=([Q])=>{let X=Q.length;return(J)=>J.length===X&&J!=="."&&J!==".."},mg=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",hg={win32:{sep:"\\"},posix:{sep:"/"}};a.sep=mg==="win32"?hg.win32.sep:hg.posix.sep;a.minimatch.sep=a.sep;a.GLOBSTAR=Symbol("globstar **");a.minimatch.GLOBSTAR=a.GLOBSTAR;var sD0="[^/]",aD0=sD0+"*?",tD0="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",eD0="(?:(?!(?:\\/|^)\\.).)*?",Qw0=(Q,X={})=>(J)=>(0,a.minimatch)(J,Q,X);a.filter=Qw0;a.minimatch.filter=a.filter;var a6=(Q,X={})=>Object.assign({},Q,X),Xw0=(Q)=>{if(!Q||typeof Q!=="object"||!Object.keys(Q).length)return a.minimatch;let X=a.minimatch;return Object.assign((Y,Z,q={})=>X(Y,Z,a6(Q,q)),{Minimatch:class extends X.Minimatch{constructor(Z,q={}){super(Z,a6(Q,q))}static defaults(Z){return X.defaults(a6(Q,Z)).Minimatch}},AST:class extends X.AST{constructor(Z,q,$={}){super(Z,q,a6(Q,$))}static fromGlob(Z,q={}){return X.AST.fromGlob(Z,a6(Q,q))}},unescape:(Y,Z={})=>X.unescape(Y,a6(Q,Z)),escape:(Y,Z={})=>X.escape(Y,a6(Q,Z)),filter:(Y,Z={})=>X.filter(Y,a6(Q,Z)),defaults:(Y)=>X.defaults(a6(Q,Y)),makeRe:(Y,Z={})=>X.makeRe(Y,a6(Q,Z)),braceExpand:(Y,Z={})=>X.braceExpand(Y,a6(Q,Z)),match:(Y,Z,q={})=>X.match(Y,Z,a6(Q,q)),sep:X.sep,GLOBSTAR:a.GLOBSTAR})};a.defaults=Xw0;a.minimatch.defaults=a.defaults;var Jw0=(Q,X={})=>{if((0,i$.assertValidPattern)(Q),X.nobrace||!/\{(?:(?!\{).)*\}/.test(Q))return[Q];return(0,AD0.default)(Q)};a.braceExpand=Jw0;a.minimatch.braceExpand=a.braceExpand;var Yw0=(Q,X={})=>new h9(Q,X).makeRe();a.makeRe=Yw0;a.minimatch.makeRe=a.makeRe;var Zw0=(Q,X,J={})=>{let Y=new h9(X,J);if(Q=Q.filter((Z)=>Y.match(Z)),Y.options.nonull&&!Q.length)Q.push(X);return Q};a.match=Zw0;a.minimatch.match=a.match;var bg=/[?*]|[+@!]\(.*?\)|\[|\]/,qw0=(Q)=>Q.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class h9{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(Q,X={}){if((0,i$.assertValidPattern)(Q),X=X||{},this.options=X,this.maxGlobstarRecursion=X.maxGlobstarRecursion??200,this.pattern=Q,this.platform=X.platform||mg,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!X.windowsPathsNoEscape||X.allowWindowsEscape===!1,this.windowsPathsNoEscape)this.pattern=this.pattern.replace(/\\/g,"/");this.preserveMultipleSlashes=!!X.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!X.nonegate,this.comment=!1,this.empty=!1,this.partial=!!X.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=X.windowsNoMagicRoot!==void 0?X.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let Q of this.set)for(let X of Q)if(typeof X!=="string")return!0;return!1}debug(...Q){}make(){let Q=this.pattern,X=this.options;if(!X.nocomment&&Q.charAt(0)==="#"){this.comment=!0;return}if(!Q){this.empty=!0;return}if(this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],X.debug)this.debug=(...Z)=>console.error(...Z);this.debug(this.pattern,this.globSet);let J=this.globSet.map((Z)=>this.slashSplit(Z));this.globParts=this.preprocess(J),this.debug(this.pattern,this.globParts);let Y=this.globParts.map((Z,q,$)=>{if(this.isWindows&&this.windowsNoMagicRoot){let H=Z[0]===""&&Z[1]===""&&(Z[2]==="?"||!bg.test(Z[2]))&&!bg.test(Z[3]),K=/^[a-z]:/i.test(Z[0]);if(H)return[...Z.slice(0,4),...Z.slice(4).map((V)=>this.parse(V))];else if(K)return[Z[0],...Z.slice(1).map((V)=>this.parse(V))]}return Z.map((H)=>this.parse(H))});if(this.debug(this.pattern,Y),this.set=Y.filter((Z)=>Z.indexOf(!1)===-1),this.isWindows)for(let Z=0;Z<this.set.length;Z++){let q=this.set[Z];if(q[0]===""&&q[1]===""&&this.globParts[Z][2]==="?"&&typeof q[3]==="string"&&/^[a-z]:$/i.test(q[3]))q[2]="?"}this.debug(this.pattern,this.set)}preprocess(Q){if(this.options.noglobstar){for(let J=0;J<Q.length;J++)for(let Y=0;Y<Q[J].length;Y++)if(Q[J][Y]==="**")Q[J][Y]="*"}let{optimizationLevel:X=1}=this.options;if(X>=2)Q=this.firstPhasePreProcess(Q),Q=this.secondPhasePreProcess(Q);else if(X>=1)Q=this.levelOneOptimize(Q);else Q=this.adjascentGlobstarOptimize(Q);return Q}adjascentGlobstarOptimize(Q){return Q.map((X)=>{let J=-1;while((J=X.indexOf("**",J+1))!==-1){let Y=J;while(X[Y+1]==="**")Y++;if(Y!==J)X.splice(J,Y-J)}return X})}levelOneOptimize(Q){return Q.map((X)=>{return X=X.reduce((J,Y)=>{let Z=J[J.length-1];if(Y==="**"&&Z==="**")return J;if(Y===".."){if(Z&&Z!==".."&&Z!=="."&&Z!=="**")return J.pop(),J}return J.push(Y),J},[]),X.length===0?[""]:X})}levelTwoFileOptimize(Q){if(!Array.isArray(Q))Q=this.slashSplit(Q);let X=!1;do{if(X=!1,!this.preserveMultipleSlashes){for(let Y=1;Y<Q.length-1;Y++){let Z=Q[Y];if(Y===1&&Z===""&&Q[0]==="")continue;if(Z==="."||Z==="")X=!0,Q.splice(Y,1),Y--}if(Q[0]==="."&&Q.length===2&&(Q[1]==="."||Q[1]===""))X=!0,Q.pop()}let J=0;while((J=Q.indexOf("..",J+1))!==-1){let Y=Q[J-1];if(Y&&Y!=="."&&Y!==".."&&Y!=="**")X=!0,Q.splice(J-1,2),J-=2}}while(X);return Q.length===0?[""]:Q}firstPhasePreProcess(Q){let X=!1;do{X=!1;for(let J of Q){let Y=-1;while((Y=J.indexOf("**",Y+1))!==-1){let q=Y;while(J[q+1]==="**")q++;if(q>Y)J.splice(Y+1,q-Y);let $=J[Y+1],H=J[Y+2],K=J[Y+3];if($!=="..")continue;if(!H||H==="."||H===".."||!K||K==="."||K==="..")continue;X=!0,J.splice(Y,1);let V=J.slice(0);V[Y]="**",Q.push(V),Y--}if(!this.preserveMultipleSlashes){for(let q=1;q<J.length-1;q++){let $=J[q];if(q===1&&$===""&&J[0]==="")continue;if($==="."||$==="")X=!0,J.splice(q,1),q--}if(J[0]==="."&&J.length===2&&(J[1]==="."||J[1]===""))X=!0,J.pop()}let Z=0;while((Z=J.indexOf("..",Z+1))!==-1){let q=J[Z-1];if(q&&q!=="."&&q!==".."&&q!=="**"){X=!0;let H=Z===1&&J[Z+1]==="**"?["."]:[];if(J.splice(Z-1,2,...H),J.length===0)J.push("");Z-=2}}}}while(X);return Q}secondPhasePreProcess(Q){for(let X=0;X<Q.length-1;X++)for(let J=X+1;J<Q.length;J++){let Y=this.partsMatch(Q[X],Q[J],!this.preserveMultipleSlashes);if(Y){Q[X]=[],Q[J]=Y;break}}return Q.filter((X)=>X.length)}partsMatch(Q,X,J=!1){let Y=0,Z=0,q=[],$="";while(Y<Q.length&&Z<X.length)if(Q[Y]===X[Z])q.push($==="b"?X[Z]:Q[Y]),Y++,Z++;else if(J&&Q[Y]==="**"&&X[Z]===Q[Y+1])q.push(Q[Y]),Y++;else if(J&&X[Z]==="**"&&Q[Y]===X[Z+1])q.push(X[Z]),Z++;else if(Q[Y]==="*"&&X[Z]&&(this.options.dot||!X[Z].startsWith("."))&&X[Z]!=="**"){if($==="b")return!1;$="a",q.push(Q[Y]),Y++,Z++}else if(X[Z]==="*"&&Q[Y]&&(this.options.dot||!Q[Y].startsWith("."))&&Q[Y]!=="**"){if($==="a")return!1;$="b",q.push(X[Z]),Y++,Z++}else return!1;return Q.length===X.length&&q}parseNegate(){if(this.nonegate)return;let Q=this.pattern,X=!1,J=0;for(let Y=0;Y<Q.length&&Q.charAt(Y)==="!";Y++)X=!X,J++;if(J)this.pattern=Q.slice(J);this.negate=X}matchOne(Q,X,J=!1){let Y=0,Z=0;if(this.isWindows){let $=typeof Q[0]==="string"&&/^[a-z]:$/i.test(Q[0]),H=!$&&Q[0]===""&&Q[1]===""&&Q[2]==="?"&&/^[a-z]:$/i.test(Q[3]),K=typeof X[0]==="string"&&/^[a-z]:$/i.test(X[0]),V=!K&&X[0]===""&&X[1]===""&&X[2]==="?"&&typeof X[3]==="string"&&/^[a-z]:$/i.test(X[3]),W=H?3:$?0:void 0,G=V?3:K?0:void 0;if(typeof W==="number"&&typeof G==="number"){let[U,z]=[Q[W],X[G]];if(U.toLowerCase()===z.toLowerCase())X[G]=U,Z=G,Y=W}}let{optimizationLevel:q=1}=this.options;if(q>=2)Q=this.levelTwoFileOptimize(Q);if(X.includes(a.GLOBSTAR))return this.#X(Q,X,J,Y,Z);return this.#J(Q,X,J,Y,Z)}#X(Q,X,J,Y,Z){let q=X.indexOf(a.GLOBSTAR,Z),$=X.lastIndexOf(a.GLOBSTAR),[H,K,V]=J?[X.slice(Z,q),X.slice(q+1),[]]:[X.slice(Z,q),X.slice(q+1,$),X.slice($+1)];if(H.length){let I=Q.slice(Y,Y+H.length);if(!this.#J(I,H,J,0,0))return!1;Y+=H.length}let W=0;if(V.length){if(V.length+Y>Q.length)return!1;let I=Q.length-V.length;if(this.#J(Q,V,J,I,0))W=V.length;else{if(Q[Q.length-1]!==""||Y+V.length===Q.length)return!1;if(I--,!this.#J(Q,V,J,I,0))return!1;W=V.length+1}}if(!K.length){let I=!!W;for(let j=Y;j<Q.length-W;j++){let D=String(Q[j]);if(I=!0,D==="."||D===".."||!this.options.dot&&D.startsWith("."))return!1}return J||I}let G=[[[],0]],U=G[0],z=0,L=[0];for(let I of K)if(I===a.GLOBSTAR)L.push(z),U=[[],0],G.push(U);else U[0].push(I),z++;let B=G.length-1,M=Q.length-W;for(let I of G)I[1]=M-(L[B--]+I[0].length);return!!this.#Y(Q,G,Y,0,J,0,!!W)}#Y(Q,X,J,Y,Z,q,$){let H=X[Y];if(!H){for(let W=J;W<Q.length;W++){$=!0;let G=Q[W];if(G==="."||G===".."||!this.options.dot&&G.startsWith("."))return!1}return $}let[K,V]=H;while(J<=V){if(this.#J(Q.slice(0,J+K.length),K,Z,J,0)&&q<this.maxGlobstarRecursion){let U=this.#Y(Q,X,J+K.length,Y+1,Z,q+1,$);if(U!==!1)return U}let G=Q[J];if(G==="."||G===".."||!this.options.dot&&G.startsWith("."))return!1;J++}return Z||null}#J(Q,X,J,Y,Z){let q,$,H,K;for(q=Y,$=Z,K=Q.length,H=X.length;q<K&&$<H;q++,$++){this.debug("matchOne loop");let V=X[$],W=Q[q];if(this.debug(X,V,W),V===!1||V===a.GLOBSTAR)return!1;let G;if(typeof V==="string")G=W===V,this.debug("string match",V,W,G);else G=V.test(W),this.debug("pattern match",V,W,G);if(!G)return!1}if(q===K&&$===H)return!0;else if(q===K)return J;else if($===H)return q===K-1&&Q[q]==="";else throw Error("wtf?")}braceExpand(){return(0,a.braceExpand)(this.pattern,this.options)}parse(Q){(0,i$.assertValidPattern)(Q);let X=this.options;if(Q==="**")return a.GLOBSTAR;if(Q==="")return"";let J,Y=null;if(J=Q.match(dD0))Y=X.dot?lD0:cD0;else if(J=Q.match(vD0))Y=(X.nocase?X.dot?hD0:yD0:X.dot?kD0:xD0)(J[1]);else if(J=Q.match(pD0))Y=(X.nocase?X.dot?iD0:nD0:X.dot?oD0:rD0)(J);else if(J=Q.match(bD0))Y=X.dot?gD0:fD0;else if(J=Q.match(uD0))Y=mD0;let Z=fg.AST.fromGlob(Q,this.options).toMMPattern();if(Y&&typeof Z==="object")Reflect.defineProperty(Z,"test",{value:Y});return Z}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let Q=this.set;if(!Q.length)return this.regexp=!1,this.regexp;let X=this.options,J=X.noglobstar?aD0:X.dot?tD0:eD0,Y=new Set(X.nocase?["i"]:[]),Z=Q.map((H)=>{let K=H.map((V)=>{if(V instanceof RegExp)for(let W of V.flags.split(""))Y.add(W);return typeof V==="string"?qw0(V):V===a.GLOBSTAR?a.GLOBSTAR:V._src});return K.forEach((V,W)=>{let G=K[W+1],U=K[W-1];if(V!==a.GLOBSTAR||U===a.GLOBSTAR)return;if(U===void 0)if(G!==void 0&&G!==a.GLOBSTAR)K[W+1]="(?:\\/|"+J+"\\/)?"+G;else K[W]=J;else if(G===void 0)K[W-1]=U+"(?:\\/|"+J+")?";else if(G!==a.GLOBSTAR)K[W-1]=U+"(?:\\/|\\/"+J+"\\/)"+G,K[W+1]=a.GLOBSTAR}),K.filter((V)=>V!==a.GLOBSTAR).join("/")}).join("|"),[q,$]=Q.length>1?["(?:",")"]:["",""];if(Z="^"+q+Z+$+"$",this.negate)Z="^(?!"+Z+").+$";try{this.regexp=new RegExp(Z,[...Y].join(""))}catch(H){this.regexp=!1}return this.regexp}slashSplit(Q){if(this.preserveMultipleSlashes)return Q.split("/");else if(this.isWindows&&/^\/\/[^\/]+/.test(Q))return["",...Q.split(/\/+/)];else return Q.split(/\/+/)}match(Q,X=this.partial){if(this.debug("match",Q,this.pattern),this.comment)return!1;if(this.empty)return Q==="";if(Q==="/"&&X)return!0;let J=this.options;if(this.isWindows)Q=Q.split("\\").join("/");let Y=this.slashSplit(Q);this.debug(this.pattern,"split",Y);let Z=this.set;this.debug(this.pattern,"set",Z);let q=Y[Y.length-1];if(!q)for(let $=Y.length-2;!q&&$>=0;$--)q=Y[$];for(let $=0;$<Z.length;$++){let H=Z[$],K=Y;if(J.matchBase&&H.length===1)K=[q];if(this.matchOne(K,H,X)){if(J.flipNegate)return!0;return!this.negate}}if(J.flipNegate)return!1;return this.negate}static defaults(Q){return a.minimatch.defaults(Q).Minimatch}}a.Minimatch=h9;var $w0=PB();Object.defineProperty(a,"AST",{enumerable:!0,get:function(){return $w0.AST}});var Hw0=CB();Object.defineProperty(a,"escape",{enumerable:!0,get:function(){return Hw0.escape}});var Kw0=l$();Object.defineProperty(a,"unescape",{enumerable:!0,get:function(){return Kw0.unescape}});a.minimatch.AST=fg.AST;a.minimatch.Minimatch=h9;a.minimatch.escape=ED0.escape;a.minimatch.unescape=_D0.unescape});var og=F((ng)=>{Object.defineProperty(ng,"__esModule",{value:!0});ng.LRUCache=void 0;var b9=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date,cg=new Set,OB=typeof process==="object"&&!!process?process:{},lg=(Q,X,J,Y)=>{typeof OB.emitWarning==="function"?OB.emitWarning(Q,X,J,Y):console.error(`[${J}] ${X}: ${Q}`)},o$=globalThis.AbortController,dg=globalThis.AbortSignal;if(typeof o$>"u"){dg=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(Y,Z){this._onabort.push(Z)}},o$=class{constructor(){X()}signal=new dg;abort(Y){if(this.signal.aborted)return;this.signal.reason=Y,this.signal.aborted=!0;for(let Z of this.signal._onabort)Z(Y);this.signal.onabort?.(Y)}};let Q=OB.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",X=()=>{if(!Q)return;Q=!1,lg("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",X)}}var Ww0=(Q)=>!cg.has(Q),O81=Symbol("type"),J5=(Q)=>Q&&Q===Math.floor(Q)&&Q>0&&isFinite(Q),pg=(Q)=>!J5(Q)?null:Q<=Math.pow(2,8)?Uint8Array:Q<=Math.pow(2,16)?Uint16Array:Q<=Math.pow(2,32)?Uint32Array:Q<=Number.MAX_SAFE_INTEGER?_J:null;class _J extends Array{constructor(Q){super(Q);this.fill(0)}}class f9{heap;length;static#X=!1;static create(Q){let X=pg(Q);if(!X)return[];f9.#X=!0;let J=new f9(Q,X);return f9.#X=!1,J}constructor(Q,X){if(!f9.#X)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new X(Q),this.length=0}push(Q){this.heap[this.length++]=Q}pop(){return this.heap[--this.length]}}class jB{#X;#Y;#J;#Q;#Z;#V;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#W;#G;#K;#H;#q;#C;#F;#I;#B;#O;#L;#j;#D;#P;#N;#M;#z;static unsafeExposeInternals(Q){return{starts:Q.#D,ttls:Q.#P,sizes:Q.#j,keyMap:Q.#K,keyList:Q.#H,valList:Q.#q,next:Q.#C,prev:Q.#F,get head(){return Q.#I},get tail(){return Q.#B},free:Q.#O,isBackgroundFetch:(X)=>Q.#U(X),backgroundFetch:(X,J,Y,Z)=>Q.#f(X,J,Y,Z),moveToTail:(X)=>Q.#u(X),indexes:(X)=>Q.#A(X),rindexes:(X)=>Q.#E(X),isStale:(X)=>Q.#R(X)}}get max(){return this.#X}get maxSize(){return this.#Y}get calculatedSize(){return this.#G}get size(){return this.#W}get fetchMethod(){return this.#Z}get memoMethod(){return this.#V}get dispose(){return this.#J}get disposeAfter(){return this.#Q}constructor(Q){let{max:X=0,ttl:J,ttlResolution:Y=1,ttlAutopurge:Z,updateAgeOnGet:q,updateAgeOnHas:$,allowStale:H,dispose:K,disposeAfter:V,noDisposeOnSet:W,noUpdateTTL:G,maxSize:U=0,maxEntrySize:z=0,sizeCalculation:L,fetchMethod:B,memoMethod:M,noDeleteOnFetchRejection:I,noDeleteOnStaleGet:j,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:N,ignoreFetchAbort:k}=Q;if(X!==0&&!J5(X))throw TypeError("max option must be a nonnegative integer");let f=X?pg(X):Array;if(!f)throw Error("invalid max value: "+X);if(this.#X=X,this.#Y=U,this.maxEntrySize=z||this.#Y,this.sizeCalculation=L,this.sizeCalculation){if(!this.#Y&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!=="function")throw TypeError("sizeCalculation set to non-function")}if(M!==void 0&&typeof M!=="function")throw TypeError("memoMethod must be a function if defined");if(this.#V=M,B!==void 0&&typeof B!=="function")throw TypeError("fetchMethod must be a function if specified");if(this.#Z=B,this.#M=!!B,this.#K=new Map,this.#H=Array(X).fill(void 0),this.#q=Array(X).fill(void 0),this.#C=new f(X),this.#F=new f(X),this.#I=0,this.#B=0,this.#O=f9.create(X),this.#W=0,this.#G=0,typeof K==="function")this.#J=K;if(typeof V==="function")this.#Q=V,this.#L=[];else this.#Q=void 0,this.#L=void 0;if(this.#N=!!this.#J,this.#z=!!this.#Q,this.noDisposeOnSet=!!W,this.noUpdateTTL=!!G,this.noDeleteOnFetchRejection=!!I,this.allowStaleOnFetchRejection=!!D,this.allowStaleOnFetchAbort=!!N,this.ignoreFetchAbort=!!k,this.maxEntrySize!==0){if(this.#Y!==0){if(!J5(this.#Y))throw TypeError("maxSize must be a positive integer if specified")}if(!J5(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#_()}if(this.allowStale=!!H,this.noDeleteOnStaleGet=!!j,this.updateAgeOnGet=!!q,this.updateAgeOnHas=!!$,this.ttlResolution=J5(Y)||Y===0?Y:1,this.ttlAutopurge=!!Z,this.ttl=J||0,this.ttl){if(!J5(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#w()}if(this.#X===0&&this.ttl===0&&this.#Y===0)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#X&&!this.#Y){if(Ww0("LRU_CACHE_UNBOUNDED"))cg.add("LRU_CACHE_UNBOUNDED"),lg("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning","LRU_CACHE_UNBOUNDED",jB)}}getRemainingTTL(Q){return this.#K.has(Q)?1/0:0}#w(){let Q=new _J(this.#X),X=new _J(this.#X);this.#P=Q,this.#D=X,this.#v=(Z,q,$=b9.now())=>{if(X[Z]=q!==0?$:0,Q[Z]=q,q!==0&&this.ttlAutopurge){let H=setTimeout(()=>{if(this.#R(Z))this.#S(this.#H[Z],"expire")},q+1);if(H.unref)H.unref()}},this.#T=(Z)=>{X[Z]=Q[Z]!==0?b9.now():0},this.#$=(Z,q)=>{if(Q[q]){let $=Q[q],H=X[q];if(!$||!H)return;Z.ttl=$,Z.start=H,Z.now=J||Y();let K=Z.now-H;Z.remainingTTL=$-K}};let J=0,Y=()=>{let Z=b9.now();if(this.ttlResolution>0){J=Z;let q=setTimeout(()=>J=0,this.ttlResolution);if(q.unref)q.unref()}return Z};this.getRemainingTTL=(Z)=>{let q=this.#K.get(Z);if(q===void 0)return 0;let $=Q[q],H=X[q];if(!$||!H)return 1/0;let K=(J||Y())-H;return $-K},this.#R=(Z)=>{let q=X[Z],$=Q[Z];return!!$&&!!q&&(J||Y())-q>$}}#T=()=>{};#$=()=>{};#v=()=>{};#R=()=>!1;#_(){let Q=new _J(this.#X);this.#G=0,this.#j=Q,this.#x=(X)=>{this.#G-=Q[X],Q[X]=0},this.#y=(X,J,Y,Z)=>{if(this.#U(J))return 0;if(!J5(Y))if(Z){if(typeof Z!=="function")throw TypeError("sizeCalculation must be a function");if(Y=Z(J,X),!J5(Y))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return Y},this.#k=(X,J,Y)=>{if(Q[X]=J,this.#Y){let Z=this.#Y-Q[X];while(this.#G>Z)this.#b(!0)}if(this.#G+=Q[X],Y)Y.entrySize=J,Y.totalCalculatedSize=this.#G}}#x=(Q)=>{};#k=(Q,X,J)=>{};#y=(Q,X,J,Y)=>{if(J||Y)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#A({allowStale:Q=this.allowStale}={}){if(this.#W)for(let X=this.#B;;){if(!this.#h(X))break;if(Q||!this.#R(X))yield X;if(X===this.#I)break;else X=this.#F[X]}}*#E({allowStale:Q=this.allowStale}={}){if(this.#W)for(let X=this.#I;;){if(!this.#h(X))break;if(Q||!this.#R(X))yield X;if(X===this.#B)break;else X=this.#C[X]}}#h(Q){return Q!==void 0&&this.#K.get(this.#H[Q])===Q}*entries(){for(let Q of this.#A())if(this.#q[Q]!==void 0&&this.#H[Q]!==void 0&&!this.#U(this.#q[Q]))yield[this.#H[Q],this.#q[Q]]}*rentries(){for(let Q of this.#E())if(this.#q[Q]!==void 0&&this.#H[Q]!==void 0&&!this.#U(this.#q[Q]))yield[this.#H[Q],this.#q[Q]]}*keys(){for(let Q of this.#A()){let X=this.#H[Q];if(X!==void 0&&!this.#U(this.#q[Q]))yield X}}*rkeys(){for(let Q of this.#E()){let X=this.#H[Q];if(X!==void 0&&!this.#U(this.#q[Q]))yield X}}*values(){for(let Q of this.#A())if(this.#q[Q]!==void 0&&!this.#U(this.#q[Q]))yield this.#q[Q]}*rvalues(){for(let Q of this.#E())if(this.#q[Q]!==void 0&&!this.#U(this.#q[Q]))yield this.#q[Q]}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(Q,X={}){for(let J of this.#A()){let Y=this.#q[J],Z=this.#U(Y)?Y.__staleWhileFetching:Y;if(Z===void 0)continue;if(Q(Z,this.#H[J],this))return this.get(this.#H[J],X)}}forEach(Q,X=this){for(let J of this.#A()){let Y=this.#q[J],Z=this.#U(Y)?Y.__staleWhileFetching:Y;if(Z===void 0)continue;Q.call(X,Z,this.#H[J],this)}}rforEach(Q,X=this){for(let J of this.#E()){let Y=this.#q[J],Z=this.#U(Y)?Y.__staleWhileFetching:Y;if(Z===void 0)continue;Q.call(X,Z,this.#H[J],this)}}purgeStale(){let Q=!1;for(let X of this.#E({allowStale:!0}))if(this.#R(X))this.#S(this.#H[X],"expire"),Q=!0;return Q}info(Q){let X=this.#K.get(Q);if(X===void 0)return;let J=this.#q[X],Y=this.#U(J)?J.__staleWhileFetching:J;if(Y===void 0)return;let Z={value:Y};if(this.#P&&this.#D){let q=this.#P[X],$=this.#D[X];if(q&&$){let H=q-(b9.now()-$);Z.ttl=H,Z.start=Date.now()}}if(this.#j)Z.size=this.#j[X];return Z}dump(){let Q=[];for(let X of this.#A({allowStale:!0})){let J=this.#H[X],Y=this.#q[X],Z=this.#U(Y)?Y.__staleWhileFetching:Y;if(Z===void 0||J===void 0)continue;let q={value:Z};if(this.#P&&this.#D){q.ttl=this.#P[X];let $=b9.now()-this.#D[X];q.start=Math.floor(Date.now()-$)}if(this.#j)q.size=this.#j[X];Q.unshift([J,q])}return Q}load(Q){this.clear();for(let[X,J]of Q){if(J.start){let Y=Date.now()-J.start;J.start=b9.now()-Y}this.set(X,J.value,J)}}set(Q,X,J={}){if(X===void 0)return this.delete(Q),this;let{ttl:Y=this.ttl,start:Z,noDisposeOnSet:q=this.noDisposeOnSet,sizeCalculation:$=this.sizeCalculation,status:H}=J,{noUpdateTTL:K=this.noUpdateTTL}=J,V=this.#y(Q,X,J.size||0,$);if(this.maxEntrySize&&V>this.maxEntrySize){if(H)H.set="miss",H.maxEntrySizeExceeded=!0;return this.#S(Q,"set"),this}let W=this.#W===0?void 0:this.#K.get(Q);if(W===void 0){if(W=this.#W===0?this.#B:this.#O.length!==0?this.#O.pop():this.#W===this.#X?this.#b(!1):this.#W,this.#H[W]=Q,this.#q[W]=X,this.#K.set(Q,W),this.#C[this.#B]=W,this.#F[W]=this.#B,this.#B=W,this.#W++,this.#k(W,V,H),H)H.set="add";K=!1}else{this.#u(W);let G=this.#q[W];if(X!==G){if(this.#M&&this.#U(G)){G.__abortController.abort(Error("replaced"));let{__staleWhileFetching:U}=G;if(U!==void 0&&!q){if(this.#N)this.#J?.(U,Q,"set");if(this.#z)this.#L?.push([U,Q,"set"])}}else if(!q){if(this.#N)this.#J?.(G,Q,"set");if(this.#z)this.#L?.push([G,Q,"set"])}if(this.#x(W),this.#k(W,V,H),this.#q[W]=X,H){H.set="replace";let U=G&&this.#U(G)?G.__staleWhileFetching:G;if(U!==void 0)H.oldValue=U}}else if(H)H.set="update"}if(Y!==0&&!this.#P)this.#w();if(this.#P){if(!K)this.#v(W,Y,Z);if(H)this.#$(H,W)}if(!q&&this.#z&&this.#L){let G=this.#L,U;while(U=G?.shift())this.#Q?.(...U)}return this}pop(){try{while(this.#W){let Q=this.#q[this.#I];if(this.#b(!0),this.#U(Q)){if(Q.__staleWhileFetching)return Q.__staleWhileFetching}else if(Q!==void 0)return Q}}finally{if(this.#z&&this.#L){let Q=this.#L,X;while(X=Q?.shift())this.#Q?.(...X)}}}#b(Q){let X=this.#I,J=this.#H[X],Y=this.#q[X];if(this.#M&&this.#U(Y))Y.__abortController.abort(Error("evicted"));else if(this.#N||this.#z){if(this.#N)this.#J?.(Y,J,"evict");if(this.#z)this.#L?.push([Y,J,"evict"])}if(this.#x(X),Q)this.#H[X]=void 0,this.#q[X]=void 0,this.#O.push(X);if(this.#W===1)this.#I=this.#B=0,this.#O.length=0;else this.#I=this.#C[X];return this.#K.delete(J),this.#W--,X}has(Q,X={}){let{updateAgeOnHas:J=this.updateAgeOnHas,status:Y}=X,Z=this.#K.get(Q);if(Z!==void 0){let q=this.#q[Z];if(this.#U(q)&&q.__staleWhileFetching===void 0)return!1;if(!this.#R(Z)){if(J)this.#T(Z);if(Y)Y.has="hit",this.#$(Y,Z);return!0}else if(Y)Y.has="stale",this.#$(Y,Z)}else if(Y)Y.has="miss";return!1}peek(Q,X={}){let{allowStale:J=this.allowStale}=X,Y=this.#K.get(Q);if(Y===void 0||!J&&this.#R(Y))return;let Z=this.#q[Y];return this.#U(Z)?Z.__staleWhileFetching:Z}#f(Q,X,J,Y){let Z=X===void 0?void 0:this.#q[X];if(this.#U(Z))return Z;let q=new o$,{signal:$}=J;$?.addEventListener("abort",()=>q.abort($.reason),{signal:q.signal});let H={signal:q.signal,options:J,context:Y},K=(L,B=!1)=>{let{aborted:M}=q.signal,I=J.ignoreFetchAbort&&L!==void 0;if(J.status)if(M&&!B){if(J.status.fetchAborted=!0,J.status.fetchError=q.signal.reason,I)J.status.fetchAbortIgnored=!0}else J.status.fetchResolved=!0;if(M&&!I&&!B)return W(q.signal.reason);let j=U;if(this.#q[X]===U)if(L===void 0)if(j.__staleWhileFetching)this.#q[X]=j.__staleWhileFetching;else this.#S(Q,"fetch");else{if(J.status)J.status.fetchUpdated=!0;this.set(Q,L,H.options)}return L},V=(L)=>{if(J.status)J.status.fetchRejected=!0,J.status.fetchError=L;return W(L)},W=(L)=>{let{aborted:B}=q.signal,M=B&&J.allowStaleOnFetchAbort,I=M||J.allowStaleOnFetchRejection,j=I||J.noDeleteOnFetchRejection,D=U;if(this.#q[X]===U){if(!j||D.__staleWhileFetching===void 0)this.#S(Q,"fetch");else if(!M)this.#q[X]=D.__staleWhileFetching}if(I){if(J.status&&D.__staleWhileFetching!==void 0)J.status.returnedStale=!0;return D.__staleWhileFetching}else if(D.__returned===D)throw L},G=(L,B)=>{let M=this.#Z?.(Q,Z,H);if(M&&M instanceof Promise)M.then((I)=>L(I===void 0?void 0:I),B);q.signal.addEventListener("abort",()=>{if(!J.ignoreFetchAbort||J.allowStaleOnFetchAbort){if(L(void 0),J.allowStaleOnFetchAbort)L=(I)=>K(I,!0)}})};if(J.status)J.status.fetchDispatched=!0;let U=new Promise(G).then(K,V),z=Object.assign(U,{__abortController:q,__staleWhileFetching:Z,__returned:void 0});if(X===void 0)this.set(Q,z,{...H.options,status:void 0}),X=this.#K.get(Q);else this.#q[X]=z;return z}#U(Q){if(!this.#M)return!1;let X=Q;return!!X&&X instanceof Promise&&X.hasOwnProperty("__staleWhileFetching")&&X.__abortController instanceof o$}async fetch(Q,X={}){let{allowStale:J=this.allowStale,updateAgeOnGet:Y=this.updateAgeOnGet,noDeleteOnStaleGet:Z=this.noDeleteOnStaleGet,ttl:q=this.ttl,noDisposeOnSet:$=this.noDisposeOnSet,size:H=0,sizeCalculation:K=this.sizeCalculation,noUpdateTTL:V=this.noUpdateTTL,noDeleteOnFetchRejection:W=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:G=this.allowStaleOnFetchRejection,ignoreFetchAbort:U=this.ignoreFetchAbort,allowStaleOnFetchAbort:z=this.allowStaleOnFetchAbort,context:L,forceRefresh:B=!1,status:M,signal:I}=X;if(!this.#M){if(M)M.fetch="get";return this.get(Q,{allowStale:J,updateAgeOnGet:Y,noDeleteOnStaleGet:Z,status:M})}let j={allowStale:J,updateAgeOnGet:Y,noDeleteOnStaleGet:Z,ttl:q,noDisposeOnSet:$,size:H,sizeCalculation:K,noUpdateTTL:V,noDeleteOnFetchRejection:W,allowStaleOnFetchRejection:G,allowStaleOnFetchAbort:z,ignoreFetchAbort:U,status:M,signal:I},D=this.#K.get(Q);if(D===void 0){if(M)M.fetch="miss";let N=this.#f(Q,D,j,L);return N.__returned=N}else{let N=this.#q[D];if(this.#U(N)){let T=J&&N.__staleWhileFetching!==void 0;if(M){if(M.fetch="inflight",T)M.returnedStale=!0}return T?N.__staleWhileFetching:N.__returned=N}let k=this.#R(D);if(!B&&!k){if(M)M.fetch="hit";if(this.#u(D),Y)this.#T(D);if(M)this.#$(M,D);return N}let f=this.#f(Q,D,j,L),p=f.__staleWhileFetching!==void 0&&J;if(M){if(M.fetch=k?"stale":"refresh",p&&k)M.returnedStale=!0}return p?f.__staleWhileFetching:f.__returned=f}}async forceFetch(Q,X={}){let J=await this.fetch(Q,X);if(J===void 0)throw Error("fetch() returned undefined");return J}memo(Q,X={}){let J=this.#V;if(!J)throw Error("no memoMethod provided to constructor");let{context:Y,forceRefresh:Z,...q}=X,$=this.get(Q,q);if(!Z&&$!==void 0)return $;let H=J(Q,$,{options:q,context:Y});return this.set(Q,H,q),H}get(Q,X={}){let{allowStale:J=this.allowStale,updateAgeOnGet:Y=this.updateAgeOnGet,noDeleteOnStaleGet:Z=this.noDeleteOnStaleGet,status:q}=X,$=this.#K.get(Q);if($!==void 0){let H=this.#q[$],K=this.#U(H);if(q)this.#$(q,$);if(this.#R($)){if(q)q.get="stale";if(!K){if(!Z)this.#S(Q,"expire");if(q&&J)q.returnedStale=!0;return J?H:void 0}else{if(q&&J&&H.__staleWhileFetching!==void 0)q.returnedStale=!0;return J?H.__staleWhileFetching:void 0}}else{if(q)q.get="hit";if(K)return H.__staleWhileFetching;if(this.#u($),Y)this.#T($);return H}}else if(q)q.get="miss"}#g(Q,X){this.#F[X]=Q,this.#C[Q]=X}#u(Q){if(Q!==this.#B){if(Q===this.#I)this.#I=this.#C[Q];else this.#g(this.#F[Q],this.#C[Q]);this.#g(this.#B,Q),this.#B=Q}}delete(Q){return this.#S(Q,"delete")}#S(Q,X){let J=!1;if(this.#W!==0){let Y=this.#K.get(Q);if(Y!==void 0)if(J=!0,this.#W===1)this.#m(X);else{this.#x(Y);let Z=this.#q[Y];if(this.#U(Z))Z.__abortController.abort(Error("deleted"));else if(this.#N||this.#z){if(this.#N)this.#J?.(Z,Q,X);if(this.#z)this.#L?.push([Z,Q,X])}if(this.#K.delete(Q),this.#H[Y]=void 0,this.#q[Y]=void 0,Y===this.#B)this.#B=this.#F[Y];else if(Y===this.#I)this.#I=this.#C[Y];else{let q=this.#F[Y];this.#C[q]=this.#C[Y];let $=this.#C[Y];this.#F[$]=this.#F[Y]}this.#W--,this.#O.push(Y)}}if(this.#z&&this.#L?.length){let Y=this.#L,Z;while(Z=Y?.shift())this.#Q?.(...Z)}return J}clear(){return this.#m("delete")}#m(Q){for(let X of this.#E({allowStale:!0})){let J=this.#q[X];if(this.#U(J))J.__abortController.abort(Error("deleted"));else{let Y=this.#H[X];if(this.#N)this.#J?.(J,Y,Q);if(this.#z)this.#L?.push([J,Y,Q])}}if(this.#K.clear(),this.#q.fill(void 0),this.#H.fill(void 0),this.#P&&this.#D)this.#P.fill(0),this.#D.fill(0);if(this.#j)this.#j.fill(0);if(this.#I=0,this.#B=0,this.#O.length=0,this.#G=0,this.#W=0,this.#z&&this.#L){let X=this.#L,J;while(J=X?.shift())this.#Q?.(...J)}}}ng.LRUCache=jB});var SB=F((U6)=>{var Vw0=U6&&U6.__importDefault||function(Q){return Q&&Q.__esModule?Q:{default:Q}};Object.defineProperty(U6,"__esModule",{value:!0});U6.Minipass=U6.isWritable=U6.isReadable=U6.isStream=void 0;var rg=typeof process==="object"&&process?process:{stdout:null,stderr:null},AB=l("node:events"),eg=Vw0(l("node:stream")),Gw0=l("node:string_decoder"),Uw0=(Q)=>!!Q&&typeof Q==="object"&&(Q instanceof _B||Q instanceof eg.default||(0,U6.isReadable)(Q)||(0,U6.isWritable)(Q));U6.isStream=Uw0;var zw0=(Q)=>!!Q&&typeof Q==="object"&&Q instanceof AB.EventEmitter&&typeof Q.pipe==="function"&&Q.pipe!==eg.default.Writable.prototype.pipe;U6.isReadable=zw0;var Bw0=(Q)=>!!Q&&typeof Q==="object"&&Q instanceof AB.EventEmitter&&typeof Q.write==="function"&&typeof Q.end==="function";U6.isWritable=Bw0;var P4=Symbol("EOF"),C4=Symbol("maybeEmitEnd"),Y5=Symbol("emittedEnd"),r$=Symbol("emittingEnd"),SJ=Symbol("emittedError"),s$=Symbol("closed"),sg=Symbol("read"),a$=Symbol("flush"),ag=Symbol("flushChunk"),C8=Symbol("encoding"),g9=Symbol("decoder"),y1=Symbol("flowing"),vJ=Symbol("paused"),u9=Symbol("resume"),h1=Symbol("buffer"),G6=Symbol("pipes"),b1=Symbol("bufferLength"),NB=Symbol("bufferPush"),t$=Symbol("bufferShift"),Q6=Symbol("objectMode"),M1=Symbol("destroyed"),RB=Symbol("error"),DB=Symbol("emitData"),tg=Symbol("emitEnd"),wB=Symbol("emitEnd2"),p8=Symbol("async"),TB=Symbol("abort"),e$=Symbol("aborted"),xJ=Symbol("signal"),H7=Symbol("dataListeners"),_6=Symbol("discarded"),kJ=(Q)=>Promise.resolve().then(Q),Lw0=(Q)=>Q(),Fw0=(Q)=>Q==="end"||Q==="finish"||Q==="prefinish",Mw0=(Q)=>Q instanceof ArrayBuffer||!!Q&&typeof Q==="object"&&Q.constructor&&Q.constructor.name==="ArrayBuffer"&&Q.byteLength>=0,Iw0=(Q)=>!Buffer.isBuffer(Q)&&ArrayBuffer.isView(Q);class EB{src;dest;opts;ondrain;constructor(Q,X,J){this.src=Q,this.dest=X,this.opts=J,this.ondrain=()=>Q[u9](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(Q){}end(){if(this.unpipe(),this.opts.end)this.dest.end()}}class Qu extends EB{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(Q,X,J){super(Q,X,J);this.proxyErrors=(Y)=>this.dest.emit("error",Y),Q.on("error",this.proxyErrors)}}var Pw0=(Q)=>!!Q.objectMode,Cw0=(Q)=>!Q.objectMode&&!!Q.encoding&&Q.encoding!=="buffer";class _B extends AB.EventEmitter{[y1]=!1;[vJ]=!1;[G6]=[];[h1]=[];[Q6];[C8];[p8];[g9];[P4]=!1;[Y5]=!1;[r$]=!1;[s$]=!1;[SJ]=null;[b1]=0;[M1]=!1;[xJ];[e$]=!1;[H7]=0;[_6]=!1;writable=!0;readable=!0;constructor(...Q){let X=Q[0]||{};super();if(X.objectMode&&typeof X.encoding==="string")throw TypeError("Encoding and objectMode may not be used together");if(Pw0(X))this[Q6]=!0,this[C8]=null;else if(Cw0(X))this[C8]=X.encoding,this[Q6]=!1;else this[Q6]=!1,this[C8]=null;if(this[p8]=!!X.async,this[g9]=this[C8]?new Gw0.StringDecoder(this[C8]):null,X&&X.debugExposeBuffer===!0)Object.defineProperty(this,"buffer",{get:()=>this[h1]});if(X&&X.debugExposePipes===!0)Object.defineProperty(this,"pipes",{get:()=>this[G6]});let{signal:J}=X;if(J)if(this[xJ]=J,J.aborted)this[TB]();else J.addEventListener("abort",()=>this[TB]())}get bufferLength(){return this[b1]}get encoding(){return this[C8]}set encoding(Q){throw Error("Encoding must be set at instantiation time")}setEncoding(Q){throw Error("Encoding must be set at instantiation time")}get objectMode(){return this[Q6]}set objectMode(Q){throw Error("objectMode must be set at instantiation time")}get["async"](){return this[p8]}set["async"](Q){this[p8]=this[p8]||!!Q}[TB](){this[e$]=!0,this.emit("abort",this[xJ]?.reason),this.destroy(this[xJ]?.reason)}get aborted(){return this[e$]}set aborted(Q){}write(Q,X,J){if(this[e$])return!1;if(this[P4])throw Error("write after end");if(this[M1])return this.emit("error",Object.assign(Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;if(typeof X==="function")J=X,X="utf8";if(!X)X="utf8";let Y=this[p8]?kJ:Lw0;if(!this[Q6]&&!Buffer.isBuffer(Q)){if(Iw0(Q))Q=Buffer.from(Q.buffer,Q.byteOffset,Q.byteLength);else if(Mw0(Q))Q=Buffer.from(Q);else if(typeof Q!=="string")throw Error("Non-contiguous data written to non-objectMode stream")}if(this[Q6]){if(this[y1]&&this[b1]!==0)this[a$](!0);if(this[y1])this.emit("data",Q);else this[NB](Q);if(this[b1]!==0)this.emit("readable");if(J)Y(J);return this[y1]}if(!Q.length){if(this[b1]!==0)this.emit("readable");if(J)Y(J);return this[y1]}if(typeof Q==="string"&&!(X===this[C8]&&!this[g9]?.lastNeed))Q=Buffer.from(Q,X);if(Buffer.isBuffer(Q)&&this[C8])Q=this[g9].write(Q);if(this[y1]&&this[b1]!==0)this[a$](!0);if(this[y1])this.emit("data",Q);else this[NB](Q);if(this[b1]!==0)this.emit("readable");if(J)Y(J);return this[y1]}read(Q){if(this[M1])return null;if(this[_6]=!1,this[b1]===0||Q===0||Q&&Q>this[b1])return this[C4](),null;if(this[Q6])Q=null;if(this[h1].length>1&&!this[Q6])this[h1]=[this[C8]?this[h1].join(""):Buffer.concat(this[h1],this[b1])];let X=this[sg](Q||null,this[h1][0]);return this[C4](),X}[sg](Q,X){if(this[Q6])this[t$]();else{let J=X;if(Q===J.length||Q===null)this[t$]();else if(typeof J==="string")this[h1][0]=J.slice(Q),X=J.slice(0,Q),this[b1]-=Q;else this[h1][0]=J.subarray(Q),X=J.subarray(0,Q),this[b1]-=Q}if(this.emit("data",X),!this[h1].length&&!this[P4])this.emit("drain");return X}end(Q,X,J){if(typeof Q==="function")J=Q,Q=void 0;if(typeof X==="function")J=X,X="utf8";if(Q!==void 0)this.write(Q,X);if(J)this.once("end",J);if(this[P4]=!0,this.writable=!1,this[y1]||!this[vJ])this[C4]();return this}[u9](){if(this[M1])return;if(!this[H7]&&!this[G6].length)this[_6]=!0;if(this[vJ]=!1,this[y1]=!0,this.emit("resume"),this[h1].length)this[a$]();else if(this[P4])this[C4]();else this.emit("drain")}resume(){return this[u9]()}pause(){this[y1]=!1,this[vJ]=!0,this[_6]=!1}get destroyed(){return this[M1]}get flowing(){return this[y1]}get paused(){return this[vJ]}[NB](Q){if(this[Q6])this[b1]+=1;else this[b1]+=Q.length;this[h1].push(Q)}[t$](){if(this[Q6])this[b1]-=1;else this[b1]-=this[h1][0].length;return this[h1].shift()}[a$](Q=!1){do;while(this[ag](this[t$]())&&this[h1].length);if(!Q&&!this[h1].length&&!this[P4])this.emit("drain")}[ag](Q){return this.emit("data",Q),this[y1]}pipe(Q,X){if(this[M1])return Q;this[_6]=!1;let J=this[Y5];if(X=X||{},Q===rg.stdout||Q===rg.stderr)X.end=!1;else X.end=X.end!==!1;if(X.proxyErrors=!!X.proxyErrors,J){if(X.end)Q.end()}else if(this[G6].push(!X.proxyErrors?new EB(this,Q,X):new Qu(this,Q,X)),this[p8])kJ(()=>this[u9]());else this[u9]();return Q}unpipe(Q){let X=this[G6].find((J)=>J.dest===Q);if(X){if(this[G6].length===1){if(this[y1]&&this[H7]===0)this[y1]=!1;this[G6]=[]}else this[G6].splice(this[G6].indexOf(X),1);X.unpipe()}}addListener(Q,X){return this.on(Q,X)}on(Q,X){let J=super.on(Q,X);if(Q==="data"){if(this[_6]=!1,this[H7]++,!this[G6].length&&!this[y1])this[u9]()}else if(Q==="readable"&&this[b1]!==0)super.emit("readable");else if(Fw0(Q)&&this[Y5])super.emit(Q),this.removeAllListeners(Q);else if(Q==="error"&&this[SJ]){let Y=X;if(this[p8])kJ(()=>Y.call(this,this[SJ]));else Y.call(this,this[SJ])}return J}removeListener(Q,X){return this.off(Q,X)}off(Q,X){let J=super.off(Q,X);if(Q==="data"){if(this[H7]=this.listeners("data").length,this[H7]===0&&!this[_6]&&!this[G6].length)this[y1]=!1}return J}removeAllListeners(Q){let X=super.removeAllListeners(Q);if(Q==="data"||Q===void 0){if(this[H7]=0,!this[_6]&&!this[G6].length)this[y1]=!1}return X}get emittedEnd(){return this[Y5]}[C4](){if(!this[r$]&&!this[Y5]&&!this[M1]&&this[h1].length===0&&this[P4]){if(this[r$]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[s$])this.emit("close");this[r$]=!1}}emit(Q,...X){let J=X[0];if(Q!=="error"&&Q!=="close"&&Q!==M1&&this[M1])return!1;else if(Q==="data")return!this[Q6]&&!J?!1:this[p8]?(kJ(()=>this[DB](J)),!0):this[DB](J);else if(Q==="end")return this[tg]();else if(Q==="close"){if(this[s$]=!0,!this[Y5]&&!this[M1])return!1;let Z=super.emit("close");return this.removeAllListeners("close"),Z}else if(Q==="error"){this[SJ]=J,super.emit(RB,J);let Z=!this[xJ]||this.listeners("error").length?super.emit("error",J):!1;return this[C4](),Z}else if(Q==="resume"){let Z=super.emit("resume");return this[C4](),Z}else if(Q==="finish"||Q==="prefinish"){let Z=super.emit(Q);return this.removeAllListeners(Q),Z}let Y=super.emit(Q,...X);return this[C4](),Y}[DB](Q){for(let J of this[G6])if(J.dest.write(Q)===!1)this.pause();let X=this[_6]?!1:super.emit("data",Q);return this[C4](),X}[tg](){if(this[Y5])return!1;return this[Y5]=!0,this.readable=!1,this[p8]?(kJ(()=>this[wB]()),!0):this[wB]()}[wB](){if(this[g9]){let X=this[g9].end();if(X){for(let J of this[G6])J.dest.write(X);if(!this[_6])super.emit("data",X)}}for(let X of this[G6])X.end();let Q=super.emit("end");return this.removeAllListeners("end"),Q}async collect(){let Q=Object.assign([],{dataLength:0});if(!this[Q6])Q.dataLength=0;let X=this.promise();return this.on("data",(J)=>{if(Q.push(J),!this[Q6])Q.dataLength+=J.length}),await X,Q}async concat(){if(this[Q6])throw Error("cannot concat in objectMode");let Q=await this.collect();return this[C8]?Q.join(""):Buffer.concat(Q,Q.dataLength)}async promise(){return new Promise((Q,X)=>{this.on(M1,()=>X(Error("stream destroyed"))),this.on("error",(J)=>X(J)),this.on("end",()=>Q())})}[Symbol.asyncIterator](){this[_6]=!1;let Q=!1,X=async()=>{return this.pause(),Q=!0,{value:void 0,done:!0}};return{next:()=>{if(Q)return X();let Y=this.read();if(Y!==null)return Promise.resolve({done:!1,value:Y});if(this[P4])return X();let Z,q,$=(W)=>{this.off("data",H),this.off("end",K),this.off(M1,V),X(),q(W)},H=(W)=>{this.off("error",$),this.off("end",K),this.off(M1,V),this.pause(),Z({value:W,done:!!this[P4]})},K=()=>{this.off("error",$),this.off("data",H),this.off(M1,V),X(),Z({done:!0,value:void 0})},V=()=>$(Error("stream destroyed"));return new Promise((W,G)=>{q=G,Z=W,this.once(M1,V),this.once("error",$),this.once("end",K),this.once("data",H)})},throw:X,return:X,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[_6]=!1;let Q=!1,X=()=>{return this.pause(),this.off(RB,X),this.off(M1,X),this.off("end",X),Q=!0,{done:!0,value:void 0}},J=()=>{if(Q)return X();let Y=this.read();return Y===null?X():{done:!1,value:Y}};return this.once("end",X),this.once(RB,X),this.once(M1,X),{next:J,throw:X,return:X,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(Q){if(this[M1]){if(Q)this.emit("error",Q);else this.emit(M1);return this}this[M1]=!0,this[_6]=!0,this[h1].length=0,this[b1]=0;let X=this;if(typeof X.close==="function"&&!this[s$])X.close();if(Q)this.emit("error",Q);else this.emit(M1);return this}static get isStream(){return U6.isStream}}U6.Minipass=_B});var Lu=F((p0)=>{var Ow0=p0&&p0.__createBinding||(Object.create?function(Q,X,J,Y){if(Y===void 0)Y=J;var Z=Object.getOwnPropertyDescriptor(X,J);if(!Z||("get"in Z?!X.__esModule:Z.writable||Z.configurable))Z={enumerable:!0,get:function(){return X[J]}};Object.defineProperty(Q,Y,Z)}:function(Q,X,J,Y){if(Y===void 0)Y=J;Q[Y]=X[J]}),jw0=p0&&p0.__setModuleDefault||(Object.create?function(Q,X){Object.defineProperty(Q,"default",{enumerable:!0,value:X})}:function(Q,X){Q.default=X}),Nw0=p0&&p0.__importStar||function(Q){if(Q&&Q.__esModule)return Q;var X={};if(Q!=null){for(var J in Q)if(J!=="default"&&Object.prototype.hasOwnProperty.call(Q,J))Ow0(X,Q,J)}return jw0(X,Q),X};Object.defineProperty(p0,"__esModule",{value:!0});p0.PathScurry=p0.Path=p0.PathScurryDarwin=p0.PathScurryPosix=p0.PathScurryWin32=p0.PathScurryBase=p0.PathPosix=p0.PathWin32=p0.PathBase=p0.ChildrenCache=p0.ResolveCache=void 0;var $u=og(),Z3=l("node:path"),Rw0=l("node:url"),hJ=l("fs"),Dw0=Nw0(l("node:fs")),ww0=hJ.realpathSync.native,Q3=l("node:fs/promises"),Xu=SB(),bJ={lstatSync:hJ.lstatSync,readdir:hJ.readdir,readdirSync:hJ.readdirSync,readlinkSync:hJ.readlinkSync,realpathSync:ww0,promises:{lstat:Q3.lstat,readdir:Q3.readdir,readlink:Q3.readlink,realpath:Q3.realpath}},Hu=(Q)=>!Q||Q===bJ||Q===Dw0?bJ:{...bJ,...Q,promises:{...bJ.promises,...Q.promises||{}}},Ku=/^\\\\\?\\([a-z]:)\\?$/i,Tw0=(Q)=>Q.replace(/\//g,"\\").replace(Ku,"$1\\"),Aw0=/[\\\/]/,e6=0,Wu=1,Vu=2,n8=4,Gu=6,Uu=8,K7=10,zu=12,t6=15,yJ=~t6,vB=16,Ju=32,fJ=64,O8=128,X3=256,Y3=512,Yu=fJ|O8|Y3,Ew0=1023,xB=(Q)=>Q.isFile()?Uu:Q.isDirectory()?n8:Q.isSymbolicLink()?K7:Q.isCharacterDevice()?Vu:Q.isBlockDevice()?Gu:Q.isSocket()?zu:Q.isFIFO()?Wu:e6,Zu=new Map,gJ=(Q)=>{let X=Zu.get(Q);if(X)return X;let J=Q.normalize("NFKD");return Zu.set(Q,J),J},qu=new Map,J3=(Q)=>{let X=qu.get(Q);if(X)return X;let J=gJ(Q.toLowerCase());return qu.set(Q,J),J};class q3 extends $u.LRUCache{constructor(){super({max:256})}}p0.ResolveCache=q3;class kB extends $u.LRUCache{constructor(Q=16384){super({maxSize:Q,sizeCalculation:(X)=>X.length+1})}}p0.ChildrenCache=kB;var Bu=Symbol("PathScurry setAsCwd");class X6{name;root;roots;parent;nocase;isCWD=!1;#X;#Y;get dev(){return this.#Y}#J;get mode(){return this.#J}#Q;get nlink(){return this.#Q}#Z;get uid(){return this.#Z}#V;get gid(){return this.#V}#W;get rdev(){return this.#W}#G;get blksize(){return this.#G}#K;get ino(){return this.#K}#H;get size(){return this.#H}#q;get blocks(){return this.#q}#C;get atimeMs(){return this.#C}#F;get mtimeMs(){return this.#F}#I;get ctimeMs(){return this.#I}#B;get birthtimeMs(){return this.#B}#O;get atime(){return this.#O}#L;get mtime(){return this.#L}#j;get ctime(){return this.#j}#D;get birthtime(){return this.#D}#P;#N;#M;#z;#w;#T;#$;#v;#R;#_;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(Q,X=e6,J,Y,Z,q,$){if(this.name=Q,this.#P=Z?J3(Q):gJ(Q),this.#$=X&Ew0,this.nocase=Z,this.roots=Y,this.root=J||this,this.#v=q,this.#M=$.fullpath,this.#w=$.relative,this.#T=$.relativePosix,this.parent=$.parent,this.parent)this.#X=this.parent.#X;else this.#X=Hu($.fs)}depth(){if(this.#N!==void 0)return this.#N;if(!this.parent)return this.#N=0;return this.#N=this.parent.depth()+1}childrenCache(){return this.#v}resolve(Q){if(!Q)return this;let X=this.getRootString(Q),Y=Q.substring(X.length).split(this.splitSep);return X?this.getRoot(X).#x(Y):this.#x(Y)}#x(Q){let X=this;for(let J of Q)X=X.child(J);return X}children(){let Q=this.#v.get(this);if(Q)return Q;let X=Object.assign([],{provisional:0});return this.#v.set(this,X),this.#$&=~vB,X}child(Q,X){if(Q===""||Q===".")return this;if(Q==="..")return this.parent||this;let J=this.children(),Y=this.nocase?J3(Q):gJ(Q);for(let H of J)if(H.#P===Y)return H;let Z=this.parent?this.sep:"",q=this.#M?this.#M+Z+Q:void 0,$=this.newChild(Q,e6,{...X,parent:this,fullpath:q});if(!this.canReaddir())$.#$|=O8;return J.push($),$}relative(){if(this.isCWD)return"";if(this.#w!==void 0)return this.#w;let Q=this.name,X=this.parent;if(!X)return this.#w=this.name;let J=X.relative();return J+(!J||!X.parent?"":this.sep)+Q}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#T!==void 0)return this.#T;let Q=this.name,X=this.parent;if(!X)return this.#T=this.fullpathPosix();let J=X.relativePosix();return J+(!J||!X.parent?"":"/")+Q}fullpath(){if(this.#M!==void 0)return this.#M;let Q=this.name,X=this.parent;if(!X)return this.#M=this.name;let Y=X.fullpath()+(!X.parent?"":this.sep)+Q;return this.#M=Y}fullpathPosix(){if(this.#z!==void 0)return this.#z;if(this.sep==="/")return this.#z=this.fullpath();if(!this.parent){let Y=this.fullpath().replace(/\\/g,"/");if(/^[a-z]:\//i.test(Y))return this.#z=`//?/${Y}`;else return this.#z=Y}let Q=this.parent,X=Q.fullpathPosix(),J=X+(!X||!Q.parent?"":"/")+this.name;return this.#z=J}isUnknown(){return(this.#$&t6)===e6}isType(Q){return this[`is${Q}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#$&t6)===Uu}isDirectory(){return(this.#$&t6)===n8}isCharacterDevice(){return(this.#$&t6)===Vu}isBlockDevice(){return(this.#$&t6)===Gu}isFIFO(){return(this.#$&t6)===Wu}isSocket(){return(this.#$&t6)===zu}isSymbolicLink(){return(this.#$&K7)===K7}lstatCached(){return this.#$&Ju?this:void 0}readlinkCached(){return this.#R}realpathCached(){return this.#_}readdirCached(){let Q=this.children();return Q.slice(0,Q.provisional)}canReadlink(){if(this.#R)return!0;if(!this.parent)return!1;let Q=this.#$&t6;return!(Q!==e6&&Q!==K7||this.#$&X3||this.#$&O8)}calledReaddir(){return!!(this.#$&vB)}isENOENT(){return!!(this.#$&O8)}isNamed(Q){return!this.nocase?this.#P===gJ(Q):this.#P===J3(Q)}async readlink(){let Q=this.#R;if(Q)return Q;if(!this.canReadlink())return;if(!this.parent)return;try{let X=await this.#X.promises.readlink(this.fullpath()),J=(await this.parent.realpath())?.resolve(X);if(J)return this.#R=J}catch(X){this.#U(X.code);return}}readlinkSync(){let Q=this.#R;if(Q)return Q;if(!this.canReadlink())return;if(!this.parent)return;try{let X=this.#X.readlinkSync(this.fullpath()),J=this.parent.realpathSync()?.resolve(X);if(J)return this.#R=J}catch(X){this.#U(X.code);return}}#k(Q){this.#$|=vB;for(let X=Q.provisional;X<Q.length;X++){let J=Q[X];if(J)J.#y()}}#y(){if(this.#$&O8)return;this.#$=(this.#$|O8)&yJ,this.#A()}#A(){let Q=this.children();Q.provisional=0;for(let X of Q)X.#y()}#E(){this.#$|=Y3,this.#h()}#h(){if(this.#$&fJ)return;let Q=this.#$;if((Q&t6)===n8)Q&=yJ;this.#$=Q|fJ,this.#A()}#b(Q=""){if(Q==="ENOTDIR"||Q==="EPERM")this.#h();else if(Q==="ENOENT")this.#y();else this.children().provisional=0}#f(Q=""){if(Q==="ENOTDIR")this.parent.#h();else if(Q==="ENOENT")this.#y()}#U(Q=""){let X=this.#$;if(X|=X3,Q==="ENOENT")X|=O8;if(Q==="EINVAL"||Q==="UNKNOWN")X&=yJ;if(this.#$=X,Q==="ENOTDIR"&&this.parent)this.parent.#h()}#g(Q,X){return this.#S(Q,X)||this.#u(Q,X)}#u(Q,X){let J=xB(Q),Y=this.newChild(Q.name,J,{parent:this}),Z=Y.#$&t6;if(Z!==n8&&Z!==K7&&Z!==e6)Y.#$|=fJ;return X.unshift(Y),X.provisional++,Y}#S(Q,X){for(let J=X.provisional;J<X.length;J++){let Y=X[J];if((this.nocase?J3(Q.name):gJ(Q.name))!==Y.#P)continue;return this.#m(Q,Y,J,X)}}#m(Q,X,J,Y){let Z=X.name;if(X.#$=X.#$&yJ|xB(Q),Z!==Q.name)X.name=Q.name;if(J!==Y.provisional){if(J===Y.length-1)Y.pop();else Y.splice(J,1);Y.unshift(X)}return Y.provisional++,X}async lstat(){if((this.#$&O8)===0)try{return this.#p(await this.#X.promises.lstat(this.fullpath())),this}catch(Q){this.#f(Q.code)}}lstatSync(){if((this.#$&O8)===0)try{return this.#p(this.#X.lstatSync(this.fullpath())),this}catch(Q){this.#f(Q.code)}}#p(Q){let{atime:X,atimeMs:J,birthtime:Y,birthtimeMs:Z,blksize:q,blocks:$,ctime:H,ctimeMs:K,dev:V,gid:W,ino:G,mode:U,mtime:z,mtimeMs:L,nlink:B,rdev:M,size:I,uid:j}=Q;this.#O=X,this.#C=J,this.#D=Y,this.#B=Z,this.#G=q,this.#q=$,this.#j=H,this.#I=K,this.#Y=V,this.#V=W,this.#K=G,this.#J=U,this.#L=z,this.#F=L,this.#Q=B,this.#W=M,this.#H=I,this.#Z=j;let D=xB(Q);if(this.#$=this.#$&yJ|D|Ju,D!==e6&&D!==n8&&D!==K7)this.#$|=fJ}#c=[];#l=!1;#n(Q){this.#l=!1;let X=this.#c.slice();this.#c.length=0,X.forEach((J)=>J(null,Q))}readdirCB(Q,X=!1){if(!this.canReaddir()){if(X)Q(null,[]);else queueMicrotask(()=>Q(null,[]));return}let J=this.children();if(this.calledReaddir()){let Z=J.slice(0,J.provisional);if(X)Q(null,Z);else queueMicrotask(()=>Q(null,Z));return}if(this.#c.push(Q),this.#l)return;this.#l=!0;let Y=this.fullpath();this.#X.readdir(Y,{withFileTypes:!0},(Z,q)=>{if(Z)this.#b(Z.code),J.provisional=0;else{for(let $ of q)this.#g($,J);this.#k(J)}this.#n(J.slice(0,J.provisional));return})}#d;async readdir(){if(!this.canReaddir())return[];let Q=this.children();if(this.calledReaddir())return Q.slice(0,Q.provisional);let X=this.fullpath();if(this.#d)await this.#d;else{let J=()=>{};this.#d=new Promise((Y)=>J=Y);try{for(let Y of await this.#X.promises.readdir(X,{withFileTypes:!0}))this.#g(Y,Q);this.#k(Q)}catch(Y){this.#b(Y.code),Q.provisional=0}this.#d=void 0,J()}return Q.slice(0,Q.provisional)}readdirSync(){if(!this.canReaddir())return[];let Q=this.children();if(this.calledReaddir())return Q.slice(0,Q.provisional);let X=this.fullpath();try{for(let J of this.#X.readdirSync(X,{withFileTypes:!0}))this.#g(J,Q);this.#k(Q)}catch(J){this.#b(J.code),Q.provisional=0}return Q.slice(0,Q.provisional)}canReaddir(){if(this.#$&Yu)return!1;let Q=t6&this.#$;if(!(Q===e6||Q===n8||Q===K7))return!1;return!0}shouldWalk(Q,X){return(this.#$&n8)===n8&&!(this.#$&Yu)&&!Q.has(this)&&(!X||X(this))}async realpath(){if(this.#_)return this.#_;if((Y3|X3|O8)&this.#$)return;try{let Q=await this.#X.promises.realpath(this.fullpath());return this.#_=this.resolve(Q)}catch(Q){this.#E()}}realpathSync(){if(this.#_)return this.#_;if((Y3|X3|O8)&this.#$)return;try{let Q=this.#X.realpathSync(this.fullpath());return this.#_=this.resolve(Q)}catch(Q){this.#E()}}[Bu](Q){if(Q===this)return;Q.isCWD=!1,this.isCWD=!0;let X=new Set([]),J=[],Y=this;while(Y&&Y.parent)X.add(Y),Y.#w=J.join(this.sep),Y.#T=J.join("/"),Y=Y.parent,J.push("..");Y=Q;while(Y&&Y.parent&&!X.has(Y))Y.#w=void 0,Y.#T=void 0,Y=Y.parent}}p0.PathBase=X6;class uJ extends X6{sep="\\";splitSep=Aw0;constructor(Q,X=e6,J,Y,Z,q,$){super(Q,X,J,Y,Z,q,$)}newChild(Q,X=e6,J={}){return new uJ(Q,X,this.root,this.roots,this.nocase,this.childrenCache(),J)}getRootString(Q){return Z3.win32.parse(Q).root}getRoot(Q){if(Q=Tw0(Q.toUpperCase()),Q===this.root.name)return this.root;for(let[X,J]of Object.entries(this.roots))if(this.sameRoot(Q,X))return this.roots[Q]=J;return this.roots[Q]=new H3(Q,this).root}sameRoot(Q,X=this.root.name){return Q=Q.toUpperCase().replace(/\//g,"\\").replace(Ku,"$1\\"),Q===X}}p0.PathWin32=uJ;class mJ extends X6{splitSep="/";sep="/";constructor(Q,X=e6,J,Y,Z,q,$){super(Q,X,J,Y,Z,q,$)}getRootString(Q){return Q.startsWith("/")?"/":""}getRoot(Q){return this.root}newChild(Q,X=e6,J={}){return new mJ(Q,X,this.root,this.roots,this.nocase,this.childrenCache(),J)}}p0.PathPosix=mJ;class $3{root;rootPath;roots;cwd;#X;#Y;#J;nocase;#Q;constructor(Q=process.cwd(),X,J,{nocase:Y,childrenCacheSize:Z=16384,fs:q=bJ}={}){if(this.#Q=Hu(q),Q instanceof URL||Q.startsWith("file://"))Q=(0,Rw0.fileURLToPath)(Q);let $=X.resolve(Q);this.roots=Object.create(null),this.rootPath=this.parseRootPath($),this.#X=new q3,this.#Y=new q3,this.#J=new kB(Z);let H=$.substring(this.rootPath.length).split(J);if(H.length===1&&!H[0])H.pop();if(Y===void 0)throw TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=Y,this.root=this.newRoot(this.#Q),this.roots[this.rootPath]=this.root;let K=this.root,V=H.length-1,W=X.sep,G=this.rootPath,U=!1;for(let z of H){let L=V--;K=K.child(z,{relative:Array(L).fill("..").join(W),relativePosix:Array(L).fill("..").join("/"),fullpath:G+=(U?"":W)+z}),U=!0}this.cwd=K}depth(Q=this.cwd){if(typeof Q==="string")Q=this.cwd.resolve(Q);return Q.depth()}childrenCache(){return this.#J}resolve(...Q){let X="";for(let Z=Q.length-1;Z>=0;Z--){let q=Q[Z];if(!q||q===".")continue;if(X=X?`${q}/${X}`:q,this.isAbsolute(q))break}let J=this.#X.get(X);if(J!==void 0)return J;let Y=this.cwd.resolve(X).fullpath();return this.#X.set(X,Y),Y}resolvePosix(...Q){let X="";for(let Z=Q.length-1;Z>=0;Z--){let q=Q[Z];if(!q||q===".")continue;if(X=X?`${q}/${X}`:q,this.isAbsolute(q))break}let J=this.#Y.get(X);if(J!==void 0)return J;let Y=this.cwd.resolve(X).fullpathPosix();return this.#Y.set(X,Y),Y}relative(Q=this.cwd){if(typeof Q==="string")Q=this.cwd.resolve(Q);return Q.relative()}relativePosix(Q=this.cwd){if(typeof Q==="string")Q=this.cwd.resolve(Q);return Q.relativePosix()}basename(Q=this.cwd){if(typeof Q==="string")Q=this.cwd.resolve(Q);return Q.name}dirname(Q=this.cwd){if(typeof Q==="string")Q=this.cwd.resolve(Q);return(Q.parent||Q).fullpath()}async readdir(Q=this.cwd,X={withFileTypes:!0}){if(typeof Q==="string")Q=this.cwd.resolve(Q);else if(!(Q instanceof X6))X=Q,Q=this.cwd;let{withFileTypes:J}=X;if(!Q.canReaddir())return[];else{let Y=await Q.readdir();return J?Y:Y.map((Z)=>Z.name)}}readdirSync(Q=this.cwd,X={withFileTypes:!0}){if(typeof Q==="string")Q=this.cwd.resolve(Q);else if(!(Q instanceof X6))X=Q,Q=this.cwd;let{withFileTypes:J=!0}=X;if(!Q.canReaddir())return[];else if(J)return Q.readdirSync();else return Q.readdirSync().map((Y)=>Y.name)}async lstat(Q=this.cwd){if(typeof Q==="string")Q=this.cwd.resolve(Q);return Q.lstat()}lstatSync(Q=this.cwd){if(typeof Q==="string")Q=this.cwd.resolve(Q);return Q.lstatSync()}async readlink(Q=this.cwd,{withFileTypes:X}={withFileTypes:!1}){if(typeof Q==="string")Q=this.cwd.resolve(Q);else if(!(Q instanceof X6))X=Q.withFileTypes,Q=this.cwd;let J=await Q.readlink();return X?J:J?.fullpath()}readlinkSync(Q=this.cwd,{withFileTypes:X}={withFileTypes:!1}){if(typeof Q==="string")Q=this.cwd.resolve(Q);else if(!(Q instanceof X6))X=Q.withFileTypes,Q=this.cwd;let J=Q.readlinkSync();return X?J:J?.fullpath()}async realpath(Q=this.cwd,{withFileTypes:X}={withFileTypes:!1}){if(typeof Q==="string")Q=this.cwd.resolve(Q);else if(!(Q instanceof X6))X=Q.withFileTypes,Q=this.cwd;let J=await Q.realpath();return X?J:J?.fullpath()}realpathSync(Q=this.cwd,{withFileTypes:X}={withFileTypes:!1}){if(typeof Q==="string")Q=this.cwd.resolve(Q);else if(!(Q instanceof X6))X=Q.withFileTypes,Q=this.cwd;let J=Q.realpathSync();return X?J:J?.fullpath()}async walk(Q=this.cwd,X={}){if(typeof Q==="string")Q=this.cwd.resolve(Q);else if(!(Q instanceof X6))X=Q,Q=this.cwd;let{withFileTypes:J=!0,follow:Y=!1,filter:Z,walkFilter:q}=X,$=[];if(!Z||Z(Q))$.push(J?Q:Q.fullpath());let H=new Set,K=(W,G)=>{H.add(W),W.readdirCB((U,z)=>{if(U)return G(U);let L=z.length;if(!L)return G();let B=()=>{if(--L===0)G()};for(let M of z){if(!Z||Z(M))$.push(J?M:M.fullpath());if(Y&&M.isSymbolicLink())M.realpath().then((I)=>I?.isUnknown()?I.lstat():I).then((I)=>I?.shouldWalk(H,q)?K(I,B):B());else if(M.shouldWalk(H,q))K(M,B);else B()}},!0)},V=Q;return new Promise((W,G)=>{K(V,(U)=>{if(U)return G(U);W($)})})}walkSync(Q=this.cwd,X={}){if(typeof Q==="string")Q=this.cwd.resolve(Q);else if(!(Q instanceof X6))X=Q,Q=this.cwd;let{withFileTypes:J=!0,follow:Y=!1,filter:Z,walkFilter:q}=X,$=[];if(!Z||Z(Q))$.push(J?Q:Q.fullpath());let H=new Set([Q]);for(let K of H){let V=K.readdirSync();for(let W of V){if(!Z||Z(W))$.push(J?W:W.fullpath());let G=W;if(W.isSymbolicLink()){if(!(Y&&(G=W.realpathSync())))continue;if(G.isUnknown())G.lstatSync()}if(G.shouldWalk(H,q))H.add(G)}}return $}[Symbol.asyncIterator](){return this.iterate()}iterate(Q=this.cwd,X={}){if(typeof Q==="string")Q=this.cwd.resolve(Q);else if(!(Q instanceof X6))X=Q,Q=this.cwd;return this.stream(Q,X)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(Q=this.cwd,X={}){if(typeof Q==="string")Q=this.cwd.resolve(Q);else if(!(Q instanceof X6))X=Q,Q=this.cwd;let{withFileTypes:J=!0,follow:Y=!1,filter:Z,walkFilter:q}=X;if(!Z||Z(Q))yield J?Q:Q.fullpath();let $=new Set([Q]);for(let H of $){let K=H.readdirSync();for(let V of K){if(!Z||Z(V))yield J?V:V.fullpath();let W=V;if(V.isSymbolicLink()){if(!(Y&&(W=V.realpathSync())))continue;if(W.isUnknown())W.lstatSync()}if(W.shouldWalk($,q))$.add(W)}}}stream(Q=this.cwd,X={}){if(typeof Q==="string")Q=this.cwd.resolve(Q);else if(!(Q instanceof X6))X=Q,Q=this.cwd;let{withFileTypes:J=!0,follow:Y=!1,filter:Z,walkFilter:q}=X,$=new Xu.Minipass({objectMode:!0});if(!Z||Z(Q))$.write(J?Q:Q.fullpath());let H=new Set,K=[Q],V=0,W=()=>{let G=!1;while(!G){let U=K.shift();if(!U){if(V===0)$.end();return}V++,H.add(U);let z=(B,M,I=!1)=>{if(B)return $.emit("error",B);if(Y&&!I){let j=[];for(let D of M)if(D.isSymbolicLink())j.push(D.realpath().then((N)=>N?.isUnknown()?N.lstat():N));if(j.length){Promise.all(j).then(()=>z(null,M,!0));return}}for(let j of M)if(j&&(!Z||Z(j))){if(!$.write(J?j:j.fullpath()))G=!0}V--;for(let j of M){let D=j.realpathCached()||j;if(D.shouldWalk(H,q))K.push(D)}if(G&&!$.flowing)$.once("drain",W);else if(!L)W()},L=!0;U.readdirCB(z,!0),L=!1}};return W(),$}streamSync(Q=this.cwd,X={}){if(typeof Q==="string")Q=this.cwd.resolve(Q);else if(!(Q instanceof X6))X=Q,Q=this.cwd;let{withFileTypes:J=!0,follow:Y=!1,filter:Z,walkFilter:q}=X,$=new Xu.Minipass({objectMode:!0}),H=new Set;if(!Z||Z(Q))$.write(J?Q:Q.fullpath());let K=[Q],V=0,W=()=>{let G=!1;while(!G){let U=K.shift();if(!U){if(V===0)$.end();return}V++,H.add(U);let z=U.readdirSync();for(let L of z)if(!Z||Z(L)){if(!$.write(J?L:L.fullpath()))G=!0}V--;for(let L of z){let B=L;if(L.isSymbolicLink()){if(!(Y&&(B=L.realpathSync())))continue;if(B.isUnknown())B.lstatSync()}if(B.shouldWalk(H,q))K.push(B)}}if(G&&!$.flowing)$.once("drain",W)};return W(),$}chdir(Q=this.cwd){let X=this.cwd;this.cwd=typeof Q==="string"?this.cwd.resolve(Q):Q,this.cwd[Bu](X)}}p0.PathScurryBase=$3;class H3 extends $3{sep="\\";constructor(Q=process.cwd(),X={}){let{nocase:J=!0}=X;super(Q,Z3.win32,"\\",{...X,nocase:J});this.nocase=J;for(let Y=this.cwd;Y;Y=Y.parent)Y.nocase=this.nocase}parseRootPath(Q){return Z3.win32.parse(Q).root.toUpperCase()}newRoot(Q){return new uJ(this.rootPath,n8,void 0,this.roots,this.nocase,this.childrenCache(),{fs:Q})}isAbsolute(Q){return Q.startsWith("/")||Q.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(Q)}}p0.PathScurryWin32=H3;class K3 extends $3{sep="/";constructor(Q=process.cwd(),X={}){let{nocase:J=!1}=X;super(Q,Z3.posix,"/",{...X,nocase:J});this.nocase=J}parseRootPath(Q){return"/"}newRoot(Q){return new mJ(this.rootPath,n8,void 0,this.roots,this.nocase,this.childrenCache(),{fs:Q})}isAbsolute(Q){return Q.startsWith("/")}}p0.PathScurryPosix=K3;class yB extends K3{constructor(Q=process.cwd(),X={}){let{nocase:J=!0}=X;super(Q,{...X,nocase:J})}}p0.PathScurryDarwin=yB;p0.Path=process.platform==="win32"?uJ:mJ;p0.PathScurry=process.platform==="win32"?H3:process.platform==="darwin"?yB:K3});var bB=F((Fu)=>{Object.defineProperty(Fu,"__esModule",{value:!0});Fu.Pattern=void 0;var _w0=X5(),Sw0=(Q)=>Q.length>=1,vw0=(Q)=>Q.length>=1;class hB{#X;#Y;#J;length;#Q;#Z;#V;#W;#G;#K;#H=!0;constructor(Q,X,J,Y){if(!Sw0(Q))throw TypeError("empty pattern list");if(!vw0(X))throw TypeError("empty glob list");if(X.length!==Q.length)throw TypeError("mismatched pattern list and glob list lengths");if(this.length=Q.length,J<0||J>=this.length)throw TypeError("index out of range");if(this.#X=Q,this.#Y=X,this.#J=J,this.#Q=Y,this.#J===0){if(this.isUNC()){let[Z,q,$,H,...K]=this.#X,[V,W,G,U,...z]=this.#Y;if(K[0]==="")K.shift(),z.shift();let L=[Z,q,$,H,""].join("/"),B=[V,W,G,U,""].join("/");this.#X=[L,...K],this.#Y=[B,...z],this.length=this.#X.length}else if(this.isDrive()||this.isAbsolute()){let[Z,...q]=this.#X,[$,...H]=this.#Y;if(q[0]==="")q.shift(),H.shift();let K=Z+"/",V=$+"/";this.#X=[K,...q],this.#Y=[V,...H],this.length=this.#X.length}}}pattern(){return this.#X[this.#J]}isString(){return typeof this.#X[this.#J]==="string"}isGlobstar(){return this.#X[this.#J]===_w0.GLOBSTAR}isRegExp(){return this.#X[this.#J]instanceof RegExp}globString(){return this.#V=this.#V||(this.#J===0?this.isAbsolute()?this.#Y[0]+this.#Y.slice(1).join("/"):this.#Y.join("/"):this.#Y.slice(this.#J).join("/"))}hasMore(){return this.length>this.#J+1}rest(){if(this.#Z!==void 0)return this.#Z;if(!this.hasMore())return this.#Z=null;return this.#Z=new hB(this.#X,this.#Y,this.#J+1,this.#Q),this.#Z.#K=this.#K,this.#Z.#G=this.#G,this.#Z.#W=this.#W,this.#Z}isUNC(){let Q=this.#X;return this.#G!==void 0?this.#G:this.#G=this.#Q==="win32"&&this.#J===0&&Q[0]===""&&Q[1]===""&&typeof Q[2]==="string"&&!!Q[2]&&typeof Q[3]==="string"&&!!Q[3]}isDrive(){let Q=this.#X;return this.#W!==void 0?this.#W:this.#W=this.#Q==="win32"&&this.#J===0&&this.length>1&&typeof Q[0]==="string"&&/^[a-z]:$/i.test(Q[0])}isAbsolute(){let Q=this.#X;return this.#K!==void 0?this.#K:this.#K=Q[0]===""&&Q.length>1||this.isDrive()||this.isUNC()}root(){let Q=this.#X[0];return typeof Q==="string"&&this.isAbsolute()&&this.#J===0?Q:""}checkFollowGlobstar(){return!(this.#J===0||!this.isGlobstar()||!this.#H)}markFollowGlobstar(){if(this.#J===0||!this.isGlobstar()||!this.#H)return!1;return this.#H=!1,!0}}Fu.Pattern=hB});var fB=F((Cu)=>{Object.defineProperty(Cu,"__esModule",{value:!0});Cu.Ignore=void 0;var Iu=X5(),xw0=bB(),kw0=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Pu{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(Q,{nobrace:X,nocase:J,noext:Y,noglobstar:Z,platform:q=kw0}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=q,this.mmopts={dot:!0,nobrace:X,nocase:J,noext:Y,noglobstar:Z,optimizationLevel:2,platform:q,nocomment:!0,nonegate:!0};for(let $ of Q)this.add($)}add(Q){let X=new Iu.Minimatch(Q,this.mmopts);for(let J=0;J<X.set.length;J++){let Y=X.set[J],Z=X.globParts[J];if(!Y||!Z)throw Error("invalid pattern object");while(Y[0]==="."&&Z[0]===".")Y.shift(),Z.shift();let q=new xw0.Pattern(Y,Z,0,this.platform),$=new Iu.Minimatch(q.globString(),this.mmopts),H=Z[Z.length-1]==="**",K=q.isAbsolute();if(K)this.absolute.push($);else this.relative.push($);if(H)if(K)this.absoluteChildren.push($);else this.relativeChildren.push($)}}ignored(Q){let X=Q.fullpath(),J=`${X}/`,Y=Q.relative()||".",Z=`${Y}/`;for(let q of this.relative)if(q.match(Y)||q.match(Z))return!0;for(let q of this.absolute)if(q.match(X)||q.match(J))return!0;return!1}childrenIgnored(Q){let X=Q.fullpath()+"/",J=(Q.relative()||".")+"/";for(let Y of this.relativeChildren)if(Y.match(J))return!0;for(let Y of this.absoluteChildren)if(Y.match(X))return!0;return!1}}Cu.Ignore=Pu});var Du=F((Nu)=>{Object.defineProperty(Nu,"__esModule",{value:!0});Nu.Processor=Nu.SubWalks=Nu.MatchRecord=Nu.HasWalkedCache=void 0;var ju=X5();class W3{store;constructor(Q=new Map){this.store=Q}copy(){return new W3(new Map(this.store))}hasWalked(Q,X){return this.store.get(Q.fullpath())?.has(X.globString())}storeWalked(Q,X){let J=Q.fullpath(),Y=this.store.get(J);if(Y)Y.add(X.globString());else this.store.set(J,new Set([X.globString()]))}}Nu.HasWalkedCache=W3;class gB{store=new Map;add(Q,X,J){let Y=(X?2:0)|(J?1:0),Z=this.store.get(Q);this.store.set(Q,Z===void 0?Y:Y&Z)}entries(){return[...this.store.entries()].map(([Q,X])=>[Q,!!(X&2),!!(X&1)])}}Nu.MatchRecord=gB;class uB{store=new Map;add(Q,X){if(!Q.canReaddir())return;let J=this.store.get(Q);if(J){if(!J.find((Y)=>Y.globString()===X.globString()))J.push(X)}else this.store.set(Q,[X])}get(Q){let X=this.store.get(Q);if(!X)throw Error("attempting to walk unknown path");return X}entries(){return this.keys().map((Q)=>[Q,this.store.get(Q)])}keys(){return[...this.store.keys()].filter((Q)=>Q.canReaddir())}}Nu.SubWalks=uB;class mB{hasWalkedCache;matches=new gB;subwalks=new uB;patterns;follow;dot;opts;constructor(Q,X){this.opts=Q,this.follow=!!Q.follow,this.dot=!!Q.dot,this.hasWalkedCache=X?X.copy():new W3}processPatterns(Q,X){this.patterns=X;let J=X.map((Y)=>[Q,Y]);for(let[Y,Z]of J){this.hasWalkedCache.storeWalked(Y,Z);let q=Z.root(),$=Z.isAbsolute()&&this.opts.absolute!==!1;if(q){Y=Y.resolve(q==="/"&&this.opts.root!==void 0?this.opts.root:q);let W=Z.rest();if(!W){this.matches.add(Y,!0,!1);continue}else Z=W}if(Y.isENOENT())continue;let H,K,V=!1;while(typeof(H=Z.pattern())==="string"&&(K=Z.rest()))Y=Y.resolve(H),Z=K,V=!0;if(H=Z.pattern(),K=Z.rest(),V){if(this.hasWalkedCache.hasWalked(Y,Z))continue;this.hasWalkedCache.storeWalked(Y,Z)}if(typeof H==="string"){let W=H===".."||H===""||H===".";this.matches.add(Y.resolve(H),$,W);continue}else if(H===ju.GLOBSTAR){if(!Y.isSymbolicLink()||this.follow||Z.checkFollowGlobstar())this.subwalks.add(Y,Z);let W=K?.pattern(),G=K?.rest();if(!K||(W===""||W===".")&&!G)this.matches.add(Y,$,W===""||W===".");else if(W===".."){let U=Y.parent||Y;if(!G)this.matches.add(U,$,!0);else if(!this.hasWalkedCache.hasWalked(U,G))this.subwalks.add(U,G)}}else if(H instanceof RegExp)this.subwalks.add(Y,Z)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new mB(this.opts,this.hasWalkedCache)}filterEntries(Q,X){let J=this.subwalks.get(Q),Y=this.child();for(let Z of X)for(let q of J){let $=q.isAbsolute(),H=q.pattern(),K=q.rest();if(H===ju.GLOBSTAR)Y.testGlobstar(Z,q,K,$);else if(H instanceof RegExp)Y.testRegExp(Z,H,K,$);else Y.testString(Z,H,K,$)}return Y}testGlobstar(Q,X,J,Y){if(this.dot||!Q.name.startsWith(".")){if(!X.hasMore())this.matches.add(Q,Y,!1);if(Q.canReaddir()){if(this.follow||!Q.isSymbolicLink())this.subwalks.add(Q,X);else if(Q.isSymbolicLink()){if(J&&X.checkFollowGlobstar())this.subwalks.add(Q,J);else if(X.markFollowGlobstar())this.subwalks.add(Q,X)}}}if(J){let Z=J.pattern();if(typeof Z==="string"&&Z!==".."&&Z!==""&&Z!==".")this.testString(Q,Z,J.rest(),Y);else if(Z===".."){let q=Q.parent||Q;this.subwalks.add(q,J)}else if(Z instanceof RegExp)this.testRegExp(Q,Z,J.rest(),Y)}}testRegExp(Q,X,J,Y){if(!X.test(Q.name))return;if(!J)this.matches.add(Q,Y,!1);else this.subwalks.add(Q,J)}testString(Q,X,J,Y){if(!Q.isNamed(X))return;if(!J)this.matches.add(Q,Y,!1);else this.subwalks.add(Q,J)}}Nu.Processor=mB});var vu=F((_u)=>{Object.defineProperty(_u,"__esModule",{value:!0});_u.GlobStream=_u.GlobWalker=_u.GlobUtil=void 0;var fw0=SB(),wu=fB(),Tu=Du(),gw0=(Q,X)=>typeof Q==="string"?new wu.Ignore([Q],X):Array.isArray(Q)?new wu.Ignore(Q,X):Q;class V3{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#X=[];#Y;#J;signal;maxDepth;includeChildMatches;constructor(Q,X,J){if(this.patterns=Q,this.path=X,this.opts=J,this.#J=!J.posix&&J.platform==="win32"?"\\":"/",this.includeChildMatches=J.includeChildMatches!==!1,J.ignore||!this.includeChildMatches){if(this.#Y=gw0(J.ignore??[],J),!this.includeChildMatches&&typeof this.#Y.add!=="function")throw Error("cannot ignore child matches, ignore lacks add() method.")}if(this.maxDepth=J.maxDepth||1/0,J.signal)this.signal=J.signal,this.signal.addEventListener("abort",()=>{this.#X.length=0})}#Q(Q){return this.seen.has(Q)||!!this.#Y?.ignored?.(Q)}#Z(Q){return!!this.#Y?.childrenIgnored?.(Q)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let Q=void 0;while(!this.paused&&(Q=this.#X.shift()))Q()}onResume(Q){if(this.signal?.aborted)return;if(!this.paused)Q();else this.#X.push(Q)}async matchCheck(Q,X){if(X&&this.opts.nodir)return;let J;if(this.opts.realpath){if(J=Q.realpathCached()||await Q.realpath(),!J)return;Q=J}let Z=Q.isUnknown()||this.opts.stat?await Q.lstat():Q;if(this.opts.follow&&this.opts.nodir&&Z?.isSymbolicLink()){let q=await Z.realpath();if(q&&(q.isUnknown()||this.opts.stat))await q.lstat()}return this.matchCheckTest(Z,X)}matchCheckTest(Q,X){return Q&&(this.maxDepth===1/0||Q.depth()<=this.maxDepth)&&(!X||Q.canReaddir())&&(!this.opts.nodir||!Q.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!Q.isSymbolicLink()||!Q.realpathCached()?.isDirectory())&&!this.#Q(Q)?Q:void 0}matchCheckSync(Q,X){if(X&&this.opts.nodir)return;let J;if(this.opts.realpath){if(J=Q.realpathCached()||Q.realpathSync(),!J)return;Q=J}let Z=Q.isUnknown()||this.opts.stat?Q.lstatSync():Q;if(this.opts.follow&&this.opts.nodir&&Z?.isSymbolicLink()){let q=Z.realpathSync();if(q&&(q?.isUnknown()||this.opts.stat))q.lstatSync()}return this.matchCheckTest(Z,X)}matchFinish(Q,X){if(this.#Q(Q))return;if(!this.includeChildMatches&&this.#Y?.add){let Z=`${Q.relativePosix()}/**`;this.#Y.add(Z)}let J=this.opts.absolute===void 0?X:this.opts.absolute;this.seen.add(Q);let Y=this.opts.mark&&Q.isDirectory()?this.#J:"";if(this.opts.withFileTypes)this.matchEmit(Q);else if(J){let Z=this.opts.posix?Q.fullpathPosix():Q.fullpath();this.matchEmit(Z+Y)}else{let Z=this.opts.posix?Q.relativePosix():Q.relative(),q=this.opts.dotRelative&&!Z.startsWith(".."+this.#J)?"."+this.#J:"";this.matchEmit(!Z?"."+Y:q+Z+Y)}}async match(Q,X,J){let Y=await this.matchCheck(Q,J);if(Y)this.matchFinish(Y,X)}matchSync(Q,X,J){let Y=this.matchCheckSync(Q,J);if(Y)this.matchFinish(Y,X)}walkCB(Q,X,J){if(this.signal?.aborted)J();this.walkCB2(Q,X,new Tu.Processor(this.opts),J)}walkCB2(Q,X,J,Y){if(this.#Z(Q))return Y();if(this.signal?.aborted)Y();if(this.paused){this.onResume(()=>this.walkCB2(Q,X,J,Y));return}J.processPatterns(Q,X);let Z=1,q=()=>{if(--Z===0)Y()};for(let[$,H,K]of J.matches.entries()){if(this.#Q($))continue;Z++,this.match($,H,K).then(()=>q())}for(let $ of J.subwalkTargets()){if(this.maxDepth!==1/0&&$.depth()>=this.maxDepth)continue;Z++;let H=$.readdirCached();if($.calledReaddir())this.walkCB3($,H,J,q);else $.readdirCB((K,V)=>this.walkCB3($,V,J,q),!0)}q()}walkCB3(Q,X,J,Y){J=J.filterEntries(Q,X);let Z=1,q=()=>{if(--Z===0)Y()};for(let[$,H,K]of J.matches.entries()){if(this.#Q($))continue;Z++,this.match($,H,K).then(()=>q())}for(let[$,H]of J.subwalks.entries())Z++,this.walkCB2($,H,J.child(),q);q()}walkCBSync(Q,X,J){if(this.signal?.aborted)J();this.walkCB2Sync(Q,X,new Tu.Processor(this.opts),J)}walkCB2Sync(Q,X,J,Y){if(this.#Z(Q))return Y();if(this.signal?.aborted)Y();if(this.paused){this.onResume(()=>this.walkCB2Sync(Q,X,J,Y));return}J.processPatterns(Q,X);let Z=1,q=()=>{if(--Z===0)Y()};for(let[$,H,K]of J.matches.entries()){if(this.#Q($))continue;this.matchSync($,H,K)}for(let $ of J.subwalkTargets()){if(this.maxDepth!==1/0&&$.depth()>=this.maxDepth)continue;Z++;let H=$.readdirSync();this.walkCB3Sync($,H,J,q)}q()}walkCB3Sync(Q,X,J,Y){J=J.filterEntries(Q,X);let Z=1,q=()=>{if(--Z===0)Y()};for(let[$,H,K]of J.matches.entries()){if(this.#Q($))continue;this.matchSync($,H,K)}for(let[$,H]of J.subwalks.entries())Z++,this.walkCB2Sync($,H,J.child(),q);q()}}_u.GlobUtil=V3;class Au extends V3{matches=new Set;constructor(Q,X,J){super(Q,X,J)}matchEmit(Q){this.matches.add(Q)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown())await this.path.lstat();return await new Promise((Q,X)=>{this.walkCB(this.path,this.patterns,()=>{if(this.signal?.aborted)X(this.signal.reason);else Q(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown())this.path.lstatSync();return this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}}_u.GlobWalker=Au;class Eu extends V3{results;constructor(Q,X,J){super(Q,X,J);this.results=new fw0.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(Q){if(this.results.write(Q),!this.results.flowing)this.pause()}stream(){let Q=this.path;if(Q.isUnknown())Q.lstat().then(()=>{this.walkCB(Q,this.patterns,()=>this.results.end())});else this.walkCB(Q,this.patterns,()=>this.results.end());return this.results}streamSync(){if(this.path.isUnknown())this.path.lstatSync();return this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}}_u.GlobStream=Eu});var dB=F((ku)=>{Object.defineProperty(ku,"__esModule",{value:!0});ku.Glob=void 0;var dw0=X5(),cw0=l("node:url"),G3=Lu(),lw0=bB(),U3=vu(),pw0=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class xu{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(Q,X){if(!X)throw TypeError("glob options required");if(this.withFileTypes=!!X.withFileTypes,this.signal=X.signal,this.follow=!!X.follow,this.dot=!!X.dot,this.dotRelative=!!X.dotRelative,this.nodir=!!X.nodir,this.mark=!!X.mark,!X.cwd)this.cwd="";else if(X.cwd instanceof URL||X.cwd.startsWith("file://"))X.cwd=(0,cw0.fileURLToPath)(X.cwd);if(this.cwd=X.cwd||"",this.root=X.root,this.magicalBraces=!!X.magicalBraces,this.nobrace=!!X.nobrace,this.noext=!!X.noext,this.realpath=!!X.realpath,this.absolute=X.absolute,this.includeChildMatches=X.includeChildMatches!==!1,this.noglobstar=!!X.noglobstar,this.matchBase=!!X.matchBase,this.maxDepth=typeof X.maxDepth==="number"?X.maxDepth:1/0,this.stat=!!X.stat,this.ignore=X.ignore,this.withFileTypes&&this.absolute!==void 0)throw Error("cannot set absolute and withFileTypes:true");if(typeof Q==="string")Q=[Q];if(this.windowsPathsNoEscape=!!X.windowsPathsNoEscape||X.allowWindowsEscape===!1,this.windowsPathsNoEscape)Q=Q.map((H)=>H.replace(/\\/g,"/"));if(this.matchBase){if(X.noglobstar)throw TypeError("base matching requires globstar");Q=Q.map((H)=>H.includes("/")?H:`./**/${H}`)}if(this.pattern=Q,this.platform=X.platform||pw0,this.opts={...X,platform:this.platform},X.scurry){if(this.scurry=X.scurry,X.nocase!==void 0&&X.nocase!==X.scurry.nocase)throw Error("nocase option contradicts provided scurry option")}else{let H=X.platform==="win32"?G3.PathScurryWin32:X.platform==="darwin"?G3.PathScurryDarwin:X.platform?G3.PathScurryPosix:G3.PathScurry;this.scurry=new H(this.cwd,{nocase:X.nocase,fs:X.fs})}this.nocase=this.scurry.nocase;let J=this.platform==="darwin"||this.platform==="win32",Y={...X,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:J,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},Z=this.pattern.map((H)=>new dw0.Minimatch(H,Y)),[q,$]=Z.reduce((H,K)=>{return H[0].push(...K.set),H[1].push(...K.globParts),H},[[],[]]);this.patterns=q.map((H,K)=>{let V=$[K];if(!V)throw Error("invalid pattern object");return new lw0.Pattern(H,V,0,this.platform)})}async walk(){return[...await new U3.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new U3.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new U3.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new U3.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}ku.Glob=xu});var cB=F((hu)=>{Object.defineProperty(hu,"__esModule",{value:!0});hu.hasMagic=void 0;var nw0=X5(),iw0=(Q,X={})=>{if(!Array.isArray(Q))Q=[Q];for(let J of Q)if(new nw0.Minimatch(J,X).hasMagic())return!0;return!1};hu.hasMagic=iw0});var nu=F((V7)=>{Object.defineProperty(V7,"__esModule",{value:!0});V7.glob=V7.sync=V7.iterate=V7.iterateSync=V7.stream=V7.streamSync=V7.Ignore=V7.hasMagic=V7.Glob=V7.unescape=V7.escape=void 0;V7.globStreamSync=dJ;V7.globStream=lB;V7.globSync=pB;V7.globIterateSync=cJ;V7.globIterate=nB;var fu=X5(),W7=dB(),ow0=cB(),uu=X5();Object.defineProperty(V7,"escape",{enumerable:!0,get:function(){return uu.escape}});Object.defineProperty(V7,"unescape",{enumerable:!0,get:function(){return uu.unescape}});var rw0=dB();Object.defineProperty(V7,"Glob",{enumerable:!0,get:function(){return rw0.Glob}});var sw0=cB();Object.defineProperty(V7,"hasMagic",{enumerable:!0,get:function(){return sw0.hasMagic}});var aw0=fB();Object.defineProperty(V7,"Ignore",{enumerable:!0,get:function(){return aw0.Ignore}});function dJ(Q,X={}){return new W7.Glob(Q,X).streamSync()}function lB(Q,X={}){return new W7.Glob(Q,X).stream()}function pB(Q,X={}){return new W7.Glob(Q,X).walkSync()}async function gu(Q,X={}){return new W7.Glob(Q,X).walk()}function cJ(Q,X={}){return new W7.Glob(Q,X).iterateSync()}function nB(Q,X={}){return new W7.Glob(Q,X).iterate()}V7.streamSync=dJ;V7.stream=Object.assign(lB,{sync:dJ});V7.iterateSync=cJ;V7.iterate=Object.assign(nB,{sync:cJ});V7.sync=Object.assign(pB,{stream:dJ,iterate:cJ});V7.glob=Object.assign(gu,{glob:gu,globSync:pB,sync:V7.sync,globStream:lB,stream:V7.stream,globStreamSync:dJ,streamSync:V7.streamSync,globIterate:nB,iterate:V7.iterate,globIterateSync:cJ,iterateSync:V7.iterateSync,Glob:W7.Glob,hasMagic:ow0.hasMagic,escape:fu.escape,unescape:fu.unescape});V7.glob.glob=V7.glob});var su=F((b81,ru)=>{var ou=FU(),m9=l("path"),iB=Db(),YT0=uf(),ZT0=tf(),qT0=qg(),$T0=nu(),G7=ru.exports={},iu=/[\/\\]/g,HT0=function(Q,X){var J=[];return iB(Q).forEach(function(Y){var Z=Y.indexOf("!")===0;if(Z)Y=Y.slice(1);var q=X(Y);if(Z)J=YT0(J,q);else J=ZT0(J,q)}),J};G7.exists=function(){var Q=m9.join.apply(m9,arguments);return ou.existsSync(Q)};G7.expand=function(...Q){var X=qT0(Q[0])?Q.shift():{},J=Array.isArray(Q[0])?Q[0]:Q;if(J.length===0)return[];var Y=HT0(J,function(Z){return $T0.sync(Z,X)});if(X.filter)Y=Y.filter(function(Z){Z=m9.join(X.cwd||"",Z);try{if(typeof X.filter==="function")return X.filter(Z);else return ou.statSync(Z)[X.filter]()}catch(q){return!1}});return Y};G7.expandMapping=function(Q,X,J){J=Object.assign({rename:function(q,$){return m9.join(q||"",$)}},J);var Y=[],Z={};return G7.expand(J,Q).forEach(function(q){var $=q;if(J.flatten)$=m9.basename($);if(J.ext)$=$.replace(/(\.[^\/]*)?$/,J.ext);var H=J.rename(X,$,J);if(J.cwd)q=m9.join(J.cwd,q);if(H=H.replace(iu,"/"),q=q.replace(iu,"/"),Z[H])Z[H].src.push(q);else Y.push({src:[q],dest:H}),Z[H]=Y[Y.length-1]}),Y};G7.normalizeFilesArray=function(Q){var X=[];if(Q.forEach(function(J){var Y;if("src"in J||"dest"in J)X.push(J)}),X.length===0)return[];return X=_(X).chain().forEach(function(J){if(!("src"in J)||!J.src)return;if(Array.isArray(J.src))J.src=iB(J.src);else J.src=[J.src]}).map(function(J){var Y=Object.assign({},J);if(delete Y.src,delete Y.dest,J.expand)return G7.expandMapping(J.src,J.dest,Y).map(function(q){var $=Object.assign({},J);return $.orig=Object.assign({},J),$.src=q.src,$.dest=q.dest,["expand","cwd","flatten","rename","ext"].forEach(function(H){delete $[H]}),$});var Z=Object.assign({},J);if(Z.orig=Object.assign({},J),"src"in Z)Object.defineProperty(Z,"src",{enumerable:!0,get:function q(){var $;if(!("result"in q))$=J.src,$=Array.isArray($)?iB($):[$],q.result=G7.expand(Y,$);return q.result}});if("dest"in Z)Z.dest=J.dest;return Z}).flatten().value(),X}});var d9=F((g81,eu)=>{var oB=FU(),au=l("path"),KT0=ES(),WT0=Rv(),tu=bU(),VT0=Zk(),f81=l("stream").Stream,GT0=$7().PassThrough,S6=eu.exports={};S6.file=su();S6.collectStream=function(Q,X){var J=[],Y=0;Q.on("error",X),Q.on("data",function(Z){J.push(Z),Y+=Z.length}),Q.on("end",function(){var Z=Buffer.alloc(Y),q=0;J.forEach(function($){$.copy(Z,q),q+=$.length}),X(null,Z)})};S6.dateify=function(Q){if(Q=Q||new Date,Q instanceof Date)Q=Q;else if(typeof Q==="string")Q=new Date(Q);else Q=new Date;return Q};S6.defaults=function(Q,X,J){var Y=arguments;return Y[0]=Y[0]||{},VT0(...Y)};S6.isStream=function(Q){return KT0(Q)};S6.lazyReadStream=function(Q){return new WT0.Readable(function(){return oB.createReadStream(Q)})};S6.normalizeInputSource=function(Q){if(Q===null)return Buffer.alloc(0);else if(typeof Q==="string")return Buffer.from(Q);else if(S6.isStream(Q))return Q.pipe(new GT0);return Q};S6.sanitizePath=function(Q){return tu(Q,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};S6.trailingSlashIt=function(Q){return Q.slice(-1)!=="/"?Q+"/":Q};S6.unixifyPath=function(Q){return tu(Q,!1).replace(/^\w+:/,"")};S6.walkdir=function(Q,X,J){var Y=[];if(typeof X==="function")J=X,X=Q;oB.readdir(Q,function(Z,q){var $=0,H,K;if(Z)return J(Z);(function V(){if(H=q[$++],!H)return J(null,Y);K=au.join(Q,H),oB.stat(K,function(W,G){if(Y.push({path:K,relative:au.relative(X,K).replace(/\\/g,"/"),stats:G}),G&&G.isDirectory())S6.walkdir(K,X,function(U,z){if(U)return J(U);z.forEach(function(L){Y.push(L)}),V()});else V()})})()})}});var Ym=F((Xm,Jm)=>{var UT0=l("util"),zT0={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function Qm(Q,X){Error.captureStackTrace(this,this.constructor),this.message=zT0[Q]||Q,this.code=Q,this.data=X}UT0.inherits(Qm,Error);Xm=Jm.exports=Qm});var Km=F((u81,Hm)=>{var aB=l("fs"),qm=FS(),Zm=IS(),rB=l("path"),i8=d9(),BT0=l("util").inherits,z1=Ym(),$m=$7().Transform,sB=process.platform==="win32",u0=function(Q,X){if(!(this instanceof u0))return new u0(Q,X);if(typeof Q!=="string")X=Q,Q="zip";X=this.options=i8.defaults(X,{highWaterMark:1048576,statConcurrency:4}),$m.call(this,X),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=Zm.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=Zm.queue(this._onStatQueueTask.bind(this),X.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};BT0(u0,$m);u0.prototype._abort=function(){if(this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle())this._shutdown()};u0.prototype._append=function(Q,X){X=X||{};var J={source:null,filepath:Q};if(!X.name)X.name=Q;if(X.sourcePath=Q,J.data=X,this._entriesCount++,X.stats&&X.stats instanceof aB.Stats){if(J=this._updateQueueTaskWithStats(J,X.stats),J){if(X.stats.size)this._fsEntriesTotalBytes+=X.stats.size;this._queue.push(J)}}else this._statQueue.push(J)};u0.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted)return;this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0};u0.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted)return!1;if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle())return this._finalize(),!0;return!1};u0.prototype._moduleAppend=function(Q,X,J){if(this._state.aborted){J();return}this._module.append(Q,X,function(Y){if(this._task=null,this._state.aborted){this._shutdown();return}if(Y){this.emit("error",Y),setImmediate(J);return}if(this.emit("entry",X),this._entriesProcessedCount++,X.stats&&X.stats.size)this._fsEntriesProcessedBytes+=X.stats.size;this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(J)}.bind(this))};u0.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function")this._module.finalize();else if(typeof this._module.end==="function")this._module.end();else this.emit("error",new z1("NOENDMETHOD"))};u0.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};u0.prototype._moduleSupports=function(Q){if(!this._module.supports||!this._module.supports[Q])return!1;return this._module.supports[Q]};u0.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};u0.prototype._normalizeEntryData=function(Q,X){if(Q=i8.defaults(Q,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),X&&Q.stats===!1)Q.stats=X;var J=Q.type==="directory";if(Q.name){if(typeof Q.prefix==="string"&&Q.prefix!=="")Q.name=Q.prefix+"/"+Q.name,Q.prefix=null;if(Q.name=i8.sanitizePath(Q.name),Q.type!=="symlink"&&Q.name.slice(-1)==="/")J=!0,Q.type="directory";else if(J)Q.name+="/"}if(typeof Q.mode==="number")if(sB)Q.mode&=511;else Q.mode&=4095;else if(Q.stats&&Q.mode===null){if(sB)Q.mode=Q.stats.mode&511;else Q.mode=Q.stats.mode&4095;if(sB&&J)Q.mode=493}else if(Q.mode===null)Q.mode=J?493:420;if(Q.stats&&Q.date===null)Q.date=Q.stats.mtime;else Q.date=i8.dateify(Q.date);return Q};u0.prototype._onModuleError=function(Q){this.emit("error",Q)};u0.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted)return;if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle())this._finalize()};u0.prototype._onQueueTask=function(Q,X){var J=()=>{if(Q.data.callback)Q.data.callback();X()};if(this._state.finalizing||this._state.finalized||this._state.aborted){J();return}this._task=Q,this._moduleAppend(Q.source,Q.data,J)};u0.prototype._onStatQueueTask=function(Q,X){if(this._state.finalizing||this._state.finalized||this._state.aborted){X();return}aB.lstat(Q.filepath,function(J,Y){if(this._state.aborted){setImmediate(X);return}if(J){this._entriesCount--,this.emit("warning",J),setImmediate(X);return}if(Q=this._updateQueueTaskWithStats(Q,Y),Q){if(Y.size)this._fsEntriesTotalBytes+=Y.size;this._queue.push(Q)}setImmediate(X)}.bind(this))};u0.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};u0.prototype._transform=function(Q,X,J){if(Q)this._pointer+=Q.length;J(null,Q)};u0.prototype._updateQueueTaskWithStats=function(Q,X){if(X.isFile())Q.data.type="file",Q.data.sourceType="stream",Q.source=i8.lazyReadStream(Q.filepath);else if(X.isDirectory()&&this._moduleSupports("directory"))Q.data.name=i8.trailingSlashIt(Q.data.name),Q.data.type="directory",Q.data.sourcePath=i8.trailingSlashIt(Q.filepath),Q.data.sourceType="buffer",Q.source=Buffer.concat([]);else if(X.isSymbolicLink()&&this._moduleSupports("symlink")){var J=aB.readlinkSync(Q.filepath),Y=rB.dirname(Q.filepath);Q.data.type="symlink",Q.data.linkname=rB.relative(Y,rB.resolve(Y,J)),Q.data.sourceType="buffer",Q.source=Buffer.concat([])}else{if(X.isDirectory())this.emit("warning",new z1("DIRECTORYNOTSUPPORTED",Q.data));else if(X.isSymbolicLink())this.emit("warning",new z1("SYMLINKNOTSUPPORTED",Q.data));else this.emit("warning",new z1("ENTRYNOTSUPPORTED",Q.data));return null}return Q.data=this._normalizeEntryData(Q.data,X),Q};u0.prototype.abort=function(){if(this._state.aborted||this._state.finalized)return this;return this._abort(),this};u0.prototype.append=function(Q,X){if(this._state.finalize||this._state.aborted)return this.emit("error",new z1("QUEUECLOSED")),this;if(X=this._normalizeEntryData(X),typeof X.name!=="string"||X.name.length===0)return this.emit("error",new z1("ENTRYNAMEREQUIRED")),this;if(X.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new z1("DIRECTORYNOTSUPPORTED",{name:X.name})),this;if(Q=i8.normalizeInputSource(Q),Buffer.isBuffer(Q))X.sourceType="buffer";else if(i8.isStream(Q))X.sourceType="stream";else return this.emit("error",new z1("INPUTSTEAMBUFFERREQUIRED",{name:X.name})),this;return this._entriesCount++,this._queue.push({data:X,source:Q}),this};u0.prototype.directory=function(Q,X,J){if(this._state.finalize||this._state.aborted)return this.emit("error",new z1("QUEUECLOSED")),this;if(typeof Q!=="string"||Q.length===0)return this.emit("error",new z1("DIRECTORYDIRPATHREQUIRED")),this;if(this._pending++,X===!1)X="";else if(typeof X!=="string")X=Q;var Y=!1;if(typeof J==="function")Y=J,J={};else if(typeof J!=="object")J={};var Z={stat:!0,dot:!0};function q(){this._pending--,this._maybeFinalize()}function $(V){this.emit("error",V)}function H(V){K.pause();var W=!1,G=Object.assign({},J);G.name=V.relative,G.prefix=X,G.stats=V.stat,G.callback=K.resume.bind(K);try{if(Y){if(G=Y(G),G===!1)W=!0;else if(typeof G!=="object")throw new z1("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:Q})}}catch(U){this.emit("error",U);return}if(W){K.resume();return}this._append(V.absolute,G)}var K=qm(Q,Z);return K.on("error",$.bind(this)),K.on("match",H.bind(this)),K.on("end",q.bind(this)),this};u0.prototype.file=function(Q,X){if(this._state.finalize||this._state.aborted)return this.emit("error",new z1("QUEUECLOSED")),this;if(typeof Q!=="string"||Q.length===0)return this.emit("error",new z1("FILEFILEPATHREQUIRED")),this;return this._append(Q,X),this};u0.prototype.glob=function(Q,X,J){this._pending++,X=i8.defaults(X,{stat:!0,pattern:Q});function Y(){this._pending--,this._maybeFinalize()}function Z(H){this.emit("error",H)}function q(H){$.pause();var K=Object.assign({},J);K.callback=$.resume.bind($),K.stats=H.stat,K.name=H.relative,this._append(H.absolute,K)}var $=qm(X.cwd||".",X);return $.on("error",Z.bind(this)),$.on("match",q.bind(this)),$.on("end",Y.bind(this)),this};u0.prototype.finalize=function(){if(this._state.aborted){var Q=new z1("ABORTED");return this.emit("error",Q),Promise.reject(Q)}if(this._state.finalize){var X=new z1("FINALIZING");return this.emit("error",X),Promise.reject(X)}if(this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle())this._finalize();var J=this;return new Promise(function(Y,Z){var q;J._module.on("end",function(){if(!q)Y()}),J._module.on("error",function($){q=!0,Z($)})})};u0.prototype.setFormat=function(Q){if(this._format)return this.emit("error",new z1("FORMATSET")),this;return this._format=Q,this};u0.prototype.setModule=function(Q){if(this._state.aborted)return this.emit("error",new z1("ABORTED")),this;if(this._state.module)return this.emit("error",new z1("MODULESET")),this;return this._module=Q,this._modulePipe(),this};u0.prototype.symlink=function(Q,X,J){if(this._state.finalize||this._state.aborted)return this.emit("error",new z1("QUEUECLOSED")),this;if(typeof Q!=="string"||Q.length===0)return this.emit("error",new z1("SYMLINKFILEPATHREQUIRED")),this;if(typeof X!=="string"||X.length===0)return this.emit("error",new z1("SYMLINKTARGETREQUIRED",{filepath:Q})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new z1("SYMLINKNOTSUPPORTED",{filepath:Q})),this;var Y={};if(Y.type="symlink",Y.name=Q.replace(/\\/g,"/"),Y.linkname=X.replace(/\\/g,"/"),Y.sourceType="buffer",typeof J==="number")Y.mode=J;return this._entriesCount++,this._queue.push({data:Y,source:Buffer.concat([])}),this};u0.prototype.pointer=function(){return this._pointer};u0.prototype.use=function(Q){return this._streams.push(Q),this};Hm.exports=u0});var L3=F((m81,Wm)=>{var B3=Wm.exports=function(){};B3.prototype.getName=function(){};B3.prototype.getSize=function(){};B3.prototype.getLastModifiedDate=function(){};B3.prototype.isDirectory=function(){}});var F3=F((d81,Vm)=>{var Q8=Vm.exports={};Q8.dateToDos=function(Q,X){X=X||!1;var J=X?Q.getFullYear():Q.getUTCFullYear();if(J<1980)return 2162688;else if(J>=2044)return 2141175677;var Y={year:J,month:X?Q.getMonth():Q.getUTCMonth(),date:X?Q.getDate():Q.getUTCDate(),hours:X?Q.getHours():Q.getUTCHours(),minutes:X?Q.getMinutes():Q.getUTCMinutes(),seconds:X?Q.getSeconds():Q.getUTCSeconds()};return Y.year-1980<<25|Y.month+1<<21|Y.date<<16|Y.hours<<11|Y.minutes<<5|Y.seconds/2};Q8.dosToDate=function(Q){return new Date((Q>>25&127)+1980,(Q>>21&15)-1,Q>>16&31,Q>>11&31,Q>>5&63,(Q&31)<<1)};Q8.fromDosTime=function(Q){return Q8.dosToDate(Q.readUInt32LE(0))};Q8.getEightBytes=function(Q){var X=Buffer.alloc(8);return X.writeUInt32LE(Q%4294967296,0),X.writeUInt32LE(Q/4294967296|0,4),X};Q8.getShortBytes=function(Q){var X=Buffer.alloc(2);return X.writeUInt16LE((Q&65535)>>>0,0),X};Q8.getShortBytesValue=function(Q,X){return Q.readUInt16LE(X)};Q8.getLongBytes=function(Q){var X=Buffer.alloc(4);return X.writeUInt32LE((Q&4294967295)>>>0,0),X};Q8.getLongBytesValue=function(Q,X){return Q.readUInt32LE(X)};Q8.toDosTime=function(Q){return Q8.getLongBytes(Q8.dateToDos(Q))}});var tB=F((c81,Fm)=>{var Gm=F3(),Um=8,zm=1,LT0=4,FT0=2,Bm=64,Lm=2048,o1=Fm.exports=function(){if(!(this instanceof o1))return new o1;return this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this};o1.prototype.encode=function(){return Gm.getShortBytes((this.descriptor?Um:0)|(this.utf8?Lm:0)|(this.encryption?zm:0)|(this.strongEncryption?Bm:0))};o1.prototype.parse=function(Q,X){var J=Gm.getShortBytesValue(Q,X),Y=new o1;return Y.useDataDescriptor((J&Um)!==0),Y.useUTF8ForNames((J&Lm)!==0),Y.useStrongEncryption((J&Bm)!==0),Y.useEncryption((J&zm)!==0),Y.setSlidingDictionarySize((J&FT0)!==0?8192:4096),Y.setNumberOfShannonFanoTrees((J&LT0)!==0?3:2),Y};o1.prototype.setNumberOfShannonFanoTrees=function(Q){this.numberOfShannonFanoTrees=Q};o1.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};o1.prototype.setSlidingDictionarySize=function(Q){this.slidingDictionarySize=Q};o1.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};o1.prototype.useDataDescriptor=function(Q){this.descriptor=Q};o1.prototype.usesDataDescriptor=function(){return this.descriptor};o1.prototype.useEncryption=function(Q){this.encryption=Q};o1.prototype.usesEncryption=function(){return this.encryption};o1.prototype.useStrongEncryption=function(Q){this.strongEncryption=Q};o1.prototype.usesStrongEncryption=function(){return this.strongEncryption};o1.prototype.useUTF8ForNames=function(Q){this.utf8=Q};o1.prototype.usesUTF8ForNames=function(){return this.utf8}});var Im=F((l81,Mm)=>{Mm.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var eB=F((p81,Pm)=>{Pm.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var Q2=F((n81,Rm)=>{var MT0=l("util").inherits,IT0=bU(),Om=L3(),jm=tB(),Cm=Im(),z6=eB(),Nm=F3(),D0=Rm.exports=function(Q){if(!(this instanceof D0))return new D0(Q);if(Om.call(this),this.platform=z6.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new jm,this.crc=0,this.time=-1,this.minver=z6.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,Q)this.setName(Q)};MT0(D0,Om);D0.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};D0.prototype.getComment=function(){return this.comment!==null?this.comment:""};D0.prototype.getCompressedSize=function(){return this.csize};D0.prototype.getCrc=function(){return this.crc};D0.prototype.getExternalAttributes=function(){return this.exattr};D0.prototype.getExtra=function(){return this.extra!==null?this.extra:z6.EMPTY};D0.prototype.getGeneralPurposeBit=function(){return this.gpb};D0.prototype.getInternalAttributes=function(){return this.inattr};D0.prototype.getLastModifiedDate=function(){return this.getTime()};D0.prototype.getLocalFileDataExtra=function(){return this.getExtra()};D0.prototype.getMethod=function(){return this.method};D0.prototype.getName=function(){return this.name};D0.prototype.getPlatform=function(){return this.platform};D0.prototype.getSize=function(){return this.size};D0.prototype.getTime=function(){return this.time!==-1?Nm.dosToDate(this.time):-1};D0.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};D0.prototype.getUnixMode=function(){return this.platform!==z6.PLATFORM_UNIX?0:this.getExternalAttributes()>>z6.SHORT_SHIFT&z6.SHORT_MASK};D0.prototype.getVersionNeededToExtract=function(){return this.minver};D0.prototype.setComment=function(Q){if(Buffer.byteLength(Q)!==Q.length)this.getGeneralPurposeBit().useUTF8ForNames(!0);this.comment=Q};D0.prototype.setCompressedSize=function(Q){if(Q<0)throw Error("invalid entry compressed size");this.csize=Q};D0.prototype.setCrc=function(Q){if(Q<0)throw Error("invalid entry crc32");this.crc=Q};D0.prototype.setExternalAttributes=function(Q){this.exattr=Q>>>0};D0.prototype.setExtra=function(Q){this.extra=Q};D0.prototype.setGeneralPurposeBit=function(Q){if(!(Q instanceof jm))throw Error("invalid entry GeneralPurposeBit");this.gpb=Q};D0.prototype.setInternalAttributes=function(Q){this.inattr=Q};D0.prototype.setMethod=function(Q){if(Q<0)throw Error("invalid entry compression method");this.method=Q};D0.prototype.setName=function(Q,X=!1){if(Q=IT0(Q,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),X)Q=`/${Q}`;if(Buffer.byteLength(Q)!==Q.length)this.getGeneralPurposeBit().useUTF8ForNames(!0);this.name=Q};D0.prototype.setPlatform=function(Q){this.platform=Q};D0.prototype.setSize=function(Q){if(Q<0)throw Error("invalid entry size");this.size=Q};D0.prototype.setTime=function(Q,X){if(!(Q instanceof Date))throw Error("invalid entry time");this.time=Nm.dateToDos(Q,X)};D0.prototype.setUnixMode=function(Q){Q|=this.isDirectory()?z6.S_IFDIR:z6.S_IFREG;var X=0;X|=Q<<z6.SHORT_SHIFT|(this.isDirectory()?z6.S_DOS_D:z6.S_DOS_A),this.setExternalAttributes(X),this.mode=Q&z6.MODE_MASK,this.platform=z6.PLATFORM_UNIX};D0.prototype.setVersionNeededToExtract=function(Q){this.minver=Q};D0.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};D0.prototype.isUnixSymlink=function(){return(this.getUnixMode()&Cm.FILE_TYPE_FLAG)===Cm.LINK_FLAG};D0.prototype.isZip64=function(){return this.csize>z6.ZIP64_MAGIC||this.size>z6.ZIP64_MAGIC}});var X2=F((i81,Dm)=>{var o8=(Q)=>Q!==null&&typeof Q==="object"&&typeof Q.pipe==="function";o8.writable=(Q)=>o8(Q)&&Q.writable!==!1&&typeof Q._write==="function"&&typeof Q._writableState==="object";o8.readable=(Q)=>o8(Q)&&Q.readable!==!1&&typeof Q._read==="function"&&typeof Q._readableState==="object";o8.duplex=(Q)=>o8.writable(Q)&&o8.readable(Q);o8.transform=(Q)=>o8.duplex(Q)&&typeof Q._transform==="function";Dm.exports=o8});var J2=F((r81,wm)=>{var o81=l("stream").Stream,PT0=$7().PassThrough,CT0=X2(),OT0=wm.exports={};OT0.normalizeInputSource=function(Q){if(Q===null)return Buffer.alloc(0);else if(typeof Q==="string")return Buffer.from(Q);else if(CT0(Q)&&!Q._readableState){var X=new PT0;return Q.pipe(X),X}return Q}});var Z2=F((s81,Tm)=>{var jT0=l("util").inherits,NT0=X2(),Y2=$7().Transform,RT0=L3(),DT0=J2(),v6=Tm.exports=function(Q){if(!(this instanceof v6))return new v6(Q);Y2.call(this,Q),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};jT0(v6,Y2);v6.prototype._appendBuffer=function(Q,X,J){};v6.prototype._appendStream=function(Q,X,J){};v6.prototype._emitErrorCallback=function(Q){if(Q)this.emit("error",Q)};v6.prototype._finish=function(Q){};v6.prototype._normalizeEntry=function(Q){};v6.prototype._transform=function(Q,X,J){J(null,Q)};v6.prototype.entry=function(Q,X,J){if(X=X||null,typeof J!=="function")J=this._emitErrorCallback.bind(this);if(!(Q instanceof RT0)){J(Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){J(Error("unacceptable entry after finish"));return}if(this._archive.processing){J(Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(Q),this._entry=Q,X=DT0.normalizeInputSource(X),Buffer.isBuffer(X))this._appendBuffer(Q,X,J);else if(NT0(X))this._appendStream(Q,X,J);else{this._archive.processing=!1,J(Error("input source must be valid Stream or Buffer instance"));return}return this};v6.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};v6.prototype.getBytesWritten=function(){return this.offset};v6.prototype.write=function(Q,X){if(Q)this.offset+=Q.length;return Y2.prototype.write.call(this,Q,X)}});var M3=F((q2)=>{/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var Am;(function(Q){if(typeof DO_NOT_EXPORT_CRC>"u")if(typeof q2==="object")Q(q2);else if(typeof define==="function"&&define.amd)define(function(){var X={};return Q(X),X});else Q(Am={});else Q(Am={})})(function(Q){Q.version="1.2.2";function X(){var S=0,p=Array(256);for(var T=0;T!=256;++T)S=T,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,p[T]=S;return typeof Int32Array<"u"?new Int32Array(p):p}var J=X();function Y(S){var p=0,T=0,u=0,c=typeof Int32Array<"u"?new Int32Array(4096):Array(4096);for(u=0;u!=256;++u)c[u]=S[u];for(u=0;u!=256;++u){T=S[u];for(p=256+u;p<4096;p+=256)T=c[p]=T>>>8^S[T&255]}var X0=[];for(u=1;u!=16;++u)X0[u-1]=typeof Int32Array<"u"?c.subarray(u*256,u*256+256):c.slice(u*256,u*256+256);return X0}var Z=Y(J),q=Z[0],$=Z[1],H=Z[2],K=Z[3],V=Z[4],W=Z[5],G=Z[6],U=Z[7],z=Z[8],L=Z[9],B=Z[10],M=Z[11],I=Z[12],j=Z[13],D=Z[14];function N(S,p){var T=p^-1;for(var u=0,c=S.length;u<c;)T=T>>>8^J[(T^S.charCodeAt(u++))&255];return~T}function k(S,p){var T=p^-1,u=S.length-15,c=0;for(;c<u;)T=D[S[c++]^T&255]^j[S[c++]^T>>8&255]^I[S[c++]^T>>16&255]^M[S[c++]^T>>>24]^B[S[c++]]^L[S[c++]]^z[S[c++]]^U[S[c++]]^G[S[c++]]^W[S[c++]]^V[S[c++]]^K[S[c++]]^H[S[c++]]^$[S[c++]]^q[S[c++]]^J[S[c++]];u+=15;while(c<u)T=T>>>8^J[(T^S[c++])&255];return~T}function f(S,p){var T=p^-1;for(var u=0,c=S.length,X0=0,I0=0;u<c;)if(X0=S.charCodeAt(u++),X0<128)T=T>>>8^J[(T^X0)&255];else if(X0<2048)T=T>>>8^J[(T^(192|X0>>6&31))&255],T=T>>>8^J[(T^(128|X0&63))&255];else if(X0>=55296&&X0<57344)X0=(X0&1023)+64,I0=S.charCodeAt(u++)&1023,T=T>>>8^J[(T^(240|X0>>8&7))&255],T=T>>>8^J[(T^(128|X0>>2&63))&255],T=T>>>8^J[(T^(128|I0>>6&15|(X0&3)<<4))&255],T=T>>>8^J[(T^(128|I0&63))&255];else T=T>>>8^J[(T^(224|X0>>12&15))&255],T=T>>>8^J[(T^(128|X0>>6&63))&255],T=T>>>8^J[(T^(128|X0&63))&255];return~T}Q.table=J,Q.bstr=N,Q.buf=k,Q.str=f})});var Sm=F((t81,_m)=>{var{Transform:wT0}=$7(),TT0=M3();class Em extends wT0{constructor(Q){super(Q);this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(Q,X,J){if(Q)this.checksum=TT0.buf(Q,this.checksum)>>>0,this.rawSize+=Q.length;J(null,Q)}digest(Q){let X=Buffer.allocUnsafe(4);return X.writeUInt32BE(this.checksum>>>0,0),Q?X.toString(Q):X}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}_m.exports=Em});var km=F((e81,xm)=>{var{DeflateRaw:AT0}=l("zlib"),ET0=M3();class vm extends AT0{constructor(Q){super(Q);this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(Q,X){if(Q)this.compressedSize+=Q.length;return super.push(Q,X)}_transform(Q,X,J){if(Q)this.checksum=ET0.buf(Q,this.checksum)>>>0,this.rawSize+=Q.length;super._transform(Q,X,J)}digest(Q){let X=Buffer.allocUnsafe(4);return X.writeUInt32BE(this.checksum>>>0,0),Q?X.toString(Q):X}hex(){return this.digest("hex").toUpperCase()}size(Q=!1){if(Q)return this.compressedSize;else return this.rawSize}}xm.exports=vm});var $2=F((Q41,ym)=>{ym.exports={CRC32Stream:Sm(),DeflateCRC32Stream:km()}});var fm=F((Z41,bm)=>{var _T0=l("util").inherits,ST0=M3(),{CRC32Stream:vT0}=$2(),{DeflateCRC32Stream:xT0}=$2(),hm=Z2(),X41=Q2(),J41=tB(),O0=eB(),Y41=J2(),V0=F3(),f1=bm.exports=function(Q){if(!(this instanceof f1))return new f1(Q);Q=this.options=this._defaults(Q),hm.call(this,Q),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:Q.forceZip64,forceLocalTime:Q.forceLocalTime}};_T0(f1,hm);f1.prototype._afterAppend=function(Q){if(this._entries.push(Q),Q.getGeneralPurposeBit().usesDataDescriptor())this._writeDataDescriptor(Q);if(this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished)this._finish()};f1.prototype._appendBuffer=function(Q,X,J){if(X.length===0)Q.setMethod(O0.METHOD_STORED);var Y=Q.getMethod();if(Y===O0.METHOD_STORED)Q.setSize(X.length),Q.setCompressedSize(X.length),Q.setCrc(ST0.buf(X)>>>0);if(this._writeLocalFileHeader(Q),Y===O0.METHOD_STORED){this.write(X),this._afterAppend(Q),J(null,Q);return}else if(Y===O0.METHOD_DEFLATED){this._smartStream(Q,J).end(X);return}else{J(Error("compression method "+Y+" not implemented"));return}};f1.prototype._appendStream=function(Q,X,J){Q.getGeneralPurposeBit().useDataDescriptor(!0),Q.setVersionNeededToExtract(O0.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(Q);var Y=this._smartStream(Q,J);X.once("error",function(Z){Y.emit("error",Z),Y.end()}),X.pipe(Y)};f1.prototype._defaults=function(Q){if(typeof Q!=="object")Q={};if(typeof Q.zlib!=="object")Q.zlib={};if(typeof Q.zlib.level!=="number")Q.zlib.level=O0.ZLIB_BEST_SPEED;return Q.forceZip64=!!Q.forceZip64,Q.forceLocalTime=!!Q.forceLocalTime,Q};f1.prototype._finish=function(){if(this._archive.centralOffset=this.offset,this._entries.forEach(function(Q){this._writeCentralFileHeader(Q)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64())this._writeCentralDirectoryZip64();this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};f1.prototype._normalizeEntry=function(Q){if(Q.getMethod()===-1)Q.setMethod(O0.METHOD_DEFLATED);if(Q.getMethod()===O0.METHOD_DEFLATED)Q.getGeneralPurposeBit().useDataDescriptor(!0),Q.setVersionNeededToExtract(O0.MIN_VERSION_DATA_DESCRIPTOR);if(Q.getTime()===-1)Q.setTime(new Date,this._archive.forceLocalTime);Q._offsets={file:0,data:0,contents:0}};f1.prototype._smartStream=function(Q,X){var J=Q.getMethod()===O0.METHOD_DEFLATED,Y=J?new xT0(this.options.zlib):new vT0,Z=null;function q(){var $=Y.digest().readUInt32BE(0);Q.setCrc($),Q.setSize(Y.size()),Q.setCompressedSize(Y.size(!0)),this._afterAppend(Q),X(Z,Q)}return Y.once("end",q.bind(this)),Y.once("error",function($){Z=$}),Y.pipe(this,{end:!1}),Y};f1.prototype._writeCentralDirectoryEnd=function(){var Q=this._entries.length,X=this._archive.centralLength,J=this._archive.centralOffset;if(this.isZip64())Q=O0.ZIP64_MAGIC_SHORT,X=O0.ZIP64_MAGIC,J=O0.ZIP64_MAGIC;this.write(V0.getLongBytes(O0.SIG_EOCD)),this.write(O0.SHORT_ZERO),this.write(O0.SHORT_ZERO),this.write(V0.getShortBytes(Q)),this.write(V0.getShortBytes(Q)),this.write(V0.getLongBytes(X)),this.write(V0.getLongBytes(J));var Y=this.getComment(),Z=Buffer.byteLength(Y);this.write(V0.getShortBytes(Z)),this.write(Y)};f1.prototype._writeCentralDirectoryZip64=function(){this.write(V0.getLongBytes(O0.SIG_ZIP64_EOCD)),this.write(V0.getEightBytes(44)),this.write(V0.getShortBytes(O0.MIN_VERSION_ZIP64)),this.write(V0.getShortBytes(O0.MIN_VERSION_ZIP64)),this.write(O0.LONG_ZERO),this.write(O0.LONG_ZERO),this.write(V0.getEightBytes(this._entries.length)),this.write(V0.getEightBytes(this._entries.length)),this.write(V0.getEightBytes(this._archive.centralLength)),this.write(V0.getEightBytes(this._archive.centralOffset)),this.write(V0.getLongBytes(O0.SIG_ZIP64_EOCD_LOC)),this.write(O0.LONG_ZERO),this.write(V0.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(V0.getLongBytes(1))};f1.prototype._writeCentralFileHeader=function(Q){var X=Q.getGeneralPurposeBit(),J=Q.getMethod(),Y=Q._offsets.file,Z=Q.getSize(),q=Q.getCompressedSize();if(Q.isZip64()||Y>O0.ZIP64_MAGIC){Z=O0.ZIP64_MAGIC,q=O0.ZIP64_MAGIC,Y=O0.ZIP64_MAGIC,Q.setVersionNeededToExtract(O0.MIN_VERSION_ZIP64);var $=Buffer.concat([V0.getShortBytes(O0.ZIP64_EXTRA_ID),V0.getShortBytes(24),V0.getEightBytes(Q.getSize()),V0.getEightBytes(Q.getCompressedSize()),V0.getEightBytes(Q._offsets.file)],28);Q.setExtra($)}this.write(V0.getLongBytes(O0.SIG_CFH)),this.write(V0.getShortBytes(Q.getPlatform()<<8|O0.VERSION_MADEBY)),this.write(V0.getShortBytes(Q.getVersionNeededToExtract())),this.write(X.encode()),this.write(V0.getShortBytes(J)),this.write(V0.getLongBytes(Q.getTimeDos())),this.write(V0.getLongBytes(Q.getCrc())),this.write(V0.getLongBytes(q)),this.write(V0.getLongBytes(Z));var H=Q.getName(),K=Q.getComment(),V=Q.getCentralDirectoryExtra();if(X.usesUTF8ForNames())H=Buffer.from(H),K=Buffer.from(K);this.write(V0.getShortBytes(H.length)),this.write(V0.getShortBytes(V.length)),this.write(V0.getShortBytes(K.length)),this.write(O0.SHORT_ZERO),this.write(V0.getShortBytes(Q.getInternalAttributes())),this.write(V0.getLongBytes(Q.getExternalAttributes())),this.write(V0.getLongBytes(Y)),this.write(H),this.write(V),this.write(K)};f1.prototype._writeDataDescriptor=function(Q){if(this.write(V0.getLongBytes(O0.SIG_DD)),this.write(V0.getLongBytes(Q.getCrc())),Q.isZip64())this.write(V0.getEightBytes(Q.getCompressedSize())),this.write(V0.getEightBytes(Q.getSize()));else this.write(V0.getLongBytes(Q.getCompressedSize())),this.write(V0.getLongBytes(Q.getSize()))};f1.prototype._writeLocalFileHeader=function(Q){var X=Q.getGeneralPurposeBit(),J=Q.getMethod(),Y=Q.getName(),Z=Q.getLocalFileDataExtra();if(Q.isZip64())X.useDataDescriptor(!0),Q.setVersionNeededToExtract(O0.MIN_VERSION_ZIP64);if(X.usesUTF8ForNames())Y=Buffer.from(Y);if(Q._offsets.file=this.offset,this.write(V0.getLongBytes(O0.SIG_LFH)),this.write(V0.getShortBytes(Q.getVersionNeededToExtract())),this.write(X.encode()),this.write(V0.getShortBytes(J)),this.write(V0.getLongBytes(Q.getTimeDos())),Q._offsets.data=this.offset,X.usesDataDescriptor())this.write(O0.LONG_ZERO),this.write(O0.LONG_ZERO),this.write(O0.LONG_ZERO);else this.write(V0.getLongBytes(Q.getCrc())),this.write(V0.getLongBytes(Q.getCompressedSize())),this.write(V0.getLongBytes(Q.getSize()));this.write(V0.getShortBytes(Y.length)),this.write(V0.getShortBytes(Z.length)),this.write(Y),this.write(Z),Q._offsets.contents=this.offset};f1.prototype.getComment=function(Q){return this._archive.comment!==null?this._archive.comment:""};f1.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>O0.ZIP64_MAGIC_SHORT||this._archive.centralLength>O0.ZIP64_MAGIC||this._archive.centralOffset>O0.ZIP64_MAGIC};f1.prototype.setComment=function(Q){this._archive.comment=Q}});var H2=F((q41,gm)=>{gm.exports={ArchiveEntry:L3(),ZipArchiveEntry:Q2(),ArchiveOutputStream:Z2(),ZipArchiveOutputStream:fm()}});var mm=F(($41,um)=>{var kT0=l("util").inherits,W2=H2().ZipArchiveOutputStream,yT0=H2().ZipArchiveEntry,K2=d9(),c9=um.exports=function(Q){if(!(this instanceof c9))return new c9(Q);if(Q=this.options=Q||{},Q.zlib=Q.zlib||{},W2.call(this,Q),typeof Q.level==="number"&&Q.level>=0)Q.zlib.level=Q.level,delete Q.level;if(!Q.forceZip64&&typeof Q.zlib.level==="number"&&Q.zlib.level===0)Q.store=!0;if(Q.namePrependSlash=Q.namePrependSlash||!1,Q.comment&&Q.comment.length>0)this.setComment(Q.comment)};kT0(c9,W2);c9.prototype._normalizeFileData=function(Q){Q=K2.defaults(Q,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var X=Q.type==="directory",J=Q.type==="symlink";if(Q.name){if(Q.name=K2.sanitizePath(Q.name),!J&&Q.name.slice(-1)==="/")X=!0,Q.type="directory";else if(X)Q.name+="/"}if(X||J)Q.store=!0;return Q.date=K2.dateify(Q.date),Q};c9.prototype.entry=function(Q,X,J){if(typeof J!=="function")J=this._emitErrorCallback.bind(this);if(X=this._normalizeFileData(X),X.type!=="file"&&X.type!=="directory"&&X.type!=="symlink"){J(Error(X.type+" entries not currently supported"));return}if(typeof X.name!=="string"||X.name.length===0){J(Error("entry name must be a non-empty string value"));return}if(X.type==="symlink"&&typeof X.linkname!=="string"){J(Error("entry linkname must be a non-empty string value when type equals symlink"));return}var Y=new yT0(X.name);if(Y.setTime(X.date,this.options.forceLocalTime),X.namePrependSlash)Y.setName(X.name,!0);if(X.store)Y.setMethod(0);if(X.comment.length>0)Y.setComment(X.comment);if(X.type==="symlink"&&typeof X.mode!=="number")X.mode=40960;if(typeof X.mode==="number"){if(X.type==="symlink")X.mode|=40960;Y.setUnixMode(X.mode)}if(X.type==="symlink"&&typeof X.linkname==="string")Q=Buffer.from(X.linkname);return W2.prototype.entry.call(this,Y,Q,J)};c9.prototype.finalize=function(){this.finish()}});var cm=F((H41,dm)=>{var hT0=mm(),bT0=d9(),Z5=function(Q){if(!(this instanceof Z5))return new Z5(Q);Q=this.options=bT0.defaults(Q,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new hT0(Q)};Z5.prototype.append=function(Q,X,J){this.engine.entry(Q,X,J)};Z5.prototype.finalize=function(){this.engine.finalize()};Z5.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Z5.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Z5.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};dm.exports=Z5});var pm=F((K41,lm)=>{lm.exports=class{constructor(X){if(!(X>0)||(X-1&X)!==0)throw Error("Max size for a FixedFIFO should be a power of two");this.buffer=Array(X),this.mask=X-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(X){if(this.buffer[this.top]!==void 0)return!1;return this.buffer[this.top]=X,this.top=this.top+1&this.mask,!0}shift(){let X=this.buffer[this.btm];if(X===void 0)return;return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,X}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var V2=F((W41,im)=>{var nm=pm();im.exports=class{constructor(X){this.hwm=X||16,this.head=new nm(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(X){if(this.length++,!this.head.push(X)){let J=this.head;this.head=J.next=new nm(2*this.head.buffer.length),this.head.push(X)}}shift(){if(this.length!==0)this.length--;let X=this.tail.shift();if(X===void 0&&this.tail.next){let J=this.tail.next;return this.tail.next=null,this.tail=J,this.tail.shift()}return X}peek(){let X=this.tail.peek();if(X===void 0&&this.tail.next)return this.tail.next.peek();return X}isEmpty(){return this.length===0}}});var l9=F((V41,om)=>{function fT0(Q){return Buffer.isBuffer(Q)||Q instanceof Uint8Array}function gT0(Q){return Buffer.isEncoding(Q)}function uT0(Q,X,J){return Buffer.alloc(Q,X,J)}function mT0(Q){return Buffer.allocUnsafe(Q)}function dT0(Q){return Buffer.allocUnsafeSlow(Q)}function cT0(Q,X){return Buffer.byteLength(Q,X)}function lT0(Q,X){return Buffer.compare(Q,X)}function pT0(Q,X){return Buffer.concat(Q,X)}function nT0(Q,X,J,Y,Z){return i0(Q).copy(X,J,Y,Z)}function iT0(Q,X){return i0(Q).equals(X)}function oT0(Q,X,J,Y,Z){return i0(Q).fill(X,J,Y,Z)}function rT0(Q,X,J){return Buffer.from(Q,X,J)}function sT0(Q,X,J,Y){return i0(Q).includes(X,J,Y)}function aT0(Q,X,J,Y){return i0(Q).indexOf(X,J,Y)}function tT0(Q,X,J,Y){return i0(Q).lastIndexOf(X,J,Y)}function eT0(Q){return i0(Q).swap16()}function QA0(Q){return i0(Q).swap32()}function XA0(Q){return i0(Q).swap64()}function i0(Q){if(Buffer.isBuffer(Q))return Q;return Buffer.from(Q.buffer,Q.byteOffset,Q.byteLength)}function JA0(Q,X,J,Y){return i0(Q).toString(X,J,Y)}function YA0(Q,X,J,Y,Z){return i0(Q).write(X,J,Y,Z)}function ZA0(Q,X){return i0(Q).readDoubleBE(X)}function qA0(Q,X){return i0(Q).readDoubleLE(X)}function $A0(Q,X){return i0(Q).readFloatBE(X)}function HA0(Q,X){return i0(Q).readFloatLE(X)}function KA0(Q,X){return i0(Q).readInt32BE(X)}function WA0(Q,X){return i0(Q).readInt32LE(X)}function VA0(Q,X){return i0(Q).readUInt32BE(X)}function GA0(Q,X){return i0(Q).readUInt32LE(X)}function UA0(Q,X,J){return i0(Q).writeDoubleBE(X,J)}function zA0(Q,X,J){return i0(Q).writeDoubleLE(X,J)}function BA0(Q,X,J){return i0(Q).writeFloatBE(X,J)}function LA0(Q,X,J){return i0(Q).writeFloatLE(X,J)}function FA0(Q,X,J){return i0(Q).writeInt32BE(X,J)}function MA0(Q,X,J){return i0(Q).writeInt32LE(X,J)}function IA0(Q,X,J){return i0(Q).writeUInt32BE(X,J)}function PA0(Q,X,J){return i0(Q).writeUInt32LE(X,J)}om.exports={isBuffer:fT0,isEncoding:gT0,alloc:uT0,allocUnsafe:mT0,allocUnsafeSlow:dT0,byteLength:cT0,compare:lT0,concat:pT0,copy:nT0,equals:iT0,fill:oT0,from:rT0,includes:sT0,indexOf:aT0,lastIndexOf:tT0,swap16:eT0,swap32:QA0,swap64:XA0,toBuffer:i0,toString:JA0,write:YA0,readDoubleBE:ZA0,readDoubleLE:qA0,readFloatBE:$A0,readFloatLE:HA0,readInt32BE:KA0,readInt32LE:WA0,readUInt32BE:VA0,readUInt32LE:GA0,writeDoubleBE:UA0,writeDoubleLE:zA0,writeFloatBE:BA0,writeFloatLE:LA0,writeInt32BE:FA0,writeInt32LE:MA0,writeUInt32BE:IA0,writeUInt32LE:PA0}});var sm=F((G41,rm)=>{var CA0=l9();rm.exports=class{constructor(X){this.encoding=X}get remaining(){return 0}decode(X){return CA0.toString(X,this.encoding)}flush(){return""}}});var Qd=F((U41,em)=>{var am=l9();em.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(X){if(X.byteLength===0)return"";if(this.bytesNeeded===0&&tm(X,0)===0)return this.bytesSeen=OA0(X),am.toString(X,"utf8");let J="",Y=0;if(this.bytesNeeded>0){while(Y<X.byteLength){let $=X[Y];if($<this.lowerBoundary||$>this.upperBoundary){J+="�",this._reset();break}if(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|$&63,this.bytesSeen++,Y++,this.bytesSeen===this.bytesNeeded){J+=String.fromCodePoint(this.codePoint),this._reset();break}}if(this.bytesNeeded>0)return J}let Z=tm(X,Y),q=X.byteLength-Z;if(q>Y)J+=am.toString(X,"utf8",Y,q);for(let $=q;$<X.byteLength;$++){let H=X[$];if(this.bytesNeeded===0){if(H<=127)this.bytesSeen=0,J+=String.fromCharCode(H);else if(H>=194&&H<=223)this.bytesNeeded=2,this.bytesSeen=1,this.codePoint=H&31;else if(H>=224&&H<=239){if(H===224)this.lowerBoundary=160;else if(H===237)this.upperBoundary=159;this.bytesNeeded=3,this.bytesSeen=1,this.codePoint=H&15}else if(H>=240&&H<=244){if(H===240)this.lowerBoundary=144;else if(H===244)this.upperBoundary=143;this.bytesNeeded=4,this.bytesSeen=1,this.codePoint=H&7}else this.bytesSeen=1,J+="�";continue}if(H<this.lowerBoundary||H>this.upperBoundary){J+="�",$--,this._reset();continue}if(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|H&63,this.bytesSeen++,this.bytesSeen===this.bytesNeeded)J+=String.fromCodePoint(this.codePoint),this._reset()}return J}flush(){let X=this.bytesNeeded>0?"�":"";return this._reset(),X}_reset(){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191}};function tm(Q,X){let J=Q.byteLength;if(J<=X)return 0;let Y=Math.max(X,J-4),Z=J-1;while(Z>Y&&(Q[Z]&192)===128)Z--;if(Z<X)return 0;let q=Q[Z],$;if(q<=127)return 0;if(q>=194&&q<=223)$=2;else if(q>=224&&q<=239)$=3;else if(q>=240&&q<=244)$=4;else return 0;let H=J-Z;return H<$?H:0}function OA0(Q){let X=Q.byteLength;if(X===0)return 0;let J=Q[X-1];if(J<=127)return 0;if((J&192)!==128)return 1;let Y=Math.max(0,X-4),Z=X-2;while(Z>=Y&&(Q[Z]&192)===128)Z--;if(Z<0)return 1;let q=Q[Z],$;if(q>=194&&q<=223)$=2;else if(q>=224&&q<=239)$=3;else if(q>=240&&q<=244)$=4;else return 1;if(X-Z!==$)return 1;if($>=3){let H=Q[Z+1];if(q===224&&H<160)return 1;if(q===237&&H>159)return 1;if(q===240&&H<144)return 1;if(q===244&&H>143)return 1}return 0}});var Jd=F((z41,Xd)=>{var jA0=sm(),NA0=Qd();Xd.exports=class{constructor(X="utf8"){switch(this.encoding=RA0(X),this.encoding){case"utf8":this.decoder=new NA0;break;case"utf16le":case"base64":throw Error("Unsupported encoding: "+this.encoding);default:this.decoder=new jA0(this.encoding)}}get remaining(){return this.decoder.remaining}push(X){if(typeof X==="string")return X;return this.decoder.decode(X)}write(X){return this.push(X)}end(X){let J="";if(X)J=this.push(X);return J+=this.decoder.flush(),J}};function RA0(Q){switch(Q=Q.toLowerCase(),Q){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Q;default:throw Error("Unknown encoding: "+Q)}}});var Zd=F((B41,Yd)=>{Yd.exports=class Q extends Error{constructor(X,J,Y=Q){super(X);if(this.code=J,Error.captureStackTrace)Error.captureStackTrace(this,Y)}static isStreamDestroyed(X){return X&&X.code==="STREAM_DESTROYED"}static isPrematureClose(X){return X&&X.code==="PREMATURE_CLOSE"}static isAborted(X){return X&&X.code==="ABORTED"}static isBadArgument(X){return X&&X.code==="BAD_ARGUMENT"}get name(){return"StreamError"}static STREAM_DESTROYED(){return new Q("Stream was destroyed","STREAM_DESTROYED",Q.STREAM_DESTROYED)}static PREMATURE_CLOSE(X="Premature close"){return new Q(X,"PREMATURE_CLOSE",Q.PREMATURE_CLOSE)}static ABORTED(){return new Q("Stream aborted","ABORTED",Q.ABORTED)}static BAD_ARGUMENT(X="Bad argument"){return new Q(X,"BAD_ARGUMENT",Q.BAD_ARGUMENT)}}});var I2=F((L41,zd)=>{var{EventEmitter:DA0}=l("events"),qd=V2(),wA0=Jd(),X8=Zd(),G2=typeof queueMicrotask>"u"?(Q)=>global.process.nextTick(Q):queueMicrotask,I3=Symbol.asyncIterator||Symbol("asyncIterator");class z2{constructor(Q,{highWaterMark:X=16384,map:J=null,mapWritable:Y,byteLength:Z,byteLengthWritable:q}={}){this.stream=Q,this.queue=new qd,this.highWaterMark=X,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=q||Z||Ud,this.map=Y||J,this.afterWrite=EA0.bind(this),this.afterUpdateNextTick=vA0.bind(this)}get ending(){return(this.stream._duplexState&134217728)!==0}get ended(){return(this.stream._duplexState&8388608)!==0}push(Q){if((this.stream._duplexState&142606350)!==0)return!1;if(this.map!==null)Q=this.map(Q);if(this.buffered+=this.byteLength(Q),this.queue.push(Q),this.buffered<this.highWaterMark)return this.stream._duplexState|=2097152,!0;return this.stream._duplexState|=6291456,!1}shift(){let Q=this.queue.shift();if(this.buffered-=this.byteLength(Q),this.buffered===0)this.stream._duplexState&=534773759;return Q}end(Q){if(typeof Q==="function")this.stream.once("finish",Q);else if(Q!==void 0&&Q!==null)this.push(Q);this.stream._duplexState=(this.stream._duplexState|134217728)&535822335}autoBatch(Q,X){let J=[],Y=this.stream;J.push(Q);while((Y._duplexState&270794767)===2359296)J.push(Y._writableState.shift());if((Y._duplexState&15)!==0)return X(null);Y._writev(J,X)}update(){let Q=this.stream;Q._duplexState|=524288;do{while((Q._duplexState&270794767)===2097152){let X=this.shift();Q._duplexState|=67371008,Q._write(X,this.afterWrite)}if((Q._duplexState&1310720)===0)this.updateNonPrimary()}while(this.continueUpdate()===!0);Q._duplexState&=536346623}updateNonPrimary(){let Q=this.stream;if((Q._duplexState&144965647)===134217728){Q._duplexState=Q._duplexState|262144,Q._final(AA0.bind(this));return}if((Q._duplexState&14)===4){if((Q._duplexState&33587200)===0)Q._duplexState|=262160,Q._destroy(Wd.bind(this));return}if((Q._duplexState&33587215)===1)Q._duplexState=(Q._duplexState|262160)&536870910,Q._open(Vd.bind(this))}continueUpdate(){if((this.stream._duplexState&33554432)===0)return!1;return this.stream._duplexState&=503316479,!0}updateCallback(){if((this.stream._duplexState&35127311)===1048576)this.update();else this.updateNextTick()}updateNextTick(){if((this.stream._duplexState&33554432)!==0)return;if(this.stream._duplexState|=33554432,(this.stream._duplexState&524288)===0)G2(this.afterUpdateNextTick)}}class $d{constructor(Q,{highWaterMark:X=16384,map:J=null,mapReadable:Y,byteLength:Z,byteLengthReadable:q}={}){this.stream=Q,this.queue=new qd,this.highWaterMark=X===0?1:X,this.buffered=0,this.readAhead=X>0,this.error=null,this.pipeline=null,this.byteLength=q||Z||Ud,this.map=Y||J,this.pipeTo=null,this.afterRead=_A0.bind(this),this.afterUpdateNextTick=SA0.bind(this)}get ending(){return(this.stream._duplexState&1024)!==0}get ended(){return(this.stream._duplexState&16384)!==0}pipe(Q,X){if(this.pipeTo!==null)throw X8.BAD_ARGUMENT("Can only pipe to one destination");if(typeof X!=="function")X=null;if(this.stream._duplexState|=512,this.pipeTo=Q,this.pipeline=new Kd(this.stream,Q,X),X)this.stream.on("error",U2);if(pJ(Q)){if(Q._writableState.pipeline=this.pipeline,X)Q.on("error",U2);Q.on("finish",this.pipeline.finished.bind(this.pipeline))}else{let J=this.pipeline.done.bind(this.pipeline,Q),Y=this.pipeline.done.bind(this.pipeline,Q,null);Q.on("error",J),Q.on("close",Y),Q.on("finish",this.pipeline.finished.bind(this.pipeline))}Q.on("drain",TA0.bind(this)),this.stream.emit("piping",Q),Q.emit("pipe",this.stream)}push(Q){let X=this.stream;if(Q===null)return this.highWaterMark=0,X._duplexState=(X._duplexState|1024)&536805311,!1;if(this.map!==null){if(Q=this.map(Q),Q===null)return X._duplexState&=536805375,this.buffered<this.highWaterMark}return this.buffered+=this.byteLength(Q),this.queue.push(Q),X._duplexState=(X._duplexState|128)&536805375,this.buffered<this.highWaterMark}shift(){let Q=this.queue.shift();if(this.buffered-=this.byteLength(Q),this.buffered===0)this.stream._duplexState&=536862591;return Q}unshift(Q){let X=[this.map!==null?this.map(Q):Q];while(this.buffered>0)X.push(this.shift());for(let J=0;J<X.length-1;J++){let Y=X[J];this.buffered+=this.byteLength(Y),this.queue.push(Y)}this.push(X[X.length-1])}read(){let Q=this.stream;if((Q._duplexState&16527)===128){let X=this.shift();if(this.pipeTo!==null&&this.pipeTo.write(X)===!1)Q._duplexState&=536870143;if((Q._duplexState&2048)!==0)Q.emit("data",X);return X}if(this.readAhead===!1)Q._duplexState|=131072,this.updateNextTick();return null}drain(){let Q=this.stream;while((Q._duplexState&16527)===128&&(Q._duplexState&768)!==0){let X=this.shift();if(this.pipeTo!==null&&this.pipeTo.write(X)===!1)Q._duplexState&=536870143;if((Q._duplexState&2048)!==0)Q.emit("data",X)}}update(){let Q=this.stream;Q._duplexState|=32;do{this.drain();while(this.buffered<this.highWaterMark&&(Q._duplexState&214047)===131072)Q._duplexState|=65552,Q._read(this.afterRead),this.drain();if((Q._duplexState&12431)===4224)Q._duplexState|=8192,Q.emit("readable");if((Q._duplexState&80)===0)this.updateNonPrimary()}while(this.continueUpdate()===!0);Q._duplexState&=536870879}updateNonPrimary(){let Q=this.stream;if((Q._duplexState&1167)===1024){if(Q._duplexState=(Q._duplexState|16384)&536869887,Q.emit("end"),(Q._duplexState&8405006)===8404992)Q._duplexState|=4;if(this.pipeTo!==null)this.pipeTo.end()}if((Q._duplexState&14)===4){if((Q._duplexState&33587200)===0)Q._duplexState|=262160,Q._destroy(Wd.bind(this));return}if((Q._duplexState&33587215)===1)Q._duplexState=(Q._duplexState|262160)&536870910,Q._open(Vd.bind(this))}continueUpdate(){if((this.stream._duplexState&32768)===0)return!1;return this.stream._duplexState&=536838143,!0}updateCallback(){if((this.stream._duplexState&32879)===64)this.update();else this.updateNextTick()}updateNextTickIfOpen(){if((this.stream._duplexState&32769)!==0)return;if(this.stream._duplexState|=32768,(this.stream._duplexState&32)===0)G2(this.afterUpdateNextTick)}updateNextTick(){if((this.stream._duplexState&32768)!==0)return;if(this.stream._duplexState|=32768,(this.stream._duplexState&32)===0)G2(this.afterUpdateNextTick)}}class Hd{constructor(Q){this.data=null,this.afterTransform=kA0.bind(Q),this.afterFinal=null}}class Kd{constructor(Q,X,J){this.from=Q,this.to=X,this.afterPipe=J,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(Q,X){if(X)this.error=X;if(Q===this.to){if(this.to=null,this.from!==null){if((this.from._duplexState&16384)===0||!this.pipeToFinished)this.from.destroy(this.error||X8.PREMATURE_CLOSE("Writable stream closed"));return}}if(Q===this.from){if(this.from=null,this.to!==null){if((Q._duplexState&16384)===0)this.to.destroy(this.error||X8.PREMATURE_CLOSE("Readable stream closed"));return}}if(this.afterPipe!==null)this.afterPipe(this.error);this.to=this.from=this.afterPipe=null}}function TA0(){this.stream._duplexState|=512,this.updateCallback()}function AA0(Q){let X=this.stream;if(Q)X.destroy(Q);if((X._duplexState&14)===0)X._duplexState|=8388608,X.emit("finish");if((X._duplexState&8405006)===8404992)X._duplexState|=4;if(X._duplexState&=402391039,(X._duplexState&524288)===0)this.update();else this.updateNextTick()}function Wd(Q){let X=this.stream;if(!Q&&!X8.isStreamDestroyed(this.error))Q=this.error;if(Q)X.emit("error",Q);X._duplexState|=8,X.emit("close");let{_readableState:J,_writableState:Y}=X;if(J!==null&&J.pipeline!==null)J.pipeline.done(X,Q);if(Y!==null){while(Y.drains!==null&&Y.drains.length>0)Y.drains.shift().resolve(!1);if(Y.pipeline!==null)Y.pipeline.done(X,Q)}}function EA0(Q){let X=this.stream;if(Q)X.destroy(Q);if(X._duplexState&=469499903,this.drains!==null)xA0(this.drains);if((X._duplexState&6553615)===4194304){if(X._duplexState&=532676607,(X._duplexState&16777216)===16777216)X.emit("drain")}this.updateCallback()}function _A0(Q){if(Q)this.stream.destroy(Q);if(this.stream._duplexState&=536870895,this.readAhead===!1&&(this.stream._duplexState&256)===0)this.stream._duplexState&=536739839;this.updateCallback()}function SA0(){if((this.stream._duplexState&32)===0)this.stream._duplexState&=536838143,this.update()}function vA0(){if((this.stream._duplexState&524288)===0)this.stream._duplexState&=503316479,this.update()}function xA0(Q){for(let X=0;X<Q.length;X++)if(--Q[X].writes===0)Q.shift().resolve(!0),X--}function Vd(Q){let X=this.stream;if(Q)X.destroy(Q);if((X._duplexState&4)===0){if((X._duplexState&17423)===0)X._duplexState|=64;if((X._duplexState&142606351)===0)X._duplexState|=1048576;X.emit("open")}if(X._duplexState&=536608751,X._writableState!==null)X._writableState.updateCallback();if(X._readableState!==null)X._readableState.updateCallback()}function kA0(Q,X){if(X!==void 0&&X!==null)this.push(X);this._writableState.afterWrite(Q)}function yA0(Q){if(this._readableState!==null){if(Q==="data")this._duplexState|=133376,this._readableState.updateNextTick();if(Q==="readable")this._duplexState|=4096,this._readableState.updateNextTick()}if(this._writableState!==null){if(Q==="drain")this._duplexState|=16777216,this._writableState.updateNextTick()}}class P3 extends DA0{constructor(Q){super();if(this._duplexState=0,this._readableState=null,this._writableState=null,Q){if(Q.open)this._open=Q.open;if(Q.destroy)this._destroy=Q.destroy;if(Q.predestroy)this._predestroy=Q.predestroy;if(Q.signal)Q.signal.addEventListener("abort",iA0.bind(this))}this.on("newListener",yA0)}_open(Q){Q(null)}_destroy(Q){Q(null)}_predestroy(){}get readable(){return this._readableState!==null?!0:void 0}get writable(){return this._writableState!==null?!0:void 0}get destroyed(){return(this._duplexState&8)!==0}get destroying(){return(this._duplexState&14)!==0}destroy(Q){if((this._duplexState&14)===0){if(!Q)Q=X8.STREAM_DESTROYED();if(this._duplexState=(this._duplexState|4)&535822271,this._readableState!==null)this._readableState.highWaterMark=0,this._readableState.error=Q;if(this._writableState!==null)this._writableState.highWaterMark=0,this._writableState.error=Q;if(this._duplexState|=2,this._predestroy(),this._duplexState&=536870909,this._readableState!==null)this._readableState.updateNextTick();if(this._writableState!==null)this._writableState.updateNextTick()}}}class lJ extends P3{constructor(Q){super(Q);if(this._duplexState|=8519681,this._readableState=new $d(this,Q),Q){if(this._readableState.readAhead===!1)this._duplexState&=536739839;if(Q.read)this._read=Q.read;if(Q.eagerOpen)this._readableState.updateNextTick();if(Q.encoding)this.setEncoding(Q.encoding)}}static deferred(Q,X){let J=new F2(X);return Q().then((Y)=>{if(Y===null)return J.end();if(J.destroying)return;M2(Y,J,U2)}).catch((Y)=>J.destroy(Y)),J}setEncoding(Q){let X=new wA0(Q),J=this._readableState.map||fA0;return this._readableState.map=Y,this;function Y(Z){let q=X.push(Z);return q===""&&(Z.byteLength!==0||X.remaining>0)?null:J(q)}}_read(Q){Q(null)}pipe(Q,X){return this._readableState.updateNextTick(),this._readableState.pipe(Q,X),Q}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(Q){return this._readableState.updateNextTickIfOpen(),this._readableState.push(Q)}unshift(Q){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(Q)}resume(){return this._duplexState|=131328,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?536739583:536870655,this}static _fromAsyncIterator(Q,X){let J,Y=new lJ({...X,read(q){Q.next().then(Z).then(q.bind(null,null)).catch(q)},predestroy(){J=Q.return()},destroy(q){if(!J)return q(null);J.then(q.bind(null,null)).catch(q)}});return Y;function Z(q){if(q.done)Y.push(null);else Y.push(q.value)}}static from(Q,X){if(lA0(Q))return Q;if(Q[I3])return this._fromAsyncIterator(Q[I3](),X);if(!Array.isArray(Q))Q=Q===void 0?[]:[Q];let J=0;return new lJ({...X,read(Y){this.push(J===Q.length?null:Q[J++]),Y(null)}})}static isBackpressured(Q){return(Q._duplexState&17422)!==0||Q._readableState.buffered>=Q._readableState.highWaterMark}static isPaused(Q){return(Q._duplexState&256)===0}[I3](){let Q=this,X=null,J=null,Y=null;return this.on("error",(K)=>{X=K}),this.on("readable",Z),this.on("close",q),{[I3](){return this},next(){return new Promise(function(K,V){J=K,Y=V;let W=Q.read();if(W!==null)$(W);else if((Q._duplexState&8)!==0)$(null)})},return(){return H(null)},throw(K){return H(K)}};function Z(){if(J!==null)$(Q.read())}function q(){if(J!==null)$(null)}function $(K){if(Y===null)return;if(X)Y(X);else if(K===null&&(Q._duplexState&16384)===0)Y(X8.STREAM_DESTROYED());else J({value:K,done:K===null});Y=J=null}function H(K){return Q.destroy(K),new Promise((V,W)=>{if(Q._duplexState&8)return V({value:void 0,done:!0});Q.once("close",function(){if(K)W(K);else V({value:void 0,done:!0})})})}}}class B2 extends P3{constructor(Q){super(Q);if(this._duplexState|=16385,this._writableState=new z2(this,Q),Q){if(Q.writev)this._writev=Q.writev;if(Q.write)this._write=Q.write;if(Q.final)this._final=Q.final;if(Q.eagerOpen)this._writableState.updateNextTick()}}cork(){this._duplexState|=268435456}uncork(){this._duplexState&=268435455,this._writableState.updateNextTick()}_writev(Q,X){X(null)}_write(Q,X){this._writableState.autoBatch(Q,X)}_final(Q){Q(null)}static isBackpressured(Q){return(Q._duplexState&146800654)!==0}static drained(Q){if(Q.destroyed)return Promise.resolve(!1);let X=Q._writableState,Y=(oA0(Q)?Math.min(1,X.queue.length):X.queue.length)+(Q._duplexState&67108864?1:0);if(Y===0)return Promise.resolve(!0);if(X.drains===null)X.drains=[];return new Promise((Z)=>{X.drains.push({writes:Y,resolve:Z})})}write(Q){return this._writableState.updateNextTick(),this._writableState.push(Q)}end(Q){return this._writableState.updateNextTick(),this._writableState.end(Q),this}}class C3 extends lJ{constructor(Q){super(Q);if(this._duplexState=1|this._duplexState&131072,this._writableState=new z2(this,Q),Q){if(Q.writev)this._writev=Q.writev;if(Q.write)this._write=Q.write;if(Q.final)this._final=Q.final}}cork(){this._duplexState|=268435456}uncork(){this._duplexState&=268435455,this._writableState.updateNextTick()}_writev(Q,X){X(null)}_write(Q,X){this._writableState.autoBatch(Q,X)}_final(Q){Q(null)}write(Q){return this._writableState.updateNextTick(),this._writableState.push(Q)}end(Q){return this._writableState.updateNextTick(),this._writableState.end(Q),this}}class L2 extends C3{constructor(Q){super(Q);if(this._transformState=new Hd(this),Q){if(Q.transform)this._transform=Q.transform;if(Q.flush)this._flush=Q.flush}}_write(Q,X){if(this._readableState.buffered>=this._readableState.highWaterMark)this._transformState.data=Q;else this._transform(Q,this._transformState.afterTransform)}_read(Q){if(this._transformState.data!==null){let X=this._transformState.data;this._transformState.data=null,Q(null),this._transform(X,this._transformState.afterTransform)}else Q(null)}destroy(Q){if(super.destroy(Q),this._transformState.data!==null)this._transformState.data=null,this._transformState.afterTransform()}_transform(Q,X){X(null,Q)}_flush(Q){Q(null)}_final(Q){this._transformState.afterFinal=Q,this._flush(hA0.bind(this))}}class F2 extends L2{}function hA0(Q,X){let J=this._transformState.afterFinal;if(Q)return J(Q);if(X!==null&&X!==void 0)this.push(X);this.push(null),J(null)}function bA0(...Q){return new Promise((X,J)=>{return M2(...Q,(Y)=>{if(Y)return J(Y);X()})})}function M2(Q,...X){let J=Array.isArray(Q)?[...Q,...X]:[Q,...X],Y=J.length&&typeof J[J.length-1]==="function"?J.pop():null;if(J.length<2)throw X8.BAD_ARGUMENT("Pipeline requires at least 2 streams");let Z=J[0],q=null,$=null;for(let V=1;V<J.length;V++){if(q=J[V],pJ(Z))Z.pipe(q,K);else H(Z,!0,V>1,K),Z.pipe(q);Z=q}if(Y){let V=!1,W=pJ(q)||!!(q._writableState&&q._writableState.autoDestroy);if(q.on("error",(G)=>{if($===null)$=G}),q.on("finish",()=>{if(V=!0,!W)Y($)}),W)q.on("close",()=>Y($||(V?null:X8.PREMATURE_CLOSE())))}return q;function H(V,W,G,U){V.on("error",U),V.on("close",z);function z(){if(W&&V._readableState&&!V._readableState.ended)return U(X8.PREMATURE_CLOSE());if(G&&V._writableState&&!V._writableState.ended)return U(X8.PREMATURE_CLOSE())}}function K(V){if(!V||$)return;$=V;for(let W of J)W.destroy(V)}}function fA0(Q){return Q}function Gd(Q){return!!Q._readableState||!!Q._writableState}function pJ(Q){return typeof Q._duplexState==="number"&&Gd(Q)}function gA0(Q){return!!Q._readableState&&Q._readableState.ending}function uA0(Q){return!!Q._readableState&&Q._readableState.ended}function mA0(Q){return!!Q._writableState&&Q._writableState.ending}function dA0(Q){return!!Q._writableState&&Q._writableState.ended}function cA0(Q,X={}){let J=Q._readableState&&Q._readableState.error||Q._writableState&&Q._writableState.error;return!X.all&&X8.isStreamDestroyed(J)?null:J}function lA0(Q){return pJ(Q)&&Q.readable}function pA0(Q){return(Q._duplexState&1)!==1||(Q._duplexState&4)===4||(Q._duplexState&33587200)!==0}function nA0(Q){return typeof Q==="object"&&Q!==null&&typeof Q.byteLength==="number"}function Ud(Q){return nA0(Q)?Q.byteLength:1024}function U2(){}function iA0(){this.destroy(X8.ABORTED())}function oA0(Q){return Q._writev!==B2.prototype._writev&&Q._writev!==C3.prototype._writev}zd.exports={pipeline:M2,pipelinePromise:bA0,isStream:Gd,isStreamx:pJ,isEnding:gA0,isEnded:uA0,isFinishing:mA0,isFinished:dA0,isDisturbed:pA0,getStreamError:cA0,Stream:P3,Writable:B2,Readable:lJ,Duplex:C3,Transform:L2,PassThrough:F2}});var C2=F(($E0)=>{var k0=l9(),Bd=k0.from([117,115,116,97,114,0]),rA0=k0.from([48,48]),sA0=k0.from([117,115,116,97,114,32]),aA0=k0.from([32,0]);$E0.decodeLongPath=function(X,J){return p9(X,0,X.length,J)};$E0.encodePax=function(X){let J="";if(X.name)J+=P2(" path="+X.name+`
34
+ `);if(X.linkname)J+=P2(" linkpath="+X.linkname+`
35
+ `);let Y=X.pax;if(Y)for(let Z in Y)J+=P2(" "+Z+"="+Y[Z]+`
36
+ `);return k0.from(J)};$E0.decodePax=function(X){let J={};while(X.length){let Y=0;while(Y<X.length&&X[Y]!==32)Y++;let Z=parseInt(k0.toString(X.subarray(0,Y)),10);if(!Z)return J;let q=k0.toString(X.subarray(Y+1,Z-1)),$=q.indexOf("=");if($===-1)return J;J[q.slice(0,$)]=q.slice($+1),X=X.subarray(Z)}return J};$E0.encode=function(X){let J=k0.alloc(512),Y=X.name,Z="";if(X.typeflag===5&&Y[Y.length-1]!=="/")Y+="/";if(k0.byteLength(Y)!==Y.length)return null;while(k0.byteLength(Y)>100){let q=Y.indexOf("/");if(q===-1)return null;Z+=Z?"/"+Y.slice(0,q):Y.slice(0,q),Y=Y.slice(q+1)}if(k0.byteLength(Y)>100||k0.byteLength(Z)>155)return null;if(X.linkname&&k0.byteLength(X.linkname)>100)return null;if(k0.write(J,Y),k0.write(J,$5(X.mode&4095,6),100),k0.write(J,$5(X.uid,6),108),k0.write(J,$5(X.gid,6),116),ZE0(X.size,J,124),k0.write(J,$5(X.mtime.getTime()/1000|0,11),136),J[156]=48+JE0(X.type),X.linkname)k0.write(J,X.linkname,157);if(k0.copy(Bd,J,257),k0.copy(rA0,J,263),X.uname)k0.write(J,X.uname,265);if(X.gname)k0.write(J,X.gname,297);if(k0.write(J,$5(X.devmajor||0,6),329),k0.write(J,$5(X.devminor||0,6),337),Z)k0.write(J,Z,345);return k0.write(J,$5(Fd(J),6),148),J};$E0.decode=function(X,J,Y){let Z=X[156]===0?0:X[156]-48,q=p9(X,0,100,J),$=q5(X,100,8),H=q5(X,108,8),K=q5(X,116,8),V=q5(X,124,12),W=q5(X,136,12),G=XE0(Z),U=X[157]===0?null:p9(X,157,100,J),z=p9(X,265,32),L=p9(X,297,32),B=q5(X,329,8),M=q5(X,337,8),I=Fd(X);if(I===256)return null;if(I!==q5(X,148,8))throw Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(tA0(X)){if(X[345])q=p9(X,345,155,J)+"/"+q}else if(eA0(X));else if(!Y)throw Error("Invalid tar header: unknown format.");if(Z===0&&q&&q[q.length-1]==="/")Z=5;return{name:q,mode:$,uid:H,gid:K,size:V,byteOffset:0,mtime:new Date(1000*W),type:G,linkname:U,uname:z,gname:L,devmajor:B,devminor:M,pax:null}};function tA0(Q){return k0.equals(Bd,Q.subarray(257,263))}function eA0(Q){return k0.equals(sA0,Q.subarray(257,263))&&k0.equals(aA0,Q.subarray(263,265))}function QE0(Q,X,J){if(typeof Q!=="number")return J;if(Q=~~Q,Q>=X)return X;if(Q>=0)return Q;if(Q+=X,Q>=0)return Q;return 0}function XE0(Q){switch(Q){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function JE0(Q){switch(Q){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function Ld(Q,X,J,Y){for(;J<Y;J++)if(Q[J]===X)return J;return Y}function Fd(Q){let X=256;for(let J=0;J<148;J++)X+=Q[J];for(let J=156;J<512;J++)X+=Q[J];return X}function $5(Q,X){if(Q=Q.toString(8),Q.length>X)return"7777777777777777777".slice(0,X)+" ";return"0000000000000000000".slice(0,X-Q.length)+Q+" "}function YE0(Q,X,J){X[J]=128;for(let Y=11;Y>0;Y--)X[J+Y]=Q&255,Q=Math.floor(Q/256)}function ZE0(Q,X,J){if(Q.toString(8).length>11)YE0(Q,X,J);else k0.write(X,$5(Q,11),J)}function qE0(Q){let X;if(Q[0]===128)X=!0;else if(Q[0]===255)X=!1;else return null;let J=[],Y;for(Y=Q.length-1;Y>0;Y--){let $=Q[Y];if(X)J.push($);else J.push(255-$)}let Z=0,q=J.length;for(Y=0;Y<q;Y++)Z+=J[Y]*Math.pow(256,Y);return X?Z:-1*Z}function q5(Q,X,J){if(Q=Q.subarray(X,X+J),X=0,Q[X]&128)return qE0(Q);else{while(X<Q.length&&Q[X]===32)X++;let Y=QE0(Ld(Q,32,X,Q.length),Q.length,Q.length);while(X<Y&&Q[X]===0)X++;if(Y===X)return 0;return parseInt(k0.toString(Q.subarray(X,Y)),8)}}function p9(Q,X,J,Y){return k0.toString(Q.subarray(X,Ld(Q,0,X,X+J)),Y)}function P2(Q){let X=k0.byteLength(Q),J=Math.floor(Math.log(X)/Math.log(10))+1;if(X+J>=Math.pow(10,J))J++;return X+J+Q}});var Rd=F((M41,Nd)=>{var{Writable:UE0,Readable:zE0,getStreamError:Md}=I2(),BE0=V2(),Id=l9(),n9=C2(),LE0=Id.alloc(0);class Pd{constructor(){this.buffered=0,this.shifted=0,this.queue=new BE0,this._offset=0}push(Q){this.buffered+=Q.byteLength,this.queue.push(Q)}shiftFirst(Q){return this.buffered===0?null:this._next(Q)}shift(Q){if(Q>this.buffered)return null;if(Q===0)return LE0;let X=this._next(Q);if(Q===X.byteLength)return X;let J=[X];while((Q-=X.byteLength)>0)X=this._next(Q),J.push(X);return Id.concat(J)}_next(Q){let X=this.queue.peek(),J=X.byteLength-this._offset;if(Q>=J){let Y=this._offset?X.subarray(this._offset,X.byteLength):X;return this.queue.shift(),this._offset=0,this.buffered-=J,this.shifted+=J,Y}return this.buffered-=Q,this.shifted+=Q,X.subarray(this._offset,this._offset+=Q)}}class Cd extends zE0{constructor(Q,X,J){super();this.header=X,this.offset=J,this._parent=Q}_read(Q){if(this.header.size===0)this.push(null);if(this._parent._stream===this)this._parent._update();Q(null)}_predestroy(){this._parent.destroy(Md(this))}_detach(){if(this._parent._stream===this)this._parent._stream=null,this._parent._missing=jd(this.header.size),this._parent._update()}_destroy(Q){this._detach(),Q(null)}}class Od extends UE0{constructor(Q){super(Q);if(!Q)Q={};this._buffer=new Pd,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=O2,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=Q.filenameEncoding||"utf-8",this._allowUnknownFormat=!!Q.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(Q){if(this._locked=!1,Q){this.destroy(Q),this._continueWrite(Q);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=n9.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(Q){return this._continueWrite(Q),!1}if(!this._header)return!0;switch(this._header.byteOffset=this._buffer.shifted,this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":if(this._longHeader=!0,this._missing=this._header.size,this._missing>4194304)return this._continueWrite(Error("Header exceeds max size")),!1;return!0}if(this._locked=!0,this._applyLongHeaders(),!(this._header.size>=0))return this._continueWrite(Error("Invalid header")),!1;if(this._header.size===0||this._header.type==="directory")return this.emit("entry",this._header,this._createStream(),this._unlockBound),!0;return this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0}_applyLongHeaders(){if(this._gnuLongPath)this._header.name=this._gnuLongPath,this._gnuLongPath=null;if(this._gnuLongLinkPath)this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null;if(this._pax){if(this._pax.path)this._header.name=this._pax.path;if(this._pax.linkpath)this._header.linkname=this._pax.linkpath;if(this._pax.size)this._header.size=parseInt(this._pax.size,10);this._header.pax=this._pax,this._pax=null}}_decodeLongHeader(Q){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=n9.decodeLongPath(Q,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=n9.decodeLongPath(Q,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=n9.decodePax(Q);break;case"pax-header":this._pax=this._paxGlobal===null?n9.decodePax(Q):Object.assign({},this._paxGlobal,n9.decodePax(Q));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=jd(this._header.size);let Q=this._buffer.shift(this._header.size);try{this._decodeLongHeader(Q)}catch(X){return this._continueWrite(X),!1}return!0}_consumeStream(){let Q=this._buffer.shiftFirst(this._missing);if(Q===null)return!1;this._missing-=Q.byteLength;let X=this._stream.push(Q);if(this._missing===0){if(this._stream.push(null),X)this._stream._detach();return X&&this._locked===!1}return X}_createStream(){return new Cd(this,this._header,this._offset)}_update(){while(this._buffer.buffered>0&&!this.destroying){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let Q=this._buffer.shiftFirst(this._missing);if(Q!==null)this._missing-=Q.byteLength;continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(Q){let X=this._callback;this._callback=O2,X(Q)}_write(Q,X){this._callback=X,this._buffer.push(Q),this._update()}_final(Q){this._finished=this._missing===0&&this._buffer.buffered===0,Q(this._finished?null:Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(Q){if(this._stream)this._stream.destroy(Md(this));Q(null)}[Symbol.asyncIterator](){let Q=null,X=null,J=null,Y=null,Z=null,q=this;return this.on("entry",K),this.on("error",(G)=>{Q=G}),this.on("close",V),{[Symbol.asyncIterator](){return this},next(){return new Promise(H)},return(){return W(null)},throw(G){return W(G)}};function $(G){if(!Z)return;let U=Z;Z=null,U(G)}function H(G,U){if(Q)return U(Q);if(Y){G({value:Y,done:!1}),Y=null;return}if(X=G,J=U,$(null),q._finished&&X)X({value:void 0,done:!0}),X=J=null}function K(G,U,z){if(Z=z,U.on("error",O2),X)X({value:U,done:!1}),X=J=null;else Y=U}function V(){if($(Q),!X)return;if(Q)J(Q);else X({value:void 0,done:!0});X=J=null}function W(G){return q.destroy(G),$(G),new Promise((U,z)=>{if(q.destroyed)return U({value:void 0,done:!0});q.once("close",function(){if(G)z(G);else U({value:void 0,done:!0})})})}}}Nd.exports=function(X){return new Od(X)};function O2(){}function jd(Q){return Q&=511,Q&&512-Q}});var wd=F((I41,j2)=>{var Dd={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{j2.exports=l("fs").constants||Dd}catch{j2.exports=Dd}});var xd=F((P41,vd)=>{var{Readable:FE0,Writable:ME0,getStreamError:Td}=I2(),U7=l9(),i9=wd(),O3=C2(),Ad=U7.alloc(1024);class Ed extends ME0{constructor(Q,X,J){super({mapWritable:PE0,eagerOpen:!0});if(this.written=0,this.header=X,this._callback=J,this._linkname=null,this._isLinkname=X.type==="symlink"&&!X.linkname,this._isVoid=X.type!=="file"&&X.type!=="contiguous-file",this._finished=!1,this._pack=Q,this._openCallback=null,this._pack._stream===null)this._pack._stream=this;else this._pack._pending.push(this)}_open(Q){if(this._openCallback=Q,this._pack._stream===this)this._continueOpen()}_continuePack(Q){if(this._callback===null)return;let X=this._callback;this._callback=null,X(Q)}_continueOpen(){if(this._pack._stream===null)this._pack._stream=this;let Q=this._openCallback;if(this._openCallback=null,Q===null)return;if(this._pack.destroying)return Q(Error("pack stream destroyed"));if(this._pack._finalized)return Q(Error("pack stream is already finalized"));if(this._pack._stream=this,!this._isLinkname)this._pack._encode(this.header);if(this._isVoid)this._finish(),this._continuePack(null);Q(null)}_write(Q,X){if(this._isLinkname)return this._linkname=this._linkname?U7.concat([this._linkname,Q]):Q,X(null);if(this._isVoid){if(Q.byteLength>0)return X(Error("No body allowed for this entry"));return X()}if(this.written+=Q.byteLength,this._pack.push(Q))return X();this._pack._drain=X}_finish(){if(this._finished)return;if(this._finished=!0,this._isLinkname)this.header.linkname=this._linkname?U7.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header);Sd(this._pack,this.header.size),this._pack._done(this)}_final(Q){if(this.written!==this.header.size)return Q(Error("Size mismatch"));this._finish(),Q(null)}_getError(){return Td(this)||Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(Q){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),Q()}}class _d extends FE0{constructor(Q){super(Q);this._drain=N2,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(Q,X,J){if(this._finalized||this.destroying)throw Error("already finalized or destroyed");if(typeof X==="function")J=X,X=null;if(!J)J=N2;if(!Q.size||Q.type==="symlink")Q.size=0;if(!Q.type)Q.type=IE0(Q.mode);if(!Q.mode)Q.mode=Q.type==="directory"?493:420;if(!Q.uid)Q.uid=0;if(!Q.gid)Q.gid=0;if(!Q.mtime)Q.mtime=new Date;if(typeof X==="string")X=U7.from(X);let Y=new Ed(this,Q,J);if(U7.isBuffer(X))return Q.size=X.byteLength,Y.write(X),Y.end(),Y;if(Y._isVoid)return Y;return Y}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}if(this._finalized)return;this._finalized=!0,this.push(Ad),this.push(null)}_done(Q){if(Q!==this._stream)return;if(this._stream=null,this._finalizing)this.finalize();if(this._pending.length)this._pending.shift()._continueOpen()}_encode(Q){if(!Q.pax){let X=O3.encode(Q);if(X){this.push(X);return}}this._encodePax(Q)}_encodePax(Q){let X=O3.encodePax({name:Q.name,linkname:Q.linkname,pax:Q.pax}),J={name:"PaxHeader",mode:Q.mode,uid:Q.uid,gid:Q.gid,size:X.byteLength,mtime:Q.mtime,type:"pax-header",linkname:Q.linkname&&"PaxHeader",uname:Q.uname,gname:Q.gname,devmajor:Q.devmajor,devminor:Q.devminor};this.push(O3.encode(J)),this.push(X),Sd(this,X.byteLength),J.size=Q.size,J.type=Q.type,this.push(O3.encode(J))}_doDrain(){let Q=this._drain;this._drain=N2,Q()}_predestroy(){let Q=Td(this);if(this._stream)this._stream.destroy(Q);while(this._pending.length){let X=this._pending.shift();X.destroy(Q),X._continueOpen()}this._doDrain()}_read(Q){this._doDrain(),Q()}}vd.exports=function(X){return new _d(X)};function IE0(Q){switch(Q&i9.S_IFMT){case i9.S_IFBLK:return"block-device";case i9.S_IFCHR:return"character-device";case i9.S_IFDIR:return"directory";case i9.S_IFIFO:return"fifo";case i9.S_IFLNK:return"symlink"}return"file"}function N2(){}function Sd(Q,X){if(X&=511,X)Q.push(Ad.subarray(0,512-X))}function PE0(Q){return U7.isBuffer(Q)?Q:U7.from(Q)}});var kd=F((CE0)=>{CE0.extract=Rd();CE0.pack=xd()});var bd=F((O41,hd)=>{var NE0=l("zlib"),RE0=kd(),yd=d9(),O4=function(Q){if(!(this instanceof O4))return new O4(Q);if(Q=this.options=yd.defaults(Q,{gzip:!1}),typeof Q.gzipOptions!=="object")Q.gzipOptions={};if(this.supports={directory:!0,symlink:!0},this.engine=RE0.pack(Q),this.compressor=!1,Q.gzip)this.compressor=NE0.createGzip(Q.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this))};O4.prototype._onCompressorError=function(Q){this.engine.emit("error",Q)};O4.prototype.append=function(Q,X,J){var Y=this;X.mtime=X.date;function Z($,H){if($){J($);return}Y.engine.entry(X,H,function(K){J(K,X)})}if(X.sourceType==="buffer")Z(null,Q);else if(X.sourceType==="stream"&&X.stats){X.size=X.stats.size;var q=Y.engine.entry(X,function($){J($,X)});Q.pipe(q)}else if(X.sourceType==="stream")yd.collectStream(Q,Z)};O4.prototype.finalize=function(){this.engine.finalize()};O4.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};O4.prototype.pipe=function(Q,X){if(this.compressor)return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(Q,X);else return this.engine.pipe.apply(this.engine,arguments)};O4.prototype.unpipe=function(){if(this.compressor)return this.compressor.unpipe.apply(this.compressor,arguments);else return this.engine.unpipe.apply(this.engine,arguments)};hd.exports=O4});var ud=F((j41,gd)=>{function DE0(Q){return Q&&Q.__esModule&&Object.prototype.hasOwnProperty.call(Q,"default")?Q.default:Q}var wE0=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function fd(Q){if(Buffer.isBuffer(Q))return Q;if(typeof Q==="number")return Buffer.alloc(Q);else if(typeof Q==="string")return Buffer.from(Q);else throw Error("input must be buffer, number, or string, received "+typeof Q)}function TE0(Q){let X=fd(4);return X.writeInt32BE(Q,0),X}function R2(Q,X){if(Q=fd(Q),Buffer.isBuffer(X))X=X.readUInt32BE(0);let J=~~X^-1;for(var Y=0;Y<Q.length;Y++)J=wE0[(J^Q[Y])&255]^J>>>8;return J^-1}function D2(){return TE0(R2.apply(null,arguments))}D2.signed=function(){return R2.apply(null,arguments)};D2.unsigned=function(){return R2.apply(null,arguments)>>>0};var AE0=D2,EE0=DE0(AE0);gd.exports=EE0});var ld=F((N41,cd)=>{var _E0=l("util").inherits,md=$7().Transform,SE0=ud(),dd=d9(),H5=function(Q){if(!(this instanceof H5))return new H5(Q);Q=this.options=dd.defaults(Q,{}),md.call(this,Q),this.supports={directory:!0,symlink:!0},this.files=[]};_E0(H5,md);H5.prototype._transform=function(Q,X,J){J(null,Q)};H5.prototype._writeStringified=function(){var Q=JSON.stringify(this.files);this.write(Q)};H5.prototype.append=function(Q,X,J){var Y=this;X.crc32=0;function Z(q,$){if(q){J(q);return}X.size=$.length||0,X.crc32=SE0.unsigned($),Y.files.push(X),J(null,X)}if(X.sourceType==="buffer")Z(null,Q);else if(X.sourceType==="stream")dd.collectStream(Q,Z)};H5.prototype.finalize=function(){this._writeStringified(),this.end()};cd.exports=H5});var nd=F((R41,pd)=>{var vE0=Km(),nJ={},K5=function(Q,X){return K5.create(Q,X)};K5.create=function(Q,X){if(nJ[Q]){var J=new vE0(Q,X);return J.setFormat(Q),J.setModule(new nJ[Q](X)),J}else throw Error("create("+Q+"): format not registered")};K5.registerFormat=function(Q,X){if(nJ[Q])throw Error("register("+Q+"): format already registered");if(typeof X!=="function")throw Error("register("+Q+"): format module invalid");if(typeof X.prototype.append!=="function"||typeof X.prototype.finalize!=="function")throw Error("register("+Q+"): format module missing methods");nJ[Q]=X};K5.isRegisteredFormat=function(Q){if(nJ[Q])return!0;return!1};K5.registerFormat("zip",cm());K5.registerFormat("tar",bd());K5.registerFormat("json",ld());pd.exports=K5});var od=F((D41,id)=>{var o9=1000,r9=o9*60,s9=r9*60,z7=s9*24,xE0=z7*7,kE0=z7*365.25;id.exports=function(Q,X){X=X||{};var J=typeof Q;if(J==="string"&&Q.length>0)return yE0(Q);else if(J==="number"&&isFinite(Q))return X.long?bE0(Q):hE0(Q);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(Q))};function yE0(Q){if(Q=String(Q),Q.length>100)return;var X=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(Q);if(!X)return;var J=parseFloat(X[1]),Y=(X[2]||"ms").toLowerCase();switch(Y){case"years":case"year":case"yrs":case"yr":case"y":return J*kE0;case"weeks":case"week":case"w":return J*xE0;case"days":case"day":case"d":return J*z7;case"hours":case"hour":case"hrs":case"hr":case"h":return J*s9;case"minutes":case"minute":case"mins":case"min":case"m":return J*r9;case"seconds":case"second":case"secs":case"sec":case"s":return J*o9;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return J;default:return}}function hE0(Q){var X=Math.abs(Q);if(X>=z7)return Math.round(Q/z7)+"d";if(X>=s9)return Math.round(Q/s9)+"h";if(X>=r9)return Math.round(Q/r9)+"m";if(X>=o9)return Math.round(Q/o9)+"s";return Q+"ms"}function bE0(Q){var X=Math.abs(Q);if(X>=z7)return j3(Q,X,z7,"day");if(X>=s9)return j3(Q,X,s9,"hour");if(X>=r9)return j3(Q,X,r9,"minute");if(X>=o9)return j3(Q,X,o9,"second");return Q+" ms"}function j3(Q,X,J,Y){var Z=X>=J*1.5;return Math.round(Q/J)+" "+Y+(Z?"s":"")}});var w2=F((w41,rd)=>{function fE0(Q){J.debug=J,J.default=J,J.coerce=K,J.disable=$,J.enable=Z,J.enabled=H,J.humanize=od(),J.destroy=V,Object.keys(Q).forEach((W)=>{J[W]=Q[W]}),J.names=[],J.skips=[],J.formatters={};function X(W){let G=0;for(let U=0;U<W.length;U++)G=(G<<5)-G+W.charCodeAt(U),G|=0;return J.colors[Math.abs(G)%J.colors.length]}J.selectColor=X;function J(W){let G,U=null,z,L;function B(...M){if(!B.enabled)return;let I=B,j=Number(new Date),D=j-(G||j);if(I.diff=D,I.prev=G,I.curr=j,G=j,M[0]=J.coerce(M[0]),typeof M[0]!=="string")M.unshift("%O");let N=0;M[0]=M[0].replace(/%([a-zA-Z%])/g,(f,S)=>{if(f==="%%")return"%";N++;let p=J.formatters[S];if(typeof p==="function"){let T=M[N];f=p.call(I,T),M.splice(N,1),N--}return f}),J.formatArgs.call(I,M),(I.log||J.log).apply(I,M)}if(B.namespace=W,B.useColors=J.useColors(),B.color=J.selectColor(W),B.extend=Y,B.destroy=J.destroy,Object.defineProperty(B,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(U!==null)return U;if(z!==J.namespaces)z=J.namespaces,L=J.enabled(W);return L},set:(M)=>{U=M}}),typeof J.init==="function")J.init(B);return B}function Y(W,G){let U=J(this.namespace+(typeof G>"u"?":":G)+W);return U.log=this.log,U}function Z(W){J.save(W),J.namespaces=W,J.names=[],J.skips=[];let G=(typeof W==="string"?W:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let U of G)if(U[0]==="-")J.skips.push(U.slice(1));else J.names.push(U)}function q(W,G){let U=0,z=0,L=-1,B=0;while(U<W.length)if(z<G.length&&(G[z]===W[U]||G[z]==="*"))if(G[z]==="*")L=z,B=U,z++;else U++,z++;else if(L!==-1)z=L+1,B++,U=B;else return!1;while(z<G.length&&G[z]==="*")z++;return z===G.length}function $(){let W=[...J.names,...J.skips.map((G)=>"-"+G)].join(",");return J.enable(""),W}function H(W){for(let G of J.skips)if(q(W,G))return!1;for(let G of J.names)if(q(W,G))return!0;return!1}function K(W){if(W instanceof Error)return W.stack||W.message;return W}function V(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return J.enable(J.load()),J}rd.exports=fE0});var ad=F((sd,N3)=>{sd.formatArgs=uE0;sd.save=mE0;sd.load=dE0;sd.useColors=gE0;sd.storage=cE0();sd.destroy=(()=>{let Q=!1;return()=>{if(!Q)Q=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();sd.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function gE0(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let Q;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(Q=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(Q[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function uE0(Q){if(Q[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+Q[0]+(this.useColors?"%c ":" ")+"+"+N3.exports.humanize(this.diff),!this.useColors)return;let X="color: "+this.color;Q.splice(1,0,X,"color: inherit");let J=0,Y=0;Q[0].replace(/%[a-zA-Z%]/g,(Z)=>{if(Z==="%%")return;if(J++,Z==="%c")Y=J}),Q.splice(Y,0,X)}sd.log=console.debug||console.log||(()=>{});function mE0(Q){try{if(Q)sd.storage.setItem("debug",Q);else sd.storage.removeItem("debug")}catch(X){}}function dE0(){let Q;try{Q=sd.storage.getItem("debug")||sd.storage.getItem("DEBUG")}catch(X){}if(!Q&&typeof process<"u"&&"env"in process)Q=process.env.DEBUG;return Q}function cE0(){try{return localStorage}catch(Q){}}N3.exports=w2()(sd);var{formatters:lE0}=N3.exports;lE0.j=function(Q){try{return JSON.stringify(Q)}catch(X){return"[UnexpectedJSONParseError]: "+X.message}}});var Xc=F((ed,D3)=>{var tE0=l("tty"),R3=l("util");ed.init=q_0;ed.log=J_0;ed.formatArgs=Q_0;ed.save=Y_0;ed.load=Z_0;ed.useColors=eE0;ed.destroy=R3.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ed.colors=[6,2,3,4,5,1];try{let Q=(()=>{throw new Error("Cannot require module "+"supports-color");})();if(Q&&(Q.stderr||Q).level>=2)ed.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(Q){}ed.inspectOpts=Object.keys(process.env).filter((Q)=>{return/^debug_/i.test(Q)}).reduce((Q,X)=>{let J=X.substring(6).toLowerCase().replace(/_([a-z])/g,(Z,q)=>{return q.toUpperCase()}),Y=process.env[X];if(/^(yes|on|true|enabled)$/i.test(Y))Y=!0;else if(/^(no|off|false|disabled)$/i.test(Y))Y=!1;else if(Y==="null")Y=null;else Y=Number(Y);return Q[J]=Y,Q},{});function eE0(){return"colors"in ed.inspectOpts?Boolean(ed.inspectOpts.colors):tE0.isatty(process.stderr.fd)}function Q_0(Q){let{namespace:X,useColors:J}=this;if(J){let Y=this.color,Z="\x1B[3"+(Y<8?Y:"8;5;"+Y),q=` ${Z};1m${X} \x1B[0m`;Q[0]=q+Q[0].split(`
37
+ `).join(`
38
+ `+q),Q.push(Z+"m+"+D3.exports.humanize(this.diff)+"\x1B[0m")}else Q[0]=X_0()+X+" "+Q[0]}function X_0(){if(ed.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function J_0(...Q){return process.stderr.write(R3.formatWithOptions(ed.inspectOpts,...Q)+`
39
+ `)}function Y_0(Q){if(Q)process.env.DEBUG=Q;else delete process.env.DEBUG}function Z_0(){return process.env.DEBUG}function q_0(Q){Q.inspectOpts={};let X=Object.keys(ed.inspectOpts);for(let J=0;J<X.length;J++)Q.inspectOpts[X[J]]=ed.inspectOpts[X[J]]}D3.exports=w2()(ed);var{formatters:td}=D3.exports;td.o=function(Q){return this.inspectOpts.colors=this.useColors,R3.inspect(Q,this.inspectOpts).split(`
40
+ `).map((X)=>X.trim()).join(" ")};td.O=function(Q){return this.inspectOpts.colors=this.useColors,R3.inspect(Q,this.inspectOpts)}});var A2=F((E41,T2)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)T2.exports=ad();else T2.exports=Xc()});var Jc=F((x6)=>{var z_0=x6&&x6.__importDefault||function(Q){return Q&&Q.__esModule?Q:{default:Q}};Object.defineProperty(x6,"__esModule",{value:!0});var B_0=l("fs"),L_0=z_0(A2()),a9=L_0.default("@kwsites/file-exists");function F_0(Q,X,J){a9("checking %s",Q);try{let Y=B_0.statSync(Q);if(Y.isFile()&&X)return a9("[OK] path represents a file"),!0;if(Y.isDirectory()&&J)return a9("[OK] path represents a directory"),!0;return a9("[FAIL] path represents something other than a file or directory"),!1}catch(Y){if(Y.code==="ENOENT")return a9("[FAIL] path is not accessible: %o",Y),!1;throw a9("[FATAL] %o",Y),Y}}function M_0(Q,X=x6.READABLE){return F_0(Q,(X&x6.FILE)>0,(X&x6.FOLDER)>0)}x6.exists=M_0;x6.FILE=1;x6.FOLDER=2;x6.READABLE=x6.FILE+x6.FOLDER});var Yc=F((E2)=>{function I_0(Q){for(var X in Q)if(!E2.hasOwnProperty(X))E2[X]=Q[X]}Object.defineProperty(E2,"__esModule",{value:!0});I_0(Jc())});var v2=F((Zc)=>{Object.defineProperty(Zc,"__esModule",{value:!0});Zc.createDeferred=Zc.deferred=void 0;function S2(){let Q,X,J="pending";return{promise:new Promise((Z,q)=>{Q=Z,X=q}),done(Z){if(J==="pending")J="resolved",Q(Z)},fail(Z){if(J==="pending")J="rejected",X(Z)},get fulfilled(){return J!=="pending"},get status(){return J}}}Zc.deferred=S2;Zc.createDeferred=S2;Zc.default=S2});var NL=F((f51,Un)=>{var jL={to(Q,X){if(!X)return`\x1B[${Q+1}G`;return`\x1B[${X+1};${Q+1}H`},move(Q,X){let J="";if(Q<0)J+=`\x1B[${-Q}D`;else if(Q>0)J+=`\x1B[${Q}C`;if(X<0)J+=`\x1B[${-X}A`;else if(X>0)J+=`\x1B[${X}B`;return J},up:(Q=1)=>`\x1B[${Q}A`,down:(Q=1)=>`\x1B[${Q}B`,forward:(Q=1)=>`\x1B[${Q}C`,backward:(Q=1)=>`\x1B[${Q}D`,nextLine:(Q=1)=>"\x1B[E".repeat(Q),prevLine:(Q=1)=>"\x1B[F".repeat(Q),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},xk0={up:(Q=1)=>"\x1B[S".repeat(Q),down:(Q=1)=>"\x1B[T".repeat(Q)},kk0={screen:"\x1B[2J",up:(Q=1)=>"\x1B[1J".repeat(Q),down:(Q=1)=>"\x1B[J".repeat(Q),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(Q){let X="";for(let J=0;J<Q;J++)X+=this.line+(J<Q-1?jL.up():"");if(Q)X+=jL.left;return X}};Un.exports={cursor:jL,scroll:xk0,erase:kk0,beep:"\x07"}});var zi=F((IQ1,Ui)=>{Ui.exports=Gi;Gi.sync=Lh0;var Wi=l("fs");function Bh0(Q,X){var J=X.pathExt!==void 0?X.pathExt:process.env.PATHEXT;if(!J)return!0;if(J=J.split(";"),J.indexOf("")!==-1)return!0;for(var Y=0;Y<J.length;Y++){var Z=J[Y].toLowerCase();if(Z&&Q.substr(-Z.length).toLowerCase()===Z)return!0}return!1}function Vi(Q,X,J){if(!Q.isSymbolicLink()&&!Q.isFile())return!1;return Bh0(X,J)}function Gi(Q,X,J){Wi.stat(Q,function(Y,Z){J(Y,Y?!1:Vi(Z,Q,X))})}function Lh0(Q,X){return Vi(Wi.statSync(Q),Q,X)}});var Ii=F((PQ1,Mi)=>{Mi.exports=Li;Li.sync=Fh0;var Bi=l("fs");function Li(Q,X,J){Bi.stat(Q,function(Y,Z){J(Y,Y?!1:Fi(Z,X))})}function Fh0(Q,X){return Fi(Bi.statSync(Q),X)}function Fi(Q,X){return Q.isFile()&&Mh0(Q,X)}function Mh0(Q,X){var{mode:J,uid:Y,gid:Z}=Q,q=X.uid!==void 0?X.uid:process.getuid&&process.getuid(),$=X.gid!==void 0?X.gid:process.getgid&&process.getgid(),H=parseInt("100",8),K=parseInt("010",8),V=parseInt("001",8),W=H|K,G=J&V||J&K&&Z===$||J&H&&Y===q||J&W&&q===0;return G}});var Ci=F((OQ1,Pi)=>{var CQ1=l("fs"),GH;if(process.platform==="win32"||global.TESTING_WINDOWS)GH=zi();else GH=Ii();Pi.exports=aL;aL.sync=Ih0;function aL(Q,X,J){if(typeof X==="function")J=X,X={};if(!J){if(typeof Promise!=="function")throw TypeError("callback not provided");return new Promise(function(Y,Z){aL(Q,X||{},function(q,$){if(q)Z(q);else Y($)})})}GH(Q,X||{},function(Y,Z){if(Y){if(Y.code==="EACCES"||X&&X.ignoreErrors)Y=null,Z=!1}J(Y,Z)})}function Ih0(Q,X){try{return GH.sync(Q,X||{})}catch(J){if(X&&X.ignoreErrors||J.code==="EACCES")return!1;else throw J}}});var Ti=F((jQ1,wi)=>{var GQ=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Oi=l("path"),Ph0=GQ?";":":",ji=Ci(),Ni=(Q)=>Object.assign(Error(`not found: ${Q}`),{code:"ENOENT"}),Ri=(Q,X)=>{let J=X.colon||Ph0,Y=Q.match(/\//)||GQ&&Q.match(/\\/)?[""]:[...GQ?[process.cwd()]:[],...(X.path||process.env.PATH||"").split(J)],Z=GQ?X.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",q=GQ?Z.split(J):[""];if(GQ){if(Q.indexOf(".")!==-1&&q[0]!=="")q.unshift("")}return{pathEnv:Y,pathExt:q,pathExtExe:Z}},Di=(Q,X,J)=>{if(typeof X==="function")J=X,X={};if(!X)X={};let{pathEnv:Y,pathExt:Z,pathExtExe:q}=Ri(Q,X),$=[],H=(V)=>new Promise((W,G)=>{if(V===Y.length)return X.all&&$.length?W($):G(Ni(Q));let U=Y[V],z=/^".*"$/.test(U)?U.slice(1,-1):U,L=Oi.join(z,Q),B=!z&&/^\.[\\\/]/.test(Q)?Q.slice(0,2)+L:L;W(K(B,V,0))}),K=(V,W,G)=>new Promise((U,z)=>{if(G===Z.length)return U(H(W+1));let L=Z[G];ji(V+L,{pathExt:q},(B,M)=>{if(!B&&M)if(X.all)$.push(V+L);else return U(V+L);return U(K(V,W,G+1))})});return J?H(0).then((V)=>J(null,V),J):H(0)},Ch0=(Q,X)=>{X=X||{};let{pathEnv:J,pathExt:Y,pathExtExe:Z}=Ri(Q,X),q=[];for(let $=0;$<J.length;$++){let H=J[$],K=/^".*"$/.test(H)?H.slice(1,-1):H,V=Oi.join(K,Q),W=!K&&/^\.[\\\/]/.test(Q)?Q.slice(0,2)+V:V;for(let G=0;G<Y.length;G++){let U=W+Y[G];try{if(ji.sync(U,{pathExt:Z}))if(X.all)q.push(U);else return U}catch(z){}}}if(X.all&&q.length)return q;if(X.nothrow)return null;throw Ni(Q)};wi.exports=Di;Di.sync=Ch0});var Ei=F((NQ1,tL)=>{var Ai=(Q={})=>{let X=Q.env||process.env;if((Q.platform||process.platform)!=="win32")return"PATH";return Object.keys(X).reverse().find((Y)=>Y.toUpperCase()==="PATH")||"Path"};tL.exports=Ai;tL.exports.default=Ai});var xi=F((RQ1,vi)=>{var _i=l("path"),Oh0=Ti(),jh0=Ei();function Si(Q,X){let J=Q.options.env||process.env,Y=process.cwd(),Z=Q.options.cwd!=null,q=Z&&process.chdir!==void 0&&!process.chdir.disabled;if(q)try{process.chdir(Q.options.cwd)}catch(H){}let $;try{$=Oh0.sync(Q.command,{path:J[jh0({env:J})],pathExt:X?_i.delimiter:void 0})}catch(H){}finally{if(q)process.chdir(Y)}if($)$=_i.resolve(Z?Q.options.cwd:"",$);return $}function Nh0(Q){return Si(Q)||Si(Q,!0)}vi.exports=Nh0});var ki=F((wh0,QF)=>{var eL=/([()\][%!^"`<>&|;, *?])/g;function Rh0(Q){return Q=Q.replace(eL,"^$1"),Q}function Dh0(Q,X){if(Q=`${Q}`,Q=Q.replace(/(?=(\\+?)?)\1"/g,"$1$1\\\""),Q=Q.replace(/(?=(\\+?)?)\1$/,"$1$1"),Q=`"${Q}"`,Q=Q.replace(eL,"^$1"),X)Q=Q.replace(eL,"^$1");return Q}wh0.command=Rh0;wh0.argument=Dh0});var hi=F((DQ1,yi)=>{yi.exports=/^#!(.*)/});var fi=F((wQ1,bi)=>{var Eh0=hi();bi.exports=(Q="")=>{let X=Q.match(Eh0);if(!X)return null;let[J,Y]=X[0].replace(/#! ?/,"").split(" "),Z=J.split("/").pop();if(Z==="env")return Y;return Y?`${Z} ${Y}`:Z}});var ui=F((TQ1,gi)=>{var XF=l("fs"),_h0=fi();function Sh0(Q){let J=Buffer.alloc(150),Y;try{Y=XF.openSync(Q,"r"),XF.readSync(Y,J,0,150,0),XF.closeSync(Y)}catch(Z){}return _h0(J.toString())}gi.exports=Sh0});var li=F((AQ1,ci)=>{var vh0=l("path"),mi=xi(),di=ki(),xh0=ui(),kh0=process.platform==="win32",yh0=/\.(?:com|exe)$/i,hh0=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function bh0(Q){Q.file=mi(Q);let X=Q.file&&xh0(Q.file);if(X)return Q.args.unshift(Q.file),Q.command=X,mi(Q);return Q.file}function fh0(Q){if(!kh0)return Q;let X=bh0(Q),J=!yh0.test(X);if(Q.options.forceShell||J){let Y=hh0.test(X);Q.command=vh0.normalize(Q.command),Q.command=di.command(Q.command),Q.args=Q.args.map((q)=>di.argument(q,Y));let Z=[Q.command].concat(Q.args).join(" ");Q.args=["/d","/s","/c",`"${Z}"`],Q.command=process.env.comspec||"cmd.exe",Q.options.windowsVerbatimArguments=!0}return Q}function gh0(Q,X,J){if(X&&!Array.isArray(X))J=X,X=null;X=X?X.slice(0):[],J=Object.assign({},J);let Y={command:Q,args:X,options:J,file:void 0,original:{command:Q,args:X}};return J.shell?Y:fh0(Y)}ci.exports=gh0});var ii=F((EQ1,ni)=>{var JF=process.platform==="win32";function YF(Q,X){return Object.assign(Error(`${X} ${Q.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${X} ${Q.command}`,path:Q.command,spawnargs:Q.args})}function uh0(Q,X){if(!JF)return;let J=Q.emit;Q.emit=function(Y,Z){if(Y==="exit"){let q=pi(Z,X);if(q)return J.call(Q,"error",q)}return J.apply(Q,arguments)}}function pi(Q,X){if(JF&&Q===1&&!X.file)return YF(X.original,"spawn");return null}function mh0(Q,X){if(JF&&Q===1&&!X.file)return YF(X.original,"spawnSync");return null}ni.exports={hookChildProcess:uh0,verifyENOENT:pi,verifyENOENTSync:mh0,notFoundError:YF}});var si=F((_Q1,UQ)=>{var oi=l("child_process"),ZF=li(),qF=ii();function ri(Q,X,J){let Y=ZF(Q,X,J),Z=oi.spawn(Y.command,Y.args,Y.options);return qF.hookChildProcess(Z,Y),Z}function dh0(Q,X,J){let Y=ZF(Q,X,J),Z=oi.spawnSync(Y.command,Y.args,Y.options);return Z.error=Z.error||qF.verifyENOENTSync(Z.status,Y),Z}UQ.exports=ri;UQ.exports.spawn=ri;UQ.exports.sync=dh0;UQ.exports._parse=ZF;UQ.exports._enoent=qF});var j1=F((ra)=>{Object.defineProperty(ra,"__esModule",{value:!0});ra.Log=ra.LogLevel=void 0;var id0=" DEBUG ",od0=" INFO ",rd0=" WARN ",sd0=" ERROR ";function WK(Q){return Q.unshift("[Statsig]"),Q}ra.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class T7{static info(...Q){if(T7.level>=ra.LogLevel.Info)console.info(od0,...WK(Q))}static debug(...Q){if(T7.level>=ra.LogLevel.Debug)console.debug(id0,...WK(Q))}static warn(...Q){if(T7.level>=ra.LogLevel.Warn)console.warn(rd0,...WK(Q))}static error(...Q){if(T7.level>=ra.LogLevel.Error)console.error(sd0,...WK(Q))}}ra.Log=T7;T7.level=ra.LogLevel.Warn});var M5=F((Qt)=>{var LM,FM,MM;Object.defineProperty(Qt,"__esModule",{value:!0});Qt._getInstance=Qt._getStatsigGlobalFlag=Qt._getStatsigGlobal=void 0;var ad0=j1(),td0=()=>{try{return typeof __STATSIG__<"u"?__STATSIG__:RY}catch(Q){return RY}};Qt._getStatsigGlobal=td0;var ed0=(Q)=>{return Qt._getStatsigGlobal()[Q]};Qt._getStatsigGlobalFlag=ed0;var Qc0=(Q)=>{let X=Qt._getStatsigGlobal();if(!Q){if(X.instances&&Object.keys(X.instances).length>1)ad0.Log.warn("Call made to Statsig global instance without an SDK key but there is more than one client instance. If you are using mulitple clients, please specify the SDK key.");return X.firstInstance}return X.instances&&X.instances[Q]};Qt._getInstance=Qc0;var RQ="__STATSIG__",aa=typeof window<"u"?window:{},ta=typeof global<"u"?global:{},ea=typeof globalThis<"u"?globalThis:{},RY=(MM=(FM=(LM=aa[RQ])!==null&&LM!==void 0?LM:ta[RQ])!==null&&FM!==void 0?FM:ea[RQ])!==null&&MM!==void 0?MM:{instance:Qt._getInstance};aa[RQ]=RY;ta[RQ]=RY;ea[RQ]=RY});var GK=F((Xt)=>{Object.defineProperty(Xt,"__esModule",{value:!0});Xt.Diagnostics=void 0;var VK=new Map,CM="start",OM="end",Jc0="statsig::diagnostics";Xt.Diagnostics={_getMarkers:(Q)=>{return VK.get(Q)},_markInitOverallStart:(Q)=>{wQ(Q,DQ({},CM,"overall"))},_markInitOverallEnd:(Q,X,J)=>{wQ(Q,DQ({success:X,error:X?void 0:{name:"InitializeError",message:"Failed to initialize"},evaluationDetails:J},OM,"overall"))},_markInitNetworkReqStart:(Q,X)=>{wQ(Q,DQ(X,CM,"initialize","network_request"))},_markInitNetworkReqEnd:(Q,X)=>{wQ(Q,DQ(X,OM,"initialize","network_request"))},_markInitProcessStart:(Q)=>{wQ(Q,DQ({},CM,"initialize","process"))},_markInitProcessEnd:(Q,X)=>{wQ(Q,DQ(X,OM,"initialize","process"))},_clearMarkers:(Q)=>{VK.delete(Q)},_formatError(Q){if(!(Q&&typeof Q==="object"))return;return{code:jM(Q,"code"),name:jM(Q,"name"),message:jM(Q,"message")}},_getDiagnosticsData(Q,X,J,Y){var Z;return{success:(Q===null||Q===void 0?void 0:Q.ok)===!0,statusCode:Q===null||Q===void 0?void 0:Q.status,sdkRegion:(Z=Q===null||Q===void 0?void 0:Q.headers)===null||Z===void 0?void 0:Z.get("x-statsig-region"),isDelta:J.includes('"is_delta":true')===!0?!0:void 0,attempt:X,error:Xt.Diagnostics._formatError(Y)}},_enqueueDiagnosticsEvent(Q,X,J,Y){let Z=Xt.Diagnostics._getMarkers(J);if(Z==null||Z.length<=0)return-1;let q=Z[Z.length-1].timestamp-Z[0].timestamp;Xt.Diagnostics._clearMarkers(J);let $=Yc0(Q,{context:"initialize",markers:Z.slice(),statsigOptions:Y});return X.enqueue($),q}};function DQ(Q,X,J,Y){return Object.assign({key:J,action:X,step:Y,timestamp:Date.now()},Q)}function Yc0(Q,X){return{eventName:Jc0,user:Q,value:null,metadata:X,time:Date.now()}}function wQ(Q,X){var J;let Y=(J=VK.get(Q))!==null&&J!==void 0?J:[];Y.push(X),VK.set(Q,Y)}function jM(Q,X){if(X in Q)return Q[X];return}});var qt=F((Yt)=>{Object.defineProperty(Yt,"__esModule",{value:!0});Yt.EventBatch=void 0;class Jt{constructor(Q){this.attempts=0,this.createdAt=Date.now(),this.events=Q}incrementAttempts(){this.attempts++}}Yt.EventBatch=Jt});var UK=F(($t)=>{Object.defineProperty($t,"__esModule",{value:!0});$t.EventRetryConstants=void 0;$t.EventRetryConstants={MAX_RETRY_ATTEMPTS:8,DEFAULT_BATCH_SIZE:100,MAX_PENDING_BATCHES:40,TICK_INTERVAL_MS:1000,QUICK_FLUSH_WINDOW_MS:200,MAX_LOCAL_STORAGE:500,get MAX_QUEUED_EVENTS(){return this.DEFAULT_BATCH_SIZE*this.MAX_PENDING_BATCHES}}});var Ut=F((Vt)=>{Object.defineProperty(Vt,"__esModule",{value:!0});Vt.BatchQueue=void 0;var Zc0=qt(),Kt=UK();class Wt{constructor(Q=Kt.EventRetryConstants.DEFAULT_BATCH_SIZE){this._batches=[],this._batchSize=Q}batchSize(){return this._batchSize}requeueBatch(Q){return this._enqueueBatch(Q)}hasFullBatch(){return this._batches.some((Q)=>Q.events.length>=this._batchSize)}takeNextBatch(){return this._batches.shift()}takeAllBatches(){let Q=this._batches;return this._batches=[],Q}createBatches(Q){let X=0,J=0;while(X<Q.length){let Y=Q.slice(X,X+this._batchSize);J+=this._enqueueBatch(new Zc0.EventBatch(Y)),X+=this._batchSize}return J}_enqueueBatch(Q){this._batches.push(Q);let X=0;while(this._batches.length>Kt.EventRetryConstants.MAX_PENDING_BATCHES){let J=this._batches.shift();if(J)X+=J.events.length}return X}}Vt.BatchQueue=Wt});var zK=F((zt)=>{Object.defineProperty(zt,"__esModule",{value:!0});zt._isTypeMatch=zt._typeOf=void 0;function qc0(Q){return Array.isArray(Q)?"array":typeof Q}zt._typeOf=qc0;function $c0(Q,X){let J=(Y)=>Array.isArray(Y)?"array":Y===null?"null":typeof Y;return J(Q)===J(X)}zt._isTypeMatch=$c0});var I5=F((Lt)=>{Object.defineProperty(Lt,"__esModule",{value:!0});Lt._getSortedObject=Lt._DJB2Object=Lt._DJB2=void 0;var Kc0=zK(),Wc0=(Q)=>{let X=0;for(let J=0;J<Q.length;J++){let Y=Q.charCodeAt(J);X=(X<<5)-X+Y,X=X&X}return String(X>>>0)};Lt._DJB2=Wc0;var Vc0=(Q,X)=>{return Lt._DJB2(JSON.stringify(Lt._getSortedObject(Q,X)))};Lt._DJB2Object=Vc0;var Gc0=(Q,X)=>{if(Q==null)return null;let J=Object.keys(Q).sort(),Y={};return J.forEach((Z)=>{let q=Q[Z];if(X===0||(0,Kc0._typeOf)(q)!=="object"){Y[Z]=q;return}Y[Z]=Lt._getSortedObject(q,X!=null?X-1:X)}),Y};Lt._getSortedObject=Gc0});var wY=F((Pt)=>{Object.defineProperty(Pt,"__esModule",{value:!0});Pt._getStorageKey=Pt._getUserStorageKey=void 0;var Mt=I5();function It(Q,X,J){var Y;if(J)return J(Q,X);let Z=X&&X.customIDs?X.customIDs:{},q=[`uid:${(Y=X===null||X===void 0?void 0:X.userID)!==null&&Y!==void 0?Y:""}`,`cids:${Object.keys(Z).sort(($,H)=>$.localeCompare(H)).map(($)=>`${$}-${Z[$]}`).join(",")}`,`k:${Q}`];return(0,Mt._DJB2)(q.join("|"))}Pt._getUserStorageKey=It;function zc0(Q,X,J){if(X)return It(Q,X,J);return(0,Mt._DJB2)(`k:${Q}`)}Pt._getStorageKey=zc0});var TQ=F((Ot)=>{Object.defineProperty(Ot,"__esModule",{value:!0});Ot.NetworkParam=Ot.NetworkDefault=Ot.Endpoint=void 0;Ot.Endpoint={_initialize:"initialize",_rgstr:"rgstr",_download_config_specs:"download_config_specs"};Ot.NetworkDefault={[Ot.Endpoint._rgstr]:"https://prodregistryv2.org/v1",[Ot.Endpoint._initialize]:"https://featureassets.org/v1",[Ot.Endpoint._download_config_specs]:"https://api.statsigcdn.com/v1"};Ot.NetworkParam={EventCount:"ec",SdkKey:"k",SdkType:"st",SdkVersion:"sv",Time:"t",SessionID:"sid",StatsigEncoded:"se",IsGzipped:"gz"}});var TY=F((Rt)=>{Object.defineProperty(Rt,"__esModule",{value:!0});Rt.SDKType=void 0;var Nt={},AQ;Rt.SDKType={_get:(Q)=>{var X;return((X=Nt[Q])!==null&&X!==void 0?X:"js-mono")+(AQ!==null&&AQ!==void 0?AQ:"")},_setClientType(Q,X){Nt[Q]=X},_setBindingType(Q){if(!AQ||AQ==="-react")AQ="-"+Q}}});var EQ=F((wt)=>{Object.defineProperty(wt,"__esModule",{value:!0});wt.StatsigMetadataProvider=wt.SDK_VERSION=void 0;wt.SDK_VERSION="3.33.4";var NM={sdkVersion:wt.SDK_VERSION,sdkType:"js-mono"};wt.StatsigMetadataProvider={get:()=>NM,add:(Q)=>{NM=Object.assign(Object.assign({},NM),Q)}}});var w8=F((Et)=>{Object.defineProperty(Et,"__esModule",{value:!0});Et._cloneObject=Et._getUnloadEvent=Et._getCurrentPageUrlSafe=Et._addDocumentEventListenerSafe=Et._addWindowEventListenerSafe=Et._isServerEnv=Et._getDocumentSafe=Et._getWindowSafe=void 0;var Fc0=j1(),Mc0=()=>{return typeof window<"u"?window:null};Et._getWindowSafe=Mc0;var Ic0=()=>{var Q;let X=Et._getWindowSafe();return(Q=X===null||X===void 0?void 0:X.document)!==null&&Q!==void 0?Q:null};Et._getDocumentSafe=Ic0;var Pc0=()=>{if(Et._getDocumentSafe()!==null)return!1;let Q=typeof process<"u"&&process.versions!=null&&process.versions.node!=null;return typeof EdgeRuntime==="string"||Q};Et._isServerEnv=Pc0;var Cc0=(Q,X)=>{let J=Et._getWindowSafe();if(typeof(J===null||J===void 0?void 0:J.addEventListener)==="function")J.addEventListener(Q,X)};Et._addWindowEventListenerSafe=Cc0;var Oc0=(Q,X)=>{let J=Et._getDocumentSafe();if(typeof(J===null||J===void 0?void 0:J.addEventListener)==="function")J.addEventListener(Q,X)};Et._addDocumentEventListenerSafe=Oc0;var jc0=()=>{var Q;try{return(Q=Et._getWindowSafe())===null||Q===void 0?void 0:Q.location.href.split(/[?#]/)[0]}catch(X){return}};Et._getCurrentPageUrlSafe=jc0;var Nc0=()=>{let Q=Et._getWindowSafe();if(!Q)return"beforeunload";return"onpagehide"in Q?"pagehide":"beforeunload"};Et._getUnloadEvent=Nc0;var Rc0=(Q,X)=>{try{return JSON.parse(JSON.stringify(X))}catch(J){return Fc0.Log.error(`Failed to clone object ${Q}`),null}};Et._cloneObject=Rc0});var SQ=F((vt)=>{Object.defineProperty(vt,"__esModule",{value:!0});vt._notifyVisibilityChanged=vt._subscribeToVisiblityChanged=vt._isUnloading=vt._isCurrentlyVisible=void 0;var EY=w8(),FK="foreground",wM="background",St=[],DM=FK,TM=!1,_c0=()=>{return DM===FK};vt._isCurrentlyVisible=_c0;var Sc0=()=>TM;vt._isUnloading=Sc0;var vc0=(Q)=>{St.unshift(Q)};vt._subscribeToVisiblityChanged=vc0;var xc0=(Q)=>{if(Q===DM)return;DM=Q,St.forEach((X)=>X(Q))};vt._notifyVisibilityChanged=xc0;(0,EY._addWindowEventListenerSafe)("focus",()=>{TM=!1,vt._notifyVisibilityChanged(FK)});(0,EY._addWindowEventListenerSafe)("blur",()=>vt._notifyVisibilityChanged(wM));(0,EY._addDocumentEventListenerSafe)("visibilitychange",()=>{vt._notifyVisibilityChanged(document.visibilityState==="visible"?FK:wM)});(0,EY._addWindowEventListenerSafe)((0,EY._getUnloadEvent)(),()=>{TM=!0,vt._notifyVisibilityChanged(wM)})});var yt=F((vQ)=>{var xt=vQ&&vQ.__awaiter||function(Q,X,J,Y){function Z(q){return q instanceof J?q:new J(function($){$(q)})}return new(J||(J=Promise))(function(q,$){function H(W){try{V(Y.next(W))}catch(G){$(G)}}function K(W){try{V(Y.throw(W))}catch(G){$(G)}}function V(W){W.done?q(W.value):Z(W.value).then(H,K)}V((Y=Y.apply(Q,X||[])).next())})};Object.defineProperty(vQ,"__esModule",{value:!0});vQ.EventSender=void 0;var bc0=j1(),fc0=TQ(),gc0=TY(),uc0=EQ(),mc0=SQ();class kt{constructor(Q,X,J,Y,Z){this._sdkKey=Q,this._network=X,this._emitter=J,this._options=Z,this._logEventUrlConfig=Y}setLogEventCompressionMode(Q){this._network.setLogEventCompressionMode(Q)}sendBatch(Q){return xt(this,void 0,void 0,function*(){var X,J,Y;let Z="event_sender_unexpected_exception",q={};try{let H=(0,mc0._isUnloading)()&&this._network.isBeaconSupported()&&((J=(X=this._options)===null||X===void 0?void 0:X.networkConfig)===null||J===void 0?void 0:J.networkOverrideFunc)==null;Z="event_sender_pre_logs_flushed_emitter_exception",this._emitter({name:"pre_logs_flushed",events:Q.events}),Z=H?"event_sender_unexpected_exception":"event_sender_post_exception";let K=H?this._sendEventsViaBeacon(Q,q):yield this._sendEventsViaPost(Q,q);if(K.success)return Z="event_sender_logs_flushed_emitter_exception",this._emitter({name:"logs_flushed",events:Q.events}),K;return Object.assign(Object.assign(Object.assign({success:!1,statusCode:K.statusCode,failurePath:K.failurePath},K.failureErrorMessage?{failureErrorMessage:K.failureErrorMessage}:{}),K.failureDiagnosticBucket?{failureDiagnosticBucket:K.failureDiagnosticBucket}:{}),K.failureDiagnosticMetadata?{failureDiagnosticMetadata:K.failureDiagnosticMetadata}:{})}catch($){return bc0.Log.warn("Failed to send batch:",$),Object.assign(Object.assign(Object.assign({success:!1,statusCode:-1,failurePath:(Y=q.path)!==null&&Y!==void 0?Y:Z},q.errorMessage?{failureErrorMessage:q.errorMessage}:{}),q.diagnosticBucket?{failureDiagnosticBucket:q.diagnosticBucket}:{}),q.diagnosticMetadata?{failureDiagnosticMetadata:q.diagnosticMetadata}:{})}})}_sendEventsViaPost(Q,X){return xt(this,void 0,void 0,function*(){var J,Y;let Z=yield this._network.post(this._getRequestData(Q),X),q=(J=Z===null||Z===void 0?void 0:Z.code)!==null&&J!==void 0?J:-1;if(q===-1)return Object.assign(Object.assign(Object.assign({success:!1,statusCode:-1,failurePath:(Y=X.path)!==null&&Y!==void 0?Y:Z===void 0?"event_sender_post_returned_undefined":"event_sender_post_returned_null"},X.errorMessage?{failureErrorMessage:X.errorMessage}:{}),X.diagnosticBucket?{failureDiagnosticBucket:X.diagnosticBucket}:{}),X.diagnosticMetadata?{failureDiagnosticMetadata:X.diagnosticMetadata}:{});return{success:q>=200&&q<300,statusCode:q}})}_sendEventsViaBeacon(Q,X){var J;let Y=this._network.beacon(this._getRequestData(Q),X);return Object.assign(Object.assign(Object.assign({success:Y,statusCode:Y?200:-1,failurePath:Y?void 0:(J=X.path)!==null&&J!==void 0?J:"beacon_send_false"},!Y&&X.errorMessage?{failureErrorMessage:X.errorMessage}:{}),!Y&&X.diagnosticBucket?{failureDiagnosticBucket:X.diagnosticBucket}:{}),!Y&&X.diagnosticMetadata?{failureDiagnosticMetadata:X.diagnosticMetadata}:{})}_getRequestData(Q){return{sdkKey:this._sdkKey,data:{events:Q.events},urlConfig:this._logEventUrlConfig,retries:3,preserveFailedStatusCode:!0,isCompressable:!0,params:{[fc0.NetworkParam.EventCount]:String(Q.events.length)},headers:{"statsig-event-count":String(Q.events.length),"statsig-retry-count":String(Q.attempts),"statsig-sdk-type":gc0.SDKType._get(this._sdkKey),"statsig-sdk-version":uc0.SDK_VERSION},credentials:"same-origin"}}}vQ.EventSender=kt});var gt=F((bt)=>{Object.defineProperty(bt,"__esModule",{value:!0});bt.FlushInterval=void 0;var MK=1000,AM=60000;class ht{constructor(){this._currentIntervalMs=MK,this._lastFlushAttemptTime=Date.now()}getCurrentIntervalMs(){return this._currentIntervalMs}markFlushAttempt(){this._lastFlushAttemptTime=Date.now()}getTimeSinceLastAttempt(){return Date.now()-this._lastFlushAttemptTime}hasReachedMaxInterval(){return this.getTimeSinceLastAttempt()>=AM}getTimeTillMaxInterval(){return AM-this.getTimeSinceLastAttempt()}hasCompletelyRecoveredFromBackoff(){return this._currentIntervalMs<=MK}adjustForSuccess(){let Q=this._currentIntervalMs;if(Q===MK)return;this._currentIntervalMs=Math.max(MK,Math.floor(Q/2))}adjustForFailure(){let Q=this._currentIntervalMs;this._currentIntervalMs=Math.min(AM,Q*2)}getTimeUntilNextFlush(){return this.getCurrentIntervalMs()-this.getTimeSinceLastAttempt()}}bt.FlushInterval=ht});var dt=F((ut)=>{Object.defineProperty(ut,"__esModule",{value:!0});ut.FlushTypeValues=void 0;ut.FlushTypeValues={ScheduledMaxTime:"scheduled:max_time",ScheduledFullBatch:"scheduled:full_batch",Limit:"limit",Manual:"manual",Shutdown:"shutdown"}});var ct=F((xQ)=>{var dc0=xQ&&xQ.__awaiter||function(Q,X,J,Y){function Z(q){return q instanceof J?q:new J(function($){$(q)})}return new(J||(J=Promise))(function(q,$){function H(W){try{V(Y.next(W))}catch(G){$(G)}}function K(W){try{V(Y.throw(W))}catch(G){$(G)}}function V(W){W.done?q(W.value):Z(W.value).then(H,K)}V((Y=Y.apply(Q,X||[])).next())})};Object.defineProperty(xQ,"__esModule",{value:!0});xQ._fetchTxtRecords=void 0;var cc0=new Uint8Array([0,0,1,0,0,1,0,0,0,0,0,0,13,102,101,97,116,117,114,101,97,115,115,101,116,115,3,111,114,103,0,0,16,0,1]),lc0="https://cloudflare-dns.com/dns-query",pc0=["i","e","d"],nc0=200;function ic0(Q){return dc0(this,void 0,void 0,function*(){let X=yield Q(lc0,{method:"POST",headers:{"Content-Type":"application/dns-message",Accept:"application/dns-message"},body:cc0});if(!X.ok){let Z=Error("Failed to fetch TXT records from DNS");throw Z.name="DnsTxtFetchError",Z}let J=yield X.arrayBuffer(),Y=new Uint8Array(J);return oc0(Y)})}xQ._fetchTxtRecords=ic0;function oc0(Q){let X=Q.findIndex((Y,Z)=>Z<nc0&&String.fromCharCode(Y)==="="&&pc0.includes(String.fromCharCode(Q[Z-1])));if(X===-1){let Y=Error("Failed to parse TXT records from DNS");throw Y.name="DnsTxtParseError",Y}let J="";for(let Y=X-1;Y<Q.length;Y++)J+=String.fromCharCode(Q[Y]);return J.split(",")}});var J4=F((nt)=>{Object.defineProperty(nt,"__esModule",{value:!0});nt._setObjectInStorage=nt._getObjectFromStorage=nt.Storage=void 0;var pt=j1(),rc0=w8(),_Y={},_M={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"InMemory",getItem:(Q)=>_Y[Q]?_Y[Q]:null,setItem:(Q,X)=>{_Y[Q]=X},removeItem:(Q)=>{delete _Y[Q]},getAllKeys:()=>Object.keys(_Y)},IK=null;try{let Q=(0,rc0._getWindowSafe)();if(Q&&Q.localStorage&&typeof Q.localStorage.getItem==="function")IK={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:(X)=>Q.localStorage.getItem(X),setItem:(X,J)=>Q.localStorage.setItem(X,J),removeItem:(X)=>Q.localStorage.removeItem(X),getAllKeys:()=>Object.keys(Q.localStorage)}}catch(Q){pt.Log.warn("Failed to setup localStorageProvider.")}var EM=IK!==null&&IK!==void 0?IK:_M,X4=EM;function lt(Q){try{return Q()}catch(X){if(X instanceof Error&&X.name==="SecurityError")return nt.Storage._setProvider(_M),null;throw X}}nt.Storage={isReady:()=>X4.isReady(),isReadyResolver:()=>X4.isReadyResolver(),getProviderName:()=>X4.getProviderName(),getItem:(Q)=>lt(()=>X4.getItem(Q)),setItem:(Q,X)=>lt(()=>X4.setItem(Q,X)),removeItem:(Q)=>X4.removeItem(Q),getAllKeys:()=>X4.getAllKeys(),_setProvider:(Q)=>{EM=Q,X4=Q},_setDisabled:(Q)=>{if(Q)X4=_M;else X4=EM}};function sc0(Q){let X=nt.Storage.getItem(Q);try{return JSON.parse(X!==null&&X!==void 0?X:"null")}catch(J){return pt.Log.error(`Failed to parse value for key "${Q}"`),null}}nt._getObjectFromStorage=sc0;function ac0(Q,X){nt.Storage.setItem(Q,JSON.stringify(X))}nt._setObjectInStorage=ac0});var et=F((P5)=>{var ot=P5&&P5.__awaiter||function(Q,X,J,Y){function Z(q){return q instanceof J?q:new J(function($){$(q)})}return new(J||(J=Promise))(function(q,$){function H(W){try{V(Y.next(W))}catch(G){$(G)}}function K(W){try{V(Y.throw(W))}catch(G){$(G)}}function V(W){W.done?q(W.value):Z(W.value).then(H,K)}V((Y=Y.apply(Q,X||[])).next())})};Object.defineProperty(P5,"__esModule",{value:!0});P5._isDomainFailure=P5.NetworkFallbackResolver=void 0;var ec0=ct(),Ql0=I5(),Xl0=j1(),vM=J4(),rt=604800000,Jl0=14400000;class st{constructor(Q){var X;this._fallbackInfo=null,this._errorBoundary=null,this._dnsQueryCooldowns={},this._networkOverrideFunc=(X=Q.networkConfig)===null||X===void 0?void 0:X.networkOverrideFunc}setErrorBoundary(Q){this._errorBoundary=Q}tryBumpExpiryTime(Q,X){var J;let Y=(J=this._fallbackInfo)===null||J===void 0?void 0:J[X.endpoint];if(!Y)return;Y.expiryTime=Date.now()+rt,SM(Q,Object.assign(Object.assign({},this._fallbackInfo),{[X.endpoint]:Y}))}getActiveFallbackUrl(Q,X){var J,Y;if(X.customUrl!=null&&X.fallbackUrls!=null)return null;let Z=this._fallbackInfo;if(Z==null)Z=(J=Yl0(Q))!==null&&J!==void 0?J:{},this._fallbackInfo=Z;let q=Z[X.endpoint];if(!q||Date.now()>((Y=q.expiryTime)!==null&&Y!==void 0?Y:0)||X.getChecksum()!==q.urlConfigChecksum)return delete Z[X.endpoint],this._fallbackInfo=Z,SM(Q,this._fallbackInfo),null;if(q.url)return q.url;return null}tryFetchUpdatedFallbackInfo(Q,X,J,Y){return ot(this,void 0,void 0,function*(){var Z,q;try{if(!at(J,Y))return!1;let H=X.customUrl==null&&X.fallbackUrls==null?yield this._tryFetchFallbackUrlsFromNetwork(X):X.fallbackUrls,K=this._pickNewFallbackUrl((Z=this._fallbackInfo)===null||Z===void 0?void 0:Z[X.endpoint],H);if(!K)return!1;return this._updateFallbackInfoWithNewUrl(Q,X,K),!0}catch($){return(q=this._errorBoundary)===null||q===void 0||q.logError("tryFetchUpdatedFallbackInfo",$),!1}})}_updateFallbackInfoWithNewUrl(Q,X,J){var Y,Z,q;let $={urlConfigChecksum:X.getChecksum(),url:J,expiryTime:Date.now()+rt,previous:[]},H=X.endpoint,K=(Y=this._fallbackInfo)===null||Y===void 0?void 0:Y[H];if(K)$.previous.push(...K.previous);if($.previous.length>10)$.previous=[];let V=(q=(Z=this._fallbackInfo)===null||Z===void 0?void 0:Z[H])===null||q===void 0?void 0:q.url;if(V!=null)$.previous.push(V);this._fallbackInfo=Object.assign(Object.assign({},this._fallbackInfo),{[H]:$}),SM(Q,this._fallbackInfo)}_tryFetchFallbackUrlsFromNetwork(Q){return ot(this,void 0,void 0,function*(){var X;let J=this._dnsQueryCooldowns[Q.endpoint];if(J&&Date.now()<J)return null;this._dnsQueryCooldowns[Q.endpoint]=Date.now()+Jl0;let Y=[],Z=yield(0,ec0._fetchTxtRecords)((X=this._networkOverrideFunc)!==null&&X!==void 0?X:fetch),q=Zl0(Q.defaultUrl);for(let $ of Z){if(!$.startsWith(Q.endpointDnsKey+"="))continue;let H=$.split("=");if(H.length>1){let K=H[1];if(K.endsWith("/"))K=K.slice(0,-1);Y.push(`https://${K}${q}`)}}return Y})}_pickNewFallbackUrl(Q,X){var J;if(X==null)return null;let Y=new Set((J=Q===null||Q===void 0?void 0:Q.previous)!==null&&J!==void 0?J:[]),Z=Q===null||Q===void 0?void 0:Q.url,q=null;for(let $ of X){let H=$.endsWith("/")?$.slice(0,-1):$;if(!Y.has($)&&H!==Z){q=H;break}}return q}}P5.NetworkFallbackResolver=st;function at(Q,X){var J;let Y=(J=Q===null||Q===void 0?void 0:Q.toLowerCase())!==null&&J!==void 0?J:"";return X||Y.includes("uncaught exception")||Y.includes("failed to fetch")||Y.includes("networkerror when attempting to fetch resource")}P5._isDomainFailure=at;function tt(Q){return`statsig.network_fallback.${(0,Ql0._DJB2)(Q)}`}function SM(Q,X){let J=tt(Q);if(!X||Object.keys(X).length===0){vM.Storage.removeItem(J);return}vM.Storage.setItem(J,JSON.stringify(X))}function Yl0(Q){let X=tt(Q),J=vM.Storage.getItem(X);if(!J)return null;try{return JSON.parse(J)}catch(Y){return Xl0.Log.error("Failed to parse FallbackInfo"),null}}function Zl0(Q){try{return new URL(Q).pathname}catch(X){return null}}});var xM=F((Xe)=>{Object.defineProperty(Xe,"__esModule",{value:!0});Xe.SDKFlags=void 0;var Qe={};Xe.SDKFlags={setFlags:(Q,X)=>{Qe[Q]=X},get:(Q,X)=>{var J,Y;return(Y=(J=Qe[Q])===null||J===void 0?void 0:J[X])!==null&&Y!==void 0?Y:!1}}});var CK=F((Ye)=>{Object.defineProperty(Ye,"__esModule",{value:!0});Ye.getUUID=void 0;function ql0(){if(typeof crypto<"u"&&typeof crypto.randomUUID==="function")return crypto.randomUUID();let Q=new Date().getTime(),X=typeof performance<"u"&&performance.now&&performance.now()*1000||0;return`xxxxxxxx-xxxx-4xxx-${"89ab"[Math.floor(Math.random()*4)]}xxx-xxxxxxxxxxxx`.replace(/[xy]/g,(Y)=>{let Z=Math.random()*16;if(Q>0)Z=(Q+Z)%16|0,Q=Math.floor(Q/16);else Z=(X+Z)%16|0,X=Math.floor(X/16);return(Y==="x"?Z:Z&7|8).toString(16)})}Ye.getUUID=ql0});var yQ=F((We)=>{Object.defineProperty(We,"__esModule",{value:!0});We.StatsigSession=We.SessionID=void 0;var $l0=wY(),Hl0=j1(),qe=J4(),Kl0=CK(),Wl0=SQ(),Vl0=1800000,Gl0=14400000,Ul0=15000,kQ={};(0,Wl0._subscribeToVisiblityChanged)((Q)=>{if(Q==="background")Object.values(kQ).forEach((X)=>SY(X))});We.SessionID={get:(Q)=>{return We.StatsigSession.get(Q).data.sessionID}};We.StatsigSession={get:(Q,X=!0)=>{if(kQ[Q]==null)kQ[Q]=Il0(Q);let J=kQ[Q];return zl0(J,X)},overrideInitialSessionID:(Q,X)=>{let J=Date.now(),Y={data:{sessionID:Q,startTime:J,lastUpdate:J},sdkKey:X,lastPersistedAt:Date.now(),storageKey:He(X)};SY(Y),kQ[X]=Y},checkForIdleSession:(Q)=>{let X=kQ[Q];if(!X)return;if($e(X))SY(X)}};function zl0(Q,X){let J=Date.now();if($e(Q))SY(Q);else if(X)Q.data.lastUpdate=J,Fl0(Q);return Q}function $e(Q){var X;let J=Q.data,Y=Bl0(J)||Ll0(J);if(Y)Q.data=Ke(),(X=__STATSIG__===null||__STATSIG__===void 0?void 0:__STATSIG__.instance(Q.sdkKey))===null||X===void 0||X.$emt({name:"session_expired"});return Y}function Bl0({lastUpdate:Q}){return Date.now()-Q>Vl0}function Ll0({startTime:Q}){return Date.now()-Q>Gl0}function He(Q){return`statsig.session_id.${(0,$l0._getStorageKey)(Q)}`}function SY(Q){try{(0,qe._setObjectInStorage)(Q.storageKey,Q.data),Q.lastPersistedAt=Date.now()}catch(X){Hl0.Log.warn("Failed to save SessionID")}}function Fl0(Q){if(Date.now()-Q.lastPersistedAt>Ul0)SY(Q)}function Ml0(Q){return(0,qe._getObjectFromStorage)(Q)}function Il0(Q){let X=He(Q),J=Ml0(X);if(J&&J.sessionID&&J.startTime&&J.lastUpdate)return{data:J,sdkKey:Q,lastPersistedAt:0,storageKey:X};return{data:Ke(),sdkKey:Q,lastPersistedAt:0,storageKey:X}}function Ke(){return{sessionID:(0,Kl0.getUUID)(),startTime:Date.now(),lastUpdate:Date.now()}}});var hQ=F((Fe)=>{Object.defineProperty(Fe,"__esModule",{value:!0});Fe.getCookieName=Fe.StableID=void 0;var Ue=wY(),Cl0=j1(),ze=w8(),Be=J4(),Ol0=CK(),vY={},hM={},Ve={};Fe.StableID={cookiesEnabled:!1,randomID:Math.random().toString(36),get:(Q)=>{if(Ve[Q])return null;if(vY[Q]!=null)return vY[Q];let X=null;if(X=Nl0(Q),X!=null)return vY[Q]=X,yM(X,Q),X;if(X=jl0(Q),X==null)X=(0,Ol0.getUUID)();return yM(X,Q),Ge(X,Q),vY[Q]=X,X},setOverride:(Q,X)=>{vY[X]=Q,yM(Q,X),Ge(Q,X)},_setCookiesEnabled:(Q,X)=>{hM[Q]=X},_setDisabled:(Q,X)=>{Ve[Q]=X}};function Le(Q){return`statsig.stable_id.${(0,Ue._getStorageKey)(Q)}`}function yM(Q,X){let J=Le(X);try{(0,Be._setObjectInStorage)(J,Q)}catch(Y){Cl0.Log.warn("Failed to save StableID to storage")}}function jl0(Q){let X=Le(Q);return(0,Be._getObjectFromStorage)(X)}function Nl0(Q){if(!hM[Q]||(0,ze._getDocumentSafe)()==null)return null;let X=document.cookie.split(";");for(let J of X){let[Y,Z]=J.trim().split("=");if(Y===bM(Q))return decodeURIComponent(Z)}return null}function Ge(Q,X){if(!hM[X]||(0,ze._getDocumentSafe)()==null)return;let J=new Date;J.setFullYear(J.getFullYear()+1),document.cookie=`${bM(X)}=${encodeURIComponent(Q)}; expires=${J.toUTCString()}; path=/`}function bM(Q){return`statsig.stable_id.${(0,Ue._getStorageKey)(Q)}`}Fe.getCookieName=bM});var fM=F((Ie)=>{Object.defineProperty(Ie,"__esModule",{value:!0});Ie.ErrorTag=void 0;Ie.ErrorTag={NetworkError:"NetworkError"}});var bQ=F((Ce)=>{Object.defineProperty(Ce,"__esModule",{value:!0});Ce.LoggingEnabledOption=Ce.LogEventCompressionMode=void 0;Ce.LogEventCompressionMode={Disabled:"d",Enabled:"e",Forced:"f"};Ce.LoggingEnabledOption={disabled:"disabled",browserOnly:"browser-only",always:"always"}});var uM=F((v4)=>{var OK=v4&&v4.__awaiter||function(Q,X,J,Y){function Z(q){return q instanceof J?q:new J(function($){$(q)})}return new(J||(J=Promise))(function(q,$){function H(W){try{V(Y.next(W))}catch(G){$(G)}}function K(W){try{V(Y.throw(W))}catch(G){$(G)}}function V(W){W.done?q(W.value):Z(W.value).then(H,K)}V((Y=Y.apply(Q,X||[])).next())})};Object.defineProperty(v4,"__esModule",{value:!0});v4.NetworkCore=v4.RETRYABLE_CODES=void 0;M5();var De=M5(),gM=GK(),A7=j1(),T8=TQ(),wl0=et(),Tl0=xM(),we=TY(),Te=w8(),Ae=yQ(),Al0=hQ(),El0=fM(),Ee=EQ(),xY=bQ(),_e=SQ(),_l0=1e4,Sl0=500,vl0=30000,xl0=1000,Se=50,kl0=Se/xl0;v4.RETRYABLE_CODES=new Set([408,500,502,503,504,522,524,599]);class ve{constructor(Q,X){if(this._emitter=X,this._errorBoundary=null,this._timeout=_l0,this._netConfig={},this._options={},this._leakyBucket={},this._lastUsedInitUrl=null,Q)this._options=Q;if(this._options.networkConfig)this._netConfig=this._options.networkConfig;if(this._netConfig.networkTimeoutMs)this._timeout=this._netConfig.networkTimeoutMs;this._fallbackResolver=new wl0.NetworkFallbackResolver(this._options),this.setLogEventCompressionMode(this._getLogEventCompressionMode(Q))}setLogEventCompressionMode(Q){this._options.logEventCompressionMode=Q}setErrorBoundary(Q){this._errorBoundary=Q,this._errorBoundary.wrap(this),this._errorBoundary.wrap(this._fallbackResolver),this._fallbackResolver.setErrorBoundary(Q)}isBeaconSupported(){return typeof navigator<"u"&&typeof navigator.sendBeacon==="function"}getLastUsedInitUrlAndReset(){let Q=this._lastUsedInitUrl;return this._lastUsedInitUrl=null,Q}beacon(Q,X){if(!je(Q)){if(X)X.path="beacon_invalid_sdk_key";return!1}let J=this._getInternalRequestArgs("POST",Q),Y=this._getPopulatedURL(J),Z=navigator;try{let q=Z.sendBeacon.bind(Z)(Y,J.body);if(!q){if(X)X.path="beacon_send_false"}return q}catch(q){if(X)X.path="beacon_send_exception";throw q}}post(Q,X){return OK(this,void 0,void 0,function*(){let J=this._getInternalRequestArgs("POST",Q);return this._tryEncodeBody(J),yield this._tryToCompressBody(J),this._sendRequest(J,X)})}get(Q){let X=this._getInternalRequestArgs("GET",Q);return this._sendRequest(X)}_sendRequest(Q,X){return OK(this,void 0,void 0,function*(){var J,Y,Z,q;if(!je(Q)){if(X)X.path="network_invalid_sdk_key";return null}if(this._netConfig.preventAllNetworkTraffic){if(X)X.path="network_prevent_all_network_traffic";return null}let{method:$,body:H,retries:K,attempt:V}=Q,W=Q.urlConfig.endpoint;if(this._isRateLimited(W)){if(A7.Log.warn(`Request to ${W} was blocked because you are making requests too frequently.`),X)X.path="network_rate_limited";return null}let G=V!==null&&V!==void 0?V:1,U=!1,z=this._getPopulatedURL(Q),L=Date.now(),B=null,M=(0,_e._isUnloading)();try{let I={method:$,body:H,headers:Object.assign({},Q.headers),priority:Q.priority,keepalive:M};dl0(Q,G);let j=this._leakyBucket[W];if(j)j.lastRequestTime=Date.now(),this._leakyBucket[W]=j;let D=(J=this._netConfig.networkOverrideFunc)!==null&&J!==void 0?J:fetch,N;if(B=yield Promise.race([D(z,I).finally(()=>clearTimeout(N)),new Promise((f,S)=>{N=setTimeout(()=>{U=!0,S(Error(`Timeout of ${this._timeout}ms expired.`))},this._timeout)})]),!B.ok){let f=yield B.text().catch(()=>"No Text"),S=Error(`NetworkError: ${z} ${f}`);throw S.name="NetworkError",S}let k=yield B.text();return Re(Q,B,G,k),this._fallbackResolver.tryBumpExpiryTime(Q.sdkKey,Q.urlConfig),{body:k,code:B.status}}catch(I){let j=bl0(I),D=fl0(j!==null&&j!==void 0?j:"",U);if(Re(Q,B,G,"",I),yield this._fallbackResolver.tryFetchUpdatedFallbackInfo(Q.sdkKey,Q.urlConfig,j,D))Q.fallbackUrl=this._fallbackResolver.getActiveFallbackUrl(Q.sdkKey,Q.urlConfig);if(!K||G>K||!v4.RETRYABLE_CODES.has((Y=B===null||B===void 0?void 0:B.status)!==null&&Y!==void 0?Y:500)){(Z=this._emitter)===null||Z===void 0||Z.call(this,{name:"error",error:I,tag:El0.ErrorTag.NetworkError,requestArgs:Q});let k=`A networking error occurred during ${$} request to ${z}.`;if(A7.Log.error(k,j,I),(q=this._errorBoundary)===null||q===void 0||q.attachErrorIfNoneExists(k),Q.preserveFailedStatusCode&&B!=null)return{body:null,code:B.status};if(B==null){if(X){if(X.path=D?"network_request_timed_out_no_response":"network_request_exception_no_response",j)X.errorMessage=j;try{let f=gl0(Q,z,D,Date.now()-L);X.diagnosticBucket=f.bucket,X.diagnosticMetadata=f.metadata}catch(f){}}}return null}return yield cl0(G),this._sendRequest(Object.assign(Object.assign({},Q),{retries:K,attempt:G+1}),X)}})}_getLogEventCompressionMode(Q){let X=Q===null||Q===void 0?void 0:Q.logEventCompressionMode;if(!X&&(Q===null||Q===void 0?void 0:Q.disableCompression)===!0)X=xY.LogEventCompressionMode.Disabled;if(!X)X=xY.LogEventCompressionMode.Enabled;return X}_isRateLimited(Q){var X;let J=Date.now(),Y=(X=this._leakyBucket[Q])!==null&&X!==void 0?X:{count:0,lastRequestTime:J},Z=J-Y.lastRequestTime,q=Math.floor(Z*kl0);if(Y.count=Math.max(0,Y.count-q),Y.count>=Se)return!0;return Y.count+=1,Y.lastRequestTime=J,this._leakyBucket[Q]=Y,!1}_getPopulatedURL(Q){var X;let J=(X=Q.fallbackUrl)!==null&&X!==void 0?X:Q.urlConfig.getUrl();if(Q.urlConfig.endpoint===T8.Endpoint._initialize||Q.urlConfig.endpoint===T8.Endpoint._download_config_specs)this._lastUsedInitUrl=J;let Y=Object.assign({[T8.NetworkParam.SdkKey]:Q.sdkKey,[T8.NetworkParam.SdkType]:we.SDKType._get(Q.sdkKey),[T8.NetworkParam.SdkVersion]:Ee.SDK_VERSION,[T8.NetworkParam.Time]:String(Date.now()),[T8.NetworkParam.SessionID]:Ae.SessionID.get(Q.sdkKey)},Q.params),Z=Object.keys(Y).map((q)=>{return`${encodeURIComponent(q)}=${encodeURIComponent(Y[q])}`}).join("&");return`${J}${Z?`?${Z}`:""}`}_tryEncodeBody(Q){var X;let J=(0,Te._getWindowSafe)(),Y=Q.body;if(!Q.isStatsigEncodable||this._options.disableStatsigEncoding||typeof Y!=="string"||(0,De._getStatsigGlobalFlag)("no-encode")!=null||!(J===null||J===void 0?void 0:J.btoa))return;try{Q.body=J.btoa(Y).split("").reverse().join(""),Q.params=Object.assign(Object.assign({},(X=Q.params)!==null&&X!==void 0?X:{}),{[T8.NetworkParam.StatsigEncoded]:"1"})}catch(Z){A7.Log.warn(`Request encoding failed for ${Q.urlConfig.getUrl()}`,Z)}}_tryToCompressBody(Q){return OK(this,void 0,void 0,function*(){var X;let J=Q.body;if(typeof J!=="string"||!hl0(Q,this._options))return;try{let Y=new TextEncoder().encode(J),Z=new CompressionStream("gzip"),q=Z.writable.getWriter();q.write(Y).catch(A7.Log.error),q.close().catch(A7.Log.error);let $=Z.readable.getReader(),H=[],K;while(!(K=yield $.read()).done)H.push(K.value);let V=H.reduce((U,z)=>U+z.length,0),W=new Uint8Array(V),G=0;for(let U of H)W.set(U,G),G+=U.length;Q.body=W,Q.params=Object.assign(Object.assign({},(X=Q.params)!==null&&X!==void 0?X:{}),{[T8.NetworkParam.IsGzipped]:"1"})}catch(Y){A7.Log.warn(`Request compression failed for ${Q.urlConfig.getUrl()}`,Y)}})}_getInternalRequestArgs(Q,X){let J=this._fallbackResolver.getActiveFallbackUrl(X.sdkKey,X.urlConfig),Y=Object.assign(Object.assign({},X),{method:Q,fallbackUrl:J});if("data"in X)yl0(Y,X.data);return Y}}v4.NetworkCore=ve;var je=(Q)=>{if(!Q.sdkKey)return A7.Log.warn("Unable to make request without an SDK key"),!1;return!0},yl0=(Q,X)=>{let{sdkKey:J,fallbackUrl:Y}=Q,Z=Al0.StableID.get(J),q=Ae.SessionID.get(J),$=we.SDKType._get(J);Q.body=JSON.stringify(Object.assign(Object.assign({},X),{statsigMetadata:Object.assign(Object.assign({},Ee.StatsigMetadataProvider.get()),{stableID:Z,sessionID:q,sdkType:$,fallbackUrl:Y})}))};function hl0(Q,X){if(!Q.isCompressable)return!1;if((0,De._getStatsigGlobalFlag)("no-compress")!=null||typeof CompressionStream>"u"||typeof TextEncoder>"u")return!1;let J=Q.urlConfig.customUrl!=null||Q.urlConfig.fallbackUrls!=null,Y=Tl0.SDKFlags.get(Q.sdkKey,"enable_log_event_compression")===!0;switch(X.logEventCompressionMode){case xY.LogEventCompressionMode.Disabled:return!1;case xY.LogEventCompressionMode.Enabled:if(J&&!Y)return!1;return!0;case xY.LogEventCompressionMode.Forced:return!0;default:return!1}}function bl0(Q){if(typeof Q==="string")return Q;if(Q instanceof Error)return`${Q.name}: ${Q.message}`;return"Unknown Error"}function fl0(Q,X){return Q.includes("Timeout")||X}function gl0(Q,X,J,Y){var Z,q,$;let H=(0,Te._getWindowSafe)(),K=H===null||H===void 0?void 0:H.document,V=typeof navigator<"u"?navigator:null,W=(0,_e._isUnloading)(),G=V&&typeof V.onLine==="boolean"?String(V.onLine):"unknown",U=(Z=K===null||K===void 0?void 0:K.visibilityState)!==null&&Z!==void 0?Z:"unknown",z=Object.keys((q=Q.headers)!==null&&q!==void 0?q:{}).length>0,L=ul0(X,($=H===null||H===void 0?void 0:H.location)===null||$===void 0?void 0:$.origin),B=Q.urlConfig.customUrl!=null,M=Q.fallbackUrl!=null,I=Ne(Y,[250,1000,5000,1e4]),j=Ne(ml0(Q.body),[16384,65536,262144,1048576]),D="unknown_no_response";if(J)D="timeout";else if(G==="false")D="browser_offline";else if(W)D="page_unloading";else if(U==="hidden")D="page_hidden";else if(L&&z)D="cross_origin_custom_headers_preflight_risk";else if(B||M)D="custom_url_no_response";else if(Y<250)D="immediate_network_rejection";return{bucket:D,metadata:{elapsedMsBucket:I,bodySizeBucket:j,online:G,visibilityState:U,isUnloading:String(W),crossOrigin:String(L),hasCustomUrl:String(B)}}}function ul0(Q,X){if(!X)return!0;return!Q.startsWith(`${X}/`)&&!Q.startsWith(`${X}?`)&&Q!==X}function ml0(Q){if(Q==null)return 0;if(typeof Q==="string")return Q.length;if(Q instanceof Uint8Array)return Q.byteLength;if(typeof Blob<"u"&&Q instanceof Blob)return Q.size;return-1}function Ne(Q,X){if(Q<0)return"unknown";for(let J of X)if(Q<J)return`<${J}`;return`>=${X[X.length-1]}`}function dl0(Q,X){if(Q.urlConfig.endpoint!==T8.Endpoint._initialize)return;gM.Diagnostics._markInitNetworkReqStart(Q.sdkKey,{attempt:X})}function Re(Q,X,J,Y,Z){if(Q.urlConfig.endpoint!==T8.Endpoint._initialize)return;gM.Diagnostics._markInitNetworkReqEnd(Q.sdkKey,gM.Diagnostics._getDiagnosticsData(X,J,Y,Z))}function cl0(Q){return OK(this,void 0,void 0,function*(){yield new Promise((X)=>setTimeout(X,Math.min(Sl0*(Q*Q),vl0)))})}});var ke=F((fQ)=>{var E7=fQ&&fQ.__awaiter||function(Q,X,J,Y){function Z(q){return q instanceof J?q:new J(function($){$(q)})}return new(J||(J=Promise))(function(q,$){function H(W){try{V(Y.next(W))}catch(G){$(G)}}function K(W){try{V(Y.throw(W))}catch(G){$(G)}}function V(W){W.done?q(W.value):Z(W.value).then(H,K)}V((Y=Y.apply(Q,X||[])).next())})};Object.defineProperty(fQ,"__esModule",{value:!0});fQ.FlushCoordinator=void 0;var C5=UK(),ll0=yt(),pl0=gt(),_7=dt(),nl0=I5(),b6=j1(),il0=uM(),ol0=w8(),jK=yQ(),rl0=bQ(),kY=J4(),sl0=new Set(["network_request_timed_out_no_response","network_request_exception_no_response","event_sender_post_returned_null","event_sender_post_returned_undefined","event_sender_post_exception"]);class xe{constructor(Q,X,J,Y,Z,q,$,H,K,V){this._cooldownTimer=null,this._maxIntervalTimer=null,this._hasRunQuickFlush=!1,this._currentFlushPromise=null,this._creationTime=Date.now(),this._isShuttingDown=!1,this._storageKey=null,this._flushInterval=new pl0.FlushInterval,this._batchQueue=Q,this._pendingEvents=X,this._onPrepareFlush=J,this._errorBoundary=V,this._sdkKey=Y,this._loggingEnabled=K,this._eventSender=new ll0.EventSender(Y,Z,q,$,H)}setLoggingEnabled(Q){this._loggingEnabled=Q}setLogEventCompressionMode(Q){this._eventSender.setLogEventCompressionMode(Q)}startScheduledFlushCycle(){this._scheduleNextFlush()}stopScheduledFlushCycle(){this._clearAllTimers()}addEvent(Q){if(this._pendingEvents.addToPendingEventsQueue(Q),this._currentFlushPromise)return;if(this._pendingEvents.hasEventsForFullBatch())this.processLimitFlush()}processManualFlush(){return E7(this,void 0,void 0,function*(){if(this._currentFlushPromise)yield this._currentFlushPromise;return this._currentFlushPromise=this._executeFlush(_7.FlushTypeValues.Manual).finally(()=>{this._currentFlushPromise=null,this._scheduleNextFlush()}),this._currentFlushPromise})}processShutdown(){return E7(this,void 0,void 0,function*(){if(this._isShuttingDown=!0,this._clearAllTimers(),this._currentFlushPromise)yield this._currentFlushPromise;return this._currentFlushPromise=this._executeFlush(_7.FlushTypeValues.Shutdown).catch((Q)=>{b6.Log.error(`Error during shutdown flush: ${Q}`)}).finally(()=>{this._currentFlushPromise=null}),this._currentFlushPromise})}_executeFlush(Q){return E7(this,void 0,void 0,function*(){this._clearAllTimers();try{this._prepareQueueForFlush(Q);let X=this._batchQueue.takeAllBatches();if(X.length===0)return;yield Promise.all(X.map((J)=>this._processOneBatch(J,Q)))}finally{if(!this._isShuttingDown)this._scheduleNextFlush()}})}checkQuickFlush(){if(this._hasRunQuickFlush)return;if(Date.now()-this._creationTime>C5.EventRetryConstants.QUICK_FLUSH_WINDOW_MS)return;this._hasRunQuickFlush=!0,setTimeout(()=>{this.processManualFlush().catch((Q)=>{b6.Log.warn("Quick flush failed:",Q)})},C5.EventRetryConstants.QUICK_FLUSH_WINDOW_MS)}_attemptScheduledFlush(){if(this._currentFlushPromise){this._scheduleNextFlush();return}let Q=this.containsAtLeastOneFullBatch(),X=this._flushInterval.hasReachedMaxInterval();if(!Q&&!X){this._scheduleNoopPollTick();return}this._flushInterval.markFlushAttempt();let J;if(Q)J=_7.FlushTypeValues.ScheduledFullBatch;else J=_7.FlushTypeValues.ScheduledMaxTime;this._currentFlushPromise=this._processNextBatch(J).then(()=>{}).catch((Y)=>{b6.Log.error("Error during scheduled flush:",Y)}).finally(()=>{this._currentFlushPromise=null,this._scheduleNextFlush()})}processLimitFlush(){if(!this._flushInterval.hasCompletelyRecoveredFromBackoff())return;if(this._currentFlushPromise)return;this._currentFlushPromise=this._processLimitFlushInternal().catch((Q)=>{b6.Log.error("Error during limit flush",Q)}).finally(()=>{this._currentFlushPromise=null,this._scheduleNextFlush()})}_processLimitFlushInternal(){return E7(this,void 0,void 0,function*(){if(!(yield this._processNextBatch(_7.FlushTypeValues.Limit)))return;while(this._flushInterval.hasCompletelyRecoveredFromBackoff()&&this.containsAtLeastOneFullBatch())if(!(yield this._processNextBatch(_7.FlushTypeValues.Limit)))break})}_scheduleNextFlush(){if(this._clearAllTimers(),this._isShuttingDown)return;let Q=Math.max(0,this._flushInterval.getTimeUntilNextFlush());this._cooldownTimer=setTimeout(()=>{this._cooldownTimer=null,jK.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},Q);let X=Math.max(0,this._flushInterval.getTimeTillMaxInterval());this._maxIntervalTimer=setTimeout(()=>{this._maxIntervalTimer=null,jK.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},X)}_clearAllTimers(){if(this._cooldownTimer!==null)clearTimeout(this._cooldownTimer),this._cooldownTimer=null;if(this._maxIntervalTimer!==null)clearTimeout(this._maxIntervalTimer),this._maxIntervalTimer=null}_scheduleNoopPollTick(){if(this._clearAllTimers(),this._isShuttingDown)return;this._cooldownTimer=setTimeout(()=>{this._cooldownTimer=null,jK.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},C5.EventRetryConstants.TICK_INTERVAL_MS);let Q=Math.max(0,this._flushInterval.getTimeTillMaxInterval());this._maxIntervalTimer=setTimeout(()=>{this._maxIntervalTimer=null,jK.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},Q)}_processNextBatch(Q){return E7(this,void 0,void 0,function*(){this._prepareQueueForFlush(Q);let X=this._batchQueue.takeNextBatch();if(!X)return!1;return this._processOneBatch(X,Q)})}_processOneBatch(Q,X){return E7(this,void 0,void 0,function*(){if(this._loggingEnabled!==rl0.LoggingEnabledOption.always&&(0,ol0._isServerEnv)())return this._flushInterval.adjustForSuccess(),!0;let J=yield this._eventSender.sendBatch(Q);if(J.success)return this._flushInterval.adjustForSuccess(),!0;return this._flushInterval.adjustForFailure(),this._handleFailure(Q,X,J.statusCode,J.failurePath,J.failureErrorMessage,J.failureDiagnosticBucket,J.failureDiagnosticMetadata),!1})}_prepareQueueForFlush(Q){this._onPrepareFlush();let X=this.convertPendingEventsToBatches();if(X>0)b6.Log.warn(`Dropped ${X} events`),this._errorBoundary.logDroppedEvents(X,"Batch queue limit reached during batching",{loggingInterval:this._flushInterval.getCurrentIntervalMs(),batchSize:this._batchQueue.batchSize(),maxPendingBatches:C5.EventRetryConstants.MAX_PENDING_BATCHES,flushType:Q,retries:"dropped before batching"})}containsAtLeastOneFullBatch(){return this._pendingEvents.hasEventsForFullBatch()||this._batchQueue.hasFullBatch()}convertPendingEventsToBatches(){if(this._pendingEvents.isEmpty())return 0;let Q=this._pendingEvents.takeAll();return this._batchQueue.createBatches(Q)}_isRetryableBatch(Q,X){if(il0.RETRYABLE_CODES.has(Q))return!0;if(Q===-1&&X&&sl0.has(X))return!0;return!1}_handleFailure(Q,X,J,Y,Z,q,$){if(X===_7.FlushTypeValues.Shutdown){b6.Log.warn(`${X} flush failed during shutdown. ${Q.events.length} event(s) will be saved to storage for retry in next session.`),this._saveShutdownFailedEventsToStorage(Q.events);return}if(!this._isRetryableBatch(J,Y)){b6.Log.warn(`${X} flush failed after ${Q.attempts} attempt(s). ${Q.events.length} event(s) will be dropped. Non-retryable error: ${J}`),this._errorBoundary.logEventRequestFailure(Q.events.length,"non-retryable error",X,J,Q.attempts,Y,Z,q,$);return}if(Q.attempts>=C5.EventRetryConstants.MAX_RETRY_ATTEMPTS){b6.Log.warn(`${X} flush failed after ${Q.attempts} attempt(s). ${Q.events.length} event(s) will be dropped.`),this._errorBoundary.logEventRequestFailure(Q.events.length,"max retry attempts exceeded",X,J,Q.attempts,Y,Z,q,$);return}Q.incrementAttempts();let H=this._batchQueue.requeueBatch(Q);if(H>0)b6.Log.warn(`Failed to requeue batch : dropped ${H} events due to full queue`),this._errorBoundary.logDroppedEvents(H,"Batch queue limit reached during requeue",{loggingInterval:this._flushInterval.getCurrentIntervalMs(),batchSize:this._batchQueue.batchSize(),maxPendingBatches:C5.EventRetryConstants.MAX_PENDING_BATCHES,flushType:X,retries:Q.attempts})}loadAndRetryShutdownFailedEvents(){return E7(this,void 0,void 0,function*(){let Q=this._getStorageKey();try{if(!kY.Storage.isReady())yield kY.Storage.isReadyResolver();let X=this._getShutdownFailedEventsFromStorage(Q);if(X.length===0)return;b6.Log.debug(`Loading ${X.length} failed shutdown event(s) from storage for retry`),kY.Storage.removeItem(Q),X.forEach((J)=>{this.addEvent(J)}),yield this.processManualFlush()}catch(X){b6.Log.warn("Failed to load and retry failed shutdown events:",X)}})}_getStorageKey(){if(!this._storageKey)this._storageKey=`statsig.failed_shutdown_events.${(0,nl0._DJB2)(this._sdkKey)}`;return this._storageKey}_saveShutdownFailedEventsToStorage(Q){let X=this._getStorageKey();try{let Y=[...this._getShutdownFailedEventsFromStorage(X),...Q];if(Y.length>C5.EventRetryConstants.MAX_LOCAL_STORAGE)Y=Y.slice(-C5.EventRetryConstants.MAX_LOCAL_STORAGE);(0,kY._setObjectInStorage)(X,Y),b6.Log.debug(`Saved ${Q.length} failed shutdown event(s) to storage (total stored: ${Y.length})`)}catch(J){b6.Log.warn("Unable to save failed shutdown events to storage:",J)}}_getShutdownFailedEventsFromStorage(Q){try{let X=(0,kY._getObjectFromStorage)(Q);if(Array.isArray(X))return X;return[]}catch(X){return[]}}}fQ.FlushCoordinator=xe});var fe=F((he)=>{Object.defineProperty(he,"__esModule",{value:!0});he.PendingEvents=void 0;var al0=j1();class ye{constructor(Q){this._pendingEvents=[],this._batchSize=Q}addToPendingEventsQueue(Q){this._pendingEvents.push(Q),al0.Log.debug("Enqueued Event:",Q)}hasEventsForFullBatch(){return this._pendingEvents.length>=this._batchSize}takeAll(){let Q=this._pendingEvents;return this._pendingEvents=[],Q}isEmpty(){return this._pendingEvents.length===0}}he.PendingEvents=ye});var dM=F((de)=>{Object.defineProperty(de,"__esModule",{value:!0});de._createLayerParameterExposure=de._createConfigExposure=de._mapExposures=de._createGateExposure=de._isExposureEvent=void 0;var ge="statsig::config_exposure",ue="statsig::gate_exposure",me="statsig::layer_exposure",mM=(Q,X,J,Y,Z)=>{if(J.bootstrapMetadata)Y.bootstrapMetadata=J.bootstrapMetadata;return{eventName:Q,user:X,value:null,metadata:Jp0(J,Y),secondaryExposures:Z,time:Date.now()}},tl0=({eventName:Q})=>{return Q===ue||Q===ge||Q===me};de._isExposureEvent=tl0;var el0=(Q,X,J)=>{var Y,Z,q;let $={gate:X.name,gateValue:String(X.value),ruleID:X.ruleID};if(((Y=X.__evaluation)===null||Y===void 0?void 0:Y.version)!=null)$.configVersion=X.__evaluation.version;return mM(ue,Q,X.details,$,NK((q=(Z=X.__evaluation)===null||Z===void 0?void 0:Z.secondary_exposures)!==null&&q!==void 0?q:[],J))};de._createGateExposure=el0;function NK(Q,X){return Q.map((J)=>{if(typeof J==="string")return(X!==null&&X!==void 0?X:{})[J];return J}).filter((J)=>J!=null)}de._mapExposures=NK;var Qp0=(Q,X,J)=>{var Y,Z,q,$;let H={config:X.name,ruleID:X.ruleID};if(((Y=X.__evaluation)===null||Y===void 0?void 0:Y.version)!=null)H.configVersion=X.__evaluation.version;if(((Z=X.__evaluation)===null||Z===void 0?void 0:Z.passed)!=null)H.rulePassed=String(X.__evaluation.passed);return mM(ge,Q,X.details,H,NK(($=(q=X.__evaluation)===null||q===void 0?void 0:q.secondary_exposures)!==null&&$!==void 0?$:[],J))};de._createConfigExposure=Qp0;var Xp0=(Q,X,J,Y)=>{var Z,q,$,H,K,V,W;let G=X.__evaluation,U=((Z=G===null||G===void 0?void 0:G.explicit_parameters)===null||Z===void 0?void 0:Z.includes(J))===!0,z="",L=(q=G===null||G===void 0?void 0:G.undelegated_secondary_exposures)!==null&&q!==void 0?q:[];if(U)z=($=G.allocated_experiment_name)!==null&&$!==void 0?$:"",L=(H=G.secondary_exposures)!==null&&H!==void 0?H:[];let B=(K=X.__evaluation)===null||K===void 0?void 0:K.parameter_rule_ids,M={config:X.name,parameterName:J,ruleID:(V=B===null||B===void 0?void 0:B[J])!==null&&V!==void 0?V:X.ruleID,allocatedExperiment:z,isExplicitParameter:String(U)};if(((W=X.__evaluation)===null||W===void 0?void 0:W.version)!=null)M.configVersion=X.__evaluation.version;return mM(me,Q,X.details,M,NK(L,Y))};de._createLayerParameterExposure=Xp0;var Jp0=(Q,X)=>{if(X.reason=Q.reason,Q.lcut)X.lcut=String(Q.lcut);if(Q.receivedAt)X.receivedAt=String(Q.receivedAt);return X}});var cM=F((pe)=>{Object.defineProperty(pe,"__esModule",{value:!0});pe.UrlConfiguration=void 0;var Hp0=I5(),RK=TQ(),Kp0={[RK.Endpoint._initialize]:"i",[RK.Endpoint._rgstr]:"e",[RK.Endpoint._download_config_specs]:"d"};class le{constructor(Q,X,J,Y){if(this.customUrl=null,this.fallbackUrls=null,this.endpoint=Q,this.endpointDnsKey=Kp0[Q],X)this.customUrl=X;if(!X&&J)this.customUrl=J.endsWith("/")?`${J}${Q}`:`${J}/${Q}`;if(Y)this.fallbackUrls=Y;let Z=RK.NetworkDefault[Q];this.defaultUrl=`${Z}/${Q}`}getUrl(){var Q;return(Q=this.customUrl)!==null&&Q!==void 0?Q:this.defaultUrl}getChecksum(){var Q;let X=((Q=this.fallbackUrls)!==null&&Q!==void 0?Q:[]).sort().join(",");return(0,Hp0._DJB2)(this.customUrl+X)}}pe.UrlConfiguration=le});var rM=F((gQ)=>{var ie=gQ&&gQ.__awaiter||function(Q,X,J,Y){function Z(q){return q instanceof J?q:new J(function($){$(q)})}return new(J||(J=Promise))(function(q,$){function H(W){try{V(Y.next(W))}catch(G){$(G)}}function K(W){try{V(Y.throw(W))}catch(G){$(G)}}function V(W){W.done?q(W.value):Z(W.value).then(H,K)}V((Y=Y.apply(Q,X||[])).next())})};Object.defineProperty(gQ,"__esModule",{value:!0});gQ.EventLogger=void 0;var Wp0=Ut(),Vp0=wY(),lM=UK(),Gp0=ke(),Up0=I5(),yY=j1(),zp0=TQ(),Bp0=fe(),pM=w8(),Lp0=dM(),oe=bQ(),nM=J4(),Fp0=cM(),Mp0=SQ(),Ip0=1000,Pp0=600000,iM={};class oM{static _safeFlushAndForget(Q){var X;(X=iM[Q])===null||X===void 0||X.flush().catch(()=>{})}constructor(Q,X,J,Y,Z){var q;if(this._sdkKey=Q,this._emitter=X,this._network=J,this._options=Y,this._errorBoundary=Z,this._pendingEvents=null,this._batchQueue=null,this._flushCoordinator=null,this._lastExposureTimeMap={},this._nonExposedChecks={},this._isShuttingDown=!1,this._storageKey=null,this._pendingCompressionMode=null,this._loggingEnabled=(q=Y===null||Y===void 0?void 0:Y.loggingEnabled)!==null&&q!==void 0?q:(Y===null||Y===void 0?void 0:Y.disableLogging)===!0?oe.LoggingEnabledOption.disabled:oe.LoggingEnabledOption.browserOnly,(Y===null||Y===void 0?void 0:Y.loggingEnabled)&&Y.disableLogging!==void 0)yY.Log.warn("Detected both loggingEnabled and disableLogging options. loggingEnabled takes precedence - please remove disableLogging.");let $=Y===null||Y===void 0?void 0:Y.networkConfig;this._logEventUrlConfig=new Fp0.UrlConfiguration(zp0.Endpoint._rgstr,$===null||$===void 0?void 0:$.logEventUrl,$===null||$===void 0?void 0:$.api,$===null||$===void 0?void 0:$.logEventFallbackUrls)}setLogEventCompressionMode(Q){if(this._flushCoordinator)this._flushCoordinator.setLogEventCompressionMode(Q);else this._pendingCompressionMode=Q}setLoggingEnabled(Q){let X=this._loggingEnabled==="disabled",J=Q!=="disabled";if(this._loggingEnabled=Q,this._flushCoordinator)this._flushCoordinator.setLoggingEnabled(Q);if(X&&J){let Y=this._loadStoredEvents();if(yY.Log.debug(`Loaded ${Y.length} stored event(s) from storage`),Y.length>0)Y.forEach((Z)=>{this._initFlushCoordinator().addEvent(Z)}),this.flush().catch((Z)=>{yY.Log.warn("Failed to flush events after enabling logging:",Z)})}}enqueue(Q){var X;if(!this._shouldLogEvent(Q))return;let J=this._normalizeEvent(Q);if(this._loggingEnabled==="disabled"){this._storeEventToStorage(J);return}this._initFlushCoordinator().addEvent(J),(X=this._flushCoordinator)===null||X===void 0||X.checkQuickFlush()}incrementNonExposureCount(Q){var X;let J=(X=this._nonExposedChecks[Q])!==null&&X!==void 0?X:0;this._nonExposedChecks[Q]=J+1}reset(){this.flush().catch(()=>{}),this._lastExposureTimeMap={}}start(){var Q;let X=(0,pM._isServerEnv)();if(X&&((Q=this._options)===null||Q===void 0?void 0:Q.loggingEnabled)!=="always")return;let J=this._initFlushCoordinator();if(iM[this._sdkKey]=this,!X)(0,Mp0._subscribeToVisiblityChanged)((Y)=>{if(Y==="background")oM._safeFlushAndForget(this._sdkKey);else if(Y==="foreground")J.startScheduledFlushCycle()});J.loadAndRetryShutdownFailedEvents().catch((Y)=>{yY.Log.warn("Failed to load failed shutdown events:",Y)}),J.startScheduledFlushCycle()}stop(){return ie(this,void 0,void 0,function*(){if(this._isShuttingDown=!0,this._flushCoordinator)yield this._flushCoordinator.processShutdown();delete iM[this._sdkKey],this._flushCoordinator=null,this._pendingEvents=null,this._batchQueue=null})}flush(){return ie(this,void 0,void 0,function*(){if(!this._flushCoordinator)return;return this._flushCoordinator.processManualFlush()})}appendAndResetNonExposedChecks(){if(Object.keys(this._nonExposedChecks).length===0)return;let Q=Object.assign({},this._nonExposedChecks);this._nonExposedChecks={};let X=this._normalizeEvent({eventName:"statsig::non_exposed_checks",user:null,time:Date.now(),metadata:{checks:Q}});if(!this._flushCoordinator)return;this._flushCoordinator.addEvent(X)}_shouldLogEvent(Q){var X;if(((X=this._options)===null||X===void 0?void 0:X.loggingEnabled)!=="always"&&(0,pM._isServerEnv)())return!1;if(!(0,Lp0._isExposureEvent)(Q))return!0;let J=Q.user?Q.user:{statsigEnvironment:void 0},Y=(0,Vp0._getUserStorageKey)(this._sdkKey,J),Z=Q.metadata?Q.metadata:{},q=[Q.eventName,Y,Z.gate,Z.config,Z.ruleID,Z.allocatedExperiment,Z.parameterName,String(Z.isExplicitParameter),Z.reason].join("|"),$=this._lastExposureTimeMap[q],H=Date.now();if($&&H-$<Pp0)return!1;if(Object.keys(this._lastExposureTimeMap).length>Ip0)this._lastExposureTimeMap={};return this._lastExposureTimeMap[q]=H,!0}_getCurrentPageUrl(){var Q;if(((Q=this._options)===null||Q===void 0?void 0:Q.includeCurrentPageUrlWithEvents)===!1)return;return(0,pM._getCurrentPageUrlSafe)()}_getStorageKey(){if(!this._storageKey)this._storageKey=`statsig.pending_events.${(0,Up0._DJB2)(this._sdkKey)}`;return this._storageKey}_initFlushCoordinator(){var Q,X;if(this._flushCoordinator)return this._flushCoordinator;let J=(X=(Q=this._options)===null||Q===void 0?void 0:Q.loggingBufferMaxSize)!==null&&X!==void 0?X:lM.EventRetryConstants.DEFAULT_BATCH_SIZE;if(this._pendingEvents=new Bp0.PendingEvents(J),this._batchQueue=new Wp0.BatchQueue(J),this._flushCoordinator=new Gp0.FlushCoordinator(this._batchQueue,this._pendingEvents,()=>this.appendAndResetNonExposedChecks(),this._sdkKey,this._network,this._emitter,this._logEventUrlConfig,this._options,this._loggingEnabled,this._errorBoundary),this._pendingCompressionMode)this._flushCoordinator.setLogEventCompressionMode(this._pendingCompressionMode),this._pendingCompressionMode=null;return this._flushCoordinator}_storeEventToStorage(Q){let X=this._getStorageKey();try{let J=this._getEventsFromStorage(X);if(J.push(Q),J.length>lM.EventRetryConstants.MAX_LOCAL_STORAGE)J=J.slice(-lM.EventRetryConstants.MAX_LOCAL_STORAGE);(0,nM._setObjectInStorage)(X,J)}catch(J){yY.Log.warn("Unable to save events to storage")}}_getEventsFromStorage(Q){try{let X=(0,nM._getObjectFromStorage)(Q);if(Array.isArray(X))return X;return[]}catch(X){return[]}}_loadStoredEvents(){let Q=this._getStorageKey(),X=this._getEventsFromStorage(Q);if(X.length>0)nM.Storage.removeItem(Q);return X}_normalizeEvent(Q){if(Q.user)Q.user=Object.assign({},Q.user),delete Q.user.privateAttributes;let X={},J=this._getCurrentPageUrl();if(J)X.statsigMetadata={currentPage:J};return Object.assign(Object.assign({},Q),X)}}gQ.EventLogger=oM});var te=F((se)=>{Object.defineProperty(se,"__esModule",{value:!0});se.PrecomputedEvaluationsContextHandle=void 0;var Cp0=j1(),Op0=w8(),jp0=yQ(),Np0=hQ();class re{constructor(Q,X,J,Y,Z,q){this._sdkKey=Q,this._getOptions=X,this._getErrorBoundary=J,this._getValues=Y,this._getUser=Z,this._getSdkInstanceID=q}get sdkKey(){return this._sdkKey}get options(){return this._getOptions()}get errorBoundary(){return this._getErrorBoundary()}get values(){return this._getValues()}get user(){let Q=(0,Op0._cloneObject)("StatsigUser",this._getUser());if(Q==null)Cp0.Log.error("Failed to clone user"),Q={};return Q}getSession(Q=!0){return jp0.StatsigSession.get(this._sdkKey,Q)}get stableID(){return Np0.StableID.get(this._sdkKey)}get sdkInstanceID(){return this._getSdkInstanceID()}toContext(Q=!0){return{sdkKey:this.sdkKey,options:this.options,values:this.values,user:this.user,errorBoundary:this.errorBoundary,session:this.getSession(Q),stableID:this.stableID,sdkInstanceID:this.sdkInstanceID}}}se.PrecomputedEvaluationsContextHandle=re});var sM=F((ee)=>{Object.defineProperty(ee,"__esModule",{value:!0});ee._getUnitIDFromUser=ee._getFullUserHash=ee._normalizeUser=void 0;var Rp0=I5(),Dp0=j1(),wp0=w8();function Tp0(Q,X,J){let Y=(0,wp0._cloneObject)("StatsigUser",Q);if(Y==null)return Dp0.Log.error("Failed to clone user"),{statsigEnvironment:void 0};if(X!=null&&X.environment!=null)Y.statsigEnvironment=X.environment;else if(J!=null)Y.statsigEnvironment={tier:J};return Y}ee._normalizeUser=Tp0;function Ap0(Q){return Q?(0,Rp0._DJB2Object)(Q):null}ee._getFullUserHash=Ap0;function Ep0(Q,X){var J,Y,Z;if(typeof X!=="string")return Q.userID;let q=X.toLowerCase();if(q!=="userid")return(Y=(J=Q.customIDs)===null||J===void 0?void 0:J[X])!==null&&Y!==void 0?Y:(Z=Q.customIDs)===null||Z===void 0?void 0:Z[q];return Q.userID}ee._getUnitIDFromUser=Ep0});var aM=F((X00)=>{Object.defineProperty(X00,"__esModule",{value:!0});X00._typedJsonParse=void 0;var vp0=j1();function xp0(Q,X,J){try{let Y=JSON.parse(Q);if(Y&&typeof Y==="object"&&X in Y)return Y}catch(Y){}return vp0.Log.error(`Failed to parse ${J}`),null}X00._typedJsonParse=xp0});var K00=F((j5)=>{var tM=j5&&j5.__awaiter||function(Q,X,J,Y){function Z(q){return q instanceof J?q:new J(function($){$(q)})}return new(J||(J=Promise))(function(q,$){function H(W){try{V(Y.next(W))}catch(G){$(G)}}function K(W){try{V(Y.throw(W))}catch(G){$(G)}}function V(W){W.done?q(W.value):Z(W.value).then(H,K)}V((Y=Y.apply(Q,X||[])).next())})};Object.defineProperty(j5,"__esModule",{value:!0});j5._makeDataAdapterResult=j5.DataAdapterCore=void 0;var DK=j1(),Y00=hQ(),wK=sM(),O5=J4(),Z00=aM(),kp0=10,yp0=8;class q00{constructor(Q,X){this._adapterName=Q,this._cacheSuffix=X,this._options=null,this._sdkKey=null,this._cacheLimit=kp0,this._lastModifiedStoreKey=`statsig.last_modified_time.${X}`,this._inMemoryCache=new $00}attach(Q,X,J){this._sdkKey=Q,this._options=X}getDataSync(Q){let X=Q&&(0,wK._normalizeUser)(Q,this._options),J=this._getCacheKey(X),Y=this._inMemoryCache.get(J,X);if(Y&&this._getIsCacheValueValid(Y))return Y;let Z=this._loadFromCache(J);if(Z&&this._getIsCacheValueValid(Z))return this._inMemoryCache.add(J,Z,this._cacheLimit),this._inMemoryCache.get(J,X);return null}setData(Q,X){let J=X&&(0,wK._normalizeUser)(X,this._options),Y=this._getCacheKey(J);this._inMemoryCache.add(Y,TK("Bootstrap",Q,null,J),this._cacheLimit)}_getIsCacheValueValid(Q){return Q.stableID==null||Q.stableID===Y00.StableID.get(this._getSdkKey())}_getDataAsyncImpl(Q,X,J){return tM(this,void 0,void 0,function*(){if(!O5.Storage.isReady())yield O5.Storage.isReadyResolver();let Y=Q!==null&&Q!==void 0?Q:this.getDataSync(X),Z=[this._fetchAndPrepFromNetwork(Y,X,J)];if(J===null||J===void 0?void 0:J.timeoutMs)Z.push(new Promise((q)=>setTimeout(q,J.timeoutMs)).then(()=>{return DK.Log.debug("Fetching latest value timed out"),null}));return yield Promise.race(Z)})}_prefetchDataImpl(Q,X){return tM(this,void 0,void 0,function*(){let J=Q&&(0,wK._normalizeUser)(Q,this._options),Y=this._getCacheKey(J),Z=yield this._getDataAsyncImpl(null,J,X);if(Z)this._inMemoryCache.add(Y,Object.assign(Object.assign({},Z),{source:"Prefetch"}),this._cacheLimit)})}_fetchAndPrepFromNetwork(Q,X,J){return tM(this,void 0,void 0,function*(){var Y;let Z=(Y=Q===null||Q===void 0?void 0:Q.data)!==null&&Y!==void 0?Y:null,q=Q!=null&&this._isCachedResultValidFor204(Q,X),$=yield this._fetchFromNetwork(Z,X,J,q);if(!$)return DK.Log.debug("No response returned for latest value"),null;let H=(0,Z00._typedJsonParse)($,"has_updates","Response"),K=this._getSdkKey(),V=Y00.StableID.get(K),W=null;if((H===null||H===void 0?void 0:H.has_updates)===!0)W=TK("Network",$,V,X);else if(Z&&(H===null||H===void 0?void 0:H.has_updates)===!1)W=TK("NetworkNotModified",Z,V,X);else return null;let G=this._getCacheKey(X);return this._inMemoryCache.add(G,W,this._cacheLimit),this._writeToCache(G,W),W})}_getSdkKey(){if(this._sdkKey!=null)return this._sdkKey;return DK.Log.error(`${this._adapterName} is not attached to a Client`),""}_loadFromCache(Q){var X;let J=(X=O5.Storage.getItem)===null||X===void 0?void 0:X.call(O5.Storage,Q);if(J==null)return null;let Y=(0,Z00._typedJsonParse)(J,"source","Cached Result");return Y?Object.assign(Object.assign({},Y),{source:"Cache"}):null}_writeToCache(Q,X){let J=JSON.stringify(X);for(let Y=0;Y<yp0;Y++)try{O5.Storage.setItem(Q,J);break}catch(Z){if(!(Z instanceof Error)||!(Z.toString().includes("QuotaExceededError")||Z.toString().includes("QUOTA_EXCEEDED_ERR"))||this._cacheLimit<=1)throw Z;this._cacheLimit=Math.ceil(this._cacheLimit/2),this._runLocalStorageCacheEviction(Q,this._cacheLimit-1)}this._runLocalStorageCacheEviction(Q)}_runLocalStorageCacheEviction(Q,X=this._cacheLimit){var J;let Y=(J=(0,O5._getObjectFromStorage)(this._lastModifiedStoreKey))!==null&&J!==void 0?J:{};Y[Q]=Date.now();let Z=H00(Y,X);for(let q of Z)delete Y[q],O5.Storage.removeItem(q);(0,O5._setObjectInStorage)(this._lastModifiedStoreKey,Y)}}j5.DataAdapterCore=q00;function TK(Q,X,J,Y){return{source:Q,data:X,receivedAt:Date.now(),stableID:J,fullUserHash:(0,wK._getFullUserHash)(Y)}}j5._makeDataAdapterResult=TK;class $00{constructor(){this._data={}}get(Q,X){var J;let Y=this._data[Q],Z=Y===null||Y===void 0?void 0:Y.stableID,q=(J=X===null||X===void 0?void 0:X.customIDs)===null||J===void 0?void 0:J.stableID;if(q&&Z&&q!==Z)return DK.Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null;return Y}add(Q,X,J){let Y=H00(this._data,J-1);for(let Z of Y)delete this._data[Z];this._data[Q]=X}merge(Q){this._data=Object.assign(Object.assign({},this._data),Q)}}function H00(Q,X){let J=Object.keys(Q);if(J.length<=X)return[];if(X===0)return J;return J.sort((Y,Z)=>{let q=Q[Y],$=Q[Z];if(typeof q==="object"&&typeof $==="object")return q.receivedAt-$.receivedAt;return q-$}).slice(0,J.length-X)}});var V00=F((W00)=>{Object.defineProperty(W00,"__esModule",{value:!0})});var eM=F((x4)=>{var hp0=x4&&x4.__awaiter||function(Q,X,J,Y){function Z(q){return q instanceof J?q:new J(function($){$(q)})}return new(J||(J=Promise))(function(q,$){function H(W){try{V(Y.next(W))}catch(G){$(G)}}function K(W){try{V(Y.throw(W))}catch(G){$(G)}}function V(W){W.done?q(W.value):Z(W.value).then(H,K)}V((Y=Y.apply(Q,X||[])).next())})};Object.defineProperty(x4,"__esModule",{value:!0});x4.ErrorBoundary=x4.EXCEPTION_ENDPOINT=void 0;var bp0=j1(),fp0=TY(),gp0=EQ();x4.EXCEPTION_ENDPOINT="https://statsigapi.net/v1/sdk_exception";var U00="[Statsig] UnknownError";class z00{constructor(Q,X,J,Y){this._sdkKey=Q,this._options=X,this._emitter=J,this._lastSeenError=Y,this._seen=new Set}wrap(Q,X){try{let J=Q;mp0(J).forEach((Y)=>{let Z=J[Y];if("$EB"in Z)return;J[Y]=(...q)=>{return this._capture(X?`${X}:${Y}`:Y,()=>Z.apply(Q,q))},J[Y].$EB=!0})}catch(J){this._onError("eb:wrap",J)}}logError(Q,X){this._onError(Q,X)}logDroppedEvents(Q,X,J){let Y={eventCount:String(Q),reason:X};if(J)Object.keys(J).forEach((Z)=>{Y[Z]=String(J[Z])});this._onError("statsig::log_event_dropped_event_count",Error(X),!0,Y)}logEventRequestFailure(Q,X,J,Y,Z,q,$,H,K){let V={eventCount:String(Q),flushType:J,statusCode:String(Y),reason:X,retries:String(Z)};if(q)V.failurePath=q;if(typeof $==="string"&&$.length>0)V.failureErrorMessage=$;if(typeof H==="string"&&H.length>0)V.failureDiagnosticBucket=H;if(K)Object.keys(K).forEach((W)=>{let G=K[W];if(G.length>0)V[`failureDiagnostic_${W}`]=G});this._onError("statsig::log_event_failed",Error(X),!0,V)}getLastSeenErrorAndReset(){let Q=this._lastSeenError;return this._lastSeenError=void 0,Q!==null&&Q!==void 0?Q:null}attachErrorIfNoneExists(Q){if(this._lastSeenError)return;this._lastSeenError=G00(Q)}_capture(Q,X){try{let J=X();if(J&&J instanceof Promise)return J.catch((Y)=>this._onError(Q,Y));return J}catch(J){return this._onError(Q,J),null}}_onError(Q,X,J=!1,Y){try{bp0.Log.warn(`Caught error in ${Q}`,{error:X}),(()=>hp0(this,void 0,void 0,function*(){var q,$,H,K,V,W,G;let U=X?X:Error(U00),z=U instanceof Error,L=z?U.name:"No Name",B=G00(U);if(this._lastSeenError=B,!J&&this._seen.has(L))return;if(this._seen.add(L),($=(q=this._options)===null||q===void 0?void 0:q.networkConfig)===null||$===void 0?void 0:$.preventAllNetworkTraffic){(H=this._emitter)===null||H===void 0||H.call(this,{name:"error",error:X,tag:Q});return}let M=fp0.SDKType._get(this._sdkKey),I=gp0.StatsigMetadataProvider.get(),j=z?U.stack:up0(U),D=Object.assign(Object.assign({tag:Q,exception:L,info:j,statsigOptions:dp0(this._options)},Object.assign(Object.assign({},I),{sdkType:M})),Y!==null&&Y!==void 0?Y:{}),N=(K=this._options)===null||K===void 0?void 0:K.networkConfig;yield((V=N===null||N===void 0?void 0:N.networkOverrideFunc)!==null&&V!==void 0?V:fetch)((W=N===null||N===void 0?void 0:N.sdkExceptionUrl)!==null&&W!==void 0?W:x4.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String(M),"STATSIG-SDK-VERSION":String(I.sdkVersion),"Content-Type":"application/json"},body:JSON.stringify(D)}),(G=this._emitter)===null||G===void 0||G.call(this,{name:"error",error:X,tag:Q})}))().then(()=>{}).catch(()=>{})}catch(Z){}}}x4.ErrorBoundary=z00;function G00(Q){if(Q instanceof Error)return Q;else if(typeof Q==="string")return Error(Q);else return Error("An unknown error occurred.")}function up0(Q){try{return JSON.stringify(Q)}catch(X){return U00}}function mp0(Q){let X=new Set,J=Object.getPrototypeOf(Q);while(J&&J!==Object.prototype)Object.getOwnPropertyNames(J).filter((Y)=>typeof(J===null||J===void 0?void 0:J[Y])==="function").forEach((Y)=>X.add(Y)),J=Object.getPrototypeOf(J);return Array.from(X)}function dp0(Q){if(!Q)return{};let X={};return Object.keys(Q).forEach((J)=>{let Y=J,Z=Q[Y];switch(typeof Z){case"number":case"bigint":case"boolean":X[String(Y)]=Z;break;case"string":if(Z.length<50)X[String(Y)]=Z;else X[String(Y)]="set";break;case"object":if(Y==="environment")X.environment=Z;else if(Y==="networkConfig")X.networkConfig=Z;else X[String(Y)]=Z!=null?"set":"unset";break;default:}}),X}});var L00=F((B00)=>{Object.defineProperty(B00,"__esModule",{value:!0})});var M00=F((F00)=>{Object.defineProperty(F00,"__esModule",{value:!0})});var P00=F((I00)=>{Object.defineProperty(I00,"__esModule",{value:!0})});var QI=F((C00)=>{Object.defineProperty(C00,"__esModule",{value:!0});C00.createMemoKey=C00.MemoPrefix=void 0;C00.MemoPrefix={_gate:"g",_dynamicConfig:"c",_experiment:"e",_configList:"cl",_layer:"l",_paramStore:"p"};var cp0=new Set([]),lp0=new Set(["userPersistedValues"]);function pp0(Q,X,J){let Y=`${Q}|${X}`;if(!J)return Y;for(let Z of Object.keys(J)){if(lp0.has(Z))return;if(cp0.has(Z))Y+=`|${Z}=true`;else Y+=`|${Z}=${J[Z]}`}return Y}C00.createMemoKey=pp0});var N00=F((j00)=>{Object.defineProperty(j00,"__esModule",{value:!0})});var D00=F((R00)=>{Object.defineProperty(R00,"__esModule",{value:!0})});var A00=F((w00)=>{Object.defineProperty(w00,"__esModule",{value:!0});w00._fastApproxSizeOf=void 0;var ip0=(Q,X)=>{let J=[Q],Y=[Object.keys(Q)],Z=[0],q=[0],$=0,H=0;for(;;){if(Z[$]<Y[$].length){let K=Y[$][Z[$]++],V=J[$][K];if(q[$]+=K.length,V&&typeof V=="object"){J[++$]=V,Y[$]=Object.keys(V),Z[$]=q[$]=0;continue}if(q[$]+=(V+"").length+1,q[$]<X)continue}for(H=q[$--];$>=0&&(q[$]+=H+2)>=X;H=q[$--]);if($<0)return H}};w00._fastApproxSizeOf=ip0});var _00=F((uQ)=>{var op0=uQ&&uQ.__awaiter||function(Q,X,J,Y){function Z(q){return q instanceof J?q:new J(function($){$(q)})}return new(J||(J=Promise))(function(q,$){function H(W){try{V(Y.next(W))}catch(G){$(G)}}function K(W){try{V(Y.throw(W))}catch(G){$(G)}}function V(W){W.done?q(W.value):Z(W.value).then(H,K)}V((Y=Y.apply(Q,X||[])).next())})};Object.defineProperty(uQ,"__esModule",{value:!0});uQ.StatsigClientBase=void 0;M5();var rp0=M5(),sp0=eM(),ap0=rM(),JI=j1(),tp0=QI(),ep0=w8(),Qn0=yQ(),XI=hQ(),Xn0=bQ(),AK=J4(),Jn0=3000;class E00{constructor(Q,X,J,Y){var Z,q,$,H;this.loadingStatus="Uninitialized",this._initializePromise=null,this._listeners={};let K=this.$emt.bind(this);(Y===null||Y===void 0?void 0:Y.logLevel)!=null&&(JI.Log.level=Y.logLevel),(Y===null||Y===void 0?void 0:Y.disableStorage)&&AK.Storage._setDisabled(!0),(Y===null||Y===void 0?void 0:Y.initialSessionID)&&Qn0.StatsigSession.overrideInitialSessionID(Y.initialSessionID,Q),(Y===null||Y===void 0?void 0:Y.storageProvider)&&AK.Storage._setProvider(Y.storageProvider),(Y===null||Y===void 0?void 0:Y.enableCookies)&&XI.StableID._setCookiesEnabled(Q,Y.enableCookies),(Y===null||Y===void 0?void 0:Y.disableStableID)&&XI.StableID._setDisabled(Q,!0),this._sdkKey=Q,this._options=Y!==null&&Y!==void 0?Y:{},this._memoCache={},this.overrideAdapter=(Z=Y===null||Y===void 0?void 0:Y.overrideAdapter)!==null&&Z!==void 0?Z:null,this._errorBoundary=new sp0.ErrorBoundary(Q,Y,K),this._logger=new ap0.EventLogger(Q,K,J,Y,this._errorBoundary),this._errorBoundary.wrap(this),this._errorBoundary.wrap(X),this._errorBoundary.wrap(this._logger),J.setErrorBoundary(this._errorBoundary),this.dataAdapter=X,this.dataAdapter.attach(Q,Y,J),this.storageProvider=AK.Storage,(H=($=(q=this.overrideAdapter)===null||q===void 0?void 0:q.loadFromStorage)===null||$===void 0?void 0:$.call(q))===null||H===void 0||H.catch((V)=>this._errorBoundary.logError("OA::loadFromStorage",V)),this._primeReadyRipcord(),Yn0(Q,this)}updateRuntimeOptions(Q){if(Q.loggingEnabled)this._options.loggingEnabled=Q.loggingEnabled,this._logger.setLoggingEnabled(Q.loggingEnabled);else if(Q.disableLogging!=null)this._options.disableLogging=Q.disableLogging,this._logger.setLoggingEnabled(Q.disableLogging?"disabled":"browser-only");if(Q.disableStorage!=null)this._options.disableStorage=Q.disableStorage,AK.Storage._setDisabled(Q.disableStorage);if(Q.enableCookies!=null)this._options.enableCookies=Q.enableCookies,XI.StableID._setCookiesEnabled(this._sdkKey,Q.enableCookies);if(Q.logEventCompressionMode)this._logger.setLogEventCompressionMode(Q.logEventCompressionMode);else if(Q.disableCompression)this._logger.setLogEventCompressionMode(Xn0.LogEventCompressionMode.Disabled)}flush(){return this._logger.flush()}shutdown(){return op0(this,void 0,void 0,function*(){this.$emt({name:"pre_shutdown"}),this._setStatus("Uninitialized",null),this._initializePromise=null,yield this._logger.stop()})}on(Q,X){if(!this._listeners[Q])this._listeners[Q]=[];this._listeners[Q].push(X)}off(Q,X){if(this._listeners[Q]){let J=this._listeners[Q].indexOf(X);if(J!==-1)this._listeners[Q].splice(J,1)}}$on(Q,X){X.__isInternal=!0,this.on(Q,X)}$emt(Q){var X;let J=(Y)=>{try{Y(Q)}catch(Z){if(Y.__isInternal===!0){this._errorBoundary.logError(`__emit:${Q.name}`,Z);return}JI.Log.error("An error occurred in a StatsigClientEvent listener. This is not an issue with Statsig.",Q)}};if(this._listeners[Q.name])this._listeners[Q.name].forEach((Y)=>J(Y));(X=this._listeners["*"])===null||X===void 0||X.forEach(J)}_setStatus(Q,X){this.loadingStatus=Q,this._memoCache={},this.$emt({name:"values_updated",status:Q,values:X})}_enqueueExposure(Q,X,J){if((J===null||J===void 0?void 0:J.disableExposureLog)===!0){this._logger.incrementNonExposureCount(Q);return}this._logger.enqueue(X)}_memoize(Q,X){return(J,Y)=>{if(this._options.disableEvaluationMemoization)return X(J,Y);let Z=(0,tp0.createMemoKey)(Q,J,Y);if(!Z)return X(J,Y);if(!(Z in this._memoCache)){if(Object.keys(this._memoCache).length>=Jn0)this._memoCache={};this._memoCache[Z]=X(J,Y)}return this._memoCache[Z]}}}uQ.StatsigClientBase=E00;function Yn0(Q,X){var J;if((0,ep0._isServerEnv)())return;let Y=(0,rp0._getStatsigGlobal)(),Z=(J=Y.instances)!==null&&J!==void 0?J:{},q=X;if(Z[Q]!=null)JI.Log.warn("Creating multiple Statsig clients with the same SDK key can lead to unexpected behavior. Multi-instance support requires different SDK keys.");if(Z[Q]=q,!Y.firstInstance)Y.firstInstance=q;Y.instances=Z,__STATSIG__=Y}});var x00=F((S00)=>{Object.defineProperty(S00,"__esModule",{value:!0});S00.DataAdapterCachePrefix=void 0;S00.DataAdapterCachePrefix="statsig.cached"});var y00=F((k00)=>{Object.defineProperty(k00,"__esModule",{value:!0})});var g00=F((b00)=>{Object.defineProperty(b00,"__esModule",{value:!0});b00._makeTypedGet=b00._mergeOverride=b00._makeLayer=b00._makeExperiment=b00._makeDynamicConfig=b00._makeFeatureGate=void 0;var Zn0=j1(),qn0=zK();function YI(Q,X,J,Y){var Z;return{name:Q,details:X,ruleID:(Z=J===null||J===void 0?void 0:J.rule_id)!==null&&Z!==void 0?Z:"",__evaluation:J,value:Y}}function $n0(Q,X,J){var Y;return Object.assign(Object.assign({},YI(Q,X,J,(J===null||J===void 0?void 0:J.value)===!0)),{idType:(Y=J===null||J===void 0?void 0:J.id_type)!==null&&Y!==void 0?Y:null})}b00._makeFeatureGate=$n0;function h00(Q,X,J){var Y,Z;let q=(Y=J===null||J===void 0?void 0:J.value)!==null&&Y!==void 0?Y:{};return Object.assign(Object.assign({},YI(Q,X,J,q)),{idType:(Z=J===null||J===void 0?void 0:J.id_type)!==null&&Z!==void 0?Z:null,get:EK(Q,J===null||J===void 0?void 0:J.value)})}b00._makeDynamicConfig=h00;function Hn0(Q,X,J){var Y;let Z=h00(Q,X,J);return Object.assign(Object.assign({},Z),{groupName:(Y=J===null||J===void 0?void 0:J.group_name)!==null&&Y!==void 0?Y:null})}b00._makeExperiment=Hn0;function Kn0(Q,X,J,Y){var Z,q;return Object.assign(Object.assign({},YI(Q,X,J,void 0)),{get:EK(Q,J===null||J===void 0?void 0:J.value,Y),groupName:(Z=J===null||J===void 0?void 0:J.group_name)!==null&&Z!==void 0?Z:null,__value:(q=J===null||J===void 0?void 0:J.value)!==null&&q!==void 0?q:{}})}b00._makeLayer=Kn0;function Wn0(Q,X,J,Y){return Object.assign(Object.assign(Object.assign({},Q),X),{get:EK(Q.name,J,Y)})}b00._mergeOverride=Wn0;function EK(Q,X,J){return(Y,Z)=>{var q;let $=(q=X===null||X===void 0?void 0:X[Y])!==null&&q!==void 0?q:null;if($==null)return Z!==null&&Z!==void 0?Z:null;if(Z!=null&&!(0,qn0._isTypeMatch)($,Z))return Zn0.Log.warn(`Parameter type mismatch. '${Q}.${Y}' was found to be type '${typeof $}' but fallback/return type is '${typeof Z}'. See https://docs.statsig.com/client/javascript-sdk/#typed-getters`),Z!==null&&Z!==void 0?Z:null;return J===null||J===void 0||J(Y),$}}b00._makeTypedGet=EK});var m00=F((u00)=>{Object.defineProperty(u00,"__esModule",{value:!0})});var l00=F((d00)=>{Object.defineProperty(d00,"__esModule",{value:!0});d00.UPDATE_DETAIL_ERROR_MESSAGES=d00.createUpdateDetails=void 0;var Ln0=(Q,X,J,Y,Z,q)=>{return{duration:J,source:X,success:Q,error:Y,sourceUrl:Z,warnings:q}};d00.createUpdateDetails=Ln0;d00.UPDATE_DETAIL_ERROR_MESSAGES={NO_NETWORK_DATA:"No data was returned from the network. This may be due to a network timeout if a timeout value was specified in the options or ad blocker error."}});var A8=F((H0)=>{var Mn0=H0&&H0.__createBinding||(Object.create?function(Q,X,J,Y){if(Y===void 0)Y=J;var Z=Object.getOwnPropertyDescriptor(X,J);if(!Z||("get"in Z?!X.__esModule:Z.writable||Z.configurable))Z={enumerable:!0,get:function(){return X[J]}};Object.defineProperty(Q,Y,Z)}:function(Q,X,J,Y){if(Y===void 0)Y=J;Q[Y]=X[J]}),N0=H0&&H0.__exportStar||function(Q,X){for(var J in Q)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(X,J))Mn0(X,Q,J)};Object.defineProperty(H0,"__esModule",{value:!0});H0.Storage=H0.Log=H0.EventLogger=H0.Diagnostics=void 0;M5();var In0=M5(),Pn0=GK();Object.defineProperty(H0,"Diagnostics",{enumerable:!0,get:function(){return Pn0.Diagnostics}});var Cn0=rM();Object.defineProperty(H0,"EventLogger",{enumerable:!0,get:function(){return Cn0.EventLogger}});var p00=j1();Object.defineProperty(H0,"Log",{enumerable:!0,get:function(){return p00.Log}});var On0=EQ(),jn0=J4();Object.defineProperty(H0,"Storage",{enumerable:!0,get:function(){return jn0.Storage}});N0(M5(),H0);N0(wY(),H0);N0(te(),H0);N0(K00(),H0);N0(GK(),H0);N0(V00(),H0);N0(eM(),H0);N0(L00(),H0);N0(M00(),H0);N0(I5(),H0);N0(P00(),H0);N0(j1(),H0);N0(QI(),H0);N0(TQ(),H0);N0(uM(),H0);N0(N00(),H0);N0(D00(),H0);N0(w8(),H0);N0(TY(),H0);N0(yQ(),H0);N0(A00(),H0);N0(hQ(),H0);N0(_00(),H0);N0(fM(),H0);N0(x00(),H0);N0(dM(),H0);N0(EQ(),H0);N0(bQ(),H0);N0(y00(),H0);N0(g00(),H0);N0(m00(),H0);N0(sM(),H0);N0(J4(),H0);N0(aM(),H0);N0(zK(),H0);N0(cM(),H0);N0(CK(),H0);N0(SQ(),H0);N0(l00(),H0);N0(xM(),H0);Object.assign((0,In0._getStatsigGlobal)(),{Log:p00.Log,SDK_VERSION:On0.SDK_VERSION})});var r00=F((i00)=>{Object.defineProperty(i00,"__esModule",{value:!0});i00.V1InitializeContainer=void 0;var Nn0=A8();class n00{constructor(Q){this._values=Q}getGate(Q){return this._getResultFromLookup(this._values.feature_gates,Q)}getConfig(Q){return this._getResultFromLookup(this._values.dynamic_configs,Q)}getLayer(Q){return this._getResultFromLookup(this._values.layer_configs,Q)}getParamStore(Q){return this._getResultFromLookup(this._values.param_stores,Q)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(Q,X){var J,Y;if(!Q)return null;return(Y=(J=Q[X])!==null&&J!==void 0?J:Q[(0,Nn0._DJB2)(X)])!==null&&Y!==void 0?Y:null}}i00.V1InitializeContainer=n00});var e00=F((a00)=>{Object.defineProperty(a00,"__esModule",{value:!0});a00.V2InitializeContainer=void 0;var Rn0=A8();class s00{constructor(Q){this._values=Q}getGate(Q){var X,J,Y;let Z=this._getResultFromLookup(this._values.feature_gates,Q);if(!Z)return null;return{name:Q,value:Z.v===!0,rule_id:(X=Z.r)!==null&&X!==void 0?X:"default",secondary_exposures:(J=Z.s)!==null&&J!==void 0?J:[],id_type:(Y=Z.i)!==null&&Y!==void 0?Y:""}}getConfig(Q){var X,J,Y,Z;let q=this._getResultFromLookup(this._values.dynamic_configs,Q);if(!q)return null;return{name:Q,value:(X=this._values.values[q.v])!==null&&X!==void 0?X:{},rule_id:q.r,secondary_exposures:(J=q.s)!==null&&J!==void 0?J:[],id_type:(Y=q.i)!==null&&Y!==void 0?Y:"",is_user_in_experiment:q.ue===!0?!0:!1,passed:q.p===!0,group_name:(Z=q.gn)!==null&&Z!==void 0?Z:void 0,is_experiment_active:q.ea===!0?!0:!1,group:q.r,is_device_based:q.i==="stableID"}}getLayer(Q){var X,J,Y,Z,q,$;let H=this._getResultFromLookup(this._values.layer_configs,Q);if(!H)return null;return{name:Q,value:(X=this._values.values[H.v])!==null&&X!==void 0?X:{},rule_id:H.r,secondary_exposures:(J=H.s)!==null&&J!==void 0?J:[],is_user_in_experiment:H.ue===!0?!0:!1,group_name:(Y=H.gn)!==null&&Y!==void 0?Y:void 0,is_experiment_active:H.ea===!0?!0:!1,group:H.r,is_device_based:H.i==="stableID",allocated_experiment_name:(Z=H.ae)!==null&&Z!==void 0?Z:"",explicit_parameters:(q=H.ep)!==null&&q!==void 0?q:[],undelegated_secondary_exposures:($=H.us)!==null&&$!==void 0?$:[],parameter_rule_ids:H.pr}}getParamStore(Q){return this._getResultFromLookup(this._values.param_stores,Q)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(Q,X){var J,Y;if(!Q)return null;return(Y=(J=Q[X])!==null&&J!==void 0?J:Q[(0,Rn0._DJB2)(X)])!==null&&Y!==void 0?Y:null}}a00.V2InitializeContainer=s00});var J10=F((X10)=>{Object.defineProperty(X10,"__esModule",{value:!0});var mQ=A8(),Dn0=r00(),wn0=e00();class Q10{constructor(Q,X){this._sdkKey=Q,this._options=X,this._valuesForExternalUse=null,this._values=null,this._source="Uninitialized",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings=new Set}reset(){this._values=null,this._valuesForExternalUse=null,this._source="Loading",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings.clear()}finalize(){if(this._values)return;this._source="NoValues"}getValues(){return this._valuesForExternalUse}setValues(Q,X){var J,Y;if(!Q)return!1;let Z=(0,mQ._typedJsonParse)(Q.data,"has_updates","EvaluationResponse");if(Z==null)return!1;if(this._source=Q.source,(Z===null||Z===void 0?void 0:Z.has_updates)!==!0)return!0;if(((J=Z.time)!==null&&J!==void 0?J:0)<this._lcut)return!0;if(this._valuesForExternalUse=(0,mQ._typedJsonParse)(Q.data,"has_updates","EvaluationResponse"),this._lcut=Z.time,this._receivedAt=Q.receivedAt,Z.response_format==="init-v2")this._values=new wn0.V2InitializeContainer(Z);else this._values=new Dn0.V1InitializeContainer(Z);if(this._bootstrapMetadata=this._extractBootstrapMetadata(Q.source,Z),Q.source&&Z.user)this._setWarningState(X,Z);return mQ.SDKFlags.setFlags(this._sdkKey,(Y=Z.sdk_flags)!==null&&Y!==void 0?Y:{}),!0}getWarnings(){if(this._warnings.size===0)return;return Array.from(this._warnings)}getGate(Q){let X=this._values?this._values.getGate(Q):null;return this._getDetailedStoreResult(X)}getConfig(Q){let X=this._values?this._values.getConfig(Q):null;return this._getDetailedStoreResult(X)}getConfigList(){if(!this._values)return[];return this._values.getConfigList()}getLayer(Q){let X=this._values?this._values.getLayer(Q):null;return this._getDetailedStoreResult(X)}getParamStore(Q){let X=this._values?this._values.getParamStore(Q):null;return this._getDetailedStoreResult(X)}getSource(){return this._source}getExposureMapping(){var Q;return(Q=this._values)===null||Q===void 0?void 0:Q.getExposureMapping()}_extractBootstrapMetadata(Q,X){if(Q!=="Bootstrap")return null;let J={};if(X.user)J.user=X.user;if(X.sdkInfo)J.generatorSDKInfo=X.sdkInfo;return J.lcut=X.time,J}_getDetailedStoreResult(Q){return{result:Q,details:this._getDetails(Q==null)}}_setWarningState(Q,X){var J,Y,Z;let q=mQ.StableID.get(this._sdkKey);if(((J=Q.customIDs)===null||J===void 0?void 0:J.stableID)!==q&&(((Y=Q.customIDs)===null||Y===void 0?void 0:Y.stableID)||q)){this._warnings.add("StableIDMismatch");return}if("user"in X){let $=X.user,H=Object.assign(Object.assign({},Q),{analyticsOnlyMetadata:void 0,privateAttributes:void 0});if((Z=this._options)===null||Z===void 0?void 0:Z.disableStableID)H=Object.assign(Object.assign({},H),{customIDs:Object.assign(Object.assign({},H.customIDs),{stableID:void 0})}),$=Object.assign(Object.assign({},$),{customIDs:Object.assign(Object.assign({},$.customIDs),{stableID:void 0})});if((0,mQ._getFullUserHash)(H)!==(0,mQ._getFullUserHash)($))this._warnings.add("PartialUserMatch")}}getCurrentSourceDetails(){if(this._source==="Uninitialized"||this._source==="NoValues")return{reason:this._source};let Q={reason:this._source,lcut:this._lcut,receivedAt:this._receivedAt};if(this._warnings.size>0)Q.warnings=Array.from(this._warnings);return Q}_getDetails(Q){var X,J;let Y=this.getCurrentSourceDetails(),Z=Y.reason,q=(X=Y.warnings)!==null&&X!==void 0?X:[];if(this._source==="Bootstrap"&&q.length>0)Z=Z+q[0];if(Z!=="Uninitialized"&&Z!=="NoValues")Z=`${Z}:${Q?"Unrecognized":"Recognized"}`;let $=this._source==="Bootstrap"?(J=this._bootstrapMetadata)!==null&&J!==void 0?J:void 0:void 0;if($)Y.bootstrapMetadata=$;return Object.assign(Object.assign({},Y),{reason:Z})}}X10.default=Q10});var $10=F((Z10)=>{Object.defineProperty(Z10,"__esModule",{value:!0});Z10._resolveDeltasResponse=void 0;var Y10=A8(),An0=2;function En0(Q,X){let J=(0,Y10._typedJsonParse)(X,"checksum","DeltasEvaluationResponse");if(!J)return{hadBadDeltaChecksum:!0};let Y=_n0(Q,J),Z=Sn0(Y),q=(0,Y10._DJB2Object)({feature_gates:Z.feature_gates,dynamic_configs:Z.dynamic_configs,layer_configs:Z.layer_configs},An0);if(q!==J.checksumV2)return{hadBadDeltaChecksum:!0,badChecksum:q,badMergedConfigs:Z,badFullResponse:J.deltas_full_response};return JSON.stringify(Z)}Z10._resolveDeltasResponse=En0;function _n0(Q,X){return Object.assign(Object.assign(Object.assign({},Q),X),{feature_gates:Object.assign(Object.assign({},Q.feature_gates),X.feature_gates),layer_configs:Object.assign(Object.assign({},Q.layer_configs),X.layer_configs),dynamic_configs:Object.assign(Object.assign({},Q.dynamic_configs),X.dynamic_configs)})}function Sn0(Q){let X=Q;return ZI(Q.deleted_gates,X.feature_gates),delete X.deleted_gates,ZI(Q.deleted_configs,X.dynamic_configs),delete X.deleted_configs,ZI(Q.deleted_layers,X.layer_configs),delete X.deleted_layers,X}function ZI(Q,X){Q===null||Q===void 0||Q.forEach((J)=>{delete X[J]})}});var qI=F((hY)=>{var H10=hY&&hY.__awaiter||function(Q,X,J,Y){function Z(q){return q instanceof J?q:new J(function($){$(q)})}return new(J||(J=Promise))(function(q,$){function H(W){try{V(Y.next(W))}catch(G){$(G)}}function K(W){try{V(Y.throw(W))}catch(G){$(G)}}function V(W){W.done?q(W.value):Z(W.value).then(H,K)}V((Y=Y.apply(Q,X||[])).next())})};Object.defineProperty(hY,"__esModule",{value:!0});var _K=A8(),vn0=$10();class K10 extends _K.NetworkCore{constructor(Q,X){super(Q,X);let J=Q===null||Q===void 0?void 0:Q.networkConfig;this._option=Q,this._initializeUrlConfig=new _K.UrlConfiguration(_K.Endpoint._initialize,J===null||J===void 0?void 0:J.initializeUrl,J===null||J===void 0?void 0:J.api,J===null||J===void 0?void 0:J.initializeFallbackUrls)}fetchEvaluations(Q,X,J,Y,Z){return H10(this,void 0,void 0,function*(){var q,$,H,K,V,W;let G=X?(0,_K._typedJsonParse)(X,"has_updates","InitializeResponse"):null,U={user:Y,hash:(H=($=(q=this._option)===null||q===void 0?void 0:q.networkConfig)===null||$===void 0?void 0:$.initializeHashAlgorithm)!==null&&H!==void 0?H:"djb2",deltasResponseRequested:!1,full_checksum:null};if(G===null||G===void 0?void 0:G.has_updates){let z=(G===null||G===void 0?void 0:G.hash_used)!==((W=(V=(K=this._option)===null||K===void 0?void 0:K.networkConfig)===null||V===void 0?void 0:V.initializeHashAlgorithm)!==null&&W!==void 0?W:"djb2");U=Object.assign(Object.assign({},U),{sinceTime:Z&&!z?G.time:0,previousDerivedFields:"derived_fields"in G&&Z?G.derived_fields:{},deltasResponseRequested:!0,full_checksum:G.full_checksum,partialUserMatchSinceTime:!z?G.time:0})}return this._fetchEvaluations(Q,G,U,J)})}_fetchEvaluations(Q,X,J,Y){return H10(this,void 0,void 0,function*(){var Z,q;let $=yield this.post({sdkKey:Q,urlConfig:this._initializeUrlConfig,data:J,retries:2,isStatsigEncodable:!0,priority:Y});if(($===null||$===void 0?void 0:$.code)===204)return'{"has_updates": false}';if(($===null||$===void 0?void 0:$.code)!==200)return(Z=$===null||$===void 0?void 0:$.body)!==null&&Z!==void 0?Z:null;if((X===null||X===void 0?void 0:X.has_updates)!==!0||((q=$.body)===null||q===void 0?void 0:q.includes('"is_delta":true'))!==!0||J.deltasResponseRequested!==!0)return $.body;let H=(0,vn0._resolveDeltasResponse)(X,$.body);if(typeof H==="string")return H;return this._fetchEvaluations(Q,X,Object.assign(Object.assign(Object.assign({},J),H),{deltasResponseRequested:!1}),Y)})}}hY.default=K10});var U10=F((V10)=>{Object.defineProperty(V10,"__esModule",{value:!0});V10._makeParamStoreGetter=void 0;var W10=A8(),SK={disableExposureLog:!0};function vK(Q){return Q==null||Q.disableExposureLog===!1}function $I(Q,X){return X!=null&&!(0,W10._isTypeMatch)(Q,X)}function xn0(Q,X){return Q.value}function kn0(Q,X,J){if(Q.getFeatureGate(X.gate_name,vK(J)?void 0:SK).value)return X.pass_value;return X.fail_value}function yn0(Q,X,J,Y){let q=Q.getDynamicConfig(X.config_name,vK(Y)?void 0:SK).get(X.param_name);if($I(q,J))return J;return q}function hn0(Q,X,J,Y){let q=Q.getExperiment(X.experiment_name,vK(Y)?void 0:SK).get(X.param_name);if($I(q,J))return J;return q}function bn0(Q,X,J,Y){let q=Q.getLayer(X.layer_name,vK(Y)?void 0:SK).get(X.param_name);if($I(q,J))return J;return q}function fn0(Q,X,J){return(Y,Z)=>{if(X==null)return Z;let q=X[Y];if(q==null||Z!=null&&(0,W10._typeOf)(Z)!==q.param_type)return Z;switch(q.ref_type){case"static":return xn0(q,J);case"gate":return kn0(Q,q,J);case"dynamic_config":return yn0(Q,q,Z,J);case"experiment":return hn0(Q,q,Z,J);case"layer":return bn0(Q,q,Z,J);default:return Z}}}V10._makeParamStoreGetter=fn0});var L10=F((dQ)=>{var gn0=dQ&&dQ.__awaiter||function(Q,X,J,Y){function Z(q){return q instanceof J?q:new J(function($){$(q)})}return new(J||(J=Promise))(function(q,$){function H(W){try{V(Y.next(W))}catch(G){$(G)}}function K(W){try{V(Y.throw(W))}catch(G){$(G)}}function V(W){W.done?q(W.value):Z(W.value).then(H,K)}V((Y=Y.apply(Q,X||[])).next())})};Object.defineProperty(dQ,"__esModule",{value:!0});dQ.StatsigEvaluationsDataAdapter=void 0;var S7=A8(),z10=qI();class B10 extends S7.DataAdapterCore{constructor(){super("EvaluationsDataAdapter","evaluations");this._network=null,this._options=null}attach(Q,X,J){if(super.attach(Q,X,J),J!==null&&J instanceof z10.default)this._network=J;else this._network=new z10.default(X!==null&&X!==void 0?X:{})}getDataAsync(Q,X,J){return this._getDataAsyncImpl(Q,(0,S7._normalizeUser)(X,this._options),J)}prefetchData(Q,X){return this._prefetchDataImpl(Q,X)}setData(Q){let X=(0,S7._typedJsonParse)(Q,"has_updates","data");if(X&&"user"in X)super.setData(Q,X.user);else S7.Log.error("StatsigUser not found. You may be using an older server SDK version. Please upgrade your SDK or use setDataLegacy.")}setDataLegacy(Q,X){super.setData(Q,X)}_fetchFromNetwork(Q,X,J,Y){return gn0(this,void 0,void 0,function*(){var Z;let q=yield(Z=this._network)===null||Z===void 0?void 0:Z.fetchEvaluations(this._getSdkKey(),Q,J===null||J===void 0?void 0:J.priority,X,Y);return q!==null&&q!==void 0?q:null})}_getCacheKey(Q){var X;let J=(0,S7._getStorageKey)(this._getSdkKey(),Q,(X=this._options)===null||X===void 0?void 0:X.customUserCacheKeyFunc);return`${S7.DataAdapterCachePrefix}.${this._cacheSuffix}.${J}`}_isCachedResultValidFor204(Q,X){return Q.fullUserHash!=null&&Q.fullUserHash===(0,S7._getFullUserHash)(X)}}dQ.StatsigEvaluationsDataAdapter=B10});var M10=F((bY)=>{var xK=bY&&bY.__awaiter||function(Q,X,J,Y){function Z(q){return q instanceof J?q:new J(function($){$(q)})}return new(J||(J=Promise))(function(q,$){function H(W){try{V(Y.next(W))}catch(G){$(G)}}function K(W){try{V(Y.throw(W))}catch(G){$(G)}}function V(W){W.done?q(W.value):Z(W.value).then(H,K)}V((Y=Y.apply(Q,X||[])).next())})};Object.defineProperty(bY,"__esModule",{value:!0});var U0=A8(),un0=J10(),mn0=qI(),F10=U10(),dn0=L10();class kK extends U0.StatsigClientBase{static instance(Q){let X=(0,U0._getStatsigGlobal)().instance(Q);if(X instanceof kK)return X;return U0.Log.warn((0,U0._isServerEnv)()?"StatsigClient.instance is not supported in server environments":"Unable to find StatsigClient instance"),new kK(Q!==null&&Q!==void 0?Q:"",{})}constructor(Q,X,J=null){var Y,Z;U0.SDKType._setClientType(Q,"javascript-client");let q=new mn0.default(J,(H)=>{this.$emt(H)});super(Q,(Y=J===null||J===void 0?void 0:J.dataAdapter)!==null&&Y!==void 0?Y:new dn0.StatsigEvaluationsDataAdapter,q,J);this._possibleFirstTouchMetadata={},this.getFeatureGate=this._memoize(U0.MemoPrefix._gate,this._getFeatureGateImpl.bind(this)),this.getDynamicConfig=this._memoize(U0.MemoPrefix._dynamicConfig,this._getDynamicConfigImpl.bind(this)),this.getExperiment=this._memoize(U0.MemoPrefix._experiment,this._getExperimentImpl.bind(this)),this.getConfigList=this._memoize(U0.MemoPrefix._configList,this._getConfigListImpl.bind(this)),this.getLayer=this._memoize(U0.MemoPrefix._layer,this._getLayerImpl.bind(this)),this.getParameterStore=this._memoize(U0.MemoPrefix._paramStore,this._getParameterStoreImpl.bind(this)),this._store=new un0.default(Q,J!==null&&J!==void 0?J:null),this._network=q,this._user=this._configureUser(X,J),this._sdkInstanceID=(0,U0.getUUID)(),this._contextHandle=new U0.PrecomputedEvaluationsContextHandle(Q,()=>this._options,()=>this._errorBoundary,()=>this._store.getValues(),()=>this._user,()=>this._sdkInstanceID);let $=(Z=J===null||J===void 0?void 0:J.plugins)!==null&&Z!==void 0?Z:[];for(let H of $)H.bind(this)}initializeSync(Q){var X;if(this.loadingStatus!=="Uninitialized")return(0,U0.createUpdateDetails)(!0,this._store.getSource(),-1,null,null,["MultipleInitializations",...(X=this._store.getWarnings())!==null&&X!==void 0?X:[]]);return this._logger.start(),this.updateUserSync(this._user,Q)}initializeAsync(Q){return xK(this,void 0,void 0,function*(){if(this._initializePromise)return this._initializePromise;return this._initializePromise=this._initializeAsyncImpl(Q),this._initializePromise})}updateUserSync(Q,X){let J=performance.now();try{return this._updateUserSyncImpl(Q,X,J)}catch(Y){let Z=Y instanceof Error?Y:Error(String(Y));return this._createErrorUpdateDetails(Z,J)}}_updateUserSyncImpl(Q,X,J){var Y;let Z=[...(Y=this._store.getWarnings())!==null&&Y!==void 0?Y:[]];this._resetForUser(Q);let q=this.dataAdapter.getDataSync(this._user);if(q==null)Z.push("NoCachedValues");this._store.setValues(q,this._user),this._finalizeUpdate(q);let $=X===null||X===void 0?void 0:X.disableBackgroundCacheRefresh;if($===!0||$==null&&(q===null||q===void 0?void 0:q.source)==="Bootstrap")return(0,U0.createUpdateDetails)(!0,this._store.getSource(),performance.now()-J,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),Z);return this._runPostUpdate(q!==null&&q!==void 0?q:null,this._user),(0,U0.createUpdateDetails)(!0,this._store.getSource(),performance.now()-J,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),Z)}updateUserAsync(Q,X){return xK(this,void 0,void 0,function*(){let J=performance.now();try{return yield this._updateUserAsyncImpl(Q,X)}catch(Y){let Z=Y instanceof Error?Y:Error(String(Y));return this._createErrorUpdateDetails(Z,J)}})}_updateUserAsyncImpl(Q,X){return xK(this,void 0,void 0,function*(){this._resetForUser(Q);let J=this._user;U0.Diagnostics._markInitOverallStart(this._sdkKey);let Y=this.dataAdapter.getDataSync(J);if(this._store.setValues(Y,this._user),this._setStatus("Loading",Y),Y=yield this.dataAdapter.getDataAsync(Y,J,X),J!==this._user)return(0,U0.createUpdateDetails)(!1,this._store.getSource(),-1,Error("User changed during update"),this._network.getLastUsedInitUrlAndReset());let Z=!1;if(Y!=null)U0.Diagnostics._markInitProcessStart(this._sdkKey),Z=this._store.setValues(Y,this._user),U0.Diagnostics._markInitProcessEnd(this._sdkKey,{success:Z});if(this._finalizeUpdate(Y),!Z)this._errorBoundary.attachErrorIfNoneExists(U0.UPDATE_DETAIL_ERROR_MESSAGES.NO_NETWORK_DATA),this.$emt({name:"initialization_failure"});U0.Diagnostics._markInitOverallEnd(this._sdkKey,Z,this._store.getCurrentSourceDetails());let q=U0.Diagnostics._enqueueDiagnosticsEvent(this._user,this._logger,this._sdkKey,this._options);return(0,U0.createUpdateDetails)(Z,this._store.getSource(),q,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),this._store.getWarnings())})}getContext(){let Q=(0,U0._cloneObject)("StatsigUser",this._user);if(Q==null)U0.Log.error("Failed to clone user"),Q={};return{sdkKey:this._sdkKey,options:this._options,values:this._store.getValues(),user:Q,errorBoundary:this._errorBoundary,session:U0.StatsigSession.get(this._sdkKey),stableID:U0.StableID.get(this._sdkKey),sdkInstanceID:this._sdkInstanceID}}getContextHandle(){return this._contextHandle}checkGate(Q,X){return this.getFeatureGate(Q,X).value}logEvent(Q,X,J){let Y=typeof Q==="string"?{eventName:Q,value:X,metadata:J}:Q;this.$emt({name:"log_event_called",event:Y}),this._logger.enqueue(Object.assign(Object.assign({},Y),{user:this._user,time:Date.now()}))}updateUserWithAnalyticsOnlyMetadata(Q){this._user=this._configureUser(Object.assign(Object.assign({},this._user),{analyticsOnlyMetadata:Q}),this._options)}_primeReadyRipcord(){this.$on("error",()=>{this.loadingStatus==="Loading"&&this._finalizeUpdate(null)})}_initializeAsyncImpl(Q){return xK(this,void 0,void 0,function*(){if(!U0.Storage.isReady())yield U0.Storage.isReadyResolver();return this._logger.start(),this.updateUserAsync(this._user,Q)})}_createErrorUpdateDetails(Q,X){var J;return(0,U0.createUpdateDetails)(!1,this._store.getSource(),performance.now()-X,Q,null,[...(J=this._store.getWarnings())!==null&&J!==void 0?J:[]])}_finalizeUpdate(Q){this._store.finalize(),this._setStatus("Ready",Q)}_runPostUpdate(Q,X){this.dataAdapter.getDataAsync(Q,X,{priority:"low"}).catch((J)=>{U0.Log.error("An error occurred after update.",J)})}_resetForUser(Q){this._logger.reset(),this._store.reset(),this._user=this._configureUser(Q,this._options)}_configureUser(Q,X){var J,Y,Z;let q=(0,U0._normalizeUser)(Q,X),$=(J=q.customIDs)===null||J===void 0?void 0:J.stableID;if($){let H=(Z=(Y=this.storageProvider).isReadyResolver)===null||Z===void 0?void 0:Z.call(Y);if(H)H.then(()=>U0.StableID.setOverride($,this._sdkKey),()=>U0.StableID.setOverride($,this._sdkKey));else U0.StableID.setOverride($,this._sdkKey)}if(Object.keys(this._possibleFirstTouchMetadata).length>0)q.analyticsOnlyMetadata=Object.assign(Object.assign({},q.analyticsOnlyMetadata),this._possibleFirstTouchMetadata);return q}_getFeatureGateImpl(Q,X){var J,Y;let{result:Z,details:q}=this._store.getGate(Q);this._checkUserHasIdForEvaluation(Z===null||Z===void 0?void 0:Z.id_type,Q,"Gate"),this._checkInitializationStatus(q.reason);let $=(0,U0._makeFeatureGate)(Q,q,Z),H=(Y=(J=this.overrideAdapter)===null||J===void 0?void 0:J.getGateOverride)===null||Y===void 0?void 0:Y.call(J,$,this._user,X),K=H!==null&&H!==void 0?H:$;return this._enqueueExposure(Q,(0,U0._createGateExposure)(this._user,K,this._store.getExposureMapping()),X),this.$emt({name:"gate_evaluation",gate:K}),K}_getDynamicConfigImpl(Q,X){var J,Y;let{result:Z,details:q}=this._store.getConfig(Q);this._checkUserHasIdForEvaluation(Z===null||Z===void 0?void 0:Z.id_type,Q,"Dynamic config"),this._checkInitializationStatus(q.reason);let $=(0,U0._makeDynamicConfig)(Q,q,Z),H=(Y=(J=this.overrideAdapter)===null||J===void 0?void 0:J.getDynamicConfigOverride)===null||Y===void 0?void 0:Y.call(J,$,this._user,X),K=H!==null&&H!==void 0?H:$;return this._enqueueExposure(Q,(0,U0._createConfigExposure)(this._user,K,this._store.getExposureMapping()),X),this.$emt({name:"dynamic_config_evaluation",dynamicConfig:K}),K}_getExperimentImpl(Q,X){var J,Y,Z,q;let{result:$,details:H}=this._store.getConfig(Q);this._checkUserHasIdForEvaluation($===null||$===void 0?void 0:$.id_type,Q,"Experiment"),this._checkInitializationStatus(H.reason);let K=(0,U0._makeExperiment)(Q,H,$);if(K.__evaluation!=null)K.__evaluation.secondary_exposures=(0,U0._mapExposures)((Y=(J=K.__evaluation)===null||J===void 0?void 0:J.secondary_exposures)!==null&&Y!==void 0?Y:[],this._store.getExposureMapping());let V=(q=(Z=this.overrideAdapter)===null||Z===void 0?void 0:Z.getExperimentOverride)===null||q===void 0?void 0:q.call(Z,K,this._user,X),W=V!==null&&V!==void 0?V:K;return this._enqueueExposure(Q,(0,U0._createConfigExposure)(this._user,W,this._store.getExposureMapping()),X),this.$emt({name:"experiment_evaluation",experiment:W}),W}_getConfigListImpl(){return this._store.getConfigList()}_getLayerImpl(Q,X){var J,Y,Z;let{result:q,details:$}=this._store.getLayer(Q),H=(0,U0._makeLayer)(Q,$,q),K=(Y=(J=this.overrideAdapter)===null||J===void 0?void 0:J.getLayerOverride)===null||Y===void 0?void 0:Y.call(J,H,this._user,X);if(X===null||X===void 0?void 0:X.disableExposureLog)this._logger.incrementNonExposureCount(Q);let V=(0,U0._mergeOverride)(H,K,(Z=K===null||K===void 0?void 0:K.__value)!==null&&Z!==void 0?Z:H.__value,(W)=>{if(X===null||X===void 0?void 0:X.disableExposureLog)return;this._enqueueExposure(Q,(0,U0._createLayerParameterExposure)(this._user,V,W,this._store.getExposureMapping()),X)});return this.$emt({name:"layer_evaluation",layer:V}),V}_getParameterStoreImpl(Q,X){var J,Y;let{result:Z,details:q}=this._store.getParamStore(Q);this._logger.incrementNonExposureCount(Q);let $={name:Q,details:q,__configuration:Z,get:(0,F10._makeParamStoreGetter)(this,Z,X)},H=(Y=(J=this.overrideAdapter)===null||J===void 0?void 0:J.getParamStoreOverride)===null||Y===void 0?void 0:Y.call(J,$,X);if(H!=null)$.__configuration=H.config,$.details=H.details,$.get=(0,F10._makeParamStoreGetter)(this,H.config,X);return $}_checkUserHasIdForEvaluation(Q,X,J){if(!Q)return;if(!(0,U0._getUnitIDFromUser)(this._user,Q))U0.Log.warn(`The user does not have the required id_type "${Q}" for ${J} "${X}"`)}_checkInitializationStatus(Q){if(Q==="Uninitialized"||Q.startsWith("Loading"))U0.Log.warn(`SDK initialization has not completed. Reason: ${Q}`)}}bY.default=kK});var P10=F((Y4)=>{var cn0=Y4&&Y4.__createBinding||(Object.create?function(Q,X,J,Y){if(Y===void 0)Y=J;var Z=Object.getOwnPropertyDescriptor(X,J);if(!Z||("get"in Z?!X.__esModule:Z.writable||Z.configurable))Z={enumerable:!0,get:function(){return X[J]}};Object.defineProperty(Q,Y,Z)}:function(Q,X,J,Y){if(Y===void 0)Y=J;Q[Y]=X[J]}),ln0=Y4&&Y4.__exportStar||function(Q,X){for(var J in Q)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(X,J))cn0(X,Q,J)};Object.defineProperty(Y4,"__esModule",{value:!0});Y4.StatsigClient=void 0;var pn0=A8(),I10=M10();Y4.StatsigClient=I10.default;ln0(A8(),Y4);var nn0=Object.assign((0,pn0._getStatsigGlobal)(),{StatsigClient:I10.default});Y4.default=nn0});import{createRequire as Qi0}from"node:module";var Nj=H1(ZP(),1);import{dirname as _70}from"node:path";import m7 from"node:process";import{fileURLToPath as S70}from"node:url";import{format as b60}from"util";import{normalize as f60,resolve as g60}from"path";function D5(Q){if(!(Q!==Q.toLowerCase()&&Q!==Q.toUpperCase()))Q=Q.toLowerCase();if(Q.indexOf("-")===-1&&Q.indexOf("_")===-1)return Q;else{let J="",Y=!1,Z=Q.match(/^-+/);for(let q=Z?Z[0].length:0;q<Q.length;q++){let $=Q.charAt(q);if(Y)Y=!1,$=$.toUpperCase();if(q!==0&&($==="-"||$==="_"))Y=!0;else if($!=="-"&&$!=="_")J+=$}return J}}function KZ(Q,X){let J=Q.toLowerCase();X=X||"-";let Y="";for(let Z=0;Z<Q.length;Z++){let q=J.charAt(Z),$=Q.charAt(Z);if(q!==$&&Z>0)Y+=`${X}${J.charAt(Z)}`;else Y+=$}return Y}function WZ(Q){if(Q===null||Q===void 0)return!1;if(typeof Q==="number")return!0;if(/^0x[0-9a-f]+$/i.test(Q))return!0;if(/^0[^.]/.test(Q))return!1;return/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(Q)}function qP(Q){if(Array.isArray(Q))return Q.map(($)=>typeof $!=="string"?$+"":$);Q=Q.trim();let X=0,J=null,Y=null,Z=null,q=[];for(let $=0;$<Q.length;$++){if(J=Y,Y=Q.charAt($),Y===" "&&!Z){if(J!==" ")X++;continue}if(Y===Z)Z=null;else if((Y==="'"||Y==='"')&&!Z)Z=Y;if(!q[X])q[X]="";q[X]+=Y}return q}var u6;(function(Q){Q.BOOLEAN="boolean",Q.STRING="string",Q.NUMBER="number",Q.ARRAY="array"})(u6||(u6={}));var $4;class iK{constructor(Q){$4=Q}parse(Q,X){let J=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},X),Y=qP(Q),Z=typeof Q==="string",q=y60(Object.assign(Object.create(null),J.alias)),$=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},J.configuration),H=Object.assign(Object.create(null),J.default),K=J.configObjects||[],V=J.envPrefix,W=$["populate--"],G=W?"--":"_",U=Object.create(null),z=Object.create(null),L=J.__||$4.format,B={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},M=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,I=new RegExp("^--"+$["negation-prefix"]+"(.+)");if([].concat(J.array||[]).filter(Boolean).forEach(function(R){let A=typeof R==="object"?R.key:R,m=Object.keys(R).map(function(b){return{boolean:"bools",string:"strings",number:"numbers"}[b]}).filter(Boolean).pop();if(m)B[m][A]=!0;B.arrays[A]=!0,B.keys.push(A)}),[].concat(J.boolean||[]).filter(Boolean).forEach(function(R){B.bools[R]=!0,B.keys.push(R)}),[].concat(J.string||[]).filter(Boolean).forEach(function(R){B.strings[R]=!0,B.keys.push(R)}),[].concat(J.number||[]).filter(Boolean).forEach(function(R){B.numbers[R]=!0,B.keys.push(R)}),[].concat(J.count||[]).filter(Boolean).forEach(function(R){B.counts[R]=!0,B.keys.push(R)}),[].concat(J.normalize||[]).filter(Boolean).forEach(function(R){B.normalize[R]=!0,B.keys.push(R)}),typeof J.narg==="object")Object.entries(J.narg).forEach(([R,A])=>{if(typeof A==="number")B.nargs[R]=A,B.keys.push(R)});if(typeof J.coerce==="object")Object.entries(J.coerce).forEach(([R,A])=>{if(typeof A==="function")B.coercions[R]=A,B.keys.push(R)});if(typeof J.config<"u"){if(Array.isArray(J.config)||typeof J.config==="string")[].concat(J.config).filter(Boolean).forEach(function(R){B.configs[R]=!0});else if(typeof J.config==="object")Object.entries(J.config).forEach(([R,A])=>{if(typeof A==="boolean"||typeof A==="function")B.configs[R]=A})}k4(J.key,q,J.default,B.arrays),Object.keys(H).forEach(function(R){(B.aliases[R]||[]).forEach(function(A){H[A]=H[R]})});let j=null;Z0();let D=[],N=Object.assign(Object.create(null),{_:[]}),k={};for(let R=0;R<Y.length;R++){let A=Y[R],m=A.replace(/^-{3,}/,"---"),b,E,t,i,J0,L1;if(A!=="--"&&/^-/.test(A)&&E8(A))f(A);else if(m.match(/^---+(=|$)/)){f(A);continue}else if(A.match(/^--.+=/)||!$["short-option-groups"]&&A.match(/^-.+=/)){if(i=A.match(/^--?([^=]+)=([\s\S]*)$/),i!==null&&Array.isArray(i)&&i.length>=3)if(G0(i[1],B.arrays))R=p(R,i[1],Y,i[2]);else if(G0(i[1],B.nargs)!==!1)R=S(R,i[1],Y,i[2]);else T(i[1],i[2],!0)}else if(A.match(I)&&$["boolean-negation"]){if(i=A.match(I),i!==null&&Array.isArray(i)&&i.length>=2)E=i[1],T(E,G0(E,B.arrays)?[!1]:!1)}else if(A.match(/^--.+/)||!$["short-option-groups"]&&A.match(/^-[^-]+/)){if(i=A.match(/^--?(.+)/),i!==null&&Array.isArray(i)&&i.length>=2)if(E=i[1],G0(E,B.arrays))R=p(R,E,Y);else if(G0(E,B.nargs)!==!1)R=S(R,E,Y);else if(J0=Y[R+1],J0!==void 0&&(!J0.match(/^-/)||J0.match(M))&&!G0(E,B.bools)&&!G0(E,B.counts))T(E,J0),R++;else if(/^(true|false)$/.test(J0))T(E,J0),R++;else T(E,q6(E))}else if(A.match(/^-.\..+=/)){if(i=A.match(/^-([^=]+)=([\s\S]*)$/),i!==null&&Array.isArray(i)&&i.length>=3)T(i[1],i[2])}else if(A.match(/^-.\..+/)&&!A.match(M)){if(J0=Y[R+1],i=A.match(/^-(.\..+)/),i!==null&&Array.isArray(i)&&i.length>=2)if(E=i[1],J0!==void 0&&!J0.match(/^-/)&&!G0(E,B.bools)&&!G0(E,B.counts))T(E,J0),R++;else T(E,q6(E))}else if(A.match(/^-[^-]+/)&&!A.match(M)){t=A.slice(1,-1).split(""),b=!1;for(let S1=0;S1<t.length;S1++){if(J0=A.slice(S1+2),t[S1+1]&&t[S1+1]==="="){if(L1=A.slice(S1+3),E=t[S1],G0(E,B.arrays))R=p(R,E,Y,L1);else if(G0(E,B.nargs)!==!1)R=S(R,E,Y,L1);else T(E,L1);b=!0;break}if(J0==="-"){T(t[S1],J0);continue}if(/[A-Za-z]/.test(t[S1])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(J0)&&G0(J0,B.bools)===!1){T(t[S1],J0),b=!0;break}if(t[S1+1]&&t[S1+1].match(/\W/)){T(t[S1],J0),b=!0;break}else T(t[S1],q6(t[S1]))}if(E=A.slice(-1)[0],!b&&E!=="-")if(G0(E,B.arrays))R=p(R,E,Y);else if(G0(E,B.nargs)!==!1)R=S(R,E,Y);else if(J0=Y[R+1],J0!==void 0&&(!/^(-|--)[^-]/.test(J0)||J0.match(M))&&!G0(E,B.bools)&&!G0(E,B.counts))T(E,J0),R++;else if(/^(true|false)$/.test(J0))T(E,J0),R++;else T(E,q6(E))}else if(A.match(/^-[0-9]$/)&&A.match(M)&&G0(A.slice(1),B.bools))E=A.slice(1),T(E,q6(E));else if(A==="--"){D=Y.slice(R+1);break}else if($["halt-at-non-option"]){D=Y.slice(R);break}else f(A)}if(w0(N,!0),w0(N,!1),I0(N),m0(),d0(N,B.aliases,H,!0),h0(N),$["set-placeholder-key"])$1(N);if(Object.keys(B.counts).forEach(function(R){if(!U1(N,R.split(".")))T(R,0)}),W&&D.length)N[G]=[];if(D.forEach(function(R){N[G].push(R)}),$["camel-case-expansion"]&&$["strip-dashed"])Object.keys(N).filter((R)=>R!=="--"&&R.includes("-")).forEach((R)=>{delete N[R]});if($["strip-aliased"])[].concat(...Object.keys(q).map((R)=>q[R])).forEach((R)=>{if($["camel-case-expansion"]&&R.includes("-"))delete N[R.split(".").map((A)=>D5(A)).join(".")];delete N[R]});function f(R){let A=X0("_",R);if(typeof A==="string"||typeof A==="number")N._.push(A)}function S(R,A,m,b){let E,t=G0(A,B.nargs);if(t=typeof t!=="number"||isNaN(t)?1:t,t===0){if(!d(b))j=Error(L("Argument unexpected for: %s",A));return T(A,q6(A)),R}let i=d(b)?0:1;if($["nargs-eats-options"]){if(m.length-(R+1)+i<t)j=Error(L("Not enough arguments following: %s",A));i=t}else{for(E=R+1;E<m.length;E++)if(!m[E].match(/^-[^0-9]/)||m[E].match(M)||E8(m[E]))i++;else break;if(i<t)j=Error(L("Not enough arguments following: %s",A))}let J0=Math.min(i,t);if(!d(b)&&J0>0)T(A,b),J0--;for(E=R+1;E<J0+R+1;E++)T(A,m[E]);return R+J0}function p(R,A,m,b){let E=[],t=b||m[R+1],i=G0(A,B.nargs);if(G0(A,B.bools)&&!/^(true|false)$/.test(t))E.push(!0);else if(d(t)||d(b)&&/^-/.test(t)&&!M.test(t)&&!E8(t)){if(H[A]!==void 0){let J0=H[A];E=Array.isArray(J0)?J0:[J0]}}else{if(!d(b))E.push(c(A,b,!0));for(let J0=R+1;J0<m.length;J0++){if(!$["greedy-arrays"]&&E.length>0||i&&typeof i==="number"&&E.length>=i)break;if(t=m[J0],/^-/.test(t)&&!M.test(t)&&!E8(t))break;R=J0,E.push(c(A,t,Z))}}if(typeof i==="number"&&(i&&E.length<i||isNaN(i)&&E.length===0))j=Error(L("Not enough arguments following: %s",A));return T(A,E),R}function T(R,A,m=Z){if(/-/.test(R)&&$["camel-case-expansion"]){let t=R.split(".").map(function(i){return D5(i)}).join(".");u(R,t)}let b=c(R,A,m),E=R.split(".");if(Z4(N,E,b),B.aliases[R])B.aliases[R].forEach(function(t){let i=t.split(".");Z4(N,i,b)});if(E.length>1&&$["dot-notation"])(B.aliases[E[0]]||[]).forEach(function(t){let i=t.split("."),J0=[].concat(E);if(J0.shift(),i=i.concat(J0),!(B.aliases[R]||[]).includes(i.join(".")))Z4(N,i,b)});if(G0(R,B.normalize)&&!G0(R,B.arrays))[R].concat(B.aliases[R]||[]).forEach(function(i){Object.defineProperty(k,i,{enumerable:!0,get(){return A},set(J0){A=typeof J0==="string"?$4.normalize(J0):J0}})})}function u(R,A){if(!(B.aliases[R]&&B.aliases[R].length))B.aliases[R]=[A],U[A]=!0;if(!(B.aliases[A]&&B.aliases[A].length))u(A,R)}function c(R,A,m){if(m)A=h60(A);if(G0(R,B.bools)||G0(R,B.counts)){if(typeof A==="string")A=A==="true"}let b=Array.isArray(A)?A.map(function(E){return X0(R,E)}):X0(R,A);if(G0(R,B.counts)&&(d(b)||typeof b==="boolean"))b=nK();if(G0(R,B.normalize)&&G0(R,B.arrays))if(Array.isArray(A))b=A.map((E)=>{return $4.normalize(E)});else b=$4.normalize(A);return b}function X0(R,A){if(!$["parse-positional-numbers"]&&R==="_")return A;if(!G0(R,B.strings)&&!G0(R,B.bools)&&!Array.isArray(A)){if(WZ(A)&&$["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${A}`)))||!d(A)&&G0(R,B.numbers))A=Number(A)}return A}function I0(R){let A=Object.create(null);d0(A,B.aliases,H),Object.keys(B.configs).forEach(function(m){let b=R[m]||A[m];if(b)try{let E=null,t=$4.resolve($4.cwd(),b),i=B.configs[m];if(typeof i==="function"){try{E=i(t)}catch(J0){E=J0}if(E instanceof Error){j=E;return}}else E=$4.require(t);P0(E)}catch(E){if(E.name==="PermissionDenied")j=E;else if(R[m])j=Error(L("Invalid JSON config file: %s",b))}})}function P0(R,A){Object.keys(R).forEach(function(m){let b=R[m],E=A?A+"."+m:m;if(typeof b==="object"&&b!==null&&!Array.isArray(b)&&$["dot-notation"])P0(b,E);else if(!U1(N,E.split("."))||G0(E,B.arrays)&&$["combine-arrays"])T(E,b)})}function m0(){if(typeof K<"u")K.forEach(function(R){P0(R)})}function w0(R,A){if(typeof V>"u")return;let m=typeof V==="string"?V:"",b=$4.env();Object.keys(b).forEach(function(E){if(m===""||E.lastIndexOf(m,0)===0){let t=E.split("__").map(function(i,J0){if(J0===0)i=i.substring(m.length);return D5(i)});if((A&&B.configs[t.join(".")]||!A)&&!U1(R,t))T(t.join("."),b[E])}})}function h0(R){let A,m=new Set;Object.keys(R).forEach(function(b){if(!m.has(b)){if(A=G0(b,B.coercions),typeof A==="function")try{let E=X0(b,A(R[b]));[].concat(B.aliases[b]||[],b).forEach((t)=>{m.add(t),R[t]=E})}catch(E){j=E}}})}function $1(R){return B.keys.forEach((A)=>{if(~A.indexOf("."))return;if(typeof R[A]>"u")R[A]=void 0}),R}function d0(R,A,m,b=!1){Object.keys(m).forEach(function(E){if(!U1(R,E.split("."))){if(Z4(R,E.split("."),m[E]),b)z[E]=!0;(A[E]||[]).forEach(function(t){if(U1(R,t.split(".")))return;Z4(R,t.split("."),m[E])})}})}function U1(R,A){let m=R;if(!$["dot-notation"])A=[A.join(".")];A.slice(0,-1).forEach(function(E){m=m[E]||{}});let b=A[A.length-1];if(typeof m!=="object")return!1;else return b in m}function Z4(R,A,m){let b=R;if(!$["dot-notation"])A=[A.join(".")];A.slice(0,-1).forEach(function(L1){if(L1=$P(L1),typeof b==="object"&&b[L1]===void 0)b[L1]={};if(typeof b[L1]!=="object"||Array.isArray(b[L1])){if(Array.isArray(b[L1]))b[L1].push({});else b[L1]=[b[L1],{}];b=b[L1][b[L1].length-1]}else b=b[L1]});let E=$P(A[A.length-1]),t=G0(A.join("."),B.arrays),i=Array.isArray(m),J0=$["duplicate-arguments-array"];if(!J0&&G0(E,B.nargs)){if(J0=!0,!d(b[E])&&B.nargs[E]===1||Array.isArray(b[E])&&b[E].length===B.nargs[E])b[E]=void 0}if(m===nK())b[E]=nK(b[E]);else if(Array.isArray(b[E]))if(J0&&t&&i)b[E]=$["flatten-duplicate-arrays"]?b[E].concat(m):(Array.isArray(b[E][0])?b[E]:[b[E]]).concat([m]);else if(!J0&&Boolean(t)===Boolean(i))b[E]=m;else b[E]=b[E].concat([m]);else if(b[E]===void 0&&t)b[E]=i?m:[m];else if(J0&&!(b[E]===void 0||G0(E,B.counts)||G0(E,B.bools)))b[E]=[b[E],m];else b[E]=m}function k4(...R){R.forEach(function(A){Object.keys(A||{}).forEach(function(m){if(B.aliases[m])return;B.aliases[m]=[].concat(q[m]||[]),B.aliases[m].concat(m).forEach(function(b){if(/-/.test(b)&&$["camel-case-expansion"]){let E=D5(b);if(E!==m&&B.aliases[m].indexOf(E)===-1)B.aliases[m].push(E),U[E]=!0}}),B.aliases[m].concat(m).forEach(function(b){if(b.length>1&&/[A-Z]/.test(b)&&$["camel-case-expansion"]){let E=KZ(b,"-");if(E!==m&&B.aliases[m].indexOf(E)===-1)B.aliases[m].push(E),U[E]=!0}}),B.aliases[m].forEach(function(b){B.aliases[b]=[m].concat(B.aliases[m].filter(function(E){return b!==E}))})})})}function G0(R,A){let m=[].concat(B.aliases[R]||[],R),b=Object.keys(A),E=m.find((t)=>b.includes(t));return E?A[E]:!1}function v7(R){let A=Object.keys(B);return[].concat(A.map((b)=>B[b])).some(function(b){return Array.isArray(b)?b.includes(R):b[R]})}function Z6(R,...A){return[].concat(...A).some(function(b){let E=R.match(b);return E&&v7(E[1])})}function cQ(R){if(R.match(M)||!R.match(/^-[^-]+/))return!1;let A=!0,m,b=R.slice(1).split("");for(let E=0;E<b.length;E++){if(m=R.slice(E+2),!v7(b[E])){A=!1;break}if(b[E+1]&&b[E+1]==="="||m==="-"||/[A-Za-z]/.test(b[E])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(m)||b[E+1]&&b[E+1].match(/\W/))break}return A}function E8(R){return $["unknown-options-as-args"]&&x7(R)}function x7(R){if(R=R.replace(/^-{3,}/,"--"),R.match(M))return!1;if(cQ(R))return!1;return!Z6(R,/^-+([^=]+?)=[\s\S]*$/,I,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function q6(R){if(!G0(R,B.bools)&&!G0(R,B.counts)&&`${R}`in H)return H[R];else return w1($0(R))}function w1(R){return{[u6.BOOLEAN]:!0,[u6.STRING]:"",[u6.NUMBER]:void 0,[u6.ARRAY]:[]}[R]}function $0(R){let A=u6.BOOLEAN;if(G0(R,B.strings))A=u6.STRING;else if(G0(R,B.numbers))A=u6.NUMBER;else if(G0(R,B.bools))A=u6.BOOLEAN;else if(G0(R,B.arrays))A=u6.ARRAY;return A}function d(R){return R===void 0}function Z0(){Object.keys(B.counts).find((R)=>{if(G0(R,B.arrays))return j=Error(L("Invalid configuration: %s, opts.count excludes opts.array.",R)),!0;else if(G0(R,B.nargs))return j=Error(L("Invalid configuration: %s, opts.count excludes opts.narg.",R)),!0;return!1})}return{aliases:Object.assign({},B.aliases),argv:Object.assign(k,N),configuration:$,defaulted:Object.assign({},z),error:j,newAliases:Object.assign({},U)}}}function y60(Q){let X=[],J=Object.create(null),Y=!0;Object.keys(Q).forEach(function(Z){X.push([].concat(Q[Z],Z))});while(Y){Y=!1;for(let Z=0;Z<X.length;Z++)for(let q=Z+1;q<X.length;q++)if(X[Z].filter(function(H){return X[q].indexOf(H)!==-1}).length){X[Z]=X[Z].concat(X[q]),X.splice(q,1),Y=!0;break}}return X.forEach(function(Z){Z=Z.filter(function($,H,K){return K.indexOf($)===H});let q=Z.pop();if(q!==void 0&&typeof q==="string")J[q]=Z}),J}function nK(Q){return Q!==void 0?Q+1:1}function $P(Q){if(Q==="__proto__")return"___proto___";return Q}function h60(Q){return typeof Q==="string"&&(Q[0]==="'"||Q[0]==='"')&&Q[Q.length-1]===Q[0]?Q.substring(1,Q.length-1):Q}var oK,rK,sK,HP=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,KP=(rK=(oK=process===null||process===void 0?void 0:process.versions)===null||oK===void 0?void 0:oK.node)!==null&&rK!==void 0?rK:(sK=process===null||process===void 0?void 0:process.version)===null||sK===void 0?void 0:sK.slice(1);if(KP){if(Number(KP.match(/^([^.]+)/)[1])<HP)throw Error(`yargs parser supports a minimum Node.js version of ${HP}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`)}var u60=process?process.env:{},WP=new iK({cwd:process.cwd,env:()=>{return u60},format:b60,normalize:f60,resolve:g60,require:(Q)=>{return l(Q)}}),aQ=function(X,J){return WP.parse(X.slice(),J).argv};aQ.detailed=function(Q,X){return WP.parse(Q.slice(),X)};aQ.camelCase=D5;aQ.decamelize=KZ;aQ.looksLikeNumber=WZ;var VP=aQ;var JW=H1(BP(),1);var m60=/[\p{Lu}]/u,d60=/[\p{Ll}]/u,LP=/^[\p{Lu}](?![\p{Lu}])/gu,IP=/([\p{Alpha}\p{N}_]|$)/u,eK=/[_.\- ]+/,c60=new RegExp("^"+eK.source),FP=new RegExp(eK.source+IP.source,"gu"),MP=new RegExp("\\d+"+IP.source,"gu"),l60=(Q,X,J,Y)=>{let Z=!1,q=!1,$=!1,H=!1;for(let K=0;K<Q.length;K++){let V=Q[K];if(H=K>2?Q[K-3]==="-":!0,Z&&m60.test(V))Q=Q.slice(0,K)+"-"+Q.slice(K),Z=!1,$=q,q=!0,K++;else if(q&&$&&d60.test(V)&&(!H||Y))Q=Q.slice(0,K-1)+"-"+Q.slice(K-1),$=q,q=!1,Z=!0;else Z=X(V)===V&&J(V)!==V,$=q,q=J(V)===V&&X(V)!==V}return Q},p60=(Q,X)=>{return LP.lastIndex=0,Q.replace(LP,(J)=>X(J))},n60=(Q,X)=>{return FP.lastIndex=0,MP.lastIndex=0,Q.replace(FP,(J,Y)=>X(Y)).replace(MP,(J)=>X(J))};function QW(Q,X){if(!(typeof Q==="string"||Array.isArray(Q)))throw TypeError("Expected the input to be `string | string[]`");if(X={pascalCase:!1,preserveConsecutiveUppercase:!1,...X},Array.isArray(Q))Q=Q.map((q)=>q.trim()).filter((q)=>q.length).join("-");else Q=Q.trim();if(Q.length===0)return"";let J=X.locale===!1?(q)=>q.toLowerCase():(q)=>q.toLocaleLowerCase(X.locale),Y=X.locale===!1?(q)=>q.toUpperCase():(q)=>q.toLocaleUpperCase(X.locale);if(Q.length===1){if(eK.test(Q))return"";return X.pascalCase?Y(Q):J(Q)}if(Q!==J(Q))Q=l60(Q,J,Y,X.preserveConsecutiveUppercase);if(Q=Q.replace(c60,""),Q=X.preserveConsecutiveUppercase?p60(Q,J):J(Q),X.pascalCase)Q=Y(Q.charAt(0))+Q.slice(1);return n60(Q,Y)}class VZ extends Map{constructor(Q={}){super();if(!(Q.maxSize&&Q.maxSize>0))throw TypeError("`maxSize` must be a number greater than 0");if(typeof Q.maxAge==="number"&&Q.maxAge===0)throw TypeError("`maxAge` must be a number greater than 0");this.maxSize=Q.maxSize,this.maxAge=Q.maxAge||Number.POSITIVE_INFINITY,this.onEviction=Q.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(Q){if(typeof this.onEviction!=="function")return;for(let[X,J]of Q)this.onEviction(X,J.value)}_deleteIfExpired(Q,X){if(typeof X.expiry==="number"&&X.expiry<=Date.now()){if(typeof this.onEviction==="function")this.onEviction(Q,X.value);return this.delete(Q)}return!1}_getOrDeleteIfExpired(Q,X){if(this._deleteIfExpired(Q,X)===!1)return X.value}_getItemValue(Q,X){return X.expiry?this._getOrDeleteIfExpired(Q,X):X.value}_peek(Q,X){let J=X.get(Q);return this._getItemValue(Q,J)}_set(Q,X){if(this.cache.set(Q,X),this._size++,this._size>=this.maxSize)this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map}_moveToRecent(Q,X){this.oldCache.delete(Q),this._set(Q,X)}*_entriesAscending(){for(let Q of this.oldCache){let[X,J]=Q;if(!this.cache.has(X)){if(this._deleteIfExpired(X,J)===!1)yield Q}}for(let Q of this.cache){let[X,J]=Q;if(this._deleteIfExpired(X,J)===!1)yield Q}}get(Q){if(this.cache.has(Q)){let X=this.cache.get(Q);return this._getItemValue(Q,X)}if(this.oldCache.has(Q)){let X=this.oldCache.get(Q);if(this._deleteIfExpired(Q,X)===!1)return this._moveToRecent(Q,X),X.value}}set(Q,X,{maxAge:J=this.maxAge}={}){let Y=typeof J==="number"&&J!==Number.POSITIVE_INFINITY?Date.now()+J:void 0;if(this.cache.has(Q))this.cache.set(Q,{value:X,expiry:Y});else this._set(Q,{value:X,expiry:Y});return this}has(Q){if(this.cache.has(Q))return!this._deleteIfExpired(Q,this.cache.get(Q));if(this.oldCache.has(Q))return!this._deleteIfExpired(Q,this.oldCache.get(Q));return!1}peek(Q){if(this.cache.has(Q))return this._peek(Q,this.cache);if(this.oldCache.has(Q))return this._peek(Q,this.oldCache)}delete(Q){let X=this.cache.delete(Q);if(X)this._size--;return this.oldCache.delete(Q)||X}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(Q){if(!(Q&&Q>0))throw TypeError("`maxSize` must be a number greater than 0");let X=[...this._entriesAscending()],J=X.length-Q;if(J<0)this.cache=new Map(X),this.oldCache=new Map,this._size=X.length;else{if(J>0)this._emitEvictions(X.slice(0,J));this.oldCache=new Map(X.slice(J)),this.cache=new Map,this._size=0}this.maxSize=Q}*keys(){for(let[Q]of this)yield Q}*values(){for(let[,Q]of this)yield Q}*[Symbol.iterator](){for(let Q of this.cache){let[X,J]=Q;if(this._deleteIfExpired(X,J)===!1)yield[X,J.value]}for(let Q of this.oldCache){let[X,J]=Q;if(!this.cache.has(X)){if(this._deleteIfExpired(X,J)===!1)yield[X,J.value]}}}*entriesDescending(){let Q=[...this.cache];for(let X=Q.length-1;X>=0;--X){let J=Q[X],[Y,Z]=J;if(this._deleteIfExpired(Y,Z)===!1)yield[Y,Z.value]}Q=[...this.oldCache];for(let X=Q.length-1;X>=0;--X){let J=Q[X],[Y,Z]=J;if(!this.cache.has(Y)){if(this._deleteIfExpired(Y,Z)===!1)yield[Y,Z.value]}}}*entriesAscending(){for(let[Q,X]of this._entriesAscending())yield[Q,X.value]}get size(){if(!this._size)return this.oldCache.size;let Q=0;for(let X of this.oldCache.keys())if(!this.cache.has(X))Q++;return Math.min(this._size+Q,this.maxSize)}entries(){return this.entriesAscending()}forEach(Q,X=this){for(let[J,Y]of this.entriesAscending())Q.call(X,Y,J,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}var i60=(Q,X)=>Q.some((J)=>{if(typeof J==="string")return J===X;return J.lastIndex=0,J.test(X)}),XW=new VZ({maxSize:1e5}),PP=(Q)=>typeof Q==="object"&&Q!==null&&!(Q instanceof RegExp)&&!(Q instanceof Error)&&!(Q instanceof Date),CP=(Q,X)=>{if(!PP(Q))return Q;X={deep:!1,pascalCase:!1,...X};let{exclude:J,pascalCase:Y,stopPaths:Z,deep:q}=X,$=new Set(Z),H=(K)=>(V,W)=>{if(q&&PP(W)){let G=K===void 0?V:`${K}.${V}`;if(!$.has(G))W=JW.default(W,H(G))}if(!(J&&i60(J,V))){let G=Y?`${V}_`:V;if(XW.has(G))V=XW.get(G);else{let U=QW(V,{pascalCase:Y,locale:!1});if(V.length<100)XW.set(G,U);V=U}}return[V,W]};return JW.default(Q,H(void 0))};function YW(Q,X){if(Array.isArray(Q))return Object.keys(Q).map((J)=>CP(Q[J],X));return CP(Q,X)}var o60=(Q,X)=>{return Q=Q.replace(/((?<![\p{Uppercase_Letter}\d])[\p{Uppercase_Letter}\d](?![\p{Uppercase_Letter}\d]))/gu,(J)=>J.toLowerCase()),Q.replace(/(?<!\p{Uppercase_Letter})(\p{Uppercase_Letter}+)(\p{Uppercase_Letter}\p{Lowercase_Letter}+)/gu,(J,Y,Z)=>Y+X+Z.toLowerCase())};function ZW(Q,{separator:X="_",preserveConsecutiveUppercase:J=!1}={}){if(!(typeof Q==="string"&&typeof X==="string"))throw TypeError("The `text` and `separator` arguments should be of type `string`");if(Q.length<2)return J?Q:Q.toLowerCase();let Y=`$1${X}$2`,Z=Q.replace(/([\p{Lowercase_Letter}\d])(\p{Uppercase_Letter})/gu,Y);if(J)return o60(Z,X);return Z.replace(/(\p{Uppercase_Letter})(\p{Uppercase_Letter}\p{Lowercase_Letter}+)/gu,Y).toLowerCase()}var Rj=H1(wP(),1);function tQ(Q){let X=0,J=Q.length;while(X<J&&(Q[X]==="\r"||Q[X]===`
41
+ `))X++;while(J>X&&(Q[J-1]==="\r"||Q[J-1]===`
42
+ `))J--;return X>0||J<Q.length?Q.slice(X,J):Q}tQ.start=(Q)=>{let X=Q.length,J=0;while(J<X&&(Q[J]==="\r"||Q[J]===`
43
+ `))J++;return J>0?Q.slice(J,X):Q};tQ.end=(Q)=>{let X=Q.length;while(X>0&&(Q[X-1]==="\r"||Q[X-1]===`
44
+ `))X--;return X<Q.length?Q.slice(0,X):Q};function qW(Q){let X=Q.match(/^[ \t]*(?=\S)/gm);if(!X)return Q;let J=Number.POSITIVE_INFINITY;for(let Y of X)J=Math.min(J,Y.length);if(J===0||J===Number.POSITIVE_INFINITY)return Q;return Q.replace(new RegExp(`^[ \\t]{${J}}`,"gm"),"")}function $W(Q,X=1,J={}){let{indent:Y=" ",includeEmptyLines:Z=!1}=J;if(typeof Q!=="string")throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof Q}\``);if(typeof X!=="number")throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof X}\``);if(X<0)throw RangeError(`Expected \`count\` to be at least 0, got \`${X}\``);if(typeof Y!=="string")throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof Y}\``);if(X===0)return Q;let q=Z?/^/gm:/^(?!\s*$)/gm;return Q.replace(q,Y.repeat(X))}function HW(Q,X=0,J={}){return $W(qW(Q),X,J)}import i50 from"node:path";import GZ from"node:path";import{fileURLToPath as Y80}from"node:url";import a60 from"node:process";import t60 from"node:path";import TP,{promises as pi0}from"node:fs";import{fileURLToPath as e60}from"node:url";var AP={directory:"isDirectory",file:"isFile"};function Q80(Q){if(Object.hasOwnProperty.call(AP,Q))return;throw Error(`Invalid type specified: ${Q}`)}var X80=(Q,X)=>X[AP[Q]](),J80=(Q)=>Q instanceof URL?e60(Q):Q;function KW(Q,{cwd:X=a60.cwd(),type:J="file",allowSymlinks:Y=!0}={}){Q80(J),X=J80(X);let Z=Y?TP.statSync:TP.lstatSync;for(let q of Q)try{let $=Z(t60.resolve(X,q),{throwIfNoEntry:!1});if(!$)continue;if(X80(J,$))return q}catch{}}var Z80=(Q)=>Q instanceof URL?Y80(Q):Q,q80=Symbol("findUpStop");function $80(Q,X={}){let J=GZ.resolve(Z80(X.cwd)||""),{root:Y}=GZ.parse(J),Z=X.stopAt||Y,q=X.limit||Number.POSITIVE_INFINITY,$=[Q].flat(),H=(V)=>{if(typeof Q!=="function")return KW($,V);let W=Q(V.cwd);if(typeof W==="string")return KW([W],V);return W},K=[];while(!0){let V=H({...X,cwd:J});if(V===q80)break;if(V)K.push(GZ.resolve(J,V));if(J===Z||K.length>=q)break;J=GZ.dirname(J)}return K}function EP(Q,X={}){return $80(Q,{...X,limit:1})[0]}var gO=H1(MC(),1),uO=H1(fO(),1);import d50 from"node:process";import c50,{promises as so0}from"node:fs";import l50 from"node:path";import{fileURLToPath as p50}from"node:url";var n50=(Q)=>Q instanceof URL?p50(Q):Q;function mO({cwd:Q,normalize:X=!0}={}){Q=n50(Q)||d50.cwd();let J=l50.resolve(Q,"package.json"),Y=gO.default(c50.readFileSync(J,"utf8"));if(X)uO.default(Y);return Y}function dO(Q){let X=EP("package.json",Q);if(!X)return;return{packageJson:mO({...Q,cwd:i50.dirname(X)}),path:X}}var Dj=H1(pO(),1),wj=H1(jj(),1),v70=(Q,X,J,Y)=>{let Z=X[Q],q=!0;if(typeof Z.isRequired==="function"){if(q=Z.isRequired(J,Y),typeof q!=="boolean")throw TypeError(`Return value for isRequired callback should be of type boolean, but ${typeof q} was returned.`)}if(typeof J[Q]>"u")return q;return Z.isMultiple&&J[Q].length===0&&q},x70=(Q,X,J)=>{let Y=[];if(typeof Q>"u")return[];for(let Z of Object.keys(Q))if(Q[Z].isRequired&&v70(Z,Q,X,J))Y.push({key:Z,...Q[Z]});return Y},k70=(Q)=>{console.error(`Missing required flag${Q.length>1?"s":""}`);for(let X of Q)console.error(` --${ZW(X.key,{separator:"-"})}${X.alias?`, -${X.alias}`:""}`)},y70=({flags:Q})=>{let X=Object.keys(Q).filter((J)=>J.includes("-")&&J!=="--");if(X.length>0)throw Error(`Flag keys may not contain '-': ${X.join(", ")}`)},h70=(Q)=>{console.error([`Unknown flag${Q.length>1?"s":""}`,...Q].join(`
45
+ `))},b70=({flags:Q,booleanDefault:X})=>{let J={};for(let[Y,Z]of Object.entries(Q)){let q={...Z};if(typeof X<"u"&&q.type==="boolean"&&!Object.prototype.hasOwnProperty.call(q,"default"))q.default=q.isMultiple?[X]:X;if(q.isMultiple)q.type=q.type?`${q.type}-array`:"array",q.default=q.default??[],delete q.isMultiple;J[Y]=q}return J},f70=(Q,X)=>{for(let[J,Y]of Object.entries(X.flags))if(J!=="--"&&!Y.isMultiple&&Array.isArray(Q[J]))throw Error(`The flag --${J} can only be set once.`)},g70=(Q,X={})=>{if(typeof Q!=="string")X=Q,Q="";if(!X.importMeta?.url)throw TypeError("The `importMeta` option is required. Its value must be `import.meta`.");let J=dO({cwd:_70(S70(X.importMeta.url)),normalize:!1});if(X={pkg:J?J.packageJson:{},argv:m7.argv.slice(2),flags:{},inferType:!1,input:"string",help:Q,autoHelp:!0,autoVersion:!0,booleanDefault:!1,hardRejection:!0,allowUnknownFlags:!0,...X},X.hardRejection)Dj.default();y70(X);let Y={arguments:X.input,...b70(X)};if(Y=Rj.default(Y,"-",{exclude:["stopEarly","--"]}),X.inferType)delete Y.arguments;if(!X.allowUnknownFlags){if(X.autoHelp&&!Y.help)Y.help={type:"boolean"};if(X.autoVersion&&!Y.version)Y.version={type:"boolean"}}if(Y=Nj.default(Y),Y.configuration={...Y.configuration,"greedy-arrays":!1},Y["--"])Y.configuration["populate--"]=!0;if(!X.allowUnknownFlags)Y.configuration["unknown-options-as-args"]=!0;let{pkg:Z}=X,q=VP(X.argv,Y),$=HW(tQ((X.help??"").replace(/\t+\n*$/,"")),2);wj.default(Z),m7.title=Z.bin?Object.keys(Z.bin)[0]:Z.name;let{description:H}=X;if(!H&&H!==!1)({description:H}=Z);$=(H?`
46
+ ${H}
47
+ `:"")+($?`
48
+ ${$}
49
+ `:`
50
+ `);let K=(L)=>{console.log($),m7.exit(typeof L==="number"?L:2)},V=()=>{console.log(typeof X.version==="string"?X.version:Z.version),m7.exit(0)};if(q._.length===0&&X.argv.length===1){if(q.version===!0&&X.autoVersion)V();else if(q.help===!0&&X.autoHelp)K(0)}let W=q._;if(delete q._,!X.allowUnknownFlags){let L=W.filter((B)=>typeof B==="string"&&B.startsWith("-"));if(L.length>0)h70(L),m7.exit(2)}let G=YW(q,{exclude:["--",/^\w$/]}),U={...G};f70(G,X);for(let L of Object.values(X.flags))delete G[L.alias];let z=x70(X.flags,G,W);if(z.length>0)k70(z),m7.exit(2);return{input:W,flags:G,unnormalizedFlags:U,pkg:Z,help:$,showHelp:K,showVersion:V}},Tj=g70;var w10=H1(HV(),1);import{mkdtempSync as Dk0,readFileSync as wk0,writeFileSync as p3}from"node:fs";import{tmpdir as Tk0}from"node:os";import{join as qY}from"node:path";import{spawn as Ak0}from"node:child_process";var T6={api:{url:process.env.ONFRONTIER_BASE_URL||"https://api.onfrontier.ai"},router:{url:process.env.ONFRONTIER_ROUTER_URL||"https://go.trybons.ai"},snapshots:{url:process.env.ONFRONTIER_SNAPSHOT_URL||"https://api.trybons.ai"},cli:{projectName:"onfrontier-cli"},statsig:{clientKey:process.env.STATSIG_CLIENT_KEY||"client-yHi9oHzSCwrVz3W62PaedcrxeGnL7o2PjNJDByGkIsn"}};import{isDeepStrictEqual as pV0}from"node:util";import iE from"node:process";import u5 from"node:fs";import oE from"node:path";import mX from"node:crypto";import nV0 from"node:assert";var _5=(Q)=>{let X=typeof Q;return Q!==null&&(X==="object"||X==="function")};var KV=new Set(["__proto__","prototype","constructor"]),OX0=new Set("0123456789");function mZ(Q){let X=[],J="",Y="start",Z=!1;for(let q of Q)switch(q){case"\\":{if(Y==="index")throw Error("Invalid character in an index");if(Y==="indexEnd")throw Error("Invalid character after an index");if(Z)J+=q;Y="property",Z=!Z;break}case".":{if(Y==="index")throw Error("Invalid character in an index");if(Y==="indexEnd"){Y="property";break}if(Z){Z=!1,J+=q;break}if(KV.has(J))return[];X.push(J),J="",Y="property";break}case"[":{if(Y==="index")throw Error("Invalid character in an index");if(Y==="indexEnd"){Y="index";break}if(Z){Z=!1,J+=q;break}if(Y==="property"){if(KV.has(J))return[];X.push(J),J=""}Y="index";break}case"]":{if(Y==="index"){X.push(Number.parseInt(J,10)),J="",Y="indexEnd";break}if(Y==="indexEnd")throw Error("Invalid character after an index")}default:{if(Y==="index"&&!OX0.has(q))throw Error("Invalid character in an index");if(Y==="indexEnd")throw Error("Invalid character after an index");if(Y==="start")Y="property";if(Z)Z=!1,J+="\\";J+=q}}if(Z)J+="\\";switch(Y){case"property":{if(KV.has(J))return[];X.push(J);break}case"index":throw Error("Index was not closed");case"start":{X.push("");break}}return X}function WV(Q,X){if(typeof X!=="number"&&Array.isArray(Q)){let J=Number.parseInt(X,10);return Number.isInteger(J)&&Q[J]===Q[X]}return!1}function ZR(Q,X){if(WV(Q,X))throw Error("Cannot use string index")}function qR(Q,X,J){if(!_5(Q)||typeof X!=="string")return J===void 0?Q:J;let Y=mZ(X);if(Y.length===0)return J;for(let Z=0;Z<Y.length;Z++){let q=Y[Z];if(WV(Q,q))Q=Z===Y.length-1?void 0:null;else Q=Q[q];if(Q===void 0||Q===null){if(Z!==Y.length-1)return J;break}}return Q===void 0?J:Q}function VV(Q,X,J){if(!_5(Q)||typeof X!=="string")return Q;let Y=Q,Z=mZ(X);for(let q=0;q<Z.length;q++){let $=Z[q];if(ZR(Q,$),q===Z.length-1)Q[$]=J;else if(!_5(Q[$]))Q[$]=typeof Z[q+1]==="number"?[]:{};Q=Q[$]}return Y}function $R(Q,X){if(!_5(Q)||typeof X!=="string")return!1;let J=mZ(X);for(let Y=0;Y<J.length;Y++){let Z=J[Y];if(ZR(Q,Z),Y===J.length-1)return delete Q[Z],!0;if(Q=Q[Z],!_5(Q))return!1}}function HR(Q,X){if(!_5(Q)||typeof X!=="string")return!1;let J=mZ(X);if(J.length===0)return!1;for(let Y of J){if(!_5(Q)||!(Y in Q)||WV(Q,Y))return!1;Q=Q[Y]}return!0}import K1 from"node:path";import KR from"node:os";import GV from"node:process";var u4=KR.homedir(),UV=KR.tmpdir(),{env:d7}=GV,jX0=(Q)=>{let X=K1.join(u4,"Library");return{data:K1.join(X,"Application Support",Q),config:K1.join(X,"Preferences",Q),cache:K1.join(X,"Caches",Q),log:K1.join(X,"Logs",Q),temp:K1.join(UV,Q)}},NX0=(Q)=>{let X=d7.APPDATA||K1.join(u4,"AppData","Roaming"),J=d7.LOCALAPPDATA||K1.join(u4,"AppData","Local");return{data:K1.join(J,Q,"Data"),config:K1.join(X,Q,"Config"),cache:K1.join(J,Q,"Cache"),log:K1.join(J,Q,"Log"),temp:K1.join(UV,Q)}},RX0=(Q)=>{let X=K1.basename(u4);return{data:K1.join(d7.XDG_DATA_HOME||K1.join(u4,".local","share"),Q),config:K1.join(d7.XDG_CONFIG_HOME||K1.join(u4,".config"),Q),cache:K1.join(d7.XDG_CACHE_HOME||K1.join(u4,".cache"),Q),log:K1.join(d7.XDG_STATE_HOME||K1.join(u4,".local","state"),Q),temp:K1.join(UV,X,Q)}};function zV(Q,{suffix:X="nodejs"}={}){if(typeof Q!=="string")throw TypeError(`Expected a string, got ${typeof Q}`);if(X)Q+=`-${X}`;if(GV.platform==="darwin")return jX0(Q);if(GV.platform==="win32")return NX0(Q);return RX0(Q)}import vX0 from"node:path";import y0 from"node:fs";import{promisify as r1}from"node:util";var DX0=(Q,X)=>{let{onError:J}=X;return function(...Z){return Q.apply(void 0,Z).catch(J)}},v8=DX0;var wX0=(Q,X)=>{let{onError:J}=X;return function(...Z){try{return Q.apply(void 0,Z)}catch(q){return J(q)}}},V8=wX0;var WR=250;var TX0=(Q,X)=>{let{isRetriable:J}=X;return function(Z){let{timeout:q}=Z,$=Z.interval??WR,H=Date.now()+q;return function K(...V){return Q.apply(void 0,V).catch((W)=>{if(!J(W))throw W;if(Date.now()>=H)throw W;let G=Math.round($*Math.random());if(G>0)return new Promise((z)=>setTimeout(z,G)).then(()=>K.apply(void 0,V));else return K.apply(void 0,V)})}}},x8=TX0;var AX0=(Q,X)=>{let{isRetriable:J}=X;return function(Z){let{timeout:q}=Z,$=Date.now()+q;return function(...K){while(!0)try{return Q.apply(void 0,K)}catch(V){if(!J(V))throw V;if(Date.now()>=$)throw V;continue}}}},k8=AX0;import GR from"node:process";var BX={isChangeErrorOk:(Q)=>{if(!BX.isNodeError(Q))return!1;let{code:X}=Q;if(X==="ENOSYS")return!0;if(!VR&&(X==="EINVAL"||X==="EPERM"))return!0;return!1},isNodeError:(Q)=>{return Q instanceof Error},isRetriableError:(Q)=>{if(!BX.isNodeError(Q))return!1;let{code:X}=Q;if(X==="EMFILE"||X==="ENFILE"||X==="EAGAIN"||X==="EBUSY"||X==="EACCESS"||X==="EACCES"||X==="EACCS"||X==="EPERM")return!0;return!1},onChangeError:(Q)=>{if(!BX.isNodeError(Q))throw Q;if(BX.isChangeErrorOk(Q))return;throw Q}},BV=BX;var LX={onError:BV.onChangeError},F6={onError:()=>{return}},VR=GR.getuid?!GR.getuid():!1,d1={isRetriable:BV.isRetriableError};var EX0={attempt:{chmod:v8(r1(y0.chmod),LX),chown:v8(r1(y0.chown),LX),close:v8(r1(y0.close),F6),fsync:v8(r1(y0.fsync),F6),mkdir:v8(r1(y0.mkdir),F6),realpath:v8(r1(y0.realpath),F6),stat:v8(r1(y0.stat),F6),unlink:v8(r1(y0.unlink),F6),chmodSync:V8(y0.chmodSync,LX),chownSync:V8(y0.chownSync,LX),closeSync:V8(y0.closeSync,F6),existsSync:V8(y0.existsSync,F6),fsyncSync:V8(y0.fsync,F6),mkdirSync:V8(y0.mkdirSync,F6),realpathSync:V8(y0.realpathSync,F6),statSync:V8(y0.statSync,F6),unlinkSync:V8(y0.unlinkSync,F6)},retry:{close:x8(r1(y0.close),d1),fsync:x8(r1(y0.fsync),d1),open:x8(r1(y0.open),d1),readFile:x8(r1(y0.readFile),d1),rename:x8(r1(y0.rename),d1),stat:x8(r1(y0.stat),d1),write:x8(r1(y0.write),d1),writeFile:x8(r1(y0.writeFile),d1),closeSync:k8(y0.closeSync,d1),fsyncSync:k8(y0.fsyncSync,d1),openSync:k8(y0.openSync,d1),readFileSync:k8(y0.readFileSync,d1),renameSync:k8(y0.renameSync,d1),statSync:k8(y0.statSync,d1),writeSync:k8(y0.writeSync,d1),writeFileSync:k8(y0.writeFileSync,d1)}},k1=EX0;import S5 from"node:process";var UR="utf8",LV=438,zR=511;var BR={},LR=S5.geteuid?S5.geteuid():-1,FR=S5.getegid?S5.getegid():-1;var MR=1000,IR=!!S5.getuid,us0=S5.getuid?!S5.getuid():!1,FV=128;var PR=(Q)=>{return Q instanceof Error&&"code"in Q};var MV=(Q)=>{return typeof Q==="string"},dZ=(Q)=>{return Q===void 0};import SX0 from"node:path";import c7 from"node:process";import CR from"node:process";var OR=CR.platform==="linux",cZ=CR.platform==="win32";var IV=["SIGHUP","SIGINT","SIGTERM"];if(!cZ)IV.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(OR)IV.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var jR=IV;class NR{constructor(){this.callbacks=new Set,this.exited=!1,this.exit=(Q)=>{if(this.exited)return;this.exited=!0;for(let X of this.callbacks)X();if(Q)if(cZ&&(Q!=="SIGINT"&&Q!=="SIGTERM"&&Q!=="SIGKILL"))c7.kill(c7.pid,"SIGTERM");else c7.kill(c7.pid,Q)},this.hook=()=>{c7.once("exit",()=>this.exit());for(let Q of jR)try{c7.once(Q,()=>this.exit(Q))}catch{}},this.register=(Q)=>{return this.callbacks.add(Q),()=>{this.callbacks.delete(Q)}},this.hook()}}var RR=new NR;var _X0=RR.register,DR=_X0;var A6={store:{},create:(Q)=>{let X=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6),J=Date.now().toString().slice(-10),Y="tmp-",Z=`.tmp-${J}${X}`;return`${Q}${Z}`},get:(Q,X,J=!0)=>{let Y=A6.truncate(X(Q));if(Y in A6.store)return A6.get(Q,X,J);return A6.store[Y]=J,[Y,()=>delete A6.store[Y]]},purge:(Q)=>{if(!A6.store[Q])return;delete A6.store[Q],k1.attempt.unlink(Q)},purgeSync:(Q)=>{if(!A6.store[Q])return;delete A6.store[Q],k1.attempt.unlinkSync(Q)},purgeSyncAll:()=>{for(let Q in A6.store)A6.purgeSync(Q)},truncate:(Q)=>{let X=SX0.basename(Q);if(X.length<=FV)return Q;let J=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(X);if(!J)return Q;let Y=X.length-FV;return`${Q.slice(0,-X.length)}${J[1]}${J[2].slice(0,-Y)}${J[3]}`}};DR(A6.purgeSyncAll);var FX=A6;function PV(Q,X,J=BR){if(MV(J))return PV(Q,X,{encoding:J});let Z={timeout:J.timeout??MR},q=null,$=null,H=null;try{let K=k1.attempt.realpathSync(Q),V=!!K;Q=K||Q,[$,q]=FX.get(Q,J.tmpCreate||FX.create,J.tmpPurge!==!1);let W=IR&&dZ(J.chown),G=dZ(J.mode);if(V&&(W||G)){let U=k1.attempt.statSync(Q);if(U){if(J={...J},W)J.chown={uid:U.uid,gid:U.gid};if(G)J.mode=U.mode}}if(!V){let U=vX0.dirname(Q);k1.attempt.mkdirSync(U,{mode:zR,recursive:!0})}if(H=k1.retry.openSync(Z)($,"w",J.mode||LV),J.tmpCreated)J.tmpCreated($);if(MV(X))k1.retry.writeSync(Z)(H,X,0,J.encoding||UR);else if(!dZ(X))k1.retry.writeSync(Z)(H,X,0,X.length,0);if(J.fsync!==!1)if(J.fsyncWait!==!1)k1.retry.fsyncSync(Z)(H);else k1.attempt.fsync(H);if(k1.retry.closeSync(Z)(H),H=null,J.chown&&(J.chown.uid!==LR||J.chown.gid!==FR))k1.attempt.chownSync($,J.chown.uid,J.chown.gid);if(J.mode&&J.mode!==LV)k1.attempt.chmodSync($,J.mode);try{k1.retry.renameSync(Z)($,Q)}catch(U){if(!PR(U))throw U;if(U.code!=="ENAMETOOLONG")throw U;k1.retry.renameSync(Z)($,FX.truncate(Q))}q(),$=null}finally{if(H)k1.attempt.closeSync(H);if($)FX.purge($)}}var sE=H1(OE(),1),aE=H1(cE(),1);var _V0=(Q,X,J,Y)=>{if(J==="length"||J==="prototype")return;if(J==="arguments"||J==="caller")return;let Z=Object.getOwnPropertyDescriptor(Q,J),q=Object.getOwnPropertyDescriptor(X,J);if(!SV0(Z,q)&&Y)return;Object.defineProperty(Q,J,q)},SV0=function(Q,X){return Q===void 0||Q.configurable||Q.writable===X.writable&&Q.enumerable===X.enumerable&&Q.configurable===X.configurable&&(Q.writable||Q.value===X.value)},vV0=(Q,X)=>{let J=Object.getPrototypeOf(X);if(J===Object.getPrototypeOf(Q))return;Object.setPrototypeOf(Q,J)},xV0=(Q,X)=>`/* Wrapped ${Q}*/
51
+ ${X}`,kV0=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),yV0=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),hV0=(Q,X,J)=>{let Y=J===""?"":`with ${J.trim()}() `,Z=xV0.bind(null,Y,X.toString());Object.defineProperty(Z,"name",yV0);let{writable:q,enumerable:$,configurable:H}=kV0;Object.defineProperty(Q,"toString",{value:Z,writable:q,enumerable:$,configurable:H})};function yG(Q,X,{ignoreNonConfigurable:J=!1}={}){let{name:Y}=Q;for(let Z of Reflect.ownKeys(X))_V0(Q,X,Z,J);return vV0(Q,X),hV0(Q,X,Y),Q}var bV0=(Q,X={})=>{if(typeof Q!=="function")throw TypeError(`Expected the first argument to be a function, got \`${typeof Q}\``);let{wait:J=0,maxWait:Y=Number.POSITIVE_INFINITY,before:Z=!1,after:q=!0}=X;if(J<0||Y<0)throw RangeError("`wait` and `maxWait` must not be negative.");if(!Z&&!q)throw Error("Both `before` and `after` are false, function wouldn't be called.");let $,H,K,V=function(...W){let G=this,U=()=>{if($=void 0,H)clearTimeout(H),H=void 0;if(q)K=Q.apply(G,W)},z=()=>{if(H=void 0,$)clearTimeout($),$=void 0;if(q)K=Q.apply(G,W)},L=Z&&!$;if(clearTimeout($),$=setTimeout(U,J),Y>0&&Y!==Number.POSITIVE_INFINITY&&!H)H=setTimeout(z,Y);if(L)K=Q.apply(G,W);return K};return yG(V,Q),V.cancel=()=>{if($)clearTimeout($),$=void 0;if(H)clearTimeout(H),H=void 0},V},hG=bV0;var m5=H1(HV(),1);var fV0=Object.prototype.toString;function pE(Q,X,J){if(!Q)return!1;if(Q.constructor===X)return!0;return fV0.call(Q)===J}function nE(Q){return pE(Q,Uint8Array,"[object Uint8Array]")}function gV0(Q){return pE(Q,ArrayBuffer,"[object ArrayBuffer]")}function uV0(Q){return nE(Q)||gV0(Q)}function mV0(Q){if(!nE(Q))throw TypeError(`Expected \`Uint8Array\`, got \`${typeof Q}\``)}function dV0(Q){if(!uV0(Q))throw TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof Q}\``)}function bG(Q,X){if(Q.length===0)return new Uint8Array(0);X??=Q.reduce((Z,q)=>Z+q.length,0);let J=new Uint8Array(X),Y=0;for(let Z of Q)mV0(Z),J.set(Z,Y),Y+=Z.length;return J}var lE={utf8:new globalThis.TextDecoder("utf8")};function fG(Q,X="utf8"){return dV0(Q),lE[X]??=new globalThis.TextDecoder(X),lE[X].decode(Q)}function cV0(Q){if(typeof Q!=="string")throw TypeError(`Expected \`string\`, got \`${typeof Q}\``)}var lV0=new globalThis.TextEncoder;function Aq(Q){return cV0(Q),lV0.encode(Q)}var be0=Array.from({length:256},(Q,X)=>X.toString(16).padStart(2,"0"));var iV0=aE.default.default,rE="aes-256-cbc",q9=()=>Object.create(null),oV0=(Q)=>Q!==void 0&&Q!==null,rV0=(Q,X)=>{let J=new Set(["undefined","symbol","function"]),Y=typeof X;if(J.has(Y))throw TypeError(`Setting a value of type \`${Y}\` for key \`${Q}\` is not allowed as it's not supported by JSON`)},Eq="__internal__",gG=`${Eq}.migrations.version`;class $9{path;events;#X;#Y;#J;#Q={};constructor(Q={}){let X={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438,...Q};if(!X.cwd){if(!X.projectName)throw Error("Please specify the `projectName` option.");X.cwd=zV(X.projectName,{suffix:X.projectSuffix}).config}if(this.#J=X,X.schema??X.ajvOptions??X.rootSchema){if(X.schema&&typeof X.schema!=="object")throw TypeError("The `schema` option must be an object.");let q=new sE.Ajv2020({allErrors:!0,useDefaults:!0,...X.ajvOptions});iV0(q);let $={...X.rootSchema,type:"object",properties:X.schema};this.#X=q.compile($);for(let[H,K]of Object.entries(X.schema??{}))if(K?.default)this.#Q[H]=K.default}if(X.defaults)this.#Q={...this.#Q,...X.defaults};if(X.serialize)this._serialize=X.serialize;if(X.deserialize)this._deserialize=X.deserialize;this.events=new EventTarget,this.#Y=X.encryptionKey;let J=X.fileExtension?`.${X.fileExtension}`:"";this.path=oE.resolve(X.cwd,`${X.configName??"config"}${J}`);let Y=this.store,Z=Object.assign(q9(),X.defaults,Y);if(X.migrations){if(!X.projectVersion)throw Error("Please specify the `projectVersion` option.");this._migrate(X.migrations,X.projectVersion,X.beforeEachMigration)}this._validate(Z);try{nV0.deepEqual(Y,Z)}catch{this.store=Z}if(X.watch)this._watch()}get(Q,X){if(this.#J.accessPropertiesByDotNotation)return this._get(Q,X);let{store:J}=this;return Q in J?J[Q]:X}set(Q,X){if(typeof Q!=="string"&&typeof Q!=="object")throw TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof Q}`);if(typeof Q!=="object"&&X===void 0)throw TypeError("Use `delete()` to clear values");if(this._containsReservedKey(Q))throw TypeError(`Please don't use the ${Eq} key, as it's used to manage this module internal operations.`);let{store:J}=this,Y=(Z,q)=>{if(rV0(Z,q),this.#J.accessPropertiesByDotNotation)VV(J,Z,q);else J[Z]=q};if(typeof Q==="object"){let Z=Q;for(let[q,$]of Object.entries(Z))Y(q,$)}else Y(Q,X);this.store=J}has(Q){if(this.#J.accessPropertiesByDotNotation)return HR(this.store,Q);return Q in this.store}reset(...Q){for(let X of Q)if(oV0(this.#Q[X]))this.set(X,this.#Q[X])}delete(Q){let{store:X}=this;if(this.#J.accessPropertiesByDotNotation)$R(X,Q);else delete X[Q];this.store=X}clear(){this.store=q9();for(let Q of Object.keys(this.#Q))this.reset(Q)}onDidChange(Q,X){if(typeof Q!=="string")throw TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof Q}`);if(typeof X!=="function")throw TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof X}`);return this._handleChange(()=>this.get(Q),X)}onDidAnyChange(Q){if(typeof Q!=="function")throw TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof Q}`);return this._handleChange(()=>this.store,Q)}get size(){return Object.keys(this.store).length}get store(){try{let Q=u5.readFileSync(this.path,this.#Y?null:"utf8"),X=this._encryptData(Q),J=this._deserialize(X);return this._validate(J),Object.assign(q9(),J)}catch(Q){if(Q?.code==="ENOENT")return this._ensureDirectory(),q9();if(this.#J.clearInvalidConfig&&Q.name==="SyntaxError")return q9();throw Q}}set store(Q){this._ensureDirectory(),this._validate(Q),this._write(Q),this.events.dispatchEvent(new Event("change"))}*[Symbol.iterator](){for(let[Q,X]of Object.entries(this.store))yield[Q,X]}_encryptData(Q){if(!this.#Y)return typeof Q==="string"?Q:fG(Q);try{let X=Q.slice(0,16),J=mX.pbkdf2Sync(this.#Y,X.toString(),1e4,32,"sha512"),Y=mX.createDecipheriv(rE,J,X),Z=Q.slice(17),q=typeof Z==="string"?Aq(Z):Z;return fG(bG([Y.update(q),Y.final()]))}catch{}return Q.toString()}_handleChange(Q,X){let J=Q(),Y=()=>{let Z=J,q=Q();if(pV0(q,Z))return;J=q,X.call(this,q,Z)};return this.events.addEventListener("change",Y),()=>{this.events.removeEventListener("change",Y)}}_deserialize=(Q)=>JSON.parse(Q);_serialize=(Q)=>JSON.stringify(Q,void 0,"\t");_validate(Q){if(!this.#X)return;if(this.#X(Q)||!this.#X.errors)return;let J=this.#X.errors.map(({instancePath:Y,message:Z=""})=>`\`${Y.slice(1)}\` ${Z}`);throw Error("Config schema violation: "+J.join("; "))}_ensureDirectory(){u5.mkdirSync(oE.dirname(this.path),{recursive:!0})}_write(Q){let X=this._serialize(Q);if(this.#Y){let J=mX.randomBytes(16),Y=mX.pbkdf2Sync(this.#Y,J.toString(),1e4,32,"sha512"),Z=mX.createCipheriv(rE,Y,J);X=bG([J,Aq(":"),Z.update(Aq(X)),Z.final()])}if(iE.env.SNAP)u5.writeFileSync(this.path,X,{mode:this.#J.configFileMode});else try{PV(this.path,X,{mode:this.#J.configFileMode})}catch(J){if(J?.code==="EXDEV"){u5.writeFileSync(this.path,X,{mode:this.#J.configFileMode});return}throw J}}_watch(){if(this._ensureDirectory(),!u5.existsSync(this.path))this._write(q9());if(iE.platform==="win32")u5.watch(this.path,{persistent:!1},hG(()=>{this.events.dispatchEvent(new Event("change"))},{wait:100}));else u5.watchFile(this.path,{persistent:!1},hG(()=>{this.events.dispatchEvent(new Event("change"))},{wait:5000}))}_migrate(Q,X,J){let Y=this._get(gG,"0.0.0"),Z=Object.keys(Q).filter(($)=>this._shouldPerformMigration($,Y,X)),q={...this.store};for(let $ of Z)try{if(J)J(this,{fromVersion:Y,toVersion:$,finalVersion:X,versions:Z});let H=Q[$];H?.(this),this._set(gG,$),Y=$,q={...this.store}}catch(H){throw this.store=q,Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${H}`)}if(this._isVersionInRangeFormat(Y)||!m5.default.eq(Y,X))this._set(gG,X)}_containsReservedKey(Q){if(typeof Q==="object"){if(Object.keys(Q)[0]===Eq)return!0}if(typeof Q!=="string")return!1;if(this.#J.accessPropertiesByDotNotation){if(Q.startsWith(`${Eq}.`))return!0;return!1}return!1}_isVersionInRangeFormat(Q){return m5.default.clean(Q)===null}_shouldPerformMigration(Q,X,J){if(this._isVersionInRangeFormat(Q)){if(X!=="0.0.0"&&m5.default.satisfies(X,Q))return!1;return m5.default.satisfies(J,Q)}if(m5.default.lte(Q,X))return!1;if(m5.default.gt(Q,J))return!1;return!0}_get(Q,X){return qR(this.store,Q,X)}_set(Q,X){let{store:J}=this;VV(J,Q,X),this.store=J}}var d5=new $9({projectName:T6.cli.projectName,configName:"snapshots"});function uG(Q){return d5.get(`${Q}.step`,0)}function tE(Q){let X=uG(Q)+1;return d5.set(`${Q}.step`,X),X}function mG(Q){return d5.get(`${Q}.baseCommit`,null)}function eE(Q,X){d5.set(`${Q}.baseCommit`,X)}function Q_(Q){return d5.get(`${Q}.pendingTranscript`,null)}function X_(Q,X){d5.set(`${Q}.pendingTranscript`,X)}function dG(Q){d5.delete(`${Q}.pendingTranscript`)}var lp=H1(l_(),1),pp=H1(nd(),1);import{existsSync as qk0,mkdtempSync as $k0,readdirSync as Hk0,readFileSync as cp,rmSync as Kk0,statSync as Wk0}from"node:fs";import{devNull as Vk0,tmpdir as Gk0}from"node:os";import{join as YY}from"node:path";var y3=H1(Yc(),1);var _2=new WeakMap;function t9(...Q){let X=new String(Q);return _2.set(X,Q),X}function J8(Q){return Q instanceof String&&_2.has(Q)}function e9(Q){return _2.get(Q)??[]}var x3=H1(A2(),1);import{spawn as hS0}from"child_process";var Mp=H1(v2(),1);import{normalize as Qx0}from"node:path";function*$c(Q,X){let J=X==="global";for(let Y of Q)Y.isGlobal===J&&(yield Y)}var O_0=new Set(["--add","--edit","--remove-section","--rename-section","--replace-all","--unset","--unset-all","-e"]),j_0=new Set(["--get","--get-all","--get-color","--get-colorbool","--get-regexp","--get-urlmatch","--list","-l"]),N_0=new Set(["edit","remove-section","rename-section","set","unset"]),R_0=new Set(["get","get-color","get-colorbool","list"]);function D_0(Q,X){for(let{name:Y}of $c(Q,"task")){if(O_0.has(Y))return QQ(!0,X);if(j_0.has(Y))return QQ(!1,X)}let J=X.at(0)?.toLowerCase();return J===void 0?null:N_0.has(J)?QQ(!0,X.slice(1)):R_0.has(J)?QQ(!1,X.slice(1)):X.length===1?QQ(!1,X):QQ(!0,X)}function QQ(Q=!1,X=[]){let J=X.at(0)?.toLowerCase();return J===void 0?null:{isWrite:Q,isRead:!Q,key:J,value:X.at(1)}}function w_0(Q,X){return X.isWrite&&X.value!==void 0?{key:X.key,value:X.value,scope:Q}:{key:X.key,scope:Q}}function T_0(Q){let X=Q?.indexOf("=")||-1;return!Q||X<0?null:{key:Q.slice(0,X).trim().toLowerCase(),value:Q.slice(X+1)}}function A_0(Q){for(let{name:X}of $c(Q,"task"))switch(X){case"--global":return"global";case"--system":return"system";case"--worktree":return"worktree";case"--local":return"local";case"--file":case"-f":return"file"}return"local"}function E_0({name:Q}){if(Q==="-c"||Q==="--config")return"inline";if(Q==="--config-env")return"env"}function*__0(Q){for(let X of Q){let J=E_0(X),Y=J&&T_0(X.value);Y&&(yield{...Y,scope:J})}}function S_0(Q,X,J){let Y={read:[],write:[...__0(X)]};return Q==="config"&&v_0(Y,A_0(X),D_0(X,J)),Y}function v_0(Q,X,J){if(J===null)return;let Y=w_0(X,J);J.isWrite?Q.write.push(Y):Q.read.push(Y)}var Hc={short:new Map([["c",!0]])},x_0={short:new Map([["C",!0],["P",!1],["h",!1],["p",!1],["v",!1],...Hc.short.entries()]),long:new Set(["attr-source","config-env","exec-path","git-dir","list-cmds","namespace","super-prefix","work-tree"])},k_0={clone:{short:new Map([["b",!0],["j",!0],["l",!1],["n",!1],["o",!0],["q",!1],["s",!1],["u",!0]]),long:new Set(["branch","config","jobs","origin","upload-pack","u","template"])},commit:{short:new Map([["C",!0],["F",!0],["c",!0],["m",!0],["t",!0]]),long:new Set(["file","message","reedit-message","reuse-message","template"])},config:{short:new Map([["e",!1],["f",!0],["l",!1]]),long:new Set(["blob","comment","default","file","type","value"])},fetch:{short:new Map,long:new Set(["upload-pack"])},init:{short:new Map,long:new Set(["template"])},pull:{short:new Map,long:new Set(["upload-pack"])},push:{short:new Map,long:new Set(["exec","receive-pack"])}},y_0={short:new Map,long:new Set};function h_0(Q){let X=k_0[Q??""]??y_0;return{short:new Map([...Hc.short.entries(),...X.short.entries()]),long:X.long}}function Kc(Q,X=x_0){if(Q.startsWith("--")){let J=Q.indexOf("=");if(J>2)return[{name:Q.slice(0,J),value:Q.slice(J+1),needsNext:!1}];let Y=Q.slice(2);return[{name:Q,needsNext:X.long.has(Y)}]}if(Q.length===2){let J=Q.charAt(1),Y=X.short.get(J);return[{name:Q,needsNext:Y===!0}]}return b_0(Q,X.short)}function b_0(Q,X){let J=Q.slice(1).split(""),Y=[];for(let Z=0;Z<J.length;Z++){let q=J[Z],$=X.get(q);if($===void 0)return[{name:Q,needsNext:!1}];if($){let H=J.slice(Z+1).join("");if(H&&![...H].every((K)=>X.has(K)))return Y.push({name:`-${q}`,value:H,needsNext:!1}),Y}Y.push({name:`-${q}`,needsNext:$})}return Y}function f_0(Q,X=[]){let J=0;for(;J<Q.length;){let Y=String(Q[J]);if(!Y.startsWith("-")||Y.length<2)break;let Z=Kc(Y),q=J+1;for(let $ of Z){let H={name:$.name,value:$.value,absorbedNext:!1,isGlobal:!0};$.needsNext&&H.value===void 0&&q<Q.length&&(H.value=String(Q[q]),H.absorbedNext=!0,q++),X.push(H)}J=q}return{flags:X,taskIndex:J}}function g_0(Q,X,J=[]){let Y=h_0(X),Z=[],q=[],$=0;for(;$<Q.length;){let H=Q[$];if(J8(H)){q.push(...e9(H)),$++;continue}let K=String(H);if(K==="--"){for(let G=$+1;G<Q.length;G++){let U=Q[G];J8(U)?q.push(...e9(U)):q.push(String(U))}break}if(!K.startsWith("-")||K.length<2){Z.push(K),$++;continue}let V=Kc(K,Y),W=$+1;for(let G of V){let U={name:G.name,value:G.value,absorbedNext:!1,isGlobal:!1};G.needsNext&&U.value===void 0&&W<Q.length&&!J8(Q[W])&&(U.value=String(Q[W]),U.absorbedNext=!0,W++),J.push(U)}$=W}return{flags:J,positionals:Z,pathspecs:q}}function*u_0({write:Q}){for(let X of Q)for(let J of m_0){let Y=J(X.key);Y&&(yield Y)}}function Z8(Q,X,J=String(Q)){let Y=typeof Q=="string"?new RegExp(`\\s*${Q.toLowerCase()}`):Q;return function(Z){if(Y.test(Z))return{category:X,message:`Configuring ${J} is not permitted without enabling ${X}`}}}function Y8(Q,X){let J=new RegExp(`\\s*${Q.toLowerCase().replace(/\./g,"(..+)?.")}`);return Z8(J,X,Q)}var m_0=[Z8("alias","allowUnsafeAlias"),Z8("core.askPass","allowUnsafeAskPass"),Z8("core.editor","allowUnsafeEditor"),Z8("core.fsmonitor","allowUnsafeFsMonitor"),Z8("core.gitProxy","allowUnsafeGitProxy"),Z8("core.hooksPath","allowUnsafeHooksPath"),Z8("core.pager","allowUnsafePager"),Z8("core.sshCommand","allowUnsafeSshCommand"),Y8("credential.helper","allowUnsafeCredentialHelper"),Y8("diff.command","allowUnsafeDiffExternal"),Z8("diff.external","allowUnsafeDiffExternal"),Y8("diff.textconv","allowUnsafeDiffTextConv"),Y8("filter.clean","allowUnsafeFilter"),Y8("filter.smudge","allowUnsafeFilter"),Y8("gpg.program","allowUnsafeGpgProgram"),Z8("init.templateDir","allowUnsafeTemplateDir"),Y8("merge.driver","allowUnsafeMergeDriver"),Y8("mergetool.path","allowUnsafeMergeDriver"),Y8("mergetool.cmd","allowUnsafeMergeDriver"),Y8("protocol.allow","allowUnsafeProtocolOverride"),Y8("remote.receivepack","allowUnsafePack"),Y8("remote.uploadpack","allowUnsafePack"),Z8("sequence.editor","allowUnsafeEditor")];function*d_0(Q,X){for(let J of X)for(let Y of c_0){let Z=Y(Q,J.name);Z&&(yield Z)}}function oJ(Q,X,J,Y=String(X)){let Z=typeof X=="string"?new RegExp(`\\s*${X.toLowerCase()}`):X,q=`Use of ${Q?`${Q} with option `:""}${Y} is not permitted without enabling ${J}`;return function($,H){if((!Q||$===Q)&&Z.test(H))return{category:J,message:q}}}var c_0=[oJ(null,/--(upload|receive)-pack/,"allowUnsafePack","--upload-pack or --receive-pack"),oJ("clone",/^-\w*u/,"allowUnsafePack"),oJ("clone","--u","allowUnsafePack"),oJ("push","--exec","allowUnsafePack"),oJ(null,"--template","allowUnsafeTemplateDir")];function Wc(Q,X,J){return[...d_0(Q,X),...u_0(J)]}function l_0(...Q){let{flags:X,taskIndex:J}=f_0(Q),Y=J<Q.length?String(Q[J]).toLowerCase():null,Z=Y!==null?Q.slice(J+1):[],{positionals:q,pathspecs:$}=g_0(Z,Y,X),H=S_0(Y,X,q);return{task:Y,flags:X.map(n_0),paths:$,config:H,vulnerabilities:p_0(Wc(Y,X,H))}}function p_0(Q){return Object.defineProperty(Q,"vulnerabilities",{value:Q})}function n_0({value:Q,name:X}){return Q!==void 0?{name:X,value:Q}:{name:X}}var Vc={editor:"allowUnsafeEditor",git_askpass:"allowUnsafeAskPass",git_config_global:"allowUnsafeConfigPaths",git_config_system:"allowUnsafeConfigPaths",git_config_count:"allowUnsafeConfigEnvCount",git_config:"allowUnsafeConfigPaths",git_editor:"allowUnsafeEditor",git_exec_path:"allowUnsafeConfigPaths",git_external_diff:"allowUnsafeDiffExternal",git_pager:"allowUnsafePager",git_proxy_command:"allowUnsafeGitProxy",git_template_dir:"allowUnsafeTemplateDir",git_sequence_editor:"allowUnsafeEditor",git_ssh:"allowUnsafeSshCommand",git_ssh_command:"allowUnsafeSshCommand",pager:"allowUnsafePager",prefix:"allowUnsafeConfigPaths",ssh_askpass:"allowUnsafeAskPass"};function*i_0(Q){let X=parseInt(Q.git_config_count??"0",10);for(let J=0;J<X;J++){let Y=Q[`git_config_key_${J}`],Z=Q[`git_config_value_${J}`];Y!==void 0&&(yield{key:Y.toLowerCase().trim(),value:Z,scope:"env"})}}function*o_0(Q){for(let X of Object.keys(Q))if(Gc(X)){let J=Vc[X];yield{category:J,message:`Use of "${X.toUpperCase()}" is not permitted without enabling ${J}`}}}function Gc(Q){return Object.hasOwn(Vc,Q)}function r_0(Q){let X={};for(let[J,Y]of Object.entries(Q)){let Z=J.toLowerCase().trim();(Gc(Z)||Z.startsWith("git"))&&(X[Z]=String(Y))}return X}function s_0(Q){let X=r_0(Q),J={read:[],write:[...i_0(X)]},Y=[...o_0(X),...Wc(null,[],J)];return{config:J,vulnerabilities:Y}}function Uc(Q,X){return[...l_0(...Q).vulnerabilities,...s_0(X).vulnerabilities]}var XQ=H1(v2(),1);import{EventEmitter as sx0}from"node:events";var{defineProperty:e2,getOwnPropertyDescriptor:a_0,getOwnPropertyNames:QL}=Object,t_0=Object.prototype.hasOwnProperty,n=(Q,X)=>function(){return Q&&(X=(0,Q[QL(Q)[0]])(Q=0)),X},e_0=(Q,X)=>function(){return X||(0,Q[QL(Q)[0]])((X={exports:{}}).exports,X),X.exports},D1=(Q,X)=>{for(var J in X)e2(Q,J,{get:X[J],enumerable:!0})},QS0=(Q,X,J,Y)=>{if(X&&typeof X==="object"||typeof X==="function"){for(let Z of QL(X))if(!t_0.call(Q,Z)&&Z!==J)e2(Q,Z,{get:()=>X[Z],enumerable:!(Y=a_0(X,Z))||Y.enumerable})}return Q},I1=(Q)=>QS0(e2({},"__esModule",{value:!0}),Q),j4,V5=n({"src/lib/errors/git-error.ts"(){j4=class extends Error{constructor(Q,X){super(X);this.task=Q,Object.setPrototypeOf(this,new.target.prototype)}}}}),tJ,ZQ=n({"src/lib/errors/git-response-error.ts"(){V5(),tJ=class extends j4{constructor(Q,X){super(void 0,X||String(Q));this.git=Q}}}}),lc,pc=n({"src/lib/errors/task-configuration-error.ts"(){V5(),lc=class extends j4{constructor(Q){super(void 0,Q)}}}});function nc(Q){if(typeof Q!=="function")return M7;return Q}function ic(Q){return typeof Q==="function"&&Q!==M7}function oc(Q,X){let J=Q.indexOf(X);if(J<=0)return[Q,""];return[Q.substr(0,J),Q.substr(J+1)]}function rc(Q,X=0){return sc(Q)&&Q.length>X?Q[X]:void 0}function F7(Q,X=0){if(sc(Q)&&Q.length>X)return Q[Q.length-1-X]}function sc(Q){return g3(Q)}function eJ(Q="",X=!0,J=`
52
+ `){return Q.split(J).reduce((Y,Z)=>{let q=X?Z.trim():Z;if(q)Y.push(q);return Y},[])}function XL(Q,X){return eJ(Q,!0).map((J)=>X(J))}function JL(Q){return y3.exists(Q,y3.FOLDER)}function q8(Q,X){if(Array.isArray(Q)){if(!Q.includes(X))Q.push(X)}else Q.add(X);return X}function ac(Q,X){if(Array.isArray(Q)&&!Q.includes(X))Q.push(X);return Q}function h3(Q,X){if(Array.isArray(Q)){let J=Q.indexOf(X);if(J>=0)Q.splice(J,1)}else Q.delete(X);return X}function r8(Q){return Array.isArray(Q)?Q:[Q]}function tc(Q){return Q.replace(/[\s-]+(.)/g,(X,J)=>{return J.toUpperCase()})}function qQ(Q){return r8(Q).map((X)=>{return X instanceof String?X:String(X)})}function r0(Q,X=0){if(Q==null)return X;let J=parseInt(Q,10);return Number.isNaN(J)?X:J}function sJ(Q,X){let J=[];for(let Y=0,Z=Q.length;Y<Z;Y++)J.push(X,Q[Y]);return J}function aJ(Q){return(Array.isArray(Q)?Buffer.concat(Q):Q).toString("utf-8")}function ec(Q,X){let J={};return X.forEach((Y)=>{if(Q[Y]!==void 0)J[Y]=Q[Y]}),J}function g2(Q=0){return new Promise((X)=>setTimeout(X,Q))}function u2(Q){if(Q===!1)return;return Q}var JQ,M7,QY,b3=n({"src/lib/utils/util.ts"(){YL(),JQ="\x00",M7=()=>{},QY=Object.prototype.toString.call.bind(Object.prototype.toString)}});function J6(Q,X,J){if(X(Q))return Q;return arguments.length>2?J:void 0}function m2(Q,X){let J=J8(Q)?"string":typeof Q;return/number|string|boolean/.test(J)&&(!X||!X.includes(J))}function f3(Q){return!!Q&&QY(Q)==="[object Object]"}function Ql(Q){return typeof Q==="function"}var XY,Xl,B1,S3,g3,YL=n({"src/lib/utils/argument-filters.ts"(){b3(),XY=(Q)=>{return Array.isArray(Q)},Xl=(Q)=>{return typeof Q==="number"},B1=(Q)=>{return typeof Q==="string"||J8(Q)},S3=(Q)=>{return B1(Q)||Array.isArray(Q)&&Q.every(B1)},g3=(Q)=>{if(Q==null||"number|boolean|function".includes(typeof Q))return!1;return typeof Q.length==="number"}}}),d2,XS0=n({"src/lib/utils/exit-codes.ts"(){d2=((Q)=>{return Q[Q.SUCCESS=0]="SUCCESS",Q[Q.ERROR=1]="ERROR",Q[Q.NOT_FOUND=-2]="NOT_FOUND",Q[Q.UNCLEAN=128]="UNCLEAN",Q})(d2||{})}}),v3,JS0=n({"src/lib/utils/git-output-streams.ts"(){v3=class Q{constructor(X,J){this.stdOut=X,this.stdErr=J}asStrings(){return new Q(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}}});function YS0(){throw Error("LineParser:useMatches not implemented")}var F0,W5,ZS0=n({"src/lib/utils/line-parser.ts"(){F0=class{constructor(Q,X){if(this.matches=[],this.useMatches=YS0,this.parse=(J,Y)=>{if(this.resetMatches(),!this._regExp.every((Z,q)=>this.addMatch(Z,q,J(q))))return!1;return this.useMatches(Y,this.prepareMatches())!==!1},this._regExp=Array.isArray(Q)?Q:[Q],X)this.useMatches=X}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(Q,X,J){let Y=J&&Q.exec(J);if(Y)this.pushMatch(X,Y);return!!Y}pushMatch(Q,X){this.matches.push(...X.slice(1))}},W5=class extends F0{addMatch(Q,X,J){return/^remote:\s/.test(String(J))&&super.addMatch(Q,X,J)}pushMatch(Q,X){if(Q>0||X.length>1)super.pushMatch(Q,X)}}}});function Jl(...Q){let X=process.cwd(),J=Object.assign({baseDir:X,...Yl},...Q.filter((Y)=>typeof Y==="object"&&Y));return J.baseDir=J.baseDir||X,J.trimmed=J.trimmed===!0,J}var Yl,qS0=n({"src/lib/utils/simple-git-options.ts"(){Yl={binary:"git",maxConcurrentProcesses:5,config:[],trimmed:!1}}});function ZL(Q,X=[]){if(!f3(Q))return X;return Object.keys(Q).reduce((J,Y)=>{let Z=Q[Y];if(J8(Z))J.push(Z);else if(m2(Z,["boolean"]))J.push(Y+"="+Z);else if(Array.isArray(Z)){for(let q of Z)if(!m2(q,["string","number"]))J.push(Y+"="+q)}else J.push(Y);return J},X)}function B6(Q,X=0,J=!1){let Y=[];for(let Z=0,q=X<0?Q.length:X;Z<q;Z++)if("string|number".includes(typeof Q[Z]))Y.push(String(Q[Z]));if(ZL(qL(Q),Y),!J)Y.push(...$S0(Q));return Y}function $S0(Q){let X=typeof F7(Q)==="function";return qQ(J6(F7(Q,X?1:0),XY,[]))}function qL(Q){let X=Ql(F7(Q));return J6(F7(Q,X?1:0),f3)}function Z1(Q,X=!0){let J=nc(F7(Q));return X||ic(J)?J:void 0}var HS0=n({"src/lib/utils/task-options.ts"(){YL(),b3()}});function c2(Q,X){return Q(X.stdOut,X.stdErr)}function D6(Q,X,J,Y=!0){return r8(J).forEach((Z)=>{for(let q=eJ(Z,Y),$=0,H=q.length;$<H;$++){let K=(V=0)=>{if($+V>=H)return;return q[$+V]};X.some(({parse:V})=>V(K,Q))}}),Q}var KS0=n({"src/lib/utils/task-parser.ts"(){b3()}}),Zl={};D1(Zl,{ExitCodes:()=>d2,GitOutputStreams:()=>v3,LineParser:()=>F0,NOOP:()=>M7,NULL:()=>JQ,RemoteLineParser:()=>W5,append:()=>q8,appendTaskOptions:()=>ZL,asArray:()=>r8,asCamelCase:()=>tc,asFunction:()=>nc,asNumber:()=>r0,asStringArray:()=>qQ,bufferToString:()=>aJ,callTaskParser:()=>c2,createInstanceConfig:()=>Jl,delay:()=>g2,filterArray:()=>XY,filterFunction:()=>Ql,filterHasLength:()=>g3,filterNumber:()=>Xl,filterPlainObject:()=>f3,filterPrimitives:()=>m2,filterString:()=>B1,filterStringOrStringArray:()=>S3,filterType:()=>J6,first:()=>rc,folderExists:()=>JL,forEachLineWithContent:()=>XL,getTrailingOptions:()=>B6,including:()=>ac,isUserFunction:()=>ic,last:()=>F7,objectToString:()=>QY,orVoid:()=>u2,parseStringResponse:()=>D6,pick:()=>ec,prefixedArray:()=>sJ,remove:()=>h3,splitOn:()=>oc,toLinesWithContent:()=>eJ,trailingFunctionArgument:()=>Z1,trailingOptionsArgument:()=>qL});var z0=n({"src/lib/utils/index.ts"(){YL(),XS0(),JS0(),ZS0(),qS0(),HS0(),KS0(),b3()}}),ql={};D1(ql,{CheckRepoActions:()=>l2,checkIsBareRepoTask:()=>Hl,checkIsRepoRootTask:()=>$l,checkIsRepoTask:()=>WS0});function WS0(Q){switch(Q){case"bare":return Hl();case"root":return $l()}return{commands:["rev-parse","--is-inside-work-tree"],format:"utf-8",onError:u3,parser:$L}}function $l(){return{commands:["rev-parse","--git-dir"],format:"utf-8",onError:u3,parser(X){return/^\.(git)?$/.test(X.trim())}}}function Hl(){return{commands:["rev-parse","--is-bare-repository"],format:"utf-8",onError:u3,parser:$L}}function VS0(Q){return/(Not a git repository|Kein Git-Repository)/i.test(String(Q))}var l2,u3,$L,Kl=n({"src/lib/tasks/check-is-repo.ts"(){z0(),l2=((Q)=>{return Q.BARE="bare",Q.IN_TREE="tree",Q.IS_REPO_ROOT="root",Q})(l2||{}),u3=({exitCode:Q},X,J,Y)=>{if(Q===128&&VS0(X))return J(Buffer.from("false"));Y(X)},$L=(Q)=>{return Q.trim()==="true"}}});function GS0(Q,X){let J=new Wl(Q),Y=Q?Gl:Vl;return eJ(X).forEach((Z)=>{let q=Z.replace(Y,"");J.paths.push(q),(Ul.test(q)?J.folders:J.files).push(q)}),J}var Wl,Vl,Gl,Ul,US0=n({"src/lib/responses/CleanSummary.ts"(){z0(),Wl=class{constructor(Q){this.dryRun=Q,this.paths=[],this.files=[],this.folders=[]}},Vl=/^[a-z]+\s*/i,Gl=/^[a-z]+\s+[a-z]+\s*/i,Ul=/\/$/}}),p2={};D1(p2,{EMPTY_COMMANDS:()=>m3,adhocExecTask:()=>zl,configurationErrorTask:()=>R6,isBufferTask:()=>Ll,isEmptyTask:()=>Fl,straightThroughBufferTask:()=>Bl,straightThroughStringTask:()=>L6});function zl(Q){return{commands:m3,format:"empty",parser:Q}}function R6(Q){return{commands:m3,format:"empty",parser(){throw typeof Q==="string"?new lc(Q):Q}}}function L6(Q,X=!1){return{commands:Q,format:"utf-8",parser(J){return X?String(J).trim():J}}}function Bl(Q){return{commands:Q,format:"buffer",parser(X){return X}}}function Ll(Q){return Q.format==="buffer"}function Fl(Q){return Q.format==="empty"||!Q.commands.length}var m3,P1=n({"src/lib/tasks/task.ts"(){pc(),m3=[]}}),Ml={};D1(Ml,{CONFIG_ERROR_INTERACTIVE_MODE:()=>HL,CONFIG_ERROR_MODE_REQUIRED:()=>KL,CONFIG_ERROR_UNKNOWN_OPTION:()=>WL,CleanOptions:()=>T3,cleanTask:()=>Il,cleanWithOptionsTask:()=>zS0,isCleanOptionsArray:()=>BS0});function zS0(Q,X){let{cleanMode:J,options:Y,valid:Z}=LS0(Q);if(!J)return R6(KL);if(!Z.options)return R6(WL+JSON.stringify(Q));if(Y.push(...X),Y.some(IS0))return R6(HL);return Il(J,Y)}function Il(Q,X){return{commands:["clean",`-${Q}`,...X],format:"utf-8",parser(Y){return GS0(Q==="n",Y)}}}function BS0(Q){return Array.isArray(Q)&&Q.every((X)=>VL.has(X))}function LS0(Q){let X,J=[],Y={cleanMode:!1,options:!0};return Q.replace(/[^a-z]i/g,"").split("").forEach((Z)=>{if(FS0(Z))X=Z,Y.cleanMode=!0;else Y.options=Y.options&&MS0(J[J.length]=`-${Z}`)}),{cleanMode:X,options:J,valid:Y}}function FS0(Q){return Q==="f"||Q==="n"}function MS0(Q){return/^-[a-z]$/i.test(Q)&&VL.has(Q.charAt(1))}function IS0(Q){if(/^-[^\-]/.test(Q))return Q.indexOf("i")>0;return Q==="--interactive"}var HL,KL,WL,T3,VL,Pl=n({"src/lib/tasks/clean.ts"(){US0(),z0(),P1(),HL="Git clean interactive mode is not supported",KL='Git clean mode parameter ("n" or "f") is required',WL="Git clean unknown option found in: ",T3=((Q)=>{return Q.DRY_RUN="n",Q.FORCE="f",Q.IGNORED_INCLUDED="x",Q.IGNORED_ONLY="X",Q.EXCLUDING="e",Q.QUIET="q",Q.RECURSIVE="d",Q})(T3||{}),VL=new Set(["i",...qQ(Object.values(T3))])}});function PS0(Q){let X=new Ol;for(let J of Cl(Q))X.addValue(J.file,String(J.key),J.value);return X}function CS0(Q,X){let J=null,Y=[],Z=new Map;for(let q of Cl(Q,X)){if(q.key!==X)continue;if(Y.push(J=q.value),!Z.has(q.file))Z.set(q.file,[]);Z.get(q.file).push(J)}return{key:X,paths:Array.from(Z.keys()),scopes:Z,value:J,values:Y}}function OS0(Q){return Q.replace(/^(file):/,"")}function*Cl(Q,X=null){let J=Q.split("\x00");for(let Y=0,Z=J.length-1;Y<Z;){let q=OS0(J[Y++]),$=J[Y++],H=X;if($.includes(`
53
+ `)){let K=oc($,`
54
+ `);H=K[0],$=K[1]}yield{file:q,key:H,value:$}}}var Ol,jS0=n({"src/lib/responses/ConfigList.ts"(){z0(),Ol=class{constructor(){this.files=[],this.values=Object.create(null)}get all(){if(!this._all)this._all=this.files.reduce((Q,X)=>{return Object.assign(Q,this.values[X])},{});return this._all}addFile(Q){if(!(Q in this.values)){let X=F7(this.files);this.values[Q]=X?Object.create(this.values[X]):{},this.files.push(Q)}return this.values[Q]}addValue(Q,X,J){let Y=this.addFile(Q);if(!Object.hasOwn(Y,X))Y[X]=J;else if(Array.isArray(Y[X]))Y[X].push(J);else Y[X]=[Y[X],J];this._all=void 0}}}});function x2(Q,X){if(typeof Q==="string"&&Object.hasOwn(n2,Q))return Q;return X}function NS0(Q,X,J,Y){let Z=["config",`--${Y}`];if(J)Z.push("--add");return Z.push(Q,X),{commands:Z,format:"utf-8",parser(q){return q}}}function RS0(Q,X){let J=["config","--null","--show-origin","--get-all",Q];if(X)J.splice(1,0,`--${X}`);return{commands:J,format:"utf-8",parser(Y){return CS0(Y,Q)}}}function DS0(Q){let X=["config","--list","--show-origin","--null"];if(Q)X.push(`--${Q}`);return{commands:X,format:"utf-8",parser(J){return PS0(J)}}}function wS0(){return{addConfig(Q,X,...J){return this._runTask(NS0(Q,X,J[0]===!0,x2(J[1],"local")),Z1(arguments))},getConfig(Q,X){return this._runTask(RS0(Q,x2(X,void 0)),Z1(arguments))},listConfig(...Q){return this._runTask(DS0(x2(Q[0],void 0)),Z1(arguments))}}}var n2,jl=n({"src/lib/tasks/config.ts"(){jS0(),z0(),n2=((Q)=>{return Q.system="system",Q.global="global",Q.local="local",Q.worktree="worktree",Q})(n2||{})}});function TS0(Q){return Nl.has(Q)}var k2,Nl,Rl=n({"src/lib/tasks/diff-name-status.ts"(){k2=((Q)=>{return Q.ADDED="A",Q.COPIED="C",Q.DELETED="D",Q.MODIFIED="M",Q.RENAMED="R",Q.CHANGED="T",Q.UNMERGED="U",Q.UNKNOWN="X",Q.BROKEN="B",Q})(k2||{}),Nl=new Set(Object.values(k2))}});function AS0(...Q){return new wl().param(...Q)}function ES0(Q){let X=new Set,J={};return XL(Q,(Y)=>{let[Z,q,$]=Y.split(JQ);X.add(Z),(J[Z]=J[Z]||[]).push({line:r0(q),path:Z,preview:$})}),{paths:X,results:J}}function _S0(){return{grep(Q){let X=Z1(arguments),J=B6(arguments);for(let Z of Dl)if(J.includes(Z))return this._runTask(R6(`git.grep: use of "${Z}" is not supported.`),X);if(typeof Q==="string")Q=AS0().param(Q);let Y=["grep","--null","-n","--full-name",...J,...Q];return this._runTask({commands:Y,format:"utf-8",parser(Z){return ES0(Z)}},X)}}}var Dl,rJ,zc,wl,Tl=n({"src/lib/tasks/grep.ts"(){z0(),P1(),Dl=["-h"],rJ=Symbol("grepQuery"),wl=class{constructor(){this[zc]=[]}*[(zc=rJ,Symbol.iterator)](){for(let Q of this[rJ])yield Q}and(...Q){return Q.length&&this[rJ].push("--and","(",...sJ(Q,"-e"),")"),this}param(...Q){return this[rJ].push(...sJ(Q,"-e")),this}}}}),Al={};D1(Al,{ResetMode:()=>A3,getResetMode:()=>vS0,resetTask:()=>SS0});function SS0(Q,X){let J=["reset"];if(El(Q))J.push(`--${Q}`);return J.push(...X),L6(J)}function vS0(Q){if(El(Q))return Q;switch(typeof Q){case"string":case"undefined":return"soft"}return}function El(Q){return typeof Q==="string"&&_l.includes(Q)}var A3,_l,Sl=n({"src/lib/tasks/reset.ts"(){z0(),P1(),A3=((Q)=>{return Q.MIXED="mixed",Q.SOFT="soft",Q.HARD="hard",Q.MERGE="merge",Q.KEEP="keep",Q})(A3||{}),_l=qQ(Object.values(A3))}});function xS0(){return x3.default("simple-git")}function Bc(Q,X,J){if(!X||!String(X).replace(/\s*/,""))return!J?Q:(Y,...Z)=>{Q(Y,...Z),J(Y,...Z)};return(Y,...Z)=>{if(Q(`%s ${Y}`,X,...Z),J)J(Y,...Z)}}function kS0(Q,X,{namespace:J}){if(typeof Q==="string")return Q;let Y=X&&X.namespace||"";if(Y.startsWith(J))return Y.substr(J.length+1);return Y||J}function GL(Q,X,J,Y=xS0()){let Z=Q&&`[${Q}]`||"",q=[],$=typeof X==="string"?Y.extend(X):X,H=kS0(J6(X,B1),$,Y);return V(J);function K(W,G){return q8(q,GL(Q,H.replace(/^[^:]+/,W),G,Y))}function V(W){let G=W&&`[${W}]`||"",U=$&&Bc($,G)||M7,z=Bc(Y,`${Z} ${G}`,U);return Object.assign($?U:z,{label:Q,sibling:K,info:z,step:V})}}var vl=n({"src/lib/git-logger.ts"(){z0(),x3.default.formatters.L=(Q)=>String(g3(Q)?Q.length:"-"),x3.default.formatters.B=(Q)=>{if(Buffer.isBuffer(Q))return Q.toString("utf8");return QY(Q)}}}),xl,yS0=n({"src/lib/runners/tasks-pending-queue.ts"(){V5(),vl(),xl=class Q{constructor(X="GitExecutor"){this.logLabel=X,this._queue=new Map}withProgress(X){return this._queue.get(X)}createProgress(X){let J=Q.getName(X.commands[0]),Y=GL(this.logLabel,J);return{task:X,logger:Y,name:J}}push(X){let J=this.createProgress(X);return J.logger("Adding task to the queue, commands = %o",X.commands),this._queue.set(X,J),J}fatal(X){for(let[J,{logger:Y}]of Array.from(this._queue.entries())){if(J===X.task)Y.info("Failed %o",X),Y("Fatal exception, any as-yet un-started tasks run through this executor will not be attempted");else Y.info("A fatal exception occurred in a previous task, the queue has been purged: %o",X.message);this.complete(J)}if(this._queue.size!==0)throw Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(X){if(this.withProgress(X))this._queue.delete(X)}attempt(X){let J=this.withProgress(X);if(!J)throw new j4(void 0,"TasksPendingQueue: attempt called for an unknown task");return J.logger("Starting task"),J}static getName(X="empty"){return`task:${X}:${++Q.counter}`}static{this.counter=0}}}});function L7(Q,X){return{method:rc(Q.commands)||"",commands:X}}function bS0(Q,X){return(J)=>{X("[ERROR] child process exception %o",J),Q.push(Buffer.from(String(J.stack),"ascii"))}}function Lc(Q,X,J,Y){return(Z)=>{J("%s received %L bytes",X,Z),Y("%B",Z),Q.push(Z)}}var i2,fS0=n({"src/lib/runners/git-executor-chain.ts"(){V5(),P1(),z0(),yS0(),i2=class{constructor(Q,X,J){this._executor=Q,this._scheduler=X,this._plugins=J,this._chain=Promise.resolve(),this._queue=new xl}get cwd(){return this._cwd||this._executor.cwd}set cwd(Q){this._cwd=Q}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(Q){return this._queue.push(Q),this._chain=this._chain.then(()=>this.attemptTask(Q))}async attemptTask(Q){let X=await this._scheduler.next(),J=()=>this._queue.complete(Q);try{let{logger:Y}=this._queue.attempt(Q);return await(Fl(Q)?this.attemptEmptyTask(Q,Y):this.attemptRemoteTask(Q,Y))}catch(Y){throw this.onFatalException(Q,Y)}finally{J(),X()}}onFatalException(Q,X){let J=X instanceof j4?Object.assign(X,{task:Q}):new j4(Q,X&&String(X));return this._chain=Promise.resolve(),this._queue.fatal(J),J}async attemptRemoteTask(Q,X){let J=this._plugins.exec("spawn.binary","",L7(Q,Q.commands)),Y=this._plugins.exec("spawn.args",[...Q.commands],{...L7(Q,Q.commands),env:{...this.env}}),Z=await this.gitResponse(Q,J,Y,this.outputHandler,X.step("SPAWN")),q=await this.handleTaskData(Q,Y,Z,X.step("HANDLE"));if(X("passing response to task's parser as a %s",Q.format),Ll(Q))return c2(Q.parser,q);return c2(Q.parser,q.asStrings())}async attemptEmptyTask(Q,X){return X("empty task bypassing child process to call to task's parser"),Q.parser(this)}handleTaskData(Q,X,J,Y){let{exitCode:Z,rejection:q,stdOut:$,stdErr:H}=J;return new Promise((K,V)=>{Y("Preparing to handle process response exitCode=%d stdOut=",Z);let{error:W}=this._plugins.exec("task.error",{error:q},{...L7(Q,X),...J});if(W&&Q.onError)return Y.info("exitCode=%s handling with custom error handler"),Q.onError(J,W,(G)=>{Y.info("custom error handler treated as success"),Y("custom error returned a %s",QY(G)),K(new v3(Array.isArray(G)?Buffer.concat(G):G,Buffer.concat(H)))},V);if(W)return Y.info("handling as error: exitCode=%s stdErr=%s rejection=%o",Z,H.length,q),V(W);Y.info("retrieving task output complete"),K(new v3(Buffer.concat($),Buffer.concat(H)))})}async gitResponse(Q,X,J,Y,Z){let q=Z.sibling("output"),$=this._plugins.exec("spawn.options",{cwd:this.cwd,env:this.env,windowsHide:!0},L7(Q,Q.commands));return new Promise((H)=>{let K=[],V=[];Z.info("%s %o",X,J),Z("%O",$);let W=this._beforeSpawn(Q,J);if(W)return H({stdOut:K,stdErr:V,exitCode:9901,rejection:W});this._plugins.exec("spawn.before",void 0,{...L7(Q,J),kill(U){W=U||W}});let G=hS0(X,J,$);if(G.stdout.on("data",Lc(K,"stdOut",Z,q.step("stdOut"))),G.stderr.on("data",Lc(V,"stdErr",Z,q.step("stdErr"))),G.on("error",bS0(V,Z)),Y)Z("Passing child process stdOut/stdErr to custom outputHandler"),Y(X,G.stdout,G.stderr,[...J]);this._plugins.exec("spawn.after",void 0,{...L7(Q,J),spawned:G,close(U,z){H({stdOut:K,stdErr:V,exitCode:U,rejection:W||z})},kill(U){if(G.killed)return;W=U,G.kill("SIGINT")}})})}_beforeSpawn(Q,X){let J;return this._plugins.exec("spawn.before",void 0,{...L7(Q,X),kill(Y){J=Y||J}}),J}}}}),kl={};D1(kl,{GitExecutor:()=>yl});var yl,gS0=n({"src/lib/runners/git-executor.ts"(){fS0(),yl=class{constructor(Q,X,J){this.cwd=Q,this._scheduler=X,this._plugins=J,this._chain=new i2(this,this._scheduler,this._plugins)}chain(){return new i2(this,this._scheduler,this._plugins)}push(Q){return this._chain.push(Q)}}}});function uS0(Q,X,J=M7){let Y=(q)=>{J(null,q)},Z=(q)=>{if(q?.task===Q)J(q instanceof tJ?mS0(q):q,void 0)};X.then(Y,Z)}function mS0(Q){let X=(Y)=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${Y} should be GitResponseError.git.${Y}, this will no longer be available in version 3`),X=M7};return Object.create(Q,Object.getOwnPropertyNames(Q.git).reduce(J,{}));function J(Y,Z){if(Z in Q)return Y;return Y[Z]={enumerable:!1,configurable:!1,get(){return X(Z),Q.git[Z]}},Y}}var dS0=n({"src/lib/task-callback.ts"(){ZQ(),z0()}});function Fc(Q,X){return zl((J)=>{if(!JL(Q))throw Error(`Git.cwd: cannot change to non-directory "${Q}"`);return(X||J).cwd=Q})}var cS0=n({"src/lib/tasks/change-working-directory.ts"(){z0(),P1()}});function y2(Q){let X=["checkout",...Q];if(X[1]==="-b"&&X.includes("-B"))X[1]=h3(X,"-B");return L6(X)}function lS0(){return{checkout(){return this._runTask(y2(B6(arguments,1)),Z1(arguments))},checkoutBranch(Q,X){return this._runTask(y2(["-b",Q,X,...B6(arguments)]),Z1(arguments))},checkoutLocalBranch(Q){return this._runTask(y2(["-b",Q,...B6(arguments)]),Z1(arguments))}}}var pS0=n({"src/lib/tasks/checkout.ts"(){z0(),P1()}});function nS0(){return{count:0,garbage:0,inPack:0,packs:0,prunePackable:0,size:0,sizeGarbage:0,sizePack:0}}function iS0(){return{countObjects(){return this._runTask({commands:["count-objects","--verbose"],format:"utf-8",parser(Q){return D6(nS0(),[hl],Q)}})}}}var hl,oS0=n({"src/lib/tasks/count-objects.ts"(){z0(),hl=new F0(/([a-z-]+): (\d+)$/,(Q,[X,J])=>{let Y=tc(X);if(Object.hasOwn(Q,Y))Q[Y]=r0(J)})}});function rS0(Q){return D6({author:null,branch:"",commit:"",root:!1,summary:{changes:0,insertions:0,deletions:0}},bl,Q)}var bl,sS0=n({"src/lib/parsers/parse-commit.ts"(){z0(),bl=[new F0(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,(Q,[X,J,Y])=>{Q.branch=X,Q.commit=Y,Q.root=!!J}),new F0(/\s*Author:\s(.+)/i,(Q,[X])=>{let J=X.split("<"),Y=J.pop();if(!Y||!Y.includes("@"))return;Q.author={email:Y.substr(0,Y.length-1),name:J.join("<").trim()}}),new F0(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(Q,[X,J,Y])=>{Q.summary.changes=parseInt(X,10)||0,Q.summary.insertions=parseInt(J,10)||0,Q.summary.deletions=parseInt(Y,10)||0}),new F0(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(Q,[X,J,Y])=>{Q.summary.changes=parseInt(X,10)||0;let Z=parseInt(J,10)||0;if(Y==="-")Q.summary.deletions=Z;else if(Y==="+")Q.summary.insertions=Z})]}});function aS0(Q,X,J){return{commands:["-c","core.abbrev=40","commit",...sJ(Q,"-m"),...X,...J],format:"utf-8",parser:rS0}}function tS0(){return{commit(X,...J){let Y=Z1(arguments),Z=Q(X)||aS0(r8(X),r8(J6(J[0],S3,[])),[...qQ(J6(J[1],XY,[])),...B6(arguments,0,!0)]);return this._runTask(Z,Y)}};function Q(X){return!S3(X)&&R6("git.commit: requires the commit message to be supplied as a string/string[]")}}var eS0=n({"src/lib/tasks/commit.ts"(){sS0(),z0(),P1()}});function Qv0(){return{firstCommit(){return this._runTask(L6(["rev-list","--max-parents=0","HEAD"],!0),Z1(arguments))}}}var Xv0=n({"src/lib/tasks/first-commit.ts"(){z0(),P1()}});function Jv0(Q,X){let J=["hash-object",Q];if(X)J.push("-w");return L6(J,!0)}var Yv0=n({"src/lib/tasks/hash-object.ts"(){P1()}});function Zv0(Q,X,J){let Y=String(J).trim(),Z;if(Z=fl.exec(Y))return new E3(Q,X,!1,Z[1]);if(Z=gl.exec(Y))return new E3(Q,X,!0,Z[1]);let q="",$=Y.split(" ");while($.length)if($.shift()==="in"){q=$.join(" ");break}return new E3(Q,X,/^re/i.test(Y),q)}var E3,fl,gl,qv0=n({"src/lib/responses/InitSummary.ts"(){E3=class{constructor(Q,X,J,Y){this.bare=Q,this.path=X,this.existing=J,this.gitDir=Y}},fl=/^Init.+ repository in (.+)$/,gl=/^Rein.+ in (.+)$/}});function $v0(Q){return Q.includes(UL)}function Hv0(Q=!1,X,J){let Y=["init",...J];if(Q&&!$v0(Y))Y.splice(1,0,UL);return{commands:Y,format:"utf-8",parser(Z){return Zv0(Y.includes("--bare"),X,Z)}}}var UL,Kv0=n({"src/lib/tasks/init.ts"(){qv0(),UL="--bare"}});function zL(Q){for(let X=0;X<Q.length;X++){let J=BL.exec(Q[X]);if(J)return`--${J[1]}`}return""}function Wv0(Q){return BL.test(Q)}var BL,JY=n({"src/lib/args/log-format.ts"(){BL=/^--(stat|numstat|name-only|name-status)(=|$)/}}),ul,Vv0=n({"src/lib/responses/DiffSummary.ts"(){ul=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}}}});function ml(Q=""){let X=dl[Q];return(J)=>D6(new ul,X,J,!1)}var h2,Mc,Ic,Pc,dl,cl=n({"src/lib/parsers/parse-diff-summary.ts"(){JY(),Vv0(),Rl(),z0(),h2=[new F0(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,(Q,[X,J,Y=""])=>{Q.files.push({file:X.trim(),changes:r0(J),insertions:Y.replace(/[^+]/g,"").length,deletions:Y.replace(/[^-]/g,"").length,binary:!1})}),new F0(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,(Q,[X,J,Y])=>{Q.files.push({file:X.trim(),before:r0(J),after:r0(Y),binary:!0})}),new F0(/(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,(Q,[X,J])=>{let Y=/(\d+) i/.exec(J),Z=/(\d+) d/.exec(J);Q.changed=r0(X),Q.insertions=r0(Y?.[1]),Q.deletions=r0(Z?.[1])})],Mc=[new F0(/(\d+)\t(\d+)\t(.+)$/,(Q,[X,J,Y])=>{let Z=r0(X),q=r0(J);Q.changed++,Q.insertions+=Z,Q.deletions+=q,Q.files.push({file:Y,changes:Z+q,insertions:Z,deletions:q,binary:!1})}),new F0(/-\t-\t(.+)$/,(Q,[X])=>{Q.changed++,Q.files.push({file:X,after:0,before:0,binary:!0})})],Ic=[new F0(/(.+)$/,(Q,[X])=>{Q.changed++,Q.files.push({file:X,changes:0,insertions:0,deletions:0,binary:!1})})],Pc=[new F0(/([ACDMRTUXB])([0-9]{0,3})\t(.[^\t]*)(\t(.[^\t]*))?$/,(Q,[X,J,Y,Z,q])=>{Q.changed++,Q.files.push({file:q??Y,changes:0,insertions:0,deletions:0,binary:!1,status:u2(TS0(X)&&X),from:u2(!!q&&Y!==q&&Y),similarity:r0(J)})})],dl={[""]:h2,["--stat"]:h2,["--numstat"]:Mc,["--name-status"]:Pc,["--name-only"]:Ic}}});function Gv0(Q,X){return X.reduce((J,Y,Z)=>{return J[Y]=Q[Z]||"",J},Object.create({diff:null}))}function ll(Q=ML,X=pl,J=""){let Y=ml(J);return function(Z){let q=eJ(Z.trim(),!1,LL).map(function($){let H=$.split(FL),K=Gv0(H[0].split(Q),X);if(H.length>1&&!!H[1].trim())K.diff=Y(H[1]);return K});return{all:q,latest:q.length&&q[0]||null,total:q.length}}}var LL,FL,ML,pl,nl=n({"src/lib/parsers/parse-list-log-summary.ts"(){z0(),cl(),JY(),LL="òòòòòò ",FL=" òò",ML=" ò ",pl=["hash","date","message","refs","author_name","author_email"]}}),il={};D1(il,{diffSummaryTask:()=>Uv0,validateLogFormatConfig:()=>d3});function Uv0(Q){let X=zL(Q),J=["diff"];if(X==="")X="--stat",J.push("--stat=4096");return J.push(...Q),d3(J)||{commands:J,format:"utf-8",parser:ml(X)}}function d3(Q){let X=Q.filter(Wv0);if(X.length>1)return R6(`Summary flags are mutually exclusive - pick one of ${X.join(",")}`);if(X.length&&Q.includes("-z"))return R6(`Summary flag ${X} parsing is not compatible with null termination option '-z'`)}var IL=n({"src/lib/tasks/diff.ts"(){JY(),cl(),P1()}});function zv0(Q,X){let J=[],Y=[];return Object.keys(Q).forEach((Z)=>{J.push(Z),Y.push(String(Q[Z]))}),[J,Y.join(X)]}function Bv0(Q){return Object.keys(Q).reduce((X,J)=>{if(!(J in o2))X[J]=Q[J];return X},{})}function ol(Q={},X=[]){let J=J6(Q.splitter,B1,ML),Y=f3(Q.format)?Q.format:{hash:"%H",date:Q.strictDate===!1?"%ai":"%aI",message:"%s",refs:"%D",body:Q.multiLine?"%B":"%b",author_name:Q.mailMap!==!1?"%aN":"%an",author_email:Q.mailMap!==!1?"%aE":"%ae"},[Z,q]=zv0(Y,J),$=[],H=[`--pretty=format:${LL}${q}${FL}`,...X],K=Q.n||Q["max-count"]||Q.maxCount;if(K)H.push(`--max-count=${K}`);if(Q.from||Q.to){let V=Q.symmetric!==!1?"...":"..";$.push(`${Q.from||""}${V}${Q.to||""}`)}if(B1(Q.file))H.push("--follow",t9(Q.file));return ZL(Bv0(Q),H),{fields:Z,splitter:J,commands:[...H,...$]}}function Lv0(Q,X,J){let Y=ll(Q,X,zL(J));return{commands:["log",...J],format:"utf-8",parser:Y}}function Fv0(){return{log(...J){let Y=Z1(arguments),Z=ol(qL(arguments),qQ(J6(arguments[0],XY,[]))),q=X(...J)||d3(Z.commands)||Q(Z);return this._runTask(q,Y)}};function Q(J){return Lv0(J.splitter,J.fields,J.commands)}function X(J,Y){return B1(J)&&B1(Y)&&R6("git.log(string, string) should be replaced with git.log({ from: string, to: string })")}}var o2,rl=n({"src/lib/tasks/log.ts"(){JY(),nl(),z0(),P1(),IL(),o2=((Q)=>{return Q[Q["--pretty"]=0]="--pretty",Q[Q["max-count"]=1]="max-count",Q[Q.maxCount=2]="maxCount",Q[Q.n=3]="n",Q[Q.file=4]="file",Q[Q.format=5]="format",Q[Q.from=6]="from",Q[Q.to=7]="to",Q[Q.splitter=8]="splitter",Q[Q.symmetric=9]="symmetric",Q[Q.mailMap=10]="mailMap",Q[Q.multiLine=11]="multiLine",Q[Q.strictDate=12]="strictDate",Q})(o2||{})}}),_3,sl,Mv0=n({"src/lib/responses/MergeSummary.ts"(){_3=class{constructor(Q,X=null,J){this.reason=Q,this.file=X,this.meta=J}toString(){return`${this.file}:${this.reason}`}},sl=class{constructor(){this.conflicts=[],this.merges=[],this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){if(this.conflicts.length)return`CONFLICTS: ${this.conflicts.join(", ")}`;return"OK"}}}}),r2,al,Iv0=n({"src/lib/responses/PullSummary.ts"(){r2=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},al=class{constructor(){this.remote="",this.hash={local:"",remote:""},this.branch={local:"",remote:""},this.message=""}toString(){return this.message}}}});function b2(Q){return Q.objects=Q.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function Cc(Q){let X=/^\s*(\d+)/.exec(Q),J=/delta (\d+)/i.exec(Q);return{count:r0(X&&X[1]||"0"),delta:r0(J&&J[1]||"0")}}var tl,Pv0=n({"src/lib/parsers/parse-remote-objects.ts"(){z0(),tl=[new W5(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(Q,[X,J])=>{let Y=X.toLowerCase(),Z=b2(Q.remoteMessages);Object.assign(Z,{[Y]:r0(J)})}),new W5(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(Q,[X,J])=>{let Y=X.toLowerCase(),Z=b2(Q.remoteMessages);Object.assign(Z,{[Y]:r0(J)})}),new W5(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(Q,[X,J,Y])=>{let Z=b2(Q.remoteMessages);Z.total=Cc(X),Z.reused=Cc(J),Z.packReused=r0(Y)})]}});function el(Q,X){return D6({remoteMessages:new Xp},Qp,X)}var Qp,Xp,Jp=n({"src/lib/parsers/parse-remote-messages.ts"(){z0(),Pv0(),Qp=[new W5(/^remote:\s*(.+)$/,(Q,[X])=>{return Q.remoteMessages.all.push(X.trim()),!1}),...tl,new W5([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(Q,[X])=>{Q.remoteMessages.pullRequestUrl=X}),new W5([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(Q,[X,J,Y])=>{Q.remoteMessages.vulnerabilities={count:r0(X),summary:J,url:Y}})],Xp=class{constructor(){this.all=[]}}}});function Cv0(Q,X){let J=D6(new al,Yp,[Q,X]);return J.message&&J}var Oc,jc,Nc,Rc,Yp,Dc,PL,Zp=n({"src/lib/parsers/parse-pull.ts"(){Iv0(),z0(),Jp(),Oc=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,jc=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,Nc=/^(create|delete) mode \d+ (.+)/,Rc=[new F0(Oc,(Q,[X,J,Y])=>{if(Q.files.push(X),J)Q.insertions[X]=J.length;if(Y)Q.deletions[X]=Y.length}),new F0(jc,(Q,[X,,J,,Y])=>{if(J!==void 0||Y!==void 0)return Q.summary.changes=+X||0,Q.summary.insertions=+J||0,Q.summary.deletions=+Y||0,!0;return!1}),new F0(Nc,(Q,[X,J])=>{q8(Q.files,J),q8(X==="create"?Q.created:Q.deleted,J)})],Yp=[new F0(/^from\s(.+)$/i,(Q,[X])=>void(Q.remote=X)),new F0(/^fatal:\s(.+)$/,(Q,[X])=>void(Q.message=X)),new F0(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,(Q,[X,J,Y,Z])=>{Q.branch.local=Y,Q.hash.local=X,Q.branch.remote=Z,Q.hash.remote=J})],Dc=(Q,X)=>{return D6(new r2,Rc,[Q,X])},PL=(Q,X)=>{return Object.assign(new r2,Dc(Q,X),el(Q,X))}}}),wc,qp,Tc,Ov0=n({"src/lib/parsers/parse-merge.ts"(){Mv0(),z0(),Zp(),wc=[new F0(/^Auto-merging\s+(.+)$/,(Q,[X])=>{Q.merges.push(X)}),new F0(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(Q,[X,J])=>{Q.conflicts.push(new _3(X,J))}),new F0(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(Q,[X,J,Y])=>{Q.conflicts.push(new _3(X,J,{deleteRef:Y}))}),new F0(/^CONFLICT\s+\((.+)\):/,(Q,[X])=>{Q.conflicts.push(new _3(X,null))}),new F0(/^Automatic merge failed;\s+(.+)$/,(Q,[X])=>{Q.result=X})],qp=(Q,X)=>{return Object.assign(Tc(Q,X),PL(Q,X))},Tc=(Q)=>{return D6(new sl,wc,Q)}}});function Ac(Q){if(!Q.length)return R6("Git.merge requires at least one option");return{commands:["merge",...Q],format:"utf-8",parser(X,J){let Y=qp(X,J);if(Y.failed)throw new tJ(Y);return Y}}}var jv0=n({"src/lib/tasks/merge.ts"(){ZQ(),Ov0(),P1()}});function Nv0(Q,X,J){let Y=J.includes("deleted"),Z=J.includes("tag")||/^refs\/tags/.test(Q),q=!J.includes("new");return{deleted:Y,tag:Z,branch:!Z,new:!q,alreadyUpdated:q,local:Q,remote:X}}var Ec,$p,_c,Rv0=n({"src/lib/parsers/parse-push.ts"(){z0(),Jp(),Ec=[new F0(/^Pushing to (.+)$/,(Q,[X])=>{Q.repo=X}),new F0(/^updating local tracking ref '(.+)'/,(Q,[X])=>{Q.ref={...Q.ref||{},local:X}}),new F0(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/,(Q,[X,J,Y])=>{Q.pushed.push(Nv0(X,J,Y))}),new F0(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(Q,[X,J,Y])=>{Q.branch={...Q.branch||{},local:X,remote:J,remoteName:Y}}),new F0(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(Q,[X,J,Y,Z])=>{Q.update={head:{local:X,remote:J},hash:{from:Y,to:Z}}})],$p=(Q,X)=>{let J=_c(Q,X),Y=el(Q,X);return{...J,...Y}},_c=(Q,X)=>{return D6({pushed:[]},Ec,[Q,X])}}}),Hp={};D1(Hp,{pushTagsTask:()=>Dv0,pushTask:()=>CL});function Dv0(Q={},X){return q8(X,"--tags"),CL(Q,X)}function CL(Q={},X){let J=["push",...X];if(Q.branch)J.splice(1,0,Q.branch);if(Q.remote)J.splice(1,0,Q.remote);return h3(J,"-v"),q8(J,"--verbose"),q8(J,"--porcelain"),{commands:J,format:"utf-8",parser:$p}}var Kp=n({"src/lib/tasks/push.ts"(){Rv0(),z0()}});function wv0(){return{showBuffer(){let Q=["show",...B6(arguments,1)];if(!Q.includes("--binary"))Q.splice(1,0,"--binary");return this._runTask(Bl(Q),Z1(arguments))},show(){let Q=["show",...B6(arguments,1)];return this._runTask(L6(Q),Z1(arguments))}}}var Tv0=n({"src/lib/tasks/show.ts"(){z0(),P1()}}),Sc,Wp,Av0=n({"src/lib/responses/FileStatusSummary.ts"(){Sc=/^(.+)\0(.+)$/,Wp=class{constructor(Q,X,J){if(this.path=Q,this.index=X,this.working_dir=J,X==="R"||J==="R"){let Y=Sc.exec(Q)||[null,Q,Q];this.from=Y[2]||"",this.path=Y[1]||""}}}}});function vc(Q){let[X,J]=Q.split(JQ);return{from:J||X,to:X}}function k6(Q,X,J){return[`${Q}${X}`,J]}function f2(Q,...X){return X.map((J)=>k6(Q,J,(Y,Z)=>Y.conflicted.push(Z)))}function Ev0(Q,X){let J=X.trim();switch(" "){case J.charAt(2):return Y(J.charAt(0),J.charAt(1),J.slice(3));case J.charAt(1):return Y(" ",J.charAt(0),J.slice(2));default:return}function Y(Z,q,$){let H=`${Z}${q}`,K=Vp.get(H);if(K)K(Q,$);if(H!=="##"&&H!=="!!")Q.files.push(new Wp($,Z,q))}}var xc,Vp,Gp,_v0=n({"src/lib/responses/StatusSummary.ts"(){z0(),Av0(),xc=class{constructor(){this.not_added=[],this.conflicted=[],this.created=[],this.deleted=[],this.ignored=void 0,this.modified=[],this.renamed=[],this.files=[],this.staged=[],this.ahead=0,this.behind=0,this.current=null,this.tracking=null,this.detached=!1,this.isClean=()=>{return!this.files.length}}},Vp=new Map([k6(" ","A",(Q,X)=>Q.created.push(X)),k6(" ","D",(Q,X)=>Q.deleted.push(X)),k6(" ","M",(Q,X)=>Q.modified.push(X)),k6("A"," ",(Q,X)=>{Q.created.push(X),Q.staged.push(X)}),k6("A","M",(Q,X)=>{Q.created.push(X),Q.staged.push(X),Q.modified.push(X)}),k6("D"," ",(Q,X)=>{Q.deleted.push(X),Q.staged.push(X)}),k6("M"," ",(Q,X)=>{Q.modified.push(X),Q.staged.push(X)}),k6("M","M",(Q,X)=>{Q.modified.push(X),Q.staged.push(X)}),k6("R"," ",(Q,X)=>{Q.renamed.push(vc(X))}),k6("R","M",(Q,X)=>{let J=vc(X);Q.renamed.push(J),Q.modified.push(J.to)}),k6("!","!",(Q,X)=>{(Q.ignored=Q.ignored||[]).push(X)}),k6("?","?",(Q,X)=>Q.not_added.push(X)),...f2("A","A","U"),...f2("D","D","U"),...f2("U","A","D","U"),["##",(Q,X)=>{let J=/ahead (\d+)/,Y=/behind (\d+)/,Z=/^(.+?(?=(?:\.{3}|\s|$)))/,q=/\.{3}(\S*)/,$=/\son\s(\S+?)(?=\.{3}|$)/,H=J.exec(X);if(Q.ahead=H&&+H[1]||0,H=Y.exec(X),Q.behind=H&&+H[1]||0,H=Z.exec(X),Q.current=J6(H?.[1],B1,null),H=q.exec(X),Q.tracking=J6(H?.[1],B1,null),H=$.exec(X),H)Q.current=J6(H?.[1],B1,Q.current);Q.detached=/\(no branch\)/.test(X)}]]),Gp=function(Q){let X=Q.split(JQ),J=new xc;for(let Y=0,Z=X.length;Y<Z;){let q=X[Y++].trim();if(!q)continue;if(q.charAt(0)==="R")q+=JQ+(X[Y++]||"");Ev0(J,q)}return J}}});function Sv0(Q){return{format:"utf-8",commands:["status","--porcelain","-b","-u","--null",...Q.filter((J)=>!Up.includes(J))],parser(J){return Gp(J)}}}var Up,vv0=n({"src/lib/tasks/status.ts"(){_v0(),Up=["--null","-z"]}});function k3(Q=0,X=0,J=0,Y="",Z=!0){return Object.defineProperty({major:Q,minor:X,patch:J,agent:Y,installed:Z},"toString",{value(){return`${this.major}.${this.minor}.${this.patch}`},configurable:!1,enumerable:!1})}function xv0(){return k3(0,0,0,"",!1)}function kv0(){return{version(){return this._runTask({commands:["--version"],format:"utf-8",parser:yv0,onError(Q,X,J,Y){if(Q.exitCode===-2)return J(Buffer.from(OL));Y(X)}})}}}function yv0(Q){if(Q===OL)return xv0();return D6(k3(0,0,0,Q),zp,Q)}var OL,zp,hv0=n({"src/lib/tasks/version.ts"(){z0(),OL="installed=false",zp=[new F0(/version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,(Q,[X,J,Y,Z=""])=>{Object.assign(Q,k3(r0(X),r0(J),r0(Y),Z))}),new F0(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,(Q,[X,J,Y,Z=""])=>{Object.assign(Q,k3(r0(X),r0(J),Y,Z))})]}});function kc(Q,X,J,...Y){if(!B1(J))return R6(`git.${Q}() requires a string 'repoPath'`);return X(J,J6(Y[0],B1),B6(arguments))}function bv0(){return{clone(Q,...X){return this._runTask(kc("clone",s2,J6(Q,B1),...X),Z1(arguments))},mirror(Q,...X){return this._runTask(kc("mirror",Bp,J6(Q,B1),...X),Z1(arguments))}}}var s2,Bp,fv0=n({"src/lib/tasks/clone.ts"(){P1(),z0(),s2=(Q,X,J)=>{let Y=["clone",...J];return B1(Q)&&Y.push(t9(Q)),B1(X)&&Y.push(t9(X)),L6(Y)},Bp=(Q,X,J)=>{return q8(J,"--mirror"),s2(Q,X,J)}}}),Lp={};D1(Lp,{SimpleGitApi:()=>a2});var a2,gv0=n({"src/lib/simple-git-api.ts"(){dS0(),cS0(),pS0(),oS0(),eS0(),jl(),Xv0(),Tl(),Yv0(),Kv0(),rl(),jv0(),Kp(),Tv0(),vv0(),P1(),hv0(),z0(),fv0(),a2=class{constructor(Q){this._executor=Q}_runTask(Q,X){let J=this._executor.chain(),Y=J.push(Q);if(X)uS0(Q,Y,X);return Object.create(this,{then:{value:Y.then.bind(Y)},catch:{value:Y.catch.bind(Y)},_executor:{value:J}})}add(Q){return this._runTask(L6(["add",...r8(Q)]),Z1(arguments))}cwd(Q){let X=Z1(arguments);if(typeof Q==="string")return this._runTask(Fc(Q,this._executor),X);if(typeof Q?.path==="string")return this._runTask(Fc(Q.path,Q.root&&this._executor||void 0),X);return this._runTask(R6("Git.cwd: workingDirectory must be supplied as a string"),X)}hashObject(Q,X){return this._runTask(Jv0(Q,X===!0),Z1(arguments))}init(Q){return this._runTask(Hv0(Q===!0,this._executor.cwd,B6(arguments)),Z1(arguments))}merge(){return this._runTask(Ac(B6(arguments)),Z1(arguments))}mergeFromTo(Q,X){if(!(B1(Q)&&B1(X)))return this._runTask(R6("Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings"));return this._runTask(Ac([Q,X,...B6(arguments)]),Z1(arguments,!1))}outputHandler(Q){return this._executor.outputHandler=Q,this}push(){let Q=CL({remote:J6(arguments[0],B1),branch:J6(arguments[1],B1)},B6(arguments));return this._runTask(Q,Z1(arguments))}stash(){return this._runTask(L6(["stash",...B6(arguments)]),Z1(arguments))}status(){return this._runTask(Sv0(B6(arguments)),Z1(arguments))}},Object.assign(a2.prototype,lS0(),bv0(),tS0(),wS0(),iS0(),Qv0(),_S0(),Fv0(),wv0(),kv0())}}),Fp={};D1(Fp,{Scheduler:()=>Ip});var yc,Ip,uv0=n({"src/lib/runners/scheduler.ts"(){z0(),vl(),yc=(()=>{let Q=0;return()=>{Q++;let{promise:X,done:J}=Mp.createDeferred();return{promise:X,done:J,id:Q}}})(),Ip=class{constructor(Q=2){this.concurrency=Q,this.logger=GL("","scheduler"),this.pending=[],this.running=[],this.logger("Constructed, concurrency=%s",Q)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){this.logger("Schedule attempt ignored, pending=%s running=%s concurrency=%s",this.pending.length,this.running.length,this.concurrency);return}let Q=q8(this.running,this.pending.shift());this.logger("Attempting id=%s",Q.id),Q.done(()=>{this.logger("Completing id=",Q.id),h3(this.running,Q),this.schedule()})}next(){let{promise:Q,id:X}=q8(this.pending,yc());return this.logger("Scheduling id=%s",X),this.schedule(),Q}}}}),Pp={};D1(Pp,{applyPatchTask:()=>mv0});function mv0(Q,X){return L6(["apply",...X,...Q])}var dv0=n({"src/lib/tasks/apply-patch.ts"(){P1()}});function cv0(Q,X){return{branch:Q,hash:X,success:!0}}function lv0(Q){return{branch:Q,hash:null,success:!1}}var Cp,pv0=n({"src/lib/responses/BranchDeleteSummary.ts"(){Cp=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}});function Op(Q,X){return X===1&&t2.test(Q)}var hc,t2,bc,c3,nv0=n({"src/lib/parsers/parse-branch-delete.ts"(){pv0(),z0(),hc=/(\S+)\s+\(\S+\s([^)]+)\)/,t2=/^error[^']+'([^']+)'/m,bc=[new F0(hc,(Q,[X,J])=>{let Y=cv0(X,J);Q.all.push(Y),Q.branches[X]=Y}),new F0(t2,(Q,[X])=>{let J=lv0(X);Q.errors.push(J),Q.all.push(J),Q.branches[X]=J})],c3=(Q,X)=>{return D6(new Cp,bc,[Q,X])}}}),jp,iv0=n({"src/lib/responses/BranchSummary.ts"(){jp=class{constructor(){this.all=[],this.branches={},this.current="",this.detached=!1}push(Q,X,J,Y,Z){if(Q==="*")this.detached=X,this.current=J;this.all.push(J),this.branches[J]={current:Q==="*",linkedWorkTree:Q==="+",name:J,commit:Y,label:Z}}}}});function fc(Q){return Q?Q.charAt(0):""}function Np(Q,X=!1){return D6(new jp,X?[Dp]:Rp,Q)}var Rp,Dp,ov0=n({"src/lib/parsers/parse-branch.ts"(){iv0(),z0(),Rp=[new F0(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(Q,[X,J,Y,Z])=>{Q.push(fc(X),!0,J,Y,Z)}),new F0(/^([*+]\s)?(\S+)\s+([a-z0-9]+)\s?(.*)$/s,(Q,[X,J,Y,Z])=>{Q.push(fc(X),!1,J,Y,Z)})],Dp=new F0(/^(\S+)$/s,(Q,[X])=>{Q.push("*",!1,X,"","")})}}),wp={};D1(wp,{branchLocalTask:()=>sv0,branchTask:()=>rv0,containsDeleteBranchCommand:()=>Tp,deleteBranchTask:()=>tv0,deleteBranchesTask:()=>av0});function Tp(Q){let X=["-d","-D","--delete"];return Q.some((J)=>X.includes(J))}function rv0(Q){let X=Tp(Q),J=Q.includes("--show-current"),Y=["branch",...Q];if(Y.length===1)Y.push("-a");if(!Y.includes("-v"))Y.splice(1,0,"-v");return{format:"utf-8",commands:Y,parser(Z,q){if(X)return c3(Z,q).all[0];return Np(Z,J)}}}function sv0(){return{format:"utf-8",commands:["branch","-v"],parser(Q){return Np(Q)}}}function av0(Q,X=!1){return{format:"utf-8",commands:["branch","-v",X?"-D":"-d",...Q],parser(J,Y){return c3(J,Y)},onError({exitCode:J,stdOut:Y},Z,q,$){if(!Op(String(Z),J))return $(Z);q(Y)}}}function tv0(Q,X=!1){let J={format:"utf-8",commands:["branch","-v",X?"-D":"-d",Q],parser(Y,Z){return c3(Y,Z).branches[Q]},onError({exitCode:Y,stdErr:Z,stdOut:q},$,H,K){if(!Op(String($),Y))return K($);throw new tJ(J.parser(aJ(q),aJ(Z)),String($))}};return J}var ev0=n({"src/lib/tasks/branch.ts"(){ZQ(),nv0(),ov0(),z0()}});function Xx0(Q){let X=Q.trim().replace(/^["']|["']$/g,"");return X&&Qx0(X)}var Ap,Jx0=n({"src/lib/responses/CheckIgnore.ts"(){Ap=(Q)=>{return Q.split(/\n/g).map(Xx0).filter(Boolean)}}}),Ep={};D1(Ep,{checkIgnoreTask:()=>Yx0});function Yx0(Q){return{commands:["check-ignore",...Q],format:"utf-8",parser:Ap}}var Zx0=n({"src/lib/tasks/check-ignore.ts"(){Jx0()}});function qx0(Q,X){return D6({raw:Q,remote:null,branches:[],tags:[],updated:[],deleted:[]},_p,[Q,X])}var _p,$x0=n({"src/lib/parsers/parse-fetch.ts"(){z0(),_p=[new F0(/From (.+)$/,(Q,[X])=>{Q.remote=X}),new F0(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(Q,[X,J])=>{Q.branches.push({name:X,tracking:J})}),new F0(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(Q,[X,J])=>{Q.tags.push({name:X,tracking:J})}),new F0(/- \[deleted]\s+\S+\s*-> (.+)$/,(Q,[X])=>{Q.deleted.push({tracking:X})}),new F0(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,(Q,[X,J,Y,Z])=>{Q.updated.push({name:Y,tracking:Z,to:J,from:X})})]}}),Sp={};D1(Sp,{fetchTask:()=>Kx0});function Hx0(Q){return/^--upload-pack(=|$)/.test(Q)}function Kx0(Q,X,J){let Y=["fetch",...J];if(Q&&X)Y.push(Q,X);if(Y.find(Hx0))return R6("git.fetch: potential exploit argument blocked.");return{commands:Y,format:"utf-8",parser:qx0}}var Wx0=n({"src/lib/tasks/fetch.ts"(){$x0(),P1()}});function Vx0(Q){return D6({moves:[]},vp,Q)}var vp,Gx0=n({"src/lib/parsers/parse-move.ts"(){z0(),vp=[new F0(/^Renaming (.+) to (.+)$/,(Q,[X,J])=>{Q.moves.push({from:X,to:J})})]}}),xp={};D1(xp,{moveTask:()=>Ux0});function Ux0(Q,X){return{commands:["mv","-v",...r8(Q),X],format:"utf-8",parser:Vx0}}var zx0=n({"src/lib/tasks/move.ts"(){Gx0(),z0()}}),kp={};D1(kp,{pullTask:()=>Bx0});function Bx0(Q,X,J){let Y=["pull",...J];if(Q&&X)Y.splice(1,0,Q,X);return{commands:Y,format:"utf-8",parser(Z,q){return PL(Z,q)},onError(Z,q,$,H){let K=Cv0(aJ(Z.stdOut),aJ(Z.stdErr));if(K)return H(new tJ(K));H(q)}}}var Lx0=n({"src/lib/tasks/pull.ts"(){ZQ(),Zp(),z0()}});function Fx0(Q){let X={};return yp(Q,([J])=>X[J]={name:J}),Object.values(X)}function Mx0(Q){let X={};return yp(Q,([J,Y,Z])=>{if(!Object.hasOwn(X,J))X[J]={name:J,refs:{fetch:"",push:""}};if(Z&&Y)X[J].refs[Z.replace(/[^a-z]/g,"")]=Y}),Object.values(X)}function yp(Q,X){XL(Q,(J)=>X(J.split(/\s+/)))}var Ix0=n({"src/lib/responses/GetRemoteSummary.ts"(){z0()}}),hp={};D1(hp,{addRemoteTask:()=>Px0,getRemotesTask:()=>Cx0,listRemotesTask:()=>Ox0,remoteTask:()=>jx0,removeRemoteTask:()=>Nx0});function Px0(Q,X,J){return L6(["remote","add",...J,Q,X])}function Cx0(Q){let X=["remote"];if(Q)X.push("-v");return{commands:X,format:"utf-8",parser:Q?Mx0:Fx0}}function Ox0(Q){let X=[...Q];if(X[0]!=="ls-remote")X.unshift("ls-remote");return L6(X)}function jx0(Q){let X=[...Q];if(X[0]!=="remote")X.unshift("remote");return L6(X)}function Nx0(Q){return L6(["remote","remove",Q])}var Rx0=n({"src/lib/tasks/remote.ts"(){Ix0(),P1()}}),bp={};D1(bp,{stashListTask:()=>Dx0});function Dx0(Q={},X){let J=ol(Q),Y=["stash","list",...J.commands,...X],Z=ll(J.splitter,J.fields,zL(Y));return d3(Y)||{commands:Y,format:"utf-8",parser:Z}}var wx0=n({"src/lib/tasks/stash-list.ts"(){JY(),nl(),IL(),rl()}}),fp={};D1(fp,{addSubModuleTask:()=>Tx0,initSubModuleTask:()=>Ax0,subModuleTask:()=>l3,updateSubModuleTask:()=>Ex0});function Tx0(Q,X){return l3(["add",Q,X])}function Ax0(Q){return l3(["init",...Q])}function l3(Q){let X=[...Q];if(X[0]!=="submodule")X.unshift("submodule");return L6(X)}function Ex0(Q){return l3(["update",...Q])}var _x0=n({"src/lib/tasks/sub-module.ts"(){P1()}});function Sx0(Q,X){let J=Number.isNaN(Q),Y=Number.isNaN(X);if(J!==Y)return J?1:-1;return J?gp(Q,X):0}function gp(Q,X){return Q===X?0:Q>X?1:-1}function vx0(Q){return Q.trim()}function w3(Q){if(typeof Q==="string")return parseInt(Q.replace(/^\D+/g,""),10)||0;return 0}var gc,up,xx0=n({"src/lib/responses/TagList.ts"(){gc=class{constructor(Q,X){this.all=Q,this.latest=X}},up=function(Q,X=!1){let J=Q.split(`
55
+ `).map(vx0).filter(Boolean);if(!X)J.sort(function(Z,q){let $=Z.split("."),H=q.split(".");if($.length===1||H.length===1)return Sx0(w3($[0]),w3(H[0]));for(let K=0,V=Math.max($.length,H.length);K<V;K++){let W=gp(w3($[K]),w3(H[K]));if(W)return W}return 0});let Y=X?J[0]:[...J].reverse().find((Z)=>Z.indexOf(".")>=0);return new gc(J,Y)}}}),mp={};D1(mp,{addAnnotatedTagTask:()=>hx0,addTagTask:()=>yx0,tagListTask:()=>kx0});function kx0(Q=[]){let X=Q.some((J)=>/^--sort=/.test(J));return{format:"utf-8",commands:["tag","-l",...Q],parser(J){return up(J,X)}}}function yx0(Q){return{format:"utf-8",commands:["tag",Q],parser(){return{name:Q}}}}function hx0(Q,X){return{format:"utf-8",commands:["tag","-a","-m",X,Q],parser(){return{name:Q}}}}var bx0=n({"src/lib/tasks/tag.ts"(){xx0()}}),fx0=e_0({"src/git.js"(Q,X){var{GitExecutor:J}=(gS0(),I1(kl)),{SimpleGitApi:Y}=(gv0(),I1(Lp)),{Scheduler:Z}=(uv0(),I1(Fp)),{adhocExecTask:q,configurationErrorTask:$}=(P1(),I1(p2)),{asArray:H,filterArray:K,filterPrimitives:V,filterString:W,filterStringOrStringArray:G,filterType:U,getTrailingOptions:z,trailingFunctionArgument:L,trailingOptionsArgument:B}=(z0(),I1(Zl)),{applyPatchTask:M}=(dv0(),I1(Pp)),{branchTask:I,branchLocalTask:j,deleteBranchesTask:D,deleteBranchTask:N}=(ev0(),I1(wp)),{checkIgnoreTask:k}=(Zx0(),I1(Ep)),{checkIsRepoTask:f}=(Kl(),I1(ql)),{cleanWithOptionsTask:S,isCleanOptionsArray:p}=(Pl(),I1(Ml)),{diffSummaryTask:T}=(IL(),I1(il)),{fetchTask:u}=(Wx0(),I1(Sp)),{moveTask:c}=(zx0(),I1(xp)),{pullTask:X0}=(Lx0(),I1(kp)),{pushTagsTask:I0}=(Kp(),I1(Hp)),{addRemoteTask:P0,getRemotesTask:m0,listRemotesTask:w0,remoteTask:h0,removeRemoteTask:$1}=(Rx0(),I1(hp)),{getResetMode:d0,resetTask:U1}=(Sl(),I1(Al)),{stashListTask:Z4}=(wx0(),I1(bp)),{addSubModuleTask:k4,initSubModuleTask:G0,subModuleTask:v7,updateSubModuleTask:Z6}=(_x0(),I1(fp)),{addAnnotatedTagTask:cQ,addTagTask:E8,tagListTask:x7}=(bx0(),I1(mp)),{straightThroughBufferTask:q6,straightThroughStringTask:w1}=(P1(),I1(p2));function $0(d,Z0){this._plugins=Z0,this._executor=new J(d.baseDir,new Z(d.maxConcurrentProcesses),Z0),this._trimmed=d.trimmed}($0.prototype=Object.create(Y.prototype)).constructor=$0,$0.prototype.customBinary=function(d){return this._plugins.reconfigure("binary",d),this},$0.prototype.env=function(d,Z0){if(arguments.length===1&&typeof d==="object")this._executor.env=d;else(this._executor.env=this._executor.env||{})[d]=Z0;return this},$0.prototype.stashList=function(d){return this._runTask(Z4(B(arguments)||{},K(d)&&d||[]),L(arguments))},$0.prototype.mv=function(d,Z0){return this._runTask(c(d,Z0),L(arguments))},$0.prototype.checkoutLatestTag=function(d){var Z0=this;return this.pull(function(){Z0.tags(function(R,A){Z0.checkout(A.latest,d)})})},$0.prototype.pull=function(d,Z0,R,A){return this._runTask(X0(U(d,W),U(Z0,W),z(arguments)),L(arguments))},$0.prototype.fetch=function(d,Z0){return this._runTask(u(U(d,W),U(Z0,W),z(arguments)),L(arguments))},$0.prototype.silent=function(d){return this._runTask(q(()=>console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this method will be removed.")))},$0.prototype.tags=function(d,Z0){return this._runTask(x7(z(arguments)),L(arguments))},$0.prototype.rebase=function(){return this._runTask(w1(["rebase",...z(arguments)]),L(arguments))},$0.prototype.reset=function(d){return this._runTask(U1(d0(d),z(arguments)),L(arguments))},$0.prototype.revert=function(d){let Z0=L(arguments);if(typeof d!=="string")return this._runTask($("Commit must be a string"),Z0);return this._runTask(w1(["revert",...z(arguments,0,!0),d]),Z0)},$0.prototype.addTag=function(d){let Z0=typeof d==="string"?E8(d):$("Git.addTag requires a tag name");return this._runTask(Z0,L(arguments))},$0.prototype.addAnnotatedTag=function(d,Z0){return this._runTask(cQ(d,Z0),L(arguments))},$0.prototype.deleteLocalBranch=function(d,Z0,R){return this._runTask(N(d,typeof Z0==="boolean"?Z0:!1),L(arguments))},$0.prototype.deleteLocalBranches=function(d,Z0,R){return this._runTask(D(d,typeof Z0==="boolean"?Z0:!1),L(arguments))},$0.prototype.branch=function(d,Z0){return this._runTask(I(z(arguments)),L(arguments))},$0.prototype.branchLocal=function(d){return this._runTask(j(),L(arguments))},$0.prototype.raw=function(d){let Z0=!Array.isArray(d),R=[].slice.call(Z0?arguments:d,0);for(let m=0;m<R.length&&Z0;m++)if(!V(R[m])){R.splice(m,R.length-m);break}R.push(...z(arguments,0,!0));var A=L(arguments);if(!R.length)return this._runTask($("Raw: must supply one or more command to execute"),A);return this._runTask(w1(R,this._trimmed),A)},$0.prototype.submoduleAdd=function(d,Z0,R){return this._runTask(k4(d,Z0),L(arguments))},$0.prototype.submoduleUpdate=function(d,Z0){return this._runTask(Z6(z(arguments,!0)),L(arguments))},$0.prototype.submoduleInit=function(d,Z0){return this._runTask(G0(z(arguments,!0)),L(arguments))},$0.prototype.subModule=function(d,Z0){return this._runTask(v7(z(arguments)),L(arguments))},$0.prototype.listRemote=function(){return this._runTask(w0(z(arguments)),L(arguments))},$0.prototype.addRemote=function(d,Z0,R){return this._runTask(P0(d,Z0,z(arguments)),L(arguments))},$0.prototype.removeRemote=function(d,Z0){return this._runTask($1(d),L(arguments))},$0.prototype.getRemotes=function(d,Z0){return this._runTask(m0(d===!0),L(arguments))},$0.prototype.remote=function(d,Z0){return this._runTask(h0(z(arguments)),L(arguments))},$0.prototype.tag=function(d,Z0){let R=z(arguments);if(R[0]!=="tag")R.unshift("tag");return this._runTask(w1(R),L(arguments))},$0.prototype.updateServerInfo=function(d){return this._runTask(w1(["update-server-info"]),L(arguments))},$0.prototype.pushTags=function(d,Z0){let R=I0({remote:U(d,W)},z(arguments));return this._runTask(R,L(arguments))},$0.prototype.rm=function(d){return this._runTask(w1(["rm","-f",...H(d)]),L(arguments))},$0.prototype.rmKeepLocal=function(d){return this._runTask(w1(["rm","--cached",...H(d)]),L(arguments))},$0.prototype.catFile=function(d,Z0){return this._catFile("utf-8",arguments)},$0.prototype.binaryCatFile=function(){return this._catFile("buffer",arguments)},$0.prototype._catFile=function(d,Z0){var R=L(Z0),A=["cat-file"],m=Z0[0];if(typeof m==="string")return this._runTask($("Git.catFile: options must be supplied as an array of strings"),R);if(Array.isArray(m))A.push.apply(A,m);let b=d==="buffer"?q6(A):w1(A);return this._runTask(b,R)},$0.prototype.diff=function(d,Z0){let R=W(d)?$("git.diff: supplying options as a single string is no longer supported, switch to an array of strings"):w1(["diff",...z(arguments)]);return this._runTask(R,L(arguments))},$0.prototype.diffSummary=function(){return this._runTask(T(z(arguments,1)),L(arguments))},$0.prototype.applyPatch=function(d){let Z0=!G(d)?$("git.applyPatch requires one or more string patches as the first argument"):M(H(d),z([].slice.call(arguments,1)));return this._runTask(Z0,L(arguments))},$0.prototype.revparse=function(){let d=["rev-parse",...z(arguments,!0)];return this._runTask(w1(d,!0),L(arguments))},$0.prototype.clean=function(d,Z0,R){let A=p(d),m=A&&d.join("")||U(d,W)||"",b=z([].slice.call(arguments,A?1:0));return this._runTask(S(m,b),L(arguments))},$0.prototype.exec=function(d){let Z0={commands:[],format:"utf-8",parser(){if(typeof d==="function")d()}};return this._runTask(Z0)},$0.prototype.clearQueue=function(){return this._runTask(q(()=>console.warn("simple-git deprecation notice: clearQueue() is deprecated and will be removed, switch to using the abortPlugin instead.")))},$0.prototype.checkIgnore=function(d,Z0){return this._runTask(k(H(U(d,G,[]))),L(arguments))},$0.prototype.checkIsRepo=function(d,Z0){return this._runTask(f(U(d,W)),L(arguments))},X.exports=$0}});V5();var gx0=class extends j4{constructor(Q,X){super(void 0,X);this.config=Q}};V5();V5();var YQ=class extends j4{constructor(Q,X,J){super(Q,J);this.task=Q,this.plugin=X,Object.setPrototypeOf(this,new.target.prototype)}};ZQ();pc();Kl();Pl();jl();Rl();Tl();Sl();function ux0(Q){if(!Q)return;return[{type:"spawn.before",action(Y,Z){if(Q.aborted)Z.kill(new YQ(void 0,"abort","Abort already signaled"))}},{type:"spawn.after",action(Y,Z){function q(){Z.kill(new YQ(void 0,"abort","Abort signal received"))}Q.addEventListener("abort",q),Z.spawned.on("close",()=>Q.removeEventListener("abort",q))}}]}function mx0(Q={}){return{type:"spawn.args",action(X,{env:J}){for(let Y of Uc(X,J))if(Q[Y.category]!==!0)throw new YQ(void 0,"unsafe",Y.message);return X}}}z0();function dx0(Q){let X=sJ(Q,"-c");return{type:"spawn.args",action(J){return[...X,...J]}}}z0();var uc=XQ.deferred().promise;function cx0({onClose:Q=!0,onExit:X=50}={}){function J(){let Z=-1,q={close:XQ.deferred(),closeTimeout:XQ.deferred(),exit:XQ.deferred(),exitTimeout:XQ.deferred()},$=Promise.race([Q===!1?uc:q.closeTimeout.promise,X===!1?uc:q.exitTimeout.promise]);return Y(Q,q.close,q.closeTimeout),Y(X,q.exit,q.exitTimeout),{close(H){Z=H,q.close.done()},exit(H){Z=H,q.exit.done()},get exitCode(){return Z},result:$}}function Y(Z,q,$){if(Z===!1)return;(Z===!0?q.promise:q.promise.then(()=>g2(Z))).then($.done)}return{type:"spawn.after",async action(Z,{spawned:q,close:$}){let H=J(),K=!0,V=()=>void(K=!1);q.stdout?.on("data",V),q.stderr?.on("data",V),q.on("error",V),q.on("close",(W)=>H.close(W)),q.on("exit",(W)=>H.exit(W));try{if(await H.result,K)await g2(50);$(H.exitCode)}catch(W){$(H.exitCode,W)}}}}z0();var lx0="Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings",mc="Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option";function px0(Q){return!Q||!/^([a-z]:)?([a-z0-9/.\\_~-]+)$/i.test(Q)}function dc(Q,X){if(Q.length<1||Q.length>2)throw new YQ(void 0,"binary",lx0);if(Q.some(px0))if(X)console.warn(mc);else throw new YQ(void 0,"binary",mc);let[Y,Z]=Q;return{binary:Y,prefix:Z}}function nx0(Q,X=["git"],J=!1){let Y=dc(r8(X),J);Q.on("binary",(Z)=>{Y=dc(r8(Z),J)}),Q.append("spawn.binary",()=>{return Y.binary}),Q.append("spawn.args",(Z)=>{return Y.prefix?[Y.prefix,...Z]:Z})}V5();function ix0(Q){return!!(Q.exitCode&&Q.stdErr.length)}function ox0(Q){return Buffer.concat([...Q.stdOut,...Q.stdErr])}function rx0(Q=!1,X=ix0,J=ox0){return(Y,Z)=>{if(!Q&&Y||!X(Z))return Y;return J(Z)}}function cc(Q){return{type:"task.error",action(X,J){let Y=Q(X.error,{stdErr:J.stdErr,stdOut:J.stdOut,exitCode:J.exitCode});if(Buffer.isBuffer(Y))return{error:new j4(void 0,Y.toString("utf-8"))};return{error:Y}}}}z0();var ax0=class{constructor(){this.plugins=new Set,this.events=new sx0}on(Q,X){this.events.on(Q,X)}reconfigure(Q,X){this.events.emit(Q,X)}append(Q,X){let J=q8(this.plugins,{type:Q,action:X});return()=>this.plugins.delete(J)}add(Q){let X=[];return r8(Q).forEach((J)=>J&&this.plugins.add(q8(X,J))),()=>{X.forEach((J)=>this.plugins.delete(J))}}exec(Q,X,J){let Y=X,Z=Object.freeze(Object.create(J));for(let q of this.plugins)if(q.type===Q)Y=q.action(Y,Z);return Y}};z0();function tx0(Q){let J=["checkout","clone","fetch","pull","push"];return[{type:"spawn.args",action(q,$){if(!J.includes($.method))return q;return ac(q,"--progress")}},{type:"spawn.after",action(q,$){if(!$.commands.includes("--progress"))return;$.spawned.stderr?.on("data",(H)=>{let K=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(H.toString("utf8"));if(!K)return;Q({method:$.method,stage:ex0(K[1]),progress:r0(K[2]),processed:r0(K[3]),total:r0(K[4])})})}}]}function ex0(Q){return String(Q.toLowerCase().split(" ",1))||"unknown"}z0();function Qk0(Q){let X=ec(Q,["uid","gid"]);return{type:"spawn.options",action(J){return{...X,...J}}}}function Xk0({block:Q,stdErr:X=!0,stdOut:J=!0}){if(Q>0)return{type:"spawn.after",action(Y,Z){let q;function $(){q&&clearTimeout(q),q=setTimeout(K,Q)}function H(){Z.spawned.stdout?.off("data",$),Z.spawned.stderr?.off("data",$),Z.spawned.off("exit",H),Z.spawned.off("close",H),q&&clearTimeout(q)}function K(){H(),Z.kill(new YQ(void 0,"timeout","block timeout reached"))}J&&Z.spawned.stdout?.on("data",$),X&&Z.spawned.stderr?.on("data",$),Z.spawned.on("exit",H),Z.spawned.on("close",H),$()}}}function Jk0(){return{type:"spawn.args",action(Q){let X=[],J;function Y(Z){(J=J||[]).push(...Z)}for(let Z=0;Z<Q.length;Z++){let q=Q[Z];if(J8(q)){Y(e9(q));continue}if(q==="--"){Y(Q.slice(Z+1).flatMap(($)=>J8($)&&e9($)||$));break}X.push(q)}return!J?X:[...X,"--",...J.map(String)]}}}z0();var Yk0=fx0();function Zk0(Q,X){let J=new ax0,Y=Jl(Q&&(typeof Q==="string"?{baseDir:Q}:Q)||{},X);if(!JL(Y.baseDir))throw new gx0(Y,"Cannot use simple-git on a directory that does not exist");if(Array.isArray(Y.config))J.add(dx0(Y.config));return J.add(mx0(Y.unsafe)),J.add(cx0(Y.completion)),Y.abort&&J.add(ux0(Y.abort)),Y.progress&&J.add(tx0(Y.progress)),Y.timeout&&J.add(Xk0(Y.timeout)),Y.spawnOptions&&J.add(Qk0(Y.spawnOptions)),J.add(Jk0()),J.add(cc(rx0(!0))),Y.errors&&J.add(cc(Y.errors)),nx0(J,Y.binary,Y.unsafe?.allowUnsafeCustomBinary),new Yk0(Y,J)}ZQ();var N4=Zk0;function np(){return new Promise((Q,X)=>{let J="";process.stdin.setEncoding("utf8"),process.stdin.on("data",(Y)=>{J+=Y}),process.stdin.on("end",()=>{try{Q(JSON.parse(J))}catch{X(Error("Failed to parse hook context"))}}),process.stdin.on("error",X)})}var Uk0=new Set([".git","node_modules",".venv","__pycache__",".env",".DS_Store"]);function zk0(Q){return Q.split("/").some((X)=>Uk0.has(X)||X.startsWith(".env."))}var ip=128,Bk0=64;function Lk0(Q,X){let J=0;for(let Y of X)try{J+=Wk0(YY(Q,Y)).size}catch{}return J}async function op(Q){try{return await N4(Q).checkIsRepo()}catch{return!1}}async function rp(Q){return(await N4(Q).revparse(["--show-toplevel"])).trim()}async function sp(Q){try{return(await N4(Q).revparse(["HEAD"])).trim()}catch{return null}}async function ap(Q){try{return(await N4(Q).raw(["remote","get-url","origin"])).trim()}catch{return null}}async function tp(Q){try{return(await N4(Q).raw(["rev-parse","--abbrev-ref","HEAD"])).trim()}catch{return null}}async function ep(Q,X){try{let J=await rp(Q),Y=N4(J),Z=await Y.diff([X]),$=(await Y.raw(["ls-files","--others","--exclude-standard"])).split(`
56
+ `).filter(Boolean),H=[Z];for(let V of $)try{let W=await Y.raw(["diff","--no-index",Vk0,V]);H.push(W)}catch{}let K=H.join(`
57
+ `);if(!K.trim())return null;return Buffer.from(K,"utf-8")}catch{return null}}async function Fk0(Q){let X=N4(Q),J=await X.raw(["ls-files"]),Y=await X.raw(["ls-files","--others","--exclude-standard"]);return[...J.split(`
58
+ `).filter(Boolean),...Y.split(`
59
+ `).filter(Boolean)]}async function Mk0(Q){return(await lp.default({path:Q,ignoreFiles:[".gitignore"],includeEmpty:!1})).filter((J)=>!zk0(J))}function Ik0(Q,X){return new Promise((J,Y)=>{let Z=pp.default("tar",{gzip:!0,statConcurrency:Bk0}),q=[];Z.on("data",($)=>q.push($)),Z.on("end",()=>J(Buffer.concat(q))),Z.on("error",Y);for(let $ of X)Z.file(YY(Q,$),{name:$});Z.finalize()})}async function Qn(Q,X=!1,J=ip){let Y=X?await rp(Q):Q,Z=X?await Fk0(Y):await Mk0(Q),q=Lk0(Y,Z);if(Z.length===0||q>J*1024*1024)return{tarball:null,projectSizeBytes:q};return{tarball:await Ik0(Y,Z),projectSizeBytes:q}}async function Xn(Q,X=ip){try{let J=$k0(YY(Gk0(),"onfrontier-bundle-")),Y=YY(J,"repo.bundle");try{await N4(Q).raw(["bundle","create",Y,"--all"]);let q=cp(Y);if(q.length>X*1024*1024)return null;return q}finally{Kk0(J,{recursive:!0,force:!0})}}catch{return null}}function Jn(Q){try{let X=Q.replace(/\.jsonl$/,"/subagents");if(!qk0(X))return[];return Hk0(X).filter((J)=>J.startsWith("agent-")&&J.endsWith(".jsonl")).map((J)=>({name:J,content:cp(YY(X,J))}))}catch{return[]}}async function Yn(Q){let X=new FormData;if(X.append("session_id",Q.sessionId),X.append("hook_type",Q.hookType),X.append("step_id",String(Q.stepId)),X.append("cwd",Q.cwd),Q.tarball)X.append("tarball",I7(Q.tarball),"project.tar.gz");if(Q.transcript)X.append("transcript",I7(Q.transcript),"transcript.jsonl");if(Q.subagentTranscripts)for(let Y of Q.subagentTranscripts)X.append("subagent_transcripts",I7(Y.content),Y.name);if(Q.prompt)X.append("prompt",Q.prompt);if(Q.gitBundle)X.append("git_bundle",I7(Q.gitBundle),"git_bundle.bin");if(Q.diff)X.append("diff",I7(Q.diff),"diff.patch");if(Q.gitRemoteUrl)X.append("git_remote_url",Q.gitRemoteUrl);if(Q.gitBranch)X.append("git_branch",Q.gitBranch);if(Q.gitBaseCommit)X.append("git_base_commit",Q.gitBaseCommit);if(Q.projectSizeBytes!==void 0)X.append("project_size_bytes",String(Q.projectSizeBytes));let J=await fetch(`${Q.baseUrl}/snapshots/upload`,{method:"POST",headers:{Authorization:`Bearer ${Q.apiKey}`},body:X,signal:AbortSignal.timeout(300000)});if(!J.ok)throw new ZY(`snapshot upload failed with status ${J.status}`,J.status)}function I7(Q){return new Blob([Q])}class ZY extends Error{status;constructor(Q,X){super(Q);this.name="UploadError",this.status=X}}var Pk0=20000;async function Ck0(Q){let X=new FormData;if(X.append("session_id",Q.sessionId),X.append("hook_type",Q.hookType),X.append("step_id",String(Q.stepId)),X.append("cwd",Q.cwd),X.append("transcript",I7(Q.transcript),"transcript.jsonl"),Q.subagentTranscripts)for(let Y of Q.subagentTranscripts)X.append("subagent_transcripts",I7(Y.content),Y.name);if(Q.prompt)X.append("prompt",Q.prompt);if(Q.gitRemoteUrl)X.append("git_remote_url",Q.gitRemoteUrl);if(Q.gitBranch)X.append("git_branch",Q.gitBranch);if(Q.gitBaseCommit)X.append("git_base_commit",Q.gitBaseCommit);let J;try{J=await fetch(`${Q.baseUrl}/snapshots/upload`,{method:"POST",headers:{Authorization:`Bearer ${Q.apiKey}`},body:X,signal:AbortSignal.timeout(Pk0)})}catch(Y){throw new ZY(Y instanceof Error?Y.message:"network error")}if(!J.ok)throw new ZY(`transcript upload failed with status ${J.status}`,J.status)}var dp=3,Ok0=[500,1500];function jk0(Q){return new Promise((X)=>setTimeout(X,Q))}function Nk0(Q){let X=Q*0.2;return Q-X+Math.random()*2*X}function Rk0(Q){if(Q===void 0)return!0;if(Q===408||Q===429)return!0;return Q>=500}async function Zn(Q){let X="unknown error";for(let J=0;J<dp;J++)try{return await Ck0(Q),{ok:!0}}catch(Y){let Z=Y instanceof ZY?Y.status:void 0;if(X=Y instanceof Error?Y.message:"unknown error",!Rk0(Z))return{ok:!1,reason:X};if(J<dp-1)await jk0(Nk0(Ok0[J]??1500))}return{ok:!1,reason:X}}var Ek0=new Set(["SessionStart","UserPromptSubmit"]),_k0=new Set(["Stop","StopFailure","PostToolUseFailure"]),qn=128;async function $n(Q,X,J,Y,Z,q,$){let H;try{H=wk0(Z)}catch{return{ok:!0}}let K=Jn(Z);return Zn({baseUrl:T6.snapshots.url,apiKey:Q,sessionId:X.session_id,hookType:J,stepId:Y,cwd:X.cwd,transcript:H,subagentTranscripts:K.length>0?K:void 0,prompt:$,gitRemoteUrl:q.remoteUrl??void 0,gitBranch:q.branch??void 0,gitBaseCommit:q.baseCommit??void 0})}function Hn(Q){if(Q)process.stdout.write(JSON.stringify({systemMessage:Q}),()=>process.exit(0));else process.exit(0)}async function Kn(){let Q=null;try{let X=process.env.ANTHROPIC_AUTH_TOKEN;if(!X)process.exit(0);let J=await np(),Y=J.hook_event_name;if(!Y||!Ek0.has(Y)&&!_k0.has(Y))process.exit(0);if(Y==="PostToolUseFailure"&&!J.is_interrupt)process.exit(0);let Z=Y==="SessionStart",q=await op(J.cwd),$;if(Z)$=0;else if(Y==="UserPromptSubmit")$=tE(J.session_id);else $=uG(J.session_id);if(Z&&q){let G=await sp(J.cwd);if(G)eE(J.session_id,G)}let H={remoteUrl:null,branch:null,baseCommit:null};if(q){let[G,U,z]=await Promise.all([ap(J.cwd),tp(J.cwd),Promise.resolve(mG(J.session_id))]);H={remoteUrl:G,branch:U,baseCommit:z}}if(!Z){let G=!1,U=Q_(J.session_id);if(U)if((await $n(X,J,U.hookType,U.stepId,U.transcriptPath,H,U.prompt)).ok)dG(J.session_id);else G=!0;let z=await $n(X,J,Y,$,J.transcript_path,H,J.prompt);if(z.ok)if(G)Q="On Frontier is still retrying a previous turn's session transcript upload.";else dG(J.session_id);else X_(J.session_id,{stepId:$,hookType:Y,transcriptPath:J.transcript_path,prompt:J.prompt}),Q=`On Frontier could not upload the session transcript for this turn (will retry next turn): ${z.reason}`}if(process.env.ONFRONTIER_SNAPSHOT_REPO!=="1"){Hn(Q);return}let K=Dk0(qY(Tk0(),"onfrontier-snapshot-")),V;if(Z||!q){let G=await Qn(J.cwd,q,qn);if(V=G.projectSizeBytes,G.tarball)p3(qY(K,"tarball"),G.tarball)}if(Z&&q){let G=await Xn(J.cwd,qn);if(G)p3(qY(K,"git_bundle"),G)}if(!Z&&q){let G=mG(J.session_id);if(G){let U=await ep(J.cwd,G);if(U)p3(qY(K,"diff"),U)}}let W={baseUrl:T6.snapshots.url,apiKey:X,sessionId:J.session_id,hookType:Y,stepId:$,cwd:J.cwd};if(J.prompt)W.prompt=J.prompt;if(V!==void 0)W.projectSizeBytes=V;if(H.remoteUrl)W.gitRemoteUrl=H.remoteUrl;if(H.branch)W.gitBranch=H.branch;if(H.baseCommit)W.gitBaseCommit=H.baseCommit;p3(qY(K,"manifest.json"),JSON.stringify(W)),Ak0(process.argv[0],[process.argv[1],"internal","snapshot-upload",K],{detached:!0,stdio:"ignore"}).unref()}catch{}Hn(Q)}import{existsSync as Sk0,readFileSync as Wn,rmSync as vk0}from"node:fs";import{join as Vn}from"node:path";async function Gn(Q){try{let X=JSON.parse(Wn(Vn(Q,"manifest.json"),"utf-8")),J=(Y)=>{let Z=Vn(Q,Y);return Sk0(Z)?Wn(Z):void 0};await Yn({baseUrl:X.baseUrl,apiKey:X.apiKey,sessionId:X.sessionId,hookType:X.hookType,stepId:X.stepId,cwd:X.cwd,tarball:J("tarball"),prompt:X.prompt,gitBundle:J("git_bundle"),diff:J("diff"),gitRemoteUrl:X.gitRemoteUrl,gitBranch:X.gitBranch,gitBaseCommit:X.gitBaseCommit,projectSizeBytes:X.projectSizeBytes})}catch{}try{vk0(Q,{recursive:!0,force:!0})}catch{}process.exit(0)}var Y6=H1(NL(),1),Nn=H1(FZ(),1);import{stdin as On,stdout as jn}from"node:process";import*as G5 from"node:readline";import zn from"node:readline";import{Writable as yk0}from"node:stream";function hk0({onlyFirst:Q=!1}={}){let X=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(X,Q?void 0:"g")}var bk0=hk0();function Rn(Q){if(typeof Q!="string")throw TypeError(`Expected a \`string\`, got \`${typeof Q}\``);return Q.replace(bk0,"")}function Dn(Q){return Q&&Q.__esModule&&Object.prototype.hasOwnProperty.call(Q,"default")?Q.default:Q}var wn={exports:{}};(function(Q){var X={};Q.exports=X,X.eastAsianWidth=function(Y){var Z=Y.charCodeAt(0),q=Y.length==2?Y.charCodeAt(1):0,$=Z;return 55296<=Z&&Z<=56319&&56320<=q&&q<=57343&&(Z&=1023,q&=1023,$=Z<<10|q,$+=65536),$==12288||65281<=$&&$<=65376||65504<=$&&$<=65510?"F":$==8361||65377<=$&&$<=65470||65474<=$&&$<=65479||65482<=$&&$<=65487||65490<=$&&$<=65495||65498<=$&&$<=65500||65512<=$&&$<=65518?"H":4352<=$&&$<=4447||4515<=$&&$<=4519||4602<=$&&$<=4607||9001<=$&&$<=9002||11904<=$&&$<=11929||11931<=$&&$<=12019||12032<=$&&$<=12245||12272<=$&&$<=12283||12289<=$&&$<=12350||12353<=$&&$<=12438||12441<=$&&$<=12543||12549<=$&&$<=12589||12593<=$&&$<=12686||12688<=$&&$<=12730||12736<=$&&$<=12771||12784<=$&&$<=12830||12832<=$&&$<=12871||12880<=$&&$<=13054||13056<=$&&$<=19903||19968<=$&&$<=42124||42128<=$&&$<=42182||43360<=$&&$<=43388||44032<=$&&$<=55203||55216<=$&&$<=55238||55243<=$&&$<=55291||63744<=$&&$<=64255||65040<=$&&$<=65049||65072<=$&&$<=65106||65108<=$&&$<=65126||65128<=$&&$<=65131||110592<=$&&$<=110593||127488<=$&&$<=127490||127504<=$&&$<=127546||127552<=$&&$<=127560||127568<=$&&$<=127569||131072<=$&&$<=194367||177984<=$&&$<=196605||196608<=$&&$<=262141?"W":32<=$&&$<=126||162<=$&&$<=163||165<=$&&$<=166||$==172||$==175||10214<=$&&$<=10221||10629<=$&&$<=10630?"Na":$==161||$==164||167<=$&&$<=168||$==170||173<=$&&$<=174||176<=$&&$<=180||182<=$&&$<=186||188<=$&&$<=191||$==198||$==208||215<=$&&$<=216||222<=$&&$<=225||$==230||232<=$&&$<=234||236<=$&&$<=237||$==240||242<=$&&$<=243||247<=$&&$<=250||$==252||$==254||$==257||$==273||$==275||$==283||294<=$&&$<=295||$==299||305<=$&&$<=307||$==312||319<=$&&$<=322||$==324||328<=$&&$<=331||$==333||338<=$&&$<=339||358<=$&&$<=359||$==363||$==462||$==464||$==466||$==468||$==470||$==472||$==474||$==476||$==593||$==609||$==708||$==711||713<=$&&$<=715||$==717||$==720||728<=$&&$<=731||$==733||$==735||768<=$&&$<=879||913<=$&&$<=929||931<=$&&$<=937||945<=$&&$<=961||963<=$&&$<=969||$==1025||1040<=$&&$<=1103||$==1105||$==8208||8211<=$&&$<=8214||8216<=$&&$<=8217||8220<=$&&$<=8221||8224<=$&&$<=8226||8228<=$&&$<=8231||$==8240||8242<=$&&$<=8243||$==8245||$==8251||$==8254||$==8308||$==8319||8321<=$&&$<=8324||$==8364||$==8451||$==8453||$==8457||$==8467||$==8470||8481<=$&&$<=8482||$==8486||$==8491||8531<=$&&$<=8532||8539<=$&&$<=8542||8544<=$&&$<=8555||8560<=$&&$<=8569||$==8585||8592<=$&&$<=8601||8632<=$&&$<=8633||$==8658||$==8660||$==8679||$==8704||8706<=$&&$<=8707||8711<=$&&$<=8712||$==8715||$==8719||$==8721||$==8725||$==8730||8733<=$&&$<=8736||$==8739||$==8741||8743<=$&&$<=8748||$==8750||8756<=$&&$<=8759||8764<=$&&$<=8765||$==8776||$==8780||$==8786||8800<=$&&$<=8801||8804<=$&&$<=8807||8810<=$&&$<=8811||8814<=$&&$<=8815||8834<=$&&$<=8835||8838<=$&&$<=8839||$==8853||$==8857||$==8869||$==8895||$==8978||9312<=$&&$<=9449||9451<=$&&$<=9547||9552<=$&&$<=9587||9600<=$&&$<=9615||9618<=$&&$<=9621||9632<=$&&$<=9633||9635<=$&&$<=9641||9650<=$&&$<=9651||9654<=$&&$<=9655||9660<=$&&$<=9661||9664<=$&&$<=9665||9670<=$&&$<=9672||$==9675||9678<=$&&$<=9681||9698<=$&&$<=9701||$==9711||9733<=$&&$<=9734||$==9737||9742<=$&&$<=9743||9748<=$&&$<=9749||$==9756||$==9758||$==9792||$==9794||9824<=$&&$<=9825||9827<=$&&$<=9829||9831<=$&&$<=9834||9836<=$&&$<=9837||$==9839||9886<=$&&$<=9887||9918<=$&&$<=9919||9924<=$&&$<=9933||9935<=$&&$<=9953||$==9955||9960<=$&&$<=9983||$==10045||$==10071||10102<=$&&$<=10111||11093<=$&&$<=11097||12872<=$&&$<=12879||57344<=$&&$<=63743||65024<=$&&$<=65039||$==65533||127232<=$&&$<=127242||127248<=$&&$<=127277||127280<=$&&$<=127337||127344<=$&&$<=127386||917760<=$&&$<=917999||983040<=$&&$<=1048573||1048576<=$&&$<=1114109?"A":"N"},X.characterLength=function(Y){var Z=this.eastAsianWidth(Y);return Z=="F"||Z=="W"||Z=="A"?2:1};function J(Y){return Y.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}X.length=function(Y){for(var Z=J(Y),q=0,$=0;$<Z.length;$++)q=q+this.characterLength(Z[$]);return q},X.slice=function(Y,Z,q){textLen=X.length(Y),Z=Z||0,q=q||1,Z<0&&(Z=textLen+Z),q<0&&(q=textLen+q);for(var $="",H=0,K=J(Y),V=0;V<K.length;V++){var W=K[V],G=X.length(W);if(H>=Z-(G==2?1:0))if(H+G<=q)$+=W;else break;H+=G}return $}})(wn);var fk0=wn.exports,gk0=Dn(fk0),uk0=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},mk0=Dn(uk0);function $Y(Q,X={}){if(typeof Q!="string"||Q.length===0||(X={ambiguousIsNarrow:!0,...X},Q=Rn(Q),Q.length===0))return 0;Q=Q.replace(mk0()," ");let J=X.ambiguousIsNarrow?1:2,Y=0;for(let Z of Q){let q=Z.codePointAt(0);if(q<=31||q>=127&&q<=159||q>=768&&q<=879)continue;switch(gk0.eastAsianWidth(Z)){case"F":case"W":Y+=2;break;case"A":Y+=J;break;default:Y+=1}}return Y}var RL=10,Bn=(Q=0)=>(X)=>`\x1B[${X+Q}m`,Ln=(Q=0)=>(X)=>`\x1B[${38+Q};5;${X}m`,Fn=(Q=0)=>(X,J,Y)=>`\x1B[${38+Q};2;${X};${J};${Y}m`,q1={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(q1.modifier);var dk0=Object.keys(q1.color),ck0=Object.keys(q1.bgColor);[...dk0,...ck0];function lk0(){let Q=new Map;for(let[X,J]of Object.entries(q1)){for(let[Y,Z]of Object.entries(J))q1[Y]={open:`\x1B[${Z[0]}m`,close:`\x1B[${Z[1]}m`},J[Y]=q1[Y],Q.set(Z[0],Z[1]);Object.defineProperty(q1,X,{value:J,enumerable:!1})}return Object.defineProperty(q1,"codes",{value:Q,enumerable:!1}),q1.color.close="\x1B[39m",q1.bgColor.close="\x1B[49m",q1.color.ansi=Bn(),q1.color.ansi256=Ln(),q1.color.ansi16m=Fn(),q1.bgColor.ansi=Bn(RL),q1.bgColor.ansi256=Ln(RL),q1.bgColor.ansi16m=Fn(RL),Object.defineProperties(q1,{rgbToAnsi256:{value:(X,J,Y)=>X===J&&J===Y?X<8?16:X>248?231:Math.round((X-8)/247*24)+232:16+36*Math.round(X/255*5)+6*Math.round(J/255*5)+Math.round(Y/255*5),enumerable:!1},hexToRgb:{value:(X)=>{let J=/[a-f\d]{6}|[a-f\d]{3}/i.exec(X.toString(16));if(!J)return[0,0,0];let[Y]=J;Y.length===3&&(Y=[...Y].map((q)=>q+q).join(""));let Z=Number.parseInt(Y,16);return[Z>>16&255,Z>>8&255,Z&255]},enumerable:!1},hexToAnsi256:{value:(X)=>q1.rgbToAnsi256(...q1.hexToRgb(X)),enumerable:!1},ansi256ToAnsi:{value:(X)=>{if(X<8)return 30+X;if(X<16)return 90+(X-8);let J,Y,Z;if(X>=232)J=((X-232)*10+8)/255,Y=J,Z=J;else{X-=16;let H=X%36;J=Math.floor(X/36)/5,Y=Math.floor(H/6)/5,Z=H%6/5}let q=Math.max(J,Y,Z)*2;if(q===0)return 30;let $=30+(Math.round(Z)<<2|Math.round(Y)<<1|Math.round(J));return q===2&&($+=60),$},enumerable:!1},rgbToAnsi:{value:(X,J,Y)=>q1.ansi256ToAnsi(q1.rgbToAnsi256(X,J,Y)),enumerable:!1},hexToAnsi:{value:(X)=>q1.ansi256ToAnsi(q1.hexToAnsi256(X)),enumerable:!1}}),q1}var pk0=lk0(),o3=new Set(["\x1B","›"]),nk0=39,TL="\x07",Tn="[",ik0="]",An="m",AL=`${ik0}8;;`,Mn=(Q)=>`${o3.values().next().value}${Tn}${Q}${An}`,In=(Q)=>`${o3.values().next().value}${AL}${Q}${TL}`,ok0=(Q)=>Q.split(" ").map((X)=>$Y(X)),DL=(Q,X,J)=>{let Y=[...X],Z=!1,q=!1,$=$Y(Rn(Q[Q.length-1]));for(let[H,K]of Y.entries()){let V=$Y(K);if($+V<=J?Q[Q.length-1]+=K:(Q.push(K),$=0),o3.has(K)&&(Z=!0,q=Y.slice(H+1).join("").startsWith(AL)),Z){q?K===TL&&(Z=!1,q=!1):K===An&&(Z=!1);continue}$+=V,$===J&&H<Y.length-1&&(Q.push(""),$=0)}!$&&Q[Q.length-1].length>0&&Q.length>1&&(Q[Q.length-2]+=Q.pop())},rk0=(Q)=>{let X=Q.split(" "),J=X.length;for(;J>0&&!($Y(X[J-1])>0);)J--;return J===X.length?Q:X.slice(0,J).join(" ")+X.slice(J).join("")},sk0=(Q,X,J={})=>{if(J.trim!==!1&&Q.trim()==="")return"";let Y="",Z,q,$=ok0(Q),H=[""];for(let[V,W]of Q.split(" ").entries()){J.trim!==!1&&(H[H.length-1]=H[H.length-1].trimStart());let G=$Y(H[H.length-1]);if(V!==0&&(G>=X&&(J.wordWrap===!1||J.trim===!1)&&(H.push(""),G=0),(G>0||J.trim===!1)&&(H[H.length-1]+=" ",G++)),J.hard&&$[V]>X){let U=X-G,z=1+Math.floor(($[V]-U-1)/X);Math.floor(($[V]-1)/X)<z&&H.push(""),DL(H,W,X);continue}if(G+$[V]>X&&G>0&&$[V]>0){if(J.wordWrap===!1&&G<X){DL(H,W,X);continue}H.push("")}if(G+$[V]>X&&J.wordWrap===!1){DL(H,W,X);continue}H[H.length-1]+=W}J.trim!==!1&&(H=H.map((V)=>rk0(V)));let K=[...H.join(`
60
+ `)];for(let[V,W]of K.entries()){if(Y+=W,o3.has(W)){let{groups:U}=new RegExp(`(?:\\${Tn}(?<code>\\d+)m|\\${AL}(?<uri>.*)${TL})`).exec(K.slice(V).join(""))||{groups:{}};if(U.code!==void 0){let z=Number.parseFloat(U.code);Z=z===nk0?void 0:z}else U.uri!==void 0&&(q=U.uri.length===0?void 0:U.uri)}let G=pk0.codes.get(Number(Z));K[V+1]===`
61
+ `?(q&&(Y+=In("")),Z&&G&&(Y+=Mn(G))):W===`
62
+ `&&(Z&&G&&(Y+=Mn(Z)),q&&(Y+=In(q)))}return Y};function Pn(Q,X,J){return String(Q).normalize().replace(/\r\n/g,`
63
+ `).split(`
64
+ `).map((Y)=>sk0(Y,X,J)).join(`
65
+ `)}var ak0=["up","down","left","right","space","enter","cancel"],i3={actions:new Set(ak0),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["\x03","cancel"],["escape","cancel"]])};function EL(Q,X){if(typeof Q=="string")return i3.aliases.get(Q)===X;for(let J of Q)if(J!==void 0&&EL(J,X))return!0;return!1}function tk0(Q,X){if(Q===X)return;let J=Q.split(`
66
+ `),Y=X.split(`
67
+ `),Z=[];for(let q=0;q<Math.max(J.length,Y.length);q++)J[q]!==Y[q]&&Z.push(q);return Z}var ek0=globalThis.process.platform.startsWith("win"),wL=Symbol("clack:cancel");function R4(Q){return Q===wL}function n3(Q,X){let J=Q;J.isTTY&&J.setRawMode(X)}function En({input:Q=On,output:X=jn,overwrite:J=!0,hideCursor:Y=!0}={}){let Z=G5.createInterface({input:Q,output:X,prompt:"",tabSize:1});G5.emitKeypressEvents(Q,Z),Q.isTTY&&Q.setRawMode(!0);let q=($,{name:H,sequence:K})=>{let V=String($);if(EL([V,H,K],"cancel")){Y&&X.write(Y6.cursor.show),process.exit(0);return}if(!J)return;G5.moveCursor(X,H==="return"?0:-1,H==="return"?-1:0,()=>{G5.clearLine(X,1,()=>{Q.once("keypress",q)})})};return Y&&X.write(Y6.cursor.hide),Q.once("keypress",q),()=>{Q.off("keypress",q),Y&&X.write(Y6.cursor.show),Q.isTTY&&!ek0&&Q.setRawMode(!1),Z.terminal=!1,Z.close()}}var Qy0=Object.defineProperty,Xy0=(Q,X,J)=>(X in Q)?Qy0(Q,X,{enumerable:!0,configurable:!0,writable:!0,value:J}):Q[X]=J,y6=(Q,X,J)=>(Xy0(Q,typeof X!="symbol"?X+"":X,J),J);class r3{constructor(Q,X=!0){y6(this,"input"),y6(this,"output"),y6(this,"_abortSignal"),y6(this,"rl"),y6(this,"opts"),y6(this,"_render"),y6(this,"_track",!1),y6(this,"_prevFrame",""),y6(this,"_subscribers",new Map),y6(this,"_cursor",0),y6(this,"state","initial"),y6(this,"error",""),y6(this,"value");let{input:J=On,output:Y=jn,render:Z,signal:q,...$}=Q;this.opts=$,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=Z.bind(this),this._track=X,this._abortSignal=q,this.input=J,this.output=Y}unsubscribe(){this._subscribers.clear()}setSubscriber(Q,X){let J=this._subscribers.get(Q)??[];J.push(X),this._subscribers.set(Q,J)}on(Q,X){this.setSubscriber(Q,{cb:X})}once(Q,X){this.setSubscriber(Q,{cb:X,once:!0})}emit(Q,...X){let J=this._subscribers.get(Q)??[],Y=[];for(let Z of J)Z.cb(...X),Z.once&&Y.push(()=>J.splice(J.indexOf(Z),1));for(let Z of Y)Z()}prompt(){return new Promise((Q,X)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),Q(wL);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let J=new yk0;J._write=(Y,Z,q)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),q()},this.input.pipe(J),this.rl=zn.createInterface({input:this.input,output:J,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),zn.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),n3(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(Y6.cursor.show),this.output.off("resize",this.render),n3(this.input,!1),Q(this.value)}),this.once("cancel",()=>{this.output.write(Y6.cursor.show),this.output.off("resize",this.render),n3(this.input,!1),Q(wL)})})}onKeypress(Q,X){if(this.state==="error"&&(this.state="active"),X?.name&&(!this._track&&i3.aliases.has(X.name)&&this.emit("cursor",i3.aliases.get(X.name)),i3.actions.has(X.name)&&this.emit("cursor",X.name)),Q&&(Q.toLowerCase()==="y"||Q.toLowerCase()==="n")&&this.emit("confirm",Q.toLowerCase()==="y"),Q==="\t"&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),Q&&this.emit("key",Q.toLowerCase()),X?.name==="return"){if(this.opts.validate){let J=this.opts.validate(this.value);J&&(this.error=J instanceof Error?J.message:J,this.state="error",this.rl?.write(this.value))}this.state!=="error"&&(this.state="submit")}EL([Q,X?.name,X?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
68
+ `),n3(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let Q=Pn(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
69
+ `).length-1;this.output.write(Y6.cursor.move(-999,Q*-1))}render(){let Q=Pn(this._render(this)??"",process.stdout.columns,{hard:!0});if(Q!==this._prevFrame){if(this.state==="initial")this.output.write(Y6.cursor.hide);else{let X=tk0(this._prevFrame,Q);if(this.restoreCursor(),X&&X?.length===1){let J=X[0];this.output.write(Y6.cursor.move(0,J)),this.output.write(Y6.erase.lines(1));let Y=Q.split(`
70
+ `);this.output.write(Y[J]),this._prevFrame=Q,this.output.write(Y6.cursor.move(0,Y.length-J-1));return}if(X&&X?.length>1){let J=X[0];this.output.write(Y6.cursor.move(0,J)),this.output.write(Y6.erase.down());let Y=Q.split(`
71
+ `).slice(J);this.output.write(Y.join(`
72
+ `)),this._prevFrame=Q;return}this.output.write(Y6.erase.down())}this.output.write(Q),this.state==="initial"&&(this.state="active"),this._prevFrame=Q}}}class _L extends r3{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(Q){super(Q,!1),this.value=!!Q.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",(X)=>{this.output.write(Y6.cursor.move(0,-1)),this.value=X,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}var Jy0;Jy0=new WeakMap;var Yy0=Object.defineProperty,Zy0=(Q,X,J)=>(X in Q)?Yy0(Q,X,{enumerable:!0,configurable:!0,writable:!0,value:J}):Q[X]=J,Cn=(Q,X,J)=>(Zy0(Q,typeof X!="symbol"?X+"":X,J),J);class SL extends r3{constructor(Q){super(Q,!1),Cn(this,"options"),Cn(this,"cursor",0),this.options=Q.options,this.cursor=this.options.findIndex(({value:X})=>X===Q.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",(X)=>{switch(X){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}}class vL extends r3{get valueWithCursor(){if(this.state==="submit")return this.value;if(this.cursor>=this.value.length)return`${this.value}█`;let Q=this.value.slice(0,this.cursor),[X,...J]=this.value.slice(this.cursor);return`${Q}${Nn.default.inverse(X)}${J.join("")}`}get cursor(){return this._cursor}constructor(Q){super(Q),this.on("finalize",()=>{this.value||(this.value=Q.defaultValue)})}}var o=H1(FZ(),1),s3=H1(NL(),1);import j8 from"node:process";function qy0(){return j8.platform!=="win32"?j8.env.TERM!=="linux":!!j8.env.CI||!!j8.env.WT_SESSION||!!j8.env.TERMINUS_SUBLIME||j8.env.ConEmuTask==="{cmd::Cmder}"||j8.env.TERM_PROGRAM==="Terminus-Sublime"||j8.env.TERM_PROGRAM==="vscode"||j8.env.TERM==="xterm-256color"||j8.env.TERM==="alacritty"||j8.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var xL=qy0(),C1=(Q,X)=>xL?Q:X,$y0=C1("◆","*"),_n=C1("■","x"),Sn=C1("▲","x"),hL=C1("◇","o"),Hy0=C1("┌","T"),G1=C1("│","|"),$Q=C1("└","—"),kL=C1("●",">"),yL=C1("○"," "),s51=C1("◻","[•]"),a51=C1("◼","[+]"),t51=C1("◻","[ ]"),e51=C1("▪","•"),Q71=C1("─","-"),X71=C1("╮","+"),J71=C1("├","+"),Y71=C1("╯","+"),Ky0=C1("●","•"),Wy0=C1("◆","*"),Vy0=C1("▲","!"),Gy0=C1("■","x"),bL=(Q)=>{switch(Q){case"initial":case"active":return o.default.cyan($y0);case"cancel":return o.default.red(_n);case"error":return o.default.yellow(Sn);case"submit":return o.default.green(hL)}},Uy0=(Q)=>{let{cursor:X,options:J,style:Y}=Q,Z=Q.maxItems??Number.POSITIVE_INFINITY,q=Math.max(process.stdout.rows-4,0),$=Math.min(q,Math.max(Z,5)),H=0;X>=H+$-3?H=Math.max(Math.min(X-$+3,J.length-$),0):X<H+2&&(H=Math.max(X-2,0));let K=$<J.length&&H>0,V=$<J.length&&H+$<J.length;return J.slice(H,H+$).map((W,G,U)=>{let z=G===0&&K,L=G===U.length-1&&V;return z||L?o.default.dim("..."):Y(W,G+H===X)})},fL=(Q)=>new vL({validate:Q.validate,placeholder:Q.placeholder,defaultValue:Q.defaultValue,initialValue:Q.initialValue,render(){let X=`${o.default.gray(G1)}
73
+ ${bL(this.state)} ${Q.message}
74
+ `,J=Q.placeholder?o.default.inverse(Q.placeholder[0])+o.default.dim(Q.placeholder.slice(1)):o.default.inverse(o.default.hidden("_")),Y=this.value?this.valueWithCursor:J;switch(this.state){case"error":return`${X.trim()}
75
+ ${o.default.yellow(G1)} ${Y}
76
+ ${o.default.yellow($Q)} ${o.default.yellow(this.error)}
77
+ `;case"submit":return`${X}${o.default.gray(G1)} ${o.default.dim(this.value||Q.placeholder)}`;case"cancel":return`${X}${o.default.gray(G1)} ${o.default.strikethrough(o.default.dim(this.value??""))}${this.value?.trim()?`
78
+ ${o.default.gray(G1)}`:""}`;default:return`${X}${o.default.cyan(G1)} ${Y}
79
+ ${o.default.cyan($Q)}
80
+ `}}}).prompt();var vn=(Q)=>{let X=Q.active??"Yes",J=Q.inactive??"No";return new _L({active:X,inactive:J,initialValue:Q.initialValue??!0,render(){let Y=`${o.default.gray(G1)}
81
+ ${bL(this.state)} ${Q.message}
82
+ `,Z=this.value?X:J;switch(this.state){case"submit":return`${Y}${o.default.gray(G1)} ${o.default.dim(Z)}`;case"cancel":return`${Y}${o.default.gray(G1)} ${o.default.strikethrough(o.default.dim(Z))}
83
+ ${o.default.gray(G1)}`;default:return`${Y}${o.default.cyan(G1)} ${this.value?`${o.default.green(kL)} ${X}`:`${o.default.dim(yL)} ${o.default.dim(X)}`} ${o.default.dim("/")} ${this.value?`${o.default.dim(yL)} ${o.default.dim(J)}`:`${o.default.green(kL)} ${J}`}
84
+ ${o.default.cyan($Q)}
85
+ `}}}).prompt()},gL=(Q)=>{let X=(J,Y)=>{let Z=J.label??String(J.value);switch(Y){case"selected":return`${o.default.dim(Z)}`;case"active":return`${o.default.green(kL)} ${Z} ${J.hint?o.default.dim(`(${J.hint})`):""}`;case"cancelled":return`${o.default.strikethrough(o.default.dim(Z))}`;default:return`${o.default.dim(yL)} ${o.default.dim(Z)}`}};return new SL({options:Q.options,initialValue:Q.initialValue,render(){let J=`${o.default.gray(G1)}
86
+ ${bL(this.state)} ${Q.message}
87
+ `;switch(this.state){case"submit":return`${J}${o.default.gray(G1)} ${X(this.options[this.cursor],"selected")}`;case"cancel":return`${J}${o.default.gray(G1)} ${X(this.options[this.cursor],"cancelled")}
88
+ ${o.default.gray(G1)}`;default:return`${J}${o.default.cyan(G1)} ${Uy0({cursor:this.cursor,options:this.options,maxItems:Q.maxItems,style:(Y,Z)=>X(Y,Z?"active":"inactive")}).join(`
89
+ ${o.default.cyan(G1)} `)}
90
+ ${o.default.cyan($Q)}
91
+ `}}}).prompt()};var w6=(Q="")=>{process.stdout.write(`${o.default.gray($Q)} ${o.default.red(Q)}
92
+
93
+ `)},HQ=(Q="")=>{process.stdout.write(`${o.default.gray(Hy0)} ${Q}
94
+ `)},P7=(Q="")=>{process.stdout.write(`${o.default.gray(G1)}
95
+ ${o.default.gray($Q)} ${Q}
96
+
97
+ `)},D4={message:(Q="",{symbol:X=o.default.gray(G1)}={})=>{let J=[`${o.default.gray(G1)}`];if(Q){let[Y,...Z]=Q.split(`
98
+ `);J.push(`${X} ${Y}`,...Z.map((q)=>`${o.default.gray(G1)} ${q}`))}process.stdout.write(`${J.join(`
99
+ `)}
100
+ `)},info:(Q)=>{D4.message(Q,{symbol:o.default.blue(Ky0)})},success:(Q)=>{D4.message(Q,{symbol:o.default.green(Wy0)})},step:(Q)=>{D4.message(Q,{symbol:o.default.green(hL)})},warn:(Q)=>{D4.message(Q,{symbol:o.default.yellow(Vy0)})},warning:(Q)=>{D4.warn(Q)},error:(Q)=>{D4.message(Q,{symbol:o.default.red(Gy0)})}},Z71=`${o.default.gray(G1)} `;var HY=({indicator:Q="dots"}={})=>{let X=xL?["◒","◐","◓","◑"]:["•","o","O","0"],J=xL?80:120,Y=process.env.CI==="true",Z,q,$=!1,H="",K,V=performance.now(),W=(N)=>{let k=N>1?"Something went wrong":"Canceled";$&&D(k,N)},G=()=>W(2),U=()=>W(1),z=()=>{process.on("uncaughtExceptionMonitor",G),process.on("unhandledRejection",G),process.on("SIGINT",U),process.on("SIGTERM",U),process.on("exit",W)},L=()=>{process.removeListener("uncaughtExceptionMonitor",G),process.removeListener("unhandledRejection",G),process.removeListener("SIGINT",U),process.removeListener("SIGTERM",U),process.removeListener("exit",W)},B=()=>{if(K===void 0)return;Y&&process.stdout.write(`
101
+ `);let N=K.split(`
102
+ `);process.stdout.write(s3.cursor.move(-999,N.length-1)),process.stdout.write(s3.erase.down(N.length))},M=(N)=>N.replace(/\.+$/,""),I=(N)=>{let k=(performance.now()-N)/1000,f=Math.floor(k/60),S=Math.floor(k%60);return f>0?`[${f}m ${S}s]`:`[${S}s]`},j=(N="")=>{$=!0,Z=En(),H=M(N),V=performance.now(),process.stdout.write(`${o.default.gray(G1)}
103
+ `);let k=0,f=0;z(),q=setInterval(()=>{if(Y&&H===K)return;B(),K=H;let S=o.default.magenta(X[k]);if(Y)process.stdout.write(`${S} ${H}...`);else if(Q==="timer")process.stdout.write(`${S} ${H} ${I(V)}`);else{let p=".".repeat(Math.floor(f)).slice(0,3);process.stdout.write(`${S} ${H}${p}`)}k=k+1<X.length?k+1:0,f=f<X.length?f+0.125:0},J)},D=(N="",k=0)=>{$=!1,clearInterval(q),B();let f=k===0?o.default.green(hL):k===1?o.default.red(_n):o.default.red(Sn);H=M(N??H),Q==="timer"?process.stdout.write(`${f} ${H} ${I(V)}
104
+ `):process.stdout.write(`${f} ${H}
105
+ `),L(),Z()};return{start:j,stop:D,message:(N="")=>{H=M(N??H)}}};var KY=new $9({projectName:T6.cli.projectName}),w4={getCookie:()=>KY.get("sessionCookie"),setCookie:(Q)=>{KY.set("sessionCookie",Q)},getApiKey:()=>KY.get("apiKey"),setApiKey:(Q)=>{KY.set("apiKey",Q)},clear:()=>{KY.clear()}};class t3 extends Error{status;constructor(Q,X){super(X||`Request failed (${Q})`);this.status=Q;this.name="ApiError"}}function zy0(Q){for(let X of Q.headers.getSetCookie())if(X.startsWith("wos_session=")){let J=X.split(";")[0].slice(12);if(J)w4.setCookie(J)}}async function WY(Q,X={}){let J=new Headers(X.headers);J.set("Content-Type","application/json");let Y=w4.getCookie();if(Y)J.set("Cookie",`wos_session=${Y}`);let Z=await fetch(`${T6.api.url}${Q}`,{...X,headers:J,redirect:"manual"});return zy0(Z),Z}async function By0(Q){try{return(await Q.json()).detail}catch{return}}async function a3(Q){if(!Q.ok)throw new t3(Q.status,await By0(Q));return Q}var U5={magicStart:async(Q)=>{await a3(await WY("/auth/magic/start",{method:"POST",body:JSON.stringify({email:Q,intent:"login"})}))},magicVerify:async(Q,X)=>{return await(await a3(await WY("/auth/magic/verify",{method:"POST",body:JSON.stringify({email:Q,code:X})}))).json()},currentUser:async()=>{if(!w4.getCookie())return null;let Q=await WY("/auth/user");if(!Q.ok)return null;return await Q.json()},sessionConfig:async()=>{return await(await a3(await WY("/cli/session-config"))).json()},createRouterKey:async()=>{return await(await a3(await WY("/cli/router-key",{method:"POST"}))).json()}};async function xn(){HQ("On Frontier login");let Q=await U5.currentUser();if(Q){P7(`Already logged in as ${Q.email}. Run \`onfrontier logout\` to switch accounts.`);return}let X=await fL({message:"Email",validate:(Z)=>Z.includes("@")?void 0:"Enter a valid email address."});if(R4(X))w6("Cancelled."),process.exit(0);let J=HY();J.start("Sending sign-in code");try{await U5.magicStart(X)}catch(Z){J.stop("Failed to send the code"),w6(Z.message),process.exit(1)}J.stop("If an On Frontier account exists for that email, a 6-digit code is on its way - check your inbox.");let Y=await fL({message:"Enter the 6-digit code",validate:(Z)=>/^\d{6}$/.test(Z.trim())?void 0:"The code is 6 digits."});if(R4(Y))w6("Cancelled."),process.exit(0);try{let Z=await U5.magicVerify(X,Y.trim());P7(`Logged in as ${Z.email}`)}catch(Z){w6(Z instanceof t3&&Z.status===401?"That code is invalid or expired. Run `onfrontier login` to try again.":Z.message),process.exit(1)}}function kn(){HQ("On Frontier logout"),w4.clear(),P7("Logged out - stored session and API key cleared.")}function O1(Q){if(typeof Q!=="object"||Q===null)return!1;let X=Object.getPrototypeOf(Q);return(X===null||X===Object.prototype||Object.getPrototypeOf(X)===null)&&!(Symbol.toStringTag in Q)&&!(Symbol.iterator in Q)}import{fileURLToPath as Ly0}from"node:url";var KQ=(Q,X)=>{let J=dL(Fy0(Q));if(typeof J!=="string")throw TypeError(`${X} must be a string or a file URL: ${J}.`);return J},Fy0=(Q)=>mL(Q)?Q.toString():Q,mL=(Q)=>typeof Q!=="string"&&Q&&Object.getPrototypeOf(Q)===String.prototype,dL=(Q)=>Q instanceof URL?Ly0(Q):Q;var e3=(Q,X=[],J={})=>{let Y=KQ(Q,"First argument"),[Z,q]=O1(X)?[[],X]:[X,J];if(!Array.isArray(Z))throw TypeError(`Second argument must be either an array of arguments or an options object: ${Z}`);if(Z.some((K)=>typeof K==="object"&&K!==null))throw TypeError(`Second argument must be an array of strings: ${Z}`);let $=Z.map(String),H=$.find((K)=>K.includes("\x00"));if(H!==void 0)throw TypeError(`Arguments cannot contain null bytes ("\\0"): ${H}`);if(!O1(q))throw TypeError(`Last argument must be an options object: ${q}`);return[Y,$,q]};import{ChildProcess as Ny0}from"node:child_process";import{StringDecoder as My0}from"node:string_decoder";var{toString:yn}=Object.prototype,hn=(Q)=>yn.call(Q)==="[object ArrayBuffer]",_1=(Q)=>yn.call(Q)==="[object Uint8Array]",T4=(Q)=>new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength),Iy0=new TextEncoder,bn=(Q)=>Iy0.encode(Q),Py0=new TextDecoder,QH=(Q)=>Py0.decode(Q),fn=(Q,X)=>{return Cy0(Q,X).join("")},Cy0=(Q,X)=>{if(X==="utf8"&&Q.every((q)=>typeof q==="string"))return Q;let J=new My0(X),Y=Q.map((q)=>typeof q==="string"?bn(q):q).map((q)=>J.write(q)),Z=J.end();return Z===""?Y:[...Y,Z]},VY=(Q)=>{if(Q.length===1&&_1(Q[0]))return Q[0];return cL(Oy0(Q))},Oy0=(Q)=>Q.map((X)=>typeof X==="string"?bn(X):X),cL=(Q)=>{let X=new Uint8Array(jy0(Q)),J=0;for(let Y of Q)X.set(Y,J),J+=Y.length;return X},jy0=(Q)=>{let X=0;for(let J of Q)X+=J.length;return X};var dn=(Q)=>Array.isArray(Q)&&Array.isArray(Q.raw),cn=(Q,X)=>{let J=[];for(let[q,$]of Q.entries())J=Ry0({templates:Q,expressions:X,tokens:J,index:q,template:$});if(J.length===0)throw TypeError("Template script must not be empty");let[Y,...Z]=J;return[Y,Z,{}]},Ry0=({templates:Q,expressions:X,tokens:J,index:Y,template:Z})=>{if(Z===void 0)throw TypeError(`Invalid backslash sequence: ${Q.raw[Y]}`);let{nextTokens:q,leadingWhitespaces:$,trailingWhitespaces:H}=Dy0(Z,Q.raw[Y]),K=un(J,q,$);if(Y===X.length)return K;let V=X[Y],W=Array.isArray(V)?V.map((G)=>mn(G)):[mn(V)];return un(K,W,H)},Dy0=(Q,X)=>{if(X.length===0)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};let J=[],Y=0,Z=gn.has(X[0]);for(let $=0,H=0;$<Q.length;$+=1,H+=1){let K=X[H];if(gn.has(K)){if(Y!==$)J.push(Q.slice(Y,$));Y=$+1}else if(K==="\\"){let V=X[H+1];if(V===`
106
+ `)$-=1,H+=1;else if(V==="u"&&X[H+2]==="{")H=X.indexOf("}",H+3);else H+=wy0[V]??1}}let q=Y===Q.length;if(!q)J.push(Q.slice(Y));return{nextTokens:J,leadingWhitespaces:Z,trailingWhitespaces:q}},gn=new Set([" ","\t","\r",`
107
+ `]),wy0={x:3,u:5},un=(Q,X,J)=>J||Q.length===0||X.length===0?[...Q,...X]:[...Q.slice(0,-1),`${Q.at(-1)}${X[0]}`,...X.slice(1)],mn=(Q)=>{let X=typeof Q;if(X==="string")return Q;if(X==="number")return String(Q);if(O1(Q)&&(("stdout"in Q)||("isMaxBuffer"in Q)))return Ty0(Q);if(Q instanceof Ny0||Object.prototype.toString.call(Q)==="[object Promise]")throw TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}.");throw TypeError(`Unexpected "${X}" in template expression`)},Ty0=({stdout:Q})=>{if(typeof Q==="string")return Q;if(_1(Q))return QH(Q);if(Q===void 0)throw TypeError(`Missing result.stdout in template expression. This is probably due to the previous subprocess' "stdout" option.`);throw TypeError(`Unexpected "${typeof Q}" stdout in template expression`)};import{spawnSync as ku0}from"node:child_process";import{debuglog as Ay0}from"node:util";import lL from"node:process";var N8=(Q)=>XH.includes(Q),XH=[lL.stdin,lL.stdout,lL.stderr],$8=["stdin","stdout","stderr"],JH=(Q)=>$8[Q]??`stdio[${Q}]`;var pn=(Q)=>{let X={...Q};for(let J of iL)X[J]=pL(Q,J);return X},pL=(Q,X)=>{let J=Array.from({length:Ey0(Q)+1}),Y=_y0(Q[X],J,X);return yy0(Y,X)},Ey0=({stdio:Q})=>Array.isArray(Q)?Math.max(Q.length,$8.length):$8.length,_y0=(Q,X,J)=>O1(Q)?Sy0(Q,X,J):X.fill(Q),Sy0=(Q,X,J)=>{for(let Y of Object.keys(Q).sort(vy0))for(let Z of xy0(Y,J,X))X[Z]=Q[Y];return X},vy0=(Q,X)=>ln(Q)<ln(X)?1:-1,ln=(Q)=>{if(Q==="stdout"||Q==="stderr")return 0;return Q==="all"?2:1},xy0=(Q,X,J)=>{if(Q==="ipc")return[J.length-1];let Y=nL(Q);if(Y===void 0||Y===0)throw TypeError(`"${X}.${Q}" is invalid.
108
+ It must be "${X}.stdout", "${X}.stderr", "${X}.all", "${X}.ipc", or "${X}.fd3", "${X}.fd4" (and so on).`);if(Y>=J.length)throw TypeError(`"${X}.${Q}" is invalid: that file descriptor does not exist.
109
+ Please set the "stdio" option to ensure that file descriptor exists.`);return Y==="all"?[1,2]:[Y]},nL=(Q)=>{if(Q==="all")return Q;if($8.includes(Q))return $8.indexOf(Q);let X=ky0.exec(Q);if(X!==null)return Number(X[1])},ky0=/^fd(\d+)$/,yy0=(Q,X)=>Q.map((J)=>J===void 0?by0[X]:J),hy0=Ay0("execa").enabled?"full":"none",by0={lines:!1,buffer:!0,maxBuffer:1e8,verbose:hy0,stripFinalNewline:!0},iL=["lines","buffer","maxBuffer","verbose","stripFinalNewline"],A4=(Q,X)=>X==="ipc"?Q.at(-1):Q[X];var WQ=({verbose:Q},X)=>oL(Q,X)!=="none",VQ=({verbose:Q},X)=>!["none","short"].includes(oL(Q,X)),nn=({verbose:Q},X)=>{let J=oL(Q,X);return YH(J)?J:void 0},oL=(Q,X)=>X===void 0?fy0(Q):A4(Q,X),fy0=(Q)=>Q.find((X)=>YH(X))??ZH.findLast((X)=>Q.includes(X)),YH=(Q)=>typeof Q==="function",ZH=["none","short","full"];import{inspect as $h0}from"node:util";import{platform as gy0}from"node:process";import{stripVTControlCharacters as uy0}from"node:util";var on=(Q,X)=>{let J=[Q,...X],Y=J.join(" "),Z=J.map((q)=>ny0(rn(q))).join(" ");return{command:Y,escapedCommand:Z}},GY=(Q)=>uy0(Q).split(`
110
+ `).map((X)=>rn(X)).join(`
111
+ `),rn=(Q)=>Q.replaceAll(cy0,(X)=>my0(X)),my0=(Q)=>{let X=ly0[Q];if(X!==void 0)return X;let J=Q.codePointAt(0),Y=J.toString(16);return J<=py0?`\\u${Y.padStart(4,"0")}`:`\\U${Y}`},dy0=()=>{try{return new RegExp("\\p{Separator}|\\p{Other}","gu")}catch{return/[\s\u0000-\u001F\u007F-\u009F\u00AD]/g}},cy0=dy0(),ly0={" ":" ","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},py0=65535,ny0=(Q)=>{if(iy0.test(Q))return Q;return gy0==="win32"?`"${Q.replaceAll('"','""')}"`:`'${Q.replaceAll("'","'\\''")}'`},iy0=/^[\w./-]+$/;import sn from"node:process";function rL(){let{env:Q}=sn,{TERM:X,TERM_PROGRAM:J}=Q;if(sn.platform!=="win32")return X!=="linux";return Boolean(Q.WT_SESSION)||Boolean(Q.TERMINUS_SUBLIME)||Q.ConEmuTask==="{cmd::Cmder}"||J==="Terminus-Sublime"||J==="vscode"||X==="xterm-256color"||X==="alacritty"||X==="rxvt-unicode"||X==="rxvt-unicode-256color"||Q.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var an={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},tn={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},oy0={tick:"√",info:"i",warning:"‼",cross:"×",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},ry0={...an,...tn},sy0={...an,...oy0},ay0=rL(),ty0=ay0?ry0:sy0,qH=ty0,d71=Object.entries(tn);import ey0 from"node:tty";var Qh0=ey0?.WriteStream?.prototype?.hasColors?.()??!1,Q0=(Q,X)=>{if(!Qh0)return(Z)=>Z;let J=`\x1B[${Q}m`,Y=`\x1B[${X}m`;return(Z)=>{let q=Z+"",$=q.indexOf(Y);if($===-1)return J+q+Y;let H=J,K=0,W=(X===22?Y:"")+J;while($!==-1)H+=q.slice(K,$)+W,K=$+Y.length,$=q.indexOf(Y,K);return H+=q.slice(K)+Y,H}},p71=Q0(0,0),en=Q0(1,22),n71=Q0(2,22),i71=Q0(3,23),o71=Q0(4,24),r71=Q0("4:2",24),s71=Q0("4:3",24),a71=Q0("4:4",24),t71=Q0("4:5",24),e71=Q0(53,55),Q91=Q0(7,27),X91=Q0(8,28),J91=Q0(9,29),Y91=Q0(30,39),Z91=Q0(31,39),q91=Q0(32,39),$91=Q0(33,39),H91=Q0(34,39),K91=Q0(35,39),W91=Q0(36,39),V91=Q0(37,39),$H=Q0(90,39),G91=Q0(40,49),U91=Q0(41,49),z91=Q0(42,49),B91=Q0(43,49),L91=Q0(44,49),F91=Q0(45,49),M91=Q0(46,49),I91=Q0(47,49),P91=Q0(100,49),Qi=Q0(91,39),C91=Q0(92,39),Xi=Q0(93,39),O91=Q0(94,39),j91=Q0(95,39),N91=Q0(96,39),R91=Q0(97,39),D91=Q0(101,49),w91=Q0(102,49),T91=Q0(103,49),A91=Q0(104,49),E91=Q0(105,49),_91=Q0(106,49),S91=Q0(107,49),v91=Q0("58;5;0",59),x91=Q0("58;5;1",59),k91=Q0("58;5;2",59),y91=Q0("58;5;3",59),h91=Q0("58;5;4",59),b91=Q0("58;5;5",59),f91=Q0("58;5;6",59),g91=Q0("58;5;7",59),u91=Q0("58;5;8",59),m91=Q0("58;5;9",59),d91=Q0("58;5;10",59),c91=Q0("58;5;11",59),l91=Q0("58;5;12",59),p91=Q0("58;5;13",59),n91=Q0("58;5;14",59),i91=Q0("58;5;15",59);var Zi=({type:Q,message:X,timestamp:J,piped:Y,commandId:Z,result:{failed:q=!1}={},options:{reject:$=!0}})=>{let H=Xh0(J),K=Jh0[Q]({failed:q,reject:$,piped:Y}),V=Yh0[Q]({reject:$});return`${$H(`[${H}]`)} ${$H(`[${Z}]`)} ${V(K)} ${V(X)}`},Xh0=(Q)=>`${HH(Q.getHours(),2)}:${HH(Q.getMinutes(),2)}:${HH(Q.getSeconds(),2)}.${HH(Q.getMilliseconds(),3)}`,HH=(Q,X)=>String(Q).padStart(X,"0"),Ji=({failed:Q,reject:X})=>{if(!Q)return qH.tick;return X?qH.cross:qH.warning},Jh0={command:({piped:Q})=>Q?"|":"$",output:()=>" ",ipc:()=>"*",error:Ji,duration:Ji},Yi=(Q)=>Q,Yh0={command:()=>en,output:()=>Yi,ipc:()=>Yi,error:({reject:Q})=>Q?Qi:Xi,duration:()=>$H};var qi=(Q,X,J)=>{let Y=nn(X,J);return Q.map(({verboseLine:Z,verboseObject:q})=>Zh0(Z,q,Y)).filter((Z)=>Z!==void 0).map((Z)=>qh0(Z)).join("")},Zh0=(Q,X,J)=>{if(J===void 0)return Q;let Y=J(Q,X);if(typeof Y==="string")return Y},qh0=(Q)=>Q.endsWith(`
112
+ `)?Q:`${Q}
113
+ `;var s8=({type:Q,verboseMessage:X,fdNumber:J,verboseInfo:Y,result:Z})=>{let q=Hh0({type:Q,result:Z,verboseInfo:Y}),$=Kh0(X,q),H=qi($,Y,J);if(H!=="")console.warn(H.slice(0,-1))},Hh0=({type:Q,result:X,verboseInfo:{escapedCommand:J,commandId:Y,rawOptions:{piped:Z=!1,...q}}})=>({type:Q,escapedCommand:J,commandId:`${Y}`,timestamp:new Date,piped:Z,result:X,options:q}),Kh0=(Q,X)=>Q.split(`
114
+ `).map((J)=>Wh0({...X,message:J})),Wh0=(Q)=>{return{verboseLine:Zi(Q),verboseObject:Q}},KH=(Q)=>{let X=typeof Q==="string"?Q:$h0(Q);return GY(X).replaceAll("\t"," ".repeat(Vh0))},Vh0=2;var $i=(Q,X)=>{if(!WQ(X))return;s8({type:"command",verboseMessage:Q,verboseInfo:X})};var Hi=(Q,X,J)=>{zh0(Q);let Y=Gh0(Q);return{verbose:Q,escapedCommand:X,commandId:Y,rawOptions:J}},Gh0=(Q)=>WQ({verbose:Q})?Uh0++:void 0,Uh0=0n,zh0=(Q)=>{for(let X of Q){if(X===!1)throw TypeError(`The "verbose: false" option was renamed to "verbose: 'none'".`);if(X===!0)throw TypeError(`The "verbose: true" option was renamed to "verbose: 'short'".`);if(!ZH.includes(X)&&!YH(X)){let J=ZH.map((Y)=>`'${Y}'`).join(", ");throw TypeError(`The "verbose" option must not be ${X}. Allowed values are: ${J} or a function.`)}}};import{hrtime as Ki}from"node:process";var WH=()=>Ki.bigint(),sL=(Q)=>Number(Ki.bigint()-Q)/1e6;var VH=(Q,X,J)=>{let Y=WH(),{command:Z,escapedCommand:q}=on(Q,X),$=pL(J,"verbose"),H=Hi($,q,{...J});return $i(q,H),{command:Z,escapedCommand:q,startTime:Y,verboseInfo:H}};var Hr=H1(si(),1);import eb0 from"node:path";import $r from"node:process";import BH from"node:process";import C7 from"node:path";function UH(Q={}){let{env:X=process.env,platform:J=process.platform}=Q;if(J!=="win32")return"PATH";return Object.keys(X).reverse().find((Y)=>Y.toUpperCase()==="PATH")||"Path"}import{promisify as ch0}from"node:util";import{execFile as lh0,execFileSync as kQ1}from"node:child_process";import ai from"node:path";import{fileURLToPath as ph0}from"node:url";var bQ1=ch0(lh0);function zH(Q){return Q instanceof URL?ph0(Q):Q}function ti(Q){return{*[Symbol.iterator](){let X=ai.resolve(zH(Q)),J;while(J!==X)yield X,J=X,X=ai.resolve(X,"..")}}}var nh0=({cwd:Q=BH.cwd(),path:X=BH.env[UH()],preferLocal:J=!0,execPath:Y=BH.execPath,addExecPath:Z=!0}={})=>{let q=C7.resolve(zH(Q)),$=[],H=X.split(C7.delimiter);if(J)ih0($,H,q);if(Z)oh0($,H,Y,q);return X===""||X===C7.delimiter?`${$.join(C7.delimiter)}${X}`:[...$,X].join(C7.delimiter)},ih0=(Q,X,J)=>{for(let Y of ti(J)){let Z=C7.join(Y,"node_modules/.bin");if(!X.includes(Z))Q.push(Z)}},oh0=(Q,X,J,Y)=>{let Z=C7.resolve(Y,zH(J),"..");if(!X.includes(Z))Q.push(Z)},ei=({env:Q=BH.env,...X}={})=>{Q={...Q};let J=UH({env:Q});return X.path=Q[J],Q[J]=nh0(X),Q};import{setTimeout as Wb0}from"node:timers/promises";var Qo=(Q,X,J)=>{let Y=J?FH:LH,Z=Q instanceof a8?{}:{cause:Q};return new Y(X,Z)};class a8 extends Error{}var Xo=(Q,X)=>{Object.defineProperty(Q.prototype,"name",{value:X,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,Yo,{value:!0,writable:!1,enumerable:!1,configurable:!1})},Jo=(Q)=>MH(Q)&&(Yo in Q),Yo=Symbol("isExecaError"),MH=(Q)=>Object.prototype.toString.call(Q)==="[object Error]";class LH extends Error{}Xo(LH,LH.name);class FH extends Error{}Xo(FH,FH.name);import{constants as UY}from"node:os";import{constants as th0}from"node:os";var Zo=()=>{let Q=$F-qo+1;return Array.from({length:Q},rh0)},rh0=(Q,X)=>({name:`SIGRT${X+1}`,number:qo+X,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),qo=34,$F=64;import{constants as sh0}from"node:os";var $o=[{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"}];var HF=()=>{let Q=Zo();return[...$o,...Q].map(ah0)},ah0=({name:Q,number:X,description:J,action:Y,forced:Z=!1,standard:q})=>{let{signals:{[Q]:$}}=sh0,H=$!==void 0;return{name:Q,number:H?$:X,description:J,supported:H,action:Y,forced:Z,standard:q}};var eh0=()=>{let Q=HF();return Object.fromEntries(Q.map(Qb0))},Qb0=({name:Q,number:X,description:J,supported:Y,action:Z,forced:q,standard:$})=>[Q,{name:Q,number:X,description:J,supported:Y,action:Z,forced:q,standard:$}],Ho=eh0(),Xb0=()=>{let Q=HF(),X=$F+1,J=Array.from({length:X},(Y,Z)=>Jb0(Z,Q));return Object.assign({},...J)},Jb0=(Q,X)=>{let J=Yb0(Q,X);if(J===void 0)return{};let{name:Y,description:Z,supported:q,action:$,forced:H,standard:K}=J;return{[Q]:{name:Y,number:Q,description:Z,supported:q,action:$,forced:H,standard:K}}},Yb0=(Q,X)=>{let J=X.find(({name:Y})=>th0.signals[Y]===Q);if(J!==void 0)return J;return X.find((Y)=>Y.number===Q)},XX1=Xb0();var Wo=(Q)=>{if(Q===0)throw TypeError("Invalid option `killSignal`: 0 cannot be used.");return Go(Q,"option `killSignal`")},Vo=(Q)=>Q===0?Q:Go(Q,"`subprocess.kill()`'s argument"),Go=(Q,X)=>{if(Number.isInteger(Q))return Zb0(Q,X);if(typeof Q==="string")return $b0(Q,X);throw TypeError(`Invalid ${X} ${String(Q)}: it must be a string or an integer.
115
+ ${KF()}`)},Zb0=(Q,X)=>{if(Ko.has(Q))return Ko.get(Q);throw TypeError(`Invalid ${X} ${Q}: this signal integer does not exist.
116
+ ${KF()}`)},qb0=()=>new Map(Object.entries(UY.signals).reverse().map(([Q,X])=>[X,Q])),Ko=qb0(),$b0=(Q,X)=>{if(Q in UY.signals)return Q;if(Q.toUpperCase()in UY.signals)throw TypeError(`Invalid ${X} '${Q}': please rename it to '${Q.toUpperCase()}'.`);throw TypeError(`Invalid ${X} '${Q}': this signal name does not exist.
117
+ ${KF()}`)},KF=()=>`Available signal names: ${Hb0()}.
118
+ Available signal numbers: ${Kb0()}.`,Hb0=()=>Object.keys(UY.signals).sort().map((Q)=>`'${Q}'`).join(", "),Kb0=()=>[...new Set(Object.values(UY.signals).sort((Q,X)=>Q-X))].join(", "),IH=(Q)=>Ho[Q].description;var Uo=(Q)=>{if(Q===!1)return Q;if(Q===!0)return Vb0;if(!Number.isFinite(Q)||Q<0)throw TypeError(`Expected the \`forceKillAfterDelay\` option to be a non-negative integer, got \`${Q}\` (${typeof Q})`);return Q},Vb0=5000,zo=({kill:Q,options:{forceKillAfterDelay:X,killSignal:J},onInternalError:Y,context:Z,controller:q},$,H)=>{let{signal:K,error:V}=Gb0($,H,J);Ub0(V,Y);let W=Q(K);return zb0({kill:Q,signal:K,forceKillAfterDelay:X,killSignal:J,killResult:W,context:Z,controller:q}),W},Gb0=(Q,X,J)=>{let[Y=J,Z]=MH(Q)?[void 0,Q]:[Q,X];if(typeof Y!=="string"&&!Number.isInteger(Y))throw TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(Y)}`);if(Z!==void 0&&!MH(Z))throw TypeError(`The second argument is optional. If specified, it must be an error instance: ${Z}`);return{signal:Vo(Y),error:Z}},Ub0=(Q,X)=>{if(Q!==void 0)X.reject(Q)},zb0=async({kill:Q,signal:X,forceKillAfterDelay:J,killSignal:Y,killResult:Z,context:q,controller:$})=>{if(X===Y&&Z)WF({kill:Q,forceKillAfterDelay:J,context:q,controllerSignal:$.signal})},WF=async({kill:Q,forceKillAfterDelay:X,context:J,controllerSignal:Y})=>{if(X===!1)return;try{if(await Wb0(X,void 0,{signal:Y}),Q("SIGKILL"))J.isForcefullyTerminated??=!0}catch{}};import{once as Bb0}from"node:events";var PH=async(Q,X)=>{if(!Q.aborted)await Bb0(Q,"abort",{signal:X})};var Bo=({cancelSignal:Q})=>{if(Q!==void 0&&Object.prototype.toString.call(Q)!=="[object AbortSignal]")throw Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(Q)}`)},Lo=({subprocess:Q,cancelSignal:X,gracefulCancel:J,context:Y,controller:Z})=>X===void 0||J?[]:[Lb0(Q,X,Y,Z)],Lb0=async(Q,X,J,{signal:Y})=>{throw await PH(X,Y),J.terminationReason??="cancel",Q.kill(),X.reason};import{scheduler as hb0}from"node:timers/promises";import{promisify as xb0}from"node:util";var zQ=({methodName:Q,isSubprocess:X,ipc:J,isConnected:Y})=>{Fb0(Q,X,J),VF(Q,X,Y)},Fb0=(Q,X,J)=>{if(!J)throw Error(`${R8(Q,X)} can only be used if the \`ipc\` option is \`true\`.`)},VF=(Q,X,J)=>{if(!J)throw Error(`${R8(Q,X)} cannot be used: the ${z5(X)} has already exited or disconnected.`)},Fo=(Q)=>{throw Error(`${R8("getOneMessage",Q)} could not complete: the ${z5(Q)} exited or disconnected.`)},Mo=(Q)=>{throw Error(`${R8("sendMessage",Q)} failed: the ${z5(Q)} is sending a message too, instead of listening to incoming messages.
119
+ This can be fixed by both sending a message and listening to incoming messages at the same time:
120
+
121
+ const [receivedMessage] = await Promise.all([
122
+ ${R8("getOneMessage",Q)},
123
+ ${R8("sendMessage",Q,"message, {strict: true}")},
124
+ ]);`)},CH=(Q,X)=>Error(`${R8("sendMessage",X)} failed when sending an acknowledgment response to the ${z5(X)}.`,{cause:Q}),Io=(Q)=>{throw Error(`${R8("sendMessage",Q)} failed: the ${z5(Q)} is not listening to incoming messages.`)},Po=(Q)=>{throw Error(`${R8("sendMessage",Q)} failed: the ${z5(Q)} exited without listening to incoming messages.`)},Co=()=>Error(`\`cancelSignal\` aborted: the ${z5(!0)} disconnected.`),Oo=()=>{throw Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")},jo=({error:Q,methodName:X,isSubprocess:J})=>{if(Q.code==="EPIPE")throw Error(`${R8(X,J)} cannot be used: the ${z5(J)} is disconnecting.`,{cause:Q})},No=({error:Q,methodName:X,isSubprocess:J,message:Y})=>{if(Mb0(Q))throw Error(`${R8(X,J)}'s argument type is invalid: the message cannot be serialized: ${String(Y)}.`,{cause:Q})},Mb0=({code:Q,message:X})=>Ib0.has(Q)||Pb0.some((J)=>X.includes(J)),Ib0=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]),Pb0=["could not be cloned","circular structure","call stack size exceeded"],R8=(Q,X,J="")=>Q==="cancelSignal"?"`cancelSignal`'s `controller.abort()`":`${Cb0(X)}${Q}(${J})`,Cb0=(Q)=>Q?"":"subprocess.",z5=(Q)=>Q?"parent process":"subprocess",BQ=(Q)=>{if(Q.connected)Q.disconnect()};var t8=()=>{let Q={},X=new Promise((J,Y)=>{Object.assign(Q,{resolve:J,reject:Y})});return Object.assign(X,Q)};var jH=(Q,X="stdin")=>{let{options:Y,fileDescriptors:Z}=e8.get(Q),q=Ro(Z,X,!0),$=Q.stdio[q];if($===null)throw TypeError(Do(q,X,Y,!0));return $},LQ=(Q,X="stdout")=>{let{options:Y,fileDescriptors:Z}=e8.get(Q),q=Ro(Z,X,!1),$=q==="all"?Q.all:Q.stdio[q];if($===null||$===void 0)throw TypeError(Do(q,X,Y,!1));return $},e8=new WeakMap,Ro=(Q,X,J)=>{let Y=Ob0(X,J);return jb0(Y,X,J,Q),Y},Ob0=(Q,X)=>{let J=nL(Q);if(J!==void 0)return J;let{validOptions:Y,defaultValue:Z}=X?{validOptions:'"stdin"',defaultValue:"stdin"}:{validOptions:'"stdout", "stderr", "all"',defaultValue:"stdout"};throw TypeError(`"${zY(X)}" must not be "${Q}".
125
+ It must be ${Y} or "fd3", "fd4" (and so on).
126
+ It is optional and defaults to "${Z}".`)},jb0=(Q,X,J,Y)=>{let Z=Y[wo(Q)];if(Z===void 0)throw TypeError(`"${zY(J)}" must not be ${X}. That file descriptor does not exist.
127
+ Please set the "stdio" option to ensure that file descriptor exists.`);if(Z.direction==="input"&&!J)throw TypeError(`"${zY(J)}" must not be ${X}. It must be a readable stream, not writable.`);if(Z.direction!=="input"&&J)throw TypeError(`"${zY(J)}" must not be ${X}. It must be a writable stream, not readable.`)},Do=(Q,X,J,Y)=>{if(Q==="all"&&!J.all)return`The "all" option must be true to use "from: 'all'".`;let{optionName:Z,optionValue:q}=Nb0(Q,J);return`The "${Z}: ${OH(q)}" option is incompatible with using "${zY(Y)}: ${OH(X)}".
128
+ Please set this option with "pipe" instead.`},Nb0=(Q,{stdin:X,stdout:J,stderr:Y,stdio:Z})=>{let q=wo(Q);if(q===0&&X!==void 0)return{optionName:"stdin",optionValue:X};if(q===1&&J!==void 0)return{optionName:"stdout",optionValue:J};if(q===2&&Y!==void 0)return{optionName:"stderr",optionValue:Y};return{optionName:`stdio[${q}]`,optionValue:Z[q]}},wo=(Q)=>Q==="all"?1:Q,zY=(Q)=>Q?"to":"from",OH=(Q)=>{if(typeof Q==="string")return`'${Q}'`;return typeof Q==="number"?`${Q}`:"Stream"};import{once as Eb0}from"node:events";import{addAbortListener as Rb0}from"node:events";var O7=(Q,X,J)=>{let Y=Q.getMaxListeners();if(Y===0||Y===Number.POSITIVE_INFINITY)return;Q.setMaxListeners(Y+X),Rb0(J,()=>{Q.setMaxListeners(Q.getMaxListeners()-X)})};import{EventEmitter as Tb0}from"node:events";import{once as Db0}from"node:events";import{scheduler as wb0}from"node:timers/promises";var NH=(Q,X)=>{if(X)GF(Q)},GF=(Q)=>{Q.refCounted()},RH=(Q,X)=>{if(X)UF(Q)},UF=(Q)=>{Q.unrefCounted()},To=(Q,X)=>{if(X)UF(Q),UF(Q)},Ao=(Q,X)=>{if(X)GF(Q),GF(Q)};var Eo=async({anyProcess:Q,channel:X,isSubprocess:J,ipcEmitter:Y},Z)=>{if(vo(Z)||ko(Z))return;if(!DH.has(Q))DH.set(Q,[]);let q=DH.get(Q);if(q.push(Z),q.length>1)return;while(q.length>0){await xo(Q,Y,Z),await wb0.yield();let $=await So({wrappedMessage:q[0],anyProcess:Q,channel:X,isSubprocess:J,ipcEmitter:Y});q.shift(),Y.emit("message",$),Y.emit("message:done")}},_o=async({anyProcess:Q,channel:X,isSubprocess:J,ipcEmitter:Y,boundOnMessage:Z})=>{zF();let q=DH.get(Q);while(q?.length>0)await Db0(Y,"message:done");Q.removeListener("message",Z),Ao(X,J),Y.connected=!1,Y.emit("disconnect")},DH=new WeakMap;var B5=(Q,X,J)=>{if(wH.has(Q))return wH.get(Q);let Y=new Tb0;return Y.connected=!0,wH.set(Q,Y),Ab0({ipcEmitter:Y,anyProcess:Q,channel:X,isSubprocess:J}),Y},wH=new WeakMap,Ab0=({ipcEmitter:Q,anyProcess:X,channel:J,isSubprocess:Y})=>{let Z=Eo.bind(void 0,{anyProcess:X,channel:J,isSubprocess:Y,ipcEmitter:Q});X.on("message",Z),X.once("disconnect",_o.bind(void 0,{anyProcess:X,channel:J,isSubprocess:Y,ipcEmitter:Q,boundOnMessage:Z})),To(J,Y)},TH=(Q)=>{let X=wH.get(Q);return X===void 0?Q.channel!==null:X.connected};var yo=({anyProcess:Q,channel:X,isSubprocess:J,message:Y,strict:Z})=>{if(!Z)return Y;let q=B5(Q,X,J),$=_H(Q,q);return{id:_b0++,type:EH,message:Y,hasListeners:$}},_b0=0n,ho=(Q,X)=>{if(X?.type!==EH||X.hasListeners)return;for(let{id:J}of Q)if(J!==void 0)AH[J].resolve({isDeadlock:!0,hasListeners:!1})},So=async({wrappedMessage:Q,anyProcess:X,channel:J,isSubprocess:Y,ipcEmitter:Z})=>{if(Q?.type!==EH||!X.connected)return Q;let{id:q,message:$}=Q,H={id:q,type:fo,message:_H(X,Z)};try{await SH({anyProcess:X,channel:J,isSubprocess:Y,ipc:!0},H)}catch(K){Z.emit("strict:error",K)}return $},vo=(Q)=>{if(Q?.type!==fo)return!1;let{id:X,message:J}=Q;return AH[X]?.resolve({isDeadlock:!1,hasListeners:J}),!0},bo=async(Q,X,J)=>{if(Q?.type!==EH)return;let Y=t8();AH[Q.id]=Y;let Z=new AbortController;try{let{isDeadlock:q,hasListeners:$}=await Promise.race([Y,Sb0(X,J,Z)]);if(q)Mo(J);if(!$)Io(J)}finally{Z.abort(),delete AH[Q.id]}},AH={},Sb0=async(Q,X,{signal:J})=>{O7(Q,1,J),await Eb0(Q,"disconnect",{signal:J}),Po(X)},EH="execa:ipc:request",fo="execa:ipc:response";var go=(Q,X,J)=>{if(!BY.has(Q))BY.set(Q,new Set);let Y=BY.get(Q),Z=t8(),q=J?X.id:void 0,$={onMessageSent:Z,id:q};return Y.add($),{outgoingMessages:Y,outgoingMessage:$}},uo=({outgoingMessages:Q,outgoingMessage:X})=>{Q.delete(X),X.onMessageSent.resolve()},xo=async(Q,X,J)=>{while(!_H(Q,X)&&BY.get(Q)?.size>0){let Y=[...BY.get(Q)];ho(Y,J),await Promise.all(Y.map(({onMessageSent:Z})=>Z))}},BY=new WeakMap,_H=(Q,X)=>X.listenerCount("message")>vb0(Q),vb0=(Q)=>e8.has(Q)&&!A4(e8.get(Q).options.buffer,"ipc")?1:0;var SH=({anyProcess:Q,channel:X,isSubprocess:J,ipc:Y},Z,{strict:q=!1}={})=>{return zQ({methodName:"sendMessage",isSubprocess:J,ipc:Y,isConnected:Q.connected}),kb0({anyProcess:Q,channel:X,methodName:"sendMessage",isSubprocess:J,message:Z,strict:q})},kb0=async({anyProcess:Q,channel:X,methodName:J,isSubprocess:Y,message:Z,strict:q})=>{let $=yo({anyProcess:Q,channel:X,isSubprocess:Y,message:Z,strict:q}),H=go(Q,$,q);try{await LF({anyProcess:Q,methodName:J,isSubprocess:Y,wrappedMessage:$,message:Z})}catch(K){throw BQ(Q),K}finally{uo(H)}},LF=async({anyProcess:Q,methodName:X,isSubprocess:J,wrappedMessage:Y,message:Z})=>{let q=yb0(Q);try{await Promise.all([bo(Y,Q,J),q(Y)])}catch($){throw jo({error:$,methodName:X,isSubprocess:J}),No({error:$,methodName:X,isSubprocess:J,message:Z}),$}},yb0=(Q)=>{if(BF.has(Q))return BF.get(Q);let X=xb0(Q.send.bind(Q));return BF.set(Q,X),X},BF=new WeakMap;var co=(Q,X)=>{return VF("cancelSignal",!1,Q.connected),LF({anyProcess:Q,methodName:"cancelSignal",isSubprocess:!1,wrappedMessage:{type:po,message:X},message:X})},lo=async({anyProcess:Q,channel:X,isSubprocess:J,ipc:Y})=>{return await bb0({anyProcess:Q,channel:X,isSubprocess:J,ipc:Y}),FF.signal},bb0=async({anyProcess:Q,channel:X,isSubprocess:J,ipc:Y})=>{if(mo)return;if(mo=!0,!Y){Oo();return}if(X===null){zF();return}B5(Q,X,J),await hb0.yield()},mo=!1,ko=(Q)=>{if(Q?.type!==po)return!1;return FF.abort(Q.message),!0},po="execa:ipc:cancel",zF=()=>{FF.abort(Co())},FF=new AbortController;var no=({gracefulCancel:Q,cancelSignal:X,ipc:J,serialization:Y})=>{if(!Q)return;if(X===void 0)throw Error("The `cancelSignal` option must be defined when setting the `gracefulCancel` option.");if(!J)throw Error("The `ipc` option cannot be false when setting the `gracefulCancel` option.");if(Y==="json")throw Error("The `serialization` option cannot be 'json' when setting the `gracefulCancel` option.")},io=({subprocess:Q,cancelSignal:X,gracefulCancel:J,forceKillAfterDelay:Y,context:Z,controller:q})=>J?[fb0({subprocess:Q,cancelSignal:X,forceKillAfterDelay:Y,context:Z,controller:q})]:[],fb0=async({subprocess:Q,cancelSignal:X,forceKillAfterDelay:J,context:Y,controller:{signal:Z}})=>{await PH(X,Z);let q=gb0(X);throw await co(Q,q),WF({kill:Q.kill,forceKillAfterDelay:J,context:Y,controllerSignal:Z}),Y.terminationReason??="gracefulCancel",X.reason},gb0=({reason:Q})=>{if(!(Q instanceof DOMException))return Q;let X=Error(Q.message);return Object.defineProperty(X,"stack",{value:Q.stack,enumerable:!1,configurable:!0,writable:!0}),X};import{setTimeout as ub0}from"node:timers/promises";var oo=({timeout:Q})=>{if(Q!==void 0&&(!Number.isFinite(Q)||Q<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${Q}\` (${typeof Q})`)},ro=(Q,X,J,Y)=>X===0||X===void 0?[]:[mb0(Q,X,J,Y)],mb0=async(Q,X,J,{signal:Y})=>{throw await ub0(X,void 0,{signal:Y}),J.terminationReason??="timeout",Q.kill(),new a8};import{execPath as db0,execArgv as cb0}from"node:process";import so from"node:path";var ao=({options:Q})=>{if(Q.node===!1)throw TypeError('The "node" option cannot be false with `execaNode()`.');return{options:{...Q,node:!0}}},to=(Q,X,{node:J=!1,nodePath:Y=db0,nodeOptions:Z=cb0.filter((K)=>!K.startsWith("--inspect")),cwd:q,execPath:$,...H})=>{if($!==void 0)throw TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.');let K=KQ(Y,'The "nodePath" option'),V=so.resolve(q,K),W={...H,nodePath:V,node:J,cwd:q};if(!J)return[Q,X,W];if(so.basename(Q,".exe")==="node")throw TypeError('When the "node" option is true, the first argument does not need to be "node".');return[V,[...Z,Q,...X],{ipc:!0,...W,shell:!1}]};import{serialize as lb0}from"node:v8";var eo=({ipcInput:Q,ipc:X,serialization:J})=>{if(Q===void 0)return;if(!X)throw Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.");ib0[J](Q)},pb0=(Q)=>{try{lb0(Q)}catch(X){throw Error("The `ipcInput` option is not serializable with a structured clone.",{cause:X})}},nb0=(Q)=>{try{JSON.stringify(Q)}catch(X){throw Error("The `ipcInput` option is not serializable with JSON.",{cause:X})}},ib0={advanced:pb0,json:nb0},Qr=async(Q,X)=>{if(X===void 0)return;await Q.sendMessage(X)};var Jr=({encoding:Q})=>{if(MF.has(Q))return;let X=rb0(Q);if(X!==void 0)throw TypeError(`Invalid option \`encoding: ${vH(Q)}\`.
129
+ Please rename it to ${vH(X)}.`);let J=[...MF].map((Y)=>vH(Y)).join(", ");throw TypeError(`Invalid option \`encoding: ${vH(Q)}\`.
130
+ Please rename it to one of: ${J}.`)},ob0=new Set(["utf8","utf16le"]),h6=new Set(["buffer","hex","base64","base64url","latin1","ascii"]),MF=new Set([...ob0,...h6]),rb0=(Q)=>{if(Q===null)return"buffer";if(typeof Q!=="string")return;let X=Q.toLowerCase();if(X in Xr)return Xr[X];if(MF.has(X))return X},Xr={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"},vH=(Q)=>typeof Q==="string"?`"${Q}"`:String(Q);import{statSync as sb0}from"node:fs";import ab0 from"node:path";import tb0 from"node:process";var Yr=(Q=Zr())=>{let X=KQ(Q,'The "cwd" option');return ab0.resolve(X)},Zr=()=>{try{return tb0.cwd()}catch(Q){throw Q.message=`The current directory does not exist.
131
+ ${Q.message}`,Q}},qr=(Q,X)=>{if(X===Zr())return Q;let J;try{J=sb0(X)}catch(Y){return`The "cwd" option is invalid: ${X}.
132
+ ${Y.message}
133
+ ${Q}`}if(!J.isDirectory())return`The "cwd" option is not a directory: ${X}.
134
+ ${Q}`;return Q};var xH=(Q,X,J)=>{J.cwd=Yr(J.cwd);let[Y,Z,q]=to(Q,X,J),{command:$,args:H,options:K}=Hr.default._parse(Y,Z,q),V=pn(K),W=Qf0(V);if(oo(W),Jr(W),eo(W),Bo(W),no(W),W.shell=dL(W.shell),W.env=Xf0(W),W.killSignal=Wo(W.killSignal),W.forceKillAfterDelay=Uo(W.forceKillAfterDelay),W.lines=W.lines.map((G,U)=>G&&!h6.has(W.encoding)&&W.buffer[U]),$r.platform==="win32"&&eb0.basename($,".exe")==="cmd")H.unshift("/q");return{file:$,commandArguments:H,options:W}},Qf0=({extendEnv:Q=!0,preferLocal:X=!1,cwd:J,localDir:Y=J,encoding:Z="utf8",reject:q=!0,cleanup:$=!0,all:H=!1,windowsHide:K=!0,killSignal:V="SIGTERM",forceKillAfterDelay:W=!0,gracefulCancel:G=!1,ipcInput:U,ipc:z=U!==void 0||G,serialization:L="advanced",...B})=>({...B,extendEnv:Q,preferLocal:X,cwd:J,localDirectory:Y,encoding:Z,reject:q,cleanup:$,all:H,windowsHide:K,killSignal:V,forceKillAfterDelay:W,gracefulCancel:G,ipcInput:U,ipc:z,serialization:L}),Xf0=({env:Q,extendEnv:X,preferLocal:J,node:Y,localDirectory:Z,nodePath:q})=>{let $=X?{...$r.env,...Q}:Q;if(J||Y)return ei({env:$,cwd:Z,execPath:q,preferLocal:J,addExecPath:Y});return $};var kH=(Q,X,J)=>J.shell&&X.length>0?[[Q,...X].join(" "),[],J]:[Q,X,J];import{inspect as yf0}from"node:util";function FQ(Q){if(typeof Q==="string")return Jf0(Q);if(!(ArrayBuffer.isView(Q)&&Q.BYTES_PER_ELEMENT===1))throw Error("Input must be a string or a Uint8Array");return Yf0(Q)}var Jf0=(Q)=>Q.at(-1)===Kr?Q.slice(0,Q.at(-2)===Wr?-2:-1):Q,Yf0=(Q)=>Q.at(-1)===Zf0?Q.subarray(0,Q.at(-2)===qf0?-2:-1):Q,Kr=`
135
+ `,Zf0=Kr.codePointAt(0),Wr="\r",qf0=Wr.codePointAt(0);import{on as Sf0}from"node:events";import{finished as vf0}from"node:stream/promises";function D8(Q,{checkOpen:X=!0}={}){return Q!==null&&typeof Q==="object"&&(Q.writable||Q.readable||!X||Q.writable===void 0&&Q.readable===void 0)&&typeof Q.pipe==="function"}function IF(Q,{checkOpen:X=!0}={}){return D8(Q,{checkOpen:X})&&(Q.writable||!X)&&typeof Q.write==="function"&&typeof Q.end==="function"&&typeof Q.writable==="boolean"&&typeof Q.writableObjectMode==="boolean"&&typeof Q.destroy==="function"&&typeof Q.destroyed==="boolean"}function j7(Q,{checkOpen:X=!0}={}){return D8(Q,{checkOpen:X})&&(Q.readable||!X)&&typeof Q.read==="function"&&typeof Q.readable==="boolean"&&typeof Q.readableObjectMode==="boolean"&&typeof Q.destroy==="function"&&typeof Q.destroyed==="boolean"}function PF(Q,X){return IF(Q,X)&&j7(Q,X)}var $f0=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);class Vr{#X;#Y;#J=!1;#Q=void 0;constructor(Q,X){this.#X=Q,this.#Y=X}next(){let Q=()=>this.#Z();return this.#Q=this.#Q?this.#Q.then(Q,Q):Q(),this.#Q}return(Q){let X=()=>this.#V(Q);return this.#Q?this.#Q.then(X,X):X()}async#Z(){if(this.#J)return{done:!0,value:void 0};let Q;try{Q=await this.#X.read()}catch(X){throw this.#Q=void 0,this.#J=!0,this.#X.releaseLock(),X}return Q.done&&(this.#Q=void 0,this.#J=!0,this.#X.releaseLock()),Q}async#V(Q){if(this.#J)return{done:!0,value:Q};if(this.#J=!0,!this.#Y){let X=this.#X.cancel(Q);return this.#X.releaseLock(),await X,{done:!0,value:Q}}return this.#X.releaseLock(),{done:!0,value:Q}}}var CF=Symbol();function Gr(){return this[CF].next()}Object.defineProperty(Gr,"name",{value:"next"});function Ur(Q){return this[CF].return(Q)}Object.defineProperty(Ur,"name",{value:"return"});var Hf0=Object.create($f0,{next:{enumerable:!0,configurable:!0,writable:!0,value:Gr},return:{enumerable:!0,configurable:!0,writable:!0,value:Ur}});function OF({preventCancel:Q=!1}={}){let X=this.getReader(),J=new Vr(X,Q),Y=Object.create(Hf0);return Y[CF]=J,Y}var zr=(Q)=>{if(j7(Q,{checkOpen:!1})&&LY.on!==void 0)return Wf0(Q);if(typeof Q?.[Symbol.asyncIterator]==="function")return Q;if(Kf0.call(Q)==="[object ReadableStream]")return OF.call(Q);throw TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:Kf0}=Object.prototype,Wf0=async function*(Q){let X=new AbortController,J={};Vf0(Q,X,J);try{for await(let[Y]of LY.on(Q,"data",{signal:X.signal}))yield Y}catch(Y){if(J.error!==void 0)throw J.error;else if(!X.signal.aborted)throw Y}finally{Q.destroy()}},Vf0=async(Q,X,J)=>{try{await LY.finished(Q,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(Y){J.error=Y}finally{X.abort()}},LY={};var MQ=async(Q,{init:X,convertChunk:J,getSize:Y,truncateChunk:Z,addChunk:q,getFinalChunk:$,finalize:H},{maxBuffer:K=Number.POSITIVE_INFINITY}={})=>{let V=zr(Q),W=X();W.length=0;try{for await(let G of V){let U=Uf0(G),z=J[U](G,W);Fr({convertedChunk:z,state:W,getSize:Y,truncateChunk:Z,addChunk:q,maxBuffer:K})}return Gf0({state:W,convertChunk:J,getSize:Y,truncateChunk:Z,addChunk:q,getFinalChunk:$,maxBuffer:K}),H(W)}catch(G){let U=typeof G==="object"&&G!==null?G:Error(G);throw U.bufferedData=H(W),U}},Gf0=({state:Q,getSize:X,truncateChunk:J,addChunk:Y,getFinalChunk:Z,maxBuffer:q})=>{let $=Z(Q);if($!==void 0)Fr({convertedChunk:$,state:Q,getSize:X,truncateChunk:J,addChunk:Y,maxBuffer:q})},Fr=({convertedChunk:Q,state:X,getSize:J,truncateChunk:Y,addChunk:Z,maxBuffer:q})=>{let $=J(Q),H=X.length+$;if(H<=q){Br(Q,X,Z,H);return}let K=Y(Q,q-X.length);if(K!==void 0)Br(K,X,Z,q);throw new E4},Br=(Q,X,J,Y)=>{X.contents=J(Q,X,Y),X.length=Y},Uf0=(Q)=>{let X=typeof Q;if(X==="string")return"string";if(X!=="object"||Q===null)return"others";if(globalThis.Buffer?.isBuffer(Q))return"buffer";let J=Lr.call(Q);if(J==="[object ArrayBuffer]")return"arrayBuffer";if(J==="[object DataView]")return"dataView";if(Number.isInteger(Q.byteLength)&&Number.isInteger(Q.byteOffset)&&Lr.call(Q.buffer)==="[object ArrayBuffer]")return"typedArray";return"others"},{toString:Lr}=Object.prototype;class E4 extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}var _4=(Q)=>Q,FY=()=>{return},yH=({contents:Q})=>Q,hH=(Q)=>{throw Error(`Streams in object mode are not supported: ${String(Q)}`)},bH=(Q)=>Q.length;async function fH(Q,X){return MQ(Q,Ff0,X)}var zf0=()=>({contents:[]}),Bf0=()=>1,Lf0=(Q,{contents:X})=>{return X.push(Q),X},Ff0={init:zf0,convertChunk:{string:_4,buffer:_4,arrayBuffer:_4,dataView:_4,typedArray:_4,others:_4},getSize:Bf0,truncateChunk:FY,addChunk:Lf0,getFinalChunk:FY,finalize:yH};async function gH(Q,X){return MQ(Q,Df0,X)}var Mf0=()=>({contents:new ArrayBuffer(0)}),If0=(Q)=>Pf0.encode(Q),Pf0=new TextEncoder,Mr=(Q)=>new Uint8Array(Q),Ir=(Q)=>new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength),Cf0=(Q,X)=>Q.slice(0,X),Of0=(Q,{contents:X,length:J},Y)=>{let Z=Or()?Nf0(X,Y):jf0(X,Y);return new Uint8Array(Z).set(Q,J),Z},jf0=(Q,X)=>{if(X<=Q.byteLength)return Q;let J=new ArrayBuffer(Cr(X));return new Uint8Array(J).set(new Uint8Array(Q),0),J},Nf0=(Q,X)=>{if(X<=Q.maxByteLength)return Q.resize(X),Q;let J=new ArrayBuffer(X,{maxByteLength:Cr(X)});return new Uint8Array(J).set(new Uint8Array(Q),0),J},Cr=(Q)=>Pr**Math.ceil(Math.log(Q)/Math.log(Pr)),Pr=2,Rf0=({contents:Q,length:X})=>Or()?Q:Q.slice(0,X),Or=()=>("resize"in ArrayBuffer.prototype),Df0={init:Mf0,convertChunk:{string:If0,buffer:Mr,arrayBuffer:Mr,dataView:Ir,typedArray:Ir,others:hH},getSize:bH,truncateChunk:Cf0,addChunk:Of0,getFinalChunk:FY,finalize:Rf0};async function mH(Q,X){return MQ(Q,_f0,X)}var wf0=()=>({contents:"",textDecoder:new TextDecoder}),uH=(Q,{textDecoder:X})=>X.decode(Q,{stream:!0}),Tf0=(Q,{contents:X})=>X+Q,Af0=(Q,X)=>Q.slice(0,X),Ef0=({textDecoder:Q})=>{let X=Q.decode();return X===""?void 0:X},_f0={init:wf0,convertChunk:{string:_4,buffer:uH,arrayBuffer:uH,dataView:uH,typedArray:uH,others:hH},getSize:bH,truncateChunk:Af0,addChunk:Tf0,getFinalChunk:Ef0,finalize:yH};Object.assign(LY,{on:Sf0,finished:vf0});var jr=({error:Q,stream:X,readableObjectMode:J,lines:Y,encoding:Z,fdNumber:q})=>{if(!(Q instanceof E4))throw Q;if(q==="all")return Q;let $=xf0(J,Y,Z);throw Q.maxBufferInfo={fdNumber:q,unit:$},X.destroy(),Q},xf0=(Q,X,J)=>{if(Q)return"objects";if(X)return"lines";if(J==="buffer")return"bytes";return"characters"},Nr=(Q,X,J)=>{if(X.length!==J)return;let Y=new E4;throw Y.maxBufferInfo={fdNumber:"ipc"},Y},Rr=(Q,X)=>{let{streamName:J,threshold:Y,unit:Z}=kf0(Q,X);return`Command's ${J} was larger than ${Y} ${Z}`},kf0=(Q,X)=>{if(Q?.maxBufferInfo===void 0)return{streamName:"output",threshold:X[1],unit:"bytes"};let{maxBufferInfo:{fdNumber:J,unit:Y}}=Q;delete Q.maxBufferInfo;let Z=A4(X,J);if(J==="ipc")return{streamName:"IPC output",threshold:Z,unit:"messages"};return{streamName:JH(J),threshold:Z,unit:Y}},Dr=(Q,X,J)=>Q?.code==="ENOBUFS"&&X!==null&&X.some((Y)=>Y!==null&&Y.length>dH(J)),wr=(Q,X,J)=>{if(!X)return Q;let Y=dH(J);return Q.length>Y?Q.slice(0,Y):Q},dH=([,Q])=>Q;var Ar=({stdio:Q,all:X,ipcOutput:J,originalError:Y,signal:Z,signalDescription:q,exitCode:$,escapedCommand:H,timedOut:K,isCanceled:V,isGracefullyCanceled:W,isMaxBuffer:G,isForcefullyTerminated:U,forceKillAfterDelay:z,killSignal:L,maxBuffer:B,timeout:M,cwd:I})=>{let j=Y?.code,D=hf0({originalError:Y,timedOut:K,timeout:M,isMaxBuffer:G,maxBuffer:B,errorCode:j,signal:Z,signalDescription:q,exitCode:$,isCanceled:V,isGracefullyCanceled:W,isForcefullyTerminated:U,forceKillAfterDelay:z,killSignal:L}),N=ff0(Y,I),k=N===void 0?"":`
136
+ ${N}`,f=`${D}: ${H}${k}`,S=X===void 0?[Q[2],Q[1]]:[X],p=[f,...S,...Q.slice(3),J.map((T)=>gf0(T)).join(`
137
+ `)].map((T)=>GY(FQ(uf0(T)))).filter(Boolean).join(`
138
+
139
+ `);return{originalMessage:N,shortMessage:f,message:p}},hf0=({originalError:Q,timedOut:X,timeout:J,isMaxBuffer:Y,maxBuffer:Z,errorCode:q,signal:$,signalDescription:H,exitCode:K,isCanceled:V,isGracefullyCanceled:W,isForcefullyTerminated:G,forceKillAfterDelay:U,killSignal:z})=>{let L=bf0(G,U);if(X)return`Command timed out after ${J} milliseconds${L}`;if(W){if($===void 0)return`Command was gracefully canceled with exit code ${K}`;return G?`Command was gracefully canceled${L}`:`Command was gracefully canceled with ${$} (${H})`}if(V)return`Command was canceled${L}`;if(Y)return`${Rr(Q,Z)}${L}`;if(q!==void 0)return`Command failed with ${q}${L}`;if(G)return`Command was killed with ${z} (${IH(z)})${L}`;if($!==void 0)return`Command was killed with ${$} (${H})`;if(K!==void 0)return`Command failed with exit code ${K}`;return"Command failed"},bf0=(Q,X)=>Q?` and was forcefully terminated after ${X} milliseconds`:"",ff0=(Q,X)=>{if(Q instanceof a8)return;let J=Jo(Q)?Q.originalMessage:String(Q?.message??Q),Y=GY(qr(J,X));return Y===""?void 0:Y},gf0=(Q)=>typeof Q==="string"?Q:yf0(Q),uf0=(Q)=>Array.isArray(Q)?Q.map((X)=>FQ(Tr(X))).filter(Boolean).join(`
140
+ `):Tr(Q),Tr=(Q)=>{if(typeof Q==="string")return Q;if(_1(Q))return QH(Q);return""};var cH=({command:Q,escapedCommand:X,stdio:J,all:Y,ipcOutput:Z,options:{cwd:q},startTime:$})=>Er({command:Q,escapedCommand:X,cwd:q,durationMs:sL($),failed:!1,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isTerminated:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,exitCode:0,stdout:J[1],stderr:J[2],all:Y,stdio:J,ipcOutput:Z,pipedFrom:[]}),IQ=({error:Q,command:X,escapedCommand:J,fileDescriptors:Y,options:Z,startTime:q,isSync:$})=>MY({error:Q,command:X,escapedCommand:J,startTime:q,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,stdio:Array.from({length:Y.length}),ipcOutput:[],options:Z,isSync:$}),MY=({error:Q,command:X,escapedCommand:J,startTime:Y,timedOut:Z,isCanceled:q,isGracefullyCanceled:$,isMaxBuffer:H,isForcefullyTerminated:K,exitCode:V,signal:W,stdio:G,all:U,ipcOutput:z,options:{timeoutDuration:L,timeout:B=L,forceKillAfterDelay:M,killSignal:I,cwd:j,maxBuffer:D},isSync:N})=>{let{exitCode:k,signal:f,signalDescription:S}=df0(V,W),{originalMessage:p,shortMessage:T,message:u}=Ar({stdio:G,all:U,ipcOutput:z,originalError:Q,signal:f,signalDescription:S,exitCode:k,escapedCommand:J,timedOut:Z,isCanceled:q,isGracefullyCanceled:$,isMaxBuffer:H,isForcefullyTerminated:K,forceKillAfterDelay:M,killSignal:I,maxBuffer:D,timeout:B,cwd:j}),c=Qo(Q,u,N);return Object.assign(c,mf0({error:c,command:X,escapedCommand:J,startTime:Y,timedOut:Z,isCanceled:q,isGracefullyCanceled:$,isMaxBuffer:H,isForcefullyTerminated:K,exitCode:k,signal:f,signalDescription:S,stdio:G,all:U,ipcOutput:z,cwd:j,originalMessage:p,shortMessage:T})),c},mf0=({error:Q,command:X,escapedCommand:J,startTime:Y,timedOut:Z,isCanceled:q,isGracefullyCanceled:$,isMaxBuffer:H,isForcefullyTerminated:K,exitCode:V,signal:W,signalDescription:G,stdio:U,all:z,ipcOutput:L,cwd:B,originalMessage:M,shortMessage:I})=>Er({shortMessage:I,originalMessage:M,command:X,escapedCommand:J,cwd:B,durationMs:sL(Y),failed:!0,timedOut:Z,isCanceled:q,isGracefullyCanceled:$,isTerminated:W!==void 0,isMaxBuffer:H,isForcefullyTerminated:K,exitCode:V,signal:W,signalDescription:G,code:Q.cause?.code,stdout:U[1],stderr:U[2],all:z,stdio:U,ipcOutput:L,pipedFrom:[]}),Er=(Q)=>Object.fromEntries(Object.entries(Q).filter(([,X])=>X!==void 0)),df0=(Q,X)=>{let J=Q===null?void 0:Q,Y=X===null?void 0:X,Z=Y===void 0?void 0:IH(X);return{exitCode:J,signal:Y,signalDescription:Z}};var _r=(Q)=>Number.isFinite(Q)?Q:0;function cf0(Q){return{days:Math.trunc(Q/86400000),hours:Math.trunc(Q/3600000%24),minutes:Math.trunc(Q/60000%60),seconds:Math.trunc(Q/1000%60),milliseconds:Math.trunc(Q%1000),microseconds:Math.trunc(_r(Q*1000)%1000),nanoseconds:Math.trunc(_r(Q*1e6)%1000)}}function lf0(Q){return{days:Q/86400000n,hours:Q/3600000n%24n,minutes:Q/60000n%60n,seconds:Q/1000n%60n,milliseconds:Q%1000n,microseconds:0n,nanoseconds:0n}}function jF(Q){switch(typeof Q){case"number":{if(Number.isFinite(Q))return cf0(Q);break}case"bigint":return lf0(Q)}throw TypeError("Expected a finite number or bigint")}var pf0=(Q)=>Q===0||Q===0n,nf0=(Q,X)=>X===1||X===1n?Q:`${Q}s`,if0=0.0000001,of0=24n*60n*60n*1000n;function NF(Q,X){let J=typeof Q==="bigint";if(!J&&!Number.isFinite(Q))throw TypeError("Expected a finite number or bigint");X={...X};let Y=Q<0?"-":"";if(Q=Q<0?-Q:Q,X.colonNotation)X.compact=!1,X.formatSubMilliseconds=!1,X.separateMilliseconds=!1,X.verbose=!1;if(X.compact)X.unitCount=1,X.secondsDecimalDigits=0,X.millisecondsDecimalDigits=0;let Z=[],q=(W,G)=>{let U=Math.floor(W*10**G+if0);return(Math.round(U)/10**G).toFixed(G)},$=(W,G,U,z)=>{if((Z.length===0||!X.colonNotation)&&pf0(W)&&!(X.colonNotation&&U==="m"))return;if(z??=String(W),X.colonNotation){let L=z.includes(".")?z.split(".")[0].length:z.length,B=Z.length>0?2:1;z="0".repeat(Math.max(0,B-L))+z}else z+=X.verbose?" "+nf0(G,W):U;Z.push(z)},H=jF(Q),K=BigInt(H.days);if(X.hideYearAndDays)$(BigInt(K)*24n+BigInt(H.hours),"hour","h");else{if(X.hideYear)$(K,"day","d");else $(K/365n,"year","y"),$(K%365n,"day","d");$(Number(H.hours),"hour","h")}if($(Number(H.minutes),"minute","m"),!X.hideSeconds)if(X.separateMilliseconds||X.formatSubMilliseconds||!X.colonNotation&&Q<1000&&!X.subSecondsAsDecimals){let W=Number(H.seconds),G=Number(H.milliseconds),U=Number(H.microseconds),z=Number(H.nanoseconds);if($(W,"second","s"),X.formatSubMilliseconds)$(G,"millisecond","ms"),$(U,"microsecond","µs"),$(z,"nanosecond","ns");else{let L=G+U/1000+z/1e6,B=typeof X.millisecondsDecimalDigits==="number"?X.millisecondsDecimalDigits:0,M=L>=1?Math.round(L):Math.ceil(L),I=B?L.toFixed(B):M;$(Number.parseFloat(I),"millisecond","ms",I)}}else{let W=(J?Number(Q%of0):Q)/1000%60,G=typeof X.secondsDecimalDigits==="number"?X.secondsDecimalDigits:1,U=q(W,G),z=X.keepDecimalsOnWholeSeconds?U:U.replace(/\.0+$/,"");$(Number.parseFloat(z),"second","s",z)}if(Z.length===0)return Y+"0"+(X.verbose?" milliseconds":"ms");let V=X.colonNotation?":":" ";if(typeof X.unitCount==="number")Z=Z.slice(0,Math.max(X.unitCount,1));return Y+Z.join(V)}var Sr=(Q,X)=>{if(Q.failed)s8({type:"error",verboseMessage:Q.shortMessage,verboseInfo:X,result:Q})};var vr=(Q,X)=>{if(!WQ(X))return;Sr(Q,X),rf0(Q,X)},rf0=(Q,X)=>{let J=`(done in ${NF(Q.durationMs)})`;s8({type:"duration",verboseMessage:J,verboseInfo:X,result:Q})};var PQ=(Q,X,{reject:J})=>{if(vr(Q,X),Q.failed&&J)throw Q;return Q};import{readFileSync as qs}from"node:fs";var yr=(Q,X)=>{if(N7(Q))return"asyncGenerator";if(fr(Q))return"generator";if(lH(Q))return"fileUrl";if(Qg0(Q))return"filePath";if(Yg0(Q))return"webStream";if(D8(Q,{checkOpen:!1}))return"native";if(_1(Q))return"uint8Array";if(Zg0(Q))return"asyncIterable";if(qg0(Q))return"iterable";if(wF(Q))return hr({transform:Q},X);if(ef0(Q))return sf0(Q,X);return"native"},sf0=(Q,X)=>{if(PF(Q.transform,{checkOpen:!1}))return af0(Q,X);if(wF(Q.transform))return hr(Q,X);return tf0(Q,X)},af0=(Q,X)=>{return br(Q,X,"Duplex stream"),"duplex"},hr=(Q,X)=>{return br(Q,X,"web TransformStream"),"webTransform"},br=({final:Q,binary:X,objectMode:J},Y,Z)=>{xr(Q,`${Y}.final`,Z),xr(X,`${Y}.binary`,Z),RF(J,`${Y}.objectMode`)},xr=(Q,X,J)=>{if(Q!==void 0)throw TypeError(`The \`${X}\` option can only be defined when using a generator, not a ${J}.`)},tf0=({transform:Q,final:X,binary:J,objectMode:Y},Z)=>{if(Q!==void 0&&!kr(Q))throw TypeError(`The \`${Z}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`);if(PF(X,{checkOpen:!1}))throw TypeError(`The \`${Z}.final\` option must not be a Duplex stream.`);if(wF(X))throw TypeError(`The \`${Z}.final\` option must not be a web TransformStream.`);if(X!==void 0&&!kr(X))throw TypeError(`The \`${Z}.final\` option must be a generator.`);return RF(J,`${Z}.binary`),RF(Y,`${Z}.objectMode`),N7(Q)||N7(X)?"asyncGenerator":"generator"},RF=(Q,X)=>{if(Q!==void 0&&typeof Q!=="boolean")throw TypeError(`The \`${X}\` option must use a boolean.`)},kr=(Q)=>N7(Q)||fr(Q),N7=(Q)=>Object.prototype.toString.call(Q)==="[object AsyncGeneratorFunction]",fr=(Q)=>Object.prototype.toString.call(Q)==="[object GeneratorFunction]",ef0=(Q)=>O1(Q)&&(Q.transform!==void 0||Q.final!==void 0),lH=(Q)=>Object.prototype.toString.call(Q)==="[object URL]",gr=(Q)=>lH(Q)&&Q.protocol!=="file:",Qg0=(Q)=>O1(Q)&&Object.keys(Q).length>0&&Object.keys(Q).every((X)=>Xg0.has(X))&&DF(Q.file),Xg0=new Set(["file","append"]),DF=(Q)=>typeof Q==="string",ur=(Q,X)=>Q==="native"&&typeof X==="string"&&!Jg0.has(X),Jg0=new Set(["ipc","ignore","inherit","overlapped","pipe"]),mr=(Q)=>Object.prototype.toString.call(Q)==="[object ReadableStream]",pH=(Q)=>Object.prototype.toString.call(Q)==="[object WritableStream]",Yg0=(Q)=>mr(Q)||pH(Q),wF=(Q)=>mr(Q?.readable)&&pH(Q?.writable),Zg0=(Q)=>dr(Q)&&typeof Q[Symbol.asyncIterator]==="function",qg0=(Q)=>dr(Q)&&typeof Q[Symbol.iterator]==="function",dr=(Q)=>typeof Q==="object"&&Q!==null,H8=new Set(["generator","asyncGenerator","duplex","webTransform"]),nH=new Set(["fileUrl","filePath","fileNumber"]),TF=new Set(["fileUrl","filePath"]),cr=new Set([...TF,"webStream","nodeStream"]),lr=new Set(["webTransform","duplex"]),L5={generator:"a generator",asyncGenerator:"an async generator",fileUrl:"a file URL",filePath:"a file path string",fileNumber:"a file descriptor number",webStream:"a web stream",nodeStream:"a Node.js stream",webTransform:"a web TransformStream",duplex:"a Duplex stream",native:"any value",iterable:"an iterable",asyncIterable:"an async iterable",string:"a string",uint8Array:"a Uint8Array"};var AF=(Q,X,J,Y)=>Y==="output"?$g0(Q,X,J):Hg0(Q,X,J),$g0=(Q,X,J)=>{let Y=X!==0&&J[X-1].value.readableObjectMode;return{writableObjectMode:Y,readableObjectMode:Q??Y}},Hg0=(Q,X,J)=>{let Y=X===0?Q===!0:J[X-1].value.readableObjectMode,Z=X!==J.length-1&&(Q??Y);return{writableObjectMode:Y,readableObjectMode:Z}},pr=(Q,X)=>{let J=Q.findLast(({type:Y})=>H8.has(Y));if(J===void 0)return!1;return X==="input"?J.value.writableObjectMode:J.value.readableObjectMode};var nr=(Q,X,J,Y)=>[...Q.filter(({type:Z})=>!H8.has(Z)),...Kg0(Q,X,J,Y)],Kg0=(Q,X,J,{encoding:Y})=>{let Z=Q.filter(({type:$})=>H8.has($)),q=Array.from({length:Z.length});for(let[$,H]of Object.entries(Z))q[$]=Wg0({stdioItem:H,index:Number($),newTransforms:q,optionName:X,direction:J,encoding:Y});return zg0(q,J)},Wg0=({stdioItem:Q,stdioItem:{type:X},index:J,newTransforms:Y,optionName:Z,direction:q,encoding:$})=>{if(X==="duplex")return Vg0({stdioItem:Q,optionName:Z});if(X==="webTransform")return Gg0({stdioItem:Q,index:J,newTransforms:Y,direction:q});return Ug0({stdioItem:Q,index:J,newTransforms:Y,direction:q,encoding:$})},Vg0=({stdioItem:Q,stdioItem:{value:{transform:X,transform:{writableObjectMode:J,readableObjectMode:Y},objectMode:Z=Y}},optionName:q})=>{if(Z&&!Y)throw TypeError(`The \`${q}.objectMode\` option can only be \`true\` if \`new Duplex({objectMode: true})\` is used.`);if(!Z&&Y)throw TypeError(`The \`${q}.objectMode\` option cannot be \`false\` if \`new Duplex({objectMode: true})\` is used.`);return{...Q,value:{transform:X,writableObjectMode:J,readableObjectMode:Y}}},Gg0=({stdioItem:Q,stdioItem:{value:X},index:J,newTransforms:Y,direction:Z})=>{let{transform:q,objectMode:$}=O1(X)?X:{transform:X},{writableObjectMode:H,readableObjectMode:K}=AF($,J,Y,Z);return{...Q,value:{transform:q,writableObjectMode:H,readableObjectMode:K}}},Ug0=({stdioItem:Q,stdioItem:{value:X},index:J,newTransforms:Y,direction:Z,encoding:q})=>{let{transform:$,final:H,binary:K=!1,preserveNewlines:V=!1,objectMode:W}=O1(X)?X:{transform:X},G=K||h6.has(q),{writableObjectMode:U,readableObjectMode:z}=AF(W,J,Y,Z);return{...Q,value:{transform:$,final:H,binary:G,preserveNewlines:V,writableObjectMode:U,readableObjectMode:z}}},zg0=(Q,X)=>X==="input"?Q.reverse():Q;import EF from"node:process";var ir=(Q,X,J)=>{let Y=Q.map((Z)=>Bg0(Z,X));if(Y.includes("input")&&Y.includes("output"))throw TypeError(`The \`${J}\` option must not be an array of both readable and writable values.`);return Y.find(Boolean)??Mg0},Bg0=({type:Q,value:X},J)=>Lg0[J]??or[Q](X),Lg0=["input","output","output"],CQ=()=>{return},_F=()=>"input",or={generator:CQ,asyncGenerator:CQ,fileUrl:CQ,filePath:CQ,iterable:_F,asyncIterable:_F,uint8Array:_F,webStream:(Q)=>pH(Q)?"output":"input",nodeStream(Q){if(!j7(Q,{checkOpen:!1}))return"output";return IF(Q,{checkOpen:!1})?void 0:"input"},webTransform:CQ,duplex:CQ,native(Q){let X=Fg0(Q);if(X!==void 0)return X;if(D8(Q,{checkOpen:!1}))return or.nodeStream(Q)}},Fg0=(Q)=>{if([0,EF.stdin].includes(Q))return"input";if([1,2,EF.stdout,EF.stderr].includes(Q))return"output"},Mg0="output";var rr=(Q,X)=>X&&!Q.includes("ipc")?[...Q,"ipc"]:Q;var sr=({stdio:Q,ipc:X,buffer:J,...Y},Z,q)=>{let $=Ig0(Q,Y).map((H,K)=>ar(H,K));return q?Cg0($,J,Z):rr($,X)},Ig0=(Q,X)=>{if(Q===void 0)return $8.map((Y)=>X[Y]);if(Pg0(X))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${$8.map((Y)=>`\`${Y}\``).join(", ")}`);if(typeof Q==="string")return[Q,Q,Q];if(!Array.isArray(Q))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof Q}\``);let J=Math.max(Q.length,$8.length);return Array.from({length:J},(Y,Z)=>Q[Z])},Pg0=(Q)=>$8.some((X)=>Q[X]!==void 0),ar=(Q,X)=>{if(Array.isArray(Q))return Q.map((J)=>ar(J,X));if(Q===null||Q===void 0)return X>=$8.length?"ignore":"pipe";return Q},Cg0=(Q,X,J)=>Q.map((Y,Z)=>!X[Z]&&Z!==0&&!VQ(J,Z)&&Og0(Y)?"ignore":Y),Og0=(Q)=>Q==="pipe"||Array.isArray(Q)&&Q.every((X)=>X==="pipe");import{readFileSync as jg0}from"node:fs";import Ng0 from"node:tty";var er=({stdioItem:Q,stdioItem:{type:X},isStdioArray:J,fdNumber:Y,direction:Z,isSync:q})=>{if(!J||X!=="native")return Q;return q?Rg0({stdioItem:Q,fdNumber:Y,direction:Z}):Tg0({stdioItem:Q,fdNumber:Y})},Rg0=({stdioItem:Q,stdioItem:{value:X,optionName:J},fdNumber:Y,direction:Z})=>{let q=Dg0({value:X,optionName:J,fdNumber:Y,direction:Z});if(q!==void 0)return q;if(D8(X,{checkOpen:!1}))throw TypeError(`The \`${J}: Stream\` option cannot both be an array and include a stream with synchronous methods.`);return Q},Dg0=({value:Q,optionName:X,fdNumber:J,direction:Y})=>{let Z=wg0(Q,J);if(Z===void 0)return;if(Y==="output")return{type:"fileNumber",value:Z,optionName:X};if(Ng0.isatty(Z))throw TypeError(`The \`${X}: ${OH(Q)}\` option is invalid: it cannot be a TTY with synchronous methods.`);return{type:"uint8Array",value:T4(jg0(Z)),optionName:X}},wg0=(Q,X)=>{if(Q==="inherit")return X;if(typeof Q==="number")return Q;let J=XH.indexOf(Q);if(J!==-1)return J},Tg0=({stdioItem:Q,stdioItem:{value:X,optionName:J},fdNumber:Y})=>{if(X==="inherit")return{type:"nodeStream",value:tr(Y,X,J),optionName:J};if(typeof X==="number")return{type:"nodeStream",value:tr(X,X,J),optionName:J};if(D8(X,{checkOpen:!1}))return{type:"nodeStream",value:X,optionName:J};return Q},tr=(Q,X,J)=>{let Y=XH[Q];if(Y===void 0)throw TypeError(`The \`${J}: ${X}\` option is invalid: no such standard stream.`);return Y};var Qs=({input:Q,inputFile:X},J)=>J===0?[...Ag0(Q),..._g0(X)]:[],Ag0=(Q)=>Q===void 0?[]:[{type:Eg0(Q),value:Q,optionName:"input"}],Eg0=(Q)=>{if(j7(Q,{checkOpen:!1}))return"nodeStream";if(typeof Q==="string")return"string";if(_1(Q))return"uint8Array";throw Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.")},_g0=(Q)=>Q===void 0?[]:[{...Sg0(Q),optionName:"inputFile"}],Sg0=(Q)=>{if(lH(Q))return{type:"fileUrl",value:Q};if(DF(Q))return{type:"filePath",value:{file:Q}};throw Error("The `inputFile` option must be a file path string or a file URL.")};var Xs=(Q)=>Q.filter((X,J)=>Q.every((Y,Z)=>X.value!==Y.value||J>=Z||X.type==="generator"||X.type==="asyncGenerator")),Js=({stdioItem:{type:Q,value:X,optionName:J},direction:Y,fileDescriptors:Z,isSync:q})=>{let $=vg0(Z,Q);if($.length===0)return;if(q){xg0({otherStdioItems:$,type:Q,value:X,optionName:J,direction:Y});return}if(cr.has(Q))return Ys({otherStdioItems:$,type:Q,value:X,optionName:J,direction:Y});if(lr.has(Q))yg0({otherStdioItems:$,type:Q,value:X,optionName:J})},vg0=(Q,X)=>Q.flatMap(({direction:J,stdioItems:Y})=>Y.filter((Z)=>Z.type===X).map((Z)=>({...Z,direction:J}))),xg0=({otherStdioItems:Q,type:X,value:J,optionName:Y,direction:Z})=>{if(TF.has(X))Ys({otherStdioItems:Q,type:X,value:J,optionName:Y,direction:Z})},Ys=({otherStdioItems:Q,type:X,value:J,optionName:Y,direction:Z})=>{let q=Q.filter((H)=>kg0(H,J));if(q.length===0)return;let $=q.find((H)=>H.direction!==Z);return Zs($,Y,X),Z==="output"?q[0].stream:void 0},kg0=({type:Q,value:X},J)=>{if(Q==="filePath")return X.file===J.file;if(Q==="fileUrl")return X.href===J.href;return X===J},yg0=({otherStdioItems:Q,type:X,value:J,optionName:Y})=>{let Z=Q.find(({value:{transform:q}})=>q===J.transform);Zs(Z,Y,X)},Zs=(Q,X,J)=>{if(Q!==void 0)throw TypeError(`The \`${Q.optionName}\` and \`${X}\` options must not target ${L5[J]} that is the same.`)};var iH=(Q,X,J,Y)=>{let q=sr(X,J,Y).map((H,K)=>hg0({stdioOption:H,fdNumber:K,options:X,isSync:Y})),$=lg0({initialFileDescriptors:q,addProperties:Q,options:X,isSync:Y});return X.stdio=$.map(({stdioItems:H})=>ig0(H)),$},hg0=({stdioOption:Q,fdNumber:X,options:J,isSync:Y})=>{let Z=JH(X),{stdioItems:q,isStdioArray:$}=bg0({stdioOption:Q,fdNumber:X,options:J,optionName:Z}),H=ir(q,X,Z),K=q.map((G)=>er({stdioItem:G,isStdioArray:$,fdNumber:X,direction:H,isSync:Y})),V=nr(K,Z,H,J),W=pr(V,H);return cg0(V,W),{direction:H,objectMode:W,stdioItems:V}},bg0=({stdioOption:Q,fdNumber:X,options:J,optionName:Y})=>{let q=[...(Array.isArray(Q)?Q:[Q]).map((K)=>fg0(K,Y)),...Qs(J,X)],$=Xs(q),H=$.length>1;return gg0($,H,Y),mg0($),{stdioItems:$,isStdioArray:H}},fg0=(Q,X)=>({type:yr(Q,X),value:Q,optionName:X}),gg0=(Q,X,J)=>{if(Q.length===0)throw TypeError(`The \`${J}\` option must not be an empty array.`);if(!X)return;for(let{value:Y,optionName:Z}of Q)if(ug0.has(Y))throw Error(`The \`${Z}\` option must not include \`${Y}\`.`)},ug0=new Set(["ignore","ipc"]),mg0=(Q)=>{for(let X of Q)dg0(X)},dg0=({type:Q,value:X,optionName:J})=>{if(gr(X))throw TypeError(`The \`${J}: URL\` option must use the \`file:\` scheme.
141
+ For example, you can use the \`pathToFileURL()\` method of the \`url\` core module.`);if(ur(Q,X))throw TypeError(`The \`${J}: { file: '...' }\` option must be used instead of \`${J}: '...'\`.`)},cg0=(Q,X)=>{if(!X)return;let J=Q.find(({type:Y})=>nH.has(Y));if(J!==void 0)throw TypeError(`The \`${J.optionName}\` option cannot use both files and transforms in objectMode.`)},lg0=({initialFileDescriptors:Q,addProperties:X,options:J,isSync:Y})=>{let Z=[];try{for(let q of Q)Z.push(pg0({fileDescriptor:q,fileDescriptors:Z,addProperties:X,options:J,isSync:Y}));return Z}catch(q){throw SF(Z),q}},pg0=({fileDescriptor:{direction:Q,objectMode:X,stdioItems:J},fileDescriptors:Y,addProperties:Z,options:q,isSync:$})=>{let H=J.map((K)=>ng0({stdioItem:K,addProperties:Z,direction:Q,options:q,fileDescriptors:Y,isSync:$}));return{direction:Q,objectMode:X,stdioItems:H}},ng0=({stdioItem:Q,addProperties:X,direction:J,options:Y,fileDescriptors:Z,isSync:q})=>{let $=Js({stdioItem:Q,direction:J,fileDescriptors:Z,isSync:q});if($!==void 0)return{...Q,stream:$};return{...Q,...X[J][Q.type](Q,Y)}},SF=(Q)=>{for(let{stdioItems:X}of Q)for(let{stream:J}of X)if(J!==void 0&&!N8(J))J.destroy()},ig0=(Q)=>{if(Q.length>1)return Q.some(({value:Y})=>Y==="overlapped")?"overlapped":"pipe";let[{type:X,value:J}]=Q;return X==="native"?J:"pipe"};var Hs=(Q,X)=>iH(rg0,Q,X,!0),Q4=({type:Q,optionName:X})=>{Ks(X,L5[Q])},og0=({optionName:Q,value:X})=>{if(X==="ipc"||X==="overlapped")Ks(Q,`"${X}"`);return{}},Ks=(Q,X)=>{throw TypeError(`The \`${Q}\` option cannot be ${X} with synchronous methods.`)},$s={generator(){},asyncGenerator:Q4,webStream:Q4,nodeStream:Q4,webTransform:Q4,duplex:Q4,asyncIterable:Q4,native:og0},rg0={input:{...$s,fileUrl:({value:Q})=>({contents:[T4(qs(Q))]}),filePath:({value:{file:Q}})=>({contents:[T4(qs(Q))]}),fileNumber:Q4,iterable:({value:Q})=>({contents:[...Q]}),string:({value:Q})=>({contents:[Q]}),uint8Array:({value:Q})=>({contents:[Q]})},output:{...$s,fileUrl:({value:Q})=>({path:Q}),filePath:({value:{file:Q,append:X}})=>({path:Q,append:X}),fileNumber:({value:Q})=>({path:Q}),iterable:Q4,string:Q4,uint8Array:Q4}};var S4=(Q,{stripFinalNewline:X},J)=>vF(X,J)&&Q!==void 0&&!Array.isArray(Q)?FQ(Q):Q,vF=(Q,X)=>X==="all"?Q[1]||Q[2]:Q[X];import{Transform as Fu0,getDefaultHighWaterMark as Ps}from"node:stream";var oH=(Q,X,J,Y)=>Q||J?void 0:Vs(X,Y),kF=(Q,X,J)=>J?Q.flatMap((Y)=>Ws(Y,X)):Ws(Q,X),Ws=(Q,X)=>{let{transform:J,final:Y}=Vs(X,{});return[...J(Q),...Y()]},Vs=(Q,X)=>{return X.previousChunks="",{transform:sg0.bind(void 0,X,Q),final:tg0.bind(void 0,X)}},sg0=function*(Q,X,J){if(typeof J!=="string"){yield J;return}let{previousChunks:Y}=Q,Z=-1;for(let q=0;q<J.length;q+=1)if(J[q]===`
142
+ `){let $=ag0(J,q,X,Q),H=J.slice(Z+1,q+1-$);if(Y.length>0)H=xF(Y,H),Y="";yield H,Z=q}if(Z!==J.length-1)Y=xF(Y,J.slice(Z+1));Q.previousChunks=Y},ag0=(Q,X,J,Y)=>{if(J)return 0;return Y.isWindowsNewline=X!==0&&Q[X-1]==="\r",Y.isWindowsNewline?2:1},tg0=function*({previousChunks:Q}){if(Q.length>0)yield Q},Gs=({binary:Q,preserveNewlines:X,readableObjectMode:J,state:Y})=>Q||X||J?void 0:{transform:eg0.bind(void 0,Y)},eg0=function*({isWindowsNewline:Q=!1},X){let{unixNewline:J,windowsNewline:Y,LF:Z,concatBytes:q}=typeof X==="string"?Qu0:Ju0;if(X.at(-1)===Z){yield X;return}yield q(X,Q?Y:J)},xF=(Q,X)=>`${Q}${X}`,Qu0={windowsNewline:`\r
143
+ `,unixNewline:`
144
+ `,LF:`
145
+ `,concatBytes:xF},Xu0=(Q,X)=>{let J=new Uint8Array(Q.length+X.length);return J.set(Q,0),J.set(X,Q.length),J},Ju0={windowsNewline:new Uint8Array([13,10]),unixNewline:new Uint8Array([10]),LF:10,concatBytes:Xu0};import{Buffer as Yu0}from"node:buffer";var Us=(Q,X)=>Q?void 0:Zu0.bind(void 0,X),Zu0=function*(Q,X){if(typeof X!=="string"&&!_1(X)&&!Yu0.isBuffer(X))throw TypeError(`The \`${Q}\` option's transform must use "objectMode: true" to receive as input: ${typeof X}.`);yield X},zs=(Q,X)=>Q?qu0.bind(void 0,X):$u0.bind(void 0,X),qu0=function*(Q,X){Bs(Q,X),yield X},$u0=function*(Q,X){if(Bs(Q,X),typeof X!=="string"&&!_1(X))throw TypeError(`The \`${Q}\` option's function must yield a string or an Uint8Array, not ${typeof X}.`);yield X},Bs=(Q,X)=>{if(X===null||X===void 0)throw TypeError(`The \`${Q}\` option's function must not call \`yield ${X}\`.
146
+ Instead, \`yield\` should either be called with a value, or not be called at all. For example:
147
+ if (condition) { yield value; }`)};import{Buffer as Hu0}from"node:buffer";import{StringDecoder as Ku0}from"node:string_decoder";var rH=(Q,X,J)=>{if(J)return;if(Q)return{transform:Wu0.bind(void 0,new TextEncoder)};let Y=new Ku0(X);return{transform:Vu0.bind(void 0,Y),final:Gu0.bind(void 0,Y)}},Wu0=function*(Q,X){if(Hu0.isBuffer(X))yield T4(X);else if(typeof X==="string")yield Q.encode(X);else yield X},Vu0=function*(Q,X){yield _1(X)?Q.write(X):X},Gu0=function*(Q){let X=Q.end();if(X!=="")yield X};import{callbackify as Ls}from"node:util";var yF=Ls(async(Q,X,J,Y)=>{X.currentIterable=Q(...J);try{for await(let Z of X.currentIterable)Y.push(Z)}finally{delete X.currentIterable}}),sH=async function*(Q,X,J){if(J===X.length){yield Q;return}let{transform:Y=zu0}=X[J];for await(let Z of Y(Q))yield*sH(Z,X,J+1)},Fs=async function*(Q){for(let[X,{final:J}]of Object.entries(Q))yield*Uu0(J,Number(X),Q)},Uu0=async function*(Q,X,J){if(Q===void 0)return;for await(let Y of Q())yield*sH(Y,J,X+1)},Ms=Ls(async({currentIterable:Q},X)=>{if(Q!==void 0){await(X?Q.throw(X):Q.return());return}if(X)throw X}),zu0=function*(Q){yield Q};var hF=(Q,X,J,Y)=>{try{for(let Z of Q(...X))J.push(Z);Y()}catch(Z){Y(Z)}},Is=(Q,X)=>[...X.flatMap((J)=>[...R7(J,Q,0)]),...IY(Q)],R7=function*(Q,X,J){if(J===X.length){yield Q;return}let{transform:Y=Lu0}=X[J];for(let Z of Y(Q))yield*R7(Z,X,J+1)},IY=function*(Q){for(let[X,{final:J}]of Object.entries(Q))yield*Bu0(J,Number(X),Q)},Bu0=function*(Q,X,J){if(Q===void 0)return;for(let Y of Q())yield*R7(Y,J,X+1)},Lu0=function*(Q){yield Q};var bF=({value:Q,value:{transform:X,final:J,writableObjectMode:Y,readableObjectMode:Z},optionName:q},{encoding:$})=>{let H={},K=Cs(Q,$,q),V=N7(X),W=N7(J),G=V?yF.bind(void 0,sH,H):hF.bind(void 0,R7),U=V||W?yF.bind(void 0,Fs,H):hF.bind(void 0,IY),z=V||W?Ms.bind(void 0,H):void 0;return{stream:new Fu0({writableObjectMode:Y,writableHighWaterMark:Ps(Y),readableObjectMode:Z,readableHighWaterMark:Ps(Z),transform(B,M,I){G([B,K,0],this,I)},flush(B){U([K],this,B)},destroy:z})}},aH=(Q,X,J,Y)=>{let Z=X.filter(({type:$})=>$==="generator"),q=Y?Z.reverse():Z;for(let{value:$,optionName:H}of q){let K=Cs($,J,H);Q=Is(K,Q)}return Q},Cs=({transform:Q,final:X,binary:J,writableObjectMode:Y,readableObjectMode:Z,preserveNewlines:q},$,H)=>{let K={};return[{transform:Us(Y,H)},rH(J,$,Y),oH(J,q,Y,K),{transform:Q,final:X},{transform:zs(Z,H)},Gs({binary:J,preserveNewlines:q,readableObjectMode:Z,state:K})].filter(Boolean)};var Os=(Q,X)=>{for(let J of Mu0(Q))Iu0(Q,J,X)},Mu0=(Q)=>new Set(Object.entries(Q).filter(([,{direction:X}])=>X==="input").map(([X])=>Number(X))),Iu0=(Q,X,J)=>{let{stdioItems:Y}=Q[X],Z=Y.filter(({contents:H})=>H!==void 0);if(Z.length===0)return;if(X!==0){let[{type:H,optionName:K}]=Z;throw TypeError(`Only the \`stdin\` option, not \`${K}\`, can be ${L5[H]} with synchronous methods.`)}let $=Z.map(({contents:H})=>H).map((H)=>Pu0(H,Y));J.input=VY($)},Pu0=(Q,X)=>{let J=aH(Q,X,"utf8",!0);return Cu0(J),VY(J)},Cu0=(Q)=>{let X=Q.find((J)=>typeof J!=="string"&&!_1(J));if(X!==void 0)throw TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${X}.`)};import{writeFileSync as Ru0,appendFileSync as Du0}from"node:fs";var tH=({stdioItems:Q,encoding:X,verboseInfo:J,fdNumber:Y})=>Y!=="all"&&VQ(J,Y)&&!h6.has(X)&&Ou0(Y)&&(Q.some(({type:Z,value:q})=>Z==="native"&&ju0.has(q))||Q.every(({type:Z})=>H8.has(Z))),Ou0=(Q)=>Q===1||Q===2,ju0=new Set(["pipe","overlapped"]),js=async(Q,X,J,Y)=>{for await(let Z of Q)if(!Nu0(X))Rs(Z,J,Y)},Ns=(Q,X,J)=>{for(let Y of Q)Rs(Y,X,J)},Nu0=(Q)=>Q._readableState.pipes.length>0,Rs=(Q,X,J)=>{let Y=KH(Q);s8({type:"output",verboseMessage:Y,fdNumber:X,verboseInfo:J})};var Ds=({fileDescriptors:Q,syncResult:{output:X},options:J,isMaxBuffer:Y,verboseInfo:Z})=>{if(X===null)return{output:Array.from({length:3})};let q={},$=new Set([]);return{output:X.map((K,V)=>wu0({result:K,fileDescriptors:Q,fdNumber:V,state:q,outputFiles:$,isMaxBuffer:Y,verboseInfo:Z},J)),...q}},wu0=({result:Q,fileDescriptors:X,fdNumber:J,state:Y,outputFiles:Z,isMaxBuffer:q,verboseInfo:$},{buffer:H,encoding:K,lines:V,stripFinalNewline:W,maxBuffer:G})=>{if(Q===null)return;let U=wr(Q,q,G),z=T4(U),{stdioItems:L,objectMode:B}=X[J],M=Tu0([z],L,K,Y),{serializedResult:I,finalResult:j=I}=Au0({chunks:M,objectMode:B,encoding:K,lines:V,stripFinalNewline:W,fdNumber:J});Eu0({serializedResult:I,fdNumber:J,state:Y,verboseInfo:$,encoding:K,stdioItems:L,objectMode:B});let D=H[J]?j:void 0;try{if(Y.error===void 0)_u0(I,L,Z);return D}catch(N){return Y.error=N,D}},Tu0=(Q,X,J,Y)=>{try{return aH(Q,X,J,!1)}catch(Z){return Y.error=Z,Q}},Au0=({chunks:Q,objectMode:X,encoding:J,lines:Y,stripFinalNewline:Z,fdNumber:q})=>{if(X)return{serializedResult:Q};if(J==="buffer")return{serializedResult:VY(Q)};let $=fn(Q,J);if(Y[q])return{serializedResult:$,finalResult:kF($,!Z[q],X)};return{serializedResult:$}},Eu0=({serializedResult:Q,fdNumber:X,state:J,verboseInfo:Y,encoding:Z,stdioItems:q,objectMode:$})=>{if(!tH({stdioItems:q,encoding:Z,verboseInfo:Y,fdNumber:X}))return;let H=kF(Q,!1,$);try{Ns(H,X,Y)}catch(K){J.error??=K}},_u0=(Q,X,J)=>{for(let{path:Y,append:Z}of X.filter(({type:q})=>nH.has(q))){let q=typeof Y==="string"?Y:Y.toString();if(Z||J.has(q))Du0(Y,Q);else J.add(q),Ru0(Y,Q)}};var ws=([,Q,X],J)=>{if(!J.all)return;if(Q===void 0)return X;if(X===void 0)return Q;if(Array.isArray(Q))return Array.isArray(X)?[...Q,...X]:[...Q,S4(X,J,"all")];if(Array.isArray(X))return[S4(Q,J,"all"),...X];if(_1(Q)&&_1(X))return cL([Q,X]);return`${Q}${X}`};import{once as fF}from"node:events";var Ts=async(Q,X)=>{let[J,Y]=await Su0(Q);return X.isForcefullyTerminated??=!1,[J,Y]},Su0=async(Q)=>{let[X,J]=await Promise.allSettled([fF(Q,"spawn"),fF(Q,"exit")]);if(X.status==="rejected")return[];return J.status==="rejected"?As(Q):J.value},As=async(Q)=>{try{return await fF(Q,"exit")}catch{return As(Q)}},Es=async(Q)=>{let[X,J]=await Q;if(!vu0(X,J)&&gF(X,J))throw new a8;return[X,J]},vu0=(Q,X)=>Q===void 0&&X===void 0,gF=(Q,X)=>Q!==0||X!==null;var _s=({error:Q,status:X,signal:J,output:Y},{maxBuffer:Z})=>{let q=xu0(Q,X,J),$=q?.code==="ETIMEDOUT",H=Dr(q,Y,Z);return{resultError:q,exitCode:X,signal:J,timedOut:$,isMaxBuffer:H}},xu0=(Q,X,J)=>{if(Q!==void 0)return Q;return gF(X,J)?new a8:void 0};var Ss=(Q,X,J)=>{let{file:Y,commandArguments:Z,command:q,escapedCommand:$,startTime:H,verboseInfo:K,options:V,fileDescriptors:W}=yu0(Q,X,J),G=fu0({file:Y,commandArguments:Z,options:V,command:q,escapedCommand:$,verboseInfo:K,fileDescriptors:W,startTime:H});return PQ(G,K,V)},yu0=(Q,X,J)=>{let{command:Y,escapedCommand:Z,startTime:q,verboseInfo:$}=VH(Q,X,J),H=hu0(J),{file:K,commandArguments:V,options:W}=xH(Q,X,H);bu0(W);let G=Hs(W,$);return{file:K,commandArguments:V,command:Y,escapedCommand:Z,startTime:q,verboseInfo:$,options:W,fileDescriptors:G}},hu0=(Q)=>Q.node&&!Q.ipc?{...Q,ipc:!1}:Q,bu0=({ipc:Q,ipcInput:X,detached:J,cancelSignal:Y})=>{if(X)eH("ipcInput");if(Q)eH("ipc: true");if(J)eH("detached: true");if(Y)eH("cancelSignal")},eH=(Q)=>{throw TypeError(`The "${Q}" option cannot be used with synchronous methods.`)},fu0=({file:Q,commandArguments:X,options:J,command:Y,escapedCommand:Z,verboseInfo:q,fileDescriptors:$,startTime:H})=>{let K=gu0({file:Q,commandArguments:X,options:J,command:Y,escapedCommand:Z,fileDescriptors:$,startTime:H});if(K.failed)return K;let{resultError:V,exitCode:W,signal:G,timedOut:U,isMaxBuffer:z}=_s(K,J),{output:L,error:B=V}=Ds({fileDescriptors:$,syncResult:K,options:J,isMaxBuffer:z,verboseInfo:q}),M=L.map((j,D)=>S4(j,J,D)),I=S4(ws(L,J),J,"all");return mu0({error:B,exitCode:W,signal:G,timedOut:U,isMaxBuffer:z,stdio:M,all:I,options:J,command:Y,escapedCommand:Z,startTime:H})},gu0=({file:Q,commandArguments:X,options:J,command:Y,escapedCommand:Z,fileDescriptors:q,startTime:$})=>{try{Os(q,J);let H=uu0(J);return ku0(...kH(Q,X,H))}catch(H){return IQ({error:H,command:Y,escapedCommand:Z,fileDescriptors:q,options:J,startTime:$,isSync:!0})}},uu0=({encoding:Q,maxBuffer:X,...J})=>({...J,encoding:"buffer",maxBuffer:dH(X)}),mu0=({error:Q,exitCode:X,signal:J,timedOut:Y,isMaxBuffer:Z,stdio:q,all:$,options:H,command:K,escapedCommand:V,startTime:W})=>Q===void 0?cH({command:K,escapedCommand:V,stdio:q,all:$,ipcOutput:[],options:H,startTime:W}):MY({error:Q,command:K,escapedCommand:V,timedOut:Y,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:Z,isForcefullyTerminated:!1,exitCode:X,signal:J,stdio:q,all:$,ipcOutput:[],options:H,startTime:W,isSync:!0});import{setMaxListeners as Ad0}from"node:events";import{spawn as Ed0}from"node:child_process";import hs from"node:process";import{once as uF,on as du0}from"node:events";var vs=({anyProcess:Q,channel:X,isSubprocess:J,ipc:Y},{reference:Z=!0,filter:q}={})=>{return zQ({methodName:"getOneMessage",isSubprocess:J,ipc:Y,isConnected:TH(Q)}),cu0({anyProcess:Q,channel:X,isSubprocess:J,filter:q,reference:Z})},cu0=async({anyProcess:Q,channel:X,isSubprocess:J,filter:Y,reference:Z})=>{NH(X,Z);let q=B5(Q,X,J),$=new AbortController;try{return await Promise.race([lu0(q,Y,$),pu0(q,J,$),nu0(q,J,$)])}catch(H){throw BQ(Q),H}finally{$.abort(),RH(X,Z)}},lu0=async(Q,X,{signal:J})=>{if(X===void 0){let[Y]=await uF(Q,"message",{signal:J});return Y}for await(let[Y]of du0(Q,"message",{signal:J}))if(X(Y))return Y},pu0=async(Q,X,{signal:J})=>{await uF(Q,"disconnect",{signal:J}),Fo(X)},nu0=async(Q,X,{signal:J})=>{let[Y]=await uF(Q,"strict:error",{signal:J});throw CH(Y,X)};import{once as ks,on as iu0}from"node:events";var ys=({anyProcess:Q,channel:X,isSubprocess:J,ipc:Y},{reference:Z=!0}={})=>mF({anyProcess:Q,channel:X,isSubprocess:J,ipc:Y,shouldAwait:!J,reference:Z}),mF=({anyProcess:Q,channel:X,isSubprocess:J,ipc:Y,shouldAwait:Z,reference:q})=>{zQ({methodName:"getEachMessage",isSubprocess:J,ipc:Y,isConnected:TH(Q)}),NH(X,q);let $=B5(Q,X,J),H=new AbortController,K={};return ou0(Q,$,H),ru0({ipcEmitter:$,isSubprocess:J,controller:H,state:K}),su0({anyProcess:Q,channel:X,ipcEmitter:$,isSubprocess:J,shouldAwait:Z,controller:H,state:K,reference:q})},ou0=async(Q,X,J)=>{try{await ks(X,"disconnect",{signal:J.signal}),J.abort()}catch{}},ru0=async({ipcEmitter:Q,isSubprocess:X,controller:J,state:Y})=>{try{let[Z]=await ks(Q,"strict:error",{signal:J.signal});Y.error=CH(Z,X),J.abort()}catch{}},su0=async function*({anyProcess:Q,channel:X,ipcEmitter:J,isSubprocess:Y,shouldAwait:Z,controller:q,state:$,reference:H}){try{for await(let[K]of iu0(J,"message",{signal:q.signal}))xs($),yield K}catch{xs($)}finally{if(q.abort(),RH(X,H),!Y)BQ(Q);if(Z)await Q}},xs=({error:Q})=>{if(Q)throw Q};var bs=(Q,{ipc:X})=>{Object.assign(Q,gs(Q,!1,X))},fs=()=>{let Q=hs,X=!0,J=hs.channel!==void 0;return{...gs(Q,!0,J),getCancelSignal:lo.bind(void 0,{anyProcess:Q,channel:Q.channel,isSubprocess:!0,ipc:J})}},gs=(Q,X,J)=>({sendMessage:SH.bind(void 0,{anyProcess:Q,channel:Q.channel,isSubprocess:X,ipc:J}),getOneMessage:vs.bind(void 0,{anyProcess:Q,channel:Q.channel,isSubprocess:X,ipc:J}),getEachMessage:ys.bind(void 0,{anyProcess:Q,channel:Q.channel,isSubprocess:X,ipc:J})});import{ChildProcess as au0}from"node:child_process";import{PassThrough as tu0,Readable as eu0,Writable as Qm0,Duplex as Xm0}from"node:stream";var us=({error:Q,command:X,escapedCommand:J,fileDescriptors:Y,options:Z,startTime:q,verboseInfo:$})=>{SF(Y);let H=new au0;Jm0(H,Y),Object.assign(H,{readable:Ym0,writable:Zm0,duplex:qm0});let K=IQ({error:Q,command:X,escapedCommand:J,fileDescriptors:Y,options:Z,startTime:q,isSync:!1}),V=$m0(K,$,Z);return{subprocess:H,promise:V}},Jm0=(Q,X)=>{let J=PY(),Y=PY(),Z=PY(),q=Array.from({length:X.length-3},PY),$=PY(),H=[J,Y,Z,...q];Object.assign(Q,{stdin:J,stdout:Y,stderr:Z,all:$,stdio:H})},PY=()=>{let Q=new tu0;return Q.end(),Q},Ym0=()=>new eu0({read(){}}),Zm0=()=>new Qm0({write(){}}),qm0=()=>new Xm0({read(){},write(){}}),$m0=async(Q,X,J)=>PQ(Q,X,J);import{createReadStream as ms,createWriteStream as ds}from"node:fs";import{Buffer as Hm0}from"node:buffer";import{Readable as CY,Writable as Km0,Duplex as Wm0}from"node:stream";var ls=(Q,X)=>iH(Vm0,Q,X,!1),OY=({type:Q,optionName:X})=>{throw TypeError(`The \`${X}\` option cannot be ${L5[Q]}.`)},cs={fileNumber:OY,generator:bF,asyncGenerator:bF,nodeStream:({value:Q})=>({stream:Q}),webTransform({value:{transform:Q,writableObjectMode:X,readableObjectMode:J}}){let Y=X||J;return{stream:Wm0.fromWeb(Q,{objectMode:Y})}},duplex:({value:{transform:Q}})=>({stream:Q}),native(){}},Vm0={input:{...cs,fileUrl:({value:Q})=>({stream:ms(Q)}),filePath:({value:{file:Q}})=>({stream:ms(Q)}),webStream:({value:Q})=>({stream:CY.fromWeb(Q)}),iterable:({value:Q})=>({stream:CY.from(Q)}),asyncIterable:({value:Q})=>({stream:CY.from(Q)}),string:({value:Q})=>({stream:CY.from(Q)}),uint8Array:({value:Q})=>({stream:CY.from(Hm0.from(Q))})},output:{...cs,fileUrl:({value:Q})=>({stream:ds(Q)}),filePath:({value:{file:Q,append:X}})=>({stream:ds(Q,X?{flags:"a"}:{})}),webStream:({value:Q})=>({stream:Km0.fromWeb(Q)}),iterable:OY,asyncIterable:OY,string:OY,uint8Array:OY}};import{on as Gm0,once as ps}from"node:events";import{PassThrough as Um0,getDefaultHighWaterMark as zm0}from"node:stream";import{finished as os}from"node:stream/promises";function D7(Q){if(!Array.isArray(Q))throw TypeError(`Expected an array, got \`${typeof Q}\`.`);for(let Z of Q)dF(Z);let X=Q.some(({readableObjectMode:Z})=>Z),J=Bm0(Q,X),Y=new rs({objectMode:X,writableHighWaterMark:J,readableHighWaterMark:J});for(let Z of Q)Y.add(Z);return Y}var Bm0=(Q,X)=>{if(Q.length===0)return zm0(X);let J=Q.filter(({readableObjectMode:Y})=>Y===X).map(({readableHighWaterMark:Y})=>Y);return Math.max(...J)};class rs extends Um0{#X=new Set([]);#Y=new Set([]);#J=new Set([]);#Q;#Z=Symbol("unpipe");#V=new WeakMap;add(Q){if(dF(Q),this.#X.has(Q))return;this.#X.add(Q),this.#Q??=Lm0(this,this.#X,this.#Z);let X=Im0({passThroughStream:this,stream:Q,streams:this.#X,ended:this.#Y,aborted:this.#J,onFinished:this.#Q,unpipeEvent:this.#Z});this.#V.set(Q,X),Q.pipe(this,{end:!1})}async remove(Q){if(dF(Q),!this.#X.has(Q))return!1;let X=this.#V.get(Q);if(X===void 0)return!1;return this.#V.delete(Q),Q.unpipe(this),await X,!0}}var Lm0=async(Q,X,J)=>{QK(Q,ns);let Y=new AbortController;try{await Promise.race([Fm0(Q,Y),Mm0(Q,X,J,Y)])}finally{Y.abort(),QK(Q,-ns)}},Fm0=async(Q,{signal:X})=>{try{await os(Q,{signal:X,cleanup:!0})}catch(J){throw ss(Q,J),J}},Mm0=async(Q,X,J,{signal:Y})=>{for await(let[Z]of Gm0(Q,"unpipe",{signal:Y}))if(X.has(Z))Z.emit(J)},dF=(Q)=>{if(typeof Q?.pipe!=="function")throw TypeError(`Expected a readable stream, got: \`${typeof Q}\`.`)},Im0=async({passThroughStream:Q,stream:X,streams:J,ended:Y,aborted:Z,onFinished:q,unpipeEvent:$})=>{QK(Q,is);let H=new AbortController;try{await Promise.race([Pm0(q,X,H),Cm0({passThroughStream:Q,stream:X,streams:J,ended:Y,aborted:Z,controller:H}),Om0({stream:X,streams:J,ended:Y,aborted:Z,unpipeEvent:$,controller:H})])}finally{H.abort(),QK(Q,-is)}if(J.size>0&&J.size===Y.size+Z.size)if(Y.size===0&&Z.size>0)cF(Q);else jm0(Q)},Pm0=async(Q,X,{signal:J})=>{try{if(await Q,!J.aborted)cF(X)}catch(Y){if(!J.aborted)ss(X,Y)}},Cm0=async({passThroughStream:Q,stream:X,streams:J,ended:Y,aborted:Z,controller:{signal:q}})=>{try{if(await os(X,{signal:q,cleanup:!0,readable:!0,writable:!1}),J.has(X))Y.add(X)}catch($){if(q.aborted||!J.has(X))return;if(as($))Z.add(X);else ts(Q,$)}},Om0=async({stream:Q,streams:X,ended:J,aborted:Y,unpipeEvent:Z,controller:{signal:q}})=>{if(await ps(Q,Z,{signal:q}),!Q.readable)return ps(q,"abort",{signal:q});X.delete(Q),J.delete(Q),Y.delete(Q)},jm0=(Q)=>{if(Q.writable)Q.end()},ss=(Q,X)=>{if(as(X))cF(Q);else ts(Q,X)},as=(Q)=>Q?.code==="ERR_STREAM_PREMATURE_CLOSE",cF=(Q)=>{if(Q.readable||Q.writable)Q.destroy()},ts=(Q,X)=>{if(!Q.destroyed)Q.once("error",Nm0),Q.destroy(X)},Nm0=()=>{},QK=(Q,X)=>{let J=Q.getMaxListeners();if(J!==0&&J!==Number.POSITIVE_INFINITY)Q.setMaxListeners(J+X)},ns=2,is=1;import{finished as es}from"node:stream/promises";var OQ=(Q,X)=>{Q.pipe(X),Rm0(Q,X),Dm0(Q,X)},Rm0=async(Q,X)=>{if(N8(Q)||N8(X))return;try{await es(Q,{cleanup:!0,readable:!0,writable:!1})}catch{}lF(X)},lF=(Q)=>{if(Q.writable)Q.end()},Dm0=async(Q,X)=>{if(N8(Q)||N8(X))return;try{await es(X,{cleanup:!0,readable:!1,writable:!0})}catch{}pF(Q)},pF=(Q)=>{if(Q.readable)Q.destroy()};var Qa=(Q,X,J)=>{let Y=new Map;for(let[Z,{stdioItems:q,direction:$}]of Object.entries(X)){for(let{stream:H}of q.filter(({type:K})=>H8.has(K)))wm0(Q,H,$,Z);for(let{stream:H}of q.filter(({type:K})=>!H8.has(K)))Am0({subprocess:Q,stream:H,direction:$,fdNumber:Z,pipeGroups:Y,controller:J})}for(let[Z,q]of Y.entries()){let $=q.length===1?q[0]:D7(q);OQ($,Z)}},wm0=(Q,X,J,Y)=>{if(J==="output")OQ(Q.stdio[Y],X);else OQ(X,Q.stdio[Y]);let Z=Tm0[Y];if(Z!==void 0)Q[Z]=X;Q.stdio[Y]=X},Tm0=["stdin","stdout","stderr"],Am0=({subprocess:Q,stream:X,direction:J,fdNumber:Y,pipeGroups:Z,controller:q})=>{if(X===void 0)return;Em0(X,q);let[$,H]=J==="output"?[X,Q.stdio[Y]]:[Q.stdio[Y],X],K=Z.get($)??[];Z.set($,[...K,H])},Em0=(Q,{signal:X})=>{if(N8(Q))O7(Q,_m0,X)},_m0=2;import{addAbortListener as xm0}from"node:events";var w7=[];w7.push("SIGHUP","SIGINT","SIGTERM");if(process.platform!=="win32")w7.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")w7.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var XK=(Q)=>!!Q&&typeof Q==="object"&&typeof Q.removeListener==="function"&&typeof Q.emit==="function"&&typeof Q.reallyExit==="function"&&typeof Q.listeners==="function"&&typeof Q.kill==="function"&&typeof Q.pid==="number"&&typeof Q.on==="function",nF=Symbol.for("signal-exit emitter"),iF=globalThis,Sm0=Object.defineProperty.bind(Object);class Xa{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(iF[nF])return iF[nF];Sm0(iF,nF,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(Q,X){this.listeners[Q].push(X)}removeListener(Q,X){let J=this.listeners[Q],Y=J.indexOf(X);if(Y===-1)return;if(Y===0&&J.length===1)J.length=0;else J.splice(Y,1)}emit(Q,X,J){if(this.emitted[Q])return!1;this.emitted[Q]=!0;let Y=!1;for(let Z of this.listeners[Q])Y=Z(X,J)===!0||Y;if(Q==="exit")Y=this.emit("afterExit",X,J)||Y;return Y}}class rF{}var vm0=(Q)=>{return{onExit(X,J){return Q.onExit(X,J)},load(){return Q.load()},unload(){return Q.unload()}}};class Ja extends rF{onExit(){return()=>{}}load(){}unload(){}}class Ya extends rF{#X=oF.platform==="win32"?"SIGINT":"SIGHUP";#Y=new Xa;#J;#Q;#Z;#V={};#W=!1;constructor(Q){super();this.#J=Q,this.#V={};for(let X of w7)this.#V[X]=()=>{let J=this.#J.listeners(X),{count:Y}=this.#Y,Z=Q;if(typeof Z.__signal_exit_emitter__==="object"&&typeof Z.__signal_exit_emitter__.count==="number")Y+=Z.__signal_exit_emitter__.count;if(J.length===Y){this.unload();let q=this.#Y.emit("exit",null,X),$=X==="SIGHUP"?this.#X:X;if(!q)Q.kill(Q.pid,$)}};this.#Z=Q.reallyExit,this.#Q=Q.emit}onExit(Q,X){if(!XK(this.#J))return()=>{};if(this.#W===!1)this.load();let J=X?.alwaysLast?"afterExit":"exit";return this.#Y.on(J,Q),()=>{if(this.#Y.removeListener(J,Q),this.#Y.listeners.exit.length===0&&this.#Y.listeners.afterExit.length===0)this.unload()}}load(){if(this.#W)return;this.#W=!0,this.#Y.count+=1;for(let Q of w7)try{let X=this.#V[Q];if(X)this.#J.on(Q,X)}catch(X){}this.#J.emit=(Q,...X)=>{return this.#K(Q,...X)},this.#J.reallyExit=(Q)=>{return this.#G(Q)}}unload(){if(!this.#W)return;this.#W=!1,w7.forEach((Q)=>{let X=this.#V[Q];if(!X)throw Error("Listener not defined for signal: "+Q);try{this.#J.removeListener(Q,X)}catch(J){}}),this.#J.emit=this.#Q,this.#J.reallyExit=this.#Z,this.#Y.count-=1}#G(Q){if(!XK(this.#J))return 0;return this.#J.exitCode=Q||0,this.#Y.emit("exit",this.#J.exitCode,null),this.#Z.call(this.#J,this.#J.exitCode)}#K(Q,...X){let J=this.#Q;if(Q==="exit"&&XK(this.#J)){if(typeof X[0]==="number")this.#J.exitCode=X[0];let Y=J.call(this.#J,Q,...X);return this.#Y.emit("exit",this.#J.exitCode,null),Y}else return J.call(this.#J,Q,...X)}}var oF=globalThis.process,{onExit:Za,load:f$1,unload:g$1}=vm0(XK(oF)?new Ya(oF):new Ja);var qa=(Q,{cleanup:X,detached:J},{signal:Y})=>{if(!X||J)return;let Z=Za(()=>{Q.kill()});xm0(Y,()=>{Z()})};var Ha=({source:Q,sourcePromise:X,boundOptions:J,createNested:Y},...Z)=>{let q=WH(),{destination:$,destinationStream:H,destinationError:K,from:V,unpipeSignal:W}=km0(J,Y,Z),{sourceStream:G,sourceError:U}=hm0(Q,V),{options:z,fileDescriptors:L}=e8.get(Q);return{sourcePromise:X,sourceStream:G,sourceOptions:z,sourceError:U,destination:$,destinationStream:H,destinationError:K,unpipeSignal:W,fileDescriptors:L,startTime:q}},km0=(Q,X,J)=>{try{let{destination:Y,pipeOptions:{from:Z,to:q,unpipeSignal:$}={}}=ym0(Q,X,...J),H=jH(Y,q);return{destination:Y,destinationStream:H,from:Z,unpipeSignal:$}}catch(Y){return{destinationError:Y}}},ym0=(Q,X,J,...Y)=>{if(Array.isArray(J))return{destination:X($a,Q)(J,...Y),pipeOptions:Q};if(typeof J==="string"||J instanceof URL||mL(J)){if(Object.keys(Q).length>0)throw TypeError('Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).');let[Z,q,$]=e3(J,...Y);return{destination:X($a)(Z,q,$),pipeOptions:$}}if(e8.has(J)){if(Object.keys(Q).length>0)throw TypeError("Please use .pipe(options)`command` or .pipe($(options)`command`) instead of .pipe(options)($`command`).");return{destination:J,pipeOptions:Y[0]}}throw TypeError(`The first argument must be a template string, an options object, or an Execa subprocess: ${J}`)},$a=({options:Q})=>({options:{...Q,stdin:"pipe",piped:!0}}),hm0=(Q,X)=>{try{return{sourceStream:LQ(Q,X)}}catch(J){return{sourceError:J}}};var Wa=({sourceStream:Q,sourceError:X,destinationStream:J,destinationError:Y,fileDescriptors:Z,sourceOptions:q,startTime:$})=>{let H=bm0({sourceStream:Q,sourceError:X,destinationStream:J,destinationError:Y});if(H!==void 0)throw sF({error:H,fileDescriptors:Z,sourceOptions:q,startTime:$})},bm0=({sourceStream:Q,sourceError:X,destinationStream:J,destinationError:Y})=>{if(X!==void 0&&Y!==void 0)return Y;if(Y!==void 0)return pF(Q),Y;if(X!==void 0)return lF(J),X},sF=({error:Q,fileDescriptors:X,sourceOptions:J,startTime:Y})=>IQ({error:Q,command:Ka,escapedCommand:Ka,fileDescriptors:X,options:J,startTime:Y,isSync:!1}),Ka="source.pipe(destination)";var Va=async(Q)=>{let[{status:X,reason:J,value:Y=J},{status:Z,reason:q,value:$=q}]=await Q;if(!$.pipedFrom.includes(Y))$.pipedFrom.push(Y);if(Z==="rejected")throw $;if(X==="rejected")throw Y;return $};import{finished as fm0}from"node:stream/promises";var Ga=(Q,X,J)=>{let Y=JK.has(X)?um0(Q,X):gm0(Q,X);return O7(Q,dm0,J.signal),O7(X,cm0,J.signal),mm0(X),Y},gm0=(Q,X)=>{let J=D7([Q]);return OQ(J,X),JK.set(X,J),J},um0=(Q,X)=>{let J=JK.get(X);return J.add(Q),J},mm0=async(Q)=>{try{await fm0(Q,{cleanup:!0,readable:!1,writable:!0})}catch{}JK.delete(Q)},JK=new WeakMap,dm0=2,cm0=1;import{aborted as lm0}from"node:util";var Ua=(Q,X)=>Q===void 0?[]:[pm0(Q,X)],pm0=async(Q,{sourceStream:X,mergedStream:J,fileDescriptors:Y,sourceOptions:Z,startTime:q})=>{await lm0(Q,X),await J.remove(X);let $=Error("Pipe canceled by `unpipeSignal` option.");throw sF({error:$,fileDescriptors:Y,sourceOptions:Z,startTime:q})};var YK=(Q,...X)=>{if(O1(X[0]))return YK.bind(void 0,{...Q,boundOptions:{...Q.boundOptions,...X[0]}});let{destination:J,...Y}=Ha(Q,...X),Z=nm0({...Y,destination:J});return Z.pipe=YK.bind(void 0,{...Q,source:J,sourcePromise:Z,boundOptions:{}}),Z},nm0=async({sourcePromise:Q,sourceStream:X,sourceOptions:J,sourceError:Y,destination:Z,destinationStream:q,destinationError:$,unpipeSignal:H,fileDescriptors:K,startTime:V})=>{let W=im0(Q,Z);Wa({sourceStream:X,sourceError:Y,destinationStream:q,destinationError:$,fileDescriptors:K,sourceOptions:J,startTime:V});let G=new AbortController;try{let U=Ga(X,q,G);return await Promise.race([Va(W),...Ua(H,{sourceStream:X,mergedStream:U,sourceOptions:J,fileDescriptors:K,startTime:V})])}finally{G.abort()}},im0=(Q,X)=>Promise.allSettled([Q,X]);import{setImmediate as Qd0}from"node:timers/promises";import{on as om0}from"node:events";import{getDefaultHighWaterMark as rm0}from"node:stream";var ZK=({subprocessStdout:Q,subprocess:X,binary:J,shouldEncode:Y,encoding:Z,preserveNewlines:q})=>{let $=new AbortController;return sm0(X,$),Ba({stream:Q,controller:$,binary:J,shouldEncode:!Q.readableObjectMode&&Y,encoding:Z,shouldSplit:!Q.readableObjectMode,preserveNewlines:q})},sm0=async(Q,X)=>{try{await Q}catch{}finally{X.abort()}},aF=({stream:Q,onStreamEnd:X,lines:J,encoding:Y,stripFinalNewline:Z,allMixed:q})=>{let $=new AbortController;am0(X,$,Q);let H=Q.readableObjectMode&&!q;return Ba({stream:Q,controller:$,binary:Y==="buffer",shouldEncode:!H,encoding:Y,shouldSplit:!H&&J,preserveNewlines:!Z})},am0=async(Q,X,J)=>{try{await Q}catch{J.destroy()}finally{X.abort()}},Ba=({stream:Q,controller:X,binary:J,shouldEncode:Y,encoding:Z,shouldSplit:q,preserveNewlines:$})=>{let H=om0(Q,"data",{signal:X.signal,highWaterMark:za,highWatermark:za});return tm0({onStdoutChunk:H,controller:X,binary:J,shouldEncode:Y,encoding:Z,shouldSplit:q,preserveNewlines:$})},tF=rm0(!0),za=tF,tm0=async function*({onStdoutChunk:Q,controller:X,binary:J,shouldEncode:Y,encoding:Z,shouldSplit:q,preserveNewlines:$}){let H=em0({binary:J,shouldEncode:Y,encoding:Z,shouldSplit:q,preserveNewlines:$});try{for await(let[K]of Q)yield*R7(K,H,0)}catch(K){if(!X.signal.aborted)throw K}finally{yield*IY(H)}},em0=({binary:Q,shouldEncode:X,encoding:J,shouldSplit:Y,preserveNewlines:Z})=>[rH(Q,J,!X),oH(Q,Z,!Y,{})].filter(Boolean);var La=async({stream:Q,onStreamEnd:X,fdNumber:J,encoding:Y,buffer:Z,maxBuffer:q,lines:$,allMixed:H,stripFinalNewline:K,verboseInfo:V,streamInfo:W})=>{let G=Xd0({stream:Q,onStreamEnd:X,fdNumber:J,encoding:Y,allMixed:H,verboseInfo:V,streamInfo:W});if(!Z){await Promise.all([Jd0(Q),G]);return}let U=vF(K,J),z=aF({stream:Q,onStreamEnd:X,lines:$,encoding:Y,stripFinalNewline:U,allMixed:H}),[L]=await Promise.all([Yd0({stream:Q,iterable:z,fdNumber:J,encoding:Y,maxBuffer:q,lines:$}),G]);return L},Xd0=async({stream:Q,onStreamEnd:X,fdNumber:J,encoding:Y,allMixed:Z,verboseInfo:q,streamInfo:{fileDescriptors:$}})=>{if(!tH({stdioItems:$[J]?.stdioItems,encoding:Y,verboseInfo:q,fdNumber:J}))return;let H=aF({stream:Q,onStreamEnd:X,lines:!0,encoding:Y,stripFinalNewline:!0,allMixed:Z});await js(H,Q,J,q)},Jd0=async(Q)=>{if(await Qd0(),Q.readableFlowing===null)Q.resume()},Yd0=async({stream:Q,stream:{readableObjectMode:X},iterable:J,fdNumber:Y,encoding:Z,maxBuffer:q,lines:$})=>{try{if(X||$)return await fH(J,{maxBuffer:q});if(Z==="buffer")return new Uint8Array(await gH(J,{maxBuffer:q}));return await mH(J,{maxBuffer:q})}catch(H){return Fa(jr({error:H,stream:Q,readableObjectMode:X,lines:$,encoding:Z,fdNumber:Y}))}},eF=async(Q)=>{try{return await Q}catch(X){return Fa(X)}},Fa=({bufferedData:Q})=>hn(Q)?new Uint8Array(Q):Q;import{finished as Zd0}from"node:stream/promises";var jY=async(Q,X,J,{isSameDirection:Y,stopOnExit:Z=!1}={})=>{let q=qd0(Q,J),$=new AbortController;try{await Promise.race([...Z?[J.exitPromise]:[],Zd0(Q,{cleanup:!0,signal:$.signal})])}catch(H){if(!q.stdinCleanedUp)Kd0(H,X,J,Y)}finally{$.abort()}},qd0=(Q,{originalStreams:[X],subprocess:J})=>{let Y={stdinCleanedUp:!1};if(Q===X)$d0(Q,J,Y);return Y},$d0=(Q,X,J)=>{let{_destroy:Y}=Q;Q._destroy=(...Z)=>{Hd0(X,J),Y.call(Q,...Z)}},Hd0=({exitCode:Q,signalCode:X},J)=>{if(Q!==null||X!==null)J.stdinCleanedUp=!0},Kd0=(Q,X,J,Y)=>{if(!Wd0(Q,X,J,Y))throw Q},Wd0=(Q,X,J,Y=!0)=>{if(J.propagating)return Ma(Q)||qK(Q);return J.propagating=!0,QM(J,X)===Y?Ma(Q):qK(Q)},QM=({fileDescriptors:Q},X)=>X!=="all"&&Q[X].direction==="input",qK=(Q)=>Q?.code==="ERR_STREAM_PREMATURE_CLOSE",Ma=(Q)=>Q?.code==="EPIPE";var Ia=({subprocess:Q,encoding:X,buffer:J,maxBuffer:Y,lines:Z,stripFinalNewline:q,verboseInfo:$,streamInfo:H})=>Q.stdio.map((K,V)=>XM({stream:K,fdNumber:V,encoding:X,buffer:J[V],maxBuffer:Y[V],lines:Z[V],allMixed:!1,stripFinalNewline:q,verboseInfo:$,streamInfo:H})),XM=async({stream:Q,fdNumber:X,encoding:J,buffer:Y,maxBuffer:Z,lines:q,allMixed:$,stripFinalNewline:H,verboseInfo:K,streamInfo:V})=>{if(!Q)return;let W=jY(Q,X,V);if(QM(V,X)){await W;return}let[G]=await Promise.all([La({stream:Q,onStreamEnd:W,fdNumber:X,encoding:J,buffer:Y,maxBuffer:Z,lines:q,allMixed:$,stripFinalNewline:H,verboseInfo:K,streamInfo:V}),W]);return G};var Pa=({stdout:Q,stderr:X},{all:J})=>J&&(Q||X)?D7([Q,X].filter(Boolean)):void 0,Ca=({subprocess:Q,encoding:X,buffer:J,maxBuffer:Y,lines:Z,stripFinalNewline:q,verboseInfo:$,streamInfo:H})=>XM({...Vd0(Q,J),fdNumber:"all",encoding:X,maxBuffer:Y[1]+Y[2],lines:Z[1]||Z[2],allMixed:Gd0(Q),stripFinalNewline:q,verboseInfo:$,streamInfo:H}),Vd0=({stdout:Q,stderr:X,all:J},[,Y,Z])=>{let q=Y||Z;if(!q)return{stream:J,buffer:q};if(!Y)return{stream:X,buffer:q};if(!Z)return{stream:Q,buffer:q};return{stream:J,buffer:q}},Gd0=({all:Q,stdout:X,stderr:J})=>Q&&X&&J&&X.readableObjectMode!==J.readableObjectMode;import{once as Ud0}from"node:events";var Oa=(Q)=>VQ(Q,"ipc"),ja=(Q,X)=>{let J=KH(Q);s8({type:"ipc",verboseMessage:J,fdNumber:"ipc",verboseInfo:X})};var Na=async({subprocess:Q,buffer:X,maxBuffer:J,ipc:Y,ipcOutput:Z,verboseInfo:q})=>{if(!Y)return Z;let $=Oa(q),H=A4(X,"ipc"),K=A4(J,"ipc");for await(let V of mF({anyProcess:Q,channel:Q.channel,isSubprocess:!1,ipc:Y,shouldAwait:!1,reference:!0})){if(H)Nr(Q,Z,K),Z.push(V);if($)ja(V,q)}return Z},Ra=async(Q,X)=>{return await Promise.allSettled([Q]),X};var Da=async({subprocess:Q,options:{encoding:X,buffer:J,maxBuffer:Y,lines:Z,timeoutDuration:q,cancelSignal:$,gracefulCancel:H,forceKillAfterDelay:K,stripFinalNewline:V,ipc:W,ipcInput:G},context:U,verboseInfo:z,fileDescriptors:L,originalStreams:B,onInternalError:M,controller:I})=>{let j=Ts(Q,U),D={originalStreams:B,fileDescriptors:L,subprocess:Q,exitPromise:j,propagating:!1},N=Ia({subprocess:Q,encoding:X,buffer:J,maxBuffer:Y,lines:Z,stripFinalNewline:V,verboseInfo:z,streamInfo:D}),k=Ca({subprocess:Q,encoding:X,buffer:J,maxBuffer:Y,lines:Z,stripFinalNewline:V,verboseInfo:z,streamInfo:D}),f=[],S=Na({subprocess:Q,buffer:J,maxBuffer:Y,ipc:W,ipcOutput:f,verboseInfo:z}),p=zd0(B,Q,D),T=Bd0(L,D);try{return await Promise.race([Promise.all([{},Es(j),Promise.all(N),k,S,Qr(Q,G),...p,...T]),M,Ld0(Q,I),...ro(Q,q,U,I),...Lo({subprocess:Q,cancelSignal:$,gracefulCancel:H,context:U,controller:I}),...io({subprocess:Q,cancelSignal:$,gracefulCancel:H,forceKillAfterDelay:K,context:U,controller:I})])}catch(u){return U.terminationReason??="other",Promise.all([{error:u},j,Promise.all(N.map((c)=>eF(c))),eF(k),Ra(S,f),Promise.allSettled(p),Promise.allSettled(T)])}},zd0=(Q,X,J)=>Q.map((Y,Z)=>Y===X.stdio[Z]?void 0:jY(Y,Z,J)),Bd0=(Q,X)=>Q.flatMap(({stdioItems:J},Y)=>J.filter(({value:Z,stream:q=Z})=>D8(q,{checkOpen:!1})&&!N8(q)).map(({type:Z,value:q,stream:$=q})=>jY($,Y,X,{isSameDirection:H8.has(Z),stopOnExit:Z==="native"}))),Ld0=async(Q,{signal:X})=>{let[J]=await Ud0(Q,"error",{signal:X});throw J};var wa=()=>({readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap}),NY=(Q,X,J)=>{let Y=Q[J];if(!Y.has(X))Y.set(X,[]);let Z=Y.get(X),q=t8();return Z.push(q),{resolve:q.resolve.bind(q),promises:Z}},jQ=async({resolve:Q,promises:X},J)=>{Q();let[Y]=await Promise.race([Promise.allSettled([!0,J]),Promise.all([!1,...X])]);return!Y};import{Readable as Fd0}from"node:stream";import{callbackify as Md0}from"node:util";import{finished as Ta}from"node:stream/promises";var JM=async(Q)=>{if(Q===void 0)return;try{await YM(Q)}catch{}},Aa=async(Q)=>{if(Q===void 0)return;try{await ZM(Q)}catch{}},YM=async(Q)=>{await Ta(Q,{cleanup:!0,readable:!1,writable:!0})},ZM=async(Q)=>{await Ta(Q,{cleanup:!0,readable:!0,writable:!1})},$K=async(Q,X)=>{if(await Q,X)throw X},HK=(Q,X,J)=>{if(J&&!qK(J))Q.destroy(J);else if(X)Q.destroy()};var Ea=({subprocess:Q,concurrentStreams:X,encoding:J},{from:Y,binary:Z=!0,preserveNewlines:q=!0}={})=>{let $=Z||h6.has(J),{subprocessStdout:H,waitReadableDestroy:K}=qM(Q,Y,X),{readableEncoding:V,readableObjectMode:W,readableHighWaterMark:G}=$M(H,$),{read:U,onStdoutDataDone:z}=HM({subprocessStdout:H,subprocess:Q,binary:$,encoding:J,preserveNewlines:q}),L=new Fd0({read:U,destroy:Md0(WM.bind(void 0,{subprocessStdout:H,subprocess:Q,waitReadableDestroy:K})),highWaterMark:G,objectMode:W,encoding:V});return KM({subprocessStdout:H,onStdoutDataDone:z,readable:L,subprocess:Q}),L},qM=(Q,X,J)=>{let Y=LQ(Q,X),Z=NY(J,Y,"readableDestroy");return{subprocessStdout:Y,waitReadableDestroy:Z}},$M=({readableEncoding:Q,readableObjectMode:X,readableHighWaterMark:J},Y)=>Y?{readableEncoding:Q,readableObjectMode:X,readableHighWaterMark:J}:{readableEncoding:Q,readableObjectMode:!0,readableHighWaterMark:tF},HM=({subprocessStdout:Q,subprocess:X,binary:J,encoding:Y,preserveNewlines:Z})=>{let q=t8(),$=ZK({subprocessStdout:Q,subprocess:X,binary:J,shouldEncode:!J,encoding:Y,preserveNewlines:Z});return{read(){Id0(this,$,q)},onStdoutDataDone:q}},Id0=async(Q,X,J)=>{try{let{value:Y,done:Z}=await X.next();if(Z)J.resolve();else Q.push(Y)}catch{}},KM=async({subprocessStdout:Q,onStdoutDataDone:X,readable:J,subprocess:Y,subprocessStdin:Z})=>{try{if(await ZM(Q),await Y,await JM(Z),await X,J.readable)J.push(null)}catch(q){await JM(Z),_a(J,q)}},WM=async({subprocessStdout:Q,subprocess:X,waitReadableDestroy:J},Y)=>{if(await jQ(J,X))_a(Q,Y),await $K(X,Y)},_a=(Q,X)=>{HK(Q,Q.readable,X)};import{Writable as Pd0}from"node:stream";import{callbackify as Sa}from"node:util";var va=({subprocess:Q,concurrentStreams:X},{to:J}={})=>{let{subprocessStdin:Y,waitWritableFinal:Z,waitWritableDestroy:q}=VM(Q,J,X),$=new Pd0({...GM(Y,Q,Z),destroy:Sa(zM.bind(void 0,{subprocessStdin:Y,subprocess:Q,waitWritableFinal:Z,waitWritableDestroy:q})),highWaterMark:Y.writableHighWaterMark,objectMode:Y.writableObjectMode});return UM(Y,$),$},VM=(Q,X,J)=>{let Y=jH(Q,X),Z=NY(J,Y,"writableFinal"),q=NY(J,Y,"writableDestroy");return{subprocessStdin:Y,waitWritableFinal:Z,waitWritableDestroy:q}},GM=(Q,X,J)=>({write:Cd0.bind(void 0,Q),final:Sa(Od0.bind(void 0,Q,X,J))}),Cd0=(Q,X,J,Y)=>{if(Q.write(X,J))Y();else Q.once("drain",Y)},Od0=async(Q,X,J)=>{if(await jQ(J,X)){if(Q.writable)Q.end();await X}},UM=async(Q,X,J)=>{try{if(await YM(Q),X.writable)X.end()}catch(Y){await Aa(J),xa(X,Y)}},zM=async({subprocessStdin:Q,subprocess:X,waitWritableFinal:J,waitWritableDestroy:Y},Z)=>{if(await jQ(J,X),await jQ(Y,X))xa(Q,Z),await $K(X,Z)},xa=(Q,X)=>{HK(Q,Q.writable,X)};import{Duplex as jd0}from"node:stream";import{callbackify as Nd0}from"node:util";var ka=({subprocess:Q,concurrentStreams:X,encoding:J},{from:Y,to:Z,binary:q=!0,preserveNewlines:$=!0}={})=>{let H=q||h6.has(J),{subprocessStdout:K,waitReadableDestroy:V}=qM(Q,Y,X),{subprocessStdin:W,waitWritableFinal:G,waitWritableDestroy:U}=VM(Q,Z,X),{readableEncoding:z,readableObjectMode:L,readableHighWaterMark:B}=$M(K,H),{read:M,onStdoutDataDone:I}=HM({subprocessStdout:K,subprocess:Q,binary:H,encoding:J,preserveNewlines:$}),j=new jd0({read:M,...GM(W,Q,G),destroy:Nd0(Rd0.bind(void 0,{subprocessStdout:K,subprocessStdin:W,subprocess:Q,waitReadableDestroy:V,waitWritableFinal:G,waitWritableDestroy:U})),readableHighWaterMark:B,writableHighWaterMark:W.writableHighWaterMark,readableObjectMode:L,writableObjectMode:W.writableObjectMode,encoding:z});return KM({subprocessStdout:K,onStdoutDataDone:I,readable:j,subprocess:Q,subprocessStdin:W}),UM(W,j,K),j},Rd0=async({subprocessStdout:Q,subprocessStdin:X,subprocess:J,waitReadableDestroy:Y,waitWritableFinal:Z,waitWritableDestroy:q},$)=>{await Promise.all([WM({subprocessStdout:Q,subprocess:J,waitReadableDestroy:Y},$),zM({subprocessStdin:X,subprocess:J,waitWritableFinal:Z,waitWritableDestroy:q},$)])};var BM=(Q,X,{from:J,binary:Y=!1,preserveNewlines:Z=!1}={})=>{let q=Y||h6.has(X),$=LQ(Q,J),H=ZK({subprocessStdout:$,subprocess:Q,binary:q,shouldEncode:!0,encoding:X,preserveNewlines:Z});return Dd0(H,$,Q)},Dd0=async function*(Q,X,J){try{yield*Q}finally{if(X.readable)X.destroy();await J}};var ya=(Q,{encoding:X})=>{let J=wa();Q.readable=Ea.bind(void 0,{subprocess:Q,concurrentStreams:J,encoding:X}),Q.writable=va.bind(void 0,{subprocess:Q,concurrentStreams:J}),Q.duplex=ka.bind(void 0,{subprocess:Q,concurrentStreams:J,encoding:X}),Q.iterable=BM.bind(void 0,Q,X),Q[Symbol.asyncIterator]=BM.bind(void 0,Q,X,{})};var ha=(Q,X)=>{for(let[J,Y]of Td0){let Z=Y.value.bind(X);Reflect.defineProperty(Q,J,{...Y,value:Z})}},wd0=(async()=>{})().constructor.prototype,Td0=["then","catch","finally"].map((Q)=>[Q,Reflect.getOwnPropertyDescriptor(wd0,Q)]);var ba=(Q,X,J,Y)=>{let{file:Z,commandArguments:q,command:$,escapedCommand:H,startTime:K,verboseInfo:V,options:W,fileDescriptors:G}=_d0(Q,X,J),{subprocess:U,promise:z}=vd0({file:Z,commandArguments:q,options:W,startTime:K,verboseInfo:V,command:$,escapedCommand:H,fileDescriptors:G});return U.pipe=YK.bind(void 0,{source:U,sourcePromise:z,boundOptions:{},createNested:Y}),ha(U,z),e8.set(U,{options:W,fileDescriptors:G}),U},_d0=(Q,X,J)=>{let{command:Y,escapedCommand:Z,startTime:q,verboseInfo:$}=VH(Q,X,J),{file:H,commandArguments:K,options:V}=xH(Q,X,J),W=Sd0(V),G=ls(W,$);return{file:H,commandArguments:K,command:Y,escapedCommand:Z,startTime:q,verboseInfo:$,options:W,fileDescriptors:G}},Sd0=({timeout:Q,signal:X,...J})=>{if(X!==void 0)throw TypeError('The "signal" option has been renamed to "cancelSignal" instead.');return{...J,timeoutDuration:Q}},vd0=({file:Q,commandArguments:X,options:J,startTime:Y,verboseInfo:Z,command:q,escapedCommand:$,fileDescriptors:H})=>{let K;try{K=Ed0(...kH(Q,X,J))}catch(L){return us({error:L,command:q,escapedCommand:$,fileDescriptors:H,options:J,startTime:Y,verboseInfo:Z})}let V=new AbortController;Ad0(Number.POSITIVE_INFINITY,V.signal);let W=[...K.stdio];Qa(K,H,V),qa(K,J,V);let G={},U=t8();K.kill=zo.bind(void 0,{kill:K.kill.bind(K),options:J,onInternalError:U,context:G,controller:V}),K.all=Pa(K,J),ya(K,J),bs(K,J);let z=xd0({subprocess:K,options:J,startTime:Y,verboseInfo:Z,fileDescriptors:H,originalStreams:W,command:q,escapedCommand:$,context:G,onInternalError:U,controller:V});return{subprocess:K,promise:z}},xd0=async({subprocess:Q,options:X,startTime:J,verboseInfo:Y,fileDescriptors:Z,originalStreams:q,command:$,escapedCommand:H,context:K,onInternalError:V,controller:W})=>{let[G,[U,z],L,B,M]=await Da({subprocess:Q,options:X,context:K,verboseInfo:Y,fileDescriptors:Z,originalStreams:q,onInternalError:V,controller:W});W.abort(),V.resolve();let I=L.map((N,k)=>S4(N,X,k)),j=S4(B,X,"all"),D=kd0({errorInfo:G,exitCode:U,signal:z,stdio:I,all:j,ipcOutput:M,context:K,options:X,command:$,escapedCommand:H,startTime:J});return PQ(D,Y,X)},kd0=({errorInfo:Q,exitCode:X,signal:J,stdio:Y,all:Z,ipcOutput:q,context:$,options:H,command:K,escapedCommand:V,startTime:W})=>("error"in Q)?MY({error:Q.error,command:K,escapedCommand:V,timedOut:$.terminationReason==="timeout",isCanceled:$.terminationReason==="cancel"||$.terminationReason==="gracefulCancel",isGracefullyCanceled:$.terminationReason==="gracefulCancel",isMaxBuffer:Q.error instanceof E4,isForcefullyTerminated:$.isForcefullyTerminated,exitCode:X,signal:J,stdio:Y,all:Z,ipcOutput:q,options:H,startTime:W,isSync:!1}):cH({command:K,escapedCommand:V,stdio:Y,all:Z,ipcOutput:q,options:H,startTime:W});var KK=(Q,X)=>{let J=Object.fromEntries(Object.entries(X).map(([Y,Z])=>[Y,yd0(Y,Q[Y],Z)]));return{...Q,...J}},yd0=(Q,X,J)=>{if(hd0.has(Q)&&O1(X)&&O1(J))return{...X,...J};return J},hd0=new Set(["env",...iL]);var F5=(Q,X,J,Y)=>{let Z=($,H,K)=>F5($,H,J,K),q=(...$)=>bd0({mapArguments:Q,deepOptions:J,boundOptions:X,setBoundExeca:Y,createNested:Z},...$);if(Y!==void 0)Y(q,Z,X);return q},bd0=({mapArguments:Q,deepOptions:X={},boundOptions:J={},setBoundExeca:Y,createNested:Z},q,...$)=>{if(O1(q))return Z(Q,KK(J,q),Y);let{file:H,commandArguments:K,options:V,isSync:W}=fd0({mapArguments:Q,firstArgument:q,nextArguments:$,deepOptions:X,boundOptions:J});return W?Ss(H,K,V):ba(H,K,V,Z)},fd0=({mapArguments:Q,firstArgument:X,nextArguments:J,deepOptions:Y,boundOptions:Z})=>{let q=dn(X)?cn(X,J):[X,...J],[$,H,K]=e3(...q),V=KK(KK(Y,Z),K),{file:W=$,commandArguments:G=H,options:U=V,isSync:z=!1}=Q({file:$,commandArguments:H,options:V});return{file:W,commandArguments:G,options:U,isSync:z}};var fa=({file:Q,commandArguments:X})=>ua(Q,X),ga=({file:Q,commandArguments:X})=>({...ua(Q,X),isSync:!0}),ua=(Q,X)=>{if(X.length>0)throw TypeError(`The command and its arguments must be passed as a single string: ${Q} ${X}.`);let[J,...Y]=gd0(Q);return{file:J,commandArguments:Y}},gd0=(Q)=>{if(typeof Q!=="string")throw TypeError(`The command must be a string: ${String(Q)}.`);let X=Q.trim();if(X==="")return[];let J=[];for(let Y of X.split(ud0)){let Z=J.at(-1);if(Z&&Z.endsWith("\\"))J[J.length-1]=`${Z.slice(0,-1)} ${Y}`;else J.push(Y)}return J},ud0=/ +/g;var ma=(Q,X,J)=>{Q.sync=X(md0,J),Q.s=Q.sync},da=({options:Q})=>ca(Q),md0=({options:Q})=>({...ca(Q),isSync:!0}),ca=(Q)=>({options:{...dd0(Q),...Q}}),dd0=({input:Q,inputFile:X,stdio:J})=>Q===void 0&&X===void 0&&J===void 0?{stdin:"inherit"}:{},la={preferLocal:!0};var pa=F5(()=>({})),AK1=F5(()=>({isSync:!0})),EK1=F5(fa),_K1=F5(ga),SK1=F5(ao),vK1=F5(da,{},la,ma),{sendMessage:xK1,getOneMessage:kK1,getEachMessage:yK1,getCancelSignal:hK1}=fs();function na(){let[Q="",X=""]=process.argv,J=(q)=>q.replaceAll("\\","/"),Y=`"${J(Q)}" "${J(X)}" internal snapshot`,Z=[{hooks:[{type:"command",command:Y}]}];return JSON.stringify({hooks:{SessionStart:[{matcher:"startup",hooks:[{type:"command",command:Y}]}],UserPromptSubmit:Z,Stop:Z,StopFailure:Z,PostToolUseFailure:Z}})}var ia={tool_search:{name:"ENABLE_TOOL_SEARCH",value:"true"},inherit_subagent_models:{name:"CLAUDE_CODE_SUBAGENT_MODEL",value:"inherit"}};function cd0(Q){let X={};for(let J of Q){let Y=ia[J];if(!Y){console.warn(`Ignoring unknown env option from config: ${J}`);continue}X[Y.name]=Y.value}return X}var ld0=[/^ANTHROPIC_/,/^CLAUDE_CODE_/],pd0=new Set(["ONFRONTIER_SNAPSHOT_REPO",...Object.values(ia).map((Q)=>Q.name)]);function nd0(){let Q={};for(let[X,J]of Object.entries(process.env)){if(J===void 0)continue;if(pd0.has(X))continue;if(ld0.some((Y)=>Y.test(X)))continue;Q[X]=J}return Q}async function oa(Q,X=[]){let J={...cd0(Q.envOptions??[]),ANTHROPIC_BASE_URL:T6.router.url,ANTHROPIC_AUTH_TOKEN:Q.apiKey,ANTHROPIC_MODEL:Q.modelId,...Q.snapshotRepo?{ONFRONTIER_SNAPSHOT_REPO:"1"}:{}},Y=["--model",Q.modelId,"--settings",na()];await pa("npx",["--yes",`${Q.clientType}@${Q.clientVersion}`,...Y,...X],{stdio:"inherit",env:{...nd0(),...J}})}var C10=H1(P10(),1);import{randomUUID as in0}from"node:crypto";var yK=null;async function on0(Q){if(!yK)yK=new C10.StatsigClient(T6.statsig.clientKey,{userID:Q,customIDs:{CliSessionId:in0()}}),await yK.initializeAsync();return yK}async function O10(Q){return(await on0(Q)).getParameterStore("onfrontier-cli")}var rn0="@anthropic-ai/claude-code",sn0="latest",an0=[];async function j10(Q=[]){HQ("On Frontier start");let X=await U5.currentUser();if(!X)w6("Not logged in. Run `onfrontier login` first."),process.exit(1);let J=HY();J.start("Checking your tasks");let Y;try{Y=await U5.sessionConfig()}catch(z){J.stop("Failed to check your tasks"),w6(z.message),process.exit(1)}if(Y.tasks.length===0)J.stop("No active tasks"),w6("Your account can't use the CLI at this time."),process.exit(1);J.stop(`${Y.tasks.length} active task${Y.tasks.length===1?"":"s"}`);let Z=await vn({message:"On Frontier snapshots and uploads your working directory, project contents and other session data for model evaluation and training purposes. Do not run in folders containing personal data or other sensitive information. Continue?",initialValue:!1});if(R4(Z)||!Z)w6("Cancelled."),process.exit(0);let q=await tn0(Y.tasks),$=await en0(q),H=await O10(q.task_id),K=H.get("client_type",rn0),V=H.get("client_version",sn0),W=H.get("env",an0),G=H.get("snapshot_repo",!1),U=w4.getApiKey();if(!U||U.ownerId!==X.id){let z=HY();z.start("Creating API key");let L;try{L=await U5.createRouterKey()}catch(B){z.stop("Failed to create an API key"),w6(B.message),process.exit(1)}U={...L,ownerId:X.id},w4.setApiKey(U),z.stop("Created and stored API key")}P7(`Starting ${K} on "${q.name}" as ${$}`),await oa({clientType:K,clientVersion:V,apiKey:U.key,modelId:$,envOptions:W,snapshotRepo:G},Q)}async function tn0(Q){if(Q.length===1)return D4.info(`Task: ${Q[0].name}`),Q[0];let X=await gL({message:"Which task are you working on?",options:Q.map((J)=>({value:J.task_id,label:J.name,hint:J.models.join(", ")}))});if(R4(X))w6("Cancelled."),process.exit(0);return Q.find((J)=>J.task_id===X)}async function en0(Q){if(Q.models.length===0)w6("This task has no models configured. Contact support."),process.exit(1);if(Q.models.length===1)return D4.info(`Model: ${Q.models[0]}`),Q.models[0];let X=await gL({message:"Which model are you running?",options:Q.models.map((J)=>({value:J,label:J}))});if(R4(X))w6("Cancelled."),process.exit(0);return X}var Xi0=Qi0(import.meta.url),{version:N10}=Xi0("../package.json");async function R10(){try{let Q=await fetch("https://registry.npmjs.org/@onfrontier/cli/latest",{signal:AbortSignal.timeout(3000)}),{version:X}=await Q.json();if(w10.default.gt(X,N10))console.error(`A new version of @onfrontier/cli is available: ${X} (current: ${N10})`),console.error(`
148
+ Update with:
149
+ npm install -g @onfrontier/cli@latest
150
+ `),process.exit(1)}catch{}}var T10=Tj(`
151
+ Usage
152
+ $ onfrontier <command>
153
+
154
+ Commands
155
+ login Sign in with your On Frontier account
156
+ logout Sign out and clear stored credentials
157
+ start Launch a Claude Code session on one of your active tasks
158
+
159
+ Options
160
+ --version Show version number
161
+ --help Show help
162
+
163
+ Examples
164
+ $ onfrontier login
165
+ $ onfrontier start
166
+ $ onfrontier --version
167
+ `,{importMeta:import.meta}),[HI,...D10]=T10.input;switch(HI){case"login":{await R10(),await xn();break}case"logout":{kn();break}case"start":{await R10(),await j10(D10);break}case"internal":{let[Q,...X]=D10;if(Q==="snapshot")await Kn();else if(Q==="snapshot-upload"&&X[0])await Gn(X[0]);process.exit(0)}default:{if(HI)console.error(`Unknown command: ${HI}. Run \`onfrontier --help\` for available commands.`),process.exit(1);T10.showHelp()}}