@batijs/core 0.0.262 → 0.0.264

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/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export { builders, generateCode, loadFile, parseModule } from 'magicast';
7
7
  export { addVitePlugin, deepMergeObject } from 'magicast/helpers';
8
8
  export { default as which } from 'which';
9
9
  import { Color } from 'colorette';
10
+ export * from 'colorette';
10
11
  export { randomBytes } from 'node:crypto';
11
12
 
12
13
  type AllowedContextFlags = "include-if-imported";
package/dist/index.js CHANGED
@@ -774,7 +774,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
774
774
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
775
775
  `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let n=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){let s="end"in n.value?n.value.end:void 0;(Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment"?s?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,e.indent)){let a=e.items[e.items.length-2]?.value?.end;if(Array.isArray(a)){Array.prototype.push.apply(a,n.start),a.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let s=!this.onKeyLine&&this.indent===e.indent,a=s&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind",l=[];if(a&&n.sep&&!n.value){let p=[];for(let f=0;f<n.sep.length;++f){let d=n.sep[f];switch(d.type){case"newline":p.push(f);break;case"space":break;case"comment":d.indent>e.indent&&(p.length=0);break;default:p.length=0}}p.length>=2&&(l=n.sep.splice(p[1]))}switch(this.type){case"anchor":case"tag":a||n.value?(l.push(this.sourceToken),e.items.push({start:l}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):a||n.value?(l.push(this.sourceToken),e.items.push({start:l,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(pG(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:l,key:null,sep:[this.sourceToken]}]});else if(qWr(n.key)&&!pG(n.sep,"newline")){let p=Gie(n.start),f=n.key,d=n.sep;d.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:p,key:f,sep:d}]})}else l.length>0?n.sep=n.sep.concat(l,this.sourceToken):n.sep.push(this.sourceToken);else if(pG(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{let p=Gie(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:p,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||a?e.items.push({start:l,key:null,sep:[this.sourceToken]}):pG(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let p=this.flowScalar(this.type);a||n.value?(e.items.push({start:l,key:p,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(p):(Object.assign(n,{key:p,sep:[]}),this.onKeyLine=!0);return}default:{let p=this.startBlockValue(e);if(p){s&&p.type!=="block-seq"&&e.items.push({start:l}),this.stack.push(p);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){let s="end"in n.value?n.value.end:void 0;(Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment"?s?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){let a=e.items[e.items.length-2]?.value?.end;if(Array.isArray(a)){Array.prototype.push.apply(a,n.start),a.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;n.value||pG(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>e.indent){let s=this.startBlockValue(e);if(s){this.stack.push(s);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let n=e.items[e.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while(s&&s.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?e.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let a=this.flowScalar(this.type);!n||n.value?e.items.push({start:[],key:a,sep:[]}):n.sep?this.stack.push(a):Object.assign(n,{key:a,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let s=this.startBlockValue(e);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{let s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===e.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){let a=k7e(s),l=Gie(a);UWr(e);let p=e.end.splice(1,e.end.length);p.push(this.sourceToken);let f={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:l,key:e,sep:p}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=f}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let n=this.source.indexOf(`
