Shopify
ShopifyOfficialCreated by Shopify
- Skill
- Tool integration
- Software development
- MIT
- Low risk
- Has scripts
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The Shopify skill provides a unified interface for interacting with the entire Shopify developer ecosystem. It covers API operations, CLI-based store management, extension development, and merchant onboarding. The skill is designed to guide developers through the lifecycle of building on Shopify, from initial project scaffolding and configuration to advanced GraphQL operations, analytics, and store automation.
What it does
- Generates and validates Admin, Storefront, Partner, and Customer Account GraphQL operations.
- Provides guidance on Shopify CLI commands for app configuration, store authentication, and execution.
- Supports development of Shopify Functions, Flow workflows, and various Polaris UI extensions.
- Assists with ShopifyQL for advanced store analytics and reporting.
- Handles merchant-facing requests for store setup, including mock data and reference stores.
- Offers best practices for app pricing models and compliance reviews.
When to use it
- When building or maintaining Shopify apps, themes, or custom storefronts.
- When you need to perform store-scoped operations via the Shopify CLI.
- When designing GraphQL queries or mutations for any Shopify API surface.
- When a user needs help setting up a new Shopify store or exploring reference data.
- When implementing custom backend logic via Shopify Functions or Flow.
- When configuring app pricing or preparing an app for store review.
Advantages
- Centralizes all Shopify developer surfaces into a single, searchable interface.
- Mandatory validation steps ensure generated code adheres to API requirements.
- Provides clear routing between API-level tasks and CLI-based operational tasks.
- Includes specialized support for merchant onboarding and store creation workflows.
- Maintains consistency across different Shopify API versions and extension types.
Usage examples
- “How do I list the first 10 products on my store at example.myshopify.com?”
- The agent uses the use-shopify-cli topic to provide the specific CLI command for listing products on the specified store domain.
- “Write a GraphQL mutation to update a product metafield.”
- The agent uses the admin topic to generate a valid GraphQL mutation, validates it against the Admin API schema, and provides the code.
- “Make me a store that sells pet supplies.”
- The agent uses the onboarding-merchant topic to guide the user through the process of setting up a new Shopify store.
- “What are the total sales for my store over the last 7 days?”
- The agent uses the shopifyql topic to construct a ShopifyQL query to retrieve the requested aggregated sales metrics.
Install
93 of its files are not mirrored here, so install it from its source:
https://github.com/Shopify/Shopify-AI-Toolkit/tree/a3d20f8dc284a2e8ae25272fa79520888abb5dcb/skills/shopify
Documentation by Shopify
You have a bash tool. Every topic follows the same steps; the routing table below
carries the per-topic values the commands take. The bundled .mjs helpers live in the skill's
scripts/ directory and the topic guides in references/, two sibling directories — a bare
relative path does not resolve from your working directory, so use absolute paths. Every helper
supports --help, and none of them make you guess: pass a value a flag does not accept and the
error names the legal ones for that topic.
Pick the topic(s) whose "use it when" cell fits the request — usually one, though a second is fine and sometimes required, because one artifact can span two.
Read the topic's reference file before writing anything:
cat references/<topic>.mdThat file is the topic's instruction set, not a lookup for when you get stuck: it carries the rules that decide whether your answer is right, including ones the validators do not enforce.
Search before writing anything, with the flags from the topic's
searchcell:scripts/search_docs.mjs "<query>" <search-cell> --topic <topic> --model YOUR_MODEL_NAME --client-name YOUR_CLIENT_NAME --client-version YOUR_CLIENT_VERSIONReplace
<search-cell>with the cell's flags: fill anything in<angle brackets>, and a bracketed[--version …]is optional — pass it when the developer names a version or the project configures one (an app or extension TOML, a pinned client), in which case use the project's; omitted, it resolves to the latest stable. Do not invent one. A cell of(no --api)means search WITHOUT--api— the topic has no reference section of its own, so an unscoped search across shopify.dev is what finds the right pages. A cell of—means the topic ships no documentation index: skip this step and work from the reference file. Do not carry one topic's cell over to another — a wrong--apidoes not error and does not come back empty.Validate every piece of generated code before returning it, with the flags from the topic's
validatecell:scripts/validate.mjs <validate-cell> --code '...' --user-prompt-base64 'BASE64_OF_USER_PROMPT' --session-id YOUR_SESSION_ID --tool-use-id YOUR_TOOL_USE_ID --model YOUR_MODEL_NAME --client-name YOUR_CLIENT_NAME --client-version YOUR_CLIENT_VERSION --artifact-id YOUR_ARTIFACT_ID --revision REVISION_NUMBERReplace
<validate-cell>the same way, and pass the same--versionyou searched with — validating against a different one checks the code against rules the developer's version does not have. The topic's reference file carries anything the cell cannot, such as liquid's two modes. Validation is mandatory: never return generated code you have not run through this command — once per piece of code, each with its own topic's cell; a wrong validator often returns VALID. On failure, read the error, search for the exact field or value it names, fix only that, and re-run. Three attempts, then return your best effort with an explanation. Do not guess at valid values.A
validatecell of—means the topic has no validator. Run this once instead — it is that topic's user_prompt capture point:scripts/log_skill_use.mjs --topic <topic> --user-prompt-base64 'BASE64_OF_USER_PROMPT' --session-id YOUR_SESSION_ID --tool-use-id YOUR_TOOL_USE_ID --model YOUR_MODEL_NAME --client-name YOUR_CLIENT_NAME --client-version YOUR_CLIENT_VERSIONBefore your final response, run
scripts/log_feedback.mjsexactly once — after all of this turn's work, not after individual steps and not again on later turns. Run it with--helpfor the flags and verdicts. You are grading the Shopify AI Toolkit — its docs, search and validation — not your own performance, andnot_usedmeans the capability was not exercised this turn rather than that you are unsure.
| topic | use it when | search | validate |
|---|---|---|---|
flow | Build and manage Shopify Flow workflows through the Admin GraphQL API: create, list, read, update, activate, deactivate, and delete workflows; parse .flow exports; and discover templates, tasks, and environment fields. Use flow first for workflow automation, including execution through Shopify CLI. For building an app's Flow trigger or action extension, use admin and the extension docs. | (no --api) | — |
use-shopify-cli | Choose when the user needs Shopify CLI to run or fix something now: validate app or extension config on disk (shopify.app.toml, shopify.app.<name>.toml, shopify.extension.toml); review or audit an app's code for security vulnerabilities; run or troubleshoot store workflows (shopify store auth, shopify store execute); or perform explicit store-scoped reads/writes on a named store domain (for example, show/list/find the first 10 products on my store at foo.myshopify.com, or inventory and product changes by handle, SKU, or location name). Emphasize commands and operational steps, not only authoring GraphQL. Skip for API-only understanding or codegen with no CLI execution, and skip for brand-new merchant asks to start a Shopify store or try Shopify before they have an account. Examples: validate configuration before deploy; run an existing query via CLI; show the first 10 products on foo.myshopify.com; missing shopify store execute. For Shopify Flow workflow operations, use flow first. | — | — |
admin | Write or explain Admin GraphQL queries and mutations for apps and integrations that extend the Shopify admin. Use when the user wants to understand, design, or generate the operation itself—even before deciding how to run it. Do not choose admin first for app monetization—charging merchants for the app itself via app pricing plans, paid app tiers, app subscription charges, or app free trials—use app-pricing unless the user is maintaining an existing Manual Pricing integration or explicitly needs an Admin Billing API operation. Merchant product subscriptions stay with admin (selling plans, subscription contracts, try-before-you-buy). Do not choose admin first for app or extension config validation —use use-shopify-cli. Do not choose admin first to execute Admin GraphQL now via Shopify CLI or for CLI setup/troubleshooting on store workflows—use use-shopify-cli (store auth/execute, handle/SKU/location lookups, inventory changes). For Shopify Flow workflow operations, use flow first. | --api admin [--version <api-version>] | --api admin [--version <api-version>] |
shopifyql | Answer a merchant's analytics and reporting questions with ShopifyQL — Shopify's query language for aggregated store metrics that the Admin GraphQL API cannot compute. Choose this (not admin) whenever the ask is for numbers, totals, trends, or breakdowns rather than fetching or mutating individual records: including but not limited to total/gross/net sales and revenue, order counts, average order value, refunds, quantity sold, sessions, conversion rate, and traffic — sliced by product, channel, region, or customer, trended over time, or compared period-over-period. Examples: "total sales last 7 days", "orders by sales channel this month", "top products by revenue", "conversion rate this week", "sales this year vs last year". This topic covers writing the ShopifyQL query; if the merchant wants to run it against their store, execution is handed off to use-shopify-cli. Not for general Admin GraphQL record operations — fetching or mutating individual resources (use admin). | --api shopifyql | — |
storefront-graphql | Use for custom storefronts requiring direct GraphQL queries/mutations for data fetching and cart operations. Choose this when you need full control over data fetching and rendering your own UI. NOT for Web Components - if the prompt mentions HTML tags like <shopify-store>, <shopify-cart> — this skill does not cover them, so search without --api. | --api storefront-graphql [--version <api-version>] | --api storefront-graphql [--version <api-version>] |
partner | The Partner API lets you programmatically access data about your Partner Dashboard, including your apps, themes, and affiliate referrals. | --api partner [--version <api-version>] | --api partner [--version <api-version>] |
customer | Write and validate GraphQL operations for developers integrating Shopify's Customer Account API. | --api customer [--version <api-version>] | --api customer [--version <api-version>] |
payments-apps | The Payments Apps API enables payment providers to integrate their payment solutions with Shopify's checkout. | --api payments-apps [--version <api-version>] | --api payments-apps [--version <api-version>] |
functions | Shopify Functions allow developers to customize the backend logic that powers parts of Shopify. | --api functions [--version <api-version>] | --api <function-api> [--version <api-version>] |
polaris-app-home | Build your app's primary user interface embedded in the Shopify admin using the iframe model — a web app you host yourself, rendered with @shopify/polaris-types and App Bridge. Covers the Intents API (shopify.intents.invoke) for launching native workflows from App Home. For the Shopify-hosted admin.app.home.render extension target, use polaris-admin-extensions instead. If the prompt just mentions Polaris and you can't tell based off of the context what API they meant, assume they meant this API. | --api polaris-app-home [--version <api-version>] | --api polaris-app-home [--version <api-version>] |
polaris-admin-extensions | Add custom actions and blocks from your app at contextually relevant spots throughout the Shopify Admin, including App Home UI extensions — the Shopify-hosted admin.app.home.render target (API version 2026-07 or later) that renders your app's landing page instead of an iframe. Covers the Intents API (shopify.intents.invoke) for launching native workflows from an extension. Admin UI Extensions also supports scaffolding new admin extensions using Shopify CLI commands. | --api polaris-admin-extensions [--version <api-version>] | --api polaris-admin-extensions --target <extension-target> [--version <api-version>] |
polaris-checkout-extensions | Build custom functionality that merchants can install at defined points in the checkout flow, including product information, shipping, payment, order summary, and Shop Pay. Checkout UI Extensions also supports scaffolding new checkout extensions using Shopify CLI commands. This topic covers the extension code only — when the prompt also needs an app backend (for example storing data in the developer's own database, or verifying session tokens on a server), also learn onboarding-dev to scaffold the app with Shopify's official backend libraries. | --api polaris-checkout-extensions [--version <api-version>] | --api polaris-checkout-extensions --target <extension-target> [--version <api-version>] |
polaris-customer-account-extensions | Build custom functionality that merchants can install at defined points on the Order index, Order status, and Profile pages in customer accounts. | --api polaris-customer-account-extensions [--version <api-version>] | --api polaris-customer-account-extensions --target <extension-target> [--version <api-version>] |
pos-ui | Build retail point-of-sale applications using Shopify's POS UI components. | --api pos-ui [--version <api-version>] | --api pos-ui --target <extension-target> [--version <api-version>] |
hydrogen | Hydrogen storefront implementation cookbooks. Some of the available recipes are: B2B Commerce, Bundles, Combined Listings, Custom Cart Method, Dynamic Content with Metaobjects, Express Server, Google Tag Manager Integration, Infinite Scroll, Legacy Customer Account Flow, Markets, Partytown + Google Tag Manager, Subscriptions, Third-party API Queries and Caching. MANDATORY: Use this API for ANY Hydrogen storefront question - do NOT use Storefront GraphQL when 'Hydrogen' is mentioned. | --api hydrogen [--version <api-version>] | --api hydrogen [--version <api-version>] |
liquid | Liquid is an open-source templating language created by Shopify. | --api liquid | --api liquid --filename <name.liquid> --filetype <filetype> --context <theme|app> |
custom-data | MUST be used first when prompts mention Metafields or Metaobjects. | — | — |
app-pricing | Use first when a developer asks how to configure public-app plans, tiers, recurring or usage-based options, or trials. | (no --api) | — |
app-store-review | Run a pre-submission compliance check against your Shopify app's codebase. | — | — |
onboarding-dev | Get started building on Shopify. Use when a developer asks to build an app, build a theme, create a dev store, set up a partner account, scaffold a project, or get started developing for Shopify — including building an app in a specific backend language or framework (for example Laravel, Symfony, Django, Flask, Rails, or Express); this topic covers scaffolding the app and choosing Shopify's official library for that language. When the prompt also involves an extension surface (checkout, admin, POS, customer accounts), learn this topic in addition to the surface topic. NOT for merchants managing stores. | — | — |
onboarding-merchant | Set up a Shopify store. Use to make, build, or open a store (e.g. 'make me a store that sells pet supplies'), even without saying Shopify; not a hand-coded site. Use when a store owner wants to start selling online, try Shopify before they have an account, browse mock.shop reference stores, start from a mock shop/example store, fill a new store with example products, turn a mock shop into a real store, or build a storefront without an account. Also use when developers explicitly need auth-free mock.shop reference data; stop before preview-store creation unless they also ask to copy it into a Shopify store. Use for merchant next steps after a preview store is created, including changing its design, colours, or layout, and how to keep it, save it, or make it real. Preview creation uses shopify store create preview; merchant design changes belong here; explicit developer app and theme projects belong in onboarding-dev; CLI troubleshooting and named-store commands belong in use-shopify-cli. | — | — |
No row fits? Search everything with scripts/search_docs.mjs "<query>" and no --api. Not
every subject has a row here. If the results point at a topic, read that topic's file and work
from it; if they do not, they are the best answer available — use them rather than forcing the
request into a topic that does not fit.
Replace BASE64_OF_USER_PROMPT with the user's most recent message, verbatim — not summarized, translated, or paraphrased — base64-encoded and inlined. Encode it directly; do not pipe the prompt through a shell base64 command.
Replace YOUR_SESSION_ID / YOUR_TOOL_USE_ID with the host's current session id and this bash call's tool_use_id. Drop either flag your host does not expose; both are optional.
Privacy notice: the bundled scripts report to Shopify (
shopify.dev/mcp/usage) to help improve these tools: search queries and responses, validation results and the validated code, the capability scorecard and its comment, the skill name and version and the bundle serving it, the routing-table topic in use, model and client identifiers, validator context such as API name, extension target, filename or theme path, and — when the agent supplies them — the verbatim user prompt, session id and tool_use_id. To opt out, create an empty file at~/.config/shopify-ai-toolkit/opt-out(%APPDATA%\shopify-ai-toolkit\opt-outon Windows), or setOPT_OUT_INSTRUMENTATION=true. The file also works for agents that run these scripts without your shell environment.
Files
- ATTRIBUTION.mdAdded by AutoGineer927 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md17.1 KiB
- assets/admin_2026-01.json.br(opens on GitHub)Not mirrored: opens on GitHub450.7 KiB
- assets/admin_2026-04.json.br(opens on GitHub)Not mirrored: opens on GitHub471.2 KiB
- assets/admin_2026-07.json.br(opens on GitHub)Not mirrored: opens on GitHub495.9 KiB
- assets/admin_2026-10.json.br(opens on GitHub)Not mirrored: opens on GitHub515.6 KiB
- assets/admin_2027-01.json.br(opens on GitHub)Not mirrored: opens on GitHub521.5 KiB
- assets/admin_unstable.json.br(opens on GitHub)Not mirrored: opens on GitHub559.5 KiB
- assets/customer_2026-01.json.br(opens on GitHub)Not mirrored: opens on GitHub48.3 KiB
- assets/customer_2026-04.json.br(opens on GitHub)Not mirrored: opens on GitHub48.4 KiB
- assets/customer_2026-07.json.br(opens on GitHub)Not mirrored: opens on GitHub49.4 KiB
- assets/customer_2026-10.json.br(opens on GitHub)Not mirrored: opens on GitHub50.2 KiB
- assets/customer_2027-01.json.br(opens on GitHub)Not mirrored: opens on GitHub50.2 KiB
- assets/customer_unstable.json.br(opens on GitHub)Not mirrored: opens on GitHub52.0 KiB
- assets/flow/order-created-add-order-tags.json963 B
- assets/flow/order-created-conditional-tags.json1.4 KiB
- assets/flow/order-created-edit-order.json3.5 KiB
- assets/flow/order-created-presale-products.json3.3 KiB
- assets/flow/order-created-run-code.json2.8 KiB
- assets/flow/scheduled-order-report.json2.2 KiB
- assets/flow/task-config-fields.graphql2.4 KiB
- assets/flow/workflow_structure_schema.json4.0 KiB
- assets/functions_cart_checkout_validation_2026-01.json.br(opens on GitHub)Not mirrored: opens on GitHub19.3 KiB
- assets/functions_cart_checkout_validation_2026-04.json.br(opens on GitHub)Not mirrored: opens on GitHub20.4 KiB
- assets/functions_cart_checkout_validation_2026-07.json.br(opens on GitHub)Not mirrored: opens on GitHub20.6 KiB
- assets/functions_cart_checkout_validation_2026-10.json.br(opens on GitHub)Not mirrored: opens on GitHub20.7 KiB
- assets/functions_cart_checkout_validation_2027-01.json.br(opens on GitHub)Not mirrored: opens on GitHub20.7 KiB
- assets/functions_cart_checkout_validation_unstable.json.br(opens on GitHub)Not mirrored: opens on GitHub20.8 KiB
- assets/functions_cart_transform_2026-01.json.br(opens on GitHub)Not mirrored: opens on GitHub16.8 KiB
- assets/functions_cart_transform_2026-04.json.br(opens on GitHub)Not mirrored: opens on GitHub18.1 KiB
- assets/functions_cart_transform_2026-07.json.br(opens on GitHub)Not mirrored: opens on GitHub18.4 KiB
- assets/functions_cart_transform_2026-10.json.br(opens on GitHub)Not mirrored: opens on GitHub18.4 KiB
- assets/functions_cart_transform_2027-01.json.br(opens on GitHub)Not mirrored: opens on GitHub18.4 KiB
- assets/functions_cart_transform_unstable.json.br(opens on GitHub)Not mirrored: opens on GitHub18.4 KiB
- assets/functions_delivery_customization_2026-01.json.br(opens on GitHub)Not mirrored: opens on GitHub18.0 KiB
- assets/functions_delivery_customization_2026-04.json.br(opens on GitHub)Not mirrored: opens on GitHub19.0 KiB
- assets/functions_delivery_customization_2026-07.json.br(opens on GitHub)Not mirrored: opens on GitHub19.3 KiB
- assets/functions_delivery_customization_2026-10.json.br(opens on GitHub)Not mirrored: opens on GitHub19.3 KiB
- assets/functions_delivery_customization_2027-01.json.br(opens on GitHub)Not mirrored: opens on GitHub19.3 KiB
- assets/functions_delivery_customization_unstable.json.br(opens on GitHub)Not mirrored: opens on GitHub19.4 KiB
- assets/functions_discount_2026-01.json.br(opens on GitHub)Not mirrored: opens on GitHub21.5 KiB
- assets/functions_discount_2026-04.json.br(opens on GitHub)Not mirrored: opens on GitHub22.6 KiB
- assets/functions_discount_2026-07.json.br(opens on GitHub)Not mirrored: opens on GitHub22.9 KiB
- assets/functions_discount_2026-10.json.br(opens on GitHub)Not mirrored: opens on GitHub22.9 KiB
- assets/functions_discount_2027-01.json.br(opens on GitHub)Not mirrored: opens on GitHub22.9 KiB
- assets/functions_discount_unstable.json.br(opens on GitHub)Not mirrored: opens on GitHub23.0 KiB
- assets/functions_fulfillment_constraints_2026-01.json.br(opens on GitHub)Not mirrored: opens on GitHub17.9 KiB
- assets/functions_fulfillment_constraints_2026-04.json.br(opens on GitHub)Not mirrored: opens on GitHub19.1 KiB
- assets/functions_fulfillment_constraints_2026-07.json.br(opens on GitHub)Not mirrored: opens on GitHub19.2 KiB
- assets/functions_fulfillment_constraints_2026-10.json.br(opens on GitHub)Not mirrored: opens on GitHub19.2 KiB
- assets/functions_fulfillment_constraints_2027-01.json.br(opens on GitHub)Not mirrored: opens on GitHub19.2 KiB
- assets/functions_fulfillment_constraints_unstable.json.br(opens on GitHub)Not mirrored: opens on GitHub19.3 KiB
- assets/functions_local_pickup_delivery_option_generator_unstable.json.br(opens on GitHub)Not mirrored: opens on GitHub20.5 KiB
- assets/functions_order_discounts_2026-01.json.br(opens on GitHub)Not mirrored: opens on GitHub19.0 KiB
- assets/functions_order_discounts_2026-04.json.br(opens on GitHub)Not mirrored: opens on GitHub20.1 KiB
- assets/functions_order_discounts_2026-07.json.br(opens on GitHub)Not mirrored: opens on GitHub20.3 KiB
- assets/functions_order_discounts_2026-10.json.br(opens on GitHub)Not mirrored: opens on GitHub20.4 KiB
- assets/functions_order_discounts_2027-01.json.br(opens on GitHub)Not mirrored: opens on GitHub20.4 KiB
- assets/functions_order_discounts_unstable.json.br(opens on GitHub)Not mirrored: opens on GitHub20.4 KiB
- assets/functions_order_routing_location_rule_2026-01.json.br(opens on GitHub)Not mirrored: opens on GitHub18.2 KiB
- assets/functions_order_routing_location_rule_2026-04.json.br(opens on GitHub)Not mirrored: opens on GitHub19.3 KiB
- assets/functions_order_routing_location_rule_2026-07.json.br(opens on GitHub)Not mirrored: opens on GitHub19.5 KiB
- assets/functions_order_routing_location_rule_2026-10.json.br(opens on GitHub)Not mirrored: opens on GitHub19.6 KiB
- assets/functions_order_routing_location_rule_2027-01.json.br(opens on GitHub)Not mirrored: opens on GitHub19.6 KiB
- assets/functions_order_routing_location_rule_unstable.json.br(opens on GitHub)Not mirrored: opens on GitHub19.6 KiB
- assets/functions_payment_customization_2026-01.json.br(opens on GitHub)Not mirrored: opens on GitHub19.2 KiB
- assets/functions_payment_customization_2026-04.json.br(opens on GitHub)Not mirrored: opens on GitHub20.3 KiB
- assets/functions_payment_customization_2026-07.json.br(opens on GitHub)Not mirrored: opens on GitHub20.5 KiB
- assets/functions_payment_customization_2026-10.json.br(opens on GitHub)Not mirrored: opens on GitHub20.6 KiB
- assets/functions_payment_customization_2027-01.json.br(opens on GitHub)Not mirrored: opens on GitHub20.6 KiB
- assets/functions_payment_customization_unstable.json.br(opens on GitHub)Not mirrored: opens on GitHub20.6 KiB
- assets/functions_pickup_point_delivery_option_generator_unstable.json.br(opens on GitHub)Not mirrored: opens on GitHub20.8 KiB
- assets/functions_product_discounts_2026-01.json.br(opens on GitHub)Not mirrored: opens on GitHub18.7 KiB
- assets/functions_product_discounts_2026-04.json.br(opens on GitHub)Not mirrored: opens on GitHub19.8 KiB
- assets/functions_product_discounts_2026-07.json.br(opens on GitHub)Not mirrored: opens on GitHub20.0 KiB
- assets/functions_product_discounts_2026-10.json.br(opens on GitHub)Not mirrored: opens on GitHub20.0 KiB
- assets/functions_product_discounts_2027-01.json.br(opens on GitHub)Not mirrored: opens on GitHub20.0 KiB
- assets/functions_product_discounts_unstable.json.br(opens on GitHub)Not mirrored: opens on GitHub20.0 KiB
- assets/functions_shipping_discounts_2026-01.json.br(opens on GitHub)Not mirrored: opens on GitHub18.1 KiB
- assets/functions_shipping_discounts_2026-04.json.br(opens on GitHub)Not mirrored: opens on GitHub19.1 KiB
- assets/functions_shipping_discounts_2026-07.json.br(opens on GitHub)Not mirrored: opens on GitHub19.4 KiB
- assets/functions_shipping_discounts_2026-10.json.br(opens on GitHub)Not mirrored: opens on GitHub19.4 KiB
- assets/functions_shipping_discounts_2027-01.json.br(opens on GitHub)Not mirrored: opens on GitHub19.4 KiB
- assets/functions_shipping_discounts_unstable.json.br(opens on GitHub)Not mirrored: opens on GitHub19.5 KiB
- assets/partner_2026-01.json.br(opens on GitHub)Not mirrored: opens on GitHub10.2 KiB
- assets/partner_2026-04.json.br(opens on GitHub)Not mirrored: opens on GitHub10.2 KiB
- assets/partner_2026-07.json.br(opens on GitHub)Not mirrored: opens on GitHub14.2 KiB
- assets/partner_2026-10.json.br(opens on GitHub)Not mirrored: opens on GitHub14.2 KiB
- assets/partner_2027-01.json.br(opens on GitHub)Not mirrored: opens on GitHub14.2 KiB
- assets/partner_unstable.json.br(opens on GitHub)Not mirrored: opens on GitHub17.0 KiB
- assets/payments-apps_2026-01.json.br(opens on GitHub)Not mirrored: opens on GitHub12.2 KiB
- assets/payments-apps_2026-04.json.br(opens on GitHub)Not mirrored: opens on GitHub13.0 KiB
- assets/payments-apps_2026-07.json.br(opens on GitHub)Not mirrored: opens on GitHub13.0 KiB
- assets/payments-apps_2026-10.json.br(opens on GitHub)Not mirrored: opens on GitHub13.0 KiB
- assets/payments-apps_2027-01.json.br(opens on GitHub)Not mirrored: opens on GitHub13.0 KiB
- assets/payments-apps_unstable.json.br(opens on GitHub)Not mirrored: opens on GitHub13.0 KiB
- assets/storefront-graphql_2026-01.json.br(opens on GitHub)Not mirrored: opens on GitHub66.7 KiB
- assets/storefront-graphql_2026-04.json.br(opens on GitHub)Not mirrored: opens on GitHub66.8 KiB
- assets/storefront-graphql_2026-07.json.br(opens on GitHub)Not mirrored: opens on GitHub67.3 KiB
- assets/storefront-graphql_2026-10.json.br(opens on GitHub)Not mirrored: opens on GitHub67.5 KiB
- assets/storefront-graphql_2027-01.json.br(opens on GitHub)Not mirrored: opens on GitHub67.5 KiB
- assets/storefront-graphql_unstable.json.br(opens on GitHub)Not mirrored: opens on GitHub70.3 KiB
- assets/supported-versions-schema.json6.8 KiB
- assets/types.archive.br(opens on GitHub)Not mirrored: opens on GitHub1.2 MiB
- blocks/hero-slide.liquid8.7 KiB
- config/settings_schema.json3 B
- data/supported-versions-schema.json6.8 KiB
- featured-collection.liquid11.9 KiB
- locales/en.default.json213 B
- locales/en.default.schema.json2.3 KiB
- package.json253 B
- references/admin.md2.1 KiB
- references/app-pricing.md1.5 KiB
- references/app-store-review.md7.1 KiB
- references/custom-data.md5.6 KiB
- references/customer.md1.8 KiB
- references/flow.md20.4 KiB
- references/functions.md21.2 KiB
- references/hydrogen.md14.1 KiB
- references/liquid.md11.3 KiB
- references/onboarding-dev.md4.0 KiB
- references/onboarding-merchant.md23.3 KiB
- references/onboarding-merchant.part2.md5.7 KiB
- references/partner.md1.6 KiB
- references/payments-apps.md1.5 KiB
- references/polaris-admin-extensions.md23.9 KiB
- references/polaris-admin-extensions.part2.md3.9 KiB
- references/polaris-app-home.md11.9 KiB
- references/polaris-checkout-extensions.md10.1 KiB
- references/polaris-customer-account-extensions.md11.8 KiB
- references/pos-ui.md20.7 KiB
- references/shopifyql.md5.0 KiB
- references/storefront-graphql.md2.9 KiB
- references/use-shopify-cli.md15.6 KiB
- scripts/_validate_components.mjsScript68.6 KiB
- scripts/_validate_functions.mjsScript314.2 KiB
- scripts/_validate_graphql.mjsScript313.7 KiB
- scripts/_validate_theme.mjsScript15.7 KiB
- scripts/import_mock_shop_catalog.mjsScript30.2 KiB
- scripts/log_feedback.mjsScript11.6 KiB
- scripts/log_skill_use.mjsScript8.8 KiB
- scripts/search_docs.mjsScript17.5 KiB
- scripts/track-telemetry.ps1Script24.2 KiB
- scripts/track-telemetry.shScript27.7 KiB
- scripts/validate.mjsScript2.9 KiB
- sections/hero-banner.liquid9.4 KiB
scripts/_validate_graphql.mjs
#!/usr/bin/env node
var dm=Object.create;var mo=Object.defineProperty;var fm=Object.getOwnPropertyDescriptor;var mm=Object.getOwnPropertyNames;var ym=Object.getPrototypeOf,hm=Object.prototype.hasOwnProperty;var n=(e,t)=>mo(e,"name",{value:t,configurable:!0});var y=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var vm=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of mm(t))!hm.call(e,o)&&o!==r&&mo(e,o,{get:()=>t[o],enumerable:!(i=fm(t,o))||i.enumerable});return e};var yo=(e,t,r)=>(r=e!=null?dm(ym(e)):{},vm(t||!e||!e.__esModule?mo(r,"default",{value:e,enumerable:!0}):r,e));var Dc=y(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.versionInfo=cr.version=void 0;var Em="16.13.2";cr.version=Em;var Om=Object.freeze({major:16,minor:13,patch:2,preReleaseTag:null});cr.versionInfo=Om});var Ie=y(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.devAssert=Nm;function Nm(e,t){if(!!!e)throw new Error(t)}n(Nm,"devAssert")});var Vn=y(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.isPromise=Im;function Im(e){return typeof e?.then=="function"}n(Im,"isPromise")});var it=y(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.isObjectLike=Sm;function Sm(e){return typeof e=="object"&&e!==null}n(Sm,"isObjectLike")});var Ee=y(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.invariant=Lm;function Lm(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}n(Lm,"invariant")});var qn=y(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.getLocation=Pm;var Dm=Ee(),Am=/\r\n|[\n\r]/g;function Pm(e,t){let r=0,i=1;for(let o of e.body.matchAll(Am)){if(typeof o.index=="number"||(0,Dm.invariant)(!1),o.index>=t)break;r=o.index+o[0].length,i+=1}return{line:i,column:t+1-r}}n(Pm,"getLocation")});var Eo=y(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.printLocation=jm;Mn.printSourceLocation=Pc;var Rm=qn();function jm(e){return Pc(e.source,(0,Rm.getLocation)(e.source,e.start))}n(jm,"printLocation");function Pc(e,t){let r=e.locationOffset.column-1,i="".padStart(r)+e.body,o=t.line-1,s=e.locationOffset.line-1,a=t.line+s,u=t.line===1?r:0,c=t.column+u,l=`${e.name}:${a}:${c}
`,p=i.split(/\r\n|[\n\r]/g),f=p[o];if(f.length>120){let m=Math.floor(c/80),v=c%80,b=[];for(let V=0;V<f.length;V+=80)b.push(f.slice(V,V+80));return l+Ac([[`${a} |`,b[0]],...b.slice(1,m+1).map(V=>["|",V]),["|","^".padStart(v)],["|",b[m+1]]])}return l+Ac([[`${a-1} |`,p[o-1]],[`${a} |`,f],["|","^".padStart(c)],[`${a+1} |`,p[o+1]]])}n(Pc,"printSourceLocation");function Ac(e){let t=e.filter(([i,o])=>o!==void 0),r=Math.max(...t.map(([i])=>i.length));return t.map(([i,o])=>i.padStart(r)+(o?" "+o:"")).join(`
`)}n(Ac,"printPrefixedLines")});var A=y(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.GraphQLError=void 0;lr.formatError=Cm;lr.printError=Fm;var km=it(),Rc=qn(),jc=Eo();function wm(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}n(wm,"toNormalizedOptions");var Oo=class e extends Error{static{n(this,"GraphQLError")}constructor(t,...r){var i,o,s;let{nodes:a,source:u,positions:c,path:l,originalError:p,extensions:f}=wm(r);super(t),this.name="GraphQLError",this.path=l??void 0,this.originalError=p??void 0,this.nodes=kc(Array.isArray(a)?a:a?[a]:void 0);let m=kc((i=this.nodes)===null||i===void 0?void 0:i.map(b=>b.loc).filter(b=>b!=null));this.source=u??(m==null||(o=m[0])===null||o===void 0?void 0:o.source),this.positions=c??m?.map(b=>b.start),this.locations=c&&u?c.map(b=>(0,Rc.getLocation)(u,b)):m?.map(b=>(0,Rc.getLocation)(b.source,b.start));let v=(0,km.isObjectLike)(p?.extensions)?p?.extensions:void 0;this.extensions=(s=f??v)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let r of this.nodes)r.loc&&(t+=`
`+(0,jc.printLocation)(r.loc));else if(this.source&&this.locations)for(let r of this.locations)t+=`
`+(0,jc.printSourceLocation)(this.source,r);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};lr.GraphQLError=Oo;function kc(e){return e===void 0||e.length===0?void 0:e}n(kc,"undefinedIfEmpty");function Fm(e){return e.toString()}n(Fm,"printError");function Cm(e){return e.toJSON()}n(Cm,"formatError")});var Pr=y(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.syntaxError=Vm;var xm=A();function Vm(e,t,r){return new xm.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})}n(Vm,"syntaxError")});var Ce=y(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.Token=Fe.QueryDocumentKeys=Fe.OperationTypeNode=Fe.Location=void 0;Fe.isNode=Mm;var Io=class{static{n(this,"Location")}constructor(t,r,i){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};Fe.Location=Io;var So=class{static{n(this,"Token")}constructor(t,r,i,o,s,a){this.kind=t,this.start=r,this.end=i,this.line=o,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};Fe.Token=So;var wc={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};Fe.QueryDocumentKeys=wc;var qm=new Set(Object.keys(wc));function Mm(e){let t=e?.kind;return typeof t=="string"&&qm.has(t)}n(Mm,"isNode");var Lo;Fe.OperationTypeNode=Lo;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Lo||(Fe.OperationTypeNode=Lo={}))});var pr=y(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.DirectiveLocation=void 0;var Do;Rr.DirectiveLocation=Do;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Do||(Rr.DirectiveLocation=Do={}))});var G=y(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.Kind=void 0;var Ao;jr.Kind=Ao;(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"})(Ao||(jr.Kind=Ao={}))});var kr=y(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.isDigit=Fc;Qt.isLetter=Po;Qt.isNameContinue=Qm;Qt.isNameStart=Um;Qt.isWhiteSpace=Gm;function Gm(e){return e===9||e===32}n(Gm,"isWhiteSpace");function Fc(e){return e>=48&&e<=57}n(Fc,"isDigit");function Po(e){return e>=97&&e<=122||e>=65&&e<=90}n(Po,"isLetter");function Um(e){return Po(e)||e===95}n(Um,"isNameStart");function Qm(e){return Po(e)||Fc(e)||e===95}n(Qm,"isNameContinue")});var Fr=y(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.dedentBlockStringLines=$m;wr.isPrintableAsBlockString=Bm;wr.printBlockString=Ym;var Ro=kr();function $m(e){var t;let r=Number.MAX_SAFE_INTEGER,i=null,o=-1;for(let a=0;a<e.length;++a){var s;let u=e[a],c=Km(u);c!==u.length&&(i=(s=i)!==null&&s!==void 0?s:a,o=a,a!==0&&c<r&&(r=c))}return e.map((a,u)=>u===0?a:a.slice(r)).slice((t=i)!==null&&t!==void 0?t:0,o+1)}n($m,"dedentBlockStringLines");function Km(e){let t=0;for(;t<e.length&&(0,Ro.isWhiteSpace)(e.charCodeAt(t));)++t;return t}n(Km,"leadingWhitespace");function Bm(e){if(e==="")return!0;let t=!0,r=!1,i=!0,o=!1;for(let s=0;s<e.length;++s)switch(e.codePointAt(s)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(t&&!o)return!1;o=!0,t=!0,r=!1;break;case 9:case 32:r||(r=t);break;default:i&&(i=r),t=!1}return!(t||i&&o)}n(Bm,"isPrintableAsBlockString");function Ym(e,t){let r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),o=i.length===1,s=i.length>1&&i.slice(1).every(v=>v.length===0||(0,Ro.isWhiteSpace)(v.charCodeAt(0))),a=r.endsWith('\\"""'),u=e.endsWith('"')&&!a,c=e.endsWith("\\"),l=u||c,p=!(t!=null&&t.minimize)&&(!o||e.length>70||l||s||a),f="",m=o&&(0,Ro.isWhiteSpace)(e.charCodeAt(0));return(p&&!m||s)&&(f+=`
`),f+=r,(p||l)&&(f+=`
`),'"""'+f+'"""'}n(Ym,"printBlockString")});var dr=y(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.TokenKind=void 0;var jo;Cr.TokenKind=jo;(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"})(jo||(Cr.TokenKind=jo={}))});var Vr=y(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.Lexer=void 0;Dt.createToken=de;Dt.isPunctuatorTokenKind=Jm;Dt.printCodePointAt=Lt;Dt.readName=Mc;var Ye=Pr(),xc=Ce(),Hm=Fr(),$t=kr(),C=dr(),wo=class{static{n(this,"Lexer")}constructor(t){let r=new xc.Token(C.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==C.TokenKind.EOF)do if(t.next)t=t.next;else{let r=Wm(this,t.end);t.next=r,r.prev=t,t=r}while(t.kind===C.TokenKind.COMMENT);return t}};Dt.Lexer=wo;function Jm(e){return e===C.TokenKind.BANG||e===C.TokenKind.DOLLAR||e===C.TokenKind.AMP||e===C.TokenKind.PAREN_L||e===C.TokenKind.PAREN_R||e===C.TokenKind.DOT||e===C.TokenKind.SPREAD||e===C.TokenKind.COLON||e===C.TokenKind.EQUALS||e===C.TokenKind.AT||e===C.TokenKind.BRACKET_L||e===C.TokenKind.BRACKET_R||e===C.TokenKind.BRACE_L||e===C.TokenKind.PIPE||e===C.TokenKind.BRACE_R}n(Jm,"isPunctuatorTokenKind");function fr(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}n(fr,"isUnicodeScalarValue");function Gn(e,t){return Vc(e.charCodeAt(t))&&qc(e.charCodeAt(t+1))}n(Gn,"isSupplementaryCodePoint");function Vc(e){return e>=55296&&e<=56319}n(Vc,"isLeadingSurrogate");function qc(e){return e>=56320&&e<=57343}n(qc,"isTrailingSurrogate");function Lt(e,t){let r=e.source.body.codePointAt(t);if(r===void 0)return C.TokenKind.EOF;if(r>=32&&r<=126){let i=String.fromCodePoint(r);return i==='"'?`'"'`:`"${i}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}n(Lt,"printCodePointAt");function de(e,t,r,i,o){let s=e.line,a=1+r-e.lineStart;return new xc.Token(t,r,i,s,a,o)}n(de,"createToken");function Wm(e,t){let r=e.source.body,i=r.length,o=t;for(;o<i;){let s=r.charCodeAt(o);switch(s){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:r.charCodeAt(o+1)===10?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return zm(e,o);case 33:return de(e,C.TokenKind.BANG,o,o+1);case 36:return de(e,C.TokenKind.DOLLAR,o,o+1);case 38:return de(e,C.TokenKind.AMP,o,o+1);case 40:return de(e,C.TokenKind.PAREN_L,o,o+1);case 41:return de(e,C.TokenKind.PAREN_R,o,o+1);case 46:if(r.charCodeAt(o+1)===46&&r.charCodeAt(o+2)===46)return de(e,C.TokenKind.SPREAD,o,o+3);break;case 58:return de(e,C.TokenKind.COLON,o,o+1);case 61:return de(e,C.TokenKind.EQUALS,o,o+1);case 64:return de(e,C.TokenKind.AT,o,o+1);case 91:return de(e,C.TokenKind.BRACKET_L,o,o+1);case 93:return de(e,C.TokenKind.BRACKET_R,o,o+1);case 123:return de(e,C.TokenKind.BRACE_L,o,o+1);case 124:return de(e,C.TokenKind.PIPE,o,o+1);case 125:return de(e,C.TokenKind.BRACE_R,o,o+1);case 34:return r.charCodeAt(o+1)===34&&r.charCodeAt(o+2)===34?ny(e,o):Zm(e,o)}if((0,$t.isDigit)(s)||s===45)return Xm(e,o,s);if((0,$t.isNameStart)(s))return Mc(e,o);throw(0,Ye.syntaxError)(e.source,o,s===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:fr(s)||Gn(r,o)?`Unexpected character: ${Lt(e,o)}.`:`Invalid character: ${Lt(e,o)}.`)}return de(e,C.TokenKind.EOF,i,i)}n(Wm,"readNextToken");function zm(e,t){let r=e.source.body,i=r.length,o=t+1;for(;o<i;){let s=r.charCodeAt(o);if(s===10||s===13)break;if(fr(s))++o;else if(Gn(r,o))o+=2;else break}return de(e,C.TokenKind.COMMENT,t,o,r.slice(t+1,o))}n(zm,"readComment");function Xm(e,t,r){let i=e.source.body,o=t,s=r,a=!1;if(s===45&&(s=i.charCodeAt(++o)),s===48){if(s=i.charCodeAt(++o),(0,$t.isDigit)(s))throw(0,Ye.syntaxError)(e.source,o,`Invalid number, unexpected digit after 0: ${Lt(e,o)}.`)}else o=ko(e,o,s),s=i.charCodeAt(o);if(s===46&&(a=!0,s=i.charCodeAt(++o),o=ko(e,o,s),s=i.charCodeAt(o)),(s===69||s===101)&&(a=!0,s=i.charCodeAt(++o),(s===43||s===45)&&(s=i.charCodeAt(++o)),o=ko(e,o,s),s=i.charCodeAt(o)),s===46||(0,$t.isNameStart)(s))throw(0,Ye.syntaxError)(e.source,o,`Invalid number, expected digit but got: ${Lt(e,o)}.`);return de(e,a?C.TokenKind.FLOAT:C.TokenKind.INT,t,o,i.slice(t,o))}n(Xm,"readNumber");function ko(e,t,r){if(!(0,$t.isDigit)(r))throw(0,Ye.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${Lt(e,t)}.`);let i=e.source.body,o=t+1;for(;(0,$t.isDigit)(i.charCodeAt(o));)++o;return o}n(ko,"readDigits");function Zm(e,t){let r=e.source.body,i=r.length,o=t+1,s=o,a="";for(;o<i;){let u=r.charCodeAt(o);if(u===34)return a+=r.slice(s,o),de(e,C.TokenKind.STRING,t,o+1,a);if(u===92){a+=r.slice(s,o);let c=r.charCodeAt(o+1)===117?r.charCodeAt(o+2)===123?ey(e,o):ty(e,o):ry(e,o);a+=c.value,o+=c.size,s=o;continue}if(u===10||u===13)break;if(fr(u))++o;else if(Gn(r,o))o+=2;else throw(0,Ye.syntaxError)(e.source,o,`Invalid character within String: ${Lt(e,o)}.`)}throw(0,Ye.syntaxError)(e.source,o,"Unterminated string.")}n(Zm,"readString");function ey(e,t){let r=e.source.body,i=0,o=3;for(;o<12;){let s=r.charCodeAt(t+o++);if(s===125){if(o<5||!fr(i))break;return{value:String.fromCodePoint(i),size:o}}if(i=i<<4|xr(s),i<0)break}throw(0,Ye.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+o)}".`)}n(ey,"readEscapedUnicodeVariableWidth");function ty(e,t){let r=e.source.body,i=Cc(r,t+2);if(fr(i))return{value:String.fromCodePoint(i),size:6};if(Vc(i)&&r.charCodeAt(t+6)===92&&r.charCodeAt(t+7)===117){let o=Cc(r,t+8);if(qc(o))return{value:String.fromCodePoint(i,o),size:12}}throw(0,Ye.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}n(ty,"readEscapedUnicodeFixedWidth");function Cc(e,t){return xr(e.charCodeAt(t))<<12|xr(e.charCodeAt(t+1))<<8|xr(e.charCodeAt(t+2))<<4|xr(e.charCodeAt(t+3))}n(Cc,"read16BitHexCode");function xr(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}n(xr,"readHexDigit");function ry(e,t){let r=e.source.body;switch(r.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:`
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,Ye.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}n(ry,"readEscapedCharacter");function ny(e,t){let r=e.source.body,i=r.length,o=e.lineStart,s=t+3,a=s,u="",c=[];for(;s<i;){let l=r.charCodeAt(s);if(l===34&&r.charCodeAt(s+1)===34&&r.charCodeAt(s+2)===34){u+=r.slice(a,s),c.push(u);let p=de(e,C.TokenKind.BLOCK_STRING,t,s+3,(0,Hm.dedentBlockStringLines)(c).join(`
`));return e.line+=c.length-1,e.lineStart=o,p}if(l===92&&r.charCodeAt(s+1)===34&&r.charCodeAt(s+2)===34&&r.charCodeAt(s+3)===34){u+=r.slice(a,s),a=s+1,s+=4;continue}if(l===10||l===13){u+=r.slice(a,s),c.push(u),l===13&&r.charCodeAt(s+1)===10?s+=2:++s,u="",a=s,o=s;continue}if(fr(l))++s;else if(Gn(r,s))s+=2;else throw(0,Ye.syntaxError)(e.source,s,`Invalid character within String: ${Lt(e,s)}.`)}throw(0,Ye.syntaxError)(e.source,s,"Unterminated string.")}n(ny,"readBlockString");function Mc(e,t){let r=e.source.body,i=r.length,o=t+1;for(;o<i;){let s=r.charCodeAt(o);if((0,$t.isNameContinue)(s))++o;else break}return de(e,C.TokenKind.NAME,t,o,r.slice(t,o))}n(Mc,"readName")});var Gc=y(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.SchemaCoordinateLexer=void 0;var iy=Pr(),oy=Ce(),sy=kr(),At=Vr(),Pt=dr(),Fo=class{static{n(this,"SchemaCoordinateLexer")}line=1;lineStart=0;constructor(t){let r=new oy.Token(Pt.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=r,this.token=r}get[Symbol.toStringTag](){return"SchemaCoordinateLexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==Pt.TokenKind.EOF){let r=ay(this,t.end);t.next=r,r.prev=t,t=r}return t}};Un.SchemaCoordinateLexer=Fo;function ay(e,t){let r=e.source.body,i=r.length,o=t;if(o<i){let s=r.charCodeAt(o);switch(s){case 46:return(0,At.createToken)(e,Pt.TokenKind.DOT,o,o+1);case 40:return(0,At.createToken)(e,Pt.TokenKind.PAREN_L,o,o+1);case 41:return(0,At.createToken)(e,Pt.TokenKind.PAREN_R,o,o+1);case 58:return(0,At.createToken)(e,Pt.TokenKind.COLON,o,o+1);case 64:return(0,At.createToken)(e,Pt.TokenKind.AT,o,o+1)}if((0,sy.isNameStart)(s))return(0,At.readName)(e,o);throw(0,iy.syntaxError)(e.source,o,`Invalid character: ${(0,At.printCodePointAt)(e,o)}.`)}return(0,At.createToken)(e,Pt.TokenKind.EOF,i,i)}n(ay,"readNextToken")});var H=y(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.inspect=cy;var uy=10,Uc=2;function cy(e){return Qn(e,[])}n(cy,"inspect");function Qn(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return ly(e,t);default:return String(e)}}n(Qn,"formatValue");function ly(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let r=[...t,e];if(py(e)){let i=e.toJSON();if(i!==e)return typeof i=="string"?i:Qn(i,r)}else if(Array.isArray(e))return fy(e,r);return dy(e,r)}n(ly,"formatObjectValue");function py(e){return typeof e.toJSON=="function"}n(py,"isJSONable");function dy(e,t){let r=Object.entries(e);return r.length===0?"{}":t.length>Uc?"["+my(e)+"]":"{ "+r.map(([o,s])=>o+": "+Qn(s,t)).join(", ")+" }"}n(dy,"formatObject");function fy(e,t){if(e.length===0)return"[]";if(t.length>Uc)return"[Array]";let r=Math.min(uy,e.length),i=e.length-r,o=[];for(let s=0;s<r;++s)o.push(Qn(e[s],t));return i===1?o.push("... 1 more item"):i>1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}n(fy,"formatArray");function my(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}n(my,"getObjectTag")});var qr=y($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.instanceOf=void 0;var yy=H(),hy=globalThis.process&&process.env.NODE_ENV==="production",vy=n(hy?function(t,r){return t instanceof r}:function(t,r){if(t instanceof r)return!0;if(typeof t=="object"&&t!==null){var i;let o=r.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(i=t.constructor)===null||i===void 0?void 0:i.name;if(o===s){let a=(0,yy.inspect)(t);throw new Error(`Cannot use ${o} "${a}" from another module or realm.
Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.
https://yarnpkg.com/en/docs/selective-version-resolutions
Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.`)}}return!1},"instanceOf");$n.instanceOf=vy});var Bn=y(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.Source=void 0;Mr.isSource=by;var xo=Ie(),Ty=H(),gy=qr(),Kn=class{static{n(this,"Source")}constructor(t,r="GraphQL request",i={line:1,column:1}){typeof t=="string"||(0,xo.devAssert)(!1,`Body must be a string. Received: ${(0,Ty.inspect)(t)}.`),this.body=t,this.name=r,this.locationOffset=i,this.locationOffset.line>0||(0,xo.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,xo.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};Mr.Source=Kn;function by(e){return(0,gy.instanceOf)(e,Kn)}n(by,"isSource")});var Kt=y(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.Parser=void 0;yt.parse=Oy;yt.parseConstValue=Iy;yt.parseSchemaCoordinate=Ly;yt.parseType=Sy;yt.parseValue=Ny;var Rt=Pr(),Gr=Ce(),_y=pr(),P=G(),Qc=Vr(),Ey=Gc(),Hn=Bn(),E=dr();function Oy(e,t){let r=new jt(e,t),i=r.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:r.tokenCount}),i}n(Oy,"parse");function Ny(e,t){let r=new jt(e,t);r.expectToken(E.TokenKind.SOF);let i=r.parseValueLiteral(!1);return r.expectToken(E.TokenKind.EOF),i}n(Ny,"parseValue");function Iy(e,t){let r=new jt(e,t);r.expectToken(E.TokenKind.SOF);let i=r.parseConstValueLiteral();return r.expectToken(E.TokenKind.EOF),i}n(Iy,"parseConstValue");function Sy(e,t){let r=new jt(e,t);r.expectToken(E.TokenKind.SOF);let i=r.parseTypeReference();return r.expectToken(E.TokenKind.EOF),i}n(Sy,"parseType");function Ly(e){let t=(0,Hn.isSource)(e)?e:new Hn.Source(e),r=new Ey.SchemaCoordinateLexer(t),i=new jt(e,{lexer:r});i.expectToken(E.TokenKind.SOF);let o=i.parseSchemaCoordinate();return i.expectToken(E.TokenKind.EOF),o}n(Ly,"parseSchemaCoordinate");var jt=class{static{n(this,"Parser")}constructor(t,r={}){let{lexer:i,...o}=r;if(i)this._lexer=i;else{let s=(0,Hn.isSource)(t)?t:new Hn.Source(t);this._lexer=new Qc.Lexer(s)}this._options=o,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(E.TokenKind.NAME);return this.node(t,{kind:P.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:P.Kind.DOCUMENT,definitions:this.many(E.TokenKind.SOF,this.parseDefinition,E.TokenKind.EOF)})}parseDefinition(){if(this.peek(E.TokenKind.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),r=t?this._lexer.lookahead():this._lexer.token;if(t&&r.kind===E.TokenKind.BRACE_L)throw(0,Rt.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(r.kind===E.TokenKind.NAME){switch(r.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(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw(0,Rt.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");switch(r.value){case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(E.TokenKind.BRACE_L))return this.node(t,{kind:P.Kind.OPERATION_DEFINITION,operation:Gr.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseDescription(),i=this.parseOperationType(),o;return this.peek(E.TokenKind.NAME)&&(o=this.parseName()),this.node(t,{kind:P.Kind.OPERATION_DEFINITION,operation:i,description:r,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(E.TokenKind.NAME);switch(t.value){case"query":return Gr.OperationTypeNode.QUERY;case"mutation":return Gr.OperationTypeNode.MUTATION;case"subscription":return Gr.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(E.TokenKind.PAREN_L,this.parseVariableDefinition,E.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:P.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(E.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(E.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(E.TokenKind.DOLLAR),this.node(t,{kind:P.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:P.Kind.SELECTION_SET,selections:this.many(E.TokenKind.BRACE_L,this.parseSelection,E.TokenKind.BRACE_R)})}parseSelection(){return this.peek(E.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,r=this.parseName(),i,o;return this.expectOptionalToken(E.TokenKind.COLON)?(i=r,o=this.parseName()):o=r,this.node(t,{kind:P.Kind.FIELD,alias:i,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(E.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(E.TokenKind.PAREN_L,r,E.TokenKind.PAREN_R)}parseArgument(t=!1){let r=this._lexer.token,i=this.parseName();return this.expectToken(E.TokenKind.COLON),this.node(r,{kind:P.Kind.ARGUMENT,name:i,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(E.TokenKind.SPREAD);let r=this.expectOptionalKeyword("on");return!r&&this.peek(E.TokenKind.NAME)?this.node(t,{kind:P.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:P.Kind.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token,r=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:P.Kind.FRAGMENT_DEFINITION,description:r,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:P.Kind.FRAGMENT_DEFINITION,description:r,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(t){let r=this._lexer.token;switch(r.kind){case E.TokenKind.BRACKET_L:return this.parseList(t);case E.TokenKind.BRACE_L:return this.parseObject(t);case E.TokenKind.INT:return this.advanceLexer(),this.node(r,{kind:P.Kind.INT,value:r.value});case E.TokenKind.FLOAT:return this.advanceLexer(),this.node(r,{kind:P.Kind.FLOAT,value:r.value});case E.TokenKind.STRING:case E.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case E.TokenKind.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:P.Kind.BOOLEAN,value:!0});case"false":return this.node(r,{kind:P.Kind.BOOLEAN,value:!1});case"null":return this.node(r,{kind:P.Kind.NULL});default:return this.node(r,{kind:P.Kind.ENUM,value:r.value})}case E.TokenKind.DOLLAR:if(t)if(this.expectToken(E.TokenKind.DOLLAR),this._lexer.token.kind===E.TokenKind.NAME){let i=this._lexer.token.value;throw(0,Rt.syntaxError)(this._lexer.source,r.start,`Unexpected variable "$${i}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:P.Kind.STRING,value:t.value,block:t.kind===E.TokenKind.BLOCK_STRING})}parseList(t){let r=n(()=>this.parseValueLiteral(t),"item");return this.node(this._lexer.token,{kind:P.Kind.LIST,values:this.any(E.TokenKind.BRACKET_L,r,E.TokenKind.BRACKET_R)})}parseObject(t){let r=n(()=>this.parseObjectField(t),"item");return this.node(this._lexer.token,{kind:P.Kind.OBJECT,fields:this.any(E.TokenKind.BRACE_L,r,E.TokenKind.BRACE_R)})}parseObjectField(t){let r=this._lexer.token,i=this.parseName();return this.expectToken(E.TokenKind.COLON),this.node(r,{kind:P.Kind.OBJECT_FIELD,name:i,value:this.parseValueLiteral(t)})}parseDirectives(t){let r=[];for(;this.peek(E.TokenKind.AT);)r.push(this.parseDirective(t));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let r=this._lexer.token;return this.expectToken(E.TokenKind.AT),this.node(r,{kind:P.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,r;if(this.expectOptionalToken(E.TokenKind.BRACKET_L)){let i=this.parseTypeReference();this.expectToken(E.TokenKind.BRACKET_R),r=this.node(t,{kind:P.Kind.LIST_TYPE,type:i})}else r=this.parseNamedType();return this.expectOptionalToken(E.TokenKind.BANG)?this.node(t,{kind:P.Kind.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:P.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(E.TokenKind.STRING)||this.peek(E.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");let i=this.parseConstDirectives(),o=this.many(E.TokenKind.BRACE_L,this.parseOperationTypeDefinition,E.TokenKind.BRACE_R);return this.node(t,{kind:P.Kind.SCHEMA_DEFINITION,description:r,directives:i,operationTypes:o})}parseOperationTypeDefinition(){let t=this._lexer.token,r=this.parseOperationType();this.expectToken(E.TokenKind.COLON);let i=this.parseNamedType();return this.node(t,{kind:P.Kind.OPERATION_TYPE_DEFINITION,operation:r,type:i})}parseScalarTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");let i=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:P.Kind.SCALAR_TYPE_DEFINITION,description:r,name:i,directives:o})}parseObjectTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");let i=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:P.Kind.OBJECT_TYPE_DEFINITION,description:r,name:i,interfaces:o,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(E.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(E.TokenKind.BRACE_L,this.parseFieldDefinition,E.TokenKind.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,r=this.parseDescription(),i=this.parseName(),o=this.parseArgumentDefs();this.expectToken(E.TokenKind.COLON);let s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:P.Kind.FIELD_DEFINITION,description:r,name:i,arguments:o,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(E.TokenKind.PAREN_L,this.parseInputValueDef,E.TokenKind.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,r=this.parseDescription(),i=this.parseName();this.expectToken(E.TokenKind.COLON);let o=this.parseTypeReference(),s;this.expectOptionalToken(E.TokenKind.EQUALS)&&(s=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:P.Kind.INPUT_VALUE_DEFINITION,description:r,name:i,type:o,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");let i=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:P.Kind.INTERFACE_TYPE_DEFINITION,description:r,name:i,interfaces:o,directives:s,fields:a})}parseUnionTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");let i=this.parseName(),o=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:P.Kind.UNION_TYPE_DEFINITION,description:r,name:i,directives:o,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(E.TokenKind.EQUALS)?this.delimitedMany(E.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");let i=this.parseName(),o=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:P.Kind.ENUM_TYPE_DEFINITION,description:r,name:i,directives:o,values:s})}parseEnumValuesDefinition(){return this.optionalMany(E.TokenKind.BRACE_L,this.parseEnumValueDefinition,E.TokenKind.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,r=this.parseDescription(),i=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:P.Kind.ENUM_VALUE_DEFINITION,description:r,name:i,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,Rt.syntaxError)(this._lexer.source,this._lexer.token.start,`${Yn(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");let i=this.parseName(),o=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:P.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:i,directives:o,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(E.TokenKind.BRACE_L,this.parseInputValueDef,E.TokenKind.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===E.TokenKind.NAME)switch(t.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(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.optionalMany(E.TokenKind.BRACE_L,this.parseOperationTypeDefinition,E.TokenKind.BRACE_R);if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:P.Kind.SCHEMA_EXTENSION,directives:r,operationTypes:i})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(t,{kind:P.Kind.SCALAR_TYPE_EXTENSION,name:r,directives:i})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(i.length===0&&o.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:P.Kind.OBJECT_TYPE_EXTENSION,name:r,interfaces:i,directives:o,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(i.length===0&&o.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:P.Kind.INTERFACE_TYPE_EXTENSION,name:r,interfaces:i,directives:o,fields:s})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:P.Kind.UNION_TYPE_EXTENSION,name:r,directives:i,types:o})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:P.Kind.ENUM_TYPE_EXTENSION,name:r,directives:i,values:o})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:P.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:i,fields:o})}parseDirectiveDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(E.TokenKind.AT);let i=this.parseName(),o=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(t,{kind:P.Kind.DIRECTIVE_DEFINITION,description:r,name:i,arguments:o,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(E.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(_y.DirectiveLocation,r.value))return r;throw this.unexpected(t)}parseSchemaCoordinate(){let t=this._lexer.token,r=this.expectOptionalToken(E.TokenKind.AT),i=this.parseName(),o;!r&&this.expectOptionalToken(E.TokenKind.DOT)&&(o=this.parseName());let s;return(r||o)&&this.expectOptionalToken(E.TokenKind.PAREN_L)&&(s=this.parseName(),this.expectToken(E.TokenKind.COLON),this.expectToken(E.TokenKind.PAREN_R)),r?s?this.node(t,{kind:P.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:s}):this.node(t,{kind:P.Kind.DIRECTIVE_COORDINATE,name:i}):o?s?this.node(t,{kind:P.Kind.ARGUMENT_COORDINATE,name:i,fieldName:o,argumentName:s}):this.node(t,{kind:P.Kind.MEMBER_COORDINATE,name:i,memberName:o}):this.node(t,{kind:P.Kind.TYPE_COORDINATE,name:i})}node(t,r){return this._options.noLocation!==!0&&(r.loc=new Gr.Location(t,this._lexer.lastToken,this._lexer.source)),r}peek(t){return this._lexer.token.kind===t}expectToken(t){let r=this._lexer.token;if(r.kind===t)return this.advanceLexer(),r;throw(0,Rt.syntaxError)(this._lexer.source,r.start,`Expected ${$c(t)}, found ${Yn(r)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let r=this._lexer.token;if(r.kind===E.TokenKind.NAME&&r.value===t)this.advanceLexer();else throw(0,Rt.syntaxError)(this._lexer.source,r.start,`Expected "${t}", found ${Yn(r)}.`)}expectOptionalKeyword(t){let r=this._lexer.token;return r.kind===E.TokenKind.NAME&&r.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let r=t??this._lexer.token;return(0,Rt.syntaxError)(this._lexer.source,r.start,`Unexpected ${Yn(r)}.`)}any(t,r,i){this.expectToken(t);let o=[];for(;!this.expectOptionalToken(i);)o.push(r.call(this));return o}optionalMany(t,r,i){if(this.expectOptionalToken(t)){let o=[];do o.push(r.call(this));while(!this.expectOptionalToken(i));return o}return[]}many(t,r,i){this.expectToken(t);let o=[];do o.push(r.call(this));while(!this.expectOptionalToken(i));return o}delimitedMany(t,r){this.expectOptionalToken(t);let i=[];do i.push(r.call(this));while(this.expectOptionalToken(t));return i}advanceLexer(){let{maxTokens:t}=this._options,r=this._lexer.advance();if(r.kind!==E.TokenKind.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw(0,Rt.syntaxError)(this._lexer.source,r.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};yt.Parser=jt;function Yn(e){let t=e.value;return $c(e.kind)+(t!=null?` "${t}"`:"")}n(Yn,"getTokenDesc");function $c(e){return(0,Qc.isPunctuatorTokenKind)(e)?`"${e}"`:e}n($c,"getTokenKindDesc")});var kt=y(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.didYouMean=Ay;var Dy=5;function Ay(e,t){let[r,i]=t?[e,t]:[void 0,e],o=" Did you mean ";r&&(o+=r+" ");let s=i.map(c=>`"${c}"`);switch(s.length){case 0:return"";case 1:return o+s[0]+"?";case 2:return o+s[0]+" or "+s[1]+"?"}let a=s.slice(0,Dy),u=a.pop();return o+a.join(", ")+", or "+u+"?"}n(Ay,"didYouMean")});var Kc=y(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.identityFunc=Py;function Py(e){return e}n(Py,"identityFunc")});var wt=y(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.keyMap=Ry;function Ry(e,t){let r=Object.create(null);for(let i of e)r[t(i)]=i;return r}n(Ry,"keyMap")});var Ur=y(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.keyValMap=jy;function jy(e,t,r){let i=Object.create(null);for(let o of e)i[t(o)]=r(o);return i}n(jy,"keyValMap")});var Jn=y(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.mapValue=ky;function ky(e,t){let r=Object.create(null);for(let i of Object.keys(e))r[i]=t(e[i],i);return r}n(ky,"mapValue")});var Qr=y($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.naturalCompare=wy;function wy(e,t){let r=0,i=0;for(;r<e.length&&i<t.length;){let o=e.charCodeAt(r),s=t.charCodeAt(i);if(Wn(o)&&Wn(s)){let a=0;do++r,a=a*10+o-Qo,o=e.charCodeAt(r);while(Wn(o)&&a>0);let u=0;do++i,u=u*10+s-Qo,s=t.charCodeAt(i);while(Wn(s)&&u>0);if(a<u)return-1;if(a>u)return 1}else{if(o<s)return-1;if(o>s)return 1;++r,++i}}return e.length-t.length}n(wy,"naturalCompare");var Qo=48,Fy=57;function Wn(e){return!isNaN(e)&&Qo<=e&&e<=Fy}n(Wn,"isDigit")});var Ft=y(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.suggestionList=xy;var Cy=Qr();function xy(e,t){let r=Object.create(null),i=new Ko(e),o=Math.floor(e.length*.4)+1;for(let s of t){let a=i.measure(s,o);a!==void 0&&(r[s]=a)}return Object.keys(r).sort((s,a)=>{let u=r[s]-r[a];return u!==0?u:(0,Cy.naturalCompare)(s,a)})}n(xy,"suggestionList");var Ko=class{static{n(this,"LexicalDistance")}constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Bc(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,r){if(this._input===t)return 0;let i=t.toLowerCase();if(this._inputLowerCase===i)return 1;let o=Bc(i),s=this._inputArray;if(o.length<s.length){let p=o;o=s,s=p}let a=o.length,u=s.length;if(a-u>r)return;let c=this._rows;for(let p=0;p<=u;p++)c[0][p]=p;for(let p=1;p<=a;p++){let f=c[(p-1)%3],m=c[p%3],v=m[0]=p;for(let b=1;b<=u;b++){let V=o[p-1]===s[b-1]?0:1,J=Math.min(f[b]+1,m[b-1]+1,f[b-1]+V);if(p>1&&b>1&&o[p-1]===s[b-2]&&o[p-2]===s[b-1]){let z=c[(p-2)%3][b-2];J=Math.min(J,z+1)}J<v&&(v=J),m[b]=J}if(v>r)return}let l=c[a%3][u];return l<=r?l:void 0}};function Bc(e){let t=e.length,r=new Array(t);for(let i=0;i<t;++i)r[i]=e.charCodeAt(i);return r}n(Bc,"stringToArray")});var zn=y(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.toObjMap=Vy;function Vy(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[r,i]of Object.entries(e))t[r]=i;return t}n(Vy,"toObjMap")});var Yc=y(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.printString=qy;function qy(e){return`"${e.replace(My,Gy)}"`}n(qy,"printString");var My=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Gy(e){return Uy[e.charCodeAt(0)]}n(Gy,"escapedReplacer");var Uy=["\\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"]});var Bt=y(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.BREAK=void 0;Ct.getEnterLeaveForKind=Xn;Ct.getVisitFn=Yy;Ct.visit=Ky;Ct.visitInParallel=By;var Qy=Ie(),$y=H(),Jo=Ce(),Hc=G(),mr=Object.freeze({});Ct.BREAK=mr;function Ky(e,t,r=Jo.QueryDocumentKeys){let i=new Map;for(let z of Object.values(Hc.Kind))i.set(z,Xn(t,z));let o,s=Array.isArray(e),a=[e],u=-1,c=[],l=e,p,f,m=[],v=[];do{u++;let z=u===a.length,ne=z&&c.length!==0;if(z){if(p=v.length===0?void 0:m[m.length-1],l=f,f=v.pop(),ne)if(s){l=l.slice();let ge=0;for(let[mt,nt]of c){let St=mt-ge;nt===null?(l.splice(St,1),ge++):l[St]=nt}}else{l={...l};for(let[ge,mt]of c)l[ge]=mt}u=o.index,a=o.keys,c=o.edits,s=o.inArray,o=o.prev}else if(f){if(p=s?u:a[u],l=f[p],l==null)continue;m.push(p)}let ie;if(!Array.isArray(l)){var b,V;(0,Jo.isNode)(l)||(0,Qy.devAssert)(!1,`Invalid AST Node: ${(0,$y.inspect)(l)}.`);let ge=z?(b=i.get(l.kind))===null||b===void 0?void 0:b.leave:(V=i.get(l.kind))===null||V===void 0?void 0:V.enter;if(ie=ge?.call(t,l,p,f,m,v),ie===mr)break;if(ie===!1){if(!z){m.pop();continue}}else if(ie!==void 0&&(c.push([p,ie]),!z))if((0,Jo.isNode)(ie))l=ie;else{m.pop();continue}}if(ie===void 0&&ne&&c.push([p,l]),z)m.pop();else{var J;o={inArray:s,index:u,keys:a,edits:c,prev:o},s=Array.isArray(l),a=s?l:(J=r[l.kind])!==null&&J!==void 0?J:[],u=-1,c=[],f&&v.push(f),f=l}}while(o!==void 0);return c.length!==0?c[c.length-1][1]:e}n(Ky,"visit");function By(e){let t=new Array(e.length).fill(null),r=Object.create(null);for(let i of Object.values(Hc.Kind)){let o=!1,s=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let c=0;c<e.length;++c){let{enter:l,leave:p}=Xn(e[c],i);o||(o=l!=null||p!=null),s[c]=l,a[c]=p}if(!o)continue;let u={enter(...c){let l=c[0];for(let f=0;f<e.length;f++)if(t[f]===null){var p;let m=(p=s[f])===null||p===void 0?void 0:p.apply(e[f],c);if(m===!1)t[f]=l;else if(m===mr)t[f]=mr;else if(m!==void 0)return m}},leave(...c){let l=c[0];for(let f=0;f<e.length;f++)if(t[f]===null){var p;let m=(p=a[f])===null||p===void 0?void 0:p.apply(e[f],c);if(m===mr)t[f]=mr;else if(m!==void 0&&m!==!1)return m}else t[f]===l&&(t[f]=null)}};r[i]=u}return r}n(By,"visitInParallel");function Xn(e,t){let r=e[t];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}n(Xn,"getEnterLeaveForKind");function Yy(e,t,r){let{enter:i,leave:o}=Xn(e,t);return r?o:i}n(Yy,"getVisitFn")});var Re=y(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.print=zy;var Hy=Fr(),Jy=Yc(),Wy=Bt();function zy(e){return(0,Wy.visit)(e,Zy)}n(zy,"print");var Xy=80,Zy={Name:{leave:n(e=>e.value,"leave")},Variable:{leave:n(e=>"$"+e.name,"leave")},Document:{leave:n(e=>N(e.definitions,`
`),"leave")},OperationDefinition:{leave(e){let t=Wo(e.variableDefinitions)?k(`(
`,N(e.variableDefinitions,`
`),`
)`):k("(",N(e.variableDefinitions,", "),")"),r=k("",e.description,`
`)+N([e.operation,N([e.name,t]),N(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:n(({variable:e,type:t,defaultValue:r,directives:i,description:o})=>k("",o,`
`)+e+": "+t+k(" = ",r)+k(" ",N(i," ")),"leave")},SelectionSet:{leave:n(({selections:e})=>He(e),"leave")},Field:{leave({alias:e,name:t,arguments:r,directives:i,selectionSet:o}){let s=k("",e,": ")+t,a=s+k("(",N(r,", "),")");return a.length>Xy&&(a=s+k(`(
`,Zn(N(r,`
`)),`
)`)),N([a,N(i," "),o]," ")}},Argument:{leave:n(({name:e,value:t})=>e+": "+t,"leave")},FragmentSpread:{leave:n(({name:e,directives:t})=>"..."+e+k(" ",N(t," ")),"leave")},InlineFragment:{leave:n(({typeCondition:e,directives:t,selectionSet:r})=>N(["...",k("on ",e),N(t," "),r]," "),"leave")},FragmentDefinition:{leave:n(({name:e,typeCondition:t,variableDefinitions:r,directives:i,selectionSet:o,description:s})=>k("",s,`
`)+`fragment ${e}${k("(",N(r,", "),")")} on ${t} ${k("",N(i," ")," ")}`+o,"leave")},IntValue:{leave:n(({value:e})=>e,"leave")},FloatValue:{leave:n(({value:e})=>e,"leave")},StringValue:{leave:n(({value:e,block:t})=>t?(0,Hy.printBlockString)(e):(0,Jy.printString)(e),"leave")},BooleanValue:{leave:n(({value:e})=>e?"true":"false","leave")},NullValue:{leave:n(()=>"null","leave")},EnumValue:{leave:n(({value:e})=>e,"leave")},ListValue:{leave:n(({values:e})=>"["+N(e,", ")+"]","leave")},ObjectValue:{leave:n(({fields:e})=>"{"+N(e,", ")+"}","leave")},ObjectField:{leave:n(({name:e,value:t})=>e+": "+t,"leave")},Directive:{leave:n(({name:e,arguments:t})=>"@"+e+k("(",N(t,", "),")"),"leave")},NamedType:{leave:n(({name:e})=>e,"leave")},ListType:{leave:n(({type:e})=>"["+e+"]","leave")},NonNullType:{leave:n(({type:e})=>e+"!","leave")},SchemaDefinition:{leave:n(({description:e,directives:t,operationTypes:r})=>k("",e,`
`)+N(["schema",N(t," "),He(r)]," "),"leave")},OperationTypeDefinition:{leave:n(({operation:e,type:t})=>e+": "+t,"leave")},ScalarTypeDefinition:{leave:n(({description:e,name:t,directives:r})=>k("",e,`
`)+N(["scalar",t,N(r," ")]," "),"leave")},ObjectTypeDefinition:{leave:n(({description:e,name:t,interfaces:r,directives:i,fields:o})=>k("",e,`
`)+N(["type",t,k("implements ",N(r," & ")),N(i," "),He(o)]," "),"leave")},FieldDefinition:{leave:n(({description:e,name:t,arguments:r,type:i,directives:o})=>k("",e,`
`)+t+(Wo(r)?k(`(
`,Zn(N(r,`
`)),`
)`):k("(",N(r,", "),")"))+": "+i+k(" ",N(o," ")),"leave")},InputValueDefinition:{leave:n(({description:e,name:t,type:r,defaultValue:i,directives:o})=>k("",e,`
`)+N([t+": "+r,k("= ",i),N(o," ")]," "),"leave")},InterfaceTypeDefinition:{leave:n(({description:e,name:t,interfaces:r,directives:i,fields:o})=>k("",e,`
`)+N(["interface",t,k("implements ",N(r," & ")),N(i," "),He(o)]," "),"leave")},UnionTypeDefinition:{leave:n(({description:e,name:t,directives:r,types:i})=>k("",e,`
`)+N(["union",t,N(r," "),k("= ",N(i," | "))]," "),"leave")},EnumTypeDefinition:{leave:n(({description:e,name:t,directives:r,values:i})=>k("",e,`
`)+N(["enum",t,N(r," "),He(i)]," "),"leave")},EnumValueDefinition:{leave:n(({description:e,name:t,directives:r})=>k("",e,`
`)+N([t,N(r," ")]," "),"leave")},InputObjectTypeDefinition:{leave:n(({description:e,name:t,directives:r,fields:i})=>k("",e,`
`)+N(["input",t,N(r," "),He(i)]," "),"leave")},DirectiveDefinition:{leave:n(({description:e,name:t,arguments:r,repeatable:i,locations:o})=>k("",e,`
`)+"directive @"+t+(Wo(r)?k(`(
`,Zn(N(r,`
`)),`
)`):k("(",N(r,", "),")"))+(i?" repeatable":"")+" on "+N(o," | "),"leave")},SchemaExtension:{leave:n(({directives:e,operationTypes:t})=>N(["extend schema",N(e," "),He(t)]," "),"leave")},ScalarTypeExtension:{leave:n(({name:e,directives:t})=>N(["extend scalar",e,N(t," ")]," "),"leave")},ObjectTypeExtension:{leave:n(({name:e,interfaces:t,directives:r,fields:i})=>N(["extend type",e,k("implements ",N(t," & ")),N(r," "),He(i)]," "),"leave")},InterfaceTypeExtension:{leave:n(({name:e,interfaces:t,directives:r,fields:i})=>N(["extend interface",e,k("implements ",N(t," & ")),N(r," "),He(i)]," "),"leave")},UnionTypeExtension:{leave:n(({name:e,directives:t,types:r})=>N(["extend union",e,N(t," "),k("= ",N(r," | "))]," "),"leave")},EnumTypeExtension:{leave:n(({name:e,directives:t,values:r})=>N(["extend enum",e,N(t," "),He(r)]," "),"leave")},InputObjectTypeExtension:{leave:n(({name:e,directives:t,fields:r})=>N(["extend input",e,N(t," "),He(r)]," "),"leave")},TypeCoordinate:{leave:n(({name:e})=>e,"leave")},MemberCoordinate:{leave:n(({name:e,memberName:t})=>N([e,k(".",t)]),"leave")},ArgumentCoordinate:{leave:n(({name:e,fieldName:t,argumentName:r})=>N([e,k(".",t),k("(",r,":)")]),"leave")},DirectiveCoordinate:{leave:n(({name:e})=>N(["@",e]),"leave")},DirectiveArgumentCoordinate:{leave:n(({name:e,argumentName:t})=>N(["@",e,k("(",t,":)")]),"leave")}};function N(e,t=""){var r;return(r=e?.filter(i=>i).join(t))!==null&&r!==void 0?r:""}n(N,"join");function He(e){return k(`{
`,Zn(N(e,`
`)),`
}`)}n(He,"block");function k(e,t,r=""){return t!=null&&t!==""?e+t+r:""}n(k,"wrap");function Zn(e){return k(" ",e.replace(/\n/g,`
`))}n(Zn,"indent");function Wo(e){var t;return(t=e?.some(r=>r.includes(`
`)))!==null&&t!==void 0?t:!1}n(Wo,"hasMultilineItems")});var es=y(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.valueFromASTUntyped=Xo;var eh=Ur(),ht=G();function Xo(e,t){switch(e.kind){case ht.Kind.NULL:return null;case ht.Kind.INT:return parseInt(e.value,10);case ht.Kind.FLOAT:return parseFloat(e.value);case ht.Kind.STRING:case ht.Kind.ENUM:case ht.Kind.BOOLEAN:return e.value;case ht.Kind.LIST:return e.values.map(r=>Xo(r,t));case ht.Kind.OBJECT:return(0,eh.keyValMap)(e.fields,r=>r.name.value,r=>Xo(r.value,t));case ht.Kind.VARIABLE:return t?.[e.name.value]}}n(Xo,"valueFromASTUntyped")});var $r=y(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.assertEnumValueName=th;ti.assertName=zc;var Jc=Ie(),ei=A(),Wc=kr();function zc(e){if(e!=null||(0,Jc.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,Jc.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new ei.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!(0,Wc.isNameContinue)(e.charCodeAt(t)))throw new ei.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,Wc.isNameStart)(e.charCodeAt(0)))throw new ei.GraphQLError(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}n(zc,"assertName");function th(e){if(e==="true"||e==="false"||e==="null")throw new ei.GraphQLError(`Enum values cannot be named: ${e}`);return zc(e)}n(th,"assertEnumValueName")});var U=y(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.GraphQLUnionType=D.GraphQLScalarType=D.GraphQLObjectType=D.GraphQLNonNull=D.GraphQLList=D.GraphQLInterfaceType=D.GraphQLInputObjectType=D.GraphQLEnumType=void 0;D.argsToArgsConfig=ll;D.assertAbstractType=_h;D.assertCompositeType=bh;D.assertEnumType=fh;D.assertInputObjectType=mh;D.assertInputType=vh;D.assertInterfaceType=ph;D.assertLeafType=gh;D.assertListType=yh;D.assertNamedType=Ih;D.assertNonNullType=hh;D.assertNullableType=Oh;D.assertObjectType=lh;D.assertOutputType=Th;D.assertScalarType=ch;D.assertType=uh;D.assertUnionType=dh;D.assertWrappingType=Eh;D.defineArguments=ul;D.getNamedType=Sh;D.getNullableType=Nh;D.isAbstractType=il;D.isCompositeType=nl;D.isEnumType=Wt;D.isInputObjectType=Br;D.isInputType=ts;D.isInterfaceType=Ht;D.isLeafType=rl;D.isListType=fi;D.isNamedType=ol;D.isNonNullType=Vt;D.isNullableType=ns;D.isObjectType=hr;D.isOutputType=rs;D.isRequiredArgument=Lh;D.isRequiredInputField=Ph;D.isScalarType=Yt;D.isType=di;D.isUnionType=Jt;D.isWrappingType=Yr;D.resolveObjMapThunk=os;D.resolveReadonlyArrayThunk=is;var be=Ie(),rh=kt(),Xc=Kc(),ee=H(),xt=qr(),nh=it(),ih=wt(),tl=Ur(),pi=Jn(),oh=Ft(),ot=zn(),Kr=A(),sh=G(),Zc=Re(),ah=es(),st=$r();function di(e){return Yt(e)||hr(e)||Ht(e)||Jt(e)||Wt(e)||Br(e)||fi(e)||Vt(e)}n(di,"isType");function uh(e){if(!di(e))throw new Error(`Expected ${(0,ee.inspect)(e)} to be a GraphQL type.`);return e}n(uh,"assertType");function Yt(e){return(0,xt.instanceOf)(e,oi)}n(Yt,"isScalarType");function ch(e){if(!Yt(e))throw new Error(`Expected ${(0,ee.inspect)(e)} to be a GraphQL Scalar type.`);return e}n(ch,"assertScalarType");function hr(e){return(0,xt.instanceOf)(e,si)}n(hr,"isObjectType");function lh(e){if(!hr(e))throw new Error(`Expected ${(0,ee.inspect)(e)} to be a GraphQL Object type.`);return e}n(lh,"assertObjectType");function Ht(e){return(0,xt.instanceOf)(e,ai)}n(Ht,"isInterfaceType");function ph(e){if(!Ht(e))throw new Error(`Expected ${(0,ee.inspect)(e)} to be a GraphQL Interface type.`);return e}n(ph,"assertInterfaceType");function Jt(e){return(0,xt.instanceOf)(e,ui)}n(Jt,"isUnionType");function dh(e){if(!Jt(e))throw new Error(`Expected ${(0,ee.inspect)(e)} to be a GraphQL Union type.`);return e}n(dh,"assertUnionType");function Wt(e){return(0,xt.instanceOf)(e,ci)}n(Wt,"isEnumType");function fh(e){if(!Wt(e))throw new Error(`Expected ${(0,ee.inspect)(e)} to be a GraphQL Enum type.`);return e}n(fh,"assertEnumType");function Br(e){return(0,xt.instanceOf)(e,li)}n(Br,"isInputObjectType");function mh(e){if(!Br(e))throw new Error(`Expected ${(0,ee.inspect)(e)} to be a GraphQL Input Object type.`);return e}n(mh,"assertInputObjectType");function fi(e){return(0,xt.instanceOf)(e,ni)}n(fi,"isListType");function yh(e){if(!fi(e))throw new Error(`Expected ${(0,ee.inspect)(e)} to be a GraphQL List type.`);return e}n(yh,"assertListType");function Vt(e){return(0,xt.instanceOf)(e,ii)}n(Vt,"isNonNullType");function hh(e){if(!Vt(e))throw new Error(`Expected ${(0,ee.inspect)(e)} to be a GraphQL Non-Null type.`);return e}n(hh,"assertNonNullType");function ts(e){return Yt(e)||Wt(e)||Br(e)||Yr(e)&&ts(e.ofType)}n(ts,"isInputType");function vh(e){if(!ts(e))throw new Error(`Expected ${(0,ee.inspect)(e)} to be a GraphQL input type.`);return e}n(vh,"assertInputType");function rs(e){return Yt(e)||hr(e)||Ht(e)||Jt(e)||Wt(e)||Yr(e)&&rs(e.ofType)}n(rs,"isOutputType");function Th(e){if(!rs(e))throw new Error(`Expected ${(0,ee.inspect)(e)} to be a GraphQL output type.`);return e}n(Th,"assertOutputType");function rl(e){return Yt(e)||Wt(e)}n(rl,"isLeafType");function gh(e){if(!rl(e))throw new Error(`Expected ${(0,ee.inspect)(e)} to be a GraphQL leaf type.`);return e}n(gh,"assertLeafType");function nl(e){return hr(e)||Ht(e)||Jt(e)}n(nl,"isCompositeType");function bh(e){if(!nl(e))throw new Error(`Expected ${(0,ee.inspect)(e)} to be a GraphQL composite type.`);return e}n(bh,"assertCompositeType");function il(e){return Ht(e)||Jt(e)}n(il,"isAbstractType");function _h(e){if(!il(e))throw new Error(`Expected ${(0,ee.inspect)(e)} to be a GraphQL abstract type.`);return e}n(_h,"assertAbstractType");var ni=class{static{n(this,"GraphQLList")}constructor(t){di(t)||(0,be.devAssert)(!1,`Expected ${(0,ee.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};D.GraphQLList=ni;var ii=class{static{n(this,"GraphQLNonNull")}constructor(t){ns(t)||(0,be.devAssert)(!1,`Expected ${(0,ee.inspect)(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};D.GraphQLNonNull=ii;function Yr(e){return fi(e)||Vt(e)}n(Yr,"isWrappingType");function Eh(e){if(!Yr(e))throw new Error(`Expected ${(0,ee.inspect)(e)} to be a GraphQL wrapping type.`);return e}n(Eh,"assertWrappingType");function ns(e){return di(e)&&!Vt(e)}n(ns,"isNullableType");function Oh(e){if(!ns(e))throw new Error(`Expected ${(0,ee.inspect)(e)} to be a GraphQL nullable type.`);return e}n(Oh,"assertNullableType");function Nh(e){if(e)return Vt(e)?e.ofType:e}n(Nh,"getNullableType");function ol(e){return Yt(e)||hr(e)||Ht(e)||Jt(e)||Wt(e)||Br(e)}n(ol,"isNamedType");function Ih(e){if(!ol(e))throw new Error(`Expected ${(0,ee.inspect)(e)} to be a GraphQL named type.`);return e}n(Ih,"assertNamedType");function Sh(e){if(e){let t=e;for(;Yr(t);)t=t.ofType;return t}}n(Sh,"getNamedType");function is(e){return typeof e=="function"?e():e}n(is,"resolveReadonlyArrayThunk");function os(e){return typeof e=="function"?e():e}n(os,"resolveObjMapThunk");var oi=class{static{n(this,"GraphQLScalarType")}constructor(t){var r,i,o,s;let a=(r=t.parseValue)!==null&&r!==void 0?r:Xc.identityFunc;this.name=(0,st.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(i=t.serialize)!==null&&i!==void 0?i:Xc.identityFunc,this.parseValue=a,this.parseLiteral=(o=t.parseLiteral)!==null&&o!==void 0?o:(u,c)=>a((0,ah.valueFromASTUntyped)(u,c)),this.extensions=(0,ot.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,be.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,ee.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,be.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.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||(0,be.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()}};D.GraphQLScalarType=oi;var si=class{static{n(this,"GraphQLObjectType")}constructor(t){var r;this.name=(0,st.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,ot.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=()=>al(t),this._interfaces=()=>sl(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,be.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,ee.inspect)(t.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:cl(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLObjectType=si;function sl(e){var t;let r=is((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(r)||(0,be.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),r}n(sl,"defineInterfaces");function al(e){let t=os(e.fields);return yr(t)||(0,be.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,pi.mapValue)(t,(r,i)=>{var o;yr(r)||(0,be.devAssert)(!1,`${e.name}.${i} field config must be an object.`),r.resolve==null||typeof r.resolve=="function"||(0,be.devAssert)(!1,`${e.name}.${i} field resolver must be a function if provided, but got: ${(0,ee.inspect)(r.resolve)}.`);let s=(o=r.args)!==null&&o!==void 0?o:{};return yr(s)||(0,be.devAssert)(!1,`${e.name}.${i} args must be an object with argument names as keys.`),{name:(0,st.assertName)(i),description:r.description,type:r.type,args:ul(s),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:(0,ot.toObjMap)(r.extensions),astNode:r.astNode}})}n(al,"defineFieldMap");function ul(e){return Object.entries(e).map(([t,r])=>({name:(0,st.assertName)(t),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:(0,ot.toObjMap)(r.extensions),astNode:r.astNode}))}n(ul,"defineArguments");function yr(e){return(0,nh.isObjectLike)(e)&&!Array.isArray(e)}n(yr,"isPlainObj");function cl(e){return(0,pi.mapValue)(e,t=>({description:t.description,type:t.type,args:ll(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}n(cl,"fieldsToFieldsConfig");function ll(e){return(0,tl.keyValMap)(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}n(ll,"argsToArgsConfig");function Lh(e){return Vt(e.type)&&e.defaultValue===void 0}n(Lh,"isRequiredArgument");var ai=class{static{n(this,"GraphQLInterfaceType")}constructor(t){var r;this.name=(0,st.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,ot.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=al.bind(void 0,t),this._interfaces=sl.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,be.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,ee.inspect)(t.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:cl(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLInterfaceType=ai;var ui=class{static{n(this,"GraphQLUnionType")}constructor(t){var r;this.name=(0,st.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,ot.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._types=Dh.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,be.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,ee.inspect)(t.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()}};D.GraphQLUnionType=ui;function Dh(e){let t=is(e.types);return Array.isArray(t)||(0,be.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}n(Dh,"defineTypes");var ci=class{static{n(this,"GraphQLEnumType")}constructor(t){var r;this.name=(0,st.assertName)(t.name),this.description=t.description,this.extensions=(0,ot.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._values=typeof t.values=="function"?t.values:el(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=el(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,ih.keyMap)(this.getValues(),r=>r.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(i=>[i.value,i])));let r=this._valueLookup.get(t);if(r===void 0)throw new Kr.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,ee.inspect)(t)}`);return r.name}parseValue(t){if(typeof t!="string"){let i=(0,ee.inspect)(t);throw new Kr.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${i}.`+ri(this,i))}let r=this.getValue(t);if(r==null)throw new Kr.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+ri(this,t));return r.value}parseLiteral(t,r){if(t.kind!==sh.Kind.ENUM){let o=(0,Zc.print)(t);throw new Kr.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${o}.`+ri(this,o),{nodes:t})}let i=this.getValue(t.value);if(i==null){let o=(0,Zc.print)(t);throw new Kr.GraphQLError(`Value "${o}" does not exist in "${this.name}" enum.`+ri(this,o),{nodes:t})}return i.value}toConfig(){let t=(0,tl.keyValMap)(this.getValues(),r=>r.name,r=>({description:r.description,value:r.value,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLEnumType=ci;function ri(e,t){let r=e.getValues().map(o=>o.name),i=(0,oh.suggestionList)(t,r);return(0,rh.didYouMean)("the enum value",i)}n(ri,"didYouMeanEnumValue");function el(e,t){return yr(t)||(0,be.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([r,i])=>(yr(i)||(0,be.devAssert)(!1,`${e}.${r} must refer to an object with a "value" key representing an internal value but got: ${(0,ee.inspect)(i)}.`),{name:(0,st.assertEnumValueName)(r),description:i.description,value:i.value!==void 0?i.value:r,deprecationReason:i.deprecationReason,extensions:(0,ot.toObjMap)(i.extensions),astNode:i.astNode}))}n(el,"defineEnumValues");var li=class{static{n(this,"GraphQLInputObjectType")}constructor(t){var r,i;this.name=(0,st.assertName)(t.name),this.description=t.description,this.extensions=(0,ot.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this.isOneOf=(i=t.isOneOf)!==null&&i!==void 0?i:!1,this._fields=Ah.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=(0,pi.mapValue)(this.getFields(),r=>({description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLInputObjectType=li;function Ah(e){let t=os(e.fields);return yr(t)||(0,be.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,pi.mapValue)(t,(r,i)=>(!("resolve"in r)||(0,be.devAssert)(!1,`${e.name}.${i} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,st.assertName)(i),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:(0,ot.toObjMap)(r.extensions),astNode:r.astNode}))}n(Ah,"defineInputFieldMap");function Ph(e){return Vt(e.type)&&e.defaultValue===void 0}n(Ph,"isRequiredInputField")});var Jr=y(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.doTypesOverlap=Rh;Hr.isEqualType=ss;Hr.isTypeSubTypeOf=mi;var Oe=U();function ss(e,t){return e===t?!0:(0,Oe.isNonNullType)(e)&&(0,Oe.isNonNullType)(t)||(0,Oe.isListType)(e)&&(0,Oe.isListType)(t)?ss(e.ofType,t.ofType):!1}n(ss,"isEqualType");function mi(e,t,r){return t===r?!0:(0,Oe.isNonNullType)(r)?(0,Oe.isNonNullType)(t)?mi(e,t.ofType,r.ofType):!1:(0,Oe.isNonNullType)(t)?mi(e,t.ofType,r):(0,Oe.isListType)(r)?(0,Oe.isListType)(t)?mi(e,t.ofType,r.ofType):!1:(0,Oe.isListType)(t)?!1:(0,Oe.isAbstractType)(r)&&((0,Oe.isInterfaceType)(t)||(0,Oe.isObjectType)(t))&&e.isSubType(r,t)}n(mi,"isTypeSubTypeOf");function Rh(e,t,r){return t===r?!0:(0,Oe.isAbstractType)(t)?(0,Oe.isAbstractType)(r)?e.getPossibleTypes(t).some(i=>e.isSubType(r,i)):e.isSubType(t,r):(0,Oe.isAbstractType)(r)?e.isSubType(r,t):!1}n(Rh,"doTypesOverlap")});var at=y(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.GraphQLString=ye.GraphQLInt=ye.GraphQLID=ye.GraphQLFloat=ye.GraphQLBoolean=ye.GRAPHQL_MIN_INT=ye.GRAPHQL_MAX_INT=void 0;ye.isSpecifiedScalarType=jh;ye.specifiedScalarTypes=void 0;var Je=H(),pl=it(),_e=A(),zt=G(),Wr=Re(),zr=U(),yi=2147483647;ye.GRAPHQL_MAX_INT=yi;var hi=-2147483648;ye.GRAPHQL_MIN_INT=hi;var dl=new zr.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=Xr(e);if(typeof t=="boolean")return t?1:0;let r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),typeof r!="number"||!Number.isInteger(r))throw new _e.GraphQLError(`Int cannot represent non-integer value: ${(0,Je.inspect)(t)}`);if(r>yi||r<hi)throw new _e.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,Je.inspect)(t));return r},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new _e.GraphQLError(`Int cannot represent non-integer value: ${(0,Je.inspect)(e)}`);if(e>yi||e<hi)throw new _e.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==zt.Kind.INT)throw new _e.GraphQLError(`Int cannot represent non-integer value: ${(0,Wr.print)(e)}`,{nodes:e});let t=parseInt(e.value,10);if(t>yi||t<hi)throw new _e.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}});ye.GraphQLInt=dl;var fl=new zr.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=Xr(e);if(typeof t=="boolean")return t?1:0;let r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),typeof r!="number"||!Number.isFinite(r))throw new _e.GraphQLError(`Float cannot represent non numeric value: ${(0,Je.inspect)(t)}`);return r},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new _e.GraphQLError(`Float cannot represent non numeric value: ${(0,Je.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==zt.Kind.FLOAT&&e.kind!==zt.Kind.INT)throw new _e.GraphQLError(`Float cannot represent non numeric value: ${(0,Wr.print)(e)}`,e);return parseFloat(e.value)}});ye.GraphQLFloat=fl;var ml=new zr.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=Xr(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 _e.GraphQLError(`String cannot represent value: ${(0,Je.inspect)(e)}`)},parseValue(e){if(typeof e!="string")throw new _e.GraphQLError(`String cannot represent a non string value: ${(0,Je.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==zt.Kind.STRING)throw new _e.GraphQLError(`String cannot represent a non string value: ${(0,Wr.print)(e)}`,{nodes:e});return e.value}});ye.GraphQLString=ml;var yl=new zr.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let t=Xr(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new _e.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,Je.inspect)(t)}`)},parseValue(e){if(typeof e!="boolean")throw new _e.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,Je.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==zt.Kind.BOOLEAN)throw new _e.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,Wr.print)(e)}`,{nodes:e});return e.value}});ye.GraphQLBoolean=yl;var hl=new zr.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=Xr(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new _e.GraphQLError(`ID cannot represent value: ${(0,Je.inspect)(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new _e.GraphQLError(`ID cannot represent value: ${(0,Je.inspect)(e)}`)},parseLiteral(e){if(e.kind!==zt.Kind.STRING&&e.kind!==zt.Kind.INT)throw new _e.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,Wr.print)(e),{nodes:e});return e.value}});ye.GraphQLID=hl;var vl=Object.freeze([ml,dl,fl,yl,hl]);ye.specifiedScalarTypes=vl;function jh(e){return vl.some(({name:t})=>e.name===t)}n(jh,"isSpecifiedScalarType");function Xr(e){if((0,pl.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,pl.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}n(Xr,"serializeObject")});var Le=y(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.GraphQLSpecifiedByDirective=fe.GraphQLSkipDirective=fe.GraphQLOneOfDirective=fe.GraphQLIncludeDirective=fe.GraphQLDirective=fe.GraphQLDeprecatedDirective=fe.DEFAULT_DEPRECATION_REASON=void 0;fe.assertDirective=Vh;fe.isDirective=gl;fe.isSpecifiedDirective=qh;fe.specifiedDirectives=void 0;var Tl=Ie(),kh=H(),wh=qr(),Fh=it(),Ch=zn(),xe=pr(),xh=$r(),Zr=U(),vi=at();function gl(e){return(0,wh.instanceOf)(e,vt)}n(gl,"isDirective");function Vh(e){if(!gl(e))throw new Error(`Expected ${(0,kh.inspect)(e)} to be a GraphQL directive.`);return e}n(Vh,"assertDirective");var vt=class{static{n(this,"GraphQLDirective")}constructor(t){var r,i;this.name=(0,xh.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(r=t.isRepeatable)!==null&&r!==void 0?r:!1,this.extensions=(0,Ch.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,Tl.devAssert)(!1,`@${t.name} locations must be an Array.`);let o=(i=t.args)!==null&&i!==void 0?i:{};(0,Fh.isObjectLike)(o)&&!Array.isArray(o)||(0,Tl.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,Zr.defineArguments)(o)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,Zr.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};fe.GraphQLDirective=vt;var bl=new vt({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[xe.DirectiveLocation.FIELD,xe.DirectiveLocation.FRAGMENT_SPREAD,xe.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Zr.GraphQLNonNull(vi.GraphQLBoolean),description:"Included when true."}}});fe.GraphQLIncludeDirective=bl;var _l=new vt({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[xe.DirectiveLocation.FIELD,xe.DirectiveLocation.FRAGMENT_SPREAD,xe.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Zr.GraphQLNonNull(vi.GraphQLBoolean),description:"Skipped when true."}}});fe.GraphQLSkipDirective=_l;var El="No longer supported";fe.DEFAULT_DEPRECATION_REASON=El;var Ol=new vt({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[xe.DirectiveLocation.FIELD_DEFINITION,xe.DirectiveLocation.ARGUMENT_DEFINITION,xe.DirectiveLocation.INPUT_FIELD_DEFINITION,xe.DirectiveLocation.ENUM_VALUE],args:{reason:{type:vi.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:El}}});fe.GraphQLDeprecatedDirective=Ol;var Nl=new vt({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[xe.DirectiveLocation.SCALAR],args:{url:{type:new Zr.GraphQLNonNull(vi.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});fe.GraphQLSpecifiedByDirective=Nl;var Il=new vt({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[xe.DirectiveLocation.INPUT_OBJECT],args:{}});fe.GraphQLOneOfDirective=Il;var Sl=Object.freeze([bl,_l,Ol,Nl,Il]);fe.specifiedDirectives=Sl;function qh(e){return Sl.some(({name:t})=>t===e.name)}n(qh,"isSpecifiedDirective")});var Ti=y(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.isIterableObject=Mh;function Mh(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}n(Mh,"isIterableObject")});var rn=y(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.astFromValue=tn;var Ll=H(),Gh=Ee(),Uh=Ti(),Qh=it(),Ve=G(),en=U(),$h=at();function tn(e,t){if((0,en.isNonNullType)(t)){let r=tn(e,t.ofType);return r?.kind===Ve.Kind.NULL?null:r}if(e===null)return{kind:Ve.Kind.NULL};if(e===void 0)return null;if((0,en.isListType)(t)){let r=t.ofType;if((0,Uh.isIterableObject)(e)){let i=[];for(let o of e){let s=tn(o,r);s!=null&&i.push(s)}return{kind:Ve.Kind.LIST,values:i}}return tn(e,r)}if((0,en.isInputObjectType)(t)){if(!(0,Qh.isObjectLike)(e))return null;let r=[];for(let i of Object.values(t.getFields())){let o=tn(e[i.name],i.type);o&&r.push({kind:Ve.Kind.OBJECT_FIELD,name:{kind:Ve.Kind.NAME,value:i.name},value:o})}return{kind:Ve.Kind.OBJECT,fields:r}}if((0,en.isLeafType)(t)){let r=t.serialize(e);if(r==null)return null;if(typeof r=="boolean")return{kind:Ve.Kind.BOOLEAN,value:r};if(typeof r=="number"&&Number.isFinite(r)){let i=String(r);return Dl.test(i)?{kind:Ve.Kind.INT,value:i}:{kind:Ve.Kind.FLOAT,value:i}}if(typeof r=="string")return(0,en.isEnumType)(t)?{kind:Ve.Kind.ENUM,value:r}:t===$h.GraphQLID&&Dl.test(r)?{kind:Ve.Kind.INT,value:r}:{kind:Ve.Kind.STRING,value:r};throw new TypeError(`Cannot convert value to AST: ${(0,Ll.inspect)(r)}.`)}(0,Gh.invariant)(!1,"Unexpected input type: "+(0,Ll.inspect)(t))}n(tn,"astFromValue");var Dl=/^-?(?:0|[1-9][0-9]*)$/});var Me=y(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.introspectionTypes=W.__TypeKind=W.__Type=W.__Schema=W.__InputValue=W.__Field=W.__EnumValue=W.__DirectiveLocation=W.__Directive=W.TypeNameMetaFieldDef=W.TypeMetaFieldDef=W.TypeKind=W.SchemaMetaFieldDef=void 0;W.isIntrospectionType=Xh;var Kh=H(),Bh=Ee(),he=pr(),Yh=Re(),Hh=rn(),I=U(),X=at(),cs=new I.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:n(()=>({description:{type:X.GraphQLString,resolve:n(e=>e.description,"resolve")},types:{description:"A list of all types supported by this server.",type:new I.GraphQLNonNull(new I.GraphQLList(new I.GraphQLNonNull(qe))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new I.GraphQLNonNull(qe),resolve:n(e=>e.getQueryType(),"resolve")},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:qe,resolve:n(e=>e.getMutationType(),"resolve")},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:qe,resolve:n(e=>e.getSubscriptionType(),"resolve")},directives:{description:"A list of all directives supported by this server.",type:new I.GraphQLNonNull(new I.GraphQLList(new I.GraphQLNonNull(ls))),resolve:n(e=>e.getDirectives(),"resolve")}}),"fields")});W.__Schema=cs;var ls=new I.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
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:n(()=>({name:{type:new I.GraphQLNonNull(X.GraphQLString),resolve:n(e=>e.name,"resolve")},description:{type:X.GraphQLString,resolve:n(e=>e.description,"resolve")},isRepeatable:{type:new I.GraphQLNonNull(X.GraphQLBoolean),resolve:n(e=>e.isRepeatable,"resolve")},locations:{type:new I.GraphQLNonNull(new I.GraphQLList(new I.GraphQLNonNull(ps))),resolve:n(e=>e.locations,"resolve")},args:{type:new I.GraphQLNonNull(new I.GraphQLList(new I.GraphQLNonNull(nn))),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}}}),"fields")});W.__Directive=ls;var ps=new I.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:he.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:he.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:he.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:he.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:he.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:he.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:he.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:he.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:he.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:he.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:he.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:he.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:he.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:he.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:he.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:he.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:he.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:he.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:he.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});W.__DirectiveLocation=ps;var qe=new I.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:n(()=>({kind:{type:new I.GraphQLNonNull(ms),resolve(e){if((0,I.isScalarType)(e))return ve.SCALAR;if((0,I.isObjectType)(e))return ve.OBJECT;if((0,I.isInterfaceType)(e))return ve.INTERFACE;if((0,I.isUnionType)(e))return ve.UNION;if((0,I.isEnumType)(e))return ve.ENUM;if((0,I.isInputObjectType)(e))return ve.INPUT_OBJECT;if((0,I.isListType)(e))return ve.LIST;if((0,I.isNonNullType)(e))return ve.NON_NULL;(0,Bh.invariant)(!1,`Unexpected type: "${(0,Kh.inspect)(e)}".`)}},name:{type:X.GraphQLString,resolve:n(e=>"name"in e?e.name:void 0,"resolve")},description:{type:X.GraphQLString,resolve:n(e=>"description"in e?e.description:void 0,"resolve")},specifiedByURL:{type:X.GraphQLString,resolve:n(e=>"specifiedByURL"in e?e.specifiedByURL:void 0,"resolve")},fields:{type:new I.GraphQLList(new I.GraphQLNonNull(ds)),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,I.isObjectType)(e)||(0,I.isInterfaceType)(e)){let r=Object.values(e.getFields());return t?r:r.filter(i=>i.deprecationReason==null)}}},interfaces:{type:new I.GraphQLList(new I.GraphQLNonNull(qe)),resolve(e){if((0,I.isObjectType)(e)||(0,I.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new I.GraphQLList(new I.GraphQLNonNull(qe)),resolve(e,t,r,{schema:i}){if((0,I.isAbstractType)(e))return i.getPossibleTypes(e)}},enumValues:{type:new I.GraphQLList(new I.GraphQLNonNull(fs)),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,I.isEnumType)(e)){let r=e.getValues();return t?r:r.filter(i=>i.deprecationReason==null)}}},inputFields:{type:new I.GraphQLList(new I.GraphQLNonNull(nn)),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,I.isInputObjectType)(e)){let r=Object.values(e.getFields());return t?r:r.filter(i=>i.deprecationReason==null)}}},ofType:{type:qe,resolve:n(e=>"ofType"in e?e.ofType:void 0,"resolve")},isOneOf:{type:X.GraphQLBoolean,resolve:n(e=>{if((0,I.isInputObjectType)(e))return e.isOneOf},"resolve")}}),"fields")});W.__Type=qe;var ds=new I.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:n(()=>({name:{type:new I.GraphQLNonNull(X.GraphQLString),resolve:n(e=>e.name,"resolve")},description:{type:X.GraphQLString,resolve:n(e=>e.description,"resolve")},args:{type:new I.GraphQLNonNull(new I.GraphQLList(new I.GraphQLNonNull(nn))),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}},type:{type:new I.GraphQLNonNull(qe),resolve:n(e=>e.type,"resolve")},isDeprecated:{type:new I.GraphQLNonNull(X.GraphQLBoolean),resolve:n(e=>e.deprecationReason!=null,"resolve")},deprecationReason:{type:X.GraphQLString,resolve:n(e=>e.deprecationReason,"resolve")}}),"fields")});W.__Field=ds;var nn=new I.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:n(()=>({name:{type:new I.GraphQLNonNull(X.GraphQLString),resolve:n(e=>e.name,"resolve")},description:{type:X.GraphQLString,resolve:n(e=>e.description,"resolve")},type:{type:new I.GraphQLNonNull(qe),resolve:n(e=>e.type,"resolve")},defaultValue:{type:X.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:r}=e,i=(0,Hh.astFromValue)(r,t);return i?(0,Yh.print)(i):null}},isDeprecated:{type:new I.GraphQLNonNull(X.GraphQLBoolean),resolve:n(e=>e.deprecationReason!=null,"resolve")},deprecationReason:{type:X.GraphQLString,resolve:n(e=>e.deprecationReason,"resolve")}}),"fields")});W.__InputValue=nn;var fs=new I.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:n(()=>({name:{type:new I.GraphQLNonNull(X.GraphQLString),resolve:n(e=>e.name,"resolve")},description:{type:X.GraphQLString,resolve:n(e=>e.description,"resolve")},isDeprecated:{type:new I.GraphQLNonNull(X.GraphQLBoolean),resolve:n(e=>e.deprecationReason!=null,"resolve")},deprecationReason:{type:X.GraphQLString,resolve:n(e=>e.deprecationReason,"resolve")}}),"fields")});W.__EnumValue=fs;var ve;W.TypeKind=ve;(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"})(ve||(W.TypeKind=ve={}));var ms=new I.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ve.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ve.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ve.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ve.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ve.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ve.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ve.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ve.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});W.__TypeKind=ms;var Jh={name:"__schema",type:new I.GraphQLNonNull(cs),description:"Access the current type schema of this server.",args:[],resolve:n((e,t,r,{schema:i})=>i,"resolve"),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};W.SchemaMetaFieldDef=Jh;var Wh={name:"__type",type:qe,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new I.GraphQLNonNull(X.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:n((e,{name:t},r,{schema:i})=>i.getType(t),"resolve"),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};W.TypeMetaFieldDef=Wh;var zh={name:"__typename",type:new I.GraphQLNonNull(X.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:n((e,t,r,{parentType:i})=>i.name,"resolve"),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};W.TypeNameMetaFieldDef=zh;var Al=Object.freeze([cs,ls,ps,qe,ds,nn,fs,ms]);W.introspectionTypes=Al;function Xh(e){return Al.some(({name:t})=>e.name===t)}n(Xh,"isIntrospectionType")});var Xt=y(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.GraphQLSchema=void 0;vr.assertSchema=nv;vr.isSchema=Rl;var gi=Ie(),hs=H(),Zh=qr(),ev=it(),tv=zn(),ys=Ce(),We=U(),Pl=Le(),rv=Me();function Rl(e){return(0,Zh.instanceOf)(e,bi)}n(Rl,"isSchema");function nv(e){if(!Rl(e))throw new Error(`Expected ${(0,hs.inspect)(e)} to be a GraphQL schema.`);return e}n(nv,"assertSchema");var bi=class{static{n(this,"GraphQLSchema")}constructor(t){var r,i;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,ev.isObjectLike)(t)||(0,gi.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,gi.devAssert)(!1,`"types" must be Array if provided but got: ${(0,hs.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,gi.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,hs.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,tv.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(i=t.directives)!==null&&i!==void 0?i:Pl.specifiedDirectives;let o=new Set(t.types);if(t.types!=null)for(let s of t.types)o.delete(s),ze(s,o);this._queryType!=null&&ze(this._queryType,o),this._mutationType!=null&&ze(this._mutationType,o),this._subscriptionType!=null&&ze(this._subscriptionType,o);for(let s of this._directives)if((0,Pl.isDirective)(s))for(let a of s.args)ze(a.type,o);ze(rv.__Schema,o),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let s of o){if(s==null)continue;let a=s.name;if(a||(0,gi.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[a]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${a}".`);if(this._typeMap[a]=s,(0,We.isInterfaceType)(s)){for(let u of s.getInterfaces())if((0,We.isInterfaceType)(u)){let c=this._implementationsMap[u.name];c===void 0&&(c=this._implementationsMap[u.name]={objects:[],interfaces:[]}),c.interfaces.push(s)}}else if((0,We.isObjectType)(s)){for(let u of s.getInterfaces())if((0,We.isInterfaceType)(u)){let c=this._implementationsMap[u.name];c===void 0&&(c=this._implementationsMap[u.name]={objects:[],interfaces:[]}),c.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case ys.OperationTypeNode.QUERY:return this.getQueryType();case ys.OperationTypeNode.MUTATION:return this.getMutationType();case ys.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,We.isUnionType)(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let r=this._implementationsMap[t.name];return r??{objects:[],interfaces:[]}}isSubType(t,r){let i=this._subTypeMap[t.name];if(i===void 0){if(i=Object.create(null),(0,We.isUnionType)(t))for(let o of t.getTypes())i[o.name]=!0;else{let o=this.getImplementations(t);for(let s of o.objects)i[s.name]=!0;for(let s of o.interfaces)i[s.name]=!0}this._subTypeMap[t.name]=i}return i[r.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(r=>r.name===t)}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}}};vr.GraphQLSchema=bi;function ze(e,t){let r=(0,We.getNamedType)(e);if(!t.has(r)){if(t.add(r),(0,We.isUnionType)(r))for(let i of r.getTypes())ze(i,t);else if((0,We.isObjectType)(r)||(0,We.isInterfaceType)(r)){for(let i of r.getInterfaces())ze(i,t);for(let i of Object.values(r.getFields())){ze(i.type,t);for(let o of i.args)ze(o.type,t)}}else if((0,We.isInputObjectType)(r))for(let i of Object.values(r.getFields()))ze(i.type,t)}return t}n(ze,"collectReferencedTypes")});var sn=y(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.assertValidSchema=av;_i.validateSchema=xl;var Ne=H(),iv=A(),vs=Ce(),jl=Jr(),ue=U(),Cl=Le(),ov=Me(),sv=Xt();function xl(e){if((0,sv.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new gs(e);uv(t),cv(t),lv(t);let r=t.getErrors();return e.__validationErrors=r,r}n(xl,"validateSchema");function av(e){let t=xl(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(`
`))}n(av,"assertValidSchema");var gs=class{static{n(this,"SchemaValidationContext")}constructor(t){this._errors=[],this.schema=t}reportError(t,r){let i=Array.isArray(r)?r.filter(Boolean):r;this._errors.push(new iv.GraphQLError(t,{nodes:i}))}getErrors(){return this._errors}};function uv(e){let t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,ue.isObjectType)(r)){var i;e.reportError(`Query root type must be Object type, it cannot be ${(0,Ne.inspect)(r)}.`,(i=Ts(t,vs.OperationTypeNode.QUERY))!==null&&i!==void 0?i:r.astNode)}let o=t.getMutationType();if(o&&!(0,ue.isObjectType)(o)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,Ne.inspect)(o)}.`,(s=Ts(t,vs.OperationTypeNode.MUTATION))!==null&&s!==void 0?s:o.astNode)}let a=t.getSubscriptionType();if(a&&!(0,ue.isObjectType)(a)){var u;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,Ne.inspect)(a)}.`,(u=Ts(t,vs.OperationTypeNode.SUBSCRIPTION))!==null&&u!==void 0?u:a.astNode)}}n(uv,"validateRootTypes");function Ts(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap(i=>{var o;return(o=i?.operationTypes)!==null&&o!==void 0?o:[]}).find(i=>i.operation===t))===null||r===void 0?void 0:r.type}n(Ts,"getOperationTypeNode");function cv(e){for(let r of e.schema.getDirectives()){if(!(0,Cl.isDirective)(r)){e.reportError(`Expected directive but got: ${(0,Ne.inspect)(r)}.`,r?.astNode);continue}Zt(e,r),r.locations.length===0&&e.reportError(`Directive @${r.name} must include 1 or more locations.`,r.astNode);for(let i of r.args)if(Zt(e,i),(0,ue.isInputType)(i.type)||e.reportError(`The type of @${r.name}(${i.name}:) must be Input Type but got: ${(0,Ne.inspect)(i.type)}.`,i.astNode),(0,ue.isRequiredArgument)(i)&&i.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${i.name}:) cannot be deprecated.`,[bs(i.astNode),(t=i.astNode)===null||t===void 0?void 0:t.type])}}}n(cv,"validateDirectives");function Zt(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}n(Zt,"validateName");function lv(e){let t=vv(e),r=e.schema.getTypeMap();for(let i of Object.values(r)){if(!(0,ue.isNamedType)(i)){e.reportError(`Expected GraphQL named type but got: ${(0,Ne.inspect)(i)}.`,i.astNode);continue}(0,ov.isIntrospectionType)(i)||Zt(e,i),(0,ue.isObjectType)(i)||(0,ue.isInterfaceType)(i)?(kl(e,i),wl(e,i)):(0,ue.isUnionType)(i)?fv(e,i):(0,ue.isEnumType)(i)?mv(e,i):(0,ue.isInputObjectType)(i)&&(yv(e,i),t(i))}}n(lv,"validateTypes");function kl(e,t){let r=Object.values(t.getFields());r.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let a of r){if(Zt(e,a),!(0,ue.isOutputType)(a.type)){var i;e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${(0,Ne.inspect)(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}for(let u of a.args){let c=u.name;if(Zt(e,u),!(0,ue.isInputType)(u.type)){var o;e.reportError(`The type of ${t.name}.${a.name}(${c}:) must be Input Type but got: ${(0,Ne.inspect)(u.type)}.`,(o=u.astNode)===null||o===void 0?void 0:o.type)}if((0,ue.isRequiredArgument)(u)&&u.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${a.name}(${c}:) cannot be deprecated.`,[bs(u.astNode),(s=u.astNode)===null||s===void 0?void 0:s.type])}}}}n(kl,"validateFields");function wl(e,t){let r=Object.create(null);for(let i of t.getInterfaces()){if(!(0,ue.isInterfaceType)(i)){e.reportError(`Type ${(0,Ne.inspect)(t)} must only implement Interface types, it cannot implement ${(0,Ne.inspect)(i)}.`,on(t,i));continue}if(t===i){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,on(t,i));continue}if(r[i.name]){e.reportError(`Type ${t.name} can only implement ${i.name} once.`,on(t,i));continue}r[i.name]=!0,dv(e,t,i),pv(e,t,i)}}n(wl,"validateInterfaces");function pv(e,t,r){let i=t.getFields();for(let c of Object.values(r.getFields())){let l=c.name,p=i[l];if(!p){e.reportError(`Interface field ${r.name}.${l} expected but ${t.name} does not provide it.`,[c.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,jl.isTypeSubTypeOf)(e.schema,p.type,c.type)){var o,s;e.reportError(`Interface field ${r.name}.${l} expects type ${(0,Ne.inspect)(c.type)} but ${t.name}.${l} is type ${(0,Ne.inspect)(p.type)}.`,[(o=c.astNode)===null||o===void 0?void 0:o.type,(s=p.astNode)===null||s===void 0?void 0:s.type])}for(let f of c.args){let m=f.name,v=p.args.find(b=>b.name===m);if(!v){e.reportError(`Interface field argument ${r.name}.${l}(${m}:) expected but ${t.name}.${l} does not provide it.`,[f.astNode,p.astNode]);continue}if(!(0,jl.isEqualType)(f.type,v.type)){var a,u;e.reportError(`Interface field argument ${r.name}.${l}(${m}:) expects type ${(0,Ne.inspect)(f.type)} but ${t.name}.${l}(${m}:) is type ${(0,Ne.inspect)(v.type)}.`,[(a=f.astNode)===null||a===void 0?void 0:a.type,(u=v.astNode)===null||u===void 0?void 0:u.type])}}for(let f of p.args){let m=f.name;!c.args.find(b=>b.name===m)&&(0,ue.isRequiredArgument)(f)&&e.reportError(`Object field ${t.name}.${l} includes required argument ${m} that is missing from the Interface field ${r.name}.${l}.`,[f.astNode,c.astNode])}}}n(pv,"validateTypeImplementsInterface");function dv(e,t,r){let i=t.getInterfaces();for(let o of r.getInterfaces())i.includes(o)||e.reportError(o===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${o.name} because it is implemented by ${r.name}.`,[...on(r,o),...on(t,r)])}n(dv,"validateTypeImplementsAncestors");function fv(e,t){let r=t.getTypes();r.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let i=Object.create(null);for(let o of r){if(i[o.name]){e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,Fl(t,o.name));continue}i[o.name]=!0,(0,ue.isObjectType)(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,Ne.inspect)(o)}.`,Fl(t,String(o)))}}n(fv,"validateUnionMembers");function mv(e,t){let r=t.getValues();r.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let i of r)Zt(e,i)}n(mv,"validateEnumValues");function yv(e,t){let r=Object.values(t.getFields());r.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let s of r){if(Zt(e,s),!(0,ue.isInputType)(s.type)){var i;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${(0,Ne.inspect)(s.type)}.`,(i=s.astNode)===null||i===void 0?void 0:i.type)}if((0,ue.isRequiredInputField)(s)&&s.deprecationReason!=null){var o;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[bs(s.astNode),(o=s.astNode)===null||o===void 0?void 0:o.type])}t.isOneOf&&hv(t,s,e)}}n(yv,"validateInputFields");function hv(e,t,r){if((0,ue.isNonNullType)(t.type)){var i;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(i=t.astNode)===null||i===void 0?void 0:i.type)}t.defaultValue!==void 0&&r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}n(hv,"validateOneOfInputObjectField");function vv(e){let t=Object.create(null),r=[],i=Object.create(null);return o;function o(s){if(t[s.name])return;t[s.name]=!0,i[s.name]=r.length;let a=Object.values(s.getFields());for(let u of a)if((0,ue.isNonNullType)(u.type)&&(0,ue.isInputObjectType)(u.type.ofType)){let c=u.type.ofType,l=i[c.name];if(r.push(u),l===void 0)o(c);else{let p=r.slice(l),f=p.map(m=>m.name).join(".");e.reportError(`Cannot reference Input Object "${c.name}" within itself through a series of non-null fields: "${f}".`,p.map(m=>m.astNode))}r.pop()}i[s.name]=void 0}}n(vv,"createInputObjectCircularRefsValidator");function on(e,t){let{astNode:r,extensionASTNodes:i}=e;return(r!=null?[r,...i]:i).flatMap(s=>{var a;return(a=s.interfaces)!==null&&a!==void 0?a:[]}).filter(s=>s.name.value===t.name)}n(on,"getAllImplementsInterfaceNodes");function Fl(e,t){let{astNode:r,extensionASTNodes:i}=e;return(r!=null?[r,...i]:i).flatMap(s=>{var a;return(a=s.types)!==null&&a!==void 0?a:[]}).filter(s=>s.name.value===t)}n(Fl,"getUnionMemberTypeNodes");function bs(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(r=>r.name.value===Cl.GraphQLDeprecatedDirective.name)}n(bs,"getDeprecatedDirectiveNode")});var ut=y(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.typeFromAST=Es;var _s=G(),Vl=U();function Es(e,t){switch(t.kind){case _s.Kind.LIST_TYPE:{let r=Es(e,t.type);return r&&new Vl.GraphQLList(r)}case _s.Kind.NON_NULL_TYPE:{let r=Es(e,t.type);return r&&new Vl.GraphQLNonNull(r)}case _s.Kind.NAMED_TYPE:return e.getType(t.name.value)}}n(Es,"typeFromAST")});var Ei=y(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.TypeInfo=void 0;an.visitWithTypeInfo=bv;var Tv=Ce(),ce=G(),ql=Bt(),le=U(),Tr=Me(),Ml=ut(),Ns=class{static{n(this,"TypeInfo")}constructor(t,r,i){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=i??gv,r&&((0,le.isInputType)(r)&&this._inputTypeStack.push(r),(0,le.isCompositeType)(r)&&this._parentTypeStack.push(r),(0,le.isOutputType)(r)&&this._typeStack.push(r))}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(t){let r=this._schema;switch(t.kind){case ce.Kind.SELECTION_SET:{let o=(0,le.getNamedType)(this.getType());this._parentTypeStack.push((0,le.isCompositeType)(o)?o:void 0);break}case ce.Kind.FIELD:{let o=this.getParentType(),s,a;o&&(s=this._getFieldDef(r,o,t),s&&(a=s.type)),this._fieldDefStack.push(s),this._typeStack.push((0,le.isOutputType)(a)?a:void 0);break}case ce.Kind.DIRECTIVE:this._directive=r.getDirective(t.name.value);break;case ce.Kind.OPERATION_DEFINITION:{let o=r.getRootType(t.operation);this._typeStack.push((0,le.isObjectType)(o)?o:void 0);break}case ce.Kind.INLINE_FRAGMENT:case ce.Kind.FRAGMENT_DEFINITION:{let o=t.typeCondition,s=o?(0,Ml.typeFromAST)(r,o):(0,le.getNamedType)(this.getType());this._typeStack.push((0,le.isOutputType)(s)?s:void 0);break}case ce.Kind.VARIABLE_DEFINITION:{let o=(0,Ml.typeFromAST)(r,t.type);this._inputTypeStack.push((0,le.isInputType)(o)?o:void 0);break}case ce.Kind.ARGUMENT:{var i;let o,s,a=(i=this.getDirective())!==null&&i!==void 0?i:this.getFieldDef();a&&(o=a.args.find(u=>u.name===t.name.value),o&&(s=o.type)),this._argument=o,this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,le.isInputType)(s)?s:void 0);break}case ce.Kind.LIST:{let o=(0,le.getNullableType)(this.getInputType()),s=(0,le.isListType)(o)?o.ofType:o;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,le.isInputType)(s)?s:void 0);break}case ce.Kind.OBJECT_FIELD:{let o=(0,le.getNamedType)(this.getInputType()),s,a;(0,le.isInputObjectType)(o)&&(a=o.getFields()[t.name.value],a&&(s=a.type)),this._defaultValueStack.push(a?a.defaultValue:void 0),this._inputTypeStack.push((0,le.isInputType)(s)?s:void 0);break}case ce.Kind.ENUM:{let o=(0,le.getNamedType)(this.getInputType()),s;(0,le.isEnumType)(o)&&(s=o.getValue(t.value)),this._enumValue=s;break}default:}}leave(t){switch(t.kind){case ce.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case ce.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case ce.Kind.DIRECTIVE:this._directive=null;break;case ce.Kind.OPERATION_DEFINITION:case ce.Kind.INLINE_FRAGMENT:case ce.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case ce.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case ce.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case ce.Kind.LIST:case ce.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case ce.Kind.ENUM:this._enumValue=null;break;default:}}};an.TypeInfo=Ns;function gv(e,t,r){let i=r.name.value;if(i===Tr.SchemaMetaFieldDef.name&&e.getQueryType()===t)return Tr.SchemaMetaFieldDef;if(i===Tr.TypeMetaFieldDef.name&&e.getQueryType()===t)return Tr.TypeMetaFieldDef;if(i===Tr.TypeNameMetaFieldDef.name&&(0,le.isCompositeType)(t))return Tr.TypeNameMetaFieldDef;if((0,le.isObjectType)(t)||(0,le.isInterfaceType)(t))return t.getFields()[i]}n(gv,"getFieldDef");function bv(e,t){return{enter(...r){let i=r[0];e.enter(i);let o=(0,ql.getEnterLeaveForKind)(t,i.kind).enter;if(o){let s=o.apply(t,r);return s!==void 0&&(e.leave(i),(0,Tv.isNode)(s)&&e.enter(s)),s}},leave(...r){let i=r[0],o=(0,ql.getEnterLeaveForKind)(t,i.kind).leave,s;return o&&(s=o.apply(t,r)),e.leave(i),s}}}n(bv,"visitWithTypeInfo")});var er=y(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.isConstValueNode=Is;je.isDefinitionNode=_v;je.isExecutableDefinitionNode=Gl;je.isSchemaCoordinateNode=Nv;je.isSelectionNode=Ev;je.isTypeDefinitionNode=$l;je.isTypeExtensionNode=Bl;je.isTypeNode=Ov;je.isTypeSystemDefinitionNode=Ql;je.isTypeSystemExtensionNode=Kl;je.isValueNode=Ul;var x=G();function _v(e){return Gl(e)||Ql(e)||Kl(e)}n(_v,"isDefinitionNode");function Gl(e){return e.kind===x.Kind.OPERATION_DEFINITION||e.kind===x.Kind.FRAGMENT_DEFINITION}n(Gl,"isExecutableDefinitionNode");function Ev(e){return e.kind===x.Kind.FIELD||e.kind===x.Kind.FRAGMENT_SPREAD||e.kind===x.Kind.INLINE_FRAGMENT}n(Ev,"isSelectionNode");function Ul(e){return e.kind===x.Kind.VARIABLE||e.kind===x.Kind.INT||e.kind===x.Kind.FLOAT||e.kind===x.Kind.STRING||e.kind===x.Kind.BOOLEAN||e.kind===x.Kind.NULL||e.kind===x.Kind.ENUM||e.kind===x.Kind.LIST||e.kind===x.Kind.OBJECT}n(Ul,"isValueNode");function Is(e){return Ul(e)&&(e.kind===x.Kind.LIST?e.values.some(Is):e.kind===x.Kind.OBJECT?e.fields.some(t=>Is(t.value)):e.kind!==x.Kind.VARIABLE)}n(Is,"isConstValueNode");function Ov(e){return e.kind===x.Kind.NAMED_TYPE||e.kind===x.Kind.LIST_TYPE||e.kind===x.Kind.NON_NULL_TYPE}n(Ov,"isTypeNode");function Ql(e){return e.kind===x.Kind.SCHEMA_DEFINITION||$l(e)||e.kind===x.Kind.DIRECTIVE_DEFINITION}n(Ql,"isTypeSystemDefinitionNode");function $l(e){return e.kind===x.Kind.SCALAR_TYPE_DEFINITION||e.kind===x.Kind.OBJECT_TYPE_DEFINITION||e.kind===x.Kind.INTERFACE_TYPE_DEFINITION||e.kind===x.Kind.UNION_TYPE_DEFINITION||e.kind===x.Kind.ENUM_TYPE_DEFINITION||e.kind===x.Kind.INPUT_OBJECT_TYPE_DEFINITION}n($l,"isTypeDefinitionNode");function Kl(e){return e.kind===x.Kind.SCHEMA_EXTENSION||Bl(e)}n(Kl,"isTypeSystemExtensionNode");function Bl(e){return e.kind===x.Kind.SCALAR_TYPE_EXTENSION||e.kind===x.Kind.OBJECT_TYPE_EXTENSION||e.kind===x.Kind.INTERFACE_TYPE_EXTENSION||e.kind===x.Kind.UNION_TYPE_EXTENSION||e.kind===x.Kind.ENUM_TYPE_EXTENSION||e.kind===x.Kind.INPUT_OBJECT_TYPE_EXTENSION}n(Bl,"isTypeExtensionNode");function Nv(e){return e.kind===x.Kind.TYPE_COORDINATE||e.kind===x.Kind.MEMBER_COORDINATE||e.kind===x.Kind.ARGUMENT_COORDINATE||e.kind===x.Kind.DIRECTIVE_COORDINATE||e.kind===x.Kind.DIRECTIVE_ARGUMENT_COORDINATE}n(Nv,"isSchemaCoordinateNode")});var Ls=y(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.ExecutableDefinitionsRule=Lv;var Iv=A(),Yl=G(),Sv=er();function Lv(e){return{Document(t){for(let r of t.definitions)if(!(0,Sv.isExecutableDefinitionNode)(r)){let i=r.kind===Yl.Kind.SCHEMA_DEFINITION||r.kind===Yl.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new Iv.GraphQLError(`The ${i} definition is not executable.`,{nodes:r}))}return!1}}}n(Lv,"ExecutableDefinitionsRule")});var As=y(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.FieldsOnCorrectTypeRule=Rv;var Hl=kt(),Dv=Qr(),Av=Ft(),Pv=A(),un=U();function Rv(e){return{Field(t){let r=e.getParentType();if(r&&!e.getFieldDef()){let o=e.getSchema(),s=t.name.value,a=(0,Hl.didYouMean)("to use an inline fragment on",jv(o,r,s));a===""&&(a=(0,Hl.didYouMean)(kv(r,s))),e.reportError(new Pv.GraphQLError(`Cannot query field "${s}" on type "${r.name}".`+a,{nodes:t}))}}}}n(Rv,"FieldsOnCorrectTypeRule");function jv(e,t,r){if(!(0,un.isAbstractType)(t))return[];let i=new Set,o=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[r]){i.add(a),o[a.name]=1;for(let u of a.getInterfaces()){var s;u.getFields()[r]&&(i.add(u),o[u.name]=((s=o[u.name])!==null&&s!==void 0?s:0)+1)}}return[...i].sort((a,u)=>{let c=o[u.name]-o[a.name];return c!==0?c:(0,un.isInterfaceType)(a)&&e.isSubType(a,u)?-1:(0,un.isInterfaceType)(u)&&e.isSubType(u,a)?1:(0,Dv.naturalCompare)(a.name,u.name)}).map(a=>a.name)}n(jv,"getSuggestedTypeNames");function kv(e,t){if((0,un.isObjectType)(e)||(0,un.isInterfaceType)(e)){let r=Object.keys(e.getFields());return(0,Av.suggestionList)(t,r)}return[]}n(kv,"getSuggestedFieldNames")});var Rs=y(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.FragmentsOnCompositeTypesRule=wv;var Jl=A(),Wl=Re(),zl=U(),Xl=ut();function wv(e){return{InlineFragment(t){let r=t.typeCondition;if(r){let i=(0,Xl.typeFromAST)(e.getSchema(),r);if(i&&!(0,zl.isCompositeType)(i)){let o=(0,Wl.print)(r);e.reportError(new Jl.GraphQLError(`Fragment cannot condition on non composite type "${o}".`,{nodes:r}))}}},FragmentDefinition(t){let r=(0,Xl.typeFromAST)(e.getSchema(),t.typeCondition);if(r&&!(0,zl.isCompositeType)(r)){let i=(0,Wl.print)(t.typeCondition);e.reportError(new Jl.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${i}".`,{nodes:t.typeCondition}))}}}}n(wv,"FragmentsOnCompositeTypesRule")});var js=y(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.KnownArgumentNamesOnDirectivesRule=rp;Oi.KnownArgumentNamesRule=xv;var Zl=kt(),ep=Ft(),tp=A(),Fv=G(),Cv=Le();function xv(e){return{...rp(e),Argument(t){let r=e.getArgument(),i=e.getFieldDef(),o=e.getParentType();if(!r&&i&&o){let s=t.name.value,a=i.args.map(c=>c.name),u=(0,ep.suggestionList)(s,a);e.reportError(new tp.GraphQLError(`Unknown argument "${s}" on field "${o.name}.${i.name}".`+(0,Zl.didYouMean)(u),{nodes:t}))}}}}n(xv,"KnownArgumentNamesRule");function rp(e){let t=Object.create(null),r=e.getSchema(),i=r?r.getDirectives():Cv.specifiedDirectives;for(let a of i)t[a.name]=a.args.map(u=>u.name);let o=e.getDocument().definitions;for(let a of o)if(a.kind===Fv.Kind.DIRECTIVE_DEFINITION){var s;let u=(s=a.arguments)!==null&&s!==void 0?s:[];t[a.name.value]=u.map(c=>c.name.value)}return{Directive(a){let u=a.name.value,c=t[u];if(a.arguments&&c)for(let l of a.arguments){let p=l.name.value;if(!c.includes(p)){let f=(0,ep.suggestionList)(p,c);e.reportError(new tp.GraphQLError(`Unknown argument "${p}" on directive "@${u}".`+(0,Zl.didYouMean)(f),{nodes:l}))}}return!1}}}n(rp,"KnownArgumentNamesOnDirectivesRule")});var Cs=y(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.KnownDirectivesRule=Mv;var Vv=H(),ks=Ee(),np=A(),ws=Ce(),Te=pr(),re=G(),qv=Le();function Mv(e){let t=Object.create(null),r=e.getSchema(),i=r?r.getDirectives():qv.specifiedDirectives;for(let s of i)t[s.name]=s.locations;let o=e.getDocument().definitions;for(let s of o)s.kind===re.Kind.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(a=>a.value));return{Directive(s,a,u,c,l){let p=s.name.value,f=t[p];if(!f){e.reportError(new np.GraphQLError(`Unknown directive "@${p}".`,{nodes:s}));return}let m=Gv(l);m&&!f.includes(m)&&e.reportError(new np.GraphQLError(`Directive "@${p}" may not be used on ${m}.`,{nodes:s}))}}}n(Mv,"KnownDirectivesRule");function Gv(e){let t=e[e.length-1];switch("kind"in t||(0,ks.invariant)(!1),t.kind){case re.Kind.OPERATION_DEFINITION:return Uv(t.operation);case re.Kind.FIELD:return Te.DirectiveLocation.FIELD;case re.Kind.FRAGMENT_SPREAD:return Te.DirectiveLocation.FRAGMENT_SPREAD;case re.Kind.INLINE_FRAGMENT:return Te.DirectiveLocation.INLINE_FRAGMENT;case re.Kind.FRAGMENT_DEFINITION:return Te.DirectiveLocation.FRAGMENT_DEFINITION;case re.Kind.VARIABLE_DEFINITION:return Te.DirectiveLocation.VARIABLE_DEFINITION;case re.Kind.SCHEMA_DEFINITION:case re.Kind.SCHEMA_EXTENSION:return Te.DirectiveLocation.SCHEMA;case re.Kind.SCALAR_TYPE_DEFINITION:case re.Kind.SCALAR_TYPE_EXTENSION:return Te.DirectiveLocation.SCALAR;case re.Kind.OBJECT_TYPE_DEFINITION:case re.Kind.OBJECT_TYPE_EXTENSION:return Te.DirectiveLocation.OBJECT;case re.Kind.FIELD_DEFINITION:return Te.DirectiveLocation.FIELD_DEFINITION;case re.Kind.INTERFACE_TYPE_DEFINITION:case re.Kind.INTERFACE_TYPE_EXTENSION:return Te.DirectiveLocation.INTERFACE;case re.Kind.UNION_TYPE_DEFINITION:case re.Kind.UNION_TYPE_EXTENSION:return Te.DirectiveLocation.UNION;case re.Kind.ENUM_TYPE_DEFINITION:case re.Kind.ENUM_TYPE_EXTENSION:return Te.DirectiveLocation.ENUM;case re.Kind.ENUM_VALUE_DEFINITION:return Te.DirectiveLocation.ENUM_VALUE;case re.Kind.INPUT_OBJECT_TYPE_DEFINITION:case re.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Te.DirectiveLocation.INPUT_OBJECT;case re.Kind.INPUT_VALUE_DEFINITION:{let r=e[e.length-3];return"kind"in r||(0,ks.invariant)(!1),r.kind===re.Kind.INPUT_OBJECT_TYPE_DEFINITION?Te.DirectiveLocation.INPUT_FIELD_DEFINITION:Te.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,ks.invariant)(!1,"Unexpected kind: "+(0,Vv.inspect)(t.kind))}}n(Gv,"getDirectiveLocationForASTPath");function Uv(e){switch(e){case ws.OperationTypeNode.QUERY:return Te.DirectiveLocation.QUERY;case ws.OperationTypeNode.MUTATION:return Te.DirectiveLocation.MUTATION;case ws.OperationTypeNode.SUBSCRIPTION:return Te.DirectiveLocation.SUBSCRIPTION}}n(Uv,"getDirectiveLocationForOperation")});var Vs=y(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.KnownFragmentNamesRule=$v;var Qv=A();function $v(e){return{FragmentSpread(t){let r=t.name.value;e.getFragment(r)||e.reportError(new Qv.GraphQLError(`Unknown fragment "${r}".`,{nodes:t.name}))}}}n($v,"KnownFragmentNamesRule")});var Gs=y(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.KnownTypeNamesRule=Wv;var Kv=kt(),Bv=Ft(),Yv=A(),qs=er(),Hv=Me(),Jv=at();function Wv(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),i=Object.create(null);for(let s of e.getDocument().definitions)(0,qs.isTypeDefinitionNode)(s)&&(i[s.name.value]=!0);let o=[...Object.keys(r),...Object.keys(i)];return{NamedType(s,a,u,c,l){let p=s.name.value;if(!r[p]&&!i[p]){var f;let m=(f=l[2])!==null&&f!==void 0?f:u,v=m!=null&&zv(m);if(v&&ip.includes(p))return;let b=(0,Bv.suggestionList)(p,v?ip.concat(o):o);e.reportError(new Yv.GraphQLError(`Unknown type "${p}".`+(0,Kv.didYouMean)(b),{nodes:s}))}}}}n(Wv,"KnownTypeNamesRule");var ip=[...Jv.specifiedScalarTypes,...Hv.introspectionTypes].map(e=>e.name);function zv(e){return"kind"in e&&((0,qs.isTypeSystemDefinitionNode)(e)||(0,qs.isTypeSystemExtensionNode)(e))}n(zv,"isSDLNode")});var Qs=y(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.LoneAnonymousOperationRule=eT;var Xv=A(),Zv=G();function eT(e){let t=0;return{Document(r){t=r.definitions.filter(i=>i.kind===Zv.Kind.OPERATION_DEFINITION).length},OperationDefinition(r){!r.name&&t>1&&e.reportError(new Xv.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:r}))}}}n(eT,"LoneAnonymousOperationRule")});var Ks=y($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.LoneSchemaDefinitionRule=tT;var op=A();function tT(e){var t,r,i;let o=e.getSchema(),s=(t=(r=(i=o?.astNode)!==null&&i!==void 0?i:o?.getQueryType())!==null&&r!==void 0?r:o?.getMutationType())!==null&&t!==void 0?t:o?.getSubscriptionType(),a=0;return{SchemaDefinition(u){if(s){e.reportError(new op.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:u}));return}a>0&&e.reportError(new op.GraphQLError("Must provide only one schema definition.",{nodes:u})),++a}}}n(tT,"LoneSchemaDefinitionRule")});var Ys=y(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.MaxIntrospectionDepthRule=iT;var rT=A(),sp=G(),nT=3;function iT(e){function t(r,i=Object.create(null),o=0){if(r.kind===sp.Kind.FRAGMENT_SPREAD){let s=r.name.value;if(i[s]===!0)return!1;let a=e.getFragment(s);if(!a)return!1;try{return i[s]=!0,t(a,i,o)}finally{i[s]=void 0}}if(r.kind===sp.Kind.FIELD&&(r.name.value==="fields"||r.name.value==="interfaces"||r.name.value==="possibleTypes"||r.name.value==="inputFields")&&(o++,o>=nT))return!0;if("selectionSet"in r&&r.selectionSet){for(let s of r.selectionSet.selections)if(t(s,i,o))return!0}return!1}return n(t,"checkDepth"),{Field(r){if((r.name.value==="__schema"||r.name.value==="__type")&&t(r))return e.reportError(new rT.GraphQLError("Maximum introspection depth exceeded",{nodes:[r]})),!1}}}n(iT,"MaxIntrospectionDepthRule")});var Js=y(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.NoFragmentCyclesRule=sT;var oT=A();function sT(e){let t=Object.create(null),r=[],i=Object.create(null);return{OperationDefinition:n(()=>!1,"OperationDefinition"),FragmentDefinition(s){return o(s),!1}};function o(s){if(t[s.name.value])return;let a=s.name.value;t[a]=!0;let u=e.getFragmentSpreads(s.selectionSet);if(u.length!==0){i[a]=r.length;for(let c of u){let l=c.name.value,p=i[l];if(r.push(c),p===void 0){let f=e.getFragment(l);f&&o(f)}else{let f=r.slice(p),m=f.slice(0,-1).map(v=>'"'+v.name.value+'"').join(", ");e.reportError(new oT.GraphQLError(`Cannot spread fragment "${l}" within itself`+(m!==""?` via ${m}.`:"."),{nodes:f}))}r.pop()}i[a]=void 0}}}n(sT,"NoFragmentCyclesRule")});var zs=y(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.NoUndefinedVariablesRule=uT;var aT=A();function uT(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){let i=e.getRecursiveVariableUsages(r);for(let{node:o}of i){let s=o.name.value;t[s]!==!0&&e.reportError(new aT.GraphQLError(r.name?`Variable "$${s}" is not defined by operation "${r.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[o,r]}))}}},VariableDefinition(r){t[r.variable.name.value]=!0}}}n(uT,"NoUndefinedVariablesRule")});var Zs=y(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.NoUnusedFragmentsRule=lT;var cT=A();function lT(e){let t=[],r=[];return{OperationDefinition(i){return t.push(i),!1},FragmentDefinition(i){return r.push(i),!1},Document:{leave(){let i=Object.create(null);for(let o of t)for(let s of e.getRecursivelyReferencedFragments(o))i[s.name.value]=!0;for(let o of r){let s=o.name.value;i[s]!==!0&&e.reportError(new cT.GraphQLError(`Fragment "${s}" is never used.`,{nodes:o}))}}}}}n(lT,"NoUnusedFragmentsRule")});var ta=y(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.NoUnusedVariablesRule=dT;var pT=A();function dT(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){let i=Object.create(null),o=e.getRecursiveVariableUsages(r);for(let{node:s}of o)i[s.name.value]=!0;for(let s of t){let a=s.variable.name.value;i[a]!==!0&&e.reportError(new pT.GraphQLError(r.name?`Variable "$${a}" is never used in operation "${r.name.value}".`:`Variable "$${a}" is never used.`,{nodes:s}))}}},VariableDefinition(r){t.push(r)}}}n(dT,"NoUnusedVariablesRule")});var ia=y(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.sortValueNode=ra;var fT=Qr(),Tt=G();function ra(e){switch(e.kind){case Tt.Kind.OBJECT:return{...e,fields:mT(e.fields)};case Tt.Kind.LIST:return{...e,values:e.values.map(ra)};case Tt.Kind.INT:case Tt.Kind.FLOAT:case Tt.Kind.STRING:case Tt.Kind.BOOLEAN:case Tt.Kind.NULL:case Tt.Kind.ENUM:case Tt.Kind.VARIABLE:return e}}n(ra,"sortValueNode");function mT(e){return e.map(t=>({...t,value:ra(t.value)})).sort((t,r)=>(0,fT.naturalCompare)(t.name.value,r.name.value))}n(mT,"sortFields")});var pa=y(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.OverlappingFieldsCanBeMergedRule=TT;var ap=H(),yT=A(),oa=G(),hT=Re(),De=U(),vT=ia(),cp=ut();function lp(e){return Array.isArray(e)?e.map(([t,r])=>`subfields "${t}" conflict because `+lp(r)).join(" and "):e}n(lp,"reasonMessage");function TT(e){let t=new Li,r=new ua,i=new Map;return{SelectionSet(o){let s=gT(e,i,t,r,e.getParentType(),o);for(let[[a,u],c,l]of s){let p=lp(u);e.reportError(new yT.GraphQLError(`Fields "${a}" conflict because ${p}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:c.concat(l)}))}}}}n(TT,"OverlappingFieldsCanBeMergedRule");function gT(e,t,r,i,o,s){let a=[],[u,c]=Si(e,t,o,s);if(_T(e,a,t,r,i,u),c.length!==0)for(let l=0;l<c.length;l++){Ni(e,a,t,r,i,!1,u,c[l]);for(let p=l+1;p<c.length;p++)Ii(e,a,t,r,i,!1,c[l],c[p])}return a}n(gT,"findConflictsWithinSelectionSet");function Ni(e,t,r,i,o,s,a,u){if(i.has(a,u,s))return;i.add(a,u,s);let c=e.getFragment(u);if(!c)return;let[l,p]=aa(e,r,c);if(a!==l){ca(e,t,r,i,o,s,a,l);for(let f of p)Ni(e,t,r,i,o,s,a,f)}}n(Ni,"collectConflictsBetweenFieldsAndFragment");function Ii(e,t,r,i,o,s,a,u){if(a===u||o.has(a,u,s))return;o.add(a,u,s);let c=e.getFragment(a),l=e.getFragment(u);if(!c||!l)return;let[p,f]=aa(e,r,c),[m,v]=aa(e,r,l);ca(e,t,r,i,o,s,p,m);for(let b of v)Ii(e,t,r,i,o,s,a,b);for(let b of f)Ii(e,t,r,i,o,s,b,u)}n(Ii,"collectConflictsBetweenFragments");function bT(e,t,r,i,o,s,a,u,c){let l=[],[p,f]=Si(e,t,s,a),[m,v]=Si(e,t,u,c);ca(e,l,t,r,i,o,p,m);for(let b of v)Ni(e,l,t,r,i,o,p,b);for(let b of f)Ni(e,l,t,r,i,o,m,b);for(let b of f)for(let V of v)Ii(e,l,t,r,i,o,b,V);return l}n(bT,"findConflictsBetweenSubSelectionSets");function _T(e,t,r,i,o,s){for(let[a,u]of Object.entries(s))if(u.length>1)for(let c=0;c<u.length;c++)for(let l=c+1;l<u.length;l++){let p=pp(e,r,i,o,!1,a,u[c],u[l]);p&&t.push(p)}}n(_T,"collectConflictsWithin");function ca(e,t,r,i,o,s,a,u){for(let[c,l]of Object.entries(a)){let p=u[c];if(p)for(let f of l)for(let m of p){let v=pp(e,r,i,o,s,c,f,m);v&&t.push(v)}}}n(ca,"collectConflictsBetween");function pp(e,t,r,i,o,s,a,u){let[c,l,p]=a,[f,m,v]=u,b=o||c!==f&&(0,De.isObjectType)(c)&&(0,De.isObjectType)(f);if(!b){let ie=l.name.value,ge=m.name.value;if(ie!==ge)return[[s,`"${ie}" and "${ge}" are different fields`],[l],[m]];if(!ET(l,m))return[[s,"they have differing arguments"],[l],[m]]}let V=p?.type,J=v?.type;if(V&&J&&sa(V,J))return[[s,`they return conflicting types "${(0,ap.inspect)(V)}" and "${(0,ap.inspect)(J)}"`],[l],[m]];let z=l.selectionSet,ne=m.selectionSet;if(z&&ne){let ie=bT(e,t,r,i,b,(0,De.getNamedType)(V),z,(0,De.getNamedType)(J),ne);return OT(ie,s,l,m)}}n(pp,"findConflict");function ET(e,t){let r=e.arguments,i=t.arguments;if(r===void 0||r.length===0)return i===void 0||i.length===0;if(i===void 0||i.length===0||r.length!==i.length)return!1;let o=new Map(i.map(({name:s,value:a})=>[s.value,a]));return r.every(s=>{let a=s.value,u=o.get(s.name.value);return u===void 0?!1:up(a)===up(u)})}n(ET,"sameArguments");function up(e){return(0,hT.print)((0,vT.sortValueNode)(e))}n(up,"stringifyValue");function sa(e,t){return(0,De.isListType)(e)?(0,De.isListType)(t)?sa(e.ofType,t.ofType):!0:(0,De.isListType)(t)?!0:(0,De.isNonNullType)(e)?(0,De.isNonNullType)(t)?sa(e.ofType,t.ofType):!0:(0,De.isNonNullType)(t)?!0:(0,De.isLeafType)(e)||(0,De.isLeafType)(t)?e!==t:!1}n(sa,"doTypesConflict");function Si(e,t,r,i){let o=t.get(i);if(o)return o;let s=Object.create(null),a=Object.create(null);dp(e,r,i,s,a);let u=[s,Object.keys(a)];return t.set(i,u),u}n(Si,"getFieldsAndFragmentNames");function aa(e,t,r){let i=t.get(r.selectionSet);if(i)return i;let o=(0,cp.typeFromAST)(e.getSchema(),r.typeCondition);return Si(e,t,o,r.selectionSet)}n(aa,"getReferencedFieldsAndFragmentNames");function dp(e,t,r,i,o){for(let s of r.selections)switch(s.kind){case oa.Kind.FIELD:{let a=s.name.value,u;((0,De.isObjectType)(t)||(0,De.isInterfaceType)(t))&&(u=t.getFields()[a]);let c=s.alias?s.alias.value:a;i[c]||(i[c]=[]),i[c].push([t,s,u]);break}case oa.Kind.FRAGMENT_SPREAD:o[s.name.value]=!0;break;case oa.Kind.INLINE_FRAGMENT:{let a=s.typeCondition,u=a?(0,cp.typeFromAST)(e.getSchema(),a):t;dp(e,u,s.selectionSet,i,o);break}}}n(dp,"_collectFieldsAndFragmentNames");function OT(e,t,r,i){if(e.length>0)return[[t,e.map(([o])=>o)],[r,...e.map(([,o])=>o).flat()],[i,...e.map(([,,o])=>o).flat()]]}n(OT,"subfieldConflicts");var Li=class{static{n(this,"OrderedPairSet")}constructor(){this._data=new Map}has(t,r,i){var o;let s=(o=this._data.get(t))===null||o===void 0?void 0:o.get(r);return s===void 0?!1:i?!0:i===s}add(t,r,i){let o=this._data.get(t);o===void 0?this._data.set(t,new Map([[r,i]])):o.set(r,i)}},ua=class{static{n(this,"PairSet")}constructor(){this._orderedPairSet=new Li}has(t,r,i){return t<r?this._orderedPairSet.has(t,r,i):this._orderedPairSet.has(r,t,i)}add(t,r,i){t<r?this._orderedPairSet.add(t,r,i):this._orderedPairSet.add(r,t,i)}}});var ma=y(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.PossibleFragmentSpreadsRule=IT;var Di=H(),fp=A(),da=U(),mp=Jr(),NT=ut();function IT(e){return{InlineFragment(t){let r=e.getType(),i=e.getParentType();if((0,da.isCompositeType)(r)&&(0,da.isCompositeType)(i)&&!(0,mp.doTypesOverlap)(e.getSchema(),r,i)){let o=(0,Di.inspect)(i),s=(0,Di.inspect)(r);e.reportError(new fp.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:t}))}},FragmentSpread(t){let r=t.name.value,i=ST(e,r),o=e.getParentType();if(i&&o&&!(0,mp.doTypesOverlap)(e.getSchema(),i,o)){let s=(0,Di.inspect)(o),a=(0,Di.inspect)(i);e.reportError(new fp.GraphQLError(`Fragment "${r}" cannot be spread here as objects of type "${s}" can never be of type "${a}".`,{nodes:t}))}}}}n(IT,"PossibleFragmentSpreadsRule");function ST(e,t){let r=e.getFragment(t);if(r){let i=(0,NT.typeFromAST)(e.getSchema(),r.typeCondition);if((0,da.isCompositeType)(i))return i}}n(ST,"getFragmentType")});var ha=y(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.PossibleTypeExtensionsRule=PT;var LT=kt(),hp=H(),vp=Ee(),DT=Ft(),yp=A(),se=G(),AT=er(),gr=U();function PT(e){let t=e.getSchema(),r=Object.create(null);for(let o of e.getDocument().definitions)(0,AT.isTypeDefinitionNode)(o)&&(r[o.name.value]=o);return{ScalarTypeExtension:i,ObjectTypeExtension:i,InterfaceTypeExtension:i,UnionTypeExtension:i,EnumTypeExtension:i,InputObjectTypeExtension:i};function i(o){let s=o.name.value,a=r[s],u=t?.getType(s),c;if(a?c=RT[a.kind]:u&&(c=jT(u)),c){if(c!==o.kind){let l=kT(o.kind);e.reportError(new yp.GraphQLError(`Cannot extend non-${l} type "${s}".`,{nodes:a?[a,o]:o}))}}else{let l=Object.keys({...r,...t?.getTypeMap()}),p=(0,DT.suggestionList)(s,l);e.reportError(new yp.GraphQLError(`Cannot extend type "${s}" because it is not defined.`+(0,LT.didYouMean)(p),{nodes:o.name}))}}}n(PT,"PossibleTypeExtensionsRule");var RT={[se.Kind.SCALAR_TYPE_DEFINITION]:se.Kind.SCALAR_TYPE_EXTENSION,[se.Kind.OBJECT_TYPE_DEFINITION]:se.Kind.OBJECT_TYPE_EXTENSION,[se.Kind.INTERFACE_TYPE_DEFINITION]:se.Kind.INTERFACE_TYPE_EXTENSION,[se.Kind.UNION_TYPE_DEFINITION]:se.Kind.UNION_TYPE_EXTENSION,[se.Kind.ENUM_TYPE_DEFINITION]:se.Kind.ENUM_TYPE_EXTENSION,[se.Kind.INPUT_OBJECT_TYPE_DEFINITION]:se.Kind.INPUT_OBJECT_TYPE_EXTENSION};function jT(e){if((0,gr.isScalarType)(e))return se.Kind.SCALAR_TYPE_EXTENSION;if((0,gr.isObjectType)(e))return se.Kind.OBJECT_TYPE_EXTENSION;if((0,gr.isInterfaceType)(e))return se.Kind.INTERFACE_TYPE_EXTENSION;if((0,gr.isUnionType)(e))return se.Kind.UNION_TYPE_EXTENSION;if((0,gr.isEnumType)(e))return se.Kind.ENUM_TYPE_EXTENSION;if((0,gr.isInputObjectType)(e))return se.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,vp.invariant)(!1,"Unexpected type: "+(0,hp.inspect)(e))}n(jT,"typeToExtKind");function kT(e){switch(e){case se.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case se.Kind.OBJECT_TYPE_EXTENSION:return"object";case se.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case se.Kind.UNION_TYPE_EXTENSION:return"union";case se.Kind.ENUM_TYPE_EXTENSION:return"enum";case se.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,vp.invariant)(!1,"Unexpected kind: "+(0,hp.inspect)(e))}}n(kT,"extensionKindToTypeName")});var Ta=y(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.ProvidedRequiredArgumentsOnDirectivesRule=Ep;Ai.ProvidedRequiredArgumentsRule=CT;var gp=H(),Tp=wt(),bp=A(),_p=G(),wT=Re(),va=U(),FT=Le();function CT(e){return{...Ep(e),Field:{leave(t){var r;let i=e.getFieldDef();if(!i)return!1;let o=new Set((r=t.arguments)===null||r===void 0?void 0:r.map(s=>s.name.value));for(let s of i.args)if(!o.has(s.name)&&(0,va.isRequiredArgument)(s)){let a=(0,gp.inspect)(s.type);e.reportError(new bp.GraphQLError(`Field "${i.name}" argument "${s.name}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}}n(CT,"ProvidedRequiredArgumentsRule");function Ep(e){var t;let r=Object.create(null),i=e.getSchema(),o=(t=i?.getDirectives())!==null&&t!==void 0?t:FT.specifiedDirectives;for(let u of o)r[u.name]=(0,Tp.keyMap)(u.args.filter(va.isRequiredArgument),c=>c.name);let s=e.getDocument().definitions;for(let u of s)if(u.kind===_p.Kind.DIRECTIVE_DEFINITION){var a;let c=(a=u.arguments)!==null&&a!==void 0?a:[];r[u.name.value]=(0,Tp.keyMap)(c.filter(xT),l=>l.name.value)}return{Directive:{leave(u){let c=u.name.value,l=r[c];if(l){var p;let f=(p=u.arguments)!==null&&p!==void 0?p:[],m=new Set(f.map(v=>v.name.value));for(let[v,b]of Object.entries(l))if(!m.has(v)){let V=(0,va.isType)(b.type)?(0,gp.inspect)(b.type):(0,wT.print)(b.type);e.reportError(new bp.GraphQLError(`Directive "@${c}" argument "${v}" of type "${V}" is required, but it was not provided.`,{nodes:u}))}}}}}}n(Ep,"ProvidedRequiredArgumentsOnDirectivesRule");function xT(e){return e.type.kind===_p.Kind.NON_NULL_TYPE&&e.defaultValue==null}n(xT,"isRequiredArgumentNode")});var Ea=y(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.ScalarLeafsRule=VT;var ga=H(),ba=A(),Op=U();function VT(e){return{Field(t){let r=e.getType(),i=t.selectionSet;if(r)if((0,Op.isLeafType)((0,Op.getNamedType)(r))){if(i){let o=t.name.value,s=(0,ga.inspect)(r);e.reportError(new ba.GraphQLError(`Field "${o}" must not have a selection since type "${s}" has no subfields.`,{nodes:i}))}}else if(i){if(i.selections.length===0){let o=t.name.value,s=(0,ga.inspect)(r);e.reportError(new ba.GraphQLError(`Field "${o}" of type "${s}" must have at least one field selected.`,{nodes:t}))}}else{let o=t.name.value,s=(0,ga.inspect)(r);e.reportError(new ba.GraphQLError(`Field "${o}" of type "${s}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}}n(VT,"ScalarLeafsRule")});var Na=y(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.printPathArray=qT;function qT(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}n(qT,"printPathArray")});var cn=y(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.addPath=MT;Pi.pathToArray=GT;function MT(e,t,r){return{prev:e,key:t,typename:r}}n(MT,"addPath");function GT(e){let t=[],r=e;for(;r;)t.push(r.key),r=r.prev;return t.reverse()}n(GT,"pathToArray")});var Sa=y(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.coerceInputValue=HT;var UT=kt(),Ri=H(),QT=Ee(),$T=Ti(),KT=it(),Xe=cn(),BT=Na(),YT=Ft(),gt=A(),ln=U();function HT(e,t,r=JT){return pn(e,t,r,void 0)}n(HT,"coerceInputValue");function JT(e,t,r){let i="Invalid value "+(0,Ri.inspect)(t);throw e.length>0&&(i+=` at "value${(0,BT.printPathArray)(e)}"`),r.message=i+": "+r.message,r}n(JT,"defaultOnError");function pn(e,t,r,i){if((0,ln.isNonNullType)(t)){if(e!=null)return pn(e,t.ofType,r,i);r((0,Xe.pathToArray)(i),e,new gt.GraphQLError(`Expected non-nullable type "${(0,Ri.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,ln.isListType)(t)){let o=t.ofType;return(0,$T.isIterableObject)(e)?Array.from(e,(s,a)=>{let u=(0,Xe.addPath)(i,a,void 0);return pn(s,o,r,u)}):[pn(e,o,r,i)]}if((0,ln.isInputObjectType)(t)){if(!(0,KT.isObjectLike)(e)||Array.isArray(e)){r((0,Xe.pathToArray)(i),e,new gt.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let o=Object.create(null),s=t.getFields();for(let a of Object.values(s)){let u=e[a.name];if(u===void 0){if(a.defaultValue!==void 0)o[a.name]=a.defaultValue;else if((0,ln.isNonNullType)(a.type)){let c=(0,Ri.inspect)(a.type);r((0,Xe.pathToArray)(i),e,new gt.GraphQLError(`Field "${a.name}" of required type "${c}" was not provided.`))}continue}o[a.name]=pn(u,a.type,r,(0,Xe.addPath)(i,a.name,t.name))}for(let a of Object.keys(e))if(!s[a]){let u=(0,YT.suggestionList)(a,Object.keys(t.getFields()));r((0,Xe.pathToArray)(i),e,new gt.GraphQLError(`Field "${a}" is not defined by type "${t.name}".`+(0,UT.didYouMean)(u)))}if(t.isOneOf){let a=Object.keys(o);a.length!==1&&r((0,Xe.pathToArray)(i),e,new gt.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let u=a[0],c=o[u];c===null&&r((0,Xe.pathToArray)(i).concat(u),c,new gt.GraphQLError(`Field "${u}" must be non-null.`))}return{...o}}if((0,ln.isLeafType)(t)){let o;try{o=t.parseValue(e)}catch(s){s instanceof gt.GraphQLError?r((0,Xe.pathToArray)(i),e,s):r((0,Xe.pathToArray)(i),e,new gt.GraphQLError(`Expected type "${t.name}". `+s.message,{originalError:s}));return}return o===void 0&&r((0,Xe.pathToArray)(i),e,new gt.GraphQLError(`Expected type "${t.name}".`)),o}(0,QT.invariant)(!1,"Unexpected input type: "+(0,Ri.inspect)(t))}n(pn,"coerceInputValueImpl")});var fn=y(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.valueFromAST=dn;var WT=H(),zT=Ee(),XT=wt(),br=G(),tr=U();function dn(e,t,r){if(e){if(e.kind===br.Kind.VARIABLE){let i=e.name.value;if(r==null||r[i]===void 0)return;let o=r[i];return o===null&&(0,tr.isNonNullType)(t)?void 0:o}if((0,tr.isNonNullType)(t))return e.kind===br.Kind.NULL?void 0:dn(e,t.ofType,r);if(e.kind===br.Kind.NULL)return null;if((0,tr.isListType)(t)){let i=t.ofType;if(e.kind===br.Kind.LIST){let s=[];for(let a of e.values)if(Np(a,r)){if((0,tr.isNonNullType)(i))return;s.push(null)}else{let u=dn(a,i,r);if(u===void 0)return;s.push(u)}return s}let o=dn(e,i,r);return o===void 0?void 0:[o]}if((0,tr.isInputObjectType)(t)){if(e.kind!==br.Kind.OBJECT)return;let i=Object.create(null),o=(0,XT.keyMap)(e.fields,s=>s.name.value);for(let s of Object.values(t.getFields())){let a=o[s.name];if(!a||Np(a.value,r)){if(s.defaultValue!==void 0)i[s.name]=s.defaultValue;else if((0,tr.isNonNullType)(s.type))return;continue}let u=dn(a.value,s.type,r);if(u===void 0)return;i[s.name]=u}if(t.isOneOf){let s=Object.keys(i);if(s.length!==1||i[s[0]]===null)return}return i}if((0,tr.isLeafType)(t)){let i;try{i=t.parseLiteral(e,r)}catch{return}return i===void 0?void 0:i}(0,zT.invariant)(!1,"Unexpected input type: "+(0,WT.inspect)(t))}}n(dn,"valueFromAST");function Np(e,t){return e.kind===br.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}n(Np,"isMissingVariable")});var Or=y(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.getArgumentValues=Dp;mn.getDirectiveValues=og;mn.getVariableValues=ng;var _r=H(),ZT=wt(),eg=Na(),bt=A(),Ip=G(),Sp=Re(),Er=U(),tg=Sa(),rg=ut(),Lp=fn();function ng(e,t,r,i){let o=[],s=i?.maxErrors;try{let a=ig(e,t,r,u=>{if(s!=null&&o.length>=s)throw new bt.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");o.push(u)});if(o.length===0)return{coerced:a}}catch(a){o.push(a)}return{errors:o}}n(ng,"getVariableValues");function ig(e,t,r,i){let o=Object.create(null);for(let s of t){let a=s.variable.name.value,u=(0,rg.typeFromAST)(e,s.type);if(!(0,Er.isInputType)(u)){let l=(0,Sp.print)(s.type);i(new bt.GraphQLError(`Variable "$${a}" expected value of type "${l}" which cannot be used as an input type.`,{nodes:s.type}));continue}if(!Ap(r,a)){if(s.defaultValue)o[a]=(0,Lp.valueFromAST)(s.defaultValue,u);else if((0,Er.isNonNullType)(u)){let l=(0,_r.inspect)(u);i(new bt.GraphQLError(`Variable "$${a}" of required type "${l}" was not provided.`,{nodes:s}))}continue}let c=r[a];if(c===null&&(0,Er.isNonNullType)(u)){let l=(0,_r.inspect)(u);i(new bt.GraphQLError(`Variable "$${a}" of non-null type "${l}" must not be null.`,{nodes:s}));continue}o[a]=(0,tg.coerceInputValue)(c,u,(l,p,f)=>{let m=`Variable "$${a}" got invalid value `+(0,_r.inspect)(p);l.length>0&&(m+=` at "${a}${(0,eg.printPathArray)(l)}"`),i(new bt.GraphQLError(m+"; "+f.message,{nodes:s,originalError:f}))})}return{...o}}n(ig,"coerceVariableValues");function Dp(e,t,r){var i;let o=Object.create(null),s=(i=t.arguments)!==null&&i!==void 0?i:[],a=(0,ZT.keyMap)(s,u=>u.name.value);for(let u of e.args){let c=u.name,l=u.type,p=a[c];if(!p){if(u.defaultValue!==void 0)o[c]=u.defaultValue;else if((0,Er.isNonNullType)(l))throw new bt.GraphQLError(`Argument "${c}" of required type "${(0,_r.inspect)(l)}" was not provided.`,{nodes:t});continue}let f=p.value,m=f.kind===Ip.Kind.NULL;if(f.kind===Ip.Kind.VARIABLE){let b=f.name.value;if(r==null||!Ap(r,b)){if(u.defaultValue!==void 0)o[c]=u.defaultValue;else if((0,Er.isNonNullType)(l))throw new bt.GraphQLError(`Argument "${c}" of required type "${(0,_r.inspect)(l)}" was provided the variable "$${b}" which was not provided a runtime value.`,{nodes:f});continue}m=r[b]==null}if(m&&(0,Er.isNonNullType)(l))throw new bt.GraphQLError(`Argument "${c}" of non-null type "${(0,_r.inspect)(l)}" must not be null.`,{nodes:f});let v=(0,Lp.valueFromAST)(f,l,r);if(v===void 0)throw new bt.GraphQLError(`Argument "${c}" has invalid value ${(0,Sp.print)(f)}.`,{nodes:f});o[c]=v}return{...o}}n(Dp,"getArgumentValues");function og(e,t,r){var i;let o=(i=t.directives)===null||i===void 0?void 0:i.find(s=>s.name.value===e.name);if(o)return Dp(e,o,r)}n(og,"getDirectiveValues");function Ap(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n(Ap,"hasOwnProperty")});var wi=y(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.collectFields=ug;ki.collectSubfields=cg;var Da=G(),sg=U(),Pp=Le(),ag=ut(),Rp=Or();function ug(e,t,r,i,o){let s=new Map;return ji(e,t,r,i,o,s,new Set),s}n(ug,"collectFields");function cg(e,t,r,i,o){let s=new Map,a=new Set;for(let u of o)u.selectionSet&&ji(e,t,r,i,u.selectionSet,s,a);return s}n(cg,"collectSubfields");function ji(e,t,r,i,o,s,a){for(let u of o.selections)switch(u.kind){case Da.Kind.FIELD:{if(!Aa(r,u))continue;let c=lg(u),l=s.get(c);l!==void 0?l.push(u):s.set(c,[u]);break}case Da.Kind.INLINE_FRAGMENT:{if(!Aa(r,u)||!jp(e,u,i))continue;ji(e,t,r,i,u.selectionSet,s,a);break}case Da.Kind.FRAGMENT_SPREAD:{let c=u.name.value;if(a.has(c)||!Aa(r,u))continue;a.add(c);let l=t[c];if(!l||!jp(e,l,i))continue;ji(e,t,r,i,l.selectionSet,s,a);break}}}n(ji,"collectFieldsImpl");function Aa(e,t){let r=(0,Rp.getDirectiveValues)(Pp.GraphQLSkipDirective,t,e);if(r?.if===!0)return!1;let i=(0,Rp.getDirectiveValues)(Pp.GraphQLIncludeDirective,t,e);return i?.if!==!1}n(Aa,"shouldIncludeNode");function jp(e,t,r){let i=t.typeCondition;if(!i)return!0;let o=(0,ag.typeFromAST)(e,i);return o===r?!0:(0,sg.isAbstractType)(o)?e.isSubType(o,r):!1}n(jp,"doesFragmentConditionMatch");function lg(e){return e.alias?e.alias.value:e.name.value}n(lg,"getFieldEntryKey")});var Ra=y(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.SingleFieldSubscriptionsRule=fg;var kp=A(),pg=G(),dg=wi();function fg(e){return{OperationDefinition(t){if(t.operation==="subscription"){let r=e.getSchema(),i=r.getSubscriptionType();if(i){let o=t.name?t.name.value:null,s=Object.create(null),a=e.getDocument(),u=Object.create(null);for(let l of a.definitions)l.kind===pg.Kind.FRAGMENT_DEFINITION&&(u[l.name.value]=l);let c=(0,dg.collectFields)(r,u,s,i,t.selectionSet);if(c.size>1){let f=[...c.values()].slice(1).flat();e.reportError(new kp.GraphQLError(o!=null?`Subscription "${o}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:f}))}for(let l of c.values())l[0].name.value.startsWith("__")&&e.reportError(new kp.GraphQLError(o!=null?`Subscription "${o}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:l}))}}}}}n(fg,"SingleFieldSubscriptionsRule")});var Fi=y(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.groupBy=mg;function mg(e,t){let r=new Map;for(let i of e){let o=t(i),s=r.get(o);s===void 0?r.set(o,[i]):s.push(i)}return r}n(mg,"groupBy")});var wa=y(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.UniqueArgumentDefinitionNamesRule=vg;var yg=Fi(),hg=A();function vg(e){return{DirectiveDefinition(i){var o;let s=(o=i.arguments)!==null&&o!==void 0?o:[];return r(`@${i.name.value}`,s)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(i){var o;let s=i.name.value,a=(o=i.fields)!==null&&o!==void 0?o:[];for(let c of a){var u;let l=c.name.value,p=(u=c.arguments)!==null&&u!==void 0?u:[];r(`${s}.${l}`,p)}return!1}function r(i,o){let s=(0,yg.groupBy)(o,a=>a.name.value);for(let[a,u]of s)u.length>1&&e.reportError(new hg.GraphQLError(`Argument "${i}(${a}:)" can only be defined once.`,{nodes:u.map(c=>c.name)}));return!1}}n(vg,"UniqueArgumentDefinitionNamesRule")});var Ca=y(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.UniqueArgumentNamesRule=bg;var Tg=Fi(),gg=A();function bg(e){return{Field:t,Directive:t};function t(r){var i;let o=(i=r.arguments)!==null&&i!==void 0?i:[],s=(0,Tg.groupBy)(o,a=>a.name.value);for(let[a,u]of s)u.length>1&&e.reportError(new gg.GraphQLError(`There can be only one argument named "${a}".`,{nodes:u.map(c=>c.name)}))}}n(bg,"UniqueArgumentNamesRule")});var Va=y(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.UniqueDirectiveNamesRule=_g;var wp=A();function _g(e){let t=Object.create(null),r=e.getSchema();return{DirectiveDefinition(i){let o=i.name.value;if(r!=null&&r.getDirective(o)){e.reportError(new wp.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:i.name}));return}return t[o]?e.reportError(new wp.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1}}}n(_g,"UniqueDirectiveNamesRule")});var Ga=y(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.UniqueDirectivesPerLocationRule=Ng;var Eg=A(),qa=G(),Fp=er(),Og=Le();function Ng(e){let t=Object.create(null),r=e.getSchema(),i=r?r.getDirectives():Og.specifiedDirectives;for(let u of i)t[u.name]=!u.isRepeatable;let o=e.getDocument().definitions;for(let u of o)u.kind===qa.Kind.DIRECTIVE_DEFINITION&&(t[u.name.value]=!u.repeatable);let s=Object.create(null),a=Object.create(null);return{enter(u){if(!("directives"in u)||!u.directives)return;let c;if(u.kind===qa.Kind.SCHEMA_DEFINITION||u.kind===qa.Kind.SCHEMA_EXTENSION)c=s;else if((0,Fp.isTypeDefinitionNode)(u)||(0,Fp.isTypeExtensionNode)(u)){let l=u.name.value;c=a[l],c===void 0&&(a[l]=c=Object.create(null))}else c=Object.create(null);for(let l of u.directives){let p=l.name.value;t[p]&&(c[p]?e.reportError(new Eg.GraphQLError(`The directive "@${p}" can only be used once at this location.`,{nodes:[c[p],l]})):c[p]=l)}}}}n(Ng,"UniqueDirectivesPerLocationRule")});var Qa=y(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.UniqueEnumValueNamesRule=Sg;var Cp=A(),Ig=U();function Sg(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{EnumTypeDefinition:o,EnumTypeExtension:o};function o(s){var a;let u=s.name.value;i[u]||(i[u]=Object.create(null));let c=(a=s.values)!==null&&a!==void 0?a:[],l=i[u];for(let p of c){let f=p.name.value,m=r[u];(0,Ig.isEnumType)(m)&&m.getValue(f)?e.reportError(new Cp.GraphQLError(`Enum value "${u}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):l[f]?e.reportError(new Cp.GraphQLError(`Enum value "${u}.${f}" can only be defined once.`,{nodes:[l[f],p.name]})):l[f]=p.name}return!1}}n(Sg,"UniqueEnumValueNamesRule")});var Ba=y(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.UniqueFieldDefinitionNamesRule=Lg;var xp=A(),$a=U();function Lg(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:o,InputObjectTypeExtension:o,InterfaceTypeDefinition:o,InterfaceTypeExtension:o,ObjectTypeDefinition:o,ObjectTypeExtension:o};function o(s){var a;let u=s.name.value;i[u]||(i[u]=Object.create(null));let c=(a=s.fields)!==null&&a!==void 0?a:[],l=i[u];for(let p of c){let f=p.name.value;Dg(r[u],f)?e.reportError(new xp.GraphQLError(`Field "${u}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):l[f]?e.reportError(new xp.GraphQLError(`Field "${u}.${f}" can only be defined once.`,{nodes:[l[f],p.name]})):l[f]=p.name}return!1}}n(Lg,"UniqueFieldDefinitionNamesRule");function Dg(e,t){return(0,$a.isObjectType)(e)||(0,$a.isInterfaceType)(e)||(0,$a.isInputObjectType)(e)?e.getFields()[t]!=null:!1}n(Dg,"hasField")});var Ha=y(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.UniqueFragmentNamesRule=Pg;var Ag=A();function Pg(e){let t=Object.create(null);return{OperationDefinition:n(()=>!1,"OperationDefinition"),FragmentDefinition(r){let i=r.name.value;return t[i]?e.reportError(new Ag.GraphQLError(`There can be only one fragment named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}n(Pg,"UniqueFragmentNamesRule")});var Wa=y(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.UniqueInputFieldNamesRule=kg;var Rg=Ee(),jg=A();function kg(e){let t=[],r=Object.create(null);return{ObjectValue:{enter(){t.push(r),r=Object.create(null)},leave(){let i=t.pop();i||(0,Rg.invariant)(!1),r=i}},ObjectField(i){let o=i.name.value;r[o]?e.reportError(new jg.GraphQLError(`There can be only one input field named "${o}".`,{nodes:[r[o],i.name]})):r[o]=i.name}}}n(kg,"UniqueInputFieldNamesRule")});var Xa=y(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.UniqueOperationNamesRule=Fg;var wg=A();function Fg(e){let t=Object.create(null);return{OperationDefinition(r){let i=r.name;return i&&(t[i.value]?e.reportError(new wg.GraphQLError(`There can be only one operation named "${i.value}".`,{nodes:[t[i.value],i]})):t[i.value]=i),!1},FragmentDefinition:n(()=>!1,"FragmentDefinition")}}n(Fg,"UniqueOperationNamesRule")});var eu=y(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.UniqueOperationTypesRule=Cg;var Vp=A();function Cg(e){let t=e.getSchema(),r=Object.create(null),i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(s){var a;let u=(a=s.operationTypes)!==null&&a!==void 0?a:[];for(let c of u){let l=c.operation,p=r[l];i[l]?e.reportError(new Vp.GraphQLError(`Type for ${l} already defined in the schema. It cannot be redefined.`,{nodes:c})):p?e.reportError(new Vp.GraphQLError(`There can be only one ${l} type in schema.`,{nodes:[p,c]})):r[l]=c}return!1}}n(Cg,"UniqueOperationTypesRule")});var ru=y(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.UniqueTypeNamesRule=xg;var qp=A();function xg(e){let t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(o){let s=o.name.value;if(r!=null&&r.getType(s)){e.reportError(new qp.GraphQLError(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:o.name}));return}return t[s]?e.reportError(new qp.GraphQLError(`There can be only one type named "${s}".`,{nodes:[t[s],o.name]})):t[s]=o.name,!1}}n(xg,"UniqueTypeNamesRule")});var iu=y(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.UniqueVariableNamesRule=Mg;var Vg=Fi(),qg=A();function Mg(e){return{OperationDefinition(t){var r;let i=(r=t.variableDefinitions)!==null&&r!==void 0?r:[],o=(0,Vg.groupBy)(i,s=>s.variable.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new qg.GraphQLError(`There can be only one variable named "$${s}".`,{nodes:a.map(u=>u.variable.name)}))}}}n(Mg,"UniqueVariableNamesRule")});var su=y(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.ValuesOfCorrectTypeRule=Kg;var Gg=kt(),yn=H(),Ug=wt(),Qg=Ft(),_t=A(),$g=G(),Ci=Re(),ct=U();function Kg(e){return{ListValue(t){let r=(0,ct.getNullableType)(e.getParentInputType());if(!(0,ct.isListType)(r))return rr(e,t),!1},ObjectValue(t){let r=(0,ct.getNamedType)(e.getInputType());if(!(0,ct.isInputObjectType)(r))return rr(e,t),!1;let i=(0,Ug.keyMap)(t.fields,o=>o.name.value);for(let o of Object.values(r.getFields()))if(!i[o.name]&&(0,ct.isRequiredInputField)(o)){let a=(0,yn.inspect)(o.type);e.reportError(new _t.GraphQLError(`Field "${r.name}.${o.name}" of required type "${a}" was not provided.`,{nodes:t}))}r.isOneOf&&Bg(e,t,r,i)},ObjectField(t){let r=(0,ct.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,ct.isInputObjectType)(r)){let o=(0,Qg.suggestionList)(t.name.value,Object.keys(r.getFields()));e.reportError(new _t.GraphQLError(`Field "${t.name.value}" is not defined by type "${r.name}".`+(0,Gg.didYouMean)(o),{nodes:t}))}},NullValue(t){let r=e.getInputType();(0,ct.isNonNullType)(r)&&e.reportError(new _t.GraphQLError(`Expected value of type "${(0,yn.inspect)(r)}", found ${(0,Ci.print)(t)}.`,{nodes:t}))},EnumValue:n(t=>rr(e,t),"EnumValue"),IntValue:n(t=>rr(e,t),"IntValue"),FloatValue:n(t=>rr(e,t),"FloatValue"),StringValue:n(t=>rr(e,t),"StringValue"),BooleanValue:n(t=>rr(e,t),"BooleanValue")}}n(Kg,"ValuesOfCorrectTypeRule");function rr(e,t){let r=e.getInputType();if(!r)return;let i=(0,ct.getNamedType)(r);if(!(0,ct.isLeafType)(i)){let o=(0,yn.inspect)(r);e.reportError(new _t.GraphQLError(`Expected value of type "${o}", found ${(0,Ci.print)(t)}.`,{nodes:t}));return}try{if(i.parseLiteral(t,void 0)===void 0){let s=(0,yn.inspect)(r);e.reportError(new _t.GraphQLError(`Expected value of type "${s}", found ${(0,Ci.print)(t)}.`,{nodes:t}))}}catch(o){let s=(0,yn.inspect)(r);o instanceof _t.GraphQLError?e.reportError(o):e.reportError(new _t.GraphQLError(`Expected value of type "${s}", found ${(0,Ci.print)(t)}; `+o.message,{nodes:t,originalError:o}))}}n(rr,"isValidValueNode");function Bg(e,t,r,i){var o;let s=Object.keys(i);if(s.length!==1){e.reportError(new _t.GraphQLError(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}let u=(o=i[s[0]])===null||o===void 0?void 0:o.value;(!u||u.kind===$g.Kind.NULL)&&e.reportError(new _t.GraphQLError(`Field "${r.name}.${s[0]}" must be non-null.`,{nodes:[t]}))}n(Bg,"validateOneOfInputObject")});var uu=y(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.VariablesAreInputTypesRule=zg;var Yg=A(),Hg=Re(),Jg=U(),Wg=ut();function zg(e){return{VariableDefinition(t){let r=(0,Wg.typeFromAST)(e.getSchema(),t.type);if(r!==void 0&&!(0,Jg.isInputType)(r)){let i=t.variable.name.value,o=(0,Hg.print)(t.type);e.reportError(new Yg.GraphQLError(`Variable "$${i}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}}n(zg,"VariablesAreInputTypesRule")});var lu=y(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.VariablesInAllowedPositionRule=eb;var Mp=H(),Gp=A(),Xg=G(),xi=U(),Up=Jr(),Zg=ut();function eb(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){let i=e.getRecursiveVariableUsages(r);for(let{node:o,type:s,defaultValue:a,parentType:u}of i){let c=o.name.value,l=t[c];if(l&&s){let p=e.getSchema(),f=(0,Zg.typeFromAST)(p,l.type);if(f&&!tb(p,f,l.defaultValue,s,a)){let m=(0,Mp.inspect)(f),v=(0,Mp.inspect)(s);e.reportError(new Gp.GraphQLError(`Variable "$${c}" of type "${m}" used in position expecting type "${v}".`,{nodes:[l,o]}))}(0,xi.isInputObjectType)(u)&&u.isOneOf&&(0,xi.isNullableType)(f)&&e.reportError(new Gp.GraphQLError(`Variable "$${c}" is of type "${f}" but must be non-nullable to be used for OneOf Input Object "${u}".`,{nodes:[l,o]}))}}}},VariableDefinition(r){t[r.variable.name.value]=r}}}n(eb,"VariablesInAllowedPositionRule");function tb(e,t,r,i,o){if((0,xi.isNonNullType)(i)&&!(0,xi.isNonNullType)(t)){if(!(r!=null&&r.kind!==Xg.Kind.NULL)&&!(o!==void 0))return!1;let u=i.ofType;return(0,Up.isTypeSubTypeOf)(e,t,u)}return(0,Up.isTypeSubTypeOf)(e,t,i)}n(tb,"allowedVariableUsage")});var pu=y(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.specifiedSDLRules=qt.specifiedRules=qt.recommendedRules=void 0;var rb=Ls(),nb=As(),ib=Rs(),Qp=js(),$p=Cs(),ob=Vs(),Kp=Gs(),sb=Qs(),ab=Ks(),ub=Ys(),cb=Js(),lb=zs(),pb=Zs(),db=ta(),fb=pa(),mb=ma(),yb=ha(),Bp=Ta(),hb=Ea(),vb=Ra(),Tb=wa(),Yp=Ca(),gb=Va(),Hp=Ga(),bb=Qa(),_b=Ba(),Eb=Ha(),Jp=Wa(),Ob=Xa(),Nb=eu(),Ib=ru(),Sb=iu(),Lb=su(),Db=uu(),Ab=lu(),Wp=Object.freeze([ub.MaxIntrospectionDepthRule]);qt.recommendedRules=Wp;var Pb=Object.freeze([rb.ExecutableDefinitionsRule,Ob.UniqueOperationNamesRule,sb.LoneAnonymousOperationRule,vb.SingleFieldSubscriptionsRule,Kp.KnownTypeNamesRule,ib.FragmentsOnCompositeTypesRule,Db.VariablesAreInputTypesRule,hb.ScalarLeafsRule,nb.FieldsOnCorrectTypeRule,Eb.UniqueFragmentNamesRule,ob.KnownFragmentNamesRule,pb.NoUnusedFragmentsRule,mb.PossibleFragmentSpreadsRule,cb.NoFragmentCyclesRule,Sb.UniqueVariableNamesRule,lb.NoUndefinedVariablesRule,db.NoUnusedVariablesRule,$p.KnownDirectivesRule,Hp.UniqueDirectivesPerLocationRule,Qp.KnownArgumentNamesRule,Yp.UniqueArgumentNamesRule,Lb.ValuesOfCorrectTypeRule,Bp.ProvidedRequiredArgumentsRule,Ab.VariablesInAllowedPositionRule,fb.OverlappingFieldsCanBeMergedRule,Jp.UniqueInputFieldNamesRule,...Wp]);qt.specifiedRules=Pb;var Rb=Object.freeze([ab.LoneSchemaDefinitionRule,Nb.UniqueOperationTypesRule,Ib.UniqueTypeNamesRule,bb.UniqueEnumValueNamesRule,_b.UniqueFieldDefinitionNamesRule,Tb.UniqueArgumentDefinitionNamesRule,gb.UniqueDirectiveNamesRule,Kp.KnownTypeNamesRule,$p.KnownDirectivesRule,Hp.UniqueDirectivesPerLocationRule,yb.PossibleTypeExtensionsRule,Qp.KnownArgumentNamesOnDirectivesRule,Yp.UniqueArgumentNamesRule,Jp.UniqueInputFieldNamesRule,Bp.ProvidedRequiredArgumentsOnDirectivesRule]);qt.specifiedSDLRules=Rb});var mu=y(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.ValidationContext=Mt.SDLValidationContext=Mt.ASTValidationContext=void 0;var zp=G(),jb=Bt(),Xp=Ei(),hn=class{static{n(this,"ASTValidationContext")}constructor(t,r){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let r;if(this._fragments)r=this._fragments;else{r=Object.create(null);for(let i of this.getDocument().definitions)i.kind===zp.Kind.FRAGMENT_DEFINITION&&(r[i.name.value]=i);this._fragments=r}return r[t]}getFragmentSpreads(t){let r=this._fragmentSpreads.get(t);if(!r){r=[];let i=[t],o;for(;o=i.pop();)for(let s of o.selections)s.kind===zp.Kind.FRAGMENT_SPREAD?r.push(s):s.selectionSet&&i.push(s.selectionSet);this._fragmentSpreads.set(t,r)}return r}getRecursivelyReferencedFragments(t){let r=this._recursivelyReferencedFragments.get(t);if(!r){r=[];let i=Object.create(null),o=[t.selectionSet],s;for(;s=o.pop();)for(let a of this.getFragmentSpreads(s)){let u=a.name.value;if(i[u]!==!0){i[u]=!0;let c=this.getFragment(u);c&&(r.push(c),o.push(c.selectionSet))}}this._recursivelyReferencedFragments.set(t,r)}return r}};Mt.ASTValidationContext=hn;var du=class extends hn{static{n(this,"SDLValidationContext")}constructor(t,r,i){super(t,i),this._schema=r}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};Mt.SDLValidationContext=du;var fu=class extends hn{static{n(this,"ValidationContext")}constructor(t,r,i,o){super(r,o),this._schema=t,this._typeInfo=i,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let r=this._variableUsages.get(t);if(!r){let i=[],o=new Xp.TypeInfo(this._schema);(0,jb.visit)(t,(0,Xp.visitWithTypeInfo)(o,{VariableDefinition:n(()=>!1,"VariableDefinition"),Variable(s){i.push({node:s,type:o.getInputType(),defaultValue:o.getDefaultValue(),parentType:o.getParentInputType()})}})),r=i,this._variableUsages.set(t,r)}return r}getRecursiveVariableUsages(t){let r=this._recursiveVariableUsages.get(t);if(!r){r=this.getVariableUsages(t);for(let i of this.getRecursivelyReferencedFragments(t))r=r.concat(this.getVariableUsages(i));this._recursiveVariableUsages.set(t,r)}return r}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};Mt.ValidationContext=fu});var vn=y(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.assertValidSDL=Mb;Nr.assertValidSDLExtension=Gb;Nr.validate=qb;Nr.validateSDL=yu;var kb=Ie(),wb=Jn(),Fb=A(),Cb=Ce(),Vi=Bt(),xb=sn(),Zp=Ei(),ed=pu(),td=mu(),Vb=(0,wb.mapValue)(Cb.QueryDocumentKeys,e=>e.filter(t=>t!=="description"));function qb(e,t,r=ed.specifiedRules,i,o=new Zp.TypeInfo(e)){var s;let a=(s=i?.maxErrors)!==null&&s!==void 0?s:100;t||(0,kb.devAssert)(!1,"Must provide document."),(0,xb.assertValidSchema)(e);let u=Object.freeze({}),c=[],l=new td.ValidationContext(e,t,o,f=>{if(c.length>=a)throw c.push(new Fb.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),u;c.push(f)}),p=(0,Vi.visitInParallel)(r.map(f=>f(l)));try{(0,Vi.visit)(t,(0,Zp.visitWithTypeInfo)(o,p),Vb)}catch(f){if(f!==u)throw f}return c}n(qb,"validate");function yu(e,t,r=ed.specifiedSDLRules){let i=[],o=new td.SDLValidationContext(e,t,a=>{i.push(a)}),s=r.map(a=>a(o));return(0,Vi.visit)(e,(0,Vi.visitInParallel)(s)),i}n(yu,"validateSDL");function Mb(e){let t=yu(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(`
`))}n(Mb,"assertValidSDL");function Gb(e,t){let r=yu(e,t);if(r.length!==0)throw new Error(r.map(i=>i.message).join(`
`))}n(Gb,"assertValidSDLExtension")});var rd=y(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.memoize3=Ub;function Ub(e){let t;return n(function(i,o,s){t===void 0&&(t=new WeakMap);let a=t.get(i);a===void 0&&(a=new WeakMap,t.set(i,a));let u=a.get(o);u===void 0&&(u=new WeakMap,a.set(o,u));let c=u.get(s);return c===void 0&&(c=e(i,o,s),u.set(s,c)),c},"memoized")}n(Ub,"memoize3")});var nd=y(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.promiseForObject=Qb;function Qb(e){return Promise.all(Object.values(e)).then(t=>{let r=Object.create(null);for(let[i,o]of Object.keys(e).entries())r[o]=t[i];return r})}n(Qb,"promiseForObject")});var id=y(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.promiseReduce=Kb;var $b=Vn();function Kb(e,t,r){let i=r;for(let o of e)i=(0,$b.isPromise)(i)?i.then(s=>t(s,o)):t(i,o);return i}n(Kb,"promiseReduce")});var od=y(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.toError=Yb;var Bb=H();function Yb(e){return e instanceof Error?e:new gu(e)}n(Yb,"toError");var gu=class extends Error{static{n(this,"NonErrorThrown")}constructor(t){super("Unexpected error value: "+(0,Bb.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var qi=y(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.locatedError=Wb;var Hb=od(),Jb=A();function Wb(e,t,r){var i;let o=(0,Hb.toError)(e);return zb(o)?o:new Jb.GraphQLError(o.message,{nodes:(i=o.nodes)!==null&&i!==void 0?i:t,source:o.source,positions:o.positions,path:r,originalError:o})}n(Wb,"locatedError");function zb(e){return Array.isArray(e.path)}n(zb,"isLocatedGraphQLError")});var gn=y(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.assertValidExecutionArguments=fd;Ue.buildExecutionContext=md;Ue.buildResolveInfo=hd;Ue.defaultTypeResolver=Ue.defaultFieldResolver=void 0;Ue.execute=dd;Ue.executeSync=i_;Ue.getFieldDef=Td;var Ou=Ie(),nr=H(),Xb=Ee(),Zb=Ti(),Lu=it(),Ze=Vn(),e_=rd(),ir=cn(),sd=nd(),t_=id(),Ge=A(),Gi=qi(),Eu=Ce(),ad=G(),Gt=U(),Ir=Me(),r_=sn(),ld=wi(),pd=Or(),n_=(0,e_.memoize3)((e,t,r)=>(0,ld.collectSubfields)(e.schema,e.fragments,e.variableValues,t,r)),Nu=class{static{n(this,"CollectedErrors")}constructor(){this._errorPositions=new Set,this._errors=[]}get errors(){return this._errors}add(t,r){this._hasNulledPosition(r)||(this._errorPositions.add(r),this._errors.push(t))}_hasNulledPosition(t){let r=t;for(;r!==void 0;){if(this._errorPositions.has(r))return!0;r=r.prev}return this._errorPositions.has(void 0)}};function dd(e){arguments.length<2||(0,Ou.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:r,variableValues:i,rootValue:o}=e;fd(t,r,i);let s=md(e);if(!("schema"in s))return{errors:s};try{let{operation:a}=s,u=o_(s,a,o);return(0,Ze.isPromise)(u)?u.then(c=>Mi(c,s.collectedErrors.errors),c=>(s.collectedErrors.add(c,void 0),Mi(null,s.collectedErrors.errors))):Mi(u,s.collectedErrors.errors)}catch(a){return s.collectedErrors.add(a,void 0),Mi(null,s.collectedErrors.errors)}}n(dd,"execute");function i_(e){let t=dd(e);if((0,Ze.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}n(i_,"executeSync");function Mi(e,t){return t.length===0?{data:e}:{errors:t,data:e}}n(Mi,"buildResponse");function fd(e,t,r){t||(0,Ou.devAssert)(!1,"Must provide document."),(0,r_.assertValidSchema)(e),r==null||(0,Lu.isObjectLike)(r)||(0,Ou.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}n(fd,"assertValidExecutionArguments");function md(e){var t,r,i;let{schema:o,document:s,rootValue:a,contextValue:u,variableValues:c,operationName:l,fieldResolver:p,typeResolver:f,subscribeFieldResolver:m,options:v}=e,b,V=Object.create(null);for(let ne of s.definitions)switch(ne.kind){case ad.Kind.OPERATION_DEFINITION:if(l==null){if(b!==void 0)return[new Ge.GraphQLError("Must provide operation name if query contains multiple operations.")];b=ne}else((t=ne.name)===null||t===void 0?void 0:t.value)===l&&(b=ne);break;case ad.Kind.FRAGMENT_DEFINITION:V[ne.name.value]=ne;break;default:}if(!b)return l!=null?[new Ge.GraphQLError(`Unknown operation named "${l}".`)]:[new Ge.GraphQLError("Must provide an operation.")];let J=(r=b.variableDefinitions)!==null&&r!==void 0?r:[],z=(0,pd.getVariableValues)(o,J,c??{},{maxErrors:(i=v?.maxCoercionErrors)!==null&&i!==void 0?i:50});return z.errors?z.errors:{schema:o,fragments:V,rootValue:a,contextValue:u,operation:b,variableValues:z.coerced,fieldResolver:p??Su,typeResolver:f??vd,subscribeFieldResolver:m??Su,collectedErrors:new Nu}}n(md,"buildExecutionContext");function o_(e,t,r){let i=e.schema.getRootType(t.operation);if(i==null)throw new Ge.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let o=(0,ld.collectFields)(e.schema,e.fragments,e.variableValues,i,t.selectionSet),s=void 0;switch(t.operation){case Eu.OperationTypeNode.QUERY:return Ui(e,i,r,s,o);case Eu.OperationTypeNode.MUTATION:return s_(e,i,r,s,o);case Eu.OperationTypeNode.SUBSCRIPTION:return Ui(e,i,r,s,o)}}n(o_,"executeOperation");function s_(e,t,r,i,o){return(0,t_.promiseReduce)(o.entries(),(s,[a,u])=>{let c=(0,ir.addPath)(i,a,t.name),l=yd(e,t,r,u,c);return l===void 0?s:(0,Ze.isPromise)(l)?l.then(p=>(s[a]=p,s)):(s[a]=l,s)},Object.create(null))}n(s_,"executeFieldsSerially");function Ui(e,t,r,i,o){let s=Object.create(null),a=!1;try{for(let[u,c]of o.entries()){let l=(0,ir.addPath)(i,u,t.name),p=yd(e,t,r,c,l);p!==void 0&&(s[u]=p,(0,Ze.isPromise)(p)&&(a=!0))}}catch(u){if(a)return(0,sd.promiseForObject)(s).finally(()=>{throw u});throw u}return a?(0,sd.promiseForObject)(s):s}n(Ui,"executeFields");function yd(e,t,r,i,o){var s;let a=Td(e.schema,t,i[0]);if(!a)return;let u=a.type,c=(s=a.resolve)!==null&&s!==void 0?s:e.fieldResolver,l=hd(e,a,i,t,o);try{let p=(0,pd.getArgumentValues)(a,i[0],e.variableValues),f=e.contextValue,m=c(r,p,f,l),v;return(0,Ze.isPromise)(m)?v=m.then(b=>Tn(e,u,i,l,o,b)):v=Tn(e,u,i,l,o,m),(0,Ze.isPromise)(v)?v.then(void 0,b=>{let V=(0,Gi.locatedError)(b,i,(0,ir.pathToArray)(o));return Qi(V,u,o,e)}):v}catch(p){let f=(0,Gi.locatedError)(p,i,(0,ir.pathToArray)(o));return Qi(f,u,o,e)}}n(yd,"executeField");function hd(e,t,r,i,o){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:i,path:o,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}n(hd,"buildResolveInfo");function Qi(e,t,r,i){if((0,Gt.isNonNullType)(t))throw e;return i.collectedErrors.add(e,r),null}n(Qi,"handleFieldError");function Tn(e,t,r,i,o,s){if(s instanceof Error)throw s;if((0,Gt.isNonNullType)(t)){let a=Tn(e,t.ofType,r,i,o,s);if(a===null)throw new Error(`Cannot return null for non-nullable field ${i.parentType.name}.${i.fieldName}.`);return a}if(s==null)return null;if((0,Gt.isListType)(t))return a_(e,t,r,i,o,s);if((0,Gt.isLeafType)(t))return u_(t,s);if((0,Gt.isAbstractType)(t))return c_(e,t,r,i,o,s);if((0,Gt.isObjectType)(t))return Iu(e,t,r,i,o,s);(0,Xb.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,nr.inspect)(t))}n(Tn,"completeValue");function a_(e,t,r,i,o,s){if(!(0,Zb.isIterableObject)(s))throw new Ge.GraphQLError(`Expected Iterable, but did not find one for field "${i.parentType.name}.${i.fieldName}".`);let a=t.ofType,u=!1,c=Array.from(s,(l,p)=>{let f=(0,ir.addPath)(o,p,void 0);try{let m;return(0,Ze.isPromise)(l)?m=l.then(v=>Tn(e,a,r,i,f,v)):m=Tn(e,a,r,i,f,l),(0,Ze.isPromise)(m)?(u=!0,m.then(void 0,v=>{let b=(0,Gi.locatedError)(v,r,(0,ir.pathToArray)(f));return Qi(b,a,f,e)})):m}catch(m){let v=(0,Gi.locatedError)(m,r,(0,ir.pathToArray)(f));return Qi(v,a,f,e)}});return u?Promise.all(c):c}n(a_,"completeListValue");function u_(e,t){let r=e.serialize(t);if(r==null)throw new Error(`Expected \`${(0,nr.inspect)(e)}.serialize(${(0,nr.inspect)(t)})\` to return non-nullable value, returned: ${(0,nr.inspect)(r)}`);return r}n(u_,"completeLeafValue");function c_(e,t,r,i,o,s){var a;let u=(a=t.resolveType)!==null&&a!==void 0?a:e.typeResolver,c=e.contextValue,l=u(s,c,i,t);return(0,Ze.isPromise)(l)?l.then(p=>Iu(e,ud(p,e,t,r,i,s),r,i,o,s)):Iu(e,ud(l,e,t,r,i,s),r,i,o,s)}n(c_,"completeAbstractValue");function ud(e,t,r,i,o,s){if(e==null)throw new Ge.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,i);if((0,Gt.isObjectType)(e))throw new Ge.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in [email protected] please return type name instead.");if(typeof e!="string")throw new Ge.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with value ${(0,nr.inspect)(s)}, received "${(0,nr.inspect)(e)}".`);let a=t.schema.getType(e);if(a==null)throw new Ge.GraphQLError(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:i});if(!(0,Gt.isObjectType)(a))throw new Ge.GraphQLError(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:i});if(!t.schema.isSubType(r,a))throw new Ge.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${r.name}".`,{nodes:i});return a}n(ud,"ensureValidRuntimeType");function Iu(e,t,r,i,o,s){let a=n_(e,t,r);if(t.isTypeOf){let u=t.isTypeOf(s,e.contextValue,i);if((0,Ze.isPromise)(u))return u.then(c=>{if(!c)throw cd(t,s,r);return Ui(e,t,s,o,a)});if(!u)throw cd(t,s,r)}return Ui(e,t,s,o,a)}n(Iu,"completeObjectValue");function cd(e,t,r){return new Ge.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,nr.inspect)(t)}.`,{nodes:r})}n(cd,"invalidReturnTypeError");var vd=n(function(e,t,r,i){if((0,Lu.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let o=r.schema.getPossibleTypes(i),s=[];for(let a=0;a<o.length;a++){let u=o[a];if(u.isTypeOf){let c=u.isTypeOf(e,t,r);if((0,Ze.isPromise)(c))s[a]=c;else if(c)return s.length&&Promise.allSettled(s).catch(()=>{}),u.name}}if(s.length)return Promise.all(s).then(a=>{for(let u=0;u<a.length;u++)if(a[u])return o[u].name})},"defaultTypeResolver");Ue.defaultTypeResolver=vd;var Su=n(function(e,t,r,i){if((0,Lu.isObjectLike)(e)||typeof e=="function"){let o=e[i.fieldName];return typeof o=="function"?e[i.fieldName](t,r,i):o}},"defaultFieldResolver");Ue.defaultFieldResolver=Su;function Td(e,t,r){let i=r.name.value;return i===Ir.SchemaMetaFieldDef.name&&e.getQueryType()===t?Ir.SchemaMetaFieldDef:i===Ir.TypeMetaFieldDef.name&&e.getQueryType()===t?Ir.TypeMetaFieldDef:i===Ir.TypeNameMetaFieldDef.name?Ir.TypeNameMetaFieldDef:t.getFields()[i]}n(Td,"getFieldDef")});var bd=y($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.graphql=h_;$i.graphqlSync=v_;var l_=Ie(),p_=Vn(),d_=Kt(),f_=sn(),m_=vn(),y_=gn();function h_(e){return new Promise(t=>t(gd(e)))}n(h_,"graphql");function v_(e){let t=gd(e);if((0,p_.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}n(v_,"graphqlSync");function gd(e){arguments.length<2||(0,l_.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:r,rootValue:i,contextValue:o,variableValues:s,operationName:a,fieldResolver:u,typeResolver:c}=e,l=(0,f_.validateSchema)(t);if(l.length>0)return{errors:l};let p;try{p=(0,d_.parse)(r)}catch(m){return{errors:[m]}}let f=(0,m_.validate)(t,p);return f.length>0?{errors:f}:(0,y_.execute)({schema:t,document:p,rootValue:i,contextValue:o,variableValues:s,operationName:a,fieldResolver:u,typeResolver:c})}n(gd,"graphqlImpl")});var Od=y(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});Object.defineProperty(g,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:n(function(){return et.DEFAULT_DEPRECATION_REASON},"get")});Object.defineProperty(g,"GRAPHQL_MAX_INT",{enumerable:!0,get:n(function(){return Et.GRAPHQL_MAX_INT},"get")});Object.defineProperty(g,"GRAPHQL_MIN_INT",{enumerable:!0,get:n(function(){return Et.GRAPHQL_MIN_INT},"get")});Object.defineProperty(g,"GraphQLBoolean",{enumerable:!0,get:n(function(){return Et.GraphQLBoolean},"get")});Object.defineProperty(g,"GraphQLDeprecatedDirective",{enumerable:!0,get:n(function(){return et.GraphQLDeprecatedDirective},"get")});Object.defineProperty(g,"GraphQLDirective",{enumerable:!0,get:n(function(){return et.GraphQLDirective},"get")});Object.defineProperty(g,"GraphQLEnumType",{enumerable:!0,get:n(function(){return R.GraphQLEnumType},"get")});Object.defineProperty(g,"GraphQLFloat",{enumerable:!0,get:n(function(){return Et.GraphQLFloat},"get")});Object.defineProperty(g,"GraphQLID",{enumerable:!0,get:n(function(){return Et.GraphQLID},"get")});Object.defineProperty(g,"GraphQLIncludeDirective",{enumerable:!0,get:n(function(){return et.GraphQLIncludeDirective},"get")});Object.defineProperty(g,"GraphQLInputObjectType",{enumerable:!0,get:n(function(){return R.GraphQLInputObjectType},"get")});Object.defineProperty(g,"GraphQLInt",{enumerable:!0,get:n(function(){return Et.GraphQLInt},"get")});Object.defineProperty(g,"GraphQLInterfaceType",{enumerable:!0,get:n(function(){return R.GraphQLInterfaceType},"get")});Object.defineProperty(g,"GraphQLList",{enumerable:!0,get:n(function(){return R.GraphQLList},"get")});Object.defineProperty(g,"GraphQLNonNull",{enumerable:!0,get:n(function(){return R.GraphQLNonNull},"get")});Object.defineProperty(g,"GraphQLObjectType",{enumerable:!0,get:n(function(){return R.GraphQLObjectType},"get")});Object.defineProperty(g,"GraphQLOneOfDirective",{enumerable:!0,get:n(function(){return et.GraphQLOneOfDirective},"get")});Object.defineProperty(g,"GraphQLScalarType",{enumerable:!0,get:n(function(){return R.GraphQLScalarType},"get")});Object.defineProperty(g,"GraphQLSchema",{enumerable:!0,get:n(function(){return Du.GraphQLSchema},"get")});Object.defineProperty(g,"GraphQLSkipDirective",{enumerable:!0,get:n(function(){return et.GraphQLSkipDirective},"get")});Object.defineProperty(g,"GraphQLSpecifiedByDirective",{enumerable:!0,get:n(function(){return et.GraphQLSpecifiedByDirective},"get")});Object.defineProperty(g,"GraphQLString",{enumerable:!0,get:n(function(){return Et.GraphQLString},"get")});Object.defineProperty(g,"GraphQLUnionType",{enumerable:!0,get:n(function(){return R.GraphQLUnionType},"get")});Object.defineProperty(g,"SchemaMetaFieldDef",{enumerable:!0,get:n(function(){return Ae.SchemaMetaFieldDef},"get")});Object.defineProperty(g,"TypeKind",{enumerable:!0,get:n(function(){return Ae.TypeKind},"get")});Object.defineProperty(g,"TypeMetaFieldDef",{enumerable:!0,get:n(function(){return Ae.TypeMetaFieldDef},"get")});Object.defineProperty(g,"TypeNameMetaFieldDef",{enumerable:!0,get:n(function(){return Ae.TypeNameMetaFieldDef},"get")});Object.defineProperty(g,"__Directive",{enumerable:!0,get:n(function(){return Ae.__Directive},"get")});Object.defineProperty(g,"__DirectiveLocation",{enumerable:!0,get:n(function(){return Ae.__DirectiveLocation},"get")});Object.defineProperty(g,"__EnumValue",{enumerable:!0,get:n(function(){return Ae.__EnumValue},"get")});Object.defineProperty(g,"__Field",{enumerable:!0,get:n(function(){return Ae.__Field},"get")});Object.defineProperty(g,"__InputValue",{enumerable:!0,get:n(function(){return Ae.__InputValue},"get")});Object.defineProperty(g,"__Schema",{enumerable:!0,get:n(function(){return Ae.__Schema},"get")});Object.defineProperty(g,"__Type",{enumerable:!0,get:n(function(){return Ae.__Type},"get")});Object.defineProperty(g,"__TypeKind",{enumerable:!0,get:n(function(){return Ae.__TypeKind},"get")});Object.defineProperty(g,"assertAbstractType",{enumerable:!0,get:n(function(){return R.assertAbstractType},"get")});Object.defineProperty(g,"assertCompositeType",{enumerable:!0,get:n(function(){return R.assertCompositeType},"get")});Object.defineProperty(g,"assertDirective",{enumerable:!0,get:n(function(){return et.assertDirective},"get")});Object.defineProperty(g,"assertEnumType",{enumerable:!0,get:n(function(){return R.assertEnumType},"get")});Object.defineProperty(g,"assertEnumValueName",{enumerable:!0,get:n(function(){return Ed.assertEnumValueName},"get")});Object.defineProperty(g,"assertInputObjectType",{enumerable:!0,get:n(function(){return R.assertInputObjectType},"get")});Object.defineProperty(g,"assertInputType",{enumerable:!0,get:n(function(){return R.assertInputType},"get")});Object.defineProperty(g,"assertInterfaceType",{enumerable:!0,get:n(function(){return R.assertInterfaceType},"get")});Object.defineProperty(g,"assertLeafType",{enumerable:!0,get:n(function(){return R.assertLeafType},"get")});Object.defineProperty(g,"assertListType",{enumerable:!0,get:n(function(){return R.assertListType},"get")});Object.defineProperty(g,"assertName",{enumerable:!0,get:n(function(){return Ed.assertName},"get")});Object.defineProperty(g,"assertNamedType",{enumerable:!0,get:n(function(){return R.assertNamedType},"get")});Object.defineProperty(g,"assertNonNullType",{enumerable:!0,get:n(function(){return R.assertNonNullType},"get")});Object.defineProperty(g,"assertNullableType",{enumerable:!0,get:n(function(){return R.assertNullableType},"get")});Object.defineProperty(g,"assertObjectType",{enumerable:!0,get:n(function(){return R.assertObjectType},"get")});Object.defineProperty(g,"assertOutputType",{enumerable:!0,get:n(function(){return R.assertOutputType},"get")});Object.defineProperty(g,"assertScalarType",{enumerable:!0,get:n(function(){return R.assertScalarType},"get")});Object.defineProperty(g,"assertSchema",{enumerable:!0,get:n(function(){return Du.assertSchema},"get")});Object.defineProperty(g,"assertType",{enumerable:!0,get:n(function(){return R.assertType},"get")});Object.defineProperty(g,"assertUnionType",{enumerable:!0,get:n(function(){return R.assertUnionType},"get")});Object.defineProperty(g,"assertValidSchema",{enumerable:!0,get:n(function(){return _d.assertValidSchema},"get")});Object.defineProperty(g,"assertWrappingType",{enumerable:!0,get:n(function(){return R.assertWrappingType},"get")});Object.defineProperty(g,"getNamedType",{enumerable:!0,get:n(function(){return R.getNamedType},"get")});Object.defineProperty(g,"getNullableType",{enumerable:!0,get:n(function(){return R.getNullableType},"get")});Object.defineProperty(g,"introspectionTypes",{enumerable:!0,get:n(function(){return Ae.introspectionTypes},"get")});Object.defineProperty(g,"isAbstractType",{enumerable:!0,get:n(function(){return R.isAbstractType},"get")});Object.defineProperty(g,"isCompositeType",{enumerable:!0,get:n(function(){return R.isCompositeType},"get")});Object.defineProperty(g,"isDirective",{enumerable:!0,get:n(function(){return et.isDirective},"get")});Object.defineProperty(g,"isEnumType",{enumerable:!0,get:n(function(){return R.isEnumType},"get")});Object.defineProperty(g,"isInputObjectType",{enumerable:!0,get:n(function(){return R.isInputObjectType},"get")});Object.defineProperty(g,"isInputType",{enumerable:!0,get:n(function(){return R.isInputType},"get")});Object.defineProperty(g,"isInterfaceType",{enumerable:!0,get:n(function(){return R.isInterfaceType},"get")});Object.defineProperty(g,"isIntrospectionType",{enumerable:!0,get:n(function(){return Ae.isIntrospectionType},"get")});Object.defineProperty(g,"isLeafType",{enumerable:!0,get:n(function(){return R.isLeafType},"get")});Object.defineProperty(g,"isListType",{enumerable:!0,get:n(function(){return R.isListType},"get")});Object.defineProperty(g,"isNamedType",{enumerable:!0,get:n(function(){return R.isNamedType},"get")});Object.defineProperty(g,"isNonNullType",{enumerable:!0,get:n(function(){return R.isNonNullType},"get")});Object.defineProperty(g,"isNullableType",{enumerable:!0,get:n(function(){return R.isNullableType},"get")});Object.defineProperty(g,"isObjectType",{enumerable:!0,get:n(function(){return R.isObjectType},"get")});Object.defineProperty(g,"isOutputType",{enumerable:!0,get:n(function(){return R.isOutputType},"get")});Object.defineProperty(g,"isRequiredArgument",{enumerable:!0,get:n(function(){return R.isRequiredArgument},"get")});Object.defineProperty(g,"isRequiredInputField",{enumerable:!0,get:n(function(){return R.isRequiredInputField},"get")});Object.defineProperty(g,"isScalarType",{enumerable:!0,get:n(function(){return R.isScalarType},"get")});Object.defineProperty(g,"isSchema",{enumerable:!0,get:n(function(){return Du.isSchema},"get")});Object.defineProperty(g,"isSpecifiedDirective",{enumerable:!0,get:n(function(){return et.isSpecifiedDirective},"get")});Object.defineProperty(g,"isSpecifiedScalarType",{enumerable:!0,get:n(function(){return Et.isSpecifiedScalarType},"get")});Object.defineProperty(g,"isType",{enumerable:!0,get:n(function(){return R.isType},"get")});Object.defineProperty(g,"isUnionType",{enumerable:!0,get:n(function(){return R.isUnionType},"get")});Object.defineProperty(g,"isWrappingType",{enumerable:!0,get:n(function(){return R.isWrappingType},"get")});Object.defineProperty(g,"resolveObjMapThunk",{enumerable:!0,get:n(function(){return R.resolveObjMapThunk},"get")});Object.defineProperty(g,"resolveReadonlyArrayThunk",{enumerable:!0,get:n(function(){return R.resolveReadonlyArrayThunk},"get")});Object.defineProperty(g,"specifiedDirectives",{enumerable:!0,get:n(function(){return et.specifiedDirectives},"get")});Object.defineProperty(g,"specifiedScalarTypes",{enumerable:!0,get:n(function(){return Et.specifiedScalarTypes},"get")});Object.defineProperty(g,"validateSchema",{enumerable:!0,get:n(function(){return _d.validateSchema},"get")});var Du=Xt(),R=U(),et=Le(),Et=at(),Ae=Me(),_d=sn(),Ed=$r()});var Id=y(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Object.defineProperty(Q,"BREAK",{enumerable:!0,get:n(function(){return _n.BREAK},"get")});Object.defineProperty(Q,"DirectiveLocation",{enumerable:!0,get:n(function(){return N_.DirectiveLocation},"get")});Object.defineProperty(Q,"Kind",{enumerable:!0,get:n(function(){return b_.Kind},"get")});Object.defineProperty(Q,"Lexer",{enumerable:!0,get:n(function(){return E_.Lexer},"get")});Object.defineProperty(Q,"Location",{enumerable:!0,get:n(function(){return Au.Location},"get")});Object.defineProperty(Q,"OperationTypeNode",{enumerable:!0,get:n(function(){return Au.OperationTypeNode},"get")});Object.defineProperty(Q,"Source",{enumerable:!0,get:n(function(){return T_.Source},"get")});Object.defineProperty(Q,"Token",{enumerable:!0,get:n(function(){return Au.Token},"get")});Object.defineProperty(Q,"TokenKind",{enumerable:!0,get:n(function(){return __.TokenKind},"get")});Object.defineProperty(Q,"getEnterLeaveForKind",{enumerable:!0,get:n(function(){return _n.getEnterLeaveForKind},"get")});Object.defineProperty(Q,"getLocation",{enumerable:!0,get:n(function(){return g_.getLocation},"get")});Object.defineProperty(Q,"getVisitFn",{enumerable:!0,get:n(function(){return _n.getVisitFn},"get")});Object.defineProperty(Q,"isConstValueNode",{enumerable:!0,get:n(function(){return tt.isConstValueNode},"get")});Object.defineProperty(Q,"isDefinitionNode",{enumerable:!0,get:n(function(){return tt.isDefinitionNode},"get")});Object.defineProperty(Q,"isExecutableDefinitionNode",{enumerable:!0,get:n(function(){return tt.isExecutableDefinitionNode},"get")});Object.defineProperty(Q,"isSchemaCoordinateNode",{enumerable:!0,get:n(function(){return tt.isSchemaCoordinateNode},"get")});Object.defineProperty(Q,"isSelectionNode",{enumerable:!0,get:n(function(){return tt.isSelectionNode},"get")});Object.defineProperty(Q,"isTypeDefinitionNode",{enumerable:!0,get:n(function(){return tt.isTypeDefinitionNode},"get")});Object.defineProperty(Q,"isTypeExtensionNode",{enumerable:!0,get:n(function(){return tt.isTypeExtensionNode},"get")});Object.defineProperty(Q,"isTypeNode",{enumerable:!0,get:n(function(){return tt.isTypeNode},"get")});Object.defineProperty(Q,"isTypeSystemDefinitionNode",{enumerable:!0,get:n(function(){return tt.isTypeSystemDefinitionNode},"get")});Object.defineProperty(Q,"isTypeSystemExtensionNode",{enumerable:!0,get:n(function(){return tt.isTypeSystemExtensionNode},"get")});Object.defineProperty(Q,"isValueNode",{enumerable:!0,get:n(function(){return tt.isValueNode},"get")});Object.defineProperty(Q,"parse",{enumerable:!0,get:n(function(){return bn.parse},"get")});Object.defineProperty(Q,"parseConstValue",{enumerable:!0,get:n(function(){return bn.parseConstValue},"get")});Object.defineProperty(Q,"parseSchemaCoordinate",{enumerable:!0,get:n(function(){return bn.parseSchemaCoordinate},"get")});Object.defineProperty(Q,"parseType",{enumerable:!0,get:n(function(){return bn.parseType},"get")});Object.defineProperty(Q,"parseValue",{enumerable:!0,get:n(function(){return bn.parseValue},"get")});Object.defineProperty(Q,"print",{enumerable:!0,get:n(function(){return O_.print},"get")});Object.defineProperty(Q,"printLocation",{enumerable:!0,get:n(function(){return Nd.printLocation},"get")});Object.defineProperty(Q,"printSourceLocation",{enumerable:!0,get:n(function(){return Nd.printSourceLocation},"get")});Object.defineProperty(Q,"visit",{enumerable:!0,get:n(function(){return _n.visit},"get")});Object.defineProperty(Q,"visitInParallel",{enumerable:!0,get:n(function(){return _n.visitInParallel},"get")});var T_=Bn(),g_=qn(),Nd=Eo(),b_=G(),__=dr(),E_=Vr(),bn=Kt(),O_=Re(),_n=Bt(),Au=Ce(),tt=er(),N_=pr()});var Sd=y(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.isAsyncIterable=I_;function I_(e){return typeof e?.[Symbol.asyncIterator]=="function"}n(I_,"isAsyncIterable")});var Ld=y(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.mapAsyncIterator=S_;function S_(e,t){let r=e[Symbol.asyncIterator]();async function i(o){if(o.done)return o;try{return{value:await t(o.value),done:!1}}catch(s){if(typeof r.return=="function")try{await r.return()}catch{}throw s}}return n(i,"mapResult"),{async next(){return i(await r.next())},async return(){return typeof r.return=="function"?i(await r.return()):{value:void 0,done:!0}},async throw(o){if(typeof r.throw=="function")return i(await r.throw(o));throw o},[Symbol.asyncIterator](){return this}}}n(S_,"mapAsyncIterator")});var Rd=y(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.createSourceEventStream=Pd;Ki.subscribe=k_;var L_=Ie(),D_=H(),Ad=Sd(),Dd=cn(),ju=A(),A_=qi(),P_=wi(),En=gn(),R_=Ld(),j_=Or();async function k_(e){arguments.length<2||(0,L_.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await Pd(e);if(!(0,Ad.isAsyncIterable)(t))return t;let r=n(i=>(0,En.execute)({...e,rootValue:i}),"mapSourceToResponse");return(0,R_.mapAsyncIterator)(t,r)}n(k_,"subscribe");function w_(e){let t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}n(w_,"toNormalizedArgs");async function Pd(...e){let t=w_(e),{schema:r,document:i,variableValues:o}=t;(0,En.assertValidExecutionArguments)(r,i,o);let s=(0,En.buildExecutionContext)(t);if(!("schema"in s))return{errors:s};try{let a=await F_(s);if(!(0,Ad.isAsyncIterable)(a))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,D_.inspect)(a)}.`);return a}catch(a){if(a instanceof ju.GraphQLError)return{errors:[a]};throw a}}n(Pd,"createSourceEventStream");async function F_(e){let{schema:t,fragments:r,operation:i,variableValues:o,rootValue:s}=e,a=t.getSubscriptionType();if(a==null)throw new ju.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:i});let u=(0,P_.collectFields)(t,r,o,a,i.selectionSet),[c,l]=[...u.entries()][0],p=(0,En.getFieldDef)(t,a,l[0]);if(!p){let b=l[0].name.value;throw new ju.GraphQLError(`The subscription field "${b}" is not defined.`,{nodes:l})}let f=(0,Dd.addPath)(void 0,c,a.name),m=(0,En.buildResolveInfo)(e,p,l,a,f);try{var v;let b=(0,j_.getArgumentValues)(p,l[0],o),V=e.contextValue,z=await((v=p.subscribe)!==null&&v!==void 0?v:e.subscribeFieldResolver)(s,b,V,m);if(z instanceof Error)throw z;return z}catch(b){throw(0,A_.locatedError)(b,l,(0,Dd.pathToArray)(f))}}n(F_,"executeSubscription")});var kd=y(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Object.defineProperty(Qe,"createSourceEventStream",{enumerable:!0,get:n(function(){return jd.createSourceEventStream},"get")});Object.defineProperty(Qe,"defaultFieldResolver",{enumerable:!0,get:n(function(){return Bi.defaultFieldResolver},"get")});Object.defineProperty(Qe,"defaultTypeResolver",{enumerable:!0,get:n(function(){return Bi.defaultTypeResolver},"get")});Object.defineProperty(Qe,"execute",{enumerable:!0,get:n(function(){return Bi.execute},"get")});Object.defineProperty(Qe,"executeSync",{enumerable:!0,get:n(function(){return Bi.executeSync},"get")});Object.defineProperty(Qe,"getArgumentValues",{enumerable:!0,get:n(function(){return ku.getArgumentValues},"get")});Object.defineProperty(Qe,"getDirectiveValues",{enumerable:!0,get:n(function(){return ku.getDirectiveValues},"get")});Object.defineProperty(Qe,"getVariableValues",{enumerable:!0,get:n(function(){return ku.getVariableValues},"get")});Object.defineProperty(Qe,"responsePathAsArray",{enumerable:!0,get:n(function(){return C_.pathToArray},"get")});Object.defineProperty(Qe,"subscribe",{enumerable:!0,get:n(function(){return jd.subscribe},"get")});var C_=cn(),Bi=gn(),jd=Rd(),ku=Or()});var wd=y(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.NoDeprecatedCustomRule=x_;var wu=Ee(),On=A(),Fu=U();function x_(e){return{Field(t){let r=e.getFieldDef(),i=r?.deprecationReason;if(r&&i!=null){let o=e.getParentType();o!=null||(0,wu.invariant)(!1),e.reportError(new On.GraphQLError(`The field ${o.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},Argument(t){let r=e.getArgument(),i=r?.deprecationReason;if(r&&i!=null){let o=e.getDirective();if(o!=null)e.reportError(new On.GraphQLError(`Directive "@${o.name}" argument "${r.name}" is deprecated. ${i}`,{nodes:t}));else{let s=e.getParentType(),a=e.getFieldDef();s!=null&&a!=null||(0,wu.invariant)(!1),e.reportError(new On.GraphQLError(`Field "${s.name}.${a.name}" argument "${r.name}" is deprecated. ${i}`,{nodes:t}))}}},ObjectField(t){let r=(0,Fu.getNamedType)(e.getParentInputType());if((0,Fu.isInputObjectType)(r)){let i=r.getFields()[t.name.value],o=i?.deprecationReason;o!=null&&e.reportError(new On.GraphQLError(`The input field ${r.name}.${i.name} is deprecated. ${o}`,{nodes:t}))}},EnumValue(t){let r=e.getEnumValue(),i=r?.deprecationReason;if(r&&i!=null){let o=(0,Fu.getNamedType)(e.getInputType());o!=null||(0,wu.invariant)(!1),e.reportError(new On.GraphQLError(`The enum value "${o.name}.${r.name}" is deprecated. ${i}`,{nodes:t}))}}}}n(x_,"NoDeprecatedCustomRule")});var Fd=y(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.NoSchemaIntrospectionCustomRule=G_;var V_=A(),q_=U(),M_=Me();function G_(e){return{Field(t){let r=(0,q_.getNamedType)(e.getType());r&&(0,M_.isIntrospectionType)(r)&&e.reportError(new V_.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}n(G_,"NoSchemaIntrospectionCustomRule")});var xd=y(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});Object.defineProperty(w,"ExecutableDefinitionsRule",{enumerable:!0,get:n(function(){return $_.ExecutableDefinitionsRule},"get")});Object.defineProperty(w,"FieldsOnCorrectTypeRule",{enumerable:!0,get:n(function(){return K_.FieldsOnCorrectTypeRule},"get")});Object.defineProperty(w,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:n(function(){return B_.FragmentsOnCompositeTypesRule},"get")});Object.defineProperty(w,"KnownArgumentNamesRule",{enumerable:!0,get:n(function(){return Y_.KnownArgumentNamesRule},"get")});Object.defineProperty(w,"KnownDirectivesRule",{enumerable:!0,get:n(function(){return H_.KnownDirectivesRule},"get")});Object.defineProperty(w,"KnownFragmentNamesRule",{enumerable:!0,get:n(function(){return J_.KnownFragmentNamesRule},"get")});Object.defineProperty(w,"KnownTypeNamesRule",{enumerable:!0,get:n(function(){return W_.KnownTypeNamesRule},"get")});Object.defineProperty(w,"LoneAnonymousOperationRule",{enumerable:!0,get:n(function(){return z_.LoneAnonymousOperationRule},"get")});Object.defineProperty(w,"LoneSchemaDefinitionRule",{enumerable:!0,get:n(function(){return vE.LoneSchemaDefinitionRule},"get")});Object.defineProperty(w,"MaxIntrospectionDepthRule",{enumerable:!0,get:n(function(){return hE.MaxIntrospectionDepthRule},"get")});Object.defineProperty(w,"NoDeprecatedCustomRule",{enumerable:!0,get:n(function(){return IE.NoDeprecatedCustomRule},"get")});Object.defineProperty(w,"NoFragmentCyclesRule",{enumerable:!0,get:n(function(){return X_.NoFragmentCyclesRule},"get")});Object.defineProperty(w,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:n(function(){return SE.NoSchemaIntrospectionCustomRule},"get")});Object.defineProperty(w,"NoUndefinedVariablesRule",{enumerable:!0,get:n(function(){return Z_.NoUndefinedVariablesRule},"get")});Object.defineProperty(w,"NoUnusedFragmentsRule",{enumerable:!0,get:n(function(){return eE.NoUnusedFragmentsRule},"get")});Object.defineProperty(w,"NoUnusedVariablesRule",{enumerable:!0,get:n(function(){return tE.NoUnusedVariablesRule},"get")});Object.defineProperty(w,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:n(function(){return rE.OverlappingFieldsCanBeMergedRule},"get")});Object.defineProperty(w,"PossibleFragmentSpreadsRule",{enumerable:!0,get:n(function(){return nE.PossibleFragmentSpreadsRule},"get")});Object.defineProperty(w,"PossibleTypeExtensionsRule",{enumerable:!0,get:n(function(){return NE.PossibleTypeExtensionsRule},"get")});Object.defineProperty(w,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:n(function(){return iE.ProvidedRequiredArgumentsRule},"get")});Object.defineProperty(w,"ScalarLeafsRule",{enumerable:!0,get:n(function(){return oE.ScalarLeafsRule},"get")});Object.defineProperty(w,"SingleFieldSubscriptionsRule",{enumerable:!0,get:n(function(){return sE.SingleFieldSubscriptionsRule},"get")});Object.defineProperty(w,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:n(function(){return EE.UniqueArgumentDefinitionNamesRule},"get")});Object.defineProperty(w,"UniqueArgumentNamesRule",{enumerable:!0,get:n(function(){return aE.UniqueArgumentNamesRule},"get")});Object.defineProperty(w,"UniqueDirectiveNamesRule",{enumerable:!0,get:n(function(){return OE.UniqueDirectiveNamesRule},"get")});Object.defineProperty(w,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:n(function(){return uE.UniqueDirectivesPerLocationRule},"get")});Object.defineProperty(w,"UniqueEnumValueNamesRule",{enumerable:!0,get:n(function(){return bE.UniqueEnumValueNamesRule},"get")});Object.defineProperty(w,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:n(function(){return _E.UniqueFieldDefinitionNamesRule},"get")});Object.defineProperty(w,"UniqueFragmentNamesRule",{enumerable:!0,get:n(function(){return cE.UniqueFragmentNamesRule},"get")});Object.defineProperty(w,"UniqueInputFieldNamesRule",{enumerable:!0,get:n(function(){return lE.UniqueInputFieldNamesRule},"get")});Object.defineProperty(w,"UniqueOperationNamesRule",{enumerable:!0,get:n(function(){return pE.UniqueOperationNamesRule},"get")});Object.defineProperty(w,"UniqueOperationTypesRule",{enumerable:!0,get:n(function(){return TE.UniqueOperationTypesRule},"get")});Object.defineProperty(w,"UniqueTypeNamesRule",{enumerable:!0,get:n(function(){return gE.UniqueTypeNamesRule},"get")});Object.defineProperty(w,"UniqueVariableNamesRule",{enumerable:!0,get:n(function(){return dE.UniqueVariableNamesRule},"get")});Object.defineProperty(w,"ValidationContext",{enumerable:!0,get:n(function(){return Q_.ValidationContext},"get")});Object.defineProperty(w,"ValuesOfCorrectTypeRule",{enumerable:!0,get:n(function(){return fE.ValuesOfCorrectTypeRule},"get")});Object.defineProperty(w,"VariablesAreInputTypesRule",{enumerable:!0,get:n(function(){return mE.VariablesAreInputTypesRule},"get")});Object.defineProperty(w,"VariablesInAllowedPositionRule",{enumerable:!0,get:n(function(){return yE.VariablesInAllowedPositionRule},"get")});Object.defineProperty(w,"recommendedRules",{enumerable:!0,get:n(function(){return Cd.recommendedRules},"get")});Object.defineProperty(w,"specifiedRules",{enumerable:!0,get:n(function(){return Cd.specifiedRules},"get")});Object.defineProperty(w,"validate",{enumerable:!0,get:n(function(){return U_.validate},"get")});var U_=vn(),Q_=mu(),Cd=pu(),$_=Ls(),K_=As(),B_=Rs(),Y_=js(),H_=Cs(),J_=Vs(),W_=Gs(),z_=Qs(),X_=Js(),Z_=zs(),eE=Zs(),tE=ta(),rE=pa(),nE=ma(),iE=Ta(),oE=Ea(),sE=Ra(),aE=Ca(),uE=Ga(),cE=Ha(),lE=Wa(),pE=Xa(),dE=iu(),fE=su(),mE=uu(),yE=lu(),hE=Ys(),vE=Ks(),TE=eu(),gE=ru(),bE=Qa(),_E=Ba(),EE=wa(),OE=Va(),NE=ha(),IE=wd(),SE=Fd()});var Vd=y(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});Object.defineProperty(or,"GraphQLError",{enumerable:!0,get:n(function(){return Vu.GraphQLError},"get")});Object.defineProperty(or,"formatError",{enumerable:!0,get:n(function(){return Vu.formatError},"get")});Object.defineProperty(or,"locatedError",{enumerable:!0,get:n(function(){return DE.locatedError},"get")});Object.defineProperty(or,"printError",{enumerable:!0,get:n(function(){return Vu.printError},"get")});Object.defineProperty(or,"syntaxError",{enumerable:!0,get:n(function(){return LE.syntaxError},"get")});var Vu=A(),LE=Pr(),DE=qi()});var Mu=y(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.getIntrospectionQuery=AE;function AE(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},r=t.descriptions?"description":"",i=t.specifiedByUrl?"specifiedByURL":"",o=t.directiveIsRepeatable?"isRepeatable":"",s=t.schemaDescription?r:"";function a(c){return t.inputValueDeprecation?c:""}n(a,"inputDeprecation");let u=t.oneOf?"isOneOf":"";return`
query IntrospectionQuery {
__schema {
${s}
queryType { name kind }
mutationType { name kind }
subscriptionType { name kind }
types {
...FullType
}
directives {
name
${r}
${o}
locations
args${a("(includeDeprecated: true)")} {
...InputValue
}
}
}
}
fragment FullType on __Type {
kind
name
${r}
${i}
${u}
fields(includeDeprecated: true) {
name
${r}
args${a("(includeDeprecated: true)")} {
...InputValue
}
type {
...TypeRef
}
isDeprecated
deprecationReason
}
inputFields${a("(includeDeprecated: true)")} {
...InputValue
}
interfaces {
...TypeRef
}
enumValues(includeDeprecated: true) {
name
${r}
isDeprecated
deprecationReason
}
possibleTypes {
...TypeRef
}
}
fragment InputValue on __InputValue {
name
${r}
type { ...TypeRef }
defaultValue
${a("isDeprecated")}
${a("deprecationReason")}
}
fragment TypeRef on __Type {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
}
}
}
}
}
}
}
}
}
}
`}n(AE,"getIntrospectionQuery")});var qd=y(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.getOperationAST=RE;var PE=G();function RE(e,t){let r=null;for(let o of e.definitions)if(o.kind===PE.Kind.OPERATION_DEFINITION){var i;if(t==null){if(r)return null;r=o}else if(((i=o.name)===null||i===void 0?void 0:i.value)===t)return o}return r}n(RE,"getOperationAST")});var Md=y(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.getOperationRootType=jE;var Yi=A();function jE(e,t){if(t.operation==="query"){let r=e.getQueryType();if(!r)throw new Yi.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 Yi.GraphQLError("Schema is not configured for mutations.",{nodes:t});return r}if(t.operation==="subscription"){let r=e.getSubscriptionType();if(!r)throw new Yi.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return r}throw new Yi.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}n(jE,"getOperationRootType")});var Gd=y(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.introspectionFromSchema=xE;var kE=Ee(),wE=Kt(),FE=gn(),CE=Mu();function xE(e,t){let r={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},i=(0,wE.parse)((0,CE.getIntrospectionQuery)(r)),o=(0,FE.executeSync)({schema:e,document:i});return!o.errors&&o.data||(0,kE.invariant)(!1),o.data}n(xE,"introspectionFromSchema")});var Qd=y($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.buildClientSchema=$E;var VE=Ie(),ke=H(),Ud=it(),Hi=Ur(),qE=Kt(),we=U(),ME=Le(),lt=Me(),GE=at(),UE=Xt(),QE=fn();function $E(e,t){(0,Ud.isObjectLike)(e)&&(0,Ud.isObjectLike)(e.__schema)||(0,VE.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,ke.inspect)(e)}.`);let r=e.__schema,i=(0,Hi.keyValMap)(r.types,T=>T.name,T=>m(T));for(let T of[...GE.specifiedScalarTypes,...lt.introspectionTypes])i[T.name]&&(i[T.name]=T);let o=r.queryType?p(r.queryType):null,s=r.mutationType?p(r.mutationType):null,a=r.subscriptionType?p(r.subscriptionType):null,u=r.directives?r.directives.map(lo):[];return new UE.GraphQLSchema({description:r.description,query:o,mutation:s,subscription:a,types:Object.values(i),directives:u,assumeValid:t?.assumeValid});function c(T){if(T.kind===lt.TypeKind.LIST){let j=T.ofType;if(!j)throw new Error("Decorated type deeper than introspection query.");return new we.GraphQLList(c(j))}if(T.kind===lt.TypeKind.NON_NULL){let j=T.ofType;if(!j)throw new Error("Decorated type deeper than introspection query.");let Pe=c(j);return new we.GraphQLNonNull((0,we.assertNullableType)(Pe))}return l(T)}function l(T){let j=T.name;if(!j)throw new Error(`Unknown type reference: ${(0,ke.inspect)(T)}.`);let Pe=i[j];if(!Pe)throw new Error(`Invalid or incomplete schema, unknown type: ${j}. Ensure that a full introspection query is used in order to build a client schema.`);return Pe}function p(T){return(0,we.assertObjectType)(l(T))}function f(T){return(0,we.assertInterfaceType)(l(T))}function m(T){if(T!=null&&T.name!=null&&T.kind!=null)switch(T.kind){case lt.TypeKind.SCALAR:return v(T);case lt.TypeKind.OBJECT:return V(T);case lt.TypeKind.INTERFACE:return J(T);case lt.TypeKind.UNION:return z(T);case lt.TypeKind.ENUM:return ne(T);case lt.TypeKind.INPUT_OBJECT:return ie(T)}let j=(0,ke.inspect)(T);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${j}.`)}function v(T){return new we.GraphQLScalarType({name:T.name,description:T.description,specifiedByURL:T.specifiedByURL})}function b(T){if(T.interfaces===null&&T.kind===lt.TypeKind.INTERFACE)return[];if(!T.interfaces){let j=(0,ke.inspect)(T);throw new Error(`Introspection result missing interfaces: ${j}.`)}return T.interfaces.map(f)}function V(T){return new we.GraphQLObjectType({name:T.name,description:T.description,interfaces:n(()=>b(T),"interfaces"),fields:n(()=>ge(T),"fields")})}function J(T){return new we.GraphQLInterfaceType({name:T.name,description:T.description,interfaces:n(()=>b(T),"interfaces"),fields:n(()=>ge(T),"fields")})}function z(T){if(!T.possibleTypes){let j=(0,ke.inspect)(T);throw new Error(`Introspection result missing possibleTypes: ${j}.`)}return new we.GraphQLUnionType({name:T.name,description:T.description,types:n(()=>T.possibleTypes.map(p),"types")})}function ne(T){if(!T.enumValues){let j=(0,ke.inspect)(T);throw new Error(`Introspection result missing enumValues: ${j}.`)}return new we.GraphQLEnumType({name:T.name,description:T.description,values:(0,Hi.keyValMap)(T.enumValues,j=>j.name,j=>({description:j.description,deprecationReason:j.deprecationReason}))})}function ie(T){if(!T.inputFields){let j=(0,ke.inspect)(T);throw new Error(`Introspection result missing inputFields: ${j}.`)}return new we.GraphQLInputObjectType({name:T.name,description:T.description,fields:n(()=>nt(T.inputFields),"fields"),isOneOf:T.isOneOf})}function ge(T){if(!T.fields)throw new Error(`Introspection result missing fields: ${(0,ke.inspect)(T)}.`);return(0,Hi.keyValMap)(T.fields,j=>j.name,mt)}function mt(T){let j=c(T.type);if(!(0,we.isOutputType)(j)){let Pe=(0,ke.inspect)(j);throw new Error(`Introspection must provide output type for fields, but received: ${Pe}.`)}if(!T.args){let Pe=(0,ke.inspect)(T);throw new Error(`Introspection result missing field args: ${Pe}.`)}return{description:T.description,deprecationReason:T.deprecationReason,type:j,args:nt(T.args)}}function nt(T){return(0,Hi.keyValMap)(T,j=>j.name,St)}function St(T){let j=c(T.type);if(!(0,we.isInputType)(j)){let ar=(0,ke.inspect)(j);throw new Error(`Introspection must provide input type for arguments, but received: ${ar}.`)}let Pe=T.defaultValue!=null?(0,QE.valueFromAST)((0,qE.parseValue)(T.defaultValue),j):void 0;return{description:T.description,type:j,defaultValue:Pe,deprecationReason:T.deprecationReason}}function lo(T){if(!T.args){let j=(0,ke.inspect)(T);throw new Error(`Introspection result missing directive args: ${j}.`)}if(!T.locations){let j=(0,ke.inspect)(T);throw new Error(`Introspection result missing directive locations: ${j}.`)}return new ME.GraphQLDirective({name:T.name,description:T.description,isRepeatable:T.isRepeatable,locations:T.locations.slice(),args:nt(T.args)})}}n($E,"buildClientSchema")});var Bu=y(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.extendSchema=WE;Wi.extendSchemaImpl=zd;var KE=Ie(),BE=H(),YE=Ee(),HE=wt(),Nn=Jn(),$e=G(),$d=er(),ae=U(),In=Le(),Jd=Me(),Wd=at(),Kd=Xt(),JE=vn(),Ku=Or(),Bd=fn();function WE(e,t,r){(0,Kd.assertSchema)(e),t!=null&&t.kind===$e.Kind.DOCUMENT||(0,KE.devAssert)(!1,"Must provide valid Document AST."),r?.assumeValid!==!0&&r?.assumeValidSDL!==!0&&(0,JE.assertValidSDLExtension)(t,e);let i=e.toConfig(),o=zd(i,t,r);return i===o?e:new Kd.GraphQLSchema(o)}n(WE,"extendSchema");function zd(e,t,r){var i,o,s,a;let u=[],c=Object.create(null),l=[],p,f=[];for(let h of t.definitions)if(h.kind===$e.Kind.SCHEMA_DEFINITION)p=h;else if(h.kind===$e.Kind.SCHEMA_EXTENSION)f.push(h);else if((0,$d.isTypeDefinitionNode)(h))u.push(h);else if((0,$d.isTypeExtensionNode)(h)){let S=h.name.value,O=c[S];c[S]=O?O.concat([h]):[h]}else h.kind===$e.Kind.DIRECTIVE_DEFINITION&&l.push(h);if(Object.keys(c).length===0&&u.length===0&&l.length===0&&f.length===0&&p==null)return e;let m=Object.create(null);for(let h of e.types)m[h.name]=ne(h);for(let h of u){var v;let S=h.name.value;m[S]=(v=Yd[S])!==null&&v!==void 0?v:pm(h)}let b={query:e.query&&J(e.query),mutation:e.mutation&&J(e.mutation),subscription:e.subscription&&J(e.subscription),...p&&Pe([p]),...Pe(f)};return{description:(i=p)===null||i===void 0||(o=i.description)===null||o===void 0?void 0:o.value,...b,types:Object.values(m),directives:[...e.directives.map(z),...l.map(lm)],extensions:Object.create(null),astNode:(s=p)!==null&&s!==void 0?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:(a=r?.assumeValid)!==null&&a!==void 0?a:!1};function V(h){return(0,ae.isListType)(h)?new ae.GraphQLList(V(h.ofType)):(0,ae.isNonNullType)(h)?new ae.GraphQLNonNull(V(h.ofType)):J(h)}function J(h){return m[h.name]}function z(h){let S=h.toConfig();return new In.GraphQLDirective({...S,args:(0,Nn.mapValue)(S.args,j)})}function ne(h){if((0,Jd.isIntrospectionType)(h)||(0,Wd.isSpecifiedScalarType)(h))return h;if((0,ae.isScalarType)(h))return mt(h);if((0,ae.isObjectType)(h))return nt(h);if((0,ae.isInterfaceType)(h))return St(h);if((0,ae.isUnionType)(h))return lo(h);if((0,ae.isEnumType)(h))return ge(h);if((0,ae.isInputObjectType)(h))return ie(h);(0,YE.invariant)(!1,"Unexpected type: "+(0,BE.inspect)(h))}function ie(h){var S;let O=h.toConfig(),L=(S=c[O.name])!==null&&S!==void 0?S:[];return new ae.GraphQLInputObjectType({...O,fields:n(()=>({...(0,Nn.mapValue)(O.fields,te=>({...te,type:V(te.type)})),...bc(L)}),"fields"),extensionASTNodes:O.extensionASTNodes.concat(L)})}function ge(h){var S;let O=h.toConfig(),L=(S=c[h.name])!==null&&S!==void 0?S:[];return new ae.GraphQLEnumType({...O,values:{...O.values,..._c(L)},extensionASTNodes:O.extensionASTNodes.concat(L)})}function mt(h){var S;let O=h.toConfig(),L=(S=c[O.name])!==null&&S!==void 0?S:[],te=O.specifiedByURL;for(let oe of L){var me;te=(me=Hd(oe))!==null&&me!==void 0?me:te}return new ae.GraphQLScalarType({...O,specifiedByURL:te,extensionASTNodes:O.extensionASTNodes.concat(L)})}function nt(h){var S;let O=h.toConfig(),L=(S=c[O.name])!==null&&S!==void 0?S:[];return new ae.GraphQLObjectType({...O,interfaces:n(()=>[...h.getInterfaces().map(J),...Cn(L)],"interfaces"),fields:n(()=>({...(0,Nn.mapValue)(O.fields,T),...Fn(L)}),"fields"),extensionASTNodes:O.extensionASTNodes.concat(L)})}function St(h){var S;let O=h.toConfig(),L=(S=c[O.name])!==null&&S!==void 0?S:[];return new ae.GraphQLInterfaceType({...O,interfaces:n(()=>[...h.getInterfaces().map(J),...Cn(L)],"interfaces"),fields:n(()=>({...(0,Nn.mapValue)(O.fields,T),...Fn(L)}),"fields"),extensionASTNodes:O.extensionASTNodes.concat(L)})}function lo(h){var S;let O=h.toConfig(),L=(S=c[O.name])!==null&&S!==void 0?S:[];return new ae.GraphQLUnionType({...O,types:n(()=>[...h.getTypes().map(J),...Ec(L)],"types"),extensionASTNodes:O.extensionASTNodes.concat(L)})}function T(h){return{...h,type:V(h.type),args:h.args&&(0,Nn.mapValue)(h.args,j)}}function j(h){return{...h,type:V(h.type)}}function Pe(h){let S={};for(let L of h){var O;let te=(O=L.operationTypes)!==null&&O!==void 0?O:[];for(let me of te)S[me.operation]=ar(me.type)}return S}function ar(h){var S;let O=h.name.value,L=(S=Yd[O])!==null&&S!==void 0?S:m[O];if(L===void 0)throw new Error(`Unknown type: "${O}".`);return L}function Ar(h){return h.kind===$e.Kind.LIST_TYPE?new ae.GraphQLList(Ar(h.type)):h.kind===$e.Kind.NON_NULL_TYPE?new ae.GraphQLNonNull(Ar(h.type)):ar(h)}function lm(h){var S;return new In.GraphQLDirective({name:h.name.value,description:(S=h.description)===null||S===void 0?void 0:S.value,locations:h.locations.map(({value:O})=>O),isRepeatable:h.repeatable,args:gc(h.arguments),astNode:h})}function Fn(h){let S=Object.create(null);for(let te of h){var O;let me=(O=te.fields)!==null&&O!==void 0?O:[];for(let oe of me){var L;S[oe.name.value]={type:Ar(oe.type),description:(L=oe.description)===null||L===void 0?void 0:L.value,args:gc(oe.arguments),deprecationReason:Ji(oe),astNode:oe}}}return S}function gc(h){let S=h??[],O=Object.create(null);for(let te of S){var L;let me=Ar(te.type);O[te.name.value]={type:me,description:(L=te.description)===null||L===void 0?void 0:L.value,defaultValue:(0,Bd.valueFromAST)(te.defaultValue,me),deprecationReason:Ji(te),astNode:te}}return O}function bc(h){let S=Object.create(null);for(let te of h){var O;let me=(O=te.fields)!==null&&O!==void 0?O:[];for(let oe of me){var L;let ur=Ar(oe.type);S[oe.name.value]={type:ur,description:(L=oe.description)===null||L===void 0?void 0:L.value,defaultValue:(0,Bd.valueFromAST)(oe.defaultValue,ur),deprecationReason:Ji(oe),astNode:oe}}}return S}function _c(h){let S=Object.create(null);for(let te of h){var O;let me=(O=te.values)!==null&&O!==void 0?O:[];for(let oe of me){var L;S[oe.name.value]={description:(L=oe.description)===null||L===void 0?void 0:L.value,deprecationReason:Ji(oe),astNode:oe}}}return S}function Cn(h){return h.flatMap(S=>{var O,L;return(O=(L=S.interfaces)===null||L===void 0?void 0:L.map(ar))!==null&&O!==void 0?O:[]})}function Ec(h){return h.flatMap(S=>{var O,L;return(O=(L=S.types)===null||L===void 0?void 0:L.map(ar))!==null&&O!==void 0?O:[]})}function pm(h){var S;let O=h.name.value,L=(S=c[O])!==null&&S!==void 0?S:[];switch(h.kind){case $e.Kind.OBJECT_TYPE_DEFINITION:{var te;let Be=[h,...L];return new ae.GraphQLObjectType({name:O,description:(te=h.description)===null||te===void 0?void 0:te.value,interfaces:n(()=>Cn(Be),"interfaces"),fields:n(()=>Fn(Be),"fields"),astNode:h,extensionASTNodes:L})}case $e.Kind.INTERFACE_TYPE_DEFINITION:{var me;let Be=[h,...L];return new ae.GraphQLInterfaceType({name:O,description:(me=h.description)===null||me===void 0?void 0:me.value,interfaces:n(()=>Cn(Be),"interfaces"),fields:n(()=>Fn(Be),"fields"),astNode:h,extensionASTNodes:L})}case $e.Kind.ENUM_TYPE_DEFINITION:{var oe;let Be=[h,...L];return new ae.GraphQLEnumType({name:O,description:(oe=h.description)===null||oe===void 0?void 0:oe.value,values:_c(Be),astNode:h,extensionASTNodes:L})}case $e.Kind.UNION_TYPE_DEFINITION:{var ur;let Be=[h,...L];return new ae.GraphQLUnionType({name:O,description:(ur=h.description)===null||ur===void 0?void 0:ur.value,types:n(()=>Ec(Be),"types"),astNode:h,extensionASTNodes:L})}case $e.Kind.SCALAR_TYPE_DEFINITION:{var po;return new ae.GraphQLScalarType({name:O,description:(po=h.description)===null||po===void 0?void 0:po.value,specifiedByURL:Hd(h),astNode:h,extensionASTNodes:L})}case $e.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var fo;let Be=[h,...L];return new ae.GraphQLInputObjectType({name:O,description:(fo=h.description)===null||fo===void 0?void 0:fo.value,fields:n(()=>bc(Be),"fields"),astNode:h,extensionASTNodes:L,isOneOf:zE(h)})}}}}n(zd,"extendSchemaImpl");var Yd=(0,HE.keyMap)([...Wd.specifiedScalarTypes,...Jd.introspectionTypes],e=>e.name);function Ji(e){let t=(0,Ku.getDirectiveValues)(In.GraphQLDeprecatedDirective,e);return t?.reason}n(Ji,"getDeprecationReason");function Hd(e){let t=(0,Ku.getDirectiveValues)(In.GraphQLSpecifiedByDirective,e);return t?.url}n(Hd,"getSpecifiedByURL");function zE(e){return!!(0,Ku.getDirectiveValues)(In.GraphQLOneOfDirective,e)}n(zE,"isOneOf")});var Zd=y(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.buildASTSchema=Xd;zi.buildSchema=oO;var XE=Ie(),ZE=G(),eO=Kt(),tO=Le(),rO=Xt(),nO=vn(),iO=Bu();function Xd(e,t){e!=null&&e.kind===ZE.Kind.DOCUMENT||(0,XE.devAssert)(!1,"Must provide valid Document AST."),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&(0,nO.assertValidSDL)(e);let r={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},i=(0,iO.extendSchemaImpl)(r,e,t);if(i.astNode==null)for(let s of i.types)switch(s.name){case"Query":i.query=s;break;case"Mutation":i.mutation=s;break;case"Subscription":i.subscription=s;break}let o=[...i.directives,...tO.specifiedDirectives.filter(s=>i.directives.every(a=>a.name!==s.name))];return new rO.GraphQLSchema({...i,directives:o})}n(Xd,"buildASTSchema");function oO(e,t){let r=(0,eO.parse)(e,{noLocation:t?.noLocation,allowLegacyFragmentVariables:t?.allowLegacyFragmentVariables});return Xd(r,{assumeValidSDL:t?.assumeValidSDL,assumeValid:t?.assumeValid})}n(oO,"buildSchema")});var rf=y(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.lexicographicSortSchema=dO;var sO=H(),aO=Ee(),uO=Ur(),ef=Qr(),Se=U(),cO=Le(),lO=Me(),pO=Xt();function dO(e){let t=e.toConfig(),r=(0,uO.keyValMap)(Yu(t.types),m=>m.name,f);return new pO.GraphQLSchema({...t,types:Object.values(r),directives:Yu(t.directives).map(a),query:s(t.query),mutation:s(t.mutation),subscription:s(t.subscription)});function i(m){return(0,Se.isListType)(m)?new Se.GraphQLList(i(m.ofType)):(0,Se.isNonNullType)(m)?new Se.GraphQLNonNull(i(m.ofType)):o(m)}function o(m){return r[m.name]}function s(m){return m&&o(m)}function a(m){let v=m.toConfig();return new cO.GraphQLDirective({...v,locations:tf(v.locations,b=>b),args:u(v.args)})}function u(m){return Xi(m,v=>({...v,type:i(v.type)}))}function c(m){return Xi(m,v=>({...v,type:i(v.type),args:v.args&&u(v.args)}))}function l(m){return Xi(m,v=>({...v,type:i(v.type)}))}function p(m){return Yu(m).map(o)}function f(m){if((0,Se.isScalarType)(m)||(0,lO.isIntrospectionType)(m))return m;if((0,Se.isObjectType)(m)){let v=m.toConfig();return new Se.GraphQLObjectType({...v,interfaces:n(()=>p(v.interfaces),"interfaces"),fields:n(()=>c(v.fields),"fields")})}if((0,Se.isInterfaceType)(m)){let v=m.toConfig();return new Se.GraphQLInterfaceType({...v,interfaces:n(()=>p(v.interfaces),"interfaces"),fields:n(()=>c(v.fields),"fields")})}if((0,Se.isUnionType)(m)){let v=m.toConfig();return new Se.GraphQLUnionType({...v,types:n(()=>p(v.types),"types")})}if((0,Se.isEnumType)(m)){let v=m.toConfig();return new Se.GraphQLEnumType({...v,values:Xi(v.values,b=>b)})}if((0,Se.isInputObjectType)(m)){let v=m.toConfig();return new Se.GraphQLInputObjectType({...v,fields:n(()=>l(v.fields),"fields")})}(0,aO.invariant)(!1,"Unexpected type: "+(0,sO.inspect)(m))}}n(dO,"lexicographicSortSchema");function Xi(e,t){let r=Object.create(null);for(let i of Object.keys(e).sort(ef.naturalCompare))r[i]=t(e[i]);return r}n(Xi,"sortObjMap");function Yu(e){return tf(e,t=>t.name)}n(Yu,"sortByName");function tf(e,t){return e.slice().sort((r,i)=>{let o=t(r),s=t(i);return(0,ef.naturalCompare)(o,s)})}n(tf,"sortBy")});var lf=y(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.printIntrospectionSchema=gO;Sn.printSchema=TO;Sn.printType=sf;var fO=H(),mO=Ee(),yO=Fr(),Wu=G(),Zi=Re(),Sr=U(),zu=Le(),nf=Me(),hO=at(),vO=rn();function TO(e){return of(e,t=>!(0,zu.isSpecifiedDirective)(t),bO)}n(TO,"printSchema");function gO(e){return of(e,zu.isSpecifiedDirective,nf.isIntrospectionType)}n(gO,"printIntrospectionSchema");function bO(e){return!(0,hO.isSpecifiedScalarType)(e)&&!(0,nf.isIntrospectionType)(e)}n(bO,"isDefinedType");function of(e,t,r){let i=e.getDirectives().filter(t),o=Object.values(e.getTypeMap()).filter(r);return[_O(e),...i.map(s=>AO(s)),...o.map(s=>sf(s))].filter(Boolean).join(`
`)}n(of,"printFilteredSchema");function _O(e){if(e.description==null&&EO(e))return;let t=[],r=e.getQueryType();r&&t.push(` query: ${r.name}`);let i=e.getMutationType();i&&t.push(` mutation: ${i.name}`);let o=e.getSubscriptionType();return o&&t.push(` subscription: ${o.name}`),Ke(e)+`schema {
${t.join(`
`)}
}`}n(_O,"printSchemaDefinition");function EO(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let r=e.getMutationType();if(r&&r.name!=="Mutation")return!1;let i=e.getSubscriptionType();return!(i&&i.name!=="Subscription")}n(EO,"isSchemaOfCommonNames");function sf(e){if((0,Sr.isScalarType)(e))return OO(e);if((0,Sr.isObjectType)(e))return NO(e);if((0,Sr.isInterfaceType)(e))return IO(e);if((0,Sr.isUnionType)(e))return SO(e);if((0,Sr.isEnumType)(e))return LO(e);if((0,Sr.isInputObjectType)(e))return DO(e);(0,mO.invariant)(!1,"Unexpected type: "+(0,fO.inspect)(e))}n(sf,"printType");function OO(e){return Ke(e)+`scalar ${e.name}`+PO(e)}n(OO,"printScalar");function af(e){let t=e.getInterfaces();return t.length?" implements "+t.map(r=>r.name).join(" & "):""}n(af,"printImplementedInterfaces");function NO(e){return Ke(e)+`type ${e.name}`+af(e)+uf(e)}n(NO,"printObject");function IO(e){return Ke(e)+`interface ${e.name}`+af(e)+uf(e)}n(IO,"printInterface");function SO(e){let t=e.getTypes(),r=t.length?" = "+t.join(" | "):"";return Ke(e)+"union "+e.name+r}n(SO,"printUnion");function LO(e){let t=e.getValues().map((r,i)=>Ke(r," ",!i)+" "+r.name+Zu(r.deprecationReason));return Ke(e)+`enum ${e.name}`+Xu(t)}n(LO,"printEnum");function DO(e){let t=Object.values(e.getFields()).map((r,i)=>Ke(r," ",!i)+" "+Ju(r));return Ke(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+Xu(t)}n(DO,"printInputObject");function uf(e){let t=Object.values(e.getFields()).map((r,i)=>Ke(r," ",!i)+" "+r.name+cf(r.args," ")+": "+String(r.type)+Zu(r.deprecationReason));return Xu(t)}n(uf,"printFields");function Xu(e){return e.length!==0?` {
`+e.join(`
`)+`
}`:""}n(Xu,"printBlock");function cf(e,t=""){return e.length===0?"":e.every(r=>!r.description)?"("+e.map(Ju).join(", ")+")":`(
`+e.map((r,i)=>Ke(r," "+t,!i)+" "+t+Ju(r)).join(`
`)+`
`+t+")"}n(cf,"printArgs");function Ju(e){let t=(0,vO.astFromValue)(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=` = ${(0,Zi.print)(t)}`),r+Zu(e.deprecationReason)}n(Ju,"printInputValue");function AO(e){return Ke(e)+"directive @"+e.name+cf(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}n(AO,"printDirective");function Zu(e){return e==null?"":e!==zu.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,Zi.print)({kind:Wu.Kind.STRING,value:e})})`:" @deprecated"}n(Zu,"printDeprecated");function PO(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,Zi.print)({kind:Wu.Kind.STRING,value:e.specifiedByURL})})`}n(PO,"printSpecifiedByURL");function Ke(e,t="",r=!0){let{description:i}=e;if(i==null)return"";let o=(0,Zi.print)({kind:Wu.Kind.STRING,value:i,block:(0,yO.isPrintableAsBlockString)(i)});return(t&&!r?`
`+t:t)+o.replace(/\n/g,`
`+t)+`
`}n(Ke,"printDescription")});var pf=y(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.concatAST=jO;var RO=G();function jO(e){let t=[];for(let r of e)t.push(...r.definitions);return{kind:RO.Kind.DOCUMENT,definitions:t}}n(jO,"concatAST")});var mf=y(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.separateOperations=wO;var eo=G(),kO=Bt();function wO(e){let t=[],r=Object.create(null);for(let o of e.definitions)switch(o.kind){case eo.Kind.OPERATION_DEFINITION:t.push(o);break;case eo.Kind.FRAGMENT_DEFINITION:r[o.name.value]=df(o.selectionSet);break;default:}let i=Object.create(null);for(let o of t){let s=new Set;for(let u of df(o.selectionSet))ff(s,r,u);let a=o.name?o.name.value:"";i[a]={kind:eo.Kind.DOCUMENT,definitions:e.definitions.filter(u=>u===o||u.kind===eo.Kind.FRAGMENT_DEFINITION&&s.has(u.name.value))}}return i}n(wO,"separateOperations");function ff(e,t,r){if(!e.has(r)){e.add(r);let i=t[r];if(i!==void 0)for(let o of i)ff(e,t,o)}}n(ff,"collectTransitiveDependencies");function df(e){let t=[];return(0,kO.visit)(e,{FragmentSpread(r){t.push(r.name.value)}}),t}n(df,"collectDependencies")});var vf=y(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.stripIgnoredCharacters=CO;var FO=Fr(),yf=Vr(),hf=Bn(),rc=dr();function CO(e){let t=(0,hf.isSource)(e)?e:new hf.Source(e),r=t.body,i=new yf.Lexer(t),o="",s=!1;for(;i.advance().kind!==rc.TokenKind.EOF;){let a=i.token,u=a.kind,c=!(0,yf.isPunctuatorTokenKind)(a.kind);s&&(c||a.kind===rc.TokenKind.SPREAD)&&(o+=" ");let l=r.slice(a.start,a.end);u===rc.TokenKind.BLOCK_STRING?o+=(0,FO.printBlockString)(a.value,{minimize:!0}):o+=l,s=c}return o}n(CO,"stripIgnoredCharacters")});var gf=y(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.assertValidName=MO;to.isValidNameError=Tf;var xO=Ie(),VO=A(),qO=$r();function MO(e){let t=Tf(e);if(t)throw t;return e}n(MO,"assertValidName");function Tf(e){if(typeof e=="string"||(0,xO.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new VO.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,qO.assertName)(e)}catch(t){return t}}n(Tf,"isValidNameError")});var Lf=y(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.DangerousChangeType=pt.BreakingChangeType=void 0;pt.findBreakingChanges=BO;pt.findDangerousChanges=YO;var GO=H(),If=Ee(),bf=wt(),UO=Re(),Y=U(),QO=at(),$O=rn(),KO=ia(),pe;pt.BreakingChangeType=pe;(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"})(pe||(pt.BreakingChangeType=pe={}));var rt;pt.DangerousChangeType=rt;(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"})(rt||(pt.DangerousChangeType=rt={}));function BO(e,t){return Sf(e,t).filter(r=>r.type in pe)}n(BO,"findBreakingChanges");function YO(e,t){return Sf(e,t).filter(r=>r.type in rt)}n(YO,"findDangerousChanges");function Sf(e,t){return[...JO(e,t),...HO(e,t)]}n(Sf,"findSchemaChanges");function HO(e,t){let r=[],i=Ot(e.getDirectives(),t.getDirectives());for(let o of i.removed)r.push({type:pe.DIRECTIVE_REMOVED,description:`${o.name} was removed.`});for(let[o,s]of i.persisted){let a=Ot(o.args,s.args);for(let u of a.added)(0,Y.isRequiredArgument)(u)&&r.push({type:pe.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${u.name} on directive ${o.name} was added.`});for(let u of a.removed)r.push({type:pe.DIRECTIVE_ARG_REMOVED,description:`${u.name} was removed from ${o.name}.`});o.isRepeatable&&!s.isRepeatable&&r.push({type:pe.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${o.name}.`});for(let u of o.locations)s.locations.includes(u)||r.push({type:pe.DIRECTIVE_LOCATION_REMOVED,description:`${u} was removed from ${o.name}.`})}return r}n(HO,"findDirectiveChanges");function JO(e,t){let r=[],i=Ot(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let o of i.removed)r.push({type:pe.TYPE_REMOVED,description:(0,QO.isSpecifiedScalarType)(o)?`Standard scalar ${o.name} was removed because it is not referenced anymore.`:`${o.name} was removed.`});for(let[o,s]of i.persisted)(0,Y.isEnumType)(o)&&(0,Y.isEnumType)(s)?r.push(...XO(o,s)):(0,Y.isUnionType)(o)&&(0,Y.isUnionType)(s)?r.push(...zO(o,s)):(0,Y.isInputObjectType)(o)&&(0,Y.isInputObjectType)(s)?r.push(...WO(o,s)):(0,Y.isObjectType)(o)&&(0,Y.isObjectType)(s)?r.push(...Ef(o,s),..._f(o,s)):(0,Y.isInterfaceType)(o)&&(0,Y.isInterfaceType)(s)?r.push(...Ef(o,s),..._f(o,s)):o.constructor!==s.constructor&&r.push({type:pe.TYPE_CHANGED_KIND,description:`${o.name} changed from ${Of(o)} to ${Of(s)}.`});return r}n(JO,"findTypeChanges");function WO(e,t){let r=[],i=Ot(Object.values(e.getFields()),Object.values(t.getFields()));for(let o of i.added)(0,Y.isRequiredInputField)(o)?r.push({type:pe.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${o.name} on input type ${e.name} was added.`}):r.push({type:rt.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${o.name} on input type ${e.name} was added.`});for(let o of i.removed)r.push({type:pe.FIELD_REMOVED,description:`${e.name}.${o.name} was removed.`});for(let[o,s]of i.persisted)Dn(o.type,s.type)||r.push({type:pe.FIELD_CHANGED_KIND,description:`${e.name}.${o.name} changed type from ${String(o.type)} to ${String(s.type)}.`});return r}n(WO,"findInputObjectTypeChanges");function zO(e,t){let r=[],i=Ot(e.getTypes(),t.getTypes());for(let o of i.added)r.push({type:rt.TYPE_ADDED_TO_UNION,description:`${o.name} was added to union type ${e.name}.`});for(let o of i.removed)r.push({type:pe.TYPE_REMOVED_FROM_UNION,description:`${o.name} was removed from union type ${e.name}.`});return r}n(zO,"findUnionTypeChanges");function XO(e,t){let r=[],i=Ot(e.getValues(),t.getValues());for(let o of i.added)r.push({type:rt.VALUE_ADDED_TO_ENUM,description:`${o.name} was added to enum type ${e.name}.`});for(let o of i.removed)r.push({type:pe.VALUE_REMOVED_FROM_ENUM,description:`${o.name} was removed from enum type ${e.name}.`});return r}n(XO,"findEnumTypeChanges");function _f(e,t){let r=[],i=Ot(e.getInterfaces(),t.getInterfaces());for(let o of i.added)r.push({type:rt.IMPLEMENTED_INTERFACE_ADDED,description:`${o.name} added to interfaces implemented by ${e.name}.`});for(let o of i.removed)r.push({type:pe.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${o.name}.`});return r}n(_f,"findImplementedInterfacesChanges");function Ef(e,t){let r=[],i=Ot(Object.values(e.getFields()),Object.values(t.getFields()));for(let o of i.removed)r.push({type:pe.FIELD_REMOVED,description:`${e.name}.${o.name} was removed.`});for(let[o,s]of i.persisted)r.push(...ZO(e,o,s)),Ln(o.type,s.type)||r.push({type:pe.FIELD_CHANGED_KIND,description:`${e.name}.${o.name} changed type from ${String(o.type)} to ${String(s.type)}.`});return r}n(Ef,"findFieldChanges");function ZO(e,t,r){let i=[],o=Ot(t.args,r.args);for(let s of o.removed)i.push({type:pe.ARG_REMOVED,description:`${e.name}.${t.name} arg ${s.name} was removed.`});for(let[s,a]of o.persisted)if(!Dn(s.type,a.type))i.push({type:pe.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${s.name} has changed type from ${String(s.type)} to ${String(a.type)}.`});else if(s.defaultValue!==void 0)if(a.defaultValue===void 0)i.push({type:rt.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} defaultValue was removed.`});else{let c=Nf(s.defaultValue,s.type),l=Nf(a.defaultValue,a.type);c!==l&&i.push({type:rt.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} has changed defaultValue from ${c} to ${l}.`})}for(let s of o.added)(0,Y.isRequiredArgument)(s)?i.push({type:pe.REQUIRED_ARG_ADDED,description:`A required arg ${s.name} on ${e.name}.${t.name} was added.`}):i.push({type:rt.OPTIONAL_ARG_ADDED,description:`An optional arg ${s.name} on ${e.name}.${t.name} was added.`});return i}n(ZO,"findArgChanges");function Ln(e,t){return(0,Y.isListType)(e)?(0,Y.isListType)(t)&&Ln(e.ofType,t.ofType)||(0,Y.isNonNullType)(t)&&Ln(e,t.ofType):(0,Y.isNonNullType)(e)?(0,Y.isNonNullType)(t)&&Ln(e.ofType,t.ofType):(0,Y.isNamedType)(t)&&e.name===t.name||(0,Y.isNonNullType)(t)&&Ln(e,t.ofType)}n(Ln,"isChangeSafeForObjectOrInterfaceField");function Dn(e,t){return(0,Y.isListType)(e)?(0,Y.isListType)(t)&&Dn(e.ofType,t.ofType):(0,Y.isNonNullType)(e)?(0,Y.isNonNullType)(t)&&Dn(e.ofType,t.ofType)||!(0,Y.isNonNullType)(t)&&Dn(e.ofType,t):(0,Y.isNamedType)(t)&&e.name===t.name}n(Dn,"isChangeSafeForInputObjectFieldOrFieldArg");function Of(e){if((0,Y.isScalarType)(e))return"a Scalar type";if((0,Y.isObjectType)(e))return"an Object type";if((0,Y.isInterfaceType)(e))return"an Interface type";if((0,Y.isUnionType)(e))return"a Union type";if((0,Y.isEnumType)(e))return"an Enum type";if((0,Y.isInputObjectType)(e))return"an Input type";(0,If.invariant)(!1,"Unexpected type: "+(0,GO.inspect)(e))}n(Of,"typeKindName");function Nf(e,t){let r=(0,$O.astFromValue)(e,t);return r!=null||(0,If.invariant)(!1),(0,UO.print)((0,KO.sortValueNode)(r))}n(Nf,"stringifyValue");function Ot(e,t){let r=[],i=[],o=[],s=(0,bf.keyMap)(e,({name:u})=>u),a=(0,bf.keyMap)(t,({name:u})=>u);for(let u of e){let c=a[u.name];c===void 0?i.push(u):o.push([u,c])}for(let u of t)s[u.name]===void 0&&r.push(u);return{added:r,persisted:o,removed:i}}n(Ot,"diff")});var Af=y(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.resolveASTSchemaCoordinate=Df;ro.resolveSchemaCoordinate=tN;var sr=H(),An=G(),eN=Kt(),Ut=U();function tN(e,t){return Df(e,(0,eN.parseSchemaCoordinate)(t))}n(tN,"resolveSchemaCoordinate");function rN(e,t){let r=t.name.value,i=e.getType(r);if(i!=null)return{kind:"NamedType",type:i}}n(rN,"resolveTypeCoordinate");function nN(e,t){let r=t.name.value,i=e.getType(r);if(!i)throw new Error(`Expected ${(0,sr.inspect)(r)} to be defined as a type in the schema.`);if(!(0,Ut.isEnumType)(i)&&!(0,Ut.isInputObjectType)(i)&&!(0,Ut.isObjectType)(i)&&!(0,Ut.isInterfaceType)(i))throw new Error(`Expected ${(0,sr.inspect)(r)} to be an Enum, Input Object, Object or Interface type.`);if((0,Ut.isEnumType)(i)){let a=t.memberName.value,u=i.getValue(a);return u==null?void 0:{kind:"EnumValue",type:i,enumValue:u}}if((0,Ut.isInputObjectType)(i)){let a=t.memberName.value,u=i.getFields()[a];return u==null?void 0:{kind:"InputField",type:i,inputField:u}}let o=t.memberName.value,s=i.getFields()[o];if(s!=null)return{kind:"Field",type:i,field:s}}n(nN,"resolveMemberCoordinate");function iN(e,t){let r=t.name.value,i=e.getType(r);if(i==null)throw new Error(`Expected ${(0,sr.inspect)(r)} to be defined as a type in the schema.`);if(!(0,Ut.isObjectType)(i)&&!(0,Ut.isInterfaceType)(i))throw new Error(`Expected ${(0,sr.inspect)(r)} to be an object type or interface type.`);let o=t.fieldName.value,s=i.getFields()[o];if(s==null)throw new Error(`Expected ${(0,sr.inspect)(o)} to exist as a field of type ${(0,sr.inspect)(r)} in the schema.`);let a=t.argumentName.value,u=s.args.find(c=>c.name===a);if(u!=null)return{kind:"FieldArgument",type:i,field:s,fieldArgument:u}}n(iN,"resolveArgumentCoordinate");function oN(e,t){let r=t.name.value,i=e.getDirective(r);if(i)return{kind:"Directive",directive:i}}n(oN,"resolveDirectiveCoordinate");function sN(e,t){let r=t.name.value,i=e.getDirective(r);if(!i)throw new Error(`Expected ${(0,sr.inspect)(r)} to be defined as a directive in the schema.`);let{argumentName:{value:o}}=t,s=i.args.find(a=>a.name===o);if(s)return{kind:"DirectiveArgument",directive:i,directiveArgument:s}}n(sN,"resolveDirectiveArgumentCoordinate");function Df(e,t){switch(t.kind){case An.Kind.TYPE_COORDINATE:return rN(e,t);case An.Kind.MEMBER_COORDINATE:return nN(e,t);case An.Kind.ARGUMENT_COORDINATE:return iN(e,t);case An.Kind.DIRECTIVE_COORDINATE:return oN(e,t);case An.Kind.DIRECTIVE_ARGUMENT_COORDINATE:return sN(e,t)}}n(Df,"resolveASTSchemaCoordinate")});var wf=y($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});Object.defineProperty($,"BreakingChangeType",{enumerable:!0,get:n(function(){return no.BreakingChangeType},"get")});Object.defineProperty($,"DangerousChangeType",{enumerable:!0,get:n(function(){return no.DangerousChangeType},"get")});Object.defineProperty($,"TypeInfo",{enumerable:!0,get:n(function(){return Rf.TypeInfo},"get")});Object.defineProperty($,"assertValidName",{enumerable:!0,get:n(function(){return jf.assertValidName},"get")});Object.defineProperty($,"astFromValue",{enumerable:!0,get:n(function(){return vN.astFromValue},"get")});Object.defineProperty($,"buildASTSchema",{enumerable:!0,get:n(function(){return Pf.buildASTSchema},"get")});Object.defineProperty($,"buildClientSchema",{enumerable:!0,get:n(function(){return pN.buildClientSchema},"get")});Object.defineProperty($,"buildSchema",{enumerable:!0,get:n(function(){return Pf.buildSchema},"get")});Object.defineProperty($,"coerceInputValue",{enumerable:!0,get:n(function(){return TN.coerceInputValue},"get")});Object.defineProperty($,"concatAST",{enumerable:!0,get:n(function(){return gN.concatAST},"get")});Object.defineProperty($,"doTypesOverlap",{enumerable:!0,get:n(function(){return oc.doTypesOverlap},"get")});Object.defineProperty($,"extendSchema",{enumerable:!0,get:n(function(){return dN.extendSchema},"get")});Object.defineProperty($,"findBreakingChanges",{enumerable:!0,get:n(function(){return no.findBreakingChanges},"get")});Object.defineProperty($,"findDangerousChanges",{enumerable:!0,get:n(function(){return no.findDangerousChanges},"get")});Object.defineProperty($,"getIntrospectionQuery",{enumerable:!0,get:n(function(){return aN.getIntrospectionQuery},"get")});Object.defineProperty($,"getOperationAST",{enumerable:!0,get:n(function(){return uN.getOperationAST},"get")});Object.defineProperty($,"getOperationRootType",{enumerable:!0,get:n(function(){return cN.getOperationRootType},"get")});Object.defineProperty($,"introspectionFromSchema",{enumerable:!0,get:n(function(){return lN.introspectionFromSchema},"get")});Object.defineProperty($,"isEqualType",{enumerable:!0,get:n(function(){return oc.isEqualType},"get")});Object.defineProperty($,"isTypeSubTypeOf",{enumerable:!0,get:n(function(){return oc.isTypeSubTypeOf},"get")});Object.defineProperty($,"isValidNameError",{enumerable:!0,get:n(function(){return jf.isValidNameError},"get")});Object.defineProperty($,"lexicographicSortSchema",{enumerable:!0,get:n(function(){return fN.lexicographicSortSchema},"get")});Object.defineProperty($,"printIntrospectionSchema",{enumerable:!0,get:n(function(){return ic.printIntrospectionSchema},"get")});Object.defineProperty($,"printSchema",{enumerable:!0,get:n(function(){return ic.printSchema},"get")});Object.defineProperty($,"printType",{enumerable:!0,get:n(function(){return ic.printType},"get")});Object.defineProperty($,"resolveASTSchemaCoordinate",{enumerable:!0,get:n(function(){return kf.resolveASTSchemaCoordinate},"get")});Object.defineProperty($,"resolveSchemaCoordinate",{enumerable:!0,get:n(function(){return kf.resolveSchemaCoordinate},"get")});Object.defineProperty($,"separateOperations",{enumerable:!0,get:n(function(){return bN.separateOperations},"get")});Object.defineProperty($,"stripIgnoredCharacters",{enumerable:!0,get:n(function(){return _N.stripIgnoredCharacters},"get")});Object.defineProperty($,"typeFromAST",{enumerable:!0,get:n(function(){return mN.typeFromAST},"get")});Object.defineProperty($,"valueFromAST",{enumerable:!0,get:n(function(){return yN.valueFromAST},"get")});Object.defineProperty($,"valueFromASTUntyped",{enumerable:!0,get:n(function(){return hN.valueFromASTUntyped},"get")});Object.defineProperty($,"visitWithTypeInfo",{enumerable:!0,get:n(function(){return Rf.visitWithTypeInfo},"get")});var aN=Mu(),uN=qd(),cN=Md(),lN=Gd(),pN=Qd(),Pf=Zd(),dN=Bu(),fN=rf(),ic=lf(),mN=ut(),yN=fn(),hN=es(),vN=rn(),Rf=Ei(),TN=Sa(),gN=pf(),bN=mf(),_N=vf(),oc=Jr(),jf=gf(),no=Lf(),kf=Af()});var io=y(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});Object.defineProperty(d,"BREAK",{enumerable:!0,get:n(function(){return K.BREAK},"get")});Object.defineProperty(d,"BreakingChangeType",{enumerable:!0,get:n(function(){return B.BreakingChangeType},"get")});Object.defineProperty(d,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:n(function(){return _.DEFAULT_DEPRECATION_REASON},"get")});Object.defineProperty(d,"DangerousChangeType",{enumerable:!0,get:n(function(){return B.DangerousChangeType},"get")});Object.defineProperty(d,"DirectiveLocation",{enumerable:!0,get:n(function(){return K.DirectiveLocation},"get")});Object.defineProperty(d,"ExecutableDefinitionsRule",{enumerable:!0,get:n(function(){return F.ExecutableDefinitionsRule},"get")});Object.defineProperty(d,"FieldsOnCorrectTypeRule",{enumerable:!0,get:n(function(){return F.FieldsOnCorrectTypeRule},"get")});Object.defineProperty(d,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:n(function(){return F.FragmentsOnCompositeTypesRule},"get")});Object.defineProperty(d,"GRAPHQL_MAX_INT",{enumerable:!0,get:n(function(){return _.GRAPHQL_MAX_INT},"get")});Object.defineProperty(d,"GRAPHQL_MIN_INT",{enumerable:!0,get:n(function(){return _.GRAPHQL_MIN_INT},"get")});Object.defineProperty(d,"GraphQLBoolean",{enumerable:!0,get:n(function(){return _.GraphQLBoolean},"get")});Object.defineProperty(d,"GraphQLDeprecatedDirective",{enumerable:!0,get:n(function(){return _.GraphQLDeprecatedDirective},"get")});Object.defineProperty(d,"GraphQLDirective",{enumerable:!0,get:n(function(){return _.GraphQLDirective},"get")});Object.defineProperty(d,"GraphQLEnumType",{enumerable:!0,get:n(function(){return _.GraphQLEnumType},"get")});Object.defineProperty(d,"GraphQLError",{enumerable:!0,get:n(function(){return Pn.GraphQLError},"get")});Object.defineProperty(d,"GraphQLFloat",{enumerable:!0,get:n(function(){return _.GraphQLFloat},"get")});Object.defineProperty(d,"GraphQLID",{enumerable:!0,get:n(function(){return _.GraphQLID},"get")});Object.defineProperty(d,"GraphQLIncludeDirective",{enumerable:!0,get:n(function(){return _.GraphQLIncludeDirective},"get")});Object.defineProperty(d,"GraphQLInputObjectType",{enumerable:!0,get:n(function(){return _.GraphQLInputObjectType},"get")});Object.defineProperty(d,"GraphQLInt",{enumerable:!0,get:n(function(){return _.GraphQLInt},"get")});Object.defineProperty(d,"GraphQLInterfaceType",{enumerable:!0,get:n(function(){return _.GraphQLInterfaceType},"get")});Object.defineProperty(d,"GraphQLList",{enumerable:!0,get:n(function(){return _.GraphQLList},"get")});Object.defineProperty(d,"GraphQLNonNull",{enumerable:!0,get:n(function(){return _.GraphQLNonNull},"get")});Object.defineProperty(d,"GraphQLObjectType",{enumerable:!0,get:n(function(){return _.GraphQLObjectType},"get")});Object.defineProperty(d,"GraphQLOneOfDirective",{enumerable:!0,get:n(function(){return _.GraphQLOneOfDirective},"get")});Object.defineProperty(d,"GraphQLScalarType",{enumerable:!0,get:n(function(){return _.GraphQLScalarType},"get")});Object.defineProperty(d,"GraphQLSchema",{enumerable:!0,get:n(function(){return _.GraphQLSchema},"get")});Object.defineProperty(d,"GraphQLSkipDirective",{enumerable:!0,get:n(function(){return _.GraphQLSkipDirective},"get")});Object.defineProperty(d,"GraphQLSpecifiedByDirective",{enumerable:!0,get:n(function(){return _.GraphQLSpecifiedByDirective},"get")});Object.defineProperty(d,"GraphQLString",{enumerable:!0,get:n(function(){return _.GraphQLString},"get")});Object.defineProperty(d,"GraphQLUnionType",{enumerable:!0,get:n(function(){return _.GraphQLUnionType},"get")});Object.defineProperty(d,"Kind",{enumerable:!0,get:n(function(){return K.Kind},"get")});Object.defineProperty(d,"KnownArgumentNamesRule",{enumerable:!0,get:n(function(){return F.KnownArgumentNamesRule},"get")});Object.defineProperty(d,"KnownDirectivesRule",{enumerable:!0,get:n(function(){return F.KnownDirectivesRule},"get")});Object.defineProperty(d,"KnownFragmentNamesRule",{enumerable:!0,get:n(function(){return F.KnownFragmentNamesRule},"get")});Object.defineProperty(d,"KnownTypeNamesRule",{enumerable:!0,get:n(function(){return F.KnownTypeNamesRule},"get")});Object.defineProperty(d,"Lexer",{enumerable:!0,get:n(function(){return K.Lexer},"get")});Object.defineProperty(d,"Location",{enumerable:!0,get:n(function(){return K.Location},"get")});Object.defineProperty(d,"LoneAnonymousOperationRule",{enumerable:!0,get:n(function(){return F.LoneAnonymousOperationRule},"get")});Object.defineProperty(d,"LoneSchemaDefinitionRule",{enumerable:!0,get:n(function(){return F.LoneSchemaDefinitionRule},"get")});Object.defineProperty(d,"MaxIntrospectionDepthRule",{enumerable:!0,get:n(function(){return F.MaxIntrospectionDepthRule},"get")});Object.defineProperty(d,"NoDeprecatedCustomRule",{enumerable:!0,get:n(function(){return F.NoDeprecatedCustomRule},"get")});Object.defineProperty(d,"NoFragmentCyclesRule",{enumerable:!0,get:n(function(){return F.NoFragmentCyclesRule},"get")});Object.defineProperty(d,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:n(function(){return F.NoSchemaIntrospectionCustomRule},"get")});Object.defineProperty(d,"NoUndefinedVariablesRule",{enumerable:!0,get:n(function(){return F.NoUndefinedVariablesRule},"get")});Object.defineProperty(d,"NoUnusedFragmentsRule",{enumerable:!0,get:n(function(){return F.NoUnusedFragmentsRule},"get")});Object.defineProperty(d,"NoUnusedVariablesRule",{enumerable:!0,get:n(function(){return F.NoUnusedVariablesRule},"get")});Object.defineProperty(d,"OperationTypeNode",{enumerable:!0,get:n(function(){return K.OperationTypeNode},"get")});Object.defineProperty(d,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:n(function(){return F.OverlappingFieldsCanBeMergedRule},"get")});Object.defineProperty(d,"PossibleFragmentSpreadsRule",{enumerable:!0,get:n(function(){return F.PossibleFragmentSpreadsRule},"get")});Object.defineProperty(d,"PossibleTypeExtensionsRule",{enumerable:!0,get:n(function(){return F.PossibleTypeExtensionsRule},"get")});Object.defineProperty(d,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:n(function(){return F.ProvidedRequiredArgumentsRule},"get")});Object.defineProperty(d,"ScalarLeafsRule",{enumerable:!0,get:n(function(){return F.ScalarLeafsRule},"get")});Object.defineProperty(d,"SchemaMetaFieldDef",{enumerable:!0,get:n(function(){return _.SchemaMetaFieldDef},"get")});Object.defineProperty(d,"SingleFieldSubscriptionsRule",{enumerable:!0,get:n(function(){return F.SingleFieldSubscriptionsRule},"get")});Object.defineProperty(d,"Source",{enumerable:!0,get:n(function(){return K.Source},"get")});Object.defineProperty(d,"Token",{enumerable:!0,get:n(function(){return K.Token},"get")});Object.defineProperty(d,"TokenKind",{enumerable:!0,get:n(function(){return K.TokenKind},"get")});Object.defineProperty(d,"TypeInfo",{enumerable:!0,get:n(function(){return B.TypeInfo},"get")});Object.defineProperty(d,"TypeKind",{enumerable:!0,get:n(function(){return _.TypeKind},"get")});Object.defineProperty(d,"TypeMetaFieldDef",{enumerable:!0,get:n(function(){return _.TypeMetaFieldDef},"get")});Object.defineProperty(d,"TypeNameMetaFieldDef",{enumerable:!0,get:n(function(){return _.TypeNameMetaFieldDef},"get")});Object.defineProperty(d,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:n(function(){return F.UniqueArgumentDefinitionNamesRule},"get")});Object.defineProperty(d,"UniqueArgumentNamesRule",{enumerable:!0,get:n(function(){return F.UniqueArgumentNamesRule},"get")});Object.defineProperty(d,"UniqueDirectiveNamesRule",{enumerable:!0,get:n(function(){return F.UniqueDirectiveNamesRule},"get")});Object.defineProperty(d,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:n(function(){return F.UniqueDirectivesPerLocationRule},"get")});Object.defineProperty(d,"UniqueEnumValueNamesRule",{enumerable:!0,get:n(function(){return F.UniqueEnumValueNamesRule},"get")});Object.defineProperty(d,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:n(function(){return F.UniqueFieldDefinitionNamesRule},"get")});Object.defineProperty(d,"UniqueFragmentNamesRule",{enumerable:!0,get:n(function(){return F.UniqueFragmentNamesRule},"get")});Object.defineProperty(d,"UniqueInputFieldNamesRule",{enumerable:!0,get:n(function(){return F.UniqueInputFieldNamesRule},"get")});Object.defineProperty(d,"UniqueOperationNamesRule",{enumerable:!0,get:n(function(){return F.UniqueOperationNamesRule},"get")});Object.defineProperty(d,"UniqueOperationTypesRule",{enumerable:!0,get:n(function(){return F.UniqueOperationTypesRule},"get")});Object.defineProperty(d,"UniqueTypeNamesRule",{enumerable:!0,get:n(function(){return F.UniqueTypeNamesRule},"get")});Object.defineProperty(d,"UniqueVariableNamesRule",{enumerable:!0,get:n(function(){return F.UniqueVariableNamesRule},"get")});Object.defineProperty(d,"ValidationContext",{enumerable:!0,get:n(function(){return F.ValidationContext},"get")});Object.defineProperty(d,"ValuesOfCorrectTypeRule",{enumerable:!0,get:n(function(){return F.ValuesOfCorrectTypeRule},"get")});Object.defineProperty(d,"VariablesAreInputTypesRule",{enumerable:!0,get:n(function(){return F.VariablesAreInputTypesRule},"get")});Object.defineProperty(d,"VariablesInAllowedPositionRule",{enumerable:!0,get:n(function(){return F.VariablesInAllowedPositionRule},"get")});Object.defineProperty(d,"__Directive",{enumerable:!0,get:n(function(){return _.__Directive},"get")});Object.defineProperty(d,"__DirectiveLocation",{enumerable:!0,get:n(function(){return _.__DirectiveLocation},"get")});Object.defineProperty(d,"__EnumValue",{enumerable:!0,get:n(function(){return _.__EnumValue},"get")});Object.defineProperty(d,"__Field",{enumerable:!0,get:n(function(){return _.__Field},"get")});Object.defineProperty(d,"__InputValue",{enumerable:!0,get:n(function(){return _.__InputValue},"get")});Object.defineProperty(d,"__Schema",{enumerable:!0,get:n(function(){return _.__Schema},"get")});Object.defineProperty(d,"__Type",{enumerable:!0,get:n(function(){return _.__Type},"get")});Object.defineProperty(d,"__TypeKind",{enumerable:!0,get:n(function(){return _.__TypeKind},"get")});Object.defineProperty(d,"assertAbstractType",{enumerable:!0,get:n(function(){return _.assertAbstractType},"get")});Object.defineProperty(d,"assertCompositeType",{enumerable:!0,get:n(function(){return _.assertCompositeType},"get")});Object.defineProperty(d,"assertDirective",{enumerable:!0,get:n(function(){return _.assertDirective},"get")});Object.defineProperty(d,"assertEnumType",{enumerable:!0,get:n(function(){return _.assertEnumType},"get")});Object.defineProperty(d,"assertEnumValueName",{enumerable:!0,get:n(function(){return _.assertEnumValueName},"get")});Object.defineProperty(d,"assertInputObjectType",{enumerable:!0,get:n(function(){return _.assertInputObjectType},"get")});Object.defineProperty(d,"assertInputType",{enumerable:!0,get:n(function(){return _.assertInputType},"get")});Object.defineProperty(d,"assertInterfaceType",{enumerable:!0,get:n(function(){return _.assertInterfaceType},"get")});Object.defineProperty(d,"assertLeafType",{enumerable:!0,get:n(function(){return _.assertLeafType},"get")});Object.defineProperty(d,"assertListType",{enumerable:!0,get:n(function(){return _.assertListType},"get")});Object.defineProperty(d,"assertName",{enumerable:!0,get:n(function(){return _.assertName},"get")});Object.defineProperty(d,"assertNamedType",{enumerable:!0,get:n(function(){return _.assertNamedType},"get")});Object.defineProperty(d,"assertNonNullType",{enumerable:!0,get:n(function(){return _.assertNonNullType},"get")});Object.defineProperty(d,"assertNullableType",{enumerable:!0,get:n(function(){return _.assertNullableType},"get")});Object.defineProperty(d,"assertObjectType",{enumerable:!0,get:n(function(){return _.assertObjectType},"get")});Object.defineProperty(d,"assertOutputType",{enumerable:!0,get:n(function(){return _.assertOutputType},"get")});Object.defineProperty(d,"assertScalarType",{enumerable:!0,get:n(function(){return _.assertScalarType},"get")});Object.defineProperty(d,"assertSchema",{enumerable:!0,get:n(function(){return _.assertSchema},"get")});Object.defineProperty(d,"assertType",{enumerable:!0,get:n(function(){return _.assertType},"get")});Object.defineProperty(d,"assertUnionType",{enumerable:!0,get:n(function(){return _.assertUnionType},"get")});Object.defineProperty(d,"assertValidName",{enumerable:!0,get:n(function(){return B.assertValidName},"get")});Object.defineProperty(d,"assertValidSchema",{enumerable:!0,get:n(function(){return _.assertValidSchema},"get")});Object.defineProperty(d,"assertWrappingType",{enumerable:!0,get:n(function(){return _.assertWrappingType},"get")});Object.defineProperty(d,"astFromValue",{enumerable:!0,get:n(function(){return B.astFromValue},"get")});Object.defineProperty(d,"buildASTSchema",{enumerable:!0,get:n(function(){return B.buildASTSchema},"get")});Object.defineProperty(d,"buildClientSchema",{enumerable:!0,get:n(function(){return B.buildClientSchema},"get")});Object.defineProperty(d,"buildSchema",{enumerable:!0,get:n(function(){return B.buildSchema},"get")});Object.defineProperty(d,"coerceInputValue",{enumerable:!0,get:n(function(){return B.coerceInputValue},"get")});Object.defineProperty(d,"concatAST",{enumerable:!0,get:n(function(){return B.concatAST},"get")});Object.defineProperty(d,"createSourceEventStream",{enumerable:!0,get:n(function(){return dt.createSourceEventStream},"get")});Object.defineProperty(d,"defaultFieldResolver",{enumerable:!0,get:n(function(){return dt.defaultFieldResolver},"get")});Object.defineProperty(d,"defaultTypeResolver",{enumerable:!0,get:n(function(){return dt.defaultTypeResolver},"get")});Object.defineProperty(d,"doTypesOverlap",{enumerable:!0,get:n(function(){return B.doTypesOverlap},"get")});Object.defineProperty(d,"execute",{enumerable:!0,get:n(function(){return dt.execute},"get")});Object.defineProperty(d,"executeSync",{enumerable:!0,get:n(function(){return dt.executeSync},"get")});Object.defineProperty(d,"extendSchema",{enumerable:!0,get:n(function(){return B.extendSchema},"get")});Object.defineProperty(d,"findBreakingChanges",{enumerable:!0,get:n(function(){return B.findBreakingChanges},"get")});Object.defineProperty(d,"findDangerousChanges",{enumerable:!0,get:n(function(){return B.findDangerousChanges},"get")});Object.defineProperty(d,"formatError",{enumerable:!0,get:n(function(){return Pn.formatError},"get")});Object.defineProperty(d,"getArgumentValues",{enumerable:!0,get:n(function(){return dt.getArgumentValues},"get")});Object.defineProperty(d,"getDirectiveValues",{enumerable:!0,get:n(function(){return dt.getDirectiveValues},"get")});Object.defineProperty(d,"getEnterLeaveForKind",{enumerable:!0,get:n(function(){return K.getEnterLeaveForKind},"get")});Object.defineProperty(d,"getIntrospectionQuery",{enumerable:!0,get:n(function(){return B.getIntrospectionQuery},"get")});Object.defineProperty(d,"getLocation",{enumerable:!0,get:n(function(){return K.getLocation},"get")});Object.defineProperty(d,"getNamedType",{enumerable:!0,get:n(function(){return _.getNamedType},"get")});Object.defineProperty(d,"getNullableType",{enumerable:!0,get:n(function(){return _.getNullableType},"get")});Object.defineProperty(d,"getOperationAST",{enumerable:!0,get:n(function(){return B.getOperationAST},"get")});Object.defineProperty(d,"getOperationRootType",{enumerable:!0,get:n(function(){return B.getOperationRootType},"get")});Object.defineProperty(d,"getVariableValues",{enumerable:!0,get:n(function(){return dt.getVariableValues},"get")});Object.defineProperty(d,"getVisitFn",{enumerable:!0,get:n(function(){return K.getVisitFn},"get")});Object.defineProperty(d,"graphql",{enumerable:!0,get:n(function(){return Cf.graphql},"get")});Object.defineProperty(d,"graphqlSync",{enumerable:!0,get:n(function(){return Cf.graphqlSync},"get")});Object.defineProperty(d,"introspectionFromSchema",{enumerable:!0,get:n(function(){return B.introspectionFromSchema},"get")});Object.defineProperty(d,"introspectionTypes",{enumerable:!0,get:n(function(){return _.introspectionTypes},"get")});Object.defineProperty(d,"isAbstractType",{enumerable:!0,get:n(function(){return _.isAbstractType},"get")});Object.defineProperty(d,"isCompositeType",{enumerable:!0,get:n(function(){return _.isCompositeType},"get")});Object.defineProperty(d,"isConstValueNode",{enumerable:!0,get:n(function(){return K.isConstValueNode},"get")});Object.defineProperty(d,"isDefinitionNode",{enumerable:!0,get:n(function(){return K.isDefinitionNode},"get")});Object.defineProperty(d,"isDirective",{enumerable:!0,get:n(function(){return _.isDirective},"get")});Object.defineProperty(d,"isEnumType",{enumerable:!0,get:n(function(){return _.isEnumType},"get")});Object.defineProperty(d,"isEqualType",{enumerable:!0,get:n(function(){return B.isEqualType},"get")});Object.defineProperty(d,"isExecutableDefinitionNode",{enumerable:!0,get:n(function(){return K.isExecutableDefinitionNode},"get")});Object.defineProperty(d,"isInputObjectType",{enumerable:!0,get:n(function(){return _.isInputObjectType},"get")});Object.defineProperty(d,"isInputType",{enumerable:!0,get:n(function(){return _.isInputType},"get")});Object.defineProperty(d,"isInterfaceType",{enumerable:!0,get:n(function(){return _.isInterfaceType},"get")});Object.defineProperty(d,"isIntrospectionType",{enumerable:!0,get:n(function(){return _.isIntrospectionType},"get")});Object.defineProperty(d,"isLeafType",{enumerable:!0,get:n(function(){return _.isLeafType},"get")});Object.defineProperty(d,"isListType",{enumerable:!0,get:n(function(){return _.isListType},"get")});Object.defineProperty(d,"isNamedType",{enumerable:!0,get:n(function(){return _.isNamedType},"get")});Object.defineProperty(d,"isNonNullType",{enumerable:!0,get:n(function(){return _.isNonNullType},"get")});Object.defineProperty(d,"isNullableType",{enumerable:!0,get:n(function(){return _.isNullableType},"get")});Object.defineProperty(d,"isObjectType",{enumerable:!0,get:n(function(){return _.isObjectType},"get")});Object.defineProperty(d,"isOutputType",{enumerable:!0,get:n(function(){return _.isOutputType},"get")});Object.defineProperty(d,"isRequiredArgument",{enumerable:!0,get:n(function(){return _.isRequiredArgument},"get")});Object.defineProperty(d,"isRequiredInputField",{enumerable:!0,get:n(function(){return _.isRequiredInputField},"get")});Object.defineProperty(d,"isScalarType",{enumerable:!0,get:n(function(){return _.isScalarType},"get")});Object.defineProperty(d,"isSchema",{enumerable:!0,get:n(function(){return _.isSchema},"get")});Object.defineProperty(d,"isSchemaCoordinateNode",{enumerable:!0,get:n(function(){return K.isSchemaCoordinateNode},"get")});Object.defineProperty(d,"isSelectionNode",{enumerable:!0,get:n(function(){return K.isSelectionNode},"get")});Object.defineProperty(d,"isSpecifiedDirective",{enumerable:!0,get:n(function(){return _.isSpecifiedDirective},"get")});Object.defineProperty(d,"isSpecifiedScalarType",{enumerable:!0,get:n(function(){return _.isSpecifiedScalarType},"get")});Object.defineProperty(d,"isType",{enumerable:!0,get:n(function(){return _.isType},"get")});Object.defineProperty(d,"isTypeDefinitionNode",{enumerable:!0,get:n(function(){return K.isTypeDefinitionNode},"get")});Object.defineProperty(d,"isTypeExtensionNode",{enumerable:!0,get:n(function(){return K.isTypeExtensionNode},"get")});Object.defineProperty(d,"isTypeNode",{enumerable:!0,get:n(function(){return K.isTypeNode},"get")});Object.defineProperty(d,"isTypeSubTypeOf",{enumerable:!0,get:n(function(){return B.isTypeSubTypeOf},"get")});Object.defineProperty(d,"isTypeSystemDefinitionNode",{enumerable:!0,get:n(function(){return K.isTypeSystemDefinitionNode},"get")});Object.defineProperty(d,"isTypeSystemExtensionNode",{enumerable:!0,get:n(function(){return K.isTypeSystemExtensionNode},"get")});Object.defineProperty(d,"isUnionType",{enumerable:!0,get:n(function(){return _.isUnionType},"get")});Object.defineProperty(d,"isValidNameError",{enumerable:!0,get:n(function(){return B.isValidNameError},"get")});Object.defineProperty(d,"isValueNode",{enumerable:!0,get:n(function(){return K.isValueNode},"get")});Object.defineProperty(d,"isWrappingType",{enumerable:!0,get:n(function(){return _.isWrappingType},"get")});Object.defineProperty(d,"lexicographicSortSchema",{enumerable:!0,get:n(function(){return B.lexicographicSortSchema},"get")});Object.defineProperty(d,"locatedError",{enumerable:!0,get:n(function(){return Pn.locatedError},"get")});Object.defineProperty(d,"parse",{enumerable:!0,get:n(function(){return K.parse},"get")});Object.defineProperty(d,"parseConstValue",{enumerable:!0,get:n(function(){return K.parseConstValue},"get")});Object.defineProperty(d,"parseSchemaCoordinate",{enumerable:!0,get:n(function(){return K.parseSchemaCoordinate},"get")});Object.defineProperty(d,"parseType",{enumerable:!0,get:n(function(){return K.parseType},"get")});Object.defineProperty(d,"parseValue",{enumerable:!0,get:n(function(){return K.parseValue},"get")});Object.defineProperty(d,"print",{enumerable:!0,get:n(function(){return K.print},"get")});Object.defineProperty(d,"printError",{enumerable:!0,get:n(function(){return Pn.printError},"get")});Object.defineProperty(d,"printIntrospectionSchema",{enumerable:!0,get:n(function(){return B.printIntrospectionSchema},"get")});Object.defineProperty(d,"printLocation",{enumerable:!0,get:n(function(){return K.printLocation},"get")});Object.defineProperty(d,"printSchema",{enumerable:!0,get:n(function(){return B.printSchema},"get")});Object.defineProperty(d,"printSourceLocation",{enumerable:!0,get:n(function(){return K.printSourceLocation},"get")});Object.defineProperty(d,"printType",{enumerable:!0,get:n(function(){return B.printType},"get")});Object.defineProperty(d,"recommendedRules",{enumerable:!0,get:n(function(){return F.recommendedRules},"get")});Object.defineProperty(d,"resolveASTSchemaCoordinate",{enumerable:!0,get:n(function(){return B.resolveASTSchemaCoordinate},"get")});Object.defineProperty(d,"resolveObjMapThunk",{enumerable:!0,get:n(function(){return _.resolveObjMapThunk},"get")});Object.defineProperty(d,"resolveReadonlyArrayThunk",{enumerable:!0,get:n(function(){return _.resolveReadonlyArrayThunk},"get")});Object.defineProperty(d,"resolveSchemaCoordinate",{enumerable:!0,get:n(function(){return B.resolveSchemaCoordinate},"get")});Object.defineProperty(d,"responsePathAsArray",{enumerable:!0,get:n(function(){return dt.responsePathAsArray},"get")});Object.defineProperty(d,"separateOperations",{enumerable:!0,get:n(function(){return B.separateOperations},"get")});Object.defineProperty(d,"specifiedDirectives",{enumerable:!0,get:n(function(){return _.specifiedDirectives},"get")});Object.defineProperty(d,"specifiedRules",{enumerable:!0,get:n(function(){return F.specifiedRules},"get")});Object.defineProperty(d,"specifiedScalarTypes",{enumerable:!0,get:n(function(){return _.specifiedScalarTypes},"get")});Object.defineProperty(d,"stripIgnoredCharacters",{enumerable:!0,get:n(function(){return B.stripIgnoredCharacters},"get")});Object.defineProperty(d,"subscribe",{enumerable:!0,get:n(function(){return dt.subscribe},"get")});Object.defineProperty(d,"syntaxError",{enumerable:!0,get:n(function(){return Pn.syntaxError},"get")});Object.defineProperty(d,"typeFromAST",{enumerable:!0,get:n(function(){return B.typeFromAST},"get")});Object.defineProperty(d,"validate",{enumerable:!0,get:n(function(){return F.validate},"get")});Object.defineProperty(d,"validateSchema",{enumerable:!0,get:n(function(){return _.validateSchema},"get")});Object.defineProperty(d,"valueFromAST",{enumerable:!0,get:n(function(){return B.valueFromAST},"get")});Object.defineProperty(d,"valueFromASTUntyped",{enumerable:!0,get:n(function(){return B.valueFromASTUntyped},"get")});Object.defineProperty(d,"version",{enumerable:!0,get:n(function(){return Ff.version},"get")});Object.defineProperty(d,"versionInfo",{enumerable:!0,get:n(function(){return Ff.versionInfo},"get")});Object.defineProperty(d,"visit",{enumerable:!0,get:n(function(){return K.visit},"get")});Object.defineProperty(d,"visitInParallel",{enumerable:!0,get:n(function(){return K.visitInParallel},"get")});Object.defineProperty(d,"visitWithTypeInfo",{enumerable:!0,get:n(function(){return B.visitWithTypeInfo},"get")});var Ff=Dc(),Cf=bd(),_=Od(),K=Id(),dt=kd(),F=xd(),Pn=Vd(),B=wf()});import{existsSync as Tc,readdirSync as n0,readFileSync as i0}from"fs";import{fileURLToPath as o0}from"url";import kn from"path";import{parseArgs as s0}from"util";var q={PUBLIC:"public",EARLY_ACCESS:"earlyAccess",INTERNAL:"internal"},M={GRAPHQL:"graphql",FUNCTIONS:"functions",FUNCTION_GRAPHQL:"function-graphql",UI_FRAMEWORK:"ui-framework",THEME:"theme",CONFIGURATION:"configuration",EXECUTION:"execution",GUIDANCE:"guidance"};function Tm(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>[t,{name:t,...r}]))}n(Tm,"defineApis");var xn=Tm({flow:{displayName:"Flow workflows",description:"Build and manage Shopify Flow workflows through the Admin GraphQL API: create, list, read, update, activate, deactivate, and delete workflows; parse .flow exports; and discover templates, tasks, and environment fields. Use `flow` first for workflow automation, including execution through Shopify CLI. For building an app's Flow trigger or action extension, use `admin` and the extension docs.",category:M.EXECUTION,visibility:q.PUBLIC,searchable:"unscoped",exampleVectorStoreQuery:{query:"Shopify Flow automationWorkflowCreate",context:"creating Flow workflows through the unstable Admin API"}},"use-shopify-cli":{displayName:"Use Shopify CLI",routingNote:"For Shopify Flow workflow operations, use `flow` first.",description:"Choose when the user needs **Shopify CLI** to run or fix something now: validate app or extension config on disk (`shopify.app.toml`, `shopify.app.<name>.toml`, `shopify.extension.toml`); review or audit an app's code for security vulnerabilities; run or troubleshoot store workflows (`shopify store auth`, `shopify store execute`); or perform explicit store-scoped reads/writes on a named store domain (for example, show/list/find the first 10 products on my store at `foo.myshopify.com`, or inventory and product changes by handle, SKU, or location name). Emphasize **commands and operational steps**, not only authoring GraphQL. Skip for API-only understanding or codegen with no CLI execution, and skip for brand-new merchant asks to start a Shopify store or try Shopify before they have an account. Examples: validate configuration before deploy; run an existing query via CLI; show the first 10 products on `foo.myshopify.com`; missing `shopify store execute`.",category:M.EXECUTION,visibility:q.PUBLIC,searchable:!1},ucp:{displayName:"UCP CLI",description:'Use when the user wants to use the UCP CLI to find, compare, buy, or track products from online merchants, or to set up and troubleshoot the local UCP profile required for merchant-scoped operations. Covers global catalog search ("find me X under $Y"), named-merchant transactions ("buy this from Z.com"), order tracking, `ucp profile init`, `ucp doctor`, carts, checkout, orders, and UCP setup/help. Falls back to merchant-hosted handoff when direct in-protocol checkout isn\'t available.',category:M.EXECUTION,visibility:q.PUBLIC,searchable:!1,skillName:"ucp",compatibility:"Requires UCP CLI",frontmatterExtras:{requires_bin:"ucp",command:"ucp"}},admin:{displayName:"Admin API",routingNote:"For Shopify Flow workflow operations, use `flow` first.",versioned:!0,description:"Write or explain **Admin GraphQL** queries and mutations for apps and integrations that extend the Shopify admin. Use when the user wants to **understand, design, or generate** the operation itself\u2014even before deciding how to run it. Do **not** choose `admin` first for **app monetization**\u2014charging merchants for the app itself via app pricing plans, paid app tiers, app subscription charges, or app free trials\u2014use **`app-pricing`** unless the user is maintaining an existing Manual Pricing integration or explicitly needs an Admin Billing API operation. Merchant **product** subscriptions stay with `admin` (selling plans, subscription contracts, try-before-you-buy). Do **not** choose `admin` first for **app or extension config validation** \u2014use **`use-shopify-cli`**. Do **not** choose `admin` first to **execute** Admin GraphQL **now via Shopify CLI** or for CLI setup/troubleshooting on store workflows\u2014use **`use-shopify-cli`** (store auth/execute, handle/SKU/location lookups, inventory changes).",category:M.GRAPHQL,visibility:q.PUBLIC,schemaSource:{shopifyDevPrefix:"admin"},validation:!0,exampleVectorStoreQuery:{query:"productCreate mutation",context:"creating a product"}},shopifyql:{displayName:"ShopifyQL",versioned:!0,description:'Answer a merchant\'s **analytics and reporting** questions with **ShopifyQL** \u2014 Shopify\'s query language for aggregated store metrics that the Admin GraphQL API cannot compute. Choose this (not `admin`) whenever the ask is for **numbers, totals, trends, or breakdowns** rather than fetching or mutating individual records: including but not limited to total/gross/net sales and revenue, order counts, average order value, refunds, quantity sold, sessions, conversion rate, and traffic \u2014 sliced by product, channel, region, or customer, trended over time, or compared period-over-period. Examples: "total sales last 7 days", "orders by sales channel this month", "top products by revenue", "conversion rate this week", "sales this year vs last year". This topic covers writing the ShopifyQL query; if the merchant wants to run it against their store, execution is handed off to `use-shopify-cli`. Not for general Admin GraphQL record operations \u2014 fetching or mutating individual resources (use `admin`).',category:M.GUIDANCE,visibility:q.PUBLIC,exampleVectorStoreQuery:{query:"ShopifyQL total sales over time",context:"querying aggregated store analytics with ShopifyQL"}},"storefront-graphql":{displayName:"Storefront GraphQL API",versioned:!0,description:"Use for custom storefronts requiring direct GraphQL queries/mutations for data fetching and cart operations. Choose this when you need full control over data fetching and rendering your own UI. NOT for Web Components - if the prompt mentions HTML tags like <shopify-store>, <shopify-cart>, use storefront-web-components instead.",category:M.GRAPHQL,visibility:q.PUBLIC,schemaSource:{shopifyDevPrefix:"storefront"},validation:!0,exampleVectorStoreQuery:{query:"predictiveSearch query",context:"storefront search"}},partner:{displayName:"Partner API",versioned:!0,description:"The Partner API lets you programmatically access data about your Partner Dashboard, including your apps, themes, and affiliate referrals.",category:M.GRAPHQL,visibility:q.PUBLIC,schemaSource:{shopifyDevPrefix:"partner"},validation:!0,exampleVectorStoreQuery:{query:"transactions query",context:"partner transaction history"}},customer:{displayName:"Customer Account API",versioned:!0,description:"Write and validate GraphQL operations for developers integrating Shopify's Customer Account API. Generates code for Customer Account API integrations.",category:M.GRAPHQL,visibility:q.PUBLIC,schemaSource:{shopifyDevPrefix:"customer"},validation:!0,exampleVectorStoreQuery:{query:"customer orders query",context:"customer order history"}},"payments-apps":{displayName:"Payments Apps API",versioned:!0,description:"The Payments Apps API enables payment providers to integrate their payment solutions with Shopify's checkout.",category:M.GRAPHQL,visibility:q.PUBLIC,schemaSource:{shopifyDevPrefix:"payments_apps"},validation:!0,exampleVectorStoreQuery:{query:"paymentSessionPending mutation",context:"pending a payment session"}},functions:{displayName:"Shopify Functions",versioned:!0,description:"Shopify Functions allow developers to customize the backend logic that powers parts of Shopify. Available APIs: Discount, Cart and Checkout Validation, Cart Transform, Pickup Point Delivery Option Generator, Delivery Customization, Fulfillment Constraints, Local Pickup Delivery Option Generator, Order Routing Location Rule, Payment Customization",category:M.FUNCTIONS,visibility:q.PUBLIC,validation:!0,exampleVectorStoreQuery:{query:"cart transform function input query",context:"cart transform function inputs"}},functions_cart_checkout_validation:{displayName:"Cart Checkout Validation Function",versioned:!0,description:"GraphQL schema for Cart and Checkout Validation Function input queries",category:M.FUNCTION_GRAPHQL,visibility:q.PUBLIC,schemaSource:{shopifyDevPrefix:"functions_cart_checkout_validation_schema"}},functions_cart_transform:{displayName:"Cart Transform Function",versioned:!0,description:"GraphQL schema for Cart Transform Function input queries",category:M.FUNCTION_GRAPHQL,visibility:q.PUBLIC,schemaSource:{shopifyDevPrefix:"functions_cart_transform_schema"}},functions_delivery_customization:{displayName:"Delivery Customization Function",versioned:!0,description:"GraphQL schema for Delivery Customization Function input queries",category:M.FUNCTION_GRAPHQL,visibility:q.PUBLIC,schemaSource:{shopifyDevPrefix:"functions_delivery_customization_schema"}},functions_discount:{displayName:"Discount Function",versioned:!0,description:"GraphQL schema for Discount Function input queries",category:M.FUNCTION_GRAPHQL,visibility:q.PUBLIC,schemaSource:{shopifyDevPrefix:"functions_discount_schema"}},functions_fulfillment_constraints:{displayName:"Fulfillment Constraints Function",versioned:!0,description:"GraphQL schema for Fulfillment Constraints Function input queries",category:M.FUNCTION_GRAPHQL,visibility:q.PUBLIC,schemaSource:{shopifyDevPrefix:"functions_fulfillment_constraints_schema"}},functions_local_pickup_delivery_option_generator:{displayName:"Local Pickup Delivery Option Generator Function",versioned:!0,description:"GraphQL schema for Local Pickup Delivery Option Generator Function input queries",category:M.FUNCTION_GRAPHQL,visibility:q.PUBLIC,schemaSource:{shopifyDevPrefix:"functions_local_pickup_delivery_option_generator_schema"}},functions_order_discounts:{displayName:"Order Discounts Function",versioned:!0,description:"GraphQL schema for Order Discounts Function input queries",category:M.FUNCTION_GRAPHQL,visibility:q.PUBLIC,schemaSource:{shopifyDevPrefix:"functions_order_discounts_schema"}},functions_order_routing_location_rule:{displayName:"Order Routing Location Rule Function",versioned:!0,description:"GraphQL schema for Order Routing Location Rule Function input queries",category:M.FUNCTION_GRAPHQL,visibility:q.PUBLIC,schemaSource:{shopifyDevPrefix:"functions_order_routing_location_rule_schema"}},functions_payment_customization:{displayName:"Payment Customization Function",versioned:!0,description:"GraphQL schema for Payment Customization Function input queries",category:M.FUNCTION_GRAPHQL,visibility:q.PUBLIC,schemaSource:{shopifyDevPrefix:"functions_payment_customization_schema"}},functions_pickup_point_delivery_option_generator:{displayName:"Pickup Point Delivery Option Generator Function",versioned:!0,description:"GraphQL schema for Pickup Point Delivery Option Generator Function input queries",category:M.FUNCTION_GRAPHQL,visibility:q.PUBLIC,schemaSource:{shopifyDevPrefix:"functions_pickup_point_delivery_option_generator_schema"}},functions_product_discounts:{displayName:"Product Discounts Function",versioned:!0,description:"GraphQL schema for Product Discounts Function input queries",category:M.FUNCTION_GRAPHQL,visibility:q.PUBLIC,schemaSource:{shopifyDevPrefix:"functions_product_discounts_schema"}},functions_shipping_discounts:{displayName:"Shipping Discounts Function",versioned:!0,description:"GraphQL schema for Shipping Discounts Function input queries",category:M.FUNCTION_GRAPHQL,visibility:q.PUBLIC,schemaSource:{shopifyDevPrefix:"functions_shipping_discounts_schema"}},"polaris-app-home":{displayName:"Polaris App Home",versioned:!0,description:"Build your app's primary user interface embedded in the Shopify admin using the **iframe** model \u2014 a web app you host yourself, rendered with `@shopify/polaris-types` and App Bridge. Covers the Intents API (`shopify.intents.invoke`) for launching native workflows from App Home. For the Shopify-hosted `admin.app.home.render` extension target, use **`polaris-admin-extensions`** instead. If the prompt just mentions `Polaris` and you can't tell based off of the context what API they meant, assume they meant this API.",category:M.UI_FRAMEWORK,publicPackages:["@shopify/polaris-types",{name:"@shopify/app-bridge-types",versionIndependent:!0},{name:"@shopify/app-bridge-react",versionIndependent:!0},{name:"@shopify/analytics-ui-types",versionIndependent:!0}],visibility:q.PUBLIC,validation:!0,exampleVectorStoreQuery:{query:"s-page",context:"page layout in app home"}},"polaris-admin-extensions":{displayName:"Polaris Admin Extensions",versioned:!0,description:"Add custom actions and blocks from your app at contextually relevant spots throughout the Shopify Admin, including **App Home UI extensions** \u2014 the Shopify-hosted `admin.app.home.render` target (API version `2026-07` or later) that renders your app's landing page instead of an iframe. Covers the Intents API (`shopify.intents.invoke`) for launching native workflows from an extension. Admin UI Extensions also supports scaffolding new admin extensions using Shopify CLI commands.",category:M.UI_FRAMEWORK,publicPackages:["@shopify/ui-extensions",{name:"@shopify/ui-extensions-react",versions:["2025-07"]}],extensionSurfaceName:"admin",extensionTypeName:"Admin Extensions",extensionSearchContext:"admin UI extensions",visibility:q.PUBLIC,validation:!0,exampleVectorStoreQuery:{query:"admin.product-details.block.render",context:"admin extension target for product details blocks"},exampleExtensionTarget:"admin.product-details.block.render"},"polaris-checkout-extensions":{displayName:"Polaris Checkout Extensions",versioned:!0,description:"Build custom functionality that merchants can install at defined points in the checkout flow, including product information, shipping, payment, order summary, and Shop Pay. Checkout UI Extensions also supports scaffolding new checkout extensions using Shopify CLI commands. This topic covers the extension code only \u2014 when the prompt also needs an app backend (for example storing data in the developer's own database, or verifying session tokens on a server), also learn **`onboarding-dev`** to scaffold the app with Shopify's official backend libraries.",category:M.UI_FRAMEWORK,publicPackages:["@shopify/ui-extensions",{name:"@shopify/ui-extensions-react",versions:["2025-07"]}],extensionSurfaceName:"checkout",extensionTypeName:"Checkout Extensions",extensionSearchContext:"checkout UI extensions",visibility:q.PUBLIC,validation:!0,exampleVectorStoreQuery:{query:"s-button checkout",context:"checkout button"},exampleExtensionTarget:"purchase.checkout.block.render"},"polaris-customer-account-extensions":{displayName:"Polaris Customer Account Extensions",versioned:!0,description:"Build custom functionality that merchants can install at defined points on the Order index, Order status, and Profile pages in customer accounts. Customer Account UI Extensions also supports scaffolding new customer account extensions using Shopify CLI commands.",category:M.UI_FRAMEWORK,publicPackages:["@shopify/ui-extensions",{name:"@shopify/ui-extensions-react",versions:["2025-07"]}],extensionSurfaceName:"customer-account",extensionTypeName:"Customer Account Extensions",extensionSearchContext:"customer account UI extensions",visibility:q.PUBLIC,validation:!0,exampleVectorStoreQuery:{query:"s-card customer-account",context:"customer account card"},exampleExtensionTarget:"customer-account.order-status.block.render"},"pos-ui":{displayName:"POS UI",versioned:!0,description:"Build retail point-of-sale applications using Shopify's POS UI components. These components provide a consistent and familiar interface for POS applications. POS UI Extensions also supports scaffolding new POS extensions using Shopify CLI commands. Keywords: POS, Retail, smart grid",category:M.UI_FRAMEWORK,publicPackages:["@shopify/ui-extensions",{name:"@shopify/ui-extensions-react",versions:["2025-07"]}],extensionSurfaceName:"point-of-sale",extensionTypeName:"POS UI Extensions",extensionSearchContext:"POS UI extensions",visibility:q.PUBLIC,validation:!0,exampleVectorStoreQuery:{query:"pos.home.tile.render",context:"POS home tile extension target"},exampleExtensionTarget:"pos.customer-details.block.render"},hydrogen:{displayName:"Hydrogen",versioned:!0,description:"Hydrogen storefront implementation cookbooks. Some of the available recipes are: B2B Commerce, Bundles, Combined Listings, Custom Cart Method, Dynamic Content with Metaobjects, Express Server, Google Tag Manager Integration, Infinite Scroll, Legacy Customer Account Flow, Markets, Partytown + Google Tag Manager, Subscriptions, Third-party API Queries and Caching. MANDATORY: Use this API for ANY Hydrogen storefront question - do NOT use Storefront GraphQL when 'Hydrogen' is mentioned.",category:M.UI_FRAMEWORK,publicPackages:["@shopify/hydrogen"],visibility:q.PUBLIC,validation:!0,exampleVectorStoreQuery:{query:"CartForm component",context:"cart UI"}},"storefront-web-components":{displayName:"Storefront Web Components",description:"HTML-first web components for building storefronts WITHOUT GraphQL. Choose when prompts mention: Web Components, HTML tags (<shopify-store>, <shopify-context>, <shopify-cart>, <shopify-variant-selector>, <shopify-money>), native <dialog>, 'HTML-only', 'without JavaScript', or 'no GraphQL'. Components handle data fetching and state internally.",category:M.UI_FRAMEWORK,featureFlag:"storefrontWebComponentsEnabled",visibility:q.EARLY_ACCESS,validation:!0,exampleVectorStoreQuery:{query:"shopify-cart",context:"cart web component"}},liquid:{displayName:"Liquid",description:"Liquid is an open-source templating language created by Shopify. It is the backbone of Shopify themes and is used to load dynamic content on storefronts. Keywords: liquid, theme, shopify-theme, liquid-component, liquid-block, liquid-section, liquid-snippet, liquid-schemas, shopify-theme-schemas",category:M.THEME,visibility:q.PUBLIC,schemaSource:{npmPackage:"@shopify/theme-check-common"},validation:!0,exampleVectorStoreQuery:{query:"product metafields",context:"product metafield access in a theme"}},"custom-data":{displayName:"Custom Data",description:"MUST be used first when prompts mention Metafields or Metaobjects. Use Metafields and Metaobjects to model and store custom data for your app. Metafields extend built-in Shopify data types like products or customers, Metaobjects are custom data types that can be used to store bespoke data structures. Metafield and Metaobject definitions provide a schema and configuration for values to follow.",activationTerms:["metafields or metaobjects"],category:M.CONFIGURATION,visibility:q.PUBLIC,searchable:!1},"app-pricing":{displayName:"Shopify App Pricing",description:"Use first when a developer asks how to configure public-app plans, tiers, recurring or usage-based options, or trials. Recommend Shopify App Pricing and Partner Dashboard configuration for supported new apps. Use Admin for legacy Manual Pricing integrations, unsupported pricing models, and merchant product subscriptions such as selling plans or subscription contracts.",category:M.GUIDANCE,visibility:q.PUBLIC,searchable:"unscoped",exampleVectorStoreQuery:{query:"Shopify App Pricing",context:"choosing and implementing app monetization"}},"app-store-review":{displayName:"App Store Review",description:"Run a pre-submission compliance check against your Shopify app's codebase. Reviews App Store requirements and surfaces likely issues before you submit for official review.",category:M.GUIDANCE,visibility:q.PUBLIC,searchable:!1,compatibility:"Requires Node.js and Shopify CLI"},"onboarding-dev":{displayName:"Developer Onboarding",description:"Get started building on Shopify. Use when a developer asks to build an app, build a theme, create a dev store, set up a partner account, scaffold a project, or get started developing for Shopify \u2014 including building an app in a specific backend language or framework (for example Laravel, Symfony, Django, Flask, Rails, or Express); this topic covers scaffolding the app and choosing Shopify's official library for that language. When the prompt also involves an extension surface (checkout, admin, POS, customer accounts), learn this topic **in addition to** the surface topic. NOT for merchants managing stores.",category:M.GUIDANCE,visibility:q.PUBLIC,searchable:!1,compatibility:"Requires Node.js and Shopify CLI"},"onboarding-merchant":{displayName:"Merchant Onboarding",description:"Set up a Shopify store. Use to make, build, or open a store (e.g. 'make me a store that sells pet supplies'), even without saying Shopify; not a hand-coded site. Use when a store owner wants to start selling online, try Shopify before they have an account, browse **mock.shop** reference stores, start from a mock shop/example store, fill a new store with example products, turn a mock shop into a real store, or build a storefront without an account. Also use when developers explicitly need auth-free mock.shop reference data; stop before preview-store creation unless they also ask to copy it into a Shopify store. Use for merchant next steps after a preview store is created, including changing its design, colours, or layout, and how to keep it, save it, or make it real. Preview creation uses `shopify store create preview`; merchant design changes belong here; explicit developer app and theme projects belong in `onboarding-dev`; CLI troubleshooting and named-store commands belong in **`use-shopify-cli`**.",activationTerms:["make me a store that sells pet supplies","mock.shop reference stores","build a storefront without an account"],category:M.GUIDANCE,visibility:q.PUBLIC,searchable:!1,compatibility:"Requires Node.js and Shopify CLI",frontmatterExtras:{maintainer:"Shopify"}}});var Oc={shopifyql:[{name:"2027-01",releaseCandidate:!0},{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"},{name:"2025-10"}],admin:[{name:"unstable"},{name:"2027-01",releaseCandidate:!0},{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"}],"storefront-graphql":[{name:"unstable"},{name:"2027-01",releaseCandidate:!0},{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"}],partner:[{name:"unstable"},{name:"2027-01",releaseCandidate:!0},{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"}],customer:[{name:"unstable"},{name:"2027-01",releaseCandidate:!0},{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"}],"payments-apps":[{name:"unstable"},{name:"2027-01",releaseCandidate:!0},{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"}],"polaris-app-home":[{name:"v2.0",latestVersion:!0},{name:"v1.1"},{name:"v1.0"}],"polaris-admin-extensions":[{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"},{name:"2025-10"},{name:"2025-07"}],"polaris-checkout-extensions":[{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"},{name:"2025-10"},{name:"2025-07"}],"polaris-customer-account-extensions":[{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"},{name:"2025-10"},{name:"2025-07"}],"pos-ui":[{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"},{name:"2025-10"},{name:"2025-07"}],hydrogen:[{name:"2026-10",latestVersion:!0},{name:"2026-04"},{name:"2026-01"},{name:"2025-10"},{name:"2025-07"}],"storefront-web-components":[],functions_cart_checkout_validation:[{name:"unstable"},{name:"2027-01",releaseCandidate:!0},{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"}],functions_cart_transform:[{name:"unstable"},{name:"2027-01",releaseCandidate:!0},{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"}],functions_delivery_customization:[{name:"unstable"},{name:"2027-01",releaseCandidate:!0},{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"}],functions_discount:[{name:"unstable"},{name:"2027-01",releaseCandidate:!0},{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"}],functions_fulfillment_constraints:[{name:"unstable"},{name:"2027-01",releaseCandidate:!0},{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"}],functions_local_pickup_delivery_option_generator:[{name:"unstable",latestVersion:!0}],functions_order_discounts:[{name:"unstable"},{name:"2027-01",releaseCandidate:!0},{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"}],functions_order_routing_location_rule:[{name:"unstable"},{name:"2027-01",releaseCandidate:!0},{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"}],functions_payment_customization:[{name:"unstable"},{name:"2027-01",releaseCandidate:!0},{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"}],functions_pickup_point_delivery_option_generator:[{name:"unstable",latestVersion:!0}],functions_product_discounts:[{name:"unstable"},{name:"2027-01",releaseCandidate:!0},{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"}],functions_shipping_discounts:[{name:"unstable"},{name:"2027-01",releaseCandidate:!0},{name:"2026-10",latestVersion:!0},{name:"2026-07"},{name:"2026-04"},{name:"2026-01"}]};var ho=Oc,Nc=Object.fromEntries(Object.entries(ho).filter(([e,t])=>t.length>0).map(([e,t])=>[e,t.map(r=>r.name)]));function Ic(e){return Object.prototype.hasOwnProperty.call(Nc,e)}n(Ic,"hasSupportedVersions");function Sc(e){return Ic(e)?Nc[e]:[]}n(Sc,"getSupportedVersions");function bm(e){let t=ho[e];if(t)return t.find(r=>r.latestVersion)?.name??t[0]?.name}n(bm,"getLatestVersion");function Lc(e,t){if(!Ic(e))throw new Error(`API "${e}" is not in the supported versions catalog. Only call resolveVersion for APIs with entries in SUPPORTED_API_VERSIONS.`);let r=Sc(e);if(r.length===0)return{ok:!1,reason:"no_versions",supportedVersions:r};let i=_m(e,t);if(i)return r.includes(i)?{ok:!0,version:i,source:"explicit",supportedVersions:r}:{ok:!1,reason:"unsupported_version",supportedVersions:r};let o=bm(e);return o?{ok:!0,version:o,source:"default",supportedVersions:r}:{ok:!1,reason:"no_versions",supportedVersions:r}}n(Lc,"resolveVersion");function _m(e,t){if(!t||e!=="polaris-app-home")return t;let r=t.replace(/^v/,""),i=/^(\d+)$/.exec(r)?.[1];if(i){let u=ho[e]?.filter(c=>!c.releaseCandidate&&new RegExp("^v?"+i+"\\.\\d+$").test(c.name)).sort((c,l)=>{let p=Number(c.name.replace(/^v/,"").split(".")[1]),f=Number(l.name.replace(/^v/,"").split(".")[1]);return p-f}).at(-1)?.name;if(u)return u}let o=r.replace(/-rc$/,""),s=[t,r,"v"+o,o],a=Sc(e);return s.find(u=>a.includes(u))??t}n(_m,"normalizeRequestedVersion");var It=yo(io(),1);import{readFileSync as ON}from"node:fs";import Nt from"node:path";import{fileURLToPath as NN}from"node:url";import{existsSync as uc}from"node:fs";import Lr from"node:fs/promises";import oo from"node:zlib";var sc=class{static{n(this,"SchemaCache")}cache=new Map;get(t){return this.cache.get(t)}set(t,r){this.cache.set(t,r)}},ac=new sc;async function EN(e){let{buildSchema:t,introspectionFromSchema:r}=await Promise.resolve().then(()=>yo(io(),1)),i=await Lr.readFile(e,"utf-8"),o=r(t(i));return JSON.stringify({data:o})}n(EN,"convertSdlToIntrospectionJson");async function xf(e){let t=e.schemaPath,r=ac.get(t);if(r)return r;try{let i;if(t.endsWith(".br")){let o=await Lr.readFile(t);i=oo.brotliDecompressSync(o).toString("utf-8")}else if(t.endsWith(".gz")){let o=await Lr.readFile(t);i=oo.gunzipSync(o).toString("utf-8")}else if(t.endsWith(".graphql")||t.endsWith(".graphqls")||t.endsWith(".gql"))i=await EN(t);else if(uc(t))i=await Lr.readFile(t,"utf-8");else{let o=`${t}.br`,s=`${t}.gz`;if(uc(o)){let a=await Lr.readFile(o);i=oo.brotliDecompressSync(a).toString("utf-8")}else if(uc(s)){let a=await Lr.readFile(s);i=oo.gunzipSync(a).toString("utf-8")}else throw new Error(`Schema file not found at ${t}, ${o}, or ${s}`)}return ac.set(t,i),i}catch(i){throw console.error(`[graphql-schema-utils] Error loading schema: ${i}`),i}}n(xf,"loadSchemaContent");function IN(){let e=Nt.dirname(NN(import.meta.url));if(e.includes("dev-mcp")&&e.includes("dist")&&!e.includes("shopify-dev-tools"))return Nt.join(e,"data");if(e.includes("/dist")||e.includes("\\dist")){let t=e.lastIndexOf(Nt.sep+"dist");if(t!==-1){let r=e.substring(0,t+5);return Nt.join(r,"data")}else return Nt.join(e,"data")}return Nt.resolve(e,"../data")}n(IN,"getDataDirectory");var cc=IN(),so={readVersionCatalog(){let e=Nt.join(cc,"supported-versions-schema.json");return JSON.parse(ON(e,"utf-8"))},readSchemaContent(e){return xf(e)}};function qf(e){let t=xn[e];if(t?.gqlSchemaPath)return t.gqlSchemaPath;if(t?.gqlSchemaFileName)return Nt.join(cc,t.gqlSchemaFileName)}n(qf,"configuredSchemaPath");function Vf(e,t){return qf(e)??Nt.join(cc,`${e}_${t}.json`)}n(Vf,"schemaPathFor");function SN(e){let t=e.replace(/\.json(?:\.gz)?$/,""),r=t.lastIndexOf("_");return r===-1?"latest":t.slice(r+1)}n(SN,"deriveVersionNameFromSchemaFile");function Mf(e,t,r=so){if(e.length===0)throw new Error("No APIs provided");if(t){if(e.length!==1)throw new Error("schemaOptions can only be provided when requesting a single API");return[{...t,api:e[0],schemaPath:t.schemaPath??Vf(e[0],t.name)}]}let i=r.readVersionCatalog(),o=[];for(let s of e){let a=i[s];if(a){let u=a.map(c=>({...c,api:s,schemaPath:Vf(s,c.name)}));o.push(...u)}else{let u=xn[s],c=qf(s);if(!c)continue;o.push({name:u?.gqlSchemaFileName?SN(u.gqlSchemaFileName):"latest",latestVersion:!0,api:s,schemaPath:c})}}return o}n(Mf,"loadAPISchemas");var Dr=yo(io(),1);function Rn(e,t,r){return e.items.find(i=>r?i.type==="field"&&i.typeName===t&&i.fieldName===r:i.type==="type"&&i.typeName===t)}n(Rn,"getEntry");var lc=class{static{n(this,"OfflineScopeEntryCollector")}entries=new Map;add(t){if(!t||t.offlineScopes.length===0)return;let r=t.type==="field"?`${t.typeName}.${t.fieldName}`:t.typeName;this.entries.has(r)||this.entries.set(r,t)}toArray(){return Array.from(this.entries.values())}};async function Gf(e,t,r="admin"){let i=new lc,o=new Map(e.definitions.filter(s=>s.kind===Dr.Kind.FRAGMENT_DEFINITION).map(s=>[s.name.value,s]));for(let s of e.definitions)if(s.kind===Dr.Kind.OPERATION_DEFINITION){let a=s;if(a.selectionSet){let u=PN(a.operation,r);i.add(Rn(t,u)),Uf(a.selectionSet,u,t,i,o)}}return i.toArray()}n(Gf,"analyzeOfflineScopeEntries");function LN(e,t,r,i){let o=e.name.value,s=Rn(r,t,o);if(i.add(s),!e.selectionSet)return{nextSelectionSet:null,nextTypeName:null};let a=s?.returnType;return a&&i.add(Rn(r,a)),{nextSelectionSet:e.selectionSet,nextTypeName:a||null}}n(LN,"processFieldSelection");function DN(e,t,r,i,o){let s=e.name.value;if(r.has(s))return{nextSelectionSet:null,nextTypeName:null};r.add(s);let a=t.get(s);if(!a?.selectionSet)return{nextSelectionSet:null,nextTypeName:null};let u=a.typeCondition.name.value;return o.add(Rn(i,u)),{nextSelectionSet:a.selectionSet,nextTypeName:u}}n(DN,"processFragmentSpread");function AN(e,t,r,i){if(!e.selectionSet)return{nextSelectionSet:null,nextTypeName:null};let o=e.typeCondition?.name.value||t;return i.add(Rn(r,o)),{nextSelectionSet:e.selectionSet,nextTypeName:o}}n(AN,"processInlineFragment");function Uf(e,t,r,i,o,s=new Set){for(let a of e.selections){let u;if(a.kind===Dr.Kind.FIELD)u=LN(a,t,r,i);else if(a.kind===Dr.Kind.FRAGMENT_SPREAD)u=DN(a,o,s,r,i);else if(a.kind===Dr.Kind.INLINE_FRAGMENT)u=AN(a,t,r,i);else continue;u.nextSelectionSet&&u.nextTypeName&&Uf(u.nextSelectionSet,u.nextTypeName,r,i,o,s)}}n(Uf,"walkSelectionSet");function PN(e,t="admin"){return t==="admin"?e==="mutation"?"Mutation":"QueryRoot":e==="mutation"?"Mutation":"Query"}n(PN,"getRootTypeName");function Qf(e){return!e||e.length===0?"":`
Required scopes: ${e.join(", ")}`}n(Qf,"formatScopes");function RN(e){return e&&typeof e.schemaPath=="string"}n(RN,"isAPIVersionWithAPI");async function pc(e,t,r){let i=e.trim();if(!i)return{validation:{result:"failed",resultDetail:"No GraphQL operation found in the provided code."},scopes:[],scopeEntries:[]};let o,s=!0,a=so;if(r&&(RN(r)?o=r:(o=r.apiVersion,s=r.failOnDeprecated??!0,a=r.schemaSource??so)),o?.name){let p=(a.readVersionCatalog()[t]??[]).map(f=>f.name);if(p.length>0&&!p.includes(o.name))throw new Error(`Unsupported version "${o.name}" for API "${t}". Available versions: ${p.join(", ")}.`)}let u,c,l;try{let p=Mf([t],o,a);if(p.length===0)throw new Error(`No schema configuration found for API "${t}"`);l=p.find(m=>m.latestVersion)??p[0];let f=await jN(l,a);u=f.graphQLSchema,c=f.offlineScopes}catch(p){let f=p instanceof Error?p.message:String(p);throw f.includes("No APIs provided")?new Error("API name cannot be empty"):f.includes("Schema file not found")?o&&o.name?new Error(`Cannot load schema for API "${t}" version "${o.name}" - the schema file does not exist`):new Error(`Cannot load schema for API "${t}" - the schema file does not exist`):p}return CN({graphqlCode:i,schema:u,api:t,version:l.name,offlineScopeData:c,failOnDeprecated:s})}n(pc,"validateGraphQLOperation");function dc(e){return e.some(t=>t.result==="failed")}n(dc,"hasFailedValidation");async function jN(e,t){if(!e||Object.keys(e).length===0)throw new Error("No API version provided");let r=await t.readSchemaContent(e),i=JSON.parse(r),o=i.data;if(e.api.startsWith("functions_")&&o.__schema&&o.__schema.types){let s=new Set;for(let a of o.__schema.types)a.kind==="INPUT_OBJECT"&&a.inputFields&&a.inputFields.length===0&&s.add(a.name);if(s.size>0)for(let a of o.__schema.types)s.has(a.name)&&(a.inputFields=[{name:"_placeholder",description:"Placeholder field to satisfy GraphQL spec requirement for non-empty input objects",type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null,isDeprecated:!1,deprecationReason:null}])}return{graphQLSchema:(0,It.buildClientSchema)(o),offlineScopes:i.offline_scopes||{items:[]}}}n(jN,"loadAndBuildGraphQLSchema");function kN(e){try{return{success:!0,document:(0,It.parse)(e)}}catch(t){return{success:!1,error:t instanceof Error?t.message:String(t)}}}n(kN,"parseGraphQLDocument");function wN(e,t){return(0,It.validate)(e,t).map(i=>i.message)}n(wN,"validateGraphQLAgainstSchema");function FN(e){if(e.definitions.length>0){let t=e.definitions[0];if(t.kind==="OperationDefinition")return t.operation}return"operation"}n(FN,"getOperationType");async function CN(e){let{graphqlCode:t,schema:r,api:i,offlineScopeData:o,failOnDeprecated:s}=e,a=t.trim(),u=kN(a);if(u.success===!1)return{validation:{result:"failed",resultDetail:`GraphQL syntax error: ${u.error}`},scopes:[],scopeEntries:[]};let c=wN(r,u.document);if(c.length>0)return{validation:{result:"failed",resultDetail:`GraphQL validation errors: ${c.join("; ")}`},scopes:[],scopeEntries:[]};let l=(0,It.validate)(r,u.document,[It.NoDeprecatedCustomRule]),p=[];try{p=await Gf(u.document,o,i)}catch{}let f=Array.from(new Set(p.flatMap(v=>v.offlineScopes))),m=FN(u.document);if(l.length>0){let v=l.map(b=>b.message).join("; ");return s?{validation:{result:"failed",resultDetail:`Deprecated fields used: ${v}`},scopes:f,scopeEntries:p}:{validation:{result:"inform",resultDetail:`Successfully validated GraphQL ${m} against schema. Note: ${v}`},scopes:f,scopeEntries:p}}return{validation:{result:"success",resultDetail:`Successfully validated GraphQL ${m} against schema.`},scopes:f,scopeEntries:p}}n(CN,"performGraphQLValidation");import{randomUUID as xN}from"crypto";function fc(e){return e.map(t=>({artifactId:t.artifactId||`artifact-${xN()}`,revision:t.revision??1}))}n(fc,"extractArtifactsFromItems");function mc(e,t){return e.map((r,i)=>{let o=t[i];return o?{...r,artifactId:o.artifactId,artifactRevision:o.revision}:r})}n(mc,"attachArtifactIds");function yc(e,t="Items"){let r=dc(e),i=e.some(a=>a.result==="inform"),o;r?o="\u274C INVALID":i?o="\u26A0\uFE0F VALID (with warnings)":o="\u2705 VALID";let s=`## Validation Summary
`;return s+=`**Overall Status:** ${o}
`,s+=`**Total ${t}:** ${e.length}
`,s+=`## Detailed Results
`,e.forEach((a,u)=>{let c;a.result==="success"?c="\u2705":a.result==="inform"?c="\u26A0\uFE0F":c="\u274C",s+=`### ${t.slice(0,-1)} ${u+1}
`,a.artifactId&&(s+=`**Artifact ID:** ${a.artifactId}`,a.artifactRevision&&(s+=`
**Revision:** ${a.artifactRevision}`),s+=`
*Use same ID & increment revision when retrying on an improvement of this artifact*
`),s+=`**Status:** ${c} ${a.result.toUpperCase()}
`,s+=`**Details:** ${a.resultDetail}
`}),s}n(yc,"formatValidationResult");function $f(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>{let{description:i,valueName:o,choices:s,...a}=r;return[t,a]}))}n($f,"toParseArgsOptions");var Kf={model:{type:"string",valueName:"name",description:"Agent model name"},"client-name":{type:"string",valueName:"name",description:"Agent client name"},"client-version":{type:"string",valueName:"version",description:"Agent client version"}},Bf={"user-prompt-base64":{type:"string",valueName:"base64",description:"Base64-encoded triggering prompt"},"session-id":{type:"string",valueName:"id",description:"Agent session identifier"},"tool-use-id":{type:"string",valueName:"id",description:"Agent tool-use identifier"}},Yf={"artifact-id":{type:"string",valueName:"id",description:"Stable artifact identifier"},revision:{type:"string",valueName:"number",description:"Positive artifact revision"},...Kf,...Bf,json:{type:"boolean",description:"Emit machine-readable JSON"}},Hf={help:{type:"boolean",short:"h",description:"Show this help"}};function Jf(e,t){let r=new Set([...Object.keys(Kf),...Object.keys(Bf),"artifact-id","revision"]),i=Object.entries(t).filter(([s])=>!0).map(([s,a])=>{let u=a.type==="string"?a.valueName||a.choices?.join("|")||"value":void 0,c=`--${s}${u?` <${u}>`:""}`;return[a.short?`-${a.short}, ${c}`:c,a.description]}),o=Math.max(...i.map(([s])=>s.length));return["Usage:",...e.map(s=>` ${s}`),"","Options:",...i.map(([s,a])=>` ${s.padEnd(o)} ${a}`)].join(`
`)}n(Jf,"formatCliHelp");function Wf(){let e=[process.env.CLAUDE_SESSION_ID,process.env.CLAUDE_CODE_SESSION_ID,process.env.CURSOR_SESSION_ID,process.env.COPILOT_SESSION_ID];for(let t of e)if(typeof t=="string"&&t.length>0)return t}n(Wf,"readHostSessionId");import{isIP as qN}from"node:net";var MN="https://shopify.dev/",GN="https://shopify-dev.shop.dev/";function zf(e){return`https://shopify-dev-staging${e}.shopifycloud.com/`}n(zf,"stagingHost");var UN="SHOPIFY_DEV_SUPPORT_CORE_MCP_DOMAIN",ao="SHOPIFY_DEV_LOCAL_SERVER_URL";function QN(e){let t;try{t=new URL(e)}catch{throw new Error(`${ao} must identify a local Shopify.dev origin`)}let r=t.hostname==="localhost"||t.hostname==="[::1]"||qN(t.hostname)===4&&t.hostname.startsWith("127."),i=/^shopify-dev-[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.shop\.dev$/u.test(t.hostname);if(!r&&!i||r&&!t.port||i&&t.protocol!=="https:"||r&&t.protocol!=="http:"&&t.protocol!=="https:"||t.username||t.password||t.pathname!==""&&t.pathname!=="/"||t.search||t.hash)throw new Error(`${ao} must identify a local Shopify.dev origin`);return`${t.origin}/`}n(QN,"normalizeLocalShopifyDevUrl");function hc(e){let t=e?.env??process.env,r=t.SHOPIFY_DEV_STAGING_SERVER_NUMBER?.trim(),i=t[ao]?.trim();if(i&&e?.allowLocalServer){if(r||t.DEV&&t.DEV!=="false"||t[UN]?.trim())throw new Error(`${ao} cannot be combined with staging, DEV, or Support Core routing overrides`);return{url:QN(i),headers:{}}}if(r){if(!/^\d+$/.test(r))throw new Error(`SHOPIFY_DEV_STAGING_SERVER_NUMBER must be a positive integer; got: "${r}"`);let s=Number(r);if(!Number.isSafeInteger(s)||s<=0)throw new Error(`SHOPIFY_DEV_STAGING_SERVER_NUMBER must be a positive integer; got: "${r}"`);let a=t.MINERVA_TOKEN;if(!a){let u=zf(s).replace(/\/$/,"");throw new Error(`SHOPIFY_DEV_STAGING_SERVER_NUMBER=${s} is set but no Minerva token is available. Staging servers are behind Minerva. Get a token via:
export MINERVA_TOKEN=$(devx minerva-auth --client-id 0oa1bphetnkOusboI0x8 --audience ${u})`)}return{url:zf(s),headers:{Cookie:`MINERVA_TOKEN=${a}`}}}let o=t.SHOPIFY_DEV_INSTRUMENTATION_URL?.trim();return o&&e?.uri?.startsWith("/mcp/usage")?{url:o,headers:{}}:t.DEV&&t.DEV!=="false"?{url:GN,headers:{}}:{url:MN,headers:{}}}n(hc,"resolveShopifyDevBaseUrl");async function Xf(e,t){let r,i={};if(e.startsWith("http://")||e.startsWith("https://"))r=new URL(e);else{let s=hc({uri:e,allowLocalServer:t?.allowLocalServer});r=new URL(e,s.url),i=s.headers}t?.parameters&&Object.entries(t.parameters).forEach(([s,a])=>{r.searchParams.append(s,a)});let o=await fetch(r.toString(),{method:t?.method||"GET",...t?.redirect&&{redirect:t.redirect},headers:{Accept:"application/json","Cache-Control":"no-cache","X-Shopify-Surface":"mcp","X-Shopify-MCP-Version":t?.instrumentation?.packageVersion||"","X-Shopify-Timestamp":t?.instrumentation?.timestamp||"",...i,...t?.headers},...t?.body&&{body:t.body}});if(!o.ok){let s;try{s=await o.text()}catch{}throw new Error(s?`HTTP ${o.status}: ${s}`:`HTTP error! status: ${o.status}`)}return await o.text()}n(Xf,"shopifyDevFetch");import{readFileSync as $N,statSync as KN}from"node:fs";import{homedir as BN}from"node:os";import{join as jn}from"node:path";var uo="shopify-ai-toolkit",co="opt-out",YN="SHOPIFY_AI_TOOLKIT_OPT_OUT_FILE",HN=new Set(["false","0","no","off"]);function Zf(e){return{env:e?.env??process.env,platform:e?.platform??process.platform,homeDir:e&&"homeDir"in e?e.homeDir:JN(e?.env??process.env)}}n(Zf,"resolveContext");function JN(e){let t=e.HOME?.trim()||e.USERPROFILE?.trim();if(t)return t;try{return BN()||void 0}catch{return}}n(JN,"resolveHomeDir");function WN(e){let{env:t,platform:r,homeDir:i}=Zf(e),o=[],s=t[YN]?.trim();s&&o.push(s);let a=t.XDG_CONFIG_HOME?.trim();if(a&&o.push(jn(a,uo,co)),i&&(o.push(jn(i,".config",uo,co)),r==="darwin"&&o.push(jn(i,"Library","Application Support",uo,co))),r==="win32"){let u=t.APPDATA?.trim()||(i?jn(i,"AppData","Roaming"):void 0);u&&o.push(jn(u,uo,co))}return[...new Set(o.filter(u=>!!u))]}n(WN,"telemetryOptOutFileCandidates");function zN(e){if(e.OPT_OUT_INSTRUMENTATION?.trim().toLowerCase()==="true")return!0;let t=e.DO_NOT_TRACK?.trim().toLowerCase();return t==="1"||t==="true"}n(zN,"envSaysOptOut");function XN(e){try{if(!KN(e).isFile())return!1}catch{return!1}try{let t=$N(e,"utf8").trim().toLowerCase();return!HN.has(t)}catch{return!0}}n(XN,"fileSaysOptOut");function em(e){try{let t=Zf(e);return zN(t.env)?!0:WN(t).some(XN)}catch{return!1}}n(em,"isTelemetryOptedOut");function tm(e){return{...e?.api&&{api:e.api},...e?.api_version&&{api_version:e.api_version},...e?.resolve_api_version&&{resolve_api_version:e.resolve_api_version}}}n(tm,"nonEmptyUsageMetadata");var ZN={ucp:"ucp"},e0="functions_",t0="shopify-";function rm(e){if(e)return e.startsWith(e0)?"shopify-functions":ZN[e]??`${t0}${e}`}n(rm,"legacySkillName");function r0(){return em()}n(r0,"isInstrumentationDisabled");function nm(e){if(!(typeof e!="string"||e.length===0))try{let t=Buffer.from(e,"base64").toString("utf8");return t.length>0?t:void 0}catch{return}}n(nm,"decodeUserPrompt");async function vc(e,t,r,i){if(!!0||r0())return;let{model:o,clientName:s,clientVersion:a,user_prompt:u,sessionId:c,toolUseId:l,topic:p,...f}=r??{},m=typeof p=="string"&&p.length>0?p:void 0,b=n((...ne)=>{for(let ie of ne)if(typeof ie=="string"&&ie.length>0)return ie},"firstApi")(i?.api,(r??{}).api),V=rm(m??b??"")??"shopify",J=typeof c=="string"&&c.length>0?c:Wf(),z=typeof u=="string"&&u.length>0?u.slice(0,2e3):void 0;try{let ne={"Content-Type":"application/json","X-Shopify-Surface":"skills"};s&&(ne["X-Shopify-Client-Name"]=String(s)),a&&(ne["X-Shopify-Client-Version"]=String(a)),o&&(ne["X-Shopify-Client-Model"]=String(o));let ie=JSON.stringify({tool:e,parameters:{skill:V,skillBundle:"shopify",skillVersion:"1.19.0",...m!==void 0&&{topic:m},...z!==void 0&&{user_prompt:z},...J!==void 0&&{sessionId:J},...typeof l=="string"&&l.length>0&&{toolUseId:l},...f},result:t,...tm(i)});if(process.env.SKILL_TELEMETRY_TEST_MODE==="1"){let{url:ge}=hc({uri:"/mcp/usage"}),mt=new URL("/mcp/usage",ge).toString();process.stderr.write([`[TEST_TELEMETRY_ENDPOINT] ${mt}`,...Object.entries(ne).map(([nt,St])=>`[TEST_TELEMETRY_HEADER] ${nt}: ${St}`),`[TEST_TELEMETRY_BODY] ${ie}`,""].join(`
`));return}await Xf("/mcp/usage",{method:"POST",headers:ne,body:ie,instrumentation:{packageVersion:"1.19.0",timestamp:new Date().toISOString()}})}catch{}}n(vc,"reportValidation");var im={code:{type:"string",short:"c",valueName:"graphql",description:"GraphQL operation string"},file:{type:"string",short:"f",valueName:"path",description:"Read the operation from a file"},api:{type:"string",short:"a",valueName:"name",description:"API for source-mode validation"},version:{type:"string",valueName:"YYYY-MM|unstable",description:"Shopify API version"},...Yf,...Hf},a0=Jf(["scripts/validate.mjs --code '<graphql>' [options]","scripts/validate.mjs --file ./query.graphql [options]","cat query.graphql | scripts/validate.mjs [options]"],im),{values:Z}=s0({options:$f(im),allowPositionals:!0});Z.help&&(console.log(a0),process.exit(0));var om=nm(Z["user-prompt-base64"]),sm,wn,am=typeof __API_NAME__<"u"?__API_NAME__:Z.api;am||(console.error("Required: --api <name> when running outside the bundled per-skill build."),process.exit(1));var ft=am;function um(){return{api:ft,...Z.version&&{api_version:Z.version},...wn&&{resolve_api_version:wn}}}n(um,"validationUsageMetadata");function u0(e,t){let r=o0(import.meta.url),i=kn.dirname(r),o=kn.join(i,"..","assets"),s=kn.join(o,`${e}_${t}.json.br`);if(Tc(s))return s;let a=kn.join(o,`${e}_${t}.json.gz`);if(Tc(a))return a;let u=kn.join(o,`${e}_${t}.json`);if(Tc(u))return u;let c=n0(o).filter(l=>l.startsWith(`${e}_`)).join(", ");throw new Error(`Schema for '${e}' version '${t}' is not bundled with this skill. Available: ${c||"none"}.`)}n(u0,"findBundledSchemaPath");async function c0(){if(Z.code)return Z.code;if(Z.file)return i0(Z.file,"utf-8");let e=[];for await(let r of process.stdin)e.push(r);let t=Buffer.concat(e).toString("utf-8").trim();return t||(console.error("No GraphQL operation provided. Use --code, --file, or pipe via stdin."),process.exit(1)),t}n(c0,"readOperation");function cm(e){if(!e)return;let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:void 0}n(cm,"parseRevision");async function l0(){let e=await c0();sm=e;let t=Lc(ft,Z.version);if(!t.ok)throw new Error(Z.version?`Version '${Z.version}' is not available for API '${ft}'. Available versions for '${ft}': ${t.supportedVersions.join(", ")}.`:`No supported versions available for API '${ft}'.`);wn=t.version;let r=u0(ft,t.version),[i]=fc([{artifactId:Z["artifact-id"],revision:cm(Z.revision)}]),o=await pc(e,ft,{apiVersion:{schemaPath:r,api:ft,name:t.version,latestVersion:!1},failOnDeprecated:!1}),{validation:s,scopes:a}=o,u=s.resultDetail;if((s.result==="success"||s.result==="inform")&&a.length>0){let m=Qf(a);m&&(u+=m)}let c=mc([{result:s.result,resultDetail:u}],[i]),l=s.result!=="failed",p=t.source==="default"?`
Version validated against is ${t.version}.`:"",f=yc(c,"Code Blocks")+p;console.log(Z.json?JSON.stringify({success:l,responses:c,resolvedVersion:wn}):f),await vc("validate_graphql",f,{model:Z.model,clientName:Z["client-name"],clientVersion:Z["client-version"],user_prompt:om,sessionId:Z["session-id"],toolUseId:Z["tool-use-id"],code:e,api:ft,artifactId:i.artifactId,revision:i.revision},um()),process.exit(l?0:1)}n(l0,"main");l0().catch(async e=>{let[t]=fc([{artifactId:Z["artifact-id"],revision:cm(Z.revision)}]),r=mc([{result:"failed",resultDetail:e instanceof Error?e.message:String(e)}],[t]),i=yc(r,"Code Blocks");console.log(Z.json?JSON.stringify({success:!1,responses:r,resolvedVersion:wn}):i),await vc("validate_graphql",i,{model:Z.model,clientName:Z["client-name"],clientVersion:Z["client-version"],user_prompt:om,sessionId:Z["session-id"],toolUseId:Z["tool-use-id"],code:sm,api:ft,artifactId:t.artifactId,revision:t.revision},um()),process.exit(1)});
Requirements and compatibility
Written for: Claude Code
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Claude Code frontmatter, Needs Node.js
The author says: Requires Node.js
Security
What our scanner noticed· Low risk
- Instructions that use the network
- Scripts that your agent may run
This skill includes scripts that your agent may run. Read them before you use it.
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Shopify
- Publisher
- Shopify (Official)
- Source
- Shopify/Shopify-AI-Toolkit · skills/shopify · commit a3d20f8
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Shopify.
Get it from the source
93 of this skill’s files are not mirrored here, so there is no ZIP. Get the complete skill from its source: Shopify/Shopify-AI-Toolkit