cortex-react-components 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (469) hide show
  1. package/dist/{chunk-BPTRLIWH.mjs → chunk-2JBVESQ2.mjs} +1 -1
  2. package/dist/{chunk-YVI5URXW.mjs → chunk-2NMVE5M4.mjs} +1 -1
  3. package/dist/{chunk-GQVNL534.mjs → chunk-2SAKLSZ4.mjs} +1 -1
  4. package/dist/{chunk-ZFBEBFCI.mjs → chunk-3KITWLRN.mjs} +1 -1
  5. package/dist/{chunk-VNMKCJBJ.mjs → chunk-4VWCJYTN.mjs} +1 -1
  6. package/dist/{chunk-RENPEB5D.mjs → chunk-4ZEATBUU.mjs} +1 -1
  7. package/dist/{chunk-KDSAOIPC.mjs → chunk-546LLRCZ.mjs} +1 -1
  8. package/dist/{chunk-S7SHOCHM.mjs → chunk-6SWKEZN6.mjs} +1 -1
  9. package/dist/{chunk-66WBIP2O.mjs → chunk-6UADPSC5.mjs} +1 -1
  10. package/dist/{chunk-6LZRVGXZ.mjs → chunk-77YVLEKT.mjs} +1 -1
  11. package/dist/{chunk-VN7TASR4.mjs → chunk-7SPSOAIQ.mjs} +1 -1
  12. package/dist/{chunk-VM25PG5R.mjs → chunk-A2AEX4YB.mjs} +1 -1
  13. package/dist/{chunk-HIHXHTK3.mjs → chunk-ABGNIQRP.mjs} +1 -1
  14. package/dist/{chunk-PANOPGUW.mjs → chunk-AVHFRD6D.mjs} +1 -1
  15. package/dist/{chunk-7A3BV5SJ.mjs → chunk-BA53AOCS.mjs} +1 -1
  16. package/dist/{chunk-6QSBVWNG.mjs → chunk-BADFWNRL.mjs} +1 -1
  17. package/dist/{chunk-ALI7Z4HH.mjs → chunk-CAKJOTEE.mjs} +1 -1
  18. package/dist/{chunk-3OKVKXQT.mjs → chunk-CK2TFJB2.mjs} +1 -1
  19. package/dist/{chunk-75WE6ZXB.mjs → chunk-CLGBBNRB.mjs} +1 -1
  20. package/dist/{chunk-KN65DDFI.mjs → chunk-CVLUVZR3.mjs} +1 -1
  21. package/dist/{chunk-CXV6AWOX.mjs → chunk-D3B2YO7G.mjs} +1 -1
  22. package/dist/{chunk-RTAA6HZ2.mjs → chunk-DA2H3N3G.mjs} +1 -1
  23. package/dist/{chunk-BWTA3BKK.mjs → chunk-DLUWDQSW.mjs} +1 -1
  24. package/dist/{chunk-SRCJSWQF.mjs → chunk-EOXVYLPB.mjs} +1 -1
  25. package/dist/{chunk-CG2SBWT7.mjs → chunk-EW64VNFT.mjs} +1 -1
  26. package/dist/{chunk-AV5SA2JB.mjs → chunk-EZEZEBLI.mjs} +1 -1
  27. package/dist/{chunk-BXHNSQWH.mjs → chunk-FOISWNF5.mjs} +1 -1
  28. package/dist/{chunk-E37JPSPB.mjs → chunk-FRKGQKEM.mjs} +1 -1
  29. package/dist/{chunk-XHMVS6GT.mjs → chunk-FV3W3WL7.mjs} +1 -1
  30. package/dist/{chunk-IN55EBPV.mjs → chunk-GS2VFNHY.mjs} +1 -1
  31. package/dist/{chunk-XBCYPOFD.mjs → chunk-GTK2SGS5.mjs} +1 -1
  32. package/dist/{chunk-ISBVFNWD.mjs → chunk-IDG2O4B7.mjs} +1 -1
  33. package/dist/{chunk-OFXZKSCN.mjs → chunk-IPXOPQPI.mjs} +1 -1
  34. package/dist/{chunk-LALFQI3P.mjs → chunk-IV5HRCWW.mjs} +1 -1
  35. package/dist/{chunk-IEUDWPYZ.mjs → chunk-JXFCIH2E.mjs} +1 -1
  36. package/dist/{chunk-EHSOO47V.mjs → chunk-KEOMDWUC.mjs} +1 -1
  37. package/dist/{chunk-QQ36F4C4.mjs → chunk-KOXC4RIH.mjs} +1 -1
  38. package/dist/{chunk-QRJOCPHI.mjs → chunk-KTET6W73.mjs} +1 -1
  39. package/dist/{chunk-EGHHWTFA.mjs → chunk-LG2AWHTC.mjs} +1 -1
  40. package/dist/{chunk-6VPRGZON.mjs → chunk-MNI6AM7Q.mjs} +1 -1
  41. package/dist/{chunk-IQKWNF37.mjs → chunk-MXFCHKIK.mjs} +1 -1
  42. package/dist/{chunk-KLEXMJR2.mjs → chunk-NZS3XKXU.mjs} +1 -1
  43. package/dist/{chunk-XP4XLR2J.mjs → chunk-OB5WMODY.mjs} +1 -1
  44. package/dist/{chunk-C4UPRDGQ.mjs → chunk-OCYVZBS7.mjs} +1 -1
  45. package/dist/{chunk-XCCL5CIT.mjs → chunk-P6VHSIQK.mjs} +1 -1
  46. package/dist/{chunk-UKYWLNKE.mjs → chunk-PEOZPVWF.mjs} +1 -1
  47. package/dist/{chunk-ZDOLX6I2.mjs → chunk-PEQOQ7BK.mjs} +1 -1
  48. package/dist/{chunk-GLLR2OOI.mjs → chunk-PFLESLNT.mjs} +1 -1
  49. package/dist/{chunk-TAYYCGWX.mjs → chunk-PM35MWKG.mjs} +1 -1
  50. package/dist/{chunk-AQLCYCLG.mjs → chunk-PXPSM7OQ.mjs} +1 -1
  51. package/dist/{chunk-UDPQ4MXR.mjs → chunk-R7LPCFUJ.mjs} +1 -1
  52. package/dist/{chunk-4TVYOBYI.mjs → chunk-RK2CAIEF.mjs} +1 -1
  53. package/dist/{chunk-BHKBIYMM.mjs → chunk-RUOYGMOR.mjs} +1 -1
  54. package/dist/{chunk-43IUXVGW.mjs → chunk-SNZ5BAQQ.mjs} +1 -1
  55. package/dist/chunk-SRUG246N.mjs +4 -0
  56. package/dist/{chunk-OFFFATED.mjs → chunk-TCXAETN2.mjs} +1 -1
  57. package/dist/{chunk-NOHO4XDS.mjs → chunk-TO2UDP5T.mjs} +1 -1
  58. package/dist/{chunk-SG5QL77J.mjs → chunk-TO7KJNKC.mjs} +1 -1
  59. package/dist/{chunk-QDYF4Z2F.mjs → chunk-TUI4S4GI.mjs} +1 -1
  60. package/dist/{chunk-MWXZUSRT.mjs → chunk-TWGRQW4P.mjs} +1 -1
  61. package/dist/{chunk-N25B5TQ5.mjs → chunk-TZKQXT7Y.mjs} +1 -1
  62. package/dist/{chunk-DYHW653F.mjs → chunk-UCHNFFXQ.mjs} +1 -1
  63. package/dist/{chunk-X3JZSN3W.mjs → chunk-UZSBX5GO.mjs} +1 -1
  64. package/dist/{chunk-D6W4VUUS.mjs → chunk-VIPT3OVD.mjs} +1 -1
  65. package/dist/{chunk-XGIYNUGC.mjs → chunk-VNYUNZ3M.mjs} +1 -1
  66. package/dist/{chunk-2BR55L74.mjs → chunk-VRE6VCHX.mjs} +1 -1
  67. package/dist/{chunk-6U2XBCMC.mjs → chunk-WBJENB4Y.mjs} +1 -1
  68. package/dist/{chunk-RIK7YEA6.mjs → chunk-WG6ATCG3.mjs} +1 -1
  69. package/dist/{chunk-4TU4OACM.mjs → chunk-WN2LPOQP.mjs} +1 -1
  70. package/dist/{chunk-ZLSF5YXT.mjs → chunk-XGRRLABA.mjs} +1 -1
  71. package/dist/{chunk-MGJTWNXD.mjs → chunk-XR55FO72.mjs} +1 -1
  72. package/dist/chunk-YEKQJ4YC.mjs +1 -0
  73. package/dist/{chunk-UEBQJNVT.mjs → chunk-ZGQC6O62.mjs} +1 -1
  74. package/dist/common-types.mjs +1 -1
  75. package/dist/components/AdvancedComponents/CommentSection.mjs +1 -1
  76. package/dist/components/AdvancedComponents/EditableField.mjs +1 -1
  77. package/dist/components/AdvancedComponents/NAVIGATION_TABS_README.mjs +1 -1
  78. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  79. package/dist/components/AdvancedComponents/index.mjs +1 -1
  80. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  81. package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
  82. package/dist/components/AdvancedComponents/sidebar.mjs +1 -1
  83. package/dist/components/AdvancedComponents/switch.mjs +1 -1
  84. package/dist/components/AdvancedComponents/theme-provider.mjs +3 -1
  85. package/dist/components/AdvancedComponents/theme-toggle.mjs +1 -1
  86. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  87. package/dist/components/Blocks/Banner.js +1 -2
  88. package/dist/components/Blocks/Banner.mjs +1 -1
  89. package/dist/components/Blocks/CallToAction.js +1 -2
  90. package/dist/components/Blocks/CallToAction.mjs +1 -1
  91. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  92. package/dist/components/Blocks/Code.client.mjs +1 -1
  93. package/dist/components/Blocks/Code.mjs +1 -1
  94. package/dist/components/Blocks/CollapsibleArea.js +1 -2
  95. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  96. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  97. package/dist/components/Blocks/Content.js +1 -2
  98. package/dist/components/Blocks/Content.mjs +1 -1
  99. package/dist/components/Blocks/CopyButton.mjs +1 -1
  100. package/dist/components/Blocks/FeaturesBlock.js +1 -2
  101. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  102. package/dist/components/Blocks/HeadingImage.mjs +1 -1
  103. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  104. package/dist/components/Blocks/InfoTile.mjs +1 -1
  105. package/dist/components/Blocks/Insight.mjs +1 -1
  106. package/dist/components/Blocks/MOTD.mjs +1 -1
  107. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  108. package/dist/components/Blocks/OrgChart.mjs +1 -1
  109. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  110. package/dist/components/Blocks/RelatedPosts.js +1 -2
  111. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  112. package/dist/components/Blocks/RenderBlocks.js +1 -2
  113. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  114. package/dist/components/Blocks/ReusableContentBlock.js +1 -2
  115. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  116. package/dist/components/Blocks/WhyUs.mjs +1 -1
  117. package/dist/components/Blocks/index.js +1 -2
  118. package/dist/components/Blocks/index.mjs +1 -1
  119. package/dist/components/CRM/CogeBoard.mjs +1 -1
  120. package/dist/components/CRM/DealCard.mjs +1 -1
  121. package/dist/components/CRM/DealDetails.mjs +1 -1
  122. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  123. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  124. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  125. package/dist/components/CRM/NewDealForm.mjs +1 -1
  126. package/dist/components/CRM/index.mjs +1 -1
  127. package/dist/components/CRM/mockData.mjs +1 -1
  128. package/dist/components/Cards/ContentCard.js +1 -2
  129. package/dist/components/Cards/ContentCard.mjs +1 -1
  130. package/dist/components/Cards/CustomerCard.mjs +1 -1
  131. package/dist/components/Cards/EventCard.mjs +1 -1
  132. package/dist/components/Cards/FeatureCard.js +1 -2
  133. package/dist/components/Cards/FeatureCard.mjs +1 -1
  134. package/dist/components/Cards/HeroCard.mjs +1 -1
  135. package/dist/components/Cards/Image.mjs +1 -1
  136. package/dist/components/Cards/PricingCard.mjs +1 -1
  137. package/dist/components/Cards/ProjectCard.mjs +1 -1
  138. package/dist/components/Cards/ServiceCard.mjs +1 -1
  139. package/dist/components/Cards/index.js +4 -5
  140. package/dist/components/Cards/index.mjs +1 -1
  141. package/dist/components/Chat/CAPABILITIES_README.mjs +1 -1
  142. package/dist/components/Chat/ChatCardArtefact.mjs +1 -1
  143. package/dist/components/Chat/ChatCardTask.mjs +1 -1
  144. package/dist/components/Chat/ChatInterfaceMessages.mjs +1 -1
  145. package/dist/components/Chat/ChatMessage.mjs +1 -1
  146. package/dist/components/Chat/CopilotInterface.d.ts +1 -1
  147. package/dist/components/Chat/CopilotInterface.js +1 -1
  148. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  149. package/dist/components/Chat/EnhancedChatInterface.mjs +1 -1
  150. package/dist/components/Chat/ai-chat-interface.mjs +3 -1
  151. package/dist/components/Chat/capabilities-config.mjs +1 -1
  152. package/dist/components/Chat/capabilities-data.mjs +1 -1
  153. package/dist/components/Chat/capabilities.mjs +1 -1
  154. package/dist/components/Chat/capability-menu.mjs +1 -1
  155. package/dist/components/Chat/chat-session-sidebar.mjs +1 -1
  156. package/dist/components/Chat/hooks/useTask.mjs +1 -1
  157. package/dist/components/Chat/index.js +2 -2
  158. package/dist/components/Chat/index.mjs +1 -1
  159. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
  160. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
  161. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
  162. package/dist/components/DeliveryLead/index.mjs +1 -1
  163. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  164. package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
  165. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  166. package/dist/components/DigitalColleagues/MainPage.mjs +3 -1
  167. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  168. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +3 -1
  169. package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -1
  170. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  171. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  172. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
  173. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  174. package/dist/components/DigitalColleagues/colleague-card.mjs +1 -1
  175. package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
  176. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
  177. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  178. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
  179. package/dist/components/DigitalColleagues/test-data.mjs +1 -1
  180. package/dist/components/HeaderFooter/AppLauncher.mjs +1 -1
  181. package/dist/components/HeaderFooter/BrandLogo.mjs +1 -1
  182. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  183. package/dist/components/HeaderFooter/Header.mjs +1 -1
  184. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  185. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  186. package/dist/components/HeaderFooter/HeaderMenuItem.mjs +1 -1
  187. package/dist/components/HeaderFooter/HeaderMobile.mjs +1 -1
  188. package/dist/components/HeaderFooter/RelatedPagesMenu.mjs +1 -1
  189. package/dist/components/HeaderFooter/SectionHeading.js +1 -2
  190. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  191. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  192. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  193. package/dist/components/HeaderFooter/index.mjs +1 -1
  194. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
  195. package/dist/components/Heros/DashboardHero/index.mjs +1 -1
  196. package/dist/components/Heros/HighImpact/index.js +1 -2
  197. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  198. package/dist/components/Heros/LowImpact/index.js +1 -2
  199. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  200. package/dist/components/Heros/MediumImpact/index.js +1 -2
  201. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  202. package/dist/components/Heros/PostHero/index.mjs +1 -1
  203. package/dist/components/Heros/RenderHero.js +1 -2
  204. package/dist/components/Heros/RenderHero.mjs +1 -1
  205. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  206. package/dist/components/Heros/index.js +1 -2
  207. package/dist/components/Heros/index.mjs +1 -1
  208. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  209. package/dist/components/Holidays/CalendarView.mjs +1 -1
  210. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  211. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  212. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  213. package/dist/components/Holidays/index.mjs +1 -1
  214. package/dist/components/Icons/ScrollDownIcon.mjs +3 -1
  215. package/dist/components/Images/DynamicIcon.mjs +1 -1
  216. package/dist/components/Images/IconIndex.mjs +1 -1
  217. package/dist/components/Images/customIconList.mjs +1 -1
  218. package/dist/components/Images/index.mjs +1 -1
  219. package/dist/components/Layouts/FeatureGrid.mjs +1 -1
  220. package/dist/components/Layouts/NewsGrid.mjs +1 -1
  221. package/dist/components/Layouts/NewsList.mjs +1 -1
  222. package/dist/components/Layouts/OutputHeaderFooter.js +2 -3
  223. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  224. package/dist/components/Layouts/Print.js +2 -3
  225. package/dist/components/Layouts/Print.mjs +1 -1
  226. package/dist/components/Layouts/SlideShow.js +3 -4
  227. package/dist/components/Layouts/SlideShow.mjs +1 -1
  228. package/dist/components/Layouts/TextAndImages.mjs +1 -1
  229. package/dist/components/Layouts/index.js +5 -6
  230. package/dist/components/Layouts/index.mjs +1 -1
  231. package/dist/components/Menus/Categories.mjs +1 -1
  232. package/dist/components/Menus/Filter.mjs +1 -1
  233. package/dist/components/Menus/Pagination.mjs +1 -1
  234. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  235. package/dist/components/Menus/RelatedContent.mjs +1 -1
  236. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  237. package/dist/components/Menus/SidebarRight.mjs +1 -1
  238. package/dist/components/Menus/index.mjs +1 -1
  239. package/dist/components/Other/AnimatedBorder.mjs +3 -1
  240. package/dist/components/Other/Container.mjs +1 -1
  241. package/dist/components/Other/CustomLink.mjs +1 -1
  242. package/dist/components/Other/PageShape.mjs +1 -1
  243. package/dist/components/Other/ThemeProvider.mjs +1 -1
  244. package/dist/components/Other/index.mjs +1 -1
  245. package/dist/components/Payload/Card/index.mjs +1 -1
  246. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  247. package/dist/components/Payload/Link/index.mjs +1 -1
  248. package/dist/components/Payload/Logo/index.mjs +1 -1
  249. package/dist/components/Payload/Media/ImageMedia/index.mjs +1 -1
  250. package/dist/components/Payload/Media/VideoMedia/index.mjs +1 -1
  251. package/dist/components/Payload/Media/index.mjs +1 -1
  252. package/dist/components/Payload/PageRange/index.mjs +1 -1
  253. package/dist/components/Payload/Pagination/index.mjs +1 -1
  254. package/dist/components/Payload/RichText/index.js +1 -2
  255. package/dist/components/Payload/RichText/index.mjs +1 -1
  256. package/dist/components/Payload/RichText/nodeFormat.mjs +1 -1
  257. package/dist/components/Payload/RichText/serialize.js +1 -2
  258. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  259. package/dist/components/Payload/index.js +1 -2
  260. package/dist/components/Payload/index.mjs +1 -1
  261. package/dist/components/Projects/AddEpicModal.mjs +1 -1
  262. package/dist/components/Projects/AddSprintModal.mjs +1 -1
  263. package/dist/components/Projects/AddTaskModal.mjs +1 -1
  264. package/dist/components/Projects/EpicFilter.mjs +1 -1
  265. package/dist/components/Projects/EpicsView.mjs +1 -1
  266. package/dist/components/Projects/FileView.mjs +1 -1
  267. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  268. package/dist/components/Projects/KanbanColumn.mjs +1 -1
  269. package/dist/components/Projects/PlanningView.mjs +1 -1
  270. package/dist/components/Projects/ProjectPage.mjs +3 -1
  271. package/dist/components/Projects/ProjectView.mjs +1 -1
  272. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  273. package/dist/components/Projects/TaskCard.mjs +1 -1
  274. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  275. package/dist/components/Projects/TaskSelect.mjs +1 -1
  276. package/dist/components/Projects/TaskSidebar.mjs +1 -1
  277. package/dist/components/Projects/TasksView.mjs +1 -1
  278. package/dist/components/Projects/TeamSwitcher.mjs +1 -1
  279. package/dist/components/Projects/business-unit-switcher.mjs +1 -1
  280. package/dist/components/Projects/business-units.mjs +1 -1
  281. package/dist/components/Projects/file-list.mjs +1 -1
  282. package/dist/components/Projects/project-card.mjs +1 -1
  283. package/dist/components/Projects/project-form.mjs +1 -1
  284. package/dist/components/Projects/team-card.mjs +1 -1
  285. package/dist/components/Projects/team-switcher-bar.mjs +3 -1
  286. package/dist/components/Projects/test-data.mjs +1 -1
  287. package/dist/components/dc-temp/CHANGES_SUMMARY.mjs +1 -1
  288. package/dist/components/dc-temp/COLLEAGUE_SELECTION_README.mjs +1 -1
  289. package/dist/components/dc-temp/DIGITAL_COLLEAGUE_UPDATES.mjs +1 -1
  290. package/dist/components/dc-temp/IMPLEMENTATION_SUMMARY.mjs +1 -1
  291. package/dist/components/dc-temp/TEAMS_README.mjs +1 -1
  292. package/dist/components/dc-temp/creative.mjs +1 -1
  293. package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
  294. package/dist/components/dc-temp/enhanced-header.mjs +3 -1
  295. package/dist/components/dc-temp/headerlogo.mjs +1 -1
  296. package/dist/components/dc-temp/icon-mapper.mjs +1 -1
  297. package/dist/components/dc-temp/index.mjs +1 -1
  298. package/dist/components/dc-temp/knowledge-browser.mjs +1 -1
  299. package/dist/components/dc-temp/knowledge-search.mjs +1 -1
  300. package/dist/components/dc-temp/loading.mjs +1 -1
  301. package/dist/components/dc-temp/markdown-renderer.mjs +1 -1
  302. package/dist/components/dc-temp/mock-data.mjs +1 -1
  303. package/dist/components/dc-temp/sidebar.mjs +3 -1
  304. package/dist/components/dc-temp/utils.mjs +1 -1
  305. package/dist/components/index.d.ts +0 -1
  306. package/dist/components/index.js +11 -12
  307. package/dist/components/index.mjs +1 -1
  308. package/dist/components/ui/alert.mjs +1 -1
  309. package/dist/components/ui/avatar.mjs +1 -1
  310. package/dist/components/ui/badge.mjs +1 -1
  311. package/dist/components/ui/breadcrumb.mjs +1 -1
  312. package/dist/components/ui/button.mjs +1 -1
  313. package/dist/components/ui/calendar.mjs +1 -1
  314. package/dist/components/ui/card.mjs +1 -1
  315. package/dist/components/ui/checkbox.mjs +1 -1
  316. package/dist/components/ui/collapsible.mjs +1 -1
  317. package/dist/components/ui/command.mjs +1 -1
  318. package/dist/components/ui/dialog.mjs +1 -1
  319. package/dist/components/ui/dropdown-menu.mjs +1 -1
  320. package/dist/components/ui/hover-card.mjs +1 -1
  321. package/dist/components/ui/index.mjs +1 -1
  322. package/dist/components/ui/input.mjs +1 -1
  323. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  324. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  325. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  326. package/dist/components/ui/label.mjs +1 -1
  327. package/dist/components/ui/pagination.mjs +1 -1
  328. package/dist/components/ui/popover.mjs +1 -1
  329. package/dist/components/ui/progress.mjs +1 -1
  330. package/dist/components/ui/scroll-area.mjs +1 -1
  331. package/dist/components/ui/select.mjs +1 -1
  332. package/dist/components/ui/separator.mjs +1 -1
  333. package/dist/components/ui/sheet.mjs +1 -1
  334. package/dist/components/ui/sidebar.mjs +1 -1
  335. package/dist/components/ui/skeleton.mjs +1 -1
  336. package/dist/components/ui/switch.mjs +1 -1
  337. package/dist/components/ui/tabs.mjs +1 -1
  338. package/dist/components/ui/textarea.mjs +1 -1
  339. package/dist/components/ui/toast.mjs +1 -1
  340. package/dist/components/ui/toaster.mjs +1 -1
  341. package/dist/components/ui/toggle-group.mjs +1 -1
  342. package/dist/components/ui/toggle.mjs +1 -1
  343. package/dist/components/ui/tooltip.mjs +1 -1
  344. package/dist/constants.mjs +1 -1
  345. package/dist/fonts/Manrope-Bold.mjs +1 -1
  346. package/dist/fonts/Manrope-ExtraBold.mjs +1 -1
  347. package/dist/fonts/Manrope-ExtraLight.mjs +1 -1
  348. package/dist/fonts/Manrope-Light.mjs +1 -1
  349. package/dist/fonts/Manrope-Medium.mjs +1 -1
  350. package/dist/fonts/Manrope-Regular.mjs +1 -1
  351. package/dist/fonts/Manrope-SemiBold.mjs +1 -1
  352. package/dist/hooks/index.mjs +1 -1
  353. package/dist/hooks/use-local-storage.mjs +1 -1
  354. package/dist/hooks/use-mobile.mjs +1 -1
  355. package/dist/hooks/use-toast.mjs +1 -1
  356. package/dist/images/cortex-reply-bw.mjs +1 -1
  357. package/dist/images/cortex-reply-dark.mjs +1 -1
  358. package/dist/images/cortex-reply-gradient.mjs +1 -1
  359. package/dist/images/cortex-reply-light.mjs +1 -1
  360. package/dist/images/cortex-reply.mjs +1 -1
  361. package/dist/images/hero/hero-3.mjs +1 -1
  362. package/dist/images/hero/image-hero1.mjs +1 -1
  363. package/dist/images/hero/pattern-1.mjs +1 -1
  364. package/dist/images/hero/pattern-2.mjs +1 -1
  365. package/dist/index.js +16 -17
  366. package/dist/index.mjs +1 -1
  367. package/dist/metafile-cjs.json +1 -1
  368. package/dist/metafile-esm.json +1 -1
  369. package/dist/pages/Blog.js +1 -2
  370. package/dist/pages/Blog.mjs +1 -1
  371. package/dist/pages/Documentation.mjs +3 -1
  372. package/dist/pages/IndexPage.mjs +3 -1
  373. package/dist/pages/Intranet.mjs +1 -1
  374. package/dist/pages/LandingPage.js +3 -4
  375. package/dist/pages/LandingPage.mjs +3 -1
  376. package/dist/pages/Page.js +1 -2
  377. package/dist/pages/Page.mjs +3 -1
  378. package/dist/pages/Publish.js +5 -6
  379. package/dist/pages/Publish.mjs +1 -1
  380. package/dist/pages/Website.js +1 -2
  381. package/dist/pages/Website.mjs +1 -1
  382. package/dist/sections/AboutSection.js +1 -2
  383. package/dist/sections/AboutSection.mjs +1 -1
  384. package/dist/sections/BlogDetail.js +1 -2
  385. package/dist/sections/BlogDetail.mjs +1 -1
  386. package/dist/sections/BlogList.js +2 -3
  387. package/dist/sections/BlogList.mjs +1 -1
  388. package/dist/sections/BlogListSection.mjs +1 -1
  389. package/dist/sections/ContactSection.js +1 -2
  390. package/dist/sections/ContactSection.mjs +1 -1
  391. package/dist/sections/ImageSection.mjs +1 -1
  392. package/dist/sections/MainPageSection.mjs +1 -1
  393. package/dist/sections/PageSections.js +2 -3
  394. package/dist/sections/PageSections.mjs +1 -1
  395. package/dist/sections/PricingSection.js +1 -2
  396. package/dist/sections/PricingSection.mjs +1 -1
  397. package/dist/sections/ServiceDetail.js +1 -2
  398. package/dist/sections/ServiceDetail.mjs +1 -1
  399. package/dist/sections/ServiceDetailSection.js +1 -2
  400. package/dist/sections/ServiceDetailSection.mjs +1 -1
  401. package/dist/sections/ServiceSection.js +1 -2
  402. package/dist/sections/ServiceSection.mjs +1 -1
  403. package/dist/sections/form/index.d.ts +5 -1
  404. package/dist/sections/form/index.js +1 -2
  405. package/dist/sections/form/index.mjs +1 -1
  406. package/dist/sections/form/server/contact-us-form-submit.mjs +1 -1
  407. package/dist/sections/form/server/index.d.ts +2 -0
  408. package/dist/sections/form/server/index.js +4 -0
  409. package/dist/sections/form/server/index.mjs +1 -0
  410. package/dist/sections/index.d.ts +1 -0
  411. package/dist/sections/index.js +3 -4
  412. package/dist/sections/index.mjs +1 -1
  413. package/dist/styles/Colors.mjs +1 -1
  414. package/dist/styles/Typography.mjs +1 -1
  415. package/dist/test-data/capabilities.mjs +1 -1
  416. package/dist/tests/payload.mjs +1 -1
  417. package/dist/utils/AOSInit.mjs +1 -1
  418. package/dist/utils/BankHolidays.mjs +1 -1
  419. package/dist/utils/DaysUtil.mjs +1 -1
  420. package/dist/utils/canUseDOM.mjs +1 -1
  421. package/dist/utils/cn.mjs +1 -1
  422. package/dist/utils/formatDateTime.mjs +1 -1
  423. package/dist/utils/getTableOfContents.mjs +1 -1
  424. package/dist/utils/getURL.mjs +1 -1
  425. package/dist/utils/index.mjs +1 -1
  426. package/dist/utils/setStaggeredDelay.mjs +1 -1
  427. package/dist/utils/useClickableCard.mjs +1 -1
  428. package/package.json +7 -1
  429. package/dist/about-1-ANS44UVM.png +0 -0
  430. package/dist/about-2-NDWHP4QV.png +0 -0
  431. package/dist/about-3-RNUOVF6S.png +0 -0
  432. package/dist/about-4-V5ITRBOZ.png +0 -0
  433. package/dist/chunk-3ALU5XV6.mjs +0 -1
  434. package/dist/chunk-3MKCQLBY.mjs +0 -4
  435. package/dist/chunk-3RJA57BI.mjs +0 -4
  436. package/dist/chunk-3SK6PULC.mjs +0 -4
  437. package/dist/chunk-3TVLETYW.mjs +0 -1
  438. package/dist/chunk-3WPEAKCQ.mjs +0 -4
  439. package/dist/chunk-44QDT35M.mjs +0 -1
  440. package/dist/chunk-4BUBW5TX.mjs +0 -4
  441. package/dist/chunk-5C2TR5P3.mjs +0 -4
  442. package/dist/chunk-5ME75SQ2.mjs +0 -218
  443. package/dist/chunk-6AFX6PFG.mjs +0 -470
  444. package/dist/chunk-6XXAI7IR.mjs +0 -1
  445. package/dist/chunk-7DICAJS4.mjs +0 -1
  446. package/dist/chunk-A24IEDVI.mjs +0 -1
  447. package/dist/chunk-BUC3OG2I.mjs +0 -4
  448. package/dist/chunk-CA7JDZIQ.mjs +0 -4
  449. package/dist/chunk-DBVX4BDP.mjs +0 -4
  450. package/dist/chunk-H4X3VQIN.mjs +0 -4
  451. package/dist/chunk-IB6VPDZQ.mjs +0 -1
  452. package/dist/chunk-IZ3PDOST.mjs +0 -1
  453. package/dist/chunk-KGYX6TIY.mjs +0 -4
  454. package/dist/chunk-KSYES4GX.mjs +0 -1
  455. package/dist/chunk-KUVGGKGR.mjs +0 -4
  456. package/dist/chunk-M6LJ4BNZ.mjs +0 -1
  457. package/dist/chunk-N5SEZED7.mjs +0 -1
  458. package/dist/chunk-OJLQ6G4W.mjs +0 -4
  459. package/dist/chunk-PA3BZDTY.mjs +0 -245
  460. package/dist/chunk-PPZXBKTO.mjs +0 -4
  461. package/dist/chunk-TLBLUYXL.mjs +0 -1
  462. package/dist/chunk-U3ZHU3UY.mjs +0 -1
  463. package/dist/chunk-UG7D3VNG.mjs +0 -1
  464. package/dist/chunk-VBGNLDO6.mjs +0 -4
  465. package/dist/chunk-WV2LZOPM.mjs +0 -1
  466. package/dist/chunk-YX3BAJ2N.mjs +0 -1
  467. package/dist/graphql-NFIL2UYH.mjs +0 -177
  468. package/dist/pattern-1-B7SDCBJ3.png +0 -0
  469. package/dist/waves-6HGOFMRK.jpg +0 -0