776
776
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
777
- `,n)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let n=k7e(e),s=Gie(n);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let n=k7e(e),s=Gie(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,n){return this.type!=="comment"||this.indent<=n?!1:e.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};VWr.Parser=MTt});var zWr=ue(Rye=>{"use strict";var JWr=ETt(),als=Pye(),Lye=kye(),ols=Svt(),cls=RTt(),$Wr=BTt();function WWr(t){let e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new cls.LineCounter||null,prettyErrors:e}}function lls(t,e={}){let{lineCounter:n,prettyErrors:s}=WWr(e),a=new $Wr.Parser(n?.addNewLine),l=new JWr.Composer(e),p=Array.from(l.compose(a.parse(t)));if(s&&n)for(let f of p)f.errors.forEach(Lye.prettifyError(t,n)),f.warnings.forEach(Lye.prettifyError(t,n));return p.length>0?p:Object.assign([],{empty:!0},l.streamInfo())}function YWr(t,e={}){let{lineCounter:n,prettyErrors:s}=WWr(e),a=new $Wr.Parser(n?.addNewLine),l=new JWr.Composer(e),p=null;for(let f of l.compose(a.parse(t),!0,t.length))if(!p)p=f;else if(p.options.logLevel!=="silent"){p.errors.push(new Lye.YAMLParseError(f.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&n&&(p.errors.forEach(Lye.prettifyError(t,n)),p.warnings.forEach(Lye.prettifyError(t,n))),p}function uls(t,e,n){let s;typeof e=="function"?s=e:n===void 0&&e&&typeof e=="object"&&(n=e);let a=YWr(t,n);if(!a)return null;if(a.warnings.forEach(l=>ols.warn(a.options.logLevel,l)),a.errors.length>0){if(a.options.logLevel!=="silent")throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:s},n))}function pls(t,e,n){let s=null;if(typeof e=="function"||Array.isArray(e)?s=e:n===void 0&&e&&(n=e),typeof n=="string"&&(n=n.length),typeof n=="number"){let a=Math.round(n);n=a<1?void 0:a>8?{indent:8}:{indent:a}}if(t===void 0){let{keepUndefined:a}=n??e??{};if(!a)return}return new als.Document(t,s,n).toString(n)}Rye.parse=uls;Rye.parseAllDocuments=lls;Rye.parseDocument=YWr;Rye.stringify=pls});var GWr=ue(Km=>{"use strict";var fls=ETt(),_ls=Pye(),dls=iTt(),jTt=kye(),mls=_ye(),iV=Im(),hls=eV(),gls=Rb(),yls=rV(),bls=nV(),vls=w7e(),Tls=OTt(),Sls=RTt(),xls=BTt(),N7e=zWr(),KWr=lye();Km.Composer=fls.Composer;Km.Document=_ls.Document;Km.Schema=dls.Schema;Km.YAMLError=jTt.YAMLError;Km.YAMLParseError=jTt.YAMLParseError;Km.YAMLWarning=jTt.YAMLWarning;Km.Alias=mls.Alias;Km.isAlias=iV.isAlias;Km.isCollection=iV.isCollection;Km.isDocument=iV.isDocument;Km.isMap=iV.isMap;Km.isNode=iV.isNode;Km.isPair=iV.isPair;Km.isScalar=iV.isScalar;Km.isSeq=iV.isSeq;Km.Pair=hls.Pair;Km.Scalar=gls.Scalar;Km.YAMLMap=yls.YAMLMap;Km.YAMLSeq=bls.YAMLSeq;Km.CST=vls;Km.Lexer=Tls.Lexer;Km.LineCounter=Sls.LineCounter;Km.Parser=xls.Parser;Km.parse=N7e.parse;Km.parseAllDocuments=N7e.parseAllDocuments;Km.parseDocument=N7e.parseDocument;Km.stringify=N7e.stringify;Km.visit=KWr.visit;Km.visitAsync=KWr.visitAsync});var uYr=ue(Hie=>{"use strict";Object.defineProperty(Hie,"__esModule",{value:!0});Hie.sync=Hie.isexe=void 0;var Jls=Js("fs"),$ls=Js("fs/promises"),Wls=async(t,e={})=>{let{ignoreErrors:n=!1}=e;try{return lYr(await(0,$ls.stat)(t),e)}catch(s){let a=s;if(n||a.code==="EACCES")return!1;throw a}};Hie.isexe=Wls;var Yls=(t,e={})=>{let{ignoreErrors:n=!1}=e;try{return lYr((0,Jls.statSync)(t),e)}catch(s){let a=s;if(n||a.code==="EACCES")return!1;throw a}};Hie.sync=Yls;var lYr=(t,e)=>t.isFile()&&zls(t,e),zls=(t,e)=>{let n=e.uid??process.getuid?.(),s=e.groups??process.getgroups?.()??[],a=e.gid??process.getgid?.()??s[0];if(n===void 0||a===void 0)throw new Error("cannot get uid or gid");let l=new Set([a,...s]),p=t.mode,f=t.uid,d=t.gid,g=parseInt("100",8),y=parseInt("010",8),T=parseInt("001",8),b=g|y;return!!(p&T||p&y&&l.has(d)||p&g&&f===n||p&b&&n===0)}});var fYr=ue(Xie=>{"use strict";Object.defineProperty(Xie,"__esModule",{value:!0});Xie.sync=Xie.isexe=void 0;var Kls=Js("fs"),Gls=Js("fs/promises"),Hls=async(t,e={})=>{let{ignoreErrors:n=!1}=e;try{return pYr(await(0,Gls.stat)(t),t,e)}catch(s){let a=s;if(n||a.code==="EACCES")return!1;throw a}};Xie.isexe=Hls;var Xls=(t,e={})=>{let{ignoreErrors:n=!1}=e;try{return pYr((0,Kls.statSync)(t),t,e)}catch(s){let a=s;if(n||a.code==="EACCES")return!1;throw a}};Xie.sync=Xls;var Qls=(t,e)=>{let{pathExt:n=process.env.PATHEXT||""}=e,s=n.split(";");if(s.indexOf("")!==-1)return!0;for(let a=0;a<s.length;a++){let l=s[a].toLowerCase(),p=t.substring(t.length-l.length).toLowerCase();if(l&&p===l)return!0}return!1},pYr=(t,e,n)=>t.isFile()&&Qls(e,n)});var dYr=ue(_Yr=>{"use strict";Object.defineProperty(_Yr,"__esModule",{value:!0})});var vYr=ue(kv=>{"use strict";var mYr=kv&&kv.__createBinding||(Object.create?function(t,e,n,s){s===void 0&&(s=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,a)}:function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]}),Zls=kv&&kv.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),hYr=kv&&kv.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&mYr(e,t,n);return Zls(e,t),e},eus=kv&&kv.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&mYr(e,t,n)};Object.defineProperty(kv,"__esModule",{value:!0});kv.sync=kv.isexe=kv.posix=kv.win32=void 0;var gYr=hYr(uYr());kv.posix=gYr;var yYr=hYr(fYr());kv.win32=yYr;eus(dYr(),kv);var tus=process.env._ISEXE_TEST_PLATFORM_||process.platform,bYr=tus==="win32"?yYr:gYr;kv.isexe=bYr.isexe;kv.sync=bYr.sync});var kYr=ue((fLs,DYr)=>{"use strict";var{isexe:rus,sync:nus}=vYr(),{join:ius,delimiter:sus,sep:TYr,posix:SYr}=Js("path"),xYr=process.platform==="win32",EYr=new RegExp(`[${SYr.sep}${TYr===SYr.sep?"":TYr}]`.replace(/(\\)/g,"\\$1")),aus=new RegExp(`^\\.${EYr.source}`),CYr=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),AYr=(t,{path:e=process.env.PATH,pathExt:n=process.env.PATHEXT,delimiter:s=sus})=>{let a=t.match(EYr)?[""]:[...xYr?[process.cwd()]:[],...(e||"").split(s)];if(xYr){let l=n||[".EXE",".CMD",".BAT",".COM"].join(s),p=l.split(s).flatMap(f=>[f,f.toLowerCase()]);return t.includes(".")&&p[0]!==""&&p.unshift(""),{pathEnv:a,pathExt:p,pathExtExe:l}}return{pathEnv:a,pathExt:[""]}},PYr=(t,e)=>{let n=/^".*"$/.test(t)?t.slice(1,-1):t;return(!n&&aus.test(e)?e.slice(0,2):"")+ius(n,e)},wYr=async(t,e={})=>{let{pathEnv:n,pathExt:s,pathExtExe:a}=AYr(t,e),l=[];for(let p of n){let f=PYr(p,t);for(let d of s){let g=f+d;if(await rus(g,{pathExt:a,ignoreErrors:!0})){if(!e.all)return g;l.push(g)}}}if(e.all&&l.length)return l;if(e.nothrow)return null;throw CYr(t)},ous=(t,e={})=>{let{pathEnv:n,pathExt:s,pathExtExe:a}=AYr(t,e),l=[];for(let p of n){let f=PYr(p,t);for(let d of s){let g=f+d;if(nus(g,{pathExt:a,ignoreErrors:!0})){if(!e.all)return g;l.push(g)}}}if(e.all&&l.length)return l;if(e.nothrow)return null;throw CYr(t)};DYr.exports=wYr;wYr.sync=ous});var nQe={};ZW(nQe,{default:()=>lEn,parsers:()=>vBt});var HSn=Object.create,tQe=Object.defineProperty,XSn=Object.getOwnPropertyDescriptor,QSn=Object.getOwnPropertyNames,ZSn=Object.getPrototypeOf,exn=Object.prototype.hasOwnProperty,txn=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),rxn=(t,e)=>{for(var n in e)tQe(t,n,{get:e[n],enumerable:!0})},nxn=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of QSn(e))!exn.call(t,a)&&a!==n&&tQe(t,a,{get:()=>e[a],enumerable:!(s=XSn(e,a))||s.enumerable});return t},cBt=(t,e,n)=>(n=t!=null?HSn(ZSn(t)):{},nxn(e||!t||!t.__esModule?tQe(n,"default",{value:t,enumerable:!0}):n,t)),lBt=txn(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});function e(Y,O){if(Y==null)return{};var Z={},de=Object.keys(Y),Ke,Ot;for(Ot=0;Ot<de.length;Ot++)Ke=de[Ot],!(O.indexOf(Ke)>=0)&&(Z[Ke]=Y[Ke]);return Z}var n=class{constructor(Y,O,Z){this.line=void 0,this.column=void 0,this.index=void 0,this.line=Y,this.column=O,this.index=Z}},s=class{constructor(Y,O){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=Y,this.end=O}};function a(Y,O){let{line:Z,column:de,index:Ke}=Y;return new n(Z,de+O,Ke+O)}var l="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",p={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:l},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:l}},f={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},d=Y=>Y.type==="UpdateExpression"?f.UpdateExpression[`${Y.prefix}`]:f[Y.type],g={AccessorIsGenerator:({kind:Y})=>`A ${Y}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:Y})=>`Missing initializer in ${Y} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:Y})=>`\`${Y}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:Y})=>`'import.${Y}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:Y,exportName:O})=>`A string literal cannot be used as an exported binding without \`from\`.
777
+ `,n)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let n=k7e(e),s=Gie(n);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let n=k7e(e),s=Gie(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,n){return this.type!=="comment"||this.indent<=n?!1:e.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};VWr.Parser=MTt});var zWr=ue(Rye=>{"use strict";var JWr=ETt(),als=Pye(),Lye=kye(),ols=Svt(),cls=RTt(),$Wr=BTt();function WWr(t){let e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new cls.LineCounter||null,prettyErrors:e}}function lls(t,e={}){let{lineCounter:n,prettyErrors:s}=WWr(e),a=new $Wr.Parser(n?.addNewLine),l=new JWr.Composer(e),p=Array.from(l.compose(a.parse(t)));if(s&&n)for(let f of p)f.errors.forEach(Lye.prettifyError(t,n)),f.warnings.forEach(Lye.prettifyError(t,n));return p.length>0?p:Object.assign([],{empty:!0},l.streamInfo())}function YWr(t,e={}){let{lineCounter:n,prettyErrors:s}=WWr(e),a=new $Wr.Parser(n?.addNewLine),l=new JWr.Composer(e),p=null;for(let f of l.compose(a.parse(t),!0,t.length))if(!p)p=f;else if(p.options.logLevel!=="silent"){p.errors.push(new Lye.YAMLParseError(f.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&n&&(p.errors.forEach(Lye.prettifyError(t,n)),p.warnings.forEach(Lye.prettifyError(t,n))),p}function uls(t,e,n){let s;typeof e=="function"?s=e:n===void 0&&e&&typeof e=="object"&&(n=e);let a=YWr(t,n);if(!a)return null;if(a.warnings.forEach(l=>ols.warn(a.options.logLevel,l)),a.errors.length>0){if(a.options.logLevel!=="silent")throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:s},n))}function pls(t,e,n){let s=null;if(typeof e=="function"||Array.isArray(e)?s=e:n===void 0&&e&&(n=e),typeof n=="string"&&(n=n.length),typeof n=="number"){let a=Math.round(n);n=a<1?void 0:a>8?{indent:8}:{indent:a}}if(t===void 0){let{keepUndefined:a}=n??e??{};if(!a)return}return new als.Document(t,s,n).toString(n)}Rye.parse=uls;Rye.parseAllDocuments=lls;Rye.parseDocument=YWr;Rye.stringify=pls});var GWr=ue(Km=>{"use strict";var fls=ETt(),_ls=Pye(),dls=iTt(),jTt=kye(),mls=_ye(),iV=Im(),hls=eV(),gls=Rb(),yls=rV(),bls=nV(),vls=w7e(),Tls=OTt(),Sls=RTt(),xls=BTt(),N7e=zWr(),KWr=lye();Km.Composer=fls.Composer;Km.Document=_ls.Document;Km.Schema=dls.Schema;Km.YAMLError=jTt.YAMLError;Km.YAMLParseError=jTt.YAMLParseError;Km.YAMLWarning=jTt.YAMLWarning;Km.Alias=mls.Alias;Km.isAlias=iV.isAlias;Km.isCollection=iV.isCollection;Km.isDocument=iV.isDocument;Km.isMap=iV.isMap;Km.isNode=iV.isNode;Km.isPair=iV.isPair;Km.isScalar=iV.isScalar;Km.isSeq=iV.isSeq;Km.Pair=hls.Pair;Km.Scalar=gls.Scalar;Km.YAMLMap=yls.YAMLMap;Km.YAMLSeq=bls.YAMLSeq;Km.CST=vls;Km.Lexer=Tls.Lexer;Km.LineCounter=Sls.LineCounter;Km.Parser=xls.Parser;Km.parse=N7e.parse;Km.parseAllDocuments=N7e.parseAllDocuments;Km.parseDocument=N7e.parseDocument;Km.stringify=N7e.stringify;Km.visit=KWr.visit;Km.visitAsync=KWr.visitAsync});var uYr=ue(Hie=>{"use strict";Object.defineProperty(Hie,"__esModule",{value:!0});Hie.sync=Hie.isexe=void 0;var Jls=Js("fs"),$ls=Js("fs/promises"),Wls=async(t,e={})=>{let{ignoreErrors:n=!1}=e;try{return lYr(await(0,$ls.stat)(t),e)}catch(s){let a=s;if(n||a.code==="EACCES")return!1;throw a}};Hie.isexe=Wls;var Yls=(t,e={})=>{let{ignoreErrors:n=!1}=e;try{return lYr((0,Jls.statSync)(t),e)}catch(s){let a=s;if(n||a.code==="EACCES")return!1;throw a}};Hie.sync=Yls;var lYr=(t,e)=>t.isFile()&&zls(t,e),zls=(t,e)=>{let n=e.uid??process.getuid?.(),s=e.groups??process.getgroups?.()??[],a=e.gid??process.getgid?.()??s[0];if(n===void 0||a===void 0)throw new Error("cannot get uid or gid");let l=new Set([a,...s]),p=t.mode,f=t.uid,d=t.gid,g=parseInt("100",8),y=parseInt("010",8),T=parseInt("001",8),b=g|y;return!!(p&T||p&y&&l.has(d)||p&g&&f===n||p&b&&n===0)}});var fYr=ue(Xie=>{"use strict";Object.defineProperty(Xie,"__esModule",{value:!0});Xie.sync=Xie.isexe=void 0;var Kls=Js("fs"),Gls=Js("fs/promises"),Hls=async(t,e={})=>{let{ignoreErrors:n=!1}=e;try{return pYr(await(0,Gls.stat)(t),t,e)}catch(s){let a=s;if(n||a.code==="EACCES")return!1;throw a}};Xie.isexe=Hls;var Xls=(t,e={})=>{let{ignoreErrors:n=!1}=e;try{return pYr((0,Kls.statSync)(t),t,e)}catch(s){let a=s;if(n||a.code==="EACCES")return!1;throw a}};Xie.sync=Xls;var Qls=(t,e)=>{let{pathExt:n=process.env.PATHEXT||""}=e,s=n.split(";");if(s.indexOf("")!==-1)return!0;for(let a=0;a<s.length;a++){let l=s[a].toLowerCase(),p=t.substring(t.length-l.length).toLowerCase();if(l&&p===l)return!0}return!1},pYr=(t,e,n)=>t.isFile()&&Qls(e,n)});var dYr=ue(_Yr=>{"use strict";Object.defineProperty(_Yr,"__esModule",{value:!0})});var vYr=ue(kv=>{"use strict";var mYr=kv&&kv.__createBinding||(Object.create?function(t,e,n,s){s===void 0&&(s=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,a)}:function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]}),Zls=kv&&kv.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),hYr=kv&&kv.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&mYr(e,t,n);return Zls(e,t),e},eus=kv&&kv.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&mYr(e,t,n)};Object.defineProperty(kv,"__esModule",{value:!0});kv.sync=kv.isexe=kv.posix=kv.win32=void 0;var gYr=hYr(uYr());kv.posix=gYr;var yYr=hYr(fYr());kv.win32=yYr;eus(dYr(),kv);var tus=process.env._ISEXE_TEST_PLATFORM_||process.platform,bYr=tus==="win32"?yYr:gYr;kv.isexe=bYr.isexe;kv.sync=bYr.sync});var kYr=ue((_Ls,DYr)=>{"use strict";var{isexe:rus,sync:nus}=vYr(),{join:ius,delimiter:sus,sep:TYr,posix:SYr}=Js("path"),xYr=process.platform==="win32",EYr=new RegExp(`[${SYr.sep}${TYr===SYr.sep?"":TYr}]`.replace(/(\\)/g,"\\$1")),aus=new RegExp(`^\\.${EYr.source}`),CYr=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),AYr=(t,{path:e=process.env.PATH,pathExt:n=process.env.PATHEXT,delimiter:s=sus})=>{let a=t.match(EYr)?[""]:[...xYr?[process.cwd()]:[],...(e||"").split(s)];if(xYr){let l=n||[".EXE",".CMD",".BAT",".COM"].join(s),p=l.split(s).flatMap(f=>[f,f.toLowerCase()]);return t.includes(".")&&p[0]!==""&&p.unshift(""),{pathEnv:a,pathExt:p,pathExtExe:l}}return{pathEnv:a,pathExt:[""]}},PYr=(t,e)=>{let n=/^".*"$/.test(t)?t.slice(1,-1):t;return(!n&&aus.test(e)?e.slice(0,2):"")+ius(n,e)},wYr=async(t,e={})=>{let{pathEnv:n,pathExt:s,pathExtExe:a}=AYr(t,e),l=[];for(let p of n){let f=PYr(p,t);for(let d of s){let g=f+d;if(await rus(g,{pathExt:a,ignoreErrors:!0})){if(!e.all)return g;l.push(g)}}}if(e.all&&l.length)return l;if(e.nothrow)return null;throw CYr(t)},ous=(t,e={})=>{let{pathEnv:n,pathExt:s,pathExtExe:a}=AYr(t,e),l=[];for(let p of n){let f=PYr(p,t);for(let d of s){let g=f+d;if(nus(g,{pathExt:a,ignoreErrors:!0})){if(!e.all)return g;l.push(g)}}}if(e.all&&l.length)return l;if(e.nothrow)return null;throw CYr(t)};DYr.exports=wYr;wYr.sync=ous});var nQe={};ZW(nQe,{default:()=>lEn,parsers:()=>vBt});var HSn=Object.create,tQe=Object.defineProperty,XSn=Object.getOwnPropertyDescriptor,QSn=Object.getOwnPropertyNames,ZSn=Object.getPrototypeOf,exn=Object.prototype.hasOwnProperty,txn=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),rxn=(t,e)=>{for(var n in e)tQe(t,n,{get:e[n],enumerable:!0})},nxn=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of QSn(e))!exn.call(t,a)&&a!==n&&tQe(t,a,{get:()=>e[a],enumerable:!(s=XSn(e,a))||s.enumerable});return t},cBt=(t,e,n)=>(n=t!=null?HSn(ZSn(t)):{},nxn(e||!t||!t.__esModule?tQe(n,"default",{value:t,enumerable:!0}):n,t)),lBt=txn(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});function e(Y,O){if(Y==null)return{};var Z={},de=Object.keys(Y),Ke,Ot;for(Ot=0;Ot<de.length;Ot++)Ke=de[Ot],!(O.indexOf(Ke)>=0)&&(Z[Ke]=Y[Ke]);return Z}var n=class{constructor(Y,O,Z){this.line=void 0,this.column=void 0,this.index=void 0,this.line=Y,this.column=O,this.index=Z}},s=class{constructor(Y,O){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=Y,this.end=O}};function a(Y,O){let{line:Z,column:de,index:Ke}=Y;return new n(Z,de+O,Ke+O)}var l="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",p={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:l},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:l}},f={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},d=Y=>Y.type==="UpdateExpression"?f.UpdateExpression[`${Y.prefix}`]:f[Y.type],g={AccessorIsGenerator:({kind:Y})=>`A ${Y}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:Y})=>`Missing initializer in ${Y} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:Y})=>`\`${Y}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:Y})=>`'import.${Y}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:Y,exportName:O})=>`A string literal cannot be used as an exported binding without \`from\`.
778
778
  - Did you mean \`export { '${Y}' as '${O}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:Y})=>`'${Y==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:Y})=>`Unsyntactic ${Y==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:Y})=>`A string literal cannot be used as an imported binding.
