cici 0.2.0 → 0.4.0

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 (399) hide show
  1. package/.next/BUILD_ID +1 -0
  2. package/.next/app-build-manifest.json +122 -0
  3. package/.next/app-path-routes-manifest.json +1 -0
  4. package/.next/build-manifest.json +32 -0
  5. package/.next/export-marker.json +1 -0
  6. package/.next/images-manifest.json +1 -0
  7. package/.next/next-minimal-server.js.nft.json +1 -0
  8. package/.next/next-server.js.nft.json +1 -0
  9. package/.next/package.json +1 -0
  10. package/.next/prerender-manifest.json +1 -0
  11. package/.next/react-loadable-manifest.json +1886 -0
  12. package/.next/required-server-files.json +1 -0
  13. package/.next/routes-manifest.json +1 -0
  14. package/.next/server/app/_not-found/page.js +1 -0
  15. package/.next/server/app/_not-found/page.js.nft.json +1 -0
  16. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  17. package/.next/server/app/api/asset/[...path]/route.js +1 -0
  18. package/.next/server/app/api/asset/[...path]/route.js.nft.json +1 -0
  19. package/.next/server/app/api/auth/[...nextauth]/route.js +1 -0
  20. package/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +1 -0
  21. package/.next/server/app/api/blog/[id]/highlights/[hid]/comments/[cid]/reactions/route.js +1 -0
  22. package/.next/server/app/api/blog/[id]/highlights/[hid]/comments/[cid]/reactions/route.js.nft.json +1 -0
  23. package/.next/server/app/api/blog/[id]/highlights/[hid]/comments/[cid]/route.js +1 -0
  24. package/.next/server/app/api/blog/[id]/highlights/[hid]/comments/[cid]/route.js.nft.json +1 -0
  25. package/.next/server/app/api/blog/[id]/highlights/[hid]/replies/route.js +1 -0
  26. package/.next/server/app/api/blog/[id]/highlights/[hid]/replies/route.js.nft.json +1 -0
  27. package/.next/server/app/api/blog/[id]/highlights/[hid]/resolve/route.js +1 -0
  28. package/.next/server/app/api/blog/[id]/highlights/[hid]/resolve/route.js.nft.json +1 -0
  29. package/.next/server/app/api/blog/[id]/highlights/[hid]/route.js +1 -0
  30. package/.next/server/app/api/blog/[id]/highlights/[hid]/route.js.nft.json +1 -0
  31. package/.next/server/app/api/blog/[id]/highlights/route.js +1 -0
  32. package/.next/server/app/api/blog/[id]/highlights/route.js.nft.json +1 -0
  33. package/.next/server/app/api/graphql/route.js +140 -0
  34. package/.next/server/app/api/graphql/route.js.nft.json +1 -0
  35. package/.next/server/app/api/mile/prompts/route.js +230 -0
  36. package/.next/server/app/api/mile/prompts/route.js.nft.json +1 -0
  37. package/.next/server/app/api/mile/prompts.body +1 -0
  38. package/.next/server/app/api/mile/prompts.meta +1 -0
  39. package/.next/server/app/api/upload/route.js +1 -0
  40. package/.next/server/app/api/upload/route.js.nft.json +1 -0
  41. package/.next/server/app/api/webhooks/notification/route.js +1 -0
  42. package/.next/server/app/api/webhooks/notification/route.js.nft.json +1 -0
  43. package/.next/server/app/atom.xml/route.js +34 -0
  44. package/.next/server/app/atom.xml/route.js.nft.json +1 -0
  45. package/.next/server/app/atom.xml.body +15 -0
  46. package/.next/server/app/atom.xml.meta +1 -0
  47. package/.next/server/app/blog/[id]/page.js +30 -0
  48. package/.next/server/app/blog/[id]/page.js.nft.json +1 -0
  49. package/.next/server/app/blog/[id]/page_client-reference-manifest.js +1 -0
  50. package/.next/server/app/blog/page.js +1 -0
  51. package/.next/server/app/blog/page.js.nft.json +1 -0
  52. package/.next/server/app/blog/page_client-reference-manifest.js +1 -0
  53. package/.next/server/app/editor/page.js +45 -0
  54. package/.next/server/app/editor/page.js.nft.json +1 -0
  55. package/.next/server/app/editor/page_client-reference-manifest.js +1 -0
  56. package/.next/server/app/favicon.ico/route.js +1 -0
  57. package/.next/server/app/favicon.ico/route.js.nft.json +1 -0
  58. package/.next/server/app/favicon.ico.body +0 -0
  59. package/.next/server/app/favicon.ico.meta +1 -0
  60. package/.next/server/app/login/page.js +1 -0
  61. package/.next/server/app/login/page.js.nft.json +1 -0
  62. package/.next/server/app/login/page_client-reference-manifest.js +1 -0
  63. package/.next/server/app/memos/page.js +26 -0
  64. package/.next/server/app/memos/page.js.nft.json +1 -0
  65. package/.next/server/app/memos/page_client-reference-manifest.js +1 -0
  66. package/.next/server/app/page.js +1 -0
  67. package/.next/server/app/page.js.nft.json +1 -0
  68. package/.next/server/app/page_client-reference-manifest.js +1 -0
  69. package/.next/server/app/robots.txt/route.js +1 -0
  70. package/.next/server/app/robots.txt/route.js.nft.json +1 -0
  71. package/.next/server/app/robots.txt.body +8 -0
  72. package/.next/server/app/robots.txt.meta +1 -0
  73. package/.next/server/app/rss.xml/route.js +18 -0
  74. package/.next/server/app/rss.xml/route.js.nft.json +1 -0
  75. package/.next/server/app/rss.xml.body +12 -0
  76. package/.next/server/app/rss.xml.meta +1 -0
  77. package/.next/server/app/sitemap.xml/route.js +76 -0
  78. package/.next/server/app/sitemap.xml/route.js.nft.json +1 -0
  79. package/.next/server/app/sitemap.xml.body +33 -0
  80. package/.next/server/app/sitemap.xml.meta +1 -0
  81. package/.next/server/app/unavailable/page.js +1 -0
  82. package/.next/server/app/unavailable/page.js.nft.json +1 -0
  83. package/.next/server/app/unavailable/page_client-reference-manifest.js +1 -0
  84. package/.next/server/app-paths-manifest.json +27 -0
  85. package/.next/server/chunks/1230.js +1 -0
  86. package/.next/server/chunks/1446.js +1 -0
  87. package/.next/server/chunks/1450.js +1 -0
  88. package/.next/server/chunks/1536.js +1 -0
  89. package/.next/server/chunks/1615.js +1 -0
  90. package/.next/server/chunks/1682.js +6 -0
  91. package/.next/server/chunks/179.js +14 -0
  92. package/.next/server/chunks/2448.js +34 -0
  93. package/.next/server/chunks/2481.js +1 -0
  94. package/.next/server/chunks/2518.js +12 -0
  95. package/.next/server/chunks/2581.js +1 -0
  96. package/.next/server/chunks/2878.js +63 -0
  97. package/.next/server/chunks/3125.js +1 -0
  98. package/.next/server/chunks/330.js +1 -0
  99. package/.next/server/chunks/3381.js +1 -0
  100. package/.next/server/chunks/3464.js +1 -0
  101. package/.next/server/chunks/3573.js +1 -0
  102. package/.next/server/chunks/3607.js +14 -0
  103. package/.next/server/chunks/3844.js +1 -0
  104. package/.next/server/chunks/4536.js +1 -0
  105. package/.next/server/chunks/4742.js +1 -0
  106. package/.next/server/chunks/4857.js +1 -0
  107. package/.next/server/chunks/6621.js +1 -0
  108. package/.next/server/chunks/7070.js +12 -0
  109. package/.next/server/chunks/719.js +1 -0
  110. package/.next/server/chunks/7667.js +1 -0
  111. package/.next/server/chunks/7674.js +1 -0
  112. package/.next/server/chunks/7937.js +1 -0
  113. package/.next/server/chunks/7990.js +1 -0
  114. package/.next/server/chunks/8038.js +1 -0
  115. package/.next/server/chunks/8195.js +1 -0
  116. package/.next/server/chunks/8198.js +1 -0
  117. package/.next/server/chunks/8224.js +1 -0
  118. package/.next/server/chunks/8398.js +1 -0
  119. package/.next/server/chunks/8948.js +2 -0
  120. package/.next/server/chunks/9600.js +1 -0
  121. package/.next/server/chunks/9627.js +1 -0
  122. package/.next/server/chunks/9715.js +1 -0
  123. package/.next/server/chunks/9772.js +2 -0
  124. package/.next/server/chunks/font-manifest.json +1 -0
  125. package/.next/server/font-manifest.json +1 -0
  126. package/.next/server/functions-config-manifest.json +1 -0
  127. package/.next/server/interception-route-rewrite-manifest.js +1 -0
  128. package/.next/server/middleware-build-manifest.js +1 -0
  129. package/.next/server/middleware-manifest.json +6 -0
  130. package/.next/server/middleware-react-loadable-manifest.js +1 -0
  131. package/.next/server/next-font-manifest.js +1 -0
  132. package/.next/server/next-font-manifest.json +1 -0
  133. package/.next/server/pages/500.html +1 -0
  134. package/.next/server/pages/_app.js +1 -0
  135. package/.next/server/pages/_app.js.nft.json +1 -0
  136. package/.next/server/pages/_document.js +1 -0
  137. package/.next/server/pages/_document.js.nft.json +1 -0
  138. package/.next/server/pages/_error.js +1 -0
  139. package/.next/server/pages/_error.js.nft.json +1 -0
  140. package/.next/server/pages-manifest.json +1 -0
  141. package/.next/server/server-reference-manifest.js +1 -0
  142. package/.next/server/server-reference-manifest.json +1 -0
  143. package/.next/server/webpack-runtime.js +1 -0
  144. package/.next/standalone/.next/BUILD_ID +1 -1
  145. package/.next/standalone/.next/app-build-manifest.json +20 -20
  146. package/.next/standalone/.next/app-path-routes-manifest.json +1 -1
  147. package/.next/standalone/.next/build-manifest.json +2 -2
  148. package/.next/standalone/.next/prerender-manifest.json +1 -1
  149. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  150. package/.next/standalone/.next/server/app/api/mile/prompts.body +1 -1
  151. package/.next/standalone/.next/server/app/atom.xml.body +1 -1
  152. package/.next/standalone/.next/server/app/blog/[id]/page_client-reference-manifest.js +1 -1
  153. package/.next/standalone/.next/server/app/blog/page_client-reference-manifest.js +1 -1
  154. package/.next/standalone/.next/server/app/editor/page_client-reference-manifest.js +1 -1
  155. package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
  156. package/.next/standalone/.next/server/app/memos/page_client-reference-manifest.js +1 -1
  157. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  158. package/.next/standalone/.next/server/app/rss.xml.body +1 -1
  159. package/.next/standalone/.next/server/app/sitemap.xml.body +5 -5
  160. package/.next/standalone/.next/server/app/unavailable/page_client-reference-manifest.js +1 -1
  161. package/.next/standalone/.next/server/app-paths-manifest.json +5 -5
  162. package/.next/standalone/.next/server/chunks/3844.js +1 -1
  163. package/.next/standalone/.next/server/chunks/9715.js +1 -1
  164. package/.next/standalone/.next/server/pages/500.html +1 -1
  165. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  166. package/.next/standalone/package.json +5 -4
  167. package/.next/static/H78KNQuyrLX6JpnJaQChP/_buildManifest.js +1 -0
  168. package/.next/static/H78KNQuyrLX6JpnJaQChP/_ssgManifest.js +1 -0
  169. package/.next/static/chunks/0e5ce63c-dc8fe6cd5df6dc6f.js +1 -0
  170. package/.next/static/chunks/0e762574-561b753e40bf5566.js +1 -0
  171. package/.next/static/chunks/117-70c87e31cd233c14.js +2 -0
  172. package/.next/static/chunks/152-16409649f7f42f9f.js +1 -0
  173. package/.next/static/chunks/153-f9c1aae3150e3029.js +1 -0
  174. package/.next/static/chunks/164-27f8b4187a29c395.js +1 -0
  175. package/.next/static/chunks/306-8d9c9a07b04a69f4.js +1 -0
  176. package/.next/static/chunks/343-ef3404804cc77cf3.js +1 -0
  177. package/.next/static/chunks/37-4aae6f4051a21b05.js +1 -0
  178. package/.next/static/chunks/479ba886-f76cebda33235b4d.js +1 -0
  179. package/.next/static/chunks/586-51f7e768b82803f6.js +1 -0
  180. package/.next/static/chunks/654-13e1845df8edb304.js +1 -0
  181. package/.next/static/chunks/767-2ec5d3ea9fe43cfa.js +1 -0
  182. package/.next/static/chunks/789-9810818d7be29598.js +1 -0
  183. package/.next/static/chunks/795d4814-090707ad3f792458.js +1 -0
  184. package/.next/static/chunks/878-b71984a1ef1b61e8.js +1 -0
  185. package/.next/static/chunks/8e1d74a4-f0365ca0a1823520.js +1 -0
  186. package/.next/static/chunks/961-29616c8a08e9f439.js +1 -0
  187. package/.next/static/chunks/972-774fbff93f73f32d.js +1 -0
  188. package/.next/static/chunks/app/_not-found/page-3061d7e79b77cf51.js +1 -0
  189. package/.next/static/chunks/app/blog/[id]/page-1fc779790ce384a8.js +1 -0
  190. package/.next/static/chunks/app/blog/page-096c29c6f69ebc33.js +1 -0
  191. package/.next/static/chunks/app/editor/page-f387899e39bc5e66.js +1 -0
  192. package/.next/static/chunks/app/layout-3439dc235234d73d.js +1 -0
  193. package/.next/static/chunks/app/login/page-6b91892f0e29c5e9.js +1 -0
  194. package/.next/static/chunks/app/memos/page-1b33cb7e1f301ba0.js +1 -0
  195. package/.next/static/chunks/app/page-f7dabeade6df80fd.js +1 -0
  196. package/.next/static/chunks/app/unavailable/page-c7774081778f08fc.js +1 -0
  197. package/.next/static/chunks/c916193b-16ee67ea0eb0c9df.js +1 -0
  198. package/.next/static/chunks/d3ac728e-709e52b22b85fd0a.js +1 -0
  199. package/.next/static/chunks/ee560e2c-0aeb447bc68f09f5.js +1 -0
  200. package/.next/static/chunks/fd9d1056-a4afdface6e53879.js +1 -0
  201. package/.next/static/chunks/framework-00a8ba1a63cfdc9e.js +1 -0
  202. package/.next/static/chunks/main-530e55a5659ae7e4.js +1 -0
  203. package/.next/static/chunks/main-app-838433dc18720d83.js +1 -0
  204. package/.next/static/chunks/pages/_app-15e2daefa259f0b5.js +1 -0
  205. package/.next/static/chunks/pages/_error-28b803cb2479b966.js +1 -0
  206. package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  207. package/.next/static/chunks/webpack-a3d722a538b58757.js +1 -0
  208. package/.next/static/css/3864b451a61e4546.css +1 -0
  209. package/.next/static/css/67e4cfd62ab3f75c.css +1 -0
  210. package/.next/static/css/bf9d0ede562bd061.css +3 -0
  211. package/.next/static/media/04b170fa1114a606-s.woff2 +0 -0
  212. package/.next/static/media/08e5276c49c9ea3c-s.woff2 +0 -0
  213. package/.next/static/media/095b3ef40b322df1-s.woff2 +0 -0
  214. package/.next/static/media/0d843c40cdb24da5-s.woff2 +0 -0
  215. package/.next/static/media/16198ffb9c9fdd71-s.woff2 +0 -0
  216. package/.next/static/media/185e1e5dfa43e25f-s.woff2 +0 -0
  217. package/.next/static/media/1cfb11966f8bf838-s.woff2 +0 -0
  218. package/.next/static/media/1f4ef3a7563c157c-s.woff2 +0 -0
  219. package/.next/static/media/207ad64b019bcdef-s.woff2 +0 -0
  220. package/.next/static/media/21f0145a081cb2c8-s.woff2 +0 -0
  221. package/.next/static/media/25169183b7610496-s.woff2 +0 -0
  222. package/.next/static/media/2c913da5dc1da2ce-s.woff2 +0 -0
  223. package/.next/static/media/2d7ca78015d280d1-s.woff2 +0 -0
  224. package/.next/static/media/32be0b7a9127e345-s.woff2 +0 -0
  225. package/.next/static/media/33a4c9c744d0f9cd-s.woff2 +0 -0
  226. package/.next/static/media/3579da1a17de9863-s.woff2 +0 -0
  227. package/.next/static/media/36524af73d313f3b-s.woff2 +0 -0
  228. package/.next/static/media/3683934951fcdfff-s.woff2 +0 -0
  229. package/.next/static/media/3a3a2937d60ce37f-s.woff2 +0 -0
  230. package/.next/static/media/3e2c1db9f0de322f-s.woff2 +0 -0
  231. package/.next/static/media/3f282b8fe3ef7004-s.woff2 +0 -0
  232. package/.next/static/media/4294bde93a0ebb03-s.woff2 +0 -0
  233. package/.next/static/media/4cb92749e68500bf-s.woff2 +0 -0
  234. package/.next/static/media/4d3ec3b19c6bf06c-s.woff2 +0 -0
  235. package/.next/static/media/4eaaaae34a570973-s.woff2 +0 -0
  236. package/.next/static/media/4f45b9473df2758b-s.woff2 +0 -0
  237. package/.next/static/media/59769944ee073575-s.woff2 +0 -0
  238. package/.next/static/media/5bca2cb7d28055ae-s.woff2 +0 -0
  239. package/.next/static/media/5d217fec32e2068e-s.woff2 +0 -0
  240. package/.next/static/media/5f46c2de3a30070d-s.woff2 +0 -0
  241. package/.next/static/media/651d2e07f2cec067-s.woff2 +0 -0
  242. package/.next/static/media/684008be259a59c6-s.woff2 +0 -0
  243. package/.next/static/media/6858bbe75ab53fba-s.woff2 +0 -0
  244. package/.next/static/media/6cbcf0df7f219406-s.woff2 +0 -0
  245. package/.next/static/media/6d92d05365182413-s.woff2 +0 -0
  246. package/.next/static/media/7470b994d8569922-s.woff2 +0 -0
  247. package/.next/static/media/74e7e1e3fdad08dd-s.woff2 +0 -0
  248. package/.next/static/media/77901e7a9559d10c-s.woff2 +0 -0
  249. package/.next/static/media/796fab757a0e6146-s.woff2 +0 -0
  250. package/.next/static/media/7a830ebca9fe9db7-s.woff2 +0 -0
  251. package/.next/static/media/7bef3958b14cb6e3-s.woff2 +0 -0
  252. package/.next/static/media/81eb003b78a42a7b-s.woff2 +0 -0
  253. package/.next/static/media/84057adca98c0827-s.woff2 +0 -0
  254. package/.next/static/media/84a87fc9f232641e-s.woff2 +0 -0
  255. package/.next/static/media/84efce35a48f395c-s.woff2 +0 -0
  256. package/.next/static/media/872bfc82854f88b2-s.woff2 +0 -0
  257. package/.next/static/media/878380e8db69cb31-s.woff2 +0 -0
  258. package/.next/static/media/89c333b5a8239870-s.woff2 +0 -0
  259. package/.next/static/media/8a2e82a5f6677757-s.woff2 +0 -0
  260. package/.next/static/media/8cb8df5532e281af-s.woff2 +0 -0
  261. package/.next/static/media/8efbe4984052b206-s.woff2 +0 -0
  262. package/.next/static/media/8f2ab7576a12de97-s.woff2 +0 -0
  263. package/.next/static/media/905b23b26fa2645b-s.woff2 +0 -0
  264. package/.next/static/media/91fb5c9b9b43e9ec-s.woff2 +0 -0
  265. package/.next/static/media/92079ce87aa6c00d-s.woff2 +0 -0
  266. package/.next/static/media/9d87bcf0c05a83d6-s.p.woff2 +0 -0
  267. package/.next/static/media/9e9c82ad03b7dfa5-s.woff2 +0 -0
  268. package/.next/static/media/KaTeX_AMS-Regular.1608a09b.woff +0 -0
  269. package/.next/static/media/KaTeX_AMS-Regular.4aafdb68.ttf +0 -0
  270. package/.next/static/media/KaTeX_AMS-Regular.a79f1c31.woff2 +0 -0
  271. package/.next/static/media/KaTeX_Caligraphic-Bold.b6770918.woff +0 -0
  272. package/.next/static/media/KaTeX_Caligraphic-Bold.cce5b8ec.ttf +0 -0
  273. package/.next/static/media/KaTeX_Caligraphic-Bold.ec17d132.woff2 +0 -0
  274. package/.next/static/media/KaTeX_Caligraphic-Regular.07ef19e7.ttf +0 -0
  275. package/.next/static/media/KaTeX_Caligraphic-Regular.55fac258.woff2 +0 -0
  276. package/.next/static/media/KaTeX_Caligraphic-Regular.dad44a7f.woff +0 -0
  277. package/.next/static/media/KaTeX_Fraktur-Bold.9f256b85.woff +0 -0
  278. package/.next/static/media/KaTeX_Fraktur-Bold.b18f59e1.ttf +0 -0
  279. package/.next/static/media/KaTeX_Fraktur-Bold.d42a5579.woff2 +0 -0
  280. package/.next/static/media/KaTeX_Fraktur-Regular.7c187121.woff +0 -0
  281. package/.next/static/media/KaTeX_Fraktur-Regular.d3c882a6.woff2 +0 -0
  282. package/.next/static/media/KaTeX_Fraktur-Regular.ed38e79f.ttf +0 -0
  283. package/.next/static/media/KaTeX_Main-Bold.b74a1a8b.ttf +0 -0
  284. package/.next/static/media/KaTeX_Main-Bold.c3fb5ac2.woff2 +0 -0
  285. package/.next/static/media/KaTeX_Main-Bold.d181c465.woff +0 -0
  286. package/.next/static/media/KaTeX_Main-BoldItalic.6f2bb1df.woff2 +0 -0
  287. package/.next/static/media/KaTeX_Main-BoldItalic.70d8b0a5.ttf +0 -0
  288. package/.next/static/media/KaTeX_Main-BoldItalic.e3f82f9d.woff +0 -0
  289. package/.next/static/media/KaTeX_Main-Italic.47373d1e.ttf +0 -0
  290. package/.next/static/media/KaTeX_Main-Italic.8916142b.woff2 +0 -0
  291. package/.next/static/media/KaTeX_Main-Italic.9024d815.woff +0 -0
  292. package/.next/static/media/KaTeX_Main-Regular.0462f03b.woff2 +0 -0
  293. package/.next/static/media/KaTeX_Main-Regular.7f51fe03.woff +0 -0
  294. package/.next/static/media/KaTeX_Main-Regular.b7f8fe9b.ttf +0 -0
  295. package/.next/static/media/KaTeX_Math-BoldItalic.572d331f.woff2 +0 -0
  296. package/.next/static/media/KaTeX_Math-BoldItalic.a879cf83.ttf +0 -0
  297. package/.next/static/media/KaTeX_Math-BoldItalic.f1035d8d.woff +0 -0
  298. package/.next/static/media/KaTeX_Math-Italic.5295ba48.woff +0 -0
  299. package/.next/static/media/KaTeX_Math-Italic.939bc644.ttf +0 -0
  300. package/.next/static/media/KaTeX_Math-Italic.f28c23ac.woff2 +0 -0
  301. package/.next/static/media/KaTeX_SansSerif-Bold.8c5b5494.woff2 +0 -0
  302. package/.next/static/media/KaTeX_SansSerif-Bold.94e1e8dc.ttf +0 -0
  303. package/.next/static/media/KaTeX_SansSerif-Bold.bf59d231.woff +0 -0
  304. package/.next/static/media/KaTeX_SansSerif-Italic.3b1e59b3.woff2 +0 -0
  305. package/.next/static/media/KaTeX_SansSerif-Italic.7c9bc82b.woff +0 -0
  306. package/.next/static/media/KaTeX_SansSerif-Italic.b4c20c84.ttf +0 -0
  307. package/.next/static/media/KaTeX_SansSerif-Regular.74048478.woff +0 -0
  308. package/.next/static/media/KaTeX_SansSerif-Regular.ba21ed5f.woff2 +0 -0
  309. package/.next/static/media/KaTeX_SansSerif-Regular.d4d7ba48.ttf +0 -0
  310. package/.next/static/media/KaTeX_Script-Regular.03e9641d.woff2 +0 -0
  311. package/.next/static/media/KaTeX_Script-Regular.07505710.woff +0 -0
  312. package/.next/static/media/KaTeX_Script-Regular.fe9cbbe1.ttf +0 -0
  313. package/.next/static/media/KaTeX_Size1-Regular.e1e279cb.woff +0 -0
  314. package/.next/static/media/KaTeX_Size1-Regular.eae34984.woff2 +0 -0
  315. package/.next/static/media/KaTeX_Size1-Regular.fabc004a.ttf +0 -0
  316. package/.next/static/media/KaTeX_Size2-Regular.57727022.woff +0 -0
  317. package/.next/static/media/KaTeX_Size2-Regular.5916a24f.woff2 +0 -0
  318. package/.next/static/media/KaTeX_Size2-Regular.d6b476ec.ttf +0 -0
  319. package/.next/static/media/KaTeX_Size3-Regular.9acaf01c.woff +0 -0
  320. package/.next/static/media/KaTeX_Size3-Regular.a144ef58.ttf +0 -0
  321. package/.next/static/media/KaTeX_Size3-Regular.b4230e7e.woff2 +0 -0
  322. package/.next/static/media/KaTeX_Size4-Regular.10d95fd3.woff2 +0 -0
  323. package/.next/static/media/KaTeX_Size4-Regular.7a996c9d.woff +0 -0
  324. package/.next/static/media/KaTeX_Size4-Regular.fbccdabe.ttf +0 -0
  325. package/.next/static/media/KaTeX_Typewriter-Regular.6258592b.woff +0 -0
  326. package/.next/static/media/KaTeX_Typewriter-Regular.a8709e36.woff2 +0 -0
  327. package/.next/static/media/KaTeX_Typewriter-Regular.d97aaf4a.ttf +0 -0
  328. package/.next/static/media/a0c7b168290800ea-s.woff2 +0 -0
  329. package/.next/static/media/a211c214b387705f-s.woff2 +0 -0
  330. package/.next/static/media/a515f80c15233dd2-s.woff2 +0 -0
  331. package/.next/static/media/a59cf4e3704a8bf9-s.woff2 +0 -0
  332. package/.next/static/media/a7107da688a6a6c4-s.woff2 +0 -0
  333. package/.next/static/media/b0785a8aafa8fb40-s.woff2 +0 -0
  334. package/.next/static/media/b3afeb402d0641d1-s.woff2 +0 -0
  335. package/.next/static/media/b3d4f23ea9869e41-s.woff2 +0 -0
  336. package/.next/static/media/b88b6f09060fd402-s.woff2 +0 -0
  337. package/.next/static/media/b9bde58fd979694e-s.woff2 +0 -0
  338. package/.next/static/media/bdb722ed5812b325-s.woff2 +0 -0
  339. package/.next/static/media/c24e4778556eba42-s.woff2 +0 -0
  340. package/.next/static/media/c3040269b1771b02-s.woff2 +0 -0
  341. package/.next/static/media/c4123b44ca624496-s.woff2 +0 -0
  342. package/.next/static/media/ccadbccc98acfb1c-s.woff2 +0 -0
  343. package/.next/static/media/d04351f5bc3644ea-s.woff2 +0 -0
  344. package/.next/static/media/d1778a980b3fad78-s.woff2 +0 -0
  345. package/.next/static/media/d416562cb7cba055-s.woff2 +0 -0
  346. package/.next/static/media/d872fd07230782c0-s.woff2 +0 -0
  347. package/.next/static/media/db3791bbb1ae5747-s.woff2 +0 -0
  348. package/.next/static/media/dd090f323c5887c3-s.woff2 +0 -0
  349. package/.next/static/media/dd1fcf6432702b11-s.woff2 +0 -0
  350. package/.next/static/media/e45abf9e3abcfe63-s.woff2 +0 -0
  351. package/.next/static/media/e6e70594dba816d3-s.woff2 +0 -0
  352. package/.next/static/media/e8a6cb3b0c8c1d41-s.woff2 +0 -0
  353. package/.next/static/media/e8fdc46fb8ed5f75-s.woff2 +0 -0
  354. package/.next/static/media/ed7a78808c74aaab-s.woff2 +0 -0
  355. package/.next/static/media/ef9a93445fe49953-s.woff2 +0 -0
  356. package/.next/static/media/f00fd2cfeda7750f-s.woff2 +0 -0
  357. package/.next/static/media/f0863c4be7cb812e-s.woff2 +0 -0
  358. package/.next/static/media/f2fb250c4baa1fea-s.woff2 +0 -0
  359. package/.next/static/media/f392a13a0094c3d1-s.woff2 +0 -0
  360. package/.next/static/media/f42f4d2ecc3cba08-s.woff2 +0 -0
  361. package/.next/static/media/f8f98f7e33dde58b-s.woff2 +0 -0
  362. package/.next/static/media/fba9d66c2358f8e6-s.woff2 +0 -0
  363. package/.next/static/media/fc8b52876cd8aa42-s.woff2 +0 -0
  364. package/.next/static/media/fcc5ccbd071c5f3e-s.woff2 +0 -0
  365. package/.next/static/media/fe9908567bfd9cbf-s.woff2 +0 -0
  366. package/.next/trace +120 -0
  367. package/.next/types/app/api/asset/[...path]/route.ts +343 -0
  368. package/.next/types/app/api/auth/[...nextauth]/route.ts +343 -0
  369. package/.next/types/app/api/blog/[id]/highlights/[hid]/comments/[cid]/reactions/route.ts +343 -0
  370. package/.next/types/app/api/blog/[id]/highlights/[hid]/comments/[cid]/route.ts +343 -0
  371. package/.next/types/app/api/blog/[id]/highlights/[hid]/replies/route.ts +343 -0
  372. package/.next/types/app/api/blog/[id]/highlights/[hid]/resolve/route.ts +343 -0
  373. package/.next/types/app/api/blog/[id]/highlights/[hid]/route.ts +343 -0
  374. package/.next/types/app/api/blog/[id]/highlights/route.ts +343 -0
  375. package/.next/types/app/api/graphql/route.ts +343 -0
  376. package/.next/types/app/api/mile/prompts/route.ts +343 -0
  377. package/.next/types/app/api/upload/route.ts +343 -0
  378. package/.next/types/app/api/webhooks/notification/route.ts +343 -0
  379. package/.next/types/app/atom.xml/route.ts +343 -0
  380. package/.next/types/app/blog/[id]/page.ts +79 -0
  381. package/.next/types/app/blog/page.ts +79 -0
  382. package/.next/types/app/editor/page.ts +79 -0
  383. package/.next/types/app/login/page.ts +79 -0
  384. package/.next/types/app/memos/page.ts +79 -0
  385. package/.next/types/app/page.ts +79 -0
  386. package/.next/types/app/rss.xml/route.ts +343 -0
  387. package/.next/types/app/unavailable/page.ts +79 -0
  388. package/.next/types/package.json +1 -0
  389. package/bin/cici.js +103 -31
  390. package/package.json +5 -4
  391. package/public/Tinymind-banner.png +0 -0
  392. package/public/Tinymind.dmg +0 -0
  393. package/public/icon-144.jpg +0 -0
  394. package/public/icon.jpg +0 -0
  395. package/public/manifest.json +25 -0
  396. package/public/presentations/coordinated-access-control-with-policy/index.html +1593 -0
  397. package/public/tinymind.icns +0 -0
  398. /package/.next/standalone/.next/static/{Pl18p4h2shbbqjypPxStc → H78KNQuyrLX6JpnJaQChP}/_buildManifest.js +0 -0
  399. /package/.next/standalone/.next/static/{Pl18p4h2shbbqjypPxStc → H78KNQuyrLX6JpnJaQChP}/_ssgManifest.js +0 -0
@@ -0,0 +1,140 @@
1
+ (()=>{var e={};e.id=55,e.ids=[55],e.modules={64735:e=>{function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=64735,e.exports=t},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},30517:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},78893:e=>{"use strict";e.exports=require("buffer")},84770:e=>{"use strict";e.exports=require("crypto")},17702:e=>{"use strict";e.exports=require("events")},92048:e=>{"use strict";e.exports=require("fs")},32615:e=>{"use strict";e.exports=require("http")},35240:e=>{"use strict";e.exports=require("https")},55315:e=>{"use strict";e.exports=require("path")},21764:e=>{"use strict";e.exports=require("util")},71568:e=>{"use strict";e.exports=require("zlib")},72254:e=>{"use strict";e.exports=require("node:buffer")},6005:e=>{"use strict";e.exports=require("node:crypto")},15673:e=>{"use strict";e.exports=require("node:events")},87561:e=>{"use strict";e.exports=require("node:fs")},88849:e=>{"use strict";e.exports=require("node:http")},22286:e=>{"use strict";e.exports=require("node:https")},84492:e=>{"use strict";e.exports=require("node:stream")},76402:e=>{"use strict";e.exports=require("node:stream/promises")},31764:e=>{"use strict";e.exports=require("node:tls")},41041:e=>{"use strict";e.exports=require("node:url")},47261:e=>{"use strict";e.exports=require("node:util")},65628:e=>{"use strict";e.exports=require("node:zlib")},11514:(e,t,n)=>{"use strict";let r;n.r(t),n.d(t,{originalPathname:()=>oA,patchFetch:()=>oD,requestAsyncStorage:()=>ox,routeModule:()=>oO,serverHooks:()=>ok,staticGenerationAsyncStorage:()=>ow});var i,s,o,a,l,u,c,f={};n.r(f),n.d(f,{GET:()=>oS,OPTIONS:()=>oN,POST:()=>oI});var h=n(49303),d=n(88716),p=n(60670);function m(e){return"object"==typeof e&&null!==e}function y(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}let g=/\r\n|[\n\r]/g;function b(e,t){let n=0,r=1;for(let i of e.body.matchAll(g)){if("number"==typeof i.index||y(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function v(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=1===t.line?n:0,l=t.column+a,u=`${e.name}:${o}:${l}
2
+ `,c=r.split(/\r\n|[\n\r]/g),f=c[i];if(f.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<f.length;e+=80)t.push(f.slice(e,e+80));return u+_([[`${o} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return u+_([[`${o-1} |`,c[i-1]],[`${o} |`,f],["|","^".padStart(l)],[`${o+1} |`,c[i+1]]])}function _(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class E extends Error{constructor(e,...t){var n,r,i;let{nodes:s,source:o,positions:a,path:l,originalError:u,extensions:c}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=T(Array.isArray(s)?s:s?[s]:void 0);let f=T(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=o?o:null==f?void 0:null===(r=f[0])||void 0===r?void 0:r.source,this.positions=null!=a?a:null==f?void 0:f.map(e=>e.start),this.locations=a&&o?a.map(e=>b(o,e)):null==f?void 0:f.map(e=>b(e.source,e.start));let h=m(null==u?void 0:u.extensions)?null==u?void 0:u.extensions:void 0;this.extensions=null!==(i=null!=c?c:h)&&void 0!==i?i: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}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.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 e=this.message;if(this.nodes){for(let n of this.nodes)if(n.loc){var t;e+="\n\n"+v((t=n.loc).source,b(t.source,t.start))}}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+v(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function T(e){return void 0===e||0===e.length?void 0:e}function S(e,t,n){return new E(`Syntax Error: ${n}`,{source:e,positions:[t]})}class I{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class N{constructor(e,t,n,r,i,s){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,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}}}let O={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"]},x=new Set(Object.keys(O));function w(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&x.has(t)}function k(e){return 9===e||32===e}function A(e){return e>=48&&e<=57}function D(e){return e>=97&&e<=122||e>=65&&e<=90}function P(e){return D(e)||95===e}function R(e){return D(e)||A(e)||95===e}(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(i||(i={})),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"}(s||(s={})),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"}(o||(o={})),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"}(a||(a={}));class C{constructor(e){let t=new N(a.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let n=e.source.body,r=n.length,i=t;for(;i<r;){let t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return function(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(10===e||13===e)break;if(L(e))++i;else if(F(n,i))i+=2;else break}return $(e,a.COMMENT,t,i,n.slice(t+1,i))}(e,i);case 33:return $(e,a.BANG,i,i+1);case 36:return $(e,a.DOLLAR,i,i+1);case 38:return $(e,a.AMP,i,i+1);case 40:return $(e,a.PAREN_L,i,i+1);case 41:return $(e,a.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return $(e,a.SPREAD,i,i+3);break;case 58:return $(e,a.COLON,i,i+1);case 61:return $(e,a.EQUALS,i,i+1);case 64:return $(e,a.AT,i,i+1);case 91:return $(e,a.BRACKET_L,i,i+1);case 93:return $(e,a.BRACKET_R,i,i+1);case 123:return $(e,a.BRACE_L,i,i+1);case 124:return $(e,a.PIPE,i,i+1);case 125:return $(e,a.BRACE_R,i,i+1);case 34:if(34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2))return function(e,t){let n=e.source.body,r=n.length,i=e.lineStart,s=t+3,o=s,l="",u=[];for(;s<r;){let r=n.charCodeAt(s);if(34===r&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)){l+=n.slice(o,s),u.push(l);let r=$(e,a.BLOCK_STRING,t,s+3,(function(e){var t,n;let r=Number.MAX_SAFE_INTEGER,i=null,s=-1;for(let t=0;t<e.length;++t){let o=e[t],a=function(e){let t=0;for(;t<e.length&&k(e.charCodeAt(t));)++t;return t}(o);a!==o.length&&(i=null!==(n=i)&&void 0!==n?n:t,s=t,0!==t&&a<r&&(r=a))}return e.map((e,t)=>0===t?e:e.slice(r)).slice(null!==(t=i)&&void 0!==t?t:0,s+1)})(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,r}if(92===r&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)&&34===n.charCodeAt(s+3)){l+=n.slice(o,s),o=s+1,s+=4;continue}if(10===r||13===r){l+=n.slice(o,s),u.push(l),13===r&&10===n.charCodeAt(s+1)?s+=2:++s,l="",o=s,i=s;continue}if(L(r))++s;else if(F(n,s))s+=2;else throw S(e.source,s,`Invalid character within String: ${U(e,s)}.`)}throw S(e.source,s,"Unterminated string.")}(e,i);return function(e,t){let n=e.source.body,r=n.length,i=t+1,s=i,o="";for(;i<r;){let r=n.charCodeAt(i);if(34===r)return o+=n.slice(s,i),$(e,a.STRING,t,i+1,o);if(92===r){o+=n.slice(s,i);let t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?function(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let e=n.charCodeAt(t+i++);if(125===e){if(i<5||!L(r))break;return{value:String.fromCodePoint(r),size:i}}if((r=r<<4|q(e))<0)break}throw S(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}(e,i):function(e,t){let n=e.source.body,r=V(n,t+2);if(L(r))return{value:String.fromCodePoint(r),size:6};if(j(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){let e=V(n,t+8);if(M(e))return{value:String.fromCodePoint(r,e),size:12}}throw S(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}(e,i):function(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:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw S(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}(e,i);o+=t.value,i+=t.size,s=i;continue}if(10===r||13===r)break;if(L(r))++i;else if(F(n,i))i+=2;else throw S(e.source,i,`Invalid character within String: ${U(e,i)}.`)}throw S(e.source,i,"Unterminated string.")}(e,i)}if(A(t)||45===t)return function(e,t,n){let r=e.source.body,i=t,s=n,o=!1;if(45===s&&(s=r.charCodeAt(++i)),48===s){if(A(s=r.charCodeAt(++i)))throw S(e.source,i,`Invalid number, unexpected digit after 0: ${U(e,i)}.`)}else i=B(e,i,s),s=r.charCodeAt(i);if(46===s&&(o=!0,s=r.charCodeAt(++i),i=B(e,i,s),s=r.charCodeAt(i)),(69===s||101===s)&&(o=!0,(43===(s=r.charCodeAt(++i))||45===s)&&(s=r.charCodeAt(++i)),i=B(e,i,s),s=r.charCodeAt(i)),46===s||P(s))throw S(e.source,i,`Invalid number, expected digit but got: ${U(e,i)}.`);return $(e,o?a.FLOAT:a.INT,t,i,r.slice(t,i))}(e,i,t);if(P(t))return function(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;)if(R(n.charCodeAt(i)))++i;else break;return $(e,a.NAME,t,i,n.slice(t,i))}(e,i);throw S(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":L(t)||F(n,i)?`Unexpected character: ${U(e,i)}.`:`Invalid character: ${U(e,i)}.`)}return $(e,a.EOF,r,r)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===a.COMMENT);return e}}function L(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function F(e,t){return j(e.charCodeAt(t))&&M(e.charCodeAt(t+1))}function j(e){return e>=55296&&e<=56319}function M(e){return e>=56320&&e<=57343}function U(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return a.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function $(e,t,n,r,i){let s=e.line,o=1+n-e.lineStart;return new N(t,n,r,s,o,i)}function B(e,t,n){if(!A(n))throw S(e.source,t,`Invalid number, expected digit but got: ${U(e,t)}.`);let r=e.source.body,i=t+1;for(;A(r.charCodeAt(i));)++i;return i}function V(e,t){return q(e.charCodeAt(t))<<12|q(e.charCodeAt(t+1))<<8|q(e.charCodeAt(t+2))<<4|q(e.charCodeAt(t+3))}function q(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function z(e,t){if(!e)throw Error(t)}function G(e){return function e(t,n){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,n){if(null===t)return"null";if(n.includes(t))return"[Circular]";let r=[...n,t];if("function"==typeof t.toJSON){let n=t.toJSON();if(n!==t)return"string"==typeof n?n:e(n,r)}else if(Array.isArray(t))return function(t,n){if(0===t.length)return"[]";if(n.length>2)return"[Array]";let r=Math.min(10,t.length),i=t.length-r,s=[];for(let i=0;i<r;++i)s.push(e(t[i],n));return 1===i?s.push("... 1 more item"):i>1&&s.push(`... ${i} more items`),"["+s.join(", ")+"]"}(t,r);return function(t,n){let r=Object.entries(t);return 0===r.length?"{}":n.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(t)+"]":"{ "+r.map(([t,r])=>t+": "+e(r,n)).join(", ")+" }"}(t,r)}(t,n);default:return String(t)}}(e,[])}let Y=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;let r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){let t=G(e);throw Error(`Cannot use ${r} "${t}" from another module or realm.
3
+
4
+ Ensure that there is only one instance of "graphql" in the node_modules
5
+ directory. If different versions of "graphql" are the dependencies of other
6
+ relied on modules, use "resolutions" to ensure only one version is installed.
7
+
8
+ https://yarnpkg.com/en/docs/selective-version-resolutions
9
+
10
+ Duplicate "graphql" modules cannot be used at the same time since different
11
+ versions may have different capabilities and behavior. The data from one
12
+ version used in the function from another could produce confusing and
13
+ spurious results.`)}}return!1};class H{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||z(!1,`Body must be a string. Received: ${G(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||z(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||z(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function W(e,t){let n=new J(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}class J{constructor(e,t={}){let n=Y(e,H)?e:new H(e);this._lexer=new C(n),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(a.NAME);return this.node(e,{kind:o.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:o.DOCUMENT,definitions:this.many(a.SOF,this.parseDefinition,a.EOF)})}parseDefinition(){if(this.peek(a.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===a.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw S(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(a.BRACE_L))return this.node(t,{kind:o.OPERATION_DEFINITION,operation:i.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType();return this.peek(a.NAME)&&(e=this.parseName()),this.node(t,{kind:o.OPERATION_DEFINITION,operation:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(a.NAME);switch(e.value){case"query":return i.QUERY;case"mutation":return i.MUTATION;case"subscription":return i.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(a.PAREN_L,this.parseVariableDefinition,a.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:o.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(a.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(a.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(a.DOLLAR),this.node(e,{kind:o.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:o.SELECTION_SET,selections:this.many(a.BRACE_L,this.parseSelection,a.BRACE_R)})}parseSelection(){return this.peek(a.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(a.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:o.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(a.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(a.PAREN_L,t,a.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(a.COLON),this.node(t,{kind:o.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(a.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(a.NAME)?this.node(e,{kind:o.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:o.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:o.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:o.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case a.BRACKET_L:return this.parseList(e);case a.BRACE_L:return this.parseObject(e);case a.INT:return this.advanceLexer(),this.node(t,{kind:o.INT,value:t.value});case a.FLOAT:return this.advanceLexer(),this.node(t,{kind:o.FLOAT,value:t.value});case a.STRING:case a.BLOCK_STRING:return this.parseStringLiteral();case a.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:o.BOOLEAN,value:!0});case"false":return this.node(t,{kind:o.BOOLEAN,value:!1});case"null":return this.node(t,{kind:o.NULL});default:return this.node(t,{kind:o.ENUM,value:t.value})}case a.DOLLAR:if(e){if(this.expectToken(a.DOLLAR),this._lexer.token.kind===a.NAME){let e=this._lexer.token.value;throw S(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:o.STRING,value:e.value,block:e.kind===a.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:o.LIST,values:this.any(a.BRACKET_L,()=>this.parseValueLiteral(e),a.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:o.OBJECT,fields:this.any(a.BRACE_L,()=>this.parseObjectField(e),a.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(a.COLON),this.node(t,{kind:o.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(a.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(a.AT),this.node(t,{kind:o.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(a.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(a.BRACKET_R),e=this.node(t,{kind:o.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(a.BANG)?this.node(t,{kind:o.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:o.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(a.STRING)||this.peek(a.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.many(a.BRACE_L,this.parseOperationTypeDefinition,a.BRACE_R);return this.node(e,{kind:o.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(a.COLON);let n=this.parseNamedType();return this.node(e,{kind:o.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:o.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:o.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(a.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(a.BRACE_L,this.parseFieldDefinition,a.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(a.COLON);let i=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:o.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:s})}parseArgumentDefs(){return this.optionalMany(a.PAREN_L,this.parseInputValueDef,a.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(a.COLON);let i=this.parseTypeReference();this.expectOptionalToken(a.EQUALS)&&(e=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:o.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:e,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:o.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:o.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(a.EQUALS)?this.delimitedMany(a.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:o.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(a.BRACE_L,this.parseEnumValueDefinition,a.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:o.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw S(this._lexer.source,this._lexer.token.start,`${Q(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:o.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(a.BRACE_L,this.parseInputValueDef,a.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===a.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(a.BRACE_L,this.parseOperationTypeDefinition,a.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:o.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:o.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:o.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:o.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:o.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:o.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:o.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(a.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(e,{kind:o.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:s})}parseDirectiveLocations(){return this.delimitedMany(a.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(s,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new I(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw S(this._lexer.source,t.start,`Expected ${K(e)}, found ${Q(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===a.NAME&&t.value===e)this.advanceLexer();else throw S(this._lexer.source,t.start,`Expected "${e}", found ${Q(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===a.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return S(this._lexer.source,t.start,`Unexpected ${Q(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==a.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw S(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function Q(e){let t=e.value;return K(e.kind)+(null!=t?` "${t}"`:"")}function K(e){return e===a.BANG||e===a.DOLLAR||e===a.AMP||e===a.PAREN_L||e===a.PAREN_R||e===a.SPREAD||e===a.COLON||e===a.EQUALS||e===a.AT||e===a.BRACKET_L||e===a.BRACKET_R||e===a.BRACE_L||e===a.PIPE||e===a.BRACE_R?`"${e}"`:e}let X=Object.freeze({});function Z(e,t,n=O){let r,i,s;let a=new Map;for(let e of Object.values(o))a.set(e,et(t,e));let l=Array.isArray(e),u=[e],c=-1,f=[],h=e,d=[],p=[];do{var m,y,g;let e;let o=++c===u.length,b=o&&0!==f.length;if(o){if(i=0===p.length?void 0:d[d.length-1],h=s,s=p.pop(),b){if(l){h=h.slice();let e=0;for(let[t,n]of f){let r=t-e;null===n?(h.splice(r,1),e++):h[r]=n}}else for(let[e,t]of(h={...h},f))h[e]=t}c=r.index,u=r.keys,f=r.edits,l=r.inArray,r=r.prev}else if(s){if(null==(h=s[i=l?c:u[c]]))continue;d.push(i)}if(!Array.isArray(h)){w(h)||z(!1,`Invalid AST Node: ${G(h)}.`);let n=o?null===(m=a.get(h.kind))||void 0===m?void 0:m.leave:null===(y=a.get(h.kind))||void 0===y?void 0:y.enter;if((e=null==n?void 0:n.call(t,h,i,s,d,p))===X)break;if(!1===e){if(!o){d.pop();continue}}else if(void 0!==e&&(f.push([i,e]),!o)){if(w(e))h=e;else{d.pop();continue}}}void 0===e&&b&&f.push([i,h]),o?d.pop():(r={inArray:l,index:c,keys:u,edits:f,prev:r},u=(l=Array.isArray(h))?h:null!==(g=n[h.kind])&&void 0!==g?g:[],c=-1,f=[],s&&p.push(s),s=h)}while(void 0!==r);return 0!==f.length?f[f.length-1][1]:e}function ee(e){let t=Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(o)){let i=!1,s=Array(e.length).fill(void 0),o=Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){let{enter:n,leave:a}=et(e[t],r);i||(i=null!=n||null!=a),s[t]=n,o[t]=a}if(!i)continue;let a={enter(...n){let r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;let a=null===(i=s[o])||void 0===i?void 0:i.apply(e[o],n);if(!1===a)t[o]=r;else if(a===X)t[o]=X;else if(void 0!==a)return a}},leave(...n){let r=n[0];for(let s=0;s<e.length;s++)if(null===t[s]){var i;let r=null===(i=o[s])||void 0===i?void 0:i.apply(e[s],n);if(r===X)t[s]=X;else if(void 0!==r&&!1!==r)return r}else t[s]===r&&(t[s]=null)}};n[r]=a}return n}function et(e,t){let n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function en(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let s=r.map(e=>`"${e}"`);switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}let o=s.slice(0,5),a=o.pop();return i+o.join(", ")+", or "+a+"?"}function er(e){return e}function ei(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}function es(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}function eo(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function ea(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),s=t.charCodeAt(r);if(eu(i)&&eu(s)){let o=0;do++n,o=10*o+i-el,i=e.charCodeAt(n);while(eu(i)&&o>0);let a=0;do++r,a=10*a+s-el,s=t.charCodeAt(r);while(eu(s)&&a>0);if(o<a)return -1;if(o>a)return 1}else{if(i<s)return -1;if(i>s)return 1;++n,++r}}return e.length-t.length}let el=48;function eu(e){return!isNaN(e)&&el<=e&&e<=57}function ec(e,t){let n=Object.create(null),r=new ef(e),i=Math.floor(.4*e.length)+1;for(let e of t){let t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{let r=n[e]-n[t];return 0!==r?r:ea(e,t)})}class ef{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=eh(this._inputLowerCase),this._rows=[Array(e.length+1).fill(0),Array(e.length+1).fill(0),Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;let n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=eh(n),i=this._inputArray;if(r.length<i.length){let e=r;r=i,i=e}let s=r.length,o=i.length;if(s-o>t)return;let a=this._rows;for(let e=0;e<=o;e++)a[0][e]=e;for(let e=1;e<=s;e++){let n=a[(e-1)%3],s=a[e%3],l=s[0]=e;for(let t=1;t<=o;t++){let o=r[e-1]===i[t-1]?0:1,u=Math.min(n[t]+1,s[t-1]+1,n[t-1]+o);e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]&&(u=Math.min(u,a[(e-2)%3][t-2]+1)),u<l&&(l=u),s[t]=u}if(l>t)return}let l=a[s%3][o];return l<=t?l:void 0}}function eh(e){let t=e.length,n=Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function ed(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}let ep=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function em(e){return ey[e.charCodeAt(0)]}let ey=["\\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"];function eg(e){return Z(e,eb)}let eb={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ev(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=eE("(",ev(e.variableDefinitions,", "),")"),n=ev([e.operation,ev([e.name,t]),ev(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+eE(" = ",n)+eE(" ",ev(r," "))},SelectionSet:{leave:({selections:e})=>e_(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let s=eE("",e,": ")+t,o=s+eE("(",ev(n,", "),")");return o.length>80&&(o=s+eE("(\n",eT(ev(n,"\n")),"\n)")),ev([o,ev(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+eE(" ",ev(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>ev(["...",eE("on ",e),ev(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${eE("(",ev(n,", "),")")} on ${t} ${eE("",ev(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t){let n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,s=r.length>1&&r.slice(1).every(e=>0===e.length||k(e.charCodeAt(0))),o=n.endsWith('\\"""'),a=e.endsWith('"')&&!o,l=e.endsWith("\\"),u=a||l,c=!i||e.length>70||u||s||o,f="",h=i&&k(e.charCodeAt(0));return(c&&!h||s)&&(f+="\n"),f+=n,(c||u)&&(f+="\n"),'"""'+f+'"""'}(e):`"${e.replace(ep,em)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ev(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ev(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+eE("(",ev(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>eE("",e,"\n")+ev(["schema",ev(t," "),e_(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>eE("",e,"\n")+ev(["scalar",t,ev(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>eE("",e,"\n")+ev(["type",t,eE("implements ",ev(n," & ")),ev(r," "),e_(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>eE("",e,"\n")+t+(eS(n)?eE("(\n",eT(ev(n,"\n")),"\n)"):eE("(",ev(n,", "),")"))+": "+r+eE(" ",ev(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>eE("",e,"\n")+ev([t+": "+n,eE("= ",r),ev(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>eE("",e,"\n")+ev(["interface",t,eE("implements ",ev(n," & ")),ev(r," "),e_(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>eE("",e,"\n")+ev(["union",t,ev(n," "),eE("= ",ev(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>eE("",e,"\n")+ev(["enum",t,ev(n," "),e_(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>eE("",e,"\n")+ev([t,ev(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>eE("",e,"\n")+ev(["input",t,ev(n," "),e_(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>eE("",e,"\n")+"directive @"+t+(eS(n)?eE("(\n",eT(ev(n,"\n")),"\n)"):eE("(",ev(n,", "),")"))+(r?" repeatable":"")+" on "+ev(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ev(["extend schema",ev(e," "),e_(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ev(["extend scalar",e,ev(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>ev(["extend type",e,eE("implements ",ev(t," & ")),ev(n," "),e_(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>ev(["extend interface",e,eE("implements ",ev(t," & ")),ev(n," "),e_(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>ev(["extend union",e,ev(t," "),eE("= ",ev(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>ev(["extend enum",e,ev(t," "),e_(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>ev(["extend input",e,ev(t," "),e_(n)]," ")}};function ev(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function e_(e){return eE("{\n",eT(ev(e,"\n")),"\n}")}function eE(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function eT(e){return eE(" ",e.replace(/\n/g,"\n "))}function eS(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}function eI(e,t){switch(e.kind){case o.NULL:return null;case o.INT:return parseInt(e.value,10);case o.FLOAT:return parseFloat(e.value);case o.STRING:case o.ENUM:case o.BOOLEAN:return e.value;case o.LIST:return e.values.map(e=>eI(e,t));case o.OBJECT:return es(e.fields,e=>e.name.value,e=>eI(e.value,t));case o.VARIABLE:return null==t?void 0:t[e.name.value]}}function eN(e){if(null!=e||z(!1,"Must provide name."),"string"==typeof e||z(!1,"Expected name to be a string."),0===e.length)throw new E("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!R(e.charCodeAt(t)))throw new E(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!P(e.charCodeAt(0)))throw new E(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function eO(e){return ex(e)||ew(e)||ek(e)||eA(e)||eD(e)||eP(e)||eR(e)||eC(e)}function ex(e){return Y(e,eW)}function ew(e){return Y(e,eJ)}function ek(e){return Y(e,e3)}function eA(e){return Y(e,e2)}function eD(e){return Y(e,e6)}function eP(e){return Y(e,e9)}function eR(e){return Y(e,e$)}function eC(e){return Y(e,eB)}function eL(e){return ex(e)||eD(e)||eP(e)||eV(e)&&eL(e.ofType)}function eF(e){return ex(e)||ew(e)||ek(e)||eA(e)||eD(e)||eV(e)&&eF(e.ofType)}function ej(e){return ex(e)||eD(e)}function eM(e){return ew(e)||ek(e)||eA(e)}function eU(e){return ek(e)||eA(e)}class e${constructor(e){eO(e)||z(!1,`Expected ${G(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class eB{constructor(e){(function(e){return eO(e)&&!eC(e)})(e)||z(!1,`Expected ${G(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function eV(e){return eR(e)||eC(e)}function eq(e){if(e)return eC(e)?e.ofType:e}function ez(e){return ex(e)||ew(e)||ek(e)||eA(e)||eD(e)||eP(e)}function eG(e){if(e){let t=e;for(;eV(t);)t=t.ofType;return t}}function eY(e){return"function"==typeof e?e():e}function eH(e){return"function"==typeof e?e():e}class eW{constructor(e){var t,n,r,i;let s=null!==(t=e.parseValue)&&void 0!==t?t:er;this.name=eN(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:er,this.parseValue=s,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:(e,t)=>s(eI(e,t)),this.extensions=ed(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(i=e.extensionASTNodes)&&void 0!==i?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||z(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${G(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||z(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||z(!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()}}class eJ{constructor(e){var t;this.name=eN(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=ed(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>eK(e),this._interfaces=()=>eQ(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||z(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${G(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:e0(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function eQ(e){var t;let n=eY(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||z(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function eK(e){let t=eH(e.fields);return eZ(t)||z(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),eo(t,(t,n)=>{var r;eZ(t)||z(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||z(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${G(t.resolve)}.`);let i=null!==(r=t.args)&&void 0!==r?r:{};return eZ(i)||z(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:eN(n),description:t.description,type:t.type,args:eX(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:ed(t.extensions),astNode:t.astNode}})}function eX(e){return Object.entries(e).map(([e,t])=>({name:eN(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:ed(t.extensions),astNode:t.astNode}))}function eZ(e){return m(e)&&!Array.isArray(e)}function e0(e){return eo(e,e=>({description:e.description,type:e.type,args:e1(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function e1(e){return es(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function e4(e){return eC(e.type)&&void 0===e.defaultValue}class e3{constructor(e){var t;this.name=eN(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=ed(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=eK.bind(void 0,e),this._interfaces=eQ.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||z(!1,`${this.name} must provide "resolveType" as a function, but got: ${G(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:e0(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class e2{constructor(e){var t;this.name=eN(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=ed(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=e5.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||z(!1,`${this.name} must provide "resolveType" as a function, but got: ${G(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(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 e5(e){let t=eY(e.types);return Array.isArray(t)||z(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class e6{constructor(e){var t;this.name=eN(e.name),this.description=e.description,this.extensions=ed(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values="function"==typeof e.values?e.values:e8(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=e8(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=ei(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));let t=this._valueLookup.get(e);if(void 0===t)throw new E(`Enum "${this.name}" cannot represent value: ${G(e)}`);return t.name}parseValue(e){if("string"!=typeof e){let t=G(e);throw new E(`Enum "${this.name}" cannot represent non-string value: ${t}.`+e7(this,t))}let t=this.getValue(e);if(null==t)throw new E(`Value "${e}" does not exist in "${this.name}" enum.`+e7(this,e));return t.value}parseLiteral(e,t){if(e.kind!==o.ENUM){let t=eg(e);throw new E(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+e7(this,t),{nodes:e})}let n=this.getValue(e.value);if(null==n){let t=eg(e);throw new E(`Value "${t}" does not exist in "${this.name}" enum.`+e7(this,t),{nodes:e})}return n.value}toConfig(){let e=es(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function e7(e,t){return en("the enum value",ec(t,e.getValues().map(e=>e.name)))}function e8(e,t){return eZ(t)||z(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(eZ(n)||z(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${G(n)}.`),{name:function(e){if("true"===e||"false"===e||"null"===e)throw new E(`Enum values cannot be named: ${e}`);return eN(e)}(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:ed(n.extensions),astNode:n.astNode}))}class e9{constructor(e){var t,n;this.name=eN(e.name),this.description=e.description,this.extensions=ed(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this.isOneOf=null!==(n=e.isOneOf)&&void 0!==n&&n,this._fields=te.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){let e=eo(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function te(e){let t=eH(e.fields);return eZ(t)||z(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),eo(t,(t,n)=>("resolve"in t&&z(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:eN(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:ed(t.extensions),astNode:t.astNode}))}function tt(e){return eC(e.type)&&void 0===e.defaultValue}function tn(e,t,n){return t===n||(eC(n)?!!eC(t)&&tn(e,t.ofType,n.ofType):eC(t)?tn(e,t.ofType,n):eR(n)?!!eR(t)&&tn(e,t.ofType,n.ofType):!eR(t)&&eU(n)&&(ek(t)||ew(t))&&e.isSubType(n,t))}function tr(e,t,n){return t===n||(eU(t)?eU(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!eU(n)&&e.isSubType(n,t))}let ti=new eW({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=tf(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new E(`Int cannot represent non-integer value: ${G(t)}`);if(n>2147483647||n<-2147483648)throw new E("Int cannot represent non 32-bit signed integer value: "+G(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new E(`Int cannot represent non-integer value: ${G(e)}`);if(e>2147483647||e<-2147483648)throw new E(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==o.INT)throw new E(`Int cannot represent non-integer value: ${eg(e)}`,{nodes:e});let t=parseInt(e.value,10);if(t>2147483647||t<-2147483648)throw new E(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),ts=new eW({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=tf(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new E(`Float cannot represent non numeric value: ${G(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new E(`Float cannot represent non numeric value: ${G(e)}`);return e},parseLiteral(e){if(e.kind!==o.FLOAT&&e.kind!==o.INT)throw new E(`Float cannot represent non numeric value: ${eg(e)}`,e);return parseFloat(e.value)}}),to=new eW({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=tf(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new E(`String cannot represent value: ${G(e)}`)},parseValue(e){if("string"!=typeof e)throw new E(`String cannot represent a non string value: ${G(e)}`);return e},parseLiteral(e){if(e.kind!==o.STRING)throw new E(`String cannot represent a non string value: ${eg(e)}`,{nodes:e});return e.value}}),ta=new eW({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let t=tf(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new E(`Boolean cannot represent a non boolean value: ${G(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new E(`Boolean cannot represent a non boolean value: ${G(e)}`);return e},parseLiteral(e){if(e.kind!==o.BOOLEAN)throw new E(`Boolean cannot represent a non boolean value: ${eg(e)}`,{nodes:e});return e.value}}),tl=new eW({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=tf(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new E(`ID cannot represent value: ${G(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new E(`ID cannot represent value: ${G(e)}`)},parseLiteral(e){if(e.kind!==o.STRING&&e.kind!==o.INT)throw new E("ID cannot represent a non-string and non-integer value: "+eg(e),{nodes:e});return e.value}}),tu=Object.freeze([to,ti,ts,ta,tl]);function tc(e){return tu.some(({name:t})=>e.name===t)}function tf(e){if(m(e)){if("function"==typeof e.valueOf){let t=e.valueOf();if(!m(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}class th{constructor(e){var t,n;this.name=eN(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=ed(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||z(!1,`@${e.name} locations must be an Array.`);let r=null!==(n=e.args)&&void 0!==n?n:{};m(r)&&!Array.isArray(r)||z(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=eX(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:e1(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}let td=new th({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[s.FIELD,s.FRAGMENT_SPREAD,s.INLINE_FRAGMENT],args:{if:{type:new eB(ta),description:"Included when true."}}}),tp=new th({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[s.FIELD,s.FRAGMENT_SPREAD,s.INLINE_FRAGMENT],args:{if:{type:new eB(ta),description:"Skipped when true."}}}),tm=new th({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[s.FIELD_DEFINITION,s.ARGUMENT_DEFINITION,s.INPUT_FIELD_DEFINITION,s.ENUM_VALUE],args:{reason:{type:to,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:"No longer supported"}}}),ty=new th({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[s.SCALAR],args:{url:{type:new eB(to),description:"The URL that specifies the behavior of this scalar."}}}),tg=new th({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[s.INPUT_OBJECT],args:{}}),tb=Object.freeze([td,tp,tm,ty,tg]);function tv(e){return tb.some(({name:t})=>t===e.name)}function t_(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}let tE=/^-?(?:0|[1-9][0-9]*)$/,tT=new eJ({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:to,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new eB(new e$(new eB(tN))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new eB(tN),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:tN,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:tN,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new eB(new e$(new eB(tS))),resolve:e=>e.getDirectives()}})}),tS=new eJ({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn 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 eB(to),resolve:e=>e.name},description:{type:to,resolve:e=>e.description},isRepeatable:{type:new eB(ta),resolve:e=>e.isRepeatable},locations:{type:new eB(new e$(new eB(tI))),resolve:e=>e.locations},args:{type:new eB(new e$(new eB(tx))),args:{includeDeprecated:{type:ta,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),tI=new e6({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:s.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:s.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:s.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:s.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:s.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:s.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:s.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:s.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:s.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:s.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:s.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:s.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:s.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:s.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:s.UNION,description:"Location adjacent to a union definition."},ENUM:{value:s.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:s.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:s.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:s.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),tN=new eJ({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 eB(tk),resolve:e=>ex(e)?l.SCALAR:ew(e)?l.OBJECT:ek(e)?l.INTERFACE:eA(e)?l.UNION:eD(e)?l.ENUM:eP(e)?l.INPUT_OBJECT:eR(e)?l.LIST:eC(e)?l.NON_NULL:void y(!1,`Unexpected type: "${G(e)}".`)},name:{type:to,resolve:e=>"name"in e?e.name:void 0},description:{type:to,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:to,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new e$(new eB(tO)),args:{includeDeprecated:{type:ta,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ew(e)||ek(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new e$(new eB(tN)),resolve(e){if(ew(e)||ek(e))return e.getInterfaces()}},possibleTypes:{type:new e$(new eB(tN)),resolve(e,t,n,{schema:r}){if(eU(e))return r.getPossibleTypes(e)}},enumValues:{type:new e$(new eB(tw)),args:{includeDeprecated:{type:ta,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(eD(e)){let n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new e$(new eB(tx)),args:{includeDeprecated:{type:ta,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(eP(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:tN,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:ta,resolve:e=>{if(eP(e))return e.isOneOf}}})}),tO=new eJ({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 eB(to),resolve:e=>e.name},description:{type:to,resolve:e=>e.description},args:{type:new eB(new e$(new eB(tx))),args:{includeDeprecated:{type:ta,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new eB(tN),resolve:e=>e.type},isDeprecated:{type:new eB(ta),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:to,resolve:e=>e.deprecationReason}})}),tx=new eJ({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 eB(to),resolve:e=>e.name},description:{type:to,resolve:e=>e.description},type:{type:new eB(tN),resolve:e=>e.type},defaultValue:{type:to,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=function e(t,n){if(eC(n)){let r=e(t,n.ofType);return(null==r?void 0:r.kind)===o.NULL?null:r}if(null===t)return{kind:o.NULL};if(void 0===t)return null;if(eR(n)){let r=n.ofType;if(t_(t)){let n=[];for(let i of t){let t=e(i,r);null!=t&&n.push(t)}return{kind:o.LIST,values:n}}return e(t,r)}if(eP(n)){if(!m(t))return null;let r=[];for(let i of Object.values(n.getFields())){let n=e(t[i.name],i.type);n&&r.push({kind:o.OBJECT_FIELD,name:{kind:o.NAME,value:i.name},value:n})}return{kind:o.OBJECT,fields:r}}if(ej(n)){let e=n.serialize(t);if(null==e)return null;if("boolean"==typeof e)return{kind:o.BOOLEAN,value:e};if("number"==typeof e&&Number.isFinite(e)){let t=String(e);return tE.test(t)?{kind:o.INT,value:t}:{kind:o.FLOAT,value:t}}if("string"==typeof e)return eD(n)?{kind:o.ENUM,value:e}:n===tl&&tE.test(e)?{kind:o.INT,value:e}:{kind:o.STRING,value:e};throw TypeError(`Cannot convert value to AST: ${G(e)}.`)}y(!1,"Unexpected input type: "+G(n))}(n,t);return r?eg(r):null}},isDeprecated:{type:new eB(ta),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:to,resolve:e=>e.deprecationReason}})}),tw=new eJ({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 eB(to),resolve:e=>e.name},description:{type:to,resolve:e=>e.description},isDeprecated:{type:new eB(ta),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:to,resolve:e=>e.deprecationReason}})});!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"}(l||(l={}));let tk=new e6({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:l.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:l.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:l.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:l.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:l.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:l.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:l.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:l.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),tA={name:"__schema",type:new eB(tT),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},tD={name:"__type",type:tN,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new eB(to),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},tP={name:"__typename",type:new eB(to),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},tR=Object.freeze([tT,tS,tI,tN,tO,tx,tw,tk]);function tC(e){return tR.some(({name:t})=>e.name===t)}class tL{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,m(e)||z(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||z(!1,`"types" must be Array if provided but got: ${G(e.types)}.`),!e.directives||Array.isArray(e.directives)||z(!1,`"directives" must be Array if provided but got: ${G(e.directives)}.`),this.description=e.description,this.extensions=ed(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:tb;let r=new Set(e.types);if(null!=e.types)for(let t of e.types)r.delete(t),tF(t,r);for(let e of(null!=this._queryType&&tF(this._queryType,r),null!=this._mutationType&&tF(this._mutationType,r),null!=this._subscriptionType&&tF(this._subscriptionType,r),this._directives))if(Y(e,th))for(let t of e.args)tF(t.type,r);for(let e of(tF(tT,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null),r)){if(null==e)continue;let t=e.name;if(t||z(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,ek(e)){for(let t of e.getInterfaces())if(ek(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(ew(e)){for(let t of e.getInterfaces())if(ek(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case i.QUERY:return this.getQueryType();case i.MUTATION:return this.getMutationType();case i.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return eA(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){let t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),eA(e))for(let t of e.getTypes())n[t.name]=!0;else{let t=this.getImplementations(e);for(let e of t.objects)n[e.name]=!0;for(let e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function tF(e,t){let n=eG(e);if(!t.has(n)){if(t.add(n),eA(n))for(let e of n.getTypes())tF(e,t);else if(ew(n)||ek(n)){for(let e of n.getInterfaces())tF(e,t);for(let e of Object.values(n.getFields()))for(let n of(tF(e.type,t),e.args))tF(n.type,t)}else if(eP(n))for(let e of Object.values(n.getFields()))tF(e.type,t)}return t}function tj(e){let t=function(e){if(function(e){if(!Y(e,tL))throw Error(`Expected ${G(e)} to be a GraphQL schema.`)}(e),e.__validationErrors)return e.__validationErrors;let t=new tM(e);(function(e){var t,n,r;let s=e.schema,o=s.getQueryType();o?ew(o)||e.reportError(`Query root type must be Object type, it cannot be ${G(o)}.`,null!==(t=tU(s,i.QUERY))&&void 0!==t?t:o.astNode):e.reportError("Query root type must be provided.",s.astNode);let a=s.getMutationType();a&&!ew(a)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${G(a)}.`,null!==(n=tU(s,i.MUTATION))&&void 0!==n?n:a.astNode);let l=s.getSubscriptionType();l&&!ew(l)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${G(l)}.`,null!==(r=tU(s,i.SUBSCRIPTION))&&void 0!==r?r:l.astNode)})(t),function(e){for(let n of e.schema.getDirectives()){if(!Y(n,th)){e.reportError(`Expected directive but got: ${G(n)}.`,null==n?void 0:n.astNode);continue}for(let r of(t$(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode),n.args))if(t$(e,r),eL(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${G(r.type)}.`,r.astNode),e4(r)&&null!=r.deprecationReason){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[tG(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}}(t),function(e){let t=function(e){let t=Object.create(null),n=[],r=Object.create(null);return function i(s){if(!t[s.name]){for(let o of(t[s.name]=!0,r[s.name]=n.length,Object.values(s.getFields())))if(eC(o.type)&&eP(o.type.ofType)){let t=o.type.ofType,s=r[t.name];if(n.push(o),void 0===s)i(t);else{let r=n.slice(s),i=r.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${t.name}" within itself through a series of non-null fields: "${i}".`,r.map(e=>e.astNode))}n.pop()}r[s.name]=void 0}}}(e);for(let n of Object.values(e.schema.getTypeMap())){if(!ez(n)){e.reportError(`Expected GraphQL named type but got: ${G(n)}.`,n.astNode);continue}tC(n)||t$(e,n),ew(n)?(tB(e,n),tV(e,n)):ek(n)?(tB(e,n),tV(e,n)):eA(n)?function(e,t){let n=t.getTypes();0===n.length&&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.`,tz(t,i.name));continue}r[i.name]=!0,ew(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${G(i)}.`,tz(t,String(i)))}}(e,n):eD(n)?function(e,t){let n=t.getValues();for(let r of(0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]),n))t$(e,r)}(e,n):eP(n)&&(function(e,t){let n=Object.values(t.getFields());for(let s of(0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i;t$(e,s),eL(s.type)||e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${G(s.type)}.`,null===(r=s.astNode)||void 0===r?void 0:r.type),tt(s)&&null!=s.deprecationReason&&e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[tG(s.astNode),null===(i=s.astNode)||void 0===i?void 0:i.type]),t.isOneOf&&function(e,t,n){if(eC(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null===(r=t.astNode)||void 0===r?void 0:r.type)}void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}(t,s,e)}}(e,n),t(n))}}(t);let n=t.getErrors();return e.__validationErrors=n,n}(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}class tM{constructor(e){this._errors=[],this.schema=e}reportError(e,t){let n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new E(e,{nodes:n}))}getErrors(){return this._errors}}function tU(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]}).find(e=>e.operation===t))||void 0===n?void 0:n.type}function t$(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function tB(e,t){let n=Object.values(t.getFields());for(let o of(0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i,s;for(let n of(t$(e,o),eF(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${G(o.type)}.`,null===(r=o.astNode)||void 0===r?void 0:r.type),o.args)){let r=n.name;t$(e,n),eL(n.type)||e.reportError(`The type of ${t.name}.${o.name}(${r}:) must be Input Type but got: ${G(n.type)}.`,null===(i=n.astNode)||void 0===i?void 0:i.type),e4(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${o.name}(${r}:) cannot be deprecated.`,[tG(n.astNode),null===(s=n.astNode)||void 0===s?void 0:s.type])}}}function tV(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!ek(r)){e.reportError(`Type ${G(t)} must only implement Interface types, it cannot implement ${G(r)}.`,tq(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,tq(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,tq(t,r));continue}n[r.name]=!0,function(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}.`,[...tq(n,i),...tq(t,n)])}(e,t,r),function(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){var i,s,o,a;let u=l.name,c=r[u];if(!c){e.reportError(`Interface field ${n.name}.${u} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}for(let r of(tn(e.schema,c.type,l.type)||e.reportError(`Interface field ${n.name}.${u} expects type ${G(l.type)} but ${t.name}.${u} is type ${G(c.type)}.`,[null===(i=l.astNode)||void 0===i?void 0:i.type,null===(s=c.astNode)||void 0===s?void 0:s.type]),l.args)){let i=r.name,s=c.args.find(e=>e.name===i);if(!s){e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`,[r.astNode,c.astNode]);continue}!function e(t,n){return t===n||!!(eC(t)&&eC(n)||eR(t)&&eR(n))&&e(t.ofType,n.ofType)}(r.type,s.type)&&e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expects type ${G(r.type)} but ${t.name}.${u}(${i}:) is type ${G(s.type)}.`,[null===(o=r.astNode)||void 0===o?void 0:o.type,null===(a=s.astNode)||void 0===a?void 0:a.type])}for(let r of c.args){let i=r.name;!l.args.find(e=>e.name===i)&&e4(r)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${n.name}.${u}.`,[r.astNode,l.astNode])}}}(e,t,r)}}function tq(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]}).filter(e=>e.name.value===t.name)}function tz(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]}).filter(e=>e.name.value===t)}function tG(e){var t;return null==e?void 0:null===(t=e.directives)||void 0===t?void 0:t.find(e=>e.name.value===tm.name)}function tY(e,t){switch(t.kind){case o.LIST_TYPE:{let n=tY(e,t.type);return n&&new e$(n)}case o.NON_NULL_TYPE:{let n=tY(e,t.type);return n&&new eB(n)}case o.NAMED_TYPE:return e.getType(t.name.value)}}class tH{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:tW,t&&(eL(t)&&this._inputTypeStack.push(t),eM(t)&&this._parentTypeStack.push(t),eF(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){let t=this._schema;switch(e.kind){case o.SELECTION_SET:{let e=eG(this.getType());this._parentTypeStack.push(eM(e)?e:void 0);break}case o.FIELD:{let n,r;let i=this.getParentType();i&&(n=this._getFieldDef(t,i,e))&&(r=n.type),this._fieldDefStack.push(n),this._typeStack.push(eF(r)?r:void 0);break}case o.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case o.OPERATION_DEFINITION:{let n=t.getRootType(e.operation);this._typeStack.push(ew(n)?n:void 0);break}case o.INLINE_FRAGMENT:case o.FRAGMENT_DEFINITION:{let n=e.typeCondition,r=n?tY(t,n):eG(this.getType());this._typeStack.push(eF(r)?r:void 0);break}case o.VARIABLE_DEFINITION:{let n=tY(t,e.type);this._inputTypeStack.push(eL(n)?n:void 0);break}case o.ARGUMENT:{var n;let t,r;let i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value))&&(r=t.type),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(eL(r)?r:void 0);break}case o.LIST:{let e=eq(this.getInputType()),t=eR(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(eL(t)?t:void 0);break}case o.OBJECT_FIELD:{let t,n;let r=eG(this.getInputType());eP(r)&&(n=r.getFields()[e.name.value])&&(t=n.type),this._defaultValueStack.push(n?n.defaultValue:void 0),this._inputTypeStack.push(eL(t)?t:void 0);break}case o.ENUM:{let t;let n=eG(this.getInputType());eD(n)&&(t=n.getValue(e.value)),this._enumValue=t}}}leave(e){switch(e.kind){case o.SELECTION_SET:this._parentTypeStack.pop();break;case o.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case o.DIRECTIVE:this._directive=null;break;case o.OPERATION_DEFINITION:case o.INLINE_FRAGMENT:case o.FRAGMENT_DEFINITION:this._typeStack.pop();break;case o.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case o.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case o.LIST:case o.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case o.ENUM:this._enumValue=null}}}function tW(e,t,n){let r=n.name.value;return r===tA.name&&e.getQueryType()===t?tA:r===tD.name&&e.getQueryType()===t?tD:r===tP.name&&eM(t)?tP:ew(t)||ek(t)?t.getFields()[r]:void 0}function tJ(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=et(t,r.kind).enter;if(i){let s=i.apply(t,n);return void 0!==s&&(e.leave(r),w(s)&&e.enter(s)),s}},leave(...n){let r;let i=n[0],s=et(t,i.kind).leave;return s&&(r=s.apply(t,n)),e.leave(i),r}}}function tQ(e){return e.kind===o.OPERATION_DEFINITION||e.kind===o.FRAGMENT_DEFINITION}function tK(e){return(e.kind===Kind.VARIABLE||e.kind===Kind.INT||e.kind===Kind.FLOAT||e.kind===Kind.STRING||e.kind===Kind.BOOLEAN||e.kind===Kind.NULL||e.kind===Kind.ENUM||e.kind===Kind.LIST||e.kind===Kind.OBJECT)&&(e.kind===Kind.LIST?e.values.some(tK):e.kind===Kind.OBJECT?e.fields.some(e=>tK(e.value)):e.kind!==Kind.VARIABLE)}function tX(e){return e.kind===o.SCHEMA_DEFINITION||tZ(e)||e.kind===o.DIRECTIVE_DEFINITION}function tZ(e){return e.kind===o.SCALAR_TYPE_DEFINITION||e.kind===o.OBJECT_TYPE_DEFINITION||e.kind===o.INTERFACE_TYPE_DEFINITION||e.kind===o.UNION_TYPE_DEFINITION||e.kind===o.ENUM_TYPE_DEFINITION||e.kind===o.INPUT_OBJECT_TYPE_DEFINITION}function t0(e){return e.kind===o.SCHEMA_EXTENSION||t1(e)}function t1(e){return e.kind===o.SCALAR_TYPE_EXTENSION||e.kind===o.OBJECT_TYPE_EXTENSION||e.kind===o.INTERFACE_TYPE_EXTENSION||e.kind===o.UNION_TYPE_EXTENSION||e.kind===o.ENUM_TYPE_EXTENSION||e.kind===o.INPUT_OBJECT_TYPE_EXTENSION}function t4(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():tb)t[e.name]=e.args.map(e=>e.name);for(let n of e.getDocument().definitions)if(n.kind===o.DIRECTIVE_DEFINITION){var r;let e=null!==(r=n.arguments)&&void 0!==r?r:[];t[n.name.value]=e.map(e=>e.name.value)}return{Directive(n){let r=n.name.value,i=t[r];if(n.arguments&&i)for(let t of n.arguments){let n=t.name.value;if(!i.includes(n)){let s=ec(n,i);e.reportError(new E(`Unknown argument "${n}" on directive "@${r}".`+en(s),{nodes:t}))}}return!1}}}function t3(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():tb)t[e.name]=e.locations;for(let n of e.getDocument().definitions)n.kind===o.DIRECTIVE_DEFINITION&&(t[n.name.value]=n.locations.map(e=>e.value));return{Directive(n,r,a,l,u){let c=n.name.value,f=t[c];if(!f){e.reportError(new E(`Unknown directive "@${c}".`,{nodes:n}));return}let h=function(e){let t=e[e.length-1];switch("kind"in t||y(!1),t.kind){case o.OPERATION_DEFINITION:return function(e){switch(e){case i.QUERY:return s.QUERY;case i.MUTATION:return s.MUTATION;case i.SUBSCRIPTION:return s.SUBSCRIPTION}}(t.operation);case o.FIELD:return s.FIELD;case o.FRAGMENT_SPREAD:return s.FRAGMENT_SPREAD;case o.INLINE_FRAGMENT:return s.INLINE_FRAGMENT;case o.FRAGMENT_DEFINITION:return s.FRAGMENT_DEFINITION;case o.VARIABLE_DEFINITION:return s.VARIABLE_DEFINITION;case o.SCHEMA_DEFINITION:case o.SCHEMA_EXTENSION:return s.SCHEMA;case o.SCALAR_TYPE_DEFINITION:case o.SCALAR_TYPE_EXTENSION:return s.SCALAR;case o.OBJECT_TYPE_DEFINITION:case o.OBJECT_TYPE_EXTENSION:return s.OBJECT;case o.FIELD_DEFINITION:return s.FIELD_DEFINITION;case o.INTERFACE_TYPE_DEFINITION:case o.INTERFACE_TYPE_EXTENSION:return s.INTERFACE;case o.UNION_TYPE_DEFINITION:case o.UNION_TYPE_EXTENSION:return s.UNION;case o.ENUM_TYPE_DEFINITION:case o.ENUM_TYPE_EXTENSION:return s.ENUM;case o.ENUM_VALUE_DEFINITION:return s.ENUM_VALUE;case o.INPUT_OBJECT_TYPE_DEFINITION:case o.INPUT_OBJECT_TYPE_EXTENSION:return s.INPUT_OBJECT;case o.INPUT_VALUE_DEFINITION:{let t=e[e.length-3];return"kind"in t||y(!1),t.kind===o.INPUT_OBJECT_TYPE_DEFINITION?s.INPUT_FIELD_DEFINITION:s.ARGUMENT_DEFINITION}default:y(!1,"Unexpected kind: "+G(t.kind))}}(u);h&&!f.includes(h)&&e.reportError(new E(`Directive "@${c}" may not be used on ${h}.`,{nodes:n}))}}}function t2(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let t of e.getDocument().definitions)tZ(t)&&(r[t.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,s,o,a,l){let u=t.name.value;if(!n[u]&&!r[u]){var c,f;let n=null!==(c=l[2])&&void 0!==c?c:o,r=null!=n&&"kind"in(f=n)&&(tX(f)||t0(f));if(r&&t5.includes(u))return;let s=ec(u,r?t5.concat(i):i);e.reportError(new E(`Unknown type "${u}".`+en(s),{nodes:t}))}}}}let t5=[...tu,...tR].map(e=>e.name);function t6(e,t,n,r,i,s,o,a){if(r.has(o,a,s))return;r.add(o,a,s);let l=e.getFragment(a);if(!l)return;let[u,c]=nn(e,n,l);if(o!==u)for(let a of(t8(e,t,n,r,i,s,o,u),c))t6(e,t,n,r,i,s,o,a)}function t7(e,t,n,r,i,s,o,a){if(o===a||i.has(o,a,s))return;i.add(o,a,s);let l=e.getFragment(o),u=e.getFragment(a);if(!l||!u)return;let[c,f]=nn(e,n,l),[h,d]=nn(e,n,u);for(let a of(t8(e,t,n,r,i,s,c,h),d))t7(e,t,n,r,i,s,o,a);for(let o of f)t7(e,t,n,r,i,s,o,a)}function t8(e,t,n,r,i,s,o,a){for(let[l,u]of Object.entries(o)){let o=a[l];if(o)for(let a of u)for(let u of o){let o=t9(e,n,r,i,s,l,a,u);o&&t.push(o)}}}function t9(e,t,n,r,i,s,o,a){let[l,u,c]=o,[f,h,d]=a,p=i||l!==f&&ew(l)&&ew(f);if(!p){let e=u.name.value,t=h.name.value;if(e!==t)return[[s,`"${e}" and "${t}" are different fields`],[u],[h]];if(!function(e,t){let n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length||n.length!==r.length)return!1;let i=new Map(r.map(({name:e,value:t})=>[e.value,t]));return n.every(e=>{let t=e.value,n=i.get(e.name.value);return void 0!==n&&ne(t)===ne(n)})}(u,h))return[[s,"they have differing arguments"],[u],[h]]}let m=null==c?void 0:c.type,y=null==d?void 0:d.type;if(m&&y&&function e(t,n){return eR(t)?!eR(n)||e(t.ofType,n.ofType):!!eR(n)||(eC(t)?!eC(n)||e(t.ofType,n.ofType):!!eC(n)||!!(ej(t)||ej(n))&&t!==n)}(m,y))return[[s,`they return conflicting types "${G(m)}" and "${G(y)}"`],[u],[h]];let g=u.selectionSet,b=h.selectionSet;if(g&&b)return function(e,t,n,r){if(e.length>0)return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}(function(e,t,n,r,i,s,o,a,l){let u=[],[c,f]=nt(e,t,s,o),[h,d]=nt(e,t,a,l);for(let s of(t8(e,u,t,n,r,i,c,h),d))t6(e,u,t,n,r,i,c,s);for(let s of f)t6(e,u,t,n,r,i,h,s);for(let s of f)for(let o of d)t7(e,u,t,n,r,i,s,o);return u}(e,t,n,r,p,eG(m),g,eG(y),b),s,u,h)}function ne(e){return eg(function e(t){switch(t.kind){case o.OBJECT:return{...t,fields:t.fields.map(t=>({...t,value:e(t.value)})).sort((e,t)=>ea(e.name.value,t.name.value))};case o.LIST:return{...t,values:t.values.map(e)};case o.INT:case o.FLOAT:case o.STRING:case o.BOOLEAN:case o.NULL:case o.ENUM:case o.VARIABLE:return t}}(e))}function nt(e,t,n,r){let i=t.get(r);if(i)return i;let s=Object.create(null),a=Object.create(null);(function e(t,n,r,i,s){for(let a of r.selections)switch(a.kind){case o.FIELD:{let e;let t=a.name.value;(ew(n)||ek(n))&&(e=n.getFields()[t]);let r=a.alias?a.alias.value:t;i[r]||(i[r]=[]),i[r].push([n,a,e]);break}case o.FRAGMENT_SPREAD:s[a.name.value]=!0;break;case o.INLINE_FRAGMENT:{let r=a.typeCondition,o=r?tY(t.getSchema(),r):n;e(t,o,a.selectionSet,i,s)}}})(e,n,r,s,a);let l=[s,Object.keys(a)];return t.set(r,l),l}function nn(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=tY(e.getSchema(),n.typeCondition);return nt(e,t,i,n.selectionSet)}class nr{constructor(){this._data=new Map}has(e,t,n){var r;let i=null===(r=this._data.get(e))||void 0===r?void 0:r.get(t);return void 0!==i&&(!!n||n===i)}add(e,t,n){let r=this._data.get(e);void 0===r?this._data.set(e,new Map([[t,n]])):r.set(t,n)}}class ni{constructor(){this._orderedPairSet=new nr}has(e,t,n){return e<t?this._orderedPairSet.has(e,t,n):this._orderedPairSet.has(t,e,n)}add(e,t,n){e<t?this._orderedPairSet.add(e,t,n):this._orderedPairSet.add(t,e,n)}}let ns={[o.SCALAR_TYPE_DEFINITION]:o.SCALAR_TYPE_EXTENSION,[o.OBJECT_TYPE_DEFINITION]:o.OBJECT_TYPE_EXTENSION,[o.INTERFACE_TYPE_DEFINITION]:o.INTERFACE_TYPE_EXTENSION,[o.UNION_TYPE_DEFINITION]:o.UNION_TYPE_EXTENSION,[o.ENUM_TYPE_DEFINITION]:o.ENUM_TYPE_EXTENSION,[o.INPUT_OBJECT_TYPE_DEFINITION]:o.INPUT_OBJECT_TYPE_EXTENSION};function no(e){var t,n;let r=Object.create(null),i=e.getSchema();for(let e of null!==(t=null==i?void 0:i.getDirectives())&&void 0!==t?t:tb)r[e.name]=ei(e.args.filter(e4),e=>e.name);for(let t of e.getDocument().definitions)if(t.kind===o.DIRECTIVE_DEFINITION){let e=null!==(n=t.arguments)&&void 0!==n?n:[];r[t.name.value]=ei(e.filter(na),e=>e.name.value)}return{Directive:{leave(t){let n=t.name.value,i=r[n];if(i){var s;let r=new Set((null!==(s=t.arguments)&&void 0!==s?s:[]).map(e=>e.name.value));for(let[s,o]of Object.entries(i))if(!r.has(s)){let r=eO(o.type)?G(o.type):eg(o.type);e.reportError(new E(`Directive "@${n}" argument "${s}" of type "${r}" is required, but it was not provided.`,{nodes:t}))}}}}}}function na(e){return e.type.kind===o.NON_NULL_TYPE&&null==e.defaultValue}function nl(e,t,n){if(e){if(e.kind===o.VARIABLE){let r=e.name.value;if(null==n||void 0===n[r])return;let i=n[r];if(null===i&&eC(t))return;return i}if(eC(t)){if(e.kind===o.NULL)return;return nl(e,t.ofType,n)}if(e.kind===o.NULL)return null;if(eR(t)){let r=t.ofType;if(e.kind===o.LIST){let t=[];for(let i of e.values)if(nu(i,n)){if(eC(r))return;t.push(null)}else{let e=nl(i,r,n);if(void 0===e)return;t.push(e)}return t}let i=nl(e,r,n);if(void 0===i)return;return[i]}if(eP(t)){if(e.kind!==o.OBJECT)return;let r=Object.create(null),i=ei(e.fields,e=>e.name.value);for(let e of Object.values(t.getFields())){let t=i[e.name];if(!t||nu(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(eC(e.type))return;continue}let s=nl(t.value,e.type,n);if(void 0===s)return;r[e.name]=s}if(t.isOneOf){let e=Object.keys(r);if(1!==e.length||null===r[e[0]])return}return r}if(ej(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}y(!1,"Unexpected input type: "+G(t))}}function nu(e,t){return e.kind===o.VARIABLE&&(null==t||void 0===t[e.name.value])}function nc(e,t,n){var r;let i=null===(r=t.directives)||void 0===r?void 0:r.find(t=>t.name.value===e.name);if(i)return function(e,t,n){var r,i,s;let a={},l=ei(null!==(r=t.arguments)&&void 0!==r?r:[],e=>e.name.value);for(let r of e.args){let e=r.name,u=r.type,c=l[e];if(!c){if(void 0!==r.defaultValue)a[e]=r.defaultValue;else if(eC(u))throw new E(`Argument "${e}" of required type "${G(u)}" was not provided.`,{nodes:t});continue}let f=c.value,h=f.kind===o.NULL;if(f.kind===o.VARIABLE){let t=f.name.value;if(null==n||(i=n,s=t,!Object.prototype.hasOwnProperty.call(i,s))){if(void 0!==r.defaultValue)a[e]=r.defaultValue;else if(eC(u))throw new E(`Argument "${e}" of required type "${G(u)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:f});continue}h=null==n[t]}if(h&&eC(u))throw new E(`Argument "${e}" of non-null type "${G(u)}" must not be null.`,{nodes:f});let d=nl(f,u,n);if(void 0===d)throw new E(`Argument "${e}" has invalid value ${eg(f)}.`,{nodes:f});a[e]=d}return a}(e,i,n)}function nf(e,t){let n=nc(tp,t,e);if((null==n?void 0:n.if)===!0)return!1;let r=nc(td,t,e);return(null==r?void 0:r.if)!==!1}function nh(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=tY(e,r);return i===n||!!eU(i)&&e.isSubType(i,n)}function nd(e,t){let n=new Map;for(let r of e){let e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function np(e){return{Field:t,Directive:t};function t(t){var n;for(let[r,i]of nd(null!==(n=t.arguments)&&void 0!==n?n:[],e=>e.name.value))i.length>1&&e.reportError(new E(`There can be only one argument named "${r}".`,{nodes:i.map(e=>e.name)}))}}function nm(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():tb)t[e.name]=!e.isRepeatable;for(let n of e.getDocument().definitions)n.kind===o.DIRECTIVE_DEFINITION&&(t[n.name.value]=!n.repeatable);let r=Object.create(null),i=Object.create(null);return{enter(n){let s;if("directives"in n&&n.directives){if(n.kind===o.SCHEMA_DEFINITION||n.kind===o.SCHEMA_EXTENSION)s=r;else if(tZ(n)||t1(n)){let e=n.name.value;void 0===(s=i[e])&&(i[e]=s=Object.create(null))}else s=Object.create(null);for(let r of n.directives){let n=r.name.value;t[n]&&(s[n]?e.reportError(new E(`The directive "@${n}" can only be used once at this location.`,{nodes:[s[n],r]})):s[n]=r)}}}}}function ny(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let e=t.pop();e||y(!1),n=e}},ObjectField(t){let r=t.name.value;n[r]?e.reportError(new E(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function ng(e,t){let n=e.getInputType();if(!n)return;let r=eG(n);if(!ej(r)){let r=G(n);e.reportError(new E(`Expected value of type "${r}", found ${eg(t)}.`,{nodes:t}));return}try{let i=r.parseLiteral(t,void 0);if(void 0===i){let r=G(n);e.reportError(new E(`Expected value of type "${r}", found ${eg(t)}.`,{nodes:t}))}}catch(i){let r=G(n);i instanceof E?e.reportError(i):e.reportError(new E(`Expected value of type "${r}", found ${eg(t)}; `+i.message,{nodes:t,originalError:i}))}}let nb=Object.freeze([function(e){return{Document(t){for(let n of t.definitions)if(!tQ(n)){let t=n.kind===o.SCHEMA_DEFINITION||n.kind===o.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new E(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}},function(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new E(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}},function(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===o.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new E("This anonymous operation must be the only defined operation.",{nodes:n}))}}},function(e){return{OperationDefinition(t){if("subscription"===t.operation){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,s=Object.create(null),a=e.getDocument(),l=Object.create(null);for(let e of a.definitions)e.kind===o.FRAGMENT_DEFINITION&&(l[e.name.value]=e);let u=function(e,t,n,r,i){let s=new Map;return function e(t,n,r,i,s,a,l){for(let u of s.selections)switch(u.kind){case o.FIELD:{if(!nf(r,u))continue;let e=u.alias?u.alias.value:u.name.value,t=a.get(e);void 0!==t?t.push(u):a.set(e,[u]);break}case o.INLINE_FRAGMENT:if(!nf(r,u)||!nh(t,u,i))continue;e(t,n,r,i,u.selectionSet,a,l);break;case o.FRAGMENT_SPREAD:{let s=u.name.value;if(l.has(s)||!nf(r,u))continue;l.add(s);let o=n[s];if(!o||!nh(t,o,i))continue;e(t,n,r,i,o.selectionSet,a,l)}}}(e,t,n,r,i,s,new Set),s}(n,l,s,r,t.selectionSet);if(u.size>1){let t=[...u.values()].slice(1).flat();e.reportError(new E(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(let t of u.values())t[0].name.value.startsWith("__")&&e.reportError(new E(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}},t2,function(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let t=tY(e.getSchema(),n);if(t&&!eM(t)){let t=eg(n);e.reportError(new E(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){let n=tY(e.getSchema(),t.typeCondition);if(n&&!eM(n)){let n=eg(t.typeCondition);e.reportError(new E(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}},function(e){return{VariableDefinition(t){let n=tY(e.getSchema(),t.type);if(void 0!==n&&!eL(n)){let n=t.variable.name.value,r=eg(t.type);e.reportError(new E(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}},function(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if(ej(eG(n))){if(r){let i=t.name.value,s=G(n);e.reportError(new E(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){let r=t.name.value,i=G(n);e.reportError(new E(`Field "${r}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}else{let r=t.name.value,i=G(n);e.reportError(new E(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}},function(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let r=e.getSchema(),i=t.name.value,s=en("to use an inline fragment on",function(e,t,n){if(!eU(t))return[];let r=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[n])for(let e of(r.add(o),i[o.name]=1,o.getInterfaces())){var s;e.getFields()[n]&&(r.add(e),i[e.name]=(null!==(s=i[e.name])&&void 0!==s?s:0)+1)}return[...r].sort((t,n)=>{let r=i[n.name]-i[t.name];return 0!==r?r:ek(t)&&e.isSubType(t,n)?-1:ek(n)&&e.isSubType(n,t)?1:ea(t.name,n.name)}).map(e=>e.name)}(r,n,i));""===s&&(s=en(ew(n)||ek(n)?ec(i,Object.keys(n.getFields())):[])),e.reportError(new E(`Cannot query field "${i}" on type "${n.name}".`+s,{nodes:t}))}}}},function(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new E(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}},function(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new E(`Unknown fragment "${n}".`,{nodes:t.name}))}}},function(e){let t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){let r=Object.create(null);for(let n of t)for(let t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(let t of n){let n=t.name.value;!0!==r[n]&&e.reportError(new E(`Fragment "${n}" is never used.`,{nodes:t}))}}}}},function(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if(eM(n)&&eM(r)&&!tr(e.getSchema(),n,r)){let i=G(r),s=G(n);e.reportError(new E(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${s}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=function(e,t){let n=e.getFragment(t);if(n){let t=tY(e.getSchema(),n.typeCondition);if(eM(t))return t}}(e,n),i=e.getParentType();if(r&&i&&!tr(e.getSchema(),r,i)){let s=G(i),o=G(r);e.reportError(new E(`Fragment "${n}" cannot be spread here as objects of type "${s}" can never be of type "${o}".`,{nodes:t}))}}}},function(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:i=>((function i(s){if(t[s.name.value])return;let o=s.name.value;t[o]=!0;let a=e.getFragmentSpreads(s.selectionSet);if(0!==a.length){for(let t of(r[o]=n.length,a)){let s=t.name.value,o=r[s];if(n.push(t),void 0===o){let t=e.getFragment(s);t&&i(t)}else{let t=n.slice(o),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new E(`Cannot spread fragment "${s}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[o]=void 0}})(i),!1)}},function(e){return{OperationDefinition(t){var n;for(let[r,i]of nd(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],e=>e.variable.name.value))i.length>1&&e.reportError(new E(`There can be only one variable named "$${r}".`,{nodes:i.map(e=>e.variable.name)}))}}},function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:r}of e.getRecursiveVariableUsages(n)){let i=r.name.value;!0!==t[i]&&e.reportError(new E(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[r,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}},function(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null);for(let{node:t}of e.getRecursiveVariableUsages(n))r[t.name.value]=!0;for(let i of t){let t=i.variable.name.value;!0!==r[t]&&e.reportError(new E(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}},t3,nm,function(e){return{...t4(e),Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let n=t.name.value,s=ec(n,r.args.map(e=>e.name));e.reportError(new E(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+en(s),{nodes:t}))}}}},np,function(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){if(!eR(eq(e.getParentInputType())))return ng(e,t),!1},ObjectValue(n){let r=eG(e.getInputType());if(!eP(r))return ng(e,n),!1;let i=ei(n.fields,e=>e.name.value);for(let t of Object.values(r.getFields()))if(!i[t.name]&&tt(t)){let i=G(t.type);e.reportError(new E(`Field "${r.name}.${t.name}" of required type "${i}" was not provided.`,{nodes:n}))}r.isOneOf&&function(e,t,n,r,i){var s;let a=Object.keys(r);if(1!==a.length){e.reportError(new E(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=null===(s=r[a[0]])||void 0===s?void 0:s.value,u=!l||l.kind===o.NULL,c=(null==l?void 0:l.kind)===o.VARIABLE;if(u){e.reportError(new E(`Field "${n.name}.${a[0]}" must be non-null.`,{nodes:[t]}));return}if(c){let r=l.name.value;i[r].type.kind!==o.NON_NULL_TYPE&&e.reportError(new E(`Variable "${r}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}(e,n,r,i,t)},ObjectField(t){let n=eG(e.getParentInputType());if(!e.getInputType()&&eP(n)){let r=ec(t.name.value,Object.keys(n.getFields()));e.reportError(new E(`Field "${t.name.value}" is not defined by type "${n.name}".`+en(r),{nodes:t}))}},NullValue(t){let n=e.getInputType();eC(n)&&e.reportError(new E(`Expected value of type "${G(n)}", found ${eg(t)}.`,{nodes:t}))},EnumValue:t=>ng(e,t),IntValue:t=>ng(e,t),FloatValue:t=>ng(e,t),StringValue:t=>ng(e,t),BooleanValue:t=>ng(e,t)}},function(e){return{...no(e),Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map(e=>e.name.value));for(let n of r.args)if(!i.has(n.name)&&e4(n)){let i=G(n.type);e.reportError(new E(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}},function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:s,type:a,defaultValue:l,parentType:u}of e.getRecursiveVariableUsages(n)){let n=s.name.value,c=t[n];if(c&&a){var r,i;let t=e.getSchema(),f=tY(t,c.type);if(f&&(r=c.defaultValue,eC(a)&&!eC(f)?!((null!=r&&r.kind!==o.NULL||void 0!==l)&&tn(t,f,a.ofType)):!tn(t,f,a))){let t=G(f),r=G(a);e.reportError(new E(`Variable "$${n}" of type "${t}" used in position expecting type "${r}".`,{nodes:[c,s]}))}eP(u)&&u.isOneOf&&eO(i=f)&&!eC(i)&&e.reportError(new E(`Variable "$${n}" is of type "${f}" but must be non-nullable to be used for OneOf Input Object "${u}".`,{nodes:[c,s]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}},function(e){let t=new nr,n=new ni,r=new Map;return{SelectionSet(i){for(let[[s,o],a,l]of function(e,t,n,r,i,s){let o=[],[a,l]=nt(e,t,i,s);if(function(e,t,n,r,i,s){for(let[o,a]of Object.entries(s))if(a.length>1)for(let s=0;s<a.length;s++)for(let l=s+1;l<a.length;l++){let u=t9(e,n,r,i,!1,o,a[s],a[l]);u&&t.push(u)}}(e,o,t,n,r,a),0!==l.length)for(let i=0;i<l.length;i++){t6(e,o,t,n,r,!1,a,l[i]);for(let s=i+1;s<l.length;s++)t7(e,o,t,n,r,!1,l[i],l[s])}return o}(e,r,t,n,e.getParentType(),i)){let t=function e(t){return Array.isArray(t)?t.map(([t,n])=>`subfields "${t}" conflict because `+e(n)).join(" and "):t}(o);e.reportError(new E(`Fields "${s}" conflict because ${t}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:a.concat(l)}))}}}},ny,...Object.freeze([function(e){return{Field(t){if(("__schema"===t.name.value||"__type"===t.name.value)&&function t(n,r=Object.create(null),i=0){if(n.kind===o.FRAGMENT_SPREAD){let s=n.name.value;if(!0===r[s])return!1;let o=e.getFragment(s);if(!o)return!1;try{return r[s]=!0,t(o,r,i)}finally{r[s]=void 0}}if(n.kind===o.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++i>=3)return!0;if("selectionSet"in n&&n.selectionSet){for(let e of n.selectionSet.selections)if(t(e,r,i))return!0}return!1}(t))return e.reportError(new E("Maximum introspection depth exceeded",{nodes:[t]})),!1}}}])]),nv=Object.freeze([function(e){var t,n,r;let i=e.getSchema(),s=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType(),o=0;return{SchemaDefinition(t){if(s){e.reportError(new E("Cannot define a new schema within a schema extension.",{nodes:t}));return}o>0&&e.reportError(new E("Must provide only one schema definition.",{nodes:t})),++o}}},function(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(t){var i;for(let s of null!==(i=t.operationTypes)&&void 0!==i?i:[]){let t=s.operation,i=n[t];r[t]?e.reportError(new E(`Type for ${t} already defined in the schema. It cannot be redefined.`,{nodes:s})):i?e.reportError(new E(`There can be only one ${t} type in schema.`,{nodes:[i,s]})):n[t]=s}return!1}},function(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){let i=r.name.value;if(null!=n&&n.getType(i)){e.reportError(new E(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}));return}return t[i]?e.reportError(new E(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}},function(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;let s=t.name.value;r[s]||(r[s]=Object.create(null));let o=null!==(i=t.values)&&void 0!==i?i:[],a=r[s];for(let t of o){let r=t.name.value,i=n[s];eD(i)&&i.getValue(r)?e.reportError(new E(`Enum value "${s}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):a[r]?e.reportError(new E(`Enum value "${s}.${r}" can only be defined once.`,{nodes:[a[r],t.name]})):a[r]=t.name}return!1}},function(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(t){var i,s;let o=t.name.value;r[o]||(r[o]=Object.create(null));let a=null!==(i=t.fields)&&void 0!==i?i:[],l=r[o];for(let t of a){let r=t.name.value;(ew(s=n[o])||ek(s)||eP(s))&&null!=s.getFields()[r]?e.reportError(new E(`Field "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):l[r]?e.reportError(new E(`Field "${o}.${r}" can only be defined once.`,{nodes:[l[r],t.name]})):l[r]=t.name}return!1}},function(e){return{DirectiveDefinition(e){var t;let r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t,r;let i=e.name.value;for(let s of null!==(t=e.fields)&&void 0!==t?t:[]){let e=s.name.value;n(`${i}.${e}`,null!==(r=s.arguments)&&void 0!==r?r:[])}return!1}function n(t,n){for(let[r,i]of nd(n,e=>e.name.value))i.length>1&&e.reportError(new E(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:i.map(e=>e.name)}));return!1}},function(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(null!=n&&n.getDirective(i)){e.reportError(new E(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new E(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}},t2,t3,nm,function(e){let t=e.getSchema(),n=Object.create(null);for(let t of e.getDocument().definitions)tZ(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){let i;let s=r.name.value,a=n[s],l=null==t?void 0:t.getType(s);if(a?i=ns[a.kind]:l&&(i=ex(l)?o.SCALAR_TYPE_EXTENSION:ew(l)?o.OBJECT_TYPE_EXTENSION:ek(l)?o.INTERFACE_TYPE_EXTENSION:eA(l)?o.UNION_TYPE_EXTENSION:eD(l)?o.ENUM_TYPE_EXTENSION:eP(l)?o.INPUT_OBJECT_TYPE_EXTENSION:void y(!1,"Unexpected type: "+G(l))),i){if(i!==r.kind){let t=function(e){switch(e){case o.SCALAR_TYPE_EXTENSION:return"scalar";case o.OBJECT_TYPE_EXTENSION:return"object";case o.INTERFACE_TYPE_EXTENSION:return"interface";case o.UNION_TYPE_EXTENSION:return"union";case o.ENUM_TYPE_EXTENSION:return"enum";case o.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:y(!1,"Unexpected kind: "+G(e))}}(r.kind);e.reportError(new E(`Cannot extend non-${t} type "${s}".`,{nodes:a?[a,r]:r}))}}else{let i=ec(s,Object.keys({...n,...null==t?void 0:t.getTypeMap()}));e.reportError(new E(`Cannot extend type "${s}" because it is not defined.`+en(i),{nodes:r.name}))}}},t4,np,ny,no]);class n_{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{for(let e of(t=Object.create(null),this.getDocument().definitions))e.kind===o.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){let n;t=[];let r=[e];for(;n=r.pop();)for(let e of n.selections)e.kind===o.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&r.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){let n;t=[];let r=Object.create(null),i=[e.selectionSet];for(;n=i.pop();)for(let e of this.getFragmentSpreads(n)){let n=e.name.value;if(!0!==r[n]){r[n]=!0;let e=this.getFragment(n);e&&(t.push(e),i.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class nE extends n_{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class nT extends n_{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){let n=[],r=new tH(this._schema);Z(e,tJ(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){for(let n of(t=this.getVariableUsages(e),this.getRecursivelyReferencedFragments(e)))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}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 nS(e,t,n=nb,r,i=new tH(e)){var s;let o=null!==(s=null==r?void 0:r.maxErrors)&&void 0!==s?s:100;t||z(!1,"Must provide document."),tj(e);let a=Object.freeze({}),l=[],u=new nT(e,t,i,e=>{if(l.length>=o)throw l.push(new E("Too many validation errors, error limit reached. Validation aborted.")),a;l.push(e)}),c=ee(n.map(e=>e(u)));try{Z(t,tJ(i,c))}catch(e){if(e!==a)throw e}return l}let nI=e=>({onExecute:({setExecuteFn:t})=>{e.execute&&t(e.execute)},onParse:({setParseFn:t})=>{e.parse&&t(e.parse)},onValidate:({setValidationFn:t,addValidationRule:n})=>{e.validate&&t(e.validate),e.specifiedRules?.map(n)},onSubscribe:({setSubscribeFn:t})=>{e.subscribe&&t(e.subscribe)}}),nN=Symbol.for("@whatwg-node/promise-helpers/FakePromise");function nO(e){return e?.then!=null}function nx(e,t,n,r){let i=nw().then(e).then(t,n);return r&&(i=i.finally(r)),nC(i)}function nw(e){var t;return e&&(t=e)&&t.then&&t.catch&&t.finally?e:nO(e)?{then:(t,n)=>nw(e.then(t,n)),catch:t=>nw(e.then(e=>e,t)),finally:t=>nw(t?"finally"in e?e.finally(t):e.then(e=>{let n=t();return nO(n)?n.then(()=>e):e},e=>{let n=t();if(nO(n))return n.then(()=>{throw e});throw e}):e),[Symbol.toStringTag]:"Promise"}:{then(t){if(t)try{return nw(t(e))}catch(e){return nD(e)}return this},catch(){return this},finally(t){if(t)try{return nw(t()).then(()=>e,()=>e)}catch(e){return nD(e)}return this},[Symbol.toStringTag]:"Promise",__fakePromiseValue:e,[nN]:"resolved"}}function nk(){let e,t;return Promise.withResolvers?Promise.withResolvers():{promise:new Promise(function(n,r){e=n,t=r}),get resolve(){return e},get reject(){return t}}}function nA(e,t,n){if(e?.length===0)return;let r=e[Symbol.iterator](),i=0;return function e(){let{done:s,value:o}=r.next();if(s)return;let a=!1;function l(){a=!0}return nx(function(){return t(o,l,i++)},function(t){if(t&&n?.push(t),!a)return e()})}()}function nD(e){return{then(t,n){if(n)try{return nw(n(e))}catch(e){return nD(e)}return this},catch(t){if(t)try{return nw(t(e))}catch(e){return nD(e)}return this},finally(e){if(e)try{e()}catch(e){return nD(e)}return this},__fakeRejectError:e,[Symbol.toStringTag]:"Promise",[nN]:"rejected"}}function nP(e,t,n,r){let i,s,o,a;if(Symbol.asyncIterator in e&&(e=e[Symbol.asyncIterator]()),r){let e;o=t=>e||=nx(r,()=>t,()=>t)}function l(e){return e.done?o?o(e):e:nx(()=>e.value,e=>nx(()=>t(e),nR,s))}if("function"==typeof e.return&&(i=e.return,s=t=>{let n=()=>{throw t};return i.call(e).then(n,n)}),n){let e;a=t=>e||=nx(()=>t,e=>nx(()=>n(e),nR,s))}return{next:()=>e.next().then(l,a),return(){let t=i?i.call(e).then(l,a):nw({value:void 0,done:!0});return o?t.then(o):t},throw:t=>"function"==typeof e.throw?e.throw(t).then(l,a):s?s(t):nD(t),[Symbol.asyncIterator](){return this}}}function nR(e){return{value:e,done:!1}}function nC(e){if(e?.[nN]==="resolved")return e.__fakePromiseValue;if(e?.[nN]==="rejected")throw e.__fakeRejectError;return e}let nL=e=>({onContextBuilding:({context:t,extendContext:n})=>nx(()=>e(t),e=>n(e))});Symbol("ENVELOP_IS_INTROSPECTION");let nF=e=>(...t)=>e(function(e){return 1===e.length?e[0]:{schema:e[0],document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],fieldResolver:e[6],subscribeFieldResolver:e[7]}}(t)),nj=e=>(...t)=>e(function(e){return 1===e.length?e[0]:{schema:e[0],document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],fieldResolver:e[6],typeResolver:e[7]}}(t));function nM(e){return"object"==typeof e&&null!=e&&"function"==typeof e[Symbol.asyncIterator]}function nU(e,t){if(nM(e.result))return{onNext:t};t({args:e.args,result:e.result,setResult:e.setResult})}function n$(e,t){let n=e[Symbol.asyncIterator](),r=!1,i={[Symbol.asyncIterator]:()=>i,next:()=>n.next().then(e=>(e.done&&!1===r&&(r=!0,t()),e)),return(){let e=n.return?.();return!1===r&&(r=!0,t()),e||nw({done:!0,value:void 0})},throw(e){let t=n.throw?.();if(t)return t;throw e}};return i}let nB=(r=globalThis.process?.env?.NODE_ENV==="development",(e,t)=>!function e(t){return t instanceof Error&&"GraphQLError"===t.name&&(null==t.originalError||e(t.originalError))}(e)?function(e,t,n){let r=Error(e);if(r.name="GraphQLError",n){let e=t instanceof Error?{message:t.message,stack:t.stack}:{message:String(t)};Object.defineProperty(r,"extensions",{get:()=>e})}return Object.defineProperty(r,"toJSON",{value:()=>({message:r.message,extensions:r.extensions})}),r}(t,e,r):e),nV=(e,t)=>({result:n,setResult:r})=>{null!=n.errors&&r({...n,errors:n.errors.map(n=>e(n,t))})};function nq(e,t){let n={...t,...e};for(let r of Object.keys(n))r in e&&r in t&&(n[r]=(n,i)=>e[r](n,()=>t[r](n,i)));return n}let nz=e=>({fn:(t,n)=>t?(...r)=>{let i;return t(e,()=>{i=n(...r)}),i}:n,asyncFn:(t,n)=>t?(...r)=>{let i;return nx(()=>t(e,()=>nO(i=n(...r))?i.then(()=>void 0):void 0),()=>i)}:n}),nG=new WeakMap;function nY(e){throw Error(`No \`${e}\` function found! Register it using "useEngine" plugin.`)}function nH(e){return null!=e}function nW(e,t){let n=null;for(let i of e.definitions)if(i.kind===o.OPERATION_DEFINITION){var r;if(null==t){if(n)return null;n=i}else if((null===(r=i.name)||void 0===r?void 0:r.value)===t)return i}return n}function nJ(e){let t=new WeakMap;return function(n){let r=t.get(n);if(void 0===r){let r=e(n);return t.set(n,r),r}return r}}class nQ extends Error{constructor(e){super("Unexpected error value: "+G(e)),this.name="NonErrorThrown",this.thrownValue=e}}function nK(e,t,n){var r;let i=e instanceof Error?e:new nQ(e);return Array.isArray(i.path)?i:new E(i.message,{nodes:null!==(r=i.nodes)&&void 0!==r?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}let nX=Object.freeze({major:16,minor:11,patch:0,preReleaseTag:null});class nZ extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(e,t){let n=this.get(e);void 0===n?this.set(e,[t]):n.push(t)}}let n0=new th({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[s.FRAGMENT_SPREAD,s.INLINE_FRAGMENT],args:{if:{type:new eB(ta),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:to,description:"Unique name"}}}),n1=new th({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[s.FIELD],args:{if:{type:new eB(ta),description:"Stream when true or undefined.",defaultValue:!0},label:{type:to,description:"Unique name"},initialCount:{defaultValue:0,type:ti,description:"Number of items to return immediately"}}});function n4(e,t,n,r,i,s,a,l){for(let u of i.selections)switch(u.kind){case o.FIELD:if(!n2(n,u))continue;s.add(u.alias?u.alias.value:u.name.value,u);break;case o.INLINE_FRAGMENT:{if(!n2(n,u)||!n5(e,u,r))continue;let i=n6(n,u);if(i){let s=new nZ;n4(e,t,n,r,u.selectionSet,s,a,l),a.push({label:i.label,fields:s})}else n4(e,t,n,r,u.selectionSet,s,a,l);break}case o.FRAGMENT_SPREAD:{let i=u.name.value;if(!n2(n,u))continue;let o=n6(n,u);if(l.has(i)&&!o)continue;let c=t[i];if(!c||!n5(e,c,r))continue;if(o||l.add(i),o){let i=new nZ;n4(e,t,n,r,c.selectionSet,i,a,l),a.push({label:o.label,fields:i})}else n4(e,t,n,r,c.selectionSet,s,a,l)}}}function n3(e,t,n,r,i){let s=new nZ,o=[];return n4(e,t,n,r,i,s,o,new Set),{fields:s,patches:o}}function n2(e,t){let n=nc(tp,t,e);if(n?.if===!0)return!1;let r=nc(td,t,e);return r?.if!==!1}function n5(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=tY(e,r);return i===n||!!eU(i)&&e.getPossibleTypes(i).includes(n)}function n6(e,t){let n=nc(n0,t,e);if(n&&!1!==n.if)return{label:"string"==typeof n.label?n.label:void 0}}let n7=function(e){let t=new WeakMap;return function(n,r,i,s,o){let a=t.get(n);if(!a){a=new WeakMap,t.set(n,a);let l=new WeakMap;a.set(r,l);let u=new WeakMap;l.set(i,u);let c=new WeakMap;u.set(s,c);let f=e(n,r,i,s,o);return c.set(o,f),f}let l=a.get(r);if(!l){l=new WeakMap,a.set(r,l);let t=new WeakMap;l.set(i,t);let u=new WeakMap;t.set(s,u);let c=e(n,r,i,s,o);return u.set(o,c),c}let u=l.get(i);if(!u){u=new WeakMap,l.set(i,u);let t=new WeakMap;u.set(s,t);let a=e(n,r,i,s,o);return t.set(o,a),a}let c=u.get(s);if(!c){c=new WeakMap,u.set(s,c);let t=e(n,r,i,s,o);return c.set(o,t),t}let f=c.get(o);if(void 0===f){let t=e(n,r,i,s,o);return c.set(o,t),t}return f}}(function(e,t,n,r,i){let s=new nZ,o=new Set,a=[];for(let l of i)l.selectionSet&&n4(e,t,n,r,l.selectionSet,s,a,o);return{fields:s,patches:a}}),n8=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function n9(e,t){var n;return t?.originalError&&!(t.originalError instanceof Error)&&null!=(n=t.originalError)&&"object"==typeof n&&Object.keys(n).every(e=>n8.includes(e))&&(t.originalError=n9(t.originalError.message,t.originalError)),nX.major>=17?new E(e,t):new E(e,t?.nodes,t?.source,t?.positions,t?.path,t?.originalError,t?.extensions)}nJ(function(e){return new Set([...re(e)].map(e=>e.name))});let re=nJ(function(e){return new Set(rt(e).values())}),rt=nJ(function(e){let t=new Map,n=e.getQueryType();n&&t.set("query",n);let r=e.getMutationType();r&&t.set("mutation",r);let i=e.getSubscriptionType();return i&&t.set("subscription",i),t});function rn(e){return null!=e&&"object"==typeof e&&Symbol.iterator in e}function rr(e){return"object"==typeof e&&null!==e}function ri(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function rs(e,t,n){return{prev:e,key:t,typename:n}}function ro(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function ra(e){return rl(e,[])}function rl(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(e instanceof Error)return"AggregateError"===e.name?ru(e)+"\n"+rc(e.errors,t):ru(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if("function"==typeof e.toJSON){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:rl(t,n)}else if(Array.isArray(e))return rc(e,n);return function(e,t){let n=Object.entries(e);return 0===n.length?"{}":t.length>3?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]":"{ "+n.map(([e,n])=>e+": "+rl(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function ru(e){return e.name="GraphQLError",e.toString()}function rc(e,t){if(0===e.length)return"[]";if(t.length>3)return"[Array]";let n=e.length,r=[];for(let i=0;i<n;++i)r.push(rl(e[i],t));return"["+r.join(", ")+"]"}function rf(e,t,n={}){let r={},i=(t.arguments??[]).reduce((e,t)=>({...e,[t.name.value]:t}),{});for(let{name:s,type:a,defaultValue:l}of e.args){let e=i[s];if(!e){if(void 0!==l)r[s]=l;else if(eC(a))throw n9(`Argument "${s}" of required type "${ra(a)}" was not provided.`,{nodes:[t]});continue}let u=e.value,c=u.kind===o.NULL;if(u.kind===o.VARIABLE){let e=u.name.value;if(null==n||!ri(n,e)){if(void 0!==l)r[s]=l;else if(eC(a))throw n9(`Argument "${s}" of required type "${ra(a)}" was provided the variable "$${e}" which was not provided a runtime value.`,{nodes:[u]});continue}c=null==n[e]}if(c&&eC(a))throw n9(`Argument "${s}" of non-null type "${ra(a)}" must not be null.`,{nodes:[u]});let f=nl(u,a,n);if(void 0===f)throw n9(`Argument "${s}" has invalid value ${eg(u)}.`,{nodes:[u]});r[s]=f}return r}function rh(e){return e?.[Symbol.asyncIterator]!=null}let rd={get dispose(){return Symbol.dispose||Symbol.for("dispose")},get asyncDispose(){return Symbol.asyncDispose||Symbol.for("asyncDispose")}};function rp(e){if(e instanceof Error)return e;if("object"==typeof e&&null!=e&&"message"in e&&"string"==typeof e.message){let t;"cause"in e&&(t={cause:e.cause});let n=Error(e.message,t);return"stack"in e&&"string"==typeof e.stack&&(n.stack=e.stack),"name"in e&&"string"==typeof e.name&&(n.name=e.name),n}return Error(String(e))}function rm(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}function ry(e,t,n){t?.throwIfAborted();let r=Object.create(null),i=[];for(let t in e){let n=nx(()=>e[t],e=>{r[t]=e});nO(n)&&i.push(n)}if(!i.length)return r;let s=1===i.length?i[0]:Promise.all(i);return n?Promise.race([n,s]).then(()=>r):s.then(()=>r)}function rg(e,t,n){return{prev:e,key:t,typename:n}}function rb(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}let rv=function(e){let t=new WeakMap;return function(n,r,i){let s=t.get(n);if(!s){s=new WeakMap,t.set(n,s);let o=new WeakMap;s.set(r,o);let a=e(n,r,i);return o.set(i,a),a}let o=s.get(r);if(!o){o=new WeakMap,s.set(r,o);let t=e(n,r,i);return o.set(i,t),t}let a=o.get(i);if(void 0===a){let t=e(n,r,i);return o.set(i,t),t}return a}}((e,t,n)=>n7(e.schema,e.fragments,e.variableValues,t,n));function r_(e){return e.signal?.throwIfAborted(),nx(()=>(function(e){let t;let{operation:n,schema:r,fragments:i,variableValues:s,rootValue:o}=e,a=function(e,t,n){let r=rt(e).get(t);if(null==r)throw n9(`Schema is not configured to execute ${t} operation.`,{nodes:n});return r}(r,n.operation,[n]);null==a&&n9(`Schema is not configured to execute ${n.operation} operation.`,{nodes:n});let{fields:l,patches:u}=n3(r,i,s,a,n.selectionSet),c=void 0;for(let r of(t="mutation"===n.operation?function(e,t,n){let r=n;for(let n of e)r=nx(()=>r,e=>t(e,n));return r}(l,(t,[n,r])=>{let i=rs(c,n,a.name);return e.signal?.throwIfAborted(),nx(()=>rN(e,a,o,r,i),e=>(void 0===e||(t[n]=e),t))},Object.create(null)):rI(e,a,o,c,l),u)){let{label:t,fields:n}=r;rq(e,a,o,n,t,c)}return t})(e),t=>{let n=rE(t,e.errors);return e.subsequentPayloads.size>0?{initialResult:{...n,hasNext:!0},subsequentResults:function(e){let t=!1;async function n(){if(t)return{value:void 0,done:!0};let r=Array.from(e.subsequentPayloads).map(e=>e.promise);if(e.signalPromise?await Promise.race([e.signalPromise,...r]):await Promise.race(r),t)return{value:void 0,done:!0};let i=function(e){let t=[];for(let n of e.subsequentPayloads){let r={};if(n.isCompleted){if(e.subsequentPayloads.delete(n),rJ(n)){let e=n.items;if(n.isCompletedIterator)continue;r.items=e}else{let e=n.data;r.data=e??null}r.path=n.path,n.label&&(r.label=n.label),n.errors.length>0&&(r.errors=n.errors),t.push(r)}}return t}(e),s=e.subsequentPayloads.size>0;return!i.length&&s?n():(s||(t=!0),{value:i.length?{incremental:i,hasNext:s}:{hasNext:s},done:!1})}function r(){let t=[];return e.subsequentPayloads.forEach(e=>{rJ(e)&&e.iterator?.return&&t.push(e.iterator.return())}),Promise.all(t)}return{[Symbol.asyncIterator](){return this},next:n,return:async()=>(await r(),t=!0,{value:void 0,done:!0}),async throw(e){throw await r(),t=!0,e},async [rd.asyncDispose](){await r(),t=!0}}}(e)}:n},t=>(e.signal?.throwIfAborted(),t.errors?e.errors.push(...t.errors):e.errors.push(t),rE(null,e.errors)))}function rE(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}let rT=nJ(function(e){let t=Object.create(null);for(let n of e.definitions)n.kind===o.FRAGMENT_DEFINITION&&(t[n.name.value]=n);return t});function rS(e){let t,n,r;let{schema:i,document:s,rootValue:a,contextValue:l,variableValues:u,operationName:c,fieldResolver:f,typeResolver:h,subscribeFieldResolver:d,signal:p}=e;p?.throwIfAborted(),tj(i);let g=rT(s);for(let e of s.definitions)if(e.kind===o.OPERATION_DEFINITION){if(null==c){if(void 0!==t)return[n9("Must provide operation name if query contains multiple operations.",{extensions:{code:"OPERATION_RESOLUTION_FAILURE"}})];t=e}else e.name?.value===c&&(t=e)}if(null==t)return null!=c?[n9(`Unknown operation named "${c}".`,{extensions:{code:"OPERATION_RESOLUTION_FAILURE"}})]:[n9("Must provide an operation.",{extensions:{code:"OPERATION_RESOLUTION_FAILURE"}})];let b=function(e,t,n,r){let i=[],s=r?.maxErrors;try{let r=function(e,t,n,r){let i={};for(let s of t){let t=s.variable.name.value,o=tY(e,s.type);if(!eL(o)){let e=eg(s.type);r(n9(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:s.type}));continue}if(!ri(n,t)){if(s.defaultValue)i[t]=nl(s.defaultValue,o);else if(eC(o)){let e=ra(o);r(n9(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:s}))}continue}let a=n[t];if(null===a&&eC(o)){let e=ra(o);r(n9(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:s}));continue}i[t]=function(e,t,n=function(e,t,n){let r="Invalid value "+G(t);throw e.length>0&&(r+=` at "value${e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}"`),n.message=r+": "+n.message,n}){return function e(t,n,r,i){if(eC(n))return null!=t?e(t,n.ofType,r,i):void r(rb(i),t,new E(`Expected non-nullable type "${G(n)}" not to be null.`));if(null==t)return null;if(eR(n)){let s=n.ofType;return t_(t)?Array.from(t,(t,n)=>e(t,s,r,rg(i,n,void 0))):[e(t,s,r,i)]}if(eP(n)){if(!m(t)||Array.isArray(t)){r(rb(i),t,new E(`Expected type "${n.name}" to be an object.`));return}let s={},o=n.getFields();for(let a of Object.values(o)){let o=t[a.name];if(void 0===o){if(void 0!==a.defaultValue)s[a.name]=a.defaultValue;else if(eC(a.type)){let e=G(a.type);r(rb(i),t,new E(`Field "${a.name}" of required type "${e}" was not provided.`))}continue}s[a.name]=e(o,a.type,r,rg(i,a.name,n.name))}for(let e of Object.keys(t))if(!o[e]){let s=ec(e,Object.keys(n.getFields()));r(rb(i),t,new E(`Field "${e}" is not defined by type "${n.name}".`+en(s)))}if(n.isOneOf){let e=Object.keys(s);1!==e.length&&r(rb(i),t,new E(`Exactly one key must be specified for OneOf type "${n.name}".`));let o=e[0],a=s[o];null===a&&r(rb(i).concat(o),a,new E(`Field "${o}" must be non-null.`))}return s}if(ej(n)){let e;try{e=n.parseValue(t)}catch(e){e instanceof E?r(rb(i),t,e):r(rb(i),t,new E(`Expected type "${n.name}". `+e.message,{originalError:e}));return}return void 0===e&&r(rb(i),t,new E(`Expected type "${n.name}".`)),e}y(!1,"Unexpected input type: "+G(n))}(e,t,n,void 0)}(a,o,(e,n,i)=>{let o=`Variable "$${t}" got invalid value `+ra(n);e.length>0&&(o+=` at "${t}${e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}"`),r(n9(o+"; "+i.message,{nodes:s,originalError:i}))})}return i}(e,t,n,e=>{if(null!=s&&i.length>=s)throw n9("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:r}}catch(e){i.push(e)}return{errors:i}}(i,t.variableDefinitions??[],u??{},{maxErrors:50});if(b.errors)return b.errors;if(p?.throwIfAborted(),p){let e=new Set,t=nk();r=t.promise;let i=()=>{t.reject(p.reason),p.removeEventListener("abort",i)};p.addEventListener("abort",i,{once:!0}),r.catch(()=>{for(let t of e)t();e.clear()}),n=t=>{e.add(t)}}return{schema:i,fragments:g,rootValue:a,contextValue:l,operation:t,variableValues:b.coerced,fieldResolver:f??rj,typeResolver:h??rF,subscribeFieldResolver:d??rj,subsequentPayloads:new Set,errors:[],signal:p,onSignalAbort:n,signalPromise:r}}function rI(e,t,n,r,i,s){let o=Object.create(null),a=!1;try{for(let[l,u]of i){e.signal?.throwIfAborted();let i=rs(r,l,t.name),c=rN(e,t,n,u,i,s);void 0!==c&&(o[l]=c,nO(c)&&(a=!0))}}catch(t){if(t!==e.signal?.reason&&a)return nx(()=>ry(o,e.signal),()=>{throw t},()=>{throw t});throw t}return a?ry(o,e.signal,e.signalPromise):o}function rN(e,t,n,r,i,s){let o=s?.errors??e.errors,a=rQ(e.schema,t,r[0]);if(!a)return;let l=a.type,u=a.resolve??e.fieldResolver,c=rO(e,a,r,t,i);try{let t;e.signal?.throwIfAborted();let f=rf(a,r[0],e.variableValues),h=e.contextValue,d=u(n,f,h,c);if(t=nO(d)?d.then(t=>rw(e,l,r,c,i,t,s)):rw(e,l,r,c,i,d,s),nO(t))return t.then(void 0,t=>{if(t instanceof AggregateError){let n;for(let a of t.errors){a=rp(a);let t=nK(a,r,ro(i));n=rx(t,l,o),rY(e,i,s)}return n}t=rp(t);let n=nK(t,r,ro(i)),a=rx(n,l,o);return rY(e,i,s),a});return t}catch(n){if(n instanceof AggregateError){let t;for(let a of n.errors)t=rx(nK(a=rp(a),r,ro(i)),l,o),rY(e,i,s);return t}let t=rx(nK(rp(n),r,ro(i)),l,o);return rY(e,i,s),t}}function rO(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,signal:e.signal}}function rx(e,t,n){if(eC(t)||e.extensions?.CRITICAL_ERROR)throw e;return n.push(e),null}function rw(e,t,n,r,i,s,o){if(s instanceof Error)throw s;if(eC(t)){let a=rw(e,t.ofType,n,r,i,s,o);if(null===a)throw Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return a}return null==s?null:eR(t)?function(e,t,n,r,i,s,o){let a=t.ofType,l=o?.errors??e.errors;if(rh(s))return rA(e,a,n,r,i,s[Symbol.asyncIterator](),o);if(!rn(s))throw n9(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let u=rk(e,n,i),c=!1,f=o,h=[],d=0;for(let t of s){let s=rs(i,d,void 0);if(u&&"number"==typeof u.initialCount&&d>=u.initialCount){f=function(e,t,n,r,i,s,o,a,l){let u,c;let f=new rW({label:a,path:t,parentContext:l,exeContext:r});try{try{u=nO(n)?n.then(e=>rw(r,o,i,s,t,e,f)):rw(r,o,i,s,t,n,f),nO(u)&&(u=u.then(void 0,e=>{e=rp(e);let n=nK(e,i,ro(t)),s=rx(n,o,f.errors);return rY(r,t,f),s}))}catch(s){let e=rp(s),n=nK(e,i,ro(t));u=rx(n,o,f.errors),rY(r,t,f)}}catch(t){return f.errors.push(t),rY(r,e,f),f.addItems(null),f}return c=nO(u)?u.then(e=>[e],t=>(f.errors.push(t),rY(r,e,f),null)):[u],f.addItems(c),f}(i,s,t,e,n,r,a,u.label,f),d++;continue}rD(t,h,l,e,a,n,r,s,o)&&(c=!0),d++}return c?Promise.all(h):h}(e,t,n,r,i,s,o):ej(t)?function(e,t){let n;try{n=e.serialize(t)}catch(e){if(e instanceof E)throw Error(e.message);throw e}if(null==n)throw Error(`Expected \`${ra(e)}.serialize(${ra(t)})\` to return non-nullable value, returned: ${ra(n)}`);return n}(t,s):eU(t)?function(e,t,n,r,i,s,o){let a=(t.resolveType??e.typeResolver)(s,e.contextValue,r,t);return nO(a)?a.then(a=>rR(e,rP(a,e,t,n,r,s),n,r,i,s,o)):rR(e,rP(a,e,t,n,r,s),n,r,i,s,o)}(e,t,n,r,i,s,o):ew(t)?rR(e,t,n,r,i,s,o):void console.assert(!1,"Cannot complete value of unexpected output type: "+ra(t))}function rk(e,t,n){if("number"==typeof n.key)return;let r=nc(n1,t[0],e.variableValues);if(r&&!1!==r.if)return rm("number"==typeof r.initialCount,"initialCount must be a number"),rm(r.initialCount>=0,"initialCount must be a positive integer"),{initialCount:r.initialCount,label:"string"==typeof r.label?r.label:void 0}}async function rA(e,t,n,r,i,s,o){e.signal?.throwIfAborted(),s.return&&e.onSignalAbort?.(()=>{s.return?.()});let a=o?.errors??e.errors,l=rk(e,n,i),u=!1,c=[],f=0;for(;;){let h;if(l&&"number"==typeof l.initialCount&&f>=l.initialCount){rG(f,s,e,n,r,t,i,l.label,o);break}let d=rs(i,f,void 0);try{if((h=await s.next()).done)break}catch(r){let e=nK(rp(r),n,ro(d));c.push(rx(e,t,a));break}rD(h.value,c,a,e,t,n,r,d,o)&&(u=!0),f+=1}return u?Promise.all(c):c}function rD(e,t,n,r,i,s,o,a,l){try{let u;if(u=nO(e)?e.then(e=>rw(r,i,s,o,a,e,l)):rw(r,i,s,o,a,e,l),nO(u))return t.push(u.then(void 0,e=>{e=rp(e);let t=nK(e,s,ro(a)),o=rx(t,i,n);return rY(r,a,l),o})),!0;t.push(u)}catch(o){let e=rx(nK(rp(o),s,ro(a)),i,n);rY(r,a,l),t.push(e)}return!1}function rP(e,t,n,r,i,s){if(null==e)throw n9(`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.`,{nodes:r});if(ew(e)){if(nX.major>=16)throw n9("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");e=e.name}if("string"!=typeof e)throw n9(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${ra(s)}, received "${ra(e)}".`);let o=t.schema.getType(e);if(null==o)throw n9(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!ew(o))throw n9(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw n9(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function rR(e,t,n,r,i,s,o){if(t.isTypeOf){let a=t.isTypeOf(s,e.contextValue,r);if(nO(a))return a.then(r=>{if(!r)throw rC(t,s,n);return rL(e,t,n,i,s,o)});if(!a)throw rC(t,s,n)}return rL(e,t,n,i,s,o)}function rC(e,t,n){return n9(`Expected value of type "${e.name}" but got: ${ra(t)}.`,{nodes:n})}function rL(e,t,n,r,i,s){let{fields:o,patches:a}=rv(e,t,n),l=rI(e,t,i,r,o,s);for(let n of a){let{label:o,fields:a}=n;rq(e,t,i,a,o,r,s)}return l}let rF=function(e,t,n,r){if(rr(e)&&"string"==typeof e.__typename)return e.__typename;let i=n.schema.getPossibleTypes(r),s=[];for(let r=0;r<i.length;r++){let o=i[r];if(o.isTypeOf){let i=o.isTypeOf(e,t,n);if(nO(i))s[r]=i;else if(i)return o.name}}if(s.length)return Promise.all(s).then(e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name})},rj=function(e,t,n,r){if(rr(e)||"function"==typeof e){let i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function rM(e){let t=e.subsequentResults,n=!1,r=!1;return{[Symbol.asyncIterator](){return this},next:()=>r?nw({value:void 0,done:r}):n?t.next():(n=!0,nw({value:e.initialResult,done:r})),return:()=>(r=!0,t.return()),throw:e=>(r=!0,t.throw(e)),[rd.asyncDispose]:()=>(r=!0,t?.[rd.asyncDispose]?.())}}async function*rU(e){"initialResult"in e?yield*rM(e):yield e}function r$(e,t){return rh(t)?function(e){let t,n;let r=e[Symbol.asyncIterator](),i=!1;async function s(){if(i)return{value:void 0,done:!0};try{if(!t){let e;if(n)return await n,await s();n=new Promise(t=>{e=t});let o=await r.next();if(o.done)return i=!0,await s();return t=o.value[Symbol.asyncIterator](),n=void 0,e(),await s()}let e=t,o=await t.next();if(!o.done)return o;return t===e&&(t=void 0),await s()}catch(e){throw i=!0,e}}return{next:s,return:async()=>(i=!0,await Promise.all([t?.return?.(),r.return?.()]),{value:void 0,done:!0}),async throw(e){throw i=!0,await Promise.all([t?.throw?.(e),r.throw?.(e)]),e},[Symbol.asyncIterator](){return this},async [rd.asyncDispose](){i=!0,await Promise.all([t?.[rd.asyncDispose]?.(),r?.[rd.asyncDispose]?.()])}}}(nP(t,t=>nx(()=>r_({...e,rootValue:t,subsequentPayloads:new Set,errors:[]}),rU),t=>{if(t instanceof AggregateError)throw AggregateError(t.errors.map(t=>rB(t,e.operation)),t.message);throw rB(t,e.operation)})):t}function rB(e,t){return n9(e.message,{originalError:e,nodes:[t]})}function rV(e,t,n){if(t?.throwIfAborted(),e instanceof Error)throw e;if(!rh(e))throw n9(`Subscription field must return Async Iterable. Received: ${ra(e)}.`);return n?{[Symbol.asyncIterator](){let t=e[Symbol.asyncIterator]();return t.return&&n?.(()=>{t.return?.()}),t}}:e}function rq(e,t,n,r,i,s,o){let a;let l=new rH({label:i,path:s,parentContext:o,exeContext:e});try{a=rI(e,t,n,s,r,l),nO(a)&&(a=a.then(null,e=>(l.errors.push(e),null)))}catch(e){l.errors.push(e),a=null}l.addData(a)}async function rz(e,t,n,r,i,s,o){let a,l;try{let{value:t,done:n}=await e.next();if(n)return s.setIsCompletedIterator(),{done:n,value:void 0};a=t}catch(e){return{done:!0,value:rx(nK(rp(e),n,ro(o)),i,s.errors)}}try{return l=rw(t,i,n,r,o,a,s),nO(l)&&(l=l.then(void 0,e=>{let r=nK(e,n,ro(o)),a=rx(r,i,s.errors);return rY(t,o,s),a})),{done:!1,value:l}}catch(r){let e=rx(nK(r,n,ro(o)),i,s.errors);return rY(t,o,s),{done:!1,value:e}}}async function rG(e,t,n,r,i,s,o,a,l){let u=e,c=l??void 0;for(;;){let e,l;let f=rs(o,u,void 0),h=new rW({label:a,path:f,parentContext:c,iterator:t,exeContext:n});try{e=await rz(t,n,r,i,s,h,f)}catch(e){h.errors.push(e),rY(n,o,h),h.addItems(null),t?.return&&t.return().catch(()=>{});return}let{done:d,value:p}=e;if(l=nO(p)?p.then(e=>[e],e=>(h.errors.push(e),rY(n,o,h),null)):[p],h.addItems(l),d)break;c=h,u++}}function rY(e,t,n){let r=ro(t);e.subsequentPayloads.forEach(t=>{if(t!==n){for(let e=0;e<r.length;e++)if(t.path[e]!==r[e])return;rJ(t)&&t.iterator?.return&&t.iterator.return().catch(()=>{}),e.subsequentPayloads.delete(t)}})}class rH{type;errors;label;path;promise;data;parentContext;isCompleted;_exeContext;_resolve;constructor(e){this.type="defer",this.label=e.label,this.path=ro(e.path),this.parentContext=e.parentContext,this.errors=[],this._exeContext=e.exeContext,this._exeContext.subsequentPayloads.add(this),this.isCompleted=!1,this.data=null,this.promise=new Promise(e=>{this._resolve=t=>{e(t)}}).then(e=>{this.data=e,this.isCompleted=!0})}addData(e){let t=this.parentContext?.promise;if(t){this._resolve?.(t.then(()=>e));return}this._resolve?.(e)}}class rW{type;errors;label;path;items;promise;parentContext;iterator;isCompletedIterator;isCompleted;_exeContext;_resolve;constructor(e){this.type="stream",this.items=null,this.label=e.label,this.path=ro(e.path),this.parentContext=e.parentContext,this.iterator=e.iterator,this.errors=[],this._exeContext=e.exeContext,this._exeContext.subsequentPayloads.add(this),this.isCompleted=!1,this.items=null,this.promise=new Promise(e=>{this._resolve=t=>{e(t)}}).then(e=>{this.items=e,this.isCompleted=!0})}addItems(e){let t=this.parentContext?.promise;if(t){this._resolve?.(t.then(()=>e));return}this._resolve?.(e)}setIsCompletedIterator(){this.isCompletedIterator=!0}}function rJ(e){return"stream"===e.type}function rQ(e,t,n){let r=n.name.value;return r===tA.name&&e.getQueryType()===t?tA:r===tD.name&&e.getQueryType()===t?tD:r===tP.name?tP:t.getFields()[r]}function rK(e){let t=nW(e.document,e.operationName);if(null==t)throw Error("Must provide an operation.");return"subscription"===t.operation?function(e){let t=rS(e);if(!("schema"in t)){for(let e of t){let t=e.extensions||={};(t.http||={}).status=400,e.extensions.code="BAD_USER_INPUT"}return{errors:t}}let n=function(e){try{let t=function(e){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:s}=e,o=t.getSubscriptionType();if(null==o)throw n9("Schema is not configured to execute subscription operation.",{nodes:r});let{fields:a}=n3(t,n,i,o,r.selectionSet),[l,u]=[...a.entries()][0],c=u[0].name.value,f=rQ(t,o,u[0]);if(!f)throw n9(`The subscription field "${c}" is not defined.`,{nodes:u});let h=rs(void 0,l,o.name),d=rO(e,f,u,o,h);try{let t=rf(f,u[0],i),n=e.contextValue,r=(f.subscribe??e.subscribeFieldResolver)(s,t,n,d);if(nO(r))return r.then(t=>rV(t,e.signal,e.onSignalAbort)).then(void 0,e=>{throw nK(e,u,ro(h))});return rV(r,e.signal,e.onSignalAbort)}catch(e){throw nK(e,u,ro(h))}}(e);if(nO(t))return t.then(void 0,e=>({errors:[e]}));return t}catch(e){return{errors:[e]}}}(t);return nO(n)?n.then(e=>r$(t,e)):r$(t,n)}(e):nx(()=>(function(e){let t=rS(e);return"schema"in t?r_(t):{errors:t.map(e=>(Object.defineProperty(e,"extensions",{value:{...e.extensions,http:{...e.extensions?.http||{},status:400}}}),e))}})(e),e=>e?.initialResult?rM(e):e)}nJ(function(e){return function(t){return rK({schema:e,document:t.document,variableValues:t.variables,operationName:t.operationName,rootValue:t.rootValue,contextValue:t.context,signal:t.signal||t.info?.signal})}});let rX={red:"\x1b[31m",yellow:"\x1b[33m",magenta:"\x1b[35m",cyan:"\x1b[36m",reset:"\x1b[0m"},rZ=rX.yellow+"WARN"+rX.reset,r0=rX.cyan+"INFO"+rX.reset,r1=rX.red+"ERR"+rX.reset,r4=rX.magenta+"DEBUG"+rX.reset,r3={debug:0,info:1,warn:2,error:3,silent:4},r2=()=>{},r5=e=>(...t)=>console.log(e,...t),r6=console.debug?(...e)=>console.debug(r4,...e):r5(r4),r7=console.info?(...e)=>console.info(r0,...e):r5(r0),r8=console.warn?(...e)=>console.warn(rZ,...e):r5(rZ),r9=console.error?(...e)=>console.error(r1,...e):r5(r1),ie=(e=globalThis.process?.env.DEBUG==="1"?"debug":"info")=>{let t=r3[e];return{debug:t>r3.debug?r2:r6,info:t>r3.info?r2:r7,warn:t>r3.warn?r2:r8,error:t>r3.error?r2:r9}};var it=n(72600),ir=n.t(it,2);class ii extends Error{error;suppressed;constructor(e,t,n){super(n),this.error=e,this.suppressed=t,this.name="SuppressedError",Error.captureStackTrace(this,this.constructor)}}function is(e){return e?.[rd.dispose]!=null}let io=globalThis.SuppressedError||ii;class ia{callbacks=[];get disposed(){return 0===this.callbacks.length}use(e){return e?.[rd.asyncDispose]!=null?this.callbacks.push(()=>e[rd.asyncDispose]()):is(e)&&this.callbacks.push(()=>e[rd.dispose]()),e}adopt(e,t){return t&&this.callbacks.push(()=>t(e)),e}defer(e){e&&this.callbacks.push(e)}move(){let e=new ia;return e.callbacks=this.callbacks,this.callbacks=[],e}disposeAsync(){return this[rd.asyncDispose]()}_error;_iterateCallbacks(){let e=this.callbacks.pop();if(e)return nx(e,()=>this._iterateCallbacks(),e=>(this._error=this._error?new io(e,this._error):e,this._iterateCallbacks()))}[rd.asyncDispose](){let e=this._iterateCallbacks();if(e?.then)return e.then(()=>{if(this._error){let e=this._error;throw this._error=void 0,e}});if(this._error){let e=this._error;throw this._error=void 0,e}}[Symbol.toStringTag]="AsyncDisposableStack"}let il=globalThis.SuppressedError||ii;class iu{callbacks=[];get disposed(){return 0===this.callbacks.length}use(e){return is(e)&&this.callbacks.push(()=>e[rd.dispose]()),e}adopt(e,t){return t&&this.callbacks.push(()=>t(e)),e}defer(e){e&&this.callbacks.push(e)}move(){let e=new iu;return e.callbacks=this.callbacks,this.callbacks=[],e}dispose(){return this[rd.dispose]()}_error;_iterateCallbacks(){let e=this.callbacks.pop();if(e){try{e()}catch(e){this._error=this._error?new il(e,this._error):e}return this._iterateCallbacks()}}[rd.dispose](){if(this._iterateCallbacks(),this._error){let e=this._error;throw this._error=void 0,e}}[Symbol.toStringTag]="DisposableStack"}globalThis.DisposableStack;let ic=globalThis.AsyncDisposableStack||ia;function ih(e){return null!=e&&"object"==typeof e&&"function"==typeof e[Symbol.asyncIterator]}function id(e,t,n,r){let i=e.raw||e.req||e,s=function(e){let t=function(e){if(e.headers?.[":authority"])return e.headers?.[":authority"];if(e.headers?.host)return e.headers?.host;let t=function(e){if(e.socket?.localPort)return e.socket?.localPort;let t=e.headers?.[":authority"]||e.headers?.host;return t?.split(":")?.[1]||80}(e);if(e.hostname)return e.hostname+":"+t;let n=e.socket?.localAddress;return!n||n?.includes("::")||n?.includes("ffff")?"localhost":`${n}:${t}`}(e),n=e.protocol||(e.socket?.encrypted?"https":"http"),r=e.originalUrl||e.url||"/graphql";return`${n}://${t}${r}`}(i);if(e.query){let n=new t.URL(s);for(let t in e.query)n.searchParams.set(t,e.query[t]);s=n.toString()}let o=e.headers;if(e.headers?.[":method"])for(let t in o={},e.headers)t.startsWith(":")||(o[t]=e.headers[t]);let a=r?iO():new AbortController;if(n?.once){let e=()=>{a.signal.aborted||(Object.defineProperty(i,"aborted",{value:!0}),a.abort(n.errored??void 0))};n.once("error",e),n.once("close",e),n.once("finish",()=>{n.removeListener("close",e)})}if("GET"===e.method||"HEAD"===e.method)return new t.Request(s,{method:e.method,headers:o,signal:a.signal});let l=e.body;if(null!=l&&Object.keys(l).length>0){if(function(e){let t=e[Symbol.toStringTag];return!!("string"==typeof e||"Uint8Array"===t||"Blob"===t||"FormData"===t||"URLSearchParams"===t||ih(e))}(l))return new t.Request(s,{method:e.method||"GET",headers:o,body:l,signal:a.signal});let n=new t.Request(s,{method:e.method||"GET",headers:o,signal:a.signal});return n.headers.get("content-type")?.includes("json")||n.headers.set("content-type","application/json; charset=utf-8"),new Proxy(n,{get:(e,t,n)=>{switch(t){case"json":return()=>nw(l);case"text":return()=>nw(JSON.stringify(l));default:if(globalThis.Bun)return Reflect.get(e,t);return Reflect.get(e,t,n)}}})}return new t.Request(s,{method:e.method,headers:o,signal:a.signal,body:i,duplex:"half"})}function ip(e){return null!=e.read}function im(e){return null!=e&&null!=e.setHeader&&null!=e.end&&null!=e.once&&null!=e.write}function iy(e){e.end(null,null,null)}function ig(e,t){if(!t.write(e))return new Promise(e=>t.once("drain",e))}function ib(...e){let[t,...n]=e.filter(e=>null!=e&&"object"==typeof e);return n.forEach(e=>{let n=Object.getOwnPropertyNames(e).reduce((t,n)=>(Object.getOwnPropertyDescriptor(e,n)&&(t[n]=Object.getOwnPropertyDescriptor(e,n)),t),{});Object.getOwnPropertySymbols(e).forEach(t=>{let r=Object.getOwnPropertyDescriptor(e,t);r?.enumerable&&(n[t]=r)}),Object.defineProperties(t,n)}),t}function iv(e,t){return new t(e.stack||e.message||e.toString(),{status:e.status||500})}function i_(e,t){return null==e?null==t?{}:{waitUntil:t}:ib(Object.create(e),{waitUntil:t},e)}function iE(e,t){if(t?.aborted)throw t.reason;if(nO(e)&&t){let r=nk();function n(){r.reject(t.reason)}return t.addEventListener("abort",n,{once:!0}),e.then(function(e){r.resolve(e)}).catch(function(e){r.reject(e)}).finally(()=>{t.removeEventListener("abort",n)}),r.promise}return e}globalThis.SuppressedError,new WeakMap,new WeakMap;let iT=["SIGINT","exit","SIGTERM"],iS=new Set,iI=!1;class iN extends EventTarget{aborted=!1;_onabort=null;_reason;constructor(){super();let e=globalThis.process?.getBuiltinModule?.("node:events");e?.kMaxEventTargetListeners&&(this[e.kMaxEventTargetListeners]=0)}throwIfAborted(){if(this._nativeCtrl?.signal?.throwIfAborted)return this._nativeCtrl.signal.throwIfAborted();if(this.aborted)throw this._reason}_nativeCtrl;ensureNativeCtrl(){if(!this._nativeCtrl){let e=this.aborted;this._nativeCtrl=new AbortController,e&&this._nativeCtrl.abort(this._reason)}return this._nativeCtrl}abort(e){if(this._nativeCtrl?.abort)return this._nativeCtrl?.abort(e);this._reason=e||new DOMException("This operation was aborted","AbortError"),this.aborted=!0,this.dispatchEvent(new Event("abort"))}get signal(){return this._nativeCtrl?.signal?this._nativeCtrl.signal:this}get reason(){return this._nativeCtrl?.signal?this._nativeCtrl.signal.reason:this._reason}get onabort(){return this._onabort,this._onabort}set onabort(e){if(this._nativeCtrl?.signal){this._nativeCtrl.signal.onabort=e;return}this._onabort&&this.removeEventListener("abort",this._onabort),this._onabort=e,e&&this.addEventListener("abort",e)}}function iO(){return globalThis.Bun||globalThis.Deno?new AbortController:new Proxy(new iN,{get(e,t,n){if(t.toString().includes("kDependantSignals")){let n=e.ensureNativeCtrl();return Reflect.get(n.signal,t,n.signal)}return Reflect.get(e,t,n)},set(e,t,n,r){if(t.toString().includes("kDependantSignals")){let r=e.ensureNativeCtrl();return Reflect.set(r.signal,t,n,r.signal)}return Reflect.set(e,t,n,r)},getPrototypeOf:()=>AbortSignal.prototype})}let ix={};function iw(e){return e instanceof E}function ik(e){return e instanceof E&&(null==e.originalError||ik(e.originalError))}function iA(e){return"object"==typeof e&&e?.constructor?.name==="DOMException"&&("AbortError"===e.name||"TimeoutError"===e.name)}function iD(e,t,n){let r=new Set;if(null!=e&&"object"==typeof e&&"errors"in e)for(let i of e.errors)for(let e of iD(i,t,n))r.add(e);else if(iA(e))n.debug("Request aborted");else if(t){let i=t.maskError(e,t.errorMessage,t.isDev);i!==e&&n.error(e),r.add(iw(i)?i:n9(i.message,{originalError:i}))}else iw(e)?r.add(e):e instanceof Error?r.add(n9(e.message,{originalError:e})):"string"==typeof e?r.add(n9(e,{extensions:{code:"INTERNAL_SERVER_ERROR",unexpected:!0}})):null!=e&&"function"==typeof e.toString?r.add(n9(e.toString(),{extensions:{code:"INTERNAL_SERVER_ERROR",unexpected:!0}})):(n.error(e),r.add(n9("Unexpected error.",{extensions:{http:{unexpected:!0}}})));return Array.from(r)}function iP(e,t={},n=!1){let r;let i=!1;if("extensions"in e&&e.extensions?.http&&(e.extensions.http.headers&&Object.assign(t,e.extensions.http.headers),e.extensions.http.status&&(r=e.extensions.http.status)),"errors"in e&&e.errors?.length)for(let s of e.errors)if(s.extensions?.http){if(s.extensions.http.headers&&Object.assign(t,s.extensions.http.headers),n&&s.extensions.http.spec)continue;s.extensions.http.status&&(!r||s.extensions.http.status>r)&&(r=s.extensions.http.status)}else(!ik(s)||s.extensions?.unexpected)&&(i=!0);else r||=200;return r||(r=!i||"data"in e?200:500),{status:r,headers:t}}function iR(e){let t=e.get("operationName")||void 0,n=e.get("query")||void 0,r=e.get("variables")||void 0,i=e.get("extensions")||void 0;return{operationName:t,query:n,variables:r?JSON.parse(r):void 0,extensions:i?JSON.parse(i):void 0}}function iC(e){return iR(new it.URLSearchParams(e))}function iL(e,t){let n=e.headers.get("content-type");return(n=n?.split(",")[0]||null)===t||!!n?.startsWith(`${t};`)}function iF(e){return"GET"===e.method}function ij(e){let t=e.url.substring(e.url.indexOf("?")+1);return iR(new it.URLSearchParams(t))}function iM(e){return"POST"===e.method&&iL(e,"application/x-www-form-urlencoded")}function iU(e){return e.text().then(iC)}function i$(e){return"POST"===e.method&&iL(e,"application/graphql")}function iB(e){return e.text().then(e=>({query:e}))}function iV(e){return"POST"===e.method&&(iL(e,"application/json")||iL(e,"application/graphql+json"))}function iq(e){return nx(()=>e.json(),e=>{if(null==e)throw n9(`POST body is expected to be object but received ${e}`,{extensions:{http:{status:400},code:"BAD_REQUEST"}});let t=typeof e;if("object"!==t)throw n9(`POST body is expected to be object but received ${t}`,{extensions:{http:{status:400},code:"BAD_REQUEST"}});return e},e=>{if(e instanceof E)throw e;let t={http:{spec:!0,status:400},code:"BAD_REQUEST"};throw e instanceof Error&&(t.originalError={name:e.name,message:e.message}),n9("POST body sent invalid JSON.",{extensions:t})})}function iz(e){return"POST"===e.method&&iL(e,"multipart/form-data")}function iG(e){return nx(()=>e.formData(),e=>{let t;let n=e.get("operations");if(!n)throw n9('Missing multipart form field "operations"');if("string"!=typeof n)throw n9('Multipart form field "operations" must be a string');try{t=JSON.parse(n)}catch{throw n9('Multipart form field "operations" must be a valid JSON string')}let r=e.get("map");if(null!=r){let n;if("string"!=typeof r)throw n9('Multipart form field "map" must be a string');try{n=JSON.parse(r)}catch{throw n9('Multipart form field "map" must be a valid JSON string')}for(let r in n){let i=e.get(r);for(let e of n[r])!function(e,t,n){t.split&&(t=t.split("."));for(var r,i,s=0,o=t.length,a=e;s<o&&"__proto__"!=(i=""+t[s++])&&"constructor"!==i&&"prototype"!==i;)a=a[i]=s===o?n:typeof(r=a[i])==typeof t?r:0*t[s]!=0||~(""+t[s]).indexOf(".")?{}:[]}(t,e,i)}}return t},e=>{if(e instanceof Error&&e.message.startsWith("File size limit exceeded: "))throw n9(e.message,{extensions:{http:{status:413}}});throw e})}let iY=new Set(["query","variables","operationName","extensions"]);function iH(e){return null===e?"null":Array.isArray(e)?"array":typeof e}let iW=e=>'<!doctype html><html lang=en><head><meta charset=utf-8><title>__TITLE__</title><link rel=icon href=https://raw.githubusercontent.com/graphql-hive/graphql-yoga/main/website/public/favicon.ico><link crossorigin rel=stylesheet href=https://unpkg.com/@graphql-yoga/graphiql@4.4.0/dist/graphiql.css></head><body id=body class=no-focus-outline><noscript>You need to enable JavaScript to run this app.</noscript><div id=root></div><script type=module>import{renderYogaGraphiQL}from"https://unpkg.com/@graphql-yoga/graphiql@4.4.0/dist/yoga-graphiql.es.js";renderYogaGraphiQL(root,__OPTS__)</script></body></html>'.replace("__TITLE__",e?.title||"Yoga GraphiQL").replace("__OPTS__",JSON.stringify(e??{})),iJ="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,iQ=new Set,iK="object"==typeof process&&process?process:{},iX=(e,t,n,r)=>{"function"==typeof iK.emitWarning?iK.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},iZ=globalThis.AbortController,i0=globalThis.AbortSignal;if(void 0===iZ){i0=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},iZ=class{constructor(){t()}signal=new i0;abort(e){if(!this.signal.aborted){for(let t of(this.signal.reason=e,this.signal.aborted=!0,this.signal._onabort))t(e);this.signal.onabort?.(e)}}};let e=iK.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,iX("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}let i1=e=>!iQ.has(e);Symbol("type");let i4=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),i3=e=>i4(e)?e<=256?Uint8Array:e<=65536?Uint16Array:e<=4294967296?Uint32Array:e<=Number.MAX_SAFE_INTEGER?i2:null:null;class i2 extends Array{constructor(e){super(e),this.fill(0)}}class i5{heap;length;static #e=!1;static create(e){let t=i3(e);if(!t)return[];i5.#e=!0;let n=new i5(e,t);return i5.#e=!1,n}constructor(e,t){if(!i5.#e)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class i6{#t;#n;#r;#i;#s;#o;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#l;#u;#c;#f;#h;#d;#p;#m;#y;#g;#b;#v;#_;#E;#T;#S;static unsafeExposeInternals(e){return{starts:e.#v,ttls:e.#_,sizes:e.#b,keyMap:e.#u,keyList:e.#c,valList:e.#f,next:e.#h,prev:e.#d,get head(){return e.#p},get tail(){return e.#m},free:e.#y,isBackgroundFetch:t=>e.#I(t),backgroundFetch:(t,n,r,i)=>e.#N(t,n,r,i),moveToTail:t=>e.#O(t),indexes:t=>e.#x(t),rindexes:t=>e.#w(t),isStale:t=>e.#k(t)}}get max(){return this.#t}get maxSize(){return this.#n}get calculatedSize(){return this.#l}get size(){return this.#a}get fetchMethod(){return this.#s}get memoMethod(){return this.#o}get dispose(){return this.#r}get disposeAfter(){return this.#i}constructor(e){let{max:t=0,ttl:n,ttlResolution:r=1,ttlAutopurge:i,updateAgeOnGet:s,updateAgeOnHas:o,allowStale:a,dispose:l,disposeAfter:u,noDisposeOnSet:c,noUpdateTTL:f,maxSize:h=0,maxEntrySize:d=0,sizeCalculation:p,fetchMethod:m,memoMethod:y,noDeleteOnFetchRejection:g,noDeleteOnStaleGet:b,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:_,ignoreFetchAbort:E}=e;if(0!==t&&!i4(t))throw TypeError("max option must be a nonnegative integer");let T=t?i3(t):Array;if(!T)throw Error("invalid max value: "+t);if(this.#t=t,this.#n=h,this.maxEntrySize=d||this.#n,this.sizeCalculation=p,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw TypeError("sizeCalculation set to non-function")}if(void 0!==y&&"function"!=typeof y)throw TypeError("memoMethod must be a function if defined");if(this.#o=y,void 0!==m&&"function"!=typeof m)throw TypeError("fetchMethod must be a function if specified");if(this.#s=m,this.#T=!!m,this.#u=new Map,this.#c=Array(t).fill(void 0),this.#f=Array(t).fill(void 0),this.#h=new T(t),this.#d=new T(t),this.#p=0,this.#m=0,this.#y=i5.create(t),this.#a=0,this.#l=0,"function"==typeof l&&(this.#r=l),"function"==typeof u?(this.#i=u,this.#g=[]):(this.#i=void 0,this.#g=void 0),this.#E=!!this.#r,this.#S=!!this.#i,this.noDisposeOnSet=!!c,this.noUpdateTTL=!!f,this.noDeleteOnFetchRejection=!!g,this.allowStaleOnFetchRejection=!!v,this.allowStaleOnFetchAbort=!!_,this.ignoreFetchAbort=!!E,0!==this.maxEntrySize){if(0!==this.#n&&!i4(this.#n))throw TypeError("maxSize must be a positive integer if specified");if(!i4(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#A()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!b,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!o,this.ttlResolution=i4(r)||0===r?r:1,this.ttlAutopurge=!!i,this.ttl=n||0,this.ttl){if(!i4(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#D()}if(0===this.#t&&0===this.ttl&&0===this.#n)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#t&&!this.#n){let e="LRU_CACHE_UNBOUNDED";i1(e)&&(iQ.add(e),iX("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,i6))}}getRemainingTTL(e){return this.#u.has(e)?1/0:0}#D(){let e=new i2(this.#t),t=new i2(this.#t);this.#_=e,this.#v=t,this.#P=(n,r,i=iJ.now())=>{if(t[n]=0!==r?i:0,e[n]=r,0!==r&&this.ttlAutopurge){let e=setTimeout(()=>{this.#k(n)&&this.#R(this.#c[n],"expire")},r+1);e.unref&&e.unref()}},this.#C=n=>{t[n]=0!==e[n]?iJ.now():0},this.#L=(i,s)=>{if(e[s]){let o=e[s],a=t[s];if(!o||!a)return;i.ttl=o,i.start=a,i.now=n||r();let l=i.now-a;i.remainingTTL=o-l}};let n=0,r=()=>{let e=iJ.now();if(this.ttlResolution>0){n=e;let t=setTimeout(()=>n=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=i=>{let s=this.#u.get(i);if(void 0===s)return 0;let o=e[s],a=t[s];return o&&a?o-((n||r())-a):1/0},this.#k=i=>{let s=t[i],o=e[i];return!!o&&!!s&&(n||r())-s>o}}#C=()=>{};#L=()=>{};#P=()=>{};#k=()=>!1;#A(){let e=new i2(this.#t);this.#l=0,this.#b=e,this.#F=t=>{this.#l-=e[t],e[t]=0},this.#j=(e,t,n,r)=>{if(this.#I(t))return 0;if(!i4(n)){if(r){if("function"!=typeof r)throw TypeError("sizeCalculation must be a function");if(!i4(n=r(t,e)))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.")}return n},this.#M=(t,n,r)=>{if(e[t]=n,this.#n){let n=this.#n-e[t];for(;this.#l>n;)this.#U(!0)}this.#l+=e[t],r&&(r.entrySize=n,r.totalCalculatedSize=this.#l)}}#F=e=>{};#M=(e,t,n)=>{};#j=(e,t,n,r)=>{if(n||r)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#x({allowStale:e=this.allowStale}={}){if(this.#a)for(let t=this.#m;this.#$(t)&&((e||!this.#k(t))&&(yield t),t!==this.#p);)t=this.#d[t]}*#w({allowStale:e=this.allowStale}={}){if(this.#a)for(let t=this.#p;this.#$(t)&&((e||!this.#k(t))&&(yield t),t!==this.#m);)t=this.#h[t]}#$(e){return void 0!==e&&this.#u.get(this.#c[e])===e}*entries(){for(let e of this.#x())void 0===this.#f[e]||void 0===this.#c[e]||this.#I(this.#f[e])||(yield[this.#c[e],this.#f[e]])}*rentries(){for(let e of this.#w())void 0===this.#f[e]||void 0===this.#c[e]||this.#I(this.#f[e])||(yield[this.#c[e],this.#f[e]])}*keys(){for(let e of this.#x()){let t=this.#c[e];void 0===t||this.#I(this.#f[e])||(yield t)}}*rkeys(){for(let e of this.#w()){let t=this.#c[e];void 0===t||this.#I(this.#f[e])||(yield t)}}*values(){for(let e of this.#x())void 0===this.#f[e]||this.#I(this.#f[e])||(yield this.#f[e])}*rvalues(){for(let e of this.#w())void 0===this.#f[e]||this.#I(this.#f[e])||(yield this.#f[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let n of this.#x()){let r=this.#f[n],i=this.#I(r)?r.__staleWhileFetching:r;if(void 0!==i&&e(i,this.#c[n],this))return this.get(this.#c[n],t)}}forEach(e,t=this){for(let n of this.#x()){let r=this.#f[n],i=this.#I(r)?r.__staleWhileFetching:r;void 0!==i&&e.call(t,i,this.#c[n],this)}}rforEach(e,t=this){for(let n of this.#w()){let r=this.#f[n],i=this.#I(r)?r.__staleWhileFetching:r;void 0!==i&&e.call(t,i,this.#c[n],this)}}purgeStale(){let e=!1;for(let t of this.#w({allowStale:!0}))this.#k(t)&&(this.#R(this.#c[t],"expire"),e=!0);return e}info(e){let t=this.#u.get(e);if(void 0===t)return;let n=this.#f[t],r=this.#I(n)?n.__staleWhileFetching:n;if(void 0===r)return;let i={value:r};if(this.#_&&this.#v){let e=this.#_[t],n=this.#v[t];if(e&&n){let t=e-(iJ.now()-n);i.ttl=t,i.start=Date.now()}}return this.#b&&(i.size=this.#b[t]),i}dump(){let e=[];for(let t of this.#x({allowStale:!0})){let n=this.#c[t],r=this.#f[t],i=this.#I(r)?r.__staleWhileFetching:r;if(void 0===i||void 0===n)continue;let s={value:i};if(this.#_&&this.#v){s.ttl=this.#_[t];let e=iJ.now()-this.#v[t];s.start=Math.floor(Date.now()-e)}this.#b&&(s.size=this.#b[t]),e.unshift([n,s])}return e}load(e){for(let[t,n]of(this.clear(),e)){if(n.start){let e=Date.now()-n.start;n.start=iJ.now()-e}this.set(t,n.value,n)}}set(e,t,n={}){if(void 0===t)return this.delete(e),this;let{ttl:r=this.ttl,start:i,noDisposeOnSet:s=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:a}=n,{noUpdateTTL:l=this.noUpdateTTL}=n,u=this.#j(e,t,n.size||0,o);if(this.maxEntrySize&&u>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#R(e,"set"),this;let c=0===this.#a?void 0:this.#u.get(e);if(void 0===c)c=0===this.#a?this.#m:0!==this.#y.length?this.#y.pop():this.#a===this.#t?this.#U(!1):this.#a,this.#c[c]=e,this.#f[c]=t,this.#u.set(e,c),this.#h[this.#m]=c,this.#d[c]=this.#m,this.#m=c,this.#a++,this.#M(c,u,a),a&&(a.set="add"),l=!1;else{this.#O(c);let n=this.#f[c];if(t!==n){if(this.#T&&this.#I(n)){n.__abortController.abort(Error("replaced"));let{__staleWhileFetching:t}=n;void 0!==t&&!s&&(this.#E&&this.#r?.(t,e,"set"),this.#S&&this.#g?.push([t,e,"set"]))}else!s&&(this.#E&&this.#r?.(n,e,"set"),this.#S&&this.#g?.push([n,e,"set"]));if(this.#F(c),this.#M(c,u,a),this.#f[c]=t,a){a.set="replace";let e=n&&this.#I(n)?n.__staleWhileFetching:n;void 0!==e&&(a.oldValue=e)}}else a&&(a.set="update")}if(0===r||this.#_||this.#D(),this.#_&&(l||this.#P(c,r,i),a&&this.#L(a,c)),!s&&this.#S&&this.#g){let e;let t=this.#g;for(;e=t?.shift();)this.#i?.(...e)}return this}pop(){try{for(;this.#a;){let e=this.#f[this.#p];if(this.#U(!0),this.#I(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#S&&this.#g){let e;let t=this.#g;for(;e=t?.shift();)this.#i?.(...e)}}}#U(e){let t=this.#p,n=this.#c[t],r=this.#f[t];return this.#T&&this.#I(r)?r.__abortController.abort(Error("evicted")):(this.#E||this.#S)&&(this.#E&&this.#r?.(r,n,"evict"),this.#S&&this.#g?.push([r,n,"evict"])),this.#F(t),e&&(this.#c[t]=void 0,this.#f[t]=void 0,this.#y.push(t)),1===this.#a?(this.#p=this.#m=0,this.#y.length=0):this.#p=this.#h[t],this.#u.delete(n),this.#a--,t}has(e,t={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:r}=t,i=this.#u.get(e);if(void 0!==i){let e=this.#f[i];if(this.#I(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#k(i))return n&&this.#C(i),r&&(r.has="hit",this.#L(r,i)),!0;r&&(r.has="stale",this.#L(r,i))}else r&&(r.has="miss");return!1}peek(e,t={}){let{allowStale:n=this.allowStale}=t,r=this.#u.get(e);if(void 0===r||!n&&this.#k(r))return;let i=this.#f[r];return this.#I(i)?i.__staleWhileFetching:i}#N(e,t,n,r){let i=void 0===t?void 0:this.#f[t];if(this.#I(i))return i;let s=new iZ,{signal:o}=n;o?.addEventListener("abort",()=>s.abort(o.reason),{signal:s.signal});let a={signal:s.signal,options:n,context:r},l=(r,i=!1)=>{let{aborted:o}=s.signal,l=n.ignoreFetchAbort&&void 0!==r;return(n.status&&(o&&!i?(n.status.fetchAborted=!0,n.status.fetchError=s.signal.reason,l&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),!o||l||i)?(this.#f[t]===c&&(void 0===r?c.__staleWhileFetching?this.#f[t]=c.__staleWhileFetching:this.#R(e,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(e,r,a.options))),r):u(s.signal.reason)},u=r=>{let{aborted:i}=s.signal,o=i&&n.allowStaleOnFetchAbort,a=o||n.allowStaleOnFetchRejection,l=a||n.noDeleteOnFetchRejection;if(this.#f[t]!==c||(l&&void 0!==c.__staleWhileFetching?o||(this.#f[t]=c.__staleWhileFetching):this.#R(e,"fetch")),a)return n.status&&void 0!==c.__staleWhileFetching&&(n.status.returnedStale=!0),c.__staleWhileFetching;if(c.__returned===c)throw r};n.status&&(n.status.fetchDispatched=!0);let c=new Promise((t,r)=>{let o=this.#s?.(e,i,a);o&&o instanceof Promise&&o.then(e=>t(void 0===e?void 0:e),r),s.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(t(void 0),n.allowStaleOnFetchAbort&&(t=e=>l(e,!0)))})}).then(l,e=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=e),u(e))),f=Object.assign(c,{__abortController:s,__staleWhileFetching:i,__returned:void 0});return void 0===t?(this.set(e,f,{...a.options,status:void 0}),t=this.#u.get(e)):this.#f[t]=f,f}#I(e){return!!this.#T&&!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof iZ}async fetch(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:h=this.ignoreFetchAbort,allowStaleOnFetchAbort:d=this.allowStaleOnFetchAbort,context:p,forceRefresh:m=!1,status:y,signal:g}=t;if(!this.#T)return y&&(y.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,status:y});let b={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,ttl:s,noDisposeOnSet:o,size:a,sizeCalculation:l,noUpdateTTL:u,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:d,ignoreFetchAbort:h,status:y,signal:g},v=this.#u.get(e);if(void 0===v){y&&(y.fetch="miss");let t=this.#N(e,v,b,p);return t.__returned=t}{let t=this.#f[v];if(this.#I(t)){let e=n&&void 0!==t.__staleWhileFetching;return y&&(y.fetch="inflight",e&&(y.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}let i=this.#k(v);if(!m&&!i)return y&&(y.fetch="hit"),this.#O(v),r&&this.#C(v),y&&this.#L(y,v),t;let s=this.#N(e,v,b,p),o=void 0!==s.__staleWhileFetching&&n;return y&&(y.fetch=i?"stale":"refresh",o&&i&&(y.returnedStale=!0)),o?s.__staleWhileFetching:s.__returned=s}}async forceFetch(e,t={}){let n=await this.fetch(e,t);if(void 0===n)throw Error("fetch() returned undefined");return n}memo(e,t={}){let n=this.#o;if(!n)throw Error("no memoMethod provided to constructor");let{context:r,forceRefresh:i,...s}=t,o=this.get(e,s);if(!i&&void 0!==o)return o;let a=n(e,o,{options:s,context:r});return this.set(e,a,s),a}get(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:s}=t,o=this.#u.get(e);if(void 0!==o){let t=this.#f[o],a=this.#I(t);return(s&&this.#L(s,o),this.#k(o))?(s&&(s.get="stale"),a)?(s&&n&&void 0!==t.__staleWhileFetching&&(s.returnedStale=!0),n?t.__staleWhileFetching:void 0):(i||this.#R(e,"expire"),s&&n&&(s.returnedStale=!0),n?t:void 0):(s&&(s.get="hit"),a)?t.__staleWhileFetching:(this.#O(o),r&&this.#C(o),t)}s&&(s.get="miss")}#B(e,t){this.#d[t]=e,this.#h[e]=t}#O(e){e!==this.#m&&(e===this.#p?this.#p=this.#h[e]:this.#B(this.#d[e],this.#h[e]),this.#B(this.#m,e),this.#m=e)}delete(e){return this.#R(e,"delete")}#R(e,t){let n=!1;if(0!==this.#a){let r=this.#u.get(e);if(void 0!==r){if(n=!0,1===this.#a)this.#V(t);else{this.#F(r);let n=this.#f[r];if(this.#I(n)?n.__abortController.abort(Error("deleted")):(this.#E||this.#S)&&(this.#E&&this.#r?.(n,e,t),this.#S&&this.#g?.push([n,e,t])),this.#u.delete(e),this.#c[r]=void 0,this.#f[r]=void 0,r===this.#m)this.#m=this.#d[r];else if(r===this.#p)this.#p=this.#h[r];else{let e=this.#d[r];this.#h[e]=this.#h[r];let t=this.#h[r];this.#d[t]=this.#d[r]}this.#a--,this.#y.push(r)}}}if(this.#S&&this.#g?.length){let e;let t=this.#g;for(;e=t?.shift();)this.#i?.(...e)}return n}clear(){return this.#V("delete")}#V(e){for(let t of this.#w({allowStale:!0})){let n=this.#f[t];if(this.#I(n))n.__abortController.abort(Error("deleted"));else{let r=this.#c[t];this.#E&&this.#r?.(n,r,e),this.#S&&this.#g?.push([n,r,e])}}if(this.#u.clear(),this.#f.fill(void 0),this.#c.fill(void 0),this.#_&&this.#v&&(this.#_.fill(0),this.#v.fill(0)),this.#b&&this.#b.fill(0),this.#p=0,this.#m=0,this.#y.length=0,this.#l=0,this.#a=0,this.#S&&this.#g){let e;let t=this.#g;for(;e=t?.shift();)this.#i?.(...e)}}}function i7({max:e=1024,ttl:t=36e5}={}){return new i6({max:e,ttl:t})}let i8=()=>!0;function i9(e){let t=e.match||i8;return{onRequestParse({request:n,setRequestParser:r}){t(n)&&r(e.parse)}}}function se(e){if(Array.isArray(e))return`[${e.map(e=>{let t=st(e);return(e.stringify||JSON.stringify)(t)}).join(",")}]`;let t=st(e);return(e.stringify||JSON.stringify)(t)}function st(e){if(e.errors?.length||e.extensions?.http){let t={...e};if(t.errors&&=t.errors.map(function e(t){if(iw(t)){let{http:n,unexpected:r,...i}=("toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():Object(t)).extensions||{};return n9(t.message,{nodes:t.nodes,source:t.source,positions:t.positions,path:t.path,originalError:e(t.originalError||void 0),extensions:Object.keys(i).length?i:void 0})}return t}),t.extensions){let{http:n,...r}=e.extensions;t.extensions=Object.keys(r).length?r:void 0}return t}return e}let sn={mediaTypes:["multipart/mixed"],asyncIterables:!0,processResult:function(e,t){let n;let r=iP(e,{Connection:"keep-alive","Content-Type":'multipart/mixed; boundary="-"',"Transfer-Encoding":"chunked"}),i=new t.TextEncoder,s=new t.ReadableStream({start(t){if(nM(e))n=e[Symbol.asyncIterator]();else{let t=!1;n={next:()=>t?nw({done:!0,value:null}):(t=!0,nw({done:!1,value:e}))}}t.enqueue(i.encode("\r\n")),t.enqueue(i.encode("---"))},pull:e=>nx(()=>n.next(),({done:t,value:n})=>{if(null!=n){e.enqueue(i.encode("\r\n")),e.enqueue(i.encode("Content-Type: application/json; charset=utf-8")),e.enqueue(i.encode("\r\n"));let t=se(n),r=i.encode(t);e.enqueue(i.encode("Content-Length: "+r.byteLength)),e.enqueue(i.encode("\r\n")),e.enqueue(i.encode("\r\n")),e.enqueue(r),e.enqueue(i.encode("\r\n")),e.enqueue(i.encode("---"))}t&&(e.enqueue(i.encode("--\r\n")),e.close())},t=>{e.error(t)}),cancel(e){if(n.return)return nx(()=>n.return?.(e),()=>{})}});return new t.Response(s,r)}},sr={mediaTypes:["application/graphql-response+json","application/json"],asyncIterables:!1,processResult:function(e,t,n){var r;if(rh(e))return new t.Response(null,{status:406,statusText:"Not Acceptable",headers:{accept:"application/json; charset=utf-8, application/graphql-response+json; charset=utf-8"}});let i=iP(e,{"Content-Type":n+"; charset=utf-8"},"application/json"===n&&!Array.isArray(e)&&Array.isArray(r=e.errors)&&r.length>0&&r.some(iw)&&e.errors.some(e=>!e.extensions?.originalError||iw(e.extensions.originalError))),s=se(e);return new t.Response(s,i)}},si=e=>{if(null==e)return{};if(Y(e,tL))return{onPluginInit({setSchema:t}){t(e)}};if("then"in e){let t;return{onRequestParse:()=>({onRequestParseDone(){if(!t)return nx(()=>e,e=>{t=e})}}),onEnveloped({setSchema:e}){if(!t)throw Error("You provide a promise of a schema but it hasn't been resolved yet. Make sure you use this plugin with GraphQL Yoga.");e(t)}}}let t=new WeakMap;return{onRequestParse:({request:n,serverContext:r})=>({onRequestParseDone:()=>nx(()=>e({...r,request:n}),e=>{t.set(n,e)})}),onEnveloped({setSchema:e,context:n}){if(n?.request==null)throw Error("Request object is not available in the context. Make sure you use this plugin with GraphQL Yoga.");let r=t.get(n.request);if(null==r)throw Error("No schema found for this request. Make sure you use this plugin with GraphQL Yoga.");e(r)}}},ss=function(e){return new e.fetchAPI.Response('<!doctype html><html lang=en><head><meta charset=utf-8><title>Welcome to GraphQL Yoga</title><link rel=icon href=https://raw.githubusercontent.com/graphql-hive/graphql-yoga/main/website/public/favicon.ico><style>body,html{padding:0;margin:0;height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,\'Segoe UI\',Roboto,Oxygen,Ubuntu,Cantarell,\'Fira Sans\',\'Droid Sans\',\'Helvetica Neue\',sans-serif;color:#fff;background-color:#000}main>section.hero{display:flex;height:90vh;justify-content:center;align-items:center;flex-direction:column}.logo{display:flex;align-items:center}.buttons{margin-top:24px}h1{font-size:80px}h2{color:#888;max-width:50%;margin-top:0;text-align:center}a{color:#fff;text-decoration:none;margin-left:10px;margin-right:10px;font-weight:700;transition:color .3s ease;padding:4px;overflow:visible}a.graphiql:hover{color:rgba(255,0,255,.7)}a.docs:hover{color:rgba(28,200,238,.7)}a.tutorial:hover{color:rgba(125,85,245,.7)}svg{margin-right:24px}.not-what-your-looking-for{margin-top:5vh}.not-what-your-looking-for>*{margin-left:auto;margin-right:auto}.not-what-your-looking-for>p{text-align:center}.not-what-your-looking-for>h2{color:#464646}.not-what-your-looking-for>p{max-width:600px;line-height:1.3em}.not-what-your-looking-for>pre{max-width:300px}</style></head><body id=body><main><section class=hero><div class=logo><div><svg xmlns=http://www.w3.org/2000/svg viewBox="-0.41 0.445 472.812 499.811" height=150><defs><linearGradient id=paint0_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint1_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint2_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint3_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint4_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint5_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><filter id=filter0_f_1677_11483 x=23 y=-25 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><filter id=filter1_f_1677_11483 x=-24 y=19 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><linearGradient id=paint6_linear_1677_11483 x1=30 y1=28 x2=66.1645 y2=44.4363 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><filter id=filter2_f_1677_11483 x=-12 y=-44 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><filter id=filter3_f_1677_11483 x=13 y=19 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter></defs><mask id=mask0_1677_11483 style=mask-type:alpha maskUnits=userSpaceOnUse x=16 y=14 width=58 height=62><path d="M21 25.3501C21.7279 25.3501 22.4195 25.5056 23.0433 25.7853L42.1439 14.8C43.0439 14.3 44.1439 14 45.1439 14C46.2439 14 47.2439 14.3 48.1439 14.8L64.5439 24.3C63.3439 25.1 62.4439 26.3 61.8439 27.7L45.9438 18.5C45.6439 18.3 45.344 18.3 45.0441 18.3C44.7441 18.3 44.4439 18.4 44.1439 18.5L25.8225 29.0251C25.9382 29.4471 26 29.8914 26 30.3501C26 33.1115 23.7614 35.3501 21 35.3501C18.2386 35.3501 16 33.1115 16 30.3501C16 27.5887 18.2386 25.3501 21 25.3501Z" fill=url(#paint3_linear_1677_11483) /><path d="M67.2438 35.0329C65.3487 34.3219 64 32.4934 64 30.35C64 27.5886 66.2386 25.35 69 25.35C71.7614 25.35 74 27.5886 74 30.35C74 32.1825 73.0142 33.7848 71.5439 34.6554V55.2C71.5439 57.4 70.3439 59.4 68.5439 60.5L52.1439 69.9C52.1439 68.4 51.6438 66.9 50.7438 65.8L66.3439 56.8C66.9439 56.5 67.2438 55.9 67.2438 55.2V35.0329Z" fill=url(#paint4_linear_1677_11483) /><path d="M49.8439 69.1055C49.9458 69.5034 50 69.9204 50 70.3501C50 73.1115 47.7614 75.3501 45 75.3501C42.5102 75.3501 40.4454 73.5302 40.0633 71.1481L21.8439 60.6C19.9439 59.5 18.8439 57.5 18.8439 55.3V36.8C19.5439 37 20.3439 37.2 21.0439 37.2C21.7439 37.2 22.4439 37.1 23.0439 36.9V55.3C23.0439 56 23.4438 56.6 23.9438 56.9L41.3263 66.9583C42.2398 65.9694 43.5476 65.3501 45 65.3501C47.3291 65.3501 49.2862 66.9426 49.8419 69.0981L49.8436 69.0997L49.8439 69.1055Z" fill=url(#paint5_linear_1677_11483) /></mask><mask id=mask1_1677_11483 style=mask-type:alpha maskUnits=userSpaceOnUse x=30 y=28 width=30 height=30><path fill-rule=evenodd clip-rule=evenodd d="M49.3945 32.3945C49.3945 34.7088 47.5796 38.5469 45 38.5469C42.4271 38.5469 40.6055 34.7112 40.6055 32.3945C40.6055 29.9714 42.5769 28 45 28C47.4231 28 49.3945 29.9714 49.3945 32.3945ZM35.332 49.0433V48.2148C35.332 42.8117 37.8535 41.0004 39.8796 39.545L39.8801 39.5447C40.3928 39.1767 40.8604 38.8404 41.2488 38.4742C42.3293 39.6642 43.626 40.3047 45 40.3047C46.3752 40.3047 47.6725 39.6642 48.7529 38.4754C49.1408 38.841 49.6078 39.1773 50.1199 39.5447L50.1204 39.545C52.1465 41.0004 54.668 42.8117 54.668 48.2148V49.0433L53.8406 49.092C49.9848 49.3185 46.8646 46.9002 45 43.5777C43.1159 46.935 39.9847 49.318 36.1594 49.092L35.332 49.0433ZM58.1463 51.0747L58.1463 51.0746C57.0179 50.891 50.0128 49.7507 45.0007 55.693C40.0116 49.7553 33.1965 50.8592 31.9095 51.0677L31.9095 51.0677C31.7906 51.087 31.7189 51.0986 31.7002 51.0963C31.7005 51.0969 31.7011 51.1045 31.7023 51.1187C31.726 51.4003 31.9682 54.2745 34.0566 56.2422L30 58H60L55.8956 56.2422C57.8537 54.4764 58.1396 52.2685 58.2508 51.4092V51.4091C58.2697 51.2628 58.2836 51.1556 58.2998 51.0963C58.2881 51.0977 58.2356 51.0892 58.1463 51.0747ZM40.4836 50.104C42.3956 49.3212 43.6746 48.1737 45 46.61C46.332 48.1841 47.6159 49.3259 49.5164 50.104C49.5356 50.1425 49.5557 50.1805 49.5756 50.2182C49.5793 50.2253 49.583 50.2323 49.5867 50.2393C48.0911 50.8127 46.4264 51.825 45.0047 53.1444C43.5906 51.8221 41.9673 50.8196 40.4256 50.2153C40.4455 50.1784 40.4648 50.1415 40.4836 50.104Z" fill=black /></mask><path d="M 40.59 93.095 C 46.517 93.095 52.14 94.365 57.22 96.635 L 212.7 7.22 C 220.025 3.149 228.978 0.706 237.12 0.706 C 246.073 0.706 254.213 3.149 261.54 7.22 L 395.032 84.547 C 385.264 91.059 377.939 100.827 373.055 112.224 L 243.631 37.338 C 241.19 35.71 238.747 35.71 236.305 35.71 C 233.863 35.71 231.42 36.523 228.978 37.338 L 79.84 123.009 C 80.786 126.443 81.29 130.058 81.29 133.793 C 81.29 156.269 63.065 174.493 40.59 174.493 C 18.116 174.493 -0.109 156.269 -0.109 133.793 C -0.109 111.32 18.116 93.095 40.59 93.095 Z" fill=url(#paint0_linear_1677_11483) /><path d="M 417.01 171.913 C 401.585 166.126 390.603 151.238 390.603 133.793 C 390.603 111.32 408.83 93.095 431.303 93.095 C 453.777 93.095 472.001 111.32 472.001 133.793 C 472.001 148.706 463.976 161.755 452.011 168.835 L 452.011 336.07 C 452.011 353.977 442.243 370.258 427.591 379.21 L 294.098 455.726 C 294.098 443.516 290.029 431.306 282.703 422.353 L 409.683 349.093 C 414.568 346.651 417.01 341.767 417.01 336.07 L 417.01 171.913 Z" fill=url(#paint1_linear_1677_11483) /><path d="M 275.376 449.253 C 276.206 452.495 276.646 455.889 276.646 459.389 C 276.646 481.863 258.422 500.087 235.947 500.087 C 215.679 500.087 198.87 485.272 195.761 465.883 L 47.46 380.025 C 31.995 371.071 23.041 354.792 23.041 336.884 L 23.041 186.296 C 28.738 187.923 35.25 189.553 40.948 189.553 C 46.646 189.553 52.345 188.738 57.228 187.111 L 57.228 336.884 C 57.228 342.582 60.485 347.465 64.554 349.908 L 206.042 431.777 C 213.481 423.728 224.127 418.689 235.947 418.689 C 254.905 418.689 270.833 431.656 275.36 449.196 L 275.376 449.214 L 275.376 449.253 Z" fill=url(#paint2_linear_1677_11483) /><g mask=url(#mask0_1677_11483) transform="matrix(8.139854, 0, 0, 8.139854, -130.346375, -113.251038)"><g filter=url(#filter0_f_1677_11483)><circle cx=73 cy=25 r=26 fill=#ED2E7E /></g><g filter=url(#filter1_f_1677_11483)><circle cx=26 cy=69 r=26 fill=#1CC8EE /></g></g><path fill-rule=evenodd clip-rule=evenodd d="M 271.713 150.431 C 271.713 169.275 256.948 200.517 235.947 200.517 C 215.003 200.517 200.172 169.292 200.172 150.431 C 200.172 130.708 216.225 114.666 235.947 114.666 C 255.67 114.666 271.713 130.708 271.713 150.431 Z M 157.251 285.952 L 157.251 279.212 C 157.251 235.233 177.771 220.485 194.27 208.641 C 198.447 205.644 202.247 202.901 205.414 199.923 C 214.204 209.608 224.763 214.826 235.947 214.826 C 247.138 214.826 257.697 209.608 266.496 199.931 C 269.653 202.911 273.456 205.644 277.622 208.641 C 294.114 220.485 314.642 235.233 314.642 279.212 L 314.642 285.952 L 307.912 286.351 C 276.525 288.191 251.128 268.509 235.947 241.468 C 220.611 268.795 195.126 288.191 163.981 286.351 L 157.251 285.952 Z M 342.953 302.492 C 333.771 300.994 276.751 291.715 235.955 340.082 C 195.345 291.749 139.865 300.734 129.389 302.436 C 128.428 302.59 127.841 302.688 127.687 302.665 C 127.687 302.673 127.695 302.729 127.702 302.85 C 127.897 305.138 129.867 328.532 146.872 344.55 L 113.849 358.862 L 358.044 358.862 L 324.639 344.55 C 340.576 330.177 342.905 312.202 343.807 305.212 C 343.962 304.022 344.077 303.153 344.206 302.665 C 344.108 302.68 343.686 302.606 342.953 302.492 Z M 199.188 294.59 C 214.751 288.215 225.161 278.879 235.947 266.15 C 246.788 278.96 257.241 288.255 272.707 294.59 C 272.869 294.898 273.031 295.207 273.196 295.518 C 273.219 295.574 273.252 295.631 273.285 295.688 C 261.107 300.361 247.555 308.598 235.989 319.334 C 224.477 308.573 211.258 300.417 198.715 295.493 C 198.87 295.191 199.033 294.891 199.188 294.59 Z" fill=url(#paint6_linear_1677_11483) /><g mask=url(#mask1_1677_11483) transform="matrix(8.139854, 0, 0, 8.139854, -130.346375, -113.251038)"><g filter=url(#filter2_f_1677_11483)><circle cx=38 cy=6 r=26 fill=#ED2E7E /></g><g filter=url(#filter3_f_1677_11483)><circle cx=63 cy=69 r=26 fill=#1CC8EE /></g></g></svg></div><h1>GraphQL Yoga</h1><p>Version: 5.15.1</p></div><h2>The batteries-included cross-platform GraphQL Server.</h2><div class=buttons><a href=https://www.the-guild.dev/graphql/yoga-server/docs class=docs>Read the Docs</a> <a href=https://www.the-guild.dev/graphql/yoga-server/tutorial/basic class=tutorial>Start the Tutorial </a><a href=__GRAPHIQL_LINK__ class=graphiql>Visit GraphiQL</a></div></section><section class=not-what-your-looking-for><h2>Not the page you are looking for? \uD83D\uDC40</h2><p>This page is shown be default whenever a 404 is hit.<br>You can disable this by behavior via the <code>landingPage</code> option.</p><pre>\n <code>\nimport { createYoga } from \'graphql-yoga\';\n\nconst yoga = createYoga({\n landingPage: false\n})\n </code>\n </pre><p>If you expected this page to be the GraphQL route, you need to configure Yoga. Currently, the GraphQL route is configured to be on <code>__GRAPHIQL_LINK__</code>.</p><pre>\n <code>\nimport { createYoga } from \'graphql-yoga\';\n\nconst yoga = createYoga({\n graphqlEndpoint: \'__REQUEST_PATH__\',\n})\n </code>\n </pre></section></main></body></html>'.replace(/__GRAPHIQL_LINK__/g,e.graphqlEndpoint).replace(/__REQUEST_PATH__/g,e.url.pathname),{status:200,statusText:"OK",headers:{"Content-Type":"text/html"}})};function so({request:e,result:t,fetchAPI:n,onResultProcessHooks:r,serverContext:i}){let s;let o=[],a="*/*";return nx(()=>nA(r,n=>n({request:e,acceptableMediaTypes:o,result:t,setResult(e){t=e},resultProcessor:s,setResultProcessor(e,t){s=e,a=t},serverContext:i})),()=>s?s(t,n,a):new n.Response(null,{status:406,statusText:"Not Acceptable",headers:{accept:o.join("; charset=utf-8, ")}}))}function sa(e){return iw(e)?e.toJSON():e instanceof Error?{message:e.message,stack:e.stack,cause:e.cause}:e}let sl=(e,t,n=globalThis.process?.env?.NODE_ENV==="development")=>{if(ik(e))return e;let r={code:"INTERNAL_SERVER_ERROR",unexpected:!0},i={extensions:r};return iw(e)?(i.nodes=e.nodes,i.source=e.source,i.positions=e.positions,i.path=e.path,n&&e.originalError&&(r.originalError=sa(e.originalError)),e.extensions?.http&&(r.http=e.extensions.http)):n&&(r.originalError=sa(e)),n9(t,i)};class su{getEnveloped;logger;graphqlEndpoint;fetchAPI;plugins;instrumentation;onRequestParseHooks;onParamsHooks;onExecutionResultHooks;onResultProcessHooks;maskedErrorsOpts;id;version="5.15.1";constructor(e){if(this.id=e?.id??"yoga",this.fetchAPI={...ir},e?.fetchAPI)for(let t in e.fetchAPI)e.fetchAPI[t]&&(this.fetchAPI[t]=e.fetchAPI[t]);let t=e?.logging==null||e.logging;this.logger="boolean"==typeof t?!0===t?ie():ie("silent"):"string"==typeof t?ie(t):t;let n="object"==typeof e?.maskedErrors&&e.maskedErrors.maskError||sl,r=new WeakSet;this.maskedErrorsOpts=e?.maskedErrors===!1?null:{errorMessage:"Unexpected error.",..."object"==typeof e?.maskedErrors?e.maskedErrors:{},maskError:(e,t)=>{if(r.has(e))return e;let i=n(e,t,this.maskedErrorsOpts?.isDev);return i!==e&&this.logger.error(e),r.add(i),i}};let i=null==this.maskedErrorsOpts?null:this.maskedErrorsOpts,s=0;e?.batching&&(s="boolean"==typeof e.batching?10:e.batching.limit??10),this.graphqlEndpoint=e?.graphqlEndpoint||"/graphql";let o=this.graphqlEndpoint;for(let t of(this.plugins=[nI({parse:W,validate:nS,execute:rK,subscribe:rK,specifiedRules:nb}),!!e?.schema&&si(e.schema),e?.context!=null&&nL(t=>e?.context?"function"==typeof e.context?e.context(t):e.context:{}),function({id:e=Date.now().toString(),logger:t=console,endpoint:n="/health"}={}){return{onRequest({endResponse:r,fetchAPI:i,request:s}){s.url.endsWith(n)&&(t.debug("Responding Health Check"),r(new i.Response(null,{status:200,headers:{"x-yoga-id":e}})))}}}({id:this.id,logger:this.logger,endpoint:e?.healthCheckEndpoint}),e?.cors!==!1&&function(e){let t=()=>({});if(null!=e){if("function"==typeof e)t=e;else if("object"==typeof e){let n={...e};t=()=>n}else!1===e&&(t=()=>!1)}return{onRequest({request:e,fetchAPI:t,endResponse:n}){"OPTIONS"===e.method.toUpperCase()&&n(new t.Response(null,{status:204,headers:{"Content-Length":"0"}}))},onResponse:({request:e,serverContext:n,response:r})=>nx(()=>{var r;return r=t,nx(()=>r(e,n),t=>(function(e,t){let n=e.headers.get("origin");if(!1===t||null==n)return null;let r={};if(null==t.origin||0===t.origin.length||t.origin.includes("*")?(r["Access-Control-Allow-Origin"]=n,r.Vary="Origin"):"string"==typeof t.origin?r["Access-Control-Allow-Origin"]=t.origin:Array.isArray(t.origin)&&(1===t.origin.length?r["Access-Control-Allow-Origin"]=t.origin[0]:t.origin.includes(n)?(r["Access-Control-Allow-Origin"]=n,r.Vary="Origin"):r["Access-Control-Allow-Origin"]="null"),t.methods?.length)r["Access-Control-Allow-Methods"]=t.methods.join(", ");else{let t=e.headers.get("access-control-request-method");t&&(r["Access-Control-Allow-Methods"]=t)}if(t.allowedHeaders?.length)r["Access-Control-Allow-Headers"]=t.allowedHeaders.join(", ");else{let t=e.headers.get("access-control-request-headers");t&&(r["Access-Control-Allow-Headers"]=t,r.Vary?r.Vary+=", Access-Control-Request-Headers":r.Vary="Access-Control-Request-Headers")}return null!=t.credentials?!0===t.credentials&&(r["Access-Control-Allow-Credentials"]="true"):"*"!==r["Access-Control-Allow-Origin"]&&(r["Access-Control-Allow-Credentials"]="true"),t.exposedHeaders&&(r["Access-Control-Expose-Headers"]=t.exposedHeaders.join(", ")),t.maxAge&&(r["Access-Control-Max-Age"]=t.maxAge.toString()),r})(e,t))},e=>{if(null!=e)for(let t in e)r.headers.set(t,e[t])})}}(e?.cors),e?.graphiql!==!1&&function(e){let t,n;let r=e.logger??console;t="function"==typeof e?.options?e?.options:"object"==typeof e?.options?()=>e?.options:e?.options===!1?()=>!1:()=>({});let i=e?.render??iW,s=({URLPattern:t})=>n||=new t({pathname:e.graphqlEndpoint});return{onRequest({request:n,serverContext:o,fetchAPI:a,endResponse:l,url:u}){if(function({headers:e,method:t}){return"GET"===t&&!!e?.get("accept")?.includes("text/html")}(n)&&(n.url.endsWith(e.graphqlEndpoint)||n.url.endsWith(`${e.graphqlEndpoint}/`)||u.pathname===e.graphqlEndpoint||u.pathname===`${e.graphqlEndpoint}/`||s(a).test(u)))return r.debug("Rendering GraphiQL"),nx(()=>t(n,o),e=>{if(e)return nx(()=>i({...!0===e?{}:e}),e=>{l(new a.Response(e,{headers:{"Content-Type":"text/html"},status:200}))})})}}}({graphqlEndpoint:o,options:e?.graphiql,render:e?.renderGraphiQL,logger:this.logger}),i9({match:iF,parse:ij}),i9({match:iV,parse:iq}),e?.multipart!==!1&&i9({match:iz,parse:iG}),i9({match:i$,parse:iB}),i9({match:iM,parse:iU}),function(){let e=new WeakMap,t={mediaTypes:["text/event-stream"],asyncIterables:!0,processResult:function(e,t){let n,r,i=12e3;globalThis.process?.env?.NODE_ENV==="test"&&(i=300);let s=iP(e,{"Content-Type":"text/event-stream",Connection:"keep-alive","Cache-Control":"no-cache","Content-Encoding":"none"},!0),o=new t.TextEncoder,a=new t.ReadableStream({start(t){if(t.enqueue(o.encode(":\n\n")),r=setInterval(()=>{if(!t.desiredSize){clearInterval(r);return}t.enqueue(o.encode(":\n\n"))},i),nM(e))n=e[Symbol.asyncIterator]();else{let t=!1;n={next:()=>t?nw({done:!0,value:null}):(t=!0,nw({done:!1,value:e}))}}},pull:e=>nx(()=>n.next(),t=>{if(null!=t.value){e.enqueue(o.encode(`event: next
14
+ `));let n=se(t.value);e.enqueue(o.encode(`data: ${n}
15
+
16
+ `))}t.done&&(e.enqueue(o.encode(`event: complete
17
+ `)),e.enqueue(o.encode(`data:
18
+
19
+ `)),clearInterval(r),e.close())},t=>{e.error(t)}),cancel(e){if(clearInterval(r),n.return)return nx(()=>n.return?.(e),()=>{})}});return new t.Response(a,s)}},n=[t,sn,sr],r=[t,sr];return{onSubscribe({args:{contextValue:t}}){t.request&&e.set(t.request,!0)},onResultProcess({request:t,result:i,acceptableMediaTypes:s,setResultProcessor:o}){let a=e.get(t),l=function(e){let t=(e.headers.get("accept")||"*/*").replace(/\s/g,"").toLowerCase().split(","),n=[];for(let e of t){let[t,...r]=e.split(";");void 0!==t&&"charset=utf-8"===(r?.find(e=>e.includes("charset="))||"charset=utf-8")&&n.push(t)}return n.reverse()}(t),u=nM(i);for(let e of a?r:n)for(let t of l)if(!u||e.asyncIterables)for(let n of e.mediaTypes)s.push(n),function(e,t){let[n,r]=e.split("/"),[i,s]=t.split("/");return("*"===i||i===n)&&("*"===s||s===r)}(n,t)&&o(e.processResult,n)}}}(),...e?.plugins??[],{onPluginInit({addPlugin:t}){var n,r;e?.parserAndValidationCache!==!1&&t(function({documentCache:e=i7(),errorCache:t=i7(),validationCache:n=!0}){let r=i7();return{onParse({params:n,setParsedDocument:r}){let i=n.source.toString(),s=e.get(i);if(s){r(s);return}let o=t.get(i);if(o)throw o;return({result:n})=>{null!=n&&(n instanceof Error?t.set(i,n):e.set(i,n))}},onValidate({params:{schema:e,documentAST:t,rules:i},setResult:s}){if(null!=e&&!1!==n){let n=i?.map(e=>e.name).join(",")||"",o=r.get(n);o||(o=new WeakMap,r.set(n,o));let a=o.get(e);a||(a=new WeakMap,o.set(e,a));let l=a.get(t);if(l){s(l);return}return({result:e})=>{null!=e&&a?.set(t,e)}}}}}(e?.parserAndValidationCache&&e?.parserAndValidationCache!==!0?e?.parserAndValidationCache:{})),t((n=s,{onRequestParse:()=>({onRequestParseDone({requestParserResult:e}){if(Array.isArray(e)){if(!n)throw n9("Batching is not supported.",{extensions:{http:{status:400},code:"BAD_REQUEST"}});if(e.length>n)throw n9(`Batching is limited to ${n} operations per request.`,{extensions:{http:{status:413},code:"BAD_REQUEST"}})}}})})),t((r=e?.extraParamNames,{onParams({params:e}){(function(e,t){if("object"!==iH(e))throw n9(`Expected params to be an object but given ${iH(e)}.`,{extensions:{http:{status:400,headers:{Allow:"GET, POST"}},code:"BAD_REQUEST"}});if(function(e,t){if(null==e||"object"!=typeof e)throw n9('Invalid "params" in the request body',{extensions:{http:{spec:!0,status:400},code:"BAD_REQUEST"}});for(let n in e)if(null!=e[n]&&!iY.has(n)){if(t?.includes(n))continue;throw n9(`Unexpected parameter "${n}" in the request body.`,{extensions:{http:{status:400},code:"BAD_REQUEST"}})}}(e,t),null==e.query)throw n9("Must provide query string.",{extensions:{http:{spec:!0,status:400,headers:{Allow:"GET, POST"}},code:"BAD_REQUEST"}});let n=iH(e.query);if("string"!==n)throw n9(`Expected "query" param to be a string, but given ${n}.`,{extensions:{http:{status:400,headers:{Allow:"GET, POST"}},code:"BAD_REQUEST"}});let r=iH(e.variables);if(!["object","null","undefined"].includes(r))throw n9(`Expected "variables" param to be empty or an object, but given ${r}.`,{extensions:{http:{status:400,headers:{Allow:"GET, POST"}},code:"BAD_REQUEST"}});let i=iH(e.extensions);if(!["object","null","undefined"].includes(i))throw n9(`Expected "extensions" param to be empty or an object, but given ${i}.`,{extensions:{http:{status:400,headers:{Allow:"GET, POST"}},code:"BAD_REQUEST"}})})(e,r)}})),t(function(e){let t;function n({URLPattern:n}){return t||=new n({pathname:e.graphqlEndpoint})}let r=e.landingPageRenderer||ss;return{onRequest({request:t,fetchAPI:i,endResponse:s,url:o}){if(!t.url.endsWith(e.graphqlEndpoint)&&!t.url.endsWith(`${e.graphqlEndpoint}/`)&&o.pathname!==e.graphqlEndpoint&&o.pathname!==`${e.graphqlEndpoint}/`&&!n(i).test(o)){if(!0===e.showLandingPage&&"GET"===t.method&&t.headers?.get("accept")?.includes("text/html")){let a=r({request:t,fetchAPI:i,url:o,graphqlEndpoint:e.graphqlEndpoint,get urlPattern(){return n(i)}});return nO(a)?a.then(s):void s(a)}s(new i.Response("",{status:404,statusText:"Not Found"}))}}}}({graphqlEndpoint:o,showLandingPage:!!(e?.landingPage??!0),landingPageRenderer:"function"==typeof e?.landingPage?e.landingPage:void 0})),t({onRequestParse({request:e}){var t;if(!("GET"===(t=e.method)||"POST"===t))throw n9("GraphQL only supports GET and POST requests.",{extensions:{http:{status:405,headers:{Allow:"GET, POST"}},code:"BAD_REQUEST"}})}}),t({onParse:()=>({result:e,context:{request:t,params:{operationName:n}={}}})=>{if(t){if(e instanceof Error){if(e instanceof E){let t=e.extensions||={};t.code||="GRAPHQL_PARSE_FAILED";let n=t.http||={};n.spec||=!0,n.status||=400}}else!function(e,t,n){let r=t?nW(t,n)??void 0:void 0;if(!r)throw n9("Could not determine what operation to execute.",{extensions:{code:"OPERATION_RESOLUTION_FAILURE",http:{status:400}}});if("mutation"===r.operation&&"GET"===e)throw n9("Can only perform a mutation operation from a POST request.",{extensions:{http:{status:405,headers:{Allow:"POST"}},code:"BAD_REQUEST"}})}(t.method,e,n)}}}),i&&(t({onSubscribe:()=>({onSubscribeError({error:e}){if(iA(e))throw e}})}),t(function(e){let t=e?.maskError??nB,n=e?.errorMessage||"Unexpected error.",r=nV(t,n);return{onPluginInit(e){e.registerContextErrorHandler(({error:e,setError:r})=>{r(t(e,n))})},onExecute:()=>({onExecuteDone:e=>nU(e,r)}),onSubscribe:()=>({onSubscribeResult:e=>nU(e,r),onSubscribeError({error:e,setError:r}){r(t(e,n))}})}}(i))),t({onValidate:()=>({valid:e,result:t})=>{if(!e)for(let e of t)e.extensions||={},e.extensions.code||="GRAPHQL_VALIDATION_FAILED",e.extensions.http||={},e.extensions.http.spec=null==e.extensions.http.spec||e.extensions.http.spec,e.extensions.http.status||=400}})}}],this.getEnveloped=function(e){let t=e.plugins.filter(nH),n=function({plugins:e}){let t,n=null,r=!1,i=()=>nY("parse"),s=()=>nY("validate"),o=()=>nY("execute"),a=()=>nY("subscribe"),l=(t,i=-1)=>{if(n!==t&&(n=t,r))for(let[t,r]of e.entries())t!==i&&r.onSchemaChange&&r.onSchemaChange({schema:n,replaceSchema:e=>{l(e,t)}})},u=[];for(let t=0;t<e.length;t++){let n=e[t],r=[];n.onPluginInit?.({plugins:e,addPlugin:e=>{r.push(e)},setSchema:e=>l(e,t),registerContextErrorHandler:e=>u.push(e)}),r.length&&e.splice(t+1,0,...r)}let c={init:[],parse:[],validate:[],subscribe:[],execute:[],context:[]};for(let{onContextBuilding:n,onExecute:r,onParse:i,onSubscribe:s,onValidate:o,onEnveloped:a,instrumentation:l}of e)a&&c.init.push(a),n&&c.context.push(n),r&&c.execute.push(r),i&&c.parse.push(i),s&&c.subscribe.push(s),o&&c.validate.push(o),l&&(t=t?nq(t,l):l);let f=c.parse.length?e=>(t,n)=>{let r=null,s=i,o=[];for(let i of c.parse){let a=i({context:e,extendContext:t=>{Object.assign(e,t)},params:{source:t,options:n},parseFn:s,setParseFn:e=>{s=e},setParsedDocument:e=>{r=e}});a&&o.push(a)}if(null===r)try{r=s(t,n)}catch(e){r=e}for(let t of o)t({context:e,extendContext:t=>{Object.assign(e,t)},replaceParseResult:e=>{r=e},result:r});if(null===r)throw Error("Failed to parse document.");if(r instanceof Error)throw r;return nG.set(r,t.toString()),r}:()=>i,h=c.validate.length?e=>(t,n,r,i,o)=>{let a=r?[...r]:void 0,l=s,u=null,f=[];for(let r of c.validate){let s=r({context:e,extendContext:t=>{Object.assign(e,t)},params:{schema:t,documentAST:n,rules:a,typeInfo:i,options:o},validateFn:l,addValidationRule:e=>{a||(a=[]),a.push(e)},setValidationFn:e=>{l=e},setResult:e=>{u=e}});s&&f.push(s)}if(u||(u=l(t,n,a,i,o)),!u)return;let h=0===u.length;for(let t of f)t({valid:h,result:u,context:e,extendContext:t=>{Object.assign(e,t)},setResult:e=>{u=e}});return u}:()=>s,d=c.context.length?e=>t=>{let n=[];t&&Object.assign(e,t);let r=!1;return nx(()=>nA(c.context,(t,n)=>t({context:e,extendContext:t=>{Object.assign(e,t)},breakContextBuilding:()=>{r=!0,n()}}),n),()=>r?e:nx(()=>nA(n,t=>t({context:e,extendContext(t){Object.assign(e,t)}})),()=>e),t=>{let n=t;for(let t of u)t({context:e,error:n,setError:e=>{n=e}});throw n})}:e=>t=>(t&&Object.assign(e,t),e),p=c.subscribe.length?nF(e=>{let t,n=a,r=[],i=e.contextValue||{};return nx(()=>nA(c.subscribe,(r,s)=>r({subscribeFn:n,setSubscribeFn:e=>{n=e},context:i,extendContext:e=>{Object.assign(i,e)},args:e,setResultAndStopExecution:e=>{t=e,s()}}),r),()=>{let i=[],s=[];for(let{onSubscribeResult:e,onSubscribeError:t}of r)e&&i.push(e),t&&s.push(t);return nx(()=>t||n(e),t=>{let n=[],r=[];for(let s of i){let i=s({args:e,result:t,setResult:e=>{t=e}});i&&(i.onNext&&n.push(i.onNext),i.onEnd&&r.push(i.onEnd))}return n.length&&nM(t)&&(t=nP(t,t=>nx(()=>nA(n,n=>n({args:e,result:t,setResult:e=>t=e})),()=>t))),r.length&&nM(t)&&(t=n$(t,()=>{for(let e of r)e()})),s.length&&nM(t)&&(t=function(e,t){let n=e[Symbol.asyncIterator](),r={[Symbol.asyncIterator]:()=>r,next:()=>n.next().catch(e=>(t(e),{done:!0,value:void 0})),return:()=>n.return?.()||nw({done:!0,value:void 0}),throw(e){let t=n.throw?.();if(t)return t;throw e}};return r}(t,e=>{let t=e;for(let e of s)e({error:t,setError:e=>{t=e}});throw t})),t})})}):nF(a),m=c.execute.length?nj(e=>{let t,n=o,r=[],i=[],s=e.contextValue||{};return nx(()=>nA(c.execute,(r,i)=>r({executeFn:n,setExecuteFn:e=>{n=e},setResultAndStopExecution:e=>{t=e,i()},context:s,extendContext:e=>{if("object"==typeof e)Object.assign(s,e);else throw Error(`Invalid context extension provided! Expected "object", got: "${JSON.stringify(e)}" (${typeof e})`)},args:e}),r),()=>nx(()=>t||n({...e,contextValue:s}),t=>nx(()=>nA(r,n=>n.onExecuteDone?.({args:e,result:t,setResult:e=>{t=e}}),i),()=>{let n=[],r=[];for(let{onNext:e,onEnd:t}of i)e&&n.push(e),t&&r.push(t);return n.length&&nM(t)&&(t=nP(t,t=>nx(()=>nA(n,n=>n({args:e,result:t,setResult:e=>{t=e}})),()=>t))),r.length&&nM(t)&&(t=n$(t,()=>{for(let e of r)e()})),t})))}):nj(o);if(r=!0,n)for(let[t,r]of e.entries())r.onSchemaChange?.({schema:n,replaceSchema:e=>l(e,t)});return{getCurrentSchema:()=>n,init:e=>{for(let[t,n]of c.init.entries())n({context:e,extendContext:t=>{e&&Object.assign(e,t)},setSchema:e=>l(e,t)})},parse:f,validate:h,execute:m,subscribe:p,contextFactory:d,instrumentation:t}}({plugins:t}),r=n.instrumentation,i=(e={})=>{let t=nz({context:e});return t.fn(r?.init,n.init)(e),{parse:t.fn(r?.parse,n.parse(e)),validate:t.fn(r?.validate,n.validate(e)),contextFactory:t.fn(r?.context,n.contextFactory(e)),execute:t.asyncFn(r?.execute,n.execute),subscribe:t.asyncFn(r?.subscribe,n.subscribe),schema:n.getCurrentSchema()}};return i._plugins=t,i}({plugins:this.plugins}),this.plugins=this.getEnveloped._plugins,this.onRequestParseHooks=[],this.onParamsHooks=[],this.onExecutionResultHooks=[],this.onResultProcessHooks=[],this.plugins))t&&(t.onYogaInit&&t.onYogaInit({yoga:this}),t.onRequestParse&&this.onRequestParseHooks.push(t.onRequestParse),t.onParams&&this.onParamsHooks.push(t.onParams),t.onExecutionResult&&this.onExecutionResultHooks.push(t.onExecutionResult),t.onResultProcess&&this.onResultProcessHooks.push(t.onResultProcess),t.instrumentation&&(this.instrumentation=this.instrumentation?nq(this.instrumentation,t.instrumentation):t.instrumentation))}handleParams=({request:e,context:t,params:n})=>{let r=t.request===e?{params:n}:{request:e,params:n};Object.assign(t,r);let i=this.getEnveloped(t);return this.logger.debug("Processing GraphQL Parameters"),nx(()=>nx(()=>(function({params:e,enveloped:t}){let n=t.parse(e.query),r=t.validate(t.schema,n);return r.length>0?{errors:r}:nx(()=>t.contextFactory(),r=>{let i={schema:t.schema,document:n,contextValue:r,variableValues:e.variables,operationName:e.operationName},s=nW(n,e.operationName);return(s?.operation==="subscription"?t.subscribe:t.execute)(i)})})({params:n,enveloped:i}),e=>(this.logger.debug("Processing GraphQL Parameters done."),e),e=>({errors:iD(e,this.maskedErrorsOpts,this.logger)})),e=>(nM(e)&&(e=nP(e,e=>e,e=>{if("AbortError"===e.name)throw this.logger.debug("Request aborted"),e;return{errors:iD(e,this.maskedErrorsOpts,this.logger)}})),e))};getResultForParams=({params:e,request:t},n)=>{let r;let i=this.handleParams;return nx(()=>nA(this.onParamsHooks,s=>s({params:e,request:t,setParams(t){e=t},paramsHandler:i,setParamsHandler(e){i=e},setResult(e){r=e},fetchAPI:this.fetchAPI,context:n})),()=>nx(()=>r||i({request:t,params:e,context:n}),e=>nx(()=>nA(this.onExecutionResultHooks,r=>r({result:e,setResult(t){e=t},request:t,context:n})),()=>e)))};parseRequest=(e,t)=>{let n,r=new Proxy({},{get:(t,n,i)=>Reflect.get(r=new this.fetchAPI.URL(e.url,"http://localhost"),n,r)}),i=[];return nx(()=>nA(this.onRequestParseHooks,i=>nx(()=>i({request:e,url:r,requestParser:n,serverContext:t,setRequestParser(e){n=e}}),e=>e?.onRequestParseDone),i),()=>(this.logger.debug("Parsing request to extract GraphQL parameters"),n)?nx(()=>n(e),e=>nx(()=>nA(i,t=>t({requestParserResult:e,setRequestParserResult(t){e=t}})),()=>({requestParserResult:e}))):{response:new this.fetchAPI.Response(null,{status:415,statusText:"Unsupported Media Type"})})};handle=(e,t)=>{let n=this.instrumentation&&nz({request:e}),r=this.instrumentation?.requestParse?n.asyncFn(this.instrumentation?.requestParse,this.parseRequest):this.parseRequest;return nC(nw().then(()=>r(e,t)).then(({response:r,requestParserResult:i})=>{if(r)return r;let s=this.instrumentation?.operation?(e,t)=>nz({context:t,request:e.request}).asyncFn(this.instrumentation?.operation,this.getResultForParams)(e,t):this.getResultForParams;return nx(()=>Array.isArray(i)?Promise.all(i.map(n=>s({params:n,request:e},Object.create(t)))):s({params:i,request:e},t),r=>(this.instrumentation?.resultProcess?n.asyncFn(this.instrumentation.resultProcess,so):so)({request:e,result:r,fetchAPI:this.fetchAPI,onResultProcessHooks:this.onResultProcessHooks,serverContext:t}))}).catch(n=>so({request:e,result:{errors:iD(n,this.maskedErrorsOpts,this.logger)},fetchAPI:this.fetchAPI,onResultProcessHooks:this.onResultProcessHooks,serverContext:t})))}}let sc=ei([...tu,...tR],e=>e.name);function sf(e){let t=nc(tm,e);return null==t?void 0:t.reason}function sh(e){let t=nc(ty,e);return null==t?void 0:t.url}function sd(e,t){null!=e&&e.kind===o.DOCUMENT||z(!1,"Must provide valid Document AST."),(null==t?void 0:t.assumeValid)!==!0&&(null==t?void 0:t.assumeValidSDL)!==!0&&function(e){let t=function(e,t,n=nv){let r=[],i=new nE(e,void 0,e=>{r.push(e)});return Z(e,ee(n.map(e=>e(i)))),r}(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}(e);let n=function(e,t,n){var r,i,s,a,l;let u;let c=[],f=Object.create(null),h=[],d=[];for(let e of t.definitions)if(e.kind===o.SCHEMA_DEFINITION)u=e;else if(e.kind===o.SCHEMA_EXTENSION)d.push(e);else if(tZ(e))c.push(e);else if(t1(e)){let t=e.name.value,n=f[t];f[t]=n?n.concat([e]):[e]}else e.kind===o.DIRECTIVE_DEFINITION&&h.push(e);if(0===Object.keys(f).length&&0===c.length&&0===h.length&&0===d.length&&null==u)return e;let p=Object.create(null);for(let t of e.types)p[t.name]=tC(t)||tc(t)?t:ex(t)?function(e){var t,n;let r=e.toConfig(),i=null!==(t=f[r.name])&&void 0!==t?t:[],s=r.specifiedByURL;for(let e of i)s=null!==(n=sh(e))&&void 0!==n?n:s;return new eW({...r,specifiedByURL:s,extensionASTNodes:r.extensionASTNodes.concat(i)})}(t):ew(t)?function(e){var t;let n=e.toConfig(),r=null!==(t=f[n.name])&&void 0!==t?t:[];return new eJ({...n,interfaces:()=>[...e.getInterfaces().map(b),...w(r)],fields:()=>({...eo(n.fields,v),...I(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(t):ek(t)?function(e){var t;let n=e.toConfig(),r=null!==(t=f[n.name])&&void 0!==t?t:[];return new e3({...n,interfaces:()=>[...e.getInterfaces().map(b),...w(r)],fields:()=>({...eo(n.fields,v),...I(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(t):eA(t)?function(e){var t;let n=e.toConfig(),r=null!==(t=f[n.name])&&void 0!==t?t:[];return new e2({...n,types:()=>[...e.getTypes().map(b),...k(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(t):eD(t)?function(e){var t;let n=e.toConfig(),r=null!==(t=f[e.name])&&void 0!==t?t:[];return new e6({...n,values:{...n.values,...x(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(t):eP(t)?function(e){var t;let n=e.toConfig(),r=null!==(t=f[n.name])&&void 0!==t?t:[];return new e9({...n,fields:()=>({...eo(n.fields,e=>({...e,type:g(e.type)})),...O(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(t):void y(!1,"Unexpected type: "+G(t));for(let e of c){let t=e.name.value;p[t]=null!==(l=sc[t])&&void 0!==l?l:function(e){var t,n,r,i,s,a,l;let u=e.name.value,c=null!==(t=f[u])&&void 0!==t?t:[];switch(e.kind){case o.OBJECT_TYPE_DEFINITION:{let t=[e,...c];return new eJ({name:u,description:null===(n=e.description)||void 0===n?void 0:n.value,interfaces:()=>w(t),fields:()=>I(t),astNode:e,extensionASTNodes:c})}case o.INTERFACE_TYPE_DEFINITION:{let t=[e,...c];return new e3({name:u,description:null===(r=e.description)||void 0===r?void 0:r.value,interfaces:()=>w(t),fields:()=>I(t),astNode:e,extensionASTNodes:c})}case o.ENUM_TYPE_DEFINITION:{let t=[e,...c];return new e6({name:u,description:null===(i=e.description)||void 0===i?void 0:i.value,values:x(t),astNode:e,extensionASTNodes:c})}case o.UNION_TYPE_DEFINITION:{let t=[e,...c];return new e2({name:u,description:null===(s=e.description)||void 0===s?void 0:s.value,types:()=>k(t),astNode:e,extensionASTNodes:c})}case o.SCALAR_TYPE_DEFINITION:return new eW({name:u,description:null===(a=e.description)||void 0===a?void 0:a.value,specifiedByURL:sh(e),astNode:e,extensionASTNodes:c});case o.INPUT_OBJECT_TYPE_DEFINITION:{let t=[e,...c];return new e9({name:u,description:null===(l=e.description)||void 0===l?void 0:l.value,fields:()=>O(t),astNode:e,extensionASTNodes:c,isOneOf:!!nc(tg,e)})}}}(e)}let m={query:e.query&&b(e.query),mutation:e.mutation&&b(e.mutation),subscription:e.subscription&&b(e.subscription),...u&&E([u]),...E(d)};return{description:null===(r=u)||void 0===r?void 0:null===(i=r.description)||void 0===i?void 0:i.value,...m,types:Object.values(p),directives:[...e.directives.map(function(e){let t=e.toConfig();return new th({...t,args:eo(t.args,_)})}),...h.map(function(e){var t;return new th({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:N(e.arguments),astNode:e})})],extensions:Object.create(null),astNode:null!==(s=u)&&void 0!==s?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(d),assumeValid:null!==(a=null==n?void 0:n.assumeValid)&&void 0!==a&&a};function g(e){return eR(e)?new e$(g(e.ofType)):eC(e)?new eB(g(e.ofType)):b(e)}function b(e){return p[e.name]}function v(e){return{...e,type:g(e.type),args:e.args&&eo(e.args,_)}}function _(e){return{...e,type:g(e.type)}}function E(e){let t={};for(let r of e){var n;for(let e of null!==(n=r.operationTypes)&&void 0!==n?n:[])t[e.operation]=T(e.type)}return t}function T(e){var t;let n=e.name.value,r=null!==(t=sc[n])&&void 0!==t?t:p[n];if(void 0===r)throw Error(`Unknown type: "${n}".`);return r}function S(e){return e.kind===o.LIST_TYPE?new e$(S(e.type)):e.kind===o.NON_NULL_TYPE?new eB(S(e.type)):T(e)}function I(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!==(n=i.fields)&&void 0!==n?n:[])t[e.name.value]={type:S(e.type),description:null===(r=e.description)||void 0===r?void 0:r.value,args:N(e.arguments),deprecationReason:sf(e),astNode:e}}return t}function N(e){let t=Object.create(null);for(let r of null!=e?e:[]){var n;let e=S(r.type);t[r.name.value]={type:e,description:null===(n=r.description)||void 0===n?void 0:n.value,defaultValue:nl(r.defaultValue,e),deprecationReason:sf(r),astNode:r}}return t}function O(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!==(n=i.fields)&&void 0!==n?n:[]){let n=S(e.type);t[e.name.value]={type:n,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:nl(e.defaultValue,n),deprecationReason:sf(e),astNode:e}}}return t}function x(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!==(n=i.values)&&void 0!==n?n:[])t[e.name.value]={description:null===(r=e.description)||void 0===r?void 0:r.value,deprecationReason:sf(e),astNode:e}}return t}function w(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(T))&&void 0!==t?t:[]})}function k(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(T))&&void 0!==t?t:[]})}}({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(let e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}let r=[...n.directives,...tb.filter(e=>n.directives.every(t=>t.name!==e.name))];return new tL({...n,directives:r})}let sp={};function sm(e,t,n,r){let i=function(e){let t=function(e){let t=e.loc;if(!t)return;let n=[],r=t.startToken.prev;for(;null!=r&&r.kind===a.COMMENT&&null!=r.next&&null!=r.prev&&r.line+1===r.next.line&&r.line!==r.prev.line;){let e=String(r.value);n.push(e),r=r.prev}return n.length>0?n.reverse().join("\n"):void 0}(e);if(void 0!==t)return function(e){let t=e.split(/\r\n|[\n\r]/g),n=function(e){let t=null;for(let n=1;n<e.length;n++){let r=e[n],i=sI(r);if(i!==r.length&&(null===t||i<t)&&0===(t=i))break}return null===t?0:t}(t);if(0!==n)for(let e=1;e<t.length;e++)t[e]=t[e].slice(n);for(;t.length>0&&sN(t[0]);)t.shift();for(;t.length>0&&sN(t[t.length-1]);)t.pop();return t.join("\n")}(`
20
+ ${t}`)}(e);if("string"!=typeof i||0===i.length)return;let s=[t];n&&(s.push(n),r&&s.push(r));let o=s.join(".");sp[o]||(sp[o]=[]),sp[o].push(i)}function sy(e){return"\n# "+e.replace(/\n/g,"\n# ")}function sg(e,t){return e?e.filter(e=>e).join(t||""):""}function sb(e){return e?.some(e=>e.includes("\n"))??!1}function sv(e){return e&&` ${e.replace(/\n/g,"\n ")}`}function s_(e){return e&&0!==e.length?`{
21
+ ${sv(sg(e,"\n"))}
22
+ }`:""}function sE(e,t,n){return t?e+t+(n||""):""}let sT={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>sg(e.definitions,"\n\n")},OperationDefinition:{leave:e=>{let t=sE("(",sg(e.variableDefinitions,", "),")");return sg([e.operation,sg([e.name,t]),sg(e.directives," ")]," ")+" "+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+sE(" = ",n)+sE(" ",sg(r," "))},SelectionSet:{leave:({selections:e})=>s_(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let s=sE("",e,": ")+t,o=s+sE("(",sg(n,", "),")");return o.length>80&&(o=s+sE("(\n",sv(sg(n,"\n")),"\n)")),sg([o,sg(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+sE(" ",sg(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>sg(["...",sE("on ",e),sg(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${sE("(",sg(n,", "),")")} on ${t} ${sE("",sg(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t=!1){let n=e.replace(/\\/g,"\\\\").replace(/"""/g,'\\"""');return(" "===e[0]||" "===e[0])&&-1===e.indexOf("\n")?`"""${n.replace(/"$/,'"\n')}"""`:`"""
23
+ ${t?n:sv(n)}
24
+ """`}(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+sg(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+sg(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+sE("(",sg(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>sg(["schema",sg(e," "),s_(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>sg(["scalar",e,sg(t," ")]," ")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>sg(["type",e,sE("implements ",sg(t," & ")),sg(n," "),s_(r)]," ")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(sb(t)?sE("(\n",sv(sg(t,"\n")),"\n)"):sE("(",sg(t,", "),")"))+": "+n+sE(" ",sg(r," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>sg([e+": "+t,sE("= ",n),sg(r," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>sg(["interface",e,sE("implements ",sg(t," & ")),sg(n," "),s_(r)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>sg(["union",e,sg(t," "),sE("= ",sg(n," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>sg(["enum",e,sg(t," "),s_(n)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>sg([e,sg(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>sg(["input",e,sg(t," "),s_(n)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>"directive @"+e+(sb(t)?sE("(\n",sv(sg(t,"\n")),"\n)"):sE("(",sg(t,", "),")"))+(n?" repeatable":"")+" on "+sg(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>sg(["extend schema",sg(e," "),s_(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>sg(["extend scalar",e,sg(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>sg(["extend type",e,sE("implements ",sg(t," & ")),sg(n," "),s_(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>sg(["extend interface",e,sE("implements ",sg(t," & ")),sg(n," "),s_(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>sg(["extend union",e,sg(t," "),sE("= ",sg(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>sg(["extend enum",e,sg(t," "),s_(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>sg(["extend input",e,sg(t," "),s_(n)]," ")}},sS=Object.keys(sT).reduce((e,t)=>{var n;return{...e,[t]:{leave:(n=sT[t].leave,(e,t,r,i,s)=>{let o=[],a=i.reduce((e,t)=>(["fields","arguments","values"].includes(t)&&e.name&&o.push(e.name.value),e[t]),s[0]),l=[...o,a?.name?.value].filter(Boolean).join("."),u=[];return e.kind.includes("Definition")&&sp[l]&&u.push(...sp[l]),sg([...u.map(sy),e.description,n(e,t,r,i,s)],"\n")})}}},{});function sI(e){let t=0;for(;t<e.length&&(" "===e[t]||" "===e[t]);)t++;return t}function sN(e){return sI(e)===e.length}function sO(e){if(eC(e)){let t=sO(e.ofType);if(t.kind===o.NON_NULL_TYPE)throw Error(`Invalid type node ${ra(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:o.NON_NULL_TYPE,type:t}}return eR(e)?{kind:o.LIST_TYPE,type:sO(e.ofType)}:{kind:o.NAMED_TYPE,name:{kind:o.NAME,value:e.name}}}function sx(e){if(null===e)return{kind:o.NULL};if(void 0===e)return null;if(Array.isArray(e)){let t=[];for(let n of e){let e=sx(n);null!=e&&t.push(e)}return{kind:o.LIST,values:t}}if("object"==typeof e){if(e?.toJSON)return sx(e.toJSON());let t=[];for(let n in e){let r=sx(e[n]);r&&t.push({kind:o.OBJECT_FIELD,name:{kind:o.NAME,value:n},value:r})}return{kind:o.OBJECT,fields:t}}if("boolean"==typeof e)return{kind:o.BOOLEAN,value:e};if("bigint"==typeof e)return{kind:o.INT,value:String(e)};if("number"==typeof e&&isFinite(e)){let t=String(e);return sw.test(t)?{kind:o.INT,value:t}:{kind:o.FLOAT,value:t}}if("string"==typeof e)return{kind:o.STRING,value:e};throw TypeError(`Cannot convert value to AST: ${e}.`)}let sw=/^-?(?:0|[1-9][0-9]*)$/;function sk(e,t){if(eC(t)){let n=sk(e,t.ofType);return n?.kind===o.NULL?null:n}if(null===e)return{kind:o.NULL};if(void 0===e)return null;if(eR(t)){let n=t.ofType;if(rn(e)){let t=[];for(let r of e){let e=sk(r,n);null!=e&&t.push(e)}return{kind:o.LIST,values:t}}return sk(e,n)}if(eP(t)){if(!rr(e))return null;let n=[];for(let r of Object.values(t.getFields())){let t=sk(e[r.name],r.type);t&&n.push({kind:o.OBJECT_FIELD,name:{kind:o.NAME,value:r.name},value:t})}return{kind:o.OBJECT,fields:n}}if(ej(t)){let n=t.serialize(e);return null==n?null:eD(t)?{kind:o.ENUM,value:n}:"ID"===t.name&&"string"==typeof n&&sA.test(n)?{kind:o.INT,value:n}:sx(n)}console.assert(!1,"Unexpected input type: "+ra(t))}let sA=/^-?(?:0|[1-9][0-9]*)$/;function sD(e){return e.astNode?.description?{...e.astNode.description,block:!0}:e.description?{kind:o.STRING,value:e.description,block:!0}:void 0}function sP(e,t=["directives"]){return Object.entries(function(e,t,n=["directives"]){let r={};if(e.extensions){let t=e.extensions;for(let e of n)t=t?.[e];if(null!=t)for(let e in t){let n=t[e];if(Array.isArray(n))for(let t of n){let n=r[e];n||(n=[],r[e]=n),n.push(t)}else{let t=r[e];t||(t=[],r[e]=t),t.push(n)}}}let i=nJ(e=>JSON.stringify(e)),s=[];for(let n of(e.astNode&&s.push(e.astNode),e.extensionASTNodes&&s.push(...e.extensionASTNodes),s))if(n.directives?.length)for(let e of n.directives){let n=e.name.value,o=r[n];o||(o=[],r[n]=o);let a=t?.getDirective(n),l={};if(a&&(l=rf(a,e)),e.arguments)for(let t of e.arguments){let e=t.name.value;if(null==l[e]){let n=a?.args.find(t=>t.name===e);n&&(l[e]=nl(t.value,n.type))}null==l[e]&&(l[e]=eI(t.value))}if(s.length>0&&o.length>0){let e=i(l);if(o.some(t=>i(t)===e))continue}o.push(l)}return r}(e,void 0,t)).map(([e,t])=>t?.map(t=>({name:e,args:t}))).flat(1/0).filter(Boolean)}let sR=e=>Array.isArray(e)?e:e?[e]:[];function sC(e){let t;return"alias"in e&&(t=e.alias?.value),null==t&&"name"in e&&(t=e.name?.value),null==t&&(t=e.kind),t}function sL(e,t,n){let r=sC(e),i=sC(t);return"function"==typeof n?n(r,i):String(r)<String(i)?-1:String(r)>String(i)?1:0}function sF(e){return null!=e}function sj(e,t,n){let r,i=[],s=sP(e,n);null!=s&&(r=sB(t,s));let o=null,a=null,l=null;return null!=r&&(i=r.filter(e=>tb.every(t=>t.name!==e.name.value)),o=r.find(e=>"deprecated"===e.name.value),a=r.find(e=>"specifiedBy"===e.name.value),l=r.find(e=>"oneOf"===e.name.value)),null!=e.deprecationReason&&null==o&&(o=s$("deprecated",{reason:e.deprecationReason},tm)),(null!=e.specifiedByUrl||null!=e.specifiedByURL&&null==a)&&(a=s$("specifiedBy",{url:e.specifiedByUrl||e.specifiedByURL})),e.isOneOf&&null==l&&(l=s$("oneOf")),null!=o&&i.push(o),null!=a&&i.push(a),null!=l&&i.push(l),i}function sM(e,t,n){return{kind:o.INPUT_VALUE_DEFINITION,description:sD(e),name:{kind:o.NAME,value:e.name},type:sO(e.type),defaultValue:void 0!==e.defaultValue?sk(e.defaultValue,e.type)??void 0:void 0,directives:sj(e,t,n)}}function sU(e,t,n){return{kind:o.FIELD_DEFINITION,description:sD(e),name:{kind:o.NAME,value:e.name},arguments:e.args.map(e=>sM(e,t,n)),type:sO(e.type),directives:sj(e,t,n)}}function s$(e,t,n){let r=[];for(let e in t){let i;let s=t[e];if(null!=n){let t=n.args.find(t=>t.name===e);t&&(i=sk(s,t.type))}null==i&&(i=sx(s)),null!=i&&r.push({kind:o.ARGUMENT,name:{kind:o.NAME,value:e},value:i})}return{kind:o.DIRECTIVE,name:{kind:o.NAME,value:e},arguments:r}}function sB(e,t){let n=[];for(let{name:r,args:i}of t){let t=e?.getDirective(r);n.push(s$(r,i,t))}return n}function sV(e){return e.as??e.url.name}function sq(e,t){var n;if(e.url.name&&t===`@${e.url.name}`)return(function(e){let t=sV(e);return t&&`@${t}`})(e).substring(1);let r=e.imports.find(e=>e.name===t),i=r?.as??r?.name??(n=sV(e),n?.length?t.startsWith("@")?`@${n}__${t.substring(1)}`:`${n}__${t}`:t);return i.startsWith("@")?i.substring(1):i}let sz=/v(\d{1,3})\.(\d{1,4})/i;function sG(e){let t=new URL(e),n=t.pathname.split("/").filter(Boolean),r=n[n.length-1];if(r){if(sz.test(r)){let e=n[n.length-2];return{identity:t.origin+(e?`/${n.slice(0,n.length-1).join("/")}`:""),name:e??null,version:r}}return{identity:`${t.origin}/${n.join("/")}`,name:r,version:null}}return{identity:t.origin,name:null,version:null}}function sY(e,t){return t.some(({value:t})=>t===e.value)}let sH=(e,t)=>{if(e.kind===t.kind)switch(e.kind){case o.LIST:return e.values.length===t.values.length&&e.values.every(e=>t.values.find(t=>sH(e,t)));case o.VARIABLE:case o.NULL:return!0;case o.OBJECT:return e.fields.length===t.fields.length&&e.fields.every(e=>t.fields.find(t=>e.name.value===t.name.value&&sH(e.value,t.value)));default:return e.value===t.value}return!1},sW=(e,t)=>e.name.value===t.name.value&&e.value.kind===t.value.kind&&sH(e.value,t.value),sJ=(e,t)=>!!(e.name.value===t.name.value&&(e.arguments===t.arguments||e.arguments?.length===t.arguments?.length&&e.arguments?.every(e=>t.arguments?.find(t=>sW(e,t)))));function sQ(e=[],t=[],n,r){let i=n&&n.reverseDirectives,s=[];for(let a of[...i?e:t,...i?t:e]){var o;if(o=n?.repeatableLinkImports,r?.[a.name.value]?.repeatable??o?.has(a.name.value))s.find(e=>sJ(a,e))||s.push(a);else{let e=s.findIndex(e=>e.name.value===a.name.value);if(-1===e)s.push(a);else{let t=function(e,t){let n=[];for(let r of[...t,...e]){let e=n.findIndex(e=>e.name.value===r.name.value);if(-1===e)n.push(r);else{let t=n[e];if("ListValue"===t.value.kind){let e=t.value.values,n=r.value.values;t.value={...t.value,values:sK(e,n,(e,t)=>{let n=e.value;return!n||!t.some(e=>e.value===n)})}}else t.value=r.value}}return n}(a.arguments??[],s[e].arguments??[]);s[e]={...s[e],arguments:0===t.length?void 0:t}}}}return s}function sK(e,t,n){return e.concat(t.filter(t=>n(t,e)))}function sX(e){let t=e;for(;t.kind===o.LIST_TYPE||"NonNullType"===t.kind;)t=t.type;return t}function sZ(e){return e.kind!==o.NAMED_TYPE}function s0(e){return e.kind===o.LIST_TYPE}function s1(e){return e.kind===o.NON_NULL_TYPE}function s4(e){return s0(e)?`[${s4(e.type)}]`:s1(e)?`${s4(e.type)}!`:e.name.value}function s3(e,t){return null==e&&null==t?u.A_EQUALS_B:null==e?u.A_SMALLER_THAN_B:null==t?u.A_GREATER_THAN_B:e<t?u.A_SMALLER_THAN_B:e>t?u.A_GREATER_THAN_B:u.A_EQUALS_B}function s2(e,t,n,r,i){let s=[];if(null!=n&&s.push(...n),null!=t)for(let n of t){let[t,o]=function(e,t){let n=e.findIndex(e=>e.name.value===t.name.value);return[n>-1?e[n]:null,n]}(s,n);if(t&&!r?.ignoreFieldConflicts){let a=r?.onFieldTypeConflict&&r.onFieldTypeConflict(t,n,e,r?.throwOnConflict)||function(e,t,n,r=!1){let i=s4(t.type),s=s4(n.type);if(i!==s){let o=sX(t.type),a=sX(n.type);if(o.name.value!==a.name.value)throw Error(`Field "${n.name.value}" already defined with a different type. Declared as "${o.name.value}", but you tried to override with "${a.name.value}"`);if(!function e(t,n,r=!1){return sZ(t)||sZ(n)?s1(n)?e(s1(t)?t.type:t,n.type):s1(t)?e(n,t,r):!!s0(t)&&(s0(n)&&e(t.type,n.type)||s1(n)&&e(t,n.type)):t.toString()===n.toString()}(t.type,n.type,!r))throw Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${s}'`)}return s1(n.type)&&!s1(t.type)&&(t.type=n.type),t}(e,t,n,r?.throwOnConflict);a.arguments=function(e,t,n){let r=function(e,t){return e.reduce((e,n)=>{let r=e.findIndex(e=>e.name.value===n.name.value);return -1===r?e.concat([n]):(t?.reverseArguments||(e[r]=n),e)},[])}([...t,...e].filter(sF),n);return n&&n.sort&&r.sort(sL),r}(n.arguments||[],t.arguments||[],r),a.directives=sQ(n.directives,t.directives,r,i),a.description=n.description||t.description,s[o]=a}else s.push(n)}if(r&&r.sort&&s.sort(sL),r&&r.exclusions){let t=r.exclusions;return s.filter(n=>!t.includes(`${e.name.value}.${n.name.value}`))}return s}function s5(e=[],t=[],n={}){let r=[...t,...e.filter(e=>!t.find(t=>t.name.value===e.name.value))];return n&&n.sort&&r.sort(sL),r}!function(e){e[e.A_SMALLER_THAN_B=-1]="A_SMALLER_THAN_B",e[e.A_EQUALS_B=0]="A_EQUALS_B",e[e.A_GREATER_THAN_B=1]="A_GREATER_THAN_B"}(u||(u={}));let s6={query:"Query",mutation:"Mutation",subscription:"Subscription"},s7="SCHEMA_DEF_SYMBOL";function s8(e,t,n={}){var r,i,s,a,l;for(let u of e)if("name"in u){let e=u.name?.value;if(t?.commentDescriptions&&function(e){let t=e.name?.value;if(null!=t)switch(sm(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let n of e.values)sm(n,t,n.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let n of e.fields)if(sm(n,t,n.name.value),"FieldDefinition"===n.kind&&n.arguments)for(let e of n.arguments)sm(e,t,n.name.value,e.name.value)}}}(u),null==e)continue;if(t?.exclusions?.includes(e+".*")||t?.exclusions?.includes(e))delete n[e];else switch(u.kind){case o.OBJECT_TYPE_DEFINITION:case o.OBJECT_TYPE_EXTENSION:n[e]=function(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n?.convertExtensions||"ObjectTypeDefinition"===e.kind||"ObjectTypeDefinition"===t.kind?"ObjectTypeDefinition":"ObjectTypeExtension",loc:e.loc,fields:s2(e,e.fields,t.fields,n,r),directives:sQ(e.directives,t.directives,n,r),interfaces:s5(e.interfaces,t.interfaces,n)}}catch(t){throw Error(`Unable to merge GraphQL type "${e.name.value}": ${t.message}`)}return n?.convertExtensions?{...e,kind:o.OBJECT_TYPE_DEFINITION}:e}(u,n[e],t,n);break;case o.ENUM_TYPE_DEFINITION:case o.ENUM_TYPE_EXTENSION:n[e]=(r=n[e])?{name:u.name,description:u.description||r.description,kind:t?.convertExtensions||"EnumTypeDefinition"===u.kind||"EnumTypeDefinition"===r.kind?"EnumTypeDefinition":"EnumTypeExtension",loc:u.loc,directives:sQ(u.directives,r.directives,t,n),values:function(e,t,n,r){if(n?.consistentEnumMerge){let n=[];e&&n.push(...e),e=t,t=n}let i=new Map;if(e)for(let t of e)i.set(t.name.value,t);if(t)for(let e of t){let t=e.name.value;if(i.has(t)){let n=i.get(t);n.description=e.description||n.description,n.directives=sQ(e.directives,n.directives,void 0)}else i.set(t,e)}let s=[...i.values()];return n&&n.sort&&s.sort(sL),s}(u.values,r.values,t)}:t?.convertExtensions?{...u,kind:o.ENUM_TYPE_DEFINITION}:u;break;case o.UNION_TYPE_DEFINITION:case o.UNION_TYPE_EXTENSION:n[e]=(i=n[e])?{name:u.name,description:u.description||i.description,directives:sQ(u.directives,i.directives,t,n),kind:t?.convertExtensions||"UnionTypeDefinition"===u.kind||"UnionTypeDefinition"===i.kind?o.UNION_TYPE_DEFINITION:o.UNION_TYPE_EXTENSION,loc:u.loc,types:s5(u.types,i.types,t)}:t?.convertExtensions?{...u,kind:o.UNION_TYPE_DEFINITION}:u;break;case o.SCALAR_TYPE_DEFINITION:case o.SCALAR_TYPE_EXTENSION:n[e]=(s=n[e])?{name:u.name,description:u.description||s.description,kind:t?.convertExtensions||"ScalarTypeDefinition"===u.kind||"ScalarTypeDefinition"===s.kind?"ScalarTypeDefinition":"ScalarTypeExtension",loc:u.loc,directives:sQ(u.directives,s.directives,t,n)}:t?.convertExtensions?{...u,kind:o.SCALAR_TYPE_DEFINITION}:u;break;case o.INPUT_OBJECT_TYPE_DEFINITION:case o.INPUT_OBJECT_TYPE_EXTENSION:n[e]=function(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n?.convertExtensions||"InputObjectTypeDefinition"===e.kind||"InputObjectTypeDefinition"===t.kind?"InputObjectTypeDefinition":"InputObjectTypeExtension",loc:e.loc,fields:s2(e,e.fields,t.fields,n),directives:sQ(e.directives,t.directives,n,r)}}catch(t){throw Error(`Unable to merge GraphQL input type "${e.name.value}": ${t.message}`)}return n?.convertExtensions?{...e,kind:o.INPUT_OBJECT_TYPE_DEFINITION}:e}(u,n[e],t,n);break;case o.INTERFACE_TYPE_DEFINITION:case o.INTERFACE_TYPE_EXTENSION:n[e]=function(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n?.convertExtensions||"InterfaceTypeDefinition"===e.kind||"InterfaceTypeDefinition"===t.kind?"InterfaceTypeDefinition":"InterfaceTypeExtension",loc:e.loc,fields:s2(e,e.fields,t.fields,n,r),directives:sQ(e.directives,t.directives,n,r),interfaces:e.interfaces?s5(e.interfaces,t.interfaces,n):void 0}}catch(t){throw Error(`Unable to merge GraphQL interface "${e.name.value}": ${t.message}`)}return n?.convertExtensions?{...e,kind:o.INTERFACE_TYPE_DEFINITION}:e}(u,n[e],t,n);break;case o.DIRECTIVE_DEFINITION:n[e]&&e in{}&&!(null!=(a=n[e])&&"object"==typeof a&&"kind"in a&&"string"==typeof a.kind)&&(n[e]=void 0),n[e]=function(e,t){return t?{...e,arguments:sK(t.arguments||[],e.arguments||[],(e,t)=>!sY(e.name,t.map(e=>e.name))),locations:[...t.locations,...e.locations.filter(e=>!sY(e,t.locations))]}:e}(u,n[e])}}else(u.kind===o.SCHEMA_DEFINITION||u.kind===o.SCHEMA_EXTENSION)&&(n[s7]=(l=n[s7])?{kind:u.kind===o.SCHEMA_DEFINITION||l.kind===o.SCHEMA_DEFINITION?o.SCHEMA_DEFINITION:o.SCHEMA_EXTENSION,description:u.description||l.description,directives:sQ(u.directives,l.directives,t,void 0),operationTypes:function(e=[],t=[]){let n=[];for(let r in s6){let i=e.find(e=>e.operation===r)||t.find(e=>e.operation===r);i&&n.push(i)}return n}(u.operationTypes,l.operationTypes)}:t?.convertExtensions?{...u,kind:o.SCHEMA_DEFINITION}:u);return n}function s9(e,t){let n;sp={};let r={kind:o.DOCUMENT,definitions:function(e,t){sp={};let{allDirectives:n,allNodes:r,repeatableLinkImports:i}=function e(t,n,r=[],i=[],s=new Set,a=new Set){let l=e=>{a.add(e)};if(t&&!s.has(t)){if(s.add(t),"function"==typeof t)e(t(),n,r,i,s,a);else if(Array.isArray(t))for(let o of t)e(o,n,r,i,s,a);else if(Y(t,tL))e(function(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=function(e,t){let n=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),r=[];if(null!=e.astNode&&r.push(e.astNode),null!=e.extensionASTNodes)for(let t of e.extensionASTNodes)r.push(t);for(let e of r)if(e.operationTypes)for(let t of e.operationTypes)n.set(t.operation,t);let i=rt(e);for(let[e,t]of n){let r=i.get(e);if(null!=r){let i=sO(r);null!=t?t.type=i:n.set(e,{kind:o.OPERATION_TYPE_DEFINITION,operation:e,type:i})}}let s=[...n.values()].filter(sF),a=sj(e,e,t);if(!s.length&&!a.length)return null;let l={kind:null!=s?o.SCHEMA_DEFINITION:o.SCHEMA_EXTENSION,operationTypes:s,directives:a},u=sD(e);return u&&(l.description=u),l}(e,n),s=null!=i?[i]:[];for(let t of e.getDirectives())tv(t)||s.push(function(e,t,n){return{kind:o.DIRECTIVE_DEFINITION,description:sD(e),name:{kind:o.NAME,value:e.name},arguments:e.args?.map(e=>sM(e,t,n)),repeatable:e.isRepeatable,locations:e.locations?.map(e=>({kind:o.NAME,value:e}))||[]}}(t,e,n));for(let t in r){let i=r[t],a=tc(i),l=tC(i);if(!a&&!l){if(ew(i))s.push(function(e,t,n){return{kind:o.OBJECT_TYPE_DEFINITION,description:sD(e),name:{kind:o.NAME,value:e.name},fields:Object.values(e.getFields()).map(e=>sU(e,t,n)),interfaces:Object.values(e.getInterfaces()).map(e=>sO(e)),directives:sj(e,t,n)}}(i,e,n));else if(ek(i))s.push(function(e,t,n){let r={kind:o.INTERFACE_TYPE_DEFINITION,description:sD(e),name:{kind:o.NAME,value:e.name},fields:Object.values(e.getFields()).map(e=>sU(e,t,n)),directives:sj(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(e=>sO(e))),r}(i,e,n));else if(eA(i))s.push({kind:o.UNION_TYPE_DEFINITION,description:sD(i),name:{kind:o.NAME,value:i.name},directives:sj(i,e,n),types:i.getTypes().map(e=>sO(e))});else if(eP(i))s.push(function(e,t,n){return{kind:o.INPUT_OBJECT_TYPE_DEFINITION,description:sD(e),name:{kind:o.NAME,value:e.name},fields:Object.values(e.getFields()).map(e=>({kind:o.INPUT_VALUE_DEFINITION,description:sD(e),name:{kind:o.NAME,value:e.name},type:sO(e.type),directives:sj(e,t,n),defaultValue:sk(e.defaultValue,e.type)??void 0})),directives:sj(e,t,n)}}(i,e,n));else if(eD(i))s.push(function(e,t,n){return{kind:o.ENUM_TYPE_DEFINITION,description:sD(e),name:{kind:o.NAME,value:e.name},values:Object.values(e.getValues()).map(e=>({kind:o.ENUM_VALUE_DEFINITION,description:sD(e),name:{kind:o.NAME,value:e.name},directives:sj(e,t,n)})),directives:sj(e,t,n)}}(i,e,n));else if(ex(i))s.push(function(e,t,n){let r=sB(t,sP(e,n)),i=e.specifiedByUrl||e.specifiedByURL;return i&&!r.some(e=>"specifiedBy"===e.name.value)&&r.push(s$("specifiedBy",{url:i})),{kind:o.SCALAR_TYPE_DEFINITION,description:sD(e),name:{kind:o.NAME,value:e.name},directives:r}}(i,e,n));else throw Error(`Unknown type ${i}.`)}}return{kind:o.DOCUMENT,definitions:s}}(t,n).definitions,n,r,i,s,a);else if("string"==typeof t||t instanceof H)e(W(t,n).definitions,n,r,i,s,a);else if("object"==typeof t&&(tQ(t)||tX(t)||t0(t))){let e=function(e){let t=[];for(let n of e.definitions)if(n.kind===o.SCHEMA_EXTENSION||n.kind===o.SCHEMA_DEFINITION){let e=n.directives?.filter(e=>"link"===e.name.value),r=e?.map(e=>(function(e){let t,n;let r=[];for(let s of e)switch(s.name.value){case"url":s.value.kind===o.STRING&&(t=sG(s.value.value));break;case"import":var i;r=(i=s.value).kind===o.LIST?i.values.map(e=>{let t;if(e.kind===o.STRING)t={name:e.value};else if(e.kind===o.OBJECT){let n,r="";for(let t of e.fields)"name"===t.name.value?t.value.kind===o.STRING&&(r=t.value.value):"as"===t.name.value&&t.value.kind===o.STRING&&(n=t.value.value);t={name:r,as:n}}return t}).filter(e=>void 0!==e):[];break;case"as":s.value.kind===o.STRING&&(n=s.value.value??void 0)}if(void 0!==t)return{url:t,as:n,imports:r}})(e.arguments??[])).filter(e=>void 0!==e)??[];t=t.concat(r);let i=n.directives?.filter(({name:e})=>"core"===e.value),s=i?.map(e=>(function(e){let t=e.find(({name:e,value:t})=>"feature"===e.value&&t.kind===o.STRING);if(t)return{url:sG(t.value.value),imports:[]}})(e.arguments??[])).filter(e=>void 0!==e);s&&(t=t.concat(...s))}return t}({definitions:[t],kind:o.DOCUMENT}),n=e.find(e=>"https://specs.apollo.dev/federation"===e.url.identity);n&&(l(sq(n,"@composeDirective")),l(sq(n,"@key")));let s=e.find(e=>"https://specs.apollo.dev/link"===e.url.identity);s&&l(sq(s,"@link")),t.kind===o.DIRECTIVE_DEFINITION?r.push(t):i.push(t)}else if(t&&"object"==typeof t&&"kind"in t&&t.kind===o.DOCUMENT)e(t.definitions,n,r,i,s,a);else throw Error(`typeDefs must contain only strings, documents, schemas, or functions, got ${typeof t}`)}return{allDirectives:r,allNodes:i,repeatableLinkImports:a}}(e,t),s=s8(n,t);t.repeatableLinkImports=i;let a=s8(r,t,s);if(t?.useSchemaDefinition){let e=a[s7]||{kind:o.SCHEMA_DEFINITION,operationTypes:[]},t=e.operationTypes;for(let e in s6)if(!t.find(t=>t.operation===e)){let n=a[s6[e]];null!=n&&null!=n.name&&t.push({kind:o.OPERATION_TYPE_DEFINITION,type:{kind:o.NAMED_TYPE,name:n.name},operation:e})}e?.operationTypes?.length!=null&&e.operationTypes.length>0&&(a[s7]=e)}t?.forceSchemaDefinition&&!a[s7]?.operationTypes?.length&&(a[s7]={kind:o.SCHEMA_DEFINITION,operationTypes:[{kind:o.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:o.NAMED_TYPE,name:{kind:o.NAME,value:"Query"}}}]});let l=Object.values(a);if(t?.sort){let e="function"==typeof t.sort?t.sort:s3;l.sort((t,n)=>e(t.name?.value,n.name?.value))}return l}(e,{useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1,...t})};return n=t?.commentDescriptions?Z(r,sS):r,sp={},n}function oe(e,t=!1,n=!1,r=!1){let i,s,o;let a=!0,l=e.every(e=>{if(Array.isArray(e)){if(void 0===i)return i=e.length,!0;if(i===e.length)return!0}else a=!1;return!1});if(r&&l)return Array(i).fill(null).map((i,s)=>oe(e.map(e=>e[s]),t,n,r));if(a)return e.flat(1);for(let i of(t&&(o=e.find(e=>ot(e)),null==s&&(s={}),o&&Object.setPrototypeOf(s,Object.create(Object.getPrototypeOf(o)))),e))if(ot(i)){if(o){let e=Object.getPrototypeOf(s),t=Object.getPrototypeOf(i);if(t)for(let n of Object.getOwnPropertyNames(t)){let r=Object.getOwnPropertyDescriptor(t,n);sF(r)&&Object.defineProperty(e,n,r)}}for(let e in i)null==s&&(s={}),e in s?s[e]=oe([s[e],i[e]],t,n,r):s[e]=i[e]}else s=Array.isArray(i)&&Array.isArray(s)?oe([s,i],t,n,r):i;return s}function ot(e){return e&&"object"==typeof e&&!Array.isArray(e)}function on(e,t){if(e&&t&&t!==e.extensions){if(!e.extensions){e.extensions=t;return}e.extensions=oe([e.extensions,t],!1,!0)}}function or(e,t){let n=e.getTypeMap();for(let e in n){let r=n[e];if(!eG(r).name.startsWith("__")){if(ew(r)){let e=r.getFields();for(let n in e)for(let r of e[n].args)r.defaultValue=t(r.type,r.defaultValue)}else if(eP(r)){let e=r.getFields();for(let n in e){let r=e[n];r.defaultValue=t(r.type,r.defaultValue)}}}}}function oi(e,t,n=null,r=null){if(null==t)return t;let i=eq(e);if(ej(i))return null!=n?n(i,t):t;if(eR(i))return sR(t).map(e=>oi(i.ofType,e,n,r));if(eP(i)){let e=i.getFields(),s={};for(let i in t){let o=e[i];null!=o&&(s[i]=oi(o.type,t[i],n,r))}return null!=r?r(i,s):s}}function os(e,t){return oi(e,t,(e,t)=>{try{return e.serialize(t)}catch{return t}})}function oo(e,t){return oi(e,t,(e,t)=>{try{return e.parseValue(t)}catch{return t}})}function oa(e,t){let n=e.getTypeMap();for(let e in n){let r=n[e];if(!eG(r).name.startsWith("__")&&ew(r)){let n=r.getFields();for(let r in n)t(n[r],e,r)}}}function ol(e,t){if(t){let n=e[t.name];if(ew(n))return n}}function ou(e,t={}){let n=op(od(oc(of(function(e,t,n){let r=function(e){let t=e[c.ENUM_VALUE];return null!=t?t:null}(n);return r?oc(e,t,{[c.ENUM_TYPE]:e=>{let n=e.toConfig(),i=n.values,s={};for(let n in i){let o=i[n],a=r(o,e.name,t,n);if(void 0===a)s[n]=o;else if(Array.isArray(a)){let[e,t]=a;s[e]=void 0===t?o:t}else null!==a&&(s[n]=a)}return om(new e6({...n,values:s}))}},e=>eD(e)):e}(oc(of(e.getTypeMap(),e,os),e,t,e=>ej(e)),e,t),e,oo),e,t,e=>!ej(e)),e,t),e,t),{typeMap:r,directives:i}=function(e,t){let n=Object.create(null);for(let t in e)n[t]=e[t];let r=Object.create(null);for(let e in n){let t=n[e];if(null==t||e.startsWith("__"))continue;let i=t.name;if(!i.startsWith("__")){if(null!=r[i]){console.warn(`Duplicate schema type name ${i} found; keeping the existing one found in the schema`);continue}r[i]=t}}for(let e in r)r[e]=s(r[e]);return{typeMap:r,directives:t.map(e=>(function(e){if(tv(e))return e;let t=e.toConfig();return t.args=i(t.args),new th(t)})(e))};function i(e){let t={};for(let n in e){let r=e[n],i=l(r.type);null!=i&&(r.type=i,t[n]=r)}return t}function s(e){if(ew(e)){let t=e.toConfig();return new eJ({...t,fields:()=>o(t.fields),interfaces:()=>a(t.interfaces)})}if(ek(e)){let t=e.toConfig(),n={...t,fields:()=>o(t.fields)};return"interfaces"in n&&(n.interfaces=()=>a(t.interfaces)),new e3(n)}if(eA(e)){let t=e.toConfig();return new e2({...t,types:()=>a(t.types)})}if(eP(e)){let t=e.toConfig();return new e9({...t,fields:()=>(function(e){let t={};for(let n in e){let r=e[n],i=l(r.type);null!=i&&(r.type=i,t[n]=r)}return t})(t.fields)})}if(eD(e))return new e6(e.toConfig());if(ex(e))return tc(e)?e:new eW(e.toConfig());throw Error(`Unexpected schema type: ${e}`)}function o(e){let t={};for(let n in e){let r=e[n],s=l(r.type);null!=s&&r.args&&(r.type=s,r.args=i(r.args),t[n]=r)}return t}function a(e){let t=[];for(let n of e){let e=l(n);null!=e&&t.push(e)}return t}function l(e){if(eR(e)){let t=l(e.ofType);return null!=t?new e$(t):null}if(eC(e)){let t=l(e.ofType);return null!=t?new eB(t):null}if(ez(e)){let t=n[e.name];return void 0===t&&(r[(t=!function(e){if("getFields"in e){let t=e.getFields();for(let e in t)return"_fake"===t[e].name}return!1}(e)?s(e):function(e){switch(e.name){case ti.name:return ti;case ts.name:return ts;case to.name:return to;case ta.name:return ta;case tl.name:return tl;default:return e}}(e)).name]=n[e.name]=t),null!=t?r[t.name]:null}return null}}(n,function(e,t,n){let r=function(e){let t=e[c.DIRECTIVE];return null!=t?t:null}(n);if(null==r)return e.slice();let i=[];for(let n of e){let e=r(n,t);void 0===e?i.push(n):null!==e&&i.push(e)}return i}(e.getDirectives(),e,t));return new tL({...e.toConfig(),query:ol(r,ol(n,e.getQueryType())),mutation:ol(r,ol(n,e.getMutationType())),subscription:ol(r,ol(n,e.getSubscriptionType())),types:Object.values(r),directives:i})}function oc(e,t,n,r=()=>!0){let i={};for(let s in e)if(!s.startsWith("__")){let o=e[s];if(null==o||!r(o)){i[s]=o;continue}let a=function(e,t,n){let r;let i=[...function(e,t){let n=e.getType(t),r=[c.TYPE];return ew(n)?(r.push(c.COMPOSITE_TYPE,c.OBJECT_TYPE),t===e.getQueryType()?.name?r.push(c.ROOT_OBJECT,c.QUERY):t===e.getMutationType()?.name?r.push(c.ROOT_OBJECT,c.MUTATION):t===e.getSubscriptionType()?.name&&r.push(c.ROOT_OBJECT,c.SUBSCRIPTION)):eP(n)?r.push(c.INPUT_OBJECT_TYPE):ek(n)?r.push(c.COMPOSITE_TYPE,c.ABSTRACT_TYPE,c.INTERFACE_TYPE):eA(n)?r.push(c.COMPOSITE_TYPE,c.ABSTRACT_TYPE,c.UNION_TYPE):eD(n)?r.push(c.ENUM_TYPE):ex(n)&&r.push(c.SCALAR_TYPE),r}(e,n)];for(;!r&&i.length>0;)r=t[i.pop()];return null!=r?r:null}(t,n,s);if(null==a){i[s]=o;continue}let l=a(o,t);if(void 0===l){i[s]=o;continue}i[s]=l}return i}function of(e,t,n){let r=op(e,t,{[c.ARGUMENT]:t=>{if(void 0===t.defaultValue)return t;let r=oh(e,t.type);if(null!=r)return{...t,defaultValue:n(r,t.defaultValue)}}});return od(r,t,{[c.INPUT_OBJECT_FIELD]:e=>{if(void 0===e.defaultValue)return e;let t=oh(r,e.type);if(null!=t)return{...e,defaultValue:n(t,e.defaultValue)}}})}function oh(e,t){if(eR(t)){let n=oh(e,t.ofType);return null!=n?new e$(n):null}if(eC(t)){let n=oh(e,t.ofType);return null!=n?new eB(n):null}if(ez(t)){let n=e[t.name];return null!=n?n:null}return null}function od(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let s=e[i];if(!ew(s)&&!ek(s)&&!eP(s)){r[i]=s;continue}let o=function(e,t,n){let r;let i=[...function(e,t){let n=e.getType(t),r=[c.FIELD];return ew(n)?(r.push(c.COMPOSITE_FIELD,c.OBJECT_FIELD),t===e.getQueryType()?.name?r.push(c.ROOT_FIELD,c.QUERY_ROOT_FIELD):t===e.getMutationType()?.name?r.push(c.ROOT_FIELD,c.MUTATION_ROOT_FIELD):t===e.getSubscriptionType()?.name&&r.push(c.ROOT_FIELD,c.SUBSCRIPTION_ROOT_FIELD)):ek(n)?r.push(c.COMPOSITE_FIELD,c.INTERFACE_FIELD):eP(n)&&r.push(c.INPUT_OBJECT_FIELD),r}(e,n)];for(;!r&&i.length>0;)r=t[i.pop()];return r??null}(t,n,i);if(null==o){r[i]=s;continue}let a=s.toConfig(),l=a.fields,u={};for(let e in l){let n=l[e],r=o(n,e,i,t);if(void 0===r)u[e]=n;else if(Array.isArray(r)){let[e,t]=r;null!=t.astNode&&(t.astNode={...t.astNode,name:{...t.astNode.name,value:e}}),u[e]=void 0===t?n:t}else null!==r&&(u[e]=r)}ew(s)?r[i]=om(new eJ({...a,fields:u})):ek(s)?r[i]=om(new e3({...a,fields:u})):r[i]=om(new e9({...a,fields:u}))}return r}function op(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let s=e[i];if(!ew(s)&&!ek(s)){r[i]=s;continue}let o=function(e){let t=e[c.ARGUMENT];return null!=t?t:null}(n);if(null==o){r[i]=s;continue}let a=s.toConfig(),l=a.fields,u={};for(let e in l){let n=l[e],r=n.args;if(null==r){u[e]=n;continue}let s=Object.keys(r);if(!s.length){u[e]=n;continue}let a={};for(let n of s){let s=r[n],l=o(s,e,i,t);if(void 0===l)a[n]=s;else if(Array.isArray(l)){let[e,t]=l;a[e]=t}else null!==l&&(a[n]=l)}u[e]={...n,args:a}}ew(s)?r[i]=new eJ({...a,fields:u}):ek(s)?r[i]=new e3({...a,fields:u}):r[i]=new e9({...a,fields:u})}return r}function om(e){if(ew(e)){let t=e.toConfig();if(null!=t.astNode){let e=[];for(let n in t.fields){let r=t.fields[n];null!=r.astNode&&e.push(r.astNode)}t.astNode={...t.astNode,kind:o.OBJECT_TYPE_DEFINITION,fields:e}}return null!=t.extensionASTNodes&&(t.extensionASTNodes=t.extensionASTNodes.map(e=>({...e,kind:o.OBJECT_TYPE_EXTENSION,fields:void 0}))),new eJ(t)}if(ek(e)){let t=e.toConfig();if(null!=t.astNode){let e=[];for(let n in t.fields){let r=t.fields[n];null!=r.astNode&&e.push(r.astNode)}t.astNode={...t.astNode,kind:o.INTERFACE_TYPE_DEFINITION,fields:e}}return null!=t.extensionASTNodes&&(t.extensionASTNodes=t.extensionASTNodes.map(e=>({...e,kind:o.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new e3(t)}if(eP(e)){let t=e.toConfig();if(null!=t.astNode){let e=[];for(let n in t.fields){let r=t.fields[n];null!=r.astNode&&e.push(r.astNode)}t.astNode={...t.astNode,kind:o.INPUT_OBJECT_TYPE_DEFINITION,fields:e}}return null!=t.extensionASTNodes&&(t.extensionASTNodes=t.extensionASTNodes.map(e=>({...e,kind:o.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new e9(t)}{if(!eD(e))return e;let t=e.toConfig();if(null!=t.astNode){let e=[];for(let n in t.values){let r=t.values[n];null!=r.astNode&&e.push(r.astNode)}t.astNode={...t.astNode,values:e}}return null!=t.extensionASTNodes&&(t.extensionASTNodes=t.extensionASTNodes.map(e=>({...e,values:void 0}))),new e6(t)}}function oy(e,t){for(let n in t)e[n]=t[n]}function og(e,t,n,r,i){if(!n.resolve){let n=`Resolver missing for "${r}.${i}".
25
+ To disable this validator, use:
26
+ resolverValidationOptions: {
27
+ ${e}: 'ignore'
28
+ }`;if("error"===t)throw Error(n);"warn"===t&&console.warn(n);return}if("function"!=typeof n.resolve)throw Error(`Resolver "${r}.${i}" must be a function`)}!function(e){e.TYPE="MapperKind.TYPE",e.SCALAR_TYPE="MapperKind.SCALAR_TYPE",e.ENUM_TYPE="MapperKind.ENUM_TYPE",e.COMPOSITE_TYPE="MapperKind.COMPOSITE_TYPE",e.OBJECT_TYPE="MapperKind.OBJECT_TYPE",e.INPUT_OBJECT_TYPE="MapperKind.INPUT_OBJECT_TYPE",e.ABSTRACT_TYPE="MapperKind.ABSTRACT_TYPE",e.UNION_TYPE="MapperKind.UNION_TYPE",e.INTERFACE_TYPE="MapperKind.INTERFACE_TYPE",e.ROOT_OBJECT="MapperKind.ROOT_OBJECT",e.QUERY="MapperKind.QUERY",e.MUTATION="MapperKind.MUTATION",e.SUBSCRIPTION="MapperKind.SUBSCRIPTION",e.DIRECTIVE="MapperKind.DIRECTIVE",e.FIELD="MapperKind.FIELD",e.COMPOSITE_FIELD="MapperKind.COMPOSITE_FIELD",e.OBJECT_FIELD="MapperKind.OBJECT_FIELD",e.ROOT_FIELD="MapperKind.ROOT_FIELD",e.QUERY_ROOT_FIELD="MapperKind.QUERY_ROOT_FIELD",e.MUTATION_ROOT_FIELD="MapperKind.MUTATION_ROOT_FIELD",e.SUBSCRIPTION_ROOT_FIELD="MapperKind.SUBSCRIPTION_ROOT_FIELD",e.INTERFACE_FIELD="MapperKind.INTERFACE_FIELD",e.INPUT_OBJECT_FIELD="MapperKind.INPUT_OBJECT_FIELD",e.ARGUMENT="MapperKind.ARGUMENT",e.ENUM_VALUE="MapperKind.ENUM_VALUE"}(c||(c={}));var ob=n(20330),ov=n(63607),o_=n(69271);function oE(e){let t=(0,ov.VH)(e.token?.accessToken);if(!t.canWrite())throw Error("Authentication required");return t}let oT=function(e){let t=new su(e);return function(e,t){let n,r;let i=t?.__useSingleWriteHead==null||t.__useSingleWriteHead,s={...ir,...t?.fetchAPI},o=t?.__useCustomAbortCtrl==null?s.Request!==globalThis.Request:t.__useCustomAbortCtrl,a="function"==typeof e?e:e.handle,l=[],u=[],c=new Set;function f(){if(!r){if(r=new ic,t?.disposeOnProcessTerminate){var e;e=r,globalThis.process&&(function(){if(!iI)for(let e of(iI=!0,iT))globalThis.process.once(e,function(){return Promise.allSettled([...iS].map(e=>!e.disposed&&e.disposeAsync()))})}(),iS.has(e)||(iS.add(e),e.defer(()=>{iS.delete(e)})))}r.defer(()=>{if(c.size>0)return Promise.allSettled(c).then(()=>{c.clear()},()=>{c.clear()})})}return r}function h(e){nO(e)&&(f(),c.add(e),e.then(()=>{c.delete(e)},t=>{console.error(`Unexpected error while waiting: ${t.message||t}`),c.delete(e)}))}if(t?.plugins!=null)for(let e of t.plugins){e.instrumentation&&(n=n?nq(n,e.instrumentation):e.instrumentation),e.onRequest&&l.push(e.onRequest),e.onResponse&&u.push(e.onResponse);let t=e[rd.dispose];t&&f().defer(t);let r=e[rd.asyncDispose];r&&f().defer(r),e.onDispose&&f().defer(e.onDispose)}let d=l.length>0||u.length>0?function(e,t){let n,r=a;if(0===l.length)return c();let i=e.parsedUrl||new Proxy(ix,{get:(t,n,r)=>Reflect.get(i=new s.URL(e.url,"http://localhost"),n,i)});function o(n){return 0===u.length?n:nx(()=>nA(u,r=>r({request:e,response:n,serverContext:t,setResponse(e){n=e},fetchAPI:s})),()=>n)}function c(){return n?o(n):nx(()=>r(e,t),o)}return nx(()=>nA(l,(o,a)=>o({request:e,setRequest(t){e=t},serverContext:t,fetchAPI:s,url:i,requestHandler:r,setRequestHandler(e){r=e},endResponse(e){n=e,e&&a()}})),c)}:a;if(n?.request){let e=d;d=(t,r)=>nz({request:t}).asyncFn(n.request,e)(t,r)}function p(e,t,...n){let r=t.raw||t,i=n.length>1?ib(...n):n[0]||{};i.waitUntil||(i.waitUntil=h);let a=id(e,s,r,o);return d(a,i)}function m(e,t,...n){let r={req:e,res:t,waitUntil:h};return nC(nw().then(()=>p(e,t,r,...n)).catch(e=>iv(e,s.Response)).then(n=>(function(e,t,n,r){if(t.closed||t.destroyed||t.writableEnded)return;if(!e){t.statusCode=404,iy(t);return}if(r&&e.headers?.headersInit&&!Array.isArray(e.headers.headersInit)&&!e.headers.headersInit.get&&!e.headers._map&&!e.headers._setCookies?.length)t.writeHead(e.status,e.statusText,e.headers.headersInit);else{if(t.setHeaders)t.setHeaders(e.headers);else{let n=!1;e.headers.forEach((r,i)=>{if("set-cookie"===i){if(n)return;n=!0;let r=e.headers.getSetCookie?.();if(r){t.setHeader("set-cookie",r);return}}t.setHeader(i,r)})}t.writeHead(e.status,e.statusText)}if("String"===e.bodyType)return nx(()=>ig(e.bodyInit,t),()=>iy(t));let i=e._buffer;if(i)return nx(()=>ig(i,t),()=>iy(t));let s=e.body;if(null==s){iy(t);return}if("Uint8Array"===s[Symbol.toStringTag])return nx(()=>ig(s,t),()=>iy(t));if(n?.socket?.setTimeout?.(0),n?.socket?.setNoDelay?.(!0),n?.socket?.setKeepAlive?.(!0),ip(s)){t.once("close",()=>{s.destroy()}),s.pipe(t,{end:!0});return}return null!=s&&null!=s.getReader?function(e,t,n){let r=n.getReader();return e?.once?.("error",e=>{r.cancel(e)}),function e(){return r.read().then(({done:n,value:r})=>n?iy(t):nx(()=>ig(r,t),e))}()}(n,t,s):ih(s)?function(e,t){let n=!1,r=()=>{n=!0};e.once("error",r),e.once("close",r),e.once("finish",()=>{e.removeListener("close",r),e.removeListener("error",r)});let i=t[Symbol.asyncIterator](),s=()=>i.next().then(({done:t,value:r})=>{if(!n&&!t)return nx(()=>ig(r,e),()=>n?iy(e):s())});return s()}(t,s):void 0})(n,t,e,i)).catch(e=>console.error(`Unexpected error while handling request: ${e.message||e}`)))}function y(e,t,...n){let r={res:e,req:t,waitUntil:h},i=n.filter(e=>null!=e).length>0?ib(r,...n):r,a=o?iO():new AbortController,l=e.end.bind(e),u=!1;e.end=function(e){return u=!0,l(e)},e.onAborted.bind(e)(function(){a.abort()}),e.onAborted=function(e){a.signal.addEventListener("abort",e,{once:!0})};let c=function({req:e,res:t,fetchAPI:n,controller:r}){let i,s,o;let a=e.getMethod(),l=[],u=[e=>{l.push(e)}],c=e=>{for(let t of u)t(e)},f=!1,h=[()=>{f=!0}],d=()=>{for(let e of h)e()};if(t.onData(function(e,t){c(Buffer.from(Buffer.from(e,0,e.byteLength))),t&&d()}),"get"!==a&&"head"!==a){let e;i="half",r.signal.addEventListener("abort",()=>{d()},{once:!0}),s=()=>(e||(e=new n.ReadableStream({start(e){for(let t of l)e.enqueue(t);if(f){e.close();return}u.push(t=>{e.enqueue(t)}),h.push(()=>{if(r.signal.reason){e.error(r.signal.reason);return}e.desiredSize&&e.close()})}})),e)}let p=new n.Headers;e.forEach((e,t)=>{p.append(e,t)});let m=`http://localhost${e.getUrl()}`,y=e.getQuery();function g(){return s?f?v():s():null}y&&(m+=`?${y}`);let b=new n.Request(m,{method:a,headers:p,get body(){return g()},signal:r.signal,duplex:i});function v(){return o||(o=1===l.length?l[0]:Buffer.concat(l)),o}function _(){return f?nw(v()):new Promise((e,t)=>{try{h.push(()=>{e(v())})}catch(e){t(e)}})}return Object.defineProperties(b,{body:{get:()=>g(),configurable:!0,enumerable:!0},json:{value:()=>_().then(e=>e.toString("utf8")).then(e=>JSON.parse(e)),configurable:!0,enumerable:!0},text:{value:()=>_().then(e=>e.toString("utf8")),configurable:!0,enumerable:!0},arrayBuffer:{value:()=>_(),configurable:!0,enumerable:!0}}),b}({req:t,res:e,fetchAPI:s,controller:a});return nx(()=>nx(()=>d(c,i),e=>e,e=>iv(e,s.Response)),t=>{if(!a.signal.aborted&&!u)return nx(()=>(function(e,t,n,r){if(!t){e.writeStatus("404 Not Found"),e.end();return}let i=t._buffer,s="String"===t.bodyType?t.bodyInit:void 0;if(!n.signal.aborted&&(e.cork(()=>{for(let[n,r]of(e.writeStatus(`${t.status} ${t.statusText}`),t.headers))if("content-length"!==n){if("set-cookie"===n){let r=t.headers.getSetCookie?.();if(r){for(let t of r)e.writeHeader(n,t);continue}}e.writeHeader(n,r)}s?e.end(s):i?e.end(i):t.body||e.end()}),!s&&!i&&t.body))return n.signal.addEventListener("abort",()=>{t.body?.locked||t.body?.cancel(n.signal.reason)},{once:!0}),t.body.pipeTo(new r.WritableStream({write(t){e.cork(()=>{e.write(t)})},close(){e.cork(()=>{e.end()})}}),{signal:n.signal}).catch(e=>{if(!n.signal.aborted)throw e})})(e,t,a,s),e=>e,e=>{console.error(`Unexpected error while handling request: ${e.message||e}`)})})}function g(e,...t){if(!e.respondWith||!e.request)throw TypeError(`Expected FetchEvent, got ${e}`);let n=t.filter(e=>null!=e),r=n.length>0?ib({},e,...n):i_(e),i=d(e.request,r);e.respondWith(i)}function b(e,...t){let n=t.filter(e=>null!=e),r=n.length>1?ib({},...n):i_(n[0],null==n[0]||null==n[0].waitUntil?h:void 0);return d(e,r)}let v=(e,...t)=>{if("string"==typeof e||"href"in e){let[n,...r]=t;if(null!=n&&"object"==typeof n&&("body"in n||"cache"in n||"credentials"in n||"headers"in n||"integrity"in n||"keepalive"in n||"method"in n||"mode"in n||"redirect"in n||"referrer"in n||"referrerPolicy"in n||"signal"in n||"window"in n)){let t=b(new s.Request(e,n),...r),i=n.signal;return i?iE(t,i):t}return b(new s.Request(e),...t)}return iE(b(e,...t),e.signal)},_=(e,...t)=>{let[n,...r]=t;if(ip(e)){if(!im(n))throw TypeError(`Expected ServerResponse, got ${n}`);return m(e,n,...r)}if(e.onData)return y(e,n,...r);if(im(n))throw TypeError("Got Node response without Node request");return function(e){try{return!!e?.request}catch{return!1}}(e)?null!=e&&null!=e.request&&null!=e.respondWith?g(e,...t):b(e.request,e,...t):v(e,...t)},E={handleRequest:b,fetch:v,handleNodeRequest:function(e,...t){let n=t.length>1?ib(...t):t[0]||{};n.waitUntil||(n.waitUntil=h);let r=id(e,s,void 0,o);return d(r,n)},handleNodeRequestAndResponse:p,requestListener:m,handleEvent:g,handleUWS:y,handle:_,get disposableStack(){return f()},[rd.asyncDispose]:()=>r&&!r.disposed?r.disposeAsync():nw(),dispose:()=>r&&!r.disposed?r.disposeAsync():nw(),waitUntil:h},T=new Proxy(_,{has:(t,n)=>n in E||n in _||e&&n in e,get:(t,n)=>{if(globalThis.Deno||n===Symbol.asyncDispose||n===Symbol.dispose){let e=Reflect.get(E,n,E);if(e)return e}let r=E[n];if(r)return r.bind?r.bind(E):r;let i=_[n];if(i)return i.bind?i.bind(_):i;if(e){let t=e[n];if(t)return t.bind?function(...t){let r=e[n](...t);return r===e?T:r}:t}},apply:(e,t,n)=>_(...n)});return T}(t,{fetchAPI:t.fetchAPI,plugins:t.plugins,disposeOnProcessTerminate:e.disposeOnProcessTerminate})}({schema:function({typeDefs:e,resolvers:t={},resolverValidationOptions:n={},inheritResolversFromInterfaces:r=!1,updateResolversInPlace:i=!1,schemaExtensions:s,defaultFieldResolver:o,...a}){let l;if("object"!=typeof n)throw Error("Expected `resolverValidationOptions` to be an object");if(!e)throw Error("Must provide typeDefs");if(l=function({schema:e,resolvers:t,defaultFieldResolver:n,resolverValidationOptions:r={},inheritResolversFromInterfaces:i=!1,updateResolversInPlace:s=!1}){var o;let{requireResolversToMatchSchema:a="error",requireResolversForResolveType:l}=r,u=i?function(e,t){let n={},r=e.getTypeMap();for(let e in r){let i=r[e];if("getInterfaces"in i){for(let r of(n[e]={},i.getInterfaces()))if(t[r.name])for(let i in t[r.name])"__isTypeOf"!==i&&i.startsWith("__")||(n[e][i]=t[r.name][i]);let r=t[e];n[e]={...n[e],...r}}else{let r=t[e];null!=r&&(n[e]=r)}}return n}(e,t):t;for(let t in u){let n=u[t];if("object"!=typeof n)throw Error(`"${t}" defined in resolvers, but has invalid value "${n}". The resolver's value must be of type object.`);let r=e.getType(t);if(null==r){let e=`"${t}" defined in resolvers, but not in schema`;if(a&&"error"!==a){"warn"===a&&console.warn(e);continue}throw Error(e)}if(tc(r))for(let e in n)e.startsWith("__")?r[e.substring(2)]=n[e]:r[e]=n[e];else if(eD(r)){let e=r.getValues();for(let t in n)if(!t.startsWith("__")&&!e.some(e=>e.name===t)&&a&&"ignore"!==a){let e=`${r.name}.${t} was defined in resolvers, but not present within ${r.name}`;if("error"===a)throw Error(e);console.warn(e)}}else if(eA(r)){for(let e in n)if(!e.startsWith("__")&&a&&"ignore"!==a){let t=`${r.name}.${e} was defined in resolvers, but ${r.name} is not an object or interface type`;if("error"===a)throw Error(t);console.warn(t)}}else if(ew(r)||ek(r)){for(let e in n)if(!e.startsWith("__")){if(null==r.getFields()[e]){if(a&&"ignore"!==a){let n=`${t}.${e} defined in resolvers, but not in schema`;if("error"===a)throw Error(n);console.error(n)}}else{let r=n[e];if("function"!=typeof r&&"object"!=typeof r)throw Error(`Resolver ${t}.${e} must be object or function`)}}}}return e=s?function(e,t,n){let r=e.getTypeMap();for(let n in t){let i=e.getType(n),s=t[n];if(ex(i))for(let e in s)e.startsWith("__")?i[e.substring(2)]=s[e]:"astNode"===e&&null!=i.astNode?i.astNode={...i.astNode,description:s?.astNode?.description??i.astNode.description,directives:(i.astNode.directives??[]).concat(s?.astNode?.directives??[])}:"extensionASTNodes"===e&&null!=i.extensionASTNodes?i.extensionASTNodes=i.extensionASTNodes.concat(s?.extensionASTNodes??[]):"extensions"===e&&null!=i.extensions&&null!=s.extensions?i.extensions=Object.assign(Object.create(null),i.extensions,s.extensions):i[e]=s[e];else if(eD(i)){let e=i.toConfig(),t=e.values;for(let n in s)n.startsWith("__")?e[n.substring(2)]=s[n]:"astNode"===n&&null!=e.astNode?e.astNode={...e.astNode,description:s?.astNode?.description??e.astNode.description,directives:(e.astNode.directives??[]).concat(s?.astNode?.directives??[])}:"extensionASTNodes"===n&&null!=e.extensionASTNodes?e.extensionASTNodes=e.extensionASTNodes.concat(s?.extensionASTNodes??[]):"extensions"===n&&null!=i.extensions&&null!=s.extensions?i.extensions=Object.assign(Object.create(null),i.extensions,s.extensions):t[n]&&(t[n].value=s[n]);r[n]=new e6(e)}else if(eA(i))for(let e in s)e.startsWith("__")&&(i[e.substring(2)]=s[e]);else if(ew(i)||ek(i))for(let e in s){if(e.startsWith("__")){i[e.substring(2)]=s[e];continue}let t=i.getFields()[e];if(null!=t){let n=s[e];"function"==typeof n?t.resolve=n.bind(s):oy(t,n)}}}return or(e,os),function(e,t){let n=Object.create(null);for(let t in e){let r=e[t];if(null==r||t.startsWith("__"))continue;let i=r.name;if(!i.startsWith("__")){if(null!=n[i]){console.warn(`Duplicate schema type name ${i} found; keeping the existing one found in the schema`);continue}n[i]=r}}for(let t in n){let r=n[t];e[t]=r}for(let e of t)e.args=e.args.filter(e=>(e.type=s(e.type),null!==e.type));for(let t in e){let o=e[t];!t.startsWith("__")&&t in n&&null!=o&&function(e){if(ew(e)){r(e),i(e);return}if(ek(e)){r(e),"getInterfaces"in e&&i(e);return}if(eA(e)){(function(e){let t=e.getTypes();t.push(...t.splice(0).map(e=>s(e)).filter(Boolean))})(e);return}if(eP(e)){(function(e){let t=e.getFields();for(let[e,n]of Object.entries(t))n.type=s(n.type),null===n.type&&delete t[e]})(e);return}if(!ej(e))throw Error(`Unexpected schema type: ${e}`)}(o)}for(let t in e)t.startsWith("__")||t in n||delete e[t];function r(e){let t=e.getFields();for(let[e,n]of Object.entries(t))n.args.map(e=>(e.type=s(e.type),null===e.type?null:e)).filter(Boolean),n.type=s(n.type),null===n.type&&delete t[e]}function i(e){if("getInterfaces"in e){let t=e.getInterfaces();t.push(...t.splice(0).map(e=>s(e)).filter(Boolean))}}function s(t){if(eR(t)){let e=s(t.ofType);return null!=e?new e$(e):null}if(eC(t)){let e=s(t.ofType);return null!=e?new eB(e):null}if(ez(t)){let n=e[t.name];if(n&&t!==n)return n}return t}}(e.getTypeMap(),e.getDirectives()),or(e,oo),null!=n&&oa(e,e=>{e.resolve||(e.resolve=n)}),e}(e,u,n):(o=ou(o=e,{[c.SCALAR_TYPE]:e=>{let t=e.toConfig(),n=u[e.name];if(!tc(e)&&null!=n){for(let r in n)r.startsWith("__")?t[r.substring(2)]=n[r]:"astNode"===r&&null!=t.astNode?t.astNode={...t.astNode,description:n?.astNode?.description??t.astNode.description,directives:(t.astNode.directives??[]).concat(n?.astNode?.directives??[])}:"extensionASTNodes"===r&&null!=t.extensionASTNodes?t.extensionASTNodes=t.extensionASTNodes.concat(n?.extensionASTNodes??[]):"extensions"===r&&null!=t.extensions&&null!=n.extensions?t.extensions=Object.assign(Object.create(null),e.extensions,n.extensions):t[r]=n[r];return new eW(t)}},[c.ENUM_TYPE]:e=>{let t=u[e.name],n=e.toConfig(),r=n.values;if(null!=t){for(let i in t)i.startsWith("__")?n[i.substring(2)]=t[i]:"astNode"===i&&null!=n.astNode?n.astNode={...n.astNode,description:t?.astNode?.description??n.astNode.description,directives:(n.astNode.directives??[]).concat(t?.astNode?.directives??[])}:"extensionASTNodes"===i&&null!=n.extensionASTNodes?n.extensionASTNodes=n.extensionASTNodes.concat(t?.extensionASTNodes??[]):"extensions"===i&&null!=n.extensions&&null!=t.extensions?n.extensions=Object.assign(Object.create(null),e.extensions,t.extensions):r[i]&&(r[i].value=t[i]);return new e6(n)}},[c.UNION_TYPE]:e=>{let t=u[e.name];if(null!=t){let n=e.toConfig();return t.__resolveType&&(n.resolveType=t.__resolveType),new e2(n)}},[c.OBJECT_TYPE]:e=>{let t=u[e.name];if(null!=t){let n=e.toConfig();return t.__isTypeOf&&(n.isTypeOf=t.__isTypeOf),new eJ(n)}},[c.INTERFACE_TYPE]:e=>{let t=u[e.name];if(null!=t){let n=e.toConfig();return t.__resolveType&&(n.resolveType=t.__resolveType),new e3(n)}},[c.COMPOSITE_FIELD]:(e,t,n)=>{let r=u[n];if(null!=r){let n=r[t];if(null!=n){let t={...e};return"function"==typeof n?t.resolve=n.bind(r):oy(t,n),t}}}}),null!=n&&(o=ou(o,{[c.OBJECT_FIELD]:e=>({...e,resolve:null!=e.resolve?e.resolve:n})})),o),l&&"ignore"!==l&&ou(e,{[c.ABSTRACT_TYPE]:e=>{if(!e.resolveType){let t=`Type "${e.name}" is missing a "__resolveType" resolver. Pass 'ignore' into "resolverValidationOptions.requireResolversForResolveType" to disable this error.`;if("error"===l)throw Error(t);"warn"===l&&console.warn(t)}}}),e}({schema:l=Y(e,tL)?e:a?.commentDescriptions?sd(W(s9(e,{...a,commentDescriptions:!0}),{noLocation:null==a?void 0:a.noLocation,allowLegacyFragmentVariables:null==a?void 0:a.allowLegacyFragmentVariables}),{assumeValidSDL:null==a?void 0:a.assumeValidSDL,assumeValid:null==a?void 0:a.assumeValid}):sd(s9(e,a),a),resolvers:function e(t,n){if(!t||Array.isArray(t)&&0===t.length)return{};if(!Array.isArray(t))return t;if(1===t.length)return t[0]||{};let r=[];for(let n of t)Array.isArray(n)&&(n=e(n)),"object"==typeof n&&n&&r.push(n);let i=oe(r,!0);if(n?.exclusions)for(let e of n.exclusions){let[t,n]=e.split(".");!(["__proto__","constructor","prototype"].includes(t)||["__proto__","constructor","prototype"].includes(n))&&(n&&"*"!==n?i[t]&&delete i[t][n]:delete i[t])}return i}(t),resolverValidationOptions:n,inheritResolversFromInterfaces:r,updateResolversInPlace:i,defaultFieldResolver:o}),Object.keys(n).length>0&&function(e,t={}){let{requireResolversForArgs:n,requireResolversForNonScalar:r,requireResolversForAllFields:i}=t;if(i&&(n||r))throw TypeError("requireResolversForAllFields takes precedence over the more specific assertions. Please configure either requireResolversForAllFields or requireResolversForArgs / requireResolversForNonScalar, but not a combination of them.");oa(e,(e,t,s)=>{i&&og("requireResolversForAllFields",i,e,t,s),n&&e.args.length>0&&og("requireResolversForArgs",n,e,t,s),"ignore"===r||ex(eG(e.type))||og("requireResolversForNonScalar",r,e,t,s)})}(l,n),s)for(let e of sR(s))!function(e,t){for(let[n,r]of(on(e,t.schemaExtensions),Object.entries(t.types||{}))){let t=e.getType(n);if(t){if(on(t,r.extensions),"object"===r.type||"interface"===r.type)for(let[e,n]of Object.entries(r.fields)){let r=t.getFields()[e];if(r)for(let[e,t]of(on(r,n.extensions),Object.entries(n.arguments)))on(r.args.find(t=>t.name===e),t)}else if("input"===r.type)for(let[e,n]of Object.entries(r.fields))on(t.getFields()[e],n.extensions);else if("enum"===r.type)for(let[e,n]of Object.entries(r.values))on(t.getValue(e),n)}}}(l,e);return l}({typeDefs:`
29
+ type Memo {
30
+ id: String!
31
+ content: String!
32
+ timestamp: String!
33
+ image: String
34
+ latitude: Float
35
+ longitude: Float
36
+ city: String
37
+ street: String
38
+ }
39
+
40
+ type Discussion {
41
+ platform: String!
42
+ url: String!
43
+ title: String
44
+ count: Int
45
+ }
46
+
47
+ type BlogPost {
48
+ id: String!
49
+ title: String!
50
+ content: String!
51
+ date: String!
52
+ discussions: [Discussion]
53
+ latitude: Float
54
+ longitude: Float
55
+ city: String
56
+ street: String
57
+ status: String!
58
+ publishedAt: String
59
+ lastModified: String!
60
+ }
61
+
62
+ type Link {
63
+ id: String!
64
+ title: String!
65
+ url: String!
66
+ description: String
67
+ tags: [String]
68
+ }
69
+
70
+ input CreateMemoInput {
71
+ content: String!
72
+ image: String
73
+ latitude: Float
74
+ longitude: Float
75
+ city: String
76
+ street: String
77
+ }
78
+
79
+ input UpdateMemoInput {
80
+ content: String!
81
+ image: String
82
+ }
83
+
84
+ input SaveBlogPostInput {
85
+ title: String!
86
+ content: String!
87
+ status: String = "published"
88
+ discussions: [DiscussionInput]
89
+ latitude: Float
90
+ longitude: Float
91
+ city: String
92
+ street: String
93
+ }
94
+
95
+ input DiscussionInput {
96
+ platform: String!
97
+ url: String!
98
+ title: String
99
+ count: Int
100
+ }
101
+
102
+ type LikeInfo {
103
+ count: Int!
104
+ countries: [String!]!
105
+ userLiked: Boolean!
106
+ }
107
+
108
+ type LikeResult {
109
+ liked: Boolean!
110
+ count: Int!
111
+ countries: [String!]!
112
+ }
113
+
114
+ type Query {
115
+ memos: [Memo!]!
116
+ getLikes(itemType: String!, id: String!): LikeInfo!
117
+ blogPosts: [BlogPost!]!
118
+ blogPost(id: String!): BlogPost
119
+ links: [Link!]!
120
+ }
121
+
122
+ type Mutation {
123
+ createMemo(input: CreateMemoInput!): Memo!
124
+ updateMemo(id: String!, input: UpdateMemoInput!): Memo!
125
+ deleteMemo(id: String!): Boolean!
126
+ toggleLike(itemType: String!, id: String!): LikeResult!
127
+ saveBlogPost(id: String, input: SaveBlogPostInput!): BlogPost!
128
+ deleteBlogPost(id: String!): Boolean!
129
+ }
130
+ `,resolvers:{Query:{memos:async(e,t,n)=>{try{let e=(0,ov.VH)(),t=await e.getMemos();return Array.isArray(t)?t:[]}catch(e){return console.error("Error fetching memos:",e),[]}},getLikes:async(e,{itemType:t,id:n},r)=>{try{let e=(0,ov.VH)(),i=await e.getLikes();console.log("getLikes - fetched data:",JSON.stringify(i,null,2));let s=(0,o_.H9)(r.request),o=(0,o_.zC)(r.request),a=(0,o_.D4)(s),l=(0,o_.F6)(a,o),u=(0,o_.SS)(t,n),c=(0,o_.Wz)(i,u,l);return console.log("getLikes - computed like info:",JSON.stringify(c,null,2)),c}catch(e){return console.error("Error fetching likes:",e),{count:0,countries:[],userLiked:!1}}},blogPosts:async(e,t,n)=>{try{let e=(0,ov.VH)(n.token?.accessToken),t=await e.getBlogPosts({includeDrafts:e.canWrite()});return Array.isArray(t)?t:[]}catch(e){return console.error("Error fetching blog posts:",e),[]}},blogPost:async(e,{id:t},n)=>{try{let e=(0,ov.VH)(n.token?.accessToken);return await e.getBlogPost(t)||null}catch(e){return console.error("Error fetching blog post:",e),null}},links:async(e,t,n)=>{try{let e=(0,ov.VH)(n.token?.accessToken),t=await e.getLinks();return Array.isArray(t)?t:[]}catch(e){return console.error("Error fetching links:",e),[]}}},Mutation:{createMemo:async(e,{input:t},n)=>{let r=oE(n);try{let e={id:Date.now().toString(),content:t.content,timestamp:new Date().toISOString(),...t.image&&{image:t.image},...t.latitude&&{latitude:t.latitude},...t.longitude&&{longitude:t.longitude},...t.city&&{city:t.city},...t.street&&{street:t.street}};return await r.createMemo(e)}catch(e){throw console.error("Error creating memo:",e),Error("Failed to create memo")}},toggleLike:async(e,{itemType:t,id:n},r)=>{try{let e=(0,o_.H9)(r.request),i=(0,o_.zC)(r.request),s=(0,o_.D4)(e),o=(0,o_.F6)(s,i),a=(0,ov.VH)(r.token?.accessToken),l=await a.getLikes();console.log("toggleLike - original likes data:",JSON.stringify(l,null,2)),l={...l};let u=(0,o_.SS)(t,n),c=new Date().toISOString();console.log("toggleLike - itemKey:",u,"userFingerprint:",o);let{hasLiked:f,existingLikeId:h}=(0,o_.JS)(l,u,o);if(f&&h)l[u]&&(delete l[u][h],0===Object.keys(l[u]).length&&delete l[u]);else{let e=(0,o_.Ed)(o,c),t={timestamp:c,userAgent:i.userAgent,country:i.country,language:i.language};l[u]||(l[u]={}),l[u][e]=t}console.log("toggleLike - likes data before update:",JSON.stringify(l,null,2)),await a.updateLikes(l);let d=(0,o_.Wz)(l,u,o);return{liked:d.userLiked,count:d.count,countries:d.countries}}catch(e){throw console.error("Error toggling like:",e),Error("Failed to toggle like")}},updateMemo:async(e,{id:t,input:n},r)=>{let i=oE(r);try{let e=await i.updateMemo(t,n.content);if(!e)throw Error("Memo not found after update");return e}catch(e){throw console.error("Error updating memo:",e),Error("Failed to update memo")}},deleteMemo:async(e,{id:t},n)=>{let r=oE(n);try{return await r.deleteMemo(t),!0}catch(e){throw console.error("Error deleting memo:",e),Error("Failed to delete memo")}},saveBlogPost:async(e,{id:t,input:n},r)=>{let i=oE(r);try{let e={latitude:n.latitude,longitude:n.longitude,city:n.city,street:n.street},r=n.status||"published",s={title:n.title,content:n.content,discussions:n.discussions,location:e,status:r};if(t){await i.updateBlogPost(t,s);let e=await i.getBlogPost(t);if(!e)throw Error("Blog post not found after update");return e}{let e=await i.createBlogPost(s),t=await i.getBlogPost(e);if(!t)throw Error("Blog post not found after creation");return t}}catch(e){throw console.error("Error saving blog post:",e),Error("Failed to save blog post")}},deleteBlogPost:async(e,{id:t},n)=>{let r=oE(n);try{return await r.deleteBlogPost(t),!0}catch(e){throw console.error("Error deleting blog post:",e),Error("Failed to delete blog post")}}}}}),graphqlEndpoint:"/api/graphql",context:async e=>{let t=e.request;return{token:await (0,ob.getToken)({req:t,secret:process.env.NEXTAUTH_SECRET,secureCookie:!0}),request:t}}});async function oS(e){return oT.handle(e,{})}async function oI(e){return oT.handle(e,{})}async function oN(e){return oT.handle(e,{})}let oO=new h.AppRouteRouteModule({definition:{kind:d.x.APP_ROUTE,page:"/api/graphql/route",pathname:"/api/graphql",filename:"route",bundlePath:"app/api/graphql/route"},resolvedPagePath:"/home/runner/work/cici/cici/app/api/graphql/route.ts",nextConfigOutput:"standalone",userland:f}),{requestAsyncStorage:ox,staticGenerationAsyncStorage:ow,serverHooks:ok}=oO,oA="/api/graphql/route";function oD(){return(0,p.patchFetch)({serverHooks:ok,staticGenerationAsyncStorage:ow})}},69271:(e,t,n)=>{"use strict";n.d(t,{D4:()=>a,Ed:()=>c,F6:()=>u,H9:()=>s,JS:()=>f,SS:()=>d,Wz:()=>h,tz:()=>l,zC:()=>o});var r=n(84770),i=n.n(r);function s(e){let t=e.headers.get("x-forwarded-for"),n=e.headers.get("x-real-ip");return e.headers.get("cf-connecting-ip")||t?.split(",")[0]?.trim()||n||e.ip||"127.0.0.1"}function o(e){let t=e.headers.get("accept-language")||"",n=e.headers.get("user-agent")||"",r=t.split(",")[0]?.trim()||"unknown";return{country:r.includes("-")?r.split("-")[1]?.toUpperCase():"UNKNOWN",language:r,userAgent:n}}function a(e){let t=process.env.LIKE_HASH_SALT||"cofe-likes-salt-2025";return i().createHash("sha256").update(e+t).digest("hex").substring(0,12)}function l(e){return/iPhone|iPad|iPod/.test(e)?"ios":/Android/.test(e)?"android":"web"}function u(e,t){let n=l(t.userAgent),r=function(e){let t=process.env.LIKE_HASH_SALT||"cofe-likes-salt-2025";return i().createHash("sha256").update(e+t).digest("hex").substring(0,8)}(t.userAgent);return`${e}_${t.country}_${n}_${r}`}function c(e,t){return`${e}_${t}`}function f(e,t,n){let r=Object.keys(e[t]||{}).find(e=>e.startsWith(`${n}_`));return{hasLiked:!!r,existingLikeId:r}}function h(e,t,n){let r=Object.values(e[t]||{}),i=Array.from(new Set(r.map(e=>e.country).filter(e=>"UNKNOWN"!==e))),{hasLiked:s}=f(e,t,n);return{count:r.length,countries:i,userLiked:s}}function d(e,t){return`${e}_${t}`}},19952:(e,t,n)=>{let r;let i=n(34838);e.exports=function(e={}){let t={};if(t.URLPattern=globalThis.URLPattern,!t.URLPattern){let e=n(36203);t.URLPattern=e.URLPattern}if(e.skipPonyfill||i())return{fetch:globalThis.fetch,Headers:globalThis.Headers,Request:globalThis.Request,Response:globalThis.Response,FormData:globalThis.FormData,ReadableStream:globalThis.ReadableStream,WritableStream:globalThis.WritableStream,TransformStream:globalThis.TransformStream,CompressionStream:globalThis.CompressionStream,DecompressionStream:globalThis.DecompressionStream,TextDecoderStream:globalThis.TextDecoderStream,TextEncoderStream:globalThis.TextEncoderStream,Blob:globalThis.Blob,File:globalThis.File,crypto:globalThis.crypto,btoa:globalThis.btoa,TextEncoder:globalThis.TextEncoder,TextDecoder:globalThis.TextDecoder,URLPattern:t.URLPattern,URL:globalThis.URL,URLSearchParams:globalThis.URLSearchParams};if(r||=n(31242),t.fetch=r.fetch,t.Request=r.Request,t.Response=r.Response,t.Headers=r.Headers,t.FormData=r.FormData,t.ReadableStream=r.ReadableStream,t.URL=r.URL,t.URLSearchParams=r.URLSearchParams,t.WritableStream=r.WritableStream,t.TransformStream=r.TransformStream,t.CompressionStream=r.CompressionStream,t.DecompressionStream=r.DecompressionStream,t.TextDecoderStream=r.TextDecoderStream,t.TextEncoderStream=r.TextEncoderStream,t.Blob=r.Blob,t.File=r.File,t.crypto=globalThis.crypto,t.btoa=r.btoa,t.TextEncoder=r.TextEncoder,t.TextDecoder=r.TextDecoder,e.formDataLimits&&(t.Body=class extends r.Body{constructor(t,n){super(t,{formDataLimits:e.formDataLimits,...n})}},t.Request=class extends r.Request{constructor(t,n){super(t,{formDataLimits:e.formDataLimits,...n})}},t.Response=class extends r.Response{constructor(t,n){super(t,{formDataLimits:e.formDataLimits,...n})}}),!t.crypto){let e=n(84770);t.crypto=e.webcrypto}return t}},72600:(e,t,n)=>{let r=n(19952),i=n(34838),s=r();if(!i())try{globalThis.libcurl=globalThis.libcurl||n(64735)("node-libcurl")}catch(e){}e.exports.fetch=s.fetch,e.exports.Headers=s.Headers,e.exports.Request=s.Request,e.exports.Response=s.Response,e.exports.FormData=s.FormData,e.exports.ReadableStream=s.ReadableStream,e.exports.WritableStream=s.WritableStream,e.exports.TransformStream=s.TransformStream,e.exports.CompressionStream=s.CompressionStream,e.exports.DecompressionStream=s.DecompressionStream,e.exports.TextDecoderStream=s.TextDecoderStream,e.exports.TextEncoderStream=s.TextEncoderStream,e.exports.Blob=s.Blob,e.exports.File=s.File,e.exports.crypto=s.crypto,e.exports.btoa=s.btoa,e.exports.TextEncoder=s.TextEncoder,e.exports.TextDecoder=s.TextDecoder,e.exports.URLPattern=s.URLPattern,e.exports.URL=s.URL,e.exports.URLSearchParams=s.URLSearchParams,t.createFetch=r},34838:e=>{e.exports=function(){return!!(globalThis.Deno||globalThis.Bun||Object.keys(globalThis).some(e=>e.startsWith("__NEXT")))}},49303:(e,t,n)=>{"use strict";e.exports=n(30517)},44151:(e,t,n)=>{"use strict";let r=n(84492).Writable,i=n(47261).inherits,s=n(59863),o=n(34876),a=n(1567),l=Buffer.from("-"),u=Buffer.from("\r\n"),c=function(){};function f(e){if(!(this instanceof f))return new f(e);if(r.call(this,e),!e||!e.headerFirst&&"string"!=typeof e.boundary)throw TypeError("Boundary required");"string"==typeof e.boundary?this.setBoundary(e.boundary):this._bparser=void 0,this._headerFirst=e.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:e.partHwm},this._pause=!1;let t=this;this._hparser=new a(e),this._hparser.on("header",function(e){t._inHeader=!1,t._part.emit("header",e)})}i(f,r),f.prototype.emit=function(e){if("finish"!==e||this._realFinish)r.prototype.emit.apply(this,arguments);else if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let t=e._isPreamble?"Preamble":"Part";e._part.emit("error",Error(t+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}},f.prototype._write=function(e,t,n){if(!this._hparser&&!this._bparser)return n();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new o(this._partOpts),0!==this.listenerCount("preamble")?this.emit("preamble",this._part):this._ignore());let t=this._hparser.push(e);if(this._inHeader||void 0===t||!(t<e.length))return n();e=e.slice(t)}this._firstWrite&&(this._bparser.push(u),this._firstWrite=!1),this._bparser.push(e),this._pause?this._cb=n:n()},f.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0},f.prototype.setBoundary=function(e){let t=this;this._bparser=new s("\r\n--"+e),this._bparser.on("info",function(e,n,r,i){t._oninfo(e,n,r,i)})},f.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",c),this._part.resume())},f.prototype._oninfo=function(e,t,n,r){let i,s;let a=this,u=0;if(!this._part&&this._justMatched&&t){for(;this._dashes<2&&n+u<r;)if(45===t[n+u])++u,++this._dashes;else{this._dashes&&(i=l),this._dashes=0;break}if(2===this._dashes&&(n+u<r&&0!==this.listenerCount("trailer")&&this.emit("trailer",t.slice(n+u,r)),this.reset(),this._finished=!0,0===a._parts&&(a._realFinish=!0,a.emit("finish"),a._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new o(this._partOpts),this._part._read=function(e){a._unpause()},this._isPreamble&&0!==this.listenerCount("preamble")?this.emit("preamble",this._part):!0!==this._isPreamble&&0!==this.listenerCount("part")?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),t&&n<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(i&&this._part.push(i),this._part.push(t.slice(n,r))||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(i&&this._hparser.push(i),s=this._hparser.push(t.slice(n,r)),!this._inHeader&&void 0!==s&&s<r&&this._oninfo(!1,t,n+s,r))),e&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:n!==r&&(++this._parts,this._part.on("end",function(){0==--a._parts&&(a._finished?(a._realFinish=!0,a.emit("finish"),a._realFinish=!1):a._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)},f.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let e=this._cb;this._cb=void 0,e()}},e.exports=f},1567:(e,t,n)=>{"use strict";let r=n(15673).EventEmitter,i=n(47261).inherits,s=n(74919),o=n(59863),a=Buffer.from("\r\n\r\n"),l=/\r\n/g,u=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function c(e){r.call(this),e=e||{};let t=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=s(e,"maxHeaderPairs",2e3),this.maxHeaderSize=s(e,"maxHeaderSize",81920),this.buffer="",this.header={},this.finished=!1,this.ss=new o(a),this.ss.on("info",function(e,n,r,i){n&&!t.maxed&&(t.nread+i-r>=t.maxHeaderSize?(i=t.maxHeaderSize-t.nread+r,t.nread=t.maxHeaderSize,t.maxed=!0):t.nread+=i-r,t.buffer+=n.toString("binary",r,i)),e&&t._finish()})}i(c,r),c.prototype.push=function(e){let t=this.ss.push(e);if(this.finished)return t},c.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()},c.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let e=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",e)},c.prototype._parseHeader=function(){let e,t;if(this.npairs===this.maxHeaderPairs)return;let n=this.buffer.split(l),r=n.length;for(var i=0;i<r;++i){if(0===n[i].length)continue;if((" "===n[i][0]||" "===n[i][0])&&t){this.header[t][this.header[t].length-1]+=n[i];continue}let r=n[i].indexOf(":");if(-1===r||0===r)return;if(t=(e=u.exec(n[i]))[1].toLowerCase(),this.header[t]=this.header[t]||[],this.header[t].push(e[2]||""),++this.npairs===this.maxHeaderPairs)break}},e.exports=c},34876:(e,t,n)=>{"use strict";let r=n(47261).inherits,i=n(84492).Readable;function s(e){i.call(this,e)}r(s,i),s.prototype._read=function(e){},e.exports=s},59863:(e,t,n)=>{"use strict";let{EventEmitter:r}=n(15673),{inherits:i}=n(47261);function s(e){if("string"==typeof e&&(e=Buffer.from(e)),!Buffer.isBuffer(e))throw TypeError("The needle has to be a String or a Buffer.");let t=e.length,n=t-1;if(0===t)throw Error("The needle cannot be an empty String/Buffer.");if(t>256)throw Error("The needle cannot have a length bigger than 256.");this.maxMatches=1/0,this.matches=0,this._occ=new Uint8Array(256).fill(t),this._lookbehind_size=0,this._needle=e,this._bufpos=0,this._lookbehind=Buffer.alloc(n);for(var r=0;r<n;++r)this._occ[e[r]]=n-r}i(s,r),s.prototype.reset=function(){this._lookbehind_size=0,this.matches=0,this._bufpos=0},s.prototype.push=function(e,t){let n;Buffer.isBuffer(e)||(e=Buffer.from(e,"binary"));let r=e.length;for(this._bufpos=t||0;n!==r&&this.matches<this.maxMatches;)n=this._sbmh_feed(e);return n},s.prototype._sbmh_feed=function(e){let t;let n=e.length,r=this._needle,i=r.length,s=i-1,o=r[s],a=-this._lookbehind_size;if(a<0){for(;a<0&&a<=n-i;){if((t=e[a+s])===o&&this._sbmh_memcmp(e,a,s))return this._lookbehind_size=0,++this.matches,this.emit("info",!0),this._bufpos=a+i;a+=this._occ[t]}for(;a<0&&!this._sbmh_memcmp(e,a,n-a);)++a;if(a>=0)this.emit("info",!1,this._lookbehind,0,this._lookbehind_size),this._lookbehind_size=0;else{let t=this._lookbehind_size+a;return t>0&&this.emit("info",!1,this._lookbehind,0,t),this._lookbehind_size-=t,this._lookbehind.copy(this._lookbehind,0,t,this._lookbehind_size),e.copy(this._lookbehind,this._lookbehind_size),this._lookbehind_size+=n,this._bufpos=n,n}}if(-1!==(a=e.indexOf(r,a+this._bufpos)))return++this.matches,0===a?this.emit("info",!0):this.emit("info",!0,e,this._bufpos,a),this._bufpos=a+i;for((a=n-s)<0&&(a=0);a!==n&&(e[a]!==r[0]||0!==Buffer.compare(e.subarray(a+1,n),r.subarray(1,n-a)));)++a;return a!==n&&(e.copy(this._lookbehind,0,a,n),this._lookbehind_size=n-a),0!==a&&this.emit("info",!1,e,this._bufpos,a),this._bufpos=n,n},s.prototype._sbmh_lookup_char=function(e,t){return t<0?this._lookbehind[this._lookbehind_size+t]:e[t]},s.prototype._sbmh_memcmp=function(e,t,n){for(var r=0;r<n;++r)if(this._sbmh_lookup_char(e,t+r)!==this._needle[r])return!1;return!0},e.exports=s},34e3:(e,t,n)=>{"use strict";let r=n(84492).Writable,{inherits:i}=n(47261),s=n(44151),o=n(3498),a=n(12699),l=n(86462);function u(e){if(!(this instanceof u))return new u(e);if("object"!=typeof e)throw TypeError("Busboy expected an options-Object.");if("object"!=typeof e.headers)throw TypeError("Busboy expected an options-Object with headers-attribute.");if("string"!=typeof e.headers["content-type"])throw TypeError("Missing Content-Type-header.");let{headers:t,...n}=e;this.opts={autoDestroy:!1,...n},r.call(this,this.opts),this._done=!1,this._parser=this.getParserByHeaders(t),this._finished=!1}i(u,r),u.prototype.emit=function(e){if("finish"===e){if(this._done){if(this._finished)return}else{this._parser?.end();return}this._finished=!0}r.prototype.emit.apply(this,arguments)},u.prototype.getParserByHeaders=function(e){let t=l(e["content-type"]),n={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(o.detect.test(t[0]))return new o(this,n);if(a.detect.test(t[0]))return new a(this,n);throw Error("Unsupported Content-Type.")},u.prototype._write=function(e,t,n){this._parser.write(e,n)},e.exports=u,e.exports.default=u,e.exports.Busboy=u,e.exports.Dicer=s},3498:(e,t,n)=>{"use strict";let{Readable:r}=n(84492),{inherits:i}=n(47261),s=n(44151),o=n(86462),a=n(12113),l=n(11754),u=n(74919),c=/^boundary$/i,f=/^form-data$/i,h=/^charset$/i,d=/^filename$/i,p=/^name$/i;function m(e,t){let n,r,i,m,b;let v=this,_=t.limits,E=t.isPartAFile||((e,t,n)=>"application/octet-stream"===t||void 0!==n),T=t.parsedConType||[],S=t.defCharset||"utf8",I=t.preservePath,N={highWaterMark:t.fileHwm};for(n=0,r=T.length;n<r;++n)if(Array.isArray(T[n])&&c.test(T[n][0])){i=T[n][1];break}function O(){0===F&&j&&!e._done&&(j=!1,v.end())}if("string"!=typeof i)throw Error("Multipart: Boundary not found");let x=u(_,"fieldSize",1048576),w=u(_,"fileSize",1/0),k=u(_,"files",1/0),A=u(_,"fields",1/0),D=u(_,"parts",1/0),P=u(_,"headerPairs",2e3),R=u(_,"headerSize",81920),C=0,L=0,F=0,j=!1;this._needDrain=!1,this._pause=!1,this._cb=void 0,this._nparts=0,this._boy=e;let M={boundary:i,maxHeaderPairs:P,maxHeaderSize:R,partHwm:N.highWaterMark,highWaterMark:t.highWaterMark};this.parser=new s(M),this.parser.on("drain",function(){if(v._needDrain=!1,v._cb&&!v._pause){let e=v._cb;v._cb=void 0,e()}}).on("part",function t(i){if(++v._nparts>D)return v.parser.removeListener("part",t),v.parser.on("part",y),e.hitPartsLimit=!0,e.emit("partsLimit"),y(i);if(b){let e=b;e.emit("end"),e.removeAllListeners("end")}i.on("header",function(t){let s,u,c,_,T,D,P,R;let j=0;if(t["content-type"]&&(c=o(t["content-type"][0]))[0]){for(n=0,s=c[0].toLowerCase(),r=c.length;n<r;++n)if(h.test(c[n][0])){_=c[n][1].toLowerCase();break}}if(void 0===s&&(s="text/plain"),void 0===_&&(_=S),!t["content-disposition"]||(c=o(t["content-disposition"][0]),!f.test(c[0])))return y(i);for(n=0,r=c.length;n<r;++n)p.test(c[n][0])?u=c[n][1]:d.test(c[n][0])&&(D=c[n][1],I||(D=l(D)));if(T=t["content-transfer-encoding"]?t["content-transfer-encoding"][0].toLowerCase():"7bit",E(u,s,D)){if(C===k)return e.hitFilesLimit||(e.hitFilesLimit=!0,e.emit("filesLimit")),y(i);if(++C,0===e.listenerCount("file")){v.parser._ignore();return}++F;let t=new g(N);m=t,t.on("end",function(){if(--F,v._pause=!1,O(),v._cb&&!v._needDrain){let e=v._cb;v._cb=void 0,e()}}),t._read=function(e){if(v._pause&&(v._pause=!1,v._cb&&!v._needDrain)){let e=v._cb;v._cb=void 0,e()}},e.emit("file",u,t,D,T,s),P=function(e){if((j+=e.length)>w){let n=w-j+e.length;n>0&&t.push(e.slice(0,n)),t.truncated=!0,t.bytesRead=w,i.removeAllListeners("data"),t.emit("limit");return}t.push(e)||(v._pause=!0),t.bytesRead=j},R=function(){m=void 0,t.push(null)}}else{if(L===A)return e.hitFieldsLimit||(e.hitFieldsLimit=!0,e.emit("fieldsLimit")),y(i);++L,++F;let t="",n=!1;b=i,P=function(e){if((j+=e.length)>x){let r=x-(j-e.length);t+=e.toString("binary",0,r),n=!0,i.removeAllListeners("data")}else t+=e.toString("binary")},R=function(){b=void 0,t.length&&(t=a(t,"binary",_)),e.emit("field",u,t,!1,n,T,s),--F,O()}}i._readableState.sync=!1,i.on("data",P),i.on("end",R)}).on("error",function(e){m&&m.emit("error",e)})}).on("error",function(t){e.emit("error",t)}).on("finish",function(){j=!0,O()})}function y(e){e.resume()}function g(e){r.call(this,e),this.bytesRead=0,this.truncated=!1}m.detect=/^multipart\/form-data/i,m.prototype.write=function(e,t){let n=this.parser.write(e);n&&!this._pause?t():(this._needDrain=!n,this._cb=t)},m.prototype.end=function(){let e=this;e.parser.writable?e.parser.end():e._boy._done||process.nextTick(function(){e._boy._done=!0,e._boy.emit("finish")})},i(g,r),g.prototype._read=function(e){},e.exports=m},12699:(e,t,n)=>{"use strict";let r=n(74631),i=n(12113),s=n(74919),o=/^charset$/i;function a(e,t){let n;let i=t.limits,a=t.parsedConType;this.boy=e,this.fieldSizeLimit=s(i,"fieldSize",1048576),this.fieldNameSizeLimit=s(i,"fieldNameSize",100),this.fieldsLimit=s(i,"fields",1/0);for(var l=0,u=a.length;l<u;++l)if(Array.isArray(a[l])&&o.test(a[l][0])){n=a[l][1].toLowerCase();break}void 0===n&&(n=t.defCharset||"utf8"),this.decoder=new r,this.charset=n,this._fields=0,this._state="key",this._checkingBytes=!0,this._bytesKey=0,this._bytesVal=0,this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._hitLimit=!1}a.detect=/^application\/x-www-form-urlencoded/i,a.prototype.write=function(e,t){let n,r,s;if(this._fields===this.fieldsLimit)return this.boy.hitFieldsLimit||(this.boy.hitFieldsLimit=!0,this.boy.emit("fieldsLimit")),t();let o=0,a=e.length;for(;o<a;)if("key"===this._state){for(n=r=void 0,s=o;s<a;++s){if(!this._checkingBytes&&++o,61===e[s]){n=s;break}if(38===e[s]){r=s;break}if(this._checkingBytes&&this._bytesKey===this.fieldNameSizeLimit){this._hitLimit=!0;break}this._checkingBytes&&++this._bytesKey}if(void 0!==n)n>o&&(this._key+=this.decoder.write(e.toString("binary",o,n))),this._state="val",this._hitLimit=!1,this._checkingBytes=!0,this._val="",this._bytesVal=0,this._valTrunc=!1,this.decoder.reset(),o=n+1;else if(void 0!==r){let n;++this._fields;let s=this._keyTrunc;if(n=r>o?this._key+=this.decoder.write(e.toString("binary",o,r)):this._key,this._hitLimit=!1,this._checkingBytes=!0,this._key="",this._bytesKey=0,this._keyTrunc=!1,this.decoder.reset(),n.length&&this.boy.emit("field",i(n,"binary",this.charset),"",s,!1),o=r+1,this._fields===this.fieldsLimit)return t()}else this._hitLimit?(s>o&&(this._key+=this.decoder.write(e.toString("binary",o,s))),o=s,(this._bytesKey=this._key.length)===this.fieldNameSizeLimit&&(this._checkingBytes=!1,this._keyTrunc=!0)):(o<a&&(this._key+=this.decoder.write(e.toString("binary",o))),o=a)}else{for(r=void 0,s=o;s<a;++s){if(!this._checkingBytes&&++o,38===e[s]){r=s;break}if(this._checkingBytes&&this._bytesVal===this.fieldSizeLimit){this._hitLimit=!0;break}this._checkingBytes&&++this._bytesVal}if(void 0!==r){if(++this._fields,r>o&&(this._val+=this.decoder.write(e.toString("binary",o,r))),this.boy.emit("field",i(this._key,"binary",this.charset),i(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc),this._state="key",this._hitLimit=!1,this._checkingBytes=!0,this._key="",this._bytesKey=0,this._keyTrunc=!1,this.decoder.reset(),o=r+1,this._fields===this.fieldsLimit)return t()}else this._hitLimit?(s>o&&(this._val+=this.decoder.write(e.toString("binary",o,s))),o=s,(""===this._val&&0===this.fieldSizeLimit||(this._bytesVal=this._val.length)===this.fieldSizeLimit)&&(this._checkingBytes=!1,this._valTrunc=!0)):(o<a&&(this._val+=this.decoder.write(e.toString("binary",o))),o=a)}t()},a.prototype.end=function(){this.boy._done||("key"===this._state&&this._key.length>0?this.boy.emit("field",i(this._key,"binary",this.charset),"",this._keyTrunc,!1):"val"===this._state&&this.boy.emit("field",i(this._key,"binary",this.charset),i(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc),this.boy._done=!0,this.boy.emit("finish"))},e.exports=a},74631:e=>{"use strict";let t=/\+/g,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function r(){this.buffer=void 0}r.prototype.write=function(e){e=e.replace(t," ");let r="",i=0,s=0,o=e.length;for(;i<o;++i)void 0!==this.buffer?n[e.charCodeAt(i)]?(this.buffer+=e[i],++s,2===this.buffer.length&&(r+=String.fromCharCode(parseInt(this.buffer,16)),this.buffer=void 0)):(r+="%"+this.buffer,this.buffer=void 0,--i):"%"===e[i]&&(i>s&&(r+=e.substring(s,i),s=i),this.buffer="",++s);return s<o&&void 0===this.buffer&&(r+=e.substring(s)),r},r.prototype.reset=function(){this.buffer=void 0},e.exports=r},11754:e=>{"use strict";e.exports=function(e){if("string"!=typeof e)return"";for(var t=e.length-1;t>=0;--t)switch(e.charCodeAt(t)){case 47:case 92:return".."===(e=e.slice(t+1))||"."===e?"":e}return".."===e||"."===e?"":e}},12113:function(e){"use strict";let t=new TextDecoder("utf-8"),n=new Map([["utf-8",t],["utf8",t]]),r={utf8:(e,t)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,t)),e.utf8Slice(0,e.length)),latin1:(e,t)=>0===e.length?"":"string"==typeof e?e:e.latin1Slice(0,e.length),utf16le:(e,t)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,t)),e.ucs2Slice(0,e.length)),base64:(e,t)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,t)),e.base64Slice(0,e.length)),other:(e,t)=>{if(0===e.length)return"";if("string"==typeof e&&(e=Buffer.from(e,t)),n.has(this.toString()))try{return n.get(this).decode(e)}catch{}return"string"==typeof e?e:e.toString()}};e.exports=function(e,t,n){return e?(function(e){let t;for(;;)switch(e){case"utf-8":case"utf8":return r.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return r.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return r.utf16le;case"base64":return r.base64;default:if(void 0===t){t=!0,e=e.toLowerCase();continue}return r.other.bind(e)}})(n)(e,t):e}},74919:e=>{"use strict";e.exports=function(e,t,n){if(!e||void 0===e[t]||null===e[t])return n;if("number"!=typeof e[t]||isNaN(e[t]))throw TypeError("Limit "+t+" is not a valid number");return e[t]}},86462:(e,t,n)=>{"use strict";let r=n(12113),i=/%[a-fA-F0-9][a-fA-F0-9]/g,s={"%00":"\0","%01":"\x01","%02":"\x02","%03":"\x03","%04":"\x04","%05":"\x05","%06":"\x06","%07":"\x07","%08":"\b","%09":" ","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"\x0e","%0E":"\x0e","%0f":"\x0f","%0F":"\x0f","%10":"\x10","%11":"\x11","%12":"\x12","%13":"\x13","%14":"\x14","%15":"\x15","%16":"\x16","%17":"\x17","%18":"\x18","%19":"\x19","%1a":"\x1a","%1A":"\x1a","%1b":"\x1b","%1B":"\x1b","%1c":"\x1c","%1C":"\x1c","%1d":"\x1d","%1D":"\x1d","%1e":"\x1e","%1E":"\x1e","%1f":"\x1f","%1F":"\x1f","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7f","%7F":"\x7f","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8a","%8A":"\x8a","%8b":"\x8b","%8B":"\x8b","%8c":"\x8c","%8C":"\x8c","%8d":"\x8d","%8D":"\x8d","%8e":"\x8e","%8E":"\x8e","%8f":"\x8f","%8F":"\x8f","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9a","%9A":"\x9a","%9b":"\x9b","%9B":"\x9b","%9c":"\x9c","%9C":"\x9c","%9d":"\x9d","%9D":"\x9d","%9e":"\x9e","%9E":"\x9e","%9f":"\x9f","%9F":"\x9f","%a0":"\xa0","%A0":"\xa0","%a1":"\xa1","%A1":"\xa1","%a2":"\xa2","%A2":"\xa2","%a3":"\xa3","%A3":"\xa3","%a4":"\xa4","%A4":"\xa4","%a5":"\xa5","%A5":"\xa5","%a6":"\xa6","%A6":"\xa6","%a7":"\xa7","%A7":"\xa7","%a8":"\xa8","%A8":"\xa8","%a9":"\xa9","%A9":"\xa9","%aa":"\xaa","%Aa":"\xaa","%aA":"\xaa","%AA":"\xaa","%ab":"\xab","%Ab":"\xab","%aB":"\xab","%AB":"\xab","%ac":"\xac","%Ac":"\xac","%aC":"\xac","%AC":"\xac","%ad":"\xad","%Ad":"\xad","%aD":"\xad","%AD":"\xad","%ae":"\xae","%Ae":"\xae","%aE":"\xae","%AE":"\xae","%af":"\xaf","%Af":"\xaf","%aF":"\xaf","%AF":"\xaf","%b0":"\xb0","%B0":"\xb0","%b1":"\xb1","%B1":"\xb1","%b2":"\xb2","%B2":"\xb2","%b3":"\xb3","%B3":"\xb3","%b4":"\xb4","%B4":"\xb4","%b5":"\xb5","%B5":"\xb5","%b6":"\xb6","%B6":"\xb6","%b7":"\xb7","%B7":"\xb7","%b8":"\xb8","%B8":"\xb8","%b9":"\xb9","%B9":"\xb9","%ba":"\xba","%Ba":"\xba","%bA":"\xba","%BA":"\xba","%bb":"\xbb","%Bb":"\xbb","%bB":"\xbb","%BB":"\xbb","%bc":"\xbc","%Bc":"\xbc","%bC":"\xbc","%BC":"\xbc","%bd":"\xbd","%Bd":"\xbd","%bD":"\xbd","%BD":"\xbd","%be":"\xbe","%Be":"\xbe","%bE":"\xbe","%BE":"\xbe","%bf":"\xbf","%Bf":"\xbf","%bF":"\xbf","%BF":"\xbf","%c0":"\xc0","%C0":"\xc0","%c1":"\xc1","%C1":"\xc1","%c2":"\xc2","%C2":"\xc2","%c3":"\xc3","%C3":"\xc3","%c4":"\xc4","%C4":"\xc4","%c5":"\xc5","%C5":"\xc5","%c6":"\xc6","%C6":"\xc6","%c7":"\xc7","%C7":"\xc7","%c8":"\xc8","%C8":"\xc8","%c9":"\xc9","%C9":"\xc9","%ca":"\xca","%Ca":"\xca","%cA":"\xca","%CA":"\xca","%cb":"\xcb","%Cb":"\xcb","%cB":"\xcb","%CB":"\xcb","%cc":"\xcc","%Cc":"\xcc","%cC":"\xcc","%CC":"\xcc","%cd":"\xcd","%Cd":"\xcd","%cD":"\xcd","%CD":"\xcd","%ce":"\xce","%Ce":"\xce","%cE":"\xce","%CE":"\xce","%cf":"\xcf","%Cf":"\xcf","%cF":"\xcf","%CF":"\xcf","%d0":"\xd0","%D0":"\xd0","%d1":"\xd1","%D1":"\xd1","%d2":"\xd2","%D2":"\xd2","%d3":"\xd3","%D3":"\xd3","%d4":"\xd4","%D4":"\xd4","%d5":"\xd5","%D5":"\xd5","%d6":"\xd6","%D6":"\xd6","%d7":"\xd7","%D7":"\xd7","%d8":"\xd8","%D8":"\xd8","%d9":"\xd9","%D9":"\xd9","%da":"\xda","%Da":"\xda","%dA":"\xda","%DA":"\xda","%db":"\xdb","%Db":"\xdb","%dB":"\xdb","%DB":"\xdb","%dc":"\xdc","%Dc":"\xdc","%dC":"\xdc","%DC":"\xdc","%dd":"\xdd","%Dd":"\xdd","%dD":"\xdd","%DD":"\xdd","%de":"\xde","%De":"\xde","%dE":"\xde","%DE":"\xde","%df":"\xdf","%Df":"\xdf","%dF":"\xdf","%DF":"\xdf","%e0":"\xe0","%E0":"\xe0","%e1":"\xe1","%E1":"\xe1","%e2":"\xe2","%E2":"\xe2","%e3":"\xe3","%E3":"\xe3","%e4":"\xe4","%E4":"\xe4","%e5":"\xe5","%E5":"\xe5","%e6":"\xe6","%E6":"\xe6","%e7":"\xe7","%E7":"\xe7","%e8":"\xe8","%E8":"\xe8","%e9":"\xe9","%E9":"\xe9","%ea":"\xea","%Ea":"\xea","%eA":"\xea","%EA":"\xea","%eb":"\xeb","%Eb":"\xeb","%eB":"\xeb","%EB":"\xeb","%ec":"\xec","%Ec":"\xec","%eC":"\xec","%EC":"\xec","%ed":"\xed","%Ed":"\xed","%eD":"\xed","%ED":"\xed","%ee":"\xee","%Ee":"\xee","%eE":"\xee","%EE":"\xee","%ef":"\xef","%Ef":"\xef","%eF":"\xef","%EF":"\xef","%f0":"\xf0","%F0":"\xf0","%f1":"\xf1","%F1":"\xf1","%f2":"\xf2","%F2":"\xf2","%f3":"\xf3","%F3":"\xf3","%f4":"\xf4","%F4":"\xf4","%f5":"\xf5","%F5":"\xf5","%f6":"\xf6","%F6":"\xf6","%f7":"\xf7","%F7":"\xf7","%f8":"\xf8","%F8":"\xf8","%f9":"\xf9","%F9":"\xf9","%fa":"\xfa","%Fa":"\xfa","%fA":"\xfa","%FA":"\xfa","%fb":"\xfb","%Fb":"\xfb","%fB":"\xfb","%FB":"\xfb","%fc":"\xfc","%Fc":"\xfc","%fC":"\xfc","%FC":"\xfc","%fd":"\xfd","%Fd":"\xfd","%fD":"\xfd","%FD":"\xfd","%fe":"\xfe","%Fe":"\xfe","%fE":"\xfe","%FE":"\xfe","%ff":"\xff","%Ff":"\xff","%fF":"\xff","%FF":"\xff"};function o(e){return s[e]}e.exports=function(e){let t=[],n=0,s="",a=!1,l=!1,u=0,c="",f=e.length;for(var h=0;h<f;++h){let f=e[h];if("\\"===f&&a){if(l)l=!1;else{l=!0;continue}}else if('"'===f){if(l)l=!1;else{a?(a=!1,n=0):a=!0;continue}}else{if(l&&a&&(c+="\\"),l=!1,(2===n||3===n)&&"'"===f){2===n?(n=3,s=c.substring(1)):n=1,c="";continue}if(0===n&&("*"===f||"="===f)&&t.length){n="*"===f?2:1,t[u]=[c,void 0],c="";continue}if(a||";"!==f){if(!a&&(" "===f||" "===f))continue}else{n=0,s?(c.length&&(c=r(c.replace(i,o),"binary",s)),s=""):c.length&&(c=r(c,"binary","utf8")),void 0===t[u]?t[u]=c:t[u][1]=c,c="",++u;continue}}c+=f}return s&&c.length?c=r(c.replace(i,o),"binary",s):c&&(c=r(c,"binary","utf8")),void 0===t[u]?c&&(t[u]=c):t[u][1]=c,t}},48012:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillAsyncDisposableStack=void 0;let r=n(9913),i=n(15367),s=n(67855),o=n(86078),a=globalThis.SuppressedError||i.PonyfillSuppressedError;class l{callbacks=[];get disposed(){return 0===this.callbacks.length}use(e){return(0,o.isAsyncDisposable)(e)?this.callbacks.push(()=>e[s.DisposableSymbols.asyncDispose]()):(0,o.isSyncDisposable)(e)&&this.callbacks.push(()=>e[s.DisposableSymbols.dispose]()),e}adopt(e,t){return t&&this.callbacks.push(()=>t(e)),e}defer(e){e&&this.callbacks.push(e)}move(){let e=new l;return e.callbacks=this.callbacks,this.callbacks=[],e}disposeAsync(){return this[s.DisposableSymbols.asyncDispose]()}_error;_iterateCallbacks(){let e=this.callbacks.pop();if(e)return(0,r.handleMaybePromise)(e,()=>this._iterateCallbacks(),e=>(this._error=this._error?new a(e,this._error):e,this._iterateCallbacks()))}[s.DisposableSymbols.asyncDispose](){let e=this._iterateCallbacks();if(e?.then)return e.then(()=>{if(this._error){let e=this._error;throw this._error=void 0,e}});if(this._error){let e=this._error;throw this._error=void 0,e}}[Symbol.toStringTag]="AsyncDisposableStack"}t.PonyfillAsyncDisposableStack=l},66851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillDisposableStack=void 0;let r=n(15367),i=n(67855),s=n(86078),o=globalThis.SuppressedError||r.PonyfillSuppressedError;class a{callbacks=[];get disposed(){return 0===this.callbacks.length}use(e){return(0,s.isSyncDisposable)(e)&&this.callbacks.push(()=>e[i.DisposableSymbols.dispose]()),e}adopt(e,t){return t&&this.callbacks.push(()=>t(e)),e}defer(e){e&&this.callbacks.push(e)}move(){let e=new a;return e.callbacks=this.callbacks,this.callbacks=[],e}dispose(){return this[i.DisposableSymbols.dispose]()}_error;_iterateCallbacks(){let e=this.callbacks.pop();if(e){try{e()}catch(e){this._error=this._error?new o(e,this._error):e}return this._iterateCallbacks()}}[i.DisposableSymbols.dispose](){if(this._iterateCallbacks(),this._error){let e=this._error;throw this._error=void 0,e}}[Symbol.toStringTag]="DisposableStack"}t.PonyfillDisposableStack=a},15367:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillSuppressedError=void 0;class n extends Error{error;suppressed;constructor(e,t,n){super(n),this.error=e,this.suppressed=t,this.name="SuppressedError",Error.captureStackTrace(this,this.constructor)}}t.PonyfillSuppressedError=n},94297:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SuppressedError=t.AsyncDisposableStack=t.DisposableStack=void 0;let r=n(82174),i=n(48012),s=n(66851),o=n(15367);t.DisposableStack=globalThis.DisposableStack||s.PonyfillDisposableStack,t.AsyncDisposableStack=globalThis.AsyncDisposableStack||i.PonyfillAsyncDisposableStack,t.SuppressedError=globalThis.SuppressedError||o.PonyfillSuppressedError,r.__exportStar(n(67855),t)},67855:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DisposableSymbols=void 0,t.patchSymbols=function(){Symbol.dispose||=Symbol.for("dispose"),Symbol.asyncDispose||=Symbol.for("asyncDispose")},t.DisposableSymbols={get dispose(){return Symbol.dispose||Symbol.for("dispose")},get asyncDispose(){return Symbol.asyncDispose||Symbol.for("asyncDispose")}}},86078:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSyncDisposable=function(e){return e?.[r.DisposableSymbols.dispose]!=null},t.isAsyncDisposable=function(e){return e?.[r.DisposableSymbols.asyncDispose]!=null};let r=n(67855)},7770:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillBlob=void 0,t.hasBufferMethod=a,t.hasArrayBufferMethod=l,t.hasBytesMethod=u,t.hasTextMethod=c,t.hasSizeProperty=f,t.hasStreamMethod=h,t.hasBlobSignature=d,t.isArrayBuffer=p;let r=n(72254),i=n(95431),s=n(71663);function o(e){return"string"==typeof e?r.Buffer.from(e):r.Buffer.isBuffer(e)?e:(0,s.isArrayBufferView)(e)?r.Buffer.from(e.buffer,e.byteOffset,e.byteLength):r.Buffer.from(e)}function a(e){return null!=e&&null!=e.buffer&&"function"==typeof e.buffer}function l(e){return null!=e&&null!=e.arrayBuffer&&"function"==typeof e.arrayBuffer}function u(e){return null!=e&&null!=e.bytes&&"function"==typeof e.bytes}function c(e){return null!=e&&null!=e.text&&"function"==typeof e.text}function f(e){return null!=e&&"number"==typeof e.size}function h(e){return null!=e&&null!=e.stream&&"function"==typeof e.stream}function d(e){return null!=e&&"Blob"===e[Symbol.toStringTag]}function p(e){return null!=e&&null!=e.byteLength&&null!=e.slice}class m{blobParts;type;encoding;_size=null;constructor(e=[],t){if(this.blobParts=e,this.type=t?.type||"application/octet-stream",this.encoding=t?.encoding||"utf8",this._size=t?.size||null,1===e.length&&d(e[0]))return e[0]}_buffer=null;buffer(){if(this._buffer)return(0,s.fakePromise)(this._buffer);if(1===this.blobParts.length){let e=this.blobParts[0];return a(e)?e.buffer().then(e=>(this._buffer=e,this._buffer)):u(e)?e.bytes().then(e=>(this._buffer=r.Buffer.from(e),this._buffer)):l(e)?e.arrayBuffer().then(t=>(this._buffer=r.Buffer.from(t,void 0,e.size),this._buffer)):(this._buffer=o(e),(0,s.fakePromise)(this._buffer))}let e=[],t=this.blobParts.map((n,i)=>{if(a(n)){e.push(n.buffer().then(e=>{t[i]=e}));return}if(l(n)){e.push(n.arrayBuffer().then(e=>{t[i]=r.Buffer.from(e,void 0,n.size)}));return}if(!u(n))return o(n);e.push(n.bytes().then(e=>{t[i]=r.Buffer.from(e)}))});return e.length>0?Promise.all(e).then(()=>r.Buffer.concat(t,this._size||void 0)):(0,s.fakePromise)(r.Buffer.concat(t,this._size||void 0))}arrayBuffer(){if(this._buffer)return(0,s.fakePromise)(this._buffer);if(1===this.blobParts.length){if(p(this.blobParts[0]))return(0,s.fakePromise)(this.blobParts[0]);if(l(this.blobParts[0]))return this.blobParts[0].arrayBuffer()}return this.buffer()}bytes(){if(this._buffer)return(0,s.fakePromise)(this._buffer);if(1===this.blobParts.length){if(r.Buffer.isBuffer(this.blobParts[0]))return this._buffer=this.blobParts[0],(0,s.fakePromise)(this._buffer);if(this.blobParts[0]instanceof Uint8Array)return this._buffer=r.Buffer.from(this.blobParts[0]),(0,s.fakePromise)(this._buffer);if(u(this.blobParts[0]))return this.blobParts[0].bytes();if(a(this.blobParts[0]))return this.blobParts[0].buffer()}return this.buffer()}_text=null;text(){if(this._text)return(0,s.fakePromise)(this._text);if(1===this.blobParts.length){let e=this.blobParts[0];if("string"==typeof e)return this._text=e,(0,s.fakePromise)(this._text);if(c(e))return e.text().then(e=>(this._text=e,this._text));let t=o(e);return this._text=t.toString(this.encoding),(0,s.fakePromise)(this._text)}return this.buffer().then(e=>(this._text=e.toString(this.encoding),this._text))}_json=null;json(){return this._json?(0,s.fakePromise)(this._json):this.text().then(e=>(this._json=JSON.parse(e),this._json))}_formData=null;formData(){if(this._formData)return(0,s.fakePromise)(this._formData);throw Error("Not implemented")}get size(){if(null==this._size)for(let e of(this._size=0,this.blobParts))"string"==typeof e?this._size+=r.Buffer.byteLength(e):f(e)?this._size+=e.size:(0,s.isArrayBufferView)(e)&&(this._size+=e.byteLength);return this._size}stream(){let e;if(1===this.blobParts.length){let e=this.blobParts[0];if(h(e))return e.stream();let t=o(e);return new i.PonyfillReadableStream({start:e=>{e.enqueue(t),e.close()}})}return new i.PonyfillReadableStream(null!=this._buffer?{start:e=>{e.enqueue(this._buffer),e.close()}}:{start:t=>{if(0===this.blobParts.length){t.close();return}e=this.blobParts[Symbol.iterator]()},pull:t=>{let{value:n,done:i}=e.next();if(i){t.close();return}if(n){if(a(n))return n.buffer().then(e=>{t.enqueue(e)});if(u(n))return n.bytes().then(e=>{let n=r.Buffer.from(e);t.enqueue(n)});if(l(n))return n.arrayBuffer().then(e=>{let i=r.Buffer.from(e,void 0,n.size);t.enqueue(i)});let e=o(n);t.enqueue(e)}}})}slice(){throw Error("Not implemented")}}t.PonyfillBlob=m},56892:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillBody=void 0;let i=n(72254),s=n(84492),o=n(34e3),a=n(9913),l=n(7770),u=n(99895),c=n(2944),f=n(95431),h=n(71663);!function(e){e.ReadableStream="ReadableStream",e.Blob="Blob",e.FormData="FormData",e.String="String",e.Readable="Readable",e.Buffer="Buffer",e.AsyncIterable="AsyncIterable"}(r||(r={}));class d{bodyInit;options;bodyUsed=!1;contentType=null;contentLength=null;constructor(e,t={}){this.bodyInit=e,this.options=t;let{bodyFactory:n,contentType:o,contentLength:a,bodyType:l,buffer:u}=function(e){if(null==e)return{bodyFactory:()=>null,contentType:null,contentLength:null};if("string"==typeof e){let t=i.Buffer.byteLength(e);return{bodyType:r.String,contentType:"text/plain;charset=UTF-8",contentLength:t,bodyFactory(){let t=s.Readable.from(i.Buffer.from(e,"utf-8"));return new f.PonyfillReadableStream(t)}}}if(i.Buffer.isBuffer(e))return{bodyType:r.Buffer,contentType:null,contentLength:e.length,buffer:e,bodyFactory(){let t=s.Readable.from(e);return new f.PonyfillReadableStream(t)}};if((0,h.isArrayBufferView)(e)){let t=i.Buffer.from(e.buffer,e.byteOffset,e.byteLength);return{bodyType:r.Buffer,contentLength:e.byteLength,contentType:null,buffer:t,bodyFactory(){let e=s.Readable.from(t);return new f.PonyfillReadableStream(e)}}}if(e instanceof f.PonyfillReadableStream&&null!=e.readable)return{bodyType:r.ReadableStream,bodyFactory:()=>e,contentType:null,contentLength:null};if(e?.stream!=null&&"function"==typeof e.stream)return{bodyType:r.Blob,contentType:e.type,contentLength:e.size,bodyFactory:()=>e.stream()};if(e instanceof ArrayBuffer){let t=e.byteLength,n=i.Buffer.from(e,void 0,e.byteLength);return{bodyType:r.Buffer,contentType:null,contentLength:t,buffer:n,bodyFactory(){let e=s.Readable.from(n);return new f.PonyfillReadableStream(e)}}}if(e instanceof s.Readable)return{bodyType:r.Readable,contentType:null,contentLength:null,bodyFactory:()=>new f.PonyfillReadableStream(e)};if(e?.sort!=null)return{bodyType:r.String,contentType:"application/x-www-form-urlencoded;charset=UTF-8",contentLength:null,bodyFactory:()=>new f.PonyfillReadableStream(s.Readable.from(e.toString()))};if(e?.forEach!=null){let t=Math.random().toString(36).substr(2),n=`multipart/form-data; boundary=${t}`;return{bodyType:r.FormData,contentType:n,contentLength:null,bodyFactory:()=>(0,c.getStreamFromFormData)(e,t)}}if(e?.getReader!=null)return{contentType:null,contentLength:null,bodyFactory:()=>new f.PonyfillReadableStream(e)};if(e[Symbol.iterator]||e[Symbol.asyncIterator])return{contentType:null,contentLength:null,bodyType:r.AsyncIterable,bodyFactory(){let t=s.Readable.from(e);return new f.PonyfillReadableStream(t)}};throw Error("Unknown body type")}(e);this._bodyFactory=n,this.contentType=o,this.contentLength=a,this.bodyType=l,this._buffer=u,this._signal=t.signal}bodyType;_bodyFactory=()=>null;_generatedBody=null;_buffer;_signal;generateBody(){if(this._generatedBody?.readable?.destroyed&&this._buffer&&(this._generatedBody.readable=s.Readable.from(this._buffer)),this._generatedBody)return this._generatedBody;let e=this._bodyFactory();return this._generatedBody=e,e}handleContentLengthHeader(e=!1){let t=this.headers.get("content-type");t?this.contentType=t:this.contentType&&this.headers.set("content-type",this.contentType);let n=this.headers.get("content-length");e&&null==this.bodyInit&&!n&&(this.contentLength=0,this.headers.set("content-length","0")),n?this.contentLength=parseInt(n,10):this.contentLength&&this.headers.set("content-length",this.contentLength.toString())}get body(){let e=this.generateBody();if(null!=e){let t=e.readable;return new Proxy(e.readable,{get(n,r){if(r in e){let t=e[r];return"function"==typeof t?t.bind(e):t}if(r in t){let e=t[r];return"function"==typeof e?e.bind(t):e}}})}return null}_chunks=null;_doCollectChunksFromReadableJob(){if(this.bodyType===r.AsyncIterable){if(Array.fromAsync)return(0,a.handleMaybePromise)(()=>Array.fromAsync(this.bodyInit),e=>(this._chunks=e,this._chunks));let e=this.bodyInit[Symbol.asyncIterator](),t=[],n=()=>(0,a.handleMaybePromise)(()=>e.next(),({value:e,done:r})=>(e&&t.push(e),r)?(this._chunks=t,this._chunks):n());return n()}let e=this.generateBody();if(!e)return this._chunks=[],(0,h.fakePromise)(this._chunks);if(e.readable.destroyed)return(0,h.fakePromise)(this._chunks=[]);let t=[];return new Promise((n,r)=>{e.readable.on("data",e=>{t.push(e)}),e.readable.once("error",r),e.readable.once("end",()=>{n(this._chunks=t)})})}_collectChunksFromReadable(){return this._chunks?(0,h.fakePromise)(this._chunks):(this._chunks||=this._doCollectChunksFromReadableJob(),this._chunks)}_blob=null;blob(){return this._blob?(0,h.fakePromise)(this._blob):(this.bodyType===r.String&&(this._text=this.bodyInit,this._blob=new l.PonyfillBlob([this._text],{type:this.contentType||"text/plain;charset=UTF-8",size:this.contentLength})),this.bodyType===r.Blob)?(this._blob=this.bodyInit,(0,h.fakePromise)(this._blob)):this._buffer?(this._blob=new l.PonyfillBlob([this._buffer],{type:this.contentType||"",size:this.contentLength}),(0,h.fakePromise)(this._blob)):(0,h.fakePromise)((0,a.handleMaybePromise)(()=>this._collectChunksFromReadable(),e=>(this._blob=new l.PonyfillBlob(e,{type:this.contentType||"",size:this.contentLength}),this._blob)))}_formData=null;formData(e){if(this._formData)return(0,h.fakePromise)(this._formData);if(this.bodyType===r.FormData)return this._formData=this.bodyInit,(0,h.fakePromise)(this._formData);if(this._formData=new c.PonyfillFormData,null==this.generateBody())return(0,h.fakePromise)(this._formData);let t={...this.options.formDataLimits,...e?.formDataLimits};return new Promise((e,n)=>{let r=this.body?.readable;if(!r)return n(Error("No stream available"));let i=null,a=new o.Busboy({headers:{"content-length":"number"==typeof this.contentLength?this.contentLength.toString():this.contentLength||"","content-type":this.contentType||""},limits:t,defCharset:"utf-8"});this._signal&&(0,s.addAbortSignal)(this._signal,a);let l=!1,c=t=>{l||(l=!0,r.unpipe(a),a.destroy(),i&&(i.destroy(),i=null),t?n(t):e(this._formData))};r.on("error",c),a.on("field",(e,n,r,i)=>r?c(Error(`Field name size exceeded: ${t?.fieldNameSize} bytes`)):i?c(Error(`Field value size exceeded: ${t?.fieldSize} bytes`)):void this._formData.set(e,n)),a.on("file",(e,n,r,s,o)=>{i=n;let a=[];n.on("data",e=>{a.push(e)}),n.on("error",c),n.on("limit",()=>{c(Error(`File size limit exceeded: ${t?.fileSize} bytes`))}),n.on("close",()=>{n.truncated&&c(Error(`File size limit exceeded: ${t?.fileSize} bytes`)),i=null;let s=new u.PonyfillFile(a,r,{type:o});this._formData.set(e,s)})}),a.on("fieldsLimit",()=>{c(Error(`Fields limit exceeded: ${t?.fields}`))}),a.on("filesLimit",()=>{c(Error(`Files limit exceeded: ${t?.files}`))}),a.on("partsLimit",()=>{c(Error(`Parts limit exceeded: ${t?.parts}`))}),a.on("end",c),a.on("finish",c),a.on("close",c),a.on("error",c),r.pipe(a)})}buffer(){if(this._buffer)return(0,h.fakePromise)(this._buffer);if(this._text)return this._buffer=i.Buffer.from(this._text,"utf-8"),(0,h.fakePromise)(this._buffer);if(this.bodyType===r.String)return this.text().then(e=>(this._text=e,this._buffer=i.Buffer.from(e,"utf-8"),this._buffer));if(this.bodyType===r.Blob){if((0,l.hasBufferMethod)(this.bodyInit))return this.bodyInit.buffer().then(e=>(this._buffer=e,this._buffer));if((0,l.hasBytesMethod)(this.bodyInit))return this.bodyInit.bytes().then(e=>(this._buffer=i.Buffer.from(e),this._buffer));if((0,l.hasArrayBufferMethod)(this.bodyInit))return this.bodyInit.arrayBuffer().then(e=>(this._buffer=i.Buffer.from(e,void 0,e.byteLength),this._buffer))}return(0,h.fakePromise)((0,a.handleMaybePromise)(()=>this._collectChunksFromReadable(),e=>(1===e.length?this._buffer=e[0]:this._buffer=i.Buffer.concat(e),this._buffer)))}bytes(){return this.buffer()}arrayBuffer(){return this.buffer()}_json=null;json(){return this._json?(0,h.fakePromise)(this._json):this.text().then(e=>{try{this._json=JSON.parse(e)}catch(t){throw t instanceof SyntaxError&&(t.message+=`, "${e}" is not valid JSON`),t}return this._json})}_text=null;text(){return this._text?(0,h.fakePromise)(this._text):this.bodyType===r.String?(this._text=this.bodyInit,(0,h.fakePromise)(this._text)):this.buffer().then(e=>(this._text=e.toString("utf-8"),this._text))}}t.PonyfillBody=d},54012:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillCompressionStream=void 0;let r=n(65628),i=n(46406);class s extends i.PonyfillTransformStream{static supportedFormats=globalThis.process?.version?.startsWith("v2")?["gzip","deflate","br"]:["gzip","deflate","deflate-raw","br"];constructor(e){switch(e){case"x-gzip":case"gzip":super((0,r.createGzip)());break;case"x-deflate":case"deflate":super((0,r.createDeflate)());break;case"deflate-raw":super((0,r.createDeflateRaw)());break;case"br":super((0,r.createBrotliCompress)());break;default:throw Error(`Unsupported compression format: ${e}`)}}}t.PonyfillCompressionStream=s},20958:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillDecompressionStream=void 0;let r=n(65628),i=n(46406);class s extends i.PonyfillTransformStream{static supportedFormats=globalThis.process?.version?.startsWith("v2")?["gzip","deflate","br"]:["gzip","deflate","deflate-raw","br"];constructor(e){switch(e){case"x-gzip":case"gzip":super((0,r.createGunzip)());break;case"x-deflate":case"deflate":super((0,r.createInflate)());break;case"deflate-raw":super((0,r.createInflateRaw)());break;case"br":super((0,r.createBrotliDecompress)());break;default:throw TypeError(`Unsupported compression format: '${e}'`)}}}t.PonyfillDecompressionStream=s},99895:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillFile=void 0;let r=n(7770);class i extends r.PonyfillBlob{name;lastModified;constructor(e,t,n){super(e,n),this.name=t,this.lastModified=n?.lastModified||Date.now()}webkitRelativePath=""}t.PonyfillFile=i},2944:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillFormData=void 0,t.getStreamFromFormData=function(e,t="---"){let n,i;let o=!1,a=!1;function l(e){let{done:s,value:o}=n.next();if(s)return e.enqueue(r.Buffer.from(`\r
131
+ --${t}--\r
132
+ `)),e.close();if(a&&e.enqueue(r.Buffer.from(`\r
133
+ --${t}\r
134
+ `)),o){let[t,n]=o;if("string"==typeof n)e.enqueue(r.Buffer.from(`Content-Disposition: form-data; name="${t}"\r
135
+ \r
136
+ `)),e.enqueue(r.Buffer.from(n));else{let s="";n.name&&(s=`; filename="${n.name}"`),e.enqueue(r.Buffer.from(`Content-Disposition: form-data; name="${t}"${s}\r
137
+ `)),e.enqueue(r.Buffer.from(`Content-Type: ${n.type||"application/octet-stream"}\r
138
+ \r
139
+ `)),i=n.stream()[Symbol.asyncIterator]()}a=!0}}return new s.PonyfillReadableStream({start:()=>{n=e.entries()},pull:e=>o?i?i.next().then(({done:t,value:n})=>(t&&(i=void 0),n)?e.enqueue(n):l(e)):l(e):(o=!0,e.enqueue(r.Buffer.from(`--${t}\r
140
+ `))),cancel:e=>{n?.return?.(e),i?.return?.(e)}})};let r=n(72254),i=n(73629),s=n(95431);class o{map=new Map;append(e,t,n){let r=this.map.get(e);r||(r=[],this.map.set(e,r));let i=l(t)?a(e,t,n):t;r.push(i)}delete(e){this.map.delete(e)}get(e){let t=this.map.get(e);return t?t[0]:null}getAll(e){return this.map.get(e)||[]}has(e){return this.map.has(e)}set(e,t,n){let r=l(t)?a(e,t,n):t;this.map.set(e,[r])}[Symbol.iterator](){return this._entries()}*_entries(){for(let[e,t]of this.map)for(let n of t)yield[e,n]}entries(){return new i.PonyfillIteratorObject(this._entries(),"FormDataIterator")}_keys(){return this.map.keys()}keys(){return new i.PonyfillIteratorObject(this._keys(),"FormDataIterator")}*_values(){for(let e of this.map.values())for(let t of e)yield t}values(){return new i.PonyfillIteratorObject(this._values(),"FormDataIterator")}forEach(e){for(let[t,n]of this)e(n,t,this)}}function a(e,t,n){return Object.defineProperty(t,"name",{configurable:!0,enumerable:!0,value:n||t.name||e}),t}function l(e){return e?.arrayBuffer!=null}t.PonyfillFormData=o},78620:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillHeaders=void 0,t.isHeadersLike=s;let r=n(47261),i=n(73629);function s(e){return e?.get&&e?.forEach}class o{headersInit;_map;objectNormalizedKeysOfHeadersInit=[];objectOriginalKeysOfHeadersInit=[];_setCookies;constructor(e){this.headersInit=e}_get(e){let t=e.toLowerCase();if("set-cookie"===t&&this._setCookies?.length)return this._setCookies.join(", ");if(this._map)return this._map.get(t)||null;if(null==this.headersInit)return null;if(Array.isArray(this.headersInit)){let e=this.headersInit.filter(([e])=>e.toLowerCase()===t);return 0===e.length?null:1===e.length?e[0][1]:e.map(([,e])=>e).join(", ")}if(s(this.headersInit))return this.headersInit.get(t);{let n=this.headersInit[e]||this.headersInit[t];if(null!=n)return n;this.objectNormalizedKeysOfHeadersInit.length||Object.keys(this.headersInit).forEach(e=>{this.objectOriginalKeysOfHeadersInit.push(e),this.objectNormalizedKeysOfHeadersInit.push(e.toLowerCase())});let r=this.objectNormalizedKeysOfHeadersInit.indexOf(t);if(-1===r)return null;let i=this.objectOriginalKeysOfHeadersInit[r];return this.headersInit[i]}}getMap(){if(!this._map){if(this._setCookies||=[],null!=this.headersInit){if(Array.isArray(this.headersInit))for(let[e,t]of(this._map=new Map,this.headersInit)){let n=e.toLowerCase();if("set-cookie"===n){this._setCookies.push(t);continue}this._map.set(n,t)}else if(s(this.headersInit))this._map=new Map,this.headersInit.forEach((e,t)=>{if("set-cookie"===t){this._setCookies||=[],this._setCookies.push(e);return}this._map.set(t,e)});else for(let e in this._map=new Map,this.headersInit){let t=this.headersInit[e];if(null!=t){let n=e.toLowerCase();if("set-cookie"===n){this._setCookies||=[],this._setCookies.push(t);continue}this._map.set(n,t)}}}else this._map=new Map}return this._map}append(e,t){let n=e.toLowerCase();if("set-cookie"===n){this._setCookies||=[],this._setCookies.push(t);return}let r=this.getMap().get(n),i=r?`${r}, ${t}`:t;this.getMap().set(n,i)}get(e){let t=this._get(e);return null==t?null:t.toString()}has(e){return"set-cookie"===e.toLowerCase()?!!this._setCookies?.length:!!this._get(e)}set(e,t){let n=e.toLowerCase();if("set-cookie"===n){this._setCookies=[t];return}if(!this._map&&null!=this.headersInit){if(Array.isArray(this.headersInit)){let e=this.headersInit.find(([e])=>e.toLowerCase()===n);e?e[1]=t:this.headersInit.push([n,t]);return}if(s(this.headersInit)){this.headersInit.set(n,t);return}this.headersInit[n]=t;return}this.getMap().set(n,t)}delete(e){let t=e.toLowerCase();if("set-cookie"===t){this._setCookies=[];return}this.getMap().delete(t)}forEach(e){if(this._setCookies?.forEach(t=>{e(t,"set-cookie",this)}),!this._map){if(this.headersInit){if(Array.isArray(this.headersInit)){this.headersInit.forEach(([t,n])=>{e(n,t,this)});return}if(s(this.headersInit)){this.headersInit.forEach(e);return}Object.entries(this.headersInit).forEach(([t,n])=>{null!=n&&e(n,t,this)})}return}this.getMap().forEach((t,n)=>{e(t,n,this)})}*_keys(){if(this._setCookies?.length&&(yield"set-cookie"),!this._map&&this.headersInit){if(Array.isArray(this.headersInit)){yield*this.headersInit.map(([e])=>e)[Symbol.iterator]();return}if(s(this.headersInit)){yield*this.headersInit.keys();return}yield*Object.keys(this.headersInit)[Symbol.iterator]();return}yield*this.getMap().keys()}keys(){return new i.PonyfillIteratorObject(this._keys(),"HeadersIterator")}*_values(){if(this._setCookies?.length&&(yield*this._setCookies),!this._map&&this.headersInit){if(Array.isArray(this.headersInit)){yield*this.headersInit.map(([,e])=>e)[Symbol.iterator]();return}if(s(this.headersInit)){yield*this.headersInit.values();return}yield*Object.values(this.headersInit)[Symbol.iterator]();return}yield*this.getMap().values()}values(){return new i.PonyfillIteratorObject(this._values(),"HeadersIterator")}*_entries(){if(this._setCookies?.length&&(yield*this._setCookies.map(e=>["set-cookie",e])),!this._map&&this.headersInit){if(Array.isArray(this.headersInit)){yield*this.headersInit;return}if(s(this.headersInit)){yield*this.headersInit.entries();return}yield*Object.entries(this.headersInit);return}yield*this.getMap().entries()}entries(){return new i.PonyfillIteratorObject(this._entries(),"HeadersIterator")}getSetCookie(){return this._setCookies||this.getMap(),this._setCookies}[Symbol.iterator](){return this.entries()}[Symbol.for("nodejs.util.inspect.custom")](){let e={};return this.forEach((t,n)=>{"set-cookie"===n?e["set-cookie"]=this._setCookies||[]:e[n]=t?.includes(",")?t.split(",").map(e=>e.trim()):t}),`Headers ${(0,r.inspect)(e)}`}}t.PonyfillHeaders=o},73629:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillIteratorObject=void 0;let r=n(47261),i=n(94297),s=n(71663);class o{iterableIterator;[Symbol.toStringTag]="IteratorObject";constructor(e,t){this.iterableIterator=e,this[Symbol.toStringTag]=t}*map(e){let t=0;for(let n of this.iterableIterator)yield e(n,t++)}*filter(e){let t=0;for(let n of this.iterableIterator)e(n,t++)&&(yield n)}reduce(e,t){let n=0,r=t;for(let t of this.iterableIterator)r=e(r,t,n++);return r}forEach(e){let t=0;for(let n of this.iterableIterator)e(n,t++)}*take(e){let t=0;for(let n of this.iterableIterator){if(t>=e)break;yield n,t++}}*drop(e){let t=0;for(let n of this.iterableIterator)t>=e&&(yield n),t++}*flatMap(e){let t=0;for(let n of this.iterableIterator){let r=e(n,t++);if((0,s.isIterable)(r))for(let e of r)yield e;else for(let e of{[Symbol.iterator]:()=>r})yield e}}some(e){let t=0;for(let n of this.iterableIterator)if(e(n,t++))return!0;return!1}every(e){let t=0;for(let n of this.iterableIterator)if(!e(n,t++))return!1;return!0}find(e){let t=0;for(let n of this.iterableIterator)if(e(n,t++))return n}toArray(){return Array.from(this.iterableIterator)}[i.DisposableSymbols.dispose](){this.iterableIterator.return?.()}next(...[e]){return this.iterableIterator.next(e)}[Symbol.iterator](){return this}[Symbol.for("nodejs.util.inspect.custom")](){let e={};return this.forEach((t,n)=>{let i=(0,r.inspect)(t);e[n]=i.includes(",")?i.split(",").map(e=>e.trim()):i}),`${this[Symbol.toStringTag]} ${(0,r.inspect)(e)}`}}t.PonyfillIteratorObject=o},95431:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillReadableStream=void 0;let r=n(72254),i=n(15673),s=n(84492),o=n(76402),a=n(9913),l=n(71663);function u(e,t){let n=[],i=!1,s=!1;return{desiredSize:e,enqueue(e){let i="string"==typeof e?r.Buffer.from(e):e;s?t.push(i):n.push(i)},close(){n.length>0&&this._flush(),t.push(null),i=!0},error(e){n.length>0&&this._flush(),t.destroy(e)},get _closed(){return i},_flush(){if(s=!0,n.length>0){let e=n.length>1?r.Buffer.concat(n):n[0];t.push(e),n=[]}}}}function c(e){return e?.getReader!=null}class f{readable;constructor(e){if(e instanceof f&&null!=e.readable)this.readable=e.readable;else if(e?.read!=null)this.readable=e;else if(c(e))this.readable=s.Readable.fromWeb(e);else{let t=!1,n=!1,r=n=>{if(!t){let r=u(n,this.readable);return t=!0,(0,a.handleMaybePromise)(()=>e?.start?.(r),()=>(r._flush(),!r._closed))}return!0},i=t=>(0,a.handleMaybePromise)(()=>r(t),r=>{if(!r)return;let i=u(t,this.readable);return(0,a.handleMaybePromise)(()=>e?.pull?.(i),()=>{i._flush(),n=!1})});this.readable=new s.Readable({read(e){if(!n)return n=!0,i(e)},destroy(t,n){if(e?.cancel)try{let r=e.cancel(t);if(r?.then)return r.then(()=>{n(null)},e=>{n(e)})}catch(e){n(e);return}n(null)}})}}cancel(e){return this.readable.destroy(e),(0,i.once)(this.readable,"close")}locked=!1;getReader(e){let t=this.readable[Symbol.asyncIterator]();this.locked=!0;let n=this.readable;return{read:()=>t.next(),releaseLock:()=>{if(t.return){let e=t.return();if(e.then){e.then(()=>{this.locked=!1});return}}this.locked=!1},cancel:e=>{if(t.return){let n=t.return(e);if(n.then)return n.then(()=>{this.locked=!1})}return this.locked=!1,(0,l.fakePromise)()},get closed(){return Promise.race([(0,i.once)(n,"end"),(0,i.once)(n,"error").then(e=>Promise.reject(e))])}}}[Symbol.asyncIterator](){let e=this.readable[Symbol.asyncIterator]();return{[Symbol.asyncIterator](){return this},next:()=>e.next(),return:()=>(this.readable.destroyed||this.readable.destroy(),e.return?.()||(0,l.fakePromise)({done:!0,value:void 0})),throw:t=>(this.readable.destroyed||this.readable.destroy(t),e.throw?.(t)||(0,l.fakePromise)({done:!0,value:void 0}))}}tee(){throw Error("Not implemented")}async pipeToWriter(e){try{for await(let t of this)await e.write(t);await e.close()}catch(t){await e.abort(t)}}pipeTo(e){if(e?.writable!=null)return(0,o.pipeline)(this.readable,e.writable,{end:!0});{let t=e.getWriter();return this.pipeToWriter(t)}}pipeThrough({writable:e,readable:t}){return this.pipeTo(e).catch(e=>{this.readable.destroy(e)}),t?.readable!=null&&(t.readable.once("error",e=>this.readable.destroy(e)),t.readable.once("finish",()=>this.readable.push(null)),t.readable.once("close",()=>this.readable.push(null))),t}static[Symbol.hasInstance](e){return c(e)}static from(e){return new f(s.Readable.from(e))}[Symbol.toStringTag]="ReadableStream"}t.PonyfillReadableStream=f},77313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillRequest=void 0;let r=n(88849),i=n(22286),s=n(56892),o=n(78620),a=n(15966);class l extends s.PonyfillBody{constructor(e,t){let n,s,a;let l=null;if("string"==typeof e?n=e:e?.href!=null?s=e:"Request"===e[Symbol.toStringTag]&&(e._parsedUrl?s=e._parsedUrl:n=e._url?e._url:e.url,l=e.body,a=e),null!=t&&(l=t.body||null,a=t),super(l,a),this._url=n,this._parsedUrl=s,this.cache=a?.cache||"default",this.credentials=a?.credentials||"same-origin",this.headers=a?.headers&&(0,o.isHeadersLike)(a.headers)?a.headers:new o.PonyfillHeaders(a?.headers),this.integrity=a?.integrity||"",this.keepalive=a?.keepalive!=null&&a?.keepalive,this.method=a?.method?.toUpperCase()||"GET",this.mode=a?.mode||"cors",this.redirect=a?.redirect||"follow",this.referrer=a?.referrer||"about:client",this.referrerPolicy=a?.referrerPolicy||"no-referrer",this.headersSerializer=a?.headersSerializer,this.duplex=a?.duplex||"half",this.destination="document",this.priority="auto","GET"!==this.method&&"HEAD"!==this.method&&this.handleContentLengthHeader(!0),a?.agent!=null){let e=s?.protocol||n||this.url;!1===a.agent?this.agent=!1:e.startsWith("http:")&&a.agent instanceof r.Agent?this.agent=a.agent:e.startsWith("https:")&&a.agent instanceof i.Agent&&(this.agent=a.agent)}}headersSerializer;cache;credentials;destination;headers;integrity;keepalive;method;mode;priority;redirect;referrer;referrerPolicy;_url;get signal(){return this._signal||=new AbortController().signal,this._signal}get url(){if(null==this._url){if(this._parsedUrl)this._url=this._parsedUrl.toString();else throw TypeError("Invalid URL")}return this._url}_parsedUrl;get parsedUrl(){if(null==this._parsedUrl){if(null!=this._url)this._parsedUrl=new a.PonyfillURL(this._url,"http://localhost");else throw TypeError("Invalid URL")}return this._parsedUrl}duplex;agent;clone(){return this}[Symbol.toStringTag]="Request"}t.PonyfillRequest=l},5379:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillResponse=void 0;let r=n(88849),i=n(56892),s=n(78620),o="application/json; charset=utf-8";class a extends i.PonyfillBody{headers;constructor(e,t){super(e||null,t),this.headers=t?.headers&&(0,s.isHeadersLike)(t.headers)?t.headers:new s.PonyfillHeaders(t?.headers),this.status=t?.status||200,this.statusText=t?.statusText||r.STATUS_CODES[this.status]||"OK",this.url=t?.url||"",this.redirected=t?.redirected||!1,this.type=t?.type||"default",this.handleContentLengthHeader()}get ok(){return this.status>=200&&this.status<300}status;statusText;url;redirected;type;clone(){return this}static error(){return new a(null,{status:500,statusText:"Internal Server Error"})}static redirect(e,t=302){if(t<300||t>399)throw RangeError("Invalid status code");return new a(null,{headers:{location:e},status:t})}static json(e,t){let n=JSON.stringify(e);if(t){if(t.headers){if((0,s.isHeadersLike)(t.headers))t.headers.has("content-type")||t.headers.set("content-type",o),t.headers.has("content-length")||t.headers.set("content-length",Buffer.byteLength(n).toString());else if(Array.isArray(t.headers)){let e=!1,r=!1;for(let[n]of t.headers){if(r&&e)break;e||"content-type"!==n.toLowerCase()?r||"content-length"!==n.toLowerCase()||(r=!0):e=!0}e||t.headers.push(["content-type",o]),r||t.headers.push(["content-length",Buffer.byteLength(n).toString()])}else"object"==typeof t.headers&&(t.headers?.["content-type"]==null&&(t.headers["content-type"]=o),t.headers?.["content-length"]==null&&(t.headers["content-length"]=Buffer.byteLength(n).toString()))}else t.headers={"content-type":o,"content-length":Buffer.byteLength(n).toString()}}else t={headers:{"content-type":o,"content-length":Buffer.byteLength(n).toString()}};return new a(n,t)}[Symbol.toStringTag]="Response"}t.PonyfillResponse=a},55114:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillTextDecoder=t.PonyfillTextEncoder=void 0,t.PonyfillBtoa=function(e){return r.Buffer.from(e,"binary").toString("base64")};let r=n(72254),i=n(71663);class s{encoding;constructor(e="utf-8"){this.encoding=e}encode(e){return r.Buffer.from(e,this.encoding)}encodeInto(e,t){let n=this.encode(e).copy(t);return{read:n,written:n}}}t.PonyfillTextEncoder=s;class o{encoding;fatal=!1;ignoreBOM=!1;constructor(e="utf-8",t){this.encoding=e,t&&(this.fatal=t.fatal||!1,this.ignoreBOM=t.ignoreBOM||!1)}decode(e){return r.Buffer.isBuffer(e)?e.toString(this.encoding):(0,i.isArrayBufferView)(e)?r.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString(this.encoding):r.Buffer.from(e).toString(this.encoding)}}t.PonyfillTextDecoder=o},89329:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillTextEncoderStream=t.PonyfillTextDecoderStream=void 0;let r=n(55114),i=n(46406);class s extends i.PonyfillTransformStream{textDecoder;constructor(e,t){super({transform:(e,t)=>t.enqueue(this.textDecoder.decode(e,{stream:!0}))}),this.textDecoder=new r.PonyfillTextDecoder(e,t)}get encoding(){return this.textDecoder.encoding}get fatal(){return this.textDecoder.fatal}get ignoreBOM(){return this.textDecoder.ignoreBOM}}t.PonyfillTextDecoderStream=s;class o extends i.PonyfillTransformStream{textEncoder;constructor(e){super({transform:(e,t)=>t.enqueue(this.textEncoder.encode(e))}),this.textEncoder=new r.PonyfillTextEncoder(e)}get encoding(){return this.textEncoder.encoding}encode(e){return this.textEncoder.encode(e)}}t.PonyfillTextEncoderStream=o},46406:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillTransformStream=void 0;let r=n(84492),i=n(95431),s=n(71663),o=n(52777);class a{transform;writable;readable;constructor(e){if(e instanceof r.Transform)this.transform=e;else if(e){let t={enqueue(e){n.push(e)},error(e){n.destroy(e)},terminate(){(0,s.endStream)(n)},get desiredSize(){return n.writableLength}},n=new r.Transform({read(){},write(n,r,i){try{let r=e.transform?.(n,t);r instanceof Promise?r.then(()=>{i()},e=>{i(e)}):i()}catch(e){i(e)}},final(n){try{let r=e.flush?.(t);r instanceof Promise?r.then(()=>{n()},e=>{n(e)}):n()}catch(e){n(e)}}});this.transform=n}else this.transform=new r.Transform;this.writable=new o.PonyfillWritableStream(this.transform),this.readable=new i.PonyfillReadableStream(this.transform)}}t.PonyfillTransformStream=a},15966:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillURL=void 0;let r=n(82174).__importDefault(n(72254)),i=n(6005),s=globalThis.URL;class o extends s{static blobRegistry=new Map;static createObjectURL(e){let t=`blob:whatwgnode:${(0,i.randomUUID)()}`;return this.blobRegistry.set(t,e),t}static revokeObjectURL(e){this.blobRegistry.has(e)?this.blobRegistry.delete(e):s.revokeObjectURL(e)}static getBlobFromURL(e){return this.blobRegistry.get(e)||r.default?.resolveObjectURL?.(e)}}t.PonyfillURL=o},83978:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillURLSearchParams=void 0,t.PonyfillURLSearchParams=globalThis.URLSearchParams},52777:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PonyfillWritableStream=void 0;let r=n(15673),i=n(84492),s=n(9913),o=n(71663);class a{writable;constructor(e){if(e instanceof i.Writable)this.writable=e;else if(e){let t=new i.Writable({write(t,n,i){try{let n=e.write?.(t,r);n instanceof Promise?n.then(()=>{i()},e=>{i(e)}):i()}catch(e){i(e)}},final(t){let n=e.close?.();n instanceof Promise?n.then(()=>{t()},e=>{t(e)}):t()}});this.writable=t;let n=new AbortController,r={signal:n.signal,error(e){t.destroy(e)}};t.once("error",e=>n.abort(e)),t.once("close",()=>n.abort())}else this.writable=new i.Writable}getWriter(){let e=this.writable;return{get closed(){return(0,r.once)(e,"close")},get desiredSize(){return e.writableLength},get ready(){return(0,r.once)(e,"drain")},releaseLock(){},write(t){let n=(0,o.fakePromise)();return null==t?n:n.then(()=>(0,o.safeWrite)(t,e))},close:()=>!e.errored&&e.closed?(0,o.fakePromise)():e.errored?(0,s.fakeRejectPromise)(e.errored):(0,o.fakePromise)().then(()=>(0,o.endStream)(e)),abort:t=>(e.destroy(t),(0,r.once)(e,"close"))}}close(){return!this.writable.errored&&this.writable.closed?(0,o.fakePromise)():this.writable.errored?(0,s.fakeRejectPromise)(this.writable.errored):(0,o.fakePromise)().then(()=>(0,o.endStream)(this.writable))}abort(e){return this.writable.destroy(e),(0,r.once)(this.writable,"close")}locked=!1}t.PonyfillWritableStream=a},65377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchPonyfill=function e(t,n){if("string"==typeof t||null!=t&&null!=t.href)return e(new l.PonyfillRequest(t,n));if(t.url.startsWith("data:")){let e=function(e){let[t="text/plain",...n]=e.substring(5).split(","),i=decodeURIComponent(n.join(","));if(t.endsWith(h)){let e=r.Buffer.from(i,"base64url"),n=t.slice(0,-h.length);return new u.PonyfillResponse(e,{status:200,statusText:"OK",headers:{"content-type":n}})}return new u.PonyfillResponse(i,{status:200,statusText:"OK",headers:{"content-type":t}})}(t.url);return(0,f.fakePromise)(e)}if(t.url.startsWith("file:"))return d(t.url);if(t.url.startsWith("blob:")){let e=function(e){let t=c.PonyfillURL.getBlobFromURL(e);if(!t)throw TypeError("Invalid Blob URL");return new u.PonyfillResponse(t,{status:200,headers:{"content-type":t.type,"content-length":t.size.toString()}})}(t.url);return(0,f.fakePromise)(e)}return globalThis.libcurl&&!t.agent?(0,o.fetchCurl)(t):(0,a.fetchNodeHttp)(t)};let r=n(72254),i=n(87561),s=n(41041),o=n(27078),a=n(62565),l=n(77313),u=n(5379),c=n(15966),f=n(71663),h=";base64";async function d(e){let t=(0,s.fileURLToPath)(e);try{await i.promises.access(t,i.promises.constants.R_OK);let e=await i.promises.stat(t,{bigint:!0}),n=(0,i.createReadStream)(t);return new u.PonyfillResponse(n,{status:200,statusText:"OK",headers:{"content-type":"application/octet-stream","last-modified":e.mtime.toUTCString()}})}catch(e){if("ENOENT"===e.code)return new u.PonyfillResponse(null,{status:404,statusText:"Not Found"});if("EACCES"===e.code)return new u.PonyfillResponse(null,{status:403,statusText:"Forbidden"});throw e}}},27078:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchCurl=function(e){let t,n,l;let{Curl:u,CurlFeature:c,CurlPause:f,CurlProgressFunc:h}=globalThis.libcurl,d=new u;if(d.enable(c.NoDataParsing),d.setOpt("URL",e.url),"0"===process.env.NODE_TLS_REJECT_UNAUTHORIZED&&d.setOpt("SSL_VERIFYPEER",!1),process.env.NODE_EXTRA_CA_CERTS?d.setOpt("CAINFO",process.env.NODE_EXTRA_CA_CERTS):d.setOpt("CAINFO_BLOB",i.rootCertificates.join("\n")),d.enable(c.StreamResponse),null===e._signal?t=void 0:e._signal&&(t=e._signal),d.setStreamProgressCallback(function(){return t?.aborted?process.env.DEBUG?h.Continue:1:0}),"String"===e.bodyType)d.setOpt("POSTFIELDS",e.bodyInit);else{let t=null!=e.body?(0,a.isNodeReadable)(e.body)?e.body:r.Readable.from(e.body):null;t&&(d.setOpt("UPLOAD",!0),d.setUploadStream(t))}process.env.DEBUG&&d.setOpt("VERBOSE",!0),d.setOpt("TRANSFER_ENCODING",!1),d.setOpt("HTTP_TRANSFER_DECODING",!0),d.setOpt("FOLLOWLOCATION","follow"===e.redirect),d.setOpt("MAXREDIRS",20),d.setOpt("ACCEPT_ENCODING",""),d.setOpt("CUSTOMREQUEST",e.method);let p=(e.headersSerializer||a.defaultHeadersSerializer)(e.headers,e=>{n=Number(e)});null!=n&&d.setOpt("INFILESIZE",n),d.setOpt("HTTPHEADER",p),d.enable(c.NoHeaderParsing);let m=(0,s.createDeferredPromise)();function y(){if(d.isOpen)try{d.pause(f.Recv)}catch(e){m.reject(e)}}return t?.addEventListener("abort",y,{once:!0}),d.once("end",function(){try{d.close()}catch(e){m.reject(e)}t?.removeEventListener("abort",y)}),d.once("error",function(e){!l||l.closed||l.destroyed?("Operation was aborted by an application callback"===e.message&&(e.message="The operation was aborted."),m.reject(e)):l.destroy(e);try{d.close()}catch(e){m.reject(e)}}),d.once("stream",function(t,n,i){let s=t.pipe(new r.PassThrough,{end:!0}),c=i.toString("utf8").split(/\r?\n|\r/g).filter(r=>!!r&&!r.startsWith("HTTP/")&&("error"===e.redirect&&r.toLowerCase().includes("location")&&(0,a.shouldRedirect)(n)&&(t.destroyed||t.resume(),s.destroy(),m.reject(Error("redirect is not allowed"))),!0)).map(e=>e.split(/:\s(.+)/).slice(0,2)),f=new o.PonyfillResponse(s,{status:n,headers:c,url:d.getInfo(u.info.REDIRECT_URL)?.toString()||e.url,redirected:Number(d.getInfo(u.info.REDIRECT_COUNT))>0});m.resolve(f),l=s}),setImmediate(()=>{d.perform()}),m.promise};let r=n(84492),i=n(31764),s=n(9913),o=n(5379),a=n(71663)},62565:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchNodeHttp=function e(t){return new Promise((n,h)=>{try{let d,p;let m=function(e){if(e.startsWith("http:"))return r.request;if(e.startsWith("https:"))return i.request;throw Error(`Unsupported protocol: ${e.split(":")[0]||e}`)}(t.parsedUrl?.protocol||t.url),y=(t.headersSerializer||f.getHeadersObj)(t.headers);if(null==y["accept-encoding"]&&(y["accept-encoding"]="gzip, deflate, br"),null==t._signal?d=void 0:t._signal&&(d=t._signal),(p=m(t.parsedUrl?t.parsedUrl:t.url,{method:t.method,headers:y,signal:d,agent:t.agent})).once("error",h),p.once("response",i=>{let a;switch(i.headers["content-encoding"]){case"x-gzip":case"gzip":a=(0,o.createGunzip)();break;case"x-deflate":case"deflate":a=(0,o.createInflate)();break;case"x-deflate-raw":case"deflate-raw":a=(0,o.createInflateRaw)();break;case"br":a=(0,o.createBrotliDecompress)()}if(i.headers.location&&(0,f.shouldRedirect)(i.statusCode)){if("error"===t.redirect){let e=Error("Redirects are not allowed");h(e),i.resume();return}if("follow"===t.redirect){let r=new c.PonyfillURL(i.headers.location,t.parsedUrl||t.url),s=e(new l.PonyfillRequest(r,t));n(s.then(e=>(e.redirected=!0,e))),i.resume();return}}a||=new s.PassThrough,(0,f.pipeThrough)({src:i,dest:a,signal:d,onError:e=>{i.destroyed||i.destroy(e),a.destroyed||a.destroy(e),h(e)}});let p=i.statusCode||200,m=i.statusMessage||r.STATUS_CODES[p];null==m&&(m="");let y=new u.PonyfillResponse(a||i,{status:p,statusText:m,headers:i.headers,url:t.url,signal:d});n(y)}),null!=t._buffer)(0,a.handleMaybePromise)(()=>(0,f.safeWrite)(t._buffer,p),()=>(0,f.endStream)(p),h);else{let e=null!=t.body?(0,f.isNodeReadable)(t.body)?t.body:s.Readable.from(t.body):null;e?e.pipe(p):(0,f.endStream)(p)}}catch(e){h(e)}})};let r=n(88849),i=n(22286),s=n(84492),o=n(65628),a=n(9913),l=n(77313),u=n(5379),c=n(15966),f=n(71663)},31242:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoderStream=t.TextDecoderStream=t.IteratorObject=t.DecompressionStream=t.CompressionStream=t.TransformStream=t.WritableStream=t.URLSearchParams=t.URL=t.btoa=t.TextDecoder=t.TextEncoder=t.Blob=t.FormData=t.File=t.ReadableStream=t.Response=t.Request=t.Body=t.Headers=t.fetch=void 0;var r=n(65377);Object.defineProperty(t,"fetch",{enumerable:!0,get:function(){return r.fetchPonyfill}});var i=n(78620);Object.defineProperty(t,"Headers",{enumerable:!0,get:function(){return i.PonyfillHeaders}});var s=n(56892);Object.defineProperty(t,"Body",{enumerable:!0,get:function(){return s.PonyfillBody}});var o=n(77313);Object.defineProperty(t,"Request",{enumerable:!0,get:function(){return o.PonyfillRequest}});var a=n(5379);Object.defineProperty(t,"Response",{enumerable:!0,get:function(){return a.PonyfillResponse}});var l=n(95431);Object.defineProperty(t,"ReadableStream",{enumerable:!0,get:function(){return l.PonyfillReadableStream}});var u=n(99895);Object.defineProperty(t,"File",{enumerable:!0,get:function(){return u.PonyfillFile}});var c=n(2944);Object.defineProperty(t,"FormData",{enumerable:!0,get:function(){return c.PonyfillFormData}});var f=n(7770);Object.defineProperty(t,"Blob",{enumerable:!0,get:function(){return f.PonyfillBlob}});var h=n(55114);Object.defineProperty(t,"TextEncoder",{enumerable:!0,get:function(){return h.PonyfillTextEncoder}}),Object.defineProperty(t,"TextDecoder",{enumerable:!0,get:function(){return h.PonyfillTextDecoder}}),Object.defineProperty(t,"btoa",{enumerable:!0,get:function(){return h.PonyfillBtoa}});var d=n(15966);Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return d.PonyfillURL}});var p=n(83978);Object.defineProperty(t,"URLSearchParams",{enumerable:!0,get:function(){return p.PonyfillURLSearchParams}});var m=n(52777);Object.defineProperty(t,"WritableStream",{enumerable:!0,get:function(){return m.PonyfillWritableStream}});var y=n(46406);Object.defineProperty(t,"TransformStream",{enumerable:!0,get:function(){return y.PonyfillTransformStream}});var g=n(54012);Object.defineProperty(t,"CompressionStream",{enumerable:!0,get:function(){return g.PonyfillCompressionStream}});var b=n(20958);Object.defineProperty(t,"DecompressionStream",{enumerable:!0,get:function(){return b.PonyfillDecompressionStream}});var v=n(73629);Object.defineProperty(t,"IteratorObject",{enumerable:!0,get:function(){return v.PonyfillIteratorObject}});var _=n(89329);Object.defineProperty(t,"TextDecoderStream",{enumerable:!0,get:function(){return _.PonyfillTextDecoderStream}}),Object.defineProperty(t,"TextEncoderStream",{enumerable:!0,get:function(){return _.PonyfillTextEncoderStream}})},71663:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fakePromise=void 0,t.getHeadersObj=function(e){return null!=e&&i(e)?!e.headersInit||e._map||i(e.headersInit)?Object.fromEntries(e.entries()):e.headersInit:e},t.defaultHeadersSerializer=function(e,t){let n=[];return e.forEach((e,r)=>{t&&"content-length"===r&&t(e),n.push(`${r}: ${e}`)}),n},t.isArrayBufferView=function(e){return null!=e&&null!=e.buffer&&null!=e.byteLength&&null!=e.byteOffset},t.isNodeReadable=function(e){return null!=e&&null!=e.pipe},t.isIterable=function(e){return e?.[Symbol.iterator]!=null},t.shouldRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},t.pipeThrough=function({src:e,dest:t,signal:n,onError:r}){if(r&&t.once("error",r),e.once("error",e=>{t.destroy(e)}),t.once("close",()=>{e.destroyed||e.destroy()}),n){let t=new WeakRef(e),r=new WeakRef(n);function i(){r.deref()?.removeEventListener("abort",s),t.deref()?.removeListener("end",i),t.deref()?.removeListener("error",i),t.deref()?.removeListener("close",i)}function s(){t.deref()?.destroy(new o),i()}n.addEventListener("abort",s,{once:!0}),e.once("end",i),e.once("error",i),e.once("close",i)}e.pipe(t,{end:!0})},t.endStream=function(e){return e.end(null,null,null)},t.safeWrite=function(e,t){if(!t.write(e))return(0,r.once)(t,"drain")};let r=n(15673);function i(e){return e?.forEach!=null}var s=n(9913);Object.defineProperty(t,"fakePromise",{enumerable:!0,get:function(){return s.fakePromise}});class o extends Error{constructor(e="The operation was aborted",t){super(e,t),this.name="AbortError"}}},9913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=r,t.isActualPromise=i,t.handleMaybePromise=s,t.fakePromise=o,t.createDeferredPromise=function(){let e,t;return Promise.withResolvers?Promise.withResolvers():{promise:new Promise(function(n,r){e=n,t=r}),get resolve(){return e},get reject(){return t}}},t.iterateAsync=a,t.iterateAsyncVoid=a,t.fakeRejectPromise=l,t.mapMaybePromise=function(e,t,n){return s(()=>e,t,n)},t.mapAsyncIterator=function(e,t,n,r){let i,a,c,f;if(Symbol.asyncIterator in e&&(e=e[Symbol.asyncIterator]()),r){let e;c=t=>e||=s(r,()=>t,()=>t)}function h(e){return e.done?c?c(e):e:s(()=>e.value,e=>s(()=>t(e),u,a))}if("function"==typeof e.return&&(i=e.return,a=t=>{let n=()=>{throw t};return i.call(e).then(n,n)}),n){let e;f=t=>e||=s(()=>t,e=>s(()=>n(e),u,a))}return{next:()=>e.next().then(h,f),return(){let t=i?i.call(e).then(h,f):o({value:void 0,done:!0});return c?t.then(c):t},throw:t=>"function"==typeof e.throw?e.throw(t).then(h,f):a?a(t):l(t),[Symbol.asyncIterator](){return this}}},t.promiseLikeFinally=c,t.unfakePromise=f;let n=Symbol.for("@whatwg-node/promise-helpers/FakePromise");function r(e){return e?.then!=null}function i(e){return e&&e.then&&e.catch&&e.finally}function s(e,t,n,r){let i=o().then(e).then(t,n);return r&&(i=i.finally(r)),f(i)}function o(e){return e&&i(e)?e:r(e)?{then:(t,n)=>o(e.then(t,n)),catch:t=>o(e.then(e=>e,t)),finally:t=>o(t?c(e,t):e),[Symbol.toStringTag]:"Promise"}:{then(t){if(t)try{return o(t(e))}catch(e){return l(e)}return this},catch(){return this},finally(t){if(t)try{return o(t()).then(()=>e,()=>e)}catch(e){return l(e)}return this},[Symbol.toStringTag]:"Promise",__fakePromiseValue:e,[n]:"resolved"}}function a(e,t,n){if(e?.length===0)return;let r=e[Symbol.iterator](),i=0;return function e(){let{done:o,value:a}=r.next();if(o)return;let l=!1;function u(){l=!0}return s(function(){return t(a,u,i++)},function(t){if(t&&n?.push(t),!l)return e()})}()}function l(e){return{then(t,n){if(n)try{return o(n(e))}catch(e){return l(e)}return this},catch(t){if(t)try{return o(t(e))}catch(e){return l(e)}return this},finally(e){if(e)try{e()}catch(e){return l(e)}return this},__fakeRejectError:e,[Symbol.toStringTag]:"Promise",[n]:"rejected"}}function u(e){return{value:e,done:!1}}function c(e,t){return"finally"in e?e.finally(t):e.then(e=>{let n=t();return r(n)?n.then(()=>e):e},e=>{let n=t();if(r(n))return n.then(()=>{throw e});throw e})}function f(e){if(e?.[n]==="resolved")return e.__fakePromiseValue;if(e?.[n]==="rejected")throw e.__fakeRejectError;return e}},7492:e=>{"use strict";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s=(e,n)=>t(e,"name",{value:n,configurable:!0}),o={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(o,{URLPattern:()=>ee}),e.exports=((e,s,o,a)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let l of r(s))i.call(e,l)||l===o||t(e,l,{get:()=>s[l],enumerable:!(a=n(s,l))||a.enumerable});return e})(t({},"__esModule",{value:!0}),o);var a=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(e,t,n,r,i,s){this.type=e,this.name=t,this.prefix=n,this.value=r,this.suffix=i,this.modifier=s}hasCustomName(){return""!==this.name&&"number"!=typeof this.name}};s(a,"Part");var l=/[$_\p{ID_Start}]/u,u=/[$_\u200C\u200D\p{ID_Continue}]/u;function c(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}function f(e,t=!1){let n=[],r=0;for(;r<e.length;){let i=e[r],o=s(function(i){if(!t)throw TypeError(i);n.push({type:"INVALID_CHAR",index:r,value:e[r++]})},"ErrorOrInvalid");if("*"===i){n.push({type:"ASTERISK",index:r,value:e[r++]});continue}if("+"===i||"?"===i){n.push({type:"OTHER_MODIFIER",index:r,value:e[r++]});continue}if("\\"===i){n.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if("{"===i){n.push({type:"OPEN",index:r,value:e[r++]});continue}if("}"===i){n.push({type:"CLOSE",index:r,value:e[r++]});continue}if(":"===i){let t="",i=r+1;for(;i<e.length;){let n=e.substr(i,1);if(i===r+1&&l.test(n)||i!==r+1&&u.test(n)){t+=e[i++];continue}break}if(!t){o(`Missing parameter name at ${r}`);continue}n.push({type:"NAME",index:r,value:t}),r=i;continue}if("("===i){let t=1,i="",s=r+1,a=!1;if("?"===e[s]){o(`Pattern cannot start with "?" at ${s}`);continue}for(;s<e.length;){if(!c(e[s],!1)){o(`Invalid character '${e[s]}' at ${s}.`),a=!0;break}if("\\"===e[s]){i+=e[s++]+e[s++];continue}if(")"===e[s]){if(0==--t){s++;break}}else if("("===e[s]&&(t++,"?"!==e[s+1])){o(`Capturing groups are not allowed at ${s}`),a=!0;break}i+=e[s++]}if(a)continue;if(t){o(`Unbalanced pattern at ${r}`);continue}if(!i){o(`Missing pattern at ${r}`);continue}n.push({type:"REGEX",index:r,value:i}),r=s;continue}n.push({type:"CHAR",index:r,value:e[r++]})}return n.push({type:"END",index:r,value:""}),n}function h(e,t={}){let n=f(e);t.delimiter??="/#?",t.prefixes??="./";let r=`[^${d(t.delimiter)}]+?`,i=[],o=0,l=0,u=new Set,c=s(e=>{if(l<n.length&&n[l].type===e)return n[l++].value},"tryConsume"),h=s(()=>c("OTHER_MODIFIER")??c("ASTERISK"),"tryConsumeModifier"),p=s(e=>{let t=c(e);if(void 0!==t)return t;let{type:r,index:i}=n[l];throw TypeError(`Unexpected ${r} at ${i}, expected ${e}`)},"mustConsume"),m=s(()=>{let e="",t;for(;t=c("CHAR")??c("ESCAPED_CHAR");)e+=t;return e},"consumeText"),y=s(e=>e,"DefaultEncodePart"),g=t.encodePart||y,b="",v=s(e=>{b+=e},"appendToPendingFixedValue"),_=s(()=>{b.length&&(i.push(new a(3,"","",g(b),"",3)),b="")},"maybeAddPartFromPendingFixedValue"),E=s((e,t,n,s,l)=>{let c,f,h=3;switch(l){case"?":h=1;break;case"*":h=0;break;case"+":h=2}if(!t&&!n&&3===h){v(e);return}if(_(),!t&&!n){if(!e)return;i.push(new a(3,"","",g(e),"",h));return}let d=2;if((c=n?"*"===n?".*":n:r)===r?(d=1,c=""):".*"===c&&(d=0,c=""),t?f=t:n&&(f=o++),u.has(f))throw TypeError(`Duplicate name '${f}'.`);u.add(f),i.push(new a(d,f,g(e),c,g(s),h))},"addPart");for(;l<n.length;){let e=c("CHAR"),n=c("NAME"),r=c("REGEX");if(n||r||(r=c("ASTERISK")),n||r){let i=e??"";-1===t.prefixes.indexOf(i)&&(v(i),i=""),_(),E(i,n,r,"",h());continue}let i=e??c("ESCAPED_CHAR");if(i){v(i);continue}if(c("OPEN")){let e=m(),t=c("NAME"),n=c("REGEX");t||n||(n=c("ASTERISK"));let r=m();p("CLOSE"),E(e,t,n,r,h());continue}_(),p("END")}return i}function d(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function p(e){return e&&e.ignoreCase?"ui":"u"}function m(e,t,n){return g(h(e,n),t,n)}function y(e){switch(e){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}function g(e,t,n={}){n.delimiter??="/#?",n.prefixes??="./",n.sensitive??=!1,n.strict??=!1,n.end??=!0,n.start??=!0,n.endsWith="";let r=n.start?"^":"";for(let i of e){if(3===i.type){3===i.modifier?r+=d(i.value):r+=`(?:${d(i.value)})${y(i.modifier)}`;continue}t&&t.push(i.name);let e=`[^${d(n.delimiter)}]+?`,s=i.value;if(1===i.type?s=e:0===i.type&&(s=".*"),!i.prefix.length&&!i.suffix.length){3===i.modifier||1===i.modifier?r+=`(${s})${y(i.modifier)}`:r+=`((?:${s})${y(i.modifier)})`;continue}if(3===i.modifier||1===i.modifier){r+=`(?:${d(i.prefix)}(${s})${d(i.suffix)})`+y(i.modifier);continue}r+=`(?:${d(i.prefix)}((?:${s})(?:`+d(i.suffix)+d(i.prefix)+`(?:${s}))*)${d(i.suffix)})`,0===i.modifier&&(r+="?")}let i=`[${d(n.endsWith)}]|$`,s=`[${d(n.delimiter)}]`;if(n.end)return n.strict||(r+=`${s}?`),n.endsWith.length?r+=`(?=${i})`:r+="$",new RegExp(r,p(n));n.strict||(r+=`(?:${s}(?=${i}))?`);let o=!1;if(e.length){let t=e[e.length-1];3===t.type&&3===t.modifier&&(o=n.delimiter.indexOf(t)>-1)}return o||(r+=`(?=${s}|${i})`),new RegExp(r,p(n))}s(c,"isASCII"),s(f,"lexer"),s(h,"parse"),s(d,"escapeString"),s(p,"flags"),s(m,"stringToRegexp"),s(y,"modifierToString"),s(g,"partsToRegexp");var b={delimiter:"",prefixes:"",sensitive:!0,strict:!0},v={delimiter:".",prefixes:"",sensitive:!0,strict:!0},_={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function E(e,t){return!!e.length&&("/"===e[0]||!!t&&!(e.length<2)&&("\\"==e[0]||"{"==e[0])&&"/"==e[1])}function T(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function S(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}function I(e){return!!e&&!(e.length<2)&&("["===e[0]||("\\"===e[0]||"{"===e[0])&&"["===e[1])}s(E,"isAbsolutePathname"),s(T,"maybeStripPrefix"),s(S,"maybeStripSuffix"),s(I,"treatAsIPv6Hostname");var N=["ftp","file","http","https","ws","wss"];function O(e){if(!e)return!0;for(let t of N)if(e.test(t))return!0;return!1}function x(e,t){if(e=T(e,"#"),t||""===e)return e;let n=new URL("https://example.com");return n.hash=e,n.hash?n.hash.substring(1,n.hash.length):""}function w(e,t){if(e=T(e,"?"),t||""===e)return e;let n=new URL("https://example.com");return n.search=e,n.search?n.search.substring(1,n.search.length):""}function k(e,t){return t||""===e?e:I(e)?$(e):U(e)}function A(e,t){if(t||""===e)return e;let n=new URL("https://example.com");return n.password=e,n.password}function D(e,t){if(t||""===e)return e;let n=new URL("https://example.com");return n.username=e,n.username}function P(e,t,n){if(n||""===e)return e;if(t&&!N.includes(t))return new URL(`${t}:${e}`).pathname;let r="/"==e[0];return e=new URL(r?e:"/-"+e,"https://example.com").pathname,r||(e=e.substring(2,e.length)),e}function R(e,t,n){return L(t)===e&&(e=""),n||""===e?e:B(e)}function C(e,t){return e=S(e,":"),t||""===e?e:F(e)}function L(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function F(e){if(""===e)return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw TypeError(`Invalid protocol '${e}'.`)}function j(e){if(""===e)return e;let t=new URL("https://example.com");return t.username=e,t.username}function M(e){if(""===e)return e;let t=new URL("https://example.com");return t.password=e,t.password}function U(e){if(""===e)return e;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e))throw TypeError(`Invalid hostname '${e}'`);let t=new URL("https://example.com");return t.hostname=e,t.hostname}function $(e){if(""===e)return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function B(e){if(""===e||/^[0-9]*$/.test(e)&&65535>=parseInt(e))return e;throw TypeError(`Invalid port '${e}'.`)}function V(e){if(""===e)return e;let t=new URL("https://example.com");return t.pathname="/"!==e[0]?"/-"+e:e,"/"!==e[0]?t.pathname.substring(2,t.pathname.length):t.pathname}function q(e){return""===e?e:new URL(`data:${e}`).pathname}function z(e){if(""===e)return e;let t=new URL("https://example.com");return t.search=e,t.search.substring(1,t.search.length)}function G(e){if(""===e)return e;let t=new URL("https://example.com");return t.hash=e,t.hash.substring(1,t.hash.length)}s(O,"isSpecialScheme"),s(x,"canonicalizeHash"),s(w,"canonicalizeSearch"),s(k,"canonicalizeHostname"),s(A,"canonicalizePassword"),s(D,"canonicalizeUsername"),s(P,"canonicalizePathname"),s(R,"canonicalizePort"),s(C,"canonicalizeProtocol"),s(L,"defaultPortForProtocol"),s(F,"protocolEncodeCallback"),s(j,"usernameEncodeCallback"),s(M,"passwordEncodeCallback"),s(U,"hostnameEncodeCallback"),s($,"ipv6HostnameEncodeCallback"),s(B,"portEncodeCallback"),s(V,"standardURLPathnameEncodeCallback"),s(q,"pathURLPathnameEncodeCallback"),s(z,"searchEncodeCallback"),s(G,"hashEncodeCallback");var Y=class{#q;#z=[];#G={};#Y=0;#H=1;#W=0;#J=0;#Q=0;#K=0;#X=!1;constructor(e){this.#q=e}get result(){return this.#G}parse(){for(this.#z=f(this.#q,!0);this.#Y<this.#z.length;this.#Y+=this.#H){if(this.#H=1,"END"===this.#z[this.#Y].type){if(0===this.#J){this.#Z(),this.#ee()?this.#et(9,1):this.#en()?this.#et(8,1):this.#et(7,0);continue}if(2===this.#J){this.#er(5);continue}this.#et(10,0);break}if(this.#Q>0){if(!this.#ei())continue;this.#Q-=1}if(this.#es()){this.#Q+=1;continue}switch(this.#J){case 0:this.#eo()&&this.#er(1);break;case 1:if(this.#eo()){this.#ea();let e=7,t=1;this.#el()?(e=2,t=3):this.#X&&(e=2),this.#et(e,t)}break;case 2:this.#eu()?this.#er(3):(this.#ec()||this.#en()||this.#ee())&&this.#er(5);break;case 3:this.#ef()?this.#et(4,1):this.#eu()&&this.#et(5,1);break;case 4:this.#eu()&&this.#et(5,1);break;case 5:this.#eh()?this.#K+=1:this.#ed()&&(this.#K-=1),this.#ep()&&!this.#K?this.#et(6,1):this.#ec()?this.#et(7,0):this.#en()?this.#et(8,1):this.#ee()&&this.#et(9,1);break;case 6:this.#ec()?this.#et(7,0):this.#en()?this.#et(8,1):this.#ee()&&this.#et(9,1);break;case 7:this.#en()?this.#et(8,1):this.#ee()&&this.#et(9,1);break;case 8:this.#ee()&&this.#et(9,1)}}void 0!==this.#G.hostname&&void 0===this.#G.port&&(this.#G.port="")}#et(e,t){switch(this.#J){case 0:case 2:break;case 1:this.#G.protocol=this.#em();break;case 3:this.#G.username=this.#em();break;case 4:this.#G.password=this.#em();break;case 5:this.#G.hostname=this.#em();break;case 6:this.#G.port=this.#em();break;case 7:this.#G.pathname=this.#em();break;case 8:this.#G.search=this.#em();break;case 9:this.#G.hash=this.#em()}0!==this.#J&&10!==e&&([1,2,3,4].includes(this.#J)&&[6,7,8,9].includes(e)&&(this.#G.hostname??=""),[1,2,3,4,5,6].includes(this.#J)&&[8,9].includes(e)&&(this.#G.pathname??=this.#X?"/":""),[1,2,3,4,5,6,7].includes(this.#J)&&9===e&&(this.#G.search??="")),this.#ey(e,t)}#ey(e,t){this.#J=e,this.#W=this.#Y+t,this.#Y+=t,this.#H=0}#Z(){this.#Y=this.#W,this.#H=0}#er(e){this.#Z(),this.#J=e}#eg(e){return e<0&&(e=this.#z.length-e),e<this.#z.length?this.#z[e]:this.#z[this.#z.length-1]}#eb(e,t){let n=this.#eg(e);return n.value===t&&("CHAR"===n.type||"ESCAPED_CHAR"===n.type||"INVALID_CHAR"===n.type)}#eo(){return this.#eb(this.#Y,":")}#el(){return this.#eb(this.#Y+1,"/")&&this.#eb(this.#Y+2,"/")}#eu(){return this.#eb(this.#Y,"@")}#ef(){return this.#eb(this.#Y,":")}#ep(){return this.#eb(this.#Y,":")}#ec(){return this.#eb(this.#Y,"/")}#en(){if(this.#eb(this.#Y,"?"))return!0;if("?"!==this.#z[this.#Y].value)return!1;let e=this.#eg(this.#Y-1);return"NAME"!==e.type&&"REGEX"!==e.type&&"CLOSE"!==e.type&&"ASTERISK"!==e.type}#ee(){return this.#eb(this.#Y,"#")}#es(){return"OPEN"==this.#z[this.#Y].type}#ei(){return"CLOSE"==this.#z[this.#Y].type}#eh(){return this.#eb(this.#Y,"[")}#ed(){return this.#eb(this.#Y,"]")}#em(){let e=this.#z[this.#Y],t=this.#eg(this.#W).index;return this.#q.substring(t,e.index)}#ea(){let e={};Object.assign(e,b),e.encodePart=F;let t=m(this.#em(),void 0,e);this.#X=O(t)}};s(Y,"Parser");var H=["protocol","username","password","hostname","port","pathname","search","hash"];function W(e,t){if("string"!=typeof e)throw TypeError("parameter 1 is not of type 'string'.");let n=new URL(e,t);return{protocol:n.protocol.substring(0,n.protocol.length-1),username:n.username,password:n.password,hostname:n.hostname,port:n.port,pathname:n.pathname,search:""!==n.search?n.search.substring(1,n.search.length):void 0,hash:""!==n.hash?n.hash.substring(1,n.hash.length):void 0}}function J(e,t){return t?K(e):e}function Q(e,t,n){let r;if("string"==typeof t.baseURL)try{r=new URL(t.baseURL),void 0===t.protocol&&(e.protocol=J(r.protocol.substring(0,r.protocol.length-1),n)),n||void 0!==t.protocol||void 0!==t.hostname||void 0!==t.port||void 0!==t.username||(e.username=J(r.username,n)),n||void 0!==t.protocol||void 0!==t.hostname||void 0!==t.port||void 0!==t.username||void 0!==t.password||(e.password=J(r.password,n)),void 0===t.protocol&&void 0===t.hostname&&(e.hostname=J(r.hostname,n)),void 0===t.protocol&&void 0===t.hostname&&void 0===t.port&&(e.port=J(r.port,n)),void 0===t.protocol&&void 0===t.hostname&&void 0===t.port&&void 0===t.pathname&&(e.pathname=J(r.pathname,n)),void 0===t.protocol&&void 0===t.hostname&&void 0===t.port&&void 0===t.pathname&&void 0===t.search&&(e.search=J(r.search.substring(1,r.search.length),n)),void 0===t.protocol&&void 0===t.hostname&&void 0===t.port&&void 0===t.pathname&&void 0===t.search&&void 0===t.hash&&(e.hash=J(r.hash.substring(1,r.hash.length),n))}catch{throw TypeError(`invalid baseURL '${t.baseURL}'.`)}if("string"==typeof t.protocol&&(e.protocol=C(t.protocol,n)),"string"==typeof t.username&&(e.username=D(t.username,n)),"string"==typeof t.password&&(e.password=A(t.password,n)),"string"==typeof t.hostname&&(e.hostname=k(t.hostname,n)),"string"==typeof t.port&&(e.port=R(t.port,e.protocol,n)),"string"==typeof t.pathname){if(e.pathname=t.pathname,r&&!E(e.pathname,n)){let t=r.pathname.lastIndexOf("/");t>=0&&(e.pathname=J(r.pathname.substring(0,t+1),n)+e.pathname)}e.pathname=P(e.pathname,e.protocol,n)}return"string"==typeof t.search&&(e.search=w(t.search,n)),"string"==typeof t.hash&&(e.hash=x(t.hash,n)),e}function K(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function X(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function Z(e,t){t.delimiter??="/#?",t.prefixes??="./",t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith="";let n=`[^${X(t.delimiter)}]+?`,r=/[$_\u200C\u200D\p{ID_Continue}]/u,i="";for(let s=0;s<e.length;++s){let o=e[s];if(3===o.type){if(3===o.modifier){i+=K(o.value);continue}i+=`{${K(o.value)}}${y(o.modifier)}`;continue}let a=o.hasCustomName(),l=!!o.suffix.length||!!o.prefix.length&&(1!==o.prefix.length||!t.prefixes.includes(o.prefix)),u=s>0?e[s-1]:null,c=s<e.length-1?e[s+1]:null;if(!l&&a&&1===o.type&&3===o.modifier&&c&&!c.prefix.length&&!c.suffix.length){if(3===c.type){let e=c.value.length>0?c.value[0]:"";l=r.test(e)}else l=!c.hasCustomName()}if(!l&&!o.prefix.length&&u&&3===u.type){let e=u.value[u.value.length-1];l=t.prefixes.includes(e)}l&&(i+="{"),i+=K(o.prefix),a&&(i+=`:${o.name}`),2===o.type?i+=`(${o.value})`:1===o.type?a||(i+=`(${n})`):0===o.type&&(a||u&&3!==u.type&&3===u.modifier&&!l&&""===o.prefix?i+="(.*)":i+="*"),1===o.type&&a&&o.suffix.length&&r.test(o.suffix[0])&&(i+="\\"),i+=K(o.suffix),l&&(i+="}"),3!==o.modifier&&(i+=y(o.modifier))}return i}s(W,"extractValues"),s(J,"processBaseURLString"),s(Q,"applyInit"),s(K,"escapePatternString"),s(X,"escapeRegexpString"),s(Z,"partsToPattern");var ee=class{#q;#z={};#G={};#Y={};#H={};#W=!1;constructor(e={},t,n){try{let r,i;if("string"==typeof t?r=t:n=t,"string"==typeof e){let t=new Y(e);if(t.parse(),e=t.result,void 0===r&&"string"!=typeof e.protocol)throw TypeError("A base URL must be provided for a relative constructor string.");e.baseURL=r}else{if(!e||"object"!=typeof e)throw TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(r)throw TypeError("parameter 1 is not of type 'string'.")}typeof n>"u"&&(n={ignoreCase:!1});let s={ignoreCase:!0===n.ignoreCase};for(i of(this.#q=Q({pathname:"*",protocol:"*",username:"*",password:"*",hostname:"*",port:"*",search:"*",hash:"*"},e,!0),L(this.#q.protocol)===this.#q.port&&(this.#q.port=""),H)){if(!(i in this.#q))continue;let e={},t=this.#q[i];switch(this.#G[i]=[],i){case"protocol":Object.assign(e,b),e.encodePart=F;break;case"username":Object.assign(e,b),e.encodePart=j;break;case"password":Object.assign(e,b),e.encodePart=M;break;case"hostname":Object.assign(e,v),I(t)?e.encodePart=$:e.encodePart=U;break;case"port":Object.assign(e,b),e.encodePart=B;break;case"pathname":O(this.#z.protocol)?(Object.assign(e,_,s),e.encodePart=V):(Object.assign(e,b,s),e.encodePart=q);break;case"search":Object.assign(e,b,s),e.encodePart=z;break;case"hash":Object.assign(e,b,s),e.encodePart=G}try{this.#H[i]=h(t,e),this.#z[i]=g(this.#H[i],this.#G[i],e),this.#Y[i]=Z(this.#H[i],e),this.#W=this.#W||this.#H[i].some(e=>2===e.type)}catch{throw TypeError(`invalid ${i} pattern '${this.#q[i]}'.`)}}}catch(e){throw TypeError(`Failed to construct 'URLPattern': ${e.message}`)}}get[Symbol.toStringTag](){return"URLPattern"}test(e={},t){let n,r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if("string"!=typeof e&&t)throw TypeError("parameter 1 is not of type 'string'.");if(typeof e>"u")return!1;try{r="object"==typeof e?Q(r,e,!1):Q(r,W(e,t),!1)}catch{return!1}for(n of H)if(!this.#z[n].exec(r[n]))return!1;return!0}exec(e={},t){let n,r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if("string"!=typeof e&&t)throw TypeError("parameter 1 is not of type 'string'.");if(typeof e>"u")return;try{r="object"==typeof e?Q(r,e,!1):Q(r,W(e,t),!1)}catch{return null}let i={};for(n of(t?i.inputs=[e,t]:i.inputs=[e],H)){let e=this.#z[n].exec(r[n]);if(!e)return null;let t={};for(let[r,i]of this.#G[n].entries())if("string"==typeof i||"number"==typeof i){let n=e[r+1];t[i]=n}i[n]={input:r[n]??"",groups:t}}return i}static compareComponent(e,t,n){let r=s((e,t)=>{for(let n of["type","modifier","prefix","value","suffix"]){if(e[n]<t[n])return -1;if(e[n]!==t[n])return 1}return 0},"comparePart"),i=new a(3,"","","","",3),o=new a(0,"","","","",3),l=s((e,t)=>{let n=0;for(;n<Math.min(e.length,t.length);++n){let i=r(e[n],t[n]);if(i)return i}return e.length===t.length?0:r(e[n]??i,t[n]??i)},"comparePartList");return t.#Y[e]||n.#Y[e]?t.#Y[e]&&!n.#Y[e]?l(t.#H[e],[o]):l(!t.#Y[e]&&n.#Y[e]?[o]:t.#H[e],n.#H[e]):0}get protocol(){return this.#Y.protocol}get username(){return this.#Y.username}get password(){return this.#Y.password}get hostname(){return this.#Y.hostname}get port(){return this.#Y.port}get pathname(){return this.#Y.pathname}get search(){return this.#Y.search}get hash(){return this.#Y.hash}get hasRegExpGroups(){return this.#W}};s(ee,"URLPattern")},36203:(e,t,n)=>{let{URLPattern:r}=n(7492);e.exports={URLPattern:r},globalThis.URLPattern||(globalThis.URLPattern=r)},82174:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>L,__assign:()=>s,__asyncDelegator:()=>N,__asyncGenerator:()=>I,__asyncValues:()=>O,__await:()=>S,__awaiter:()=>p,__classPrivateFieldGet:()=>P,__classPrivateFieldIn:()=>C,__classPrivateFieldSet:()=>R,__createBinding:()=>y,__decorate:()=>a,__disposeResources:()=>j,__esDecorate:()=>u,__exportStar:()=>g,__extends:()=>i,__generator:()=>m,__importDefault:()=>D,__importStar:()=>A,__makeTemplateObject:()=>x,__metadata:()=>d,__param:()=>l,__propKey:()=>f,__read:()=>v,__rest:()=>o,__rewriteRelativeImportExtension:()=>M,__runInitializers:()=>c,__setFunctionName:()=>h,__spread:()=>_,__spreadArray:()=>T,__spreadArrays:()=>E,__values:()=>b,default:()=>U});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,i,s){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,l=r.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?r.static?e:e.prototype:null,f=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),h=!1,d=n.length-1;d>=0;d--){var p={};for(var m in r)p[m]="access"===m?{}:r[m];for(var m in r.access)p.access[m]=r.access[m];p.addInitializer=function(e){if(h)throw TypeError("Cannot add initializers after decoration has completed");s.push(o(e||null))};var y=(0,n[d])("accessor"===l?{get:f.get,set:f.set}:f[u],p);if("accessor"===l){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw TypeError("Object expected");(a=o(y.get))&&(f.get=a),(a=o(y.set))&&(f.set=a),(a=o(y.init))&&i.unshift(a)}else(a=o(y))&&("field"===l?i.unshift(a):f[u]=a)}c&&Object.defineProperty(c,r.name,f),h=!0}function c(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function h(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,n,r){return new(n||(n=Promise))(function(i,s){function o(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((r=r.apply(e,t||[])).next())})}function m(e,t){var n,r,i,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}var y=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function g(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||y(t,e,n)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function E(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r}function T(e,t,n){if(n||2==arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function S(e){return this instanceof S?(this.v=e,this):new S(e)}function I(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),s=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function o(e,t){i[e]&&(r[e]=function(t){return new Promise(function(n,r){s.push([e,t,n,r])>1||a(e,t)})},t&&(r[e]=t(r[e])))}function a(e,t){try{var n;(n=i[e](t)).value instanceof S?Promise.resolve(n.value.v).then(l,u):c(s[0][2],n)}catch(e){c(s[0][3],e)}}function l(e){a("next",e)}function u(e){a("throw",e)}function c(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function N(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:S(e[r](t)),done:!1}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=b(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,i,(t=e[n](t)).done,t.value)})}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var w=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},k=function(e){return(k=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=k(e),r=0;r<n.length;r++)"default"!==n[r]&&y(t,e,n[r]);return w(t,e),t}function D(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function R(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function C(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function L(e,t,n){if(null!=t){var r,i;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");if(n){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var F="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function j(e){function t(t){e.error=e.hasError?new F(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function i(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function M(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,s){return n?t?".jsx":".js":!r||i&&s?r+i+"."+s.toLowerCase()+"js":e}):e}let U={__extends:i,__assign:s,__rest:o,__decorate:a,__param:l,__esDecorate:u,__runInitializers:c,__propKey:f,__setFunctionName:h,__metadata:d,__awaiter:p,__generator:m,__createBinding:y,__exportStar:g,__values:b,__read:v,__spread:_,__spreadArrays:E,__spreadArray:T,__await:S,__asyncGenerator:I,__asyncDelegator:N,__asyncValues:O,__makeTemplateObject:x,__importStar:A,__importDefault:D,__classPrivateFieldGet:P,__classPrivateFieldSet:R,__classPrivateFieldIn:C,__addDisposableResource:L,__disposeResources:j,__rewriteRelativeImportExtension:M}}};var t=require("../../../webpack-runtime.js");t.C(e);var n=e=>t(t.s=e),r=t.X(0,[8948,2878,330,3607],()=>n(11514));module.exports=r})();