@shopify/create-hydrogen 5.0.30 → 5.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acorn-CAM24XUM.js → acorn-D3XGYVX5.js} +1 -1
- package/dist/{angular-DNP7YRKH.js → angular-5D7723Z5.js} +1 -1
- package/dist/assets/hydrogen/starter/CHANGELOG.md +24 -0
- package/dist/assets/hydrogen/starter/app/components/PaginatedResourceSection.tsx +24 -4
- package/dist/assets/hydrogen/starter/app/components/ProductPrice.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +1 -1
- package/dist/assets/hydrogen/starter/package.json +4 -4
- package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +0 -11
- package/dist/{babel-Q7WGFTYC.js → babel-W4SSPZLL.js} +1 -1
- package/dist/{chunk-SOYTF5NM.js → chunk-3UT44YA3.js} +1 -1
- package/dist/{chunk-SSCFXJTG.js → chunk-6YLOOASI.js} +1 -1
- package/dist/{chunk-FOFKID43.js → chunk-ER74KRZR.js} +1 -1
- package/dist/{chunk-TDF32DPQ.js → chunk-G5QFWJ2V.js} +1 -1
- package/dist/{chunk-KP5HTXEK.js → chunk-S47JF7KY.js} +1 -1
- package/dist/{chunk-MLIZM3D3.js → chunk-SXLE2FF3.js} +1 -1
- package/dist/chunk-USCGCV2A.js +51 -0
- package/dist/{chunk-6JMCCVMB.js → chunk-VPI7X7QP.js} +407 -403
- package/dist/create-app.js +58 -58
- package/dist/{del-SDQ4S47S.js → del-LPJOJWPV.js} +1 -1
- package/dist/devtools-IOYTEV2Q.js +8 -0
- package/dist/error-handler-XM4EMAFK.js +2 -0
- package/dist/{estree-V6MYQTSR.js → estree-4EWMUZGX.js} +1 -1
- package/dist/{flow-6QBD7VFZ.js → flow-ZZA33LBV.js} +1 -1
- package/dist/{glimmer-F25SYUSG.js → glimmer-LVONIDIY.js} +1 -1
- package/dist/{graphql-DIAYZHIY.js → graphql-2VR4PPK4.js} +1 -1
- package/dist/{html-AE7KHAJ7.js → html-4U2T6EDM.js} +1 -1
- package/dist/{is-wsl-7NORHMI2.js → is-wsl-372MA7ML.js} +1 -1
- package/dist/{markdown-W7E2MOQ2.js → markdown-AQL464P2.js} +1 -1
- package/dist/{meriyah-37WUJX22.js → meriyah-NB5R4FHL.js} +1 -1
- package/dist/{morph-IIMCOPW3.js → morph-XDL3KZUY.js} +1 -1
- package/dist/{multipart-parser-JT5WYXDW.js → multipart-parser-2PO3V5GO.js} +1 -1
- package/dist/{open-VLBBYVPL.js → open-PS3773TT.js} +1 -1
- package/dist/{out-YA75DDJD.js → out-JE4S4AHU.js} +1 -1
- package/dist/{postcss-7X2D3S46.js → postcss-QLC4AY6Q.js} +1 -1
- package/dist/{typescript-AXPPFPUX.js → typescript-SBIJ6HI3.js} +1 -1
- package/dist/{yaml-U74YVCK4.js → yaml-OHXFJGCG.js} +1 -1
- package/package.json +2 -2
- package/dist/assets/hydrogen/starter/app/routes/api.$version.[graphql.json].tsx +0 -14
- package/dist/chunk-AMAQOLRU.js +0 -51
- package/dist/devtools-RYOXA5H7.js +0 -8
- package/dist/error-handler-SA6VDSNI.js +0 -2
- /package/dist/{chunk-Y52UPHAG.js → chunk-LFSGY5IW.js} +0 -0
package/dist/create-app.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
|
|
3
|
-
import{a as ht}from"./chunk-
|
|
4
|
-
`,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}var _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(e,t){return hasOwnProperty.call(e,t)?!0:(t==="__proto__"&&defineProperty(e,"__proto__",descriptor),!1)}var INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){return e===null||typeof e!="object"?!1:e[_type]===INLINE_TABLE}var TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable(e){return e===null||typeof e!="object"?!1:e[_type]===TABLE}var _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){return e===null||typeof e!="object"?!1:e[_type]===INLINE_LIST}var LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){return e===null||typeof e!="object"?!1:e[_type]===LIST}var _custom;try{let utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(e){}var _inspect=_custom||"inspect",BoxedBigInt=class{constructor(t){try{this.value=global.BigInt.asIntN(64,t)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},INTEGER=Symbol("integer");function Integer(e){let t=Number(e);return Object.is(t,-0)&&(t=0),global.BigInt&&!Number.isSafeInteger(t)?new BoxedBigInt(e):Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}function isInteger(e){return e===null||typeof e!="object"?!1:e[_type]===INTEGER}var FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){return e===null||typeof e!="object"?!1:e[_type]===FLOAT}function tomlType(e){let t=typeof e;if(t==="object"){if(e===null)return"null";if(e instanceof Date)return"datetime";if(_type in e)switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return t}function makeParserClass(e){class t extends e{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===e.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(n){let i=this.ctx,s=n.key.pop();for(let u of n.key){if(hasKey(i,u)&&(!isTable(i[u])||i[u][_declared]))throw this.error(new TomlError("Can't redefine existing key"));i=i[u]=i[u]||Table()}if(hasKey(i,s))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(n.value)||isFloat(n.value)?i[s]=n.value.valueOf():i[s]=n.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(n){return this.state.resultTable?this.state.resultTable.push(n):this.state.resultTable=[n],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){if(this.char===CHAR_PERIOD)return this.next(this.parseAssignKeywordPostDot);if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.goto(this.parseAssignEqual)}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(n){return this.returnNow({key:this.state.resultTable,value:n})}parseComment(){do if(this.char===e.END||this.char===CTRL_J)return this.return();while(this.nextChar())}parseTableOrList(){if(this.char===CHAR_LSQB)this.next(this.parseList);else return this.goto(this.parseTable)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(n){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,n)&&(!isTable(this.ctx[n])||this.ctx[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));return this.ctx=this.ctx[n]=this.ctx[n]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,n))this.ctx=this.ctx[n]=Table();else if(isTable(this.ctx[n]))this.ctx=this.ctx[n];else if(isList(this.ctx[n]))this.ctx=this.ctx[n][this.ctx[n].length-1];else throw this.error(new TomlError("Can't redefine existing key"));return this.next(this.parseTableNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(n){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,n)||(this.ctx[n]=List()),isInlineList(this.ctx[n]))throw this.error(new TomlError("Can't extend an inline array"));if(isList(this.ctx[n])){let i=Table();this.ctx[n].push(i),this.ctx=i}else throw this.error(new TomlError("Can't redefine an existing key"));return this.next(this.parseListEnd)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,n))this.ctx=this.ctx[n]=Table();else{if(isInlineList(this.ctx[n]))throw this.error(new TomlError("Can't extend an inline array"));if(isInlineTable(this.ctx[n]))throw this.error(new TomlError("Can't extend an inline table"));if(isList(this.ctx[n]))this.ctx=this.ctx[n][this.ctx[n].length-1];else if(isTable(this.ctx[n]))this.ctx=this.ctx[n];else throw this.error(new TomlError("Can't redefine an existing key"))}return this.next(this.parseListNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseListEnd(n){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===e.END)throw this.error(new TomlError("Key without value"));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(n){return this.returnNow(n)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===CHAR_f)return this.state.buf==="-"?this.return(-1/0):this.return(1/0);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===e.END)throw this.error(new TomlError("Key ended without value"));if(isAlphaNumHyphen(this.char))this.consume();else{if(this.state.buf.length===0)throw this.error(new TomlError("Empty bare keys are not allowed"));return this.returnNow()}}while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===CHAR_APOS)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===CHAR_QUOT)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(n){return this.state.buf+=n,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let n="\\u00";return this.char<16&&(n+="0"),n+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${n} instead`))}recordMultiEscapeReplacement(n){return this.state.buf+=n,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError("Can't escape whitespace"))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError("Unknown escape character: "+this.char))}parseUnicodeReturn(n){try{let i=parseInt(n,16);if(i>=SURROGATE_FIRST&&i<=SURROGATE_LAST)throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(i))}catch(i){throw this.error(TomlError.wrap(i))}}parseSmallUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=4)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseLargeUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=8)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(isDigit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{let n=Integer(this.state.buf);if(n.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(n)}}}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNumberFloat(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberFloat);if(isDigit(this.char))this.consume();else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent);else throw this.error(new TomlError("Unexpected character, expected -, + or digit"))}parseNumberExponent(){if(isDigit(this.char))this.consume();else return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder):this.returnNow(Float(this.state.buf))}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberInteger);if(isDigit(this.char))this.consume(),this.state.buf.length>4&&this.next(this.parseNumberInteger);else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_HYPHEN?this.goto(this.parseDateTime):this.char===CHAR_COLON?this.goto(this.parseOnlyTimeHour):this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char))return this.consume();if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);throw this.error(new TomlError("Expected digit while parsing year part of a date"))}else{if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}}parseNumberBaseOrDateTime(){return this.char===CHAR_b?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===CHAR_o?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===CHAR_x?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===CHAR_PERIOD?this.goto(this.parseNumberInteger):isDigit(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(isHexit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let n=Integer(this.state.buf);if(n.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(n)}}}parseIntegerOct(){if(isOctit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let n=Integer(this.state.buf);if(n.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(n)}}}parseIntegerBin(){if(isBit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let n=Integer(this.state.buf);if(n.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(n)}}}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}else{if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+"-"+this.state.buf));if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new TomlError("Incomplete datetime"))}}parseTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}else throw this.error(new TomlError("Incomplete datetime"))}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.next(this.parseOnlyTimeFractionMaybe)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char===CHAR_PERIOD)this.state.buf="",this.next(this.parseOnlyTimeFraction);else return this.return(createTime(this.state.result))}parseOnlyTimeFraction(){if(isDigit(this.char))this.consume();else if(this.atEndOfWord()){if(this.state.buf.length===0)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else{if(this.state.buf.length===1)throw this.error(new TomlError("Expected digit in milliseconds"));if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}}parseTimeZoneHour(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseTimeZoneSep(){if(this.char===CHAR_COLON)this.consume(),this.next(this.parseTimeZoneMin);else throw this.error(new TomlError("Unexpected character in datetime, expected colon"))}parseTimeZoneMin(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseBoolean(){if(this.char===CHAR_t)return this.consume(),this.next(this.parseTrue_r);if(this.char===CHAR_f)return this.consume(),this.next(this.parseFalse_a)}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===e.END)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(n){if(this.state.resultArr){let i=this.state.resultArr[_contentType],s=tomlType(n);if(i!==s)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${i} and ${s}`))}else this.state.resultArr=InlineList(tomlType(n));return isFloat(n)||isInteger(n)?this.state.resultArr.push(n.valueOf()):this.state.resultArr.push(n),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(n){let i=this.state.resultTable,s=n.key.pop();for(let u of n.key){if(hasKey(i,u)&&(!isTable(i[u])||i[u][_declared]))throw this.error(new TomlError("Can't redefine existing key"));i=i[u]=i[u]||Table()}if(hasKey(i,s))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(n.value)||isFloat(n.value)?i[s]=n.value.valueOf():i[s]=n.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}return t}});var zs=z((hj,Td)=>{"use strict";_();Td.exports=ow;function ow(e,t){if(e.pos==null||e.line==null)return e;let r=e.message;if(r+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:
|
|
3
|
+
import{a as ht}from"./chunk-3UT44YA3.js";import{$ as Wh,A as xs,Aa as fo,B as ks,Ba as Hs,C as Mh,Ca as ho,D as ao,Da as fd,E as ne,Ea as hd,F as jh,Fa as po,G as Ps,Ga as Do,H as $h,Ha as qs,I as Hh,Ia as dd,J as qh,Ja as pd,K as Ke,Ka as mo,L as oo,La as uw,M as at,Ma as Dd,N as Os,O as Te,P as lo,Pa as md,Q as Uh,R as Pe,S as _r,T as Oe,U as yr,V as Is,W as Tn,X as Ls,Y as ge,Z as Gh,_ as Ns,a as mi,aa as Vh,b as te,ba as Yh,c as Ue,ca as zh,d as Mt,da as Ms,e as ze,ea as Kh,f as Sn,fa as js,g as Ss,ga as Jh,h as Bh,ha as Xh,i as Rs,ia as Qh,j as xh,ja as Zh,k as Ts,ka as ed,l as kh,la as $s,m as gi,ma as td,n as Ph,na as rd,o as mr,oa as nd,p as Oh,pa as id,q as Ih,qa as _i,r as Bs,ra as Ge,s as Lh,sa as sd,t as Ft,ta as yi,u as Rn,ua as ud,v as ft,va as ad,w as Nh,wa as od,x as uo,xa as ld,y as St,ya as co,z as gr,za as cd}from"./chunk-VPI7X7QP.js";import{b as iw}from"./chunk-G5QFWJ2V.js";import"./chunk-6YLOOASI.js";import{f as sw}from"./chunk-ER74KRZR.js";import"./chunk-S47JF7KY.js";import"./chunk-USCGCV2A.js";import"./chunk-SXLE2FF3.js";import{a as ye,c as Y,d as nw,e as bt,i as _}from"./chunk-LFSGY5IW.js";var _d=Y((ej,gd)=>{"use strict";_();var Zr=class e extends Error{constructor(t,r,n){super("[ParserError] "+t,r,n),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}},Us=class{constructor(t){this.parser=t,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}},Ei=class{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new Us(this.parseStart)}parse(t){if(t.length===0||t.length==null)return;this._buf=String(t),this.ii=-1,this.char=-1;let r;for(;r===!1||this.nextChar();)r=this.runOne();this._buf=null}nextChar(){return this.char===10&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii<this._buf.length}runOne(){return this.state.parser.call(this,this.state.returned)}finish(){this.char=1114112;let t;do t=this.state.parser,this.runOne();while(this.state.parser!==t);return this.ctx=null,this.state=null,this._buf=null,this.obj}next(t){if(typeof t!="function")throw new Zr("Tried to set state to non-existent state: "+JSON.stringify(t));this.state.parser=t}goto(t){return this.next(t),this.runOne()}call(t,r){r&&this.next(r),this.stack.push(this.state),this.state=new Us(t)}callNow(t,r){return this.call(t,r),this.runOne()}return(t){if(this.stack.length===0)throw this.error(new Zr("Stack underflow"));t===void 0&&(t=this.state.buf),this.state=this.stack.pop(),this.state.returned=t}returnNow(t){return this.return(t),this.runOne()}consume(){if(this.char===1114112)throw this.error(new Zr("Unexpected end-of-buffer"));this.state.buf+=this._buf[this.ii]}error(t){return t.line=this.line,t.col=this.col,t.pos=this.pos,t}parseStart(){throw new Zr("Must declare a parseStart method")}};Ei.END=1114112;Ei.Error=Zr;gd.exports=Ei});var Ed=Y((rj,yd)=>{"use strict";_();yd.exports=e=>{let t=new Date(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var Gs=Y((ij,vd)=>{"use strict";_();vd.exports=(e,t)=>{for(t=String(t);t.length<e;)t="0"+t;return t}});var Cd=Y((uj,Fd)=>{"use strict";_();var Bn=Gs(),go=class extends Date{constructor(t){super(t+"Z"),this.isFloating=!0}toISOString(){let t=`${this.getUTCFullYear()}-${Bn(2,this.getUTCMonth()+1)}-${Bn(2,this.getUTCDate())}`,r=`${Bn(2,this.getUTCHours())}:${Bn(2,this.getUTCMinutes())}:${Bn(2,this.getUTCSeconds())}.${Bn(3,this.getUTCMilliseconds())}`;return`${t}T${r}`}};Fd.exports=e=>{let t=new go(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var bd=Y((oj,wd)=>{"use strict";_();var Ad=Gs(),aw=global.Date,_o=class extends aw{constructor(t){super(t),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${Ad(2,this.getUTCMonth()+1)}-${Ad(2,this.getUTCDate())}`}};wd.exports=e=>{let t=new _o(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var Rd=Y((cj,Sd)=>{"use strict";_();var Ws=Gs(),yo=class extends Date{constructor(t){super(`0000-01-01T${t}Z`),this.isTime=!0}toISOString(){return`${Ws(2,this.getUTCHours())}:${Ws(2,this.getUTCMinutes())}:${Ws(2,this.getUTCSeconds())}.${Ws(3,this.getUTCMilliseconds())}`}};Sd.exports=e=>{let t=new yo(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var Vs=Y((exports,module)=>{"use strict";_();module.exports=makeParserClass(_d());module.exports.makeParserClass=makeParserClass;var TomlError=class e extends Error{constructor(t){super(t),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,e),this.fromTOML=!0,this.wrapped=null}};TomlError.wrap=e=>{let t=new TomlError(e.message);return t.code=e.code,t.wrapped=e,t};module.exports.TomlError=TomlError;var createDateTime=Ed(),createDateTimeFloat=Cd(),createDate=bd(),createTime=Rd(),CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:" ",[CHAR_n]:`
|
|
4
|
+
`,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}var _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(e,t){return hasOwnProperty.call(e,t)?!0:(t==="__proto__"&&defineProperty(e,"__proto__",descriptor),!1)}var INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){return e===null||typeof e!="object"?!1:e[_type]===INLINE_TABLE}var TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable(e){return e===null||typeof e!="object"?!1:e[_type]===TABLE}var _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){return e===null||typeof e!="object"?!1:e[_type]===INLINE_LIST}var LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){return e===null||typeof e!="object"?!1:e[_type]===LIST}var _custom;try{let utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(e){}var _inspect=_custom||"inspect",BoxedBigInt=class{constructor(t){try{this.value=global.BigInt.asIntN(64,t)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},INTEGER=Symbol("integer");function Integer(e){let t=Number(e);return Object.is(t,-0)&&(t=0),global.BigInt&&!Number.isSafeInteger(t)?new BoxedBigInt(e):Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}function isInteger(e){return e===null||typeof e!="object"?!1:e[_type]===INTEGER}var FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){return e===null||typeof e!="object"?!1:e[_type]===FLOAT}function tomlType(e){let t=typeof e;if(t==="object"){if(e===null)return"null";if(e instanceof Date)return"datetime";if(_type in e)switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return t}function makeParserClass(e){class t extends e{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===e.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(n){let i=this.ctx,s=n.key.pop();for(let u of n.key){if(hasKey(i,u)&&(!isTable(i[u])||i[u][_declared]))throw this.error(new TomlError("Can't redefine existing key"));i=i[u]=i[u]||Table()}if(hasKey(i,s))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(n.value)||isFloat(n.value)?i[s]=n.value.valueOf():i[s]=n.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(n){return this.state.resultTable?this.state.resultTable.push(n):this.state.resultTable=[n],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){if(this.char===CHAR_PERIOD)return this.next(this.parseAssignKeywordPostDot);if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.goto(this.parseAssignEqual)}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(n){return this.returnNow({key:this.state.resultTable,value:n})}parseComment(){do if(this.char===e.END||this.char===CTRL_J)return this.return();while(this.nextChar())}parseTableOrList(){if(this.char===CHAR_LSQB)this.next(this.parseList);else return this.goto(this.parseTable)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(n){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,n)&&(!isTable(this.ctx[n])||this.ctx[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));return this.ctx=this.ctx[n]=this.ctx[n]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,n))this.ctx=this.ctx[n]=Table();else if(isTable(this.ctx[n]))this.ctx=this.ctx[n];else if(isList(this.ctx[n]))this.ctx=this.ctx[n][this.ctx[n].length-1];else throw this.error(new TomlError("Can't redefine existing key"));return this.next(this.parseTableNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(n){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,n)||(this.ctx[n]=List()),isInlineList(this.ctx[n]))throw this.error(new TomlError("Can't extend an inline array"));if(isList(this.ctx[n])){let i=Table();this.ctx[n].push(i),this.ctx=i}else throw this.error(new TomlError("Can't redefine an existing key"));return this.next(this.parseListEnd)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,n))this.ctx=this.ctx[n]=Table();else{if(isInlineList(this.ctx[n]))throw this.error(new TomlError("Can't extend an inline array"));if(isInlineTable(this.ctx[n]))throw this.error(new TomlError("Can't extend an inline table"));if(isList(this.ctx[n]))this.ctx=this.ctx[n][this.ctx[n].length-1];else if(isTable(this.ctx[n]))this.ctx=this.ctx[n];else throw this.error(new TomlError("Can't redefine an existing key"))}return this.next(this.parseListNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseListEnd(n){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===e.END)throw this.error(new TomlError("Key without value"));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(n){return this.returnNow(n)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===CHAR_f)return this.state.buf==="-"?this.return(-1/0):this.return(1/0);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===e.END)throw this.error(new TomlError("Key ended without value"));if(isAlphaNumHyphen(this.char))this.consume();else{if(this.state.buf.length===0)throw this.error(new TomlError("Empty bare keys are not allowed"));return this.returnNow()}}while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===CHAR_APOS)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===CHAR_QUOT)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(n){return this.state.buf+=n,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let n="\\u00";return this.char<16&&(n+="0"),n+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${n} instead`))}recordMultiEscapeReplacement(n){return this.state.buf+=n,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError("Can't escape whitespace"))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError("Unknown escape character: "+this.char))}parseUnicodeReturn(n){try{let i=parseInt(n,16);if(i>=SURROGATE_FIRST&&i<=SURROGATE_LAST)throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(i))}catch(i){throw this.error(TomlError.wrap(i))}}parseSmallUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=4)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseLargeUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=8)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(isDigit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{let n=Integer(this.state.buf);if(n.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(n)}}}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNumberFloat(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberFloat);if(isDigit(this.char))this.consume();else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent);else throw this.error(new TomlError("Unexpected character, expected -, + or digit"))}parseNumberExponent(){if(isDigit(this.char))this.consume();else return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder):this.returnNow(Float(this.state.buf))}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberInteger);if(isDigit(this.char))this.consume(),this.state.buf.length>4&&this.next(this.parseNumberInteger);else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_HYPHEN?this.goto(this.parseDateTime):this.char===CHAR_COLON?this.goto(this.parseOnlyTimeHour):this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char))return this.consume();if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);throw this.error(new TomlError("Expected digit while parsing year part of a date"))}else{if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}}parseNumberBaseOrDateTime(){return this.char===CHAR_b?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===CHAR_o?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===CHAR_x?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===CHAR_PERIOD?this.goto(this.parseNumberInteger):isDigit(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(isHexit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let n=Integer(this.state.buf);if(n.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(n)}}}parseIntegerOct(){if(isOctit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let n=Integer(this.state.buf);if(n.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(n)}}}parseIntegerBin(){if(isBit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let n=Integer(this.state.buf);if(n.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(n)}}}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}else{if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+"-"+this.state.buf));if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new TomlError("Incomplete datetime"))}}parseTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}else throw this.error(new TomlError("Incomplete datetime"))}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.next(this.parseOnlyTimeFractionMaybe)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char===CHAR_PERIOD)this.state.buf="",this.next(this.parseOnlyTimeFraction);else return this.return(createTime(this.state.result))}parseOnlyTimeFraction(){if(isDigit(this.char))this.consume();else if(this.atEndOfWord()){if(this.state.buf.length===0)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else{if(this.state.buf.length===1)throw this.error(new TomlError("Expected digit in milliseconds"));if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}}parseTimeZoneHour(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseTimeZoneSep(){if(this.char===CHAR_COLON)this.consume(),this.next(this.parseTimeZoneMin);else throw this.error(new TomlError("Unexpected character in datetime, expected colon"))}parseTimeZoneMin(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseBoolean(){if(this.char===CHAR_t)return this.consume(),this.next(this.parseTrue_r);if(this.char===CHAR_f)return this.consume(),this.next(this.parseFalse_a)}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===e.END)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(n){if(this.state.resultArr){let i=this.state.resultArr[_contentType],s=tomlType(n);if(i!==s)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${i} and ${s}`))}else this.state.resultArr=InlineList(tomlType(n));return isFloat(n)||isInteger(n)?this.state.resultArr.push(n.valueOf()):this.state.resultArr.push(n),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(n){let i=this.state.resultTable,s=n.key.pop();for(let u of n.key){if(hasKey(i,u)&&(!isTable(i[u])||i[u][_declared]))throw this.error(new TomlError("Can't redefine existing key"));i=i[u]=i[u]||Table()}if(hasKey(i,s))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(n.value)||isFloat(n.value)?i[s]=n.value.valueOf():i[s]=n.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}return t}});var Ys=Y((dj,Td)=>{"use strict";_();Td.exports=ow;function ow(e,t){if(e.pos==null||e.line==null)return e;let r=e.message;if(r+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:
|
|
5
5
|
`,t&&t.split){let n=t.split(/\n/),i=String(Math.min(n.length,e.line+3)).length,s=" ";for(;s.length<i;)s+=" ";for(let u=Math.max(0,e.line-1);u<Math.min(n.length,e.line+2);++u){let a=String(u+1);if(a.length<i&&(a=" "+a),e.line===u){r+=a+"> "+n[u]+`
|
|
6
6
|
`,r+=s+" ";for(let o=0;o<e.col;++o)r+=" ";r+=`^
|
|
7
7
|
`}else r+=a+": "+n[u]+`
|
|
8
8
|
`}}return e.message=r+`
|
|
9
|
-
`,e}});var xd=
|
|
9
|
+
`,e}});var xd=Y((Dj,Bd)=>{"use strict";_();Bd.exports=fw;var lw=Vs(),cw=Ys();function fw(e){global.Buffer&&global.Buffer.isBuffer(e)&&(e=e.toString("utf8"));let t=new lw;try{return t.parse(e),t.finish()}catch(r){throw cw(r,e)}}});var Od=Y((gj,Pd)=>{"use strict";_();Pd.exports=dw;var hw=Vs(),kd=Ys();function dw(e,t){t||(t={});let r=0,n=t.blocksize||40960,i=new hw;return new Promise((u,a)=>{setImmediate(s,r,n,u,a)});function s(u,a,o,l){if(u>=e.length)try{return o(i.finish())}catch(c){return l(kd(c,e))}try{i.parse(e.slice(u,u+a)),setImmediate(s,u+a,a,o,l)}catch(c){l(kd(c,e))}}}});var Nd=Y((yj,Ld)=>{"use strict";_();Ld.exports=Dw;var pw=ye("stream"),Id=Vs();function Dw(e){return e?mw(e):gw(e)}function mw(e){let t=new Id;return e.setEncoding("utf8"),new Promise((r,n)=>{let i,s=!1,u=!1;function a(){if(s=!0,!i)try{r(t.finish())}catch(c){n(c)}}function o(c){u=!0,n(c)}e.once("end",a),e.once("error",o),l();function l(){i=!0;let c;for(;(c=e.read())!==null;)try{t.parse(c)}catch(f){return o(f)}if(i=!1,s)return a();u||e.once("readable",l)}})}function gw(){let e=new Id;return new pw.Transform({objectMode:!0,transform(t,r,n){try{e.parse(t.toString(r))}catch(i){this.emit("error",i)}n()},flush(t){try{this.push(e.finish())}catch(r){this.emit("error",r)}t()}})}});var Md=Y((vj,vi)=>{"use strict";_();vi.exports=xd();vi.exports.async=Od();vi.exports.stream=Nd();vi.exports.prettyError=Ys()});var Vd=Y((Cj,Fo)=>{"use strict";_();Fo.exports=_w;Fo.exports.value=vo;function _w(e){if(e===null)throw en("null");if(e===void 0)throw en("undefined");if(typeof e!="object")throw en(typeof e);if(typeof e.toJSON=="function"&&(e=e.toJSON()),e==null)return null;let t=dt(e);if(t!=="table")throw en(t);return Eo("","",e)}function en(e){return new Error("Can only stringify objects, not "+e)}function yw(){return new Error("Array values can't have mixed types")}function jd(e){return Object.keys(e).filter(t=>$d(e[t]))}function Ew(e){return Object.keys(e).filter(t=>!$d(e[t]))}function zs(e){let t=Array.isArray(e)?[]:Object.prototype.hasOwnProperty.call(e,"__proto__")?{["__proto__"]:void 0}:{};for(let r of Object.keys(e))e[r]&&typeof e[r].toJSON=="function"&&!("toISOString"in e[r])?t[r]=e[r].toJSON():t[r]=e[r];return t}function Eo(e,t,r){r=zs(r);var n,i;n=jd(r),i=Ew(r);var s=[],u=t||"";n.forEach(o=>{var l=dt(r[o]);l!=="undefined"&&l!=="null"&&s.push(u+Ks(o)+" = "+Ud(r[o],!0))}),s.length>0&&s.push("");var a=e&&n.length>0?t+" ":"";return i.forEach(o=>{s.push(xw(e,a,o,r[o]))}),s.join(`
|
|
10
10
|
`)}function $d(e){switch(dt(e)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return e.length===0||dt(e[0])!=="table";case"table":return Object.keys(e).length===0;default:return!1}}function dt(e){return e===void 0?"undefined":e===null?"null":typeof e=="bigint"||Number.isInteger(e)&&!Object.is(e,-0)?"integer":typeof e=="number"?"float":typeof e=="boolean"?"boolean":typeof e=="string"?"string":"toISOString"in e?isNaN(e)?"undefined":"datetime":Array.isArray(e)?"array":"table"}function Ks(e){var t=String(e);return/^[-A-Za-z0-9_]+$/.test(t)?t:Hd(t)}function Hd(e){return'"'+qd(e).replace(/"/g,'\\"')+'"'}function vw(e){return"'"+e+"'"}function Fw(e,t){for(;t.length<e;)t="0"+t;return t}function qd(e){return e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,t=>"\\u"+Fw(4,t.codePointAt(0).toString(16)))}function Cw(e){let t=e.split(/\n/).map(r=>qd(r).replace(/"(?="")/g,'\\"')).join(`
|
|
11
11
|
`);return t.slice(-1)==='"'&&(t+=`\\
|
|
12
12
|
`),`"""
|
|
13
|
-
`+t+'"""'}function Ud(e,t){let r=dt(e);return r==="string"&&(t&&/\n/.test(e)?r="string-multiline":!/[\b\t\n\f\r']/.test(e)&&/"/.test(e)&&(r="string-literal")),vo(e,r)}function vo(e,t){switch(t||(t=dt(e)),t){case"string-multiline":return Cw(e);case"string":return Hd(e);case"string-literal":return vw(e);case"integer":return Gd(e);case"float":return Aw(e);case"boolean":return ww(e);case"datetime":return bw(e);case"array":return Tw(e.filter(r=>dt(r)!=="null"&&dt(r)!=="undefined"&&dt(r)!=="nan"));case"table":return Bw(e);default:throw en(t)}}function Gd(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}function Aw(e){if(e===1/0)return"inf";if(e===-1/0)return"-inf";if(Object.is(e,NaN))return"nan";if(Object.is(e,-0))return"-0.0";var t=String(e).split("."),r=t[0],n=t[1]||0;return Gd(r)+"."+n}function ww(e){return String(e)}function bw(e){return e.toISOString()}function Sw(e){return e==="float"||e==="integer"}function Rw(e){var t=dt(e[0]);return e.every(r=>dt(r)===t)?t:e.every(r=>Sw(dt(r)))?"float":"mixed"}function Wd(e){let t=Rw(e);if(t==="mixed")throw yw();return t}function Tw(e){e=
|
|
13
|
+
`+t+'"""'}function Ud(e,t){let r=dt(e);return r==="string"&&(t&&/\n/.test(e)?r="string-multiline":!/[\b\t\n\f\r']/.test(e)&&/"/.test(e)&&(r="string-literal")),vo(e,r)}function vo(e,t){switch(t||(t=dt(e)),t){case"string-multiline":return Cw(e);case"string":return Hd(e);case"string-literal":return vw(e);case"integer":return Gd(e);case"float":return Aw(e);case"boolean":return ww(e);case"datetime":return bw(e);case"array":return Tw(e.filter(r=>dt(r)!=="null"&&dt(r)!=="undefined"&&dt(r)!=="nan"));case"table":return Bw(e);default:throw en(t)}}function Gd(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}function Aw(e){if(e===1/0)return"inf";if(e===-1/0)return"-inf";if(Object.is(e,NaN))return"nan";if(Object.is(e,-0))return"-0.0";var t=String(e).split("."),r=t[0],n=t[1]||0;return Gd(r)+"."+n}function ww(e){return String(e)}function bw(e){return e.toISOString()}function Sw(e){return e==="float"||e==="integer"}function Rw(e){var t=dt(e[0]);return e.every(r=>dt(r)===t)?t:e.every(r=>Sw(dt(r)))?"float":"mixed"}function Wd(e){let t=Rw(e);if(t==="mixed")throw yw();return t}function Tw(e){e=zs(e);let t=Wd(e);var r="[",n=e.map(i=>vo(i,t));return n.join(", ").length>60||/\n/.test(n)?r+=`
|
|
14
14
|
`+n.join(`,
|
|
15
15
|
`)+`
|
|
16
|
-
`:r+=" "+n.join(", ")+(n.length>0?" ":""),r+"]"}function Bw(e){e=
|
|
16
|
+
`:r+=" "+n.join(", ")+(n.length>0?" ":""),r+"]"}function Bw(e){e=zs(e);var t=[];return Object.keys(e).forEach(r=>{t.push(Ks(r)+" = "+Ud(e[r],!1))}),"{ "+t.join(", ")+(t.length>0?" ":"")+"}"}function xw(e,t,r,n){var i=dt(n);if(i==="array")return kw(e,t,r,n);if(i==="table")return Pw(e,t,r,n);throw en(i)}function kw(e,t,r,n){n=zs(n),Wd(n);var i=dt(n[0]);if(i!=="table")throw en(i);var s=e+Ks(r),u="";return n.forEach(a=>{u.length>0&&(u+=`
|
|
17
17
|
`),u+=t+"[["+s+`]]
|
|
18
18
|
`,u+=Eo(s+".",t,a)}),u}function Pw(e,t,r,n){var i=e+Ks(r),s="";return jd(n).length>0&&(s+=t+"["+i+`]
|
|
19
|
-
`),s+Eo(i+".",t,n)}});var zd=z(Co=>{"use strict";_();Co.parse=Md();Co.stringify=Vd()});var xg=z(Ct=>{"use strict";_();var EO=Ct&&Ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ct,"__esModule",{value:!0});var vO=ye("fs"),FO=EO(Mh()),zn=FO.default("@kwsites/file-exists");function CO(e,t,r){zn("checking %s",e);try{let n=vO.statSync(e);return n.isFile()&&t?(zn("[OK] path represents a file"),!0):n.isDirectory()&&r?(zn("[OK] path represents a directory"),!0):(zn("[FAIL] path represents something other than a file or directory"),!1)}catch(n){if(n.code==="ENOENT")return zn("[FAIL] path is not accessible: %o",n),!1;throw zn("[FATAL] %o",n),n}}function AO(e,t=Ct.READABLE){return CO(e,(t&Ct.FILE)>0,(t&Ct.FOLDER)>0)}Ct.exists=AO;Ct.FILE=1;Ct.FOLDER=2;Ct.READABLE=Ct.FILE+Ct.FOLDER});var kg=z(Ou=>{"use strict";_();function wO(e){for(var t in e)Ou.hasOwnProperty(t)||(Ou[t]=e[t])}Object.defineProperty(Ou,"__esModule",{value:!0});wO(xg())});var Yl=z(dn=>{"use strict";_();Object.defineProperty(dn,"__esModule",{value:!0});dn.createDeferred=dn.deferred=void 0;function zl(){let e,t,r="pending";return{promise:new Promise((i,s)=>{e=i,t=s}),done(i){r==="pending"&&(r="resolved",e(i))},fail(i){r==="pending"&&(r="rejected",t(i))},get fulfilled(){return r!=="pending"},get status(){return r}}}dn.deferred=zl;dn.createDeferred=zl;dn.default=zl});var Ey=z((Mq,yy)=>{"use strict";_();function hy(e){return Array.isArray(e)?e:[e]}var $c="",dy=" ",Mc="\\",MI=/^\s+$/,jI=/(?:[^\\]|^)\\$/,$I=/^\\!/,HI=/^\\#/,qI=/\r?\n/g,UI=/^\.*\/|^\.+$/,jc="/",my="node-ignore";typeof Symbol<"u"&&(my=Symbol.for("node-ignore"));var py=my,GI=(e,t,r)=>Object.defineProperty(e,t,{value:r}),WI=/([0-z])-([0-z])/g,gy=()=>!1,VI=e=>e.replace(WI,(t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:$c),zI=e=>{let{length:t}=e;return e.slice(0,t-t%2)},YI=[[/^\uFEFF/,()=>$c],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,r)=>t+(r.indexOf("\\")===0?dy:$c)],[/(\\+?)\s/g,(e,t)=>{let{length:r}=t;return t.slice(0,r-r%2)+dy}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return t+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>Mc],[/\\\\/g,()=>Mc],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n,i)=>t===Mc?`\\[${r}${zI(n)}${i}`:i==="]"&&n.length%2===0?`[${VI(r)}${n}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Dy=Object.create(null),KI=(e,t)=>{let r=Dy[e];return r||(r=YI.reduce((n,[i,s])=>n.replace(i,s.bind(e)),e),Dy[e]=r),t?new RegExp(r,"i"):new RegExp(r)},Uc=e=>typeof e=="string",JI=e=>e&&Uc(e)&&!MI.test(e)&&!jI.test(e)&&e.indexOf("#")!==0,XI=e=>e.split(qI),Hc=class{constructor(t,r,n,i){this.origin=t,this.pattern=r,this.negative=n,this.regex=i}},QI=(e,t)=>{let r=e,n=!1;e.indexOf("!")===0&&(n=!0,e=e.substr(1)),e=e.replace($I,"!").replace(HI,"#");let i=KI(e,t);return new Hc(r,e,n,i)},ZI=(e,t)=>{throw new t(e)},lr=(e,t,r)=>Uc(e)?e?lr.isNotRelative(e)?r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${t}\``,TypeError),_y=e=>UI.test(e);lr.isNotRelative=_y;lr.convert=e=>e;var qc=class{constructor({ignorecase:t=!0,ignoreCase:r=t,allowRelativePaths:n=!1}={}){GI(this,py,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[py]){this._rules=this._rules.concat(t._rules),this._added=!0;return}if(JI(t)){let r=QI(t,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(t){return this._added=!1,hy(Uc(t)?XI(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,r){let n=!1,i=!1;return this._rules.forEach(s=>{let{negative:u}=s;if(i===u&&n!==i||u&&!n&&!i&&!r)return;s.regex.test(t)&&(n=!u,i=u)}),{ignored:n,unignored:i}}_test(t,r,n,i){let s=t&&lr.convert(t);return lr(s,t,this._allowRelativePaths?gy:ZI),this._t(s,r,n,i)}_t(t,r,n,i){if(t in r)return r[t];if(i||(i=t.split(jc)),i.pop(),!i.length)return r[t]=this._testOne(t,n);let s=this._t(i.join(jc)+jc,r,n,i);return r[t]=s.ignored?s:this._testOne(t,n)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return hy(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},ta=e=>new qc(e),eL=e=>lr(e&&lr.convert(e),e,gy);ta.isPathValid=eL;ta.default=ta;yy.exports=ta;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");lr.convert=e;let t=/^[a-z]:\//i;lr.isNotRelative=r=>t.test(r)||_y(r)}});var cr=z(Wc=>{"use strict";_();Wc.load=function(e,t,r={}){var n,i,s;for(n in t)s=t[n],r[n]=(i=e[n])!=null?i:s;return r};Wc.overwrite=function(e,t,r={}){var n,i;for(n in e)i=e[n],t[n]!==void 0&&(r[n]=i);return r}});var Vc=z((XU,Ny)=>{"use strict";_();var Ly;Ly=class{constructor(t,r){this.incr=t,this.decr=r,this._first=null,this._last=null,this.length=0}push(t){var r;this.length++,typeof this.incr=="function"&&this.incr(),r={value:t,prev:this._last,next:null},this._last!=null?(this._last.next=r,this._last=r):this._first=this._last=r}shift(){var t;if(this._first!=null)return this.length--,typeof this.decr=="function"&&this.decr(),t=this._first.value,(this._first=this._first.next)!=null?this._first.prev=null:this._last=null,t}first(){if(this._first!=null)return this._first.value}getArray(){var t,r,n;for(t=this._first,n=[];t!=null;)n.push((r=t,t=t.next,r.value));return n}forEachShift(t){var r;for(r=this.shift();r!=null;)t(r),r=this.shift()}debug(){var t,r,n,i,s;for(t=this._first,s=[];t!=null;)s.push((r=t,t=t.next,{value:r.value,prev:(n=r.prev)!=null?n.value:void 0,next:(i=r.next)!=null?i.value:void 0}));return s}};Ny.exports=Ly});var gn=z((eG,Hy)=>{"use strict";_();function My(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function jy(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){My(s,n,i,u,a,"next",o)}function a(o){My(s,n,i,u,a,"throw",o)}u(void 0)})}}var $y;$y=class{constructor(t){if(this.instance=t,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw new Error("An Emitter already exists for this object");this.instance.on=(r,n)=>this._addListener(r,"many",n),this.instance.once=(r,n)=>this._addListener(r,"once",n),this.instance.removeAllListeners=(r=null)=>r!=null?delete this._events[r]:this._events={}}_addListener(t,r,n){var i;return(i=this._events)[t]==null&&(i[t]=[]),this._events[t].push({cb:n,status:r}),this.instance}listenerCount(t){return this._events[t]!=null?this._events[t].length:0}trigger(t,...r){var n=this;return jy(function*(){var i,s;try{return t!=="debug"&&n.trigger("debug",`Event triggered: ${t}`,r),n._events[t]==null?void 0:(n._events[t]=n._events[t].filter(function(u){return u.status!=="none"}),s=n._events[t].map((function(){var u=jy(function*(a){var o,l;if(a.status!=="none"){a.status==="once"&&(a.status="none");try{return l=typeof a.cb=="function"?a.cb(...r):void 0,typeof l?.then=="function"?yield l:l}catch(c){return o=c,n.trigger("error",o),null}}});return function(a){return u.apply(this,arguments)}})()),(yield Promise.all(s)).find(function(u){return u!=null}))}catch(u){return i=u,n.trigger("error",i),null}})()}};Hy.exports=$y});var Vy=z((nG,Wy)=>{"use strict";_();var qy,Uy,Gy;qy=Vc();Uy=gn();Gy=class{constructor(t){var r;this.Events=new Uy(this),this._length=0,this._lists=function(){var n,i,s;for(s=[],r=n=1,i=t;1<=i?n<=i:n>=i;r=1<=i?++n:--n)s.push(new qy(()=>this.incr(),()=>this.decr()));return s}.call(this)}incr(){if(this._length++===0)return this.Events.trigger("leftzero")}decr(){if(--this._length===0)return this.Events.trigger("zero")}push(t){return this._lists[t.options.priority].push(t)}queued(t){return t!=null?this._lists[t].length:this._length}shiftAll(t){return this._lists.forEach(function(r){return r.forEachShift(t)})}getFirst(t=this._lists){var r,n,i;for(r=0,n=t.length;r<n;r++)if(i=t[r],i.length>0)return i;return[]}shiftLastFrom(t){return this.getFirst(this._lists.slice(t).reverse()).shift()}};Wy.exports=Gy});var Qn=z((uG,Yy)=>{"use strict";_();var zy;zy=class extends Error{};Yy.exports=zy});var tE=z((lG,eE)=>{"use strict";_();function Ky(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function Jy(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){Ky(s,n,i,u,a,"next",o)}function a(o){Ky(s,n,i,u,a,"throw",o)}u(void 0)})}}var sa,Xy,Qy,zc,Zy;zc=10;Xy=5;Zy=cr();sa=Qn();Qy=class{constructor(t,r,n,i,s,u,a,o){this.task=t,this.args=r,this.rejectOnDrop=s,this.Events=u,this._states=a,this.Promise=o,this.options=Zy.load(n,i),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===i.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((l,c)=>{this._resolve=l,this._reject=c}),this.retryCount=0}_sanitizePriority(t){var r;return r=~~t!==t?Xy:t,r<0?0:r>zc-1?zc-1:r}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:t,message:r="This job has been dropped by Bottleneck"}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(t??new sa(r)),this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(t){var r;if(r=this._states.jobStatus(this.options.id),!(r===t||t==="DONE"&&r===null))throw new sa(`Invalid job status ${r}, expected ${t}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(t,r){return this._assertStatus("RECEIVED"),this._states.next(this.options.id),this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:t,blocked:r})}doRun(){return this.retryCount===0?(this._assertStatus("QUEUED"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),this.Events.trigger("scheduled",{args:this.args,options:this.options})}doExecute(t,r,n,i){var s=this;return Jy(function*(){var u,a,o;s.retryCount===0?(s._assertStatus("RUNNING"),s._states.next(s.options.id)):s._assertStatus("EXECUTING"),a={args:s.args,options:s.options,retryCount:s.retryCount},s.Events.trigger("executing",a);try{if(o=yield t!=null?t.schedule(s.options,s.task,...s.args):s.task(...s.args),r())return s.doDone(a),yield i(s.options,a),s._assertStatus("DONE"),s._resolve(o)}catch(l){return u=l,s._onFailure(u,a,r,n,i)}})()}doExpire(t,r,n){var i,s;return this._states.jobStatus(this.options.id==="RUNNING")&&this._states.next(this.options.id),this._assertStatus("EXECUTING"),s={args:this.args,options:this.options,retryCount:this.retryCount},i=new sa(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(i,s,t,r,n)}_onFailure(t,r,n,i,s){var u=this;return Jy(function*(){var a,o;if(n())return a=yield u.Events.trigger("failed",t,r),a!=null?(o=~~a,u.Events.trigger("retry",`Retrying ${u.options.id} after ${o} ms`,r),u.retryCount++,i(o)):(u.doDone(r),yield s(u.options,r),u._assertStatus("DONE"),u._reject(t))})()}doDone(t){return this._assertStatus("EXECUTING"),this._states.next(this.options.id),this.Events.trigger("done",t)}};eE.exports=Qy});var uE=z((hG,sE)=>{"use strict";_();function rE(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function wt(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){rE(s,n,i,u,a,"next",o)}function a(o){rE(s,n,i,u,a,"throw",o)}u(void 0)})}}var nE,iE,Yc;Yc=cr();nE=Qn();iE=class{constructor(t,r,n){this.instance=t,this.storeOptions=r,this.clientId=this.instance._randomIndex(),Yc.load(n,n,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var t;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(t=this.heartbeat=setInterval(()=>{var r,n,i,s,u;if(s=Date.now(),this.storeOptions.reservoirRefreshInterval!=null&&s>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=s,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&s>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){var a=this.storeOptions;if(r=a.reservoirIncreaseAmount,i=a.reservoirIncreaseMaximum,u=a.reservoir,this._lastReservoirIncrease=s,n=i!=null?Math.min(r,i-u):r,n>0)return this.storeOptions.reservoir+=n,this.instance._drainAll(this.computeCapacity())}},this.heartbeatInterval)).unref=="function"?t.unref():void 0:clearInterval(this.heartbeat)}__publish__(t){var r=this;return wt(function*(){return yield r.yieldLoop(),r.instance.Events.trigger("message",t.toString())})()}__disconnect__(t){var r=this;return wt(function*(){return yield r.yieldLoop(),clearInterval(r.heartbeat),r.Promise.resolve()})()}yieldLoop(t=0){return new this.Promise(function(r,n){return setTimeout(r,t)})}computePenalty(){var t;return(t=this.storeOptions.penalty)!=null?t:15*this.storeOptions.minTime||5e3}__updateSettings__(t){var r=this;return wt(function*(){return yield r.yieldLoop(),Yc.overwrite(t,t,r.storeOptions),r._startHeartbeat(),r.instance._drainAll(r.computeCapacity()),!0})()}__running__(){var t=this;return wt(function*(){return yield t.yieldLoop(),t._running})()}__queued__(){var t=this;return wt(function*(){return yield t.yieldLoop(),t.instance.queued()})()}__done__(){var t=this;return wt(function*(){return yield t.yieldLoop(),t._done})()}__groupCheck__(t){var r=this;return wt(function*(){return yield r.yieldLoop(),r._nextRequest+r.timeout<t})()}computeCapacity(){var t,r,n=this.storeOptions;return t=n.maxConcurrent,r=n.reservoir,t!=null&&r!=null?Math.min(t-this._running,r):t!=null?t-this._running:r??null}conditionsCheck(t){var r;return r=this.computeCapacity(),r==null||t<=r}__incrementReservoir__(t){var r=this;return wt(function*(){var n;return yield r.yieldLoop(),n=r.storeOptions.reservoir+=t,r.instance._drainAll(r.computeCapacity()),n})()}__currentReservoir__(){var t=this;return wt(function*(){return yield t.yieldLoop(),t.storeOptions.reservoir})()}isBlocked(t){return this._unblockTime>=t}check(t,r){return this.conditionsCheck(t)&&this._nextRequest-r<=0}__check__(t){var r=this;return wt(function*(){var n;return yield r.yieldLoop(),n=Date.now(),r.check(t,n)})()}__register__(t,r,n){var i=this;return wt(function*(){var s,u;return yield i.yieldLoop(),s=Date.now(),i.conditionsCheck(r)?(i._running+=r,i.storeOptions.reservoir!=null&&(i.storeOptions.reservoir-=r),u=Math.max(i._nextRequest-s,0),i._nextRequest=s+u+i.storeOptions.minTime,{success:!0,wait:u,reservoir:i.storeOptions.reservoir}):{success:!1}})()}strategyIsBlock(){return this.storeOptions.strategy===3}__submit__(t,r){var n=this;return wt(function*(){var i,s,u;if(yield n.yieldLoop(),n.storeOptions.maxConcurrent!=null&&r>n.storeOptions.maxConcurrent)throw new nE(`Impossible to add a job having a weight of ${r} to a limiter having a maxConcurrent setting of ${n.storeOptions.maxConcurrent}`);return s=Date.now(),u=n.storeOptions.highWater!=null&&t===n.storeOptions.highWater&&!n.check(r,s),i=n.strategyIsBlock()&&(u||n.isBlocked(s)),i&&(n._unblockTime=s+n.computePenalty(),n._nextRequest=n._unblockTime+n.storeOptions.minTime,n.instance._dropAllQueued()),{reachedHWM:u,blocked:i,strategy:n.storeOptions.strategy}})()}__free__(t,r){var n=this;return wt(function*(){return yield n.yieldLoop(),n._running-=r,n._done+=r,n.instance._drainAll(n.computeCapacity()),{running:n._running}})()}};sE.exports=iE});var aE=z((pG,aL)=>{aL.exports={"blacklist_client.lua":`local blacklist = ARGV[num_static_argv + 1]
|
|
19
|
+
`),s+Eo(i+".",t,n)}});var Yd=Y(Co=>{"use strict";_();Co.parse=Md();Co.stringify=Vd()});var xg=Y(Ct=>{"use strict";_();var EO=Ct&&Ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ct,"__esModule",{value:!0});var vO=ye("fs"),FO=EO(Mh()),Yn=FO.default("@kwsites/file-exists");function CO(e,t,r){Yn("checking %s",e);try{let n=vO.statSync(e);return n.isFile()&&t?(Yn("[OK] path represents a file"),!0):n.isDirectory()&&r?(Yn("[OK] path represents a directory"),!0):(Yn("[FAIL] path represents something other than a file or directory"),!1)}catch(n){if(n.code==="ENOENT")return Yn("[FAIL] path is not accessible: %o",n),!1;throw Yn("[FATAL] %o",n),n}}function AO(e,t=Ct.READABLE){return CO(e,(t&Ct.FILE)>0,(t&Ct.FOLDER)>0)}Ct.exists=AO;Ct.FILE=1;Ct.FOLDER=2;Ct.READABLE=Ct.FILE+Ct.FOLDER});var kg=Y(Ou=>{"use strict";_();function wO(e){for(var t in e)Ou.hasOwnProperty(t)||(Ou[t]=e[t])}Object.defineProperty(Ou,"__esModule",{value:!0});wO(xg())});var zl=Y(dn=>{"use strict";_();Object.defineProperty(dn,"__esModule",{value:!0});dn.createDeferred=dn.deferred=void 0;function Yl(){let e,t,r="pending";return{promise:new Promise((i,s)=>{e=i,t=s}),done(i){r==="pending"&&(r="resolved",e(i))},fail(i){r==="pending"&&(r="rejected",t(i))},get fulfilled(){return r!=="pending"},get status(){return r}}}dn.deferred=Yl;dn.createDeferred=Yl;dn.default=Yl});var Ey=Y((jq,yy)=>{"use strict";_();function hy(e){return Array.isArray(e)?e:[e]}var $c="",dy=" ",Mc="\\",MI=/^\s+$/,jI=/(?:[^\\]|^)\\$/,$I=/^\\!/,HI=/^\\#/,qI=/\r?\n/g,UI=/^\.*\/|^\.+$/,jc="/",my="node-ignore";typeof Symbol<"u"&&(my=Symbol.for("node-ignore"));var py=my,GI=(e,t,r)=>Object.defineProperty(e,t,{value:r}),WI=/([0-z])-([0-z])/g,gy=()=>!1,VI=e=>e.replace(WI,(t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:$c),YI=e=>{let{length:t}=e;return e.slice(0,t-t%2)},zI=[[/^\uFEFF/,()=>$c],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,r)=>t+(r.indexOf("\\")===0?dy:$c)],[/(\\+?)\s/g,(e,t)=>{let{length:r}=t;return t.slice(0,r-r%2)+dy}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return t+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>Mc],[/\\\\/g,()=>Mc],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n,i)=>t===Mc?`\\[${r}${YI(n)}${i}`:i==="]"&&n.length%2===0?`[${VI(r)}${n}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Dy=Object.create(null),KI=(e,t)=>{let r=Dy[e];return r||(r=zI.reduce((n,[i,s])=>n.replace(i,s.bind(e)),e),Dy[e]=r),t?new RegExp(r,"i"):new RegExp(r)},Uc=e=>typeof e=="string",JI=e=>e&&Uc(e)&&!MI.test(e)&&!jI.test(e)&&e.indexOf("#")!==0,XI=e=>e.split(qI),Hc=class{constructor(t,r,n,i){this.origin=t,this.pattern=r,this.negative=n,this.regex=i}},QI=(e,t)=>{let r=e,n=!1;e.indexOf("!")===0&&(n=!0,e=e.substr(1)),e=e.replace($I,"!").replace(HI,"#");let i=KI(e,t);return new Hc(r,e,n,i)},ZI=(e,t)=>{throw new t(e)},lr=(e,t,r)=>Uc(e)?e?lr.isNotRelative(e)?r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${t}\``,TypeError),_y=e=>UI.test(e);lr.isNotRelative=_y;lr.convert=e=>e;var qc=class{constructor({ignorecase:t=!0,ignoreCase:r=t,allowRelativePaths:n=!1}={}){GI(this,py,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[py]){this._rules=this._rules.concat(t._rules),this._added=!0;return}if(JI(t)){let r=QI(t,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(t){return this._added=!1,hy(Uc(t)?XI(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,r){let n=!1,i=!1;return this._rules.forEach(s=>{let{negative:u}=s;if(i===u&&n!==i||u&&!n&&!i&&!r)return;s.regex.test(t)&&(n=!u,i=u)}),{ignored:n,unignored:i}}_test(t,r,n,i){let s=t&&lr.convert(t);return lr(s,t,this._allowRelativePaths?gy:ZI),this._t(s,r,n,i)}_t(t,r,n,i){if(t in r)return r[t];if(i||(i=t.split(jc)),i.pop(),!i.length)return r[t]=this._testOne(t,n);let s=this._t(i.join(jc)+jc,r,n,i);return r[t]=s.ignored?s:this._testOne(t,n)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return hy(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},ta=e=>new qc(e),eL=e=>lr(e&&lr.convert(e),e,gy);ta.isPathValid=eL;ta.default=ta;yy.exports=ta;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");lr.convert=e;let t=/^[a-z]:\//i;lr.isNotRelative=r=>t.test(r)||_y(r)}});var cr=Y(Wc=>{"use strict";_();Wc.load=function(e,t,r={}){var n,i,s;for(n in t)s=t[n],r[n]=(i=e[n])!=null?i:s;return r};Wc.overwrite=function(e,t,r={}){var n,i;for(n in e)i=e[n],t[n]!==void 0&&(r[n]=i);return r}});var Vc=Y((QU,Ny)=>{"use strict";_();var Ly;Ly=class{constructor(t,r){this.incr=t,this.decr=r,this._first=null,this._last=null,this.length=0}push(t){var r;this.length++,typeof this.incr=="function"&&this.incr(),r={value:t,prev:this._last,next:null},this._last!=null?(this._last.next=r,this._last=r):this._first=this._last=r}shift(){var t;if(this._first!=null)return this.length--,typeof this.decr=="function"&&this.decr(),t=this._first.value,(this._first=this._first.next)!=null?this._first.prev=null:this._last=null,t}first(){if(this._first!=null)return this._first.value}getArray(){var t,r,n;for(t=this._first,n=[];t!=null;)n.push((r=t,t=t.next,r.value));return n}forEachShift(t){var r;for(r=this.shift();r!=null;)t(r),r=this.shift()}debug(){var t,r,n,i,s;for(t=this._first,s=[];t!=null;)s.push((r=t,t=t.next,{value:r.value,prev:(n=r.prev)!=null?n.value:void 0,next:(i=r.next)!=null?i.value:void 0}));return s}};Ny.exports=Ly});var gn=Y((tG,Hy)=>{"use strict";_();function My(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function jy(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){My(s,n,i,u,a,"next",o)}function a(o){My(s,n,i,u,a,"throw",o)}u(void 0)})}}var $y;$y=class{constructor(t){if(this.instance=t,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw new Error("An Emitter already exists for this object");this.instance.on=(r,n)=>this._addListener(r,"many",n),this.instance.once=(r,n)=>this._addListener(r,"once",n),this.instance.removeAllListeners=(r=null)=>r!=null?delete this._events[r]:this._events={}}_addListener(t,r,n){var i;return(i=this._events)[t]==null&&(i[t]=[]),this._events[t].push({cb:n,status:r}),this.instance}listenerCount(t){return this._events[t]!=null?this._events[t].length:0}trigger(t,...r){var n=this;return jy(function*(){var i,s;try{return t!=="debug"&&n.trigger("debug",`Event triggered: ${t}`,r),n._events[t]==null?void 0:(n._events[t]=n._events[t].filter(function(u){return u.status!=="none"}),s=n._events[t].map((function(){var u=jy(function*(a){var o,l;if(a.status!=="none"){a.status==="once"&&(a.status="none");try{return l=typeof a.cb=="function"?a.cb(...r):void 0,typeof l?.then=="function"?yield l:l}catch(c){return o=c,n.trigger("error",o),null}}});return function(a){return u.apply(this,arguments)}})()),(yield Promise.all(s)).find(function(u){return u!=null}))}catch(u){return i=u,n.trigger("error",i),null}})()}};Hy.exports=$y});var Vy=Y((iG,Wy)=>{"use strict";_();var qy,Uy,Gy;qy=Vc();Uy=gn();Gy=class{constructor(t){var r;this.Events=new Uy(this),this._length=0,this._lists=function(){var n,i,s;for(s=[],r=n=1,i=t;1<=i?n<=i:n>=i;r=1<=i?++n:--n)s.push(new qy(()=>this.incr(),()=>this.decr()));return s}.call(this)}incr(){if(this._length++===0)return this.Events.trigger("leftzero")}decr(){if(--this._length===0)return this.Events.trigger("zero")}push(t){return this._lists[t.options.priority].push(t)}queued(t){return t!=null?this._lists[t].length:this._length}shiftAll(t){return this._lists.forEach(function(r){return r.forEachShift(t)})}getFirst(t=this._lists){var r,n,i;for(r=0,n=t.length;r<n;r++)if(i=t[r],i.length>0)return i;return[]}shiftLastFrom(t){return this.getFirst(this._lists.slice(t).reverse()).shift()}};Wy.exports=Gy});var Qn=Y((aG,zy)=>{"use strict";_();var Yy;Yy=class extends Error{};zy.exports=Yy});var tE=Y((cG,eE)=>{"use strict";_();function Ky(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function Jy(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){Ky(s,n,i,u,a,"next",o)}function a(o){Ky(s,n,i,u,a,"throw",o)}u(void 0)})}}var sa,Xy,Qy,Yc,Zy;Yc=10;Xy=5;Zy=cr();sa=Qn();Qy=class{constructor(t,r,n,i,s,u,a,o){this.task=t,this.args=r,this.rejectOnDrop=s,this.Events=u,this._states=a,this.Promise=o,this.options=Zy.load(n,i),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===i.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((l,c)=>{this._resolve=l,this._reject=c}),this.retryCount=0}_sanitizePriority(t){var r;return r=~~t!==t?Xy:t,r<0?0:r>Yc-1?Yc-1:r}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:t,message:r="This job has been dropped by Bottleneck"}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(t??new sa(r)),this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(t){var r;if(r=this._states.jobStatus(this.options.id),!(r===t||t==="DONE"&&r===null))throw new sa(`Invalid job status ${r}, expected ${t}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(t,r){return this._assertStatus("RECEIVED"),this._states.next(this.options.id),this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:t,blocked:r})}doRun(){return this.retryCount===0?(this._assertStatus("QUEUED"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),this.Events.trigger("scheduled",{args:this.args,options:this.options})}doExecute(t,r,n,i){var s=this;return Jy(function*(){var u,a,o;s.retryCount===0?(s._assertStatus("RUNNING"),s._states.next(s.options.id)):s._assertStatus("EXECUTING"),a={args:s.args,options:s.options,retryCount:s.retryCount},s.Events.trigger("executing",a);try{if(o=yield t!=null?t.schedule(s.options,s.task,...s.args):s.task(...s.args),r())return s.doDone(a),yield i(s.options,a),s._assertStatus("DONE"),s._resolve(o)}catch(l){return u=l,s._onFailure(u,a,r,n,i)}})()}doExpire(t,r,n){var i,s;return this._states.jobStatus(this.options.id==="RUNNING")&&this._states.next(this.options.id),this._assertStatus("EXECUTING"),s={args:this.args,options:this.options,retryCount:this.retryCount},i=new sa(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(i,s,t,r,n)}_onFailure(t,r,n,i,s){var u=this;return Jy(function*(){var a,o;if(n())return a=yield u.Events.trigger("failed",t,r),a!=null?(o=~~a,u.Events.trigger("retry",`Retrying ${u.options.id} after ${o} ms`,r),u.retryCount++,i(o)):(u.doDone(r),yield s(u.options,r),u._assertStatus("DONE"),u._reject(t))})()}doDone(t){return this._assertStatus("EXECUTING"),this._states.next(this.options.id),this.Events.trigger("done",t)}};eE.exports=Qy});var uE=Y((dG,sE)=>{"use strict";_();function rE(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function wt(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){rE(s,n,i,u,a,"next",o)}function a(o){rE(s,n,i,u,a,"throw",o)}u(void 0)})}}var nE,iE,zc;zc=cr();nE=Qn();iE=class{constructor(t,r,n){this.instance=t,this.storeOptions=r,this.clientId=this.instance._randomIndex(),zc.load(n,n,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var t;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(t=this.heartbeat=setInterval(()=>{var r,n,i,s,u;if(s=Date.now(),this.storeOptions.reservoirRefreshInterval!=null&&s>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=s,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&s>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){var a=this.storeOptions;if(r=a.reservoirIncreaseAmount,i=a.reservoirIncreaseMaximum,u=a.reservoir,this._lastReservoirIncrease=s,n=i!=null?Math.min(r,i-u):r,n>0)return this.storeOptions.reservoir+=n,this.instance._drainAll(this.computeCapacity())}},this.heartbeatInterval)).unref=="function"?t.unref():void 0:clearInterval(this.heartbeat)}__publish__(t){var r=this;return wt(function*(){return yield r.yieldLoop(),r.instance.Events.trigger("message",t.toString())})()}__disconnect__(t){var r=this;return wt(function*(){return yield r.yieldLoop(),clearInterval(r.heartbeat),r.Promise.resolve()})()}yieldLoop(t=0){return new this.Promise(function(r,n){return setTimeout(r,t)})}computePenalty(){var t;return(t=this.storeOptions.penalty)!=null?t:15*this.storeOptions.minTime||5e3}__updateSettings__(t){var r=this;return wt(function*(){return yield r.yieldLoop(),zc.overwrite(t,t,r.storeOptions),r._startHeartbeat(),r.instance._drainAll(r.computeCapacity()),!0})()}__running__(){var t=this;return wt(function*(){return yield t.yieldLoop(),t._running})()}__queued__(){var t=this;return wt(function*(){return yield t.yieldLoop(),t.instance.queued()})()}__done__(){var t=this;return wt(function*(){return yield t.yieldLoop(),t._done})()}__groupCheck__(t){var r=this;return wt(function*(){return yield r.yieldLoop(),r._nextRequest+r.timeout<t})()}computeCapacity(){var t,r,n=this.storeOptions;return t=n.maxConcurrent,r=n.reservoir,t!=null&&r!=null?Math.min(t-this._running,r):t!=null?t-this._running:r??null}conditionsCheck(t){var r;return r=this.computeCapacity(),r==null||t<=r}__incrementReservoir__(t){var r=this;return wt(function*(){var n;return yield r.yieldLoop(),n=r.storeOptions.reservoir+=t,r.instance._drainAll(r.computeCapacity()),n})()}__currentReservoir__(){var t=this;return wt(function*(){return yield t.yieldLoop(),t.storeOptions.reservoir})()}isBlocked(t){return this._unblockTime>=t}check(t,r){return this.conditionsCheck(t)&&this._nextRequest-r<=0}__check__(t){var r=this;return wt(function*(){var n;return yield r.yieldLoop(),n=Date.now(),r.check(t,n)})()}__register__(t,r,n){var i=this;return wt(function*(){var s,u;return yield i.yieldLoop(),s=Date.now(),i.conditionsCheck(r)?(i._running+=r,i.storeOptions.reservoir!=null&&(i.storeOptions.reservoir-=r),u=Math.max(i._nextRequest-s,0),i._nextRequest=s+u+i.storeOptions.minTime,{success:!0,wait:u,reservoir:i.storeOptions.reservoir}):{success:!1}})()}strategyIsBlock(){return this.storeOptions.strategy===3}__submit__(t,r){var n=this;return wt(function*(){var i,s,u;if(yield n.yieldLoop(),n.storeOptions.maxConcurrent!=null&&r>n.storeOptions.maxConcurrent)throw new nE(`Impossible to add a job having a weight of ${r} to a limiter having a maxConcurrent setting of ${n.storeOptions.maxConcurrent}`);return s=Date.now(),u=n.storeOptions.highWater!=null&&t===n.storeOptions.highWater&&!n.check(r,s),i=n.strategyIsBlock()&&(u||n.isBlocked(s)),i&&(n._unblockTime=s+n.computePenalty(),n._nextRequest=n._unblockTime+n.storeOptions.minTime,n.instance._dropAllQueued()),{reachedHWM:u,blocked:i,strategy:n.storeOptions.strategy}})()}__free__(t,r){var n=this;return wt(function*(){return yield n.yieldLoop(),n._running-=r,n._done+=r,n.instance._drainAll(n.computeCapacity()),{running:n._running}})()}};sE.exports=iE});var aE=Y((DG,aL)=>{aL.exports={"blacklist_client.lua":`local blacklist = ARGV[num_static_argv + 1]
|
|
20
20
|
|
|
21
21
|
if redis.call('zscore', client_last_seen_key, blacklist) then
|
|
22
22
|
redis.call('zadd', client_last_seen_key, 0, blacklist)
|
|
@@ -574,30 +574,30 @@ redis.call('zadd', client_last_seen_key, now, client)
|
|
|
574
574
|
`,"validate_keys.lua":`if not (redis.call('exists', settings_key) == 1) then
|
|
575
575
|
return redis.error_reply('SETTINGS_KEY_NOT_FOUND')
|
|
576
576
|
end
|
|
577
|
-
`}});var oa=
|
|
578
|
-
`)}});var la=z((exports,module)=>{"use strict";_();function asyncGeneratorStep(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){asyncGeneratorStep(s,n,i,u,a,"next",o)}function a(o){asyncGeneratorStep(s,n,i,u,a,"throw",o)}u(void 0)})}}var Events,RedisConnection,Scripts,parser;parser=cr();Events=gn();Scripts=oa();RedisConnection=function(){class RedisConnection{constructor(options={}){parser.load(options,this.defaults,this),this.Redis==null&&(this.Redis=eval("require")("redis")),this.Events==null&&(this.Events=new Events(this)),this.terminated=!1,this.client==null&&(this.client=this.Redis.createClient(this.clientOptions)),this.subscriber=this.client.duplicate(),this.limiters={},this.shas={},this.ready=this.Promise.all([this._setup(this.client,!1),this._setup(this.subscriber,!0)]).then(()=>this._loadScripts()).then(()=>({client:this.client,subscriber:this.subscriber}))}_setup(e,t){return e.setMaxListeners(0),new this.Promise((r,n)=>(e.on("error",i=>this.Events.trigger("error",i)),t&&e.on("message",(i,s)=>{var u;return(u=this.limiters[i])!=null?u._store.onMessage(i,s):void 0}),e.ready?r():e.once("ready",r)))}_loadScript(e){return new this.Promise((t,r)=>{var n;return n=Scripts.payload(e),this.client.multi([["script","load",n]]).exec((i,s)=>i!=null?r(i):(this.shas[e]=s[0],t(s[0])))})}_loadScripts(){return this.Promise.all(Scripts.names.map(e=>this._loadScript(e)))}__runCommand__(e){var t=this;return _asyncToGenerator(function*(){return yield t.ready,new t.Promise((r,n)=>t.client.multi([e]).exec_atomic(function(i,s){return i!=null?n(i):r(s[0])}))})()}__addLimiter__(e){return this.Promise.all([e.channel(),e.channel_client()].map(t=>new this.Promise((r,n)=>{var i;return i=s=>{if(s===t)return this.subscriber.removeListener("subscribe",i),this.limiters[t]=e,r()},this.subscriber.on("subscribe",i),this.subscriber.subscribe(t)})))}__removeLimiter__(e){var t=this;return this.Promise.all([e.channel(),e.channel_client()].map((function(){var r=_asyncToGenerator(function*(n){return t.terminated||(yield new t.Promise((i,s)=>t.subscriber.unsubscribe(n,function(u,a){if(u!=null)return s(u);if(a===n)return i()}))),delete t.limiters[n]});return function(n){return r.apply(this,arguments)}})()))}__scriptArgs__(e,t,r,n){var i;return i=Scripts.keys(e,t),[this.shas[e],i.length].concat(i,r,n)}__scriptFn__(e){return this.client.evalsha.bind(this.client)}disconnect(e=!0){var t,r,n,i;for(i=Object.keys(this.limiters),t=0,n=i.length;t<n;t++)r=i[t],clearInterval(this.limiters[r]._store.heartbeat);return this.limiters={},this.terminated=!0,this.client.end(e),this.subscriber.end(e),this.Promise.resolve()}}return RedisConnection.prototype.datastore="redis",RedisConnection.prototype.defaults={Redis:null,clientOptions:{},client:null,Promise,Events:null},RedisConnection}.call(void 0);module.exports=RedisConnection});var ca=z((exports,module)=>{"use strict";_();function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(e,t){var r=[],n=!0,i=!1,s=void 0;try{for(var u=e[Symbol.iterator](),a;!(n=(a=u.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(o){i=!0,s=o}finally{try{!n&&u.return!=null&&u.return()}finally{if(i)throw s}}return r}function _arrayWithHoles(e){if(Array.isArray(e))return e}function asyncGeneratorStep(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){asyncGeneratorStep(s,n,i,u,a,"next",o)}function a(o){asyncGeneratorStep(s,n,i,u,a,"throw",o)}u(void 0)})}}var Events,IORedisConnection,Scripts,parser;parser=cr();Events=gn();Scripts=oa();IORedisConnection=function(){class IORedisConnection{constructor(options={}){parser.load(options,this.defaults,this),this.Redis==null&&(this.Redis=eval("require")("ioredis")),this.Events==null&&(this.Events=new Events(this)),this.terminated=!1,this.clusterNodes!=null?(this.client=new this.Redis.Cluster(this.clusterNodes,this.clientOptions),this.subscriber=new this.Redis.Cluster(this.clusterNodes,this.clientOptions)):this.client!=null&&this.client.duplicate==null?this.subscriber=new this.Redis.Cluster(this.client.startupNodes,this.client.options):(this.client==null&&(this.client=new this.Redis(this.clientOptions)),this.subscriber=this.client.duplicate()),this.limiters={},this.ready=this.Promise.all([this._setup(this.client,!1),this._setup(this.subscriber,!0)]).then(()=>(this._loadScripts(),{client:this.client,subscriber:this.subscriber}))}_setup(e,t){return e.setMaxListeners(0),new this.Promise((r,n)=>(e.on("error",i=>this.Events.trigger("error",i)),t&&e.on("message",(i,s)=>{var u;return(u=this.limiters[i])!=null?u._store.onMessage(i,s):void 0}),e.status==="ready"?r():e.once("ready",r)))}_loadScripts(){return Scripts.names.forEach(e=>this.client.defineCommand(e,{lua:Scripts.payload(e)}))}__runCommand__(e){var t=this;return _asyncToGenerator(function*(){var r,n;yield t.ready;var i=yield t.client.pipeline([e]).exec(),s=_slicedToArray(i,1),u=_slicedToArray(s[0],2);return r=u[0],n=u[1],n})()}__addLimiter__(e){return this.Promise.all([e.channel(),e.channel_client()].map(t=>new this.Promise((r,n)=>this.subscriber.subscribe(t,()=>(this.limiters[t]=e,r())))))}__removeLimiter__(e){var t=this;return[e.channel(),e.channel_client()].forEach((function(){var r=_asyncToGenerator(function*(n){return t.terminated||(yield t.subscriber.unsubscribe(n)),delete t.limiters[n]});return function(n){return r.apply(this,arguments)}})())}__scriptArgs__(e,t,r,n){var i;return i=Scripts.keys(e,t),[i.length].concat(i,r,n)}__scriptFn__(e){return this.client[e].bind(this.client)}disconnect(e=!0){var t,r,n,i;for(i=Object.keys(this.limiters),t=0,n=i.length;t<n;t++)r=i[t],clearInterval(this.limiters[r]._store.heartbeat);return this.limiters={},this.terminated=!0,e?this.Promise.all([this.client.quit(),this.subscriber.quit()]):(this.client.disconnect(),this.subscriber.disconnect(),this.Promise.resolve())}}return IORedisConnection.prototype.datastore="ioredis",IORedisConnection.prototype.defaults={Redis:null,clientOptions:{},clusterNodes:null,client:null,Promise,Events:null},IORedisConnection}.call(void 0);module.exports=IORedisConnection});var pE=z((EG,dE)=>{"use strict";_();function fa(e,t){return cL(e)||lL(e,t)||oL()}function oL(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function lL(e,t){var r=[],n=!0,i=!1,s=void 0;try{for(var u=e[Symbol.iterator](),a;!(n=(a=u.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(o){i=!0,s=o}finally{try{!n&&u.return!=null&&u.return()}finally{if(i)throw s}}return r}function cL(e){if(Array.isArray(e))return e}function oE(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function Yt(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){oE(s,n,i,u,a,"next",o)}function a(o){oE(s,n,i,u,a,"throw",o)}u(void 0)})}}var lE,cE,fE,hE,Kc;Kc=cr();lE=Qn();fE=la();cE=ca();hE=class{constructor(t,r,n){this.instance=t,this.storeOptions=r,this.originalId=this.instance.id,this.clientId=this.instance._randomIndex(),Kc.load(n,n,this),this.clients={},this.capacityPriorityCounters={},this.sharedConnection=this.connection!=null,this.connection==null&&(this.connection=this.instance.datastore==="redis"?new fE({Redis:this.Redis,clientOptions:this.clientOptions,Promise:this.Promise,Events:this.instance.Events}):this.instance.datastore==="ioredis"?new cE({Redis:this.Redis,clientOptions:this.clientOptions,clusterNodes:this.clusterNodes,Promise:this.Promise,Events:this.instance.Events}):void 0),this.instance.connection=this.connection,this.instance.datastore=this.connection.datastore,this.ready=this.connection.ready.then(i=>(this.clients=i,this.runScript("init",this.prepareInitSettings(this.clearDatastore)))).then(()=>this.connection.__addLimiter__(this.instance)).then(()=>this.runScript("register_client",[this.instance.queued()])).then(()=>{var i;return typeof(i=this.heartbeat=setInterval(()=>this.runScript("heartbeat",[]).catch(s=>this.instance.Events.trigger("error",s)),this.heartbeatInterval)).unref=="function"&&i.unref(),this.clients})}__publish__(t){var r=this;return Yt(function*(){var n,i=yield r.ready;return n=i.client,n.publish(r.instance.channel(),`message:${t.toString()}`)})()}onMessage(t,r){var n=this;return Yt(function*(){var i,s,u,a,o,l,c,f,h,d;try{c=r.indexOf(":");var p=[r.slice(0,c),r.slice(c+1)];if(d=p[0],u=p[1],d==="capacity")return yield n.instance._drainAll(u.length>0?~~u:void 0);if(d==="capacity-priority"){var D=u.split(":"),w=fa(D,3);return h=w[0],f=w[1],s=w[2],i=h.length>0?~~h:void 0,f===n.clientId?(a=yield n.instance._drainAll(i),l=i!=null?i-(a||0):"",yield n.clients.client.publish(n.instance.channel(),`capacity-priority:${l}::${s}`)):f===""?(clearTimeout(n.capacityPriorityCounters[s]),delete n.capacityPriorityCounters[s],n.instance._drainAll(i)):n.capacityPriorityCounters[s]=setTimeout(Yt(function*(){var y;try{return delete n.capacityPriorityCounters[s],yield n.runScript("blacklist_client",[f]),yield n.instance._drainAll(i)}catch(m){return y=m,n.instance.Events.trigger("error",y)}}),1e3)}else{if(d==="message")return n.instance.Events.trigger("message",u);if(d==="blocked")return yield n.instance._dropAllQueued()}}catch(y){return o=y,n.instance.Events.trigger("error",o)}})()}__disconnect__(t){return clearInterval(this.heartbeat),this.sharedConnection?this.connection.__removeLimiter__(this.instance):this.connection.disconnect(t)}runScript(t,r){var n=this;return Yt(function*(){return t==="init"||t==="register_client"||(yield n.ready),new n.Promise((i,s)=>{var u,a;return u=[Date.now(),n.clientId].concat(r),n.instance.Events.trigger("debug",`Calling Redis script: ${t}.lua`,u),a=n.connection.__scriptArgs__(t,n.originalId,u,function(o,l){return o!=null?s(o):i(l)}),n.connection.__scriptFn__(t)(...a)}).catch(i=>i.message==="SETTINGS_KEY_NOT_FOUND"?t==="heartbeat"?n.Promise.resolve():n.runScript("init",n.prepareInitSettings(!1)).then(()=>n.runScript(t,r)):i.message==="UNKNOWN_CLIENT"?n.runScript("register_client",[n.instance.queued()]).then(()=>n.runScript(t,r)):n.Promise.reject(i))})()}prepareArray(t){var r,n,i,s;for(i=[],r=0,n=t.length;r<n;r++)s=t[r],i.push(s!=null?s.toString():"");return i}prepareObject(t){var r,n,i;r=[];for(n in t)i=t[n],r.push(n,i!=null?i.toString():"");return r}prepareInitSettings(t){var r;return r=this.prepareObject(Object.assign({},this.storeOptions,{id:this.originalId,version:this.instance.version,groupTimeout:this.timeout,clientTimeout:this.clientTimeout})),r.unshift(t?1:0,this.instance.version),r}convertBool(t){return!!t}__updateSettings__(t){var r=this;return Yt(function*(){return yield r.runScript("update_settings",r.prepareObject(t)),Kc.overwrite(t,t,r.storeOptions)})()}__running__(){return this.runScript("running",[])}__queued__(){return this.runScript("queued",[])}__done__(){return this.runScript("done",[])}__groupCheck__(){var t=this;return Yt(function*(){return t.convertBool(yield t.runScript("group_check",[]))})()}__incrementReservoir__(t){return this.runScript("increment_reservoir",[t])}__currentReservoir__(){return this.runScript("current_reservoir",[])}__check__(t){var r=this;return Yt(function*(){return r.convertBool(yield r.runScript("check",r.prepareArray([t])))})()}__register__(t,r,n){var i=this;return Yt(function*(){var s,u,a,o=yield i.runScript("register",i.prepareArray([t,r,n])),l=fa(o,3);return u=l[0],a=l[1],s=l[2],{success:i.convertBool(u),wait:a,reservoir:s}})()}__submit__(t,r){var n=this;return Yt(function*(){var i,s,u,a,o,l;try{var c=yield n.runScript("submit",n.prepareArray([t,r])),f=fa(c,3);return o=f[0],i=f[1],l=f[2],{reachedHWM:n.convertBool(o),blocked:n.convertBool(i),strategy:l}}catch(p){if(s=p,s.message.indexOf("OVERWEIGHT")===0){var h=s.message.split(":"),d=fa(h,3);throw a=d[0],r=d[1],u=d[2],new lE(`Impossible to add a job having a weight of ${r} to a limiter having a maxConcurrent setting of ${u}`)}else throw s}})()}__free__(t,r){var n=this;return Yt(function*(){var i;return i=yield n.runScript("free",n.prepareArray([t])),{running:i}})()}};dE.exports=hE});var _E=z((CG,gE)=>{"use strict";_();var DE,mE;DE=Qn();mE=class{constructor(t){this.status=t,this._jobs={},this.counts=this.status.map(function(){return 0})}next(t){var r,n;if(r=this._jobs[t],n=r+1,r!=null&&n<this.status.length)return this.counts[r]--,this.counts[n]++,this._jobs[t]++;if(r!=null)return this.counts[r]--,delete this._jobs[t]}start(t){var r;return r=0,this._jobs[t]=r,this.counts[r]++}remove(t){var r;return r=this._jobs[t],r!=null&&(this.counts[r]--,delete this._jobs[t]),r!=null}jobStatus(t){var r;return(r=this.status[this._jobs[t]])!=null?r:null}statusJobs(t){var r,n,i,s,u;if(t!=null){if(n=this.status.indexOf(t),n<0)throw new DE(`status must be one of ${this.status.join(", ")}`);i=this._jobs,s=[];for(r in i)u=i[r],u===n&&s.push(r);return s}else return Object.keys(this._jobs)}statusCounts(){return this.counts.reduce((t,r,n)=>(t[this.status[n]]=r,t),{})}};gE.exports=mE});var AE=z((bG,CE)=>{"use strict";_();function yE(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function EE(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){yE(s,n,i,u,a,"next",o)}function a(o){yE(s,n,i,u,a,"throw",o)}u(void 0)})}}var vE,FE;vE=Vc();FE=class{constructor(t,r){this.schedule=this.schedule.bind(this),this.name=t,this.Promise=r,this._running=0,this._queue=new vE}isEmpty(){return this._queue.length===0}_tryToRun(){var t=this;return EE(function*(){var r,n,i,s,u,a,o;if(t._running<1&&t._queue.length>0){t._running++;var l=t._queue.shift();return o=l.task,r=l.args,u=l.resolve,s=l.reject,n=yield EE(function*(){try{return a=yield o(...r),function(){return u(a)}}catch(c){return i=c,function(){return s(i)}}})(),t._running--,t._tryToRun(),n()}})()}schedule(t,...r){var n,i,s;return s=i=null,n=new this.Promise(function(u,a){return s=u,i=a}),this._queue.push({task:t,args:r,resolve:s,reject:i}),this._tryToRun(),n}};CE.exports=FE});var wE=z((RG,fL)=>{fL.exports={version:"2.19.5"}});var PE=z((TG,kE)=>{"use strict";_();function hL(e,t){return DL(e)||pL(e,t)||dL()}function dL(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function pL(e,t){var r=[],n=!0,i=!1,s=void 0;try{for(var u=e[Symbol.iterator](),a;!(n=(a=u.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(o){i=!0,s=o}finally{try{!n&&u.return!=null&&u.return()}finally{if(i)throw s}}return r}function DL(e){if(Array.isArray(e))return e}function bE(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function Jc(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){bE(s,n,i,u,a,"next",o)}function a(o){bE(s,n,i,u,a,"throw",o)}u(void 0)})}}var SE,RE,TE,BE,xE,ha;ha=cr();SE=gn();BE=la();TE=ca();xE=oa();RE=function(){class e{constructor(r={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=r,ha.load(this.limiterOptions,this.defaults,this),this.Events=new SE(this),this.instances={},this.Bottleneck=Xc(),this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection==null&&(this.limiterOptions.datastore==="redis"?this.connection=new BE(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore==="ioredis"&&(this.connection=new TE(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(r=""){var n;return(n=this.instances[r])!=null?n:(()=>{var i;return i=this.instances[r]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${r}`,timeout:this.timeout,connection:this.connection})),this.Events.trigger("created",i,r),i})()}deleteKey(r=""){var n=this;return Jc(function*(){var i,s;return s=n.instances[r],n.connection&&(i=yield n.connection.__runCommand__(["del",...xE.allKeys(`${n.id}-${r}`)])),s!=null&&(delete n.instances[r],yield s.disconnect()),s!=null||i>0})()}limiters(){var r,n,i,s;n=this.instances,i=[];for(r in n)s=n[r],i.push({key:r,limiter:s});return i}keys(){return Object.keys(this.instances)}clusterKeys(){var r=this;return Jc(function*(){var n,i,s,u,a,o,l,c,f;if(r.connection==null)return r.Promise.resolve(r.keys());for(o=[],n=null,f=`b_${r.id}-`.length,i=9;n!==0;){var h=yield r.connection.__runCommand__(["scan",n??0,"match",`b_${r.id}-*_settings`,"count",1e4]),d=hL(h,2);for(c=d[0],s=d[1],n=~~c,u=0,l=s.length;u<l;u++)a=s[u],o.push(a.slice(f,-i))}return o})()}_startAutoCleanup(){var r=this,n;return clearInterval(this.interval),typeof(n=this.interval=setInterval(Jc(function*(){var i,s,u,a,o,l;o=Date.now(),u=r.instances,a=[];for(s in u){l=u[s];try{(yield l._store.__groupCheck__(o))?a.push(r.deleteKey(s)):a.push(void 0)}catch(c){i=c,a.push(l.Events.trigger("error",i))}}return a}),this.timeout/2)).unref=="function"?n.unref():void 0}updateSettings(r={}){if(ha.overwrite(r,this.defaults,this),ha.overwrite(r,r,this.limiterOptions),r.timeout!=null)return this._startAutoCleanup()}disconnect(r=!0){var n;if(!this.sharedConnection)return(n=this.connection)!=null?n.disconnect(r):void 0}}return e.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:"group-key"},e}.call(void 0);kE.exports=RE});var ME=z((xG,NE)=>{"use strict";_();var OE,IE,LE;LE=cr();IE=gn();OE=function(){class e{constructor(r={}){this.options=r,LE.load(this.options,this.defaults,this),this.Events=new IE(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((r,n)=>this._resolve=r)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger("batch",this._arr),this._arr=[],this._resetPromise()}add(r){var n;return this._arr.push(r),n=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),n}}return e.prototype.defaults={maxTime:null,maxSize:null,Promise},e}.call(void 0);NE.exports=OE});var Xc=z((PG,JE)=>{"use strict";_();function jE(e,t){return UE(e)||mL(e,t)||qE()}function mL(e,t){var r=[],n=!0,i=!1,s=void 0;try{for(var u=e[Symbol.iterator](),a;!(n=(a=u.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(o){i=!0,s=o}finally{try{!n&&u.return!=null&&u.return()}finally{if(i)throw s}}return r}function da(e){return UE(e)||gL(e)||qE()}function qE(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function gL(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function UE(e){if(Array.isArray(e))return e}function $E(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function Qc(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){$E(s,n,i,u,a,"next",o)}function a(o){$E(s,n,i,u,a,"throw",o)}u(void 0)})}}var GE,WE,Zc,ef,VE,tf,zE,YE,KE,rf,Kt,HE=[].splice;tf=10;WE=5;Kt=cr();zE=Vy();ef=tE();VE=uE();YE=pE();Zc=gn();KE=_E();rf=AE();GE=function(){class e{constructor(r={},...n){var i,s;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(r,n),Kt.load(r,this.instanceDefaults,this),this._queues=new zE(tf),this._scheduled={},this._states=new KE(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[])),this._limiter=null,this.Events=new Zc(this),this._submitLock=new rf("submit",this.Promise),this._registerLock=new rf("register",this.Promise),s=Kt.load(r,this.storeDefaults,{}),this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null)return i=Kt.load(r,this.redisStoreDefaults,{}),new YE(this,s,i);if(this.datastore==="local")return i=Kt.load(r,this.localStoreDefaults,{}),new VE(this,s,i);throw new e.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}.call(this),this._queues.on("leftzero",()=>{var u;return(u=this._store.heartbeat)!=null&&typeof u.ref=="function"?u.ref():void 0}),this._queues.on("zero",()=>{var u;return(u=this._store.heartbeat)!=null&&typeof u.unref=="function"?u.unref():void 0})}_validateOptions(r,n){if(!(r!=null&&typeof r=="object"&&n.length===0))throw new e.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(r){return this._store.__publish__(r)}disconnect(r=!0){return this._store.__disconnect__(r)}chain(r){return this._limiter=r,this}queued(r){return this._queues.queued(r)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(r){return this._states.jobStatus(r)}jobs(r){return this._states.statusJobs(r)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(r=1){return this._store.__check__(r)}_clearGlobalState(r){return this._scheduled[r]!=null?(clearTimeout(this._scheduled[r].expiration),delete this._scheduled[r],!0):!1}_free(r,n,i,s){var u=this;return Qc(function*(){var a,o;try{var l=yield u._store.__free__(r,i.weight);if(o=l.running,u.Events.trigger("debug",`Freed ${i.id}`,s),o===0&&u.empty())return u.Events.trigger("idle")}catch(c){return a=c,u.Events.trigger("error",a)}})()}_run(r,n,i){var s,u,a;return n.doRun(),s=this._clearGlobalState.bind(this,r),a=this._run.bind(this,r,n),u=this._free.bind(this,r,n),this._scheduled[r]={timeout:setTimeout(()=>n.doExecute(this._limiter,s,a,u),i),expiration:n.options.expiration!=null?setTimeout(function(){return n.doExpire(s,a,u)},i+n.options.expiration):void 0,job:n}}_drainOne(r){return this._registerLock.schedule(()=>{var n,i,s,u,a;if(this.queued()===0)return this.Promise.resolve(null);a=this._queues.getFirst();var o=s=a.first();return u=o.options,n=o.args,r!=null&&u.weight>r?this.Promise.resolve(null):(this.Events.trigger("debug",`Draining ${u.id}`,{args:n,options:u}),i=this._randomIndex(),this._store.__register__(i,u.weight,u.expiration).then(({success:l,wait:c,reservoir:f})=>{var h;return this.Events.trigger("debug",`Drained ${u.id}`,{success:l,args:n,options:u}),l?(a.shift(),h=this.empty(),h&&this.Events.trigger("empty"),f===0&&this.Events.trigger("depleted",h),this._run(i,s,c),this.Promise.resolve(u.weight)):this.Promise.resolve(null)}))})}_drainAll(r,n=0){return this._drainOne(r).then(i=>{var s;return i!=null?(s=r!=null?r-i:r,this._drainAll(s,n+i)):this.Promise.resolve(n)}).catch(i=>this.Events.trigger("error",i))}_dropAllQueued(r){return this._queues.shiftAll(function(n){return n.doDrop({message:r})})}stop(r={}){var n,i;return r=Kt.load(r,this.stopDefaults),i=s=>{var u;return u=()=>{var a;return a=this._states.counts,a[0]+a[1]+a[2]+a[3]===s},new this.Promise((a,o)=>u()?a():this.on("done",()=>{if(u())return this.removeAllListeners("done"),a()}))},n=r.dropWaitingJobs?(this._run=function(s,u){return u.doDrop({message:r.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var s,u,a;u=this._scheduled;for(s in u)a=u[s],this.jobStatus(a.job.options.id)==="RUNNING"&&(clearTimeout(a.timeout),clearTimeout(a.expiration),a.job.doDrop({message:r.dropErrorMessage}));return this._dropAllQueued(r.dropErrorMessage),i(0)}))):this.schedule({priority:tf-1,weight:0},()=>i(1)),this._receive=function(s){return s._reject(new e.prototype.BottleneckError(r.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new e.prototype.BottleneckError("stop() has already been called")),n}_addToQueue(r){var n=this;return Qc(function*(){var i,s,u,a,o,l,c;i=r.args,a=r.options;try{var f=yield n._store.__submit__(n.queued(),a.weight);o=f.reachedHWM,s=f.blocked,c=f.strategy}catch(h){return u=h,n.Events.trigger("debug",`Could not queue ${a.id}`,{args:i,options:a,error:u}),r.doDrop({error:u}),!1}return s?(r.doDrop(),!0):o&&(l=c===e.prototype.strategy.LEAK?n._queues.shiftLastFrom(a.priority):c===e.prototype.strategy.OVERFLOW_PRIORITY?n._queues.shiftLastFrom(a.priority+1):c===e.prototype.strategy.OVERFLOW?r:void 0,l?.doDrop(),l==null||c===e.prototype.strategy.OVERFLOW)?(l==null&&r.doDrop(),o):(r.doQueue(o,s),n._queues.push(r),yield n._drainAll(),o)})()}_receive(r){return this._states.jobStatus(r.options.id)!=null?(r._reject(new e.prototype.BottleneckError(`A job with the same id already exists (id=${r.options.id})`)),!1):(r.doReceive(),this._submitLock.schedule(this._addToQueue,r))}submit(...r){var n,i,s,u,a,o,l;if(typeof r[0]=="function"){var c,f,h,d;a=r,c=a,f=da(c),i=f[0],r=f.slice(1),h=HE.call(r,-1),d=jE(h,1),n=d[0],u=Kt.load({},this.jobDefaults)}else{var p,D,w,y;o=r,p=o,D=da(p),u=D[0],i=D[1],r=D.slice(2),w=HE.call(r,-1),y=jE(w,1),n=y[0],u=Kt.load(u,this.jobDefaults)}return l=(...m)=>new this.Promise(function(g,C){return i(...m,function(...E){return(E[0]!=null?C:g)(E)})}),s=new ef(l,r,u,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),s.promise.then(function(m){return typeof n=="function"?n(...m):void 0}).catch(function(m){return Array.isArray(m)?typeof n=="function"?n(...m):void 0:typeof n=="function"?n(m):void 0}),this._receive(s)}schedule(...r){var n,i,s;if(typeof r[0]=="function"){var u=r,a=da(u);s=a[0],r=a.slice(1),i={}}else{var o=r,l=da(o);i=l[0],s=l[1],r=l.slice(2)}return n=new ef(s,r,i,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(n),n.promise}wrap(r){var n,i;return n=this.schedule.bind(this),i=function(...u){return n(r.bind(this),...u)},i.withOptions=function(s,...u){return n(s,r,...u)},i}updateSettings(r={}){var n=this;return Qc(function*(){return yield n._store.__updateSettings__(Kt.overwrite(r,n.storeDefaults)),Kt.overwrite(r,n.instanceDefaults,n),n})()}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(r=0){return this._store.__incrementReservoir__(r)}}return e.default=e,e.Events=Zc,e.version=e.prototype.version=wE().version,e.strategy=e.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},e.BottleneckError=e.prototype.BottleneckError=Qn(),e.Group=e.prototype.Group=PE(),e.RedisConnection=e.prototype.RedisConnection=la(),e.IORedisConnection=e.prototype.IORedisConnection=ca(),e.Batcher=e.prototype.Batcher=ME(),e.prototype.jobDefaults={priority:WE,weight:1,expiration:null,id:"<no-id>"},e.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:e.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},e.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},e.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},e.prototype.instanceDefaults={datastore:"local",connection:null,id:"<no-id>",rejectOnDrop:!0,trackDoneStatus:!1,Promise},e.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:!0,dropErrorMessage:"This limiter has been stopped."},e}.call(void 0);JE.exports=GE});var QE=z((IG,XE)=>{"use strict";_();XE.exports=Xc()});var ts=z((Uz,df)=>{"use strict";_();typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?df.exports={nextTick:oN}:df.exports=process;function oN(e,t,r,n){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,s,u;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,r)});case 4:return process.nextTick(function(){e.call(null,t,r,n)});default:for(s=new Array(i-1),u=0;u<s.length;)s[u++]=arguments[u];return process.nextTick(function(){e.apply(null,s)})}}});var Hv=z((Wz,$v)=>{"use strict";_();var lN={}.toString;$v.exports=Array.isArray||function(e){return lN.call(e)=="[object Array]"}});var pf=z((zz,qv)=>{"use strict";_();qv.exports=ye("stream")});var rs=z((Df,Gv)=>{"use strict";_();var va=ye("buffer"),fr=va.Buffer;function Uv(e,t){for(var r in e)t[r]=e[r]}fr.from&&fr.alloc&&fr.allocUnsafe&&fr.allocUnsafeSlow?Gv.exports=va:(Uv(va,Df),Df.Buffer=ei);function ei(e,t,r){return fr(e,t,r)}Uv(fr,ei);ei.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return fr(e,t,r)};ei.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=fr(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};ei.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return fr(e)};ei.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return va.SlowBuffer(e)}});var ti=z(it=>{"use strict";_();function cN(e){return Array.isArray?Array.isArray(e):Fa(e)==="[object Array]"}it.isArray=cN;function fN(e){return typeof e=="boolean"}it.isBoolean=fN;function hN(e){return e===null}it.isNull=hN;function dN(e){return e==null}it.isNullOrUndefined=dN;function pN(e){return typeof e=="number"}it.isNumber=pN;function DN(e){return typeof e=="string"}it.isString=DN;function mN(e){return typeof e=="symbol"}it.isSymbol=mN;function gN(e){return e===void 0}it.isUndefined=gN;function _N(e){return Fa(e)==="[object RegExp]"}it.isRegExp=_N;function yN(e){return typeof e=="object"&&e!==null}it.isObject=yN;function EN(e){return Fa(e)==="[object Date]"}it.isDate=EN;function vN(e){return Fa(e)==="[object Error]"||e instanceof Error}it.isError=vN;function FN(e){return typeof e=="function"}it.isFunction=FN;function CN(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}it.isPrimitive=CN;it.isBuffer=ye("buffer").Buffer.isBuffer;function Fa(e){return Object.prototype.toString.call(e)}});var Vv=z((Qz,mf)=>{"use strict";_();function AN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Wv=rs().Buffer,ns=ye("util");function wN(e,t,r){e.copy(t,r)}mf.exports=(function(){function e(){AN(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},e.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i},e.prototype.concat=function(r){if(this.length===0)return Wv.alloc(0);for(var n=Wv.allocUnsafe(r>>>0),i=this.head,s=0;i;)wN(i.data,n,s),s+=i.data.length,i=i.next;return n},e})();ns&&ns.inspect&&ns.inspect.custom&&(mf.exports.prototype[ns.inspect.custom]=function(){var e=ns.inspect({length:this.length});return this.constructor.name+" "+e})});var gf=z((eY,zv)=>{"use strict";_();var Ca=ts();function bN(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Ca.nextTick(Aa,this,e)):Ca.nextTick(Aa,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,Ca.nextTick(Aa,r,s)):Ca.nextTick(Aa,r,s):t&&t(s)}),this)}function SN(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),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 Aa(e,t){e.emit("error",t)}zv.exports={destroy:bN,undestroy:SN}});var _f=z((rY,Yv)=>{"use strict";_();Yv.exports=ye("util").deprecate});var Ef=z((iY,rF)=>{"use strict";_();var _n=ts();rF.exports=Ve;function Jv(e){var t=this;this.next=null,this.entry=null,this.finish=function(){WN(t,e)}}var RN=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:_n.nextTick,ri;Ve.WritableState=ss;var Xv=Object.create(ti());Xv.inherits=ht();var TN={deprecate:_f()},Qv=pf(),ba=rs().Buffer,BN=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function xN(e){return ba.from(e)}function kN(e){return ba.isBuffer(e)||e instanceof BN}var Zv=gf();Xv.inherits(Ve,Qv);function PN(){}function ss(e,t){ri=ri||yn(),e=e||{};var r=t instanceof ri;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=e.writableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,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 u=e.decodeStrings===!1;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){$N(t,a)},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 Jv(this)}ss.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(ss.prototype,"buffer",{get:TN.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var wa;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(wa=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ve,Symbol.hasInstance,{value:function(e){return wa.call(this,e)?!0:this!==Ve?!1:e&&e._writableState instanceof ss}})):wa=function(e){return e instanceof this};function Ve(e){if(ri=ri||yn(),!wa.call(Ve,this)&&!(this instanceof ri))return new Ve(e);this._writableState=new ss(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Qv.call(this)}Ve.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function ON(e,t){var r=new Error("write after end");e.emit("error",r),_n.nextTick(t,r)}function IN(e,t,r,n){var i=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),_n.nextTick(n,s),i=!1),i}Ve.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&kN(e);return s&&!ba.isBuffer(e)&&(e=xN(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=PN),n.ended?ON(this,r):(s||IN(this,n,e,r))&&(n.pendingcb++,i=NN(this,n,s,e,t,r)),i};Ve.prototype.cork=function(){var e=this._writableState;e.corked++};Ve.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&eF(this,e))};Ve.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function LN(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=ba.from(t,r)),t}Object.defineProperty(Ve.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function NN(e,t,r,n,i,s){if(!r){var u=LN(t,n,i);n!==u&&(r=!0,i="buffer",n=u)}var a=t.objectMode?1:n.length;t.length+=a;var o=t.length<t.highWaterMark;if(o||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else yf(e,t,!1,a,n,i,s);return o}function yf(e,t,r,n,i,s,u){t.writelen=n,t.writecb=u,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function MN(e,t,r,n,i){--t.pendingcb,r?(_n.nextTick(i,n),_n.nextTick(is,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),is(e,t))}function jN(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function $N(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(jN(r),t)MN(e,r,n,t,i);else{var s=tF(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&eF(e,r),n?RN(Kv,e,r,s,i):Kv(e,r,s,i)}}function Kv(e,t,r,n){r||HN(e,t),t.pendingcb--,n(),is(e,t)}function HN(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function eF(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var u=0,a=!0;r;)i[u]=r,r.isBuf||(a=!1),r=r.next,u+=1;i.allBuffers=a,yf(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new Jv(t),t.bufferedRequestCount=0}else{for(;r;){var o=r.chunk,l=r.encoding,c=r.callback,f=t.objectMode?1:o.length;if(yf(e,t,!1,f,o,l,c),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}Ve.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};Ve.prototype._writev=null;Ve.prototype.end=function(e,t,r){var n=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||GN(this,n,r)};function tF(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function qN(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),is(e,t)})}function UN(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,_n.nextTick(qN,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function is(e,t){var r=tF(t);return r&&(UN(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function GN(e,t,r){t.ending=!0,is(e,t),r&&(t.finished?_n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function WN(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(Ve.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});Ve.prototype.destroy=Zv.destroy;Ve.prototype._undestroy=Zv.undestroy;Ve.prototype._destroy=function(e,t){this.end(),t(e)}});var yn=z((uY,uF)=>{"use strict";_();var nF=ts(),VN=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};uF.exports=hr;var iF=Object.create(ti());iF.inherits=ht();var sF=Cf(),Ff=Ef();iF.inherits(hr,sF);for(vf=VN(Ff.prototype),Sa=0;Sa<vf.length;Sa++)Ra=vf[Sa],hr.prototype[Ra]||(hr.prototype[Ra]=Ff.prototype[Ra]);var vf,Ra,Sa;function hr(e){if(!(this instanceof hr))return new hr(e);sF.call(this,e),Ff.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",zN)}Object.defineProperty(hr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function zN(){this.allowHalfOpen||this._writableState.ended||nF.nextTick(YN,this)}function YN(e){e.end()}Object.defineProperty(hr.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});hr.prototype._destroy=function(e,t){this.push(null),this.end(),nF.nextTick(t,e)}});var bf=z(oF=>{"use strict";_();var wf=rs().Buffer,aF=wf.isEncoding||function(e){switch(e=""+e,e&&e.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 KN(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function JN(e){var t=KN(e);if(typeof t!="string"&&(wf.isEncoding===aF||!aF(e)))throw new Error("Unknown encoding: "+e);return t||e}oF.StringDecoder=us;function us(e){this.encoding=JN(e);var t;switch(this.encoding){case"utf16le":this.text=r6,this.end=n6,t=4;break;case"utf8":this.fillLast=ZN,t=4;break;case"base64":this.text=i6,this.end=s6,t=3;break;default:this.write=u6,this.end=a6;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=wf.allocUnsafe(t)}us.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};us.prototype.end=t6;us.prototype.text=e6;us.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Af(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function XN(e,t,r){var n=t.length-1;if(n<r)return 0;var i=Af(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=Af(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=Af(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function QN(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function ZN(e){var t=this.lastTotal-this.lastNeed,r=QN(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function e6(e,t){var r=XN(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function t6(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function r6(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function n6(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function i6(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function s6(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u6(e){return e.toString(this.encoding)}function a6(e){return e&&e.length?this.write(e):""}});var Cf=z((fY,EF)=>{"use strict";_();var ii=ts();EF.exports=ke;var o6=Hv(),as;ke.ReadableState=DF;var cY=ye("events").EventEmitter,hF=function(e,t){return e.listeners(t).length},xf=pf(),os=rs().Buffer,l6=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function c6(e){return os.from(e)}function f6(e){return os.isBuffer(e)||e instanceof l6}var dF=Object.create(ti());dF.inherits=ht();var Sf=ye("util"),Fe=void 0;Sf&&Sf.debuglog?Fe=Sf.debuglog("stream"):Fe=function(){};var h6=Vv(),pF=gf(),ni;dF.inherits(ke,xf);var Rf=["error","close","destroy","pause","resume"];function d6(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):o6(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function DF(e,t){as=as||yn(),e=e||{};var r=t instanceof as;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new h6,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=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(ni||(ni=bf().StringDecoder),this.decoder=new ni(e.encoding),this.encoding=e.encoding)}function ke(e){if(as=as||yn(),!(this instanceof ke))return new ke(e);this._readableState=new DF(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),xf.call(this)}Object.defineProperty(ke.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});ke.prototype.destroy=pF.destroy;ke.prototype._undestroy=pF.undestroy;ke.prototype._destroy=function(e,t){this.push(null),t(e)};ke.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=os.from(e,t),t=""),n=!0),mF(this,e,t,!1,n)};ke.prototype.unshift=function(e){return mF(this,e,null,!0,!1)};function mF(e,t,r,n,i){var s=e._readableState;if(t===null)s.reading=!1,g6(e,s);else{var u;i||(u=p6(s,t)),u?e.emit("error",u):s.objectMode||t&&t.length>0?(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==os.prototype&&(t=c6(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Tf(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?Tf(e,s,t,!1):gF(e,s)):Tf(e,s,t,!1))):n||(s.reading=!1)}return D6(s)}function Tf(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Ta(e)),gF(e,t)}function p6(e,t){var r;return!f6(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function D6(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}ke.prototype.isPaused=function(){return this._readableState.flowing===!1};ke.prototype.setEncoding=function(e){return ni||(ni=bf().StringDecoder),this._readableState.decoder=new ni(e),this._readableState.encoding=e,this};var lF=8388608;function m6(e){return e>=lF?e=lF:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function cF(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=m6(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}ke.prototype.read=function(e){Fe("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Fe("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Bf(this):Ta(this),null;if(e=cF(e,t),e===0&&t.ended)return t.length===0&&Bf(this),null;var n=t.needReadable;Fe("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,Fe("length less than watermark",n)),t.ended||t.reading?(n=!1,Fe("reading or ended",n)):n&&(Fe("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=cF(r,t)));var i;return e>0?i=_F(e,t):i=null,i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Bf(this)),i!==null&&this.emit("data",i),i};function g6(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,Ta(e)}}function Ta(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Fe("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?ii.nextTick(fF,e):fF(e))}function fF(e){Fe("emit readable"),e.emit("readable"),kf(e)}function gF(e,t){t.readingMore||(t.readingMore=!0,ii.nextTick(_6,e,t))}function _6(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Fe("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}ke.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};ke.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,Fe("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:w;n.endEmitted?ii.nextTick(s):r.once("end",s),e.on("unpipe",u);function u(y,m){Fe("onunpipe"),y===r&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,c())}function a(){Fe("onend"),e.end()}var o=y6(r);e.on("drain",o);var l=!1;function c(){Fe("cleanup"),e.removeListener("close",p),e.removeListener("finish",D),e.removeListener("drain",o),e.removeListener("error",d),e.removeListener("unpipe",u),r.removeListener("end",a),r.removeListener("end",w),r.removeListener("data",h),l=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&o()}var f=!1;r.on("data",h);function h(y){Fe("ondata"),f=!1;var m=e.write(y);m===!1&&!f&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&yF(n.pipes,e)!==-1)&&!l&&(Fe("false write response, pause",n.awaitDrain),n.awaitDrain++,f=!0),r.pause())}function d(y){Fe("onerror",y),w(),e.removeListener("error",d),hF(e,"error")===0&&e.emit("error",y)}d6(e,"error",d);function p(){e.removeListener("finish",D),w()}e.once("close",p);function D(){Fe("onfinish"),e.removeListener("close",p),w()}e.once("finish",D);function w(){Fe("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(Fe("pipe resume"),r.resume()),e};function y6(e){return function(){var t=e._readableState;Fe("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&hF(e,"data")&&(t.flowing=!0,kf(e))}}ke.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var u=yF(t.pipes,e);return u===-1?this:(t.pipes.splice(u,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};ke.prototype.on=function(e,t){var r=xf.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&Ta(this):ii.nextTick(E6,this))}return r};ke.prototype.addListener=ke.prototype.on;function E6(e){Fe("readable nexttick read 0"),e.read(0)}ke.prototype.resume=function(){var e=this._readableState;return e.flowing||(Fe("resume"),e.flowing=!0,v6(this,e)),this};function v6(e,t){t.resumeScheduled||(t.resumeScheduled=!0,ii.nextTick(F6,e,t))}function F6(e,t){t.reading||(Fe("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),kf(e),t.flowing&&!t.reading&&e.read(0)}ke.prototype.pause=function(){return Fe("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Fe("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function kf(e){var t=e._readableState;for(Fe("flow",t.flowing);t.flowing&&e.read()!==null;);}ke.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(Fe("wrapped end"),r.decoder&&!r.ended){var u=r.decoder.end();u&&u.length&&t.push(u)}t.push(null)}),e.on("data",function(u){if(Fe("wrapped data"),r.decoder&&(u=r.decoder.write(u)),!(r.objectMode&&u==null)&&!(!r.objectMode&&(!u||!u.length))){var a=t.push(u);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(u){return function(){return e[u].apply(e,arguments)}})(i));for(var s=0;s<Rf.length;s++)e.on(Rf[s],this.emit.bind(this,Rf[s]));return this._read=function(u){Fe("wrapped _read",u),n&&(n=!1,e.resume())},this};Object.defineProperty(ke.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});ke._fromList=_F;function _F(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=C6(e,t.buffer,t.decoder),r}function C6(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?n=t.shift():n=r?A6(e,t):w6(e,t),n}function A6(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var s=r.data,u=e>s.length?s.length:e;if(u===s.length?i+=s:i+=s.slice(0,e),e-=u,e===0){u===s.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(u));break}++n}return t.length-=n,i}function w6(e,t){var r=os.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var s=n.data,u=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,u),e-=u,e===0){u===s.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(u));break}++i}return t.length-=i,r}function Bf(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,ii.nextTick(b6,t,e))}function b6(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function yF(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var Pf=z((dY,CF)=>{"use strict";_();CF.exports=dr;var Ba=yn(),FF=Object.create(ti());FF.inherits=ht();FF.inherits(dr,Ba);function S6(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function dr(e){if(!(this instanceof dr))return new dr(e);Ba.call(this,e),this._transformState={afterTransform:S6.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",R6)}function R6(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){vF(e,t,r)}):vF(this,null,null)}dr.prototype.push=function(e,t){return this._transformState.needTransform=!1,Ba.prototype.push.call(this,e,t)};dr.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};dr.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};dr.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};dr.prototype._destroy=function(e,t){var r=this;Ba.prototype._destroy.call(this,e,function(n){t(n),r.emit("close")})};function vF(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var SF=z((DY,bF)=>{"use strict";_();bF.exports=ls;var AF=Pf(),wF=Object.create(ti());wF.inherits=ht();wF.inherits(ls,AF);function ls(e){if(!(this instanceof ls))return new ls(e);AF.call(this,e)}ls.prototype._transform=function(e,t,r){r(null,e)}});var Of=z((Ze,xa)=>{"use strict";_();var Jt=ye("stream");process.env.READABLE_STREAM==="disable"&&Jt?(xa.exports=Jt,Ze=xa.exports=Jt.Readable,Ze.Readable=Jt.Readable,Ze.Writable=Jt.Writable,Ze.Duplex=Jt.Duplex,Ze.Transform=Jt.Transform,Ze.PassThrough=Jt.PassThrough,Ze.Stream=Jt):(Ze=xa.exports=Cf(),Ze.Stream=Jt||Ze,Ze.Readable=Ze,Ze.Writable=Ef(),Ze.Duplex=yn(),Ze.Transform=Pf(),Ze.PassThrough=SF())});var TF=z((_Y,RF)=>{"use strict";_();RF.exports=T6;function T6(e){var t=e._readableState;return t?t.objectMode||typeof e._duplexState=="number"?e.read():e.read(B6(t)):null}function B6(e){if(e.buffer.length){var t=e.bufferIndex||0;if(e.buffer.head)return e.buffer.head.data.length;if(e.buffer.length-t>0&&e.buffer[t])return e.buffer[t].length}return e.length}});var Lf=z((EY,PF)=>{"use strict";_();var ka=Of(),BF=mo(),x6=ht(),k6=TF(),xF=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),If=function(e,t){e._corked?e.once("uncork",t):t()},P6=function(e,t){e._autoDestroy&&e.destroy(t)},kF=function(e,t){return function(r){r?P6(e,r.message==="premature close"?null:r):t&&!e._ended&&e.end()}},O6=function(e,t){if(!e||e._writableState&&e._writableState.finished)return t();if(e._writableState)return e.end(t);e.end(),t()},I6=function(e){return new ka.Readable({objectMode:!0,highWaterMark:16}).wrap(e)},et=function(e,t,r){if(!(this instanceof et))return new et(e,t,r);ka.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||r.autoDestroy!==!1,this._forwardDestroy=!r||r.destroy!==!1,this._forwardEnd=!r||r.end!==!1,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};x6(et,ka.Duplex);et.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new et(e,t,r)};et.prototype.cork=function(){++this._corked===1&&this.emit("cork")};et.prototype.uncork=function(){this._corked&&--this._corked===0&&this.emit("uncork")};et.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(e===null||e===!1){this.end();return}var t=this,r=BF(e,{writable:!0,readable:!1},kF(this,this._forwardEnd)),n=function(){var s=t._ondrain;t._ondrain=null,s&&s()},i=function(){t._writable.removeListener("drain",n),r()};this._unwrite&&process.nextTick(n),this._writable=e,this._writable.on("drain",n),this._unwrite=i,this.uncork()};et.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(e===null||e===!1){this.push(null),this.resume();return}var t=this,r=BF(e,{writable:!1,readable:!0},kF(this)),n=function(){t._forward()},i=function(){t.push(null)},s=function(){t._readable2.removeListener("readable",n),t._readable2.removeListener("end",i),r()};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:I6(e),this._readable2.on("readable",n),this._readable2.on("end",i),this._unread=s,this._forward()};et.prototype._read=function(){this._drained=!0,this._forward()};et.prototype._forward=function(){if(!(this._forwarding||!this._readable2||!this._drained)){this._forwarding=!0;for(var e;this._drained&&(e=k6(this._readable2))!==null;)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}};et.prototype.destroy=function(e){if(!this.destroyed){this.destroyed=!0;var t=this;process.nextTick(function(){t._destroy(e)})}};et.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")};et.prototype._write=function(e,t,r){if(this.destroyed)return r();if(this._corked)return If(this,this._write.bind(this,e,t,r));if(e===xF)return this._finish(r);if(!this._writable)return r();this._writable.write(e)===!1?this._ondrain=r:r()};et.prototype._finish=function(e){var t=this;this.emit("preend"),If(this,function(){O6(t._forwardEnd&&t._writable,function(){t._writableState.prefinished===!1&&(t._writableState.prefinished=!0),t.emit("prefinish"),If(t,e)})})};et.prototype.end=function(e,t,r){return typeof e=="function"?this.end(null,null,e):typeof t=="function"?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this.write(xF),ka.Writable.prototype.end.call(this,r))};PF.exports=et});var IF=z((FY,OF)=>{"use strict";_();OF.exports=N6;var L6=Object.prototype.hasOwnProperty;function N6(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)L6.call(r,n)&&(e[n]=r[n])}return e}});var Mf=z((AY,Pa)=>{"use strict";_();var LF=Of().Transform,NF=ye("util").inherits,MF=IF();function si(e){LF.call(this,e),this._destroyed=!1}NF(si,LF);si.prototype.destroy=function(e){if(!this._destroyed){this._destroyed=!0;var t=this;process.nextTick(function(){e&&t.emit("error",e),t.emit("close")})}};function M6(e,t,r){r(null,e)}function Nf(e){return function(t,r,n){return typeof t=="function"&&(n=r,r=t,t={}),typeof r!="function"&&(r=M6),typeof n!="function"&&(n=null),e(t,r,n)}}Pa.exports=Nf(function(e,t,r){var n=new si(e);return n._transform=t,r&&(n._flush=r),n});Pa.exports.ctor=Nf(function(e,t,r){function n(i){if(!(this instanceof n))return new n(i);this.options=MF(e,i),si.call(this,this.options)}return NF(n,si),n.prototype._transform=t,r&&(n.prototype._flush=r),n});Pa.exports.obj=Nf(function(e,t,r){var n=new si(MF({objectMode:!0,highWaterMark:16},e));return n._transform=t,r&&(n._flush=r),n})});var HF=z((bY,$F)=>{"use strict";_();var j6=Lf(),$6=Mf(),H6=iw(),q6=function(e){return!Buffer.isBuffer(e)&&typeof e!="string"},jF=function(e,t){if(typeof e=="number"&&(e={maxBuffer:e}),typeof e=="function")return jF(null,e);e||(e={});var r=typeof e.maxBuffer=="number"?e.maxBuffer:65535,n=e.strict,i=e.newline!==!1,s=[],u=0,a=j6.obj(),o=$6.obj({highWaterMark:1},function(f,h,d){if(q6(f))return c(f,null,d);if(Buffer.isBuffer(f)||(f=H6(f)),i){var p=Array.prototype.indexOf.call(f,10);if(p>0&&f[p-1]===13&&p--,p>-1)return s.push(f.slice(0,p)),c(Buffer.concat(s),f.slice(p),d)}if(s.push(f),u+=f.length,u<r)return d();if(n)return d(new Error("No newline found"));c(Buffer.concat(s),null,d)}),l=function(){if(n)return a.destroy(new Error("No newline found"));a.cork(),c(Buffer.concat(s),null,function(f){if(f)return a.destroy(f);a.uncork()})},c=function(f,h,d){a.removeListener("preend",l),t(f,function(p,D){if(p)return d(p);a.setWritable(D),a.setReadable(D),f&&D.write(f),h&&D.write(h),h=s=o=null,d()})};return a.on("preend",l),a.setWritable(o),a};$F.exports=jF});var GF=z((RY,UF)=>{"use strict";_();var U6=sw(),G6=mo(),jf=ye("fs"),cs=function(){},W6=/^v?\.0/.test(process.version),Oa=function(e){return typeof e=="function"},V6=function(e){return!W6||!jf?!1:(e instanceof(jf.ReadStream||cs)||e instanceof(jf.WriteStream||cs))&&Oa(e.close)},z6=function(e){return e.setHeader&&Oa(e.abort)},Y6=function(e,t,r,n){n=U6(n);var i=!1;e.on("close",function(){i=!0}),G6(e,{readable:t,writable:r},function(u){if(u)return n(u);i=!0,n()});var s=!1;return function(u){if(!i&&!s){if(s=!0,V6(e))return e.close(cs);if(z6(e))return e.abort();if(Oa(e.destroy))return e.destroy();n(u||new Error("stream was destroyed"))}}},qF=function(e){e()},K6=function(e,t){return e.pipe(t)},J6=function(){var e=Array.prototype.slice.call(arguments),t=Oa(e[e.length-1]||cs)&&e.pop()||cs;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r,n=e.map(function(i,s){var u=s<e.length-1,a=s>0;return Y6(i,u,a,function(o){r||(r=o),o&&n.forEach(qF),!u&&(n.forEach(qF),t(r))})});e.reduce(K6)};UF.exports=J6});var zF=z((BY,Ia)=>{"use strict";_();var X6=GF(),Q6=ht(),WF=Lf(),VF=function(e){return e.length?Array.isArray(e[0])?e[0]:Array.prototype.slice.call(e):[]},$f=function(e){var t=function(){var r=VF(arguments);if(!(this instanceof t))return new t(r);WF.call(this,null,null,e),r.length&&this.setPipeline(r)};return Q6(t,WF),t.prototype.setPipeline=function(){var r=VF(arguments),n=this,i=!1,s=r[0],u=r[r.length-1];u=u.readable?u:null,s=s.writable?s:null;var a=function(){r[0].emit("error",new Error("stream was destroyed"))};if(this.on("close",a),this.on("prefinish",function(){i||n.cork()}),X6(r,function(o){if(n.removeListener("close",a),o)return n.destroy(o.message==="premature close"?null:o);i=!0,n._autoDestroy===!1&&(n._autoDestroy=!0),n.uncork()}),this.destroyed)return a();this.setWritable(s),this.setReadable(u)},t};Ia.exports=$f({autoDestroy:!1,destroy:!1});Ia.exports.obj=$f({autoDestroy:!1,destroy:!1,objectMode:!0,highWaterMark:16});Ia.exports.ctor=$f});var KF=z((kY,YF)=>{"use strict";_();YF.exports=function(e){return!e||e.length<3?!1:e[0]===31&&e[1]===139&&e[2]===8}});var XF=z((OY,JF)=>{"use strict";_();JF.exports=function(e){return!e||e.length<2?!1:e[0]===120&&(e[1]===1||e[1]===156||e[1]===218)}});var tC=z((LY,eC)=>{"use strict";_();var QF=ye("zlib"),Z6=HF(),e9=Mf(),ZF=zF(),t9=KF(),r9=XF(),n9=function(e){return t9(e)?1:r9(e)?2:0},Hf=function(e){return e===void 0&&(e=3),Z6({newline:!1,maxBuffer:10},function(t,r){if(e<0)return r(new Error("Maximum recursion reached"));switch(n9(t)){case 1:r(null,ZF(QF.createGunzip(),Hf(e-1)));break;case 2:r(null,ZF(QF.createInflate(),Hf(e-1)));break;default:r(null,e9())}})};eC.exports=Hf});var oC=z((MY,aC)=>{"use strict";_();var xt=ye("fs"),En=ye("path"),i9=xt.lchown?"lchown":"chown",s9=xt.lchownSync?"lchownSync":"chownSync",nC=xt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),rC=(e,t,r)=>{try{return xt[s9](e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},u9=(e,t,r)=>{try{return xt.chownSync(e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},a9=nC?(e,t,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):xt.chown(e,t,r,n)}:(e,t,r,n)=>n,qf=nC?(e,t,r)=>{try{return rC(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;u9(e,t,r)}}:(e,t,r)=>rC(e,t,r),o9=process.version,iC=(e,t,r)=>xt.readdir(e,t,r),l9=(e,t)=>xt.readdirSync(e,t);/^v4\./.test(o9)&&(iC=(e,t,r)=>xt.readdir(e,r));var La=(e,t,r,n)=>{xt[i9](e,t,r,a9(e,t,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},sC=(e,t,r,n,i)=>{if(typeof t=="string")return xt.lstat(En.resolve(e,t),(s,u)=>{if(s)return i(s.code!=="ENOENT"?s:null);u.name=t,sC(e,u,r,n,i)});if(t.isDirectory())Uf(En.resolve(e,t.name),r,n,s=>{if(s)return i(s);let u=En.resolve(e,t.name);La(u,r,n,i)});else{let s=En.resolve(e,t.name);La(s,r,n,i)}},Uf=(e,t,r,n)=>{iC(e,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return La(e,t,r,n);let u=s.length,a=null,o=l=>{if(!a){if(l)return n(a=l);if(--u===0)return La(e,t,r,n)}};s.forEach(l=>sC(e,l,t,r,o))})},c9=(e,t,r,n)=>{if(typeof t=="string")try{let i=xt.lstatSync(En.resolve(e,t));i.name=t,t=i}catch(i){if(i.code==="ENOENT")return;throw i}t.isDirectory()&&uC(En.resolve(e,t.name),r,n),qf(En.resolve(e,t.name),r,n)},uC=(e,t,r)=>{let n;try{n=l9(e,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return qf(e,t,r);throw i}return n&&n.length&&n.forEach(i=>c9(e,i,t,r)),qf(e,t,r)};aC.exports=Uf;Uf.sync=uC});var Gf=z(($Y,lC)=>{"use strict";_();lC.exports=ye("stream")});var DC=z((qY,pC)=>{"use strict";_();function cC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cC(Object(r),!0).forEach(function(n){f9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f9(e,t,r){return t=dC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dC(n.key),n)}}function d9(e,t,r){return t&&hC(e.prototype,t),r&&hC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dC(e){var t=p9(e,"string");return typeof t=="symbol"?t:String(t)}function p9(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var D9=ye("buffer"),Na=D9.Buffer,m9=ye("util"),Wf=m9.inspect,g9=Wf&&Wf.custom||"inspect";function _9(e,t,r){Na.prototype.copy.call(e,t,r)}pC.exports=(function(){function e(){h9(this,e),this.head=null,this.tail=null,this.length=0}return d9(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Na.alloc(0);for(var n=Na.allocUnsafe(r>>>0),i=this.head,s=0;i;)_9(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var u=n.data,a=r>u.length?u.length:r;if(a===u.length?s+=u:s+=u.slice(0,r),r-=a,r===0){a===u.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=u.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=Na.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var u=i.data,a=r>u.length?u.length:r;if(u.copy(n,n.length-r,0,a),r-=a,r===0){a===u.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=u.slice(a));break}++s}return this.length-=s,n}},{key:g9,value:function(r,n){return Wf(this,fC(fC({},n),{},{depth:0,customInspect:!1}))}}]),e})()});var zf=z((GY,gC)=>{"use strict";_();function y9(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Vf,this,e)):process.nextTick(Vf,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(Ma,r):(r._writableState.errorEmitted=!0,process.nextTick(mC,r,s)):process.nextTick(mC,r,s):t?(process.nextTick(Ma,r),t(s)):process.nextTick(Ma,r)}),this)}function mC(e,t){Vf(e,t),Ma(e)}function Ma(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function E9(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),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 Vf(e,t){e.emit("error",t)}function v9(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}gC.exports={destroy:y9,undestroy:E9,errorOrDestroy:v9}});var Gr=z((VY,EC)=>{"use strict";_();var yC={};function kt(e,t,r){r||(r=Error);function n(s,u,a){return typeof t=="string"?t:t(s,u,a)}class i extends r{constructor(u,a,o){super(n(u,a,o))}}i.prototype.name=r.name,i.prototype.code=e,yC[e]=i}function _C(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(n=>String(n)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function F9(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function C9(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function A9(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}kt("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);kt("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&F9(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(C9(e," argument"))i=`The ${e} ${n} ${_C(t,"type")}`;else{let s=A9(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${_C(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);kt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");kt("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});kt("ERR_STREAM_PREMATURE_CLOSE","Premature close");kt("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});kt("ERR_MULTIPLE_CALLBACK","Callback called multiple times");kt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");kt("ERR_STREAM_WRITE_AFTER_END","write after end");kt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);kt("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);kt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");EC.exports.codes=yC});var Yf=z((YY,vC)=>{"use strict";_();var w9=Gr().codes.ERR_INVALID_OPT_VALUE;function b9(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function S9(e,t,r,n){var i=b9(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new w9(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}vC.exports={getHighWaterMark:S9}});var Xf=z((JY,SC)=>{"use strict";_();SC.exports=$e;function CC(e){var t=this;this.next=null,this.entry=null,this.finish=function(){e7(t,e)}}var ui;$e.WritableState=hs;var R9={deprecate:_f()},AC=Gf(),$a=ye("buffer").Buffer,T9=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function B9(e){return $a.from(e)}function x9(e){return $a.isBuffer(e)||e instanceof T9}var Jf=zf(),k9=Yf(),P9=k9.getHighWaterMark,Wr=Gr().codes,O9=Wr.ERR_INVALID_ARG_TYPE,I9=Wr.ERR_METHOD_NOT_IMPLEMENTED,L9=Wr.ERR_MULTIPLE_CALLBACK,N9=Wr.ERR_STREAM_CANNOT_PIPE,M9=Wr.ERR_STREAM_DESTROYED,j9=Wr.ERR_STREAM_NULL_VALUES,$9=Wr.ERR_STREAM_WRITE_AFTER_END,H9=Wr.ERR_UNKNOWN_ENCODING,ai=Jf.errorOrDestroy;ht()($e,AC);function q9(){}function hs(e,t,r){ui=ui||vn(),e=e||{},typeof r!="boolean"&&(r=t instanceof ui),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=P9(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){K9(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new CC(this)}hs.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(hs.prototype,"buffer",{get:R9.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ja;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ja=Function.prototype[Symbol.hasInstance],Object.defineProperty($e,Symbol.hasInstance,{value:function(t){return ja.call(this,t)?!0:this!==$e?!1:t&&t._writableState instanceof hs}})):ja=function(t){return t instanceof this};function $e(e){ui=ui||vn();var t=this instanceof ui;if(!t&&!ja.call($e,this))return new $e(e);this._writableState=new hs(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),AC.call(this)}$e.prototype.pipe=function(){ai(this,new N9)};function U9(e,t){var r=new $9;ai(e,r),process.nextTick(t,r)}function G9(e,t,r,n){var i;return r===null?i=new j9:typeof r!="string"&&!t.objectMode&&(i=new O9("chunk",["string","Buffer"],r)),i?(ai(e,i),process.nextTick(n,i),!1):!0}$e.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&x9(e);return s&&!$a.isBuffer(e)&&(e=B9(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=q9),n.ending?U9(this,r):(s||G9(this,n,e,r))&&(n.pendingcb++,i=V9(this,n,s,e,t,r)),i};$e.prototype.cork=function(){this._writableState.corked++};$e.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&wC(this,e))};$e.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new H9(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty($e.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function W9(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=$a.from(t,r)),t}Object.defineProperty($e.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function V9(e,t,r,n,i,s){if(!r){var u=W9(t,n,i);n!==u&&(r=!0,i="buffer",n=u)}var a=t.objectMode?1:n.length;t.length+=a;var o=t.length<t.highWaterMark;if(o||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Kf(e,t,!1,a,n,i,s);return o}function Kf(e,t,r,n,i,s,u){t.writelen=n,t.writecb=u,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new M9("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function z9(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(fs,e,t),e._writableState.errorEmitted=!0,ai(e,n)):(i(n),e._writableState.errorEmitted=!0,ai(e,n),fs(e,t))}function Y9(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function K9(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new L9;if(Y9(r),t)z9(e,r,n,t,i);else{var s=bC(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&wC(e,r),n?process.nextTick(FC,e,r,s,i):FC(e,r,s,i)}}function FC(e,t,r,n){r||J9(e,t),t.pendingcb--,n(),fs(e,t)}function J9(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function wC(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var u=0,a=!0;r;)i[u]=r,r.isBuf||(a=!1),r=r.next,u+=1;i.allBuffers=a,Kf(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new CC(t),t.bufferedRequestCount=0}else{for(;r;){var o=r.chunk,l=r.encoding,c=r.callback,f=t.objectMode?1:o.length;if(Kf(e,t,!1,f,o,l,c),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}$e.prototype._write=function(e,t,r){r(new I9("_write()"))};$e.prototype._writev=null;$e.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||Z9(this,n,r),this};Object.defineProperty($e.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function bC(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function X9(e,t){e._final(function(r){t.pendingcb--,r&&ai(e,r),t.prefinished=!0,e.emit("prefinish"),fs(e,t)})}function Q9(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(X9,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function fs(e,t){var r=bC(t);if(r&&(Q9(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function Z9(e,t,r){t.ending=!0,fs(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function e7(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty($e.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});$e.prototype.destroy=Jf.destroy;$e.prototype._undestroy=Jf.undestroy;$e.prototype._destroy=function(e,t){t(e)}});var vn=z((QY,TC)=>{"use strict";_();var t7=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};TC.exports=Xt;var RC=eh(),Zf=Xf();ht()(Xt,RC);for(Qf=t7(Zf.prototype),Ha=0;Ha<Qf.length;Ha++)qa=Qf[Ha],Xt.prototype[qa]||(Xt.prototype[qa]=Zf.prototype[qa]);var Qf,qa,Ha;function Xt(e){if(!(this instanceof Xt))return new Xt(e);RC.call(this,e),Zf.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",r7)))}Object.defineProperty(Xt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Xt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Xt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function r7(){this._writableState.ended||process.nextTick(n7,this)}function n7(e){e.end()}Object.defineProperty(Xt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var kC=z((th,xC)=>{"use strict";_();var Ua=ye("buffer"),Qt=Ua.Buffer;function BC(e,t){for(var r in e)t[r]=e[r]}Qt.from&&Qt.alloc&&Qt.allocUnsafe&&Qt.allocUnsafeSlow?xC.exports=Ua:(BC(Ua,th),th.Buffer=Fn);function Fn(e,t,r){return Qt(e,t,r)}Fn.prototype=Object.create(Qt.prototype);BC(Qt,Fn);Fn.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Qt(e,t,r)};Fn.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Qt(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};Fn.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Qt(e)};Fn.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ua.SlowBuffer(e)}});var ih=z(OC=>{"use strict";_();var nh=kC().Buffer,PC=nh.isEncoding||function(e){switch(e=""+e,e&&e.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 i7(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function s7(e){var t=i7(e);if(typeof t!="string"&&(nh.isEncoding===PC||!PC(e)))throw new Error("Unknown encoding: "+e);return t||e}OC.StringDecoder=ds;function ds(e){this.encoding=s7(e);var t;switch(this.encoding){case"utf16le":this.text=f7,this.end=h7,t=4;break;case"utf8":this.fillLast=o7,t=4;break;case"base64":this.text=d7,this.end=p7,t=3;break;default:this.write=D7,this.end=m7;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=nh.allocUnsafe(t)}ds.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};ds.prototype.end=c7;ds.prototype.text=l7;ds.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function rh(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function u7(e,t,r){var n=t.length-1;if(n<r)return 0;var i=rh(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=rh(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=rh(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function a7(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function o7(e){var t=this.lastTotal-this.lastNeed,r=a7(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function l7(e,t){var r=u7(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function c7(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function f7(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function h7(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function d7(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function p7(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function D7(e){return e.toString(this.encoding)}function m7(e){return e&&e.length?this.write(e):""}});var Ga=z((nK,NC)=>{"use strict";_();var IC=Gr().codes.ERR_STREAM_PREMATURE_CLOSE;function g7(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function _7(){}function y7(e){return e.setHeader&&typeof e.abort=="function"}function LC(e,t,r){if(typeof t=="function")return LC(e,null,t);t||(t={}),r=g7(r||_7);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,s=function(){e.writable||a()},u=e._writableState&&e._writableState.finished,a=function(){i=!1,u=!0,n||r.call(e)},o=e._readableState&&e._readableState.endEmitted,l=function(){n=!1,o=!0,i||r.call(e)},c=function(p){r.call(e,p)},f=function(){var p;if(n&&!o)return(!e._readableState||!e._readableState.ended)&&(p=new IC),r.call(e,p);if(i&&!u)return(!e._writableState||!e._writableState.ended)&&(p=new IC),r.call(e,p)},h=function(){e.req.on("finish",a)};return y7(e)?(e.on("complete",a),e.on("abort",f),e.req?h():e.on("request",h)):i&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",l),e.on("finish",a),t.error!==!1&&e.on("error",c),e.on("close",f),function(){e.removeListener("complete",a),e.removeListener("abort",f),e.removeListener("request",h),e.req&&e.req.removeListener("finish",a),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",a),e.removeListener("end",l),e.removeListener("error",c),e.removeListener("close",f)}}NC.exports=LC});var jC=z((sK,MC)=>{"use strict";_();var Wa;function Vr(e,t,r){return t=E7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E7(e){var t=v7(e,"string");return typeof t=="symbol"?t:String(t)}function v7(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var F7=Ga(),zr=Symbol("lastResolve"),Cn=Symbol("lastReject"),ps=Symbol("error"),Va=Symbol("ended"),An=Symbol("lastPromise"),sh=Symbol("handlePromise"),wn=Symbol("stream");function Yr(e,t){return{value:e,done:t}}function C7(e){var t=e[zr];if(t!==null){var r=e[wn].read();r!==null&&(e[An]=null,e[zr]=null,e[Cn]=null,t(Yr(r,!1)))}}function A7(e){process.nextTick(C7,e)}function w7(e,t){return function(r,n){e.then(function(){if(t[Va]){r(Yr(void 0,!0));return}t[sh](r,n)},n)}}var b7=Object.getPrototypeOf(function(){}),S7=Object.setPrototypeOf((Wa={get stream(){return this[wn]},next:function(){var t=this,r=this[ps];if(r!==null)return Promise.reject(r);if(this[Va])return Promise.resolve(Yr(void 0,!0));if(this[wn].destroyed)return new Promise(function(u,a){process.nextTick(function(){t[ps]?a(t[ps]):u(Yr(void 0,!0))})});var n=this[An],i;if(n)i=new Promise(w7(n,this));else{var s=this[wn].read();if(s!==null)return Promise.resolve(Yr(s,!1));i=new Promise(this[sh])}return this[An]=i,i}},Vr(Wa,Symbol.asyncIterator,function(){return this}),Vr(Wa,"return",function(){var t=this;return new Promise(function(r,n){t[wn].destroy(null,function(i){if(i){n(i);return}r(Yr(void 0,!0))})})}),Wa),b7),R7=function(t){var r,n=Object.create(S7,(r={},Vr(r,wn,{value:t,writable:!0}),Vr(r,zr,{value:null,writable:!0}),Vr(r,Cn,{value:null,writable:!0}),Vr(r,ps,{value:null,writable:!0}),Vr(r,Va,{value:t._readableState.endEmitted,writable:!0}),Vr(r,sh,{value:function(s,u){var a=n[wn].read();a?(n[An]=null,n[zr]=null,n[Cn]=null,s(Yr(a,!1))):(n[zr]=s,n[Cn]=u)},writable:!0}),r));return n[An]=null,F7(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[Cn];s!==null&&(n[An]=null,n[zr]=null,n[Cn]=null,s(i)),n[ps]=i;return}var u=n[zr];u!==null&&(n[An]=null,n[zr]=null,n[Cn]=null,u(Yr(void 0,!0))),n[Va]=!0}),t.on("readable",A7.bind(null,n)),n};MC.exports=R7});var UC=z((aK,qC)=>{"use strict";_();function $C(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function T7(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){$C(s,n,i,u,a,"next",o)}function a(o){$C(s,n,i,u,a,"throw",o)}u(void 0)})}}function HC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function B7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HC(Object(r),!0).forEach(function(n){x7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x7(e,t,r){return t=k7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k7(e){var t=P7(e,"string");return typeof t=="symbol"?t:String(t)}function P7(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O7=Gr().codes.ERR_INVALID_ARG_TYPE;function I7(e,t,r){var n;if(t&&typeof t.next=="function")n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new O7("iterable",["Iterable"],t);var i=new e(B7({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,u())};function u(){return a.apply(this,arguments)}function a(){return a=T7(function*(){try{var o=yield n.next(),l=o.value,c=o.done;c?i.push(null):i.push(yield l)?u():s=!1}catch(f){i.destroy(f)}}),a.apply(this,arguments)}return i}qC.exports=I7});var eh=z((cK,ZC)=>{"use strict";_();ZC.exports=Ee;var oi;Ee.ReadableState=zC;var lK=ye("events").EventEmitter,VC=function(t,r){return t.listeners(r).length},ms=Gf(),za=ye("buffer").Buffer,L7=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function N7(e){return za.from(e)}function M7(e){return za.isBuffer(e)||e instanceof L7}var uh=ye("util"),de;uh&&uh.debuglog?de=uh.debuglog("stream"):de=function(){};var j7=DC(),dh=zf(),$7=Yf(),H7=$7.getHighWaterMark,Ya=Gr().codes,q7=Ya.ERR_INVALID_ARG_TYPE,U7=Ya.ERR_STREAM_PUSH_AFTER_EOF,G7=Ya.ERR_METHOD_NOT_IMPLEMENTED,W7=Ya.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,li,ah,oh;ht()(Ee,ms);var Ds=dh.errorOrDestroy,lh=["error","close","destroy","pause","resume"];function V7(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function zC(e,t,r){oi=oi||vn(),e=e||{},typeof r!="boolean"&&(r=t instanceof oi),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=H7(this,e,"readableHighWaterMark",r),this.buffer=new j7,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.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(li||(li=ih().StringDecoder),this.decoder=new li(e.encoding),this.encoding=e.encoding)}function Ee(e){if(oi=oi||vn(),!(this instanceof Ee))return new Ee(e);var t=this instanceof oi;this._readableState=new zC(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),ms.call(this)}Object.defineProperty(Ee.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Ee.prototype.destroy=dh.destroy;Ee.prototype._undestroy=dh.undestroy;Ee.prototype._destroy=function(e,t){t(e)};Ee.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=za.from(e,t),t=""),n=!0),YC(this,e,t,!1,n)};Ee.prototype.unshift=function(e){return YC(this,e,null,!0,!1)};function YC(e,t,r,n,i){de("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,K7(e,s);else{var u;if(i||(u=z7(s,t)),u)Ds(e,u);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==za.prototype&&(t=N7(t)),n)s.endEmitted?Ds(e,new W7):ch(e,s,t,!0);else if(s.ended)Ds(e,new U7);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?ch(e,s,t,!1):hh(e,s)):ch(e,s,t,!1)}else n||(s.reading=!1,hh(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function ch(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Ka(e)),hh(e,t)}function z7(e,t){var r;return!M7(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new q7("chunk",["string","Buffer","Uint8Array"],t)),r}Ee.prototype.isPaused=function(){return this._readableState.flowing===!1};Ee.prototype.setEncoding=function(e){li||(li=ih().StringDecoder);var t=new li(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var GC=1073741824;function Y7(e){return e>=GC?e=GC:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function WC(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=Y7(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Ee.prototype.read=function(e){de("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return de("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?fh(this):Ka(this),null;if(e=WC(e,t),e===0&&t.ended)return t.length===0&&fh(this),null;var n=t.needReadable;de("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,de("length less than watermark",n)),t.ended||t.reading?(n=!1,de("reading or ended",n)):n&&(de("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=WC(r,t)));var i;return e>0?i=XC(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&fh(this)),i!==null&&this.emit("data",i),i};function K7(e,t){if(de("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?Ka(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,KC(e)))}}function Ka(e){var t=e._readableState;de("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(de("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(KC,e))}function KC(e){var t=e._readableState;de("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ph(e)}function hh(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(J7,e,t))}function J7(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(de("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}Ee.prototype._read=function(e){Ds(this,new G7("_read()"))};Ee.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,de("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:D;n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",u);function u(w,y){de("onunpipe"),w===r&&y&&y.hasUnpiped===!1&&(y.hasUnpiped=!0,c())}function a(){de("onend"),e.end()}var o=X7(r);e.on("drain",o);var l=!1;function c(){de("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",o),e.removeListener("error",h),e.removeListener("unpipe",u),r.removeListener("end",a),r.removeListener("end",D),r.removeListener("data",f),l=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&o()}r.on("data",f);function f(w){de("ondata");var y=e.write(w);de("dest.write",y),y===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&QC(n.pipes,e)!==-1)&&!l&&(de("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(w){de("onerror",w),D(),e.removeListener("error",h),VC(e,"error")===0&&Ds(e,w)}V7(e,"error",h);function d(){e.removeListener("finish",p),D()}e.once("close",d);function p(){de("onfinish"),e.removeListener("close",d),D()}e.once("finish",p);function D(){de("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(de("pipe resume"),r.resume()),e};function X7(e){return function(){var r=e._readableState;de("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&VC(e,"data")&&(r.flowing=!0,ph(e))}}Ee.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var u=QC(t.pipes,e);return u===-1?this:(t.pipes.splice(u,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};Ee.prototype.on=function(e,t){var r=ms.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,de("on readable",n.length,n.reading),n.length?Ka(this):n.reading||process.nextTick(Q7,this)),r};Ee.prototype.addListener=Ee.prototype.on;Ee.prototype.removeListener=function(e,t){var r=ms.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(JC,this),r};Ee.prototype.removeAllListeners=function(e){var t=ms.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(JC,this),t};function JC(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function Q7(e){de("readable nexttick read 0"),e.read(0)}Ee.prototype.resume=function(){var e=this._readableState;return e.flowing||(de("resume"),e.flowing=!e.readableListening,Z7(this,e)),e.paused=!1,this};function Z7(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(eM,e,t))}function eM(e,t){de("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ph(e),t.flowing&&!t.reading&&e.read(0)}Ee.prototype.pause=function(){return de("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(de("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ph(e){var t=e._readableState;for(de("flow",t.flowing);t.flowing&&e.read()!==null;);}Ee.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(de("wrapped end"),r.decoder&&!r.ended){var u=r.decoder.end();u&&u.length&&t.push(u)}t.push(null)}),e.on("data",function(u){if(de("wrapped data"),r.decoder&&(u=r.decoder.write(u)),!(r.objectMode&&u==null)&&!(!r.objectMode&&(!u||!u.length))){var a=t.push(u);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(a){return function(){return e[a].apply(e,arguments)}})(i));for(var s=0;s<lh.length;s++)e.on(lh[s],this.emit.bind(this,lh[s]));return this._read=function(u){de("wrapped _read",u),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(Ee.prototype[Symbol.asyncIterator]=function(){return ah===void 0&&(ah=jC()),ah(this)});Object.defineProperty(Ee.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(Ee.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Ee.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});Ee._fromList=XC;Object.defineProperty(Ee.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function XC(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function fh(e){var t=e._readableState;de("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(tM,t,e))}function tM(e,t){if(de("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(Ee.from=function(e,t){return oh===void 0&&(oh=UC()),oh(Ee,e,t)});function QC(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var Dh=z((hK,tA)=>{"use strict";_();tA.exports=pr;var Ja=Gr().codes,rM=Ja.ERR_METHOD_NOT_IMPLEMENTED,nM=Ja.ERR_MULTIPLE_CALLBACK,iM=Ja.ERR_TRANSFORM_ALREADY_TRANSFORMING,sM=Ja.ERR_TRANSFORM_WITH_LENGTH_0,Xa=vn();ht()(pr,Xa);function uM(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new nM);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function pr(e){if(!(this instanceof pr))return new pr(e);Xa.call(this,e),this._transformState={afterTransform:uM.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",aM)}function aM(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){eA(e,t,r)}):eA(this,null,null)}pr.prototype.push=function(e,t){return this._transformState.needTransform=!1,Xa.prototype.push.call(this,e,t)};pr.prototype._transform=function(e,t,r){r(new rM("_transform()"))};pr.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};pr.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};pr.prototype._destroy=function(e,t){Xa.prototype._destroy.call(this,e,function(r){t(r)})};function eA(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new sM;if(e._transformState.transforming)throw new iM;return e.push(null)}});var iA=z((pK,nA)=>{"use strict";_();nA.exports=gs;var rA=Dh();ht()(gs,rA);function gs(e){if(!(this instanceof gs))return new gs(e);rA.call(this,e)}gs.prototype._transform=function(e,t,r){r(null,e)}});var lA=z((mK,oA)=>{"use strict";_();var mh;function oM(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var aA=Gr().codes,lM=aA.ERR_MISSING_ARGS,cM=aA.ERR_STREAM_DESTROYED;function sA(e){if(e)throw e}function fM(e){return e.setHeader&&typeof e.abort=="function"}function hM(e,t,r,n){n=oM(n);var i=!1;e.on("close",function(){i=!0}),mh===void 0&&(mh=Ga()),mh(e,{readable:t,writable:r},function(u){if(u)return n(u);i=!0,n()});var s=!1;return function(u){if(!i&&!s){if(s=!0,fM(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(u||new cM("pipe"))}}}function uA(e){e()}function dM(e,t){return e.pipe(t)}function pM(e){return!e.length||typeof e[e.length-1]!="function"?sA:e.pop()}function DM(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=pM(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new lM("streams");var i,s=t.map(function(u,a){var o=a<t.length-1,l=a>0;return hM(u,o,l,function(c){i||(i=c),c&&s.forEach(uA),!o&&(s.forEach(uA),n(i))})});return t.reduce(dM)}oA.exports=DM});var ci=z((Pt,ys)=>{"use strict";_();var _s=ye("stream");process.env.READABLE_STREAM==="disable"&&_s?(ys.exports=_s.Readable,Object.assign(ys.exports,_s),ys.exports.Stream=_s):(Pt=ys.exports=eh(),Pt.Stream=_s||Pt,Pt.Readable=Pt,Pt.Writable=Xf(),Pt.Duplex=vn(),Pt.Transform=Dh(),Pt.PassThrough=iA(),Pt.finished=Ga(),Pt.pipeline=lA())});var hA=z((yK,fA)=>{"use strict";_();var{Buffer:Nt}=ye("buffer"),cA=Symbol.for("BufferList");function Re(e){if(!(this instanceof Re))return new Re(e);Re._init.call(this,e)}Re._init=function(t){Object.defineProperty(this,cA,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};Re.prototype._new=function(t){return new Re(t)};Re.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(t<i||n===this._bufs.length-1)return[n,t-r];r=i}};Re.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let n=0;n<t;n++)r+=this._bufs[n].length;return r};Re.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};Re.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};Re.prototype.copy=function(t,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return t||Nt.alloc(0);let s=!!t,u=this._offset(n),a=i-n,o=a,l=s&&r||0,c=u[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:Nt.concat(this._bufs,this.length);for(let f=0;f<this._bufs.length;f++)this._bufs[f].copy(t,l),l+=this._bufs[f].length;return t}if(o<=this._bufs[u[0]].length-c)return s?this._bufs[u[0]].copy(t,r,c,c+o):this._bufs[u[0]].slice(c,c+o);s||(t=Nt.allocUnsafe(a));for(let f=u[0];f<this._bufs.length;f++){let h=this._bufs[f].length-c;if(o>h)this._bufs[f].copy(t,l,c),l+=h;else{this._bufs[f].copy(t,l,c,c+o),l+=h;break}o-=h,c&&(c=0)}return t.length>l?t.slice(0,l):t};Re.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();let n=this._offset(t),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};Re.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};Re.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};Re.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};Re.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(Nt.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(Nt.from(t));return this};Re.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};Re.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=Nt.from([e]):typeof e=="string"?e=Nt.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=Nt.from(e.buffer,e.byteOffset,e.byteLength):Nt.isBuffer(e)||(e=Nt.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;let n=this._offset(t),i=n[0],s=n[1];for(;i<this._bufs.length;i++){let u=this._bufs[i];for(;s<u.length;)if(u.length-s>=e.length){let o=u.indexOf(e,s);if(o!==-1)return this._reverseOffset([i,o]);s=u.length-e.length+1}else{let o=this._reverseOffset([i,s]);if(this._match(o,e))return o;s++}s=0}return-1};Re.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){let e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let t in e)(function(r){e[r]===null?Re.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:Re.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();Re.prototype._isBufferList=function(t){return t instanceof Re||Re.isBufferList(t)};Re.isBufferList=function(t){return t!=null&&t[cA]};fA.exports=Re});var dA=z((vK,Qa)=>{"use strict";_();var gh=ci().Duplex,mM=ht(),Es=hA();function st(e){if(!(this instanceof st))return new st(e);if(typeof e=="function"){this._callback=e;let t=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",t)}),this.on("unpipe",function(n){n.removeListener("error",t)}),e=null}Es._init.call(this,e),gh.call(this)}mM(st,gh);Object.assign(st.prototype,Es.prototype);st.prototype._new=function(t){return new st(t)};st.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};st.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};st.prototype.end=function(t){gh.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};st.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};st.prototype._isBufferList=function(t){return t instanceof st||t instanceof Es||st.isBufferList(t)};st.isBufferList=Es.isBufferList;Qa.exports=st;Qa.exports.BufferListStream=st;Qa.exports.BufferList=Es});var Eh=z(hi=>{"use strict";_();var gM=Buffer.alloc,_M="0000000000000000000",yM="7777777777777777777",pA=48,DA=Buffer.from("ustar\0","binary"),EM=Buffer.from("00","binary"),vM=Buffer.from("ustar ","binary"),FM=Buffer.from(" \0","binary"),CM=parseInt("7777",8),vs=257,yh=263,AM=function(e,t,r){return typeof e!="number"?r:(e=~~e,e>=t?t:e>=0||(e+=t,e>=0)?e:0)},wM=function(e){switch(e){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},bM=function(e){switch(e){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},mA=function(e,t,r,n){for(;r<n;r++)if(e[r]===t)return r;return n},gA=function(e){for(var t=256,r=0;r<148;r++)t+=e[r];for(var n=156;n<512;n++)t+=e[n];return t},Kr=function(e,t){return e=e.toString(8),e.length>t?yM.slice(0,t)+" ":_M.slice(0,t-e.length)+e+" "};function SM(e){var t;if(e[0]===128)t=!0;else if(e[0]===255)t=!1;else return null;for(var r=[],n=e.length-1;n>0;n--){var i=e[n];t?r.push(i):r.push(255-i)}var s=0,u=r.length;for(n=0;n<u;n++)s+=r[n]*Math.pow(256,n);return t?s:-1*s}var Jr=function(e,t,r){if(e=e.slice(t,t+r),t=0,e[t]&128)return SM(e);for(;t<e.length&&e[t]===32;)t++;for(var n=AM(mA(e,32,t,e.length),e.length,e.length);t<n&&e[t]===0;)t++;return n===t?0:parseInt(e.slice(t,n).toString(),8)},fi=function(e,t,r,n){return e.slice(t,mA(e,0,t,t+r)).toString(n)},_h=function(e){var t=Buffer.byteLength(e),r=Math.floor(Math.log(t)/Math.log(10))+1;return t+r>=Math.pow(10,r)&&r++,t+r+e};hi.decodeLongPath=function(e,t){return fi(e,0,e.length,t)};hi.encodePax=function(e){var t="";e.name&&(t+=_h(" path="+e.name+`
|
|
577
|
+
`}});var oa=Y(We=>{"use strict";_();var ua,Le,aa;Le=aE();ua={refs:Le["refs.lua"],validate_keys:Le["validate_keys.lua"],validate_client:Le["validate_client.lua"],refresh_expiration:Le["refresh_expiration.lua"],process_tick:Le["process_tick.lua"],conditions_check:Le["conditions_check.lua"],get_time:Le["get_time.lua"]};We.allKeys=function(e){return[`b_${e}_settings`,`b_${e}_job_weights`,`b_${e}_job_expirations`,`b_${e}_job_clients`,`b_${e}_client_running`,`b_${e}_client_num_queued`,`b_${e}_client_last_registered`,`b_${e}_client_last_seen`]};aa={init:{keys:We.allKeys,headers:["process_tick"],refresh_expiration:!0,code:Le["init.lua"]},group_check:{keys:We.allKeys,headers:[],refresh_expiration:!1,code:Le["group_check.lua"]},register_client:{keys:We.allKeys,headers:["validate_keys"],refresh_expiration:!1,code:Le["register_client.lua"]},blacklist_client:{keys:We.allKeys,headers:["validate_keys","validate_client"],refresh_expiration:!1,code:Le["blacklist_client.lua"]},heartbeat:{keys:We.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:Le["heartbeat.lua"]},update_settings:{keys:We.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!0,code:Le["update_settings.lua"]},running:{keys:We.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:Le["running.lua"]},queued:{keys:We.allKeys,headers:["validate_keys","validate_client"],refresh_expiration:!1,code:Le["queued.lua"]},done:{keys:We.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:Le["done.lua"]},check:{keys:We.allKeys,headers:["validate_keys","validate_client","process_tick","conditions_check"],refresh_expiration:!1,code:Le["check.lua"]},submit:{keys:We.allKeys,headers:["validate_keys","validate_client","process_tick","conditions_check"],refresh_expiration:!0,code:Le["submit.lua"]},register:{keys:We.allKeys,headers:["validate_keys","validate_client","process_tick","conditions_check"],refresh_expiration:!0,code:Le["register.lua"]},free:{keys:We.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!0,code:Le["free.lua"]},current_reservoir:{keys:We.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:Le["current_reservoir.lua"]},increment_reservoir:{keys:We.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!0,code:Le["increment_reservoir.lua"]}};We.names=Object.keys(aa);We.keys=function(e,t){return aa[e].keys(t)};We.payload=function(e){var t;return t=aa[e],Array.prototype.concat(ua.refs,t.headers.map(function(r){return ua[r]}),t.refresh_expiration?ua.refresh_expiration:"",t.code).join(`
|
|
578
|
+
`)}});var la=Y((exports,module)=>{"use strict";_();function asyncGeneratorStep(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){asyncGeneratorStep(s,n,i,u,a,"next",o)}function a(o){asyncGeneratorStep(s,n,i,u,a,"throw",o)}u(void 0)})}}var Events,RedisConnection,Scripts,parser;parser=cr();Events=gn();Scripts=oa();RedisConnection=function(){class RedisConnection{constructor(options={}){parser.load(options,this.defaults,this),this.Redis==null&&(this.Redis=eval("require")("redis")),this.Events==null&&(this.Events=new Events(this)),this.terminated=!1,this.client==null&&(this.client=this.Redis.createClient(this.clientOptions)),this.subscriber=this.client.duplicate(),this.limiters={},this.shas={},this.ready=this.Promise.all([this._setup(this.client,!1),this._setup(this.subscriber,!0)]).then(()=>this._loadScripts()).then(()=>({client:this.client,subscriber:this.subscriber}))}_setup(e,t){return e.setMaxListeners(0),new this.Promise((r,n)=>(e.on("error",i=>this.Events.trigger("error",i)),t&&e.on("message",(i,s)=>{var u;return(u=this.limiters[i])!=null?u._store.onMessage(i,s):void 0}),e.ready?r():e.once("ready",r)))}_loadScript(e){return new this.Promise((t,r)=>{var n;return n=Scripts.payload(e),this.client.multi([["script","load",n]]).exec((i,s)=>i!=null?r(i):(this.shas[e]=s[0],t(s[0])))})}_loadScripts(){return this.Promise.all(Scripts.names.map(e=>this._loadScript(e)))}__runCommand__(e){var t=this;return _asyncToGenerator(function*(){return yield t.ready,new t.Promise((r,n)=>t.client.multi([e]).exec_atomic(function(i,s){return i!=null?n(i):r(s[0])}))})()}__addLimiter__(e){return this.Promise.all([e.channel(),e.channel_client()].map(t=>new this.Promise((r,n)=>{var i;return i=s=>{if(s===t)return this.subscriber.removeListener("subscribe",i),this.limiters[t]=e,r()},this.subscriber.on("subscribe",i),this.subscriber.subscribe(t)})))}__removeLimiter__(e){var t=this;return this.Promise.all([e.channel(),e.channel_client()].map((function(){var r=_asyncToGenerator(function*(n){return t.terminated||(yield new t.Promise((i,s)=>t.subscriber.unsubscribe(n,function(u,a){if(u!=null)return s(u);if(a===n)return i()}))),delete t.limiters[n]});return function(n){return r.apply(this,arguments)}})()))}__scriptArgs__(e,t,r,n){var i;return i=Scripts.keys(e,t),[this.shas[e],i.length].concat(i,r,n)}__scriptFn__(e){return this.client.evalsha.bind(this.client)}disconnect(e=!0){var t,r,n,i;for(i=Object.keys(this.limiters),t=0,n=i.length;t<n;t++)r=i[t],clearInterval(this.limiters[r]._store.heartbeat);return this.limiters={},this.terminated=!0,this.client.end(e),this.subscriber.end(e),this.Promise.resolve()}}return RedisConnection.prototype.datastore="redis",RedisConnection.prototype.defaults={Redis:null,clientOptions:{},client:null,Promise,Events:null},RedisConnection}.call(void 0);module.exports=RedisConnection});var ca=Y((exports,module)=>{"use strict";_();function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(e,t){var r=[],n=!0,i=!1,s=void 0;try{for(var u=e[Symbol.iterator](),a;!(n=(a=u.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(o){i=!0,s=o}finally{try{!n&&u.return!=null&&u.return()}finally{if(i)throw s}}return r}function _arrayWithHoles(e){if(Array.isArray(e))return e}function asyncGeneratorStep(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){asyncGeneratorStep(s,n,i,u,a,"next",o)}function a(o){asyncGeneratorStep(s,n,i,u,a,"throw",o)}u(void 0)})}}var Events,IORedisConnection,Scripts,parser;parser=cr();Events=gn();Scripts=oa();IORedisConnection=function(){class IORedisConnection{constructor(options={}){parser.load(options,this.defaults,this),this.Redis==null&&(this.Redis=eval("require")("ioredis")),this.Events==null&&(this.Events=new Events(this)),this.terminated=!1,this.clusterNodes!=null?(this.client=new this.Redis.Cluster(this.clusterNodes,this.clientOptions),this.subscriber=new this.Redis.Cluster(this.clusterNodes,this.clientOptions)):this.client!=null&&this.client.duplicate==null?this.subscriber=new this.Redis.Cluster(this.client.startupNodes,this.client.options):(this.client==null&&(this.client=new this.Redis(this.clientOptions)),this.subscriber=this.client.duplicate()),this.limiters={},this.ready=this.Promise.all([this._setup(this.client,!1),this._setup(this.subscriber,!0)]).then(()=>(this._loadScripts(),{client:this.client,subscriber:this.subscriber}))}_setup(e,t){return e.setMaxListeners(0),new this.Promise((r,n)=>(e.on("error",i=>this.Events.trigger("error",i)),t&&e.on("message",(i,s)=>{var u;return(u=this.limiters[i])!=null?u._store.onMessage(i,s):void 0}),e.status==="ready"?r():e.once("ready",r)))}_loadScripts(){return Scripts.names.forEach(e=>this.client.defineCommand(e,{lua:Scripts.payload(e)}))}__runCommand__(e){var t=this;return _asyncToGenerator(function*(){var r,n;yield t.ready;var i=yield t.client.pipeline([e]).exec(),s=_slicedToArray(i,1),u=_slicedToArray(s[0],2);return r=u[0],n=u[1],n})()}__addLimiter__(e){return this.Promise.all([e.channel(),e.channel_client()].map(t=>new this.Promise((r,n)=>this.subscriber.subscribe(t,()=>(this.limiters[t]=e,r())))))}__removeLimiter__(e){var t=this;return[e.channel(),e.channel_client()].forEach((function(){var r=_asyncToGenerator(function*(n){return t.terminated||(yield t.subscriber.unsubscribe(n)),delete t.limiters[n]});return function(n){return r.apply(this,arguments)}})())}__scriptArgs__(e,t,r,n){var i;return i=Scripts.keys(e,t),[i.length].concat(i,r,n)}__scriptFn__(e){return this.client[e].bind(this.client)}disconnect(e=!0){var t,r,n,i;for(i=Object.keys(this.limiters),t=0,n=i.length;t<n;t++)r=i[t],clearInterval(this.limiters[r]._store.heartbeat);return this.limiters={},this.terminated=!0,e?this.Promise.all([this.client.quit(),this.subscriber.quit()]):(this.client.disconnect(),this.subscriber.disconnect(),this.Promise.resolve())}}return IORedisConnection.prototype.datastore="ioredis",IORedisConnection.prototype.defaults={Redis:null,clientOptions:{},clusterNodes:null,client:null,Promise,Events:null},IORedisConnection}.call(void 0);module.exports=IORedisConnection});var pE=Y((vG,dE)=>{"use strict";_();function fa(e,t){return cL(e)||lL(e,t)||oL()}function oL(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function lL(e,t){var r=[],n=!0,i=!1,s=void 0;try{for(var u=e[Symbol.iterator](),a;!(n=(a=u.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(o){i=!0,s=o}finally{try{!n&&u.return!=null&&u.return()}finally{if(i)throw s}}return r}function cL(e){if(Array.isArray(e))return e}function oE(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function zt(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){oE(s,n,i,u,a,"next",o)}function a(o){oE(s,n,i,u,a,"throw",o)}u(void 0)})}}var lE,cE,fE,hE,Kc;Kc=cr();lE=Qn();fE=la();cE=ca();hE=class{constructor(t,r,n){this.instance=t,this.storeOptions=r,this.originalId=this.instance.id,this.clientId=this.instance._randomIndex(),Kc.load(n,n,this),this.clients={},this.capacityPriorityCounters={},this.sharedConnection=this.connection!=null,this.connection==null&&(this.connection=this.instance.datastore==="redis"?new fE({Redis:this.Redis,clientOptions:this.clientOptions,Promise:this.Promise,Events:this.instance.Events}):this.instance.datastore==="ioredis"?new cE({Redis:this.Redis,clientOptions:this.clientOptions,clusterNodes:this.clusterNodes,Promise:this.Promise,Events:this.instance.Events}):void 0),this.instance.connection=this.connection,this.instance.datastore=this.connection.datastore,this.ready=this.connection.ready.then(i=>(this.clients=i,this.runScript("init",this.prepareInitSettings(this.clearDatastore)))).then(()=>this.connection.__addLimiter__(this.instance)).then(()=>this.runScript("register_client",[this.instance.queued()])).then(()=>{var i;return typeof(i=this.heartbeat=setInterval(()=>this.runScript("heartbeat",[]).catch(s=>this.instance.Events.trigger("error",s)),this.heartbeatInterval)).unref=="function"&&i.unref(),this.clients})}__publish__(t){var r=this;return zt(function*(){var n,i=yield r.ready;return n=i.client,n.publish(r.instance.channel(),`message:${t.toString()}`)})()}onMessage(t,r){var n=this;return zt(function*(){var i,s,u,a,o,l,c,f,h,d;try{c=r.indexOf(":");var p=[r.slice(0,c),r.slice(c+1)];if(d=p[0],u=p[1],d==="capacity")return yield n.instance._drainAll(u.length>0?~~u:void 0);if(d==="capacity-priority"){var D=u.split(":"),w=fa(D,3);return h=w[0],f=w[1],s=w[2],i=h.length>0?~~h:void 0,f===n.clientId?(a=yield n.instance._drainAll(i),l=i!=null?i-(a||0):"",yield n.clients.client.publish(n.instance.channel(),`capacity-priority:${l}::${s}`)):f===""?(clearTimeout(n.capacityPriorityCounters[s]),delete n.capacityPriorityCounters[s],n.instance._drainAll(i)):n.capacityPriorityCounters[s]=setTimeout(zt(function*(){var y;try{return delete n.capacityPriorityCounters[s],yield n.runScript("blacklist_client",[f]),yield n.instance._drainAll(i)}catch(m){return y=m,n.instance.Events.trigger("error",y)}}),1e3)}else{if(d==="message")return n.instance.Events.trigger("message",u);if(d==="blocked")return yield n.instance._dropAllQueued()}}catch(y){return o=y,n.instance.Events.trigger("error",o)}})()}__disconnect__(t){return clearInterval(this.heartbeat),this.sharedConnection?this.connection.__removeLimiter__(this.instance):this.connection.disconnect(t)}runScript(t,r){var n=this;return zt(function*(){return t==="init"||t==="register_client"||(yield n.ready),new n.Promise((i,s)=>{var u,a;return u=[Date.now(),n.clientId].concat(r),n.instance.Events.trigger("debug",`Calling Redis script: ${t}.lua`,u),a=n.connection.__scriptArgs__(t,n.originalId,u,function(o,l){return o!=null?s(o):i(l)}),n.connection.__scriptFn__(t)(...a)}).catch(i=>i.message==="SETTINGS_KEY_NOT_FOUND"?t==="heartbeat"?n.Promise.resolve():n.runScript("init",n.prepareInitSettings(!1)).then(()=>n.runScript(t,r)):i.message==="UNKNOWN_CLIENT"?n.runScript("register_client",[n.instance.queued()]).then(()=>n.runScript(t,r)):n.Promise.reject(i))})()}prepareArray(t){var r,n,i,s;for(i=[],r=0,n=t.length;r<n;r++)s=t[r],i.push(s!=null?s.toString():"");return i}prepareObject(t){var r,n,i;r=[];for(n in t)i=t[n],r.push(n,i!=null?i.toString():"");return r}prepareInitSettings(t){var r;return r=this.prepareObject(Object.assign({},this.storeOptions,{id:this.originalId,version:this.instance.version,groupTimeout:this.timeout,clientTimeout:this.clientTimeout})),r.unshift(t?1:0,this.instance.version),r}convertBool(t){return!!t}__updateSettings__(t){var r=this;return zt(function*(){return yield r.runScript("update_settings",r.prepareObject(t)),Kc.overwrite(t,t,r.storeOptions)})()}__running__(){return this.runScript("running",[])}__queued__(){return this.runScript("queued",[])}__done__(){return this.runScript("done",[])}__groupCheck__(){var t=this;return zt(function*(){return t.convertBool(yield t.runScript("group_check",[]))})()}__incrementReservoir__(t){return this.runScript("increment_reservoir",[t])}__currentReservoir__(){return this.runScript("current_reservoir",[])}__check__(t){var r=this;return zt(function*(){return r.convertBool(yield r.runScript("check",r.prepareArray([t])))})()}__register__(t,r,n){var i=this;return zt(function*(){var s,u,a,o=yield i.runScript("register",i.prepareArray([t,r,n])),l=fa(o,3);return u=l[0],a=l[1],s=l[2],{success:i.convertBool(u),wait:a,reservoir:s}})()}__submit__(t,r){var n=this;return zt(function*(){var i,s,u,a,o,l;try{var c=yield n.runScript("submit",n.prepareArray([t,r])),f=fa(c,3);return o=f[0],i=f[1],l=f[2],{reachedHWM:n.convertBool(o),blocked:n.convertBool(i),strategy:l}}catch(p){if(s=p,s.message.indexOf("OVERWEIGHT")===0){var h=s.message.split(":"),d=fa(h,3);throw a=d[0],r=d[1],u=d[2],new lE(`Impossible to add a job having a weight of ${r} to a limiter having a maxConcurrent setting of ${u}`)}else throw s}})()}__free__(t,r){var n=this;return zt(function*(){var i;return i=yield n.runScript("free",n.prepareArray([t])),{running:i}})()}};dE.exports=hE});var _E=Y((AG,gE)=>{"use strict";_();var DE,mE;DE=Qn();mE=class{constructor(t){this.status=t,this._jobs={},this.counts=this.status.map(function(){return 0})}next(t){var r,n;if(r=this._jobs[t],n=r+1,r!=null&&n<this.status.length)return this.counts[r]--,this.counts[n]++,this._jobs[t]++;if(r!=null)return this.counts[r]--,delete this._jobs[t]}start(t){var r;return r=0,this._jobs[t]=r,this.counts[r]++}remove(t){var r;return r=this._jobs[t],r!=null&&(this.counts[r]--,delete this._jobs[t]),r!=null}jobStatus(t){var r;return(r=this.status[this._jobs[t]])!=null?r:null}statusJobs(t){var r,n,i,s,u;if(t!=null){if(n=this.status.indexOf(t),n<0)throw new DE(`status must be one of ${this.status.join(", ")}`);i=this._jobs,s=[];for(r in i)u=i[r],u===n&&s.push(r);return s}else return Object.keys(this._jobs)}statusCounts(){return this.counts.reduce((t,r,n)=>(t[this.status[n]]=r,t),{})}};gE.exports=mE});var AE=Y((SG,CE)=>{"use strict";_();function yE(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function EE(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){yE(s,n,i,u,a,"next",o)}function a(o){yE(s,n,i,u,a,"throw",o)}u(void 0)})}}var vE,FE;vE=Vc();FE=class{constructor(t,r){this.schedule=this.schedule.bind(this),this.name=t,this.Promise=r,this._running=0,this._queue=new vE}isEmpty(){return this._queue.length===0}_tryToRun(){var t=this;return EE(function*(){var r,n,i,s,u,a,o;if(t._running<1&&t._queue.length>0){t._running++;var l=t._queue.shift();return o=l.task,r=l.args,u=l.resolve,s=l.reject,n=yield EE(function*(){try{return a=yield o(...r),function(){return u(a)}}catch(c){return i=c,function(){return s(i)}}})(),t._running--,t._tryToRun(),n()}})()}schedule(t,...r){var n,i,s;return s=i=null,n=new this.Promise(function(u,a){return s=u,i=a}),this._queue.push({task:t,args:r,resolve:s,reject:i}),this._tryToRun(),n}};CE.exports=FE});var wE=Y((TG,fL)=>{fL.exports={version:"2.19.5"}});var PE=Y((BG,kE)=>{"use strict";_();function hL(e,t){return DL(e)||pL(e,t)||dL()}function dL(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function pL(e,t){var r=[],n=!0,i=!1,s=void 0;try{for(var u=e[Symbol.iterator](),a;!(n=(a=u.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(o){i=!0,s=o}finally{try{!n&&u.return!=null&&u.return()}finally{if(i)throw s}}return r}function DL(e){if(Array.isArray(e))return e}function bE(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function Jc(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){bE(s,n,i,u,a,"next",o)}function a(o){bE(s,n,i,u,a,"throw",o)}u(void 0)})}}var SE,RE,TE,BE,xE,ha;ha=cr();SE=gn();BE=la();TE=ca();xE=oa();RE=function(){class e{constructor(r={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=r,ha.load(this.limiterOptions,this.defaults,this),this.Events=new SE(this),this.instances={},this.Bottleneck=Xc(),this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection==null&&(this.limiterOptions.datastore==="redis"?this.connection=new BE(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore==="ioredis"&&(this.connection=new TE(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(r=""){var n;return(n=this.instances[r])!=null?n:(()=>{var i;return i=this.instances[r]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${r}`,timeout:this.timeout,connection:this.connection})),this.Events.trigger("created",i,r),i})()}deleteKey(r=""){var n=this;return Jc(function*(){var i,s;return s=n.instances[r],n.connection&&(i=yield n.connection.__runCommand__(["del",...xE.allKeys(`${n.id}-${r}`)])),s!=null&&(delete n.instances[r],yield s.disconnect()),s!=null||i>0})()}limiters(){var r,n,i,s;n=this.instances,i=[];for(r in n)s=n[r],i.push({key:r,limiter:s});return i}keys(){return Object.keys(this.instances)}clusterKeys(){var r=this;return Jc(function*(){var n,i,s,u,a,o,l,c,f;if(r.connection==null)return r.Promise.resolve(r.keys());for(o=[],n=null,f=`b_${r.id}-`.length,i=9;n!==0;){var h=yield r.connection.__runCommand__(["scan",n??0,"match",`b_${r.id}-*_settings`,"count",1e4]),d=hL(h,2);for(c=d[0],s=d[1],n=~~c,u=0,l=s.length;u<l;u++)a=s[u],o.push(a.slice(f,-i))}return o})()}_startAutoCleanup(){var r=this,n;return clearInterval(this.interval),typeof(n=this.interval=setInterval(Jc(function*(){var i,s,u,a,o,l;o=Date.now(),u=r.instances,a=[];for(s in u){l=u[s];try{(yield l._store.__groupCheck__(o))?a.push(r.deleteKey(s)):a.push(void 0)}catch(c){i=c,a.push(l.Events.trigger("error",i))}}return a}),this.timeout/2)).unref=="function"?n.unref():void 0}updateSettings(r={}){if(ha.overwrite(r,this.defaults,this),ha.overwrite(r,r,this.limiterOptions),r.timeout!=null)return this._startAutoCleanup()}disconnect(r=!0){var n;if(!this.sharedConnection)return(n=this.connection)!=null?n.disconnect(r):void 0}}return e.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:"group-key"},e}.call(void 0);kE.exports=RE});var ME=Y((kG,NE)=>{"use strict";_();var OE,IE,LE;LE=cr();IE=gn();OE=function(){class e{constructor(r={}){this.options=r,LE.load(this.options,this.defaults,this),this.Events=new IE(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((r,n)=>this._resolve=r)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger("batch",this._arr),this._arr=[],this._resetPromise()}add(r){var n;return this._arr.push(r),n=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),n}}return e.prototype.defaults={maxTime:null,maxSize:null,Promise},e}.call(void 0);NE.exports=OE});var Xc=Y((OG,JE)=>{"use strict";_();function jE(e,t){return UE(e)||mL(e,t)||qE()}function mL(e,t){var r=[],n=!0,i=!1,s=void 0;try{for(var u=e[Symbol.iterator](),a;!(n=(a=u.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(o){i=!0,s=o}finally{try{!n&&u.return!=null&&u.return()}finally{if(i)throw s}}return r}function da(e){return UE(e)||gL(e)||qE()}function qE(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function gL(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function UE(e){if(Array.isArray(e))return e}function $E(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function Qc(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){$E(s,n,i,u,a,"next",o)}function a(o){$E(s,n,i,u,a,"throw",o)}u(void 0)})}}var GE,WE,Zc,ef,VE,tf,YE,zE,KE,rf,Kt,HE=[].splice;tf=10;WE=5;Kt=cr();YE=Vy();ef=tE();VE=uE();zE=pE();Zc=gn();KE=_E();rf=AE();GE=function(){class e{constructor(r={},...n){var i,s;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(r,n),Kt.load(r,this.instanceDefaults,this),this._queues=new YE(tf),this._scheduled={},this._states=new KE(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[])),this._limiter=null,this.Events=new Zc(this),this._submitLock=new rf("submit",this.Promise),this._registerLock=new rf("register",this.Promise),s=Kt.load(r,this.storeDefaults,{}),this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null)return i=Kt.load(r,this.redisStoreDefaults,{}),new zE(this,s,i);if(this.datastore==="local")return i=Kt.load(r,this.localStoreDefaults,{}),new VE(this,s,i);throw new e.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}.call(this),this._queues.on("leftzero",()=>{var u;return(u=this._store.heartbeat)!=null&&typeof u.ref=="function"?u.ref():void 0}),this._queues.on("zero",()=>{var u;return(u=this._store.heartbeat)!=null&&typeof u.unref=="function"?u.unref():void 0})}_validateOptions(r,n){if(!(r!=null&&typeof r=="object"&&n.length===0))throw new e.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(r){return this._store.__publish__(r)}disconnect(r=!0){return this._store.__disconnect__(r)}chain(r){return this._limiter=r,this}queued(r){return this._queues.queued(r)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(r){return this._states.jobStatus(r)}jobs(r){return this._states.statusJobs(r)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(r=1){return this._store.__check__(r)}_clearGlobalState(r){return this._scheduled[r]!=null?(clearTimeout(this._scheduled[r].expiration),delete this._scheduled[r],!0):!1}_free(r,n,i,s){var u=this;return Qc(function*(){var a,o;try{var l=yield u._store.__free__(r,i.weight);if(o=l.running,u.Events.trigger("debug",`Freed ${i.id}`,s),o===0&&u.empty())return u.Events.trigger("idle")}catch(c){return a=c,u.Events.trigger("error",a)}})()}_run(r,n,i){var s,u,a;return n.doRun(),s=this._clearGlobalState.bind(this,r),a=this._run.bind(this,r,n),u=this._free.bind(this,r,n),this._scheduled[r]={timeout:setTimeout(()=>n.doExecute(this._limiter,s,a,u),i),expiration:n.options.expiration!=null?setTimeout(function(){return n.doExpire(s,a,u)},i+n.options.expiration):void 0,job:n}}_drainOne(r){return this._registerLock.schedule(()=>{var n,i,s,u,a;if(this.queued()===0)return this.Promise.resolve(null);a=this._queues.getFirst();var o=s=a.first();return u=o.options,n=o.args,r!=null&&u.weight>r?this.Promise.resolve(null):(this.Events.trigger("debug",`Draining ${u.id}`,{args:n,options:u}),i=this._randomIndex(),this._store.__register__(i,u.weight,u.expiration).then(({success:l,wait:c,reservoir:f})=>{var h;return this.Events.trigger("debug",`Drained ${u.id}`,{success:l,args:n,options:u}),l?(a.shift(),h=this.empty(),h&&this.Events.trigger("empty"),f===0&&this.Events.trigger("depleted",h),this._run(i,s,c),this.Promise.resolve(u.weight)):this.Promise.resolve(null)}))})}_drainAll(r,n=0){return this._drainOne(r).then(i=>{var s;return i!=null?(s=r!=null?r-i:r,this._drainAll(s,n+i)):this.Promise.resolve(n)}).catch(i=>this.Events.trigger("error",i))}_dropAllQueued(r){return this._queues.shiftAll(function(n){return n.doDrop({message:r})})}stop(r={}){var n,i;return r=Kt.load(r,this.stopDefaults),i=s=>{var u;return u=()=>{var a;return a=this._states.counts,a[0]+a[1]+a[2]+a[3]===s},new this.Promise((a,o)=>u()?a():this.on("done",()=>{if(u())return this.removeAllListeners("done"),a()}))},n=r.dropWaitingJobs?(this._run=function(s,u){return u.doDrop({message:r.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var s,u,a;u=this._scheduled;for(s in u)a=u[s],this.jobStatus(a.job.options.id)==="RUNNING"&&(clearTimeout(a.timeout),clearTimeout(a.expiration),a.job.doDrop({message:r.dropErrorMessage}));return this._dropAllQueued(r.dropErrorMessage),i(0)}))):this.schedule({priority:tf-1,weight:0},()=>i(1)),this._receive=function(s){return s._reject(new e.prototype.BottleneckError(r.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new e.prototype.BottleneckError("stop() has already been called")),n}_addToQueue(r){var n=this;return Qc(function*(){var i,s,u,a,o,l,c;i=r.args,a=r.options;try{var f=yield n._store.__submit__(n.queued(),a.weight);o=f.reachedHWM,s=f.blocked,c=f.strategy}catch(h){return u=h,n.Events.trigger("debug",`Could not queue ${a.id}`,{args:i,options:a,error:u}),r.doDrop({error:u}),!1}return s?(r.doDrop(),!0):o&&(l=c===e.prototype.strategy.LEAK?n._queues.shiftLastFrom(a.priority):c===e.prototype.strategy.OVERFLOW_PRIORITY?n._queues.shiftLastFrom(a.priority+1):c===e.prototype.strategy.OVERFLOW?r:void 0,l?.doDrop(),l==null||c===e.prototype.strategy.OVERFLOW)?(l==null&&r.doDrop(),o):(r.doQueue(o,s),n._queues.push(r),yield n._drainAll(),o)})()}_receive(r){return this._states.jobStatus(r.options.id)!=null?(r._reject(new e.prototype.BottleneckError(`A job with the same id already exists (id=${r.options.id})`)),!1):(r.doReceive(),this._submitLock.schedule(this._addToQueue,r))}submit(...r){var n,i,s,u,a,o,l;if(typeof r[0]=="function"){var c,f,h,d;a=r,c=a,f=da(c),i=f[0],r=f.slice(1),h=HE.call(r,-1),d=jE(h,1),n=d[0],u=Kt.load({},this.jobDefaults)}else{var p,D,w,y;o=r,p=o,D=da(p),u=D[0],i=D[1],r=D.slice(2),w=HE.call(r,-1),y=jE(w,1),n=y[0],u=Kt.load(u,this.jobDefaults)}return l=(...m)=>new this.Promise(function(g,C){return i(...m,function(...E){return(E[0]!=null?C:g)(E)})}),s=new ef(l,r,u,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),s.promise.then(function(m){return typeof n=="function"?n(...m):void 0}).catch(function(m){return Array.isArray(m)?typeof n=="function"?n(...m):void 0:typeof n=="function"?n(m):void 0}),this._receive(s)}schedule(...r){var n,i,s;if(typeof r[0]=="function"){var u=r,a=da(u);s=a[0],r=a.slice(1),i={}}else{var o=r,l=da(o);i=l[0],s=l[1],r=l.slice(2)}return n=new ef(s,r,i,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(n),n.promise}wrap(r){var n,i;return n=this.schedule.bind(this),i=function(...u){return n(r.bind(this),...u)},i.withOptions=function(s,...u){return n(s,r,...u)},i}updateSettings(r={}){var n=this;return Qc(function*(){return yield n._store.__updateSettings__(Kt.overwrite(r,n.storeDefaults)),Kt.overwrite(r,n.instanceDefaults,n),n})()}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(r=0){return this._store.__incrementReservoir__(r)}}return e.default=e,e.Events=Zc,e.version=e.prototype.version=wE().version,e.strategy=e.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},e.BottleneckError=e.prototype.BottleneckError=Qn(),e.Group=e.prototype.Group=PE(),e.RedisConnection=e.prototype.RedisConnection=la(),e.IORedisConnection=e.prototype.IORedisConnection=ca(),e.Batcher=e.prototype.Batcher=ME(),e.prototype.jobDefaults={priority:WE,weight:1,expiration:null,id:"<no-id>"},e.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:e.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},e.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},e.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},e.prototype.instanceDefaults={datastore:"local",connection:null,id:"<no-id>",rejectOnDrop:!0,trackDoneStatus:!1,Promise},e.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:!0,dropErrorMessage:"This limiter has been stopped."},e}.call(void 0);JE.exports=GE});var QE=Y((LG,XE)=>{"use strict";_();XE.exports=Xc()});var ts=Y((GY,df)=>{"use strict";_();typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?df.exports={nextTick:lN}:df.exports=process;function lN(e,t,r,n){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,s,u;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,r)});case 4:return process.nextTick(function(){e.call(null,t,r,n)});default:for(s=new Array(i-1),u=0;u<s.length;)s[u++]=arguments[u];return process.nextTick(function(){e.apply(null,s)})}}});var Hv=Y((VY,$v)=>{"use strict";_();var cN={}.toString;$v.exports=Array.isArray||function(e){return cN.call(e)=="[object Array]"}});var pf=Y((zY,qv)=>{"use strict";_();qv.exports=ye("stream")});var rs=Y((Df,Gv)=>{"use strict";_();var va=ye("buffer"),fr=va.Buffer;function Uv(e,t){for(var r in e)t[r]=e[r]}fr.from&&fr.alloc&&fr.allocUnsafe&&fr.allocUnsafeSlow?Gv.exports=va:(Uv(va,Df),Df.Buffer=ei);function ei(e,t,r){return fr(e,t,r)}Uv(fr,ei);ei.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return fr(e,t,r)};ei.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=fr(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};ei.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return fr(e)};ei.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return va.SlowBuffer(e)}});var ti=Y(it=>{"use strict";_();function fN(e){return Array.isArray?Array.isArray(e):Fa(e)==="[object Array]"}it.isArray=fN;function hN(e){return typeof e=="boolean"}it.isBoolean=hN;function dN(e){return e===null}it.isNull=dN;function pN(e){return e==null}it.isNullOrUndefined=pN;function DN(e){return typeof e=="number"}it.isNumber=DN;function mN(e){return typeof e=="string"}it.isString=mN;function gN(e){return typeof e=="symbol"}it.isSymbol=gN;function _N(e){return e===void 0}it.isUndefined=_N;function yN(e){return Fa(e)==="[object RegExp]"}it.isRegExp=yN;function EN(e){return typeof e=="object"&&e!==null}it.isObject=EN;function vN(e){return Fa(e)==="[object Date]"}it.isDate=vN;function FN(e){return Fa(e)==="[object Error]"||e instanceof Error}it.isError=FN;function CN(e){return typeof e=="function"}it.isFunction=CN;function AN(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}it.isPrimitive=AN;it.isBuffer=ye("buffer").Buffer.isBuffer;function Fa(e){return Object.prototype.toString.call(e)}});var Vv=Y((ZY,mf)=>{"use strict";_();function wN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Wv=rs().Buffer,ns=ye("util");function bN(e,t,r){e.copy(t,r)}mf.exports=(function(){function e(){wN(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},e.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i},e.prototype.concat=function(r){if(this.length===0)return Wv.alloc(0);for(var n=Wv.allocUnsafe(r>>>0),i=this.head,s=0;i;)bN(i.data,n,s),s+=i.data.length,i=i.next;return n},e})();ns&&ns.inspect&&ns.inspect.custom&&(mf.exports.prototype[ns.inspect.custom]=function(){var e=ns.inspect({length:this.length});return this.constructor.name+" "+e})});var gf=Y((tz,Yv)=>{"use strict";_();var Ca=ts();function SN(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Ca.nextTick(Aa,this,e)):Ca.nextTick(Aa,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,Ca.nextTick(Aa,r,s)):Ca.nextTick(Aa,r,s):t&&t(s)}),this)}function RN(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),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 Aa(e,t){e.emit("error",t)}Yv.exports={destroy:SN,undestroy:RN}});var _f=Y((nz,zv)=>{"use strict";_();zv.exports=ye("util").deprecate});var Ef=Y((sz,rF)=>{"use strict";_();var _n=ts();rF.exports=Ve;function Jv(e){var t=this;this.next=null,this.entry=null,this.finish=function(){VN(t,e)}}var TN=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:_n.nextTick,ri;Ve.WritableState=ss;var Xv=Object.create(ti());Xv.inherits=ht();var BN={deprecate:_f()},Qv=pf(),ba=rs().Buffer,xN=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function kN(e){return ba.from(e)}function PN(e){return ba.isBuffer(e)||e instanceof xN}var Zv=gf();Xv.inherits(Ve,Qv);function ON(){}function ss(e,t){ri=ri||yn(),e=e||{};var r=t instanceof ri;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=e.writableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,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 u=e.decodeStrings===!1;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){HN(t,a)},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 Jv(this)}ss.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(ss.prototype,"buffer",{get:BN.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var wa;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(wa=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ve,Symbol.hasInstance,{value:function(e){return wa.call(this,e)?!0:this!==Ve?!1:e&&e._writableState instanceof ss}})):wa=function(e){return e instanceof this};function Ve(e){if(ri=ri||yn(),!wa.call(Ve,this)&&!(this instanceof ri))return new Ve(e);this._writableState=new ss(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Qv.call(this)}Ve.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function IN(e,t){var r=new Error("write after end");e.emit("error",r),_n.nextTick(t,r)}function LN(e,t,r,n){var i=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),_n.nextTick(n,s),i=!1),i}Ve.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&PN(e);return s&&!ba.isBuffer(e)&&(e=kN(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=ON),n.ended?IN(this,r):(s||LN(this,n,e,r))&&(n.pendingcb++,i=MN(this,n,s,e,t,r)),i};Ve.prototype.cork=function(){var e=this._writableState;e.corked++};Ve.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&eF(this,e))};Ve.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function NN(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=ba.from(t,r)),t}Object.defineProperty(Ve.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function MN(e,t,r,n,i,s){if(!r){var u=NN(t,n,i);n!==u&&(r=!0,i="buffer",n=u)}var a=t.objectMode?1:n.length;t.length+=a;var o=t.length<t.highWaterMark;if(o||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else yf(e,t,!1,a,n,i,s);return o}function yf(e,t,r,n,i,s,u){t.writelen=n,t.writecb=u,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function jN(e,t,r,n,i){--t.pendingcb,r?(_n.nextTick(i,n),_n.nextTick(is,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),is(e,t))}function $N(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function HN(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if($N(r),t)jN(e,r,n,t,i);else{var s=tF(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&eF(e,r),n?TN(Kv,e,r,s,i):Kv(e,r,s,i)}}function Kv(e,t,r,n){r||qN(e,t),t.pendingcb--,n(),is(e,t)}function qN(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function eF(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var u=0,a=!0;r;)i[u]=r,r.isBuf||(a=!1),r=r.next,u+=1;i.allBuffers=a,yf(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new Jv(t),t.bufferedRequestCount=0}else{for(;r;){var o=r.chunk,l=r.encoding,c=r.callback,f=t.objectMode?1:o.length;if(yf(e,t,!1,f,o,l,c),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}Ve.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};Ve.prototype._writev=null;Ve.prototype.end=function(e,t,r){var n=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||WN(this,n,r)};function tF(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function UN(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),is(e,t)})}function GN(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,_n.nextTick(UN,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function is(e,t){var r=tF(t);return r&&(GN(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function WN(e,t,r){t.ending=!0,is(e,t),r&&(t.finished?_n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function VN(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(Ve.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});Ve.prototype.destroy=Zv.destroy;Ve.prototype._undestroy=Zv.undestroy;Ve.prototype._destroy=function(e,t){this.end(),t(e)}});var yn=Y((az,uF)=>{"use strict";_();var nF=ts(),YN=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};uF.exports=hr;var iF=Object.create(ti());iF.inherits=ht();var sF=Cf(),Ff=Ef();iF.inherits(hr,sF);for(vf=YN(Ff.prototype),Sa=0;Sa<vf.length;Sa++)Ra=vf[Sa],hr.prototype[Ra]||(hr.prototype[Ra]=Ff.prototype[Ra]);var vf,Ra,Sa;function hr(e){if(!(this instanceof hr))return new hr(e);sF.call(this,e),Ff.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",zN)}Object.defineProperty(hr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function zN(){this.allowHalfOpen||this._writableState.ended||nF.nextTick(KN,this)}function KN(e){e.end()}Object.defineProperty(hr.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});hr.prototype._destroy=function(e,t){this.push(null),this.end(),nF.nextTick(t,e)}});var bf=Y(oF=>{"use strict";_();var wf=rs().Buffer,aF=wf.isEncoding||function(e){switch(e=""+e,e&&e.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 JN(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function XN(e){var t=JN(e);if(typeof t!="string"&&(wf.isEncoding===aF||!aF(e)))throw new Error("Unknown encoding: "+e);return t||e}oF.StringDecoder=us;function us(e){this.encoding=XN(e);var t;switch(this.encoding){case"utf16le":this.text=n6,this.end=i6,t=4;break;case"utf8":this.fillLast=e6,t=4;break;case"base64":this.text=s6,this.end=u6,t=3;break;default:this.write=a6,this.end=o6;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=wf.allocUnsafe(t)}us.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};us.prototype.end=r6;us.prototype.text=t6;us.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Af(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function QN(e,t,r){var n=t.length-1;if(n<r)return 0;var i=Af(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=Af(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=Af(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function ZN(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function e6(e){var t=this.lastTotal-this.lastNeed,r=ZN(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function t6(e,t){var r=QN(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function r6(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function n6(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function i6(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function s6(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function u6(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function a6(e){return e.toString(this.encoding)}function o6(e){return e&&e.length?this.write(e):""}});var Cf=Y((hz,EF)=>{"use strict";_();var ii=ts();EF.exports=ke;var l6=Hv(),as;ke.ReadableState=DF;var fz=ye("events").EventEmitter,hF=function(e,t){return e.listeners(t).length},xf=pf(),os=rs().Buffer,c6=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function f6(e){return os.from(e)}function h6(e){return os.isBuffer(e)||e instanceof c6}var dF=Object.create(ti());dF.inherits=ht();var Sf=ye("util"),Fe=void 0;Sf&&Sf.debuglog?Fe=Sf.debuglog("stream"):Fe=function(){};var d6=Vv(),pF=gf(),ni;dF.inherits(ke,xf);var Rf=["error","close","destroy","pause","resume"];function p6(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):l6(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function DF(e,t){as=as||yn(),e=e||{};var r=t instanceof as;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d6,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=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(ni||(ni=bf().StringDecoder),this.decoder=new ni(e.encoding),this.encoding=e.encoding)}function ke(e){if(as=as||yn(),!(this instanceof ke))return new ke(e);this._readableState=new DF(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),xf.call(this)}Object.defineProperty(ke.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});ke.prototype.destroy=pF.destroy;ke.prototype._undestroy=pF.undestroy;ke.prototype._destroy=function(e,t){this.push(null),t(e)};ke.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=os.from(e,t),t=""),n=!0),mF(this,e,t,!1,n)};ke.prototype.unshift=function(e){return mF(this,e,null,!0,!1)};function mF(e,t,r,n,i){var s=e._readableState;if(t===null)s.reading=!1,_6(e,s);else{var u;i||(u=D6(s,t)),u?e.emit("error",u):s.objectMode||t&&t.length>0?(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==os.prototype&&(t=f6(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Tf(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?Tf(e,s,t,!1):gF(e,s)):Tf(e,s,t,!1))):n||(s.reading=!1)}return m6(s)}function Tf(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Ta(e)),gF(e,t)}function D6(e,t){var r;return!h6(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function m6(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}ke.prototype.isPaused=function(){return this._readableState.flowing===!1};ke.prototype.setEncoding=function(e){return ni||(ni=bf().StringDecoder),this._readableState.decoder=new ni(e),this._readableState.encoding=e,this};var lF=8388608;function g6(e){return e>=lF?e=lF:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function cF(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=g6(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}ke.prototype.read=function(e){Fe("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Fe("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Bf(this):Ta(this),null;if(e=cF(e,t),e===0&&t.ended)return t.length===0&&Bf(this),null;var n=t.needReadable;Fe("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,Fe("length less than watermark",n)),t.ended||t.reading?(n=!1,Fe("reading or ended",n)):n&&(Fe("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=cF(r,t)));var i;return e>0?i=_F(e,t):i=null,i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Bf(this)),i!==null&&this.emit("data",i),i};function _6(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,Ta(e)}}function Ta(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Fe("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?ii.nextTick(fF,e):fF(e))}function fF(e){Fe("emit readable"),e.emit("readable"),kf(e)}function gF(e,t){t.readingMore||(t.readingMore=!0,ii.nextTick(y6,e,t))}function y6(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Fe("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}ke.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};ke.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,Fe("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:w;n.endEmitted?ii.nextTick(s):r.once("end",s),e.on("unpipe",u);function u(y,m){Fe("onunpipe"),y===r&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,c())}function a(){Fe("onend"),e.end()}var o=E6(r);e.on("drain",o);var l=!1;function c(){Fe("cleanup"),e.removeListener("close",p),e.removeListener("finish",D),e.removeListener("drain",o),e.removeListener("error",d),e.removeListener("unpipe",u),r.removeListener("end",a),r.removeListener("end",w),r.removeListener("data",h),l=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&o()}var f=!1;r.on("data",h);function h(y){Fe("ondata"),f=!1;var m=e.write(y);m===!1&&!f&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&yF(n.pipes,e)!==-1)&&!l&&(Fe("false write response, pause",n.awaitDrain),n.awaitDrain++,f=!0),r.pause())}function d(y){Fe("onerror",y),w(),e.removeListener("error",d),hF(e,"error")===0&&e.emit("error",y)}p6(e,"error",d);function p(){e.removeListener("finish",D),w()}e.once("close",p);function D(){Fe("onfinish"),e.removeListener("close",p),w()}e.once("finish",D);function w(){Fe("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(Fe("pipe resume"),r.resume()),e};function E6(e){return function(){var t=e._readableState;Fe("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&hF(e,"data")&&(t.flowing=!0,kf(e))}}ke.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var u=yF(t.pipes,e);return u===-1?this:(t.pipes.splice(u,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};ke.prototype.on=function(e,t){var r=xf.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&Ta(this):ii.nextTick(v6,this))}return r};ke.prototype.addListener=ke.prototype.on;function v6(e){Fe("readable nexttick read 0"),e.read(0)}ke.prototype.resume=function(){var e=this._readableState;return e.flowing||(Fe("resume"),e.flowing=!0,F6(this,e)),this};function F6(e,t){t.resumeScheduled||(t.resumeScheduled=!0,ii.nextTick(C6,e,t))}function C6(e,t){t.reading||(Fe("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),kf(e),t.flowing&&!t.reading&&e.read(0)}ke.prototype.pause=function(){return Fe("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Fe("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function kf(e){var t=e._readableState;for(Fe("flow",t.flowing);t.flowing&&e.read()!==null;);}ke.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(Fe("wrapped end"),r.decoder&&!r.ended){var u=r.decoder.end();u&&u.length&&t.push(u)}t.push(null)}),e.on("data",function(u){if(Fe("wrapped data"),r.decoder&&(u=r.decoder.write(u)),!(r.objectMode&&u==null)&&!(!r.objectMode&&(!u||!u.length))){var a=t.push(u);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(u){return function(){return e[u].apply(e,arguments)}})(i));for(var s=0;s<Rf.length;s++)e.on(Rf[s],this.emit.bind(this,Rf[s]));return this._read=function(u){Fe("wrapped _read",u),n&&(n=!1,e.resume())},this};Object.defineProperty(ke.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});ke._fromList=_F;function _F(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=A6(e,t.buffer,t.decoder),r}function A6(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?n=t.shift():n=r?w6(e,t):b6(e,t),n}function w6(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var s=r.data,u=e>s.length?s.length:e;if(u===s.length?i+=s:i+=s.slice(0,e),e-=u,e===0){u===s.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(u));break}++n}return t.length-=n,i}function b6(e,t){var r=os.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var s=n.data,u=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,u),e-=u,e===0){u===s.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(u));break}++i}return t.length-=i,r}function Bf(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,ii.nextTick(S6,t,e))}function S6(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function yF(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var Pf=Y((pz,CF)=>{"use strict";_();CF.exports=dr;var Ba=yn(),FF=Object.create(ti());FF.inherits=ht();FF.inherits(dr,Ba);function R6(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function dr(e){if(!(this instanceof dr))return new dr(e);Ba.call(this,e),this._transformState={afterTransform:R6.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",T6)}function T6(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){vF(e,t,r)}):vF(this,null,null)}dr.prototype.push=function(e,t){return this._transformState.needTransform=!1,Ba.prototype.push.call(this,e,t)};dr.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};dr.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};dr.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};dr.prototype._destroy=function(e,t){var r=this;Ba.prototype._destroy.call(this,e,function(n){t(n),r.emit("close")})};function vF(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var SF=Y((mz,bF)=>{"use strict";_();bF.exports=ls;var AF=Pf(),wF=Object.create(ti());wF.inherits=ht();wF.inherits(ls,AF);function ls(e){if(!(this instanceof ls))return new ls(e);AF.call(this,e)}ls.prototype._transform=function(e,t,r){r(null,e)}});var Of=Y((Ze,xa)=>{"use strict";_();var Jt=ye("stream");process.env.READABLE_STREAM==="disable"&&Jt?(xa.exports=Jt,Ze=xa.exports=Jt.Readable,Ze.Readable=Jt.Readable,Ze.Writable=Jt.Writable,Ze.Duplex=Jt.Duplex,Ze.Transform=Jt.Transform,Ze.PassThrough=Jt.PassThrough,Ze.Stream=Jt):(Ze=xa.exports=Cf(),Ze.Stream=Jt||Ze,Ze.Readable=Ze,Ze.Writable=Ef(),Ze.Duplex=yn(),Ze.Transform=Pf(),Ze.PassThrough=SF())});var TF=Y((yz,RF)=>{"use strict";_();RF.exports=B6;function B6(e){var t=e._readableState;return t?t.objectMode||typeof e._duplexState=="number"?e.read():e.read(x6(t)):null}function x6(e){if(e.buffer.length){var t=e.bufferIndex||0;if(e.buffer.head)return e.buffer.head.data.length;if(e.buffer.length-t>0&&e.buffer[t])return e.buffer[t].length}return e.length}});var Lf=Y((vz,PF)=>{"use strict";_();var ka=Of(),BF=mo(),k6=ht(),P6=TF(),xF=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),If=function(e,t){e._corked?e.once("uncork",t):t()},O6=function(e,t){e._autoDestroy&&e.destroy(t)},kF=function(e,t){return function(r){r?O6(e,r.message==="premature close"?null:r):t&&!e._ended&&e.end()}},I6=function(e,t){if(!e||e._writableState&&e._writableState.finished)return t();if(e._writableState)return e.end(t);e.end(),t()},L6=function(e){return new ka.Readable({objectMode:!0,highWaterMark:16}).wrap(e)},et=function(e,t,r){if(!(this instanceof et))return new et(e,t,r);ka.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||r.autoDestroy!==!1,this._forwardDestroy=!r||r.destroy!==!1,this._forwardEnd=!r||r.end!==!1,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};k6(et,ka.Duplex);et.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new et(e,t,r)};et.prototype.cork=function(){++this._corked===1&&this.emit("cork")};et.prototype.uncork=function(){this._corked&&--this._corked===0&&this.emit("uncork")};et.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(e===null||e===!1){this.end();return}var t=this,r=BF(e,{writable:!0,readable:!1},kF(this,this._forwardEnd)),n=function(){var s=t._ondrain;t._ondrain=null,s&&s()},i=function(){t._writable.removeListener("drain",n),r()};this._unwrite&&process.nextTick(n),this._writable=e,this._writable.on("drain",n),this._unwrite=i,this.uncork()};et.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(e===null||e===!1){this.push(null),this.resume();return}var t=this,r=BF(e,{writable:!1,readable:!0},kF(this)),n=function(){t._forward()},i=function(){t.push(null)},s=function(){t._readable2.removeListener("readable",n),t._readable2.removeListener("end",i),r()};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:L6(e),this._readable2.on("readable",n),this._readable2.on("end",i),this._unread=s,this._forward()};et.prototype._read=function(){this._drained=!0,this._forward()};et.prototype._forward=function(){if(!(this._forwarding||!this._readable2||!this._drained)){this._forwarding=!0;for(var e;this._drained&&(e=P6(this._readable2))!==null;)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}};et.prototype.destroy=function(e){if(!this.destroyed){this.destroyed=!0;var t=this;process.nextTick(function(){t._destroy(e)})}};et.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")};et.prototype._write=function(e,t,r){if(this.destroyed)return r();if(this._corked)return If(this,this._write.bind(this,e,t,r));if(e===xF)return this._finish(r);if(!this._writable)return r();this._writable.write(e)===!1?this._ondrain=r:r()};et.prototype._finish=function(e){var t=this;this.emit("preend"),If(this,function(){I6(t._forwardEnd&&t._writable,function(){t._writableState.prefinished===!1&&(t._writableState.prefinished=!0),t.emit("prefinish"),If(t,e)})})};et.prototype.end=function(e,t,r){return typeof e=="function"?this.end(null,null,e):typeof t=="function"?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this.write(xF),ka.Writable.prototype.end.call(this,r))};PF.exports=et});var IF=Y((Cz,OF)=>{"use strict";_();OF.exports=M6;var N6=Object.prototype.hasOwnProperty;function M6(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)N6.call(r,n)&&(e[n]=r[n])}return e}});var Mf=Y((wz,Pa)=>{"use strict";_();var LF=Of().Transform,NF=ye("util").inherits,MF=IF();function si(e){LF.call(this,e),this._destroyed=!1}NF(si,LF);si.prototype.destroy=function(e){if(!this._destroyed){this._destroyed=!0;var t=this;process.nextTick(function(){e&&t.emit("error",e),t.emit("close")})}};function j6(e,t,r){r(null,e)}function Nf(e){return function(t,r,n){return typeof t=="function"&&(n=r,r=t,t={}),typeof r!="function"&&(r=j6),typeof n!="function"&&(n=null),e(t,r,n)}}Pa.exports=Nf(function(e,t,r){var n=new si(e);return n._transform=t,r&&(n._flush=r),n});Pa.exports.ctor=Nf(function(e,t,r){function n(i){if(!(this instanceof n))return new n(i);this.options=MF(e,i),si.call(this,this.options)}return NF(n,si),n.prototype._transform=t,r&&(n.prototype._flush=r),n});Pa.exports.obj=Nf(function(e,t,r){var n=new si(MF({objectMode:!0,highWaterMark:16},e));return n._transform=t,r&&(n._flush=r),n})});var HF=Y((Sz,$F)=>{"use strict";_();var $6=Lf(),H6=Mf(),q6=iw(),U6=function(e){return!Buffer.isBuffer(e)&&typeof e!="string"},jF=function(e,t){if(typeof e=="number"&&(e={maxBuffer:e}),typeof e=="function")return jF(null,e);e||(e={});var r=typeof e.maxBuffer=="number"?e.maxBuffer:65535,n=e.strict,i=e.newline!==!1,s=[],u=0,a=$6.obj(),o=H6.obj({highWaterMark:1},function(f,h,d){if(U6(f))return c(f,null,d);if(Buffer.isBuffer(f)||(f=q6(f)),i){var p=Array.prototype.indexOf.call(f,10);if(p>0&&f[p-1]===13&&p--,p>-1)return s.push(f.slice(0,p)),c(Buffer.concat(s),f.slice(p),d)}if(s.push(f),u+=f.length,u<r)return d();if(n)return d(new Error("No newline found"));c(Buffer.concat(s),null,d)}),l=function(){if(n)return a.destroy(new Error("No newline found"));a.cork(),c(Buffer.concat(s),null,function(f){if(f)return a.destroy(f);a.uncork()})},c=function(f,h,d){a.removeListener("preend",l),t(f,function(p,D){if(p)return d(p);a.setWritable(D),a.setReadable(D),f&&D.write(f),h&&D.write(h),h=s=o=null,d()})};return a.on("preend",l),a.setWritable(o),a};$F.exports=jF});var GF=Y((Tz,UF)=>{"use strict";_();var G6=sw(),W6=mo(),jf=ye("fs"),cs=function(){},V6=/^v?\.0/.test(process.version),Oa=function(e){return typeof e=="function"},Y6=function(e){return!V6||!jf?!1:(e instanceof(jf.ReadStream||cs)||e instanceof(jf.WriteStream||cs))&&Oa(e.close)},z6=function(e){return e.setHeader&&Oa(e.abort)},K6=function(e,t,r,n){n=G6(n);var i=!1;e.on("close",function(){i=!0}),W6(e,{readable:t,writable:r},function(u){if(u)return n(u);i=!0,n()});var s=!1;return function(u){if(!i&&!s){if(s=!0,Y6(e))return e.close(cs);if(z6(e))return e.abort();if(Oa(e.destroy))return e.destroy();n(u||new Error("stream was destroyed"))}}},qF=function(e){e()},J6=function(e,t){return e.pipe(t)},X6=function(){var e=Array.prototype.slice.call(arguments),t=Oa(e[e.length-1]||cs)&&e.pop()||cs;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r,n=e.map(function(i,s){var u=s<e.length-1,a=s>0;return K6(i,u,a,function(o){r||(r=o),o&&n.forEach(qF),!u&&(n.forEach(qF),t(r))})});e.reduce(J6)};UF.exports=X6});var YF=Y((xz,Ia)=>{"use strict";_();var Q6=GF(),Z6=ht(),WF=Lf(),VF=function(e){return e.length?Array.isArray(e[0])?e[0]:Array.prototype.slice.call(e):[]},$f=function(e){var t=function(){var r=VF(arguments);if(!(this instanceof t))return new t(r);WF.call(this,null,null,e),r.length&&this.setPipeline(r)};return Z6(t,WF),t.prototype.setPipeline=function(){var r=VF(arguments),n=this,i=!1,s=r[0],u=r[r.length-1];u=u.readable?u:null,s=s.writable?s:null;var a=function(){r[0].emit("error",new Error("stream was destroyed"))};if(this.on("close",a),this.on("prefinish",function(){i||n.cork()}),Q6(r,function(o){if(n.removeListener("close",a),o)return n.destroy(o.message==="premature close"?null:o);i=!0,n._autoDestroy===!1&&(n._autoDestroy=!0),n.uncork()}),this.destroyed)return a();this.setWritable(s),this.setReadable(u)},t};Ia.exports=$f({autoDestroy:!1,destroy:!1});Ia.exports.obj=$f({autoDestroy:!1,destroy:!1,objectMode:!0,highWaterMark:16});Ia.exports.ctor=$f});var KF=Y((Pz,zF)=>{"use strict";_();zF.exports=function(e){return!e||e.length<3?!1:e[0]===31&&e[1]===139&&e[2]===8}});var XF=Y((Iz,JF)=>{"use strict";_();JF.exports=function(e){return!e||e.length<2?!1:e[0]===120&&(e[1]===1||e[1]===156||e[1]===218)}});var tC=Y((Nz,eC)=>{"use strict";_();var QF=ye("zlib"),e9=HF(),t9=Mf(),ZF=YF(),r9=KF(),n9=XF(),i9=function(e){return r9(e)?1:n9(e)?2:0},Hf=function(e){return e===void 0&&(e=3),e9({newline:!1,maxBuffer:10},function(t,r){if(e<0)return r(new Error("Maximum recursion reached"));switch(i9(t)){case 1:r(null,ZF(QF.createGunzip(),Hf(e-1)));break;case 2:r(null,ZF(QF.createInflate(),Hf(e-1)));break;default:r(null,t9())}})};eC.exports=Hf});var oC=Y((jz,aC)=>{"use strict";_();var xt=ye("fs"),En=ye("path"),s9=xt.lchown?"lchown":"chown",u9=xt.lchownSync?"lchownSync":"chownSync",nC=xt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),rC=(e,t,r)=>{try{return xt[u9](e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},a9=(e,t,r)=>{try{return xt.chownSync(e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},o9=nC?(e,t,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):xt.chown(e,t,r,n)}:(e,t,r,n)=>n,qf=nC?(e,t,r)=>{try{return rC(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;a9(e,t,r)}}:(e,t,r)=>rC(e,t,r),l9=process.version,iC=(e,t,r)=>xt.readdir(e,t,r),c9=(e,t)=>xt.readdirSync(e,t);/^v4\./.test(l9)&&(iC=(e,t,r)=>xt.readdir(e,r));var La=(e,t,r,n)=>{xt[s9](e,t,r,o9(e,t,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},sC=(e,t,r,n,i)=>{if(typeof t=="string")return xt.lstat(En.resolve(e,t),(s,u)=>{if(s)return i(s.code!=="ENOENT"?s:null);u.name=t,sC(e,u,r,n,i)});if(t.isDirectory())Uf(En.resolve(e,t.name),r,n,s=>{if(s)return i(s);let u=En.resolve(e,t.name);La(u,r,n,i)});else{let s=En.resolve(e,t.name);La(s,r,n,i)}},Uf=(e,t,r,n)=>{iC(e,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return La(e,t,r,n);let u=s.length,a=null,o=l=>{if(!a){if(l)return n(a=l);if(--u===0)return La(e,t,r,n)}};s.forEach(l=>sC(e,l,t,r,o))})},f9=(e,t,r,n)=>{if(typeof t=="string")try{let i=xt.lstatSync(En.resolve(e,t));i.name=t,t=i}catch(i){if(i.code==="ENOENT")return;throw i}t.isDirectory()&&uC(En.resolve(e,t.name),r,n),qf(En.resolve(e,t.name),r,n)},uC=(e,t,r)=>{let n;try{n=c9(e,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return qf(e,t,r);throw i}return n&&n.length&&n.forEach(i=>f9(e,i,t,r)),qf(e,t,r)};aC.exports=Uf;Uf.sync=uC});var Gf=Y((Hz,lC)=>{"use strict";_();lC.exports=ye("stream")});var DC=Y((Uz,pC)=>{"use strict";_();function cC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cC(Object(r),!0).forEach(function(n){h9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h9(e,t,r){return t=dC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dC(n.key),n)}}function p9(e,t,r){return t&&hC(e.prototype,t),r&&hC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dC(e){var t=D9(e,"string");return typeof t=="symbol"?t:String(t)}function D9(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var m9=ye("buffer"),Na=m9.Buffer,g9=ye("util"),Wf=g9.inspect,_9=Wf&&Wf.custom||"inspect";function y9(e,t,r){Na.prototype.copy.call(e,t,r)}pC.exports=(function(){function e(){d9(this,e),this.head=null,this.tail=null,this.length=0}return p9(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Na.alloc(0);for(var n=Na.allocUnsafe(r>>>0),i=this.head,s=0;i;)y9(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var u=n.data,a=r>u.length?u.length:r;if(a===u.length?s+=u:s+=u.slice(0,r),r-=a,r===0){a===u.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=u.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=Na.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var u=i.data,a=r>u.length?u.length:r;if(u.copy(n,n.length-r,0,a),r-=a,r===0){a===u.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=u.slice(a));break}++s}return this.length-=s,n}},{key:_9,value:function(r,n){return Wf(this,fC(fC({},n),{},{depth:0,customInspect:!1}))}}]),e})()});var Yf=Y((Wz,gC)=>{"use strict";_();function E9(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Vf,this,e)):process.nextTick(Vf,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(Ma,r):(r._writableState.errorEmitted=!0,process.nextTick(mC,r,s)):process.nextTick(mC,r,s):t?(process.nextTick(Ma,r),t(s)):process.nextTick(Ma,r)}),this)}function mC(e,t){Vf(e,t),Ma(e)}function Ma(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function v9(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),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 Vf(e,t){e.emit("error",t)}function F9(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}gC.exports={destroy:E9,undestroy:v9,errorOrDestroy:F9}});var Gr=Y((Yz,EC)=>{"use strict";_();var yC={};function kt(e,t,r){r||(r=Error);function n(s,u,a){return typeof t=="string"?t:t(s,u,a)}class i extends r{constructor(u,a,o){super(n(u,a,o))}}i.prototype.name=r.name,i.prototype.code=e,yC[e]=i}function _C(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(n=>String(n)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function C9(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function A9(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function w9(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}kt("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);kt("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&C9(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(A9(e," argument"))i=`The ${e} ${n} ${_C(t,"type")}`;else{let s=w9(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${_C(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);kt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");kt("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});kt("ERR_STREAM_PREMATURE_CLOSE","Premature close");kt("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});kt("ERR_MULTIPLE_CALLBACK","Callback called multiple times");kt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");kt("ERR_STREAM_WRITE_AFTER_END","write after end");kt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);kt("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);kt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");EC.exports.codes=yC});var zf=Y((Kz,vC)=>{"use strict";_();var b9=Gr().codes.ERR_INVALID_OPT_VALUE;function S9(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function R9(e,t,r,n){var i=S9(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new b9(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}vC.exports={getHighWaterMark:R9}});var Xf=Y((Xz,SC)=>{"use strict";_();SC.exports=$e;function CC(e){var t=this;this.next=null,this.entry=null,this.finish=function(){t7(t,e)}}var ui;$e.WritableState=hs;var T9={deprecate:_f()},AC=Gf(),$a=ye("buffer").Buffer,B9=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function x9(e){return $a.from(e)}function k9(e){return $a.isBuffer(e)||e instanceof B9}var Jf=Yf(),P9=zf(),O9=P9.getHighWaterMark,Wr=Gr().codes,I9=Wr.ERR_INVALID_ARG_TYPE,L9=Wr.ERR_METHOD_NOT_IMPLEMENTED,N9=Wr.ERR_MULTIPLE_CALLBACK,M9=Wr.ERR_STREAM_CANNOT_PIPE,j9=Wr.ERR_STREAM_DESTROYED,$9=Wr.ERR_STREAM_NULL_VALUES,H9=Wr.ERR_STREAM_WRITE_AFTER_END,q9=Wr.ERR_UNKNOWN_ENCODING,ai=Jf.errorOrDestroy;ht()($e,AC);function U9(){}function hs(e,t,r){ui=ui||vn(),e=e||{},typeof r!="boolean"&&(r=t instanceof ui),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=O9(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){J9(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new CC(this)}hs.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(hs.prototype,"buffer",{get:T9.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ja;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ja=Function.prototype[Symbol.hasInstance],Object.defineProperty($e,Symbol.hasInstance,{value:function(t){return ja.call(this,t)?!0:this!==$e?!1:t&&t._writableState instanceof hs}})):ja=function(t){return t instanceof this};function $e(e){ui=ui||vn();var t=this instanceof ui;if(!t&&!ja.call($e,this))return new $e(e);this._writableState=new hs(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),AC.call(this)}$e.prototype.pipe=function(){ai(this,new M9)};function G9(e,t){var r=new H9;ai(e,r),process.nextTick(t,r)}function W9(e,t,r,n){var i;return r===null?i=new $9:typeof r!="string"&&!t.objectMode&&(i=new I9("chunk",["string","Buffer"],r)),i?(ai(e,i),process.nextTick(n,i),!1):!0}$e.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&k9(e);return s&&!$a.isBuffer(e)&&(e=x9(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=U9),n.ending?G9(this,r):(s||W9(this,n,e,r))&&(n.pendingcb++,i=Y9(this,n,s,e,t,r)),i};$e.prototype.cork=function(){this._writableState.corked++};$e.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&wC(this,e))};$e.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new q9(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty($e.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function V9(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=$a.from(t,r)),t}Object.defineProperty($e.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Y9(e,t,r,n,i,s){if(!r){var u=V9(t,n,i);n!==u&&(r=!0,i="buffer",n=u)}var a=t.objectMode?1:n.length;t.length+=a;var o=t.length<t.highWaterMark;if(o||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Kf(e,t,!1,a,n,i,s);return o}function Kf(e,t,r,n,i,s,u){t.writelen=n,t.writecb=u,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new j9("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function z9(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(fs,e,t),e._writableState.errorEmitted=!0,ai(e,n)):(i(n),e._writableState.errorEmitted=!0,ai(e,n),fs(e,t))}function K9(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function J9(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new N9;if(K9(r),t)z9(e,r,n,t,i);else{var s=bC(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&wC(e,r),n?process.nextTick(FC,e,r,s,i):FC(e,r,s,i)}}function FC(e,t,r,n){r||X9(e,t),t.pendingcb--,n(),fs(e,t)}function X9(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function wC(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var u=0,a=!0;r;)i[u]=r,r.isBuf||(a=!1),r=r.next,u+=1;i.allBuffers=a,Kf(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new CC(t),t.bufferedRequestCount=0}else{for(;r;){var o=r.chunk,l=r.encoding,c=r.callback,f=t.objectMode?1:o.length;if(Kf(e,t,!1,f,o,l,c),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}$e.prototype._write=function(e,t,r){r(new L9("_write()"))};$e.prototype._writev=null;$e.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||e7(this,n,r),this};Object.defineProperty($e.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function bC(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Q9(e,t){e._final(function(r){t.pendingcb--,r&&ai(e,r),t.prefinished=!0,e.emit("prefinish"),fs(e,t)})}function Z9(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(Q9,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function fs(e,t){var r=bC(t);if(r&&(Z9(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function e7(e,t,r){t.ending=!0,fs(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function t7(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty($e.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});$e.prototype.destroy=Jf.destroy;$e.prototype._undestroy=Jf.undestroy;$e.prototype._destroy=function(e,t){t(e)}});var vn=Y((Zz,TC)=>{"use strict";_();var r7=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};TC.exports=Xt;var RC=eh(),Zf=Xf();ht()(Xt,RC);for(Qf=r7(Zf.prototype),Ha=0;Ha<Qf.length;Ha++)qa=Qf[Ha],Xt.prototype[qa]||(Xt.prototype[qa]=Zf.prototype[qa]);var Qf,qa,Ha;function Xt(e){if(!(this instanceof Xt))return new Xt(e);RC.call(this,e),Zf.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",n7)))}Object.defineProperty(Xt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Xt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Xt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function n7(){this._writableState.ended||process.nextTick(i7,this)}function i7(e){e.end()}Object.defineProperty(Xt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var kC=Y((th,xC)=>{"use strict";_();var Ua=ye("buffer"),Qt=Ua.Buffer;function BC(e,t){for(var r in e)t[r]=e[r]}Qt.from&&Qt.alloc&&Qt.allocUnsafe&&Qt.allocUnsafeSlow?xC.exports=Ua:(BC(Ua,th),th.Buffer=Fn);function Fn(e,t,r){return Qt(e,t,r)}Fn.prototype=Object.create(Qt.prototype);BC(Qt,Fn);Fn.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Qt(e,t,r)};Fn.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Qt(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};Fn.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Qt(e)};Fn.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ua.SlowBuffer(e)}});var ih=Y(OC=>{"use strict";_();var nh=kC().Buffer,PC=nh.isEncoding||function(e){switch(e=""+e,e&&e.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 s7(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function u7(e){var t=s7(e);if(typeof t!="string"&&(nh.isEncoding===PC||!PC(e)))throw new Error("Unknown encoding: "+e);return t||e}OC.StringDecoder=ds;function ds(e){this.encoding=u7(e);var t;switch(this.encoding){case"utf16le":this.text=h7,this.end=d7,t=4;break;case"utf8":this.fillLast=l7,t=4;break;case"base64":this.text=p7,this.end=D7,t=3;break;default:this.write=m7,this.end=g7;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=nh.allocUnsafe(t)}ds.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};ds.prototype.end=f7;ds.prototype.text=c7;ds.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function rh(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function a7(e,t,r){var n=t.length-1;if(n<r)return 0;var i=rh(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=rh(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=rh(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function o7(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function l7(e){var t=this.lastTotal-this.lastNeed,r=o7(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function c7(e,t){var r=a7(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function f7(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function h7(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function d7(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function p7(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function D7(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function m7(e){return e.toString(this.encoding)}function g7(e){return e&&e.length?this.write(e):""}});var Ga=Y((iK,NC)=>{"use strict";_();var IC=Gr().codes.ERR_STREAM_PREMATURE_CLOSE;function _7(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function y7(){}function E7(e){return e.setHeader&&typeof e.abort=="function"}function LC(e,t,r){if(typeof t=="function")return LC(e,null,t);t||(t={}),r=_7(r||y7);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,s=function(){e.writable||a()},u=e._writableState&&e._writableState.finished,a=function(){i=!1,u=!0,n||r.call(e)},o=e._readableState&&e._readableState.endEmitted,l=function(){n=!1,o=!0,i||r.call(e)},c=function(p){r.call(e,p)},f=function(){var p;if(n&&!o)return(!e._readableState||!e._readableState.ended)&&(p=new IC),r.call(e,p);if(i&&!u)return(!e._writableState||!e._writableState.ended)&&(p=new IC),r.call(e,p)},h=function(){e.req.on("finish",a)};return E7(e)?(e.on("complete",a),e.on("abort",f),e.req?h():e.on("request",h)):i&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",l),e.on("finish",a),t.error!==!1&&e.on("error",c),e.on("close",f),function(){e.removeListener("complete",a),e.removeListener("abort",f),e.removeListener("request",h),e.req&&e.req.removeListener("finish",a),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",a),e.removeListener("end",l),e.removeListener("error",c),e.removeListener("close",f)}}NC.exports=LC});var jC=Y((uK,MC)=>{"use strict";_();var Wa;function Vr(e,t,r){return t=v7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v7(e){var t=F7(e,"string");return typeof t=="symbol"?t:String(t)}function F7(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var C7=Ga(),Yr=Symbol("lastResolve"),Cn=Symbol("lastReject"),ps=Symbol("error"),Va=Symbol("ended"),An=Symbol("lastPromise"),sh=Symbol("handlePromise"),wn=Symbol("stream");function zr(e,t){return{value:e,done:t}}function A7(e){var t=e[Yr];if(t!==null){var r=e[wn].read();r!==null&&(e[An]=null,e[Yr]=null,e[Cn]=null,t(zr(r,!1)))}}function w7(e){process.nextTick(A7,e)}function b7(e,t){return function(r,n){e.then(function(){if(t[Va]){r(zr(void 0,!0));return}t[sh](r,n)},n)}}var S7=Object.getPrototypeOf(function(){}),R7=Object.setPrototypeOf((Wa={get stream(){return this[wn]},next:function(){var t=this,r=this[ps];if(r!==null)return Promise.reject(r);if(this[Va])return Promise.resolve(zr(void 0,!0));if(this[wn].destroyed)return new Promise(function(u,a){process.nextTick(function(){t[ps]?a(t[ps]):u(zr(void 0,!0))})});var n=this[An],i;if(n)i=new Promise(b7(n,this));else{var s=this[wn].read();if(s!==null)return Promise.resolve(zr(s,!1));i=new Promise(this[sh])}return this[An]=i,i}},Vr(Wa,Symbol.asyncIterator,function(){return this}),Vr(Wa,"return",function(){var t=this;return new Promise(function(r,n){t[wn].destroy(null,function(i){if(i){n(i);return}r(zr(void 0,!0))})})}),Wa),S7),T7=function(t){var r,n=Object.create(R7,(r={},Vr(r,wn,{value:t,writable:!0}),Vr(r,Yr,{value:null,writable:!0}),Vr(r,Cn,{value:null,writable:!0}),Vr(r,ps,{value:null,writable:!0}),Vr(r,Va,{value:t._readableState.endEmitted,writable:!0}),Vr(r,sh,{value:function(s,u){var a=n[wn].read();a?(n[An]=null,n[Yr]=null,n[Cn]=null,s(zr(a,!1))):(n[Yr]=s,n[Cn]=u)},writable:!0}),r));return n[An]=null,C7(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[Cn];s!==null&&(n[An]=null,n[Yr]=null,n[Cn]=null,s(i)),n[ps]=i;return}var u=n[Yr];u!==null&&(n[An]=null,n[Yr]=null,n[Cn]=null,u(zr(void 0,!0))),n[Va]=!0}),t.on("readable",w7.bind(null,n)),n};MC.exports=T7});var UC=Y((oK,qC)=>{"use strict";_();function $C(e,t,r,n,i,s,u){try{var a=e[s](u),o=a.value}catch(l){r(l);return}a.done?t(o):Promise.resolve(o).then(n,i)}function B7(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function u(o){$C(s,n,i,u,a,"next",o)}function a(o){$C(s,n,i,u,a,"throw",o)}u(void 0)})}}function HC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function x7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HC(Object(r),!0).forEach(function(n){k7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function k7(e,t,r){return t=P7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P7(e){var t=O7(e,"string");return typeof t=="symbol"?t:String(t)}function O7(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var I7=Gr().codes.ERR_INVALID_ARG_TYPE;function L7(e,t,r){var n;if(t&&typeof t.next=="function")n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new I7("iterable",["Iterable"],t);var i=new e(x7({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,u())};function u(){return a.apply(this,arguments)}function a(){return a=B7(function*(){try{var o=yield n.next(),l=o.value,c=o.done;c?i.push(null):i.push(yield l)?u():s=!1}catch(f){i.destroy(f)}}),a.apply(this,arguments)}return i}qC.exports=L7});var eh=Y((fK,ZC)=>{"use strict";_();ZC.exports=Ee;var oi;Ee.ReadableState=YC;var cK=ye("events").EventEmitter,VC=function(t,r){return t.listeners(r).length},ms=Gf(),Ya=ye("buffer").Buffer,N7=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function M7(e){return Ya.from(e)}function j7(e){return Ya.isBuffer(e)||e instanceof N7}var uh=ye("util"),de;uh&&uh.debuglog?de=uh.debuglog("stream"):de=function(){};var $7=DC(),dh=Yf(),H7=zf(),q7=H7.getHighWaterMark,za=Gr().codes,U7=za.ERR_INVALID_ARG_TYPE,G7=za.ERR_STREAM_PUSH_AFTER_EOF,W7=za.ERR_METHOD_NOT_IMPLEMENTED,V7=za.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,li,ah,oh;ht()(Ee,ms);var Ds=dh.errorOrDestroy,lh=["error","close","destroy","pause","resume"];function Y7(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function YC(e,t,r){oi=oi||vn(),e=e||{},typeof r!="boolean"&&(r=t instanceof oi),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=q7(this,e,"readableHighWaterMark",r),this.buffer=new $7,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.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(li||(li=ih().StringDecoder),this.decoder=new li(e.encoding),this.encoding=e.encoding)}function Ee(e){if(oi=oi||vn(),!(this instanceof Ee))return new Ee(e);var t=this instanceof oi;this._readableState=new YC(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),ms.call(this)}Object.defineProperty(Ee.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Ee.prototype.destroy=dh.destroy;Ee.prototype._undestroy=dh.undestroy;Ee.prototype._destroy=function(e,t){t(e)};Ee.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Ya.from(e,t),t=""),n=!0),zC(this,e,t,!1,n)};Ee.prototype.unshift=function(e){return zC(this,e,null,!0,!1)};function zC(e,t,r,n,i){de("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,J7(e,s);else{var u;if(i||(u=z7(s,t)),u)Ds(e,u);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==Ya.prototype&&(t=M7(t)),n)s.endEmitted?Ds(e,new V7):ch(e,s,t,!0);else if(s.ended)Ds(e,new G7);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?ch(e,s,t,!1):hh(e,s)):ch(e,s,t,!1)}else n||(s.reading=!1,hh(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function ch(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Ka(e)),hh(e,t)}function z7(e,t){var r;return!j7(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new U7("chunk",["string","Buffer","Uint8Array"],t)),r}Ee.prototype.isPaused=function(){return this._readableState.flowing===!1};Ee.prototype.setEncoding=function(e){li||(li=ih().StringDecoder);var t=new li(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var GC=1073741824;function K7(e){return e>=GC?e=GC:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function WC(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=K7(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Ee.prototype.read=function(e){de("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return de("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?fh(this):Ka(this),null;if(e=WC(e,t),e===0&&t.ended)return t.length===0&&fh(this),null;var n=t.needReadable;de("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,de("length less than watermark",n)),t.ended||t.reading?(n=!1,de("reading or ended",n)):n&&(de("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=WC(r,t)));var i;return e>0?i=XC(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&fh(this)),i!==null&&this.emit("data",i),i};function J7(e,t){if(de("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?Ka(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,KC(e)))}}function Ka(e){var t=e._readableState;de("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(de("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(KC,e))}function KC(e){var t=e._readableState;de("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ph(e)}function hh(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(X7,e,t))}function X7(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(de("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}Ee.prototype._read=function(e){Ds(this,new W7("_read()"))};Ee.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,de("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:D;n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",u);function u(w,y){de("onunpipe"),w===r&&y&&y.hasUnpiped===!1&&(y.hasUnpiped=!0,c())}function a(){de("onend"),e.end()}var o=Q7(r);e.on("drain",o);var l=!1;function c(){de("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",o),e.removeListener("error",h),e.removeListener("unpipe",u),r.removeListener("end",a),r.removeListener("end",D),r.removeListener("data",f),l=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&o()}r.on("data",f);function f(w){de("ondata");var y=e.write(w);de("dest.write",y),y===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&QC(n.pipes,e)!==-1)&&!l&&(de("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(w){de("onerror",w),D(),e.removeListener("error",h),VC(e,"error")===0&&Ds(e,w)}Y7(e,"error",h);function d(){e.removeListener("finish",p),D()}e.once("close",d);function p(){de("onfinish"),e.removeListener("close",d),D()}e.once("finish",p);function D(){de("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(de("pipe resume"),r.resume()),e};function Q7(e){return function(){var r=e._readableState;de("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&VC(e,"data")&&(r.flowing=!0,ph(e))}}Ee.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var u=QC(t.pipes,e);return u===-1?this:(t.pipes.splice(u,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};Ee.prototype.on=function(e,t){var r=ms.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,de("on readable",n.length,n.reading),n.length?Ka(this):n.reading||process.nextTick(Z7,this)),r};Ee.prototype.addListener=Ee.prototype.on;Ee.prototype.removeListener=function(e,t){var r=ms.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(JC,this),r};Ee.prototype.removeAllListeners=function(e){var t=ms.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(JC,this),t};function JC(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function Z7(e){de("readable nexttick read 0"),e.read(0)}Ee.prototype.resume=function(){var e=this._readableState;return e.flowing||(de("resume"),e.flowing=!e.readableListening,eM(this,e)),e.paused=!1,this};function eM(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(tM,e,t))}function tM(e,t){de("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ph(e),t.flowing&&!t.reading&&e.read(0)}Ee.prototype.pause=function(){return de("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(de("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ph(e){var t=e._readableState;for(de("flow",t.flowing);t.flowing&&e.read()!==null;);}Ee.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(de("wrapped end"),r.decoder&&!r.ended){var u=r.decoder.end();u&&u.length&&t.push(u)}t.push(null)}),e.on("data",function(u){if(de("wrapped data"),r.decoder&&(u=r.decoder.write(u)),!(r.objectMode&&u==null)&&!(!r.objectMode&&(!u||!u.length))){var a=t.push(u);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(a){return function(){return e[a].apply(e,arguments)}})(i));for(var s=0;s<lh.length;s++)e.on(lh[s],this.emit.bind(this,lh[s]));return this._read=function(u){de("wrapped _read",u),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(Ee.prototype[Symbol.asyncIterator]=function(){return ah===void 0&&(ah=jC()),ah(this)});Object.defineProperty(Ee.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(Ee.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Ee.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});Ee._fromList=XC;Object.defineProperty(Ee.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function XC(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function fh(e){var t=e._readableState;de("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(rM,t,e))}function rM(e,t){if(de("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(Ee.from=function(e,t){return oh===void 0&&(oh=UC()),oh(Ee,e,t)});function QC(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var Dh=Y((dK,tA)=>{"use strict";_();tA.exports=pr;var Ja=Gr().codes,nM=Ja.ERR_METHOD_NOT_IMPLEMENTED,iM=Ja.ERR_MULTIPLE_CALLBACK,sM=Ja.ERR_TRANSFORM_ALREADY_TRANSFORMING,uM=Ja.ERR_TRANSFORM_WITH_LENGTH_0,Xa=vn();ht()(pr,Xa);function aM(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new iM);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function pr(e){if(!(this instanceof pr))return new pr(e);Xa.call(this,e),this._transformState={afterTransform:aM.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",oM)}function oM(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){eA(e,t,r)}):eA(this,null,null)}pr.prototype.push=function(e,t){return this._transformState.needTransform=!1,Xa.prototype.push.call(this,e,t)};pr.prototype._transform=function(e,t,r){r(new nM("_transform()"))};pr.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};pr.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};pr.prototype._destroy=function(e,t){Xa.prototype._destroy.call(this,e,function(r){t(r)})};function eA(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new uM;if(e._transformState.transforming)throw new sM;return e.push(null)}});var iA=Y((DK,nA)=>{"use strict";_();nA.exports=gs;var rA=Dh();ht()(gs,rA);function gs(e){if(!(this instanceof gs))return new gs(e);rA.call(this,e)}gs.prototype._transform=function(e,t,r){r(null,e)}});var lA=Y((gK,oA)=>{"use strict";_();var mh;function lM(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var aA=Gr().codes,cM=aA.ERR_MISSING_ARGS,fM=aA.ERR_STREAM_DESTROYED;function sA(e){if(e)throw e}function hM(e){return e.setHeader&&typeof e.abort=="function"}function dM(e,t,r,n){n=lM(n);var i=!1;e.on("close",function(){i=!0}),mh===void 0&&(mh=Ga()),mh(e,{readable:t,writable:r},function(u){if(u)return n(u);i=!0,n()});var s=!1;return function(u){if(!i&&!s){if(s=!0,hM(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(u||new fM("pipe"))}}}function uA(e){e()}function pM(e,t){return e.pipe(t)}function DM(e){return!e.length||typeof e[e.length-1]!="function"?sA:e.pop()}function mM(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=DM(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new cM("streams");var i,s=t.map(function(u,a){var o=a<t.length-1,l=a>0;return dM(u,o,l,function(c){i||(i=c),c&&s.forEach(uA),!o&&(s.forEach(uA),n(i))})});return t.reduce(pM)}oA.exports=mM});var ci=Y((Pt,ys)=>{"use strict";_();var _s=ye("stream");process.env.READABLE_STREAM==="disable"&&_s?(ys.exports=_s.Readable,Object.assign(ys.exports,_s),ys.exports.Stream=_s):(Pt=ys.exports=eh(),Pt.Stream=_s||Pt,Pt.Readable=Pt,Pt.Writable=Xf(),Pt.Duplex=vn(),Pt.Transform=Dh(),Pt.PassThrough=iA(),Pt.finished=Ga(),Pt.pipeline=lA())});var hA=Y((EK,fA)=>{"use strict";_();var{Buffer:Nt}=ye("buffer"),cA=Symbol.for("BufferList");function Re(e){if(!(this instanceof Re))return new Re(e);Re._init.call(this,e)}Re._init=function(t){Object.defineProperty(this,cA,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};Re.prototype._new=function(t){return new Re(t)};Re.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(t<i||n===this._bufs.length-1)return[n,t-r];r=i}};Re.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let n=0;n<t;n++)r+=this._bufs[n].length;return r};Re.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};Re.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};Re.prototype.copy=function(t,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return t||Nt.alloc(0);let s=!!t,u=this._offset(n),a=i-n,o=a,l=s&&r||0,c=u[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:Nt.concat(this._bufs,this.length);for(let f=0;f<this._bufs.length;f++)this._bufs[f].copy(t,l),l+=this._bufs[f].length;return t}if(o<=this._bufs[u[0]].length-c)return s?this._bufs[u[0]].copy(t,r,c,c+o):this._bufs[u[0]].slice(c,c+o);s||(t=Nt.allocUnsafe(a));for(let f=u[0];f<this._bufs.length;f++){let h=this._bufs[f].length-c;if(o>h)this._bufs[f].copy(t,l,c),l+=h;else{this._bufs[f].copy(t,l,c,c+o),l+=h;break}o-=h,c&&(c=0)}return t.length>l?t.slice(0,l):t};Re.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();let n=this._offset(t),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};Re.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};Re.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};Re.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};Re.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(Nt.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(Nt.from(t));return this};Re.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};Re.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=Nt.from([e]):typeof e=="string"?e=Nt.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=Nt.from(e.buffer,e.byteOffset,e.byteLength):Nt.isBuffer(e)||(e=Nt.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;let n=this._offset(t),i=n[0],s=n[1];for(;i<this._bufs.length;i++){let u=this._bufs[i];for(;s<u.length;)if(u.length-s>=e.length){let o=u.indexOf(e,s);if(o!==-1)return this._reverseOffset([i,o]);s=u.length-e.length+1}else{let o=this._reverseOffset([i,s]);if(this._match(o,e))return o;s++}s=0}return-1};Re.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){let e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let t in e)(function(r){e[r]===null?Re.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:Re.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();Re.prototype._isBufferList=function(t){return t instanceof Re||Re.isBufferList(t)};Re.isBufferList=function(t){return t!=null&&t[cA]};fA.exports=Re});var dA=Y((FK,Qa)=>{"use strict";_();var gh=ci().Duplex,gM=ht(),Es=hA();function st(e){if(!(this instanceof st))return new st(e);if(typeof e=="function"){this._callback=e;let t=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",t)}),this.on("unpipe",function(n){n.removeListener("error",t)}),e=null}Es._init.call(this,e),gh.call(this)}gM(st,gh);Object.assign(st.prototype,Es.prototype);st.prototype._new=function(t){return new st(t)};st.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};st.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};st.prototype.end=function(t){gh.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};st.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};st.prototype._isBufferList=function(t){return t instanceof st||t instanceof Es||st.isBufferList(t)};st.isBufferList=Es.isBufferList;Qa.exports=st;Qa.exports.BufferListStream=st;Qa.exports.BufferList=Es});var Eh=Y(hi=>{"use strict";_();var _M=Buffer.alloc,yM="0000000000000000000",EM="7777777777777777777",pA=48,DA=Buffer.from("ustar\0","binary"),vM=Buffer.from("00","binary"),FM=Buffer.from("ustar ","binary"),CM=Buffer.from(" \0","binary"),AM=parseInt("7777",8),vs=257,yh=263,wM=function(e,t,r){return typeof e!="number"?r:(e=~~e,e>=t?t:e>=0||(e+=t,e>=0)?e:0)},bM=function(e){switch(e){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},SM=function(e){switch(e){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},mA=function(e,t,r,n){for(;r<n;r++)if(e[r]===t)return r;return n},gA=function(e){for(var t=256,r=0;r<148;r++)t+=e[r];for(var n=156;n<512;n++)t+=e[n];return t},Kr=function(e,t){return e=e.toString(8),e.length>t?EM.slice(0,t)+" ":yM.slice(0,t-e.length)+e+" "};function RM(e){var t;if(e[0]===128)t=!0;else if(e[0]===255)t=!1;else return null;for(var r=[],n=e.length-1;n>0;n--){var i=e[n];t?r.push(i):r.push(255-i)}var s=0,u=r.length;for(n=0;n<u;n++)s+=r[n]*Math.pow(256,n);return t?s:-1*s}var Jr=function(e,t,r){if(e=e.slice(t,t+r),t=0,e[t]&128)return RM(e);for(;t<e.length&&e[t]===32;)t++;for(var n=wM(mA(e,32,t,e.length),e.length,e.length);t<n&&e[t]===0;)t++;return n===t?0:parseInt(e.slice(t,n).toString(),8)},fi=function(e,t,r,n){return e.slice(t,mA(e,0,t,t+r)).toString(n)},_h=function(e){var t=Buffer.byteLength(e),r=Math.floor(Math.log(t)/Math.log(10))+1;return t+r>=Math.pow(10,r)&&r++,t+r+e};hi.decodeLongPath=function(e,t){return fi(e,0,e.length,t)};hi.encodePax=function(e){var t="";e.name&&(t+=_h(" path="+e.name+`
|
|
579
579
|
`)),e.linkname&&(t+=_h(" linkpath="+e.linkname+`
|
|
580
580
|
`));var r=e.pax;if(r)for(var n in r)t+=_h(" "+n+"="+r[n]+`
|
|
581
|
-
`);return Buffer.from(t)};hi.decodePax=function(e){for(var t={};e.length;){for(var r=0;r<e.length&&e[r]!==32;)r++;var n=parseInt(e.slice(0,r).toString(),10);if(!n)return t;var i=e.slice(r+1,n-1).toString(),s=i.indexOf("=");if(s===-1)return t;t[i.slice(0,s)]=i.slice(s+1),e=e.slice(n)}return t};hi.encode=function(e){var t=gM(512),r=e.name,n="";if(e.typeflag===5&&r[r.length-1]!=="/"&&(r+="/"),Buffer.byteLength(r)!==r.length)return null;for(;Buffer.byteLength(r)>100;){var i=r.indexOf("/");if(i===-1)return null;n+=n?"/"+r.slice(0,i):r.slice(0,i),r=r.slice(i+1)}return Buffer.byteLength(r)>100||Buffer.byteLength(n)>155||e.linkname&&Buffer.byteLength(e.linkname)>100?null:(t.write(r),t.write(Kr(e.mode&CM,6),100),t.write(Kr(e.uid,6),108),t.write(Kr(e.gid,6),116),t.write(Kr(e.size,11),124),t.write(Kr(e.mtime.getTime()/1e3|0,11),136),t[156]=pA+bM(e.type),e.linkname&&t.write(e.linkname,157),DA.copy(t,vs),EM.copy(t,yh),e.uname&&t.write(e.uname,265),e.gname&&t.write(e.gname,297),t.write(Kr(e.devmajor||0,6),329),t.write(Kr(e.devminor||0,6),337),n&&t.write(n,345),t.write(Kr(gA(t),6),148),t)};hi.decode=function(e,t,r){var n=e[156]===0?0:e[156]-pA,i=fi(e,0,100,t),s=Jr(e,100,8),u=Jr(e,108,8),a=Jr(e,116,8),o=Jr(e,124,12),l=Jr(e,136,12),c=wM(n),f=e[157]===0?null:fi(e,157,100,t),h=fi(e,265,32),d=fi(e,297,32),p=Jr(e,329,8),D=Jr(e,337,8),w=gA(e);if(w===256)return null;if(w!==Jr(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(DA.compare(e,vs,vs+6)===0)e[345]&&(i=fi(e,345,155,t)+"/"+i);else if(!(vM.compare(e,vs,vs+6)===0&&FM.compare(e,yh,yh+2)===0)){if(!r)throw new Error("Invalid tar header: unknown format.")}return n===0&&i&&i[i.length-1]==="/"&&(n=5),{name:i,mode:s,uid:u,gid:a,size:o,mtime:new Date(1e3*l),type:c,linkname:f,uname:h,gname:d,devmajor:p,devminor:D}}});var AA=z((wK,CA)=>{"use strict";_();var yA=ye("util"),RM=dA(),Fs=Eh(),EA=ci().Writable,vA=ci().PassThrough,FA=function(){},_A=function(e){return e&=511,e&&512-e},TM=function(e,t){var r=new Za(e,t);return r.end(),r},BM=function(e,t){return t.path&&(e.name=t.path),t.linkpath&&(e.linkname=t.linkpath),t.size&&(e.size=parseInt(t.size,10)),e.pax=t,e},Za=function(e,t){this._parent=e,this.offset=t,vA.call(this,{autoDestroy:!1})};yA.inherits(Za,vA);Za.prototype.destroy=function(e){this._parent.destroy(e)};var Dr=function(e){if(!(this instanceof Dr))return new Dr(e);EA.call(this,e),e=e||{},this._offset=0,this._buffer=RM(),this._missing=0,this._partial=!1,this._onparse=FA,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var t=this,r=t._buffer,n=function(){t._continue()},i=function(h){if(t._locked=!1,h)return t.destroy(h);t._stream||n()},s=function(){t._stream=null;var h=_A(t._header.size);h?t._parse(h,u):t._parse(512,f),t._locked||n()},u=function(){t._buffer.consume(_A(t._header.size)),t._parse(512,f),n()},a=function(){var h=t._header.size;t._paxGlobal=Fs.decodePax(r.slice(0,h)),r.consume(h),s()},o=function(){var h=t._header.size;t._pax=Fs.decodePax(r.slice(0,h)),t._paxGlobal&&(t._pax=Object.assign({},t._paxGlobal,t._pax)),r.consume(h),s()},l=function(){var h=t._header.size;this._gnuLongPath=Fs.decodeLongPath(r.slice(0,h),e.filenameEncoding),r.consume(h),s()},c=function(){var h=t._header.size;this._gnuLongLinkPath=Fs.decodeLongPath(r.slice(0,h),e.filenameEncoding),r.consume(h),s()},f=function(){var h=t._offset,d;try{d=t._header=Fs.decode(r.slice(0,512),e.filenameEncoding,e.allowUnknownFormat)}catch(p){t.emit("error",p)}if(r.consume(512),!d){t._parse(512,f),n();return}if(d.type==="gnu-long-path"){t._parse(d.size,l),n();return}if(d.type==="gnu-long-link-path"){t._parse(d.size,c),n();return}if(d.type==="pax-global-header"){t._parse(d.size,a),n();return}if(d.type==="pax-header"){t._parse(d.size,o),n();return}if(t._gnuLongPath&&(d.name=t._gnuLongPath,t._gnuLongPath=null),t._gnuLongLinkPath&&(d.linkname=t._gnuLongLinkPath,t._gnuLongLinkPath=null),t._pax&&(t._header=d=BM(d,t._pax),t._pax=null),t._locked=!0,!d.size||d.type==="directory"){t._parse(512,f),t.emit("entry",d,TM(t,h),i);return}t._stream=new Za(t,h),t.emit("entry",d,t._stream,i),t._parse(d.size,s),n()};this._onheader=f,this._parse(512,f)};yA.inherits(Dr,EA);Dr.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.emit("close"))};Dr.prototype._parse=function(e,t){this._destroyed||(this._offset+=e,this._missing=e,t===this._onheader&&(this._partial=!1),this._onparse=t)};Dr.prototype._continue=function(){if(!this._destroyed){var e=this._cb;this._cb=FA,this._overflow?this._write(this._overflow,void 0,e):e()}};Dr.prototype._write=function(e,t,r){if(!this._destroyed){var n=this._stream,i=this._buffer,s=this._missing;if(e.length&&(this._partial=!0),e.length<s)return this._missing-=e.length,this._overflow=null,n?n.write(e,r):(i.append(e),r());this._cb=r,this._missing=0;var u=null;e.length>s&&(u=e.slice(s),e=e.slice(0,s)),n?n.end(e):i.append(e),this._overflow=u,this._onparse()}};Dr.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()};CA.exports=Dr});var bA=z((SK,wA)=>{"use strict";_();wA.exports=ye("fs").constants||ye("constants")});var xA=z((TK,BA)=>{"use strict";_();var di=bA(),SA=mo(),to=ht(),xM=Buffer.alloc,RA=ci().Readable,pi=ci().Writable,kM=ye("string_decoder").StringDecoder,eo=Eh(),PM=parseInt("755",8),OM=parseInt("644",8),TA=xM(1024),Fh=function(){},vh=function(e,t){t&=511,t&&e.push(TA.slice(0,512-t))};function IM(e){switch(e&di.S_IFMT){case di.S_IFBLK:return"block-device";case di.S_IFCHR:return"character-device";case di.S_IFDIR:return"directory";case di.S_IFIFO:return"fifo";case di.S_IFLNK:return"symlink"}return"file"}var ro=function(e){pi.call(this),this.written=0,this._to=e,this._destroyed=!1};to(ro,pi);ro.prototype._write=function(e,t,r){if(this.written+=e.length,this._to.push(e))return r();this._to._drain=r};ro.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var no=function(){pi.call(this),this.linkname="",this._decoder=new kM("utf-8"),this._destroyed=!1};to(no,pi);no.prototype._write=function(e,t,r){this.linkname+=this._decoder.write(e),r()};no.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var Cs=function(){pi.call(this),this._destroyed=!1};to(Cs,pi);Cs.prototype._write=function(e,t,r){r(new Error("No body allowed for this entry"))};Cs.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var Zt=function(e){if(!(this instanceof Zt))return new Zt(e);RA.call(this,e),this._drain=Fh,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};to(Zt,RA);Zt.prototype.entry=function(e,t,r){if(this._stream)throw new Error("already piping an entry");if(!(this._finalized||this._destroyed)){typeof t=="function"&&(r=t,t=null),r||(r=Fh);var n=this;if((!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=IM(e.mode)),e.mode||(e.mode=e.type==="directory"?PM:OM),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof t=="string"&&(t=Buffer.from(t)),Buffer.isBuffer(t)){e.size=t.length,this._encode(e);var i=this.push(t);return vh(n,e.size),i?process.nextTick(r):this._drain=r,new Cs}if(e.type==="symlink"&&!e.linkname){var s=new no;return SA(s,function(a){if(a)return n.destroy(),r(a);e.linkname=s.linkname,n._encode(e),r()}),s}if(this._encode(e),e.type!=="file"&&e.type!=="contiguous-file")return process.nextTick(r),new Cs;var u=new ro(this);return this._stream=u,SA(u,function(a){if(n._stream=null,a)return n.destroy(),r(a);if(u.written!==e.size)return n.destroy(),r(new Error("size mismatch"));vh(n,e.size),n._finalizing&&n.finalize(),r()}),u}};Zt.prototype.finalize=function(){if(this._stream){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(TA),this.push(null))};Zt.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())};Zt.prototype._encode=function(e){if(!e.pax){var t=eo.encode(e);if(t){this.push(t);return}}this._encodePax(e)};Zt.prototype._encodePax=function(e){var t=eo.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(eo.encode(r)),this.push(t),vh(this,t.length),r.size=e.size,r.type=e.type,this.push(eo.encode(r))};Zt.prototype._read=function(e){var t=this._drain;this._drain=Fh,t()};BA.exports=Zt});var kA=z(Ch=>{"use strict";_();Ch.extract=AA();Ch.pack=xA()});var LA=z((PK,IA)=>{"use strict";_();var io=ye("path"),PA=ye("fs"),OA=parseInt("0777",8);IA.exports=Di.mkdirp=Di.mkdirP=Di;function Di(e,t,r,n){typeof t=="function"?(r=t,t={}):(!t||typeof t!="object")&&(t={mode:t});var i=t.mode,s=t.fs||PA;i===void 0&&(i=OA&~process.umask()),n||(n=null);var u=r||function(){};e=io.resolve(e),s.mkdir(e,i,function(a){if(!a)return n=n||e,u(null,n);a.code==="ENOENT"?Di(io.dirname(e),t,function(o,l){o?u(o,l):Di(e,t,u,l)}):s.stat(e,function(o,l){o||!l.isDirectory()?u(a,n):u(null,n)})})}Di.sync=function e(t,r,n){(!r||typeof r!="object")&&(r={mode:r});var i=r.mode,s=r.fs||PA;i===void 0&&(i=OA&~process.umask()),n||(n=null),t=io.resolve(t);try{s.mkdirSync(t,i),n=n||t}catch(a){switch(a.code){case"ENOENT":n=e(io.dirname(t),r,n),e(t,r,n);break;default:var u;try{u=s.statSync(t)}catch{throw a}if(!u.isDirectory())throw a;break}}return n}});var WA=z(bh=>{"use strict";_();var LM=oC(),jA=kA(),$A=uw(),NM=LA(),HA=ye("fs"),tt=ye("path"),MM=ye("os"),As=MM.platform()==="win32",ws=function(){},wh=function(e){return e},Ah=As?function(e){return e.replace(/\\/g,"/").replace(/[:?<>|]/g,"_")}:wh,jM=function(e,t,r,n,i,s){var u=i||["."];return function(o){if(!u.length)return o();var l=u.shift(),c=tt.join(r,l);t.call(e,c,function(f,h){if(f)return o(f);if(!h.isDirectory())return o(null,l,h);e.readdir(c,function(d,p){if(d)return o(d);s&&p.sort();for(var D=0;D<p.length;D++)n(tt.join(r,l,p[D]))||u.push(tt.join(l,p[D]));o(null,l,h)})})}},qA=function(e,t){return function(r){r.name=r.name.split("/").slice(t).join("/");var n=r.linkname;return n&&(r.type==="link"||tt.isAbsolute(n))&&(r.linkname=n.split("/").slice(t).join("/")),e(r)}};bh.pack=function(e,t){e||(e="."),t||(t={});var r=t.fs||HA,n=t.ignore||t.filter||ws,i=t.map||ws,s=t.mapStream||wh,u=jM(r,t.dereference?r.stat:r.lstat,e,n,t.entries,t.sort),a=t.strict!==!1,o=typeof t.umask=="number"?~t.umask:~UA(),l=typeof t.dmode=="number"?t.dmode:0,c=typeof t.fmode=="number"?t.fmode:0,f=t.pack||jA.pack(),h=t.finish||ws;t.strip&&(i=qA(i,t.strip)),t.readable&&(l|=parseInt(555,8),c|=parseInt(444,8)),t.writable&&(l|=parseInt(333,8),c|=parseInt(222,8));var d=function(w,y){r.readlink(tt.join(e,w),function(m,g){if(m)return f.destroy(m);y.linkname=Ah(g),f.entry(y,D)})},p=function(w,y,m){if(w)return f.destroy(w);if(!y)return t.finalize!==!1&&f.finalize(),h(f);if(m.isSocket())return D();var g={name:Ah(y),mode:(m.mode|(m.isDirectory()?l:c))&o,mtime:m.mtime,size:m.size,type:"file",uid:m.uid,gid:m.gid};if(m.isDirectory())return g.size=0,g.type="directory",g=i(g)||g,f.entry(g,D);if(m.isSymbolicLink())return g.size=0,g.type="symlink",g=i(g)||g,d(y,g);if(g=i(g)||g,!m.isFile())return a?f.destroy(new Error("unsupported type for "+y)):D();var C=f.entry(g,D);if(C){var E=s(r.createReadStream(tt.join(e,y),{start:0,end:g.size>0?g.size-1:g.size}),g);E.on("error",function(T){C.destroy(T)}),$A(E,C)}},D=function(w){if(w)return f.destroy(w);u(p)};return D(),f};var $M=function(e){return e.length?e[e.length-1]:null},HM=function(){return process.getuid?process.getuid():-1},UA=function(){return process.umask?process.umask():0};bh.extract=function(e,t){e||(e="."),t||(t={});var r=t.fs||HA,n=t.ignore||t.filter||ws,i=t.map||ws,s=t.mapStream||wh,u=t.chown!==!1&&!As&&HM()===0,a=t.extract||jA.extract(),o=[],l=new Date,c=typeof t.umask=="number"?~t.umask:~UA(),f=typeof t.dmode=="number"?t.dmode:0,h=typeof t.fmode=="number"?t.fmode:0,d=t.strict!==!1;t.strip&&(i=qA(i,t.strip)),t.readable&&(f|=parseInt(555,8),h|=parseInt(444,8)),t.writable&&(f|=parseInt(333,8),h|=parseInt(222,8));var p=function(y,m){for(var g;(g=$M(o))&&y.slice(0,g[0].length)!==g[0];)o.pop();if(!g)return m();r.utimes(g[0],l,g[1],m)},D=function(y,m,g){if(t.utimes===!1)return g();if(m.type==="directory")return r.utimes(y,l,m.mtime,g);if(m.type==="symlink")return p(y,g);r.utimes(y,l,m.mtime,function(C){if(C)return g(C);p(y,g)})},w=function(y,m,g){var C=m.type==="symlink",E=C?r.lchmod:r.chmod,T=C?r.lchown:r.chown;if(!E)return g();var P=(m.mode|(m.type==="directory"?f:h))&c;T&&u?T.call(r,y,m.uid,m.gid,b):b(null);function b(B){if(B)return g(B);if(!E)return g();E.call(r,y,P,g)}};return a.on("entry",function(y,m,g){y=i(y)||y,y.name=Ah(y.name);var C=tt.join(e,tt.join("/",y.name));if(n(C,y))return m.resume(),g();var E=function(O){if(O)return g(O);D(C,y,function(A){if(A)return g(A);if(As)return g();w(C,y,g)})},T=function(){if(As)return g();r.unlink(C,function(){var O=tt.resolve(tt.dirname(C),y.linkname);if(!MA(O,e))return g(new Error(C+" is not a valid symlink"));r.symlink(y.linkname,C,E)})},P=function(){if(As)return g();r.unlink(C,function(){var O=tt.join(e,tt.join("/",y.linkname));r.realpath(O,function(A,S){if(A||!MA(S,e))return g(new Error(C+" is not a valid hardlink"));r.link(S,C,function(v){if(v&&v.code==="EPERM"&&t.hardlinkAsFilesFallback)return m=r.createReadStream(O),b();E(v)})})})},b=function(){var O=r.createWriteStream(C),A=s(m,y);O.on("error",function(S){A.destroy(S)}),$A(A,O,function(S){if(S)return g(S);O.on("close",E)})};if(y.type==="directory")return o.push([C,y.mtime]),NA(C,{fs:r,own:u,uid:y.uid,gid:y.gid},E);var B=tt.dirname(C);GA(r,B,tt.join(e,"."),function(O,A){if(O)return g(O);if(!A)return g(new Error(B+" is not a valid path"));NA(B,{fs:r,own:u,uid:y.uid,gid:y.gid},function(S){if(S)return g(S);switch(y.type){case"file":return b();case"link":return P();case"symlink":return T()}if(d)return g(new Error("unsupported type for "+C+" ("+y.type+")"));m.resume(),g()})})}),t.finish&&a.on("finish",t.finish),a};function GA(e,t,r,n){if(t===r)return n(null,!0);e.lstat(t,function(i,s){if(i&&i.code!=="ENOENT")return n(i);if(i||s.isDirectory())return GA(e,tt.join(t,".."),r,n);n(null,!1)})}function NA(e,t,r){NM(e,{fs:t.fs},function(n,i){!n&&i&&t.own?LM(i,t.uid,t.gid,r):r(n)})}function MA(e,t){return t=tt.resolve(t),t===e||e.startsWith(t+tt.sep)}});_();import{join as KM}from"path";import{tmpdir as JM}from"os";_();_();_();_();var Ao=bt(zd(),1);function Yd(e){let t=e.replace(/\r\n$/g,`
|
|
582
|
-
`);return Ao.parse(t)}async function Kd(e,t,r){let n=r?.from&&r.from!=="."?r.from:Rs(),i=await Ns(t,{cwd:n,type:"file"});if(!i){ft({body:"Environment file not found."});return}let u=
|
|
583
|
-
`),link:t.cta};switch(t.type){case"info":{Ft(r);break}case"warning":{ft(r);break}case"error":throw Nh(r),new Error("abort")}ld(`notification-${t.id}`,new Date().getTime().toString())})}async function Hw(){let e=`notifications-${Lw()}`,t=co(e)?.value;if(!t)throw new Error(Zd);let r=JSON.parse(t);return Mw.parse(r)}function qw(e,t,r,n=new Date(new Date().setUTCHours(0,0,0,0)),i=js){return e.filter(s=>Uw(s,i)).filter(s=>Gw(s,n)).filter(s=>Ww(s,t)).filter(s=>Vw(s,t,r)).filter(s=>
|
|
581
|
+
`);return Buffer.from(t)};hi.decodePax=function(e){for(var t={};e.length;){for(var r=0;r<e.length&&e[r]!==32;)r++;var n=parseInt(e.slice(0,r).toString(),10);if(!n)return t;var i=e.slice(r+1,n-1).toString(),s=i.indexOf("=");if(s===-1)return t;t[i.slice(0,s)]=i.slice(s+1),e=e.slice(n)}return t};hi.encode=function(e){var t=_M(512),r=e.name,n="";if(e.typeflag===5&&r[r.length-1]!=="/"&&(r+="/"),Buffer.byteLength(r)!==r.length)return null;for(;Buffer.byteLength(r)>100;){var i=r.indexOf("/");if(i===-1)return null;n+=n?"/"+r.slice(0,i):r.slice(0,i),r=r.slice(i+1)}return Buffer.byteLength(r)>100||Buffer.byteLength(n)>155||e.linkname&&Buffer.byteLength(e.linkname)>100?null:(t.write(r),t.write(Kr(e.mode&AM,6),100),t.write(Kr(e.uid,6),108),t.write(Kr(e.gid,6),116),t.write(Kr(e.size,11),124),t.write(Kr(e.mtime.getTime()/1e3|0,11),136),t[156]=pA+SM(e.type),e.linkname&&t.write(e.linkname,157),DA.copy(t,vs),vM.copy(t,yh),e.uname&&t.write(e.uname,265),e.gname&&t.write(e.gname,297),t.write(Kr(e.devmajor||0,6),329),t.write(Kr(e.devminor||0,6),337),n&&t.write(n,345),t.write(Kr(gA(t),6),148),t)};hi.decode=function(e,t,r){var n=e[156]===0?0:e[156]-pA,i=fi(e,0,100,t),s=Jr(e,100,8),u=Jr(e,108,8),a=Jr(e,116,8),o=Jr(e,124,12),l=Jr(e,136,12),c=bM(n),f=e[157]===0?null:fi(e,157,100,t),h=fi(e,265,32),d=fi(e,297,32),p=Jr(e,329,8),D=Jr(e,337,8),w=gA(e);if(w===256)return null;if(w!==Jr(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(DA.compare(e,vs,vs+6)===0)e[345]&&(i=fi(e,345,155,t)+"/"+i);else if(!(FM.compare(e,vs,vs+6)===0&&CM.compare(e,yh,yh+2)===0)){if(!r)throw new Error("Invalid tar header: unknown format.")}return n===0&&i&&i[i.length-1]==="/"&&(n=5),{name:i,mode:s,uid:u,gid:a,size:o,mtime:new Date(1e3*l),type:c,linkname:f,uname:h,gname:d,devmajor:p,devminor:D}}});var AA=Y((bK,CA)=>{"use strict";_();var yA=ye("util"),TM=dA(),Fs=Eh(),EA=ci().Writable,vA=ci().PassThrough,FA=function(){},_A=function(e){return e&=511,e&&512-e},BM=function(e,t){var r=new Za(e,t);return r.end(),r},xM=function(e,t){return t.path&&(e.name=t.path),t.linkpath&&(e.linkname=t.linkpath),t.size&&(e.size=parseInt(t.size,10)),e.pax=t,e},Za=function(e,t){this._parent=e,this.offset=t,vA.call(this,{autoDestroy:!1})};yA.inherits(Za,vA);Za.prototype.destroy=function(e){this._parent.destroy(e)};var Dr=function(e){if(!(this instanceof Dr))return new Dr(e);EA.call(this,e),e=e||{},this._offset=0,this._buffer=TM(),this._missing=0,this._partial=!1,this._onparse=FA,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var t=this,r=t._buffer,n=function(){t._continue()},i=function(h){if(t._locked=!1,h)return t.destroy(h);t._stream||n()},s=function(){t._stream=null;var h=_A(t._header.size);h?t._parse(h,u):t._parse(512,f),t._locked||n()},u=function(){t._buffer.consume(_A(t._header.size)),t._parse(512,f),n()},a=function(){var h=t._header.size;t._paxGlobal=Fs.decodePax(r.slice(0,h)),r.consume(h),s()},o=function(){var h=t._header.size;t._pax=Fs.decodePax(r.slice(0,h)),t._paxGlobal&&(t._pax=Object.assign({},t._paxGlobal,t._pax)),r.consume(h),s()},l=function(){var h=t._header.size;this._gnuLongPath=Fs.decodeLongPath(r.slice(0,h),e.filenameEncoding),r.consume(h),s()},c=function(){var h=t._header.size;this._gnuLongLinkPath=Fs.decodeLongPath(r.slice(0,h),e.filenameEncoding),r.consume(h),s()},f=function(){var h=t._offset,d;try{d=t._header=Fs.decode(r.slice(0,512),e.filenameEncoding,e.allowUnknownFormat)}catch(p){t.emit("error",p)}if(r.consume(512),!d){t._parse(512,f),n();return}if(d.type==="gnu-long-path"){t._parse(d.size,l),n();return}if(d.type==="gnu-long-link-path"){t._parse(d.size,c),n();return}if(d.type==="pax-global-header"){t._parse(d.size,a),n();return}if(d.type==="pax-header"){t._parse(d.size,o),n();return}if(t._gnuLongPath&&(d.name=t._gnuLongPath,t._gnuLongPath=null),t._gnuLongLinkPath&&(d.linkname=t._gnuLongLinkPath,t._gnuLongLinkPath=null),t._pax&&(t._header=d=xM(d,t._pax),t._pax=null),t._locked=!0,!d.size||d.type==="directory"){t._parse(512,f),t.emit("entry",d,BM(t,h),i);return}t._stream=new Za(t,h),t.emit("entry",d,t._stream,i),t._parse(d.size,s),n()};this._onheader=f,this._parse(512,f)};yA.inherits(Dr,EA);Dr.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.emit("close"))};Dr.prototype._parse=function(e,t){this._destroyed||(this._offset+=e,this._missing=e,t===this._onheader&&(this._partial=!1),this._onparse=t)};Dr.prototype._continue=function(){if(!this._destroyed){var e=this._cb;this._cb=FA,this._overflow?this._write(this._overflow,void 0,e):e()}};Dr.prototype._write=function(e,t,r){if(!this._destroyed){var n=this._stream,i=this._buffer,s=this._missing;if(e.length&&(this._partial=!0),e.length<s)return this._missing-=e.length,this._overflow=null,n?n.write(e,r):(i.append(e),r());this._cb=r,this._missing=0;var u=null;e.length>s&&(u=e.slice(s),e=e.slice(0,s)),n?n.end(e):i.append(e),this._overflow=u,this._onparse()}};Dr.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()};CA.exports=Dr});var bA=Y((RK,wA)=>{"use strict";_();wA.exports=ye("fs").constants||ye("constants")});var xA=Y((BK,BA)=>{"use strict";_();var di=bA(),SA=mo(),to=ht(),kM=Buffer.alloc,RA=ci().Readable,pi=ci().Writable,PM=ye("string_decoder").StringDecoder,eo=Eh(),OM=parseInt("755",8),IM=parseInt("644",8),TA=kM(1024),Fh=function(){},vh=function(e,t){t&=511,t&&e.push(TA.slice(0,512-t))};function LM(e){switch(e&di.S_IFMT){case di.S_IFBLK:return"block-device";case di.S_IFCHR:return"character-device";case di.S_IFDIR:return"directory";case di.S_IFIFO:return"fifo";case di.S_IFLNK:return"symlink"}return"file"}var ro=function(e){pi.call(this),this.written=0,this._to=e,this._destroyed=!1};to(ro,pi);ro.prototype._write=function(e,t,r){if(this.written+=e.length,this._to.push(e))return r();this._to._drain=r};ro.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var no=function(){pi.call(this),this.linkname="",this._decoder=new PM("utf-8"),this._destroyed=!1};to(no,pi);no.prototype._write=function(e,t,r){this.linkname+=this._decoder.write(e),r()};no.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var Cs=function(){pi.call(this),this._destroyed=!1};to(Cs,pi);Cs.prototype._write=function(e,t,r){r(new Error("No body allowed for this entry"))};Cs.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var Zt=function(e){if(!(this instanceof Zt))return new Zt(e);RA.call(this,e),this._drain=Fh,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};to(Zt,RA);Zt.prototype.entry=function(e,t,r){if(this._stream)throw new Error("already piping an entry");if(!(this._finalized||this._destroyed)){typeof t=="function"&&(r=t,t=null),r||(r=Fh);var n=this;if((!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=LM(e.mode)),e.mode||(e.mode=e.type==="directory"?OM:IM),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof t=="string"&&(t=Buffer.from(t)),Buffer.isBuffer(t)){e.size=t.length,this._encode(e);var i=this.push(t);return vh(n,e.size),i?process.nextTick(r):this._drain=r,new Cs}if(e.type==="symlink"&&!e.linkname){var s=new no;return SA(s,function(a){if(a)return n.destroy(),r(a);e.linkname=s.linkname,n._encode(e),r()}),s}if(this._encode(e),e.type!=="file"&&e.type!=="contiguous-file")return process.nextTick(r),new Cs;var u=new ro(this);return this._stream=u,SA(u,function(a){if(n._stream=null,a)return n.destroy(),r(a);if(u.written!==e.size)return n.destroy(),r(new Error("size mismatch"));vh(n,e.size),n._finalizing&&n.finalize(),r()}),u}};Zt.prototype.finalize=function(){if(this._stream){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(TA),this.push(null))};Zt.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())};Zt.prototype._encode=function(e){if(!e.pax){var t=eo.encode(e);if(t){this.push(t);return}}this._encodePax(e)};Zt.prototype._encodePax=function(e){var t=eo.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(eo.encode(r)),this.push(t),vh(this,t.length),r.size=e.size,r.type=e.type,this.push(eo.encode(r))};Zt.prototype._read=function(e){var t=this._drain;this._drain=Fh,t()};BA.exports=Zt});var kA=Y(Ch=>{"use strict";_();Ch.extract=AA();Ch.pack=xA()});var LA=Y((OK,IA)=>{"use strict";_();var io=ye("path"),PA=ye("fs"),OA=parseInt("0777",8);IA.exports=Di.mkdirp=Di.mkdirP=Di;function Di(e,t,r,n){typeof t=="function"?(r=t,t={}):(!t||typeof t!="object")&&(t={mode:t});var i=t.mode,s=t.fs||PA;i===void 0&&(i=OA&~process.umask()),n||(n=null);var u=r||function(){};e=io.resolve(e),s.mkdir(e,i,function(a){if(!a)return n=n||e,u(null,n);a.code==="ENOENT"?Di(io.dirname(e),t,function(o,l){o?u(o,l):Di(e,t,u,l)}):s.stat(e,function(o,l){o||!l.isDirectory()?u(a,n):u(null,n)})})}Di.sync=function e(t,r,n){(!r||typeof r!="object")&&(r={mode:r});var i=r.mode,s=r.fs||PA;i===void 0&&(i=OA&~process.umask()),n||(n=null),t=io.resolve(t);try{s.mkdirSync(t,i),n=n||t}catch(a){switch(a.code){case"ENOENT":n=e(io.dirname(t),r,n),e(t,r,n);break;default:var u;try{u=s.statSync(t)}catch{throw a}if(!u.isDirectory())throw a;break}}return n}});var WA=Y(bh=>{"use strict";_();var NM=oC(),jA=kA(),$A=uw(),MM=LA(),HA=ye("fs"),tt=ye("path"),jM=ye("os"),As=jM.platform()==="win32",ws=function(){},wh=function(e){return e},Ah=As?function(e){return e.replace(/\\/g,"/").replace(/[:?<>|]/g,"_")}:wh,$M=function(e,t,r,n,i,s){var u=i||["."];return function(o){if(!u.length)return o();var l=u.shift(),c=tt.join(r,l);t.call(e,c,function(f,h){if(f)return o(f);if(!h.isDirectory())return o(null,l,h);e.readdir(c,function(d,p){if(d)return o(d);s&&p.sort();for(var D=0;D<p.length;D++)n(tt.join(r,l,p[D]))||u.push(tt.join(l,p[D]));o(null,l,h)})})}},qA=function(e,t){return function(r){r.name=r.name.split("/").slice(t).join("/");var n=r.linkname;return n&&(r.type==="link"||tt.isAbsolute(n))&&(r.linkname=n.split("/").slice(t).join("/")),e(r)}};bh.pack=function(e,t){e||(e="."),t||(t={});var r=t.fs||HA,n=t.ignore||t.filter||ws,i=t.map||ws,s=t.mapStream||wh,u=$M(r,t.dereference?r.stat:r.lstat,e,n,t.entries,t.sort),a=t.strict!==!1,o=typeof t.umask=="number"?~t.umask:~UA(),l=typeof t.dmode=="number"?t.dmode:0,c=typeof t.fmode=="number"?t.fmode:0,f=t.pack||jA.pack(),h=t.finish||ws;t.strip&&(i=qA(i,t.strip)),t.readable&&(l|=parseInt(555,8),c|=parseInt(444,8)),t.writable&&(l|=parseInt(333,8),c|=parseInt(222,8));var d=function(w,y){r.readlink(tt.join(e,w),function(m,g){if(m)return f.destroy(m);y.linkname=Ah(g),f.entry(y,D)})},p=function(w,y,m){if(w)return f.destroy(w);if(!y)return t.finalize!==!1&&f.finalize(),h(f);if(m.isSocket())return D();var g={name:Ah(y),mode:(m.mode|(m.isDirectory()?l:c))&o,mtime:m.mtime,size:m.size,type:"file",uid:m.uid,gid:m.gid};if(m.isDirectory())return g.size=0,g.type="directory",g=i(g)||g,f.entry(g,D);if(m.isSymbolicLink())return g.size=0,g.type="symlink",g=i(g)||g,d(y,g);if(g=i(g)||g,!m.isFile())return a?f.destroy(new Error("unsupported type for "+y)):D();var C=f.entry(g,D);if(C){var E=s(r.createReadStream(tt.join(e,y),{start:0,end:g.size>0?g.size-1:g.size}),g);E.on("error",function(T){C.destroy(T)}),$A(E,C)}},D=function(w){if(w)return f.destroy(w);u(p)};return D(),f};var HM=function(e){return e.length?e[e.length-1]:null},qM=function(){return process.getuid?process.getuid():-1},UA=function(){return process.umask?process.umask():0};bh.extract=function(e,t){e||(e="."),t||(t={});var r=t.fs||HA,n=t.ignore||t.filter||ws,i=t.map||ws,s=t.mapStream||wh,u=t.chown!==!1&&!As&&qM()===0,a=t.extract||jA.extract(),o=[],l=new Date,c=typeof t.umask=="number"?~t.umask:~UA(),f=typeof t.dmode=="number"?t.dmode:0,h=typeof t.fmode=="number"?t.fmode:0,d=t.strict!==!1;t.strip&&(i=qA(i,t.strip)),t.readable&&(f|=parseInt(555,8),h|=parseInt(444,8)),t.writable&&(f|=parseInt(333,8),h|=parseInt(222,8));var p=function(y,m){for(var g;(g=HM(o))&&y.slice(0,g[0].length)!==g[0];)o.pop();if(!g)return m();r.utimes(g[0],l,g[1],m)},D=function(y,m,g){if(t.utimes===!1)return g();if(m.type==="directory")return r.utimes(y,l,m.mtime,g);if(m.type==="symlink")return p(y,g);r.utimes(y,l,m.mtime,function(C){if(C)return g(C);p(y,g)})},w=function(y,m,g){var C=m.type==="symlink",E=C?r.lchmod:r.chmod,T=C?r.lchown:r.chown;if(!E)return g();var P=(m.mode|(m.type==="directory"?f:h))&c;T&&u?T.call(r,y,m.uid,m.gid,b):b(null);function b(B){if(B)return g(B);if(!E)return g();E.call(r,y,P,g)}};return a.on("entry",function(y,m,g){y=i(y)||y,y.name=Ah(y.name);var C=tt.join(e,tt.join("/",y.name));if(n(C,y))return m.resume(),g();var E=function(O){if(O)return g(O);D(C,y,function(A){if(A)return g(A);if(As)return g();w(C,y,g)})},T=function(){if(As)return g();r.unlink(C,function(){var O=tt.resolve(tt.dirname(C),y.linkname);if(!MA(O,e))return g(new Error(C+" is not a valid symlink"));r.symlink(y.linkname,C,E)})},P=function(){if(As)return g();r.unlink(C,function(){var O=tt.join(e,tt.join("/",y.linkname));r.realpath(O,function(A,S){if(A||!MA(S,e))return g(new Error(C+" is not a valid hardlink"));r.link(S,C,function(v){if(v&&v.code==="EPERM"&&t.hardlinkAsFilesFallback)return m=r.createReadStream(O),b();E(v)})})})},b=function(){var O=r.createWriteStream(C),A=s(m,y);O.on("error",function(S){A.destroy(S)}),$A(A,O,function(S){if(S)return g(S);O.on("close",E)})};if(y.type==="directory")return o.push([C,y.mtime]),NA(C,{fs:r,own:u,uid:y.uid,gid:y.gid},E);var B=tt.dirname(C);GA(r,B,tt.join(e,"."),function(O,A){if(O)return g(O);if(!A)return g(new Error(B+" is not a valid path"));NA(B,{fs:r,own:u,uid:y.uid,gid:y.gid},function(S){if(S)return g(S);switch(y.type){case"file":return b();case"link":return P();case"symlink":return T()}if(d)return g(new Error("unsupported type for "+C+" ("+y.type+")"));m.resume(),g()})})}),t.finish&&a.on("finish",t.finish),a};function GA(e,t,r,n){if(t===r)return n(null,!0);e.lstat(t,function(i,s){if(i&&i.code!=="ENOENT")return n(i);if(i||s.isDirectory())return GA(e,tt.join(t,".."),r,n);n(null,!1)})}function NA(e,t,r){MM(e,{fs:t.fs},function(n,i){!n&&i&&t.own?NM(i,t.uid,t.gid,r):r(n)})}function MA(e,t){return t=tt.resolve(t),t===e||e.startsWith(t+tt.sep)}});_();import{join as JM}from"path";import{tmpdir as XM}from"os";_();_();_();_();var Ao=bt(Yd(),1);function zd(e){let t=e.replace(/\r\n$/g,`
|
|
582
|
+
`);return Ao.parse(t)}async function Kd(e,t,r){let n=r?.from&&r.from!=="."?r.from:Rs(),i=await Ns(t,{cwd:n,type:"file"});if(!i){ft({body:"Environment file not found."});return}let u=zd(await Pe(i)).environments;if(!u){ft({body:["No environments found in",{command:i},{char:"."}]});return}let a=u[e];return a||ft({body:["Environment",{command:e},"not found."]}),await kh(()=>({environmentFlags:JSON.stringify(a)})),a}_();_();var wo;function Jd(){return wo||(wo={currentCommandId:""}),wo}function Xd(){return Jd().currentCommandId}function Qd(e){Jd().currentCommandId=e}var Ow="https://cdn.shopify.com/static/cli/notifications.json",Zd="Cache is empty",Iw=["notifications:list","notifications:generate","init","app:init","theme:init","hydrogen:init","cache:clear"];function Lw(){return process.env.SHOPIFY_CLI_NOTIFICATIONS_URL??Ow}var Nw=Ge.object({id:Ge.string(),message:Ge.string(),type:Ge.enum(["info","warning","error"]),frequency:Ge.enum(["always","once","once_a_day","once_a_week"]),ownerChannel:Ge.string(),cta:Ge.object({label:Ge.string(),url:Ge.string().url()}).optional(),title:Ge.string().optional(),minVersion:Ge.string().optional(),maxVersion:Ge.string().optional(),minDate:Ge.string().optional(),maxDate:Ge.string().optional(),commands:Ge.array(Ge.string()).optional(),surface:Ge.string().optional()}),Mw=Ge.object({notifications:Ge.array(Nw)});async function ep(e,t=process.env){try{let r=Xd();if(jw(r,t)||Kh(t))return;let n=await Hw(),i=qw(n.notifications,r,e);Te(`Notifications to show: ${i.length}`),await $w(i)}catch(r){if(r.message===Zd){Te("Notifications to show: 0 (Cache is empty)");return}if(r.message==="abort")throw new jh;let n=`Error showing notifications: ${r.message}`;Te(n);let{sendErrorToBugsnag:i}=await import("./error-handler-XM4EMAFK.js");await i(n,"unexpected_error")}}function jw(e,t=process.env){return mi(t.CI)||mi(t.SHOPIFY_UNIT_TEST)||Iw.includes(e)}async function $w(e){e.slice(0,2).forEach(t=>{let r={headline:t.title,body:t.message.replaceAll("\\n",`
|
|
583
|
+
`),link:t.cta};switch(t.type){case"info":{Ft(r);break}case"warning":{ft(r);break}case"error":throw Nh(r),new Error("abort")}ld(`notification-${t.id}`,new Date().getTime().toString())})}async function Hw(){let e=`notifications-${Lw()}`,t=co(e)?.value;if(!t)throw new Error(Zd);let r=JSON.parse(t);return Mw.parse(r)}function qw(e,t,r,n=new Date(new Date().setUTCHours(0,0,0,0)),i=js){return e.filter(s=>Uw(s,i)).filter(s=>Gw(s,n)).filter(s=>Ww(s,t)).filter(s=>Vw(s,t,r)).filter(s=>Yw(s))}function Uw(e,t){let r=!e.minVersion||po(t,`>=${e.minVersion}`),n=!e.maxVersion||po(t,`<=${e.maxVersion}`);return r&&n}function Gw(e,t){let r=!e.minDate||new Date(e.minDate)<=t,n=!e.maxDate||new Date(e.maxDate)>=t;return r&&n}function Ww(e,t){return t===""?!0:!e.commands||e.commands.includes(t)}function Vw(e,t,r){let n=t.split(":")[0]??"all",i=e.surface??"all";return r?r.includes(i):i===n||i==="all"}function Yw(e){if(!e.frequency)return!0;let t=`notification-${e.id}`,r=co(t)?.value;if(!r)return!0;switch(e.frequency){case"always":return!0;case"once":return!1;case"once_a_day":return new Date().getTime()-Number(r)>24*3600*1e3;case"once_a_week":return new Date().getTime()-Number(r)>168*3600*1e3}}var Xs=bt(ao(),1),Js=class extends Xs.Command{static descriptionWithoutMarkdown(){return(this.descriptionWithMarkdown??"").replace(/(\[)(.*?)(])(\()(.*?)(\))/gm,'"$2" ($5)')}static analyticsNameOverride(){}static analyticsStopCommand(){}async catch(t){return t.skipOclifErrorHandling=!0,await Dd(t,this.config),Xs.Errors.handle(t)}async init(){return this.exitWithTimestampWhenEnvVariablePresent(),Qd(this.id??""),Vh()||await md(this.config),this.showNpmFlagWarning(),await ep(),super.init()}showNpmFlagWarning(){let t=this.constructor;Object.keys(t.flags||{}).map(i=>`npm_config_${Lh(i).replace(/^no_/,"")}`).some(i=>process.env[i]!==void 0)&&ft({body:["NPM scripts require an extra",{command:"--"},"separator to pass the flags. Example:",{command:"npm run dev -- --reset"}]})}exitWithTimestampWhenEnvVariablePresent(){mi(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN)&&(Os(`
|
|
584
584
|
SHOPIFY_CLI_TIMESTAMP_START
|
|
585
585
|
{ "timestamp": ${Date.now()} }
|
|
586
586
|
SHOPIFY_CLI_TIMESTAMP_END
|
|
587
|
-
`),process.exit(0))}async parse(t,r){let n=await super.parse(t,r);return n=await this.resultWithEnvironment(n,t,r),await
|
|
587
|
+
`),process.exit(0))}async parse(t,r){let n=await super.parse(t,r);return n=await this.resultWithEnvironment(n,t,r),await zw(n.flags),{...n,argv:n.argv}}environmentsFilename(){}failMissingNonTTYFlags(t,r){$h()||r.forEach(n=>{if(!(n in t))throw new ne(at`Flag not specified:
|
|
588
588
|
|
|
589
589
|
${Ke.cyan(n)}
|
|
590
590
|
|
|
591
|
-
This flag is required in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the option in the command, or run the command in an interactive environment such as your local terminal.")})}async resultWithEnvironment(t,r,n){let i=t.flags,s=this.environmentsFilename();if(!i.environment?.length||!s||i.environment.length>1)return t;let u=await Kd(i.environment[0],s,{from:i.path});if(!u)return t;let a=await super.parse(Jw(r),n),o=await super.parse(r,[...n??this.argv,...Xw(u,r,a)]);return Kw(a.flags,o.flags,i.environment[0],u),o}};Js.baseFlags={};async function
|
|
591
|
+
This flag is required in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the option in the command, or run the command in an interactive environment such as your local terminal.")})}async resultWithEnvironment(t,r,n){let i=t.flags,s=this.environmentsFilename();if(!i.environment?.length||!s||i.environment.length>1)return t;let u=await Kd(i.environment[0],s,{from:i.path});if(!u)return t;let a=await super.parse(Jw(r),n),o=await super.parse(r,[...n??this.argv,...Xw(u,r,a)]);return Kw(a.flags,o.flags,i.environment[0],u),o}};Js.baseFlags={};async function zw(e){await Ts(()=>({cmd_all_verbose:e.verbose,cmd_all_path_override:e.path!==void 0,cmd_all_path_override_hash:e.path===void 0?void 0:zh(e.path)}))}function Kw(e,t,r,n){let i={};for(let[u,a]of Object.entries(t)){let o=Object.prototype.hasOwnProperty.call(e,u),l=Object.prototype.hasOwnProperty.call(n,u);if(!o&&l){let c=u==="password"?`********${a.substr(-4)}`:a;i[u]=c}}if(Object.keys(i).length===0)return;let s=Object.entries(i).map(([u,a])=>`${u}: ${a}`);Ft({headline:["Using applicable flags from",{userInput:r},"environment:"],body:[{list:{items:s}}]})}function Jw(e){return e?.flags?{...e,flags:Object.fromEntries(Object.entries(e.flags).map(([t,r])=>{let n={...r};return delete n.default,[t,n]}))}:e}function Xw(e,t,r){let n=[];for(let[i,s]of Object.entries(e)){let u=t?.flags&&Object.prototype.hasOwnProperty.call(t.flags,i),a=r.flags&&Object.prototype.hasOwnProperty.call(r.flags,i);if(u&&!a)if(typeof s=="boolean")if(s)n.push(`--${i}`);else throw new ne(at`Environments can only specify true for boolean flags. Attempted to set ${Ke.yellow(i)} to false.`);else Array.isArray(s)?s.forEach(o=>n.push(`--${i}`,`${o}`)):n.push(`--${i}`,`${s}`)}return n}var tp=Js;var Xr=bt(ao(),1);_();var Ne=bt(ao(),1);_();_();_();import{fileURLToPath as np}from"url";import{existsSync as eb}from"fs";_();import{exec as Qw}from"child_process";import{promisify as Zw}from"util";var pt=Zw(Qw);function rp(){let e=process.listeners("warning")[0];e&&(process.removeAllListeners("warning"),process.prependListener("warning",t=>{t.name!="ExperimentalWarning"&&e(t)}))}var ip=new URL("../../..",import.meta.url).pathname,Er=(()=>{try{let e=te(ze(ip),"templates","skeleton");return eb(e)}catch{return!1}})();var tb="assets/hydrogen",rb="starter",vr="routes",bo;async function nb(){if(bo??=await Ns("package.json",{cwd:np(import.meta.url),type:"file"}),!bo)throw new ne("Could not find assets directory","Please report this error.");return bo}async function Dt(e,...t){return te(ze(await nb()),process.env.SHOPIFY_UNIT_TEST?"assets":`dist/${tb}`,e??"",...t)}async function Fi(e,t){t??=await Ci();let r=new URL(`${t}/app${e?`/${e}`:""}`,import.meta.url);return r.protocol==="file:"?np(r):r.toString()}function Ci(e=!!process.env.SHOPIFY_UNIT_TEST){return e?xn():Dt(rb)}function xn(){if(!Er)throw new ne("Trying to use skeleton source dir outside of Hydrogen monorepo.","Please report this error.");return te(ze(ip),"templates","skeleton")}function ib(){return te(xn(),"node_modules")}async function sp(){if(Er)return ib();let{stdout:e}=await pt("npm root");return e.trim()}var up=["tailwind","vanilla-extract","css-modules","postcss"];async function ap(e,t,r,n=(i,s)=>i){let i=await Dt(e);return Promise.all(Object.entries(t).map(async([s,u])=>{let a=await Pe(te(i,s));await Oe(te(r,u),n(a,s))}))}async function op(e,t,r){let n=Object.values(e).map(s=>ge(te(t,s)).then(u=>u?s:null)),i=(await Promise.all(n)).filter(Boolean);return!(i.length>0&&!r&&!await gr({message:`Some files already exist (${i.join(", ")}). Overwrite?`,defaultValue:!1}))}_();_();import{readdir as lO}from"fs/promises";_();_();import{createRequire as D1}from"module";import{fileURLToPath as m1}from"url";import{dirname as g1}from"path";import Pr from"path";import*as VD from"path";import*as ml from"url";import zD from"path";import*as KD from"path";import*as Cu from"fs/promises";import*as JD from"path";import x2 from"process";import*as qn from"path";import N2 from"process";import gl from"path";import{pathToFileURL as J2}from"url";import GR from"fs/promises";import tT from"path";import{pathToFileURL as rT}from"url";import fm from"assert";import{statSync as hm,realpathSync as nT}from"fs";import cn from"process";import{fileURLToPath as we,pathToFileURL as wl}from"url";import dm from"path";import{builtinModules as bl}from"module";import{fileURLToPath as iT}from"url";import sT from"fs";import uT from"path";import{fileURLToPath as rl}from"url";import aT from"v8";import fn from"assert";import{format as oT,inspect as nl}from"util";import{createRequire as tB}from"module";var ko={};nw(ko,{builders:()=>qt,default:()=>hp,printer:()=>ru,utils:()=>nu});_();var sb=Object.defineProperty,ub=(e,t)=>{for(var r in t)sb(e,r,{get:t[r],enumerable:!0})},hp={};ub(hp,{builders:()=>qt,printer:()=>ru,utils:()=>nu});var ab=1,dp=(e,t)=>(r,n,...i)=>r|ab&&n==null?void 0:(t.call(n)??n[e]).apply(n,i);function ob(e){return this[e<0?this.length+e:e]}var lb=dp("at",function(){if(Array.isArray(this)||typeof this=="string")return ob}),er=lb,cb=()=>{},eu=cb,tn="string",tr="array",rn="cursor",Fr="indent",Cr="align",Ar="trim",Rt="group",wr="fill",Ot="if-break",br="indent-if-break",Sr="line-suffix",Rr="line-suffix-boundary",ot="line",Tr="label",Ht="break-parent",pp=new Set([rn,Fr,Cr,Ar,Rt,wr,Ot,br,Sr,Rr,ot,Tr,Ht]);function fb(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===`
|
|
592
592
|
`);)t--;return t<e.length?e.slice(0,t):e}function hb(e){if(typeof e=="string")return tn;if(Array.isArray(e))return tr;if(!e)return;let{type:t}=e;if(pp.has(t))return t}var nn=hb,db=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function pb(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
593
593
|
Expected it to be 'string' or 'object'.`;if(nn(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=db([...pp].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
|
|
594
594
|
Expected it to be ${n}.`}var Db=class extends Error{name="InvalidDocError";constructor(e){super(pb(e)),this.doc=e}},kn=Db,lp={};function mb(e,t,r,n){let i=[e];for(;i.length>0;){let s=i.pop();if(s===lp){r(i.pop());continue}r&&i.push(s,lp);let u=nn(s);if(!u)throw new kn(s);if(t?.(s)!==!1)switch(u){case tr:case wr:{let a=u===tr?s:s.parts;for(let o=a.length,l=o-1;l>=0;--l)i.push(a[l]);break}case Ot:i.push(s.flatContents,s.breakContents);break;case Rt:if(n&&s.expandedStates)for(let a=s.expandedStates.length,o=a-1;o>=0;--o)i.push(s.expandedStates[o]);else i.push(s.contents);break;case Cr:case Fr:case br:case Tr:case Sr:i.push(s.contents);break;case tn:case rn:case Ar:case Rr:case ot:case Ht:break;default:throw new kn(s)}}}var Ro=mb;function tu(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);let u=i(s);return r.set(s,u),u}function i(s){switch(nn(s)){case tr:return t(s.map(n));case wr:return t({...s,parts:s.parts.map(n)});case Ot:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case Rt:{let{expandedStates:u,contents:a}=s;return u?(u=u.map(n),a=u[0]):a=n(a),t({...s,contents:a,expandedStates:u})}case Cr:case Fr:case br:case Tr:case Sr:return t({...s,contents:n(s.contents)});case tn:case rn:case Ar:case Rr:case ot:case Ht:return t(s);default:throw new kn(s)}}}function To(e,t,r){let n=r,i=!1;function s(u){if(i)return!1;let a=t(u);a!==void 0&&(i=!0,n=a)}return Ro(e,s),n}function gb(e){if(e.type===Rt&&e.break||e.type===ot&&e.hard||e.type===Ht)return!0}function _b(e){return To(e,gb,!1)}function cp(e){if(e.length>0){let t=er(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function yb(e){let t=new Set,r=[];function n(s){if(s.type===Ht&&cp(r),s.type===Rt){if(r.push(s),t.has(s))return!1;t.add(s)}}function i(s){s.type===Rt&&r.pop().break&&cp(r)}Ro(e,n,i,!0)}function Eb(e){return e.type===ot&&!e.hard?e.soft?"":" ":e.type===Ot?e.flatContents:e}function vb(e){return tu(e,Eb)}function fp(e){for(e=[...e];e.length>=2&&er(0,e,-2).type===ot&&er(0,e,-1).type===Ht;)e.length-=2;if(e.length>0){let t=Ai(er(0,e,-1));e[e.length-1]=t}return e}function Ai(e){switch(nn(e)){case Fr:case br:case Rt:case Sr:case Tr:{let t=Ai(e.contents);return{...e,contents:t}}case Ot:return{...e,breakContents:Ai(e.breakContents),flatContents:Ai(e.flatContents)};case wr:return{...e,parts:fp(e.parts)};case tr:return fp(e);case tn:return fb(e);case Cr:case rn:case Ar:case Rr:case ot:case Ht:break;default:throw new kn(e)}return e}function Fb(e){return Ai(Ab(e))}function Cb(e){switch(nn(e)){case wr:if(e.parts.every(t=>t===""))return"";break;case Rt:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Rt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Cr:case Fr:case br:case Sr:if(!e.contents)return"";break;case Ot:if(!e.flatContents&&!e.breakContents)return"";break;case tr:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof er(0,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case tn:case rn:case Ar:case Rr:case ot:case Tr:case Ht:break;default:throw new kn(e)}return e}function Ab(e){return tu(e,t=>Cb(t))}function wb(e,t=yp){return tu(e,r=>typeof r=="string"?gp(t,r.split(`
|
|
595
|
-
`)):r)}function bb(e){if(e.type===ot)return!0}function Sb(e){return To(e,bb,!1)}var $t=eu,Dp=eu,Rb=eu,Tb=eu;function Zs(e){return $t(e),{type:Fr,contents:e}}function Pn(e,t){return Tb(e),$t(t),{type:Cr,contents:t,n:e}}function Bb(e){return Pn(Number.NEGATIVE_INFINITY,e)}function xb(e){return Pn({type:"root"},e)}function kb(e){return Pn(-1,e)}function Pb(e,t,r){$t(e);let n=e;if(t>0){for(let i=0;i<Math.floor(t/r);++i)n=Zs(n);n=Pn(t%r,n),n=Pn(Number.NEGATIVE_INFINITY,n)}return n}var Bo={type:Ht},Ob={type:rn};function Ib(e){return Rb(e),{type:wr,parts:e}}function mp(e,t={}){return $t(e),Dp(t.expandedStates,!0),{type:Rt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Lb(e,t){return mp(e[0],{...t,expandedStates:e})}function Nb(e,t="",r={}){return $t(e),t!==""&&$t(t),{type:Ot,breakContents:e,flatContents:t,groupId:r.groupId}}function Mb(e,t){return $t(e),{type:br,contents:e,groupId:t.groupId,negate:t.negate}}function gp(e,t){$t(e),Dp(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function jb(e,t){return $t(t),e?{type:Tr,label:e,contents:t}:t}var $b={type:ot},Hb={type:ot,soft:!0},xo={type:ot,hard:!0},qb=[xo,Bo],_p={type:ot,hard:!0,literal:!0},yp=[_p,Bo];function Ub(e){return $t(e),{type:Sr,contents:e}}var Gb={type:Rr},Wb={type:Ar},Vb=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},
|
|
595
|
+
`)):r)}function bb(e){if(e.type===ot)return!0}function Sb(e){return To(e,bb,!1)}var $t=eu,Dp=eu,Rb=eu,Tb=eu;function Zs(e){return $t(e),{type:Fr,contents:e}}function Pn(e,t){return Tb(e),$t(t),{type:Cr,contents:t,n:e}}function Bb(e){return Pn(Number.NEGATIVE_INFINITY,e)}function xb(e){return Pn({type:"root"},e)}function kb(e){return Pn(-1,e)}function Pb(e,t,r){$t(e);let n=e;if(t>0){for(let i=0;i<Math.floor(t/r);++i)n=Zs(n);n=Pn(t%r,n),n=Pn(Number.NEGATIVE_INFINITY,n)}return n}var Bo={type:Ht},Ob={type:rn};function Ib(e){return Rb(e),{type:wr,parts:e}}function mp(e,t={}){return $t(e),Dp(t.expandedStates,!0),{type:Rt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Lb(e,t){return mp(e[0],{...t,expandedStates:e})}function Nb(e,t="",r={}){return $t(e),t!==""&&$t(t),{type:Ot,breakContents:e,flatContents:t,groupId:r.groupId}}function Mb(e,t){return $t(e),{type:br,contents:e,groupId:t.groupId,negate:t.negate}}function gp(e,t){$t(e),Dp(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function jb(e,t){return $t(t),e?{type:Tr,label:e,contents:t}:t}var $b={type:ot},Hb={type:ot,soft:!0},xo={type:ot,hard:!0},qb=[xo,Bo],_p={type:ot,hard:!0,literal:!0},yp=[_p,Bo];function Ub(e){return $t(e),{type:Sr,contents:e}}var Gb={type:Rr},Wb={type:Ar},Vb=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},Yb=dp("replaceAll",function(){if(typeof this=="string")return Vb}),zb=Yb,Kb="cr",Jb="crlf",Xb="\r",Qb=`\r
|
|
596
596
|
`,Zb=`
|
|
597
597
|
`,e1=Zb;function t1(e){return e===Kb?Xb:e===Jb?Qb:e1}var r1=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function n1(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function i1(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var s1="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07",u1=/[^\x20-\x7F]/u,a1=new Set(s1);function o1(e){if(!e)return 0;if(!u1.test(e))return e.length;e=e.replace(r1(),r=>a1.has(r)?" ":" ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=n1(n)||i1(n)?2:1)}return t}var Ep=o1,vp=0,Fp=1,Cp=2,Ap=3,l1={type:vp},c1={type:Fp},wp={value:"",length:0,queue:[],get root(){return wp}};function bp(e,t,r){let n=t.type===Fp?e.queue.slice(0,-1):[...e.queue,t],i="",s=0,u=0,a=0;for(let p of n)switch(p.type){case vp:c(),r.useTabs?o(1):l(r.tabWidth);break;case Ap:{let{string:D}=p;c(),i+=D,s+=D.length;break}case Cp:{let{width:D}=p;u+=1,a+=D;break}default:throw new Error(`Unexpected indent comment '${p.type}'.`)}return h(),{...e,value:i,length:s,queue:n};function o(p){i+=" ".repeat(p),s+=r.tabWidth*p}function l(p){i+=" ".repeat(p),s+=p}function c(){r.useTabs?f():h()}function f(){u>0&&o(u),d()}function h(){a>0&&l(a),d()}function d(){u=0,a=0}}function f1(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof t=="number"?t<0?n=c1:n={type:Cp,width:t}:n={type:Ap,string:t},bp(e,n,r)}function h1(e,t){return bp(e,l1,t)}function d1(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];if(n===" "||n===" ")t++;else break}return t}function Sp(e){let t=d1(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var mt=Symbol("MODE_BREAK"),jt=Symbol("MODE_FLAT"),So=Symbol("DOC_FILL_PRINTED_LENGTH");function Qs(e,t,r,n,i,s){if(r===Number.POSITIVE_INFINITY)return!0;let u=t.length,a=!1,o=[e],l="";for(;r>=0;){if(o.length===0){if(u===0)return!0;o.push(t[--u]);continue}let{mode:c,doc:f}=o.pop(),h=nn(f);switch(h){case tn:f&&(a&&(l+=" ",r-=1,a=!1),l+=f,r-=Ep(f));break;case tr:case wr:{let d=h===tr?f:f.parts,p=f[So]??0;for(let D=d.length-1;D>=p;D--)o.push({mode:c,doc:d[D]});break}case Fr:case Cr:case br:case Tr:o.push({mode:c,doc:f.contents});break;case Ar:{let{text:d,count:p}=Sp(l);l=d,r+=p;break}case Rt:{if(s&&f.break)return!1;let d=f.break?mt:c,p=f.expandedStates&&d===mt?er(0,f.expandedStates,-1):f.contents;o.push({mode:d,doc:p});break}case Ot:{let p=(f.groupId?i[f.groupId]||jt:c)===mt?f.breakContents:f.flatContents;p&&o.push({mode:c,doc:p});break}case ot:if(c===mt||f.hard)return!0;f.soft||(a=!0);break;case Sr:n=!0;break;case Rr:if(n)return!1;break}}return!1}function p1(e,t){let r=Object.create(null),n=t.printWidth,i=t1(t.endOfLine),s=0,u=[{indent:wp,mode:mt,doc:e}],a="",o=!1,l=[],c=[],f=[],h=[],d=0;for(yb(e);u.length>0;){let{indent:m,mode:g,doc:C}=u.pop();switch(nn(C)){case tn:{let E=i!==`
|
|
598
|
-
`?
|
|
599
|
-
`,i):C;E&&(a+=E,u.length>0&&(s+=Ep(E)));break}case tr:for(let E=C.length-1;E>=0;E--)u.push({indent:m,mode:g,doc:C[E]});break;case rn:if(c.length>=2)throw new Error("There are too many 'cursor' in doc.");c.push(d+a.length);break;case Fr:u.push({indent:h1(m,t),mode:g,doc:C.contents});break;case Cr:u.push({indent:f1(m,C.n,t),mode:g,doc:C.contents});break;case Ar:y();break;case Rt:switch(g){case jt:if(!o){u.push({indent:m,mode:C.break?mt:jt,doc:C.contents});break}case mt:{o=!1;let E={indent:m,mode:jt,doc:C.contents},T=n-s,P=l.length>0;if(!C.break&&Qs(E,u,T,P,r))u.push(E);else if(C.expandedStates){let b=er(0,C.expandedStates,-1);if(C.break){u.push({indent:m,mode:mt,doc:b});break}else for(let B=1;B<C.expandedStates.length+1;B++)if(B>=C.expandedStates.length){u.push({indent:m,mode:mt,doc:b});break}else{let O=C.expandedStates[B],A={indent:m,mode:jt,doc:O};if(Qs(A,u,T,P,r)){u.push(A);break}}}else u.push({indent:m,mode:mt,doc:C.contents});break}}C.id&&(r[C.id]=er(0,u,-1).mode);break;case wr:{let E=n-s,T=C[So]??0,{parts:P}=C,b=P.length-T;if(b===0)break;let B=P[T+0],O=P[T+1],A={indent:m,mode:jt,doc:B},S={indent:m,mode:mt,doc:B},v=Qs(A,[],E,l.length>0,r,!0);if(b===1){v?u.push(A):u.push(S);break}let F={indent:m,mode:jt,doc:O},R={indent:m,mode:mt,doc:O};if(b===2){v?u.push(F,A):u.push(R,S);break}let k=P[T+2],M={indent:m,mode:g,doc:{...C,[So]:T+2}},$=Qs({indent:m,mode:jt,doc:[B,O,k]},[],E,l.length>0,r,!0);u.push(M),$?u.push(F,A):v?u.push(R,A):u.push(R,S);break}case Ot:case br:{let E=C.groupId?r[C.groupId]:g;if(E===mt){let T=C.type===Ot?C.breakContents:C.negate?C.contents:Zs(C.contents);T&&u.push({indent:m,mode:g,doc:T})}if(E===jt){let T=C.type===Ot?C.flatContents:C.negate?Zs(C.contents):C.contents;T&&u.push({indent:m,mode:g,doc:T})}break}case Sr:l.push({indent:m,mode:g,doc:C.contents});break;case Rr:l.length>0&&u.push({indent:m,mode:g,doc:xo});break;case ot:switch(g){case jt:if(C.hard)o=!0;else{C.soft||(a+=" ",s+=1);break}case mt:if(l.length>0){u.push({indent:m,mode:g,doc:C},...l.reverse()),l.length=0;break}C.literal?(a+=i,s=0,m.root&&(m.root.value&&(a+=m.root.value),s=m.root.length)):(y(),a+=i+m.value,s=m.length);break}break;case Tr:u.push({indent:m,mode:g,doc:C.contents});break;case Ht:break;default:throw new kn(C)}u.length===0&&l.length>0&&(u.push(...l.reverse()),l.length=0)}let p=f.join("")+a,D=[...h,...c];if(D.length!==2)return{formatted:p};let w=D[0];return{formatted:p,cursorNodeStart:w,cursorNodeText:p.slice(w,er(0,D,-1))};function y(){let{text:m,count:g}=Sp(a);m&&(f.push(m),d+=m.length),a="",s-=g,c.length>0&&(h.push(...c.map(C=>Math.min(C,d))),c.length=0)}}var qt={join:gp,line:$b,softline:Hb,hardline:qb,literalline:yp,group:mp,conditionalGroup:Lb,fill:Ib,lineSuffix:Ub,lineSuffixBoundary:Gb,cursor:Ob,breakParent:Bo,ifBreak:Nb,trim:Wb,indent:Zs,indentIfBreak:Mb,align:Pn,addAlignmentToDoc:Pb,markAsRoot:xb,dedentToRoot:Bb,dedent:kb,hardlineWithoutBreakParent:xo,literallineWithoutBreakParent:_p,label:jb,concat:e=>e},ru={printDocToString:p1},nu={willBreak:_b,traverseDoc:Ro,findInDoc:To,mapDoc:tu,removeLines:vb,stripTrailingHardline:Fb,replaceEndOfLine:wb,canBreak:Sb};import{ok as vB,strictEqual as sD}from"assert";import Cx from"path";import{fileURLToPath as Sx}from"url";import FD from"path";import{pathToFileURL as CD}from"url";import cP from"path";import mu from"path";import yP from"url";var On=D1(import.meta.url),_1=m1(import.meta.url),L4=g1(_1),y1=Object.create,al=Object.defineProperty,E1=Object.getOwnPropertyDescriptor,AD=Object.getOwnPropertyNames,v1=Object.getPrototypeOf,F1=Object.prototype.hasOwnProperty,Ae=(e=>typeof On<"u"?On:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof On<"u"?On:t)[r]}):e)(function(e){if(typeof On<"u")return On.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),W=(e,t)=>function(){return t||(0,e[AD(e)[0]])((t={exports:{}}).exports,t),t.exports},Eu=(e,t)=>{for(var r in t)al(e,r,{get:t[r],enumerable:!0})},C1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of AD(t))!F1.call(e,i)&&i!==r&&al(e,i,{get:()=>t[i],enumerable:!(n=E1(t,i))||n.enumerable});return e},Lt=(e,t,r)=>(r=e!=null?y1(v1(e)):{},C1(t||!e||!e.__esModule?al(r,"default",{value:e,enumerable:!0}):r,e)),A1=W({"node_modules/fast-glob/out/utils/array.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function t(n){return n.reduce((i,s)=>[].concat(i,s),[])}e.flatten=t;function r(n,i){let s=[[]],u=0;for(let a of n)i(a)?(u++,s[u]=[]):s[u].push(a);return s}e.splitWhen=r}}),w1=W({"node_modules/fast-glob/out/utils/errno.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function t(r){return r.code==="ENOENT"}e.isEnoentCodeError=t}}),b1=W({"node_modules/fast-glob/out/utils/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new t(n,i)}e.createDirentFromStats=r}}),S1=W({"node_modules/fast-glob/out/utils/path.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPosixPathToPattern=e.convertWindowsPathToPattern=e.convertPathToPattern=e.escapePosixPath=e.escapeWindowsPath=e.escape=e.removeLeadingDotSegment=e.makeAbsolute=e.unixify=void 0;var t=Ae("os"),r=Ae("path"),n=t.platform()==="win32",i=2,s=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,u=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,a=/^\\\\([.?])/,o=/\\(?![!()+@[\]{}])/g;function l(w){return w.replace(/\\/g,"/")}e.unixify=l;function c(w,y){return r.resolve(w,y)}e.makeAbsolute=c;function f(w){if(w.charAt(0)==="."){let y=w.charAt(1);if(y==="/"||y==="\\")return w.slice(i)}return w}e.removeLeadingDotSegment=f,e.escape=n?h:d;function h(w){return w.replace(u,"\\$2")}e.escapeWindowsPath=h;function d(w){return w.replace(s,"\\$2")}e.escapePosixPath=d,e.convertPathToPattern=n?p:D;function p(w){return h(w).replace(a,"//$1").replace(o,"/")}e.convertWindowsPathToPattern=p;function D(w){return d(w)}e.convertPosixPathToPattern=D}}),R1=W({"node_modules/is-extglob/index.js"(e,t){t.exports=function(n){if(typeof n!="string"||n==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(n);){if(i[2])return!0;n=n.slice(i.index+i[0].length)}return!1}}}),T1=W({"node_modules/is-glob/index.js"(e,t){var r=R1(),n={"{":"}","(":")","[":"]"},i=function(u){if(u[0]==="!")return!0;for(var a=0,o=-2,l=-2,c=-2,f=-2,h=-2;a<u.length;){if(u[a]==="*"||u[a+1]==="?"&&/[\].+)]/.test(u[a])||l!==-1&&u[a]==="["&&u[a+1]!=="]"&&(l<a&&(l=u.indexOf("]",a)),l>a&&(h===-1||h>l||(h=u.indexOf("\\",a),h===-1||h>l)))||c!==-1&&u[a]==="{"&&u[a+1]!=="}"&&(c=u.indexOf("}",a),c>a&&(h=u.indexOf("\\",a),h===-1||h>c))||f!==-1&&u[a]==="("&&u[a+1]==="?"&&/[:!=]/.test(u[a+2])&&u[a+3]!==")"&&(f=u.indexOf(")",a),f>a&&(h=u.indexOf("\\",a),h===-1||h>f))||o!==-1&&u[a]==="("&&u[a+1]!=="|"&&(o<a&&(o=u.indexOf("|",a)),o!==-1&&u[o+1]!==")"&&(f=u.indexOf(")",o),f>o&&(h=u.indexOf("\\",o),h===-1||h>f))))return!0;if(u[a]==="\\"){var d=u[a+1];a+=2;var p=n[d];if(p){var D=u.indexOf(p,a);D!==-1&&(a=D+1)}if(u[a]==="!")return!0}else a++}return!1},s=function(u){if(u[0]==="!")return!0;for(var a=0;a<u.length;){if(/[*?{}()[\]]/.test(u[a]))return!0;if(u[a]==="\\"){var o=u[a+1];a+=2;var l=n[o];if(l){var c=u.indexOf(l,a);c!==-1&&(a=c+1)}if(u[a]==="!")return!0}else a++}return!1};t.exports=function(a,o){if(typeof a!="string"||a==="")return!1;if(r(a))return!0;var l=i;return o&&o.strict===!1&&(l=s),l(a)}}}),B1=W({"node_modules/fast-glob/node_modules/glob-parent/index.js"(e,t){"use strict";var r=T1(),n=Ae("path").posix.dirname,i=Ae("os").platform()==="win32",s="/",u=/\\/g,a=/[\{\[].*[\}\]]$/,o=/(^|[^\\])([\{\[]|\([^\)]+$)/,l=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function(f,h){var d=Object.assign({flipBackslashes:!0},h);d.flipBackslashes&&i&&f.indexOf(s)<0&&(f=f.replace(u,s)),a.test(f)&&(f+=s),f+="a";do f=n(f);while(r(f)||o.test(f));return f.replace(l,"$1")}}}),ol=W({"node_modules/braces/lib/utils.js"(e){"use strict";e.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1,e.find=(t,r)=>t.nodes.find(n=>n.type===r),e.exceedsLimit=(t,r,n=1,i)=>i===!1||!e.isInteger(t)||!e.isInteger(r)?!1:(Number(r)-Number(t))/Number(n)>=i,e.escapeNode=(t,r=0,n)=>{let i=t.nodes[r];i&&(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1,e.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1,e.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0,e.reduce=t=>t.reduce((r,n)=>(n.type==="text"&&r.push(n.value),n.type==="range"&&(n.type="text"),r),[]),e.flatten=(...t)=>{let r=[],n=i=>{for(let s=0;s<i.length;s++){let u=i[s];if(Array.isArray(u)){n(u);continue}u!==void 0&&r.push(u)}return r};return n(t),r}}}),ll=W({"node_modules/braces/lib/stringify.js"(e,t){"use strict";var r=ol();t.exports=(n,i={})=>{let s=(u,a={})=>{let o=i.escapeInvalid&&r.isInvalidBrace(a),l=u.invalid===!0&&i.escapeInvalid===!0,c="";if(u.value)return(o||l)&&r.isOpenOrClose(u)?"\\"+u.value:u.value;if(u.value)return u.value;if(u.nodes)for(let f of u.nodes)c+=s(f);return c};return s(n)}}}),x1=W({"node_modules/is-number/index.js"(e,t){"use strict";t.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}}}),k1=W({"node_modules/to-regex-range/index.js"(e,t){"use strict";var r=x1(),n=(m,g,C)=>{if(r(m)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(g===void 0||m===g)return String(m);if(r(g)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let E={relaxZeros:!0,...C};typeof E.strictZeros=="boolean"&&(E.relaxZeros=E.strictZeros===!1);let T=String(E.relaxZeros),P=String(E.shorthand),b=String(E.capture),B=String(E.wrap),O=m+":"+g+"="+T+P+b+B;if(n.cache.hasOwnProperty(O))return n.cache[O].result;let A=Math.min(m,g),S=Math.max(m,g);if(Math.abs(A-S)===1){let M=m+"|"+g;return E.capture?`(${M})`:E.wrap===!1?M:`(?:${M})`}let v=w(m)||w(g),F={min:m,max:g,a:A,b:S},R=[],k=[];if(v&&(F.isPadded=v,F.maxLen=String(F.max).length),A<0){let M=S<0?Math.abs(S):1;k=a(M,Math.abs(A),F,E),A=F.a=0}return S>=0&&(R=a(A,S,F,E)),F.negatives=k,F.positives=R,F.result=i(k,R,E),E.capture===!0?F.result=`(${F.result})`:E.wrap!==!1&&R.length+k.length>1&&(F.result=`(?:${F.result})`),n.cache[O]=F,F.result};function i(m,g,C){let E=o(m,g,"-",!1,C)||[],T=o(g,m,"",!1,C)||[],P=o(m,g,"-?",!0,C)||[];return E.concat(P).concat(T).join("|")}function s(m,g){let C=1,E=1,T=h(m,C),P=new Set([g]);for(;m<=T&&T<=g;)P.add(T),C+=1,T=h(m,C);for(T=d(g+1,E)-1;m<T&&T<=g;)P.add(T),E+=1,T=d(g+1,E)-1;return P=[...P],P.sort(c),P}function u(m,g,C){if(m===g)return{pattern:m,count:[],digits:0};let E=l(m,g),T=E.length,P="",b=0;for(let B=0;B<T;B++){let[O,A]=E[B];O===A?P+=O:O!=="0"||A!=="9"?P+=D(O,A,C):b++}return b&&(P+=C.shorthand===!0?"\\d":"[0-9]"),{pattern:P,count:[b],digits:T}}function a(m,g,C,E){let T=s(m,g),P=[],b=m,B;for(let O=0;O<T.length;O++){let A=T[O],S=u(String(b),String(A),E),v="";if(!C.isPadded&&B&&B.pattern===S.pattern){B.count.length>1&&B.count.pop(),B.count.push(S.count[0]),B.string=B.pattern+p(B.count),b=A+1;continue}C.isPadded&&(v=y(A,C,E)),S.string=v+S.pattern+p(S.count),P.push(S),b=A+1,B=S}return P}function o(m,g,C,E,T){let P=[];for(let b of m){let{string:B}=b;!E&&!f(g,"string",B)&&P.push(C+B),E&&f(g,"string",B)&&P.push(C+B)}return P}function l(m,g){let C=[];for(let E=0;E<m.length;E++)C.push([m[E],g[E]]);return C}function c(m,g){return m>g?1:g>m?-1:0}function f(m,g,C){return m.some(E=>E[g]===C)}function h(m,g){return Number(String(m).slice(0,-g)+"9".repeat(g))}function d(m,g){return m-m%Math.pow(10,g)}function p(m){let[g=0,C=""]=m;return C||g>1?`{${g+(C?","+C:"")}}`:""}function D(m,g,C){return`[${m}${g-m===1?"":"-"}${g}]`}function w(m){return/^-?(0+)\d/.test(m)}function y(m,g,C){if(!g.isPadded)return m;let E=Math.abs(g.maxLen-String(m).length),T=C.relaxZeros!==!1;switch(E){case 0:return"";case 1:return T?"0?":"0";case 2:return T?"0{0,2}":"00";default:return T?`0{0,${E}}`:`0{${E}}`}}n.cache={},n.clearCache=()=>n.cache={},t.exports=n}}),wD=W({"node_modules/fill-range/index.js"(e,t){"use strict";var r=Ae("util"),n=k1(),i=E=>E!==null&&typeof E=="object"&&!Array.isArray(E),s=E=>T=>E===!0?Number(T):String(T),u=E=>typeof E=="number"||typeof E=="string"&&E!=="",a=E=>Number.isInteger(+E),o=E=>{let T=`${E}`,P=-1;if(T[0]==="-"&&(T=T.slice(1)),T==="0")return!1;for(;T[++P]==="0";);return P>0},l=(E,T,P)=>typeof E=="string"||typeof T=="string"?!0:P.stringify===!0,c=(E,T,P)=>{if(T>0){let b=E[0]==="-"?"-":"";b&&(E=E.slice(1)),E=b+E.padStart(b?T-1:T,"0")}return P===!1?String(E):E},f=(E,T)=>{let P=E[0]==="-"?"-":"";for(P&&(E=E.slice(1),T--);E.length<T;)E="0"+E;return P?"-"+E:E},h=(E,T,P)=>{E.negatives.sort((S,v)=>S<v?-1:S>v?1:0),E.positives.sort((S,v)=>S<v?-1:S>v?1:0);let b=T.capture?"":"?:",B="",O="",A;return E.positives.length&&(B=E.positives.map(S=>f(String(S),P)).join("|")),E.negatives.length&&(O=`-(${b}${E.negatives.map(S=>f(String(S),P)).join("|")})`),B&&O?A=`${B}|${O}`:A=B||O,T.wrap?`(${b}${A})`:A},d=(E,T,P,b)=>{if(P)return n(E,T,{wrap:!1,...b});let B=String.fromCharCode(E);if(E===T)return B;let O=String.fromCharCode(T);return`[${B}-${O}]`},p=(E,T,P)=>{if(Array.isArray(E)){let b=P.wrap===!0,B=P.capture?"":"?:";return b?`(${B}${E.join("|")})`:E.join("|")}return n(E,T,P)},D=(...E)=>new RangeError("Invalid range arguments: "+r.inspect(...E)),w=(E,T,P)=>{if(P.strictRanges===!0)throw D([E,T]);return[]},y=(E,T)=>{if(T.strictRanges===!0)throw new TypeError(`Expected step "${E}" to be a number`);return[]},m=(E,T,P=1,b={})=>{let B=Number(E),O=Number(T);if(!Number.isInteger(B)||!Number.isInteger(O)){if(b.strictRanges===!0)throw D([E,T]);return[]}B===0&&(B=0),O===0&&(O=0);let A=B>O,S=String(E),v=String(T),F=String(P);P=Math.max(Math.abs(P),1);let R=o(S)||o(v)||o(F),k=R?Math.max(S.length,v.length,F.length):0,M=R===!1&&l(E,T,b)===!1,G=b.transform||s(M);if(b.toRegex&&P===1)return d(f(E,k),f(T,k),!0,b);let $={negatives:[],positives:[]},U=L=>$[L<0?"negatives":"positives"].push(Math.abs(L)),j=[],X=0;for(;A?B>=O:B<=O;)b.toRegex===!0&&P>1?U(B):j.push(c(G(B,X),k,M)),B=A?B-P:B+P,X++;return b.toRegex===!0?P>1?h($,b,k):p(j,null,{wrap:!1,...b}):j},g=(E,T,P=1,b={})=>{if(!a(E)&&E.length>1||!a(T)&&T.length>1)return w(E,T,b);let B=b.transform||(M=>String.fromCharCode(M)),O=`${E}`.charCodeAt(0),A=`${T}`.charCodeAt(0),S=O>A,v=Math.min(O,A),F=Math.max(O,A);if(b.toRegex&&P===1)return d(v,F,!1,b);let R=[],k=0;for(;S?O>=A:O<=A;)R.push(B(O,k)),O=S?O-P:O+P,k++;return b.toRegex===!0?p(R,null,{wrap:!1,options:b}):R},C=(E,T,P,b={})=>{if(T==null&&u(E))return[E];if(!u(E)||!u(T))return w(E,T,b);if(typeof P=="function")return C(E,T,1,{transform:P});if(i(P))return C(E,T,0,P);let B={...b};return B.capture===!0&&(B.wrap=!0),P=P||B.step||1,a(P)?a(E)&&a(T)?m(E,T,P,B):g(E,T,Math.max(Math.abs(P),1),B):P!=null&&!i(P)?y(P,B):C(E,T,1,P)};t.exports=C}}),P1=W({"node_modules/braces/lib/compile.js"(e,t){"use strict";var r=wD(),n=ol(),i=(s,u={})=>{let a=(o,l={})=>{let c=n.isInvalidBrace(l),f=o.invalid===!0&&u.escapeInvalid===!0,h=c===!0||f===!0,d=u.escapeInvalid===!0?"\\":"",p="";if(o.isOpen===!0)return d+o.value;if(o.isClose===!0)return console.log("node.isClose",d,o.value),d+o.value;if(o.type==="open")return h?d+o.value:"(";if(o.type==="close")return h?d+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":h?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let D=n.reduce(o.nodes),w=r(...D,{...u,wrap:!1,toRegex:!0,strictZeros:!0});if(w.length!==0)return D.length>1&&w.length>1?`(${w})`:w}if(o.nodes)for(let D of o.nodes)p+=a(D,o);return p};return a(s)};t.exports=i}}),O1=W({"node_modules/braces/lib/expand.js"(e,t){"use strict";var r=wD(),n=ll(),i=ol(),s=(a="",o="",l=!1)=>{let c=[];if(a=[].concat(a),o=[].concat(o),!o.length)return a;if(!a.length)return l?i.flatten(o).map(f=>`{${f}}`):o;for(let f of a)if(Array.isArray(f))for(let h of f)c.push(s(h,o,l));else for(let h of o)l===!0&&typeof h=="string"&&(h=`{${h}}`),c.push(Array.isArray(h)?s(f,h,l):f+h);return i.flatten(c)},u=(a,o={})=>{let l=o.rangeLimit===void 0?1e3:o.rangeLimit,c=(f,h={})=>{f.queue=[];let d=h,p=h.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,p=d.queue;if(f.invalid||f.dollar){p.push(s(p.pop(),n(f,o)));return}if(f.type==="brace"&&f.invalid!==!0&&f.nodes.length===2){p.push(s(p.pop(),["{}"]));return}if(f.nodes&&f.ranges>0){let m=i.reduce(f.nodes);if(i.exceedsLimit(...m,o.step,l))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let g=r(...m,o);g.length===0&&(g=n(f,o)),p.push(s(p.pop(),g)),f.nodes=[];return}let D=i.encloseBrace(f),w=f.queue,y=f;for(;y.type!=="brace"&&y.type!=="root"&&y.parent;)y=y.parent,w=y.queue;for(let m=0;m<f.nodes.length;m++){let g=f.nodes[m];if(g.type==="comma"&&f.type==="brace"){m===1&&w.push(""),w.push("");continue}if(g.type==="close"){p.push(s(p.pop(),w,D));continue}if(g.value&&g.type!=="open"){w.push(s(w.pop(),g.value));continue}g.nodes&&c(g,f)}return w};return i.flatten(c(a))};t.exports=u}}),I1=W({"node_modules/braces/lib/constants.js"(e,t){"use strict";t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
600
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}}),L1=W({"node_modules/braces/lib/parse.js"(e,t){"use strict";var r=ll(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:s,CHAR_COMMA:u,CHAR_DOT:a,CHAR_LEFT_PARENTHESES:o,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:c,CHAR_RIGHT_CURLY_BRACE:f,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:p,CHAR_SINGLE_QUOTE:D,CHAR_NO_BREAK_SPACE:w,CHAR_ZERO_WIDTH_NOBREAK_SPACE:y}=I1(),m=(g,C={})=>{if(typeof g!="string")throw new TypeError("Expected a string");let E=C||{},T=typeof E.maxLength=="number"?Math.min(n,E.maxLength):n;if(g.length>T)throw new SyntaxError(`Input length (${g.length}), exceeds max characters (${T})`);let P={type:"root",input:g,nodes:[]},b=[P],B=P,O=P,A=0,S=g.length,v=0,F=0,R,k=()=>g[v++],M=G=>{if(G.type==="text"&&O.type==="dot"&&(O.type="text"),O&&O.type==="text"&&G.type==="text"){O.value+=G.value;return}return B.nodes.push(G),G.parent=B,G.prev=O,O=G,G};for(M({type:"bos"});v<S;)if(B=b[b.length-1],R=k(),!(R===y||R===w)){if(R===i){M({type:"text",value:(C.keepEscaping?R:"")+k()});continue}if(R===d){M({type:"text",value:"\\"+R});continue}if(R===h){A++;let G;for(;v<S&&(G=k());){if(R+=G,G===h){A++;continue}if(G===i){R+=k();continue}if(G===d&&(A--,A===0))break}M({type:"text",value:R});continue}if(R===o){B=M({type:"paren",nodes:[]}),b.push(B),M({type:"text",value:R});continue}if(R===l){if(B.type!=="paren"){M({type:"text",value:R});continue}B=b.pop(),M({type:"text",value:R}),B=b[b.length-1];continue}if(R===p||R===D||R===s){let G=R,$;for(C.keepQuotes!==!0&&(R="");v<S&&($=k());){if($===i){R+=$+k();continue}if($===G){C.keepQuotes===!0&&(R+=$);break}R+=$}M({type:"text",value:R});continue}if(R===c){F++;let $={type:"brace",open:!0,close:!1,dollar:O.value&&O.value.slice(-1)==="$"||B.dollar===!0,depth:F,commas:0,ranges:0,nodes:[]};B=M($),b.push(B),M({type:"open",value:R});continue}if(R===f){if(B.type!=="brace"){M({type:"text",value:R});continue}let G="close";B=b.pop(),B.close=!0,M({type:G,value:R}),F--,B=b[b.length-1];continue}if(R===u&&F>0){if(B.ranges>0){B.ranges=0;let G=B.nodes.shift();B.nodes=[G,{type:"text",value:r(B)}]}M({type:"comma",value:R}),B.commas++;continue}if(R===a&&F>0&&B.commas===0){let G=B.nodes;if(F===0||G.length===0){M({type:"text",value:R});continue}if(O.type==="dot"){if(B.range=[],O.value+=R,O.type="range",B.nodes.length!==3&&B.nodes.length!==5){B.invalid=!0,B.ranges=0,O.type="text";continue}B.ranges++,B.args=[];continue}if(O.type==="range"){G.pop();let $=G[G.length-1];$.value+=O.value+R,O=$,B.ranges--;continue}M({type:"dot",value:R});continue}M({type:"text",value:R})}do if(B=b.pop(),B.type!=="root"){B.nodes.forEach(U=>{U.nodes||(U.type==="open"&&(U.isOpen=!0),U.type==="close"&&(U.isClose=!0),U.nodes||(U.type="text"),U.invalid=!0)});let G=b[b.length-1],$=G.nodes.indexOf(B);G.nodes.splice($,1,...B.nodes)}while(b.length>0);return M({type:"eos"}),P};t.exports=m}}),N1=W({"node_modules/braces/index.js"(e,t){"use strict";var r=ll(),n=P1(),i=O1(),s=L1(),u=(a,o={})=>{let l=[];if(Array.isArray(a))for(let c of a){let f=u.create(c,o);Array.isArray(f)?l.push(...f):l.push(f)}else l=[].concat(u.create(a,o));return o&&o.expand===!0&&o.nodupes===!0&&(l=[...new Set(l)]),l};u.parse=(a,o={})=>s(a,o),u.stringify=(a,o={})=>r(typeof a=="string"?u.parse(a,o):a,o),u.compile=(a,o={})=>(typeof a=="string"&&(a=u.parse(a,o)),n(a,o)),u.expand=(a,o={})=>{typeof a=="string"&&(a=u.parse(a,o));let l=i(a,o);return o.noempty===!0&&(l=l.filter(Boolean)),o.nodupes===!0&&(l=[...new Set(l)]),l},u.create=(a,o={})=>a===""||a.length<3?[a]:o.expand!==!0?u.compile(a,o):u.expand(a,o),t.exports=u}}),vu=W({"node_modules/micromatch/node_modules/picomatch/lib/constants.js"(e,t){"use strict";var r=Ae("path"),n="\\\\/",i=`[^${n}]`,s="\\.",u="\\+",a="\\?",o="\\/",l="(?=.)",c="[^/]",f=`(?:${o}|$)`,h=`(?:^|${o})`,d=`${s}{1,2}${f}`,p=`(?!${s})`,D=`(?!${h}${d})`,w=`(?!${s}{0,1}${f})`,y=`(?!${d})`,m=`[^.${o}]`,g=`${c}*?`,C={DOT_LITERAL:s,PLUS_LITERAL:u,QMARK_LITERAL:a,SLASH_LITERAL:o,ONE_CHAR:l,QMARK:c,END_ANCHOR:f,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:D,NO_DOT_SLASH:w,NO_DOTS_SLASH:y,QMARK_NO_DOT:m,STAR:g,START_ANCHOR:h},E={...C,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${s}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${s})`,NO_DOTS:`(?!(?:^|[${n}])${s}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${s}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${s}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},T={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:T,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars(P){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${P.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(P){return P===!0?E:C}}}}),Fu=W({"node_modules/micromatch/node_modules/picomatch/lib/utils.js"(e){"use strict";var t=Ae("path"),r=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:u}=vu();e.isObject=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),e.hasRegexChars=a=>s.test(a),e.isRegexChar=a=>a.length===1&&e.hasRegexChars(a),e.escapeRegex=a=>a.replace(u,"\\$1"),e.toPosixSlashes=a=>a.replace(n,"/"),e.removeBackslashes=a=>a.replace(i,o=>o==="\\"?"":o),e.supportsLookbehinds=()=>{let a=process.version.slice(1).split(".").map(Number);return a.length===3&&a[0]>=9||a[0]===8&&a[1]>=10},e.isWindows=a=>a&&typeof a.windows=="boolean"?a.windows:r===!0||t.sep==="\\",e.escapeLast=(a,o,l)=>{let c=a.lastIndexOf(o,l);return c===-1?a:a[c-1]==="\\"?e.escapeLast(a,o,c-1):`${a.slice(0,c)}\\${a.slice(c)}`},e.removePrefix=(a,o={})=>{let l=a;return l.startsWith("./")&&(l=l.slice(2),o.prefix="./"),l},e.wrapOutput=(a,o={},l={})=>{let c=l.contains?"":"^",f=l.contains?"":"$",h=`${c}(?:${a})${f}`;return o.negated===!0&&(h=`(?:^(?!${h}).*$)`),h}}}),M1=W({"node_modules/micromatch/node_modules/picomatch/lib/scan.js"(e,t){"use strict";var r=Fu(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:u,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:f,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:d,CHAR_QUESTION_MARK:p,CHAR_RIGHT_CURLY_BRACE:D,CHAR_RIGHT_PARENTHESES:w,CHAR_RIGHT_SQUARE_BRACKET:y}=vu(),m=E=>E===l||E===s,g=E=>{E.isPrefix!==!0&&(E.depth=E.isGlobstar?1/0:1)},C=(E,T)=>{let P=T||{},b=E.length-1,B=P.parts===!0||P.scanToEnd===!0,O=[],A=[],S=[],v=E,F=-1,R=0,k=0,M=!1,G=!1,$=!1,U=!1,j=!1,X=!1,L=!1,le=!1,se=!1,N=!1,x=0,I,V,Y={value:"",depth:0,isGlob:!1},fe=()=>F>=b,Q=()=>v.charCodeAt(F+1),_e=()=>(I=V,v.charCodeAt(++F));for(;F<b;){V=_e();let re;if(V===s){L=Y.backslashes=!0,V=_e(),V===c&&(X=!0);continue}if(X===!0||V===c){for(x++;fe()!==!0&&(V=_e());){if(V===s){L=Y.backslashes=!0,_e();continue}if(V===c){x++;continue}if(X!==!0&&V===a&&(V=_e())===a){if(M=Y.isBrace=!0,$=Y.isGlob=!0,N=!0,B===!0)continue;break}if(X!==!0&&V===u){if(M=Y.isBrace=!0,$=Y.isGlob=!0,N=!0,B===!0)continue;break}if(V===D&&(x--,x===0)){X=!1,M=Y.isBrace=!0,N=!0;break}}if(B===!0)continue;break}if(V===l){if(O.push(F),A.push(Y),Y={value:"",depth:0,isGlob:!1},N===!0)continue;if(I===a&&F===R+1){R+=2;continue}k=F+1;continue}if(P.noext!==!0&&(V===d||V===i||V===n||V===p||V===o)===!0&&Q()===f){if($=Y.isGlob=!0,U=Y.isExtglob=!0,N=!0,V===o&&F===R&&(se=!0),B===!0){for(;fe()!==!0&&(V=_e());){if(V===s){L=Y.backslashes=!0,V=_e();continue}if(V===w){$=Y.isGlob=!0,N=!0;break}}continue}break}if(V===n){if(I===n&&(j=Y.isGlobstar=!0),$=Y.isGlob=!0,N=!0,B===!0)continue;break}if(V===p){if($=Y.isGlob=!0,N=!0,B===!0)continue;break}if(V===h){for(;fe()!==!0&&(re=_e());){if(re===s){L=Y.backslashes=!0,_e();continue}if(re===y){G=Y.isBracket=!0,$=Y.isGlob=!0,N=!0;break}}if(B===!0)continue;break}if(P.nonegate!==!0&&V===o&&F===R){le=Y.negated=!0,R++;continue}if(P.noparen!==!0&&V===f){if($=Y.isGlob=!0,B===!0){for(;fe()!==!0&&(V=_e());){if(V===f){L=Y.backslashes=!0,V=_e();continue}if(V===w){N=!0;break}}continue}break}if($===!0){if(N=!0,B===!0)continue;break}}P.noext===!0&&(U=!1,$=!1);let H=v,Z="",ue="";R>0&&(Z=v.slice(0,R),v=v.slice(R),k-=R),H&&$===!0&&k>0?(H=v.slice(0,k),ue=v.slice(k)):$===!0?(H="",ue=v):H=v,H&&H!==""&&H!=="/"&&H!==v&&m(H.charCodeAt(H.length-1))&&(H=H.slice(0,-1)),P.unescape===!0&&(ue&&(ue=r.removeBackslashes(ue)),H&&L===!0&&(H=r.removeBackslashes(H)));let me={prefix:Z,input:E,start:R,base:H,glob:ue,isBrace:M,isBracket:G,isGlob:$,isExtglob:U,isGlobstar:j,negated:le,negatedExtglob:se};if(P.tokens===!0&&(me.maxDepth=0,m(V)||A.push(Y),me.tokens=A),P.parts===!0||P.tokens===!0){let re;for(let be=0;be<O.length;be++){let Qr=re?re+1:R,ee=O[be],Ce=E.slice(Qr,ee);P.tokens&&(be===0&&R!==0?(A[be].isPrefix=!0,A[be].value=Z):A[be].value=Ce,g(A[be]),me.maxDepth+=A[be].depth),(be!==0||Ce!=="")&&S.push(Ce),re=ee}if(re&&re+1<E.length){let be=E.slice(re+1);S.push(be),P.tokens&&(A[A.length-1].value=be,g(A[A.length-1]),me.maxDepth+=A[A.length-1].depth)}me.slashes=O,me.parts=S}return me};t.exports=C}}),j1=W({"node_modules/micromatch/node_modules/picomatch/lib/parse.js"(e,t){"use strict";var r=vu(),n=Fu(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:o}=r,l=(h,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...h,d);h.sort();let p=`[${h.join("-")}]`;try{new RegExp(p)}catch{return h.map(w=>n.escapeRegex(w)).join("..")}return p},c=(h,d)=>`Missing ${h}: "${d}" - use "\\\\${d}" to match literal characters`,f=(h,d)=>{if(typeof h!="string")throw new TypeError("Expected a string");h=o[h]||h;let p={...d},D=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,w=h.length;if(w>D)throw new SyntaxError(`Input length: ${w}, exceeds maximum allowed length: ${D}`);let y={type:"bos",value:"",output:p.prepend||""},m=[y],g=p.capture?"":"?:",C=n.isWindows(d),E=r.globChars(C),T=r.extglobChars(E),{DOT_LITERAL:P,PLUS_LITERAL:b,SLASH_LITERAL:B,ONE_CHAR:O,DOTS_SLASH:A,NO_DOT:S,NO_DOT_SLASH:v,NO_DOTS_SLASH:F,QMARK:R,QMARK_NO_DOT:k,STAR:M,START_ANCHOR:G}=E,$=ee=>`(${g}(?:(?!${G}${ee.dot?A:P}).)*?)`,U=p.dot?"":S,j=p.dot?R:k,X=p.bash===!0?$(p):M;p.capture&&(X=`(${X})`),typeof p.noext=="boolean"&&(p.noextglob=p.noext);let L={input:h,index:-1,start:0,dot:p.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:m};h=n.removePrefix(h,L),w=h.length;let le=[],se=[],N=[],x=y,I,V=()=>L.index===w-1,Y=L.peek=(ee=1)=>h[L.index+ee],fe=L.advance=()=>h[++L.index]||"",Q=()=>h.slice(L.index+1),_e=(ee="",Ce=0)=>{L.consumed+=ee,L.index+=Ce},H=ee=>{L.output+=ee.output!=null?ee.output:ee.value,_e(ee.value)},Z=()=>{let ee=1;for(;Y()==="!"&&(Y(2)!=="("||Y(3)==="?");)fe(),L.start++,ee++;return ee%2===0?!1:(L.negated=!0,L.start++,!0)},ue=ee=>{L[ee]++,N.push(ee)},me=ee=>{L[ee]--,N.pop()},re=ee=>{if(x.type==="globstar"){let Ce=L.braces>0&&(ee.type==="comma"||ee.type==="brace"),K=ee.extglob===!0||le.length&&(ee.type==="pipe"||ee.type==="paren");ee.type!=="slash"&&ee.type!=="paren"&&!Ce&&!K&&(L.output=L.output.slice(0,-x.output.length),x.type="star",x.value="*",x.output=X,L.output+=x.output)}if(le.length&&ee.type!=="paren"&&(le[le.length-1].inner+=ee.value),(ee.value||ee.output)&&H(ee),x&&x.type==="text"&&ee.type==="text"){x.value+=ee.value,x.output=(x.output||"")+ee.value;return}ee.prev=x,m.push(ee),x=ee},be=(ee,Ce)=>{let K={...T[Ce],conditions:1,inner:""};K.prev=x,K.parens=L.parens,K.output=L.output;let he=(p.capture?"(":"")+K.open;ue("parens"),re({type:ee,value:Ce,output:L.output?"":O}),re({type:"paren",extglob:!0,value:fe(),output:he}),le.push(K)},Qr=ee=>{let Ce=ee.close+(p.capture?")":""),K;if(ee.type==="negate"){let he=X;if(ee.inner&&ee.inner.length>1&&ee.inner.includes("/")&&(he=$(p)),(he!==X||V()||/^\)+$/.test(Q()))&&(Ce=ee.close=`)$))${he}`),ee.inner.includes("*")&&(K=Q())&&/^\.[^\\/.]+$/.test(K)){let Ie=f(K,{...d,fastpaths:!1}).output;Ce=ee.close=`)${Ie})${he})`}ee.prev.type==="bos"&&(L.negatedExtglob=!0)}re({type:"paren",extglob:!0,value:I,output:Ce}),me("parens")};if(p.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(h)){let ee=!1,Ce=h.replace(a,(K,he,Ie,ut,ze,so)=>ut==="\\"?(ee=!0,K):ut==="?"?he?he+ut+(ze?R.repeat(ze.length):""):so===0?j+(ze?R.repeat(ze.length):""):R.repeat(Ie.length):ut==="."?P.repeat(Ie.length):ut==="*"?he?he+ut+(ze?X:""):X:he?K:`\\${K}`);return ee===!0&&(p.unescape===!0?Ce=Ce.replace(/\\/g,""):Ce=Ce.replace(/\\+/g,K=>K.length%2===0?"\\\\":K?"\\":"")),Ce===h&&p.contains===!0?(L.output=h,L):(L.output=n.wrapOutput(Ce,L,d),L)}for(;!V();){if(I=fe(),I==="\0")continue;if(I==="\\"){let K=Y();if(K==="/"&&p.bash!==!0||K==="."||K===";")continue;if(!K){I+="\\",re({type:"text",value:I});continue}let he=/^\\+/.exec(Q()),Ie=0;if(he&&he[0].length>2&&(Ie=he[0].length,L.index+=Ie,Ie%2!==0&&(I+="\\")),p.unescape===!0?I=fe():I+=fe(),L.brackets===0){re({type:"text",value:I});continue}}if(L.brackets>0&&(I!=="]"||x.value==="["||x.value==="[^")){if(p.posix!==!1&&I===":"){let K=x.value.slice(1);if(K.includes("[")&&(x.posix=!0,K.includes(":"))){let he=x.value.lastIndexOf("["),Ie=x.value.slice(0,he),ut=x.value.slice(he+2),ze=s[ut];if(ze){x.value=Ie+ze,L.backtrack=!0,fe(),!y.output&&m.indexOf(x)===1&&(y.output=O);continue}}}(I==="["&&Y()!==":"||I==="-"&&Y()==="]")&&(I=`\\${I}`),I==="]"&&(x.value==="["||x.value==="[^")&&(I=`\\${I}`),p.posix===!0&&I==="!"&&x.value==="["&&(I="^"),x.value+=I,H({value:I});continue}if(L.quotes===1&&I!=='"'){I=n.escapeRegex(I),x.value+=I,H({value:I});continue}if(I==='"'){L.quotes=L.quotes===1?0:1,p.keepQuotes===!0&&re({type:"text",value:I});continue}if(I==="("){ue("parens"),re({type:"paren",value:I});continue}if(I===")"){if(L.parens===0&&p.strictBrackets===!0)throw new SyntaxError(c("opening","("));let K=le[le.length-1];if(K&&L.parens===K.parens+1){Qr(le.pop());continue}re({type:"paren",value:I,output:L.parens?")":"\\)"}),me("parens");continue}if(I==="["){if(p.nobracket===!0||!Q().includes("]")){if(p.nobracket!==!0&&p.strictBrackets===!0)throw new SyntaxError(c("closing","]"));I=`\\${I}`}else ue("brackets");re({type:"bracket",value:I});continue}if(I==="]"){if(p.nobracket===!0||x&&x.type==="bracket"&&x.value.length===1){re({type:"text",value:I,output:`\\${I}`});continue}if(L.brackets===0){if(p.strictBrackets===!0)throw new SyntaxError(c("opening","["));re({type:"text",value:I,output:`\\${I}`});continue}me("brackets");let K=x.value.slice(1);if(x.posix!==!0&&K[0]==="^"&&!K.includes("/")&&(I=`/${I}`),x.value+=I,H({value:I}),p.literalBrackets===!1||n.hasRegexChars(K))continue;let he=n.escapeRegex(x.value);if(L.output=L.output.slice(0,-x.value.length),p.literalBrackets===!0){L.output+=he,x.value=he;continue}x.value=`(${g}${he}|${x.value})`,L.output+=x.value;continue}if(I==="{"&&p.nobrace!==!0){ue("braces");let K={type:"brace",value:I,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};se.push(K),re(K);continue}if(I==="}"){let K=se[se.length-1];if(p.nobrace===!0||!K){re({type:"text",value:I,output:I});continue}let he=")";if(K.dots===!0){let Ie=m.slice(),ut=[];for(let ze=Ie.length-1;ze>=0&&(m.pop(),Ie[ze].type!=="brace");ze--)Ie[ze].type!=="dots"&&ut.unshift(Ie[ze].value);he=l(ut,p),L.backtrack=!0}if(K.comma!==!0&&K.dots!==!0){let Ie=L.output.slice(0,K.outputIndex),ut=L.tokens.slice(K.tokensIndex);K.value=K.output="\\{",I=he="\\}",L.output=Ie;for(let ze of ut)L.output+=ze.output||ze.value}re({type:"brace",value:I,output:he}),me("braces"),se.pop();continue}if(I==="|"){le.length>0&&le[le.length-1].conditions++,re({type:"text",value:I});continue}if(I===","){let K=I,he=se[se.length-1];he&&N[N.length-1]==="braces"&&(he.comma=!0,K="|"),re({type:"comma",value:I,output:K});continue}if(I==="/"){if(x.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",m.pop(),x=y;continue}re({type:"slash",value:I,output:B});continue}if(I==="."){if(L.braces>0&&x.type==="dot"){x.value==="."&&(x.output=P);let K=se[se.length-1];x.type="dots",x.output+=I,x.value+=I,K.dots=!0;continue}if(L.braces+L.parens===0&&x.type!=="bos"&&x.type!=="slash"){re({type:"text",value:I,output:P});continue}re({type:"dot",value:I,output:P});continue}if(I==="?"){if(!(x&&x.value==="(")&&p.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){be("qmark",I);continue}if(x&&x.type==="paren"){let he=Y(),Ie=I;if(he==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(x.value==="("&&!/[!=<:]/.test(he)||he==="<"&&!/<([!=]|\w+>)/.test(Q()))&&(Ie=`\\${I}`),re({type:"text",value:I,output:Ie});continue}if(p.dot!==!0&&(x.type==="slash"||x.type==="bos")){re({type:"qmark",value:I,output:k});continue}re({type:"qmark",value:I,output:R});continue}if(I==="!"){if(p.noextglob!==!0&&Y()==="("&&(Y(2)!=="?"||!/[!=<:]/.test(Y(3)))){be("negate",I);continue}if(p.nonegate!==!0&&L.index===0){Z();continue}}if(I==="+"){if(p.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){be("plus",I);continue}if(x&&x.value==="("||p.regex===!1){re({type:"plus",value:I,output:b});continue}if(x&&(x.type==="bracket"||x.type==="paren"||x.type==="brace")||L.parens>0){re({type:"plus",value:I});continue}re({type:"plus",value:b});continue}if(I==="@"){if(p.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){re({type:"at",extglob:!0,value:I,output:""});continue}re({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let K=u.exec(Q());K&&(I+=K[0],L.index+=K[0].length),re({type:"text",value:I});continue}if(x&&(x.type==="globstar"||x.star===!0)){x.type="star",x.star=!0,x.value+=I,x.output=X,L.backtrack=!0,L.globstar=!0,_e(I);continue}let ee=Q();if(p.noextglob!==!0&&/^\([^?]/.test(ee)){be("star",I);continue}if(x.type==="star"){if(p.noglobstar===!0){_e(I);continue}let K=x.prev,he=K.prev,Ie=K.type==="slash"||K.type==="bos",ut=he&&(he.type==="star"||he.type==="globstar");if(p.bash===!0&&(!Ie||ee[0]&&ee[0]!=="/")){re({type:"star",value:I,output:""});continue}let ze=L.braces>0&&(K.type==="comma"||K.type==="brace"),so=le.length&&(K.type==="pipe"||K.type==="paren");if(!Ie&&K.type!=="paren"&&!ze&&!so){re({type:"star",value:I,output:""});continue}for(;ee.slice(0,3)==="/**";){let bs=h[L.index+4];if(bs&&bs!=="/")break;ee=ee.slice(3),_e("/**",3)}if(K.type==="bos"&&V()){x.type="globstar",x.value+=I,x.output=$(p),L.output=x.output,L.globstar=!0,_e(I);continue}if(K.type==="slash"&&K.prev.type!=="bos"&&!ut&&V()){L.output=L.output.slice(0,-(K.output+x.output).length),K.output=`(?:${K.output}`,x.type="globstar",x.output=$(p)+(p.strictSlashes?")":"|$)"),x.value+=I,L.globstar=!0,L.output+=K.output+x.output,_e(I);continue}if(K.type==="slash"&&K.prev.type!=="bos"&&ee[0]==="/"){let bs=ee[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(K.output+x.output).length),K.output=`(?:${K.output}`,x.type="globstar",x.output=`${$(p)}${B}|${B}${bs})`,x.value+=I,L.output+=K.output+x.output,L.globstar=!0,_e(I+fe()),re({type:"slash",value:"/",output:""});continue}if(K.type==="bos"&&ee[0]==="/"){x.type="globstar",x.value+=I,x.output=`(?:^|${B}|${$(p)}${B})`,L.output=x.output,L.globstar=!0,_e(I+fe()),re({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-x.output.length),x.type="globstar",x.output=$(p),x.value+=I,L.output+=x.output,L.globstar=!0,_e(I);continue}let Ce={type:"star",value:I,output:X};if(p.bash===!0){Ce.output=".*?",(x.type==="bos"||x.type==="slash")&&(Ce.output=U+Ce.output),re(Ce);continue}if(x&&(x.type==="bracket"||x.type==="paren")&&p.regex===!0){Ce.output=I,re(Ce);continue}(L.index===L.start||x.type==="slash"||x.type==="dot")&&(x.type==="dot"?(L.output+=v,x.output+=v):p.dot===!0?(L.output+=F,x.output+=F):(L.output+=U,x.output+=U),Y()!=="*"&&(L.output+=O,x.output+=O)),re(Ce)}for(;L.brackets>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing","]"));L.output=n.escapeLast(L.output,"["),me("brackets")}for(;L.parens>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing",")"));L.output=n.escapeLast(L.output,"("),me("parens")}for(;L.braces>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing","}"));L.output=n.escapeLast(L.output,"{"),me("braces")}if(p.strictSlashes!==!0&&(x.type==="star"||x.type==="bracket")&&re({type:"maybe_slash",value:"",output:`${B}?`}),L.backtrack===!0){L.output="";for(let ee of L.tokens)L.output+=ee.output!=null?ee.output:ee.value,ee.suffix&&(L.output+=ee.suffix)}return L};f.fastpaths=(h,d)=>{let p={...d},D=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,w=h.length;if(w>D)throw new SyntaxError(`Input length: ${w}, exceeds maximum allowed length: ${D}`);h=o[h]||h;let y=n.isWindows(d),{DOT_LITERAL:m,SLASH_LITERAL:g,ONE_CHAR:C,DOTS_SLASH:E,NO_DOT:T,NO_DOTS:P,NO_DOTS_SLASH:b,STAR:B,START_ANCHOR:O}=r.globChars(y),A=p.dot?P:T,S=p.dot?b:T,v=p.capture?"":"?:",F={negated:!1,prefix:""},R=p.bash===!0?".*?":B;p.capture&&(R=`(${R})`);let k=U=>U.noglobstar===!0?R:`(${v}(?:(?!${O}${U.dot?E:m}).)*?)`,M=U=>{switch(U){case"*":return`${A}${C}${R}`;case".*":return`${m}${C}${R}`;case"*.*":return`${A}${R}${m}${C}${R}`;case"*/*":return`${A}${R}${g}${C}${S}${R}`;case"**":return A+k(p);case"**/*":return`(?:${A}${k(p)}${g})?${S}${C}${R}`;case"**/*.*":return`(?:${A}${k(p)}${g})?${S}${R}${m}${C}${R}`;case"**/.*":return`(?:${A}${k(p)}${g})?${m}${C}${R}`;default:{let j=/^(.*?)\.(\w+)$/.exec(U);if(!j)return;let X=M(j[1]);return X?X+m+j[2]:void 0}}},G=n.removePrefix(h,F),$=M(G);return $&&p.strictSlashes!==!0&&($+=`${g}?`),$},t.exports=f}}),$1=W({"node_modules/micromatch/node_modules/picomatch/lib/picomatch.js"(e,t){"use strict";var r=Ae("path"),n=M1(),i=j1(),s=Fu(),u=vu(),a=l=>l&&typeof l=="object"&&!Array.isArray(l),o=(l,c,f=!1)=>{if(Array.isArray(l)){let g=l.map(E=>o(E,c,f));return E=>{for(let T of g){let P=T(E);if(P)return P}return!1}}let h=a(l)&&l.tokens&&l.input;if(l===""||typeof l!="string"&&!h)throw new TypeError("Expected pattern to be a non-empty string");let d=c||{},p=s.isWindows(c),D=h?o.compileRe(l,c):o.makeRe(l,c,!1,!0),w=D.state;delete D.state;let y=()=>!1;if(d.ignore){let g={...c,ignore:null,onMatch:null,onResult:null};y=o(d.ignore,g,f)}let m=(g,C=!1)=>{let{isMatch:E,match:T,output:P}=o.test(g,D,c,{glob:l,posix:p}),b={glob:l,state:w,regex:D,posix:p,input:g,output:P,match:T,isMatch:E};return typeof d.onResult=="function"&&d.onResult(b),E===!1?(b.isMatch=!1,C?b:!1):y(g)?(typeof d.onIgnore=="function"&&d.onIgnore(b),b.isMatch=!1,C?b:!1):(typeof d.onMatch=="function"&&d.onMatch(b),C?b:!0)};return f&&(m.state=w),m};o.test=(l,c,f,{glob:h,posix:d}={})=>{if(typeof l!="string")throw new TypeError("Expected input to be a string");if(l==="")return{isMatch:!1,output:""};let p=f||{},D=p.format||(d?s.toPosixSlashes:null),w=l===h,y=w&&D?D(l):l;return w===!1&&(y=D?D(l):l,w=y===h),(w===!1||p.capture===!0)&&(p.matchBase===!0||p.basename===!0?w=o.matchBase(l,c,f,d):w=c.exec(y)),{isMatch:!!w,match:w,output:y}},o.matchBase=(l,c,f,h=s.isWindows(f))=>(c instanceof RegExp?c:o.makeRe(c,f)).test(r.basename(l)),o.isMatch=(l,c,f)=>o(c,f)(l),o.parse=(l,c)=>Array.isArray(l)?l.map(f=>o.parse(f,c)):i(l,{...c,fastpaths:!1}),o.scan=(l,c)=>n(l,c),o.compileRe=(l,c,f=!1,h=!1)=>{if(f===!0)return l.output;let d=c||{},p=d.contains?"":"^",D=d.contains?"":"$",w=`${p}(?:${l.output})${D}`;l&&l.negated===!0&&(w=`^(?!${w}).*$`);let y=o.toRegex(w,c);return h===!0&&(y.state=l),y},o.makeRe=(l,c={},f=!1,h=!1)=>{if(!l||typeof l!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return c.fastpaths!==!1&&(l[0]==="."||l[0]==="*")&&(d.output=i.fastpaths(l,c)),d.output||(d=i(l,c)),o.compileRe(d,c,f,h)},o.toRegex=(l,c)=>{try{let f=c||{};return new RegExp(l,f.flags||(f.nocase?"i":""))}catch(f){if(c&&c.debug===!0)throw f;return/$^/}},o.constants=u,t.exports=o}}),H1=W({"node_modules/micromatch/node_modules/picomatch/index.js"(e,t){"use strict";t.exports=$1()}}),bD=W({"node_modules/micromatch/index.js"(e,t){"use strict";var r=Ae("util"),n=N1(),i=H1(),s=Fu(),u=l=>l===""||l==="./",a=l=>{let c=l.indexOf("{");return c>-1&&l.indexOf("}",c)>-1},o=(l,c,f)=>{c=[].concat(c),l=[].concat(l);let h=new Set,d=new Set,p=new Set,D=0,w=g=>{p.add(g.output),f&&f.onResult&&f.onResult(g)};for(let g=0;g<c.length;g++){let C=i(String(c[g]),{...f,onResult:w},!0),E=C.state.negated||C.state.negatedExtglob;E&&D++;for(let T of l){let P=C(T,!0);(E?!P.isMatch:P.isMatch)&&(E?h.add(P.output):(h.delete(P.output),d.add(P.output)))}}let m=(D===c.length?[...p]:[...d]).filter(g=>!h.has(g));if(f&&m.length===0){if(f.failglob===!0)throw new Error(`No matches found for "${c.join(", ")}"`);if(f.nonull===!0||f.nullglob===!0)return f.unescape?c.map(g=>g.replace(/\\/g,"")):c}return m};o.match=o,o.matcher=(l,c)=>i(l,c),o.isMatch=(l,c,f)=>i(c,f)(l),o.any=o.isMatch,o.not=(l,c,f={})=>{c=[].concat(c).map(String);let h=new Set,d=[],p=w=>{f.onResult&&f.onResult(w),d.push(w.output)},D=new Set(o(l,c,{...f,onResult:p}));for(let w of d)D.has(w)||h.add(w);return[...h]},o.contains=(l,c,f)=>{if(typeof l!="string")throw new TypeError(`Expected a string: "${r.inspect(l)}"`);if(Array.isArray(c))return c.some(h=>o.contains(l,h,f));if(typeof c=="string"){if(u(l)||u(c))return!1;if(l.includes(c)||l.startsWith("./")&&l.slice(2).includes(c))return!0}return o.isMatch(l,c,{...f,contains:!0})},o.matchKeys=(l,c,f)=>{if(!s.isObject(l))throw new TypeError("Expected the first argument to be an object");let h=o(Object.keys(l),c,f),d={};for(let p of h)d[p]=l[p];return d},o.some=(l,c,f)=>{let h=[].concat(l);for(let d of[].concat(c)){let p=i(String(d),f);if(h.some(D=>p(D)))return!0}return!1},o.every=(l,c,f)=>{let h=[].concat(l);for(let d of[].concat(c)){let p=i(String(d),f);if(!h.every(D=>p(D)))return!1}return!0},o.all=(l,c,f)=>{if(typeof l!="string")throw new TypeError(`Expected a string: "${r.inspect(l)}"`);return[].concat(c).every(h=>i(h,f)(l))},o.capture=(l,c,f)=>{let h=s.isWindows(f),p=i.makeRe(String(l),{...f,capture:!0}).exec(h?s.toPosixSlashes(c):c);if(p)return p.slice(1).map(D=>D===void 0?"":D)},o.makeRe=(...l)=>i.makeRe(...l),o.scan=(...l)=>i.scan(...l),o.parse=(l,c)=>{let f=[];for(let h of[].concat(l||[]))for(let d of n(String(h),c))f.push(i.parse(d,c));return f},o.braces=(l,c)=>{if(typeof l!="string")throw new TypeError("Expected a string");return c&&c.nobrace===!0||!a(l)?[l]:n(l,c)},o.braceExpand=(l,c)=>{if(typeof l!="string")throw new TypeError("Expected a string");return o.braces(l,{...c,expand:!0})},o.hasBraces=a,t.exports=o}}),q1=W({"node_modules/fast-glob/out/utils/pattern.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAbsolute=e.partitionAbsoluteAndRelative=e.removeDuplicateSlashes=e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var t=Ae("path"),r=B1(),n=bD(),i="**",s="\\",u=/[*?]|^!/,a=/\[[^[]*]/,o=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,l=/[!*+?@]\([^(]*\)/,c=/,|\.\./,f=/(?!^)\/{2,}/g;function h(j,X={}){return!d(j,X)}e.isStaticPattern=h;function d(j,X={}){return j===""?!1:!!(X.caseSensitiveMatch===!1||j.includes(s)||u.test(j)||a.test(j)||o.test(j)||X.extglob!==!1&&l.test(j)||X.braceExpansion!==!1&&p(j))}e.isDynamicPattern=d;function p(j){let X=j.indexOf("{");if(X===-1)return!1;let L=j.indexOf("}",X+1);if(L===-1)return!1;let le=j.slice(X,L);return c.test(le)}function D(j){return y(j)?j.slice(1):j}e.convertToPositivePattern=D;function w(j){return"!"+j}e.convertToNegativePattern=w;function y(j){return j.startsWith("!")&&j[1]!=="("}e.isNegativePattern=y;function m(j){return!y(j)}e.isPositivePattern=m;function g(j){return j.filter(y)}e.getNegativePatterns=g;function C(j){return j.filter(m)}e.getPositivePatterns=C;function E(j){return j.filter(X=>!P(X))}e.getPatternsInsideCurrentDirectory=E;function T(j){return j.filter(P)}e.getPatternsOutsideCurrentDirectory=T;function P(j){return j.startsWith("..")||j.startsWith("./..")}e.isPatternRelatedToParentDirectory=P;function b(j){return r(j,{flipBackslashes:!1})}e.getBaseDirectory=b;function B(j){return j.includes(i)}e.hasGlobStar=B;function O(j){return j.endsWith("/"+i)}e.endsWithSlashGlobStar=O;function A(j){let X=t.basename(j);return O(j)||h(X)}e.isAffectDepthOfReadingPattern=A;function S(j){return j.reduce((X,L)=>X.concat(v(L)),[])}e.expandPatternsWithBraceExpansion=S;function v(j){let X=n.braces(j,{expand:!0,nodupes:!0,keepEscaping:!0});return X.sort((L,le)=>L.length-le.length),X.filter(L=>L!=="")}e.expandBraceExpansion=v;function F(j,X){let{parts:L}=n.scan(j,Object.assign(Object.assign({},X),{parts:!0}));return L.length===0&&(L=[j]),L[0].startsWith("/")&&(L[0]=L[0].slice(1),L.unshift("")),L}e.getPatternParts=F;function R(j,X){return n.makeRe(j,X)}e.makeRe=R;function k(j,X){return j.map(L=>R(L,X))}e.convertPatternsToRe=k;function M(j,X){return X.some(L=>L.test(j))}e.matchAny=M;function G(j){return j.replace(f,"/")}e.removeDuplicateSlashes=G;function $(j){let X=[],L=[];for(let le of j)U(le)?X.push(le):L.push(le);return[X,L]}e.partitionAbsoluteAndRelative=$;function U(j){return t.isAbsolute(j)}e.isAbsolute=U}}),U1=W({"node_modules/merge2/index.js"(e,t){"use strict";var r=Ae("stream"),n=r.PassThrough,i=Array.prototype.slice;t.exports=s;function s(){let a=[],o=i.call(arguments),l=!1,c=o[o.length-1];c&&!Array.isArray(c)&&c.pipe==null?o.pop():c={};let f=c.end!==!1,h=c.pipeError===!0;c.objectMode==null&&(c.objectMode=!0),c.highWaterMark==null&&(c.highWaterMark=64*1024);let d=n(c);function p(){for(let y=0,m=arguments.length;y<m;y++)a.push(u(arguments[y],c));return D(),this}function D(){if(l)return;l=!0;let y=a.shift();if(!y){process.nextTick(w);return}Array.isArray(y)||(y=[y]);let m=y.length+1;function g(){--m>0||(l=!1,D())}function C(E){function T(){E.removeListener("merge2UnpipeEnd",T),E.removeListener("end",T),h&&E.removeListener("error",P),g()}function P(b){d.emit("error",b)}if(E._readableState.endEmitted)return g();E.on("merge2UnpipeEnd",T),E.on("end",T),h&&E.on("error",P),E.pipe(d,{end:!1}),E.resume()}for(let E=0;E<y.length;E++)C(y[E]);g()}function w(){l=!1,d.emit("queueDrain"),f&&d.end()}return d.setMaxListeners(0),d.add=p,d.on("unpipe",function(y){y.emit("merge2UnpipeEnd")}),o.length&&p.apply(null,o),d}function u(a,o){if(Array.isArray(a))for(let l=0,c=a.length;l<c;l++)a[l]=u(a[l],o);else{if(!a._readableState&&a.pipe&&(a=a.pipe(n(o))),!a._readableState||!a.pause||!a.pipe)throw new Error("Only readable stream can be merged.");a.pause()}return a}}}),G1=W({"node_modules/fast-glob/out/utils/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var t=U1();function r(i){let s=t(i);return i.forEach(u=>{u.once("error",a=>s.emit("error",a))}),s.once("close",()=>n(i)),s.once("end",()=>n(i)),s}e.merge=r;function n(i){i.forEach(s=>s.emit("close"))}}}),W1=W({"node_modules/fast-glob/out/utils/string.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function t(n){return typeof n=="string"}e.isString=t;function r(n){return n===""}e.isEmpty=r}}),Lr=W({"node_modules/fast-glob/out/utils/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var t=A1();e.array=t;var r=w1();e.errno=r;var n=b1();e.fs=n;var i=S1();e.path=i;var s=q1();e.pattern=s;var u=G1();e.stream=u;var a=W1();e.string=a}}),V1=W({"node_modules/fast-glob/out/managers/tasks.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var t=Lr();function r(c,f){let h=n(c,f),d=n(f.ignore,f),p=s(h),D=u(h,d),w=p.filter(C=>t.pattern.isStaticPattern(C,f)),y=p.filter(C=>t.pattern.isDynamicPattern(C,f)),m=i(w,D,!1),g=i(y,D,!0);return m.concat(g)}e.generate=r;function n(c,f){let h=c;return f.braceExpansion&&(h=t.pattern.expandPatternsWithBraceExpansion(h)),f.baseNameMatch&&(h=h.map(d=>d.includes("/")?d:`**/${d}`)),h.map(d=>t.pattern.removeDuplicateSlashes(d))}function i(c,f,h){let d=[],p=t.pattern.getPatternsOutsideCurrentDirectory(c),D=t.pattern.getPatternsInsideCurrentDirectory(c),w=a(p),y=a(D);return d.push(...o(w,f,h)),"."in y?d.push(l(".",D,f,h)):d.push(...o(y,f,h)),d}e.convertPatternsToTasks=i;function s(c){return t.pattern.getPositivePatterns(c)}e.getPositivePatterns=s;function u(c,f){return t.pattern.getNegativePatterns(c).concat(f).map(t.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=u;function a(c){let f={};return c.reduce((h,d)=>{let p=t.pattern.getBaseDirectory(d);return p in h?h[p].push(d):h[p]=[d],h},f)}e.groupPatternsByBaseDirectory=a;function o(c,f,h){return Object.keys(c).map(d=>l(d,c[d],f,h))}e.convertPatternGroupsToTasks=o;function l(c,f,h,d){return{dynamic:d,positive:f,negative:h,base:c,patterns:[].concat(f,h.map(t.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=l}}),z1=W({"node_modules/@nodelib/fs.stat/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(i,s,u){s.fs.lstat(i,(a,o)=>{if(a!==null){r(u,a);return}if(!o.isSymbolicLink()||!s.followSymbolicLink){n(u,o);return}s.fs.stat(i,(l,c)=>{if(l!==null){if(s.throwErrorOnBrokenSymbolicLink){r(u,l);return}n(u,o);return}s.markSymbolicLink&&(c.isSymbolicLink=()=>!0),n(u,c)})})}e.read=t;function r(i,s){i(s)}function n(i,s){i(null,s)}}}),Y1=W({"node_modules/@nodelib/fs.stat/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(r,n){let i=n.fs.lstatSync(r);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let s=n.fs.statSync(r);return n.markSymbolicLink&&(s.isSymbolicLink=()=>!0),s}catch(s){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw s}}e.read=t}}),K1=W({"node_modules/@nodelib/fs.stat/out/adapters/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=Ae("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function r(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=r}}),J1=W({"node_modules/@nodelib/fs.stat/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=K1(),r=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n??i}};e.default=r}}),jn=W({"node_modules/@nodelib/fs.stat/out/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var t=z1(),r=Y1(),n=J1();e.Settings=n.default;function i(a,o,l){if(typeof o=="function"){t.read(a,u(),o);return}t.read(a,u(o),l)}e.stat=i;function s(a,o){let l=u(o);return r.read(a,l)}e.statSync=s;function u(a={}){return a instanceof n.default?a:new n.default(a)}}}),X1=W({"node_modules/queue-microtask/index.js"(e,t){var r;t.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(r||(r=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}}),Q1=W({"node_modules/run-parallel/index.js"(e,t){t.exports=n;var r=X1();function n(i,s){let u,a,o,l=!0;Array.isArray(i)?(u=[],a=i.length):(o=Object.keys(i),u={},a=o.length);function c(h){function d(){s&&s(h,u),s=null}l?r(d):d()}function f(h,d,p){u[h]=p,(--a===0||d)&&c(d)}a?o?o.forEach(function(h){i[h](function(d,p){f(h,d,p)})}):i.forEach(function(h,d){h(function(p,D){f(d,p,D)})}):c(null),l=!1}}}),SD=W({"node_modules/@nodelib/fs.scandir/out/constants.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var t=process.versions.node.split(".");if(t[0]===void 0||t[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(t[0],10),n=Number.parseInt(t[1],10),i=10,s=10,u=r>i,a=r===i&&n>=s;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=u||a}}),Z1=W({"node_modules/@nodelib/fs.scandir/out/utils/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new t(n,i)}e.createDirentFromStats=r}}),RD=W({"node_modules/@nodelib/fs.scandir/out/utils/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var t=Z1();e.fs=t}}),TD=W({"node_modules/@nodelib/fs.scandir/out/providers/common.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function t(r,n,i){return r.endsWith(i)?r+n:r+i+n}e.joinPathSegments=t}}),eS=W({"node_modules/@nodelib/fs.scandir/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=jn(),r=Q1(),n=SD(),i=RD(),s=TD();function u(h,d,p){if(!d.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){a(h,d,p);return}l(h,d,p)}e.read=u;function a(h,d,p){d.fs.readdir(h,{withFileTypes:!0},(D,w)=>{if(D!==null){c(p,D);return}let y=w.map(g=>({dirent:g,name:g.name,path:s.joinPathSegments(h,g.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){f(p,y);return}let m=y.map(g=>o(g,d));r(m,(g,C)=>{if(g!==null){c(p,g);return}f(p,C)})})}e.readdirWithFileTypes=a;function o(h,d){return p=>{if(!h.dirent.isSymbolicLink()){p(null,h);return}d.fs.stat(h.path,(D,w)=>{if(D!==null){if(d.throwErrorOnBrokenSymbolicLink){p(D);return}p(null,h);return}h.dirent=i.fs.createDirentFromStats(h.name,w),p(null,h)})}}function l(h,d,p){d.fs.readdir(h,(D,w)=>{if(D!==null){c(p,D);return}let y=w.map(m=>{let g=s.joinPathSegments(h,m,d.pathSegmentSeparator);return C=>{t.stat(g,d.fsStatSettings,(E,T)=>{if(E!==null){C(E);return}let P={name:m,path:g,dirent:i.fs.createDirentFromStats(m,T)};d.stats&&(P.stats=T),C(null,P)})}});r(y,(m,g)=>{if(m!==null){c(p,m);return}f(p,g)})})}e.readdir=l;function c(h,d){h(d)}function f(h,d){h(null,d)}}}),tS=W({"node_modules/@nodelib/fs.scandir/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=jn(),r=SD(),n=RD(),i=TD();function s(o,l){return!l.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?u(o,l):a(o,l)}e.read=s;function u(o,l){return l.fs.readdirSync(o,{withFileTypes:!0}).map(f=>{let h={dirent:f,name:f.name,path:i.joinPathSegments(o,f.name,l.pathSegmentSeparator)};if(h.dirent.isSymbolicLink()&&l.followSymbolicLinks)try{let d=l.fs.statSync(h.path);h.dirent=n.fs.createDirentFromStats(h.name,d)}catch(d){if(l.throwErrorOnBrokenSymbolicLink)throw d}return h})}e.readdirWithFileTypes=u;function a(o,l){return l.fs.readdirSync(o).map(f=>{let h=i.joinPathSegments(o,f,l.pathSegmentSeparator),d=t.statSync(h,l.fsStatSettings),p={name:f,path:h,dirent:n.fs.createDirentFromStats(f,d)};return l.stats&&(p.stats=d),p})}e.readdir=a}}),rS=W({"node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=Ae("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function r(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=r}}),nS=W({"node_modules/@nodelib/fs.scandir/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ae("path"),r=jn(),n=rS(),i=class{constructor(s={}){this._options=s,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(s,u){return s??u}};e.default=i}}),cl=W({"node_modules/@nodelib/fs.scandir/out/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var t=eS(),r=tS(),n=nS();e.Settings=n.default;function i(a,o,l){if(typeof o=="function"){t.read(a,u(),o);return}t.read(a,u(o),l)}e.scandir=i;function s(a,o){let l=u(o);return r.read(a,l)}e.scandirSync=s;function u(a={}){return a instanceof n.default?a:new n.default(a)}}}),iS=W({"node_modules/reusify/reusify.js"(e,t){"use strict";function r(n){var i=new n,s=i;function u(){var o=i;return o.next?i=o.next:(i=new n,s=i),o.next=null,o}function a(o){s.next=o,s=o}return{get:u,release:a}}t.exports=r}}),sS=W({"node_modules/fastq/queue.js"(e,t){"use strict";var r=iS();function n(a,o,l){if(typeof a=="function"&&(l=o,o=a,a=null),!(l>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var c=r(s),f=null,h=null,d=0,p=null,D={push:T,drain:i,saturated:i,pause:y,paused:!1,get concurrency(){return l},set concurrency(S){if(!(S>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(l=S,!D.paused)for(;f&&d<l;)d++,b()},running:w,resume:C,idle:E,length:m,getQueue:g,unshift:P,empty:i,kill:B,killAndDrain:O,error:A};return D;function w(){return d}function y(){D.paused=!0}function m(){for(var S=f,v=0;S;)S=S.next,v++;return v}function g(){for(var S=f,v=[];S;)v.push(S.value),S=S.next;return v}function C(){if(D.paused){if(D.paused=!1,f===null){d++,b();return}for(;f&&d<l;)d++,b()}}function E(){return d===0&&D.length()===0}function T(S,v){var F=c.get();F.context=a,F.release=b,F.value=S,F.callback=v||i,F.errorHandler=p,d>=l||D.paused?h?(h.next=F,h=F):(f=F,h=F,D.saturated()):(d++,o.call(a,F.value,F.worked))}function P(S,v){var F=c.get();F.context=a,F.release=b,F.value=S,F.callback=v||i,F.errorHandler=p,d>=l||D.paused?f?(F.next=f,f=F):(f=F,h=F,D.saturated()):(d++,o.call(a,F.value,F.worked))}function b(S){S&&c.release(S);var v=f;v&&d<=l?D.paused?d--:(h===f&&(h=null),f=v.next,v.next=null,o.call(a,v.value,v.worked),h===null&&D.empty()):--d===0&&D.drain()}function B(){f=null,h=null,D.drain=i}function O(){f=null,h=null,D.drain(),D.drain=i}function A(S){p=S}}function i(){}function s(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var a=this;this.worked=function(l,c){var f=a.callback,h=a.errorHandler,d=a.value;a.value=null,a.callback=i,a.errorHandler&&h(l,d),f.call(a.context,l,c),a.release(a)}}function u(a,o,l){typeof a=="function"&&(l=o,o=a,a=null);function c(y,m){o.call(this,y).then(function(g){m(null,g)},m)}var f=n(a,c,l),h=f.push,d=f.unshift;return f.push=p,f.unshift=D,f.drained=w,f;function p(y){var m=new Promise(function(g,C){h(y,function(E,T){if(E){C(E);return}g(T)})});return m.catch(i),m}function D(y){var m=new Promise(function(g,C){d(y,function(E,T){if(E){C(E);return}g(T)})});return m.catch(i),m}function w(){var y=new Promise(function(m){process.nextTick(function(){if(f.idle())m();else{var g=f.drain;f.drain=function(){typeof g=="function"&&g(),m(),f.drain=g}}})});return y}}t.exports=n,t.exports.promise=u}}),fl=W({"node_modules/@nodelib/fs.walk/out/readers/common.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(s,u){return s.errorFilter===null?!0:!s.errorFilter(u)}e.isFatalError=t;function r(s,u){return s===null||s(u)}e.isAppliedFilter=r;function n(s,u){return s.split(/[/\\]/).join(u)}e.replacePathSegmentSeparator=n;function i(s,u,a){return s===""?u:s.endsWith(a)?s+u:s+a+u}e.joinPathSegments=i}}),BD=W({"node_modules/@nodelib/fs.walk/out/readers/reader.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=fl(),r=class{constructor(n,i){this._root=n,this._settings=i,this._root=t.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};e.default=r}}),xD=W({"node_modules/@nodelib/fs.walk/out/readers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ae("events"),r=cl(),n=sS(),i=fl(),s=BD(),u=class extends s.default{constructor(a,o){super(a,o),this._settings=o,this._scandir=r.scandir,this._emitter=new t.EventEmitter,this._queue=n(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(a){this._emitter.on("entry",a)}onError(a){this._emitter.once("error",a)}onEnd(a){this._emitter.once("end",a)}_pushToQueue(a,o){let l={directory:a,base:o};this._queue.push(l,c=>{c!==null&&this._handleError(c)})}_worker(a,o){this._scandir(a.directory,this._settings.fsScandirSettings,(l,c)=>{if(l!==null){o(l,void 0);return}for(let f of c)this._handleEntry(f,a.base);o(null,void 0)})}_handleError(a){this._isDestroyed||!i.isFatalError(this._settings,a)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",a))}_handleEntry(a,o){if(this._isDestroyed||this._isFatalError)return;let l=a.path;o!==void 0&&(a.path=i.joinPathSegments(o,a.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,a)&&this._emitEntry(a),a.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,a)&&this._pushToQueue(l,o===void 0?void 0:a.path)}_emitEntry(a){this._emitter.emit("entry",a)}};e.default=u}}),uS=W({"node_modules/@nodelib/fs.walk/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=xD(),r=class{constructor(s,u){this._root=s,this._settings=u,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(s){this._reader.onError(u=>{n(s,u)}),this._reader.onEntry(u=>{this._storage.push(u)}),this._reader.onEnd(()=>{i(s,this._storage)}),this._reader.read()}};e.default=r;function n(s,u){s(u)}function i(s,u){s(null,u)}}}),aS=W({"node_modules/@nodelib/fs.walk/out/providers/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ae("stream"),r=xD(),n=class{constructor(i,s){this._root=i,this._settings=s,this._reader=new r.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=n}}),oS=W({"node_modules/@nodelib/fs.walk/out/readers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=cl(),r=fl(),n=BD(),i=class extends n.default{constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(s,u){this._queue.add({directory:s,base:u})}_handleQueue(){for(let s of this._queue.values())this._handleDirectory(s.directory,s.base)}_handleDirectory(s,u){try{let a=this._scandir(s,this._settings.fsScandirSettings);for(let o of a)this._handleEntry(o,u)}catch(a){this._handleError(a)}}_handleError(s){if(r.isFatalError(this._settings,s))throw s}_handleEntry(s,u){let a=s.path;u!==void 0&&(s.path=r.joinPathSegments(u,s.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,s)&&this._pushToStorage(s),s.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,s)&&this._pushToQueue(a,u===void 0?void 0:s.path)}_pushToStorage(s){this._storage.push(s)}};e.default=i}}),lS=W({"node_modules/@nodelib/fs.walk/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=oS(),r=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=r}}),cS=W({"node_modules/@nodelib/fs.walk/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ae("path"),r=cl(),n=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,s){return i??s}};e.default=n}}),hl=W({"node_modules/@nodelib/fs.walk/out/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var t=uS(),r=aS(),n=lS(),i=cS();e.Settings=i.default;function s(l,c,f){if(typeof c=="function"){new t.default(l,o()).read(c);return}new t.default(l,o(c)).read(f)}e.walk=s;function u(l,c){let f=o(c);return new n.default(l,f).read()}e.walkSync=u;function a(l,c){let f=o(c);return new r.default(l,f).read()}e.walkStream=a;function o(l={}){return l instanceof i.default?l:new i.default(l)}}}),dl=W({"node_modules/fast-glob/out/readers/reader.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ae("path"),r=jn(),n=Lr(),i=class{constructor(s){this._settings=s,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(s){return t.resolve(this._settings.cwd,s)}_makeEntry(s,u){let a={name:u,path:u,dirent:n.fs.createDirentFromStats(u,s)};return this._settings.stats&&(a.stats=s),a}_isFatalError(s){return!n.errno.isEnoentCodeError(s)&&!this._settings.suppressErrors}};e.default=i}}),kD=W({"node_modules/fast-glob/out/readers/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ae("stream"),r=jn(),n=hl(),i=dl(),s=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=r.stat}dynamic(u,a){return this._walkStream(u,a)}static(u,a){let o=u.map(this._getFullEntryPath,this),l=new t.PassThrough({objectMode:!0});l._write=(c,f,h)=>this._getEntry(o[c],u[c],a).then(d=>{d!==null&&a.entryFilter(d)&&l.push(d),c===o.length-1&&l.end(),h()}).catch(h);for(let c=0;c<o.length;c++)l.write(c);return l}_getEntry(u,a,o){return this._getStat(u).then(l=>this._makeEntry(l,a)).catch(l=>{if(o.errorFilter(l))return null;throw l})}_getStat(u){return new Promise((a,o)=>{this._stat(u,this._fsStatSettings,(l,c)=>l===null?a(c):o(l))})}};e.default=s}}),fS=W({"node_modules/fast-glob/out/readers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=hl(),r=dl(),n=kD(),i=class extends r.default{constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new n.default(this._settings)}dynamic(s,u){return new Promise((a,o)=>{this._walkAsync(s,u,(l,c)=>{l===null?a(c):o(l)})})}async static(s,u){let a=[],o=this._readerStream.static(s,u);return new Promise((l,c)=>{o.once("error",c),o.on("data",f=>a.push(f)),o.once("end",()=>l(a))})}};e.default=i}}),hS=W({"node_modules/fast-glob/out/providers/matchers/matcher.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Lr(),r=class{constructor(n,i,s){this._patterns=n,this._settings=i,this._micromatchOptions=s,this._storage=[],this._fillStorage()}_fillStorage(){for(let n of this._patterns){let i=this._getPatternSegments(n),s=this._splitSegmentsIntoSections(i);this._storage.push({complete:s.length<=1,pattern:n,segments:i,sections:s})}}_getPatternSegments(n){return t.pattern.getPatternParts(n,this._micromatchOptions).map(s=>t.pattern.isDynamicPattern(s,this._settings)?{dynamic:!0,pattern:s,patternRe:t.pattern.makeRe(s,this._micromatchOptions)}:{dynamic:!1,pattern:s})}_splitSegmentsIntoSections(n){return t.array.splitWhen(n,i=>i.dynamic&&t.pattern.hasGlobStar(i.pattern))}};e.default=r}}),dS=W({"node_modules/fast-glob/out/providers/matchers/partial.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=hS(),r=class extends t.default{match(n){let i=n.split("/"),s=i.length,u=this._storage.filter(a=>!a.complete||a.segments.length>s);for(let a of u){let o=a.sections[0];if(!a.complete&&s>o.length||i.every((c,f)=>{let h=a.segments[f];return!!(h.dynamic&&h.patternRe.test(c)||!h.dynamic&&h.pattern===c)}))return!0}return!1}};e.default=r}}),pS=W({"node_modules/fast-glob/out/providers/filters/deep.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Lr(),r=dS(),n=class{constructor(i,s){this._settings=i,this._micromatchOptions=s}getFilter(i,s,u){let a=this._getMatcher(s),o=this._getNegativePatternsRe(u);return l=>this._filter(i,l,a,o)}_getMatcher(i){return new r.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let s=i.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(s,this._micromatchOptions)}_filter(i,s,u,a){if(this._isSkippedByDeep(i,s.path)||this._isSkippedSymbolicLink(s))return!1;let o=t.path.removeLeadingDotSegment(s.path);return this._isSkippedByPositivePatterns(o,u)?!1:this._isSkippedByNegativePatterns(o,a)}_isSkippedByDeep(i,s){return this._settings.deep===1/0?!1:this._getEntryLevel(i,s)>=this._settings.deep}_getEntryLevel(i,s){let u=s.split("/").length;if(i==="")return u;let a=i.split("/").length;return u-a}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,s){return!this._settings.baseNameMatch&&!s.match(i)}_isSkippedByNegativePatterns(i,s){return!t.pattern.matchAny(i,s)}};e.default=n}}),DS=W({"node_modules/fast-glob/out/providers/filters/entry.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Lr(),r=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let[s,u]=t.pattern.partitionAbsoluteAndRelative(i),a={positive:{all:t.pattern.convertPatternsToRe(n,this._micromatchOptions)},negative:{absolute:t.pattern.convertPatternsToRe(s,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:t.pattern.convertPatternsToRe(u,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return o=>this._filter(o,a)}_filter(n,i){let s=t.path.removeLeadingDotSegment(n.path);if(this._settings.unique&&this._isDuplicateEntry(s)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n))return!1;let u=this._isMatchToPatternsSet(s,i,n.dirent.isDirectory());return this._settings.unique&&u&&this._createIndexRecord(s),u}_isDuplicateEntry(n){return this.index.has(n)}_createIndexRecord(n){this.index.set(n,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isMatchToPatternsSet(n,i,s){return!(!this._isMatchToPatterns(n,i.positive.all,s)||this._isMatchToPatterns(n,i.negative.relative,s)||this._isMatchToAbsoluteNegative(n,i.negative.absolute,s))}_isMatchToAbsoluteNegative(n,i,s){if(i.length===0)return!1;let u=t.path.makeAbsolute(this._settings.cwd,n);return this._isMatchToPatterns(u,i,s)}_isMatchToPatterns(n,i,s){if(i.length===0)return!1;let u=t.pattern.matchAny(n,i);return!u&&s?t.pattern.matchAny(n+"/",i):u}};e.default=r}}),mS=W({"node_modules/fast-glob/out/providers/filters/error.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Lr(),r=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return t.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};e.default=r}}),gS=W({"node_modules/fast-glob/out/providers/transformers/entry.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Lr(),r=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=t.path.makeAbsolute(this._settings.cwd,i),i=t.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};e.default=r}}),pl=W({"node_modules/fast-glob/out/providers/provider.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ae("path"),r=pS(),n=DS(),i=mS(),s=gS(),u=class{constructor(a){this._settings=a,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new s.default(this._settings)}_getRootDirectory(a){return t.resolve(this._settings.cwd,a.base)}_getReaderOptions(a){let o=a.base==="."?"":a.base;return{basePath:o,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(o,a.positive,a.negative),entryFilter:this.entryFilter.getFilter(a.positive,a.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=u}}),_S=W({"node_modules/fast-glob/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=fS(),r=pl(),n=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(i){let s=this._getRootDirectory(i),u=this._getReaderOptions(i);return(await this.api(s,i,u)).map(o=>u.transform(o))}api(i,s,u){return s.dynamic?this._reader.dynamic(i,u):this._reader.static(s.patterns,u)}};e.default=n}}),yS=W({"node_modules/fast-glob/out/providers/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ae("stream"),r=kD(),n=pl(),i=class extends n.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(s){let u=this._getRootDirectory(s),a=this._getReaderOptions(s),o=this.api(u,s,a),l=new t.Readable({objectMode:!0,read:()=>{}});return o.once("error",c=>l.emit("error",c)).on("data",c=>l.emit("data",a.transform(c))).once("end",()=>l.emit("end")),l.once("close",()=>o.destroy()),l}api(s,u,a){return u.dynamic?this._reader.dynamic(s,a):this._reader.static(u.patterns,a)}};e.default=i}}),ES=W({"node_modules/fast-glob/out/readers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=jn(),r=hl(),n=dl(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=t.statSync}dynamic(s,u){return this._walkSync(s,u)}static(s,u){let a=[];for(let o of s){let l=this._getFullEntryPath(o),c=this._getEntry(l,o,u);c===null||!u.entryFilter(c)||a.push(c)}return a}_getEntry(s,u,a){try{let o=this._getStat(s);return this._makeEntry(o,u)}catch(o){if(a.errorFilter(o))return null;throw o}}_getStat(s){return this._statSync(s,this._fsStatSettings)}};e.default=i}}),vS=W({"node_modules/fast-glob/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=ES(),r=pl(),n=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(i){let s=this._getRootDirectory(i),u=this._getReaderOptions(i);return this.api(s,i,u).map(u.transform)}api(i,s,u){return s.dynamic?this._reader.dynamic(i,u):this._reader.static(s.patterns,u)}};e.default=n}}),FS=W({"node_modules/fast-glob/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var t=Ae("fs"),r=Ae("os"),n=Math.max(r.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};var i=class{constructor(s={}){this._options=s,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,n),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(s,u){return s===void 0?u:s}_getFileSystemMethods(s={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),s)}};e.default=i}}),CS=W({"node_modules/fast-glob/out/index.js"(e,t){"use strict";var r=V1(),n=_S(),i=yS(),s=vS(),u=FS(),a=Lr();async function o(f,h){c(f);let d=l(f,n.default,h),p=await Promise.all(d);return a.array.flatten(p)}(function(f){f.glob=f,f.globSync=h,f.globStream=d,f.async=f;function h(C,E){c(C);let T=l(C,s.default,E);return a.array.flatten(T)}f.sync=h;function d(C,E){c(C);let T=l(C,i.default,E);return a.stream.merge(T)}f.stream=d;function p(C,E){c(C);let T=[].concat(C),P=new u.default(E);return r.generate(T,P)}f.generateTasks=p;function D(C,E){c(C);let T=new u.default(E);return a.pattern.isDynamicPattern(C,T)}f.isDynamicPattern=D;function w(C){return c(C),a.path.escape(C)}f.escapePath=w;function y(C){return c(C),a.path.convertPathToPattern(C)}f.convertPathToPattern=y;let m;(function(C){function E(P){return c(P),a.path.escapePosixPath(P)}C.escapePath=E;function T(P){return c(P),a.path.convertPosixPathToPattern(P)}C.convertPathToPattern=T})(m=f.posix||(f.posix={}));let g;(function(C){function E(P){return c(P),a.path.escapeWindowsPath(P)}C.escapePath=E;function T(P){return c(P),a.path.convertWindowsPathToPattern(P)}C.convertPathToPattern=T})(g=f.win32||(f.win32={}))})(o||(o={}));function l(f,h,d){let p=[].concat(f),D=new u.default(d),w=r.generate(p,D),y=new h(D);return w.map(y.read,y)}function c(f){if(![].concat(f).every(p=>a.string.isString(p)&&!a.string.isEmpty(p)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}t.exports=o}}),Pi=W({"node_modules/picocolors/picocolors.js"(e,t){var r=process||{},n=r.argv||[],i=r.env||{},s=!(i.NO_COLOR||n.includes("--no-color"))&&(!!i.FORCE_COLOR||n.includes("--color")||r.platform==="win32"||(r.stdout||{}).isTTY&&i.TERM!=="dumb"||!!i.CI),u=(l,c,f=l)=>h=>{let d=""+h,p=d.indexOf(c,l.length);return~p?l+a(d,c,f,p)+c:l+d+c},a=(l,c,f,h)=>{let d="",p=0;do d+=l.substring(p,h)+f,p=h+c.length,h=l.indexOf(c,p);while(~h);return d+l.substring(p)},o=(l=s)=>{let c=l?u:()=>String;return{isColorSupported:l,reset:c("\x1B[0m","\x1B[0m"),bold:c("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:c("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:c("\x1B[3m","\x1B[23m"),underline:c("\x1B[4m","\x1B[24m"),inverse:c("\x1B[7m","\x1B[27m"),hidden:c("\x1B[8m","\x1B[28m"),strikethrough:c("\x1B[9m","\x1B[29m"),black:c("\x1B[30m","\x1B[39m"),red:c("\x1B[31m","\x1B[39m"),green:c("\x1B[32m","\x1B[39m"),yellow:c("\x1B[33m","\x1B[39m"),blue:c("\x1B[34m","\x1B[39m"),magenta:c("\x1B[35m","\x1B[39m"),cyan:c("\x1B[36m","\x1B[39m"),white:c("\x1B[37m","\x1B[39m"),gray:c("\x1B[90m","\x1B[39m"),bgBlack:c("\x1B[40m","\x1B[49m"),bgRed:c("\x1B[41m","\x1B[49m"),bgGreen:c("\x1B[42m","\x1B[49m"),bgYellow:c("\x1B[43m","\x1B[49m"),bgBlue:c("\x1B[44m","\x1B[49m"),bgMagenta:c("\x1B[45m","\x1B[49m"),bgCyan:c("\x1B[46m","\x1B[49m"),bgWhite:c("\x1B[47m","\x1B[49m"),blackBright:c("\x1B[90m","\x1B[39m"),redBright:c("\x1B[91m","\x1B[39m"),greenBright:c("\x1B[92m","\x1B[39m"),yellowBright:c("\x1B[93m","\x1B[39m"),blueBright:c("\x1B[94m","\x1B[39m"),magentaBright:c("\x1B[95m","\x1B[39m"),cyanBright:c("\x1B[96m","\x1B[39m"),whiteBright:c("\x1B[97m","\x1B[39m"),bgBlackBright:c("\x1B[100m","\x1B[49m"),bgRedBright:c("\x1B[101m","\x1B[49m"),bgGreenBright:c("\x1B[102m","\x1B[49m"),bgYellowBright:c("\x1B[103m","\x1B[49m"),bgBlueBright:c("\x1B[104m","\x1B[49m"),bgMagentaBright:c("\x1B[105m","\x1B[49m"),bgCyanBright:c("\x1B[106m","\x1B[49m"),bgWhiteBright:c("\x1B[107m","\x1B[49m")}};t.exports=o(),t.exports.createColors=o}}),PD=W({"node_modules/semver/internal/debug.js"(e,t){"use strict";var r=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};t.exports=r}}),OD=W({"node_modules/semver/internal/constants.js"(e,t){"use strict";var r="2.0.0",n=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,s=16,u=n-6,a=["major","premajor","minor","preminor","patch","prepatch","prerelease"];t.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:u,MAX_SAFE_INTEGER:i,RELEASE_TYPES:a,SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),AS=W({"node_modules/semver/internal/re.js"(e,t){"use strict";var{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=OD(),s=PD();e=t.exports={};var u=e.re=[],a=e.safeRe=[],o=e.src=[],l=e.safeSrc=[],c=e.t={},f=0,h="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",i],[h,n]],p=w=>{for(let[y,m]of d)w=w.split(`${y}*`).join(`${y}{0,${m}}`).split(`${y}+`).join(`${y}{1,${m}}`);return w},D=(w,y,m)=>{let g=p(y),C=f++;s(w,C,y),c[w]=C,o[C]=y,l[C]=g,u[C]=new RegExp(y,m?"g":void 0),a[C]=new RegExp(g,m?"g":void 0)};D("NUMERICIDENTIFIER","0|[1-9]\\d*"),D("NUMERICIDENTIFIERLOOSE","\\d+"),D("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),D("MAINVERSION",`(${o[c.NUMERICIDENTIFIER]})\\.(${o[c.NUMERICIDENTIFIER]})\\.(${o[c.NUMERICIDENTIFIER]})`),D("MAINVERSIONLOOSE",`(${o[c.NUMERICIDENTIFIERLOOSE]})\\.(${o[c.NUMERICIDENTIFIERLOOSE]})\\.(${o[c.NUMERICIDENTIFIERLOOSE]})`),D("PRERELEASEIDENTIFIER",`(?:${o[c.NONNUMERICIDENTIFIER]}|${o[c.NUMERICIDENTIFIER]})`),D("PRERELEASEIDENTIFIERLOOSE",`(?:${o[c.NONNUMERICIDENTIFIER]}|${o[c.NUMERICIDENTIFIERLOOSE]})`),D("PRERELEASE",`(?:-(${o[c.PRERELEASEIDENTIFIER]}(?:\\.${o[c.PRERELEASEIDENTIFIER]})*))`),D("PRERELEASELOOSE",`(?:-?(${o[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[c.PRERELEASEIDENTIFIERLOOSE]})*))`),D("BUILDIDENTIFIER",`${h}+`),D("BUILD",`(?:\\+(${o[c.BUILDIDENTIFIER]}(?:\\.${o[c.BUILDIDENTIFIER]})*))`),D("FULLPLAIN",`v?${o[c.MAINVERSION]}${o[c.PRERELEASE]}?${o[c.BUILD]}?`),D("FULL",`^${o[c.FULLPLAIN]}$`),D("LOOSEPLAIN",`[v=\\s]*${o[c.MAINVERSIONLOOSE]}${o[c.PRERELEASELOOSE]}?${o[c.BUILD]}?`),D("LOOSE",`^${o[c.LOOSEPLAIN]}$`),D("GTLT","((?:<|>)?=?)"),D("XRANGEIDENTIFIERLOOSE",`${o[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),D("XRANGEIDENTIFIER",`${o[c.NUMERICIDENTIFIER]}|x|X|\\*`),D("XRANGEPLAIN",`[v=\\s]*(${o[c.XRANGEIDENTIFIER]})(?:\\.(${o[c.XRANGEIDENTIFIER]})(?:\\.(${o[c.XRANGEIDENTIFIER]})(?:${o[c.PRERELEASE]})?${o[c.BUILD]}?)?)?`),D("XRANGEPLAINLOOSE",`[v=\\s]*(${o[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[c.XRANGEIDENTIFIERLOOSE]})(?:${o[c.PRERELEASELOOSE]})?${o[c.BUILD]}?)?)?`),D("XRANGE",`^${o[c.GTLT]}\\s*${o[c.XRANGEPLAIN]}$`),D("XRANGELOOSE",`^${o[c.GTLT]}\\s*${o[c.XRANGEPLAINLOOSE]}$`),D("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),D("COERCE",`${o[c.COERCEPLAIN]}(?:$|[^\\d])`),D("COERCEFULL",o[c.COERCEPLAIN]+`(?:${o[c.PRERELEASE]})?(?:${o[c.BUILD]})?(?:$|[^\\d])`),D("COERCERTL",o[c.COERCE],!0),D("COERCERTLFULL",o[c.COERCEFULL],!0),D("LONETILDE","(?:~>?)"),D("TILDETRIM",`(\\s*)${o[c.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",D("TILDE",`^${o[c.LONETILDE]}${o[c.XRANGEPLAIN]}$`),D("TILDELOOSE",`^${o[c.LONETILDE]}${o[c.XRANGEPLAINLOOSE]}$`),D("LONECARET","(?:\\^)"),D("CARETTRIM",`(\\s*)${o[c.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",D("CARET",`^${o[c.LONECARET]}${o[c.XRANGEPLAIN]}$`),D("CARETLOOSE",`^${o[c.LONECARET]}${o[c.XRANGEPLAINLOOSE]}$`),D("COMPARATORLOOSE",`^${o[c.GTLT]}\\s*(${o[c.LOOSEPLAIN]})$|^$`),D("COMPARATOR",`^${o[c.GTLT]}\\s*(${o[c.FULLPLAIN]})$|^$`),D("COMPARATORTRIM",`(\\s*)${o[c.GTLT]}\\s*(${o[c.LOOSEPLAIN]}|${o[c.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",D("HYPHENRANGE",`^\\s*(${o[c.XRANGEPLAIN]})\\s+-\\s+(${o[c.XRANGEPLAIN]})\\s*$`),D("HYPHENRANGELOOSE",`^\\s*(${o[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[c.XRANGEPLAINLOOSE]})\\s*$`),D("STAR","(<|>)?=?\\s*\\*"),D("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),D("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),wS=W({"node_modules/semver/internal/parse-options.js"(e,t){"use strict";var r=Object.freeze({loose:!0}),n=Object.freeze({}),i=s=>s?typeof s!="object"?r:s:n;t.exports=i}}),bS=W({"node_modules/semver/internal/identifiers.js"(e,t){"use strict";var r=/^[0-9]+$/,n=(s,u)=>{if(typeof s=="number"&&typeof u=="number")return s===u?0:s<u?-1:1;let a=r.test(s),o=r.test(u);return a&&o&&(s=+s,u=+u),s===u?0:a&&!o?-1:o&&!a?1:s<u?-1:1},i=(s,u)=>n(u,s);t.exports={compareIdentifiers:n,rcompareIdentifiers:i}}}),SS=W({"node_modules/semver/classes/semver.js"(e,t){"use strict";var r=PD(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:i}=OD(),{safeRe:s,t:u}=AS(),a=wS(),{compareIdentifiers:o}=bS(),l=class Ut{constructor(f,h){if(h=a(h),f instanceof Ut){if(f.loose===!!h.loose&&f.includePrerelease===!!h.includePrerelease)return f;f=f.version}else if(typeof f!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof f}".`);if(f.length>n)throw new TypeError(`version is longer than ${n} characters`);r("SemVer",f,h),this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease;let d=f.trim().match(h.loose?s[u.LOOSE]:s[u.FULL]);if(!d)throw new TypeError(`Invalid Version: ${f}`);if(this.raw=f,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(p=>{if(/^[0-9]+$/.test(p)){let D=+p;if(D>=0&&D<i)return D}return p}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(f){if(r("SemVer.compare",this.version,this.options,f),!(f instanceof Ut)){if(typeof f=="string"&&f===this.version)return 0;f=new Ut(f,this.options)}return f.version===this.version?0:this.compareMain(f)||this.comparePre(f)}compareMain(f){return f instanceof Ut||(f=new Ut(f,this.options)),this.major<f.major?-1:this.major>f.major?1:this.minor<f.minor?-1:this.minor>f.minor?1:this.patch<f.patch?-1:this.patch>f.patch?1:0}comparePre(f){if(f instanceof Ut||(f=new Ut(f,this.options)),this.prerelease.length&&!f.prerelease.length)return-1;if(!this.prerelease.length&&f.prerelease.length)return 1;if(!this.prerelease.length&&!f.prerelease.length)return 0;let h=0;do{let d=this.prerelease[h],p=f.prerelease[h];if(r("prerelease compare",h,d,p),d===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(d===void 0)return-1;if(d===p)continue;return o(d,p)}while(++h)}compareBuild(f){f instanceof Ut||(f=new Ut(f,this.options));let h=0;do{let d=this.build[h],p=f.build[h];if(r("build compare",h,d,p),d===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(d===void 0)return-1;if(d===p)continue;return o(d,p)}while(++h)}inc(f,h,d){if(f.startsWith("pre")){if(!h&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(h){let p=`-${h}`.match(this.options.loose?s[u.PRERELEASELOOSE]:s[u.PRERELEASE]);if(!p||p[1]!==h)throw new Error(`invalid identifier: ${h}`)}}switch(f){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",h,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",h,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",h,d),this.inc("pre",h,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",h,d),this.inc("pre",h,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let p=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[p];else{let D=this.prerelease.length;for(;--D>=0;)typeof this.prerelease[D]=="number"&&(this.prerelease[D]++,D=-2);if(D===-1){if(h===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(p)}}if(h){let D=[h,p];d===!1&&(D=[h]),o(this.prerelease[0],h)===0?isNaN(this.prerelease[1])&&(this.prerelease=D):this.prerelease=D}break}default:throw new Error(`invalid increment argument: ${f}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};t.exports=l}}),RS=W({"node_modules/semver/functions/compare.js"(e,t){"use strict";var r=SS(),n=(i,s,u)=>new r(i,u).compare(new r(s,u));t.exports=n}}),TS=W({"node_modules/semver/functions/gte.js"(e,t){"use strict";var r=RS(),n=(i,s,u)=>r(i,s,u)>=0;t.exports=n}}),BS=W({"node_modules/pseudomap/pseudomap.js"(e,t){var r=Object.prototype.hasOwnProperty;t.exports=n;function n(o){if(!(this instanceof n))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),o)if(o instanceof n||typeof Map=="function"&&o instanceof Map)o.forEach(function(l,c){this.set(c,l)},this);else if(Array.isArray(o))o.forEach(function(l){this.set(l[0],l[1])},this);else throw new TypeError("invalid argument")}n.prototype.forEach=function(o,l){l=l||this,Object.keys(this._data).forEach(function(c){c!=="size"&&o.call(l,this._data[c].value,this._data[c].key)},this)},n.prototype.has=function(o){return!!u(this._data,o)},n.prototype.get=function(o){var l=u(this._data,o);return l&&l.value},n.prototype.set=function(o,l){a(this._data,o,l)},n.prototype.delete=function(o){var l=u(this._data,o);l&&(delete this._data[l._index],this._data.size--)},n.prototype.clear=function(){var o=Object.create(null);o.size=0,Object.defineProperty(this,"_data",{value:o,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(n.prototype,"size",{get:function(){return this._data.size},set:function(o){},enumerable:!0,configurable:!0}),n.prototype.values=n.prototype.keys=n.prototype.entries=function(){throw new Error("iterators are not implemented in this version")};function i(o,l){return o===l||o!==o&&l!==l}function s(o,l,c){this.key=o,this.value=l,this._index=c}function u(o,l){for(var c=0,f="_"+l,h=f;r.call(o,h);h=f+c++)if(i(o[h].key,l))return o[h]}function a(o,l,c){for(var f=0,h="_"+l,d=h;r.call(o,d);d=h+f++)if(i(o[d].key,l)){o[d].value=c;return}o.size++,o[d]=new s(l,c,d)}}}),xS=W({"node_modules/pseudomap/map.js"(e,t){process.env.npm_package_name==="pseudomap"&&process.env.npm_lifecycle_script==="test"&&(process.env.TEST_PSEUDOMAP="true"),typeof Map=="function"&&!process.env.TEST_PSEUDOMAP?t.exports=Map:t.exports=BS()}}),kS=W({"node_modules/yallist/yallist.js"(e,t){t.exports=r,r.Node=s,r.create=r;function r(u){var a=this;if(a instanceof r||(a=new r),a.tail=null,a.head=null,a.length=0,u&&typeof u.forEach=="function")u.forEach(function(c){a.push(c)});else if(arguments.length>0)for(var o=0,l=arguments.length;o<l;o++)a.push(arguments[o]);return a}r.prototype.removeNode=function(u){if(u.list!==this)throw new Error("removing node which does not belong to this list");var a=u.next,o=u.prev;a&&(a.prev=o),o&&(o.next=a),u===this.head&&(this.head=a),u===this.tail&&(this.tail=o),u.list.length--,u.next=null,u.prev=null,u.list=null},r.prototype.unshiftNode=function(u){if(u!==this.head){u.list&&u.list.removeNode(u);var a=this.head;u.list=this,u.next=a,a&&(a.prev=u),this.head=u,this.tail||(this.tail=u),this.length++}},r.prototype.pushNode=function(u){if(u!==this.tail){u.list&&u.list.removeNode(u);var a=this.tail;u.list=this,u.prev=a,a&&(a.next=u),this.tail=u,this.head||(this.head=u),this.length++}},r.prototype.push=function(){for(var u=0,a=arguments.length;u<a;u++)n(this,arguments[u]);return this.length},r.prototype.unshift=function(){for(var u=0,a=arguments.length;u<a;u++)i(this,arguments[u]);return this.length},r.prototype.pop=function(){if(this.tail){var u=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,u}},r.prototype.shift=function(){if(this.head){var u=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,u}},r.prototype.forEach=function(u,a){a=a||this;for(var o=this.head,l=0;o!==null;l++)u.call(a,o.value,l,this),o=o.next},r.prototype.forEachReverse=function(u,a){a=a||this;for(var o=this.tail,l=this.length-1;o!==null;l--)u.call(a,o.value,l,this),o=o.prev},r.prototype.get=function(u){for(var a=0,o=this.head;o!==null&&a<u;a++)o=o.next;if(a===u&&o!==null)return o.value},r.prototype.getReverse=function(u){for(var a=0,o=this.tail;o!==null&&a<u;a++)o=o.prev;if(a===u&&o!==null)return o.value},r.prototype.map=function(u,a){a=a||this;for(var o=new r,l=this.head;l!==null;)o.push(u.call(a,l.value,this)),l=l.next;return o},r.prototype.mapReverse=function(u,a){a=a||this;for(var o=new r,l=this.tail;l!==null;)o.push(u.call(a,l.value,this)),l=l.prev;return o},r.prototype.reduce=function(u,a){var o,l=this.head;if(arguments.length>1)o=a;else if(this.head)l=this.head.next,o=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=0;l!==null;c++)o=u(o,l.value,c),l=l.next;return o},r.prototype.reduceReverse=function(u,a){var o,l=this.tail;if(arguments.length>1)o=a;else if(this.tail)l=this.tail.prev,o=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=this.length-1;l!==null;c--)o=u(o,l.value,c),l=l.prev;return o},r.prototype.toArray=function(){for(var u=new Array(this.length),a=0,o=this.head;o!==null;a++)u[a]=o.value,o=o.next;return u},r.prototype.toArrayReverse=function(){for(var u=new Array(this.length),a=0,o=this.tail;o!==null;a++)u[a]=o.value,o=o.prev;return u},r.prototype.slice=function(u,a){a=a||this.length,a<0&&(a+=this.length),u=u||0,u<0&&(u+=this.length);var o=new r;if(a<u||a<0)return o;u<0&&(u=0),a>this.length&&(a=this.length);for(var l=0,c=this.head;c!==null&&l<u;l++)c=c.next;for(;c!==null&&l<a;l++,c=c.next)o.push(c.value);return o},r.prototype.sliceReverse=function(u,a){a=a||this.length,a<0&&(a+=this.length),u=u||0,u<0&&(u+=this.length);var o=new r;if(a<u||a<0)return o;u<0&&(u=0),a>this.length&&(a=this.length);for(var l=this.length,c=this.tail;c!==null&&l>a;l--)c=c.prev;for(;c!==null&&l>u;l--,c=c.prev)o.push(c.value);return o},r.prototype.reverse=function(){for(var u=this.head,a=this.tail,o=u;o!==null;o=o.prev){var l=o.prev;o.prev=o.next,o.next=l}return this.head=a,this.tail=u,this};function n(u,a){u.tail=new s(a,u.tail,null,u),u.head||(u.head=u.tail),u.length++}function i(u,a){u.head=new s(a,null,u.head,u),u.tail||(u.tail=u.head),u.length++}function s(u,a,o,l){if(!(this instanceof s))return new s(u,a,o,l);this.list=l,this.value=u,a?(a.next=this,this.prev=a):this.prev=null,o?(o.prev=this,this.next=o):this.next=null}}}),PS=W({"node_modules/editorconfig/node_modules/lru-cache/index.js"(e,t){"use strict";t.exports=y;var r=xS(),n=Ae("util"),i=kS(),s=typeof Symbol=="function"&&process.env._nodeLRUCacheForceNoSymbol!=="1",u;s?u=function(b){return Symbol(b)}:u=function(b){return"_"+b};var a=u("max"),o=u("length"),l=u("lengthCalculator"),c=u("allowStale"),f=u("maxAge"),h=u("dispose"),d=u("noDisposeOnSet"),p=u("lruList"),D=u("cache");function w(){return 1}function y(b){if(!(this instanceof y))return new y(b);typeof b=="number"&&(b={max:b}),b||(b={});var B=this[a]=b.max;(!B||typeof B!="number"||B<=0)&&(this[a]=1/0);var O=b.length||w;typeof O!="function"&&(O=w),this[l]=O,this[c]=b.stale||!1,this[f]=b.maxAge||0,this[h]=b.dispose,this[d]=b.noDisposeOnSet||!1,this.reset()}Object.defineProperty(y.prototype,"max",{set:function(b){(!b||typeof b!="number"||b<=0)&&(b=1/0),this[a]=b,E(this)},get:function(){return this[a]},enumerable:!0}),Object.defineProperty(y.prototype,"allowStale",{set:function(b){this[c]=!!b},get:function(){return this[c]},enumerable:!0}),Object.defineProperty(y.prototype,"maxAge",{set:function(b){(!b||typeof b!="number"||b<0)&&(b=0),this[f]=b,E(this)},get:function(){return this[f]},enumerable:!0}),Object.defineProperty(y.prototype,"lengthCalculator",{set:function(b){typeof b!="function"&&(b=w),b!==this[l]&&(this[l]=b,this[o]=0,this[p].forEach(function(B){B.length=this[l](B.value,B.key),this[o]+=B.length},this)),E(this)},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(y.prototype,"length",{get:function(){return this[o]},enumerable:!0}),Object.defineProperty(y.prototype,"itemCount",{get:function(){return this[p].length},enumerable:!0}),y.prototype.rforEach=function(b,B){B=B||this;for(var O=this[p].tail;O!==null;){var A=O.prev;m(this,b,O,B),O=A}};function m(b,B,O,A){var S=O.value;C(b,S)&&(T(b,O),b[c]||(S=void 0)),S&&B.call(A,S.value,S.key,b)}y.prototype.forEach=function(b,B){B=B||this;for(var O=this[p].head;O!==null;){var A=O.next;m(this,b,O,B),O=A}},y.prototype.keys=function(){return this[p].toArray().map(function(b){return b.key},this)},y.prototype.values=function(){return this[p].toArray().map(function(b){return b.value},this)},y.prototype.reset=function(){this[h]&&this[p]&&this[p].length&&this[p].forEach(function(b){this[h](b.key,b.value)},this),this[D]=new r,this[p]=new i,this[o]=0},y.prototype.dump=function(){return this[p].map(function(b){if(!C(this,b))return{k:b.key,v:b.value,e:b.now+(b.maxAge||0)}},this).toArray().filter(function(b){return b})},y.prototype.dumpLru=function(){return this[p]},y.prototype.inspect=function(b,B){var O="LRUCache {",A=!1,S=this[c];S&&(O+=`
|
|
598
|
+
`?zb(0,C,`
|
|
599
|
+
`,i):C;E&&(a+=E,u.length>0&&(s+=Ep(E)));break}case tr:for(let E=C.length-1;E>=0;E--)u.push({indent:m,mode:g,doc:C[E]});break;case rn:if(c.length>=2)throw new Error("There are too many 'cursor' in doc.");c.push(d+a.length);break;case Fr:u.push({indent:h1(m,t),mode:g,doc:C.contents});break;case Cr:u.push({indent:f1(m,C.n,t),mode:g,doc:C.contents});break;case Ar:y();break;case Rt:switch(g){case jt:if(!o){u.push({indent:m,mode:C.break?mt:jt,doc:C.contents});break}case mt:{o=!1;let E={indent:m,mode:jt,doc:C.contents},T=n-s,P=l.length>0;if(!C.break&&Qs(E,u,T,P,r))u.push(E);else if(C.expandedStates){let b=er(0,C.expandedStates,-1);if(C.break){u.push({indent:m,mode:mt,doc:b});break}else for(let B=1;B<C.expandedStates.length+1;B++)if(B>=C.expandedStates.length){u.push({indent:m,mode:mt,doc:b});break}else{let O=C.expandedStates[B],A={indent:m,mode:jt,doc:O};if(Qs(A,u,T,P,r)){u.push(A);break}}}else u.push({indent:m,mode:mt,doc:C.contents});break}}C.id&&(r[C.id]=er(0,u,-1).mode);break;case wr:{let E=n-s,T=C[So]??0,{parts:P}=C,b=P.length-T;if(b===0)break;let B=P[T+0],O=P[T+1],A={indent:m,mode:jt,doc:B},S={indent:m,mode:mt,doc:B},v=Qs(A,[],E,l.length>0,r,!0);if(b===1){v?u.push(A):u.push(S);break}let F={indent:m,mode:jt,doc:O},R={indent:m,mode:mt,doc:O};if(b===2){v?u.push(F,A):u.push(R,S);break}let k=P[T+2],M={indent:m,mode:g,doc:{...C,[So]:T+2}},$=Qs({indent:m,mode:jt,doc:[B,O,k]},[],E,l.length>0,r,!0);u.push(M),$?u.push(F,A):v?u.push(R,A):u.push(R,S);break}case Ot:case br:{let E=C.groupId?r[C.groupId]:g;if(E===mt){let T=C.type===Ot?C.breakContents:C.negate?C.contents:Zs(C.contents);T&&u.push({indent:m,mode:g,doc:T})}if(E===jt){let T=C.type===Ot?C.flatContents:C.negate?Zs(C.contents):C.contents;T&&u.push({indent:m,mode:g,doc:T})}break}case Sr:l.push({indent:m,mode:g,doc:C.contents});break;case Rr:l.length>0&&u.push({indent:m,mode:g,doc:xo});break;case ot:switch(g){case jt:if(C.hard)o=!0;else{C.soft||(a+=" ",s+=1);break}case mt:if(l.length>0){u.push({indent:m,mode:g,doc:C},...l.reverse()),l.length=0;break}C.literal?(a+=i,s=0,m.root&&(m.root.value&&(a+=m.root.value),s=m.root.length)):(y(),a+=i+m.value,s=m.length);break}break;case Tr:u.push({indent:m,mode:g,doc:C.contents});break;case Ht:break;default:throw new kn(C)}u.length===0&&l.length>0&&(u.push(...l.reverse()),l.length=0)}let p=f.join("")+a,D=[...h,...c];if(D.length!==2)return{formatted:p};let w=D[0];return{formatted:p,cursorNodeStart:w,cursorNodeText:p.slice(w,er(0,D,-1))};function y(){let{text:m,count:g}=Sp(a);m&&(f.push(m),d+=m.length),a="",s-=g,c.length>0&&(h.push(...c.map(C=>Math.min(C,d))),c.length=0)}}var qt={join:gp,line:$b,softline:Hb,hardline:qb,literalline:yp,group:mp,conditionalGroup:Lb,fill:Ib,lineSuffix:Ub,lineSuffixBoundary:Gb,cursor:Ob,breakParent:Bo,ifBreak:Nb,trim:Wb,indent:Zs,indentIfBreak:Mb,align:Pn,addAlignmentToDoc:Pb,markAsRoot:xb,dedentToRoot:Bb,dedent:kb,hardlineWithoutBreakParent:xo,literallineWithoutBreakParent:_p,label:jb,concat:e=>e},ru={printDocToString:p1},nu={willBreak:_b,traverseDoc:Ro,findInDoc:To,mapDoc:tu,removeLines:vb,stripTrailingHardline:Fb,replaceEndOfLine:wb,canBreak:Sb};import{ok as vB,strictEqual as sD}from"assert";import Cx from"path";import{fileURLToPath as Sx}from"url";import FD from"path";import{pathToFileURL as CD}from"url";import cP from"path";import mu from"path";import yP from"url";var On=D1(import.meta.url),_1=m1(import.meta.url),N4=g1(_1),y1=Object.create,al=Object.defineProperty,E1=Object.getOwnPropertyDescriptor,AD=Object.getOwnPropertyNames,v1=Object.getPrototypeOf,F1=Object.prototype.hasOwnProperty,Ae=(e=>typeof On<"u"?On:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof On<"u"?On:t)[r]}):e)(function(e){if(typeof On<"u")return On.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),W=(e,t)=>function(){return t||(0,e[AD(e)[0]])((t={exports:{}}).exports,t),t.exports},Eu=(e,t)=>{for(var r in t)al(e,r,{get:t[r],enumerable:!0})},C1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of AD(t))!F1.call(e,i)&&i!==r&&al(e,i,{get:()=>t[i],enumerable:!(n=E1(t,i))||n.enumerable});return e},Lt=(e,t,r)=>(r=e!=null?y1(v1(e)):{},C1(t||!e||!e.__esModule?al(r,"default",{value:e,enumerable:!0}):r,e)),A1=W({"node_modules/fast-glob/out/utils/array.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function t(n){return n.reduce((i,s)=>[].concat(i,s),[])}e.flatten=t;function r(n,i){let s=[[]],u=0;for(let a of n)i(a)?(u++,s[u]=[]):s[u].push(a);return s}e.splitWhen=r}}),w1=W({"node_modules/fast-glob/out/utils/errno.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function t(r){return r.code==="ENOENT"}e.isEnoentCodeError=t}}),b1=W({"node_modules/fast-glob/out/utils/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new t(n,i)}e.createDirentFromStats=r}}),S1=W({"node_modules/fast-glob/out/utils/path.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPosixPathToPattern=e.convertWindowsPathToPattern=e.convertPathToPattern=e.escapePosixPath=e.escapeWindowsPath=e.escape=e.removeLeadingDotSegment=e.makeAbsolute=e.unixify=void 0;var t=Ae("os"),r=Ae("path"),n=t.platform()==="win32",i=2,s=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,u=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,a=/^\\\\([.?])/,o=/\\(?![!()+@[\]{}])/g;function l(w){return w.replace(/\\/g,"/")}e.unixify=l;function c(w,y){return r.resolve(w,y)}e.makeAbsolute=c;function f(w){if(w.charAt(0)==="."){let y=w.charAt(1);if(y==="/"||y==="\\")return w.slice(i)}return w}e.removeLeadingDotSegment=f,e.escape=n?h:d;function h(w){return w.replace(u,"\\$2")}e.escapeWindowsPath=h;function d(w){return w.replace(s,"\\$2")}e.escapePosixPath=d,e.convertPathToPattern=n?p:D;function p(w){return h(w).replace(a,"//$1").replace(o,"/")}e.convertWindowsPathToPattern=p;function D(w){return d(w)}e.convertPosixPathToPattern=D}}),R1=W({"node_modules/is-extglob/index.js"(e,t){t.exports=function(n){if(typeof n!="string"||n==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(n);){if(i[2])return!0;n=n.slice(i.index+i[0].length)}return!1}}}),T1=W({"node_modules/is-glob/index.js"(e,t){var r=R1(),n={"{":"}","(":")","[":"]"},i=function(u){if(u[0]==="!")return!0;for(var a=0,o=-2,l=-2,c=-2,f=-2,h=-2;a<u.length;){if(u[a]==="*"||u[a+1]==="?"&&/[\].+)]/.test(u[a])||l!==-1&&u[a]==="["&&u[a+1]!=="]"&&(l<a&&(l=u.indexOf("]",a)),l>a&&(h===-1||h>l||(h=u.indexOf("\\",a),h===-1||h>l)))||c!==-1&&u[a]==="{"&&u[a+1]!=="}"&&(c=u.indexOf("}",a),c>a&&(h=u.indexOf("\\",a),h===-1||h>c))||f!==-1&&u[a]==="("&&u[a+1]==="?"&&/[:!=]/.test(u[a+2])&&u[a+3]!==")"&&(f=u.indexOf(")",a),f>a&&(h=u.indexOf("\\",a),h===-1||h>f))||o!==-1&&u[a]==="("&&u[a+1]!=="|"&&(o<a&&(o=u.indexOf("|",a)),o!==-1&&u[o+1]!==")"&&(f=u.indexOf(")",o),f>o&&(h=u.indexOf("\\",o),h===-1||h>f))))return!0;if(u[a]==="\\"){var d=u[a+1];a+=2;var p=n[d];if(p){var D=u.indexOf(p,a);D!==-1&&(a=D+1)}if(u[a]==="!")return!0}else a++}return!1},s=function(u){if(u[0]==="!")return!0;for(var a=0;a<u.length;){if(/[*?{}()[\]]/.test(u[a]))return!0;if(u[a]==="\\"){var o=u[a+1];a+=2;var l=n[o];if(l){var c=u.indexOf(l,a);c!==-1&&(a=c+1)}if(u[a]==="!")return!0}else a++}return!1};t.exports=function(a,o){if(typeof a!="string"||a==="")return!1;if(r(a))return!0;var l=i;return o&&o.strict===!1&&(l=s),l(a)}}}),B1=W({"node_modules/fast-glob/node_modules/glob-parent/index.js"(e,t){"use strict";var r=T1(),n=Ae("path").posix.dirname,i=Ae("os").platform()==="win32",s="/",u=/\\/g,a=/[\{\[].*[\}\]]$/,o=/(^|[^\\])([\{\[]|\([^\)]+$)/,l=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function(f,h){var d=Object.assign({flipBackslashes:!0},h);d.flipBackslashes&&i&&f.indexOf(s)<0&&(f=f.replace(u,s)),a.test(f)&&(f+=s),f+="a";do f=n(f);while(r(f)||o.test(f));return f.replace(l,"$1")}}}),ol=W({"node_modules/braces/lib/utils.js"(e){"use strict";e.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1,e.find=(t,r)=>t.nodes.find(n=>n.type===r),e.exceedsLimit=(t,r,n=1,i)=>i===!1||!e.isInteger(t)||!e.isInteger(r)?!1:(Number(r)-Number(t))/Number(n)>=i,e.escapeNode=(t,r=0,n)=>{let i=t.nodes[r];i&&(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1,e.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1,e.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0,e.reduce=t=>t.reduce((r,n)=>(n.type==="text"&&r.push(n.value),n.type==="range"&&(n.type="text"),r),[]),e.flatten=(...t)=>{let r=[],n=i=>{for(let s=0;s<i.length;s++){let u=i[s];if(Array.isArray(u)){n(u);continue}u!==void 0&&r.push(u)}return r};return n(t),r}}}),ll=W({"node_modules/braces/lib/stringify.js"(e,t){"use strict";var r=ol();t.exports=(n,i={})=>{let s=(u,a={})=>{let o=i.escapeInvalid&&r.isInvalidBrace(a),l=u.invalid===!0&&i.escapeInvalid===!0,c="";if(u.value)return(o||l)&&r.isOpenOrClose(u)?"\\"+u.value:u.value;if(u.value)return u.value;if(u.nodes)for(let f of u.nodes)c+=s(f);return c};return s(n)}}}),x1=W({"node_modules/is-number/index.js"(e,t){"use strict";t.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}}}),k1=W({"node_modules/to-regex-range/index.js"(e,t){"use strict";var r=x1(),n=(m,g,C)=>{if(r(m)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(g===void 0||m===g)return String(m);if(r(g)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let E={relaxZeros:!0,...C};typeof E.strictZeros=="boolean"&&(E.relaxZeros=E.strictZeros===!1);let T=String(E.relaxZeros),P=String(E.shorthand),b=String(E.capture),B=String(E.wrap),O=m+":"+g+"="+T+P+b+B;if(n.cache.hasOwnProperty(O))return n.cache[O].result;let A=Math.min(m,g),S=Math.max(m,g);if(Math.abs(A-S)===1){let M=m+"|"+g;return E.capture?`(${M})`:E.wrap===!1?M:`(?:${M})`}let v=w(m)||w(g),F={min:m,max:g,a:A,b:S},R=[],k=[];if(v&&(F.isPadded=v,F.maxLen=String(F.max).length),A<0){let M=S<0?Math.abs(S):1;k=a(M,Math.abs(A),F,E),A=F.a=0}return S>=0&&(R=a(A,S,F,E)),F.negatives=k,F.positives=R,F.result=i(k,R,E),E.capture===!0?F.result=`(${F.result})`:E.wrap!==!1&&R.length+k.length>1&&(F.result=`(?:${F.result})`),n.cache[O]=F,F.result};function i(m,g,C){let E=o(m,g,"-",!1,C)||[],T=o(g,m,"",!1,C)||[],P=o(m,g,"-?",!0,C)||[];return E.concat(P).concat(T).join("|")}function s(m,g){let C=1,E=1,T=h(m,C),P=new Set([g]);for(;m<=T&&T<=g;)P.add(T),C+=1,T=h(m,C);for(T=d(g+1,E)-1;m<T&&T<=g;)P.add(T),E+=1,T=d(g+1,E)-1;return P=[...P],P.sort(c),P}function u(m,g,C){if(m===g)return{pattern:m,count:[],digits:0};let E=l(m,g),T=E.length,P="",b=0;for(let B=0;B<T;B++){let[O,A]=E[B];O===A?P+=O:O!=="0"||A!=="9"?P+=D(O,A,C):b++}return b&&(P+=C.shorthand===!0?"\\d":"[0-9]"),{pattern:P,count:[b],digits:T}}function a(m,g,C,E){let T=s(m,g),P=[],b=m,B;for(let O=0;O<T.length;O++){let A=T[O],S=u(String(b),String(A),E),v="";if(!C.isPadded&&B&&B.pattern===S.pattern){B.count.length>1&&B.count.pop(),B.count.push(S.count[0]),B.string=B.pattern+p(B.count),b=A+1;continue}C.isPadded&&(v=y(A,C,E)),S.string=v+S.pattern+p(S.count),P.push(S),b=A+1,B=S}return P}function o(m,g,C,E,T){let P=[];for(let b of m){let{string:B}=b;!E&&!f(g,"string",B)&&P.push(C+B),E&&f(g,"string",B)&&P.push(C+B)}return P}function l(m,g){let C=[];for(let E=0;E<m.length;E++)C.push([m[E],g[E]]);return C}function c(m,g){return m>g?1:g>m?-1:0}function f(m,g,C){return m.some(E=>E[g]===C)}function h(m,g){return Number(String(m).slice(0,-g)+"9".repeat(g))}function d(m,g){return m-m%Math.pow(10,g)}function p(m){let[g=0,C=""]=m;return C||g>1?`{${g+(C?","+C:"")}}`:""}function D(m,g,C){return`[${m}${g-m===1?"":"-"}${g}]`}function w(m){return/^-?(0+)\d/.test(m)}function y(m,g,C){if(!g.isPadded)return m;let E=Math.abs(g.maxLen-String(m).length),T=C.relaxZeros!==!1;switch(E){case 0:return"";case 1:return T?"0?":"0";case 2:return T?"0{0,2}":"00";default:return T?`0{0,${E}}`:`0{${E}}`}}n.cache={},n.clearCache=()=>n.cache={},t.exports=n}}),wD=W({"node_modules/fill-range/index.js"(e,t){"use strict";var r=Ae("util"),n=k1(),i=E=>E!==null&&typeof E=="object"&&!Array.isArray(E),s=E=>T=>E===!0?Number(T):String(T),u=E=>typeof E=="number"||typeof E=="string"&&E!=="",a=E=>Number.isInteger(+E),o=E=>{let T=`${E}`,P=-1;if(T[0]==="-"&&(T=T.slice(1)),T==="0")return!1;for(;T[++P]==="0";);return P>0},l=(E,T,P)=>typeof E=="string"||typeof T=="string"?!0:P.stringify===!0,c=(E,T,P)=>{if(T>0){let b=E[0]==="-"?"-":"";b&&(E=E.slice(1)),E=b+E.padStart(b?T-1:T,"0")}return P===!1?String(E):E},f=(E,T)=>{let P=E[0]==="-"?"-":"";for(P&&(E=E.slice(1),T--);E.length<T;)E="0"+E;return P?"-"+E:E},h=(E,T,P)=>{E.negatives.sort((S,v)=>S<v?-1:S>v?1:0),E.positives.sort((S,v)=>S<v?-1:S>v?1:0);let b=T.capture?"":"?:",B="",O="",A;return E.positives.length&&(B=E.positives.map(S=>f(String(S),P)).join("|")),E.negatives.length&&(O=`-(${b}${E.negatives.map(S=>f(String(S),P)).join("|")})`),B&&O?A=`${B}|${O}`:A=B||O,T.wrap?`(${b}${A})`:A},d=(E,T,P,b)=>{if(P)return n(E,T,{wrap:!1,...b});let B=String.fromCharCode(E);if(E===T)return B;let O=String.fromCharCode(T);return`[${B}-${O}]`},p=(E,T,P)=>{if(Array.isArray(E)){let b=P.wrap===!0,B=P.capture?"":"?:";return b?`(${B}${E.join("|")})`:E.join("|")}return n(E,T,P)},D=(...E)=>new RangeError("Invalid range arguments: "+r.inspect(...E)),w=(E,T,P)=>{if(P.strictRanges===!0)throw D([E,T]);return[]},y=(E,T)=>{if(T.strictRanges===!0)throw new TypeError(`Expected step "${E}" to be a number`);return[]},m=(E,T,P=1,b={})=>{let B=Number(E),O=Number(T);if(!Number.isInteger(B)||!Number.isInteger(O)){if(b.strictRanges===!0)throw D([E,T]);return[]}B===0&&(B=0),O===0&&(O=0);let A=B>O,S=String(E),v=String(T),F=String(P);P=Math.max(Math.abs(P),1);let R=o(S)||o(v)||o(F),k=R?Math.max(S.length,v.length,F.length):0,M=R===!1&&l(E,T,b)===!1,G=b.transform||s(M);if(b.toRegex&&P===1)return d(f(E,k),f(T,k),!0,b);let $={negatives:[],positives:[]},U=L=>$[L<0?"negatives":"positives"].push(Math.abs(L)),j=[],X=0;for(;A?B>=O:B<=O;)b.toRegex===!0&&P>1?U(B):j.push(c(G(B,X),k,M)),B=A?B-P:B+P,X++;return b.toRegex===!0?P>1?h($,b,k):p(j,null,{wrap:!1,...b}):j},g=(E,T,P=1,b={})=>{if(!a(E)&&E.length>1||!a(T)&&T.length>1)return w(E,T,b);let B=b.transform||(M=>String.fromCharCode(M)),O=`${E}`.charCodeAt(0),A=`${T}`.charCodeAt(0),S=O>A,v=Math.min(O,A),F=Math.max(O,A);if(b.toRegex&&P===1)return d(v,F,!1,b);let R=[],k=0;for(;S?O>=A:O<=A;)R.push(B(O,k)),O=S?O-P:O+P,k++;return b.toRegex===!0?p(R,null,{wrap:!1,options:b}):R},C=(E,T,P,b={})=>{if(T==null&&u(E))return[E];if(!u(E)||!u(T))return w(E,T,b);if(typeof P=="function")return C(E,T,1,{transform:P});if(i(P))return C(E,T,0,P);let B={...b};return B.capture===!0&&(B.wrap=!0),P=P||B.step||1,a(P)?a(E)&&a(T)?m(E,T,P,B):g(E,T,Math.max(Math.abs(P),1),B):P!=null&&!i(P)?y(P,B):C(E,T,1,P)};t.exports=C}}),P1=W({"node_modules/braces/lib/compile.js"(e,t){"use strict";var r=wD(),n=ol(),i=(s,u={})=>{let a=(o,l={})=>{let c=n.isInvalidBrace(l),f=o.invalid===!0&&u.escapeInvalid===!0,h=c===!0||f===!0,d=u.escapeInvalid===!0?"\\":"",p="";if(o.isOpen===!0)return d+o.value;if(o.isClose===!0)return console.log("node.isClose",d,o.value),d+o.value;if(o.type==="open")return h?d+o.value:"(";if(o.type==="close")return h?d+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":h?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let D=n.reduce(o.nodes),w=r(...D,{...u,wrap:!1,toRegex:!0,strictZeros:!0});if(w.length!==0)return D.length>1&&w.length>1?`(${w})`:w}if(o.nodes)for(let D of o.nodes)p+=a(D,o);return p};return a(s)};t.exports=i}}),O1=W({"node_modules/braces/lib/expand.js"(e,t){"use strict";var r=wD(),n=ll(),i=ol(),s=(a="",o="",l=!1)=>{let c=[];if(a=[].concat(a),o=[].concat(o),!o.length)return a;if(!a.length)return l?i.flatten(o).map(f=>`{${f}}`):o;for(let f of a)if(Array.isArray(f))for(let h of f)c.push(s(h,o,l));else for(let h of o)l===!0&&typeof h=="string"&&(h=`{${h}}`),c.push(Array.isArray(h)?s(f,h,l):f+h);return i.flatten(c)},u=(a,o={})=>{let l=o.rangeLimit===void 0?1e3:o.rangeLimit,c=(f,h={})=>{f.queue=[];let d=h,p=h.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,p=d.queue;if(f.invalid||f.dollar){p.push(s(p.pop(),n(f,o)));return}if(f.type==="brace"&&f.invalid!==!0&&f.nodes.length===2){p.push(s(p.pop(),["{}"]));return}if(f.nodes&&f.ranges>0){let m=i.reduce(f.nodes);if(i.exceedsLimit(...m,o.step,l))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let g=r(...m,o);g.length===0&&(g=n(f,o)),p.push(s(p.pop(),g)),f.nodes=[];return}let D=i.encloseBrace(f),w=f.queue,y=f;for(;y.type!=="brace"&&y.type!=="root"&&y.parent;)y=y.parent,w=y.queue;for(let m=0;m<f.nodes.length;m++){let g=f.nodes[m];if(g.type==="comma"&&f.type==="brace"){m===1&&w.push(""),w.push("");continue}if(g.type==="close"){p.push(s(p.pop(),w,D));continue}if(g.value&&g.type!=="open"){w.push(s(w.pop(),g.value));continue}g.nodes&&c(g,f)}return w};return i.flatten(c(a))};t.exports=u}}),I1=W({"node_modules/braces/lib/constants.js"(e,t){"use strict";t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
600
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}}),L1=W({"node_modules/braces/lib/parse.js"(e,t){"use strict";var r=ll(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:s,CHAR_COMMA:u,CHAR_DOT:a,CHAR_LEFT_PARENTHESES:o,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:c,CHAR_RIGHT_CURLY_BRACE:f,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:p,CHAR_SINGLE_QUOTE:D,CHAR_NO_BREAK_SPACE:w,CHAR_ZERO_WIDTH_NOBREAK_SPACE:y}=I1(),m=(g,C={})=>{if(typeof g!="string")throw new TypeError("Expected a string");let E=C||{},T=typeof E.maxLength=="number"?Math.min(n,E.maxLength):n;if(g.length>T)throw new SyntaxError(`Input length (${g.length}), exceeds max characters (${T})`);let P={type:"root",input:g,nodes:[]},b=[P],B=P,O=P,A=0,S=g.length,v=0,F=0,R,k=()=>g[v++],M=G=>{if(G.type==="text"&&O.type==="dot"&&(O.type="text"),O&&O.type==="text"&&G.type==="text"){O.value+=G.value;return}return B.nodes.push(G),G.parent=B,G.prev=O,O=G,G};for(M({type:"bos"});v<S;)if(B=b[b.length-1],R=k(),!(R===y||R===w)){if(R===i){M({type:"text",value:(C.keepEscaping?R:"")+k()});continue}if(R===d){M({type:"text",value:"\\"+R});continue}if(R===h){A++;let G;for(;v<S&&(G=k());){if(R+=G,G===h){A++;continue}if(G===i){R+=k();continue}if(G===d&&(A--,A===0))break}M({type:"text",value:R});continue}if(R===o){B=M({type:"paren",nodes:[]}),b.push(B),M({type:"text",value:R});continue}if(R===l){if(B.type!=="paren"){M({type:"text",value:R});continue}B=b.pop(),M({type:"text",value:R}),B=b[b.length-1];continue}if(R===p||R===D||R===s){let G=R,$;for(C.keepQuotes!==!0&&(R="");v<S&&($=k());){if($===i){R+=$+k();continue}if($===G){C.keepQuotes===!0&&(R+=$);break}R+=$}M({type:"text",value:R});continue}if(R===c){F++;let $={type:"brace",open:!0,close:!1,dollar:O.value&&O.value.slice(-1)==="$"||B.dollar===!0,depth:F,commas:0,ranges:0,nodes:[]};B=M($),b.push(B),M({type:"open",value:R});continue}if(R===f){if(B.type!=="brace"){M({type:"text",value:R});continue}let G="close";B=b.pop(),B.close=!0,M({type:G,value:R}),F--,B=b[b.length-1];continue}if(R===u&&F>0){if(B.ranges>0){B.ranges=0;let G=B.nodes.shift();B.nodes=[G,{type:"text",value:r(B)}]}M({type:"comma",value:R}),B.commas++;continue}if(R===a&&F>0&&B.commas===0){let G=B.nodes;if(F===0||G.length===0){M({type:"text",value:R});continue}if(O.type==="dot"){if(B.range=[],O.value+=R,O.type="range",B.nodes.length!==3&&B.nodes.length!==5){B.invalid=!0,B.ranges=0,O.type="text";continue}B.ranges++,B.args=[];continue}if(O.type==="range"){G.pop();let $=G[G.length-1];$.value+=O.value+R,O=$,B.ranges--;continue}M({type:"dot",value:R});continue}M({type:"text",value:R})}do if(B=b.pop(),B.type!=="root"){B.nodes.forEach(U=>{U.nodes||(U.type==="open"&&(U.isOpen=!0),U.type==="close"&&(U.isClose=!0),U.nodes||(U.type="text"),U.invalid=!0)});let G=b[b.length-1],$=G.nodes.indexOf(B);G.nodes.splice($,1,...B.nodes)}while(b.length>0);return M({type:"eos"}),P};t.exports=m}}),N1=W({"node_modules/braces/index.js"(e,t){"use strict";var r=ll(),n=P1(),i=O1(),s=L1(),u=(a,o={})=>{let l=[];if(Array.isArray(a))for(let c of a){let f=u.create(c,o);Array.isArray(f)?l.push(...f):l.push(f)}else l=[].concat(u.create(a,o));return o&&o.expand===!0&&o.nodupes===!0&&(l=[...new Set(l)]),l};u.parse=(a,o={})=>s(a,o),u.stringify=(a,o={})=>r(typeof a=="string"?u.parse(a,o):a,o),u.compile=(a,o={})=>(typeof a=="string"&&(a=u.parse(a,o)),n(a,o)),u.expand=(a,o={})=>{typeof a=="string"&&(a=u.parse(a,o));let l=i(a,o);return o.noempty===!0&&(l=l.filter(Boolean)),o.nodupes===!0&&(l=[...new Set(l)]),l},u.create=(a,o={})=>a===""||a.length<3?[a]:o.expand!==!0?u.compile(a,o):u.expand(a,o),t.exports=u}}),vu=W({"node_modules/micromatch/node_modules/picomatch/lib/constants.js"(e,t){"use strict";var r=Ae("path"),n="\\\\/",i=`[^${n}]`,s="\\.",u="\\+",a="\\?",o="\\/",l="(?=.)",c="[^/]",f=`(?:${o}|$)`,h=`(?:^|${o})`,d=`${s}{1,2}${f}`,p=`(?!${s})`,D=`(?!${h}${d})`,w=`(?!${s}{0,1}${f})`,y=`(?!${d})`,m=`[^.${o}]`,g=`${c}*?`,C={DOT_LITERAL:s,PLUS_LITERAL:u,QMARK_LITERAL:a,SLASH_LITERAL:o,ONE_CHAR:l,QMARK:c,END_ANCHOR:f,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:D,NO_DOT_SLASH:w,NO_DOTS_SLASH:y,QMARK_NO_DOT:m,STAR:g,START_ANCHOR:h},E={...C,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${s}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${s})`,NO_DOTS:`(?!(?:^|[${n}])${s}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${s}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${s}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},T={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:T,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars(P){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${P.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(P){return P===!0?E:C}}}}),Fu=W({"node_modules/micromatch/node_modules/picomatch/lib/utils.js"(e){"use strict";var t=Ae("path"),r=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:u}=vu();e.isObject=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),e.hasRegexChars=a=>s.test(a),e.isRegexChar=a=>a.length===1&&e.hasRegexChars(a),e.escapeRegex=a=>a.replace(u,"\\$1"),e.toPosixSlashes=a=>a.replace(n,"/"),e.removeBackslashes=a=>a.replace(i,o=>o==="\\"?"":o),e.supportsLookbehinds=()=>{let a=process.version.slice(1).split(".").map(Number);return a.length===3&&a[0]>=9||a[0]===8&&a[1]>=10},e.isWindows=a=>a&&typeof a.windows=="boolean"?a.windows:r===!0||t.sep==="\\",e.escapeLast=(a,o,l)=>{let c=a.lastIndexOf(o,l);return c===-1?a:a[c-1]==="\\"?e.escapeLast(a,o,c-1):`${a.slice(0,c)}\\${a.slice(c)}`},e.removePrefix=(a,o={})=>{let l=a;return l.startsWith("./")&&(l=l.slice(2),o.prefix="./"),l},e.wrapOutput=(a,o={},l={})=>{let c=l.contains?"":"^",f=l.contains?"":"$",h=`${c}(?:${a})${f}`;return o.negated===!0&&(h=`(?:^(?!${h}).*$)`),h}}}),M1=W({"node_modules/micromatch/node_modules/picomatch/lib/scan.js"(e,t){"use strict";var r=Fu(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:u,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:f,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:d,CHAR_QUESTION_MARK:p,CHAR_RIGHT_CURLY_BRACE:D,CHAR_RIGHT_PARENTHESES:w,CHAR_RIGHT_SQUARE_BRACKET:y}=vu(),m=E=>E===l||E===s,g=E=>{E.isPrefix!==!0&&(E.depth=E.isGlobstar?1/0:1)},C=(E,T)=>{let P=T||{},b=E.length-1,B=P.parts===!0||P.scanToEnd===!0,O=[],A=[],S=[],v=E,F=-1,R=0,k=0,M=!1,G=!1,$=!1,U=!1,j=!1,X=!1,L=!1,le=!1,se=!1,N=!1,x=0,I,V,z={value:"",depth:0,isGlob:!1},fe=()=>F>=b,Q=()=>v.charCodeAt(F+1),_e=()=>(I=V,v.charCodeAt(++F));for(;F<b;){V=_e();let re;if(V===s){L=z.backslashes=!0,V=_e(),V===c&&(X=!0);continue}if(X===!0||V===c){for(x++;fe()!==!0&&(V=_e());){if(V===s){L=z.backslashes=!0,_e();continue}if(V===c){x++;continue}if(X!==!0&&V===a&&(V=_e())===a){if(M=z.isBrace=!0,$=z.isGlob=!0,N=!0,B===!0)continue;break}if(X!==!0&&V===u){if(M=z.isBrace=!0,$=z.isGlob=!0,N=!0,B===!0)continue;break}if(V===D&&(x--,x===0)){X=!1,M=z.isBrace=!0,N=!0;break}}if(B===!0)continue;break}if(V===l){if(O.push(F),A.push(z),z={value:"",depth:0,isGlob:!1},N===!0)continue;if(I===a&&F===R+1){R+=2;continue}k=F+1;continue}if(P.noext!==!0&&(V===d||V===i||V===n||V===p||V===o)===!0&&Q()===f){if($=z.isGlob=!0,U=z.isExtglob=!0,N=!0,V===o&&F===R&&(se=!0),B===!0){for(;fe()!==!0&&(V=_e());){if(V===s){L=z.backslashes=!0,V=_e();continue}if(V===w){$=z.isGlob=!0,N=!0;break}}continue}break}if(V===n){if(I===n&&(j=z.isGlobstar=!0),$=z.isGlob=!0,N=!0,B===!0)continue;break}if(V===p){if($=z.isGlob=!0,N=!0,B===!0)continue;break}if(V===h){for(;fe()!==!0&&(re=_e());){if(re===s){L=z.backslashes=!0,_e();continue}if(re===y){G=z.isBracket=!0,$=z.isGlob=!0,N=!0;break}}if(B===!0)continue;break}if(P.nonegate!==!0&&V===o&&F===R){le=z.negated=!0,R++;continue}if(P.noparen!==!0&&V===f){if($=z.isGlob=!0,B===!0){for(;fe()!==!0&&(V=_e());){if(V===f){L=z.backslashes=!0,V=_e();continue}if(V===w){N=!0;break}}continue}break}if($===!0){if(N=!0,B===!0)continue;break}}P.noext===!0&&(U=!1,$=!1);let H=v,Z="",ue="";R>0&&(Z=v.slice(0,R),v=v.slice(R),k-=R),H&&$===!0&&k>0?(H=v.slice(0,k),ue=v.slice(k)):$===!0?(H="",ue=v):H=v,H&&H!==""&&H!=="/"&&H!==v&&m(H.charCodeAt(H.length-1))&&(H=H.slice(0,-1)),P.unescape===!0&&(ue&&(ue=r.removeBackslashes(ue)),H&&L===!0&&(H=r.removeBackslashes(H)));let me={prefix:Z,input:E,start:R,base:H,glob:ue,isBrace:M,isBracket:G,isGlob:$,isExtglob:U,isGlobstar:j,negated:le,negatedExtglob:se};if(P.tokens===!0&&(me.maxDepth=0,m(V)||A.push(z),me.tokens=A),P.parts===!0||P.tokens===!0){let re;for(let be=0;be<O.length;be++){let Qr=re?re+1:R,ee=O[be],Ce=E.slice(Qr,ee);P.tokens&&(be===0&&R!==0?(A[be].isPrefix=!0,A[be].value=Z):A[be].value=Ce,g(A[be]),me.maxDepth+=A[be].depth),(be!==0||Ce!=="")&&S.push(Ce),re=ee}if(re&&re+1<E.length){let be=E.slice(re+1);S.push(be),P.tokens&&(A[A.length-1].value=be,g(A[A.length-1]),me.maxDepth+=A[A.length-1].depth)}me.slashes=O,me.parts=S}return me};t.exports=C}}),j1=W({"node_modules/micromatch/node_modules/picomatch/lib/parse.js"(e,t){"use strict";var r=vu(),n=Fu(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:o}=r,l=(h,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...h,d);h.sort();let p=`[${h.join("-")}]`;try{new RegExp(p)}catch{return h.map(w=>n.escapeRegex(w)).join("..")}return p},c=(h,d)=>`Missing ${h}: "${d}" - use "\\\\${d}" to match literal characters`,f=(h,d)=>{if(typeof h!="string")throw new TypeError("Expected a string");h=o[h]||h;let p={...d},D=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,w=h.length;if(w>D)throw new SyntaxError(`Input length: ${w}, exceeds maximum allowed length: ${D}`);let y={type:"bos",value:"",output:p.prepend||""},m=[y],g=p.capture?"":"?:",C=n.isWindows(d),E=r.globChars(C),T=r.extglobChars(E),{DOT_LITERAL:P,PLUS_LITERAL:b,SLASH_LITERAL:B,ONE_CHAR:O,DOTS_SLASH:A,NO_DOT:S,NO_DOT_SLASH:v,NO_DOTS_SLASH:F,QMARK:R,QMARK_NO_DOT:k,STAR:M,START_ANCHOR:G}=E,$=ee=>`(${g}(?:(?!${G}${ee.dot?A:P}).)*?)`,U=p.dot?"":S,j=p.dot?R:k,X=p.bash===!0?$(p):M;p.capture&&(X=`(${X})`),typeof p.noext=="boolean"&&(p.noextglob=p.noext);let L={input:h,index:-1,start:0,dot:p.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:m};h=n.removePrefix(h,L),w=h.length;let le=[],se=[],N=[],x=y,I,V=()=>L.index===w-1,z=L.peek=(ee=1)=>h[L.index+ee],fe=L.advance=()=>h[++L.index]||"",Q=()=>h.slice(L.index+1),_e=(ee="",Ce=0)=>{L.consumed+=ee,L.index+=Ce},H=ee=>{L.output+=ee.output!=null?ee.output:ee.value,_e(ee.value)},Z=()=>{let ee=1;for(;z()==="!"&&(z(2)!=="("||z(3)==="?");)fe(),L.start++,ee++;return ee%2===0?!1:(L.negated=!0,L.start++,!0)},ue=ee=>{L[ee]++,N.push(ee)},me=ee=>{L[ee]--,N.pop()},re=ee=>{if(x.type==="globstar"){let Ce=L.braces>0&&(ee.type==="comma"||ee.type==="brace"),K=ee.extglob===!0||le.length&&(ee.type==="pipe"||ee.type==="paren");ee.type!=="slash"&&ee.type!=="paren"&&!Ce&&!K&&(L.output=L.output.slice(0,-x.output.length),x.type="star",x.value="*",x.output=X,L.output+=x.output)}if(le.length&&ee.type!=="paren"&&(le[le.length-1].inner+=ee.value),(ee.value||ee.output)&&H(ee),x&&x.type==="text"&&ee.type==="text"){x.value+=ee.value,x.output=(x.output||"")+ee.value;return}ee.prev=x,m.push(ee),x=ee},be=(ee,Ce)=>{let K={...T[Ce],conditions:1,inner:""};K.prev=x,K.parens=L.parens,K.output=L.output;let he=(p.capture?"(":"")+K.open;ue("parens"),re({type:ee,value:Ce,output:L.output?"":O}),re({type:"paren",extglob:!0,value:fe(),output:he}),le.push(K)},Qr=ee=>{let Ce=ee.close+(p.capture?")":""),K;if(ee.type==="negate"){let he=X;if(ee.inner&&ee.inner.length>1&&ee.inner.includes("/")&&(he=$(p)),(he!==X||V()||/^\)+$/.test(Q()))&&(Ce=ee.close=`)$))${he}`),ee.inner.includes("*")&&(K=Q())&&/^\.[^\\/.]+$/.test(K)){let Ie=f(K,{...d,fastpaths:!1}).output;Ce=ee.close=`)${Ie})${he})`}ee.prev.type==="bos"&&(L.negatedExtglob=!0)}re({type:"paren",extglob:!0,value:I,output:Ce}),me("parens")};if(p.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(h)){let ee=!1,Ce=h.replace(a,(K,he,Ie,ut,Ye,so)=>ut==="\\"?(ee=!0,K):ut==="?"?he?he+ut+(Ye?R.repeat(Ye.length):""):so===0?j+(Ye?R.repeat(Ye.length):""):R.repeat(Ie.length):ut==="."?P.repeat(Ie.length):ut==="*"?he?he+ut+(Ye?X:""):X:he?K:`\\${K}`);return ee===!0&&(p.unescape===!0?Ce=Ce.replace(/\\/g,""):Ce=Ce.replace(/\\+/g,K=>K.length%2===0?"\\\\":K?"\\":"")),Ce===h&&p.contains===!0?(L.output=h,L):(L.output=n.wrapOutput(Ce,L,d),L)}for(;!V();){if(I=fe(),I==="\0")continue;if(I==="\\"){let K=z();if(K==="/"&&p.bash!==!0||K==="."||K===";")continue;if(!K){I+="\\",re({type:"text",value:I});continue}let he=/^\\+/.exec(Q()),Ie=0;if(he&&he[0].length>2&&(Ie=he[0].length,L.index+=Ie,Ie%2!==0&&(I+="\\")),p.unescape===!0?I=fe():I+=fe(),L.brackets===0){re({type:"text",value:I});continue}}if(L.brackets>0&&(I!=="]"||x.value==="["||x.value==="[^")){if(p.posix!==!1&&I===":"){let K=x.value.slice(1);if(K.includes("[")&&(x.posix=!0,K.includes(":"))){let he=x.value.lastIndexOf("["),Ie=x.value.slice(0,he),ut=x.value.slice(he+2),Ye=s[ut];if(Ye){x.value=Ie+Ye,L.backtrack=!0,fe(),!y.output&&m.indexOf(x)===1&&(y.output=O);continue}}}(I==="["&&z()!==":"||I==="-"&&z()==="]")&&(I=`\\${I}`),I==="]"&&(x.value==="["||x.value==="[^")&&(I=`\\${I}`),p.posix===!0&&I==="!"&&x.value==="["&&(I="^"),x.value+=I,H({value:I});continue}if(L.quotes===1&&I!=='"'){I=n.escapeRegex(I),x.value+=I,H({value:I});continue}if(I==='"'){L.quotes=L.quotes===1?0:1,p.keepQuotes===!0&&re({type:"text",value:I});continue}if(I==="("){ue("parens"),re({type:"paren",value:I});continue}if(I===")"){if(L.parens===0&&p.strictBrackets===!0)throw new SyntaxError(c("opening","("));let K=le[le.length-1];if(K&&L.parens===K.parens+1){Qr(le.pop());continue}re({type:"paren",value:I,output:L.parens?")":"\\)"}),me("parens");continue}if(I==="["){if(p.nobracket===!0||!Q().includes("]")){if(p.nobracket!==!0&&p.strictBrackets===!0)throw new SyntaxError(c("closing","]"));I=`\\${I}`}else ue("brackets");re({type:"bracket",value:I});continue}if(I==="]"){if(p.nobracket===!0||x&&x.type==="bracket"&&x.value.length===1){re({type:"text",value:I,output:`\\${I}`});continue}if(L.brackets===0){if(p.strictBrackets===!0)throw new SyntaxError(c("opening","["));re({type:"text",value:I,output:`\\${I}`});continue}me("brackets");let K=x.value.slice(1);if(x.posix!==!0&&K[0]==="^"&&!K.includes("/")&&(I=`/${I}`),x.value+=I,H({value:I}),p.literalBrackets===!1||n.hasRegexChars(K))continue;let he=n.escapeRegex(x.value);if(L.output=L.output.slice(0,-x.value.length),p.literalBrackets===!0){L.output+=he,x.value=he;continue}x.value=`(${g}${he}|${x.value})`,L.output+=x.value;continue}if(I==="{"&&p.nobrace!==!0){ue("braces");let K={type:"brace",value:I,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};se.push(K),re(K);continue}if(I==="}"){let K=se[se.length-1];if(p.nobrace===!0||!K){re({type:"text",value:I,output:I});continue}let he=")";if(K.dots===!0){let Ie=m.slice(),ut=[];for(let Ye=Ie.length-1;Ye>=0&&(m.pop(),Ie[Ye].type!=="brace");Ye--)Ie[Ye].type!=="dots"&&ut.unshift(Ie[Ye].value);he=l(ut,p),L.backtrack=!0}if(K.comma!==!0&&K.dots!==!0){let Ie=L.output.slice(0,K.outputIndex),ut=L.tokens.slice(K.tokensIndex);K.value=K.output="\\{",I=he="\\}",L.output=Ie;for(let Ye of ut)L.output+=Ye.output||Ye.value}re({type:"brace",value:I,output:he}),me("braces"),se.pop();continue}if(I==="|"){le.length>0&&le[le.length-1].conditions++,re({type:"text",value:I});continue}if(I===","){let K=I,he=se[se.length-1];he&&N[N.length-1]==="braces"&&(he.comma=!0,K="|"),re({type:"comma",value:I,output:K});continue}if(I==="/"){if(x.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",m.pop(),x=y;continue}re({type:"slash",value:I,output:B});continue}if(I==="."){if(L.braces>0&&x.type==="dot"){x.value==="."&&(x.output=P);let K=se[se.length-1];x.type="dots",x.output+=I,x.value+=I,K.dots=!0;continue}if(L.braces+L.parens===0&&x.type!=="bos"&&x.type!=="slash"){re({type:"text",value:I,output:P});continue}re({type:"dot",value:I,output:P});continue}if(I==="?"){if(!(x&&x.value==="(")&&p.noextglob!==!0&&z()==="("&&z(2)!=="?"){be("qmark",I);continue}if(x&&x.type==="paren"){let he=z(),Ie=I;if(he==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(x.value==="("&&!/[!=<:]/.test(he)||he==="<"&&!/<([!=]|\w+>)/.test(Q()))&&(Ie=`\\${I}`),re({type:"text",value:I,output:Ie});continue}if(p.dot!==!0&&(x.type==="slash"||x.type==="bos")){re({type:"qmark",value:I,output:k});continue}re({type:"qmark",value:I,output:R});continue}if(I==="!"){if(p.noextglob!==!0&&z()==="("&&(z(2)!=="?"||!/[!=<:]/.test(z(3)))){be("negate",I);continue}if(p.nonegate!==!0&&L.index===0){Z();continue}}if(I==="+"){if(p.noextglob!==!0&&z()==="("&&z(2)!=="?"){be("plus",I);continue}if(x&&x.value==="("||p.regex===!1){re({type:"plus",value:I,output:b});continue}if(x&&(x.type==="bracket"||x.type==="paren"||x.type==="brace")||L.parens>0){re({type:"plus",value:I});continue}re({type:"plus",value:b});continue}if(I==="@"){if(p.noextglob!==!0&&z()==="("&&z(2)!=="?"){re({type:"at",extglob:!0,value:I,output:""});continue}re({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let K=u.exec(Q());K&&(I+=K[0],L.index+=K[0].length),re({type:"text",value:I});continue}if(x&&(x.type==="globstar"||x.star===!0)){x.type="star",x.star=!0,x.value+=I,x.output=X,L.backtrack=!0,L.globstar=!0,_e(I);continue}let ee=Q();if(p.noextglob!==!0&&/^\([^?]/.test(ee)){be("star",I);continue}if(x.type==="star"){if(p.noglobstar===!0){_e(I);continue}let K=x.prev,he=K.prev,Ie=K.type==="slash"||K.type==="bos",ut=he&&(he.type==="star"||he.type==="globstar");if(p.bash===!0&&(!Ie||ee[0]&&ee[0]!=="/")){re({type:"star",value:I,output:""});continue}let Ye=L.braces>0&&(K.type==="comma"||K.type==="brace"),so=le.length&&(K.type==="pipe"||K.type==="paren");if(!Ie&&K.type!=="paren"&&!Ye&&!so){re({type:"star",value:I,output:""});continue}for(;ee.slice(0,3)==="/**";){let bs=h[L.index+4];if(bs&&bs!=="/")break;ee=ee.slice(3),_e("/**",3)}if(K.type==="bos"&&V()){x.type="globstar",x.value+=I,x.output=$(p),L.output=x.output,L.globstar=!0,_e(I);continue}if(K.type==="slash"&&K.prev.type!=="bos"&&!ut&&V()){L.output=L.output.slice(0,-(K.output+x.output).length),K.output=`(?:${K.output}`,x.type="globstar",x.output=$(p)+(p.strictSlashes?")":"|$)"),x.value+=I,L.globstar=!0,L.output+=K.output+x.output,_e(I);continue}if(K.type==="slash"&&K.prev.type!=="bos"&&ee[0]==="/"){let bs=ee[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(K.output+x.output).length),K.output=`(?:${K.output}`,x.type="globstar",x.output=`${$(p)}${B}|${B}${bs})`,x.value+=I,L.output+=K.output+x.output,L.globstar=!0,_e(I+fe()),re({type:"slash",value:"/",output:""});continue}if(K.type==="bos"&&ee[0]==="/"){x.type="globstar",x.value+=I,x.output=`(?:^|${B}|${$(p)}${B})`,L.output=x.output,L.globstar=!0,_e(I+fe()),re({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-x.output.length),x.type="globstar",x.output=$(p),x.value+=I,L.output+=x.output,L.globstar=!0,_e(I);continue}let Ce={type:"star",value:I,output:X};if(p.bash===!0){Ce.output=".*?",(x.type==="bos"||x.type==="slash")&&(Ce.output=U+Ce.output),re(Ce);continue}if(x&&(x.type==="bracket"||x.type==="paren")&&p.regex===!0){Ce.output=I,re(Ce);continue}(L.index===L.start||x.type==="slash"||x.type==="dot")&&(x.type==="dot"?(L.output+=v,x.output+=v):p.dot===!0?(L.output+=F,x.output+=F):(L.output+=U,x.output+=U),z()!=="*"&&(L.output+=O,x.output+=O)),re(Ce)}for(;L.brackets>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing","]"));L.output=n.escapeLast(L.output,"["),me("brackets")}for(;L.parens>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing",")"));L.output=n.escapeLast(L.output,"("),me("parens")}for(;L.braces>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing","}"));L.output=n.escapeLast(L.output,"{"),me("braces")}if(p.strictSlashes!==!0&&(x.type==="star"||x.type==="bracket")&&re({type:"maybe_slash",value:"",output:`${B}?`}),L.backtrack===!0){L.output="";for(let ee of L.tokens)L.output+=ee.output!=null?ee.output:ee.value,ee.suffix&&(L.output+=ee.suffix)}return L};f.fastpaths=(h,d)=>{let p={...d},D=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,w=h.length;if(w>D)throw new SyntaxError(`Input length: ${w}, exceeds maximum allowed length: ${D}`);h=o[h]||h;let y=n.isWindows(d),{DOT_LITERAL:m,SLASH_LITERAL:g,ONE_CHAR:C,DOTS_SLASH:E,NO_DOT:T,NO_DOTS:P,NO_DOTS_SLASH:b,STAR:B,START_ANCHOR:O}=r.globChars(y),A=p.dot?P:T,S=p.dot?b:T,v=p.capture?"":"?:",F={negated:!1,prefix:""},R=p.bash===!0?".*?":B;p.capture&&(R=`(${R})`);let k=U=>U.noglobstar===!0?R:`(${v}(?:(?!${O}${U.dot?E:m}).)*?)`,M=U=>{switch(U){case"*":return`${A}${C}${R}`;case".*":return`${m}${C}${R}`;case"*.*":return`${A}${R}${m}${C}${R}`;case"*/*":return`${A}${R}${g}${C}${S}${R}`;case"**":return A+k(p);case"**/*":return`(?:${A}${k(p)}${g})?${S}${C}${R}`;case"**/*.*":return`(?:${A}${k(p)}${g})?${S}${R}${m}${C}${R}`;case"**/.*":return`(?:${A}${k(p)}${g})?${m}${C}${R}`;default:{let j=/^(.*?)\.(\w+)$/.exec(U);if(!j)return;let X=M(j[1]);return X?X+m+j[2]:void 0}}},G=n.removePrefix(h,F),$=M(G);return $&&p.strictSlashes!==!0&&($+=`${g}?`),$},t.exports=f}}),$1=W({"node_modules/micromatch/node_modules/picomatch/lib/picomatch.js"(e,t){"use strict";var r=Ae("path"),n=M1(),i=j1(),s=Fu(),u=vu(),a=l=>l&&typeof l=="object"&&!Array.isArray(l),o=(l,c,f=!1)=>{if(Array.isArray(l)){let g=l.map(E=>o(E,c,f));return E=>{for(let T of g){let P=T(E);if(P)return P}return!1}}let h=a(l)&&l.tokens&&l.input;if(l===""||typeof l!="string"&&!h)throw new TypeError("Expected pattern to be a non-empty string");let d=c||{},p=s.isWindows(c),D=h?o.compileRe(l,c):o.makeRe(l,c,!1,!0),w=D.state;delete D.state;let y=()=>!1;if(d.ignore){let g={...c,ignore:null,onMatch:null,onResult:null};y=o(d.ignore,g,f)}let m=(g,C=!1)=>{let{isMatch:E,match:T,output:P}=o.test(g,D,c,{glob:l,posix:p}),b={glob:l,state:w,regex:D,posix:p,input:g,output:P,match:T,isMatch:E};return typeof d.onResult=="function"&&d.onResult(b),E===!1?(b.isMatch=!1,C?b:!1):y(g)?(typeof d.onIgnore=="function"&&d.onIgnore(b),b.isMatch=!1,C?b:!1):(typeof d.onMatch=="function"&&d.onMatch(b),C?b:!0)};return f&&(m.state=w),m};o.test=(l,c,f,{glob:h,posix:d}={})=>{if(typeof l!="string")throw new TypeError("Expected input to be a string");if(l==="")return{isMatch:!1,output:""};let p=f||{},D=p.format||(d?s.toPosixSlashes:null),w=l===h,y=w&&D?D(l):l;return w===!1&&(y=D?D(l):l,w=y===h),(w===!1||p.capture===!0)&&(p.matchBase===!0||p.basename===!0?w=o.matchBase(l,c,f,d):w=c.exec(y)),{isMatch:!!w,match:w,output:y}},o.matchBase=(l,c,f,h=s.isWindows(f))=>(c instanceof RegExp?c:o.makeRe(c,f)).test(r.basename(l)),o.isMatch=(l,c,f)=>o(c,f)(l),o.parse=(l,c)=>Array.isArray(l)?l.map(f=>o.parse(f,c)):i(l,{...c,fastpaths:!1}),o.scan=(l,c)=>n(l,c),o.compileRe=(l,c,f=!1,h=!1)=>{if(f===!0)return l.output;let d=c||{},p=d.contains?"":"^",D=d.contains?"":"$",w=`${p}(?:${l.output})${D}`;l&&l.negated===!0&&(w=`^(?!${w}).*$`);let y=o.toRegex(w,c);return h===!0&&(y.state=l),y},o.makeRe=(l,c={},f=!1,h=!1)=>{if(!l||typeof l!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return c.fastpaths!==!1&&(l[0]==="."||l[0]==="*")&&(d.output=i.fastpaths(l,c)),d.output||(d=i(l,c)),o.compileRe(d,c,f,h)},o.toRegex=(l,c)=>{try{let f=c||{};return new RegExp(l,f.flags||(f.nocase?"i":""))}catch(f){if(c&&c.debug===!0)throw f;return/$^/}},o.constants=u,t.exports=o}}),H1=W({"node_modules/micromatch/node_modules/picomatch/index.js"(e,t){"use strict";t.exports=$1()}}),bD=W({"node_modules/micromatch/index.js"(e,t){"use strict";var r=Ae("util"),n=N1(),i=H1(),s=Fu(),u=l=>l===""||l==="./",a=l=>{let c=l.indexOf("{");return c>-1&&l.indexOf("}",c)>-1},o=(l,c,f)=>{c=[].concat(c),l=[].concat(l);let h=new Set,d=new Set,p=new Set,D=0,w=g=>{p.add(g.output),f&&f.onResult&&f.onResult(g)};for(let g=0;g<c.length;g++){let C=i(String(c[g]),{...f,onResult:w},!0),E=C.state.negated||C.state.negatedExtglob;E&&D++;for(let T of l){let P=C(T,!0);(E?!P.isMatch:P.isMatch)&&(E?h.add(P.output):(h.delete(P.output),d.add(P.output)))}}let m=(D===c.length?[...p]:[...d]).filter(g=>!h.has(g));if(f&&m.length===0){if(f.failglob===!0)throw new Error(`No matches found for "${c.join(", ")}"`);if(f.nonull===!0||f.nullglob===!0)return f.unescape?c.map(g=>g.replace(/\\/g,"")):c}return m};o.match=o,o.matcher=(l,c)=>i(l,c),o.isMatch=(l,c,f)=>i(c,f)(l),o.any=o.isMatch,o.not=(l,c,f={})=>{c=[].concat(c).map(String);let h=new Set,d=[],p=w=>{f.onResult&&f.onResult(w),d.push(w.output)},D=new Set(o(l,c,{...f,onResult:p}));for(let w of d)D.has(w)||h.add(w);return[...h]},o.contains=(l,c,f)=>{if(typeof l!="string")throw new TypeError(`Expected a string: "${r.inspect(l)}"`);if(Array.isArray(c))return c.some(h=>o.contains(l,h,f));if(typeof c=="string"){if(u(l)||u(c))return!1;if(l.includes(c)||l.startsWith("./")&&l.slice(2).includes(c))return!0}return o.isMatch(l,c,{...f,contains:!0})},o.matchKeys=(l,c,f)=>{if(!s.isObject(l))throw new TypeError("Expected the first argument to be an object");let h=o(Object.keys(l),c,f),d={};for(let p of h)d[p]=l[p];return d},o.some=(l,c,f)=>{let h=[].concat(l);for(let d of[].concat(c)){let p=i(String(d),f);if(h.some(D=>p(D)))return!0}return!1},o.every=(l,c,f)=>{let h=[].concat(l);for(let d of[].concat(c)){let p=i(String(d),f);if(!h.every(D=>p(D)))return!1}return!0},o.all=(l,c,f)=>{if(typeof l!="string")throw new TypeError(`Expected a string: "${r.inspect(l)}"`);return[].concat(c).every(h=>i(h,f)(l))},o.capture=(l,c,f)=>{let h=s.isWindows(f),p=i.makeRe(String(l),{...f,capture:!0}).exec(h?s.toPosixSlashes(c):c);if(p)return p.slice(1).map(D=>D===void 0?"":D)},o.makeRe=(...l)=>i.makeRe(...l),o.scan=(...l)=>i.scan(...l),o.parse=(l,c)=>{let f=[];for(let h of[].concat(l||[]))for(let d of n(String(h),c))f.push(i.parse(d,c));return f},o.braces=(l,c)=>{if(typeof l!="string")throw new TypeError("Expected a string");return c&&c.nobrace===!0||!a(l)?[l]:n(l,c)},o.braceExpand=(l,c)=>{if(typeof l!="string")throw new TypeError("Expected a string");return o.braces(l,{...c,expand:!0})},o.hasBraces=a,t.exports=o}}),q1=W({"node_modules/fast-glob/out/utils/pattern.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAbsolute=e.partitionAbsoluteAndRelative=e.removeDuplicateSlashes=e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var t=Ae("path"),r=B1(),n=bD(),i="**",s="\\",u=/[*?]|^!/,a=/\[[^[]*]/,o=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,l=/[!*+?@]\([^(]*\)/,c=/,|\.\./,f=/(?!^)\/{2,}/g;function h(j,X={}){return!d(j,X)}e.isStaticPattern=h;function d(j,X={}){return j===""?!1:!!(X.caseSensitiveMatch===!1||j.includes(s)||u.test(j)||a.test(j)||o.test(j)||X.extglob!==!1&&l.test(j)||X.braceExpansion!==!1&&p(j))}e.isDynamicPattern=d;function p(j){let X=j.indexOf("{");if(X===-1)return!1;let L=j.indexOf("}",X+1);if(L===-1)return!1;let le=j.slice(X,L);return c.test(le)}function D(j){return y(j)?j.slice(1):j}e.convertToPositivePattern=D;function w(j){return"!"+j}e.convertToNegativePattern=w;function y(j){return j.startsWith("!")&&j[1]!=="("}e.isNegativePattern=y;function m(j){return!y(j)}e.isPositivePattern=m;function g(j){return j.filter(y)}e.getNegativePatterns=g;function C(j){return j.filter(m)}e.getPositivePatterns=C;function E(j){return j.filter(X=>!P(X))}e.getPatternsInsideCurrentDirectory=E;function T(j){return j.filter(P)}e.getPatternsOutsideCurrentDirectory=T;function P(j){return j.startsWith("..")||j.startsWith("./..")}e.isPatternRelatedToParentDirectory=P;function b(j){return r(j,{flipBackslashes:!1})}e.getBaseDirectory=b;function B(j){return j.includes(i)}e.hasGlobStar=B;function O(j){return j.endsWith("/"+i)}e.endsWithSlashGlobStar=O;function A(j){let X=t.basename(j);return O(j)||h(X)}e.isAffectDepthOfReadingPattern=A;function S(j){return j.reduce((X,L)=>X.concat(v(L)),[])}e.expandPatternsWithBraceExpansion=S;function v(j){let X=n.braces(j,{expand:!0,nodupes:!0,keepEscaping:!0});return X.sort((L,le)=>L.length-le.length),X.filter(L=>L!=="")}e.expandBraceExpansion=v;function F(j,X){let{parts:L}=n.scan(j,Object.assign(Object.assign({},X),{parts:!0}));return L.length===0&&(L=[j]),L[0].startsWith("/")&&(L[0]=L[0].slice(1),L.unshift("")),L}e.getPatternParts=F;function R(j,X){return n.makeRe(j,X)}e.makeRe=R;function k(j,X){return j.map(L=>R(L,X))}e.convertPatternsToRe=k;function M(j,X){return X.some(L=>L.test(j))}e.matchAny=M;function G(j){return j.replace(f,"/")}e.removeDuplicateSlashes=G;function $(j){let X=[],L=[];for(let le of j)U(le)?X.push(le):L.push(le);return[X,L]}e.partitionAbsoluteAndRelative=$;function U(j){return t.isAbsolute(j)}e.isAbsolute=U}}),U1=W({"node_modules/merge2/index.js"(e,t){"use strict";var r=Ae("stream"),n=r.PassThrough,i=Array.prototype.slice;t.exports=s;function s(){let a=[],o=i.call(arguments),l=!1,c=o[o.length-1];c&&!Array.isArray(c)&&c.pipe==null?o.pop():c={};let f=c.end!==!1,h=c.pipeError===!0;c.objectMode==null&&(c.objectMode=!0),c.highWaterMark==null&&(c.highWaterMark=64*1024);let d=n(c);function p(){for(let y=0,m=arguments.length;y<m;y++)a.push(u(arguments[y],c));return D(),this}function D(){if(l)return;l=!0;let y=a.shift();if(!y){process.nextTick(w);return}Array.isArray(y)||(y=[y]);let m=y.length+1;function g(){--m>0||(l=!1,D())}function C(E){function T(){E.removeListener("merge2UnpipeEnd",T),E.removeListener("end",T),h&&E.removeListener("error",P),g()}function P(b){d.emit("error",b)}if(E._readableState.endEmitted)return g();E.on("merge2UnpipeEnd",T),E.on("end",T),h&&E.on("error",P),E.pipe(d,{end:!1}),E.resume()}for(let E=0;E<y.length;E++)C(y[E]);g()}function w(){l=!1,d.emit("queueDrain"),f&&d.end()}return d.setMaxListeners(0),d.add=p,d.on("unpipe",function(y){y.emit("merge2UnpipeEnd")}),o.length&&p.apply(null,o),d}function u(a,o){if(Array.isArray(a))for(let l=0,c=a.length;l<c;l++)a[l]=u(a[l],o);else{if(!a._readableState&&a.pipe&&(a=a.pipe(n(o))),!a._readableState||!a.pause||!a.pipe)throw new Error("Only readable stream can be merged.");a.pause()}return a}}}),G1=W({"node_modules/fast-glob/out/utils/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var t=U1();function r(i){let s=t(i);return i.forEach(u=>{u.once("error",a=>s.emit("error",a))}),s.once("close",()=>n(i)),s.once("end",()=>n(i)),s}e.merge=r;function n(i){i.forEach(s=>s.emit("close"))}}}),W1=W({"node_modules/fast-glob/out/utils/string.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function t(n){return typeof n=="string"}e.isString=t;function r(n){return n===""}e.isEmpty=r}}),Lr=W({"node_modules/fast-glob/out/utils/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var t=A1();e.array=t;var r=w1();e.errno=r;var n=b1();e.fs=n;var i=S1();e.path=i;var s=q1();e.pattern=s;var u=G1();e.stream=u;var a=W1();e.string=a}}),V1=W({"node_modules/fast-glob/out/managers/tasks.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var t=Lr();function r(c,f){let h=n(c,f),d=n(f.ignore,f),p=s(h),D=u(h,d),w=p.filter(C=>t.pattern.isStaticPattern(C,f)),y=p.filter(C=>t.pattern.isDynamicPattern(C,f)),m=i(w,D,!1),g=i(y,D,!0);return m.concat(g)}e.generate=r;function n(c,f){let h=c;return f.braceExpansion&&(h=t.pattern.expandPatternsWithBraceExpansion(h)),f.baseNameMatch&&(h=h.map(d=>d.includes("/")?d:`**/${d}`)),h.map(d=>t.pattern.removeDuplicateSlashes(d))}function i(c,f,h){let d=[],p=t.pattern.getPatternsOutsideCurrentDirectory(c),D=t.pattern.getPatternsInsideCurrentDirectory(c),w=a(p),y=a(D);return d.push(...o(w,f,h)),"."in y?d.push(l(".",D,f,h)):d.push(...o(y,f,h)),d}e.convertPatternsToTasks=i;function s(c){return t.pattern.getPositivePatterns(c)}e.getPositivePatterns=s;function u(c,f){return t.pattern.getNegativePatterns(c).concat(f).map(t.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=u;function a(c){let f={};return c.reduce((h,d)=>{let p=t.pattern.getBaseDirectory(d);return p in h?h[p].push(d):h[p]=[d],h},f)}e.groupPatternsByBaseDirectory=a;function o(c,f,h){return Object.keys(c).map(d=>l(d,c[d],f,h))}e.convertPatternGroupsToTasks=o;function l(c,f,h,d){return{dynamic:d,positive:f,negative:h,base:c,patterns:[].concat(f,h.map(t.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=l}}),Y1=W({"node_modules/@nodelib/fs.stat/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(i,s,u){s.fs.lstat(i,(a,o)=>{if(a!==null){r(u,a);return}if(!o.isSymbolicLink()||!s.followSymbolicLink){n(u,o);return}s.fs.stat(i,(l,c)=>{if(l!==null){if(s.throwErrorOnBrokenSymbolicLink){r(u,l);return}n(u,o);return}s.markSymbolicLink&&(c.isSymbolicLink=()=>!0),n(u,c)})})}e.read=t;function r(i,s){i(s)}function n(i,s){i(null,s)}}}),z1=W({"node_modules/@nodelib/fs.stat/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(r,n){let i=n.fs.lstatSync(r);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let s=n.fs.statSync(r);return n.markSymbolicLink&&(s.isSymbolicLink=()=>!0),s}catch(s){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw s}}e.read=t}}),K1=W({"node_modules/@nodelib/fs.stat/out/adapters/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=Ae("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function r(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=r}}),J1=W({"node_modules/@nodelib/fs.stat/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=K1(),r=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n??i}};e.default=r}}),jn=W({"node_modules/@nodelib/fs.stat/out/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var t=Y1(),r=z1(),n=J1();e.Settings=n.default;function i(a,o,l){if(typeof o=="function"){t.read(a,u(),o);return}t.read(a,u(o),l)}e.stat=i;function s(a,o){let l=u(o);return r.read(a,l)}e.statSync=s;function u(a={}){return a instanceof n.default?a:new n.default(a)}}}),X1=W({"node_modules/queue-microtask/index.js"(e,t){var r;t.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(r||(r=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}}),Q1=W({"node_modules/run-parallel/index.js"(e,t){t.exports=n;var r=X1();function n(i,s){let u,a,o,l=!0;Array.isArray(i)?(u=[],a=i.length):(o=Object.keys(i),u={},a=o.length);function c(h){function d(){s&&s(h,u),s=null}l?r(d):d()}function f(h,d,p){u[h]=p,(--a===0||d)&&c(d)}a?o?o.forEach(function(h){i[h](function(d,p){f(h,d,p)})}):i.forEach(function(h,d){h(function(p,D){f(d,p,D)})}):c(null),l=!1}}}),SD=W({"node_modules/@nodelib/fs.scandir/out/constants.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var t=process.versions.node.split(".");if(t[0]===void 0||t[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(t[0],10),n=Number.parseInt(t[1],10),i=10,s=10,u=r>i,a=r===i&&n>=s;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=u||a}}),Z1=W({"node_modules/@nodelib/fs.scandir/out/utils/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new t(n,i)}e.createDirentFromStats=r}}),RD=W({"node_modules/@nodelib/fs.scandir/out/utils/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var t=Z1();e.fs=t}}),TD=W({"node_modules/@nodelib/fs.scandir/out/providers/common.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function t(r,n,i){return r.endsWith(i)?r+n:r+i+n}e.joinPathSegments=t}}),eS=W({"node_modules/@nodelib/fs.scandir/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=jn(),r=Q1(),n=SD(),i=RD(),s=TD();function u(h,d,p){if(!d.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){a(h,d,p);return}l(h,d,p)}e.read=u;function a(h,d,p){d.fs.readdir(h,{withFileTypes:!0},(D,w)=>{if(D!==null){c(p,D);return}let y=w.map(g=>({dirent:g,name:g.name,path:s.joinPathSegments(h,g.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){f(p,y);return}let m=y.map(g=>o(g,d));r(m,(g,C)=>{if(g!==null){c(p,g);return}f(p,C)})})}e.readdirWithFileTypes=a;function o(h,d){return p=>{if(!h.dirent.isSymbolicLink()){p(null,h);return}d.fs.stat(h.path,(D,w)=>{if(D!==null){if(d.throwErrorOnBrokenSymbolicLink){p(D);return}p(null,h);return}h.dirent=i.fs.createDirentFromStats(h.name,w),p(null,h)})}}function l(h,d,p){d.fs.readdir(h,(D,w)=>{if(D!==null){c(p,D);return}let y=w.map(m=>{let g=s.joinPathSegments(h,m,d.pathSegmentSeparator);return C=>{t.stat(g,d.fsStatSettings,(E,T)=>{if(E!==null){C(E);return}let P={name:m,path:g,dirent:i.fs.createDirentFromStats(m,T)};d.stats&&(P.stats=T),C(null,P)})}});r(y,(m,g)=>{if(m!==null){c(p,m);return}f(p,g)})})}e.readdir=l;function c(h,d){h(d)}function f(h,d){h(null,d)}}}),tS=W({"node_modules/@nodelib/fs.scandir/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=jn(),r=SD(),n=RD(),i=TD();function s(o,l){return!l.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?u(o,l):a(o,l)}e.read=s;function u(o,l){return l.fs.readdirSync(o,{withFileTypes:!0}).map(f=>{let h={dirent:f,name:f.name,path:i.joinPathSegments(o,f.name,l.pathSegmentSeparator)};if(h.dirent.isSymbolicLink()&&l.followSymbolicLinks)try{let d=l.fs.statSync(h.path);h.dirent=n.fs.createDirentFromStats(h.name,d)}catch(d){if(l.throwErrorOnBrokenSymbolicLink)throw d}return h})}e.readdirWithFileTypes=u;function a(o,l){return l.fs.readdirSync(o).map(f=>{let h=i.joinPathSegments(o,f,l.pathSegmentSeparator),d=t.statSync(h,l.fsStatSettings),p={name:f,path:h,dirent:n.fs.createDirentFromStats(f,d)};return l.stats&&(p.stats=d),p})}e.readdir=a}}),rS=W({"node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=Ae("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function r(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=r}}),nS=W({"node_modules/@nodelib/fs.scandir/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ae("path"),r=jn(),n=rS(),i=class{constructor(s={}){this._options=s,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(s,u){return s??u}};e.default=i}}),cl=W({"node_modules/@nodelib/fs.scandir/out/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var t=eS(),r=tS(),n=nS();e.Settings=n.default;function i(a,o,l){if(typeof o=="function"){t.read(a,u(),o);return}t.read(a,u(o),l)}e.scandir=i;function s(a,o){let l=u(o);return r.read(a,l)}e.scandirSync=s;function u(a={}){return a instanceof n.default?a:new n.default(a)}}}),iS=W({"node_modules/reusify/reusify.js"(e,t){"use strict";function r(n){var i=new n,s=i;function u(){var o=i;return o.next?i=o.next:(i=new n,s=i),o.next=null,o}function a(o){s.next=o,s=o}return{get:u,release:a}}t.exports=r}}),sS=W({"node_modules/fastq/queue.js"(e,t){"use strict";var r=iS();function n(a,o,l){if(typeof a=="function"&&(l=o,o=a,a=null),!(l>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var c=r(s),f=null,h=null,d=0,p=null,D={push:T,drain:i,saturated:i,pause:y,paused:!1,get concurrency(){return l},set concurrency(S){if(!(S>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(l=S,!D.paused)for(;f&&d<l;)d++,b()},running:w,resume:C,idle:E,length:m,getQueue:g,unshift:P,empty:i,kill:B,killAndDrain:O,error:A};return D;function w(){return d}function y(){D.paused=!0}function m(){for(var S=f,v=0;S;)S=S.next,v++;return v}function g(){for(var S=f,v=[];S;)v.push(S.value),S=S.next;return v}function C(){if(D.paused){if(D.paused=!1,f===null){d++,b();return}for(;f&&d<l;)d++,b()}}function E(){return d===0&&D.length()===0}function T(S,v){var F=c.get();F.context=a,F.release=b,F.value=S,F.callback=v||i,F.errorHandler=p,d>=l||D.paused?h?(h.next=F,h=F):(f=F,h=F,D.saturated()):(d++,o.call(a,F.value,F.worked))}function P(S,v){var F=c.get();F.context=a,F.release=b,F.value=S,F.callback=v||i,F.errorHandler=p,d>=l||D.paused?f?(F.next=f,f=F):(f=F,h=F,D.saturated()):(d++,o.call(a,F.value,F.worked))}function b(S){S&&c.release(S);var v=f;v&&d<=l?D.paused?d--:(h===f&&(h=null),f=v.next,v.next=null,o.call(a,v.value,v.worked),h===null&&D.empty()):--d===0&&D.drain()}function B(){f=null,h=null,D.drain=i}function O(){f=null,h=null,D.drain(),D.drain=i}function A(S){p=S}}function i(){}function s(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var a=this;this.worked=function(l,c){var f=a.callback,h=a.errorHandler,d=a.value;a.value=null,a.callback=i,a.errorHandler&&h(l,d),f.call(a.context,l,c),a.release(a)}}function u(a,o,l){typeof a=="function"&&(l=o,o=a,a=null);function c(y,m){o.call(this,y).then(function(g){m(null,g)},m)}var f=n(a,c,l),h=f.push,d=f.unshift;return f.push=p,f.unshift=D,f.drained=w,f;function p(y){var m=new Promise(function(g,C){h(y,function(E,T){if(E){C(E);return}g(T)})});return m.catch(i),m}function D(y){var m=new Promise(function(g,C){d(y,function(E,T){if(E){C(E);return}g(T)})});return m.catch(i),m}function w(){var y=new Promise(function(m){process.nextTick(function(){if(f.idle())m();else{var g=f.drain;f.drain=function(){typeof g=="function"&&g(),m(),f.drain=g}}})});return y}}t.exports=n,t.exports.promise=u}}),fl=W({"node_modules/@nodelib/fs.walk/out/readers/common.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(s,u){return s.errorFilter===null?!0:!s.errorFilter(u)}e.isFatalError=t;function r(s,u){return s===null||s(u)}e.isAppliedFilter=r;function n(s,u){return s.split(/[/\\]/).join(u)}e.replacePathSegmentSeparator=n;function i(s,u,a){return s===""?u:s.endsWith(a)?s+u:s+a+u}e.joinPathSegments=i}}),BD=W({"node_modules/@nodelib/fs.walk/out/readers/reader.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=fl(),r=class{constructor(n,i){this._root=n,this._settings=i,this._root=t.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};e.default=r}}),xD=W({"node_modules/@nodelib/fs.walk/out/readers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ae("events"),r=cl(),n=sS(),i=fl(),s=BD(),u=class extends s.default{constructor(a,o){super(a,o),this._settings=o,this._scandir=r.scandir,this._emitter=new t.EventEmitter,this._queue=n(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(a){this._emitter.on("entry",a)}onError(a){this._emitter.once("error",a)}onEnd(a){this._emitter.once("end",a)}_pushToQueue(a,o){let l={directory:a,base:o};this._queue.push(l,c=>{c!==null&&this._handleError(c)})}_worker(a,o){this._scandir(a.directory,this._settings.fsScandirSettings,(l,c)=>{if(l!==null){o(l,void 0);return}for(let f of c)this._handleEntry(f,a.base);o(null,void 0)})}_handleError(a){this._isDestroyed||!i.isFatalError(this._settings,a)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",a))}_handleEntry(a,o){if(this._isDestroyed||this._isFatalError)return;let l=a.path;o!==void 0&&(a.path=i.joinPathSegments(o,a.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,a)&&this._emitEntry(a),a.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,a)&&this._pushToQueue(l,o===void 0?void 0:a.path)}_emitEntry(a){this._emitter.emit("entry",a)}};e.default=u}}),uS=W({"node_modules/@nodelib/fs.walk/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=xD(),r=class{constructor(s,u){this._root=s,this._settings=u,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(s){this._reader.onError(u=>{n(s,u)}),this._reader.onEntry(u=>{this._storage.push(u)}),this._reader.onEnd(()=>{i(s,this._storage)}),this._reader.read()}};e.default=r;function n(s,u){s(u)}function i(s,u){s(null,u)}}}),aS=W({"node_modules/@nodelib/fs.walk/out/providers/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ae("stream"),r=xD(),n=class{constructor(i,s){this._root=i,this._settings=s,this._reader=new r.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=n}}),oS=W({"node_modules/@nodelib/fs.walk/out/readers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=cl(),r=fl(),n=BD(),i=class extends n.default{constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(s,u){this._queue.add({directory:s,base:u})}_handleQueue(){for(let s of this._queue.values())this._handleDirectory(s.directory,s.base)}_handleDirectory(s,u){try{let a=this._scandir(s,this._settings.fsScandirSettings);for(let o of a)this._handleEntry(o,u)}catch(a){this._handleError(a)}}_handleError(s){if(r.isFatalError(this._settings,s))throw s}_handleEntry(s,u){let a=s.path;u!==void 0&&(s.path=r.joinPathSegments(u,s.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,s)&&this._pushToStorage(s),s.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,s)&&this._pushToQueue(a,u===void 0?void 0:s.path)}_pushToStorage(s){this._storage.push(s)}};e.default=i}}),lS=W({"node_modules/@nodelib/fs.walk/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=oS(),r=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=r}}),cS=W({"node_modules/@nodelib/fs.walk/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ae("path"),r=cl(),n=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,s){return i??s}};e.default=n}}),hl=W({"node_modules/@nodelib/fs.walk/out/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var t=uS(),r=aS(),n=lS(),i=cS();e.Settings=i.default;function s(l,c,f){if(typeof c=="function"){new t.default(l,o()).read(c);return}new t.default(l,o(c)).read(f)}e.walk=s;function u(l,c){let f=o(c);return new n.default(l,f).read()}e.walkSync=u;function a(l,c){let f=o(c);return new r.default(l,f).read()}e.walkStream=a;function o(l={}){return l instanceof i.default?l:new i.default(l)}}}),dl=W({"node_modules/fast-glob/out/readers/reader.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ae("path"),r=jn(),n=Lr(),i=class{constructor(s){this._settings=s,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(s){return t.resolve(this._settings.cwd,s)}_makeEntry(s,u){let a={name:u,path:u,dirent:n.fs.createDirentFromStats(u,s)};return this._settings.stats&&(a.stats=s),a}_isFatalError(s){return!n.errno.isEnoentCodeError(s)&&!this._settings.suppressErrors}};e.default=i}}),kD=W({"node_modules/fast-glob/out/readers/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ae("stream"),r=jn(),n=hl(),i=dl(),s=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=r.stat}dynamic(u,a){return this._walkStream(u,a)}static(u,a){let o=u.map(this._getFullEntryPath,this),l=new t.PassThrough({objectMode:!0});l._write=(c,f,h)=>this._getEntry(o[c],u[c],a).then(d=>{d!==null&&a.entryFilter(d)&&l.push(d),c===o.length-1&&l.end(),h()}).catch(h);for(let c=0;c<o.length;c++)l.write(c);return l}_getEntry(u,a,o){return this._getStat(u).then(l=>this._makeEntry(l,a)).catch(l=>{if(o.errorFilter(l))return null;throw l})}_getStat(u){return new Promise((a,o)=>{this._stat(u,this._fsStatSettings,(l,c)=>l===null?a(c):o(l))})}};e.default=s}}),fS=W({"node_modules/fast-glob/out/readers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=hl(),r=dl(),n=kD(),i=class extends r.default{constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new n.default(this._settings)}dynamic(s,u){return new Promise((a,o)=>{this._walkAsync(s,u,(l,c)=>{l===null?a(c):o(l)})})}async static(s,u){let a=[],o=this._readerStream.static(s,u);return new Promise((l,c)=>{o.once("error",c),o.on("data",f=>a.push(f)),o.once("end",()=>l(a))})}};e.default=i}}),hS=W({"node_modules/fast-glob/out/providers/matchers/matcher.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Lr(),r=class{constructor(n,i,s){this._patterns=n,this._settings=i,this._micromatchOptions=s,this._storage=[],this._fillStorage()}_fillStorage(){for(let n of this._patterns){let i=this._getPatternSegments(n),s=this._splitSegmentsIntoSections(i);this._storage.push({complete:s.length<=1,pattern:n,segments:i,sections:s})}}_getPatternSegments(n){return t.pattern.getPatternParts(n,this._micromatchOptions).map(s=>t.pattern.isDynamicPattern(s,this._settings)?{dynamic:!0,pattern:s,patternRe:t.pattern.makeRe(s,this._micromatchOptions)}:{dynamic:!1,pattern:s})}_splitSegmentsIntoSections(n){return t.array.splitWhen(n,i=>i.dynamic&&t.pattern.hasGlobStar(i.pattern))}};e.default=r}}),dS=W({"node_modules/fast-glob/out/providers/matchers/partial.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=hS(),r=class extends t.default{match(n){let i=n.split("/"),s=i.length,u=this._storage.filter(a=>!a.complete||a.segments.length>s);for(let a of u){let o=a.sections[0];if(!a.complete&&s>o.length||i.every((c,f)=>{let h=a.segments[f];return!!(h.dynamic&&h.patternRe.test(c)||!h.dynamic&&h.pattern===c)}))return!0}return!1}};e.default=r}}),pS=W({"node_modules/fast-glob/out/providers/filters/deep.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Lr(),r=dS(),n=class{constructor(i,s){this._settings=i,this._micromatchOptions=s}getFilter(i,s,u){let a=this._getMatcher(s),o=this._getNegativePatternsRe(u);return l=>this._filter(i,l,a,o)}_getMatcher(i){return new r.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let s=i.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(s,this._micromatchOptions)}_filter(i,s,u,a){if(this._isSkippedByDeep(i,s.path)||this._isSkippedSymbolicLink(s))return!1;let o=t.path.removeLeadingDotSegment(s.path);return this._isSkippedByPositivePatterns(o,u)?!1:this._isSkippedByNegativePatterns(o,a)}_isSkippedByDeep(i,s){return this._settings.deep===1/0?!1:this._getEntryLevel(i,s)>=this._settings.deep}_getEntryLevel(i,s){let u=s.split("/").length;if(i==="")return u;let a=i.split("/").length;return u-a}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,s){return!this._settings.baseNameMatch&&!s.match(i)}_isSkippedByNegativePatterns(i,s){return!t.pattern.matchAny(i,s)}};e.default=n}}),DS=W({"node_modules/fast-glob/out/providers/filters/entry.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Lr(),r=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let[s,u]=t.pattern.partitionAbsoluteAndRelative(i),a={positive:{all:t.pattern.convertPatternsToRe(n,this._micromatchOptions)},negative:{absolute:t.pattern.convertPatternsToRe(s,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:t.pattern.convertPatternsToRe(u,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return o=>this._filter(o,a)}_filter(n,i){let s=t.path.removeLeadingDotSegment(n.path);if(this._settings.unique&&this._isDuplicateEntry(s)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n))return!1;let u=this._isMatchToPatternsSet(s,i,n.dirent.isDirectory());return this._settings.unique&&u&&this._createIndexRecord(s),u}_isDuplicateEntry(n){return this.index.has(n)}_createIndexRecord(n){this.index.set(n,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isMatchToPatternsSet(n,i,s){return!(!this._isMatchToPatterns(n,i.positive.all,s)||this._isMatchToPatterns(n,i.negative.relative,s)||this._isMatchToAbsoluteNegative(n,i.negative.absolute,s))}_isMatchToAbsoluteNegative(n,i,s){if(i.length===0)return!1;let u=t.path.makeAbsolute(this._settings.cwd,n);return this._isMatchToPatterns(u,i,s)}_isMatchToPatterns(n,i,s){if(i.length===0)return!1;let u=t.pattern.matchAny(n,i);return!u&&s?t.pattern.matchAny(n+"/",i):u}};e.default=r}}),mS=W({"node_modules/fast-glob/out/providers/filters/error.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Lr(),r=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return t.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};e.default=r}}),gS=W({"node_modules/fast-glob/out/providers/transformers/entry.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Lr(),r=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=t.path.makeAbsolute(this._settings.cwd,i),i=t.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};e.default=r}}),pl=W({"node_modules/fast-glob/out/providers/provider.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ae("path"),r=pS(),n=DS(),i=mS(),s=gS(),u=class{constructor(a){this._settings=a,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new s.default(this._settings)}_getRootDirectory(a){return t.resolve(this._settings.cwd,a.base)}_getReaderOptions(a){let o=a.base==="."?"":a.base;return{basePath:o,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(o,a.positive,a.negative),entryFilter:this.entryFilter.getFilter(a.positive,a.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=u}}),_S=W({"node_modules/fast-glob/out/providers/async.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=fS(),r=pl(),n=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(i){let s=this._getRootDirectory(i),u=this._getReaderOptions(i);return(await this.api(s,i,u)).map(o=>u.transform(o))}api(i,s,u){return s.dynamic?this._reader.dynamic(i,u):this._reader.static(s.patterns,u)}};e.default=n}}),yS=W({"node_modules/fast-glob/out/providers/stream.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Ae("stream"),r=kD(),n=pl(),i=class extends n.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(s){let u=this._getRootDirectory(s),a=this._getReaderOptions(s),o=this.api(u,s,a),l=new t.Readable({objectMode:!0,read:()=>{}});return o.once("error",c=>l.emit("error",c)).on("data",c=>l.emit("data",a.transform(c))).once("end",()=>l.emit("end")),l.once("close",()=>o.destroy()),l}api(s,u,a){return u.dynamic?this._reader.dynamic(s,a):this._reader.static(u.patterns,a)}};e.default=i}}),ES=W({"node_modules/fast-glob/out/readers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=jn(),r=hl(),n=dl(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=t.statSync}dynamic(s,u){return this._walkSync(s,u)}static(s,u){let a=[];for(let o of s){let l=this._getFullEntryPath(o),c=this._getEntry(l,o,u);c===null||!u.entryFilter(c)||a.push(c)}return a}_getEntry(s,u,a){try{let o=this._getStat(s);return this._makeEntry(o,u)}catch(o){if(a.errorFilter(o))return null;throw o}}_getStat(s){return this._statSync(s,this._fsStatSettings)}};e.default=i}}),vS=W({"node_modules/fast-glob/out/providers/sync.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=ES(),r=pl(),n=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(i){let s=this._getRootDirectory(i),u=this._getReaderOptions(i);return this.api(s,i,u).map(u.transform)}api(i,s,u){return s.dynamic?this._reader.dynamic(i,u):this._reader.static(s.patterns,u)}};e.default=n}}),FS=W({"node_modules/fast-glob/out/settings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var t=Ae("fs"),r=Ae("os"),n=Math.max(r.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};var i=class{constructor(s={}){this._options=s,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,n),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(s,u){return s===void 0?u:s}_getFileSystemMethods(s={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),s)}};e.default=i}}),CS=W({"node_modules/fast-glob/out/index.js"(e,t){"use strict";var r=V1(),n=_S(),i=yS(),s=vS(),u=FS(),a=Lr();async function o(f,h){c(f);let d=l(f,n.default,h),p=await Promise.all(d);return a.array.flatten(p)}(function(f){f.glob=f,f.globSync=h,f.globStream=d,f.async=f;function h(C,E){c(C);let T=l(C,s.default,E);return a.array.flatten(T)}f.sync=h;function d(C,E){c(C);let T=l(C,i.default,E);return a.stream.merge(T)}f.stream=d;function p(C,E){c(C);let T=[].concat(C),P=new u.default(E);return r.generate(T,P)}f.generateTasks=p;function D(C,E){c(C);let T=new u.default(E);return a.pattern.isDynamicPattern(C,T)}f.isDynamicPattern=D;function w(C){return c(C),a.path.escape(C)}f.escapePath=w;function y(C){return c(C),a.path.convertPathToPattern(C)}f.convertPathToPattern=y;let m;(function(C){function E(P){return c(P),a.path.escapePosixPath(P)}C.escapePath=E;function T(P){return c(P),a.path.convertPosixPathToPattern(P)}C.convertPathToPattern=T})(m=f.posix||(f.posix={}));let g;(function(C){function E(P){return c(P),a.path.escapeWindowsPath(P)}C.escapePath=E;function T(P){return c(P),a.path.convertWindowsPathToPattern(P)}C.convertPathToPattern=T})(g=f.win32||(f.win32={}))})(o||(o={}));function l(f,h,d){let p=[].concat(f),D=new u.default(d),w=r.generate(p,D),y=new h(D);return w.map(y.read,y)}function c(f){if(![].concat(f).every(p=>a.string.isString(p)&&!a.string.isEmpty(p)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}t.exports=o}}),Pi=W({"node_modules/picocolors/picocolors.js"(e,t){var r=process||{},n=r.argv||[],i=r.env||{},s=!(i.NO_COLOR||n.includes("--no-color"))&&(!!i.FORCE_COLOR||n.includes("--color")||r.platform==="win32"||(r.stdout||{}).isTTY&&i.TERM!=="dumb"||!!i.CI),u=(l,c,f=l)=>h=>{let d=""+h,p=d.indexOf(c,l.length);return~p?l+a(d,c,f,p)+c:l+d+c},a=(l,c,f,h)=>{let d="",p=0;do d+=l.substring(p,h)+f,p=h+c.length,h=l.indexOf(c,p);while(~h);return d+l.substring(p)},o=(l=s)=>{let c=l?u:()=>String;return{isColorSupported:l,reset:c("\x1B[0m","\x1B[0m"),bold:c("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:c("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:c("\x1B[3m","\x1B[23m"),underline:c("\x1B[4m","\x1B[24m"),inverse:c("\x1B[7m","\x1B[27m"),hidden:c("\x1B[8m","\x1B[28m"),strikethrough:c("\x1B[9m","\x1B[29m"),black:c("\x1B[30m","\x1B[39m"),red:c("\x1B[31m","\x1B[39m"),green:c("\x1B[32m","\x1B[39m"),yellow:c("\x1B[33m","\x1B[39m"),blue:c("\x1B[34m","\x1B[39m"),magenta:c("\x1B[35m","\x1B[39m"),cyan:c("\x1B[36m","\x1B[39m"),white:c("\x1B[37m","\x1B[39m"),gray:c("\x1B[90m","\x1B[39m"),bgBlack:c("\x1B[40m","\x1B[49m"),bgRed:c("\x1B[41m","\x1B[49m"),bgGreen:c("\x1B[42m","\x1B[49m"),bgYellow:c("\x1B[43m","\x1B[49m"),bgBlue:c("\x1B[44m","\x1B[49m"),bgMagenta:c("\x1B[45m","\x1B[49m"),bgCyan:c("\x1B[46m","\x1B[49m"),bgWhite:c("\x1B[47m","\x1B[49m"),blackBright:c("\x1B[90m","\x1B[39m"),redBright:c("\x1B[91m","\x1B[39m"),greenBright:c("\x1B[92m","\x1B[39m"),yellowBright:c("\x1B[93m","\x1B[39m"),blueBright:c("\x1B[94m","\x1B[39m"),magentaBright:c("\x1B[95m","\x1B[39m"),cyanBright:c("\x1B[96m","\x1B[39m"),whiteBright:c("\x1B[97m","\x1B[39m"),bgBlackBright:c("\x1B[100m","\x1B[49m"),bgRedBright:c("\x1B[101m","\x1B[49m"),bgGreenBright:c("\x1B[102m","\x1B[49m"),bgYellowBright:c("\x1B[103m","\x1B[49m"),bgBlueBright:c("\x1B[104m","\x1B[49m"),bgMagentaBright:c("\x1B[105m","\x1B[49m"),bgCyanBright:c("\x1B[106m","\x1B[49m"),bgWhiteBright:c("\x1B[107m","\x1B[49m")}};t.exports=o(),t.exports.createColors=o}}),PD=W({"node_modules/semver/internal/debug.js"(e,t){"use strict";var r=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};t.exports=r}}),OD=W({"node_modules/semver/internal/constants.js"(e,t){"use strict";var r="2.0.0",n=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,s=16,u=n-6,a=["major","premajor","minor","preminor","patch","prepatch","prerelease"];t.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:u,MAX_SAFE_INTEGER:i,RELEASE_TYPES:a,SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),AS=W({"node_modules/semver/internal/re.js"(e,t){"use strict";var{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=OD(),s=PD();e=t.exports={};var u=e.re=[],a=e.safeRe=[],o=e.src=[],l=e.safeSrc=[],c=e.t={},f=0,h="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",i],[h,n]],p=w=>{for(let[y,m]of d)w=w.split(`${y}*`).join(`${y}{0,${m}}`).split(`${y}+`).join(`${y}{1,${m}}`);return w},D=(w,y,m)=>{let g=p(y),C=f++;s(w,C,y),c[w]=C,o[C]=y,l[C]=g,u[C]=new RegExp(y,m?"g":void 0),a[C]=new RegExp(g,m?"g":void 0)};D("NUMERICIDENTIFIER","0|[1-9]\\d*"),D("NUMERICIDENTIFIERLOOSE","\\d+"),D("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),D("MAINVERSION",`(${o[c.NUMERICIDENTIFIER]})\\.(${o[c.NUMERICIDENTIFIER]})\\.(${o[c.NUMERICIDENTIFIER]})`),D("MAINVERSIONLOOSE",`(${o[c.NUMERICIDENTIFIERLOOSE]})\\.(${o[c.NUMERICIDENTIFIERLOOSE]})\\.(${o[c.NUMERICIDENTIFIERLOOSE]})`),D("PRERELEASEIDENTIFIER",`(?:${o[c.NONNUMERICIDENTIFIER]}|${o[c.NUMERICIDENTIFIER]})`),D("PRERELEASEIDENTIFIERLOOSE",`(?:${o[c.NONNUMERICIDENTIFIER]}|${o[c.NUMERICIDENTIFIERLOOSE]})`),D("PRERELEASE",`(?:-(${o[c.PRERELEASEIDENTIFIER]}(?:\\.${o[c.PRERELEASEIDENTIFIER]})*))`),D("PRERELEASELOOSE",`(?:-?(${o[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[c.PRERELEASEIDENTIFIERLOOSE]})*))`),D("BUILDIDENTIFIER",`${h}+`),D("BUILD",`(?:\\+(${o[c.BUILDIDENTIFIER]}(?:\\.${o[c.BUILDIDENTIFIER]})*))`),D("FULLPLAIN",`v?${o[c.MAINVERSION]}${o[c.PRERELEASE]}?${o[c.BUILD]}?`),D("FULL",`^${o[c.FULLPLAIN]}$`),D("LOOSEPLAIN",`[v=\\s]*${o[c.MAINVERSIONLOOSE]}${o[c.PRERELEASELOOSE]}?${o[c.BUILD]}?`),D("LOOSE",`^${o[c.LOOSEPLAIN]}$`),D("GTLT","((?:<|>)?=?)"),D("XRANGEIDENTIFIERLOOSE",`${o[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),D("XRANGEIDENTIFIER",`${o[c.NUMERICIDENTIFIER]}|x|X|\\*`),D("XRANGEPLAIN",`[v=\\s]*(${o[c.XRANGEIDENTIFIER]})(?:\\.(${o[c.XRANGEIDENTIFIER]})(?:\\.(${o[c.XRANGEIDENTIFIER]})(?:${o[c.PRERELEASE]})?${o[c.BUILD]}?)?)?`),D("XRANGEPLAINLOOSE",`[v=\\s]*(${o[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[c.XRANGEIDENTIFIERLOOSE]})(?:${o[c.PRERELEASELOOSE]})?${o[c.BUILD]}?)?)?`),D("XRANGE",`^${o[c.GTLT]}\\s*${o[c.XRANGEPLAIN]}$`),D("XRANGELOOSE",`^${o[c.GTLT]}\\s*${o[c.XRANGEPLAINLOOSE]}$`),D("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),D("COERCE",`${o[c.COERCEPLAIN]}(?:$|[^\\d])`),D("COERCEFULL",o[c.COERCEPLAIN]+`(?:${o[c.PRERELEASE]})?(?:${o[c.BUILD]})?(?:$|[^\\d])`),D("COERCERTL",o[c.COERCE],!0),D("COERCERTLFULL",o[c.COERCEFULL],!0),D("LONETILDE","(?:~>?)"),D("TILDETRIM",`(\\s*)${o[c.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",D("TILDE",`^${o[c.LONETILDE]}${o[c.XRANGEPLAIN]}$`),D("TILDELOOSE",`^${o[c.LONETILDE]}${o[c.XRANGEPLAINLOOSE]}$`),D("LONECARET","(?:\\^)"),D("CARETTRIM",`(\\s*)${o[c.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",D("CARET",`^${o[c.LONECARET]}${o[c.XRANGEPLAIN]}$`),D("CARETLOOSE",`^${o[c.LONECARET]}${o[c.XRANGEPLAINLOOSE]}$`),D("COMPARATORLOOSE",`^${o[c.GTLT]}\\s*(${o[c.LOOSEPLAIN]})$|^$`),D("COMPARATOR",`^${o[c.GTLT]}\\s*(${o[c.FULLPLAIN]})$|^$`),D("COMPARATORTRIM",`(\\s*)${o[c.GTLT]}\\s*(${o[c.LOOSEPLAIN]}|${o[c.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",D("HYPHENRANGE",`^\\s*(${o[c.XRANGEPLAIN]})\\s+-\\s+(${o[c.XRANGEPLAIN]})\\s*$`),D("HYPHENRANGELOOSE",`^\\s*(${o[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[c.XRANGEPLAINLOOSE]})\\s*$`),D("STAR","(<|>)?=?\\s*\\*"),D("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),D("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),wS=W({"node_modules/semver/internal/parse-options.js"(e,t){"use strict";var r=Object.freeze({loose:!0}),n=Object.freeze({}),i=s=>s?typeof s!="object"?r:s:n;t.exports=i}}),bS=W({"node_modules/semver/internal/identifiers.js"(e,t){"use strict";var r=/^[0-9]+$/,n=(s,u)=>{if(typeof s=="number"&&typeof u=="number")return s===u?0:s<u?-1:1;let a=r.test(s),o=r.test(u);return a&&o&&(s=+s,u=+u),s===u?0:a&&!o?-1:o&&!a?1:s<u?-1:1},i=(s,u)=>n(u,s);t.exports={compareIdentifiers:n,rcompareIdentifiers:i}}}),SS=W({"node_modules/semver/classes/semver.js"(e,t){"use strict";var r=PD(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:i}=OD(),{safeRe:s,t:u}=AS(),a=wS(),{compareIdentifiers:o}=bS(),l=class Ut{constructor(f,h){if(h=a(h),f instanceof Ut){if(f.loose===!!h.loose&&f.includePrerelease===!!h.includePrerelease)return f;f=f.version}else if(typeof f!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof f}".`);if(f.length>n)throw new TypeError(`version is longer than ${n} characters`);r("SemVer",f,h),this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease;let d=f.trim().match(h.loose?s[u.LOOSE]:s[u.FULL]);if(!d)throw new TypeError(`Invalid Version: ${f}`);if(this.raw=f,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(p=>{if(/^[0-9]+$/.test(p)){let D=+p;if(D>=0&&D<i)return D}return p}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(f){if(r("SemVer.compare",this.version,this.options,f),!(f instanceof Ut)){if(typeof f=="string"&&f===this.version)return 0;f=new Ut(f,this.options)}return f.version===this.version?0:this.compareMain(f)||this.comparePre(f)}compareMain(f){return f instanceof Ut||(f=new Ut(f,this.options)),this.major<f.major?-1:this.major>f.major?1:this.minor<f.minor?-1:this.minor>f.minor?1:this.patch<f.patch?-1:this.patch>f.patch?1:0}comparePre(f){if(f instanceof Ut||(f=new Ut(f,this.options)),this.prerelease.length&&!f.prerelease.length)return-1;if(!this.prerelease.length&&f.prerelease.length)return 1;if(!this.prerelease.length&&!f.prerelease.length)return 0;let h=0;do{let d=this.prerelease[h],p=f.prerelease[h];if(r("prerelease compare",h,d,p),d===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(d===void 0)return-1;if(d===p)continue;return o(d,p)}while(++h)}compareBuild(f){f instanceof Ut||(f=new Ut(f,this.options));let h=0;do{let d=this.build[h],p=f.build[h];if(r("build compare",h,d,p),d===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(d===void 0)return-1;if(d===p)continue;return o(d,p)}while(++h)}inc(f,h,d){if(f.startsWith("pre")){if(!h&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(h){let p=`-${h}`.match(this.options.loose?s[u.PRERELEASELOOSE]:s[u.PRERELEASE]);if(!p||p[1]!==h)throw new Error(`invalid identifier: ${h}`)}}switch(f){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",h,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",h,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",h,d),this.inc("pre",h,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",h,d),this.inc("pre",h,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let p=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[p];else{let D=this.prerelease.length;for(;--D>=0;)typeof this.prerelease[D]=="number"&&(this.prerelease[D]++,D=-2);if(D===-1){if(h===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(p)}}if(h){let D=[h,p];d===!1&&(D=[h]),o(this.prerelease[0],h)===0?isNaN(this.prerelease[1])&&(this.prerelease=D):this.prerelease=D}break}default:throw new Error(`invalid increment argument: ${f}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};t.exports=l}}),RS=W({"node_modules/semver/functions/compare.js"(e,t){"use strict";var r=SS(),n=(i,s,u)=>new r(i,u).compare(new r(s,u));t.exports=n}}),TS=W({"node_modules/semver/functions/gte.js"(e,t){"use strict";var r=RS(),n=(i,s,u)=>r(i,s,u)>=0;t.exports=n}}),BS=W({"node_modules/pseudomap/pseudomap.js"(e,t){var r=Object.prototype.hasOwnProperty;t.exports=n;function n(o){if(!(this instanceof n))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),o)if(o instanceof n||typeof Map=="function"&&o instanceof Map)o.forEach(function(l,c){this.set(c,l)},this);else if(Array.isArray(o))o.forEach(function(l){this.set(l[0],l[1])},this);else throw new TypeError("invalid argument")}n.prototype.forEach=function(o,l){l=l||this,Object.keys(this._data).forEach(function(c){c!=="size"&&o.call(l,this._data[c].value,this._data[c].key)},this)},n.prototype.has=function(o){return!!u(this._data,o)},n.prototype.get=function(o){var l=u(this._data,o);return l&&l.value},n.prototype.set=function(o,l){a(this._data,o,l)},n.prototype.delete=function(o){var l=u(this._data,o);l&&(delete this._data[l._index],this._data.size--)},n.prototype.clear=function(){var o=Object.create(null);o.size=0,Object.defineProperty(this,"_data",{value:o,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(n.prototype,"size",{get:function(){return this._data.size},set:function(o){},enumerable:!0,configurable:!0}),n.prototype.values=n.prototype.keys=n.prototype.entries=function(){throw new Error("iterators are not implemented in this version")};function i(o,l){return o===l||o!==o&&l!==l}function s(o,l,c){this.key=o,this.value=l,this._index=c}function u(o,l){for(var c=0,f="_"+l,h=f;r.call(o,h);h=f+c++)if(i(o[h].key,l))return o[h]}function a(o,l,c){for(var f=0,h="_"+l,d=h;r.call(o,d);d=h+f++)if(i(o[d].key,l)){o[d].value=c;return}o.size++,o[d]=new s(l,c,d)}}}),xS=W({"node_modules/pseudomap/map.js"(e,t){process.env.npm_package_name==="pseudomap"&&process.env.npm_lifecycle_script==="test"&&(process.env.TEST_PSEUDOMAP="true"),typeof Map=="function"&&!process.env.TEST_PSEUDOMAP?t.exports=Map:t.exports=BS()}}),kS=W({"node_modules/yallist/yallist.js"(e,t){t.exports=r,r.Node=s,r.create=r;function r(u){var a=this;if(a instanceof r||(a=new r),a.tail=null,a.head=null,a.length=0,u&&typeof u.forEach=="function")u.forEach(function(c){a.push(c)});else if(arguments.length>0)for(var o=0,l=arguments.length;o<l;o++)a.push(arguments[o]);return a}r.prototype.removeNode=function(u){if(u.list!==this)throw new Error("removing node which does not belong to this list");var a=u.next,o=u.prev;a&&(a.prev=o),o&&(o.next=a),u===this.head&&(this.head=a),u===this.tail&&(this.tail=o),u.list.length--,u.next=null,u.prev=null,u.list=null},r.prototype.unshiftNode=function(u){if(u!==this.head){u.list&&u.list.removeNode(u);var a=this.head;u.list=this,u.next=a,a&&(a.prev=u),this.head=u,this.tail||(this.tail=u),this.length++}},r.prototype.pushNode=function(u){if(u!==this.tail){u.list&&u.list.removeNode(u);var a=this.tail;u.list=this,u.prev=a,a&&(a.next=u),this.tail=u,this.head||(this.head=u),this.length++}},r.prototype.push=function(){for(var u=0,a=arguments.length;u<a;u++)n(this,arguments[u]);return this.length},r.prototype.unshift=function(){for(var u=0,a=arguments.length;u<a;u++)i(this,arguments[u]);return this.length},r.prototype.pop=function(){if(this.tail){var u=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,u}},r.prototype.shift=function(){if(this.head){var u=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,u}},r.prototype.forEach=function(u,a){a=a||this;for(var o=this.head,l=0;o!==null;l++)u.call(a,o.value,l,this),o=o.next},r.prototype.forEachReverse=function(u,a){a=a||this;for(var o=this.tail,l=this.length-1;o!==null;l--)u.call(a,o.value,l,this),o=o.prev},r.prototype.get=function(u){for(var a=0,o=this.head;o!==null&&a<u;a++)o=o.next;if(a===u&&o!==null)return o.value},r.prototype.getReverse=function(u){for(var a=0,o=this.tail;o!==null&&a<u;a++)o=o.prev;if(a===u&&o!==null)return o.value},r.prototype.map=function(u,a){a=a||this;for(var o=new r,l=this.head;l!==null;)o.push(u.call(a,l.value,this)),l=l.next;return o},r.prototype.mapReverse=function(u,a){a=a||this;for(var o=new r,l=this.tail;l!==null;)o.push(u.call(a,l.value,this)),l=l.prev;return o},r.prototype.reduce=function(u,a){var o,l=this.head;if(arguments.length>1)o=a;else if(this.head)l=this.head.next,o=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=0;l!==null;c++)o=u(o,l.value,c),l=l.next;return o},r.prototype.reduceReverse=function(u,a){var o,l=this.tail;if(arguments.length>1)o=a;else if(this.tail)l=this.tail.prev,o=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=this.length-1;l!==null;c--)o=u(o,l.value,c),l=l.prev;return o},r.prototype.toArray=function(){for(var u=new Array(this.length),a=0,o=this.head;o!==null;a++)u[a]=o.value,o=o.next;return u},r.prototype.toArrayReverse=function(){for(var u=new Array(this.length),a=0,o=this.tail;o!==null;a++)u[a]=o.value,o=o.prev;return u},r.prototype.slice=function(u,a){a=a||this.length,a<0&&(a+=this.length),u=u||0,u<0&&(u+=this.length);var o=new r;if(a<u||a<0)return o;u<0&&(u=0),a>this.length&&(a=this.length);for(var l=0,c=this.head;c!==null&&l<u;l++)c=c.next;for(;c!==null&&l<a;l++,c=c.next)o.push(c.value);return o},r.prototype.sliceReverse=function(u,a){a=a||this.length,a<0&&(a+=this.length),u=u||0,u<0&&(u+=this.length);var o=new r;if(a<u||a<0)return o;u<0&&(u=0),a>this.length&&(a=this.length);for(var l=this.length,c=this.tail;c!==null&&l>a;l--)c=c.prev;for(;c!==null&&l>u;l--,c=c.prev)o.push(c.value);return o},r.prototype.reverse=function(){for(var u=this.head,a=this.tail,o=u;o!==null;o=o.prev){var l=o.prev;o.prev=o.next,o.next=l}return this.head=a,this.tail=u,this};function n(u,a){u.tail=new s(a,u.tail,null,u),u.head||(u.head=u.tail),u.length++}function i(u,a){u.head=new s(a,null,u.head,u),u.tail||(u.tail=u.head),u.length++}function s(u,a,o,l){if(!(this instanceof s))return new s(u,a,o,l);this.list=l,this.value=u,a?(a.next=this,this.prev=a):this.prev=null,o?(o.prev=this,this.next=o):this.next=null}}}),PS=W({"node_modules/editorconfig/node_modules/lru-cache/index.js"(e,t){"use strict";t.exports=y;var r=xS(),n=Ae("util"),i=kS(),s=typeof Symbol=="function"&&process.env._nodeLRUCacheForceNoSymbol!=="1",u;s?u=function(b){return Symbol(b)}:u=function(b){return"_"+b};var a=u("max"),o=u("length"),l=u("lengthCalculator"),c=u("allowStale"),f=u("maxAge"),h=u("dispose"),d=u("noDisposeOnSet"),p=u("lruList"),D=u("cache");function w(){return 1}function y(b){if(!(this instanceof y))return new y(b);typeof b=="number"&&(b={max:b}),b||(b={});var B=this[a]=b.max;(!B||typeof B!="number"||B<=0)&&(this[a]=1/0);var O=b.length||w;typeof O!="function"&&(O=w),this[l]=O,this[c]=b.stale||!1,this[f]=b.maxAge||0,this[h]=b.dispose,this[d]=b.noDisposeOnSet||!1,this.reset()}Object.defineProperty(y.prototype,"max",{set:function(b){(!b||typeof b!="number"||b<=0)&&(b=1/0),this[a]=b,E(this)},get:function(){return this[a]},enumerable:!0}),Object.defineProperty(y.prototype,"allowStale",{set:function(b){this[c]=!!b},get:function(){return this[c]},enumerable:!0}),Object.defineProperty(y.prototype,"maxAge",{set:function(b){(!b||typeof b!="number"||b<0)&&(b=0),this[f]=b,E(this)},get:function(){return this[f]},enumerable:!0}),Object.defineProperty(y.prototype,"lengthCalculator",{set:function(b){typeof b!="function"&&(b=w),b!==this[l]&&(this[l]=b,this[o]=0,this[p].forEach(function(B){B.length=this[l](B.value,B.key),this[o]+=B.length},this)),E(this)},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(y.prototype,"length",{get:function(){return this[o]},enumerable:!0}),Object.defineProperty(y.prototype,"itemCount",{get:function(){return this[p].length},enumerable:!0}),y.prototype.rforEach=function(b,B){B=B||this;for(var O=this[p].tail;O!==null;){var A=O.prev;m(this,b,O,B),O=A}};function m(b,B,O,A){var S=O.value;C(b,S)&&(T(b,O),b[c]||(S=void 0)),S&&B.call(A,S.value,S.key,b)}y.prototype.forEach=function(b,B){B=B||this;for(var O=this[p].head;O!==null;){var A=O.next;m(this,b,O,B),O=A}},y.prototype.keys=function(){return this[p].toArray().map(function(b){return b.key},this)},y.prototype.values=function(){return this[p].toArray().map(function(b){return b.value},this)},y.prototype.reset=function(){this[h]&&this[p]&&this[p].length&&this[p].forEach(function(b){this[h](b.key,b.value)},this),this[D]=new r,this[p]=new i,this[o]=0},y.prototype.dump=function(){return this[p].map(function(b){if(!C(this,b))return{k:b.key,v:b.value,e:b.now+(b.maxAge||0)}},this).toArray().filter(function(b){return b})},y.prototype.dumpLru=function(){return this[p]},y.prototype.inspect=function(b,B){var O="LRUCache {",A=!1,S=this[c];S&&(O+=`
|
|
601
601
|
allowStale: true`,A=!0);var v=this[a];v&&v!==1/0&&(A&&(O+=","),O+=`
|
|
602
602
|
max: `+n.inspect(v,B),A=!0);var F=this[f];F&&(A&&(O+=","),O+=`
|
|
603
603
|
maxAge: `+n.inspect(F,B),A=!0);var R=this[l];R&&R!==w&&(A&&(O+=","),O+=`
|
|
@@ -610,30 +610,30 @@ Expected it to be ${n}.`}var Db=class extends Error{name="InvalidDocError";const
|
|
|
610
610
|
`).join(`
|
|
611
611
|
`),O+=G+" => "+$}),(k||A)&&(O+=`
|
|
612
612
|
`),O+="}",O},y.prototype.set=function(b,B,O){O=O||this[f];var A=O?Date.now():0,S=this[l](B,b);if(this[D].has(b)){if(S>this[a])return T(this,this[D].get(b)),!1;var v=this[D].get(b),F=v.value;return this[h]&&(this[d]||this[h](b,F.value)),F.now=A,F.maxAge=O,F.value=B,this[o]+=S-F.length,F.length=S,this.get(b),E(this),!0}var R=new P(b,B,S,A,O);return R.length>this[a]?(this[h]&&this[h](b,B),!1):(this[o]+=R.length,this[p].unshift(R),this[D].set(b,this[p].head),E(this),!0)},y.prototype.has=function(b){if(!this[D].has(b))return!1;var B=this[D].get(b).value;return!C(this,B)},y.prototype.get=function(b){return g(this,b,!0)},y.prototype.peek=function(b){return g(this,b,!1)},y.prototype.pop=function(){var b=this[p].tail;return b?(T(this,b),b.value):null},y.prototype.del=function(b){T(this,this[D].get(b))},y.prototype.load=function(b){this.reset();for(var B=Date.now(),O=b.length-1;O>=0;O--){var A=b[O],S=A.e||0;if(S===0)this.set(A.k,A.v);else{var v=S-B;v>0&&this.set(A.k,A.v,v)}}},y.prototype.prune=function(){var b=this;this[D].forEach(function(B,O){g(b,O,!1)})};function g(b,B,O){var A=b[D].get(B);if(A){var S=A.value;C(b,S)?(T(b,A),b[c]||(S=void 0)):O&&b[p].unshiftNode(A),S&&(S=S.value)}return S}function C(b,B){if(!B||!B.maxAge&&!b[f])return!1;var O=!1,A=Date.now()-B.now;return B.maxAge?O=A>B.maxAge:O=b[f]&&A>b[f],O}function E(b){if(b[o]>b[a])for(var B=b[p].tail;b[o]>b[a]&&B!==null;){var O=B.prev;T(b,B),B=O}}function T(b,B){if(B){var O=B.value;b[h]&&b[h](O.key,O.value),b[o]-=O.length,b[D].delete(O.key),b[p].removeNode(B)}}function P(b,B,O,A,S){this.key=b,this.value=B,this.length=O,this.now=A,this.maxAge=S||0}}}),OS=W({"node_modules/sigmund/sigmund.js"(e,t){t.exports=r;function r(n,i){i=i||10;var s=[],u="",a=RegExp;function o(l,c){if(!(c>i)&&!(typeof l=="function"||typeof l>"u")){if(typeof l!="object"||!l||l instanceof a){u+=l;return}s.indexOf(l)!==-1||c===i||(s.push(l),u+="{",Object.keys(l).forEach(function(f,h,d){if(f.charAt(0)!=="_"){var p=typeof l[f];p==="function"||p==="undefined"||(u+=f,o(l[f],c+1))}}))}}return o(n,0),u}}}),IS=W({"node_modules/editorconfig/src/lib/fnmatch.js"(e,t){var r=typeof process=="object"?process.platform:"win32";t?t.exports=m:e.minimatch=m,m.Minimatch=g;var n=PS(),i=m.cache=new n({max:100}),s=m.GLOBSTAR=g.GLOBSTAR={},u=OS(),a=Ae("path"),o="[^/]",l=o+"*?",c="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",f="(?:(?!(?:\\/|^)\\.).)*?",h=d("().*{}+?[]^$\\!");function d(v){return v.split("").reduce(function(F,R){return F[R]=!0,F},{})}var p=/\/+/;m.monkeyPatch=D;function D(){var v=Object.getOwnPropertyDescriptor(String.prototype,"match"),F=v.value;v.value=function(R){return R instanceof g?R.match(this):F.call(this,R)},Object.defineProperty(String.prototype,v)}m.filter=w;function w(v,F){return F=F||{},function(R,k,M){return m(R,v,F)}}function y(v,F){v=v||{},F=F||{};var R={};return Object.keys(F).forEach(function(k){R[k]=F[k]}),Object.keys(v).forEach(function(k){R[k]=v[k]}),R}m.defaults=function(v){if(!v||!Object.keys(v).length)return m;var F=m,R=function(M,G,$){return F.minimatch(M,G,y(v,$))};return R.Minimatch=function(M,G){return new F.Minimatch(M,y(v,G))},R},g.defaults=function(v){return!v||!Object.keys(v).length?g:m.defaults(v).Minimatch};function m(v,F,R){if(typeof F!="string")throw new TypeError("glob pattern string required");return R||(R={}),!R.nocomment&&F.charAt(0)==="#"?!1:F.trim()===""?v==="":new g(F,R).match(v)}function g(v,F){if(!(this instanceof g))return new g(v,F,i);if(typeof v!="string")throw new TypeError("glob pattern string required");F||(F={}),r==="win32"&&(v=v.split("\\").join("/"));var R=v+`
|
|
613
|
-
`+u(F),k=m.cache.get(R);if(k)return k;m.cache.set(R,this),this.options=F,this.set=[],this.pattern=v,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}g.prototype.make=C;function C(){if(!this._made){var v=this.pattern,F=this.options;if(!F.nocomment&&v.charAt(0)==="#"){this.comment=!0;return}if(!v){this.empty=!0;return}this.parseNegate();var R=this.globSet=this.braceExpand();F.debug&&console.error(this.pattern,R),R=this.globParts=R.map(function(k){return k.split(p)}),F.debug&&console.error(this.pattern,R),R=R.map(function(k,M,G){return k.map(this.parse,this)},this),F.debug&&console.error(this.pattern,R),R=R.filter(function(k){return k.indexOf(!1)===-1}),F.debug&&console.error(this.pattern,R),this.set=R}}g.prototype.parseNegate=E;function E(){var v=this.pattern,F=!1,R=this.options,k=0;if(!R.nonegate){for(var M=0,G=v.length;M<G&&v.charAt(M)==="!";M++)F=!F,k++;k&&(this.pattern=v.substr(k)),this.negate=F}}m.braceExpand=function(v,F){return new g(v,F).braceExpand()},g.prototype.braceExpand=T;function T(v,F){if(F=F||this.options,v=typeof v>"u"?this.pattern:v,typeof v>"u")throw new Error("undefined pattern");if(F.nobrace||!v.match(/\{.*\}/))return[v];var
|
|
614
|
-
globstar while`,v,L,F,le,se),this.matchOne(v.slice(L),F.slice(le),R))return k.debug&&console.error("globstar found match!",L,$,se),!0;if(se==="."||se===".."||!k.dot&&se.charAt(0)==="."){k.debug&&console.error("dot detected!",v,L,F,le);break e}k.debug&&console.error("globstar swallow a segment, and continue"),L++}return!!(R&&L===$)}var N;if(typeof j=="string"?(k.nocase?N=X.toLowerCase()===j.toLowerCase():N=X===j,k.debug&&console.error("string match",j,X,N)):(N=X.match(j),k.debug&&console.error("pattern match",j,X,N)),!N)return!1}if(M===$&&G===U)return!0;if(M===$)return R;if(G===U){var x=M===$-1&&v[M]==="";return x}throw new Error("wtf?")};function A(v){return v.replace(/\\(.)/g,"$1")}function S(v){return v.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}}}),LS=W({"node_modules/editorconfig/src/lib/ini.js"(e){"use strict";var t=e&&e.__awaiter||function(l,c,f,h){return new(f||(f=Promise))(function(d,p){function D(m){try{y(h.next(m))}catch(g){p(g)}}function w(m){try{y(h.throw(m))}catch(g){p(g)}}function y(m){m.done?d(m.value):new f(function(g){g(m.value)}).then(D,w)}y((h=h.apply(l,c||[])).next())})},r=e&&e.__generator||function(l,c){var f={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},h,d,p,D;return D={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function w(m){return function(g){return y([m,g])}}function y(m){if(h)throw new TypeError("Generator is already executing.");for(;f;)try{if(h=1,d&&(p=m[0]&2?d.return:m[0]?d.throw||((p=d.return)&&p.call(d),0):d.next)&&!(p=p.call(d,m[1])).done)return p;switch(d=0,p&&(m=[m[0]&2,p.value]),m[0]){case 0:case 1:p=m;break;case 4:return f.label++,{value:m[1],done:!1};case 5:f.label++,d=m[1],m=[0];continue;case 7:m=f.ops.pop(),f.trys.pop();continue;default:if(p=f.trys,!(p=p.length>0&&p[p.length-1])&&(m[0]===6||m[0]===2)){f=0;continue}if(m[0]===3&&(!p||m[1]>p[0]&&m[1]<p[3])){f.label=m[1];break}if(m[0]===6&&f.label<p[1]){f.label=p[1],p=m;break}if(p&&f.label<p[2]){f.label=p[2],f.ops.push(m);break}p[2]&&f.ops.pop(),f.trys.pop();continue}m=c.call(l,f)}catch(g){m=[6,g],d=0}finally{h=p=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},n=e&&e.__importStar||function(l){if(l&&l.__esModule)return l;var c={};if(l!=null)for(var f in l)Object.hasOwnProperty.call(l,f)&&(c[f]=l[f]);return c.default=l,c};Object.defineProperty(e,"__esModule",{value:!0});var i=n(Ae("fs")),s={section:/^\s*\[(([^#;]|\\#|\\;)+)\]\s*([#;].*)?$/,param:/^\s*([\w\.\-\_]+)\s*[=:]\s*(.*?)\s*([#;].*)?$/,comment:/^\s*[#;].*$/};function u(l){return t(this,void 0,void 0,function(){return r(this,function(c){return[2,new Promise(function(f,h){i.readFile(l,"utf8",function(d,p){if(d){h(d);return}f(o(p))})})]})})}e.parse=u;function a(l){return o(i.readFileSync(l,"utf8"))}e.parseSync=a;function o(l){var c={},f=null,h=[[f,c]],d=l.split(/\r\n|\r|\n/);return d.forEach(function(p){var D;s.comment.test(p)||(s.param.test(p)?(D=p.match(s.param),c[D[1]]=D[2]):s.section.test(p)&&(D=p.match(s.section),f=D[1],c={},h.push([f,c])))}),h}e.parseString=o}}),NS=W({"node_modules/editorconfig/package.json"(e,t){t.exports={name:"editorconfig",version:"0.15.3",description:"EditorConfig File Locator and Interpreter for Node.js",keywords:["editorconfig","core"],main:"src/index.js",contributors:["Hong Xu (topbug.net)","Jed Mao (https://github.com/jedmao/)","Trey Hunner (http://treyhunner.com)"],directories:{bin:"./bin",lib:"./lib"},scripts:{clean:"rimraf dist",prebuild:"npm run clean",build:"tsc",pretest:"npm run lint && npm run build && npm run copy && cmake .",test:"ctest .","pretest:ci":"npm run pretest","test:ci":"ctest -VV --output-on-failure .",lint:"npm run eclint && npm run tslint",eclint:'eclint check --indent_size ignore "src/**"',tslint:"tslint --project tsconfig.json --exclude package.json",copy:"cpy .npmignore LICENSE README.md CHANGELOG.md dist && cpy bin/* dist/bin && cpy src/lib/fnmatch*.* dist/src/lib",prepub:"npm run lint && npm run build && npm run copy",pub:"npm publish ./dist"},repository:{type:"git",url:"git://github.com/editorconfig/editorconfig-core-js.git"},bugs:"https://github.com/editorconfig/editorconfig-core-js/issues",author:"EditorConfig Team",license:"MIT",dependencies:{commander:"^2.19.0","lru-cache":"^4.1.5",semver:"^5.6.0",sigmund:"^1.0.1"},devDependencies:{"@types/mocha":"^5.2.6","@types/node":"^10.12.29","@types/semver":"^5.5.0","cpy-cli":"^2.0.0",eclint:"^2.8.1",mocha:"^5.2.0",rimraf:"^2.6.3",should:"^13.2.3",tslint:"^5.13.1",typescript:"^3.3.3333"}}}}),MS=W({"node_modules/editorconfig/src/index.js"(e){"use strict";var t=e&&e.__awaiter||function(A,S,v,F){return new(v||(v=Promise))(function(R,k){function M(U){try{$(F.next(U))}catch(j){k(j)}}function G(U){try{$(F.throw(U))}catch(j){k(j)}}function $(U){U.done?R(U.value):new v(function(j){j(U.value)}).then(M,G)}$((F=F.apply(A,S||[])).next())})},r=e&&e.__generator||function(A,S){var v={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},F,R,k,M;return M={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function G(U){return function(j){return $([U,j])}}function $(U){if(F)throw new TypeError("Generator is already executing.");for(;v;)try{if(F=1,R&&(k=U[0]&2?R.return:U[0]?R.throw||((k=R.return)&&k.call(R),0):R.next)&&!(k=k.call(R,U[1])).done)return k;switch(R=0,k&&(U=[U[0]&2,k.value]),U[0]){case 0:case 1:k=U;break;case 4:return v.label++,{value:U[1],done:!1};case 5:v.label++,R=U[1],U=[0];continue;case 7:U=v.ops.pop(),v.trys.pop();continue;default:if(k=v.trys,!(k=k.length>0&&k[k.length-1])&&(U[0]===6||U[0]===2)){v=0;continue}if(U[0]===3&&(!k||U[1]>k[0]&&U[1]<k[3])){v.label=U[1];break}if(U[0]===6&&v.label<k[1]){v.label=k[1],k=U;break}if(k&&v.label<k[2]){v.label=k[2],v.ops.push(U);break}k[2]&&v.ops.pop(),v.trys.pop();continue}U=S.call(A,v)}catch(j){U=[6,j],R=0}finally{F=k=0}if(U[0]&5)throw U[1];return{value:U[0]?U[1]:void 0,done:!0}}},n=e&&e.__importStar||function(A){if(A&&A.__esModule)return A;var S={};if(A!=null)for(var v in A)Object.hasOwnProperty.call(A,v)&&(S[v]=A[v]);return S.default=A,S},i=e&&e.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(Ae("fs")),u=n(Ae("path")),a={gte:TS()},o=i(IS()),l=LS();e.parseString=l.parseString;var c=i(NS()),f={end_of_line:!0,indent_style:!0,indent_size:!0,insert_final_newline:!0,trim_trailing_whitespace:!0,charset:!0};function h(A,S){var v={matchBase:!0,dot:!0,noext:!0};return S=S.replace(/\*\*/g,"{*,**/**/**}"),o.default(A,S,v)}function d(A,S){var v=[];do A=u.dirname(A),v.push(u.join(A,S.config));while(A!==S.root);return v}function p(A,S){return"indent_style"in A&&A.indent_style==="tab"&&!("indent_size"in A)&&a.gte(S,"0.10.0")&&(A.indent_size="tab"),"indent_size"in A&&!("tab_width"in A)&&A.indent_size!=="tab"&&(A.tab_width=A.indent_size),"indent_size"in A&&"tab_width"in A&&A.indent_size==="tab"&&(A.indent_size=A.tab_width),A}function D(A,S){return A===void 0&&(A={}),{config:A.config||".editorconfig",version:A.version||c.default.version,root:u.resolve(A.root||u.parse(S).root)}}function w(A,S){switch(S.indexOf("/")){case-1:S="**/"+S;break;case 0:S=S.substring(1);break;default:break}return u.join(A,S)}function y(A,S){A===void 0&&(A={}),S===void 0&&(S={});for(var v in S)if(S.hasOwnProperty(v)){var F=S[v],R=v.toLowerCase(),k=F;f[R]&&(k=F.toLowerCase());try{k=JSON.parse(F)}catch{}(typeof F>"u"||F===null)&&(k=String(F)),A[R]=k}return A}function m(A,S,v){return p(A.reverse().reduce(function(F,R){var k=u.dirname(R.name);return R.contents.forEach(function(M){var G=M[0],$=M[1];if(G){var U=w(k,G);h(S,U)&&(F=y(F,$))}}),F},{}),v.version)}function g(A){var S=[];for(var v in A)if(A.hasOwnProperty(v)){var F=A[v],R=l.parseString(F.contents);if(S.push({name:F.name,contents:R}),(R[0][1].root||"").toLowerCase()==="true")break}return S}function C(A){return t(this,void 0,void 0,function(){return r(this,function(S){return[2,Promise.all(A.map(function(v){return new Promise(function(F){s.readFile(v,"utf8",function(R,k){F({name:v,contents:R?"":k})})})}))]})})}function E(A){var S=[],v;return A.forEach(function(F){try{v=s.readFileSync(F,"utf8")}catch{v=""}S.push({name:F,contents:v})}),S}function T(A,S){S===void 0&&(S={});var v=u.resolve(A);return[v,D(S,v)]}function P(A,S,v){return v===void 0&&(v={}),t(this,void 0,void 0,function(){var F,R,k;return r(this,function(M){return F=T(A,v),R=F[0],k=F[1],[2,S.then(g).then(function(G){return m(G,R,k)})]})})}e.parseFromFiles=P;function b(A,S,v){v===void 0&&(v={});var F=T(A,v),R=F[0],k=F[1];return m(g(S),R,k)}e.parseFromFilesSync=b;function B(A,S){return S===void 0&&(S={}),t(this,void 0,void 0,function(){var v,F,R,k;return r(this,function(M){return v=T(A,S),F=v[0],R=v[1],k=d(F,R),[2,C(k).then(g).then(function(G){return m(G,F,R)})]})})}e.parse=B;function O(A,S){S===void 0&&(S={});var v=T(A,S),F=v[0],R=v[1],k=d(F,R),M=E(k);return m(g(M),F,R)}e.parseSync=O}}),jS=W({"node_modules/@babel/code-frame/node_modules/js-tokens/index.js"(e,t){var r,n,i,s,u,a,o,l,c,f,h,d,p,D,w,y,m,g,C,E;p=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,d=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,r=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,w=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,h=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,y=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,C=/[\t\v\f\ufeff\p{Zs}]+/yu,l=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,D=/\/\/.*/y,i=/[<>.:={}]|\/(?![\/*])/y,n=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,s=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,u=/[^<>{}]+/y,g=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,m=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,a=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,o=/^(?:return|throw|yield)$/,f=RegExp(l.source),t.exports=E=function*(T,{jsx:P=!1}={}){var b,B,O,A,S,v,F,R,k,M,G,$,U,j;for({length:v}=T,A=0,S="",j=[{tag:"JS"}],b=[],G=0,$=!1;A<v;){switch(R=j[j.length-1],R.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(T[A]==="/"&&(g.test(S)||a.test(S))&&(p.lastIndex=A,F=p.exec(T))){A=p.lastIndex,S=F[0],$=!0,yield{type:"RegularExpressionLiteral",value:F[0],closed:F[1]!==void 0&&F[1]!=="\\"};continue}if(d.lastIndex=A,F=d.exec(T)){switch(U=F[0],k=d.lastIndex,M=U,U){case"(":S==="?NonExpressionParenKeyword"&&j.push({tag:"JSNonExpressionParen",nesting:G}),G++,$=!1;break;case")":G--,$=!0,R.tag==="JSNonExpressionParen"&&G===R.nesting&&(j.pop(),M="?NonExpressionParenEnd",$=!1);break;case"{":d.lastIndex=0,O=!m.test(S)&&(g.test(S)||a.test(S)),b.push(O),$=!1;break;case"}":switch(R.tag){case"InterpolationInTemplate":if(b.length===R.nesting){y.lastIndex=A,F=y.exec(T),A=y.lastIndex,S=F[0],F[1]==="${"?(S="?InterpolationInTemplate",$=!1,yield{type:"TemplateMiddle",value:F[0]}):(j.pop(),$=!0,yield{type:"TemplateTail",value:F[0],closed:F[1]==="`"});continue}break;case"InterpolationInJSX":if(b.length===R.nesting){j.pop(),A+=1,S="}",yield{type:"JSXPunctuator",value:"}"};continue}}$=b.pop(),M=$?"?ExpressionBraceEnd":"}";break;case"]":$=!0;break;case"++":case"--":M=$?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(P&&(g.test(S)||a.test(S))){j.push({tag:"JSXTag"}),A+=1,S="<",yield{type:"JSXPunctuator",value:U};continue}$=!1;break;default:$=!1}A=k,S=M,yield{type:"Punctuator",value:U};continue}if(r.lastIndex=A,F=r.exec(T)){switch(A=r.lastIndex,M=F[0],F[0]){case"for":case"if":case"while":case"with":S!=="."&&S!=="?."&&(M="?NonExpressionParenKeyword")}S=M,$=!a.test(F[0]),yield{type:F[1]==="#"?"PrivateIdentifier":"IdentifierName",value:F[0]};continue}if(w.lastIndex=A,F=w.exec(T)){A=w.lastIndex,S=F[0],$=!0,yield{type:"StringLiteral",value:F[0],closed:F[2]!==void 0};continue}if(h.lastIndex=A,F=h.exec(T)){A=h.lastIndex,S=F[0],$=!0,yield{type:"NumericLiteral",value:F[0]};continue}if(y.lastIndex=A,F=y.exec(T)){A=y.lastIndex,S=F[0],F[1]==="${"?(S="?InterpolationInTemplate",j.push({tag:"InterpolationInTemplate",nesting:b.length}),$=!1,yield{type:"TemplateHead",value:F[0]}):($=!0,yield{type:"NoSubstitutionTemplate",value:F[0],closed:F[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(i.lastIndex=A,F=i.exec(T)){switch(A=i.lastIndex,M=F[0],F[0]){case"<":j.push({tag:"JSXTag"});break;case">":j.pop(),S==="/"||R.tag==="JSXTagEnd"?(M="?JSX",$=!0):j.push({tag:"JSXChildren"});break;case"{":j.push({tag:"InterpolationInJSX",nesting:b.length}),M="?InterpolationInJSX",$=!1;break;case"/":S==="<"&&(j.pop(),j[j.length-1].tag==="JSXChildren"&&j.pop(),j.push({tag:"JSXTagEnd"}))}S=M,yield{type:"JSXPunctuator",value:F[0]};continue}if(n.lastIndex=A,F=n.exec(T)){A=n.lastIndex,S=F[0],yield{type:"JSXIdentifier",value:F[0]};continue}if(s.lastIndex=A,F=s.exec(T)){A=s.lastIndex,S=F[0],yield{type:"JSXString",value:F[0],closed:F[2]!==void 0};continue}break;case"JSXChildren":if(u.lastIndex=A,F=u.exec(T)){A=u.lastIndex,S=F[0],yield{type:"JSXText",value:F[0]};continue}switch(T[A]){case"<":j.push({tag:"JSXTag"}),A++,S="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":j.push({tag:"InterpolationInJSX",nesting:b.length}),A++,S="?InterpolationInJSX",$=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(C.lastIndex=A,F=C.exec(T)){A=C.lastIndex,yield{type:"WhiteSpace",value:F[0]};continue}if(l.lastIndex=A,F=l.exec(T)){A=l.lastIndex,$=!1,o.test(S)&&(S="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:F[0]};continue}if(c.lastIndex=A,F=c.exec(T)){A=c.lastIndex,f.test(F[0])&&($=!1,o.test(S)&&(S="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:F[0],closed:F[1]!==void 0};continue}if(D.lastIndex=A,F=D.exec(T)){A=D.lastIndex,$=!1,yield{type:"SingleLineComment",value:F[0]};continue}B=String.fromCodePoint(T.codePointAt(A)),A+=B.length,S=B,$=!1,yield{type:R.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:B}}}}}),$S=W({"node_modules/n-readlines/readlines.js"(e,t){"use strict";var r=Ae("fs"),n=class{constructor(i,s){s=s||{},s.readChunk||(s.readChunk=1024),s.newLineCharacter?s.newLineCharacter=s.newLineCharacter.charCodeAt(0):s.newLineCharacter=10,typeof i=="number"?this.fd=i:this.fd=r.openSync(i,"r"),this.options=s,this.newLineCharacter=s.newLineCharacter,this.reset()}_searchInBuffer(i,s){let u=-1;for(let a=0;a<=i.length;a++)if(i[a]===s){u=a;break}return u}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){r.closeSync(this.fd),this.fd=null}_extractLines(i){let s,u=[],a=0,o=0;for(;;){let c=i[a++];if(c===this.newLineCharacter)s=i.slice(o,a),u.push(s),o=a;else if(c===void 0)break}let l=i.slice(o,a);return l.length&&u.push(l),u}_readChunk(i){let s=0,u,a=[];do{let l=Buffer.alloc(this.options.readChunk);u=r.readSync(this.fd,l,0,this.options.readChunk,this.fdPosition),s=s+u,this.fdPosition=this.fdPosition+u,a.push(l)}while(u&&this._searchInBuffer(a[a.length-1],this.options.newLineCharacter)===-1);let o=Buffer.concat(a);return u<this.options.readChunk&&(this.eofReached=!0,o=o.slice(0,s)),s&&(this.linesCache=this._extractLines(o),i&&(this.linesCache[0]=Buffer.concat([i,this.linesCache[0]]))),s}next(){if(!this.fd)return!1;let i=!1;if(this.eofReached&&this.linesCache.length===0)return i;let s;return this.linesCache.length||(s=this._readChunk()),this.linesCache.length&&(i=this.linesCache.shift(),i[i.length-1]!==this.newLineCharacter&&(s=this._readChunk(i),s&&(i=this.linesCache.shift()))),this.eofReached&&this.linesCache.length===0&&this.close(),i&&i[i.length-1]===this.newLineCharacter&&(i=i.slice(0,i.length-1)),i}};t.exports=n}}),HS=W({"node_modules/ignore/index.js"(e,t){function r(N){return Array.isArray(N)?N:[N]}var n=void 0,i="",s=" ",u="\\",a=/^\s+$/,o=/(?:[^\\]|^)\\$/,l=/^\\!/,c=/^\\#/,f=/\r?\n/g,h=/^\.{0,2}\/|^\.{1,2}$/,d=/\/$/,p="/",D="node-ignore";typeof Symbol<"u"&&(D=Symbol.for("node-ignore"));var w=D,y=(N,x,I)=>(Object.defineProperty(N,x,{value:I}),I),m=/([0-z])-([0-z])/g,g=()=>!1,C=N=>N.replace(m,(x,I,V)=>I.charCodeAt(0)<=V.charCodeAt(0)?x:i),E=N=>{let{length:x}=N;return N.slice(0,x-x%2)},T=[[/^\uFEFF/,()=>i],[/((?:\\\\)*?)(\\?\s+)$/,(N,x,I)=>x+(I.indexOf("\\")===0?s:i)],[/(\\+?)\s/g,(N,x)=>{let{length:I}=x;return x.slice(0,I-I%2)+s}],[/[\\$.|*+(){^]/g,N=>`\\${N}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(N,x,I)=>x+6<I.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(N,x,I)=>{let V=I.replace(/\\\*/g,"[^\\/]*");return x+V}],[/\\\\\\(?=[$.|*+(){^])/g,()=>u],[/\\\\/g,()=>u],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(N,x,I,V,Y)=>x===u?`\\[${I}${E(V)}${Y}`:Y==="]"&&V.length%2===0?`[${C(I)}${V}]`:"[]"],[/(?:[^*])$/,N=>/\/$/.test(N)?`${N}$`:`${N}(?=$|\\/$)`]],P=/(^|\\\/)?\\\*$/,b="regex",B="checkRegex",O="_",A={[b](N,x){return`${x?`${x}[^/]+`:"[^/]*"}(?=$|\\/$)`},[B](N,x){return`${x?`${x}[^/]*`:"[^/]*"}(?=$|\\/$)`}},S=N=>T.reduce((x,[I,V])=>x.replace(I,V.bind(N)),N),v=N=>typeof N=="string",F=N=>N&&v(N)&&!a.test(N)&&!o.test(N)&&N.indexOf("#")!==0,R=N=>N.split(f).filter(Boolean),k=class{constructor(N,x,I,V,Y,fe){this.pattern=N,this.mark=x,this.negative=Y,y(this,"body",I),y(this,"ignoreCase",V),y(this,"regexPrefix",fe)}get regex(){let N=O+b;return this[N]?this[N]:this._make(b,N)}get checkRegex(){let N=O+B;return this[N]?this[N]:this._make(B,N)}_make(N,x){let I=this.regexPrefix.replace(P,A[N]),V=this.ignoreCase?new RegExp(I,"i"):new RegExp(I);return y(this,x,V)}},M=({pattern:N,mark:x},I)=>{let V=!1,Y=N;Y.indexOf("!")===0&&(V=!0,Y=Y.substr(1)),Y=Y.replace(l,"!").replace(c,"#");let fe=S(Y);return new k(N,x,Y,I,V,fe)},G=class{constructor(N){this._ignoreCase=N,this._rules=[]}_add(N){if(N&&N[w]){this._rules=this._rules.concat(N._rules._rules),this._added=!0;return}if(v(N)&&(N={pattern:N}),F(N.pattern)){let x=M(N,this._ignoreCase);this._added=!0,this._rules.push(x)}}add(N){return this._added=!1,r(v(N)?R(N):N).forEach(this._add,this),this._added}test(N,x,I){let V=!1,Y=!1,fe;this._rules.forEach(_e=>{let{negative:H}=_e;Y===H&&V!==Y||H&&!V&&!Y&&!x||!_e[I].test(N)||(V=!H,Y=H,fe=H?n:_e)});let Q={ignored:V,unignored:Y};return fe&&(Q.rule=fe),Q}},$=(N,x)=>{throw new x(N)},U=(N,x,I)=>v(N)?N?U.isNotRelative(N)?I(`path should be a \`path.relative()\`d string, but got "${x}"`,RangeError):!0:I("path must not be empty",TypeError):I(`path must be a string, but got \`${x}\``,TypeError),j=N=>h.test(N);U.isNotRelative=j,U.convert=N=>N;var X=class{constructor({ignorecase:N=!0,ignoreCase:x=N,allowRelativePaths:I=!1}={}){y(this,w,!0),this._rules=new G(x),this._strictPathCheck=!I,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(N){return this._rules.add(N)&&this._initCache(),this}addPattern(N){return this.add(N)}_test(N,x,I,V){let Y=N&&U.convert(N);return U(Y,N,this._strictPathCheck?$:g),this._t(Y,x,I,V)}checkIgnore(N){if(!d.test(N))return this.test(N);let x=N.split(p).filter(Boolean);if(x.pop(),x.length){let I=this._t(x.join(p)+p,this._testCache,!0,x);if(I.ignored)return I}return this._rules.test(N,!1,B)}_t(N,x,I,V){if(N in x)return x[N];if(V||(V=N.split(p).filter(Boolean)),V.pop(),!V.length)return x[N]=this._rules.test(N,I,b);let Y=this._t(V.join(p)+p,x,I,V);return x[N]=Y.ignored?Y:this._rules.test(N,I,b)}ignores(N){return this._test(N,this._ignoreCache,!1).ignored}createFilter(){return N=>!this.ignores(N)}filter(N){return r(N).filter(this.createFilter())}test(N){return this._test(N,this._testCache,!0)}},L=N=>new X(N),le=N=>U(N&&U.convert(N),N,g),se=()=>{let N=I=>/^\\\\\?\\/.test(I)||/["<>|\u0000-\u001F]+/u.test(I)?I:I.replace(/\\/g,"/");U.convert=N;let x=/^[a-z]:\//i;U.isNotRelative=I=>x.test(I)||j(I)};typeof process<"u"&&process.platform==="win32"&&se(),t.exports=L,L.default=L,t.exports.isPathValid=le,y(t.exports,Symbol.for("setupWindows"),se)}}),qS={};Eu(qS,{__debug:()=>oO,__internal:()=>aO,check:()=>nO,clearConfigCache:()=>iO,doc:()=>ko,format:()=>xu,formatWithCursor:()=>Dg,getFileInfo:()=>RP,getSupportInfo:()=>sO,resolveConfig:()=>wu,resolveConfigFile:()=>DB,util:()=>fg,version:()=>TP});var ID=class{diff(e,t,r={}){let n;typeof r=="function"?(n=r,r={}):"callback"in r&&(n=r.callback);let i=this.castInput(e,r),s=this.castInput(t,r),u=this.removeEmpty(this.tokenize(i,r)),a=this.removeEmpty(this.tokenize(s,r));return this.diffWithOptionsObj(u,a,r,n)}diffWithOptionsObj(e,t,r,n){var i;let s=y=>{if(y=this.postProcess(y,r),n){setTimeout(function(){n(y)},0);return}else return y},u=t.length,a=e.length,o=1,l=u+a;r.maxEditLength!=null&&(l=Math.min(l,r.maxEditLength));let c=(i=r.timeout)!==null&&i!==void 0?i:1/0,f=Date.now()+c,h=[{oldPos:-1,lastComponent:void 0}],d=this.extractCommon(h[0],t,e,0,r);if(h[0].oldPos+1>=a&&d+1>=u)return s(this.buildValues(h[0].lastComponent,t,e));let p=-1/0,D=1/0,w=()=>{for(let y=Math.max(p,-o);y<=Math.min(D,o);y+=2){let m,g=h[y-1],C=h[y+1];g&&(h[y-1]=void 0);let E=!1;if(C){let P=C.oldPos-y;E=C&&0<=P&&P<u}let T=g&&g.oldPos+1<a;if(!E&&!T){h[y]=void 0;continue}if(!T||E&&g.oldPos<C.oldPos?m=this.addToPath(C,!0,!1,0,r):m=this.addToPath(g,!1,!0,1,r),d=this.extractCommon(m,t,e,y,r),m.oldPos+1>=a&&d+1>=u)return s(this.buildValues(m.lastComponent,t,e))||!0;h[y]=m,m.oldPos+1>=a&&(D=Math.min(D,y-1)),d+1>=u&&(p=Math.max(p,y+1))}o++};if(n)(function y(){setTimeout(function(){if(o>l||Date.now()>f)return n(void 0);w()||y()},0)})();else for(;o<=l&&Date.now()<=f;){let y=w();if(y)return y}}addToPath(e,t,r,n,i){let s=e.lastComponent;return s&&!i.oneChangePerToken&&s.added===t&&s.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:s.count+1,added:t,removed:r,previousComponent:s.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:s}}}extractCommon(e,t,r,n,i){let s=t.length,u=r.length,a=e.oldPos,o=a-n,l=0;for(;o+1<s&&a+1<u&&this.equals(r[a+1],t[o+1],i);)o++,a++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=a,o}equals(e,t,r){return r.comparator?r.comparator(e,t):e===t||!!r.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,r){let n=[],i;for(;e;)n.push(e),i=e.previousComponent,delete e.previousComponent,e=i;n.reverse();let s=n.length,u=0,a=0,o=0;for(;u<s;u++){let l=n[u];if(l.removed)l.value=this.join(r.slice(o,o+l.count)),o+=l.count;else{if(!l.added&&this.useLongestToken){let c=t.slice(a,a+l.count);c=c.map(function(f,h){let d=r[o+h];return d.length>f.length?d:f}),l.value=this.join(c)}else l.value=this.join(t.slice(a,a+l.count));a+=l.count,l.added||(o+=l.count)}}return n}},US=class extends ID{constructor(){super(...arguments),this.tokenize=WS}equals(e,t,r){return r.ignoreWhitespace?((!r.newlineIsToken||!e.includes(`
|
|
613
|
+
`+u(F),k=m.cache.get(R);if(k)return k;m.cache.set(R,this),this.options=F,this.set=[],this.pattern=v,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}g.prototype.make=C;function C(){if(!this._made){var v=this.pattern,F=this.options;if(!F.nocomment&&v.charAt(0)==="#"){this.comment=!0;return}if(!v){this.empty=!0;return}this.parseNegate();var R=this.globSet=this.braceExpand();F.debug&&console.error(this.pattern,R),R=this.globParts=R.map(function(k){return k.split(p)}),F.debug&&console.error(this.pattern,R),R=R.map(function(k,M,G){return k.map(this.parse,this)},this),F.debug&&console.error(this.pattern,R),R=R.filter(function(k){return k.indexOf(!1)===-1}),F.debug&&console.error(this.pattern,R),this.set=R}}g.prototype.parseNegate=E;function E(){var v=this.pattern,F=!1,R=this.options,k=0;if(!R.nonegate){for(var M=0,G=v.length;M<G&&v.charAt(M)==="!";M++)F=!F,k++;k&&(this.pattern=v.substr(k)),this.negate=F}}m.braceExpand=function(v,F){return new g(v,F).braceExpand()},g.prototype.braceExpand=T;function T(v,F){if(F=F||this.options,v=typeof v>"u"?this.pattern:v,typeof v>"u")throw new Error("undefined pattern");if(F.nobrace||!v.match(/\{.*\}/))return[v];var z=!1;if(v.charAt(0)!=="{"){for(var R=null,se=0,k=v.length;se<k;se++){var M=v.charAt(se);if(M==="\\")z=!z;else if(M==="{"&&!z){R=v.substr(0,se);break}}if(R===null)return[v];var G=T(v.substr(se),F);return G.map(function(Z){return R+Z})}var $=v.match(/^\{(-?[0-9]+)\.\.(-?[0-9]+)\}/);if($){for(var Q=T(v.substr($[0].length),F),U=+$[1],j=+$[2],X=U>j?-1:1,x=[],se=U;se!=j+X;se+=X)for(var L=0,le=Q.length;L<le;L++)x.push(se+Q[L]);return x}var se=1,N=1,x=[],I="",V=!1,z=!1;function fe(){x.push(I),I=""}e:for(se=1,k=v.length;se<k;se++){var M=v.charAt(se);if(z)z=!1,I+="\\"+M;else switch(M){case"\\":z=!0;continue;case"{":N++,I+="{";continue;case"}":if(N--,N===0){fe(),se++;break e}else{I+=M;continue}case",":N===1?fe():I+=M;continue;default:I+=M;continue}}if(N!==0)return T("\\"+v,F);var Q=T(v.substr(se),F),_e=x.length===1;x=x.map(function(Z){return T(Z,F)}),x=x.reduce(function(Z,ue){return Z.concat(ue)}),_e&&(x=x.map(function(Z){return"{"+Z+"}"}));for(var H=[],se=0,k=x.length;se<k;se++)for(var L=0,le=Q.length;L<le;L++)H.push(x[se]+Q[L]);return H}g.prototype.parse=b;var P={};function b(v,F){var R=this.options;if(!R.noglobstar&&v==="**")return s;if(v==="")return"";var k="",M=!!R.nocase,G=!1,$=[],U,j,X=!1,L=-1,le=-1,se=v.charAt(0)==="."?"":R.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";function N(){if(j){switch(j){case"*":k+=l,M=!0;break;case"?":k+=o,M=!0;break;default:k+="\\"+j;break}j=!1}}for(var x=0,I=v.length,V;x<I&&(V=v.charAt(x));x++){if(R.debug&&console.error("%s %s %s %j",v,x,k,V),G&&h[V]){k+="\\"+V,G=!1;continue}switch(V){case"/":return!1;case"\\":N(),G=!0;continue;case"?":case"*":case"+":case"@":case"!":if(R.debug&&console.error("%s %s %s %j <-- stateChar",v,x,k,V),X){V==="!"&&x===le+1&&(V="^"),k+=V;continue}N(),j=V,R.noext&&N();continue;case"(":if(X){k+="(";continue}if(!j){k+="\\(";continue}U=j,$.push({type:U,start:x-1,reStart:k.length}),k+=j==="!"?"(?:(?!":"(?:",j=!1;continue;case")":if(X||!$.length){k+="\\)";continue}switch(M=!0,k+=")",U=$.pop().type,U){case"!":k+="[^/]*?)";break;case"?":case"+":case"*":k+=U;case"@":break}continue;case"|":if(X||!$.length||G){k+="\\|",G=!1;continue}k+="|";continue;case"[":if(N(),X){k+="\\"+V;continue}X=!0,le=x,L=k.length,k+=V;continue;case"]":if(x===le+1||!X){k+="\\"+V,G=!1;continue}M=!0,X=!1,k+=V;continue;default:N(),G?G=!1:h[V]&&!(V==="^"&&X)&&(k+="\\"),k+=V}}if(X){var z=v.substr(le+1),fe=this.parse(z,P);k=k.substr(0,L)+"\\["+fe[0],M=M||fe[1]}for(var Q;Q=$.pop();){var _e=k.slice(Q.reStart+3);_e=_e.replace(/((?:\\{2})*)(\\?)\|/g,function(re,be,Qr){return Qr||(Qr="\\"),be+be+Qr+"|"});var H=Q.type==="*"?l:Q.type==="?"?o:"\\"+Q.type;M=!0,k=k.slice(0,Q.reStart)+H+"\\("+_e}N(),G&&(k+="\\\\");var Z=!1;switch(k.charAt(0)){case".":case"[":case"(":Z=!0}if(k!==""&&M&&(k="(?=.)"+k),Z&&(k=se+k),F===P)return[k,M];if(!M)return A(v);var ue=R.nocase?"i":"",me=new RegExp("^"+k+"$",ue);return me._glob=v,me._src=k,me}m.makeRe=function(v,F){return new g(v,F||{}).makeRe()},g.prototype.makeRe=B;function B(){if(this.regexp||this.regexp===!1)return this.regexp;var v=this.set;if(!v.length)return this.regexp=!1;var F=this.options,R=F.noglobstar?l:F.dot?c:f,k=F.nocase?"i":"",M=v.map(function(G){return G.map(function($){return $===s?R:typeof $=="string"?S($):$._src}).join("\\/")}).join("|");M="^(?:"+M+")$",this.negate&&(M="^(?!"+M+").*$");try{return this.regexp=new RegExp(M,k)}catch{return this.regexp=!1}}m.match=function(v,F,R){var k=new g(F,R);return v=v.filter(function(M){return k.match(M)}),R.nonull&&!v.length&&v.push(F),v},g.prototype.match=O;function O(v,F){if(this.comment)return!1;if(this.empty)return v==="";if(v==="/"&&F)return!0;var R=this.options;r==="win32"&&(v=v.split("\\").join("/")),v=v.split(p),R.debug&&console.error(this.pattern,"split",v);for(var k=this.set,M=0,G=k.length;M<G;M++){var $=k[M],U=this.matchOne(v,$,F);if(U)return R.flipNegate?!0:!this.negate}return R.flipNegate?!1:this.negate}g.prototype.matchOne=function(v,F,R){var k=this.options;k.debug&&console.error("matchOne",{this:this,file:v,pattern:F}),k.matchBase&&F.length===1&&(v=a.basename(v.join("/")).split("/")),k.debug&&console.error("matchOne",v.length,F.length);for(var M=0,G=0,$=v.length,U=F.length;M<$&&G<U;M++,G++){k.debug&&console.error("matchOne loop");var j=F[G],X=v[M];if(k.debug&&console.error(F,j,X),j===!1)return!1;if(j===s){k.debug&&console.error("GLOBSTAR",[F,j,X]);var L=M,le=G+1;if(le===U){for(k.debug&&console.error("** at the end");M<$;M++)if(v[M]==="."||v[M]===".."||!k.dot&&v[M].charAt(0)===".")return!1;return!0}e:for(;L<$;){var se=v[L];if(k.debug&&console.error(`
|
|
614
|
+
globstar while`,v,L,F,le,se),this.matchOne(v.slice(L),F.slice(le),R))return k.debug&&console.error("globstar found match!",L,$,se),!0;if(se==="."||se===".."||!k.dot&&se.charAt(0)==="."){k.debug&&console.error("dot detected!",v,L,F,le);break e}k.debug&&console.error("globstar swallow a segment, and continue"),L++}return!!(R&&L===$)}var N;if(typeof j=="string"?(k.nocase?N=X.toLowerCase()===j.toLowerCase():N=X===j,k.debug&&console.error("string match",j,X,N)):(N=X.match(j),k.debug&&console.error("pattern match",j,X,N)),!N)return!1}if(M===$&&G===U)return!0;if(M===$)return R;if(G===U){var x=M===$-1&&v[M]==="";return x}throw new Error("wtf?")};function A(v){return v.replace(/\\(.)/g,"$1")}function S(v){return v.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}}}),LS=W({"node_modules/editorconfig/src/lib/ini.js"(e){"use strict";var t=e&&e.__awaiter||function(l,c,f,h){return new(f||(f=Promise))(function(d,p){function D(m){try{y(h.next(m))}catch(g){p(g)}}function w(m){try{y(h.throw(m))}catch(g){p(g)}}function y(m){m.done?d(m.value):new f(function(g){g(m.value)}).then(D,w)}y((h=h.apply(l,c||[])).next())})},r=e&&e.__generator||function(l,c){var f={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},h,d,p,D;return D={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function w(m){return function(g){return y([m,g])}}function y(m){if(h)throw new TypeError("Generator is already executing.");for(;f;)try{if(h=1,d&&(p=m[0]&2?d.return:m[0]?d.throw||((p=d.return)&&p.call(d),0):d.next)&&!(p=p.call(d,m[1])).done)return p;switch(d=0,p&&(m=[m[0]&2,p.value]),m[0]){case 0:case 1:p=m;break;case 4:return f.label++,{value:m[1],done:!1};case 5:f.label++,d=m[1],m=[0];continue;case 7:m=f.ops.pop(),f.trys.pop();continue;default:if(p=f.trys,!(p=p.length>0&&p[p.length-1])&&(m[0]===6||m[0]===2)){f=0;continue}if(m[0]===3&&(!p||m[1]>p[0]&&m[1]<p[3])){f.label=m[1];break}if(m[0]===6&&f.label<p[1]){f.label=p[1],p=m;break}if(p&&f.label<p[2]){f.label=p[2],f.ops.push(m);break}p[2]&&f.ops.pop(),f.trys.pop();continue}m=c.call(l,f)}catch(g){m=[6,g],d=0}finally{h=p=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},n=e&&e.__importStar||function(l){if(l&&l.__esModule)return l;var c={};if(l!=null)for(var f in l)Object.hasOwnProperty.call(l,f)&&(c[f]=l[f]);return c.default=l,c};Object.defineProperty(e,"__esModule",{value:!0});var i=n(Ae("fs")),s={section:/^\s*\[(([^#;]|\\#|\\;)+)\]\s*([#;].*)?$/,param:/^\s*([\w\.\-\_]+)\s*[=:]\s*(.*?)\s*([#;].*)?$/,comment:/^\s*[#;].*$/};function u(l){return t(this,void 0,void 0,function(){return r(this,function(c){return[2,new Promise(function(f,h){i.readFile(l,"utf8",function(d,p){if(d){h(d);return}f(o(p))})})]})})}e.parse=u;function a(l){return o(i.readFileSync(l,"utf8"))}e.parseSync=a;function o(l){var c={},f=null,h=[[f,c]],d=l.split(/\r\n|\r|\n/);return d.forEach(function(p){var D;s.comment.test(p)||(s.param.test(p)?(D=p.match(s.param),c[D[1]]=D[2]):s.section.test(p)&&(D=p.match(s.section),f=D[1],c={},h.push([f,c])))}),h}e.parseString=o}}),NS=W({"node_modules/editorconfig/package.json"(e,t){t.exports={name:"editorconfig",version:"0.15.3",description:"EditorConfig File Locator and Interpreter for Node.js",keywords:["editorconfig","core"],main:"src/index.js",contributors:["Hong Xu (topbug.net)","Jed Mao (https://github.com/jedmao/)","Trey Hunner (http://treyhunner.com)"],directories:{bin:"./bin",lib:"./lib"},scripts:{clean:"rimraf dist",prebuild:"npm run clean",build:"tsc",pretest:"npm run lint && npm run build && npm run copy && cmake .",test:"ctest .","pretest:ci":"npm run pretest","test:ci":"ctest -VV --output-on-failure .",lint:"npm run eclint && npm run tslint",eclint:'eclint check --indent_size ignore "src/**"',tslint:"tslint --project tsconfig.json --exclude package.json",copy:"cpy .npmignore LICENSE README.md CHANGELOG.md dist && cpy bin/* dist/bin && cpy src/lib/fnmatch*.* dist/src/lib",prepub:"npm run lint && npm run build && npm run copy",pub:"npm publish ./dist"},repository:{type:"git",url:"git://github.com/editorconfig/editorconfig-core-js.git"},bugs:"https://github.com/editorconfig/editorconfig-core-js/issues",author:"EditorConfig Team",license:"MIT",dependencies:{commander:"^2.19.0","lru-cache":"^4.1.5",semver:"^5.6.0",sigmund:"^1.0.1"},devDependencies:{"@types/mocha":"^5.2.6","@types/node":"^10.12.29","@types/semver":"^5.5.0","cpy-cli":"^2.0.0",eclint:"^2.8.1",mocha:"^5.2.0",rimraf:"^2.6.3",should:"^13.2.3",tslint:"^5.13.1",typescript:"^3.3.3333"}}}}),MS=W({"node_modules/editorconfig/src/index.js"(e){"use strict";var t=e&&e.__awaiter||function(A,S,v,F){return new(v||(v=Promise))(function(R,k){function M(U){try{$(F.next(U))}catch(j){k(j)}}function G(U){try{$(F.throw(U))}catch(j){k(j)}}function $(U){U.done?R(U.value):new v(function(j){j(U.value)}).then(M,G)}$((F=F.apply(A,S||[])).next())})},r=e&&e.__generator||function(A,S){var v={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},F,R,k,M;return M={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function G(U){return function(j){return $([U,j])}}function $(U){if(F)throw new TypeError("Generator is already executing.");for(;v;)try{if(F=1,R&&(k=U[0]&2?R.return:U[0]?R.throw||((k=R.return)&&k.call(R),0):R.next)&&!(k=k.call(R,U[1])).done)return k;switch(R=0,k&&(U=[U[0]&2,k.value]),U[0]){case 0:case 1:k=U;break;case 4:return v.label++,{value:U[1],done:!1};case 5:v.label++,R=U[1],U=[0];continue;case 7:U=v.ops.pop(),v.trys.pop();continue;default:if(k=v.trys,!(k=k.length>0&&k[k.length-1])&&(U[0]===6||U[0]===2)){v=0;continue}if(U[0]===3&&(!k||U[1]>k[0]&&U[1]<k[3])){v.label=U[1];break}if(U[0]===6&&v.label<k[1]){v.label=k[1],k=U;break}if(k&&v.label<k[2]){v.label=k[2],v.ops.push(U);break}k[2]&&v.ops.pop(),v.trys.pop();continue}U=S.call(A,v)}catch(j){U=[6,j],R=0}finally{F=k=0}if(U[0]&5)throw U[1];return{value:U[0]?U[1]:void 0,done:!0}}},n=e&&e.__importStar||function(A){if(A&&A.__esModule)return A;var S={};if(A!=null)for(var v in A)Object.hasOwnProperty.call(A,v)&&(S[v]=A[v]);return S.default=A,S},i=e&&e.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(Ae("fs")),u=n(Ae("path")),a={gte:TS()},o=i(IS()),l=LS();e.parseString=l.parseString;var c=i(NS()),f={end_of_line:!0,indent_style:!0,indent_size:!0,insert_final_newline:!0,trim_trailing_whitespace:!0,charset:!0};function h(A,S){var v={matchBase:!0,dot:!0,noext:!0};return S=S.replace(/\*\*/g,"{*,**/**/**}"),o.default(A,S,v)}function d(A,S){var v=[];do A=u.dirname(A),v.push(u.join(A,S.config));while(A!==S.root);return v}function p(A,S){return"indent_style"in A&&A.indent_style==="tab"&&!("indent_size"in A)&&a.gte(S,"0.10.0")&&(A.indent_size="tab"),"indent_size"in A&&!("tab_width"in A)&&A.indent_size!=="tab"&&(A.tab_width=A.indent_size),"indent_size"in A&&"tab_width"in A&&A.indent_size==="tab"&&(A.indent_size=A.tab_width),A}function D(A,S){return A===void 0&&(A={}),{config:A.config||".editorconfig",version:A.version||c.default.version,root:u.resolve(A.root||u.parse(S).root)}}function w(A,S){switch(S.indexOf("/")){case-1:S="**/"+S;break;case 0:S=S.substring(1);break;default:break}return u.join(A,S)}function y(A,S){A===void 0&&(A={}),S===void 0&&(S={});for(var v in S)if(S.hasOwnProperty(v)){var F=S[v],R=v.toLowerCase(),k=F;f[R]&&(k=F.toLowerCase());try{k=JSON.parse(F)}catch{}(typeof F>"u"||F===null)&&(k=String(F)),A[R]=k}return A}function m(A,S,v){return p(A.reverse().reduce(function(F,R){var k=u.dirname(R.name);return R.contents.forEach(function(M){var G=M[0],$=M[1];if(G){var U=w(k,G);h(S,U)&&(F=y(F,$))}}),F},{}),v.version)}function g(A){var S=[];for(var v in A)if(A.hasOwnProperty(v)){var F=A[v],R=l.parseString(F.contents);if(S.push({name:F.name,contents:R}),(R[0][1].root||"").toLowerCase()==="true")break}return S}function C(A){return t(this,void 0,void 0,function(){return r(this,function(S){return[2,Promise.all(A.map(function(v){return new Promise(function(F){s.readFile(v,"utf8",function(R,k){F({name:v,contents:R?"":k})})})}))]})})}function E(A){var S=[],v;return A.forEach(function(F){try{v=s.readFileSync(F,"utf8")}catch{v=""}S.push({name:F,contents:v})}),S}function T(A,S){S===void 0&&(S={});var v=u.resolve(A);return[v,D(S,v)]}function P(A,S,v){return v===void 0&&(v={}),t(this,void 0,void 0,function(){var F,R,k;return r(this,function(M){return F=T(A,v),R=F[0],k=F[1],[2,S.then(g).then(function(G){return m(G,R,k)})]})})}e.parseFromFiles=P;function b(A,S,v){v===void 0&&(v={});var F=T(A,v),R=F[0],k=F[1];return m(g(S),R,k)}e.parseFromFilesSync=b;function B(A,S){return S===void 0&&(S={}),t(this,void 0,void 0,function(){var v,F,R,k;return r(this,function(M){return v=T(A,S),F=v[0],R=v[1],k=d(F,R),[2,C(k).then(g).then(function(G){return m(G,F,R)})]})})}e.parse=B;function O(A,S){S===void 0&&(S={});var v=T(A,S),F=v[0],R=v[1],k=d(F,R),M=E(k);return m(g(M),F,R)}e.parseSync=O}}),jS=W({"node_modules/@babel/code-frame/node_modules/js-tokens/index.js"(e,t){var r,n,i,s,u,a,o,l,c,f,h,d,p,D,w,y,m,g,C,E;p=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,d=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,r=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,w=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,h=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,y=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,C=/[\t\v\f\ufeff\p{Zs}]+/yu,l=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,D=/\/\/.*/y,i=/[<>.:={}]|\/(?![\/*])/y,n=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,s=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,u=/[^<>{}]+/y,g=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,m=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,a=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,o=/^(?:return|throw|yield)$/,f=RegExp(l.source),t.exports=E=function*(T,{jsx:P=!1}={}){var b,B,O,A,S,v,F,R,k,M,G,$,U,j;for({length:v}=T,A=0,S="",j=[{tag:"JS"}],b=[],G=0,$=!1;A<v;){switch(R=j[j.length-1],R.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(T[A]==="/"&&(g.test(S)||a.test(S))&&(p.lastIndex=A,F=p.exec(T))){A=p.lastIndex,S=F[0],$=!0,yield{type:"RegularExpressionLiteral",value:F[0],closed:F[1]!==void 0&&F[1]!=="\\"};continue}if(d.lastIndex=A,F=d.exec(T)){switch(U=F[0],k=d.lastIndex,M=U,U){case"(":S==="?NonExpressionParenKeyword"&&j.push({tag:"JSNonExpressionParen",nesting:G}),G++,$=!1;break;case")":G--,$=!0,R.tag==="JSNonExpressionParen"&&G===R.nesting&&(j.pop(),M="?NonExpressionParenEnd",$=!1);break;case"{":d.lastIndex=0,O=!m.test(S)&&(g.test(S)||a.test(S)),b.push(O),$=!1;break;case"}":switch(R.tag){case"InterpolationInTemplate":if(b.length===R.nesting){y.lastIndex=A,F=y.exec(T),A=y.lastIndex,S=F[0],F[1]==="${"?(S="?InterpolationInTemplate",$=!1,yield{type:"TemplateMiddle",value:F[0]}):(j.pop(),$=!0,yield{type:"TemplateTail",value:F[0],closed:F[1]==="`"});continue}break;case"InterpolationInJSX":if(b.length===R.nesting){j.pop(),A+=1,S="}",yield{type:"JSXPunctuator",value:"}"};continue}}$=b.pop(),M=$?"?ExpressionBraceEnd":"}";break;case"]":$=!0;break;case"++":case"--":M=$?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(P&&(g.test(S)||a.test(S))){j.push({tag:"JSXTag"}),A+=1,S="<",yield{type:"JSXPunctuator",value:U};continue}$=!1;break;default:$=!1}A=k,S=M,yield{type:"Punctuator",value:U};continue}if(r.lastIndex=A,F=r.exec(T)){switch(A=r.lastIndex,M=F[0],F[0]){case"for":case"if":case"while":case"with":S!=="."&&S!=="?."&&(M="?NonExpressionParenKeyword")}S=M,$=!a.test(F[0]),yield{type:F[1]==="#"?"PrivateIdentifier":"IdentifierName",value:F[0]};continue}if(w.lastIndex=A,F=w.exec(T)){A=w.lastIndex,S=F[0],$=!0,yield{type:"StringLiteral",value:F[0],closed:F[2]!==void 0};continue}if(h.lastIndex=A,F=h.exec(T)){A=h.lastIndex,S=F[0],$=!0,yield{type:"NumericLiteral",value:F[0]};continue}if(y.lastIndex=A,F=y.exec(T)){A=y.lastIndex,S=F[0],F[1]==="${"?(S="?InterpolationInTemplate",j.push({tag:"InterpolationInTemplate",nesting:b.length}),$=!1,yield{type:"TemplateHead",value:F[0]}):($=!0,yield{type:"NoSubstitutionTemplate",value:F[0],closed:F[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(i.lastIndex=A,F=i.exec(T)){switch(A=i.lastIndex,M=F[0],F[0]){case"<":j.push({tag:"JSXTag"});break;case">":j.pop(),S==="/"||R.tag==="JSXTagEnd"?(M="?JSX",$=!0):j.push({tag:"JSXChildren"});break;case"{":j.push({tag:"InterpolationInJSX",nesting:b.length}),M="?InterpolationInJSX",$=!1;break;case"/":S==="<"&&(j.pop(),j[j.length-1].tag==="JSXChildren"&&j.pop(),j.push({tag:"JSXTagEnd"}))}S=M,yield{type:"JSXPunctuator",value:F[0]};continue}if(n.lastIndex=A,F=n.exec(T)){A=n.lastIndex,S=F[0],yield{type:"JSXIdentifier",value:F[0]};continue}if(s.lastIndex=A,F=s.exec(T)){A=s.lastIndex,S=F[0],yield{type:"JSXString",value:F[0],closed:F[2]!==void 0};continue}break;case"JSXChildren":if(u.lastIndex=A,F=u.exec(T)){A=u.lastIndex,S=F[0],yield{type:"JSXText",value:F[0]};continue}switch(T[A]){case"<":j.push({tag:"JSXTag"}),A++,S="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":j.push({tag:"InterpolationInJSX",nesting:b.length}),A++,S="?InterpolationInJSX",$=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(C.lastIndex=A,F=C.exec(T)){A=C.lastIndex,yield{type:"WhiteSpace",value:F[0]};continue}if(l.lastIndex=A,F=l.exec(T)){A=l.lastIndex,$=!1,o.test(S)&&(S="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:F[0]};continue}if(c.lastIndex=A,F=c.exec(T)){A=c.lastIndex,f.test(F[0])&&($=!1,o.test(S)&&(S="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:F[0],closed:F[1]!==void 0};continue}if(D.lastIndex=A,F=D.exec(T)){A=D.lastIndex,$=!1,yield{type:"SingleLineComment",value:F[0]};continue}B=String.fromCodePoint(T.codePointAt(A)),A+=B.length,S=B,$=!1,yield{type:R.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:B}}}}}),$S=W({"node_modules/n-readlines/readlines.js"(e,t){"use strict";var r=Ae("fs"),n=class{constructor(i,s){s=s||{},s.readChunk||(s.readChunk=1024),s.newLineCharacter?s.newLineCharacter=s.newLineCharacter.charCodeAt(0):s.newLineCharacter=10,typeof i=="number"?this.fd=i:this.fd=r.openSync(i,"r"),this.options=s,this.newLineCharacter=s.newLineCharacter,this.reset()}_searchInBuffer(i,s){let u=-1;for(let a=0;a<=i.length;a++)if(i[a]===s){u=a;break}return u}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){r.closeSync(this.fd),this.fd=null}_extractLines(i){let s,u=[],a=0,o=0;for(;;){let c=i[a++];if(c===this.newLineCharacter)s=i.slice(o,a),u.push(s),o=a;else if(c===void 0)break}let l=i.slice(o,a);return l.length&&u.push(l),u}_readChunk(i){let s=0,u,a=[];do{let l=Buffer.alloc(this.options.readChunk);u=r.readSync(this.fd,l,0,this.options.readChunk,this.fdPosition),s=s+u,this.fdPosition=this.fdPosition+u,a.push(l)}while(u&&this._searchInBuffer(a[a.length-1],this.options.newLineCharacter)===-1);let o=Buffer.concat(a);return u<this.options.readChunk&&(this.eofReached=!0,o=o.slice(0,s)),s&&(this.linesCache=this._extractLines(o),i&&(this.linesCache[0]=Buffer.concat([i,this.linesCache[0]]))),s}next(){if(!this.fd)return!1;let i=!1;if(this.eofReached&&this.linesCache.length===0)return i;let s;return this.linesCache.length||(s=this._readChunk()),this.linesCache.length&&(i=this.linesCache.shift(),i[i.length-1]!==this.newLineCharacter&&(s=this._readChunk(i),s&&(i=this.linesCache.shift()))),this.eofReached&&this.linesCache.length===0&&this.close(),i&&i[i.length-1]===this.newLineCharacter&&(i=i.slice(0,i.length-1)),i}};t.exports=n}}),HS=W({"node_modules/ignore/index.js"(e,t){function r(N){return Array.isArray(N)?N:[N]}var n=void 0,i="",s=" ",u="\\",a=/^\s+$/,o=/(?:[^\\]|^)\\$/,l=/^\\!/,c=/^\\#/,f=/\r?\n/g,h=/^\.{0,2}\/|^\.{1,2}$/,d=/\/$/,p="/",D="node-ignore";typeof Symbol<"u"&&(D=Symbol.for("node-ignore"));var w=D,y=(N,x,I)=>(Object.defineProperty(N,x,{value:I}),I),m=/([0-z])-([0-z])/g,g=()=>!1,C=N=>N.replace(m,(x,I,V)=>I.charCodeAt(0)<=V.charCodeAt(0)?x:i),E=N=>{let{length:x}=N;return N.slice(0,x-x%2)},T=[[/^\uFEFF/,()=>i],[/((?:\\\\)*?)(\\?\s+)$/,(N,x,I)=>x+(I.indexOf("\\")===0?s:i)],[/(\\+?)\s/g,(N,x)=>{let{length:I}=x;return x.slice(0,I-I%2)+s}],[/[\\$.|*+(){^]/g,N=>`\\${N}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(N,x,I)=>x+6<I.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(N,x,I)=>{let V=I.replace(/\\\*/g,"[^\\/]*");return x+V}],[/\\\\\\(?=[$.|*+(){^])/g,()=>u],[/\\\\/g,()=>u],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(N,x,I,V,z)=>x===u?`\\[${I}${E(V)}${z}`:z==="]"&&V.length%2===0?`[${C(I)}${V}]`:"[]"],[/(?:[^*])$/,N=>/\/$/.test(N)?`${N}$`:`${N}(?=$|\\/$)`]],P=/(^|\\\/)?\\\*$/,b="regex",B="checkRegex",O="_",A={[b](N,x){return`${x?`${x}[^/]+`:"[^/]*"}(?=$|\\/$)`},[B](N,x){return`${x?`${x}[^/]*`:"[^/]*"}(?=$|\\/$)`}},S=N=>T.reduce((x,[I,V])=>x.replace(I,V.bind(N)),N),v=N=>typeof N=="string",F=N=>N&&v(N)&&!a.test(N)&&!o.test(N)&&N.indexOf("#")!==0,R=N=>N.split(f).filter(Boolean),k=class{constructor(N,x,I,V,z,fe){this.pattern=N,this.mark=x,this.negative=z,y(this,"body",I),y(this,"ignoreCase",V),y(this,"regexPrefix",fe)}get regex(){let N=O+b;return this[N]?this[N]:this._make(b,N)}get checkRegex(){let N=O+B;return this[N]?this[N]:this._make(B,N)}_make(N,x){let I=this.regexPrefix.replace(P,A[N]),V=this.ignoreCase?new RegExp(I,"i"):new RegExp(I);return y(this,x,V)}},M=({pattern:N,mark:x},I)=>{let V=!1,z=N;z.indexOf("!")===0&&(V=!0,z=z.substr(1)),z=z.replace(l,"!").replace(c,"#");let fe=S(z);return new k(N,x,z,I,V,fe)},G=class{constructor(N){this._ignoreCase=N,this._rules=[]}_add(N){if(N&&N[w]){this._rules=this._rules.concat(N._rules._rules),this._added=!0;return}if(v(N)&&(N={pattern:N}),F(N.pattern)){let x=M(N,this._ignoreCase);this._added=!0,this._rules.push(x)}}add(N){return this._added=!1,r(v(N)?R(N):N).forEach(this._add,this),this._added}test(N,x,I){let V=!1,z=!1,fe;this._rules.forEach(_e=>{let{negative:H}=_e;z===H&&V!==z||H&&!V&&!z&&!x||!_e[I].test(N)||(V=!H,z=H,fe=H?n:_e)});let Q={ignored:V,unignored:z};return fe&&(Q.rule=fe),Q}},$=(N,x)=>{throw new x(N)},U=(N,x,I)=>v(N)?N?U.isNotRelative(N)?I(`path should be a \`path.relative()\`d string, but got "${x}"`,RangeError):!0:I("path must not be empty",TypeError):I(`path must be a string, but got \`${x}\``,TypeError),j=N=>h.test(N);U.isNotRelative=j,U.convert=N=>N;var X=class{constructor({ignorecase:N=!0,ignoreCase:x=N,allowRelativePaths:I=!1}={}){y(this,w,!0),this._rules=new G(x),this._strictPathCheck=!I,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(N){return this._rules.add(N)&&this._initCache(),this}addPattern(N){return this.add(N)}_test(N,x,I,V){let z=N&&U.convert(N);return U(z,N,this._strictPathCheck?$:g),this._t(z,x,I,V)}checkIgnore(N){if(!d.test(N))return this.test(N);let x=N.split(p).filter(Boolean);if(x.pop(),x.length){let I=this._t(x.join(p)+p,this._testCache,!0,x);if(I.ignored)return I}return this._rules.test(N,!1,B)}_t(N,x,I,V){if(N in x)return x[N];if(V||(V=N.split(p).filter(Boolean)),V.pop(),!V.length)return x[N]=this._rules.test(N,I,b);let z=this._t(V.join(p)+p,x,I,V);return x[N]=z.ignored?z:this._rules.test(N,I,b)}ignores(N){return this._test(N,this._ignoreCache,!1).ignored}createFilter(){return N=>!this.ignores(N)}filter(N){return r(N).filter(this.createFilter())}test(N){return this._test(N,this._testCache,!0)}},L=N=>new X(N),le=N=>U(N&&U.convert(N),N,g),se=()=>{let N=I=>/^\\\\\?\\/.test(I)||/["<>|\u0000-\u001F]+/u.test(I)?I:I.replace(/\\/g,"/");U.convert=N;let x=/^[a-z]:\//i;U.isNotRelative=I=>x.test(I)||j(I)};typeof process<"u"&&process.platform==="win32"&&se(),t.exports=L,L.default=L,t.exports.isPathValid=le,y(t.exports,Symbol.for("setupWindows"),se)}}),qS={};Eu(qS,{__debug:()=>oO,__internal:()=>aO,check:()=>nO,clearConfigCache:()=>iO,doc:()=>ko,format:()=>xu,formatWithCursor:()=>Dg,getFileInfo:()=>RP,getSupportInfo:()=>sO,resolveConfig:()=>wu,resolveConfigFile:()=>DB,util:()=>fg,version:()=>TP});var ID=class{diff(e,t,r={}){let n;typeof r=="function"?(n=r,r={}):"callback"in r&&(n=r.callback);let i=this.castInput(e,r),s=this.castInput(t,r),u=this.removeEmpty(this.tokenize(i,r)),a=this.removeEmpty(this.tokenize(s,r));return this.diffWithOptionsObj(u,a,r,n)}diffWithOptionsObj(e,t,r,n){var i;let s=y=>{if(y=this.postProcess(y,r),n){setTimeout(function(){n(y)},0);return}else return y},u=t.length,a=e.length,o=1,l=u+a;r.maxEditLength!=null&&(l=Math.min(l,r.maxEditLength));let c=(i=r.timeout)!==null&&i!==void 0?i:1/0,f=Date.now()+c,h=[{oldPos:-1,lastComponent:void 0}],d=this.extractCommon(h[0],t,e,0,r);if(h[0].oldPos+1>=a&&d+1>=u)return s(this.buildValues(h[0].lastComponent,t,e));let p=-1/0,D=1/0,w=()=>{for(let y=Math.max(p,-o);y<=Math.min(D,o);y+=2){let m,g=h[y-1],C=h[y+1];g&&(h[y-1]=void 0);let E=!1;if(C){let P=C.oldPos-y;E=C&&0<=P&&P<u}let T=g&&g.oldPos+1<a;if(!E&&!T){h[y]=void 0;continue}if(!T||E&&g.oldPos<C.oldPos?m=this.addToPath(C,!0,!1,0,r):m=this.addToPath(g,!1,!0,1,r),d=this.extractCommon(m,t,e,y,r),m.oldPos+1>=a&&d+1>=u)return s(this.buildValues(m.lastComponent,t,e))||!0;h[y]=m,m.oldPos+1>=a&&(D=Math.min(D,y-1)),d+1>=u&&(p=Math.max(p,y+1))}o++};if(n)(function y(){setTimeout(function(){if(o>l||Date.now()>f)return n(void 0);w()||y()},0)})();else for(;o<=l&&Date.now()<=f;){let y=w();if(y)return y}}addToPath(e,t,r,n,i){let s=e.lastComponent;return s&&!i.oneChangePerToken&&s.added===t&&s.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:s.count+1,added:t,removed:r,previousComponent:s.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:s}}}extractCommon(e,t,r,n,i){let s=t.length,u=r.length,a=e.oldPos,o=a-n,l=0;for(;o+1<s&&a+1<u&&this.equals(r[a+1],t[o+1],i);)o++,a++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=a,o}equals(e,t,r){return r.comparator?r.comparator(e,t):e===t||!!r.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,r){let n=[],i;for(;e;)n.push(e),i=e.previousComponent,delete e.previousComponent,e=i;n.reverse();let s=n.length,u=0,a=0,o=0;for(;u<s;u++){let l=n[u];if(l.removed)l.value=this.join(r.slice(o,o+l.count)),o+=l.count;else{if(!l.added&&this.useLongestToken){let c=t.slice(a,a+l.count);c=c.map(function(f,h){let d=r[o+h];return d.length>f.length?d:f}),l.value=this.join(c)}else l.value=this.join(t.slice(a,a+l.count));a+=l.count,l.added||(o+=l.count)}}return n}},US=class extends ID{constructor(){super(...arguments),this.tokenize=WS}equals(e,t,r){return r.ignoreWhitespace?((!r.newlineIsToken||!e.includes(`
|
|
615
615
|
`))&&(e=e.trim()),(!r.newlineIsToken||!t.includes(`
|
|
616
616
|
`))&&(t=t.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(e.endsWith(`
|
|
617
617
|
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
618
618
|
`)&&(t=t.slice(0,-1))),super.equals(e,t,r)}},GS=new US;function Rp(e,t,r){return GS.diff(e,t,r)}function WS(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
619
|
-
`));let r=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(let i=0;i<n.length;i++){let s=n[i];i%2&&!t.newlineIsToken?r[r.length-1]+=s:r.push(s)}return r}var VS=class extends ID{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},
|
|
620
|
-
`)?m.lines[g]=m.lines[g].slice(0,-1):(m.lines.splice(g+1,0,"\"),g++);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:s,hunks:h}}}function
|
|
619
|
+
`));let r=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(let i=0;i<n.length;i++){let s=n[i];i%2&&!t.newlineIsToken?r[r.length-1]+=s:r.push(s)}return r}var VS=class extends ID{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},YS=new VS;function zS(e,t,r){return YS.diff(e,t,r)}function Tp(e,t,r,n,i,s,u){let a;u?typeof u=="function"?a={callback:u}:a=u:a={},typeof a.context>"u"&&(a.context=4);let o=a.context;if(a.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(a.callback){let{callback:c}=a;Rp(r,n,Object.assign(Object.assign({},a),{callback:f=>{let h=l(f);c(h)}}))}else return l(Rp(r,n,a));function l(c){if(!c)return;c.push({value:"",lines:[]});function f(m){return m.map(function(g){return" "+g})}let h=[],d=0,p=0,D=[],w=1,y=1;for(let m=0;m<c.length;m++){let g=c[m],C=g.lines||JS(g.value);if(g.lines=C,g.added||g.removed){if(!d){let E=c[m-1];d=w,p=y,E&&(D=o>0?f(E.lines.slice(-o)):[],d-=D.length,p-=D.length)}for(let E of C)D.push((g.added?"+":"-")+E);g.added?y+=C.length:w+=C.length}else{if(d)if(C.length<=o*2&&m<c.length-2)for(let E of f(C))D.push(E);else{let E=Math.min(C.length,o);for(let P of f(C.slice(0,E)))D.push(P);let T={oldStart:d,oldLines:w-d+E,newStart:p,newLines:y-p+E,lines:D};h.push(T),d=0,p=0,D=[]}w+=C.length,y+=C.length}}for(let m of h)for(let g=0;g<m.lines.length;g++)m.lines[g].endsWith(`
|
|
620
|
+
`)?m.lines[g]=m.lines[g].slice(0,-1):(m.lines.splice(g+1,0,"\"),g++);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:s,hunks:h}}}function zo(e){if(Array.isArray(e))return e.map(zo).join(`
|
|
621
621
|
`);let t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":" "+e.oldHeader)),t.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":" "+e.newHeader));for(let r=0;r<e.hunks.length;r++){let n=e.hunks[r];n.oldLines===0&&(n.oldStart-=1),n.newLines===0&&(n.newStart-=1),t.push("@@ -"+n.oldStart+","+n.oldLines+" +"+n.newStart+","+n.newLines+" @@");for(let i of n.lines)t.push(i)}return t.join(`
|
|
622
622
|
`)+`
|
|
623
|
-
`}function KS(e,t,r,n,i,s,u){if(typeof u=="function"&&(u={callback:u}),u?.callback){let{callback:a}=u;Tp(e,t,r,n,i,s,Object.assign(Object.assign({},u),{callback:o=>{a(o?
|
|
623
|
+
`}function KS(e,t,r,n,i,s,u){if(typeof u=="function"&&(u={callback:u}),u?.callback){let{callback:a}=u;Tp(e,t,r,n,i,s,Object.assign(Object.assign({},u),{callback:o=>{a(o?zo(o):void 0)}}))}else{let a=Tp(e,t,r,n,i,s,u);return a?zo(a):void 0}}function JS(e){let t=e.endsWith(`
|
|
624
624
|
`),r=e.split(`
|
|
625
625
|
`).map(n=>n+`
|
|
626
626
|
`);return t?r.pop():r.push(r.pop().slice(0,-1)),r}var XS=Lt(CS(),1),In=[],Po=[];function Oo(e,t,r){if(e===t)return 0;let n=r?.maxDistance,i=e;e.length>t.length&&(e=t,t=i);let s=e.length,u=t.length;for(;s>0&&e.charCodeAt(~-s)===t.charCodeAt(~-u);)s--,u--;let a=0;for(;a<s&&e.charCodeAt(a)===t.charCodeAt(a);)a++;if(s-=a,u-=a,n!==void 0&&u-s>n)return n;if(s===0)return n!==void 0&&u>n?n:u;let o,l,c,f,h=0,d=0;for(;h<s;)Po[h]=e.charCodeAt(a+h),In[h]=++h;for(;d<u;){for(o=t.charCodeAt(a+d),c=d++,l=d,h=0;h<s;h++)f=o===Po[h]?c:c+1,c=In[h],l=In[h]=c>l?f>l?l+1:f:f>c?c+1:f;if(n!==void 0){let p=l;for(h=0;h<s;h++)In[h]<p&&(p=In[h]);if(p>n)return n}}return In.length=s,Po.length=s,n!==void 0&&l>n?n:l}function LD(e,t,r){if(!Array.isArray(t)||t.length===0)return;let n=r?.maxDistance,i=e.length;for(let o of t)if(o===e)return o;if(n===0)return;let s,u=Number.POSITIVE_INFINITY,a=new Set;for(let o of t){if(a.has(o))continue;a.add(o);let l=Math.abs(o.length-i);if(l>=u||n!==void 0&&l>n)continue;let c=Number.isFinite(u)?n===void 0?u:Math.min(u,n):n,f=c===void 0?Oo(e,o):Oo(e,o,{maxDistance:c});if(n!==void 0&&f>n)continue;let h=f;if(c!==void 0&&f===c&&c===n&&(h=Oo(e,o)),h<u&&(u=h,s=o,u===0))break}if(!(n!==void 0&&u>n))return s}var QS=Lt(Pi(),1),ln={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>ln.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${ln.key(r)}: ${ln.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>ln.value({[e]:t})},Bp=Lt(Pi(),1),ZS=(e,t,{descriptor:r})=>{let n=[`${Bp.default.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Bp.default.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."},Ln=Lt(Pi(),1),ND=Symbol.for("vnopts.VALUE_NOT_EXIST"),ou=Symbol.for("vnopts.VALUE_UNCHANGED"),xp=" ".repeat(2),e2=(e,t,r)=>{let{text:n,list:i}=r.normalizeExpectedResult(r.schemas[e].expected(r)),s=[];return n&&s.push(kp(e,t,n,r.descriptor)),i&&s.push([kp(e,t,i.title,r.descriptor)].concat(i.values.map(u=>MD(u,r.loggerPrintWidth))).join(`
|
|
627
627
|
`)),jD(s,r.loggerPrintWidth)};function kp(e,t,r,n){return[`Invalid ${Ln.default.red(n.key(e))} value.`,`Expected ${Ln.default.blue(r)},`,`but received ${t===ND?Ln.default.gray("nothing"):Ln.default.red(n.value(t))}.`].join(" ")}function MD({text:e,list:t},r){let n=[];return e&&n.push(`- ${Ln.default.blue(e)}`),t&&n.push([`- ${Ln.default.blue(t.title)}:`].concat(t.values.map(i=>MD(i,r-xp.length).replace(/^|\n/g,`$&${xp}`))).join(`
|
|
628
628
|
`)),jD(n,r)}function jD(e,t){if(e.length===1)return e[0];let[r,n]=e,[i,s]=e.map(u=>u.split(`
|
|
629
|
-
`,1)[0].length);return i>t&&i>s?n:r}var Pp=Lt(Pi(),1),$D=(e,t,{descriptor:r,logger:n,schemas:i})=>{let s=[`Ignored unknown option ${Pp.default.yellow(r.pair({key:e,value:t}))}.`],u=LD(e,Object.keys(i),{maxDistance:3});u&&s.push(`Did you mean ${Pp.default.blue(r.key(u))}?`),n.warn(s.join(" "))},t2=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function r2(e,t){let r=new e(t),n=Object.create(r);for(let i of t2)i in t&&(n[i]=n2(t[i],r,Nr.prototype[i].length));return n}var Nr=class{static create(e){return r2(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return ou}};function n2(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var i2=class extends Nr{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},s2=class extends Nr{expected(){return"anything"}validate(){return!0}},u2=class extends Nr{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let i=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);i!==!0&&r.push(i.value)}return r.length===0?!0:{value:r}}deprecated(e,t){let r=[];for(let n of e){let i=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);i!==!1&&r.push(...i.map(({value:s})=>({value:[s]})))}return r}forward(e,t){let r=[];for(let n of e){let i=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...i.map(Op))}return r}redirect(e,t){let r=[],n=[];for(let i of e){let s=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in s&&r.push(s.remain),n.push(...s.redirect.map(Op))}return r.length===0?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function Op({from:e,to:t}){return{from:[e],to:t}}var a2=class extends Nr{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function o2(e,t){let r=Object.create(null);for(let n of e){let i=n[t];if(r[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r[i]=n}return r}function l2(e,t){let r=new Map;for(let n of e){let i=n[t];if(r.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r.set(i,n)}return r}function c2(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function f2(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}function h2(e){return e===Math.floor(e)}function d2(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function p2(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function Ip(e){return e===void 0?{}:e}function HD(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return D2((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(HD)}}:{text:t}}function Lp(e,t){return e===!0?!0:e===!1?{value:t}:e}function Np(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Mp(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Ko(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>Mp(r,t)):[Mp(e,t)]}function jp(e,t){let r=Ko(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function D2(e,t){if(!e)throw new Error(t)}var qD=class extends Nr{constructor(e){super(e),this._choices=l2(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(s=>this._choices.get(s)).filter(({hidden:s})=>!s).map(s=>s.value).sort(d2).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},m2=class extends Nr{expected(){return"a number"}validate(e,t){return typeof e=="number"}},g2=class extends m2{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&h2(e)}},$p=class extends Nr{expected(){return"a string"}validate(e){return typeof e=="string"}},_2=ln,y2=$D,E2=e2,v2=ZS,F2=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:n=80,descriptor:i=_2,unknown:s=y2,invalid:u=E2,deprecated:a=v2,missing:o=()=>!1,required:l=()=>!1,preprocess:c=h=>h,postprocess:f=()=>ou}=t||{};this._utils={descriptor:i,logger:r||{warn:()=>{}},loggerPrintWidth:n,schemas:o2(e,"name"),normalizeDefaultResult:Ip,normalizeExpectedResult:HD,normalizeDeprecatedResult:Np,normalizeForwardResult:Ko,normalizeRedirectResult:jp,normalizeValidateResult:Lp},this._unknownHandler=s,this._invalidHandler=p2(u),this._deprecatedHandler=a,this._identifyMissing=(h,d)=>!(h in d)||o(h,d),this._identifyRequired=l,this._preprocess=c,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=c2()}normalize(e){let t={},n=[this._preprocess(e,this._utils)],i=()=>{for(;n.length!==0;){let s=n.shift(),u=this._applyNormalization(s,t);n.push(...u)}};i();for(let s of Object.keys(this._utils.schemas)){let u=this._utils.schemas[s];if(!(s in t)){let a=Ip(u.default(this._utils));"value"in a&&n.push({[s]:a.value})}}i();for(let s of Object.keys(this._utils.schemas)){if(!(s in t))continue;let u=this._utils.schemas[s],a=t[s],o=u.postprocess(a,this._utils);o!==ou&&(this._applyValidation(o,s,u),t[s]=o)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let r=[],{knownKeys:n,unknownKeys:i}=this._partitionOptionKeys(e);for(let s of n){let u=this._utils.schemas[s],a=u.preprocess(e[s],this._utils);this._applyValidation(a,s,u);let o=({from:h,to:d})=>{r.push(typeof d=="string"?{[d]:h}:{[d.key]:d.value})},l=({value:h,redirectTo:d})=>{let p=Np(u.deprecated(h,this._utils),a,!0);if(p!==!1)if(p===!0)this._hasDeprecationWarned(s)||this._utils.logger.warn(this._deprecatedHandler(s,d,this._utils));else for(let{value:D}of p){let w={key:s,value:D};if(!this._hasDeprecationWarned(w)){let y=typeof d=="string"?{key:d,value:D}:d;this._utils.logger.warn(this._deprecatedHandler(w,y,this._utils))}}};Ko(u.forward(a,this._utils),a).forEach(o);let f=jp(u.redirect(a,this._utils),a);if(f.redirect.forEach(o),"remain"in f){let h=f.remain;t[s]=s in t?u.overlap(t[s],h,this._utils):h,l({value:h})}for(let{from:h,to:d}of f.redirect)l({value:h,redirectTo:d})}for(let s of i){let u=e[s];this._applyUnknownHandler(s,u,t,(a,o)=>{r.push({[a]:o})})}return r}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,ND,this._utils)}_partitionOptionKeys(e){let[t,r]=f2(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){let n=Lp(r.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){let i=this._unknownHandler(e,t,this._utils);if(i)for(let s of Object.keys(i)){if(this._identifyMissing(s,i))continue;let u=i[s];s in this._utils.schemas?n(s,u):r[s]=u}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==ou){if(t.delete)for(let r of t.delete)delete e[r];if(t.override){let{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let i of r){let s=t.override[i];this._applyValidation(s,i,this._utils.schemas[i]),e[i]=s}for(let i of n){let s=t.override[i];this._applyUnknownHandler(i,s,e,(u,a)=>{let o=this._utils.schemas[u];this._applyValidation(a,u,o),e[u]=a})}}}}},UD={};Eu(UD,{ArgExpansionBailout:()=>C2,ConfigError:()=>Dl,UndefinedParserError:()=>Jo});var Dl=class extends Error{name="ConfigError"},Jo=class extends Error{name="UndefinedParserError"},C2=class extends Error{name="ArgExpansionBailout"};function A2(e){let t={...e},r=(s,u)=>{if(!Object.prototype.hasOwnProperty.call(e,s))throw new Error(`Unexpected mock '${s}'.`);t[s]=u};return{mocked:t,implementations:e,mockImplementation:r,mockImplementations:s=>{for(let[u,a]of Object.entries(s))r(u,a)},mockRestore:()=>{Object.assign(t,e)}}}var GD=A2,WD=GD({getPrettierConfigSearchStopDirectory:()=>{}}),w2=WD.mocked,Hp=Lt(bD(),1),b2="file:",S2=e=>e instanceof URL,zD=e=>typeof e=="string"&&e.startsWith(b2),$n=e=>S2(e)||zD(e),Hn=e=>$n(e)?ml.fileURLToPath(e):e,Xo=e=>e&&VD.resolve($n(e)?ml.fileURLToPath(e):e);function R2(e,t){let r=[[],[]];for(let n of e)r[t(n)?0:1].push(n);return r}var T2=R2,B2=Lt(MS(),1),k2=e=>e?.isFile(),P2=e=>e?.isDirectory();async function XD(e,{typeCheck:t,cwd:r,allowSymlinks:n=!0,filter:i}){let s=Xo(r)??x2.cwd(),u=Array.isArray(e)?e:[e];for(let a of u){let o=JD.join(s,a),l=await O2(o,n);if(await t(l)&&(!i||await i({name:a,path:o,stats:l})))return o}}async function O2(e,t=!0){try{return await(t?Cu.stat:Cu.lstat)(e)}catch{}}function I2(e,t){return XD(e,{...t,typeCheck:k2})}function L2(e,t){return XD(e,{...t,typeCheck:P2})}function*M2(e,t){let r=Xo(e)??N2.cwd(),n=Xo(t);if(n){let i=qn.relative(n,r);if(i[0]==="."||i===r)return}for(n=n?r.slice(0,n.length):qn.parse(r).root;r!==n;)yield r,r=qn.dirname(r);yield n}var j2=M2,QD=class{#r;#t;#e=new Map;#n;findInDirectory;constructor(e,{allowSymlinks:t,filter:r,stopDirectory:n,cache:i}={}){this.#r=n,this.#t=i??!0,this.#n=s=>this.findInDirectory(e,{cwd:s,filter:r,allowSymlinks:t})}#i(e,t=!0){let r=this.#e;return(!t||!r.has(e))&&r.set(e,this.#n(e)),r.get(e)}async search(e,t){for(let r of j2(e,this.#r)){let n=await this.#i(r,t?.cache??this.#t);if(n)return n}}clearCache(){this.#e.clear()}},$2=class extends QD{findInDirectory=I2},H2=class extends QD{findInDirectory=L2},q2=[".git",".hg"],lu;async function U2(e,t){lu??(lu=new H2(q2,{allowSymlinks:!1}));let r=await lu.search(e,{cache:t.shouldCache});return r?KD.dirname(r):void 0}function G2(){lu?.clearCache()}var Io=e=>Number.isSafeInteger(e)&&e>0;function W2(e){if(!e)return;let t={},{indent_style:r,indent_size:n,tab_width:i,max_line_length:s,quote_type:u,end_of_line:a}=e;if(r==="space"?t.useTabs=!1:(r==="tab"||n==="tab")&&(t.useTabs=!0),t.useTabs===!1&&Io(n)?t.tabWidth=n:Io(i)&&(t.tabWidth=i),s==="off"?t.printWidth=Number.POSITIVE_INFINITY:Io(s)&&(t.printWidth=s),u==="single"?t.singleQuote=!0:u==="double"&&(t.singleQuote=!1),(a==="lf"||a==="crlf"||a==="cr")&&(t.endOfLine=a),Object.keys(t).length!==0)return t}var V2=W2,cu=new Map;function z2(){G2(),cu.clear()}async function Y2(e,{shouldCache:t}){let r=YD.dirname(e),n=await U2(r,{shouldCache:t}),i=await B2.default.parse(e,{root:n});return V2(i)}function K2(e,{shouldCache:t}){return e=YD.resolve(e),(!t||!cu.has(e))&&cu.set(e,Y2(e,{shouldCache:t})),cu.get(e)}var X2=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Q2=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,Z2=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Lo={Space_Separator:X2,ID_Start:Q2,ID_Continue:Z2},Je={isSpaceSeparator(e){return typeof e=="string"&&Lo.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Lo.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||Lo.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Qo,lt,ir,gu,Or,It,Xe,_l,Ti,eR=function(t,r){Qo=String(t),lt="start",ir=[],gu=0,Or=1,It=0,Xe=void 0,_l=void 0,Ti=void 0;do Xe=tR(),iR[lt]();while(Xe.type!=="eof");return typeof r=="function"?Zo({"":Ti},"",r):Ti};function Zo(e,t,r){let n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){let s=String(i),u=Zo(n,s,r);u===void 0?delete n[s]:Object.defineProperty(n,s,{value:u,writable:!0,enumerable:!0,configurable:!0})}else for(let i in n){let s=Zo(n,i,r);s===void 0?delete n[i]:Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,n)}var ce,ae,bi,rr,De;function tR(){for(ce="default",ae="",bi=!1,rr=1;;){De=sr();let e=ZD[ce]();if(e)return e}}function sr(){if(Qo[gu])return String.fromCodePoint(Qo.codePointAt(gu))}function q(){let e=sr();return e===`
|
|
629
|
+
`,1)[0].length);return i>t&&i>s?n:r}var Pp=Lt(Pi(),1),$D=(e,t,{descriptor:r,logger:n,schemas:i})=>{let s=[`Ignored unknown option ${Pp.default.yellow(r.pair({key:e,value:t}))}.`],u=LD(e,Object.keys(i),{maxDistance:3});u&&s.push(`Did you mean ${Pp.default.blue(r.key(u))}?`),n.warn(s.join(" "))},t2=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function r2(e,t){let r=new e(t),n=Object.create(r);for(let i of t2)i in t&&(n[i]=n2(t[i],r,Nr.prototype[i].length));return n}var Nr=class{static create(e){return r2(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return ou}};function n2(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var i2=class extends Nr{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},s2=class extends Nr{expected(){return"anything"}validate(){return!0}},u2=class extends Nr{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let i=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);i!==!0&&r.push(i.value)}return r.length===0?!0:{value:r}}deprecated(e,t){let r=[];for(let n of e){let i=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);i!==!1&&r.push(...i.map(({value:s})=>({value:[s]})))}return r}forward(e,t){let r=[];for(let n of e){let i=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...i.map(Op))}return r}redirect(e,t){let r=[],n=[];for(let i of e){let s=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in s&&r.push(s.remain),n.push(...s.redirect.map(Op))}return r.length===0?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function Op({from:e,to:t}){return{from:[e],to:t}}var a2=class extends Nr{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function o2(e,t){let r=Object.create(null);for(let n of e){let i=n[t];if(r[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r[i]=n}return r}function l2(e,t){let r=new Map;for(let n of e){let i=n[t];if(r.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r.set(i,n)}return r}function c2(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function f2(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}function h2(e){return e===Math.floor(e)}function d2(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function p2(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function Ip(e){return e===void 0?{}:e}function HD(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return D2((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(HD)}}:{text:t}}function Lp(e,t){return e===!0?!0:e===!1?{value:t}:e}function Np(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Mp(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Ko(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>Mp(r,t)):[Mp(e,t)]}function jp(e,t){let r=Ko(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function D2(e,t){if(!e)throw new Error(t)}var qD=class extends Nr{constructor(e){super(e),this._choices=l2(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(s=>this._choices.get(s)).filter(({hidden:s})=>!s).map(s=>s.value).sort(d2).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},m2=class extends Nr{expected(){return"a number"}validate(e,t){return typeof e=="number"}},g2=class extends m2{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&h2(e)}},$p=class extends Nr{expected(){return"a string"}validate(e){return typeof e=="string"}},_2=ln,y2=$D,E2=e2,v2=ZS,F2=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:n=80,descriptor:i=_2,unknown:s=y2,invalid:u=E2,deprecated:a=v2,missing:o=()=>!1,required:l=()=>!1,preprocess:c=h=>h,postprocess:f=()=>ou}=t||{};this._utils={descriptor:i,logger:r||{warn:()=>{}},loggerPrintWidth:n,schemas:o2(e,"name"),normalizeDefaultResult:Ip,normalizeExpectedResult:HD,normalizeDeprecatedResult:Np,normalizeForwardResult:Ko,normalizeRedirectResult:jp,normalizeValidateResult:Lp},this._unknownHandler=s,this._invalidHandler=p2(u),this._deprecatedHandler=a,this._identifyMissing=(h,d)=>!(h in d)||o(h,d),this._identifyRequired=l,this._preprocess=c,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=c2()}normalize(e){let t={},n=[this._preprocess(e,this._utils)],i=()=>{for(;n.length!==0;){let s=n.shift(),u=this._applyNormalization(s,t);n.push(...u)}};i();for(let s of Object.keys(this._utils.schemas)){let u=this._utils.schemas[s];if(!(s in t)){let a=Ip(u.default(this._utils));"value"in a&&n.push({[s]:a.value})}}i();for(let s of Object.keys(this._utils.schemas)){if(!(s in t))continue;let u=this._utils.schemas[s],a=t[s],o=u.postprocess(a,this._utils);o!==ou&&(this._applyValidation(o,s,u),t[s]=o)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let r=[],{knownKeys:n,unknownKeys:i}=this._partitionOptionKeys(e);for(let s of n){let u=this._utils.schemas[s],a=u.preprocess(e[s],this._utils);this._applyValidation(a,s,u);let o=({from:h,to:d})=>{r.push(typeof d=="string"?{[d]:h}:{[d.key]:d.value})},l=({value:h,redirectTo:d})=>{let p=Np(u.deprecated(h,this._utils),a,!0);if(p!==!1)if(p===!0)this._hasDeprecationWarned(s)||this._utils.logger.warn(this._deprecatedHandler(s,d,this._utils));else for(let{value:D}of p){let w={key:s,value:D};if(!this._hasDeprecationWarned(w)){let y=typeof d=="string"?{key:d,value:D}:d;this._utils.logger.warn(this._deprecatedHandler(w,y,this._utils))}}};Ko(u.forward(a,this._utils),a).forEach(o);let f=jp(u.redirect(a,this._utils),a);if(f.redirect.forEach(o),"remain"in f){let h=f.remain;t[s]=s in t?u.overlap(t[s],h,this._utils):h,l({value:h})}for(let{from:h,to:d}of f.redirect)l({value:h,redirectTo:d})}for(let s of i){let u=e[s];this._applyUnknownHandler(s,u,t,(a,o)=>{r.push({[a]:o})})}return r}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,ND,this._utils)}_partitionOptionKeys(e){let[t,r]=f2(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){let n=Lp(r.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){let i=this._unknownHandler(e,t,this._utils);if(i)for(let s of Object.keys(i)){if(this._identifyMissing(s,i))continue;let u=i[s];s in this._utils.schemas?n(s,u):r[s]=u}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==ou){if(t.delete)for(let r of t.delete)delete e[r];if(t.override){let{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let i of r){let s=t.override[i];this._applyValidation(s,i,this._utils.schemas[i]),e[i]=s}for(let i of n){let s=t.override[i];this._applyUnknownHandler(i,s,e,(u,a)=>{let o=this._utils.schemas[u];this._applyValidation(a,u,o),e[u]=a})}}}}},UD={};Eu(UD,{ArgExpansionBailout:()=>C2,ConfigError:()=>Dl,UndefinedParserError:()=>Jo});var Dl=class extends Error{name="ConfigError"},Jo=class extends Error{name="UndefinedParserError"},C2=class extends Error{name="ArgExpansionBailout"};function A2(e){let t={...e},r=(s,u)=>{if(!Object.prototype.hasOwnProperty.call(e,s))throw new Error(`Unexpected mock '${s}'.`);t[s]=u};return{mocked:t,implementations:e,mockImplementation:r,mockImplementations:s=>{for(let[u,a]of Object.entries(s))r(u,a)},mockRestore:()=>{Object.assign(t,e)}}}var GD=A2,WD=GD({getPrettierConfigSearchStopDirectory:()=>{}}),w2=WD.mocked,Hp=Lt(bD(),1),b2="file:",S2=e=>e instanceof URL,YD=e=>typeof e=="string"&&e.startsWith(b2),$n=e=>S2(e)||YD(e),Hn=e=>$n(e)?ml.fileURLToPath(e):e,Xo=e=>e&&VD.resolve($n(e)?ml.fileURLToPath(e):e);function R2(e,t){let r=[[],[]];for(let n of e)r[t(n)?0:1].push(n);return r}var T2=R2,B2=Lt(MS(),1),k2=e=>e?.isFile(),P2=e=>e?.isDirectory();async function XD(e,{typeCheck:t,cwd:r,allowSymlinks:n=!0,filter:i}){let s=Xo(r)??x2.cwd(),u=Array.isArray(e)?e:[e];for(let a of u){let o=JD.join(s,a),l=await O2(o,n);if(await t(l)&&(!i||await i({name:a,path:o,stats:l})))return o}}async function O2(e,t=!0){try{return await(t?Cu.stat:Cu.lstat)(e)}catch{}}function I2(e,t){return XD(e,{...t,typeCheck:k2})}function L2(e,t){return XD(e,{...t,typeCheck:P2})}function*M2(e,t){let r=Xo(e)??N2.cwd(),n=Xo(t);if(n){let i=qn.relative(n,r);if(i[0]==="."||i===r)return}for(n=n?r.slice(0,n.length):qn.parse(r).root;r!==n;)yield r,r=qn.dirname(r);yield n}var j2=M2,QD=class{#r;#t;#e=new Map;#n;findInDirectory;constructor(e,{allowSymlinks:t,filter:r,stopDirectory:n,cache:i}={}){this.#r=n,this.#t=i??!0,this.#n=s=>this.findInDirectory(e,{cwd:s,filter:r,allowSymlinks:t})}#i(e,t=!0){let r=this.#e;return(!t||!r.has(e))&&r.set(e,this.#n(e)),r.get(e)}async search(e,t){for(let r of j2(e,this.#r)){let n=await this.#i(r,t?.cache??this.#t);if(n)return n}}clearCache(){this.#e.clear()}},$2=class extends QD{findInDirectory=I2},H2=class extends QD{findInDirectory=L2},q2=[".git",".hg"],lu;async function U2(e,t){lu??(lu=new H2(q2,{allowSymlinks:!1}));let r=await lu.search(e,{cache:t.shouldCache});return r?KD.dirname(r):void 0}function G2(){lu?.clearCache()}var Io=e=>Number.isSafeInteger(e)&&e>0;function W2(e){if(!e)return;let t={},{indent_style:r,indent_size:n,tab_width:i,max_line_length:s,quote_type:u,end_of_line:a}=e;if(r==="space"?t.useTabs=!1:(r==="tab"||n==="tab")&&(t.useTabs=!0),t.useTabs===!1&&Io(n)?t.tabWidth=n:Io(i)&&(t.tabWidth=i),s==="off"?t.printWidth=Number.POSITIVE_INFINITY:Io(s)&&(t.printWidth=s),u==="single"?t.singleQuote=!0:u==="double"&&(t.singleQuote=!1),(a==="lf"||a==="crlf"||a==="cr")&&(t.endOfLine=a),Object.keys(t).length!==0)return t}var V2=W2,cu=new Map;function Y2(){G2(),cu.clear()}async function z2(e,{shouldCache:t}){let r=zD.dirname(e),n=await U2(r,{shouldCache:t}),i=await B2.default.parse(e,{root:n});return V2(i)}function K2(e,{shouldCache:t}){return e=zD.resolve(e),(!t||!cu.has(e))&&cu.set(e,z2(e,{shouldCache:t})),cu.get(e)}var X2=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Q2=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,Z2=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Lo={Space_Separator:X2,ID_Start:Q2,ID_Continue:Z2},Je={isSpaceSeparator(e){return typeof e=="string"&&Lo.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Lo.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||Lo.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Qo,lt,ir,gu,Or,It,Xe,_l,Ti,eR=function(t,r){Qo=String(t),lt="start",ir=[],gu=0,Or=1,It=0,Xe=void 0,_l=void 0,Ti=void 0;do Xe=tR(),iR[lt]();while(Xe.type!=="eof");return typeof r=="function"?Zo({"":Ti},"",r):Ti};function Zo(e,t,r){let n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){let s=String(i),u=Zo(n,s,r);u===void 0?delete n[s]:Object.defineProperty(n,s,{value:u,writable:!0,enumerable:!0,configurable:!0})}else for(let i in n){let s=Zo(n,i,r);s===void 0?delete n[i]:Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,n)}var ce,ae,bi,rr,De;function tR(){for(ce="default",ae="",bi=!1,rr=1;;){De=sr();let e=ZD[ce]();if(e)return e}}function sr(){if(Qo[gu])return String.fromCodePoint(Qo.codePointAt(gu))}function q(){let e=sr();return e===`
|
|
630
630
|
`?(Or++,It=0):e?It+=e.length:It++,e&&(gu+=e.length),e}var ZD={default(){switch(De){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
|
631
631
|
`:case"\r":case"\u2028":case"\u2029":q();return;case"/":q(),ce="comment";return;case void 0:return q(),Be("eof")}if(Je.isSpaceSeparator(De)){q();return}return ZD[lt]()},comment(){switch(De){case"*":q(),ce="multiLineComment";return;case"/":q(),ce="singleLineComment";return}throw xe(q())},multiLineComment(){switch(De){case"*":q(),ce="multiLineCommentAsterisk";return;case void 0:throw xe(q())}q()},multiLineCommentAsterisk(){switch(De){case"*":q();return;case"/":q(),ce="default";return;case void 0:throw xe(q())}q(),ce="multiLineComment"},singleLineComment(){switch(De){case`
|
|
632
632
|
`:case"\r":case"\u2028":case"\u2029":q(),ce="default";return;case void 0:return q(),Be("eof")}q()},value(){switch(De){case"{":case"[":return Be("punctuator",q());case"n":return q(),sn("ull"),Be("null",null);case"t":return q(),sn("rue"),Be("boolean",!0);case"f":return q(),sn("alse"),Be("boolean",!1);case"-":case"+":q()==="-"&&(rr=-1),ce="sign";return;case".":ae=q(),ce="decimalPointLeading";return;case"0":ae=q(),ce="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":ae=q(),ce="decimalInteger";return;case"I":return q(),sn("nfinity"),Be("numeric",1/0);case"N":return q(),sn("aN"),Be("numeric",NaN);case'"':case"'":bi=q()==='"',ae="",ce="string";return}throw xe(q())},identifierNameStartEscape(){if(De!=="u")throw xe(q());q();let e=el();switch(e){case"$":case"_":break;default:if(!Je.isIdStartChar(e))throw qp();break}ae+=e,ce="identifierName"},identifierName(){switch(De){case"$":case"_":case"\u200C":case"\u200D":ae+=q();return;case"\\":q(),ce="identifierNameEscape";return}if(Je.isIdContinueChar(De)){ae+=q();return}return Be("identifier",ae)},identifierNameEscape(){if(De!=="u")throw xe(q());q();let e=el();switch(e){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!Je.isIdContinueChar(e))throw qp();break}ae+=e,ce="identifierName"},sign(){switch(De){case".":ae=q(),ce="decimalPointLeading";return;case"0":ae=q(),ce="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":ae=q(),ce="decimalInteger";return;case"I":return q(),sn("nfinity"),Be("numeric",rr*(1/0));case"N":return q(),sn("aN"),Be("numeric",NaN)}throw xe(q())},zero(){switch(De){case".":ae+=q(),ce="decimalPoint";return;case"e":case"E":ae+=q(),ce="decimalExponent";return;case"x":case"X":ae+=q(),ce="hexadecimal";return}return Be("numeric",rr*0)},decimalInteger(){switch(De){case".":ae+=q(),ce="decimalPoint";return;case"e":case"E":ae+=q(),ce="decimalExponent";return}if(Je.isDigit(De)){ae+=q();return}return Be("numeric",rr*Number(ae))},decimalPointLeading(){if(Je.isDigit(De)){ae+=q(),ce="decimalFraction";return}throw xe(q())},decimalPoint(){switch(De){case"e":case"E":ae+=q(),ce="decimalExponent";return}if(Je.isDigit(De)){ae+=q(),ce="decimalFraction";return}return Be("numeric",rr*Number(ae))},decimalFraction(){switch(De){case"e":case"E":ae+=q(),ce="decimalExponent";return}if(Je.isDigit(De)){ae+=q();return}return Be("numeric",rr*Number(ae))},decimalExponent(){switch(De){case"+":case"-":ae+=q(),ce="decimalExponentSign";return}if(Je.isDigit(De)){ae+=q(),ce="decimalExponentInteger";return}throw xe(q())},decimalExponentSign(){if(Je.isDigit(De)){ae+=q(),ce="decimalExponentInteger";return}throw xe(q())},decimalExponentInteger(){if(Je.isDigit(De)){ae+=q();return}return Be("numeric",rr*Number(ae))},hexadecimal(){if(Je.isHexDigit(De)){ae+=q(),ce="hexadecimalInteger";return}throw xe(q())},hexadecimalInteger(){if(Je.isHexDigit(De)){ae+=q();return}return Be("numeric",rr*Number(ae))},string(){switch(De){case"\\":q(),ae+=rR();return;case'"':if(bi)return q(),Be("string",ae);ae+=q();return;case"'":if(!bi)return q(),Be("string",ae);ae+=q();return;case`
|
|
633
633
|
`:case"\r":throw xe(q());case"\u2028":case"\u2029":sR(De);break;case void 0:throw xe(q())}ae+=q()},start(){switch(De){case"{":case"[":return Be("punctuator",q())}ce="value"},beforePropertyName(){switch(De){case"$":case"_":ae=q(),ce="identifierName";return;case"\\":q(),ce="identifierNameStartEscape";return;case"}":return Be("punctuator",q());case'"':case"'":bi=q()==='"',ce="string";return}if(Je.isIdStartChar(De)){ae+=q(),ce="identifierName";return}throw xe(q())},afterPropertyName(){if(De===":")return Be("punctuator",q());throw xe(q())},beforePropertyValue(){ce="value"},afterPropertyValue(){switch(De){case",":case"}":return Be("punctuator",q())}throw xe(q())},beforeArrayValue(){if(De==="]")return Be("punctuator",q());ce="value"},afterArrayValue(){switch(De){case",":case"]":return Be("punctuator",q())}throw xe(q())},end(){throw xe(q())}};function Be(e,t){return{type:e,value:t,line:Or,column:It}}function sn(e){for(let t of e){if(sr()!==t)throw xe(q());q()}}function rR(){switch(sr()){case"b":return q(),"\b";case"f":return q(),"\f";case"n":return q(),`
|
|
634
634
|
`;case"r":return q(),"\r";case"t":return q()," ";case"v":return q(),"\v";case"0":if(q(),Je.isDigit(sr()))throw xe(q());return"\0";case"x":return q(),nR();case"u":return q(),el();case`
|
|
635
635
|
`:case"\u2028":case"\u2029":return q(),"";case"\r":return q(),sr()===`
|
|
636
|
-
`&&q(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw xe(q());case void 0:throw xe(q())}return q()}function nR(){let e="",t=sr();if(!Je.isHexDigit(t)||(e+=q(),t=sr(),!Je.isHexDigit(t)))throw xe(q());return e+=q(),String.fromCodePoint(parseInt(e,16))}function el(){let e="",t=4;for(;t-- >0;){let r=sr();if(!Je.isHexDigit(r))throw xe(q());e+=q()}return String.fromCodePoint(parseInt(e,16))}var iR={start(){if(Xe.type==="eof")throw un();No()},beforePropertyName(){switch(Xe.type){case"identifier":case"string":_l=Xe.value,lt="afterPropertyName";return;case"punctuator":iu();return;case"eof":throw un()}},afterPropertyName(){if(Xe.type==="eof")throw un();lt="beforePropertyValue"},beforePropertyValue(){if(Xe.type==="eof")throw un();No()},beforeArrayValue(){if(Xe.type==="eof")throw un();if(Xe.type==="punctuator"&&Xe.value==="]"){iu();return}No()},afterPropertyValue(){if(Xe.type==="eof")throw un();switch(Xe.value){case",":lt="beforePropertyName";return;case"}":iu()}},afterArrayValue(){if(Xe.type==="eof")throw un();switch(Xe.value){case",":lt="beforeArrayValue";return;case"]":iu()}},end(){}};function No(){let e;switch(Xe.type){case"punctuator":switch(Xe.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=Xe.value;break}if(Ti===void 0)Ti=e;else{let t=ir[ir.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,_l,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")ir.push(e),Array.isArray(e)?lt="beforeArrayValue":lt="beforePropertyName";else{let t=ir[ir.length-1];t==null?lt="end":Array.isArray(t)?lt="afterArrayValue":lt="afterPropertyValue"}}function iu(){ir.pop();let e=ir[ir.length-1];e==null?lt="end":Array.isArray(e)?lt="afterArrayValue":lt="afterPropertyValue"}function xe(e){return _u(e===void 0?`JSON5: invalid end of input at ${Or}:${It}`:`JSON5: invalid character '${em(e)}' at ${Or}:${It}`)}function un(){return _u(`JSON5: invalid end of input at ${Or}:${It}`)}function qp(){return It-=5,_u(`JSON5: invalid identifier character at ${Or}:${It}`)}function sR(e){console.warn(`JSON5: '${em(e)}' in strings is not valid ECMAScript; consider escaping`)}function em(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let r=e.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return e}function _u(e){let t=new SyntaxError(e);return t.lineNumber=Or,t.columnNumber=It,t}var uR={parse:eR},yl=Lt(Pi(),1),aR=Lt(jS(),1),El="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",tm="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",U4=new RegExp("["+El+"]"),G4=new RegExp("["+El+tm+"]");El=tm=null;var vl={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"]},oR=new Set(vl.keyword),lR=new Set(vl.strict),W4=new Set(vl.strictBind);function cR(e,t){return t&&e==="await"||e==="enum"}function fR(e,t){return cR(e,t)||lR.has(e)}function hR(e){return oR.has(e)}function dR(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:yl.default.isColorSupported}var su=(e,t)=>r=>e(t(r));function rm(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:su(su(e.white,e.bgRed),e.bold),gutter:e.gray,marker:su(e.red,e.bold),message:su(e.red,e.bold),reset:e.reset}}var pR=rm((0,yl.createColors)(!0)),DR=rm((0,yl.createColors)(!1));function nm(e){return e?pR:DR}var mR=new Set(["as","async","from","get","of","set"]),gR=/\r\n|[\n\r\u2028\u2029]/,_R=/^[()[\]{}]$/,im;{let e=function(t){if(t.type==="IdentifierName"){if(hR(t.value)||fR(t.value,!0)||mR.has(t.value))return"keyword";if(t.value[0]!==t.value[0].toLowerCase())return"capitalized"}if(t.type==="Punctuator"&&_R.test(t.value))return"uncolored";if(t.type==="Invalid"&&t.value==="@")return"punctuator";switch(t.type){case"NumericLiteral":return"number";case"StringLiteral":case"JSXString":case"NoSubstitutionTemplate":return"string";case"RegularExpressionLiteral":return"regex";case"Punctuator":case"JSXPunctuator":return"punctuator";case"MultiLineComment":case"SingleLineComment":return"comment";case"Invalid":case"JSXInvalid":return"invalid";case"JSXIdentifier":return"jsxIdentifier";default:return"uncolored"}};im=function*(t){for(let r of(0,aR.default)(t,{jsx:!0}))switch(r.type){case"TemplateHead":yield{type:"string",value:r.value.slice(0,-2)},yield{type:"punctuator",value:"${"};break;case"TemplateMiddle":yield{type:"punctuator",value:"}"},yield{type:"string",value:r.value.slice(1,-2)},yield{type:"punctuator",value:"${"};break;case"TemplateTail":yield{type:"punctuator",value:"}"},yield{type:"string",value:r.value.slice(1)};break;default:yield{type:e(r),value:r.value}}}}function yR(e){if(e==="")return"";let t=nm(!0),r="";for(let{type:n,value:i}of im(e))n in t?r+=i.split(gR).map(s=>t[n](s)).join(`
|
|
636
|
+
`&&q(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw xe(q());case void 0:throw xe(q())}return q()}function nR(){let e="",t=sr();if(!Je.isHexDigit(t)||(e+=q(),t=sr(),!Je.isHexDigit(t)))throw xe(q());return e+=q(),String.fromCodePoint(parseInt(e,16))}function el(){let e="",t=4;for(;t-- >0;){let r=sr();if(!Je.isHexDigit(r))throw xe(q());e+=q()}return String.fromCodePoint(parseInt(e,16))}var iR={start(){if(Xe.type==="eof")throw un();No()},beforePropertyName(){switch(Xe.type){case"identifier":case"string":_l=Xe.value,lt="afterPropertyName";return;case"punctuator":iu();return;case"eof":throw un()}},afterPropertyName(){if(Xe.type==="eof")throw un();lt="beforePropertyValue"},beforePropertyValue(){if(Xe.type==="eof")throw un();No()},beforeArrayValue(){if(Xe.type==="eof")throw un();if(Xe.type==="punctuator"&&Xe.value==="]"){iu();return}No()},afterPropertyValue(){if(Xe.type==="eof")throw un();switch(Xe.value){case",":lt="beforePropertyName";return;case"}":iu()}},afterArrayValue(){if(Xe.type==="eof")throw un();switch(Xe.value){case",":lt="beforeArrayValue";return;case"]":iu()}},end(){}};function No(){let e;switch(Xe.type){case"punctuator":switch(Xe.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=Xe.value;break}if(Ti===void 0)Ti=e;else{let t=ir[ir.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,_l,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")ir.push(e),Array.isArray(e)?lt="beforeArrayValue":lt="beforePropertyName";else{let t=ir[ir.length-1];t==null?lt="end":Array.isArray(t)?lt="afterArrayValue":lt="afterPropertyValue"}}function iu(){ir.pop();let e=ir[ir.length-1];e==null?lt="end":Array.isArray(e)?lt="afterArrayValue":lt="afterPropertyValue"}function xe(e){return _u(e===void 0?`JSON5: invalid end of input at ${Or}:${It}`:`JSON5: invalid character '${em(e)}' at ${Or}:${It}`)}function un(){return _u(`JSON5: invalid end of input at ${Or}:${It}`)}function qp(){return It-=5,_u(`JSON5: invalid identifier character at ${Or}:${It}`)}function sR(e){console.warn(`JSON5: '${em(e)}' in strings is not valid ECMAScript; consider escaping`)}function em(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let r=e.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return e}function _u(e){let t=new SyntaxError(e);return t.lineNumber=Or,t.columnNumber=It,t}var uR={parse:eR},yl=Lt(Pi(),1),aR=Lt(jS(),1),El="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",tm="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",G4=new RegExp("["+El+"]"),W4=new RegExp("["+El+tm+"]");El=tm=null;var vl={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"]},oR=new Set(vl.keyword),lR=new Set(vl.strict),V4=new Set(vl.strictBind);function cR(e,t){return t&&e==="await"||e==="enum"}function fR(e,t){return cR(e,t)||lR.has(e)}function hR(e){return oR.has(e)}function dR(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:yl.default.isColorSupported}var su=(e,t)=>r=>e(t(r));function rm(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:su(su(e.white,e.bgRed),e.bold),gutter:e.gray,marker:su(e.red,e.bold),message:su(e.red,e.bold),reset:e.reset}}var pR=rm((0,yl.createColors)(!0)),DR=rm((0,yl.createColors)(!1));function nm(e){return e?pR:DR}var mR=new Set(["as","async","from","get","of","set"]),gR=/\r\n|[\n\r\u2028\u2029]/,_R=/^[()[\]{}]$/,im;{let e=function(t){if(t.type==="IdentifierName"){if(hR(t.value)||fR(t.value,!0)||mR.has(t.value))return"keyword";if(t.value[0]!==t.value[0].toLowerCase())return"capitalized"}if(t.type==="Punctuator"&&_R.test(t.value))return"uncolored";if(t.type==="Invalid"&&t.value==="@")return"punctuator";switch(t.type){case"NumericLiteral":return"number";case"StringLiteral":case"JSXString":case"NoSubstitutionTemplate":return"string";case"RegularExpressionLiteral":return"regex";case"Punctuator":case"JSXPunctuator":return"punctuator";case"MultiLineComment":case"SingleLineComment":return"comment";case"Invalid":case"JSXInvalid":return"invalid";case"JSXIdentifier":return"jsxIdentifier";default:return"uncolored"}};im=function*(t){for(let r of(0,aR.default)(t,{jsx:!0}))switch(r.type){case"TemplateHead":yield{type:"string",value:r.value.slice(0,-2)},yield{type:"punctuator",value:"${"};break;case"TemplateMiddle":yield{type:"punctuator",value:"}"},yield{type:"string",value:r.value.slice(1,-2)},yield{type:"punctuator",value:"${"};break;case"TemplateTail":yield{type:"punctuator",value:"}"},yield{type:"string",value:r.value.slice(1)};break;default:yield{type:e(r),value:r.value}}}}function yR(e){if(e==="")return"";let t=nm(!0),r="";for(let{type:n,value:i}of im(e))n in t?r+=i.split(gR).map(s=>t[n](s)).join(`
|
|
637
637
|
`):r+=i;return r}var Up=/\r\n|[\n\r\u2028\u2029]/;function ER(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:s=2,linesBelow:u=3}=r||{},a=n.line,o=n.column,l=i.line,c=i.column,f=Math.max(a-(s+1),0),h=Math.min(t.length,l+u);a===-1&&(f=0),l===-1&&(h=t.length);let d=l-a,p={};if(d)for(let D=0;D<=d;D++){let w=D+a;if(!o)p[w]=!0;else if(D===0){let y=t[w-1].length;p[w]=[o,y-o+1]}else if(D===d)p[w]=[0,c];else{let y=t[w-D].length;p[w]=[0,y]}}else o===c?o?p[a]=[o,0]:p[a]=!0:p[a]=[o,c-o];return{start:f,end:h,markerLines:p}}function sm(e,t,r={}){let n=r.forceColor||dR()&&r.highlightCode,i=nm(n),s=e.split(Up),{start:u,end:a,markerLines:o}=ER(t,s,r),l=t.start&&typeof t.start.column=="number",c=String(a).length,h=(n?yR(e):e).split(Up,a).slice(u,a).map((d,p)=>{let D=u+1+p,y=` ${` ${D}`.slice(-c)} |`,m=o[D],g=!o[D+1];if(m){let C="";if(Array.isArray(m)){let E=d.slice(0,Math.max(m[0]-1,0)).replace(/[^\t]/g," "),T=m[1]||1;C=[`
|
|
638
638
|
`,i.gutter(y.replace(/\d/g," "))," ",E,i.marker("^").repeat(T)].join(""),g&&r.message&&(C+=" "+i.message(r.message))}return[i.marker(">"),i.gutter(y),d.length>0?` ${d}`:"",C].join("")}else return` ${i.gutter(y)}${d.length>0?` ${d}`:""}`}).join(`
|
|
639
639
|
`);return r.message&&!l&&(h=`${" ".repeat(c+1)}${r.message}
|
|
@@ -663,48 +663,48 @@ ${i}`,t),this.line=r,this.column=n,this.codeblock=i}};function xR(e,t){let r=0;f
|
|
|
663
663
|
`&&e[u]!=="\r")throw new pe("unexpected character encountered",{toml:e,ptr:u});u+=+(e[u]===",")}return[o,u]}u=Gp(e,t,",",r);let a=jR(e,t,u-+(e[u-1]===","),r==="]");if(!a[0])throw new pe("incomplete key-value declaration: no value specified",{toml:e,ptr:t});return r&&a[1]>-1&&(u=ur(e,t+a[1]),u+=+(e[u]===",")),[MR(a[0],e,t,i),u]}var $R=/^[a-zA-Z0-9-_]+[ \t]*$/;function tl(e,t,r="="){let n=t-1,i=[],s=e.indexOf(r,t);if(s<0)throw new pe("incomplete key-value: cannot find end of key",{toml:e,ptr:t});do{let u=e[t=++n];if(u!==" "&&u!==" ")if(u==='"'||u==="'"){if(u===e[t+1]&&u===e[t+2])throw new pe("multiline strings are not allowed in keys",{toml:e,ptr:t});let a=am(e,t);if(a<0)throw new pe("unfinished string encountered",{toml:e,ptr:t});n=e.indexOf(".",a);let o=e.slice(a,n<0||n>s?s:n),l=yu(o);if(l>-1)throw new pe("newlines are not allowed in keys",{toml:e,ptr:t+n+l});if(o.trimStart())throw new pe("found extra tokens after the string part",{toml:e,ptr:a});if(s<a&&(s=e.indexOf(r,a),s<0))throw new pe("incomplete key-value: cannot find end of key",{toml:e,ptr:t});i.push(om(e,t,a))}else{n=e.indexOf(".",t);let a=e.slice(t,n<0||n>s?s:n);if(!$R.test(a))throw new pe("only letter, numbers, dashes and underscores are allowed in keys",{toml:e,ptr:t});i.push(a.trimEnd())}}while(n+1&&n<s);return[i,ur(e,s+1,!0,!0)]}function HR(e,t,r,n){let i={},s=new Set,u,a=0;for(t++;(u=e[t++])!=="}"&&u;){let o={toml:e,ptr:t-1};if(u===`
|
|
664
664
|
`)throw new pe("newlines are not allowed in inline tables",o);if(u==="#")throw new pe("inline tables cannot contain comments",o);if(u===",")throw new pe("expected key-value, found comma",o);if(u!==" "&&u!==" "){let l,c=i,f=!1,[h,d]=tl(e,t-1);for(let w=0;w<h.length;w++){if(w&&(c=f?c[l]:c[l]={}),l=h[w],(f=Object.hasOwn(c,l))&&(typeof c[l]!="object"||s.has(c[l])))throw new pe("trying to redefine an already defined value",{toml:e,ptr:t});!f&&l==="__proto__"&&Object.defineProperty(c,l,{enumerable:!0,configurable:!0,writable:!0})}if(f)throw new pe("trying to redefine an already defined value",{toml:e,ptr:t});let[p,D]=Cl(e,d,"}",r-1,n);s.add(p),c[l]=p,t=D,a=e[t-1]===","?t-1:0}}if(a)throw new pe("trailing commas are not allowed in inline tables",{toml:e,ptr:a});if(!u)throw new pe("unfinished table encountered",{toml:e,ptr:t});return[i,t]}function qR(e,t,r,n){let i=[],s;for(t++;(s=e[t++])!=="]"&&s;){if(s===",")throw new pe("expected value, found comma",{toml:e,ptr:t-1});if(s==="#")t=Fl(e,t);else if(s!==" "&&s!==" "&&s!==`
|
|
665
665
|
`&&s!=="\r"){let u=Cl(e,t-1,"]",r-1,n);i.push(u[0]),t=u[1]}}if(!s)throw new pe("unfinished array encountered",{toml:e,ptr:t});return[i,t]}function Vp(e,t,r,n){let i=t,s=r,u,a=!1,o;for(let l=0;l<e.length;l++){if(l){if(i=a?i[u]:i[u]={},s=(o=s[u]).c,n===0&&(o.t===1||o.t===2))return null;if(o.t===2){let c=i.length-1;i=i[c],s=s[c].c}}if(u=e[l],(a=Object.hasOwn(i,u))&&s[u]?.t===0&&s[u]?.d)return null;a||(u==="__proto__"&&(Object.defineProperty(i,u,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(s,u,{enumerable:!0,configurable:!0,writable:!0})),s[u]={t:l<e.length-1&&n===2?3:n,d:!1,i:0,c:{}})}if(o=s[u],o.t!==n&&!(n===1&&o.t===3)||(n===2&&(o.d||(o.d=!0,i[u]=[]),i[u].push(i={}),o.c[o.i++]=o={t:1,d:!1,i:0,c:{}}),o.d))return null;if(o.d=!0,n===1)i=a?i[u]:i[u]={};else if(n===0&&a)return null;return[u,i,o.c]}function UR(e,{maxDepth:t=1e3,integersAsBigInt:r}={}){let n={},i={},s=n,u=i;for(let a=ur(e,0);a<e.length;){if(e[a]==="["){let o=e[++a]==="[",l=tl(e,a+=+o,"]");if(o){if(e[l[1]-1]!=="]")throw new pe("expected end of table declaration",{toml:e,ptr:l[1]-1});l[1]++}let c=Vp(l[0],n,i,o?2:1);if(!c)throw new pe("trying to redefine an already defined table or value",{toml:e,ptr:a});u=c[2],s=c[1],a=l[1]}else{let o=tl(e,a),l=Vp(o[0],s,u,0);if(!l)throw new pe("trying to redefine an already defined table or value",{toml:e,ptr:a});let c=Cl(e,o[1],void 0,t,r);l[1][l[0]]=c[0],a=c[1]}if(a=ur(e,a,!0),e[a]&&e[a]!==`
|
|
666
|
-
`&&e[a]!=="\r")throw new pe("each key-value declaration must be followed by an end-of-line",{toml:e,ptr:a});a=ur(e,a)}return n}async function WR(e){
|
|
667
|
-
${r.message}`,r}}async function an(e){return(await import(J2(e).href)).default}async function VR(e){try{return await Al(e)}catch(t){try{return await an(e)}catch{}throw t}}var lm=process.versions.bun?async function(t){let{prettier:r}=await VR(t);return r}:async function(t){let{prettier:r}=await Al(t);return r};async function cm(e){let{prettier:t}=await fu(e);return t}var Mo;async function fu(e){let t=await Oi(e);Mo||({__parsePrettierYamlConfig:Mo}=await import("./yaml-
|
|
668
|
-
${r.message}`,r}}async function
|
|
669
|
-
${r.message}`,r}}async function
|
|
670
|
-
${r.message}`,r}}var KR={".toml":
|
|
666
|
+
`&&e[a]!=="\r")throw new pe("each key-value declaration must be followed by an end-of-line",{toml:e,ptr:a});a=ur(e,a)}return n}async function WR(e){YD(e)&&(e=new URL(e));try{return await GR.readFile(e,"utf8")}catch(t){if(t.code==="ENOENT")return;throw new Error(`Unable to read '${e}': ${t.message}`)}}var Oi=WR;async function Al(e){let t=await Oi(e);try{return RR(t)}catch(r){throw r.message=`JSON Error in ${e}:
|
|
667
|
+
${r.message}`,r}}async function an(e){return(await import(J2(e).href)).default}async function VR(e){try{return await Al(e)}catch(t){try{return await an(e)}catch{}throw t}}var lm=process.versions.bun?async function(t){let{prettier:r}=await VR(t);return r}:async function(t){let{prettier:r}=await Al(t);return r};async function cm(e){let{prettier:t}=await fu(e);return t}var Mo;async function fu(e){let t=await Oi(e);Mo||({__parsePrettierYamlConfig:Mo}=await import("./yaml-OHXFJGCG.js"));try{return Mo(t)}catch(r){throw r.message=`YAML Error in ${e}:
|
|
668
|
+
${r.message}`,r}}async function YR(e){let t=await Oi(e);try{return UR(t)}catch(r){throw r.message=`TOML Error in ${e}:
|
|
669
|
+
${r.message}`,r}}async function zR(e){let t=await Oi(e);try{return uR.parse(t)}catch(r){throw r.message=`JSON5 Error in ${e}:
|
|
670
|
+
${r.message}`,r}}var KR={".toml":YR,".json5":zR,".json":Al,".js":an,".mjs":an,".cjs":an,".ts":an,".mts":an,".cts":an,".yaml":fu,".yml":fu,"":fu},JR=KR,XR=["package.json","package.yaml",".prettierrc",".prettierrc.json",".prettierrc.yml",".prettierrc.yaml",".prettierrc.json5",".prettierrc.js","prettier.config.js",".prettierrc.ts","prettier.config.ts",".prettierrc.mjs","prettier.config.mjs",".prettierrc.mts","prettier.config.mts",".prettierrc.cjs","prettier.config.cjs",".prettierrc.cts","prettier.config.cts",".prettierrc.toml"];async function QR({name:e,path:t}){if(e==="package.json")try{return!!await lm(t)}catch{return!1}if(e==="package.yaml")try{return!!await cm(t)}catch{return!1}return!0}function ZR(e){return new $2(XR,{filter:QR,stopDirectory:e})}var eT=ZR,lT={}.hasOwnProperty,cT=/^([A-Z][a-z\d]*)+$/,fT=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),Qe={};function jo(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}var pm=new Map,hT="__node_internal_",Yp;Qe.ERR_INVALID_ARG_TYPE=Tt("ERR_INVALID_ARG_TYPE",(e,t,r)=>{fn.ok(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";if(e.endsWith(" argument"))n+=`${e} `;else{let a=e.includes(".")?"property":"argument";n+=`"${e}" ${a} `}n+="must be ";let i=[],s=[],u=[];for(let a of t)fn.ok(typeof a=="string","All expected entries have to be of type string"),fT.has(a)?i.push(a.toLowerCase()):cT.exec(a)===null?(fn.ok(a!=="object",'The value "object" should be written as "Object"'),u.push(a)):s.push(a);if(s.length>0){let a=i.indexOf("object");a!==-1&&(i.slice(a,1),s.push("Object"))}return i.length>0&&(n+=`${i.length>1?"one of type":"of type"} ${jo(i,"or")}`,(s.length>0||u.length>0)&&(n+=" or ")),s.length>0&&(n+=`an instance of ${jo(s,"or")}`,u.length>0&&(n+=" or ")),u.length>0&&(u.length>1?n+=`one of ${jo(u,"or")}`:(u[0].toLowerCase()!==u[0]&&(n+="an "),n+=`${u[0]}`)),n+=`. Received ${gT(r)}`,n},TypeError);Qe.ERR_INVALID_MODULE_SPECIFIER=Tt("ERR_INVALID_MODULE_SPECIFIER",(e,t,r=void 0)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`,TypeError);Qe.ERR_INVALID_PACKAGE_CONFIG=Tt("ERR_INVALID_PACKAGE_CONFIG",(e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`,Error);Qe.ERR_INVALID_PACKAGE_TARGET=Tt("ERR_INVALID_PACKAGE_TARGET",(e,t,r,n=!1,i=void 0)=>{let s=typeof r=="string"&&!n&&r.length>0&&!r.startsWith("./");return t==="."?(fn.ok(n===!1),`Invalid "exports" main target ${JSON.stringify(r)} defined in the package config ${e}package.json${i?` imported from ${i}`:""}${s?'; targets must start with "./"':""}`):`Invalid "${n?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${i?` imported from ${i}`:""}${s?'; targets must start with "./"':""}`},Error);Qe.ERR_MODULE_NOT_FOUND=Tt("ERR_MODULE_NOT_FOUND",(e,t,r=!1)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`,Error);Qe.ERR_NETWORK_IMPORT_DISALLOWED=Tt("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);Qe.ERR_PACKAGE_IMPORT_NOT_DEFINED=Tt("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,r)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`,TypeError);Qe.ERR_PACKAGE_PATH_NOT_EXPORTED=Tt("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,r=void 0)=>t==="."?`No "exports" main defined in ${e}package.json${r?` imported from ${r}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${r?` imported from ${r}`:""}`,Error);Qe.ERR_UNSUPPORTED_DIR_IMPORT=Tt("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);Qe.ERR_UNSUPPORTED_RESOLVE_REQUEST=Tt("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);Qe.ERR_UNKNOWN_FILE_EXTENSION=Tt("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError);Qe.ERR_INVALID_ARG_VALUE=Tt("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=nl(t);return n.length>128&&(n=`${n.slice(0,128)}...`),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`},TypeError);function Tt(e,t,r){return pm.set(e,t),dT(r,e)}function dT(e,t){return r;function r(...n){let i=Error.stackTraceLimit;il()&&(Error.stackTraceLimit=0);let s=new e;il()&&(Error.stackTraceLimit=i);let u=mT(t,n,s);return Object.defineProperties(s,{message:{value:u,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),DT(s),s.code=t,s}}function il(){try{if(aT.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return e===void 0?Object.isExtensible(Error):lT.call(e,"writable")&&e.writable!==void 0?e.writable:e.set!==void 0}function pT(e){let t=hT+e.name;return Object.defineProperty(e,"name",{value:t}),e}var DT=pT(function(e){let t=il();return t&&(Yp=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=Yp),e});function mT(e,t,r){let n=pm.get(e);if(fn.ok(n!==void 0,"expected `message` to be found"),typeof n=="function")return fn.ok(n.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${n.length}).`),Reflect.apply(n,r,t);let i=/%[dfijoOs]/g,s=0;for(;i.exec(n)!==null;)s++;return fn.ok(s===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${s}).`),t.length===0?n:(t.unshift(n),Reflect.apply(oT,null,t))}function gT(e){if(e==null)return String(e);if(typeof e=="function"&&e.name)return`function ${e.name}`;if(typeof e=="object")return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${nl(e,{depth:-1})}`;let t=nl(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}var wi={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:_T}=Qe,zp=new Map;function Dm(e,{base:t,specifier:r}){let n=zp.get(e);if(n)return n;let i;try{i=sT.readFileSync(uT.toNamespacedPath(e),"utf8")}catch(u){let a=u;if(a.code!=="ENOENT")throw a}let s={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(i!==void 0){let u;try{u=JSON.parse(i)}catch(a){let o=a,l=new _T(e,(t?`"${r}" from `:"")+rl(t||r),o.message);throw l.cause=o,l}s.exists=!0,wi.call(u,"name")&&typeof u.name=="string"&&(s.name=u.name),wi.call(u,"main")&&typeof u.main=="string"&&(s.main=u.main),wi.call(u,"exports")&&(s.exports=u.exports),wi.call(u,"imports")&&(s.imports=u.imports),wi.call(u,"type")&&(u.type==="commonjs"||u.type==="module")&&(s.type=u.type)}return zp.set(e,s),s}function Sl(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("node_modules/package.json");){let i=Dm(rl(t),{specifier:e});if(i.exists)return i;let s=t;if(t=new URL("../package.json",t),t.pathname===s.pathname)break}return{pjsonPath:rl(t),exists:!1,type:"none"}}function Kp(e){return Sl(e).type}var{ERR_UNKNOWN_FILE_EXTENSION:yT}=Qe,ET={}.hasOwnProperty,vT={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function FT(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?"module":e==="application/json"?"json":null}var Jp={__proto__:null,"data:":CT,"file:":wT,"http:":Xp,"https:":Xp,"node:"(){return"builtin"}};function CT(e){let{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return FT(t)}function AT(e){let t=e.pathname,r=t.length;for(;r--;){let n=t.codePointAt(r);if(n===47)return"";if(n===46)return t.codePointAt(r-1)===47?"":t.slice(r)}return""}function wT(e,t,r){let n=AT(e);if(n===".js"){let u=Kp(e);return u!=="none"?u:"commonjs"}if(n===""){let u=Kp(e);return u==="none"||u==="commonjs"?"commonjs":"module"}let i=vT[n];if(i)return i;if(r)return;let s=iT(e);throw new yT(n,s)}function Xp(){}function mm(e,t){let r=e.protocol;return ET.call(Jp,r)&&Jp[r](e,t,!0)||null}var{ERR_INVALID_ARG_VALUE:bT}=Qe,gm=Object.freeze(["node","import"]),ST=new Set(gm);function RT(){return gm}function TT(){return ST}function _m(e){if(e!==void 0&&e!==RT()){if(!Array.isArray(e))throw new bT("conditions",e,"expected an array");return new Set(e)}return TT()}var uu=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:$o,ERR_INVALID_MODULE_SPECIFIER:Au,ERR_INVALID_PACKAGE_CONFIG:ym,ERR_INVALID_PACKAGE_TARGET:BT,ERR_MODULE_NOT_FOUND:Rl,ERR_PACKAGE_IMPORT_NOT_DEFINED:xT,ERR_PACKAGE_PATH_NOT_EXPORTED:kT,ERR_UNSUPPORTED_DIR_IMPORT:PT,ERR_UNSUPPORTED_RESOLVE_REQUEST:Qp}=Qe,Em={}.hasOwnProperty,Zp=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,eD=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,OT=/^\.|%|\\/,au=/\*/g,IT=/%2f|%5c/i,tD=new Set,LT=/[/\\]{2}/;function rD(e,t,r,n,i,s,u){if(cn.noDeprecation)return;let a=we(n),o=LT.exec(u?e:t)!==null;cn.emitWarning(`Use of deprecated ${o?"double slash":"leading or trailing slash matching"} resolving "${e}" for module request "${t}" ${t===r?"":`matched to "${r}" `}in the "${i?"imports":"exports"}" field module resolution of the package at ${a}${s?` imported from ${we(s)}`:""}.`,"DeprecationWarning","DEP0166")}function nD(e,t,r,n){if(cn.noDeprecation||mm(e,{parentURL:r.href})!=="module")return;let s=we(e.href),u=we(new URL(".",t)),a=we(r);n?dm.resolve(u,n)!==s&&cn.emitWarning(`Package ${u} has a "main" field set to "${n}", excluding the full filename and extension to the resolved file at "${s.slice(u.length)}", imported from ${a}.
|
|
671
671
|
Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):cn.emitWarning(`No "main" or "exports" field defined in the package.json for ${u} resolving the main entry point "${s.slice(u.length)}", imported from ${a}.
|
|
672
|
-
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function vm(e){try{return hm(e)}catch{}}function Ho(e){let t=hm(e,{throwIfNoEntry:!1}),r=t?t.isFile():void 0;return r??!1}function NT(e,t,r){let n;if(t.main!==void 0){if(n=new URL(t.main,e),Ho(n))return n;let u=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],a=-1;for(;++a<u.length&&(n=new URL(u[a],e),!Ho(n));)n=void 0;if(n)return nD(n,e,r,t.main),n}let i=["./index.js","./index.json","./index.node"],s=-1;for(;++s<i.length&&(n=new URL(i[s],e),!Ho(n));)n=void 0;if(n)return nD(n,e,r,t.main),n;throw new Rl(we(new URL(".",e)),we(r))}function MT(e,t,r){if(IT.exec(e.pathname)!==null)throw new Au(e.pathname,'must not include encoded "/" or "\\" characters',we(t));let n;try{n=we(e)}catch(s){let u=s;throw Object.defineProperty(u,"input",{value:String(e)}),Object.defineProperty(u,"module",{value:String(t)}),u}let i=vm(n.endsWith("/")?n.slice(-1):n);if(i&&i.isDirectory()){let s=new PT(n,we(t));throw s.url=String(e),s}if(!i||!i.isFile()){let s=new Rl(n||e.pathname,t&&we(t),!0);throw s.url=String(e),s}if(!r){let s=nT(n),{search:u,hash:a}=e;e=wl(s+(n.endsWith(dm.sep)?"/":"")),e.search=u,e.hash=a}return e}function jT(e,t,r){return new xT(e,t&&we(new URL(".",t)),we(r))}function qo(e,t,r){return new kT(we(new URL(".",t)),e,r&&we(r))}function $T(e,t,r,n,i){let s=`request is not a valid match in pattern "${t}" for the "${n?"imports":"exports"}" resolution of ${we(r)}`;throw new Au(e,s,i&&we(i))}function Ri(e,t,r,n,i){return t=typeof t=="object"&&t!==null?JSON.stringify(t,null,""):`${t}`,new BT(we(new URL(".",r)),e,t,n,i&&we(i))}function HT(e,t,r,n,i,s,u,a,o){if(t!==""&&!s&&e[e.length-1]!=="/")throw Ri(r,e,n,u,i);if(!e.startsWith("./")){if(u&&!e.startsWith("../")&&!e.startsWith("/")){let h=!1;try{new URL(e),h=!0}catch{}if(!h){let d=s?uu.call(au,e,()=>t):e+t;return Cm(d,n,o)}}throw Ri(r,e,n,u,i)}if(Zp.exec(e.slice(2))!==null)if(eD.exec(e.slice(2))===null){if(!a){let h=s?r.replace("*",()=>t):r+t,d=s?uu.call(au,e,()=>t):e;rD(d,h,r,n,u,i,!0)}}else throw Ri(r,e,n,u,i);let l=new URL(e,n),c=l.pathname,f=new URL(".",n).pathname;if(!c.startsWith(f))throw Ri(r,e,n,u,i);if(t==="")return l;if(Zp.exec(t)!==null){let h=s?r.replace("*",()=>t):r+t;if(eD.exec(t)===null){if(!a){let d=s?uu.call(au,e,()=>t):e;rD(d,h,r,n,u,i,!1)}}else $T(h,r,n,u,i)}return s?new URL(uu.call(au,l.href,()=>t)):new URL(t,l)}function qT(e){let t=Number(e);return`${t}`!==e?!1:t>=0&&t<4294967295}function Mn(e,t,r,n,i,s,u,a,o){if(typeof t=="string")return HT(t,r,n,e,i,s,u,a,o);if(Array.isArray(t)){let l=t;if(l.length===0)return null;let c,f=-1;for(;++f<l.length;){let h=l[f],d;try{d=Mn(e,h,r,n,i,s,u,a,o)}catch(p){let D=p;if(c=D,D.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw p}if(d!==void 0){if(d===null){c=null;continue}return d}}if(c==null)return null;throw c}if(typeof t=="object"&&t!==null){let l=Object.getOwnPropertyNames(t),c=-1;for(;++c<l.length;){let f=l[c];if(qT(f))throw new ym(we(e),i,'"exports" cannot contain numeric property keys.')}for(c=-1;++c<l.length;){let f=l[c];if(f==="default"||o&&o.has(f)){let h=t[f],d=Mn(e,h,r,n,i,s,u,a,o);if(d===void 0)continue;return d}}return null}if(t===null)return null;throw Ri(n,t,e,u,i)}function UT(e,t,r){if(typeof e=="string"||Array.isArray(e))return!0;if(typeof e!="object"||e===null)return!1;let n=Object.getOwnPropertyNames(e),i=!1,s=0,u=-1;for(;++u<n.length;){let a=n[u],o=a===""||a[0]!==".";if(s++===0)i=o;else if(i!==o)throw new ym(we(t),r,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return i}function GT(e,t,r){if(cn.noDeprecation)return;let n=we(t);tD.has(n+"|"+e)||(tD.add(n+"|"+e),cn.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${n}${r?` imported from ${we(r)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function iD(e,t,r,n,i){let s=r.exports;if(UT(s,e,n)&&(s={".":s}),Em.call(s,t)&&!t.includes("*")&&!t.endsWith("/")){let c=s[t],f=Mn(e,c,"",t,n,!1,!1,!1,i);if(f==null)throw qo(t,e,n);return f}let u="",a="",o=Object.getOwnPropertyNames(s),l=-1;for(;++l<o.length;){let c=o[l],f=c.indexOf("*");if(f!==-1&&t.startsWith(c.slice(0,f))){t.endsWith("/")&>(t,e,n);let h=c.slice(f+1);t.length>=c.length&&t.endsWith(h)&&Fm(u,c)===1&&c.lastIndexOf("*")===f&&(u=c,a=t.slice(f,t.length-h.length))}}if(u){let c=s[u],f=Mn(e,c,a,u,n,!0,!1,t.endsWith("/"),i);if(f==null)throw qo(t,e,n);return f}throw qo(t,e,n)}function Fm(e,t){let r=e.indexOf("*"),n=t.indexOf("*"),i=r===-1?e.length:r+1,s=n===-1?t.length:n+1;return i>s?-1:s>i||r===-1?1:n===-1||e.length>t.length?-1:t.length>e.length?1:0}function WT(e,t,r){if(e==="#"||e.startsWith("#/")||e.endsWith("/")){let s="is not a valid internal imports specifier name";throw new Au(e,s,we(t))}let n,i=Sl(t);if(i.exists){n=wl(i.pjsonPath);let s=i.imports;if(s)if(Em.call(s,e)&&!e.includes("*")){let u=Mn(n,s[e],"",e,t,!1,!0,!1,r);if(u!=null)return u}else{let u="",a="",o=Object.getOwnPropertyNames(s),l=-1;for(;++l<o.length;){let c=o[l],f=c.indexOf("*");if(f!==-1&&e.startsWith(c.slice(0,-1))){let h=c.slice(f+1);e.length>=c.length&&e.endsWith(h)&&Fm(u,c)===1&&c.lastIndexOf("*")===f&&(u=c,a=e.slice(f,e.length-h.length))}}if(u){let c=s[u],f=Mn(n,c,a,u,t,!0,!0,!1,r);if(f!=null)return f}}}throw jT(e,n,t)}function VT(e,t){let r=e.indexOf("/"),n=!0,i=!1;e[0]==="@"&&(i=!0,r===-1||e.length===0?n=!1:r=e.indexOf("/",r+1));let s=r===-1?e:e.slice(0,r);if(OT.exec(s)!==null&&(n=!1),!n)throw new Au(e,"is not a valid package name",we(t));let u="."+(r===-1?"":e.slice(r));return{packageName:s,packageSubpath:u,isScoped:i}}function Cm(e,t,r){if(bl.includes(e))return new URL("node:"+e);let{packageName:n,packageSubpath:i,isScoped:s}=VT(e,t),u=Sl(t);if(u.exists){let c=wl(u.pjsonPath);if(u.name===n&&u.exports!==void 0&&u.exports!==null)return iD(c,i,u,t,r)}let a=new URL("./node_modules/"+n+"/package.json",t),o=we(a),l;do{let c=vm(o.slice(0,-13));if(!c||!c.isDirectory()){l=o,a=new URL((s?"../../../../node_modules/":"../../../node_modules/")+n+"/package.json",a),o=we(a);continue}let f=Dm(o,{base:t,specifier:e});return f.exports!==void 0&&f.exports!==null?iD(a,i,f,t,r):i==="."?NT(a,f,t):new URL(i,a)}while(o.length!==l.length);throw new Rl(n,we(t),!1)}function zT(e){return e[0]==="."&&(e.length===1||e[1]==="/"||e[1]==="."&&(e.length===2||e[2]==="/"))}function Tl(e){return e===""?!1:e[0]==="/"?!0:zT(e)}function YT(e,t,r,n){r===void 0&&(r=_m());let i=t.protocol,u=i==="data:"||i==="http:"||i==="https:",a;if(Tl(e))try{a=new URL(e,t)}catch(o){let l=new Qp(e,t);throw l.cause=o,l}else if(i==="file:"&&e[0]==="#")a=WT(e,t,r);else try{a=new URL(e)}catch(o){if(u&&!bl.includes(e)){let l=new Qp(e,t);throw l.cause=o,l}a=Cm(e,t,r)}return fm.ok(a!==void 0,"expected to be defined"),a.protocol!=="file:"?a:MT(a,t,n)}function KT(e,t,r){if(r){let n=r.protocol;if(n==="http:"||n==="https:"){if(Tl(e)){let i=t?.protocol;if(i&&i!=="https:"&&i!=="http:")throw new $o(e,r,"remote imports cannot import from a local location.");return{url:t?.href||""}}throw bl.includes(e)?new $o(e,r,"remote imports cannot import from a local location."):new $o(e,r,"only relative and absolute specifiers are supported.")}}}function JT(e){return!!(e&&typeof e=="object"&&"href"in e&&typeof e.href=="string"&&"protocol"in e&&typeof e.protocol=="string"&&e.href&&e.protocol)}function XT(e){if(e!==void 0&&typeof e!="string"&&!JT(e))throw new Qe.ERR_INVALID_ARG_TYPE("parentURL",["string","URL"],e)}function QT(e,t={}){let{parentURL:r}=t;fm.ok(r!==void 0,"expected `parentURL` to be defined"),XT(r);let n;if(r)try{n=new URL(r)}catch{}let i,s;try{if(i=Tl(e)?new URL(e,n):new URL(e),s=i.protocol,s==="data:")return{url:i.href,format:null}}catch{}let u=KT(e,i,n);if(u)return u;if(s===void 0&&i&&(s=i.protocol),s==="node:")return{url:e};if(i&&i.protocol==="node:")return{url:e};let a=_m(t.conditions),o=YT(e,new URL(r),a,!1);return{url:o.href,format:mm(o,{parentURL:r})}}function ZT(e,t){if(!t)throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that");try{return QT(e,{parentURL:t}).url}catch(r){let n=r;if((n.code==="ERR_UNSUPPORTED_DIR_IMPORT"||n.code==="ERR_MODULE_NOT_FOUND")&&typeof n.url=="string")return n.url;throw r}}function eB(e,t){return import(ZT(e,rT(t).href))}var Am=eB;function rB(e,t){return tB(t)(e)}var nB=rB,iB=new Set(["MODULE_NOT_FOUND","ERR_REQUIRE_ESM","ERR_PACKAGE_PATH_NOT_EXPORTED","ERR_REQUIRE_ASYNC_MODULE"]);async function sB(e,t){try{let n=nB(e,t);return process.features.require_module&&n.__esModule?n.default:n}catch(n){if(!iB.has(n?.code))throw n}return(await Am(e,t)).default}var uB=sB;async function aB(e){let{base:t,ext:r}=tT.parse(e),n=t==="package.json"?lm:t==="package.yaml"?cm:JR[r];if(!n)throw new Error(`No loader specified for extension "${r||"noExt"}"`);let i=await n(e);if(i){if(typeof i=="string"&&(i=await uB(i,e)),typeof i!="object")throw new TypeError(`Config is only allowed to be an object, but received ${typeof i} in "${e}"`);return delete i.$schema,i}}var oB=aB,hu=new Map,du=new Map;function lB(){hu.clear(),du.clear()}function cB(e,{shouldCache:t}){return e=gl.resolve(e),(!t||!hu.has(e))&&hu.set(e,oB(e)),hu.get(e)}function fB(e){if(e=e?gl.resolve(e):void 0,!du.has(e)){let t=eT(e),r=t.search.bind(t);du.set(e,r)}return du.get(e)}function wm(e,t={}){e=e?gl.resolve(e):process.cwd();let r=w2.getPrettierConfigSearchStopDirectory();return fB(r)(e,{cache:t.shouldCache})}function hB(){lB(),z2()}function dB(e,t){if(!e||!t.editorconfig)return;let r=t.useCache;return K2(e,{shouldCache:r})}async function pB(e,t){let r=t.useCache,n=t.config;if(!n){let s=e?Pr.dirname(Pr.resolve(e)):void 0;n=await wm(s,{shouldCache:r})}return n?(n=Hn(n),{config:await cB(n,{shouldCache:r}),configFile:n}):void 0}async function wu(e,t){t={useCache:!0,...t};let r=Hn(e),[n,i]=await Promise.all([pB(r,t),dB(r,t)]);if(!n&&!i)return null;let s={...i,...mB(n,r)};return Array.isArray(s.plugins)&&(s.plugins=s.plugins.map(u=>typeof u=="string"&&u.startsWith(".")?Pr.resolve(Pr.dirname(n.configFile),u):u)),s}async function DB(e){let t=e?Pr.dirname(Pr.resolve(Hn(e))):void 0;return await wm(t,{shouldCache:!1})??null}function mB(e,t){let{config:r,configFile:n}=e||{},{overrides:i,...s}=r||{};if(t&&i){let u=Pr.relative(Pr.dirname(n),t);for(let a of i)gB(u,a.files,a.excludeFiles)&&Object.assign(s,a.options)}return s}function gB(e,t,r){let n=Array.isArray(t)?t:[t],[i,s]=T2(n,u=>u.includes("/"));return Hp.default.isMatch(e,s,{ignore:r,basename:!0,dot:!0})||Hp.default.isMatch(e,i,{ignore:r,basename:!1,dot:!0})}var _B=1,Ii=(e,t)=>(r,n,...i)=>r|_B&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),yB=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},EB=Ii("replaceAll",function(){if(typeof this=="string")return yB}),bu=EB,bm="cr",Sm="crlf",FB="lf",CB=FB,Bl="\r",Rm=`\r
|
|
672
|
+
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function vm(e){try{return hm(e)}catch{}}function Ho(e){let t=hm(e,{throwIfNoEntry:!1}),r=t?t.isFile():void 0;return r??!1}function NT(e,t,r){let n;if(t.main!==void 0){if(n=new URL(t.main,e),Ho(n))return n;let u=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],a=-1;for(;++a<u.length&&(n=new URL(u[a],e),!Ho(n));)n=void 0;if(n)return nD(n,e,r,t.main),n}let i=["./index.js","./index.json","./index.node"],s=-1;for(;++s<i.length&&(n=new URL(i[s],e),!Ho(n));)n=void 0;if(n)return nD(n,e,r,t.main),n;throw new Rl(we(new URL(".",e)),we(r))}function MT(e,t,r){if(IT.exec(e.pathname)!==null)throw new Au(e.pathname,'must not include encoded "/" or "\\" characters',we(t));let n;try{n=we(e)}catch(s){let u=s;throw Object.defineProperty(u,"input",{value:String(e)}),Object.defineProperty(u,"module",{value:String(t)}),u}let i=vm(n.endsWith("/")?n.slice(-1):n);if(i&&i.isDirectory()){let s=new PT(n,we(t));throw s.url=String(e),s}if(!i||!i.isFile()){let s=new Rl(n||e.pathname,t&&we(t),!0);throw s.url=String(e),s}if(!r){let s=nT(n),{search:u,hash:a}=e;e=wl(s+(n.endsWith(dm.sep)?"/":"")),e.search=u,e.hash=a}return e}function jT(e,t,r){return new xT(e,t&&we(new URL(".",t)),we(r))}function qo(e,t,r){return new kT(we(new URL(".",t)),e,r&&we(r))}function $T(e,t,r,n,i){let s=`request is not a valid match in pattern "${t}" for the "${n?"imports":"exports"}" resolution of ${we(r)}`;throw new Au(e,s,i&&we(i))}function Ri(e,t,r,n,i){return t=typeof t=="object"&&t!==null?JSON.stringify(t,null,""):`${t}`,new BT(we(new URL(".",r)),e,t,n,i&&we(i))}function HT(e,t,r,n,i,s,u,a,o){if(t!==""&&!s&&e[e.length-1]!=="/")throw Ri(r,e,n,u,i);if(!e.startsWith("./")){if(u&&!e.startsWith("../")&&!e.startsWith("/")){let h=!1;try{new URL(e),h=!0}catch{}if(!h){let d=s?uu.call(au,e,()=>t):e+t;return Cm(d,n,o)}}throw Ri(r,e,n,u,i)}if(Zp.exec(e.slice(2))!==null)if(eD.exec(e.slice(2))===null){if(!a){let h=s?r.replace("*",()=>t):r+t,d=s?uu.call(au,e,()=>t):e;rD(d,h,r,n,u,i,!0)}}else throw Ri(r,e,n,u,i);let l=new URL(e,n),c=l.pathname,f=new URL(".",n).pathname;if(!c.startsWith(f))throw Ri(r,e,n,u,i);if(t==="")return l;if(Zp.exec(t)!==null){let h=s?r.replace("*",()=>t):r+t;if(eD.exec(t)===null){if(!a){let d=s?uu.call(au,e,()=>t):e;rD(d,h,r,n,u,i,!1)}}else $T(h,r,n,u,i)}return s?new URL(uu.call(au,l.href,()=>t)):new URL(t,l)}function qT(e){let t=Number(e);return`${t}`!==e?!1:t>=0&&t<4294967295}function Mn(e,t,r,n,i,s,u,a,o){if(typeof t=="string")return HT(t,r,n,e,i,s,u,a,o);if(Array.isArray(t)){let l=t;if(l.length===0)return null;let c,f=-1;for(;++f<l.length;){let h=l[f],d;try{d=Mn(e,h,r,n,i,s,u,a,o)}catch(p){let D=p;if(c=D,D.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw p}if(d!==void 0){if(d===null){c=null;continue}return d}}if(c==null)return null;throw c}if(typeof t=="object"&&t!==null){let l=Object.getOwnPropertyNames(t),c=-1;for(;++c<l.length;){let f=l[c];if(qT(f))throw new ym(we(e),i,'"exports" cannot contain numeric property keys.')}for(c=-1;++c<l.length;){let f=l[c];if(f==="default"||o&&o.has(f)){let h=t[f],d=Mn(e,h,r,n,i,s,u,a,o);if(d===void 0)continue;return d}}return null}if(t===null)return null;throw Ri(n,t,e,u,i)}function UT(e,t,r){if(typeof e=="string"||Array.isArray(e))return!0;if(typeof e!="object"||e===null)return!1;let n=Object.getOwnPropertyNames(e),i=!1,s=0,u=-1;for(;++u<n.length;){let a=n[u],o=a===""||a[0]!==".";if(s++===0)i=o;else if(i!==o)throw new ym(we(t),r,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return i}function GT(e,t,r){if(cn.noDeprecation)return;let n=we(t);tD.has(n+"|"+e)||(tD.add(n+"|"+e),cn.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${n}${r?` imported from ${we(r)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function iD(e,t,r,n,i){let s=r.exports;if(UT(s,e,n)&&(s={".":s}),Em.call(s,t)&&!t.includes("*")&&!t.endsWith("/")){let c=s[t],f=Mn(e,c,"",t,n,!1,!1,!1,i);if(f==null)throw qo(t,e,n);return f}let u="",a="",o=Object.getOwnPropertyNames(s),l=-1;for(;++l<o.length;){let c=o[l],f=c.indexOf("*");if(f!==-1&&t.startsWith(c.slice(0,f))){t.endsWith("/")&>(t,e,n);let h=c.slice(f+1);t.length>=c.length&&t.endsWith(h)&&Fm(u,c)===1&&c.lastIndexOf("*")===f&&(u=c,a=t.slice(f,t.length-h.length))}}if(u){let c=s[u],f=Mn(e,c,a,u,n,!0,!1,t.endsWith("/"),i);if(f==null)throw qo(t,e,n);return f}throw qo(t,e,n)}function Fm(e,t){let r=e.indexOf("*"),n=t.indexOf("*"),i=r===-1?e.length:r+1,s=n===-1?t.length:n+1;return i>s?-1:s>i||r===-1?1:n===-1||e.length>t.length?-1:t.length>e.length?1:0}function WT(e,t,r){if(e==="#"||e.startsWith("#/")||e.endsWith("/")){let s="is not a valid internal imports specifier name";throw new Au(e,s,we(t))}let n,i=Sl(t);if(i.exists){n=wl(i.pjsonPath);let s=i.imports;if(s)if(Em.call(s,e)&&!e.includes("*")){let u=Mn(n,s[e],"",e,t,!1,!0,!1,r);if(u!=null)return u}else{let u="",a="",o=Object.getOwnPropertyNames(s),l=-1;for(;++l<o.length;){let c=o[l],f=c.indexOf("*");if(f!==-1&&e.startsWith(c.slice(0,-1))){let h=c.slice(f+1);e.length>=c.length&&e.endsWith(h)&&Fm(u,c)===1&&c.lastIndexOf("*")===f&&(u=c,a=e.slice(f,e.length-h.length))}}if(u){let c=s[u],f=Mn(n,c,a,u,t,!0,!0,!1,r);if(f!=null)return f}}}throw jT(e,n,t)}function VT(e,t){let r=e.indexOf("/"),n=!0,i=!1;e[0]==="@"&&(i=!0,r===-1||e.length===0?n=!1:r=e.indexOf("/",r+1));let s=r===-1?e:e.slice(0,r);if(OT.exec(s)!==null&&(n=!1),!n)throw new Au(e,"is not a valid package name",we(t));let u="."+(r===-1?"":e.slice(r));return{packageName:s,packageSubpath:u,isScoped:i}}function Cm(e,t,r){if(bl.includes(e))return new URL("node:"+e);let{packageName:n,packageSubpath:i,isScoped:s}=VT(e,t),u=Sl(t);if(u.exists){let c=wl(u.pjsonPath);if(u.name===n&&u.exports!==void 0&&u.exports!==null)return iD(c,i,u,t,r)}let a=new URL("./node_modules/"+n+"/package.json",t),o=we(a),l;do{let c=vm(o.slice(0,-13));if(!c||!c.isDirectory()){l=o,a=new URL((s?"../../../../node_modules/":"../../../node_modules/")+n+"/package.json",a),o=we(a);continue}let f=Dm(o,{base:t,specifier:e});return f.exports!==void 0&&f.exports!==null?iD(a,i,f,t,r):i==="."?NT(a,f,t):new URL(i,a)}while(o.length!==l.length);throw new Rl(n,we(t),!1)}function YT(e){return e[0]==="."&&(e.length===1||e[1]==="/"||e[1]==="."&&(e.length===2||e[2]==="/"))}function Tl(e){return e===""?!1:e[0]==="/"?!0:YT(e)}function zT(e,t,r,n){r===void 0&&(r=_m());let i=t.protocol,u=i==="data:"||i==="http:"||i==="https:",a;if(Tl(e))try{a=new URL(e,t)}catch(o){let l=new Qp(e,t);throw l.cause=o,l}else if(i==="file:"&&e[0]==="#")a=WT(e,t,r);else try{a=new URL(e)}catch(o){if(u&&!bl.includes(e)){let l=new Qp(e,t);throw l.cause=o,l}a=Cm(e,t,r)}return fm.ok(a!==void 0,"expected to be defined"),a.protocol!=="file:"?a:MT(a,t,n)}function KT(e,t,r){if(r){let n=r.protocol;if(n==="http:"||n==="https:"){if(Tl(e)){let i=t?.protocol;if(i&&i!=="https:"&&i!=="http:")throw new $o(e,r,"remote imports cannot import from a local location.");return{url:t?.href||""}}throw bl.includes(e)?new $o(e,r,"remote imports cannot import from a local location."):new $o(e,r,"only relative and absolute specifiers are supported.")}}}function JT(e){return!!(e&&typeof e=="object"&&"href"in e&&typeof e.href=="string"&&"protocol"in e&&typeof e.protocol=="string"&&e.href&&e.protocol)}function XT(e){if(e!==void 0&&typeof e!="string"&&!JT(e))throw new Qe.ERR_INVALID_ARG_TYPE("parentURL",["string","URL"],e)}function QT(e,t={}){let{parentURL:r}=t;fm.ok(r!==void 0,"expected `parentURL` to be defined"),XT(r);let n;if(r)try{n=new URL(r)}catch{}let i,s;try{if(i=Tl(e)?new URL(e,n):new URL(e),s=i.protocol,s==="data:")return{url:i.href,format:null}}catch{}let u=KT(e,i,n);if(u)return u;if(s===void 0&&i&&(s=i.protocol),s==="node:")return{url:e};if(i&&i.protocol==="node:")return{url:e};let a=_m(t.conditions),o=zT(e,new URL(r),a,!1);return{url:o.href,format:mm(o,{parentURL:r})}}function ZT(e,t){if(!t)throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that");try{return QT(e,{parentURL:t}).url}catch(r){let n=r;if((n.code==="ERR_UNSUPPORTED_DIR_IMPORT"||n.code==="ERR_MODULE_NOT_FOUND")&&typeof n.url=="string")return n.url;throw r}}function eB(e,t){return import(ZT(e,rT(t).href))}var Am=eB;function rB(e,t){return tB(t)(e)}var nB=rB,iB=new Set(["MODULE_NOT_FOUND","ERR_REQUIRE_ESM","ERR_PACKAGE_PATH_NOT_EXPORTED","ERR_REQUIRE_ASYNC_MODULE"]);async function sB(e,t){try{let n=nB(e,t);return process.features.require_module&&n.__esModule?n.default:n}catch(n){if(!iB.has(n?.code))throw n}return(await Am(e,t)).default}var uB=sB;async function aB(e){let{base:t,ext:r}=tT.parse(e),n=t==="package.json"?lm:t==="package.yaml"?cm:JR[r];if(!n)throw new Error(`No loader specified for extension "${r||"noExt"}"`);let i=await n(e);if(i){if(typeof i=="string"&&(i=await uB(i,e)),typeof i!="object")throw new TypeError(`Config is only allowed to be an object, but received ${typeof i} in "${e}"`);return delete i.$schema,i}}var oB=aB,hu=new Map,du=new Map;function lB(){hu.clear(),du.clear()}function cB(e,{shouldCache:t}){return e=gl.resolve(e),(!t||!hu.has(e))&&hu.set(e,oB(e)),hu.get(e)}function fB(e){if(e=e?gl.resolve(e):void 0,!du.has(e)){let t=eT(e),r=t.search.bind(t);du.set(e,r)}return du.get(e)}function wm(e,t={}){e=e?gl.resolve(e):process.cwd();let r=w2.getPrettierConfigSearchStopDirectory();return fB(r)(e,{cache:t.shouldCache})}function hB(){lB(),Y2()}function dB(e,t){if(!e||!t.editorconfig)return;let r=t.useCache;return K2(e,{shouldCache:r})}async function pB(e,t){let r=t.useCache,n=t.config;if(!n){let s=e?Pr.dirname(Pr.resolve(e)):void 0;n=await wm(s,{shouldCache:r})}return n?(n=Hn(n),{config:await cB(n,{shouldCache:r}),configFile:n}):void 0}async function wu(e,t){t={useCache:!0,...t};let r=Hn(e),[n,i]=await Promise.all([pB(r,t),dB(r,t)]);if(!n&&!i)return null;let s={...i,...mB(n,r)};return Array.isArray(s.plugins)&&(s.plugins=s.plugins.map(u=>typeof u=="string"&&u.startsWith(".")?Pr.resolve(Pr.dirname(n.configFile),u):u)),s}async function DB(e){let t=e?Pr.dirname(Pr.resolve(Hn(e))):void 0;return await wm(t,{shouldCache:!1})??null}function mB(e,t){let{config:r,configFile:n}=e||{},{overrides:i,...s}=r||{};if(t&&i){let u=Pr.relative(Pr.dirname(n),t);for(let a of i)gB(u,a.files,a.excludeFiles)&&Object.assign(s,a.options)}return s}function gB(e,t,r){let n=Array.isArray(t)?t:[t],[i,s]=T2(n,u=>u.includes("/"));return Hp.default.isMatch(e,s,{ignore:r,basename:!0,dot:!0})||Hp.default.isMatch(e,i,{ignore:r,basename:!1,dot:!0})}var _B=1,Ii=(e,t)=>(r,n,...i)=>r|_B&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),yB=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},EB=Ii("replaceAll",function(){if(typeof this=="string")return yB}),bu=EB,bm="cr",Sm="crlf",FB="lf",CB=FB,Bl="\r",Rm=`\r
|
|
673
673
|
`,Su=`
|
|
674
|
-
`,AB=Su;function wB(e){let t=e.indexOf(Bl);return t!==-1?e.charAt(t+1)===Su?Sm:bm:CB}function Tm(e){return e===bm?Bl:e===Sm?Rm:AB}var bB=new Map([[Su,/\n/gu],[Bl,/\r/gu],[Rm,/\r\n/gu]]);function Bm(e,t){let r=bB.get(t);return e.match(r)?.length??0}var SB=/\r\n?/gu;function RB(e){return bu(0,e,SB,Su)}function TB(e){return this[e<0?this.length+e:e]}var BB=Ii("at",function(){if(Array.isArray(this)||typeof this=="string")return TB}),Gt=BB,xB=()=>{},kB=xB,PB="cursor",OB="indent",IB="align",LB="trim",xm="group",km="fill",Pm="if-break",NB="indent-if-break",MB="line-suffix",jB="line-suffix-boundary",uD="line",Om="label",aD="break-parent";function pu(e,t){return e.type===Om?{...e,contents:t(e.contents)}:t(e)}function nr(e){if(!e)return"";if(Array.isArray(e)){let t=[];for(let r of e)if(Array.isArray(r))t.push(...nr(r));else{let n=nr(r);n!==""&&t.push(n)}return t}return e.type===Pm?{...e,breakContents:nr(e.breakContents),flatContents:nr(e.flatContents)}:e.type===xm?{...e,contents:nr(e.contents),expandedStates:e.expandedStates?.map(nr)}:e.type===km?{type:"fill",parts:e.parts.map(nr)}:e.contents?{...e,contents:nr(e.contents)}:e}function $B(e){let t=Object.create(null),r=new Set;return n(nr(e));function n(s,u,a){if(typeof s=="string")return JSON.stringify(s);if(Array.isArray(s)){let o=s.map(n).filter(Boolean);return o.length===1?o[0]:`[${o.join(", ")}]`}if(s.type===uD){let o=a?.[u+1]?.type===aD;return s.literal?o?"literalline":"literallineWithoutBreakParent":s.hard?o?"hardline":"hardlineWithoutBreakParent":s.soft?"softline":"line"}if(s.type===aD)return a?.[u-1]?.type===uD&&a[u-1].hard?void 0:"breakParent";if(s.type===LB)return"trim";if(s.type===OB)return"indent("+n(s.contents)+")";if(s.type===IB)return s.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(s.contents)+")":s.n<0?"dedent("+n(s.contents)+")":s.n.type==="root"?"markAsRoot("+n(s.contents)+")":"align("+JSON.stringify(s.n)+", "+n(s.contents)+")";if(s.type===Pm)return"ifBreak("+n(s.breakContents)+(s.flatContents?", "+n(s.flatContents):"")+(s.groupId?(s.flatContents?"":', ""')+`, { groupId: ${i(s.groupId)} }`:"")+")";if(s.type===NB){let o=[];s.negate&&o.push("negate: true"),s.groupId&&o.push(`groupId: ${i(s.groupId)}`);let l=o.length>0?`, { ${o.join(", ")} }`:"";return`indentIfBreak(${n(s.contents)}${l})`}if(s.type===xm){let o=[];s.break&&s.break!=="propagated"&&o.push("shouldBreak: true"),s.id&&o.push(`id: ${i(s.id)}`);let l=o.length>0?`, { ${o.join(", ")} }`:"";return s.expandedStates?`conditionalGroup([${s.expandedStates.map(c=>n(c)).join(",")}]${l})`:`group(${n(s.contents)}${l})`}if(s.type===km)return`fill([${s.parts.map(o=>n(o)).join(", ")}])`;if(s.type===MB)return"lineSuffix("+n(s.contents)+")";if(s.type===jB)return"lineSuffixBoundary";if(s.type===Om)return`label(${JSON.stringify(s.label)}, ${n(s.contents)})`;if(s.type===PB)return"cursor";throw new Error("Unknown doc type "+s.type)}function i(s){if(typeof s!="symbol")return JSON.stringify(String(s));if(s in t)return t[s];let u=s.description||"symbol";for(let a=0;;a++){let o=u+(a>0?` #${a}`:"");if(!r.has(o))return r.add(o),t[s]=`Symbol.for(${JSON.stringify(o)})`}}}var HB=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function qB(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function UB(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var GB="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07",WB=/[^\x20-\x7F]/u,VB=new Set(GB);function zB(e){if(!e)return 0;if(!WB.test(e))return e.length;e=e.replace(HB(),r=>VB.has(r)?" ":" ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=qB(n)||UB(n)?2:1)}return t}var YB=zB;function KB(e,t,r=0){let n=0;for(let i=r;i<e.length;++i)e[i]===" "?n=n+t-n%t:n++;return n}var xl=KB,JB=class{constructor(e){this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return Gt(0,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:Gt(0,this.stack,-2)}get node(){return Gt(0,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=Gt(0,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...this.#t()]}getName(){let{stack:e}=this,{length:t}=e;return t>1?Gt(0,e,-2):null}getValue(){return Gt(0,this.stack,-1)}getNode(e=0){let t=this.#r(e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}#r(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1}call(e,...t){let{stack:r}=this,{length:n}=r,i=Gt(0,r,-1);for(let s of t)i=i?.[s],r.push(s,i);try{return e(this)}finally{r.length=n}}callParent(e,t=0){let r=this.#r(t+1),n=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){let{stack:r}=this,{length:n}=r,i=Gt(0,r,-1);for(let s of t)i=i[s],r.push(s,i);try{for(let s=0;s<i.length;++s)r.push(s,i[s]),e(this,s,i),r.length-=2}finally{r.length=n}}map(e,...t){let r=[];return this.each((n,i,s)=>{r[i]=e(n,i,s)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let i of e){if(n===void 0)return!1;let s=null;if(typeof r=="number"&&(s=r,r=this.stack[t--],n=this.stack[t--]),i&&!i(n,r,s))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(let t of this.#t())if(e(t))return t}hasAncestor(e){for(let t of this.#t())if(e(t))return!0;return!1}*#t(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}}},XB=JB;function QB(e){return e!==null&&typeof e=="object"}var kl=QB;function Li(e){return(t,r,n)=>{let i=!!n?.backwards;if(r===!1)return!1;let{length:s}=t,u=r;for(;u>=0&&u<s;){let a=t.charAt(u);if(e instanceof RegExp){if(!e.test(a))return u}else if(!e.includes(a))return u;i?u--:u++}return u===-1||u===s?u:!1}}var ZB=Li(/\s/u),Ir=Li(" "),Im=Li(",; "),Lm=Li(/[^\n\r]/u),oD=e=>e===`
|
|
674
|
+
`,AB=Su;function wB(e){let t=e.indexOf(Bl);return t!==-1?e.charAt(t+1)===Su?Sm:bm:CB}function Tm(e){return e===bm?Bl:e===Sm?Rm:AB}var bB=new Map([[Su,/\n/gu],[Bl,/\r/gu],[Rm,/\r\n/gu]]);function Bm(e,t){let r=bB.get(t);return e.match(r)?.length??0}var SB=/\r\n?/gu;function RB(e){return bu(0,e,SB,Su)}function TB(e){return this[e<0?this.length+e:e]}var BB=Ii("at",function(){if(Array.isArray(this)||typeof this=="string")return TB}),Gt=BB,xB=()=>{},kB=xB,PB="cursor",OB="indent",IB="align",LB="trim",xm="group",km="fill",Pm="if-break",NB="indent-if-break",MB="line-suffix",jB="line-suffix-boundary",uD="line",Om="label",aD="break-parent";function pu(e,t){return e.type===Om?{...e,contents:t(e.contents)}:t(e)}function nr(e){if(!e)return"";if(Array.isArray(e)){let t=[];for(let r of e)if(Array.isArray(r))t.push(...nr(r));else{let n=nr(r);n!==""&&t.push(n)}return t}return e.type===Pm?{...e,breakContents:nr(e.breakContents),flatContents:nr(e.flatContents)}:e.type===xm?{...e,contents:nr(e.contents),expandedStates:e.expandedStates?.map(nr)}:e.type===km?{type:"fill",parts:e.parts.map(nr)}:e.contents?{...e,contents:nr(e.contents)}:e}function $B(e){let t=Object.create(null),r=new Set;return n(nr(e));function n(s,u,a){if(typeof s=="string")return JSON.stringify(s);if(Array.isArray(s)){let o=s.map(n).filter(Boolean);return o.length===1?o[0]:`[${o.join(", ")}]`}if(s.type===uD){let o=a?.[u+1]?.type===aD;return s.literal?o?"literalline":"literallineWithoutBreakParent":s.hard?o?"hardline":"hardlineWithoutBreakParent":s.soft?"softline":"line"}if(s.type===aD)return a?.[u-1]?.type===uD&&a[u-1].hard?void 0:"breakParent";if(s.type===LB)return"trim";if(s.type===OB)return"indent("+n(s.contents)+")";if(s.type===IB)return s.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(s.contents)+")":s.n<0?"dedent("+n(s.contents)+")":s.n.type==="root"?"markAsRoot("+n(s.contents)+")":"align("+JSON.stringify(s.n)+", "+n(s.contents)+")";if(s.type===Pm)return"ifBreak("+n(s.breakContents)+(s.flatContents?", "+n(s.flatContents):"")+(s.groupId?(s.flatContents?"":', ""')+`, { groupId: ${i(s.groupId)} }`:"")+")";if(s.type===NB){let o=[];s.negate&&o.push("negate: true"),s.groupId&&o.push(`groupId: ${i(s.groupId)}`);let l=o.length>0?`, { ${o.join(", ")} }`:"";return`indentIfBreak(${n(s.contents)}${l})`}if(s.type===xm){let o=[];s.break&&s.break!=="propagated"&&o.push("shouldBreak: true"),s.id&&o.push(`id: ${i(s.id)}`);let l=o.length>0?`, { ${o.join(", ")} }`:"";return s.expandedStates?`conditionalGroup([${s.expandedStates.map(c=>n(c)).join(",")}]${l})`:`group(${n(s.contents)}${l})`}if(s.type===km)return`fill([${s.parts.map(o=>n(o)).join(", ")}])`;if(s.type===MB)return"lineSuffix("+n(s.contents)+")";if(s.type===jB)return"lineSuffixBoundary";if(s.type===Om)return`label(${JSON.stringify(s.label)}, ${n(s.contents)})`;if(s.type===PB)return"cursor";throw new Error("Unknown doc type "+s.type)}function i(s){if(typeof s!="symbol")return JSON.stringify(String(s));if(s in t)return t[s];let u=s.description||"symbol";for(let a=0;;a++){let o=u+(a>0?` #${a}`:"");if(!r.has(o))return r.add(o),t[s]=`Symbol.for(${JSON.stringify(o)})`}}}var HB=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function qB(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function UB(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var GB="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07",WB=/[^\x20-\x7F]/u,VB=new Set(GB);function YB(e){if(!e)return 0;if(!WB.test(e))return e.length;e=e.replace(HB(),r=>VB.has(r)?" ":" ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=qB(n)||UB(n)?2:1)}return t}var zB=YB;function KB(e,t,r=0){let n=0;for(let i=r;i<e.length;++i)e[i]===" "?n=n+t-n%t:n++;return n}var xl=KB,JB=class{constructor(e){this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return Gt(0,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:Gt(0,this.stack,-2)}get node(){return Gt(0,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=Gt(0,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...this.#t()]}getName(){let{stack:e}=this,{length:t}=e;return t>1?Gt(0,e,-2):null}getValue(){return Gt(0,this.stack,-1)}getNode(e=0){let t=this.#r(e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}#r(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1}call(e,...t){let{stack:r}=this,{length:n}=r,i=Gt(0,r,-1);for(let s of t)i=i?.[s],r.push(s,i);try{return e(this)}finally{r.length=n}}callParent(e,t=0){let r=this.#r(t+1),n=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){let{stack:r}=this,{length:n}=r,i=Gt(0,r,-1);for(let s of t)i=i[s],r.push(s,i);try{for(let s=0;s<i.length;++s)r.push(s,i[s]),e(this,s,i),r.length-=2}finally{r.length=n}}map(e,...t){let r=[];return this.each((n,i,s)=>{r[i]=e(n,i,s)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let i of e){if(n===void 0)return!1;let s=null;if(typeof r=="number"&&(s=r,r=this.stack[t--],n=this.stack[t--]),i&&!i(n,r,s))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(let t of this.#t())if(e(t))return t}hasAncestor(e){for(let t of this.#t())if(e(t))return!0;return!1}*#t(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}}},XB=JB;function QB(e){return e!==null&&typeof e=="object"}var kl=QB;function Li(e){return(t,r,n)=>{let i=!!n?.backwards;if(r===!1)return!1;let{length:s}=t,u=r;for(;u>=0&&u<s;){let a=t.charAt(u);if(e instanceof RegExp){if(!e.test(a))return u}else if(!e.includes(a))return u;i?u--:u++}return u===-1||u===s?u:!1}}var ZB=Li(/\s/u),Ir=Li(" "),Im=Li(",; "),Lm=Li(/[^\n\r]/u),oD=e=>e===`
|
|
675
675
|
`||e==="\r"||e==="\u2028"||e==="\u2029";function ex(e,t,r){let n=!!r?.backwards;if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===`
|
|
676
676
|
`)return t-2;if(oD(i))return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
|
|
677
|
-
`)return t+2;if(oD(i))return t+1}return t}var hn=ex;function tx(e,t,r={}){let n=Ir(e,r.backwards?t-1:t,r),i=hn(e,n,r);return n!==i}var kr=tx;function rx(e){return Array.isArray(e)&&e.length>0}var Nm=rx;function*Ru(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=s=>kl(s)&&n(s);for(let s of r(e)){let u=e[s];if(Array.isArray(u))for(let a of u)i(a)&&(yield a);else i(u)&&(yield u)}}function*nx(e,t){let r=[e];for(let n=0;n<r.length;n++){let i=r[n];for(let s of Ru(i,t))yield s,r.push(s)}}function ix(e,t){return Ru(e,t).next().done}function Mm(e,t,r){let{cache:n}=r;if(n.has(e))return n.get(e);let{filter:i}=r;if(!i)return[];let s,u=(r.getChildren?.(e,r)??[...Ru(e,{getVisitorKeys:r.getVisitorKeys})]).flatMap(l=>(s??(s=[e,...t]),i(l,s)?[l]:Mm(l,s,r))),{locStart:a,locEnd:o}=r;return u.sort((l,c)=>a(l)-a(c)||o(l)-o(c)),n.set(e,u),u}var jm=Mm;function sx(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Pl(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=sx(e)}function Bi(e,t){t.leading=!0,t.trailing=!1,Pl(e,t)}function on(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Pl(e,t)}function xi(e,t){t.leading=!1,t.trailing=!0,Pl(e,t)}var $m=new WeakMap;function Hm(e,t,r,n,i=[]){let{locStart:s,locEnd:u}=r,a=s(t),o=u(t),l=jm(e,i,{cache:$m,locStart:s,locEnd:u,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes}),c,f,h=0,d=l.length;for(;h<d;){let p=h+d>>1,D=l[p],w=s(D),y=u(D);if(w<=a&&o<=y)return Hm(D,t,r,D,[D,...i]);if(y<=a){c=D,h=p+1;continue}if(o<=w){f=D,d=p;continue}throw new Error("Comment location overlaps with node location")}if(n?.type==="TemplateLiteral"){let{quasis:p}=n,D=Go(p,t,r);c&&Go(p,c,r)!==D&&(c=null),f&&Go(p,f,r)!==D&&(f=null)}return{enclosingNode:n,precedingNode:c,followingNode:f}}var Uo=()=>!1;function ux(e,t){let{comments:r}=e;if(delete e.comments,!Nm(r)||!t.printer.canAttachComment)return;let n=[],{printer:{features:{experimental_avoidAstMutation:i},handleComments:s={}},originalText:u}=t,{ownLine:a=Uo,endOfLine:o=Uo,remaining:l=Uo}=s,c=r.map((f,h)=>({...Hm(e,f,t),comment:f,text:u,options:t,ast:e,isLastComment:r.length-1===h}));for(let[f,h]of c.entries()){let{comment:d,precedingNode:p,enclosingNode:D,followingNode:w,text:y,options:m,ast:g,isLastComment:C}=h,E;if(i?E=[h]:(d.enclosingNode=D,d.precedingNode=p,d.followingNode=w,E=[d,y,m,g,C]),ax(y,m,c,f))d.placement="ownLine",a(...E)||(w?Bi(w,d):p?xi(p,d):on(D||g,d));else if(ox(y,m,c,f))d.placement="endOfLine",o(...E)||(p?xi(p,d):w?Bi(w,d):on(D||g,d));else if(d.placement="remaining",!l(...E))if(p&&w){let T=n.length;T>0&&n[T-1].followingNode!==w&&lD(n,m),n.push(h)}else p?xi(p,d):w?Bi(w,d):on(D||g,d)}if(lD(n,t),!i)for(let f of r)delete f.precedingNode,delete f.enclosingNode,delete f.followingNode}var qm=e=>!/[\S\n\u2028\u2029]/u.test(e);function ax(e,t,r,n){let{comment:i,precedingNode:s}=r[n],{locStart:u,locEnd:a}=t,o=u(i);if(s)for(let l=n-1;l>=0;l--){let{comment:c,precedingNode:f}=r[l];if(f!==s||!qm(e.slice(a(c),o)))break;o=u(c)}return kr(e,o,{backwards:!0})}function ox(e,t,r,n){let{comment:i,followingNode:s}=r[n],{locStart:u,locEnd:a}=t,o=a(i);if(s)for(let l=n+1;l<r.length;l++){let{comment:c,followingNode:f}=r[l];if(f!==s||!qm(e.slice(o,u(c))))break;o=a(c)}return kr(e,o)}function lD(e,t){let r=e.length;if(r===0)return;let{precedingNode:n,followingNode:i}=e[0],s=t.locStart(i),u;for(u=r;u>0;--u){let{comment:a,precedingNode:o,followingNode:l}=e[u-1];sD(o,n),sD(l,i);let c=t.originalText.slice(t.locEnd(a),s);if(t.printer.isGap?.(c,t)??/^[\s(]*$/u.test(c))s=t.locStart(a);else break}for(let[a,{comment:o}]of e.entries())a<u?xi(n,o):Bi(i,o);for(let a of[n,i])a.comments&&a.comments.length>1&&a.comments.sort((o,l)=>t.locStart(o)-t.locStart(l));e.length=0}function Go(e,t,r){let n=r.locStart(t)-1;for(let i=1;i<e.length;++i)if(n<r.locStart(e[i]))return i-1;return 0}function lx(e,t){let r=t-1;r=Ir(e,r,{backwards:!0}),r=hn(e,r,{backwards:!0}),r=Ir(e,r,{backwards:!0});let n=hn(e,r,{backwards:!0});return r!==n}var Ol=lx,{breakParent:cx,hardline:ki,indent:
|
|
677
|
+
`)return t+2;if(oD(i))return t+1}return t}var hn=ex;function tx(e,t,r={}){let n=Ir(e,r.backwards?t-1:t,r),i=hn(e,n,r);return n!==i}var kr=tx;function rx(e){return Array.isArray(e)&&e.length>0}var Nm=rx;function*Ru(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=s=>kl(s)&&n(s);for(let s of r(e)){let u=e[s];if(Array.isArray(u))for(let a of u)i(a)&&(yield a);else i(u)&&(yield u)}}function*nx(e,t){let r=[e];for(let n=0;n<r.length;n++){let i=r[n];for(let s of Ru(i,t))yield s,r.push(s)}}function ix(e,t){return Ru(e,t).next().done}function Mm(e,t,r){let{cache:n}=r;if(n.has(e))return n.get(e);let{filter:i}=r;if(!i)return[];let s,u=(r.getChildren?.(e,r)??[...Ru(e,{getVisitorKeys:r.getVisitorKeys})]).flatMap(l=>(s??(s=[e,...t]),i(l,s)?[l]:Mm(l,s,r))),{locStart:a,locEnd:o}=r;return u.sort((l,c)=>a(l)-a(c)||o(l)-o(c)),n.set(e,u),u}var jm=Mm;function sx(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Pl(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=sx(e)}function Bi(e,t){t.leading=!0,t.trailing=!1,Pl(e,t)}function on(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Pl(e,t)}function xi(e,t){t.leading=!1,t.trailing=!0,Pl(e,t)}var $m=new WeakMap;function Hm(e,t,r,n,i=[]){let{locStart:s,locEnd:u}=r,a=s(t),o=u(t),l=jm(e,i,{cache:$m,locStart:s,locEnd:u,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes}),c,f,h=0,d=l.length;for(;h<d;){let p=h+d>>1,D=l[p],w=s(D),y=u(D);if(w<=a&&o<=y)return Hm(D,t,r,D,[D,...i]);if(y<=a){c=D,h=p+1;continue}if(o<=w){f=D,d=p;continue}throw new Error("Comment location overlaps with node location")}if(n?.type==="TemplateLiteral"){let{quasis:p}=n,D=Go(p,t,r);c&&Go(p,c,r)!==D&&(c=null),f&&Go(p,f,r)!==D&&(f=null)}return{enclosingNode:n,precedingNode:c,followingNode:f}}var Uo=()=>!1;function ux(e,t){let{comments:r}=e;if(delete e.comments,!Nm(r)||!t.printer.canAttachComment)return;let n=[],{printer:{features:{experimental_avoidAstMutation:i},handleComments:s={}},originalText:u}=t,{ownLine:a=Uo,endOfLine:o=Uo,remaining:l=Uo}=s,c=r.map((f,h)=>({...Hm(e,f,t),comment:f,text:u,options:t,ast:e,isLastComment:r.length-1===h}));for(let[f,h]of c.entries()){let{comment:d,precedingNode:p,enclosingNode:D,followingNode:w,text:y,options:m,ast:g,isLastComment:C}=h,E;if(i?E=[h]:(d.enclosingNode=D,d.precedingNode=p,d.followingNode=w,E=[d,y,m,g,C]),ax(y,m,c,f))d.placement="ownLine",a(...E)||(w?Bi(w,d):p?xi(p,d):on(D||g,d));else if(ox(y,m,c,f))d.placement="endOfLine",o(...E)||(p?xi(p,d):w?Bi(w,d):on(D||g,d));else if(d.placement="remaining",!l(...E))if(p&&w){let T=n.length;T>0&&n[T-1].followingNode!==w&&lD(n,m),n.push(h)}else p?xi(p,d):w?Bi(w,d):on(D||g,d)}if(lD(n,t),!i)for(let f of r)delete f.precedingNode,delete f.enclosingNode,delete f.followingNode}var qm=e=>!/[\S\n\u2028\u2029]/u.test(e);function ax(e,t,r,n){let{comment:i,precedingNode:s}=r[n],{locStart:u,locEnd:a}=t,o=u(i);if(s)for(let l=n-1;l>=0;l--){let{comment:c,precedingNode:f}=r[l];if(f!==s||!qm(e.slice(a(c),o)))break;o=u(c)}return kr(e,o,{backwards:!0})}function ox(e,t,r,n){let{comment:i,followingNode:s}=r[n],{locStart:u,locEnd:a}=t,o=a(i);if(s)for(let l=n+1;l<r.length;l++){let{comment:c,followingNode:f}=r[l];if(f!==s||!qm(e.slice(o,u(c))))break;o=a(c)}return kr(e,o)}function lD(e,t){let r=e.length;if(r===0)return;let{precedingNode:n,followingNode:i}=e[0],s=t.locStart(i),u;for(u=r;u>0;--u){let{comment:a,precedingNode:o,followingNode:l}=e[u-1];sD(o,n),sD(l,i);let c=t.originalText.slice(t.locEnd(a),s);if(t.printer.isGap?.(c,t)??/^[\s(]*$/u.test(c))s=t.locStart(a);else break}for(let[a,{comment:o}]of e.entries())a<u?xi(n,o):Bi(i,o);for(let a of[n,i])a.comments&&a.comments.length>1&&a.comments.sort((o,l)=>t.locStart(o)-t.locStart(l));e.length=0}function Go(e,t,r){let n=r.locStart(t)-1;for(let i=1;i<e.length;++i)if(n<r.locStart(e[i]))return i-1;return 0}function lx(e,t){let r=t-1;r=Ir(e,r,{backwards:!0}),r=hn(e,r,{backwards:!0}),r=Ir(e,r,{backwards:!0});let n=hn(e,r,{backwards:!0});return r!==n}var Ol=lx,{breakParent:cx,hardline:ki,indent:D$,join:m$,line:fx,lineSuffix:cD}=qt;function Um(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function hx(e,t){let r=e.node,n=[Um(e,t)],{printer:i,originalText:s,locStart:u,locEnd:a}=t;if(i.isBlockComment?.(r)){let c=kr(s,a(r))?kr(s,u(r),{backwards:!0})?ki:fx:" ";n.push(c)}else n.push(ki);let l=hn(s,Ir(s,a(r)));return l!==!1&&kr(s,l)&&n.push(ki),n}function dx(e,t,r){let n=e.node,i=Um(e,t),{printer:s,originalText:u,locStart:a}=t,o=s.isBlockComment?.(n);if(r?.hasLineSuffix&&!r?.isBlock||kr(u,a(n),{backwards:!0})){let l=Ol(u,a(n));return{doc:cD([ki,l?ki:"",i]),isBlock:o,hasLineSuffix:!0}}return!o||r?.hasLineSuffix?{doc:[cD([" ",i]),cx],isBlock:o,hasLineSuffix:!0}:{doc:[" ",i],isBlock:o,hasLineSuffix:!1}}function px(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(o=>!n.has(o)).length===0)return{leading:"",trailing:""};let s=[],u=[],a;return e.each(()=>{let o=e.node;if(n?.has(o))return;let{leading:l,trailing:c}=o;l?s.push(hx(e,t)):c&&(a=dx(e,t,a),u.push(a.doc))},"comments"),{leading:s,trailing:u}}function Dx(e,t,r){let{leading:n,trailing:i}=px(e,r);return!n&&!i?t:pu(t,s=>[n,s,i])}function mx(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}var gx=()=>kB,_x={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
|
|
678
678
|
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
|
|
679
679
|
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
|
|
680
|
-
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function Il({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(i=>i.languages??[]),n=[];for(let i of Gm(Object.assign({},...e.map(({options:s})=>s),_x)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(s=>!s.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...yx(i.choices,r,e)])),i.pluginDefaults=Object.fromEntries(e.filter(s=>s.defaultOptions?.[i.name]!==void 0).map(s=>[s.name,s.defaultOptions[i.name]])),n.push(i));return{languages:r,options:n}}function*yx(e,t,r){let n=new Set(e.map(i=>i.value));for(let i of t)if(i.parsers){for(let s of i.parsers)if(!n.has(s)){n.add(s);let u=r.find(o=>o.parsers&&Object.prototype.hasOwnProperty.call(o.parsers,s)),a=i.name;u?.name&&(a+=` (plugin: ${u.name})`),yield{value:s,description:a}}}}function Gm(e){let t=[];for(let[r,n]of Object.entries(e)){let i={name:r,...n};Array.isArray(i.default)&&(i.default=Gt(0,i.default,-1).value),t.push(i)}return t}var Ex=Array.prototype.toReversed??function(){return[...this].reverse()},vx=Ii("toReversed",function(){if(Array.isArray(this))return Ex}),Fx=vx,Ax=Lt($S(),1);function wx(e){try{let t=new Ax.default(e),r=t.next();if(r===!1)return;t.close();let n=r.toString("utf8"),i=n.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/u);if(i)return i[1];let s=n.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/u);if(s)return s[1]}catch{}}var bx=wx,Wm=e=>{try{return Cx.basename(Hn(e))}catch{return""}};function fD(e,t){if(!t)return;let r=Wm(t).toLowerCase();return e.find(({filenames:n})=>n?.some(i=>i.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(i=>r.endsWith(i)))}function Rx(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}function Tx(e,t){if(!t||Wm(t).includes("."))return;let r=e.filter(({interpreters:i})=>Nm(i));if(r.length===0)return;let n=bx(t);if(n)return r.find(({interpreters:i})=>i.includes(n))}var Bx=Tx;function hD(e,t){if(t){if($n(t))try{t=Sx(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function xx(e,t){let r=Fx(0,e.plugins).flatMap(i=>i.languages??[]);return(Rx(r,t.language)??fD(r,t.physicalFile)??fD(r,t.file)??hD(r,t.physicalFile)??hD(r,t.file)??Bx?.(r,t.physicalFile))?.parsers[0]}var Tu=xx,Wo;function kx(e,t,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:s,descriptor:u}={}){if(n){if(!s)throw new Error("'FlagSchema' option is required.");if(!u)throw new Error("'descriptor' option is required.")}else u=ln;let a=i?Array.isArray(i)?(h,d)=>i.includes(h)?{[h]:d}:void 0:(h,d)=>({[h]:d}):(h,d,p)=>{let{_:D,...w}=p.schemas;return $D(h,d,{...p,schemas:w})},o=Px(t,{isCLI:n,FlagSchema:s}),l=new F2(o,{logger:r,unknown:a,descriptor:u}),c=r!==!1;c&&Wo&&(l._hasDeprecationWarned=Wo);let f=l.normalize(e);return c&&(Wo=l._hasDeprecationWarned),f}function Px(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(s2.create({name:"_"}));for(let i of e)n.push(Ox(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(i2.create({name:i.alias,sourceName:i.name}));return n}function Ox(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:i}=e,s={name:i},u,a={};switch(e.type){case"int":u=g2,t&&(s.preprocess=Number);break;case"string":u=$p;break;case"choice":u=qD,s.choices=e.choices.map(o=>o?.redirect?{...o,redirect:{to:{key:e.name,value:o.redirect}}}:o);break;case"boolean":u=a2;break;case"flag":u=n,s.flags=r.flatMap(o=>[o.alias,o.description&&o.name,o.oppositeDescription&&`no-${o.name}`].filter(Boolean));break;case"path":u=$p;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?s.validate=(o,l,c)=>e.exception(o)||l.validate(o,c):s.validate=(o,l,c)=>o===void 0||l.validate(o,c),e.redirect&&(a.redirect=o=>o?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(a.deprecated=!0),t&&!e.array){let o=s.preprocess||(l=>l);s.preprocess=(l,c,f)=>c.preprocess(o(Array.isArray(l)?Gt(0,l,-1):l),f)}return e.array?u2.create({...t?{preprocess:o=>Array.isArray(o)?o:[o]}:{},...a,valueSchema:u.create(s)}):u.create({...s,...a})}var Vm=kx,Ix=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},Lx=Ii("findLast",function(){if(Array.isArray(this))return Ix}),
|
|
681
|
-
`+n,e.codeFrame=n,e}throw e}var Ni=rk,{stripTrailingHardline:ik}=nu;async function sk(e,t,r,n,i){if(r.embeddedLanguageFormatting!=="auto")return;let{printer:s}=r,{embed:u}=s;if(!u)return;if(u.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:a}=s,{getVisitorKeys:o}=u,l=[];h();let c=e.stack;for(let{print:d,node:p,pathStack:D}of l)try{e.stack=D;let w=await d(f,t,e,r);w&&i.set(p,w)}catch(w){if(process.env.PRETTIER_DEBUG)throw w}e.stack=c;function f(d,p){return uk(d,p,r,n)}function h(){let{node:d}=e;if(d===null||typeof d!="object"||a?.(e))return;for(let D of o(d))Array.isArray(d[D])?e.each(h,D):e.call(h,D);let p=u(e,r);if(p){if(typeof p=="function"){l.push({print:p,node:d,pathStack:[...e.stack]});return}i.set(d,p)}}}async function uk(e,t,r,n){let i=await Un({...r,...t,parentParser:r.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:s}=await Ni(e,i),u=await n(s,i);return ik(u)}function ak(e,t,r,n){let{originalText:i,[Symbol.for("comments")]:s,locStart:u,locEnd:a,[Symbol.for("printedComments")]:o}=t,{node:l}=e,c=u(l),f=a(l);for(let d of s)u(d)>=c&&a(d)<=f&&o.add(d);let{printPrettierIgnored:h}=t.printer;return h?h(e,t,r,n):i.slice(c,f)}var ok=ak,{cursor:Nn}=qt;async function Bu(e,t){({ast:e}=await Zm(e,t));let r=new Map,n=new XB(e),i=gx(t),s=new Map;await sk(n,a,t,Bu,s);let u=await DD(n,t,a,void 0,s);if(mx(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[Nn,u];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[u,Nn]}return u;function a(l,c){return l===void 0||l===n?o(c):Array.isArray(l)?n.call(()=>o(c),...l):n.call(()=>o(c),l)}function o(l){i(n);let c=n.node;if(c==null)return"";let f=kl(c)&&l===void 0;if(f&&r.has(c))return r.get(c);let h=DD(n,t,a,l,s);return f&&r.set(c,h),h}}function DD(e,t,r,n,i){let{node:s}=e,{printer:u}=t,a;switch(u.hasPrettierIgnore?.(e)?a=ok(e,t,r,n):i.has(s)?a=i.get(s):a=u.print(e,t,r,n),s){case t.cursorNode:a=pu(a,o=>[Nn,o,Nn]);break;case t.nodeBeforeCursor:a=pu(a,o=>[o,Nn]);break;case t.nodeAfterCursor:a=pu(a,o=>[Nn,o]);break}return u.printComment&&!u.willPrintOwnComments?.(e,t)&&(a=Dx(e,a,t)),a}async function Zm(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("printedComments")]=new Set,ux(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function lk(e,t){let{cursorOffset:r,locStart:n,locEnd:i,getVisitorKeys:s}=t,u=d=>n(d)<=r&&i(d)>=r,a=e,o=[e];for(let d of nx(e,{getVisitorKeys:s,filter:u}))o.push(d),a=d;if(ix(a,{getVisitorKeys:s}))return{cursorNode:a};let l,c,f=-1,h=Number.POSITIVE_INFINITY;for(;o.length>0&&(l===void 0||c===void 0);){a=o.pop();let d=l!==void 0,p=c!==void 0;for(let D of Ru(a,{getVisitorKeys:s})){if(!d){let w=i(D);w<=r&&w>f&&(l=D,f=w)}if(!p){let w=n(D);w>=r&&w<h&&(c=D,h=w)}}}return{nodeBeforeCursor:l,nodeAfterCursor:c}}var eg=lk;function ck(e,t){let{printer:r}=t,n=r.massageAstNode;if(!n)return e;let{getVisitorKeys:i}=r,{ignoredProperties:s}=n;return u(e);function u(a,o){if(!kl(a))return a;if(Array.isArray(a))return a.map(h=>u(h,o)).filter(Boolean);let l={},c=new Set(i(a));for(let h in a)!Object.prototype.hasOwnProperty.call(a,h)||s?.has(h)||(c.has(h)?l[h]=u(a[h],a):l[h]=a[h]);let f=n(a,l,o);if(f!==null)return f??l}}var fk=ck,hk=Array.prototype.findLastIndex??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return t}return-1},dk=Ii("findLastIndex",function(){if(Array.isArray(this))return hk}),pk=dk,Dk=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function mk(e,t){return t=new Set(t),e.find(r=>tg.has(r.type)&&t.has(r))}function mD(e){let t=pk(0,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function gk(e,t,{locStart:r,locEnd:n}){let[i,...s]=e,[u,...a]=t;if(i===u)return[i,u];let o=r(i);for(let c of mD(a))if(r(c)>=o)u=c;else break;let l=n(u);for(let c of mD(s)){if(n(c)<=l)i=c;else break;if(i===u)break}return[i,u]}function ul(e,t,r,n,i=[],s){let{locStart:u,locEnd:a}=r,o=u(e),l=a(e);if(t>l||t<o||s==="rangeEnd"&&t===o||s==="rangeStart"&&t===l)return;let c=[e,...i],f=jm(e,c,{cache:$m,locStart:u,locEnd:a,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes});for(let h of f){let d=ul(h,t,r,n,c,s);if(d)return d}if(n(e,i[0]))return c}function _k(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var tg=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),yk=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function gD(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"hermes":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"oxc":case"oxc-ts":case"__babel_estree":return _k(t.type,r?.type);case"json":case"json5":case"jsonc":case"json-stringify":return tg.has(t.type);case"graphql":return yk.has(t.kind);case"vue":return t.tag!=="root"}return!1}function Ek(e,t,r){let{rangeStart:n,rangeEnd:i,locStart:s,locEnd:u}=t;vB(i>n);let a=e.slice(n,i).search(/\S/u),o=a===-1;if(!o)for(n+=a;i>n&&!/\S/u.test(e[i-1]);--i);let l=ul(r,n,t,(d,p)=>gD(t,d,p),[],"rangeStart");if(!l)return;let c=o?l:ul(r,i,t,d=>gD(t,d),[],"rangeEnd");if(!c)return;let f,h;if(Dk(t)){let d=mk(l,c);f=d,h=d}else[f,h]=gk(l,c,t);return[Math.min(s(f),s(h)),Math.max(u(f),u(h))]}var{addAlignmentToDoc:vk,hardline:Fk}=qt,{printDocToString:Ml}=ru,rg="\uFEFF",_D=Symbol("cursor");async function ng(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:i}=await Ni(e,t);t.cursorOffset>=0&&(t={...t,...eg(n,t)});let s=await Bu(n,t,r);r>0&&(s=vk([Fk,s],r,t.tabWidth));let u=Ml(s,t);if(r>0){let o=u.formatted.trim();u.cursorNodeStart!==void 0&&(u.cursorNodeStart-=u.formatted.indexOf(o),u.cursorNodeStart<0&&(u.cursorNodeStart=0,u.cursorNodeText=u.cursorNodeText.trimStart()),u.cursorNodeStart+u.cursorNodeText.length>o.length&&(u.cursorNodeText=u.cursorNodeText.trimEnd())),u.formatted=o+Tm(t.endOfLine)}let a=t[Symbol.for("comments")];if(t.cursorOffset>=0){let o,l,c,f;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&u.cursorNodeText)if(c=u.cursorNodeStart,f=u.cursorNodeText,t.cursorNode)o=t.locStart(t.cursorNode),l=i.slice(o,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");o=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let y=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):i.length;l=i.slice(o,y)}else o=0,l=i,c=0,f=u.formatted;let h=t.cursorOffset-o;if(l===f)return{formatted:u.formatted,cursorOffset:c+h,comments:a};let d=l.split("");d.splice(h,0,_D);let p=f.split(""),D=
|
|
680
|
+
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function Il({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(i=>i.languages??[]),n=[];for(let i of Gm(Object.assign({},...e.map(({options:s})=>s),_x)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(s=>!s.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...yx(i.choices,r,e)])),i.pluginDefaults=Object.fromEntries(e.filter(s=>s.defaultOptions?.[i.name]!==void 0).map(s=>[s.name,s.defaultOptions[i.name]])),n.push(i));return{languages:r,options:n}}function*yx(e,t,r){let n=new Set(e.map(i=>i.value));for(let i of t)if(i.parsers){for(let s of i.parsers)if(!n.has(s)){n.add(s);let u=r.find(o=>o.parsers&&Object.prototype.hasOwnProperty.call(o.parsers,s)),a=i.name;u?.name&&(a+=` (plugin: ${u.name})`),yield{value:s,description:a}}}}function Gm(e){let t=[];for(let[r,n]of Object.entries(e)){let i={name:r,...n};Array.isArray(i.default)&&(i.default=Gt(0,i.default,-1).value),t.push(i)}return t}var Ex=Array.prototype.toReversed??function(){return[...this].reverse()},vx=Ii("toReversed",function(){if(Array.isArray(this))return Ex}),Fx=vx,Ax=Lt($S(),1);function wx(e){try{let t=new Ax.default(e),r=t.next();if(r===!1)return;t.close();let n=r.toString("utf8"),i=n.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/u);if(i)return i[1];let s=n.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/u);if(s)return s[1]}catch{}}var bx=wx,Wm=e=>{try{return Cx.basename(Hn(e))}catch{return""}};function fD(e,t){if(!t)return;let r=Wm(t).toLowerCase();return e.find(({filenames:n})=>n?.some(i=>i.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(i=>r.endsWith(i)))}function Rx(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}function Tx(e,t){if(!t||Wm(t).includes("."))return;let r=e.filter(({interpreters:i})=>Nm(i));if(r.length===0)return;let n=bx(t);if(n)return r.find(({interpreters:i})=>i.includes(n))}var Bx=Tx;function hD(e,t){if(t){if($n(t))try{t=Sx(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function xx(e,t){let r=Fx(0,e.plugins).flatMap(i=>i.languages??[]);return(Rx(r,t.language)??fD(r,t.physicalFile)??fD(r,t.file)??hD(r,t.physicalFile)??hD(r,t.file)??Bx?.(r,t.physicalFile))?.parsers[0]}var Tu=xx,Wo;function kx(e,t,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:s,descriptor:u}={}){if(n){if(!s)throw new Error("'FlagSchema' option is required.");if(!u)throw new Error("'descriptor' option is required.")}else u=ln;let a=i?Array.isArray(i)?(h,d)=>i.includes(h)?{[h]:d}:void 0:(h,d)=>({[h]:d}):(h,d,p)=>{let{_:D,...w}=p.schemas;return $D(h,d,{...p,schemas:w})},o=Px(t,{isCLI:n,FlagSchema:s}),l=new F2(o,{logger:r,unknown:a,descriptor:u}),c=r!==!1;c&&Wo&&(l._hasDeprecationWarned=Wo);let f=l.normalize(e);return c&&(Wo=l._hasDeprecationWarned),f}function Px(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(s2.create({name:"_"}));for(let i of e)n.push(Ox(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(i2.create({name:i.alias,sourceName:i.name}));return n}function Ox(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:i}=e,s={name:i},u,a={};switch(e.type){case"int":u=g2,t&&(s.preprocess=Number);break;case"string":u=$p;break;case"choice":u=qD,s.choices=e.choices.map(o=>o?.redirect?{...o,redirect:{to:{key:e.name,value:o.redirect}}}:o);break;case"boolean":u=a2;break;case"flag":u=n,s.flags=r.flatMap(o=>[o.alias,o.description&&o.name,o.oppositeDescription&&`no-${o.name}`].filter(Boolean));break;case"path":u=$p;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?s.validate=(o,l,c)=>e.exception(o)||l.validate(o,c):s.validate=(o,l,c)=>o===void 0||l.validate(o,c),e.redirect&&(a.redirect=o=>o?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(a.deprecated=!0),t&&!e.array){let o=s.preprocess||(l=>l);s.preprocess=(l,c,f)=>c.preprocess(o(Array.isArray(l)?Gt(0,l,-1):l),f)}return e.array?u2.create({...t?{preprocess:o=>Array.isArray(o)?o:[o]}:{},...a,valueSchema:u.create(s)}):u.create({...s,...a})}var Vm=kx,Ix=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},Lx=Ii("findLast",function(){if(Array.isArray(this))return Ix}),Ym=Lx,Nx=Symbol.for("PRETTIER_IS_FRONT_MATTER"),Mx=[];function jx(e){return!!e?.[Nx]}var Ll=jx,{hardline:dD,markAsRoot:$x}=qt,zm=new Set(["yaml","toml"]),Km=({node:e})=>Ll(e)&&zm.has(e.language);async function Hx(e,t,r,n){let{node:i}=r,{language:s}=i;if(!zm.has(s))return;let u=i.value.trim(),a;if(u){let o=s==="yaml"?s:Tu(n,{language:s});if(!o)return;a=u?await e(u,{parser:o}):""}else a=u;return $x([i.startDelimiter,i.explicitLanguage??"",dD,a,a?dD:"",i.endDelimiter])}function qx(e,t){return Km({node:e})&&(delete t.end,delete t.raw,delete t.value),t}var Ux=qx;function Gx({node:e}){return e.raw}var Wx=Gx,Jm=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Vx=e=>Object.keys(e).filter(t=>!Jm.has(t));function Yx(e,t){let r=e?n=>e(n,Jm):Vx;return t?new Proxy(r,{apply:(n,i,s)=>Ll(s[0])?Mx:Reflect.apply(n,i,s)}):r}var pD=Yx;function Xm(e,t){if(!t)throw new Error("parserName is required.");let r=Ym(0,e,i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw new Dl(n)}function zx(e,t){if(!t)throw new Error("astFormat is required.");let r=Ym(0,e,i=>i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw new Dl(n)}function Nl({plugins:e,parser:t}){let r=Xm(e,t);return Qm(r,t)}function Qm(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}async function Kx(e,t){let r=e.printers[t],n=typeof r=="function"?await r():r;return Jx(n)}var Vo=new WeakMap;function Jx(e){if(Vo.has(e))return Vo.get(e);let{features:t,getVisitorKeys:r,embed:n,massageAstNode:i,print:s,...u}=e;t=ek(t);let a=t.experimental_frontMatterSupport;r=pD(r,a.massageAstNode||a.embed||a.print);let o=i;i&&a.massageAstNode&&(o=new Proxy(i,{apply(h,d,p){return Ux(...p),Reflect.apply(h,d,p)}}));let l=n;if(n){let h;l=new Proxy(n,{get(d,p,D){return p==="getVisitorKeys"?(h??(h=n.getVisitorKeys?pD(n.getVisitorKeys,a.massageAstNode||a.embed):r),h):Reflect.get(d,p,D)},apply:(d,p,D)=>a.embed&&Km(...D)?Hx:Reflect.apply(d,p,D)})}let c=s;a.print&&(c=new Proxy(s,{apply(h,d,p){let[D]=p;return Ll(D.node)?Wx(D):Reflect.apply(h,d,p)}}));let f={features:t,getVisitorKeys:r,embed:l,massageAstNode:o,print:c,...u};return Vo.set(e,f),f}var Xx=["clean","embed","print"],Qx=Object.fromEntries(Xx.map(e=>[e,!1]));function Zx(e){return{...Qx,...e}}function ek(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:Zx(e?.experimental_frontMatterSupport)}}var sl={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function tk(e,t={}){let r={...e};if(!r.parser)if(r.filepath){if(r.parser=Tu(r,{physicalFile:r.filepath}),!r.parser)throw new Jo(`No parser could be inferred for file "${r.filepath}".`)}else throw new Jo("No parser and no file path given, couldn't infer a parser.");let n=Il({plugins:e.plugins,showDeprecated:!0}).options,i={...sl,...Object.fromEntries(n.filter(f=>f.default!==void 0).map(f=>[f.name,f.default]))},s=Xm(r.plugins,r.parser),u=await Qm(s,r.parser);r.astFormat=u.astFormat,r.locEnd=u.locEnd,r.locStart=u.locStart;let a=s.printers?.[u.astFormat]?s:zx(r.plugins,u.astFormat),o=await Kx(a,u.astFormat);r.printer=o,r.getVisitorKeys=o.getVisitorKeys;let l=a.defaultOptions?Object.fromEntries(Object.entries(a.defaultOptions).filter(([,f])=>f!==void 0)):{},c={...i,...l};for(let[f,h]of Object.entries(c))(r[f]===null||r[f]===void 0)&&(r[f]=h);return r.parser==="json"&&(r.trailingComma="none"),Vm(r,n,{passThrough:Object.keys(sl),...t})}var Un=tk;async function rk(e,t){let r=await Nl(t),n=r.preprocess?await r.preprocess(e,t):e;t.originalText=n;let i;try{i=await r.parse(n,t,t)}catch(s){nk(s,e)}return{text:n,ast:i}}function nk(e,t){let{loc:r}=e;if(r){let n=sm(t,r,{highlightCode:!0});throw e.message+=`
|
|
681
|
+
`+n,e.codeFrame=n,e}throw e}var Ni=rk,{stripTrailingHardline:ik}=nu;async function sk(e,t,r,n,i){if(r.embeddedLanguageFormatting!=="auto")return;let{printer:s}=r,{embed:u}=s;if(!u)return;if(u.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:a}=s,{getVisitorKeys:o}=u,l=[];h();let c=e.stack;for(let{print:d,node:p,pathStack:D}of l)try{e.stack=D;let w=await d(f,t,e,r);w&&i.set(p,w)}catch(w){if(process.env.PRETTIER_DEBUG)throw w}e.stack=c;function f(d,p){return uk(d,p,r,n)}function h(){let{node:d}=e;if(d===null||typeof d!="object"||a?.(e))return;for(let D of o(d))Array.isArray(d[D])?e.each(h,D):e.call(h,D);let p=u(e,r);if(p){if(typeof p=="function"){l.push({print:p,node:d,pathStack:[...e.stack]});return}i.set(d,p)}}}async function uk(e,t,r,n){let i=await Un({...r,...t,parentParser:r.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:s}=await Ni(e,i),u=await n(s,i);return ik(u)}function ak(e,t,r,n){let{originalText:i,[Symbol.for("comments")]:s,locStart:u,locEnd:a,[Symbol.for("printedComments")]:o}=t,{node:l}=e,c=u(l),f=a(l);for(let d of s)u(d)>=c&&a(d)<=f&&o.add(d);let{printPrettierIgnored:h}=t.printer;return h?h(e,t,r,n):i.slice(c,f)}var ok=ak,{cursor:Nn}=qt;async function Bu(e,t){({ast:e}=await Zm(e,t));let r=new Map,n=new XB(e),i=gx(t),s=new Map;await sk(n,a,t,Bu,s);let u=await DD(n,t,a,void 0,s);if(mx(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[Nn,u];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[u,Nn]}return u;function a(l,c){return l===void 0||l===n?o(c):Array.isArray(l)?n.call(()=>o(c),...l):n.call(()=>o(c),l)}function o(l){i(n);let c=n.node;if(c==null)return"";let f=kl(c)&&l===void 0;if(f&&r.has(c))return r.get(c);let h=DD(n,t,a,l,s);return f&&r.set(c,h),h}}function DD(e,t,r,n,i){let{node:s}=e,{printer:u}=t,a;switch(u.hasPrettierIgnore?.(e)?a=ok(e,t,r,n):i.has(s)?a=i.get(s):a=u.print(e,t,r,n),s){case t.cursorNode:a=pu(a,o=>[Nn,o,Nn]);break;case t.nodeBeforeCursor:a=pu(a,o=>[o,Nn]);break;case t.nodeAfterCursor:a=pu(a,o=>[Nn,o]);break}return u.printComment&&!u.willPrintOwnComments?.(e,t)&&(a=Dx(e,a,t)),a}async function Zm(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("printedComments")]=new Set,ux(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function lk(e,t){let{cursorOffset:r,locStart:n,locEnd:i,getVisitorKeys:s}=t,u=d=>n(d)<=r&&i(d)>=r,a=e,o=[e];for(let d of nx(e,{getVisitorKeys:s,filter:u}))o.push(d),a=d;if(ix(a,{getVisitorKeys:s}))return{cursorNode:a};let l,c,f=-1,h=Number.POSITIVE_INFINITY;for(;o.length>0&&(l===void 0||c===void 0);){a=o.pop();let d=l!==void 0,p=c!==void 0;for(let D of Ru(a,{getVisitorKeys:s})){if(!d){let w=i(D);w<=r&&w>f&&(l=D,f=w)}if(!p){let w=n(D);w>=r&&w<h&&(c=D,h=w)}}}return{nodeBeforeCursor:l,nodeAfterCursor:c}}var eg=lk;function ck(e,t){let{printer:r}=t,n=r.massageAstNode;if(!n)return e;let{getVisitorKeys:i}=r,{ignoredProperties:s}=n;return u(e);function u(a,o){if(!kl(a))return a;if(Array.isArray(a))return a.map(h=>u(h,o)).filter(Boolean);let l={},c=new Set(i(a));for(let h in a)!Object.prototype.hasOwnProperty.call(a,h)||s?.has(h)||(c.has(h)?l[h]=u(a[h],a):l[h]=a[h]);let f=n(a,l,o);if(f!==null)return f??l}}var fk=ck,hk=Array.prototype.findLastIndex??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return t}return-1},dk=Ii("findLastIndex",function(){if(Array.isArray(this))return hk}),pk=dk,Dk=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function mk(e,t){return t=new Set(t),e.find(r=>tg.has(r.type)&&t.has(r))}function mD(e){let t=pk(0,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function gk(e,t,{locStart:r,locEnd:n}){let[i,...s]=e,[u,...a]=t;if(i===u)return[i,u];let o=r(i);for(let c of mD(a))if(r(c)>=o)u=c;else break;let l=n(u);for(let c of mD(s)){if(n(c)<=l)i=c;else break;if(i===u)break}return[i,u]}function ul(e,t,r,n,i=[],s){let{locStart:u,locEnd:a}=r,o=u(e),l=a(e);if(t>l||t<o||s==="rangeEnd"&&t===o||s==="rangeStart"&&t===l)return;let c=[e,...i],f=jm(e,c,{cache:$m,locStart:u,locEnd:a,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes});for(let h of f){let d=ul(h,t,r,n,c,s);if(d)return d}if(n(e,i[0]))return c}function _k(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var tg=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),yk=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function gD(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"hermes":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"oxc":case"oxc-ts":case"__babel_estree":return _k(t.type,r?.type);case"json":case"json5":case"jsonc":case"json-stringify":return tg.has(t.type);case"graphql":return yk.has(t.kind);case"vue":return t.tag!=="root"}return!1}function Ek(e,t,r){let{rangeStart:n,rangeEnd:i,locStart:s,locEnd:u}=t;vB(i>n);let a=e.slice(n,i).search(/\S/u),o=a===-1;if(!o)for(n+=a;i>n&&!/\S/u.test(e[i-1]);--i);let l=ul(r,n,t,(d,p)=>gD(t,d,p),[],"rangeStart");if(!l)return;let c=o?l:ul(r,i,t,d=>gD(t,d),[],"rangeEnd");if(!c)return;let f,h;if(Dk(t)){let d=mk(l,c);f=d,h=d}else[f,h]=gk(l,c,t);return[Math.min(s(f),s(h)),Math.max(u(f),u(h))]}var{addAlignmentToDoc:vk,hardline:Fk}=qt,{printDocToString:Ml}=ru,rg="\uFEFF",_D=Symbol("cursor");async function ng(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:i}=await Ni(e,t);t.cursorOffset>=0&&(t={...t,...eg(n,t)});let s=await Bu(n,t,r);r>0&&(s=vk([Fk,s],r,t.tabWidth));let u=Ml(s,t);if(r>0){let o=u.formatted.trim();u.cursorNodeStart!==void 0&&(u.cursorNodeStart-=u.formatted.indexOf(o),u.cursorNodeStart<0&&(u.cursorNodeStart=0,u.cursorNodeText=u.cursorNodeText.trimStart()),u.cursorNodeStart+u.cursorNodeText.length>o.length&&(u.cursorNodeText=u.cursorNodeText.trimEnd())),u.formatted=o+Tm(t.endOfLine)}let a=t[Symbol.for("comments")];if(t.cursorOffset>=0){let o,l,c,f;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&u.cursorNodeText)if(c=u.cursorNodeStart,f=u.cursorNodeText,t.cursorNode)o=t.locStart(t.cursorNode),l=i.slice(o,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");o=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let y=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):i.length;l=i.slice(o,y)}else o=0,l=i,c=0,f=u.formatted;let h=t.cursorOffset-o;if(l===f)return{formatted:u.formatted,cursorOffset:c+h,comments:a};let d=l.split("");d.splice(h,0,_D);let p=f.split(""),D=zS(d,p),w=c;for(let y of D)if(y.removed){if(y.value.includes(_D))break}else w+=y.count;return{formatted:u.formatted,cursorOffset:w,comments:a}}return{formatted:u.formatted,cursorOffset:-1,comments:a}}async function Ck(e,t){let{ast:r,text:n}=await Ni(e,t),[i,s]=Ek(n,t,r)??[0,0],u=n.slice(i,s),a=Math.min(i,n.lastIndexOf(`
|
|
682
682
|
`,i)+1),o=n.slice(a,i).match(/^\s*/u)[0],l=xl(o,t.tabWidth),c=await ng(u,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=s?t.cursorOffset-i:-1,endOfLine:"lf"},l),f=c.formatted.trimEnd(),{cursorOffset:h}=t;h>s?h+=f.length-u.length:c.cursorOffset>=0&&(h=c.cursorOffset+i);let d=n.slice(0,i)+f+n.slice(s);if(t.endOfLine!=="lf"){let p=Tm(t.endOfLine);h>=0&&p===`\r
|
|
683
683
|
`&&(h+=Bm(d.slice(0,h),`
|
|
684
684
|
`)),d=bu(0,d,`
|
|
685
|
-
`,p)}return{formatted:d,cursorOffset:h,comments:c.comments}}function
|
|
686
|
-
`);r-=a(r),n-=a(n),i-=a(i),e=RB(e)}return{hasBOM:u,text:e,options:yD(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s})}}async function ED(e,t){let r=await Nl(t);return!r.hasPragma||r.hasPragma(e)}async function Ak(e,t){return(await Nl(t)).hasIgnorePragma?.(e)}async function sg(e,t){let{hasBOM:r,text:n,options:i}=ig(e,await Un(t));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await ED(n,i)||i.checkIgnorePragma&&await Ak(n,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let s;return i.rangeStart>0||i.rangeEnd<n.length?s=await Ck(n,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await ED(n,i)&&(n=i.printer.insertPragma(n)),s=await ng(n,i)),r&&(s.formatted=rg+s.formatted,s.cursorOffset>=0&&s.cursorOffset++),s}async function wk(e,t,r){let{text:n,options:i}=ig(e,await Un(t)),s=await Ni(n,i);return r&&(r.preprocessForPrint&&(s.ast=await Zm(s.ast,i)),r.massage&&(s.ast=fk(s.ast,i))),s}async function bk(e,t){t=await Un(t);let r=await Bu(e,t);return Ml(r,t)}async function Sk(e,t){let r=$B(e),{formatted:n}=await sg(r,{...t,parser:"__js_expression"});return n}async function Rk(e,t){t=await Un(t);let{ast:r}=await Ni(e,t);return t.cursorOffset>=0&&(t={...t,...eg(r,t)}),Bu(r,t)}async function Tk(e,t){return Ml(e,await Un(t))}var ug={};Eu(ug,{CATEGORY_CONFIG:()=>Bk,CATEGORY_EDITOR:()=>xk,CATEGORY_FORMAT:()=>kk,CATEGORY_GLOBAL:()=>Ik,CATEGORY_OTHER:()=>Pk,CATEGORY_OUTPUT:()=>Ok,CATEGORY_SPECIAL:()=>Lk});var Bk="Config",xk="Editor",kk="Format",Pk="Other",Ok="Output",Ik="Global",Lk="Special",Nk=[{name:"CSS",type:"markup",aceMode:"css",extensions:[".css",".wxss"],tmScope:"source.css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",aceMode:"text",extensions:[".pcss",".postcss"],tmScope:"source.postcss",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",aceMode:"less",extensions:[".less"],tmScope:"source.css.less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/x-less",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",aceMode:"scss",extensions:[".scss"],tmScope:"source.css.scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],gt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Mk={singleQuote:gt.singleQuote},jk=Mk,$k=[{name:"GraphQL",type:"data",aceMode:"graphqlschema",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}],Hk={bracketSpacing:gt.bracketSpacing},qk=Hk,Uk=[{name:"Handlebars",type:"markup",aceMode:"handlebars",extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aliases:["hbs","htmlbars"],parsers:["glimmer"],vscodeLanguageIds:["handlebars"],linguistLanguageId:155}],Gk=[{name:"Angular",type:"markup",aceMode:"html",extensions:[".component.html"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",aceMode:"html",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",aceMode:"html",extensions:[],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",aceMode:"html",extensions:[".mjml"],tmScope:"text.mjml.basic",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",aceMode:"vue",extensions:[".vue"],tmScope:"source.vue",codemirrorMode:"vue",codemirrorMimeType:"text/x-vue",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],vD="HTML",Wk={bracketSameLine:gt.bracketSameLine,htmlWhitespaceSensitivity:{category:vD,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:gt.singleAttributePerLine,vueIndentScriptAndStyle:{category:vD,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Vk=Wk,zk=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],Br="JavaScript",Yk={arrowParens:{category:Br,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:gt.bracketSameLine,objectWrap:gt.objectWrap,bracketSpacing:gt.bracketSpacing,jsxBracketSameLine:{category:Br,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Br,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:Br,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:Br,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:gt.singleQuote,jsxSingleQuote:{category:Br,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Br,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Br,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:gt.singleAttributePerLine},Kk=Yk,Jk=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],Xk=[{name:"Markdown",type:"prose",aceMode:"markdown",extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["markdown"],vscodeLanguageIds:["markdown"],linguistLanguageId:222},{name:"MDX",type:"prose",aceMode:"markdown",extensions:[".mdx"],filenames:[],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["mdx"],vscodeLanguageIds:["mdx"],linguistLanguageId:222}],Qk={proseWrap:gt.proseWrap,singleQuote:gt.singleQuote},Zk=Qk,eP=[{name:"YAML",type:"data",aceMode:"yaml",extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".clangd",".gemrc","CITATION.cff","glide.lock","pixi.lock",".prettierrc",".stylelintrc",".lintstagedrc"],tmScope:"source.yaml",aliases:["yml"],codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"],linguistLanguageId:407}],tP={bracketSpacing:gt.bracketSpacing,singleQuote:gt.singleQuote,proseWrap:gt.proseWrap},rP=tP;function ag(e){let t=Object.create(null),r=Object.create(null);for(let{importPlugin:n,parsers:i=[],printers:s=[]}of e){let u=async()=>{let a=await n();return Object.assign(t,a.parsers),Object.assign(r,a.printers),a};for(let a of i)t[a]=async()=>(await u()).parsers[a];for(let a of s)r[a]=async()=>(await u()).printers[a]}return{parsers:t,printers:r}}var nP=ag([{importPlugin:()=>import("./estree-V6MYQTSR.js"),printers:["estree","estree-json"]}]),iP={...jk,...qk,...Vk,...Kk,...Zk,...rP},sP=[...Nk,...$k,...Uk,...Gk,...zk,...Jk,...Xk,...eP],{parsers:uP,printers:aP}=ag([{importPlugin:()=>import("./acorn-CAM24XUM.js"),parsers:["acorn","espree"]},{importPlugin:()=>import("./angular-DNP7YRKH.js"),parsers:["__ng_action","__ng_binding","__ng_interpolation","__ng_directive"]},{importPlugin:()=>import("./babel-Q7WGFTYC.js"),parsers:["babel","babel-flow","babel-ts","__js_expression","__ts_expression","__vue_expression","__vue_ts_expression","__vue_event_binding","__vue_ts_event_binding","__babel_estree","json","json5","jsonc","json-stringify"]},{importPlugin:()=>import("./flow-6QBD7VFZ.js"),parsers:["flow"]},{importPlugin:()=>import("./glimmer-F25SYUSG.js"),parsers:["glimmer"],printers:["glimmer"]},{importPlugin:()=>import("./graphql-DIAYZHIY.js"),parsers:["graphql"],printers:["graphql"]},{importPlugin:()=>import("./html-AE7KHAJ7.js"),parsers:["html","angular","vue","lwc","mjml"],printers:["html"]},{importPlugin:()=>import("./markdown-W7E2MOQ2.js"),parsers:["markdown","mdx","remark"],printers:["mdast"]},{importPlugin:()=>import("./meriyah-37WUJX22.js"),parsers:["meriyah"]},{importPlugin:()=>import("./postcss-7X2D3S46.js"),parsers:["css","less","scss"],printers:["postcss"]},{importPlugin:()=>import("./typescript-AXPPFPUX.js"),parsers:["typescript"]},{importPlugin:()=>import("./yaml-U74YVCK4.js"),parsers:["yaml"],printers:["yaml"]}]),oP=[nP,{options:iP,languages:sP,parsers:uP,printers:aP}];function lP(){return oP}var og=lP;function fP(e,t){return Am(e,cP.join(t,"noop.js"))}var hP=fP;async function dP(e,t){if($n(e))return import(e);if(FD.isAbsolute(e))return import(CD(e).href);try{return await import(CD(FD.resolve(e)).href)}catch{return hP(e,t)}}async function pP(e,t){let r=await dP(e,t),n=r.default??r;return{name:$n(e)?Hn(e):e,...n}}var Du=new Map;function DP(e){if(typeof e!="string"&&!(e instanceof URL))return e;let t=process.cwd(),r=JSON.stringify({name:e,cwd:t});return Du.has(r)||Du.set(r,pP(e,t)),Du.get(r)}function mP(){Du.clear()}function gP(e=[]){return Promise.all(e.map(t=>DP(t)))}var lg=gP,_P=Lt(HS(),1),EP=mu.sep==="\\"?e=>bu(0,e,"\\","/"):e=>e;function vP(e,t){let r=Hn(t),n=$n(e)?yP.fileURLToPath(e):mu.resolve(e);return mu.relative(r?mu.dirname(r):process.cwd(),n)}async function FP(e,t){let r="";if(e&&(r+=await Oi(e)??""),t||(r+=`
|
|
687
|
-
node_modules`),!r)return;let n=(0,_P.default)({allowRelativePaths:!0}).add(r);return i=>n.checkIgnore(EP(vP(i,e))).ignored}async function cg(e,t){e.length===0&&!t&&(e=[void 0]);let r=(await Promise.all(e.map(n=>FP(n,t)))).filter(Boolean);return n=>r.some(i=>i(n))}async function CP(e,t){let{ignorePath:r,withNodeModules:n}=t;return(await cg(r,n))(e)}function AP(e,t){return t=new Set(t),Object.fromEntries(Object.entries(e).filter(([r])=>!t.has(r)))}var wP=AP;async function bP(e,t={}){if(typeof e!="string"&&!(e instanceof URL))throw new TypeError(`expect \`file\` to be a string or URL, got \`${typeof e}\``);let{ignorePath:r,withNodeModules:n}=t;Array.isArray(r)||(r=[r]);let i=await CP(e,{ignorePath:r,withNodeModules:n}),s;return i||(s=t.parser??await SP(e,t)),{ignored:i,inferredParser:s??null}}async function SP(e,t){let r;if(t.resolveConfig!==!1&&(r=await wu(e,{editorconfig:!1})),r?.parser)return r.parser;let n=t.plugins??r?.plugins??[];return n=(await Promise.all([og(),lg(n)])).flat(),Tu({plugins:n},{physicalFile:e})}var RP=bP,TP="3.8.1",fg={};Eu(fg,{addDanglingComment:()=>on,addLeadingComment:()=>Bi,addTrailingComment:()=>xi,getAlignmentSize:()=>xl,getIndentSize:()=>IP,getMaxContinuousCount:()=>MP,getNextNonSpaceNonCommentCharacter:()=>$P,getNextNonSpaceNonCommentCharacterIndex:()=>XP,getPreferredQuote:()=>WP,getStringWidth:()=>
|
|
685
|
+
`,p)}return{formatted:d,cursorOffset:h,comments:c.comments}}function Yo(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function yD(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=Yo(e,r,-1),n=Yo(e,n,0),i=Yo(e,i,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:i}}function ig(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}=yD(e,t),u=e.charAt(0)===rg;if(u&&(e=e.slice(1),r--,n--,i--),s==="auto"&&(s=wB(e)),e.includes("\r")){let a=o=>Bm(e.slice(0,Math.max(o,0)),`\r
|
|
686
|
+
`);r-=a(r),n-=a(n),i-=a(i),e=RB(e)}return{hasBOM:u,text:e,options:yD(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s})}}async function ED(e,t){let r=await Nl(t);return!r.hasPragma||r.hasPragma(e)}async function Ak(e,t){return(await Nl(t)).hasIgnorePragma?.(e)}async function sg(e,t){let{hasBOM:r,text:n,options:i}=ig(e,await Un(t));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await ED(n,i)||i.checkIgnorePragma&&await Ak(n,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let s;return i.rangeStart>0||i.rangeEnd<n.length?s=await Ck(n,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await ED(n,i)&&(n=i.printer.insertPragma(n)),s=await ng(n,i)),r&&(s.formatted=rg+s.formatted,s.cursorOffset>=0&&s.cursorOffset++),s}async function wk(e,t,r){let{text:n,options:i}=ig(e,await Un(t)),s=await Ni(n,i);return r&&(r.preprocessForPrint&&(s.ast=await Zm(s.ast,i)),r.massage&&(s.ast=fk(s.ast,i))),s}async function bk(e,t){t=await Un(t);let r=await Bu(e,t);return Ml(r,t)}async function Sk(e,t){let r=$B(e),{formatted:n}=await sg(r,{...t,parser:"__js_expression"});return n}async function Rk(e,t){t=await Un(t);let{ast:r}=await Ni(e,t);return t.cursorOffset>=0&&(t={...t,...eg(r,t)}),Bu(r,t)}async function Tk(e,t){return Ml(e,await Un(t))}var ug={};Eu(ug,{CATEGORY_CONFIG:()=>Bk,CATEGORY_EDITOR:()=>xk,CATEGORY_FORMAT:()=>kk,CATEGORY_GLOBAL:()=>Ik,CATEGORY_OTHER:()=>Pk,CATEGORY_OUTPUT:()=>Ok,CATEGORY_SPECIAL:()=>Lk});var Bk="Config",xk="Editor",kk="Format",Pk="Other",Ok="Output",Ik="Global",Lk="Special",Nk=[{name:"CSS",type:"markup",aceMode:"css",extensions:[".css",".wxss"],tmScope:"source.css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",aceMode:"text",extensions:[".pcss",".postcss"],tmScope:"source.postcss",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",aceMode:"less",extensions:[".less"],tmScope:"source.css.less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/x-less",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",aceMode:"scss",extensions:[".scss"],tmScope:"source.css.scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],gt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Mk={singleQuote:gt.singleQuote},jk=Mk,$k=[{name:"GraphQL",type:"data",aceMode:"graphqlschema",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}],Hk={bracketSpacing:gt.bracketSpacing},qk=Hk,Uk=[{name:"Handlebars",type:"markup",aceMode:"handlebars",extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aliases:["hbs","htmlbars"],parsers:["glimmer"],vscodeLanguageIds:["handlebars"],linguistLanguageId:155}],Gk=[{name:"Angular",type:"markup",aceMode:"html",extensions:[".component.html"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",aceMode:"html",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",aceMode:"html",extensions:[],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",aceMode:"html",extensions:[".mjml"],tmScope:"text.mjml.basic",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",aceMode:"vue",extensions:[".vue"],tmScope:"source.vue",codemirrorMode:"vue",codemirrorMimeType:"text/x-vue",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],vD="HTML",Wk={bracketSameLine:gt.bracketSameLine,htmlWhitespaceSensitivity:{category:vD,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:gt.singleAttributePerLine,vueIndentScriptAndStyle:{category:vD,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Vk=Wk,Yk=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],Br="JavaScript",zk={arrowParens:{category:Br,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:gt.bracketSameLine,objectWrap:gt.objectWrap,bracketSpacing:gt.bracketSpacing,jsxBracketSameLine:{category:Br,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Br,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:Br,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:Br,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:gt.singleQuote,jsxSingleQuote:{category:Br,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Br,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Br,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:gt.singleAttributePerLine},Kk=zk,Jk=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],Xk=[{name:"Markdown",type:"prose",aceMode:"markdown",extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["markdown"],vscodeLanguageIds:["markdown"],linguistLanguageId:222},{name:"MDX",type:"prose",aceMode:"markdown",extensions:[".mdx"],filenames:[],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["mdx"],vscodeLanguageIds:["mdx"],linguistLanguageId:222}],Qk={proseWrap:gt.proseWrap,singleQuote:gt.singleQuote},Zk=Qk,eP=[{name:"YAML",type:"data",aceMode:"yaml",extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".clangd",".gemrc","CITATION.cff","glide.lock","pixi.lock",".prettierrc",".stylelintrc",".lintstagedrc"],tmScope:"source.yaml",aliases:["yml"],codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"],linguistLanguageId:407}],tP={bracketSpacing:gt.bracketSpacing,singleQuote:gt.singleQuote,proseWrap:gt.proseWrap},rP=tP;function ag(e){let t=Object.create(null),r=Object.create(null);for(let{importPlugin:n,parsers:i=[],printers:s=[]}of e){let u=async()=>{let a=await n();return Object.assign(t,a.parsers),Object.assign(r,a.printers),a};for(let a of i)t[a]=async()=>(await u()).parsers[a];for(let a of s)r[a]=async()=>(await u()).printers[a]}return{parsers:t,printers:r}}var nP=ag([{importPlugin:()=>import("./estree-4EWMUZGX.js"),printers:["estree","estree-json"]}]),iP={...jk,...qk,...Vk,...Kk,...Zk,...rP},sP=[...Nk,...$k,...Uk,...Gk,...Yk,...Jk,...Xk,...eP],{parsers:uP,printers:aP}=ag([{importPlugin:()=>import("./acorn-D3XGYVX5.js"),parsers:["acorn","espree"]},{importPlugin:()=>import("./angular-5D7723Z5.js"),parsers:["__ng_action","__ng_binding","__ng_interpolation","__ng_directive"]},{importPlugin:()=>import("./babel-W4SSPZLL.js"),parsers:["babel","babel-flow","babel-ts","__js_expression","__ts_expression","__vue_expression","__vue_ts_expression","__vue_event_binding","__vue_ts_event_binding","__babel_estree","json","json5","jsonc","json-stringify"]},{importPlugin:()=>import("./flow-ZZA33LBV.js"),parsers:["flow"]},{importPlugin:()=>import("./glimmer-LVONIDIY.js"),parsers:["glimmer"],printers:["glimmer"]},{importPlugin:()=>import("./graphql-2VR4PPK4.js"),parsers:["graphql"],printers:["graphql"]},{importPlugin:()=>import("./html-4U2T6EDM.js"),parsers:["html","angular","vue","lwc","mjml"],printers:["html"]},{importPlugin:()=>import("./markdown-AQL464P2.js"),parsers:["markdown","mdx","remark"],printers:["mdast"]},{importPlugin:()=>import("./meriyah-NB5R4FHL.js"),parsers:["meriyah"]},{importPlugin:()=>import("./postcss-QLC4AY6Q.js"),parsers:["css","less","scss"],printers:["postcss"]},{importPlugin:()=>import("./typescript-SBIJ6HI3.js"),parsers:["typescript"]},{importPlugin:()=>import("./yaml-OHXFJGCG.js"),parsers:["yaml"],printers:["yaml"]}]),oP=[nP,{options:iP,languages:sP,parsers:uP,printers:aP}];function lP(){return oP}var og=lP;function fP(e,t){return Am(e,cP.join(t,"noop.js"))}var hP=fP;async function dP(e,t){if($n(e))return import(e);if(FD.isAbsolute(e))return import(CD(e).href);try{return await import(CD(FD.resolve(e)).href)}catch{return hP(e,t)}}async function pP(e,t){let r=await dP(e,t),n=r.default??r;return{name:$n(e)?Hn(e):e,...n}}var Du=new Map;function DP(e){if(typeof e!="string"&&!(e instanceof URL))return e;let t=process.cwd(),r=JSON.stringify({name:e,cwd:t});return Du.has(r)||Du.set(r,pP(e,t)),Du.get(r)}function mP(){Du.clear()}function gP(e=[]){return Promise.all(e.map(t=>DP(t)))}var lg=gP,_P=Lt(HS(),1),EP=mu.sep==="\\"?e=>bu(0,e,"\\","/"):e=>e;function vP(e,t){let r=Hn(t),n=$n(e)?yP.fileURLToPath(e):mu.resolve(e);return mu.relative(r?mu.dirname(r):process.cwd(),n)}async function FP(e,t){let r="";if(e&&(r+=await Oi(e)??""),t||(r+=`
|
|
687
|
+
node_modules`),!r)return;let n=(0,_P.default)({allowRelativePaths:!0}).add(r);return i=>n.checkIgnore(EP(vP(i,e))).ignored}async function cg(e,t){e.length===0&&!t&&(e=[void 0]);let r=(await Promise.all(e.map(n=>FP(n,t)))).filter(Boolean);return n=>r.some(i=>i(n))}async function CP(e,t){let{ignorePath:r,withNodeModules:n}=t;return(await cg(r,n))(e)}function AP(e,t){return t=new Set(t),Object.fromEntries(Object.entries(e).filter(([r])=>!t.has(r)))}var wP=AP;async function bP(e,t={}){if(typeof e!="string"&&!(e instanceof URL))throw new TypeError(`expect \`file\` to be a string or URL, got \`${typeof e}\``);let{ignorePath:r,withNodeModules:n}=t;Array.isArray(r)||(r=[r]);let i=await CP(e,{ignorePath:r,withNodeModules:n}),s;return i||(s=t.parser??await SP(e,t)),{ignored:i,inferredParser:s??null}}async function SP(e,t){let r;if(t.resolveConfig!==!1&&(r=await wu(e,{editorconfig:!1})),r?.parser)return r.parser;let n=t.plugins??r?.plugins??[];return n=(await Promise.all([og(),lg(n)])).flat(),Tu({plugins:n},{physicalFile:e})}var RP=bP,TP="3.8.1",fg={};Eu(fg,{addDanglingComment:()=>on,addLeadingComment:()=>Bi,addTrailingComment:()=>xi,getAlignmentSize:()=>xl,getIndentSize:()=>IP,getMaxContinuousCount:()=>MP,getNextNonSpaceNonCommentCharacter:()=>$P,getNextNonSpaceNonCommentCharacterIndex:()=>XP,getPreferredQuote:()=>WP,getStringWidth:()=>zB,hasNewline:()=>kr,hasNewlineInRange:()=>YP,hasSpaces:()=>KP,isNextLineEmpty:()=>rO,isNextLineEmptyAfterIndex:()=>ql,isPreviousLineEmpty:()=>ZP,makeString:()=>tO,skip:()=>Li,skipEverythingButNewLine:()=>Lm,skipInlineComment:()=>jl,skipNewline:()=>hn,skipSpaces:()=>Ir,skipToLineEnd:()=>Im,skipTrailingComment:()=>$l,skipWhitespace:()=>ZB});function BP(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}var jl=BP;function xP(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Lm(e,t):t}var $l=xP;function kP(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Ir(e,n),n=jl(e,n),n=$l(e,n),n=hn(e,n);return n}var Hl=kP;function PP(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Im(e,n),n=jl(e,n),n=Ir(e,n);return n=$l(e,n),n=hn(e,n),n!==!1&&kr(e,n)}var ql=PP;function OP(e,t){let r=e.lastIndexOf(`
|
|
688
688
|
`);return r===-1?0:xl(e.slice(r+1).match(/^[\t ]*/u)[0],t)}var IP=OP;function LP(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function NP(e,t){let r=e.matchAll(new RegExp(`(?:${LP(t)})+`,"gu"));return r.reduce||(r=[...r]),r.reduce((n,[i])=>Math.max(n,i.length),0)/t.length}var MP=NP;function jP(e,t){let r=Hl(e,t);return r===!1?"":e.charAt(r)}var $P=jP,hg="'",HP='"',dg=Object.freeze({character:hg,codePoint:39}),pg=Object.freeze({character:HP,codePoint:34}),qP=Object.freeze({preferred:dg,alternate:pg}),UP=Object.freeze({preferred:pg,alternate:dg});function GP(e,t){let{preferred:r,alternate:n}=t===!0||t===hg?qP:UP,{length:i}=e,s=0,u=0;for(let a=0;a<i;a++){let o=e.charCodeAt(a);o===r.codePoint?s++:o===n.codePoint&&u++}return(s>u?n:r).character}var WP=GP;function VP(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
|
|
689
|
-
`)return!0;return!1}var
|
|
689
|
+
`)return!0;return!1}var YP=VP;function zP(e,t,r={}){return Ir(e,r.backwards?t-1:t,r)!==t}var KP=zP;function JP(e,t,r){return Hl(e,r(t))}function XP(e,t){return arguments.length===2||typeof t=="number"?Hl(e,t):JP(...arguments)}function QP(e,t,r){return Ol(e,r(t))}function ZP(e,t){return arguments.length===2||typeof t=="number"?Ol(e,t):QP(...arguments)}function eO(e,t,r){return ql(e,r(t))}function tO(e,t,r){let n=t==='"'?"'":'"',s=bu(0,e,/\\(.)|(["'])/gsu,(u,a,o)=>a===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return t+s+t}function rO(e,t){return arguments.length===2||typeof t=="number"?ql(e,t):eO(...arguments)}function xr(e,t=1){return async(...r)=>{let n=r[t]??{},{plugins:i=[]}=n;return r[t]={...n,plugins:(await Promise.all([og(),lg(i)])).flat()},e(...r)}}var Dg=xr(sg);async function xu(e,t){let{formatted:r}=await Dg(e,{...t,cursorOffset:-1});return r}async function nO(e,t){return await xu(e,t)===e}async function iO(){hB(),mP()}var sO=xr(Il,0),uO=xr((e,t)=>Tu(t,{physicalFile:e})),aO={errors:UD,optionCategories:ug,createIsIgnoredFunction:cg,formatOptionsHiddenDefaults:sl,normalizeOptions:Vm,getSupportInfoWithoutPlugins:Il,normalizeOptionSettings:Gm,inferParser:(e,t)=>Promise.resolve(t?.parser??uO(e,t)),vnopts:{ChoiceSchema:qD,apiDescriptor:ln},fastGlob:XS.default,createTwoFilesPatch:KS,picocolors:QS.default,closetLevenshteinMatch:LD,utilities:{omit:wP,createMockable:GD}},oO={parse:xr(wk),formatAST:xr(bk),formatDoc:xr(Sk),printToDoc:xr(Rk),printDocToString:xr(Tk),mockable:WD};import*as mg from"fs/promises";import*as gg from"path";var Ul={arrowParens:"always",singleQuote:!0,bracketSpacing:!1,trailingComma:"all"};async function Wt(e=process.cwd()){let t=(await mg.lstat(e)).isFile()?e:gg.resolve(e,"prettier.file");try{return await wu(t)||Ul}catch{return Ul}}async function Mr(e,t=Ul,r=""){let n=Ss(r);return xu(e,{parser:n===".tsx"||n===".ts"?"typescript":"babel",...t})}async function jr(e,t,r){let n=await r(await Pe(e));if(typeof n=="string")return t&&(n=await Mr(n,t,e)),Oe(e,n)}var cO=["tsx","ts","jsx","js","mjs","cjs"];async function _t(e,t,r=cO){let n=await lO(e);if(n.includes(t)){let i=Ue(e,t);if(!await Ls(i))return{filepath:i};for(let s of["ts","js"]){let u=Ue(e,`${t}/index.${s}`);if(await ge(Ue(e,u)))return{filepath:u,extension:s,astType:s}}}else for(let i of r){let s=`${t}.${i}`;if(n.includes(s)){let u=i==="mjs"||i==="cjs"?"js":i;return{filepath:Ue(e,s),extension:i,astType:u}}}return{}}var _g=Object.freeze(["dependencies","devDependencies","peerDependencies"]);async function ku(e,t,r){let n=await Do(te(t,"package.json")),i=await Do(te(e,"package.json")),s=new Set(["comment",...r?.ignoredKeys??[]]),u=Object.keys(i).filter(o=>!_g.includes(o));for(let o of u){if(s.has(o))continue;let l=i[o],c=n[o],f=Array.isArray(l)&&Array.isArray(c)?[...c,...l]:typeof l=="object"&&typeof c=="object"?{...c,...l}:l;n[o]=f}let a=Object.entries(n.dependencies||{}).find(([o])=>o.startsWith("@remix-run/"))?.[1];for(let o of _g)s.has(o)||i[o]&&(n[o]=[...new Set([...Object.keys(n[o]??{}),...Object.keys(i[o]??{})])].sort().reduce((l,c)=>{let f=i[o]?.[c]??n[o]?.[c];return c.startsWith("@remix-run/")&&a&&(f=a),l[c]=f,l},{}));await dd(t,r?.onResult?.(n)??n)}_();_();async function Mi(e){let t=await import("@ast-grep/napi");if(!(e in t))throw new Error(`Wrong language for AST: ${e}`);return t[e]}async function yg(e,t,r){let{filepath:n,astType:i}=await _t(e,"root");if(!n||!i)throw new ne(`Could not find root file in ${e}`);await jr(n,t,async s=>{let u=`import ${r.isDefault?r.name:`{${r.name}}`} from '${(r.isAbsolute?"":"./")+r.path}';`;if(s.includes(u.split("from")[0]))return;let o=(await Mi(i)).parse(s).root(),l=o.findAll({rule:{kind:"import_statement"}}).reverse(),c=l.find(D=>D.text().includes(".css"))||l.shift(),f=o.find({rule:{kind:"jsx_element",regex:"resetStyles",has:{kind:"jsx_opening_element",has:{kind:"identifier",pattern:"link"}}}});if(!c||!f)throw new ne('Could not find a "links" export in root file. Please add one and try again.');let h=c.text(),d=f.text(),p=r.isConditional?`{${r.name} && <link rel="stylesheet" href={${r.name}}></link>}`:`<link rel="stylesheet" href={${r.name}}></link>`;return s.replace(h,h+`
|
|
690
690
|
`+u).replace(d,p+`
|
|
691
691
|
`+d)})}async function Pu(e,t,r,n){let{filepath:i,astType:s}=await _t(e,"vite.config");if(!i||!s)throw new ne(`Could not find vite.config file in ${e}`);await jr(i,t,async u=>{let a=`import ${r.isDefault?r.name:`{${r.name}}`} from '${r.path}';`;if(new RegExp(`['"]${r.path.replace("/","\\/")}['"]`).test(u))return;let l=(await Mi(s)).parse(u).root(),c=l.findAll({rule:{kind:"import_statement"}}).pop(),f=l.find(fO);if(!c||!f)throw new ne('Could not find a "plugins" key in Vite config file. Please add one and try again.');let h=c.text(),d=f.text(),p=`${r.name}(${n?JSON.stringify(n):""})`;return u.replace(h,h+`
|
|
692
|
-
`+a).replace(d,d.replace("[",`[${p},`))})}var fO={rule:{pattern:"[$$$]",inside:{kind:"pair",stopBy:"neighbor",has:{field:"key",regex:"^plugins$",stopBy:"neighbor"},inside:{kind:"object",stopBy:"neighbor",all:[{inside:{kind:"export_statement",regex:"export default",stopBy:"end"}},{not:{inside:{kind:"object",stopBy:"end"}}}]}}}};var Eg="styles/tailwind.css";async function vg({rootDirectory:e,appDirectory:t},r=!1){let n=Mt(e,t),i={"tailwind.css":te(n,Eg)};if(!await op(i,t,r)){Os("Skipping CSS setup as some files already exist. You may use `--force` or `-f` to override it.");return}return{workPromise:Promise.all([ku(await Dt("tailwind"),e),ap("tailwind",i,e),Wt(e).then(u=>Promise.all([yg(t,u,{name:"tailwindCss",path:`${Eg}?url`,isDefault:!0}),Pu(e,u,{name:"tailwindcss",path:"@tailwindcss/vite",isDefault:!0})]))]),generatedAssets:Object.values(i),needsInstallDeps:!0}}_();async function Fg({rootDirectory:e}){return{workPromise:Promise.all([ku(await Dt("vanilla-extract"),e),Wt(e).then(r=>Pu(e,r,{path:"@vanilla-extract/vite-plugin",name:"vanillaExtractPlugin",isDefault:!1}))]),generatedAssets:[],needsInstallDeps:!0}}var Gn=[...up,"none"],ji={tailwind:"Tailwind v4","vanilla-extract":"Vanilla Extract","css-modules":"CSS Modules",postcss:"PostCSS"};function Cg(e,t,r){switch(e){case"tailwind":return vg(t,r);case"vanilla-extract":return Fg(t);case"postcss":case"css-modules":return{workPromise:Promise.resolve(),generatedAssets:[],needsInstallDeps:!1};default:throw new Error("Unknown strategy")}}async function Ag(e){let t=Object.entries({...ji,...e?.extraChoices});return St({message:"Select a styling library",...e,choices:t.map(([r,n])=>({value:r,label:n})),defaultValue:"tailwind"})}_();_();_();_();async function $r(e,t,r=!0){let{transpileTs:n}=await import("./morph-
|
|
692
|
+
`+a).replace(d,d.replace("[",`[${p},`))})}var fO={rule:{pattern:"[$$$]",inside:{kind:"pair",stopBy:"neighbor",has:{field:"key",regex:"^plugins$",stopBy:"neighbor"},inside:{kind:"object",stopBy:"neighbor",all:[{inside:{kind:"export_statement",regex:"export default",stopBy:"end"}},{not:{inside:{kind:"object",stopBy:"end"}}}]}}}};var Eg="styles/tailwind.css";async function vg({rootDirectory:e,appDirectory:t},r=!1){let n=Mt(e,t),i={"tailwind.css":te(n,Eg)};if(!await op(i,t,r)){Os("Skipping CSS setup as some files already exist. You may use `--force` or `-f` to override it.");return}return{workPromise:Promise.all([ku(await Dt("tailwind"),e),ap("tailwind",i,e),Wt(e).then(u=>Promise.all([yg(t,u,{name:"tailwindCss",path:`${Eg}?url`,isDefault:!0}),Pu(e,u,{name:"tailwindcss",path:"@tailwindcss/vite",isDefault:!0})]))]),generatedAssets:Object.values(i),needsInstallDeps:!0}}_();async function Fg({rootDirectory:e}){return{workPromise:Promise.all([ku(await Dt("vanilla-extract"),e),Wt(e).then(r=>Pu(e,r,{path:"@vanilla-extract/vite-plugin",name:"vanillaExtractPlugin",isDefault:!1}))]),generatedAssets:[],needsInstallDeps:!0}}var Gn=[...up,"none"],ji={tailwind:"Tailwind v4","vanilla-extract":"Vanilla Extract","css-modules":"CSS Modules",postcss:"PostCSS"};function Cg(e,t,r){switch(e){case"tailwind":return vg(t,r);case"vanilla-extract":return Fg(t);case"postcss":case"css-modules":return{workPromise:Promise.resolve(),generatedAssets:[],needsInstallDeps:!1};default:throw new Error("Unknown strategy")}}async function Ag(e){let t=Object.entries({...ji,...e?.extraChoices});return St({message:"Select a styling library",...e,choices:t.map(([r,n])=>({value:r,label:n})),defaultValue:"tailwind"})}_();_();_();_();async function $r(e,t,r=!0){let{transpileTs:n}=await import("./morph-XDL3KZUY.js");return n(e,t,r)}_();var wg={checkJs:!1,target:"ES2022",module:"ES2022",moduleResolution:"bundler",baseUrl:".",paths:{"~/*":["app/*"]}},hO=new Set(["noLib","target","module","moduleResolution","checkJs","experimentalDecorators","allowSyntheticDefaultImports","baseUrl","paths",...Object.keys(wg)]);function dO(e,t=!1){let r={compilerOptions:{...wg}};if(e.include&&(r.include=e.include.filter(n=>t||!n.endsWith(".d.ts")).map(n=>n.replace(/(?<!\.d)\.ts(x?)$/,".js$1"))),e.compilerOptions)for(let n of hO)e.compilerOptions[n]!==void 0&&(r.compilerOptions[n]=e.compilerOptions[n]);return r}async function Gl(e,t=!0){let r=te(e,"app/routes.ts");if(await ge(r)){let u=(await Pe(r)).replace("./layout.tsx","./layout.jsx");await Oe(r,u)}let n=await Gh("**/*.+(ts|tsx)",{absolute:!0,cwd:e,dot:!0,ignore:["**/node_modules/**"]}),i=await Wt();for(let s of n){if(s.endsWith(".d.ts")){t||await Is(s);continue}let u=await Pe(s),a=await Mr(await $r(u,s,t),i);await Is(s),await Oe(s.replace(/\.ts(x?)$/,".js$1"),a)}try{let s=te(e,"remix.config.js"),u=await Pe(s);u=u.replace(/\/server\.ts/gim,"/server.js"),await Oe(s,u)}catch(s){Te(`Could not change TS extensions in remix.config.js:
|
|
693
693
|
`+s.stack)}try{let s=te(e,"tsconfig.json"),u=await Pe(s),a=dO(JSON.parse(u.replace(/^\s*\/\/.*$/gm,"")),t);await Is(s),await Oe(te(e,"jsconfig.json"),JSON.stringify(a,null,2))}catch(s){Te(`Could not transpile tsconfig.json:
|
|
694
694
|
`+s.stack)}try{let s=JSON.parse(await Pe(te(e,"package.json")));delete s.scripts.typecheck;let u=/react-router typegen\s*&&\s*/g;for(let[a,o]of Object.entries(s.scripts||{}))typeof o=="string"&&o.includes("react-router typegen")&&(s.scripts[a]=o.replace(u,""));if(!t){delete s.devDependencies.typescript,delete s.devDependencies["@shopify/oxygen-workers-types"];for(let o of Object.keys(s.devDependencies))o.startsWith("@types/")&&delete s.devDependencies[o];let a=/\s*--codegen/;s.scripts?.dev&&(s.scripts.dev=s.scripts.dev.replace(a,"")),s.scripts?.build&&(s.scripts.build=s.scripts.build.replace(a,""))}await Oe(te(e,"package.json"),JSON.stringify(s,null,2))}catch(s){Te(`Could not remove TS dependencies from package.json:
|
|
695
695
|
`+s.stack)}try{let{filepath:s=te(e,".eslintrc.cjs")}=await _t(e,".eslintrc",["cjs","js"]),u=await Pe(s);t||(u=u.replace(/\/\*\*[\s*]+@type.+\s+\*\/\s?/gim,"")),u=u.replace(/\s*,?\s*['"`]plugin:hydrogen\/typescript['"`]/gim,"").replace(/\s+['"`]@typescript-eslint\/.+,/gim,""),await Oe(s,await Mr(u,i))}catch(s){Te(`Could not remove TS rules from .eslintrc:
|
|
696
|
-
`+s.stack)}}async function bg({rootDirectory:e,contextCreate:t=te("app","lib","context.ts")},r,n){let i="createAppLoadContext",{filepath:s,astType:u}=await DO({rootDirectory:e,contextCreate:t}),a=await Pe(n),o=await pO({rootDirectory:e,contextCreate:t},r,n);await jr(s,r,async l=>{let f=(await Mi(u)).parse(l).root(),d=f.find({rule:{kind:"identifier",inside:{kind:"formal_parameters",stopBy:"end",inside:{kind:"function_declaration",stopBy:"end",has:{kind:"identifier",regex:`^${i}$`}}}}})?.text()??"request",p=a.match(/^(export )?function (\w+)/m)?.[2];if(!p)throw new Error("Could not find the i18n function name");let D=`${p}(${d})`,w="@shopify/hydrogen",y="createHydrogenContext",m=f.find({rule:{kind:"import_specifier",inside:{kind:"import_statement",stopBy:"end",has:{kind:"string_fragment",stopBy:"end",regex:`^${w}$`}},has:{kind:"identifier",regex:`^${y}`}}}),[g,C]=m?.text().split(/\s+as\s+/)||[];if(g=C??g,!g)throw new ne(`Could not find a Hydrogen import in ${t}`,`Please import "${y}" from "${w}"`);let E=f.find({rule:{kind:"object",inside:{kind:"arguments",inside:{kind:"call_expression",has:{kind:"identifier",regex:g}}}}});if(!E)throw new ne(`Could not find a Hydrogen client instantiation with an inline object as argument in ${t}`,`Please add a call to ${g}({...})`);let P=E.find({rule:{kind:"property_identifier",regex:"^i18n$"}})?.next()?.next();if(P){if(P.text().includes(p))throw new ne("An i18n strategy is already set up.",`Remove the existing i18n property in the ${g}({...}) call to set up a new one.`);let{start:A,end:S}=P.range();l=l.slice(0,A.index)+D+l.slice(S.index)}else{let{end:A}=E.range(),S=l.slice(0,A.index-1);l=S+((/,\s*$/.test(S)?"":",")+`i18n: ${D}`)+l.slice(A.index-1)}let B=f.findAll({rule:{kind:"import_statement"}}).pop()?.range()??{end:{index:0}},O=te("~",Mt(te(e,"app"),o.slice(0,-Ss(o).length)));return l=l.slice(0,B.end.index)+`import {getLocaleFromRequest} from "${O}";`+l.slice(B.end.index),l})}async function pO({rootDirectory:e,contextCreate:t=te("app","lib","context.ts")},r,n){let i=t?.endsWith(".js")||!1,s=te(e,
|
|
696
|
+
`+s.stack)}}async function bg({rootDirectory:e,contextCreate:t=te("app","lib","context.ts")},r,n){let i="createAppLoadContext",{filepath:s,astType:u}=await DO({rootDirectory:e,contextCreate:t}),a=await Pe(n),o=await pO({rootDirectory:e,contextCreate:t},r,n);await jr(s,r,async l=>{let f=(await Mi(u)).parse(l).root(),d=f.find({rule:{kind:"identifier",inside:{kind:"formal_parameters",stopBy:"end",inside:{kind:"function_declaration",stopBy:"end",has:{kind:"identifier",regex:`^${i}$`}}}}})?.text()??"request",p=a.match(/^(export )?function (\w+)/m)?.[2];if(!p)throw new Error("Could not find the i18n function name");let D=`${p}(${d})`,w="@shopify/hydrogen",y="createHydrogenContext",m=f.find({rule:{kind:"import_specifier",inside:{kind:"import_statement",stopBy:"end",has:{kind:"string_fragment",stopBy:"end",regex:`^${w}$`}},has:{kind:"identifier",regex:`^${y}`}}}),[g,C]=m?.text().split(/\s+as\s+/)||[];if(g=C??g,!g)throw new ne(`Could not find a Hydrogen import in ${t}`,`Please import "${y}" from "${w}"`);let E=f.find({rule:{kind:"object",inside:{kind:"arguments",inside:{kind:"call_expression",has:{kind:"identifier",regex:g}}}}});if(!E)throw new ne(`Could not find a Hydrogen client instantiation with an inline object as argument in ${t}`,`Please add a call to ${g}({...})`);let P=E.find({rule:{kind:"property_identifier",regex:"^i18n$"}})?.next()?.next();if(P){if(P.text().includes(p))throw new ne("An i18n strategy is already set up.",`Remove the existing i18n property in the ${g}({...}) call to set up a new one.`);let{start:A,end:S}=P.range();l=l.slice(0,A.index)+D+l.slice(S.index)}else{let{end:A}=E.range(),S=l.slice(0,A.index-1);l=S+((/,\s*$/.test(S)?"":",")+`i18n: ${D}`)+l.slice(A.index-1)}let B=f.findAll({rule:{kind:"import_statement"}}).pop()?.range()??{end:{index:0}},O=te("~",Mt(te(e,"app"),o.slice(0,-Ss(o).length)));return l=l.slice(0,B.end.index)+`import {getLocaleFromRequest} from "${O}";`+l.slice(B.end.index),l})}async function pO({rootDirectory:e,contextCreate:t=te("app","lib","context.ts")},r,n){let i=t?.endsWith(".js")||!1,s=te(e,ze(t),i?"i18n.js":"i18n.ts");if(await ge(s))throw new ne(`${s} already exist. Renamed or remove the existing file before continue.`);return await _r(n,s),await jr(s,r,async u=>(u=u.replace(/\.\/mock-i18n-types\.js/,"@shopify/hydrogen"),i&&(u=await $r(u,n)),u)),s}async function DO({rootDirectory:e,contextCreate:t=te("app","lib","context.ts")}){let r=t.match(/\.([jt]sx?)$/)?.[1],{filepath:n,astType:i}=r?{filepath:Ue(e,t),astType:r}:await _t(e,te(t));if(!n||!i)throw new ne(`Could not find a context create file at ${Ue(e,t)}`);return{filepath:n,astType:i}}var mO=["subfolders","domains","subdomains"],Wl={subfolders:"Subfolders (example.com/fr-ca/...)",subdomains:"Subdomains (de.example.com/...)",domains:"Top-level domains (example.jp/...)"},Wn=[...mO,"none"];async function Sg(e,t){let r=await Dt("i18n",`${e}.ts`);if(!await ge(r))throw new Error("Unknown strategy");let n=await Wt(t.rootDirectory);await bg(t,n,r)}async function Rg(e){let t=Object.entries({...Wl,...e?.extraChoices});return St({message:"Select a URL structure to support multiple markets",...e,choices:t.map(([r,n])=>({value:r,label:n}))})}var gO=3e3,_O=9229,Vn={path:{path:Ne.Flags.string({description:"The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",env:"SHOPIFY_HYDROGEN_FLAG_PATH"})},port:{port:Ne.Flags.integer({description:`The port to run the server on. Defaults to ${gO}.`,env:"SHOPIFY_HYDROGEN_FLAG_PORT"})},force:{force:Ne.Flags.boolean({description:"Overwrites the destination directory and files if they already exist.",env:"SHOPIFY_HYDROGEN_FLAG_FORCE",char:"f"})},shop:{shop:Ne.Flags.string({char:"s",description:"Shop URL. It can be the shop prefix (janes-apparel) or the full myshopify.com URL (janes-apparel.myshopify.com, https://janes-apparel.myshopify.com).",env:"SHOPIFY_SHOP",parse:async e=>yi(e)})},installDeps:{"install-deps":Ne.Flags.boolean({description:"Auto installs dependencies using the active package manager.",env:"SHOPIFY_HYDROGEN_FLAG_INSTALL_DEPS",allowNo:!0})},env:{env:Ne.Flags.string({description:"Specifies the environment to perform the operation using its handle. Fetch the handle using the `env list` command.",exclusive:["env-branch"]})},envBranch:{"env-branch":Ne.Flags.string({description:"Specifies the environment to perform the operation using its Git branch name.",env:"SHOPIFY_HYDROGEN_ENVIRONMENT_BRANCH",deprecated:{to:"env",message:"--env-branch is deprecated. Use --env instead."}})},envFile:{"env-file":Ne.Flags.string({description:"Path to an environment file to override existing environment variables. Defaults to the '.env' located in your project path `--path`.",required:!1,default:".env"})},sourcemap:{sourcemap:Ne.Flags.boolean({description:"Controls whether server sourcemaps are generated. Default to `true`. Deactivate `--no-sourcemaps`.",env:"SHOPIFY_HYDROGEN_FLAG_SOURCEMAP",default:!0,allowNo:!0})},codegen:{codegen:Ne.Flags.boolean({description:"Automatically generates GraphQL types for your project\u2019s Storefront API queries.",required:!1}),"codegen-config-path":Ne.Flags.string({description:"Specifies a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if this file exists.",required:!1,dependsOn:["codegen"]})},styling:{styling:Ne.Flags.string({description:`Sets the styling strategy to use. One of ${Gn.map(e=>`\`${e}\``).join(", ")}.`,choices:Gn,env:"SHOPIFY_HYDROGEN_FLAG_STYLING"})},markets:{markets:Ne.Flags.string({description:`Sets the URL structure to support multiple markets. Must be one of: ${Wn.map(e=>`\`${e}\``).join(", ")}. Example: \`--markets subfolders\`.`,choices:Wn,env:"SHOPIFY_HYDROGEN_FLAG_I18N"})},shortcut:{shortcut:Ne.Flags.boolean({description:"Creates a global h2 shortcut for Shopify CLI using shell aliases. Deactivate with `--no-shortcut`.",env:"SHOPIFY_HYDROGEN_FLAG_SHORTCUT",allowNo:!0})},debug:{debug:Ne.Flags.boolean({description:"Enables inspector connections to the server with a debugger such as Visual Studio Code or Chrome DevTools.",env:"SHOPIFY_HYDROGEN_FLAG_DEBUG"})},inspectorPort:{"inspector-port":Ne.Flags.integer({description:`The port where the inspector is available. Defaults to ${_O}.`,env:"SHOPIFY_HYDROGEN_FLAG_INSPECTOR_PORT"})},entry:{entry:Ne.Flags.string({description:"Entry file for the worker. Defaults to `./server`.",env:"SHOPIFY_HYDROGEN_FLAG_ENTRY"})},lockfileCheck:{"lockfile-check":Ne.Flags.boolean({allowNo:!0,default:!0,description:"Checks that there is exactly one valid lockfile in the project. Defaults to `true`. Deactivate with `--no-lockfile-check`.",env:"SHOPIFY_HYDROGEN_FLAG_LOCKFILE_CHECK"})},disableRouteWarning:{"disable-route-warning":Ne.Flags.boolean({description:"Disables any warnings about missing standard routes.",env:"SHOPIFY_HYDROGEN_FLAG_DISABLE_ROUTE_WARNING"})},customerAccountPush:{"customer-account-push":Ne.Flags.boolean({description:"Use tunneling for local development and push the tunneling domain to admin. Required to use Customer Account API's OAuth flow",required:!1,env:"SHOPIFY_HYDROGEN_FLAG_CUSTOMER_ACCOUNT_PUSH"})},verbose:{verbose:Ne.Flags.boolean({description:"Outputs more information about the command's execution.",required:!1,env:"SHOPIFY_HYDROGEN_FLAG_VERBOSE"})}};function Vl(e){return Object.entries(e).reduce((t,[r,n])=>(t[Ih(r)]=n,t),{})}function Tg(e,t={}){let[,,...r]=e,n={};for(let i=0;i<r.length;i++){let s=r[i],u=r[i+1];if(s?.startsWith("-")){let a=s.replace(/^\-{1,2}/,""),o=!u||u.startsWith("-")?!0:u;o===!0&&a.startsWith("no-")&&(o=!1,a=a.replace("no-","")),n[t[a]||a]=o}}return Vl(n)}_();import{fileURLToPath as yO}from"url";var $i={cli:"@shopify/cli",cliHydrogen:"@shopify/cli-hydrogen",createApp:"@shopify/create-hydrogen"};async function Bg(){if(Er&&!process.env.SHOPIFY_UNIT_TEST)return;let{content:e}=await qs(yO(import.meta.url)).catch(()=>({content:void 0})),t=e?.name,r=e?.version;if(!t||!r||!Object.values($i).some(s=>s===t)||r.includes("next")||r.includes("experimental")||r.includes("snapshot"))return;let n=await hd(t,r);if(!n)return;let i=[{link:{label:"Hydrogen releases",url:"https://github.com/Shopify/hydrogen/releases"}}];return t===$i.cli&&i.push({link:{label:"Global CLI reference",url:"https://shopify.dev/docs/api/shopify-cli/"}}),s=>{s??=Hs(),(s==="unknown"||!s)&&(s=qh()),s==="unknown"&&(s="npm");let u=t===$i.cli?`Please install the latest Shopify CLI version with \`${s==="yarn"?`yarn global add ${$i.cli}`:`${s} install -g ${$i.cli}`}\` and try again.`:`Please use the latest version with \`${s} create @shopify/hydrogen@latest\``;return Ft({headline:"Upgrade available",body:`Version ${n} of ${t} is now available.
|
|
697
697
|
You are currently running v${r}.
|
|
698
698
|
|
|
699
|
-
`+u,reference:i}),{currentVersion:r,newVersion:n}}}_();_();import{cp as
|
|
700
|
-
`){return e.split(r).reduce((n,i)=>{let s=t?i.trim():i;return s&&n.push(s),n},[])}function Dc(e,t){return Ki(e,!0).map(r=>t(r))}function mc(e){return(0,
|
|
699
|
+
`+u,reference:i}),{currentVersion:r,newVersion:n}}}_();_();import{cp as aN}from"fs/promises";_();import{readdir as ZL,symlink as eN}from"fs/promises";_();_();var Yu=bt(kg(),1),Uu=bt(Mh(),1),$_=bt(zl(),1),zn=bt(zl(),1);import{spawn as d3}from"child_process";import{EventEmitter as TI}from"events";var Wu=Object.defineProperty,bO=Object.defineProperties,SO=Object.getOwnPropertyDescriptor,RO=Object.getOwnPropertyDescriptors,pc=Object.getOwnPropertyNames,Pg=Object.getOwnPropertySymbols,h0=Object.prototype.hasOwnProperty,TO=Object.prototype.propertyIsEnumerable,Og=(e,t,r)=>t in e?Wu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bt=(e,t)=>{for(var r in t||(t={}))h0.call(t,r)&&Og(e,r,t[r]);if(Pg)for(var r of Pg(t))TO.call(t,r)&&Og(e,r,t[r]);return e},Ui=(e,t)=>bO(e,RO(t)),J=(e,t)=>function(){return e&&(t=(0,e[pc(e)[0]])(e=0)),t},BO=(e,t)=>function(){return t||(0,e[pc(e)[0]])((t={exports:{}}).exports,t),t.exports},qe=(e,t)=>{for(var r in t)Wu(e,r,{get:t[r],enumerable:!0})},xO=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pc(t))!h0.call(e,i)&&i!==r&&Wu(e,i,{get:()=>t[i],enumerable:!(n=SO(t,i))||n.enumerable});return e},Me=e=>xO(Wu({},"__esModule",{value:!0}),e),qi=(e,t,r)=>new Promise((n,i)=>{var s=o=>{try{a(r.next(o))}catch(l){i(l)}},u=o=>{try{a(r.throw(o))}catch(l){i(l)}},a=o=>o.done?n(o.value):Promise.resolve(o.value).then(s,u);a((r=r.apply(e,t)).next())});function kO(...e){let t=new String(e);return Vu.set(t,e),t}function Hu(e){return e instanceof String&&Vu.has(e)}function Ig(e){return Vu.get(e)||[]}var Vu,Yi=J({"src/lib/args/pathspec.ts"(){"use strict";Vu=new WeakMap}}),or,qr=J({"src/lib/errors/git-error.ts"(){"use strict";or=class extends Error{constructor(e,t){super(t),this.task=e,Object.setPrototypeOf(this,new.target.prototype)}}}}),zi,Jn=J({"src/lib/errors/git-response-error.ts"(){"use strict";qr(),zi=class extends or{constructor(e,t){super(void 0,t||String(e)),this.git=e}}}}),d0,p0=J({"src/lib/errors/task-configuration-error.ts"(){"use strict";qr(),d0=class extends or{constructor(e){super(void 0,e)}}}});function D0(e){return typeof e=="function"?e:mn}function m0(e){return typeof e=="function"&&e!==mn}function g0(e,t){let r=e.indexOf(t);return r<=0?[e,""]:[e.substr(0,r),e.substr(r+1)]}function _0(e,t=0){return y0(e)&&e.length>t?e[t]:void 0}function Dn(e,t=0){if(y0(e)&&e.length>t)return e[e.length-1-t]}function y0(e){return!!(e&&typeof e.length=="number")}function Ki(e="",t=!0,r=`
|
|
700
|
+
`){return e.split(r).reduce((n,i)=>{let s=t?i.trim():i;return s&&n.push(s),n},[])}function Dc(e,t){return Ki(e,!0).map(r=>t(r))}function mc(e){return(0,Yu.exists)(e,Yu.FOLDER)}function ve(e,t){return Array.isArray(e)?e.includes(t)||e.push(t):e.add(t),t}function E0(e,t){return Array.isArray(e)&&!e.includes(t)&&e.push(t),e}function zu(e,t){if(Array.isArray(e)){let r=e.indexOf(t);r>=0&&e.splice(r,1)}else e.delete(t);return t}function Vt(e){return Array.isArray(e)?e:[e]}function v0(e){return e.replace(/[\s-]+(.)/g,(t,r)=>r.toUpperCase())}function F0(e){return Vt(e).map(String)}function Se(e,t=0){if(e==null)return t;let r=parseInt(e,10);return isNaN(r)?t:r}function Gi(e,t){let r=[];for(let n=0,i=e.length;n<i;n++)r.push(t,e[n]);return r}function Wi(e){return(Array.isArray(e)?Buffer.concat(e):e).toString("utf-8")}function C0(e,t){return Object.assign({},...t.map(r=>r in e?{[r]:e[r]}:{}))}function tc(e=0){return new Promise(t=>setTimeout(t,e))}function rc(e){if(e!==!1)return e}var Kn,mn,Ji,Ku=J({"src/lib/utils/util.ts"(){"use strict";Kn="\0",mn=()=>{},Ji=Object.prototype.toString.call.bind(Object.prototype.toString)}});function Yt(e,t,r){return t(e)?e:arguments.length>2?r:void 0}function gc(e,t){let r=Hu(e)?"string":typeof e;return/number|string|boolean/.test(r)&&(!t||!t.includes(r))}function _c(e){return!!e&&Ji(e)==="[object Object]"}function A0(e){return typeof e=="function"}var Xi,rt,w0,qu,yc,b0=J({"src/lib/utils/argument-filters.ts"(){"use strict";Ku(),Yi(),Xi=e=>Array.isArray(e),rt=e=>typeof e=="string",w0=e=>Array.isArray(e)&&e.every(rt),qu=e=>rt(e)||Array.isArray(e)&&e.every(rt),yc=e=>e==null||"number|boolean|function".includes(typeof e)?!1:Array.isArray(e)||typeof e=="string"||typeof e.length=="number"}}),nc,PO=J({"src/lib/utils/exit-codes.ts"(){"use strict";nc=(e=>(e[e.SUCCESS=0]="SUCCESS",e[e.ERROR=1]="ERROR",e[e.NOT_FOUND=-2]="NOT_FOUND",e[e.UNCLEAN=128]="UNCLEAN",e))(nc||{})}}),Vi,OO=J({"src/lib/utils/git-output-streams.ts"(){"use strict";Vi=class{constructor(e,t){this.stdOut=e,this.stdErr=t}asStrings(){return new Vi(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}}}),oe,Hr,IO=J({"src/lib/utils/line-parser.ts"(){"use strict";oe=class{constructor(e,t){this.matches=[],this.parse=(r,n)=>(this.resetMatches(),this._regExp.every((i,s)=>this.addMatch(i,s,r(s)))?this.useMatches(n,this.prepareMatches())!==!1:!1),this._regExp=Array.isArray(e)?e:[e],t&&(this.useMatches=t)}useMatches(e,t){throw new Error("LineParser:useMatches not implemented")}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,r){let n=r&&e.exec(r);return n&&this.pushMatch(t,n),!!n}pushMatch(e,t){this.matches.push(...t.slice(1))}},Hr=class extends oe{addMatch(e,t,r){return/^remote:\s/.test(String(r))&&super.addMatch(e,t,r)}pushMatch(e,t){(e>0||t.length>1)&&super.pushMatch(e,t)}}}});function S0(...e){let t=process.cwd(),r=Object.assign(Bt({baseDir:t},R0),...e.filter(n=>typeof n=="object"&&n));return r.baseDir=r.baseDir||t,r.trimmed=r.trimmed===!0,r}var R0,LO=J({"src/lib/utils/simple-git-options.ts"(){"use strict";R0={binary:"git",maxConcurrentProcesses:5,config:[],trimmed:!1}}});function Ec(e,t=[]){return _c(e)?Object.keys(e).reduce((r,n)=>{let i=e[n];return Hu(i)?r.push(i):gc(i,["boolean"])?r.push(n+"="+i):r.push(n),r},t):t}function yt(e,t=0,r=!1){let n=[];for(let i=0,s=t<0?e.length:t;i<s;i++)"string|number".includes(typeof e[i])&&n.push(String(e[i]));return Ec(vc(e),n),r||n.push(...NO(e)),n}function NO(e){let t=typeof Dn(e)=="function";return Yt(Dn(e,t?1:0),Xi,[])}function vc(e){let t=A0(Dn(e));return Yt(Dn(e,t?1:0),_c)}function je(e,t=!0){let r=D0(Dn(e));return t||m0(r)?r:void 0}var MO=J({"src/lib/utils/task-options.ts"(){"use strict";b0(),Ku(),Yi()}});function ic(e,t){return e(t.stdOut,t.stdErr)}function vt(e,t,r,n=!0){return Vt(r).forEach(i=>{for(let s=Ki(i,n),u=0,a=s.length;u<a;u++){let o=(l=0)=>{if(!(u+l>=a))return s[u+l]};t.some(({parse:l})=>l(o,e))}}),e}var jO=J({"src/lib/utils/task-parser.ts"(){"use strict";Ku()}}),T0={};qe(T0,{ExitCodes:()=>nc,GitOutputStreams:()=>Vi,LineParser:()=>oe,NOOP:()=>mn,NULL:()=>Kn,RemoteLineParser:()=>Hr,append:()=>ve,appendTaskOptions:()=>Ec,asArray:()=>Vt,asCamelCase:()=>v0,asFunction:()=>D0,asNumber:()=>Se,asStringArray:()=>F0,bufferToString:()=>Wi,callTaskParser:()=>ic,createInstanceConfig:()=>S0,delay:()=>tc,filterArray:()=>Xi,filterFunction:()=>A0,filterHasLength:()=>yc,filterPlainObject:()=>_c,filterPrimitives:()=>gc,filterString:()=>rt,filterStringArray:()=>w0,filterStringOrStringArray:()=>qu,filterType:()=>Yt,first:()=>_0,folderExists:()=>mc,forEachLineWithContent:()=>Dc,getTrailingOptions:()=>yt,including:()=>E0,isUserFunction:()=>m0,last:()=>Dn,objectToString:()=>Ji,orVoid:()=>rc,parseStringResponse:()=>vt,pick:()=>C0,prefixedArray:()=>Gi,remove:()=>zu,splitOn:()=>g0,toLinesWithContent:()=>Ki,trailingFunctionArgument:()=>je,trailingOptionsArgument:()=>vc});var ie=J({"src/lib/utils/index.ts"(){"use strict";b0(),PO(),OO(),IO(),LO(),MO(),jO(),Ku()}}),B0={};qe(B0,{CheckRepoActions:()=>sc,checkIsBareRepoTask:()=>k0,checkIsRepoRootTask:()=>x0,checkIsRepoTask:()=>$O});function $O(e){switch(e){case"bare":return k0();case"root":return x0()}return{commands:["rev-parse","--is-inside-work-tree"],format:"utf-8",onError:Ju,parser:Fc}}function x0(){return{commands:["rev-parse","--git-dir"],format:"utf-8",onError:Ju,parser(t){return/^\.(git)?$/.test(t.trim())}}}function k0(){return{commands:["rev-parse","--is-bare-repository"],format:"utf-8",onError:Ju,parser:Fc}}function HO(e){return/(Not a git repository|Kein Git-Repository)/i.test(String(e))}var sc,Ju,Fc,P0=J({"src/lib/tasks/check-is-repo.ts"(){"use strict";ie(),sc=(e=>(e.BARE="bare",e.IN_TREE="tree",e.IS_REPO_ROOT="root",e))(sc||{}),Ju=({exitCode:e},t,r,n)=>{if(e===128&&HO(t))return r(Buffer.from("false"));n(t)},Fc=e=>e.trim()==="true"}});function qO(e,t){let r=new O0(e),n=e?L0:I0;return Ki(t).forEach(i=>{let s=i.replace(n,"");r.paths.push(s),(N0.test(s)?r.folders:r.files).push(s)}),r}var O0,I0,L0,N0,UO=J({"src/lib/responses/CleanSummary.ts"(){"use strict";ie(),O0=class{constructor(e){this.dryRun=e,this.paths=[],this.files=[],this.folders=[]}},I0=/^[a-z]+\s*/i,L0=/^[a-z]+\s+[a-z]+\s*/i,N0=/\/$/}}),uc={};qe(uc,{EMPTY_COMMANDS:()=>Xu,adhocExecTask:()=>M0,configurationErrorTask:()=>Et,isBufferTask:()=>$0,isEmptyTask:()=>H0,straightThroughBufferTask:()=>j0,straightThroughStringTask:()=>ct});function M0(e){return{commands:Xu,format:"empty",parser:e}}function Et(e){return{commands:Xu,format:"empty",parser(){throw typeof e=="string"?new d0(e):e}}}function ct(e,t=!1){return{commands:e,format:"utf-8",parser(r){return t?String(r).trim():r}}}function j0(e){return{commands:e,format:"buffer",parser(t){return t}}}function $0(e){return e.format==="buffer"}function H0(e){return e.format==="empty"||!e.commands.length}var Xu,He=J({"src/lib/tasks/task.ts"(){"use strict";p0(),Xu=[]}}),q0={};qe(q0,{CONFIG_ERROR_INTERACTIVE_MODE:()=>Cc,CONFIG_ERROR_MODE_REQUIRED:()=>Ac,CONFIG_ERROR_UNKNOWN_OPTION:()=>wc,CleanOptions:()=>Nu,cleanTask:()=>U0,cleanWithOptionsTask:()=>GO,isCleanOptionsArray:()=>WO});function GO(e,t){let{cleanMode:r,options:n,valid:i}=VO(e);return r?i.options?(n.push(...t),n.some(KO)?Et(Cc):U0(r,n)):Et(wc+JSON.stringify(e)):Et(Ac)}function U0(e,t){return{commands:["clean",`-${e}`,...t],format:"utf-8",parser(n){return qO(e==="n",n)}}}function WO(e){return Array.isArray(e)&&e.every(t=>bc.has(t))}function VO(e){let t,r=[],n={cleanMode:!1,options:!0};return e.replace(/[^a-z]i/g,"").split("").forEach(i=>{YO(i)?(t=i,n.cleanMode=!0):n.options=n.options&&zO(r[r.length]=`-${i}`)}),{cleanMode:t,options:r,valid:n}}function YO(e){return e==="f"||e==="n"}function zO(e){return/^-[a-z]$/i.test(e)&&bc.has(e.charAt(1))}function KO(e){return/^-[^\-]/.test(e)?e.indexOf("i")>0:e==="--interactive"}var Cc,Ac,wc,Nu,bc,G0=J({"src/lib/tasks/clean.ts"(){"use strict";UO(),ie(),He(),Cc="Git clean interactive mode is not supported",Ac='Git clean mode parameter ("n" or "f") is required',wc="Git clean unknown option found in: ",Nu=(e=>(e.DRY_RUN="n",e.FORCE="f",e.IGNORED_INCLUDED="x",e.IGNORED_ONLY="X",e.EXCLUDING="e",e.QUIET="q",e.RECURSIVE="d",e))(Nu||{}),bc=new Set(["i",...F0(Object.values(Nu))])}});function JO(e){let t=new V0;for(let r of W0(e))t.addValue(r.file,String(r.key),r.value);return t}function XO(e,t){let r=null,n=[],i=new Map;for(let s of W0(e,t))s.key===t&&(n.push(r=s.value),i.has(s.file)||i.set(s.file,[]),i.get(s.file).push(r));return{key:t,paths:Array.from(i.keys()),scopes:i,value:r,values:n}}function QO(e){return e.replace(/^(file):/,"")}function*W0(e,t=null){let r=e.split("\0");for(let n=0,i=r.length-1;n<i;){let s=QO(r[n++]),u=r[n++],a=t;if(u.includes(`
|
|
701
701
|
`)){let o=g0(u,`
|
|
702
|
-
`);a=o[0],u=o[1]}yield{file:s,key:a,value:u}}}var V0,ZO=J({"src/lib/responses/ConfigList.ts"(){"use strict";ie(),V0=class{constructor(){this.files=[],this.values=Object.create(null)}get all(){return this._all||(this._all=this.files.reduce((e,t)=>Object.assign(e,this.values[t]),{})),this._all}addFile(e){if(!(e in this.values)){let t=Dn(this.files);this.values[e]=t?Object.create(this.values[t]):{},this.files.push(e)}return this.values[e]}addValue(e,t,r){let n=this.addFile(e);n.hasOwnProperty(t)?Array.isArray(n[t])?n[t].push(r):n[t]=[n[t],r]:n[t]=r,this._all=void 0}}}});function Kl(e,t){return typeof e=="string"&&ac.hasOwnProperty(e)?e:t}function e3(e,t,r,n){let i=["config",`--${n}`];return r&&i.push("--add"),i.push(e,t),{commands:i,format:"utf-8",parser(s){return s}}}function t3(e,t){let r=["config","--null","--show-origin","--get-all",e];return t&&r.splice(1,0,`--${t}`),{commands:r,format:"utf-8",parser(n){return XO(n,e)}}}function r3(e){let t=["config","--list","--show-origin","--null"];return e&&t.push(`--${e}`),{commands:t,format:"utf-8",parser(r){return JO(r)}}}function n3(){return{addConfig(e,t,...r){return this._runTask(e3(e,t,r[0]===!0,Kl(r[1],"local")),je(arguments))},getConfig(e,t){return this._runTask(t3(e,Kl(t,void 0)),je(arguments))},listConfig(...e){return this._runTask(r3(Kl(e[0],void 0)),je(arguments))}}}var ac,z0=J({"src/lib/tasks/config.ts"(){"use strict";ZO(),ie(),ac=(e=>(e.system="system",e.global="global",e.local="local",e.worktree="worktree",e))(ac||{})}});function i3(e){return Y0.has(e)}var Jl,Y0,K0=J({"src/lib/tasks/diff-name-status.ts"(){"use strict";Jl=(e=>(e.ADDED="A",e.COPIED="C",e.DELETED="D",e.MODIFIED="M",e.RENAMED="R",e.CHANGED="T",e.UNMERGED="U",e.UNKNOWN="X",e.BROKEN="B",e))(Jl||{}),Y0=new Set(Object.values(Jl))}});function s3(...e){return new X0().param(...e)}function u3(e){let t=new Set,r={};return Dc(e,n=>{let[i,s,u]=n.split(Kn);t.add(i),(r[i]=r[i]||[]).push({line:Se(s),path:i,preview:u})}),{paths:t,results:r}}function a3(){return{grep(e){let t=je(arguments),r=yt(arguments);for(let i of J0)if(r.includes(i))return this._runTask(Et(`git.grep: use of "${i}" is not supported.`),t);typeof e=="string"&&(e=s3().param(e));let n=["grep","--null","-n","--full-name",...r,...e];return this._runTask({commands:n,format:"utf-8",parser(i){return u3(i)}},t)}}}var J0,Hi,Lg,X0,Q0=J({"src/lib/tasks/grep.ts"(){"use strict";ie(),He(),J0=["-h"],Hi=Symbol("grepQuery"),X0=class{constructor(){this[Lg]=[]}*[(Lg=Hi,Symbol.iterator)](){for(let e of this[Hi])yield e}and(...e){return e.length&&this[Hi].push("--and","(",...Gi(e,"-e"),")"),this}param(...e){return this[Hi].push(...Gi(e,"-e")),this}}}}),Z0={};qe(Z0,{ResetMode:()=>Mu,getResetMode:()=>l3,resetTask:()=>o3});function o3(e,t){let r=["reset"];return e_(e)&&r.push(`--${e}`),r.push(...t),ct(r)}function l3(e){if(e_(e))return e;switch(typeof e){case"string":case"undefined":return"soft"}}function e_(e){return t_.includes(e)}var Mu,t_,r_=J({"src/lib/tasks/reset.ts"(){"use strict";He(),Mu=(e=>(e.MIXED="mixed",e.SOFT="soft",e.HARD="hard",e.MERGE="merge",e.KEEP="keep",e))(Mu||{}),t_=Array.from(Object.values(Mu))}});function c3(){return(0,Uu.default)("simple-git")}function Ng(e,t,r){return!t||!String(t).replace(/\s*/,"")?r?(n,...i)=>{e(n,...i),r(n,...i)}:e:(n,...i)=>{e(`%s ${n}`,t,...i),r&&r(n,...i)}}function f3(e,t,{namespace:r}){if(typeof e=="string")return e;let n=t&&t.namespace||"";return n.startsWith(r)?n.substr(r.length+1):n||r}function Sc(e,t,r,n=c3()){let i=e&&`[${e}]`||"",s=[],u=typeof t=="string"?n.extend(t):t,a=f3(zt(t,rt),u,n);return l(r);function o(c,f){return ve(s,Sc(e,a.replace(/^[^:]+/,c),f,n))}function l(c){let f=c&&`[${c}]`||"",h=u&&Ng(u,f)||mn,d=Ng(n,`${i} ${f}`,h);return Object.assign(u?h:d,{label:e,sibling:o,info:d,step:l})}}var n_=J({"src/lib/git-logger.ts"(){"use strict";ie(),Uu.default.formatters.L=e=>String(yc(e)?e.length:"-"),Uu.default.formatters.B=e=>Buffer.isBuffer(e)?e.toString("utf8"):Ji(e)}}),Iu,oc,h3=J({"src/lib/runners/tasks-pending-queue.ts"(){"use strict";qr(),n_(),Iu=class{constructor(e="GitExecutor"){this.logLabel=e,this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){let t=Iu.getName(e.commands[0]),r=Sc(this.logLabel,t);return{task:e,logger:r,name:t}}push(e){let t=this.createProgress(e);return t.logger("Adding task to the queue, commands = %o",e.commands),this._queue.set(e,t),t}fatal(e){for(let[t,{logger:r}]of Array.from(this._queue.entries()))t===e.task?(r.info("Failed %o",e),r("Fatal exception, any as-yet un-started tasks run through this executor will not be attempted")):r.info("A fatal exception occurred in a previous task, the queue has been purged: %o",e.message),this.complete(t);if(this._queue.size!==0)throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(e){this.withProgress(e)&&this._queue.delete(e)}attempt(e){let t=this.withProgress(e);if(!t)throw new or(void 0,"TasksPendingQueue: attempt called for an unknown task");return t.logger("Starting task"),t}static getName(e="empty"){return`task:${e}:${++Iu.counter}`}},oc=Iu,oc.counter=0}});function pn(e,t){return{method:_0(e.commands)||"",commands:t}}function p3(e,t){return r=>{t("[ERROR] child process exception %o",r),e.push(Buffer.from(String(r.stack),"ascii"))}}function Mg(e,t,r,n){return i=>{r("%s received %L bytes",t,i),n("%B",i),e.push(i)}}var lc,D3=J({"src/lib/runners/git-executor-chain.ts"(){"use strict";qr(),He(),ie(),h3(),lc=class{constructor(e,t,r){this._executor=e,this._scheduler=t,this._plugins=r,this._chain=Promise.resolve(),this._queue=new oc}get cwd(){return this._cwd||this._executor.cwd}set cwd(e){this._cwd=e}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(e){return this._queue.push(e),this._chain=this._chain.then(()=>this.attemptTask(e))}attemptTask(e){return qi(this,null,function*(){let t=yield this._scheduler.next(),r=()=>this._queue.complete(e);try{let{logger:n}=this._queue.attempt(e);return yield H0(e)?this.attemptEmptyTask(e,n):this.attemptRemoteTask(e,n)}catch(n){throw this.onFatalException(e,n)}finally{r(),t()}})}onFatalException(e,t){let r=t instanceof or?Object.assign(t,{task:e}):new or(e,t&&String(t));return this._chain=Promise.resolve(),this._queue.fatal(r),r}attemptRemoteTask(e,t){return qi(this,null,function*(){let r=this._plugins.exec("spawn.binary","",pn(e,e.commands)),n=this._plugins.exec("spawn.args",[...e.commands],pn(e,e.commands)),i=yield this.gitResponse(e,r,n,this.outputHandler,t.step("SPAWN")),s=yield this.handleTaskData(e,n,i,t.step("HANDLE"));return t("passing response to task's parser as a %s",e.format),$0(e)?ic(e.parser,s):ic(e.parser,s.asStrings())})}attemptEmptyTask(e,t){return qi(this,null,function*(){return t("empty task bypassing child process to call to task's parser"),e.parser(this)})}handleTaskData(e,t,r,n){let{exitCode:i,rejection:s,stdOut:u,stdErr:a}=r;return new Promise((o,l)=>{n("Preparing to handle process response exitCode=%d stdOut=",i);let{error:c}=this._plugins.exec("task.error",{error:s},Bt(Bt({},pn(e,t)),r));if(c&&e.onError)return n.info("exitCode=%s handling with custom error handler"),e.onError(r,c,f=>{n.info("custom error handler treated as success"),n("custom error returned a %s",Ji(f)),o(new Vi(Array.isArray(f)?Buffer.concat(f):f,Buffer.concat(a)))},l);if(c)return n.info("handling as error: exitCode=%s stdErr=%s rejection=%o",i,a.length,s),l(c);n.info("retrieving task output complete"),o(new Vi(Buffer.concat(u),Buffer.concat(a)))})}gitResponse(e,t,r,n,i){return qi(this,null,function*(){let s=i.sibling("output"),u=this._plugins.exec("spawn.options",{cwd:this.cwd,env:this.env,windowsHide:!0},pn(e,e.commands));return new Promise(a=>{let o=[],l=[];i.info("%s %o",t,r),i("%O",u);let c=this._beforeSpawn(e,r);if(c)return a({stdOut:o,stdErr:l,exitCode:9901,rejection:c});this._plugins.exec("spawn.before",void 0,Ui(Bt({},pn(e,r)),{kill(h){c=h||c}}));let f=d3(t,r,u);f.stdout.on("data",Mg(o,"stdOut",i,s.step("stdOut"))),f.stderr.on("data",Mg(l,"stdErr",i,s.step("stdErr"))),f.on("error",p3(l,i)),n&&(i("Passing child process stdOut/stdErr to custom outputHandler"),n(t,f.stdout,f.stderr,[...r])),this._plugins.exec("spawn.after",void 0,Ui(Bt({},pn(e,r)),{spawned:f,close(h,d){a({stdOut:o,stdErr:l,exitCode:h,rejection:c||d})},kill(h){f.killed||(c=h,f.kill("SIGINT"))}}))})})}_beforeSpawn(e,t){let r;return this._plugins.exec("spawn.before",void 0,Ui(Bt({},pn(e,t)),{kill(n){r=n||r}})),r}}}}),i_={};qe(i_,{GitExecutor:()=>s_});var s_,m3=J({"src/lib/runners/git-executor.ts"(){"use strict";D3(),s_=class{constructor(e,t,r){this.cwd=e,this._scheduler=t,this._plugins=r,this._chain=new lc(this,this._scheduler,this._plugins)}chain(){return new lc(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}}}});function g3(e,t,r=mn){let n=s=>{r(null,s)},i=s=>{s?.task===e&&r(s instanceof Yi?_3(s):s,void 0)};t.then(n,i)}function _3(e){let t=n=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${n} should be GitResponseError.git.${n}, this will no longer be available in version 3`),t=mn};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(r,{}));function r(n,i){return i in e||(n[i]={enumerable:!1,configurable:!1,get(){return t(i),e.git[i]}}),n}}var y3=J({"src/lib/task-callback.ts"(){"use strict";Jn(),ie()}});function jg(e,t){return M0(r=>{if(!mc(e))throw new Error(`Git.cwd: cannot change to non-directory "${e}"`);return(t||r).cwd=e})}var E3=J({"src/lib/tasks/change-working-directory.ts"(){"use strict";ie(),He()}});function Xl(e){let t=["checkout",...e];return t[1]==="-b"&&t.includes("-B")&&(t[1]=Yu(t,"-B")),ct(t)}function v3(){return{checkout(){return this._runTask(Xl(yt(arguments,1)),je(arguments))},checkoutBranch(e,t){return this._runTask(Xl(["-b",e,t,...yt(arguments)]),je(arguments))},checkoutLocalBranch(e){return this._runTask(Xl(["-b",e,...yt(arguments)]),je(arguments))}}}var F3=J({"src/lib/tasks/checkout.ts"(){"use strict";ie(),He()}});function C3(){return{count:0,garbage:0,inPack:0,packs:0,prunePackable:0,size:0,sizeGarbage:0,sizePack:0}}function A3(){return{countObjects(){return this._runTask({commands:["count-objects","--verbose"],format:"utf-8",parser(e){return vt(C3(),[u_],e)}})}}}var u_,w3=J({"src/lib/tasks/count-objects.ts"(){"use strict";ie(),u_=new oe(/([a-z-]+): (\d+)$/,(e,[t,r])=>{let n=v0(t);e.hasOwnProperty(n)&&(e[n]=Se(r))})}});function b3(e){return vt({author:null,branch:"",commit:"",root:!1,summary:{changes:0,insertions:0,deletions:0}},a_,e)}var a_,S3=J({"src/lib/parsers/parse-commit.ts"(){"use strict";ie(),a_=[new oe(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,(e,[t,r,n])=>{e.branch=t,e.commit=n,e.root=!!r}),new oe(/\s*Author:\s(.+)/i,(e,[t])=>{let r=t.split("<"),n=r.pop();!n||!n.includes("@")||(e.author={email:n.substr(0,n.length-1),name:r.join("<").trim()})}),new oe(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0,e.summary.insertions=parseInt(r,10)||0,e.summary.deletions=parseInt(n,10)||0}),new oe(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0;let i=parseInt(r,10)||0;n==="-"?e.summary.deletions=i:n==="+"&&(e.summary.insertions=i)})]}});function R3(e,t,r){return{commands:["-c","core.abbrev=40","commit",...Gi(e,"-m"),...t,...r],format:"utf-8",parser:b3}}function T3(){return{commit(t,...r){let n=je(arguments),i=e(t)||R3(Vt(t),Vt(zt(r[0],qu,[])),[...zt(r[1],Xi,[]),...yt(arguments,0,!0)]);return this._runTask(i,n)}};function e(t){return!qu(t)&&Et("git.commit: requires the commit message to be supplied as a string/string[]")}}var B3=J({"src/lib/tasks/commit.ts"(){"use strict";S3(),ie(),He()}});function x3(){return{firstCommit(){return this._runTask(ct(["rev-list","--max-parents=0","HEAD"],!0),je(arguments))}}}var k3=J({"src/lib/tasks/first-commit.ts"(){"use strict";ie(),He()}});function P3(e,t){let r=["hash-object",e];return t&&r.push("-w"),ct(r,!0)}var O3=J({"src/lib/tasks/hash-object.ts"(){"use strict";He()}});function I3(e,t,r){let n=String(r).trim(),i;if(i=o_.exec(n))return new ju(e,t,!1,i[1]);if(i=l_.exec(n))return new ju(e,t,!0,i[1]);let s="",u=n.split(" ");for(;u.length;)if(u.shift()==="in"){s=u.join(" ");break}return new ju(e,t,/^re/i.test(n),s)}var ju,o_,l_,L3=J({"src/lib/responses/InitSummary.ts"(){"use strict";ju=class{constructor(e,t,r,n){this.bare=e,this.path=t,this.existing=r,this.gitDir=n}},o_=/^Init.+ repository in (.+)$/,l_=/^Rein.+ in (.+)$/}});function N3(e){return e.includes(Rc)}function M3(e=!1,t,r){let n=["init",...r];return e&&!N3(n)&&n.splice(1,0,Rc),{commands:n,format:"utf-8",parser(i){return I3(n.includes("--bare"),t,i)}}}var Rc,j3=J({"src/lib/tasks/init.ts"(){"use strict";L3(),Rc="--bare"}});function Tc(e){for(let t=0;t<e.length;t++){let r=Bc.exec(e[t]);if(r)return`--${r[1]}`}return""}function $3(e){return Bc.test(e)}var Bc,Qi=J({"src/lib/args/log-format.ts"(){"use strict";Bc=/^--(stat|numstat|name-only|name-status)(=|$)/}}),c_,H3=J({"src/lib/responses/DiffSummary.ts"(){"use strict";c_=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}}}});function f_(e=""){let t=h_[e];return r=>vt(new c_,t,r,!1)}var Ql,$g,Hg,qg,h_,d_=J({"src/lib/parsers/parse-diff-summary.ts"(){"use strict";Qi(),H3(),K0(),ie(),Ql=[new oe(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,(e,[t,r,n=""])=>{e.files.push({file:t.trim(),changes:Se(r),insertions:n.replace(/[^+]/g,"").length,deletions:n.replace(/[^-]/g,"").length,binary:!1})}),new oe(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,(e,[t,r,n])=>{e.files.push({file:t.trim(),before:Se(r),after:Se(n),binary:!0})}),new oe(/(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,(e,[t,r])=>{let n=/(\d+) i/.exec(r),i=/(\d+) d/.exec(r);e.changed=Se(t),e.insertions=Se(n?.[1]),e.deletions=Se(i?.[1])})],$g=[new oe(/(\d+)\t(\d+)\t(.+)$/,(e,[t,r,n])=>{let i=Se(t),s=Se(r);e.changed++,e.insertions+=i,e.deletions+=s,e.files.push({file:n,changes:i+s,insertions:i,deletions:s,binary:!1})}),new oe(/-\t-\t(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,after:0,before:0,binary:!0})})],Hg=[new oe(/(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,changes:0,insertions:0,deletions:0,binary:!1})})],qg=[new oe(/([ACDMRTUXB])([0-9]{0,3})\t(.[^\t]*)(\t(.[^\t]*))?$/,(e,[t,r,n,i,s])=>{e.changed++,e.files.push({file:s??n,changes:0,insertions:0,deletions:0,binary:!1,status:rc(i3(t)&&t),from:rc(!!s&&n!==s&&n),similarity:Se(r)})})],h_={"":Ql,"--stat":Ql,"--numstat":$g,"--name-status":qg,"--name-only":Hg}}});function q3(e,t){return t.reduce((r,n,i)=>(r[n]=e[i]||"",r),Object.create({diff:null}))}function p_(e=Pc,t=D_,r=""){let n=f_(r);return function(i){let s=Ki(i.trim(),!1,xc).map(function(u){let a=u.split(kc),o=q3(a[0].split(e),t);return a.length>1&&a[1].trim()&&(o.diff=n(a[1])),o});return{all:s,latest:s.length&&s[0]||null,total:s.length}}}var xc,kc,Pc,D_,m_=J({"src/lib/parsers/parse-list-log-summary.ts"(){"use strict";ie(),d_(),Qi(),xc="\xF2\xF2\xF2\xF2\xF2\xF2 ",kc=" \xF2\xF2",Pc=" \xF2 ",D_=["hash","date","message","refs","author_name","author_email"]}}),g_={};qe(g_,{diffSummaryTask:()=>U3,validateLogFormatConfig:()=>Qu});function U3(e){let t=Tc(e),r=["diff"];return t===""&&(t="--stat",r.push("--stat=4096")),r.push(...e),Qu(r)||{commands:r,format:"utf-8",parser:f_(t)}}function Qu(e){let t=e.filter($3);if(t.length>1)return Et(`Summary flags are mutually exclusive - pick one of ${t.join(",")}`);if(t.length&&e.includes("-z"))return Et(`Summary flag ${t} parsing is not compatible with null termination option '-z'`)}var Oc=J({"src/lib/tasks/diff.ts"(){"use strict";Qi(),d_(),He()}});function G3(e,t){let r=[],n=[];return Object.keys(e).forEach(i=>{r.push(i),n.push(String(e[i]))}),[r,n.join(t)]}function W3(e){return Object.keys(e).reduce((t,r)=>(r in cc||(t[r]=e[r]),t),{})}function __(e={},t=[]){let r=zt(e.splitter,rt,Pc),n=!gc(e.format)&&e.format?e.format:{hash:"%H",date:e.strictDate===!1?"%ai":"%aI",message:"%s",refs:"%D",body:e.multiLine?"%B":"%b",author_name:e.mailMap!==!1?"%aN":"%an",author_email:e.mailMap!==!1?"%aE":"%ae"},[i,s]=G3(n,r),u=[],a=[`--pretty=format:${xc}${s}${kc}`,...t],o=e.n||e["max-count"]||e.maxCount;if(o&&a.push(`--max-count=${o}`),e.from||e.to){let l=e.symmetric!==!1?"...":"..";u.push(`${e.from||""}${l}${e.to||""}`)}return rt(e.file)&&a.push("--follow",kO(e.file)),Ec(W3(e),a),{fields:i,splitter:r,commands:[...a,...u]}}function V3(e,t,r){let n=p_(e,t,Tc(r));return{commands:["log",...r],format:"utf-8",parser:n}}function z3(){return{log(...r){let n=je(arguments),i=__(vc(arguments),zt(arguments[0],Xi)),s=t(...r)||Qu(i.commands)||e(i);return this._runTask(s,n)}};function e(r){return V3(r.splitter,r.fields,r.commands)}function t(r,n){return rt(r)&&rt(n)&&Et("git.log(string, string) should be replaced with git.log({ from: string, to: string })")}}var cc,y_=J({"src/lib/tasks/log.ts"(){"use strict";Qi(),zi(),m_(),ie(),He(),Oc(),cc=(e=>(e[e["--pretty"]=0]="--pretty",e[e["max-count"]=1]="max-count",e[e.maxCount=2]="maxCount",e[e.n=3]="n",e[e.file=4]="file",e[e.format=5]="format",e[e.from=6]="from",e[e.to=7]="to",e[e.splitter=8]="splitter",e[e.symmetric=9]="symmetric",e[e.mailMap=10]="mailMap",e[e.multiLine=11]="multiLine",e[e.strictDate=12]="strictDate",e))(cc||{})}}),$u,E_,Y3=J({"src/lib/responses/MergeSummary.ts"(){"use strict";$u=class{constructor(e,t=null,r){this.reason=e,this.file=t,this.meta=r}toString(){return`${this.file}:${this.reason}`}},E_=class{constructor(){this.conflicts=[],this.merges=[],this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){return this.conflicts.length?`CONFLICTS: ${this.conflicts.join(", ")}`:"OK"}}}}),fc,v_,K3=J({"src/lib/responses/PullSummary.ts"(){"use strict";fc=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},v_=class{constructor(){this.remote="",this.hash={local:"",remote:""},this.branch={local:"",remote:""},this.message=""}toString(){return this.message}}}});function Zl(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function Ug(e){let t=/^\s*(\d+)/.exec(e),r=/delta (\d+)/i.exec(e);return{count:Se(t&&t[1]||"0"),delta:Se(r&&r[1]||"0")}}var F_,J3=J({"src/lib/parsers/parse-remote-objects.ts"(){"use strict";ie(),F_=[new Hr(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[t,r])=>{let n=t.toLowerCase(),i=Zl(e.remoteMessages);Object.assign(i,{[n]:Se(r)})}),new Hr(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[t,r])=>{let n=t.toLowerCase(),i=Zl(e.remoteMessages);Object.assign(i,{[n]:Se(r)})}),new Hr(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[t,r,n])=>{let i=Zl(e.remoteMessages);i.total=Ug(t),i.reused=Ug(r),i.packReused=Se(n)})]}});function C_(e,t){return vt({remoteMessages:new w_},A_,t)}var A_,w_,b_=J({"src/lib/parsers/parse-remote-messages.ts"(){"use strict";ie(),J3(),A_=[new Hr(/^remote:\s*(.+)$/,(e,[t])=>(e.remoteMessages.all.push(t.trim()),!1)),...F_,new Hr([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[t])=>{e.remoteMessages.pullRequestUrl=t}),new Hr([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[t,r,n])=>{e.remoteMessages.vulnerabilities={count:Se(t),summary:r,url:n}})],w_=class{constructor(){this.all=[]}}}});function X3(e,t){let r=vt(new v_,S_,[e,t]);return r.message&&r}var Gg,Wg,Vg,zg,S_,Yg,Ic,R_=J({"src/lib/parsers/parse-pull.ts"(){"use strict";K3(),ie(),b_(),Gg=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,Wg=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,Vg=/^(create|delete) mode \d+ (.+)/,zg=[new oe(Gg,(e,[t,r,n])=>{e.files.push(t),r&&(e.insertions[t]=r.length),n&&(e.deletions[t]=n.length)}),new oe(Wg,(e,[t,,r,,n])=>r!==void 0||n!==void 0?(e.summary.changes=+t||0,e.summary.insertions=+r||0,e.summary.deletions=+n||0,!0):!1),new oe(Vg,(e,[t,r])=>{ve(e.files,r),ve(t==="create"?e.created:e.deleted,r)})],S_=[new oe(/^from\s(.+)$/i,(e,[t])=>{e.remote=t}),new oe(/^fatal:\s(.+)$/,(e,[t])=>{e.message=t}),new oe(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,(e,[t,r,n,i])=>{e.branch.local=n,e.hash.local=t,e.branch.remote=i,e.hash.remote=r})],Yg=(e,t)=>vt(new fc,zg,[e,t]),Ic=(e,t)=>Object.assign(new fc,Yg(e,t),C_(e,t))}}),Kg,T_,Jg,Q3=J({"src/lib/parsers/parse-merge.ts"(){"use strict";Y3(),ie(),R_(),Kg=[new oe(/^Auto-merging\s+(.+)$/,(e,[t])=>{e.merges.push(t)}),new oe(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(e,[t,r])=>{e.conflicts.push(new $u(t,r))}),new oe(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[t,r,n])=>{e.conflicts.push(new $u(t,r,{deleteRef:n}))}),new oe(/^CONFLICT\s+\((.+)\):/,(e,[t])=>{e.conflicts.push(new $u(t,null))}),new oe(/^Automatic merge failed;\s+(.+)$/,(e,[t])=>{e.result=t})],T_=(e,t)=>Object.assign(Jg(e,t),Ic(e,t)),Jg=e=>vt(new E_,Kg,e)}});function Xg(e){return e.length?{commands:["merge",...e],format:"utf-8",parser(t,r){let n=T_(t,r);if(n.failed)throw new Yi(n);return n}}:Et("Git.merge requires at least one option")}var Z3=J({"src/lib/tasks/merge.ts"(){"use strict";Jn(),Q3(),He()}});function e8(e,t,r){let n=r.includes("deleted"),i=r.includes("tag")||/^refs\/tags/.test(e),s=!r.includes("new");return{deleted:n,tag:i,branch:!i,new:!s,alreadyUpdated:s,local:e,remote:t}}var Qg,B_,Zg,t8=J({"src/lib/parsers/parse-push.ts"(){"use strict";ie(),b_(),Qg=[new oe(/^Pushing to (.+)$/,(e,[t])=>{e.repo=t}),new oe(/^updating local tracking ref '(.+)'/,(e,[t])=>{e.ref=Ui(Bt({},e.ref||{}),{local:t})}),new oe(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/,(e,[t,r,n])=>{e.pushed.push(e8(t,r,n))}),new oe(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(e,[t,r,n])=>{e.branch=Ui(Bt({},e.branch||{}),{local:t,remote:r,remoteName:n})}),new oe(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(e,[t,r,n,i])=>{e.update={head:{local:t,remote:r},hash:{from:n,to:i}}})],B_=(e,t)=>{let r=Zg(e,t),n=C_(e,t);return Bt(Bt({},r),n)},Zg=(e,t)=>vt({pushed:[]},Qg,[e,t])}}),x_={};qe(x_,{pushTagsTask:()=>r8,pushTask:()=>Lc});function r8(e={},t){return ve(t,"--tags"),Lc(e,t)}function Lc(e={},t){let r=["push",...t];return e.branch&&r.splice(1,0,e.branch),e.remote&&r.splice(1,0,e.remote),Yu(r,"-v"),ve(r,"--verbose"),ve(r,"--porcelain"),{commands:r,format:"utf-8",parser:B_}}var k_=J({"src/lib/tasks/push.ts"(){"use strict";t8(),ie()}});function n8(){return{showBuffer(){let e=["show",...yt(arguments,1)];return e.includes("--binary")||e.splice(1,0,"--binary"),this._runTask(j0(e),je(arguments))},show(){let e=["show",...yt(arguments,1)];return this._runTask(ct(e),je(arguments))}}}var i8=J({"src/lib/tasks/show.ts"(){"use strict";ie(),He()}}),e0,P_,s8=J({"src/lib/responses/FileStatusSummary.ts"(){"use strict";e0=/^(.+)\0(.+)$/,P_=class{constructor(e,t,r){if(this.path=e,this.index=t,this.working_dir=r,t==="R"||r==="R"){let n=e0.exec(e)||[null,e,e];this.from=n[2]||"",this.path=n[1]||""}}}}});function t0(e){let[t,r]=e.split(Kn);return{from:r||t,to:t}}function At(e,t,r){return[`${e}${t}`,r]}function ec(e,...t){return t.map(r=>At(e,r,(n,i)=>ve(n.conflicted,i)))}function u8(e,t){let r=t.trim();switch(" "){case r.charAt(2):return n(r.charAt(0),r.charAt(1),r.substr(3));case r.charAt(1):return n(" ",r.charAt(0),r.substr(2));default:return}function n(i,s,u){let a=`${i}${s}`,o=O_.get(a);o&&o(e,u),a!=="##"&&a!=="!!"&&e.files.push(new P_(u,i,s))}}var r0,O_,I_,a8=J({"src/lib/responses/StatusSummary.ts"(){"use strict";ie(),s8(),r0=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=()=>!this.files.length}},O_=new Map([At(" ","A",(e,t)=>ve(e.created,t)),At(" ","D",(e,t)=>ve(e.deleted,t)),At(" ","M",(e,t)=>ve(e.modified,t)),At("A"," ",(e,t)=>ve(e.created,t)&&ve(e.staged,t)),At("A","M",(e,t)=>ve(e.created,t)&&ve(e.staged,t)&&ve(e.modified,t)),At("D"," ",(e,t)=>ve(e.deleted,t)&&ve(e.staged,t)),At("M"," ",(e,t)=>ve(e.modified,t)&&ve(e.staged,t)),At("M","M",(e,t)=>ve(e.modified,t)&&ve(e.staged,t)),At("R"," ",(e,t)=>{ve(e.renamed,t0(t))}),At("R","M",(e,t)=>{let r=t0(t);ve(e.renamed,r),ve(e.modified,r.to)}),At("!","!",(e,t)=>{ve(e.ignored=e.ignored||[],t)}),At("?","?",(e,t)=>ve(e.not_added,t)),...ec("A","A","U"),...ec("D","D","U"),...ec("U","A","D","U"),["##",(e,t)=>{let r=/ahead (\d+)/,n=/behind (\d+)/,i=/^(.+?(?=(?:\.{3}|\s|$)))/,s=/\.{3}(\S*)/,u=/\son\s([\S]+)$/,a;a=r.exec(t),e.ahead=a&&+a[1]||0,a=n.exec(t),e.behind=a&&+a[1]||0,a=i.exec(t),e.current=a&&a[1],a=s.exec(t),e.tracking=a&&a[1],a=u.exec(t),e.current=a&&a[1]||e.current,e.detached=/\(no branch\)/.test(t)}]]),I_=function(e){let t=e.split(Kn),r=new r0;for(let n=0,i=t.length;n<i;){let s=t[n++].trim();s&&(s.charAt(0)==="R"&&(s+=Kn+(t[n++]||"")),u8(r,s))}return r}}});function o8(e){return{format:"utf-8",commands:["status","--porcelain","-b","-u","--null",...e.filter(r=>!L_.includes(r))],parser(r){return I_(r)}}}var L_,l8=J({"src/lib/tasks/status.ts"(){"use strict";a8(),L_=["--null","-z"]}});function Gu(e=0,t=0,r=0,n="",i=!0){return Object.defineProperty({major:e,minor:t,patch:r,agent:n,installed:i},"toString",{value(){return`${this.major}.${this.minor}.${this.patch}`},configurable:!1,enumerable:!1})}function c8(){return Gu(0,0,0,"",!1)}function f8(){return{version(){return this._runTask({commands:["--version"],format:"utf-8",parser:h8,onError(e,t,r,n){if(e.exitCode===-2)return r(Buffer.from(Nc));n(t)}})}}}function h8(e){return e===Nc?c8():vt(Gu(0,0,0,e),N_,e)}var Nc,N_,d8=J({"src/lib/tasks/version.ts"(){"use strict";ie(),Nc="installed=false",N_=[new oe(/version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,(e,[t,r,n,i=""])=>{Object.assign(e,Gu(Se(t),Se(r),Se(n),i))}),new oe(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,(e,[t,r,n,i=""])=>{Object.assign(e,Gu(Se(t),Se(r),n,i))})]}}),M_={};qe(M_,{SimpleGitApi:()=>hc});var hc,p8=J({"src/lib/simple-git-api.ts"(){"use strict";y3(),E3(),F3(),w3(),B3(),z0(),k3(),Q0(),O3(),j3(),y_(),Z3(),k_(),i8(),l8(),He(),d8(),ie(),hc=class{constructor(e){this._executor=e}_runTask(e,t){let r=this._executor.chain(),n=r.push(e);return t&&g3(e,n,t),Object.create(this,{then:{value:n.then.bind(n)},catch:{value:n.catch.bind(n)},_executor:{value:r}})}add(e){return this._runTask(ct(["add",...Vt(e)]),je(arguments))}cwd(e){let t=je(arguments);return typeof e=="string"?this._runTask(jg(e,this._executor),t):typeof e?.path=="string"?this._runTask(jg(e.path,e.root&&this._executor||void 0),t):this._runTask(Et("Git.cwd: workingDirectory must be supplied as a string"),t)}hashObject(e,t){return this._runTask(P3(e,t===!0),je(arguments))}init(e){return this._runTask(M3(e===!0,this._executor.cwd,yt(arguments)),je(arguments))}merge(){return this._runTask(Xg(yt(arguments)),je(arguments))}mergeFromTo(e,t){return rt(e)&&rt(t)?this._runTask(Xg([e,t,...yt(arguments)]),je(arguments,!1)):this._runTask(Et("Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings"))}outputHandler(e){return this._executor.outputHandler=e,this}push(){let e=Lc({remote:zt(arguments[0],rt),branch:zt(arguments[1],rt)},yt(arguments));return this._runTask(e,je(arguments))}stash(){return this._runTask(ct(["stash",...yt(arguments)]),je(arguments))}status(){return this._runTask(o8(yt(arguments)),je(arguments))}},Object.assign(hc.prototype,v3(),T3(),n3(),A3(),x3(),a3(),z3(),n8(),f8())}}),j_={};qe(j_,{Scheduler:()=>H_});var n0,H_,D8=J({"src/lib/runners/scheduler.ts"(){"use strict";ie(),n_(),n0=(()=>{let e=0;return()=>{e++;let{promise:t,done:r}=(0,$_.createDeferred)();return{promise:t,done:r,id:e}}})(),H_=class{constructor(e=2){this.concurrency=e,this.logger=Sc("","scheduler"),this.pending=[],this.running=[],this.logger("Constructed, concurrency=%s",e)}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 e=ve(this.running,this.pending.shift());this.logger("Attempting id=%s",e.id),e.done(()=>{this.logger("Completing id=",e.id),Yu(this.running,e),this.schedule()})}next(){let{promise:e,id:t}=ve(this.pending,n0());return this.logger("Scheduling id=%s",t),this.schedule(),e}}}}),q_={};qe(q_,{applyPatchTask:()=>m8});function m8(e,t){return ct(["apply",...t,...e])}var g8=J({"src/lib/tasks/apply-patch.ts"(){"use strict";He()}});function _8(e,t){return{branch:e,hash:t,success:!0}}function y8(e){return{branch:e,hash:null,success:!1}}var U_,E8=J({"src/lib/responses/BranchDeleteSummary.ts"(){"use strict";U_=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}});function G_(e,t){return t===1&&dc.test(e)}var i0,dc,s0,Zu,v8=J({"src/lib/parsers/parse-branch-delete.ts"(){"use strict";E8(),ie(),i0=/(\S+)\s+\(\S+\s([^)]+)\)/,dc=/^error[^']+'([^']+)'/m,s0=[new oe(i0,(e,[t,r])=>{let n=_8(t,r);e.all.push(n),e.branches[t]=n}),new oe(dc,(e,[t])=>{let r=y8(t);e.errors.push(r),e.all.push(r),e.branches[t]=r})],Zu=(e,t)=>vt(new U_,s0,[e,t])}}),W_,F8=J({"src/lib/responses/BranchSummary.ts"(){"use strict";W_=class{constructor(){this.all=[],this.branches={},this.current="",this.detached=!1}push(e,t,r,n,i){e==="*"&&(this.detached=t,this.current=r),this.all.push(r),this.branches[r]={current:e==="*",linkedWorkTree:e==="+",name:r,commit:n,label:i}}}}});function u0(e){return e?e.charAt(0):""}function V_(e){return vt(new W_,z_,e)}var z_,C8=J({"src/lib/parsers/parse-branch.ts"(){"use strict";F8(),ie(),z_=[new oe(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[t,r,n,i])=>{e.push(u0(t),!0,r,n,i)}),new oe(new RegExp("^([*+]\\s)?(\\S+)\\s+([a-z0-9]+)\\s?(.*)$","s"),(e,[t,r,n,i])=>{e.push(u0(t),!1,r,n,i)})]}}),Y_={};qe(Y_,{branchLocalTask:()=>w8,branchTask:()=>A8,containsDeleteBranchCommand:()=>K_,deleteBranchTask:()=>S8,deleteBranchesTask:()=>b8});function K_(e){let t=["-d","-D","--delete"];return e.some(r=>t.includes(r))}function A8(e){let t=K_(e),r=["branch",...e];return r.length===1&&r.push("-a"),r.includes("-v")||r.splice(1,0,"-v"),{format:"utf-8",commands:r,parser(n,i){return t?Zu(n,i).all[0]:V_(n)}}}function w8(){return{format:"utf-8",commands:["branch","-v"],parser:V_}}function b8(e,t=!1){return{format:"utf-8",commands:["branch","-v",t?"-D":"-d",...e],parser(r,n){return Zu(r,n)},onError({exitCode:r,stdOut:n},i,s,u){if(!G_(String(i),r))return u(i);s(n)}}}function S8(e,t=!1){let r={format:"utf-8",commands:["branch","-v",t?"-D":"-d",e],parser(n,i){return Zu(n,i).branches[e]},onError({exitCode:n,stdErr:i,stdOut:s},u,a,o){if(!G_(String(u),n))return o(u);throw new Yi(r.parser(Wi(s),Wi(i)),String(u))}};return r}var R8=J({"src/lib/tasks/branch.ts"(){"use strict";Jn(),v8(),C8(),ie()}}),J_,T8=J({"src/lib/responses/CheckIgnore.ts"(){"use strict";J_=e=>e.split(/\n/g).map(t=>t.trim()).filter(t=>!!t)}}),X_={};qe(X_,{checkIgnoreTask:()=>B8});function B8(e){return{commands:["check-ignore",...e],format:"utf-8",parser:J_}}var x8=J({"src/lib/tasks/check-ignore.ts"(){"use strict";T8()}}),Q_={};qe(Q_,{cloneMirrorTask:()=>P8,cloneTask:()=>Z_});function k8(e){return/^--upload-pack(=|$)/.test(e)}function Z_(e,t,r){let n=["clone",...r];return rt(e)&&n.push(e),rt(t)&&n.push(t),n.find(k8)?Et("git.fetch: potential exploit argument blocked."):ct(n)}function P8(e,t,r){return ve(r,"--mirror"),Z_(e,t,r)}var O8=J({"src/lib/tasks/clone.ts"(){"use strict";He(),ie()}});function I8(e,t){return vt({raw:e,remote:null,branches:[],tags:[],updated:[],deleted:[]},ey,[e,t])}var ey,L8=J({"src/lib/parsers/parse-fetch.ts"(){"use strict";ie(),ey=[new oe(/From (.+)$/,(e,[t])=>{e.remote=t}),new oe(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(e,[t,r])=>{e.branches.push({name:t,tracking:r})}),new oe(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(e,[t,r])=>{e.tags.push({name:t,tracking:r})}),new oe(/- \[deleted]\s+\S+\s*-> (.+)$/,(e,[t])=>{e.deleted.push({tracking:t})}),new oe(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,(e,[t,r,n,i])=>{e.updated.push({name:n,tracking:i,to:r,from:t})})]}}),ty={};qe(ty,{fetchTask:()=>M8});function N8(e){return/^--upload-pack(=|$)/.test(e)}function M8(e,t,r){let n=["fetch",...r];return e&&t&&n.push(e,t),n.find(N8)?Et("git.fetch: potential exploit argument blocked."):{commands:n,format:"utf-8",parser:I8}}var j8=J({"src/lib/tasks/fetch.ts"(){"use strict";L8(),He()}});function $8(e){return vt({moves:[]},ry,e)}var ry,H8=J({"src/lib/parsers/parse-move.ts"(){"use strict";ie(),ry=[new oe(/^Renaming (.+) to (.+)$/,(e,[t,r])=>{e.moves.push({from:t,to:r})})]}}),ny={};qe(ny,{moveTask:()=>q8});function q8(e,t){return{commands:["mv","-v",...Vt(e),t],format:"utf-8",parser:$8}}var U8=J({"src/lib/tasks/move.ts"(){"use strict";H8(),ie()}}),iy={};qe(iy,{pullTask:()=>G8});function G8(e,t,r){let n=["pull",...r];return e&&t&&n.splice(1,0,e,t),{commands:n,format:"utf-8",parser(i,s){return Ic(i,s)},onError(i,s,u,a){let o=X3(Wi(i.stdOut),Wi(i.stdErr));if(o)return a(new Yi(o));a(s)}}}var W8=J({"src/lib/tasks/pull.ts"(){"use strict";Jn(),R_(),ie()}});function V8(e){let t={};return sy(e,([r])=>t[r]={name:r}),Object.values(t)}function z8(e){let t={};return sy(e,([r,n,i])=>{t.hasOwnProperty(r)||(t[r]={name:r,refs:{fetch:"",push:""}}),i&&n&&(t[r].refs[i.replace(/[^a-z]/g,"")]=n)}),Object.values(t)}function sy(e,t){Dc(e,r=>t(r.split(/\s+/)))}var Y8=J({"src/lib/responses/GetRemoteSummary.ts"(){"use strict";ie()}}),uy={};qe(uy,{addRemoteTask:()=>K8,getRemotesTask:()=>J8,listRemotesTask:()=>X8,remoteTask:()=>Q8,removeRemoteTask:()=>Z8});function K8(e,t,r){return ct(["remote","add",...r,e,t])}function J8(e){let t=["remote"];return e&&t.push("-v"),{commands:t,format:"utf-8",parser:e?z8:V8}}function X8(e){let t=[...e];return t[0]!=="ls-remote"&&t.unshift("ls-remote"),ct(t)}function Q8(e){let t=[...e];return t[0]!=="remote"&&t.unshift("remote"),ct(t)}function Z8(e){return ct(["remote","remove",e])}var eI=J({"src/lib/tasks/remote.ts"(){"use strict";Y8(),He()}}),ay={};qe(ay,{stashListTask:()=>tI});function tI(e={},t){let r=__(e),n=["stash","list",...r.commands,...t],i=p_(r.splitter,r.fields,Tc(n));return Qu(n)||{commands:n,format:"utf-8",parser:i}}var rI=J({"src/lib/tasks/stash-list.ts"(){"use strict";Qi(),m_(),Oc(),y_()}}),oy={};qe(oy,{addSubModuleTask:()=>nI,initSubModuleTask:()=>iI,subModuleTask:()=>ea,updateSubModuleTask:()=>sI});function nI(e,t){return ea(["add",e,t])}function iI(e){return ea(["init",...e])}function ea(e){let t=[...e];return t[0]!=="submodule"&&t.unshift("submodule"),ct(t)}function sI(e){return ea(["update",...e])}var uI=J({"src/lib/tasks/sub-module.ts"(){"use strict";He()}});function aI(e,t){let r=isNaN(e),n=isNaN(t);return r!==n?r?1:-1:r?ly(e,t):0}function ly(e,t){return e===t?0:e>t?1:-1}function oI(e){return e.trim()}function Lu(e){return typeof e=="string"&&parseInt(e.replace(/^\D+/g,""),10)||0}var a0,cy,lI=J({"src/lib/responses/TagList.ts"(){"use strict";a0=class{constructor(e,t){this.all=e,this.latest=t}},cy=function(e,t=!1){let r=e.split(`
|
|
703
|
-
`).map(oI).filter(Boolean);t||r.sort(function(i,s){let u=i.split("."),a=s.split(".");if(u.length===1||a.length===1)return aI(Lu(u[0]),Lu(a[0]));for(let o=0,l=Math.max(u.length,a.length);o<l;o++){let c=ly(Lu(u[o]),Lu(a[o]));if(c)return c}return 0});let n=t?r[0]:[...r].reverse().find(i=>i.indexOf(".")>=0);return new a0(r,n)}}}),fy={};qe(fy,{addAnnotatedTagTask:()=>hI,addTagTask:()=>fI,tagListTask:()=>cI});function cI(e=[]){let t=e.some(r=>/^--sort=/.test(r));return{format:"utf-8",commands:["tag","-l",...e],parser(r){return cy(r,t)}}}function fI(e){return{format:"utf-8",commands:["tag",e],parser(){return{name:e}}}}function hI(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser(){return{name:e}}}}var dI=J({"src/lib/tasks/tag.ts"(){"use strict";lI()}}),pI=BO({"src/git.js"(e,t){"use strict";var{GitExecutor:r}=(m3(),Me(i_)),{SimpleGitApi:n}=(p8(),Me(M_)),{Scheduler:i}=(D8(),Me(j_)),{configurationErrorTask:s}=(He(),Me(uc)),{asArray:u,filterArray:a,filterPrimitives:o,filterString:l,filterStringOrStringArray:c,filterType:f,getTrailingOptions:h,trailingFunctionArgument:d,trailingOptionsArgument:p}=(ie(),Me(T0)),{applyPatchTask:D}=(g8(),Me(q_)),{branchTask:w,branchLocalTask:y,deleteBranchesTask:m,deleteBranchTask:g}=(R8(),Me(Y_)),{checkIgnoreTask:C}=(x8(),Me(X_)),{checkIsRepoTask:E}=(P0(),Me(B0)),{cloneTask:T,cloneMirrorTask:P}=(O8(),Me(Q_)),{cleanWithOptionsTask:b,isCleanOptionsArray:B}=(G0(),Me(q0)),{diffSummaryTask:O}=(Oc(),Me(g_)),{fetchTask:A}=(j8(),Me(ty)),{moveTask:S}=(U8(),Me(ny)),{pullTask:v}=(W8(),Me(iy)),{pushTagsTask:F}=(k_(),Me(x_)),{addRemoteTask:R,getRemotesTask:k,listRemotesTask:M,remoteTask:G,removeRemoteTask:$}=(eI(),Me(uy)),{getResetMode:U,resetTask:j}=(r_(),Me(Z0)),{stashListTask:X}=(rI(),Me(ay)),{addSubModuleTask:L,initSubModuleTask:le,subModuleTask:se,updateSubModuleTask:N}=(uI(),Me(oy)),{addAnnotatedTagTask:x,addTagTask:I,tagListTask:V}=(dI(),Me(fy)),{straightThroughBufferTask:Y,straightThroughStringTask:fe}=(He(),Me(uc));function Q(H,Z){this._plugins=Z,this._executor=new r(H.baseDir,new i(H.maxConcurrentProcesses),Z),this._trimmed=H.trimmed}(Q.prototype=Object.create(n.prototype)).constructor=Q,Q.prototype.customBinary=function(H){return this._plugins.reconfigure("binary",H),this},Q.prototype.env=function(H,Z){return arguments.length===1&&typeof H=="object"?this._executor.env=H:(this._executor.env=this._executor.env||{})[H]=Z,this},Q.prototype.stashList=function(H){return this._runTask(X(p(arguments)||{},a(H)&&H||[]),d(arguments))};function _e(H,Z,ue,me){return typeof ue!="string"?s(`git.${H}() requires a string 'repoPath'`):Z(ue,f(me,l),h(arguments))}Q.prototype.clone=function(){return this._runTask(_e("clone",T,...arguments),d(arguments))},Q.prototype.mirror=function(){return this._runTask(_e("mirror",P,...arguments),d(arguments))},Q.prototype.mv=function(H,Z){return this._runTask(S(H,Z),d(arguments))},Q.prototype.checkoutLatestTag=function(H){var Z=this;return this.pull(function(){Z.tags(function(ue,me){Z.checkout(me.latest,H)})})},Q.prototype.pull=function(H,Z,ue,me){return this._runTask(v(f(H,l),f(Z,l),h(arguments)),d(arguments))},Q.prototype.fetch=function(H,Z){return this._runTask(A(f(H,l),f(Z,l),h(arguments)),d(arguments))},Q.prototype.silent=function(H){return console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3"),this},Q.prototype.tags=function(H,Z){return this._runTask(V(h(arguments)),d(arguments))},Q.prototype.rebase=function(){return this._runTask(fe(["rebase",...h(arguments)]),d(arguments))},Q.prototype.reset=function(H){return this._runTask(j(U(H),h(arguments)),d(arguments))},Q.prototype.revert=function(H){let Z=d(arguments);return typeof H!="string"?this._runTask(s("Commit must be a string"),Z):this._runTask(fe(["revert",...h(arguments,0,!0),H]),Z)},Q.prototype.addTag=function(H){let Z=typeof H=="string"?I(H):s("Git.addTag requires a tag name");return this._runTask(Z,d(arguments))},Q.prototype.addAnnotatedTag=function(H,Z){return this._runTask(x(H,Z),d(arguments))},Q.prototype.deleteLocalBranch=function(H,Z,ue){return this._runTask(g(H,typeof Z=="boolean"?Z:!1),d(arguments))},Q.prototype.deleteLocalBranches=function(H,Z,ue){return this._runTask(m(H,typeof Z=="boolean"?Z:!1),d(arguments))},Q.prototype.branch=function(H,Z){return this._runTask(w(h(arguments)),d(arguments))},Q.prototype.branchLocal=function(H){return this._runTask(y(),d(arguments))},Q.prototype.raw=function(H){let Z=!Array.isArray(H),ue=[].slice.call(Z?arguments:H,0);for(let re=0;re<ue.length&&Z;re++)if(!o(ue[re])){ue.splice(re,ue.length-re);break}ue.push(...h(arguments,0,!0));var me=d(arguments);return ue.length?this._runTask(fe(ue,this._trimmed),me):this._runTask(s("Raw: must supply one or more command to execute"),me)},Q.prototype.submoduleAdd=function(H,Z,ue){return this._runTask(L(H,Z),d(arguments))},Q.prototype.submoduleUpdate=function(H,Z){return this._runTask(N(h(arguments,!0)),d(arguments))},Q.prototype.submoduleInit=function(H,Z){return this._runTask(le(h(arguments,!0)),d(arguments))},Q.prototype.subModule=function(H,Z){return this._runTask(se(h(arguments)),d(arguments))},Q.prototype.listRemote=function(){return this._runTask(M(h(arguments)),d(arguments))},Q.prototype.addRemote=function(H,Z,ue){return this._runTask(R(H,Z,h(arguments)),d(arguments))},Q.prototype.removeRemote=function(H,Z){return this._runTask($(H),d(arguments))},Q.prototype.getRemotes=function(H,Z){return this._runTask(k(H===!0),d(arguments))},Q.prototype.remote=function(H,Z){return this._runTask(G(h(arguments)),d(arguments))},Q.prototype.tag=function(H,Z){let ue=h(arguments);return ue[0]!=="tag"&&ue.unshift("tag"),this._runTask(fe(ue),d(arguments))},Q.prototype.updateServerInfo=function(H){return this._runTask(fe(["update-server-info"]),d(arguments))},Q.prototype.pushTags=function(H,Z){let ue=F({remote:f(H,l)},h(arguments));return this._runTask(ue,d(arguments))},Q.prototype.rm=function(H){return this._runTask(fe(["rm","-f",...u(H)]),d(arguments))},Q.prototype.rmKeepLocal=function(H){return this._runTask(fe(["rm","--cached",...u(H)]),d(arguments))},Q.prototype.catFile=function(H,Z){return this._catFile("utf-8",arguments)},Q.prototype.binaryCatFile=function(){return this._catFile("buffer",arguments)},Q.prototype._catFile=function(H,Z){var ue=d(Z),me=["cat-file"],re=Z[0];if(typeof re=="string")return this._runTask(s("Git.catFile: options must be supplied as an array of strings"),ue);Array.isArray(re)&&me.push.apply(me,re);let be=H==="buffer"?Y(me):fe(me);return this._runTask(be,ue)},Q.prototype.diff=function(H,Z){let ue=l(H)?s("git.diff: supplying options as a single string is no longer supported, switch to an array of strings"):fe(["diff",...h(arguments)]);return this._runTask(ue,d(arguments))},Q.prototype.diffSummary=function(){return this._runTask(O(h(arguments,1)),d(arguments))},Q.prototype.applyPatch=function(H){let Z=c(H)?D(u(H),h([].slice.call(arguments,1))):s("git.applyPatch requires one or more string patches as the first argument");return this._runTask(Z,d(arguments))},Q.prototype.revparse=function(){let H=["rev-parse",...h(arguments,!0)];return this._runTask(fe(H,!0),d(arguments))},Q.prototype.clean=function(H,Z,ue){let me=B(H),re=me&&H.join("")||f(H,l)||"",be=h([].slice.call(arguments,me?1:0));return this._runTask(b(re,be),d(arguments))},Q.prototype.exec=function(H){let Z={commands:[],format:"utf-8",parser(){typeof H=="function"&&H()}};return this._runTask(Z)},Q.prototype.clearQueue=function(){return this},Q.prototype.checkIgnore=function(H,Z){return this._runTask(C(u(f(H,c,[]))),d(arguments))},Q.prototype.checkIsRepo=function(H,Z){return this._runTask(E(f(H,l)),d(arguments))},t.exports=Q}});zi();qr();var DI=class extends or{constructor(e,t){super(void 0,t),this.config=e}};qr();qr();var ar=class extends or{constructor(e,t,r){super(e,r),this.task=e,this.plugin=t,Object.setPrototypeOf(this,new.target.prototype)}};Jn();p0();P0();G0();z0();K0();Q0();r_();function mI(e){return e?[{type:"spawn.before",action(n,i){e.aborted&&i.kill(new ar(void 0,"abort","Abort already signaled"))}},{type:"spawn.after",action(n,i){function s(){i.kill(new ar(void 0,"abort","Abort signal received"))}e.addEventListener("abort",s),i.spawned.on("close",()=>e.removeEventListener("abort",s))}}]:void 0}function gI(e){return typeof e=="string"&&e.trim().toLowerCase()==="-c"}function _I(e,t){if(gI(e)&&/^\s*protocol(.[a-z]+)?.allow/.test(t))throw new ar(void 0,"unsafe","Configuring protocol.allow is not permitted without enabling allowUnsafeExtProtocol")}function yI(e,t){if(/^\s*--(upload|receive)-pack/.test(e))throw new ar(void 0,"unsafe","Use of --upload-pack or --receive-pack is not permitted without enabling allowUnsafePack");if(t==="clone"&&/^\s*-u\b/.test(e))throw new ar(void 0,"unsafe","Use of clone with option -u is not permitted without enabling allowUnsafePack");if(t==="push"&&/^\s*--exec\b/.test(e))throw new ar(void 0,"unsafe","Use of push with option --exec is not permitted without enabling allowUnsafePack")}function EI({allowUnsafeProtocolOverride:e=!1,allowUnsafePack:t=!1}={}){return{type:"spawn.args",action(r,n){return r.forEach((i,s)=>{let u=s<r.length?r[s+1]:"";e||_I(i,u),t||yI(i,n.method)}),r}}}ie();function vI(e){let t=Gi(e,"-c");return{type:"spawn.args",action(r){return[...t,...r]}}}ie();var o0=(0,Yn.deferred)().promise;function FI({onClose:e=!0,onExit:t=50}={}){function r(){let i=-1,s={close:(0,Yn.deferred)(),closeTimeout:(0,Yn.deferred)(),exit:(0,Yn.deferred)(),exitTimeout:(0,Yn.deferred)()},u=Promise.race([e===!1?o0:s.closeTimeout.promise,t===!1?o0:s.exitTimeout.promise]);return n(e,s.close,s.closeTimeout),n(t,s.exit,s.exitTimeout),{close(a){i=a,s.close.done()},exit(a){i=a,s.exit.done()},get exitCode(){return i},result:u}}function n(i,s,u){i!==!1&&(i===!0?s.promise:s.promise.then(()=>tc(i))).then(u.done)}return{type:"spawn.after",action(i,s){return qi(this,arguments,function*(u,{spawned:a,close:o}){var l,c;let f=r(),h=!0,d=()=>{h=!1};(l=a.stdout)==null||l.on("data",d),(c=a.stderr)==null||c.on("data",d),a.on("error",d),a.on("close",p=>f.close(p)),a.on("exit",p=>f.exit(p));try{yield f.result,h&&(yield tc(50)),o(f.exitCode)}catch(p){o(f.exitCode,p)}})}}}ie();var CI="Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings",l0="Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option";function AI(e){return!e||!/^([a-z]:)?([a-z0-9/.\\_-]+)$/i.test(e)}function c0(e,t){if(e.length<1||e.length>2)throw new ar(void 0,"binary",CI);if(e.some(AI))if(t)console.warn(l0);else throw new ar(void 0,"binary",l0);let[n,i]=e;return{binary:n,prefix:i}}function wI(e,t=["git"],r=!1){let n=c0(Vt(t),r);e.on("binary",i=>{n=c0(Vt(i),r)}),e.append("spawn.binary",()=>n.binary),e.append("spawn.args",i=>n.prefix?[n.prefix,...i]:i)}qr();function bI(e){return!!(e.exitCode&&e.stdErr.length)}function SI(e){return Buffer.concat([...e.stdOut,...e.stdErr])}function RI(e=!1,t=bI,r=SI){return(n,i)=>!e&&n||!t(i)?n:r(i)}function f0(e){return{type:"task.error",action(t,r){let n=e(t.error,{stdErr:r.stdErr,stdOut:r.stdOut,exitCode:r.exitCode});return Buffer.isBuffer(n)?{error:new or(void 0,n.toString("utf-8"))}:{error:n}}}}ie();var BI=class{constructor(){this.plugins=new Set,this.events=new TI}on(e,t){this.events.on(e,t)}reconfigure(e,t){this.events.emit(e,t)}append(e,t){let r=ve(this.plugins,{type:e,action:t});return()=>this.plugins.delete(r)}add(e){let t=[];return Vt(e).forEach(r=>r&&this.plugins.add(ve(t,r))),()=>{t.forEach(r=>this.plugins.delete(r))}}exec(e,t,r){let n=t,i=Object.freeze(Object.create(r));for(let s of this.plugins)s.type===e&&(n=s.action(n,i));return n}};ie();function xI(e){let t="--progress",r=["checkout","clone","fetch","pull","push"];return[{type:"spawn.args",action(s,u){return r.includes(u.method)?E0(s,t):s}},{type:"spawn.after",action(s,u){var a;u.commands.includes(t)&&((a=u.spawned.stderr)==null||a.on("data",o=>{let l=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(o.toString("utf8"));l&&e({method:u.method,stage:kI(l[1]),progress:Se(l[2]),processed:Se(l[3]),total:Se(l[4])})}))}}]}function kI(e){return String(e.toLowerCase().split(" ",1))||"unknown"}ie();function PI(e){let t=C0(e,["uid","gid"]);return{type:"spawn.options",action(r){return Bt(Bt({},t),r)}}}function OI({block:e,stdErr:t=!0,stdOut:r=!0}){if(e>0)return{type:"spawn.after",action(n,i){var s,u;let a;function o(){a&&clearTimeout(a),a=setTimeout(c,e)}function l(){var f,h;(f=i.spawned.stdout)==null||f.off("data",o),(h=i.spawned.stderr)==null||h.off("data",o),i.spawned.off("exit",l),i.spawned.off("close",l),a&&clearTimeout(a)}function c(){l(),i.kill(new ar(void 0,"timeout","block timeout reached"))}r&&((s=i.spawned.stdout)==null||s.on("data",o)),t&&((u=i.spawned.stderr)==null||u.on("data",o)),i.spawned.on("exit",l),i.spawned.on("close",l),o()}}}zi();function II(){return{type:"spawn.args",action(e){let t=[],r;function n(i){(r=r||[]).push(...i)}for(let i=0;i<e.length;i++){let s=e[i];if(Hu(s)){n(Ig(s));continue}if(s==="--"){n(e.slice(i+1).flatMap(u=>Hu(u)&&Ig(u)||u));break}t.push(s)}return r?[...t,"--",...r.map(String)]:t}}}ie();var LI=pI();function NI(e,t){var r;let n=new BI,i=S0(e&&(typeof e=="string"?{baseDir:e}:e)||{},t);if(!mc(i.baseDir))throw new DI(i,"Cannot use simple-git on a directory that does not exist");return Array.isArray(i.config)&&n.add(vI(i.config)),n.add(EI(i.unsafe)),n.add(II()),n.add(FI(i.completion)),i.abort&&n.add(mI(i.abort)),i.progress&&n.add(xI(i.progress)),i.timeout&&n.add(OI(i.timeout)),i.spawnOptions&&n.add(PI(i.spawnOptions)),n.add(f0(RI(!0))),i.errors&&n.add(f0(i.errors)),wI(n,i.binary,(r=i.unsafe)==null?void 0:r.allowUnsafeCustomBinary),new LI(i,n)}Jn();var Xn=NI;var tL=bt(Ey(),1);async function vy(e,t="main"){Te(at`Initializing git repository at ${Ke.path(e)}...`),await wy();let r=Xn(e);await r.init(),await r.checkoutLocalBranch(t)}async function Fy(e){return gi("cmd_all_timing_network_ms")(async()=>{let{repoUrl:t,destination:r,progressUpdater:n,shallow:i,latestTag:s}=e;Te(at`Git-cloning repository ${t} into ${Ke.path(r)}...`),await wy();let[u,a]=t.split("#"),o={"--recurse-submodules":null};if(a&&s)throw new ne("Error cloning the repository. Git can't clone the latest release with a 'branch'.");if(a&&(o["--branch"]=a),i&&s)throw new ne("Error cloning the repository. Git can't clone the latest release with the 'shallow' property.");i&&(o["--depth"]=1);let c={progress:({stage:f,progress:h,processed:d,total:p})=>{let D=`${f}, ${d}/${p} objects (${h}% complete)`;n&&n(D)},...!Wh()&&{config:["core.askpass=true"]}};try{if(await Xn(c).clone(u,r,o),s){let f=Xn(r),h=await rL(f,t);await f.checkout(h)}}catch(f){if(f instanceof Error){let h=new ne(f.message);throw h.stack=f.stack,h}throw f}})}async function rL(e,t){let r=(await e.tags()).latest;if(!r)throw new ne(`Couldn't obtain the most recent tag of the repository ${t}`);return r}async function Cy(e){await Xn({baseDir:e}).raw("add","--all")}async function Ay(e,t){let r=Xn({baseDir:t?.directory}),n=t?.author?{"--author":t.author}:void 0;return(await r.commit(e,n)).commit}async function wy(){if(!await zh())throw new ne("Git is necessary in the environment to continue",at`Install ${Ke.link("git","https://git-scm.com/book/en/v2/Getting-Started-Installing-Git")}`)}_();_();async function by(e,t=[],r=!1,n={}){Te(at`Ensuring that the user is authenticated with the Admin API with the following scopes for the store ${Ke.raw(e)}:
|
|
702
|
+
`);a=o[0],u=o[1]}yield{file:s,key:a,value:u}}}var V0,ZO=J({"src/lib/responses/ConfigList.ts"(){"use strict";ie(),V0=class{constructor(){this.files=[],this.values=Object.create(null)}get all(){return this._all||(this._all=this.files.reduce((e,t)=>Object.assign(e,this.values[t]),{})),this._all}addFile(e){if(!(e in this.values)){let t=Dn(this.files);this.values[e]=t?Object.create(this.values[t]):{},this.files.push(e)}return this.values[e]}addValue(e,t,r){let n=this.addFile(e);n.hasOwnProperty(t)?Array.isArray(n[t])?n[t].push(r):n[t]=[n[t],r]:n[t]=r,this._all=void 0}}}});function Kl(e,t){return typeof e=="string"&&ac.hasOwnProperty(e)?e:t}function e3(e,t,r,n){let i=["config",`--${n}`];return r&&i.push("--add"),i.push(e,t),{commands:i,format:"utf-8",parser(s){return s}}}function t3(e,t){let r=["config","--null","--show-origin","--get-all",e];return t&&r.splice(1,0,`--${t}`),{commands:r,format:"utf-8",parser(n){return XO(n,e)}}}function r3(e){let t=["config","--list","--show-origin","--null"];return e&&t.push(`--${e}`),{commands:t,format:"utf-8",parser(r){return JO(r)}}}function n3(){return{addConfig(e,t,...r){return this._runTask(e3(e,t,r[0]===!0,Kl(r[1],"local")),je(arguments))},getConfig(e,t){return this._runTask(t3(e,Kl(t,void 0)),je(arguments))},listConfig(...e){return this._runTask(r3(Kl(e[0],void 0)),je(arguments))}}}var ac,Y0=J({"src/lib/tasks/config.ts"(){"use strict";ZO(),ie(),ac=(e=>(e.system="system",e.global="global",e.local="local",e.worktree="worktree",e))(ac||{})}});function i3(e){return z0.has(e)}var Jl,z0,K0=J({"src/lib/tasks/diff-name-status.ts"(){"use strict";Jl=(e=>(e.ADDED="A",e.COPIED="C",e.DELETED="D",e.MODIFIED="M",e.RENAMED="R",e.CHANGED="T",e.UNMERGED="U",e.UNKNOWN="X",e.BROKEN="B",e))(Jl||{}),z0=new Set(Object.values(Jl))}});function s3(...e){return new X0().param(...e)}function u3(e){let t=new Set,r={};return Dc(e,n=>{let[i,s,u]=n.split(Kn);t.add(i),(r[i]=r[i]||[]).push({line:Se(s),path:i,preview:u})}),{paths:t,results:r}}function a3(){return{grep(e){let t=je(arguments),r=yt(arguments);for(let i of J0)if(r.includes(i))return this._runTask(Et(`git.grep: use of "${i}" is not supported.`),t);typeof e=="string"&&(e=s3().param(e));let n=["grep","--null","-n","--full-name",...r,...e];return this._runTask({commands:n,format:"utf-8",parser(i){return u3(i)}},t)}}}var J0,Hi,Lg,X0,Q0=J({"src/lib/tasks/grep.ts"(){"use strict";ie(),He(),J0=["-h"],Hi=Symbol("grepQuery"),X0=class{constructor(){this[Lg]=[]}*[(Lg=Hi,Symbol.iterator)](){for(let e of this[Hi])yield e}and(...e){return e.length&&this[Hi].push("--and","(",...Gi(e,"-e"),")"),this}param(...e){return this[Hi].push(...Gi(e,"-e")),this}}}}),Z0={};qe(Z0,{ResetMode:()=>Mu,getResetMode:()=>l3,resetTask:()=>o3});function o3(e,t){let r=["reset"];return e_(e)&&r.push(`--${e}`),r.push(...t),ct(r)}function l3(e){if(e_(e))return e;switch(typeof e){case"string":case"undefined":return"soft"}}function e_(e){return t_.includes(e)}var Mu,t_,r_=J({"src/lib/tasks/reset.ts"(){"use strict";He(),Mu=(e=>(e.MIXED="mixed",e.SOFT="soft",e.HARD="hard",e.MERGE="merge",e.KEEP="keep",e))(Mu||{}),t_=Array.from(Object.values(Mu))}});function c3(){return(0,Uu.default)("simple-git")}function Ng(e,t,r){return!t||!String(t).replace(/\s*/,"")?r?(n,...i)=>{e(n,...i),r(n,...i)}:e:(n,...i)=>{e(`%s ${n}`,t,...i),r&&r(n,...i)}}function f3(e,t,{namespace:r}){if(typeof e=="string")return e;let n=t&&t.namespace||"";return n.startsWith(r)?n.substr(r.length+1):n||r}function Sc(e,t,r,n=c3()){let i=e&&`[${e}]`||"",s=[],u=typeof t=="string"?n.extend(t):t,a=f3(Yt(t,rt),u,n);return l(r);function o(c,f){return ve(s,Sc(e,a.replace(/^[^:]+/,c),f,n))}function l(c){let f=c&&`[${c}]`||"",h=u&&Ng(u,f)||mn,d=Ng(n,`${i} ${f}`,h);return Object.assign(u?h:d,{label:e,sibling:o,info:d,step:l})}}var n_=J({"src/lib/git-logger.ts"(){"use strict";ie(),Uu.default.formatters.L=e=>String(yc(e)?e.length:"-"),Uu.default.formatters.B=e=>Buffer.isBuffer(e)?e.toString("utf8"):Ji(e)}}),Iu,oc,h3=J({"src/lib/runners/tasks-pending-queue.ts"(){"use strict";qr(),n_(),Iu=class{constructor(e="GitExecutor"){this.logLabel=e,this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){let t=Iu.getName(e.commands[0]),r=Sc(this.logLabel,t);return{task:e,logger:r,name:t}}push(e){let t=this.createProgress(e);return t.logger("Adding task to the queue, commands = %o",e.commands),this._queue.set(e,t),t}fatal(e){for(let[t,{logger:r}]of Array.from(this._queue.entries()))t===e.task?(r.info("Failed %o",e),r("Fatal exception, any as-yet un-started tasks run through this executor will not be attempted")):r.info("A fatal exception occurred in a previous task, the queue has been purged: %o",e.message),this.complete(t);if(this._queue.size!==0)throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(e){this.withProgress(e)&&this._queue.delete(e)}attempt(e){let t=this.withProgress(e);if(!t)throw new or(void 0,"TasksPendingQueue: attempt called for an unknown task");return t.logger("Starting task"),t}static getName(e="empty"){return`task:${e}:${++Iu.counter}`}},oc=Iu,oc.counter=0}});function pn(e,t){return{method:_0(e.commands)||"",commands:t}}function p3(e,t){return r=>{t("[ERROR] child process exception %o",r),e.push(Buffer.from(String(r.stack),"ascii"))}}function Mg(e,t,r,n){return i=>{r("%s received %L bytes",t,i),n("%B",i),e.push(i)}}var lc,D3=J({"src/lib/runners/git-executor-chain.ts"(){"use strict";qr(),He(),ie(),h3(),lc=class{constructor(e,t,r){this._executor=e,this._scheduler=t,this._plugins=r,this._chain=Promise.resolve(),this._queue=new oc}get cwd(){return this._cwd||this._executor.cwd}set cwd(e){this._cwd=e}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(e){return this._queue.push(e),this._chain=this._chain.then(()=>this.attemptTask(e))}attemptTask(e){return qi(this,null,function*(){let t=yield this._scheduler.next(),r=()=>this._queue.complete(e);try{let{logger:n}=this._queue.attempt(e);return yield H0(e)?this.attemptEmptyTask(e,n):this.attemptRemoteTask(e,n)}catch(n){throw this.onFatalException(e,n)}finally{r(),t()}})}onFatalException(e,t){let r=t instanceof or?Object.assign(t,{task:e}):new or(e,t&&String(t));return this._chain=Promise.resolve(),this._queue.fatal(r),r}attemptRemoteTask(e,t){return qi(this,null,function*(){let r=this._plugins.exec("spawn.binary","",pn(e,e.commands)),n=this._plugins.exec("spawn.args",[...e.commands],pn(e,e.commands)),i=yield this.gitResponse(e,r,n,this.outputHandler,t.step("SPAWN")),s=yield this.handleTaskData(e,n,i,t.step("HANDLE"));return t("passing response to task's parser as a %s",e.format),$0(e)?ic(e.parser,s):ic(e.parser,s.asStrings())})}attemptEmptyTask(e,t){return qi(this,null,function*(){return t("empty task bypassing child process to call to task's parser"),e.parser(this)})}handleTaskData(e,t,r,n){let{exitCode:i,rejection:s,stdOut:u,stdErr:a}=r;return new Promise((o,l)=>{n("Preparing to handle process response exitCode=%d stdOut=",i);let{error:c}=this._plugins.exec("task.error",{error:s},Bt(Bt({},pn(e,t)),r));if(c&&e.onError)return n.info("exitCode=%s handling with custom error handler"),e.onError(r,c,f=>{n.info("custom error handler treated as success"),n("custom error returned a %s",Ji(f)),o(new Vi(Array.isArray(f)?Buffer.concat(f):f,Buffer.concat(a)))},l);if(c)return n.info("handling as error: exitCode=%s stdErr=%s rejection=%o",i,a.length,s),l(c);n.info("retrieving task output complete"),o(new Vi(Buffer.concat(u),Buffer.concat(a)))})}gitResponse(e,t,r,n,i){return qi(this,null,function*(){let s=i.sibling("output"),u=this._plugins.exec("spawn.options",{cwd:this.cwd,env:this.env,windowsHide:!0},pn(e,e.commands));return new Promise(a=>{let o=[],l=[];i.info("%s %o",t,r),i("%O",u);let c=this._beforeSpawn(e,r);if(c)return a({stdOut:o,stdErr:l,exitCode:9901,rejection:c});this._plugins.exec("spawn.before",void 0,Ui(Bt({},pn(e,r)),{kill(h){c=h||c}}));let f=d3(t,r,u);f.stdout.on("data",Mg(o,"stdOut",i,s.step("stdOut"))),f.stderr.on("data",Mg(l,"stdErr",i,s.step("stdErr"))),f.on("error",p3(l,i)),n&&(i("Passing child process stdOut/stdErr to custom outputHandler"),n(t,f.stdout,f.stderr,[...r])),this._plugins.exec("spawn.after",void 0,Ui(Bt({},pn(e,r)),{spawned:f,close(h,d){a({stdOut:o,stdErr:l,exitCode:h,rejection:c||d})},kill(h){f.killed||(c=h,f.kill("SIGINT"))}}))})})}_beforeSpawn(e,t){let r;return this._plugins.exec("spawn.before",void 0,Ui(Bt({},pn(e,t)),{kill(n){r=n||r}})),r}}}}),i_={};qe(i_,{GitExecutor:()=>s_});var s_,m3=J({"src/lib/runners/git-executor.ts"(){"use strict";D3(),s_=class{constructor(e,t,r){this.cwd=e,this._scheduler=t,this._plugins=r,this._chain=new lc(this,this._scheduler,this._plugins)}chain(){return new lc(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}}}});function g3(e,t,r=mn){let n=s=>{r(null,s)},i=s=>{s?.task===e&&r(s instanceof zi?_3(s):s,void 0)};t.then(n,i)}function _3(e){let t=n=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${n} should be GitResponseError.git.${n}, this will no longer be available in version 3`),t=mn};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(r,{}));function r(n,i){return i in e||(n[i]={enumerable:!1,configurable:!1,get(){return t(i),e.git[i]}}),n}}var y3=J({"src/lib/task-callback.ts"(){"use strict";Jn(),ie()}});function jg(e,t){return M0(r=>{if(!mc(e))throw new Error(`Git.cwd: cannot change to non-directory "${e}"`);return(t||r).cwd=e})}var E3=J({"src/lib/tasks/change-working-directory.ts"(){"use strict";ie(),He()}});function Xl(e){let t=["checkout",...e];return t[1]==="-b"&&t.includes("-B")&&(t[1]=zu(t,"-B")),ct(t)}function v3(){return{checkout(){return this._runTask(Xl(yt(arguments,1)),je(arguments))},checkoutBranch(e,t){return this._runTask(Xl(["-b",e,t,...yt(arguments)]),je(arguments))},checkoutLocalBranch(e){return this._runTask(Xl(["-b",e,...yt(arguments)]),je(arguments))}}}var F3=J({"src/lib/tasks/checkout.ts"(){"use strict";ie(),He()}});function C3(){return{count:0,garbage:0,inPack:0,packs:0,prunePackable:0,size:0,sizeGarbage:0,sizePack:0}}function A3(){return{countObjects(){return this._runTask({commands:["count-objects","--verbose"],format:"utf-8",parser(e){return vt(C3(),[u_],e)}})}}}var u_,w3=J({"src/lib/tasks/count-objects.ts"(){"use strict";ie(),u_=new oe(/([a-z-]+): (\d+)$/,(e,[t,r])=>{let n=v0(t);e.hasOwnProperty(n)&&(e[n]=Se(r))})}});function b3(e){return vt({author:null,branch:"",commit:"",root:!1,summary:{changes:0,insertions:0,deletions:0}},a_,e)}var a_,S3=J({"src/lib/parsers/parse-commit.ts"(){"use strict";ie(),a_=[new oe(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,(e,[t,r,n])=>{e.branch=t,e.commit=n,e.root=!!r}),new oe(/\s*Author:\s(.+)/i,(e,[t])=>{let r=t.split("<"),n=r.pop();!n||!n.includes("@")||(e.author={email:n.substr(0,n.length-1),name:r.join("<").trim()})}),new oe(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0,e.summary.insertions=parseInt(r,10)||0,e.summary.deletions=parseInt(n,10)||0}),new oe(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0;let i=parseInt(r,10)||0;n==="-"?e.summary.deletions=i:n==="+"&&(e.summary.insertions=i)})]}});function R3(e,t,r){return{commands:["-c","core.abbrev=40","commit",...Gi(e,"-m"),...t,...r],format:"utf-8",parser:b3}}function T3(){return{commit(t,...r){let n=je(arguments),i=e(t)||R3(Vt(t),Vt(Yt(r[0],qu,[])),[...Yt(r[1],Xi,[]),...yt(arguments,0,!0)]);return this._runTask(i,n)}};function e(t){return!qu(t)&&Et("git.commit: requires the commit message to be supplied as a string/string[]")}}var B3=J({"src/lib/tasks/commit.ts"(){"use strict";S3(),ie(),He()}});function x3(){return{firstCommit(){return this._runTask(ct(["rev-list","--max-parents=0","HEAD"],!0),je(arguments))}}}var k3=J({"src/lib/tasks/first-commit.ts"(){"use strict";ie(),He()}});function P3(e,t){let r=["hash-object",e];return t&&r.push("-w"),ct(r,!0)}var O3=J({"src/lib/tasks/hash-object.ts"(){"use strict";He()}});function I3(e,t,r){let n=String(r).trim(),i;if(i=o_.exec(n))return new ju(e,t,!1,i[1]);if(i=l_.exec(n))return new ju(e,t,!0,i[1]);let s="",u=n.split(" ");for(;u.length;)if(u.shift()==="in"){s=u.join(" ");break}return new ju(e,t,/^re/i.test(n),s)}var ju,o_,l_,L3=J({"src/lib/responses/InitSummary.ts"(){"use strict";ju=class{constructor(e,t,r,n){this.bare=e,this.path=t,this.existing=r,this.gitDir=n}},o_=/^Init.+ repository in (.+)$/,l_=/^Rein.+ in (.+)$/}});function N3(e){return e.includes(Rc)}function M3(e=!1,t,r){let n=["init",...r];return e&&!N3(n)&&n.splice(1,0,Rc),{commands:n,format:"utf-8",parser(i){return I3(n.includes("--bare"),t,i)}}}var Rc,j3=J({"src/lib/tasks/init.ts"(){"use strict";L3(),Rc="--bare"}});function Tc(e){for(let t=0;t<e.length;t++){let r=Bc.exec(e[t]);if(r)return`--${r[1]}`}return""}function $3(e){return Bc.test(e)}var Bc,Qi=J({"src/lib/args/log-format.ts"(){"use strict";Bc=/^--(stat|numstat|name-only|name-status)(=|$)/}}),c_,H3=J({"src/lib/responses/DiffSummary.ts"(){"use strict";c_=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}}}});function f_(e=""){let t=h_[e];return r=>vt(new c_,t,r,!1)}var Ql,$g,Hg,qg,h_,d_=J({"src/lib/parsers/parse-diff-summary.ts"(){"use strict";Qi(),H3(),K0(),ie(),Ql=[new oe(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,(e,[t,r,n=""])=>{e.files.push({file:t.trim(),changes:Se(r),insertions:n.replace(/[^+]/g,"").length,deletions:n.replace(/[^-]/g,"").length,binary:!1})}),new oe(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,(e,[t,r,n])=>{e.files.push({file:t.trim(),before:Se(r),after:Se(n),binary:!0})}),new oe(/(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,(e,[t,r])=>{let n=/(\d+) i/.exec(r),i=/(\d+) d/.exec(r);e.changed=Se(t),e.insertions=Se(n?.[1]),e.deletions=Se(i?.[1])})],$g=[new oe(/(\d+)\t(\d+)\t(.+)$/,(e,[t,r,n])=>{let i=Se(t),s=Se(r);e.changed++,e.insertions+=i,e.deletions+=s,e.files.push({file:n,changes:i+s,insertions:i,deletions:s,binary:!1})}),new oe(/-\t-\t(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,after:0,before:0,binary:!0})})],Hg=[new oe(/(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,changes:0,insertions:0,deletions:0,binary:!1})})],qg=[new oe(/([ACDMRTUXB])([0-9]{0,3})\t(.[^\t]*)(\t(.[^\t]*))?$/,(e,[t,r,n,i,s])=>{e.changed++,e.files.push({file:s??n,changes:0,insertions:0,deletions:0,binary:!1,status:rc(i3(t)&&t),from:rc(!!s&&n!==s&&n),similarity:Se(r)})})],h_={"":Ql,"--stat":Ql,"--numstat":$g,"--name-status":qg,"--name-only":Hg}}});function q3(e,t){return t.reduce((r,n,i)=>(r[n]=e[i]||"",r),Object.create({diff:null}))}function p_(e=Pc,t=D_,r=""){let n=f_(r);return function(i){let s=Ki(i.trim(),!1,xc).map(function(u){let a=u.split(kc),o=q3(a[0].split(e),t);return a.length>1&&a[1].trim()&&(o.diff=n(a[1])),o});return{all:s,latest:s.length&&s[0]||null,total:s.length}}}var xc,kc,Pc,D_,m_=J({"src/lib/parsers/parse-list-log-summary.ts"(){"use strict";ie(),d_(),Qi(),xc="\xF2\xF2\xF2\xF2\xF2\xF2 ",kc=" \xF2\xF2",Pc=" \xF2 ",D_=["hash","date","message","refs","author_name","author_email"]}}),g_={};qe(g_,{diffSummaryTask:()=>U3,validateLogFormatConfig:()=>Qu});function U3(e){let t=Tc(e),r=["diff"];return t===""&&(t="--stat",r.push("--stat=4096")),r.push(...e),Qu(r)||{commands:r,format:"utf-8",parser:f_(t)}}function Qu(e){let t=e.filter($3);if(t.length>1)return Et(`Summary flags are mutually exclusive - pick one of ${t.join(",")}`);if(t.length&&e.includes("-z"))return Et(`Summary flag ${t} parsing is not compatible with null termination option '-z'`)}var Oc=J({"src/lib/tasks/diff.ts"(){"use strict";Qi(),d_(),He()}});function G3(e,t){let r=[],n=[];return Object.keys(e).forEach(i=>{r.push(i),n.push(String(e[i]))}),[r,n.join(t)]}function W3(e){return Object.keys(e).reduce((t,r)=>(r in cc||(t[r]=e[r]),t),{})}function __(e={},t=[]){let r=Yt(e.splitter,rt,Pc),n=!gc(e.format)&&e.format?e.format:{hash:"%H",date:e.strictDate===!1?"%ai":"%aI",message:"%s",refs:"%D",body:e.multiLine?"%B":"%b",author_name:e.mailMap!==!1?"%aN":"%an",author_email:e.mailMap!==!1?"%aE":"%ae"},[i,s]=G3(n,r),u=[],a=[`--pretty=format:${xc}${s}${kc}`,...t],o=e.n||e["max-count"]||e.maxCount;if(o&&a.push(`--max-count=${o}`),e.from||e.to){let l=e.symmetric!==!1?"...":"..";u.push(`${e.from||""}${l}${e.to||""}`)}return rt(e.file)&&a.push("--follow",kO(e.file)),Ec(W3(e),a),{fields:i,splitter:r,commands:[...a,...u]}}function V3(e,t,r){let n=p_(e,t,Tc(r));return{commands:["log",...r],format:"utf-8",parser:n}}function Y3(){return{log(...r){let n=je(arguments),i=__(vc(arguments),Yt(arguments[0],Xi)),s=t(...r)||Qu(i.commands)||e(i);return this._runTask(s,n)}};function e(r){return V3(r.splitter,r.fields,r.commands)}function t(r,n){return rt(r)&&rt(n)&&Et("git.log(string, string) should be replaced with git.log({ from: string, to: string })")}}var cc,y_=J({"src/lib/tasks/log.ts"(){"use strict";Qi(),Yi(),m_(),ie(),He(),Oc(),cc=(e=>(e[e["--pretty"]=0]="--pretty",e[e["max-count"]=1]="max-count",e[e.maxCount=2]="maxCount",e[e.n=3]="n",e[e.file=4]="file",e[e.format=5]="format",e[e.from=6]="from",e[e.to=7]="to",e[e.splitter=8]="splitter",e[e.symmetric=9]="symmetric",e[e.mailMap=10]="mailMap",e[e.multiLine=11]="multiLine",e[e.strictDate=12]="strictDate",e))(cc||{})}}),$u,E_,z3=J({"src/lib/responses/MergeSummary.ts"(){"use strict";$u=class{constructor(e,t=null,r){this.reason=e,this.file=t,this.meta=r}toString(){return`${this.file}:${this.reason}`}},E_=class{constructor(){this.conflicts=[],this.merges=[],this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){return this.conflicts.length?`CONFLICTS: ${this.conflicts.join(", ")}`:"OK"}}}}),fc,v_,K3=J({"src/lib/responses/PullSummary.ts"(){"use strict";fc=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},v_=class{constructor(){this.remote="",this.hash={local:"",remote:""},this.branch={local:"",remote:""},this.message=""}toString(){return this.message}}}});function Zl(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function Ug(e){let t=/^\s*(\d+)/.exec(e),r=/delta (\d+)/i.exec(e);return{count:Se(t&&t[1]||"0"),delta:Se(r&&r[1]||"0")}}var F_,J3=J({"src/lib/parsers/parse-remote-objects.ts"(){"use strict";ie(),F_=[new Hr(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[t,r])=>{let n=t.toLowerCase(),i=Zl(e.remoteMessages);Object.assign(i,{[n]:Se(r)})}),new Hr(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[t,r])=>{let n=t.toLowerCase(),i=Zl(e.remoteMessages);Object.assign(i,{[n]:Se(r)})}),new Hr(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[t,r,n])=>{let i=Zl(e.remoteMessages);i.total=Ug(t),i.reused=Ug(r),i.packReused=Se(n)})]}});function C_(e,t){return vt({remoteMessages:new w_},A_,t)}var A_,w_,b_=J({"src/lib/parsers/parse-remote-messages.ts"(){"use strict";ie(),J3(),A_=[new Hr(/^remote:\s*(.+)$/,(e,[t])=>(e.remoteMessages.all.push(t.trim()),!1)),...F_,new Hr([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[t])=>{e.remoteMessages.pullRequestUrl=t}),new Hr([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[t,r,n])=>{e.remoteMessages.vulnerabilities={count:Se(t),summary:r,url:n}})],w_=class{constructor(){this.all=[]}}}});function X3(e,t){let r=vt(new v_,S_,[e,t]);return r.message&&r}var Gg,Wg,Vg,Yg,S_,zg,Ic,R_=J({"src/lib/parsers/parse-pull.ts"(){"use strict";K3(),ie(),b_(),Gg=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,Wg=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,Vg=/^(create|delete) mode \d+ (.+)/,Yg=[new oe(Gg,(e,[t,r,n])=>{e.files.push(t),r&&(e.insertions[t]=r.length),n&&(e.deletions[t]=n.length)}),new oe(Wg,(e,[t,,r,,n])=>r!==void 0||n!==void 0?(e.summary.changes=+t||0,e.summary.insertions=+r||0,e.summary.deletions=+n||0,!0):!1),new oe(Vg,(e,[t,r])=>{ve(e.files,r),ve(t==="create"?e.created:e.deleted,r)})],S_=[new oe(/^from\s(.+)$/i,(e,[t])=>{e.remote=t}),new oe(/^fatal:\s(.+)$/,(e,[t])=>{e.message=t}),new oe(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,(e,[t,r,n,i])=>{e.branch.local=n,e.hash.local=t,e.branch.remote=i,e.hash.remote=r})],zg=(e,t)=>vt(new fc,Yg,[e,t]),Ic=(e,t)=>Object.assign(new fc,zg(e,t),C_(e,t))}}),Kg,T_,Jg,Q3=J({"src/lib/parsers/parse-merge.ts"(){"use strict";z3(),ie(),R_(),Kg=[new oe(/^Auto-merging\s+(.+)$/,(e,[t])=>{e.merges.push(t)}),new oe(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(e,[t,r])=>{e.conflicts.push(new $u(t,r))}),new oe(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[t,r,n])=>{e.conflicts.push(new $u(t,r,{deleteRef:n}))}),new oe(/^CONFLICT\s+\((.+)\):/,(e,[t])=>{e.conflicts.push(new $u(t,null))}),new oe(/^Automatic merge failed;\s+(.+)$/,(e,[t])=>{e.result=t})],T_=(e,t)=>Object.assign(Jg(e,t),Ic(e,t)),Jg=e=>vt(new E_,Kg,e)}});function Xg(e){return e.length?{commands:["merge",...e],format:"utf-8",parser(t,r){let n=T_(t,r);if(n.failed)throw new zi(n);return n}}:Et("Git.merge requires at least one option")}var Z3=J({"src/lib/tasks/merge.ts"(){"use strict";Jn(),Q3(),He()}});function e8(e,t,r){let n=r.includes("deleted"),i=r.includes("tag")||/^refs\/tags/.test(e),s=!r.includes("new");return{deleted:n,tag:i,branch:!i,new:!s,alreadyUpdated:s,local:e,remote:t}}var Qg,B_,Zg,t8=J({"src/lib/parsers/parse-push.ts"(){"use strict";ie(),b_(),Qg=[new oe(/^Pushing to (.+)$/,(e,[t])=>{e.repo=t}),new oe(/^updating local tracking ref '(.+)'/,(e,[t])=>{e.ref=Ui(Bt({},e.ref||{}),{local:t})}),new oe(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/,(e,[t,r,n])=>{e.pushed.push(e8(t,r,n))}),new oe(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(e,[t,r,n])=>{e.branch=Ui(Bt({},e.branch||{}),{local:t,remote:r,remoteName:n})}),new oe(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(e,[t,r,n,i])=>{e.update={head:{local:t,remote:r},hash:{from:n,to:i}}})],B_=(e,t)=>{let r=Zg(e,t),n=C_(e,t);return Bt(Bt({},r),n)},Zg=(e,t)=>vt({pushed:[]},Qg,[e,t])}}),x_={};qe(x_,{pushTagsTask:()=>r8,pushTask:()=>Lc});function r8(e={},t){return ve(t,"--tags"),Lc(e,t)}function Lc(e={},t){let r=["push",...t];return e.branch&&r.splice(1,0,e.branch),e.remote&&r.splice(1,0,e.remote),zu(r,"-v"),ve(r,"--verbose"),ve(r,"--porcelain"),{commands:r,format:"utf-8",parser:B_}}var k_=J({"src/lib/tasks/push.ts"(){"use strict";t8(),ie()}});function n8(){return{showBuffer(){let e=["show",...yt(arguments,1)];return e.includes("--binary")||e.splice(1,0,"--binary"),this._runTask(j0(e),je(arguments))},show(){let e=["show",...yt(arguments,1)];return this._runTask(ct(e),je(arguments))}}}var i8=J({"src/lib/tasks/show.ts"(){"use strict";ie(),He()}}),e0,P_,s8=J({"src/lib/responses/FileStatusSummary.ts"(){"use strict";e0=/^(.+)\0(.+)$/,P_=class{constructor(e,t,r){if(this.path=e,this.index=t,this.working_dir=r,t==="R"||r==="R"){let n=e0.exec(e)||[null,e,e];this.from=n[2]||"",this.path=n[1]||""}}}}});function t0(e){let[t,r]=e.split(Kn);return{from:r||t,to:t}}function At(e,t,r){return[`${e}${t}`,r]}function ec(e,...t){return t.map(r=>At(e,r,(n,i)=>ve(n.conflicted,i)))}function u8(e,t){let r=t.trim();switch(" "){case r.charAt(2):return n(r.charAt(0),r.charAt(1),r.substr(3));case r.charAt(1):return n(" ",r.charAt(0),r.substr(2));default:return}function n(i,s,u){let a=`${i}${s}`,o=O_.get(a);o&&o(e,u),a!=="##"&&a!=="!!"&&e.files.push(new P_(u,i,s))}}var r0,O_,I_,a8=J({"src/lib/responses/StatusSummary.ts"(){"use strict";ie(),s8(),r0=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=()=>!this.files.length}},O_=new Map([At(" ","A",(e,t)=>ve(e.created,t)),At(" ","D",(e,t)=>ve(e.deleted,t)),At(" ","M",(e,t)=>ve(e.modified,t)),At("A"," ",(e,t)=>ve(e.created,t)&&ve(e.staged,t)),At("A","M",(e,t)=>ve(e.created,t)&&ve(e.staged,t)&&ve(e.modified,t)),At("D"," ",(e,t)=>ve(e.deleted,t)&&ve(e.staged,t)),At("M"," ",(e,t)=>ve(e.modified,t)&&ve(e.staged,t)),At("M","M",(e,t)=>ve(e.modified,t)&&ve(e.staged,t)),At("R"," ",(e,t)=>{ve(e.renamed,t0(t))}),At("R","M",(e,t)=>{let r=t0(t);ve(e.renamed,r),ve(e.modified,r.to)}),At("!","!",(e,t)=>{ve(e.ignored=e.ignored||[],t)}),At("?","?",(e,t)=>ve(e.not_added,t)),...ec("A","A","U"),...ec("D","D","U"),...ec("U","A","D","U"),["##",(e,t)=>{let r=/ahead (\d+)/,n=/behind (\d+)/,i=/^(.+?(?=(?:\.{3}|\s|$)))/,s=/\.{3}(\S*)/,u=/\son\s([\S]+)$/,a;a=r.exec(t),e.ahead=a&&+a[1]||0,a=n.exec(t),e.behind=a&&+a[1]||0,a=i.exec(t),e.current=a&&a[1],a=s.exec(t),e.tracking=a&&a[1],a=u.exec(t),e.current=a&&a[1]||e.current,e.detached=/\(no branch\)/.test(t)}]]),I_=function(e){let t=e.split(Kn),r=new r0;for(let n=0,i=t.length;n<i;){let s=t[n++].trim();s&&(s.charAt(0)==="R"&&(s+=Kn+(t[n++]||"")),u8(r,s))}return r}}});function o8(e){return{format:"utf-8",commands:["status","--porcelain","-b","-u","--null",...e.filter(r=>!L_.includes(r))],parser(r){return I_(r)}}}var L_,l8=J({"src/lib/tasks/status.ts"(){"use strict";a8(),L_=["--null","-z"]}});function Gu(e=0,t=0,r=0,n="",i=!0){return Object.defineProperty({major:e,minor:t,patch:r,agent:n,installed:i},"toString",{value(){return`${this.major}.${this.minor}.${this.patch}`},configurable:!1,enumerable:!1})}function c8(){return Gu(0,0,0,"",!1)}function f8(){return{version(){return this._runTask({commands:["--version"],format:"utf-8",parser:h8,onError(e,t,r,n){if(e.exitCode===-2)return r(Buffer.from(Nc));n(t)}})}}}function h8(e){return e===Nc?c8():vt(Gu(0,0,0,e),N_,e)}var Nc,N_,d8=J({"src/lib/tasks/version.ts"(){"use strict";ie(),Nc="installed=false",N_=[new oe(/version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,(e,[t,r,n,i=""])=>{Object.assign(e,Gu(Se(t),Se(r),Se(n),i))}),new oe(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,(e,[t,r,n,i=""])=>{Object.assign(e,Gu(Se(t),Se(r),n,i))})]}}),M_={};qe(M_,{SimpleGitApi:()=>hc});var hc,p8=J({"src/lib/simple-git-api.ts"(){"use strict";y3(),E3(),F3(),w3(),B3(),Y0(),k3(),Q0(),O3(),j3(),y_(),Z3(),k_(),i8(),l8(),He(),d8(),ie(),hc=class{constructor(e){this._executor=e}_runTask(e,t){let r=this._executor.chain(),n=r.push(e);return t&&g3(e,n,t),Object.create(this,{then:{value:n.then.bind(n)},catch:{value:n.catch.bind(n)},_executor:{value:r}})}add(e){return this._runTask(ct(["add",...Vt(e)]),je(arguments))}cwd(e){let t=je(arguments);return typeof e=="string"?this._runTask(jg(e,this._executor),t):typeof e?.path=="string"?this._runTask(jg(e.path,e.root&&this._executor||void 0),t):this._runTask(Et("Git.cwd: workingDirectory must be supplied as a string"),t)}hashObject(e,t){return this._runTask(P3(e,t===!0),je(arguments))}init(e){return this._runTask(M3(e===!0,this._executor.cwd,yt(arguments)),je(arguments))}merge(){return this._runTask(Xg(yt(arguments)),je(arguments))}mergeFromTo(e,t){return rt(e)&&rt(t)?this._runTask(Xg([e,t,...yt(arguments)]),je(arguments,!1)):this._runTask(Et("Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings"))}outputHandler(e){return this._executor.outputHandler=e,this}push(){let e=Lc({remote:Yt(arguments[0],rt),branch:Yt(arguments[1],rt)},yt(arguments));return this._runTask(e,je(arguments))}stash(){return this._runTask(ct(["stash",...yt(arguments)]),je(arguments))}status(){return this._runTask(o8(yt(arguments)),je(arguments))}},Object.assign(hc.prototype,v3(),T3(),n3(),A3(),x3(),a3(),Y3(),n8(),f8())}}),j_={};qe(j_,{Scheduler:()=>H_});var n0,H_,D8=J({"src/lib/runners/scheduler.ts"(){"use strict";ie(),n_(),n0=(()=>{let e=0;return()=>{e++;let{promise:t,done:r}=(0,$_.createDeferred)();return{promise:t,done:r,id:e}}})(),H_=class{constructor(e=2){this.concurrency=e,this.logger=Sc("","scheduler"),this.pending=[],this.running=[],this.logger("Constructed, concurrency=%s",e)}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 e=ve(this.running,this.pending.shift());this.logger("Attempting id=%s",e.id),e.done(()=>{this.logger("Completing id=",e.id),zu(this.running,e),this.schedule()})}next(){let{promise:e,id:t}=ve(this.pending,n0());return this.logger("Scheduling id=%s",t),this.schedule(),e}}}}),q_={};qe(q_,{applyPatchTask:()=>m8});function m8(e,t){return ct(["apply",...t,...e])}var g8=J({"src/lib/tasks/apply-patch.ts"(){"use strict";He()}});function _8(e,t){return{branch:e,hash:t,success:!0}}function y8(e){return{branch:e,hash:null,success:!1}}var U_,E8=J({"src/lib/responses/BranchDeleteSummary.ts"(){"use strict";U_=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}});function G_(e,t){return t===1&&dc.test(e)}var i0,dc,s0,Zu,v8=J({"src/lib/parsers/parse-branch-delete.ts"(){"use strict";E8(),ie(),i0=/(\S+)\s+\(\S+\s([^)]+)\)/,dc=/^error[^']+'([^']+)'/m,s0=[new oe(i0,(e,[t,r])=>{let n=_8(t,r);e.all.push(n),e.branches[t]=n}),new oe(dc,(e,[t])=>{let r=y8(t);e.errors.push(r),e.all.push(r),e.branches[t]=r})],Zu=(e,t)=>vt(new U_,s0,[e,t])}}),W_,F8=J({"src/lib/responses/BranchSummary.ts"(){"use strict";W_=class{constructor(){this.all=[],this.branches={},this.current="",this.detached=!1}push(e,t,r,n,i){e==="*"&&(this.detached=t,this.current=r),this.all.push(r),this.branches[r]={current:e==="*",linkedWorkTree:e==="+",name:r,commit:n,label:i}}}}});function u0(e){return e?e.charAt(0):""}function V_(e){return vt(new W_,Y_,e)}var Y_,C8=J({"src/lib/parsers/parse-branch.ts"(){"use strict";F8(),ie(),Y_=[new oe(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[t,r,n,i])=>{e.push(u0(t),!0,r,n,i)}),new oe(new RegExp("^([*+]\\s)?(\\S+)\\s+([a-z0-9]+)\\s?(.*)$","s"),(e,[t,r,n,i])=>{e.push(u0(t),!1,r,n,i)})]}}),z_={};qe(z_,{branchLocalTask:()=>w8,branchTask:()=>A8,containsDeleteBranchCommand:()=>K_,deleteBranchTask:()=>S8,deleteBranchesTask:()=>b8});function K_(e){let t=["-d","-D","--delete"];return e.some(r=>t.includes(r))}function A8(e){let t=K_(e),r=["branch",...e];return r.length===1&&r.push("-a"),r.includes("-v")||r.splice(1,0,"-v"),{format:"utf-8",commands:r,parser(n,i){return t?Zu(n,i).all[0]:V_(n)}}}function w8(){return{format:"utf-8",commands:["branch","-v"],parser:V_}}function b8(e,t=!1){return{format:"utf-8",commands:["branch","-v",t?"-D":"-d",...e],parser(r,n){return Zu(r,n)},onError({exitCode:r,stdOut:n},i,s,u){if(!G_(String(i),r))return u(i);s(n)}}}function S8(e,t=!1){let r={format:"utf-8",commands:["branch","-v",t?"-D":"-d",e],parser(n,i){return Zu(n,i).branches[e]},onError({exitCode:n,stdErr:i,stdOut:s},u,a,o){if(!G_(String(u),n))return o(u);throw new zi(r.parser(Wi(s),Wi(i)),String(u))}};return r}var R8=J({"src/lib/tasks/branch.ts"(){"use strict";Jn(),v8(),C8(),ie()}}),J_,T8=J({"src/lib/responses/CheckIgnore.ts"(){"use strict";J_=e=>e.split(/\n/g).map(t=>t.trim()).filter(t=>!!t)}}),X_={};qe(X_,{checkIgnoreTask:()=>B8});function B8(e){return{commands:["check-ignore",...e],format:"utf-8",parser:J_}}var x8=J({"src/lib/tasks/check-ignore.ts"(){"use strict";T8()}}),Q_={};qe(Q_,{cloneMirrorTask:()=>P8,cloneTask:()=>Z_});function k8(e){return/^--upload-pack(=|$)/.test(e)}function Z_(e,t,r){let n=["clone",...r];return rt(e)&&n.push(e),rt(t)&&n.push(t),n.find(k8)?Et("git.fetch: potential exploit argument blocked."):ct(n)}function P8(e,t,r){return ve(r,"--mirror"),Z_(e,t,r)}var O8=J({"src/lib/tasks/clone.ts"(){"use strict";He(),ie()}});function I8(e,t){return vt({raw:e,remote:null,branches:[],tags:[],updated:[],deleted:[]},ey,[e,t])}var ey,L8=J({"src/lib/parsers/parse-fetch.ts"(){"use strict";ie(),ey=[new oe(/From (.+)$/,(e,[t])=>{e.remote=t}),new oe(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(e,[t,r])=>{e.branches.push({name:t,tracking:r})}),new oe(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(e,[t,r])=>{e.tags.push({name:t,tracking:r})}),new oe(/- \[deleted]\s+\S+\s*-> (.+)$/,(e,[t])=>{e.deleted.push({tracking:t})}),new oe(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,(e,[t,r,n,i])=>{e.updated.push({name:n,tracking:i,to:r,from:t})})]}}),ty={};qe(ty,{fetchTask:()=>M8});function N8(e){return/^--upload-pack(=|$)/.test(e)}function M8(e,t,r){let n=["fetch",...r];return e&&t&&n.push(e,t),n.find(N8)?Et("git.fetch: potential exploit argument blocked."):{commands:n,format:"utf-8",parser:I8}}var j8=J({"src/lib/tasks/fetch.ts"(){"use strict";L8(),He()}});function $8(e){return vt({moves:[]},ry,e)}var ry,H8=J({"src/lib/parsers/parse-move.ts"(){"use strict";ie(),ry=[new oe(/^Renaming (.+) to (.+)$/,(e,[t,r])=>{e.moves.push({from:t,to:r})})]}}),ny={};qe(ny,{moveTask:()=>q8});function q8(e,t){return{commands:["mv","-v",...Vt(e),t],format:"utf-8",parser:$8}}var U8=J({"src/lib/tasks/move.ts"(){"use strict";H8(),ie()}}),iy={};qe(iy,{pullTask:()=>G8});function G8(e,t,r){let n=["pull",...r];return e&&t&&n.splice(1,0,e,t),{commands:n,format:"utf-8",parser(i,s){return Ic(i,s)},onError(i,s,u,a){let o=X3(Wi(i.stdOut),Wi(i.stdErr));if(o)return a(new zi(o));a(s)}}}var W8=J({"src/lib/tasks/pull.ts"(){"use strict";Jn(),R_(),ie()}});function V8(e){let t={};return sy(e,([r])=>t[r]={name:r}),Object.values(t)}function Y8(e){let t={};return sy(e,([r,n,i])=>{t.hasOwnProperty(r)||(t[r]={name:r,refs:{fetch:"",push:""}}),i&&n&&(t[r].refs[i.replace(/[^a-z]/g,"")]=n)}),Object.values(t)}function sy(e,t){Dc(e,r=>t(r.split(/\s+/)))}var z8=J({"src/lib/responses/GetRemoteSummary.ts"(){"use strict";ie()}}),uy={};qe(uy,{addRemoteTask:()=>K8,getRemotesTask:()=>J8,listRemotesTask:()=>X8,remoteTask:()=>Q8,removeRemoteTask:()=>Z8});function K8(e,t,r){return ct(["remote","add",...r,e,t])}function J8(e){let t=["remote"];return e&&t.push("-v"),{commands:t,format:"utf-8",parser:e?Y8:V8}}function X8(e){let t=[...e];return t[0]!=="ls-remote"&&t.unshift("ls-remote"),ct(t)}function Q8(e){let t=[...e];return t[0]!=="remote"&&t.unshift("remote"),ct(t)}function Z8(e){return ct(["remote","remove",e])}var eI=J({"src/lib/tasks/remote.ts"(){"use strict";z8(),He()}}),ay={};qe(ay,{stashListTask:()=>tI});function tI(e={},t){let r=__(e),n=["stash","list",...r.commands,...t],i=p_(r.splitter,r.fields,Tc(n));return Qu(n)||{commands:n,format:"utf-8",parser:i}}var rI=J({"src/lib/tasks/stash-list.ts"(){"use strict";Qi(),m_(),Oc(),y_()}}),oy={};qe(oy,{addSubModuleTask:()=>nI,initSubModuleTask:()=>iI,subModuleTask:()=>ea,updateSubModuleTask:()=>sI});function nI(e,t){return ea(["add",e,t])}function iI(e){return ea(["init",...e])}function ea(e){let t=[...e];return t[0]!=="submodule"&&t.unshift("submodule"),ct(t)}function sI(e){return ea(["update",...e])}var uI=J({"src/lib/tasks/sub-module.ts"(){"use strict";He()}});function aI(e,t){let r=isNaN(e),n=isNaN(t);return r!==n?r?1:-1:r?ly(e,t):0}function ly(e,t){return e===t?0:e>t?1:-1}function oI(e){return e.trim()}function Lu(e){return typeof e=="string"&&parseInt(e.replace(/^\D+/g,""),10)||0}var a0,cy,lI=J({"src/lib/responses/TagList.ts"(){"use strict";a0=class{constructor(e,t){this.all=e,this.latest=t}},cy=function(e,t=!1){let r=e.split(`
|
|
703
|
+
`).map(oI).filter(Boolean);t||r.sort(function(i,s){let u=i.split("."),a=s.split(".");if(u.length===1||a.length===1)return aI(Lu(u[0]),Lu(a[0]));for(let o=0,l=Math.max(u.length,a.length);o<l;o++){let c=ly(Lu(u[o]),Lu(a[o]));if(c)return c}return 0});let n=t?r[0]:[...r].reverse().find(i=>i.indexOf(".")>=0);return new a0(r,n)}}}),fy={};qe(fy,{addAnnotatedTagTask:()=>hI,addTagTask:()=>fI,tagListTask:()=>cI});function cI(e=[]){let t=e.some(r=>/^--sort=/.test(r));return{format:"utf-8",commands:["tag","-l",...e],parser(r){return cy(r,t)}}}function fI(e){return{format:"utf-8",commands:["tag",e],parser(){return{name:e}}}}function hI(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser(){return{name:e}}}}var dI=J({"src/lib/tasks/tag.ts"(){"use strict";lI()}}),pI=BO({"src/git.js"(e,t){"use strict";var{GitExecutor:r}=(m3(),Me(i_)),{SimpleGitApi:n}=(p8(),Me(M_)),{Scheduler:i}=(D8(),Me(j_)),{configurationErrorTask:s}=(He(),Me(uc)),{asArray:u,filterArray:a,filterPrimitives:o,filterString:l,filterStringOrStringArray:c,filterType:f,getTrailingOptions:h,trailingFunctionArgument:d,trailingOptionsArgument:p}=(ie(),Me(T0)),{applyPatchTask:D}=(g8(),Me(q_)),{branchTask:w,branchLocalTask:y,deleteBranchesTask:m,deleteBranchTask:g}=(R8(),Me(z_)),{checkIgnoreTask:C}=(x8(),Me(X_)),{checkIsRepoTask:E}=(P0(),Me(B0)),{cloneTask:T,cloneMirrorTask:P}=(O8(),Me(Q_)),{cleanWithOptionsTask:b,isCleanOptionsArray:B}=(G0(),Me(q0)),{diffSummaryTask:O}=(Oc(),Me(g_)),{fetchTask:A}=(j8(),Me(ty)),{moveTask:S}=(U8(),Me(ny)),{pullTask:v}=(W8(),Me(iy)),{pushTagsTask:F}=(k_(),Me(x_)),{addRemoteTask:R,getRemotesTask:k,listRemotesTask:M,remoteTask:G,removeRemoteTask:$}=(eI(),Me(uy)),{getResetMode:U,resetTask:j}=(r_(),Me(Z0)),{stashListTask:X}=(rI(),Me(ay)),{addSubModuleTask:L,initSubModuleTask:le,subModuleTask:se,updateSubModuleTask:N}=(uI(),Me(oy)),{addAnnotatedTagTask:x,addTagTask:I,tagListTask:V}=(dI(),Me(fy)),{straightThroughBufferTask:z,straightThroughStringTask:fe}=(He(),Me(uc));function Q(H,Z){this._plugins=Z,this._executor=new r(H.baseDir,new i(H.maxConcurrentProcesses),Z),this._trimmed=H.trimmed}(Q.prototype=Object.create(n.prototype)).constructor=Q,Q.prototype.customBinary=function(H){return this._plugins.reconfigure("binary",H),this},Q.prototype.env=function(H,Z){return arguments.length===1&&typeof H=="object"?this._executor.env=H:(this._executor.env=this._executor.env||{})[H]=Z,this},Q.prototype.stashList=function(H){return this._runTask(X(p(arguments)||{},a(H)&&H||[]),d(arguments))};function _e(H,Z,ue,me){return typeof ue!="string"?s(`git.${H}() requires a string 'repoPath'`):Z(ue,f(me,l),h(arguments))}Q.prototype.clone=function(){return this._runTask(_e("clone",T,...arguments),d(arguments))},Q.prototype.mirror=function(){return this._runTask(_e("mirror",P,...arguments),d(arguments))},Q.prototype.mv=function(H,Z){return this._runTask(S(H,Z),d(arguments))},Q.prototype.checkoutLatestTag=function(H){var Z=this;return this.pull(function(){Z.tags(function(ue,me){Z.checkout(me.latest,H)})})},Q.prototype.pull=function(H,Z,ue,me){return this._runTask(v(f(H,l),f(Z,l),h(arguments)),d(arguments))},Q.prototype.fetch=function(H,Z){return this._runTask(A(f(H,l),f(Z,l),h(arguments)),d(arguments))},Q.prototype.silent=function(H){return console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3"),this},Q.prototype.tags=function(H,Z){return this._runTask(V(h(arguments)),d(arguments))},Q.prototype.rebase=function(){return this._runTask(fe(["rebase",...h(arguments)]),d(arguments))},Q.prototype.reset=function(H){return this._runTask(j(U(H),h(arguments)),d(arguments))},Q.prototype.revert=function(H){let Z=d(arguments);return typeof H!="string"?this._runTask(s("Commit must be a string"),Z):this._runTask(fe(["revert",...h(arguments,0,!0),H]),Z)},Q.prototype.addTag=function(H){let Z=typeof H=="string"?I(H):s("Git.addTag requires a tag name");return this._runTask(Z,d(arguments))},Q.prototype.addAnnotatedTag=function(H,Z){return this._runTask(x(H,Z),d(arguments))},Q.prototype.deleteLocalBranch=function(H,Z,ue){return this._runTask(g(H,typeof Z=="boolean"?Z:!1),d(arguments))},Q.prototype.deleteLocalBranches=function(H,Z,ue){return this._runTask(m(H,typeof Z=="boolean"?Z:!1),d(arguments))},Q.prototype.branch=function(H,Z){return this._runTask(w(h(arguments)),d(arguments))},Q.prototype.branchLocal=function(H){return this._runTask(y(),d(arguments))},Q.prototype.raw=function(H){let Z=!Array.isArray(H),ue=[].slice.call(Z?arguments:H,0);for(let re=0;re<ue.length&&Z;re++)if(!o(ue[re])){ue.splice(re,ue.length-re);break}ue.push(...h(arguments,0,!0));var me=d(arguments);return ue.length?this._runTask(fe(ue,this._trimmed),me):this._runTask(s("Raw: must supply one or more command to execute"),me)},Q.prototype.submoduleAdd=function(H,Z,ue){return this._runTask(L(H,Z),d(arguments))},Q.prototype.submoduleUpdate=function(H,Z){return this._runTask(N(h(arguments,!0)),d(arguments))},Q.prototype.submoduleInit=function(H,Z){return this._runTask(le(h(arguments,!0)),d(arguments))},Q.prototype.subModule=function(H,Z){return this._runTask(se(h(arguments)),d(arguments))},Q.prototype.listRemote=function(){return this._runTask(M(h(arguments)),d(arguments))},Q.prototype.addRemote=function(H,Z,ue){return this._runTask(R(H,Z,h(arguments)),d(arguments))},Q.prototype.removeRemote=function(H,Z){return this._runTask($(H),d(arguments))},Q.prototype.getRemotes=function(H,Z){return this._runTask(k(H===!0),d(arguments))},Q.prototype.remote=function(H,Z){return this._runTask(G(h(arguments)),d(arguments))},Q.prototype.tag=function(H,Z){let ue=h(arguments);return ue[0]!=="tag"&&ue.unshift("tag"),this._runTask(fe(ue),d(arguments))},Q.prototype.updateServerInfo=function(H){return this._runTask(fe(["update-server-info"]),d(arguments))},Q.prototype.pushTags=function(H,Z){let ue=F({remote:f(H,l)},h(arguments));return this._runTask(ue,d(arguments))},Q.prototype.rm=function(H){return this._runTask(fe(["rm","-f",...u(H)]),d(arguments))},Q.prototype.rmKeepLocal=function(H){return this._runTask(fe(["rm","--cached",...u(H)]),d(arguments))},Q.prototype.catFile=function(H,Z){return this._catFile("utf-8",arguments)},Q.prototype.binaryCatFile=function(){return this._catFile("buffer",arguments)},Q.prototype._catFile=function(H,Z){var ue=d(Z),me=["cat-file"],re=Z[0];if(typeof re=="string")return this._runTask(s("Git.catFile: options must be supplied as an array of strings"),ue);Array.isArray(re)&&me.push.apply(me,re);let be=H==="buffer"?z(me):fe(me);return this._runTask(be,ue)},Q.prototype.diff=function(H,Z){let ue=l(H)?s("git.diff: supplying options as a single string is no longer supported, switch to an array of strings"):fe(["diff",...h(arguments)]);return this._runTask(ue,d(arguments))},Q.prototype.diffSummary=function(){return this._runTask(O(h(arguments,1)),d(arguments))},Q.prototype.applyPatch=function(H){let Z=c(H)?D(u(H),h([].slice.call(arguments,1))):s("git.applyPatch requires one or more string patches as the first argument");return this._runTask(Z,d(arguments))},Q.prototype.revparse=function(){let H=["rev-parse",...h(arguments,!0)];return this._runTask(fe(H,!0),d(arguments))},Q.prototype.clean=function(H,Z,ue){let me=B(H),re=me&&H.join("")||f(H,l)||"",be=h([].slice.call(arguments,me?1:0));return this._runTask(b(re,be),d(arguments))},Q.prototype.exec=function(H){let Z={commands:[],format:"utf-8",parser(){typeof H=="function"&&H()}};return this._runTask(Z)},Q.prototype.clearQueue=function(){return this},Q.prototype.checkIgnore=function(H,Z){return this._runTask(C(u(f(H,c,[]))),d(arguments))},Q.prototype.checkIsRepo=function(H,Z){return this._runTask(E(f(H,l)),d(arguments))},t.exports=Q}});Yi();qr();var DI=class extends or{constructor(e,t){super(void 0,t),this.config=e}};qr();qr();var ar=class extends or{constructor(e,t,r){super(e,r),this.task=e,this.plugin=t,Object.setPrototypeOf(this,new.target.prototype)}};Jn();p0();P0();G0();Y0();K0();Q0();r_();function mI(e){return e?[{type:"spawn.before",action(n,i){e.aborted&&i.kill(new ar(void 0,"abort","Abort already signaled"))}},{type:"spawn.after",action(n,i){function s(){i.kill(new ar(void 0,"abort","Abort signal received"))}e.addEventListener("abort",s),i.spawned.on("close",()=>e.removeEventListener("abort",s))}}]:void 0}function gI(e){return typeof e=="string"&&e.trim().toLowerCase()==="-c"}function _I(e,t){if(gI(e)&&/^\s*protocol(.[a-z]+)?.allow/.test(t))throw new ar(void 0,"unsafe","Configuring protocol.allow is not permitted without enabling allowUnsafeExtProtocol")}function yI(e,t){if(/^\s*--(upload|receive)-pack/.test(e))throw new ar(void 0,"unsafe","Use of --upload-pack or --receive-pack is not permitted without enabling allowUnsafePack");if(t==="clone"&&/^\s*-u\b/.test(e))throw new ar(void 0,"unsafe","Use of clone with option -u is not permitted without enabling allowUnsafePack");if(t==="push"&&/^\s*--exec\b/.test(e))throw new ar(void 0,"unsafe","Use of push with option --exec is not permitted without enabling allowUnsafePack")}function EI({allowUnsafeProtocolOverride:e=!1,allowUnsafePack:t=!1}={}){return{type:"spawn.args",action(r,n){return r.forEach((i,s)=>{let u=s<r.length?r[s+1]:"";e||_I(i,u),t||yI(i,n.method)}),r}}}ie();function vI(e){let t=Gi(e,"-c");return{type:"spawn.args",action(r){return[...t,...r]}}}ie();var o0=(0,zn.deferred)().promise;function FI({onClose:e=!0,onExit:t=50}={}){function r(){let i=-1,s={close:(0,zn.deferred)(),closeTimeout:(0,zn.deferred)(),exit:(0,zn.deferred)(),exitTimeout:(0,zn.deferred)()},u=Promise.race([e===!1?o0:s.closeTimeout.promise,t===!1?o0:s.exitTimeout.promise]);return n(e,s.close,s.closeTimeout),n(t,s.exit,s.exitTimeout),{close(a){i=a,s.close.done()},exit(a){i=a,s.exit.done()},get exitCode(){return i},result:u}}function n(i,s,u){i!==!1&&(i===!0?s.promise:s.promise.then(()=>tc(i))).then(u.done)}return{type:"spawn.after",action(i,s){return qi(this,arguments,function*(u,{spawned:a,close:o}){var l,c;let f=r(),h=!0,d=()=>{h=!1};(l=a.stdout)==null||l.on("data",d),(c=a.stderr)==null||c.on("data",d),a.on("error",d),a.on("close",p=>f.close(p)),a.on("exit",p=>f.exit(p));try{yield f.result,h&&(yield tc(50)),o(f.exitCode)}catch(p){o(f.exitCode,p)}})}}}ie();var CI="Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings",l0="Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option";function AI(e){return!e||!/^([a-z]:)?([a-z0-9/.\\_-]+)$/i.test(e)}function c0(e,t){if(e.length<1||e.length>2)throw new ar(void 0,"binary",CI);if(e.some(AI))if(t)console.warn(l0);else throw new ar(void 0,"binary",l0);let[n,i]=e;return{binary:n,prefix:i}}function wI(e,t=["git"],r=!1){let n=c0(Vt(t),r);e.on("binary",i=>{n=c0(Vt(i),r)}),e.append("spawn.binary",()=>n.binary),e.append("spawn.args",i=>n.prefix?[n.prefix,...i]:i)}qr();function bI(e){return!!(e.exitCode&&e.stdErr.length)}function SI(e){return Buffer.concat([...e.stdOut,...e.stdErr])}function RI(e=!1,t=bI,r=SI){return(n,i)=>!e&&n||!t(i)?n:r(i)}function f0(e){return{type:"task.error",action(t,r){let n=e(t.error,{stdErr:r.stdErr,stdOut:r.stdOut,exitCode:r.exitCode});return Buffer.isBuffer(n)?{error:new or(void 0,n.toString("utf-8"))}:{error:n}}}}ie();var BI=class{constructor(){this.plugins=new Set,this.events=new TI}on(e,t){this.events.on(e,t)}reconfigure(e,t){this.events.emit(e,t)}append(e,t){let r=ve(this.plugins,{type:e,action:t});return()=>this.plugins.delete(r)}add(e){let t=[];return Vt(e).forEach(r=>r&&this.plugins.add(ve(t,r))),()=>{t.forEach(r=>this.plugins.delete(r))}}exec(e,t,r){let n=t,i=Object.freeze(Object.create(r));for(let s of this.plugins)s.type===e&&(n=s.action(n,i));return n}};ie();function xI(e){let t="--progress",r=["checkout","clone","fetch","pull","push"];return[{type:"spawn.args",action(s,u){return r.includes(u.method)?E0(s,t):s}},{type:"spawn.after",action(s,u){var a;u.commands.includes(t)&&((a=u.spawned.stderr)==null||a.on("data",o=>{let l=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(o.toString("utf8"));l&&e({method:u.method,stage:kI(l[1]),progress:Se(l[2]),processed:Se(l[3]),total:Se(l[4])})}))}}]}function kI(e){return String(e.toLowerCase().split(" ",1))||"unknown"}ie();function PI(e){let t=C0(e,["uid","gid"]);return{type:"spawn.options",action(r){return Bt(Bt({},t),r)}}}function OI({block:e,stdErr:t=!0,stdOut:r=!0}){if(e>0)return{type:"spawn.after",action(n,i){var s,u;let a;function o(){a&&clearTimeout(a),a=setTimeout(c,e)}function l(){var f,h;(f=i.spawned.stdout)==null||f.off("data",o),(h=i.spawned.stderr)==null||h.off("data",o),i.spawned.off("exit",l),i.spawned.off("close",l),a&&clearTimeout(a)}function c(){l(),i.kill(new ar(void 0,"timeout","block timeout reached"))}r&&((s=i.spawned.stdout)==null||s.on("data",o)),t&&((u=i.spawned.stderr)==null||u.on("data",o)),i.spawned.on("exit",l),i.spawned.on("close",l),o()}}}Yi();function II(){return{type:"spawn.args",action(e){let t=[],r;function n(i){(r=r||[]).push(...i)}for(let i=0;i<e.length;i++){let s=e[i];if(Hu(s)){n(Ig(s));continue}if(s==="--"){n(e.slice(i+1).flatMap(u=>Hu(u)&&Ig(u)||u));break}t.push(s)}return r?[...t,"--",...r.map(String)]:t}}}ie();var LI=pI();function NI(e,t){var r;let n=new BI,i=S0(e&&(typeof e=="string"?{baseDir:e}:e)||{},t);if(!mc(i.baseDir))throw new DI(i,"Cannot use simple-git on a directory that does not exist");return Array.isArray(i.config)&&n.add(vI(i.config)),n.add(EI(i.unsafe)),n.add(II()),n.add(FI(i.completion)),i.abort&&n.add(mI(i.abort)),i.progress&&n.add(xI(i.progress)),i.timeout&&n.add(OI(i.timeout)),i.spawnOptions&&n.add(PI(i.spawnOptions)),n.add(f0(RI(!0))),i.errors&&n.add(f0(i.errors)),wI(n,i.binary,(r=i.unsafe)==null?void 0:r.allowUnsafeCustomBinary),new LI(i,n)}Jn();var Xn=NI;var tL=bt(Ey(),1);async function vy(e,t="main"){Te(at`Initializing git repository at ${Ke.path(e)}...`),await wy();let r=Xn(e);await r.init(),await r.checkoutLocalBranch(t)}async function Fy(e){return gi("cmd_all_timing_network_ms")(async()=>{let{repoUrl:t,destination:r,progressUpdater:n,shallow:i,latestTag:s}=e;Te(at`Git-cloning repository ${t} into ${Ke.path(r)}...`),await wy();let[u,a]=t.split("#"),o={"--recurse-submodules":null};if(a&&s)throw new ne("Error cloning the repository. Git can't clone the latest release with a 'branch'.");if(a&&(o["--branch"]=a),i&&s)throw new ne("Error cloning the repository. Git can't clone the latest release with the 'shallow' property.");i&&(o["--depth"]=1);let c={progress:({stage:f,progress:h,processed:d,total:p})=>{let D=`${f}, ${d}/${p} objects (${h}% complete)`;n&&n(D)},...!Wh()&&{config:["core.askpass=true"]}};try{if(await Xn(c).clone(u,r,o),s){let f=Xn(r),h=await rL(f,t);await f.checkout(h)}}catch(f){if(f instanceof Error){let h=new ne(f.message);throw h.stack=f.stack,h}throw f}})}async function rL(e,t){let r=(await e.tags()).latest;if(!r)throw new ne(`Couldn't obtain the most recent tag of the repository ${t}`);return r}async function Cy(e){await Xn({baseDir:e}).raw("add","--all")}async function Ay(e,t){let r=Xn({baseDir:t?.directory}),n=t?.author?{"--author":t.author}:void 0;return(await r.commit(e,n)).commit}async function wy(){if(!await Yh())throw new ne("Git is necessary in the environment to continue",at`Install ${Ke.link("git","https://git-scm.com/book/en/v2/Getting-Started-Installing-Git")}`)}_();_();async function by(e,t=[],r=!1,n={}){Te(at`Ensuring that the user is authenticated with the Admin API with the following scopes for the store ${Ke.raw(e)}:
|
|
704
704
|
${Ke.json(t)}
|
|
705
705
|
`);let i=await fo({adminApi:{scopes:t,storeFqdn:e}},process.env,{forceRefresh:r,...n});if(!i.admin)throw new Ps("No admin token found after ensuring authenticated");return i.admin}async function Sy(e=[]){Te(at`Ensuring that the user is authenticated with the Business Platform API with the following scopes:
|
|
706
706
|
${Ke.json(e)}
|
|
707
|
-
`);let t=await fo({businessPlatformApi:{scopes:e}},process.env);if(!t.businessPlatform)throw new Ps("No business-platform token found after ensuring authenticated");return t.businessPlatform}_();var ra=".shopify",Gc="project.json";async function Ry(e){let t=Ue(e,ra,Gc);return await ge(t)?JSON.parse(await Pe(t)):{}}async function na(e,{shop:t,shopName:r,email:n}){let i=Ue(e,ra,Gc),s={};await ge(i)?s=JSON.parse(await Pe(i)):await yr(
|
|
707
|
+
`);let t=await fo({businessPlatformApi:{scopes:e}},process.env);if(!t.businessPlatform)throw new Ps("No business-platform token found after ensuring authenticated");return t.businessPlatform}_();var ra=".shopify",Gc="project.json";async function Ry(e){let t=Ue(e,ra,Gc);return await ge(t)?JSON.parse(await Pe(t)):{}}async function na(e,{shop:t,shopName:r,email:n}){let i=Ue(e,ra,Gc),s={};await ge(i)?s=JSON.parse(await Pe(i)):await yr(ze(i));let u={...s,shop:t,shopName:r,email:n};return await Oe(i,JSON.stringify(u)),await By(e),u}async function Ty(e,{id:t,title:r}){try{let n=Ue(e,ra,Gc),s={...JSON.parse(await Pe(n)),storefront:{id:t,title:r}};return await Oe(n,JSON.stringify(s)),await By(e),s}catch{throw new ne("Project configuration could not be found.")}}async function By(e){try{let t=Ue(e,".gitignore"),r=await ge(t)?await Pe(t):"";return r.includes(".shopify")?!1:(r.length>0&&(r+=`
|
|
708
708
|
`),r+=`${ra}\r
|
|
709
709
|
`,await Oe(t,r),!0)}catch{return!1}}_();_();_();_();function xy(e,t,r,n,i={}){Te(at`Sending ${Ke.json(e)} GraphQL request:
|
|
710
710
|
${Ke.raw(t.toString().trim())}
|
|
@@ -772,7 +772,7 @@ Request ID: ${r}
|
|
|
772
772
|
status
|
|
773
773
|
webUrl
|
|
774
774
|
}
|
|
775
|
-
`;async function rv(e){let{currentUserAccount:t}=await tv(EL,e);if(!t)throw new ne("Unable to get current user account");return{email:t.email,activeShops:[...t.organizations?.edges?.flatMap(r=>r.node?.categories.flatMap(n=>n?.destinations?.edges?.map(i=>i.node)))??[],...t.orphanDestinations?.categories?.flatMap(r=>r.destinations?.edges?.map(n=>n.node))??[]].filter(({status:r})=>r==="ACTIVE").map(({name:r,webUrl:n})=>({name:r,fqdn:n.replace(/^https?:\/\//,"").replace(/\/admin$/,"")}))}}_();_();_();import{createRequire as vL}from"module";import{pathToFileURL as FL}from"url";var CL=vL(import.meta.url);async function nv(e){let t=CL.resolve("vite",process.env.SHOPIFY_UNIT_TEST?void 0:{paths:[e]}),r=await qs(t),n=r.content.exports?.["."];typeof n!="string"&&(n=n?.import),typeof n!="string"&&(n=n.default);let i=te(
|
|
775
|
+
`;async function rv(e){let{currentUserAccount:t}=await tv(EL,e);if(!t)throw new ne("Unable to get current user account");return{email:t.email,activeShops:[...t.organizations?.edges?.flatMap(r=>r.node?.categories.flatMap(n=>n?.destinations?.edges?.map(i=>i.node)))??[],...t.orphanDestinations?.categories?.flatMap(r=>r.destinations?.edges?.map(n=>n.node))??[]].filter(({status:r})=>r==="ACTIVE").map(({name:r,webUrl:n})=>({name:r,fqdn:n.replace(/^https?:\/\//,"").replace(/\/admin$/,"")}))}}_();_();_();import{createRequire as vL}from"module";import{pathToFileURL as FL}from"url";var CL=vL(import.meta.url);async function nv(e){let t=CL.resolve("vite",process.env.SHOPIFY_UNIT_TEST?void 0:{paths:[e]}),r=await qs(t),n=r.content.exports?.["."];typeof n!="string"&&(n=n?.import),typeof n!="string"&&(n=n.default);let i=te(ze(r.path),n);return import(FL(i).href)}var iv={...console},sv=new Set,uv=new Set,av=[];function AL(e,...t){uv.has(e)||(uv.add(e),av.push(...t))}var nf=new Set;function wL(e,t){let r=e.map(n=>{let i=n?.message??n;return typeof i=="string"?i:""}).filter(Boolean).join("");return nf.has(r)?!0:(nf.add(r),t!==!0&&setTimeout(()=>nf.delete(r),t??1e3),!1)}function bL([e]){return typeof e=="string"&&/\[h2:(warn|info):(createStorefrontClient|createCustomerAccountClient)\]/.test(e)?!0:void 0}function SL(e,t){sv.has(e)||(sv.add(e),console[e]=(...r)=>{if(t!==!1&&wL(r,t?.(r)))return;let n=av.reduce((s,[u,a])=>(u(r,s.length)&&s.push(a),s),[]);if(n.length===0)return iv[e](...r);let i=n.reduce((s,u)=>s&&u(s),r);if(i)return iv[e](...i)})}function pa(e=!1){SL("log",bL),AL("auth",[([t])=>e&&typeof t=="string"&&t.includes("To run this command,"),([t])=>{}],[([t])=>typeof t=="string"&&t.includes("Logged in."),()=>{process.stdout.write(Ph.eraseLines(e?5:6))}])}async function ov(e,t){pa(!1);let r=t===!0,n=e?await Ry(e):{},{email:i,shopName:s}=n;if(typeof t!="string"&&(t=n.shop),t&&(t=await yi(t)),!t||!s||!i||r||t!==n.shop){let o=await Sy().catch(()=>{throw new ne("Unable to authenticate with Shopify. Please report this issue.")}),l=await rv(o),f=!r&&t&&l.activeShops.find(({fqdn:h})=>t===h)||await St({message:"Select a shop to log in to",choices:l.activeShops.map(({name:h,fqdn:d})=>({label:`${h} (${d})`,value:{name:h,fqdn:d}}))});t=f.fqdn,s=f.name,i=l.email}let u=await by(t).catch(()=>{throw new ne("Unable to authenticate with Shopify",void 0,[`Ensure the shop that you specified is correct (you are trying to use: ${t})`])}),a=e?await na(e,{shop:t,shopName:s,email:i}):{shop:t,shopName:s,email:i};return{session:u,config:a}}function lv(e){Rn({headline:"Shopify authentication complete",body:["You are logged in to",{userInput:e.shopName??e.shop??"your store"},...e.email?["as",{userInput:e.email}]:[]]})}_();function cv(e=""){return e.replace(/[\W_]+/g," ").split(" ").filter(t=>t.length>0).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" ")}_();import uf from"os";var nt="h2",af=()=>uf.platform()==="win32",pv=()=>!!process.env.MINGW_PREFIX;function of(e){return e[0]==="~"?te(uf.homedir(),e.slice(1)):e}function RL(e){try{return ge(of(e))}catch{return!1}}async function TL(e){try{return await pt(`which ${e}`),!0}catch{return!1}}function Dv(e){return e==="bash"?"~/.bashrc":e==="zsh"?"~/.zshrc":`~/.config/fish/functions/${nt}.fish`}async function mv(e,t){let r=Dv(t);try{return t==="fish"?await RL(r):!!(await pt(`grep 'alias ${e}' ${of(r)}`)).stdout}catch{return!1}}async function BL(e,t,r=!1){let n=Dv(e);t=`"${t}"`,t=t.replaceAll(`
|
|
776
776
|
`,"\\n"),af()||(t=t.replaceAll("$","\\$"));try{return await pt(`printf ${t} ${r?">>":">"} ${of(n)}`),!0}catch(i){return Te(`Could not create or modify ${n}:
|
|
777
777
|
`+i.stack),!1}}async function sf(e,t,r){return await TL(e)?await mv(t,e)?!0:await BL(e,r,e!=="fish"):!1}async function fv(e,t){try{return await pt(e,{shell:t}),!0}catch(r){return Te(`Could not run shell script for ${t}:
|
|
778
778
|
`+r.stack),!1}}function xL(e){return["zsh","bash","fish"].includes(e)}async function kL(){try{if(af()&&!pv())await pt(`Get-Alias -Name ${nt}`);else{let e=uf.userInfo().shell?.split("/").pop()??"bash";return xL(e)?await mv(nt,e):!1}return!0}catch{return!1}}async function gv(){return af()&&!pv()?await LL():await OL()}var hv=`
|
|
@@ -792,7 +792,7 @@ $profileContent = Get-Content -Path $PROFILE
|
|
|
792
792
|
if (!$profileContent -or $profileContent -NotLike '*Invoke-Local-H2*') {
|
|
793
793
|
Add-Content -Path $PROFILE -Value '${IL}'
|
|
794
794
|
}
|
|
795
|
-
`;async function LL(){let e=[];return await fv(dv,"powershell.exe")&&e.push("PowerShell"),await fv(dv,"pwsh.exe")&&e.push("PowerShell 7+"),e}async function es(e=process.cwd(),t){if(await kL())return nt;let r="npx",n=t??await ho(e).catch(()=>null);return(n==="bun"||n==="pnpm"||n==="yarn")&&(r=n),`${r} shopify hydrogen`}_();import{readdir as wv}from"fs/promises";_();function _v(e){return e.replace(/(^|\.)_index$/,"$1index").replace(/\.(?!\w+\])/g,"/")}_();import{createRequire as
|
|
795
|
+
`;async function LL(){let e=[];return await fv(dv,"powershell.exe")&&e.push("PowerShell"),await fv(dv,"pwsh.exe")&&e.push("PowerShell 7+"),e}async function es(e=process.cwd(),t){if(await kL())return nt;let r="npx",n=t??await ho(e).catch(()=>null);return(n==="bun"||n==="pnpm"||n==="yarn")&&(r=n),`${r} shopify hydrogen`}_();import{readdir as wv}from"fs/promises";_();function _v(e){return e.replace(/(^|\.)_index$/,"$1index").replace(/\.(?!\w+\])/g,"/")}_();import{createRequire as cV}from"module";import hV from"path";import{readdir as pV}from"fs/promises";_();import{createRequire as KW}from"module";_();var yv="Classic Remix Compiler projects are no longer supported, please upgrade to Vite by running 'npx shopify hydrogen setup vite'";async function NL(e){return!!(await _t(e,"vite.config")).filepath}async function Ev(e){let t=await NL(e);return t&&await Fv(e)&&ft({headline:"Both Vite and Remix config files found.",body:"The remix.config.js file is not used in Vite projects. Please remove it to avoid conflicts."}),t}async function vv(e,t){let r=await nv(e),n="build",i=process.env.NODE_ENV||"production",s=await r.loadConfigFromFile({command:n,mode:i,isSsrBuild:!0},void 0,e);if(!s||!s.path)throw new Error("No Vite config found");let u=await r.resolveConfig({root:e,build:{ssr:!0}},n,i,i),{appDirectory:a,serverBuildFile:o,routes:l}=ML(u),c=u.build.outDir,f=c.replace(/server$/,"client"),h=u.build.rollupOptions.output,{entryFileNames:d}=(Array.isArray(h)?h[0]:h)??{},p=te(c,typeof d=="string"?d:o??"index.js"),D=t??u.build.ssr,w=Ue(u.root,typeof D=="string"?D:"server");return{clientOutDir:f,serverOutDir:c,serverOutFile:p,resolvedViteConfig:u,userViteConfig:s.config,remixConfig:{routes:l??{},appDirectory:a??te(u.root,"app"),rootDirectory:u.root,serverEntryPoint:(await _t(ze(w),Sn(w))).filepath||w}}}function ML(e){try{return jL(e)}catch{return $L(e)}}function jL(e){if(!e.__reactRouterPluginContext)throw new Error("Could not resolve React Router config");let{appDirectory:t,serverBuildFile:r,routes:n}=e.__reactRouterPluginContext.reactRouterConfig;return{appDirectory:t,serverBuildFile:r,routes:n}}function $L(e){let{remixConfig:t}=qL(e)?.api?.getPluginOptions()??{};return t?{appDirectory:t.appDirectory,serverBuildFile:t.serverBuildFile,routes:t.routes}:{}}function HL(e,t){return e.plugins.find(r=>r.name===t)}function qL(e){return HL(e,"hydrogen:main")}async function Fv(e){return!!(await _t(e,"remix.config")).filepath}async function Cv(e,t=process.env.NODE_ENV){if(!await Ev(e))throw new ne(yv);return(await vv(e)).remixConfig}var UL=[/robots\.txt/],cf={home:["_index","$"],page:"pages*",cart:["cart","cart.$lines","discount.$code"],products:"products*",collections:"collections*",policies:"policies*",blogs:"blogs*",account:"account*",search:["search","api.predictive-search"],robots:"[robots.txt]",sitemap:["[sitemap.xml]","sitemap.$type.$page[.xml]"]},lf=[];async function Av(e=Object.keys(cf)){lf.length===0&&(lf=(await wv(await Fi(vr))).map(n=>n.replace(/\.tsx?$/,"")));let t={},r=[];for(let n of e){t[n]=[];let i=cf[n];if(!i)throw new ne(`No route found for ${n}. Try one of ${GL.join()}.`);let s=Array.isArray(i)?i:[i];for(let u of s){let a=u.replace("*","");t[n].push(...lf.filter(o=>o.startsWith(a)))}r.push(...t[n])}return{routeGroups:t,resolvedRouteFiles:r}}var GL=[...Object.keys(cf),"all"];async function bv(e,t){let{routeGroups:r,resolvedRouteFiles:n}=e.routeName==="all"?await Av():await Av([e.routeName]),{rootDirectory:i,appDirectory:s}=t||await Cv(e.directory),u=n.flatMap(h=>vr+"/"+h),a=await Wt(i),o=te(s,vr),l=await WL(o,e),c=!!(e.typescript??await ge(te(i,"tsconfig.json"))),f=[];for(let h of u)f.push(await ff(h,{...e,typescript:c,localePrefix:l,rootDirectory:i,appDirectory:s,formatOptions:a}));return l&&await zL({typescript:c,localePrefix:l,routesDirectory:o,formatOptions:a,adapter:e.adapter}),{routes:f,routeGroups:r,isTypescript:c,formatOptions:a}}async function WL(e,{localePrefix:t,routeName:r,v1RouteConvention:n}){if(t)return t;if(t!==void 0||r==="all")return;let i=await wv(e).catch(()=>[]),s=n?/^\(\$(\w+)\)$/:/^\(\$(\w+)\)\.(_index|\$|cart).[jt]sx?$/,u=i.find(a=>s.test(a));if(u)return u.match(s)?.[1]}async function ff(e,{rootDirectory:t,appDirectory:r,typescript:n,force:i,adapter:s,templatesRoot:u,formatOptions:a,localePrefix:o,v1RouteConvention:l=!1,signal:c,overwriteFileDeps:f=!0}){u??=await Ci();let h=(e.match(/(\.[jt]sx?)$/)??[])[1]??".tsx";e=e.replace(h,"");let d=te(r,VL(e,o,{v1RouteConvention:l})+(n?h:h.replace(".ts",".js"))),p={operation:"created",sourceRoute:e,destinationRoute:Bh(d,t)};if(!i&&await ge(d)){if(!await gr({message:`The file ${p.destinationRoute} already exists. Do you want to replace it?`,defaultValue:!1,confirmationMessage:"Yes",cancellationMessage:"No",abortSignal:c}))return{...p,operation:"skipped"};p.operation="replaced"}let D=await Fi(e+h,u),w=await YL(D,await Fi("",u));for(let y of w){let g=y.startsWith(vr+"/")?d:te(r,y.replace(/\.ts(x?)$/,`.${n?"ts$1":"js$1"}`));if(!f&&await ge(g))continue;await ge(ze(g))||await yr(ze(g));let C=await Fi(y,u);if(!/\.[jt]sx?$/.test(y)){await _r(C,g);continue}let E=await Pe(C);n||(E=await $r(E,C)),s&&(E=Sv(E,s)),E=await Mr(E,a,g),await Oe(g,E)}return p}function Sv(e,t){return e.replace(/@shopify\/remix-oxygen/g,t)}function VL(e,t,r){let n=e.replace(vr+"/",""),i=t&&!UL.some(s=>s.test(n))?`($${t})`+(r.v1RouteConvention?"/":"."):"";return vr+"/"+i+(r.v1RouteConvention?_v(n):n)}async function YL(e,t){let r=new Set([e]),n=new Set([Mt(t,e)]);for(let i of r){let s=(await Pe(i,{encoding:"utf8"})).matchAll(/^(import|export)\s+.*?\s+from\s+['"](.*?)['"];?$/gims);for(let[,,u]of s){if(!u||!/^(\.|~)/.test(u)||(u=u.replace(/\?[a-z.]+$/,""),u=u.replace("~",Mt(ze(i),t)||"."),u.includes("/+types/")))continue;let a=Ue(ze(i),u),o=(await _t(ze(a),Sn(a))).filepath||a;o.includes(`/${vr}/`)||(n.add(Mt(t,o)),/\.[jt]sx?$/.test(o)&&r.add(o))}}return[...n]}function zL({typescript:e,localePrefix:t,...r}){return KL({...r,typescript:e,templateName:"locale-check.ts",routeName:`($${t})${e?".tsx":".jsx"}`})}async function KL({templateName:e,routeName:t,routesDirectory:r,formatOptions:n,typescript:i,adapter:s}){let u=te(r,t);if(await ge(u))return;let a=await Dt("routes",e);if(!await ge(a))throw new Error("Unknown strategy");let o=await Pe(a);s&&(o=Sv(o,s)),i||(o=await $r(o,a)),o=await Mr(o,n,u),await Oe(u,o)}_();_();var JL=[{pattern:"app is not installed",abort:["Hydrogen sales channel isn't installed","Install the Hydrogen sales channel on your store to start creating and linking Hydrogen storefronts: https://apps.shopify.com/hydrogen"]},{pattern:"Access denied for hydrogenStorefrontCreate field",abort:["Couldn't connect storefront to Shopify",["Common reasons for this error include:",{list:{items:["The Hydrogen sales channel isn't installed on the store.","You don't have the required account permission to manage apps or channels.","You're trying to connect to an ineligible store type (Trial, Development store)"]}}]]},{pattern:"Access denied for hydrogenStorefronts field",abort:["Couldn't access Hydrogen storefronts",["Common reasons for this error include:",{list:{items:["You don't have full access to apps or access to the Hydrogen channel.","The Hydrogen sales channel isn't installed on the store."]}}]]}];async function Zn(e,t,r){let n="Admin",i=`https://${t.storeFqdn}/admin/api/unstable/graphql.json`;try{return await Zi({query:e,api:n,url:i,token:t.token,variables:r})}catch(s){let u=s.errors;for(let{pattern:a,abort:o}of JL)if(u?.some?.(l=>l.message.includes(a)))throw new ne(...o);throw s}}_();var XL=/gid:\/\/shopify\/\w*\/(\d+)/;function Rv(e){let t=XL.exec(e);if(t&&t[1]!==void 0)return t[1];throw new ne(`Invalid Global ID: ${e}`)}var QL=`#graphql
|
|
796
796
|
query LinkStorefront {
|
|
797
797
|
hydrogenStorefronts {
|
|
798
798
|
id
|
|
@@ -800,7 +800,7 @@ if (!$profileContent -or $profileContent -NotLike '*Invoke-Local-H2*') {
|
|
|
800
800
|
productionUrl
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
|
-
`;async function Tv(e){let{hydrogenStorefronts:t}=await Zn(
|
|
803
|
+
`;async function Tv(e){let{hydrogenStorefronts:t}=await Zn(QL,e);return t.map(r=>({...r,parsedId:Rv(r.id)}))}var hf={js:"JavaScript",ts:"TypeScript"};async function xv(e,t,r){let n=r??await Rg({abortSignal:e.signal,extraChoices:{none:"Set up later "+mr.dim(`(run \`${t} setup markets\`)`)}}),i=n==="none"?void 0:n;return{i18nStrategy:i,setupI18n:async s=>{i&&await Sg(i,s)}}}function kv(e){return{setupRoutes:async(t,r,n)=>(await bv({routeName:"all",directory:t,force:!0,typescript:r==="ts",localePrefix:n?.i18nStrategy==="subfolders"?"locale":!1,signal:e.signal,...n},{rootDirectory:t,appDirectory:te(t,"app")})).routeGroups}}function Pv(e){return Promise.all(["routes.ts","root","entry.server","entry.client","../server.ts"].map(t=>ff(t,e)))}async function Ov(e,t,r){return t===nt?{}:r??await gr({confirmationMessage:"Yes",cancellationMessage:"No",message:["Create a global",{command:nt},"alias to run commands instead of",{command:t},"?"],abortSignal:e.signal})?{createShortcut:async()=>{try{return(await gv()).length>0}catch(i){return Te("Failed to create shortcut."+(i?.stack??i?.message??i)),!1}},showShortcutBanner:()=>Ft({body:`You'll need to restart your terminal session to make \`${nt}\` alias available.`})}:{}}async function Iv(e){pa(!0);let{session:t,config:r}=await ov();lv(r);let n=await Tv(t),i=await tN(n),s;return i?s=i.title:s=await ks({message:"New storefront name",defaultValue:cv(r.shopName),abortSignal:e.signal}),{...r,id:i?.id,title:s,session:t}}async function tN(e){let t=[{label:"Create a new storefront",value:null},...e.map(({id:n,title:i,productionUrl:s})=>({label:`${i} (${s})`,value:n}))];if(t.length===1)return;let r=await St({message:"Select a Hydrogen storefront to link",choices:t});return r?e.find(({id:n})=>n===r):void 0}async function Da({storefrontInfo:e,controller:t,force:r,path:n}){let i=e&&Bs(e.title),s=n??i??await ks({message:"Where would you like to create your storefront?",defaultValue:"hydrogen-storefront",abortSignal:t.signal}),u=Ue(process.cwd(),s);if(await Bv(u)){if(!r&&i&&(s=await ks({message:`There's already a folder called \`${i}\`. Where do you want to create the app?`,defaultValue:i,abortSignal:t.signal}),u=Ue(process.cwd(),s),await Bv(u)||(r=!0)),!r&&!await gr({message:`The directory ${mr.cyan(s)} is not empty. Do you want to delete the existing files and continue?`,defaultValue:!1,abortSignal:t.signal})){Ft({body:`Destination path ${mr.cyan(s)} already exists and is not an empty directory. You may use \`--force\` or \`-f\` to override it.`});return}await Tn(u,{force:!0})}return{name:Sn(s),location:s,directory:u,storefrontTitle:e?.title}}async function ma(e,t,r){let n=r??await St({message:"Select a language",choices:[{label:"JavaScript",value:"js"},{label:"TypeScript",value:"ts"}],defaultValue:"js",abortSignal:t.signal});return{language:n,async transpileProject(){n!=="ts"&&await Gl(e)}}}async function Lv(e,t,r){let n=r??await Ag({abortSignal:t.signal,extraChoices:{none:"Skip and set up later"}}),i=n==="none"?void 0:n;return{cssStrategy:i,async setupCss(){if(i){if(i==="postcss"||i==="css-modules")return;let s=await Cg(i,{rootDirectory:e,appDirectory:te(e,"app")},!0);s&&await s.workPromise}}}}async function ga(e,t,r,n){let i=r??Hs(),s="npm";if(n!==!1)if(i==="unknown"){let u=await St({message:"Select package manager to install dependencies",choices:[{label:"NPM",value:"npm"},{label:"PNPM",value:"pnpm"},{label:"Yarn v1",value:"yarn"},{label:"Skip and install later",value:"no"}],defaultValue:"npm",abortSignal:t.signal});u==="no"?n=!1:(s=u,n=!0)}else n===void 0?(s=i,n=await gr({message:`Install dependencies with ${i}?`,confirmationMessage:"Yes",cancellationMessage:"No",abortSignal:t.signal})):s=i;return Er&&(await _r(te(xn(),".npmrc"),te(e,".npmrc")).catch(()=>{}),n||await eN(await sp(),te(e,"node_modules")).catch(()=>{})),{packageManager:s,shouldInstallDeps:n,installDeps:n?async()=>{await fd({directory:e,packageManager:s,args:[],signal:t.signal})}:()=>{}}}var rN=`
|
|
804
804
|
node_modules
|
|
805
805
|
/.cache
|
|
806
806
|
/build
|
|
@@ -810,13 +810,13 @@ node_modules
|
|
|
810
810
|
.env
|
|
811
811
|
.shopify
|
|
812
812
|
.react-router
|
|
813
|
-
`.slice(1);async function _a(e){try{return await vy(e),await Oe(te(e,".gitignore"),
|
|
813
|
+
`.slice(1);async function _a(e){try{return await vy(e),await Oe(te(e,".gitignore"),rN),process.env.NODE_ENV==="test"&&process.env.CI&&(await pt('git config --global user.name "hydrogen"'),await pt('git config --global user.email "hydrogen@shopify.com"')),Ur(e,"Scaffold Storefront")}catch(t){Te(`Failed to initialize Git.
|
|
814
814
|
`+(t?.stack??t?.message??t))}}async function Ur(e,t){try{await Cy(e),await Ay(t,{directory:e})}catch(r){Te(`Failed to commit code.
|
|
815
|
-
`+(r?.stack??r?.message??r))}}async function ya(e,{language:t,packageManager:r,depsInstalled:n,cssStrategy:i,cliCommand:s,routes:u,i18n:a,depsError:o,i18nError:l,routesError:c}){let f=!!(o||l||c),h=[];e.storefrontTitle&&h.push(["Shopify",e.storefrontTitle]),t&&h.push(["Language",hf[t]]),i&&h.push(["Styling",ji[i]]),!l&&a&&h.push(["Markets",Wl[a].split(" (")[0]]);let d="";if(!c&&u&&Object.keys(u).length){h.push(["Routes",""]);for(let[y,m]of Object.entries(u)){m=Array.isArray(m)?m:[m];let g=[...new Set(m.map(C=>"/"+
|
|
815
|
+
`+(r?.stack??r?.message??r))}}async function ya(e,{language:t,packageManager:r,depsInstalled:n,cssStrategy:i,cliCommand:s,routes:u,i18n:a,depsError:o,i18nError:l,routesError:c}){let f=!!(o||l||c),h=[];e.storefrontTitle&&h.push(["Shopify",e.storefrontTitle]),t&&h.push(["Language",hf[t]]),i&&h.push(["Styling",ji[i]]),!l&&a&&h.push(["Markets",Wl[a].split(" (")[0]]);let d="";if(!c&&u&&Object.keys(u).length){h.push(["Routes",""]);for(let[y,m]of Object.entries(u)){m=Array.isArray(m)?m:[m];let g=[...new Set(m.map(C=>"/"+nN(C)))].sort();g.length>2&&(g=[...new Set(g.map(E=>E.split("/")[1]??""))].map(E=>"/"+E+"/*")),d+=`
|
|
816
816
|
\u2022 ${Oh(y)} ${mr.dim("("+g.join(" & ")+")")}`}}let p=1+h.reduce((y,[m])=>Math.max(y,m.length),0),D=f?ft:Rn;[].push(["Dependencies","were installed"]),D({headline:"Storefront setup complete"+(f?" with errors (see warnings below).":"!"),body:h.map(([y,m])=>` ${(y+":").padEnd(p," ")} ${mr.dim(m)}`).join(`
|
|
817
817
|
`)+d,customSections:[f&&{title:`Warnings
|
|
818
818
|
`,body:[{list:{items:[o&&["Failed to install dependencies:",{subdued:o.message}],l&&["Failed to scaffold Markets:",{subdued:l.message}],c&&["Failed to scaffold routes:",{subdued:c.message}]].filter(y=>!!y)}}]},{title:`Next steps
|
|
819
|
-
`,body:[{list:{items:[["Run",{command:[e.directory===process.cwd()?void 0:`cd ${e.location.replace(/^\.\//,"")}`,n?void 0:`${r} install`,Hh()?"npm run dev":oo(r,"dev")].filter(Boolean).join(" && ")}]].filter(y=>!!y)}}]}].filter(y=>!!y)})}function Ea(e,t){return async function(n){if(e.abort(),await Promise.resolve(),t?.directory&&await Tn(t.directory,{force:!0}).catch(()=>{}),uo(new ne("Failed to initialize project: "+(n?.message??""),n?.tryMessage??n?.stack)),process.env.SHOPIFY_UNIT_TEST&&process.exit.name!=="spy")throw console.error("Error during test before process.exit:",n),n;process.exit(1)}}async function Bv(e){return await ge(e)&&await Ls(e)&&(await
|
|
819
|
+
`,body:[{list:{items:[["Run",{command:[e.directory===process.cwd()?void 0:`cd ${e.location.replace(/^\.\//,"")}`,n?void 0:`${r} install`,Hh()?"npm run dev":oo(r,"dev")].filter(Boolean).join(" && ")}]].filter(y=>!!y)}}]}].filter(y=>!!y)})}function Ea(e,t){return async function(n){if(e.abort(),await Promise.resolve(),t?.directory&&await Tn(t.directory,{force:!0}).catch(()=>{}),uo(new ne("Failed to initialize project: "+(n?.message??""),n?.tryMessage??n?.stack)),process.env.SHOPIFY_UNIT_TEST&&process.exit.name!=="spy")throw console.error("Error during test before process.exit:",n),n;process.exit(1)}}async function Bv(e){return await ge(e)&&await Ls(e)&&(await ZL(e)).length>0}function nN(e){return e.replace(/(^|\.)_index$/,"").replace(/((^|\.)[^\.]+)_\./g,"$1.").replace(/\.(?!\w+\])/g,"/").replace(/\$$/g,":catchAll").replace(/\$/g,":").replace(/[\[\]]/g,"").replace(/:\w*Handle/i,":handle")}_();var iN=`#graphql
|
|
820
820
|
mutation CreateStorefront($title: String!) {
|
|
821
821
|
hydrogenStorefrontCreate(title: $title) {
|
|
822
822
|
hydrogenStorefront {
|
|
@@ -832,7 +832,7 @@ node_modules
|
|
|
832
832
|
jobId
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
|
-
`;async function Nv(e,t){let{hydrogenStorefrontCreate:{hydrogenStorefront:r,userErrors:n,jobId:i}}=await Zn(
|
|
835
|
+
`;async function Nv(e,t){let{hydrogenStorefrontCreate:{hydrogenStorefront:r,userErrors:n,jobId:i}}=await Zn(iN,e,{title:t});if(!r||!i||n.length>0){let s=n.map(({message:u})=>u).join(", ");throw new ne("Could not create storefront. "+s)}return{jobId:i,storefront:r}}_();var sN=`#graphql
|
|
836
836
|
query FetchJob($id: ID!) {
|
|
837
837
|
hydrogenStorefrontJob(id: $id) {
|
|
838
838
|
id
|
|
@@ -843,19 +843,19 @@ node_modules
|
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
|
-
`;async function
|
|
846
|
+
`;async function uN(e,t){let{hydrogenStorefrontJob:r}=await Zn(sN,e,{id:t});return r}function Mv(e,t){return new Promise((r,n)=>{let i=setInterval(async()=>{let s=await uN(e,t);if(s.errors.length>0)return clearInterval(i),n();if(s.done)return clearInterval(i),r()},500)})}async function jv(e,t){let r=e.mockShop?"mock":await St({message:"Connect to Shopify",choices:[{label:"Use sample data from mock.shop (You can connect a Shopify account later)",value:"mock"},{label:"Link your Shopify account",value:"link"}],defaultValue:"mock",abortSignal:t.signal}),n=r==="link"?await Iv(t):void 0,i=await Da({...e,storefrontInfo:n,controller:t});if(!i)return;r==="mock"&&(i.storefrontTitle="Mock.shop");let s=Ea(t,i),u=n&&!n.id&&Nv(n.session,n.title).then(async({storefront:O,jobId:A})=>(A&&await Mv(n.session,A),O)).catch(s),a=await Ci(),o=aN(a,i.directory,{force:!0,recursive:!0,filter:O=>!/^(app(\/|$)|dist(\/|$)|node_modules(\/|$)|server\.ts$|\.shopify(\/|$))/i.test(Mt(a,O))}).then(()=>Pv({rootDirectory:i.directory,appDirectory:te(i.directory,"app"),typescript:!0})).catch(s),l={create:"Creating storefront",setup:`Setting up ${e.quickstart?"Quickstart ":""}project`,install:"Installing dependencies. This could take a few minutes"},c=[{title:l.create,task:async()=>{await u}},{title:l.setup,task:async()=>{await o}}],f=await es(),h=`# The variables added in this file are only available locally in MiniOxygen.
|
|
847
847
|
# Run \`${f} link\` to also inject environment variables from your storefront,
|
|
848
|
-
# or \`${f} env pull\` to populate this file.`;o=o.then(()=>{let O=[jr(te(i.directory,"package.json"),!1,S=>(S=
|
|
848
|
+
# or \`${f} env pull\` to populate this file.`;o=o.then(()=>{let O=[jr(te(i.directory,"package.json"),!1,S=>(S=oN(S),S.replace(/"name": "[^"]+"/,`"name": "${Bs(n?.title??i.name)}"`)))],A;return n?(O.push(na(i.directory,n),Oe(te(i.directory,".env"),h)),n.id?A={id:n.id,title:n.title}:u&&O.push(u.then(S=>{A=S}))):r==="mock"&&O.push(Oe(te(i.directory,".env"),h+`
|
|
849
849
|
`+[["SESSION_SECRET","foobar"]].map(([S,v])=>`${S}="${v}"`).join(`
|
|
850
850
|
`)+`
|
|
851
851
|
`)),Promise.all(O).then(()=>{if(A)return Ty(i.directory,A)}).catch(s)});let{language:d,transpileProject:p}=await ma(i.directory,t,e.language);o=o.then(()=>p().catch(s)).then(()=>e.git?_a(i.directory):void 0);let{setupCss:D,cssStrategy:w}=await Lv(i.directory,t,e.styling);w&&(o=o.then(()=>D().catch(s)).then(()=>e.git?Ur(i.directory,"Setup "+ji[w]):void 0));let{packageManager:y,shouldInstallDeps:m,installDeps:g}=await ga(i.directory,t,e.packageManager,e.installDeps),C={language:d,packageManager:y,cssStrategy:w,depsInstalled:!1,cliCommand:await es("",y)};if(m){let O=o.then(async()=>{try{if(await g(),C.depsInstalled=!0,d==="ts")try{await pt("npx react-router typegen",{cwd:i.directory})}catch{lo("Failed to generate React Router types. You may need to run `npx react-router typegen` manually.")}}catch(A){C.depsError=A}});c.push({title:l.install,task:async()=>{await O}})}let{createShortcut:E,showShortcutBanner:T}=await Ov(t,C.cliCommand,e.shortcut);E&&(o=o.then(async()=>{await E()&&(C.cliCommand=nt)}),T()),e.quickstart?console.log(`
|
|
852
|
-
`):Rn({headline:[{userInput:n?.title??i.name},"is ready to build."]});let{i18nStrategy:P,setupI18n:b}=await xv(t,C.cliCommand,e.i18n),{setupRoutes:B}=kv(t);return C.i18n=P,o=o.then(async()=>{await b({rootDirectory:i.directory,contextCreate:d==="ts"?"app/lib/context.ts":"app/lib/context.js"}).then(()=>e.git?Ur(i.directory,`Setup markets support using ${P}`):void 0).catch(O=>{C.i18nError=O}),await B(i.directory,d,{i18nStrategy:P,overwriteFileDeps:!1}).then(async O=>{if(C.routes=O,d==="ts"&&C.depsInstalled)try{await pt("npx react-router typegen",{cwd:i.directory})}catch{lo("Failed to generate React Router types after route generation. You may need to run `npx react-router typegen` manually.")}if(e.git&&O)return Ur(i.directory,"Generate routes for core functionality")}).catch(O=>{C.routesError=O})}),await xs(c),e.git&&await Ur(i.directory,"Lockfile"),await ya(i,C),{...i,...C}}function
|
|
852
|
+
`):Rn({headline:[{userInput:n?.title??i.name},"is ready to build."]});let{i18nStrategy:P,setupI18n:b}=await xv(t,C.cliCommand,e.i18n),{setupRoutes:B}=kv(t);return C.i18n=P,o=o.then(async()=>{await b({rootDirectory:i.directory,contextCreate:d==="ts"?"app/lib/context.ts":"app/lib/context.js"}).then(()=>e.git?Ur(i.directory,`Setup markets support using ${P}`):void 0).catch(O=>{C.i18nError=O}),await B(i.directory,d,{i18nStrategy:P,overwriteFileDeps:!1}).then(async O=>{if(C.routes=O,d==="ts"&&C.depsInstalled)try{await pt("npx react-router typegen",{cwd:i.directory})}catch{lo("Failed to generate React Router types after route generation. You may need to run `npx react-router typegen` manually.")}if(e.git&&O)return Ur(i.directory,"Generate routes for core functionality")}).catch(O=>{C.routesError=O})}),await xs(c),e.git&&await Ur(i.directory,"Lockfile"),await ya(i,C),{...i,...C}}function oN(e){let t=e.match(/^\s+"@shopify\/hydrogen":\s+"[^"]+",\n/m)?.[0];if(t&&/"0\.0\.0-\w+-/.test(t)){let r=t.replace("hydrogen","cli-hydrogen");e=e.replace(t,r+t)}return e}_();import{readdir as QA}from"fs/promises";_();var YA=bt(tC(),1),zA=bt(WA(),1);import bn from"path";import{pipeline as UM}from"stream/promises";_();function VA(e){let t=/^(?:(?:https:\/\/)?([^:/]+\.[^:/]+)\/|git@([^:/]+)[:/]|([^/]+):)?([^/\s]+)\/([^/\s#]+)(?:((?:\/[^/\s#]+)+))?(?:\/)?(?:#(.+))?/.exec(e);if(!t){let h=["github:user/repo","user/repo/subdirectory","git@github.com:user/repo","user/repo#dev","https://github.com/user/repo"];return ad(new Error(`Parsing the url ${e} failed. Supported formats are ${h.join(", ")}.`))}let r=t[1]??t[2]??t[3]??"github.com",n=r==="github"?"github.com":r,i=t[4],s=t[5].replace(/\.git$/,""),u=t[6]?.slice(1),a=t[7],o=a?`#${a}`:"",l=`git@${n}:${i}/${s}`,c=`https://${n}/${i}/${s}`,f=["https:/",n,i,s,u].join("/").concat(o);return ud({full:f,site:n,user:i,name:s,ref:a,subDirectory:u,ssh:l,http:c})}var GM="https://api.github.com/repos/shopify/hydrogen/releases/latest",KA=e=>e===403?"If you are using a VPN, WARP, or similar service, consider disabling it momentarily.":void 0;async function WM(e){let t=await _i(GM,{signal:e});if(!t.ok||t.status>=400)throw new ne(`Failed to fetch the latest release information. Status ${t.status} ${t.statusText.replace(/\.$/,"")}.`,KA(t.status));let r=await t.json();return{version:r.name.split("/").pop()??r.name,url:r.tarball_url}}async function VM(e,t,r){let n=await _i(e,{signal:r});if(!n.ok||n.status>=400)throw new ne(`Failed to download the latest release files. Status ${n.status} ${n.statusText}}`,KA(n.status));await UM(n.body,(0,YA.default)(),(0,zA.extract)(t,{strip:1,filter:i=>(i=i.replace(t,""),!i.startsWith(bn.normalize("/templates/"))&&!i.startsWith(bn.normalize("/examples/")))}))}async function JA({signal:e}={}){if(Er&&process.env.FORCE_TEMPLATES_SOURCE!=="remote"){let t=bn.dirname(xn());return{version:"local",templatesDir:t,examplesDir:bn.resolve(t,"..","examples")}}try{let{version:t,url:r}=await WM(e),n=await Dt("internal-templates");await ge(n)||await yr(n);let i=bn.join(n,t);return await ge(i)||await VM(r,i,e),{version:t,templatesDir:bn.join(i,"templates"),examplesDir:bn.join(i,"examples")}}catch(t){let r=t;throw new ne(`Could not download Hydrogen templates from GitHub.
|
|
853
853
|
Please check your internet connection and the following error:
|
|
854
854
|
|
|
855
|
-
`+r.message,r.tryMessage)}}async function XA(e,t){let r=VA(e);if(r.isErr())throw new ne(r.error.message);let n=await Dt("external-templates");await ge(n)||await yr(n);let i=r.value,s=te(n,i.full.replace(/^https?:\/\//,"").replace(/[^\w]+/,"_"));return await ge(s)&&await Tn(s,{force:!0}),await Fy({repoUrl:i.full,destination:s,shallow:!0}),await Tn(te(s,".git"),{force:!0}),{templateDir:s}}var ZA="shopify/hydrogen-demo-store";async function ew(e,t){let r=e.template==="demo-store"?ZA:e.template,n=await Da({...e,controller:t});if(!n)return;let i=Ea(t,n),s=r.includes("/")?
|
|
856
|
-
Skip the flag or provide the name of a template or example in the Hydrogen repository or a URL to a git repository.`,a.length===0?"":{list:{title:"Available templates:",items:a}})}async function tw(e){let t=new xh;try{let r=e.template;return r?await ew({...e,template:r},t):await jv(e,t)}catch(r){throw t.abort(),r}}var
|
|
855
|
+
`+r.message,r.tryMessage)}}async function XA(e,t){let r=VA(e);if(r.isErr())throw new ne(r.error.message);let n=await Dt("external-templates");await ge(n)||await yr(n);let i=r.value,s=te(n,i.full.replace(/^https?:\/\//,"").replace(/[^\w]+/,"_"));return await ge(s)&&await Tn(s,{force:!0}),await Fy({repoUrl:i.full,destination:s,shallow:!0}),await Tn(te(s,".git"),{force:!0}),{templateDir:s}}var ZA="shopify/hydrogen-demo-store";async function ew(e,t){let r=e.template==="demo-store"?ZA:e.template,n=await Da({...e,controller:t});if(!n)return;let i=Ea(t,n),s=r.includes("/")?YM(r,t.signal).catch(i):zM(r,t.signal).catch(i),u=await s;if(t.signal.aborted)return;let a=Promise.resolve().then(async()=>{if(t.signal.aborted)return;let{sourcePath:w}=u;await _r(w,n.directory)}).catch(i),o=await ge(te(u.sourcePath,"tsconfig.json")),{language:l,transpileProject:c}=o?await ma(n.directory,t,e.language):{language:"js",transpileProject:()=>Promise.resolve()};a=a.then(()=>c().catch(i)).then(()=>e.git?_a(n.directory):void 0);let{packageManager:f,shouldInstallDeps:h,installDeps:d}=await ga(n.directory,t,e.packageManager,e.installDeps),p={language:l,packageManager:f,depsInstalled:!1,cliCommand:await es("",f)},D=[{title:"Downloading template",task:async()=>{await s}},{title:"Setting up project",task:async()=>{await a}}];if(h&&D.push({title:"Installing dependencies. This could take a few minutes",task:async()=>{try{await d(),p.depsInstalled=!0}catch(w){p.depsError=w}}}),!t.signal.aborted)return await xs(D),e.git&&await Ur(n.directory,"Lockfile"),await ya(n,p),Ft({headline:`Your project will display inventory from ${e.template.endsWith(ZA)?"the Hydrogen Demo Store":"Mock.shop"}.`,body:`To connect this project to your Shopify store\u2019s inventory, update \`${n.name}/.env\` with your store ID and Storefront API key.`}),{...n,...p}}async function YM(e,t){let{templateDir:r}=await XA(e,t);return{sourcePath:r}}async function zM(e,t){let{templatesDir:r,examplesDir:n}=await JA({signal:t}),i=te(r,"skeleton"),s=te(r,e),u=te(n,e);if(await ge(s))return{skeletonPath:i,sourcePath:s};if(await ge(u))return{skeletonPath:i,sourcePath:u};let a=(await Promise.all([QA(n),QA(r)]).catch(()=>[])).flat().filter(o=>o!=="skeleton"&&!o.endsWith(".md")).concat("demo-store").sort();throw new ne(`Unknown value in \`--template\` flag "${e}".
|
|
856
|
+
Skip the flag or provide the name of a template or example in the Hydrogen repository or a URL to a git repository.`,a.length===0?"":{list:{title:"Available templates:",items:a}})}async function tw(e){let t=new xh;try{let r=e.template;return r?await ew({...e,template:r},t):await jv(e,t)}catch(r){throw t.abort(),r}}var KM={f:"force"},Sh=class e extends tp{static descriptionWithMarkdown="Creates a new Hydrogen storefront.";static description="Creates a new Hydrogen storefront.";static flags={...Vn.force,path:Xr.Flags.string({description:"The path to the directory of the new Hydrogen storefront.",env:"SHOPIFY_HYDROGEN_FLAG_PATH"}),language:Xr.Flags.string({description:"Sets the template language to use. One of `js` or `ts`.",choices:Object.keys(hf),env:"SHOPIFY_HYDROGEN_FLAG_LANGUAGE"}),template:Xr.Flags.string({description:"Scaffolds project based on an existing template or example from the Hydrogen repository.",env:"SHOPIFY_HYDROGEN_FLAG_TEMPLATE"}),...Vn.installDeps,"mock-shop":Xr.Flags.boolean({description:"Use mock.shop as the data source for the storefront.",env:"SHOPIFY_HYDROGEN_FLAG_MOCK_DATA"}),...Vn.styling,...Vn.markets,...Vn.shortcut,git:Xr.Flags.boolean({description:"Init Git and create initial commits.",env:"SHOPIFY_HYDROGEN_FLAG_GIT",default:!0,allowNo:!0}),quickstart:Xr.Flags.boolean({description:"Scaffolds a new Hydrogen project with a set of sensible defaults. Equivalent to `shopify hydrogen init --path hydrogen-quickstart --mock-shop --language js --shortcut --markets none`",env:"SHOPIFY_HYDROGEN_FLAG_QUICKSTART",default:!1}),"package-manager":Xr.Flags.string({env:"SHOPIFY_HYDROGEN_FLAG_PACKAGE_MANAGER",hidden:!0,options:["npm","yarn","pnpm","unknown"]})};async run(){let{flags:t}=await this.parse(e);await Rh(Vl(t))}};async function Rh({markets:e,...t}=Tg(process.argv,KM)){if(rp(),!t.i18n&&e&&(t.i18n=e),t.i18n&&!Wn.includes(t.i18n))throw new ne(`Invalid URL structure strategy: ${t.i18n}. Must be one of ${Wn.join(", ")}`);if(t.styling&&!Gn.includes(t.styling))throw new ne(`Invalid styling strategy: ${t.styling}. Must be one of ${Gn.join(", ")}`);t.git??=!0,t.quickstart&&(t.i18n??="none",t.installDeps??=!0,t.language??="js",t.mockShop??=!0,t.path??="./hydrogen-quickstart",t.shortcut??=!0,t.styling??="none");let r=await Bg();return r&&r(t.packageManager),tw(t)}var Th=!1,rw=/(useState|Invalid hook call)/gims,QM=process.stdout.write.bind(process.stdout);process.stdout.write=function(e,t,r){rw.test(e?.toString()??"")?Th=!0:QM(e,t,r)};var ZM=process.stderr.write.bind(process.stderr);process.stderr.write=function(e,t,r){rw.test(e?.toString()??"")?Th=!0:ZM(e,t,r)};process.on("beforeExit",()=>{if(Th){let t=`There is a React version mismatch. If this command failed, try the following:
|
|
857
857
|
|
|
858
|
-
npm create @shopify/hydrogen@latest --legacy-peer-deps --cache ${
|
|
858
|
+
npm create @shopify/hydrogen@latest --legacy-peer-deps --cache ${JM(XM(),Math.random().toString(36).slice(2))}
|
|
859
859
|
|
|
860
860
|
Learn more in https://github.com/Shopify/hydrogen/discussions/2055`;console.warn(`
|
|
861
861
|
\x1B[30m\x1B[43m WARNING \x1B[0m`,t)}});Rh();
|