779
779
  - Did you mean \`import { "${Y}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:Y})=>`\`import()\` requires exactly ${Y===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:Y})=>`Expected number in radix ${Y}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:Y})=>`Escape sequence in keyword ${Y}.`,InvalidIdentifier:({identifierName:Y})=>`Invalid identifier ${Y}.`,InvalidLhs:({ancestor:Y})=>`Invalid left-hand side in ${d(Y)}.`,InvalidLhsBinding:({ancestor:Y})=>`Binding invalid left-hand side in ${d(Y)}.`,InvalidLhsOptionalChaining:({ancestor:Y})=>`Invalid optional chaining in the left-hand side of ${d(Y)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:Y})=>`Unexpected character '${Y}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:Y})=>`Private name #${Y} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:Y})=>`Label '${Y}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:Y})=>`This experimental syntax requires enabling the parser plugin: ${Y.map(O=>JSON.stringify(O)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:Y})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${Y.map(O=>JSON.stringify(O)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:Y})=>`Duplicate key "${Y}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:Y})=>`An export name cannot include a lone surrogate, found '\\u${Y.toString(16)}'.`,ModuleExportUndefined:({localName:Y})=>`Export '${Y}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:Y})=>`Private names are only allowed in property accesses (\`obj.#${Y}\`) or in \`in\` expressions (\`#${Y} in obj\`).`,PrivateNameRedeclaration:({identifierName:Y})=>`Duplicate private name #${Y}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:Y})=>`Unexpected keyword '${Y}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:Y})=>`Unexpected reserved word '${Y}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:Y,unexpected:O})=>`Unexpected token${O?` '${O}'.`:""}${Y?`, expected "${Y}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:Y,onlyValidPropertyName:O})=>`The only valid meta property for ${Y} is ${Y}.${O}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:Y})=>`Identifier '${Y}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},y={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:Y})=>`Assigning to '${Y}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:Y})=>`Binding '${Y}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},T=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),b={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:Y})=>`Invalid topic token ${Y}. In order to use ${Y} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${Y}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:Y})=>`Hack-style pipe body cannot be an unparenthesized ${d({type:Y})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},x=["toMessage"],P=["message"];function w(Y,O,Z){Object.defineProperty(Y,O,{enumerable:!1,configurable:!0,value:Z})}function I(Y){let{toMessage:O}=Y,Z=e(Y,x);return function de(Ke,Ot){let lr=new SyntaxError;return Object.assign(lr,Z,{loc:Ke,pos:Ke.index}),"missingPlugin"in Ot&&Object.assign(lr,{missingPlugin:Ot.missingPlugin}),w(lr,"clone",function(Ur={}){var yn;let{line:cn,column:Aa,index:Go}=(yn=Ur.loc)!=null?yn:Ke;return de(new n(cn,Aa,Go),Object.assign({},Ot,Ur.details))}),w(lr,"details",Ot),Object.defineProperty(lr,"message",{configurable:!0,get(){let Ur=`${O(Ot)} (${Ke.line}:${Ke.column})`;return this.message=Ur,Ur},set(Ur){Object.defineProperty(this,"message",{value:Ur,writable:!0})}}),lr}}function B(Y,O){if(Array.isArray(Y))return de=>B(de,Y[0]);let Z={};for(let de of Object.keys(Y)){let Ke=Y[de],Ot=typeof Ke=="string"?{message:()=>Ke}:typeof Ke=="function"?{message:Ke}:Ke,{message:lr}=Ot,Ur=e(Ot,P),yn=typeof lr=="string"?()=>lr:lr;Z[de]=I(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:de,toMessage:yn},O?{syntaxPlugin:O}:{},Ur))}return Z}var M=Object.assign({},B(p),B(g),B(y),B`pipelineOperator`(b)),{defineProperty:W}=Object,z=(Y,O)=>{Y&&W(Y,O,{enumerable:!1,value:Y[O]})};function G(Y){return z(Y.loc.start,"index"),z(Y.loc.end,"index"),Y}var ne=Y=>class extends Y{parse(){let O=G(super.parse());return this.options.tokens&&(O.tokens=O.tokens.map(G)),O}parseRegExpLiteral({pattern:O,flags:Z}){let de=null;try{de=new RegExp(O,Z)}catch{}let Ke=this.estreeParseLiteral(de);return Ke.regex={pattern:O,flags:Z},Ke}parseBigIntLiteral(O){let Z;try{Z=BigInt(O)}catch{Z=null}let de=this.estreeParseLiteral(Z);return de.bigint=String(de.value||O),de}parseDecimalLiteral(O){let Z=this.estreeParseLiteral(null);return Z.decimal=String(Z.value||O),Z}estreeParseLiteral(O){return this.parseLiteral(O,"Literal")}parseStringLiteral(O){return this.estreeParseLiteral(O)}parseNumericLiteral(O){return this.estreeParseLiteral(O)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(O){return this.estreeParseLiteral(O)}directiveToStmt(O){let Z=O.value;delete O.value,Z.type="Literal",Z.raw=Z.extra.raw,Z.value=Z.extra.expressionValue;let de=O;return de.type="ExpressionStatement",de.expression=Z,de.directive=Z.extra.rawValue,delete Z.extra,de}initFunction(O,Z){super.initFunction(O,Z),O.expression=!1}checkDeclaration(O){O!=null&&this.isObjectProperty(O)?this.checkDeclaration(O.value):super.checkDeclaration(O)}getObjectOrClassMethodParams(O){return O.value.params}isValidDirective(O){var Z;return O.type==="ExpressionStatement"&&O.expression.type==="Literal"&&typeof O.expression.value=="string"&&!((Z=O.expression.extra)!=null&&Z.parenthesized)}parseBlockBody(O,Z,de,Ke,Ot){super.parseBlockBody(O,Z,de,Ke,Ot);let lr=O.directives.map(Ur=>this.directiveToStmt(Ur));O.body=lr.concat(O.body),delete O.directives}pushClassMethod(O,Z,de,Ke,Ot,lr){this.parseMethod(Z,de,Ke,Ot,lr,"ClassMethod",!0),Z.typeParameters&&(Z.value.typeParameters=Z.typeParameters,delete Z.typeParameters),O.body.push(Z)}parsePrivateName(){let O=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(O):O}convertPrivateNameToPrivateIdentifier(O){let Z=super.getPrivateNameSV(O);return O=O,delete O.id,O.name=Z,O.type="PrivateIdentifier",O}isPrivateName(O){return this.getPluginOption("estree","classFeatures")?O.type==="PrivateIdentifier":super.isPrivateName(O)}getPrivateNameSV(O){return this.getPluginOption("estree","classFeatures")?O.name:super.getPrivateNameSV(O)}parseLiteral(O,Z){let de=super.parseLiteral(O,Z);return de.raw=de.extra.raw,delete de.extra,de}parseFunctionBody(O,Z,de=!1){super.parseFunctionBody(O,Z,de),O.expression=O.body.type!=="BlockStatement"}parseMethod(O,Z,de,Ke,Ot,lr,Ur=!1){let yn=this.startNode();return yn.kind=O.kind,yn=super.parseMethod(yn,Z,de,Ke,Ot,lr,Ur),yn.type="FunctionExpression",delete yn.kind,O.value=yn,lr==="ClassPrivateMethod"&&(O.computed=!1),this.finishNode(O,"MethodDefinition")}nameIsConstructor(O){return O.type==="Literal"?O.value==="constructor":super.nameIsConstructor(O)}parseClassProperty(...O){let Z=super.parseClassProperty(...O);return this.getPluginOption("estree","classFeatures")&&(Z.type="PropertyDefinition"),Z}parseClassPrivateProperty(...O){let Z=super.parseClassPrivateProperty(...O);return this.getPluginOption("estree","classFeatures")&&(Z.type="PropertyDefinition",Z.computed=!1),Z}parseObjectMethod(O,Z,de,Ke,Ot){let lr=super.parseObjectMethod(O,Z,de,Ke,Ot);return lr&&(lr.type="Property",lr.kind==="method"&&(lr.kind="init"),lr.shorthand=!1),lr}parseObjectProperty(O,Z,de,Ke){let Ot=super.parseObjectProperty(O,Z,de,Ke);return Ot&&(Ot.kind="init",Ot.type="Property"),Ot}isValidLVal(O,Z,de){return O==="Property"?"value":super.isValidLVal(O,Z,de)}isAssignable(O,Z){return O!=null&&this.isObjectProperty(O)?this.isAssignable(O.value,Z):super.isAssignable(O,Z)}toAssignable(O,Z=!1){if(O!=null&&this.isObjectProperty(O)){let{key:de,value:Ke}=O;this.isPrivateName(de)&&this.classScope.usePrivateName(this.getPrivateNameSV(de),de.loc.start),this.toAssignable(Ke,Z)}else super.toAssignable(O,Z)}toAssignableObjectExpressionProp(O,Z,de){O.type==="Property"&&(O.kind==="get"||O.kind==="set")?this.raise(M.PatternHasAccessor,O.key):O.type==="Property"&&O.method?this.raise(M.PatternHasMethod,O.key):super.toAssignableObjectExpressionProp(O,Z,de)}finishCallExpression(O,Z){let de=super.finishCallExpression(O,Z);if(de.callee.type==="Import"){if(de.type="ImportExpression",de.source=de.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var Ke,Ot;de.options=(Ke=de.arguments[1])!=null?Ke:null,de.attributes=(Ot=de.arguments[1])!=null?Ot:null}delete de.arguments,delete de.callee}return de}toReferencedArguments(O){O.type!=="ImportExpression"&&super.toReferencedArguments(O)}parseExport(O,Z){let de=this.state.lastTokStartLoc,Ke=super.parseExport(O,Z);switch(Ke.type){case"ExportAllDeclaration":Ke.exported=null;break;case"ExportNamedDeclaration":Ke.specifiers.length===1&&Ke.specifiers[0].type==="ExportNamespaceSpecifier"&&(Ke.type="ExportAllDeclaration",Ke.exported=Ke.specifiers[0].exported,delete Ke.specifiers);case"ExportDefaultDeclaration":{var Ot;let{declaration:lr}=Ke;lr?.type==="ClassDeclaration"&&((Ot=lr.decorators)==null?void 0:Ot.length)>0&&lr.start===Ke.start&&this.resetStartLocation(Ke,de)}break}return Ke}parseSubscript(O,Z,de,Ke){let Ot=super.parseSubscript(O,Z,de,Ke);if(Ke.optionalChainMember){if((Ot.type==="OptionalMemberExpression"||Ot.type==="OptionalCallExpression")&&(Ot.type=Ot.type.substring(8)),Ke.stop){let lr=this.startNodeAtNode(Ot);return lr.expression=Ot,this.finishNode(lr,"ChainExpression")}}else(Ot.type==="MemberExpression"||Ot.type==="CallExpression")&&(Ot.optional=!1);return Ot}isOptionalMemberExpression(O){return O.type==="ChainExpression"?O.expression.type==="MemberExpression":super.isOptionalMemberExpression(O)}hasPropertyAsPrivateName(O){return O.type==="ChainExpression"&&(O=O.expression),super.hasPropertyAsPrivateName(O)}isObjectProperty(O){return O.type==="Property"&&O.kind==="init"&&!O.method}isObjectMethod(O){return O.type==="Property"&&(O.method||O.kind==="get"||O.kind==="set")}finishNodeAt(O,Z,de){return G(super.finishNodeAt(O,Z,de))}resetStartLocation(O,Z){super.resetStartLocation(O,Z),G(O)}resetEndLocation(O,Z=this.state.lastTokEndLoc){super.resetEndLocation(O,Z),G(O)}},ce=class{constructor(Y,O){this.token=void 0,this.preserveSpace=void 0,this.token=Y,this.preserveSpace=!!O}},pe={brace:new ce("{"),j_oTag:new ce("<tag"),j_cTag:new ce("</tag"),j_expr:new ce("<tag>...</tag>",!0)};pe.template=new ce("`",!0);var De=!0,ke=!0,Be=!0,$e=!0,Ye=!0,Le=!0,He=class{constructor(Y,O={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=Y,this.keyword=O.keyword,this.beforeExpr=!!O.beforeExpr,this.startsExpr=!!O.startsExpr,this.rightAssociative=!!O.rightAssociative,this.isLoop=!!O.isLoop,this.isAssign=!!O.isAssign,this.prefix=!!O.prefix,this.postfix=!!O.postfix,this.binop=O.binop!=null?O.binop:null,this.updateContext=null}},yt=new Map;function Ge(Y,O={}){O.keyword=Y;let Z=mi(Y,O);return yt.set(Y,Z),Z}function Ht(Y,O){return mi(Y,{beforeExpr:De,binop:O})}var Fr=-1,ht=[],Jr=[],bn=[],ki=[],qn=[],qa=[];function mi(Y,O={}){var Z,de,Ke,Ot;return++Fr,Jr.push(Y),bn.push((Z=O.binop)!=null?Z:-1),ki.push((de=O.beforeExpr)!=null?de:!1),qn.push((Ke=O.startsExpr)!=null?Ke:!1),qa.push((Ot=O.prefix)!=null?Ot:!1),ht.push(new He(Y,O)),Fr}function ri(Y,O={}){var Z,de,Ke,Ot;return++Fr,yt.set(Y,Fr),Jr.push(Y),bn.push((Z=O.binop)!=null?Z:-1),ki.push((de=O.beforeExpr)!=null?de:!1),qn.push((Ke=O.startsExpr)!=null?Ke:!1),qa.push((Ot=O.prefix)!=null?Ot:!1),ht.push(new He("name",O)),Fr}var xi={bracketL:mi("[",{beforeExpr:De,startsExpr:ke}),bracketHashL:mi("#[",{beforeExpr:De,startsExpr:ke}),bracketBarL:mi("[|",{beforeExpr:De,startsExpr:ke}),bracketR:mi("]"),bracketBarR:mi("|]"),braceL:mi("{",{beforeExpr:De,startsExpr:ke}),braceBarL:mi("{|",{beforeExpr:De,startsExpr:ke}),braceHashL:mi("#{",{beforeExpr:De,startsExpr:ke}),braceR:mi("}"),braceBarR:mi("|}"),parenL:mi("(",{beforeExpr:De,startsExpr:ke}),parenR:mi(")"),comma:mi(",",{beforeExpr:De}),semi:mi(";",{beforeExpr:De}),colon:mi(":",{beforeExpr:De}),doubleColon:mi("::",{beforeExpr:De}),dot:mi("."),question:mi("?",{beforeExpr:De}),questionDot:mi("?."),arrow:mi("=>",{beforeExpr:De}),template:mi("template"),ellipsis:mi("...",{beforeExpr:De}),backQuote:mi("`",{startsExpr:ke}),dollarBraceL:mi("${",{beforeExpr:De,startsExpr:ke}),templateTail:mi("...`",{startsExpr:ke}),templateNonTail:mi("...${",{beforeExpr:De,startsExpr:ke}),at:mi("@"),hash:mi("#",{startsExpr:ke}),interpreterDirective:mi("#!..."),eq:mi("=",{beforeExpr:De,isAssign:$e}),assign:mi("_=",{beforeExpr:De,isAssign:$e}),slashAssign:mi("_=",{beforeExpr:De,isAssign:$e}),xorAssign:mi("_=",{beforeExpr:De,isAssign:$e}),moduloAssign:mi("_=",{beforeExpr:De,isAssign:$e}),incDec:mi("++/--",{prefix:Ye,postfix:Le,startsExpr:ke}),bang:mi("!",{beforeExpr:De,prefix:Ye,startsExpr:ke}),tilde:mi("~",{beforeExpr:De,prefix:Ye,startsExpr:ke}),doubleCaret:mi("^^",{startsExpr:ke}),doubleAt:mi("@@",{startsExpr:ke}),pipeline:Ht("|>",0),nullishCoalescing:Ht("??",1),logicalOR:Ht("||",1),logicalAND:Ht("&&",2),bitwiseOR:Ht("|",3),bitwiseXOR:Ht("^",4),bitwiseAND:Ht("&",5),equality:Ht("==/!=/===/!==",6),lt:Ht("</>/<=/>=",7),gt:Ht("</>/<=/>=",7),relational:Ht("</>/<=/>=",7),bitShift:Ht("<</>>/>>>",8),bitShiftL:Ht("<</>>/>>>",8),bitShiftR:Ht("<</>>/>>>",8),plusMin:mi("+/-",{beforeExpr:De,binop:9,prefix:Ye,startsExpr:ke}),modulo:mi("%",{binop:10,startsExpr:ke}),star:mi("*",{binop:10}),slash:Ht("/",10),exponent:mi("**",{beforeExpr:De,binop:11,rightAssociative:!0}),_in:Ge("in",{beforeExpr:De,binop:7}),_instanceof:Ge("instanceof",{beforeExpr:De,binop:7}),_break:Ge("break"),_case:Ge("case",{beforeExpr:De}),_catch:Ge("catch"),_continue:Ge("continue"),_debugger:Ge("debugger"),_default:Ge("default",{beforeExpr:De}),_else:Ge("else",{beforeExpr:De}),_finally:Ge("finally"),_function:Ge("function",{startsExpr:ke}),_if:Ge("if"),_return:Ge("return",{beforeExpr:De}),_switch:Ge("switch"),_throw:Ge("throw",{beforeExpr:De,prefix:Ye,startsExpr:ke}),_try:Ge("try"),_var:Ge("var"),_const:Ge("const"),_with:Ge("with"),_new:Ge("new",{beforeExpr:De,startsExpr:ke}),_this:Ge("this",{startsExpr:ke}),_super:Ge("super",{startsExpr:ke}),_class:Ge("class",{startsExpr:ke}),_extends:Ge("extends",{beforeExpr:De}),_export:Ge("export"),_import:Ge("import",{startsExpr:ke}),_null:Ge("null",{startsExpr:ke}),_true:Ge("true",{startsExpr:ke}),_false:Ge("false",{startsExpr:ke}),_typeof:Ge("typeof",{beforeExpr:De,prefix:Ye,startsExpr:ke}),_void:Ge("void",{beforeExpr:De,prefix:Ye,startsExpr:ke}),_delete:Ge("delete",{beforeExpr:De,prefix:Ye,startsExpr:ke}),_do:Ge("do",{isLoop:Be,beforeExpr:De}),_for:Ge("for",{isLoop:Be}),_while:Ge("while",{isLoop:Be}),_as:ri("as",{startsExpr:ke}),_assert:ri("assert",{startsExpr:ke}),_async:ri("async",{startsExpr:ke}),_await:ri("await",{startsExpr:ke}),_defer:ri("defer",{startsExpr:ke}),_from:ri("from",{startsExpr:ke}),_get:ri("get",{startsExpr:ke}),_let:ri("let",{startsExpr:ke}),_meta:ri("meta",{startsExpr:ke}),_of:ri("of",{startsExpr:ke}),_sent:ri("sent",{startsExpr:ke}),_set:ri("set",{startsExpr:ke}),_source:ri("source",{startsExpr:ke}),_static:ri("static",{startsExpr:ke}),_using:ri("using",{startsExpr:ke}),_yield:ri("yield",{startsExpr:ke}),_asserts:ri("asserts",{startsExpr:ke}),_checks:ri("checks",{startsExpr:ke}),_exports:ri("exports",{startsExpr:ke}),_global:ri("global",{startsExpr:ke}),_implements:ri("implements",{startsExpr:ke}),_intrinsic:ri("intrinsic",{startsExpr:ke}),_infer:ri("infer",{startsExpr:ke}),_is:ri("is",{startsExpr:ke}),_mixins:ri("mixins",{startsExpr:ke}),_proto:ri("proto",{startsExpr:ke}),_require:ri("require",{startsExpr:ke}),_satisfies:ri("satisfies",{startsExpr:ke}),_keyof:ri("keyof",{startsExpr:ke}),_readonly:ri("readonly",{startsExpr:ke}),_unique:ri("unique",{startsExpr:ke}),_abstract:ri("abstract",{startsExpr:ke}),_declare:ri("declare",{startsExpr:ke}),_enum:ri("enum",{startsExpr:ke}),_module:ri("module",{startsExpr:ke}),_namespace:ri("namespace",{startsExpr:ke}),_interface:ri("interface",{startsExpr:ke}),_type:ri("type",{startsExpr:ke}),_opaque:ri("opaque",{startsExpr:ke}),name:mi("name",{startsExpr:ke}),string:mi("string",{startsExpr:ke}),num:mi("num",{startsExpr:ke}),bigint:mi("bigint",{startsExpr:ke}),decimal:mi("decimal",{startsExpr:ke}),regexp:mi("regexp",{startsExpr:ke}),privateName:mi("#name",{startsExpr:ke}),eof:mi("eof"),jsxName:mi("jsxName"),jsxText:mi("jsxText",{beforeExpr:!0}),jsxTagStart:mi("jsxTagStart",{startsExpr:!0}),jsxTagEnd:mi("jsxTagEnd"),placeholder:mi("%%",{startsExpr:!0})};function gr(Y){return Y>=93&&Y<=132}function Fs(Y){return Y<=92}function Oi(Y){return Y>=58&&Y<=132}function pa(Y){return Y>=58&&Y<=136}function Vo(Y){return ki[Y]}function Oo(Y){return qn[Y]}function ul(Y){return Y>=29&&Y<=33}function wl(Y){return Y>=129&&Y<=131}function rt(Y){return Y>=90&&Y<=92}function Ei(Y){return Y>=58&&Y<=92}function si(Y){return Y>=39&&Y<=59}function jc(Y){return Y===34}function Wl(Y){return qa[Y]}function Mu(Y){return Y>=121&&Y<=123}function Sf(Y){return Y>=124&&Y<=130}function Sl(Y){return Jr[Y]}function Qt(Y){return bn[Y]}function tc(Y){return Y===57}function Hu(Y){return Y>=24&&Y<=25}function ai(Y){return ht[Y]}ht[8].updateContext=Y=>{Y.pop()},ht[5].updateContext=ht[7].updateContext=ht[23].updateContext=Y=>{Y.push(pe.brace)},ht[22].updateContext=Y=>{Y[Y.length-1]===pe.template?Y.pop():Y.push(pe.template)},ht[142].updateContext=Y=>{Y.push(pe.j_expr,pe.j_oTag)};var Fn="\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-\u088E\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\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\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-\u1C88\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-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\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",$s="\u200C\u200D\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\u0898-\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-\u1ACE\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",Jo=new RegExp("["+Fn+"]"),lp=new RegExp("["+Fn+$s+"]");Fn=$s=null;var Sn=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Ca=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function b_(Y,O){let Z=65536;for(let de=0,Ke=O.length;de<Ke;de+=2){if(Z+=O[de],Z>Y)return!1;if(Z+=O[de+1],Z>=Y)return!0}return!1}function zn(Y){return Y<65?Y===36:Y<=90?!0:Y<97?Y===95:Y<=122?!0:Y<=65535?Y>=170&&Jo.test(String.fromCharCode(Y)):b_(Y,Sn)}function Kc(Y){return Y<48?Y===36:Y<58?!0:Y<65?!1:Y<=90?!0:Y<97?Y===95:Y<=122?!0:Y<=65535?Y>=170&&lp.test(String.fromCharCode(Y)):b_(Y,Sn)||b_(Y,Ca)}var Up={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"]},kd=new Set(Up.keyword),Cu=new Set(Up.strict),jd=new Set(Up.strictBind);function Ic(Y,O){return O&&Y==="await"||Y==="enum"}function Gi(Y,O){return Ic(Y,O)||Cu.has(Y)}function us(Y){return jd.has(Y)}function is(Y,O){return Gi(Y,O)||us(Y)}function mc(Y){return kd.has(Y)}function Xr(Y,O,Z){return Y===64&&O===64&&zn(Z)}var Ss=new Set(["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","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function li(Y){return Ss.has(Y)}var Kr=class{constructor(Y){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=Y}},Yi=class{constructor(Y,O){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=Y,this.inModule=O}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let Y=this.currentThisScopeFlags();return(Y&64)>0&&(Y&2)===0}get inStaticBlock(){for(let Y=this.scopeStack.length-1;;Y--){let{flags:O}=this.scopeStack[Y];if(O&128)return!0;if(O&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(Y){return new Kr(Y)}enter(Y){this.scopeStack.push(this.createScope(Y))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(Y){return!!(Y.flags&130||!this.parser.inModule&&Y.flags&1)}declareName(Y,O,Z){let de=this.currentScope();if(O&8||O&16){this.checkRedeclarationInScope(de,Y,O,Z);let Ke=de.names.get(Y)||0;O&16?Ke=Ke|4:(de.firstLexicalName||(de.firstLexicalName=Y),Ke=Ke|2),de.names.set(Y,Ke),O&8&&this.maybeExportDefined(de,Y)}else if(O&4)for(let Ke=this.scopeStack.length-1;Ke>=0&&(de=this.scopeStack[Ke],this.checkRedeclarationInScope(de,Y,O,Z),de.names.set(Y,(de.names.get(Y)||0)|1),this.maybeExportDefined(de,Y),!(de.flags&387));--Ke);this.parser.inModule&&de.flags&1&&this.undefinedExports.delete(Y)}maybeExportDefined(Y,O){this.parser.inModule&&Y.flags&1&&this.undefinedExports.delete(O)}checkRedeclarationInScope(Y,O,Z,de){this.isRedeclaredInScope(Y,O,Z)&&this.parser.raise(M.VarRedeclaration,de,{identifierName:O})}isRedeclaredInScope(Y,O,Z){if(!(Z&1))return!1;if(Z&8)return Y.names.has(O);let de=Y.names.get(O);return Z&16?(de&2)>0||!this.treatFunctionsAsVarInScope(Y)&&(de&1)>0:(de&2)>0&&!(Y.flags&8&&Y.firstLexicalName===O)||!this.treatFunctionsAsVarInScope(Y)&&(de&4)>0}checkLocalExport(Y){let{name:O}=Y;this.scopeStack[0].names.has(O)||this.undefinedExports.set(O,Y.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let Y=this.scopeStack.length-1;;Y--){let{flags:O}=this.scopeStack[Y];if(O&387)return O}}currentThisScopeFlags(){for(let Y=this.scopeStack.length-1;;Y--){let{flags:O}=this.scopeStack[Y];if(O&451&&!(O&4))return O}}},Na=class extends Kr{constructor(...Y){super(...Y),this.declareFunctions=new Set}},hr=class extends Yi{createScope(Y){return new Na(Y)}declareName(Y,O,Z){let de=this.currentScope();if(O&2048){this.checkRedeclarationInScope(de,Y,O,Z),this.maybeExportDefined(de,Y),de.declareFunctions.add(Y);return}super.declareName(Y,O,Z)}isRedeclaredInScope(Y,O,Z){if(super.isRedeclaredInScope(Y,O,Z))return!0;if(Z&2048&&!Y.declareFunctions.has(O)){let de=Y.names.get(O);return(de&4)>0||(de&2)>0}return!1}checkLocalExport(Y){this.scopeStack[0].declareFunctions.has(Y.name)||super.checkLocalExport(Y)}},wr=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(Y){if(typeof Y=="string")return this.plugins.has(Y);{let[O,Z]=Y;if(!this.hasPlugin(O))return!1;let de=this.plugins.get(O);for(let Ke of Object.keys(Z))if(de?.[Ke]!==Z[Ke])return!1;return!0}}getPluginOption(Y,O){var Z;return(Z=this.plugins.get(Y))==null?void 0:Z[O]}};function Yr(Y,O){Y.trailingComments===void 0?Y.trailingComments=O:Y.trailingComments.unshift(...O)}function $n(Y,O){Y.leadingComments===void 0?Y.leadingComments=O:Y.leadingComments.unshift(...O)}function ui(Y,O){Y.innerComments===void 0?Y.innerComments=O:Y.innerComments.unshift(...O)}function zr(Y,O,Z){let de=null,Ke=O.length;for(;de===null&&Ke>0;)de=O[--Ke];de===null||de.start>Z.start?ui(Y,Z.comments):Yr(de,Z.comments)}var Vi=class extends wr{addComment(Y){this.filename&&(Y.loc.filename=this.filename);let{commentsLen:O}=this.state;this.comments.length!==O&&(this.comments.length=O),this.comments.push(Y),this.state.commentsLen++}processComment(Y){let{commentStack:O}=this.state,Z=O.length;if(Z===0)return;let de=Z-1,Ke=O[de];Ke.start===Y.end&&(Ke.leadingNode=Y,de--);let{start:Ot}=Y;for(;de>=0;de--){let lr=O[de],Ur=lr.end;if(Ur>Ot)lr.containingNode=Y,this.finalizeComment(lr),O.splice(de,1);else{Ur===Ot&&(lr.trailingNode=Y);break}}}finalizeComment(Y){let{comments:O}=Y;if(Y.leadingNode!==null||Y.trailingNode!==null)Y.leadingNode!==null&&Yr(Y.leadingNode,O),Y.trailingNode!==null&&$n(Y.trailingNode,O);else{let{containingNode:Z,start:de}=Y;if(this.input.charCodeAt(de-1)===44)switch(Z.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":zr(Z,Z.properties,Y);break;case"CallExpression":case"OptionalCallExpression":zr(Z,Z.arguments,Y);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":zr(Z,Z.params,Y);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":zr(Z,Z.elements,Y);break;case"ExportNamedDeclaration":case"ImportDeclaration":zr(Z,Z.specifiers,Y);break;default:ui(Z,O)}else ui(Z,O)}}finalizeRemainingComments(){let{commentStack:Y}=this.state;for(let O=Y.length-1;O>=0;O--)this.finalizeComment(Y[O]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(Y){let{commentStack:O}=this.state,{length:Z}=O;if(Z===0)return;let de=O[Z-1];de.leadingNode===Y&&(de.leadingNode=null)}resetPreviousIdentifierLeadingComments(Y){let{commentStack:O}=this.state,{length:Z}=O;Z!==0&&(O[Z-1].trailingNode===Y?O[Z-1].trailingNode=null:Z>=2&&O[Z-2].trailingNode===Y&&(O[Z-2].trailingNode=null))}takeSurroundingComments(Y,O,Z){let{commentStack:de}=this.state,Ke=de.length;if(Ke===0)return;let Ot=Ke-1;for(;Ot>=0;Ot--){let lr=de[Ot],Ur=lr.end;if(lr.start===Z)lr.leadingNode=Y;else if(Ur===O)lr.trailingNode=Y;else if(Ur<O)break}}},ft=/\r\n?|[\n\u2028\u2029]/,fa=new RegExp(ft.source,"g");function Qi(Y){switch(Y){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var Zr=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ya=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,Mn=new RegExp("(?=("+ya.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function _a(Y){switch(Y){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var ro=class uBt{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[pe.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(O){O?this.flags|=1:this.flags&=-2}init({strictMode:O,sourceType:Z,startLine:de,startColumn:Ke}){this.strict=O===!1?!1:O===!0?!0:Z==="module",this.curLine=de,this.lineStart=-Ke,this.startLoc=this.endLoc=new n(de,Ke,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(O){O?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(O){O?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(O){O?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(O){O?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(O){O?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(O){O?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(O){O?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(O){O?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(O){O?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(O){O?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(O){O?this.flags|=2048:this.flags&=-2049}curPosition(){return new n(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let O=new uBt;return O.flags=this.flags,O.curLine=this.curLine,O.lineStart=this.lineStart,O.startLoc=this.startLoc,O.endLoc=this.endLoc,O.errors=this.errors.slice(),O.potentialArrowAt=this.potentialArrowAt,O.noArrowAt=this.noArrowAt.slice(),O.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),O.topicContext=this.topicContext,O.labels=this.labels.slice(),O.commentsLen=this.commentsLen,O.commentStack=this.commentStack.slice(),O.pos=this.pos,O.type=this.type,O.value=this.value,O.start=this.start,O.end=this.end,O.lastTokEndLoc=this.lastTokEndLoc,O.lastTokStartLoc=this.lastTokStartLoc,O.context=this.context.slice(),O.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,O.strictErrors=this.strictErrors,O.tokensLength=this.tokensLength,O}},pl=function(Y){return Y>=48&&Y<=57},rl={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Xu={bin:Y=>Y===48||Y===49,oct:Y=>Y>=48&&Y<=55,dec:Y=>Y>=48&&Y<=57,hex:Y=>Y>=48&&Y<=57||Y>=65&&Y<=70||Y>=97&&Y<=102};function Bu(Y,O,Z,de,Ke,Ot){let lr=Z,Ur=de,yn=Ke,cn="",Aa=null,Go=Z,{length:Fc}=O;for(;;){if(Z>=Fc){Ot.unterminated(lr,Ur,yn),cn+=O.slice(Go,Z);break}let Gc=O.charCodeAt(Z);if(I_(Y,Gc,O,Z)){cn+=O.slice(Go,Z);break}if(Gc===92){cn+=O.slice(Go,Z);let F_=Yp(O,Z,de,Ke,Y==="template",Ot);F_.ch===null&&!Aa?Aa={pos:Z,lineStart:de,curLine:Ke}:cn+=F_.ch,{pos:Z,lineStart:de,curLine:Ke}=F_,Go=Z}else Gc===8232||Gc===8233?(++Z,++Ke,de=Z):Gc===10||Gc===13?Y==="template"?(cn+=O.slice(Go,Z)+`
780
780
  `,++Z,Gc===13&&O.charCodeAt(Z)===10&&++Z,++Ke,Go=de=Z):Ot.unterminated(lr,Ur,yn):++Z}return{pos:Z,str:cn,firstInvalidLoc:Aa,lineStart:de,curLine:Ke,containsInvalid:!!Aa}}function I_(Y,O,Z,de){return Y==="template"?O===96||O===36&&Z.charCodeAt(de+1)===123:O===(Y==="double"?34:39)}function Yp(Y,O,Z,de,Ke,Ot){let lr=!Ke;O++;let Ur=cn=>({pos:O,ch:cn,lineStart:Z,curLine:de}),yn=Y.charCodeAt(O++);switch(yn){case 110:return Ur(`
@@ -1074,11 +1074,11 @@ ${t}
1074
1074
  `}return new svt(a)}var svt=class{contents;constructor(e){this.contents=e}addIntro(e){this.contents[0]+=e}addTodo(e){this.contents[1]+=e}addAbout(e){this.contents[2]+=e}finalize(){let e="";for(let n=0;n<BLe.length;n++){let s=BLe[n].trim(),a=this.contents[n].trim();s&&a&&(e+=s+`
1075
1075
  `),a&&(e+=a+`
1076
1076
 
1077
- `)}return e}},NFs={h1:Kis,h2:Gis,h3:His,link:Zis,tick:ess,code:tss,bold:Xis,italic:Qis};var HWr=$f(GWr(),1);async function t8s({readfile:t}){let e=await t?.();return uJr(e)}async function r8s({readfile:t,source:e,target:n}){let s=await t?.();return MLe(typeof s=="string",`Unable to load previous JSON module ("${e}" -> "${n}")`),JSON.parse(s)}async function n8s({readfile:t,source:e,target:n}){let s=await t?.();return MLe(typeof s=="string",`Unable to load previous module ("${e}" -> "${n}")`),RLe(s)}async function i8s(t,e){let n=Als(e.url),s=Els(n);return ivt(Cls(s,t))}async function s8s({readfile:t,source:e,target:n},s){let a=await t?.();return MLe(typeof a=="string",`Unable to load previous YAML module ("${e}" -> "${n}")`),(0,HWr.parseDocument)(a,s)}var c8s=$f(rbt(),1),l8s=$f(jbt(),1);function XWr(t,e){if(typeof e=="object")for(let n in e)typeof t[n]=="object"&&typeof e[n]=="object"?XWr(t[n],e[n]):t[n]=e[n]}function Pls(t){return QWr(t.exports.default)}function wls(t){if(t.exports.default.$type!=="identifier")throw new KT(`Not supported: Cannot modify this kind of default export (${t.exports.default.$type})`);let e=t.exports.default.$name;for(let n of t.$ast.body)if(n.type==="VariableDeclaration"){for(let s of n.declarations)if(s.id.type==="Identifier"&&s.id.name===e&&s.init){let a=s.init.type==="TSSatisfiesExpression"?s.init.expression:s.init,l=Gq(a).code,p=nvt(l);return{declaration:s,config:QWr(p)}}}throw new KT("Couldn't find config declaration")}function QWr(t){return t.$type==="function-call"?t.$args[0]:t}function Dls(t,e){let n=Pls(t);return n.$type==="identifier"?kls(t,e):ZWr(e,n),t.imports.$prepend({from:e.from,local:e.constructor,imported:e.imported||"default"}),!0}function kls(t,e){let{config:n,declaration:s}=wls(t);ZWr(e,n),s.init&&(s.init.type==="ObjectExpression"?s.init=Gq(n).code:s.init.type==="CallExpression"&&s.init.callee.type==="Identifier"?s.init=Gq(Mie.functionCall(s.init.callee.name,n)).code:s.init.type==="TSSatisfiesExpression"&&(s.init.expression.type==="ObjectExpression"&&(s.init.expression=Gq(n).code),s.init.expression.type==="CallExpression"&&s.init.expression.callee.type==="Identifier"&&(s.init.expression=Gq(Mie.functionCall(s.init.expression.callee.name,n)).code)))}function ZWr(t,e){let n=t.index??e.plugins?.length??0;e.plugins||(e.plugins=[]),e.plugins.splice(n,0,t.options?Mie.functionCall(t.constructor,t.options):Mie.functionCall(t.constructor))}import*as I7e from"tty";var{env:sV={},argv:tYr=[],platform:Nls=""}=typeof process>"u"?{}:process,Ils="NO_COLOR"in sV||tYr.includes("--no-color"),Fls="FORCE_COLOR"in sV||tYr.includes("--color"),Ols=Nls==="win32",rYr=sV.TERM==="dumb",Lls=I7e&&I7e.isatty&&I7e.isatty(1)&&sV.TERM&&!rYr,Rls="CI"in sV&&("GITHUB_ACTIONS"in sV||"GITLAB_CI"in sV||"CIRCLECI"in sV),Mls=!Ils&&(Fls||Ols&&!rYr||Lls||Rls),nYr=(t,e,n,s,a=e.substring(0,t)+s,l=e.substring(t+n.length),p=l.indexOf(n))=>a+(p<0?l:nYr(p,l,n,s)),Bls=(t,e,n,s,a)=>t<0?n+e+s:n+nYr(t,e,s,a)+s,jls=(t,e,n=t,s=t.length+1)=>a=>a||!(a===""||a===void 0)?Bls((""+a).indexOf(e,s),a,t,e,n):"",i_=(t,e,n)=>jls(`\x1B[${t}m`,`\x1B[${e}m`,n),eYr={reset:i_(0,0),bold:i_(1,22,"\x1B[22m\x1B[1m"),dim:i_(2,22,"\x1B[22m\x1B[2m"),italic:i_(3,23),underline:i_(4,24),inverse:i_(7,27),hidden:i_(8,28),strikethrough:i_(9,29),black:i_(30,39),red:i_(31,39),green:i_(32,39),yellow:i_(33,39),blue:i_(34,39),magenta:i_(35,39),cyan:i_(36,39),white:i_(37,39),gray:i_(90,39),bgBlack:i_(40,49),bgRed:i_(41,49),bgGreen:i_(42,49),bgYellow:i_(43,49),bgBlue:i_(44,49),bgMagenta:i_(45,49),bgCyan:i_(46,49),bgWhite:i_(47,49),blackBright:i_(90,39),redBright:i_(91,39),greenBright:i_(92,39),yellowBright:i_(93,39),blueBright:i_(94,39),magentaBright:i_(95,39),cyanBright:i_(96,39),whiteBright:i_(97,39),bgBlackBright:i_(100,49),bgRedBright:i_(101,49),bgGreenBright:i_(102,49),bgYellowBright:i_(103,49),bgBlueBright:i_(104,49),bgMagentaBright:i_(105,49),bgCyanBright:i_(106,49),bgWhiteBright:i_(107,49)},Uls=({useColor:t=Mls}={})=>t?eYr:Object.keys(eYr).reduce((e,n)=>({...e,[n]:String}),{}),{reset:d8s,bold:m8s,dim:UTt,italic:h8s,underline:g8s,inverse:y8s,hidden:b8s,strikethrough:v8s,black:T8s,red:S8s,green:x8s,yellow:iYr,blue:E8s,magenta:C8s,cyan:A8s,white:P8s,gray:w8s,bgBlack:D8s,bgRed:k8s,bgGreen:N8s,bgYellow:I8s,bgBlue:F8s,bgMagenta:O8s,bgCyan:L8s,bgWhite:R8s,blackBright:M8s,redBright:B8s,greenBright:j8s,yellowBright:U8s,blueBright:q8s,magentaBright:V8s,cyanBright:J8s,whiteBright:$8s,bgBlackBright:W8s,bgRedBright:Y8s,bgGreenBright:z8s,bgYellowBright:K8s,bgBlueBright:G8s,bgMagentaBright:H8s,bgCyanBright:X8s,bgWhiteBright:Q8s}=Uls();function sYr(t,e,n=0){let s=`${" ".repeat(n*2)}${e?e(t):t}`;return a=>`${s} ${a}`}function*qls(t){if(t.devDependencies)for(let e in t.devDependencies)yield[e,t.devDependencies[e]];if(t.dependencies)for(let e in t.dependencies)yield[e,t.dependencies[e]]}function*aYr(t,e){for(let n of e){let s=t.get(n);if(!s)throw new Error(`key '${s}' not found in package.json`);yield[n,s]}}function nLs(t,e,n){t.devDependencies??={},t.dependencies??={};let s=new Map(qls(e));for(let[a,l]of aYr(s,n.devDependencies??[]))a in t.dependencies||(t.devDependencies[a]=l);for(let[a,l]of aYr(s,n.dependencies??[]))a in t.devDependencies&&delete t.devDependencies[a],t.dependencies[a]=l;return t}var oYr={};function cYr(t,e,n){console.warn(sYr("\u26A0",iYr)(`Possible conflict between flags for "package.json":
1077
+ `)}return e}},NFs={h1:Kis,h2:Gis,h3:His,link:Zis,tick:ess,code:tss,bold:Xis,italic:Qis};var HWr=$f(GWr(),1);async function t8s({readfile:t}){let e=await t?.();return uJr(e)}async function r8s({readfile:t,source:e,target:n}){let s=await t?.();return MLe(typeof s=="string",`Unable to load previous JSON module ("${e}" -> "${n}")`),JSON.parse(s)}async function n8s({readfile:t,source:e,target:n}){let s=await t?.();return MLe(typeof s=="string",`Unable to load previous module ("${e}" -> "${n}")`),RLe(s)}async function i8s(t,e){let n=Als(e.url),s=Els(n);return ivt(Cls(s,t))}async function s8s({readfile:t,source:e,target:n},s){let a=await t?.();return MLe(typeof a=="string",`Unable to load previous YAML module ("${e}" -> "${n}")`),(0,HWr.parseDocument)(a,s)}var c8s=$f(rbt(),1),l8s=$f(jbt(),1);function XWr(t,e){if(typeof e=="object")for(let n in e)typeof t[n]=="object"&&typeof e[n]=="object"?XWr(t[n],e[n]):t[n]=e[n]}function Pls(t){return QWr(t.exports.default)}function wls(t){if(t.exports.default.$type!=="identifier")throw new KT(`Not supported: Cannot modify this kind of default export (${t.exports.default.$type})`);let e=t.exports.default.$name;for(let n of t.$ast.body)if(n.type==="VariableDeclaration"){for(let s of n.declarations)if(s.id.type==="Identifier"&&s.id.name===e&&s.init){let a=s.init.type==="TSSatisfiesExpression"?s.init.expression:s.init,l=Gq(a).code,p=nvt(l);return{declaration:s,config:QWr(p)}}}throw new KT("Couldn't find config declaration")}function QWr(t){return t.$type==="function-call"?t.$args[0]:t}function Dls(t,e){let n=Pls(t);return n.$type==="identifier"?kls(t,e):ZWr(e,n),t.imports.$prepend({from:e.from,local:e.constructor,imported:e.imported||"default"}),!0}function kls(t,e){let{config:n,declaration:s}=wls(t);ZWr(e,n),s.init&&(s.init.type==="ObjectExpression"?s.init=Gq(n).code:s.init.type==="CallExpression"&&s.init.callee.type==="Identifier"?s.init=Gq(Mie.functionCall(s.init.callee.name,n)).code:s.init.type==="TSSatisfiesExpression"&&(s.init.expression.type==="ObjectExpression"&&(s.init.expression=Gq(n).code),s.init.expression.type==="CallExpression"&&s.init.expression.callee.type==="Identifier"&&(s.init.expression=Gq(Mie.functionCall(s.init.expression.callee.name,n)).code)))}function ZWr(t,e){let n=t.index??e.plugins?.length??0;e.plugins||(e.plugins=[]),e.plugins.splice(n,0,t.options?Mie.functionCall(t.constructor,t.options):Mie.functionCall(t.constructor))}import*as I7e from"tty";var{env:sV={},argv:tYr=[],platform:Nls=""}=typeof process>"u"?{}:process,Ils="NO_COLOR"in sV||tYr.includes("--no-color"),Fls="FORCE_COLOR"in sV||tYr.includes("--color"),Ols=Nls==="win32",rYr=sV.TERM==="dumb",Lls=I7e&&I7e.isatty&&I7e.isatty(1)&&sV.TERM&&!rYr,Rls="CI"in sV&&("GITHUB_ACTIONS"in sV||"GITLAB_CI"in sV||"CIRCLECI"in sV),Mls=!Ils&&(Fls||Ols&&!rYr||Lls||Rls),nYr=(t,e,n,s,a=e.substring(0,t)+s,l=e.substring(t+n.length),p=l.indexOf(n))=>a+(p<0?l:nYr(p,l,n,s)),Bls=(t,e,n,s,a)=>t<0?n+e+s:n+nYr(t,e,s,a)+s,jls=(t,e,n=t,s=t.length+1)=>a=>a||!(a===""||a===void 0)?Bls((""+a).indexOf(e,s),a,t,e,n):"",i_=(t,e,n)=>jls(`\x1B[${t}m`,`\x1B[${e}m`,n),eYr={reset:i_(0,0),bold:i_(1,22,"\x1B[22m\x1B[1m"),dim:i_(2,22,"\x1B[22m\x1B[2m"),italic:i_(3,23),underline:i_(4,24),inverse:i_(7,27),hidden:i_(8,28),strikethrough:i_(9,29),black:i_(30,39),red:i_(31,39),green:i_(32,39),yellow:i_(33,39),blue:i_(34,39),magenta:i_(35,39),cyan:i_(36,39),white:i_(37,39),gray:i_(90,39),bgBlack:i_(40,49),bgRed:i_(41,49),bgGreen:i_(42,49),bgYellow:i_(43,49),bgBlue:i_(44,49),bgMagenta:i_(45,49),bgCyan:i_(46,49),bgWhite:i_(47,49),blackBright:i_(90,39),redBright:i_(91,39),greenBright:i_(92,39),yellowBright:i_(93,39),blueBright:i_(94,39),magentaBright:i_(95,39),cyanBright:i_(96,39),whiteBright:i_(97,39),bgBlackBright:i_(100,49),bgRedBright:i_(101,49),bgGreenBright:i_(102,49),bgYellowBright:i_(103,49),bgBlueBright:i_(104,49),bgMagentaBright:i_(105,49),bgCyanBright:i_(106,49),bgWhiteBright:i_(107,49)},Uls=({useColor:t=Mls}={})=>t?eYr:Object.keys(eYr).reduce((e,n)=>({...e,[n]:String}),{}),{reset:d8s,bold:m8s,dim:UTt,italic:h8s,underline:g8s,inverse:y8s,hidden:b8s,strikethrough:v8s,black:T8s,red:S8s,green:x8s,yellow:iYr,blue:E8s,magenta:C8s,cyan:A8s,white:P8s,gray:w8s,bgBlack:D8s,bgRed:k8s,bgGreen:N8s,bgYellow:I8s,bgBlue:F8s,bgMagenta:O8s,bgCyan:L8s,bgWhite:R8s,blackBright:M8s,redBright:B8s,greenBright:j8s,yellowBright:U8s,blueBright:q8s,magentaBright:V8s,cyanBright:J8s,whiteBright:$8s,bgBlackBright:W8s,bgRedBright:Y8s,bgGreenBright:z8s,bgYellowBright:K8s,bgBlueBright:G8s,bgMagentaBright:H8s,bgCyanBright:X8s,bgWhiteBright:Q8s}=Uls();function sYr(t,e,n=0){let s=`${" ".repeat(n*2)}${e?e(t):t}`;return a=>`${s} ${a}`}function*qls(t){if(t.devDependencies)for(let e in t.devDependencies)yield[e,t.devDependencies[e]];if(t.dependencies)for(let e in t.dependencies)yield[e,t.dependencies[e]]}function*aYr(t,e){for(let n of e){let s=t.get(n);if(!s)throw new Error(`key '${s}' not found in package.json`);yield[n,s]}}function iLs(t,e,n){t.devDependencies??={},t.dependencies??={};let s=new Map(qls(e));for(let[a,l]of aYr(s,n.devDependencies??[]))a in t.dependencies||(t.devDependencies[a]=l);for(let[a,l]of aYr(s,n.dependencies??[]))a in t.devDependencies&&delete t.devDependencies[a],t.dependencies[a]=l;return t}var oYr={};function cYr(t,e,n){console.warn(sYr("\u26A0",iYr)(`Possible conflict between flags for "package.json":
1078
1078
  Old \`scripts.${t}\`: ${UTt(e)}
1079
1079
  New \`scripts.${t}\`: ${UTt(n)}
1080
1080
  You can check https://batijs.dev for more details.
1081
- `))}function iLs(t,e){let n=Object.keys(e);for(let s of n){let a=oYr[s]??{precedence:-1/0},l=e[s];l&&(l.precedence>a.precedence?(a.warnIfReplaced&&cYr(s,a.value,l.value),t.scripts[s]=l.value,oYr[s]=Object.assign({precedence:-1/0},l)):l.warnIfReplaced&&cYr(s,l.value,a.value))}return t}function aLs(t,e,n,s){t??="",t.endsWith(`
1081
+ `))}function sLs(t,e){let n=Object.keys(e);for(let s of n){let a=oYr[s]??{precedence:-1/0},l=e[s];l&&(l.precedence>a.precedence?(a.warnIfReplaced&&cYr(s,a.value,l.value),t.scripts[s]=l.value,oYr[s]=Object.assign({precedence:-1/0},l)):l.warnIfReplaced&&cYr(s,l.value,a.value))}return t}function oLs(t,e,n,s){t??="",t.endsWith(`
1082
1082
 
1083
1083
  `)||(t.endsWith(`
1084
1084
  `)?t=t+`
@@ -1086,7 +1086,7 @@ ${t}
1086
1086
 
1087
1087
  `));let a=s?s.replace(/^(.+)/gm,"# $1")+`
1088
1088
  `:"",l=`${e}=${Vls(n)}
1089
- `;return t+a+l}function Vls(t){let e="";switch(typeof t){case"string":t&&(e=JSON.stringify(t));break;case"boolean":case"number":e=String(t);break;case"undefined":e="";break;case"object":t!==null&&(e=JSON.stringify(t));break}return e}var cus=$f(kYr(),1);import{randomBytes as mLs}from"node:crypto";var qTt={name:"@batijs/core",version:"0.0.262",description:"",type:"module",types:"./dist/index.d.ts",scripts:{"check-types":"tsc --noEmit",vue:"tsx src/parse/linters/vue.ts",test:"vitest run","test:ci":"vitest run",build:"tsup"},keywords:[],author:"Jo\xEBl Charles <joel.charles91@gmail.com>",repository:"https://github.com/vikejs/bati",license:"MIT",devDependencies:{"@batijs/features":"workspace:*","@types/eslint":"^9.6.1","@types/estree":"^1.0.5","@types/node":"^18.19.14","@types/which":"^3.0.4","@typescript-eslint/parser":"^8.3.0","@typescript-eslint/utils":"^8.3.0",colorette:"^2.0.20",esbuild:"^0.23.1",eslint:"^9.9.1","eslint-plugin-solid":"^0.14.3","eslint-rule-composer":"^0.3.0",espree:"^10.1.0",magicast:"^0.3.5",prettier:"^3.3.3",squirrelly:"^9.1.0",tsup:"^8.2.4",tsx:"^4.18.0",typescript:"^5.5.4","unplugin-purge-polyfills":"^0.0.5",vitest:"^2.0.5","vue-eslint-parser":"^9.4.3",which:"^4.0.0",yaml:"^2.5.0"},exports:{".":"./dist/index.js","./types":{types:"./global.d.ts"}},typesVersions:{"*":{types:["./global.d.ts"]}},files:["dist/"]};function uus(){if(process.env.npm_config_user_agent)return pus(process.env.npm_config_user_agent)}function pus(t){let e=t.split(" ")[0],n=e.lastIndexOf("/"),s=e.substring(0,n);return{name:s==="npminstall"?"cnpm":s,version:e.substring(n+1)}}function bLs(){switch(uus()?.name){case"pnpm":return"pnpm create bati";case"yarn":return"yarn dlx @batijs/cli";case"bun":return"bun create bati";default:return"npm create bati --"}}function vLs(){let t=qTt.version.split("."),e=t[0],n=t[1],s=t.slice(2).join(".");return{version:qTt.version,semver:[e,n,s]}}var export_which=cus.default;export{svt as Readme,nLs as addDependency,Dls as addVitePlugin,aLs as appendToEnv,Mie as builders,XWr as deepMergeObject,Crt as formatCode,Gq as generateCode,bLs as getArgs,vLs as getVersion,r8s as loadAsJson,n8s as loadAsMagicast,ivt as loadFile,t8s as loadReadme,i8s as loadRelativeFileAsMagicast,s8s as loadYaml,NFs as markdown,uus as packageManager,RLe as parseModule,uJr as parseReadme,mLs as randomBytes,iLs as setScripts,kts as transformAndFormat,export_which as which,sYr as withIcon};
1089
+ `;return t+a+l}function Vls(t){let e="";switch(typeof t){case"string":t&&(e=JSON.stringify(t));break;case"boolean":case"number":e=String(t);break;case"undefined":e="";break;case"object":t!==null&&(e=JSON.stringify(t));break}return e}var cus=$f(kYr(),1);import{randomBytes as hLs}from"node:crypto";var qTt={name:"@batijs/core",version:"0.0.264",description:"",type:"module",types:"./dist/index.d.ts",scripts:{"check-types":"tsc --noEmit",vue:"tsx src/parse/linters/vue.ts",test:"vitest run","test:ci":"vitest run",build:"tsup"},keywords:[],author:"Jo\xEBl Charles <joel.charles91@gmail.com>",repository:"https://github.com/vikejs/bati",license:"MIT",devDependencies:{"@batijs/features":"workspace:*","@types/eslint":"^9.6.1","@types/estree":"^1.0.5","@types/node":"^18.19.14","@types/which":"^3.0.4","@typescript-eslint/parser":"^8.3.0","@typescript-eslint/utils":"^8.3.0",colorette:"^2.0.20",esbuild:"^0.23.1",eslint:"^9.9.1","eslint-plugin-solid":"^0.14.3","eslint-rule-composer":"^0.3.0",espree:"^10.1.0",magicast:"^0.3.5",prettier:"^3.3.3",squirrelly:"^9.1.0",tsup:"^8.2.4",tsx:"^4.18.0",typescript:"^5.5.4","unplugin-purge-polyfills":"^0.0.5",vitest:"^2.0.5","vue-eslint-parser":"^9.4.3",which:"^4.0.0",yaml:"^2.5.0"},exports:{".":"./dist/index.js","./types":{types:"./global.d.ts"}},typesVersions:{"*":{types:["./global.d.ts"]}},files:["dist/"]};function uus(){if(process.env.npm_config_user_agent)return pus(process.env.npm_config_user_agent)}function pus(t){let e=t.split(" ")[0],n=e.lastIndexOf("/"),s=e.substring(0,n);return{name:s==="npminstall"?"cnpm":s,version:e.substring(n+1)}}function vLs(){switch(uus()?.name){case"pnpm":return"pnpm create bati";case"yarn":return"yarn dlx @batijs/cli";case"bun":return"bun create bati";default:return"npm create bati --"}}function TLs(){let t=qTt.version.split("."),e=t[0],n=t[1],s=t.slice(2).join(".");return{version:qTt.version,semver:[e,n,s]}}var export_which=cus.default;export{svt as Readme,iLs as addDependency,Dls as addVitePlugin,oLs as appendToEnv,D8s as bgBlack,W8s as bgBlackBright,F8s as bgBlue,G8s as bgBlueBright,L8s as bgCyan,X8s as bgCyanBright,N8s as bgGreen,z8s as bgGreenBright,O8s as bgMagenta,H8s as bgMagentaBright,k8s as bgRed,Y8s as bgRedBright,R8s as bgWhite,Q8s as bgWhiteBright,I8s as bgYellow,K8s as bgYellowBright,T8s as black,M8s as blackBright,E8s as blue,q8s as blueBright,m8s as bold,Mie as builders,Uls as createColors,A8s as cyan,J8s as cyanBright,XWr as deepMergeObject,UTt as dim,Crt as formatCode,Gq as generateCode,vLs as getArgs,TLs as getVersion,w8s as gray,x8s as green,j8s as greenBright,b8s as hidden,y8s as inverse,Mls as isColorSupported,h8s as italic,r8s as loadAsJson,n8s as loadAsMagicast,ivt as loadFile,t8s as loadReadme,i8s as loadRelativeFileAsMagicast,s8s as loadYaml,C8s as magenta,V8s as magentaBright,NFs as markdown,uus as packageManager,RLe as parseModule,uJr as parseReadme,hLs as randomBytes,S8s as red,B8s as redBright,d8s as reset,sLs as setScripts,v8s as strikethrough,kts as transformAndFormat,g8s as underline,export_which as which,P8s as white,$8s as whiteBright,sYr as withIcon,iYr as yellow,U8s as yellowBright};
1090
1090
  /*! Bundled license information:
1091
1091
 
1092
1092
  uri-js/dist/es5/uri.all.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/core",
3
- "version": "0.0.262",
3
+ "version": "0.0.264",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -32,7 +32,7 @@
32
32
  "vue-eslint-parser": "^9.4.3",
33
33
  "which": "^4.0.0",
34
34
  "yaml": "^2.5.0",
35
- "@batijs/features": "0.0.262"
35
+ "@batijs/features": "0.0.264"
36
36
  },
37
37
  "exports": {
38
38
  ".": "./dist/index.js",