@@ -1,177 +0,0 @@
1
- import"./chunk-M6LJ4BNZ.mjs";var Rs="16.10.0",Ls=Object.freeze({major:16,minor:10,patch:0,preReleaseTag:null});function S(e,t){if(!!!e)throw new Error(t)}function le(e){return typeof e?.then=="function"}function H(e){return typeof e=="object"&&e!==null}function $(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}var ws=/\r\n|[\n\r]/g;function pt(e,t){let n=0,r=1;for(let i of e.body.matchAll(ws)){if(typeof i.index=="number"||$(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function bn(e){return qt(e.source,pt(e.source,e.start))}function qt(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=t.line===1?n:0,c=t.column+a,p=`${e.name}:${s}:${c}
2
- `,l=r.split(/\r\n|[\n\r]/g),m=l[i];if(m.length>120){let d=Math.floor(c/80),E=c%80,N=[];for(let k=0;k<m.length;k+=80)N.push(m.slice(k,k+80));return p+Mi([[`${s} |`,N[0]],...N.slice(1,d+1).map(k=>["|",k]),["|","^".padStart(E)],["|",N[d+1]]])}return p+Mi([[`${s-1} |`,l[i-1]],[`${s} |`,m],["|","^".padStart(c)],[`${s+1} |`,l[i+1]]])}function Mi(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(`
3
- `)}function Fs(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}var f=class e extends Error{constructor(t,...n){var r,i,o;let{nodes:s,source:a,positions:c,path:p,originalError:l,extensions:m}=Fs(n);super(t),this.name="GraphQLError",this.path=p??void 0,this.originalError=l??void 0,this.nodes=ji(Array.isArray(s)?s:s?[s]:void 0);let d=ji((r=this.nodes)===null||r===void 0?void 0:r.map(N=>N.loc).filter(N=>N!=null));this.source=a??(d==null||(i=d[0])===null||i===void 0?void 0:i.source),this.positions=c??d?.map(N=>N.start),this.locations=c&&a?c.map(N=>pt(a,N)):d?.map(N=>pt(N.source,N.start));let E=H(l?.extensions)?l?.extensions:void 0;this.extensions=(o=m??E)!==null&&o!==void 0?o: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}}),l!=null&&l.stack?Object.defineProperty(this,"stack",{value:l.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 n of this.nodes)n.loc&&(t+=`
4
-
5
- `+bn(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=`
6
-
7
- `+qt(this.source,n);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}};function ji(e){return e===void 0||e.length===0?void 0:e}function Pi(e){return e.toString()}function Gi(e){return e.toJSON()}function W(e,t,n){return new f(`Syntax Error: ${n}`,{source:e,positions:[t]})}var _t=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},lt=class{constructor(t,n,r,i,o,s){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=o,this.value=s,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}}},Xr={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["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:["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"]},ks=new Set(Object.keys(Xr));function Yt(e){let t=e?.kind;return typeof t=="string"&&ks.has(t)}var Q;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Q||(Q={}));var D;(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"})(D||(D={}));var u;(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"})(u||(u={}));function _n(e){return e===9||e===32}function Dt(e){return e>=48&&e<=57}function Qi(e){return e>=97&&e<=122||e>=65&&e<=90}function Jt(e){return Qi(e)||e===95}function Dn(e){return Qi(e)||Dt(e)||e===95}function Bi(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;s<e.length;++s){var o;let a=e[s],c=Vs(a);c!==a.length&&(r=(o=r)!==null&&o!==void 0?o:s,i=s,s!==0&&c<n&&(n=c))}return e.map((s,a)=>a===0?s:s.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function Vs(e){let t=0;for(;t<e.length&&_n(e.charCodeAt(t));)++t;return t}function qi(e){if(e==="")return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){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&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!(t||r&&i)}function Sn(e,t){let n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,o=r.length>1&&r.slice(1).every(E=>E.length===0||_n(E.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,c=e.endsWith("\\"),p=a||c,l=!(t!=null&&t.minimize)&&(!i||e.length>70||p||o||s),m="",d=i&&_n(e.charCodeAt(0));return(l&&!d||o)&&(m+=`
8
- `),m+=n,(l||p)&&(m+=`
9
- `),'"""'+m+'"""'}var T;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(T||(T={}));var Ze=class{constructor(t){let n=new lt(T.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,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!==T.EOF)do if(t.next)t=t.next;else{let n=$s(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===T.COMMENT);return t}};function An(e){return e===T.BANG||e===T.DOLLAR||e===T.AMP||e===T.PAREN_L||e===T.PAREN_R||e===T.SPREAD||e===T.COLON||e===T.EQUALS||e===T.AT||e===T.BRACKET_L||e===T.BRACKET_R||e===T.BRACE_L||e===T.PIPE||e===T.BRACE_R}function St(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function xn(e,t){return Ji(e.charCodeAt(t))&&Ki(e.charCodeAt(t+1))}function Ji(e){return e>=55296&&e<=56319}function Ki(e){return e>=56320&&e<=57343}function ft(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return T.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Z(e,t,n,r,i){let o=e.line,s=1+n-e.lineStart;return new lt(t,n,r,o,s,i)}function $s(e,t){let n=e.source.body,r=n.length,i=t;for(;i<r;){let o=n.charCodeAt(i);switch(o){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return Cs(e,i);case 33:return Z(e,T.BANG,i,i+1);case 36:return Z(e,T.DOLLAR,i,i+1);case 38:return Z(e,T.AMP,i,i+1);case 40:return Z(e,T.PAREN_L,i,i+1);case 41:return Z(e,T.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return Z(e,T.SPREAD,i,i+3);break;case 58:return Z(e,T.COLON,i,i+1);case 61:return Z(e,T.EQUALS,i,i+1);case 64:return Z(e,T.AT,i,i+1);case 91:return Z(e,T.BRACKET_L,i,i+1);case 93:return Z(e,T.BRACKET_R,i,i+1);case 123:return Z(e,T.BRACE_L,i,i+1);case 124:return Z(e,T.PIPE,i,i+1);case 125:return Z(e,T.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?Qs(e,i):Ms(e,i)}if(Dt(o)||o===45)return Us(e,i,o);if(Jt(o))return Bs(e,i);throw W(e.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:St(o)||xn(n,i)?`Unexpected character: ${ft(e,i)}.`:`Invalid character: ${ft(e,i)}.`)}return Z(e,T.EOF,r,r)}function Cs(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let o=n.charCodeAt(i);if(o===10||o===13)break;if(St(o))++i;else if(xn(n,i))i+=2;else break}return Z(e,T.COMMENT,t,i,n.slice(t+1,i))}function Us(e,t,n){let r=e.source.body,i=t,o=n,s=!1;if(o===45&&(o=r.charCodeAt(++i)),o===48){if(o=r.charCodeAt(++i),Dt(o))throw W(e.source,i,`Invalid number, unexpected digit after 0: ${ft(e,i)}.`)}else i=zr(e,i,o),o=r.charCodeAt(i);if(o===46&&(s=!0,o=r.charCodeAt(++i),i=zr(e,i,o),o=r.charCodeAt(i)),(o===69||o===101)&&(s=!0,o=r.charCodeAt(++i),(o===43||o===45)&&(o=r.charCodeAt(++i)),i=zr(e,i,o),o=r.charCodeAt(i)),o===46||Jt(o))throw W(e.source,i,`Invalid number, expected digit but got: ${ft(e,i)}.`);return Z(e,s?T.FLOAT:T.INT,t,i,r.slice(t,i))}function zr(e,t,n){if(!Dt(n))throw W(e.source,t,`Invalid number, expected digit but got: ${ft(e,t)}.`);let r=e.source.body,i=t+1;for(;Dt(r.charCodeAt(i));)++i;return i}function Ms(e,t){let n=e.source.body,r=n.length,i=t+1,o=i,s="";for(;i<r;){let a=n.charCodeAt(i);if(a===34)return s+=n.slice(o,i),Z(e,T.STRING,t,i+1,s);if(a===92){s+=n.slice(o,i);let c=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?js(e,i):Ps(e,i):Gs(e,i);s+=c.value,i+=c.size,o=i;continue}if(a===10||a===13)break;if(St(a))++i;else if(xn(n,i))i+=2;else throw W(e.source,i,`Invalid character within String: ${ft(e,i)}.`)}throw W(e.source,i,"Unterminated string.")}function js(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let o=n.charCodeAt(t+i++);if(o===125){if(i<5||!St(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|Kt(o),r<0)break}throw W(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function Ps(e,t){let n=e.source.body,r=Yi(n,t+2);if(St(r))return{value:String.fromCodePoint(r),size:6};if(Ji(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let i=Yi(n,t+8);if(Ki(i))return{value:String.fromCodePoint(r,i),size:12}}throw W(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function Yi(e,t){return Kt(e.charCodeAt(t))<<12|Kt(e.charCodeAt(t+1))<<8|Kt(e.charCodeAt(t+2))<<4|Kt(e.charCodeAt(t+3))}function Kt(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Gs(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
10
- `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw W(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Qs(e,t){let n=e.source.body,r=n.length,i=e.lineStart,o=t+3,s=o,a="",c=[];for(;o<r;){let p=n.charCodeAt(o);if(p===34&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34){a+=n.slice(s,o),c.push(a);let l=Z(e,T.BLOCK_STRING,t,o+3,Bi(c).join(`
11
- `));return e.line+=c.length-1,e.lineStart=i,l}if(p===92&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34&&n.charCodeAt(o+3)===34){a+=n.slice(s,o),s=o+1,o+=4;continue}if(p===10||p===13){a+=n.slice(s,o),c.push(a),p===13&&n.charCodeAt(o+1)===10?o+=2:++o,a="",s=o,i=o;continue}if(St(p))++o;else if(xn(n,o))o+=2;else throw W(e.source,o,`Invalid character within String: ${ft(e,o)}.`)}throw W(e.source,o,"Unterminated string.")}function Bs(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let o=n.charCodeAt(i);if(Dn(o))++i;else break}return Z(e,T.NAME,t,i,n.slice(t,i))}function h(e){return Rn(e,[])}function Rn(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return qs(e,t);default:return String(e)}}function qs(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(Ys(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:Rn(r,n)}else if(Array.isArray(e))return Ks(e,n);return Js(e,n)}function Ys(e){return typeof e.toJSON=="function"}function Js(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>2?"["+Xs(e)+"]":"{ "+n.map(([i,o])=>i+": "+Rn(o,t)).join(", ")+" }"}function Ks(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),r=e.length-n,i=[];for(let o=0;o<n;++o)i.push(Rn(e[o],t));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function Xs(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var zs=globalThis.process&&process.env.NODE_ENV==="production",Te=zs?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],o=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===o){let s=h(t);throw new Error(`Cannot use ${i} "${s}" from another module or realm.
12
-
13
- Ensure that there is only one instance of "graphql" in the node_modules
14
- directory. If different versions of "graphql" are the dependencies of other
15
- relied on modules, use "resolutions" to ensure only one version is installed.
16
-
17
- https://yarnpkg.com/en/docs/selective-version-resolutions
18
-
19
- Duplicate "graphql" modules cannot be used at the same time since different
20
- versions may have different capabilities and behavior. The data from one
21
- version used in the function from another could produce confusing and
22
- spurious results.`)}}return!1};var Be=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||S(!1,`Body must be a string. Received: ${h(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||S(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||S(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function Ln(e){return Te(e,Be)}function et(e,t){let n=new At(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function Fn(e,t){let n=new At(e,t);n.expectToken(T.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(T.EOF),r}function Xi(e,t){let n=new At(e,t);n.expectToken(T.SOF);let r=n.parseConstValueLiteral();return n.expectToken(T.EOF),r}function zi(e,t){let n=new At(e,t);n.expectToken(T.SOF);let r=n.parseTypeReference();return n.expectToken(T.EOF),r}var At=class{constructor(t,n={}){let r=Ln(t)?t:new Be(t);this._lexer=new Ze(r),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(T.NAME);return this.node(t,{kind:u.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:u.DOCUMENT,definitions:this.many(T.SOF,this.parseDefinition,T.EOF)})}parseDefinition(){if(this.peek(T.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===T.NAME){switch(n.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()}if(t)throw W(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(T.BRACE_L))return this.node(t,{kind:u.OPERATION_DEFINITION,operation:Q.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(T.NAME)&&(r=this.parseName()),this.node(t,{kind:u.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(T.NAME);switch(t.value){case"query":return Q.QUERY;case"mutation":return Q.MUTATION;case"subscription":return Q.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(T.PAREN_L,this.parseVariableDefinition,T.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:u.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(T.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(T.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(T.DOLLAR),this.node(t,{kind:u.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:u.SELECTION_SET,selections:this.many(T.BRACE_L,this.parseSelection,T.BRACE_R)})}parseSelection(){return this.peek(T.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(T.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:u.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(T.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(T.PAREN_L,n,T.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(T.COLON),this.node(n,{kind:u.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(T.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(T.NAME)?this.node(t,{kind:u.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:u.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:u.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:u.FRAGMENT_DEFINITION,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 n=this._lexer.token;switch(n.kind){case T.BRACKET_L:return this.parseList(t);case T.BRACE_L:return this.parseObject(t);case T.INT:return this.advanceLexer(),this.node(n,{kind:u.INT,value:n.value});case T.FLOAT:return this.advanceLexer(),this.node(n,{kind:u.FLOAT,value:n.value});case T.STRING:case T.BLOCK_STRING:return this.parseStringLiteral();case T.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:u.BOOLEAN,value:!0});case"false":return this.node(n,{kind:u.BOOLEAN,value:!1});case"null":return this.node(n,{kind:u.NULL});default:return this.node(n,{kind:u.ENUM,value:n.value})}case T.DOLLAR:if(t)if(this.expectToken(T.DOLLAR),this._lexer.token.kind===T.NAME){let r=this._lexer.token.value;throw W(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);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:u.STRING,value:t.value,block:t.kind===T.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:u.LIST,values:this.any(T.BRACKET_L,n,T.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:u.OBJECT,fields:this.any(T.BRACE_L,n,T.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(T.COLON),this.node(n,{kind:u.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(T.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(T.AT),this.node(n,{kind:u.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(T.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(T.BRACKET_R),n=this.node(t,{kind:u.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(T.BANG)?this.node(t,{kind:u.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:u.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(T.STRING)||this.peek(T.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(T.BRACE_L,this.parseOperationTypeDefinition,T.BRACE_R);return this.node(t,{kind:u.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(T.COLON);let r=this.parseNamedType();return this.node(t,{kind:u.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:u.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:u.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(T.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(T.BRACE_L,this.parseFieldDefinition,T.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(T.COLON);let o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:u.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(T.PAREN_L,this.parseInputValueDef,T.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(T.COLON);let i=this.parseTypeReference(),o;this.expectOptionalToken(T.EQUALS)&&(o=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:u.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:u.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:u.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(T.EQUALS)?this.delimitedMany(T.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:u.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(T.BRACE_L,this.parseEnumValueDefinition,T.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:u.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw W(this._lexer.source,this._lexer.token.start,`${wn(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:u.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(T.BRACE_L,this.parseInputValueDef,T.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===T.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 n=this.parseConstDirectives(),r=this.optionalMany(T.BRACE_L,this.parseOperationTypeDefinition,T.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:u.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:u.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:u.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:u.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:u.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:u.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:u.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(T.AT);let r=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(t,{kind:u.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(T.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(D,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new _t(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw W(this._lexer.source,n.start,`Expected ${Hi(t)}, found ${wn(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===T.NAME&&n.value===t)this.advanceLexer();else throw W(this._lexer.source,n.start,`Expected "${t}", found ${wn(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===T.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t??this._lexer.token;return W(this._lexer.source,n.start,`Unexpected ${wn(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==T.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw W(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};function wn(e){let t=e.value;return Hi(e.kind)+(t!=null?` "${t}"`:"")}function Hi(e){return An(e)?`"${e}"`:e}function fe(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let o=r.map(c=>`"${c}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let s=o.slice(0,5),a=s.pop();return i+s.join(", ")+", or "+a+"?"}function Hr(e){return e}function de(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}function Se(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}function Ce(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function qe(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(kn(i)&&kn(o)){let s=0;do++n,s=s*10+i-Wr,i=e.charCodeAt(n);while(kn(i)&&s>0);let a=0;do++r,a=a*10+o-Wr,o=t.charCodeAt(r);while(kn(o)&&a>0);if(s<a)return-1;if(s>a)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}var Wr=48,Hs=57;function kn(e){return!isNaN(e)&&Wr<=e&&e<=Hs}function ye(e,t){let n=Object.create(null),r=new Zr(e),i=Math.floor(e.length*.4)+1;for(let o of t){let s=r.measure(o,i);s!==void 0&&(n[o]=s)}return Object.keys(n).sort((o,s)=>{let a=n[o]-n[s];return a!==0?a:qe(o,s)})}var Zr=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Wi(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,n){if(this._input===t)return 0;let r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=Wi(r),o=this._inputArray;if(i.length<o.length){let l=i;i=o,o=l}let s=i.length,a=o.length;if(s-a>n)return;let c=this._rows;for(let l=0;l<=a;l++)c[0][l]=l;for(let l=1;l<=s;l++){let m=c[(l-1)%3],d=c[l%3],E=d[0]=l;for(let N=1;N<=a;N++){let k=i[l-1]===o[N-1]?0:1,U=Math.min(m[N]+1,d[N-1]+1,m[N-1]+k);if(l>1&&N>1&&i[l-1]===o[N-2]&&i[l-2]===o[N-1]){let z=c[(l-2)%3][N-2];U=Math.min(U,z+1)}U<E&&(E=U),d[N]=U}if(E>n)return}let p=c[s%3][a];return p<=n?p:void 0}};function Wi(e){let t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function Ee(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}function Zi(e){return`"${e.replace(Ws,Zs)}"`}var Ws=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Zs(e){return ea[e.charCodeAt(0)]}var ea=["\\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 dt=Object.freeze({});function Ue(e,t,n=Xr){let r=new Map;for(let z of Object.values(u))r.set(z,tt(t,z));let i,o=Array.isArray(e),s=[e],a=-1,c=[],p=e,l,m,d=[],E=[];do{a++;let z=a===s.length,Qe=z&&c.length!==0;if(z){if(l=E.length===0?void 0:d[d.length-1],p=m,m=E.pop(),Qe)if(o){p=p.slice();let pe=0;for(let[ct,We]of c){let It=ct-pe;We===null?(p.splice(It,1),pe++):p[It]=We}}else{p=Object.defineProperties({},Object.getOwnPropertyDescriptors(p));for(let[pe,ct]of c)p[pe]=ct}a=i.index,s=i.keys,c=i.edits,o=i.inArray,i=i.prev}else if(m){if(l=o?a:s[a],p=m[l],p==null)continue;d.push(l)}let se;if(!Array.isArray(p)){var N,k;Yt(p)||S(!1,`Invalid AST Node: ${h(p)}.`);let pe=z?(N=r.get(p.kind))===null||N===void 0?void 0:N.leave:(k=r.get(p.kind))===null||k===void 0?void 0:k.enter;if(se=pe?.call(t,p,l,m,d,E),se===dt)break;if(se===!1){if(!z){d.pop();continue}}else if(se!==void 0&&(c.push([l,se]),!z))if(Yt(se))p=se;else{d.pop();continue}}if(se===void 0&&Qe&&c.push([l,p]),z)d.pop();else{var U;i={inArray:o,index:a,keys:s,edits:c,prev:i},o=Array.isArray(p),s=o?p:(U=n[p.kind])!==null&&U!==void 0?U:[],a=-1,c=[],m&&E.push(m),m=p}}while(i!==void 0);return c.length!==0?c[c.length-1][1]:e}function Xt(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(u)){let i=!1,o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let c=0;c<e.length;++c){let{enter:p,leave:l}=tt(e[c],r);i||(i=p!=null||l!=null),o[c]=p,s[c]=l}if(!i)continue;let a={enter(...c){let p=c[0];for(let m=0;m<e.length;m++)if(t[m]===null){var l;let d=(l=o[m])===null||l===void 0?void 0:l.apply(e[m],c);if(d===!1)t[m]=p;else if(d===dt)t[m]=dt;else if(d!==void 0)return d}},leave(...c){let p=c[0];for(let m=0;m<e.length;m++)if(t[m]===null){var l;let d=(l=s[m])===null||l===void 0?void 0:l.apply(e[m],c);if(d===dt)t[m]=dt;else if(d!==void 0&&d!==!1)return d}else t[m]===p&&(t[m]=null)}};n[r]=a}return n}function tt(e,t){let n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function eo(e,t,n){let{enter:r,leave:i}=tt(e,t);return n?i:r}function V(e){return Ue(e,na)}var ta=80,na={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>I(e.definitions,`
23
-
24
- `)},OperationDefinition:{leave(e){let t=C("(",I(e.variableDefinitions,", "),")"),n=I([e.operation,I([e.name,t]),I(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+C(" = ",n)+C(" ",I(r," "))},SelectionSet:{leave:({selections:e})=>Me(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=C("",e,": ")+t,s=o+C("(",I(n,", "),")");return s.length>ta&&(s=o+C(`(
25
- `,Vn(I(n,`
26
- `)),`
27
- )`)),I([s,I(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+C(" ",I(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>I(["...",C("on ",e),I(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${C("(",I(n,", "),")")} on ${t} ${C("",I(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Sn(e):Zi(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+I(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+I(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+C("(",I(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>C("",e,`
28
- `)+I(["schema",I(t," "),Me(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>C("",e,`
29
- `)+I(["scalar",t,I(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>C("",e,`
30
- `)+I(["type",t,C("implements ",I(n," & ")),I(r," "),Me(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>C("",e,`
31
- `)+t+(to(n)?C(`(
32
- `,Vn(I(n,`
33
- `)),`
34
- )`):C("(",I(n,", "),")"))+": "+r+C(" ",I(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>C("",e,`
35
- `)+I([t+": "+n,C("= ",r),I(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>C("",e,`
36
- `)+I(["interface",t,C("implements ",I(n," & ")),I(r," "),Me(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>C("",e,`
37
- `)+I(["union",t,I(n," "),C("= ",I(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>C("",e,`
38
- `)+I(["enum",t,I(n," "),Me(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>C("",e,`
39
- `)+I([t,I(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>C("",e,`
40
- `)+I(["input",t,I(n," "),Me(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>C("",e,`
41
- `)+"directive @"+t+(to(n)?C(`(
42
- `,Vn(I(n,`
43
- `)),`
44
- )`):C("(",I(n,", "),")"))+(r?" repeatable":"")+" on "+I(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>I(["extend schema",I(e," "),Me(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>I(["extend scalar",e,I(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>I(["extend type",e,C("implements ",I(t," & ")),I(n," "),Me(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>I(["extend interface",e,C("implements ",I(t," & ")),I(n," "),Me(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>I(["extend union",e,I(t," "),C("= ",I(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>I(["extend enum",e,I(t," "),Me(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>I(["extend input",e,I(t," "),Me(n)]," ")}};function I(e,t=""){var n;return(n=e?.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function Me(e){return C(`{
45
- `,Vn(I(e,`
46
- `)),`
47
- }`)}function C(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Vn(e){return C(" ",e.replace(/\n/g,`
48
- `))}function to(e){var t;return(t=e?.some(n=>n.includes(`
49
- `)))!==null&&t!==void 0?t:!1}function xt(e,t){switch(e.kind){case u.NULL:return null;case u.INT:return parseInt(e.value,10);case u.FLOAT:return parseFloat(e.value);case u.STRING:case u.ENUM:case u.BOOLEAN:return e.value;case u.LIST:return e.values.map(n=>xt(n,t));case u.OBJECT:return Se(e.fields,n=>n.name.value,n=>xt(n.value,t));case u.VARIABLE:return t?.[e.name.value]}}function ae(e){if(e!=null||S(!1,"Must provide name."),typeof e=="string"||S(!1,"Expected name to be a string."),e.length===0)throw new f("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!Dn(e.charCodeAt(t)))throw new f(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!Jt(e.charCodeAt(0)))throw new f(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function $n(e){if(e==="true"||e==="false"||e==="null")throw new f(`Enum values cannot be named: ${e}`);return ae(e)}function mt(e){return ee(e)||x(e)||L(e)||P(e)||M(e)||w(e)||F(e)||_(e)}function ro(e){if(!mt(e))throw new Error(`Expected ${h(e)} to be a GraphQL type.`);return e}function ee(e){return Te(e,me)}function io(e){if(!ee(e))throw new Error(`Expected ${h(e)} to be a GraphQL Scalar type.`);return e}function x(e){return Te(e,re)}function Un(e){if(!x(e))throw new Error(`Expected ${h(e)} to be a GraphQL Object type.`);return e}function L(e){return Te(e,Ae)}function Mn(e){if(!L(e))throw new Error(`Expected ${h(e)} to be a GraphQL Interface type.`);return e}function P(e){return Te(e,xe)}function oo(e){if(!P(e))throw new Error(`Expected ${h(e)} to be a GraphQL Union type.`);return e}function M(e){return Te(e,ve)}function so(e){if(!M(e))throw new Error(`Expected ${h(e)} to be a GraphQL Enum type.`);return e}function w(e){return Te(e,Re)}function ao(e){if(!w(e))throw new Error(`Expected ${h(e)} to be a GraphQL Input Object type.`);return e}function F(e){return Te(e,B)}function uo(e){if(!F(e))throw new Error(`Expected ${h(e)} to be a GraphQL List type.`);return e}function _(e){return Te(e,A)}function co(e){if(!_(e))throw new Error(`Expected ${h(e)} to be a GraphQL Non-Null type.`);return e}function te(e){return ee(e)||M(e)||w(e)||Lt(e)&&te(e.ofType)}function po(e){if(!te(e))throw new Error(`Expected ${h(e)} to be a GraphQL input type.`);return e}function Le(e){return ee(e)||x(e)||L(e)||P(e)||M(e)||Lt(e)&&Le(e.ofType)}function lo(e){if(!Le(e))throw new Error(`Expected ${h(e)} to be a GraphQL output type.`);return e}function oe(e){return ee(e)||M(e)}function fo(e){if(!oe(e))throw new Error(`Expected ${h(e)} to be a GraphQL leaf type.`);return e}function ge(e){return x(e)||L(e)||P(e)}function mo(e){if(!ge(e))throw new Error(`Expected ${h(e)} to be a GraphQL composite type.`);return e}function he(e){return L(e)||P(e)}function ho(e){if(!he(e))throw new Error(`Expected ${h(e)} to be a GraphQL abstract type.`);return e}var B=class{constructor(t){mt(t)||S(!1,`Expected ${h(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}},A=class{constructor(t){jn(t)||S(!1,`Expected ${h(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};function Lt(e){return F(e)||_(e)}function To(e){if(!Lt(e))throw new Error(`Expected ${h(e)} to be a GraphQL wrapping type.`);return e}function jn(e){return mt(e)&&!_(e)}function Pn(e){if(!jn(e))throw new Error(`Expected ${h(e)} to be a GraphQL nullable type.`);return e}function wt(e){if(e)return _(e)?e.ofType:e}function nt(e){return ee(e)||x(e)||L(e)||P(e)||M(e)||w(e)}function yo(e){if(!nt(e))throw new Error(`Expected ${h(e)} to be a GraphQL named type.`);return e}function J(e){if(e){let t=e;for(;Lt(t);)t=t.ofType;return t}}function Gn(e){return typeof e=="function"?e():e}function Qn(e){return typeof e=="function"?e():e}var me=class{constructor(t){var n,r,i,o;let s=(n=t.parseValue)!==null&&n!==void 0?n:Hr;this.name=ae(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:Hr,this.parseValue=s,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(a,c)=>s(xt(a,c)),this.extensions=Ee(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(o=t.extensionASTNodes)!==null&&o!==void 0?o:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||S(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${h(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||S(!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"||S(!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()}},re=class{constructor(t){var n;this.name=ae(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=Ee(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>vo(t),this._interfaces=()=>Eo(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||S(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${h(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:No(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function Eo(e){var t;let n=Gn((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||S(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function vo(e){let t=Qn(e.fields);return Rt(t)||S(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Ce(t,(n,r)=>{var i;Rt(n)||S(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||S(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${h(n.resolve)}.`);let o=(i=n.args)!==null&&i!==void 0?i:{};return Rt(o)||S(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:ae(r),description:n.description,type:n.type,args:ei(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:Ee(n.extensions),astNode:n.astNode}})}function ei(e){return Object.entries(e).map(([t,n])=>({name:ae(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Ee(n.extensions),astNode:n.astNode}))}function Rt(e){return H(e)&&!Array.isArray(e)}function No(e){return Ce(e,t=>({description:t.description,type:t.type,args:ti(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function ti(e){return Se(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function we(e){return _(e.type)&&e.defaultValue===void 0}var Ae=class{constructor(t){var n;this.name=ae(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Ee(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=vo.bind(void 0,t),this._interfaces=Eo.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||S(!1,`${this.name} must provide "resolveType" as a function, but got: ${h(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:No(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},xe=class{constructor(t){var n;this.name=ae(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Ee(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=ra.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||S(!1,`${this.name} must provide "resolveType" as a function, but got: ${h(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()}};function ra(e){let t=Gn(e.types);return Array.isArray(t)||S(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var ve=class{constructor(t){var n;this.name=ae(t.name),this.description=t.description,this.extensions=Ee(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:no(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=no(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=de(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new f(`Enum "${this.name}" cannot represent value: ${h(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=h(t);throw new f(`Enum "${this.name}" cannot represent non-string value: ${r}.`+Cn(this,r))}let n=this.getValue(t);if(n==null)throw new f(`Value "${t}" does not exist in "${this.name}" enum.`+Cn(this,t));return n.value}parseLiteral(t,n){if(t.kind!==u.ENUM){let i=V(t);throw new f(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Cn(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=V(t);throw new f(`Value "${i}" does not exist in "${this.name}" enum.`+Cn(this,i),{nodes:t})}return r.value}toConfig(){let t=Se(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.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()}};function Cn(e,t){let n=e.getValues().map(i=>i.name),r=ye(t,n);return fe("the enum value",r)}function no(e,t){return Rt(t)||S(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(Rt(r)||S(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${h(r)}.`),{name:$n(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:Ee(r.extensions),astNode:r.astNode}))}var Re=class{constructor(t){var n,r;this.name=ae(t.name),this.description=t.description,this.extensions=Ee(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=ia.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=Ce(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.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()}};function ia(e){let t=Qn(e.fields);return Rt(t)||S(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Ce(t,(n,r)=>(!("resolve"in n)||S(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:ae(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Ee(n.extensions),astNode:n.astNode}))}function rt(e){return _(e.type)&&e.defaultValue===void 0}function Ft(e,t){return e===t?!0:_(e)&&_(t)||F(e)&&F(t)?Ft(e.ofType,t.ofType):!1}function Ge(e,t,n){return t===n?!0:_(n)?_(t)?Ge(e,t.ofType,n.ofType):!1:_(t)?Ge(e,t.ofType,n):F(n)?F(t)?Ge(e,t.ofType,n.ofType):!1:F(t)?!1:he(n)&&(L(t)||x(t))&&e.isSubType(n,t)}function zt(e,t,n){return t===n?!0:he(t)?he(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):he(n)?e.isSubType(n,t):!1}var Ht=2147483647,Wt=-2147483648,ni=new me({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=en(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new f(`Int cannot represent non-integer value: ${h(t)}`);if(n>Ht||n<Wt)throw new f("Int cannot represent non 32-bit signed integer value: "+h(t));return n},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new f(`Int cannot represent non-integer value: ${h(e)}`);if(e>Ht||e<Wt)throw new f(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==u.INT)throw new f(`Int cannot represent non-integer value: ${V(e)}`,{nodes:e});let t=parseInt(e.value,10);if(t>Ht||t<Wt)throw new f(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),ri=new me({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=en(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isFinite(n))throw new f(`Float cannot represent non numeric value: ${h(t)}`);return n},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new f(`Float cannot represent non numeric value: ${h(e)}`);return e},parseLiteral(e){if(e.kind!==u.FLOAT&&e.kind!==u.INT)throw new f(`Float cannot represent non numeric value: ${V(e)}`,e);return parseFloat(e.value)}}),q=new me({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=en(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 f(`String cannot represent value: ${h(e)}`)},parseValue(e){if(typeof e!="string")throw new f(`String cannot represent a non string value: ${h(e)}`);return e},parseLiteral(e){if(e.kind!==u.STRING)throw new f(`String cannot represent a non string value: ${V(e)}`,{nodes:e});return e.value}}),ue=new me({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let t=en(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new f(`Boolean cannot represent a non boolean value: ${h(t)}`)},parseValue(e){if(typeof e!="boolean")throw new f(`Boolean cannot represent a non boolean value: ${h(e)}`);return e},parseLiteral(e){if(e.kind!==u.BOOLEAN)throw new f(`Boolean cannot represent a non boolean value: ${V(e)}`,{nodes:e});return e.value}}),Zt=new me({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=en(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new f(`ID cannot represent value: ${h(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new f(`ID cannot represent value: ${h(e)}`)},parseLiteral(e){if(e.kind!==u.STRING&&e.kind!==u.INT)throw new f("ID cannot represent a non-string and non-integer value: "+V(e),{nodes:e});return e.value}}),Ye=Object.freeze([q,ni,ri,ue,Zt]);function it(e){return Ye.some(({name:t})=>e.name===t)}function en(e){if(H(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!H(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function ht(e){return Te(e,ce)}function go(e){if(!ht(e))throw new Error(`Expected ${h(e)} to be a GraphQL directive.`);return e}var ce=class{constructor(t){var n,r;this.name=ae(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=Ee(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||S(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};H(i)&&!Array.isArray(i)||S(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=ei(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:ti(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}},tn=new ce({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[D.FIELD,D.FRAGMENT_SPREAD,D.INLINE_FRAGMENT],args:{if:{type:new A(ue),description:"Included when true."}}}),nn=new ce({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[D.FIELD,D.FRAGMENT_SPREAD,D.INLINE_FRAGMENT],args:{if:{type:new A(ue),description:"Skipped when true."}}}),rn="No longer supported",Tt=new ce({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[D.FIELD_DEFINITION,D.ARGUMENT_DEFINITION,D.INPUT_FIELD_DEFINITION,D.ENUM_VALUE],args:{reason:{type:q,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:rn}}}),on=new ce({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[D.SCALAR],args:{url:{type:new A(q),description:"The URL that specifies the behavior of this scalar."}}}),sn=new ce({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[D.INPUT_OBJECT],args:{}}),Ne=Object.freeze([tn,nn,Tt,on,sn]);function an(e){return Ne.some(({name:t})=>t===e.name)}function kt(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}function Fe(e,t){if(_(t)){let n=Fe(e,t.ofType);return n?.kind===u.NULL?null:n}if(e===null)return{kind:u.NULL};if(e===void 0)return null;if(F(t)){let n=t.ofType;if(kt(e)){let r=[];for(let i of e){let o=Fe(i,n);o!=null&&r.push(o)}return{kind:u.LIST,values:r}}return Fe(e,n)}if(w(t)){if(!H(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Fe(e[r.name],r.type);i&&n.push({kind:u.OBJECT_FIELD,name:{kind:u.NAME,value:r.name},value:i})}return{kind:u.OBJECT,fields:n}}if(oe(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:u.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return Io.test(r)?{kind:u.INT,value:r}:{kind:u.FLOAT,value:r}}if(typeof n=="string")return M(t)?{kind:u.ENUM,value:n}:t===Zt&&Io.test(n)?{kind:u.INT,value:n}:{kind:u.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${h(n)}.`)}$(!1,"Unexpected input type: "+h(t))}var Io=/^-?(?:0|[1-9][0-9]*)$/;var Vt=new re({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:q,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new A(new B(new A(be))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new A(be),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:be,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:be,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new A(new B(new A(Bn))),resolve:e=>e.getDirectives()}})}),Bn=new re({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
50
-
51
- In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new A(q),resolve:e=>e.name},description:{type:q,resolve:e=>e.description},isRepeatable:{type:new A(ue),resolve:e=>e.isRepeatable},locations:{type:new A(new B(new A(qn))),resolve:e=>e.locations},args:{type:new A(new B(new A($t))),args:{includeDeprecated:{type:ue,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),qn=new ve({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:D.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:D.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:D.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:D.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:D.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:D.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:D.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:D.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:D.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:D.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:D.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:D.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:D.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:D.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:D.UNION,description:"Location adjacent to a union definition."},ENUM:{value:D.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:D.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:D.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:D.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),be=new re({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new A(Kn),resolve(e){if(ee(e))return j.SCALAR;if(x(e))return j.OBJECT;if(L(e))return j.INTERFACE;if(P(e))return j.UNION;if(M(e))return j.ENUM;if(w(e))return j.INPUT_OBJECT;if(F(e))return j.LIST;if(_(e))return j.NON_NULL;$(!1,`Unexpected type: "${h(e)}".`)}},name:{type:q,resolve:e=>"name"in e?e.name:void 0},description:{type:q,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:q,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new B(new A(Yn)),args:{includeDeprecated:{type:ue,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(x(e)||L(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new B(new A(be)),resolve(e){if(x(e)||L(e))return e.getInterfaces()}},possibleTypes:{type:new B(new A(be)),resolve(e,t,n,{schema:r}){if(he(e))return r.getPossibleTypes(e)}},enumValues:{type:new B(new A(Jn)),args:{includeDeprecated:{type:ue,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(M(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new B(new A($t)),args:{includeDeprecated:{type:ue,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(w(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:be,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:ue,resolve:e=>{if(w(e))return e.isOneOf}}})}),Yn=new re({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new A(q),resolve:e=>e.name},description:{type:q,resolve:e=>e.description},args:{type:new A(new B(new A($t))),args:{includeDeprecated:{type:ue,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new A(be),resolve:e=>e.type},isDeprecated:{type:new A(ue),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:q,resolve:e=>e.deprecationReason}})}),$t=new re({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new A(q),resolve:e=>e.name},description:{type:q,resolve:e=>e.description},type:{type:new A(be),resolve:e=>e.type},defaultValue:{type:q,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=Fe(n,t);return r?V(r):null}},isDeprecated:{type:new A(ue),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:q,resolve:e=>e.deprecationReason}})}),Jn=new re({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new A(q),resolve:e=>e.name},description:{type:q,resolve:e=>e.description},isDeprecated:{type:new A(ue),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:q,resolve:e=>e.deprecationReason}})}),j;(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"})(j||(j={}));var Kn=new ve({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:j.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:j.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:j.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:j.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:j.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:j.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:j.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:j.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),ot={name:"__schema",type:new A(Vt),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},st={name:"__type",type:be,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new A(q),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},at={name:"__typename",type:new A(q),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Je=Object.freeze([Vt,Bn,qn,be,Yn,$t,Jn,Kn]);function _e(e){return Je.some(({name:t})=>e.name===t)}function ii(e){return Te(e,De)}function Ct(e){if(!ii(e))throw new Error(`Expected ${h(e)} to be a GraphQL schema.`);return e}var De=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,H(t)||S(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||S(!1,`"types" must be Array if provided but got: ${h(t.types)}.`),!t.directives||Array.isArray(t.directives)||S(!1,`"directives" must be Array if provided but got: ${h(t.directives)}.`),this.description=t.description,this.extensions=Ee(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:Ne;let i=new Set(t.types);if(t.types!=null)for(let o of t.types)i.delete(o),je(o,i);this._queryType!=null&&je(this._queryType,i),this._mutationType!=null&&je(this._mutationType,i),this._subscriptionType!=null&&je(this._subscriptionType,i);for(let o of this._directives)if(ht(o))for(let s of o.args)je(s.type,i);je(Vt,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let o of i){if(o==null)continue;let s=o.name;if(s||S(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[s]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${s}".`);if(this._typeMap[s]=o,L(o)){for(let a of o.getInterfaces())if(L(a)){let c=this._implementationsMap[a.name];c===void 0&&(c=this._implementationsMap[a.name]={objects:[],interfaces:[]}),c.interfaces.push(o)}}else if(x(o)){for(let a of o.getInterfaces())if(L(a)){let c=this._implementationsMap[a.name];c===void 0&&(c=this._implementationsMap[a.name]={objects:[],interfaces:[]}),c.objects.push(o)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case Q.QUERY:return this.getQueryType();case Q.MUTATION:return this.getMutationType();case Q.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return P(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n??{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),P(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let o of i.objects)r[o.name]=!0;for(let o of i.interfaces)r[o.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.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}}};function je(e,t){let n=J(e);if(!t.has(n)){if(t.add(n),P(n))for(let r of n.getTypes())je(r,t);else if(x(n)||L(n)){for(let r of n.getInterfaces())je(r,t);for(let r of Object.values(n.getFields())){je(r.type,t);for(let i of r.args)je(i.type,t)}}else if(w(n))for(let r of Object.values(n.getFields()))je(r.type,t)}return t}function cn(e){if(Ct(e),e.__validationErrors)return e.__validationErrors;let t=new si(e);oa(t),sa(t),aa(t);let n=t.getErrors();return e.__validationErrors=n,n}function Ut(e){let t=cn(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
52
-
53
- `))}var si=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new f(t,{nodes:r}))}getErrors(){return this._errors}};function oa(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!x(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${h(n)}.`,(r=oi(t,Q.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!x(i)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${h(i)}.`,(o=oi(t,Q.MUTATION))!==null&&o!==void 0?o:i.astNode)}let s=t.getSubscriptionType();if(s&&!x(s)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${h(s)}.`,(a=oi(t,Q.SUBSCRIPTION))!==null&&a!==void 0?a:s.astNode)}}function oi(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r?.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function sa(e){for(let n of e.schema.getDirectives()){if(!ht(n)){e.reportError(`Expected directive but got: ${h(n)}.`,n?.astNode);continue}yt(e,n),n.locations.length===0&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(let r of n.args)if(yt(e,r),te(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${h(r.type)}.`,r.astNode),we(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[ai(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function yt(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function aa(e){let t=ma(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!nt(r)){e.reportError(`Expected GraphQL named type but got: ${h(r)}.`,r.astNode);continue}_e(r)||yt(e,r),x(r)||L(r)?(Oo(e,r),bo(e,r)):P(r)?pa(e,r):M(r)?la(e,r):w(r)&&(fa(e,r),t(r))}}function Oo(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let s of n){if(yt(e,s),!Le(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${h(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}for(let a of s.args){let c=a.name;if(yt(e,a),!te(a.type)){var i;e.reportError(`The type of ${t.name}.${s.name}(${c}:) must be Input Type but got: ${h(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}if(we(a)&&a.deprecationReason!=null){var o;e.reportError(`Required argument ${t.name}.${s.name}(${c}:) cannot be deprecated.`,[ai(a.astNode),(o=a.astNode)===null||o===void 0?void 0:o.type])}}}}function bo(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!L(r)){e.reportError(`Type ${h(t)} must only implement Interface types, it cannot implement ${h(r)}.`,un(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,un(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,un(t,r));continue}n[r.name]=!0,ca(e,t,r),ua(e,t,r)}}function ua(e,t,n){let r=t.getFields();for(let c of Object.values(n.getFields())){let p=c.name,l=r[p];if(!l){e.reportError(`Interface field ${n.name}.${p} expected but ${t.name} does not provide it.`,[c.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!Ge(e.schema,l.type,c.type)){var i,o;e.reportError(`Interface field ${n.name}.${p} expects type ${h(c.type)} but ${t.name}.${p} is type ${h(l.type)}.`,[(i=c.astNode)===null||i===void 0?void 0:i.type,(o=l.astNode)===null||o===void 0?void 0:o.type])}for(let m of c.args){let d=m.name,E=l.args.find(N=>N.name===d);if(!E){e.reportError(`Interface field argument ${n.name}.${p}(${d}:) expected but ${t.name}.${p} does not provide it.`,[m.astNode,l.astNode]);continue}if(!Ft(m.type,E.type)){var s,a;e.reportError(`Interface field argument ${n.name}.${p}(${d}:) expects type ${h(m.type)} but ${t.name}.${p}(${d}:) is type ${h(E.type)}.`,[(s=m.astNode)===null||s===void 0?void 0:s.type,(a=E.astNode)===null||a===void 0?void 0:a.type])}}for(let m of l.args){let d=m.name;!c.args.find(N=>N.name===d)&&we(m)&&e.reportError(`Object field ${t.name}.${p} includes required argument ${d} that is missing from the Interface field ${n.name}.${p}.`,[m.astNode,c.astNode])}}}function ca(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...un(n,i),...un(t,n)])}function pa(e,t){let n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,_o(t,i.name));continue}r[i.name]=!0,x(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${h(i)}.`,_o(t,String(i)))}}function la(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)yt(e,r)}function fa(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(yt(e,o),!te(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${h(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}if(rt(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[ai(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&da(t,o,e)}}function da(e,t,n){if(_(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function ma(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;let s=Object.values(o.getFields());for(let a of s)if(_(a.type)&&w(a.type.ofType)){let c=a.type.ofType,p=r[c.name];if(n.push(a),p===void 0)i(c);else{let l=n.slice(p),m=l.map(d=>d.name).join(".");e.reportError(`Cannot reference Input Object "${c.name}" within itself through a series of non-null fields: "${m}".`,l.map(d=>d.astNode))}n.pop()}r[o.name]=void 0}}function un(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var s;return(s=o.interfaces)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t.name)}function _o(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var s;return(s=o.types)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t)}function ai(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Tt.name)}function K(e,t){switch(t.kind){case u.LIST_TYPE:{let n=K(e,t.type);return n&&new B(n)}case u.NON_NULL_TYPE:{let n=K(e,t.type);return n&&new A(n)}case u.NAMED_TYPE:return e.getType(t.name.value)}}var ut=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r??ha,n&&(te(n)&&this._inputTypeStack.push(n),ge(n)&&this._parentTypeStack.push(n),Le(n)&&this._typeStack.push(n))}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 n=this._schema;switch(t.kind){case u.SELECTION_SET:{let i=J(this.getType());this._parentTypeStack.push(ge(i)?i:void 0);break}case u.FIELD:{let i=this.getParentType(),o,s;i&&(o=this._getFieldDef(n,i,t),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push(Le(s)?s:void 0);break}case u.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case u.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push(x(i)?i:void 0);break}case u.INLINE_FRAGMENT:case u.FRAGMENT_DEFINITION:{let i=t.typeCondition,o=i?K(n,i):J(this.getType());this._typeStack.push(Le(o)?o:void 0);break}case u.VARIABLE_DEFINITION:{let i=K(n,t.type);this._inputTypeStack.push(te(i)?i:void 0);break}case u.ARGUMENT:{var r;let i,o,s=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();s&&(i=s.args.find(a=>a.name===t.name.value),i&&(o=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(te(o)?o:void 0);break}case u.LIST:{let i=wt(this.getInputType()),o=F(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(te(o)?o:void 0);break}case u.OBJECT_FIELD:{let i=J(this.getInputType()),o,s;w(i)&&(s=i.getFields()[t.name.value],s&&(o=s.type)),this._defaultValueStack.push(s?s.defaultValue:void 0),this._inputTypeStack.push(te(o)?o:void 0);break}case u.ENUM:{let i=J(this.getInputType()),o;M(i)&&(o=i.getValue(t.value)),this._enumValue=o;break}default:}}leave(t){switch(t.kind){case u.SELECTION_SET:this._parentTypeStack.pop();break;case u.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case u.DIRECTIVE:this._directive=null;break;case u.OPERATION_DEFINITION:case u.INLINE_FRAGMENT:case u.FRAGMENT_DEFINITION:this._typeStack.pop();break;case u.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case u.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case u.LIST:case u.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case u.ENUM:this._enumValue=null;break;default:}}};function ha(e,t,n){let r=n.name.value;if(r===ot.name&&e.getQueryType()===t)return ot;if(r===st.name&&e.getQueryType()===t)return st;if(r===at.name&&ge(t))return at;if(x(t)||L(t))return t.getFields()[r]}function Mt(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=tt(t,r.kind).enter;if(i){let o=i.apply(t,n);return o!==void 0&&(e.leave(r),Yt(o)&&e.enter(o)),o}},leave(...n){let r=n[0],i=tt(t,r.kind).leave,o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}function Do(e){return pn(e)||ln(e)||fn(e)}function pn(e){return e.kind===u.OPERATION_DEFINITION||e.kind===u.FRAGMENT_DEFINITION}function So(e){return e.kind===u.FIELD||e.kind===u.FRAGMENT_SPREAD||e.kind===u.INLINE_FRAGMENT}function ui(e){return e.kind===u.VARIABLE||e.kind===u.INT||e.kind===u.FLOAT||e.kind===u.STRING||e.kind===u.BOOLEAN||e.kind===u.NULL||e.kind===u.ENUM||e.kind===u.LIST||e.kind===u.OBJECT}function Xn(e){return ui(e)&&(e.kind===u.LIST?e.values.some(Xn):e.kind===u.OBJECT?e.fields.some(t=>Xn(t.value)):e.kind!==u.VARIABLE)}function Ao(e){return e.kind===u.NAMED_TYPE||e.kind===u.LIST_TYPE||e.kind===u.NON_NULL_TYPE}function ln(e){return e.kind===u.SCHEMA_DEFINITION||Pe(e)||e.kind===u.DIRECTIVE_DEFINITION}function Pe(e){return e.kind===u.SCALAR_TYPE_DEFINITION||e.kind===u.OBJECT_TYPE_DEFINITION||e.kind===u.INTERFACE_TYPE_DEFINITION||e.kind===u.UNION_TYPE_DEFINITION||e.kind===u.ENUM_TYPE_DEFINITION||e.kind===u.INPUT_OBJECT_TYPE_DEFINITION}function fn(e){return e.kind===u.SCHEMA_EXTENSION||Et(e)}function Et(e){return e.kind===u.SCALAR_TYPE_EXTENSION||e.kind===u.OBJECT_TYPE_EXTENSION||e.kind===u.INTERFACE_TYPE_EXTENSION||e.kind===u.UNION_TYPE_EXTENSION||e.kind===u.ENUM_TYPE_EXTENSION||e.kind===u.INPUT_OBJECT_TYPE_EXTENSION}function zn(e){return{Document(t){for(let n of t.definitions)if(!pn(n)){let r=n.kind===u.SCHEMA_DEFINITION||n.kind===u.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new f(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}function Hn(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),o=t.name.value,s=fe("to use an inline fragment on",Ta(i,n,o));s===""&&(s=fe(ya(n,o))),e.reportError(new f(`Cannot query field "${o}" on type "${n.name}".`+s,{nodes:t}))}}}}function Ta(e,t,n){if(!he(t))return[];let r=new Set,i=Object.create(null);for(let s of e.getPossibleTypes(t))if(s.getFields()[n]){r.add(s),i[s.name]=1;for(let a of s.getInterfaces()){var o;a.getFields()[n]&&(r.add(a),i[a.name]=((o=i[a.name])!==null&&o!==void 0?o:0)+1)}}return[...r].sort((s,a)=>{let c=i[a.name]-i[s.name];return c!==0?c:L(s)&&e.isSubType(s,a)?-1:L(a)&&e.isSubType(a,s)?1:qe(s.name,a.name)}).map(s=>s.name)}function ya(e,t){if(x(e)||L(e)){let n=Object.keys(e.getFields());return ye(t,n)}return[]}function Wn(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=K(e.getSchema(),n);if(r&&!ge(r)){let i=V(n);e.reportError(new f(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=K(e.getSchema(),t.typeCondition);if(n&&!ge(n)){let r=V(t.typeCondition);e.reportError(new f(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}function Zn(e){return{...ci(e),Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let o=t.name.value,s=r.args.map(c=>c.name),a=ye(o,s);e.reportError(new f(`Unknown argument "${o}" on field "${i.name}.${r.name}".`+fe(a),{nodes:t}))}}}}function ci(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Ne;for(let s of r)t[s.name]=s.args.map(a=>a.name);let i=e.getDocument().definitions;for(let s of i)if(s.kind===u.DIRECTIVE_DEFINITION){var o;let a=(o=s.arguments)!==null&&o!==void 0?o:[];t[s.name.value]=a.map(c=>c.name.value)}return{Directive(s){let a=s.name.value,c=t[a];if(s.arguments&&c)for(let p of s.arguments){let l=p.name.value;if(!c.includes(l)){let m=ye(l,c);e.reportError(new f(`Unknown argument "${l}" on directive "@${a}".`+fe(m),{nodes:p}))}}return!1}}}function dn(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Ne;for(let o of r)t[o.name]=o.locations;let i=e.getDocument().definitions;for(let o of i)o.kind===u.DIRECTIVE_DEFINITION&&(t[o.name.value]=o.locations.map(s=>s.value));return{Directive(o,s,a,c,p){let l=o.name.value,m=t[l];if(!m){e.reportError(new f(`Unknown directive "@${l}".`,{nodes:o}));return}let d=Ea(p);d&&!m.includes(d)&&e.reportError(new f(`Directive "@${l}" may not be used on ${d}.`,{nodes:o}))}}}function Ea(e){let t=e[e.length-1];switch("kind"in t||$(!1),t.kind){case u.OPERATION_DEFINITION:return va(t.operation);case u.FIELD:return D.FIELD;case u.FRAGMENT_SPREAD:return D.FRAGMENT_SPREAD;case u.INLINE_FRAGMENT:return D.INLINE_FRAGMENT;case u.FRAGMENT_DEFINITION:return D.FRAGMENT_DEFINITION;case u.VARIABLE_DEFINITION:return D.VARIABLE_DEFINITION;case u.SCHEMA_DEFINITION:case u.SCHEMA_EXTENSION:return D.SCHEMA;case u.SCALAR_TYPE_DEFINITION:case u.SCALAR_TYPE_EXTENSION:return D.SCALAR;case u.OBJECT_TYPE_DEFINITION:case u.OBJECT_TYPE_EXTENSION:return D.OBJECT;case u.FIELD_DEFINITION:return D.FIELD_DEFINITION;case u.INTERFACE_TYPE_DEFINITION:case u.INTERFACE_TYPE_EXTENSION:return D.INTERFACE;case u.UNION_TYPE_DEFINITION:case u.UNION_TYPE_EXTENSION:return D.UNION;case u.ENUM_TYPE_DEFINITION:case u.ENUM_TYPE_EXTENSION:return D.ENUM;case u.ENUM_VALUE_DEFINITION:return D.ENUM_VALUE;case u.INPUT_OBJECT_TYPE_DEFINITION:case u.INPUT_OBJECT_TYPE_EXTENSION:return D.INPUT_OBJECT;case u.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||$(!1),n.kind===u.INPUT_OBJECT_TYPE_DEFINITION?D.INPUT_FIELD_DEFINITION:D.ARGUMENT_DEFINITION}default:$(!1,"Unexpected kind: "+h(t.kind))}}function va(e){switch(e){case Q.QUERY:return D.QUERY;case Q.MUTATION:return D.MUTATION;case Q.SUBSCRIPTION:return D.SUBSCRIPTION}}function er(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new f(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function mn(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let o of e.getDocument().definitions)Pe(o)&&(r[o.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(o,s,a,c,p){let l=o.name.value;if(!n[l]&&!r[l]){var m;let d=(m=p[2])!==null&&m!==void 0?m:a,E=d!=null&&Na(d);if(E&&xo.includes(l))return;let N=ye(l,E?xo.concat(i):i);e.reportError(new f(`Unknown type "${l}".`+fe(N),{nodes:o}))}}}}var xo=[...Ye,...Je].map(e=>e.name);function Na(e){return"kind"in e&&(ln(e)||fn(e))}function tr(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===u.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new f("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function nr(e){var t,n,r;let i=e.getSchema(),o=(t=(n=(r=i?.astNode)!==null&&r!==void 0?r:i?.getQueryType())!==null&&n!==void 0?n:i?.getMutationType())!==null&&t!==void 0?t:i?.getSubscriptionType(),s=0;return{SchemaDefinition(a){if(o){e.reportError(new f("Cannot define a new schema within a schema extension.",{nodes:a}));return}s>0&&e.reportError(new f("Must provide only one schema definition.",{nodes:a})),++s}}}var ga=3;function rr(e){function t(n,r=Object.create(null),i=0){if(n.kind===u.FRAGMENT_SPREAD){let o=n.name.value;if(r[o]===!0)return!1;let s=e.getFragment(o);if(!s)return!1;try{return r[o]=!0,t(s,r,i)}finally{r[o]=void 0}}if(n.kind===u.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=ga))return!0;if("selectionSet"in n&&n.selectionSet){for(let o of n.selectionSet.selections)if(t(o,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new f("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}function ir(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(o){return i(o),!1}};function i(o){if(t[o.name.value])return;let s=o.name.value;t[s]=!0;let a=e.getFragmentSpreads(o.selectionSet);if(a.length!==0){r[s]=n.length;for(let c of a){let p=c.name.value,l=r[p];if(n.push(c),l===void 0){let m=e.getFragment(p);m&&i(m)}else{let m=n.slice(l),d=m.slice(0,-1).map(E=>'"'+E.name.value+'"').join(", ");e.reportError(new f(`Cannot spread fragment "${p}" within itself`+(d!==""?` via ${d}.`:"."),{nodes:m}))}n.pop()}r[s]=void 0}}}function or(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let o=i.name.value;t[o]!==!0&&e.reportError(new f(n.name?`Variable "$${o}" is not defined by operation "${n.name.value}".`:`Variable "$${o}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}function sr(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let o of e.getRecursivelyReferencedFragments(i))r[o.name.value]=!0;for(let i of n){let o=i.name.value;r[o]!==!0&&e.reportError(new f(`Fragment "${o}" is never used.`,{nodes:i}))}}}}}function ar(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:o}of i)r[o.name.value]=!0;for(let o of t){let s=o.variable.name.value;r[s]!==!0&&e.reportError(new f(n.name?`Variable "$${s}" is never used in operation "${n.name.value}".`:`Variable "$${s}" is never used.`,{nodes:o}))}}},VariableDefinition(n){t.push(n)}}}function jt(e){switch(e.kind){case u.OBJECT:return{...e,fields:Ia(e.fields)};case u.LIST:return{...e,values:e.values.map(jt)};case u.INT:case u.FLOAT:case u.STRING:case u.BOOLEAN:case u.NULL:case u.ENUM:case u.VARIABLE:return e}}function Ia(e){return e.map(t=>({...t,value:jt(t.value)})).sort((t,n)=>qe(t.name.value,n.name.value))}function Lo(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+Lo(n)).join(" and "):e}function fr(e){let t=new lr,n=new fi,r=new Map;return{SelectionSet(i){let o=Oa(e,r,t,n,e.getParentType(),i);for(let[[s,a],c,p]of o){let l=Lo(a);e.reportError(new f(`Fields "${s}" conflict because ${l}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:c.concat(p)}))}}}}function Oa(e,t,n,r,i,o){let s=[],[a,c]=pr(e,t,i,o);if(_a(e,s,t,n,r,a),c.length!==0)for(let p=0;p<c.length;p++){ur(e,s,t,n,r,!1,a,c[p]);for(let l=p+1;l<c.length;l++)cr(e,s,t,n,r,!1,c[p],c[l])}return s}function ur(e,t,n,r,i,o,s,a){if(r.has(s,a,o))return;r.add(s,a,o);let c=e.getFragment(a);if(!c)return;let[p,l]=li(e,n,c);if(s!==p){di(e,t,n,r,i,o,s,p);for(let m of l)ur(e,t,n,r,i,o,s,m)}}function cr(e,t,n,r,i,o,s,a){if(s===a||i.has(s,a,o))return;i.add(s,a,o);let c=e.getFragment(s),p=e.getFragment(a);if(!c||!p)return;let[l,m]=li(e,n,c),[d,E]=li(e,n,p);di(e,t,n,r,i,o,l,d);for(let N of E)cr(e,t,n,r,i,o,s,N);for(let N of m)cr(e,t,n,r,i,o,N,a)}function ba(e,t,n,r,i,o,s,a,c){let p=[],[l,m]=pr(e,t,o,s),[d,E]=pr(e,t,a,c);di(e,p,t,n,r,i,l,d);for(let N of E)ur(e,p,t,n,r,i,l,N);for(let N of m)ur(e,p,t,n,r,i,d,N);for(let N of m)for(let k of E)cr(e,p,t,n,r,i,N,k);return p}function _a(e,t,n,r,i,o){for(let[s,a]of Object.entries(o))if(a.length>1)for(let c=0;c<a.length;c++)for(let p=c+1;p<a.length;p++){let l=wo(e,n,r,i,!1,s,a[c],a[p]);l&&t.push(l)}}function di(e,t,n,r,i,o,s,a){for(let[c,p]of Object.entries(s)){let l=a[c];if(l)for(let m of p)for(let d of l){let E=wo(e,n,r,i,o,c,m,d);E&&t.push(E)}}}function wo(e,t,n,r,i,o,s,a){let[c,p,l]=s,[m,d,E]=a,N=i||c!==m&&x(c)&&x(m);if(!N){let se=p.name.value,pe=d.name.value;if(se!==pe)return[[o,`"${se}" and "${pe}" are different fields`],[p],[d]];if(!Da(p,d))return[[o,"they have differing arguments"],[p],[d]]}let k=l?.type,U=E?.type;if(k&&U&&pi(k,U))return[[o,`they return conflicting types "${h(k)}" and "${h(U)}"`],[p],[d]];let z=p.selectionSet,Qe=d.selectionSet;if(z&&Qe){let se=ba(e,t,n,r,N,J(k),z,J(U),Qe);return Sa(se,o,p,d)}}function Da(e,t){let n=e.arguments,r=t.arguments;if(n===void 0||n.length===0)return r===void 0||r.length===0;if(r===void 0||r.length===0||n.length!==r.length)return!1;let i=new Map(r.map(({name:o,value:s})=>[o.value,s]));return n.every(o=>{let s=o.value,a=i.get(o.name.value);return a===void 0?!1:Ro(s)===Ro(a)})}function Ro(e){return V(jt(e))}function pi(e,t){return F(e)?F(t)?pi(e.ofType,t.ofType):!0:F(t)?!0:_(e)?_(t)?pi(e.ofType,t.ofType):!0:_(t)?!0:oe(e)||oe(t)?e!==t:!1}function pr(e,t,n,r){let i=t.get(r);if(i)return i;let o=Object.create(null),s=Object.create(null);Fo(e,n,r,o,s);let a=[o,Object.keys(s)];return t.set(r,a),a}function li(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=K(e.getSchema(),n.typeCondition);return pr(e,t,i,n.selectionSet)}function Fo(e,t,n,r,i){for(let o of n.selections)switch(o.kind){case u.FIELD:{let s=o.name.value,a;(x(t)||L(t))&&(a=t.getFields()[s]);let c=o.alias?o.alias.value:s;r[c]||(r[c]=[]),r[c].push([t,o,a]);break}case u.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case u.INLINE_FRAGMENT:{let s=o.typeCondition,a=s?K(e.getSchema(),s):t;Fo(e,a,o.selectionSet,r,i);break}}}function Sa(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var lr=class{constructor(){this._data=new Map}has(t,n,r){var i;let o=(i=this._data.get(t))===null||i===void 0?void 0:i.get(n);return o===void 0?!1:r?!0:r===o}add(t,n,r){let i=this._data.get(t);i===void 0?this._data.set(t,new Map([[n,r]])):i.set(n,r)}},fi=class{constructor(){this._orderedPairSet=new lr}has(t,n,r){return t<n?this._orderedPairSet.has(t,n,r):this._orderedPairSet.has(n,t,r)}add(t,n,r){t<n?this._orderedPairSet.add(t,n,r):this._orderedPairSet.add(n,t,r)}};function dr(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if(ge(n)&&ge(r)&&!zt(e.getSchema(),n,r)){let i=h(r),o=h(n);e.reportError(new f(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=Aa(e,n),i=e.getParentType();if(r&&i&&!zt(e.getSchema(),r,i)){let o=h(i),s=h(r);e.reportError(new f(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:t}))}}}}function Aa(e,t){let n=e.getFragment(t);if(n){let r=K(e.getSchema(),n.typeCondition);if(ge(r))return r}}function mr(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)Pe(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let o=i.name.value,s=n[o],a=t?.getType(o),c;if(s?c=xa[s.kind]:a&&(c=Ra(a)),c){if(c!==i.kind){let p=La(i.kind);e.reportError(new f(`Cannot extend non-${p} type "${o}".`,{nodes:s?[s,i]:i}))}}else{let p=Object.keys({...n,...t?.getTypeMap()}),l=ye(o,p);e.reportError(new f(`Cannot extend type "${o}" because it is not defined.`+fe(l),{nodes:i.name}))}}}var xa={[u.SCALAR_TYPE_DEFINITION]:u.SCALAR_TYPE_EXTENSION,[u.OBJECT_TYPE_DEFINITION]:u.OBJECT_TYPE_EXTENSION,[u.INTERFACE_TYPE_DEFINITION]:u.INTERFACE_TYPE_EXTENSION,[u.UNION_TYPE_DEFINITION]:u.UNION_TYPE_EXTENSION,[u.ENUM_TYPE_DEFINITION]:u.ENUM_TYPE_EXTENSION,[u.INPUT_OBJECT_TYPE_DEFINITION]:u.INPUT_OBJECT_TYPE_EXTENSION};function Ra(e){if(ee(e))return u.SCALAR_TYPE_EXTENSION;if(x(e))return u.OBJECT_TYPE_EXTENSION;if(L(e))return u.INTERFACE_TYPE_EXTENSION;if(P(e))return u.UNION_TYPE_EXTENSION;if(M(e))return u.ENUM_TYPE_EXTENSION;if(w(e))return u.INPUT_OBJECT_TYPE_EXTENSION;$(!1,"Unexpected type: "+h(e))}function La(e){switch(e){case u.SCALAR_TYPE_EXTENSION:return"scalar";case u.OBJECT_TYPE_EXTENSION:return"object";case u.INTERFACE_TYPE_EXTENSION:return"interface";case u.UNION_TYPE_EXTENSION:return"union";case u.ENUM_TYPE_EXTENSION:return"enum";case u.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:$(!1,"Unexpected kind: "+h(e))}}function hr(e){return{...mi(e),Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(o=>o.name.value));for(let o of r.args)if(!i.has(o.name)&&we(o)){let s=h(o.type);e.reportError(new f(`Field "${r.name}" argument "${o.name}" of type "${s}" is required, but it was not provided.`,{nodes:t}))}}}}}function mi(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r?.getDirectives())!==null&&t!==void 0?t:Ne;for(let a of i)n[a.name]=de(a.args.filter(we),c=>c.name);let o=e.getDocument().definitions;for(let a of o)if(a.kind===u.DIRECTIVE_DEFINITION){var s;let c=(s=a.arguments)!==null&&s!==void 0?s:[];n[a.name.value]=de(c.filter(wa),p=>p.name.value)}return{Directive:{leave(a){let c=a.name.value,p=n[c];if(p){var l;let m=(l=a.arguments)!==null&&l!==void 0?l:[],d=new Set(m.map(E=>E.name.value));for(let[E,N]of Object.entries(p))if(!d.has(E)){let k=mt(N.type)?h(N.type):V(N.type);e.reportError(new f(`Directive "@${c}" argument "${E}" of type "${k}" is required, but it was not provided.`,{nodes:a}))}}}}}}function wa(e){return e.type.kind===u.NON_NULL_TYPE&&e.defaultValue==null}function Tr(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n)if(oe(J(n))){if(r){let i=t.name.value,o=h(n);e.reportError(new f(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(r){if(r.selections.length===0){let i=t.name.value,o=h(n);e.reportError(new f(`Field "${i}" of type "${o}" must have at least one field selected.`,{nodes:t}))}}else{let i=t.name.value,o=h(n);e.reportError(new f(`Field "${i}" of type "${o}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}function yr(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}function Ke(e,t,n){return{prev:e,key:t,typename:n}}function ie(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function Er(e,t,n=Fa){return hn(e,t,n,void 0)}function Fa(e,t,n){let r="Invalid value "+h(t);throw e.length>0&&(r+=` at "value${yr(e)}"`),n.message=r+": "+n.message,n}function hn(e,t,n,r){if(_(t)){if(e!=null)return hn(e,t.ofType,n,r);n(ie(r),e,new f(`Expected non-nullable type "${h(t)}" not to be null.`));return}if(e==null)return null;if(F(t)){let i=t.ofType;return kt(e)?Array.from(e,(o,s)=>{let a=Ke(r,s,void 0);return hn(o,i,n,a)}):[hn(e,i,n,r)]}if(w(t)){if(!H(e)){n(ie(r),e,new f(`Expected type "${t.name}" to be an object.`));return}let i={},o=t.getFields();for(let s of Object.values(o)){let a=e[s.name];if(a===void 0){if(s.defaultValue!==void 0)i[s.name]=s.defaultValue;else if(_(s.type)){let c=h(s.type);n(ie(r),e,new f(`Field "${s.name}" of required type "${c}" was not provided.`))}continue}i[s.name]=hn(a,s.type,n,Ke(r,s.name,t.name))}for(let s of Object.keys(e))if(!o[s]){let a=ye(s,Object.keys(t.getFields()));n(ie(r),e,new f(`Field "${s}" is not defined by type "${t.name}".`+fe(a)))}if(t.isOneOf){let s=Object.keys(i);s.length!==1&&n(ie(r),e,new f(`Exactly one key must be specified for OneOf type "${t.name}".`));let a=s[0],c=i[a];c===null&&n(ie(r).concat(a),c,new f(`Field "${a}" must be non-null.`))}return i}if(oe(t)){let i;try{i=t.parseValue(e)}catch(o){o instanceof f?n(ie(r),e,o):n(ie(r),e,new f(`Expected type "${t.name}". `+o.message,{originalError:o}));return}return i===void 0&&n(ie(r),e,new f(`Expected type "${t.name}".`)),i}$(!1,"Unexpected input type: "+h(t))}function Ie(e,t,n){if(e){if(e.kind===u.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&_(t)?void 0:i}if(_(t))return e.kind===u.NULL?void 0:Ie(e,t.ofType,n);if(e.kind===u.NULL)return null;if(F(t)){let r=t.ofType;if(e.kind===u.LIST){let o=[];for(let s of e.values)if(ko(s,n)){if(_(r))return;o.push(null)}else{let a=Ie(s,r,n);if(a===void 0)return;o.push(a)}return o}let i=Ie(e,r,n);return i===void 0?void 0:[i]}if(w(t)){if(e.kind!==u.OBJECT)return;let r=Object.create(null),i=de(e.fields,o=>o.name.value);for(let o of Object.values(t.getFields())){let s=i[o.name];if(!s||ko(s.value,n)){if(o.defaultValue!==void 0)r[o.name]=o.defaultValue;else if(_(o.type))return;continue}let a=Ie(s.value,o.type,n);if(a===void 0)return;r[o.name]=a}if(t.isOneOf){let o=Object.keys(r);if(o.length!==1||r[o[0]]===null)return}return r}if(oe(t)){let r;try{r=t.parseLiteral(e,n)}catch{return}return r===void 0?void 0:r}$(!1,"Unexpected input type: "+h(t))}}function ko(e,t){return e.kind===u.VARIABLE&&(t==null||t[e.name.value]===void 0)}function vr(e,t,n,r){let i=[],o=r?.maxErrors;try{let s=ka(e,t,n,a=>{if(o!=null&&i.length>=o)throw new f("Too many errors processing variables, error limit reached. Execution aborted.");i.push(a)});if(i.length===0)return{coerced:s}}catch(s){i.push(s)}return{errors:i}}function ka(e,t,n,r){let i={};for(let o of t){let s=o.variable.name.value,a=K(e,o.type);if(!te(a)){let p=V(o.type);r(new f(`Variable "$${s}" expected value of type "${p}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!Vo(n,s)){if(o.defaultValue)i[s]=Ie(o.defaultValue,a);else if(_(a)){let p=h(a);r(new f(`Variable "$${s}" of required type "${p}" was not provided.`,{nodes:o}))}continue}let c=n[s];if(c===null&&_(a)){let p=h(a);r(new f(`Variable "$${s}" of non-null type "${p}" must not be null.`,{nodes:o}));continue}i[s]=Er(c,a,(p,l,m)=>{let d=`Variable "$${s}" got invalid value `+h(l);p.length>0&&(d+=` at "${s}${yr(p)}"`),r(new f(d+"; "+m.message,{nodes:o,originalError:m}))})}return i}function vt(e,t,n){var r;let i={},o=(r=t.arguments)!==null&&r!==void 0?r:[],s=de(o,a=>a.name.value);for(let a of e.args){let c=a.name,p=a.type,l=s[c];if(!l){if(a.defaultValue!==void 0)i[c]=a.defaultValue;else if(_(p))throw new f(`Argument "${c}" of required type "${h(p)}" was not provided.`,{nodes:t});continue}let m=l.value,d=m.kind===u.NULL;if(m.kind===u.VARIABLE){let N=m.name.value;if(n==null||!Vo(n,N)){if(a.defaultValue!==void 0)i[c]=a.defaultValue;else if(_(p))throw new f(`Argument "${c}" of required type "${h(p)}" was provided the variable "$${N}" which was not provided a runtime value.`,{nodes:m});continue}d=n[N]==null}if(d&&_(p))throw new f(`Argument "${c}" of non-null type "${h(p)}" must not be null.`,{nodes:m});let E=Ie(m,p,n);if(E===void 0)throw new f(`Argument "${c}" has invalid value ${V(m)}.`,{nodes:m});i[c]=E}return i}function Xe(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(o=>o.name.value===e.name);if(i)return vt(e,i,n)}function Vo(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Pt(e,t,n,r,i){let o=new Map;return Nr(e,t,n,r,i,o,new Set),o}function Co(e,t,n,r,i){let o=new Map,s=new Set;for(let a of i)a.selectionSet&&Nr(e,t,n,r,a.selectionSet,o,s);return o}function Nr(e,t,n,r,i,o,s){for(let a of i.selections)switch(a.kind){case u.FIELD:{if(!hi(n,a))continue;let c=Va(a),p=o.get(c);p!==void 0?p.push(a):o.set(c,[a]);break}case u.INLINE_FRAGMENT:{if(!hi(n,a)||!$o(e,a,r))continue;Nr(e,t,n,r,a.selectionSet,o,s);break}case u.FRAGMENT_SPREAD:{let c=a.name.value;if(s.has(c)||!hi(n,a))continue;s.add(c);let p=t[c];if(!p||!$o(e,p,r))continue;Nr(e,t,n,r,p.selectionSet,o,s);break}}}function hi(e,t){let n=Xe(nn,t,e);if(n?.if===!0)return!1;let r=Xe(tn,t,e);return r?.if!==!1}function $o(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=K(e,r);return i===n?!0:he(i)?e.isSubType(i,n):!1}function Va(e){return e.alias?e.alias.value:e.name.value}function gr(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,o=Object.create(null),s=e.getDocument(),a=Object.create(null);for(let p of s.definitions)p.kind===u.FRAGMENT_DEFINITION&&(a[p.name.value]=p);let c=Pt(n,a,o,r,t.selectionSet);if(c.size>1){let m=[...c.values()].slice(1).flat();e.reportError(new f(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:m}))}for(let p of c.values())p[0].name.value.startsWith("__")&&e.reportError(new f(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:p}))}}}}}function Gt(e,t){let n=new Map;for(let r of e){let i=t(r),o=n.get(i);o===void 0?n.set(i,[r]):o.push(r)}return n}function Ir(e){return{DirectiveDefinition(r){var i;let o=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,o)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let o=r.name.value,s=(i=r.fields)!==null&&i!==void 0?i:[];for(let c of s){var a;let p=c.name.value,l=(a=c.arguments)!==null&&a!==void 0?a:[];n(`${o}.${p}`,l)}return!1}function n(r,i){let o=Gt(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new f(`Argument "${r}(${s}:)" can only be defined once.`,{nodes:a.map(c=>c.name)}));return!1}}function Tn(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],o=Gt(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new f(`There can be only one argument named "${s}".`,{nodes:a.map(c=>c.name)}))}}function Or(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new f(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new f(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}function yn(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Ne;for(let a of r)t[a.name]=!a.isRepeatable;let i=e.getDocument().definitions;for(let a of i)a.kind===u.DIRECTIVE_DEFINITION&&(t[a.name.value]=!a.repeatable);let o=Object.create(null),s=Object.create(null);return{enter(a){if(!("directives"in a)||!a.directives)return;let c;if(a.kind===u.SCHEMA_DEFINITION||a.kind===u.SCHEMA_EXTENSION)c=o;else if(Pe(a)||Et(a)){let p=a.name.value;c=s[p],c===void 0&&(s[p]=c=Object.create(null))}else c=Object.create(null);for(let p of a.directives){let l=p.name.value;t[l]&&(c[l]?e.reportError(new f(`The directive "@${l}" can only be used once at this location.`,{nodes:[c[l],p]})):c[l]=p)}}}}function br(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var s;let a=o.name.value;r[a]||(r[a]=Object.create(null));let c=(s=o.values)!==null&&s!==void 0?s:[],p=r[a];for(let l of c){let m=l.name.value,d=n[a];M(d)&&d.getValue(m)?e.reportError(new f(`Enum value "${a}.${m}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):p[m]?e.reportError(new f(`Enum value "${a}.${m}" can only be defined once.`,{nodes:[p[m],l.name]})):p[m]=l.name}return!1}}function _r(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(o){var s;let a=o.name.value;r[a]||(r[a]=Object.create(null));let c=(s=o.fields)!==null&&s!==void 0?s:[],p=r[a];for(let l of c){let m=l.name.value;$a(n[a],m)?e.reportError(new f(`Field "${a}.${m}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):p[m]?e.reportError(new f(`Field "${a}.${m}" can only be defined once.`,{nodes:[p[m],l.name]})):p[m]=l.name}return!1}}function $a(e,t){return x(e)||L(e)||w(e)?e.getFields()[t]!=null:!1}function Dr(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new f(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function En(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||$(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new f(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}function Sr(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new f(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function Ar(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(o){var s;let a=(s=o.operationTypes)!==null&&s!==void 0?s:[];for(let c of a){let p=c.operation,l=n[p];r[p]?e.reportError(new f(`Type for ${p} already defined in the schema. It cannot be redefined.`,{nodes:c})):l?e.reportError(new f(`There can be only one ${p} type in schema.`,{nodes:[l,c]})):n[p]=c}return!1}}function xr(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let o=i.name.value;if(n!=null&&n.getType(o)){e.reportError(new f(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[o]?e.reportError(new f(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1}}function Rr(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=Gt(r,o=>o.variable.name.value);for(let[o,s]of i)s.length>1&&e.reportError(new f(`There can be only one variable named "$${o}".`,{nodes:s.map(a=>a.variable.name)}))}}}function Lr(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=wt(e.getParentInputType());if(!F(r))return Nt(e,n),!1},ObjectValue(n){let r=J(e.getInputType());if(!w(r))return Nt(e,n),!1;let i=de(n.fields,o=>o.name.value);for(let o of Object.values(r.getFields()))if(!i[o.name]&&rt(o)){let a=h(o.type);e.reportError(new f(`Field "${r.name}.${o.name}" of required type "${a}" was not provided.`,{nodes:n}))}r.isOneOf&&Ca(e,n,r,i,t)},ObjectField(n){let r=J(e.getParentInputType());if(!e.getInputType()&&w(r)){let o=ye(n.name.value,Object.keys(r.getFields()));e.reportError(new f(`Field "${n.name.value}" is not defined by type "${r.name}".`+fe(o),{nodes:n}))}},NullValue(n){let r=e.getInputType();_(r)&&e.reportError(new f(`Expected value of type "${h(r)}", found ${V(n)}.`,{nodes:n}))},EnumValue:n=>Nt(e,n),IntValue:n=>Nt(e,n),FloatValue:n=>Nt(e,n),StringValue:n=>Nt(e,n),BooleanValue:n=>Nt(e,n)}}function Nt(e,t){let n=e.getInputType();if(!n)return;let r=J(n);if(!oe(r)){let i=h(n);e.reportError(new f(`Expected value of type "${i}", found ${V(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let o=h(n);e.reportError(new f(`Expected value of type "${o}", found ${V(t)}.`,{nodes:t}))}}catch(i){let o=h(n);i instanceof f?e.reportError(i):e.reportError(new f(`Expected value of type "${o}", found ${V(t)}; `+i.message,{nodes:t,originalError:i}))}}function Ca(e,t,n,r,i){var o;let s=Object.keys(r);if(s.length!==1){e.reportError(new f(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let c=(o=r[s[0]])===null||o===void 0?void 0:o.value,p=!c||c.kind===u.NULL,l=c?.kind===u.VARIABLE;if(p){e.reportError(new f(`Field "${n.name}.${s[0]}" must be non-null.`,{nodes:[t]}));return}if(l){let m=c.name.value;i[m].type.kind!==u.NON_NULL_TYPE&&e.reportError(new f(`Variable "${m}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}function wr(e){return{VariableDefinition(t){let n=K(e.getSchema(),t.type);if(n!==void 0&&!te(n)){let r=t.variable.name.value,i=V(t.type);e.reportError(new f(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}function Fr(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:o,defaultValue:s}of r){let a=i.name.value,c=t[a];if(c&&o){let p=e.getSchema(),l=K(p,c.type);if(l&&!Ua(p,l,c.defaultValue,o,s)){let m=h(l),d=h(o);e.reportError(new f(`Variable "$${a}" of type "${m}" used in position expecting type "${d}".`,{nodes:[c,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function Ua(e,t,n,r,i){if(_(r)&&!_(t)){if(!(n!=null&&n.kind!==u.NULL)&&!(i!==void 0))return!1;let a=r.ofType;return Ge(e,t,a)}return Ge(e,t,r)}var Ti=Object.freeze([rr]),kr=Object.freeze([zn,Sr,tr,gr,mn,Wn,wr,Tr,Hn,Dr,er,sr,dr,ir,Rr,or,ar,dn,yn,Zn,Tn,Lr,hr,Fr,fr,En,...Ti]),Uo=Object.freeze([nr,Ar,xr,br,_r,Ir,Or,mn,dn,yn,mr,ci,Tn,En,mi]);var Vr=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===u.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let o of i.selections)o.kind===u.FRAGMENT_SPREAD?n.push(o):o.selectionSet&&r.push(o.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],o;for(;o=i.pop();)for(let s of this.getFragmentSpreads(o)){let a=s.name.value;if(r[a]!==!0){r[a]=!0;let c=this.getFragment(a);c&&(n.push(c),i.push(c.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}},$r=class extends Vr{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}},Qt=class extends Vr{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new ut(this._schema);Ue(t,Mt(i,{VariableDefinition:()=>!1,Variable(o){r.push({node:o,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}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()}};function Cr(e,t,n=kr,r,i=new ut(e)){var o;let s=(o=r?.maxErrors)!==null&&o!==void 0?o:100;t||S(!1,"Must provide document."),Ut(e);let a=Object.freeze({}),c=[],p=new Qt(e,t,i,m=>{if(c.length>=s)throw c.push(new f("Too many validation errors, error limit reached. Validation aborted.")),a;c.push(m)}),l=Xt(n.map(m=>m(p)));try{Ue(t,Mt(i,l))}catch(m){if(m!==a)throw m}return c}function Mo(e,t,n=Uo){let r=[],i=new $r(e,t,s=>{r.push(s)}),o=n.map(s=>s(i));return Ue(e,Xt(o)),r}function jo(e){let t=Mo(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
54
-
55
- `))}function Po(e,t){let n=Mo(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(`
56
-
57
- `))}function Go(e){let t;return function(r,i,o){t===void 0&&(t=new WeakMap);let s=t.get(r);s===void 0&&(s=new WeakMap,t.set(r,s));let a=s.get(i);a===void 0&&(a=new WeakMap,s.set(i,a));let c=a.get(o);return c===void 0&&(c=e(r,i,o),a.set(o,c)),c}}function yi(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}function Qo(e,t,n){let r=n;for(let i of e)r=le(r)?r.then(o=>t(o,i)):t(r,i);return r}function Bo(e){return e instanceof Error?e:new Ei(e)}var Ei=class extends Error{constructor(t){super("Unexpected error value: "+h(t)),this.name="NonErrorThrown",this.thrownValue=t}};function ze(e,t,n){var r;let i=Bo(e);return Ma(i)?i:new f(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function Ma(e){return Array.isArray(e.path)}var ja=Go((e,t,n)=>Co(e.schema,e.fragments,e.variableValues,t,n));function gt(e){arguments.length<2||S(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;Ni(t,n,r);let o=gi(e);if(!("schema"in o))return{errors:o};try{let{operation:s}=o,a=Pa(o,s,i);return le(a)?a.then(c=>Ur(c,o.errors),c=>(o.errors.push(c),Ur(null,o.errors))):Ur(a,o.errors)}catch(s){return o.errors.push(s),Ur(null,o.errors)}}function Gr(e){let t=gt(e);if(le(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Ur(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function Ni(e,t,n){t||S(!1,"Must provide document."),Ut(e),n==null||H(n)||S(!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.")}function gi(e){var t,n;let{schema:r,document:i,rootValue:o,contextValue:s,variableValues:a,operationName:c,fieldResolver:p,typeResolver:l,subscribeFieldResolver:m}=e,d,E=Object.create(null);for(let U of i.definitions)switch(U.kind){case u.OPERATION_DEFINITION:if(c==null){if(d!==void 0)return[new f("Must provide operation name if query contains multiple operations.")];d=U}else((t=U.name)===null||t===void 0?void 0:t.value)===c&&(d=U);break;case u.FRAGMENT_DEFINITION:E[U.name.value]=U;break;default:}if(!d)return c!=null?[new f(`Unknown operation named "${c}".`)]:[new f("Must provide an operation.")];let N=(n=d.variableDefinitions)!==null&&n!==void 0?n:[],k=vr(r,N,a??{},{maxErrors:50});return k.errors?k.errors:{schema:r,fragments:E,rootValue:o,contextValue:s,operation:d,variableValues:k.coerced,fieldResolver:p??Pr,typeResolver:l??Oi,subscribeFieldResolver:m??Pr,errors:[]}}function Pa(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new f(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=Pt(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case Q.QUERY:return Mr(e,r,n,o,i);case Q.MUTATION:return Ga(e,r,n,o,i);case Q.SUBSCRIPTION:return Mr(e,r,n,o,i)}}function Ga(e,t,n,r,i){return Qo(i.entries(),(o,[s,a])=>{let c=Ke(r,s,t.name),p=Jo(e,t,n,a,c);return p===void 0?o:le(p)?p.then(l=>(o[s]=l,o)):(o[s]=p,o)},Object.create(null))}function Mr(e,t,n,r,i){let o=Object.create(null),s=!1;try{for(let[a,c]of i.entries()){let p=Ke(r,a,t.name),l=Jo(e,t,n,c,p);l!==void 0&&(o[a]=l,le(l)&&(s=!0))}}catch(a){if(s)return yi(o).finally(()=>{throw a});throw a}return s?yi(o):o}function Jo(e,t,n,r,i){var o;let s=bi(e.schema,t,r[0]);if(!s)return;let a=s.type,c=(o=s.resolve)!==null&&o!==void 0?o:e.fieldResolver,p=Ii(e,s,r,t,i);try{let l=vt(s,r[0],e.variableValues),m=e.contextValue,d=c(n,l,m,p),E;return le(d)?E=d.then(N=>vn(e,a,r,p,i,N)):E=vn(e,a,r,p,i,d),le(E)?E.then(void 0,N=>{let k=ze(N,r,ie(i));return jr(k,a,e)}):E}catch(l){let m=ze(l,r,ie(i));return jr(m,a,e)}}function Ii(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function jr(e,t,n){if(_(t))throw e;return n.errors.push(e),null}function vn(e,t,n,r,i,o){if(o instanceof Error)throw o;if(_(t)){let s=vn(e,t.ofType,n,r,i,o);if(s===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return s}if(o==null)return null;if(F(t))return Qa(e,t,n,r,i,o);if(oe(t))return Ba(t,o);if(he(t))return qa(e,t,n,r,i,o);if(x(t))return vi(e,t,n,r,i,o);$(!1,"Cannot complete value of unexpected output type: "+h(t))}function Qa(e,t,n,r,i,o){if(!kt(o))throw new f(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let s=t.ofType,a=!1,c=Array.from(o,(p,l)=>{let m=Ke(i,l,void 0);try{let d;return le(p)?d=p.then(E=>vn(e,s,n,r,m,E)):d=vn(e,s,n,r,m,p),le(d)?(a=!0,d.then(void 0,E=>{let N=ze(E,n,ie(m));return jr(N,s,e)})):d}catch(d){let E=ze(d,n,ie(m));return jr(E,s,e)}});return a?Promise.all(c):c}function Ba(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${h(e)}.serialize(${h(t)})\` to return non-nullable value, returned: ${h(n)}`);return n}function qa(e,t,n,r,i,o){var s;let a=(s=t.resolveType)!==null&&s!==void 0?s:e.typeResolver,c=e.contextValue,p=a(o,c,r,t);return le(p)?p.then(l=>vi(e,qo(l,e,t,n,r,o),n,r,i,o)):vi(e,qo(p,e,t,n,r,o),n,r,i,o)}function qo(e,t,n,r,i,o){if(e==null)throw new f(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(x(e))throw new f("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new f(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${h(o)}, received "${h(e)}".`);let s=t.schema.getType(e);if(s==null)throw new f(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!x(s))throw new f(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,s))throw new f(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,{nodes:r});return s}function vi(e,t,n,r,i,o){let s=ja(e,t,n);if(t.isTypeOf){let a=t.isTypeOf(o,e.contextValue,r);if(le(a))return a.then(c=>{if(!c)throw Yo(t,o,n);return Mr(e,t,o,i,s)});if(!a)throw Yo(t,o,n)}return Mr(e,t,o,i,s)}function Yo(e,t,n){return new f(`Expected value of type "${e.name}" but got: ${h(t)}.`,{nodes:n})}var Oi=function(e,t,n,r){if(H(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),o=[];for(let s=0;s<i.length;s++){let a=i[s];if(a.isTypeOf){let c=a.isTypeOf(e,t,n);if(le(c))o[s]=c;else if(c)return a.name}}if(o.length)return Promise.all(o).then(s=>{for(let a=0;a<s.length;a++)if(s[a])return i[a].name})},Pr=function(e,t,n,r){if(H(e)||typeof e=="function"){let i=e[r.fieldName];return typeof i=="function"?e[r.fieldName](t,n,r):i}};function bi(e,t,n){let r=n.name.value;return r===ot.name&&e.getQueryType()===t?ot:r===st.name&&e.getQueryType()===t?st:r===at.name?at:t.getFields()[r]}function Ya(e){return new Promise(t=>t(Ko(e)))}function Ja(e){let t=Ko(e);if(le(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Ko(e){arguments.length<2||S(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:n,rootValue:r,contextValue:i,variableValues:o,operationName:s,fieldResolver:a,typeResolver:c}=e,p=cn(t);if(p.length>0)return{errors:p};let l;try{l=et(n)}catch(d){return{errors:[d]}}let m=Cr(t,l);return m.length>0?{errors:m}:gt({schema:t,document:l,rootValue:r,contextValue:i,variableValues:o,operationName:s,fieldResolver:a,typeResolver:c})}function _i(e){return typeof e?.[Symbol.asyncIterator]=="function"}function Xo(e,t){let n=e[Symbol.asyncIterator]();async function r(i){if(i.done)return i;try{return{value:await t(i.value),done:!1}}catch(o){if(typeof n.return=="function")try{await n.return()}catch{}throw o}}return{async next(){return r(await n.next())},async return(){return typeof n.return=="function"?r(await n.return()):{value:void 0,done:!0}},async throw(i){if(typeof n.throw=="function")return r(await n.throw(i));throw i},[Symbol.asyncIterator](){return this}}}async function zo(e){arguments.length<2||S(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await Di(e);return _i(t)?Xo(t,r=>gt({...e,rootValue:r})):t}function Ka(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]}}async function Di(...e){let t=Ka(e),{schema:n,document:r,variableValues:i}=t;Ni(n,r,i);let o=gi(t);if(!("schema"in o))return{errors:o};try{let s=await Xa(o);if(!_i(s))throw new Error(`Subscription field must return Async Iterable. Received: ${h(s)}.`);return s}catch(s){if(s instanceof f)return{errors:[s]};throw s}}async function Xa(e){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,s=t.getSubscriptionType();if(s==null)throw new f("Schema is not configured to execute subscription operation.",{nodes:r});let a=Pt(t,n,i,s,r.selectionSet),[c,p]=[...a.entries()][0],l=bi(t,s,p[0]);if(!l){let N=p[0].name.value;throw new f(`The subscription field "${N}" is not defined.`,{nodes:p})}let m=Ke(void 0,c,s.name),d=Ii(e,l,p,s,m);try{var E;let N=vt(l,p[0],i),k=e.contextValue,z=await((E=l.subscribe)!==null&&E!==void 0?E:e.subscribeFieldResolver)(o,N,k,d);if(z instanceof Error)throw z;return z}catch(N){throw ze(N,p,ie(m))}}function Ho(e){return{Field(t){let n=e.getFieldDef(),r=n?.deprecationReason;if(n&&r!=null){let i=e.getParentType();i!=null||$(!1),e.reportError(new f(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=n?.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new f(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let o=e.getParentType(),s=e.getFieldDef();o!=null&&s!=null||$(!1),e.reportError(new f(`Field "${o.name}.${s.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=J(e.getParentInputType());if(w(n)){let r=n.getFields()[t.name.value],i=r?.deprecationReason;i!=null&&e.reportError(new f(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=n?.deprecationReason;if(n&&r!=null){let i=J(e.getInputType());i!=null||$(!1),e.reportError(new f(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function Wo(e){return{Field(t){let n=J(e.getType());n&&_e(n)&&e.reportError(new f(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}function Qr(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function s(c){return t.inputValueDeprecation?c:""}let a=t.oneOf?"isOneOf":"";return`
58
- query IntrospectionQuery {
59
- __schema {
60
- ${o}
61
- queryType { name kind }
62
- mutationType { name kind }
63
- subscriptionType { name kind }
64
- types {
65
- ...FullType
66
- }
67
- directives {
68
- name
69
- ${n}
70
- ${i}
71
- locations
72
- args${s("(includeDeprecated: true)")} {
73
- ...InputValue
74
- }
75
- }
76
- }
77
- }
78
-
79
- fragment FullType on __Type {
80
- kind
81
- name
82
- ${n}
83
- ${r}
84
- ${a}
85
- fields(includeDeprecated: true) {
86
- name
87
- ${n}
88
- args${s("(includeDeprecated: true)")} {
89
- ...InputValue
90
- }
91
- type {
92
- ...TypeRef
93
- }
94
- isDeprecated
95
- deprecationReason
96
- }
97
- inputFields${s("(includeDeprecated: true)")} {
98
- ...InputValue
99
- }
100
- interfaces {
101
- ...TypeRef
102
- }
103
- enumValues(includeDeprecated: true) {
104
- name
105
- ${n}
106
- isDeprecated
107
- deprecationReason
108
- }
109
- possibleTypes {
110
- ...TypeRef
111
- }
112
- }
113
-
114
- fragment InputValue on __InputValue {
115
- name
116
- ${n}
117
- type { ...TypeRef }
118
- defaultValue
119
- ${s("isDeprecated")}
120
- ${s("deprecationReason")}
121
- }
122
-
123
- fragment TypeRef on __Type {
124
- kind
125
- name
126
- ofType {
127
- kind
128
- name
129
- ofType {
130
- kind
131
- name
132
- ofType {
133
- kind
134
- name
135
- ofType {
136
- kind
137
- name
138
- ofType {
139
- kind
140
- name
141
- ofType {
142
- kind
143
- name
144
- ofType {
145
- kind
146
- name
147
- ofType {
148
- kind
149
- name
150
- ofType {
151
- kind
152
- name
153
- }
154
- }
155
- }
156
- }
157
- }
158
- }
159
- }
160
- }
161
- }
162
- }
163
- `}function Zo(e,t){let n=null;for(let i of e.definitions)if(i.kind===u.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}function es(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new f("Schema does not define the required query root type.",{nodes:t});return n}if(t.operation==="mutation"){let n=e.getMutationType();if(!n)throw new f("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new f("Schema is not configured for subscriptions.",{nodes:t});return n}throw new f("Can only have query, mutation and subscription operations.",{nodes:t})}function ts(e,t){let n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},r=et(Qr(n)),i=Gr({schema:e,document:r});return!i.errors&&i.data||$(!1),i.data}function ns(e,t){H(e)&&H(e.__schema)||S(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${h(e)}.`);let n=e.__schema,r=Se(n.types,v=>v.name,v=>d(v));for(let v of[...Ye,...Je])r[v.name]&&(r[v.name]=v);let i=n.queryType?l(n.queryType):null,o=n.mutationType?l(n.mutationType):null,s=n.subscriptionType?l(n.subscriptionType):null,a=n.directives?n.directives.map(Yr):[];return new De({description:n.description,query:i,mutation:o,subscription:s,types:Object.values(r),directives:a,assumeValid:t?.assumeValid});function c(v){if(v.kind===j.LIST){let R=v.ofType;if(!R)throw new Error("Decorated type deeper than introspection query.");return new B(c(R))}if(v.kind===j.NON_NULL){let R=v.ofType;if(!R)throw new Error("Decorated type deeper than introspection query.");let Oe=c(R);return new A(Pn(Oe))}return p(v)}function p(v){let R=v.name;if(!R)throw new Error(`Unknown type reference: ${h(v)}.`);let Oe=r[R];if(!Oe)throw new Error(`Invalid or incomplete schema, unknown type: ${R}. Ensure that a full introspection query is used in order to build a client schema.`);return Oe}function l(v){return Un(p(v))}function m(v){return Mn(p(v))}function d(v){if(v!=null&&v.name!=null&&v.kind!=null)switch(v.kind){case j.SCALAR:return E(v);case j.OBJECT:return k(v);case j.INTERFACE:return U(v);case j.UNION:return z(v);case j.ENUM:return Qe(v);case j.INPUT_OBJECT:return se(v)}let R=h(v);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${R}.`)}function E(v){return new me({name:v.name,description:v.description,specifiedByURL:v.specifiedByURL})}function N(v){if(v.interfaces===null&&v.kind===j.INTERFACE)return[];if(!v.interfaces){let R=h(v);throw new Error(`Introspection result missing interfaces: ${R}.`)}return v.interfaces.map(m)}function k(v){return new re({name:v.name,description:v.description,interfaces:()=>N(v),fields:()=>pe(v)})}function U(v){return new Ae({name:v.name,description:v.description,interfaces:()=>N(v),fields:()=>pe(v)})}function z(v){if(!v.possibleTypes){let R=h(v);throw new Error(`Introspection result missing possibleTypes: ${R}.`)}return new xe({name:v.name,description:v.description,types:()=>v.possibleTypes.map(l)})}function Qe(v){if(!v.enumValues){let R=h(v);throw new Error(`Introspection result missing enumValues: ${R}.`)}return new ve({name:v.name,description:v.description,values:Se(v.enumValues,R=>R.name,R=>({description:R.description,deprecationReason:R.deprecationReason}))})}function se(v){if(!v.inputFields){let R=h(v);throw new Error(`Introspection result missing inputFields: ${R}.`)}return new Re({name:v.name,description:v.description,fields:()=>We(v.inputFields),isOneOf:v.isOneOf})}function pe(v){if(!v.fields)throw new Error(`Introspection result missing fields: ${h(v)}.`);return Se(v.fields,R=>R.name,ct)}function ct(v){let R=c(v.type);if(!Le(R)){let Oe=h(R);throw new Error(`Introspection must provide output type for fields, but received: ${Oe}.`)}if(!v.args){let Oe=h(v);throw new Error(`Introspection result missing field args: ${Oe}.`)}return{description:v.description,deprecationReason:v.deprecationReason,type:R,args:We(v.args)}}function We(v){return Se(v,R=>R.name,It)}function It(v){let R=c(v.type);if(!te(R)){let Ot=h(R);throw new Error(`Introspection must provide input type for arguments, but received: ${Ot}.`)}let Oe=v.defaultValue!=null?Ie(Fn(v.defaultValue),R):void 0;return{description:v.description,type:R,defaultValue:Oe,deprecationReason:v.deprecationReason}}function Yr(v){if(!v.args){let R=h(v);throw new Error(`Introspection result missing directive args: ${R}.`)}if(!v.locations){let R=h(v);throw new Error(`Introspection result missing directive locations: ${R}.`)}return new ce({name:v.name,description:v.description,isRepeatable:v.isRepeatable,locations:v.locations.slice(),args:We(v.args)})}}function os(e,t,n){Ct(e),t!=null&&t.kind===u.DOCUMENT||S(!1,"Must provide valid Document AST."),n?.assumeValid!==!0&&n?.assumeValidSDL!==!0&&Po(t,e);let r=e.toConfig(),i=Si(r,t,n);return r===i?e:new De(i)}function Si(e,t,n){var r,i,o,s;let a=[],c=Object.create(null),p=[],l,m=[];for(let y of t.definitions)if(y.kind===u.SCHEMA_DEFINITION)l=y;else if(y.kind===u.SCHEMA_EXTENSION)m.push(y);else if(Pe(y))a.push(y);else if(Et(y)){let O=y.name.value,g=c[O];c[O]=g?g.concat([y]):[y]}else y.kind===u.DIRECTIVE_DEFINITION&&p.push(y);if(Object.keys(c).length===0&&a.length===0&&p.length===0&&m.length===0&&l==null)return e;let d=Object.create(null);for(let y of e.types)d[y.name]=Qe(y);for(let y of a){var E;let O=y.name.value;d[O]=(E=rs[O])!==null&&E!==void 0?E:xs(y)}let N={query:e.query&&U(e.query),mutation:e.mutation&&U(e.mutation),subscription:e.subscription&&U(e.subscription),...l&&Oe([l]),...Oe(m)};return{description:(r=l)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value,...N,types:Object.values(d),directives:[...e.directives.map(z),...p.map(As)],extensions:Object.create(null),astNode:(o=l)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(m),assumeValid:(s=n?.assumeValid)!==null&&s!==void 0?s:!1};function k(y){return F(y)?new B(k(y.ofType)):_(y)?new A(k(y.ofType)):U(y)}function U(y){return d[y.name]}function z(y){let O=y.toConfig();return new ce({...O,args:Ce(O.args,R)})}function Qe(y){if(_e(y)||it(y))return y;if(ee(y))return ct(y);if(x(y))return We(y);if(L(y))return It(y);if(P(y))return Yr(y);if(M(y))return pe(y);if(w(y))return se(y);$(!1,"Unexpected type: "+h(y))}function se(y){var O;let g=y.toConfig(),b=(O=c[g.name])!==null&&O!==void 0?O:[];return new Re({...g,fields:()=>({...Ce(g.fields,G=>({...G,type:k(G.type)})),...$i(b)}),extensionASTNodes:g.extensionASTNodes.concat(b)})}function pe(y){var O;let g=y.toConfig(),b=(O=c[y.name])!==null&&O!==void 0?O:[];return new ve({...g,values:{...g.values,...Ci(b)},extensionASTNodes:g.extensionASTNodes.concat(b)})}function ct(y){var O;let g=y.toConfig(),b=(O=c[g.name])!==null&&O!==void 0?O:[],G=g.specifiedByURL;for(let Y of b){var ne;G=(ne=is(Y))!==null&&ne!==void 0?ne:G}return new me({...g,specifiedByURL:G,extensionASTNodes:g.extensionASTNodes.concat(b)})}function We(y){var O;let g=y.toConfig(),b=(O=c[g.name])!==null&&O!==void 0?O:[];return new re({...g,interfaces:()=>[...y.getInterfaces().map(U),...On(b)],fields:()=>({...Ce(g.fields,v),...In(b)}),extensionASTNodes:g.extensionASTNodes.concat(b)})}function It(y){var O;let g=y.toConfig(),b=(O=c[g.name])!==null&&O!==void 0?O:[];return new Ae({...g,interfaces:()=>[...y.getInterfaces().map(U),...On(b)],fields:()=>({...Ce(g.fields,v),...In(b)}),extensionASTNodes:g.extensionASTNodes.concat(b)})}function Yr(y){var O;let g=y.toConfig(),b=(O=c[g.name])!==null&&O!==void 0?O:[];return new xe({...g,types:()=>[...y.getTypes().map(U),...Ui(b)],extensionASTNodes:g.extensionASTNodes.concat(b)})}function v(y){return{...y,type:k(y.type),args:y.args&&Ce(y.args,R)}}function R(y){return{...y,type:k(y.type)}}function Oe(y){let O={};for(let b of y){var g;let G=(g=b.operationTypes)!==null&&g!==void 0?g:[];for(let ne of G)O[ne.operation]=Ot(ne.type)}return O}function Ot(y){var O;let g=y.name.value,b=(O=rs[g])!==null&&O!==void 0?O:d[g];if(b===void 0)throw new Error(`Unknown type: "${g}".`);return b}function Bt(y){return y.kind===u.LIST_TYPE?new B(Bt(y.type)):y.kind===u.NON_NULL_TYPE?new A(Bt(y.type)):Ot(y)}function As(y){var O;return new ce({name:y.name.value,description:(O=y.description)===null||O===void 0?void 0:O.value,locations:y.locations.map(({value:g})=>g),isRepeatable:y.repeatable,args:Vi(y.arguments),astNode:y})}function In(y){let O=Object.create(null);for(let G of y){var g;let ne=(g=G.fields)!==null&&g!==void 0?g:[];for(let Y of ne){var b;O[Y.name.value]={type:Bt(Y.type),description:(b=Y.description)===null||b===void 0?void 0:b.value,args:Vi(Y.arguments),deprecationReason:Br(Y),astNode:Y}}}return O}function Vi(y){let O=y??[],g=Object.create(null);for(let G of O){var b;let ne=Bt(G.type);g[G.name.value]={type:ne,description:(b=G.description)===null||b===void 0?void 0:b.value,defaultValue:Ie(G.defaultValue,ne),deprecationReason:Br(G),astNode:G}}return g}function $i(y){let O=Object.create(null);for(let G of y){var g;let ne=(g=G.fields)!==null&&g!==void 0?g:[];for(let Y of ne){var b;let bt=Bt(Y.type);O[Y.name.value]={type:bt,description:(b=Y.description)===null||b===void 0?void 0:b.value,defaultValue:Ie(Y.defaultValue,bt),deprecationReason:Br(Y),astNode:Y}}}return O}function Ci(y){let O=Object.create(null);for(let G of y){var g;let ne=(g=G.values)!==null&&g!==void 0?g:[];for(let Y of ne){var b;O[Y.name.value]={description:(b=Y.description)===null||b===void 0?void 0:b.value,deprecationReason:Br(Y),astNode:Y}}}return O}function On(y){return y.flatMap(O=>{var g,b;return(g=(b=O.interfaces)===null||b===void 0?void 0:b.map(Ot))!==null&&g!==void 0?g:[]})}function Ui(y){return y.flatMap(O=>{var g,b;return(g=(b=O.types)===null||b===void 0?void 0:b.map(Ot))!==null&&g!==void 0?g:[]})}function xs(y){var O;let g=y.name.value,b=(O=c[g])!==null&&O!==void 0?O:[];switch(y.kind){case u.OBJECT_TYPE_DEFINITION:{var G;let $e=[y,...b];return new re({name:g,description:(G=y.description)===null||G===void 0?void 0:G.value,interfaces:()=>On($e),fields:()=>In($e),astNode:y,extensionASTNodes:b})}case u.INTERFACE_TYPE_DEFINITION:{var ne;let $e=[y,...b];return new Ae({name:g,description:(ne=y.description)===null||ne===void 0?void 0:ne.value,interfaces:()=>On($e),fields:()=>In($e),astNode:y,extensionASTNodes:b})}case u.ENUM_TYPE_DEFINITION:{var Y;let $e=[y,...b];return new ve({name:g,description:(Y=y.description)===null||Y===void 0?void 0:Y.value,values:Ci($e),astNode:y,extensionASTNodes:b})}case u.UNION_TYPE_DEFINITION:{var bt;let $e=[y,...b];return new xe({name:g,description:(bt=y.description)===null||bt===void 0?void 0:bt.value,types:()=>Ui($e),astNode:y,extensionASTNodes:b})}case u.SCALAR_TYPE_DEFINITION:{var Jr;return new me({name:g,description:(Jr=y.description)===null||Jr===void 0?void 0:Jr.value,specifiedByURL:is(y),astNode:y,extensionASTNodes:b})}case u.INPUT_OBJECT_TYPE_DEFINITION:{var Kr;let $e=[y,...b];return new Re({name:g,description:(Kr=y.description)===null||Kr===void 0?void 0:Kr.value,fields:()=>$i($e),astNode:y,extensionASTNodes:b,isOneOf:za(y)})}}}}var rs=de([...Ye,...Je],e=>e.name);function Br(e){let t=Xe(Tt,e);return t?.reason}function is(e){let t=Xe(on,e);return t?.url}function za(e){return!!Xe(sn,e)}function Ai(e,t){e!=null&&e.kind===u.DOCUMENT||S(!1,"Must provide valid Document AST."),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&jo(e);let r=Si({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(r.astNode==null)for(let o of r.types)switch(o.name){case"Query":r.query=o;break;case"Mutation":r.mutation=o;break;case"Subscription":r.subscription=o;break}let i=[...r.directives,...Ne.filter(o=>r.directives.every(s=>s.name!==o.name))];return new De({...r,directives:i})}function ss(e,t){let n=et(e,{noLocation:t?.noLocation,allowLegacyFragmentVariables:t?.allowLegacyFragmentVariables});return Ai(n,{assumeValidSDL:t?.assumeValidSDL,assumeValid:t?.assumeValid})}function as(e){let t=e.toConfig(),n=Se(xi(t.types),d=>d.name,m);return new De({...t,types:Object.values(n),directives:xi(t.directives).map(s),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function r(d){return F(d)?new B(r(d.ofType)):_(d)?new A(r(d.ofType)):i(d)}function i(d){return n[d.name]}function o(d){return d&&i(d)}function s(d){let E=d.toConfig();return new ce({...E,locations:us(E.locations,N=>N),args:a(E.args)})}function a(d){return qr(d,E=>({...E,type:r(E.type)}))}function c(d){return qr(d,E=>({...E,type:r(E.type),args:E.args&&a(E.args)}))}function p(d){return qr(d,E=>({...E,type:r(E.type)}))}function l(d){return xi(d).map(i)}function m(d){if(ee(d)||_e(d))return d;if(x(d)){let E=d.toConfig();return new re({...E,interfaces:()=>l(E.interfaces),fields:()=>c(E.fields)})}if(L(d)){let E=d.toConfig();return new Ae({...E,interfaces:()=>l(E.interfaces),fields:()=>c(E.fields)})}if(P(d)){let E=d.toConfig();return new xe({...E,types:()=>l(E.types)})}if(M(d)){let E=d.toConfig();return new ve({...E,values:qr(E.values,N=>N)})}if(w(d)){let E=d.toConfig();return new Re({...E,fields:()=>p(E.fields)})}$(!1,"Unexpected type: "+h(d))}}function qr(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(qe))n[r]=t(e[r]);return n}function xi(e){return us(e,t=>t.name)}function us(e,t){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);return qe(i,o)})}function cs(e){return ls(e,t=>!an(t),Ha)}function ps(e){return ls(e,an,_e)}function Ha(e){return!it(e)&&!_e(e)}function ls(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[Wa(e),...r.map(o=>su(o)),...i.map(o=>Li(o))].filter(Boolean).join(`
164
-
165
- `)}function Wa(e){if(e.description==null&&Za(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),ke(e)+`schema {
166
- ${t.join(`
167
- `)}
168
- }`}function Za(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let r=e.getSubscriptionType();return!(r&&r.name!=="Subscription")}function Li(e){if(ee(e))return eu(e);if(x(e))return tu(e);if(L(e))return nu(e);if(P(e))return ru(e);if(M(e))return iu(e);if(w(e))return ou(e);$(!1,"Unexpected type: "+h(e))}function eu(e){return ke(e)+`scalar ${e.name}`+au(e)}function fs(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function tu(e){return ke(e)+`type ${e.name}`+fs(e)+ds(e)}function nu(e){return ke(e)+`interface ${e.name}`+fs(e)+ds(e)}function ru(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return ke(e)+"union "+e.name+n}function iu(e){let t=e.getValues().map((n,r)=>ke(n," ",!r)+" "+n.name+Fi(n.deprecationReason));return ke(e)+`enum ${e.name}`+wi(t)}function ou(e){let t=Object.values(e.getFields()).map((n,r)=>ke(n," ",!r)+" "+Ri(n));return ke(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+wi(t)}function ds(e){let t=Object.values(e.getFields()).map((n,r)=>ke(n," ",!r)+" "+n.name+ms(n.args," ")+": "+String(n.type)+Fi(n.deprecationReason));return wi(t)}function wi(e){return e.length!==0?` {
169
- `+e.join(`
170
- `)+`
171
- }`:""}function ms(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(Ri).join(", ")+")":`(
172
- `+e.map((n,r)=>ke(n," "+t,!r)+" "+t+Ri(n)).join(`
173
- `)+`
174
- `+t+")"}function Ri(e){let t=Fe(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${V(t)}`),n+Fi(e.deprecationReason)}function su(e){return ke(e)+"directive @"+e.name+ms(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Fi(e){return e==null?"":e!==rn?` @deprecated(reason: ${V({kind:u.STRING,value:e})})`:" @deprecated"}function au(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${V({kind:u.STRING,value:e.specifiedByURL})})`}function ke(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=V({kind:u.STRING,value:r,block:qi(r)});return(t&&!n?`
175
- `+t:t)+i.replace(/\n/g,`
176
- `+t)+`
177
- `}function hs(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:u.DOCUMENT,definitions:t}}function ys(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case u.OPERATION_DEFINITION:t.push(i);break;case u.FRAGMENT_DEFINITION:n[i.name.value]=Ts(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let o=new Set;for(let a of Ts(i.selectionSet))Es(o,n,a);let s=i.name?i.name.value:"";r[s]={kind:u.DOCUMENT,definitions:e.definitions.filter(a=>a===i||a.kind===u.FRAGMENT_DEFINITION&&o.has(a.name.value))}}return r}function Es(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)Es(e,t,i)}}function Ts(e){let t=[];return Ue(e,{FragmentSpread(n){t.push(n.name.value)}}),t}function vs(e){let t=Ln(e)?e:new Be(e),n=t.body,r=new Ze(t),i="",o=!1;for(;r.advance().kind!==T.EOF;){let s=r.token,a=s.kind,c=!An(s.kind);o&&(c||s.kind===T.SPREAD)&&(i+=" ");let p=n.slice(s.start,s.end);a===T.BLOCK_STRING?i+=Sn(s.value,{minimize:!0}):i+=p,o=c}return i}function Ns(e){let t=ki(e);if(t)throw t;return e}function ki(e){if(typeof e=="string"||S(!1,"Expected name to be a string."),e.startsWith("__"))return new f(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{ae(e)}catch(t){return t}}var X;(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"})(X||(X={}));var Ve;(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"})(Ve||(Ve={}));function _s(e,t){return Ss(e,t).filter(n=>n.type in X)}function Ds(e,t){return Ss(e,t).filter(n=>n.type in Ve)}function Ss(e,t){return[...cu(e,t),...uu(e,t)]}function uu(e,t){let n=[],r=He(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:X.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,o]of r.persisted){let s=He(i.args,o.args);for(let a of s.added)we(a)&&n.push({type:X.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${a.name} on directive ${i.name} was added.`});for(let a of s.removed)n.push({type:X.DIRECTIVE_ARG_REMOVED,description:`${a.name} was removed from ${i.name}.`});i.isRepeatable&&!o.isRepeatable&&n.push({type:X.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let a of i.locations)o.locations.includes(a)||n.push({type:X.DIRECTIVE_LOCATION_REMOVED,description:`${a} was removed from ${i.name}.`})}return n}function cu(e,t){let n=[],r=He(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:X.TYPE_REMOVED,description:it(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,o]of r.persisted)M(i)&&M(o)?n.push(...fu(i,o)):P(i)&&P(o)?n.push(...lu(i,o)):w(i)&&w(o)?n.push(...pu(i,o)):x(i)&&x(o)?n.push(...Is(i,o),...gs(i,o)):L(i)&&L(o)?n.push(...Is(i,o),...gs(i,o)):i.constructor!==o.constructor&&n.push({type:X.TYPE_CHANGED_KIND,description:`${i.name} changed from ${Os(i)} to ${Os(o)}.`});return n}function pu(e,t){let n=[],r=He(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)rt(i)?n.push({type:X.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:Ve.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of r.removed)n.push({type:X.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,o]of r.persisted)gn(i.type,o.type)||n.push({type:X.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function lu(e,t){let n=[],r=He(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:Ve.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:X.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function fu(e,t){let n=[],r=He(e.getValues(),t.getValues());for(let i of r.added)n.push({type:Ve.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:X.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function gs(e,t){let n=[],r=He(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:Ve.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:X.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function Is(e,t){let n=[],r=He(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:X.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,o]of r.persisted)n.push(...du(e,i,o)),Nn(i.type,o.type)||n.push({type:X.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function du(e,t,n){let r=[],i=He(t.args,n.args);for(let o of i.removed)r.push({type:X.ARG_REMOVED,description:`${e.name}.${t.name} arg ${o.name} was removed.`});for(let[o,s]of i.persisted)if(!gn(o.type,s.type))r.push({type:X.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${o.name} has changed type from ${String(o.type)} to ${String(s.type)}.`});else if(o.defaultValue!==void 0)if(s.defaultValue===void 0)r.push({type:Ve.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} defaultValue was removed.`});else{let c=bs(o.defaultValue,o.type),p=bs(s.defaultValue,s.type);c!==p&&r.push({type:Ve.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} has changed defaultValue from ${c} to ${p}.`})}for(let o of i.added)we(o)?r.push({type:X.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${t.name} was added.`}):r.push({type:Ve.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${t.name} was added.`});return r}function Nn(e,t){return F(e)?F(t)&&Nn(e.ofType,t.ofType)||_(t)&&Nn(e,t.ofType):_(e)?_(t)&&Nn(e.ofType,t.ofType):nt(t)&&e.name===t.name||_(t)&&Nn(e,t.ofType)}function gn(e,t){return F(e)?F(t)&&gn(e.ofType,t.ofType):_(e)?_(t)&&gn(e.ofType,t.ofType)||!_(t)&&gn(e.ofType,t):nt(t)&&e.name===t.name}function Os(e){if(ee(e))return"a Scalar type";if(x(e))return"an Object type";if(L(e))return"an Interface type";if(P(e))return"a Union type";if(M(e))return"an Enum type";if(w(e))return"an Input type";$(!1,"Unexpected type: "+h(e))}function bs(e,t){let n=Fe(e,t);return n!=null||$(!1),V(jt(n))}function He(e,t){let n=[],r=[],i=[],o=de(e,({name:a})=>a),s=de(t,({name:a})=>a);for(let a of e){let c=s[a.name];c===void 0?r.push(a):i.push([a,c])}for(let a of t)o[a.name]===void 0&&n.push(a);return{added:n,persisted:i,removed:r}}export{dt as BREAK,X as BreakingChangeType,rn as DEFAULT_DEPRECATION_REASON,Ve as DangerousChangeType,D as DirectiveLocation,zn as ExecutableDefinitionsRule,Hn as FieldsOnCorrectTypeRule,Wn as FragmentsOnCompositeTypesRule,Ht as GRAPHQL_MAX_INT,Wt as GRAPHQL_MIN_INT,ue as GraphQLBoolean,Tt as GraphQLDeprecatedDirective,ce as GraphQLDirective,ve as GraphQLEnumType,f as GraphQLError,ri as GraphQLFloat,Zt as GraphQLID,tn as GraphQLIncludeDirective,Re as GraphQLInputObjectType,ni as GraphQLInt,Ae as GraphQLInterfaceType,B as GraphQLList,A as GraphQLNonNull,re as GraphQLObjectType,sn as GraphQLOneOfDirective,me as GraphQLScalarType,De as GraphQLSchema,nn as GraphQLSkipDirective,on as GraphQLSpecifiedByDirective,q as GraphQLString,xe as GraphQLUnionType,u as Kind,Zn as KnownArgumentNamesRule,dn as KnownDirectivesRule,er as KnownFragmentNamesRule,mn as KnownTypeNamesRule,Ze as Lexer,_t as Location,tr as LoneAnonymousOperationRule,nr as LoneSchemaDefinitionRule,rr as MaxIntrospectionDepthRule,Ho as NoDeprecatedCustomRule,ir as NoFragmentCyclesRule,Wo as NoSchemaIntrospectionCustomRule,or as NoUndefinedVariablesRule,sr as NoUnusedFragmentsRule,ar as NoUnusedVariablesRule,Q as OperationTypeNode,fr as OverlappingFieldsCanBeMergedRule,dr as PossibleFragmentSpreadsRule,mr as PossibleTypeExtensionsRule,hr as ProvidedRequiredArgumentsRule,Tr as ScalarLeafsRule,ot as SchemaMetaFieldDef,gr as SingleFieldSubscriptionsRule,Be as Source,lt as Token,T as TokenKind,ut as TypeInfo,j as TypeKind,st as TypeMetaFieldDef,at as TypeNameMetaFieldDef,Ir as UniqueArgumentDefinitionNamesRule,Tn as UniqueArgumentNamesRule,Or as UniqueDirectiveNamesRule,yn as UniqueDirectivesPerLocationRule,br as UniqueEnumValueNamesRule,_r as UniqueFieldDefinitionNamesRule,Dr as UniqueFragmentNamesRule,En as UniqueInputFieldNamesRule,Sr as UniqueOperationNamesRule,Ar as UniqueOperationTypesRule,xr as UniqueTypeNamesRule,Rr as UniqueVariableNamesRule,Qt as ValidationContext,Lr as ValuesOfCorrectTypeRule,wr as VariablesAreInputTypesRule,Fr as VariablesInAllowedPositionRule,Bn as __Directive,qn as __DirectiveLocation,Jn as __EnumValue,Yn as __Field,$t as __InputValue,Vt as __Schema,be as __Type,Kn as __TypeKind,ho as assertAbstractType,mo as assertCompositeType,go as assertDirective,so as assertEnumType,$n as assertEnumValueName,ao as assertInputObjectType,po as assertInputType,Mn as assertInterfaceType,fo as assertLeafType,uo as assertListType,ae as assertName,yo as assertNamedType,co as assertNonNullType,Pn as assertNullableType,Un as assertObjectType,lo as assertOutputType,io as assertScalarType,Ct as assertSchema,ro as assertType,oo as assertUnionType,Ns as assertValidName,Ut as assertValidSchema,To as assertWrappingType,Fe as astFromValue,Ai as buildASTSchema,ns as buildClientSchema,ss as buildSchema,Er as coerceInputValue,hs as concatAST,Di as createSourceEventStream,Pr as defaultFieldResolver,Oi as defaultTypeResolver,zt as doTypesOverlap,gt as execute,Gr as executeSync,os as extendSchema,_s as findBreakingChanges,Ds as findDangerousChanges,Gi as formatError,vt as getArgumentValues,Xe as getDirectiveValues,tt as getEnterLeaveForKind,Qr as getIntrospectionQuery,pt as getLocation,J as getNamedType,wt as getNullableType,Zo as getOperationAST,es as getOperationRootType,vr as getVariableValues,eo as getVisitFn,Ya as graphql,Ja as graphqlSync,ts as introspectionFromSchema,Je as introspectionTypes,he as isAbstractType,ge as isCompositeType,Xn as isConstValueNode,Do as isDefinitionNode,ht as isDirective,M as isEnumType,Ft as isEqualType,pn as isExecutableDefinitionNode,w as isInputObjectType,te as isInputType,L as isInterfaceType,_e as isIntrospectionType,oe as isLeafType,F as isListType,nt as isNamedType,_ as isNonNullType,jn as isNullableType,x as isObjectType,Le as isOutputType,we as isRequiredArgument,rt as isRequiredInputField,ee as isScalarType,ii as isSchema,So as isSelectionNode,an as isSpecifiedDirective,it as isSpecifiedScalarType,mt as isType,Pe as isTypeDefinitionNode,Et as isTypeExtensionNode,Ao as isTypeNode,Ge as isTypeSubTypeOf,ln as isTypeSystemDefinitionNode,fn as isTypeSystemExtensionNode,P as isUnionType,ki as isValidNameError,ui as isValueNode,Lt as isWrappingType,as as lexicographicSortSchema,ze as locatedError,et as parse,Xi as parseConstValue,zi as parseType,Fn as parseValue,V as print,Pi as printError,ps as printIntrospectionSchema,bn as printLocation,cs as printSchema,qt as printSourceLocation,Li as printType,Ti as recommendedRules,Qn as resolveObjMapThunk,Gn as resolveReadonlyArrayThunk,ie as responsePathAsArray,ys as separateOperations,Ne as specifiedDirectives,kr as specifiedRules,Ye as specifiedScalarTypes,vs as stripIgnoredCharacters,zo as subscribe,W as syntaxError,K as typeFromAST,Cr as validate,cn as validateSchema,Ie as valueFromAST,xt as valueFromASTUntyped,Rs as version,Ls as versionInfo,Ue as visit,Xt as visitInParallel,Mt as visitWithTypeInfo};
Binary file
Binary file