@junobuild/did-tools 0.1.0 → 0.1.2

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 David Dal Busco
3
+ Copyright (c) 2025 David Dal Busco
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -24,7 +24,7 @@ Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});j("YieldExpress
24
24
  `,E,v=!0,D=t.numbers=="binary",_=t.numbers=="octal",N=t.numbers=="decimal",M=t.numbers=="hexadecimal";if(s&&e&&l4(e.toJSON)&&(e=e.toJSON()),!a4(e)){if(u4(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+Cr(Array.from(e),t)+")");if(c4(e))return e.size==0?"new Set()":"new Set("+Cr(Array.from(e),t)+")";if(s4(e))return e.length==0?"Buffer.from([])":"Buffer.from("+Cr(Array.from(e),t)+")";if(i4(e))return E=[],t.wrap=!0,c&&(t.__inline1__=!1,t.__inline2__=!0),T||r(),r4(e,ee=>{v=!1,T&&(t.__inline2__=!1),E.push((a||T?"":l)+Cr(ee,t))}),v?"[]":T?"["+E.join(", ")+"]":"["+P+E.join(","+P)+P+(a?"":u)+"]";if(o4(e)){if(s)return JSON.stringify(e);if(N)return String(e);if(M){let ee=e.toString(16);return o||(ee=ee.toUpperCase()),"0x"+ee}if(D)return"0b"+e.toString(2);if(_)return"0o"+e.toString(8)}else return n4(e)?(E=[],t.wrap=!0,r(),hm(e,(ee,qe)=>{v=!1,E.push((a?"":l)+Cr(ee,t)+":"+(a?"":" ")+Cr(qe,t))}),v?"{}":"{"+P+E.join(","+P)+P+(a?"":u)+"}"):s?JSON.stringify(e)||"null":String(e)}let ne=e,ae=-1,xe=ne.length;for(E="";++ae<xe;){let ee=ne.charAt(ae);if(t.es6){let w=ne.charCodeAt(ae);if(w>=55296&&w<=56319&&xe>ae+1){let V=ne.charCodeAt(ae+1);if(V>=56320&&V<=57343){let me=((w-55296)*1024+V-56320+65536).toString(16);o||(me=me.toUpperCase()),E+="\\u{"+me+"}",++ae;continue}}}if(!t.escapeEverything){if(d4.test(ee)){E+=ee;continue}if(ee=='"'){E+=n==ee?'\\"':ee;continue}if(ee=="`"){E+=n==ee?"\\`":ee;continue}if(ee=="'"){E+=n==ee?"\\'":ee;continue}}if(ee=="\0"&&!s&&!h4.test(ne.charAt(ae+1))){E+="\\0";continue}if(f4.test(ee)){E+=p4[ee];continue}let qe=ee.charCodeAt(0);if(t.minimal&&qe!=8232&&qe!=8233){E+=ee;continue}let Ue=qe.toString(16);o||(Ue=Ue.toUpperCase());let Y=Ue.length>2||s,W="\\"+(Y?"u":"x")+("0000"+Ue).slice(Y?-4:-2);E+=W}return t.wrap&&(E=n+E+n),n=="`"&&(E=E.replace(/\$\{/g,"\\${")),t.isScriptContext?E.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,s?"\\u003C!--":"\\x3C!--"):E};Cr.version="2.5.2";dm.exports=Cr});var Du=A(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.ArgumentPlaceholder=g4;je.ArrayPattern=je.ArrayExpression=P4;je.BigIntLiteral=_4;je.BooleanLiteral=I4;je.DecimalLiteral=D4;je.Identifier=T4;je.NullLiteral=w4;je.NumericLiteral=O4;je.ObjectPattern=je.ObjectExpression=S4;je.ObjectMethod=x4;je.ObjectProperty=E4;je.PipelineBareFunction=M4;je.PipelinePrimaryTopicReference=B4;je.PipelineTopicExpression=L4;je.RecordExpression=A4;je.RegExpLiteral=C4;je.SpreadElement=je.RestElement=b4;je.StringLiteral=N4;je.TopicReference=k4;je.TupleExpression=v4;var m4=de(),Tm=mm(),{isAssignmentPattern:y4,isIdentifier:_u}=m4;function T4(e){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name),this.word(e.name)}function g4(){this.tokenChar(63)}function b4(e){this.token("..."),this.print(e.argument)}function S4(e){let t=e.properties;if(this.tokenChar(123),t.length){let r=this.enterForStatementInit(!1);this.space(),this.printList(t,{indent:!0,statement:!0}),this.space(),r()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}function x4(e){this.printJoin(e.decorators),this._methodHead(e),this.space(),this.print(e.body)}function E4(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(y4(e.value)&&_u(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}if(this.print(e.key),e.shorthand&&_u(e.key)&&_u(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)}function P4(e){let t=e.elements,r=t.length;this.tokenChar(91);let i=this.enterForStatementInit(!1);for(let s=0;s<t.length;s++){let n=t[s];n?(s>0&&this.space(),this.print(n),s<r-1&&this.tokenChar(44)):this.tokenChar(44)}i(),this.tokenChar(93)}function A4(e){let t=e.properties,r,i;if(this.format.recordAndTupleSyntaxType==="bar")r="{|",i="|}";else{if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",i="}"}this.token(r),t.length&&(this.space(),this.printList(t,{indent:!0,statement:!0}),this.space()),this.token(i)}function v4(e){let t=e.elements,r=t.length,i,s;if(this.format.recordAndTupleSyntaxType==="bar")i="[|",s="|]";else if(this.format.recordAndTupleSyntaxType==="hash")i="#[",s="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(i);for(let n=0;n<t.length;n++){let a=t[n];a&&(n>0&&this.space(),this.print(a),n<r-1&&this.tokenChar(44))}this.token(s)}function C4(e){this.word(`/${e.pattern}/${e.flags}`)}function I4(e){this.word(e.value?"true":"false")}function w4(){this.word("null")}function O4(e){let t=this.getPossibleRaw(e),r=this.format.jsescOption,i=e.value,s=i+"";r.numbers?this.number(Tm(i,r),i):t==null?this.number(s,i):this.format.minified?this.number(t.length<s.length?t:s,i):this.number(t,i)}function N4(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let r=Tm(e.value,this.format.jsescOption);this.token(r)}function _4(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"n")}function D4(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"m")}var ym=new Set(["^^","@@","^","%","#"]);function k4(){let{topicToken:e}=this.format;if(ym.has(e))this.token(e);else{let t=JSON.stringify(e),r=Array.from(ym,i=>JSON.stringify(i));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}}function L4(e){this.print(e.expression)}function M4(e){this.print(e.callee)}function B4(){this.tokenChar(35)}});var bm=A($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.AnyTypeAnnotation=U4;$.ArrayTypeAnnotation=V4;$.BooleanLiteralTypeAnnotation=W4;$.BooleanTypeAnnotation=K4;$.DeclareClass=X4;$.DeclareExportAllDeclaration=i6;$.DeclareExportDeclaration=r6;$.DeclareFunction=J4;$.DeclareInterface=G4;$.DeclareModule=z4;$.DeclareModuleExports=Q4;$.DeclareOpaqueType=e6;$.DeclareTypeAlias=Z4;$.DeclareVariable=t6;$.DeclaredPredicate=H4;$.EmptyTypeAnnotation=v6;$.EnumBooleanBody=n6;$.EnumBooleanMember=c6;$.EnumDeclaration=s6;$.EnumDefaultedMember=u6;$.EnumNumberBody=a6;$.EnumNumberMember=p6;$.EnumStringBody=o6;$.EnumStringMember=f6;$.EnumSymbolBody=l6;$.ExistsTypeAnnotation=d6;$.FunctionTypeAnnotation=m6;$.FunctionTypeParam=y6;$.IndexedAccessType=G6;$.InferredPredicate=$4;$.InterfaceDeclaration=S6;$.GenericTypeAnnotation=$.ClassImplements=$.InterfaceExtends=T6;$.InterfaceTypeAnnotation=E6;$.IntersectionTypeAnnotation=P6;$.MixedTypeAnnotation=A6;$.NullLiteralTypeAnnotation=Y4;$.NullableTypeAnnotation=C6;Object.defineProperty($,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return gm.NumericLiteral}});$.NumberTypeAnnotation=I6;$.ObjectTypeAnnotation=F6;$.ObjectTypeCallProperty=R6;$.ObjectTypeIndexer=q6;$.ObjectTypeInternalSlot=j6;$.ObjectTypeProperty=U6;$.ObjectTypeSpreadProperty=V6;$.OpaqueType=B6;$.OptionalIndexedAccessType=z6;$.QualifiedTypeIdentifier=K6;Object.defineProperty($,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return gm.StringLiteral}});$.StringTypeAnnotation=w6;$.SymbolTypeAnnotation=W6;$.ThisTypeAnnotation=O6;$.TupleTypeAnnotation=N6;$.TypeAlias=D6;$.TypeAnnotation=k6;$.TypeCastExpression=J6;$.TypeParameter=M6;$.TypeParameterDeclaration=$.TypeParameterInstantiation=L6;$.TypeofTypeAnnotation=_6;$.UnionTypeAnnotation=X6;$.Variance=$6;$.VoidTypeAnnotation=H6;$._interfaceish=g6;$._variance=b6;var F4=de(),j4=Nu(),R4=Ar(),gm=Du(),{isDeclareExportDeclaration:kn,isStatement:q4}=F4;function U4(){this.word("any")}function V4(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function K4(){this.word("boolean")}function W4(e){this.word(e.value?"true":"false")}function Y4(){this.word("null")}function X4(e,t){kn(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(e)}function J4(e,t){kn(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()}function $4(){this.tokenChar(37),this.word("checks")}function H4(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)}function G4(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)}function z4(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)}function Q4(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)}function Z4(e){this.word("declare"),this.space(),this.TypeAlias(e)}function e6(e,t){kn(t)||(this.word("declare"),this.space()),this.OpaqueType(e)}function t6(e,t){kn(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()}function r6(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),h6.call(this,e)}function i6(e){this.word("declare"),this.space(),j4.ExportAllDeclaration.call(this,e)}function s6(e){let{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t),this.print(r)}function Ln(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function Mn(e,t){let{members:r}=t;e.token("{"),e.indent(),e.newline();for(let i of r)e.print(i),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function n6(e){let{explicitType:t}=e;Ln(this,"boolean",t),Mn(this,e)}function a6(e){let{explicitType:t}=e;Ln(this,"number",t),Mn(this,e)}function o6(e){let{explicitType:t}=e;Ln(this,"string",t),Mn(this,e)}function l6(e){Ln(this,"symbol",!0),Mn(this,e)}function u6(e){let{id:t}=e;this.print(t),this.tokenChar(44)}function ku(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function c6(e){ku(this,e)}function p6(e){ku(this,e)}function f6(e){ku(this,e)}function h6(e){if(e.declaration){let t=e.declaration;this.print(t),q4(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function d6(){this.tokenChar(42)}function m6(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);let r=t?.type;r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)}function y6(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)}function T6(e){this.print(e.id),this.print(e.typeParameters,!0)}function g6(e){var t;if(this.print(e.id),this.print(e.typeParameters),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),e.type==="DeclareClass"){var r,i;(r=e.mixins)!=null&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),(i=e.implements)!=null&&i.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements))}this.space(),this.print(e.body)}function b6(e){var t;let r=(t=e.variance)==null?void 0:t.kind;r!=null&&(r==="plus"?this.tokenChar(43):r==="minus"&&this.tokenChar(45))}function S6(e){this.word("interface"),this.space(),this._interfaceish(e)}function x6(){this.space(),this.tokenChar(38),this.space()}function E6(e){var t;this.word("interface"),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body)}function P6(e){this.printJoin(e.types,{separator:x6})}function A6(){this.word("mixed")}function v6(){this.word("empty")}function C6(e){this.tokenChar(63),this.print(e.typeAnnotation)}function I6(){this.word("number")}function w6(){this.word("string")}function O6(){this.word("this")}function N6(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)}function _6(e){this.word("typeof"),this.space(),this.print(e.argument)}function D6(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()}function k6(e,t){this.tokenChar(58),this.space(),t.type==="ArrowFunctionExpression"?this.tokenContext|=R4.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)}function L6(e){this.tokenChar(60),this.printList(e.params,{}),this.tokenChar(62)}function M6(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))}function B6(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()}function F6(e){e.exact?this.token("{|"):this.tokenChar(123);let t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,{addNewlines(r){if(r&&!t[0])return 1},indent:!0,statement:!0,iterator:()=>{(t.length!==1||e.inexact)&&(this.tokenChar(44),this.space())}}),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)}function j6(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)}function R6(e){e.static&&(this.word("static"),this.space()),this.print(e.value)}function q6(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)}function U6(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),(e.kind==="get"||e.kind==="set")&&(this.word(e.kind),this.space()),this._variance(e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)}function V6(e){this.token("..."),this.print(e.argument)}function K6(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)}function W6(){this.word("symbol")}function Y6(){this.space(),this.tokenChar(124),this.space()}function X6(e){this.printJoin(e.types,{separator:Y6})}function J6(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)}function $6(e){e.kind==="plus"?this.tokenChar(43):this.tokenChar(45)}function H6(){this.word("void")}function G6(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function z6(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}});var Sm=A(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.BlockStatement=e8;cr.Directive=t8;cr.DirectiveLiteral=s8;cr.File=Q6;cr.InterpreterDirective=n8;cr.Placeholder=a8;cr.Program=Z6;function Q6(e){e.program&&this.print(e.program.interpreter),this.print(e.program)}function Z6(e){var t;this.noIndentInnerCommentsHere(),this.printInnerComments();let r=(t=e.directives)==null?void 0:t.length;if(r){var i;let s=e.body.length?2:1;this.printSequence(e.directives,{trailingCommentsLineOffset:s}),(i=e.directives[r-1].trailingComments)!=null&&i.length||this.newline(s)}this.printSequence(e.body)}function e8(e){var t;this.tokenChar(123);let r=(t=e.directives)==null?void 0:t.length;if(r){var i;let n=e.body.length?2:1;this.printSequence(e.directives,{indent:!0,trailingCommentsLineOffset:n}),(i=e.directives[r-1].trailingComments)!=null&&i.length||this.newline(n)}let s=this.enterForStatementInit(!1);this.printSequence(e.body,{indent:!0}),s(),this.rightBrace(e)}function t8(e){this.print(e.value),this.semicolon()}var r8=/(?:^|[^\\])(?:\\\\)*'/,i8=/(?:^|[^\\])(?:\\\\)*"/;function s8(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let{value:r}=e;if(!i8.test(r))this.token(`"${r}"`);else if(!r8.test(r))this.token(`'${r}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function n8(e){this.token(`#!${e.value}`),this.newline(1,!0)}function a8(e){this.token("%%"),this.print(e.name),this.token("%%"),e.expectedNode==="Statement"&&this.semicolon()}});var xm=A(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.JSXAttribute=o8;tt.JSXClosingElement=g8;tt.JSXClosingFragment=E8;tt.JSXElement=m8;tt.JSXEmptyExpression=b8;tt.JSXExpressionContainer=f8;tt.JSXFragment=S8;tt.JSXIdentifier=l8;tt.JSXMemberExpression=c8;tt.JSXNamespacedName=u8;tt.JSXOpeningElement=T8;tt.JSXOpeningFragment=x8;tt.JSXSpreadAttribute=p8;tt.JSXSpreadChild=h8;tt.JSXText=d8;function o8(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))}function l8(e){this.word(e.name)}function u8(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)}function c8(e){this.print(e.object),this.tokenChar(46),this.print(e.property)}function p8(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)}function f8(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)}function h8(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)}function d8(e){let t=this.getPossibleRaw(e);t!==void 0?this.token(t,!0):this.token(e.value,!0)}function m8(e){let t=e.openingElement;if(this.print(t),!t.selfClosing){this.indent();for(let r of e.children)this.print(r);this.dedent(),this.print(e.closingElement)}}function y8(){this.space()}function T8(e){this.tokenChar(60),this.print(e.name),this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,{separator:y8})),e.selfClosing?(this.space(),this.token("/>")):this.tokenChar(62)}function g8(e){this.token("</"),this.print(e.name),this.tokenChar(62)}function b8(){this.printInnerComments()}function S8(e){this.print(e.openingFragment),this.indent();for(let t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment)}function x8(){this.tokenChar(60),this.tokenChar(62)}function E8(){this.token("</"),this.tokenChar(62)}});var Am=A(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.TSAnyKeyword=B8;X.TSArrayType=s9;X.TSSatisfiesExpression=X.TSAsExpression=E9;X.TSBigIntKeyword=F8;X.TSBooleanKeyword=U8;X.TSCallSignatureDeclaration=N8;X.TSConditionalType=p9;X.TSConstructSignatureDeclaration=_8;X.TSConstructorType=z8;X.TSDeclareFunction=I8;X.TSDeclareMethod=w8;X.TSEnumDeclaration=v9;X.TSEnumMember=C9;X.TSExportAssignment=k9;X.TSExpressionWithTypeArguments=g9;X.TSExternalModuleReference=_9;X.TSFunctionType=G8;X.TSImportEqualsDeclaration=N9;X.TSImportType=O9;X.TSIndexSignature=M8;X.TSIndexedAccessType=m9;X.TSInferType=f9;X.TSInstantiationExpression=A9;X.TSInterfaceBody=S9;X.TSInterfaceDeclaration=b9;X.TSIntersectionType=c9;X.TSIntrinsicKeyword=$8;X.TSLiteralType=T9;X.TSMappedType=y9;X.TSMethodSignature=L8;X.TSModuleBlock=w9;X.TSModuleDeclaration=I9;X.TSNamedTupleMember=l9;X.TSNamespaceExportDeclaration=L9;X.TSNeverKeyword=J8;X.TSNonNullExpression=D9;X.TSNullKeyword=X8;X.TSNumberKeyword=R8;X.TSObjectKeyword=q8;X.TSOptionalType=a9;X.TSParameterProperty=C8;X.TSParenthesizedType=h9;X.TSPropertySignature=D8;X.TSQualifiedName=O8;X.TSRestType=o9;X.TSStringKeyword=V8;X.TSSymbolKeyword=K8;X.TSThisType=H8;X.TSTupleType=n9;X.TSTypeAliasDeclaration=x9;X.TSTypeAnnotation=P8;X.TSTypeAssertion=P9;X.TSTypeLiteral=r9;X.TSTypeOperator=d9;X.TSTypeParameter=v8;X.TSTypeParameterDeclaration=X.TSTypeParameterInstantiation=A8;X.TSTypePredicate=e9;X.TSTypeQuery=t9;X.TSTypeReference=Z8;X.TSUndefinedKeyword=Y8;X.TSUnionType=u9;X.TSUnknownKeyword=j8;X.TSVoidKeyword=W8;X.tsPrintClassMemberModifiers=B9;X.tsPrintFunctionOrConstructorType=Q8;X.tsPrintPropertyOrMethodName=k8;X.tsPrintSignatureDeclarationBase=M9;X.tsPrintTypeLiteralOrInterfaceBody=i9;function P8(e){this.tokenChar(58),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)}function A8(e,t){this.tokenChar(60),this.printList(e.params,{}),t.type==="ArrowFunctionExpression"&&e.params.length===1&&this.tokenChar(44),this.tokenChar(62)}function v8(e){e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))}function C8(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)}function I8(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.semicolon()}function w8(e){this._classMethodHead(e),this.semicolon()}function O8(e){this.print(e.left),this.tokenChar(46),this.print(e.right)}function N8(e){this.tsPrintSignatureDeclarationBase(e),this.semicolon()}function _8(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),this.semicolon()}function D8(e){let{readonly:t}=e;t&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation),this.semicolon()}function k8(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)}function L8(e){let{kind:t}=e;(t==="set"||t==="get")&&(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),this.semicolon()}function M8(e){let{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(e.parameters),this.tokenChar(93),this.print(e.typeAnnotation),this.semicolon()}function B8(){this.word("any")}function F8(){this.word("bigint")}function j8(){this.word("unknown")}function R8(){this.word("number")}function q8(){this.word("object")}function U8(){this.word("boolean")}function V8(){this.word("string")}function K8(){this.word("symbol")}function W8(){this.word("void")}function Y8(){this.word("undefined")}function X8(){this.word("null")}function J8(){this.word("never")}function $8(){this.word("intrinsic")}function H8(){this.word("this")}function G8(e){this.tsPrintFunctionOrConstructorType(e)}function z8(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)}function Q8(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),this._parameters(r),this.tokenChar(41),this.space(),this.token("=>"),this.space();let i=e.typeAnnotation;this.print(i.typeAnnotation)}function Z8(e){this.print(e.typeName,!0),this.print(e.typeParameters,!0)}function e9(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))}function t9(e){this.word("typeof"),this.space(),this.print(e.exprName),e.typeParameters&&this.print(e.typeParameters)}function r9(e){this.tsPrintTypeLiteralOrInterfaceBody(e.members,e)}function i9(e,t){Lu(this,e,t)}function Lu(e,t,r){if(e.token("{"),t.length){e.indent(),e.newline();for(let i of t)e.print(i),e.newline();e.dedent()}e.rightBrace(r)}function s9(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function n9(e){this.tokenChar(91),this.printList(e.elementTypes),this.tokenChar(93)}function a9(e){this.print(e.typeAnnotation),this.tokenChar(63)}function o9(e){this.token("..."),this.print(e.typeAnnotation)}function l9(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)}function u9(e){Pm(this,e,"|")}function c9(e){Pm(this,e,"&")}function Pm(e,t,r){e.printJoin(t.types,{separator(){this.space(),this.token(r),this.space()}})}function p9(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)}function f9(e){this.token("infer"),this.space(),this.print(e.typeParameter)}function h9(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)}function d9(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)}function m9(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function y9(e){let{nameType:t,optional:r,readonly:i,typeAnnotation:s}=e;this.tokenChar(123),this.space(),i&&(Em(this,i),this.word("readonly"),this.space()),this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint),t&&(this.space(),this.word("as"),this.space(),this.print(t)),this.tokenChar(93),r&&(Em(this,r),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s)),this.space(),this.tokenChar(125)}function Em(e,t){t!==!0&&e.token(t)}function T9(e){this.print(e.literal)}function g9(e){this.print(e.expression),this.print(e.typeParameters)}function b9(e){let{declare:t,id:r,typeParameters:i,extends:s,body:n}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r),this.print(i),s!=null&&s.length&&(this.space(),this.word("extends"),this.space(),this.printList(s)),this.space(),this.print(n)}function S9(e){this.tsPrintTypeLiteralOrInterfaceBody(e.body,e)}function x9(e){let{declare:t,id:r,typeParameters:i,typeAnnotation:s}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r),this.print(i),this.space(),this.tokenChar(61),this.space(),this.print(s),this.semicolon()}function E9(e){var t;let{type:r,expression:i,typeAnnotation:s}=e,n=(t=i.trailingComments)==null?void 0:t.some(a=>a.type==="CommentLine"||/[\r\n\u2028\u2029]/.test(a.value));this.print(i,!0,void 0,n),this.space(),this.word(r==="TSAsExpression"?"as":"satisfies"),this.space(),this.print(s)}function P9(e){let{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(r)}function A9(e){this.print(e.expression),this.print(e.typeParameters)}function v9(e){let{declare:t,const:r,id:i,members:s}=e;t&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(i),this.space(),Lu(this,s,e)}function C9(e){let{id:t,initializer:r}=e;this.print(t),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r)),this.tokenChar(44)}function I9(e){let{declare:t,id:r}=e;if(t&&(this.word("declare"),this.space()),e.global||(this.word(r.type==="Identifier"?"namespace":"module"),this.space()),this.print(r),!e.body){this.semicolon();return}let i=e.body;for(;i.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(i.id),i=i.body;this.space(),this.print(i)}function w9(e){Lu(this,e.body,e)}function O9(e){let{argument:t,qualifier:r,typeParameters:i}=e;this.word("import"),this.tokenChar(40),this.print(t),this.tokenChar(41),r&&(this.tokenChar(46),this.print(r)),i&&this.print(i)}function N9(e){let{isExport:t,id:r,moduleReference:i}=e;t&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(r),this.space(),this.tokenChar(61),this.space(),this.print(i),this.semicolon()}function _9(e){this.token("require("),this.print(e.expression),this.tokenChar(41)}function D9(e){this.print(e.expression),this.tokenChar(33)}function k9(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()}function L9(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()}function M9(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),this._parameters(r),this.tokenChar(41);let i=e.typeAnnotation;this.print(i)}function B9(e){let t=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";t&&e.declare&&(this.word("declare"),this.space()),e.accessibility&&(this.word(e.accessibility),this.space()),e.static&&(this.word("static"),this.space()),e.override&&(this.word("override"),this.space()),e.abstract&&(this.word("abstract"),this.space()),t&&e.readonly&&(this.word("readonly"),this.space())}});var vm=A(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});var Mu=em();Object.keys(Mu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Mu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Mu[e]}})});var Bu=rm();Object.keys(Bu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Bu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Bu[e]}})});var Fu=am();Object.keys(Fu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Fu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Fu[e]}})});var ju=om();Object.keys(ju).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===ju[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return ju[e]}})});var Ru=lm();Object.keys(Ru).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Ru[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Ru[e]}})});var qu=Nu();Object.keys(qu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===qu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return qu[e]}})});var Uu=Du();Object.keys(Uu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Uu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Uu[e]}})});var Vu=bm();Object.keys(Vu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Vu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Vu[e]}})});var Ku=Sm();Object.keys(Ku).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Ku[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Ku[e]}})});var Wu=xm();Object.keys(Wu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Wu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Wu[e]}})});var Yu=Am();Object.keys(Yu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Yu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Yu[e]}})})});var Im=A(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.default=void 0;var F9=Fd(),j9=Ar(),R9=de(),q9=vm(),{isFunction:U9,isStatement:V9,isClassBody:K9,isTSInterfaceBody:W9,isTSEnumDeclaration:Y9}=R9,X9=/e/i,J9=/\.0+$/,Cm=/[\n\r\u2028\u2029]/,$9=/[\n\r\u2028\u2029]|\*\//,{needsParens:H9}=j9,hs=class{constructor(t,r){this.inForStatementInit=!1,this.tokenContext=0,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.format=t,this._indentRepeat=t.indent.style.length,this._inputMap=r?._inputMap,this._buf=new F9.default(r,t.indent.style[0])}enterForStatementInit(t){let r=this.inForStatementInit;return r===t?()=>{}:(this.inForStatementInit=t,()=>{this.inForStatementInit=r})}generate(t){return this.print(t),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++}dedent(){this.format.compact||this.format.concise||this._indent--}semicolon(t=!1){this._maybeAddAuxComment(),t?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(t){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",t.loc,-1),this.tokenChar(125)}rightParens(t){this.sourceWithOffset("end",t.loc,-1),this.tokenChar(41)}space(t=!1){if(!this.format.compact){if(t)this._space();else if(this._buf.hasContent()){let r=this.getLastChar();r!==32&&r!==10&&this._space()}}}word(t,r=!1){this.tokenContext=0,this._maybePrintInnerComments(),(this._endsWithWord||this._endsWithDiv&&t.charCodeAt(0)===47)&&this._space(),this._maybeAddAuxComment(),this._append(t,!1),this._endsWithWord=!0,this._noLineTerminator=r}number(t,r){function i(s){if(s.length>2&&s.charCodeAt(0)===48){let n=s.charCodeAt(1);return n===98||n===111||n===120}return!1}this.word(t),this._endsWithInteger=Number.isInteger(r)&&!i(t)&&!X9.test(t)&&!J9.test(t)&&t.charCodeAt(t.length-1)!==46}token(t,r=!1){this.tokenContext=0,this._maybePrintInnerComments();let i=this.getLastChar(),s=t.charCodeAt(0);(i===33&&(t==="--"||s===61)||s===43&&i===43||s===45&&i===45||s===46&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(t,r),this._noLineTerminator=!1}tokenChar(t){this.tokenContext=0,this._maybePrintInnerComments();let r=this.getLastChar();(t===43&&r===43||t===45&&r===45||t===46&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._appendChar(t),this._noLineTerminator=!1}newline(t=1,r){if(!(t<=0)){if(!r){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}t>2&&(t=2),t-=this._buf.getNewlineCount();for(let i=0;i<t;i++)this._newline()}}endsWith(t){return this.getLastChar()===t}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(t,r){if(!t){r();return}this._catchUp("start",t),this._buf.exactSource(t,r)}source(t,r){r&&(this._catchUp(t,r),this._buf.source(t,r))}sourceWithOffset(t,r,i){r&&(this._catchUp(t,r),this._buf.sourceWithOffset(t,r,i))}sourceIdentifierName(t,r){if(!this._buf._canMarkIdName)return;let i=this._buf._sourcePosition;i.identifierNamePos=r,i.identifierName=t}_space(){this._queue(32)}_newline(){this._queue(10)}_append(t,r){this._maybeAddParen(t),this._maybeIndent(t.charCodeAt(0)),this._buf.append(t,r),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(t){this._maybeAddParenChar(t),this._maybeIndent(t),this._buf.appendChar(t),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(t){this._maybeAddParenChar(t),this._maybeIndent(t),this._buf.queue(t),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(t){this._indent&&t!==10&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(t){if(this._indent&&t!==10&&this.endsWith(10))return!0}_maybeAddParenChar(t){let r=this._parenPushNewlineState;if(r&&t!==32){if(t!==10){this._parenPushNewlineState=null;return}this.tokenChar(40),this.indent(),r.printed=!0}}_maybeAddParen(t){let r=this._parenPushNewlineState;if(!r)return;let i=t.length,s;for(s=0;s<i&&t.charCodeAt(s)===32;s++);if(s===i)return;let n=t.charCodeAt(s);if(n!==10){if(n!==47||s+1===i){this._parenPushNewlineState=null;return}let a=t.charCodeAt(s+1);if(a===42)return;if(a!==47){this._parenPushNewlineState=null;return}}this.tokenChar(40),this.indent(),r.printed=!0}catchUp(t){if(!this.format.retainLines)return;let r=t-this._buf.getCurrentLine();for(let i=0;i<r;i++)this._newline()}_catchUp(t,r){var i;if(!this.format.retainLines)return;let s=r==null||(i=r[t])==null?void 0:i.line;if(s!=null){let n=s-this._buf.getCurrentLine();for(let a=0;a<n;a++)this._newline()}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(t,r){if(r)this._noLineTerminator=!0,this.print(t);else{let i={printed:!1};this._parenPushNewlineState=i,this.print(t),i.printed&&(this.dedent(),this.newline(),this.tokenChar(41))}}print(t,r,i,s){var n,a;if(!t)return;this._endsWithInnerRaw=!1;let o=t.type,l=this.format,u=l.concise;t._compact&&(l.concise=!0);let c=this[o];if(c===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(o)} with constructor ${JSON.stringify(t.constructor.name)}`);let T=this._currentNode;this._currentNode=t;let P=this._insideAux;this._insideAux=t.loc==null,this._maybeAddAuxComment(this._insideAux&&!P);let E=(n=t.extra)==null?void 0:n.parenthesized,v=s||E&&l.retainFunctionParens&&o==="FunctionExpression"||H9(t,T,this.tokenContext,this.inForStatementInit);if(!v&&E&&(a=t.leadingComments)!=null&&a.length&&t.leadingComments[0].type==="CommentBlock")switch(T?.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(T.callee!==t)break;default:v=!0}let D;v&&(this.tokenChar(40),this._endsWithInnerRaw=!1,D=this.enterForStatementInit(!1)),this._lastCommentLine=0,this._printLeadingComments(t,T);let _=o==="Program"||o==="File"?null:t.loc;this.exactSource(_,c.bind(this,t,T)),v?(this._printTrailingComments(t,T),this.tokenChar(41),this._noLineTerminator=r,D()):r&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(t,T)):this._printTrailingComments(t,T,i),this._currentNode=T,l.concise=u,this._insideAux=P,this._endsWithInnerRaw=!1}_maybeAddAuxComment(t){t&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let t=this.format.auxiliaryCommentBefore;t&&this._printComment({type:"CommentBlock",value:t},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let t=this.format.auxiliaryCommentAfter;t&&this._printComment({type:"CommentBlock",value:t},0)}getPossibleRaw(t){let r=t.extra;if(r?.raw!=null&&r.rawValue!=null&&t.value===r.rawValue)return r.raw}printJoin(t,r={}){if(!(t!=null&&t.length))return;let{indent:i}=r;if(i==null&&this.format.retainLines){var s;let c=(s=t[0].loc)==null?void 0:s.start.line;c!=null&&c!==this._buf.getCurrentLine()&&(i=!0)}i&&this.indent();let n={addNewlines:r.addNewlines,nextNodeStartLine:0},a=r.separator?r.separator.bind(this):null,o=t.length;for(let c=0;c<o;c++){let T=t[c];if(T&&(r.statement&&this._printNewline(c===0,n),this.print(T,void 0,r.trailingCommentsLineOffset||0),r.iterator==null||r.iterator(T,c),c<o-1&&a?.(),r.statement)){var l;if((l=T.trailingComments)!=null&&l.length||(this._lastCommentLine=0),c+1===o)this.newline(1);else{var u;let P=t[c+1];n.nextNodeStartLine=((u=P.loc)==null?void 0:u.start.line)||0,this._printNewline(!0,n)}}}i&&this.dedent()}printAndIndentOnComments(t){let r=t.leadingComments&&t.leadingComments.length>0;r&&this.indent(),this.print(t),r&&this.dedent()}printBlock(t){let r=t.body;r.type!=="EmptyStatement"&&this.space(),this.print(r)}_printTrailingComments(t,r,i){let{innerComments:s,trailingComments:n}=t;s!=null&&s.length&&this._printComments(2,s,t,r,i),n!=null&&n.length&&this._printComments(2,n,t,r,i)}_printLeadingComments(t,r){let i=t.leadingComments;i!=null&&i.length&&this._printComments(0,i,t,r)}_maybePrintInnerComments(){this._endsWithInnerRaw&&this.printInnerComments(),this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(){let t=this._currentNode,r=t.innerComments;if(!(r!=null&&r.length))return;let i=this.endsWith(32),s=this._indentInnerComments,n=this._printedComments.size;s&&this.indent(),this._printComments(1,r,t),i&&n!==this._printedComments.size&&this.space(),s&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(t,r={}){var i;r.statement=!0,(i=r.indent)!=null||(r.indent=!1),this.printJoin(t,r)}printList(t,r={}){r.separator==null&&(r.separator=G9),this.printJoin(t,r)}_printNewline(t,r){let i=this.format;if(i.retainLines||i.compact)return;if(i.concise){this.space();return}if(!t)return;let s=r.nextNodeStartLine,n=this._lastCommentLine;if(s>0&&n>0){let a=s-n;if(a>=0){this.newline(a||1);return}}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(t){return t.ignore||this._printedComments.has(t)?0:this._noLineTerminator&&$9.test(t.value)?2:(this._printedComments.add(t),this.format.shouldPrintComment(t.value)?1:0)}_printComment(t,r){let i=this._noLineTerminator,s=t.type==="CommentBlock",n=s&&r!==1&&!this._noLineTerminator;n&&this._buf.hasContent()&&r!==2&&this.newline(1);let a=this.getLastChar();a!==91&&a!==123&&a!==40&&this.space();let o;if(s){let{_parenPushNewlineState:u}=this;if(u?.printed===!1&&Cm.test(t.value)&&(this.tokenChar(40),this.indent(),u.printed=!0),o=`/*${t.value}*/`,this.format.indent.adjustMultilineComment){var l;let c=(l=t.loc)==null?void 0:l.start.column;if(c){let T=new RegExp("\\n\\s{1,"+c+"}","g");o=o.replace(T,`
25
25
  `)}if(this.format.concise)o=o.replace(/\n(?!$)/g,`
26
26
  `);else{let T=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(T+=this._getIndent()),o=o.replace(/\n(?!$)/g,`
27
- ${" ".repeat(T)}`)}}}else i?o=`/*${t.value}*/`:o=`//${t.value}`;this._endsWithDiv&&this._space(),this.source("start",t.loc),this._append(o,s),!s&&!i&&this.newline(1,!0),n&&r!==3&&this.newline(1)}_printComments(t,r,i,s,n=0){let a=i.loc,o=r.length,l=!!a,u=l?a.start.line:0,c=l?a.end.line:0,T=0,P=0,E=this._noLineTerminator?function(){}:this.newline.bind(this);for(let v=0;v<o;v++){let D=r[v],_=this._shouldPrintComment(D);if(_===2){l=!1;break}if(l&&D.loc&&_===1){let N=D.loc.start.line,M=D.loc.end.line;if(t===0){let ne=0;v===0?this._buf.hasContent()&&(D.type==="CommentLine"||N!==M)&&(ne=P=1):ne=N-T,T=M,E(ne),this._printComment(D,1),v+1===o&&(E(Math.max(u-T,P)),T=u)}else if(t===1){let ne=N-(v===0?u:T);T=M,E(ne),this._printComment(D,1),v+1===o&&(E(Math.min(1,c-T)),T=c)}else{let ne=N-(v===0?c-n:T);T=M,E(ne),this._printComment(D,1)}}else{if(l=!1,_!==1)continue;if(o===1){let N=D.loc?D.loc.start.line===D.loc.end.line:!Cm.test(D.value),M=N&&!V9(i)&&!K9(s)&&!W9(s)&&!Y9(s);t===0?this._printComment(D,M&&i.type!=="ObjectExpression"||N&&U9(s,{body:i})?1:0):M&&t===2?this._printComment(D,1):this._printComment(D,0)}else t===1&&!(i.type==="ObjectExpression"&&i.properties.length>1)&&i.type!=="ClassBody"&&i.type!=="TSInterfaceBody"?this._printComment(D,v===0?2:v===o-1?3:0):this._printComment(D,0)}}t===2&&l&&T&&(this._lastCommentLine=T)}};Object.assign(hs.prototype,q9);hs.prototype.Noop=function(){};var SG=Bn.default=hs;function G9(){this.tokenChar(44),this.space()}});var _m=A(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.default=z9;var wm=Bd(),Om=Im();function Nm(e,t){let r={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};{var i;r.decoratorsBeforeExport=t.decoratorsBeforeExport,r.jsescOption.json=t.jsonCompatibleStrings,r.recordAndTupleSyntaxType=(i=t.recordAndTupleSyntaxType)!=null?i:"hash"}r.minified?(r.compact=!0,r.shouldPrintComment=r.shouldPrintComment||(()=>r.comments)):r.shouldPrintComment=r.shouldPrintComment||(o=>r.comments||o.includes("@license")||o.includes("@preserve")),r.compact==="auto"&&(r.compact=typeof e=="string"&&e.length>5e5,r.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),r.compact&&(r.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:s,auxiliaryCommentAfter:n,shouldPrintComment:a}=r;return s&&!a(s)&&(r.auxiliaryCommentBefore=void 0),n&&!a(n)&&(r.auxiliaryCommentAfter=void 0),r}Fn.CodeGenerator=class{constructor(t,r={},i){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=Nm(i,r),this._map=r.sourceMaps?new wm.default(r,i):null}generate(){return new Om.default(this._format,this._map).generate(this._ast)}};function z9(e,t={},r){let i=Nm(r,t),s=t.sourceMaps?new wm.default(t,r):null;return new Om.default(i,s).generate(e)}});var Dm=A(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.find=t7;Dt.findParent=e7;Dt.getAncestry=a7;Dt.getDeepestCommonAncestorFrom=n7;Dt.getEarliestCommonAncestorFrom=s7;Dt.getFunctionParent=r7;Dt.getStatementParent=i7;Dt.inType=u7;Dt.isAncestor=o7;Dt.isDescendant=l7;var Q9=de(),{VISITOR_KEYS:Z9}=Q9;function e7(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null}function t7(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null}function r7(){return this.findParent(e=>e.isFunction())}function i7(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e}function s7(e){return this.getDeepestCommonAncestorFrom(e,function(t,r,i){let s,n=Z9[t.type];for(let a of i){let o=a[r+1];if(!s){s=o;continue}if(o.listKey&&s.listKey===o.listKey&&o.key<s.key){s=o;continue}let l=n.indexOf(s.parentKey),u=n.indexOf(o.parentKey);l>u&&(s=o)}return s})}function n7(e,t){if(!e.length)return this;if(e.length===1)return e[0];let r=1/0,i,s,n=e.map(o=>{let l=[];do l.unshift(o);while((o=o.parentPath)&&o!==this);return l.length<r&&(r=l.length),l}),a=n[0];e:for(let o=0;o<r;o++){let l=a[o];for(let u of n)if(u[o]!==l)break e;i=o,s=l}if(s)return t?t(s,i,n):s;throw new Error("Couldn't find intersection")}function a7(){let e=this,t=[];do t.push(e);while(e=e.parentPath);return t}function o7(e){return e.isDescendant(this)}function l7(e){return!!this.findParent(t=>t===e)}function u7(...e){let t=this;for(;t;){for(let r of e)if(t.node.type===r)return!0;t=t.parentPath}return!1}});var Ju=A(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.createUnionType=d7;var c7=de(),{createFlowUnionType:km,createTSUnionType:Lm,createUnionTypeAnnotation:p7,isFlowType:f7,isTSType:h7}=c7;function d7(e){{if(e.every(t=>f7(t)))return km?km(e):p7(e);if(e.every(t=>h7(t))&&Lm)return Lm(e)}}});var Rm=A($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.default=b7;var m7=de(),Bm=Ju(),{BOOLEAN_NUMBER_BINARY_OPERATORS:y7,createTypeAnnotationBasedOnTypeof:T7,numberTypeAnnotation:Fm,voidTypeAnnotation:g7}=m7;function b7(e){if(!this.isReferenced())return;let t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:S7(t,this,e.name);if(e.name==="undefined")return g7();if(e.name==="NaN"||e.name==="Infinity")return Fm();e.name}function S7(e,t,r){let i=[],s=[],n=Mm(e,t,s),a=jm(e,t,r);if(a){let o=Mm(e,a.ifStatement);n=n.filter(l=>!o.includes(l)),i.push(a.typeAnnotation)}if(n.length){n.push(...s);for(let o of n)i.push(o.getTypeAnnotation())}if(i.length)return(0,Bm.createUnionType)(i)}function Mm(e,t,r){let i=e.constantViolations.slice();return i.unshift(e.path),i.filter(s=>{s=s.resolve();let n=s._guessExecutionStatusRelativeTo(t);return r&&n==="unknown"&&r.push(s),n==="before"})}function x7(e,t){let r=t.node.operator,i=t.get("right").resolve(),s=t.get("left").resolve(),n;if(s.isIdentifier({name:e})?n=i:i.isIdentifier({name:e})&&(n=s),n)return r==="==="?n.getTypeAnnotation():y7.includes(r)?Fm():void 0;if(r!=="==="&&r!=="==")return;let a,o;if(s.isUnaryExpression({operator:"typeof"})?(a=s,o=i):i.isUnaryExpression({operator:"typeof"})&&(a=i,o=s),!a||!a.get("argument").isIdentifier({name:e})||(o=o.resolve(),!o.isLiteral()))return;let l=o.node.value;if(typeof l=="string")return T7(l)}function E7(e,t,r){let i;for(;i=t.parentPath;){if(i.isIfStatement()||i.isConditionalExpression())return t.key==="test"?void 0:i;if(i.isFunction()&&i.parentPath.scope.getBinding(r)!==e)return;t=i}}function jm(e,t,r){let i=E7(e,t,r);if(!i)return;let n=[i.get("test")],a=[];for(let o=0;o<n.length;o++){let l=n[o];if(l.isLogicalExpression())l.node.operator==="&&"&&(n.push(l.get("left")),n.push(l.get("right")));else if(l.isBinaryExpression()){let u=x7(r,l);u&&a.push(u)}}return a.length?{typeAnnotation:(0,Bm.createUnionType)(a),ifStatement:i}:jm(e,i,r)}});var Jm=A(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.ArrayExpression=Wm;Ne.AssignmentExpression=Y7;Ne.BinaryExpression=q7;Ne.BooleanLiteral=H7;Ne.CallExpression=sq;Ne.ConditionalExpression=V7;Ne.ClassDeclaration=Ne.ClassExpression=Ne.FunctionDeclaration=Ne.ArrowFunctionExpression=Ne.FunctionExpression=Z7;Object.defineProperty(Ne,"Identifier",{enumerable:!0,get:function(){return A7.default}});Ne.LogicalExpression=U7;Ne.NewExpression=F7;Ne.NullLiteral=G7;Ne.NumericLiteral=$7;Ne.ObjectExpression=Q7;Ne.ParenthesizedExpression=W7;Ne.RegExpLiteral=z7;Ne.RestElement=Ym;Ne.SequenceExpression=K7;Ne.StringLiteral=J7;Ne.TSAsExpression=Km;Ne.TSNonNullExpression=B7;Ne.TaggedTemplateExpression=nq;Ne.TemplateLiteral=j7;Ne.TypeCastExpression=Vm;Ne.UnaryExpression=R7;Ne.UpdateExpression=X7;Ne.VariableDeclarator=M7;var P7=de(),A7=Rm(),Um=Ju(),{BOOLEAN_BINARY_OPERATORS:v7,BOOLEAN_UNARY_OPERATORS:C7,NUMBER_BINARY_OPERATORS:I7,NUMBER_UNARY_OPERATORS:w7,STRING_UNARY_OPERATORS:O7,anyTypeAnnotation:qm,arrayTypeAnnotation:Hu,booleanTypeAnnotation:Gu,buildMatchMemberExpression:jn,genericTypeAnnotation:Ir,identifier:Hr,nullLiteralTypeAnnotation:N7,numberTypeAnnotation:gi,stringTypeAnnotation:Gr,tupleTypeAnnotation:_7,unionTypeAnnotation:D7,voidTypeAnnotation:k7,isIdentifier:L7}=P7;function M7(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function Vm(e){return e.typeAnnotation}Vm.validParent=!0;function Km(e){return e.typeAnnotation}Km.validParent=!0;function B7(){return this.get("expression").getTypeAnnotation()}function F7(e){if(e.callee.type==="Identifier")return Ir(e.callee)}function j7(){return Gr()}function R7(e){let t=e.operator;if(t==="void")return k7();if(w7.includes(t))return gi();if(O7.includes(t))return Gr();if(C7.includes(t))return Gu()}function q7(e){let t=e.operator;if(I7.includes(t))return gi();if(v7.includes(t))return Gu();if(t==="+"){let r=this.get("right"),i=this.get("left");return i.isBaseType("number")&&r.isBaseType("number")?gi():i.isBaseType("string")||r.isBaseType("string")?Gr():D7([Gr(),gi()])}}function U7(){let e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,Um.createUnionType)(e)}function V7(){let e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,Um.createUnionType)(e)}function K7(){return this.get("expressions").pop().getTypeAnnotation()}function W7(){return this.get("expression").getTypeAnnotation()}function Y7(){return this.get("right").getTypeAnnotation()}function X7(e){let t=e.operator;if(t==="++"||t==="--")return gi()}function J7(){return Gr()}function $7(){return gi()}function H7(){return Gu()}function G7(){return N7()}function z7(){return Ir(Hr("RegExp"))}function Q7(){return Ir(Hr("Object"))}function Wm(){return Ir(Hr("Array"))}function Ym(){return Wm()}Ym.validParent=!0;function Z7(){return Ir(Hr("Function"))}var eq=jn("Array.from"),tq=jn("Object.keys"),rq=jn("Object.values"),iq=jn("Object.entries");function sq(){let{callee:e}=this.node;return tq(e)?Hu(Gr()):eq(e)||rq(e)||L7(e,{name:"Array"})?Hu(qm()):iq(e)?Hu(_7([Gr(),qm()])):Xm(this.get("callee"))}function nq(){return Xm(this.get("tag"))}function Xm(e){if(e=e.resolve(),e.isFunction()){let{node:t}=e;if(t.async)return t.generator?Ir(Hr("AsyncIterator")):Ir(Hr("Promise"));if(t.generator)return Ir(Hr("Iterator"));if(e.node.returnType)return e.node.returnType}}});var Qm=A(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr._getTypeAnnotation=zm;wr.baseTypeStrictlyMatches=Iq;wr.couldBeBaseType=Cq;wr.getTypeAnnotation=Aq;wr.isBaseType=vq;wr.isGenericType=wq;var $m=Jm(),aq=de(),{anyTypeAnnotation:Gm,isAnyTypeAnnotation:Rn,isArrayTypeAnnotation:oq,isBooleanTypeAnnotation:lq,isEmptyTypeAnnotation:uq,isFlowBaseAnnotation:cq,isGenericTypeAnnotation:pq,isIdentifier:Hm,isMixedTypeAnnotation:fq,isNumberTypeAnnotation:hq,isStringTypeAnnotation:dq,isTSArrayType:mq,isTSTypeAnnotation:yq,isTSTypeReference:Tq,isTupleTypeAnnotation:gq,isTypeAnnotation:bq,isUnionTypeAnnotation:Sq,isVoidTypeAnnotation:xq,stringTypeAnnotation:Eq,voidTypeAnnotation:Pq}=aq;function Aq(){let e=this.getData("typeAnnotation");return e!=null||(e=zm.call(this)||Gm(),(bq(e)||yq(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e}var zu=new WeakSet;function zm(){let e=this.node;if(!e)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let r=this.parentPath.parentPath,i=r.parentPath;return r.key==="left"&&i.isForInStatement()?Eq():r.key==="left"&&i.isForOfStatement()?Gm():Pq()}else return;if(e.typeAnnotation)return e.typeAnnotation;if(!zu.has(e)){zu.add(e);try{var t;let r=$m[e.type];if(r)return r.call(this,e);if(r=$m[this.parentPath.type],(t=r)!=null&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{zu.delete(e)}}}function vq(e,t){return Qu(e,this.getTypeAnnotation(),t)}function Qu(e,t,r){if(e==="string")return dq(t);if(e==="number")return hq(t);if(e==="boolean")return lq(t);if(e==="any")return Rn(t);if(e==="mixed")return fq(t);if(e==="empty")return uq(t);if(e==="void")return xq(t);if(r)return!1;throw new Error(`Unknown base type ${e}`)}function Cq(e){let t=this.getTypeAnnotation();if(Rn(t))return!0;if(Sq(t)){for(let r of t.types)if(Rn(r)||Qu(e,r,!0))return!0;return!1}else return Qu(e,t,!0)}function Iq(e){let t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return!Rn(t)&&cq(t)?r.type===t.type:!1}function wq(e){let t=this.getTypeAnnotation();return e==="Array"&&(mq(t)||oq(t)||gq(t))?!0:pq(t)&&Hm(t.id,{name:e})||Tq(t)&&Hm(t.typeName,{name:e})}});var Zm=A(qn=>{Object.defineProperty(qn,"__esModule",{value:!0});qn.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;qn.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}});var ec=A((NG,Zu)=>{var Vn=process||{},ey=Vn.argv||[],Un=Vn.env||{},Oq=!(Un.NO_COLOR||ey.includes("--no-color"))&&(!!Un.FORCE_COLOR||ey.includes("--color")||Vn.platform==="win32"||(Vn.stdout||{}).isTTY&&Un.TERM!=="dumb"||!!Un.CI),Nq=(e,t,r=e)=>i=>{let s=""+i,n=s.indexOf(t,e.length);return~n?e+_q(s,t,r,n)+t:e+s+t},_q=(e,t,r,i)=>{let s="",n=0;do s+=e.substring(n,i)+r,n=i+t.length,i=e.indexOf(t,n);while(~i);return s+e.substring(n)},ty=(e=Oq)=>{let t=e?Nq:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};Zu.exports=ty();Zu.exports.createColors=ty});var iy=A((_G,ry)=>{"use strict";var Dq=/[|\\{}()[\]^$+*?.]/g;ry.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Dq,"\\$&")}});var ny=A((DG,sy)=>{"use strict";sy.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var tc=A((kG,uy)=>{var zr=ny(),ly={};for(Kn in zr)zr.hasOwnProperty(Kn)&&(ly[zr[Kn]]=Kn);var Kn,Q=uy.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(mt in Q)if(Q.hasOwnProperty(mt)){if(!("channels"in Q[mt]))throw new Error("missing channels property: "+mt);if(!("labels"in Q[mt]))throw new Error("missing channel labels property: "+mt);if(Q[mt].labels.length!==Q[mt].channels)throw new Error("channel and label counts mismatch: "+mt);ay=Q[mt].channels,oy=Q[mt].labels,delete Q[mt].channels,delete Q[mt].labels,Object.defineProperty(Q[mt],"channels",{value:ay}),Object.defineProperty(Q[mt],"labels",{value:oy})}var ay,oy,mt;Q.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,s=Math.min(t,r,i),n=Math.max(t,r,i),a=n-s,o,l,u;return n===s?o=0:t===n?o=(r-i)/a:r===n?o=2+(i-t)/a:i===n&&(o=4+(t-r)/a),o=Math.min(o*60,360),o<0&&(o+=360),u=(s+n)/2,n===s?l=0:u<=.5?l=a/(n+s):l=a/(2-n-s),[o,l*100,u*100]};Q.rgb.hsv=function(e){var t,r,i,s,n,a=e[0]/255,o=e[1]/255,l=e[2]/255,u=Math.max(a,o,l),c=u-Math.min(a,o,l),T=function(P){return(u-P)/6/c+1/2};return c===0?s=n=0:(n=c/u,t=T(a),r=T(o),i=T(l),a===u?s=i-r:o===u?s=1/3+t-i:l===u&&(s=2/3+r-t),s<0?s+=1:s>1&&(s-=1)),[s*360,n*100,u*100]};Q.rgb.hwb=function(e){var t=e[0],r=e[1],i=e[2],s=Q.rgb.hsl(e)[0],n=1/255*Math.min(t,Math.min(r,i));return i=1-1/255*Math.max(t,Math.max(r,i)),[s,n*100,i*100]};Q.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,s,n,a,o;return o=Math.min(1-t,1-r,1-i),s=(1-t-o)/(1-o)||0,n=(1-r-o)/(1-o)||0,a=(1-i-o)/(1-o)||0,[s*100,n*100,a*100,o*100]};function kq(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}Q.rgb.keyword=function(e){var t=ly[e];if(t)return t;var r=1/0,i;for(var s in zr)if(zr.hasOwnProperty(s)){var n=zr[s],a=kq(e,n);a<r&&(r=a,i=s)}return i};Q.keyword.rgb=function(e){return zr[e]};Q.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var s=t*.4124+r*.3576+i*.1805,n=t*.2126+r*.7152+i*.0722,a=t*.0193+r*.1192+i*.9505;return[s*100,n*100,a*100]};Q.rgb.lab=function(e){var t=Q.rgb.xyz(e),r=t[0],i=t[1],s=t[2],n,a,o;return r/=95.047,i/=100,s/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,n=116*i-16,a=500*(r-i),o=200*(i-s),[n,a,o]};Q.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,i=e[2]/100,s,n,a,o,l;if(r===0)return l=i*255,[l,l,l];i<.5?n=i*(1+r):n=i+r-i*r,s=2*i-n,o=[0,0,0];for(var u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?l=s+(n-s)*6*a:2*a<1?l=n:3*a<2?l=s+(n-s)*(2/3-a)*6:l=s,o[u]=l*255;return o};Q.hsl.hsv=function(e){var t=e[0],r=e[1]/100,i=e[2]/100,s=r,n=Math.max(i,.01),a,o;return i*=2,r*=i<=1?i:2-i,s*=n<=1?n:2-n,o=(i+r)/2,a=i===0?2*s/(n+s):2*r/(i+r),[t,a*100,o*100]};Q.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,i=e[2]/100,s=Math.floor(t)%6,n=t-Math.floor(t),a=255*i*(1-r),o=255*i*(1-r*n),l=255*i*(1-r*(1-n));switch(i*=255,s){case 0:return[i,l,a];case 1:return[o,i,a];case 2:return[a,i,l];case 3:return[a,o,i];case 4:return[l,a,i];case 5:return[i,a,o]}};Q.hsv.hsl=function(e){var t=e[0],r=e[1]/100,i=e[2]/100,s=Math.max(i,.01),n,a,o;return o=(2-r)*i,n=(2-r)*s,a=r*s,a/=n<=1?n:2-n,a=a||0,o/=2,[t,a*100,o*100]};Q.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,i=e[2]/100,s=r+i,n,a,o,l;s>1&&(r/=s,i/=s),n=Math.floor(6*t),a=1-i,o=6*t-n,n&1&&(o=1-o),l=r+o*(a-r);var u,c,T;switch(n){default:case 6:case 0:u=a,c=l,T=r;break;case 1:u=l,c=a,T=r;break;case 2:u=r,c=a,T=l;break;case 3:u=r,c=l,T=a;break;case 4:u=l,c=r,T=a;break;case 5:u=a,c=r,T=l;break}return[u*255,c*255,T*255]};Q.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,i=e[2]/100,s=e[3]/100,n,a,o;return n=1-Math.min(1,t*(1-s)+s),a=1-Math.min(1,r*(1-s)+s),o=1-Math.min(1,i*(1-s)+s),[n*255,a*255,o*255]};Q.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,i=e[2]/100,s,n,a;return s=t*3.2406+r*-1.5372+i*-.4986,n=t*-.9689+r*1.8758+i*.0415,a=t*.0557+r*-.204+i*1.057,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,s=Math.min(Math.max(0,s),1),n=Math.min(Math.max(0,n),1),a=Math.min(Math.max(0,a),1),[s*255,n*255,a*255]};Q.xyz.lab=function(e){var t=e[0],r=e[1],i=e[2],s,n,a;return t/=95.047,r/=100,i/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*r-16,n=500*(t-r),a=200*(r-i),[s,n,a]};Q.lab.xyz=function(e){var t=e[0],r=e[1],i=e[2],s,n,a;n=(t+16)/116,s=r/500+n,a=n-i/200;var o=Math.pow(n,3),l=Math.pow(s,3),u=Math.pow(a,3);return n=o>.008856?o:(n-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,s*=95.047,n*=100,a*=108.883,[s,n,a]};Q.lab.lch=function(e){var t=e[0],r=e[1],i=e[2],s,n,a;return s=Math.atan2(i,r),n=s*360/2/Math.PI,n<0&&(n+=360),a=Math.sqrt(r*r+i*i),[t,a,n]};Q.lch.lab=function(e){var t=e[0],r=e[1],i=e[2],s,n,a;return a=i/360*2*Math.PI,s=r*Math.cos(a),n=r*Math.sin(a),[t,s,n]};Q.rgb.ansi16=function(e){var t=e[0],r=e[1],i=e[2],s=1 in arguments?arguments[1]:Q.rgb.hsv(e)[2];if(s=Math.round(s/50),s===0)return 30;var n=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return s===2&&(n+=60),n};Q.hsv.ansi16=function(e){return Q.rgb.ansi16(Q.hsv.rgb(e),e[2])};Q.rgb.ansi256=function(e){var t=e[0],r=e[1],i=e[2];if(t===r&&r===i)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var s=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5);return s};Q.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,i=(t&1)*r*255,s=(t>>1&1)*r*255,n=(t>>2&1)*r*255;return[i,s,n]};Q.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,i=Math.floor(e/36)/5*255,s=Math.floor((r=e%36)/6)/5*255,n=r%6/5*255;return[i,s,n]};Q.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};Q.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(o){return o+o}).join(""));var i=parseInt(r,16),s=i>>16&255,n=i>>8&255,a=i&255;return[s,n,a]};Q.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,s=Math.max(Math.max(t,r),i),n=Math.min(Math.min(t,r),i),a=s-n,o,l;return a<1?o=n/(1-a):o=0,a<=0?l=0:s===t?l=(r-i)/a%6:s===r?l=2+(i-t)/a:l=4+(t-r)/a+4,l/=6,l%=1,[l*360,a*100,o*100]};Q.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,i=1,s=0;return r<.5?i=2*t*r:i=2*t*(1-r),i<1&&(s=(r-.5*i)/(1-i)),[e[0],i*100,s*100]};Q.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,i=t*r,s=0;return i<1&&(s=(r-i)/(1-i)),[e[0],i*100,s*100]};Q.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,i=e[2]/100;if(r===0)return[i*255,i*255,i*255];var s=[0,0,0],n=t%1*6,a=n%1,o=1-a,l=0;switch(Math.floor(n)){case 0:s[0]=1,s[1]=a,s[2]=0;break;case 1:s[0]=o,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=a;break;case 3:s[0]=0,s[1]=o,s[2]=1;break;case 4:s[0]=a,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=o}return l=(1-r)*i,[(r*s[0]+l)*255,(r*s[1]+l)*255,(r*s[2]+l)*255]};Q.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,i=t+r*(1-t),s=0;return i>0&&(s=t/i),[e[0],s*100,i*100]};Q.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,i=r*(1-t)+.5*t,s=0;return i>0&&i<.5?s=t/(2*i):i>=.5&&i<1&&(s=t/(2*(1-i))),[e[0],s*100,i*100]};Q.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,i=t+r*(1-t);return[e[0],(i-t)*100,(1-i)*100]};Q.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,i=1-r,s=i-t,n=0;return s<1&&(n=(i-s)/(1-s)),[e[0],s*100,n*100]};Q.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Q.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Q.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Q.gray.hsl=Q.gray.hsv=function(e){return[0,0,e[0]]};Q.gray.hwb=function(e){return[0,100,e[0]]};Q.gray.cmyk=function(e){return[0,0,0,e[0]]};Q.gray.lab=function(e){return[e[0],0,0]};Q.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,i=r.toString(16).toUpperCase();return"000000".substring(i.length)+i};Q.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var py=A((LG,cy)=>{var Wn=tc();function Lq(){for(var e={},t=Object.keys(Wn),r=t.length,i=0;i<r;i++)e[t[i]]={distance:-1,parent:null};return e}function Mq(e){var t=Lq(),r=[e];for(t[e].distance=0;r.length;)for(var i=r.pop(),s=Object.keys(Wn[i]),n=s.length,a=0;a<n;a++){var o=s[a],l=t[o];l.distance===-1&&(l.distance=t[i].distance+1,l.parent=i,r.unshift(o))}return t}function Bq(e,t){return function(r){return t(e(r))}}function Fq(e,t){for(var r=[t[e].parent,e],i=Wn[t[e].parent][e],s=t[e].parent;t[s].parent;)r.unshift(t[s].parent),i=Bq(Wn[t[s].parent][s],i),s=t[s].parent;return i.conversion=r,i}cy.exports=function(e){for(var t=Mq(e),r={},i=Object.keys(t),s=i.length,n=0;n<s;n++){var a=i[n],o=t[a];o.parent!==null&&(r[a]=Fq(a,t))}return r}});var hy=A((MG,fy)=>{var rc=tc(),jq=py(),bi={},Rq=Object.keys(rc);function qq(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Uq(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var i=e(r);if(typeof i=="object")for(var s=i.length,n=0;n<s;n++)i[n]=Math.round(i[n]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}Rq.forEach(function(e){bi[e]={},Object.defineProperty(bi[e],"channels",{value:rc[e].channels}),Object.defineProperty(bi[e],"labels",{value:rc[e].labels});var t=jq(e),r=Object.keys(t);r.forEach(function(i){var s=t[i];bi[e][i]=Uq(s),bi[e][i].raw=qq(s)})});fy.exports=bi});var my=A((BG,dy)=>{"use strict";var Si=hy(),Yn=(e,t)=>function(){return`\x1B[${e.apply(Si,arguments)+t}m`},Xn=(e,t)=>function(){let r=e.apply(Si,arguments);return`\x1B[${38+t};5;${r}m`},Jn=(e,t)=>function(){let r=e.apply(Si,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function Vq(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let s of Object.keys(t)){let n=t[s];for(let a of Object.keys(n)){let o=n[a];t[a]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[a]=t[a],e.set(o[0],o[1])}Object.defineProperty(t,s,{value:n,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=s=>s,i=(s,n,a)=>[s,n,a];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:Yn(r,0)},t.color.ansi256={ansi256:Xn(r,0)},t.color.ansi16m={rgb:Jn(i,0)},t.bgColor.ansi={ansi:Yn(r,10)},t.bgColor.ansi256={ansi256:Xn(r,10)},t.bgColor.ansi16m={rgb:Jn(i,10)};for(let s of Object.keys(Si)){if(typeof Si[s]!="object")continue;let n=Si[s];s==="ansi16"&&(s="ansi"),"ansi16"in n&&(t.color.ansi[s]=Yn(n.ansi16,0),t.bgColor.ansi[s]=Yn(n.ansi16,10)),"ansi256"in n&&(t.color.ansi256[s]=Xn(n.ansi256,0),t.bgColor.ansi256[s]=Xn(n.ansi256,10)),"rgb"in n&&(t.color.ansi16m[s]=Jn(n.rgb,0),t.bgColor.ansi16m[s]=Jn(n.rgb,10))}return t}Object.defineProperty(dy,"exports",{enumerable:!0,get:Vq})});var Ty=A((FG,yy)=>{"use strict";yy.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),s=t.indexOf("--");return i!==-1&&(s===-1?!0:i<s)}});var by=A((jG,gy)=>{"use strict";var Kq=Di("os"),Ut=Ty(),nt=process.env,xi;Ut("no-color")||Ut("no-colors")||Ut("color=false")?xi=!1:(Ut("color")||Ut("colors")||Ut("color=true")||Ut("color=always"))&&(xi=!0);"FORCE_COLOR"in nt&&(xi=nt.FORCE_COLOR.length===0||parseInt(nt.FORCE_COLOR,10)!==0);function Wq(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Yq(e){if(xi===!1)return 0;if(Ut("color=16m")||Ut("color=full")||Ut("color=truecolor"))return 3;if(Ut("color=256"))return 2;if(e&&!e.isTTY&&xi!==!0)return 0;let t=xi?1:0;if(process.platform==="win32"){let r=Kq.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in nt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in nt)||nt.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in nt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(nt.TEAMCITY_VERSION)?1:0;if(nt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in nt){let r=parseInt((nt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(nt.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(nt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(nt.TERM)||"COLORTERM"in nt?1:(nt.TERM==="dumb",t)}function ic(e){let t=Yq(e);return Wq(t)}gy.exports={supportsColor:ic,stdout:ic(process.stdout),stderr:ic(process.stderr)}});var Ay=A((RG,Py)=>{"use strict";var Xq=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Sy=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Jq=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,$q=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Hq=new Map([["n",`
27
+ ${" ".repeat(T)}`)}}}else i?o=`/*${t.value}*/`:o=`//${t.value}`;this._endsWithDiv&&this._space(),this.source("start",t.loc),this._append(o,s),!s&&!i&&this.newline(1,!0),n&&r!==3&&this.newline(1)}_printComments(t,r,i,s,n=0){let a=i.loc,o=r.length,l=!!a,u=l?a.start.line:0,c=l?a.end.line:0,T=0,P=0,E=this._noLineTerminator?function(){}:this.newline.bind(this);for(let v=0;v<o;v++){let D=r[v],_=this._shouldPrintComment(D);if(_===2){l=!1;break}if(l&&D.loc&&_===1){let N=D.loc.start.line,M=D.loc.end.line;if(t===0){let ne=0;v===0?this._buf.hasContent()&&(D.type==="CommentLine"||N!==M)&&(ne=P=1):ne=N-T,T=M,E(ne),this._printComment(D,1),v+1===o&&(E(Math.max(u-T,P)),T=u)}else if(t===1){let ne=N-(v===0?u:T);T=M,E(ne),this._printComment(D,1),v+1===o&&(E(Math.min(1,c-T)),T=c)}else{let ne=N-(v===0?c-n:T);T=M,E(ne),this._printComment(D,1)}}else{if(l=!1,_!==1)continue;if(o===1){let N=D.loc?D.loc.start.line===D.loc.end.line:!Cm.test(D.value),M=N&&!V9(i)&&!K9(s)&&!W9(s)&&!Y9(s);t===0?this._printComment(D,M&&i.type!=="ObjectExpression"||N&&U9(s,{body:i})?1:0):M&&t===2?this._printComment(D,1):this._printComment(D,0)}else t===1&&!(i.type==="ObjectExpression"&&i.properties.length>1)&&i.type!=="ClassBody"&&i.type!=="TSInterfaceBody"?this._printComment(D,v===0?2:v===o-1?3:0):this._printComment(D,0)}}t===2&&l&&T&&(this._lastCommentLine=T)}};Object.assign(hs.prototype,q9);hs.prototype.Noop=function(){};var SG=Bn.default=hs;function G9(){this.tokenChar(44),this.space()}});var _m=A(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.default=z9;var wm=Bd(),Om=Im();function Nm(e,t){let r={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};{var i;r.decoratorsBeforeExport=t.decoratorsBeforeExport,r.jsescOption.json=t.jsonCompatibleStrings,r.recordAndTupleSyntaxType=(i=t.recordAndTupleSyntaxType)!=null?i:"hash"}r.minified?(r.compact=!0,r.shouldPrintComment=r.shouldPrintComment||(()=>r.comments)):r.shouldPrintComment=r.shouldPrintComment||(o=>r.comments||o.includes("@license")||o.includes("@preserve")),r.compact==="auto"&&(r.compact=typeof e=="string"&&e.length>5e5,r.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),r.compact&&(r.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:s,auxiliaryCommentAfter:n,shouldPrintComment:a}=r;return s&&!a(s)&&(r.auxiliaryCommentBefore=void 0),n&&!a(n)&&(r.auxiliaryCommentAfter=void 0),r}Fn.CodeGenerator=class{constructor(t,r={},i){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=Nm(i,r),this._map=r.sourceMaps?new wm.default(r,i):null}generate(){return new Om.default(this._format,this._map).generate(this._ast)}};function z9(e,t={},r){let i=Nm(r,t),s=t.sourceMaps?new wm.default(t,r):null;return new Om.default(i,s).generate(e)}});var Dm=A(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.find=t7;Dt.findParent=e7;Dt.getAncestry=a7;Dt.getDeepestCommonAncestorFrom=n7;Dt.getEarliestCommonAncestorFrom=s7;Dt.getFunctionParent=r7;Dt.getStatementParent=i7;Dt.inType=u7;Dt.isAncestor=o7;Dt.isDescendant=l7;var Q9=de(),{VISITOR_KEYS:Z9}=Q9;function e7(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null}function t7(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null}function r7(){return this.findParent(e=>e.isFunction())}function i7(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e}function s7(e){return this.getDeepestCommonAncestorFrom(e,function(t,r,i){let s,n=Z9[t.type];for(let a of i){let o=a[r+1];if(!s){s=o;continue}if(o.listKey&&s.listKey===o.listKey&&o.key<s.key){s=o;continue}let l=n.indexOf(s.parentKey),u=n.indexOf(o.parentKey);l>u&&(s=o)}return s})}function n7(e,t){if(!e.length)return this;if(e.length===1)return e[0];let r=1/0,i,s,n=e.map(o=>{let l=[];do l.unshift(o);while((o=o.parentPath)&&o!==this);return l.length<r&&(r=l.length),l}),a=n[0];e:for(let o=0;o<r;o++){let l=a[o];for(let u of n)if(u[o]!==l)break e;i=o,s=l}if(s)return t?t(s,i,n):s;throw new Error("Couldn't find intersection")}function a7(){let e=this,t=[];do t.push(e);while(e=e.parentPath);return t}function o7(e){return e.isDescendant(this)}function l7(e){return!!this.findParent(t=>t===e)}function u7(...e){let t=this;for(;t;){for(let r of e)if(t.node.type===r)return!0;t=t.parentPath}return!1}});var Ju=A(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.createUnionType=d7;var c7=de(),{createFlowUnionType:km,createTSUnionType:Lm,createUnionTypeAnnotation:p7,isFlowType:f7,isTSType:h7}=c7;function d7(e){{if(e.every(t=>f7(t)))return km?km(e):p7(e);if(e.every(t=>h7(t))&&Lm)return Lm(e)}}});var Rm=A($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.default=b7;var m7=de(),Bm=Ju(),{BOOLEAN_NUMBER_BINARY_OPERATORS:y7,createTypeAnnotationBasedOnTypeof:T7,numberTypeAnnotation:Fm,voidTypeAnnotation:g7}=m7;function b7(e){if(!this.isReferenced())return;let t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:S7(t,this,e.name);if(e.name==="undefined")return g7();if(e.name==="NaN"||e.name==="Infinity")return Fm();e.name}function S7(e,t,r){let i=[],s=[],n=Mm(e,t,s),a=jm(e,t,r);if(a){let o=Mm(e,a.ifStatement);n=n.filter(l=>!o.includes(l)),i.push(a.typeAnnotation)}if(n.length){n.push(...s);for(let o of n)i.push(o.getTypeAnnotation())}if(i.length)return(0,Bm.createUnionType)(i)}function Mm(e,t,r){let i=e.constantViolations.slice();return i.unshift(e.path),i.filter(s=>{s=s.resolve();let n=s._guessExecutionStatusRelativeTo(t);return r&&n==="unknown"&&r.push(s),n==="before"})}function x7(e,t){let r=t.node.operator,i=t.get("right").resolve(),s=t.get("left").resolve(),n;if(s.isIdentifier({name:e})?n=i:i.isIdentifier({name:e})&&(n=s),n)return r==="==="?n.getTypeAnnotation():y7.includes(r)?Fm():void 0;if(r!=="==="&&r!=="==")return;let a,o;if(s.isUnaryExpression({operator:"typeof"})?(a=s,o=i):i.isUnaryExpression({operator:"typeof"})&&(a=i,o=s),!a||!a.get("argument").isIdentifier({name:e})||(o=o.resolve(),!o.isLiteral()))return;let l=o.node.value;if(typeof l=="string")return T7(l)}function E7(e,t,r){let i;for(;i=t.parentPath;){if(i.isIfStatement()||i.isConditionalExpression())return t.key==="test"?void 0:i;if(i.isFunction()&&i.parentPath.scope.getBinding(r)!==e)return;t=i}}function jm(e,t,r){let i=E7(e,t,r);if(!i)return;let n=[i.get("test")],a=[];for(let o=0;o<n.length;o++){let l=n[o];if(l.isLogicalExpression())l.node.operator==="&&"&&(n.push(l.get("left")),n.push(l.get("right")));else if(l.isBinaryExpression()){let u=x7(r,l);u&&a.push(u)}}return a.length?{typeAnnotation:(0,Bm.createUnionType)(a),ifStatement:i}:jm(e,i,r)}});var Jm=A(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.ArrayExpression=Wm;Ne.AssignmentExpression=Y7;Ne.BinaryExpression=q7;Ne.BooleanLiteral=H7;Ne.CallExpression=sq;Ne.ConditionalExpression=V7;Ne.ClassDeclaration=Ne.ClassExpression=Ne.FunctionDeclaration=Ne.ArrowFunctionExpression=Ne.FunctionExpression=Z7;Object.defineProperty(Ne,"Identifier",{enumerable:!0,get:function(){return A7.default}});Ne.LogicalExpression=U7;Ne.NewExpression=F7;Ne.NullLiteral=G7;Ne.NumericLiteral=$7;Ne.ObjectExpression=Q7;Ne.ParenthesizedExpression=W7;Ne.RegExpLiteral=z7;Ne.RestElement=Ym;Ne.SequenceExpression=K7;Ne.StringLiteral=J7;Ne.TSAsExpression=Km;Ne.TSNonNullExpression=B7;Ne.TaggedTemplateExpression=nq;Ne.TemplateLiteral=j7;Ne.TypeCastExpression=Vm;Ne.UnaryExpression=R7;Ne.UpdateExpression=X7;Ne.VariableDeclarator=M7;var P7=de(),A7=Rm(),Um=Ju(),{BOOLEAN_BINARY_OPERATORS:v7,BOOLEAN_UNARY_OPERATORS:C7,NUMBER_BINARY_OPERATORS:I7,NUMBER_UNARY_OPERATORS:w7,STRING_UNARY_OPERATORS:O7,anyTypeAnnotation:qm,arrayTypeAnnotation:Hu,booleanTypeAnnotation:Gu,buildMatchMemberExpression:jn,genericTypeAnnotation:Ir,identifier:Hr,nullLiteralTypeAnnotation:N7,numberTypeAnnotation:gi,stringTypeAnnotation:Gr,tupleTypeAnnotation:_7,unionTypeAnnotation:D7,voidTypeAnnotation:k7,isIdentifier:L7}=P7;function M7(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function Vm(e){return e.typeAnnotation}Vm.validParent=!0;function Km(e){return e.typeAnnotation}Km.validParent=!0;function B7(){return this.get("expression").getTypeAnnotation()}function F7(e){if(e.callee.type==="Identifier")return Ir(e.callee)}function j7(){return Gr()}function R7(e){let t=e.operator;if(t==="void")return k7();if(w7.includes(t))return gi();if(O7.includes(t))return Gr();if(C7.includes(t))return Gu()}function q7(e){let t=e.operator;if(I7.includes(t))return gi();if(v7.includes(t))return Gu();if(t==="+"){let r=this.get("right"),i=this.get("left");return i.isBaseType("number")&&r.isBaseType("number")?gi():i.isBaseType("string")||r.isBaseType("string")?Gr():D7([Gr(),gi()])}}function U7(){let e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,Um.createUnionType)(e)}function V7(){let e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,Um.createUnionType)(e)}function K7(){return this.get("expressions").pop().getTypeAnnotation()}function W7(){return this.get("expression").getTypeAnnotation()}function Y7(){return this.get("right").getTypeAnnotation()}function X7(e){let t=e.operator;if(t==="++"||t==="--")return gi()}function J7(){return Gr()}function $7(){return gi()}function H7(){return Gu()}function G7(){return N7()}function z7(){return Ir(Hr("RegExp"))}function Q7(){return Ir(Hr("Object"))}function Wm(){return Ir(Hr("Array"))}function Ym(){return Wm()}Ym.validParent=!0;function Z7(){return Ir(Hr("Function"))}var eq=jn("Array.from"),tq=jn("Object.keys"),rq=jn("Object.values"),iq=jn("Object.entries");function sq(){let{callee:e}=this.node;return tq(e)?Hu(Gr()):eq(e)||rq(e)||L7(e,{name:"Array"})?Hu(qm()):iq(e)?Hu(_7([Gr(),qm()])):Xm(this.get("callee"))}function nq(){return Xm(this.get("tag"))}function Xm(e){if(e=e.resolve(),e.isFunction()){let{node:t}=e;if(t.async)return t.generator?Ir(Hr("AsyncIterator")):Ir(Hr("Promise"));if(t.generator)return Ir(Hr("Iterator"));if(e.node.returnType)return e.node.returnType}}});var Qm=A(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr._getTypeAnnotation=zm;wr.baseTypeStrictlyMatches=Iq;wr.couldBeBaseType=Cq;wr.getTypeAnnotation=Aq;wr.isBaseType=vq;wr.isGenericType=wq;var $m=Jm(),aq=de(),{anyTypeAnnotation:Gm,isAnyTypeAnnotation:Rn,isArrayTypeAnnotation:oq,isBooleanTypeAnnotation:lq,isEmptyTypeAnnotation:uq,isFlowBaseAnnotation:cq,isGenericTypeAnnotation:pq,isIdentifier:Hm,isMixedTypeAnnotation:fq,isNumberTypeAnnotation:hq,isStringTypeAnnotation:dq,isTSArrayType:mq,isTSTypeAnnotation:yq,isTSTypeReference:Tq,isTupleTypeAnnotation:gq,isTypeAnnotation:bq,isUnionTypeAnnotation:Sq,isVoidTypeAnnotation:xq,stringTypeAnnotation:Eq,voidTypeAnnotation:Pq}=aq;function Aq(){let e=this.getData("typeAnnotation");return e!=null||(e=zm.call(this)||Gm(),(bq(e)||yq(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e}var zu=new WeakSet;function zm(){let e=this.node;if(!e)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let r=this.parentPath.parentPath,i=r.parentPath;return r.key==="left"&&i.isForInStatement()?Eq():r.key==="left"&&i.isForOfStatement()?Gm():Pq()}else return;if(e.typeAnnotation)return e.typeAnnotation;if(!zu.has(e)){zu.add(e);try{var t;let r=$m[e.type];if(r)return r.call(this,e);if(r=$m[this.parentPath.type],(t=r)!=null&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{zu.delete(e)}}}function vq(e,t){return Qu(e,this.getTypeAnnotation(),t)}function Qu(e,t,r){if(e==="string")return dq(t);if(e==="number")return hq(t);if(e==="boolean")return lq(t);if(e==="any")return Rn(t);if(e==="mixed")return fq(t);if(e==="empty")return uq(t);if(e==="void")return xq(t);if(r)return!1;throw new Error(`Unknown base type ${e}`)}function Cq(e){let t=this.getTypeAnnotation();if(Rn(t))return!0;if(Sq(t)){for(let r of t.types)if(Rn(r)||Qu(e,r,!0))return!0;return!1}else return Qu(e,t,!0)}function Iq(e){let t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return!Rn(t)&&cq(t)?r.type===t.type:!1}function wq(e){let t=this.getTypeAnnotation();return e==="Array"&&(mq(t)||oq(t)||gq(t))?!0:pq(t)&&Hm(t.id,{name:e})||Tq(t)&&Hm(t.typeName,{name:e})}});var Zm=A(qn=>{Object.defineProperty(qn,"__esModule",{value:!0});qn.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;qn.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}});var ec=A((NG,Zu)=>{var Vn=process||{},ey=Vn.argv||[],Un=Vn.env||{},Oq=!(Un.NO_COLOR||ey.includes("--no-color"))&&(!!Un.FORCE_COLOR||ey.includes("--color")||Vn.platform==="win32"||(Vn.stdout||{}).isTTY&&Un.TERM!=="dumb"||!!Un.CI),Nq=(e,t,r=e)=>i=>{let s=""+i,n=s.indexOf(t,e.length);return~n?e+_q(s,t,r,n)+t:e+s+t},_q=(e,t,r,i)=>{let s="",n=0;do s+=e.substring(n,i)+r,n=i+t.length,i=e.indexOf(t,n);while(~i);return s+e.substring(n)},ty=(e=Oq)=>{let t=e?Nq:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};Zu.exports=ty();Zu.exports.createColors=ty});var iy=A((_G,ry)=>{"use strict";var Dq=/[|\\{}()[\]^$+*?.]/g;ry.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Dq,"\\$&")}});var ny=A((DG,sy)=>{"use strict";sy.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var tc=A((kG,uy)=>{var zr=ny(),ly={};for(Kn in zr)zr.hasOwnProperty(Kn)&&(ly[zr[Kn]]=Kn);var Kn,Q=uy.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(mt in Q)if(Q.hasOwnProperty(mt)){if(!("channels"in Q[mt]))throw new Error("missing channels property: "+mt);if(!("labels"in Q[mt]))throw new Error("missing channel labels property: "+mt);if(Q[mt].labels.length!==Q[mt].channels)throw new Error("channel and label counts mismatch: "+mt);ay=Q[mt].channels,oy=Q[mt].labels,delete Q[mt].channels,delete Q[mt].labels,Object.defineProperty(Q[mt],"channels",{value:ay}),Object.defineProperty(Q[mt],"labels",{value:oy})}var ay,oy,mt;Q.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,s=Math.min(t,r,i),n=Math.max(t,r,i),a=n-s,o,l,u;return n===s?o=0:t===n?o=(r-i)/a:r===n?o=2+(i-t)/a:i===n&&(o=4+(t-r)/a),o=Math.min(o*60,360),o<0&&(o+=360),u=(s+n)/2,n===s?l=0:u<=.5?l=a/(n+s):l=a/(2-n-s),[o,l*100,u*100]};Q.rgb.hsv=function(e){var t,r,i,s,n,a=e[0]/255,o=e[1]/255,l=e[2]/255,u=Math.max(a,o,l),c=u-Math.min(a,o,l),T=function(P){return(u-P)/6/c+1/2};return c===0?s=n=0:(n=c/u,t=T(a),r=T(o),i=T(l),a===u?s=i-r:o===u?s=1/3+t-i:l===u&&(s=2/3+r-t),s<0?s+=1:s>1&&(s-=1)),[s*360,n*100,u*100]};Q.rgb.hwb=function(e){var t=e[0],r=e[1],i=e[2],s=Q.rgb.hsl(e)[0],n=1/255*Math.min(t,Math.min(r,i));return i=1-1/255*Math.max(t,Math.max(r,i)),[s,n*100,i*100]};Q.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,s,n,a,o;return o=Math.min(1-t,1-r,1-i),s=(1-t-o)/(1-o)||0,n=(1-r-o)/(1-o)||0,a=(1-i-o)/(1-o)||0,[s*100,n*100,a*100,o*100]};function kq(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}Q.rgb.keyword=function(e){var t=ly[e];if(t)return t;var r=1/0,i;for(var s in zr)if(zr.hasOwnProperty(s)){var n=zr[s],a=kq(e,n);a<r&&(r=a,i=s)}return i};Q.keyword.rgb=function(e){return zr[e]};Q.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var s=t*.4124+r*.3576+i*.1805,n=t*.2126+r*.7152+i*.0722,a=t*.0193+r*.1192+i*.9505;return[s*100,n*100,a*100]};Q.rgb.lab=function(e){var t=Q.rgb.xyz(e),r=t[0],i=t[1],s=t[2],n,a,o;return r/=95.047,i/=100,s/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,n=116*i-16,a=500*(r-i),o=200*(i-s),[n,a,o]};Q.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,i=e[2]/100,s,n,a,o,l;if(r===0)return l=i*255,[l,l,l];i<.5?n=i*(1+r):n=i+r-i*r,s=2*i-n,o=[0,0,0];for(var u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?l=s+(n-s)*6*a:2*a<1?l=n:3*a<2?l=s+(n-s)*(2/3-a)*6:l=s,o[u]=l*255;return o};Q.hsl.hsv=function(e){var t=e[0],r=e[1]/100,i=e[2]/100,s=r,n=Math.max(i,.01),a,o;return i*=2,r*=i<=1?i:2-i,s*=n<=1?n:2-n,o=(i+r)/2,a=i===0?2*s/(n+s):2*r/(i+r),[t,a*100,o*100]};Q.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,i=e[2]/100,s=Math.floor(t)%6,n=t-Math.floor(t),a=255*i*(1-r),o=255*i*(1-r*n),l=255*i*(1-r*(1-n));switch(i*=255,s){case 0:return[i,l,a];case 1:return[o,i,a];case 2:return[a,i,l];case 3:return[a,o,i];case 4:return[l,a,i];case 5:return[i,a,o]}};Q.hsv.hsl=function(e){var t=e[0],r=e[1]/100,i=e[2]/100,s=Math.max(i,.01),n,a,o;return o=(2-r)*i,n=(2-r)*s,a=r*s,a/=n<=1?n:2-n,a=a||0,o/=2,[t,a*100,o*100]};Q.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,i=e[2]/100,s=r+i,n,a,o,l;s>1&&(r/=s,i/=s),n=Math.floor(6*t),a=1-i,o=6*t-n,(n&1)!==0&&(o=1-o),l=r+o*(a-r);var u,c,T;switch(n){default:case 6:case 0:u=a,c=l,T=r;break;case 1:u=l,c=a,T=r;break;case 2:u=r,c=a,T=l;break;case 3:u=r,c=l,T=a;break;case 4:u=l,c=r,T=a;break;case 5:u=a,c=r,T=l;break}return[u*255,c*255,T*255]};Q.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,i=e[2]/100,s=e[3]/100,n,a,o;return n=1-Math.min(1,t*(1-s)+s),a=1-Math.min(1,r*(1-s)+s),o=1-Math.min(1,i*(1-s)+s),[n*255,a*255,o*255]};Q.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,i=e[2]/100,s,n,a;return s=t*3.2406+r*-1.5372+i*-.4986,n=t*-.9689+r*1.8758+i*.0415,a=t*.0557+r*-.204+i*1.057,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,s=Math.min(Math.max(0,s),1),n=Math.min(Math.max(0,n),1),a=Math.min(Math.max(0,a),1),[s*255,n*255,a*255]};Q.xyz.lab=function(e){var t=e[0],r=e[1],i=e[2],s,n,a;return t/=95.047,r/=100,i/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*r-16,n=500*(t-r),a=200*(r-i),[s,n,a]};Q.lab.xyz=function(e){var t=e[0],r=e[1],i=e[2],s,n,a;n=(t+16)/116,s=r/500+n,a=n-i/200;var o=Math.pow(n,3),l=Math.pow(s,3),u=Math.pow(a,3);return n=o>.008856?o:(n-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,s*=95.047,n*=100,a*=108.883,[s,n,a]};Q.lab.lch=function(e){var t=e[0],r=e[1],i=e[2],s,n,a;return s=Math.atan2(i,r),n=s*360/2/Math.PI,n<0&&(n+=360),a=Math.sqrt(r*r+i*i),[t,a,n]};Q.lch.lab=function(e){var t=e[0],r=e[1],i=e[2],s,n,a;return a=i/360*2*Math.PI,s=r*Math.cos(a),n=r*Math.sin(a),[t,s,n]};Q.rgb.ansi16=function(e){var t=e[0],r=e[1],i=e[2],s=1 in arguments?arguments[1]:Q.rgb.hsv(e)[2];if(s=Math.round(s/50),s===0)return 30;var n=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return s===2&&(n+=60),n};Q.hsv.ansi16=function(e){return Q.rgb.ansi16(Q.hsv.rgb(e),e[2])};Q.rgb.ansi256=function(e){var t=e[0],r=e[1],i=e[2];if(t===r&&r===i)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var s=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5);return s};Q.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,i=(t&1)*r*255,s=(t>>1&1)*r*255,n=(t>>2&1)*r*255;return[i,s,n]};Q.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,i=Math.floor(e/36)/5*255,s=Math.floor((r=e%36)/6)/5*255,n=r%6/5*255;return[i,s,n]};Q.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};Q.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(o){return o+o}).join(""));var i=parseInt(r,16),s=i>>16&255,n=i>>8&255,a=i&255;return[s,n,a]};Q.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,s=Math.max(Math.max(t,r),i),n=Math.min(Math.min(t,r),i),a=s-n,o,l;return a<1?o=n/(1-a):o=0,a<=0?l=0:s===t?l=(r-i)/a%6:s===r?l=2+(i-t)/a:l=4+(t-r)/a+4,l/=6,l%=1,[l*360,a*100,o*100]};Q.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,i=1,s=0;return r<.5?i=2*t*r:i=2*t*(1-r),i<1&&(s=(r-.5*i)/(1-i)),[e[0],i*100,s*100]};Q.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,i=t*r,s=0;return i<1&&(s=(r-i)/(1-i)),[e[0],i*100,s*100]};Q.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,i=e[2]/100;if(r===0)return[i*255,i*255,i*255];var s=[0,0,0],n=t%1*6,a=n%1,o=1-a,l=0;switch(Math.floor(n)){case 0:s[0]=1,s[1]=a,s[2]=0;break;case 1:s[0]=o,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=a;break;case 3:s[0]=0,s[1]=o,s[2]=1;break;case 4:s[0]=a,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=o}return l=(1-r)*i,[(r*s[0]+l)*255,(r*s[1]+l)*255,(r*s[2]+l)*255]};Q.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,i=t+r*(1-t),s=0;return i>0&&(s=t/i),[e[0],s*100,i*100]};Q.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,i=r*(1-t)+.5*t,s=0;return i>0&&i<.5?s=t/(2*i):i>=.5&&i<1&&(s=t/(2*(1-i))),[e[0],s*100,i*100]};Q.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,i=t+r*(1-t);return[e[0],(i-t)*100,(1-i)*100]};Q.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,i=1-r,s=i-t,n=0;return s<1&&(n=(i-s)/(1-s)),[e[0],s*100,n*100]};Q.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Q.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Q.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Q.gray.hsl=Q.gray.hsv=function(e){return[0,0,e[0]]};Q.gray.hwb=function(e){return[0,100,e[0]]};Q.gray.cmyk=function(e){return[0,0,0,e[0]]};Q.gray.lab=function(e){return[e[0],0,0]};Q.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,i=r.toString(16).toUpperCase();return"000000".substring(i.length)+i};Q.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var py=A((LG,cy)=>{var Wn=tc();function Lq(){for(var e={},t=Object.keys(Wn),r=t.length,i=0;i<r;i++)e[t[i]]={distance:-1,parent:null};return e}function Mq(e){var t=Lq(),r=[e];for(t[e].distance=0;r.length;)for(var i=r.pop(),s=Object.keys(Wn[i]),n=s.length,a=0;a<n;a++){var o=s[a],l=t[o];l.distance===-1&&(l.distance=t[i].distance+1,l.parent=i,r.unshift(o))}return t}function Bq(e,t){return function(r){return t(e(r))}}function Fq(e,t){for(var r=[t[e].parent,e],i=Wn[t[e].parent][e],s=t[e].parent;t[s].parent;)r.unshift(t[s].parent),i=Bq(Wn[t[s].parent][s],i),s=t[s].parent;return i.conversion=r,i}cy.exports=function(e){for(var t=Mq(e),r={},i=Object.keys(t),s=i.length,n=0;n<s;n++){var a=i[n],o=t[a];o.parent!==null&&(r[a]=Fq(a,t))}return r}});var hy=A((MG,fy)=>{var rc=tc(),jq=py(),bi={},Rq=Object.keys(rc);function qq(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Uq(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var i=e(r);if(typeof i=="object")for(var s=i.length,n=0;n<s;n++)i[n]=Math.round(i[n]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}Rq.forEach(function(e){bi[e]={},Object.defineProperty(bi[e],"channels",{value:rc[e].channels}),Object.defineProperty(bi[e],"labels",{value:rc[e].labels});var t=jq(e),r=Object.keys(t);r.forEach(function(i){var s=t[i];bi[e][i]=Uq(s),bi[e][i].raw=qq(s)})});fy.exports=bi});var my=A((BG,dy)=>{"use strict";var Si=hy(),Yn=(e,t)=>function(){return`\x1B[${e.apply(Si,arguments)+t}m`},Xn=(e,t)=>function(){let r=e.apply(Si,arguments);return`\x1B[${38+t};5;${r}m`},Jn=(e,t)=>function(){let r=e.apply(Si,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function Vq(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let s of Object.keys(t)){let n=t[s];for(let a of Object.keys(n)){let o=n[a];t[a]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[a]=t[a],e.set(o[0],o[1])}Object.defineProperty(t,s,{value:n,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=s=>s,i=(s,n,a)=>[s,n,a];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:Yn(r,0)},t.color.ansi256={ansi256:Xn(r,0)},t.color.ansi16m={rgb:Jn(i,0)},t.bgColor.ansi={ansi:Yn(r,10)},t.bgColor.ansi256={ansi256:Xn(r,10)},t.bgColor.ansi16m={rgb:Jn(i,10)};for(let s of Object.keys(Si)){if(typeof Si[s]!="object")continue;let n=Si[s];s==="ansi16"&&(s="ansi"),"ansi16"in n&&(t.color.ansi[s]=Yn(n.ansi16,0),t.bgColor.ansi[s]=Yn(n.ansi16,10)),"ansi256"in n&&(t.color.ansi256[s]=Xn(n.ansi256,0),t.bgColor.ansi256[s]=Xn(n.ansi256,10)),"rgb"in n&&(t.color.ansi16m[s]=Jn(n.rgb,0),t.bgColor.ansi16m[s]=Jn(n.rgb,10))}return t}Object.defineProperty(dy,"exports",{enumerable:!0,get:Vq})});var Ty=A((FG,yy)=>{"use strict";yy.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),s=t.indexOf("--");return i!==-1&&(s===-1?!0:i<s)}});var by=A((jG,gy)=>{"use strict";var Kq=Di("os"),Ut=Ty(),nt=process.env,xi;Ut("no-color")||Ut("no-colors")||Ut("color=false")?xi=!1:(Ut("color")||Ut("colors")||Ut("color=true")||Ut("color=always"))&&(xi=!0);"FORCE_COLOR"in nt&&(xi=nt.FORCE_COLOR.length===0||parseInt(nt.FORCE_COLOR,10)!==0);function Wq(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Yq(e){if(xi===!1)return 0;if(Ut("color=16m")||Ut("color=full")||Ut("color=truecolor"))return 3;if(Ut("color=256"))return 2;if(e&&!e.isTTY&&xi!==!0)return 0;let t=xi?1:0;if(process.platform==="win32"){let r=Kq.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in nt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in nt)||nt.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in nt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(nt.TEAMCITY_VERSION)?1:0;if(nt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in nt){let r=parseInt((nt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(nt.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(nt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(nt.TERM)||"COLORTERM"in nt?1:(nt.TERM==="dumb",t)}function ic(e){let t=Yq(e);return Wq(t)}gy.exports={supportsColor:ic,stdout:ic(process.stdout),stderr:ic(process.stderr)}});var Ay=A((RG,Py)=>{"use strict";var Xq=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Sy=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Jq=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,$q=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Hq=new Map([["n",`
28
28
  `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Ey(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):Hq.get(e)||e}function Gq(e,t){let r=[],i=t.trim().split(/\s*,\s*/g),s;for(let n of i)if(!isNaN(n))r.push(Number(n));else if(s=n.match(Jq))r.push(s[2].replace($q,(a,o,l)=>o?Ey(o):l));else throw new Error(`Invalid Chalk template style argument: ${n} (in style '${e}')`);return r}function zq(e){Sy.lastIndex=0;let t=[],r;for(;(r=Sy.exec(e))!==null;){let i=r[1];if(r[2]){let s=Gq(i,r[2]);t.push([i].concat(s))}else t.push([i])}return t}function xy(e,t){let r={};for(let s of t)for(let n of s.styles)r[n[0]]=s.inverse?null:n.slice(1);let i=e;for(let s of Object.keys(r))if(Array.isArray(r[s])){if(!(s in i))throw new Error(`Unknown Chalk style: ${s}`);r[s].length>0?i=i[s].apply(i,r[s]):i=i[s]}return i}Py.exports=(e,t)=>{let r=[],i=[],s=[];if(t.replace(Xq,(n,a,o,l,u,c)=>{if(a)s.push(Ey(a));else if(l){let T=s.join("");s=[],i.push(r.length===0?T:xy(e,r)(T)),r.push({inverse:o,styles:zq(l)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");i.push(xy(e,r)(s.join(""))),s=[],r.pop()}else s.push(c)}),i.push(s.join("")),r.length>0){let n=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(n)}return i.join("")}});var Oy=A((qG,ms)=>{"use strict";var nc=iy(),Ge=my(),sc=by().stdout,Qq=Ay(),Cy=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Iy=["ansi","ansi","ansi256","ansi16m"],wy=new Set(["gray"]),Ei=Object.create(null);function vy(e,t){t=t||{};let r=sc?sc.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function ds(e){if(!this||!(this instanceof ds)||this.template){let t={};return vy(t,e),t.template=function(){let r=[].slice.call(arguments);return tU.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,ds.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=ds,t.template}vy(this,e)}Cy&&(Ge.blue.open="\x1B[94m");for(let e of Object.keys(Ge))Ge[e].closeRe=new RegExp(nc(Ge[e].close),"g"),Ei[e]={get(){let t=Ge[e];return $n.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};Ei.visible={get(){return $n.call(this,this._styles||[],!0,"visible")}};Ge.color.closeRe=new RegExp(nc(Ge.color.close),"g");for(let e of Object.keys(Ge.color.ansi))wy.has(e)||(Ei[e]={get(){let t=this.level;return function(){let i={open:Ge.color[Iy[t]][e].apply(null,arguments),close:Ge.color.close,closeRe:Ge.color.closeRe};return $n.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}});Ge.bgColor.closeRe=new RegExp(nc(Ge.bgColor.close),"g");for(let e of Object.keys(Ge.bgColor.ansi)){if(wy.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);Ei[t]={get(){let r=this.level;return function(){let s={open:Ge.bgColor[Iy[r]][e].apply(null,arguments),close:Ge.bgColor.close,closeRe:Ge.bgColor.closeRe};return $n.call(this,this._styles?this._styles.concat(s):[s],this._empty,e)}}}}var Zq=Object.defineProperties(()=>{},Ei);function $n(e,t,r){let i=function(){return eU.apply(i,arguments)};i._styles=e,i._empty=t;let s=this;return Object.defineProperty(i,"level",{enumerable:!0,get(){return s.level},set(n){s.level=n}}),Object.defineProperty(i,"enabled",{enumerable:!0,get(){return s.enabled},set(n){s.enabled=n}}),i.hasGrey=this.hasGrey||r==="gray"||r==="grey",i.__proto__=Zq,i}function eU(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return"";if(t>1)for(let s=1;s<t;s++)r+=" "+e[s];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let i=Ge.dim.open;Cy&&this.hasGrey&&(Ge.dim.open="");for(let s of this._styles.slice().reverse())r=s.open+r.replace(s.closeRe,s.open)+s.close,r=r.replace(/\r?\n/g,`${s.close}$&${s.open}`);return Ge.dim.open=i,r}function tU(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),i=[t.raw[0]];for(let s=1;s<t.length;s++)i.push(String(r[s-1]).replace(/[{}\\]/g,"\\$&")),i.push(String(t.raw[s]));return Qq(e,i.join(""))}Object.defineProperties(ds.prototype,Ei);ms.exports=ds();ms.exports.supportsColor=sc;ms.exports.default=ms.exports});var Fy=A(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.default=uU;ys.shouldHighlight=By;var Ny=Zm(),_y=Gi(),oc=rU(ec(),!0);function ky(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ky=function(i){return i?r:t})(e)}function rU(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=ky(t);if(r&&r.has(e))return r.get(e);var i={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&{}.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;a&&(a.get||a.set)?Object.defineProperty(i,n,a):i[n]=e[n]}return i.default=e,r&&r.set(e,i),i}var Ly=typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,oc.createColors)(!1):oc.default,Dy=(e,t)=>r=>e(t(r)),iU=new Set(["as","async","from","get","of","set"]);function sU(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:Dy(Dy(e.white,e.bgRed),e.bold)}}var nU=/\r\n|[\n\r\u2028\u2029]/,aU=/^[()[\]{}]$/,My;{let e=/^[a-z][\w-]*$/i,t=function(r,i,s){if(r.type==="name"){if((0,_y.isKeyword)(r.value)||(0,_y.isStrictReservedWord)(r.value,!0)||iU.has(r.value))return"keyword";if(e.test(r.value)&&(s[i-1]==="<"||s.slice(i-2,i)==="</"))return"jsxIdentifier";if(r.value[0]!==r.value[0].toLowerCase())return"capitalized"}return r.type==="punctuator"&&aU.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};My=function*(r){let i;for(;i=Ny.default.exec(r);){let s=Ny.matchToToken(i);yield{type:t(s,i.index,r),value:s.value}}}}function oU(e,t){let r="";for(let{type:i,value:s}of My(t)){let n=e[i];n?r+=s.split(nU).map(a=>n(a)).join(`
29
29
  `):r+=s}return r}function By(e){return Ly.isColorSupported||e.forceColor}var ac;function lU(e){if(e){var t;return(t=ac)!=null||(ac=(0,oc.createColors)(!0)),ac}return Ly}function uU(e,t={}){if(e!==""&&By(t)){let r=sU(lU(t.forceColor));return oU(r,e)}else return e}{let e,t;ys.getChalk=({forceColor:r})=>{var i;if((i=e)!=null||(e=Oy()),r){var s;return(s=t)!=null||(t=new e.constructor({enabled:!0,level:1})),t}return e}}});var cc=A(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.codeFrameColumns=Ky;Hn.default=mU;var jy=Fy(),uc=cU(ec(),!0);function Vy(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Vy=function(i){return i?r:t})(e)}function cU(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Vy(t);if(r&&r.has(e))return r.get(e);var i={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&{}.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;a&&(a.get||a.set)?Object.defineProperty(i,n,a):i[n]=e[n]}return i.default=e,r&&r.set(e,i),i}var pU=typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,uc.createColors)(!1):uc.default,Ry=(e,t)=>r=>e(t(r)),lc;function fU(e){if(e){var t;return(t=lc)!=null||(lc=(0,uc.createColors)(!0)),lc}return pU}var qy=!1;function hU(e){return{gutter:e.gray,marker:Ry(e.red,e.bold),message:Ry(e.red,e.bold)}}var Uy=/\r\n|[\n\r\u2028\u2029]/;function dU(e,t,r){let i=Object.assign({column:0,line:-1},e.start),s=Object.assign({},i,e.end),{linesAbove:n=2,linesBelow:a=3}=r||{},o=i.line,l=i.column,u=s.line,c=s.column,T=Math.max(o-(n+1),0),P=Math.min(t.length,u+a);o===-1&&(T=0),u===-1&&(P=t.length);let E=u-o,v={};if(E)for(let D=0;D<=E;D++){let _=D+o;if(!l)v[_]=!0;else if(D===0){let N=t[_-1].length;v[_]=[l,N-l+1]}else if(D===E)v[_]=[0,c];else{let N=t[_-D].length;v[_]=[0,N]}}else l===c?l?v[o]=[l,0]:v[o]=!0:v[o]=[l,c-l];return{start:T,end:P,markerLines:v}}function Ky(e,t,r={}){let i=(r.highlightCode||r.forceColor)&&(0,jy.shouldHighlight)(r),s=fU(r.forceColor),n=hU(s),a=(D,_)=>i?D(_):_,o=e.split(Uy),{start:l,end:u,markerLines:c}=dU(t,o,r),T=t.start&&typeof t.start.column=="number",P=String(u).length,v=(i?(0,jy.default)(e,r):e).split(Uy,u).slice(l,u).map((D,_)=>{let N=l+1+_,ne=` ${` ${N}`.slice(-P)} |`,ae=c[N],xe=!c[N+1];if(ae){let ee="";if(Array.isArray(ae)){let qe=D.slice(0,Math.max(ae[0]-1,0)).replace(/[^\t]/g," "),Ue=ae[1]||1;ee=[`
30
30
  `,a(n.gutter,ne.replace(/\d/g," "))," ",qe,a(n.marker,"^").repeat(Ue)].join(""),xe&&r.message&&(ee+=" "+a(n.message,r.message))}return[a(n.marker,">"),a(n.gutter,ne),D.length>0?` ${D}`:"",ee].join("")}else return` ${a(n.gutter,ne)}${D.length>0?` ${D}`:""}`}).join(`