stepzen-graphiql 3.0.0-experimental.3 → 3.0.0-experimental.a997cf1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{babel-CeFXsiLb.mjs → babel-BQHkvTsJ.mjs} +1 -1
- package/dist/{babel-DDdxk0GD.js → babel-C3zKDjoC.js} +1 -1
- package/dist/components/ExplorerPage/clearResponse.d.ts +1 -1
- package/dist/components/ExplorerPage/clearTooltip.d.ts +1 -1
- package/dist/components/exporterPlugin/CodeExporter.d.ts +1 -1
- package/dist/{graphql-CsnwHBHI.js → graphql-CGwE2QnM.js} +1 -1
- package/dist/{graphql-D2SfQudI.mjs → graphql-DM24O_tb.mjs} +1 -1
- package/dist/{graphqlMode-BoEBNhKa.js → graphqlMode-CKwWz49h.js} +1 -1
- package/dist/{graphqlMode-DXOXywV_.mjs → graphqlMode-CRjRq1Bc.mjs} +3 -3
- package/dist/index-BT7-2uYO.js +1 -0
- package/dist/{index-CXWlUBd5.js → index-BUAEx7ON.js} +124 -124
- package/dist/{index-ne4uFZMe.mjs → index-BeL5EO6k.mjs} +12680 -12585
- package/dist/{index-V813pOhj.mjs → index-DnuUftNH.mjs} +94 -92
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{jsonMode-COdw-icM.mjs → jsonMode-CkHU6DVK.mjs} +1 -1
- package/dist/{jsonMode-CNc33WlO.js → jsonMode-drYCTj3p.js} +1 -1
- package/dist/{lite-iSy4AFFh.mjs → lite-BTouxi7c.mjs} +2 -2
- package/dist/{lite-C0M5Ek98.js → lite-DbBaK1OO.js} +1 -1
- package/dist/{monaco-editor-7jC3ofov.js → monaco-editor-BdhXuZhP.js} +1 -1
- package/dist/{monaco-editor-9A_SjsFQ.mjs → monaco-editor-CSmmUv2R.mjs} +1 -1
- package/dist/{mouseTarget-BjSD0F3Z.mjs → mouseTarget-BIZTlBl4.mjs} +1 -1
- package/dist/{mouseTarget-CtWBqzKx.js → mouseTarget-DUIR6hnL.js} +1 -1
- package/dist/{toggleHighContrast-5-4VlJiq.mjs → toggleHighContrast-Bg1xTq_N.mjs} +3 -3
- package/dist/{toggleHighContrast-CzZmnIp4.js → toggleHighContrast-wOS-B-jW.js} +2 -2
- package/package.json +17 -11
- package/dist/index-D18WyKiI.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Fa = Object.defineProperty;
|
|
2
2
|
var Ba = (B, U, L) => U in B ? Fa(B, U, { enumerable: !0, configurable: !0, writable: !0, value: L }) : B[U] = L;
|
|
3
3
|
var y = (B, U, L) => Ba(B, typeof U != "symbol" ? U + "" : U, L);
|
|
4
|
-
import { l as Ua } from "./index-
|
|
4
|
+
import { l as Ua } from "./index-BeL5EO6k.mjs";
|
|
5
5
|
function Ra(B, U) {
|
|
6
6
|
for (var L = 0; L < U.length; L++) {
|
|
7
7
|
const H = U[L];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Fa=Object.defineProperty;var Ba=(B,U,L)=>U in B?Fa(B,U,{enumerable:!0,configurable:!0,writable:!0,value:L}):B[U]=L;var y=(B,U,L)=>Ba(B,typeof U!="symbol"?U+"":U,L);const Ua=require("./index-
|
|
1
|
+
"use strict";var Fa=Object.defineProperty;var Ba=(B,U,L)=>U in B?Fa(B,U,{enumerable:!0,configurable:!0,writable:!0,value:L}):B[U]=L;var y=(B,U,L)=>Ba(B,typeof U!="symbol"?U+"":U,L);const Ua=require("./index-BUAEx7ON.js");function Ra(B,U){for(var L=0;L<U.length;L++){const H=U[L];if(typeof H!="string"&&!Array.isArray(H)){for(const V in H)if(V!=="default"&&!(V in B)){const ie=Object.getOwnPropertyDescriptor(H,V);ie&&Object.defineProperty(B,V,ie.get?ie:{enumerable:!0,get:()=>H[V]})}}}return Object.freeze(Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}))}var nt={exports:{}},Ts;function ja(){return Ts||(Ts=1,(function(B,U){(function(L){function H(){var V=L();return V.default||V}B.exports=H()})(function(){var L=Object.defineProperty,H=Object.getOwnPropertyDescriptor,V=Object.getOwnPropertyNames,ie=Object.prototype.hasOwnProperty,ve=(t,s)=>{for(var e in s)L(t,e,{get:s[e],enumerable:!0})},Ss=(t,s,e,r)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of V(s))!ie.call(t,i)&&i!==e&&L(t,i,{get:()=>s[i],enumerable:!(r=H(s,i))||r.enumerable});return t},Es=t=>Ss(L({},"__esModule",{value:!0}),t),ot={};ve(ot,{parsers:()=>Oa});var lt={};ve(lt,{__babel_estree:()=>wa,__js_expression:()=>ms,__ts_expression:()=>fs,__vue_event_binding:()=>cs,__vue_expression:()=>ms,__vue_ts_event_binding:()=>ds,__vue_ts_expression:()=>fs,babel:()=>cs,"babel-flow":()=>ys,"babel-ts":()=>ds});var Le=(t,s)=>(e,r,...i)=>e|1&&r==null?void 0:(s.call(r)??r[t]).apply(r,i),Cs=String.prototype.replaceAll??function(t,s){return t.global?this.replace(t,s):this.split(t).join(s)},Is=Le("replaceAll",function(){if(typeof this=="string")return Cs}),Q=Is,ws=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),Me=ws,M=class{constructor(t,s,e){this.line=void 0,this.column=void 0,e!==void 0&&(this.index=void 0),this.line=t,this.column=s,e!==void 0&&(this.index=e)}},ye=class{constructor(t,s){y(this,"start");y(this,"end");y(this,"filename");y(this,"identifierName");this.start=t,this.end=s}};function O(t,s){let{line:e,column:r,index:i}=t;return new M(e,r+s,i+s)}var ht="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Ns={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:ht},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:ht}},pt={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},xe=t=>t.type==="UpdateExpression"?pt.UpdateExpression[`${t.prefix}`]:pt[t.type],ks={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:s})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
2
2
|
- Did you mean \`export { '${t}' as '${s}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${t==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:t})=>`Unsyntactic ${t==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:({importName:t})=>`A string literal cannot be used as an imported binding.
|
|
3
3
|
- Did you mean \`import { "${t}" as foo }\`?`,ImportCallArity:({phase:t})=>`\`import${t?`.${t}`:""}()\` requires exactly one or two arguments.`,ImportCallNotNewExpression:({phase:t})=>`Cannot use new with import${t?`.${t}`:""}().`,ImportCallSpreadArgument:({phase:t})=>`\`...\` is not allowed in \`import${t?`.${t}`:""}()\`.`,IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDigit:({radix:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${xe(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${xe(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${xe(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:t})=>`Label '${t}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map(s=>JSON.stringify(s)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map(s=>JSON.stringify(s)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperCallNotNewExpression:"Cannot use new with super(...).",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:t})=>`Unexpected keyword '${t}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:s})=>`Unexpected token${s?` '${s}'.`:""}${t?`, expected "${t}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:t,onlyValidPropertyName:s})=>`The only valid meta property for ${t} is ${t}.${s}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},vs={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},Ls={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:t})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(t)}\`.`},Ms=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Ds={PipeTopicRequiresHackPipes:'Topic references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${xe({type:t})}; please wrap it in parentheses.`,PipelineUnparenthesized:"Cannot mix binary operator with solo-await F#-style pipeline. Please wrap the pipeline in parentheses."},Os={UnsupportedBind:"Binding should be performed on object property.",UnsupportedBindRHS:"The right-hand side of binding can not be super or import."};function ut(t,s,e){Object.defineProperty(t,s,{enumerable:!1,configurable:!0,value:e})}function Fs({toMessage:t,code:s,reasonCode:e,syntaxPlugin:r}){let i=e==="MissingPlugin"||e==="MissingOneOfPlugins";return function a(n,o,l){let h=new SyntaxError;return h.code=s,h.reasonCode=e,h.loc=n,h.pos=o,h.syntaxPlugin=r,i&&(h.missingPlugin=l.missingPlugin),ut(h,"clone",function(u={}){let{line:m,column:d,index:P=o}=u.loc??n;return a(new M(m,d),P,{...l,...u.details})}),ut(h,"details",l),Object.defineProperty(h,"message",{configurable:!0,get(){let u=`${t(l)} (${n.line}:${n.column})`;return this.message=u,u},set(u){Object.defineProperty(this,"message",{value:u,writable:!0})}}),h}}function R(t,s){if(Array.isArray(t))return r=>R(r,t[0]);let e={};for(let r of Object.keys(t)){let i=t[r],{message:a,...n}=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,o=typeof a=="string"?()=>a:a;e[r]=Fs({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:r,toMessage:o,...s?{syntaxPlugin:s}:{},...n})}return e}var p={...R(Ns),...R(ks),...R(vs),...R(Ls),...R`pipelineOperator`(Ds),...R`functionBind`(Os)};function Bs(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,locations:!0,tokens:!1,createImportExpressions:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function Us(t){let s=Bs();if(t==null)return s;if(t.annexB!=null&&t.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let e of Object.keys(s))t[e]!=null&&(s[e]=t[e]);if(s.startLine===1)t.startIndex==null&&s.startColumn>0?s.startIndex=s.startColumn:t.startColumn==null&&s.startIndex>0&&(s.startColumn=s.startIndex);else if(t.startColumn==null||t.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(s.sourceType==="commonjs"){if(t.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(t.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(t.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return s}function Z(t){let{start:s,end:e}=t.loc;return t.loc.start=new M(s.line,s.column),t.loc.end=new M(e.line,e.column),t}var Rs=t=>class extends t{createPosition(s){return new M(s.line,s.column)}parse(){let s=super.parse();return this.optionFlags&512&&(s.tokens=s.tokens.map(Z)),Z(s)}parseRegExpLiteral({pattern:s,flags:e}){let r=null;try{r=new RegExp(s,e)}catch{}let i=this.estreeParseLiteral(r);return i.regex={pattern:s,flags:e},i}parseBigIntLiteral(s){let e;try{e=BigInt(s)}catch{e=null}let r=this.estreeParseLiteral(e);return r.bigint=String(r.value||s),r}estreeParseLiteral(s){return this.parseLiteral(s,"Literal")}parseStringLiteral(s){return this.estreeParseLiteral(s)}parseNumericLiteral(s){return this.estreeParseLiteral(s)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(s){return this.estreeParseLiteral(s)}estreeParseChainExpression(s,e){let r=this.startNodeAtNode(s);return r.expression=s,this.finishNodeAtNode(r,"ChainExpression",e)}directiveToStmt(s){let e=s.value;delete s.value,this.castNodeTo(e,"Literal"),e.raw=e.extra.raw,e.value=e.extra.expressionValue;let r=this.castNodeTo(s,"ExpressionStatement");return r.expression=e,r.directive=e.extra.rawValue,delete e.extra,r}fillOptionalPropertiesForTSESLint(s){}cloneEstreeStringLiteral(s){let{start:e,end:r,loc:i,range:a,raw:n,value:o}=s,l=Object.create(s.constructor.prototype);return l.type="Literal",l.start=e,l.end=r,l.loc=i,l.range=a,l.raw=n,l.value=o,l}initFunction(s,e){super.initFunction(s,e),s.expression=!1}checkDeclaration(s){s!=null&&this.isObjectProperty(s)?this.checkDeclaration(s.value):super.checkDeclaration(s)}getObjectOrClassMethodParams(s){return s.value.params}isValidDirective(s){var e;return s.type==="ExpressionStatement"&&s.expression.type==="Literal"&&typeof s.expression.value=="string"&&!((e=s.expression.extra)!=null&&e.parenthesized)}parseBlockBody(s,e,r,i,a){super.parseBlockBody(s,e,r,i,a);let n=s.directives.map(o=>this.directiveToStmt(o));s.body=n.concat(s.body),delete s.directives}parsePrivateName(){let s=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(s)}convertPrivateNameToPrivateIdentifier(s){let e=super.getPrivateNameSV(s);return delete s.id,s.name=e,this.castNodeTo(s,"PrivateIdentifier")}isPrivateName(s){return s.type==="PrivateIdentifier"}getPrivateNameSV(s){return s.name}parseLiteral(s,e){let r=super.parseLiteral(s,e);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(s,e,r=!1){super.parseFunctionBody(s,e,r),s.expression=s.body.type!=="BlockStatement"}parseMethod(s,e,r,i,a,n,o=!1){let l=this.startNode();l.kind=s.kind,l=super.parseMethod(l,e,r,i,a,n,o),delete l.kind;let{typeParameters:h}=s;h&&(delete s.typeParameters,l.typeParameters=h,this.resetStartLocationFromNode(l,h));let u=this.castNodeTo(l,this.hasPlugin("typescript")&&!l.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return s.value=u,n==="ClassPrivateMethod"&&(s.computed=!1),this.hasPlugin("typescript")&&s.abstract?(delete s.abstract,this.finishNode(s,"TSAbstractMethodDefinition")):n==="ObjectMethod"?(s.kind==="method"&&(s.kind="init"),s.shorthand=!1,this.finishNode(s,"Property")):this.finishNode(s,"MethodDefinition")}nameIsConstructor(s){return s.type==="Literal"?s.value==="constructor":super.nameIsConstructor(s)}parseClassProperty(...s){let e=super.parseClassProperty(...s);return e.abstract&&this.hasPlugin("typescript")?(delete e.abstract,this.castNodeTo(e,"TSAbstractPropertyDefinition")):this.castNodeTo(e,"PropertyDefinition"),e}parseClassPrivateProperty(...s){let e=super.parseClassPrivateProperty(...s);return e.abstract&&this.hasPlugin("typescript")?this.castNodeTo(e,"TSAbstractPropertyDefinition"):this.castNodeTo(e,"PropertyDefinition"),e.computed=!1,e}parseClassAccessorProperty(s){let e=super.parseClassAccessorProperty(s);return e.abstract&&this.hasPlugin("typescript")?(delete e.abstract,this.castNodeTo(e,"TSAbstractAccessorProperty")):this.castNodeTo(e,"AccessorProperty"),e}parseObjectProperty(s,e,r,i){let a=super.parseObjectProperty(s,e,r,i);return a&&(a.kind="init",this.castNodeTo(a,"Property")),a}finishObjectProperty(s){return s.kind="init",this.finishNode(s,"Property")}isValidLVal(s,e,r,i){return s==="Property"?"value":super.isValidLVal(s,e,r,i)}isAssignable(s,e){return s!=null&&this.isObjectProperty(s)?this.isAssignable(s.value,e):super.isAssignable(s,e)}toAssignable(s,e=!1){if(s!=null&&this.isObjectProperty(s)){let{key:r,value:i}=s;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.start),this.toAssignable(i,e)}else super.toAssignable(s,e)}toAssignableObjectExpressionProp(s,e,r){s.type==="Property"&&(s.kind==="get"||s.kind==="set")?this.raise(p.PatternHasAccessor,s.key):s.type==="Property"&&s.method?this.raise(p.PatternHasMethod,s.key):super.toAssignableObjectExpressionProp(s,e,r)}finishCallExpression(s,e){let r=super.finishCallExpression(s,e);return r.callee.type==="Import"?(this.castNodeTo(r,"ImportExpression"),r.source=r.arguments[0],r.options=r.arguments[1]??null,delete r.arguments,delete r.callee):r.type==="OptionalCallExpression"?this.castNodeTo(r,"CallExpression"):r.optional=!1,r}parseExport(s,e){var a;let r=this.state.lastTokStartLoc,i=super.parseExport(s,e);switch(i.type){case"ExportAllDeclaration":i.exported=null;break;case"ExportNamedDeclaration":i.specifiers.length===1&&i.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(i,"ExportAllDeclaration"),i.exported=i.specifiers[0].exported,delete i.specifiers);case"ExportDefaultDeclaration":{let{declaration:n}=i;(n==null?void 0:n.type)==="ClassDeclaration"&&((a=n.decorators)==null?void 0:a.length)>0&&n.start===i.start&&this.resetStartLocation(i,r)}break}return i}stopParseSubscript(s,e){let r=super.stopParseSubscript(s,e);return e.optionalChainMember?this.estreeParseChainExpression(r,s):r}parseMember(s,e,r,i,a){let n=super.parseMember(s,e,r,i,a);return n.type==="OptionalMemberExpression"?this.castNodeTo(n,"MemberExpression"):n.optional=!1,n}isOptionalMemberExpression(s){return s.type==="ChainExpression"?s.expression.type==="MemberExpression":super.isOptionalMemberExpression(s)}hasPropertyAsPrivateName(s){return s.type==="ChainExpression"&&(s=s.expression),super.hasPropertyAsPrivateName(s)}isObjectProperty(s){return s.type==="Property"&&s.kind==="init"&&!s.method}isObjectMethod(s){return s.type==="Property"&&(s.method||s.kind==="get"||s.kind==="set")}castNodeTo(s,e){let r=super.castNodeTo(s,e);return this.fillOptionalPropertiesForTSESLint(r),r}cloneIdentifier(s){let e=super.cloneIdentifier(s);return this.fillOptionalPropertiesForTSESLint(e),e}cloneStringLiteral(s){return s.type==="Literal"?this.cloneEstreeStringLiteral(s):super.cloneStringLiteral(s)}finishNodeAt(s,e,r){return Z(super.finishNodeAt(s,e,r))}finishNodeAtNode(s,e,r){return Z(super.finishNodeAtNode(s,e,r))}finishNode(s,e){let r=super.finishNode(s,e);return this.fillOptionalPropertiesForTSESLint(r),r}resetStartLocation(s,e){super.resetStartLocation(s,e),Z(s)}resetEndLocation(s,e=this.state.lastTokEndLoc){super.resetEndLocation(s,e),Z(s)}},A=!0,x=!0,De=!0,ae=!0,K=!0,js=!0,ct=class{constructor(t,s={}){y(this,"label");y(this,"keyword");y(this,"beforeExpr");y(this,"startsExpr");y(this,"rightAssociative");y(this,"isLoop");y(this,"isAssign");y(this,"prefix");y(this,"postfix");y(this,"binop");this.label=t,this.keyword=s.keyword,this.beforeExpr=!!s.beforeExpr,this.startsExpr=!!s.startsExpr,this.rightAssociative=!!s.rightAssociative,this.isLoop=!!s.isLoop,this.isAssign=!!s.isAssign,this.prefix=!!s.prefix,this.postfix=!!s.postfix,this.binop=s.binop!=null?s.binop:null}},Oe=new Map;function S(t,s={}){s.keyword=t;let e=T(t,s);return Oe.set(t,e),e}function v(t,s){return T(t,{beforeExpr:A,binop:s})}var ne=-1,Fe=[],Be=[],Ue=[],Re=[],je=[],_e=[];function T(t,s={}){return++ne,Be.push(t),Ue.push(s.binop??-1),Re.push(s.beforeExpr??!1),je.push(s.startsExpr??!1),_e.push(s.prefix??!1),Fe.push(new ct(t,s)),ne}function b(t,s={}){return++ne,Oe.set(t,ne),Be.push(t),Ue.push(s.binop??-1),Re.push(s.beforeExpr??!1),je.push(s.startsExpr??!1),_e.push(s.prefix??!1),Fe.push(new ct("name",s)),ne}var _s={bracketL:T("[",{beforeExpr:A,startsExpr:x}),bracketR:T("]"),braceL:T("{",{beforeExpr:A,startsExpr:x}),braceBarL:T("{|",{beforeExpr:A,startsExpr:x}),braceR:T("}"),braceBarR:T("|}"),parenL:T("(",{beforeExpr:A,startsExpr:x}),parenR:T(")"),comma:T(",",{beforeExpr:A}),semi:T(";",{beforeExpr:A}),colon:T(":",{beforeExpr:A}),doubleColon:T("::",{beforeExpr:A}),dot:T("."),question:T("?",{beforeExpr:A}),questionDot:T("?."),arrow:T("=>",{beforeExpr:A}),template:T("template"),ellipsis:T("...",{beforeExpr:A}),backQuote:T("`",{startsExpr:x}),dollarBraceL:T("${",{beforeExpr:A,startsExpr:x}),templateTail:T("...`",{startsExpr:x}),templateNonTail:T("...${",{beforeExpr:A,startsExpr:x}),at:T("@"),hash:T("#",{startsExpr:x}),interpreterDirective:T("#!..."),eq:T("=",{beforeExpr:A,isAssign:ae}),assign:T("_=",{beforeExpr:A,isAssign:ae}),slashAssign:T("_=",{beforeExpr:A,isAssign:ae}),xorAssign:T("_=",{beforeExpr:A,isAssign:ae}),moduloAssign:T("_=",{beforeExpr:A,isAssign:ae}),incDec:T("++/--",{prefix:K,postfix:js,startsExpr:x}),bang:T("!",{beforeExpr:A,prefix:K,startsExpr:x}),tilde:T("~",{beforeExpr:A,prefix:K,startsExpr:x}),doubleCaret:T("^^",{startsExpr:x}),doubleAt:T("@@",{startsExpr:x}),pipeline:v("|>",0),nullishCoalescing:v("??",1),logicalOR:v("||",1),logicalAND:v("&&",2),bitwiseOR:v("|",3),bitwiseXOR:v("^",4),bitwiseAND:v("&",5),equality:v("==/!=/===/!==",6),lt:v("</>/<=/>=",7),gt:v("</>/<=/>=",7),relational:v("</>/<=/>=",7),bitShift:v("<</>>/>>>",8),bitShiftL:v("<</>>/>>>",8),bitShiftR:v("<</>>/>>>",8),plusMin:T("+/-",{beforeExpr:A,binop:9,prefix:K,startsExpr:x}),modulo:T("%",{binop:10,startsExpr:x}),star:T("*",{binop:10}),slash:v("/",10),exponent:T("**",{beforeExpr:A,binop:11,rightAssociative:!0}),_in:S("in",{beforeExpr:A,binop:7}),_instanceof:S("instanceof",{beforeExpr:A,binop:7}),_break:S("break"),_case:S("case",{beforeExpr:A}),_catch:S("catch"),_continue:S("continue"),_debugger:S("debugger"),_default:S("default",{beforeExpr:A}),_else:S("else",{beforeExpr:A}),_finally:S("finally"),_function:S("function",{startsExpr:x}),_if:S("if"),_return:S("return",{beforeExpr:A}),_switch:S("switch"),_throw:S("throw",{beforeExpr:A,prefix:K,startsExpr:x}),_try:S("try"),_var:S("var"),_const:S("const"),_with:S("with"),_new:S("new",{beforeExpr:A,startsExpr:x}),_this:S("this",{startsExpr:x}),_super:S("super",{startsExpr:x}),_class:S("class",{startsExpr:x}),_extends:S("extends",{beforeExpr:A}),_export:S("export"),_import:S("import",{startsExpr:x}),_null:S("null",{startsExpr:x}),_true:S("true",{startsExpr:x}),_false:S("false",{startsExpr:x}),_typeof:S("typeof",{beforeExpr:A,prefix:K,startsExpr:x}),_void:S("void",{beforeExpr:A,prefix:K,startsExpr:x}),_delete:S("delete",{beforeExpr:A,prefix:K,startsExpr:x}),_do:S("do",{isLoop:De,beforeExpr:A}),_for:S("for",{isLoop:De}),_while:S("while",{isLoop:De}),_as:b("as",{startsExpr:x}),_assert:b("assert",{startsExpr:x}),_async:b("async",{startsExpr:x}),_await:b("await",{startsExpr:x}),_defer:b("defer",{startsExpr:x}),_from:b("from",{startsExpr:x}),_get:b("get",{startsExpr:x}),_let:b("let",{startsExpr:x}),_meta:b("meta",{startsExpr:x}),_of:b("of",{startsExpr:x}),_sent:b("sent",{startsExpr:x}),_set:b("set",{startsExpr:x}),_source:b("source",{startsExpr:x}),_static:b("static",{startsExpr:x}),_using:b("using",{startsExpr:x}),_yield:b("yield",{startsExpr:x}),_asserts:b("asserts",{startsExpr:x}),_checks:b("checks",{startsExpr:x}),_exports:b("exports",{startsExpr:x}),_global:b("global",{startsExpr:x}),_implements:b("implements",{startsExpr:x}),_intrinsic:b("intrinsic",{startsExpr:x}),_infer:b("infer",{startsExpr:x}),_is:b("is",{startsExpr:x}),_mixins:b("mixins",{startsExpr:x}),_proto:b("proto",{startsExpr:x}),_require:b("require",{startsExpr:x}),_satisfies:b("satisfies",{startsExpr:x}),_keyof:b("keyof",{startsExpr:x}),_readonly:b("readonly",{startsExpr:x}),_unique:b("unique",{startsExpr:x}),_abstract:b("abstract",{startsExpr:x}),_declare:b("declare",{startsExpr:x}),_enum:b("enum",{startsExpr:x}),_module:b("module",{startsExpr:x}),_namespace:b("namespace",{startsExpr:x}),_interface:b("interface",{startsExpr:x}),_type:b("type",{startsExpr:x}),_opaque:b("opaque",{startsExpr:x}),name:T("name",{startsExpr:x}),placeholder:T("%%",{startsExpr:x}),string:T("string",{startsExpr:x}),num:T("num",{startsExpr:x}),bigint:T("bigint",{startsExpr:x}),regexp:T("regexp",{startsExpr:x}),privateName:T("#name",{startsExpr:x}),eof:T("eof"),jsxName:T("jsxName"),jsxText:T("jsxText",{beforeExpr:A}),jsxTagStart:T("jsxTagStart",{startsExpr:x}),jsxTagEnd:T("jsxTagEnd")};function C(t){return t>=89&&t<=129}function Vs(t){return t<=88}function j(t){return t>=54&&t<=129}function dt(t){return t>=54&&t<=132}function zs(t){return Re[t]}function oe(t){return je[t]}function Hs(t){return t>=25&&t<=29}function mt(t){return t>=125&&t<=127}function qs(t){return t>=86&&t<=88}function Ve(t){return t>=54&&t<=88}function ft(t){return t>=35&&t<=55}function $s(t){return t===30}function Ks(t){return _e[t]}function Ws(t){return t>=117&&t<=119}function Js(t){return t>=120&&t<=126}function W(t){return Be[t]}function Pe(t){return Ue[t]}function Xs(t){return t===53}function ze(t){return t>=20&&t<=21}function yt(t){return Fe[t]}var ge=class{constructor(t,s){y(this,"token");y(this,"preserveSpace");this.token=t,this.preserveSpace=!!s}},w={brace:new ge("{"),j_oTag:new ge("<tag"),j_cTag:new ge("</tag"),j_expr:new ge("<tag>...</tag>",!0)},xt="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u037f\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u052f\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05d0-\\u05ea\\u05ef-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086a\\u0870-\\u0887\\u0889-\\u088f\\u08a0-\\u08c9\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u09fc\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0af9\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c39\\u0c3d\\u0c58-\\u0c5a\\u0c5c\\u0c5d\\u0c60\\u0c61\\u0c80\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cdc-\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d04-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d54-\\u0d56\\u0d5f-\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e86-\\u0e8a\\u0e8c-\\u0ea3\\u0ea5\\u0ea7-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f5\\u13f8-\\u13fd\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f8\\u1700-\\u1711\\u171f-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1878\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191e\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19b0-\\u19c9\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4c\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1c80-\\u1c8a\\u1c90-\\u1cba\\u1cbd-\\u1cbf\\u1ce9-\\u1cec\\u1cee-\\u1cf3\\u1cf5\\u1cf6\\u1cfa\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2118-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309b-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u31a0-\\u31bf\\u31f0-\\u31ff\\u3400-\\u4dbf\\u4e00-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua69d\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua7dc\\ua7f1-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua8fd\\ua8fe\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\ua9e0-\\ua9e4\\ua9e6-\\ua9ef\\ua9fa-\\ua9fe\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa7e-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uab30-\\uab5a\\uab5c-\\uab69\\uab70-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",Gs="\\xb7\\u0300-\\u036f\\u0387\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u064b-\\u0669\\u0670\\u06d6-\\u06dc\\u06df-\\u06e4\\u06e7\\u06e8\\u06ea-\\u06ed\\u06f0-\\u06f9\\u0711\\u0730-\\u074a\\u07a6-\\u07b0\\u07c0-\\u07c9\\u07eb-\\u07f3\\u07fd\\u0816-\\u0819\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0859-\\u085b\\u0897-\\u089f\\u08ca-\\u08e1\\u08e3-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09cb-\\u09cd\\u09d7\\u09e2\\u09e3\\u09e6-\\u09ef\\u09fe\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2\\u0ae3\\u0ae6-\\u0aef\\u0afa-\\u0aff\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b55-\\u0b57\\u0b62\\u0b63\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c00-\\u0c04\\u0c3c\\u0c3e-\\u0c44\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62\\u0c63\\u0c66-\\u0c6f\\u0c81-\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2\\u0ce3\\u0ce6-\\u0cef\\u0cf3\\u0d00-\\u0d03\\u0d3b\\u0d3c\\u0d3e-\\u0d44\\u0d46-\\u0d48\\u0d4a-\\u0d4d\\u0d57\\u0d62\\u0d63\\u0d66-\\u0d6f\\u0d81-\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0de6-\\u0def\\u0df2\\u0df3\\u0e31\\u0e34-\\u0e3a\\u0e47-\\u0e4e\\u0e50-\\u0e59\\u0eb1\\u0eb4-\\u0ebc\\u0ec8-\\u0ece\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f3e\\u0f3f\\u0f71-\\u0f84\\u0f86\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u102b-\\u103e\\u1040-\\u1049\\u1056-\\u1059\\u105e-\\u1060\\u1062-\\u1064\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u1369-\\u1371\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17b4-\\u17d3\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u180f-\\u1819\\u18a9\\u1920-\\u192b\\u1930-\\u193b\\u1946-\\u194f\\u19d0-\\u19da\\u1a17-\\u1a1b\\u1a55-\\u1a5e\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1ab0-\\u1abd\\u1abf-\\u1add\\u1ae0-\\u1aeb\\u1b00-\\u1b04\\u1b34-\\u1b44\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1b80-\\u1b82\\u1ba1-\\u1bad\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c24-\\u1c37\\u1c40-\\u1c49\\u1c50-\\u1c59\\u1cd0-\\u1cd2\\u1cd4-\\u1ce8\\u1ced\\u1cf4\\u1cf7-\\u1cf9\\u1dc0-\\u1dff\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2cef-\\u2cf1\\u2d7f\\u2de0-\\u2dff\\u302a-\\u302f\\u3099\\u309a\\u30fb\\ua620-\\ua629\\ua66f\\ua674-\\ua67d\\ua69e\\ua69f\\ua6f0\\ua6f1\\ua802\\ua806\\ua80b\\ua823-\\ua827\\ua82c\\ua880\\ua881\\ua8b4-\\ua8c5\\ua8d0-\\ua8d9\\ua8e0-\\ua8f1\\ua8ff-\\ua909\\ua926-\\ua92d\\ua947-\\ua953\\ua980-\\ua983\\ua9b3-\\ua9c0\\ua9d0-\\ua9d9\\ua9e5\\ua9f0-\\ua9f9\\uaa29-\\uaa36\\uaa43\\uaa4c\\uaa4d\\uaa50-\\uaa59\\uaa7b-\\uaa7d\\uaab0\\uaab2-\\uaab4\\uaab7\\uaab8\\uaabe\\uaabf\\uaac1\\uaaeb-\\uaaef\\uaaf5\\uaaf6\\uabe3-\\uabea\\uabec\\uabed\\uabf0-\\uabf9\\ufb1e\\ufe00-\\ufe0f\\ufe20-\\ufe2f\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f\\uff65",Pt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Ys=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],Qs=new RegExp("["+xt+"]"),Zs=new RegExp("["+xt+Gs+"]");function He(t,s){let e=65536;for(let r=0,i=s.length;r<i;r+=2){if(e+=s[r],e>t)return!1;if(e+=s[r+1],e>=t)return!0}return!1}function z(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&Qs.test(String.fromCharCode(t)):He(t,Pt)}function Y(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&Zs.test(String.fromCharCode(t)):He(t,Pt)||He(t,Ys)}var qe={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},er=new Set(qe.keyword),tr=new Set(qe.strict),sr=new Set(qe.strictBind);function gt(t,s){return s&&t==="await"||t==="enum"}function Tt(t,s){return gt(t,s)||tr.has(t)}function bt(t){return sr.has(t)}function At(t,s){return Tt(t,s)||bt(t)}function rr(t){return er.has(t)}function ir(t,s,e){return t===64&&s===64&&z(e)}var ar=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function nr(t){return ar.has(t)}var $e=class{constructor(t){y(this,"flags",0);y(this,"names",new Map);y(this,"firstLexicalName","");this.flags=t}},Ke=class{constructor(t,s){y(this,"parser");y(this,"scopeStack",[]);y(this,"inModule");y(this,"undefinedExports",new Map);this.parser=t,this.inModule=s}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:s}=this.scopeStack[t];if(s&128)return!0;if(s&3779)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new $e(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,s,e){let r=this.currentScope();if(s&8||s&16){this.checkRedeclarationInScope(r,t,s,e);let i=r.names.get(t)||0;s&16?i=i|4:(r.firstLexicalName||(r.firstLexicalName=t),i=i|2),r.names.set(t,i),s&8&&this.maybeExportDefined(r,t)}else if(s&4)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,t,s,e),r.names.set(t,(r.names.get(t)||0)|1),this.maybeExportDefined(r,t),!(r.flags&3715));--i);this.parser.inModule&&r.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,s){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(s)}checkRedeclarationInScope(t,s,e,r){this.isRedeclaredInScope(t,s,e)&&this.parser.raise(p.VarRedeclaration,r,{identifierName:s})}isRedeclaredInScope(t,s,e){if(!(e&1))return!1;if(e&8)return t.names.has(s);let r=t.names.get(s)||0;return e&16?(r&2)>0||!this.treatFunctionsAsVarInScope(t)&&(r&1)>0:(r&2)>0&&!(t.flags&8&&t.firstLexicalName===s)||!this.treatFunctionsAsVarInScope(t)&&(r&4)>0}checkLocalExport(t){let{name:s}=t;this.scopeStack[0].names.has(s)||this.undefinedExports.set(s,t.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:s}=this.scopeStack[t];if(s&3715)return s}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:s}=this.scopeStack[t];if(s&3779&&!(s&4))return s}}},or=class extends $e{constructor(){super(...arguments);y(this,"declareFunctions",new Set)}},lr=class extends Ke{createScope(t){return new or(t)}declareName(t,s,e){let r=this.currentScope();if(s&2048){this.checkRedeclarationInScope(r,t,s,e),this.maybeExportDefined(r,t),r.declareFunctions.add(t);return}super.declareName(t,s,e)}isRedeclaredInScope(t,s,e){if(super.isRedeclaredInScope(t,s,e))return!0;if(e&2048&&!t.declareFunctions.has(s)){let r=t.names.get(s);return(r&4)>0||(r&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},hr=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),pr={AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:t})=>`Cannot overwrite reserved type ${t}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:t,enumName:s})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${s}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:s})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${s}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:s})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${s}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:s,explicitType:e})=>`Enum \`${t}\` has type \`${e}\`, so the initializer of \`${s}\` needs to be a ${e} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:s})=>`Symbol enum members cannot be initialized. Use \`${s},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:s})=>`The enum member initializer for \`${s}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:s,suggestion:e})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${s}\`, consider using \`${e}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:s})=>`Number enum members need to be initialized, e.g. \`${s} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:{message:"A binding pattern parameter cannot be optional in an implementation signature."},SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:t})=>`Unexpected reserved type ${t}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:t,suggestion:s})=>`\`declare export ${t}\` is not supported. Use \`${s}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."},g=R`flow`(pr);function ur(t){return t.type==="DeclareExportAllDeclaration"||t.type==="DeclareExportDeclaration"&&(!t.declaration||t.declaration.type!=="TypeAlias"&&t.declaration.type!=="InterfaceDeclaration")}function St(t){return t.importKind==="type"||t.importKind==="typeof"}var cr={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function dr(t,s){let e=[],r=[];for(let i=0;i<t.length;i++)(s(t[i],i,t)?e:r).push(t[i]);return[e,r]}var mr=/\*?\s*@((?:no)?flow)\b/,fr=t=>class extends t{constructor(){super(...arguments);y(this,"flowPragma")}getScopeHandler(){return lr}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(e,r){e!==130&&e!==9&&e!==24&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,r)}addComment(e){if(this.flowPragma===void 0){let r=mr.exec(e.value);if(r)if(r[1]==="flow")this.flowPragma="flow";else if(r[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(e)}flowParseTypeInitialiser(e){let r=this.state.inType;this.state.inType=!0,this.expect(e||10);let i=this.flowParseType();return this.state.inType=r,i}flowParsePredicate(){let e=this.startNode(),r=this.state.startLoc;return this.next(),this.expectContextual(106),this.state.lastTokStartLoc.index>r.index+1&&this.raise(g.UnexpectedSpaceBetweenModuloChecks,r),this.eat(6)?(e.value=super.parseExpression(),this.expect(7),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(e){let r=this.state.inType;this.state.inType=!0,this.expect(10);let i=null,a=null;return e&&this.match(50)?(this.state.inType=r,a=this.flowParsePredicate()):(i=this.flowParseType(),this.state.inType=r,this.match(50)&&(a=this.flowParsePredicate())),[i,a]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let r=e.id=this.parseIdentifier(),i=this.startNode(),a=this.startNode();this.match(43)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(6);let n=this.flowParseFunctionTypeParams();return i.params=n.params,i.rest=n.rest,i.this=n._this,this.expect(7),[i.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(!1),a.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),r.typeAnnotation=this.finishNode(a,"TypeAnnotation"),this.resetEndLocation(r),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,r){if(this.match(76))return this.flowParseDeclareClass(e);if(this.match(64))return this.flowParseDeclareFunction(e);if(this.match(70))return this.flowParseDeclareVariable(e);if(this.eatContextual(123))return this.match(12)?this.flowParseDeclareModuleExports(e):(r&&this.raise(g.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(126))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(127))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(125))return this.flowParseDeclareInterface(e);if(this.match(78))return this.flowParseDeclareExportDeclaration(e,r);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(e.id.name,5,e.id.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(130)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let r=this.startNode(),i=r.body=[];for(this.expect(2);!this.match(4);){let o=this.startNode();this.match(79)?(this.next(),!this.isContextual(126)&&!this.match(83)&&this.raise(g.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),i.push(super.parseImport(o))):(this.expectContextual(121,g.UnsupportedStatementInDeclareModule),i.push(this.flowParseDeclare(o,!0)))}this.scope.exit(),this.expect(4),e.body=this.finishNode(r,"BlockStatement");let a=null,n=!1;return i.forEach(o=>{ur(o)?(a==="CommonJS"&&this.raise(g.AmbiguousDeclareModuleKind,o),a="ES"):o.type==="DeclareModuleExports"&&(n&&this.raise(g.DuplicateDeclareModuleExports,o),a==="ES"&&this.raise(g.AmbiguousDeclareModuleKind,o),a="CommonJS",n=!0)}),e.kind=a||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,r){if(this.expect(78),this.eat(61))return this.match(64)||this.match(76)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(71)||this.isLet()||(this.isContextual(126)||this.isContextual(125))&&!r){let i=this.state.value;throw this.raise(g.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:i,suggestion:cr[i]})}if(this.match(70)||this.match(64)||this.match(76)||this.isContextual(127))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(51)||this.match(2)||this.isContextual(125)||this.isContextual(126)||this.isContextual(127)){let i=this.parseExport(e,null);return i.type==="ExportNamedDeclaration"?(i.default=!1,delete i.exportKind,this.castNodeTo(i,"DeclareExportDeclaration")):this.castNodeTo(i,"DeclareExportAllDeclaration")}throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(107),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let r=this.flowParseTypeAlias(e);return this.castNodeTo(r,"DeclareTypeAlias"),r}flowParseDeclareOpaqueType(e){return this.next(),this.flowParseOpaqueType(e,!0)}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,r){if(e.id=this.flowParseRestrictedIdentifier(!r,!0),this.scope.declareName(e.id.name,r?17:8201,e.id.start),this.match(43)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(77))do e.extends.push(this.flowParseInterfaceExtends());while(!r&&this.eat(8));if(r){let i=[],a=[];if(this.eatContextual(113))do a.push(this.flowParseInterfaceExtends());while(this.eat(8));if(this.eatContextual(109))do i.push(this.flowParseClassImplements());while(this.eat(8));e.implements=i,e.mixins=a}e.body=this.flowParseObjectType({allowStatic:r,allowExact:!1,allowSpread:!1,allowProto:r,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(43)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){e==="_"&&this.raise(g.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,r,i){hr.has(e)&&this.raise(i?g.AssignReservedType:g.UnexpectedReservedType,r,{reservedType:e})}flowParseRestrictedIdentifierName(e,r){return this.checkReservedType(this.state.value,this.state.startLoc,r),this.parseIdentifierName(e)}flowParseRestrictedIdentifier(e,r){let i=this.startNode(),a=this.flowParseRestrictedIdentifierName(e,r);return this.createIdentifier(i,a)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.start),this.match(43)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(25),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,r){return this.expectContextual(126),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.start),this.match(43)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(10)&&(e.supertype=this.flowParseTypeInitialiser(10)),e.impltype=null,r||(e.impltype=this.flowParseTypeInitialiser(25)),this.semicolon(),this.finishNode(e,r?"DeclareOpaqueType":"OpaqueType")}flowParseTypeParameterBound(){if(this.match(10)||this.isContextual(77)){let e=this.startNode();return this.next(),e.typeAnnotation=this.flowParseType(),this.finishNode(e,"TypeAnnotation")}}flowParseTypeParameter(e=!1){let r=this.state.startLoc,i=this.startNode(),a=this.flowParseVariance();return i.name=this.flowParseRestrictedIdentifierName(),i.variance=a,i.bound=this.flowParseTypeParameterBound(),this.match(25)?(this.eat(25),i.default=this.flowParseType()):e&&this.raise(g.MissingTypeParamDefault,r),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,r=this.startNode();r.params=[],this.state.inType=!0,this.match(43)||this.match(138)?this.next():this.unexpected();let i=!1;do{let a=this.flowParseTypeParameter(i);r.params.push(a),a.default&&(i=!0),this.match(44)||this.expect(8)}while(!this.match(44));return this.expect(44),this.state.inType=e,this.finishNode(r,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()!==w.brace){let r=this.state.context;this.state.context=[r[0]];try{return e()}finally{this.state.context=r}}else return e()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===43)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let e=this.startNode(),r=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(43);let i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(44);)e.params.push(this.flowParseType()),this.match(44)||this.expect(8);this.state.noAnonFunctionType=i}),this.state.inType=r,!this.state.inType&&this.curContext()===w.brace&&this.reScan_lt_gt(),this.expect(44),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==43)return null;let e=this.startNode(),r=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(43);!this.match(44);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(44)||this.expect(8);return this.expect(44),this.state.inType=r,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(125),e.extends=[],this.eat(77))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(8));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(131)||this.match(130)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,r,i){return e.static=r,this.lookahead().type===10?(e.id=this.parseIdentifier(!0),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(1),e.value=this.flowParseTypeInitialiser(),e.variance=i,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,r){return e.static=r,e.id=this.parseIdentifier(!0),this.expect(1),this.expect(1),this.match(43)||this.match(6)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAtNode(e))):(e.method=!1,this.eat(13)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(43)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(6),this.match(74)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(7)||this.expect(8));!this.match(7)&&!this.match(17);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(7)||this.expect(8);return this.eat(17)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(7),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,r){let i=this.startNode();return e.static=r,e.value=this.flowParseObjectTypeMethodish(i),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:r,allowSpread:i,allowProto:a,allowInexact:n}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let h,u,m=!1;for(r&&this.match(3)?(this.expect(3),h=5,u=!0):(this.expect(2),h=4,u=!1),l.exact=u;!this.match(h);){let P=!1,E=null,_=null,I=this.startNode();if(a&&this.isContextual(114)){let k=this.lookahead();k.type!==10&&k.type!==13&&(this.next(),E=this.state.startLoc,e=!1)}if(e&&this.isContextual(102)){let k=this.lookahead();k.type!==10&&k.type!==13&&(this.next(),P=!0)}let N=this.flowParseVariance();if(this.eat(0))E!=null&&this.unexpected(E),this.eat(0)?(N&&this.unexpected(N.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(I,P))):l.indexers.push(this.flowParseObjectTypeIndexer(I,P,N));else if(this.match(6)||this.match(43))E!=null&&this.unexpected(E),N&&this.unexpected(N.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(I,P));else{let k="init";if(this.isContextual(95)||this.isContextual(100)){let fe=this.lookahead();dt(fe.type)&&(k=this.state.value,this.next())}let ke=this.flowParseObjectTypeProperty(I,P,E,N,k,i,n??!u);ke===null?(m=!0,_=this.state.lastTokStartLoc):l.properties.push(ke)}this.flowObjectTypeSemicolon(),_&&!this.match(4)&&!this.match(5)&&this.raise(g.UnexpectedExplicitInexactInObject,_)}this.expect(h),i&&(l.inexact=m);let d=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,d}flowParseObjectTypeProperty(e,r,i,a,n,o,l){if(this.eat(17))return this.match(8)||this.match(9)||this.match(4)||this.match(5)?(o?l||this.raise(g.InexactInsideExact,this.state.lastTokStartLoc):this.raise(g.InexactInsideNonObject,this.state.lastTokStartLoc),a&&this.raise(g.InexactVariance,a),null):(o||this.raise(g.UnexpectedSpreadType,this.state.lastTokStartLoc),i!=null&&this.unexpected(i),a&&this.raise(g.SpreadVariance,a),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=r,e.proto=i!=null,e.kind=n;let h=!1;return this.match(43)||this.match(6)?(e.method=!0,i!=null&&this.unexpected(i),a&&this.unexpected(a.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAtNode(e)),n==="get"||n==="set"?this.flowCheckGetterSetterParams(e):!r&&!o&&e.key.name==="constructor"&&e.value.this&&this.raise(g.ThisParamBannedInConstructor,e.value.this)):(n!=="init"&&this.unexpected(),e.method=!1,this.eat(13)&&(h=!0),e.value=this.flowParseTypeInitialiser(),e.variance=a),e.optional=h,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let r=e.kind==="get"?0:1,i=e.value,a=i.params.length+(i.rest?1:0);i.this&&this.raise(e.kind==="get"?g.GetterMayNotHaveThisParam:g.SetterMayNotHaveThisParam,i.this),a!==r&&this.raise(e.kind==="get"?p.BadGetterArity:p.BadSetterArity,e),e.kind==="set"&&i.rest&&this.raise(p.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(9)&&!this.eat(8)&&!this.match(4)&&!this.match(5)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,r){e??(e=this.state.startLoc);let i=r||this.flowParseRestrictedIdentifier(!0);for(;this.eat(12);){let a=this.startNodeAt(e);a.qualification=i,a.id=this.flowParseRestrictedIdentifier(!0),i=this.finishNode(a,"QualifiedTypeIdentifier")}return i}flowParseGenericType(e,r){let i=this.startNodeAt(e);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,r),this.match(43)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(83),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(1)&&(e.types.push(this.flowParseType()),!this.match(1));)this.expect(8);return this.expect(1),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let r=null,i=!1,a,n=this.startNode(),o=this.lookahead(),l=this.state.type===74;return o.type===10||o.type===13?(l&&!e&&this.raise(g.ThisParamMustBeFirst,n),r=this.parseIdentifier(l),this.eat(13)&&(i=!0,l&&this.raise(g.ThisParamMayNotBeOptional,n)),a=this.flowParseTypeInitialiser()):a=this.flowParseType(),n.name=r,n.optional=i,n.typeAnnotation=a,this.finishNode(n,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){let r=this.startNodeAtNode(e);return r.name=null,r.optional=!1,r.typeAnnotation=e,this.finishNode(r,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let r=null,i=null;for(this.match(74)&&(i=this.flowParseFunctionTypeParam(!0),i.name=null,this.match(7)||this.expect(8));!this.match(7)&&!this.match(17);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(7)||this.expect(8);return this.eat(17)&&(r=this.flowParseFunctionTypeParam(!1)),{params:e,rest:r,_this:i}}flowIdentToTypeAnnotation(e,r,i){switch(i.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");case"symbol":return this.finishNode(r,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(i.name),this.flowParseGenericType(e,i)}}flowParsePrimaryType(){let e=this.state.startLoc,r=this.startNode(),i,a,n=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case 2:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 3:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,a=this.flowParseTupleType(),this.state.noAnonFunctionType=o,a;case 43:{let l=this.startNode();return l.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(6),i=this.flowParseFunctionTypeParams(),l.params=i.params,l.rest=i.rest,l.this=i._this,this.expect(7),this.expect(15),l.returnType=this.flowParseType(),this.finishNode(l,"FunctionTypeAnnotation")}case 6:{let l=this.startNode();if(this.next(),!this.match(7)&&!this.match(17))if(C(this.state.type)||this.match(74)){let h=this.lookahead().type;n=h!==13&&h!==10}else n=!0;if(n){if(this.state.noAnonFunctionType=!1,a=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(8)||this.match(7)&&this.lookahead().type===15))return this.expect(7),a;this.eat(8)}return a?i=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(a)]):i=this.flowParseFunctionTypeParams(),l.params=i.params,l.rest=i.rest,l.this=i._this,this.expect(7),this.expect(15),l.returnType=this.flowParseType(),l.typeParameters=null,this.finishNode(l,"FunctionTypeAnnotation")}case 130:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 81:case 82:return r.value=this.match(81),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case 49:if(this.state.value==="-"){if(this.next(),this.match(131))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",r);if(this.match(132))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",r);throw this.raise(g.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 131:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 132:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 84:return this.next(),this.finishNode(r,"VoidTypeAnnotation");case 80:return this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case 74:return this.next(),this.finishNode(r,"ThisTypeAnnotation");case 51:return this.next(),this.finishNode(r,"ExistsTypeAnnotation");case 83:return this.flowParseTypeofType();default:if(Ve(this.state.type)){let l=W(this.state.type);return this.next(),super.createIdentifier(r,l)}else if(C(this.state.type))return this.isContextual(125)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,r,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,r=this.flowParsePrimaryType(),i=!1;for(;(this.match(0)||this.match(14))&&!this.canInsertSemicolon();){let a=this.startNodeAt(e),n=this.eat(14);i=i||n,this.expect(0),!n&&this.match(1)?(a.elementType=r,this.next(),r=this.finishNode(a,"ArrayTypeAnnotation")):(a.objectType=r,a.indexType=this.flowParseType(),this.expect(1),i?(a.optional=n,r=this.finishNode(a,"OptionalIndexedAccessType")):r=this.finishNode(a,"IndexedAccessType"))}return r}flowParsePrefixType(){let e=this.startNode();return this.eat(13)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(15)){let r=this.startNodeAtNode(e);return r.params=[this.reinterpretTypeAsFunctionTypeParam(e)],r.rest=null,r.this=null,r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(41);let r=this.flowParseAnonFunctionWithoutParens();for(e.types=[r];this.eat(41);)e.types.push(this.flowParseAnonFunctionWithoutParens());return e.types.length===1?r:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){let e=this.startNode();this.eat(39);let r=this.flowParseIntersectionType();for(e.types=[r];this.eat(39);)e.types.push(this.flowParseIntersectionType());return e.types.length===1?r:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){let e=this.state.inType;this.state.inType=!0;let r=this.flowParseUnionType();return this.state.inType=e,r}flowParseTypeOrImplicitInstantiation(){if(this.state.type===128&&this.state.value==="_"){let e=this.state.startLoc,r=this.parseIdentifier();return this.flowParseGenericType(e,r)}else return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){let e=this.startNode(),r=this.parseIdentifierName();return this.match(10)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),this.createIdentifier(e,r)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocationFromNode(e.expression,e.typeAnnotation),e.expression}flowParseVariance(){let e=null;return this.match(49)?(e=this.startNode(),this.state.value==="+"?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,r,i=!1){if(r){this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,i));return}super.parseFunctionBody(e,!1,i)}parseFunctionBodyAndFinish(e,r,i=!1){if(this.match(10)){let a=this.startNode();r==="FunctionDeclaration"||r==="FunctionExpression"||r==="ArrowFunctionExpression"?[a.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(!0):a.typeAnnotation=this.flowParseTypeInitialiser(),e.returnType=a.typeAnnotation?this.finishNode(a,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,r,i)}parseStatementLike(e){if(this.state.strict&&this.isContextual(125)){let i=this.lookahead();if(j(i.type)){let a=this.startNode();return this.next(),this.flowParseInterface(a)}}else if(this.isContextual(122)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}let r=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(r)&&(this.flowPragma=null),r}parseExpressionStatement(e,r,i){if(r.type==="Identifier"){if(r.name==="declare"){if(this.match(76)||C(this.state.type)||this.match(64)||this.match(70)||this.match(78))return this.flowParseDeclare(e)}else if(C(this.state.type)){if(r.name==="interface")return this.flowParseInterface(e);if(r.name==="type")return this.flowParseTypeAlias(e);if(r.name==="opaque")return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,r,i)}shouldParseExportDeclaration(){let{type:e}=this.state;return e===122||mt(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return e===122||mt(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(122)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,r,i){if(!this.match(13))return e;if(i!=null){let P=this.lookaheadCharCode();if(P===44||P===61||P===58||P===41)return this.setOptionalParametersError(i),e}this.expect(13);let a=this.state.clone(),n=this.state.noArrowAt,o=this.startNodeAt(r),{consequent:l,failed:h}=this.tryParseConditionalConsequent(),u=this.getArrowLikeExpressions(l),m=u[0],d=u[1];if(h||d.length>0){let P=[...n];if(d.length>0){this.state=a,this.state.noArrowAt=P;for(let E=0;E<d.length;E++)P.push(d[E].start);({consequent:l,failed:h}=this.tryParseConditionalConsequent()),[m]=this.getArrowLikeExpressions(l)}h&&m.length>1&&this.raise(g.AmbiguousConditionalArrow,a.startLoc),h&&m.length===1&&(this.state=a,P.push(m[0].start),this.state.noArrowAt=P,{consequent:l}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=n,this.expect(10),o.test=e,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),r=!this.match(10);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:r}}getArrowLikeExpressions(e,r){let i=[e],a=[];for(;i.length!==0;){let n=i.pop();n.type==="ArrowFunctionExpression"&&n.body.type!=="BlockStatement"?(n.typeParameters||!n.returnType?this.finishArrowValidation(n):a.push(n),i.push(n.body)):n.type==="ConditionalExpression"&&(i.push(n.consequent),i.push(n.alternate))}return r?(a.forEach(n=>this.finishArrowValidation(n)),[a,[]]):dr(a,n=>n.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(e){var r;this.toAssignableList(e.params,(r=e.extra)==null?void 0:r.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,r){let i;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),i=r(),this.state.noArrowParamsConversionAt.pop()):i=r(),i}parseParenItem(e,r){let i=super.parseParenItem(e,r);if(this.eat(13)&&(i.optional=!0,this.resetEndLocation(e)),this.match(10)){let a=this.startNodeAt(r);return a.expression=i,a.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(a,"TypeCastExpression")}return i}assertModuleNodeAllowed(e){e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(126)){e.exportKind="type";let r=this.startNode();return this.next(),this.match(2)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(r)}else if(this.isContextual(127)){e.exportKind="type";let r=this.startNode();return this.next(),this.flowParseOpaqueType(r,!1)}else if(this.isContextual(125)){e.exportKind="type";let r=this.startNode();return this.next(),this.flowParseInterface(r)}else if(this.isContextual(122)){e.exportKind="value";let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(126)&&this.lookahead().type===51?(e.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:r}=this.state,i=super.maybeParseExportNamespaceSpecifier(e);return i&&e.exportKind==="type"&&this.unexpected(r),i}parseClassId(e,r,i){if((!r||i)&&this.isContextual(109)){e.id=null;return}super.parseClassId(e,r,i),this.match(43)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,r,i){let{startLoc:a}=this.state;if(this.isContextual(121)){if(super.parseClassMemberFromModifier(e,r))return;r.declare=!0}super.parseClassMember(e,r,i),r.declare&&(r.type!=="ClassProperty"&&r.type!=="ClassPrivateProperty"&&r.type!=="PropertyDefinition"?this.raise(g.DeclareClassElement,a):r.value&&this.raise(g.DeclareClassFieldInitializer,r.value))}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){let e=super.readWord1(),r="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(p.InvalidIdentifier,this.state.curPosition(),{identifierName:r}),this.finishToken(128,r)}getTokenFromCode(e){let r=this.input.charCodeAt(this.state.pos+1);e===123&&r===124?this.finishOp(3,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?44:43,1):this.state.inType&&e===63?r===46?this.finishOp(14,2):this.finishOp(13,1):ir(e,r,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,r){return e.type==="TypeCastExpression"?this.isAssignable(e.expression,r):super.isAssignable(e,r)}toAssignable(e,r=!1){!r&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,r)}toAssignableListItem(e,r,i){let a=e[r];a.type==="TypeCastExpression"&&(e[r]=this.typeCastToParameter(a)),super.toAssignableListItem(e,r,i)}toReferencedList(e,r){var i;for(let a=0;a<e.length;a++){let n=e[a];(n==null?void 0:n.type)==="TypeCastExpression"&&!((i=n.extra)!=null&&i.parenthesized)&&(e.length>1||!r)&&this.raise(g.TypeCastInPattern,n.typeAnnotation)}return e}parseArrayLike(e,r){let i=super.parseArrayLike(e,r);return i.type==="ArrayExpression"&&this.toReferencedList(i.elements),i}isValidLVal(e,r,i,a){return e==="TypeCastExpression"||super.isValidLVal(e,r,i,a)}parseClassProperty(e){return this.match(10)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(10)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(43)||super.isClassMethod()}isClassProperty(){return this.match(10)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(10)&&super.isNonstaticConstructor(e)}pushClassMethod(e,r,i,a,n,o){if(r.variance&&this.unexpected(r.variance.start),delete r.variance,this.match(43)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,r,i,a,n,o),r.params&&n){let l=r.params;l.length>0&&this.isThisParam(l[0])&&this.raise(g.ThisParamBannedInConstructor,r)}else if(r.type==="MethodDefinition"&&n&&r.value.params){let l=r.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(g.ThisParamBannedInConstructor,r)}}pushClassPrivateMethod(e,r,i,a){r.variance&&this.unexpected(r.variance.start),delete r.variance,this.match(43)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,r,i,a)}flowParseClassImplements(){let e=this.startNode();return e.id=this.flowParseRestrictedIdentifier(!0),this.match(43)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"ClassImplements")}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(43)||this.match(47))&&(e.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.eatContextual(109)){let r=e.implements=[];do r.push(this.flowParseClassImplements());while(this.eat(8))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let r=this.getObjectOrClassMethodParams(e);if(r.length>0){let i=r[0];this.isThisParam(i)&&e.kind==="get"?this.raise(g.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(g.SetterMayNotHaveThisParam,i)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,r,i,a,n,o,l){e.variance&&this.unexpected(e.variance.start),delete e.variance;let h;this.match(43)&&!o&&(h=this.flowParseTypeParameterDeclaration(),this.match(6)||this.unexpected());let u=super.parseObjPropValue(e,r,i,a,n,o,l);return h&&((u.value||u).typeParameters=h),u}parseFunctionParamType(e){return this.eat(13)&&(e.type!=="Identifier"&&this.raise(g.PatternIsOptional,e),this.isThisParam(e)&&this.raise(g.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(10)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(g.ThisParamAnnotationRequired,e),this.match(25)&&this.isThisParam(e)&&this.raise(g.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,r){let i=super.parseMaybeDefault(e,r);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(g.TypeBeforeInitializer,i.typeAnnotation),i}parseImportSpecifierLocal(e,r,i){r.local=St(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(r,i))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(126)){if(!e)return!0;let r=this.lookaheadCharCode();return r===123||r===42}return!e&&this.isContextual(83)}applyImportPhase(e,r,i,a){if(super.applyImportPhase(e,r,i,a),r){if(!i&&this.match(61))return;e.exportKind=i==="type"?i:"value"}else i==="type"&&this.match(51)&&this.unexpected(),e.importKind=i==="type"||i==="typeof"?i:"value"}parseImportSpecifier(e,r,i,a,n){let o=e.imported,l=null;o.type==="Identifier"&&(o.name==="type"?l="type":o.name==="typeof"&&(l="typeof"));let h=!1;if(this.isContextual(89)&&!this.isLookaheadContextual("as")){let m=this.parseIdentifier(!0);l!==null&&!j(this.state.type)?(e.imported=m,e.importKind=l,e.local=this.cloneIdentifier(m)):(e.imported=o,e.importKind=null,e.local=this.parseIdentifier())}else{if(l!==null&&j(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=l;else{if(r)throw this.raise(p.ImportBindingIsString,e,{importName:o.value});e.imported=o,e.importKind=null}this.eatContextual(89)?e.local=this.parseIdentifier():(h=!0,e.local=this.cloneIdentifier(e.imported))}let u=St(e);return i&&u&&this.raise(g.ImportTypeShorthandOnlyInPureImport,e),(i||u)&&this.checkReservedType(e.local.name,e.local.start,!0),h&&!i&&!u&&this.checkReservedWord(e.local.name,e.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return this.state.type===74?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,r){let i=e.kind;i!=="get"&&i!=="set"&&this.match(43)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,r)}parseVarId(e,r){super.parseVarId(e,r),this.match(10)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,r){if(this.match(10)){let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=i}return super.parseAsyncArrowFromCallExpression(e,r)}shouldParseAsyncArrow(){return this.match(10)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,r){let i=null,a;if(this.hasPlugin("jsx")&&(this.match(138)||this.match(43))){if(i=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(e,r),i),!a.error)return a.node;let{context:n}=this.state,o=n[n.length-1];(o===w.j_oTag||o===w.j_expr)&&n.pop()}if(a!=null&&a.error||this.match(43)){i=i||this.state.clone();let n,o=this.tryParse(h=>{var d;n=this.flowParseTypeParameterDeclaration();let u=this.forwardNoArrowParamsConversionAt(n,()=>{let P=super.parseMaybeAssign(e,r);return this.resetStartLocationFromNode(P,n),P});(d=u.extra)!=null&&d.parenthesized&&h();let m=this.maybeUnwrapTypeCastExpression(u);return m.type!=="ArrowFunctionExpression"&&h(),m.typeParameters=n,this.resetStartLocationFromNode(m,n),u},i),l=null;if(o.node&&this.maybeUnwrapTypeCastExpression(o.node).type==="ArrowFunctionExpression"){if(!o.error&&!o.aborted)return o.node.async&&this.raise(g.UnexpectedTypeParameterBeforeAsyncArrowFunction,n),o.node;l=o.node}if(a!=null&&a.node)return this.state=a.failState,a.node;if(l)return this.state=o.failState,l;throw a!=null&&a.thrown?a.error:o.thrown?o.error:this.raise(g.UnexpectedTokenAfterTypeParameter,n)}return super.parseMaybeAssign(e,r)}parseArrow(e){if(this.match(10)){let r=this.tryParse(()=>{let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let a=this.startNode();return[a.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(!0),this.state.noAnonFunctionType=i,this.canInsertSemicolon()&&this.unexpected(),this.match(15)||this.unexpected(),a});if(r.thrown)return null;r.error&&(this.state=r.failState),e.returnType=r.node.typeAnnotation?this.finishNode(r.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(10)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,r){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=r:super.setArrowFunctionParameters(e,r)}checkParams(e,r,i,a=!0){if(!(i&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(let n=0;n<e.params.length;n++)this.isThisParam(e.params[n])&&n>0&&this.raise(g.ThisParamMustBeFirst,e.params[n]);super.checkParams(e,r,i,a)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,r,i){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.includes(r.index)){this.next();let a=this.startNodeAt(r);a.callee=e,a.arguments=super.parseCallExpressionArguments(),e=this.finishNode(a,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(43)){let a=this.state.clone(),n=this.tryParse(l=>this.parseAsyncArrowWithTypeParameters(r)||l(),a);if(!n.error&&!n.aborted)return n.node;let o=this.tryParse(()=>super.parseSubscripts(e,r,i),a);if(o.node&&!o.error)return o.node;if(n.node)return this.state=n.failState,n.node;if(o.node)return this.state=o.failState,o.node;throw n.error||o.error}return super.parseSubscripts(e,r,i)}parseSubscript(e,r,i,a){if(this.match(14)&&this.isLookaheadToken_lt()){if(a.optionalChainMember=!0,i)return a.stop=!0,e;this.next();let n=this.startNodeAt(r);return n.callee=e,n.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(6),n.arguments=this.parseCallExpressionArguments(),n.optional=!0,this.finishCallExpression(n,!0)}else if(!i&&this.shouldParseTypes()&&(this.match(43)||this.match(47))){let n=this.startNodeAt(r);n.callee=e;let o=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(6),n.arguments=super.parseCallExpressionArguments(),a.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,a.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(e,r,i,a)}parseNewCallee(e){super.parseNewCallee(e);let r=null;this.shouldParseTypes()&&this.match(43)&&(r=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=r}parseAsyncArrowWithTypeParameters(e){let r=this.startNodeAt(e);if(this.parseFunctionParams(r,!1),!!this.parseArrow(r))return super.parseArrowExpression(r,void 0,!0)}readToken_mult_modulo(e){let r=this.input.charCodeAt(this.state.pos+1);if(e===42&&r===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let r=this.input.charCodeAt(this.state.pos+1);if(e===124&&r===125){this.finishOp(5,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,r){let i=super.parseTopLevel(e,r);return this.state.hasFlowComment&&this.raise(g.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(g.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:e}=this.state,r=2;for(;[32,9].includes(this.input.charCodeAt(e+r));)r++;let i=this.input.charCodeAt(r+e),a=this.input.charCodeAt(r+e+1);return i===58&&a===58?r+2:this.input.slice(r+e,r+e+12)==="flow-include"?r+12:i===58&&a!==58?r:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(p.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,r){this.raise(g.EnumBooleanMemberNotInitialized,e,r)}flowEnumErrorInvalidMemberInitializer(e,r){return this.raise(r.explicitType?r.explicitType==="symbol"?g.EnumInvalidMemberInitializerSymbolType:g.EnumInvalidMemberInitializerPrimaryType:g.EnumInvalidMemberInitializerUnknownType,e,r)}flowEnumErrorNumberMemberNotInitialized(e,r){this.raise(g.EnumNumberMemberNotInitialized,e,r)}flowEnumErrorStringMemberInconsistentlyInitialized(e,r){this.raise(g.EnumStringMemberInconsistentlyInitialized,e,r)}flowEnumMemberInit(){let e=this.state.startLoc,r=()=>this.match(8)||this.match(4);switch(this.state.type){case 131:{let i=this.parseNumericLiteral(this.state.value);if(r())return{type:"number",loc:i.start,value:i};break}case 130:{let i=this.parseStringLiteral(this.state.value);if(r())return{type:"string",loc:i.start,value:i};break}case 81:case 82:{let i=this.parseBooleanLiteral(this.match(81));if(r())return{type:"boolean",loc:i.start,value:i}}}return{type:"invalid",loc:e}}flowEnumMemberRaw(){let e=this.state.startLoc,r=this.parseIdentifier(!0),i=this.eat(25)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:r,init:i}}flowEnumCheckExplicitTypeMismatch(e,r,i){let{explicitType:a}=r;a!==null&&a!==i&&this.flowEnumErrorInvalidMemberInitializer(e,r)}flowEnumMembers({enumName:e,explicitType:r}){let i=new Set,a={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},n=!1;for(;!this.match(4);){if(this.eat(17)){n=!0;break}let o=this.startNode(),{id:l,init:h}=this.flowEnumMemberRaw(),u=l.name;if(u==="")continue;/^[a-z]/.test(u)&&this.raise(g.EnumInvalidMemberName,l,{memberName:u,suggestion:u[0].toUpperCase()+u.slice(1),enumName:e}),i.has(u)&&this.raise(g.EnumDuplicateMemberName,l,{memberName:u,enumName:e}),i.add(u);let m={enumName:e,explicitType:r,memberName:u};switch(o.id=l,h.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(h.loc,m,"boolean"),o.init=h.value,a.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(h.loc,m,"number"),o.init=h.value,a.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(h.loc,m,"string"),o.init=h.value,a.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(h.loc,m);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(h.loc,m);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(h.loc,m);break;default:a.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(4)||this.expect(8)}return{members:a,hasUnknownMembers:n}}flowEnumStringMembers(e,r,{enumName:i}){if(e.length===0)return r;if(r.length===0)return e;if(r.length>e.length){for(let a of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(a,{enumName:i});return r}else{for(let a of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(a,{enumName:i});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(98))return null;if(!C(this.state.type))throw this.raise(g.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:r}=this.state;return this.next(),r!=="boolean"&&r!=="number"&&r!=="string"&&r!=="symbol"&&this.raise(g.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:r}),r}flowEnumBody(e,r){let i=r.name,a=r.start,n=this.flowEnumParseExplicitType({enumName:i});this.expect(2);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:i,explicitType:n});switch(e.hasUnknownMembers=l,n){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(4),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(4),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(4),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(4),this.finishNode(e,"EnumSymbolBody");default:{let h=()=>(e.members=[],this.expect(4),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let u=o.booleanMembers.length,m=o.numberMembers.length,d=o.stringMembers.length,P=o.defaultedMembers.length;if(!u&&!m&&!d&&!P)return h();if(!u&&!m)return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(4),this.finishNode(e,"EnumStringBody");if(!m&&!d&&u>=P){for(let E of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(E.start,{enumName:i,memberName:E.id.name});return e.members=o.booleanMembers,this.expect(4),this.finishNode(e,"EnumBooleanBody")}else if(!u&&!d&&m>=P){for(let E of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(E.start,{enumName:i,memberName:E.id.name});return e.members=o.numberMembers,this.expect(4),this.finishNode(e,"EnumNumberBody")}else return this.raise(g.EnumInconsistentMemberValues,a,{enumName:i}),h()}}}flowParseEnumDeclaration(e){let r=this.parseIdentifier();return e.id=r,e.body=this.flowEnumBody(this.startNode(),r),this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(43)||this.match(47))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let r=this.input.charCodeAt(e+1);return r!==60&&r!==61}return!1}reScan_lt_gt(){let{type:e}=this.state;e===43?(this.state.pos-=1,this.readToken_lt()):e===44&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===47?(this.state.pos-=2,this.finishOp(43,1),43):e}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}},yr=/\r\n|[\r\n\u2028\u2029]/,Te=new RegExp(yr.source,"g");function ee(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Et(t,s,e){for(let r=s;r<e;r++)if(ee(t.charCodeAt(r)))return!0;return!1}var We=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Je=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function xr(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var Pr={AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:t,HTMLEntity:s})=>`Unexpected token \`${t}\`. Did you mean \`${s}\` or \`{'${t}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"},q=R`jsx`(Pr);function J(t){return t?t.type==="JSXOpeningFragment"||t.type==="JSXClosingFragment":!1}function te(t){if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return te(t.object)+"."+te(t.property);throw new Error("Node had unexpected type: "+t.type)}var gr=t=>class extends t{jsxReadToken(){let s="",e=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(q.UnterminatedJsxContent,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:if(this.state.pos===this.state.start){r===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(138)):super.getTokenFromCode(r);return}s+=this.input.slice(e,this.state.pos),this.finishToken(137,s);return;case 38:s+=this.input.slice(e,this.state.pos),s+=this.jsxReadEntity(),e=this.state.pos;break;case 62:case 125:this.raise(q.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:r===125?"}":">"});default:ee(r)?(s+=this.input.slice(e,this.state.pos),s+=this.jsxReadNewLine(!0),e=this.state.pos):++this.state.pos}}}jsxReadNewLine(s){let e=this.input.charCodeAt(this.state.pos),r;return++this.state.pos,e===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,r=s?`
|
|
4
4
|
`:`\r
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function ClearResponse(): import(
|
|
1
|
+
export default function ClearResponse(): import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function ClearTooltip(): import(
|
|
1
|
+
export default function ClearTooltip(): import('react').JSX.Element;
|
|
@@ -67,7 +67,7 @@ export declare class ToolbarMenu extends Component<{
|
|
|
67
67
|
_node: HTMLAnchorElement | null | undefined;
|
|
68
68
|
_listener: ((e: Event) => void) | null | undefined;
|
|
69
69
|
componentWillUnmount(): void;
|
|
70
|
-
render(): import(
|
|
70
|
+
render(): import('react').JSX.Element;
|
|
71
71
|
_subscribe(): void;
|
|
72
72
|
_release(): void;
|
|
73
73
|
handleClick(e: Event): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var mn=Object.defineProperty;var Tn=(k,g,A)=>g in k?mn(k,g,{enumerable:!0,configurable:!0,writable:!0,value:A}):k[g]=A;var Se=(k,g,A)=>Tn(k,typeof g!="symbol"?g+"":g,A);const Nn=require("./index-
|
|
1
|
+
"use strict";var mn=Object.defineProperty;var Tn=(k,g,A)=>g in k?mn(k,g,{enumerable:!0,configurable:!0,writable:!0,value:A}):k[g]=A;var Se=(k,g,A)=>Tn(k,typeof g!="symbol"?g+"":g,A);const Nn=require("./index-BUAEx7ON.js");function In(k,g){for(var A=0;A<g.length;A++){const F=g[A];if(typeof F!="string"&&!Array.isArray(F)){for(const S in F)if(S!=="default"&&!(S in k)){const j=Object.getOwnPropertyDescriptor(F,S);j&&Object.defineProperty(k,S,j.get?j:{enumerable:!0,get:()=>F[S]})}}}return Object.freeze(Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}))}var te={exports:{}},Re;function vn(){return Re||(Re=1,(function(k,g){(function(A){function F(){var S=A();return S.default||S}k.exports=F()})(function(){var A=Object.defineProperty,F=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.prototype.hasOwnProperty,z=(e,t)=>{for(var i in t)A(e,i,{get:t[i],enumerable:!0})},Fe=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of S(t))!j.call(e,n)&&n!==i&&A(e,n,{get:()=>t[n],enumerable:!(r=F(t,n))||r.enumerable});return e},we=e=>Fe(A({},"__esModule",{value:!0}),e),ie={};z(ie,{languages:()=>Ct,options:()=>bt,parsers:()=>he,printers:()=>En});var Pe=(e,t)=>(i,r,...n)=>i|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,n),Me=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},Ve=Pe("replaceAll",function(){if(typeof this=="string")return Me}),H=Ve,Ue=()=>{},Be=Ue,je="indent",Ge="group",Ke="if-break",W="line",$e="break-parent",Ye=Be;function N(e){return{type:je,contents:e}}var qe={type:$e};function y(e,t={}){return Ye(t.expandedStates),{type:Ge,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function R(e,t="",i={}){return{type:Ke,breakContents:e,flatContents:t,groupId:i.groupId}}function E(e,t){let i=[];for(let r=0;r<t.length;r++)r!==0&&i.push(e),i.push(t[r]);return i}var V={type:W},u={type:W,soft:!0},Je={type:W,hard:!0},p=[Je,qe];function Z(e){return(t,i,r)=>{if(i===!1)return!1;let n=!!(r!=null&&r.backwards),{length:s}=t,c=i;for(;c>=0&&c<s;){let l=t.charAt(c);if(e instanceof RegExp){if(!e.test(l))return c}else if(!e.includes(l))return c;n?c--:c++}return c===-1||c===s?c:!1}}var ne=Z(" "),Xe=Z(",; "),Qe=Z(/[^\n\r]/),re=e=>e===`
|
|
2
2
|
`||e==="\r"||e==="\u2028"||e==="\u2029";function ze(e,t,i){if(t===!1)return!1;let r=!!(i!=null&&i.backwards),n=e.charAt(t);if(r){if(e.charAt(t-1)==="\r"&&n===`
|
|
3
3
|
`)return t-2;if(re(n))return t-1}else{if(n==="\r"&&e.charAt(t+1)===`
|
|
4
4
|
`)return t+2;if(re(n))return t+1}return t}var se=ze;function He(e,t,i={}){let r=ne(e,i.backwards?t-1:t,i),n=se(e,r,i);return r!==n}var We=He,Ze=()=>!0;function et(e,t){let i=e.node;return i.printed=!0,t.printer.printComment(e,t)}function ae(e,t,i={}){var O,C;let{indent:r=!1,marker:n,filter:s=Ze}=i,c=new Set((C=(O=e.node)==null?void 0:O.comments)==null?void 0:C.filter(_=>!(_.leading||_.trailing||_.marker!==n||!s(_))));if(c.size===0)return"";let l=e.map(({node:_})=>c.has(_)?et(e,t):"","comments").filter(Boolean),m=E(p,l);return r?N([p,m]):m}function tt(e){return Array.isArray(e)&&e.length>0}var v=tt,it=class extends Error{constructor(t,i,r="type"){super(`Unexpected ${i} node ${r}: ${JSON.stringify(t[r])}.`);Se(this,"name","UnexpectedNodeError");this.node=t}},nt=it,G=null;function K(e){if(G!==null&&typeof G.property){let t=G;return G=K.prototype=null,t}return G=K.prototype=e??Object.create(null),new K}var rt=10;for(let e=0;e<=rt;e++)K();function st(e){return K(e)}function at(e,t="type"){st(e);function i(r){let n=r[t],s=e[n];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return s}return i}var ot=at,I=[["name"],["name","value"],["type"],["description","name","directives"],["description","name","interfaces","directives","fields"],["name","directives"],["name","interfaces","directives","fields"]],ct={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:I[0],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:I[1],FragmentArgument:I[1],FragmentSpread:["name","arguments","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:I[1],Directive:["name","arguments"],NamedType:I[0],ListType:I[2],NonNullType:I[2],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:I[2],ScalarTypeDefinition:I[3],ObjectTypeDefinition:I[4],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:I[4],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:I[3],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:I[5],ScalarTypeExtension:I[5],ObjectTypeExtension:I[6],InterfaceTypeExtension:I[6],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},lt=ot(ct,"kind"),ut=lt,oe=e=>e.loc.start,ce=e=>e.loc.end;function le(e,t){e.kind==="StringValue"&&e.block&&!e.value.includes(`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var mn = Object.defineProperty;
|
|
2
2
|
var Tn = (k, g, A) => g in k ? mn(k, g, { enumerable: !0, configurable: !0, writable: !0, value: A }) : k[g] = A;
|
|
3
3
|
var Se = (k, g, A) => Tn(k, typeof g != "symbol" ? g + "" : g, A);
|
|
4
|
-
import { l as Nn } from "./index-
|
|
4
|
+
import { l as Nn } from "./index-BeL5EO6k.mjs";
|
|
5
5
|
function In(k, g) {
|
|
6
6
|
for (var A = 0; A < g.length; A++) {
|
|
7
7
|
const F = g[A];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var S=Object.defineProperty;var v=(t,e,r)=>e in t?S(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var g=(t,e,r)=>v(t,typeof e!="symbol"?e+"":e,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./toggleHighContrast-
|
|
1
|
+
"use strict";var S=Object.defineProperty;var v=(t,e,r)=>e in t?S(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var g=(t,e,r)=>v(t,typeof e!="symbol"?e+"":e,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./toggleHighContrast-wOS-B-jW.js"),i=require("./index-BUAEx7ON.js"),K=120*1e3;class M{constructor(e){g(this,"_defaults");g(this,"_idleCheckInterval");g(this,"_lastUsedTime",0);g(this,"_configChangeListener");g(this,"_worker",null);g(this,"_client",null);this._defaults=e,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._configChangeListener=this._defaults.onDidChange(()=>{this._stopWorker()})}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>K&&this._stopWorker()}async _getClient(){if(this._lastUsedTime=Date.now(),!this._client&&!this._worker)try{const{languageId:e,formattingOptions:r,schemas:a,externalFragmentDefinitions:l,completionSettings:d}=this._defaults;this._worker=c.editor.createWebWorker({moduleId:"monaco-graphql/esm/GraphQLWorker.js",label:e,createData:{languageId:e,formattingOptions:r,languageConfig:{schemas:a==null?void 0:a.map(i.getStringSchema),externalFragmentDefinitions:l,fillLeafsOnComplete:d.__experimental__fillLeafsOnComplete}}}),this._client=this._worker.getProxy()}catch(e){console.error("error loading worker",e)}return this._client}async getLanguageServiceWorker(...e){const r=await this._getClient();return await this._worker.withSyncedResources(e),r}}class T{constructor(e,r){g(this,"defaults");g(this,"_worker");g(this,"_disposables",[]);g(this,"_listener",Object.create(null));this.defaults=e,this._worker=r,this._worker=r;let a;const l=o=>{var h;const m=i.getModelLanguageId(o);if(m!==this.defaults.languageId)return;const u=o.uri.toString(),p=(h=e.diagnosticSettings.validateVariablesJSON)==null?void 0:h[u];a=setTimeout(()=>{this._doValidate(o.uri,m,p)},400),this._listener[u]=o.onDidChangeContent(()=>{clearTimeout(a),a=setTimeout(()=>{this._doValidate(o.uri,m,p)},400)})},d=o=>{c.editor.setModelMarkers(o,this.defaults.languageId,[]);const m=o.uri.toString(),u=this._listener[m];u&&(u.dispose(),delete this._listener[m])};this._disposables.push(c.editor.onDidCreateModel(l),{dispose(){clearTimeout(a)}},c.editor.onWillDisposeModel(o=>{d(o)}),c.editor.onDidChangeModelLanguage(o=>{d(o.model),l(o.model)}),{dispose:()=>{for(const o of Object.values(this._listener))o.dispose()}},e.onDidChange(()=>{for(const o of c.editor.getModels())i.getModelLanguageId(o)===this.defaults.languageId&&(d(o),l(o))}));for(const o of c.editor.getModels())i.getModelLanguageId(o)===this.defaults.languageId&&l(o)}dispose(){for(const e of this._disposables)e.dispose();this._disposables=[]}async _doValidate(e,r,a){var o;const l=await this._worker(e);if(!l)return;const d=await l.doValidation(e.toString());if(c.editor.setModelMarkers(c.editor.getModel(e),r,d),a){if(await Promise.resolve().then(()=>require("./toggleHighContrast-wOS-B-jW.js")).then(_=>_.monaco_contribution),!a.length)throw new Error("No variables URI strings provided to validate");const m=await l.doGetVariablesJSONSchema(e.toString());if(!m)return;const u=c.Uri.file(a[0].replace(".json","-schema.json")).toString(),p={uri:u,schema:m,fileMatch:a},h=((o=c.languages.json.jsonDefaults.diagnosticsOptions.schemas)==null?void 0:o.filter(_=>_.uri!==u))||[];c.languages.json.jsonDefaults.setDiagnosticsOptions({schemaValidation:"error",validate:!0,...this.defaults.diagnosticSettings.jsonDiagnosticSettings,schemas:[...h,p],enableSchemaRequest:!1})}}}const n=c.languages.CompletionItemKind,I={[i.CompletionItemKind.Text]:n.Text,[i.CompletionItemKind.Method]:n.Method,[i.CompletionItemKind.Function]:n.Function,[i.CompletionItemKind.Constructor]:n.Constructor,[i.CompletionItemKind.Field]:n.Field,[i.CompletionItemKind.Variable]:n.Variable,[i.CompletionItemKind.Class]:n.Class,[i.CompletionItemKind.Interface]:n.Interface,[i.CompletionItemKind.Module]:n.Module,[i.CompletionItemKind.Property]:n.Property,[i.CompletionItemKind.Unit]:n.Unit,[i.CompletionItemKind.Value]:n.Value,[i.CompletionItemKind.Enum]:n.Enum,[i.CompletionItemKind.Keyword]:n.Keyword,[i.CompletionItemKind.Snippet]:n.Snippet,[i.CompletionItemKind.Color]:n.Color,[i.CompletionItemKind.File]:n.File,[i.CompletionItemKind.Reference]:n.Reference,[i.CompletionItemKind.Folder]:n.Folder,[i.CompletionItemKind.EnumMember]:n.EnumMember,[i.CompletionItemKind.Constant]:n.Constant,[i.CompletionItemKind.Struct]:n.Struct,[i.CompletionItemKind.Event]:n.Event,[i.CompletionItemKind.Operator]:n.Operator,[i.CompletionItemKind.TypeParameter]:n.TypeParameter};function b(t){return t in I?I[t]:n.Text}function x(t){return{range:t.range,kind:b(t.kind),label:t.label,insertText:t.insertText??t.label,insertTextRules:t.insertText?c.languages.CompletionItemInsertTextRule.InsertAsSnippet:void 0,sortText:t.sortText,filterText:t.filterText,documentation:t.documentation,detail:t.detail,command:t.command}}class F{constructor(e){g(this,"_worker");this._worker=e,this._worker=e}get triggerCharacters(){return[":","$"," ","(","@"]}async provideCompletionItems(e,r,a,l){try{return{incomplete:!0,suggestions:(await(await this._worker(e.uri)).doComplete(e.uri.toString(),r)).map(x)}}catch(d){return console.error("Error fetching completion items",d),{suggestions:[]}}}}class O{constructor(e){g(this,"_worker");this._worker=e,this._worker=e}async provideDocumentFormattingEdits(e,r,a){const d=await(await this._worker(e.uri)).doFormat(e.uri.toString());return d?[{range:e.getFullModelRange(),text:d}]:[]}}class L{constructor(e){g(this,"_worker");this._worker=e}async provideHover(e,r,a){const l=e.uri,o=await(await this._worker(e.uri)).doHover(l.toString(),r);return o?{range:o.range,contents:[{value:o.content}]}:{contents:[]}}dispose(){}}function E(t){const e=[],r=[],a=new M(t);e.push(a);const l=(...s)=>{try{return a.getLanguageServiceWorker(...s)}catch{throw new Error("Error fetching graphql language service worker")}};function d(){const{modeConfiguration:s,languageId:f}=t;s.documentFormattingEdits&&r.push(c.languages.registerDocumentFormattingEditProvider(f,new O(l)))}function o(s){const{modeConfiguration:f,languageId:C}=t;w(r),f.completionItems&&r.push(c.languages.registerCompletionItemProvider(C,new F(l))),f.diagnostics&&r.push(new T(s,l)),f.hovers&&r.push(c.languages.registerHoverProvider(C,new L(l))),d()}let{modeConfiguration:m,formattingOptions:u,diagnosticSettings:p,externalFragmentDefinitions:h,schemas:_}=t;return o(t),t.onDidChange(s=>{s.modeConfiguration!==m&&(m=s.modeConfiguration,o(s)),s.formattingOptions!==u&&(u=s.formattingOptions,d()),s.externalFragmentDefinitions!==h&&(h=s.externalFragmentDefinitions,o(s)),s.diagnosticSettings!==p&&(p=s.diagnosticSettings,o(s)),s.schemas!==_&&(_=s.schemas,o(s))}),e.push(k(r)),k(e)}function k(t){return{dispose:()=>w(t)}}function w(t){for(;t.length;)t.pop().dispose()}exports.setupMode=E;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var M = Object.defineProperty;
|
|
2
2
|
var T = (t, e, r) => e in t ? M(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var d = (t, e, r) => T(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
-
import { e as u, U as x, l as f } from "./toggleHighContrast-
|
|
5
|
-
import { m as F, n as w, o as s } from "./index-
|
|
4
|
+
import { e as u, U as x, l as f } from "./toggleHighContrast-Bg1xTq_N.mjs";
|
|
5
|
+
import { m as F, n as w, o as s } from "./index-BeL5EO6k.mjs";
|
|
6
6
|
const b = 120 * 1e3;
|
|
7
7
|
class O {
|
|
8
8
|
constructor(e) {
|
|
@@ -112,7 +112,7 @@ class E {
|
|
|
112
112
|
return;
|
|
113
113
|
const l = await c.doValidation(e.toString());
|
|
114
114
|
if (u.setModelMarkers(u.getModel(e), r, l), a) {
|
|
115
|
-
if (await import("./toggleHighContrast-
|
|
115
|
+
if (await import("./toggleHighContrast-Bg1xTq_N.mjs").then((_) => _.d), !a.length)
|
|
116
116
|
throw new Error("No variables URI strings provided to validate");
|
|
117
117
|
const g = await c.doGetVariablesJSONSchema(e.toString());
|
|
118
118
|
if (!g)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BUAEx7ON.js");function V(c){const{schema:d,context:O,roots:P,parse:I,validate:N,execute:W,subscribe:j,connectionInitWaitTimeout:v=3e3,onConnect:A,onDisconnect:C,onPing:M,onPong:S,onClose:g,onSubscribe:h,onOperation:E,onNext:L,onError:_,onComplete:G,jsonMessageReviver:H,jsonMessageReplacer:m}=c;return{opened(t,$){const a={connectionInitReceived:!1,acknowledged:!1,subscriptions:Object.create(null),extra:$};if(t.protocol!==e.GRAPHQL_TRANSPORT_WS_PROTOCOL)return t.close(e.CloseCode.SubprotocolNotAcceptable,"Subprotocol not acceptable"),async(w,b)=>{await(g==null?void 0:g(a,w,b))};const Q=v>0&&isFinite(v)?setTimeout(()=>{a.connectionInitReceived||t.close(e.CloseCode.ConnectionInitialisationTimeout,"Connection initialisation timeout")},v):null;return t.onMessage(async function(b){var R;let r;try{r=e.parseMessage(b,H)}catch{return t.close(e.CloseCode.BadRequest,"Invalid message received")}switch(r.type){case e.MessageType.ConnectionInit:{if(a.connectionInitReceived)return t.close(e.CloseCode.TooManyInitialisationRequests,"Too many initialisation requests");a.connectionInitReceived=!0,e.isObject(r.payload)&&(a.connectionParams=r.payload);const s=await(A==null?void 0:A(a));if(s===!1)return t.close(e.CloseCode.Forbidden,"Forbidden");a.acknowledged=!0,await t.send(e.stringifyMessage(e.isObject(s)?{type:e.MessageType.ConnectionAck,payload:s}:{type:e.MessageType.ConnectionAck},m));return}case e.MessageType.Ping:{if(await(M==null?void 0:M(a,r.payload)),t.onPing)return await t.onPing(r.payload);await t.send(e.stringifyMessage(r.payload?{type:e.MessageType.Pong,payload:r.payload}:{type:e.MessageType.Pong}));return}case e.MessageType.Pong:return await(S==null?void 0:S(a,r.payload)),await((R=t.onPong)==null?void 0:R.call(t,r.payload));case e.MessageType.Subscribe:{if(!a.acknowledged)return t.close(e.CloseCode.Unauthorized,"Unauthorized");const{id:s,payload:T}=r;if(s in a.subscriptions)return t.close(e.CloseCode.SubscriberAlreadyExists,`Subscriber for ${s} already exists`);a.subscriptions[s]=null;const y={next:async(i,{id:n,payload:p},o)=>{const{errors:f,...u}=i,l=await(L==null?void 0:L(a,n,p,o,i));await t.send(e.stringifyMessage({id:n,type:e.MessageType.Next,payload:l||{...u,...f?{errors:f.map(q=>q.toJSON())}:{}}},m))},error:async(i,{id:n,payload:p})=>{const o=await(_==null?void 0:_(a,n,p,i));await t.send(e.stringifyMessage({id:n,type:e.MessageType.Error,payload:o||i.map(f=>f.toJSON())},m))},complete:async(i,{id:n,payload:p})=>{await(G==null?void 0:G(a,n,p)),i&&await t.send(e.stringifyMessage({id:n,type:e.MessageType.Complete},m))}};try{let i;const n=await(h==null?void 0:h(a,r.id,r.payload));if(n){if(x(n))return s in a.subscriptions?await y.error(n,r):void 0;if(Array.isArray(n))throw new Error("Invalid return value from onSubscribe hook, expected an array of GraphQLError objects");i=n}else{if(!d)throw new Error("The GraphQL schema is not provided");const u={operationName:T.operationName,document:(I??e.parse)(T.query),variableValues:T.variables};i={...u,schema:typeof d=="function"?await d(a,s,T,u):d};const l=(N??e.validate)(i.schema,i.document);if(l.length>0)return s in a.subscriptions?await y.error(l,r):void 0}const p=e.getOperationAST(i.document,i.operationName);if(!p)return s in a.subscriptions?await y.error([new e.GraphQLError("Unable to identify operation")],r):void 0;"rootValue"in i||(i.rootValue=P==null?void 0:P[p.operation]),"contextValue"in i||(i.contextValue=typeof O=="function"?await O(a,s,T,i):O);let o;p.operation==="subscription"?o=await(j??e.subscribe)(i):o=await(W??e.execute)(i);const f=await(E==null?void 0:E(a,s,T,i,o));if(f&&(o=f),e.isAsyncIterable(o))if(!(s in a.subscriptions))e.isAsyncGenerator(o)&&o.return(void 0);else{a.subscriptions[s]=o;try{for await(const u of o)await y.next(u,r,i)}catch(u){const l=u instanceof Error?u:new Error(String(u));await y.error([e.versionInfo.major>=17?new e.GraphQLError(l.message,{cause:l}):e.versionInfo.major>=16?new e.GraphQLError(l.message,{originalError:l}):new e.GraphQLError(l.message,null,null,null,null,l)],r),delete a.subscriptions[s]}}else s in a.subscriptions&&await y.next(o,r,i);await y.complete(s in a.subscriptions,r)}finally{delete a.subscriptions[s]}return}case e.MessageType.Complete:{const s=a.subscriptions[r.id];delete a.subscriptions[r.id],e.isAsyncGenerator(s)&&await s.return(void 0);return}default:throw new Error(`Unexpected message of type ${r.type} received`)}}),async(w,b)=>{Q&&clearTimeout(Q);const r={...a.subscriptions};a.subscriptions=Object.create(null),await Promise.all(Object.values(r).filter(e.isAsyncGenerator).map(R=>R.return(void 0))),a.acknowledged&&await(C==null?void 0:C(a,w,b)),await(g==null?void 0:g(a,w,b))}}}}function U(c){switch(!0){case(c instanceof Set&&c.has(e.GRAPHQL_TRANSPORT_WS_PROTOCOL)):case(Array.isArray(c)&&c.includes(e.GRAPHQL_TRANSPORT_WS_PROTOCOL)):case(typeof c=="string"&&c.split(",").map(d=>d.trim()).includes(e.GRAPHQL_TRANSPORT_WS_PROTOCOL)):return e.GRAPHQL_TRANSPORT_WS_PROTOCOL;default:return!1}}function x(c){return Array.isArray(c)&&c.length>0&&c.every(d=>d instanceof e.GraphQLError)}exports.CloseCode=e.CloseCode;exports.DEPRECATED_GRAPHQL_WS_PROTOCOL=e.DEPRECATED_GRAPHQL_WS_PROTOCOL;exports.GRAPHQL_TRANSPORT_WS_PROTOCOL=e.GRAPHQL_TRANSPORT_WS_PROTOCOL;exports.MessageType=e.MessageType;exports.TerminatedCloseEvent=e.TerminatedCloseEvent;exports.createClient=e.createClient;exports.parseMessage=e.parseMessage;exports.stringifyMessage=e.stringifyMessage;exports.validateMessage=e.validateMessage;exports.areGraphQLErrors=x;exports.handleProtocols=U;exports.makeServer=V;
|