@lssm/lib.contracts 0.0.0-canary-20251217034842 → 0.0.0-canary-20251217053014

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/package.json +5 -4
  2. package/dist/node_modules/@pothos/plugin-complexity/esm/calculate-complexity.js +0 -1
  3. package/dist/node_modules/@pothos/plugin-complexity/esm/defaults.js +0 -1
  4. package/dist/node_modules/@pothos/plugin-complexity/esm/index.js +0 -1
  5. package/dist/node_modules/@pothos/plugin-complexity/esm/types.js +0 -1
  6. package/dist/node_modules/@pothos/plugin-complexity/esm/util.js +0 -1
  7. package/dist/node_modules/@pothos/plugin-complexity/esm/validator.js +0 -1
  8. package/dist/node_modules/@pothos/plugin-dataloader/esm/field-builder.js +0 -1
  9. package/dist/node_modules/@pothos/plugin-dataloader/esm/index.js +0 -1
  10. package/dist/node_modules/@pothos/plugin-dataloader/esm/refs/index.js +0 -1
  11. package/dist/node_modules/@pothos/plugin-dataloader/esm/refs/interface.js +0 -1
  12. package/dist/node_modules/@pothos/plugin-dataloader/esm/refs/node.js +0 -1
  13. package/dist/node_modules/@pothos/plugin-dataloader/esm/refs/object.js +0 -1
  14. package/dist/node_modules/@pothos/plugin-dataloader/esm/refs/union.js +0 -1
  15. package/dist/node_modules/@pothos/plugin-dataloader/esm/schema-builder.js +0 -1
  16. package/dist/node_modules/@pothos/plugin-dataloader/esm/util.js +0 -1
  17. package/dist/node_modules/@pothos/plugin-prisma/esm/connection-helpers.js +0 -1
  18. package/dist/node_modules/@pothos/plugin-prisma/esm/field-builder.js +0 -1
  19. package/dist/node_modules/@pothos/plugin-prisma/esm/index.js +0 -1
  20. package/dist/node_modules/@pothos/plugin-prisma/esm/interface-ref.js +0 -1
  21. package/dist/node_modules/@pothos/plugin-prisma/esm/model-loader.js +0 -1
  22. package/dist/node_modules/@pothos/plugin-prisma/esm/node-ref.js +0 -1
  23. package/dist/node_modules/@pothos/plugin-prisma/esm/object-ref.js +0 -1
  24. package/dist/node_modules/@pothos/plugin-prisma/esm/prisma-field-builder.js +0 -1
  25. package/dist/node_modules/@pothos/plugin-prisma/esm/schema-builder.js +0 -1
  26. package/dist/node_modules/@pothos/plugin-prisma/esm/types.js +0 -0
  27. package/dist/node_modules/@pothos/plugin-prisma/esm/util/cursors.js +0 -1
  28. package/dist/node_modules/@pothos/plugin-prisma/esm/util/datamodel.js +0 -1
  29. package/dist/node_modules/@pothos/plugin-prisma/esm/util/deep-equal.js +0 -1
  30. package/dist/node_modules/@pothos/plugin-prisma/esm/util/description.js +0 -1
  31. package/dist/node_modules/@pothos/plugin-prisma/esm/util/get-client.js +0 -1
  32. package/dist/node_modules/@pothos/plugin-prisma/esm/util/loader-map.js +0 -1
  33. package/dist/node_modules/@pothos/plugin-prisma/esm/util/map-query.js +0 -1
  34. package/dist/node_modules/@pothos/plugin-prisma/esm/util/relation-map.js +0 -1
  35. package/dist/node_modules/@pothos/plugin-prisma/esm/util/selections.js +0 -1
  36. package/dist/node_modules/@pothos/plugin-prisma/esm/util/usage.js +0 -1
  37. package/dist/node_modules/@pothos/plugin-tracing/esm/index.js +0 -1
  38. package/dist/node_modules/@pothos/plugin-tracing/esm/util.js +0 -1
  39. package/dist/node_modules/dataloader/index.js +0 -7
  40. package/dist/node_modules/graphql/error/GraphQLError.js +0 -5
  41. package/dist/node_modules/graphql/error/index.js +0 -1
  42. package/dist/node_modules/graphql/error/locatedError.js +0 -1
  43. package/dist/node_modules/graphql/error/syntaxError.js +0 -1
  44. package/dist/node_modules/graphql/execution/collectFields.js +0 -1
  45. package/dist/node_modules/graphql/execution/execute.js +0 -1
  46. package/dist/node_modules/graphql/execution/index.js +0 -1
  47. package/dist/node_modules/graphql/execution/mapAsyncIterator.js +0 -1
  48. package/dist/node_modules/graphql/execution/subscribe.js +0 -1
  49. package/dist/node_modules/graphql/execution/values.js +0 -1
  50. package/dist/node_modules/graphql/graphql.js +0 -1
  51. package/dist/node_modules/graphql/index.js +0 -1
  52. package/dist/node_modules/graphql/jsutils/Path.js +0 -1
  53. package/dist/node_modules/graphql/jsutils/devAssert.js +0 -1
  54. package/dist/node_modules/graphql/jsutils/didYouMean.js +0 -1
  55. package/dist/node_modules/graphql/jsutils/groupBy.js +0 -1
  56. package/dist/node_modules/graphql/jsutils/identityFunc.js +0 -1
  57. package/dist/node_modules/graphql/jsutils/inspect.js +0 -1
  58. package/dist/node_modules/graphql/jsutils/instanceOf.js +0 -12
  59. package/dist/node_modules/graphql/jsutils/invariant.js +0 -1
  60. package/dist/node_modules/graphql/jsutils/isAsyncIterable.js +0 -1
  61. package/dist/node_modules/graphql/jsutils/isIterableObject.js +0 -1
  62. package/dist/node_modules/graphql/jsutils/isObjectLike.js +0 -1
  63. package/dist/node_modules/graphql/jsutils/isPromise.js +0 -1
  64. package/dist/node_modules/graphql/jsutils/keyMap.js +0 -1
  65. package/dist/node_modules/graphql/jsutils/keyValMap.js +0 -1
  66. package/dist/node_modules/graphql/jsutils/mapValue.js +0 -1
  67. package/dist/node_modules/graphql/jsutils/memoize3.js +0 -1
  68. package/dist/node_modules/graphql/jsutils/naturalCompare.js +0 -1
  69. package/dist/node_modules/graphql/jsutils/printPathArray.js +0 -1
  70. package/dist/node_modules/graphql/jsutils/promiseForObject.js +0 -1
  71. package/dist/node_modules/graphql/jsutils/promiseReduce.js +0 -1
  72. package/dist/node_modules/graphql/jsutils/suggestionList.js +0 -1
  73. package/dist/node_modules/graphql/jsutils/toError.js +0 -1
  74. package/dist/node_modules/graphql/jsutils/toObjMap.js +0 -1
  75. package/dist/node_modules/graphql/language/ast.js +0 -1
  76. package/dist/node_modules/graphql/language/blockString.js +0 -3
  77. package/dist/node_modules/graphql/language/characterClasses.js +0 -1
  78. package/dist/node_modules/graphql/language/directiveLocation.js +0 -1
  79. package/dist/node_modules/graphql/language/index.js +0 -1
  80. package/dist/node_modules/graphql/language/kinds.js +0 -1
  81. package/dist/node_modules/graphql/language/lexer.js +0 -3
  82. package/dist/node_modules/graphql/language/location.js +0 -1
  83. package/dist/node_modules/graphql/language/parser.js +0 -1
  84. package/dist/node_modules/graphql/language/predicates.js +0 -1
  85. package/dist/node_modules/graphql/language/printLocation.js +0 -2
  86. package/dist/node_modules/graphql/language/printString.js +0 -1
  87. package/dist/node_modules/graphql/language/printer.js +0 -34
  88. package/dist/node_modules/graphql/language/schemaCoordinateLexer.js +0 -1
  89. package/dist/node_modules/graphql/language/source.js +0 -1
  90. package/dist/node_modules/graphql/language/tokenKind.js +0 -1
  91. package/dist/node_modules/graphql/language/visitor.js +0 -1
  92. package/dist/node_modules/graphql/type/assertName.js +0 -1
  93. package/dist/node_modules/graphql/type/definition.js +0 -1
  94. package/dist/node_modules/graphql/type/directives.js +0 -1
  95. package/dist/node_modules/graphql/type/index.js +0 -1
  96. package/dist/node_modules/graphql/type/introspection.js +0 -3
  97. package/dist/node_modules/graphql/type/scalars.js +0 -1
  98. package/dist/node_modules/graphql/type/schema.js +0 -1
  99. package/dist/node_modules/graphql/type/validate.js +0 -3
  100. package/dist/node_modules/graphql/utilities/TypeInfo.js +0 -1
  101. package/dist/node_modules/graphql/utilities/assertValidName.js +0 -1
  102. package/dist/node_modules/graphql/utilities/astFromValue.js +0 -1
  103. package/dist/node_modules/graphql/utilities/buildASTSchema.js +0 -1
  104. package/dist/node_modules/graphql/utilities/buildClientSchema.js +0 -1
  105. package/dist/node_modules/graphql/utilities/coerceInputValue.js +0 -1
  106. package/dist/node_modules/graphql/utilities/concatAST.js +0 -1
  107. package/dist/node_modules/graphql/utilities/extendSchema.js +0 -1
  108. package/dist/node_modules/graphql/utilities/findBreakingChanges.js +0 -1
  109. package/dist/node_modules/graphql/utilities/getIntrospectionQuery.js +0 -107
  110. package/dist/node_modules/graphql/utilities/getOperationAST.js +0 -1
  111. package/dist/node_modules/graphql/utilities/getOperationRootType.js +0 -1
  112. package/dist/node_modules/graphql/utilities/index.js +0 -1
  113. package/dist/node_modules/graphql/utilities/introspectionFromSchema.js +0 -1
  114. package/dist/node_modules/graphql/utilities/lexicographicSortSchema.js +0 -1
  115. package/dist/node_modules/graphql/utilities/printSchema.js +0 -13
  116. package/dist/node_modules/graphql/utilities/resolveSchemaCoordinate.js +0 -1
  117. package/dist/node_modules/graphql/utilities/separateOperations.js +0 -1
  118. package/dist/node_modules/graphql/utilities/sortValueNode.js +0 -1
  119. package/dist/node_modules/graphql/utilities/stripIgnoredCharacters.js +0 -1
  120. package/dist/node_modules/graphql/utilities/typeComparators.js +0 -1
  121. package/dist/node_modules/graphql/utilities/typeFromAST.js +0 -1
  122. package/dist/node_modules/graphql/utilities/valueFromAST.js +0 -1
  123. package/dist/node_modules/graphql/utilities/valueFromASTUntyped.js +0 -1
  124. package/dist/node_modules/graphql/validation/ValidationContext.js +0 -1
  125. package/dist/node_modules/graphql/validation/index.js +0 -1
  126. package/dist/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js +0 -1
  127. package/dist/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js +0 -1
  128. package/dist/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js +0 -1
  129. package/dist/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js +0 -1
  130. package/dist/node_modules/graphql/validation/rules/KnownDirectivesRule.js +0 -1
  131. package/dist/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js +0 -1
  132. package/dist/node_modules/graphql/validation/rules/KnownTypeNamesRule.js +0 -1
  133. package/dist/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js +0 -1
  134. package/dist/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js +0 -1
  135. package/dist/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.js +0 -1
  136. package/dist/node_modules/graphql/validation/rules/NoFragmentCyclesRule.js +0 -1
  137. package/dist/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js +0 -1
  138. package/dist/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js +0 -1
  139. package/dist/node_modules/graphql/validation/rules/NoUnusedVariablesRule.js +0 -1
  140. package/dist/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js +0 -1
  141. package/dist/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js +0 -1
  142. package/dist/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js +0 -1
  143. package/dist/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js +0 -1
  144. package/dist/node_modules/graphql/validation/rules/ScalarLeafsRule.js +0 -1
  145. package/dist/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js +0 -1
  146. package/dist/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js +0 -1
  147. package/dist/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js +0 -1
  148. package/dist/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js +0 -1
  149. package/dist/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js +0 -1
  150. package/dist/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js +0 -1
  151. package/dist/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js +0 -1
  152. package/dist/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js +0 -1
  153. package/dist/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js +0 -1
  154. package/dist/node_modules/graphql/validation/rules/UniqueOperationNamesRule.js +0 -1
  155. package/dist/node_modules/graphql/validation/rules/UniqueOperationTypesRule.js +0 -1
  156. package/dist/node_modules/graphql/validation/rules/UniqueTypeNamesRule.js +0 -1
  157. package/dist/node_modules/graphql/validation/rules/UniqueVariableNamesRule.js +0 -1
  158. package/dist/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js +0 -1
  159. package/dist/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js +0 -1
  160. package/dist/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js +0 -1
  161. package/dist/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.js +0 -1
  162. package/dist/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js +0 -1
  163. package/dist/node_modules/graphql/validation/specifiedRules.js +0 -1
  164. package/dist/node_modules/graphql/validation/validate.js +0 -5
  165. package/dist/node_modules/graphql/version.js +0 -1
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_location as t}from"./location.js";import{require_printLocation as n}from"./printLocation.js";import{require_ast as r}from"./ast.js";import{require_directiveLocation as i}from"./directiveLocation.js";import{require_kinds as a}from"./kinds.js";import{require_tokenKind as o}from"./tokenKind.js";import{require_lexer as s}from"./lexer.js";import{require_source as c}from"./source.js";import{require_parser as l}from"./parser.js";import{require_visitor as u}from"./visitor.js";import{require_printer as d}from"./printer.js";import{require_predicates as f}from"./predicates.js";var p=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),Object.defineProperty(e,`BREAK`,{enumerable:!0,get:function(){return x.BREAK}}),Object.defineProperty(e,`DirectiveLocation`,{enumerable:!0,get:function(){return w.DirectiveLocation}}),Object.defineProperty(e,`Kind`,{enumerable:!0,get:function(){return g.Kind}}),Object.defineProperty(e,`Lexer`,{enumerable:!0,get:function(){return v.Lexer}}),Object.defineProperty(e,`Location`,{enumerable:!0,get:function(){return S.Location}}),Object.defineProperty(e,`OperationTypeNode`,{enumerable:!0,get:function(){return S.OperationTypeNode}}),Object.defineProperty(e,`Source`,{enumerable:!0,get:function(){return p.Source}}),Object.defineProperty(e,`Token`,{enumerable:!0,get:function(){return S.Token}}),Object.defineProperty(e,`TokenKind`,{enumerable:!0,get:function(){return _.TokenKind}}),Object.defineProperty(e,`getEnterLeaveForKind`,{enumerable:!0,get:function(){return x.getEnterLeaveForKind}}),Object.defineProperty(e,`getLocation`,{enumerable:!0,get:function(){return m.getLocation}}),Object.defineProperty(e,`getVisitFn`,{enumerable:!0,get:function(){return x.getVisitFn}}),Object.defineProperty(e,`isConstValueNode`,{enumerable:!0,get:function(){return C.isConstValueNode}}),Object.defineProperty(e,`isDefinitionNode`,{enumerable:!0,get:function(){return C.isDefinitionNode}}),Object.defineProperty(e,`isExecutableDefinitionNode`,{enumerable:!0,get:function(){return C.isExecutableDefinitionNode}}),Object.defineProperty(e,`isSchemaCoordinateNode`,{enumerable:!0,get:function(){return C.isSchemaCoordinateNode}}),Object.defineProperty(e,`isSelectionNode`,{enumerable:!0,get:function(){return C.isSelectionNode}}),Object.defineProperty(e,`isTypeDefinitionNode`,{enumerable:!0,get:function(){return C.isTypeDefinitionNode}}),Object.defineProperty(e,`isTypeExtensionNode`,{enumerable:!0,get:function(){return C.isTypeExtensionNode}}),Object.defineProperty(e,`isTypeNode`,{enumerable:!0,get:function(){return C.isTypeNode}}),Object.defineProperty(e,`isTypeSystemDefinitionNode`,{enumerable:!0,get:function(){return C.isTypeSystemDefinitionNode}}),Object.defineProperty(e,`isTypeSystemExtensionNode`,{enumerable:!0,get:function(){return C.isTypeSystemExtensionNode}}),Object.defineProperty(e,`isValueNode`,{enumerable:!0,get:function(){return C.isValueNode}}),Object.defineProperty(e,`parse`,{enumerable:!0,get:function(){return y.parse}}),Object.defineProperty(e,`parseConstValue`,{enumerable:!0,get:function(){return y.parseConstValue}}),Object.defineProperty(e,`parseSchemaCoordinate`,{enumerable:!0,get:function(){return y.parseSchemaCoordinate}}),Object.defineProperty(e,`parseType`,{enumerable:!0,get:function(){return y.parseType}}),Object.defineProperty(e,`parseValue`,{enumerable:!0,get:function(){return y.parseValue}}),Object.defineProperty(e,`print`,{enumerable:!0,get:function(){return b.print}}),Object.defineProperty(e,`printLocation`,{enumerable:!0,get:function(){return h.printLocation}}),Object.defineProperty(e,`printSourceLocation`,{enumerable:!0,get:function(){return h.printSourceLocation}}),Object.defineProperty(e,`visit`,{enumerable:!0,get:function(){return x.visit}}),Object.defineProperty(e,`visitInParallel`,{enumerable:!0,get:function(){return x.visitInParallel}});var p=c(),m=t(),h=n(),g=a(),_=o(),v=s(),y=l(),b=d(),x=u(),S=r(),C=f(),w=i()}));export default p();export{p as require_language};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";var t=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Kind=void 0;var t;e.Kind=t,(function(e){e.NAME=`Name`,e.DOCUMENT=`Document`,e.OPERATION_DEFINITION=`OperationDefinition`,e.VARIABLE_DEFINITION=`VariableDefinition`,e.SELECTION_SET=`SelectionSet`,e.FIELD=`Field`,e.ARGUMENT=`Argument`,e.FRAGMENT_SPREAD=`FragmentSpread`,e.INLINE_FRAGMENT=`InlineFragment`,e.FRAGMENT_DEFINITION=`FragmentDefinition`,e.VARIABLE=`Variable`,e.INT=`IntValue`,e.FLOAT=`FloatValue`,e.STRING=`StringValue`,e.BOOLEAN=`BooleanValue`,e.NULL=`NullValue`,e.ENUM=`EnumValue`,e.LIST=`ListValue`,e.OBJECT=`ObjectValue`,e.OBJECT_FIELD=`ObjectField`,e.DIRECTIVE=`Directive`,e.NAMED_TYPE=`NamedType`,e.LIST_TYPE=`ListType`,e.NON_NULL_TYPE=`NonNullType`,e.SCHEMA_DEFINITION=`SchemaDefinition`,e.OPERATION_TYPE_DEFINITION=`OperationTypeDefinition`,e.SCALAR_TYPE_DEFINITION=`ScalarTypeDefinition`,e.OBJECT_TYPE_DEFINITION=`ObjectTypeDefinition`,e.FIELD_DEFINITION=`FieldDefinition`,e.INPUT_VALUE_DEFINITION=`InputValueDefinition`,e.INTERFACE_TYPE_DEFINITION=`InterfaceTypeDefinition`,e.UNION_TYPE_DEFINITION=`UnionTypeDefinition`,e.ENUM_TYPE_DEFINITION=`EnumTypeDefinition`,e.ENUM_VALUE_DEFINITION=`EnumValueDefinition`,e.INPUT_OBJECT_TYPE_DEFINITION=`InputObjectTypeDefinition`,e.DIRECTIVE_DEFINITION=`DirectiveDefinition`,e.SCHEMA_EXTENSION=`SchemaExtension`,e.SCALAR_TYPE_EXTENSION=`ScalarTypeExtension`,e.OBJECT_TYPE_EXTENSION=`ObjectTypeExtension`,e.INTERFACE_TYPE_EXTENSION=`InterfaceTypeExtension`,e.UNION_TYPE_EXTENSION=`UnionTypeExtension`,e.ENUM_TYPE_EXTENSION=`EnumTypeExtension`,e.INPUT_OBJECT_TYPE_EXTENSION=`InputObjectTypeExtension`,e.TYPE_COORDINATE=`TypeCoordinate`,e.MEMBER_COORDINATE=`MemberCoordinate`,e.ARGUMENT_COORDINATE=`ArgumentCoordinate`,e.DIRECTIVE_COORDINATE=`DirectiveCoordinate`,e.DIRECTIVE_ARGUMENT_COORDINATE=`DirectiveArgumentCoordinate`})(t||(e.Kind=t={}))}));export default t();export{t as require_kinds};
@@ -1,3 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_syntaxError as t}from"../error/syntaxError.js";import{require_ast as n}from"./ast.js";import{require_characterClasses as r}from"./characterClasses.js";import{require_blockString as i}from"./blockString.js";import{require_tokenKind as a}from"./tokenKind.js";var o=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Lexer=void 0,e.createToken=_,e.isPunctuatorTokenKind=d,e.printCodePointAt=g,e.readName=k;var o=t(),s=n(),c=i(),l=r(),u=a();e.Lexer=class{constructor(e){let t=new s.Token(u.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return`Lexer`}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==u.TokenKind.EOF)do if(e.next)e=e.next;else{let t=v(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===u.TokenKind.COMMENT);return e}};function d(e){return e===u.TokenKind.BANG||e===u.TokenKind.DOLLAR||e===u.TokenKind.AMP||e===u.TokenKind.PAREN_L||e===u.TokenKind.PAREN_R||e===u.TokenKind.DOT||e===u.TokenKind.SPREAD||e===u.TokenKind.COLON||e===u.TokenKind.EQUALS||e===u.TokenKind.AT||e===u.TokenKind.BRACKET_L||e===u.TokenKind.BRACKET_R||e===u.TokenKind.BRACE_L||e===u.TokenKind.PIPE||e===u.TokenKind.BRACE_R}function f(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function p(e,t){return m(e.charCodeAt(t))&&h(e.charCodeAt(t+1))}function m(e){return e>=55296&&e<=56319}function h(e){return e>=56320&&e<=57343}function g(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return u.TokenKind.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return e===`"`?`'"'`:`"${e}"`}return`U+`+n.toString(16).toUpperCase().padStart(4,`0`)}function _(e,t,n,r,i){let a=e.line,o=1+n-e.lineStart;return new s.Token(t,n,r,a,o,i)}function v(e,t){let n=e.source.body,r=n.length,i=t;for(;i<r;){let t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return y(e,i);case 33:return _(e,u.TokenKind.BANG,i,i+1);case 36:return _(e,u.TokenKind.DOLLAR,i,i+1);case 38:return _(e,u.TokenKind.AMP,i,i+1);case 40:return _(e,u.TokenKind.PAREN_L,i,i+1);case 41:return _(e,u.TokenKind.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return _(e,u.TokenKind.SPREAD,i,i+3);break;case 58:return _(e,u.TokenKind.COLON,i,i+1);case 61:return _(e,u.TokenKind.EQUALS,i,i+1);case 64:return _(e,u.TokenKind.AT,i,i+1);case 91:return _(e,u.TokenKind.BRACKET_L,i,i+1);case 93:return _(e,u.TokenKind.BRACKET_R,i,i+1);case 123:return _(e,u.TokenKind.BRACE_L,i,i+1);case 124:return _(e,u.TokenKind.PIPE,i,i+1);case 125:return _(e,u.TokenKind.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?O(e,i):S(e,i)}if((0,l.isDigit)(t)||t===45)return b(e,i,t);if((0,l.isNameStart)(t))return k(e,i);throw(0,o.syntaxError)(e.source,i,t===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:f(t)||p(n,i)?`Unexpected character: ${g(e,i)}.`:`Invalid character: ${g(e,i)}.`)}return _(e,u.TokenKind.EOF,r,r)}function y(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(e===10||e===13)break;if(f(e))++i;else if(p(n,i))i+=2;else break}return _(e,u.TokenKind.COMMENT,t,i,n.slice(t+1,i))}function b(e,t,n){let r=e.source.body,i=t,a=n,s=!1;if(a===45&&(a=r.charCodeAt(++i)),a===48){if(a=r.charCodeAt(++i),(0,l.isDigit)(a))throw(0,o.syntaxError)(e.source,i,`Invalid number, unexpected digit after 0: ${g(e,i)}.`)}else i=x(e,i,a),a=r.charCodeAt(i);if(a===46&&(s=!0,a=r.charCodeAt(++i),i=x(e,i,a),a=r.charCodeAt(i)),(a===69||a===101)&&(s=!0,a=r.charCodeAt(++i),(a===43||a===45)&&(a=r.charCodeAt(++i)),i=x(e,i,a),a=r.charCodeAt(i)),a===46||(0,l.isNameStart)(a))throw(0,o.syntaxError)(e.source,i,`Invalid number, expected digit but got: ${g(e,i)}.`);return _(e,s?u.TokenKind.FLOAT:u.TokenKind.INT,t,i,r.slice(t,i))}function x(e,t,n){if(!(0,l.isDigit)(n))throw(0,o.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${g(e,t)}.`);let r=e.source.body,i=t+1;for(;(0,l.isDigit)(r.charCodeAt(i));)++i;return i}function S(e,t){let n=e.source.body,r=n.length,i=t+1,a=i,s=``;for(;i<r;){let r=n.charCodeAt(i);if(r===34)return s+=n.slice(a,i),_(e,u.TokenKind.STRING,t,i+1,s);if(r===92){s+=n.slice(a,i);let t=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?C(e,i):w(e,i):D(e,i);s+=t.value,i+=t.size,a=i;continue}if(r===10||r===13)break;if(f(r))++i;else if(p(n,i))i+=2;else throw(0,o.syntaxError)(e.source,i,`Invalid character within String: ${g(e,i)}.`)}throw(0,o.syntaxError)(e.source,i,`Unterminated string.`)}function C(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let e=n.charCodeAt(t+ i++);if(e===125){if(i<5||!f(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|E(e),r<0)break}throw(0,o.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function w(e,t){let n=e.source.body,r=T(n,t+2);if(f(r))return{value:String.fromCodePoint(r),size:6};if(m(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let e=T(n,t+8);if(h(e))return{value:String.fromCodePoint(r,e),size:12}}throw(0,o.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function T(e,t){return E(e.charCodeAt(t))<<12|E(e.charCodeAt(t+1))<<8|E(e.charCodeAt(t+2))<<4|E(e.charCodeAt(t+3))}function E(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function D(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:`"`,size:2};case 92:return{value:`\\`,size:2};case 47:return{value:`/`,size:2};case 98:return{value:`\b`,size:2};case 102:return{value:`\f`,size:2};case 110:return{value:`
2
- `,size:2};case 114:return{value:`\r`,size:2};case 116:return{value:` `,size:2}}throw(0,o.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function O(e,t){let n=e.source.body,r=n.length,i=e.lineStart,a=t+3,s=a,l=``,d=[];for(;a<r;){let r=n.charCodeAt(a);if(r===34&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34){l+=n.slice(s,a),d.push(l);let r=_(e,u.TokenKind.BLOCK_STRING,t,a+3,(0,c.dedentBlockStringLines)(d).join(`
3
- `));return e.line+=d.length-1,e.lineStart=i,r}if(r===92&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34&&n.charCodeAt(a+3)===34){l+=n.slice(s,a),s=a+1,a+=4;continue}if(r===10||r===13){l+=n.slice(s,a),d.push(l),r===13&&n.charCodeAt(a+1)===10?a+=2:++a,l=``,s=a,i=a;continue}if(f(r))++a;else if(p(n,a))a+=2;else throw(0,o.syntaxError)(e.source,a,`Invalid character within String: ${g(e,a)}.`)}throw(0,o.syntaxError)(e.source,a,`Unterminated string.`)}function k(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if((0,l.isNameContinue)(e))++i;else break}return _(e,u.TokenKind.NAME,t,i,n.slice(t,i))}}));export default o();export{o as require_lexer};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_invariant as t}from"../jsutils/invariant.js";var n=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getLocation=i;var n=t();let r=/\r\n|[\n\r]/g;function i(e,t){let i=0,a=1;for(let o of e.body.matchAll(r)){if(typeof o.index==`number`||(0,n.invariant)(!1),o.index>=t)break;i=o.index+o[0].length,a+=1}return{line:a,column:t+1-i}}}));export default n();export{n as require_location};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_syntaxError as t}from"../error/syntaxError.js";import{require_ast as n}from"./ast.js";import{require_directiveLocation as r}from"./directiveLocation.js";import{require_kinds as i}from"./kinds.js";import{require_tokenKind as a}from"./tokenKind.js";import{require_lexer as o}from"./lexer.js";import{require_schemaCoordinateLexer as s}from"./schemaCoordinateLexer.js";import{require_source as c}from"./source.js";var l=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Parser=void 0,e.parse=_,e.parseConstValue=y,e.parseSchemaCoordinate=x,e.parseType=b,e.parseValue=v;var l=t(),u=n(),d=r(),f=i(),p=o(),m=s(),h=c(),g=a();function _(e,t){let n=new S(e,t),r=n.parseDocument();return Object.defineProperty(r,`tokenCount`,{enumerable:!1,value:n.tokenCount}),r}function v(e,t){let n=new S(e,t);n.expectToken(g.TokenKind.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(g.TokenKind.EOF),r}function y(e,t){let n=new S(e,t);n.expectToken(g.TokenKind.SOF);let r=n.parseConstValueLiteral();return n.expectToken(g.TokenKind.EOF),r}function b(e,t){let n=new S(e,t);n.expectToken(g.TokenKind.SOF);let r=n.parseTypeReference();return n.expectToken(g.TokenKind.EOF),r}function x(e){let t=(0,h.isSource)(e)?e:new h.Source(e),n=new S(e,{lexer:new m.SchemaCoordinateLexer(t)});n.expectToken(g.TokenKind.SOF);let r=n.parseSchemaCoordinate();return n.expectToken(g.TokenKind.EOF),r}var S=class{constructor(e,t={}){let{lexer:n,...r}=t;if(n)this._lexer=n;else{let t=(0,h.isSource)(e)?e:new h.Source(e);this._lexer=new p.Lexer(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(g.TokenKind.NAME);return this.node(e,{kind:f.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:f.Kind.DOCUMENT,definitions:this.many(g.TokenKind.SOF,this.parseDefinition,g.TokenKind.EOF)})}parseDefinition(){if(this.peek(g.TokenKind.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===g.TokenKind.BRACE_L)throw(0,l.syntaxError)(this._lexer.source,this._lexer.token.start,`Unexpected description, descriptions are not supported on shorthand queries.`);if(t.kind===g.TokenKind.NAME){switch(t.value){case`schema`:return this.parseSchemaDefinition();case`scalar`:return this.parseScalarTypeDefinition();case`type`:return this.parseObjectTypeDefinition();case`interface`:return this.parseInterfaceTypeDefinition();case`union`:return this.parseUnionTypeDefinition();case`enum`:return this.parseEnumTypeDefinition();case`input`:return this.parseInputObjectTypeDefinition();case`directive`:return this.parseDirectiveDefinition()}switch(t.value){case`query`:case`mutation`:case`subscription`:return this.parseOperationDefinition();case`fragment`:return this.parseFragmentDefinition()}if(e)throw(0,l.syntaxError)(this._lexer.source,this._lexer.token.start,`Unexpected description, only GraphQL definitions support descriptions.`);switch(t.value){case`extend`:return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e=this._lexer.token;if(this.peek(g.TokenKind.BRACE_L))return this.node(e,{kind:f.Kind.OPERATION_DEFINITION,operation:u.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t=this.parseDescription(),n=this.parseOperationType(),r;return this.peek(g.TokenKind.NAME)&&(r=this.parseName()),this.node(e,{kind:f.Kind.OPERATION_DEFINITION,operation:n,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(g.TokenKind.NAME);switch(e.value){case`query`:return u.OperationTypeNode.QUERY;case`mutation`:return u.OperationTypeNode.MUTATION;case`subscription`:return u.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(g.TokenKind.PAREN_L,this.parseVariableDefinition,g.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:f.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(g.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(g.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(g.TokenKind.DOLLAR),this.node(e,{kind:f.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:f.Kind.SELECTION_SET,selections:this.many(g.TokenKind.BRACE_L,this.parseSelection,g.TokenKind.BRACE_R)})}parseSelection(){return this.peek(g.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e=this._lexer.token,t=this.parseName(),n,r;return this.expectOptionalToken(g.TokenKind.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:f.Kind.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(g.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(g.TokenKind.PAREN_L,t,g.TokenKind.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(g.TokenKind.COLON),this.node(t,{kind:f.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(g.TokenKind.SPREAD);let t=this.expectOptionalKeyword(`on`);return!t&&this.peek(g.TokenKind.NAME)?this.node(e,{kind:f.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:f.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return this.expectKeyword(`fragment`),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:f.Kind.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword(`on`),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:f.Kind.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword(`on`),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value===`on`)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case g.TokenKind.BRACKET_L:return this.parseList(e);case g.TokenKind.BRACE_L:return this.parseObject(e);case g.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:f.Kind.INT,value:t.value});case g.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:f.Kind.FLOAT,value:t.value});case g.TokenKind.STRING:case g.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case g.TokenKind.NAME:switch(this.advanceLexer(),t.value){case`true`:return this.node(t,{kind:f.Kind.BOOLEAN,value:!0});case`false`:return this.node(t,{kind:f.Kind.BOOLEAN,value:!1});case`null`:return this.node(t,{kind:f.Kind.NULL});default:return this.node(t,{kind:f.Kind.ENUM,value:t.value})}case g.TokenKind.DOLLAR:if(e)if(this.expectToken(g.TokenKind.DOLLAR),this._lexer.token.kind===g.TokenKind.NAME){let e=this._lexer.token.value;throw(0,l.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}else throw this.unexpected(t);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:f.Kind.STRING,value:e.value,block:e.kind===g.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:f.Kind.LIST,values:this.any(g.TokenKind.BRACKET_L,()=>this.parseValueLiteral(e),g.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:f.Kind.OBJECT,fields:this.any(g.TokenKind.BRACE_L,()=>this.parseObjectField(e),g.TokenKind.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(g.TokenKind.COLON),this.node(t,{kind:f.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(g.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(g.TokenKind.AT),this.node(t,{kind:f.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e=this._lexer.token,t;if(this.expectOptionalToken(g.TokenKind.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(g.TokenKind.BRACKET_R),t=this.node(e,{kind:f.Kind.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(g.TokenKind.BANG)?this.node(e,{kind:f.Kind.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:f.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(g.TokenKind.STRING)||this.peek(g.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`schema`);let n=this.parseConstDirectives(),r=this.many(g.TokenKind.BRACE_L,this.parseOperationTypeDefinition,g.TokenKind.BRACE_R);return this.node(e,{kind:f.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(g.TokenKind.COLON);let n=this.parseNamedType();return this.node(e,{kind:f.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`scalar`);let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:f.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`type`);let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:f.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword(`implements`)?this.delimitedMany(g.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(g.TokenKind.BRACE_L,this.parseFieldDefinition,g.TokenKind.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(g.TokenKind.COLON);let i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:f.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(g.TokenKind.PAREN_L,this.parseInputValueDef,g.TokenKind.PAREN_R)}parseInputValueDef(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(g.TokenKind.COLON);let r=this.parseTypeReference(),i;this.expectOptionalToken(g.TokenKind.EQUALS)&&(i=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(e,{kind:f.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`interface`);let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:f.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`union`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:f.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(g.TokenKind.EQUALS)?this.delimitedMany(g.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`enum`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:f.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(g.TokenKind.BRACE_L,this.parseEnumValueDefinition,g.TokenKind.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:f.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if(this._lexer.token.value===`true`||this._lexer.token.value===`false`||this._lexer.token.value===`null`)throw(0,l.syntaxError)(this._lexer.source,this._lexer.token.start,`${C(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`input`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:f.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(g.TokenKind.BRACE_L,this.parseInputValueDef,g.TokenKind.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===g.TokenKind.NAME)switch(e.value){case`schema`:return this.parseSchemaExtension();case`scalar`:return this.parseScalarTypeExtension();case`type`:return this.parseObjectTypeExtension();case`interface`:return this.parseInterfaceTypeExtension();case`union`:return this.parseUnionTypeExtension();case`enum`:return this.parseEnumTypeExtension();case`input`:return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`schema`);let t=this.parseConstDirectives(),n=this.optionalMany(g.TokenKind.BRACE_L,this.parseOperationTypeDefinition,g.TokenKind.BRACE_R);if(t.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:f.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`scalar`);let t=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:f.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`type`);let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:f.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`interface`);let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:f.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`union`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:f.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`enum`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:f.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`input`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:f.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`directive`),this.expectToken(g.TokenKind.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword(`repeatable`);this.expectKeyword(`on`);let a=this.parseDirectiveLocations();return this.node(e,{kind:f.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(g.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(d.DirectiveLocation,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e=this._lexer.token,t=this.expectOptionalToken(g.TokenKind.AT),n=this.parseName(),r;!t&&this.expectOptionalToken(g.TokenKind.DOT)&&(r=this.parseName());let i;return(t||r)&&this.expectOptionalToken(g.TokenKind.PAREN_L)&&(i=this.parseName(),this.expectToken(g.TokenKind.COLON),this.expectToken(g.TokenKind.PAREN_R)),t?i?this.node(e,{kind:f.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:i}):this.node(e,{kind:f.Kind.DIRECTIVE_COORDINATE,name:n}):r?i?this.node(e,{kind:f.Kind.ARGUMENT_COORDINATE,name:n,fieldName:r,argumentName:i}):this.node(e,{kind:f.Kind.MEMBER_COORDINATE,name:n,memberName:r}):this.node(e,{kind:f.Kind.TYPE_COORDINATE,name:n})}node(e,t){return this._options.noLocation!==!0&&(t.loc=new u.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,l.syntaxError)(this._lexer.source,t.start,`Expected ${w(e)}, found ${C(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){let t=this._lexer.token;if(t.kind===g.TokenKind.NAME&&t.value===e)this.advanceLexer();else throw(0,l.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${C(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===g.TokenKind.NAME&&t.value===e?(this.advanceLexer(),!0):!1}unexpected(e){let t=e??this._lexer.token;return(0,l.syntaxError)(this._lexer.source,t.start,`Unexpected ${C(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==g.TokenKind.EOF&&(++this._tokenCounter,e!==void 0&&this._tokenCounter>e))throw(0,l.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}};e.Parser=S;function C(e){let t=e.value;return w(e.kind)+(t==null?``:` "${t}"`)}function w(e){return(0,p.isPunctuatorTokenKind)(e)?`"${e}"`:e}}));export default l();export{l as require_parser};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_kinds as t}from"./kinds.js";var n=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isConstValueNode=s,e.isDefinitionNode=r,e.isExecutableDefinitionNode=i,e.isSchemaCoordinateNode=p,e.isSelectionNode=a,e.isTypeDefinitionNode=u,e.isTypeExtensionNode=f,e.isTypeNode=c,e.isTypeSystemDefinitionNode=l,e.isTypeSystemExtensionNode=d,e.isValueNode=o;var n=t();function r(e){return i(e)||l(e)||d(e)}function i(e){return e.kind===n.Kind.OPERATION_DEFINITION||e.kind===n.Kind.FRAGMENT_DEFINITION}function a(e){return e.kind===n.Kind.FIELD||e.kind===n.Kind.FRAGMENT_SPREAD||e.kind===n.Kind.INLINE_FRAGMENT}function o(e){return e.kind===n.Kind.VARIABLE||e.kind===n.Kind.INT||e.kind===n.Kind.FLOAT||e.kind===n.Kind.STRING||e.kind===n.Kind.BOOLEAN||e.kind===n.Kind.NULL||e.kind===n.Kind.ENUM||e.kind===n.Kind.LIST||e.kind===n.Kind.OBJECT}function s(e){return o(e)&&(e.kind===n.Kind.LIST?e.values.some(s):e.kind===n.Kind.OBJECT?e.fields.some(e=>s(e.value)):e.kind!==n.Kind.VARIABLE)}function c(e){return e.kind===n.Kind.NAMED_TYPE||e.kind===n.Kind.LIST_TYPE||e.kind===n.Kind.NON_NULL_TYPE}function l(e){return e.kind===n.Kind.SCHEMA_DEFINITION||u(e)||e.kind===n.Kind.DIRECTIVE_DEFINITION}function u(e){return e.kind===n.Kind.SCALAR_TYPE_DEFINITION||e.kind===n.Kind.OBJECT_TYPE_DEFINITION||e.kind===n.Kind.INTERFACE_TYPE_DEFINITION||e.kind===n.Kind.UNION_TYPE_DEFINITION||e.kind===n.Kind.ENUM_TYPE_DEFINITION||e.kind===n.Kind.INPUT_OBJECT_TYPE_DEFINITION}function d(e){return e.kind===n.Kind.SCHEMA_EXTENSION||f(e)}function f(e){return e.kind===n.Kind.SCALAR_TYPE_EXTENSION||e.kind===n.Kind.OBJECT_TYPE_EXTENSION||e.kind===n.Kind.INTERFACE_TYPE_EXTENSION||e.kind===n.Kind.UNION_TYPE_EXTENSION||e.kind===n.Kind.ENUM_TYPE_EXTENSION||e.kind===n.Kind.INPUT_OBJECT_TYPE_EXTENSION}function p(e){return e.kind===n.Kind.TYPE_COORDINATE||e.kind===n.Kind.MEMBER_COORDINATE||e.kind===n.Kind.ARGUMENT_COORDINATE||e.kind===n.Kind.DIRECTIVE_COORDINATE||e.kind===n.Kind.DIRECTIVE_ARGUMENT_COORDINATE}}));export default n();export{n as require_predicates};
@@ -1,2 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_location as t}from"./location.js";var n=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.printLocation=r,e.printSourceLocation=i;var n=t();function r(e){return i(e.source,(0,n.getLocation)(e.source,e.start))}function i(e,t){let n=e.locationOffset.column-1,r=``.padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,c=t.line===1?n:0,l=t.column+c,u=`${e.name}:${s}:${l}\n`,d=r.split(/\r\n|[\n\r]/g),f=d[i];if(f.length>120){let e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<f.length;e+=80)n.push(f.slice(e,e+80));return u+a([[`${s} |`,n[0]],...n.slice(1,e+1).map(e=>[`|`,e]),[`|`,`^`.padStart(t)],[`|`,n[e+1]]])}return u+a([[`${s-1} |`,d[i-1]],[`${s} |`,f],[`|`,`^`.padStart(l)],[`${s+1} |`,d[i+1]]])}function a(e){let t=e.filter(([e,t])=>t!==void 0),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?` `+t:``)).join(`
2
- `)}}));export default n();export{n as require_printLocation};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";var t=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.printString=t;function t(e){return`"${e.replace(n,r)}"`}let n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function r(e){return i[e.charCodeAt(0)]}let i=`\\u0000.\\u0001.\\u0002.\\u0003.\\u0004.\\u0005.\\u0006.\\u0007.\\b.\\t.\\n.\\u000B.\\f.\\r.\\u000E.\\u000F.\\u0010.\\u0011.\\u0012.\\u0013.\\u0014.\\u0015.\\u0016.\\u0017.\\u0018.\\u0019.\\u001A.\\u001B.\\u001C.\\u001D.\\u001E.\\u001F...\\"..........................................................\\\\...................................\\u007F.\\u0080.\\u0081.\\u0082.\\u0083.\\u0084.\\u0085.\\u0086.\\u0087.\\u0088.\\u0089.\\u008A.\\u008B.\\u008C.\\u008D.\\u008E.\\u008F.\\u0090.\\u0091.\\u0092.\\u0093.\\u0094.\\u0095.\\u0096.\\u0097.\\u0098.\\u0099.\\u009A.\\u009B.\\u009C.\\u009D.\\u009E.\\u009F`.split(`.`)}));export default t();export{t as require_printString};
@@ -1,34 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_blockString as t}from"./blockString.js";import{require_printString as n}from"./printString.js";import{require_visitor as r}from"./visitor.js";var i=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.print=s;var i=t(),a=n(),o=r();function s(e){return(0,o.visit)(e,c)}let c={Name:{leave:e=>e.value},Variable:{leave:e=>`$`+e.name},Document:{leave:e=>l(e.definitions,`
2
-
3
- `)},OperationDefinition:{leave(e){let t=p(e.variableDefinitions)?d(`(
4
- `,l(e.variableDefinitions,`
5
- `),`
6
- )`):d(`(`,l(e.variableDefinitions,`, `),`)`),n=d(``,e.description,`
7
- `)+l([e.operation,l([e.name,t]),l(e.directives,` `)],` `);return(n===`query`?``:n+` `)+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>d(``,i,`
8
- `)+e+`: `+t+d(` = `,n)+d(` `,l(r,` `))},SelectionSet:{leave:({selections:e})=>u(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let a=d(``,e,`: `)+t,o=a+d(`(`,l(n,`, `),`)`);return o.length>80&&(o=a+d(`(
9
- `,f(l(n,`
10
- `)),`
11
- )`)),l([o,l(r,` `),i],` `)}},Argument:{leave:({name:e,value:t})=>e+`: `+t},FragmentSpread:{leave:({name:e,directives:t})=>`...`+e+d(` `,l(t,` `))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>l([`...`,d(`on `,e),l(t,` `),n],` `)},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:a})=>d(``,a,`
12
- `)+`fragment ${e}${d(`(`,l(n,`, `),`)`)} on ${t} ${d(``,l(r,` `),` `)}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,i.printBlockString)(e):(0,a.printString)(e)},BooleanValue:{leave:({value:e})=>e?`true`:`false`},NullValue:{leave:()=>`null`},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>`[`+l(e,`, `)+`]`},ObjectValue:{leave:({fields:e})=>`{`+l(e,`, `)+`}`},ObjectField:{leave:({name:e,value:t})=>e+`: `+t},Directive:{leave:({name:e,arguments:t})=>`@`+e+d(`(`,l(t,`, `),`)`)},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>`[`+e+`]`},NonNullType:{leave:({type:e})=>e+`!`},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>d(``,e,`
13
- `)+l([`schema`,l(t,` `),u(n)],` `)},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+`: `+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>d(``,e,`
14
- `)+l([`scalar`,t,l(n,` `)],` `)},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>d(``,e,`
15
- `)+l([`type`,t,d(`implements `,l(n,` & `)),l(r,` `),u(i)],` `)},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>d(``,e,`
16
- `)+t+(p(n)?d(`(
17
- `,f(l(n,`
18
- `)),`
19
- )`):d(`(`,l(n,`, `),`)`))+`: `+r+d(` `,l(i,` `))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>d(``,e,`
20
- `)+l([t+`: `+n,d(`= `,r),l(i,` `)],` `)},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>d(``,e,`
21
- `)+l([`interface`,t,d(`implements `,l(n,` & `)),l(r,` `),u(i)],` `)},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>d(``,e,`
22
- `)+l([`union`,t,l(n,` `),d(`= `,l(r,` | `))],` `)},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>d(``,e,`
23
- `)+l([`enum`,t,l(n,` `),u(r)],` `)},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>d(``,e,`
24
- `)+l([t,l(n,` `)],` `)},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>d(``,e,`
25
- `)+l([`input`,t,l(n,` `),u(r)],` `)},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>d(``,e,`
26
- `)+`directive @`+t+(p(n)?d(`(
27
- `,f(l(n,`
28
- `)),`
29
- )`):d(`(`,l(n,`, `),`)`))+(r?` repeatable`:``)+` on `+l(i,` | `)},SchemaExtension:{leave:({directives:e,operationTypes:t})=>l([`extend schema`,l(e,` `),u(t)],` `)},ScalarTypeExtension:{leave:({name:e,directives:t})=>l([`extend scalar`,e,l(t,` `)],` `)},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>l([`extend type`,e,d(`implements `,l(t,` & `)),l(n,` `),u(r)],` `)},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>l([`extend interface`,e,d(`implements `,l(t,` & `)),l(n,` `),u(r)],` `)},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>l([`extend union`,e,l(t,` `),d(`= `,l(n,` | `))],` `)},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>l([`extend enum`,e,l(t,` `),u(n)],` `)},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>l([`extend input`,e,l(t,` `),u(n)],` `)},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>l([e,d(`.`,t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>l([e,d(`.`,t),d(`(`,n,`:)`)])},DirectiveCoordinate:{leave:({name:e})=>l([`@`,e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>l([`@`,e,d(`(`,t,`:)`)])}};function l(e,t=``){return e?.filter(e=>e).join(t)??``}function u(e){return d(`{
30
- `,f(l(e,`
31
- `)),`
32
- }`)}function d(e,t,n=``){return t!=null&&t!==``?e+t+n:``}function f(e){return d(` `,e.replace(/\n/g,`
33
- `))}function p(e){return e?.some(e=>e.includes(`
34
- `))??!1}}));export default i();export{i as require_printer};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_syntaxError as t}from"../error/syntaxError.js";import{require_ast as n}from"./ast.js";import{require_characterClasses as r}from"./characterClasses.js";import{require_tokenKind as i}from"./tokenKind.js";import{require_lexer as a}from"./lexer.js";var o=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SchemaCoordinateLexer=void 0;var o=t(),s=n(),c=r(),l=a(),u=i();e.SchemaCoordinateLexer=class{line=1;lineStart=0;constructor(e){let t=new s.Token(u.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t}get[Symbol.toStringTag](){return`SchemaCoordinateLexer`}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==u.TokenKind.EOF){let t=d(this,e.end);e.next=t,t.prev=e,e=t}return e}};function d(e,t){let n=e.source.body,r=n.length,i=t;if(i<r){let t=n.charCodeAt(i);switch(t){case 46:return(0,l.createToken)(e,u.TokenKind.DOT,i,i+1);case 40:return(0,l.createToken)(e,u.TokenKind.PAREN_L,i,i+1);case 41:return(0,l.createToken)(e,u.TokenKind.PAREN_R,i,i+1);case 58:return(0,l.createToken)(e,u.TokenKind.COLON,i,i+1);case 64:return(0,l.createToken)(e,u.TokenKind.AT,i,i+1)}if((0,c.isNameStart)(t))return(0,l.readName)(e,i);throw(0,o.syntaxError)(e.source,i,`Invalid character: ${(0,l.printCodePointAt)(e,i)}.`)}return(0,l.createToken)(e,u.TokenKind.EOF,r,r)}}));export default o();export{o as require_schemaCoordinateLexer};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_devAssert as t}from"../jsutils/devAssert.js";import{require_inspect as n}from"../jsutils/inspect.js";import{require_instanceOf as r}from"../jsutils/instanceOf.js";var i=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Source=void 0,e.isSource=c;var i=t(),a=n(),o=r(),s=class{constructor(e,t=`GraphQL request`,n={line:1,column:1}){typeof e==`string`||(0,i.devAssert)(!1,`Body must be a string. Received: ${(0,a.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,i.devAssert)(!1,`line in locationOffset is 1-indexed and must be positive.`),this.locationOffset.column>0||(0,i.devAssert)(!1,`column in locationOffset is 1-indexed and must be positive.`)}get[Symbol.toStringTag](){return`Source`}};e.Source=s;function c(e){return(0,o.instanceOf)(e,s)}}));export default i();export{i as require_source};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";var t=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TokenKind=void 0;var t;e.TokenKind=t,(function(e){e.SOF=`<SOF>`,e.EOF=`<EOF>`,e.BANG=`!`,e.DOLLAR=`$`,e.AMP=`&`,e.PAREN_L=`(`,e.PAREN_R=`)`,e.DOT=`.`,e.SPREAD=`...`,e.COLON=`:`,e.EQUALS=`=`,e.AT=`@`,e.BRACKET_L=`[`,e.BRACKET_R=`]`,e.BRACE_L=`{`,e.PIPE=`|`,e.BRACE_R=`}`,e.NAME=`Name`,e.INT=`Int`,e.FLOAT=`Float`,e.STRING=`String`,e.BLOCK_STRING=`BlockString`,e.COMMENT=`Comment`})(t||(e.TokenKind=t={}))}));export default t();export{t as require_tokenKind};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_devAssert as t}from"../jsutils/devAssert.js";import{require_ast as n}from"./ast.js";import{require_kinds as r}from"./kinds.js";import{require_inspect as i}from"../jsutils/inspect.js";var a=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BREAK=void 0,e.getEnterLeaveForKind=f,e.getVisitFn=p,e.visit=u,e.visitInParallel=d;var a=t(),o=i(),s=n(),c=r();let l=Object.freeze({});e.BREAK=l;function u(e,t,n=s.QueryDocumentKeys){let r=new Map;for(let e of Object.values(c.Kind))r.set(e,f(t,e));let i,u=Array.isArray(e),d=[e],p=-1,m=[],h=e,g,_,v=[],y=[];do{p++;let e=p===d.length,c=e&&m.length!==0;if(e){if(g=y.length===0?void 0:v[v.length-1],h=_,_=y.pop(),c)if(u){h=h.slice();let e=0;for(let[t,n]of m){let r=t-e;n===null?(h.splice(r,1),e++):h[r]=n}}else{h={...h};for(let[e,t]of m)h[e]=t}p=i.index,d=i.keys,m=i.edits,u=i.inArray,i=i.prev}else if(_){if(g=u?p:d[p],h=_[g],h==null)continue;v.push(g)}let f;if(!Array.isArray(h)){if((0,s.isNode)(h)||(0,a.devAssert)(!1,`Invalid AST Node: ${(0,o.inspect)(h)}.`),f=(e?r.get(h.kind)?.leave:r.get(h.kind)?.enter)?.call(t,h,g,_,v,y),f===l)break;if(f===!1){if(!e){v.pop();continue}}else if(f!==void 0&&(m.push([g,f]),!e))if((0,s.isNode)(f))h=f;else{v.pop();continue}}f===void 0&&c&&m.push([g,h]),e?v.pop():(i={inArray:u,index:p,keys:d,edits:m,prev:i},u=Array.isArray(h),d=u?h:n[h.kind]??[],p=-1,m=[],_&&y.push(_),_=h)}while(i!==void 0);return m.length===0?e:m[m.length-1][1]}function d(e){let t=Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(c.Kind)){let i=!1,a=Array(e.length).fill(void 0),o=Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){let{enter:n,leave:s}=f(e[t],r);i||=n!=null||s!=null,a[t]=n,o[t]=s}i&&(n[r]={enter(...n){let r=n[0];for(let i=0;i<e.length;i++)if(t[i]===null){let o=a[i]?.apply(e[i],n);if(o===!1)t[i]=r;else if(o===l)t[i]=l;else if(o!==void 0)return o}},leave(...n){let r=n[0];for(let i=0;i<e.length;i++)if(t[i]===null){let r=o[i]?.apply(e[i],n);if(r===l)t[i]=l;else if(r!==void 0&&r!==!1)return r}else t[i]===r&&(t[i]=null)}})}return n}function f(e,t){let n=e[t];return typeof n==`object`?n:typeof n==`function`?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function p(e,t,n){let{enter:r,leave:i}=f(e,t);return n?i:r}}));export default a();export{a as require_visitor};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_devAssert as t}from"../jsutils/devAssert.js";import{require_GraphQLError as n}from"../error/GraphQLError.js";import{require_characterClasses as r}from"../language/characterClasses.js";var i=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assertEnumValueName=c,e.assertName=s;var i=t(),a=n(),o=r();function s(e){if(e??(0,i.devAssert)(!1,`Must provide name.`),typeof e==`string`||(0,i.devAssert)(!1,`Expected name to be a string.`),e.length===0)throw new a.GraphQLError(`Expected name to be a non-empty string.`);for(let t=1;t<e.length;++t)if(!(0,o.isNameContinue)(e.charCodeAt(t)))throw new a.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,o.isNameStart)(e.charCodeAt(0)))throw new a.GraphQLError(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function c(e){if(e===`true`||e===`false`||e===`null`)throw new a.GraphQLError(`Enum values cannot be named: ${e}`);return s(e)}}));export default i();export{i as require_assertName};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_devAssert as t}from"../jsutils/devAssert.js";import{require_isObjectLike as n}from"../jsutils/isObjectLike.js";import{require_GraphQLError as r}from"../error/GraphQLError.js";import{require_kinds as ee}from"../language/kinds.js";import{require_inspect as te}from"../jsutils/inspect.js";import{require_instanceOf as ne}from"../jsutils/instanceOf.js";import{require_didYouMean as re}from"../jsutils/didYouMean.js";import{require_identityFunc as i}from"../jsutils/identityFunc.js";import{require_keyMap as a}from"../jsutils/keyMap.js";import{require_keyValMap as ie}from"../jsutils/keyValMap.js";import{require_mapValue as ae}from"../jsutils/mapValue.js";import{require_suggestionList as oe}from"../jsutils/suggestionList.js";import{require_toObjMap as se}from"../jsutils/toObjMap.js";import{require_printer as ce}from"../language/printer.js";import{require_valueFromASTUntyped as le}from"../utilities/valueFromASTUntyped.js";import{require_assertName as ue}from"./assertName.js";var o=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GraphQLUnionType=e.GraphQLScalarType=e.GraphQLObjectType=e.GraphQLNonNull=e.GraphQLList=e.GraphQLInterfaceType=e.GraphQLInputObjectType=e.GraphQLEnumType=void 0,e.argsToArgsConfig=q,e.assertAbstractType=De,e.assertCompositeType=Ee,e.assertEnumType=Se,e.assertInputObjectType=Ce,e.assertInputType=D,e.assertInterfaceType=be,e.assertLeafType=Te,e.assertListType=w,e.assertNamedType=je,e.assertNonNullType=we,e.assertNullableType=ke,e.assertObjectType=ye,e.assertOutputType=k,e.assertScalarType=ve,e.assertType=_e,e.assertUnionType=xe,e.assertWrappingType=Oe,e.defineArguments=W,e.getNamedType=Me,e.getNullableType=Ae,e.isAbstractType=M,e.isCompositeType=j,e.isEnumType=x,e.isInputObjectType=S,e.isInputType=E,e.isInterfaceType=y,e.isLeafType=A,e.isListType=C,e.isNamedType=L,e.isNonNullType=T,e.isNullableType=I,e.isObjectType=v,e.isOutputType=O,e.isRequiredArgument=Ne,e.isRequiredInputField=Ie,e.isScalarType=_,e.isType=g,e.isUnionType=b,e.isWrappingType=F,e.resolveObjMapThunk=z,e.resolveReadonlyArrayThunk=R;var o=t(),de=re(),s=i(),c=te(),l=ne(),fe=n(),pe=a(),u=ie(),d=ae(),me=oe(),f=se(),p=r(),he=ee(),m=ce(),ge=le(),h=ue();function g(e){return _(e)||v(e)||y(e)||b(e)||x(e)||S(e)||C(e)||T(e)}function _e(e){if(!g(e))throw Error(`Expected ${(0,c.inspect)(e)} to be a GraphQL type.`);return e}function _(e){return(0,l.instanceOf)(e,B)}function ve(e){if(!_(e))throw Error(`Expected ${(0,c.inspect)(e)} to be a GraphQL Scalar type.`);return e}function v(e){return(0,l.instanceOf)(e,V)}function ye(e){if(!v(e))throw Error(`Expected ${(0,c.inspect)(e)} to be a GraphQL Object type.`);return e}function y(e){return(0,l.instanceOf)(e,J)}function be(e){if(!y(e))throw Error(`Expected ${(0,c.inspect)(e)} to be a GraphQL Interface type.`);return e}function b(e){return(0,l.instanceOf)(e,Y)}function xe(e){if(!b(e))throw Error(`Expected ${(0,c.inspect)(e)} to be a GraphQL Union type.`);return e}function x(e){return(0,l.instanceOf)(e,X)}function Se(e){if(!x(e))throw Error(`Expected ${(0,c.inspect)(e)} to be a GraphQL Enum type.`);return e}function S(e){return(0,l.instanceOf)(e,$)}function Ce(e){if(!S(e))throw Error(`Expected ${(0,c.inspect)(e)} to be a GraphQL Input Object type.`);return e}function C(e){return(0,l.instanceOf)(e,N)}function w(e){if(!C(e))throw Error(`Expected ${(0,c.inspect)(e)} to be a GraphQL List type.`);return e}function T(e){return(0,l.instanceOf)(e,P)}function we(e){if(!T(e))throw Error(`Expected ${(0,c.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function E(e){return _(e)||x(e)||S(e)||F(e)&&E(e.ofType)}function D(e){if(!E(e))throw Error(`Expected ${(0,c.inspect)(e)} to be a GraphQL input type.`);return e}function O(e){return _(e)||v(e)||y(e)||b(e)||x(e)||F(e)&&O(e.ofType)}function k(e){if(!O(e))throw Error(`Expected ${(0,c.inspect)(e)} to be a GraphQL output type.`);return e}function A(e){return _(e)||x(e)}function Te(e){if(!A(e))throw Error(`Expected ${(0,c.inspect)(e)} to be a GraphQL leaf type.`);return e}function j(e){return v(e)||y(e)||b(e)}function Ee(e){if(!j(e))throw Error(`Expected ${(0,c.inspect)(e)} to be a GraphQL composite type.`);return e}function M(e){return y(e)||b(e)}function De(e){if(!M(e))throw Error(`Expected ${(0,c.inspect)(e)} to be a GraphQL abstract type.`);return e}var N=class{constructor(e){g(e)||(0,o.devAssert)(!1,`Expected ${(0,c.inspect)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return`GraphQLList`}toString(){return`[`+String(this.ofType)+`]`}toJSON(){return this.toString()}};e.GraphQLList=N;var P=class{constructor(e){I(e)||(0,o.devAssert)(!1,`Expected ${(0,c.inspect)(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return`GraphQLNonNull`}toString(){return String(this.ofType)+`!`}toJSON(){return this.toString()}};e.GraphQLNonNull=P;function F(e){return C(e)||T(e)}function Oe(e){if(!F(e))throw Error(`Expected ${(0,c.inspect)(e)} to be a GraphQL wrapping type.`);return e}function I(e){return g(e)&&!T(e)}function ke(e){if(!I(e))throw Error(`Expected ${(0,c.inspect)(e)} to be a GraphQL nullable type.`);return e}function Ae(e){if(e)return T(e)?e.ofType:e}function L(e){return _(e)||v(e)||y(e)||b(e)||x(e)||S(e)}function je(e){if(!L(e))throw Error(`Expected ${(0,c.inspect)(e)} to be a GraphQL named type.`);return e}function Me(e){if(e){let t=e;for(;F(t);)t=t.ofType;return t}}function R(e){return typeof e==`function`?e():e}function z(e){return typeof e==`function`?e():e}var B=class{constructor(e){let t=e.parseValue??s.identityFunc;this.name=(0,h.assertName)(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=e.serialize??s.identityFunc,this.parseValue=t,this.parseLiteral=e.parseLiteral??((e,n)=>t((0,ge.valueFromASTUntyped)(e,n))),this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes??[],e.specifiedByURL==null||typeof e.specifiedByURL==`string`||(0,o.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,c.inspect)(e.specifiedByURL)}.`),e.serialize==null||typeof e.serialize==`function`||(0,o.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&(typeof e.parseValue==`function`&&typeof e.parseLiteral==`function`||(0,o.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return`GraphQLScalarType`}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};e.GraphQLScalarType=B;var V=class{constructor(e){this.name=(0,h.assertName)(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes??[],this._fields=()=>U(e),this._interfaces=()=>H(e),e.isTypeOf==null||typeof e.isTypeOf==`function`||(0,o.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,c.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return`GraphQLObjectType`}getFields(){return typeof this._fields==`function`&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces==`function`&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:K(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};e.GraphQLObjectType=V;function H(e){let t=R(e.interfaces??[]);return Array.isArray(t)||(0,o.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),t}function U(e){let t=z(e.fields);return G(t)||(0,o.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,d.mapValue)(t,(t,n)=>{G(t)||(0,o.devAssert)(!1,`${e.name}.${n} field config must be an object.`),t.resolve==null||typeof t.resolve==`function`||(0,o.devAssert)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,c.inspect)(t.resolve)}.`);let r=t.args??{};return G(r)||(0,o.devAssert)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,h.assertName)(n),description:t.description,type:t.type,args:W(r),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode}})}function W(e){return Object.entries(e).map(([e,t])=>({name:(0,h.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode}))}function G(e){return(0,fe.isObjectLike)(e)&&!Array.isArray(e)}function K(e){return(0,d.mapValue)(e,e=>({description:e.description,type:e.type,args:q(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function q(e){return(0,u.keyValMap)(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function Ne(e){return T(e.type)&&e.defaultValue===void 0}var J=class{constructor(e){this.name=(0,h.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes??[],this._fields=U.bind(void 0,e),this._interfaces=H.bind(void 0,e),e.resolveType==null||typeof e.resolveType==`function`||(0,o.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,c.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return`GraphQLInterfaceType`}getFields(){return typeof this._fields==`function`&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces==`function`&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:K(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};e.GraphQLInterfaceType=J;var Y=class{constructor(e){this.name=(0,h.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes??[],this._types=Pe.bind(void 0,e),e.resolveType==null||typeof e.resolveType==`function`||(0,o.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,c.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return`GraphQLUnionType`}getTypes(){return typeof this._types==`function`&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};e.GraphQLUnionType=Y;function Pe(e){let t=R(e.types);return Array.isArray(t)||(0,o.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var X=class{constructor(e){this.name=(0,h.assertName)(e.name),this.description=e.description,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes??[],this._values=typeof e.values==`function`?e.values:Q(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return`GraphQLEnumType`}getValues(){return typeof this._values==`function`&&(this._values=Q(this.name,this._values())),this._values}getValue(e){return this._nameLookup===null&&(this._nameLookup=(0,pe.keyMap)(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));let t=this._valueLookup.get(e);if(t===void 0)throw new p.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,c.inspect)(e)}`);return t.name}parseValue(e){if(typeof e!=`string`){let t=(0,c.inspect)(e);throw new p.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+Z(this,t))}let t=this.getValue(e);if(t==null)throw new p.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+Z(this,e));return t.value}parseLiteral(e,t){if(e.kind!==he.Kind.ENUM){let t=(0,m.print)(e);throw new p.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+Z(this,t),{nodes:e})}let n=this.getValue(e.value);if(n==null){let t=(0,m.print)(e);throw new p.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+Z(this,t),{nodes:e})}return n.value}toConfig(){let e=(0,u.keyValMap)(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};e.GraphQLEnumType=X;function Z(e,t){let n=e.getValues().map(e=>e.name),r=(0,me.suggestionList)(t,n);return(0,de.didYouMean)(`the enum value`,r)}function Q(e,t){return G(t)||(0,o.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(G(n)||(0,o.devAssert)(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${(0,c.inspect)(n)}.`),{name:(0,h.assertEnumValueName)(t),description:n.description,value:n.value===void 0?t:n.value,deprecationReason:n.deprecationReason,extensions:(0,f.toObjMap)(n.extensions),astNode:n.astNode}))}var $=class{constructor(e){this.name=(0,h.assertName)(e.name),this.description=e.description,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes??[],this.isOneOf=e.isOneOf??!1,this._fields=Fe.bind(void 0,e)}get[Symbol.toStringTag](){return`GraphQLInputObjectType`}getFields(){return typeof this._fields==`function`&&(this._fields=this._fields()),this._fields}toConfig(){let e=(0,d.mapValue)(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};e.GraphQLInputObjectType=$;function Fe(e){let t=z(e.fields);return G(t)||(0,o.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,d.mapValue)(t,(t,n)=>(!(`resolve`in t)||(0,o.devAssert)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,h.assertName)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode}))}function Ie(e){return T(e.type)&&e.defaultValue===void 0}}));export default o();export{o as require_definition};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_devAssert as t}from"../jsutils/devAssert.js";import{require_isObjectLike as n}from"../jsutils/isObjectLike.js";import{require_directiveLocation as r}from"../language/directiveLocation.js";import{require_inspect as i}from"../jsutils/inspect.js";import{require_instanceOf as a}from"../jsutils/instanceOf.js";import{require_toObjMap as o}from"../jsutils/toObjMap.js";import{require_assertName as s}from"./assertName.js";import{require_definition as c}from"./definition.js";import{require_scalars as l}from"./scalars.js";var u=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GraphQLSpecifiedByDirective=e.GraphQLSkipDirective=e.GraphQLOneOfDirective=e.GraphQLIncludeDirective=e.GraphQLDirective=e.GraphQLDeprecatedDirective=e.DEFAULT_DEPRECATION_REASON=void 0,e.assertDirective=b,e.isDirective=y,e.isSpecifiedDirective=k,e.specifiedDirectives=void 0;var u=t(),d=i(),f=a(),p=n(),m=o(),h=r(),g=s(),_=c(),v=l();function y(e){return(0,f.instanceOf)(e,x)}function b(e){if(!y(e))throw Error(`Expected ${(0,d.inspect)(e)} to be a GraphQL directive.`);return e}var x=class{constructor(e){this.name=(0,g.assertName)(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=e.isRepeatable??!1,this.extensions=(0,m.toObjMap)(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,u.devAssert)(!1,`@${e.name} locations must be an Array.`);let t=e.args??{};(0,p.isObjectLike)(t)&&!Array.isArray(t)||(0,u.devAssert)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=(0,_.defineArguments)(t)}get[Symbol.toStringTag](){return`GraphQLDirective`}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,_.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return`@`+this.name}toJSON(){return this.toString()}};e.GraphQLDirective=x;let S=new x({name:`include`,description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[h.DirectiveLocation.FIELD,h.DirectiveLocation.FRAGMENT_SPREAD,h.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new _.GraphQLNonNull(v.GraphQLBoolean),description:`Included when true.`}}});e.GraphQLIncludeDirective=S;let C=new x({name:`skip`,description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[h.DirectiveLocation.FIELD,h.DirectiveLocation.FRAGMENT_SPREAD,h.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new _.GraphQLNonNull(v.GraphQLBoolean),description:`Skipped when true.`}}});e.GraphQLSkipDirective=C;let w=`No longer supported`;e.DEFAULT_DEPRECATION_REASON=w;let T=new x({name:`deprecated`,description:`Marks an element of a GraphQL schema as no longer supported.`,locations:[h.DirectiveLocation.FIELD_DEFINITION,h.DirectiveLocation.ARGUMENT_DEFINITION,h.DirectiveLocation.INPUT_FIELD_DEFINITION,h.DirectiveLocation.ENUM_VALUE],args:{reason:{type:v.GraphQLString,description:`Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).`,defaultValue:w}}});e.GraphQLDeprecatedDirective=T;let E=new x({name:`specifiedBy`,description:`Exposes a URL that specifies the behavior of this scalar.`,locations:[h.DirectiveLocation.SCALAR],args:{url:{type:new _.GraphQLNonNull(v.GraphQLString),description:`The URL that specifies the behavior of this scalar.`}}});e.GraphQLSpecifiedByDirective=E;let D=new x({name:`oneOf`,description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[h.DirectiveLocation.INPUT_OBJECT],args:{}});e.GraphQLOneOfDirective=D;let O=Object.freeze([S,C,T,E,D]);e.specifiedDirectives=O;function k(e){return O.some(({name:t})=>t===e.name)}}));export default u();export{u as require_directives};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_assertName as t}from"./assertName.js";import{require_definition as n}from"./definition.js";import{require_scalars as r}from"./scalars.js";import{require_directives as i}from"./directives.js";import{require_introspection as a}from"./introspection.js";import{require_schema as o}from"./schema.js";import{require_validate as s}from"./validate.js";var c=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),Object.defineProperty(e,`DEFAULT_DEPRECATION_REASON`,{enumerable:!0,get:function(){return u.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(e,`GRAPHQL_MAX_INT`,{enumerable:!0,get:function(){return d.GRAPHQL_MAX_INT}}),Object.defineProperty(e,`GRAPHQL_MIN_INT`,{enumerable:!0,get:function(){return d.GRAPHQL_MIN_INT}}),Object.defineProperty(e,`GraphQLBoolean`,{enumerable:!0,get:function(){return d.GraphQLBoolean}}),Object.defineProperty(e,`GraphQLDeprecatedDirective`,{enumerable:!0,get:function(){return u.GraphQLDeprecatedDirective}}),Object.defineProperty(e,`GraphQLDirective`,{enumerable:!0,get:function(){return u.GraphQLDirective}}),Object.defineProperty(e,`GraphQLEnumType`,{enumerable:!0,get:function(){return l.GraphQLEnumType}}),Object.defineProperty(e,`GraphQLFloat`,{enumerable:!0,get:function(){return d.GraphQLFloat}}),Object.defineProperty(e,`GraphQLID`,{enumerable:!0,get:function(){return d.GraphQLID}}),Object.defineProperty(e,`GraphQLIncludeDirective`,{enumerable:!0,get:function(){return u.GraphQLIncludeDirective}}),Object.defineProperty(e,`GraphQLInputObjectType`,{enumerable:!0,get:function(){return l.GraphQLInputObjectType}}),Object.defineProperty(e,`GraphQLInt`,{enumerable:!0,get:function(){return d.GraphQLInt}}),Object.defineProperty(e,`GraphQLInterfaceType`,{enumerable:!0,get:function(){return l.GraphQLInterfaceType}}),Object.defineProperty(e,`GraphQLList`,{enumerable:!0,get:function(){return l.GraphQLList}}),Object.defineProperty(e,`GraphQLNonNull`,{enumerable:!0,get:function(){return l.GraphQLNonNull}}),Object.defineProperty(e,`GraphQLObjectType`,{enumerable:!0,get:function(){return l.GraphQLObjectType}}),Object.defineProperty(e,`GraphQLOneOfDirective`,{enumerable:!0,get:function(){return u.GraphQLOneOfDirective}}),Object.defineProperty(e,`GraphQLScalarType`,{enumerable:!0,get:function(){return l.GraphQLScalarType}}),Object.defineProperty(e,`GraphQLSchema`,{enumerable:!0,get:function(){return c.GraphQLSchema}}),Object.defineProperty(e,`GraphQLSkipDirective`,{enumerable:!0,get:function(){return u.GraphQLSkipDirective}}),Object.defineProperty(e,`GraphQLSpecifiedByDirective`,{enumerable:!0,get:function(){return u.GraphQLSpecifiedByDirective}}),Object.defineProperty(e,`GraphQLString`,{enumerable:!0,get:function(){return d.GraphQLString}}),Object.defineProperty(e,`GraphQLUnionType`,{enumerable:!0,get:function(){return l.GraphQLUnionType}}),Object.defineProperty(e,`SchemaMetaFieldDef`,{enumerable:!0,get:function(){return f.SchemaMetaFieldDef}}),Object.defineProperty(e,`TypeKind`,{enumerable:!0,get:function(){return f.TypeKind}}),Object.defineProperty(e,`TypeMetaFieldDef`,{enumerable:!0,get:function(){return f.TypeMetaFieldDef}}),Object.defineProperty(e,`TypeNameMetaFieldDef`,{enumerable:!0,get:function(){return f.TypeNameMetaFieldDef}}),Object.defineProperty(e,`__Directive`,{enumerable:!0,get:function(){return f.__Directive}}),Object.defineProperty(e,`__DirectiveLocation`,{enumerable:!0,get:function(){return f.__DirectiveLocation}}),Object.defineProperty(e,`__EnumValue`,{enumerable:!0,get:function(){return f.__EnumValue}}),Object.defineProperty(e,`__Field`,{enumerable:!0,get:function(){return f.__Field}}),Object.defineProperty(e,`__InputValue`,{enumerable:!0,get:function(){return f.__InputValue}}),Object.defineProperty(e,`__Schema`,{enumerable:!0,get:function(){return f.__Schema}}),Object.defineProperty(e,`__Type`,{enumerable:!0,get:function(){return f.__Type}}),Object.defineProperty(e,`__TypeKind`,{enumerable:!0,get:function(){return f.__TypeKind}}),Object.defineProperty(e,`assertAbstractType`,{enumerable:!0,get:function(){return l.assertAbstractType}}),Object.defineProperty(e,`assertCompositeType`,{enumerable:!0,get:function(){return l.assertCompositeType}}),Object.defineProperty(e,`assertDirective`,{enumerable:!0,get:function(){return u.assertDirective}}),Object.defineProperty(e,`assertEnumType`,{enumerable:!0,get:function(){return l.assertEnumType}}),Object.defineProperty(e,`assertEnumValueName`,{enumerable:!0,get:function(){return m.assertEnumValueName}}),Object.defineProperty(e,`assertInputObjectType`,{enumerable:!0,get:function(){return l.assertInputObjectType}}),Object.defineProperty(e,`assertInputType`,{enumerable:!0,get:function(){return l.assertInputType}}),Object.defineProperty(e,`assertInterfaceType`,{enumerable:!0,get:function(){return l.assertInterfaceType}}),Object.defineProperty(e,`assertLeafType`,{enumerable:!0,get:function(){return l.assertLeafType}}),Object.defineProperty(e,`assertListType`,{enumerable:!0,get:function(){return l.assertListType}}),Object.defineProperty(e,`assertName`,{enumerable:!0,get:function(){return m.assertName}}),Object.defineProperty(e,`assertNamedType`,{enumerable:!0,get:function(){return l.assertNamedType}}),Object.defineProperty(e,`assertNonNullType`,{enumerable:!0,get:function(){return l.assertNonNullType}}),Object.defineProperty(e,`assertNullableType`,{enumerable:!0,get:function(){return l.assertNullableType}}),Object.defineProperty(e,`assertObjectType`,{enumerable:!0,get:function(){return l.assertObjectType}}),Object.defineProperty(e,`assertOutputType`,{enumerable:!0,get:function(){return l.assertOutputType}}),Object.defineProperty(e,`assertScalarType`,{enumerable:!0,get:function(){return l.assertScalarType}}),Object.defineProperty(e,`assertSchema`,{enumerable:!0,get:function(){return c.assertSchema}}),Object.defineProperty(e,`assertType`,{enumerable:!0,get:function(){return l.assertType}}),Object.defineProperty(e,`assertUnionType`,{enumerable:!0,get:function(){return l.assertUnionType}}),Object.defineProperty(e,`assertValidSchema`,{enumerable:!0,get:function(){return p.assertValidSchema}}),Object.defineProperty(e,`assertWrappingType`,{enumerable:!0,get:function(){return l.assertWrappingType}}),Object.defineProperty(e,`getNamedType`,{enumerable:!0,get:function(){return l.getNamedType}}),Object.defineProperty(e,`getNullableType`,{enumerable:!0,get:function(){return l.getNullableType}}),Object.defineProperty(e,`introspectionTypes`,{enumerable:!0,get:function(){return f.introspectionTypes}}),Object.defineProperty(e,`isAbstractType`,{enumerable:!0,get:function(){return l.isAbstractType}}),Object.defineProperty(e,`isCompositeType`,{enumerable:!0,get:function(){return l.isCompositeType}}),Object.defineProperty(e,`isDirective`,{enumerable:!0,get:function(){return u.isDirective}}),Object.defineProperty(e,`isEnumType`,{enumerable:!0,get:function(){return l.isEnumType}}),Object.defineProperty(e,`isInputObjectType`,{enumerable:!0,get:function(){return l.isInputObjectType}}),Object.defineProperty(e,`isInputType`,{enumerable:!0,get:function(){return l.isInputType}}),Object.defineProperty(e,`isInterfaceType`,{enumerable:!0,get:function(){return l.isInterfaceType}}),Object.defineProperty(e,`isIntrospectionType`,{enumerable:!0,get:function(){return f.isIntrospectionType}}),Object.defineProperty(e,`isLeafType`,{enumerable:!0,get:function(){return l.isLeafType}}),Object.defineProperty(e,`isListType`,{enumerable:!0,get:function(){return l.isListType}}),Object.defineProperty(e,`isNamedType`,{enumerable:!0,get:function(){return l.isNamedType}}),Object.defineProperty(e,`isNonNullType`,{enumerable:!0,get:function(){return l.isNonNullType}}),Object.defineProperty(e,`isNullableType`,{enumerable:!0,get:function(){return l.isNullableType}}),Object.defineProperty(e,`isObjectType`,{enumerable:!0,get:function(){return l.isObjectType}}),Object.defineProperty(e,`isOutputType`,{enumerable:!0,get:function(){return l.isOutputType}}),Object.defineProperty(e,`isRequiredArgument`,{enumerable:!0,get:function(){return l.isRequiredArgument}}),Object.defineProperty(e,`isRequiredInputField`,{enumerable:!0,get:function(){return l.isRequiredInputField}}),Object.defineProperty(e,`isScalarType`,{enumerable:!0,get:function(){return l.isScalarType}}),Object.defineProperty(e,`isSchema`,{enumerable:!0,get:function(){return c.isSchema}}),Object.defineProperty(e,`isSpecifiedDirective`,{enumerable:!0,get:function(){return u.isSpecifiedDirective}}),Object.defineProperty(e,`isSpecifiedScalarType`,{enumerable:!0,get:function(){return d.isSpecifiedScalarType}}),Object.defineProperty(e,`isType`,{enumerable:!0,get:function(){return l.isType}}),Object.defineProperty(e,`isUnionType`,{enumerable:!0,get:function(){return l.isUnionType}}),Object.defineProperty(e,`isWrappingType`,{enumerable:!0,get:function(){return l.isWrappingType}}),Object.defineProperty(e,`resolveObjMapThunk`,{enumerable:!0,get:function(){return l.resolveObjMapThunk}}),Object.defineProperty(e,`resolveReadonlyArrayThunk`,{enumerable:!0,get:function(){return l.resolveReadonlyArrayThunk}}),Object.defineProperty(e,`specifiedDirectives`,{enumerable:!0,get:function(){return u.specifiedDirectives}}),Object.defineProperty(e,`specifiedScalarTypes`,{enumerable:!0,get:function(){return d.specifiedScalarTypes}}),Object.defineProperty(e,`validateSchema`,{enumerable:!0,get:function(){return p.validateSchema}});var c=o(),l=n(),u=i(),d=r(),f=a(),p=s(),m=t()}));export default c();export{c as require_type};
@@ -1,3 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_invariant as t}from"../jsutils/invariant.js";import{require_directiveLocation as n}from"../language/directiveLocation.js";import{require_inspect as r}from"../jsutils/inspect.js";import{require_printer as i}from"../language/printer.js";import{require_definition as a}from"./definition.js";import{require_scalars as o}from"./scalars.js";import{require_astFromValue as s}from"../utilities/astFromValue.js";var c=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.introspectionTypes=e.__TypeKind=e.__Type=e.__Schema=e.__InputValue=e.__Field=e.__EnumValue=e.__DirectiveLocation=e.__Directive=e.TypeNameMetaFieldDef=e.TypeMetaFieldDef=e.TypeKind=e.SchemaMetaFieldDef=void 0,e.isIntrospectionType=T;var c=r(),l=t(),u=n(),d=i(),f=s(),p=a(),m=o();let h=new p.GraphQLObjectType({name:`__Schema`,description:`A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.`,fields:()=>({description:{type:m.GraphQLString,resolve:e=>e.description},types:{description:`A list of all types supported by this server.`,type:new p.GraphQLNonNull(new p.GraphQLList(new p.GraphQLNonNull(v))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:`The type that query operations will be rooted at.`,type:new p.GraphQLNonNull(v),resolve:e=>e.getQueryType()},mutationType:{description:`If this server supports mutation, the type that mutation operations will be rooted at.`,type:v,resolve:e=>e.getMutationType()},subscriptionType:{description:`If this server support subscription, the type that subscription operations will be rooted at.`,type:v,resolve:e=>e.getSubscriptionType()},directives:{description:`A list of all directives supported by this server.`,type:new p.GraphQLNonNull(new p.GraphQLList(new p.GraphQLNonNull(g))),resolve:e=>e.getDirectives()}})});e.__Schema=h;let g=new p.GraphQLObjectType({name:`__Directive`,description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
2
-
3
- In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new p.GraphQLNonNull(m.GraphQLString),resolve:e=>e.name},description:{type:m.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new p.GraphQLNonNull(m.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new p.GraphQLNonNull(new p.GraphQLList(new p.GraphQLNonNull(_))),resolve:e=>e.locations},args:{type:new p.GraphQLNonNull(new p.GraphQLList(new p.GraphQLNonNull(b))),args:{includeDeprecated:{type:m.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(e=>e.deprecationReason==null)}}})});e.__Directive=g;let _=new p.GraphQLEnumType({name:`__DirectiveLocation`,description:`A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.`,values:{QUERY:{value:u.DirectiveLocation.QUERY,description:`Location adjacent to a query operation.`},MUTATION:{value:u.DirectiveLocation.MUTATION,description:`Location adjacent to a mutation operation.`},SUBSCRIPTION:{value:u.DirectiveLocation.SUBSCRIPTION,description:`Location adjacent to a subscription operation.`},FIELD:{value:u.DirectiveLocation.FIELD,description:`Location adjacent to a field.`},FRAGMENT_DEFINITION:{value:u.DirectiveLocation.FRAGMENT_DEFINITION,description:`Location adjacent to a fragment definition.`},FRAGMENT_SPREAD:{value:u.DirectiveLocation.FRAGMENT_SPREAD,description:`Location adjacent to a fragment spread.`},INLINE_FRAGMENT:{value:u.DirectiveLocation.INLINE_FRAGMENT,description:`Location adjacent to an inline fragment.`},VARIABLE_DEFINITION:{value:u.DirectiveLocation.VARIABLE_DEFINITION,description:`Location adjacent to a variable definition.`},SCHEMA:{value:u.DirectiveLocation.SCHEMA,description:`Location adjacent to a schema definition.`},SCALAR:{value:u.DirectiveLocation.SCALAR,description:`Location adjacent to a scalar definition.`},OBJECT:{value:u.DirectiveLocation.OBJECT,description:`Location adjacent to an object type definition.`},FIELD_DEFINITION:{value:u.DirectiveLocation.FIELD_DEFINITION,description:`Location adjacent to a field definition.`},ARGUMENT_DEFINITION:{value:u.DirectiveLocation.ARGUMENT_DEFINITION,description:`Location adjacent to an argument definition.`},INTERFACE:{value:u.DirectiveLocation.INTERFACE,description:`Location adjacent to an interface definition.`},UNION:{value:u.DirectiveLocation.UNION,description:`Location adjacent to a union definition.`},ENUM:{value:u.DirectiveLocation.ENUM,description:`Location adjacent to an enum definition.`},ENUM_VALUE:{value:u.DirectiveLocation.ENUM_VALUE,description:`Location adjacent to an enum value definition.`},INPUT_OBJECT:{value:u.DirectiveLocation.INPUT_OBJECT,description:`Location adjacent to an input object type definition.`},INPUT_FIELD_DEFINITION:{value:u.DirectiveLocation.INPUT_FIELD_DEFINITION,description:`Location adjacent to an input object field definition.`}}});e.__DirectiveLocation=_;let v=new p.GraphQLObjectType({name:`__Type`,description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new p.GraphQLNonNull(C),resolve(e){if((0,p.isScalarType)(e))return S.SCALAR;if((0,p.isObjectType)(e))return S.OBJECT;if((0,p.isInterfaceType)(e))return S.INTERFACE;if((0,p.isUnionType)(e))return S.UNION;if((0,p.isEnumType)(e))return S.ENUM;if((0,p.isInputObjectType)(e))return S.INPUT_OBJECT;if((0,p.isListType)(e))return S.LIST;if((0,p.isNonNullType)(e))return S.NON_NULL;(0,l.invariant)(!1,`Unexpected type: "${(0,c.inspect)(e)}".`)}},name:{type:m.GraphQLString,resolve:e=>`name`in e?e.name:void 0},description:{type:m.GraphQLString,resolve:e=>`description`in e?e.description:void 0},specifiedByURL:{type:m.GraphQLString,resolve:e=>`specifiedByURL`in e?e.specifiedByURL:void 0},fields:{type:new p.GraphQLList(new p.GraphQLNonNull(y)),args:{includeDeprecated:{type:m.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,p.isObjectType)(e)||(0,p.isInterfaceType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>e.deprecationReason==null)}}},interfaces:{type:new p.GraphQLList(new p.GraphQLNonNull(v)),resolve(e){if((0,p.isObjectType)(e)||(0,p.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new p.GraphQLList(new p.GraphQLNonNull(v)),resolve(e,t,n,{schema:r}){if((0,p.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new p.GraphQLList(new p.GraphQLNonNull(x)),args:{includeDeprecated:{type:m.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,p.isEnumType)(e)){let n=e.getValues();return t?n:n.filter(e=>e.deprecationReason==null)}}},inputFields:{type:new p.GraphQLList(new p.GraphQLNonNull(b)),args:{includeDeprecated:{type:m.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,p.isInputObjectType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>e.deprecationReason==null)}}},ofType:{type:v,resolve:e=>`ofType`in e?e.ofType:void 0},isOneOf:{type:m.GraphQLBoolean,resolve:e=>{if((0,p.isInputObjectType)(e))return e.isOneOf}}})});e.__Type=v;let y=new p.GraphQLObjectType({name:`__Field`,description:`Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.`,fields:()=>({name:{type:new p.GraphQLNonNull(m.GraphQLString),resolve:e=>e.name},description:{type:m.GraphQLString,resolve:e=>e.description},args:{type:new p.GraphQLNonNull(new p.GraphQLList(new p.GraphQLNonNull(b))),args:{includeDeprecated:{type:m.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(e=>e.deprecationReason==null)}},type:{type:new p.GraphQLNonNull(v),resolve:e=>e.type},isDeprecated:{type:new p.GraphQLNonNull(m.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:m.GraphQLString,resolve:e=>e.deprecationReason}})});e.__Field=y;let b=new p.GraphQLObjectType({name:`__InputValue`,description:`Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.`,fields:()=>({name:{type:new p.GraphQLNonNull(m.GraphQLString),resolve:e=>e.name},description:{type:m.GraphQLString,resolve:e=>e.description},type:{type:new p.GraphQLNonNull(v),resolve:e=>e.type},defaultValue:{type:m.GraphQLString,description:`A GraphQL-formatted string representing the default value for this input value.`,resolve(e){let{type:t,defaultValue:n}=e,r=(0,f.astFromValue)(n,t);return r?(0,d.print)(r):null}},isDeprecated:{type:new p.GraphQLNonNull(m.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:m.GraphQLString,resolve:e=>e.deprecationReason}})});e.__InputValue=b;let x=new p.GraphQLObjectType({name:`__EnumValue`,description:`One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.`,fields:()=>({name:{type:new p.GraphQLNonNull(m.GraphQLString),resolve:e=>e.name},description:{type:m.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new p.GraphQLNonNull(m.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:m.GraphQLString,resolve:e=>e.deprecationReason}})});e.__EnumValue=x;var S;e.TypeKind=S,(function(e){e.SCALAR=`SCALAR`,e.OBJECT=`OBJECT`,e.INTERFACE=`INTERFACE`,e.UNION=`UNION`,e.ENUM=`ENUM`,e.INPUT_OBJECT=`INPUT_OBJECT`,e.LIST=`LIST`,e.NON_NULL=`NON_NULL`})(S||(e.TypeKind=S={}));let C=new p.GraphQLEnumType({name:`__TypeKind`,description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:S.SCALAR,description:`Indicates this type is a scalar.`},OBJECT:{value:S.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:S.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:S.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:S.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:S.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:S.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:S.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});e.__TypeKind=C,e.SchemaMetaFieldDef={name:`__schema`,type:new p.GraphQLNonNull(h),description:`Access the current type schema of this server.`,args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},e.TypeMetaFieldDef={name:`__type`,type:v,description:`Request the type information of a single type.`,args:[{name:`name`,description:void 0,type:new p.GraphQLNonNull(m.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},e.TypeNameMetaFieldDef={name:`__typename`,type:new p.GraphQLNonNull(m.GraphQLString),description:`The name of the current Object type at runtime.`,args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};let w=Object.freeze([h,g,_,v,y,b,x,C]);e.introspectionTypes=w;function T(e){return w.some(({name:t})=>e.name===t)}}));export default c();export{c as require_introspection};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_isObjectLike as t}from"../jsutils/isObjectLike.js";import{require_GraphQLError as n}from"../error/GraphQLError.js";import{require_kinds as r}from"../language/kinds.js";import{require_inspect as i}from"../jsutils/inspect.js";import{require_printer as a}from"../language/printer.js";import{require_definition as o}from"./definition.js";var s=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GraphQLString=e.GraphQLInt=e.GraphQLID=e.GraphQLFloat=e.GraphQLBoolean=e.GRAPHQL_MIN_INT=e.GRAPHQL_MAX_INT=void 0,e.isSpecifiedScalarType=x,e.specifiedScalarTypes=void 0;var s=i(),c=t(),l=n(),u=r(),d=a(),f=o();let p=2147483647;e.GRAPHQL_MAX_INT=p;let m=-2147483648;e.GRAPHQL_MIN_INT=m;let h=new f.GraphQLScalarType({name:`Int`,description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=S(e);if(typeof t==`boolean`)return t?1:0;let n=t;if(typeof t==`string`&&t!==``&&(n=Number(t)),typeof n!=`number`||!Number.isInteger(n))throw new l.GraphQLError(`Int cannot represent non-integer value: ${(0,s.inspect)(t)}`);if(n>p||n<m)throw new l.GraphQLError(`Int cannot represent non 32-bit signed integer value: `+(0,s.inspect)(t));return n},parseValue(e){if(typeof e!=`number`||!Number.isInteger(e))throw new l.GraphQLError(`Int cannot represent non-integer value: ${(0,s.inspect)(e)}`);if(e>p||e<m)throw new l.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==u.Kind.INT)throw new l.GraphQLError(`Int cannot represent non-integer value: ${(0,d.print)(e)}`,{nodes:e});let t=parseInt(e.value,10);if(t>p||t<m)throw new l.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}});e.GraphQLInt=h;let g=new f.GraphQLScalarType({name:`Float`,description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){let t=S(e);if(typeof t==`boolean`)return t?1:0;let n=t;if(typeof t==`string`&&t!==``&&(n=Number(t)),typeof n!=`number`||!Number.isFinite(n))throw new l.GraphQLError(`Float cannot represent non numeric value: ${(0,s.inspect)(t)}`);return n},parseValue(e){if(typeof e!=`number`||!Number.isFinite(e))throw new l.GraphQLError(`Float cannot represent non numeric value: ${(0,s.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==u.Kind.FLOAT&&e.kind!==u.Kind.INT)throw new l.GraphQLError(`Float cannot represent non numeric value: ${(0,d.print)(e)}`,e);return parseFloat(e.value)}});e.GraphQLFloat=g;let _=new f.GraphQLScalarType({name:`String`,description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){let t=S(e);if(typeof t==`string`)return t;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`number`&&Number.isFinite(t))return t.toString();throw new l.GraphQLError(`String cannot represent value: ${(0,s.inspect)(e)}`)},parseValue(e){if(typeof e!=`string`)throw new l.GraphQLError(`String cannot represent a non string value: ${(0,s.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==u.Kind.STRING)throw new l.GraphQLError(`String cannot represent a non string value: ${(0,d.print)(e)}`,{nodes:e});return e.value}});e.GraphQLString=_;let v=new f.GraphQLScalarType({name:`Boolean`,description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let t=S(e);if(typeof t==`boolean`)return t;if(Number.isFinite(t))return t!==0;throw new l.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,s.inspect)(t)}`)},parseValue(e){if(typeof e!=`boolean`)throw new l.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,s.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==u.Kind.BOOLEAN)throw new l.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,d.print)(e)}`,{nodes:e});return e.value}});e.GraphQLBoolean=v;let y=new f.GraphQLScalarType({name:`ID`,description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){let t=S(e);if(typeof t==`string`)return t;if(Number.isInteger(t))return String(t);throw new l.GraphQLError(`ID cannot represent value: ${(0,s.inspect)(e)}`)},parseValue(e){if(typeof e==`string`)return e;if(typeof e==`number`&&Number.isInteger(e))return e.toString();throw new l.GraphQLError(`ID cannot represent value: ${(0,s.inspect)(e)}`)},parseLiteral(e){if(e.kind!==u.Kind.STRING&&e.kind!==u.Kind.INT)throw new l.GraphQLError(`ID cannot represent a non-string and non-integer value: `+(0,d.print)(e),{nodes:e});return e.value}});e.GraphQLID=y;let b=Object.freeze([_,h,g,v,y]);e.specifiedScalarTypes=b;function x(e){return b.some(({name:t})=>e.name===t)}function S(e){if((0,c.isObjectLike)(e)){if(typeof e.valueOf==`function`){let t=e.valueOf();if(!(0,c.isObjectLike)(t))return t}if(typeof e.toJSON==`function`)return e.toJSON()}return e}}));export default s();export{s as require_scalars};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_devAssert as t}from"../jsutils/devAssert.js";import{require_isObjectLike as n}from"../jsutils/isObjectLike.js";import{require_ast as r}from"../language/ast.js";import{require_inspect as i}from"../jsutils/inspect.js";import{require_instanceOf as a}from"../jsutils/instanceOf.js";import{require_toObjMap as o}from"../jsutils/toObjMap.js";import{require_definition as s}from"./definition.js";import{require_directives as c}from"./directives.js";import{require_introspection as l}from"./introspection.js";var u=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GraphQLSchema=void 0,e.assertSchema=b,e.isSchema=y;var u=t(),d=i(),f=a(),p=n(),m=o(),h=r(),g=s(),_=c(),v=l();function y(e){return(0,f.instanceOf)(e,x)}function b(e){if(!y(e))throw Error(`Expected ${(0,d.inspect)(e)} to be a GraphQL schema.`);return e}var x=class{constructor(e){this.__validationErrors=e.assumeValid===!0?[]:void 0,(0,p.isObjectLike)(e)||(0,u.devAssert)(!1,`Must provide configuration object.`),!e.types||Array.isArray(e.types)||(0,u.devAssert)(!1,`"types" must be Array if provided but got: ${(0,d.inspect)(e.types)}.`),!e.directives||Array.isArray(e.directives)||(0,u.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,d.inspect)(e.directives)}.`),this.description=e.description,this.extensions=(0,m.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes??[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=e.directives??_.specifiedDirectives;let t=new Set(e.types);if(e.types!=null)for(let n of e.types)t.delete(n),S(n,t);this._queryType!=null&&S(this._queryType,t),this._mutationType!=null&&S(this._mutationType,t),this._subscriptionType!=null&&S(this._subscriptionType,t);for(let e of this._directives)if((0,_.isDirective)(e))for(let n of e.args)S(n.type,t);S(v.__Schema,t),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let e of t){if(e==null)continue;let t=e.name;if(t||(0,u.devAssert)(!1,`One of the provided types for building the Schema is missing a name.`),this._typeMap[t]!==void 0)throw Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,(0,g.isInterfaceType)(e)){for(let t of e.getInterfaces())if((0,g.isInterfaceType)(t)){let n=this._implementationsMap[t.name];n===void 0&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if((0,g.isObjectType)(e)){for(let t of e.getInterfaces())if((0,g.isInterfaceType)(t)){let n=this._implementationsMap[t.name];n===void 0&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}}get[Symbol.toStringTag](){return`GraphQLSchema`}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case h.OperationTypeNode.QUERY:return this.getQueryType();case h.OperationTypeNode.MUTATION:return this.getMutationType();case h.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,g.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){return this._implementationsMap[e.name]??{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(n===void 0){if(n=Object.create(null),(0,g.isUnionType)(e))for(let t of e.getTypes())n[t.name]=!0;else{let t=this.getImplementations(e);for(let e of t.objects)n[e.name]=!0;for(let e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return n[t.name]!==void 0}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};e.GraphQLSchema=x;function S(e,t){let n=(0,g.getNamedType)(e);if(!t.has(n)){if(t.add(n),(0,g.isUnionType)(n))for(let e of n.getTypes())S(e,t);else if((0,g.isObjectType)(n)||(0,g.isInterfaceType)(n)){for(let e of n.getInterfaces())S(e,t);for(let e of Object.values(n.getFields())){S(e.type,t);for(let n of e.args)S(n.type,t)}}else if((0,g.isInputObjectType)(n))for(let e of Object.values(n.getFields()))S(e.type,t)}return t}}));export default u();export{u as require_schema};
@@ -1,3 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_GraphQLError as t}from"../error/GraphQLError.js";import{require_ast as n}from"../language/ast.js";import{require_inspect as r}from"../jsutils/inspect.js";import{require_definition as i}from"./definition.js";import{require_typeComparators as a}from"../utilities/typeComparators.js";import{require_directives as o}from"./directives.js";import{require_introspection as s}from"./introspection.js";import{require_schema as c}from"./schema.js";var l=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assertValidSchema=v,e.validateSchema=_;var l=r(),u=t(),d=n(),f=a(),p=i(),m=o(),h=s(),g=c();function _(e){if((0,g.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new y(e);b(t),S(t),w(t);let n=t.getErrors();return e.__validationErrors=n,n}function v(e){let t=_(e);if(t.length!==0)throw Error(t.map(e=>e.message).join(`
2
-
3
- `))}var y=class{constructor(e){this._errors=[],this.schema=e}reportError(e,t){let n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new u.GraphQLError(e,{nodes:n}))}getErrors(){return this._errors}};function b(e){let t=e.schema,n=t.getQueryType();n?(0,p.isObjectType)(n)||e.reportError(`Query root type must be Object type, it cannot be ${(0,l.inspect)(n)}.`,x(t,d.OperationTypeNode.QUERY)??n.astNode):e.reportError(`Query root type must be provided.`,t.astNode);let r=t.getMutationType();r&&!(0,p.isObjectType)(r)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,l.inspect)(r)}.`,x(t,d.OperationTypeNode.MUTATION)??r.astNode);let i=t.getSubscriptionType();i&&!(0,p.isObjectType)(i)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,l.inspect)(i)}.`,x(t,d.OperationTypeNode.SUBSCRIPTION)??i.astNode)}function x(e,t){return[e.astNode,...e.extensionASTNodes].flatMap(e=>e?.operationTypes??[]).find(e=>e.operation===t)?.type}function S(e){for(let t of e.schema.getDirectives()){if(!(0,m.isDirective)(t)){e.reportError(`Expected directive but got: ${(0,l.inspect)(t)}.`,t?.astNode);continue}C(e,t),t.locations.length===0&&e.reportError(`Directive @${t.name} must include 1 or more locations.`,t.astNode);for(let n of t.args)C(e,n),(0,p.isInputType)(n.type)||e.reportError(`The type of @${t.name}(${n.name}:) must be Input Type but got: ${(0,l.inspect)(n.type)}.`,n.astNode),(0,p.isRequiredArgument)(n)&&n.deprecationReason!=null&&e.reportError(`Required argument @${t.name}(${n.name}:) cannot be deprecated.`,[I(n.astNode),n.astNode?.type])}}function C(e,t){t.name.startsWith(`__`)&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function w(e){let t=N(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,p.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,l.inspect)(r)}.`,r.astNode);continue}(0,h.isIntrospectionType)(r)||C(e,r),(0,p.isObjectType)(r)||(0,p.isInterfaceType)(r)?(T(e,r),E(e,r)):(0,p.isUnionType)(r)?k(e,r):(0,p.isEnumType)(r)?A(e,r):(0,p.isInputObjectType)(r)&&(j(e,r),t(r))}}function T(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let r of n){C(e,r),!(0,p.isOutputType)(r.type)&&e.reportError(`The type of ${t.name}.${r.name} must be Output Type but got: ${(0,l.inspect)(r.type)}.`,r.astNode?.type);for(let n of r.args){let i=n.name;C(e,n),!(0,p.isInputType)(n.type)&&e.reportError(`The type of ${t.name}.${r.name}(${i}:) must be Input Type but got: ${(0,l.inspect)(n.type)}.`,n.astNode?.type),(0,p.isRequiredArgument)(n)&&n.deprecationReason!=null&&e.reportError(`Required argument ${t.name}.${r.name}(${i}:) cannot be deprecated.`,[I(n.astNode),n.astNode?.type])}}}function E(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,p.isInterfaceType)(r)){e.reportError(`Type ${(0,l.inspect)(t)} must only implement Interface types, it cannot implement ${(0,l.inspect)(r)}.`,P(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,P(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,P(t,r));continue}n[r.name]=!0,O(e,t,r),D(e,t,r)}}function D(e,t,n){let r=t.getFields();for(let i of Object.values(n.getFields())){let a=i.name,o=r[a];if(!o){e.reportError(`Interface field ${n.name}.${a} expected but ${t.name} does not provide it.`,[i.astNode,t.astNode,...t.extensionASTNodes]);continue}(0,f.isTypeSubTypeOf)(e.schema,o.type,i.type)||e.reportError(`Interface field ${n.name}.${a} expects type ${(0,l.inspect)(i.type)} but ${t.name}.${a} is type ${(0,l.inspect)(o.type)}.`,[i.astNode?.type,o.astNode?.type]);for(let r of i.args){let i=r.name,s=o.args.find(e=>e.name===i);if(!s){e.reportError(`Interface field argument ${n.name}.${a}(${i}:) expected but ${t.name}.${a} does not provide it.`,[r.astNode,o.astNode]);continue}(0,f.isEqualType)(r.type,s.type)||e.reportError(`Interface field argument ${n.name}.${a}(${i}:) expects type ${(0,l.inspect)(r.type)} but ${t.name}.${a}(${i}:) is type ${(0,l.inspect)(s.type)}.`,[r.astNode?.type,s.astNode?.type])}for(let r of o.args){let o=r.name;!i.args.find(e=>e.name===o)&&(0,p.isRequiredArgument)(r)&&e.reportError(`Object field ${t.name}.${a} includes required argument ${o} that is missing from the Interface field ${n.name}.${a}.`,[r.astNode,i.astNode])}}}function O(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...P(n,i),...P(t,n)])}function k(e,t){let n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,F(t,i.name));continue}r[i.name]=!0,(0,p.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,l.inspect)(i)}.`,F(t,String(i)))}}function A(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let t of n)C(e,t)}function j(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)C(e,r),!(0,p.isInputType)(r.type)&&e.reportError(`The type of ${t.name}.${r.name} must be Input Type but got: ${(0,l.inspect)(r.type)}.`,r.astNode?.type),(0,p.isRequiredInputField)(r)&&r.deprecationReason!=null&&e.reportError(`Required input field ${t.name}.${r.name} cannot be deprecated.`,[I(r.astNode),r.astNode?.type]),t.isOneOf&&M(t,r,e)}function M(e,t,n){(0,p.isNonNullType)(t.type)&&n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,t.astNode?.type),t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function N(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(a){if(t[a.name])return;t[a.name]=!0,r[a.name]=n.length;let o=Object.values(a.getFields());for(let t of o)if((0,p.isNonNullType)(t.type)&&(0,p.isInputObjectType)(t.type.ofType)){let a=t.type.ofType,o=r[a.name];if(n.push(t),o===void 0)i(a);else{let t=n.slice(o),r=t.map(e=>e.name).join(`.`);e.reportError(`Cannot reference Input Object "${a.name}" within itself through a series of non-null fields: "${r}".`,t.map(e=>e.astNode))}n.pop()}r[a.name]=void 0}}function P(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n==null?r:[n,...r]).flatMap(e=>e.interfaces??[]).filter(e=>e.name.value===t.name)}function F(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n==null?r:[n,...r]).flatMap(e=>e.types??[]).filter(e=>e.name.value===t)}function I(e){return e?.directives?.find(e=>e.name.value===m.GraphQLDeprecatedDirective.name)}}));export default l();export{l as require_validate};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_ast as t}from"../language/ast.js";import{require_kinds as n}from"../language/kinds.js";import{require_visitor as r}from"../language/visitor.js";import{require_definition as i}from"../type/definition.js";import{require_introspection as a}from"../type/introspection.js";import{require_typeFromAST as o}from"./typeFromAST.js";var s=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TypeInfo=void 0,e.visitWithTypeInfo=m;var s=t(),c=n(),l=r(),u=i(),d=a(),f=o();e.TypeInfo=class{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n??p,t&&((0,u.isInputType)(t)&&this._inputTypeStack.push(t),(0,u.isCompositeType)(t)&&this._parentTypeStack.push(t),(0,u.isOutputType)(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return`TypeInfo`}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){let t=this._schema;switch(e.kind){case c.Kind.SELECTION_SET:{let e=(0,u.getNamedType)(this.getType());this._parentTypeStack.push((0,u.isCompositeType)(e)?e:void 0);break}case c.Kind.FIELD:{let n=this.getParentType(),r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push((0,u.isOutputType)(i)?i:void 0);break}case c.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case c.Kind.OPERATION_DEFINITION:{let n=t.getRootType(e.operation);this._typeStack.push((0,u.isObjectType)(n)?n:void 0);break}case c.Kind.INLINE_FRAGMENT:case c.Kind.FRAGMENT_DEFINITION:{let n=e.typeCondition,r=n?(0,f.typeFromAST)(t,n):(0,u.getNamedType)(this.getType());this._typeStack.push((0,u.isOutputType)(r)?r:void 0);break}case c.Kind.VARIABLE_DEFINITION:{let n=(0,f.typeFromAST)(t,e.type);this._inputTypeStack.push((0,u.isInputType)(n)?n:void 0);break}case c.Kind.ARGUMENT:{let t,n,r=this.getDirective()??this.getFieldDef();r&&(t=r.args.find(t=>t.name===e.name.value),t&&(n=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push((0,u.isInputType)(n)?n:void 0);break}case c.Kind.LIST:{let e=(0,u.getNullableType)(this.getInputType()),t=(0,u.isListType)(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,u.isInputType)(t)?t:void 0);break}case c.Kind.OBJECT_FIELD:{let t=(0,u.getNamedType)(this.getInputType()),n,r;(0,u.isInputObjectType)(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push((0,u.isInputType)(n)?n:void 0);break}case c.Kind.ENUM:{let t=(0,u.getNamedType)(this.getInputType()),n;(0,u.isEnumType)(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}default:}}leave(e){switch(e.kind){case c.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case c.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case c.Kind.DIRECTIVE:this._directive=null;break;case c.Kind.OPERATION_DEFINITION:case c.Kind.INLINE_FRAGMENT:case c.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case c.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case c.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case c.Kind.LIST:case c.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case c.Kind.ENUM:this._enumValue=null;break;default:}}};function p(e,t,n){let r=n.name.value;if(r===d.SchemaMetaFieldDef.name&&e.getQueryType()===t)return d.SchemaMetaFieldDef;if(r===d.TypeMetaFieldDef.name&&e.getQueryType()===t)return d.TypeMetaFieldDef;if(r===d.TypeNameMetaFieldDef.name&&(0,u.isCompositeType)(t))return d.TypeNameMetaFieldDef;if((0,u.isObjectType)(t)||(0,u.isInterfaceType)(t))return t.getFields()[r]}function m(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,l.getEnterLeaveForKind)(t,r.kind).enter;if(i){let a=i.apply(t,n);return a!==void 0&&(e.leave(r),(0,s.isNode)(a)&&e.enter(a)),a}},leave(...n){let r=n[0],i=(0,l.getEnterLeaveForKind)(t,r.kind).leave,a;return i&&(a=i.apply(t,n)),e.leave(r),a}}}}));export default s();export{s as require_TypeInfo};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_devAssert as t}from"../jsutils/devAssert.js";import{require_GraphQLError as n}from"../error/GraphQLError.js";import{require_assertName as r}from"../type/assertName.js";var i=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assertValidName=s,e.isValidNameError=c;var i=t(),a=n(),o=r();function s(e){let t=c(e);if(t)throw t;return e}function c(e){if(typeof e==`string`||(0,i.devAssert)(!1,`Expected name to be a string.`),e.startsWith(`__`))return new a.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,o.assertName)(e)}catch(e){return e}}}));export default i();export{i as require_assertValidName};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_isObjectLike as t}from"../jsutils/isObjectLike.js";import{require_invariant as n}from"../jsutils/invariant.js";import{require_kinds as r}from"../language/kinds.js";import{require_inspect as i}from"../jsutils/inspect.js";import{require_definition as a}from"../type/definition.js";import{require_scalars as o}from"../type/scalars.js";import{require_isIterableObject as s}from"../jsutils/isIterableObject.js";var c=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.astFromValue=h;var c=i(),l=n(),u=s(),d=t(),f=r(),p=a(),m=o();function h(e,t){if((0,p.isNonNullType)(t)){let n=h(e,t.ofType);return n?.kind===f.Kind.NULL?null:n}if(e===null)return{kind:f.Kind.NULL};if(e===void 0)return null;if((0,p.isListType)(t)){let n=t.ofType;if((0,u.isIterableObject)(e)){let t=[];for(let r of e){let e=h(r,n);e!=null&&t.push(e)}return{kind:f.Kind.LIST,values:t}}return h(e,n)}if((0,p.isInputObjectType)(t)){if(!(0,d.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let t=h(e[r.name],r.type);t&&n.push({kind:f.Kind.OBJECT_FIELD,name:{kind:f.Kind.NAME,value:r.name},value:t})}return{kind:f.Kind.OBJECT,fields:n}}if((0,p.isLeafType)(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n==`boolean`)return{kind:f.Kind.BOOLEAN,value:n};if(typeof n==`number`&&Number.isFinite(n)){let e=String(n);return g.test(e)?{kind:f.Kind.INT,value:e}:{kind:f.Kind.FLOAT,value:e}}if(typeof n==`string`)return(0,p.isEnumType)(t)?{kind:f.Kind.ENUM,value:n}:t===m.GraphQLID&&g.test(n)?{kind:f.Kind.INT,value:n}:{kind:f.Kind.STRING,value:n};throw TypeError(`Cannot convert value to AST: ${(0,c.inspect)(n)}.`)}(0,l.invariant)(!1,`Unexpected input type: `+(0,c.inspect)(t))}let g=/^-?(?:0|[1-9][0-9]*)$/}));export default c();export{c as require_astFromValue};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_devAssert as t}from"../jsutils/devAssert.js";import{require_kinds as n}from"../language/kinds.js";import{require_parser as r}from"../language/parser.js";import{require_directives as i}from"../type/directives.js";import{require_schema as a}from"../type/schema.js";import{require_validate as o}from"../validation/validate.js";import{require_extendSchema as s}from"./extendSchema.js";var c=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.buildASTSchema=h,e.buildSchema=g;var c=t(),l=n(),u=r(),d=i(),f=a(),p=o(),m=s();function h(e,t){e!=null&&e.kind===l.Kind.DOCUMENT||(0,c.devAssert)(!1,`Must provide valid Document AST.`),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&(0,p.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,m.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let e of r.types)switch(e.name){case`Query`:r.query=e;break;case`Mutation`:r.mutation=e;break;case`Subscription`:r.subscription=e;break}let i=[...r.directives,...d.specifiedDirectives.filter(e=>r.directives.every(t=>t.name!==e.name))];return new f.GraphQLSchema({...r,directives:i})}function g(e,t){return h((0,u.parse)(e,{noLocation:t?.noLocation,allowLegacyFragmentVariables:t?.allowLegacyFragmentVariables}),{assumeValidSDL:t?.assumeValidSDL,assumeValid:t?.assumeValid})}}));export default c();export{c as require_buildASTSchema};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_devAssert as t}from"../jsutils/devAssert.js";import{require_isObjectLike as n}from"../jsutils/isObjectLike.js";import{require_inspect as r}from"../jsutils/inspect.js";import{require_parser as i}from"../language/parser.js";import{require_keyValMap as a}from"../jsutils/keyValMap.js";import{require_definition as o}from"../type/definition.js";import{require_scalars as s}from"../type/scalars.js";import{require_directives as c}from"../type/directives.js";import{require_introspection as l}from"../type/introspection.js";import{require_schema as u}from"../type/schema.js";import{require_valueFromAST as d}from"./valueFromAST.js";var f=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.buildClientSchema=C;var f=t(),p=r(),m=n(),h=a(),g=i(),_=o(),v=c(),y=l(),b=s(),x=u(),S=d();function C(e,t){(0,m.isObjectLike)(e)&&(0,m.isObjectLike)(e.__schema)||(0,f.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,p.inspect)(e)}.`);let n=e.__schema,r=(0,h.keyValMap)(n.types,e=>e.name,e=>C(e));for(let e of[...b.specifiedScalarTypes,...y.introspectionTypes])r[e.name]&&(r[e.name]=e);let i=n.queryType?u(n.queryType):null,a=n.mutationType?u(n.mutationType):null,o=n.subscriptionType?u(n.subscriptionType):null,s=n.directives?n.directives.map(F):[];return new x.GraphQLSchema({description:n.description,query:i,mutation:a,subscription:o,types:Object.values(r),directives:s,assumeValid:t?.assumeValid});function c(e){if(e.kind===y.TypeKind.LIST){let t=e.ofType;if(!t)throw Error(`Decorated type deeper than introspection query.`);return new _.GraphQLList(c(t))}if(e.kind===y.TypeKind.NON_NULL){let t=e.ofType;if(!t)throw Error(`Decorated type deeper than introspection query.`);let n=c(t);return new _.GraphQLNonNull((0,_.assertNullableType)(n))}return l(e)}function l(e){let t=e.name;if(!t)throw Error(`Unknown type reference: ${(0,p.inspect)(e)}.`);let n=r[t];if(!n)throw Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function u(e){return(0,_.assertObjectType)(l(e))}function d(e){return(0,_.assertInterfaceType)(l(e))}function C(e){if(e!=null&&e.name!=null&&e.kind!=null)switch(e.kind){case y.TypeKind.SCALAR:return w(e);case y.TypeKind.OBJECT:return E(e);case y.TypeKind.INTERFACE:return D(e);case y.TypeKind.UNION:return O(e);case y.TypeKind.ENUM:return k(e);case y.TypeKind.INPUT_OBJECT:return A(e)}let t=(0,p.inspect)(e);throw Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${t}.`)}function w(e){return new _.GraphQLScalarType({name:e.name,description:e.description,specifiedByURL:e.specifiedByURL})}function T(e){if(e.interfaces===null&&e.kind===y.TypeKind.INTERFACE)return[];if(!e.interfaces){let t=(0,p.inspect)(e);throw Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(d)}function E(e){return new _.GraphQLObjectType({name:e.name,description:e.description,interfaces:()=>T(e),fields:()=>j(e)})}function D(e){return new _.GraphQLInterfaceType({name:e.name,description:e.description,interfaces:()=>T(e),fields:()=>j(e)})}function O(e){if(!e.possibleTypes){let t=(0,p.inspect)(e);throw Error(`Introspection result missing possibleTypes: ${t}.`)}return new _.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(u)})}function k(e){if(!e.enumValues){let t=(0,p.inspect)(e);throw Error(`Introspection result missing enumValues: ${t}.`)}return new _.GraphQLEnumType({name:e.name,description:e.description,values:(0,h.keyValMap)(e.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))})}function A(e){if(!e.inputFields){let t=(0,p.inspect)(e);throw Error(`Introspection result missing inputFields: ${t}.`)}return new _.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>N(e.inputFields),isOneOf:e.isOneOf})}function j(e){if(!e.fields)throw Error(`Introspection result missing fields: ${(0,p.inspect)(e)}.`);return(0,h.keyValMap)(e.fields,e=>e.name,M)}function M(e){let t=c(e.type);if(!(0,_.isOutputType)(t)){let e=(0,p.inspect)(t);throw Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){let t=(0,p.inspect)(e);throw Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:N(e.args)}}function N(e){return(0,h.keyValMap)(e,e=>e.name,P)}function P(e){let t=c(e.type);if(!(0,_.isInputType)(t)){let e=(0,p.inspect)(t);throw Error(`Introspection must provide input type for arguments, but received: ${e}.`)}let n=e.defaultValue==null?void 0:(0,S.valueFromAST)((0,g.parseValue)(e.defaultValue),t);return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}function F(e){if(!e.args){let t=(0,p.inspect)(e);throw Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){let t=(0,p.inspect)(e);throw Error(`Introspection result missing directive locations: ${t}.`)}return new v.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:N(e.args)})}}}));export default f();export{f as require_buildClientSchema};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_isObjectLike as t}from"../jsutils/isObjectLike.js";import{require_invariant as n}from"../jsutils/invariant.js";import{require_GraphQLError as r}from"../error/GraphQLError.js";import{require_inspect as i}from"../jsutils/inspect.js";import{require_didYouMean as a}from"../jsutils/didYouMean.js";import{require_suggestionList as o}from"../jsutils/suggestionList.js";import{require_definition as s}from"../type/definition.js";import{require_isIterableObject as c}from"../jsutils/isIterableObject.js";import{require_printPathArray as l}from"../jsutils/printPathArray.js";import{require_Path as u}from"../jsutils/Path.js";var d=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.coerceInputValue=x;var d=a(),f=i(),p=n(),m=c(),h=t(),g=u(),_=l(),v=o(),y=r(),b=s();function x(e,t,n=S){return C(e,t,n,void 0)}function S(e,t,n){let r=`Invalid value `+(0,f.inspect)(t);throw e.length>0&&(r+=` at "value${(0,_.printPathArray)(e)}"`),n.message=r+`: `+n.message,n}function C(e,t,n,r){if((0,b.isNonNullType)(t)){if(e!=null)return C(e,t.ofType,n,r);n((0,g.pathToArray)(r),e,new y.GraphQLError(`Expected non-nullable type "${(0,f.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,b.isListType)(t)){let i=t.ofType;return(0,m.isIterableObject)(e)?Array.from(e,(e,t)=>C(e,i,n,(0,g.addPath)(r,t,void 0))):[C(e,i,n,r)]}if((0,b.isInputObjectType)(t)){if(!(0,h.isObjectLike)(e)||Array.isArray(e)){n((0,g.pathToArray)(r),e,new y.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},a=t.getFields();for(let o of Object.values(a)){let a=e[o.name];if(a===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if((0,b.isNonNullType)(o.type)){let t=(0,f.inspect)(o.type);n((0,g.pathToArray)(r),e,new y.GraphQLError(`Field "${o.name}" of required type "${t}" was not provided.`))}continue}i[o.name]=C(a,o.type,n,(0,g.addPath)(r,o.name,t.name))}for(let i of Object.keys(e))if(!a[i]){let a=(0,v.suggestionList)(i,Object.keys(t.getFields()));n((0,g.pathToArray)(r),e,new y.GraphQLError(`Field "${i}" is not defined by type "${t.name}".`+(0,d.didYouMean)(a)))}if(t.isOneOf){let a=Object.keys(i);a.length!==1&&n((0,g.pathToArray)(r),e,new y.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let o=a[0],s=i[o];s===null&&n((0,g.pathToArray)(r).concat(o),s,new y.GraphQLError(`Field "${o}" must be non-null.`))}return i}if((0,b.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(i){i instanceof y.GraphQLError?n((0,g.pathToArray)(r),e,i):n((0,g.pathToArray)(r),e,new y.GraphQLError(`Expected type "${t.name}". `+i.message,{originalError:i}));return}return i===void 0&&n((0,g.pathToArray)(r),e,new y.GraphQLError(`Expected type "${t.name}".`)),i}(0,p.invariant)(!1,`Unexpected input type: `+(0,f.inspect)(t))}}));export default d();export{d as require_coerceInputValue};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_kinds as t}from"../language/kinds.js";var n=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.concatAST=r;var n=t();function r(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:n.Kind.DOCUMENT,definitions:t}}}));export default n();export{n as require_concatAST};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_devAssert as t}from"../jsutils/devAssert.js";import{require_invariant as n}from"../jsutils/invariant.js";import{require_kinds as r}from"../language/kinds.js";import{require_inspect as i}from"../jsutils/inspect.js";import{require_keyMap as a}from"../jsutils/keyMap.js";import{require_mapValue as o}from"../jsutils/mapValue.js";import{require_definition as s}from"../type/definition.js";import{require_scalars as c}from"../type/scalars.js";import{require_directives as l}from"../type/directives.js";import{require_introspection as u}from"../type/introspection.js";import{require_schema as d}from"../type/schema.js";import{require_predicates as f}from"../language/predicates.js";import{require_valueFromAST as p}from"./valueFromAST.js";import{require_values as m}from"../execution/values.js";import{require_validate as h}from"../validation/validate.js";var g=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.extendSchema=j,e.extendSchemaImpl=M;var g=t(),_=i(),v=n(),y=a(),b=o(),x=r(),S=f(),C=s(),w=l(),T=u(),E=c(),D=d(),O=h(),k=m(),A=p();function j(e,t,n){(0,D.assertSchema)(e),t!=null&&t.kind===x.Kind.DOCUMENT||(0,g.devAssert)(!1,`Must provide valid Document AST.`),n?.assumeValid!==!0&&n?.assumeValidSDL!==!0&&(0,O.assertValidSDLExtension)(t,e);let r=e.toConfig(),i=M(r,t,n);return r===i?e:new D.GraphQLSchema(i)}function M(e,t,n){let r=[],i=Object.create(null),a=[],o,s=[];for(let e of t.definitions)if(e.kind===x.Kind.SCHEMA_DEFINITION)o=e;else if(e.kind===x.Kind.SCHEMA_EXTENSION)s.push(e);else if((0,S.isTypeDefinitionNode)(e))r.push(e);else if((0,S.isTypeExtensionNode)(e)){let t=e.name.value,n=i[t];i[t]=n?n.concat([e]):[e]}else e.kind===x.Kind.DIRECTIVE_DEFINITION&&a.push(e);if(Object.keys(i).length===0&&r.length===0&&a.length===0&&s.length===0&&o==null)return e;let c=Object.create(null);for(let t of e.types)c[t.name]=p(t);for(let e of r){let t=e.name.value;c[t]=N[t]??K(e)}let l={query:e.query&&d(e.query),mutation:e.mutation&&d(e.mutation),subscription:e.subscription&&d(e.subscription),...o&&M([o]),...M(s)};return{description:o?.description?.value,...l,types:Object.values(c),directives:[...e.directives.map(f),...a.map(z)],extensions:Object.create(null),astNode:o??e.astNode,extensionASTNodes:e.extensionASTNodes.concat(s),assumeValid:n?.assumeValid??!1};function u(e){return(0,C.isListType)(e)?new C.GraphQLList(u(e.ofType)):(0,C.isNonNullType)(e)?new C.GraphQLNonNull(u(e.ofType)):d(e)}function d(e){return c[e.name]}function f(e){let t=e.toConfig();return new w.GraphQLDirective({...t,args:(0,b.mapValue)(t.args,j)})}function p(e){if((0,T.isIntrospectionType)(e)||(0,E.isSpecifiedScalarType)(e))return e;if((0,C.isScalarType)(e))return g(e);if((0,C.isObjectType)(e))return y(e);if((0,C.isInterfaceType)(e))return D(e);if((0,C.isUnionType)(e))return O(e);if((0,C.isEnumType)(e))return h(e);if((0,C.isInputObjectType)(e))return m(e);(0,v.invariant)(!1,`Unexpected type: `+(0,_.inspect)(e))}function m(e){let t=e.toConfig(),n=i[t.name]??[];return new C.GraphQLInputObjectType({...t,fields:()=>({...(0,b.mapValue)(t.fields,e=>({...e,type:u(e.type)})),...H(n)}),extensionASTNodes:t.extensionASTNodes.concat(n)})}function h(e){let t=e.toConfig(),n=i[e.name]??[];return new C.GraphQLEnumType({...t,values:{...t.values,...U(n)},extensionASTNodes:t.extensionASTNodes.concat(n)})}function g(e){let t=e.toConfig(),n=i[t.name]??[],r=t.specifiedByURL;for(let e of n)r=F(e)??r;return new C.GraphQLScalarType({...t,specifiedByURL:r,extensionASTNodes:t.extensionASTNodes.concat(n)})}function y(e){let t=e.toConfig(),n=i[t.name]??[];return new C.GraphQLObjectType({...t,interfaces:()=>[...e.getInterfaces().map(d),...W(n)],fields:()=>({...(0,b.mapValue)(t.fields,k),...B(n)}),extensionASTNodes:t.extensionASTNodes.concat(n)})}function D(e){let t=e.toConfig(),n=i[t.name]??[];return new C.GraphQLInterfaceType({...t,interfaces:()=>[...e.getInterfaces().map(d),...W(n)],fields:()=>({...(0,b.mapValue)(t.fields,k),...B(n)}),extensionASTNodes:t.extensionASTNodes.concat(n)})}function O(e){let t=e.toConfig(),n=i[t.name]??[];return new C.GraphQLUnionType({...t,types:()=>[...e.getTypes().map(d),...G(n)],extensionASTNodes:t.extensionASTNodes.concat(n)})}function k(e){return{...e,type:u(e.type),args:e.args&&(0,b.mapValue)(e.args,j)}}function j(e){return{...e,type:u(e.type)}}function M(e){let t={};for(let n of e){let e=n.operationTypes??[];for(let n of e)t[n.operation]=L(n.type)}return t}function L(e){let t=e.name.value,n=N[t]??c[t];if(n===void 0)throw Error(`Unknown type: "${t}".`);return n}function R(e){return e.kind===x.Kind.LIST_TYPE?new C.GraphQLList(R(e.type)):e.kind===x.Kind.NON_NULL_TYPE?new C.GraphQLNonNull(R(e.type)):L(e)}function z(e){return new w.GraphQLDirective({name:e.name.value,description:e.description?.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:V(e.arguments),astNode:e})}function B(e){let t=Object.create(null);for(let n of e){let e=n.fields??[];for(let n of e)t[n.name.value]={type:R(n.type),description:n.description?.value,args:V(n.arguments),deprecationReason:P(n),astNode:n}}return t}function V(e){let t=e??[],n=Object.create(null);for(let e of t){let t=R(e.type);n[e.name.value]={type:t,description:e.description?.value,defaultValue:(0,A.valueFromAST)(e.defaultValue,t),deprecationReason:P(e),astNode:e}}return n}function H(e){let t=Object.create(null);for(let n of e){let e=n.fields??[];for(let n of e){let e=R(n.type);t[n.name.value]={type:e,description:n.description?.value,defaultValue:(0,A.valueFromAST)(n.defaultValue,e),deprecationReason:P(n),astNode:n}}}return t}function U(e){let t=Object.create(null);for(let n of e){let e=n.values??[];for(let n of e)t[n.name.value]={description:n.description?.value,deprecationReason:P(n),astNode:n}}return t}function W(e){return e.flatMap(e=>e.interfaces?.map(L)??[])}function G(e){return e.flatMap(e=>e.types?.map(L)??[])}function K(e){let t=e.name.value,n=i[t]??[];switch(e.kind){case x.Kind.OBJECT_TYPE_DEFINITION:{let r=[e,...n];return new C.GraphQLObjectType({name:t,description:e.description?.value,interfaces:()=>W(r),fields:()=>B(r),astNode:e,extensionASTNodes:n})}case x.Kind.INTERFACE_TYPE_DEFINITION:{let r=[e,...n];return new C.GraphQLInterfaceType({name:t,description:e.description?.value,interfaces:()=>W(r),fields:()=>B(r),astNode:e,extensionASTNodes:n})}case x.Kind.ENUM_TYPE_DEFINITION:{let r=[e,...n];return new C.GraphQLEnumType({name:t,description:e.description?.value,values:U(r),astNode:e,extensionASTNodes:n})}case x.Kind.UNION_TYPE_DEFINITION:{let r=[e,...n];return new C.GraphQLUnionType({name:t,description:e.description?.value,types:()=>G(r),astNode:e,extensionASTNodes:n})}case x.Kind.SCALAR_TYPE_DEFINITION:return new C.GraphQLScalarType({name:t,description:e.description?.value,specifiedByURL:F(e),astNode:e,extensionASTNodes:n});case x.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let r=[e,...n];return new C.GraphQLInputObjectType({name:t,description:e.description?.value,fields:()=>H(r),astNode:e,extensionASTNodes:n,isOneOf:I(e)})}}}}let N=(0,y.keyMap)([...E.specifiedScalarTypes,...T.introspectionTypes],e=>e.name);function P(e){return(0,k.getDirectiveValues)(w.GraphQLDeprecatedDirective,e)?.reason}function F(e){return(0,k.getDirectiveValues)(w.GraphQLSpecifiedByDirective,e)?.url}function I(e){return!!(0,k.getDirectiveValues)(w.GraphQLOneOfDirective,e)}}));export default g();export{g as require_extendSchema};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_invariant as t}from"../jsutils/invariant.js";import{require_inspect as n}from"../jsutils/inspect.js";import{require_keyMap as r}from"../jsutils/keyMap.js";import{require_printer as i}from"../language/printer.js";import{require_definition as a}from"../type/definition.js";import{require_scalars as o}from"../type/scalars.js";import{require_astFromValue as s}from"./astFromValue.js";import{require_sortValueNode as c}from"./sortValueNode.js";var l=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DangerousChangeType=e.BreakingChangeType=void 0,e.findBreakingChanges=y,e.findDangerousChanges=b;var l=n(),u=t(),d=r(),f=i(),p=a(),m=o(),h=s(),g=c(),_;e.BreakingChangeType=_,(function(e){e.TYPE_REMOVED=`TYPE_REMOVED`,e.TYPE_CHANGED_KIND=`TYPE_CHANGED_KIND`,e.TYPE_REMOVED_FROM_UNION=`TYPE_REMOVED_FROM_UNION`,e.VALUE_REMOVED_FROM_ENUM=`VALUE_REMOVED_FROM_ENUM`,e.REQUIRED_INPUT_FIELD_ADDED=`REQUIRED_INPUT_FIELD_ADDED`,e.IMPLEMENTED_INTERFACE_REMOVED=`IMPLEMENTED_INTERFACE_REMOVED`,e.FIELD_REMOVED=`FIELD_REMOVED`,e.FIELD_CHANGED_KIND=`FIELD_CHANGED_KIND`,e.REQUIRED_ARG_ADDED=`REQUIRED_ARG_ADDED`,e.ARG_REMOVED=`ARG_REMOVED`,e.ARG_CHANGED_KIND=`ARG_CHANGED_KIND`,e.DIRECTIVE_REMOVED=`DIRECTIVE_REMOVED`,e.DIRECTIVE_ARG_REMOVED=`DIRECTIVE_ARG_REMOVED`,e.REQUIRED_DIRECTIVE_ARG_ADDED=`REQUIRED_DIRECTIVE_ARG_ADDED`,e.DIRECTIVE_REPEATABLE_REMOVED=`DIRECTIVE_REPEATABLE_REMOVED`,e.DIRECTIVE_LOCATION_REMOVED=`DIRECTIVE_LOCATION_REMOVED`})(_||(e.BreakingChangeType=_={}));var v;e.DangerousChangeType=v,(function(e){e.VALUE_ADDED_TO_ENUM=`VALUE_ADDED_TO_ENUM`,e.TYPE_ADDED_TO_UNION=`TYPE_ADDED_TO_UNION`,e.OPTIONAL_INPUT_FIELD_ADDED=`OPTIONAL_INPUT_FIELD_ADDED`,e.OPTIONAL_ARG_ADDED=`OPTIONAL_ARG_ADDED`,e.IMPLEMENTED_INTERFACE_ADDED=`IMPLEMENTED_INTERFACE_ADDED`,e.ARG_DEFAULT_VALUE_CHANGE=`ARG_DEFAULT_VALUE_CHANGE`})(v||(e.DangerousChangeType=v={}));function y(e,t){return x(e,t).filter(e=>e.type in _)}function b(e,t){return x(e,t).filter(e=>e.type in v)}function x(e,t){return[...C(e,t),...S(e,t)]}function S(e,t){let n=[],r=P(e.getDirectives(),t.getDirectives());for(let e of r.removed)n.push({type:_.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(let[e,t]of r.persisted){let r=P(e.args,t.args);for(let t of r.added)(0,p.isRequiredArgument)(t)&&n.push({type:_.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(let t of r.removed)n.push({type:_.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:_.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(let r of e.locations)t.locations.includes(r)||n.push({type:_.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}function C(e,t){let n=[],r=P(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let e of r.removed)n.push({type:_.TYPE_REMOVED,description:(0,m.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(let[e,t]of r.persisted)(0,p.isEnumType)(e)&&(0,p.isEnumType)(t)?n.push(...E(e,t)):(0,p.isUnionType)(e)&&(0,p.isUnionType)(t)?n.push(...T(e,t)):(0,p.isInputObjectType)(e)&&(0,p.isInputObjectType)(t)?n.push(...w(e,t)):(0,p.isObjectType)(e)&&(0,p.isObjectType)(t)||(0,p.isInterfaceType)(e)&&(0,p.isInterfaceType)(t)?n.push(...O(e,t),...D(e,t)):e.constructor!==t.constructor&&n.push({type:_.TYPE_CHANGED_KIND,description:`${e.name} changed from ${M(e)} to ${M(t)}.`});return n}function w(e,t){let n=[],r=P(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.added)(0,p.isRequiredInputField)(t)?n.push({type:_.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:v.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(let t of r.removed)n.push({type:_.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)j(t.type,i.type)||n.push({type:_.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function T(e,t){let n=[],r=P(e.getTypes(),t.getTypes());for(let t of r.added)n.push({type:v.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(let t of r.removed)n.push({type:_.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function E(e,t){let n=[],r=P(e.getValues(),t.getValues());for(let t of r.added)n.push({type:v.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(let t of r.removed)n.push({type:_.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function D(e,t){let n=[],r=P(e.getInterfaces(),t.getInterfaces());for(let t of r.added)n.push({type:v.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(let t of r.removed)n.push({type:_.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function O(e,t){let n=[],r=P(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.removed)n.push({type:_.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)n.push(...k(e,t,i)),A(t.type,i.type)||n.push({type:_.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function k(e,t,n){let r=[],i=P(t.args,n.args);for(let n of i.removed)r.push({type:_.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(let[n,a]of i.persisted)if(!j(n.type,a.type))r.push({type:_.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(a.type)}.`});else if(n.defaultValue!==void 0)if(a.defaultValue===void 0)r.push({type:v.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{let i=N(n.defaultValue,n.type),o=N(a.defaultValue,a.type);i!==o&&r.push({type:v.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${o}.`})}for(let n of i.added)(0,p.isRequiredArgument)(n)?r.push({type:_.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:v.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}function A(e,t){return(0,p.isListType)(e)?(0,p.isListType)(t)&&A(e.ofType,t.ofType)||(0,p.isNonNullType)(t)&&A(e,t.ofType):(0,p.isNonNullType)(e)?(0,p.isNonNullType)(t)&&A(e.ofType,t.ofType):(0,p.isNamedType)(t)&&e.name===t.name||(0,p.isNonNullType)(t)&&A(e,t.ofType)}function j(e,t){return(0,p.isListType)(e)?(0,p.isListType)(t)&&j(e.ofType,t.ofType):(0,p.isNonNullType)(e)?(0,p.isNonNullType)(t)&&j(e.ofType,t.ofType)||!(0,p.isNonNullType)(t)&&j(e.ofType,t):(0,p.isNamedType)(t)&&e.name===t.name}function M(e){if((0,p.isScalarType)(e))return`a Scalar type`;if((0,p.isObjectType)(e))return`an Object type`;if((0,p.isInterfaceType)(e))return`an Interface type`;if((0,p.isUnionType)(e))return`a Union type`;if((0,p.isEnumType)(e))return`an Enum type`;if((0,p.isInputObjectType)(e))return`an Input type`;(0,u.invariant)(!1,`Unexpected type: `+(0,l.inspect)(e))}function N(e,t){let n=(0,h.astFromValue)(e,t);return n??(0,u.invariant)(!1),(0,f.print)((0,g.sortValueNode)(n))}function P(e,t){let n=[],r=[],i=[],a=(0,d.keyMap)(e,({name:e})=>e),o=(0,d.keyMap)(t,({name:e})=>e);for(let t of e){let e=o[t.name];e===void 0?r.push(t):i.push([t,e])}for(let e of t)a[e.name]===void 0&&n.push(e);return{added:n,persisted:i,removed:r}}}));export default l();export{l as require_findBreakingChanges};
@@ -1,107 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";var t=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getIntrospectionQuery=t;function t(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?`description`:``,r=t.specifiedByUrl?`specifiedByURL`:``,i=t.directiveIsRepeatable?`isRepeatable`:``,a=t.schemaDescription?n:``;function o(e){return t.inputValueDeprecation?e:``}let s=t.oneOf?`isOneOf`:``;return`
2
- query IntrospectionQuery {
3
- __schema {
4
- ${a}
5
- queryType { name kind }
6
- mutationType { name kind }
7
- subscriptionType { name kind }
8
- types {
9
- ...FullType
10
- }
11
- directives {
12
- name
13
- ${n}
14
- ${i}
15
- locations
16
- args${o(`(includeDeprecated: true)`)} {
17
- ...InputValue
18
- }
19
- }
20
- }
21
- }
22
-
23
- fragment FullType on __Type {
24
- kind
25
- name
26
- ${n}
27
- ${r}
28
- ${s}
29
- fields(includeDeprecated: true) {
30
- name
31
- ${n}
32
- args${o(`(includeDeprecated: true)`)} {
33
- ...InputValue
34
- }
35
- type {
36
- ...TypeRef
37
- }
38
- isDeprecated
39
- deprecationReason
40
- }
41
- inputFields${o(`(includeDeprecated: true)`)} {
42
- ...InputValue
43
- }
44
- interfaces {
45
- ...TypeRef
46
- }
47
- enumValues(includeDeprecated: true) {
48
- name
49
- ${n}
50
- isDeprecated
51
- deprecationReason
52
- }
53
- possibleTypes {
54
- ...TypeRef
55
- }
56
- }
57
-
58
- fragment InputValue on __InputValue {
59
- name
60
- ${n}
61
- type { ...TypeRef }
62
- defaultValue
63
- ${o(`isDeprecated`)}
64
- ${o(`deprecationReason`)}
65
- }
66
-
67
- fragment TypeRef on __Type {
68
- kind
69
- name
70
- ofType {
71
- kind
72
- name
73
- ofType {
74
- kind
75
- name
76
- ofType {
77
- kind
78
- name
79
- ofType {
80
- kind
81
- name
82
- ofType {
83
- kind
84
- name
85
- ofType {
86
- kind
87
- name
88
- ofType {
89
- kind
90
- name
91
- ofType {
92
- kind
93
- name
94
- ofType {
95
- kind
96
- name
97
- }
98
- }
99
- }
100
- }
101
- }
102
- }
103
- }
104
- }
105
- }
106
- }
107
- `}}));export default t();export{t as require_getIntrospectionQuery};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_kinds as t}from"../language/kinds.js";var n=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getOperationAST=r;var n=t();function r(e,t){let r=null;for(let i of e.definitions)if(i.kind===n.Kind.OPERATION_DEFINITION){if(t==null){if(r)return null;r=i}else if(i.name?.value===t)return i}return r}}));export default n();export{n as require_getOperationAST};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_GraphQLError as t}from"../error/GraphQLError.js";var n=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getOperationRootType=r;var n=t();function r(e,t){if(t.operation===`query`){let r=e.getQueryType();if(!r)throw new n.GraphQLError(`Schema does not define the required query root type.`,{nodes:t});return r}if(t.operation===`mutation`){let r=e.getMutationType();if(!r)throw new n.GraphQLError(`Schema is not configured for mutations.`,{nodes:t});return r}if(t.operation===`subscription`){let r=e.getSubscriptionType();if(!r)throw new n.GraphQLError(`Schema is not configured for subscriptions.`,{nodes:t});return r}throw new n.GraphQLError(`Can only have query, mutation and subscription operations.`,{nodes:t})}}));export default n();export{n as require_getOperationRootType};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_valueFromASTUntyped as t}from"./valueFromASTUntyped.js";import{require_typeComparators as n}from"./typeComparators.js";import{require_astFromValue as r}from"./astFromValue.js";import{require_typeFromAST as i}from"./typeFromAST.js";import{require_TypeInfo as a}from"./TypeInfo.js";import{require_coerceInputValue as o}from"./coerceInputValue.js";import{require_valueFromAST as s}from"./valueFromAST.js";import{require_getIntrospectionQuery as c}from"./getIntrospectionQuery.js";import{require_getOperationAST as l}from"./getOperationAST.js";import{require_getOperationRootType as u}from"./getOperationRootType.js";import{require_introspectionFromSchema as d}from"./introspectionFromSchema.js";import{require_buildClientSchema as f}from"./buildClientSchema.js";import{require_extendSchema as p}from"./extendSchema.js";import{require_buildASTSchema as m}from"./buildASTSchema.js";import{require_lexicographicSortSchema as h}from"./lexicographicSortSchema.js";import{require_printSchema as g}from"./printSchema.js";import{require_concatAST as _}from"./concatAST.js";import{require_separateOperations as v}from"./separateOperations.js";import{require_stripIgnoredCharacters as y}from"./stripIgnoredCharacters.js";import{require_assertValidName as b}from"./assertValidName.js";import{require_findBreakingChanges as x}from"./findBreakingChanges.js";import{require_resolveSchemaCoordinate as S}from"./resolveSchemaCoordinate.js";var C=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),Object.defineProperty(e,`BreakingChangeType`,{enumerable:!0,get:function(){return U.BreakingChangeType}}),Object.defineProperty(e,`DangerousChangeType`,{enumerable:!0,get:function(){return U.DangerousChangeType}}),Object.defineProperty(e,`TypeInfo`,{enumerable:!0,get:function(){return I.TypeInfo}}),Object.defineProperty(e,`assertValidName`,{enumerable:!0,get:function(){return H.assertValidName}}),Object.defineProperty(e,`astFromValue`,{enumerable:!0,get:function(){return F.astFromValue}}),Object.defineProperty(e,`buildASTSchema`,{enumerable:!0,get:function(){return O.buildASTSchema}}),Object.defineProperty(e,`buildClientSchema`,{enumerable:!0,get:function(){return D.buildClientSchema}}),Object.defineProperty(e,`buildSchema`,{enumerable:!0,get:function(){return O.buildSchema}}),Object.defineProperty(e,`coerceInputValue`,{enumerable:!0,get:function(){return L.coerceInputValue}}),Object.defineProperty(e,`concatAST`,{enumerable:!0,get:function(){return R.concatAST}}),Object.defineProperty(e,`doTypesOverlap`,{enumerable:!0,get:function(){return V.doTypesOverlap}}),Object.defineProperty(e,`extendSchema`,{enumerable:!0,get:function(){return k.extendSchema}}),Object.defineProperty(e,`findBreakingChanges`,{enumerable:!0,get:function(){return U.findBreakingChanges}}),Object.defineProperty(e,`findDangerousChanges`,{enumerable:!0,get:function(){return U.findDangerousChanges}}),Object.defineProperty(e,`getIntrospectionQuery`,{enumerable:!0,get:function(){return C.getIntrospectionQuery}}),Object.defineProperty(e,`getOperationAST`,{enumerable:!0,get:function(){return w.getOperationAST}}),Object.defineProperty(e,`getOperationRootType`,{enumerable:!0,get:function(){return T.getOperationRootType}}),Object.defineProperty(e,`introspectionFromSchema`,{enumerable:!0,get:function(){return E.introspectionFromSchema}}),Object.defineProperty(e,`isEqualType`,{enumerable:!0,get:function(){return V.isEqualType}}),Object.defineProperty(e,`isTypeSubTypeOf`,{enumerable:!0,get:function(){return V.isTypeSubTypeOf}}),Object.defineProperty(e,`isValidNameError`,{enumerable:!0,get:function(){return H.isValidNameError}}),Object.defineProperty(e,`lexicographicSortSchema`,{enumerable:!0,get:function(){return A.lexicographicSortSchema}}),Object.defineProperty(e,`printIntrospectionSchema`,{enumerable:!0,get:function(){return j.printIntrospectionSchema}}),Object.defineProperty(e,`printSchema`,{enumerable:!0,get:function(){return j.printSchema}}),Object.defineProperty(e,`printType`,{enumerable:!0,get:function(){return j.printType}}),Object.defineProperty(e,`resolveASTSchemaCoordinate`,{enumerable:!0,get:function(){return W.resolveASTSchemaCoordinate}}),Object.defineProperty(e,`resolveSchemaCoordinate`,{enumerable:!0,get:function(){return W.resolveSchemaCoordinate}}),Object.defineProperty(e,`separateOperations`,{enumerable:!0,get:function(){return z.separateOperations}}),Object.defineProperty(e,`stripIgnoredCharacters`,{enumerable:!0,get:function(){return B.stripIgnoredCharacters}}),Object.defineProperty(e,`typeFromAST`,{enumerable:!0,get:function(){return M.typeFromAST}}),Object.defineProperty(e,`valueFromAST`,{enumerable:!0,get:function(){return N.valueFromAST}}),Object.defineProperty(e,`valueFromASTUntyped`,{enumerable:!0,get:function(){return P.valueFromASTUntyped}}),Object.defineProperty(e,`visitWithTypeInfo`,{enumerable:!0,get:function(){return I.visitWithTypeInfo}});var C=c(),w=l(),T=u(),E=d(),D=f(),O=m(),k=p(),A=h(),j=g(),M=i(),N=s(),P=t(),F=r(),I=a(),L=o(),R=_(),z=v(),B=y(),V=n(),H=b(),U=x(),W=S()}));export default C();export{C as require_utilities};
@@ -1 +0,0 @@
1
- import{__commonJSMin as e}from"../../../_virtual/rolldown_runtime.js";import{require_invariant as t}from"../jsutils/invariant.js";import{require_parser as n}from"../language/parser.js";import{require_execute as r}from"../execution/execute.js";import{require_getIntrospectionQuery as i}from"./getIntrospectionQuery.js";var a=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.introspectionFromSchema=l;var a=t(),o=n(),s=r(),c=i();function l(e,t){let n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},r=(0,o.parse)((0,c.getIntrospectionQuery)(n)),i=(0,s.executeSync)({schema:e,document:r});return!i.errors&&i.data||(0,a.invariant)(!1),i.data}}));export default a();export{a as require_introspectionFromSchema};